From faa29eab1f2b62c9dc40a9002aaf247171b90c10 Mon Sep 17 00:00:00 2001 From: yanglbme Date: Sat, 8 Mar 2025 13:32:44 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20doocs/md?= =?UTF-8?q?@b0ab984ebd1ab95b558bace366604e15551deff3=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 4 +- ...dex-BJyzPIAM.css => md-index-CauIE2on.css} | 2 +- ...DCcDoZXV.js => md-_basePickBy-BEC9IKhF.js} | 2 +- ...q-B_2Z1DXv.js => md-_baseUniq-CaouebKG.js} | 2 +- ...{md-arc-JYr3KmYy.js => md-arc-iggqmto5.js} | 2 +- ...-architectureDiagram-UYN6MBPD-Bj_3RA8s.js} | 2 +- ...s => md-blockDiagram-ZHA2E4KO-B_JcBI2p.js} | 2 +- ...x.js => md-c4Diagram-6F5ED5ID-DAgfq_AW.js} | 2 +- static/js/md-channel-BZPvYpZL.js | 1 - static/js/md-channel-CvuT1-A9.js | 1 + ...RBbXN.js => md-chunk-5HRBRIJM-DZZLUrKF.js} | 2 +- ...-p2zN.js => md-chunk-7U56Z5CX-5vmlRDfv.js} | 2 +- ...LfW0h.js => md-chunk-ASOPGD6M-CJv05LUp.js} | 2 +- ...-jCiM.js => md-chunk-KFBOBJHC-Cw-7g_Wb.js} | 2 +- ...zXCrE.js => md-chunk-T2TOU4HS-Bimvx1kA.js} | 2 +- ...Ba8lL.js => md-chunk-TMUBEWPD-BMgjwLeC.js} | 2 +- .../js/md-classDiagram-LNE6IOMH-C4umT8cQ.js | 1 + .../js/md-classDiagram-LNE6IOMH-Df_V4S_x.js | 1 - .../md-classDiagram-v2-MQ7JQ4JX-C4umT8cQ.js | 1 + .../md-classDiagram-v2-MQ7JQ4JX-Df_V4S_x.js | 1 - static/js/md-clone-Cc6Gk5Be.js | 1 + static/js/md-clone-CnShQSdt.js | 1 - ...9JCuQa.js => md-cytoscape.esm-CrenbRtv.js} | 2 +- ...conoh.js => md-dagre-4EVJKHTY-BG19s4lC.js} | 2 +- ...sBE.js => md-diagram-QW4FP2JN-CI9G-xCX.js} | 2 +- ...C.js => md-erDiagram-6RL3IURR-CO0oPig6.js} | 2 +- ...js => md-flowDiagram-7ASYPVHJ-DY8fyx-9.js} | 2 +- ...s => md-ganttDiagram-NTVNEXSI-pWDNUSzQ.js} | 2 +- ...pL.js => md-gitGraph-YCYPL57B-Da34XlYK.js} | 4 +- ...> md-gitGraphDiagram-NRZ2UAAF-BGJ9QOJm.js} | 2 +- ...graph-Dk7IDouC.js => md-graph-tF8klDvC.js} | 2 +- ...index-Pj6M4nIk.js => md-index-1F_vrIf8.js} | 228 +++++++++--------- ...js => md-infoDiagram-A4XQUW5V-CKkfwt6-.js} | 2 +- ...=> md-journeyDiagram-G5WM74LC-CnGpahky.js} | 2 +- ...md-kanban-definition-QRCXZQQD-D1PtRX2Y.js} | 2 +- ...yout-InKKBTOk.js => md-layout-FhzIEdmV.js} | 2 +- ...near-D6Y5aq77.js => md-linear-Co1Vf5c0.js} | 2 +- ...d-mindmap-definition-GWI6TPTV-CVyrDhrY.js} | 2 +- ....js => md-pieDiagram-YF2LJOPJ-BBXxsIEF.js} | 2 +- ...> md-quadrantDiagram-OS5C2QUG-Q3DlY2O7.js} | 2 +- ...d-requirementDiagram-MIRIMTAZ-B1wB8i9j.js} | 2 +- ... => md-sankeyDiagram-Y46BX6SQ-BNc1s3Kf.js} | 2 +- ...> md-sequenceDiagram-G6AWOVSC-CNX-iFIZ.js} | 2 +- ...s => md-stateDiagram-MAYHULR4-B-IB3ZQa.js} | 2 +- .../md-stateDiagram-v2-4JROLMXI-CKG0ax-F.js | 1 + .../md-stateDiagram-v2-4JROLMXI-CrYqH-If.js | 1 - ...-timeline-definition-U7ZMHBDA-Mo7FFo8w.js} | 2 +- ...=> md-xychartDiagram-6QU3TZC5-DhlBqjGC.js} | 2 +- 48 files changed, 158 insertions(+), 158 deletions(-) rename static/css/{md-index-BJyzPIAM.css => md-index-CauIE2on.css} (97%) rename static/js/{md-_basePickBy-DCcDoZXV.js => md-_basePickBy-BEC9IKhF.js} (95%) rename static/js/{md-_baseUniq-B_2Z1DXv.js => md-_baseUniq-CaouebKG.js} (99%) rename static/js/{md-arc-JYr3KmYy.js => md-arc-iggqmto5.js} (98%) rename static/js/{md-architectureDiagram-UYN6MBPD-DDmNR903.js => md-architectureDiagram-UYN6MBPD-Bj_3RA8s.js} (99%) rename static/js/{md-blockDiagram-ZHA2E4KO-C8ljgUT6.js => md-blockDiagram-ZHA2E4KO-B_JcBI2p.js} (99%) rename static/js/{md-c4Diagram-6F5ED5ID-DVeXkvBx.js => md-c4Diagram-6F5ED5ID-DAgfq_AW.js} (99%) delete mode 100644 static/js/md-channel-BZPvYpZL.js create mode 100644 static/js/md-channel-CvuT1-A9.js rename static/js/{md-chunk-5HRBRIJM-aORRBbXN.js => md-chunk-5HRBRIJM-DZZLUrKF.js} (90%) rename static/js/{md-chunk-7U56Z5CX-CX_-p2zN.js => md-chunk-7U56Z5CX-5vmlRDfv.js} (99%) rename static/js/{md-chunk-ASOPGD6M-WtHLfW0h.js => md-chunk-ASOPGD6M-CJv05LUp.js} (95%) rename static/js/{md-chunk-KFBOBJHC-Bi4-jCiM.js => md-chunk-KFBOBJHC-Cw-7g_Wb.js} (66%) rename static/js/{md-chunk-T2TOU4HS-CIbzXCrE.js => md-chunk-T2TOU4HS-Bimvx1kA.js} (99%) rename static/js/{md-chunk-TMUBEWPD-CnSBa8lL.js => md-chunk-TMUBEWPD-BMgjwLeC.js} (78%) create mode 100644 static/js/md-classDiagram-LNE6IOMH-C4umT8cQ.js delete mode 100644 static/js/md-classDiagram-LNE6IOMH-Df_V4S_x.js create mode 100644 static/js/md-classDiagram-v2-MQ7JQ4JX-C4umT8cQ.js delete mode 100644 static/js/md-classDiagram-v2-MQ7JQ4JX-Df_V4S_x.js create mode 100644 static/js/md-clone-Cc6Gk5Be.js delete mode 100644 static/js/md-clone-CnShQSdt.js rename static/js/{md-cytoscape.esm-Do9JCuQa.js => md-cytoscape.esm-CrenbRtv.js} (99%) rename static/js/{md-dagre-4EVJKHTY-DYrconoh.js => md-dagre-4EVJKHTY-BG19s4lC.js} (97%) rename static/js/{md-diagram-QW4FP2JN-BZVbMsBE.js => md-diagram-QW4FP2JN-CI9G-xCX.js} (91%) rename static/js/{md-erDiagram-6RL3IURR-jjK-g8TC.js => md-erDiagram-6RL3IURR-CO0oPig6.js} (99%) rename static/js/{md-flowDiagram-7ASYPVHJ-DVDFWXaF.js => md-flowDiagram-7ASYPVHJ-DY8fyx-9.js} (99%) rename static/js/{md-ganttDiagram-NTVNEXSI-DLDnheDH.js => md-ganttDiagram-NTVNEXSI-pWDNUSzQ.js} (99%) rename static/js/{md-gitGraph-YCYPL57B-Hx73xtpL.js => md-gitGraph-YCYPL57B-Da34XlYK.js} (82%) rename static/js/{md-gitGraphDiagram-NRZ2UAAF-Dxkwg6fz.js => md-gitGraphDiagram-NRZ2UAAF-BGJ9QOJm.js} (98%) rename static/js/{md-graph-Dk7IDouC.js => md-graph-tF8klDvC.js} (96%) rename static/js/{md-index-Pj6M4nIk.js => md-index-1F_vrIf8.js} (86%) rename static/js/{md-infoDiagram-A4XQUW5V-DI_2FOHH.js => md-infoDiagram-A4XQUW5V-CKkfwt6-.js} (61%) rename static/js/{md-journeyDiagram-G5WM74LC-DeRpwxJo.js => md-journeyDiagram-G5WM74LC-CnGpahky.js} (99%) rename static/js/{md-kanban-definition-QRCXZQQD-BEauhUEA.js => md-kanban-definition-QRCXZQQD-D1PtRX2Y.js} (99%) rename static/js/{md-layout-InKKBTOk.js => md-layout-FhzIEdmV.js} (98%) rename static/js/{md-linear-D6Y5aq77.js => md-linear-Co1Vf5c0.js} (99%) rename static/js/{md-mindmap-definition-GWI6TPTV-CtuHO1si.js => md-mindmap-definition-GWI6TPTV-CVyrDhrY.js} (99%) rename static/js/{md-pieDiagram-YF2LJOPJ-CEpnORvl.js => md-pieDiagram-YF2LJOPJ-BBXxsIEF.js} (93%) rename static/js/{md-quadrantDiagram-OS5C2QUG-DQuklVfT.js => md-quadrantDiagram-OS5C2QUG-Q3DlY2O7.js} (99%) rename static/js/{md-requirementDiagram-MIRIMTAZ-Cuj6en5F.js => md-requirementDiagram-MIRIMTAZ-B1wB8i9j.js} (99%) rename static/js/{md-sankeyDiagram-Y46BX6SQ-DVAwfI-F.js => md-sankeyDiagram-Y46BX6SQ-BNc1s3Kf.js} (99%) rename static/js/{md-sequenceDiagram-G6AWOVSC-D4E-_IXF.js => md-sequenceDiagram-G6AWOVSC-CNX-iFIZ.js} (99%) rename static/js/{md-stateDiagram-MAYHULR4-3EjsInh5.js => md-stateDiagram-MAYHULR4-B-IB3ZQa.js} (96%) create mode 100644 static/js/md-stateDiagram-v2-4JROLMXI-CKG0ax-F.js delete mode 100644 static/js/md-stateDiagram-v2-4JROLMXI-CrYqH-If.js rename static/js/{md-timeline-definition-U7ZMHBDA-BmkDcRCw.js => md-timeline-definition-U7ZMHBDA-Mo7FFo8w.js} (99%) rename static/js/{md-xychartDiagram-6QU3TZC5-CHuQLkx8.js => md-xychartDiagram-6QU3TZC5-DhlBqjGC.js} (99%) diff --git a/index.html b/index.html index ddf68c7c9..2ba919e9c 100644 --- a/index.html +++ b/index.html @@ -67,8 +67,8 @@ } } - - + + diff --git a/static/css/md-index-BJyzPIAM.css b/static/css/md-index-CauIE2on.css similarity index 97% rename from static/css/md-index-BJyzPIAM.css rename to static/css/md-index-CauIE2on.css index 5ab92cc52..c20acbf3e 100644 --- a/static/css/md-index-BJyzPIAM.css +++ b/static/css/md-index-CauIE2on.css @@ -1 +1 @@ -.loading[data-v-8781f9ec]{position:fixed;top:0;left:0;z-index:99999;display:flex;flex-direction:column;justify-content:center;align-items:center;width:100vw;height:100vh;font-size:18px;background-color:hsl(var(--background))}.loading[data-v-8781f9ec]:before{content:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAAt1BMVEX///8AAABIz0hHzkdIzkhIz0hIz0hHzkdIzkhFz0VAz0BHzUdIz0hHzkdIzkhIzUhHzUdHzUdIzkhEzEREzERGz0ZIz0hHzUdIzkhIzUhHzkdHzkdHzUdGz0ZIzkhHzkdKzkpIzUhGzUZD00NIzUhGzUZIzkhIzkhHzkdHzkdIzkhHz0dIzUhK1UpHzUdC0EJHzkdHzkdIz0hH1UdHzUdGzkZIzUhJ20lD10NJzklIzkhIzkj////r6/fCAAAAO3RSTlMAACDvoEBg0MAwEI9fz9+A8JDgDx5Ff/r9i+VdbHSDkx9RTRdce+6q6brLb58YSBvtd0oScFTxBxM/v5xq7LMAAAABYktHRACIBR1IAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4wwcCBssFsYwawAAAe9JREFUaN7t2tlywiAUBmABiQY1W6vWbna1i6Z2sYs97/9eNcQ6U40kEMhoh/824qeAxwSo1Wx2MUgimAAQLNNCAanDInWzCAUeahRxUsQx212NxGgaHhMq21sqCHIpdZFpRDoW2ROEtdpY/S1xu8XyEdZZ/BA8VcNbNO6wPIQbAK6akZa2v0rWN0mLk6+G+Gnr3O5qgnR1EjfOQviHCRS7yw02uyELwWGkbHAlCnGR3wkuM4WxLSuGkQNfmLYW5BDE8fUgXcHVXv9oYB45PoGBeQSd5ioaEHSWp+hA0DkMzSNoKFZKI78zuWsQuaA8l3BlEFnm2iL/FrlpZqanFbntZxmjO73IfdbVh31ERjQjj1LImEyYGMn+9xUjbELGKyRObviJI57CTzBdu/b8Ip7CDkkeQuIlQrffY5dB0rtvuqvINHnpqwISR8nTQsExSWbVW7ExSZ4jong1u2ZByJDu7kKsHszkCqQCIl+FLbKLyPtaefwwgWxEP2LvVixiEYtoQgqlHPJJC+XLLqoZRsyvpuKJB0R9XZiA18pfF+Yr3KqKS4qtcFeyVl/FrgNrlN8/aeTun3AlUh34aMPYsqcVOmWmsBMyW1Ysooi487nx/fhKThbwDdVvs0glpz0qObdSyQkchAOAQOUskU3h/AAe7qmqtAqp/QAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxOS0xMi0yOFQwODoyNzo0NCswMDowMPJYdAwAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTktMTItMjhUMDg6Mjc6NDQrMDA6MDCDBcywAAAAAElFTkSuQmCC);width:100px;height:100px;margin-bottom:26px}.fade-enter[data-v-8781f9ec],.fade-leave-to[data-v-8781f9ec]{opacity:0}.fade-enter-to[data-v-8781f9ec],.fade-leave[data-v-8781f9ec]{opacity:1}.fade-enter-active[data-v-8781f9ec],.fade-leave-active[data-v-8781f9ec]{transition:opacity 1s}.required[data-v-0d03152f]:before{content:"*";color:red;margin-right:.25em}.bounceInRight[data-v-a83b50e8]{animation-name:bounceInRight-a83b50e8;animation-duration:1s;animation-fill-mode:both}@keyframes bounceInRight-a83b50e8{0%,60%,75%,90%,to{transition-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}.account-item[data-v-3407b3ac]{margin-bottom:1rem}.menubar[data-v-9a6c5c36]{-webkit-user-select:none;-moz-user-select:none;user-select:none}kbd[data-v-9a6c5c36]{display:inline-flex;justify-content:center;align-items:center;border:1px solid #a8a8a8;padding:1px 4px;border-radius:2px}[data-v-74776407]{box-sizing:border-box;margin:0;padding:0}html[data-v-74776407],body[data-v-74776407]{height:100%;font-family:PingFang SC,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif}input[data-v-74776407],button[data-v-74776407],textarea[data-v-74776407]{font-family:inherit}h1[data-v-74776407],h2[data-v-74776407],h3[data-v-74776407],h4[data-v-74776407],h5[data-v-74776407],h6[data-v-74776407]{font-weight:400}em[data-v-74776407]{font-style:normal!important}section[data-v-74776407]{height:100%}.web-title[data-v-74776407]{margin:0 15px 0 5px}.web-icon[data-v-74776407]{width:auto;height:1.5rem;vertical-align:middle}#editor[data-v-74776407]{display:block;height:100%;width:100%;padding:10px;border:none}.ctrl[data-v-74776407]{flex-basis:60px;flex-grow:1;flex-shrink:1;display:flex;align-items:center}.preview-wrapper[data-v-74776407]{display:flex;align-items:center;justify-content:center;padding:0;overflow-y:scroll}.hint[data-v-74776407]{opacity:.6;margin:20px 0}.preview[data-v-74776407]{position:relative;margin:0 -20px;width:375px;min-height:100%;padding:20px;font-size:14px;box-sizing:border-box;outline:none;word-wrap:break-word}.preview table[data-v-74776407]{margin-bottom:10px;border-collapse:collapse;display:table;width:100%!important}.container[data-v-74776407]{height:100vh;min-width:100%;padding:0}.container-main[data-v-74776407]{overflow:hidden}#output-wrapper[data-v-74776407]{position:relative;-webkit-user-select:text;-moz-user-select:text;user-select:text;height:100%}.loading-mask[data-v-74776407]{position:absolute;left:0;top:0;width:100%;height:100%;text-align:center;color:hsl(var(--foreground));background-color:hsl(var(--background))}.loading-mask .loading-mask-box[data-v-74776407]{position:sticky;top:50%;transform:translateY(-50%)}.loading-mask .loading-mask-box .loading__img[data-v-74776407]{width:75px;height:75px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAAt1BMVEX///8AAABIz0hHzkdIzkhIz0hIz0hHzkdIzkhFz0VAz0BHzUdIz0hHzkdIzkhIzUhHzUdHzUdIzkhEzEREzERGz0ZIz0hHzUdIzkhIzUhHzkdHzkdHzUdGz0ZIzkhHzkdKzkpIzUhGzUZD00NIzUhGzUZIzkhIzkhHzkdHzkdIzkhHz0dIzUhK1UpHzUdC0EJHzkdHzkdIz0hH1UdHzUdGzkZIzUhJ20lD10NJzklIzkhIzkj////r6/fCAAAAO3RSTlMAACDvoEBg0MAwEI9fz9+A8JDgDx5Ff/r9i+VdbHSDkx9RTRdce+6q6brLb58YSBvtd0oScFTxBxM/v5xq7LMAAAABYktHRACIBR1IAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4wwcCBssFsYwawAAAe9JREFUaN7t2tlywiAUBmABiQY1W6vWbna1i6Z2sYs97/9eNcQ6U40kEMhoh/824qeAxwSo1Wx2MUgimAAQLNNCAanDInWzCAUeahRxUsQx212NxGgaHhMq21sqCHIpdZFpRDoW2ROEtdpY/S1xu8XyEdZZ/BA8VcNbNO6wPIQbAK6akZa2v0rWN0mLk6+G+Gnr3O5qgnR1EjfOQviHCRS7yw02uyELwWGkbHAlCnGR3wkuM4WxLSuGkQNfmLYW5BDE8fUgXcHVXv9oYB45PoGBeQSd5ioaEHSWp+hA0DkMzSNoKFZKI78zuWsQuaA8l3BlEFnm2iL/FrlpZqanFbntZxmjO73IfdbVh31ERjQjj1LImEyYGMn+9xUjbELGKyRObviJI57CTzBdu/b8Ip7CDkkeQuIlQrffY5dB0rtvuqvINHnpqwISR8nTQsExSWbVW7ExSZ4jong1u2ZByJDu7kKsHszkCqQCIl+FLbKLyPtaefwwgWxEP2LvVixiEYtoQgqlHPJJC+XLLqoZRsyvpuKJB0R9XZiA18pfF+Yr3KqKS4qtcFeyVl/FrgNrlN8/aeTun3AlUh34aMPYsqcVOmWmsBMyW1Ysooi487nx/fhKThbwDdVvs0glpz0qObdSyQkchAOAQOUskU3h/AAe7qmqtAqp/QAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxOS0xMi0yOFQwODoyNzo0NCswMDowMPJYdAwAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTktMTItMjhUMDg6Mjc6NDQrMDA6MDCDBcywAAAAAElFTkSuQmCC) no-repeat;margin:1em auto;background-size:cover}[data-v-74776407] .preview-table{border-spacing:0}.codeMirror-wrapper[data-v-74776407],.preview-wrapper[data-v-74776407]{height:100%}.codeMirror-wrapper[data-v-74776407]{overflow-x:auto}html,body,#app{width:100vw;height:100vh;margin:0;padding:0}body{pointer-events:initial!important}::-webkit-scrollbar{width:6px;height:6px;background-color:#fff}::-webkit-scrollbar-track{border-radius:6px;background-color:#c8c8c84d}::-webkit-scrollbar-thumb{border-radius:6px;background-color:#90929880}.CodeMirror-hints{position:absolute;z-index:10;overflow-y:auto;margin:0;padding:2px;border-radius:4px;max-height:20em;min-width:200px;font-size:12px;font-family:monospace;color:#333;background-color:#fff;box-shadow:0 4px 8px #0000001f,0 2px 4px #00000014}.CodeMirror-hint{margin-top:10px;padding:4px 6px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}.CodeMirror-hint:first-of-type{margin-top:0}.CodeMirror-hint:hover{background:#f0f0f0}.data-\[disabled\]\:pointer-events-none[data-disabled],.pointer-events-none{pointer-events:none}.disabled\:pointer-events-none:disabled{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.left-0{left:0}.left-1\/2{left:50%}.left-2{left:.5rem}.right-0{right:0}.right-3{right:.75rem}.right-4{right:1rem}.top-1\/2{top:50%}.top-3{top:.75rem}.top-4{top:1rem}.z-50{z-index:50}.order-1{order:1}.order-2{order:2}.grid{display:grid}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-5{margin-top:1.25rem;margin-bottom:1.25rem}.my-8{margin-top:2rem;margin-bottom:2rem}.mb-\[-24px\]{margin-bottom:-24px}.mb-\[24px\]{margin-bottom:24px}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mr-2{margin-right:.5rem}.mr-4{margin-right:1rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.inline{display:inline}.block{display:block}.inline-block{display:inline-block}.hidden{display:none}.size-20{width:5rem;height:5rem}.size-4{width:1rem;height:1rem}.h-\[--radix-select-trigger-height\]{height:var(--radix-select-trigger-height)}.h-\[1px\],.h-px{height:1px}.h-\[20px\]{height:20px}.h-\[25px\]{height:25px}.h-\[30px\]{height:30px}.h-10{height:2.5rem}.h-15{height:3.75rem}.h-2,.h2{height:.5rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5,.h5{height:1.25rem}.h-50{height:12.5rem}.h-6{height:1.5rem}.h-60{height:15rem}.h-8{height:2rem}.h-full{height:100%}.h3{height:.75rem}.max-h-\[400px\]{max-height:400px}.max-h-56{max-height:14rem}.max-h-96{max-height:24rem}.max-w-lg{max-width:32rem}.max-w-max{max-width:-moz-max-content;max-width:max-content}.min-h-\[24px\]{min-height:24px}.min-h-\[40px\]{min-height:40px}.min-h-\[64px\]{min-height:64px}.min-h-20{min-height:5rem}.min-h-4{min-height:1rem}.min-w-\[--radix-select-trigger-width\]{min-width:var(--radix-select-trigger-width)}.min-w-\[350px\]{min-width:350px}.min-w-32{min-width:8rem}.min-w-48{min-width:12rem}.w-\[150px\]{width:150px}.w-\[1px\],.w-px{width:1px}.w-\[200px\]{width:200px}.w-\[20px\]{width:20px}.w-\[25px\]{width:25px}.w-0{width:0}.w-10{width:2.5rem}.w-100{width:25rem}.w-11{width:2.75rem}.w-2{width:.5rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-50{width:12.5rem}.w-56{width:14rem}.w-60{width:15rem}.w-64{width:16rem}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-min{width:-moz-min-content;width:min-content}.flex{display:flex}.inline-flex{display:inline-flex}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.-translate-x-1\/2{--un-translate-x:-50%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.-translate-x-full{--un-translate-x:-100%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.-translate-y-1\/2{--un-translate-y:-50%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--un-translate-y:.25rem;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--un-translate-x:-.25rem;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--un-translate-x:.25rem;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--un-translate-y:-.25rem;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.data-\[state\=checked\]\:translate-x-5[data-state=checked]{--un-translate-x:1.25rem;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.translate-x-0{--un-translate-x:0;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.translate-x-100{--un-translate-x:25rem;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.translate-x-full{--un-translate-x:100%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.transform{transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.place-items-center{place-items:center}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-evenly{justify-content:space-evenly}.justify-items-center{justify-items:center}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.gap-y-1\.5{row-gap:.375rem}.gap-y-2{row-gap:.5rem}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.\[\&\>span\]\:truncate>span,.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.border,.border-1,.dark .dark\:border-1{border-width:1px}.border-2{border-width:2px}.file\:border-0::file-selector-button{border-width:0px}.border-x-1{border-left-width:1px;border-right-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-l-0{border-left-width:0px}.border-l-2{border-left-width:2px}.border-r{border-right-width:1px}.border-r-2{border-right-width:2px}.last\:border-b-0:last-child{border-bottom-width:0px}.border-black{--un-border-opacity:1;border-color:rgb(0 0 0 / var(--un-border-opacity))}.border-gray-200,.dark .dark\:border-gray-200{--un-border-opacity:1;border-color:rgb(229 231 235 / var(--un-border-opacity))}.border-gray-700{--un-border-opacity:1;border-color:rgb(55 65 81 / var(--un-border-opacity))}.border-gray\/20{border-color:#9ca3af33}.border-gray\/50{border-color:#9ca3af80}.border-transparent{border-color:transparent}.dark .dark\:border-white{--un-border-opacity:1;border-color:rgb(255 255 255 / var(--un-border-opacity))}.dark .dark\:hover\:border-gray-200:hover{--un-border-opacity:1;border-color:rgb(229 231 235 / var(--un-border-opacity))}.hover\:border-gray-700:hover{--un-border-opacity:1;border-color:rgb(55 65 81 / var(--un-border-opacity))}.rounded{border-radius:.25rem}.rounded-\[4px\]{border-radius:4px}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.border-dashed{border-style:dashed}.bg-black\/80{background-color:#000c}.bg-gray-100{--un-bg-opacity:1;background-color:rgb(243 244 246 / var(--un-bg-opacity))}.bg-gray-2{--un-bg-opacity:1;background-color:rgb(229 231 235 / var(--un-bg-opacity))}.bg-gray-400\/50{background-color:#9ca3af80}.bg-gray\/20{background-color:#9ca3af33}.bg-white{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity))}.dark .dark\:bg-\[\#191919\]{--un-bg-opacity:1;background-color:rgb(25 25 25 / var(--un-bg-opacity))}.dark .dark\:bg-\[\#191c20\]{--un-bg-opacity:1;background-color:rgb(25 28 32 / var(--un-bg-opacity))}.dark .dark\:bg-gray-500\/50{background-color:#6b728080}.dark .dark\:bg-gray-900{--un-bg-opacity:1;background-color:rgb(17 24 39 / var(--un-bg-opacity))}.dark .dark\:bg-gray\/30{background-color:#9ca3af4d}.dark .dark\:bg-stone-9{--un-bg-opacity:1;background-color:rgb(28 25 23 / var(--un-bg-opacity))}.dark .dark\:hover\:bg-gray-500\/50:hover{background-color:#6b728080}.dark .dark\:hover\:bg-gray-600:hover{--un-bg-opacity:1;background-color:rgb(75 85 99 / var(--un-bg-opacity))}.dark .dark\:hover\:bg-gray\/20:hover{background-color:#9ca3af33}.hover\:bg-gray-200:hover{--un-bg-opacity:1;background-color:rgb(229 231 235 / var(--un-bg-opacity))}.hover\:bg-gray-400\/50:hover{background-color:#9ca3af80}.file\:bg-transparent::file-selector-button{background-color:transparent}.fill-current{fill:currentColor}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px,.px-4{padding-left:1rem;padding-right:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.\[\&\>\[data-slot\=input\]\]\:has-\[\[data-slot\=decrement\]\]\:pl-5:has([data-slot=decrement])>[data-slot=input]{padding-left:1.25rem}.\[\&\>\[data-slot\=input\]\]\:has-\[\[data-slot\=increment\]\]\:pr-5:has([data-slot=increment])>[data-slot=input]{padding-right:1.25rem}.pl-7{padding-left:1.75rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.text-center{text-align:center}.text-start{text-align:start}.text-end{text-align:end}.text-\[12px\]{font-size:12px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.dark .dark\:text-white{--un-text-opacity:1;color:rgb(255 255 255 / var(--un-text-opacity))}.text-blue-500{--un-text-opacity:1;color:rgb(59 130 246 / var(--un-text-opacity))}.text-green-600{--un-text-opacity:1;color:rgb(22 163 74 / var(--un-text-opacity))}.text-red-500{--un-text-opacity:1;color:rgb(239 68 68 / var(--un-text-opacity))}.text-red-600{--un-text-opacity:1;color:rgb(220 38 38 / var(--un-text-opacity))}.text-yellow-600{--un-text-opacity:1;color:rgb(202 138 4 / var(--un-text-opacity))}.dark .dark\:hover\:text-white:hover{--un-text-opacity:1;color:rgb(255 255 255 / var(--un-text-opacity))}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.file\:font-medium::file-selector-button{font-weight:500}.\[\&_p\]\:leading-relaxed p{line-height:1.625}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.hover\:underline:hover{text-decoration-line:underline}.data-\[disabled\]\:opacity-50[data-disabled],.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70,.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.hover\:opacity-100:hover{opacity:1}.disabled\:opacity-20:disabled{opacity:.2}.disabled\:opacity-50:disabled{opacity:.5}.group.toaster .group-\[\.toaster\]\:shadow-lg,.shadow-lg{--un-shadow:var(--un-shadow-inset) 0 10px 15px -3px var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 4px 6px -4px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.data-\[state\=active\]\:shadow-sm[data-state=active]{--un-shadow:var(--un-shadow-inset) 0 1px 2px 0 var(--un-shadow-color, rgb(0 0 0 / .05));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.shadow-md{--un-shadow:var(--un-shadow-inset) 0 4px 6px -1px var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 2px 4px -2px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.shadow-none{--un-shadow:0 0 var(--un-shadow-color, rgb(0 0 0 / 0));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.shadow-xl{--un-shadow:var(--un-shadow-inset) 0 20px 25px -5px var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 8px 10px -6px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.outline{outline-style:solid}.outline-none{outline:2px solid transparent;outline-offset:2px}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.ring-0{--un-ring-width:0px;--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.focus\:ring-2:focus{--un-ring-width:2px;--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.focus-visible\:ring-2:focus-visible{--un-ring-width:2px;--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.focus\:ring-offset-2:focus{--un-ring-offset-width:2px}.focus-visible\:ring-offset-2:focus-visible{--un-ring-offset-width:2px}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-color{transition-property:color;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-width{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}@media (min-width: 640px){.sm\:mt-0{margin-top:0}.sm\:max-w-\[425px\]{max-width:425px}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:justify-evenly{justify-content:space-evenly}.sm\:gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.sm\:rounded-lg{border-radius:.5rem}.sm\:text-left{text-align:left}}@media (min-width: 768px){.md\:w-full{width:100%}}.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error,.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:#ff96004d}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative;z-index:0}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors,.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.cm-s-xq-light span.cm-keyword{line-height:1em;font-weight:700;color:#5a5cad}.cm-s-xq-light span.cm-atom{color:#6c8cd5}.cm-s-xq-light span.cm-number{color:#164}.cm-s-xq-light span.cm-def{text-decoration:underline}.cm-s-xq-light span.cm-variable,.cm-s-xq-light span.cm-variable-2,.cm-s-xq-light span.cm-variable-3,.cm-s-xq-light span.cm-type{color:#000}.cm-s-xq-light span.cm-comment{color:#0080ff;font-style:italic}.cm-s-xq-light span.cm-string{color:red}.cm-s-xq-light span.cm-meta{color:#ff0}.cm-s-xq-light span.cm-qualifier{color:gray}.cm-s-xq-light span.cm-builtin{color:#7ea656}.cm-s-xq-light span.cm-bracket{color:#cc7}.cm-s-xq-light span.cm-tag{color:#3f7f7f}.cm-s-xq-light span.cm-attribute{color:#7f007f}.cm-s-xq-light span.cm-error{color:red}.cm-s-xq-light .CodeMirror-activeline-background{background:#e8f2ff}.cm-s-xq-light .CodeMirror-matchingbracket{outline:1px solid grey;color:#000!important;background:#ff0}.cm-s-darcula{font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif}.cm-s-darcula.CodeMirror{background:#2b2b2b;color:#a9b7c6}.cm-s-darcula span.cm-meta{color:#bbb529}.cm-s-darcula span.cm-number{color:#6897bb}.cm-s-darcula span.cm-keyword{color:#cc7832;line-height:1em;font-weight:700}.cm-s-darcula span.cm-def{color:#a9b7c6;font-style:italic}.cm-s-darcula span.cm-variable,.cm-s-darcula span.cm-variable-2{color:#a9b7c6}.cm-s-darcula span.cm-variable-3{color:#9876aa}.cm-s-darcula span.cm-type{color:#abc;font-weight:700}.cm-s-darcula span.cm-property{color:#ffc66d}.cm-s-darcula span.cm-operator{color:#a9b7c6}.cm-s-darcula span.cm-string,.cm-s-darcula span.cm-string-2{color:#6a8759}.cm-s-darcula span.cm-comment{color:#61a151;font-style:italic}.cm-s-darcula span.cm-link,.cm-s-darcula span.cm-atom{color:#cc7832}.cm-s-darcula span.cm-error{color:#bc3f3c}.cm-s-darcula span.cm-tag{color:#629755;font-weight:700;font-style:italic;text-decoration:underline}.cm-s-darcula span.cm-attribute{color:#6897bb}.cm-s-darcula span.cm-qualifier{color:#6a8759}.cm-s-darcula span.cm-bracket{color:#a9b7c6}.cm-s-darcula span.cm-builtin,.cm-s-darcula span.cm-special{color:#ff9e59}.cm-s-darcula span.cm-matchhighlight{color:#fff;background-color:#325930b3;font-weight:400}.cm-s-darcula span.cm-searching{color:#fff;background-color:#3d733bb3;font-weight:400}.cm-s-darcula .CodeMirror-cursor{border-left:1px solid #A9B7C6}.cm-s-darcula .CodeMirror-activeline-background{background:#323232}.cm-s-darcula .CodeMirror-gutters{background:#313335;border-right:1px solid #313335}.cm-s-darcula .CodeMirror-guttermarker{color:#ffee80}.cm-s-darcula .CodeMirror-guttermarker-subtle{color:#d0d0d0}.cm-s-darcula .CodeMirrir-linenumber{color:#606366}.cm-s-darcula .CodeMirror-matchingbracket{background-color:#3b514d;color:#ffef28!important;font-weight:700}.cm-s-darcula div.CodeMirror-selected{background:#214283}.CodeMirror-hints.darcula{font-family:Menlo,Monaco,Consolas,Courier New,monospace;color:#9c9e9e;background-color:#3b3e3f!important}.CodeMirror-hints.darcula .CodeMirror-hint-active{background-color:#494d4e!important;color:#9c9e9e!important}.-translate-x-1\/2,.-translate-x-full,.-translate-y-1\/2,.translate-x-0,.translate-x-full,.transform,[data-side=bottom],[data-side=left],[data-side=right],[data-side=top],[data-state=checked],div{--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1}.shadow-lg,.shadow-md,.shadow-none,.shadow-xl,.group-\[\.toaster\]\:shadow-lg,[data-state=active]{--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000}.ring-0,.focus\:ring-2,.focus-visible\:ring-2{--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000}.grayscale,.filter{--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root{--background: 0 0% 100%;--foreground: 0 0% 3.9%;--card: 0 0% 100%;--card-foreground: 0 0% 3.9%;--popover: 0 0% 100%;--popover-foreground: 0 0% 3.9%;--primary: 0 0% 9%;--primary-foreground: 0 0% 98%;--secondary: 0 0% 96.1%;--secondary-foreground: 0 0% 9%;--muted: 0 0% 96.1%;--muted-foreground: 0 0% 45.1%;--accent: 0 0% 96.1%;--accent-foreground: 0 0% 9%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--border:0 0% 89.8%;--input:0 0% 89.8%;--ring:0 0% 3.9%;--radius: .5rem;--blockquote-background: #f7f7f7}.dark{--background:0 0% 3.9%;--foreground:0 0% 98%;--card:0 0% 3.9%;--card-foreground:0 0% 98%;--popover:0 0% 3.9%;--popover-foreground:0 0% 98%;--primary:0 0% 98%;--primary-foreground:0 0% 9%;--secondary:0 0% 14.9%;--secondary-foreground:0 0% 98%;--muted:0 0% 14.9%;--muted-foreground:0 0% 63.9%;--accent:0 0% 14.9%;--accent-foreground:0 0% 98%;--destructive:0 62.8% 30.6%;--destructive-foreground:0 0% 98%;--border:0 0% 14.9%;--input:0 0% 14.9%;--ring:0 0% 83.1%;--blockquote-background: #212121}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.table{display:table}.h-11{height:2.75rem}.h-2{height:.5rem}.h-5{height:1.25rem}.h-7{height:1.75rem}.h-9{height:2.25rem}.h-\[1px\]{height:1px}.h-px{height:1px}.w-0{width:0px}.w-72{width:18rem}.w-\[1px\]{width:1px}.w-px{width:1px}.border-collapse{border-collapse:collapse}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.break-all{word-break:break-all}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.border{border-width:1px}.border-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity, 1))}.border-border{border-color:hsl(var(--border))}.border-destructive\/50{border-color:hsl(var(--destructive) / .5)}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.border-input{border-color:hsl(var(--input))}.border-primary{border-color:hsl(var(--primary))}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.bg-background{background-color:hsl(var(--background))}.bg-border{background-color:hsl(var(--border))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-500\/50{background-color:#6b728080}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.bg-muted{background-color:hsl(var(--muted))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-clip-padding{background-clip:padding-box}.object-cover{-o-object-fit:cover;object-fit:cover}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.italic{font-style:italic}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-yellow-600{--tw-text-opacity: 1;color:rgb(202 138 4 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.fade-in-80{--tw-enter-opacity: .8}.zoom-in-95{--tw-enter-scale: .95}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\:border-gray-700:hover{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.hover\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary:hover{background-color:hsl(var(--secondary))}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-primary-foreground:hover{color:hsl(var(--primary-foreground))}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--background))}.group.toaster .group-\[\.toaster\]\:border-border{border-color:hsl(var(--border))}.group.toast .group-\[\.toast\]\:bg-muted{background-color:hsl(var(--muted))}.group.toast .group-\[\.toast\]\:bg-primary{background-color:hsl(var(--primary))}.group.toaster .group-\[\.toaster\]\:bg-background{background-color:hsl(var(--background))}.group.toast .group-\[\.toast\]\:text-muted-foreground{color:hsl(var(--muted-foreground))}.group.toast .group-\[\.toast\]\:text-primary-foreground{color:hsl(var(--primary-foreground))}.group.toaster .group-\[\.toaster\]\:text-foreground{color:hsl(var(--foreground))}.group.toaster .group-\[\.toaster\]\:shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=checked\]\:translate-x-5[data-state=checked]{--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:hsl(var(--background))}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:hsl(var(--input))}.data-\[state\=active\]\:text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\[state\=open\]\:text-accent-foreground[data-state=open]{color:hsl(var(--accent-foreground))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=active\]\:shadow-sm[data-state=active]{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x: -50%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y: -48%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x: -50%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y: -48%}.dark\:border-destructive:is(.dark *){border-color:hsl(var(--destructive))}.dark\:border-gray-200:is(.dark *){--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.dark\:border-white:is(.dark *){--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.dark\:bg-\[\#191919\]:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(25 25 25 / var(--tw-bg-opacity, 1))}.dark\:bg-\[\#191c20\]:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(25 28 32 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-500\/50:is(.dark *){background-color:#6b728080}.dark\:bg-gray-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.dark\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark\:hover\:border-gray-200:hover:is(.dark *){--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.dark\:hover\:bg-gray-500\/50:hover:is(.dark *){background-color:#6b728080}.dark\:hover\:bg-gray-600:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.dark\:hover\:text-white:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}@media (min-width: 640px){.sm\:mt-0{margin-top:0}.sm\:max-w-\[425px\]{max-width:425px}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:justify-evenly{justify-content:space-evenly}.sm\:gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:text-left{text-align:left}}.\[\&\>span\]\:truncate>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.\[\&\>svg\+div\]\:translate-y-\[-3px\]>svg+div{--tw-translate-y: -3px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>svg\]\:absolute>svg{position:absolute}.\[\&\>svg\]\:left-4>svg{left:1rem}.\[\&\>svg\]\:top-4>svg{top:1rem}.\[\&\>svg\]\:text-destructive>svg{color:hsl(var(--destructive))}.\[\&\>svg\]\:text-foreground>svg{color:hsl(var(--foreground))}.\[\&\>svg\~\*\]\:pl-7>svg~*{padding-left:1.75rem}.dark .container .CodeMirror-wrap{background-color:#191919}.dark .container .output_night .preview{background-color:#191919;box-shadow:0 0 70px #0000004d}.dark .container .output_night .preview-wrapper{background-color:#191919;box-shadow:inset 0 0 0 1px #e9e7e71a}.dark .container .output_night .code-snippet__fix{background-color:#eee}.dark .container ::-webkit-scrollbar{background-color:#191919}.CodeMirror{padding-bottom:0;height:100%!important;font-size:14px;font-family:PingFang SC,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif!important}.CodeMirror-vscrollbar:focus{outline:none}.CodeMirror-scroll{padding:0 20px;overflow-x:hidden!important;overflow-y:scroll!important}.CodeMirror-vscrollbar{width:0px;height:0px}.CodeMirror-wrap{padding-top:20px;padding-bottom:20px;box-sizing:border-box}.cm-em{font-style:normal}.cm-comment{font-style:normal!important} +.loading[data-v-8781f9ec]{position:fixed;top:0;left:0;z-index:99999;display:flex;flex-direction:column;justify-content:center;align-items:center;width:100vw;height:100vh;font-size:18px;background-color:hsl(var(--background))}.loading[data-v-8781f9ec]:before{content:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAAt1BMVEX///8AAABIz0hHzkdIzkhIz0hIz0hHzkdIzkhFz0VAz0BHzUdIz0hHzkdIzkhIzUhHzUdHzUdIzkhEzEREzERGz0ZIz0hHzUdIzkhIzUhHzkdHzkdHzUdGz0ZIzkhHzkdKzkpIzUhGzUZD00NIzUhGzUZIzkhIzkhHzkdHzkdIzkhHz0dIzUhK1UpHzUdC0EJHzkdHzkdIz0hH1UdHzUdGzkZIzUhJ20lD10NJzklIzkhIzkj////r6/fCAAAAO3RSTlMAACDvoEBg0MAwEI9fz9+A8JDgDx5Ff/r9i+VdbHSDkx9RTRdce+6q6brLb58YSBvtd0oScFTxBxM/v5xq7LMAAAABYktHRACIBR1IAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4wwcCBssFsYwawAAAe9JREFUaN7t2tlywiAUBmABiQY1W6vWbna1i6Z2sYs97/9eNcQ6U40kEMhoh/824qeAxwSo1Wx2MUgimAAQLNNCAanDInWzCAUeahRxUsQx212NxGgaHhMq21sqCHIpdZFpRDoW2ROEtdpY/S1xu8XyEdZZ/BA8VcNbNO6wPIQbAK6akZa2v0rWN0mLk6+G+Gnr3O5qgnR1EjfOQviHCRS7yw02uyELwWGkbHAlCnGR3wkuM4WxLSuGkQNfmLYW5BDE8fUgXcHVXv9oYB45PoGBeQSd5ioaEHSWp+hA0DkMzSNoKFZKI78zuWsQuaA8l3BlEFnm2iL/FrlpZqanFbntZxmjO73IfdbVh31ERjQjj1LImEyYGMn+9xUjbELGKyRObviJI57CTzBdu/b8Ip7CDkkeQuIlQrffY5dB0rtvuqvINHnpqwISR8nTQsExSWbVW7ExSZ4jong1u2ZByJDu7kKsHszkCqQCIl+FLbKLyPtaefwwgWxEP2LvVixiEYtoQgqlHPJJC+XLLqoZRsyvpuKJB0R9XZiA18pfF+Yr3KqKS4qtcFeyVl/FrgNrlN8/aeTun3AlUh34aMPYsqcVOmWmsBMyW1Ysooi487nx/fhKThbwDdVvs0glpz0qObdSyQkchAOAQOUskU3h/AAe7qmqtAqp/QAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxOS0xMi0yOFQwODoyNzo0NCswMDowMPJYdAwAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTktMTItMjhUMDg6Mjc6NDQrMDA6MDCDBcywAAAAAElFTkSuQmCC);width:100px;height:100px;margin-bottom:26px}.fade-enter[data-v-8781f9ec],.fade-leave-to[data-v-8781f9ec]{opacity:0}.fade-enter-to[data-v-8781f9ec],.fade-leave[data-v-8781f9ec]{opacity:1}.fade-enter-active[data-v-8781f9ec],.fade-leave-active[data-v-8781f9ec]{transition:opacity 1s}.required[data-v-0d03152f]:before{content:"*";color:red;margin-right:.25em}.bounceInRight[data-v-a83b50e8]{animation-name:bounceInRight-a83b50e8;animation-duration:1s;animation-fill-mode:both}@keyframes bounceInRight-a83b50e8{0%,60%,75%,90%,to{transition-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}.account-item[data-v-3407b3ac]{margin-bottom:1rem}.menubar[data-v-9a6c5c36]{-webkit-user-select:none;-moz-user-select:none;user-select:none}kbd[data-v-9a6c5c36]{display:inline-flex;justify-content:center;align-items:center;border:1px solid #a8a8a8;padding:1px 4px;border-radius:2px}[data-v-ea1f7a08]{box-sizing:border-box;margin:0;padding:0}html[data-v-ea1f7a08],body[data-v-ea1f7a08]{height:100%;font-family:PingFang SC,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif}input[data-v-ea1f7a08],button[data-v-ea1f7a08],textarea[data-v-ea1f7a08]{font-family:inherit}h1[data-v-ea1f7a08],h2[data-v-ea1f7a08],h3[data-v-ea1f7a08],h4[data-v-ea1f7a08],h5[data-v-ea1f7a08],h6[data-v-ea1f7a08]{font-weight:400}em[data-v-ea1f7a08]{font-style:normal!important}section[data-v-ea1f7a08]{height:100%}.web-title[data-v-ea1f7a08]{margin:0 15px 0 5px}.web-icon[data-v-ea1f7a08]{width:auto;height:1.5rem;vertical-align:middle}#editor[data-v-ea1f7a08]{display:block;height:100%;width:100%;padding:10px;border:none}.ctrl[data-v-ea1f7a08]{flex-basis:60px;flex-grow:1;flex-shrink:1;display:flex;align-items:center}.preview-wrapper[data-v-ea1f7a08]{display:flex;align-items:center;justify-content:center;padding:0;overflow-y:scroll}.hint[data-v-ea1f7a08]{opacity:.6;margin:20px 0}.preview[data-v-ea1f7a08]{position:relative;margin:0 -20px;width:375px;min-height:100%;padding:20px;font-size:14px;box-sizing:border-box;outline:none;word-wrap:break-word}.preview table[data-v-ea1f7a08]{margin-bottom:10px;border-collapse:collapse;display:table;width:100%!important}.container[data-v-ea1f7a08]{height:100vh;min-width:100%;padding:0}.container-main[data-v-ea1f7a08]{overflow:hidden}#output-wrapper[data-v-ea1f7a08]{position:relative;-webkit-user-select:text;-moz-user-select:text;user-select:text;height:100%}.loading-mask[data-v-ea1f7a08]{position:absolute;left:0;top:0;width:100%;height:100%;text-align:center;color:hsl(var(--foreground));background-color:hsl(var(--background))}.loading-mask .loading-mask-box[data-v-ea1f7a08]{position:sticky;top:50%;transform:translateY(-50%)}.loading-mask .loading-mask-box .loading__img[data-v-ea1f7a08]{width:75px;height:75px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAAt1BMVEX///8AAABIz0hHzkdIzkhIz0hIz0hHzkdIzkhFz0VAz0BHzUdIz0hHzkdIzkhIzUhHzUdHzUdIzkhEzEREzERGz0ZIz0hHzUdIzkhIzUhHzkdHzkdHzUdGz0ZIzkhHzkdKzkpIzUhGzUZD00NIzUhGzUZIzkhIzkhHzkdHzkdIzkhHz0dIzUhK1UpHzUdC0EJHzkdHzkdIz0hH1UdHzUdGzkZIzUhJ20lD10NJzklIzkhIzkj////r6/fCAAAAO3RSTlMAACDvoEBg0MAwEI9fz9+A8JDgDx5Ff/r9i+VdbHSDkx9RTRdce+6q6brLb58YSBvtd0oScFTxBxM/v5xq7LMAAAABYktHRACIBR1IAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4wwcCBssFsYwawAAAe9JREFUaN7t2tlywiAUBmABiQY1W6vWbna1i6Z2sYs97/9eNcQ6U40kEMhoh/824qeAxwSo1Wx2MUgimAAQLNNCAanDInWzCAUeahRxUsQx212NxGgaHhMq21sqCHIpdZFpRDoW2ROEtdpY/S1xu8XyEdZZ/BA8VcNbNO6wPIQbAK6akZa2v0rWN0mLk6+G+Gnr3O5qgnR1EjfOQviHCRS7yw02uyELwWGkbHAlCnGR3wkuM4WxLSuGkQNfmLYW5BDE8fUgXcHVXv9oYB45PoGBeQSd5ioaEHSWp+hA0DkMzSNoKFZKI78zuWsQuaA8l3BlEFnm2iL/FrlpZqanFbntZxmjO73IfdbVh31ERjQjj1LImEyYGMn+9xUjbELGKyRObviJI57CTzBdu/b8Ip7CDkkeQuIlQrffY5dB0rtvuqvINHnpqwISR8nTQsExSWbVW7ExSZ4jong1u2ZByJDu7kKsHszkCqQCIl+FLbKLyPtaefwwgWxEP2LvVixiEYtoQgqlHPJJC+XLLqoZRsyvpuKJB0R9XZiA18pfF+Yr3KqKS4qtcFeyVl/FrgNrlN8/aeTun3AlUh34aMPYsqcVOmWmsBMyW1Ysooi487nx/fhKThbwDdVvs0glpz0qObdSyQkchAOAQOUskU3h/AAe7qmqtAqp/QAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxOS0xMi0yOFQwODoyNzo0NCswMDowMPJYdAwAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTktMTItMjhUMDg6Mjc6NDQrMDA6MDCDBcywAAAAAElFTkSuQmCC) no-repeat;margin:1em auto;background-size:cover}[data-v-ea1f7a08] .preview-table{border-spacing:0}.codeMirror-wrapper[data-v-ea1f7a08],.preview-wrapper[data-v-ea1f7a08]{height:100%}.codeMirror-wrapper[data-v-ea1f7a08]{overflow-x:auto}html,body,#app{width:100vw;height:100vh;margin:0;padding:0}body{pointer-events:initial!important}::-webkit-scrollbar{width:6px;height:6px;background-color:#fff}::-webkit-scrollbar-track{border-radius:6px;background-color:#c8c8c84d}::-webkit-scrollbar-thumb{border-radius:6px;background-color:#90929880}.CodeMirror-hints{position:absolute;z-index:10;overflow-y:auto;margin:0;padding:2px;border-radius:4px;max-height:20em;min-width:200px;font-size:12px;font-family:monospace;color:#333;background-color:#fff;box-shadow:0 4px 8px #0000001f,0 2px 4px #00000014}.CodeMirror-hint{margin-top:10px;padding:4px 6px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}.CodeMirror-hint:first-of-type{margin-top:0}.CodeMirror-hint:hover{background:#f0f0f0}.data-\[disabled\]\:pointer-events-none[data-disabled],.pointer-events-none{pointer-events:none}.disabled\:pointer-events-none:disabled{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.left-0{left:0}.left-1\/2{left:50%}.left-2{left:.5rem}.right-0{right:0}.right-3{right:.75rem}.right-4{right:1rem}.top-1\/2{top:50%}.top-3{top:.75rem}.top-4{top:1rem}.z-50{z-index:50}.order-1{order:1}.order-2{order:2}.grid{display:grid}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-5{margin-top:1.25rem;margin-bottom:1.25rem}.my-8{margin-top:2rem;margin-bottom:2rem}.mb-\[-24px\]{margin-bottom:-24px}.mb-\[24px\]{margin-bottom:24px}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mr-2{margin-right:.5rem}.mr-4{margin-right:1rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.inline{display:inline}.block{display:block}.inline-block{display:inline-block}.hidden{display:none}.size-20{width:5rem;height:5rem}.size-4{width:1rem;height:1rem}.h-\[--radix-select-trigger-height\]{height:var(--radix-select-trigger-height)}.h-\[1px\],.h-px{height:1px}.h-\[20px\]{height:20px}.h-\[25px\]{height:25px}.h-\[30px\]{height:30px}.h-10{height:2.5rem}.h-15{height:3.75rem}.h-2,.h2{height:.5rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5,.h5{height:1.25rem}.h-50{height:12.5rem}.h-6{height:1.5rem}.h-60{height:15rem}.h-8{height:2rem}.h-full{height:100%}.h3{height:.75rem}.max-h-\[400px\]{max-height:400px}.max-h-56{max-height:14rem}.max-h-96{max-height:24rem}.max-w-lg{max-width:32rem}.max-w-max{max-width:-moz-max-content;max-width:max-content}.min-h-\[24px\]{min-height:24px}.min-h-\[40px\]{min-height:40px}.min-h-\[64px\]{min-height:64px}.min-h-20{min-height:5rem}.min-h-4{min-height:1rem}.min-w-\[--radix-select-trigger-width\]{min-width:var(--radix-select-trigger-width)}.min-w-\[350px\]{min-width:350px}.min-w-32{min-width:8rem}.min-w-48{min-width:12rem}.w-\[150px\]{width:150px}.w-\[1px\],.w-px{width:1px}.w-\[200px\]{width:200px}.w-\[20px\]{width:20px}.w-\[25px\]{width:25px}.w-0{width:0}.w-10{width:2.5rem}.w-100{width:25rem}.w-11{width:2.75rem}.w-2{width:.5rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-50{width:12.5rem}.w-56{width:14rem}.w-60{width:15rem}.w-64{width:16rem}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-min{width:-moz-min-content;width:min-content}.flex{display:flex}.inline-flex{display:inline-flex}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.-translate-x-1\/2{--un-translate-x:-50%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.-translate-x-full{--un-translate-x:-100%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.-translate-y-1\/2{--un-translate-y:-50%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--un-translate-y:.25rem;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--un-translate-x:-.25rem;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--un-translate-x:.25rem;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--un-translate-y:-.25rem;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.data-\[state\=checked\]\:translate-x-5[data-state=checked]{--un-translate-x:1.25rem;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.translate-x-0{--un-translate-x:0;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.translate-x-100{--un-translate-x:25rem;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.translate-x-full{--un-translate-x:100%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.transform{transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.place-items-center{place-items:center}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-evenly{justify-content:space-evenly}.justify-items-center{justify-items:center}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.gap-y-1\.5{row-gap:.375rem}.gap-y-2{row-gap:.5rem}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.\[\&\>span\]\:truncate>span,.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.border,.border-1,.dark .dark\:border-1{border-width:1px}.border-2{border-width:2px}.file\:border-0::file-selector-button{border-width:0px}.border-x-1{border-left-width:1px;border-right-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-l-0{border-left-width:0px}.border-l-2{border-left-width:2px}.border-r{border-right-width:1px}.border-r-2{border-right-width:2px}.last\:border-b-0:last-child{border-bottom-width:0px}.border-black{--un-border-opacity:1;border-color:rgb(0 0 0 / var(--un-border-opacity))}.border-gray-200,.dark .dark\:border-gray-200{--un-border-opacity:1;border-color:rgb(229 231 235 / var(--un-border-opacity))}.border-gray-700{--un-border-opacity:1;border-color:rgb(55 65 81 / var(--un-border-opacity))}.border-gray\/20{border-color:#9ca3af33}.border-gray\/50{border-color:#9ca3af80}.border-transparent{border-color:transparent}.dark .dark\:border-white{--un-border-opacity:1;border-color:rgb(255 255 255 / var(--un-border-opacity))}.dark .dark\:hover\:border-gray-200:hover{--un-border-opacity:1;border-color:rgb(229 231 235 / var(--un-border-opacity))}.hover\:border-gray-700:hover{--un-border-opacity:1;border-color:rgb(55 65 81 / var(--un-border-opacity))}.rounded{border-radius:.25rem}.rounded-\[4px\]{border-radius:4px}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.border-dashed{border-style:dashed}.bg-black\/80{background-color:#000c}.bg-gray-100{--un-bg-opacity:1;background-color:rgb(243 244 246 / var(--un-bg-opacity))}.bg-gray-2{--un-bg-opacity:1;background-color:rgb(229 231 235 / var(--un-bg-opacity))}.bg-gray-400\/50{background-color:#9ca3af80}.bg-gray\/20{background-color:#9ca3af33}.bg-white{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity))}.dark .dark\:bg-\[\#191919\]{--un-bg-opacity:1;background-color:rgb(25 25 25 / var(--un-bg-opacity))}.dark .dark\:bg-\[\#191c20\]{--un-bg-opacity:1;background-color:rgb(25 28 32 / var(--un-bg-opacity))}.dark .dark\:bg-gray-500\/50{background-color:#6b728080}.dark .dark\:bg-gray-900{--un-bg-opacity:1;background-color:rgb(17 24 39 / var(--un-bg-opacity))}.dark .dark\:bg-gray\/30{background-color:#9ca3af4d}.dark .dark\:bg-stone-9{--un-bg-opacity:1;background-color:rgb(28 25 23 / var(--un-bg-opacity))}.dark .dark\:hover\:bg-gray-500\/50:hover{background-color:#6b728080}.dark .dark\:hover\:bg-gray-600:hover{--un-bg-opacity:1;background-color:rgb(75 85 99 / var(--un-bg-opacity))}.dark .dark\:hover\:bg-gray\/20:hover{background-color:#9ca3af33}.hover\:bg-gray-200:hover{--un-bg-opacity:1;background-color:rgb(229 231 235 / var(--un-bg-opacity))}.hover\:bg-gray-400\/50:hover{background-color:#9ca3af80}.file\:bg-transparent::file-selector-button{background-color:transparent}.fill-current{fill:currentColor}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px,.px-4{padding-left:1rem;padding-right:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.\[\&\>\[data-slot\=input\]\]\:has-\[\[data-slot\=decrement\]\]\:pl-5:has([data-slot=decrement])>[data-slot=input]{padding-left:1.25rem}.\[\&\>\[data-slot\=input\]\]\:has-\[\[data-slot\=increment\]\]\:pr-5:has([data-slot=increment])>[data-slot=input]{padding-right:1.25rem}.pl-7{padding-left:1.75rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.text-center{text-align:center}.text-start{text-align:start}.text-end{text-align:end}.text-\[12px\]{font-size:12px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.dark .dark\:text-white{--un-text-opacity:1;color:rgb(255 255 255 / var(--un-text-opacity))}.text-blue-500{--un-text-opacity:1;color:rgb(59 130 246 / var(--un-text-opacity))}.text-green-600{--un-text-opacity:1;color:rgb(22 163 74 / var(--un-text-opacity))}.text-red-500{--un-text-opacity:1;color:rgb(239 68 68 / var(--un-text-opacity))}.text-red-600{--un-text-opacity:1;color:rgb(220 38 38 / var(--un-text-opacity))}.text-yellow-600{--un-text-opacity:1;color:rgb(202 138 4 / var(--un-text-opacity))}.dark .dark\:hover\:text-white:hover{--un-text-opacity:1;color:rgb(255 255 255 / var(--un-text-opacity))}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.file\:font-medium::file-selector-button{font-weight:500}.\[\&_p\]\:leading-relaxed p{line-height:1.625}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.hover\:underline:hover{text-decoration-line:underline}.data-\[disabled\]\:opacity-50[data-disabled],.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70,.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.hover\:opacity-100:hover{opacity:1}.disabled\:opacity-20:disabled{opacity:.2}.disabled\:opacity-50:disabled{opacity:.5}.group.toaster .group-\[\.toaster\]\:shadow-lg,.shadow-lg{--un-shadow:var(--un-shadow-inset) 0 10px 15px -3px var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 4px 6px -4px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.data-\[state\=active\]\:shadow-sm[data-state=active]{--un-shadow:var(--un-shadow-inset) 0 1px 2px 0 var(--un-shadow-color, rgb(0 0 0 / .05));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.shadow-md{--un-shadow:var(--un-shadow-inset) 0 4px 6px -1px var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 2px 4px -2px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.shadow-none{--un-shadow:0 0 var(--un-shadow-color, rgb(0 0 0 / 0));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.shadow-xl{--un-shadow:var(--un-shadow-inset) 0 20px 25px -5px var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 8px 10px -6px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.outline{outline-style:solid}.outline-none{outline:2px solid transparent;outline-offset:2px}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.ring-0{--un-ring-width:0px;--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.focus\:ring-2:focus{--un-ring-width:2px;--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.focus-visible\:ring-2:focus-visible{--un-ring-width:2px;--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.focus\:ring-offset-2:focus{--un-ring-offset-width:2px}.focus-visible\:ring-offset-2:focus-visible{--un-ring-offset-width:2px}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-color{transition-property:color;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-width{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}@media (min-width: 640px){.sm\:mt-0{margin-top:0}.sm\:max-w-\[425px\]{max-width:425px}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:justify-evenly{justify-content:space-evenly}.sm\:gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.sm\:rounded-lg{border-radius:.5rem}.sm\:text-left{text-align:left}}@media (min-width: 768px){.md\:w-full{width:100%}}.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error,.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:#ff96004d}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative;z-index:0}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors,.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.cm-s-xq-light span.cm-keyword{line-height:1em;font-weight:700;color:#5a5cad}.cm-s-xq-light span.cm-atom{color:#6c8cd5}.cm-s-xq-light span.cm-number{color:#164}.cm-s-xq-light span.cm-def{text-decoration:underline}.cm-s-xq-light span.cm-variable,.cm-s-xq-light span.cm-variable-2,.cm-s-xq-light span.cm-variable-3,.cm-s-xq-light span.cm-type{color:#000}.cm-s-xq-light span.cm-comment{color:#0080ff;font-style:italic}.cm-s-xq-light span.cm-string{color:red}.cm-s-xq-light span.cm-meta{color:#ff0}.cm-s-xq-light span.cm-qualifier{color:gray}.cm-s-xq-light span.cm-builtin{color:#7ea656}.cm-s-xq-light span.cm-bracket{color:#cc7}.cm-s-xq-light span.cm-tag{color:#3f7f7f}.cm-s-xq-light span.cm-attribute{color:#7f007f}.cm-s-xq-light span.cm-error{color:red}.cm-s-xq-light .CodeMirror-activeline-background{background:#e8f2ff}.cm-s-xq-light .CodeMirror-matchingbracket{outline:1px solid grey;color:#000!important;background:#ff0}.cm-s-darcula{font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif}.cm-s-darcula.CodeMirror{background:#2b2b2b;color:#a9b7c6}.cm-s-darcula span.cm-meta{color:#bbb529}.cm-s-darcula span.cm-number{color:#6897bb}.cm-s-darcula span.cm-keyword{color:#cc7832;line-height:1em;font-weight:700}.cm-s-darcula span.cm-def{color:#a9b7c6;font-style:italic}.cm-s-darcula span.cm-variable,.cm-s-darcula span.cm-variable-2{color:#a9b7c6}.cm-s-darcula span.cm-variable-3{color:#9876aa}.cm-s-darcula span.cm-type{color:#abc;font-weight:700}.cm-s-darcula span.cm-property{color:#ffc66d}.cm-s-darcula span.cm-operator{color:#a9b7c6}.cm-s-darcula span.cm-string,.cm-s-darcula span.cm-string-2{color:#6a8759}.cm-s-darcula span.cm-comment{color:#61a151;font-style:italic}.cm-s-darcula span.cm-link,.cm-s-darcula span.cm-atom{color:#cc7832}.cm-s-darcula span.cm-error{color:#bc3f3c}.cm-s-darcula span.cm-tag{color:#629755;font-weight:700;font-style:italic;text-decoration:underline}.cm-s-darcula span.cm-attribute{color:#6897bb}.cm-s-darcula span.cm-qualifier{color:#6a8759}.cm-s-darcula span.cm-bracket{color:#a9b7c6}.cm-s-darcula span.cm-builtin,.cm-s-darcula span.cm-special{color:#ff9e59}.cm-s-darcula span.cm-matchhighlight{color:#fff;background-color:#325930b3;font-weight:400}.cm-s-darcula span.cm-searching{color:#fff;background-color:#3d733bb3;font-weight:400}.cm-s-darcula .CodeMirror-cursor{border-left:1px solid #A9B7C6}.cm-s-darcula .CodeMirror-activeline-background{background:#323232}.cm-s-darcula .CodeMirror-gutters{background:#313335;border-right:1px solid #313335}.cm-s-darcula .CodeMirror-guttermarker{color:#ffee80}.cm-s-darcula .CodeMirror-guttermarker-subtle{color:#d0d0d0}.cm-s-darcula .CodeMirrir-linenumber{color:#606366}.cm-s-darcula .CodeMirror-matchingbracket{background-color:#3b514d;color:#ffef28!important;font-weight:700}.cm-s-darcula div.CodeMirror-selected{background:#214283}.CodeMirror-hints.darcula{font-family:Menlo,Monaco,Consolas,Courier New,monospace;color:#9c9e9e;background-color:#3b3e3f!important}.CodeMirror-hints.darcula .CodeMirror-hint-active{background-color:#494d4e!important;color:#9c9e9e!important}.-translate-x-1\/2,.-translate-x-full,.-translate-y-1\/2,.translate-x-0,.translate-x-full,.transform,[data-side=bottom],[data-side=left],[data-side=right],[data-side=top],[data-state=checked],div{--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1}.shadow-lg,.shadow-md,.shadow-none,.shadow-xl,.group-\[\.toaster\]\:shadow-lg,[data-state=active]{--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000}.ring-0,.focus\:ring-2,.focus-visible\:ring-2{--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000}.grayscale,.filter{--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root{--background: 0 0% 100%;--foreground: 0 0% 3.9%;--card: 0 0% 100%;--card-foreground: 0 0% 3.9%;--popover: 0 0% 100%;--popover-foreground: 0 0% 3.9%;--primary: 0 0% 9%;--primary-foreground: 0 0% 98%;--secondary: 0 0% 96.1%;--secondary-foreground: 0 0% 9%;--muted: 0 0% 96.1%;--muted-foreground: 0 0% 45.1%;--accent: 0 0% 96.1%;--accent-foreground: 0 0% 9%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--border:0 0% 89.8%;--input:0 0% 89.8%;--ring:0 0% 3.9%;--radius: .5rem;--blockquote-background: #f7f7f7}.dark{--background:0 0% 3.9%;--foreground:0 0% 98%;--card:0 0% 3.9%;--card-foreground:0 0% 98%;--popover:0 0% 3.9%;--popover-foreground:0 0% 98%;--primary:0 0% 98%;--primary-foreground:0 0% 9%;--secondary:0 0% 14.9%;--secondary-foreground:0 0% 98%;--muted:0 0% 14.9%;--muted-foreground:0 0% 63.9%;--accent:0 0% 14.9%;--accent-foreground:0 0% 98%;--destructive:0 62.8% 30.6%;--destructive-foreground:0 0% 98%;--border:0 0% 14.9%;--input:0 0% 14.9%;--ring:0 0% 83.1%;--blockquote-background: #212121}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.table{display:table}.h-11{height:2.75rem}.h-2{height:.5rem}.h-5{height:1.25rem}.h-7{height:1.75rem}.h-9{height:2.25rem}.h-\[1px\]{height:1px}.h-px{height:1px}.w-0{width:0px}.w-72{width:18rem}.w-\[1px\]{width:1px}.w-px{width:1px}.border-collapse{border-collapse:collapse}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.break-all{word-break:break-all}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.border{border-width:1px}.border-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity, 1))}.border-border{border-color:hsl(var(--border))}.border-destructive\/50{border-color:hsl(var(--destructive) / .5)}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.border-input{border-color:hsl(var(--input))}.border-primary{border-color:hsl(var(--primary))}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.bg-background{background-color:hsl(var(--background))}.bg-border{background-color:hsl(var(--border))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-500\/50{background-color:#6b728080}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.bg-muted{background-color:hsl(var(--muted))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-clip-padding{background-clip:padding-box}.object-cover{-o-object-fit:cover;object-fit:cover}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.italic{font-style:italic}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-yellow-600{--tw-text-opacity: 1;color:rgb(202 138 4 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.fade-in-80{--tw-enter-opacity: .8}.zoom-in-95{--tw-enter-scale: .95}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\:border-gray-700:hover{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.hover\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary:hover{background-color:hsl(var(--secondary))}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-primary-foreground:hover{color:hsl(var(--primary-foreground))}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--background))}.group.toaster .group-\[\.toaster\]\:border-border{border-color:hsl(var(--border))}.group.toast .group-\[\.toast\]\:bg-muted{background-color:hsl(var(--muted))}.group.toast .group-\[\.toast\]\:bg-primary{background-color:hsl(var(--primary))}.group.toaster .group-\[\.toaster\]\:bg-background{background-color:hsl(var(--background))}.group.toast .group-\[\.toast\]\:text-muted-foreground{color:hsl(var(--muted-foreground))}.group.toast .group-\[\.toast\]\:text-primary-foreground{color:hsl(var(--primary-foreground))}.group.toaster .group-\[\.toaster\]\:text-foreground{color:hsl(var(--foreground))}.group.toaster .group-\[\.toaster\]\:shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=checked\]\:translate-x-5[data-state=checked]{--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:hsl(var(--background))}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:hsl(var(--input))}.data-\[state\=active\]\:text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\[state\=open\]\:text-accent-foreground[data-state=open]{color:hsl(var(--accent-foreground))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=active\]\:shadow-sm[data-state=active]{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x: -50%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y: -48%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x: -50%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y: -48%}.dark\:border-destructive:is(.dark *){border-color:hsl(var(--destructive))}.dark\:border-gray-200:is(.dark *){--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.dark\:border-white:is(.dark *){--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.dark\:bg-\[\#191919\]:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(25 25 25 / var(--tw-bg-opacity, 1))}.dark\:bg-\[\#191c20\]:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(25 28 32 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-500\/50:is(.dark *){background-color:#6b728080}.dark\:bg-gray-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.dark\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark\:hover\:border-gray-200:hover:is(.dark *){--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.dark\:hover\:bg-gray-500\/50:hover:is(.dark *){background-color:#6b728080}.dark\:hover\:bg-gray-600:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.dark\:hover\:text-white:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}@media (min-width: 640px){.sm\:mt-0{margin-top:0}.sm\:max-w-\[425px\]{max-width:425px}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:justify-evenly{justify-content:space-evenly}.sm\:gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:text-left{text-align:left}}.\[\&\>span\]\:truncate>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.\[\&\>svg\+div\]\:translate-y-\[-3px\]>svg+div{--tw-translate-y: -3px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>svg\]\:absolute>svg{position:absolute}.\[\&\>svg\]\:left-4>svg{left:1rem}.\[\&\>svg\]\:top-4>svg{top:1rem}.\[\&\>svg\]\:text-destructive>svg{color:hsl(var(--destructive))}.\[\&\>svg\]\:text-foreground>svg{color:hsl(var(--foreground))}.\[\&\>svg\~\*\]\:pl-7>svg~*{padding-left:1.75rem}.dark .container .CodeMirror-wrap{background-color:#191919}.dark .container .output_night .preview{background-color:#191919;box-shadow:0 0 70px #0000004d}.dark .container .output_night .preview-wrapper{background-color:#191919;box-shadow:inset 0 0 0 1px #e9e7e71a}.dark .container .output_night .code-snippet__fix{background-color:#eee}.dark .container ::-webkit-scrollbar{background-color:#191919}.CodeMirror{padding-bottom:0;height:100%!important;font-size:14px;font-family:PingFang SC,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif!important}.CodeMirror-vscrollbar:focus{outline:none}.CodeMirror-scroll{padding:0 20px;overflow-x:hidden!important;overflow-y:scroll!important}.CodeMirror-vscrollbar{width:0px;height:0px}.CodeMirror-wrap{padding-top:20px;padding-bottom:20px;box-sizing:border-box}.cm-em{font-style:normal}.cm-comment{font-style:normal!important} diff --git a/static/js/md-_basePickBy-DCcDoZXV.js b/static/js/md-_basePickBy-BEC9IKhF.js similarity index 95% rename from static/js/md-_basePickBy-DCcDoZXV.js rename to static/js/md-_basePickBy-BEC9IKhF.js index e47b7d43d..7bdd35836 100644 --- a/static/js/md-_basePickBy-DCcDoZXV.js +++ b/static/js/md-_basePickBy-BEC9IKhF.js @@ -1 +1 @@ -import{e as v,c as O,g as m,k as b,h as P,j as p,l as w,m as A,n as x,t as N,o as c}from"./md-_baseUniq-B_2Z1DXv.js";import{aM as g,aA as M,aN as E,aO as F,aP as T,aQ as I,aR as _,aS as $,aT as y,aU as B}from"./md-index-Pj6M4nIk.js";var S=/\s/;function R(n){for(var r=n.length;r--&&S.test(n.charAt(r)););return r}var G=/^\s+/;function H(n){return n&&n.slice(0,R(n)+1).replace(G,"")}var o=NaN,L=/^[-+]0x[0-9a-f]+$/i,q=/^0b[01]+$/i,z=/^0o[0-7]+$/i,C=parseInt;function K(n){if(typeof n=="number")return n;if(v(n))return o;if(g(n)){var r=typeof n.valueOf=="function"?n.valueOf():n;n=g(r)?r+"":r}if(typeof n!="string")return n===0?n:+n;n=H(n);var t=q.test(n);return t||z.test(n)?C(n.slice(2),t?2:8):L.test(n)?o:+n}var Q=1/0,U=17976931348623157e292;function W(n){if(!n)return n===0?n:0;if(n=K(n),n===Q||n===-1/0){var r=n<0?-1:1;return r*U}return n===n?n:0}function X(n){var r=W(n),t=r%1;return r===r?t?r-t:r:0}function fn(n){var r=n==null?0:n.length;return r?O(n):[]}var l=Object.prototype,Y=l.hasOwnProperty,dn=M(function(n,r){n=Object(n);var t=-1,e=r.length,a=e>2?r[2]:void 0;for(a&&E(r[0],r[1],a)&&(e=1);++t-1?a[f?r[i]:i]:void 0}}var J=Math.max;function Z(n,r,t){var e=n==null?0:n.length;if(!e)return-1;var a=t==null?0:X(t);return a<0&&(a=J(e+a,0)),P(n,m(r),a)}var hn=D(Z);function V(n,r){var t=-1,e=I(n)?Array(n.length):[];return p(n,function(a,f,i){e[++t]=r(a,f,i)}),e}function gn(n,r){var t=_(n)?w:V;return t(n,m(r))}var j=Object.prototype,k=j.hasOwnProperty;function nn(n,r){return n!=null&&k.call(n,r)}function mn(n,r){return n!=null&&A(n,r,nn)}function rn(n,r){return n2?r[2]:void 0;for(a&&E(r[0],r[1],a)&&(e=1);++t-1?a[f?r[i]:i]:void 0}}var J=Math.max;function Z(n,r,t){var e=n==null?0:n.length;if(!e)return-1;var a=t==null?0:X(t);return a<0&&(a=J(e+a,0)),P(n,m(r),a)}var hn=D(Z);function V(n,r){var t=-1,e=I(n)?Array(n.length):[];return p(n,function(a,f,i){e[++t]=r(a,f,i)}),e}function gn(n,r){var t=_(n)?w:V;return t(n,m(r))}var j=Object.prototype,k=j.hasOwnProperty;function nn(n,r){return n!=null&&k.call(n,r)}function mn(n,r){return n!=null&&A(n,r,nn)}function rn(n,r){return n-1}function $(n){return sn(n)?xn(n):Mn(n)}var kn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nr=/^\w*$/;function N(n,r){if(T(n))return!1;var e=typeof n;return e=="number"||e=="symbol"||e=="boolean"||n==null||B(n)?!0:nr.test(n)||!kn.test(n)||r!=null&&n in Object(r)}var rr=500;function er(n){var r=mn(n,function(t){return e.size===rr&&e.clear(),t}),e=r.cache;return r}var tr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ir=/\\(\\)?/g,fr=er(function(n){var r=[];return n.charCodeAt(0)===46&&r.push(""),n.replace(tr,function(e,t,f,i){r.push(f?i.replace(ir,"$1"):t||e)}),r});function ar(n){return n==null?"":dn(n)}function An(n,r){return T(n)?n:N(n,r)?[n]:fr(ar(n))}function M(n){if(typeof n=="string"||B(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}function yn(n,r){r=An(r,n);for(var e=0,t=r.length;n!=null&&es))return!1;var b=i.get(n),l=i.get(r);if(b&&l)return b==r&&l==n;var o=-1,c=!0,h=e&ve?new P:void 0;for(i.set(n,r),i.set(r,n);++o=ht){var b=r?null:Tt(n);if(b)return H(b);a=!1,f=En,u=new P}else u=r?[]:s;n:for(;++t-1}function $(n){return sn(n)?xn(n):Mn(n)}var kn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nr=/^\w*$/;function N(n,r){if(T(n))return!1;var e=typeof n;return e=="number"||e=="symbol"||e=="boolean"||n==null||B(n)?!0:nr.test(n)||!kn.test(n)||r!=null&&n in Object(r)}var rr=500;function er(n){var r=mn(n,function(t){return e.size===rr&&e.clear(),t}),e=r.cache;return r}var tr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ir=/\\(\\)?/g,fr=er(function(n){var r=[];return n.charCodeAt(0)===46&&r.push(""),n.replace(tr,function(e,t,f,i){r.push(f?i.replace(ir,"$1"):t||e)}),r});function ar(n){return n==null?"":dn(n)}function An(n,r){return T(n)?n:N(n,r)?[n]:fr(ar(n))}function M(n){if(typeof n=="string"||B(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}function yn(n,r){r=An(r,n);for(var e=0,t=r.length;n!=null&&es))return!1;var b=i.get(n),l=i.get(r);if(b&&l)return b==r&&l==n;var o=-1,c=!0,h=e&ve?new P:void 0;for(i.set(n,r),i.set(r,n);++o=ht){var b=r?null:Tt(n);if(b)return H(b);a=!1,f=En,u=new P}else u=r?[]:s;n:for(;++tr*r+F*F&&($=w,j=p),{cx:$,cy:j,x01:-n,y01:-d,x11:$*(v/T-1),y11:j*(v/T-1)}}function hn(){var l=cn,h=yn,I=z(0),D=null,v=gn,A=dn,B=mn,a=null,O=ln(i);function i(){var n,d,u=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-an,c=A.apply(this,arguments)-an,C=un(c-f),t=c>f;if(a||(a=n=O()),sy))a.moveTo(0,0);else if(C>tn-y)a.moveTo(s*G(f),s*q(f)),a.arc(0,0,s,f,c,!t),u>y&&(a.moveTo(u*G(c),u*q(c)),a.arc(0,0,u,c,f,t));else{var m=f,g=c,R=f,T=c,P=C,S=C,$=B.apply(this,arguments)/2,j=$>y&&(D?+D.apply(this,arguments):K(u*u+s*s)),w=_(un(s-u)/2,+I.apply(this,arguments)),p=w,x=w,e,r;if(j>y){var F=sn(j/u*q($)),L=sn(j/s*q($));(P-=F*2)>y?(F*=t?1:-1,R+=F,T-=F):(P=0,R=T=(f+c)/2),(S-=L*2)>y?(L*=t?1:-1,m+=L,g-=L):(S=0,m=g=(f+c)/2)}var H=s*G(m),J=s*q(m),M=u*G(T),N=u*q(T);if(w>y){var Q=s*G(g),U=s*q(g),W=u*G(R),X=u*q(R),E;if(Cy?x>y?(e=V(W,X,H,J,s,x,t),r=V(Q,U,M,N,s,x,t),a.moveTo(e.cx+e.x01,e.cy+e.y01),xy)||!(P>y)?a.lineTo(M,N):p>y?(e=V(M,N,Q,U,u,-p,t),r=V(H,J,W,X,u,-p,t),a.lineTo(e.cx+e.x01,e.cy+e.y01),pr*r+F*F&&($=w,j=p),{cx:$,cy:j,x01:-n,y01:-d,x11:$*(v/T-1),y11:j*(v/T-1)}}function hn(){var l=cn,h=yn,I=z(0),D=null,v=gn,A=dn,B=mn,a=null,O=ln(i);function i(){var n,d,u=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-an,c=A.apply(this,arguments)-an,C=un(c-f),t=c>f;if(a||(a=n=O()),sy))a.moveTo(0,0);else if(C>tn-y)a.moveTo(s*G(f),s*q(f)),a.arc(0,0,s,f,c,!t),u>y&&(a.moveTo(u*G(c),u*q(c)),a.arc(0,0,u,c,f,t));else{var m=f,g=c,R=f,T=c,P=C,S=C,$=B.apply(this,arguments)/2,j=$>y&&(D?+D.apply(this,arguments):K(u*u+s*s)),w=_(un(s-u)/2,+I.apply(this,arguments)),p=w,x=w,e,r;if(j>y){var F=sn(j/u*q($)),L=sn(j/s*q($));(P-=F*2)>y?(F*=t?1:-1,R+=F,T-=F):(P=0,R=T=(f+c)/2),(S-=L*2)>y?(L*=t?1:-1,m+=L,g-=L):(S=0,m=g=(f+c)/2)}var H=s*G(m),J=s*q(m),M=u*G(T),N=u*q(T);if(w>y){var Q=s*G(g),U=s*q(g),W=u*G(R),X=u*q(R),E;if(Cy?x>y?(e=V(W,X,H,J,s,x,t),r=V(Q,U,M,N,s,x,t),a.moveTo(e.cx+e.x01,e.cy+e.y01),xy)||!(P>y)?a.lineTo(M,N):p>y?(e=V(M,N,Q,U,u,-p,t),r=V(H,J,W,X,u,-p,t),a.lineTo(e.cx+e.x01,e.cy+e.y01),ph?(this.rect.x-=(this.labelWidth-h)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal=="right"&&this.setWidth(h+this.labelWidth)),this.labelHeight&&(this.labelPosVertical=="top"?(this.rect.y-=this.labelHeight,this.setHeight(o+this.labelHeight)):this.labelPosVertical=="center"&&this.labelHeight>o?(this.rect.y-=(this.labelHeight-o)/2,this.setHeight(this.labelHeight)):this.labelPosVertical=="bottom"&&this.setHeight(o+this.labelHeight))}}},a.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==s.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},a.prototype.transform=function(t){var h=this.rect.x;h>r.WORLD_BOUNDARY?h=r.WORLD_BOUNDARY:h<-r.WORLD_BOUNDARY&&(h=-r.WORLD_BOUNDARY);var o=this.rect.y;o>r.WORLD_BOUNDARY?o=r.WORLD_BOUNDARY:o<-r.WORLD_BOUNDARY&&(o=-r.WORLD_BOUNDARY);var c=new f(h,o),l=t.inverseTransformPoint(c);this.setLocation(l.x,l.y)},a.prototype.getLeft=function(){return this.rect.x},a.prototype.getRight=function(){return this.rect.x+this.rect.width},a.prototype.getTop=function(){return this.rect.y},a.prototype.getBottom=function(){return this.rect.y+this.rect.height},a.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},C.exports=a},function(C,G,N){var g=N(0);function s(){}for(var i in g)s[i]=g[i];s.MAX_ITERATIONS=2500,s.DEFAULT_EDGE_LENGTH=50,s.DEFAULT_SPRING_STRENGTH=.45,s.DEFAULT_REPULSION_STRENGTH=4500,s.DEFAULT_GRAVITY_STRENGTH=.4,s.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,s.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,s.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,s.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,s.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,s.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,s.COOLING_ADAPTATION_FACTOR=.33,s.ADAPTATION_LOWER_NODE_LIMIT=1e3,s.ADAPTATION_UPPER_NODE_LIMIT=5e3,s.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,s.MAX_NODE_DISPLACEMENT=s.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,s.MIN_REPULSION_DIST=s.DEFAULT_EDGE_LENGTH/10,s.CONVERGENCE_CHECK_PERIOD=100,s.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,s.MIN_EDGE_LENGTH=1,s.GRID_CALCULATION_CHECK_PERIOD=10,C.exports=s},function(C,G,N){function g(s,i){s==null&&i==null?(this.x=0,this.y=0):(this.x=s,this.y=i)}g.prototype.getX=function(){return this.x},g.prototype.getY=function(){return this.y},g.prototype.setX=function(s){this.x=s},g.prototype.setY=function(s){this.y=s},g.prototype.getDifference=function(s){return new DimensionD(this.x-s.x,this.y-s.y)},g.prototype.getCopy=function(){return new g(this.x,this.y)},g.prototype.translate=function(s){return this.x+=s.width,this.y+=s.height,this},C.exports=g},function(C,G,N){var g=N(2),s=N(10),i=N(0),r=N(7),e=N(3),f=N(1),a=N(13),y=N(12),t=N(11);function h(c,l,T){g.call(this,T),this.estimatedSize=s.MIN_VALUE,this.margin=i.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=c,l!=null&&l instanceof r?this.graphManager=l:l!=null&&l instanceof Layout&&(this.graphManager=l.graphManager)}h.prototype=Object.create(g.prototype);for(var o in g)h[o]=g[o];h.prototype.getNodes=function(){return this.nodes},h.prototype.getEdges=function(){return this.edges},h.prototype.getGraphManager=function(){return this.graphManager},h.prototype.getParent=function(){return this.parent},h.prototype.getLeft=function(){return this.left},h.prototype.getRight=function(){return this.right},h.prototype.getTop=function(){return this.top},h.prototype.getBottom=function(){return this.bottom},h.prototype.isConnected=function(){return this.isConnected},h.prototype.add=function(c,l,T){if(l==null&&T==null){var u=c;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(u)>-1)throw"Node already in graph!";return u.owner=this,this.getNodes().push(u),u}else{var v=c;if(!(this.getNodes().indexOf(l)>-1&&this.getNodes().indexOf(T)>-1))throw"Source or target not in graph!";if(!(l.owner==T.owner&&l.owner==this))throw"Both owners must be this graph!";return l.owner!=T.owner?null:(v.source=l,v.target=T,v.isInterGraph=!1,this.getEdges().push(v),l.edges.push(v),T!=l&&T.edges.push(v),v)}},h.prototype.remove=function(c){var l=c;if(c instanceof e){if(l==null)throw"Node is null!";if(!(l.owner!=null&&l.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var T=l.edges.slice(),u,v=T.length,L=0;L-1&&P>-1))throw"Source and/or target doesn't know this edge!";u.source.edges.splice(A,1),u.target!=u.source&&u.target.edges.splice(P,1);var F=u.source.owner.getEdges().indexOf(u);if(F==-1)throw"Not in owner's edge list!";u.source.owner.getEdges().splice(F,1)}},h.prototype.updateLeftTop=function(){for(var c=s.MAX_VALUE,l=s.MAX_VALUE,T,u,v,L=this.getNodes(),F=L.length,A=0;AT&&(c=T),l>u&&(l=u)}return c==s.MAX_VALUE?null:(L[0].getParent().paddingLeft!=null?v=L[0].getParent().paddingLeft:v=this.margin,this.left=l-v,this.top=c-v,new y(this.left,this.top))},h.prototype.updateBounds=function(c){for(var l=s.MAX_VALUE,T=-s.MAX_VALUE,u=s.MAX_VALUE,v=-s.MAX_VALUE,L,F,A,P,J,V=this.nodes,Q=V.length,D=0;DL&&(l=L),TA&&(u=A),vL&&(l=L),TA&&(u=A),v=this.nodes.length){var Q=0;T.forEach(function(D){D.owner==c&&Q++}),Q==this.nodes.length&&(this.isConnected=!0)}},C.exports=h},function(C,G,N){var g,s=N(1);function i(r){g=N(6),this.layout=r,this.graphs=[],this.edges=[]}i.prototype.addRoot=function(){var r=this.layout.newGraph(),e=this.layout.newNode(null),f=this.add(r,e);return this.setRootGraph(f),this.rootGraph},i.prototype.add=function(r,e,f,a,y){if(f==null&&a==null&&y==null){if(r==null)throw"Graph is null!";if(e==null)throw"Parent node is null!";if(this.graphs.indexOf(r)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(r),r.parent!=null)throw"Already has a parent!";if(e.child!=null)throw"Already has a child!";return r.parent=e,e.child=r,r}else{y=f,a=e,f=r;var t=a.getOwner(),h=y.getOwner();if(!(t!=null&&t.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(h!=null&&h.getGraphManager()==this))throw"Target not in this graph mgr!";if(t==h)return f.isInterGraph=!1,t.add(f,a,y);if(f.isInterGraph=!0,f.source=a,f.target=y,this.edges.indexOf(f)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(f),!(f.source!=null&&f.target!=null))throw"Edge source and/or target is null!";if(!(f.source.edges.indexOf(f)==-1&&f.target.edges.indexOf(f)==-1))throw"Edge already in source and/or target incidency list!";return f.source.edges.push(f),f.target.edges.push(f),f}},i.prototype.remove=function(r){if(r instanceof g){var e=r;if(e.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(e==this.rootGraph||e.parent!=null&&e.parent.graphManager==this))throw"Invalid parent node!";var f=[];f=f.concat(e.getEdges());for(var a,y=f.length,t=0;t=r.getRight()?e[0]+=Math.min(r.getX()-i.getX(),i.getRight()-r.getRight()):r.getX()<=i.getX()&&r.getRight()>=i.getRight()&&(e[0]+=Math.min(i.getX()-r.getX(),r.getRight()-i.getRight())),i.getY()<=r.getY()&&i.getBottom()>=r.getBottom()?e[1]+=Math.min(r.getY()-i.getY(),i.getBottom()-r.getBottom()):r.getY()<=i.getY()&&r.getBottom()>=i.getBottom()&&(e[1]+=Math.min(i.getY()-r.getY(),r.getBottom()-i.getBottom()));var y=Math.abs((r.getCenterY()-i.getCenterY())/(r.getCenterX()-i.getCenterX()));r.getCenterY()===i.getCenterY()&&r.getCenterX()===i.getCenterX()&&(y=1);var t=y*e[0],h=e[1]/y;e[0]t)return e[0]=f,e[1]=o,e[2]=y,e[3]=V,!1;if(ay)return e[0]=h,e[1]=a,e[2]=P,e[3]=t,!1;if(fy?(e[0]=l,e[1]=T,n=!0):(e[0]=c,e[1]=o,n=!0):d===p&&(f>y?(e[0]=h,e[1]=o,n=!0):(e[0]=u,e[1]=T,n=!0)),-E===p?y>f?(e[2]=J,e[3]=V,m=!0):(e[2]=P,e[3]=A,m=!0):E===p&&(y>f?(e[2]=F,e[3]=A,m=!0):(e[2]=Q,e[3]=V,m=!0)),n&&m)return!1;if(f>y?a>t?(I=this.getCardinalDirection(d,p,4),w=this.getCardinalDirection(E,p,2)):(I=this.getCardinalDirection(-d,p,3),w=this.getCardinalDirection(-E,p,1)):a>t?(I=this.getCardinalDirection(-d,p,1),w=this.getCardinalDirection(-E,p,3)):(I=this.getCardinalDirection(d,p,2),w=this.getCardinalDirection(E,p,4)),!n)switch(I){case 1:H=o,R=f+-L/p,e[0]=R,e[1]=H;break;case 2:R=u,H=a+v*p,e[0]=R,e[1]=H;break;case 3:H=T,R=f+L/p,e[0]=R,e[1]=H;break;case 4:R=l,H=a+-v*p,e[0]=R,e[1]=H;break}if(!m)switch(w){case 1:k=A,x=y+-rt/p,e[2]=x,e[3]=k;break;case 2:x=Q,k=t+D*p,e[2]=x,e[3]=k;break;case 3:k=V,x=y+rt/p,e[2]=x,e[3]=k;break;case 4:x=J,k=t+-D*p,e[2]=x,e[3]=k;break}}return!1},s.getCardinalDirection=function(i,r,e){return i>r?e:1+e%4},s.getIntersection=function(i,r,e,f){if(f==null)return this.getIntersection2(i,r,e);var a=i.x,y=i.y,t=r.x,h=r.y,o=e.x,c=e.y,l=f.x,T=f.y,u=void 0,v=void 0,L=void 0,F=void 0,A=void 0,P=void 0,J=void 0,V=void 0,Q=void 0;return L=h-y,A=a-t,J=t*y-a*h,F=T-c,P=o-l,V=l*c-o*T,Q=L*P-F*A,Q===0?null:(u=(A*V-P*J)/Q,v=(F*J-L*V)/Q,new g(u,v))},s.angleOfVector=function(i,r,e,f){var a=void 0;return i!==e?(a=Math.atan((f-r)/(e-i)),e=0){var T=(-o+Math.sqrt(o*o-4*h*c))/(2*h),u=(-o-Math.sqrt(o*o-4*h*c))/(2*h),v=null;return T>=0&&T<=1?[T]:u>=0&&u<=1?[u]:v}else return null},s.HALF_PI=.5*Math.PI,s.ONE_AND_HALF_PI=1.5*Math.PI,s.TWO_PI=2*Math.PI,s.THREE_PI=3*Math.PI,C.exports=s},function(C,G,N){function g(){}g.sign=function(s){return s>0?1:s<0?-1:0},g.floor=function(s){return s<0?Math.ceil(s):Math.floor(s)},g.ceil=function(s){return s<0?Math.floor(s):Math.ceil(s)},C.exports=g},function(C,G,N){function g(){}g.MAX_VALUE=2147483647,g.MIN_VALUE=-2147483648,C.exports=g},function(C,G,N){var g=function(){function a(y,t){for(var h=0;h"u"?"undefined":g(i);return i==null||r!="object"&&r!="function"},C.exports=s},function(C,G,N){function g(o){if(Array.isArray(o)){for(var c=0,l=Array(o.length);c0&&c;){for(L.push(A[0]);L.length>0&&c;){var P=L[0];L.splice(0,1),v.add(P);for(var J=P.getEdges(),u=0;u-1&&A.splice(rt,1)}v=new Set,F=new Map}}return o},h.prototype.createDummyNodesForBendpoints=function(o){for(var c=[],l=o.source,T=this.graphManager.calcLowestCommonAncestor(o.source,o.target),u=0;u0){for(var T=this.edgeToDummyNodes.get(l),u=0;u=0&&c.splice(V,1);var Q=F.getNeighborsList();Q.forEach(function(n){if(l.indexOf(n)<0){var m=T.get(n),d=m-1;d==1&&P.push(n),T.set(n,d)}})}l=l.concat(P),(c.length==1||c.length==2)&&(u=!0,v=c[0])}return v},h.prototype.setGraphManager=function(o){this.graphManager=o},C.exports=h},function(C,G,N){function g(){}g.seed=1,g.x=0,g.nextDouble=function(){return g.x=Math.sin(g.seed++)*1e4,g.x-Math.floor(g.x)},C.exports=g},function(C,G,N){var g=N(5);function s(i,r){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}s.prototype.getWorldOrgX=function(){return this.lworldOrgX},s.prototype.setWorldOrgX=function(i){this.lworldOrgX=i},s.prototype.getWorldOrgY=function(){return this.lworldOrgY},s.prototype.setWorldOrgY=function(i){this.lworldOrgY=i},s.prototype.getWorldExtX=function(){return this.lworldExtX},s.prototype.setWorldExtX=function(i){this.lworldExtX=i},s.prototype.getWorldExtY=function(){return this.lworldExtY},s.prototype.setWorldExtY=function(i){this.lworldExtY=i},s.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},s.prototype.setDeviceOrgX=function(i){this.ldeviceOrgX=i},s.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},s.prototype.setDeviceOrgY=function(i){this.ldeviceOrgY=i},s.prototype.getDeviceExtX=function(){return this.ldeviceExtX},s.prototype.setDeviceExtX=function(i){this.ldeviceExtX=i},s.prototype.getDeviceExtY=function(){return this.ldeviceExtY},s.prototype.setDeviceExtY=function(i){this.ldeviceExtY=i},s.prototype.transformX=function(i){var r=0,e=this.lworldExtX;return e!=0&&(r=this.ldeviceOrgX+(i-this.lworldOrgX)*this.ldeviceExtX/e),r},s.prototype.transformY=function(i){var r=0,e=this.lworldExtY;return e!=0&&(r=this.ldeviceOrgY+(i-this.lworldOrgY)*this.ldeviceExtY/e),r},s.prototype.inverseTransformX=function(i){var r=0,e=this.ldeviceExtX;return e!=0&&(r=this.lworldOrgX+(i-this.ldeviceOrgX)*this.lworldExtX/e),r},s.prototype.inverseTransformY=function(i){var r=0,e=this.ldeviceExtY;return e!=0&&(r=this.lworldOrgY+(i-this.ldeviceOrgY)*this.lworldExtY/e),r},s.prototype.inverseTransformPoint=function(i){var r=new g(this.inverseTransformX(i.x),this.inverseTransformY(i.y));return r},C.exports=s},function(C,G,N){function g(t){if(Array.isArray(t)){for(var h=0,o=Array(t.length);hi.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*i.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(t-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-i.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=i.MAX_NODE_DISPLACEMENT_INCREMENTAL):(t>i.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(i.COOLING_ADAPTATION_FACTOR,1-(t-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*(1-i.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=i.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*i.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},a.prototype.calcSpringForces=function(){for(var t=this.getAllEdges(),h,o=0;o0&&arguments[0]!==void 0?arguments[0]:!0,h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o,c,l,T,u=this.getAllNodes(),v;if(this.useFRGridVariant)for(this.totalIterations%i.GRID_CALCULATION_CHECK_PERIOD==1&&t&&this.updateGrid(),v=new Set,o=0;oL||v>L)&&(t.gravitationForceX=-this.gravityConstant*l,t.gravitationForceY=-this.gravityConstant*T)):(L=h.getEstimatedSize()*this.compoundGravityRangeFactor,(u>L||v>L)&&(t.gravitationForceX=-this.gravityConstant*l*this.compoundGravityConstant,t.gravitationForceY=-this.gravityConstant*T*this.compoundGravityConstant))},a.prototype.isConverged=function(){var t,h=!1;return this.totalIterations>this.maxIterations/3&&(h=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),t=this.totalDisplacement=u.length||L>=u[0].length)){for(var F=0;Fa}}]),e}();C.exports=r},function(C,G,N){function g(){}g.svd=function(s){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=s.length,this.n=s[0].length;var i=Math.min(this.m,this.n);this.s=function(Nt){for(var At=[];Nt-- >0;)At.push(0);return At}(Math.min(this.m+1,this.n)),this.U=function(Nt){var At=function Zt(Gt){if(Gt.length==0)return 0;for(var $t=[],Ft=0;Ft0;)At.push(0);return At}(this.n),e=function(Nt){for(var At=[];Nt-- >0;)At.push(0);return At}(this.m),f=!0,a=Math.min(this.m-1,this.n),y=Math.max(0,Math.min(this.n-2,this.m)),t=0;t=0;E--)if(this.s[E]!==0){for(var p=E+1;p=0;W--){if(function(Nt,At){return Nt&&At}(W0;){var q=void 0,Rt=void 0;for(q=n-2;q>=-1&&q!==-1;q--)if(Math.abs(r[q])<=lt+_*(Math.abs(this.s[q])+Math.abs(this.s[q+1]))){r[q]=0;break}if(q===n-2)Rt=4;else{var Lt=void 0;for(Lt=n-1;Lt>=q&&Lt!==q;Lt--){var dt=(Lt!==n?Math.abs(r[Lt]):0)+(Lt!==q+1?Math.abs(r[Lt-1]):0);if(Math.abs(this.s[Lt])<=lt+_*dt){this.s[Lt]=0;break}}Lt===q?Rt=3:Lt===n-1?Rt=1:(Rt=2,q=Lt)}switch(q++,Rt){case 1:{var it=r[n-2];r[n-2]=0;for(var ut=n-2;ut>=q;ut--){var Tt=g.hypot(this.s[ut],it),Ct=this.s[ut]/Tt,Dt=it/Tt;this.s[ut]=Tt,ut!==q&&(it=-Dt*r[ut-1],r[ut-1]=Ct*r[ut-1]);for(var mt=0;mt=this.s[q+1]);){var Mt=this.s[q];if(this.s[q]=this.s[q+1],this.s[q+1]=Mt,qMath.abs(i)?(r=i/s,r=Math.abs(s)*Math.sqrt(1+r*r)):i!=0?(r=s/i,r=Math.abs(i)*Math.sqrt(1+r*r)):r=0,r},C.exports=g},function(C,G,N){var g=function(){function r(e,f){for(var a=0;a2&&arguments[2]!==void 0?arguments[2]:1,y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,t=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;s(this,r),this.sequence1=e,this.sequence2=f,this.match_score=a,this.mismatch_penalty=y,this.gap_penalty=t,this.iMax=e.length+1,this.jMax=f.length+1,this.grid=new Array(this.iMax);for(var h=0;h=0;e--){var f=this.listeners[e];f.event===i&&f.callback===r&&this.listeners.splice(e,1)}},s.emit=function(i,r){for(var e=0;e{var G={45:(i,r,e)=>{var f={};f.layoutBase=e(551),f.CoSEConstants=e(806),f.CoSEEdge=e(767),f.CoSEGraph=e(880),f.CoSEGraphManager=e(578),f.CoSELayout=e(765),f.CoSENode=e(991),f.ConstraintHandler=e(902),i.exports=f},806:(i,r,e)=>{var f=e(551).FDLayoutConstants;function a(){}for(var y in f)a[y]=f[y];a.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,a.DEFAULT_RADIAL_SEPARATION=f.DEFAULT_EDGE_LENGTH,a.DEFAULT_COMPONENT_SEPERATION=60,a.TILE=!0,a.TILING_PADDING_VERTICAL=10,a.TILING_PADDING_HORIZONTAL=10,a.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,a.ENFORCE_CONSTRAINTS=!0,a.APPLY_LAYOUT=!0,a.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,a.TREE_REDUCTION_ON_INCREMENTAL=!0,a.PURE_INCREMENTAL=a.DEFAULT_INCREMENTAL,i.exports=a},767:(i,r,e)=>{var f=e(551).FDLayoutEdge;function a(t,h,o){f.call(this,t,h,o)}a.prototype=Object.create(f.prototype);for(var y in f)a[y]=f[y];i.exports=a},880:(i,r,e)=>{var f=e(551).LGraph;function a(t,h,o){f.call(this,t,h,o)}a.prototype=Object.create(f.prototype);for(var y in f)a[y]=f[y];i.exports=a},578:(i,r,e)=>{var f=e(551).LGraphManager;function a(t){f.call(this,t)}a.prototype=Object.create(f.prototype);for(var y in f)a[y]=f[y];i.exports=a},765:(i,r,e)=>{var f=e(551).FDLayout,a=e(578),y=e(880),t=e(991),h=e(767),o=e(806),c=e(902),l=e(551).FDLayoutConstants,T=e(551).LayoutConstants,u=e(551).Point,v=e(551).PointD,L=e(551).DimensionD,F=e(551).Layout,A=e(551).Integer,P=e(551).IGeometry,J=e(551).LGraph,V=e(551).Transform,Q=e(551).LinkedList;function D(){f.call(this),this.toBeTiled={},this.constraints={}}D.prototype=Object.create(f.prototype);for(var rt in f)D[rt]=f[rt];D.prototype.newGraphManager=function(){var n=new a(this);return this.graphManager=n,n},D.prototype.newGraph=function(n){return new y(null,this.graphManager,n)},D.prototype.newNode=function(n){return new t(this.graphManager,n)},D.prototype.newEdge=function(n){return new h(null,null,n)},D.prototype.initParameters=function(){f.prototype.initParameters.call(this,arguments),this.isSubLayout||(o.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=o.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=o.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=l.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=l.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=l.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},D.prototype.initSpringEmbedder=function(){f.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/l.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},D.prototype.layout=function(){var n=T.DEFAULT_CREATE_BENDS_AS_NEEDED;return n&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},D.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(o.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var m=new Set(this.getAllNodes()),d=this.nodesWithGravity.filter(function(I){return m.has(I)});this.graphManager.setAllNodesToApplyGravitation(d)}}else{var n=this.getFlatForest();if(n.length>0)this.positionNodesRadially(n);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var m=new Set(this.getAllNodes()),d=this.nodesWithGravity.filter(function(E){return m.has(E)});this.graphManager.setAllNodesToApplyGravitation(d),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(c.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),o.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},D.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%l.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var n=new Set(this.getAllNodes()),m=this.nodesWithGravity.filter(function(p){return n.has(p)});this.graphManager.setAllNodesToApplyGravitation(m),this.graphManager.updateBounds(),this.updateGrid(),o.PURE_INCREMENTAL?this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),o.PURE_INCREMENTAL?this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var d=!this.isTreeGrowing&&!this.isGrowthFinished,E=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(d,E),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},D.prototype.getPositionsData=function(){for(var n=this.graphManager.getAllNodes(),m={},d=0;d0&&this.updateDisplacements();for(var d=0;d0&&(E.fixedNodeWeight=I)}}if(this.constraints.relativePlacementConstraint){var w=new Map,R=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(O){n.fixedNodesOnHorizontal.add(O),n.fixedNodesOnVertical.add(O)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var H=this.constraints.alignmentConstraint.vertical,d=0;d=2*O.length/3;_--)X=Math.floor(Math.random()*(_+1)),B=O[_],O[_]=O[X],O[X]=B;return O},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(O){if(O.left){var X=w.has(O.left)?w.get(O.left):O.left,B=w.has(O.right)?w.get(O.right):O.right;n.nodesInRelativeHorizontal.includes(X)||(n.nodesInRelativeHorizontal.push(X),n.nodeToRelativeConstraintMapHorizontal.set(X,[]),n.dummyToNodeForVerticalAlignment.has(X)?n.nodeToTempPositionMapHorizontal.set(X,n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(X)[0]).getCenterX()):n.nodeToTempPositionMapHorizontal.set(X,n.idToNodeMap.get(X).getCenterX())),n.nodesInRelativeHorizontal.includes(B)||(n.nodesInRelativeHorizontal.push(B),n.nodeToRelativeConstraintMapHorizontal.set(B,[]),n.dummyToNodeForVerticalAlignment.has(B)?n.nodeToTempPositionMapHorizontal.set(B,n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(B)[0]).getCenterX()):n.nodeToTempPositionMapHorizontal.set(B,n.idToNodeMap.get(B).getCenterX())),n.nodeToRelativeConstraintMapHorizontal.get(X).push({right:B,gap:O.gap}),n.nodeToRelativeConstraintMapHorizontal.get(B).push({left:X,gap:O.gap})}else{var _=R.has(O.top)?R.get(O.top):O.top,lt=R.has(O.bottom)?R.get(O.bottom):O.bottom;n.nodesInRelativeVertical.includes(_)||(n.nodesInRelativeVertical.push(_),n.nodeToRelativeConstraintMapVertical.set(_,[]),n.dummyToNodeForHorizontalAlignment.has(_)?n.nodeToTempPositionMapVertical.set(_,n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(_)[0]).getCenterY()):n.nodeToTempPositionMapVertical.set(_,n.idToNodeMap.get(_).getCenterY())),n.nodesInRelativeVertical.includes(lt)||(n.nodesInRelativeVertical.push(lt),n.nodeToRelativeConstraintMapVertical.set(lt,[]),n.dummyToNodeForHorizontalAlignment.has(lt)?n.nodeToTempPositionMapVertical.set(lt,n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(lt)[0]).getCenterY()):n.nodeToTempPositionMapVertical.set(lt,n.idToNodeMap.get(lt).getCenterY())),n.nodeToRelativeConstraintMapVertical.get(_).push({bottom:lt,gap:O.gap}),n.nodeToRelativeConstraintMapVertical.get(lt).push({top:_,gap:O.gap})}});else{var k=new Map,W=new Map;this.constraints.relativePlacementConstraint.forEach(function(O){if(O.left){var X=w.has(O.left)?w.get(O.left):O.left,B=w.has(O.right)?w.get(O.right):O.right;k.has(X)?k.get(X).push(B):k.set(X,[B]),k.has(B)?k.get(B).push(X):k.set(B,[X])}else{var _=R.has(O.top)?R.get(O.top):O.top,lt=R.has(O.bottom)?R.get(O.bottom):O.bottom;W.has(_)?W.get(_).push(lt):W.set(_,[lt]),W.has(lt)?W.get(lt).push(_):W.set(lt,[_])}});var U=function(X,B){var _=[],lt=[],q=new Q,Rt=new Set,Lt=0;return X.forEach(function(dt,it){if(!Rt.has(it)){_[Lt]=[],lt[Lt]=!1;var ut=it;for(q.push(ut),Rt.add(ut),_[Lt].push(ut);q.length!=0;){ut=q.shift(),B.has(ut)&&(lt[Lt]=!0);var Tt=X.get(ut);Tt.forEach(function(Ct){Rt.has(Ct)||(q.push(Ct),Rt.add(Ct),_[Lt].push(Ct))})}Lt++}}),{components:_,isFixed:lt}},et=U(k,n.fixedNodesOnHorizontal);this.componentsOnHorizontal=et.components,this.fixedComponentsOnHorizontal=et.isFixed;var z=U(W,n.fixedNodesOnVertical);this.componentsOnVertical=z.components,this.fixedComponentsOnVertical=z.isFixed}}},D.prototype.updateDisplacements=function(){var n=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(z){var O=n.idToNodeMap.get(z.nodeId);O.displacementX=0,O.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var m=this.constraints.alignmentConstraint.vertical,d=0;d1){var R;for(R=0;RE&&(E=Math.floor(w.y)),I=Math.floor(w.x+o.DEFAULT_COMPONENT_SEPERATION)}this.transform(new v(T.WORLD_CENTER_X-w.x/2,T.WORLD_CENTER_Y-w.y/2))},D.radialLayout=function(n,m,d){var E=Math.max(this.maxDiagonalInTree(n),o.DEFAULT_RADIAL_SEPARATION);D.branchRadialLayout(m,null,0,359,0,E);var p=J.calculateBounds(n),I=new V;I.setDeviceOrgX(p.getMinX()),I.setDeviceOrgY(p.getMinY()),I.setWorldOrgX(d.x),I.setWorldOrgY(d.y);for(var w=0;w1;){var B=X[0];X.splice(0,1);var _=W.indexOf(B);_>=0&&W.splice(_,1),z--,U--}m!=null?O=(W.indexOf(X[0])+1)%z:O=0;for(var lt=Math.abs(E-d)/U,q=O;et!=U;q=++q%z){var Rt=W[q].getOtherEnd(n);if(Rt!=m){var Lt=(d+et*lt)%360,dt=(Lt+lt)%360;D.branchRadialLayout(Rt,n,Lt,dt,p+I,I),et++}}},D.maxDiagonalInTree=function(n){for(var m=A.MIN_VALUE,d=0;dm&&(m=p)}return m},D.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},D.prototype.groupZeroDegreeMembers=function(){var n=this,m={};this.memberGroups={},this.idToDummyNode={};for(var d=[],E=this.graphManager.getAllNodes(),p=0;p"u"&&(m[R]=[]),m[R]=m[R].concat(I)}Object.keys(m).forEach(function(H){if(m[H].length>1){var x="DummyCompound_"+H;n.memberGroups[x]=m[H];var k=m[H][0].getParent(),W=new t(n.graphManager);W.id=x,W.paddingLeft=k.paddingLeft||0,W.paddingRight=k.paddingRight||0,W.paddingBottom=k.paddingBottom||0,W.paddingTop=k.paddingTop||0,n.idToDummyNode[x]=W;var U=n.getGraphManager().add(n.newGraph(),W),et=k.getChild();et.add(W);for(var z=0;zp?(E.rect.x-=(E.labelWidth-p)/2,E.setWidth(E.labelWidth),E.labelMarginLeft=(E.labelWidth-p)/2):E.labelPosHorizontal=="right"&&E.setWidth(p+E.labelWidth)),E.labelHeight&&(E.labelPosVertical=="top"?(E.rect.y-=E.labelHeight,E.setHeight(I+E.labelHeight),E.labelMarginTop=E.labelHeight):E.labelPosVertical=="center"&&E.labelHeight>I?(E.rect.y-=(E.labelHeight-I)/2,E.setHeight(E.labelHeight),E.labelMarginTop=(E.labelHeight-I)/2):E.labelPosVertical=="bottom"&&E.setHeight(I+E.labelHeight))}})},D.prototype.repopulateCompounds=function(){for(var n=this.compoundOrder.length-1;n>=0;n--){var m=this.compoundOrder[n],d=m.id,E=m.paddingLeft,p=m.paddingTop,I=m.labelMarginLeft,w=m.labelMarginTop;this.adjustLocations(this.tiledMemberPack[d],m.rect.x,m.rect.y,E,p,I,w)}},D.prototype.repopulateZeroDegreeMembers=function(){var n=this,m=this.tiledZeroDegreePack;Object.keys(m).forEach(function(d){var E=n.idToDummyNode[d],p=E.paddingLeft,I=E.paddingTop,w=E.labelMarginLeft,R=E.labelMarginTop;n.adjustLocations(m[d],E.rect.x,E.rect.y,p,I,w,R)})},D.prototype.getToBeTiled=function(n){var m=n.id;if(this.toBeTiled[m]!=null)return this.toBeTiled[m];var d=n.getChild();if(d==null)return this.toBeTiled[m]=!1,!1;for(var E=d.getNodes(),p=0;p0)return this.toBeTiled[m]=!1,!1;if(I.getChild()==null){this.toBeTiled[I.id]=!1;continue}if(!this.getToBeTiled(I))return this.toBeTiled[m]=!1,!1}return this.toBeTiled[m]=!0,!0},D.prototype.getNodeDegree=function(n){n.id;for(var m=n.getEdges(),d=0,E=0;Ek&&(k=U.rect.height)}d+=k+n.verticalPadding}},D.prototype.tileCompoundMembers=function(n,m){var d=this;this.tiledMemberPack=[],Object.keys(n).forEach(function(E){var p=m[E];if(d.tiledMemberPack[E]=d.tileNodes(n[E],p.paddingLeft+p.paddingRight),p.rect.width=d.tiledMemberPack[E].width,p.rect.height=d.tiledMemberPack[E].height,p.setCenter(d.tiledMemberPack[E].centerX,d.tiledMemberPack[E].centerY),p.labelMarginLeft=0,p.labelMarginTop=0,o.NODE_DIMENSIONS_INCLUDE_LABELS){var I=p.rect.width,w=p.rect.height;p.labelWidth&&(p.labelPosHorizontal=="left"?(p.rect.x-=p.labelWidth,p.setWidth(I+p.labelWidth),p.labelMarginLeft=p.labelWidth):p.labelPosHorizontal=="center"&&p.labelWidth>I?(p.rect.x-=(p.labelWidth-I)/2,p.setWidth(p.labelWidth),p.labelMarginLeft=(p.labelWidth-I)/2):p.labelPosHorizontal=="right"&&p.setWidth(I+p.labelWidth)),p.labelHeight&&(p.labelPosVertical=="top"?(p.rect.y-=p.labelHeight,p.setHeight(w+p.labelHeight),p.labelMarginTop=p.labelHeight):p.labelPosVertical=="center"&&p.labelHeight>w?(p.rect.y-=(p.labelHeight-w)/2,p.setHeight(p.labelHeight),p.labelMarginTop=(p.labelHeight-w)/2):p.labelPosVertical=="bottom"&&p.setHeight(w+p.labelHeight))}})},D.prototype.tileNodes=function(n,m){var d=this.tileNodesByFavoringDim(n,m,!0),E=this.tileNodesByFavoringDim(n,m,!1),p=this.getOrgRatio(d),I=this.getOrgRatio(E),w;return IR&&(R=z.getWidth())});var H=I/p,x=w/p,k=Math.pow(d-E,2)+4*(H+E)*(x+d)*p,W=(E-d+Math.sqrt(k))/(2*(H+E)),U;m?(U=Math.ceil(W),U==W&&U++):U=Math.floor(W);var et=U*(H+E)-E;return R>et&&(et=R),et+=E*2,et},D.prototype.tileNodesByFavoringDim=function(n,m,d){var E=o.TILING_PADDING_VERTICAL,p=o.TILING_PADDING_HORIZONTAL,I=o.TILING_COMPARE_BY,w={rows:[],rowWidth:[],rowHeight:[],width:0,height:m,verticalPadding:E,horizontalPadding:p,centerX:0,centerY:0};I&&(w.idealRowWidth=this.calcIdealRowWidth(n,d));var R=function(O){return O.rect.width*O.rect.height},H=function(O,X){return R(X)-R(O)};n.sort(function(z,O){var X=H;return w.idealRowWidth?(X=I,X(z.id,O.id)):X(z,O)});for(var x=0,k=0,W=0;W0&&(w+=n.horizontalPadding),n.rowWidth[d]=w,n.width0&&(R+=n.verticalPadding);var H=0;R>n.rowHeight[d]&&(H=n.rowHeight[d],n.rowHeight[d]=R,H=n.rowHeight[d]-H),n.height+=H,n.rows[d].push(m)},D.prototype.getShortestRowIndex=function(n){for(var m=-1,d=Number.MAX_VALUE,E=0;Ed&&(m=E,d=n.rowWidth[E]);return m},D.prototype.canAddHorizontal=function(n,m,d){if(n.idealRowWidth){var E=n.rows.length-1,p=n.rowWidth[E];return p+m+n.horizontalPadding<=n.idealRowWidth}var I=this.getShortestRowIndex(n);if(I<0)return!0;var w=n.rowWidth[I];if(w+n.horizontalPadding+m<=n.width)return!0;var R=0;n.rowHeight[I]0&&(R=d+n.verticalPadding-n.rowHeight[I]);var H;n.width-w>=m+n.horizontalPadding?H=(n.height+R)/(w+m+n.horizontalPadding):H=(n.height+R)/n.width,R=d+n.verticalPadding;var x;return n.widthI&&m!=d){E.splice(-1,1),n.rows[d].push(p),n.rowWidth[m]=n.rowWidth[m]-I,n.rowWidth[d]=n.rowWidth[d]+I,n.width=n.rowWidth[instance.getLongestRowIndex(n)];for(var w=Number.MIN_VALUE,R=0;Rw&&(w=E[R].height);m>0&&(w+=n.verticalPadding);var H=n.rowHeight[m]+n.rowHeight[d];n.rowHeight[m]=w,n.rowHeight[d]0)for(var et=p;et<=I;et++)U[0]+=this.grid[et][w-1].length+this.grid[et][w].length-1;if(I0)for(var et=w;et<=R;et++)U[3]+=this.grid[p-1][et].length+this.grid[p][et].length-1;for(var z=A.MAX_VALUE,O,X,B=0;B{var f=e(551).FDLayoutNode,a=e(551).IMath;function y(h,o,c,l){f.call(this,h,o,c,l)}y.prototype=Object.create(f.prototype);for(var t in f)y[t]=f[t];y.prototype.calculateDisplacement=function(){var h=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=h.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=h.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=h.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=h.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>h.coolingFactor*h.maxNodeDisplacement&&(this.displacementX=h.coolingFactor*h.maxNodeDisplacement*a.sign(this.displacementX)),Math.abs(this.displacementY)>h.coolingFactor*h.maxNodeDisplacement&&(this.displacementY=h.coolingFactor*h.maxNodeDisplacement*a.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},y.prototype.propogateDisplacementToChildren=function(h,o){for(var c=this.getChild().getNodes(),l,T=0;T{function f(c){if(Array.isArray(c)){for(var l=0,T=Array(c.length);l0){var Mt=0;st.forEach(function(ht){$=="horizontal"?(tt.set(ht,u.has(ht)?v[u.get(ht)]:Z.get(ht)),Mt+=tt.get(ht)):(tt.set(ht,u.has(ht)?L[u.get(ht)]:Z.get(ht)),Mt+=tt.get(ht))}),Mt=Mt/st.length,ft.forEach(function(ht){K.has(ht)||tt.set(ht,Mt)})}else{var ct=0;ft.forEach(function(ht){$=="horizontal"?ct+=u.has(ht)?v[u.get(ht)]:Z.get(ht):ct+=u.has(ht)?L[u.get(ht)]:Z.get(ht)}),ct=ct/ft.length,ft.forEach(function(ht){tt.set(ht,ct)})}});for(var wt=function(){var st=vt.shift(),Mt=b.get(st);Mt.forEach(function(ct){if(tt.get(ct.id)ht&&(ht=qt),_tWt&&(Wt=_t)}}catch(ie){At=!0,Zt=ie}finally{try{!Nt&&Gt.return&&Gt.return()}finally{if(At)throw Zt}}var ce=(Mt+ht)/2-(ct+Wt)/2,Kt=!0,te=!1,ee=void 0;try{for(var jt=ft[Symbol.iterator](),se;!(Kt=(se=jt.next()).done);Kt=!0){var re=se.value;tt.set(re,tt.get(re)+ce)}}catch(ie){te=!0,ee=ie}finally{try{!Kt&&jt.return&&jt.return()}finally{if(te)throw ee}}})}return tt},rt=function(b){var $=0,K=0,Z=0,at=0;if(b.forEach(function(j){j.left?v[u.get(j.left)]-v[u.get(j.right)]>=0?$++:K++:L[u.get(j.top)]-L[u.get(j.bottom)]>=0?Z++:at++}),$>K&&Z>at)for(var gt=0;gtK)for(var ot=0;otat)for(var tt=0;tt1)l.fixedNodeConstraint.forEach(function(S,b){E[b]=[S.position.x,S.position.y],p[b]=[v[u.get(S.nodeId)],L[u.get(S.nodeId)]]}),I=!0;else if(l.alignmentConstraint)(function(){var S=0;if(l.alignmentConstraint.vertical){for(var b=l.alignmentConstraint.vertical,$=function(tt){var j=new Set;b[tt].forEach(function(yt){j.add(yt)});var vt=new Set([].concat(f(j)).filter(function(yt){return R.has(yt)})),wt=void 0;vt.size>0?wt=v[u.get(vt.values().next().value)]:wt=Q(j).x,b[tt].forEach(function(yt){E[S]=[wt,L[u.get(yt)]],p[S]=[v[u.get(yt)],L[u.get(yt)]],S++})},K=0;K0?wt=v[u.get(vt.values().next().value)]:wt=Q(j).y,Z[tt].forEach(function(yt){E[S]=[v[u.get(yt)],wt],p[S]=[v[u.get(yt)],L[u.get(yt)]],S++})},gt=0;gtW&&(W=k[et].length,U=et);if(W0){var mt={x:0,y:0};l.fixedNodeConstraint.forEach(function(S,b){var $={x:v[u.get(S.nodeId)],y:L[u.get(S.nodeId)]},K=S.position,Z=V(K,$);mt.x+=Z.x,mt.y+=Z.y}),mt.x/=l.fixedNodeConstraint.length,mt.y/=l.fixedNodeConstraint.length,v.forEach(function(S,b){v[b]+=mt.x}),L.forEach(function(S,b){L[b]+=mt.y}),l.fixedNodeConstraint.forEach(function(S){v[u.get(S.nodeId)]=S.position.x,L[u.get(S.nodeId)]=S.position.y})}if(l.alignmentConstraint){if(l.alignmentConstraint.vertical)for(var xt=l.alignmentConstraint.vertical,St=function(b){var $=new Set;xt[b].forEach(function(at){$.add(at)});var K=new Set([].concat(f($)).filter(function(at){return R.has(at)})),Z=void 0;K.size>0?Z=v[u.get(K.values().next().value)]:Z=Q($).x,$.forEach(function(at){R.has(at)||(v[u.get(at)]=Z)})},Vt=0;Vt0?Z=L[u.get(K.values().next().value)]:Z=Q($).y,$.forEach(function(at){R.has(at)||(L[u.get(at)]=Z)})},bt=0;bt{i.exports=C}},N={};function g(i){var r=N[i];if(r!==void 0)return r.exports;var e=N[i]={exports:{}};return G[i](e,e.exports,g),e.exports}var s=g(45);return s})()})}(pe)),pe.exports}(function(M,Y){(function(G,N){M.exports=N(cr())})(Te,function(C){return(()=>{var G={658:i=>{i.exports=Object.assign!=null?Object.assign.bind(Object):function(r){for(var e=arguments.length,f=Array(e>1?e-1:0),a=1;a{var f=function(){function t(h,o){var c=[],l=!0,T=!1,u=void 0;try{for(var v=h[Symbol.iterator](),L;!(l=(L=v.next()).done)&&(c.push(L.value),!(o&&c.length===o));l=!0);}catch(F){T=!0,u=F}finally{try{!l&&v.return&&v.return()}finally{if(T)throw u}}return c}return function(h,o){if(Array.isArray(h))return h;if(Symbol.iterator in Object(h))return t(h,o);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=e(140).layoutBase.LinkedList,y={};y.getTopMostNodes=function(t){for(var h={},o=0;o0&&I.merge(x)});for(var w=0;w1){L=u[0],F=L.connectedEdges().length,u.forEach(function(p){p.connectedEdges().length0&&c.set("dummy"+(c.size+1),J),V},y.relocateComponent=function(t,h,o){if(!o.fixedNodeConstraint){var c=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,T=Number.POSITIVE_INFINITY,u=Number.NEGATIVE_INFINITY;if(o.quality=="draft"){var v=!0,L=!1,F=void 0;try{for(var A=h.nodeIndexes[Symbol.iterator](),P;!(v=(P=A.next()).done);v=!0){var J=P.value,V=f(J,2),Q=V[0],D=V[1],rt=o.cy.getElementById(Q);if(rt){var n=rt.boundingBox(),m=h.xCoords[D]-n.w/2,d=h.xCoords[D]+n.w/2,E=h.yCoords[D]-n.h/2,p=h.yCoords[D]+n.h/2;ml&&(l=d),Eu&&(u=p)}}}catch(x){L=!0,F=x}finally{try{!v&&A.return&&A.return()}finally{if(L)throw F}}var I=t.x-(l+c)/2,w=t.y-(u+T)/2;h.xCoords=h.xCoords.map(function(x){return x+I}),h.yCoords=h.yCoords.map(function(x){return x+w})}else{Object.keys(h).forEach(function(x){var k=h[x],W=k.getRect().x,U=k.getRect().x+k.getRect().width,et=k.getRect().y,z=k.getRect().y+k.getRect().height;Wl&&(l=U),etu&&(u=z)});var R=t.x-(l+c)/2,H=t.y-(u+T)/2;Object.keys(h).forEach(function(x){var k=h[x];k.setCenter(k.getCenterX()+R,k.getCenterY()+H)})}}},y.calcBoundingBox=function(t,h,o,c){for(var l=Number.MAX_SAFE_INTEGER,T=Number.MIN_SAFE_INTEGER,u=Number.MAX_SAFE_INTEGER,v=Number.MIN_SAFE_INTEGER,L=void 0,F=void 0,A=void 0,P=void 0,J=t.descendants().not(":parent"),V=J.length,Q=0;QL&&(l=L),TA&&(u=A),v{var f=e(548),a=e(140).CoSELayout,y=e(140).CoSENode,t=e(140).layoutBase.PointD,h=e(140).layoutBase.DimensionD,o=e(140).layoutBase.LayoutConstants,c=e(140).layoutBase.FDLayoutConstants,l=e(140).CoSEConstants,T=function(v,L){var F=v.cy,A=v.eles,P=A.nodes(),J=A.edges(),V=void 0,Q=void 0,D=void 0,rt={};v.randomize&&(V=L.nodeIndexes,Q=L.xCoords,D=L.yCoords);var n=function(x){return typeof x=="function"},m=function(x,k){return n(x)?x(k):x},d=f.calcParentsWithoutChildren(F,A),E=function H(x,k,W,U){for(var et=k.length,z=0;z0){var q=void 0;q=W.getGraphManager().add(W.newGraph(),B),H(q,X,W,U)}}},p=function(x,k,W){for(var U=0,et=0,z=0;z0?l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=U/et:n(v.idealEdgeLength)?l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=50:l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=v.idealEdgeLength,l.MIN_REPULSION_DIST=c.MIN_REPULSION_DIST=c.DEFAULT_EDGE_LENGTH/10,l.DEFAULT_RADIAL_SEPARATION=c.DEFAULT_EDGE_LENGTH)},I=function(x,k){k.fixedNodeConstraint&&(x.constraints.fixedNodeConstraint=k.fixedNodeConstraint),k.alignmentConstraint&&(x.constraints.alignmentConstraint=k.alignmentConstraint),k.relativePlacementConstraint&&(x.constraints.relativePlacementConstraint=k.relativePlacementConstraint)};v.nestingFactor!=null&&(l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=c.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=v.nestingFactor),v.gravity!=null&&(l.DEFAULT_GRAVITY_STRENGTH=c.DEFAULT_GRAVITY_STRENGTH=v.gravity),v.numIter!=null&&(l.MAX_ITERATIONS=c.MAX_ITERATIONS=v.numIter),v.gravityRange!=null&&(l.DEFAULT_GRAVITY_RANGE_FACTOR=c.DEFAULT_GRAVITY_RANGE_FACTOR=v.gravityRange),v.gravityCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_STRENGTH=c.DEFAULT_COMPOUND_GRAVITY_STRENGTH=v.gravityCompound),v.gravityRangeCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=c.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=v.gravityRangeCompound),v.initialEnergyOnIncremental!=null&&(l.DEFAULT_COOLING_FACTOR_INCREMENTAL=c.DEFAULT_COOLING_FACTOR_INCREMENTAL=v.initialEnergyOnIncremental),v.tilingCompareBy!=null&&(l.TILING_COMPARE_BY=v.tilingCompareBy),v.quality=="proof"?o.QUALITY=2:o.QUALITY=0,l.NODE_DIMENSIONS_INCLUDE_LABELS=c.NODE_DIMENSIONS_INCLUDE_LABELS=o.NODE_DIMENSIONS_INCLUDE_LABELS=v.nodeDimensionsIncludeLabels,l.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=o.DEFAULT_INCREMENTAL=!v.randomize,l.ANIMATE=c.ANIMATE=o.ANIMATE=v.animate,l.TILE=v.tile,l.TILING_PADDING_VERTICAL=typeof v.tilingPaddingVertical=="function"?v.tilingPaddingVertical.call():v.tilingPaddingVertical,l.TILING_PADDING_HORIZONTAL=typeof v.tilingPaddingHorizontal=="function"?v.tilingPaddingHorizontal.call():v.tilingPaddingHorizontal,l.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=o.DEFAULT_INCREMENTAL=!0,l.PURE_INCREMENTAL=!v.randomize,o.DEFAULT_UNIFORM_LEAF_NODE_SIZES=v.uniformNodeDimensions,v.step=="transformed"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!1),v.step=="enforced"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!1),v.step=="cose"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!0),v.step=="all"&&(v.randomize?l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!0),v.fixedNodeConstraint||v.alignmentConstraint||v.relativePlacementConstraint?l.TREE_REDUCTION_ON_INCREMENTAL=!1:l.TREE_REDUCTION_ON_INCREMENTAL=!0;var w=new a,R=w.newGraphManager();return E(R.addRoot(),f.getTopMostNodes(P),w,v),p(w,R,J),I(w,v),w.runLayout(),rt};i.exports={coseLayout:T}},212:(i,r,e)=>{var f=function(){function v(L,F){for(var A=0;A0)if(d){var I=t.getTopMostNodes(A.eles.nodes());if(D=t.connectComponents(P,A.eles,I),D.forEach(function(dt){var it=dt.boundingBox();rt.push({x:it.x1+it.w/2,y:it.y1+it.h/2})}),A.randomize&&D.forEach(function(dt){A.eles=dt,V.push(o(A))}),A.quality=="default"||A.quality=="proof"){var w=P.collection();if(A.tile){var R=new Map,H=[],x=[],k=0,W={nodeIndexes:R,xCoords:H,yCoords:x},U=[];if(D.forEach(function(dt,it){dt.edges().length==0&&(dt.nodes().forEach(function(ut,Tt){w.merge(dt.nodes()[Tt]),ut.isParent()||(W.nodeIndexes.set(dt.nodes()[Tt].id(),k++),W.xCoords.push(dt.nodes()[0].position().x),W.yCoords.push(dt.nodes()[0].position().y))}),U.push(it))}),w.length>1){var et=w.boundingBox();rt.push({x:et.x1+et.w/2,y:et.y1+et.h/2}),D.push(w),V.push(W);for(var z=U.length-1;z>=0;z--)D.splice(U[z],1),V.splice(U[z],1),rt.splice(U[z],1)}}D.forEach(function(dt,it){A.eles=dt,Q.push(l(A,V[it])),t.relocateComponent(rt[it],Q[it],A)})}else D.forEach(function(dt,it){t.relocateComponent(rt[it],V[it],A)});var O=new Set;if(D.length>1){var X=[],B=J.filter(function(dt){return dt.css("display")=="none"});D.forEach(function(dt,it){var ut=void 0;if(A.quality=="draft"&&(ut=V[it].nodeIndexes),dt.nodes().not(B).length>0){var Tt={};Tt.edges=[],Tt.nodes=[];var Ct=void 0;dt.nodes().not(B).forEach(function(Dt){if(A.quality=="draft")if(!Dt.isParent())Ct=ut.get(Dt.id()),Tt.nodes.push({x:V[it].xCoords[Ct]-Dt.boundingbox().w/2,y:V[it].yCoords[Ct]-Dt.boundingbox().h/2,width:Dt.boundingbox().w,height:Dt.boundingbox().h});else{var mt=t.calcBoundingBox(Dt,V[it].xCoords,V[it].yCoords,ut);Tt.nodes.push({x:mt.topLeftX,y:mt.topLeftY,width:mt.width,height:mt.height})}else Q[it][Dt.id()]&&Tt.nodes.push({x:Q[it][Dt.id()].getLeft(),y:Q[it][Dt.id()].getTop(),width:Q[it][Dt.id()].getWidth(),height:Q[it][Dt.id()].getHeight()})}),dt.edges().forEach(function(Dt){var mt=Dt.source(),xt=Dt.target();if(mt.css("display")!="none"&&xt.css("display")!="none")if(A.quality=="draft"){var St=ut.get(mt.id()),Vt=ut.get(xt.id()),Xt=[],Ut=[];if(mt.isParent()){var bt=t.calcBoundingBox(mt,V[it].xCoords,V[it].yCoords,ut);Xt.push(bt.topLeftX+bt.width/2),Xt.push(bt.topLeftY+bt.height/2)}else Xt.push(V[it].xCoords[St]),Xt.push(V[it].yCoords[St]);if(xt.isParent()){var Ht=t.calcBoundingBox(xt,V[it].xCoords,V[it].yCoords,ut);Ut.push(Ht.topLeftX+Ht.width/2),Ut.push(Ht.topLeftY+Ht.height/2)}else Ut.push(V[it].xCoords[Vt]),Ut.push(V[it].yCoords[Vt]);Tt.edges.push({startX:Xt[0],startY:Xt[1],endX:Ut[0],endY:Ut[1]})}else Q[it][mt.id()]&&Q[it][xt.id()]&&Tt.edges.push({startX:Q[it][mt.id()].getCenterX(),startY:Q[it][mt.id()].getCenterY(),endX:Q[it][xt.id()].getCenterX(),endY:Q[it][xt.id()].getCenterY()})}),Tt.nodes.length>0&&(X.push(Tt),O.add(it))}});var _=m.packComponents(X,A.randomize).shifts;if(A.quality=="draft")V.forEach(function(dt,it){var ut=dt.xCoords.map(function(Ct){return Ct+_[it].dx}),Tt=dt.yCoords.map(function(Ct){return Ct+_[it].dy});dt.xCoords=ut,dt.yCoords=Tt});else{var lt=0;O.forEach(function(dt){Object.keys(Q[dt]).forEach(function(it){var ut=Q[dt][it];ut.setCenter(ut.getCenterX()+_[lt].dx,ut.getCenterY()+_[lt].dy)}),lt++})}}}else{var E=A.eles.boundingBox();if(rt.push({x:E.x1+E.w/2,y:E.y1+E.h/2}),A.randomize){var p=o(A);V.push(p)}A.quality=="default"||A.quality=="proof"?(Q.push(l(A,V[0])),t.relocateComponent(rt[0],Q[0],A)):t.relocateComponent(rt[0],V[0],A)}var q=function(it,ut){if(A.quality=="default"||A.quality=="proof"){typeof it=="number"&&(it=ut);var Tt=void 0,Ct=void 0,Dt=it.data("id");return Q.forEach(function(xt){Dt in xt&&(Tt={x:xt[Dt].getRect().getCenterX(),y:xt[Dt].getRect().getCenterY()},Ct=xt[Dt])}),A.nodeDimensionsIncludeLabels&&(Ct.labelWidth&&(Ct.labelPosHorizontal=="left"?Tt.x+=Ct.labelWidth/2:Ct.labelPosHorizontal=="right"&&(Tt.x-=Ct.labelWidth/2)),Ct.labelHeight&&(Ct.labelPosVertical=="top"?Tt.y+=Ct.labelHeight/2:Ct.labelPosVertical=="bottom"&&(Tt.y-=Ct.labelHeight/2))),Tt==null&&(Tt={x:it.position("x"),y:it.position("y")}),{x:Tt.x,y:Tt.y}}else{var mt=void 0;return V.forEach(function(xt){var St=xt.nodeIndexes.get(it.id());St!=null&&(mt={x:xt.xCoords[St],y:xt.yCoords[St]})}),mt==null&&(mt={x:it.position("x"),y:it.position("y")}),{x:mt.x,y:mt.y}}};if(A.quality=="default"||A.quality=="proof"||A.randomize){var Rt=t.calcParentsWithoutChildren(P,J),Lt=J.filter(function(dt){return dt.css("display")=="none"});A.eles=J.not(Lt),J.nodes().not(":parent").not(Lt).layoutPositions(F,A,q),Rt.length>0&&Rt.forEach(function(dt){dt.position(q(dt))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),v}();i.exports=u},657:(i,r,e)=>{var f=e(548),a=e(140).layoutBase.Matrix,y=e(140).layoutBase.SVD,t=function(o){var c=o.cy,l=o.eles,T=l.nodes(),u=l.nodes(":parent"),v=new Map,L=new Map,F=new Map,A=[],P=[],J=[],V=[],Q=[],D=[],rt=[],n=[],m=void 0,d=1e8,E=1e-9,p=o.piTol,I=o.samplingType,w=o.nodeSeparation,R=void 0,H=function(){for(var b=0,$=0,K=!1;$=at;){ot=Z[at++];for(var It=A[ot],ft=0;ftvt&&(vt=Q[Mt],wt=Mt)}return wt},k=function(b){var $=void 0;if(b){$=Math.floor(Math.random()*m);for(var Z=0;Z=1)break;j=tt}for(var yt=0;yt=1)break;j=tt}for(var ft=0;ft0&&($.isParent()?A[b].push(F.get($.id())):A[b].push($.id()))})});var Lt=function(b){var $=L.get(b),K=void 0;v.get(b).forEach(function(Z){c.getElementById(Z).isParent()?K=F.get(Z):K=Z,A[$].push(K),A[L.get(K)].push(b)})},dt=!0,it=!1,ut=void 0;try{for(var Tt=v.keys()[Symbol.iterator](),Ct;!(dt=(Ct=Tt.next()).done);dt=!0){var Dt=Ct.value;Lt(Dt)}}catch(S){it=!0,ut=S}finally{try{!dt&&Tt.return&&Tt.return()}finally{if(it)throw ut}}m=L.size;var mt=void 0;if(m>2){R=m{var f=e(212),a=function(t){t&&t("layout","fcose",f)};typeof cytoscape<"u"&&a(cytoscape),i.exports=a},140:i=>{i.exports=C}},N={};function g(i){var r=N[i];if(r!==void 0)return r.exports;var e=N[i]={exports:{}};return G[i](e,e.exports,g),e.exports}var s=g(579);return s})()})})(be);var gr=be.exports;const ur=ke(gr);var xe={L:"left",R:"right",T:"top",B:"bottom"},Ie={L:nt(M=>`${M},${M/2} 0,${M} 0,0`,"L"),R:nt(M=>`0,${M/2} ${M},0 ${M},${M}`,"R"),T:nt(M=>`0,0 ${M},0 ${M/2},${M}`,"T"),B:nt(M=>`${M/2},0 ${M},${M} 0,${M}`,"B")},he={L:nt((M,Y)=>M-Y+2,"L"),R:nt((M,Y)=>M-2,"R"),T:nt((M,Y)=>M-Y+2,"T"),B:nt((M,Y)=>M-2,"B")},vr=nt(function(M){return zt(M)?M==="L"?"R":"L":M==="T"?"B":"T"},"getOppositeArchitectureDirection"),Re=nt(function(M){const Y=M;return Y==="L"||Y==="R"||Y==="T"||Y==="B"},"isArchitectureDirection"),zt=nt(function(M){const Y=M;return Y==="L"||Y==="R"},"isArchitectureDirectionX"),Qt=nt(function(M){const Y=M;return Y==="T"||Y==="B"},"isArchitectureDirectionY"),Pe=nt(function(M,Y){const C=zt(M)&&Qt(Y),G=Qt(M)&&zt(Y);return C||G},"isArchitectureDirectionXY"),dr=nt(function(M){const Y=M[0],C=M[1],G=zt(Y)&&Qt(C),N=Qt(Y)&&zt(C);return G||N},"isArchitecturePairXY"),pr=nt(function(M){return M!=="LL"&&M!=="RR"&&M!=="TT"&&M!=="BB"},"isValidArchitectureDirectionPair"),me=nt(function(M,Y){const C=`${M}${Y}`;return pr(C)?C:void 0},"getArchitectureDirectionPair"),yr=nt(function([M,Y],C){const G=C[0],N=C[1];return zt(G)?Qt(N)?[M+(G==="L"?-1:1),Y+(N==="T"?1:-1)]:[M+(G==="L"?-1:1),Y]:zt(N)?[M+(N==="L"?1:-1),Y+(G==="T"?1:-1)]:[M,Y+(G==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),Er=nt(function(M){return M==="LT"||M==="TL"?[1,1]:M==="BL"||M==="LB"?[1,-1]:M==="BR"||M==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),mr=nt(function(M){return M.type==="service"},"isArchitectureService"),Tr=nt(function(M){return M.type==="junction"},"isArchitectureJunction"),Ge=nt(M=>M.data(),"edgeData"),ne=nt(M=>M.data(),"nodeData"),Ue=ar.architecture,pt=new hr(()=>({nodes:{},groups:{},edges:[],registeredIds:{},config:Ue,dataStructures:void 0,elements:{}})),Nr=nt(()=>{pt.reset(),rr()},"clear"),Lr=nt(function({id:M,icon:Y,in:C,title:G,iconText:N}){if(pt.records.registeredIds[M]!==void 0)throw new Error(`The service id [${M}] is already in use by another ${pt.records.registeredIds[M]}`);if(C!==void 0){if(M===C)throw new Error(`The service [${M}] cannot be placed within itself`);if(pt.records.registeredIds[C]===void 0)throw new Error(`The service [${M}]'s parent does not exist. Please make sure the parent is created before this service`);if(pt.records.registeredIds[C]==="node")throw new Error(`The service [${M}]'s parent is not a group`)}pt.records.registeredIds[M]="node",pt.records.nodes[M]={id:M,type:"service",icon:Y,iconText:N,title:G,edges:[],in:C}},"addService"),Mr=nt(()=>Object.values(pt.records.nodes).filter(mr),"getServices"),Ar=nt(function({id:M,in:Y}){pt.records.registeredIds[M]="node",pt.records.nodes[M]={id:M,type:"junction",edges:[],in:Y}},"addJunction"),Cr=nt(()=>Object.values(pt.records.nodes).filter(Tr),"getJunctions"),wr=nt(()=>Object.values(pt.records.nodes),"getNodes"),Or=nt(M=>pt.records.nodes[M],"getNode"),Dr=nt(function({id:M,icon:Y,in:C,title:G}){if(pt.records.registeredIds[M]!==void 0)throw new Error(`The group id [${M}] is already in use by another ${pt.records.registeredIds[M]}`);if(C!==void 0){if(M===C)throw new Error(`The group [${M}] cannot be placed within itself`);if(pt.records.registeredIds[C]===void 0)throw new Error(`The group [${M}]'s parent does not exist. Please make sure the parent is created before this group`);if(pt.records.registeredIds[C]==="node")throw new Error(`The group [${M}]'s parent is not a group`)}pt.records.registeredIds[M]="group",pt.records.groups[M]={id:M,icon:Y,title:G,in:C}},"addGroup"),xr=nt(()=>Object.values(pt.records.groups),"getGroups"),Ir=nt(function({lhsId:M,rhsId:Y,lhsDir:C,rhsDir:G,lhsInto:N,rhsInto:g,lhsGroup:s,rhsGroup:i,title:r}){if(!Re(C))throw new Error(`Invalid direction given for left hand side of edge ${M}--${Y}. Expected (L,R,T,B) got ${C}`);if(!Re(G))throw new Error(`Invalid direction given for right hand side of edge ${M}--${Y}. Expected (L,R,T,B) got ${G}`);if(pt.records.nodes[M]===void 0&&pt.records.groups[M]===void 0)throw new Error(`The left-hand id [${M}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(pt.records.nodes[Y]===void 0&&pt.records.groups[M]===void 0)throw new Error(`The right-hand id [${Y}] does not yet exist. Please create the service/group before declaring an edge to it.`);const e=pt.records.nodes[M].in,f=pt.records.nodes[Y].in;if(s&&e&&f&&e==f)throw new Error(`The left-hand id [${M}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(i&&e&&f&&e==f)throw new Error(`The right-hand id [${Y}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);const a={lhsId:M,lhsDir:C,lhsInto:N,lhsGroup:s,rhsId:Y,rhsDir:G,rhsInto:g,rhsGroup:i,title:r};pt.records.edges.push(a),pt.records.nodes[M]&&pt.records.nodes[Y]&&(pt.records.nodes[M].edges.push(pt.records.edges[pt.records.edges.length-1]),pt.records.nodes[Y].edges.push(pt.records.edges[pt.records.edges.length-1]))},"addEdge"),Rr=nt(()=>pt.records.edges,"getEdges"),Sr=nt(()=>{if(pt.records.dataStructures===void 0){const M=Object.entries(pt.records.nodes).reduce((s,[i,r])=>(s[i]=r.edges.reduce((e,f)=>{if(f.lhsId===i){const a=me(f.lhsDir,f.rhsDir);a&&(e[a]=f.rhsId)}else{const a=me(f.rhsDir,f.lhsDir);a&&(e[a]=f.lhsId)}return e},{}),s),{}),Y=Object.keys(M)[0],C={[Y]:1},G=Object.keys(M).reduce((s,i)=>i===Y?s:{...s,[i]:1},{}),N=nt(s=>{const i={[s]:[0,0]},r=[s];for(;r.length>0;){const e=r.shift();if(e){C[e]=1,delete G[e];const f=M[e],[a,y]=i[e];Object.entries(f).forEach(([t,h])=>{C[h]||(i[h]=yr([a,y],t),r.push(h))})}}return i},"BFS"),g=[N(Y)];for(;Object.keys(G).length>0;)g.push(N(Object.keys(G)[0]));pt.records.dataStructures={adjList:M,spatialMaps:g}}return pt.records.dataStructures},"getDataStructures"),Fr=nt((M,Y)=>{pt.records.elements[M]=Y},"setElementForId"),br=nt(M=>pt.records.elements[M],"getElementById"),le={clear:Nr,setDiagramTitle:_e,getDiagramTitle:je,setAccTitle:Ke,getAccTitle:Qe,setAccDescription:Je,getAccDescription:qe,addService:Lr,getServices:Mr,addJunction:Ar,getJunctions:Cr,getNodes:wr,getNode:Or,addGroup:Dr,getGroups:xr,addEdge:Ir,getEdges:Rr,setElementForId:Fr,getElementById:br,getDataStructures:Sr};function Pt(M){const Y=fe().architecture;return Y!=null&&Y[M]?Y[M]:Ue[M]}nt(Pt,"getConfigField");var Pr=nt((M,Y)=>{sr(M,Y),M.groups.map(Y.addGroup),M.services.map(C=>Y.addService({...C,type:"service"})),M.junctions.map(C=>Y.addJunction({...C,type:"junction"})),M.edges.map(Y.addEdge)},"populateDb"),Gr={parse:nt(async M=>{const Y=await lr("architecture",M);Se.debug(Y),Pr(Y,le)},"parse")},Ur=nt(M=>` +import{aH as Te,aI as ke,_ as nt,g as qe,s as Je,a as Qe,b as Ke,n as je,o as _e,G as tr,T as er,v as rr,l as Se,aj as Ne,c as fe,aJ as Ee,d as ir,E as ar,aK as nr,aL as or}from"./md-index-1F_vrIf8.js";import{p as sr}from"./md-chunk-TMUBEWPD-BMgjwLeC.js";import{I as hr}from"./md-chunk-KFBOBJHC-Cw-7g_Wb.js";import{p as lr}from"./md-gitGraph-YCYPL57B-Da34XlYK.js";import{c as Fe}from"./md-cytoscape.esm-CrenbRtv.js";import"./md-_baseUniq-CaouebKG.js";import"./md-_basePickBy-BEC9IKhF.js";import"./md-clone-Cc6Gk5Be.js";var be={exports:{}},pe={exports:{}},ye={exports:{}},Oe;function fr(){return Oe||(Oe=1,function(M,Y){(function(G,N){M.exports=N()})(Te,function(){return function(C){var G={};function N(g){if(G[g])return G[g].exports;var s=G[g]={i:g,l:!1,exports:{}};return C[g].call(s.exports,s,s.exports,N),s.l=!0,s.exports}return N.m=C,N.c=G,N.i=function(g){return g},N.d=function(g,s,i){N.o(g,s)||Object.defineProperty(g,s,{configurable:!1,enumerable:!0,get:i})},N.n=function(g){var s=g&&g.__esModule?function(){return g.default}:function(){return g};return N.d(s,"a",s),s},N.o=function(g,s){return Object.prototype.hasOwnProperty.call(g,s)},N.p="",N(N.s=28)}([function(C,G,N){function g(){}g.QUALITY=1,g.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,g.DEFAULT_INCREMENTAL=!1,g.DEFAULT_ANIMATION_ON_LAYOUT=!0,g.DEFAULT_ANIMATION_DURING_LAYOUT=!1,g.DEFAULT_ANIMATION_PERIOD=50,g.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,g.DEFAULT_GRAPH_MARGIN=15,g.NODE_DIMENSIONS_INCLUDE_LABELS=!1,g.SIMPLE_NODE_SIZE=40,g.SIMPLE_NODE_HALF_SIZE=g.SIMPLE_NODE_SIZE/2,g.EMPTY_COMPOUND_NODE_SIZE=40,g.MIN_EDGE_LENGTH=1,g.WORLD_BOUNDARY=1e6,g.INITIAL_WORLD_BOUNDARY=g.WORLD_BOUNDARY/1e3,g.WORLD_CENTER_X=1200,g.WORLD_CENTER_Y=900,C.exports=g},function(C,G,N){var g=N(2),s=N(8),i=N(9);function r(f,a,y){g.call(this,y),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=y,this.bendpoints=[],this.source=f,this.target=a}r.prototype=Object.create(g.prototype);for(var e in g)r[e]=g[e];r.prototype.getSource=function(){return this.source},r.prototype.getTarget=function(){return this.target},r.prototype.isInterGraph=function(){return this.isInterGraph},r.prototype.getLength=function(){return this.length},r.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},r.prototype.getBendpoints=function(){return this.bendpoints},r.prototype.getLca=function(){return this.lca},r.prototype.getSourceInLca=function(){return this.sourceInLca},r.prototype.getTargetInLca=function(){return this.targetInLca},r.prototype.getOtherEnd=function(f){if(this.source===f)return this.target;if(this.target===f)return this.source;throw"Node is not incident with this edge"},r.prototype.getOtherEndInGraph=function(f,a){for(var y=this.getOtherEnd(f),t=a.getGraphManager().getRoot();;){if(y.getOwner()==a)return y;if(y.getOwner()==t)break;y=y.getOwner().getParent()}return null},r.prototype.updateLength=function(){var f=new Array(4);this.isOverlapingSourceAndTarget=s.getIntersection(this.target.getRect(),this.source.getRect(),f),this.isOverlapingSourceAndTarget||(this.lengthX=f[0]-f[2],this.lengthY=f[1]-f[3],Math.abs(this.lengthX)<1&&(this.lengthX=i.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=i.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},r.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=i.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=i.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},C.exports=r},function(C,G,N){function g(s){this.vGraphObject=s}C.exports=g},function(C,G,N){var g=N(2),s=N(10),i=N(13),r=N(0),e=N(16),f=N(5);function a(t,h,o,c){o==null&&c==null&&(c=h),g.call(this,c),t.graphManager!=null&&(t=t.graphManager),this.estimatedSize=s.MIN_VALUE,this.inclusionTreeDepth=s.MAX_VALUE,this.vGraphObject=c,this.edges=[],this.graphManager=t,o!=null&&h!=null?this.rect=new i(h.x,h.y,o.width,o.height):this.rect=new i}a.prototype=Object.create(g.prototype);for(var y in g)a[y]=g[y];a.prototype.getEdges=function(){return this.edges},a.prototype.getChild=function(){return this.child},a.prototype.getOwner=function(){return this.owner},a.prototype.getWidth=function(){return this.rect.width},a.prototype.setWidth=function(t){this.rect.width=t},a.prototype.getHeight=function(){return this.rect.height},a.prototype.setHeight=function(t){this.rect.height=t},a.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},a.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},a.prototype.getCenter=function(){return new f(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},a.prototype.getLocation=function(){return new f(this.rect.x,this.rect.y)},a.prototype.getRect=function(){return this.rect},a.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},a.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},a.prototype.setRect=function(t,h){this.rect.x=t.x,this.rect.y=t.y,this.rect.width=h.width,this.rect.height=h.height},a.prototype.setCenter=function(t,h){this.rect.x=t-this.rect.width/2,this.rect.y=h-this.rect.height/2},a.prototype.setLocation=function(t,h){this.rect.x=t,this.rect.y=h},a.prototype.moveBy=function(t,h){this.rect.x+=t,this.rect.y+=h},a.prototype.getEdgeListToNode=function(t){var h=[],o=this;return o.edges.forEach(function(c){if(c.target==t){if(c.source!=o)throw"Incorrect edge source!";h.push(c)}}),h},a.prototype.getEdgesBetween=function(t){var h=[],o=this;return o.edges.forEach(function(c){if(!(c.source==o||c.target==o))throw"Incorrect edge source and/or target";(c.target==t||c.source==t)&&h.push(c)}),h},a.prototype.getNeighborsList=function(){var t=new Set,h=this;return h.edges.forEach(function(o){if(o.source==h)t.add(o.target);else{if(o.target!=h)throw"Incorrect incidency!";t.add(o.source)}}),t},a.prototype.withChildren=function(){var t=new Set,h,o;if(t.add(this),this.child!=null)for(var c=this.child.getNodes(),l=0;lh?(this.rect.x-=(this.labelWidth-h)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal=="right"&&this.setWidth(h+this.labelWidth)),this.labelHeight&&(this.labelPosVertical=="top"?(this.rect.y-=this.labelHeight,this.setHeight(o+this.labelHeight)):this.labelPosVertical=="center"&&this.labelHeight>o?(this.rect.y-=(this.labelHeight-o)/2,this.setHeight(this.labelHeight)):this.labelPosVertical=="bottom"&&this.setHeight(o+this.labelHeight))}}},a.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==s.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},a.prototype.transform=function(t){var h=this.rect.x;h>r.WORLD_BOUNDARY?h=r.WORLD_BOUNDARY:h<-r.WORLD_BOUNDARY&&(h=-r.WORLD_BOUNDARY);var o=this.rect.y;o>r.WORLD_BOUNDARY?o=r.WORLD_BOUNDARY:o<-r.WORLD_BOUNDARY&&(o=-r.WORLD_BOUNDARY);var c=new f(h,o),l=t.inverseTransformPoint(c);this.setLocation(l.x,l.y)},a.prototype.getLeft=function(){return this.rect.x},a.prototype.getRight=function(){return this.rect.x+this.rect.width},a.prototype.getTop=function(){return this.rect.y},a.prototype.getBottom=function(){return this.rect.y+this.rect.height},a.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},C.exports=a},function(C,G,N){var g=N(0);function s(){}for(var i in g)s[i]=g[i];s.MAX_ITERATIONS=2500,s.DEFAULT_EDGE_LENGTH=50,s.DEFAULT_SPRING_STRENGTH=.45,s.DEFAULT_REPULSION_STRENGTH=4500,s.DEFAULT_GRAVITY_STRENGTH=.4,s.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,s.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,s.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,s.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,s.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,s.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,s.COOLING_ADAPTATION_FACTOR=.33,s.ADAPTATION_LOWER_NODE_LIMIT=1e3,s.ADAPTATION_UPPER_NODE_LIMIT=5e3,s.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,s.MAX_NODE_DISPLACEMENT=s.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,s.MIN_REPULSION_DIST=s.DEFAULT_EDGE_LENGTH/10,s.CONVERGENCE_CHECK_PERIOD=100,s.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,s.MIN_EDGE_LENGTH=1,s.GRID_CALCULATION_CHECK_PERIOD=10,C.exports=s},function(C,G,N){function g(s,i){s==null&&i==null?(this.x=0,this.y=0):(this.x=s,this.y=i)}g.prototype.getX=function(){return this.x},g.prototype.getY=function(){return this.y},g.prototype.setX=function(s){this.x=s},g.prototype.setY=function(s){this.y=s},g.prototype.getDifference=function(s){return new DimensionD(this.x-s.x,this.y-s.y)},g.prototype.getCopy=function(){return new g(this.x,this.y)},g.prototype.translate=function(s){return this.x+=s.width,this.y+=s.height,this},C.exports=g},function(C,G,N){var g=N(2),s=N(10),i=N(0),r=N(7),e=N(3),f=N(1),a=N(13),y=N(12),t=N(11);function h(c,l,T){g.call(this,T),this.estimatedSize=s.MIN_VALUE,this.margin=i.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=c,l!=null&&l instanceof r?this.graphManager=l:l!=null&&l instanceof Layout&&(this.graphManager=l.graphManager)}h.prototype=Object.create(g.prototype);for(var o in g)h[o]=g[o];h.prototype.getNodes=function(){return this.nodes},h.prototype.getEdges=function(){return this.edges},h.prototype.getGraphManager=function(){return this.graphManager},h.prototype.getParent=function(){return this.parent},h.prototype.getLeft=function(){return this.left},h.prototype.getRight=function(){return this.right},h.prototype.getTop=function(){return this.top},h.prototype.getBottom=function(){return this.bottom},h.prototype.isConnected=function(){return this.isConnected},h.prototype.add=function(c,l,T){if(l==null&&T==null){var u=c;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(u)>-1)throw"Node already in graph!";return u.owner=this,this.getNodes().push(u),u}else{var v=c;if(!(this.getNodes().indexOf(l)>-1&&this.getNodes().indexOf(T)>-1))throw"Source or target not in graph!";if(!(l.owner==T.owner&&l.owner==this))throw"Both owners must be this graph!";return l.owner!=T.owner?null:(v.source=l,v.target=T,v.isInterGraph=!1,this.getEdges().push(v),l.edges.push(v),T!=l&&T.edges.push(v),v)}},h.prototype.remove=function(c){var l=c;if(c instanceof e){if(l==null)throw"Node is null!";if(!(l.owner!=null&&l.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var T=l.edges.slice(),u,v=T.length,L=0;L-1&&P>-1))throw"Source and/or target doesn't know this edge!";u.source.edges.splice(A,1),u.target!=u.source&&u.target.edges.splice(P,1);var F=u.source.owner.getEdges().indexOf(u);if(F==-1)throw"Not in owner's edge list!";u.source.owner.getEdges().splice(F,1)}},h.prototype.updateLeftTop=function(){for(var c=s.MAX_VALUE,l=s.MAX_VALUE,T,u,v,L=this.getNodes(),F=L.length,A=0;AT&&(c=T),l>u&&(l=u)}return c==s.MAX_VALUE?null:(L[0].getParent().paddingLeft!=null?v=L[0].getParent().paddingLeft:v=this.margin,this.left=l-v,this.top=c-v,new y(this.left,this.top))},h.prototype.updateBounds=function(c){for(var l=s.MAX_VALUE,T=-s.MAX_VALUE,u=s.MAX_VALUE,v=-s.MAX_VALUE,L,F,A,P,J,V=this.nodes,Q=V.length,D=0;DL&&(l=L),TA&&(u=A),vL&&(l=L),TA&&(u=A),v=this.nodes.length){var Q=0;T.forEach(function(D){D.owner==c&&Q++}),Q==this.nodes.length&&(this.isConnected=!0)}},C.exports=h},function(C,G,N){var g,s=N(1);function i(r){g=N(6),this.layout=r,this.graphs=[],this.edges=[]}i.prototype.addRoot=function(){var r=this.layout.newGraph(),e=this.layout.newNode(null),f=this.add(r,e);return this.setRootGraph(f),this.rootGraph},i.prototype.add=function(r,e,f,a,y){if(f==null&&a==null&&y==null){if(r==null)throw"Graph is null!";if(e==null)throw"Parent node is null!";if(this.graphs.indexOf(r)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(r),r.parent!=null)throw"Already has a parent!";if(e.child!=null)throw"Already has a child!";return r.parent=e,e.child=r,r}else{y=f,a=e,f=r;var t=a.getOwner(),h=y.getOwner();if(!(t!=null&&t.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(h!=null&&h.getGraphManager()==this))throw"Target not in this graph mgr!";if(t==h)return f.isInterGraph=!1,t.add(f,a,y);if(f.isInterGraph=!0,f.source=a,f.target=y,this.edges.indexOf(f)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(f),!(f.source!=null&&f.target!=null))throw"Edge source and/or target is null!";if(!(f.source.edges.indexOf(f)==-1&&f.target.edges.indexOf(f)==-1))throw"Edge already in source and/or target incidency list!";return f.source.edges.push(f),f.target.edges.push(f),f}},i.prototype.remove=function(r){if(r instanceof g){var e=r;if(e.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(e==this.rootGraph||e.parent!=null&&e.parent.graphManager==this))throw"Invalid parent node!";var f=[];f=f.concat(e.getEdges());for(var a,y=f.length,t=0;t=r.getRight()?e[0]+=Math.min(r.getX()-i.getX(),i.getRight()-r.getRight()):r.getX()<=i.getX()&&r.getRight()>=i.getRight()&&(e[0]+=Math.min(i.getX()-r.getX(),r.getRight()-i.getRight())),i.getY()<=r.getY()&&i.getBottom()>=r.getBottom()?e[1]+=Math.min(r.getY()-i.getY(),i.getBottom()-r.getBottom()):r.getY()<=i.getY()&&r.getBottom()>=i.getBottom()&&(e[1]+=Math.min(i.getY()-r.getY(),r.getBottom()-i.getBottom()));var y=Math.abs((r.getCenterY()-i.getCenterY())/(r.getCenterX()-i.getCenterX()));r.getCenterY()===i.getCenterY()&&r.getCenterX()===i.getCenterX()&&(y=1);var t=y*e[0],h=e[1]/y;e[0]t)return e[0]=f,e[1]=o,e[2]=y,e[3]=V,!1;if(ay)return e[0]=h,e[1]=a,e[2]=P,e[3]=t,!1;if(fy?(e[0]=l,e[1]=T,n=!0):(e[0]=c,e[1]=o,n=!0):d===p&&(f>y?(e[0]=h,e[1]=o,n=!0):(e[0]=u,e[1]=T,n=!0)),-E===p?y>f?(e[2]=J,e[3]=V,m=!0):(e[2]=P,e[3]=A,m=!0):E===p&&(y>f?(e[2]=F,e[3]=A,m=!0):(e[2]=Q,e[3]=V,m=!0)),n&&m)return!1;if(f>y?a>t?(I=this.getCardinalDirection(d,p,4),w=this.getCardinalDirection(E,p,2)):(I=this.getCardinalDirection(-d,p,3),w=this.getCardinalDirection(-E,p,1)):a>t?(I=this.getCardinalDirection(-d,p,1),w=this.getCardinalDirection(-E,p,3)):(I=this.getCardinalDirection(d,p,2),w=this.getCardinalDirection(E,p,4)),!n)switch(I){case 1:H=o,R=f+-L/p,e[0]=R,e[1]=H;break;case 2:R=u,H=a+v*p,e[0]=R,e[1]=H;break;case 3:H=T,R=f+L/p,e[0]=R,e[1]=H;break;case 4:R=l,H=a+-v*p,e[0]=R,e[1]=H;break}if(!m)switch(w){case 1:k=A,x=y+-rt/p,e[2]=x,e[3]=k;break;case 2:x=Q,k=t+D*p,e[2]=x,e[3]=k;break;case 3:k=V,x=y+rt/p,e[2]=x,e[3]=k;break;case 4:x=J,k=t+-D*p,e[2]=x,e[3]=k;break}}return!1},s.getCardinalDirection=function(i,r,e){return i>r?e:1+e%4},s.getIntersection=function(i,r,e,f){if(f==null)return this.getIntersection2(i,r,e);var a=i.x,y=i.y,t=r.x,h=r.y,o=e.x,c=e.y,l=f.x,T=f.y,u=void 0,v=void 0,L=void 0,F=void 0,A=void 0,P=void 0,J=void 0,V=void 0,Q=void 0;return L=h-y,A=a-t,J=t*y-a*h,F=T-c,P=o-l,V=l*c-o*T,Q=L*P-F*A,Q===0?null:(u=(A*V-P*J)/Q,v=(F*J-L*V)/Q,new g(u,v))},s.angleOfVector=function(i,r,e,f){var a=void 0;return i!==e?(a=Math.atan((f-r)/(e-i)),e=0){var T=(-o+Math.sqrt(o*o-4*h*c))/(2*h),u=(-o-Math.sqrt(o*o-4*h*c))/(2*h),v=null;return T>=0&&T<=1?[T]:u>=0&&u<=1?[u]:v}else return null},s.HALF_PI=.5*Math.PI,s.ONE_AND_HALF_PI=1.5*Math.PI,s.TWO_PI=2*Math.PI,s.THREE_PI=3*Math.PI,C.exports=s},function(C,G,N){function g(){}g.sign=function(s){return s>0?1:s<0?-1:0},g.floor=function(s){return s<0?Math.ceil(s):Math.floor(s)},g.ceil=function(s){return s<0?Math.floor(s):Math.ceil(s)},C.exports=g},function(C,G,N){function g(){}g.MAX_VALUE=2147483647,g.MIN_VALUE=-2147483648,C.exports=g},function(C,G,N){var g=function(){function a(y,t){for(var h=0;h"u"?"undefined":g(i);return i==null||r!="object"&&r!="function"},C.exports=s},function(C,G,N){function g(o){if(Array.isArray(o)){for(var c=0,l=Array(o.length);c0&&c;){for(L.push(A[0]);L.length>0&&c;){var P=L[0];L.splice(0,1),v.add(P);for(var J=P.getEdges(),u=0;u-1&&A.splice(rt,1)}v=new Set,F=new Map}}return o},h.prototype.createDummyNodesForBendpoints=function(o){for(var c=[],l=o.source,T=this.graphManager.calcLowestCommonAncestor(o.source,o.target),u=0;u0){for(var T=this.edgeToDummyNodes.get(l),u=0;u=0&&c.splice(V,1);var Q=F.getNeighborsList();Q.forEach(function(n){if(l.indexOf(n)<0){var m=T.get(n),d=m-1;d==1&&P.push(n),T.set(n,d)}})}l=l.concat(P),(c.length==1||c.length==2)&&(u=!0,v=c[0])}return v},h.prototype.setGraphManager=function(o){this.graphManager=o},C.exports=h},function(C,G,N){function g(){}g.seed=1,g.x=0,g.nextDouble=function(){return g.x=Math.sin(g.seed++)*1e4,g.x-Math.floor(g.x)},C.exports=g},function(C,G,N){var g=N(5);function s(i,r){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}s.prototype.getWorldOrgX=function(){return this.lworldOrgX},s.prototype.setWorldOrgX=function(i){this.lworldOrgX=i},s.prototype.getWorldOrgY=function(){return this.lworldOrgY},s.prototype.setWorldOrgY=function(i){this.lworldOrgY=i},s.prototype.getWorldExtX=function(){return this.lworldExtX},s.prototype.setWorldExtX=function(i){this.lworldExtX=i},s.prototype.getWorldExtY=function(){return this.lworldExtY},s.prototype.setWorldExtY=function(i){this.lworldExtY=i},s.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},s.prototype.setDeviceOrgX=function(i){this.ldeviceOrgX=i},s.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},s.prototype.setDeviceOrgY=function(i){this.ldeviceOrgY=i},s.prototype.getDeviceExtX=function(){return this.ldeviceExtX},s.prototype.setDeviceExtX=function(i){this.ldeviceExtX=i},s.prototype.getDeviceExtY=function(){return this.ldeviceExtY},s.prototype.setDeviceExtY=function(i){this.ldeviceExtY=i},s.prototype.transformX=function(i){var r=0,e=this.lworldExtX;return e!=0&&(r=this.ldeviceOrgX+(i-this.lworldOrgX)*this.ldeviceExtX/e),r},s.prototype.transformY=function(i){var r=0,e=this.lworldExtY;return e!=0&&(r=this.ldeviceOrgY+(i-this.lworldOrgY)*this.ldeviceExtY/e),r},s.prototype.inverseTransformX=function(i){var r=0,e=this.ldeviceExtX;return e!=0&&(r=this.lworldOrgX+(i-this.ldeviceOrgX)*this.lworldExtX/e),r},s.prototype.inverseTransformY=function(i){var r=0,e=this.ldeviceExtY;return e!=0&&(r=this.lworldOrgY+(i-this.ldeviceOrgY)*this.lworldExtY/e),r},s.prototype.inverseTransformPoint=function(i){var r=new g(this.inverseTransformX(i.x),this.inverseTransformY(i.y));return r},C.exports=s},function(C,G,N){function g(t){if(Array.isArray(t)){for(var h=0,o=Array(t.length);hi.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*i.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(t-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-i.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=i.MAX_NODE_DISPLACEMENT_INCREMENTAL):(t>i.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(i.COOLING_ADAPTATION_FACTOR,1-(t-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*(1-i.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=i.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*i.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},a.prototype.calcSpringForces=function(){for(var t=this.getAllEdges(),h,o=0;o0&&arguments[0]!==void 0?arguments[0]:!0,h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o,c,l,T,u=this.getAllNodes(),v;if(this.useFRGridVariant)for(this.totalIterations%i.GRID_CALCULATION_CHECK_PERIOD==1&&t&&this.updateGrid(),v=new Set,o=0;oL||v>L)&&(t.gravitationForceX=-this.gravityConstant*l,t.gravitationForceY=-this.gravityConstant*T)):(L=h.getEstimatedSize()*this.compoundGravityRangeFactor,(u>L||v>L)&&(t.gravitationForceX=-this.gravityConstant*l*this.compoundGravityConstant,t.gravitationForceY=-this.gravityConstant*T*this.compoundGravityConstant))},a.prototype.isConverged=function(){var t,h=!1;return this.totalIterations>this.maxIterations/3&&(h=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),t=this.totalDisplacement=u.length||L>=u[0].length)){for(var F=0;Fa}}]),e}();C.exports=r},function(C,G,N){function g(){}g.svd=function(s){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=s.length,this.n=s[0].length;var i=Math.min(this.m,this.n);this.s=function(Nt){for(var At=[];Nt-- >0;)At.push(0);return At}(Math.min(this.m+1,this.n)),this.U=function(Nt){var At=function Zt(Gt){if(Gt.length==0)return 0;for(var $t=[],Ft=0;Ft0;)At.push(0);return At}(this.n),e=function(Nt){for(var At=[];Nt-- >0;)At.push(0);return At}(this.m),f=!0,a=Math.min(this.m-1,this.n),y=Math.max(0,Math.min(this.n-2,this.m)),t=0;t=0;E--)if(this.s[E]!==0){for(var p=E+1;p=0;W--){if(function(Nt,At){return Nt&&At}(W0;){var q=void 0,Rt=void 0;for(q=n-2;q>=-1&&q!==-1;q--)if(Math.abs(r[q])<=lt+_*(Math.abs(this.s[q])+Math.abs(this.s[q+1]))){r[q]=0;break}if(q===n-2)Rt=4;else{var Lt=void 0;for(Lt=n-1;Lt>=q&&Lt!==q;Lt--){var dt=(Lt!==n?Math.abs(r[Lt]):0)+(Lt!==q+1?Math.abs(r[Lt-1]):0);if(Math.abs(this.s[Lt])<=lt+_*dt){this.s[Lt]=0;break}}Lt===q?Rt=3:Lt===n-1?Rt=1:(Rt=2,q=Lt)}switch(q++,Rt){case 1:{var it=r[n-2];r[n-2]=0;for(var ut=n-2;ut>=q;ut--){var Tt=g.hypot(this.s[ut],it),Ct=this.s[ut]/Tt,Dt=it/Tt;this.s[ut]=Tt,ut!==q&&(it=-Dt*r[ut-1],r[ut-1]=Ct*r[ut-1]);for(var mt=0;mt=this.s[q+1]);){var Mt=this.s[q];if(this.s[q]=this.s[q+1],this.s[q+1]=Mt,qMath.abs(i)?(r=i/s,r=Math.abs(s)*Math.sqrt(1+r*r)):i!=0?(r=s/i,r=Math.abs(i)*Math.sqrt(1+r*r)):r=0,r},C.exports=g},function(C,G,N){var g=function(){function r(e,f){for(var a=0;a2&&arguments[2]!==void 0?arguments[2]:1,y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,t=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;s(this,r),this.sequence1=e,this.sequence2=f,this.match_score=a,this.mismatch_penalty=y,this.gap_penalty=t,this.iMax=e.length+1,this.jMax=f.length+1,this.grid=new Array(this.iMax);for(var h=0;h=0;e--){var f=this.listeners[e];f.event===i&&f.callback===r&&this.listeners.splice(e,1)}},s.emit=function(i,r){for(var e=0;e{var G={45:(i,r,e)=>{var f={};f.layoutBase=e(551),f.CoSEConstants=e(806),f.CoSEEdge=e(767),f.CoSEGraph=e(880),f.CoSEGraphManager=e(578),f.CoSELayout=e(765),f.CoSENode=e(991),f.ConstraintHandler=e(902),i.exports=f},806:(i,r,e)=>{var f=e(551).FDLayoutConstants;function a(){}for(var y in f)a[y]=f[y];a.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,a.DEFAULT_RADIAL_SEPARATION=f.DEFAULT_EDGE_LENGTH,a.DEFAULT_COMPONENT_SEPERATION=60,a.TILE=!0,a.TILING_PADDING_VERTICAL=10,a.TILING_PADDING_HORIZONTAL=10,a.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,a.ENFORCE_CONSTRAINTS=!0,a.APPLY_LAYOUT=!0,a.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,a.TREE_REDUCTION_ON_INCREMENTAL=!0,a.PURE_INCREMENTAL=a.DEFAULT_INCREMENTAL,i.exports=a},767:(i,r,e)=>{var f=e(551).FDLayoutEdge;function a(t,h,o){f.call(this,t,h,o)}a.prototype=Object.create(f.prototype);for(var y in f)a[y]=f[y];i.exports=a},880:(i,r,e)=>{var f=e(551).LGraph;function a(t,h,o){f.call(this,t,h,o)}a.prototype=Object.create(f.prototype);for(var y in f)a[y]=f[y];i.exports=a},578:(i,r,e)=>{var f=e(551).LGraphManager;function a(t){f.call(this,t)}a.prototype=Object.create(f.prototype);for(var y in f)a[y]=f[y];i.exports=a},765:(i,r,e)=>{var f=e(551).FDLayout,a=e(578),y=e(880),t=e(991),h=e(767),o=e(806),c=e(902),l=e(551).FDLayoutConstants,T=e(551).LayoutConstants,u=e(551).Point,v=e(551).PointD,L=e(551).DimensionD,F=e(551).Layout,A=e(551).Integer,P=e(551).IGeometry,J=e(551).LGraph,V=e(551).Transform,Q=e(551).LinkedList;function D(){f.call(this),this.toBeTiled={},this.constraints={}}D.prototype=Object.create(f.prototype);for(var rt in f)D[rt]=f[rt];D.prototype.newGraphManager=function(){var n=new a(this);return this.graphManager=n,n},D.prototype.newGraph=function(n){return new y(null,this.graphManager,n)},D.prototype.newNode=function(n){return new t(this.graphManager,n)},D.prototype.newEdge=function(n){return new h(null,null,n)},D.prototype.initParameters=function(){f.prototype.initParameters.call(this,arguments),this.isSubLayout||(o.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=o.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=o.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=l.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=l.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=l.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},D.prototype.initSpringEmbedder=function(){f.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/l.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},D.prototype.layout=function(){var n=T.DEFAULT_CREATE_BENDS_AS_NEEDED;return n&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},D.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(o.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var m=new Set(this.getAllNodes()),d=this.nodesWithGravity.filter(function(I){return m.has(I)});this.graphManager.setAllNodesToApplyGravitation(d)}}else{var n=this.getFlatForest();if(n.length>0)this.positionNodesRadially(n);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var m=new Set(this.getAllNodes()),d=this.nodesWithGravity.filter(function(E){return m.has(E)});this.graphManager.setAllNodesToApplyGravitation(d),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(c.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),o.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},D.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%l.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var n=new Set(this.getAllNodes()),m=this.nodesWithGravity.filter(function(p){return n.has(p)});this.graphManager.setAllNodesToApplyGravitation(m),this.graphManager.updateBounds(),this.updateGrid(),o.PURE_INCREMENTAL?this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),o.PURE_INCREMENTAL?this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var d=!this.isTreeGrowing&&!this.isGrowthFinished,E=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(d,E),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},D.prototype.getPositionsData=function(){for(var n=this.graphManager.getAllNodes(),m={},d=0;d0&&this.updateDisplacements();for(var d=0;d0&&(E.fixedNodeWeight=I)}}if(this.constraints.relativePlacementConstraint){var w=new Map,R=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(O){n.fixedNodesOnHorizontal.add(O),n.fixedNodesOnVertical.add(O)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var H=this.constraints.alignmentConstraint.vertical,d=0;d=2*O.length/3;_--)X=Math.floor(Math.random()*(_+1)),B=O[_],O[_]=O[X],O[X]=B;return O},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(O){if(O.left){var X=w.has(O.left)?w.get(O.left):O.left,B=w.has(O.right)?w.get(O.right):O.right;n.nodesInRelativeHorizontal.includes(X)||(n.nodesInRelativeHorizontal.push(X),n.nodeToRelativeConstraintMapHorizontal.set(X,[]),n.dummyToNodeForVerticalAlignment.has(X)?n.nodeToTempPositionMapHorizontal.set(X,n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(X)[0]).getCenterX()):n.nodeToTempPositionMapHorizontal.set(X,n.idToNodeMap.get(X).getCenterX())),n.nodesInRelativeHorizontal.includes(B)||(n.nodesInRelativeHorizontal.push(B),n.nodeToRelativeConstraintMapHorizontal.set(B,[]),n.dummyToNodeForVerticalAlignment.has(B)?n.nodeToTempPositionMapHorizontal.set(B,n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(B)[0]).getCenterX()):n.nodeToTempPositionMapHorizontal.set(B,n.idToNodeMap.get(B).getCenterX())),n.nodeToRelativeConstraintMapHorizontal.get(X).push({right:B,gap:O.gap}),n.nodeToRelativeConstraintMapHorizontal.get(B).push({left:X,gap:O.gap})}else{var _=R.has(O.top)?R.get(O.top):O.top,lt=R.has(O.bottom)?R.get(O.bottom):O.bottom;n.nodesInRelativeVertical.includes(_)||(n.nodesInRelativeVertical.push(_),n.nodeToRelativeConstraintMapVertical.set(_,[]),n.dummyToNodeForHorizontalAlignment.has(_)?n.nodeToTempPositionMapVertical.set(_,n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(_)[0]).getCenterY()):n.nodeToTempPositionMapVertical.set(_,n.idToNodeMap.get(_).getCenterY())),n.nodesInRelativeVertical.includes(lt)||(n.nodesInRelativeVertical.push(lt),n.nodeToRelativeConstraintMapVertical.set(lt,[]),n.dummyToNodeForHorizontalAlignment.has(lt)?n.nodeToTempPositionMapVertical.set(lt,n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(lt)[0]).getCenterY()):n.nodeToTempPositionMapVertical.set(lt,n.idToNodeMap.get(lt).getCenterY())),n.nodeToRelativeConstraintMapVertical.get(_).push({bottom:lt,gap:O.gap}),n.nodeToRelativeConstraintMapVertical.get(lt).push({top:_,gap:O.gap})}});else{var k=new Map,W=new Map;this.constraints.relativePlacementConstraint.forEach(function(O){if(O.left){var X=w.has(O.left)?w.get(O.left):O.left,B=w.has(O.right)?w.get(O.right):O.right;k.has(X)?k.get(X).push(B):k.set(X,[B]),k.has(B)?k.get(B).push(X):k.set(B,[X])}else{var _=R.has(O.top)?R.get(O.top):O.top,lt=R.has(O.bottom)?R.get(O.bottom):O.bottom;W.has(_)?W.get(_).push(lt):W.set(_,[lt]),W.has(lt)?W.get(lt).push(_):W.set(lt,[_])}});var U=function(X,B){var _=[],lt=[],q=new Q,Rt=new Set,Lt=0;return X.forEach(function(dt,it){if(!Rt.has(it)){_[Lt]=[],lt[Lt]=!1;var ut=it;for(q.push(ut),Rt.add(ut),_[Lt].push(ut);q.length!=0;){ut=q.shift(),B.has(ut)&&(lt[Lt]=!0);var Tt=X.get(ut);Tt.forEach(function(Ct){Rt.has(Ct)||(q.push(Ct),Rt.add(Ct),_[Lt].push(Ct))})}Lt++}}),{components:_,isFixed:lt}},et=U(k,n.fixedNodesOnHorizontal);this.componentsOnHorizontal=et.components,this.fixedComponentsOnHorizontal=et.isFixed;var z=U(W,n.fixedNodesOnVertical);this.componentsOnVertical=z.components,this.fixedComponentsOnVertical=z.isFixed}}},D.prototype.updateDisplacements=function(){var n=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(z){var O=n.idToNodeMap.get(z.nodeId);O.displacementX=0,O.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var m=this.constraints.alignmentConstraint.vertical,d=0;d1){var R;for(R=0;RE&&(E=Math.floor(w.y)),I=Math.floor(w.x+o.DEFAULT_COMPONENT_SEPERATION)}this.transform(new v(T.WORLD_CENTER_X-w.x/2,T.WORLD_CENTER_Y-w.y/2))},D.radialLayout=function(n,m,d){var E=Math.max(this.maxDiagonalInTree(n),o.DEFAULT_RADIAL_SEPARATION);D.branchRadialLayout(m,null,0,359,0,E);var p=J.calculateBounds(n),I=new V;I.setDeviceOrgX(p.getMinX()),I.setDeviceOrgY(p.getMinY()),I.setWorldOrgX(d.x),I.setWorldOrgY(d.y);for(var w=0;w1;){var B=X[0];X.splice(0,1);var _=W.indexOf(B);_>=0&&W.splice(_,1),z--,U--}m!=null?O=(W.indexOf(X[0])+1)%z:O=0;for(var lt=Math.abs(E-d)/U,q=O;et!=U;q=++q%z){var Rt=W[q].getOtherEnd(n);if(Rt!=m){var Lt=(d+et*lt)%360,dt=(Lt+lt)%360;D.branchRadialLayout(Rt,n,Lt,dt,p+I,I),et++}}},D.maxDiagonalInTree=function(n){for(var m=A.MIN_VALUE,d=0;dm&&(m=p)}return m},D.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},D.prototype.groupZeroDegreeMembers=function(){var n=this,m={};this.memberGroups={},this.idToDummyNode={};for(var d=[],E=this.graphManager.getAllNodes(),p=0;p"u"&&(m[R]=[]),m[R]=m[R].concat(I)}Object.keys(m).forEach(function(H){if(m[H].length>1){var x="DummyCompound_"+H;n.memberGroups[x]=m[H];var k=m[H][0].getParent(),W=new t(n.graphManager);W.id=x,W.paddingLeft=k.paddingLeft||0,W.paddingRight=k.paddingRight||0,W.paddingBottom=k.paddingBottom||0,W.paddingTop=k.paddingTop||0,n.idToDummyNode[x]=W;var U=n.getGraphManager().add(n.newGraph(),W),et=k.getChild();et.add(W);for(var z=0;zp?(E.rect.x-=(E.labelWidth-p)/2,E.setWidth(E.labelWidth),E.labelMarginLeft=(E.labelWidth-p)/2):E.labelPosHorizontal=="right"&&E.setWidth(p+E.labelWidth)),E.labelHeight&&(E.labelPosVertical=="top"?(E.rect.y-=E.labelHeight,E.setHeight(I+E.labelHeight),E.labelMarginTop=E.labelHeight):E.labelPosVertical=="center"&&E.labelHeight>I?(E.rect.y-=(E.labelHeight-I)/2,E.setHeight(E.labelHeight),E.labelMarginTop=(E.labelHeight-I)/2):E.labelPosVertical=="bottom"&&E.setHeight(I+E.labelHeight))}})},D.prototype.repopulateCompounds=function(){for(var n=this.compoundOrder.length-1;n>=0;n--){var m=this.compoundOrder[n],d=m.id,E=m.paddingLeft,p=m.paddingTop,I=m.labelMarginLeft,w=m.labelMarginTop;this.adjustLocations(this.tiledMemberPack[d],m.rect.x,m.rect.y,E,p,I,w)}},D.prototype.repopulateZeroDegreeMembers=function(){var n=this,m=this.tiledZeroDegreePack;Object.keys(m).forEach(function(d){var E=n.idToDummyNode[d],p=E.paddingLeft,I=E.paddingTop,w=E.labelMarginLeft,R=E.labelMarginTop;n.adjustLocations(m[d],E.rect.x,E.rect.y,p,I,w,R)})},D.prototype.getToBeTiled=function(n){var m=n.id;if(this.toBeTiled[m]!=null)return this.toBeTiled[m];var d=n.getChild();if(d==null)return this.toBeTiled[m]=!1,!1;for(var E=d.getNodes(),p=0;p0)return this.toBeTiled[m]=!1,!1;if(I.getChild()==null){this.toBeTiled[I.id]=!1;continue}if(!this.getToBeTiled(I))return this.toBeTiled[m]=!1,!1}return this.toBeTiled[m]=!0,!0},D.prototype.getNodeDegree=function(n){n.id;for(var m=n.getEdges(),d=0,E=0;Ek&&(k=U.rect.height)}d+=k+n.verticalPadding}},D.prototype.tileCompoundMembers=function(n,m){var d=this;this.tiledMemberPack=[],Object.keys(n).forEach(function(E){var p=m[E];if(d.tiledMemberPack[E]=d.tileNodes(n[E],p.paddingLeft+p.paddingRight),p.rect.width=d.tiledMemberPack[E].width,p.rect.height=d.tiledMemberPack[E].height,p.setCenter(d.tiledMemberPack[E].centerX,d.tiledMemberPack[E].centerY),p.labelMarginLeft=0,p.labelMarginTop=0,o.NODE_DIMENSIONS_INCLUDE_LABELS){var I=p.rect.width,w=p.rect.height;p.labelWidth&&(p.labelPosHorizontal=="left"?(p.rect.x-=p.labelWidth,p.setWidth(I+p.labelWidth),p.labelMarginLeft=p.labelWidth):p.labelPosHorizontal=="center"&&p.labelWidth>I?(p.rect.x-=(p.labelWidth-I)/2,p.setWidth(p.labelWidth),p.labelMarginLeft=(p.labelWidth-I)/2):p.labelPosHorizontal=="right"&&p.setWidth(I+p.labelWidth)),p.labelHeight&&(p.labelPosVertical=="top"?(p.rect.y-=p.labelHeight,p.setHeight(w+p.labelHeight),p.labelMarginTop=p.labelHeight):p.labelPosVertical=="center"&&p.labelHeight>w?(p.rect.y-=(p.labelHeight-w)/2,p.setHeight(p.labelHeight),p.labelMarginTop=(p.labelHeight-w)/2):p.labelPosVertical=="bottom"&&p.setHeight(w+p.labelHeight))}})},D.prototype.tileNodes=function(n,m){var d=this.tileNodesByFavoringDim(n,m,!0),E=this.tileNodesByFavoringDim(n,m,!1),p=this.getOrgRatio(d),I=this.getOrgRatio(E),w;return IR&&(R=z.getWidth())});var H=I/p,x=w/p,k=Math.pow(d-E,2)+4*(H+E)*(x+d)*p,W=(E-d+Math.sqrt(k))/(2*(H+E)),U;m?(U=Math.ceil(W),U==W&&U++):U=Math.floor(W);var et=U*(H+E)-E;return R>et&&(et=R),et+=E*2,et},D.prototype.tileNodesByFavoringDim=function(n,m,d){var E=o.TILING_PADDING_VERTICAL,p=o.TILING_PADDING_HORIZONTAL,I=o.TILING_COMPARE_BY,w={rows:[],rowWidth:[],rowHeight:[],width:0,height:m,verticalPadding:E,horizontalPadding:p,centerX:0,centerY:0};I&&(w.idealRowWidth=this.calcIdealRowWidth(n,d));var R=function(O){return O.rect.width*O.rect.height},H=function(O,X){return R(X)-R(O)};n.sort(function(z,O){var X=H;return w.idealRowWidth?(X=I,X(z.id,O.id)):X(z,O)});for(var x=0,k=0,W=0;W0&&(w+=n.horizontalPadding),n.rowWidth[d]=w,n.width0&&(R+=n.verticalPadding);var H=0;R>n.rowHeight[d]&&(H=n.rowHeight[d],n.rowHeight[d]=R,H=n.rowHeight[d]-H),n.height+=H,n.rows[d].push(m)},D.prototype.getShortestRowIndex=function(n){for(var m=-1,d=Number.MAX_VALUE,E=0;Ed&&(m=E,d=n.rowWidth[E]);return m},D.prototype.canAddHorizontal=function(n,m,d){if(n.idealRowWidth){var E=n.rows.length-1,p=n.rowWidth[E];return p+m+n.horizontalPadding<=n.idealRowWidth}var I=this.getShortestRowIndex(n);if(I<0)return!0;var w=n.rowWidth[I];if(w+n.horizontalPadding+m<=n.width)return!0;var R=0;n.rowHeight[I]0&&(R=d+n.verticalPadding-n.rowHeight[I]);var H;n.width-w>=m+n.horizontalPadding?H=(n.height+R)/(w+m+n.horizontalPadding):H=(n.height+R)/n.width,R=d+n.verticalPadding;var x;return n.widthI&&m!=d){E.splice(-1,1),n.rows[d].push(p),n.rowWidth[m]=n.rowWidth[m]-I,n.rowWidth[d]=n.rowWidth[d]+I,n.width=n.rowWidth[instance.getLongestRowIndex(n)];for(var w=Number.MIN_VALUE,R=0;Rw&&(w=E[R].height);m>0&&(w+=n.verticalPadding);var H=n.rowHeight[m]+n.rowHeight[d];n.rowHeight[m]=w,n.rowHeight[d]0)for(var et=p;et<=I;et++)U[0]+=this.grid[et][w-1].length+this.grid[et][w].length-1;if(I0)for(var et=w;et<=R;et++)U[3]+=this.grid[p-1][et].length+this.grid[p][et].length-1;for(var z=A.MAX_VALUE,O,X,B=0;B{var f=e(551).FDLayoutNode,a=e(551).IMath;function y(h,o,c,l){f.call(this,h,o,c,l)}y.prototype=Object.create(f.prototype);for(var t in f)y[t]=f[t];y.prototype.calculateDisplacement=function(){var h=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=h.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=h.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=h.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=h.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>h.coolingFactor*h.maxNodeDisplacement&&(this.displacementX=h.coolingFactor*h.maxNodeDisplacement*a.sign(this.displacementX)),Math.abs(this.displacementY)>h.coolingFactor*h.maxNodeDisplacement&&(this.displacementY=h.coolingFactor*h.maxNodeDisplacement*a.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},y.prototype.propogateDisplacementToChildren=function(h,o){for(var c=this.getChild().getNodes(),l,T=0;T{function f(c){if(Array.isArray(c)){for(var l=0,T=Array(c.length);l0){var Mt=0;st.forEach(function(ht){$=="horizontal"?(tt.set(ht,u.has(ht)?v[u.get(ht)]:Z.get(ht)),Mt+=tt.get(ht)):(tt.set(ht,u.has(ht)?L[u.get(ht)]:Z.get(ht)),Mt+=tt.get(ht))}),Mt=Mt/st.length,ft.forEach(function(ht){K.has(ht)||tt.set(ht,Mt)})}else{var ct=0;ft.forEach(function(ht){$=="horizontal"?ct+=u.has(ht)?v[u.get(ht)]:Z.get(ht):ct+=u.has(ht)?L[u.get(ht)]:Z.get(ht)}),ct=ct/ft.length,ft.forEach(function(ht){tt.set(ht,ct)})}});for(var wt=function(){var st=vt.shift(),Mt=b.get(st);Mt.forEach(function(ct){if(tt.get(ct.id)ht&&(ht=qt),_tWt&&(Wt=_t)}}catch(ie){At=!0,Zt=ie}finally{try{!Nt&&Gt.return&&Gt.return()}finally{if(At)throw Zt}}var ce=(Mt+ht)/2-(ct+Wt)/2,Kt=!0,te=!1,ee=void 0;try{for(var jt=ft[Symbol.iterator](),se;!(Kt=(se=jt.next()).done);Kt=!0){var re=se.value;tt.set(re,tt.get(re)+ce)}}catch(ie){te=!0,ee=ie}finally{try{!Kt&&jt.return&&jt.return()}finally{if(te)throw ee}}})}return tt},rt=function(b){var $=0,K=0,Z=0,at=0;if(b.forEach(function(j){j.left?v[u.get(j.left)]-v[u.get(j.right)]>=0?$++:K++:L[u.get(j.top)]-L[u.get(j.bottom)]>=0?Z++:at++}),$>K&&Z>at)for(var gt=0;gtK)for(var ot=0;otat)for(var tt=0;tt1)l.fixedNodeConstraint.forEach(function(S,b){E[b]=[S.position.x,S.position.y],p[b]=[v[u.get(S.nodeId)],L[u.get(S.nodeId)]]}),I=!0;else if(l.alignmentConstraint)(function(){var S=0;if(l.alignmentConstraint.vertical){for(var b=l.alignmentConstraint.vertical,$=function(tt){var j=new Set;b[tt].forEach(function(yt){j.add(yt)});var vt=new Set([].concat(f(j)).filter(function(yt){return R.has(yt)})),wt=void 0;vt.size>0?wt=v[u.get(vt.values().next().value)]:wt=Q(j).x,b[tt].forEach(function(yt){E[S]=[wt,L[u.get(yt)]],p[S]=[v[u.get(yt)],L[u.get(yt)]],S++})},K=0;K0?wt=v[u.get(vt.values().next().value)]:wt=Q(j).y,Z[tt].forEach(function(yt){E[S]=[v[u.get(yt)],wt],p[S]=[v[u.get(yt)],L[u.get(yt)]],S++})},gt=0;gtW&&(W=k[et].length,U=et);if(W0){var mt={x:0,y:0};l.fixedNodeConstraint.forEach(function(S,b){var $={x:v[u.get(S.nodeId)],y:L[u.get(S.nodeId)]},K=S.position,Z=V(K,$);mt.x+=Z.x,mt.y+=Z.y}),mt.x/=l.fixedNodeConstraint.length,mt.y/=l.fixedNodeConstraint.length,v.forEach(function(S,b){v[b]+=mt.x}),L.forEach(function(S,b){L[b]+=mt.y}),l.fixedNodeConstraint.forEach(function(S){v[u.get(S.nodeId)]=S.position.x,L[u.get(S.nodeId)]=S.position.y})}if(l.alignmentConstraint){if(l.alignmentConstraint.vertical)for(var xt=l.alignmentConstraint.vertical,St=function(b){var $=new Set;xt[b].forEach(function(at){$.add(at)});var K=new Set([].concat(f($)).filter(function(at){return R.has(at)})),Z=void 0;K.size>0?Z=v[u.get(K.values().next().value)]:Z=Q($).x,$.forEach(function(at){R.has(at)||(v[u.get(at)]=Z)})},Vt=0;Vt0?Z=L[u.get(K.values().next().value)]:Z=Q($).y,$.forEach(function(at){R.has(at)||(L[u.get(at)]=Z)})},bt=0;bt{i.exports=C}},N={};function g(i){var r=N[i];if(r!==void 0)return r.exports;var e=N[i]={exports:{}};return G[i](e,e.exports,g),e.exports}var s=g(45);return s})()})}(pe)),pe.exports}(function(M,Y){(function(G,N){M.exports=N(cr())})(Te,function(C){return(()=>{var G={658:i=>{i.exports=Object.assign!=null?Object.assign.bind(Object):function(r){for(var e=arguments.length,f=Array(e>1?e-1:0),a=1;a{var f=function(){function t(h,o){var c=[],l=!0,T=!1,u=void 0;try{for(var v=h[Symbol.iterator](),L;!(l=(L=v.next()).done)&&(c.push(L.value),!(o&&c.length===o));l=!0);}catch(F){T=!0,u=F}finally{try{!l&&v.return&&v.return()}finally{if(T)throw u}}return c}return function(h,o){if(Array.isArray(h))return h;if(Symbol.iterator in Object(h))return t(h,o);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=e(140).layoutBase.LinkedList,y={};y.getTopMostNodes=function(t){for(var h={},o=0;o0&&I.merge(x)});for(var w=0;w1){L=u[0],F=L.connectedEdges().length,u.forEach(function(p){p.connectedEdges().length0&&c.set("dummy"+(c.size+1),J),V},y.relocateComponent=function(t,h,o){if(!o.fixedNodeConstraint){var c=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,T=Number.POSITIVE_INFINITY,u=Number.NEGATIVE_INFINITY;if(o.quality=="draft"){var v=!0,L=!1,F=void 0;try{for(var A=h.nodeIndexes[Symbol.iterator](),P;!(v=(P=A.next()).done);v=!0){var J=P.value,V=f(J,2),Q=V[0],D=V[1],rt=o.cy.getElementById(Q);if(rt){var n=rt.boundingBox(),m=h.xCoords[D]-n.w/2,d=h.xCoords[D]+n.w/2,E=h.yCoords[D]-n.h/2,p=h.yCoords[D]+n.h/2;ml&&(l=d),Eu&&(u=p)}}}catch(x){L=!0,F=x}finally{try{!v&&A.return&&A.return()}finally{if(L)throw F}}var I=t.x-(l+c)/2,w=t.y-(u+T)/2;h.xCoords=h.xCoords.map(function(x){return x+I}),h.yCoords=h.yCoords.map(function(x){return x+w})}else{Object.keys(h).forEach(function(x){var k=h[x],W=k.getRect().x,U=k.getRect().x+k.getRect().width,et=k.getRect().y,z=k.getRect().y+k.getRect().height;Wl&&(l=U),etu&&(u=z)});var R=t.x-(l+c)/2,H=t.y-(u+T)/2;Object.keys(h).forEach(function(x){var k=h[x];k.setCenter(k.getCenterX()+R,k.getCenterY()+H)})}}},y.calcBoundingBox=function(t,h,o,c){for(var l=Number.MAX_SAFE_INTEGER,T=Number.MIN_SAFE_INTEGER,u=Number.MAX_SAFE_INTEGER,v=Number.MIN_SAFE_INTEGER,L=void 0,F=void 0,A=void 0,P=void 0,J=t.descendants().not(":parent"),V=J.length,Q=0;QL&&(l=L),TA&&(u=A),v{var f=e(548),a=e(140).CoSELayout,y=e(140).CoSENode,t=e(140).layoutBase.PointD,h=e(140).layoutBase.DimensionD,o=e(140).layoutBase.LayoutConstants,c=e(140).layoutBase.FDLayoutConstants,l=e(140).CoSEConstants,T=function(v,L){var F=v.cy,A=v.eles,P=A.nodes(),J=A.edges(),V=void 0,Q=void 0,D=void 0,rt={};v.randomize&&(V=L.nodeIndexes,Q=L.xCoords,D=L.yCoords);var n=function(x){return typeof x=="function"},m=function(x,k){return n(x)?x(k):x},d=f.calcParentsWithoutChildren(F,A),E=function H(x,k,W,U){for(var et=k.length,z=0;z0){var q=void 0;q=W.getGraphManager().add(W.newGraph(),B),H(q,X,W,U)}}},p=function(x,k,W){for(var U=0,et=0,z=0;z0?l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=U/et:n(v.idealEdgeLength)?l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=50:l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=v.idealEdgeLength,l.MIN_REPULSION_DIST=c.MIN_REPULSION_DIST=c.DEFAULT_EDGE_LENGTH/10,l.DEFAULT_RADIAL_SEPARATION=c.DEFAULT_EDGE_LENGTH)},I=function(x,k){k.fixedNodeConstraint&&(x.constraints.fixedNodeConstraint=k.fixedNodeConstraint),k.alignmentConstraint&&(x.constraints.alignmentConstraint=k.alignmentConstraint),k.relativePlacementConstraint&&(x.constraints.relativePlacementConstraint=k.relativePlacementConstraint)};v.nestingFactor!=null&&(l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=c.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=v.nestingFactor),v.gravity!=null&&(l.DEFAULT_GRAVITY_STRENGTH=c.DEFAULT_GRAVITY_STRENGTH=v.gravity),v.numIter!=null&&(l.MAX_ITERATIONS=c.MAX_ITERATIONS=v.numIter),v.gravityRange!=null&&(l.DEFAULT_GRAVITY_RANGE_FACTOR=c.DEFAULT_GRAVITY_RANGE_FACTOR=v.gravityRange),v.gravityCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_STRENGTH=c.DEFAULT_COMPOUND_GRAVITY_STRENGTH=v.gravityCompound),v.gravityRangeCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=c.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=v.gravityRangeCompound),v.initialEnergyOnIncremental!=null&&(l.DEFAULT_COOLING_FACTOR_INCREMENTAL=c.DEFAULT_COOLING_FACTOR_INCREMENTAL=v.initialEnergyOnIncremental),v.tilingCompareBy!=null&&(l.TILING_COMPARE_BY=v.tilingCompareBy),v.quality=="proof"?o.QUALITY=2:o.QUALITY=0,l.NODE_DIMENSIONS_INCLUDE_LABELS=c.NODE_DIMENSIONS_INCLUDE_LABELS=o.NODE_DIMENSIONS_INCLUDE_LABELS=v.nodeDimensionsIncludeLabels,l.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=o.DEFAULT_INCREMENTAL=!v.randomize,l.ANIMATE=c.ANIMATE=o.ANIMATE=v.animate,l.TILE=v.tile,l.TILING_PADDING_VERTICAL=typeof v.tilingPaddingVertical=="function"?v.tilingPaddingVertical.call():v.tilingPaddingVertical,l.TILING_PADDING_HORIZONTAL=typeof v.tilingPaddingHorizontal=="function"?v.tilingPaddingHorizontal.call():v.tilingPaddingHorizontal,l.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=o.DEFAULT_INCREMENTAL=!0,l.PURE_INCREMENTAL=!v.randomize,o.DEFAULT_UNIFORM_LEAF_NODE_SIZES=v.uniformNodeDimensions,v.step=="transformed"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!1),v.step=="enforced"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!1),v.step=="cose"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!0),v.step=="all"&&(v.randomize?l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!0),v.fixedNodeConstraint||v.alignmentConstraint||v.relativePlacementConstraint?l.TREE_REDUCTION_ON_INCREMENTAL=!1:l.TREE_REDUCTION_ON_INCREMENTAL=!0;var w=new a,R=w.newGraphManager();return E(R.addRoot(),f.getTopMostNodes(P),w,v),p(w,R,J),I(w,v),w.runLayout(),rt};i.exports={coseLayout:T}},212:(i,r,e)=>{var f=function(){function v(L,F){for(var A=0;A0)if(d){var I=t.getTopMostNodes(A.eles.nodes());if(D=t.connectComponents(P,A.eles,I),D.forEach(function(dt){var it=dt.boundingBox();rt.push({x:it.x1+it.w/2,y:it.y1+it.h/2})}),A.randomize&&D.forEach(function(dt){A.eles=dt,V.push(o(A))}),A.quality=="default"||A.quality=="proof"){var w=P.collection();if(A.tile){var R=new Map,H=[],x=[],k=0,W={nodeIndexes:R,xCoords:H,yCoords:x},U=[];if(D.forEach(function(dt,it){dt.edges().length==0&&(dt.nodes().forEach(function(ut,Tt){w.merge(dt.nodes()[Tt]),ut.isParent()||(W.nodeIndexes.set(dt.nodes()[Tt].id(),k++),W.xCoords.push(dt.nodes()[0].position().x),W.yCoords.push(dt.nodes()[0].position().y))}),U.push(it))}),w.length>1){var et=w.boundingBox();rt.push({x:et.x1+et.w/2,y:et.y1+et.h/2}),D.push(w),V.push(W);for(var z=U.length-1;z>=0;z--)D.splice(U[z],1),V.splice(U[z],1),rt.splice(U[z],1)}}D.forEach(function(dt,it){A.eles=dt,Q.push(l(A,V[it])),t.relocateComponent(rt[it],Q[it],A)})}else D.forEach(function(dt,it){t.relocateComponent(rt[it],V[it],A)});var O=new Set;if(D.length>1){var X=[],B=J.filter(function(dt){return dt.css("display")=="none"});D.forEach(function(dt,it){var ut=void 0;if(A.quality=="draft"&&(ut=V[it].nodeIndexes),dt.nodes().not(B).length>0){var Tt={};Tt.edges=[],Tt.nodes=[];var Ct=void 0;dt.nodes().not(B).forEach(function(Dt){if(A.quality=="draft")if(!Dt.isParent())Ct=ut.get(Dt.id()),Tt.nodes.push({x:V[it].xCoords[Ct]-Dt.boundingbox().w/2,y:V[it].yCoords[Ct]-Dt.boundingbox().h/2,width:Dt.boundingbox().w,height:Dt.boundingbox().h});else{var mt=t.calcBoundingBox(Dt,V[it].xCoords,V[it].yCoords,ut);Tt.nodes.push({x:mt.topLeftX,y:mt.topLeftY,width:mt.width,height:mt.height})}else Q[it][Dt.id()]&&Tt.nodes.push({x:Q[it][Dt.id()].getLeft(),y:Q[it][Dt.id()].getTop(),width:Q[it][Dt.id()].getWidth(),height:Q[it][Dt.id()].getHeight()})}),dt.edges().forEach(function(Dt){var mt=Dt.source(),xt=Dt.target();if(mt.css("display")!="none"&&xt.css("display")!="none")if(A.quality=="draft"){var St=ut.get(mt.id()),Vt=ut.get(xt.id()),Xt=[],Ut=[];if(mt.isParent()){var bt=t.calcBoundingBox(mt,V[it].xCoords,V[it].yCoords,ut);Xt.push(bt.topLeftX+bt.width/2),Xt.push(bt.topLeftY+bt.height/2)}else Xt.push(V[it].xCoords[St]),Xt.push(V[it].yCoords[St]);if(xt.isParent()){var Ht=t.calcBoundingBox(xt,V[it].xCoords,V[it].yCoords,ut);Ut.push(Ht.topLeftX+Ht.width/2),Ut.push(Ht.topLeftY+Ht.height/2)}else Ut.push(V[it].xCoords[Vt]),Ut.push(V[it].yCoords[Vt]);Tt.edges.push({startX:Xt[0],startY:Xt[1],endX:Ut[0],endY:Ut[1]})}else Q[it][mt.id()]&&Q[it][xt.id()]&&Tt.edges.push({startX:Q[it][mt.id()].getCenterX(),startY:Q[it][mt.id()].getCenterY(),endX:Q[it][xt.id()].getCenterX(),endY:Q[it][xt.id()].getCenterY()})}),Tt.nodes.length>0&&(X.push(Tt),O.add(it))}});var _=m.packComponents(X,A.randomize).shifts;if(A.quality=="draft")V.forEach(function(dt,it){var ut=dt.xCoords.map(function(Ct){return Ct+_[it].dx}),Tt=dt.yCoords.map(function(Ct){return Ct+_[it].dy});dt.xCoords=ut,dt.yCoords=Tt});else{var lt=0;O.forEach(function(dt){Object.keys(Q[dt]).forEach(function(it){var ut=Q[dt][it];ut.setCenter(ut.getCenterX()+_[lt].dx,ut.getCenterY()+_[lt].dy)}),lt++})}}}else{var E=A.eles.boundingBox();if(rt.push({x:E.x1+E.w/2,y:E.y1+E.h/2}),A.randomize){var p=o(A);V.push(p)}A.quality=="default"||A.quality=="proof"?(Q.push(l(A,V[0])),t.relocateComponent(rt[0],Q[0],A)):t.relocateComponent(rt[0],V[0],A)}var q=function(it,ut){if(A.quality=="default"||A.quality=="proof"){typeof it=="number"&&(it=ut);var Tt=void 0,Ct=void 0,Dt=it.data("id");return Q.forEach(function(xt){Dt in xt&&(Tt={x:xt[Dt].getRect().getCenterX(),y:xt[Dt].getRect().getCenterY()},Ct=xt[Dt])}),A.nodeDimensionsIncludeLabels&&(Ct.labelWidth&&(Ct.labelPosHorizontal=="left"?Tt.x+=Ct.labelWidth/2:Ct.labelPosHorizontal=="right"&&(Tt.x-=Ct.labelWidth/2)),Ct.labelHeight&&(Ct.labelPosVertical=="top"?Tt.y+=Ct.labelHeight/2:Ct.labelPosVertical=="bottom"&&(Tt.y-=Ct.labelHeight/2))),Tt==null&&(Tt={x:it.position("x"),y:it.position("y")}),{x:Tt.x,y:Tt.y}}else{var mt=void 0;return V.forEach(function(xt){var St=xt.nodeIndexes.get(it.id());St!=null&&(mt={x:xt.xCoords[St],y:xt.yCoords[St]})}),mt==null&&(mt={x:it.position("x"),y:it.position("y")}),{x:mt.x,y:mt.y}}};if(A.quality=="default"||A.quality=="proof"||A.randomize){var Rt=t.calcParentsWithoutChildren(P,J),Lt=J.filter(function(dt){return dt.css("display")=="none"});A.eles=J.not(Lt),J.nodes().not(":parent").not(Lt).layoutPositions(F,A,q),Rt.length>0&&Rt.forEach(function(dt){dt.position(q(dt))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),v}();i.exports=u},657:(i,r,e)=>{var f=e(548),a=e(140).layoutBase.Matrix,y=e(140).layoutBase.SVD,t=function(o){var c=o.cy,l=o.eles,T=l.nodes(),u=l.nodes(":parent"),v=new Map,L=new Map,F=new Map,A=[],P=[],J=[],V=[],Q=[],D=[],rt=[],n=[],m=void 0,d=1e8,E=1e-9,p=o.piTol,I=o.samplingType,w=o.nodeSeparation,R=void 0,H=function(){for(var b=0,$=0,K=!1;$=at;){ot=Z[at++];for(var It=A[ot],ft=0;ftvt&&(vt=Q[Mt],wt=Mt)}return wt},k=function(b){var $=void 0;if(b){$=Math.floor(Math.random()*m);for(var Z=0;Z=1)break;j=tt}for(var yt=0;yt=1)break;j=tt}for(var ft=0;ft0&&($.isParent()?A[b].push(F.get($.id())):A[b].push($.id()))})});var Lt=function(b){var $=L.get(b),K=void 0;v.get(b).forEach(function(Z){c.getElementById(Z).isParent()?K=F.get(Z):K=Z,A[$].push(K),A[L.get(K)].push(b)})},dt=!0,it=!1,ut=void 0;try{for(var Tt=v.keys()[Symbol.iterator](),Ct;!(dt=(Ct=Tt.next()).done);dt=!0){var Dt=Ct.value;Lt(Dt)}}catch(S){it=!0,ut=S}finally{try{!dt&&Tt.return&&Tt.return()}finally{if(it)throw ut}}m=L.size;var mt=void 0;if(m>2){R=m{var f=e(212),a=function(t){t&&t("layout","fcose",f)};typeof cytoscape<"u"&&a(cytoscape),i.exports=a},140:i=>{i.exports=C}},N={};function g(i){var r=N[i];if(r!==void 0)return r.exports;var e=N[i]={exports:{}};return G[i](e,e.exports,g),e.exports}var s=g(579);return s})()})})(be);var gr=be.exports;const ur=ke(gr);var xe={L:"left",R:"right",T:"top",B:"bottom"},Ie={L:nt(M=>`${M},${M/2} 0,${M} 0,0`,"L"),R:nt(M=>`0,${M/2} ${M},0 ${M},${M}`,"R"),T:nt(M=>`0,0 ${M},0 ${M/2},${M}`,"T"),B:nt(M=>`${M/2},0 ${M},${M} 0,${M}`,"B")},he={L:nt((M,Y)=>M-Y+2,"L"),R:nt((M,Y)=>M-2,"R"),T:nt((M,Y)=>M-Y+2,"T"),B:nt((M,Y)=>M-2,"B")},vr=nt(function(M){return zt(M)?M==="L"?"R":"L":M==="T"?"B":"T"},"getOppositeArchitectureDirection"),Re=nt(function(M){const Y=M;return Y==="L"||Y==="R"||Y==="T"||Y==="B"},"isArchitectureDirection"),zt=nt(function(M){const Y=M;return Y==="L"||Y==="R"},"isArchitectureDirectionX"),Qt=nt(function(M){const Y=M;return Y==="T"||Y==="B"},"isArchitectureDirectionY"),Pe=nt(function(M,Y){const C=zt(M)&&Qt(Y),G=Qt(M)&&zt(Y);return C||G},"isArchitectureDirectionXY"),dr=nt(function(M){const Y=M[0],C=M[1],G=zt(Y)&&Qt(C),N=Qt(Y)&&zt(C);return G||N},"isArchitecturePairXY"),pr=nt(function(M){return M!=="LL"&&M!=="RR"&&M!=="TT"&&M!=="BB"},"isValidArchitectureDirectionPair"),me=nt(function(M,Y){const C=`${M}${Y}`;return pr(C)?C:void 0},"getArchitectureDirectionPair"),yr=nt(function([M,Y],C){const G=C[0],N=C[1];return zt(G)?Qt(N)?[M+(G==="L"?-1:1),Y+(N==="T"?1:-1)]:[M+(G==="L"?-1:1),Y]:zt(N)?[M+(N==="L"?1:-1),Y+(G==="T"?1:-1)]:[M,Y+(G==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),Er=nt(function(M){return M==="LT"||M==="TL"?[1,1]:M==="BL"||M==="LB"?[1,-1]:M==="BR"||M==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),mr=nt(function(M){return M.type==="service"},"isArchitectureService"),Tr=nt(function(M){return M.type==="junction"},"isArchitectureJunction"),Ge=nt(M=>M.data(),"edgeData"),ne=nt(M=>M.data(),"nodeData"),Ue=ar.architecture,pt=new hr(()=>({nodes:{},groups:{},edges:[],registeredIds:{},config:Ue,dataStructures:void 0,elements:{}})),Nr=nt(()=>{pt.reset(),rr()},"clear"),Lr=nt(function({id:M,icon:Y,in:C,title:G,iconText:N}){if(pt.records.registeredIds[M]!==void 0)throw new Error(`The service id [${M}] is already in use by another ${pt.records.registeredIds[M]}`);if(C!==void 0){if(M===C)throw new Error(`The service [${M}] cannot be placed within itself`);if(pt.records.registeredIds[C]===void 0)throw new Error(`The service [${M}]'s parent does not exist. Please make sure the parent is created before this service`);if(pt.records.registeredIds[C]==="node")throw new Error(`The service [${M}]'s parent is not a group`)}pt.records.registeredIds[M]="node",pt.records.nodes[M]={id:M,type:"service",icon:Y,iconText:N,title:G,edges:[],in:C}},"addService"),Mr=nt(()=>Object.values(pt.records.nodes).filter(mr),"getServices"),Ar=nt(function({id:M,in:Y}){pt.records.registeredIds[M]="node",pt.records.nodes[M]={id:M,type:"junction",edges:[],in:Y}},"addJunction"),Cr=nt(()=>Object.values(pt.records.nodes).filter(Tr),"getJunctions"),wr=nt(()=>Object.values(pt.records.nodes),"getNodes"),Or=nt(M=>pt.records.nodes[M],"getNode"),Dr=nt(function({id:M,icon:Y,in:C,title:G}){if(pt.records.registeredIds[M]!==void 0)throw new Error(`The group id [${M}] is already in use by another ${pt.records.registeredIds[M]}`);if(C!==void 0){if(M===C)throw new Error(`The group [${M}] cannot be placed within itself`);if(pt.records.registeredIds[C]===void 0)throw new Error(`The group [${M}]'s parent does not exist. Please make sure the parent is created before this group`);if(pt.records.registeredIds[C]==="node")throw new Error(`The group [${M}]'s parent is not a group`)}pt.records.registeredIds[M]="group",pt.records.groups[M]={id:M,icon:Y,title:G,in:C}},"addGroup"),xr=nt(()=>Object.values(pt.records.groups),"getGroups"),Ir=nt(function({lhsId:M,rhsId:Y,lhsDir:C,rhsDir:G,lhsInto:N,rhsInto:g,lhsGroup:s,rhsGroup:i,title:r}){if(!Re(C))throw new Error(`Invalid direction given for left hand side of edge ${M}--${Y}. Expected (L,R,T,B) got ${C}`);if(!Re(G))throw new Error(`Invalid direction given for right hand side of edge ${M}--${Y}. Expected (L,R,T,B) got ${G}`);if(pt.records.nodes[M]===void 0&&pt.records.groups[M]===void 0)throw new Error(`The left-hand id [${M}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(pt.records.nodes[Y]===void 0&&pt.records.groups[M]===void 0)throw new Error(`The right-hand id [${Y}] does not yet exist. Please create the service/group before declaring an edge to it.`);const e=pt.records.nodes[M].in,f=pt.records.nodes[Y].in;if(s&&e&&f&&e==f)throw new Error(`The left-hand id [${M}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(i&&e&&f&&e==f)throw new Error(`The right-hand id [${Y}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);const a={lhsId:M,lhsDir:C,lhsInto:N,lhsGroup:s,rhsId:Y,rhsDir:G,rhsInto:g,rhsGroup:i,title:r};pt.records.edges.push(a),pt.records.nodes[M]&&pt.records.nodes[Y]&&(pt.records.nodes[M].edges.push(pt.records.edges[pt.records.edges.length-1]),pt.records.nodes[Y].edges.push(pt.records.edges[pt.records.edges.length-1]))},"addEdge"),Rr=nt(()=>pt.records.edges,"getEdges"),Sr=nt(()=>{if(pt.records.dataStructures===void 0){const M=Object.entries(pt.records.nodes).reduce((s,[i,r])=>(s[i]=r.edges.reduce((e,f)=>{if(f.lhsId===i){const a=me(f.lhsDir,f.rhsDir);a&&(e[a]=f.rhsId)}else{const a=me(f.rhsDir,f.lhsDir);a&&(e[a]=f.lhsId)}return e},{}),s),{}),Y=Object.keys(M)[0],C={[Y]:1},G=Object.keys(M).reduce((s,i)=>i===Y?s:{...s,[i]:1},{}),N=nt(s=>{const i={[s]:[0,0]},r=[s];for(;r.length>0;){const e=r.shift();if(e){C[e]=1,delete G[e];const f=M[e],[a,y]=i[e];Object.entries(f).forEach(([t,h])=>{C[h]||(i[h]=yr([a,y],t),r.push(h))})}}return i},"BFS"),g=[N(Y)];for(;Object.keys(G).length>0;)g.push(N(Object.keys(G)[0]));pt.records.dataStructures={adjList:M,spatialMaps:g}}return pt.records.dataStructures},"getDataStructures"),Fr=nt((M,Y)=>{pt.records.elements[M]=Y},"setElementForId"),br=nt(M=>pt.records.elements[M],"getElementById"),le={clear:Nr,setDiagramTitle:_e,getDiagramTitle:je,setAccTitle:Ke,getAccTitle:Qe,setAccDescription:Je,getAccDescription:qe,addService:Lr,getServices:Mr,addJunction:Ar,getJunctions:Cr,getNodes:wr,getNode:Or,addGroup:Dr,getGroups:xr,addEdge:Ir,getEdges:Rr,setElementForId:Fr,getElementById:br,getDataStructures:Sr};function Pt(M){const Y=fe().architecture;return Y!=null&&Y[M]?Y[M]:Ue[M]}nt(Pt,"getConfigField");var Pr=nt((M,Y)=>{sr(M,Y),M.groups.map(Y.addGroup),M.services.map(C=>Y.addService({...C,type:"service"})),M.junctions.map(C=>Y.addJunction({...C,type:"junction"})),M.edges.map(Y.addEdge)},"populateDb"),Gr={parse:nt(async M=>{const Y=await lr("architecture",M);Se.debug(Y),Pr(Y,le)},"parse")},Ur=nt(M=>` .edge { stroke-width: ${M.archEdgeWidth}; stroke: ${M.archEdgeColor}; diff --git a/static/js/md-blockDiagram-ZHA2E4KO-C8ljgUT6.js b/static/js/md-blockDiagram-ZHA2E4KO-B_JcBI2p.js similarity index 99% rename from static/js/md-blockDiagram-ZHA2E4KO-C8ljgUT6.js rename to static/js/md-blockDiagram-ZHA2E4KO-B_JcBI2p.js index c8e552d39..0b80b0eb8 100644 --- a/static/js/md-blockDiagram-ZHA2E4KO-C8ljgUT6.js +++ b/static/js/md-blockDiagram-ZHA2E4KO-B_JcBI2p.js @@ -1,4 +1,4 @@ -import{_ as d,D as at,d as R,e as de,l as L,v as ge,A as ue,c as z,ah as pe,K as fe,Q as xe,ai as Z,aj as Yt,ak as ye,u as tt,k as be,al as we,am as xt,an as me,i as Tt}from"./md-index-Pj6M4nIk.js";import{c as Le}from"./md-clone-CnShQSdt.js";import{G as Se}from"./md-graph-Dk7IDouC.js";import{c as ve}from"./md-channel-BZPvYpZL.js";import"./md-_baseUniq-B_2Z1DXv.js";var yt=function(){var e=d(function(N,x,g,u){for(g=g||{},u=N.length;u--;g[N[u]]=x);return g},"o"),t=[1,7],r=[1,13],n=[1,14],i=[1,15],a=[1,19],s=[1,16],l=[1,17],o=[1,18],f=[8,30],h=[8,21,28,29,30,31,32,40,44,47],y=[1,23],b=[1,24],m=[8,15,16,21,28,29,30,31,32,40,44,47],E=[8,15,16,21,27,28,29,30,31,32,40,44,47],D=[1,49],v={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,block:31,NODE_ID:32,nodeShapeNLabel:33,dirList:34,DIR:35,NODE_DSTART:36,NODE_DEND:37,BLOCK_ARROW_START:38,BLOCK_ARROW_END:39,classDef:40,CLASSDEF_ID:41,CLASSDEF_STYLEOPTS:42,DEFAULT:43,class:44,CLASSENTITY_IDS:45,STYLECLASS:46,style:47,STYLE_ENTITY_IDS:48,STYLE_DEFINITION_DATA:49,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"block",32:"NODE_ID",35:"DIR",36:"NODE_DSTART",37:"NODE_DEND",38:"BLOCK_ARROW_START",39:"BLOCK_ARROW_END",40:"classDef",41:"CLASSDEF_ID",42:"CLASSDEF_STYLEOPTS",43:"DEFAULT",44:"class",45:"CLASSENTITY_IDS",46:"STYLECLASS",47:"style",48:"STYLE_ENTITY_IDS",49:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[34,1],[34,2],[33,3],[33,4],[23,3],[23,3],[24,3],[25,3]],performAction:d(function(x,g,u,w,S,c,_){var p=c.length-1;switch(S){case 4:w.getLogger().debug("Rule: separator (NL) ");break;case 5:w.getLogger().debug("Rule: separator (Space) ");break;case 6:w.getLogger().debug("Rule: separator (EOF) ");break;case 7:w.getLogger().debug("Rule: hierarchy: ",c[p-1]),w.setHierarchy(c[p-1]);break;case 8:w.getLogger().debug("Stop NL ");break;case 9:w.getLogger().debug("Stop EOF ");break;case 10:w.getLogger().debug("Stop NL2 ");break;case 11:w.getLogger().debug("Stop EOF2 ");break;case 12:w.getLogger().debug("Rule: statement: ",c[p]),typeof c[p].length=="number"?this.$=c[p]:this.$=[c[p]];break;case 13:w.getLogger().debug("Rule: statement #2: ",c[p-1]),this.$=[c[p-1]].concat(c[p]);break;case 14:w.getLogger().debug("Rule: link: ",c[p],x),this.$={edgeTypeStr:c[p],label:""};break;case 15:w.getLogger().debug("Rule: LABEL link: ",c[p-3],c[p-1],c[p]),this.$={edgeTypeStr:c[p],label:c[p-1]};break;case 18:const A=parseInt(c[p]),O=w.generateId();this.$={id:O,type:"space",label:"",width:A,children:[]};break;case 23:w.getLogger().debug("Rule: (nodeStatement link node) ",c[p-2],c[p-1],c[p]," typestr: ",c[p-1].edgeTypeStr);const X=w.edgeStrToEdgeData(c[p-1].edgeTypeStr);this.$=[{id:c[p-2].id,label:c[p-2].label,type:c[p-2].type,directions:c[p-2].directions},{id:c[p-2].id+"-"+c[p].id,start:c[p-2].id,end:c[p].id,label:c[p-1].label,type:"edge",directions:c[p].directions,arrowTypeEnd:X,arrowTypeStart:"arrow_open"},{id:c[p].id,label:c[p].label,type:w.typeStr2Type(c[p].typeStr),directions:c[p].directions}];break;case 24:w.getLogger().debug("Rule: nodeStatement (abc88 node size) ",c[p-1],c[p]),this.$={id:c[p-1].id,label:c[p-1].label,type:w.typeStr2Type(c[p-1].typeStr),directions:c[p-1].directions,widthInColumns:parseInt(c[p],10)};break;case 25:w.getLogger().debug("Rule: nodeStatement (node) ",c[p]),this.$={id:c[p].id,label:c[p].label,type:w.typeStr2Type(c[p].typeStr),directions:c[p].directions,widthInColumns:1};break;case 26:w.getLogger().debug("APA123",this?this:"na"),w.getLogger().debug("COLUMNS: ",c[p]),this.$={type:"column-setting",columns:c[p]==="auto"?-1:parseInt(c[p])};break;case 27:w.getLogger().debug("Rule: id-block statement : ",c[p-2],c[p-1]),w.generateId(),this.$={...c[p-2],type:"composite",children:c[p-1]};break;case 28:w.getLogger().debug("Rule: blockStatement : ",c[p-2],c[p-1],c[p]);const W=w.generateId();this.$={id:W,type:"composite",label:"",children:c[p-1]};break;case 29:w.getLogger().debug("Rule: node (NODE_ID separator): ",c[p]),this.$={id:c[p]};break;case 30:w.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",c[p-1],c[p]),this.$={id:c[p-1],label:c[p].label,typeStr:c[p].typeStr,directions:c[p].directions};break;case 31:w.getLogger().debug("Rule: dirList: ",c[p]),this.$=[c[p]];break;case 32:w.getLogger().debug("Rule: dirList: ",c[p-1],c[p]),this.$=[c[p-1]].concat(c[p]);break;case 33:w.getLogger().debug("Rule: nodeShapeNLabel: ",c[p-2],c[p-1],c[p]),this.$={typeStr:c[p-2]+c[p],label:c[p-1]};break;case 34:w.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",c[p-3],c[p-2]," #3:",c[p-1],c[p]),this.$={typeStr:c[p-3]+c[p],label:c[p-2],directions:c[p-1]};break;case 35:case 36:this.$={type:"classDef",id:c[p-1].trim(),css:c[p].trim()};break;case 37:this.$={type:"applyClass",id:c[p-1].trim(),styleClass:c[p].trim()};break;case 38:this.$={type:"applyStyles",id:c[p-1].trim(),stylesStr:c[p].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:r,29:n,31:i,32:a,40:s,44:l,47:o},{8:[1,20]},e(f,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,21:t,28:r,29:n,31:i,32:a,40:s,44:l,47:o}),e(h,[2,16],{14:22,15:y,16:b}),e(h,[2,17]),e(h,[2,18]),e(h,[2,19]),e(h,[2,20]),e(h,[2,21]),e(h,[2,22]),e(m,[2,25],{27:[1,25]}),e(h,[2,26]),{19:26,26:12,32:a},{11:27,13:4,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:r,29:n,31:i,32:a,40:s,44:l,47:o},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},e(E,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},e(f,[2,13]),{26:35,32:a},{32:[2,14]},{17:[1,36]},e(m,[2,24]),{11:37,13:4,14:22,15:y,16:b,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:r,29:n,31:i,32:a,40:s,44:l,47:o},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},e(E,[2,30]),{18:[1,43]},{18:[1,44]},e(m,[2,23]),{18:[1,45]},{30:[1,46]},e(h,[2,28]),e(h,[2,35]),e(h,[2,36]),e(h,[2,37]),e(h,[2,38]),{37:[1,47]},{34:48,35:D},{15:[1,50]},e(h,[2,27]),e(E,[2,33]),{39:[1,51]},{34:52,35:D,39:[2,31]},{32:[2,15]},e(E,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:d(function(x,g){if(g.recoverable)this.trace(x);else{var u=new Error(x);throw u.hash=g,u}},"parseError"),parse:d(function(x){var g=this,u=[0],w=[],S=[null],c=[],_=this.table,p="",A=0,O=0,X=2,W=1,ce=c.slice.call(arguments,1),M=Object.create(this.lexer),J={yy:{}};for(var gt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,gt)&&(J.yy[gt]=this.yy[gt]);M.setInput(x,J.yy),J.yy.lexer=M,J.yy.parser=this,typeof M.yylloc>"u"&&(M.yylloc={});var ut=M.yylloc;c.push(ut);var oe=M.options&&M.options.ranges;typeof J.yy.parseError=="function"?this.parseError=J.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function he(H){u.length=u.length-2*H,S.length=S.length-H,c.length=c.length-H}d(he,"popStack");function Dt(){var H;return H=w.pop()||M.lex()||W,typeof H!="number"&&(H instanceof Array&&(w=H,H=w.pop()),H=g.symbols_[H]||H),H}d(Dt,"lex");for(var Y,Q,U,pt,$={},st,q,Nt,it;;){if(Q=u[u.length-1],this.defaultActions[Q]?U=this.defaultActions[Q]:((Y===null||typeof Y>"u")&&(Y=Dt()),U=_[Q]&&_[Q][Y]),typeof U>"u"||!U.length||!U[0]){var ft="";it=[];for(st in _[Q])this.terminals_[st]&&st>X&&it.push("'"+this.terminals_[st]+"'");M.showPosition?ft="Parse error on line "+(A+1)+`: +import{_ as d,D as at,d as R,e as de,l as L,v as ge,A as ue,c as z,ah as pe,K as fe,Q as xe,ai as Z,aj as Yt,ak as ye,u as tt,k as be,al as we,am as xt,an as me,i as Tt}from"./md-index-1F_vrIf8.js";import{c as Le}from"./md-clone-Cc6Gk5Be.js";import{G as Se}from"./md-graph-tF8klDvC.js";import{c as ve}from"./md-channel-CvuT1-A9.js";import"./md-_baseUniq-CaouebKG.js";var yt=function(){var e=d(function(N,x,g,u){for(g=g||{},u=N.length;u--;g[N[u]]=x);return g},"o"),t=[1,7],r=[1,13],n=[1,14],i=[1,15],a=[1,19],s=[1,16],l=[1,17],o=[1,18],f=[8,30],h=[8,21,28,29,30,31,32,40,44,47],y=[1,23],b=[1,24],m=[8,15,16,21,28,29,30,31,32,40,44,47],E=[8,15,16,21,27,28,29,30,31,32,40,44,47],D=[1,49],v={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,block:31,NODE_ID:32,nodeShapeNLabel:33,dirList:34,DIR:35,NODE_DSTART:36,NODE_DEND:37,BLOCK_ARROW_START:38,BLOCK_ARROW_END:39,classDef:40,CLASSDEF_ID:41,CLASSDEF_STYLEOPTS:42,DEFAULT:43,class:44,CLASSENTITY_IDS:45,STYLECLASS:46,style:47,STYLE_ENTITY_IDS:48,STYLE_DEFINITION_DATA:49,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"block",32:"NODE_ID",35:"DIR",36:"NODE_DSTART",37:"NODE_DEND",38:"BLOCK_ARROW_START",39:"BLOCK_ARROW_END",40:"classDef",41:"CLASSDEF_ID",42:"CLASSDEF_STYLEOPTS",43:"DEFAULT",44:"class",45:"CLASSENTITY_IDS",46:"STYLECLASS",47:"style",48:"STYLE_ENTITY_IDS",49:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[34,1],[34,2],[33,3],[33,4],[23,3],[23,3],[24,3],[25,3]],performAction:d(function(x,g,u,w,S,c,_){var p=c.length-1;switch(S){case 4:w.getLogger().debug("Rule: separator (NL) ");break;case 5:w.getLogger().debug("Rule: separator (Space) ");break;case 6:w.getLogger().debug("Rule: separator (EOF) ");break;case 7:w.getLogger().debug("Rule: hierarchy: ",c[p-1]),w.setHierarchy(c[p-1]);break;case 8:w.getLogger().debug("Stop NL ");break;case 9:w.getLogger().debug("Stop EOF ");break;case 10:w.getLogger().debug("Stop NL2 ");break;case 11:w.getLogger().debug("Stop EOF2 ");break;case 12:w.getLogger().debug("Rule: statement: ",c[p]),typeof c[p].length=="number"?this.$=c[p]:this.$=[c[p]];break;case 13:w.getLogger().debug("Rule: statement #2: ",c[p-1]),this.$=[c[p-1]].concat(c[p]);break;case 14:w.getLogger().debug("Rule: link: ",c[p],x),this.$={edgeTypeStr:c[p],label:""};break;case 15:w.getLogger().debug("Rule: LABEL link: ",c[p-3],c[p-1],c[p]),this.$={edgeTypeStr:c[p],label:c[p-1]};break;case 18:const A=parseInt(c[p]),O=w.generateId();this.$={id:O,type:"space",label:"",width:A,children:[]};break;case 23:w.getLogger().debug("Rule: (nodeStatement link node) ",c[p-2],c[p-1],c[p]," typestr: ",c[p-1].edgeTypeStr);const X=w.edgeStrToEdgeData(c[p-1].edgeTypeStr);this.$=[{id:c[p-2].id,label:c[p-2].label,type:c[p-2].type,directions:c[p-2].directions},{id:c[p-2].id+"-"+c[p].id,start:c[p-2].id,end:c[p].id,label:c[p-1].label,type:"edge",directions:c[p].directions,arrowTypeEnd:X,arrowTypeStart:"arrow_open"},{id:c[p].id,label:c[p].label,type:w.typeStr2Type(c[p].typeStr),directions:c[p].directions}];break;case 24:w.getLogger().debug("Rule: nodeStatement (abc88 node size) ",c[p-1],c[p]),this.$={id:c[p-1].id,label:c[p-1].label,type:w.typeStr2Type(c[p-1].typeStr),directions:c[p-1].directions,widthInColumns:parseInt(c[p],10)};break;case 25:w.getLogger().debug("Rule: nodeStatement (node) ",c[p]),this.$={id:c[p].id,label:c[p].label,type:w.typeStr2Type(c[p].typeStr),directions:c[p].directions,widthInColumns:1};break;case 26:w.getLogger().debug("APA123",this?this:"na"),w.getLogger().debug("COLUMNS: ",c[p]),this.$={type:"column-setting",columns:c[p]==="auto"?-1:parseInt(c[p])};break;case 27:w.getLogger().debug("Rule: id-block statement : ",c[p-2],c[p-1]),w.generateId(),this.$={...c[p-2],type:"composite",children:c[p-1]};break;case 28:w.getLogger().debug("Rule: blockStatement : ",c[p-2],c[p-1],c[p]);const W=w.generateId();this.$={id:W,type:"composite",label:"",children:c[p-1]};break;case 29:w.getLogger().debug("Rule: node (NODE_ID separator): ",c[p]),this.$={id:c[p]};break;case 30:w.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",c[p-1],c[p]),this.$={id:c[p-1],label:c[p].label,typeStr:c[p].typeStr,directions:c[p].directions};break;case 31:w.getLogger().debug("Rule: dirList: ",c[p]),this.$=[c[p]];break;case 32:w.getLogger().debug("Rule: dirList: ",c[p-1],c[p]),this.$=[c[p-1]].concat(c[p]);break;case 33:w.getLogger().debug("Rule: nodeShapeNLabel: ",c[p-2],c[p-1],c[p]),this.$={typeStr:c[p-2]+c[p],label:c[p-1]};break;case 34:w.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",c[p-3],c[p-2]," #3:",c[p-1],c[p]),this.$={typeStr:c[p-3]+c[p],label:c[p-2],directions:c[p-1]};break;case 35:case 36:this.$={type:"classDef",id:c[p-1].trim(),css:c[p].trim()};break;case 37:this.$={type:"applyClass",id:c[p-1].trim(),styleClass:c[p].trim()};break;case 38:this.$={type:"applyStyles",id:c[p-1].trim(),stylesStr:c[p].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:r,29:n,31:i,32:a,40:s,44:l,47:o},{8:[1,20]},e(f,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,21:t,28:r,29:n,31:i,32:a,40:s,44:l,47:o}),e(h,[2,16],{14:22,15:y,16:b}),e(h,[2,17]),e(h,[2,18]),e(h,[2,19]),e(h,[2,20]),e(h,[2,21]),e(h,[2,22]),e(m,[2,25],{27:[1,25]}),e(h,[2,26]),{19:26,26:12,32:a},{11:27,13:4,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:r,29:n,31:i,32:a,40:s,44:l,47:o},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},e(E,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},e(f,[2,13]),{26:35,32:a},{32:[2,14]},{17:[1,36]},e(m,[2,24]),{11:37,13:4,14:22,15:y,16:b,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:r,29:n,31:i,32:a,40:s,44:l,47:o},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},e(E,[2,30]),{18:[1,43]},{18:[1,44]},e(m,[2,23]),{18:[1,45]},{30:[1,46]},e(h,[2,28]),e(h,[2,35]),e(h,[2,36]),e(h,[2,37]),e(h,[2,38]),{37:[1,47]},{34:48,35:D},{15:[1,50]},e(h,[2,27]),e(E,[2,33]),{39:[1,51]},{34:52,35:D,39:[2,31]},{32:[2,15]},e(E,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:d(function(x,g){if(g.recoverable)this.trace(x);else{var u=new Error(x);throw u.hash=g,u}},"parseError"),parse:d(function(x){var g=this,u=[0],w=[],S=[null],c=[],_=this.table,p="",A=0,O=0,X=2,W=1,ce=c.slice.call(arguments,1),M=Object.create(this.lexer),J={yy:{}};for(var gt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,gt)&&(J.yy[gt]=this.yy[gt]);M.setInput(x,J.yy),J.yy.lexer=M,J.yy.parser=this,typeof M.yylloc>"u"&&(M.yylloc={});var ut=M.yylloc;c.push(ut);var oe=M.options&&M.options.ranges;typeof J.yy.parseError=="function"?this.parseError=J.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function he(H){u.length=u.length-2*H,S.length=S.length-H,c.length=c.length-H}d(he,"popStack");function Dt(){var H;return H=w.pop()||M.lex()||W,typeof H!="number"&&(H instanceof Array&&(w=H,H=w.pop()),H=g.symbols_[H]||H),H}d(Dt,"lex");for(var Y,Q,U,pt,$={},st,q,Nt,it;;){if(Q=u[u.length-1],this.defaultActions[Q]?U=this.defaultActions[Q]:((Y===null||typeof Y>"u")&&(Y=Dt()),U=_[Q]&&_[Q][Y]),typeof U>"u"||!U.length||!U[0]){var ft="";it=[];for(st in _[Q])this.terminals_[st]&&st>X&&it.push("'"+this.terminals_[st]+"'");M.showPosition?ft="Parse error on line "+(A+1)+`: `+M.showPosition()+` Expecting `+it.join(", ")+", got '"+(this.terminals_[Y]||Y)+"'":ft="Parse error on line "+(A+1)+": Unexpected "+(Y==W?"end of input":"'"+(this.terminals_[Y]||Y)+"'"),this.parseError(ft,{text:M.match,token:this.terminals_[Y]||Y,line:M.yylineno,loc:ut,expected:it})}if(U[0]instanceof Array&&U.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Q+", token: "+Y);switch(U[0]){case 1:u.push(Y),S.push(M.yytext),c.push(M.yylloc),u.push(U[1]),Y=null,O=M.yyleng,p=M.yytext,A=M.yylineno,ut=M.yylloc;break;case 2:if(q=this.productions_[U[1]][1],$.$=S[S.length-q],$._$={first_line:c[c.length-(q||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(q||1)].first_column,last_column:c[c.length-1].last_column},oe&&($._$.range=[c[c.length-(q||1)].range[0],c[c.length-1].range[1]]),pt=this.performAction.apply($,[p,O,A,J.yy,U[1],S,c].concat(ce)),typeof pt<"u")return pt;q&&(u=u.slice(0,-1*q*2),S=S.slice(0,-1*q),c=c.slice(0,-1*q)),u.push(this.productions_[U[1]][0]),S.push($.$),c.push($._$),Nt=_[u[u.length-2]][u[u.length-1]],u.push(Nt);break;case 3:return!0}}return!0},"parse")},T=function(){var N={EOF:1,parseError:d(function(g,u){if(this.yy.parser)this.yy.parser.parseError(g,u);else throw new Error(g)},"parseError"),setInput:d(function(x,g){return this.yy=g||this.yy||{},this._input=x,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 x=this._input[0];this.yytext+=x,this.yyleng++,this.offset++,this.match+=x,this.matched+=x;var g=x.match(/(?:\r\n?|\n).*/g);return g?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),x},"input"),unput:d(function(x){var g=x.length,u=x.split(/(?:\r\n?|\n)/g);this._input=x+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-g),this.offset-=g;var w=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),u.length-1&&(this.yylineno-=u.length-1);var S=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:u?(u.length===w.length?this.yylloc.first_column:0)+w[w.length-u.length].length-u[0].length:this.yylloc.first_column-g},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-g]),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). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:d(function(x){this.unput(this.match.slice(x))},"less"),pastInput:d(function(){var x=this.matched.substr(0,this.matched.length-this.match.length);return(x.length>20?"...":"")+x.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var x=this.match;return x.length<20&&(x+=this._input.substr(0,20-x.length)),(x.substr(0,20)+(x.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var x=this.pastInput(),g=new Array(x.length+1).join("-");return x+this.upcomingInput()+` diff --git a/static/js/md-c4Diagram-6F5ED5ID-DVeXkvBx.js b/static/js/md-c4Diagram-6F5ED5ID-DAgfq_AW.js similarity index 99% rename from static/js/md-c4Diagram-6F5ED5ID-DVeXkvBx.js rename to static/js/md-c4Diagram-6F5ED5ID-DAgfq_AW.js index eb915dd29..2eba5bf03 100644 --- a/static/js/md-c4Diagram-6F5ED5ID-DVeXkvBx.js +++ b/static/js/md-c4Diagram-6F5ED5ID-DAgfq_AW.js @@ -1,4 +1,4 @@ -import{g as Se,d as De}from"./md-chunk-ASOPGD6M-WtHLfW0h.js";import{_ as g,s as Pe,g as Be,a as Ie,b as Me,c as Bt,d as jt,l as de,e as Le,f as Ne,h as Tt,i as ge,j as Ye,w as je,k as $t,m as fe}from"./md-index-Pj6M4nIk.js";var Ft=function(){var e=g(function(_t,x,m,v){for(m=m||{},v=_t.length;v--;m[_t[v]]=x);return m},"o"),t=[1,24],s=[1,25],o=[1,26],l=[1,27],a=[1,28],r=[1,63],n=[1,64],i=[1,65],u=[1,66],d=[1,67],f=[1,68],y=[1,69],E=[1,29],O=[1,30],S=[1,31],P=[1,32],M=[1,33],U=[1,34],H=[1,35],q=[1,36],G=[1,37],K=[1,38],J=[1,39],Z=[1,40],$=[1,41],tt=[1,42],et=[1,43],at=[1,44],it=[1,45],nt=[1,46],rt=[1,47],st=[1,48],lt=[1,50],ot=[1,51],ct=[1,52],ht=[1,53],ut=[1,54],dt=[1,55],ft=[1,56],pt=[1,57],yt=[1,58],gt=[1,59],bt=[1,60],Ct=[14,42],Qt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],St=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],k=[1,82],A=[1,83],C=[1,84],w=[1,85],T=[12,14,42],le=[12,14,33,42],Mt=[12,14,33,42,76,77,79,80],vt=[12,33],Ht=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],qt={trace:g(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:g(function(x,m,v,b,R,h,Dt){var p=h.length-1;switch(R){case 3:b.setDirection("TB");break;case 4:b.setDirection("BT");break;case 5:b.setDirection("RL");break;case 6:b.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:b.setC4Type(h[p-3]);break;case 19:b.setTitle(h[p].substring(6)),this.$=h[p].substring(6);break;case 20:b.setAccDescription(h[p].substring(15)),this.$=h[p].substring(15);break;case 21:this.$=h[p].trim(),b.setTitle(this.$);break;case 22:case 23:this.$=h[p].trim(),b.setAccDescription(this.$);break;case 28:h[p].splice(2,0,"ENTERPRISE"),b.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 29:h[p].splice(2,0,"SYSTEM"),b.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 30:b.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 31:h[p].splice(2,0,"CONTAINER"),b.addContainerBoundary(...h[p]),this.$=h[p];break;case 32:b.addDeploymentNode("node",...h[p]),this.$=h[p];break;case 33:b.addDeploymentNode("nodeL",...h[p]),this.$=h[p];break;case 34:b.addDeploymentNode("nodeR",...h[p]),this.$=h[p];break;case 35:b.popBoundaryParseStack();break;case 39:b.addPersonOrSystem("person",...h[p]),this.$=h[p];break;case 40:b.addPersonOrSystem("external_person",...h[p]),this.$=h[p];break;case 41:b.addPersonOrSystem("system",...h[p]),this.$=h[p];break;case 42:b.addPersonOrSystem("system_db",...h[p]),this.$=h[p];break;case 43:b.addPersonOrSystem("system_queue",...h[p]),this.$=h[p];break;case 44:b.addPersonOrSystem("external_system",...h[p]),this.$=h[p];break;case 45:b.addPersonOrSystem("external_system_db",...h[p]),this.$=h[p];break;case 46:b.addPersonOrSystem("external_system_queue",...h[p]),this.$=h[p];break;case 47:b.addContainer("container",...h[p]),this.$=h[p];break;case 48:b.addContainer("container_db",...h[p]),this.$=h[p];break;case 49:b.addContainer("container_queue",...h[p]),this.$=h[p];break;case 50:b.addContainer("external_container",...h[p]),this.$=h[p];break;case 51:b.addContainer("external_container_db",...h[p]),this.$=h[p];break;case 52:b.addContainer("external_container_queue",...h[p]),this.$=h[p];break;case 53:b.addComponent("component",...h[p]),this.$=h[p];break;case 54:b.addComponent("component_db",...h[p]),this.$=h[p];break;case 55:b.addComponent("component_queue",...h[p]),this.$=h[p];break;case 56:b.addComponent("external_component",...h[p]),this.$=h[p];break;case 57:b.addComponent("external_component_db",...h[p]),this.$=h[p];break;case 58:b.addComponent("external_component_queue",...h[p]),this.$=h[p];break;case 60:b.addRel("rel",...h[p]),this.$=h[p];break;case 61:b.addRel("birel",...h[p]),this.$=h[p];break;case 62:b.addRel("rel_u",...h[p]),this.$=h[p];break;case 63:b.addRel("rel_d",...h[p]),this.$=h[p];break;case 64:b.addRel("rel_l",...h[p]),this.$=h[p];break;case 65:b.addRel("rel_r",...h[p]),this.$=h[p];break;case 66:b.addRel("rel_b",...h[p]),this.$=h[p];break;case 67:h[p].splice(0,1),b.addRel("rel",...h[p]),this.$=h[p];break;case 68:b.updateElStyle("update_el_style",...h[p]),this.$=h[p];break;case 69:b.updateRelStyle("update_rel_style",...h[p]),this.$=h[p];break;case 70:b.updateLayoutConfig("update_layout_config",...h[p]),this.$=h[p];break;case 71:this.$=[h[p]];break;case 72:h[p].unshift(h[p-1]),this.$=h[p];break;case 73:case 75:this.$=h[p].trim();break;case 74:let Et={};Et[h[p-1].trim()]=h[p].trim(),this.$=Et;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:70,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:71,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:72,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:73,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{14:[1,74]},e(Ct,[2,13],{43:23,29:49,30:61,32:62,20:75,34:r,36:n,37:i,38:u,39:d,40:f,41:y,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(Ct,[2,14]),e(Qt,[2,16],{12:[1,76]}),e(Ct,[2,36],{12:[1,77]}),e(St,[2,19]),e(St,[2,20]),{25:[1,78]},{27:[1,79]},e(St,[2,23]),{35:80,75:81,76:k,77:A,79:C,80:w},{35:86,75:81,76:k,77:A,79:C,80:w},{35:87,75:81,76:k,77:A,79:C,80:w},{35:88,75:81,76:k,77:A,79:C,80:w},{35:89,75:81,76:k,77:A,79:C,80:w},{35:90,75:81,76:k,77:A,79:C,80:w},{35:91,75:81,76:k,77:A,79:C,80:w},{35:92,75:81,76:k,77:A,79:C,80:w},{35:93,75:81,76:k,77:A,79:C,80:w},{35:94,75:81,76:k,77:A,79:C,80:w},{35:95,75:81,76:k,77:A,79:C,80:w},{35:96,75:81,76:k,77:A,79:C,80:w},{35:97,75:81,76:k,77:A,79:C,80:w},{35:98,75:81,76:k,77:A,79:C,80:w},{35:99,75:81,76:k,77:A,79:C,80:w},{35:100,75:81,76:k,77:A,79:C,80:w},{35:101,75:81,76:k,77:A,79:C,80:w},{35:102,75:81,76:k,77:A,79:C,80:w},{35:103,75:81,76:k,77:A,79:C,80:w},{35:104,75:81,76:k,77:A,79:C,80:w},e(T,[2,59]),{35:105,75:81,76:k,77:A,79:C,80:w},{35:106,75:81,76:k,77:A,79:C,80:w},{35:107,75:81,76:k,77:A,79:C,80:w},{35:108,75:81,76:k,77:A,79:C,80:w},{35:109,75:81,76:k,77:A,79:C,80:w},{35:110,75:81,76:k,77:A,79:C,80:w},{35:111,75:81,76:k,77:A,79:C,80:w},{35:112,75:81,76:k,77:A,79:C,80:w},{35:113,75:81,76:k,77:A,79:C,80:w},{35:114,75:81,76:k,77:A,79:C,80:w},{35:115,75:81,76:k,77:A,79:C,80:w},{20:116,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{12:[1,118],33:[1,117]},{35:119,75:81,76:k,77:A,79:C,80:w},{35:120,75:81,76:k,77:A,79:C,80:w},{35:121,75:81,76:k,77:A,79:C,80:w},{35:122,75:81,76:k,77:A,79:C,80:w},{35:123,75:81,76:k,77:A,79:C,80:w},{35:124,75:81,76:k,77:A,79:C,80:w},{35:125,75:81,76:k,77:A,79:C,80:w},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Ct,[2,15]),e(Qt,[2,17],{21:22,19:130,22:t,23:s,24:o,26:l,28:a}),e(Ct,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:s,24:o,26:l,28:a,34:r,36:n,37:i,38:u,39:d,40:f,41:y,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(St,[2,21]),e(St,[2,22]),e(T,[2,39]),e(le,[2,71],{75:81,35:132,76:k,77:A,79:C,80:w}),e(Mt,[2,73]),{78:[1,133]},e(Mt,[2,75]),e(Mt,[2,76]),e(T,[2,40]),e(T,[2,41]),e(T,[2,42]),e(T,[2,43]),e(T,[2,44]),e(T,[2,45]),e(T,[2,46]),e(T,[2,47]),e(T,[2,48]),e(T,[2,49]),e(T,[2,50]),e(T,[2,51]),e(T,[2,52]),e(T,[2,53]),e(T,[2,54]),e(T,[2,55]),e(T,[2,56]),e(T,[2,57]),e(T,[2,58]),e(T,[2,60]),e(T,[2,61]),e(T,[2,62]),e(T,[2,63]),e(T,[2,64]),e(T,[2,65]),e(T,[2,66]),e(T,[2,67]),e(T,[2,68]),e(T,[2,69]),e(T,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(vt,[2,28]),e(vt,[2,29]),e(vt,[2,30]),e(vt,[2,31]),e(vt,[2,32]),e(vt,[2,33]),e(vt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Qt,[2,18]),e(Ct,[2,38]),e(le,[2,72]),e(Mt,[2,74]),e(T,[2,24]),e(T,[2,35]),e(Ht,[2,25]),e(Ht,[2,26],{12:[1,138]}),e(Ht,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:g(function(x,m){if(m.recoverable)this.trace(x);else{var v=new Error(x);throw v.hash=m,v}},"parseError"),parse:g(function(x){var m=this,v=[0],b=[],R=[null],h=[],Dt=this.table,p="",Et=0,oe=0,we=2,ce=1,Te=h.slice.call(arguments,1),D=Object.create(this.lexer),kt={yy:{}};for(var Gt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Gt)&&(kt.yy[Gt]=this.yy[Gt]);D.setInput(x,kt.yy),kt.yy.lexer=D,kt.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Kt=D.yylloc;h.push(Kt);var Oe=D.options&&D.options.ranges;typeof kt.yy.parseError=="function"?this.parseError=kt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Re(L){v.length=v.length-2*L,R.length=R.length-L,h.length=h.length-L}g(Re,"popStack");function he(){var L;return L=b.pop()||D.lex()||ce,typeof L!="number"&&(L instanceof Array&&(b=L,L=b.pop()),L=m.symbols_[L]||L),L}g(he,"lex");for(var I,At,N,Jt,wt={},Nt,W,ue,Yt;;){if(At=v[v.length-1],this.defaultActions[At]?N=this.defaultActions[At]:((I===null||typeof I>"u")&&(I=he()),N=Dt[At]&&Dt[At][I]),typeof N>"u"||!N.length||!N[0]){var Zt="";Yt=[];for(Nt in Dt[At])this.terminals_[Nt]&&Nt>we&&Yt.push("'"+this.terminals_[Nt]+"'");D.showPosition?Zt="Parse error on line "+(Et+1)+`: +import{g as Se,d as De}from"./md-chunk-ASOPGD6M-CJv05LUp.js";import{_ as g,s as Pe,g as Be,a as Ie,b as Me,c as Bt,d as jt,l as de,e as Le,f as Ne,h as Tt,i as ge,j as Ye,w as je,k as $t,m as fe}from"./md-index-1F_vrIf8.js";var Ft=function(){var e=g(function(_t,x,m,v){for(m=m||{},v=_t.length;v--;m[_t[v]]=x);return m},"o"),t=[1,24],s=[1,25],o=[1,26],l=[1,27],a=[1,28],r=[1,63],n=[1,64],i=[1,65],u=[1,66],d=[1,67],f=[1,68],y=[1,69],E=[1,29],O=[1,30],S=[1,31],P=[1,32],M=[1,33],U=[1,34],H=[1,35],q=[1,36],G=[1,37],K=[1,38],J=[1,39],Z=[1,40],$=[1,41],tt=[1,42],et=[1,43],at=[1,44],it=[1,45],nt=[1,46],rt=[1,47],st=[1,48],lt=[1,50],ot=[1,51],ct=[1,52],ht=[1,53],ut=[1,54],dt=[1,55],ft=[1,56],pt=[1,57],yt=[1,58],gt=[1,59],bt=[1,60],Ct=[14,42],Qt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],St=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],k=[1,82],A=[1,83],C=[1,84],w=[1,85],T=[12,14,42],le=[12,14,33,42],Mt=[12,14,33,42,76,77,79,80],vt=[12,33],Ht=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],qt={trace:g(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:g(function(x,m,v,b,R,h,Dt){var p=h.length-1;switch(R){case 3:b.setDirection("TB");break;case 4:b.setDirection("BT");break;case 5:b.setDirection("RL");break;case 6:b.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:b.setC4Type(h[p-3]);break;case 19:b.setTitle(h[p].substring(6)),this.$=h[p].substring(6);break;case 20:b.setAccDescription(h[p].substring(15)),this.$=h[p].substring(15);break;case 21:this.$=h[p].trim(),b.setTitle(this.$);break;case 22:case 23:this.$=h[p].trim(),b.setAccDescription(this.$);break;case 28:h[p].splice(2,0,"ENTERPRISE"),b.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 29:h[p].splice(2,0,"SYSTEM"),b.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 30:b.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 31:h[p].splice(2,0,"CONTAINER"),b.addContainerBoundary(...h[p]),this.$=h[p];break;case 32:b.addDeploymentNode("node",...h[p]),this.$=h[p];break;case 33:b.addDeploymentNode("nodeL",...h[p]),this.$=h[p];break;case 34:b.addDeploymentNode("nodeR",...h[p]),this.$=h[p];break;case 35:b.popBoundaryParseStack();break;case 39:b.addPersonOrSystem("person",...h[p]),this.$=h[p];break;case 40:b.addPersonOrSystem("external_person",...h[p]),this.$=h[p];break;case 41:b.addPersonOrSystem("system",...h[p]),this.$=h[p];break;case 42:b.addPersonOrSystem("system_db",...h[p]),this.$=h[p];break;case 43:b.addPersonOrSystem("system_queue",...h[p]),this.$=h[p];break;case 44:b.addPersonOrSystem("external_system",...h[p]),this.$=h[p];break;case 45:b.addPersonOrSystem("external_system_db",...h[p]),this.$=h[p];break;case 46:b.addPersonOrSystem("external_system_queue",...h[p]),this.$=h[p];break;case 47:b.addContainer("container",...h[p]),this.$=h[p];break;case 48:b.addContainer("container_db",...h[p]),this.$=h[p];break;case 49:b.addContainer("container_queue",...h[p]),this.$=h[p];break;case 50:b.addContainer("external_container",...h[p]),this.$=h[p];break;case 51:b.addContainer("external_container_db",...h[p]),this.$=h[p];break;case 52:b.addContainer("external_container_queue",...h[p]),this.$=h[p];break;case 53:b.addComponent("component",...h[p]),this.$=h[p];break;case 54:b.addComponent("component_db",...h[p]),this.$=h[p];break;case 55:b.addComponent("component_queue",...h[p]),this.$=h[p];break;case 56:b.addComponent("external_component",...h[p]),this.$=h[p];break;case 57:b.addComponent("external_component_db",...h[p]),this.$=h[p];break;case 58:b.addComponent("external_component_queue",...h[p]),this.$=h[p];break;case 60:b.addRel("rel",...h[p]),this.$=h[p];break;case 61:b.addRel("birel",...h[p]),this.$=h[p];break;case 62:b.addRel("rel_u",...h[p]),this.$=h[p];break;case 63:b.addRel("rel_d",...h[p]),this.$=h[p];break;case 64:b.addRel("rel_l",...h[p]),this.$=h[p];break;case 65:b.addRel("rel_r",...h[p]),this.$=h[p];break;case 66:b.addRel("rel_b",...h[p]),this.$=h[p];break;case 67:h[p].splice(0,1),b.addRel("rel",...h[p]),this.$=h[p];break;case 68:b.updateElStyle("update_el_style",...h[p]),this.$=h[p];break;case 69:b.updateRelStyle("update_rel_style",...h[p]),this.$=h[p];break;case 70:b.updateLayoutConfig("update_layout_config",...h[p]),this.$=h[p];break;case 71:this.$=[h[p]];break;case 72:h[p].unshift(h[p-1]),this.$=h[p];break;case 73:case 75:this.$=h[p].trim();break;case 74:let Et={};Et[h[p-1].trim()]=h[p].trim(),this.$=Et;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:70,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:71,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:72,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:73,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{14:[1,74]},e(Ct,[2,13],{43:23,29:49,30:61,32:62,20:75,34:r,36:n,37:i,38:u,39:d,40:f,41:y,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(Ct,[2,14]),e(Qt,[2,16],{12:[1,76]}),e(Ct,[2,36],{12:[1,77]}),e(St,[2,19]),e(St,[2,20]),{25:[1,78]},{27:[1,79]},e(St,[2,23]),{35:80,75:81,76:k,77:A,79:C,80:w},{35:86,75:81,76:k,77:A,79:C,80:w},{35:87,75:81,76:k,77:A,79:C,80:w},{35:88,75:81,76:k,77:A,79:C,80:w},{35:89,75:81,76:k,77:A,79:C,80:w},{35:90,75:81,76:k,77:A,79:C,80:w},{35:91,75:81,76:k,77:A,79:C,80:w},{35:92,75:81,76:k,77:A,79:C,80:w},{35:93,75:81,76:k,77:A,79:C,80:w},{35:94,75:81,76:k,77:A,79:C,80:w},{35:95,75:81,76:k,77:A,79:C,80:w},{35:96,75:81,76:k,77:A,79:C,80:w},{35:97,75:81,76:k,77:A,79:C,80:w},{35:98,75:81,76:k,77:A,79:C,80:w},{35:99,75:81,76:k,77:A,79:C,80:w},{35:100,75:81,76:k,77:A,79:C,80:w},{35:101,75:81,76:k,77:A,79:C,80:w},{35:102,75:81,76:k,77:A,79:C,80:w},{35:103,75:81,76:k,77:A,79:C,80:w},{35:104,75:81,76:k,77:A,79:C,80:w},e(T,[2,59]),{35:105,75:81,76:k,77:A,79:C,80:w},{35:106,75:81,76:k,77:A,79:C,80:w},{35:107,75:81,76:k,77:A,79:C,80:w},{35:108,75:81,76:k,77:A,79:C,80:w},{35:109,75:81,76:k,77:A,79:C,80:w},{35:110,75:81,76:k,77:A,79:C,80:w},{35:111,75:81,76:k,77:A,79:C,80:w},{35:112,75:81,76:k,77:A,79:C,80:w},{35:113,75:81,76:k,77:A,79:C,80:w},{35:114,75:81,76:k,77:A,79:C,80:w},{35:115,75:81,76:k,77:A,79:C,80:w},{20:116,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{12:[1,118],33:[1,117]},{35:119,75:81,76:k,77:A,79:C,80:w},{35:120,75:81,76:k,77:A,79:C,80:w},{35:121,75:81,76:k,77:A,79:C,80:w},{35:122,75:81,76:k,77:A,79:C,80:w},{35:123,75:81,76:k,77:A,79:C,80:w},{35:124,75:81,76:k,77:A,79:C,80:w},{35:125,75:81,76:k,77:A,79:C,80:w},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Ct,[2,15]),e(Qt,[2,17],{21:22,19:130,22:t,23:s,24:o,26:l,28:a}),e(Ct,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:s,24:o,26:l,28:a,34:r,36:n,37:i,38:u,39:d,40:f,41:y,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(St,[2,21]),e(St,[2,22]),e(T,[2,39]),e(le,[2,71],{75:81,35:132,76:k,77:A,79:C,80:w}),e(Mt,[2,73]),{78:[1,133]},e(Mt,[2,75]),e(Mt,[2,76]),e(T,[2,40]),e(T,[2,41]),e(T,[2,42]),e(T,[2,43]),e(T,[2,44]),e(T,[2,45]),e(T,[2,46]),e(T,[2,47]),e(T,[2,48]),e(T,[2,49]),e(T,[2,50]),e(T,[2,51]),e(T,[2,52]),e(T,[2,53]),e(T,[2,54]),e(T,[2,55]),e(T,[2,56]),e(T,[2,57]),e(T,[2,58]),e(T,[2,60]),e(T,[2,61]),e(T,[2,62]),e(T,[2,63]),e(T,[2,64]),e(T,[2,65]),e(T,[2,66]),e(T,[2,67]),e(T,[2,68]),e(T,[2,69]),e(T,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(vt,[2,28]),e(vt,[2,29]),e(vt,[2,30]),e(vt,[2,31]),e(vt,[2,32]),e(vt,[2,33]),e(vt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Qt,[2,18]),e(Ct,[2,38]),e(le,[2,72]),e(Mt,[2,74]),e(T,[2,24]),e(T,[2,35]),e(Ht,[2,25]),e(Ht,[2,26],{12:[1,138]}),e(Ht,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:g(function(x,m){if(m.recoverable)this.trace(x);else{var v=new Error(x);throw v.hash=m,v}},"parseError"),parse:g(function(x){var m=this,v=[0],b=[],R=[null],h=[],Dt=this.table,p="",Et=0,oe=0,we=2,ce=1,Te=h.slice.call(arguments,1),D=Object.create(this.lexer),kt={yy:{}};for(var Gt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Gt)&&(kt.yy[Gt]=this.yy[Gt]);D.setInput(x,kt.yy),kt.yy.lexer=D,kt.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Kt=D.yylloc;h.push(Kt);var Oe=D.options&&D.options.ranges;typeof kt.yy.parseError=="function"?this.parseError=kt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Re(L){v.length=v.length-2*L,R.length=R.length-L,h.length=h.length-L}g(Re,"popStack");function he(){var L;return L=b.pop()||D.lex()||ce,typeof L!="number"&&(L instanceof Array&&(b=L,L=b.pop()),L=m.symbols_[L]||L),L}g(he,"lex");for(var I,At,N,Jt,wt={},Nt,W,ue,Yt;;){if(At=v[v.length-1],this.defaultActions[At]?N=this.defaultActions[At]:((I===null||typeof I>"u")&&(I=he()),N=Dt[At]&&Dt[At][I]),typeof N>"u"||!N.length||!N[0]){var Zt="";Yt=[];for(Nt in Dt[At])this.terminals_[Nt]&&Nt>we&&Yt.push("'"+this.terminals_[Nt]+"'");D.showPosition?Zt="Parse error on line "+(Et+1)+`: `+D.showPosition()+` Expecting `+Yt.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Zt="Parse error on line "+(Et+1)+": Unexpected "+(I==ce?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Zt,{text:D.match,token:this.terminals_[I]||I,line:D.yylineno,loc:Kt,expected:Yt})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+At+", token: "+I);switch(N[0]){case 1:v.push(I),R.push(D.yytext),h.push(D.yylloc),v.push(N[1]),I=null,oe=D.yyleng,p=D.yytext,Et=D.yylineno,Kt=D.yylloc;break;case 2:if(W=this.productions_[N[1]][1],wt.$=R[R.length-W],wt._$={first_line:h[h.length-(W||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(W||1)].first_column,last_column:h[h.length-1].last_column},Oe&&(wt._$.range=[h[h.length-(W||1)].range[0],h[h.length-1].range[1]]),Jt=this.performAction.apply(wt,[p,oe,Et,kt.yy,N[1],R,h].concat(Te)),typeof Jt<"u")return Jt;W&&(v=v.slice(0,-1*W*2),R=R.slice(0,-1*W),h=h.slice(0,-1*W)),v.push(this.productions_[N[1]][0]),R.push(wt.$),h.push(wt._$),ue=Dt[v[v.length-2]][v[v.length-1]],v.push(ue);break;case 3:return!0}}return!0},"parse")},Ce=function(){var _t={EOF:1,parseError:g(function(m,v){if(this.yy.parser)this.yy.parser.parseError(m,v);else throw new Error(m)},"parseError"),setInput:g(function(x,m){return this.yy=m||this.yy||{},this._input=x,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 x=this._input[0];this.yytext+=x,this.yyleng++,this.offset++,this.match+=x,this.matched+=x;var m=x.match(/(?:\r\n?|\n).*/g);return m?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),x},"input"),unput:g(function(x){var m=x.length,v=x.split(/(?:\r\n?|\n)/g);this._input=x+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var b=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),v.length-1&&(this.yylineno-=v.length-1);var R=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:v?(v.length===b.length?this.yylloc.first_column:0)+b[b.length-v.length].length-v[0].length:this.yylloc.first_column-m},this.options.ranges&&(this.yylloc.range=[R[0],R[0]+this.yyleng-m]),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). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:g(function(x){this.unput(this.match.slice(x))},"less"),pastInput:g(function(){var x=this.matched.substr(0,this.matched.length-this.match.length);return(x.length>20?"...":"")+x.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:g(function(){var x=this.match;return x.length<20&&(x+=this._input.substr(0,20-x.length)),(x.substr(0,20)+(x.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:g(function(){var x=this.pastInput(),m=new Array(x.length+1).join("-");return x+this.upcomingInput()+` diff --git a/static/js/md-channel-BZPvYpZL.js b/static/js/md-channel-BZPvYpZL.js deleted file mode 100644 index 44ec611f7..000000000 --- a/static/js/md-channel-BZPvYpZL.js +++ /dev/null @@ -1 +0,0 @@ -import{ao as r,ap as n}from"./md-index-Pj6M4nIk.js";const t=(a,o)=>r.lang.round(n.parse(a)[o]);export{t as c}; diff --git a/static/js/md-channel-CvuT1-A9.js b/static/js/md-channel-CvuT1-A9.js new file mode 100644 index 000000000..0155577f1 --- /dev/null +++ b/static/js/md-channel-CvuT1-A9.js @@ -0,0 +1 @@ +import{ao as r,ap as n}from"./md-index-1F_vrIf8.js";const t=(a,o)=>r.lang.round(n.parse(a)[o]);export{t as c}; diff --git a/static/js/md-chunk-5HRBRIJM-aORRBbXN.js b/static/js/md-chunk-5HRBRIJM-DZZLUrKF.js similarity index 90% rename from static/js/md-chunk-5HRBRIJM-aORRBbXN.js rename to static/js/md-chunk-5HRBRIJM-DZZLUrKF.js index 5bf79a4c3..e7317b7d0 100644 --- a/static/js/md-chunk-5HRBRIJM-aORRBbXN.js +++ b/static/js/md-chunk-5HRBRIJM-DZZLUrKF.js @@ -1 +1 @@ -import{_ as n,d as r,e as d,l as g}from"./md-index-Pj6M4nIk.js";var u=n((e,t)=>{let o;return t==="sandbox"&&(o=r("#i"+e)),(t==="sandbox"?r(o.nodes()[0].contentDocument.body):r("body")).select(`[id="${e}"]`)},"getDiagramElement"),b=n((e,t,o,i)=>{e.attr("class",o);const{width:a,height:s,x:h,y:x}=l(e,t);d(e,s,a,i);const c=w(h,x,a,s,t);e.attr("viewBox",c),g.debug(`viewBox configured: ${c} with padding: ${t}`)},"setupViewPortForSVG"),l=n((e,t)=>{var i;const o=((i=e.node())==null?void 0:i.getBBox())||{width:0,height:0,x:0,y:0};return{width:o.width+t*2,height:o.height+t*2,x:o.x,y:o.y}},"calculateDimensionsWithPadding"),w=n((e,t,o,i,a)=>`${e-a} ${t-a} ${o} ${i}`,"createViewBox");export{u as g,b as s}; +import{_ as n,d as r,e as d,l as g}from"./md-index-1F_vrIf8.js";var u=n((e,t)=>{let o;return t==="sandbox"&&(o=r("#i"+e)),(t==="sandbox"?r(o.nodes()[0].contentDocument.body):r("body")).select(`[id="${e}"]`)},"getDiagramElement"),b=n((e,t,o,i)=>{e.attr("class",o);const{width:a,height:s,x:h,y:x}=l(e,t);d(e,s,a,i);const c=w(h,x,a,s,t);e.attr("viewBox",c),g.debug(`viewBox configured: ${c} with padding: ${t}`)},"setupViewPortForSVG"),l=n((e,t)=>{var i;const o=((i=e.node())==null?void 0:i.getBBox())||{width:0,height:0,x:0,y:0};return{width:o.width+t*2,height:o.height+t*2,x:o.x,y:o.y}},"calculateDimensionsWithPadding"),w=n((e,t,o,i,a)=>`${e-a} ${t-a} ${o} ${i}`,"createViewBox");export{u as g,b as s}; diff --git a/static/js/md-chunk-7U56Z5CX-CX_-p2zN.js b/static/js/md-chunk-7U56Z5CX-5vmlRDfv.js similarity index 99% rename from static/js/md-chunk-7U56Z5CX-CX_-p2zN.js rename to static/js/md-chunk-7U56Z5CX-5vmlRDfv.js index c46e048f0..77f6220d0 100644 --- a/static/js/md-chunk-7U56Z5CX-CX_-p2zN.js +++ b/static/js/md-chunk-7U56Z5CX-5vmlRDfv.js @@ -1,4 +1,4 @@ -import{g as De,s as Ce}from"./md-chunk-5HRBRIJM-aORRBbXN.js";import{_ as r,n as xe,o as Ae,s as Le,g as Re,b as Ie,a as Oe,l as b,c as x,r as Ne,u as we,k as H,v as $e,R as Pe}from"./md-index-Pj6M4nIk.js";var Ot=function(){var t=r(function($,o,u,n){for(u=u||{},n=$.length;n--;u[$[n]]=o);return u},"o"),e=[1,2],c=[1,3],a=[1,4],d=[2,4],s=[1,9],p=[1,11],g=[1,16],l=[1,17],_=[1,18],v=[1,19],A=[1,32],B=[1,20],Y=[1,21],R=[1,22],f=[1,23],L=[1,24],I=[1,26],F=[1,27],V=[1,28],N=[1,29],w=[1,30],rt=[1,31],at=[1,34],nt=[1,35],lt=[1,36],ot=[1,37],J=[1,33],S=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],ct=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],Vt=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],kt={trace:r(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,classDef:38,CLASSDEF_ID:39,CLASSDEF_STYLEOPTS:40,DEFAULT:41,style:42,STYLE_IDS:43,STYLEDEF_STYLEOPTS:44,class:45,CLASSENTITY_IDS:46,STYLECLASS:47,direction_tb:48,direction_bt:49,direction_rl:50,direction_lr:51,eol:52,";":53,EDGE_STATE:54,STYLE_SEPARATOR:55,left_of:56,right_of:57,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"classDef",39:"CLASSDEF_ID",40:"CLASSDEF_STYLEOPTS",41:"DEFAULT",42:"style",43:"STYLE_IDS",44:"STYLEDEF_STYLEOPTS",45:"class",46:"CLASSENTITY_IDS",47:"STYLECLASS",48:"direction_tb",49:"direction_bt",50:"direction_rl",51:"direction_lr",53:";",54:"EDGE_STATE",55:"STYLE_SEPARATOR",56:"left_of",57:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[52,1],[52,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:r(function(o,u,n,y,T,i,q){var h=i.length-1;switch(T){case 3:return y.setRootDoc(i[h]),i[h];case 4:this.$=[];break;case 5:i[h]!="nl"&&(i[h-1].push(i[h]),this.$=i[h-1]);break;case 6:case 7:this.$=i[h];break;case 8:this.$="nl";break;case 12:this.$=i[h];break;case 13:const Q=i[h-1];Q.description=y.trimColon(i[h]),this.$=Q;break;case 14:this.$={stmt:"relation",state1:i[h-2],state2:i[h]};break;case 15:const Dt=y.trimColon(i[h]);this.$={stmt:"relation",state1:i[h-3],state2:i[h-1],description:Dt};break;case 19:this.$={stmt:"state",id:i[h-3],type:"default",description:"",doc:i[h-1]};break;case 20:var M=i[h],W=i[h-2].trim();if(i[h].match(":")){var ht=i[h].split(":");M=ht[0],W=[W,ht[1]]}this.$={stmt:"state",id:M,type:"default",description:W};break;case 21:this.$={stmt:"state",id:i[h-3],type:"default",description:i[h-5],doc:i[h-1]};break;case 22:this.$={stmt:"state",id:i[h],type:"fork"};break;case 23:this.$={stmt:"state",id:i[h],type:"join"};break;case 24:this.$={stmt:"state",id:i[h],type:"choice"};break;case 25:this.$={stmt:"state",id:y.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[h-1].trim(),note:{position:i[h-2].trim(),text:i[h].trim()}};break;case 29:this.$=i[h].trim(),y.setAccTitle(this.$);break;case 30:case 31:this.$=i[h].trim(),y.setAccDescription(this.$);break;case 32:case 33:this.$={stmt:"classDef",id:i[h-1].trim(),classes:i[h].trim()};break;case 34:this.$={stmt:"style",id:i[h-1].trim(),styleClass:i[h].trim()};break;case 35:this.$={stmt:"applyClass",id:i[h-1].trim(),styleClass:i[h].trim()};break;case 36:y.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 37:y.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 38:y.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 39:y.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 42:case 43:this.$={stmt:"state",id:i[h].trim(),type:"default",description:""};break;case 44:this.$={stmt:"state",id:i[h-2].trim(),classes:[i[h].trim()],type:"default",description:""};break;case 45:this.$={stmt:"state",id:i[h-2].trim(),classes:[i[h].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:c,6:a},{1:[3]},{3:5,4:e,5:c,6:a},{3:6,4:e,5:c,6:a},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],d,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:s,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:g,17:l,19:_,22:v,24:A,25:B,26:Y,27:R,28:f,29:L,32:25,33:I,35:F,37:V,38:N,42:w,45:rt,48:at,49:nt,50:lt,51:ot,54:J},t(S,[2,5]),{9:38,10:12,11:13,12:14,13:15,16:g,17:l,19:_,22:v,24:A,25:B,26:Y,27:R,28:f,29:L,32:25,33:I,35:F,37:V,38:N,42:w,45:rt,48:at,49:nt,50:lt,51:ot,54:J},t(S,[2,7]),t(S,[2,8]),t(S,[2,9]),t(S,[2,10]),t(S,[2,11]),t(S,[2,12],{14:[1,39],15:[1,40]}),t(S,[2,16]),{18:[1,41]},t(S,[2,18],{20:[1,42]}),{23:[1,43]},t(S,[2,22]),t(S,[2,23]),t(S,[2,24]),t(S,[2,25]),{30:44,31:[1,45],56:[1,46],57:[1,47]},t(S,[2,28]),{34:[1,48]},{36:[1,49]},t(S,[2,31]),{39:[1,50],41:[1,51]},{43:[1,52]},{46:[1,53]},t(ct,[2,42],{55:[1,54]}),t(ct,[2,43],{55:[1,55]}),t(S,[2,36]),t(S,[2,37]),t(S,[2,38]),t(S,[2,39]),t(S,[2,6]),t(S,[2,13]),{13:56,24:A,54:J},t(S,[2,17]),t(Vt,d,{7:57}),{24:[1,58]},{24:[1,59]},{23:[1,60]},{24:[2,46]},{24:[2,47]},t(S,[2,29]),t(S,[2,30]),{40:[1,61]},{40:[1,62]},{44:[1,63]},{47:[1,64]},{24:[1,65]},{24:[1,66]},t(S,[2,14],{14:[1,67]}),{4:s,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:g,17:l,19:_,21:[1,68],22:v,24:A,25:B,26:Y,27:R,28:f,29:L,32:25,33:I,35:F,37:V,38:N,42:w,45:rt,48:at,49:nt,50:lt,51:ot,54:J},t(S,[2,20],{20:[1,69]}),{31:[1,70]},{24:[1,71]},t(S,[2,32]),t(S,[2,33]),t(S,[2,34]),t(S,[2,35]),t(ct,[2,44]),t(ct,[2,45]),t(S,[2,15]),t(S,[2,19]),t(Vt,d,{7:72}),t(S,[2,26]),t(S,[2,27]),{4:s,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:g,17:l,19:_,21:[1,73],22:v,24:A,25:B,26:Y,27:R,28:f,29:L,32:25,33:I,35:F,37:V,38:N,42:w,45:rt,48:at,49:nt,50:lt,51:ot,54:J},t(S,[2,21])],defaultActions:{5:[2,1],6:[2,2],46:[2,46],47:[2,47]},parseError:r(function(o,u){if(u.recoverable)this.trace(o);else{var n=new Error(o);throw n.hash=u,n}},"parseError"),parse:r(function(o){var u=this,n=[0],y=[],T=[null],i=[],q=this.table,h="",M=0,W=0,ht=2,Q=1,Dt=i.slice.call(arguments,1),E=Object.create(this.lexer),U={yy:{}};for(var Ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ct)&&(U.yy[Ct]=this.yy[Ct]);E.setInput(o,U.yy),U.yy.lexer=E,U.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var xt=E.yylloc;i.push(xt);var me=E.options&&E.options.ranges;typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ke(D){n.length=n.length-2*D,T.length=T.length-D,i.length=i.length-D}r(ke,"popStack");function Mt(){var D;return D=y.pop()||E.lex()||Q,typeof D!="number"&&(D instanceof Array&&(y=D,D=y.pop()),D=u.symbols_[D]||D),D}r(Mt,"lex");for(var m,j,C,At,X={},dt,O,Ut,ft;;){if(j=n[n.length-1],this.defaultActions[j]?C=this.defaultActions[j]:((m===null||typeof m>"u")&&(m=Mt()),C=q[j]&&q[j][m]),typeof C>"u"||!C.length||!C[0]){var Lt="";ft=[];for(dt in q[j])this.terminals_[dt]&&dt>ht&&ft.push("'"+this.terminals_[dt]+"'");E.showPosition?Lt="Parse error on line "+(M+1)+`: +import{g as De,s as Ce}from"./md-chunk-5HRBRIJM-DZZLUrKF.js";import{_ as r,n as xe,o as Ae,s as Le,g as Re,b as Ie,a as Oe,l as b,c as x,r as Ne,u as we,k as H,v as $e,R as Pe}from"./md-index-1F_vrIf8.js";var Ot=function(){var t=r(function($,o,u,n){for(u=u||{},n=$.length;n--;u[$[n]]=o);return u},"o"),e=[1,2],c=[1,3],a=[1,4],d=[2,4],s=[1,9],p=[1,11],g=[1,16],l=[1,17],_=[1,18],v=[1,19],A=[1,32],B=[1,20],Y=[1,21],R=[1,22],f=[1,23],L=[1,24],I=[1,26],F=[1,27],V=[1,28],N=[1,29],w=[1,30],rt=[1,31],at=[1,34],nt=[1,35],lt=[1,36],ot=[1,37],J=[1,33],S=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],ct=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],Vt=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],kt={trace:r(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,classDef:38,CLASSDEF_ID:39,CLASSDEF_STYLEOPTS:40,DEFAULT:41,style:42,STYLE_IDS:43,STYLEDEF_STYLEOPTS:44,class:45,CLASSENTITY_IDS:46,STYLECLASS:47,direction_tb:48,direction_bt:49,direction_rl:50,direction_lr:51,eol:52,";":53,EDGE_STATE:54,STYLE_SEPARATOR:55,left_of:56,right_of:57,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"classDef",39:"CLASSDEF_ID",40:"CLASSDEF_STYLEOPTS",41:"DEFAULT",42:"style",43:"STYLE_IDS",44:"STYLEDEF_STYLEOPTS",45:"class",46:"CLASSENTITY_IDS",47:"STYLECLASS",48:"direction_tb",49:"direction_bt",50:"direction_rl",51:"direction_lr",53:";",54:"EDGE_STATE",55:"STYLE_SEPARATOR",56:"left_of",57:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[52,1],[52,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:r(function(o,u,n,y,T,i,q){var h=i.length-1;switch(T){case 3:return y.setRootDoc(i[h]),i[h];case 4:this.$=[];break;case 5:i[h]!="nl"&&(i[h-1].push(i[h]),this.$=i[h-1]);break;case 6:case 7:this.$=i[h];break;case 8:this.$="nl";break;case 12:this.$=i[h];break;case 13:const Q=i[h-1];Q.description=y.trimColon(i[h]),this.$=Q;break;case 14:this.$={stmt:"relation",state1:i[h-2],state2:i[h]};break;case 15:const Dt=y.trimColon(i[h]);this.$={stmt:"relation",state1:i[h-3],state2:i[h-1],description:Dt};break;case 19:this.$={stmt:"state",id:i[h-3],type:"default",description:"",doc:i[h-1]};break;case 20:var M=i[h],W=i[h-2].trim();if(i[h].match(":")){var ht=i[h].split(":");M=ht[0],W=[W,ht[1]]}this.$={stmt:"state",id:M,type:"default",description:W};break;case 21:this.$={stmt:"state",id:i[h-3],type:"default",description:i[h-5],doc:i[h-1]};break;case 22:this.$={stmt:"state",id:i[h],type:"fork"};break;case 23:this.$={stmt:"state",id:i[h],type:"join"};break;case 24:this.$={stmt:"state",id:i[h],type:"choice"};break;case 25:this.$={stmt:"state",id:y.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[h-1].trim(),note:{position:i[h-2].trim(),text:i[h].trim()}};break;case 29:this.$=i[h].trim(),y.setAccTitle(this.$);break;case 30:case 31:this.$=i[h].trim(),y.setAccDescription(this.$);break;case 32:case 33:this.$={stmt:"classDef",id:i[h-1].trim(),classes:i[h].trim()};break;case 34:this.$={stmt:"style",id:i[h-1].trim(),styleClass:i[h].trim()};break;case 35:this.$={stmt:"applyClass",id:i[h-1].trim(),styleClass:i[h].trim()};break;case 36:y.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 37:y.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 38:y.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 39:y.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 42:case 43:this.$={stmt:"state",id:i[h].trim(),type:"default",description:""};break;case 44:this.$={stmt:"state",id:i[h-2].trim(),classes:[i[h].trim()],type:"default",description:""};break;case 45:this.$={stmt:"state",id:i[h-2].trim(),classes:[i[h].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:c,6:a},{1:[3]},{3:5,4:e,5:c,6:a},{3:6,4:e,5:c,6:a},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],d,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:s,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:g,17:l,19:_,22:v,24:A,25:B,26:Y,27:R,28:f,29:L,32:25,33:I,35:F,37:V,38:N,42:w,45:rt,48:at,49:nt,50:lt,51:ot,54:J},t(S,[2,5]),{9:38,10:12,11:13,12:14,13:15,16:g,17:l,19:_,22:v,24:A,25:B,26:Y,27:R,28:f,29:L,32:25,33:I,35:F,37:V,38:N,42:w,45:rt,48:at,49:nt,50:lt,51:ot,54:J},t(S,[2,7]),t(S,[2,8]),t(S,[2,9]),t(S,[2,10]),t(S,[2,11]),t(S,[2,12],{14:[1,39],15:[1,40]}),t(S,[2,16]),{18:[1,41]},t(S,[2,18],{20:[1,42]}),{23:[1,43]},t(S,[2,22]),t(S,[2,23]),t(S,[2,24]),t(S,[2,25]),{30:44,31:[1,45],56:[1,46],57:[1,47]},t(S,[2,28]),{34:[1,48]},{36:[1,49]},t(S,[2,31]),{39:[1,50],41:[1,51]},{43:[1,52]},{46:[1,53]},t(ct,[2,42],{55:[1,54]}),t(ct,[2,43],{55:[1,55]}),t(S,[2,36]),t(S,[2,37]),t(S,[2,38]),t(S,[2,39]),t(S,[2,6]),t(S,[2,13]),{13:56,24:A,54:J},t(S,[2,17]),t(Vt,d,{7:57}),{24:[1,58]},{24:[1,59]},{23:[1,60]},{24:[2,46]},{24:[2,47]},t(S,[2,29]),t(S,[2,30]),{40:[1,61]},{40:[1,62]},{44:[1,63]},{47:[1,64]},{24:[1,65]},{24:[1,66]},t(S,[2,14],{14:[1,67]}),{4:s,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:g,17:l,19:_,21:[1,68],22:v,24:A,25:B,26:Y,27:R,28:f,29:L,32:25,33:I,35:F,37:V,38:N,42:w,45:rt,48:at,49:nt,50:lt,51:ot,54:J},t(S,[2,20],{20:[1,69]}),{31:[1,70]},{24:[1,71]},t(S,[2,32]),t(S,[2,33]),t(S,[2,34]),t(S,[2,35]),t(ct,[2,44]),t(ct,[2,45]),t(S,[2,15]),t(S,[2,19]),t(Vt,d,{7:72}),t(S,[2,26]),t(S,[2,27]),{4:s,5:p,8:8,9:10,10:12,11:13,12:14,13:15,16:g,17:l,19:_,21:[1,73],22:v,24:A,25:B,26:Y,27:R,28:f,29:L,32:25,33:I,35:F,37:V,38:N,42:w,45:rt,48:at,49:nt,50:lt,51:ot,54:J},t(S,[2,21])],defaultActions:{5:[2,1],6:[2,2],46:[2,46],47:[2,47]},parseError:r(function(o,u){if(u.recoverable)this.trace(o);else{var n=new Error(o);throw n.hash=u,n}},"parseError"),parse:r(function(o){var u=this,n=[0],y=[],T=[null],i=[],q=this.table,h="",M=0,W=0,ht=2,Q=1,Dt=i.slice.call(arguments,1),E=Object.create(this.lexer),U={yy:{}};for(var Ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ct)&&(U.yy[Ct]=this.yy[Ct]);E.setInput(o,U.yy),U.yy.lexer=E,U.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var xt=E.yylloc;i.push(xt);var me=E.options&&E.options.ranges;typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ke(D){n.length=n.length-2*D,T.length=T.length-D,i.length=i.length-D}r(ke,"popStack");function Mt(){var D;return D=y.pop()||E.lex()||Q,typeof D!="number"&&(D instanceof Array&&(y=D,D=y.pop()),D=u.symbols_[D]||D),D}r(Mt,"lex");for(var m,j,C,At,X={},dt,O,Ut,ft;;){if(j=n[n.length-1],this.defaultActions[j]?C=this.defaultActions[j]:((m===null||typeof m>"u")&&(m=Mt()),C=q[j]&&q[j][m]),typeof C>"u"||!C.length||!C[0]){var Lt="";ft=[];for(dt in q[j])this.terminals_[dt]&&dt>ht&&ft.push("'"+this.terminals_[dt]+"'");E.showPosition?Lt="Parse error on line "+(M+1)+`: `+E.showPosition()+` Expecting `+ft.join(", ")+", got '"+(this.terminals_[m]||m)+"'":Lt="Parse error on line "+(M+1)+": Unexpected "+(m==Q?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(Lt,{text:E.match,token:this.terminals_[m]||m,line:E.yylineno,loc:xt,expected:ft})}if(C[0]instanceof Array&&C.length>1)throw new Error("Parse Error: multiple actions possible at state: "+j+", token: "+m);switch(C[0]){case 1:n.push(m),T.push(E.yytext),i.push(E.yylloc),n.push(C[1]),m=null,W=E.yyleng,h=E.yytext,M=E.yylineno,xt=E.yylloc;break;case 2:if(O=this.productions_[C[1]][1],X.$=T[T.length-O],X._$={first_line:i[i.length-(O||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(O||1)].first_column,last_column:i[i.length-1].last_column},me&&(X._$.range=[i[i.length-(O||1)].range[0],i[i.length-1].range[1]]),At=this.performAction.apply(X,[h,W,M,U.yy,C[1],T,i].concat(Dt)),typeof At<"u")return At;O&&(n=n.slice(0,-1*O*2),T=T.slice(0,-1*O),i=i.slice(0,-1*O)),n.push(this.productions_[C[1]][0]),T.push(X.$),i.push(X._$),Ut=q[n[n.length-2]][n[n.length-1]],n.push(Ut);break;case 3:return!0}}return!0},"parse")},be=function(){var $={EOF:1,parseError:r(function(u,n){if(this.yy.parser)this.yy.parser.parseError(u,n);else throw new Error(u)},"parseError"),setInput:r(function(o,u){return this.yy=u||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:r(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var u=o.match(/(?:\r\n?|\n).*/g);return u?(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:r(function(o){var u=o.length,n=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var y=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),n.length-1&&(this.yylineno-=n.length-1);var T=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:n?(n.length===y.length?this.yylloc.first_column:0)+y[y.length-n.length].length-n[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[T[0],T[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},"unput"),more:r(function(){return this._more=!0,this},"more"),reject:r(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). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:r(function(o){this.unput(this.match.slice(o))},"less"),pastInput:r(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:r(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:r(function(){var o=this.pastInput(),u=new Array(o.length+1).join("-");return o+this.upcomingInput()+` diff --git a/static/js/md-chunk-ASOPGD6M-WtHLfW0h.js b/static/js/md-chunk-ASOPGD6M-CJv05LUp.js similarity index 95% rename from static/js/md-chunk-ASOPGD6M-WtHLfW0h.js rename to static/js/md-chunk-ASOPGD6M-CJv05LUp.js index 344c66f33..cb63b9fb4 100644 --- a/static/js/md-chunk-ASOPGD6M-WtHLfW0h.js +++ b/static/js/md-chunk-ASOPGD6M-CJv05LUp.js @@ -1 +1 @@ -import{_ as n,S as c,j as l}from"./md-index-Pj6M4nIk.js";var o=n((a,t)=>{const e=a.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const r in t.attrs)e.attr(r,t.attrs[r]);return t.class&&e.attr("class",t.class),e},"drawRect"),d=n((a,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};o(a,e).lower()},"drawBackgroundRect"),g=n((a,t)=>{const e=t.text.replace(c," "),r=a.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class&&r.attr("class",t.class);const s=r.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.text(e),r},"drawText"),h=n((a,t,e,r)=>{const s=a.append("image");s.attr("x",t),s.attr("y",e);const i=l(r);s.attr("xlink:href",i)},"drawImage"),m=n((a,t,e,r)=>{const s=a.append("use");s.attr("x",t),s.attr("y",e);const i=l(r);s.attr("xlink:href",`#${i}`)},"drawEmbeddedImage"),y=n(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),p=n(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj");export{d as a,p as b,m as c,o as d,h as e,g as f,y as g}; +import{_ as n,S as c,j as l}from"./md-index-1F_vrIf8.js";var o=n((a,t)=>{const e=a.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const r in t.attrs)e.attr(r,t.attrs[r]);return t.class&&e.attr("class",t.class),e},"drawRect"),d=n((a,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};o(a,e).lower()},"drawBackgroundRect"),g=n((a,t)=>{const e=t.text.replace(c," "),r=a.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class&&r.attr("class",t.class);const s=r.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.text(e),r},"drawText"),h=n((a,t,e,r)=>{const s=a.append("image");s.attr("x",t),s.attr("y",e);const i=l(r);s.attr("xlink:href",i)},"drawImage"),m=n((a,t,e,r)=>{const s=a.append("use");s.attr("x",t),s.attr("y",e);const i=l(r);s.attr("xlink:href",`#${i}`)},"drawEmbeddedImage"),y=n(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),p=n(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj");export{d as a,p as b,m as c,o as d,h as e,g as f,y as g}; diff --git a/static/js/md-chunk-KFBOBJHC-Bi4-jCiM.js b/static/js/md-chunk-KFBOBJHC-Cw-7g_Wb.js similarity index 66% rename from static/js/md-chunk-KFBOBJHC-Bi4-jCiM.js rename to static/js/md-chunk-KFBOBJHC-Cw-7g_Wb.js index e69b368f1..2c7939b39 100644 --- a/static/js/md-chunk-KFBOBJHC-Bi4-jCiM.js +++ b/static/js/md-chunk-KFBOBJHC-Cw-7g_Wb.js @@ -1 +1 @@ -import{_ as s}from"./md-index-Pj6M4nIk.js";var t,e=(t=class{constructor(i){this.init=i,this.records=this.init()}reset(){this.records=this.init()}},s(t,"ImperativeState"),t);export{e as I}; +import{_ as s}from"./md-index-1F_vrIf8.js";var t,e=(t=class{constructor(i){this.init=i,this.records=this.init()}reset(){this.records=this.init()}},s(t,"ImperativeState"),t);export{e as I}; diff --git a/static/js/md-chunk-T2TOU4HS-CIbzXCrE.js b/static/js/md-chunk-T2TOU4HS-Bimvx1kA.js similarity index 99% rename from static/js/md-chunk-T2TOU4HS-CIbzXCrE.js rename to static/js/md-chunk-T2TOU4HS-Bimvx1kA.js index 88568455f..d8883cb41 100644 --- a/static/js/md-chunk-T2TOU4HS-CIbzXCrE.js +++ b/static/js/md-chunk-T2TOU4HS-Bimvx1kA.js @@ -1,4 +1,4 @@ -import{g as mt,s as Et}from"./md-chunk-5HRBRIJM-aORRBbXN.js";import{_ as u,n as kt,o as bt,s as yt,g as Tt,a as Ft,b as Dt,l as ze,c as D,q as _t,r as Bt,u as We,z as St,k as I,v as vt,i as Nt,P as z,d as ie}from"./md-index-Pj6M4nIk.js";var Ke=function(){var e=u(function(O,o,h,d){for(h=h||{},d=O.length;d--;h[O[d]]=o);return h},"o"),i=[1,18],a=[1,19],l=[1,20],c=[1,41],r=[1,42],A=[1,26],f=[1,24],T=[1,25],S=[1,32],be=[1,33],ye=[1,34],m=[1,45],Te=[1,35],Fe=[1,36],De=[1,37],_e=[1,38],Be=[1,27],Se=[1,28],ve=[1,29],Ne=[1,30],Le=[1,31],E=[1,44],k=[1,46],b=[1,43],F=[1,47],xe=[1,9],p=[1,8,9],re=[1,58],ue=[1,59],le=[1,60],oe=[1,61],ce=[1,62],Ie=[1,63],Oe=[1,64],he=[1,8,9,41],qe=[1,76],G=[1,8,9,12,13,22,39,41,44,66,67,68,69,70,71,72,77,79],pe=[1,8,9,12,13,17,20,22,39,41,44,48,58,66,67,68,69,70,71,72,77,79,84,99,101,102],de=[13,58,84,99,101,102],W=[13,58,71,72,84,99,101,102],He=[13,58,66,67,68,69,70,84,99,101,102],we=[1,98],j=[1,115],X=[1,107],q=[1,113],H=[1,108],J=[1,109],Z=[1,110],$=[1,111],ee=[1,112],te=[1,114],Je=[22,58,59,80,84,85,86,87,88,89],Ve=[1,8,9,39,41,44],Ae=[1,8,9,22],Ze=[1,143],$e=[1,8,9,59],N=[1,8,9,22,58,59,80,84,85,86,87,88,89],Pe={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,DOT:17,className:18,classLiteralName:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,CLASS:46,ANNOTATION_START:47,ANNOTATION_END:48,MEMBER:49,SEPARATOR:50,relation:51,NOTE_FOR:52,noteText:53,NOTE:54,CLASSDEF:55,classList:56,stylesOpt:57,ALPHA:58,COMMA:59,direction_tb:60,direction_bt:61,direction_rl:62,direction_lr:63,relationType:64,lineType:65,AGGREGATION:66,EXTENSION:67,COMPOSITION:68,DEPENDENCY:69,LOLLIPOP:70,LINE:71,DOTTED_LINE:72,CALLBACK:73,LINK:74,LINK_TARGET:75,CLICK:76,CALLBACK_NAME:77,CALLBACK_ARGS:78,HREF:79,STYLE:80,CSSCLASS:81,style:82,styleComponent:83,NUM:84,COLON:85,UNIT:86,SPACE:87,BRKT:88,PCT:89,commentToken:90,textToken:91,graphCodeTokens:92,textNoTagsToken:93,TAGSTART:94,TAGEND:95,"==":96,"--":97,DEFAULT:98,MINUS:99,keywords:100,UNICODE_TEXT:101,BQUOTE_STR:102,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",17:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"CLASS",47:"ANNOTATION_START",48:"ANNOTATION_END",49:"MEMBER",50:"SEPARATOR",52:"NOTE_FOR",54:"NOTE",55:"CLASSDEF",58:"ALPHA",59:"COMMA",60:"direction_tb",61:"direction_bt",62:"direction_rl",63:"direction_lr",66:"AGGREGATION",67:"EXTENSION",68:"COMPOSITION",69:"DEPENDENCY",70:"LOLLIPOP",71:"LINE",72:"DOTTED_LINE",73:"CALLBACK",74:"LINK",75:"LINK_TARGET",76:"CLICK",77:"CALLBACK_NAME",78:"CALLBACK_ARGS",79:"HREF",80:"STYLE",81:"CSSCLASS",84:"NUM",85:"COLON",86:"UNIT",87:"SPACE",88:"BRKT",89:"PCT",92:"graphCodeTokens",94:"TAGSTART",95:"TAGEND",96:"==",97:"--",98:"DEFAULT",99:"MINUS",100:"keywords",101:"UNICODE_TEXT",102:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,3],[15,2],[18,1],[18,3],[18,1],[18,2],[18,2],[18,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,6],[43,2],[43,3],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[56,1],[56,3],[32,1],[32,1],[32,1],[32,1],[51,3],[51,2],[51,2],[51,1],[64,1],[64,1],[64,1],[64,1],[64,1],[65,1],[65,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[57,1],[57,3],[82,1],[82,2],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[90,1],[90,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[93,1],[93,1],[93,1],[93,1],[16,1],[16,1],[16,1],[16,1],[19,1],[53,1]],performAction:u(function(o,h,d,n,C,t,se){var s=t.length-1;switch(C){case 8:this.$=t[s-1];break;case 9:case 12:case 14:this.$=t[s];break;case 10:case 13:this.$=t[s-2]+"."+t[s];break;case 11:case 15:this.$=t[s-1]+t[s];break;case 16:case 17:this.$=t[s-1]+"~"+t[s]+"~";break;case 18:n.addRelation(t[s]);break;case 19:t[s-1].title=n.cleanupLabel(t[s]),n.addRelation(t[s-1]);break;case 30:this.$=t[s].trim(),n.setAccTitle(this.$);break;case 31:case 32:this.$=t[s].trim(),n.setAccDescription(this.$);break;case 33:n.addClassesToNamespace(t[s-3],t[s-1]);break;case 34:n.addClassesToNamespace(t[s-4],t[s-1]);break;case 35:this.$=t[s],n.addNamespace(t[s]);break;case 36:this.$=[t[s]];break;case 37:this.$=[t[s-1]];break;case 38:t[s].unshift(t[s-2]),this.$=t[s];break;case 40:n.setCssClass(t[s-2],t[s]);break;case 41:n.addMembers(t[s-3],t[s-1]);break;case 42:n.setCssClass(t[s-5],t[s-3]),n.addMembers(t[s-5],t[s-1]);break;case 43:this.$=t[s],n.addClass(t[s]);break;case 44:this.$=t[s-1],n.addClass(t[s-1]),n.setClassLabel(t[s-1],t[s]);break;case 45:n.addAnnotation(t[s],t[s-2]);break;case 46:case 59:this.$=[t[s]];break;case 47:t[s].push(t[s-1]),this.$=t[s];break;case 48:break;case 49:n.addMember(t[s-1],n.cleanupLabel(t[s]));break;case 50:break;case 51:break;case 52:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 53:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 54:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 55:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 56:n.addNote(t[s],t[s-1]);break;case 57:n.addNote(t[s]);break;case 58:this.$=t[s-2],n.defineClass(t[s-1],t[s]);break;case 60:this.$=t[s-2].concat([t[s]]);break;case 61:n.setDirection("TB");break;case 62:n.setDirection("BT");break;case 63:n.setDirection("RL");break;case 64:n.setDirection("LR");break;case 65:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 66:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 67:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 68:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 69:this.$=n.relationType.AGGREGATION;break;case 70:this.$=n.relationType.EXTENSION;break;case 71:this.$=n.relationType.COMPOSITION;break;case 72:this.$=n.relationType.DEPENDENCY;break;case 73:this.$=n.relationType.LOLLIPOP;break;case 74:this.$=n.lineType.LINE;break;case 75:this.$=n.lineType.DOTTED_LINE;break;case 76:case 82:this.$=t[s-2],n.setClickEvent(t[s-1],t[s]);break;case 77:case 83:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 78:this.$=t[s-2],n.setLink(t[s-1],t[s]);break;case 79:this.$=t[s-3],n.setLink(t[s-2],t[s-1],t[s]);break;case 80:this.$=t[s-3],n.setLink(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 81:this.$=t[s-4],n.setLink(t[s-3],t[s-2],t[s]),n.setTooltip(t[s-3],t[s-1]);break;case 84:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1],t[s]);break;case 85:this.$=t[s-4],n.setClickEvent(t[s-3],t[s-2],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 86:this.$=t[s-3],n.setLink(t[s-2],t[s]);break;case 87:this.$=t[s-4],n.setLink(t[s-3],t[s-1],t[s]);break;case 88:this.$=t[s-4],n.setLink(t[s-3],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 89:this.$=t[s-5],n.setLink(t[s-4],t[s-2],t[s]),n.setTooltip(t[s-4],t[s-1]);break;case 90:this.$=t[s-2],n.setCssStyle(t[s-1],t[s]);break;case 91:n.setCssClass(t[s-1],t[s]);break;case 92:this.$=[t[s]];break;case 93:t[s-2].push(t[s]),this.$=t[s-2];break;case 95:this.$=t[s-1]+t[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,18:21,19:40,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:l,38:22,42:c,43:23,46:r,47:A,49:f,50:T,52:S,54:be,55:ye,58:m,60:Te,61:Fe,62:De,63:_e,73:Be,74:Se,76:ve,80:Ne,81:Le,84:E,99:k,101:b,102:F},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(xe,[2,5],{8:[1,48]}),{8:[1,49]},e(p,[2,18],{22:[1,50]}),e(p,[2,20]),e(p,[2,21]),e(p,[2,22]),e(p,[2,23]),e(p,[2,24]),e(p,[2,25]),e(p,[2,26]),e(p,[2,27]),e(p,[2,28]),e(p,[2,29]),{34:[1,51]},{36:[1,52]},e(p,[2,32]),e(p,[2,48],{51:53,64:56,65:57,13:[1,54],22:[1,55],66:re,67:ue,68:le,69:oe,70:ce,71:Ie,72:Oe}),{39:[1,65]},e(he,[2,39],{39:[1,67],44:[1,66]}),e(p,[2,50]),e(p,[2,51]),{16:68,58:m,84:E,99:k,101:b},{16:39,18:69,19:40,58:m,84:E,99:k,101:b,102:F},{16:39,18:70,19:40,58:m,84:E,99:k,101:b,102:F},{16:39,18:71,19:40,58:m,84:E,99:k,101:b,102:F},{58:[1,72]},{13:[1,73]},{16:39,18:74,19:40,58:m,84:E,99:k,101:b,102:F},{13:qe,53:75},{56:77,58:[1,78]},e(p,[2,61]),e(p,[2,62]),e(p,[2,63]),e(p,[2,64]),e(G,[2,12],{16:39,19:40,18:80,17:[1,79],20:[1,81],58:m,84:E,99:k,101:b,102:F}),e(G,[2,14],{20:[1,82]}),{15:83,16:84,58:m,84:E,99:k,101:b},{16:39,18:85,19:40,58:m,84:E,99:k,101:b,102:F},e(pe,[2,118]),e(pe,[2,119]),e(pe,[2,120]),e(pe,[2,121]),e([1,8,9,12,13,20,22,39,41,44,66,67,68,69,70,71,72,77,79],[2,122]),e(xe,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,18:21,38:22,43:23,16:39,19:40,5:86,33:i,35:a,37:l,42:c,46:r,47:A,49:f,50:T,52:S,54:be,55:ye,58:m,60:Te,61:Fe,62:De,63:_e,73:Be,74:Se,76:ve,80:Ne,81:Le,84:E,99:k,101:b,102:F}),{5:87,10:5,16:39,18:21,19:40,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:l,38:22,42:c,43:23,46:r,47:A,49:f,50:T,52:S,54:be,55:ye,58:m,60:Te,61:Fe,62:De,63:_e,73:Be,74:Se,76:ve,80:Ne,81:Le,84:E,99:k,101:b,102:F},e(p,[2,19]),e(p,[2,30]),e(p,[2,31]),{13:[1,89],16:39,18:88,19:40,58:m,84:E,99:k,101:b,102:F},{51:90,64:56,65:57,66:re,67:ue,68:le,69:oe,70:ce,71:Ie,72:Oe},e(p,[2,49]),{65:91,71:Ie,72:Oe},e(de,[2,68],{64:92,66:re,67:ue,68:le,69:oe,70:ce}),e(W,[2,69]),e(W,[2,70]),e(W,[2,71]),e(W,[2,72]),e(W,[2,73]),e(He,[2,74]),e(He,[2,75]),{8:[1,94],24:95,40:93,43:23,46:r},{16:96,58:m,84:E,99:k,101:b},{45:97,49:we},{48:[1,99]},{13:[1,100]},{13:[1,101]},{77:[1,102],79:[1,103]},{22:j,57:104,58:X,80:q,82:105,83:106,84:H,85:J,86:Z,87:$,88:ee,89:te},{58:[1,116]},{13:qe,53:117},e(p,[2,57]),e(p,[2,123]),{22:j,57:118,58:X,59:[1,119],80:q,82:105,83:106,84:H,85:J,86:Z,87:$,88:ee,89:te},e(Je,[2,59]),{16:39,18:120,19:40,58:m,84:E,99:k,101:b,102:F},e(G,[2,15]),e(G,[2,16]),e(G,[2,17]),{39:[2,35]},{15:122,16:84,17:[1,121],39:[2,9],58:m,84:E,99:k,101:b},e(Ve,[2,43],{11:123,12:[1,124]}),e(xe,[2,7]),{9:[1,125]},e(Ae,[2,52]),{16:39,18:126,19:40,58:m,84:E,99:k,101:b,102:F},{13:[1,128],16:39,18:127,19:40,58:m,84:E,99:k,101:b,102:F},e(de,[2,67],{64:129,66:re,67:ue,68:le,69:oe,70:ce}),e(de,[2,66]),{41:[1,130]},{24:95,40:131,43:23,46:r},{8:[1,132],41:[2,36]},e(he,[2,40],{39:[1,133]}),{41:[1,134]},{41:[2,46],45:135,49:we},{16:39,18:136,19:40,58:m,84:E,99:k,101:b,102:F},e(p,[2,76],{13:[1,137]}),e(p,[2,78],{13:[1,139],75:[1,138]}),e(p,[2,82],{13:[1,140],78:[1,141]}),{13:[1,142]},e(p,[2,90],{59:Ze}),e($e,[2,92],{83:144,22:j,58:X,80:q,84:H,85:J,86:Z,87:$,88:ee,89:te}),e(N,[2,94]),e(N,[2,96]),e(N,[2,97]),e(N,[2,98]),e(N,[2,99]),e(N,[2,100]),e(N,[2,101]),e(N,[2,102]),e(N,[2,103]),e(N,[2,104]),e(p,[2,91]),e(p,[2,56]),e(p,[2,58],{59:Ze}),{58:[1,145]},e(G,[2,13]),{15:146,16:84,58:m,84:E,99:k,101:b},{39:[2,11]},e(Ve,[2,44]),{13:[1,147]},{1:[2,4]},e(Ae,[2,54]),e(Ae,[2,53]),{16:39,18:148,19:40,58:m,84:E,99:k,101:b,102:F},e(de,[2,65]),e(p,[2,33]),{41:[1,149]},{24:95,40:150,41:[2,37],43:23,46:r},{45:151,49:we},e(he,[2,41]),{41:[2,47]},e(p,[2,45]),e(p,[2,77]),e(p,[2,79]),e(p,[2,80],{75:[1,152]}),e(p,[2,83]),e(p,[2,84],{13:[1,153]}),e(p,[2,86],{13:[1,155],75:[1,154]}),{22:j,58:X,80:q,82:156,83:106,84:H,85:J,86:Z,87:$,88:ee,89:te},e(N,[2,95]),e(Je,[2,60]),{39:[2,10]},{14:[1,157]},e(Ae,[2,55]),e(p,[2,34]),{41:[2,38]},{41:[1,158]},e(p,[2,81]),e(p,[2,85]),e(p,[2,87]),e(p,[2,88],{75:[1,159]}),e($e,[2,93],{83:144,22:j,58:X,80:q,84:H,85:J,86:Z,87:$,88:ee,89:te}),e(Ve,[2,8]),e(he,[2,42]),e(p,[2,89])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],83:[2,35],122:[2,11],125:[2,4],135:[2,47],146:[2,10],150:[2,38]},parseError:u(function(o,h){if(h.recoverable)this.trace(o);else{var d=new Error(o);throw d.hash=h,d}},"parseError"),parse:u(function(o){var h=this,d=[0],n=[],C=[null],t=[],se=this.table,s="",ge=0,et=0,At=2,tt=1,ft=t.slice.call(arguments,1),y=Object.create(this.lexer),V={yy:{}};for(var Re in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Re)&&(V.yy[Re]=this.yy[Re]);y.setInput(o,V.yy),V.yy.lexer=y,V.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var Me=y.yylloc;t.push(Me);var gt=y.options&&y.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ct(B){d.length=d.length-2*B,C.length=C.length-B,t.length=t.length-B}u(Ct,"popStack");function st(){var B;return B=n.pop()||y.lex()||tt,typeof B!="number"&&(B instanceof Array&&(n=B,B=n.pop()),B=h.symbols_[B]||B),B}u(st,"lex");for(var _,P,v,Ge,U={},Ce,x,it,me;;){if(P=d[d.length-1],this.defaultActions[P]?v=this.defaultActions[P]:((_===null||typeof _>"u")&&(_=st()),v=se[P]&&se[P][_]),typeof v>"u"||!v.length||!v[0]){var Ue="";me=[];for(Ce in se[P])this.terminals_[Ce]&&Ce>At&&me.push("'"+this.terminals_[Ce]+"'");y.showPosition?Ue="Parse error on line "+(ge+1)+`: +import{g as mt,s as Et}from"./md-chunk-5HRBRIJM-DZZLUrKF.js";import{_ as u,n as kt,o as bt,s as yt,g as Tt,a as Ft,b as Dt,l as ze,c as D,q as _t,r as Bt,u as We,z as St,k as I,v as vt,i as Nt,P as z,d as ie}from"./md-index-1F_vrIf8.js";var Ke=function(){var e=u(function(O,o,h,d){for(h=h||{},d=O.length;d--;h[O[d]]=o);return h},"o"),i=[1,18],a=[1,19],l=[1,20],c=[1,41],r=[1,42],A=[1,26],f=[1,24],T=[1,25],S=[1,32],be=[1,33],ye=[1,34],m=[1,45],Te=[1,35],Fe=[1,36],De=[1,37],_e=[1,38],Be=[1,27],Se=[1,28],ve=[1,29],Ne=[1,30],Le=[1,31],E=[1,44],k=[1,46],b=[1,43],F=[1,47],xe=[1,9],p=[1,8,9],re=[1,58],ue=[1,59],le=[1,60],oe=[1,61],ce=[1,62],Ie=[1,63],Oe=[1,64],he=[1,8,9,41],qe=[1,76],G=[1,8,9,12,13,22,39,41,44,66,67,68,69,70,71,72,77,79],pe=[1,8,9,12,13,17,20,22,39,41,44,48,58,66,67,68,69,70,71,72,77,79,84,99,101,102],de=[13,58,84,99,101,102],W=[13,58,71,72,84,99,101,102],He=[13,58,66,67,68,69,70,84,99,101,102],we=[1,98],j=[1,115],X=[1,107],q=[1,113],H=[1,108],J=[1,109],Z=[1,110],$=[1,111],ee=[1,112],te=[1,114],Je=[22,58,59,80,84,85,86,87,88,89],Ve=[1,8,9,39,41,44],Ae=[1,8,9,22],Ze=[1,143],$e=[1,8,9,59],N=[1,8,9,22,58,59,80,84,85,86,87,88,89],Pe={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,DOT:17,className:18,classLiteralName:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,CLASS:46,ANNOTATION_START:47,ANNOTATION_END:48,MEMBER:49,SEPARATOR:50,relation:51,NOTE_FOR:52,noteText:53,NOTE:54,CLASSDEF:55,classList:56,stylesOpt:57,ALPHA:58,COMMA:59,direction_tb:60,direction_bt:61,direction_rl:62,direction_lr:63,relationType:64,lineType:65,AGGREGATION:66,EXTENSION:67,COMPOSITION:68,DEPENDENCY:69,LOLLIPOP:70,LINE:71,DOTTED_LINE:72,CALLBACK:73,LINK:74,LINK_TARGET:75,CLICK:76,CALLBACK_NAME:77,CALLBACK_ARGS:78,HREF:79,STYLE:80,CSSCLASS:81,style:82,styleComponent:83,NUM:84,COLON:85,UNIT:86,SPACE:87,BRKT:88,PCT:89,commentToken:90,textToken:91,graphCodeTokens:92,textNoTagsToken:93,TAGSTART:94,TAGEND:95,"==":96,"--":97,DEFAULT:98,MINUS:99,keywords:100,UNICODE_TEXT:101,BQUOTE_STR:102,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",17:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"CLASS",47:"ANNOTATION_START",48:"ANNOTATION_END",49:"MEMBER",50:"SEPARATOR",52:"NOTE_FOR",54:"NOTE",55:"CLASSDEF",58:"ALPHA",59:"COMMA",60:"direction_tb",61:"direction_bt",62:"direction_rl",63:"direction_lr",66:"AGGREGATION",67:"EXTENSION",68:"COMPOSITION",69:"DEPENDENCY",70:"LOLLIPOP",71:"LINE",72:"DOTTED_LINE",73:"CALLBACK",74:"LINK",75:"LINK_TARGET",76:"CLICK",77:"CALLBACK_NAME",78:"CALLBACK_ARGS",79:"HREF",80:"STYLE",81:"CSSCLASS",84:"NUM",85:"COLON",86:"UNIT",87:"SPACE",88:"BRKT",89:"PCT",92:"graphCodeTokens",94:"TAGSTART",95:"TAGEND",96:"==",97:"--",98:"DEFAULT",99:"MINUS",100:"keywords",101:"UNICODE_TEXT",102:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,3],[15,2],[18,1],[18,3],[18,1],[18,2],[18,2],[18,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,6],[43,2],[43,3],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[56,1],[56,3],[32,1],[32,1],[32,1],[32,1],[51,3],[51,2],[51,2],[51,1],[64,1],[64,1],[64,1],[64,1],[64,1],[65,1],[65,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[57,1],[57,3],[82,1],[82,2],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[90,1],[90,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[93,1],[93,1],[93,1],[93,1],[16,1],[16,1],[16,1],[16,1],[19,1],[53,1]],performAction:u(function(o,h,d,n,C,t,se){var s=t.length-1;switch(C){case 8:this.$=t[s-1];break;case 9:case 12:case 14:this.$=t[s];break;case 10:case 13:this.$=t[s-2]+"."+t[s];break;case 11:case 15:this.$=t[s-1]+t[s];break;case 16:case 17:this.$=t[s-1]+"~"+t[s]+"~";break;case 18:n.addRelation(t[s]);break;case 19:t[s-1].title=n.cleanupLabel(t[s]),n.addRelation(t[s-1]);break;case 30:this.$=t[s].trim(),n.setAccTitle(this.$);break;case 31:case 32:this.$=t[s].trim(),n.setAccDescription(this.$);break;case 33:n.addClassesToNamespace(t[s-3],t[s-1]);break;case 34:n.addClassesToNamespace(t[s-4],t[s-1]);break;case 35:this.$=t[s],n.addNamespace(t[s]);break;case 36:this.$=[t[s]];break;case 37:this.$=[t[s-1]];break;case 38:t[s].unshift(t[s-2]),this.$=t[s];break;case 40:n.setCssClass(t[s-2],t[s]);break;case 41:n.addMembers(t[s-3],t[s-1]);break;case 42:n.setCssClass(t[s-5],t[s-3]),n.addMembers(t[s-5],t[s-1]);break;case 43:this.$=t[s],n.addClass(t[s]);break;case 44:this.$=t[s-1],n.addClass(t[s-1]),n.setClassLabel(t[s-1],t[s]);break;case 45:n.addAnnotation(t[s],t[s-2]);break;case 46:case 59:this.$=[t[s]];break;case 47:t[s].push(t[s-1]),this.$=t[s];break;case 48:break;case 49:n.addMember(t[s-1],n.cleanupLabel(t[s]));break;case 50:break;case 51:break;case 52:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 53:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 54:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 55:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 56:n.addNote(t[s],t[s-1]);break;case 57:n.addNote(t[s]);break;case 58:this.$=t[s-2],n.defineClass(t[s-1],t[s]);break;case 60:this.$=t[s-2].concat([t[s]]);break;case 61:n.setDirection("TB");break;case 62:n.setDirection("BT");break;case 63:n.setDirection("RL");break;case 64:n.setDirection("LR");break;case 65:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 66:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 67:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 68:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 69:this.$=n.relationType.AGGREGATION;break;case 70:this.$=n.relationType.EXTENSION;break;case 71:this.$=n.relationType.COMPOSITION;break;case 72:this.$=n.relationType.DEPENDENCY;break;case 73:this.$=n.relationType.LOLLIPOP;break;case 74:this.$=n.lineType.LINE;break;case 75:this.$=n.lineType.DOTTED_LINE;break;case 76:case 82:this.$=t[s-2],n.setClickEvent(t[s-1],t[s]);break;case 77:case 83:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 78:this.$=t[s-2],n.setLink(t[s-1],t[s]);break;case 79:this.$=t[s-3],n.setLink(t[s-2],t[s-1],t[s]);break;case 80:this.$=t[s-3],n.setLink(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 81:this.$=t[s-4],n.setLink(t[s-3],t[s-2],t[s]),n.setTooltip(t[s-3],t[s-1]);break;case 84:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1],t[s]);break;case 85:this.$=t[s-4],n.setClickEvent(t[s-3],t[s-2],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 86:this.$=t[s-3],n.setLink(t[s-2],t[s]);break;case 87:this.$=t[s-4],n.setLink(t[s-3],t[s-1],t[s]);break;case 88:this.$=t[s-4],n.setLink(t[s-3],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 89:this.$=t[s-5],n.setLink(t[s-4],t[s-2],t[s]),n.setTooltip(t[s-4],t[s-1]);break;case 90:this.$=t[s-2],n.setCssStyle(t[s-1],t[s]);break;case 91:n.setCssClass(t[s-1],t[s]);break;case 92:this.$=[t[s]];break;case 93:t[s-2].push(t[s]),this.$=t[s-2];break;case 95:this.$=t[s-1]+t[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,18:21,19:40,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:l,38:22,42:c,43:23,46:r,47:A,49:f,50:T,52:S,54:be,55:ye,58:m,60:Te,61:Fe,62:De,63:_e,73:Be,74:Se,76:ve,80:Ne,81:Le,84:E,99:k,101:b,102:F},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(xe,[2,5],{8:[1,48]}),{8:[1,49]},e(p,[2,18],{22:[1,50]}),e(p,[2,20]),e(p,[2,21]),e(p,[2,22]),e(p,[2,23]),e(p,[2,24]),e(p,[2,25]),e(p,[2,26]),e(p,[2,27]),e(p,[2,28]),e(p,[2,29]),{34:[1,51]},{36:[1,52]},e(p,[2,32]),e(p,[2,48],{51:53,64:56,65:57,13:[1,54],22:[1,55],66:re,67:ue,68:le,69:oe,70:ce,71:Ie,72:Oe}),{39:[1,65]},e(he,[2,39],{39:[1,67],44:[1,66]}),e(p,[2,50]),e(p,[2,51]),{16:68,58:m,84:E,99:k,101:b},{16:39,18:69,19:40,58:m,84:E,99:k,101:b,102:F},{16:39,18:70,19:40,58:m,84:E,99:k,101:b,102:F},{16:39,18:71,19:40,58:m,84:E,99:k,101:b,102:F},{58:[1,72]},{13:[1,73]},{16:39,18:74,19:40,58:m,84:E,99:k,101:b,102:F},{13:qe,53:75},{56:77,58:[1,78]},e(p,[2,61]),e(p,[2,62]),e(p,[2,63]),e(p,[2,64]),e(G,[2,12],{16:39,19:40,18:80,17:[1,79],20:[1,81],58:m,84:E,99:k,101:b,102:F}),e(G,[2,14],{20:[1,82]}),{15:83,16:84,58:m,84:E,99:k,101:b},{16:39,18:85,19:40,58:m,84:E,99:k,101:b,102:F},e(pe,[2,118]),e(pe,[2,119]),e(pe,[2,120]),e(pe,[2,121]),e([1,8,9,12,13,20,22,39,41,44,66,67,68,69,70,71,72,77,79],[2,122]),e(xe,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,18:21,38:22,43:23,16:39,19:40,5:86,33:i,35:a,37:l,42:c,46:r,47:A,49:f,50:T,52:S,54:be,55:ye,58:m,60:Te,61:Fe,62:De,63:_e,73:Be,74:Se,76:ve,80:Ne,81:Le,84:E,99:k,101:b,102:F}),{5:87,10:5,16:39,18:21,19:40,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:l,38:22,42:c,43:23,46:r,47:A,49:f,50:T,52:S,54:be,55:ye,58:m,60:Te,61:Fe,62:De,63:_e,73:Be,74:Se,76:ve,80:Ne,81:Le,84:E,99:k,101:b,102:F},e(p,[2,19]),e(p,[2,30]),e(p,[2,31]),{13:[1,89],16:39,18:88,19:40,58:m,84:E,99:k,101:b,102:F},{51:90,64:56,65:57,66:re,67:ue,68:le,69:oe,70:ce,71:Ie,72:Oe},e(p,[2,49]),{65:91,71:Ie,72:Oe},e(de,[2,68],{64:92,66:re,67:ue,68:le,69:oe,70:ce}),e(W,[2,69]),e(W,[2,70]),e(W,[2,71]),e(W,[2,72]),e(W,[2,73]),e(He,[2,74]),e(He,[2,75]),{8:[1,94],24:95,40:93,43:23,46:r},{16:96,58:m,84:E,99:k,101:b},{45:97,49:we},{48:[1,99]},{13:[1,100]},{13:[1,101]},{77:[1,102],79:[1,103]},{22:j,57:104,58:X,80:q,82:105,83:106,84:H,85:J,86:Z,87:$,88:ee,89:te},{58:[1,116]},{13:qe,53:117},e(p,[2,57]),e(p,[2,123]),{22:j,57:118,58:X,59:[1,119],80:q,82:105,83:106,84:H,85:J,86:Z,87:$,88:ee,89:te},e(Je,[2,59]),{16:39,18:120,19:40,58:m,84:E,99:k,101:b,102:F},e(G,[2,15]),e(G,[2,16]),e(G,[2,17]),{39:[2,35]},{15:122,16:84,17:[1,121],39:[2,9],58:m,84:E,99:k,101:b},e(Ve,[2,43],{11:123,12:[1,124]}),e(xe,[2,7]),{9:[1,125]},e(Ae,[2,52]),{16:39,18:126,19:40,58:m,84:E,99:k,101:b,102:F},{13:[1,128],16:39,18:127,19:40,58:m,84:E,99:k,101:b,102:F},e(de,[2,67],{64:129,66:re,67:ue,68:le,69:oe,70:ce}),e(de,[2,66]),{41:[1,130]},{24:95,40:131,43:23,46:r},{8:[1,132],41:[2,36]},e(he,[2,40],{39:[1,133]}),{41:[1,134]},{41:[2,46],45:135,49:we},{16:39,18:136,19:40,58:m,84:E,99:k,101:b,102:F},e(p,[2,76],{13:[1,137]}),e(p,[2,78],{13:[1,139],75:[1,138]}),e(p,[2,82],{13:[1,140],78:[1,141]}),{13:[1,142]},e(p,[2,90],{59:Ze}),e($e,[2,92],{83:144,22:j,58:X,80:q,84:H,85:J,86:Z,87:$,88:ee,89:te}),e(N,[2,94]),e(N,[2,96]),e(N,[2,97]),e(N,[2,98]),e(N,[2,99]),e(N,[2,100]),e(N,[2,101]),e(N,[2,102]),e(N,[2,103]),e(N,[2,104]),e(p,[2,91]),e(p,[2,56]),e(p,[2,58],{59:Ze}),{58:[1,145]},e(G,[2,13]),{15:146,16:84,58:m,84:E,99:k,101:b},{39:[2,11]},e(Ve,[2,44]),{13:[1,147]},{1:[2,4]},e(Ae,[2,54]),e(Ae,[2,53]),{16:39,18:148,19:40,58:m,84:E,99:k,101:b,102:F},e(de,[2,65]),e(p,[2,33]),{41:[1,149]},{24:95,40:150,41:[2,37],43:23,46:r},{45:151,49:we},e(he,[2,41]),{41:[2,47]},e(p,[2,45]),e(p,[2,77]),e(p,[2,79]),e(p,[2,80],{75:[1,152]}),e(p,[2,83]),e(p,[2,84],{13:[1,153]}),e(p,[2,86],{13:[1,155],75:[1,154]}),{22:j,58:X,80:q,82:156,83:106,84:H,85:J,86:Z,87:$,88:ee,89:te},e(N,[2,95]),e(Je,[2,60]),{39:[2,10]},{14:[1,157]},e(Ae,[2,55]),e(p,[2,34]),{41:[2,38]},{41:[1,158]},e(p,[2,81]),e(p,[2,85]),e(p,[2,87]),e(p,[2,88],{75:[1,159]}),e($e,[2,93],{83:144,22:j,58:X,80:q,84:H,85:J,86:Z,87:$,88:ee,89:te}),e(Ve,[2,8]),e(he,[2,42]),e(p,[2,89])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],83:[2,35],122:[2,11],125:[2,4],135:[2,47],146:[2,10],150:[2,38]},parseError:u(function(o,h){if(h.recoverable)this.trace(o);else{var d=new Error(o);throw d.hash=h,d}},"parseError"),parse:u(function(o){var h=this,d=[0],n=[],C=[null],t=[],se=this.table,s="",ge=0,et=0,At=2,tt=1,ft=t.slice.call(arguments,1),y=Object.create(this.lexer),V={yy:{}};for(var Re in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Re)&&(V.yy[Re]=this.yy[Re]);y.setInput(o,V.yy),V.yy.lexer=y,V.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var Me=y.yylloc;t.push(Me);var gt=y.options&&y.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ct(B){d.length=d.length-2*B,C.length=C.length-B,t.length=t.length-B}u(Ct,"popStack");function st(){var B;return B=n.pop()||y.lex()||tt,typeof B!="number"&&(B instanceof Array&&(n=B,B=n.pop()),B=h.symbols_[B]||B),B}u(st,"lex");for(var _,P,v,Ge,U={},Ce,x,it,me;;){if(P=d[d.length-1],this.defaultActions[P]?v=this.defaultActions[P]:((_===null||typeof _>"u")&&(_=st()),v=se[P]&&se[P][_]),typeof v>"u"||!v.length||!v[0]){var Ue="";me=[];for(Ce in se[P])this.terminals_[Ce]&&Ce>At&&me.push("'"+this.terminals_[Ce]+"'");y.showPosition?Ue="Parse error on line "+(ge+1)+`: `+y.showPosition()+` Expecting `+me.join(", ")+", got '"+(this.terminals_[_]||_)+"'":Ue="Parse error on line "+(ge+1)+": Unexpected "+(_==tt?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(Ue,{text:y.match,token:this.terminals_[_]||_,line:y.yylineno,loc:Me,expected:me})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+_);switch(v[0]){case 1:d.push(_),C.push(y.yytext),t.push(y.yylloc),d.push(v[1]),_=null,et=y.yyleng,s=y.yytext,ge=y.yylineno,Me=y.yylloc;break;case 2:if(x=this.productions_[v[1]][1],U.$=C[C.length-x],U._$={first_line:t[t.length-(x||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(x||1)].first_column,last_column:t[t.length-1].last_column},gt&&(U._$.range=[t[t.length-(x||1)].range[0],t[t.length-1].range[1]]),Ge=this.performAction.apply(U,[s,et,ge,V.yy,v[1],C,t].concat(ft)),typeof Ge<"u")return Ge;x&&(d=d.slice(0,-1*x*2),C=C.slice(0,-1*x),t=t.slice(0,-1*x)),d.push(this.productions_[v[1]][0]),C.push(U.$),t.push(U._$),it=se[d[d.length-2]][d[d.length-1]],d.push(it);break;case 3:return!0}}return!0},"parse")},dt=function(){var O={EOF:1,parseError:u(function(h,d){if(this.yy.parser)this.yy.parser.parseError(h,d);else throw new Error(h)},"parseError"),setInput:u(function(o,h){return this.yy=h||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:u(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var h=o.match(/(?:\r\n?|\n).*/g);return h?(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:u(function(o){var h=o.length,d=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var n=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),d.length-1&&(this.yylineno-=d.length-1);var C=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:d?(d.length===n.length?this.yylloc.first_column:0)+n[n.length-d.length].length-d[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:u(function(){return this._more=!0,this},"more"),reject:u(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). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:u(function(o){this.unput(this.match.slice(o))},"less"),pastInput:u(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:u(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:u(function(){var o=this.pastInput(),h=new Array(o.length+1).join("-");return o+this.upcomingInput()+` diff --git a/static/js/md-chunk-TMUBEWPD-CnSBa8lL.js b/static/js/md-chunk-TMUBEWPD-BMgjwLeC.js similarity index 78% rename from static/js/md-chunk-TMUBEWPD-CnSBa8lL.js rename to static/js/md-chunk-TMUBEWPD-BMgjwLeC.js index 982a72135..36c9f73bb 100644 --- a/static/js/md-chunk-TMUBEWPD-CnSBa8lL.js +++ b/static/js/md-chunk-TMUBEWPD-BMgjwLeC.js @@ -1 +1 @@ -import{_ as l}from"./md-index-Pj6M4nIk.js";function m(e,c){var i,t,o;e.accDescr&&((i=c.setAccDescription)==null||i.call(c,e.accDescr)),e.accTitle&&((t=c.setAccTitle)==null||t.call(c,e.accTitle)),e.title&&((o=c.setDiagramTitle)==null||o.call(c,e.title))}l(m,"populateCommonDb");export{m as p}; +import{_ as l}from"./md-index-1F_vrIf8.js";function m(e,c){var i,t,o;e.accDescr&&((i=c.setAccDescription)==null||i.call(c,e.accDescr)),e.accTitle&&((t=c.setAccTitle)==null||t.call(c,e.accTitle)),e.title&&((o=c.setDiagramTitle)==null||o.call(c,e.title))}l(m,"populateCommonDb");export{m as p}; diff --git a/static/js/md-classDiagram-LNE6IOMH-C4umT8cQ.js b/static/js/md-classDiagram-LNE6IOMH-C4umT8cQ.js new file mode 100644 index 000000000..9e4d9c1d6 --- /dev/null +++ b/static/js/md-classDiagram-LNE6IOMH-C4umT8cQ.js @@ -0,0 +1 @@ +import{s,c as e,a as r,b as l}from"./md-chunk-T2TOU4HS-Bimvx1kA.js";import{_ as t}from"./md-index-1F_vrIf8.js";import"./md-chunk-5HRBRIJM-DZZLUrKF.js";var _={parser:l,db:r,renderer:e,styles:s,init:t(a=>{a.class||(a.class={}),a.class.arrowMarkerAbsolute=a.arrowMarkerAbsolute,r.clear()},"init")};export{_ as diagram}; diff --git a/static/js/md-classDiagram-LNE6IOMH-Df_V4S_x.js b/static/js/md-classDiagram-LNE6IOMH-Df_V4S_x.js deleted file mode 100644 index 97c0d8951..000000000 --- a/static/js/md-classDiagram-LNE6IOMH-Df_V4S_x.js +++ /dev/null @@ -1 +0,0 @@ -import{s,c as e,a as r,b as l}from"./md-chunk-T2TOU4HS-CIbzXCrE.js";import{_ as t}from"./md-index-Pj6M4nIk.js";import"./md-chunk-5HRBRIJM-aORRBbXN.js";var _={parser:l,db:r,renderer:e,styles:s,init:t(a=>{a.class||(a.class={}),a.class.arrowMarkerAbsolute=a.arrowMarkerAbsolute,r.clear()},"init")};export{_ as diagram}; diff --git a/static/js/md-classDiagram-v2-MQ7JQ4JX-C4umT8cQ.js b/static/js/md-classDiagram-v2-MQ7JQ4JX-C4umT8cQ.js new file mode 100644 index 000000000..9e4d9c1d6 --- /dev/null +++ b/static/js/md-classDiagram-v2-MQ7JQ4JX-C4umT8cQ.js @@ -0,0 +1 @@ +import{s,c as e,a as r,b as l}from"./md-chunk-T2TOU4HS-Bimvx1kA.js";import{_ as t}from"./md-index-1F_vrIf8.js";import"./md-chunk-5HRBRIJM-DZZLUrKF.js";var _={parser:l,db:r,renderer:e,styles:s,init:t(a=>{a.class||(a.class={}),a.class.arrowMarkerAbsolute=a.arrowMarkerAbsolute,r.clear()},"init")};export{_ as diagram}; diff --git a/static/js/md-classDiagram-v2-MQ7JQ4JX-Df_V4S_x.js b/static/js/md-classDiagram-v2-MQ7JQ4JX-Df_V4S_x.js deleted file mode 100644 index 97c0d8951..000000000 --- a/static/js/md-classDiagram-v2-MQ7JQ4JX-Df_V4S_x.js +++ /dev/null @@ -1 +0,0 @@ -import{s,c as e,a as r,b as l}from"./md-chunk-T2TOU4HS-CIbzXCrE.js";import{_ as t}from"./md-index-Pj6M4nIk.js";import"./md-chunk-5HRBRIJM-aORRBbXN.js";var _={parser:l,db:r,renderer:e,styles:s,init:t(a=>{a.class||(a.class={}),a.class.arrowMarkerAbsolute=a.arrowMarkerAbsolute,r.clear()},"init")};export{_ as diagram}; diff --git a/static/js/md-clone-Cc6Gk5Be.js b/static/js/md-clone-Cc6Gk5Be.js new file mode 100644 index 000000000..4619f8d78 --- /dev/null +++ b/static/js/md-clone-Cc6Gk5Be.js @@ -0,0 +1 @@ +import{b as r}from"./md-_baseUniq-CaouebKG.js";var e=4;function a(o){return r(o,e)}export{a as c}; diff --git a/static/js/md-clone-CnShQSdt.js b/static/js/md-clone-CnShQSdt.js deleted file mode 100644 index 471434e48..000000000 --- a/static/js/md-clone-CnShQSdt.js +++ /dev/null @@ -1 +0,0 @@ -import{b as r}from"./md-_baseUniq-B_2Z1DXv.js";var e=4;function a(o){return r(o,e)}export{a as c}; diff --git a/static/js/md-cytoscape.esm-Do9JCuQa.js b/static/js/md-cytoscape.esm-CrenbRtv.js similarity index 99% rename from static/js/md-cytoscape.esm-Do9JCuQa.js rename to static/js/md-cytoscape.esm-CrenbRtv.js index dab1e3a93..2282fcfe2 100644 --- a/static/js/md-cytoscape.esm-Do9JCuQa.js +++ b/static/js/md-cytoscape.esm-CrenbRtv.js @@ -1,4 +1,4 @@ -import{aq as os}from"./md-index-Pj6M4nIk.js";function fo(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,a=Array(e);t=r.length?{done:!0}:{done:!1,value:r[a++]}},e:function(l){throw l},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +import{aq as os}from"./md-index-1F_vrIf8.js";function fo(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,a=Array(e);t=r.length?{done:!0}:{done:!1,value:r[a++]}},e:function(l){throw l},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,o=!0,s=!1;return{s:function(){t=t.call(r)},n:function(){var l=t.next();return o=l.done,l},e:function(l){s=!0,i=l},f:function(){try{o||t.return==null||t.return()}finally{if(s)throw i}}}}function Ml(r,e,t){return(e=Il(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Ff(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function qf(r,e){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var a,n,i,o,s=[],l=!0,u=!1;try{if(i=(t=t.call(r)).next,e===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(a=i.call(t)).done)&&(s.push(a.value),s.length!==e);l=!0);}catch(v){u=!0,n=v}finally{try{if(!l&&t.return!=null&&(o=t.return(),Object(o)!==o))return}finally{if(u)throw n}}return s}}function Vf(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _f(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function je(r,e){return Of(r)||qf(r,e)||Ro(r,e)||Vf()}function Ll(r){return Nf(r)||Ff(r)||Ro(r)||_f()}function Gf(r,e){if(typeof r!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var a=t.call(r,e);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}function Il(r){var e=Gf(r,"string");return typeof e=="symbol"?e:e+""}function Ue(r){"@babel/helpers - typeof";return Ue=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ue(r)}function Ro(r,e){if(r){if(typeof r=="string")return fo(r,e);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?fo(r,e):void 0}}var Ke=typeof window>"u"?null:window,ss=Ke?Ke.navigator:null;Ke&&Ke.document;var Hf=Ue(""),Ol=Ue({}),Kf=Ue(function(){}),$f=typeof HTMLElement>"u"?"undefined":Ue(HTMLElement),Ea=function(e){return e&&e.instanceString&&_e(e.instanceString)?e.instanceString():null},fe=function(e){return e!=null&&Ue(e)==Hf},_e=function(e){return e!=null&&Ue(e)===Kf},Le=function(e){return!br(e)&&(Array.isArray?Array.isArray(e):e!=null&&e instanceof Array)},ke=function(e){return e!=null&&Ue(e)===Ol&&!Le(e)&&e.constructor===Object},Uf=function(e){return e!=null&&Ue(e)===Ol},ae=function(e){return e!=null&&Ue(e)===Ue(1)&&!isNaN(e)},Wf=function(e){return ae(e)&&Math.floor(e)===e},sn=function(e){if($f!=="undefined")return e!=null&&e instanceof HTMLElement},br=function(e){return Ca(e)||Nl(e)},Ca=function(e){return Ea(e)==="collection"&&e._private.single},Nl=function(e){return Ea(e)==="collection"&&!e._private.single},Mo=function(e){return Ea(e)==="core"},zl=function(e){return Ea(e)==="stylesheet"},Yf=function(e){return Ea(e)==="event"},rt=function(e){return e==null?!0:!!(e===""||e.match(/^\s+$/))},Xf=function(e){return typeof HTMLElement>"u"?!1:e instanceof HTMLElement},Zf=function(e){return ke(e)&&ae(e.x1)&&ae(e.x2)&&ae(e.y1)&&ae(e.y2)},Qf=function(e){return Uf(e)&&_e(e.then)},Jf=function(){return ss&&ss.userAgent.match(/msie|trident|edge/i)},ca=function(e,t){t||(t=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var i=[],o=0;ot?1:0},ic=function(e,t){return-1*ql(e,t)},ge=Object.assign!=null?Object.assign.bind(Object):function(r){for(var e=arguments,t=1;t1&&(g-=1),g<1/6?h+(y-h)*6*g:g<1/2?y:g<2/3?h+(y-h)*(2/3-g)*6:h}var f=new RegExp("^"+rc+"$").exec(e);if(f){if(a=parseInt(f[1]),a<0?a=(360- -1*a%360)%360:a>360&&(a=a%360),a/=360,n=parseFloat(f[2]),n<0||n>100||(n=n/100,i=parseFloat(f[3]),i<0||i>100)||(i=i/100,o=f[4],o!==void 0&&(o=parseFloat(o),o<0||o>1)))return;if(n===0)s=l=u=Math.round(i*255);else{var c=i<.5?i*(1+n):i+n-i*n,d=2*i-c;s=Math.round(255*v(d,c,a+1/3)),l=Math.round(255*v(d,c,a)),u=Math.round(255*v(d,c,a-1/3))}t=[s,l,u,o]}return t},uc=function(e){var t,a=new RegExp("^"+jf+"$").exec(e);if(a){t=[];for(var n=[],i=1;i<=3;i++){var o=a[i];if(o[o.length-1]==="%"&&(n[i]=!0),o=parseFloat(o),n[i]&&(o=o/100*255),o<0||o>255)return;t.push(Math.floor(o))}var s=n[1]||n[2]||n[3],l=n[1]&&n[2]&&n[3];if(s&&!l)return;var u=a[4];if(u!==void 0){if(u=parseFloat(u),u<0||u>1)return;t.push(u)}}return t},lc=function(e){return vc[e.toLowerCase()]},Vl=function(e){return(Le(e)?e:null)||lc(e)||oc(e)||uc(e)||sc(e)},vc={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},_l=function(e){for(var t=e.map,a=e.keys,n=a.length,i=0;i=l||R<0||m&&L>=c}function S(){var P=e();if(x(P))return k(P);h=setTimeout(S,C(P))}function k(P){return h=void 0,b&&v?w(P):(v=f=void 0,d)}function A(){h!==void 0&&clearTimeout(h),g=0,v=y=f=h=void 0}function D(){return h===void 0?d:k(e())}function B(){var P=e(),R=x(P);if(v=arguments,f=this,y=P,R){if(h===void 0)return E(y);if(m)return clearTimeout(h),h=setTimeout(S,l),w(y)}return h===void 0&&(h=setTimeout(S,l)),d}return B.cancel=A,B.flush=D,B}return jn=o,jn}var wc=bc(),ka=Ta(wc),ei=Ke?Ke.performance:null,Kl=ei&&ei.now?function(){return ei.now()}:function(){return Date.now()},xc=function(){if(Ke){if(Ke.requestAnimationFrame)return function(r){Ke.requestAnimationFrame(r)};if(Ke.mozRequestAnimationFrame)return function(r){Ke.mozRequestAnimationFrame(r)};if(Ke.webkitRequestAnimationFrame)return function(r){Ke.webkitRequestAnimationFrame(r)};if(Ke.msRequestAnimationFrame)return function(r){Ke.msRequestAnimationFrame(r)}}return function(r){r&&setTimeout(function(){r(Kl())},1e3/60)}}(),un=function(e){return xc(e)},Kr=Kl,Mt=9261,$l=65599,ia=5381,Ul=function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Mt,a=t,n;n=e.next(),!n.done;)a=a*$l+n.value|0;return a},ha=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Mt;return t*$l+e|0},da=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ia;return(t<<5)+t+e|0},Ec=function(e,t){return e*2097152+t},Yr=function(e){return e[0]*2097152+e[1]},za=function(e,t){return[ha(e[0],t[0]),da(e[1],t[1])]},Cc=function(e,t){var a={value:0,done:!1},n=0,i=e.length,o={next:function(){return n=0;n--)e[n]===t&&e.splice(n,1)},zo=function(e){e.splice(0,e.length)},Bc=function(e,t){for(var a=0;a"u"?"undefined":Ue(Set))!==Mc?Set:Lc,En=function(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0||t===void 0||!Mo(e)){Ve("An element must have a core reference and parameters set");return}var n=t.group;if(n==null&&(t.data&&t.data.source!=null&&t.data.target!=null?n="edges":n="nodes"),n!=="nodes"&&n!=="edges"){Ve("An element must be of type `nodes` or `edges`; you specified `"+n+"`");return}this.length=1,this[0]=this;var i=this._private={cy:e,single:!0,data:t.data||{},position:t.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:n,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!t.selected,selectable:t.selectable===void 0?!0:!!t.selectable,locked:!!t.locked,grabbed:!1,grabbable:t.grabbable===void 0?!0:!!t.grabbable,pannable:t.pannable===void 0?n==="edges":!!t.pannable,active:!1,classes:new Kt,animation:{current:[],queue:[]},rscratch:{},scratch:t.scratch||{},edges:[],children:[],parent:t.parent&&t.parent.isNode()?t.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(i.position.x==null&&(i.position.x=0),i.position.y==null&&(i.position.y=0),t.renderedPosition){var o=t.renderedPosition,s=e.pan(),l=e.zoom();i.position={x:(o.x-s.x)/l,y:(o.y-s.y)/l}}var u=[];Le(t.classes)?u=t.classes:fe(t.classes)&&(u=t.classes.split(/\s+/));for(var v=0,f=u.length;vm?1:0},v=function(p,m,b,w,E){var C;if(b==null&&(b=0),E==null&&(E=a),b<0)throw new Error("lo must be non-negative");for(w==null&&(w=p.length);bA;0<=A?k++:k--)S.push(k);return S}).apply(this).reverse(),x=[],w=0,E=C.length;wD;0<=D?++S:--S)B.push(o(p,b));return B},y=function(p,m,b,w){var E,C,x;for(w==null&&(w=a),E=p[b];b>m;){if(x=b-1>>1,C=p[x],w(E,C)<0){p[b]=C,b=x;continue}break}return p[b]=E},g=function(p,m,b){var w,E,C,x,S;for(b==null&&(b=a),E=p.length,S=m,C=p[m],w=2*m+1;w0;){var C=m.pop(),x=g(C),S=C.id();if(c[S]=x,x!==1/0)for(var k=C.neighborhood().intersect(h),A=0;A0)for(O.unshift(M);f[H];){var z=f[H];O.unshift(z.edge),O.unshift(z.node),_=z.node,H=_.id()}return s.spawn(O)}}}},Vc={kruskal:function(e){e=e||function(b){return 1};for(var t=this.byGroup(),a=t.nodes,n=t.edges,i=a.length,o=new Array(i),s=a,l=function(w){for(var E=0;E0;){if(E(),x++,w===v){for(var S=[],k=i,A=v,D=p[A];S.unshift(k),D!=null&&S.unshift(D),k=g[A],k!=null;)A=k.id(),D=p[A];return{found:!0,distance:f[w],path:this.spawn(S),steps:x}}d[w]=!0;for(var B=b._private.edges,P=0;PD&&(h[A]=D,m[A]=k,b[A]=E),!i){var B=k*v+S;!i&&h[B]>D&&(h[B]=D,m[B]=S,b[B]=E)}}}for(var P=0;P1&&arguments[1]!==void 0?arguments[1]:o,he=b(oe),ye=[],de=he;;){if(de==null)return t.spawn();var me=m(de),Ce=me.edge,Se=me.pred;if(ye.unshift(de[0]),de.same(ue)&&ye.length>0)break;Ce!=null&&ye.unshift(Ce),de=Se}return l.spawn(ye)},C=0;C=0;v--){var f=u[v],c=f[1],d=f[2];(t[c]===s&&t[d]===l||t[c]===l&&t[d]===s)&&u.splice(v,1)}for(var h=0;hn;){var i=Math.floor(Math.random()*t.length);t=Yc(i,e,t),a--}return t},Xc={kargerStein:function(){var e=this,t=this.byGroup(),a=t.nodes,n=t.edges;n.unmergeBy(function(O){return O.isLoop()});var i=a.length,o=n.length,s=Math.ceil(Math.pow(Math.log(i)/Math.LN2,2)),l=Math.floor(i/Wc);if(i<2){Ve("At least 2 nodes are required for Karger-Stein algorithm");return}for(var u=[],v=0;v1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=1/0,i=t;i1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=-1/0,i=t;i1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=0,i=0,o=t;o1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;n?e=e.slice(t,a):(a0&&e.splice(0,t));for(var s=0,l=e.length-1;l>=0;l--){var u=e[l];o?isFinite(u)||(e[l]=-1/0,s++):e.splice(l,1)}i&&e.sort(function(c,d){return c-d});var v=e.length,f=Math.floor(v/2);return v%2!==0?e[f+1+s]:(e[f-1+s]+e[f+s])/2},rh=function(e){return Math.PI*e/180},Fa=function(e,t){return Math.atan2(t,e)-Math.PI/2},Fo=Math.log2||function(r){return Math.log(r)/Math.log(2)},jl=function(e){return e>0?1:e<0?-1:0},yt=function(e,t){return Math.sqrt(ct(e,t))},ct=function(e,t){var a=t.x-e.x,n=t.y-e.y;return a*a+n*n},th=function(e){for(var t=e.length,a=0,n=0;n=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(e.w!=null&&e.h!=null&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},nh=function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},ih=function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},oh=function(e,t,a){return{x1:e.x1+t,x2:e.x2+t,y1:e.y1+a,y2:e.y2+a,w:e.w,h:e.h}},ev=function(e,t){e.x1=Math.min(e.x1,t.x1),e.x2=Math.max(e.x2,t.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,t.y1),e.y2=Math.max(e.y2,t.y2),e.h=e.y2-e.y1},sh=function(e,t,a){e.x1=Math.min(e.x1,t),e.x2=Math.max(e.x2,t),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,a),e.y2=Math.max(e.y2,a),e.h=e.y2-e.y1},Za=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.x1-=t,e.x2+=t,e.y1-=t,e.y2+=t,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},Qa=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],a,n,i,o;if(t.length===1)a=n=i=o=t[0];else if(t.length===2)a=i=t[0],o=n=t[1];else if(t.length===4){var s=je(t,4);a=s[0],n=s[1],i=s[2],o=s[3]}return e.x1-=o,e.x2+=n,e.y1-=a,e.y2+=i,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},Ps=function(e,t){e.x1=t.x1,e.y1=t.y1,e.x2=t.x2,e.y2=t.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},qo=function(e,t){return!(e.x1>t.x2||t.x1>e.x2||e.x2t.y2||t.y1>e.y2)},Vt=function(e,t,a){return e.x1<=t&&t<=e.x2&&e.y1<=a&&a<=e.y2},uh=function(e,t){return Vt(e,t.x,t.y)},rv=function(e,t){return Vt(e,t.x1,t.y1)&&Vt(e,t.x2,t.y2)},tv=function(e,t,a,n,i,o,s){var l=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"auto",u=l==="auto"?mt(i,o):l,v=i/2,f=o/2;u=Math.min(u,v,f);var c=u!==v,d=u!==f,h;if(c){var y=a-v+u-s,g=n-f-s,p=a+v-u+s,m=g;if(h=Jr(e,t,a,n,y,g,p,m,!1),h.length>0)return h}if(d){var b=a+v+s,w=n-f+u-s,E=b,C=n+f-u+s;if(h=Jr(e,t,a,n,b,w,E,C,!1),h.length>0)return h}if(c){var x=a-v+u-s,S=n+f+s,k=a+v-u+s,A=S;if(h=Jr(e,t,a,n,x,S,k,A,!1),h.length>0)return h}if(d){var D=a-v-s,B=n-f+u-s,P=D,R=n+f-u+s;if(h=Jr(e,t,a,n,D,B,P,R,!1),h.length>0)return h}var L;{var I=a-v+u,M=n-f+u;if(L=oa(e,t,a,n,I,M,u+s),L.length>0&&L[0]<=I&&L[1]<=M)return[L[0],L[1]]}{var O=a+v-u,_=n-f+u;if(L=oa(e,t,a,n,O,_,u+s),L.length>0&&L[0]>=O&&L[1]<=_)return[L[0],L[1]]}{var H=a+v-u,z=n+f-u;if(L=oa(e,t,a,n,H,z,u+s),L.length>0&&L[0]>=H&&L[1]>=z)return[L[0],L[1]]}{var G=a-v+u,W=n+f-u;if(L=oa(e,t,a,n,G,W,u+s),L.length>0&&L[0]<=G&&L[1]>=W)return[L[0],L[1]]}return[]},lh=function(e,t,a,n,i,o,s){var l=s,u=Math.min(a,i),v=Math.max(a,i),f=Math.min(n,o),c=Math.max(n,o);return u-l<=e&&e<=v+l&&f-l<=t&&t<=c+l},vh=function(e,t,a,n,i,o,s,l,u){var v={x1:Math.min(a,s,i)-u,x2:Math.max(a,s,i)+u,y1:Math.min(n,l,o)-u,y2:Math.max(n,l,o)+u};return!(ev.x2||tv.y2)},fh=function(e,t,a,n){a-=n;var i=t*t-4*e*a;if(i<0)return[];var o=Math.sqrt(i),s=2*e,l=(-t+o)/s,u=(-t-o)/s;return[l,u]},ch=function(e,t,a,n,i){var o=1e-5;e===0&&(e=o),t/=e,a/=e,n/=e;var s,l,u,v,f,c,d,h;if(l=(3*a-t*t)/9,u=-(27*n)+t*(9*a-2*(t*t)),u/=54,s=l*l*l+u*u,i[1]=0,d=t/3,s>0){f=u+Math.sqrt(s),f=f<0?-Math.pow(-f,1/3):Math.pow(f,1/3),c=u-Math.sqrt(s),c=c<0?-Math.pow(-c,1/3):Math.pow(c,1/3),i[0]=-d+f+c,d+=(f+c)/2,i[4]=i[2]=-d,d=Math.sqrt(3)*(-c+f)/2,i[3]=d,i[5]=-d;return}if(i[5]=i[3]=0,s===0){h=u<0?-Math.pow(-u,1/3):Math.pow(u,1/3),i[0]=-d+2*h,i[4]=i[2]=-(h+d);return}l=-l,v=l*l*l,v=Math.acos(u/Math.sqrt(v)),h=2*Math.sqrt(l),i[0]=-d+h*Math.cos(v/3),i[2]=-d+h*Math.cos((v+2*Math.PI)/3),i[4]=-d+h*Math.cos((v+4*Math.PI)/3)},hh=function(e,t,a,n,i,o,s,l){var u=1*a*a-4*a*i+2*a*s+4*i*i-4*i*s+s*s+n*n-4*n*o+2*n*l+4*o*o-4*o*l+l*l,v=1*9*a*i-3*a*a-3*a*s-6*i*i+3*i*s+9*n*o-3*n*n-3*n*l-6*o*o+3*o*l,f=1*3*a*a-6*a*i+a*s-a*e+2*i*i+2*i*e-s*e+3*n*n-6*n*o+n*l-n*t+2*o*o+2*o*t-l*t,c=1*a*i-a*a+a*e-i*e+n*o-n*n+n*t-o*t,d=[];ch(u,v,f,c,d);for(var h=1e-7,y=[],g=0;g<6;g+=2)Math.abs(d[g+1])=0&&d[g]<=1&&y.push(d[g]);y.push(1),y.push(0);for(var p=-1,m,b,w,E=0;E=0?wu?(e-i)*(e-i)+(t-o)*(t-o):v-c},gr=function(e,t,a){for(var n,i,o,s,l,u=0,v=0;v=e&&e>=o||n<=e&&e<=o)l=(e-n)/(o-n)*(s-i)+i,l>t&&u++;else continue;return u%2!==0},$r=function(e,t,a,n,i,o,s,l,u){var v=new Array(a.length),f;l[0]!=null?(f=Math.atan(l[1]/l[0]),l[0]<0?f=f+Math.PI/2:f=-f-Math.PI/2):f=l;for(var c=Math.cos(-f),d=Math.sin(-f),h=0;h0){var g=fn(v,-u);y=vn(g)}else y=v;return gr(e,t,y)},gh=function(e,t,a,n,i,o,s,l){for(var u=new Array(a.length*2),v=0;v=0&&g<=1&&m.push(g),p>=0&&p<=1&&m.push(p),m.length===0)return[];var b=m[0]*l[0]+e,w=m[0]*l[1]+t;if(m.length>1){if(m[0]==m[1])return[b,w];var E=m[1]*l[0]+e,C=m[1]*l[1]+t;return[b,w,E,C]}else return[b,w]},ai=function(e,t,a){return t<=e&&e<=a||a<=e&&e<=t?e:e<=t&&t<=a||a<=t&&t<=e?t:a},Jr=function(e,t,a,n,i,o,s,l,u){var v=e-i,f=a-e,c=s-i,d=t-o,h=n-t,y=l-o,g=c*d-y*v,p=f*d-h*v,m=y*f-c*h;if(m!==0){var b=g/m,w=p/m,E=.001,C=0-E,x=1+E;return C<=b&&b<=x&&C<=w&&w<=x?[e+b*f,t+b*h]:u?[e+b*f,t+b*h]:[]}else return g===0||p===0?ai(e,a,s)===s?[s,l]:ai(e,a,i)===i?[i,o]:ai(i,s,a)===a?[a,n]:[]:[]},ya=function(e,t,a,n,i,o,s,l){var u=[],v,f=new Array(a.length),c=!0;o==null&&(c=!1);var d;if(c){for(var h=0;h0){var y=fn(f,-l);d=vn(y)}else d=f}else d=a;for(var g,p,m,b,w=0;w2){for(var h=[v[0],v[1]],y=Math.pow(h[0]-e,2)+Math.pow(h[1]-t,2),g=1;gv&&(v=w)},get:function(b){return u[b]}},c=0;c0?L=R.edgesTo(P)[0]:L=P.edgesTo(R)[0];var I=n(L);P=P.id(),x[P]>x[D]+I&&(x[P]=x[D]+I,S.nodes.indexOf(P)<0?S.push(P):S.updateItem(P),C[P]=0,E[P]=[]),x[P]==x[D]+I&&(C[P]=C[P]+C[D],E[P].push(D))}else for(var M=0;M0;){for(var z=w.pop(),G=0;G0&&s.push(a[l]);s.length!==0&&i.push(n.collection(s))}return i},Rh=function(e,t){for(var a=0;a5&&arguments[5]!==void 0?arguments[5]:Ih,s=n,l,u,v=0;v=2?jt(e,t,a,0,Ls,Oh):jt(e,t,a,0,Ms)},squaredEuclidean:function(e,t,a){return jt(e,t,a,0,Ls)},manhattan:function(e,t,a){return jt(e,t,a,0,Ms)},max:function(e,t,a){return jt(e,t,a,-1/0,Nh)}};_t["squared-euclidean"]=_t.squaredEuclidean;_t.squaredeuclidean=_t.squaredEuclidean;function Tn(r,e,t,a,n,i){var o;return _e(r)?o=r:o=_t[r]||_t.euclidean,e===0&&_e(r)?o(n,i):o(e,t,a,n,i)}var zh=We({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),_o=function(e){return zh(e)},cn=function(e,t,a,n,i){var o=i!=="kMedoids",s=o?function(f){return a[f]}:function(f){return n[f](a)},l=function(c){return n[c](t)},u=a,v=t;return Tn(e,n.length,s,l,u,v)},ni=function(e,t,a){for(var n=a.length,i=new Array(n),o=new Array(n),s=new Array(t),l=null,u=0;ua)return!1}return!0},Vh=function(e,t,a){for(var n=0;ns&&(s=t[u][v],l=v);i[l].push(e[u])}for(var f=0;f=i.threshold||i.mode==="dendrogram"&&e.length===1)return!1;var h=t[o],y=t[n[o]],g;i.mode==="dendrogram"?g={left:h,right:y,key:h.key}:g={value:h.value.concat(y.value),key:h.key},e[h.index]=g,e.splice(y.index,1),t[h.key]=g;for(var p=0;pa[y.key][m.key]&&(l=a[y.key][m.key])):i.linkage==="max"?(l=a[h.key][m.key],a[h.key][m.key]0&&n.push(i);return n},qs=function(e,t,a){for(var n=[],i=0;is&&(o=u,s=t[i*e+u])}o>0&&n.push(o)}for(var v=0;vu&&(l=v,u=f)}a[i]=o[l]}return n=qs(e,t,a),n},Vs=function(e){for(var t=this.cy(),a=this.nodes(),n=Jh(e),i={},o=0;o=D?(B=D,D=R,P=L):R>B&&(B=R);for(var I=0;I0?1:0;x[k%n.minIterations*s+G]=W,z+=W}if(z>0&&(k>=n.minIterations-1||k==n.maxIterations-1)){for(var X=0,Z=0;Z1||C>1)&&(s=!0),f[b]=[],m.outgoers().forEach(function(S){S.isEdge()&&f[b].push(S.id())})}else c[b]=[void 0,m.target().id()]}):o.forEach(function(m){var b=m.id();if(m.isNode()){var w=m.degree(!0);w%2&&(l?u?s=!0:u=b:l=b),f[b]=[],m.connectedEdges().forEach(function(E){return f[b].push(E.id())})}else c[b]=[m.source().id(),m.target().id()]});var d={found:!1,trail:void 0};if(s)return d;if(u&&l)if(i){if(v&&u!=v)return d;v=u}else{if(v&&u!=v&&l!=v)return d;v||(v=u)}else v||(v=o[0].id());var h=function(b){for(var w=b,E=[b],C,x,S;f[w].length;)C=f[w].shift(),x=c[C][0],S=c[C][1],w!=S?(f[S]=f[S].filter(function(k){return k!=C}),w=S):!i&&w!=x&&(f[x]=f[x].filter(function(k){return k!=C}),w=x),E.unshift(C),E.unshift(w);return E},y=[],g=[];for(g=h(v);g.length!=1;)f[g[0]].length==0?(y.unshift(o.getElementById(g.shift())),y.unshift(o.getElementById(g.shift()))):g=h(g.shift()).concat(g);y.unshift(o.getElementById(g.shift()));for(var p in f)if(f[p].length)return d;return d.found=!0,d.trail=this.spawn(y,!0),d}},Va=function(){var e=this,t={},a=0,n=0,i=[],o=[],s={},l=function(c,d){for(var h=o.length-1,y=[],g=e.spawn();o[h].x!=c||o[h].y!=d;)y.push(o.pop().edge),h--;y.push(o.pop().edge),y.forEach(function(p){var m=p.connectedNodes().intersection(e);g.merge(p),m.forEach(function(b){var w=b.id(),E=b.connectedEdges().intersection(e);g.merge(b),t[w].cutVertex?g.merge(E.filter(function(C){return C.isLoop()})):g.merge(E)})}),i.push(g)},u=function(c,d,h){c===h&&(n+=1),t[d]={id:a,low:a++,cutVertex:!1};var y=e.getElementById(d).connectedEdges().intersection(e);if(y.size()===0)i.push(e.spawn(e.getElementById(d)));else{var g,p,m,b;y.forEach(function(w){g=w.source().id(),p=w.target().id(),m=g===d?p:g,m!==h&&(b=w.id(),s[b]||(s[b]=!0,o.push({x:d,y:m,edge:w})),m in t?t[d].low=Math.min(t[d].low,t[m].id):(u(c,m,d),t[d].low=Math.min(t[d].low,t[m].low),t[d].id<=t[m].low&&(t[d].cutVertex=!0,l(d,m))))})}};e.forEach(function(f){if(f.isNode()){var c=f.id();c in t||(n=0,u(c,c),t[c].cutVertex=n>1)}});var v=Object.keys(t).filter(function(f){return t[f].cutVertex}).map(function(f){return e.getElementById(f)});return{cut:e.spawn(v),components:i}},od={hopcroftTarjanBiconnected:Va,htbc:Va,htb:Va,hopcroftTarjanBiconnectedComponents:Va},_a=function(){var e=this,t={},a=0,n=[],i=[],o=e.spawn(e),s=function(u){i.push(u),t[u]={index:a,low:a++,explored:!1};var v=e.getElementById(u).connectedEdges().intersection(e);if(v.forEach(function(y){var g=y.target().id();g!==u&&(g in t||s(g),t[g].explored||(t[u].low=Math.min(t[u].low,t[g].low)))}),t[u].index===t[u].low){for(var f=e.spawn();;){var c=i.pop();if(f.merge(e.getElementById(c)),t[c].low=t[u].index,t[c].explored=!0,c===u)break}var d=f.edgesWith(f),h=f.merge(d);n.push(h),o=o.difference(h)}};return e.forEach(function(l){if(l.isNode()){var u=l.id();u in t||s(u)}}),{cut:o,components:n}},sd={tarjanStronglyConnected:_a,tsc:_a,tscc:_a,tarjanStronglyConnectedComponents:_a},lv={};[ga,qc,Vc,Gc,Kc,Uc,Xc,wh,zt,Ft,go,Lh,Uh,Zh,ad,id,od,sd].forEach(function(r){ge(lv,r)});/*! diff --git a/static/js/md-dagre-4EVJKHTY-DYrconoh.js b/static/js/md-dagre-4EVJKHTY-BG19s4lC.js similarity index 97% rename from static/js/md-dagre-4EVJKHTY-DYrconoh.js rename to static/js/md-dagre-4EVJKHTY-BG19s4lC.js index e7e882509..aa2a1f151 100644 --- a/static/js/md-dagre-4EVJKHTY-DYrconoh.js +++ b/static/js/md-dagre-4EVJKHTY-BG19s4lC.js @@ -1,4 +1,4 @@ -import{_ as X,ar as F,as as Y,at as _,au as H,l as i,c as V,av as z,aw as U,af as $,ak as q,ag as P,ae as K,ax as Q,ay as W,az as Z}from"./md-index-Pj6M4nIk.js";import{G as B}from"./md-graph-Dk7IDouC.js";import{l as I}from"./md-layout-InKKBTOk.js";import{i as S}from"./md-_baseUniq-B_2Z1DXv.js";import{c as L}from"./md-clone-CnShQSdt.js";import{m as A}from"./md-_basePickBy-DCcDoZXV.js";function p(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:ee(e),edges:ne(e)};return S(e.graph())||(t.value=L(e.graph())),t}function ee(e){return A(e.nodes(),function(t){var n=e.node(t),o=e.parent(t),c={v:t};return S(n)||(c.value=n),S(o)||(c.parent=o),c})}function ne(e){return A(e.edges(),function(t){var n=e.edge(t),o={v:t.v,w:t.w};return S(t.name)||(o.name=t.name),S(n)||(o.value=n),o})}var f=new Map,b=new Map,J=new Map,te=X(()=>{b.clear(),J.clear(),f.clear()},"clear"),O=X((e,t)=>{const n=b.get(t)||[];return i.trace("In isDescendant",t," ",e," = ",n.includes(e)),n.includes(e)},"isDescendant"),se=X((e,t)=>{const n=b.get(t)||[];return i.info("Descendants of ",t," is ",n),i.info("Edge is ",e),e.v===t||e.w===t?!1:n?n.includes(e.v)||O(e.v,t)||O(e.w,t)||n.includes(e.w):(i.debug("Tilt, ",t,",not in descendants"),!1)},"edgeInCluster"),G=X((e,t,n,o)=>{i.warn("Copying children of ",e,"root",o,"data",t.node(e),o);const c=t.children(e)||[];e!==o&&c.push(e),i.warn("Copying (nodes) clusterId",e,"nodes",c),c.forEach(a=>{if(t.children(a).length>0)G(a,t,n,o);else{const r=t.node(a);i.info("cp ",a," to ",o," with parent ",e),n.setNode(a,r),o!==t.parent(a)&&(i.warn("Setting parent",a,t.parent(a)),n.setParent(a,t.parent(a))),e!==o&&a!==e?(i.debug("Setting parent",a,e),n.setParent(a,e)):(i.info("In copy ",e,"root",o,"data",t.node(e),o),i.debug("Not Setting parent for node=",a,"cluster!==rootId",e!==o,"node!==clusterId",a!==e));const u=t.edges(a);i.debug("Copying Edges",u),u.forEach(l=>{i.info("Edge",l);const h=t.edge(l.v,l.w,l.name);i.info("Edge data",h,o);try{se(l,o)?(i.info("Copying as ",l.v,l.w,h,l.name),n.setEdge(l.v,l.w,h,l.name),i.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):i.info("Skipping copy of edge ",l.v,"-->",l.w," rootId: ",o," clusterId:",e)}catch(C){i.error(C)}})}i.debug("Removing node",a),t.removeNode(a)})},"copy"),R=X((e,t)=>{const n=t.children(e);let o=[...n];for(const c of n)J.set(c,e),o=[...o,...R(c,t)];return o},"extractDescendants"),ie=X((e,t,n)=>{const o=e.edges().filter(l=>l.v===t||l.w===t),c=e.edges().filter(l=>l.v===n||l.w===n),a=o.map(l=>({v:l.v===t?n:l.v,w:l.w===t?t:l.w})),r=c.map(l=>({v:l.v,w:l.w}));return a.filter(l=>r.some(h=>l.v===h.v&&l.w===h.w))},"findCommonEdges"),D=X((e,t,n)=>{const o=t.children(e);if(i.trace("Searching children of id ",e,o),o.length<1)return e;let c;for(const a of o){const r=D(a,t,n),u=ie(t,n,r);if(r)if(u.length>0)c=r;else return r}return c},"findNonClusterChild"),k=X(e=>!f.has(e)||!f.get(e).externalConnections?e:f.has(e)?f.get(e).id:e,"getAnchorId"),re=X((e,t)=>{if(!e||t>10){i.debug("Opting out, no graph ");return}else i.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(i.warn("Cluster identified",n," Replacement id in edges: ",D(n,e,n)),b.set(n,R(n,e)),f.set(n,{id:D(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){const o=e.children(n),c=e.edges();o.length>0?(i.debug("Cluster identified",n,b),c.forEach(a=>{const r=O(a.v,n),u=O(a.w,n);r^u&&(i.warn("Edge: ",a," leaves cluster ",n),i.warn("Descendants of XXX ",n,": ",b.get(n)),f.get(n).externalConnections=!0)})):i.debug("Not a cluster ",n,b)});for(let n of f.keys()){const o=f.get(n).id,c=e.parent(o);c!==n&&f.has(c)&&!f.get(c).externalConnections&&(f.get(n).id=c)}e.edges().forEach(function(n){const o=e.edge(n);i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let c=n.v,a=n.w;if(i.warn("Fix XXX",f,"ids:",n.v,n.w,"Translating: ",f.get(n.v)," --- ",f.get(n.w)),f.get(n.v)||f.get(n.w)){if(i.warn("Fixing and trying - removing XXX",n.v,n.w,n.name),c=k(n.v),a=k(n.w),e.removeEdge(n.v,n.w,n.name),c!==n.v){const r=e.parent(c);f.get(r).externalConnections=!0,o.fromCluster=n.v}if(a!==n.w){const r=e.parent(a);f.get(r).externalConnections=!0,o.toCluster=n.w}i.warn("Fix Replacing with XXX",c,a,n.name),e.setEdge(c,a,o,n.name)}}),i.warn("Adjusted Graph",p(e)),T(e,0),i.trace(f)},"adjustClustersAndEdges"),T=X((e,t)=>{var c,a;if(i.warn("extractor - ",t,p(e),e.children("D")),t>10){i.error("Bailing out");return}let n=e.nodes(),o=!1;for(const r of n){const u=e.children(r);o=o||u.length>0}if(!o){i.debug("Done, no node has children",e.nodes());return}i.debug("Nodes = ",n,t);for(const r of n)if(i.debug("Extracting node",r,f,f.has(r)&&!f.get(r).externalConnections,!e.parent(r),e.node(r),e.children("D")," Depth ",t),!f.has(r))i.debug("Not a cluster",r,t);else if(!f.get(r).externalConnections&&e.children(r)&&e.children(r).length>0){i.warn("Cluster without external connections, without a parent and with children",r,t);let l=e.graph().rankdir==="TB"?"LR":"TB";(a=(c=f.get(r))==null?void 0:c.clusterData)!=null&&a.dir&&(l=f.get(r).clusterData.dir,i.warn("Fixing dir",f.get(r).clusterData.dir,l));const h=new B({multigraph:!0,compound:!0}).setGraph({rankdir:l,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});i.warn("Old graph before copy",p(e)),G(r,e,h,r),e.setNode(r,{clusterNode:!0,id:r,clusterData:f.get(r).clusterData,label:f.get(r).label,graph:h}),i.warn("New graph after copy node: (",r,")",p(h)),i.debug("Old graph after copy",p(e))}else i.warn("Cluster ** ",r," **not meeting the criteria !externalConnections:",!f.get(r).externalConnections," no parent: ",!e.parent(r)," children ",e.children(r)&&e.children(r).length>0,e.children("D"),t),i.debug(f);n=e.nodes(),i.warn("New list of nodes",n);for(const r of n){const u=e.node(r);i.warn(" Now next level",r,u),u!=null&&u.clusterNode&&T(u.graph,t+1)}},"extractor"),M=X((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(o=>{const c=e.children(o),a=M(e,c);n=[...n,...a]}),n},"sorter"),oe=X(e=>M(e,e.children()),"sortNodesByHierarchy"),j=X(async(e,t,n,o,c,a)=>{i.warn("Graph in recursive render:XAX",p(t),c);const r=t.graph().rankdir;i.trace("Dir in recursive render - dir:",r);const u=e.insert("g").attr("class","root");t.nodes()?i.info("Recursive render XXX",t.nodes()):i.info("No nodes found for",t),t.edges().length>0&&i.info("Recursive edges",t.edge(t.edges()[0]));const l=u.insert("g").attr("class","clusters"),h=u.insert("g").attr("class","edgePaths"),C=u.insert("g").attr("class","edgeLabels"),g=u.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(d){const s=t.node(d);if(c!==void 0){const m=JSON.parse(JSON.stringify(c.clusterData));i.trace(`Setting data for parent cluster XXX +import{_ as X,ar as F,as as Y,at as _,au as H,l as i,c as V,av as z,aw as U,af as $,ak as q,ag as P,ae as K,ax as Q,ay as W,az as Z}from"./md-index-1F_vrIf8.js";import{G as B}from"./md-graph-tF8klDvC.js";import{l as I}from"./md-layout-FhzIEdmV.js";import{i as S}from"./md-_baseUniq-CaouebKG.js";import{c as L}from"./md-clone-Cc6Gk5Be.js";import{m as A}from"./md-_basePickBy-BEC9IKhF.js";function p(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:ee(e),edges:ne(e)};return S(e.graph())||(t.value=L(e.graph())),t}function ee(e){return A(e.nodes(),function(t){var n=e.node(t),o=e.parent(t),c={v:t};return S(n)||(c.value=n),S(o)||(c.parent=o),c})}function ne(e){return A(e.edges(),function(t){var n=e.edge(t),o={v:t.v,w:t.w};return S(t.name)||(o.name=t.name),S(n)||(o.value=n),o})}var f=new Map,b=new Map,J=new Map,te=X(()=>{b.clear(),J.clear(),f.clear()},"clear"),O=X((e,t)=>{const n=b.get(t)||[];return i.trace("In isDescendant",t," ",e," = ",n.includes(e)),n.includes(e)},"isDescendant"),se=X((e,t)=>{const n=b.get(t)||[];return i.info("Descendants of ",t," is ",n),i.info("Edge is ",e),e.v===t||e.w===t?!1:n?n.includes(e.v)||O(e.v,t)||O(e.w,t)||n.includes(e.w):(i.debug("Tilt, ",t,",not in descendants"),!1)},"edgeInCluster"),G=X((e,t,n,o)=>{i.warn("Copying children of ",e,"root",o,"data",t.node(e),o);const c=t.children(e)||[];e!==o&&c.push(e),i.warn("Copying (nodes) clusterId",e,"nodes",c),c.forEach(a=>{if(t.children(a).length>0)G(a,t,n,o);else{const r=t.node(a);i.info("cp ",a," to ",o," with parent ",e),n.setNode(a,r),o!==t.parent(a)&&(i.warn("Setting parent",a,t.parent(a)),n.setParent(a,t.parent(a))),e!==o&&a!==e?(i.debug("Setting parent",a,e),n.setParent(a,e)):(i.info("In copy ",e,"root",o,"data",t.node(e),o),i.debug("Not Setting parent for node=",a,"cluster!==rootId",e!==o,"node!==clusterId",a!==e));const u=t.edges(a);i.debug("Copying Edges",u),u.forEach(l=>{i.info("Edge",l);const h=t.edge(l.v,l.w,l.name);i.info("Edge data",h,o);try{se(l,o)?(i.info("Copying as ",l.v,l.w,h,l.name),n.setEdge(l.v,l.w,h,l.name),i.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):i.info("Skipping copy of edge ",l.v,"-->",l.w," rootId: ",o," clusterId:",e)}catch(C){i.error(C)}})}i.debug("Removing node",a),t.removeNode(a)})},"copy"),R=X((e,t)=>{const n=t.children(e);let o=[...n];for(const c of n)J.set(c,e),o=[...o,...R(c,t)];return o},"extractDescendants"),ie=X((e,t,n)=>{const o=e.edges().filter(l=>l.v===t||l.w===t),c=e.edges().filter(l=>l.v===n||l.w===n),a=o.map(l=>({v:l.v===t?n:l.v,w:l.w===t?t:l.w})),r=c.map(l=>({v:l.v,w:l.w}));return a.filter(l=>r.some(h=>l.v===h.v&&l.w===h.w))},"findCommonEdges"),D=X((e,t,n)=>{const o=t.children(e);if(i.trace("Searching children of id ",e,o),o.length<1)return e;let c;for(const a of o){const r=D(a,t,n),u=ie(t,n,r);if(r)if(u.length>0)c=r;else return r}return c},"findNonClusterChild"),k=X(e=>!f.has(e)||!f.get(e).externalConnections?e:f.has(e)?f.get(e).id:e,"getAnchorId"),re=X((e,t)=>{if(!e||t>10){i.debug("Opting out, no graph ");return}else i.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(i.warn("Cluster identified",n," Replacement id in edges: ",D(n,e,n)),b.set(n,R(n,e)),f.set(n,{id:D(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){const o=e.children(n),c=e.edges();o.length>0?(i.debug("Cluster identified",n,b),c.forEach(a=>{const r=O(a.v,n),u=O(a.w,n);r^u&&(i.warn("Edge: ",a," leaves cluster ",n),i.warn("Descendants of XXX ",n,": ",b.get(n)),f.get(n).externalConnections=!0)})):i.debug("Not a cluster ",n,b)});for(let n of f.keys()){const o=f.get(n).id,c=e.parent(o);c!==n&&f.has(c)&&!f.get(c).externalConnections&&(f.get(n).id=c)}e.edges().forEach(function(n){const o=e.edge(n);i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let c=n.v,a=n.w;if(i.warn("Fix XXX",f,"ids:",n.v,n.w,"Translating: ",f.get(n.v)," --- ",f.get(n.w)),f.get(n.v)||f.get(n.w)){if(i.warn("Fixing and trying - removing XXX",n.v,n.w,n.name),c=k(n.v),a=k(n.w),e.removeEdge(n.v,n.w,n.name),c!==n.v){const r=e.parent(c);f.get(r).externalConnections=!0,o.fromCluster=n.v}if(a!==n.w){const r=e.parent(a);f.get(r).externalConnections=!0,o.toCluster=n.w}i.warn("Fix Replacing with XXX",c,a,n.name),e.setEdge(c,a,o,n.name)}}),i.warn("Adjusted Graph",p(e)),T(e,0),i.trace(f)},"adjustClustersAndEdges"),T=X((e,t)=>{var c,a;if(i.warn("extractor - ",t,p(e),e.children("D")),t>10){i.error("Bailing out");return}let n=e.nodes(),o=!1;for(const r of n){const u=e.children(r);o=o||u.length>0}if(!o){i.debug("Done, no node has children",e.nodes());return}i.debug("Nodes = ",n,t);for(const r of n)if(i.debug("Extracting node",r,f,f.has(r)&&!f.get(r).externalConnections,!e.parent(r),e.node(r),e.children("D")," Depth ",t),!f.has(r))i.debug("Not a cluster",r,t);else if(!f.get(r).externalConnections&&e.children(r)&&e.children(r).length>0){i.warn("Cluster without external connections, without a parent and with children",r,t);let l=e.graph().rankdir==="TB"?"LR":"TB";(a=(c=f.get(r))==null?void 0:c.clusterData)!=null&&a.dir&&(l=f.get(r).clusterData.dir,i.warn("Fixing dir",f.get(r).clusterData.dir,l));const h=new B({multigraph:!0,compound:!0}).setGraph({rankdir:l,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});i.warn("Old graph before copy",p(e)),G(r,e,h,r),e.setNode(r,{clusterNode:!0,id:r,clusterData:f.get(r).clusterData,label:f.get(r).label,graph:h}),i.warn("New graph after copy node: (",r,")",p(h)),i.debug("Old graph after copy",p(e))}else i.warn("Cluster ** ",r," **not meeting the criteria !externalConnections:",!f.get(r).externalConnections," no parent: ",!e.parent(r)," children ",e.children(r)&&e.children(r).length>0,e.children("D"),t),i.debug(f);n=e.nodes(),i.warn("New list of nodes",n);for(const r of n){const u=e.node(r);i.warn(" Now next level",r,u),u!=null&&u.clusterNode&&T(u.graph,t+1)}},"extractor"),M=X((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(o=>{const c=e.children(o),a=M(e,c);n=[...n,...a]}),n},"sorter"),oe=X(e=>M(e,e.children()),"sortNodesByHierarchy"),j=X(async(e,t,n,o,c,a)=>{i.warn("Graph in recursive render:XAX",p(t),c);const r=t.graph().rankdir;i.trace("Dir in recursive render - dir:",r);const u=e.insert("g").attr("class","root");t.nodes()?i.info("Recursive render XXX",t.nodes()):i.info("No nodes found for",t),t.edges().length>0&&i.info("Recursive edges",t.edge(t.edges()[0]));const l=u.insert("g").attr("class","clusters"),h=u.insert("g").attr("class","edgePaths"),C=u.insert("g").attr("class","edgeLabels"),g=u.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(d){const s=t.node(d);if(c!==void 0){const m=JSON.parse(JSON.stringify(c.clusterData));i.trace(`Setting data for parent cluster XXX Node.id = `,d,` data=`,m.height,` Parent cluster`,c.height),t.setNode(c.id,m),t.parent(d)||(i.trace("Setting parent",d,c.id),t.setParent(d,c.id,m))}if(i.info("(Insert) Node XXX"+d+": "+JSON.stringify(t.node(d))),s!=null&&s.clusterNode){i.info("Cluster identified XBX",d,s.width,t.node(d));const{ranksep:m,nodesep:v}=t.graph();s.graph.setGraph({...s.graph.graph(),ranksep:m+25,nodesep:v});const N=await j(g,s.graph,n,o,t.node(d),a),x=N.elem;z(s,x),s.diff=N.diff||0,i.info("New compound node after recursive render XAX",d,"width",s.width,"height",s.height),U(x,s)}else t.children(d).length>0?(i.trace("Cluster - the non recursive path XBX",d,s.id,s,s.width,"Graph:",t),i.trace(D(s.id,t)),f.set(s.id,{id:D(s.id,t),node:s})):(i.trace("Node - the non recursive path XAX",d,g,t.node(d),r),await $(g,t.node(d),{config:a,dir:r}))})),await X(async()=>{const d=t.edges().map(async function(s){const m=t.edge(s.v,s.w,s.name);i.info("Edge "+s.v+" -> "+s.w+": "+JSON.stringify(s)),i.info("Edge "+s.v+" -> "+s.w+": ",s," ",JSON.stringify(t.edge(s))),i.info("Fix",f,"ids:",s.v,s.w,"Translating: ",f.get(s.v),f.get(s.w)),await Z(C,m)});await Promise.all(d)},"processEdges")(),i.info("Graph before layout:",JSON.stringify(p(t))),i.info("############################################# XXX"),i.info("### Layout ### XXX"),i.info("############################################# XXX"),I(t),i.info("Graph after layout:",JSON.stringify(p(t)));let E=0,{subGraphTitleTotalMargin:y}=q(a);return await Promise.all(oe(t).map(async function(d){var m;const s=t.node(d);if(i.info("Position XBX => "+d+": ("+s.x,","+s.y,") width: ",s.width," height: ",s.height),s!=null&&s.clusterNode)s.y+=y,i.info("A tainted cluster node XBX1",d,s.id,s.width,s.height,s.x,s.y,t.parent(d)),f.get(s.id).node=s,P(s);else if(t.children(d).length>0){i.info("A pure cluster node XBX1",d,s.id,s.x,s.y,s.width,s.height,t.parent(d)),s.height+=y,t.node(s.parentId);const v=(s==null?void 0:s.padding)/2||0,N=((m=s==null?void 0:s.labelBBox)==null?void 0:m.height)||0,x=N-v||0;i.debug("OffsetY",x,"labelHeight",N,"halfPadding",v),await K(l,s),f.get(s.id).node=s}else{const v=t.node(s.parentId);s.y+=y/2,i.info("A regular node XBX1 - using the padding",s.id,"parent",s.parentId,s.width,s.height,s.x,s.y,"offsetY",s.offsetY,"parent",v,v==null?void 0:v.offsetY,s),P(s)}})),t.edges().forEach(function(d){const s=t.edge(d);i.info("Edge "+d.v+" -> "+d.w+": "+JSON.stringify(s),s),s.points.forEach(x=>x.y+=y/2);const m=t.node(d.v);var v=t.node(d.w);const N=Q(h,s,f,n,m,v,o);W(s,N)}),t.nodes().forEach(function(d){const s=t.node(d);i.info(d,s.type,s.diff),s.isGroup&&(E=s.diff)}),i.warn("Returning from recursive render XAX",u,E),{elem:u,diff:E}},"recursiveRender"),ge=X(async(e,t)=>{var a,r,u,l,h,C;const n=new B({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:((a=e.config)==null?void 0:a.nodeSpacing)||((u=(r=e.config)==null?void 0:r.flowchart)==null?void 0:u.nodeSpacing)||e.nodeSpacing,ranksep:((l=e.config)==null?void 0:l.rankSpacing)||((C=(h=e.config)==null?void 0:h.flowchart)==null?void 0:C.rankSpacing)||e.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),o=t.select("g");F(o,e.markers,e.type,e.diagramId),Y(),_(),H(),te(),e.nodes.forEach(g=>{n.setNode(g.id,{...g}),g.parentId&&n.setParent(g.id,g.parentId)}),i.debug("Edges:",e.edges),e.edges.forEach(g=>{if(g.start===g.end){const w=g.start,E=w+"---"+w+"---1",y=w+"---"+w+"---2",d=n.node(w);n.setNode(E,{domId:E,id:E,parentId:d.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),n.setParent(E,d.parentId),n.setNode(y,{domId:y,id:y,parentId:d.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),n.setParent(y,d.parentId);const s=structuredClone(g),m=structuredClone(g),v=structuredClone(g);s.label="",s.arrowTypeEnd="none",s.id=w+"-cyclic-special-1",m.arrowTypeEnd="none",m.id=w+"-cyclic-special-mid",v.label="",d.isGroup&&(s.fromCluster=w,v.toCluster=w),v.id=w+"-cyclic-special-2",n.setEdge(w,E,s,w+"-cyclic-special-0"),n.setEdge(E,y,m,w+"-cyclic-special-1"),n.setEdge(y,w,v,w+"-cyc{const t=v({...L,..._().packet});return t.showBits&&(t.paddingY+=10),t},"getConfig"),G=n(()=>m.packet,"getPacket"),I=n(t=>{t.length>0&&m.packet.push(t)},"pushWord"),M=n(()=>{E(),m=structuredClone(C)},"clear"),h={pushWord:I,getPacket:G,getConfig:Y,clear:M,setAccTitle:W,getAccTitle:P,setDiagramTitle:z,getDiagramTitle:F,getAccDescription:S,setAccDescription:B},O=1e4,H=n(t=>{w(t,h);let e=-1,o=[],s=1;const{bitsPerRow:i}=h.getConfig();for(let{start:a,end:r,label:p}of t.blocks){if(r&&r{if(t.end===void 0&&(t.end=t.start),t.start>t.end)throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`);return t.end+1<=e*o?[t,void 0]:[{start:t.start,end:e*o-1,label:t.label},{start:e*o,end:t.end,label:t.label}]},"getNextFittingBlock"),R={parse:n(async t=>{const e=await N("packet",t);x.debug(e),H(e)},"parse")},U=n((t,e,o,s)=>{const i=s.db,a=i.getConfig(),{rowHeight:r,paddingY:p,bitWidth:b,bitsPerRow:c}=a,u=i.getPacket(),l=i.getDiagramTitle(),g=r+p,d=g*(u.length+1)-(l?0:r),k=b*c+2,f=D(e);f.attr("viewbox",`0 0 ${k} ${d}`),T(f,d,k,a.useMaxWidth);for(const[$,y]of u.entries())X(f,y,$,a);f.append("text").text(l).attr("x",k/2).attr("y",d-g/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),X=n((t,e,o,{rowHeight:s,paddingX:i,paddingY:a,bitWidth:r,bitsPerRow:p,showBits:b})=>{const c=t.append("g"),u=o*(s+a)+a;for(const l of e){const g=l.start%p*r+1,d=(l.end-l.start+1)*r-i;if(c.append("rect").attr("x",g).attr("y",u).attr("width",d).attr("height",s).attr("class","packetBlock"),c.append("text").attr("x",g+d/2).attr("y",u+s/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(l.label),!b)continue;const k=l.end===l.start,f=u-2;c.append("text").attr("x",g+(k?d/2:0)).attr("y",f).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(l.start),k||c.append("text").attr("x",g+d).attr("y",f).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(l.end)}},"drawWord"),j={draw:U},q={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},J=n(({packet:t}={})=>{const e=v(q,t);return` +import{p as w}from"./md-chunk-TMUBEWPD-BMgjwLeC.js";import{_ as n,s as B,g as S,n as F,o as z,a as P,b as W,C as v,G as D,e as T,v as E,D as _,E as A,l as x}from"./md-index-1F_vrIf8.js";import{p as N}from"./md-gitGraph-YCYPL57B-Da34XlYK.js";import"./md-_baseUniq-CaouebKG.js";import"./md-_basePickBy-BEC9IKhF.js";import"./md-clone-Cc6Gk5Be.js";var C={packet:[]},m=structuredClone(C),L=A.packet,Y=n(()=>{const t=v({...L,..._().packet});return t.showBits&&(t.paddingY+=10),t},"getConfig"),G=n(()=>m.packet,"getPacket"),I=n(t=>{t.length>0&&m.packet.push(t)},"pushWord"),M=n(()=>{E(),m=structuredClone(C)},"clear"),h={pushWord:I,getPacket:G,getConfig:Y,clear:M,setAccTitle:W,getAccTitle:P,setDiagramTitle:z,getDiagramTitle:F,getAccDescription:S,setAccDescription:B},O=1e4,H=n(t=>{w(t,h);let e=-1,o=[],s=1;const{bitsPerRow:i}=h.getConfig();for(let{start:a,end:r,label:p}of t.blocks){if(r&&r{if(t.end===void 0&&(t.end=t.start),t.start>t.end)throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`);return t.end+1<=e*o?[t,void 0]:[{start:t.start,end:e*o-1,label:t.label},{start:e*o,end:t.end,label:t.label}]},"getNextFittingBlock"),R={parse:n(async t=>{const e=await N("packet",t);x.debug(e),H(e)},"parse")},U=n((t,e,o,s)=>{const i=s.db,a=i.getConfig(),{rowHeight:r,paddingY:p,bitWidth:b,bitsPerRow:c}=a,u=i.getPacket(),l=i.getDiagramTitle(),g=r+p,d=g*(u.length+1)-(l?0:r),k=b*c+2,f=D(e);f.attr("viewbox",`0 0 ${k} ${d}`),T(f,d,k,a.useMaxWidth);for(const[$,y]of u.entries())X(f,y,$,a);f.append("text").text(l).attr("x",k/2).attr("y",d-g/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),X=n((t,e,o,{rowHeight:s,paddingX:i,paddingY:a,bitWidth:r,bitsPerRow:p,showBits:b})=>{const c=t.append("g"),u=o*(s+a)+a;for(const l of e){const g=l.start%p*r+1,d=(l.end-l.start+1)*r-i;if(c.append("rect").attr("x",g).attr("y",u).attr("width",d).attr("height",s).attr("class","packetBlock"),c.append("text").attr("x",g+d/2).attr("y",u+s/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(l.label),!b)continue;const k=l.end===l.start,f=u-2;c.append("text").attr("x",g+(k?d/2:0)).attr("y",f).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(l.start),k||c.append("text").attr("x",g+d).attr("y",f).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(l.end)}},"drawWord"),j={draw:U},q={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},J=n(({packet:t}={})=>{const e=v(q,t);return` .packetByte { font-size: ${e.byteFontSize}; } diff --git a/static/js/md-erDiagram-6RL3IURR-jjK-g8TC.js b/static/js/md-erDiagram-6RL3IURR-CO0oPig6.js similarity index 99% rename from static/js/md-erDiagram-6RL3IURR-jjK-g8TC.js rename to static/js/md-erDiagram-6RL3IURR-CO0oPig6.js index 53f985b2c..682f0be38 100644 --- a/static/js/md-erDiagram-6RL3IURR-jjK-g8TC.js +++ b/static/js/md-erDiagram-6RL3IURR-CO0oPig6.js @@ -1,4 +1,4 @@ -import{_ as u,n as kt,o as xt,g as Rt,s as Ot,a as bt,b as Nt,c as U,l as X,d as at,u as Tt,e as At,v as Mt,K as vt,Q as St,P as wt}from"./md-index-Pj6M4nIk.js";import{G as It}from"./md-graph-Dk7IDouC.js";import{l as Dt}from"./md-layout-InKKBTOk.js";import"./md-_baseUniq-B_2Z1DXv.js";import"./md-_basePickBy-DCcDoZXV.js";const Lt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Bt(t){return typeof t=="string"&&Lt.test(t)}const v=[];for(let t=0;t<256;++t)v.push((t+256).toString(16).slice(1));function Ct(t,e=0){return v[t[e+0]]+v[t[e+1]]+v[t[e+2]]+v[t[e+3]]+"-"+v[t[e+4]]+v[t[e+5]]+"-"+v[t[e+6]]+v[t[e+7]]+"-"+v[t[e+8]]+v[t[e+9]]+"-"+v[t[e+10]]+v[t[e+11]]+v[t[e+12]]+v[t[e+13]]+v[t[e+14]]+v[t[e+15]]}function Pt(t){if(!Bt(t))throw TypeError("Invalid UUID");let e;const r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=e&255,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=e&255,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=e&255,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=e&255,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=e&255,r}function Yt(t){t=unescape(encodeURIComponent(t));const e=[];for(let r=0;r>>32-e}function Ht(t){const e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){const y=unescape(encodeURIComponent(t));t=[];for(let o=0;o>>0;x=k,k=m,m=it(g,30)>>>0,g=h,h=b}r[0]=r[0]+h>>>0,r[1]=r[1]+g>>>0,r[2]=r[2]+m>>>0,r[3]=r[3]+k>>>0,r[4]=r[4]+x>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}const zt=Wt("v5",80,Ht);var nt=function(){var t=u(function(w,i,n,l){for(n=n||{},l=w.length;l--;n[w[l]]=i);return n},"o"),e=[6,8,10,20,22,24,26,27,28],r=[1,10],f=[1,11],c=[1,12],_=[1,13],y=[1,14],o=[1,15],h=[1,21],g=[1,22],m=[1,23],k=[1,24],x=[1,25],p=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],O=[1,34],b=[27,28,46,47],Y=[41,42,43,44,45],Z=[17,34],F=[1,54],M=[1,53],S=[17,34,36,38],N={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:u(function(i,n,l,d,E,a,V){var s=a.length-1;switch(E){case 1:break;case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:d.addEntity(a[s-4]),d.addEntity(a[s-2]),d.addRelationship(a[s-4],a[s],a[s-2],a[s-3]);break;case 9:d.addEntity(a[s-3]),d.addAttributes(a[s-3],a[s-1]);break;case 10:d.addEntity(a[s-2]);break;case 11:d.addEntity(a[s]);break;case 12:d.addEntity(a[s-6],a[s-4]),d.addAttributes(a[s-6],a[s-1]);break;case 13:d.addEntity(a[s-5],a[s-3]);break;case 14:d.addEntity(a[s-3],a[s-1]);break;case 15:case 16:this.$=a[s].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=a[s].trim(),d.setAccDescription(this.$);break;case 19:case 43:this.$=a[s];break;case 20:case 41:case 42:this.$=a[s].replace(/"/g,"");break;case 21:case 29:this.$=[a[s]];break;case 22:a[s].push(a[s-1]),this.$=a[s];break;case 23:this.$={attributeType:a[s-1],attributeName:a[s]};break;case 24:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeKeyTypeList:a[s]};break;case 25:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeComment:a[s]};break;case 26:this.$={attributeType:a[s-3],attributeName:a[s-2],attributeKeyTypeList:a[s-1],attributeComment:a[s]};break;case 27:case 28:case 31:this.$=a[s];break;case 30:a[s-2].push(a[s]),this.$=a[s-2];break;case 32:this.$=a[s].replace(/"/g,"");break;case 33:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 34:this.$=d.Cardinality.ZERO_OR_ONE;break;case 35:this.$=d.Cardinality.ZERO_OR_MORE;break;case 36:this.$=d.Cardinality.ONE_OR_MORE;break;case 37:this.$=d.Cardinality.ONLY_ONE;break;case 38:this.$=d.Cardinality.MD_PARENT;break;case 39:this.$=d.Identification.NON_IDENTIFYING;break;case 40:this.$=d.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,20:r,22:f,24:c,26:_,27:y,28:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:16,11:9,20:r,22:f,24:c,26:_,27:y,28:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:h,42:g,43:m,44:k,45:x}),{21:[1,26]},{23:[1,27]},{25:[1,28]},t(e,[2,18]),t(p,[2,19]),t(p,[2,20]),t(e,[2,4]),{11:29,27:y,28:o},{16:30,17:[1,31],29:32,30:33,34:O},{11:35,27:y,28:o},{40:36,46:[1,37],47:[1,38]},t(b,[2,34]),t(b,[2,35]),t(b,[2,36]),t(b,[2,37]),t(b,[2,38]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),{13:[1,39]},{17:[1,40]},t(e,[2,10]),{16:41,17:[2,21],29:32,30:33,34:O},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:h,42:g,43:m,44:k,45:x},t(Y,[2,39]),t(Y,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},t(e,[2,9]),{17:[2,22]},t(Z,[2,23],{32:50,33:51,35:52,37:F,38:M}),t([17,34,37,38],[2,28]),t(e,[2,14],{15:[1,55]}),t([27,28],[2,33]),t(e,[2,8]),t(e,[2,41]),t(e,[2,42]),t(e,[2,43]),t(Z,[2,24],{33:56,36:[1,57],38:M}),t(Z,[2,25]),t(S,[2,29]),t(Z,[2,32]),t(S,[2,31]),{16:58,17:[1,59],29:32,30:33,34:O},t(Z,[2,26]),{35:60,37:F},{17:[1,61]},t(e,[2,13]),t(S,[2,30]),t(e,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:u(function(i,n){if(n.recoverable)this.trace(i);else{var l=new Error(i);throw l.hash=n,l}},"parseError"),parse:u(function(i){var n=this,l=[0],d=[],E=[null],a=[],V=this.table,s="",j=0,lt=0,_t=2,ct=1,Et=a.slice.call(arguments,1),A=Object.create(this.lexer),H={yy:{}};for(var $ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$)&&(H.yy[$]=this.yy[$]);A.setInput(i,H.yy),H.yy.lexer=A,H.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var tt=A.yylloc;a.push(tt);var gt=A.options&&A.options.ranges;typeof H.yy.parseError=="function"?this.parseError=H.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function mt(D){l.length=l.length-2*D,E.length=E.length-D,a.length=a.length-D}u(mt,"popStack");function ht(){var D;return D=d.pop()||A.lex()||ct,typeof D!="number"&&(D instanceof Array&&(d=D,D=d.pop()),D=n.symbols_[D]||D),D}u(ht,"lex");for(var I,z,B,et,G={},q,W,dt,J;;){if(z=l[l.length-1],this.defaultActions[z]?B=this.defaultActions[z]:((I===null||typeof I>"u")&&(I=ht()),B=V[z]&&V[z][I]),typeof B>"u"||!B.length||!B[0]){var rt="";J=[];for(q in V[z])this.terminals_[q]&&q>_t&&J.push("'"+this.terminals_[q]+"'");A.showPosition?rt="Parse error on line "+(j+1)+`: +import{_ as u,n as kt,o as xt,g as Rt,s as Ot,a as bt,b as Nt,c as U,l as X,d as at,u as Tt,e as At,v as Mt,K as vt,Q as St,P as wt}from"./md-index-1F_vrIf8.js";import{G as It}from"./md-graph-tF8klDvC.js";import{l as Dt}from"./md-layout-FhzIEdmV.js";import"./md-_baseUniq-CaouebKG.js";import"./md-_basePickBy-BEC9IKhF.js";const Lt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Bt(t){return typeof t=="string"&&Lt.test(t)}const v=[];for(let t=0;t<256;++t)v.push((t+256).toString(16).slice(1));function Ct(t,e=0){return v[t[e+0]]+v[t[e+1]]+v[t[e+2]]+v[t[e+3]]+"-"+v[t[e+4]]+v[t[e+5]]+"-"+v[t[e+6]]+v[t[e+7]]+"-"+v[t[e+8]]+v[t[e+9]]+"-"+v[t[e+10]]+v[t[e+11]]+v[t[e+12]]+v[t[e+13]]+v[t[e+14]]+v[t[e+15]]}function Pt(t){if(!Bt(t))throw TypeError("Invalid UUID");let e;const r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=e&255,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=e&255,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=e&255,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=e&255,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=e&255,r}function Yt(t){t=unescape(encodeURIComponent(t));const e=[];for(let r=0;r>>32-e}function Ht(t){const e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){const y=unescape(encodeURIComponent(t));t=[];for(let o=0;o>>0;x=k,k=m,m=it(g,30)>>>0,g=h,h=b}r[0]=r[0]+h>>>0,r[1]=r[1]+g>>>0,r[2]=r[2]+m>>>0,r[3]=r[3]+k>>>0,r[4]=r[4]+x>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}const zt=Wt("v5",80,Ht);var nt=function(){var t=u(function(w,i,n,l){for(n=n||{},l=w.length;l--;n[w[l]]=i);return n},"o"),e=[6,8,10,20,22,24,26,27,28],r=[1,10],f=[1,11],c=[1,12],_=[1,13],y=[1,14],o=[1,15],h=[1,21],g=[1,22],m=[1,23],k=[1,24],x=[1,25],p=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],O=[1,34],b=[27,28,46,47],Y=[41,42,43,44,45],Z=[17,34],F=[1,54],M=[1,53],S=[17,34,36,38],N={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:u(function(i,n,l,d,E,a,V){var s=a.length-1;switch(E){case 1:break;case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:d.addEntity(a[s-4]),d.addEntity(a[s-2]),d.addRelationship(a[s-4],a[s],a[s-2],a[s-3]);break;case 9:d.addEntity(a[s-3]),d.addAttributes(a[s-3],a[s-1]);break;case 10:d.addEntity(a[s-2]);break;case 11:d.addEntity(a[s]);break;case 12:d.addEntity(a[s-6],a[s-4]),d.addAttributes(a[s-6],a[s-1]);break;case 13:d.addEntity(a[s-5],a[s-3]);break;case 14:d.addEntity(a[s-3],a[s-1]);break;case 15:case 16:this.$=a[s].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=a[s].trim(),d.setAccDescription(this.$);break;case 19:case 43:this.$=a[s];break;case 20:case 41:case 42:this.$=a[s].replace(/"/g,"");break;case 21:case 29:this.$=[a[s]];break;case 22:a[s].push(a[s-1]),this.$=a[s];break;case 23:this.$={attributeType:a[s-1],attributeName:a[s]};break;case 24:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeKeyTypeList:a[s]};break;case 25:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeComment:a[s]};break;case 26:this.$={attributeType:a[s-3],attributeName:a[s-2],attributeKeyTypeList:a[s-1],attributeComment:a[s]};break;case 27:case 28:case 31:this.$=a[s];break;case 30:a[s-2].push(a[s]),this.$=a[s-2];break;case 32:this.$=a[s].replace(/"/g,"");break;case 33:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 34:this.$=d.Cardinality.ZERO_OR_ONE;break;case 35:this.$=d.Cardinality.ZERO_OR_MORE;break;case 36:this.$=d.Cardinality.ONE_OR_MORE;break;case 37:this.$=d.Cardinality.ONLY_ONE;break;case 38:this.$=d.Cardinality.MD_PARENT;break;case 39:this.$=d.Identification.NON_IDENTIFYING;break;case 40:this.$=d.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,20:r,22:f,24:c,26:_,27:y,28:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:16,11:9,20:r,22:f,24:c,26:_,27:y,28:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:h,42:g,43:m,44:k,45:x}),{21:[1,26]},{23:[1,27]},{25:[1,28]},t(e,[2,18]),t(p,[2,19]),t(p,[2,20]),t(e,[2,4]),{11:29,27:y,28:o},{16:30,17:[1,31],29:32,30:33,34:O},{11:35,27:y,28:o},{40:36,46:[1,37],47:[1,38]},t(b,[2,34]),t(b,[2,35]),t(b,[2,36]),t(b,[2,37]),t(b,[2,38]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),{13:[1,39]},{17:[1,40]},t(e,[2,10]),{16:41,17:[2,21],29:32,30:33,34:O},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:h,42:g,43:m,44:k,45:x},t(Y,[2,39]),t(Y,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},t(e,[2,9]),{17:[2,22]},t(Z,[2,23],{32:50,33:51,35:52,37:F,38:M}),t([17,34,37,38],[2,28]),t(e,[2,14],{15:[1,55]}),t([27,28],[2,33]),t(e,[2,8]),t(e,[2,41]),t(e,[2,42]),t(e,[2,43]),t(Z,[2,24],{33:56,36:[1,57],38:M}),t(Z,[2,25]),t(S,[2,29]),t(Z,[2,32]),t(S,[2,31]),{16:58,17:[1,59],29:32,30:33,34:O},t(Z,[2,26]),{35:60,37:F},{17:[1,61]},t(e,[2,13]),t(S,[2,30]),t(e,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:u(function(i,n){if(n.recoverable)this.trace(i);else{var l=new Error(i);throw l.hash=n,l}},"parseError"),parse:u(function(i){var n=this,l=[0],d=[],E=[null],a=[],V=this.table,s="",j=0,lt=0,_t=2,ct=1,Et=a.slice.call(arguments,1),A=Object.create(this.lexer),H={yy:{}};for(var $ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$)&&(H.yy[$]=this.yy[$]);A.setInput(i,H.yy),H.yy.lexer=A,H.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var tt=A.yylloc;a.push(tt);var gt=A.options&&A.options.ranges;typeof H.yy.parseError=="function"?this.parseError=H.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function mt(D){l.length=l.length-2*D,E.length=E.length-D,a.length=a.length-D}u(mt,"popStack");function ht(){var D;return D=d.pop()||A.lex()||ct,typeof D!="number"&&(D instanceof Array&&(d=D,D=d.pop()),D=n.symbols_[D]||D),D}u(ht,"lex");for(var I,z,B,et,G={},q,W,dt,J;;){if(z=l[l.length-1],this.defaultActions[z]?B=this.defaultActions[z]:((I===null||typeof I>"u")&&(I=ht()),B=V[z]&&V[z][I]),typeof B>"u"||!B.length||!B[0]){var rt="";J=[];for(q in V[z])this.terminals_[q]&&q>_t&&J.push("'"+this.terminals_[q]+"'");A.showPosition?rt="Parse error on line "+(j+1)+`: `+A.showPosition()+` Expecting `+J.join(", ")+", got '"+(this.terminals_[I]||I)+"'":rt="Parse error on line "+(j+1)+": Unexpected "+(I==ct?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(rt,{text:A.match,token:this.terminals_[I]||I,line:A.yylineno,loc:tt,expected:J})}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+I);switch(B[0]){case 1:l.push(I),E.push(A.yytext),a.push(A.yylloc),l.push(B[1]),I=null,lt=A.yyleng,s=A.yytext,j=A.yylineno,tt=A.yylloc;break;case 2:if(W=this.productions_[B[1]][1],G.$=E[E.length-W],G._$={first_line:a[a.length-(W||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(W||1)].first_column,last_column:a[a.length-1].last_column},gt&&(G._$.range=[a[a.length-(W||1)].range[0],a[a.length-1].range[1]]),et=this.performAction.apply(G,[s,lt,j,H.yy,B[1],E,a].concat(Et)),typeof et<"u")return et;W&&(l=l.slice(0,-1*W*2),E=E.slice(0,-1*W),a=a.slice(0,-1*W)),l.push(this.productions_[B[1]][0]),E.push(G.$),a.push(G._$),dt=V[l[l.length-2]][l[l.length-1]],l.push(dt);break;case 3:return!0}}return!0},"parse")},T=function(){var w={EOF:1,parseError:u(function(n,l){if(this.yy.parser)this.yy.parser.parseError(n,l);else throw new Error(n)},"parseError"),setInput:u(function(i,n){return this.yy=n||this.yy||{},this._input=i,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:u(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:u(function(i){var n=i.length,l=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var d=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),l.length-1&&(this.yylineno-=l.length-1);var E=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:l?(l.length===d.length?this.yylloc.first_column:0)+d[d.length-l.length].length-l[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:u(function(){return this._more=!0,this},"more"),reject:u(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). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:u(function(i){this.unput(this.match.slice(i))},"less"),pastInput:u(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+` diff --git a/static/js/md-flowDiagram-7ASYPVHJ-DVDFWXaF.js b/static/js/md-flowDiagram-7ASYPVHJ-DY8fyx-9.js similarity index 99% rename from static/js/md-flowDiagram-7ASYPVHJ-DVDFWXaF.js rename to static/js/md-flowDiagram-7ASYPVHJ-DY8fyx-9.js index 1987cb604..882dc27e0 100644 --- a/static/js/md-flowDiagram-7ASYPVHJ-DVDFWXaF.js +++ b/static/js/md-flowDiagram-7ASYPVHJ-DY8fyx-9.js @@ -1,4 +1,4 @@ -import{g as gt,s as At}from"./md-chunk-5HRBRIJM-aORRBbXN.js";import{_ as l,n as bt,o as kt,s as mt,g as Et,a as St,b as Dt,p as Ze,l as e1,c as U1,d as C1,q as xt,r as Ct,u as ge,t as Tt,v as yt,x as Ft,J as vt,y as _t,z as Bt,A as Vt,k as Lt}from"./md-index-Pj6M4nIk.js";import{c as wt}from"./md-channel-BZPvYpZL.js";var It="flowchart-",$e=0,M1=U1(),b1=new Map,Y=[],Y1=new Map,p1=[],Ae=new Map,be=new Map,ee=0,pe=!0,J,se,re=[],ie=l(e=>Lt.sanitizeText(e,M1),"sanitizeText"),ae=l(function(e){for(const r of b1.values())if(r.id===e)return r.domId;return e},"lookUpDomId"),Rt=l(function(e,r,i,a,u,d,g={},D){var v,z;if(!e||e.trim().length===0)return;let c,o=b1.get(e);if(o===void 0&&(o={id:e,labelType:"text",domId:It+e+"-"+$e,styles:[],classes:[]},b1.set(e,o)),$e++,r!==void 0?(M1=U1(),c=ie(r.text.trim()),o.labelType=r.type,c.startsWith('"')&&c.endsWith('"')&&(c=c.substring(1,c.length-1)),o.text=c):o.text===void 0&&(o.text=e),i!==void 0&&(o.type=i),a!=null&&a.forEach(function(_){o.styles.push(_)}),u!=null&&u.forEach(function(_){o.classes.push(_)}),d!==void 0&&(o.dir=d),o.props===void 0?o.props=g:g!==void 0&&Object.assign(o.props,g),D!==void 0){let _;D.includes(` +import{g as gt,s as At}from"./md-chunk-5HRBRIJM-DZZLUrKF.js";import{_ as l,n as bt,o as kt,s as mt,g as Et,a as St,b as Dt,p as Ze,l as e1,c as U1,d as C1,q as xt,r as Ct,u as ge,t as Tt,v as yt,x as Ft,J as vt,y as _t,z as Bt,A as Vt,k as Lt}from"./md-index-1F_vrIf8.js";import{c as wt}from"./md-channel-CvuT1-A9.js";var It="flowchart-",$e=0,M1=U1(),b1=new Map,Y=[],Y1=new Map,p1=[],Ae=new Map,be=new Map,ee=0,pe=!0,J,se,re=[],ie=l(e=>Lt.sanitizeText(e,M1),"sanitizeText"),ae=l(function(e){for(const r of b1.values())if(r.id===e)return r.domId;return e},"lookUpDomId"),Rt=l(function(e,r,i,a,u,d,g={},D){var v,z;if(!e||e.trim().length===0)return;let c,o=b1.get(e);if(o===void 0&&(o={id:e,labelType:"text",domId:It+e+"-"+$e,styles:[],classes:[]},b1.set(e,o)),$e++,r!==void 0?(M1=U1(),c=ie(r.text.trim()),o.labelType=r.type,c.startsWith('"')&&c.endsWith('"')&&(c=c.substring(1,c.length-1)),o.text=c):o.text===void 0&&(o.text=e),i!==void 0&&(o.type=i),a!=null&&a.forEach(function(_){o.styles.push(_)}),u!=null&&u.forEach(function(_){o.classes.push(_)}),d!==void 0&&(o.dir=d),o.props===void 0?o.props=g:g!==void 0&&Object.assign(o.props,g),D!==void 0){let _;D.includes(` `)?_=D+` `:_=`{ `+D+` diff --git a/static/js/md-ganttDiagram-NTVNEXSI-DLDnheDH.js b/static/js/md-ganttDiagram-NTVNEXSI-pWDNUSzQ.js similarity index 99% rename from static/js/md-ganttDiagram-NTVNEXSI-DLDnheDH.js rename to static/js/md-ganttDiagram-NTVNEXSI-pWDNUSzQ.js index 8450bd434..cac838541 100644 --- a/static/js/md-ganttDiagram-NTVNEXSI-DLDnheDH.js +++ b/static/js/md-ganttDiagram-NTVNEXSI-pWDNUSzQ.js @@ -1,4 +1,4 @@ -import{aV as Je,aW as Fn,aX as $e,aY as Ke,aZ as tn,a_ as re,a$ as En,aH as Te,aI as be,_ as h,g as Ln,s as An,n as In,o as Wn,a as On,b as Hn,c as _t,d as Zt,e as Nn,b0 as at,l as Qt,k as Vn,j as zn,v as Pn,u as Rn}from"./md-index-Pj6M4nIk.js";import{b as Bn,t as Ie,c as Zn,a as Xn,l as qn}from"./md-linear-D6Y5aq77.js";import{i as Gn}from"./md-init-Gi6I4Gst.js";function jn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n=r)&&(n=r);else{let r=-1;for(let a of t)(a=e(a,++r,t))!=null&&(n=a)&&(n=a)}return n}function Qn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let a of t)(a=e(a,++r,t))!=null&&(n>a||n===void 0&&a>=a)&&(n=a)}return n}function Jn(t){return t}var qt=1,ae=2,me=3,Xt=4,We=1e-6;function $n(t){return"translate("+t+",0)"}function Kn(t){return"translate(0,"+t+")"}function tr(t){return e=>+t(e)}function er(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function nr(){return!this.__axis}function en(t,e){var n=[],r=null,a=null,i=6,s=6,k=3,M=typeof window<"u"&&window.devicePixelRatio>1?0:.5,T=t===qt||t===Xt?-1:1,g=t===Xt||t===ae?"x":"y",F=t===qt||t===me?$n:Kn;function D(b){var q=r??(e.ticks?e.ticks.apply(e,n):e.domain()),O=a??(e.tickFormat?e.tickFormat.apply(e,n):Jn),C=Math.max(i,0)+k,I=e.range(),V=+I[0]+M,W=+I[I.length-1]+M,Z=(e.bandwidth?er:tr)(e.copy(),M),Q=b.selection?b.selection():b,w=Q.selectAll(".domain").data([null]),H=Q.selectAll(".tick").data(q,e).order(),x=H.exit(),Y=H.enter().append("g").attr("class","tick"),_=H.select("line"),S=H.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),H=H.merge(Y),_=_.merge(Y.append("line").attr("stroke","currentColor").attr(g+"2",T*i)),S=S.merge(Y.append("text").attr("fill","currentColor").attr(g,T*C).attr("dy",t===qt?"0em":t===me?"0.71em":"0.32em")),b!==Q&&(w=w.transition(b),H=H.transition(b),_=_.transition(b),S=S.transition(b),x=x.transition(b).attr("opacity",We).attr("transform",function(p){return isFinite(p=Z(p))?F(p+M):this.getAttribute("transform")}),Y.attr("opacity",We).attr("transform",function(p){var U=this.parentNode.__axis;return F((U&&isFinite(U=U(p))?U:Z(p))+M)})),x.remove(),w.attr("d",t===Xt||t===ae?s?"M"+T*s+","+V+"H"+M+"V"+W+"H"+T*s:"M"+M+","+V+"V"+W:s?"M"+V+","+T*s+"V"+M+"H"+W+"V"+T*s:"M"+V+","+M+"H"+W),H.attr("opacity",1).attr("transform",function(p){return F(Z(p)+M)}),_.attr(g+"2",T*i),S.attr(g,T*C).text(O),Q.filter(nr).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===ae?"start":t===Xt?"end":"middle"),Q.each(function(){this.__axis=Z})}return D.scale=function(b){return arguments.length?(e=b,D):e},D.ticks=function(){return n=Array.from(arguments),D},D.tickArguments=function(b){return arguments.length?(n=b==null?[]:Array.from(b),D):n.slice()},D.tickValues=function(b){return arguments.length?(r=b==null?null:Array.from(b),D):r&&r.slice()},D.tickFormat=function(b){return arguments.length?(a=b,D):a},D.tickSize=function(b){return arguments.length?(i=s=+b,D):i},D.tickSizeInner=function(b){return arguments.length?(i=+b,D):i},D.tickSizeOuter=function(b){return arguments.length?(s=+b,D):s},D.tickPadding=function(b){return arguments.length?(k=+b,D):k},D.offset=function(b){return arguments.length?(M=+b,D):M},D}function rr(t){return en(qt,t)}function ar(t){return en(me,t)}const ir=Math.PI/180,sr=180/Math.PI,Jt=18,nn=.96422,rn=1,an=.82521,sn=4/29,St=6/29,on=3*St*St,or=St*St*St;function cn(t){if(t instanceof ft)return new ft(t.l,t.a,t.b,t.opacity);if(t instanceof dt)return ln(t);t instanceof Je||(t=Fn(t));var e=ce(t.r),n=ce(t.g),r=ce(t.b),a=ie((.2225045*e+.7168786*n+.0606169*r)/rn),i,s;return e===n&&n===r?i=s=a:(i=ie((.4360747*e+.3850649*n+.1430804*r)/nn),s=ie((.0139322*e+.0971045*n+.7141733*r)/an)),new ft(116*a-16,500*(i-a),200*(a-s),t.opacity)}function cr(t,e,n,r){return arguments.length===1?cn(t):new ft(t,e,n,r??1)}function ft(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}$e(ft,cr,Ke(tn,{brighter(t){return new ft(this.l+Jt*(t??1),this.a,this.b,this.opacity)},darker(t){return new ft(this.l-Jt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=nn*se(e),t=rn*se(t),n=an*se(n),new Je(oe(3.1338561*e-1.6168667*t-.4906146*n),oe(-.9787684*e+1.9161415*t+.033454*n),oe(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function ie(t){return t>or?Math.pow(t,1/3):t/on+sn}function se(t){return t>St?t*t*t:on*(t-sn)}function oe(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ce(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function lr(t){if(t instanceof dt)return new dt(t.h,t.c,t.l,t.opacity);if(t instanceof ft||(t=cn(t)),t.a===0&&t.b===0)return new dt(NaN,0(t(i=new Date(+i)),i),a.ceil=i=>(t(i=new Date(i-1)),e(i,1),t(i),i),a.round=i=>{const s=a(i),k=a.ceil(i);return i-s(e(i=new Date(+i),s==null?1:Math.floor(s)),i),a.range=(i,s,k)=>{const M=[];if(i=a.ceil(i),k=k==null?1:Math.floor(k),!(i0))return M;let T;do M.push(T=new Date(+i)),e(i,k),t(i);while(Tet(s=>{if(s>=s)for(;t(s),!i(s);)s.setTime(s-1)},(s,k)=>{if(s>=s)if(k<0)for(;++k<=0;)for(;e(s,-1),!i(s););else for(;--k>=0;)for(;e(s,1),!i(s););}),n&&(a.count=(i,s)=>(le.setTime(+i),ue.setTime(+s),t(le),t(ue),Math.floor(n(le,ue))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?s=>r(s)%i===0:s=>a.count(0,s)%i===0):a)),a}const Ut=et(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Ut.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?et(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Ut);Ut.range;const mt=1e3,ct=mt*60,gt=ct*60,yt=gt*24,xe=yt*7,Oe=yt*30,fe=yt*365,vt=et(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*mt)},(t,e)=>(e-t)/mt,t=>t.getUTCSeconds());vt.range;const Wt=et(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt)},(t,e)=>{t.setTime(+t+e*ct)},(t,e)=>(e-t)/ct,t=>t.getMinutes());Wt.range;const dr=et(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*ct)},(t,e)=>(e-t)/ct,t=>t.getUTCMinutes());dr.range;const Ot=et(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt-t.getMinutes()*ct)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getHours());Ot.range;const mr=et(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getUTCHours());mr.range;const Tt=et(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ct)/yt,t=>t.getDate()-1);Tt.range;const we=et(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>t.getUTCDate()-1);we.range;const gr=et(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>Math.floor(t/yt));gr.range;function wt(t){return et(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*ct)/xe)}const Vt=wt(0),Ht=wt(1),un=wt(2),fn=wt(3),bt=wt(4),hn=wt(5),dn=wt(6);Vt.range;Ht.range;un.range;fn.range;bt.range;hn.range;dn.range;function Dt(t){return et(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/xe)}const mn=Dt(0),$t=Dt(1),yr=Dt(2),kr=Dt(3),Ft=Dt(4),pr=Dt(5),vr=Dt(6);mn.range;$t.range;yr.range;kr.range;Ft.range;pr.range;vr.range;const Nt=et(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Nt.range;const Tr=et(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());Tr.range;const kt=et(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());kt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:et(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});kt.range;const xt=et(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());xt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:et(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});xt.range;function br(t,e,n,r,a,i){const s=[[vt,1,mt],[vt,5,5*mt],[vt,15,15*mt],[vt,30,30*mt],[i,1,ct],[i,5,5*ct],[i,15,15*ct],[i,30,30*ct],[a,1,gt],[a,3,3*gt],[a,6,6*gt],[a,12,12*gt],[r,1,yt],[r,2,2*yt],[n,1,xe],[e,1,Oe],[e,3,3*Oe],[t,1,fe]];function k(T,g,F){const D=gC).right(s,D);if(b===s.length)return t.every(Ie(T/fe,g/fe,F));if(b===0)return Ut.every(Math.max(Ie(T,g,F),1));const[q,O]=s[D/s[b-1][2]53)return null;"w"in u||(u.w=1),"Z"in u?(L=de(Lt(u.y,0,1)),j=L.getUTCDay(),L=j>4||j===0?$t.ceil(L):$t(L),L=we.offset(L,(u.V-1)*7),u.y=L.getUTCFullYear(),u.m=L.getUTCMonth(),u.d=L.getUTCDate()+(u.w+6)%7):(L=he(Lt(u.y,0,1)),j=L.getDay(),L=j>4||j===0?Ht.ceil(L):Ht(L),L=Tt.offset(L,(u.V-1)*7),u.y=L.getFullYear(),u.m=L.getMonth(),u.d=L.getDate()+(u.w+6)%7)}else("W"in u||"U"in u)&&("w"in u||(u.w="u"in u?u.u%7:"W"in u?1:0),j="Z"in u?de(Lt(u.y,0,1)).getUTCDay():he(Lt(u.y,0,1)).getDay(),u.m=0,u.d="W"in u?(u.w+6)%7+u.W*7-(j+5)%7:u.w+u.U*7-(j+6)%7);return"Z"in u?(u.H+=u.Z/100|0,u.M+=u.Z%100,de(u)):he(u)}}function x(v,A,N,u){for(var $=0,L=A.length,j=N.length,X,rt;$=j)return-1;if(X=A.charCodeAt($++),X===37){if(X=A.charAt($++),rt=Q[X in He?A.charAt($++):X],!rt||(u=rt(v,N,u))<0)return-1}else if(X!=N.charCodeAt(u++))return-1}return u}function Y(v,A,N){var u=T.exec(A.slice(N));return u?(v.p=g.get(u[0].toLowerCase()),N+u[0].length):-1}function _(v,A,N){var u=b.exec(A.slice(N));return u?(v.w=q.get(u[0].toLowerCase()),N+u[0].length):-1}function S(v,A,N){var u=F.exec(A.slice(N));return u?(v.w=D.get(u[0].toLowerCase()),N+u[0].length):-1}function p(v,A,N){var u=I.exec(A.slice(N));return u?(v.m=V.get(u[0].toLowerCase()),N+u[0].length):-1}function U(v,A,N){var u=O.exec(A.slice(N));return u?(v.m=C.get(u[0].toLowerCase()),N+u[0].length):-1}function l(v,A,N){return x(v,e,A,N)}function f(v,A,N){return x(v,n,A,N)}function y(v,A,N){return x(v,r,A,N)}function m(v){return s[v.getDay()]}function E(v){return i[v.getDay()]}function c(v){return M[v.getMonth()]}function d(v){return k[v.getMonth()]}function o(v){return a[+(v.getHours()>=12)]}function P(v){return 1+~~(v.getMonth()/3)}function z(v){return s[v.getUTCDay()]}function R(v){return i[v.getUTCDay()]}function K(v){return M[v.getUTCMonth()]}function G(v){return k[v.getUTCMonth()]}function J(v){return a[+(v.getUTCHours()>=12)]}function it(v){return 1+~~(v.getUTCMonth()/3)}return{format:function(v){var A=w(v+="",W);return A.toString=function(){return v},A},parse:function(v){var A=H(v+="",!1);return A.toString=function(){return v},A},utcFormat:function(v){var A=w(v+="",Z);return A.toString=function(){return v},A},utcParse:function(v){var A=H(v+="",!0);return A.toString=function(){return v},A}}}var He={"-":"",_:" ",0:"0"},nt=/^\s*\d+/,Cr=/^%/,Mr=/[\\^$*+?|[\]().{}]/g;function B(t,e,n){var r=t<0?"-":"",a=(r?-t:t)+"",i=a.length;return r+(i[e.toLowerCase(),n]))}function Sr(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Yr(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Ur(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Fr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Er(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Ne(t,e,n){var r=nt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ve(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Lr(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Ar(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Ir(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function ze(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Wr(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Pe(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Or(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Hr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Nr(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Vr(t,e,n){var r=nt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function zr(t,e,n){var r=Cr.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Pr(t,e,n){var r=nt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Rr(t,e,n){var r=nt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Re(t,e){return B(t.getDate(),e,2)}function Br(t,e){return B(t.getHours(),e,2)}function Zr(t,e){return B(t.getHours()%12||12,e,2)}function Xr(t,e){return B(1+Tt.count(kt(t),t),e,3)}function gn(t,e){return B(t.getMilliseconds(),e,3)}function qr(t,e){return gn(t,e)+"000"}function Gr(t,e){return B(t.getMonth()+1,e,2)}function jr(t,e){return B(t.getMinutes(),e,2)}function Qr(t,e){return B(t.getSeconds(),e,2)}function Jr(t){var e=t.getDay();return e===0?7:e}function $r(t,e){return B(Vt.count(kt(t)-1,t),e,2)}function yn(t){var e=t.getDay();return e>=4||e===0?bt(t):bt.ceil(t)}function Kr(t,e){return t=yn(t),B(bt.count(kt(t),t)+(kt(t).getDay()===4),e,2)}function ta(t){return t.getDay()}function ea(t,e){return B(Ht.count(kt(t)-1,t),e,2)}function na(t,e){return B(t.getFullYear()%100,e,2)}function ra(t,e){return t=yn(t),B(t.getFullYear()%100,e,2)}function aa(t,e){return B(t.getFullYear()%1e4,e,4)}function ia(t,e){var n=t.getDay();return t=n>=4||n===0?bt(t):bt.ceil(t),B(t.getFullYear()%1e4,e,4)}function sa(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+B(e/60|0,"0",2)+B(e%60,"0",2)}function Be(t,e){return B(t.getUTCDate(),e,2)}function oa(t,e){return B(t.getUTCHours(),e,2)}function ca(t,e){return B(t.getUTCHours()%12||12,e,2)}function la(t,e){return B(1+we.count(xt(t),t),e,3)}function kn(t,e){return B(t.getUTCMilliseconds(),e,3)}function ua(t,e){return kn(t,e)+"000"}function fa(t,e){return B(t.getUTCMonth()+1,e,2)}function ha(t,e){return B(t.getUTCMinutes(),e,2)}function da(t,e){return B(t.getUTCSeconds(),e,2)}function ma(t){var e=t.getUTCDay();return e===0?7:e}function ga(t,e){return B(mn.count(xt(t)-1,t),e,2)}function pn(t){var e=t.getUTCDay();return e>=4||e===0?Ft(t):Ft.ceil(t)}function ya(t,e){return t=pn(t),B(Ft.count(xt(t),t)+(xt(t).getUTCDay()===4),e,2)}function ka(t){return t.getUTCDay()}function pa(t,e){return B($t.count(xt(t)-1,t),e,2)}function va(t,e){return B(t.getUTCFullYear()%100,e,2)}function Ta(t,e){return t=pn(t),B(t.getUTCFullYear()%100,e,2)}function ba(t,e){return B(t.getUTCFullYear()%1e4,e,4)}function xa(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Ft(t):Ft.ceil(t),B(t.getUTCFullYear()%1e4,e,4)}function wa(){return"+0000"}function Ze(){return"%"}function Xe(t){return+t}function qe(t){return Math.floor(+t/1e3)}var Mt,Kt;Da({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Da(t){return Mt=Dr(t),Kt=Mt.format,Mt.parse,Mt.utcFormat,Mt.utcParse,Mt}function Ca(t){return new Date(t)}function Ma(t){return t instanceof Date?+t:+new Date(+t)}function vn(t,e,n,r,a,i,s,k,M,T){var g=Zn(),F=g.invert,D=g.domain,b=T(".%L"),q=T(":%S"),O=T("%I:%M"),C=T("%I %p"),I=T("%a %d"),V=T("%b %d"),W=T("%B"),Z=T("%Y");function Q(w){return(M(w)4&&(b+=7),D.add(b,n));return q.diff(O,"week")+1},k.isoWeekday=function(T){return this.$utils().u(T)?this.day()||7:this.day(this.day()%7?T:T-7)};var M=k.startOf;k.startOf=function(T,g){var F=this.$utils(),D=!!F.u(g)||g;return F.p(T)==="isoweek"?D?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):M.bind(this)(T,g)}}})})(Tn);var Sa=Tn.exports;const Ya=be(Sa);var bn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Te,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,i=/\d\d/,s=/\d\d?/,k=/\d*[^-_:/,()\s\d]+/,M={},T=function(C){return(C=+C)+(C>68?1900:2e3)},g=function(C){return function(I){this[C]=+I}},F=[/[+-]\d\d:?(\d\d)?|Z/,function(C){(this.zone||(this.zone={})).offset=function(I){if(!I||I==="Z")return 0;var V=I.match(/([+-]|\d\d)/g),W=60*V[1]+(+V[2]||0);return W===0?0:V[0]==="+"?-W:W}(C)}],D=function(C){var I=M[C];return I&&(I.indexOf?I:I.s.concat(I.f))},b=function(C,I){var V,W=M.meridiem;if(W){for(var Z=1;Z<=24;Z+=1)if(C.indexOf(W(Z,0,I))>-1){V=Z>12;break}}else V=C===(I?"pm":"PM");return V},q={A:[k,function(C){this.afternoon=b(C,!1)}],a:[k,function(C){this.afternoon=b(C,!0)}],Q:[a,function(C){this.month=3*(C-1)+1}],S:[a,function(C){this.milliseconds=100*+C}],SS:[i,function(C){this.milliseconds=10*+C}],SSS:[/\d{3}/,function(C){this.milliseconds=+C}],s:[s,g("seconds")],ss:[s,g("seconds")],m:[s,g("minutes")],mm:[s,g("minutes")],H:[s,g("hours")],h:[s,g("hours")],HH:[s,g("hours")],hh:[s,g("hours")],D:[s,g("day")],DD:[i,g("day")],Do:[k,function(C){var I=M.ordinal,V=C.match(/\d+/);if(this.day=V[0],I)for(var W=1;W<=31;W+=1)I(W).replace(/\[|\]/g,"")===C&&(this.day=W)}],w:[s,g("week")],ww:[i,g("week")],M:[s,g("month")],MM:[i,g("month")],MMM:[k,function(C){var I=D("months"),V=(D("monthsShort")||I.map(function(W){return W.slice(0,3)})).indexOf(C)+1;if(V<1)throw new Error;this.month=V%12||V}],MMMM:[k,function(C){var I=D("months").indexOf(C)+1;if(I<1)throw new Error;this.month=I%12||I}],Y:[/[+-]?\d+/,g("year")],YY:[i,function(C){this.year=T(C)}],YYYY:[/\d{4}/,g("year")],Z:F,ZZ:F};function O(C){var I,V;I=C,V=M&&M.formats;for(var W=(C=I.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(_,S,p){var U=p&&p.toUpperCase();return S||V[p]||n[p]||V[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(l,f,y){return f||y.slice(1)})})).match(r),Z=W.length,Q=0;Q-1)return new Date((E==="X"?1e3:1)*m);var o=O(E)(m),P=o.year,z=o.month,R=o.day,K=o.hours,G=o.minutes,J=o.seconds,it=o.milliseconds,v=o.zone,A=o.week,N=new Date,u=R||(P||z?1:N.getDate()),$=P||N.getFullYear(),L=0;P&&!z||(L=z>0?z-1:N.getMonth());var j,X=K||0,rt=G||0,st=J||0,pt=it||0;return v?new Date(Date.UTC($,L,u,X,rt,st,pt+60*v.offset*1e3)):c?new Date(Date.UTC($,L,u,X,rt,st,pt)):(j=new Date($,L,u,X,rt,st,pt),A&&(j=d(j).week(A).toDate()),j)}catch{return new Date("")}}(w,Y,H,V),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),p&&w!=this.format(Y)&&(this.$d=new Date("")),M={}}else if(Y instanceof Array)for(var l=Y.length,f=1;f<=l;f+=1){x[1]=Y[f-1];var y=V.apply(this,x);if(y.isValid()){this.$d=y.$d,this.$L=y.$L,this.init();break}f===l&&(this.$d=new Date(""))}else Z.call(this,Q)}}})})(bn);var Ua=bn.exports;const Fa=be(Ua);var xn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Te,function(){return function(n,r){var a=r.prototype,i=a.format;a.format=function(s){var k=this,M=this.$locale();if(!this.isValid())return i.bind(this)(s);var T=this.$utils(),g=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(F){switch(F){case"Q":return Math.ceil((k.$M+1)/3);case"Do":return M.ordinal(k.$D);case"gggg":return k.weekYear();case"GGGG":return k.isoWeekYear();case"wo":return M.ordinal(k.week(),"W");case"w":case"ww":return T.s(k.week(),F==="w"?1:2,"0");case"W":case"WW":return T.s(k.isoWeek(),F==="W"?1:2,"0");case"k":case"kk":return T.s(String(k.$H===0?24:k.$H),F==="k"?1:2,"0");case"X":return Math.floor(k.$d.getTime()/1e3);case"x":return k.$d.getTime();case"z":return"["+k.offsetName()+"]";case"zzz":return"["+k.offsetName("long")+"]";default:return F}});return i.bind(this)(g)}}})})(xn);var Ea=xn.exports;const La=be(Ea);var ye=function(){var t=h(function(U,l,f,y){for(f=f||{},y=U.length;y--;f[U[y]]=l);return f},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],a=[1,28],i=[1,29],s=[1,30],k=[1,31],M=[1,32],T=[1,33],g=[1,34],F=[1,9],D=[1,10],b=[1,11],q=[1,12],O=[1,13],C=[1,14],I=[1,15],V=[1,16],W=[1,19],Z=[1,20],Q=[1,21],w=[1,22],H=[1,23],x=[1,25],Y=[1,35],_={trace:h(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:h(function(l,f,y,m,E,c,d){var o=c.length-1;switch(E){case 1:return c[o-1];case 2:this.$=[];break;case 3:c[o-1].push(c[o]),this.$=c[o-1];break;case 4:case 5:this.$=c[o];break;case 6:case 7:this.$=[];break;case 8:m.setWeekday("monday");break;case 9:m.setWeekday("tuesday");break;case 10:m.setWeekday("wednesday");break;case 11:m.setWeekday("thursday");break;case 12:m.setWeekday("friday");break;case 13:m.setWeekday("saturday");break;case 14:m.setWeekday("sunday");break;case 15:m.setWeekend("friday");break;case 16:m.setWeekend("saturday");break;case 17:m.setDateFormat(c[o].substr(11)),this.$=c[o].substr(11);break;case 18:m.enableInclusiveEndDates(),this.$=c[o].substr(18);break;case 19:m.TopAxis(),this.$=c[o].substr(8);break;case 20:m.setAxisFormat(c[o].substr(11)),this.$=c[o].substr(11);break;case 21:m.setTickInterval(c[o].substr(13)),this.$=c[o].substr(13);break;case 22:m.setExcludes(c[o].substr(9)),this.$=c[o].substr(9);break;case 23:m.setIncludes(c[o].substr(9)),this.$=c[o].substr(9);break;case 24:m.setTodayMarker(c[o].substr(12)),this.$=c[o].substr(12);break;case 27:m.setDiagramTitle(c[o].substr(6)),this.$=c[o].substr(6);break;case 28:this.$=c[o].trim(),m.setAccTitle(this.$);break;case 29:case 30:this.$=c[o].trim(),m.setAccDescription(this.$);break;case 31:m.addSection(c[o].substr(8)),this.$=c[o].substr(8);break;case 33:m.addTask(c[o-1],c[o]),this.$="task";break;case 34:this.$=c[o-1],m.setClickEvent(c[o-1],c[o],null);break;case 35:this.$=c[o-2],m.setClickEvent(c[o-2],c[o-1],c[o]);break;case 36:this.$=c[o-2],m.setClickEvent(c[o-2],c[o-1],null),m.setLink(c[o-2],c[o]);break;case 37:this.$=c[o-3],m.setClickEvent(c[o-3],c[o-2],c[o-1]),m.setLink(c[o-3],c[o]);break;case 38:this.$=c[o-2],m.setClickEvent(c[o-2],c[o],null),m.setLink(c[o-2],c[o-1]);break;case 39:this.$=c[o-3],m.setClickEvent(c[o-3],c[o-1],c[o]),m.setLink(c[o-3],c[o-2]);break;case 40:this.$=c[o-1],m.setLink(c[o-1],c[o]);break;case 41:case 47:this.$=c[o-1]+" "+c[o];break;case 42:case 43:case 45:this.$=c[o-2]+" "+c[o-1]+" "+c[o];break;case 44:case 46:this.$=c[o-3]+" "+c[o-2]+" "+c[o-1]+" "+c[o];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:a,15:i,16:s,17:k,18:M,19:18,20:T,21:g,22:F,23:D,24:b,25:q,26:O,27:C,28:I,29:V,30:W,31:Z,33:Q,35:w,36:H,37:24,38:x,40:Y},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:r,14:a,15:i,16:s,17:k,18:M,19:18,20:T,21:g,22:F,23:D,24:b,25:q,26:O,27:C,28:I,29:V,30:W,31:Z,33:Q,35:w,36:H,37:24,38:x,40:Y},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:h(function(l,f){if(f.recoverable)this.trace(l);else{var y=new Error(l);throw y.hash=f,y}},"parseError"),parse:h(function(l){var f=this,y=[0],m=[],E=[null],c=[],d=this.table,o="",P=0,z=0,R=2,K=1,G=c.slice.call(arguments,1),J=Object.create(this.lexer),it={yy:{}};for(var v in this.yy)Object.prototype.hasOwnProperty.call(this.yy,v)&&(it.yy[v]=this.yy[v]);J.setInput(l,it.yy),it.yy.lexer=J,it.yy.parser=this,typeof J.yylloc>"u"&&(J.yylloc={});var A=J.yylloc;c.push(A);var N=J.options&&J.options.ranges;typeof it.yy.parseError=="function"?this.parseError=it.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function u(ot){y.length=y.length-2*ot,E.length=E.length-ot,c.length=c.length-ot}h(u,"popStack");function $(){var ot;return ot=m.pop()||J.lex()||K,typeof ot!="number"&&(ot instanceof Array&&(m=ot,ot=m.pop()),ot=f.symbols_[ot]||ot),ot}h($,"lex");for(var L,j,X,rt,st={},pt,lt,Ae,Bt;;){if(j=y[y.length-1],this.defaultActions[j]?X=this.defaultActions[j]:((L===null||typeof L>"u")&&(L=$()),X=d[j]&&d[j][L]),typeof X>"u"||!X.length||!X[0]){var ne="";Bt=[];for(pt in d[j])this.terminals_[pt]&&pt>R&&Bt.push("'"+this.terminals_[pt]+"'");J.showPosition?ne="Parse error on line "+(P+1)+`: +import{aV as Je,aW as Fn,aX as $e,aY as Ke,aZ as tn,a_ as re,a$ as En,aH as Te,aI as be,_ as h,g as Ln,s as An,n as In,o as Wn,a as On,b as Hn,c as _t,d as Zt,e as Nn,b0 as at,l as Qt,k as Vn,j as zn,v as Pn,u as Rn}from"./md-index-1F_vrIf8.js";import{b as Bn,t as Ie,c as Zn,a as Xn,l as qn}from"./md-linear-Co1Vf5c0.js";import{i as Gn}from"./md-init-Gi6I4Gst.js";function jn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n=r)&&(n=r);else{let r=-1;for(let a of t)(a=e(a,++r,t))!=null&&(n=a)&&(n=a)}return n}function Qn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let a of t)(a=e(a,++r,t))!=null&&(n>a||n===void 0&&a>=a)&&(n=a)}return n}function Jn(t){return t}var qt=1,ae=2,me=3,Xt=4,We=1e-6;function $n(t){return"translate("+t+",0)"}function Kn(t){return"translate(0,"+t+")"}function tr(t){return e=>+t(e)}function er(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function nr(){return!this.__axis}function en(t,e){var n=[],r=null,a=null,i=6,s=6,k=3,M=typeof window<"u"&&window.devicePixelRatio>1?0:.5,T=t===qt||t===Xt?-1:1,g=t===Xt||t===ae?"x":"y",F=t===qt||t===me?$n:Kn;function D(b){var q=r??(e.ticks?e.ticks.apply(e,n):e.domain()),O=a??(e.tickFormat?e.tickFormat.apply(e,n):Jn),C=Math.max(i,0)+k,I=e.range(),V=+I[0]+M,W=+I[I.length-1]+M,Z=(e.bandwidth?er:tr)(e.copy(),M),Q=b.selection?b.selection():b,w=Q.selectAll(".domain").data([null]),H=Q.selectAll(".tick").data(q,e).order(),x=H.exit(),Y=H.enter().append("g").attr("class","tick"),_=H.select("line"),S=H.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),H=H.merge(Y),_=_.merge(Y.append("line").attr("stroke","currentColor").attr(g+"2",T*i)),S=S.merge(Y.append("text").attr("fill","currentColor").attr(g,T*C).attr("dy",t===qt?"0em":t===me?"0.71em":"0.32em")),b!==Q&&(w=w.transition(b),H=H.transition(b),_=_.transition(b),S=S.transition(b),x=x.transition(b).attr("opacity",We).attr("transform",function(p){return isFinite(p=Z(p))?F(p+M):this.getAttribute("transform")}),Y.attr("opacity",We).attr("transform",function(p){var U=this.parentNode.__axis;return F((U&&isFinite(U=U(p))?U:Z(p))+M)})),x.remove(),w.attr("d",t===Xt||t===ae?s?"M"+T*s+","+V+"H"+M+"V"+W+"H"+T*s:"M"+M+","+V+"V"+W:s?"M"+V+","+T*s+"V"+M+"H"+W+"V"+T*s:"M"+V+","+M+"H"+W),H.attr("opacity",1).attr("transform",function(p){return F(Z(p)+M)}),_.attr(g+"2",T*i),S.attr(g,T*C).text(O),Q.filter(nr).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===ae?"start":t===Xt?"end":"middle"),Q.each(function(){this.__axis=Z})}return D.scale=function(b){return arguments.length?(e=b,D):e},D.ticks=function(){return n=Array.from(arguments),D},D.tickArguments=function(b){return arguments.length?(n=b==null?[]:Array.from(b),D):n.slice()},D.tickValues=function(b){return arguments.length?(r=b==null?null:Array.from(b),D):r&&r.slice()},D.tickFormat=function(b){return arguments.length?(a=b,D):a},D.tickSize=function(b){return arguments.length?(i=s=+b,D):i},D.tickSizeInner=function(b){return arguments.length?(i=+b,D):i},D.tickSizeOuter=function(b){return arguments.length?(s=+b,D):s},D.tickPadding=function(b){return arguments.length?(k=+b,D):k},D.offset=function(b){return arguments.length?(M=+b,D):M},D}function rr(t){return en(qt,t)}function ar(t){return en(me,t)}const ir=Math.PI/180,sr=180/Math.PI,Jt=18,nn=.96422,rn=1,an=.82521,sn=4/29,St=6/29,on=3*St*St,or=St*St*St;function cn(t){if(t instanceof ft)return new ft(t.l,t.a,t.b,t.opacity);if(t instanceof dt)return ln(t);t instanceof Je||(t=Fn(t));var e=ce(t.r),n=ce(t.g),r=ce(t.b),a=ie((.2225045*e+.7168786*n+.0606169*r)/rn),i,s;return e===n&&n===r?i=s=a:(i=ie((.4360747*e+.3850649*n+.1430804*r)/nn),s=ie((.0139322*e+.0971045*n+.7141733*r)/an)),new ft(116*a-16,500*(i-a),200*(a-s),t.opacity)}function cr(t,e,n,r){return arguments.length===1?cn(t):new ft(t,e,n,r??1)}function ft(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}$e(ft,cr,Ke(tn,{brighter(t){return new ft(this.l+Jt*(t??1),this.a,this.b,this.opacity)},darker(t){return new ft(this.l-Jt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=nn*se(e),t=rn*se(t),n=an*se(n),new Je(oe(3.1338561*e-1.6168667*t-.4906146*n),oe(-.9787684*e+1.9161415*t+.033454*n),oe(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function ie(t){return t>or?Math.pow(t,1/3):t/on+sn}function se(t){return t>St?t*t*t:on*(t-sn)}function oe(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ce(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function lr(t){if(t instanceof dt)return new dt(t.h,t.c,t.l,t.opacity);if(t instanceof ft||(t=cn(t)),t.a===0&&t.b===0)return new dt(NaN,0(t(i=new Date(+i)),i),a.ceil=i=>(t(i=new Date(i-1)),e(i,1),t(i),i),a.round=i=>{const s=a(i),k=a.ceil(i);return i-s(e(i=new Date(+i),s==null?1:Math.floor(s)),i),a.range=(i,s,k)=>{const M=[];if(i=a.ceil(i),k=k==null?1:Math.floor(k),!(i0))return M;let T;do M.push(T=new Date(+i)),e(i,k),t(i);while(Tet(s=>{if(s>=s)for(;t(s),!i(s);)s.setTime(s-1)},(s,k)=>{if(s>=s)if(k<0)for(;++k<=0;)for(;e(s,-1),!i(s););else for(;--k>=0;)for(;e(s,1),!i(s););}),n&&(a.count=(i,s)=>(le.setTime(+i),ue.setTime(+s),t(le),t(ue),Math.floor(n(le,ue))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?s=>r(s)%i===0:s=>a.count(0,s)%i===0):a)),a}const Ut=et(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Ut.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?et(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Ut);Ut.range;const mt=1e3,ct=mt*60,gt=ct*60,yt=gt*24,xe=yt*7,Oe=yt*30,fe=yt*365,vt=et(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*mt)},(t,e)=>(e-t)/mt,t=>t.getUTCSeconds());vt.range;const Wt=et(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt)},(t,e)=>{t.setTime(+t+e*ct)},(t,e)=>(e-t)/ct,t=>t.getMinutes());Wt.range;const dr=et(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*ct)},(t,e)=>(e-t)/ct,t=>t.getUTCMinutes());dr.range;const Ot=et(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt-t.getMinutes()*ct)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getHours());Ot.range;const mr=et(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getUTCHours());mr.range;const Tt=et(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ct)/yt,t=>t.getDate()-1);Tt.range;const we=et(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>t.getUTCDate()-1);we.range;const gr=et(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>Math.floor(t/yt));gr.range;function wt(t){return et(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*ct)/xe)}const Vt=wt(0),Ht=wt(1),un=wt(2),fn=wt(3),bt=wt(4),hn=wt(5),dn=wt(6);Vt.range;Ht.range;un.range;fn.range;bt.range;hn.range;dn.range;function Dt(t){return et(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/xe)}const mn=Dt(0),$t=Dt(1),yr=Dt(2),kr=Dt(3),Ft=Dt(4),pr=Dt(5),vr=Dt(6);mn.range;$t.range;yr.range;kr.range;Ft.range;pr.range;vr.range;const Nt=et(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Nt.range;const Tr=et(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());Tr.range;const kt=et(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());kt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:et(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});kt.range;const xt=et(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());xt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:et(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});xt.range;function br(t,e,n,r,a,i){const s=[[vt,1,mt],[vt,5,5*mt],[vt,15,15*mt],[vt,30,30*mt],[i,1,ct],[i,5,5*ct],[i,15,15*ct],[i,30,30*ct],[a,1,gt],[a,3,3*gt],[a,6,6*gt],[a,12,12*gt],[r,1,yt],[r,2,2*yt],[n,1,xe],[e,1,Oe],[e,3,3*Oe],[t,1,fe]];function k(T,g,F){const D=gC).right(s,D);if(b===s.length)return t.every(Ie(T/fe,g/fe,F));if(b===0)return Ut.every(Math.max(Ie(T,g,F),1));const[q,O]=s[D/s[b-1][2]53)return null;"w"in u||(u.w=1),"Z"in u?(L=de(Lt(u.y,0,1)),j=L.getUTCDay(),L=j>4||j===0?$t.ceil(L):$t(L),L=we.offset(L,(u.V-1)*7),u.y=L.getUTCFullYear(),u.m=L.getUTCMonth(),u.d=L.getUTCDate()+(u.w+6)%7):(L=he(Lt(u.y,0,1)),j=L.getDay(),L=j>4||j===0?Ht.ceil(L):Ht(L),L=Tt.offset(L,(u.V-1)*7),u.y=L.getFullYear(),u.m=L.getMonth(),u.d=L.getDate()+(u.w+6)%7)}else("W"in u||"U"in u)&&("w"in u||(u.w="u"in u?u.u%7:"W"in u?1:0),j="Z"in u?de(Lt(u.y,0,1)).getUTCDay():he(Lt(u.y,0,1)).getDay(),u.m=0,u.d="W"in u?(u.w+6)%7+u.W*7-(j+5)%7:u.w+u.U*7-(j+6)%7);return"Z"in u?(u.H+=u.Z/100|0,u.M+=u.Z%100,de(u)):he(u)}}function x(v,A,N,u){for(var $=0,L=A.length,j=N.length,X,rt;$=j)return-1;if(X=A.charCodeAt($++),X===37){if(X=A.charAt($++),rt=Q[X in He?A.charAt($++):X],!rt||(u=rt(v,N,u))<0)return-1}else if(X!=N.charCodeAt(u++))return-1}return u}function Y(v,A,N){var u=T.exec(A.slice(N));return u?(v.p=g.get(u[0].toLowerCase()),N+u[0].length):-1}function _(v,A,N){var u=b.exec(A.slice(N));return u?(v.w=q.get(u[0].toLowerCase()),N+u[0].length):-1}function S(v,A,N){var u=F.exec(A.slice(N));return u?(v.w=D.get(u[0].toLowerCase()),N+u[0].length):-1}function p(v,A,N){var u=I.exec(A.slice(N));return u?(v.m=V.get(u[0].toLowerCase()),N+u[0].length):-1}function U(v,A,N){var u=O.exec(A.slice(N));return u?(v.m=C.get(u[0].toLowerCase()),N+u[0].length):-1}function l(v,A,N){return x(v,e,A,N)}function f(v,A,N){return x(v,n,A,N)}function y(v,A,N){return x(v,r,A,N)}function m(v){return s[v.getDay()]}function E(v){return i[v.getDay()]}function c(v){return M[v.getMonth()]}function d(v){return k[v.getMonth()]}function o(v){return a[+(v.getHours()>=12)]}function P(v){return 1+~~(v.getMonth()/3)}function z(v){return s[v.getUTCDay()]}function R(v){return i[v.getUTCDay()]}function K(v){return M[v.getUTCMonth()]}function G(v){return k[v.getUTCMonth()]}function J(v){return a[+(v.getUTCHours()>=12)]}function it(v){return 1+~~(v.getUTCMonth()/3)}return{format:function(v){var A=w(v+="",W);return A.toString=function(){return v},A},parse:function(v){var A=H(v+="",!1);return A.toString=function(){return v},A},utcFormat:function(v){var A=w(v+="",Z);return A.toString=function(){return v},A},utcParse:function(v){var A=H(v+="",!0);return A.toString=function(){return v},A}}}var He={"-":"",_:" ",0:"0"},nt=/^\s*\d+/,Cr=/^%/,Mr=/[\\^$*+?|[\]().{}]/g;function B(t,e,n){var r=t<0?"-":"",a=(r?-t:t)+"",i=a.length;return r+(i[e.toLowerCase(),n]))}function Sr(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Yr(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Ur(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Fr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Er(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Ne(t,e,n){var r=nt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ve(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Lr(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Ar(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Ir(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function ze(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Wr(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Pe(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Or(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Hr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Nr(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Vr(t,e,n){var r=nt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function zr(t,e,n){var r=Cr.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Pr(t,e,n){var r=nt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Rr(t,e,n){var r=nt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Re(t,e){return B(t.getDate(),e,2)}function Br(t,e){return B(t.getHours(),e,2)}function Zr(t,e){return B(t.getHours()%12||12,e,2)}function Xr(t,e){return B(1+Tt.count(kt(t),t),e,3)}function gn(t,e){return B(t.getMilliseconds(),e,3)}function qr(t,e){return gn(t,e)+"000"}function Gr(t,e){return B(t.getMonth()+1,e,2)}function jr(t,e){return B(t.getMinutes(),e,2)}function Qr(t,e){return B(t.getSeconds(),e,2)}function Jr(t){var e=t.getDay();return e===0?7:e}function $r(t,e){return B(Vt.count(kt(t)-1,t),e,2)}function yn(t){var e=t.getDay();return e>=4||e===0?bt(t):bt.ceil(t)}function Kr(t,e){return t=yn(t),B(bt.count(kt(t),t)+(kt(t).getDay()===4),e,2)}function ta(t){return t.getDay()}function ea(t,e){return B(Ht.count(kt(t)-1,t),e,2)}function na(t,e){return B(t.getFullYear()%100,e,2)}function ra(t,e){return t=yn(t),B(t.getFullYear()%100,e,2)}function aa(t,e){return B(t.getFullYear()%1e4,e,4)}function ia(t,e){var n=t.getDay();return t=n>=4||n===0?bt(t):bt.ceil(t),B(t.getFullYear()%1e4,e,4)}function sa(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+B(e/60|0,"0",2)+B(e%60,"0",2)}function Be(t,e){return B(t.getUTCDate(),e,2)}function oa(t,e){return B(t.getUTCHours(),e,2)}function ca(t,e){return B(t.getUTCHours()%12||12,e,2)}function la(t,e){return B(1+we.count(xt(t),t),e,3)}function kn(t,e){return B(t.getUTCMilliseconds(),e,3)}function ua(t,e){return kn(t,e)+"000"}function fa(t,e){return B(t.getUTCMonth()+1,e,2)}function ha(t,e){return B(t.getUTCMinutes(),e,2)}function da(t,e){return B(t.getUTCSeconds(),e,2)}function ma(t){var e=t.getUTCDay();return e===0?7:e}function ga(t,e){return B(mn.count(xt(t)-1,t),e,2)}function pn(t){var e=t.getUTCDay();return e>=4||e===0?Ft(t):Ft.ceil(t)}function ya(t,e){return t=pn(t),B(Ft.count(xt(t),t)+(xt(t).getUTCDay()===4),e,2)}function ka(t){return t.getUTCDay()}function pa(t,e){return B($t.count(xt(t)-1,t),e,2)}function va(t,e){return B(t.getUTCFullYear()%100,e,2)}function Ta(t,e){return t=pn(t),B(t.getUTCFullYear()%100,e,2)}function ba(t,e){return B(t.getUTCFullYear()%1e4,e,4)}function xa(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Ft(t):Ft.ceil(t),B(t.getUTCFullYear()%1e4,e,4)}function wa(){return"+0000"}function Ze(){return"%"}function Xe(t){return+t}function qe(t){return Math.floor(+t/1e3)}var Mt,Kt;Da({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Da(t){return Mt=Dr(t),Kt=Mt.format,Mt.parse,Mt.utcFormat,Mt.utcParse,Mt}function Ca(t){return new Date(t)}function Ma(t){return t instanceof Date?+t:+new Date(+t)}function vn(t,e,n,r,a,i,s,k,M,T){var g=Zn(),F=g.invert,D=g.domain,b=T(".%L"),q=T(":%S"),O=T("%I:%M"),C=T("%I %p"),I=T("%a %d"),V=T("%b %d"),W=T("%B"),Z=T("%Y");function Q(w){return(M(w)4&&(b+=7),D.add(b,n));return q.diff(O,"week")+1},k.isoWeekday=function(T){return this.$utils().u(T)?this.day()||7:this.day(this.day()%7?T:T-7)};var M=k.startOf;k.startOf=function(T,g){var F=this.$utils(),D=!!F.u(g)||g;return F.p(T)==="isoweek"?D?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):M.bind(this)(T,g)}}})})(Tn);var Sa=Tn.exports;const Ya=be(Sa);var bn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Te,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,i=/\d\d/,s=/\d\d?/,k=/\d*[^-_:/,()\s\d]+/,M={},T=function(C){return(C=+C)+(C>68?1900:2e3)},g=function(C){return function(I){this[C]=+I}},F=[/[+-]\d\d:?(\d\d)?|Z/,function(C){(this.zone||(this.zone={})).offset=function(I){if(!I||I==="Z")return 0;var V=I.match(/([+-]|\d\d)/g),W=60*V[1]+(+V[2]||0);return W===0?0:V[0]==="+"?-W:W}(C)}],D=function(C){var I=M[C];return I&&(I.indexOf?I:I.s.concat(I.f))},b=function(C,I){var V,W=M.meridiem;if(W){for(var Z=1;Z<=24;Z+=1)if(C.indexOf(W(Z,0,I))>-1){V=Z>12;break}}else V=C===(I?"pm":"PM");return V},q={A:[k,function(C){this.afternoon=b(C,!1)}],a:[k,function(C){this.afternoon=b(C,!0)}],Q:[a,function(C){this.month=3*(C-1)+1}],S:[a,function(C){this.milliseconds=100*+C}],SS:[i,function(C){this.milliseconds=10*+C}],SSS:[/\d{3}/,function(C){this.milliseconds=+C}],s:[s,g("seconds")],ss:[s,g("seconds")],m:[s,g("minutes")],mm:[s,g("minutes")],H:[s,g("hours")],h:[s,g("hours")],HH:[s,g("hours")],hh:[s,g("hours")],D:[s,g("day")],DD:[i,g("day")],Do:[k,function(C){var I=M.ordinal,V=C.match(/\d+/);if(this.day=V[0],I)for(var W=1;W<=31;W+=1)I(W).replace(/\[|\]/g,"")===C&&(this.day=W)}],w:[s,g("week")],ww:[i,g("week")],M:[s,g("month")],MM:[i,g("month")],MMM:[k,function(C){var I=D("months"),V=(D("monthsShort")||I.map(function(W){return W.slice(0,3)})).indexOf(C)+1;if(V<1)throw new Error;this.month=V%12||V}],MMMM:[k,function(C){var I=D("months").indexOf(C)+1;if(I<1)throw new Error;this.month=I%12||I}],Y:[/[+-]?\d+/,g("year")],YY:[i,function(C){this.year=T(C)}],YYYY:[/\d{4}/,g("year")],Z:F,ZZ:F};function O(C){var I,V;I=C,V=M&&M.formats;for(var W=(C=I.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(_,S,p){var U=p&&p.toUpperCase();return S||V[p]||n[p]||V[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(l,f,y){return f||y.slice(1)})})).match(r),Z=W.length,Q=0;Q-1)return new Date((E==="X"?1e3:1)*m);var o=O(E)(m),P=o.year,z=o.month,R=o.day,K=o.hours,G=o.minutes,J=o.seconds,it=o.milliseconds,v=o.zone,A=o.week,N=new Date,u=R||(P||z?1:N.getDate()),$=P||N.getFullYear(),L=0;P&&!z||(L=z>0?z-1:N.getMonth());var j,X=K||0,rt=G||0,st=J||0,pt=it||0;return v?new Date(Date.UTC($,L,u,X,rt,st,pt+60*v.offset*1e3)):c?new Date(Date.UTC($,L,u,X,rt,st,pt)):(j=new Date($,L,u,X,rt,st,pt),A&&(j=d(j).week(A).toDate()),j)}catch{return new Date("")}}(w,Y,H,V),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),p&&w!=this.format(Y)&&(this.$d=new Date("")),M={}}else if(Y instanceof Array)for(var l=Y.length,f=1;f<=l;f+=1){x[1]=Y[f-1];var y=V.apply(this,x);if(y.isValid()){this.$d=y.$d,this.$L=y.$L,this.init();break}f===l&&(this.$d=new Date(""))}else Z.call(this,Q)}}})})(bn);var Ua=bn.exports;const Fa=be(Ua);var xn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Te,function(){return function(n,r){var a=r.prototype,i=a.format;a.format=function(s){var k=this,M=this.$locale();if(!this.isValid())return i.bind(this)(s);var T=this.$utils(),g=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(F){switch(F){case"Q":return Math.ceil((k.$M+1)/3);case"Do":return M.ordinal(k.$D);case"gggg":return k.weekYear();case"GGGG":return k.isoWeekYear();case"wo":return M.ordinal(k.week(),"W");case"w":case"ww":return T.s(k.week(),F==="w"?1:2,"0");case"W":case"WW":return T.s(k.isoWeek(),F==="W"?1:2,"0");case"k":case"kk":return T.s(String(k.$H===0?24:k.$H),F==="k"?1:2,"0");case"X":return Math.floor(k.$d.getTime()/1e3);case"x":return k.$d.getTime();case"z":return"["+k.offsetName()+"]";case"zzz":return"["+k.offsetName("long")+"]";default:return F}});return i.bind(this)(g)}}})})(xn);var Ea=xn.exports;const La=be(Ea);var ye=function(){var t=h(function(U,l,f,y){for(f=f||{},y=U.length;y--;f[U[y]]=l);return f},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],a=[1,28],i=[1,29],s=[1,30],k=[1,31],M=[1,32],T=[1,33],g=[1,34],F=[1,9],D=[1,10],b=[1,11],q=[1,12],O=[1,13],C=[1,14],I=[1,15],V=[1,16],W=[1,19],Z=[1,20],Q=[1,21],w=[1,22],H=[1,23],x=[1,25],Y=[1,35],_={trace:h(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:h(function(l,f,y,m,E,c,d){var o=c.length-1;switch(E){case 1:return c[o-1];case 2:this.$=[];break;case 3:c[o-1].push(c[o]),this.$=c[o-1];break;case 4:case 5:this.$=c[o];break;case 6:case 7:this.$=[];break;case 8:m.setWeekday("monday");break;case 9:m.setWeekday("tuesday");break;case 10:m.setWeekday("wednesday");break;case 11:m.setWeekday("thursday");break;case 12:m.setWeekday("friday");break;case 13:m.setWeekday("saturday");break;case 14:m.setWeekday("sunday");break;case 15:m.setWeekend("friday");break;case 16:m.setWeekend("saturday");break;case 17:m.setDateFormat(c[o].substr(11)),this.$=c[o].substr(11);break;case 18:m.enableInclusiveEndDates(),this.$=c[o].substr(18);break;case 19:m.TopAxis(),this.$=c[o].substr(8);break;case 20:m.setAxisFormat(c[o].substr(11)),this.$=c[o].substr(11);break;case 21:m.setTickInterval(c[o].substr(13)),this.$=c[o].substr(13);break;case 22:m.setExcludes(c[o].substr(9)),this.$=c[o].substr(9);break;case 23:m.setIncludes(c[o].substr(9)),this.$=c[o].substr(9);break;case 24:m.setTodayMarker(c[o].substr(12)),this.$=c[o].substr(12);break;case 27:m.setDiagramTitle(c[o].substr(6)),this.$=c[o].substr(6);break;case 28:this.$=c[o].trim(),m.setAccTitle(this.$);break;case 29:case 30:this.$=c[o].trim(),m.setAccDescription(this.$);break;case 31:m.addSection(c[o].substr(8)),this.$=c[o].substr(8);break;case 33:m.addTask(c[o-1],c[o]),this.$="task";break;case 34:this.$=c[o-1],m.setClickEvent(c[o-1],c[o],null);break;case 35:this.$=c[o-2],m.setClickEvent(c[o-2],c[o-1],c[o]);break;case 36:this.$=c[o-2],m.setClickEvent(c[o-2],c[o-1],null),m.setLink(c[o-2],c[o]);break;case 37:this.$=c[o-3],m.setClickEvent(c[o-3],c[o-2],c[o-1]),m.setLink(c[o-3],c[o]);break;case 38:this.$=c[o-2],m.setClickEvent(c[o-2],c[o],null),m.setLink(c[o-2],c[o-1]);break;case 39:this.$=c[o-3],m.setClickEvent(c[o-3],c[o-1],c[o]),m.setLink(c[o-3],c[o-2]);break;case 40:this.$=c[o-1],m.setLink(c[o-1],c[o]);break;case 41:case 47:this.$=c[o-1]+" "+c[o];break;case 42:case 43:case 45:this.$=c[o-2]+" "+c[o-1]+" "+c[o];break;case 44:case 46:this.$=c[o-3]+" "+c[o-2]+" "+c[o-1]+" "+c[o];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:a,15:i,16:s,17:k,18:M,19:18,20:T,21:g,22:F,23:D,24:b,25:q,26:O,27:C,28:I,29:V,30:W,31:Z,33:Q,35:w,36:H,37:24,38:x,40:Y},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:r,14:a,15:i,16:s,17:k,18:M,19:18,20:T,21:g,22:F,23:D,24:b,25:q,26:O,27:C,28:I,29:V,30:W,31:Z,33:Q,35:w,36:H,37:24,38:x,40:Y},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:h(function(l,f){if(f.recoverable)this.trace(l);else{var y=new Error(l);throw y.hash=f,y}},"parseError"),parse:h(function(l){var f=this,y=[0],m=[],E=[null],c=[],d=this.table,o="",P=0,z=0,R=2,K=1,G=c.slice.call(arguments,1),J=Object.create(this.lexer),it={yy:{}};for(var v in this.yy)Object.prototype.hasOwnProperty.call(this.yy,v)&&(it.yy[v]=this.yy[v]);J.setInput(l,it.yy),it.yy.lexer=J,it.yy.parser=this,typeof J.yylloc>"u"&&(J.yylloc={});var A=J.yylloc;c.push(A);var N=J.options&&J.options.ranges;typeof it.yy.parseError=="function"?this.parseError=it.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function u(ot){y.length=y.length-2*ot,E.length=E.length-ot,c.length=c.length-ot}h(u,"popStack");function $(){var ot;return ot=m.pop()||J.lex()||K,typeof ot!="number"&&(ot instanceof Array&&(m=ot,ot=m.pop()),ot=f.symbols_[ot]||ot),ot}h($,"lex");for(var L,j,X,rt,st={},pt,lt,Ae,Bt;;){if(j=y[y.length-1],this.defaultActions[j]?X=this.defaultActions[j]:((L===null||typeof L>"u")&&(L=$()),X=d[j]&&d[j][L]),typeof X>"u"||!X.length||!X[0]){var ne="";Bt=[];for(pt in d[j])this.terminals_[pt]&&pt>R&&Bt.push("'"+this.terminals_[pt]+"'");J.showPosition?ne="Parse error on line "+(P+1)+`: `+J.showPosition()+` Expecting `+Bt.join(", ")+", got '"+(this.terminals_[L]||L)+"'":ne="Parse error on line "+(P+1)+": Unexpected "+(L==K?"end of input":"'"+(this.terminals_[L]||L)+"'"),this.parseError(ne,{text:J.match,token:this.terminals_[L]||L,line:J.yylineno,loc:A,expected:Bt})}if(X[0]instanceof Array&&X.length>1)throw new Error("Parse Error: multiple actions possible at state: "+j+", token: "+L);switch(X[0]){case 1:y.push(L),E.push(J.yytext),c.push(J.yylloc),y.push(X[1]),L=null,z=J.yyleng,o=J.yytext,P=J.yylineno,A=J.yylloc;break;case 2:if(lt=this.productions_[X[1]][1],st.$=E[E.length-lt],st._$={first_line:c[c.length-(lt||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(lt||1)].first_column,last_column:c[c.length-1].last_column},N&&(st._$.range=[c[c.length-(lt||1)].range[0],c[c.length-1].range[1]]),rt=this.performAction.apply(st,[o,z,P,it.yy,X[1],E,c].concat(G)),typeof rt<"u")return rt;lt&&(y=y.slice(0,-1*lt*2),E=E.slice(0,-1*lt),c=c.slice(0,-1*lt)),y.push(this.productions_[X[1]][0]),E.push(st.$),c.push(st._$),Ae=d[y[y.length-2]][y[y.length-1]],y.push(Ae);break;case 3:return!0}}return!0},"parse")},S=function(){var U={EOF:1,parseError:h(function(f,y){if(this.yy.parser)this.yy.parser.parseError(f,y);else throw new Error(f)},"parseError"),setInput:h(function(l,f){return this.yy=f||this.yy||{},this._input=l,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:h(function(){var l=this._input[0];this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l;var f=l.match(/(?:\r\n?|\n).*/g);return f?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),l},"input"),unput:h(function(l){var f=l.length,y=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-f),this.offset-=f;var m=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),y.length-1&&(this.yylineno-=y.length-1);var E=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:y?(y.length===m.length?this.yylloc.first_column:0)+m[m.length-y.length].length-y[0].length:this.yylloc.first_column-f},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-f]),this.yyleng=this.yytext.length,this},"unput"),more:h(function(){return this._more=!0,this},"more"),reject:h(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). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:h(function(l){this.unput(this.match.slice(l))},"less"),pastInput:h(function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:h(function(){var l=this.match;return l.length<20&&(l+=this._input.substr(0,20-l.length)),(l.substr(0,20)+(l.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:h(function(){var l=this.pastInput(),f=new Array(l.length+1).join("-");return l+this.upcomingInput()+` diff --git a/static/js/md-gitGraph-YCYPL57B-Hx73xtpL.js b/static/js/md-gitGraph-YCYPL57B-Da34XlYK.js similarity index 82% rename from static/js/md-gitGraph-YCYPL57B-Hx73xtpL.js rename to static/js/md-gitGraph-YCYPL57B-Da34XlYK.js index df3fab8c9..513999863 100644 --- a/static/js/md-gitGraph-YCYPL57B-Hx73xtpL.js +++ b/static/js/md-gitGraph-YCYPL57B-Da34XlYK.js @@ -1,4 +1,4 @@ -var Gc=Object.defineProperty;var Uc=(n,e,t)=>e in n?Gc(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var Je=(n,e,t)=>Uc(n,typeof e!="symbol"?e+"":e,t);import{bz as Fc,bA as Bc,aQ as ao,bj as Hc,aU as Vc,aR as Z,aA as Wc,aB as Qi,b9 as Kc,bc as oo,bd as lo,ba as zc,bo as Zi,aD as mt,aE as D,aS as es,aM as qc,bB as tn}from"./md-index-Pj6M4nIk.js";import{k as Mt,j as vi,g as Kt,S as Yc,w as Xc,x as Jc,c as co,v as K,y as uo,l as Qc,z as Zc,A as eu,B as tu,C as nu,a as fo,d as S,i as ze,r as oe,f as Ee,D as q}from"./md-_baseUniq-B_2Z1DXv.js";import{j as _i,m as b,d as ru,f as Ie,g as Dt,h as x,i as Ei,l as jt,e as iu}from"./md-_basePickBy-DCcDoZXV.js";import{c as te}from"./md-clone-CnShQSdt.js";var su=Object.prototype,au=su.hasOwnProperty,_e=Fc(function(n,e){if(Bc(e)||ao(e)){Hc(e,Mt(e),n);return}for(var t in e)au.call(e,t)&&Vc(n,t,e[t])});function ho(n,e,t){var r=-1,i=n.length;e<0&&(e=-e>i?0:i+e),t=t>i?i:t,t<0&&(t+=i),i=e>t?0:t-e>>>0,e>>>=0;for(var s=Array(i);++r=uu&&(s=Jc,a=!1,e=new Yc(e));e:for(;++i-1:!!i&&uo(n,e,t)>-1}function ts(n,e,t){var r=n==null?0:n.length;if(!r)return-1;var i=0;return uo(n,e,i)}var vu="[object RegExp]";function _u(n){return oo(n)&&lo(n)==vu}var ns=Zi&&Zi.isRegExp,qe=ns?zc(ns):_u,Eu="Expected a function";function Ru(n){if(typeof n!="function")throw new TypeError(Eu);return function(){var e=arguments;switch(e.length){case 0:return!n.call(this);case 1:return!n.call(this,e[0]);case 2:return!n.call(this,e[0],e[1]);case 3:return!n.call(this,e[0],e[1],e[2])}return!n.apply(this,e)}}function Pe(n,e){if(n==null)return{};var t=Qc(Zc(n),function(r){return[r]});return e=Kt(e),ru(n,t,function(r,i){return e(r,i[0])})}function rr(n,e){var t=Z(n)?eu:tu;return t(n,Ru(Kt(e)))}function Au(n,e){var t;return vi(n,function(r,i,s){return t=e(r,i,s),!t}),!!t}function po(n,e,t){var r=Z(n)?nu:Au;return r(n,Kt(e))}function Ri(n){return n&&n.length?fo(n):[]}function bu(n,e){return n&&n.length?fo(n,Kt(e)):[]}function ae(n){return typeof n=="object"&&n!==null&&typeof n.$type=="string"}function Ge(n){return typeof n=="object"&&n!==null&&typeof n.$refText=="string"}function Nu(n){return typeof n=="object"&&n!==null&&typeof n.name=="string"&&typeof n.type=="string"&&typeof n.path=="string"}function kn(n){return typeof n=="object"&&n!==null&&ae(n.container)&&Ge(n.reference)&&typeof n.message=="string"}class mo{constructor(){this.subtypes={},this.allSubtypes={}}isInstance(e,t){return ae(e)&&this.isSubtype(e.$type,t)}isSubtype(e,t){if(e===t)return!0;let r=this.subtypes[e];r||(r=this.subtypes[e]={});const i=r[t];if(i!==void 0)return i;{const s=this.computeIsSubtype(e,t);return r[t]=s,s}}getAllSubTypes(e){const t=this.allSubtypes[e];if(t)return t;{const r=this.getAllTypes(),i=[];for(const s of r)this.isSubtype(s,e)&&i.push(s);return this.allSubtypes[e]=i,i}}}function Gt(n){return typeof n=="object"&&n!==null&&Array.isArray(n.content)}function go(n){return typeof n=="object"&&n!==null&&typeof n.tokenType=="object"}function yo(n){return Gt(n)&&typeof n.fullText=="string"}class ie{constructor(e,t){this.startFn=e,this.nextFn=t}iterator(){const e={state:this.startFn(),next:()=>this.nextFn(e.state),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){const e=this.iterator();let t=0,r=e.next();for(;!r.done;)t++,r=e.next();return t}toArray(){const e=[],t=this.iterator();let r;do r=t.next(),r.value!==void 0&&e.push(r.value);while(!r.done);return e}toSet(){return new Set(this)}toMap(e,t){const r=this.map(i=>[e?e(i):i,t?t(i):i]);return new Map(r)}toString(){return this.join()}concat(e){const t=e[Symbol.iterator]();return new ie(()=>({first:this.startFn(),firstDone:!1}),r=>{let i;if(!r.firstDone){do if(i=this.nextFn(r.first),!i.done)return i;while(!i.done);r.firstDone=!0}do if(i=t.next(),!i.done)return i;while(!i.done);return ke})}join(e=","){const t=this.iterator();let r="",i,s=!1;do i=t.next(),i.done||(s&&(r+=e),r+=ku(i.value)),s=!0;while(!i.done);return r}indexOf(e,t=0){const r=this.iterator();let i=0,s=r.next();for(;!s.done;){if(i>=t&&s.value===e)return i;s=r.next(),i++}return-1}every(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(!e(r.value))return!1;r=t.next()}return!0}some(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(e(r.value))return!0;r=t.next()}return!1}forEach(e){const t=this.iterator();let r=0,i=t.next();for(;!i.done;)e(i.value,r),i=t.next(),r++}map(e){return new ie(this.startFn,t=>{const{done:r,value:i}=this.nextFn(t);return r?ke:{done:!1,value:e(i)}})}filter(e){return new ie(this.startFn,t=>{let r;do if(r=this.nextFn(t),!r.done&&e(r.value))return r;while(!r.done);return ke})}nonNullable(){return this.filter(e=>e!=null)}reduce(e,t){const r=this.iterator();let i=t,s=r.next();for(;!s.done;)i===void 0?i=s.value:i=e(i,s.value),s=r.next();return i}reduceRight(e,t){return this.recursiveReduce(this.iterator(),e,t)}recursiveReduce(e,t,r){const i=e.next();if(i.done)return r;const s=this.recursiveReduce(e,t,r);return s===void 0?i.value:t(s,i.value)}find(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(e(r.value))return r.value;r=t.next()}}findIndex(e){const t=this.iterator();let r=0,i=t.next();for(;!i.done;){if(e(i.value))return r;i=t.next(),r++}return-1}includes(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(r.value===e)return!0;r=t.next()}return!1}flatMap(e){return new ie(()=>({this:this.startFn()}),t=>{do{if(t.iterator){const s=t.iterator.next();if(s.done)t.iterator=void 0;else return s}const{done:r,value:i}=this.nextFn(t.this);if(!r){const s=e(i);if(On(s))t.iterator=s[Symbol.iterator]();else return{done:!1,value:s}}}while(t.iterator);return ke})}flat(e){if(e===void 0&&(e=1),e<=0)return this;const t=e>1?this.flat(e-1):this;return new ie(()=>({this:t.startFn()}),r=>{do{if(r.iterator){const a=r.iterator.next();if(a.done)r.iterator=void 0;else return a}const{done:i,value:s}=t.nextFn(r.this);if(!i)if(On(s))r.iterator=s[Symbol.iterator]();else return{done:!1,value:s}}while(r.iterator);return ke})}head(){const t=this.iterator().next();if(!t.done)return t.value}tail(e=1){return new ie(()=>{const t=this.startFn();for(let r=0;r({size:0,state:this.startFn()}),t=>(t.size++,t.size>e?ke:this.nextFn(t.state)))}distinct(e){const t=new Set;return this.filter(r=>{const i=e?e(r):r;return t.has(i)?!1:(t.add(i),!0)})}exclude(e,t){const r=new Set;for(const i of e){const s=t?t(i):i;r.add(s)}return this.filter(i=>{const s=t?t(i):i;return!r.has(s)})}}function ku(n){return typeof n=="string"?n:typeof n>"u"?"undefined":typeof n.toString=="function"?n.toString():Object.prototype.toString.call(n)}function On(n){return!!n&&typeof n[Symbol.iterator]=="function"}const Iu=new ie(()=>{},()=>ke),ke=Object.freeze({done:!0,value:void 0});function Q(...n){if(n.length===1){const e=n[0];if(e instanceof ie)return e;if(On(e))return new ie(()=>e[Symbol.iterator](),t=>t.next());if(typeof e.length=="number")return new ie(()=>({index:0}),t=>t.index1?new ie(()=>({collIndex:0,arrIndex:0}),e=>{do{if(e.iterator){const t=e.iterator.next();if(!t.done)return t;e.iterator=void 0}if(e.array){if(e.arrIndex({iterators:r!=null&&r.includeRoot?[[e][Symbol.iterator]()]:[t(e)[Symbol.iterator]()],pruned:!1}),i=>{for(i.pruned&&(i.iterators.pop(),i.pruned=!1);i.iterators.length>0;){const a=i.iterators[i.iterators.length-1].next();if(a.done)i.iterators.pop();else return i.iterators.push(t(a.value)[Symbol.iterator]()),a}return ke})}iterator(){const e={state:this.startFn(),next:()=>this.nextFn(e.state),prune:()=>{e.state.pruned=!0},[Symbol.iterator]:()=>e};return e}}var Pr;(function(n){function e(s){return s.reduce((a,o)=>a+o,0)}n.sum=e;function t(s){return s.reduce((a,o)=>a*o,0)}n.product=t;function r(s){return s.reduce((a,o)=>Math.min(a,o))}n.min=r;function i(s){return s.reduce((a,o)=>Math.max(a,o))}n.max=i})(Pr||(Pr={}));function Mr(n){return new Ai(n,e=>Gt(e)?e.content:[],{includeRoot:!0})}function Su(n,e){for(;n.container;)if(n=n.container,n===e)return!0;return!1}function Dr(n){return{start:{character:n.startColumn-1,line:n.startLine-1},end:{character:n.endColumn,line:n.endLine-1}}}function Ln(n){if(!n)return;const{offset:e,end:t,range:r}=n;return{range:r,offset:e,end:t,length:t-e}}var Ze;(function(n){n[n.Before=0]="Before",n[n.After=1]="After",n[n.OverlapFront=2]="OverlapFront",n[n.OverlapBack=3]="OverlapBack",n[n.Inside=4]="Inside"})(Ze||(Ze={}));function xu(n,e){if(n.end.linee.end.line||n.start.line===e.end.line&&n.start.character>e.end.character)return Ze.After;const t=n.start.line>e.start.line||n.start.line===e.start.line&&n.start.character>=e.start.character,r=n.end.lineZe.After}const wu=/^[\w\p{L}]$/u;function Ou(n,e){if(n){const t=Lu(n,!0);if(t&&rs(t,e))return t;if(yo(n)){const r=n.content.findIndex(i=>!i.hidden);for(let i=r-1;i>=0;i--){const s=n.content[i];if(rs(s,e))return s}}}}function rs(n,e){return go(n)&&e.includes(n.tokenType.name)}function Lu(n,e=!0){for(;n.container;){const t=n.container;let r=t.content.indexOf(n);for(;r>0;){r--;const i=t.content[r];if(e||!i.hidden)return i}n=t}}class To extends Error{constructor(e,t){super(e?`${t} at ${e.range.start.line}:${e.range.start.character}`:t)}}function ir(n){throw new Error("Error! The input value was not handled.")}const _r="AbstractRule",Er="AbstractType",is="Condition",$u="TypeDefinition",ss="ValueLiteral",vo="AbstractElement";function Pu(n){return M.isInstance(n,vo)}const Mu="ArrayLiteral",Du="ArrayType",_o="BooleanLiteral";function ju(n){return M.isInstance(n,_o)}const Eo="Conjunction";function Gu(n){return M.isInstance(n,Eo)}const Ro="Disjunction";function Uu(n){return M.isInstance(n,Ro)}const Fu="Grammar",Ao="InferredType";function bo(n){return M.isInstance(n,Ao)}const No="Interface";function ko(n){return M.isInstance(n,No)}const Io="Negation";function Bu(n){return M.isInstance(n,Io)}const Hu="NumberLiteral",Vu="Parameter",So="ParameterReference";function Wu(n){return M.isInstance(n,So)}const xo="ParserRule";function Se(n){return M.isInstance(n,xo)}const Ku="ReferenceType",zu="ReturnType";function qu(n){return M.isInstance(n,zu)}const Co="SimpleType";function Yu(n){return M.isInstance(n,Co)}const Xu="StringLiteral",jr="TerminalRule";function gt(n){return M.isInstance(n,jr)}const wo="Type";function Oo(n){return M.isInstance(n,wo)}const Ju="UnionType",Lo="Action";function sr(n){return M.isInstance(n,Lo)}const $o="Alternatives";function Po(n){return M.isInstance(n,$o)}const Mo="Assignment";function ut(n){return M.isInstance(n,Mo)}const Do="CharacterRange";function Qu(n){return M.isInstance(n,Do)}const jo="CrossReference";function bi(n){return M.isInstance(n,jo)}const Go="EndOfFile";function Zu(n){return M.isInstance(n,Go)}const Uo="Group";function Ni(n){return M.isInstance(n,Uo)}const Fo="Keyword";function dt(n){return M.isInstance(n,Fo)}const Bo="NegatedToken";function ed(n){return M.isInstance(n,Bo)}const Ho="RegexToken";function td(n){return M.isInstance(n,Ho)}const Vo="RuleCall";function ft(n){return M.isInstance(n,Vo)}const Wo="TerminalAlternatives";function nd(n){return M.isInstance(n,Wo)}const Ko="TerminalGroup";function rd(n){return M.isInstance(n,Ko)}const zo="TerminalRuleCall";function id(n){return M.isInstance(n,zo)}const qo="UnorderedGroup";function Yo(n){return M.isInstance(n,qo)}const Xo="UntilToken";function sd(n){return M.isInstance(n,Xo)}const Jo="Wildcard";function ad(n){return M.isInstance(n,Jo)}class Qo extends mo{getAllTypes(){return["AbstractElement","AbstractRule","AbstractType","Action","Alternatives","ArrayLiteral","ArrayType","Assignment","BooleanLiteral","CharacterRange","Condition","Conjunction","CrossReference","Disjunction","EndOfFile","Grammar","GrammarImport","Group","InferredType","Interface","Keyword","NamedArgument","NegatedToken","Negation","NumberLiteral","Parameter","ParameterReference","ParserRule","ReferenceType","RegexToken","ReturnType","RuleCall","SimpleType","StringLiteral","TerminalAlternatives","TerminalGroup","TerminalRule","TerminalRuleCall","Type","TypeAttribute","TypeDefinition","UnionType","UnorderedGroup","UntilToken","ValueLiteral","Wildcard"]}computeIsSubtype(e,t){switch(e){case Lo:case $o:case Mo:case Do:case jo:case Go:case Uo:case Fo:case Bo:case Ho:case Vo:case Wo:case Ko:case zo:case qo:case Xo:case Jo:return this.isSubtype(vo,t);case Mu:case Hu:case Xu:return this.isSubtype(ss,t);case Du:case Ku:case Co:case Ju:return this.isSubtype($u,t);case _o:return this.isSubtype(is,t)||this.isSubtype(ss,t);case Eo:case Ro:case Io:case So:return this.isSubtype(is,t);case Ao:case No:case wo:return this.isSubtype(Er,t);case xo:return this.isSubtype(_r,t)||this.isSubtype(Er,t);case jr:return this.isSubtype(_r,t);default:return!1}}getReferenceType(e){const t=`${e.container.$type}:${e.property}`;switch(t){case"Action:type":case"CrossReference:type":case"Interface:superTypes":case"ParserRule:returnType":case"SimpleType:typeRef":return Er;case"Grammar:hiddenTokens":case"ParserRule:hiddenTokens":case"RuleCall:rule":return _r;case"Grammar:usedGrammars":return Fu;case"NamedArgument:parameter":case"ParameterReference:parameter":return Vu;case"TerminalRuleCall:rule":return jr;default:throw new Error(`${t} is not a valid reference id.`)}}getTypeMetaData(e){switch(e){case"AbstractElement":return{name:"AbstractElement",properties:[{name:"cardinality"},{name:"lookahead"}]};case"ArrayLiteral":return{name:"ArrayLiteral",properties:[{name:"elements",defaultValue:[]}]};case"ArrayType":return{name:"ArrayType",properties:[{name:"elementType"}]};case"BooleanLiteral":return{name:"BooleanLiteral",properties:[{name:"true",defaultValue:!1}]};case"Conjunction":return{name:"Conjunction",properties:[{name:"left"},{name:"right"}]};case"Disjunction":return{name:"Disjunction",properties:[{name:"left"},{name:"right"}]};case"Grammar":return{name:"Grammar",properties:[{name:"definesHiddenTokens",defaultValue:!1},{name:"hiddenTokens",defaultValue:[]},{name:"imports",defaultValue:[]},{name:"interfaces",defaultValue:[]},{name:"isDeclared",defaultValue:!1},{name:"name"},{name:"rules",defaultValue:[]},{name:"types",defaultValue:[]},{name:"usedGrammars",defaultValue:[]}]};case"GrammarImport":return{name:"GrammarImport",properties:[{name:"path"}]};case"InferredType":return{name:"InferredType",properties:[{name:"name"}]};case"Interface":return{name:"Interface",properties:[{name:"attributes",defaultValue:[]},{name:"name"},{name:"superTypes",defaultValue:[]}]};case"NamedArgument":return{name:"NamedArgument",properties:[{name:"calledByName",defaultValue:!1},{name:"parameter"},{name:"value"}]};case"Negation":return{name:"Negation",properties:[{name:"value"}]};case"NumberLiteral":return{name:"NumberLiteral",properties:[{name:"value"}]};case"Parameter":return{name:"Parameter",properties:[{name:"name"}]};case"ParameterReference":return{name:"ParameterReference",properties:[{name:"parameter"}]};case"ParserRule":return{name:"ParserRule",properties:[{name:"dataType"},{name:"definesHiddenTokens",defaultValue:!1},{name:"definition"},{name:"entry",defaultValue:!1},{name:"fragment",defaultValue:!1},{name:"hiddenTokens",defaultValue:[]},{name:"inferredType"},{name:"name"},{name:"parameters",defaultValue:[]},{name:"returnType"},{name:"wildcard",defaultValue:!1}]};case"ReferenceType":return{name:"ReferenceType",properties:[{name:"referenceType"}]};case"ReturnType":return{name:"ReturnType",properties:[{name:"name"}]};case"SimpleType":return{name:"SimpleType",properties:[{name:"primitiveType"},{name:"stringType"},{name:"typeRef"}]};case"StringLiteral":return{name:"StringLiteral",properties:[{name:"value"}]};case"TerminalRule":return{name:"TerminalRule",properties:[{name:"definition"},{name:"fragment",defaultValue:!1},{name:"hidden",defaultValue:!1},{name:"name"},{name:"type"}]};case"Type":return{name:"Type",properties:[{name:"name"},{name:"type"}]};case"TypeAttribute":return{name:"TypeAttribute",properties:[{name:"defaultValue"},{name:"isOptional",defaultValue:!1},{name:"name"},{name:"type"}]};case"UnionType":return{name:"UnionType",properties:[{name:"types",defaultValue:[]}]};case"Action":return{name:"Action",properties:[{name:"cardinality"},{name:"feature"},{name:"inferredType"},{name:"lookahead"},{name:"operator"},{name:"type"}]};case"Alternatives":return{name:"Alternatives",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"Assignment":return{name:"Assignment",properties:[{name:"cardinality"},{name:"feature"},{name:"lookahead"},{name:"operator"},{name:"terminal"}]};case"CharacterRange":return{name:"CharacterRange",properties:[{name:"cardinality"},{name:"left"},{name:"lookahead"},{name:"right"}]};case"CrossReference":return{name:"CrossReference",properties:[{name:"cardinality"},{name:"deprecatedSyntax",defaultValue:!1},{name:"lookahead"},{name:"terminal"},{name:"type"}]};case"EndOfFile":return{name:"EndOfFile",properties:[{name:"cardinality"},{name:"lookahead"}]};case"Group":return{name:"Group",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"guardCondition"},{name:"lookahead"}]};case"Keyword":return{name:"Keyword",properties:[{name:"cardinality"},{name:"lookahead"},{name:"value"}]};case"NegatedToken":return{name:"NegatedToken",properties:[{name:"cardinality"},{name:"lookahead"},{name:"terminal"}]};case"RegexToken":return{name:"RegexToken",properties:[{name:"cardinality"},{name:"lookahead"},{name:"regex"}]};case"RuleCall":return{name:"RuleCall",properties:[{name:"arguments",defaultValue:[]},{name:"cardinality"},{name:"lookahead"},{name:"rule"}]};case"TerminalAlternatives":return{name:"TerminalAlternatives",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"TerminalGroup":return{name:"TerminalGroup",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"TerminalRuleCall":return{name:"TerminalRuleCall",properties:[{name:"cardinality"},{name:"lookahead"},{name:"rule"}]};case"UnorderedGroup":return{name:"UnorderedGroup",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"UntilToken":return{name:"UntilToken",properties:[{name:"cardinality"},{name:"lookahead"},{name:"terminal"}]};case"Wildcard":return{name:"Wildcard",properties:[{name:"cardinality"},{name:"lookahead"}]};default:return{name:e,properties:[]}}}}const M=new Qo;function od(n){for(const[e,t]of Object.entries(n))e.startsWith("$")||(Array.isArray(t)?t.forEach((r,i)=>{ae(r)&&(r.$container=n,r.$containerProperty=e,r.$containerIndex=i)}):ae(t)&&(t.$container=n,t.$containerProperty=e))}function ar(n,e){let t=n;for(;t;){if(e(t))return t;t=t.$container}}function Ue(n){const t=ld(n).$document;if(!t)throw new Error("AST node has no document.");return t}function ld(n){for(;n.$container;)n=n.$container;return n}function ki(n,e){if(!n)throw new Error("Node must be an AstNode.");const t=e==null?void 0:e.range;return new ie(()=>({keys:Object.keys(n),keyIndex:0,arrayIndex:0}),r=>{for(;r.keyIndexki(t,e))}function Et(n,e){if(!n)throw new Error("Root node must be an AstNode.");return new Ai(n,t=>ki(t,e),{includeRoot:!0})}function as(n,e){var t;if(!e)return!0;const r=(t=n.$cstNode)===null||t===void 0?void 0:t.range;return r?Cu(r,e):!1}function Zo(n){return new ie(()=>({keys:Object.keys(n),keyIndex:0,arrayIndex:0}),e=>{for(;e.keyIndexe in n?Gc(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var Je=(n,e,t)=>Uc(n,typeof e!="symbol"?e+"":e,t);import{bz as Fc,bA as Bc,aQ as ao,bj as Hc,aU as Vc,aR as Z,aA as Wc,aB as Qi,b9 as Kc,bc as oo,bd as lo,ba as zc,bo as Zi,aD as mt,aE as D,aS as es,aM as qc,bB as tn}from"./md-index-1F_vrIf8.js";import{k as Mt,j as vi,g as Kt,S as Yc,w as Xc,x as Jc,c as co,v as K,y as uo,l as Qc,z as Zc,A as eu,B as tu,C as nu,a as fo,d as S,i as ze,r as oe,f as Ee,D as q}from"./md-_baseUniq-CaouebKG.js";import{j as _i,m as b,d as ru,f as Ie,g as Dt,h as x,i as Ei,l as jt,e as iu}from"./md-_basePickBy-BEC9IKhF.js";import{c as te}from"./md-clone-Cc6Gk5Be.js";var su=Object.prototype,au=su.hasOwnProperty,_e=Fc(function(n,e){if(Bc(e)||ao(e)){Hc(e,Mt(e),n);return}for(var t in e)au.call(e,t)&&Vc(n,t,e[t])});function ho(n,e,t){var r=-1,i=n.length;e<0&&(e=-e>i?0:i+e),t=t>i?i:t,t<0&&(t+=i),i=e>t?0:t-e>>>0,e>>>=0;for(var s=Array(i);++r=uu&&(s=Jc,a=!1,e=new Yc(e));e:for(;++i-1:!!i&&uo(n,e,t)>-1}function ts(n,e,t){var r=n==null?0:n.length;if(!r)return-1;var i=0;return uo(n,e,i)}var vu="[object RegExp]";function _u(n){return oo(n)&&lo(n)==vu}var ns=Zi&&Zi.isRegExp,qe=ns?zc(ns):_u,Eu="Expected a function";function Ru(n){if(typeof n!="function")throw new TypeError(Eu);return function(){var e=arguments;switch(e.length){case 0:return!n.call(this);case 1:return!n.call(this,e[0]);case 2:return!n.call(this,e[0],e[1]);case 3:return!n.call(this,e[0],e[1],e[2])}return!n.apply(this,e)}}function Pe(n,e){if(n==null)return{};var t=Qc(Zc(n),function(r){return[r]});return e=Kt(e),ru(n,t,function(r,i){return e(r,i[0])})}function rr(n,e){var t=Z(n)?eu:tu;return t(n,Ru(Kt(e)))}function Au(n,e){var t;return vi(n,function(r,i,s){return t=e(r,i,s),!t}),!!t}function po(n,e,t){var r=Z(n)?nu:Au;return r(n,Kt(e))}function Ri(n){return n&&n.length?fo(n):[]}function bu(n,e){return n&&n.length?fo(n,Kt(e)):[]}function ae(n){return typeof n=="object"&&n!==null&&typeof n.$type=="string"}function Ge(n){return typeof n=="object"&&n!==null&&typeof n.$refText=="string"}function Nu(n){return typeof n=="object"&&n!==null&&typeof n.name=="string"&&typeof n.type=="string"&&typeof n.path=="string"}function kn(n){return typeof n=="object"&&n!==null&&ae(n.container)&&Ge(n.reference)&&typeof n.message=="string"}class mo{constructor(){this.subtypes={},this.allSubtypes={}}isInstance(e,t){return ae(e)&&this.isSubtype(e.$type,t)}isSubtype(e,t){if(e===t)return!0;let r=this.subtypes[e];r||(r=this.subtypes[e]={});const i=r[t];if(i!==void 0)return i;{const s=this.computeIsSubtype(e,t);return r[t]=s,s}}getAllSubTypes(e){const t=this.allSubtypes[e];if(t)return t;{const r=this.getAllTypes(),i=[];for(const s of r)this.isSubtype(s,e)&&i.push(s);return this.allSubtypes[e]=i,i}}}function Gt(n){return typeof n=="object"&&n!==null&&Array.isArray(n.content)}function go(n){return typeof n=="object"&&n!==null&&typeof n.tokenType=="object"}function yo(n){return Gt(n)&&typeof n.fullText=="string"}class ie{constructor(e,t){this.startFn=e,this.nextFn=t}iterator(){const e={state:this.startFn(),next:()=>this.nextFn(e.state),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){const e=this.iterator();let t=0,r=e.next();for(;!r.done;)t++,r=e.next();return t}toArray(){const e=[],t=this.iterator();let r;do r=t.next(),r.value!==void 0&&e.push(r.value);while(!r.done);return e}toSet(){return new Set(this)}toMap(e,t){const r=this.map(i=>[e?e(i):i,t?t(i):i]);return new Map(r)}toString(){return this.join()}concat(e){const t=e[Symbol.iterator]();return new ie(()=>({first:this.startFn(),firstDone:!1}),r=>{let i;if(!r.firstDone){do if(i=this.nextFn(r.first),!i.done)return i;while(!i.done);r.firstDone=!0}do if(i=t.next(),!i.done)return i;while(!i.done);return ke})}join(e=","){const t=this.iterator();let r="",i,s=!1;do i=t.next(),i.done||(s&&(r+=e),r+=ku(i.value)),s=!0;while(!i.done);return r}indexOf(e,t=0){const r=this.iterator();let i=0,s=r.next();for(;!s.done;){if(i>=t&&s.value===e)return i;s=r.next(),i++}return-1}every(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(!e(r.value))return!1;r=t.next()}return!0}some(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(e(r.value))return!0;r=t.next()}return!1}forEach(e){const t=this.iterator();let r=0,i=t.next();for(;!i.done;)e(i.value,r),i=t.next(),r++}map(e){return new ie(this.startFn,t=>{const{done:r,value:i}=this.nextFn(t);return r?ke:{done:!1,value:e(i)}})}filter(e){return new ie(this.startFn,t=>{let r;do if(r=this.nextFn(t),!r.done&&e(r.value))return r;while(!r.done);return ke})}nonNullable(){return this.filter(e=>e!=null)}reduce(e,t){const r=this.iterator();let i=t,s=r.next();for(;!s.done;)i===void 0?i=s.value:i=e(i,s.value),s=r.next();return i}reduceRight(e,t){return this.recursiveReduce(this.iterator(),e,t)}recursiveReduce(e,t,r){const i=e.next();if(i.done)return r;const s=this.recursiveReduce(e,t,r);return s===void 0?i.value:t(s,i.value)}find(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(e(r.value))return r.value;r=t.next()}}findIndex(e){const t=this.iterator();let r=0,i=t.next();for(;!i.done;){if(e(i.value))return r;i=t.next(),r++}return-1}includes(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(r.value===e)return!0;r=t.next()}return!1}flatMap(e){return new ie(()=>({this:this.startFn()}),t=>{do{if(t.iterator){const s=t.iterator.next();if(s.done)t.iterator=void 0;else return s}const{done:r,value:i}=this.nextFn(t.this);if(!r){const s=e(i);if(On(s))t.iterator=s[Symbol.iterator]();else return{done:!1,value:s}}}while(t.iterator);return ke})}flat(e){if(e===void 0&&(e=1),e<=0)return this;const t=e>1?this.flat(e-1):this;return new ie(()=>({this:t.startFn()}),r=>{do{if(r.iterator){const a=r.iterator.next();if(a.done)r.iterator=void 0;else return a}const{done:i,value:s}=t.nextFn(r.this);if(!i)if(On(s))r.iterator=s[Symbol.iterator]();else return{done:!1,value:s}}while(r.iterator);return ke})}head(){const t=this.iterator().next();if(!t.done)return t.value}tail(e=1){return new ie(()=>{const t=this.startFn();for(let r=0;r({size:0,state:this.startFn()}),t=>(t.size++,t.size>e?ke:this.nextFn(t.state)))}distinct(e){const t=new Set;return this.filter(r=>{const i=e?e(r):r;return t.has(i)?!1:(t.add(i),!0)})}exclude(e,t){const r=new Set;for(const i of e){const s=t?t(i):i;r.add(s)}return this.filter(i=>{const s=t?t(i):i;return!r.has(s)})}}function ku(n){return typeof n=="string"?n:typeof n>"u"?"undefined":typeof n.toString=="function"?n.toString():Object.prototype.toString.call(n)}function On(n){return!!n&&typeof n[Symbol.iterator]=="function"}const Iu=new ie(()=>{},()=>ke),ke=Object.freeze({done:!0,value:void 0});function Q(...n){if(n.length===1){const e=n[0];if(e instanceof ie)return e;if(On(e))return new ie(()=>e[Symbol.iterator](),t=>t.next());if(typeof e.length=="number")return new ie(()=>({index:0}),t=>t.index1?new ie(()=>({collIndex:0,arrIndex:0}),e=>{do{if(e.iterator){const t=e.iterator.next();if(!t.done)return t;e.iterator=void 0}if(e.array){if(e.arrIndex({iterators:r!=null&&r.includeRoot?[[e][Symbol.iterator]()]:[t(e)[Symbol.iterator]()],pruned:!1}),i=>{for(i.pruned&&(i.iterators.pop(),i.pruned=!1);i.iterators.length>0;){const a=i.iterators[i.iterators.length-1].next();if(a.done)i.iterators.pop();else return i.iterators.push(t(a.value)[Symbol.iterator]()),a}return ke})}iterator(){const e={state:this.startFn(),next:()=>this.nextFn(e.state),prune:()=>{e.state.pruned=!0},[Symbol.iterator]:()=>e};return e}}var Pr;(function(n){function e(s){return s.reduce((a,o)=>a+o,0)}n.sum=e;function t(s){return s.reduce((a,o)=>a*o,0)}n.product=t;function r(s){return s.reduce((a,o)=>Math.min(a,o))}n.min=r;function i(s){return s.reduce((a,o)=>Math.max(a,o))}n.max=i})(Pr||(Pr={}));function Mr(n){return new Ai(n,e=>Gt(e)?e.content:[],{includeRoot:!0})}function Su(n,e){for(;n.container;)if(n=n.container,n===e)return!0;return!1}function Dr(n){return{start:{character:n.startColumn-1,line:n.startLine-1},end:{character:n.endColumn,line:n.endLine-1}}}function Ln(n){if(!n)return;const{offset:e,end:t,range:r}=n;return{range:r,offset:e,end:t,length:t-e}}var Ze;(function(n){n[n.Before=0]="Before",n[n.After=1]="After",n[n.OverlapFront=2]="OverlapFront",n[n.OverlapBack=3]="OverlapBack",n[n.Inside=4]="Inside"})(Ze||(Ze={}));function xu(n,e){if(n.end.linee.end.line||n.start.line===e.end.line&&n.start.character>e.end.character)return Ze.After;const t=n.start.line>e.start.line||n.start.line===e.start.line&&n.start.character>=e.start.character,r=n.end.lineZe.After}const wu=/^[\w\p{L}]$/u;function Ou(n,e){if(n){const t=Lu(n,!0);if(t&&rs(t,e))return t;if(yo(n)){const r=n.content.findIndex(i=>!i.hidden);for(let i=r-1;i>=0;i--){const s=n.content[i];if(rs(s,e))return s}}}}function rs(n,e){return go(n)&&e.includes(n.tokenType.name)}function Lu(n,e=!0){for(;n.container;){const t=n.container;let r=t.content.indexOf(n);for(;r>0;){r--;const i=t.content[r];if(e||!i.hidden)return i}n=t}}class To extends Error{constructor(e,t){super(e?`${t} at ${e.range.start.line}:${e.range.start.character}`:t)}}function ir(n){throw new Error("Error! The input value was not handled.")}const _r="AbstractRule",Er="AbstractType",is="Condition",$u="TypeDefinition",ss="ValueLiteral",vo="AbstractElement";function Pu(n){return M.isInstance(n,vo)}const Mu="ArrayLiteral",Du="ArrayType",_o="BooleanLiteral";function ju(n){return M.isInstance(n,_o)}const Eo="Conjunction";function Gu(n){return M.isInstance(n,Eo)}const Ro="Disjunction";function Uu(n){return M.isInstance(n,Ro)}const Fu="Grammar",Ao="InferredType";function bo(n){return M.isInstance(n,Ao)}const No="Interface";function ko(n){return M.isInstance(n,No)}const Io="Negation";function Bu(n){return M.isInstance(n,Io)}const Hu="NumberLiteral",Vu="Parameter",So="ParameterReference";function Wu(n){return M.isInstance(n,So)}const xo="ParserRule";function Se(n){return M.isInstance(n,xo)}const Ku="ReferenceType",zu="ReturnType";function qu(n){return M.isInstance(n,zu)}const Co="SimpleType";function Yu(n){return M.isInstance(n,Co)}const Xu="StringLiteral",jr="TerminalRule";function gt(n){return M.isInstance(n,jr)}const wo="Type";function Oo(n){return M.isInstance(n,wo)}const Ju="UnionType",Lo="Action";function sr(n){return M.isInstance(n,Lo)}const $o="Alternatives";function Po(n){return M.isInstance(n,$o)}const Mo="Assignment";function ut(n){return M.isInstance(n,Mo)}const Do="CharacterRange";function Qu(n){return M.isInstance(n,Do)}const jo="CrossReference";function bi(n){return M.isInstance(n,jo)}const Go="EndOfFile";function Zu(n){return M.isInstance(n,Go)}const Uo="Group";function Ni(n){return M.isInstance(n,Uo)}const Fo="Keyword";function dt(n){return M.isInstance(n,Fo)}const Bo="NegatedToken";function ed(n){return M.isInstance(n,Bo)}const Ho="RegexToken";function td(n){return M.isInstance(n,Ho)}const Vo="RuleCall";function ft(n){return M.isInstance(n,Vo)}const Wo="TerminalAlternatives";function nd(n){return M.isInstance(n,Wo)}const Ko="TerminalGroup";function rd(n){return M.isInstance(n,Ko)}const zo="TerminalRuleCall";function id(n){return M.isInstance(n,zo)}const qo="UnorderedGroup";function Yo(n){return M.isInstance(n,qo)}const Xo="UntilToken";function sd(n){return M.isInstance(n,Xo)}const Jo="Wildcard";function ad(n){return M.isInstance(n,Jo)}class Qo extends mo{getAllTypes(){return["AbstractElement","AbstractRule","AbstractType","Action","Alternatives","ArrayLiteral","ArrayType","Assignment","BooleanLiteral","CharacterRange","Condition","Conjunction","CrossReference","Disjunction","EndOfFile","Grammar","GrammarImport","Group","InferredType","Interface","Keyword","NamedArgument","NegatedToken","Negation","NumberLiteral","Parameter","ParameterReference","ParserRule","ReferenceType","RegexToken","ReturnType","RuleCall","SimpleType","StringLiteral","TerminalAlternatives","TerminalGroup","TerminalRule","TerminalRuleCall","Type","TypeAttribute","TypeDefinition","UnionType","UnorderedGroup","UntilToken","ValueLiteral","Wildcard"]}computeIsSubtype(e,t){switch(e){case Lo:case $o:case Mo:case Do:case jo:case Go:case Uo:case Fo:case Bo:case Ho:case Vo:case Wo:case Ko:case zo:case qo:case Xo:case Jo:return this.isSubtype(vo,t);case Mu:case Hu:case Xu:return this.isSubtype(ss,t);case Du:case Ku:case Co:case Ju:return this.isSubtype($u,t);case _o:return this.isSubtype(is,t)||this.isSubtype(ss,t);case Eo:case Ro:case Io:case So:return this.isSubtype(is,t);case Ao:case No:case wo:return this.isSubtype(Er,t);case xo:return this.isSubtype(_r,t)||this.isSubtype(Er,t);case jr:return this.isSubtype(_r,t);default:return!1}}getReferenceType(e){const t=`${e.container.$type}:${e.property}`;switch(t){case"Action:type":case"CrossReference:type":case"Interface:superTypes":case"ParserRule:returnType":case"SimpleType:typeRef":return Er;case"Grammar:hiddenTokens":case"ParserRule:hiddenTokens":case"RuleCall:rule":return _r;case"Grammar:usedGrammars":return Fu;case"NamedArgument:parameter":case"ParameterReference:parameter":return Vu;case"TerminalRuleCall:rule":return jr;default:throw new Error(`${t} is not a valid reference id.`)}}getTypeMetaData(e){switch(e){case"AbstractElement":return{name:"AbstractElement",properties:[{name:"cardinality"},{name:"lookahead"}]};case"ArrayLiteral":return{name:"ArrayLiteral",properties:[{name:"elements",defaultValue:[]}]};case"ArrayType":return{name:"ArrayType",properties:[{name:"elementType"}]};case"BooleanLiteral":return{name:"BooleanLiteral",properties:[{name:"true",defaultValue:!1}]};case"Conjunction":return{name:"Conjunction",properties:[{name:"left"},{name:"right"}]};case"Disjunction":return{name:"Disjunction",properties:[{name:"left"},{name:"right"}]};case"Grammar":return{name:"Grammar",properties:[{name:"definesHiddenTokens",defaultValue:!1},{name:"hiddenTokens",defaultValue:[]},{name:"imports",defaultValue:[]},{name:"interfaces",defaultValue:[]},{name:"isDeclared",defaultValue:!1},{name:"name"},{name:"rules",defaultValue:[]},{name:"types",defaultValue:[]},{name:"usedGrammars",defaultValue:[]}]};case"GrammarImport":return{name:"GrammarImport",properties:[{name:"path"}]};case"InferredType":return{name:"InferredType",properties:[{name:"name"}]};case"Interface":return{name:"Interface",properties:[{name:"attributes",defaultValue:[]},{name:"name"},{name:"superTypes",defaultValue:[]}]};case"NamedArgument":return{name:"NamedArgument",properties:[{name:"calledByName",defaultValue:!1},{name:"parameter"},{name:"value"}]};case"Negation":return{name:"Negation",properties:[{name:"value"}]};case"NumberLiteral":return{name:"NumberLiteral",properties:[{name:"value"}]};case"Parameter":return{name:"Parameter",properties:[{name:"name"}]};case"ParameterReference":return{name:"ParameterReference",properties:[{name:"parameter"}]};case"ParserRule":return{name:"ParserRule",properties:[{name:"dataType"},{name:"definesHiddenTokens",defaultValue:!1},{name:"definition"},{name:"entry",defaultValue:!1},{name:"fragment",defaultValue:!1},{name:"hiddenTokens",defaultValue:[]},{name:"inferredType"},{name:"name"},{name:"parameters",defaultValue:[]},{name:"returnType"},{name:"wildcard",defaultValue:!1}]};case"ReferenceType":return{name:"ReferenceType",properties:[{name:"referenceType"}]};case"ReturnType":return{name:"ReturnType",properties:[{name:"name"}]};case"SimpleType":return{name:"SimpleType",properties:[{name:"primitiveType"},{name:"stringType"},{name:"typeRef"}]};case"StringLiteral":return{name:"StringLiteral",properties:[{name:"value"}]};case"TerminalRule":return{name:"TerminalRule",properties:[{name:"definition"},{name:"fragment",defaultValue:!1},{name:"hidden",defaultValue:!1},{name:"name"},{name:"type"}]};case"Type":return{name:"Type",properties:[{name:"name"},{name:"type"}]};case"TypeAttribute":return{name:"TypeAttribute",properties:[{name:"defaultValue"},{name:"isOptional",defaultValue:!1},{name:"name"},{name:"type"}]};case"UnionType":return{name:"UnionType",properties:[{name:"types",defaultValue:[]}]};case"Action":return{name:"Action",properties:[{name:"cardinality"},{name:"feature"},{name:"inferredType"},{name:"lookahead"},{name:"operator"},{name:"type"}]};case"Alternatives":return{name:"Alternatives",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"Assignment":return{name:"Assignment",properties:[{name:"cardinality"},{name:"feature"},{name:"lookahead"},{name:"operator"},{name:"terminal"}]};case"CharacterRange":return{name:"CharacterRange",properties:[{name:"cardinality"},{name:"left"},{name:"lookahead"},{name:"right"}]};case"CrossReference":return{name:"CrossReference",properties:[{name:"cardinality"},{name:"deprecatedSyntax",defaultValue:!1},{name:"lookahead"},{name:"terminal"},{name:"type"}]};case"EndOfFile":return{name:"EndOfFile",properties:[{name:"cardinality"},{name:"lookahead"}]};case"Group":return{name:"Group",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"guardCondition"},{name:"lookahead"}]};case"Keyword":return{name:"Keyword",properties:[{name:"cardinality"},{name:"lookahead"},{name:"value"}]};case"NegatedToken":return{name:"NegatedToken",properties:[{name:"cardinality"},{name:"lookahead"},{name:"terminal"}]};case"RegexToken":return{name:"RegexToken",properties:[{name:"cardinality"},{name:"lookahead"},{name:"regex"}]};case"RuleCall":return{name:"RuleCall",properties:[{name:"arguments",defaultValue:[]},{name:"cardinality"},{name:"lookahead"},{name:"rule"}]};case"TerminalAlternatives":return{name:"TerminalAlternatives",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"TerminalGroup":return{name:"TerminalGroup",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"TerminalRuleCall":return{name:"TerminalRuleCall",properties:[{name:"cardinality"},{name:"lookahead"},{name:"rule"}]};case"UnorderedGroup":return{name:"UnorderedGroup",properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case"UntilToken":return{name:"UntilToken",properties:[{name:"cardinality"},{name:"lookahead"},{name:"terminal"}]};case"Wildcard":return{name:"Wildcard",properties:[{name:"cardinality"},{name:"lookahead"}]};default:return{name:e,properties:[]}}}}const M=new Qo;function od(n){for(const[e,t]of Object.entries(n))e.startsWith("$")||(Array.isArray(t)?t.forEach((r,i)=>{ae(r)&&(r.$container=n,r.$containerProperty=e,r.$containerIndex=i)}):ae(t)&&(t.$container=n,t.$containerProperty=e))}function ar(n,e){let t=n;for(;t;){if(e(t))return t;t=t.$container}}function Ue(n){const t=ld(n).$document;if(!t)throw new Error("AST node has no document.");return t}function ld(n){for(;n.$container;)n=n.$container;return n}function ki(n,e){if(!n)throw new Error("Node must be an AstNode.");const t=e==null?void 0:e.range;return new ie(()=>({keys:Object.keys(n),keyIndex:0,arrayIndex:0}),r=>{for(;r.keyIndexki(t,e))}function Et(n,e){if(!n)throw new Error("Root node must be an AstNode.");return new Ai(n,t=>ki(t,e),{includeRoot:!0})}function as(n,e){var t;if(!e)return!0;const r=(t=n.$cstNode)===null||t===void 0?void 0:t.range;return r?Cu(r,e):!1}function Zo(n){return new ie(()=>({keys:Object.keys(n),keyIndex:0,arrayIndex:0}),e=>{for(;e.keyIndexs.state.transitions),i=bu(r.filter(s=>s instanceof Di).map(s=>s.tokenType),s=>s.tokenTypeIdx);return{actualToken:t,possibleTokenTypes:i,tokenPath:n}}function mp(n,e){return n.edges[e.tokenTypeIdx]}function gp(n,e,t){const r=new qr,i=[];for(const a of n.elements){if(t.is(a.alt)===!1)continue;if(a.state.type===vn){i.push(a);continue}const o=a.state.transitions.length;for(let l=0;l0&&!Ep(s))for(const a of i)s.add(a);return s}function yp(n,e){if(n instanceof Di&&Al(e,n.tokenType))return n.target}function Tp(n,e){let t;for(const r of n.elements)if(e.is(r.alt)===!0){if(t===void 0)t=r.alt;else if(t!==r.alt)return}return t}function Jl(n){return{configs:n,edges:{},isAcceptState:!1,prediction:-1}}function Ms(n,e,t,r){return r=Ql(n,r),e.edges[t.tokenTypeIdx]=r,r}function Ql(n,e){if(e===Hn)return e;const t=e.configs.key,r=n.states[t];return r!==void 0?r:(e.configs.finalize(),n.states[t]=e,e)}function vp(n){const e=new qr,t=n.transitions.length;for(let r=0;r0){const i=[...n.stack],a={state:i.pop(),alt:n.alt,stack:i};Vn(a,e)}else e.add(n);return}t.epsilonOnlyTransitions||e.add(n);const r=t.transitions.length;for(let i=0;i1)return!0;return!1}function kp(n){for(const e of Array.from(n.values()))if(Object.keys(e).length===1)return!0;return!1}var Ds;(function(n){function e(t){return typeof t=="string"}n.is=e})(Ds||(Ds={}));var Yr;(function(n){function e(t){return typeof t=="string"}n.is=e})(Yr||(Yr={}));var js;(function(n){n.MIN_VALUE=-2147483648,n.MAX_VALUE=2147483647;function e(t){return typeof t=="number"&&n.MIN_VALUE<=t&&t<=n.MAX_VALUE}n.is=e})(js||(js={}));var Wn;(function(n){n.MIN_VALUE=0,n.MAX_VALUE=2147483647;function e(t){return typeof t=="number"&&n.MIN_VALUE<=t&&t<=n.MAX_VALUE}n.is=e})(Wn||(Wn={}));var P;(function(n){function e(r,i){return r===Number.MAX_VALUE&&(r=Wn.MAX_VALUE),i===Number.MAX_VALUE&&(i=Wn.MAX_VALUE),{line:r,character:i}}n.create=e;function t(r){let i=r;return p.objectLiteral(i)&&p.uinteger(i.line)&&p.uinteger(i.character)}n.is=t})(P||(P={}));var $;(function(n){function e(r,i,s,a){if(p.uinteger(r)&&p.uinteger(i)&&p.uinteger(s)&&p.uinteger(a))return{start:P.create(r,i),end:P.create(s,a)};if(P.is(r)&&P.is(i))return{start:r,end:i};throw new Error(`Range#create called with invalid arguments[${r}, ${i}, ${s}, ${a}]`)}n.create=e;function t(r){let i=r;return p.objectLiteral(i)&&P.is(i.start)&&P.is(i.end)}n.is=t})($||($={}));var Kn;(function(n){function e(r,i){return{uri:r,range:i}}n.create=e;function t(r){let i=r;return p.objectLiteral(i)&&$.is(i.range)&&(p.string(i.uri)||p.undefined(i.uri))}n.is=t})(Kn||(Kn={}));var Gs;(function(n){function e(r,i,s,a){return{targetUri:r,targetRange:i,targetSelectionRange:s,originSelectionRange:a}}n.create=e;function t(r){let i=r;return p.objectLiteral(i)&&$.is(i.targetRange)&&p.string(i.targetUri)&&$.is(i.targetSelectionRange)&&($.is(i.originSelectionRange)||p.undefined(i.originSelectionRange))}n.is=t})(Gs||(Gs={}));var Xr;(function(n){function e(r,i,s,a){return{red:r,green:i,blue:s,alpha:a}}n.create=e;function t(r){const i=r;return p.objectLiteral(i)&&p.numberRange(i.red,0,1)&&p.numberRange(i.green,0,1)&&p.numberRange(i.blue,0,1)&&p.numberRange(i.alpha,0,1)}n.is=t})(Xr||(Xr={}));var Us;(function(n){function e(r,i){return{range:r,color:i}}n.create=e;function t(r){const i=r;return p.objectLiteral(i)&&$.is(i.range)&&Xr.is(i.color)}n.is=t})(Us||(Us={}));var Fs;(function(n){function e(r,i,s){return{label:r,textEdit:i,additionalTextEdits:s}}n.create=e;function t(r){const i=r;return p.objectLiteral(i)&&p.string(i.label)&&(p.undefined(i.textEdit)||Bt.is(i))&&(p.undefined(i.additionalTextEdits)||p.typedArray(i.additionalTextEdits,Bt.is))}n.is=t})(Fs||(Fs={}));var Bs;(function(n){n.Comment="comment",n.Imports="imports",n.Region="region"})(Bs||(Bs={}));var Hs;(function(n){function e(r,i,s,a,o,l){const c={startLine:r,endLine:i};return p.defined(s)&&(c.startCharacter=s),p.defined(a)&&(c.endCharacter=a),p.defined(o)&&(c.kind=o),p.defined(l)&&(c.collapsedText=l),c}n.create=e;function t(r){const i=r;return p.objectLiteral(i)&&p.uinteger(i.startLine)&&p.uinteger(i.startLine)&&(p.undefined(i.startCharacter)||p.uinteger(i.startCharacter))&&(p.undefined(i.endCharacter)||p.uinteger(i.endCharacter))&&(p.undefined(i.kind)||p.string(i.kind))}n.is=t})(Hs||(Hs={}));var Jr;(function(n){function e(r,i){return{location:r,message:i}}n.create=e;function t(r){let i=r;return p.defined(i)&&Kn.is(i.location)&&p.string(i.message)}n.is=t})(Jr||(Jr={}));var Vs;(function(n){n.Error=1,n.Warning=2,n.Information=3,n.Hint=4})(Vs||(Vs={}));var Ws;(function(n){n.Unnecessary=1,n.Deprecated=2})(Ws||(Ws={}));var Ks;(function(n){function e(t){const r=t;return p.objectLiteral(r)&&p.string(r.href)}n.is=e})(Ks||(Ks={}));var zn;(function(n){function e(r,i,s,a,o,l){let c={range:r,message:i};return p.defined(s)&&(c.severity=s),p.defined(a)&&(c.code=a),p.defined(o)&&(c.source=o),p.defined(l)&&(c.relatedInformation=l),c}n.create=e;function t(r){var i;let s=r;return p.defined(s)&&$.is(s.range)&&p.string(s.message)&&(p.number(s.severity)||p.undefined(s.severity))&&(p.integer(s.code)||p.string(s.code)||p.undefined(s.code))&&(p.undefined(s.codeDescription)||p.string((i=s.codeDescription)===null||i===void 0?void 0:i.href))&&(p.string(s.source)||p.undefined(s.source))&&(p.undefined(s.relatedInformation)||p.typedArray(s.relatedInformation,Jr.is))}n.is=t})(zn||(zn={}));var Ft;(function(n){function e(r,i,...s){let a={title:r,command:i};return p.defined(s)&&s.length>0&&(a.arguments=s),a}n.create=e;function t(r){let i=r;return p.defined(i)&&p.string(i.title)&&p.string(i.command)}n.is=t})(Ft||(Ft={}));var Bt;(function(n){function e(s,a){return{range:s,newText:a}}n.replace=e;function t(s,a){return{range:{start:s,end:s},newText:a}}n.insert=t;function r(s){return{range:s,newText:""}}n.del=r;function i(s){const a=s;return p.objectLiteral(a)&&p.string(a.newText)&&$.is(a.range)}n.is=i})(Bt||(Bt={}));var Qr;(function(n){function e(r,i,s){const a={label:r};return i!==void 0&&(a.needsConfirmation=i),s!==void 0&&(a.description=s),a}n.create=e;function t(r){const i=r;return p.objectLiteral(i)&&p.string(i.label)&&(p.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(p.string(i.description)||i.description===void 0)}n.is=t})(Qr||(Qr={}));var Ht;(function(n){function e(t){const r=t;return p.string(r)}n.is=e})(Ht||(Ht={}));var zs;(function(n){function e(s,a,o){return{range:s,newText:a,annotationId:o}}n.replace=e;function t(s,a,o){return{range:{start:s,end:s},newText:a,annotationId:o}}n.insert=t;function r(s,a){return{range:s,newText:"",annotationId:a}}n.del=r;function i(s){const a=s;return Bt.is(a)&&(Qr.is(a.annotationId)||Ht.is(a.annotationId))}n.is=i})(zs||(zs={}));var Zr;(function(n){function e(r,i){return{textDocument:r,edits:i}}n.create=e;function t(r){let i=r;return p.defined(i)&&ii.is(i.textDocument)&&Array.isArray(i.edits)}n.is=t})(Zr||(Zr={}));var ei;(function(n){function e(r,i,s){let a={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(a.options=i),s!==void 0&&(a.annotationId=s),a}n.create=e;function t(r){let i=r;return i&&i.kind==="create"&&p.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||p.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||p.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Ht.is(i.annotationId))}n.is=t})(ei||(ei={}));var ti;(function(n){function e(r,i,s,a){let o={kind:"rename",oldUri:r,newUri:i};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(o.options=s),a!==void 0&&(o.annotationId=a),o}n.create=e;function t(r){let i=r;return i&&i.kind==="rename"&&p.string(i.oldUri)&&p.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||p.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||p.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Ht.is(i.annotationId))}n.is=t})(ti||(ti={}));var ni;(function(n){function e(r,i,s){let a={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(a.options=i),s!==void 0&&(a.annotationId=s),a}n.create=e;function t(r){let i=r;return i&&i.kind==="delete"&&p.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||p.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||p.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||Ht.is(i.annotationId))}n.is=t})(ni||(ni={}));var ri;(function(n){function e(t){let r=t;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(i=>p.string(i.kind)?ei.is(i)||ti.is(i)||ni.is(i):Zr.is(i)))}n.is=e})(ri||(ri={}));var qs;(function(n){function e(r){return{uri:r}}n.create=e;function t(r){let i=r;return p.defined(i)&&p.string(i.uri)}n.is=t})(qs||(qs={}));var Ys;(function(n){function e(r,i){return{uri:r,version:i}}n.create=e;function t(r){let i=r;return p.defined(i)&&p.string(i.uri)&&p.integer(i.version)}n.is=t})(Ys||(Ys={}));var ii;(function(n){function e(r,i){return{uri:r,version:i}}n.create=e;function t(r){let i=r;return p.defined(i)&&p.string(i.uri)&&(i.version===null||p.integer(i.version))}n.is=t})(ii||(ii={}));var Xs;(function(n){function e(r,i,s,a){return{uri:r,languageId:i,version:s,text:a}}n.create=e;function t(r){let i=r;return p.defined(i)&&p.string(i.uri)&&p.string(i.languageId)&&p.integer(i.version)&&p.string(i.text)}n.is=t})(Xs||(Xs={}));var si;(function(n){n.PlainText="plaintext",n.Markdown="markdown";function e(t){const r=t;return r===n.PlainText||r===n.Markdown}n.is=e})(si||(si={}));var un;(function(n){function e(t){const r=t;return p.objectLiteral(t)&&si.is(r.kind)&&p.string(r.value)}n.is=e})(un||(un={}));var Js;(function(n){n.Text=1,n.Method=2,n.Function=3,n.Constructor=4,n.Field=5,n.Variable=6,n.Class=7,n.Interface=8,n.Module=9,n.Property=10,n.Unit=11,n.Value=12,n.Enum=13,n.Keyword=14,n.Snippet=15,n.Color=16,n.File=17,n.Reference=18,n.Folder=19,n.EnumMember=20,n.Constant=21,n.Struct=22,n.Event=23,n.Operator=24,n.TypeParameter=25})(Js||(Js={}));var Qs;(function(n){n.PlainText=1,n.Snippet=2})(Qs||(Qs={}));var Zs;(function(n){n.Deprecated=1})(Zs||(Zs={}));var ea;(function(n){function e(r,i,s){return{newText:r,insert:i,replace:s}}n.create=e;function t(r){const i=r;return i&&p.string(i.newText)&&$.is(i.insert)&&$.is(i.replace)}n.is=t})(ea||(ea={}));var ta;(function(n){n.asIs=1,n.adjustIndentation=2})(ta||(ta={}));var na;(function(n){function e(t){const r=t;return r&&(p.string(r.detail)||r.detail===void 0)&&(p.string(r.description)||r.description===void 0)}n.is=e})(na||(na={}));var ra;(function(n){function e(t){return{label:t}}n.create=e})(ra||(ra={}));var ia;(function(n){function e(t,r){return{items:t||[],isIncomplete:!!r}}n.create=e})(ia||(ia={}));var qn;(function(n){function e(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}n.fromPlainText=e;function t(r){const i=r;return p.string(i)||p.objectLiteral(i)&&p.string(i.language)&&p.string(i.value)}n.is=t})(qn||(qn={}));var sa;(function(n){function e(t){let r=t;return!!r&&p.objectLiteral(r)&&(un.is(r.contents)||qn.is(r.contents)||p.typedArray(r.contents,qn.is))&&(t.range===void 0||$.is(t.range))}n.is=e})(sa||(sa={}));var aa;(function(n){function e(t,r){return r?{label:t,documentation:r}:{label:t}}n.create=e})(aa||(aa={}));var oa;(function(n){function e(t,r,...i){let s={label:t};return p.defined(r)&&(s.documentation=r),p.defined(i)?s.parameters=i:s.parameters=[],s}n.create=e})(oa||(oa={}));var la;(function(n){n.Text=1,n.Read=2,n.Write=3})(la||(la={}));var ca;(function(n){function e(t,r){let i={range:t};return p.number(r)&&(i.kind=r),i}n.create=e})(ca||(ca={}));var ua;(function(n){n.File=1,n.Module=2,n.Namespace=3,n.Package=4,n.Class=5,n.Method=6,n.Property=7,n.Field=8,n.Constructor=9,n.Enum=10,n.Interface=11,n.Function=12,n.Variable=13,n.Constant=14,n.String=15,n.Number=16,n.Boolean=17,n.Array=18,n.Object=19,n.Key=20,n.Null=21,n.EnumMember=22,n.Struct=23,n.Event=24,n.Operator=25,n.TypeParameter=26})(ua||(ua={}));var da;(function(n){n.Deprecated=1})(da||(da={}));var fa;(function(n){function e(t,r,i,s,a){let o={name:t,kind:r,location:{uri:s,range:i}};return a&&(o.containerName=a),o}n.create=e})(fa||(fa={}));var ha;(function(n){function e(t,r,i,s){return s!==void 0?{name:t,kind:r,location:{uri:i,range:s}}:{name:t,kind:r,location:{uri:i}}}n.create=e})(ha||(ha={}));var pa;(function(n){function e(r,i,s,a,o,l){let c={name:r,detail:i,kind:s,range:a,selectionRange:o};return l!==void 0&&(c.children=l),c}n.create=e;function t(r){let i=r;return i&&p.string(i.name)&&p.number(i.kind)&&$.is(i.range)&&$.is(i.selectionRange)&&(i.detail===void 0||p.string(i.detail))&&(i.deprecated===void 0||p.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}n.is=t})(pa||(pa={}));var ma;(function(n){n.Empty="",n.QuickFix="quickfix",n.Refactor="refactor",n.RefactorExtract="refactor.extract",n.RefactorInline="refactor.inline",n.RefactorRewrite="refactor.rewrite",n.Source="source",n.SourceOrganizeImports="source.organizeImports",n.SourceFixAll="source.fixAll"})(ma||(ma={}));var Yn;(function(n){n.Invoked=1,n.Automatic=2})(Yn||(Yn={}));var ga;(function(n){function e(r,i,s){let a={diagnostics:r};return i!=null&&(a.only=i),s!=null&&(a.triggerKind=s),a}n.create=e;function t(r){let i=r;return p.defined(i)&&p.typedArray(i.diagnostics,zn.is)&&(i.only===void 0||p.typedArray(i.only,p.string))&&(i.triggerKind===void 0||i.triggerKind===Yn.Invoked||i.triggerKind===Yn.Automatic)}n.is=t})(ga||(ga={}));var ya;(function(n){function e(r,i,s){let a={title:r},o=!0;return typeof i=="string"?(o=!1,a.kind=i):Ft.is(i)?a.command=i:a.edit=i,o&&s!==void 0&&(a.kind=s),a}n.create=e;function t(r){let i=r;return i&&p.string(i.title)&&(i.diagnostics===void 0||p.typedArray(i.diagnostics,zn.is))&&(i.kind===void 0||p.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||Ft.is(i.command))&&(i.isPreferred===void 0||p.boolean(i.isPreferred))&&(i.edit===void 0||ri.is(i.edit))}n.is=t})(ya||(ya={}));var Ta;(function(n){function e(r,i){let s={range:r};return p.defined(i)&&(s.data=i),s}n.create=e;function t(r){let i=r;return p.defined(i)&&$.is(i.range)&&(p.undefined(i.command)||Ft.is(i.command))}n.is=t})(Ta||(Ta={}));var va;(function(n){function e(r,i){return{tabSize:r,insertSpaces:i}}n.create=e;function t(r){let i=r;return p.defined(i)&&p.uinteger(i.tabSize)&&p.boolean(i.insertSpaces)}n.is=t})(va||(va={}));var _a;(function(n){function e(r,i,s){return{range:r,target:i,data:s}}n.create=e;function t(r){let i=r;return p.defined(i)&&$.is(i.range)&&(p.undefined(i.target)||p.string(i.target))}n.is=t})(_a||(_a={}));var Ea;(function(n){function e(r,i){return{range:r,parent:i}}n.create=e;function t(r){let i=r;return p.objectLiteral(i)&&$.is(i.range)&&(i.parent===void 0||n.is(i.parent))}n.is=t})(Ea||(Ea={}));var Ra;(function(n){n.namespace="namespace",n.type="type",n.class="class",n.enum="enum",n.interface="interface",n.struct="struct",n.typeParameter="typeParameter",n.parameter="parameter",n.variable="variable",n.property="property",n.enumMember="enumMember",n.event="event",n.function="function",n.method="method",n.macro="macro",n.keyword="keyword",n.modifier="modifier",n.comment="comment",n.string="string",n.number="number",n.regexp="regexp",n.operator="operator",n.decorator="decorator"})(Ra||(Ra={}));var Aa;(function(n){n.declaration="declaration",n.definition="definition",n.readonly="readonly",n.static="static",n.deprecated="deprecated",n.abstract="abstract",n.async="async",n.modification="modification",n.documentation="documentation",n.defaultLibrary="defaultLibrary"})(Aa||(Aa={}));var ba;(function(n){function e(t){const r=t;return p.objectLiteral(r)&&(r.resultId===void 0||typeof r.resultId=="string")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]=="number")}n.is=e})(ba||(ba={}));var Na;(function(n){function e(r,i){return{range:r,text:i}}n.create=e;function t(r){const i=r;return i!=null&&$.is(i.range)&&p.string(i.text)}n.is=t})(Na||(Na={}));var ka;(function(n){function e(r,i,s){return{range:r,variableName:i,caseSensitiveLookup:s}}n.create=e;function t(r){const i=r;return i!=null&&$.is(i.range)&&p.boolean(i.caseSensitiveLookup)&&(p.string(i.variableName)||i.variableName===void 0)}n.is=t})(ka||(ka={}));var Ia;(function(n){function e(r,i){return{range:r,expression:i}}n.create=e;function t(r){const i=r;return i!=null&&$.is(i.range)&&(p.string(i.expression)||i.expression===void 0)}n.is=t})(Ia||(Ia={}));var Sa;(function(n){function e(r,i){return{frameId:r,stoppedLocation:i}}n.create=e;function t(r){const i=r;return p.defined(i)&&$.is(r.stoppedLocation)}n.is=t})(Sa||(Sa={}));var ai;(function(n){n.Type=1,n.Parameter=2;function e(t){return t===1||t===2}n.is=e})(ai||(ai={}));var oi;(function(n){function e(r){return{value:r}}n.create=e;function t(r){const i=r;return p.objectLiteral(i)&&(i.tooltip===void 0||p.string(i.tooltip)||un.is(i.tooltip))&&(i.location===void 0||Kn.is(i.location))&&(i.command===void 0||Ft.is(i.command))}n.is=t})(oi||(oi={}));var xa;(function(n){function e(r,i,s){const a={position:r,label:i};return s!==void 0&&(a.kind=s),a}n.create=e;function t(r){const i=r;return p.objectLiteral(i)&&P.is(i.position)&&(p.string(i.label)||p.typedArray(i.label,oi.is))&&(i.kind===void 0||ai.is(i.kind))&&i.textEdits===void 0||p.typedArray(i.textEdits,Bt.is)&&(i.tooltip===void 0||p.string(i.tooltip)||un.is(i.tooltip))&&(i.paddingLeft===void 0||p.boolean(i.paddingLeft))&&(i.paddingRight===void 0||p.boolean(i.paddingRight))}n.is=t})(xa||(xa={}));var Ca;(function(n){function e(t){return{kind:"snippet",value:t}}n.createSnippet=e})(Ca||(Ca={}));var wa;(function(n){function e(t,r,i,s){return{insertText:t,filterText:r,range:i,command:s}}n.create=e})(wa||(wa={}));var Oa;(function(n){function e(t){return{items:t}}n.create=e})(Oa||(Oa={}));var La;(function(n){n.Invoked=0,n.Automatic=1})(La||(La={}));var $a;(function(n){function e(t,r){return{range:t,text:r}}n.create=e})($a||($a={}));var Pa;(function(n){function e(t,r){return{triggerKind:t,selectedCompletionInfo:r}}n.create=e})(Pa||(Pa={}));var Ma;(function(n){function e(t){const r=t;return p.objectLiteral(r)&&Yr.is(r.uri)&&p.string(r.name)}n.is=e})(Ma||(Ma={}));var Da;(function(n){function e(s,a,o,l){return new Ip(s,a,o,l)}n.create=e;function t(s){let a=s;return!!(p.defined(a)&&p.string(a.uri)&&(p.undefined(a.languageId)||p.string(a.languageId))&&p.uinteger(a.lineCount)&&p.func(a.getText)&&p.func(a.positionAt)&&p.func(a.offsetAt))}n.is=t;function r(s,a){let o=s.getText(),l=i(a,(u,d)=>{let f=u.range.start.line-d.range.start.line;return f===0?u.range.start.character-d.range.start.character:f}),c=o.length;for(let u=l.length-1;u>=0;u--){let d=l[u],f=s.offsetAt(d.range.start),h=s.offsetAt(d.range.end);if(h<=c)o=o.substring(0,f)+d.newText+o.substring(h,o.length);else throw new Error("Overlapping edit");c=f}return o}n.applyEdits=r;function i(s,a){if(s.length<=1)return s;const o=s.length/2|0,l=s.slice(0,o),c=s.slice(o);i(l,a),i(c,a);let u=0,d=0,f=0;for(;u0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),r=0,i=t.length;if(i===0)return P.create(0,e);for(;re?i=a:r=a+1}let s=r-1;return P.create(s,e-t[s])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let r=t[e.line],i=e.line+1"u"}n.undefined=r;function i(h){return h===!0||h===!1}n.boolean=i;function s(h){return e.call(h)==="[object String]"}n.string=s;function a(h){return e.call(h)==="[object Number]"}n.number=a;function o(h,m,g){return e.call(h)==="[object Number]"&&m<=h&&h<=g}n.numberRange=o;function l(h){return e.call(h)==="[object Number]"&&-2147483648<=h&&h<=2147483647}n.integer=l;function c(h){return e.call(h)==="[object Number]"&&0<=h&&h<=2147483647}n.uinteger=c;function u(h){return e.call(h)==="[object Function]"}n.func=u;function d(h){return h!==null&&typeof h=="object"}n.objectLiteral=d;function f(h,m){return Array.isArray(h)&&h.every(m)}n.typedArray=f})(p||(p={}));class Sp{constructor(){this.nodeStack=[]}get current(){return this.nodeStack[this.nodeStack.length-1]}buildRootNode(e){return this.rootNode=new ec(e),this.rootNode.root=this.rootNode,this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(e){const t=new Fi;return t.grammarSource=e,t.root=this.rootNode,this.current.content.push(t),this.nodeStack.push(t),t}buildLeafNode(e,t){const r=new li(e.startOffset,e.image.length,Dr(e),e.tokenType,!1);return r.grammarSource=t,r.root=this.rootNode,this.current.content.push(r),r}removeNode(e){const t=e.container;if(t){const r=t.content.indexOf(e);r>=0&&t.content.splice(r,1)}}construct(e){const t=this.current;typeof e.$type=="string"&&(this.current.astNode=e),e.$cstNode=t;const r=this.nodeStack.pop();(r==null?void 0:r.content.length)===0&&this.removeNode(r)}addHiddenTokens(e){for(const t of e){const r=new li(t.startOffset,t.image.length,Dr(t),t.tokenType,!0);r.root=this.rootNode,this.addHiddenToken(this.rootNode,r)}}addHiddenToken(e,t){const{offset:r,end:i}=t;for(let s=0;so&&i=0;e--){const t=this.content[e];if(!t.hidden)return t}return this.content[this.content.length-1]}}class Bi extends Array{constructor(e){super(),this.parent=e,Object.setPrototypeOf(this,Bi.prototype)}push(...e){return this.addParents(e),super.push(...e)}unshift(...e){return this.addParents(e),super.unshift(...e)}splice(e,t,...r){return this.addParents(r),super.splice(e,t,...r)}addParents(e){for(const t of e)t.container=this.parent}}class ec extends Fi{get text(){return this._text.substring(this.offset,this.end)}get fullText(){return this._text}constructor(e){super(),this._text="",this._text=e??""}}const ci=Symbol("Datatype");function Cr(n){return n.$type===ci}const ja="​",tc=n=>n.endsWith(ja)?n:n+ja;class nc{constructor(e){this._unorderedGroups=new Map,this.lexer=e.parser.Lexer;const t=this.lexer.definition;this.wrapper=new Lp(t,Object.assign(Object.assign({},e.parser.ParserConfig),{errorMessageProvider:e.parser.ParserErrorMessageProvider}))}alternatives(e,t){this.wrapper.wrapOr(e,t)}optional(e,t){this.wrapper.wrapOption(e,t)}many(e,t){this.wrapper.wrapMany(e,t)}atLeastOne(e,t){this.wrapper.wrapAtLeastOne(e,t)}isRecording(){return this.wrapper.IS_RECORDING}get unorderedGroups(){return this._unorderedGroups}getRuleStack(){return this.wrapper.RULE_STACK}finalize(){this.wrapper.wrapSelfAnalysis()}}class xp extends nc{get current(){return this.stack[this.stack.length-1]}constructor(e){super(e),this.nodeBuilder=new Sp,this.stack=[],this.assignmentMap=new Map,this.linker=e.references.Linker,this.converter=e.parser.ValueConverter,this.astReflection=e.shared.AstReflection}rule(e,t){const r=e.fragment?void 0:Si(e)?ci:cr(e),i=this.wrapper.DEFINE_RULE(tc(e.name),this.startImplementation(r,t).bind(this));return e.entry&&(this.mainRule=i),i}parse(e){this.nodeBuilder.buildRootNode(e);const t=this.lexer.tokenize(e);this.wrapper.input=t.tokens;const r=this.mainRule.call(this.wrapper,{});return this.nodeBuilder.addHiddenTokens(t.hidden),this.unorderedGroups.clear(),{value:r,lexerErrors:t.errors,parserErrors:this.wrapper.errors}}startImplementation(e,t){return r=>{if(!this.isRecording()){const s={$type:e};this.stack.push(s),e===ci&&(s.value="")}let i;try{i=t(r)}catch{i=void 0}return!this.isRecording()&&i===void 0&&(i=this.construct()),i}}consume(e,t,r){const i=this.wrapper.wrapConsume(e,t);if(!this.isRecording()&&this.isValidToken(i)){const s=this.nodeBuilder.buildLeafNode(i,r),{assignment:a,isCrossRef:o}=this.getAssignment(r),l=this.current;if(a){const c=dt(r)?i.image:this.converter.convert(i.image,s);this.assign(a.operator,a.feature,c,s,o)}else if(Cr(l)){let c=i.image;dt(r)||(c=this.converter.convert(c,s).toString()),l.value+=c}}}isValidToken(e){return!e.isInsertedInRecovery&&!isNaN(e.startOffset)&&typeof e.endOffset=="number"&&!isNaN(e.endOffset)}subrule(e,t,r,i){let s;this.isRecording()||(s=this.nodeBuilder.buildCompositeNode(r));const a=this.wrapper.wrapSubrule(e,t,i);!this.isRecording()&&s&&s.length>0&&this.performSubruleAssignment(a,r,s)}performSubruleAssignment(e,t,r){const{assignment:i,isCrossRef:s}=this.getAssignment(t);if(i)this.assign(i.operator,i.feature,e,r,s);else if(!i){const a=this.current;if(Cr(a))a.value+=e.toString();else if(typeof e=="object"&&e){const o=e.$type,l=this.assignWithoutOverride(e,a);o&&(l.$type=o);const c=l;this.stack.pop(),this.stack.push(c)}}}action(e,t){if(!this.isRecording()){let r=this.current;if(!r.$cstNode&&t.feature&&t.operator){r=this.construct(!1);const s=r.$cstNode.feature;this.nodeBuilder.buildCompositeNode(s)}const i={$type:e};this.stack.pop(),this.stack.push(i),t.feature&&t.operator&&this.assign(t.operator,t.feature,r,r.$cstNode,!1)}}construct(e=!0){if(this.isRecording())return;const t=this.current;return od(t),this.nodeBuilder.construct(t),e&&this.stack.pop(),Cr(t)?this.converter.convert(t.value,t.$cstNode):(cd(this.astReflection,t),t)}getAssignment(e){if(!this.assignmentMap.has(e)){const t=ar(e,ut);this.assignmentMap.set(e,{assignment:t,isCrossRef:t?bi(t.terminal):!1})}return this.assignmentMap.get(e)}assign(e,t,r,i,s){const a=this.current;let o;switch(s&&typeof r=="string"?o=this.linker.buildReference(a,t,i,r):o=r,e){case"=":{a[t]=o;break}case"?=":{a[t]=!0;break}case"+=":Array.isArray(a[t])||(a[t]=[]),a[t].push(o)}}assignWithoutOverride(e,t){for(const[r,i]of Object.entries(t)){const s=e[r];s===void 0?e[r]=i:Array.isArray(s)&&Array.isArray(i)&&(i.push(...s),e[r]=i)}return e}get definitionErrors(){return this.wrapper.definitionErrors}}class Cp{buildMismatchTokenMessage(e){return _t.buildMismatchTokenMessage(e)}buildNotAllInputParsedMessage(e){return _t.buildNotAllInputParsedMessage(e)}buildNoViableAltMessage(e){return _t.buildNoViableAltMessage(e)}buildEarlyExitMessage(e){return _t.buildEarlyExitMessage(e)}}class rc extends Cp{buildMismatchTokenMessage({expected:e,actual:t}){return`Expecting ${e.LABEL?"`"+e.LABEL+"`":e.name.endsWith(":KW")?`keyword '${e.name.substring(0,e.name.length-3)}'`:`token of type '${e.name}'`} but found \`${t.image}\`.`}buildNotAllInputParsedMessage({firstRedundant:e}){return`Expecting end of file but found \`${e.image}\`.`}}class wp extends nc{constructor(){super(...arguments),this.tokens=[],this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}action(){}construct(){}parse(e){this.resetState();const t=this.lexer.tokenize(e);return this.tokens=t.tokens,this.wrapper.input=[...this.tokens],this.mainRule.call(this.wrapper,{}),this.unorderedGroups.clear(),{tokens:this.tokens,elementStack:[...this.lastElementStack],tokenIndex:this.nextTokenIndex}}rule(e,t){const r=this.wrapper.DEFINE_RULE(tc(e.name),this.startImplementation(t).bind(this));return e.entry&&(this.mainRule=r),r}resetState(){this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}startImplementation(e){return t=>{const r=this.keepStackSize();try{e(t)}finally{this.resetStackSize(r)}}}removeUnexpectedElements(){this.elementStack.splice(this.stackSize)}keepStackSize(){const e=this.elementStack.length;return this.stackSize=e,e}resetStackSize(e){this.removeUnexpectedElements(),this.stackSize=e}consume(e,t,r){this.wrapper.wrapConsume(e,t),this.isRecording()||(this.lastElementStack=[...this.elementStack,r],this.nextTokenIndex=this.currIdx+1)}subrule(e,t,r,i){this.before(r),this.wrapper.wrapSubrule(e,t,i),this.after(r)}before(e){this.isRecording()||this.elementStack.push(e)}after(e){if(!this.isRecording()){const t=this.elementStack.lastIndexOf(e);t>=0&&this.elementStack.splice(t)}}get currIdx(){return this.wrapper.currIdx}}const Op={recoveryEnabled:!0,nodeLocationTracking:"full",skipValidations:!0,errorMessageProvider:new rc};class Lp extends Uh{constructor(e,t){const r=t&&"maxLookahead"in t;super(e,Object.assign(Object.assign(Object.assign({},Op),{lookaheadStrategy:r?new Pi({maxLookahead:t.maxLookahead}):new op}),t))}get IS_RECORDING(){return this.RECORDING_PHASE}DEFINE_RULE(e,t){return this.RULE(e,t)}wrapSelfAnalysis(){this.performSelfAnalysis()}wrapConsume(e,t){return this.consume(e,t)}wrapSubrule(e,t,r){return this.subrule(e,t,{ARGS:[r]})}wrapOr(e,t){this.or(e,t)}wrapOption(e,t){this.option(e,t)}wrapMany(e,t){this.many(e,t)}wrapAtLeastOne(e,t){this.atLeastOne(e,t)}}function ic(n,e,t){return $p({parser:e,tokens:t,rules:new Map,ruleNames:new Map},n),e}function $p(n,e){const t=nl(e,!1),r=Q(e.rules).filter(Se).filter(i=>t.has(i));for(const i of r){const s=Object.assign(Object.assign({},n),{consume:1,optional:1,subrule:1,many:1,or:1});s.rules.set(i.name,n.parser.rule(i,pt(s,i.definition)))}}function pt(n,e,t=!1){let r;if(dt(e))r=Fp(n,e);else if(sr(e))r=Pp(n,e);else if(ut(e))r=pt(n,e.terminal);else if(bi(e))r=sc(n,e);else if(ft(e))r=Mp(n,e);else if(Po(e))r=jp(n,e);else if(Yo(e))r=Gp(n,e);else if(Ni(e))r=Up(n,e);else if(Zu(e)){const i=n.consume++;r=()=>n.parser.consume(i,tt,e)}else throw new To(e.$cstNode,`Unexpected element type: ${e.$type}`);return ac(n,t?void 0:Xn(e),r,e.cardinality)}function Pp(n,e){const t=cr(e);return()=>n.parser.action(t,e)}function Mp(n,e){const t=e.rule.ref;if(Se(t)){const r=n.subrule++,i=e.arguments.length>0?Dp(t,e.arguments):()=>({});return s=>n.parser.subrule(r,oc(n,t),e,i(s))}else if(gt(t)){const r=n.consume++,i=ui(n,t.name);return()=>n.parser.consume(r,i,e)}else if(t)ir();else throw new To(e.$cstNode,`Undefined rule type: ${e.$type}`)}function Dp(n,e){const t=e.map(r=>We(r.value));return r=>{const i={};for(let s=0;se(r)||t(r)}else if(Gu(n)){const e=We(n.left),t=We(n.right);return r=>e(r)&&t(r)}else if(Bu(n)){const e=We(n.value);return t=>!e(t)}else if(Wu(n)){const e=n.parameter.ref.name;return t=>t!==void 0&&t[e]===!0}else if(ju(n)){const e=!!n.true;return()=>e}ir()}function jp(n,e){if(e.elements.length===1)return pt(n,e.elements[0]);{const t=[];for(const i of e.elements){const s={ALT:pt(n,i,!0)},a=Xn(i);a&&(s.GATE=We(a)),t.push(s)}const r=n.or++;return i=>n.parser.alternatives(r,t.map(s=>{const a={ALT:()=>s.ALT(i)},o=s.GATE;return o&&(a.GATE=()=>o(i)),a}))}}function Gp(n,e){if(e.elements.length===1)return pt(n,e.elements[0]);const t=[];for(const o of e.elements){const l={ALT:pt(n,o,!0)},c=Xn(o);c&&(l.GATE=We(c)),t.push(l)}const r=n.or++,i=(o,l)=>{const c=l.getRuleStack().join("-");return`uGroup_${o}_${c}`},s=o=>n.parser.alternatives(r,t.map((l,c)=>{const u={ALT:()=>!0},d=n.parser;u.ALT=()=>{if(l.ALT(o),!d.isRecording()){const h=i(r,d);d.unorderedGroups.get(h)||d.unorderedGroups.set(h,[]);const m=d.unorderedGroups.get(h);typeof(m==null?void 0:m[c])>"u"&&(m[c]=!0)}};const f=l.GATE;return f?u.GATE=()=>f(o):u.GATE=()=>{const h=d.unorderedGroups.get(i(r,d));return!(h!=null&&h[c])},u})),a=ac(n,Xn(e),s,"*");return o=>{a(o),n.parser.isRecording()||n.parser.unorderedGroups.delete(i(r,n.parser))}}function Up(n,e){const t=e.elements.map(r=>pt(n,r));return r=>t.forEach(i=>i(r))}function Xn(n){if(Ni(n))return n.guardCondition}function sc(n,e,t=e.terminal){if(t)if(ft(t)&&Se(t.rule.ref)){const r=n.subrule++;return i=>n.parser.subrule(r,oc(n,t.rule.ref),e,i)}else if(ft(t)&>(t.rule.ref)){const r=n.consume++,i=ui(n,t.rule.ref.name);return()=>n.parser.consume(r,i,e)}else if(dt(t)){const r=n.consume++,i=ui(n,t.value);return()=>n.parser.consume(r,i,e)}else throw new Error("Could not build cross reference parser");else{if(!e.type.ref)throw new Error("Could not resolve reference to type: "+e.type.$refText);const r=sl(e.type.ref),i=r==null?void 0:r.terminal;if(!i)throw new Error("Could not find name assignment for type: "+cr(e.type.ref));return sc(n,e,i)}}function Fp(n,e){const t=n.consume++,r=n.tokens[e.value];if(!r)throw new Error("Could not find token for keyword: "+e.value);return()=>n.parser.consume(t,r,e)}function ac(n,e,t,r){const i=e&&We(e);if(!r)if(i){const s=n.or++;return a=>n.parser.alternatives(s,[{ALT:()=>t(a),GATE:()=>i(a)},{ALT:Ls(),GATE:()=>!i(a)}])}else return t;if(r==="*"){const s=n.many++;return a=>n.parser.many(s,{DEF:()=>t(a),GATE:i?()=>i(a):void 0})}else if(r==="+"){const s=n.many++;if(i){const a=n.or++;return o=>n.parser.alternatives(a,[{ALT:()=>n.parser.atLeastOne(s,{DEF:()=>t(o)}),GATE:()=>i(o)},{ALT:Ls(),GATE:()=>!i(o)}])}else return a=>n.parser.atLeastOne(s,{DEF:()=>t(a)})}else if(r==="?"){const s=n.optional++;return a=>n.parser.optional(s,{DEF:()=>t(a),GATE:i?()=>i(a):void 0})}else ir()}function oc(n,e){const t=Bp(n,e),r=n.rules.get(t);if(!r)throw new Error(`Rule "${t}" not found."`);return r}function Bp(n,e){if(Se(e))return e.name;if(n.ruleNames.has(e))return n.ruleNames.get(e);{let t=e,r=t.$container,i=e.$type;for(;!Se(r);)(Ni(r)||Po(r)||Yo(r))&&(i=r.elements.indexOf(t).toString()+":"+i),t=r,r=r.$container;return i=r.name+":"+i,n.ruleNames.set(e,i),i}}function ui(n,e){const t=n.tokens[e];if(!t)throw new Error(`Token "${e}" not found."`);return t}function Hp(n){const e=n.Grammar,t=n.parser.Lexer,r=new wp(n);return ic(e,r,t.definition),r.finalize(),r}function Vp(n){const e=Wp(n);return e.finalize(),e}function Wp(n){const e=n.Grammar,t=n.parser.Lexer,r=new xp(n);return ic(e,r,t.definition)}class lc{buildTokens(e,t){const r=Q(nl(e,!1)),i=this.buildTerminalTokens(r),s=this.buildKeywordTokens(r,i,t);return i.forEach(a=>{const o=a.PATTERN;typeof o=="object"&&o&&"test"in o&&cs(o)?s.unshift(a):s.push(a)}),s}buildTerminalTokens(e){return e.filter(gt).filter(t=>!t.fragment).map(t=>this.buildTerminalToken(t)).toArray()}buildTerminalToken(e){const t=xi(e),r=this.requiresCustomPattern(t)?this.regexPatternFunction(t):t,i={name:e.name,PATTERN:r,LINE_BREAKS:!0};return e.hidden&&(i.GROUP=cs(t)?de.SKIPPED:"hidden"),i}requiresCustomPattern(e){return e.flags.includes("u")?!0:!!(e.source.includes("?<=")||e.source.includes("?(t.lastIndex=i,t.exec(r))}buildKeywordTokens(e,t,r){return e.filter(Se).flatMap(i=>pn(i).filter(dt)).distinct(i=>i.value).toArray().sort((i,s)=>s.value.length-i.value.length).map(i=>this.buildKeywordToken(i,t,!!(r!=null&&r.caseInsensitive)))}buildKeywordToken(e,t,r){return{name:e.value,PATTERN:this.buildKeywordPattern(e,r),LONGER_ALT:this.findLongerAlt(e,t)}}buildKeywordPattern(e,t){return t?new RegExp(yd(e.value)):e.value}findLongerAlt(e,t){return t.reduce((r,i)=>{const s=i==null?void 0:i.PATTERN;return s!=null&&s.source&&Td("^"+s.source+"$",e.value)&&r.push(i),r},[])}}class cc{convert(e,t){let r=t.grammarSource;if(bi(r)&&(r=Rd(r)),ft(r)){const i=r.rule.ref;if(!i)throw new Error("This cst node was not parsed by a rule.");return this.runConverter(i,e,t)}return e}runConverter(e,t,r){var i;switch(e.name.toUpperCase()){case"INT":return Ve.convertInt(t);case"STRING":return Ve.convertString(t);case"ID":return Ve.convertID(t)}switch((i=xd(e))===null||i===void 0?void 0:i.toLowerCase()){case"number":return Ve.convertNumber(t);case"boolean":return Ve.convertBoolean(t);case"bigint":return Ve.convertBigint(t);case"date":return Ve.convertDate(t);default:return t}}}var Ve;(function(n){function e(c){let u="";for(let d=1;duc(e))}se.stringArray=Xp;var Vt={};Object.defineProperty(Vt,"__esModule",{value:!0});Vt.Emitter=Vt.Event=void 0;const Jp=yr;var Ga;(function(n){const e={dispose(){}};n.None=function(){return e}})(Ga||(Vt.Event=Ga={}));class Qp{add(e,t=null,r){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(r)&&r.push({dispose:()=>this.remove(e,t)})}remove(e,t=null){if(!this._callbacks)return;let r=!1;for(let i=0,s=this._callbacks.length;i{this._callbacks||(this._callbacks=new Qp),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,t);const i={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,t),i.dispose=Tr._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(r)&&r.push(i),i}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}}Vt.Emitter=Tr;Tr._noop=function(){};var X;Object.defineProperty(dn,"__esModule",{value:!0});var hi=dn.CancellationTokenSource=X=dn.CancellationToken=void 0;const Zp=yr,em=se,pi=Vt;var Jn;(function(n){n.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:pi.Event.None}),n.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:pi.Event.None});function e(t){const r=t;return r&&(r===n.None||r===n.Cancelled||em.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}n.is=e})(Jn||(X=dn.CancellationToken=Jn={}));const tm=Object.freeze(function(n,e){const t=(0,Zp.default)().timer.setTimeout(n.bind(e),0);return{dispose(){t.dispose()}}});class Ua{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?tm:(this._emitter||(this._emitter=new pi.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}}class nm{get token(){return this._token||(this._token=new Ua),this._token}cancel(){this._token?this._token.cancel():this._token=Jn.Cancelled}dispose(){this._token?this._token instanceof Ua&&this._token.dispose():this._token=Jn.None}}hi=dn.CancellationTokenSource=nm;function rm(){return new Promise(n=>{typeof setImmediate>"u"?setTimeout(n,0):setImmediate(n)})}let Fa=0,im=10;const Qn=Symbol("OperationCancelled");function Hi(n){return n===Qn}async function Le(n){if(n===X.None)return;const e=Date.now();if(e-Fa>=im&&(Fa=e,await rm()),n.isCancellationRequested)throw Qn}class Vi{constructor(){this.promise=new Promise((e,t)=>{this.resolve=r=>(e(r),this),this.reject=r=>(t(r),this)})}}class fn{constructor(e,t,r,i){this._uri=e,this._languageId=t,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const t=this.offsetAt(e.start),r=this.offsetAt(e.end);return this._content.substring(t,r)}return this._content}update(e,t){for(const r of e)if(fn.isIncremental(r)){const i=hc(r.range),s=this.offsetAt(i.start),a=this.offsetAt(i.end);this._content=this._content.substring(0,s)+r.text+this._content.substring(a,this._content.length);const o=Math.max(i.start.line,0),l=Math.max(i.end.line,0);let c=this._lineOffsets;const u=Ba(r.text,!1,s);if(l-o===u.length)for(let f=0,h=u.length;fe?i=a:r=a+1}const s=r-1;return e=this.ensureBeforeEOL(e,t[s]),{line:s,character:e-t[s]}}offsetAt(e){const t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;const r=t[e.line];if(e.character<=0)return r;const i=e.line+1t&&fc(this._content.charCodeAt(e-1));)e--;return e}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){const t=e;return t!=null&&typeof t.text=="string"&&t.range!==void 0&&(t.rangeLength===void 0||typeof t.rangeLength=="number")}static isFull(e){const t=e;return t!=null&&typeof t.text=="string"&&t.range===void 0&&t.rangeLength===void 0}}var mi;(function(n){function e(i,s,a,o){return new fn(i,s,a,o)}n.create=e;function t(i,s,a){if(i instanceof fn)return i.update(s,a),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}n.update=t;function r(i,s){const a=i.getText(),o=gi(s.map(sm),(u,d)=>{const f=u.range.start.line-d.range.start.line;return f===0?u.range.start.character-d.range.start.character:f});let l=0;const c=[];for(const u of o){const d=i.offsetAt(u.range.start);if(dl&&c.push(a.substring(l,d)),u.newText.length&&c.push(u.newText),l=i.offsetAt(u.range.end)}return c.push(a.substr(l)),c.join("")}n.applyEdits=r})(mi||(mi={}));function gi(n,e){if(n.length<=1)return n;const t=n.length/2|0,r=n.slice(0,t),i=n.slice(t);gi(r,e),gi(i,e);let s=0,a=0,o=0;for(;st.line||e.line===t.line&&e.character>t.character?{start:t,end:e}:n}function sm(n){const e=hc(n.range);return e!==n.range?{newText:n.newText,range:e}:n}var wr={version:"v20.18.3",versions:{node:"20.18.3",acorn:"8.14.0",ada:"2.9.2",ares:"1.34.4",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.15+quic",simdutf:"5.6.4",tz:"2024b",undici:"6.21.1",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.25",zlib:"1.3.0.1-motley-82a5fec"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.18.3/node-v20.18.3.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.18.3/node-v20.18.3-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule internal/util","NativeModule internal/util/types","NativeModule internal/validators","NativeModule internal/linkedlist","NativeModule internal/priority_queue","Internal Binding icu","NativeModule internal/util/inspect","NativeModule internal/util/debuglog","NativeModule internal/timers","NativeModule internal/events/abort_listener","NativeModule events","Internal Binding buffer","NativeModule internal/buffer","NativeModule buffer","Internal Binding messaging","NativeModule internal/worker/js_transferable","NativeModule internal/querystring","NativeModule internal/constants","NativeModule path","NativeModule querystring","Internal Binding url","NativeModule internal/url","NativeModule internal/fs/utils","Internal Binding process_methods","NativeModule internal/process/per_thread","Internal Binding credentials","NativeModule internal/process/promises","NativeModule internal/fixed_queue","NativeModule async_hooks","NativeModule internal/process/task_queues","NativeModule timers","Internal Binding trace_events","Internal Binding contextify","NativeModule internal/vm","NativeModule internal/process/execution","NativeModule internal/process/warning","NativeModule internal/source_map/source_map_cache","Internal Binding fs","Internal Binding blob","Internal Binding encoding_binding","NativeModule internal/encoding","NativeModule internal/streams/utils","NativeModule util","NativeModule internal/webstreams/util","NativeModule internal/webstreams/queuingstrategies","NativeModule internal/blob","Internal Binding permission","NativeModule internal/process/permission","NativeModule fs","NativeModule internal/modules/helpers","NativeModule internal/console/constructor","NativeModule internal/console/global","NativeModule internal/util/inspector","Internal Binding inspector","NativeModule internal/webidl","Internal Binding performance","NativeModule internal/perf/utils","NativeModule internal/event_target","Internal Binding wasm_web_api","Internal Binding mksnapshot","NativeModule internal/v8/startup_snapshot","NativeModule internal/process/signal","NativeModule url","NativeModule internal/modules/package_json_reader","NativeModule internal/modules/cjs/loader","NativeModule internal/process/pre_execution","NativeModule internal/modules/esm/utils","NativeModule internal/inspector_async_hook","Internal Binding worker","NativeModule internal/modules/run_main","NativeModule internal/net","NativeModule internal/dns/utils","NativeModule internal/modules/esm/assert","NativeModule internal/modules/esm/loader","NativeModule internal/modules/esm/module_map","NativeModule internal/modules/esm/translators","NativeModule internal/modules/esm/package_config","NativeModule internal/modules/esm/formats","NativeModule internal/modules/esm/get_format","NativeModule internal/modules/esm/resolve","NativeModule internal/modules/esm/module_job","NativeModule internal/modules/esm/load","Internal Binding fs_dir","NativeModule internal/fs/dir","NativeModule string_decoder","Internal Binding fs_event_wrap","Internal Binding uv","NativeModule internal/fs/watchers","NativeModule internal/fs/recursive_watch","NativeModule internal/readline/utils","NativeModule internal/readline/callbacks","NativeModule internal/readline/interface","NativeModule internal/fs/promises","NativeModule internal/perf/performance_entry","NativeModule internal/perf/observe","NativeModule internal/perf/resource_timing","NativeModule internal/perf/nodetiming","NativeModule internal/perf/usertiming","NativeModule internal/perf/event_loop_utilization","NativeModule internal/histogram","NativeModule internal/perf/timerify","NativeModule internal/perf/performance","NativeModule internal/perf/event_loop_delay","NativeModule perf_hooks","NativeModule internal/modules/esm/initialize_import_meta","NativeModule internal/streams/destroy","NativeModule internal/abort_controller","NativeModule internal/streams/end-of-stream","NativeModule internal/streams/legacy","NativeModule internal/streams/add-abort-signal","NativeModule internal/streams/state","NativeModule internal/streams/from","NativeModule internal/streams/readable","NativeModule internal/streams/writable","NativeModule internal/streams/duplex","NativeModule internal/streams/pipeline","NativeModule internal/streams/compose","NativeModule internal/streams/operators","NativeModule stream/promises","NativeModule internal/streams/transform","NativeModule internal/streams/passthrough","NativeModule internal/streams/duplexpair","NativeModule stream","NativeModule internal/fs/streams","NativeModule fs/promises","NativeModule internal/util/parse_args/utils","NativeModule internal/util/parse_args/parse_args","NativeModule internal/mime","NativeModule internal/source_map/source_map","NativeModule module","Internal Binding crypto","NativeModule internal/crypto/random","NativeModule internal/crypto/hashnames","NativeModule internal/crypto/util","NativeModule internal/crypto/pbkdf2","NativeModule internal/crypto/scrypt","NativeModule internal/crypto/keys","NativeModule internal/crypto/hkdf","NativeModule internal/crypto/keygen","NativeModule internal/crypto/diffiehellman","NativeModule internal/streams/lazy_transform","NativeModule internal/crypto/cipher","NativeModule internal/crypto/sig","NativeModule internal/crypto/hash","NativeModule internal/crypto/x509","NativeModule internal/crypto/certificate","NativeModule crypto","NativeModule internal/crypto/webcrypto","Internal Binding stream_wrap","Internal Binding tcp_wrap","Internal Binding pipe_wrap","NativeModule internal/stream_base_commons","NativeModule diagnostics_channel","NativeModule net","Internal Binding tty_wrap","NativeModule internal/tty","NativeModule tty","NativeModule internal/deps/cjs-module-lexer/dist/lexer","Internal Binding udp_wrap","NativeModule internal/dgram","NativeModule dgram","Internal Binding process_wrap","NativeModule internal/socket_list","Internal Binding spawn_sync","NativeModule internal/child_process","NativeModule child_process","NativeModule _http_agent","Internal Binding http_parser","NativeModule internal/freelist","NativeModule _http_incoming","NativeModule _http_common","NativeModule internal/http","NativeModule _http_outgoing","NativeModule _http_client","NativeModule _http_server","NativeModule http","Internal Binding cares_wrap","NativeModule internal/tls/secure-context","NativeModule _tls_common","Internal Binding js_stream","NativeModule internal/js_stream_socket","Internal Binding tls_wrap","NativeModule _tls_wrap","NativeModule internal/tls/secure-pair","NativeModule tls","NativeModule https","Internal Binding block_list","NativeModule internal/socketaddress","NativeModule internal/blocklist","Internal Binding os","NativeModule os","NativeModule internal/dns/callback_resolver","NativeModule dns","NativeModule internal/dns/promises","NativeModule internal/util/colors","NativeModule internal/assert/assertion_error","NativeModule internal/assert/utils","NativeModule internal/assert/calltracker","NativeModule assert","Internal Binding serdes","Internal Binding profiler","Internal Binding heap_utils","Internal Binding internal_only_v8","NativeModule internal/heap_utils","NativeModule internal/promise_hooks","Internal Binding v8","NativeModule v8","NativeModule internal/worker/io","NativeModule internal/error_serdes","NativeModule internal/worker","NativeModule worker_threads","NativeModule internal/file","NativeModule internal/readline/emitKeypressEvents","NativeModule internal/readline/promises","NativeModule readline/promises","NativeModule readline","Internal Binding zlib","NativeModule zlib","NativeModule process","Internal Binding report","NativeModule internal/process/report","NativeModule constants","NativeModule internal/crypto/webidl"],_events:{newListener:[null,null],removeListener:[null,null]},_eventsCount:3,domain:null,_exiting:!1,config:{target_defaults:{cflags:[],default_configuration:"Release",defines:["NODE_OPENSSL_CONF_NAME=nodejs_conf","NODE_OPENSSL_HAS_QUIC","ICU_NO_USER_DATA_OVERRIDE"],include_dirs:[],libraries:[]},variables:{asan:0,clang:0,coverage:!1,dcheck_always_on:0,debug_nghttp2:!1,debug_node:!1,enable_lto:!1,enable_pgo_generate:!1,enable_pgo_use:!1,error_on_warn:!1,force_dynamic_crt:0,gas_version:"2.35",host_arch:"x64",icu_data_in:"../../deps/icu-tmp/icudt75l.dat",icu_endianness:"l",icu_gyp_path:"tools/icu/icu-generic.gyp",icu_path:"deps/icu-small",icu_small:!1,icu_ver_major:"75",is_debug:0,libdir:"lib",llvm_version:"0.0",napi_build_version:"9",node_builtin_shareable_builtins:["deps/cjs-module-lexer/lexer.js","deps/cjs-module-lexer/dist/lexer.js","deps/undici/undici.js"],node_byteorder:"little",node_debug_lib:!1,node_enable_d8:!1,node_enable_v8_vtunejit:!1,node_fipsinstall:!1,node_install_corepack:!0,node_install_npm:!0,node_library_files:["lib/_http_agent.js","lib/_http_client.js","lib/_http_common.js","lib/_http_incoming.js","lib/_http_outgoing.js","lib/_http_server.js","lib/_stream_duplex.js","lib/_stream_passthrough.js","lib/_stream_readable.js","lib/_stream_transform.js","lib/_stream_wrap.js","lib/_stream_writable.js","lib/_tls_common.js","lib/_tls_wrap.js","lib/assert.js","lib/assert/strict.js","lib/async_hooks.js","lib/buffer.js","lib/child_process.js","lib/cluster.js","lib/console.js","lib/constants.js","lib/crypto.js","lib/dgram.js","lib/diagnostics_channel.js","lib/dns.js","lib/dns/promises.js","lib/domain.js","lib/events.js","lib/fs.js","lib/fs/promises.js","lib/http.js","lib/http2.js","lib/https.js","lib/inspector.js","lib/inspector/promises.js","lib/internal/abort_controller.js","lib/internal/assert.js","lib/internal/assert/assertion_error.js","lib/internal/assert/calltracker.js","lib/internal/assert/utils.js","lib/internal/async_hooks.js","lib/internal/blob.js","lib/internal/blocklist.js","lib/internal/bootstrap/node.js","lib/internal/bootstrap/realm.js","lib/internal/bootstrap/shadow_realm.js","lib/internal/bootstrap/switches/does_not_own_process_state.js","lib/internal/bootstrap/switches/does_own_process_state.js","lib/internal/bootstrap/switches/is_main_thread.js","lib/internal/bootstrap/switches/is_not_main_thread.js","lib/internal/bootstrap/web/exposed-wildcard.js","lib/internal/bootstrap/web/exposed-window-or-worker.js","lib/internal/buffer.js","lib/internal/child_process.js","lib/internal/child_process/serialization.js","lib/internal/cli_table.js","lib/internal/cluster/child.js","lib/internal/cluster/primary.js","lib/internal/cluster/round_robin_handle.js","lib/internal/cluster/shared_handle.js","lib/internal/cluster/utils.js","lib/internal/cluster/worker.js","lib/internal/console/constructor.js","lib/internal/console/global.js","lib/internal/constants.js","lib/internal/crypto/aes.js","lib/internal/crypto/certificate.js","lib/internal/crypto/cfrg.js","lib/internal/crypto/cipher.js","lib/internal/crypto/diffiehellman.js","lib/internal/crypto/ec.js","lib/internal/crypto/hash.js","lib/internal/crypto/hashnames.js","lib/internal/crypto/hkdf.js","lib/internal/crypto/keygen.js","lib/internal/crypto/keys.js","lib/internal/crypto/mac.js","lib/internal/crypto/pbkdf2.js","lib/internal/crypto/random.js","lib/internal/crypto/rsa.js","lib/internal/crypto/scrypt.js","lib/internal/crypto/sig.js","lib/internal/crypto/util.js","lib/internal/crypto/webcrypto.js","lib/internal/crypto/webidl.js","lib/internal/crypto/x509.js","lib/internal/debugger/inspect.js","lib/internal/debugger/inspect_client.js","lib/internal/debugger/inspect_repl.js","lib/internal/dgram.js","lib/internal/dns/callback_resolver.js","lib/internal/dns/promises.js","lib/internal/dns/utils.js","lib/internal/encoding.js","lib/internal/error_serdes.js","lib/internal/errors.js","lib/internal/event_target.js","lib/internal/events/abort_listener.js","lib/internal/events/symbols.js","lib/internal/file.js","lib/internal/fixed_queue.js","lib/internal/freelist.js","lib/internal/freeze_intrinsics.js","lib/internal/fs/cp/cp-sync.js","lib/internal/fs/cp/cp.js","lib/internal/fs/dir.js","lib/internal/fs/promises.js","lib/internal/fs/read/context.js","lib/internal/fs/recursive_watch.js","lib/internal/fs/rimraf.js","lib/internal/fs/streams.js","lib/internal/fs/sync_write_stream.js","lib/internal/fs/utils.js","lib/internal/fs/watchers.js","lib/internal/heap_utils.js","lib/internal/histogram.js","lib/internal/http.js","lib/internal/http2/compat.js","lib/internal/http2/core.js","lib/internal/http2/util.js","lib/internal/inspector_async_hook.js","lib/internal/inspector_network_tracking.js","lib/internal/js_stream_socket.js","lib/internal/legacy/processbinding.js","lib/internal/linkedlist.js","lib/internal/main/check_syntax.js","lib/internal/main/embedding.js","lib/internal/main/eval_stdin.js","lib/internal/main/eval_string.js","lib/internal/main/inspect.js","lib/internal/main/mksnapshot.js","lib/internal/main/print_help.js","lib/internal/main/prof_process.js","lib/internal/main/repl.js","lib/internal/main/run_main_module.js","lib/internal/main/test_runner.js","lib/internal/main/watch_mode.js","lib/internal/main/worker_thread.js","lib/internal/mime.js","lib/internal/modules/cjs/loader.js","lib/internal/modules/esm/assert.js","lib/internal/modules/esm/create_dynamic_module.js","lib/internal/modules/esm/fetch_module.js","lib/internal/modules/esm/formats.js","lib/internal/modules/esm/get_format.js","lib/internal/modules/esm/hooks.js","lib/internal/modules/esm/initialize_import_meta.js","lib/internal/modules/esm/load.js","lib/internal/modules/esm/loader.js","lib/internal/modules/esm/module_job.js","lib/internal/modules/esm/module_map.js","lib/internal/modules/esm/package_config.js","lib/internal/modules/esm/resolve.js","lib/internal/modules/esm/shared_constants.js","lib/internal/modules/esm/translators.js","lib/internal/modules/esm/utils.js","lib/internal/modules/esm/worker.js","lib/internal/modules/helpers.js","lib/internal/modules/package_json_reader.js","lib/internal/modules/run_main.js","lib/internal/navigator.js","lib/internal/net.js","lib/internal/options.js","lib/internal/per_context/domexception.js","lib/internal/per_context/messageport.js","lib/internal/per_context/primordials.js","lib/internal/perf/event_loop_delay.js","lib/internal/perf/event_loop_utilization.js","lib/internal/perf/nodetiming.js","lib/internal/perf/observe.js","lib/internal/perf/performance.js","lib/internal/perf/performance_entry.js","lib/internal/perf/resource_timing.js","lib/internal/perf/timerify.js","lib/internal/perf/usertiming.js","lib/internal/perf/utils.js","lib/internal/policy/manifest.js","lib/internal/policy/sri.js","lib/internal/priority_queue.js","lib/internal/process/execution.js","lib/internal/process/per_thread.js","lib/internal/process/permission.js","lib/internal/process/policy.js","lib/internal/process/pre_execution.js","lib/internal/process/promises.js","lib/internal/process/report.js","lib/internal/process/signal.js","lib/internal/process/task_queues.js","lib/internal/process/warning.js","lib/internal/process/worker_thread_only.js","lib/internal/promise_hooks.js","lib/internal/querystring.js","lib/internal/readline/callbacks.js","lib/internal/readline/emitKeypressEvents.js","lib/internal/readline/interface.js","lib/internal/readline/promises.js","lib/internal/readline/utils.js","lib/internal/repl.js","lib/internal/repl/await.js","lib/internal/repl/history.js","lib/internal/repl/utils.js","lib/internal/socket_list.js","lib/internal/socketaddress.js","lib/internal/source_map/prepare_stack_trace.js","lib/internal/source_map/source_map.js","lib/internal/source_map/source_map_cache.js","lib/internal/stream_base_commons.js","lib/internal/streams/add-abort-signal.js","lib/internal/streams/compose.js","lib/internal/streams/destroy.js","lib/internal/streams/duplex.js","lib/internal/streams/duplexify.js","lib/internal/streams/duplexpair.js","lib/internal/streams/end-of-stream.js","lib/internal/streams/from.js","lib/internal/streams/lazy_transform.js","lib/internal/streams/legacy.js","lib/internal/streams/operators.js","lib/internal/streams/passthrough.js","lib/internal/streams/pipeline.js","lib/internal/streams/readable.js","lib/internal/streams/state.js","lib/internal/streams/transform.js","lib/internal/streams/utils.js","lib/internal/streams/writable.js","lib/internal/test/binding.js","lib/internal/test/transfer.js","lib/internal/test_runner/coverage.js","lib/internal/test_runner/harness.js","lib/internal/test_runner/mock/loader.js","lib/internal/test_runner/mock/mock.js","lib/internal/test_runner/mock/mock_timers.js","lib/internal/test_runner/reporter/dot.js","lib/internal/test_runner/reporter/junit.js","lib/internal/test_runner/reporter/lcov.js","lib/internal/test_runner/reporter/spec.js","lib/internal/test_runner/reporter/tap.js","lib/internal/test_runner/reporter/utils.js","lib/internal/test_runner/reporter/v8-serializer.js","lib/internal/test_runner/runner.js","lib/internal/test_runner/test.js","lib/internal/test_runner/tests_stream.js","lib/internal/test_runner/utils.js","lib/internal/timers.js","lib/internal/tls/secure-context.js","lib/internal/tls/secure-pair.js","lib/internal/trace_events_async_hooks.js","lib/internal/tty.js","lib/internal/url.js","lib/internal/util.js","lib/internal/util/colors.js","lib/internal/util/comparisons.js","lib/internal/util/debuglog.js","lib/internal/util/embedding.js","lib/internal/util/inspect.js","lib/internal/util/inspector.js","lib/internal/util/iterable_weak_map.js","lib/internal/util/parse_args/parse_args.js","lib/internal/util/parse_args/utils.js","lib/internal/util/types.js","lib/internal/v8/startup_snapshot.js","lib/internal/v8_prof_polyfill.js","lib/internal/v8_prof_processor.js","lib/internal/validators.js","lib/internal/vm.js","lib/internal/vm/module.js","lib/internal/wasm_web_api.js","lib/internal/watch_mode/files_watcher.js","lib/internal/watchdog.js","lib/internal/webidl.js","lib/internal/webstreams/adapters.js","lib/internal/webstreams/compression.js","lib/internal/webstreams/encoding.js","lib/internal/webstreams/queuingstrategies.js","lib/internal/webstreams/readablestream.js","lib/internal/webstreams/transfer.js","lib/internal/webstreams/transformstream.js","lib/internal/webstreams/util.js","lib/internal/webstreams/writablestream.js","lib/internal/worker.js","lib/internal/worker/io.js","lib/internal/worker/js_transferable.js","lib/module.js","lib/net.js","lib/os.js","lib/path.js","lib/path/posix.js","lib/path/win32.js","lib/perf_hooks.js","lib/process.js","lib/punycode.js","lib/querystring.js","lib/readline.js","lib/readline/promises.js","lib/repl.js","lib/sea.js","lib/stream.js","lib/stream/consumers.js","lib/stream/promises.js","lib/stream/web.js","lib/string_decoder.js","lib/sys.js","lib/test.js","lib/test/reporters.js","lib/timers.js","lib/timers/promises.js","lib/tls.js","lib/trace_events.js","lib/tty.js","lib/url.js","lib/util.js","lib/util/types.js","lib/v8.js","lib/vm.js","lib/wasi.js","lib/worker_threads.js","lib/zlib.js"],node_module_version:115,node_no_browser_globals:!1,node_prefix:"/",node_release_urlbase:"https://nodejs.org/download/release/",node_section_ordering_info:"",node_shared:!1,node_shared_ada:!1,node_shared_brotli:!1,node_shared_cares:!1,node_shared_http_parser:!1,node_shared_libuv:!1,node_shared_nghttp2:!1,node_shared_nghttp3:!1,node_shared_ngtcp2:!1,node_shared_openssl:!1,node_shared_simdjson:!1,node_shared_simdutf:!1,node_shared_uvwasi:!1,node_shared_zlib:!1,node_tag:"",node_target_type:"executable",node_use_bundled_v8:!0,node_use_node_code_cache:!0,node_use_node_snapshot:!0,node_use_openssl:!0,node_use_v8_platform:!0,node_with_ltcg:!1,node_without_node_options:!1,node_write_snapshot_as_array_literals:!1,openssl_is_fips:!1,openssl_quic:!0,ossfuzz:!1,shlib_suffix:"so.115",single_executable_application:!0,target_arch:"x64",ubsan:0,use_prefix_to_find_headers:!1,v8_enable_31bit_smis_on_64bit_arch:0,v8_enable_extensible_ro_snapshot:0,v8_enable_gdbjit:0,v8_enable_hugepage:0,v8_enable_i18n_support:1,v8_enable_inspector:1,v8_enable_javascript_promise_hooks:1,v8_enable_lite_mode:0,v8_enable_maglev:0,v8_enable_object_print:1,v8_enable_pointer_compression:0,v8_enable_sandbox:0,v8_enable_shared_ro_heap:1,v8_enable_short_builtin_calls:1,v8_enable_v8_checks:0,v8_enable_webassembly:1,v8_no_strict_aliasing:1,v8_optimized_debug:1,v8_promise_internal_field_count:1,v8_random_seed:0,v8_trace_maps:0,v8_use_siphash:1,want_separate_host_toolset:0}},allowedNodeEnvironmentFlags:{},features:{inspector:!0,debug:!1,uv:!0,ipv6:!0,tls_alpn:!0,tls_sni:!0,tls_ocsp:!0,tls:!0,cached_builtins:!0},sourceMapsEnabled:!1,stdout:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:1,_isStdio:!0},stdin:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:2,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,fd:0},stderr:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:2,_isStdio:!0},env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_31bae965-5b37-417e-995d-88fe848eb99b",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v20.18.3 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_31bae965-5b37-417e-995d-88fe848eb99b",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/md/md/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"doocs",GRADLE_HOME:"/usr/share/gradle-8.12.1",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/28.0.13004108",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43716716",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/md/md",SYSTEMD_EXEC_PID:"834",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250223.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.12/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.6/x64",JOURNAL_STREAM:"8:4711",GITHUB_WORKFLOW:"Build and Deploy",_:"/opt/hostedtoolcache/node/20.18.3/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.3/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"13672707484",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"389519be8d7a34a99cf277513a533323efcd33fe",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",GITHUB_WORKFLOW_REF:"doocs/md/.github/workflows/build.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.3/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_17b3fd3d-f363-46e4-8b41-c0150e556773",INVOCATION_ID:"f649072f604740d6b111000a163ba948",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",npm_package_name:"md",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"505",GITHUB_TRIGGERING_ACTOR:"yanglbme",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub-Actions-1000003917",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"doocs/md",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"218952803",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"1.6.0",npm_lifecycle_event:"build:only",GITHUB_REF_PROTECTED:"true",GITHUB_WORKSPACE:"/home/runner/work/md/md",ACCEPT_EULA:"Y",GITHUB_JOB:"build-and-deploy",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"389519be8d7a34a99cf277513a533323efcd33fe",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"yanglbme",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.3/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_31bae965-5b37-417e-995d-88fe848eb99b",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/md/md",GITHUB_ACTOR_ID:"21008209",RUNNER_WORKSPACE:"/home/runner/work/md",npm_execpath:"/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_31bae965-5b37-417e-995d-88fe848eb99b",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.3/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_31bae965-5b37-417e-995d-88fe848eb99b",INIT_CWD:"/home/runner/work/md/md",EDITOR:"vi",NODE_ENV:"production",LAUNCH_EDITOR:"code"},title:"node",argv:["/opt/hostedtoolcache/node/20.18.3/x64/bin/node","/home/runner/work/md/md/node_modules/.bin/vite","build"],execArgv:[],pid:2188,ppid:2187,execPath:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",debugPort:9229,argv0:"node",_preload_modules:[],report:{directory:"",filename:"",compact:!1,excludeNetwork:!1,signal:"SIGUSR2",reportOnFatalError:!1,reportOnSignal:!1,reportOnUncaughtException:!1}},pc;(()=>{var n={470:i=>{function s(l){if(typeof l!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(l))}function a(l,c){for(var u,d="",f=0,h=-1,m=0,g=0;g<=l.length;++g){if(g2){var _=d.lastIndexOf("/");if(_!==d.length-1){_===-1?(d="",f=0):f=(d=d.slice(0,_)).length-1-d.lastIndexOf("/"),h=g,m=0;continue}}else if(d.length===2||d.length===1){d="",f=0,h=g,m=0;continue}}c&&(d.length>0?d+="/..":d="..",f=2)}else d.length>0?d+="/"+l.slice(h+1,g):d=l.slice(h+1,g),f=g-h-1;h=g,m=0}else u===46&&m!==-1?++m:m=-1}return d}var o={resolve:function(){for(var l,c="",u=!1,d=arguments.length-1;d>=-1&&!u;d--){var f;d>=0?f=arguments[d]:(l===void 0&&(l=wr.cwd()),f=l),s(f),f.length!==0&&(c=f+"/"+c,u=f.charCodeAt(0)===47)}return c=a(c,!u),u?c.length>0?"/"+c:"/":c.length>0?c:"."},normalize:function(l){if(s(l),l.length===0)return".";var c=l.charCodeAt(0)===47,u=l.charCodeAt(l.length-1)===47;return(l=a(l,!c)).length!==0||c||(l="."),l.length>0&&u&&(l+="/"),c?"/"+l:l},isAbsolute:function(l){return s(l),l.length>0&&l.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var l,c=0;c0&&(l===void 0?l=u:l+="/"+u)}return l===void 0?".":o.normalize(l)},relative:function(l,c){if(s(l),s(c),l===c||(l=o.resolve(l))===(c=o.resolve(c)))return"";for(var u=1;ug){if(c.charCodeAt(h+y)===47)return c.slice(h+y+1);if(y===0)return c.slice(h+y)}else f>g&&(l.charCodeAt(u+y)===47?_=y:y===0&&(_=0));break}var E=l.charCodeAt(u+y);if(E!==c.charCodeAt(h+y))break;E===47&&(_=y)}var v="";for(y=u+_+1;y<=d;++y)y!==d&&l.charCodeAt(y)!==47||(v.length===0?v+="..":v+="/..");return v.length>0?v+c.slice(h+_):(h+=_,c.charCodeAt(h)===47&&++h,c.slice(h))},_makeLong:function(l){return l},dirname:function(l){if(s(l),l.length===0)return".";for(var c=l.charCodeAt(0),u=c===47,d=-1,f=!0,h=l.length-1;h>=1;--h)if((c=l.charCodeAt(h))===47){if(!f){d=h;break}}else f=!1;return d===-1?u?"/":".":u&&d===1?"//":l.slice(0,d)},basename:function(l,c){if(c!==void 0&&typeof c!="string")throw new TypeError('"ext" argument must be a string');s(l);var u,d=0,f=-1,h=!0;if(c!==void 0&&c.length>0&&c.length<=l.length){if(c.length===l.length&&c===l)return"";var m=c.length-1,g=-1;for(u=l.length-1;u>=0;--u){var _=l.charCodeAt(u);if(_===47){if(!h){d=u+1;break}}else g===-1&&(h=!1,g=u+1),m>=0&&(_===c.charCodeAt(m)?--m==-1&&(f=u):(m=-1,f=g))}return d===f?f=g:f===-1&&(f=l.length),l.slice(d,f)}for(u=l.length-1;u>=0;--u)if(l.charCodeAt(u)===47){if(!h){d=u+1;break}}else f===-1&&(h=!1,f=u+1);return f===-1?"":l.slice(d,f)},extname:function(l){s(l);for(var c=-1,u=0,d=-1,f=!0,h=0,m=l.length-1;m>=0;--m){var g=l.charCodeAt(m);if(g!==47)d===-1&&(f=!1,d=m+1),g===46?c===-1?c=m:h!==1&&(h=1):c!==-1&&(h=-1);else if(!f){u=m+1;break}}return c===-1||d===-1||h===0||h===1&&c===d-1&&c===u+1?"":l.slice(c,d)},format:function(l){if(l===null||typeof l!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof l);return function(c,u){var d=u.dir||u.root,f=u.base||(u.name||"")+(u.ext||"");return d?d===u.root?d+f:d+"/"+f:f}(0,l)},parse:function(l){s(l);var c={root:"",dir:"",base:"",ext:"",name:""};if(l.length===0)return c;var u,d=l.charCodeAt(0),f=d===47;f?(c.root="/",u=1):u=0;for(var h=-1,m=0,g=-1,_=!0,y=l.length-1,E=0;y>=u;--y)if((d=l.charCodeAt(y))!==47)g===-1&&(_=!1,g=y+1),d===46?h===-1?h=y:E!==1&&(E=1):h!==-1&&(E=-1);else if(!_){m=y+1;break}return h===-1||g===-1||E===0||E===1&&h===g-1&&h===m+1?g!==-1&&(c.base=c.name=m===0&&f?l.slice(1,g):l.slice(m,g)):(m===0&&f?(c.name=l.slice(1,h),c.base=l.slice(1,g)):(c.name=l.slice(m,h),c.base=l.slice(m,g)),c.ext=l.slice(h,g)),m>0?c.dir=l.slice(0,m-1):f&&(c.dir="/"),c},sep:"/",delimiter:":",win32:null,posix:null};o.posix=o,i.exports=o}},e={};function t(i){var s=e[i];if(s!==void 0)return s.exports;var a=e[i]={exports:{}};return n[i](a,a.exports,t),a.exports}t.d=(i,s)=>{for(var a in s)t.o(s,a)&&!t.o(i,a)&&Object.defineProperty(i,a,{enumerable:!0,get:s[a]})},t.o=(i,s)=>Object.prototype.hasOwnProperty.call(i,s),t.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var r={};(()=>{let i;t.r(r),t.d(r,{URI:()=>f,Utils:()=>be}),typeof wr=="object"?i=wr.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);const s=/^\w[\w\d+.-]*$/,a=/^\//,o=/^\/\//;function l(A,T){if(!A.scheme&&T)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${A.authority}", path: "${A.path}", query: "${A.query}", fragment: "${A.fragment}"}`);if(A.scheme&&!s.test(A.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(A.path){if(A.authority){if(!a.test(A.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(o.test(A.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}const c="",u="/",d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class f{constructor(T,R,N,L,O,w=!1){Je(this,"scheme");Je(this,"authority");Je(this,"path");Je(this,"query");Je(this,"fragment");typeof T=="object"?(this.scheme=T.scheme||c,this.authority=T.authority||c,this.path=T.path||c,this.query=T.query||c,this.fragment=T.fragment||c):(this.scheme=function(ye,z){return ye||z?ye:"file"}(T,w),this.authority=R||c,this.path=function(ye,z){switch(ye){case"https":case"http":case"file":z?z[0]!==u&&(z=u+z):z=u}return z}(this.scheme,N||c),this.query=L||c,this.fragment=O||c,l(this,w))}static isUri(T){return T instanceof f||!!T&&typeof T.authority=="string"&&typeof T.fragment=="string"&&typeof T.path=="string"&&typeof T.query=="string"&&typeof T.scheme=="string"&&typeof T.fsPath=="string"&&typeof T.with=="function"&&typeof T.toString=="function"}get fsPath(){return E(this)}with(T){if(!T)return this;let{scheme:R,authority:N,path:L,query:O,fragment:w}=T;return R===void 0?R=this.scheme:R===null&&(R=c),N===void 0?N=this.authority:N===null&&(N=c),L===void 0?L=this.path:L===null&&(L=c),O===void 0?O=this.query:O===null&&(O=c),w===void 0?w=this.fragment:w===null&&(w=c),R===this.scheme&&N===this.authority&&L===this.path&&O===this.query&&w===this.fragment?this:new m(R,N,L,O,w)}static parse(T,R=!1){const N=d.exec(T);return N?new m(N[2]||c,ne(N[4]||c),ne(N[5]||c),ne(N[7]||c),ne(N[9]||c),R):new m(c,c,c,c,c)}static file(T){let R=c;if(i&&(T=T.replace(/\\/g,u)),T[0]===u&&T[1]===u){const N=T.indexOf(u,2);N===-1?(R=T.substring(2),T=u):(R=T.substring(2,N),T=T.substring(N)||u)}return new m("file",R,T,c,c)}static from(T){const R=new m(T.scheme,T.authority,T.path,T.query,T.fragment);return l(R,!0),R}toString(T=!1){return v(this,T)}toJSON(){return this}static revive(T){if(T){if(T instanceof f)return T;{const R=new m(T);return R._formatted=T.external,R._fsPath=T._sep===h?T.fsPath:null,R}}return T}}const h=i?1:void 0;class m extends f{constructor(){super(...arguments);Je(this,"_formatted",null);Je(this,"_fsPath",null)}get fsPath(){return this._fsPath||(this._fsPath=E(this)),this._fsPath}toString(R=!1){return R?v(this,!0):(this._formatted||(this._formatted=v(this,!1)),this._formatted)}toJSON(){const R={$mid:1};return this._fsPath&&(R.fsPath=this._fsPath,R._sep=h),this._formatted&&(R.external=this._formatted),this.path&&(R.path=this.path),this.scheme&&(R.scheme=this.scheme),this.authority&&(R.authority=this.authority),this.query&&(R.query=this.query),this.fragment&&(R.fragment=this.fragment),R}}const g={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function _(A,T,R){let N,L=-1;for(let O=0;O=97&&w<=122||w>=65&&w<=90||w>=48&&w<=57||w===45||w===46||w===95||w===126||T&&w===47||R&&w===91||R&&w===93||R&&w===58)L!==-1&&(N+=encodeURIComponent(A.substring(L,O)),L=-1),N!==void 0&&(N+=A.charAt(O));else{N===void 0&&(N=A.substr(0,O));const ye=g[w];ye!==void 0?(L!==-1&&(N+=encodeURIComponent(A.substring(L,O)),L=-1),N+=ye):L===-1&&(L=O)}}return L!==-1&&(N+=encodeURIComponent(A.substring(L))),N!==void 0?N:A}function y(A){let T;for(let R=0;R1&&A.scheme==="file"?`//${A.authority}${A.path}`:A.path.charCodeAt(0)===47&&(A.path.charCodeAt(1)>=65&&A.path.charCodeAt(1)<=90||A.path.charCodeAt(1)>=97&&A.path.charCodeAt(1)<=122)&&A.path.charCodeAt(2)===58?A.path[1].toLowerCase()+A.path.substr(2):A.path,i&&(R=R.replace(/\//g,"\\")),R}function v(A,T){const R=T?y:_;let N="",{scheme:L,authority:O,path:w,query:ye,fragment:z}=A;if(L&&(N+=L,N+=":"),(O||L==="file")&&(N+=u,N+=u),O){let B=O.indexOf("@");if(B!==-1){const at=O.substr(0,B);O=O.substr(B+1),B=at.lastIndexOf(":"),B===-1?N+=R(at,!1,!1):(N+=R(at.substr(0,B),!1,!1),N+=":",N+=R(at.substr(B+1),!1,!0)),N+="@"}O=O.toLowerCase(),B=O.lastIndexOf(":"),B===-1?N+=R(O,!1,!0):(N+=R(O.substr(0,B),!1,!0),N+=O.substr(B))}if(w){if(w.length>=3&&w.charCodeAt(0)===47&&w.charCodeAt(2)===58){const B=w.charCodeAt(1);B>=65&&B<=90&&(w=`/${String.fromCharCode(B+32)}:${w.substr(3)}`)}else if(w.length>=2&&w.charCodeAt(1)===58){const B=w.charCodeAt(0);B>=65&&B<=90&&(w=`${String.fromCharCode(B+32)}:${w.substr(2)}`)}N+=R(w,!0,!1)}return ye&&(N+="?",N+=R(ye,!1,!1)),z&&(N+="#",N+=T?z:_(z,!1,!1)),N}function I(A){try{return decodeURIComponent(A)}catch{return A.length>3?A.substr(0,3)+I(A.substr(3)):A}}const j=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function ne(A){return A.match(j)?A.replace(j,T=>I(T)):A}var Ce=t(470);const ge=Ce.posix||Ce,De="/";var be;(function(A){A.joinPath=function(T,...R){return T.with({path:ge.join(T.path,...R)})},A.resolvePath=function(T,...R){let N=T.path,L=!1;N[0]!==De&&(N=De+N,L=!0);let O=ge.resolve(N,...R);return L&&O[0]===De&&!T.authority&&(O=O.substring(1)),T.with({path:O})},A.dirname=function(T){if(T.path.length===0||T.path===De)return T;let R=ge.dirname(T.path);return R.length===1&&R.charCodeAt(0)===46&&(R=""),T.with({path:R})},A.basename=function(T){return ge.basename(T.path)},A.extname=function(T){return ge.extname(T.path)}})(be||(be={}))})(),pc=r})();const{URI:Wt,Utils:sn}=pc;var rt;(function(n){n.basename=sn.basename,n.dirname=sn.dirname,n.extname=sn.extname,n.joinPath=sn.joinPath,n.resolvePath=sn.resolvePath;function e(r,i){return(r==null?void 0:r.toString())===(i==null?void 0:i.toString())}n.equals=e;function t(r,i){const s=typeof r=="string"?r:r.path,a=typeof i=="string"?i:i.path,o=s.split("/").filter(f=>f.length>0),l=a.split("/").filter(f=>f.length>0);let c=0;for(;ci??(i=mi.create(e.toString(),r.getServices(e).LanguageMetaData.languageId,0,t??""))}}class om{constructor(e){this.documentMap=new Map,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory}get all(){return Q(this.documentMap.values())}addDocument(e){const t=e.uri.toString();if(this.documentMap.has(t))throw new Error(`A document with the URI '${t}' is already present.`);this.documentMap.set(t,e)}getDocument(e){const t=e.toString();return this.documentMap.get(t)}async getOrCreateDocument(e,t){let r=this.getDocument(e);return r||(r=await this.langiumDocumentFactory.fromUri(e,t),this.addDocument(r),r)}createDocument(e,t,r){if(r)return this.langiumDocumentFactory.fromString(t,e,r).then(i=>(this.addDocument(i),i));{const i=this.langiumDocumentFactory.fromString(t,e);return this.addDocument(i),i}}hasDocument(e){return this.documentMap.has(e.toString())}invalidateDocument(e){const t=e.toString(),r=this.documentMap.get(t);return r&&(r.state=U.Changed,r.precomputedScopes=void 0,r.references=[],r.diagnostics=void 0),r}deleteDocument(e){const t=e.toString(),r=this.documentMap.get(t);return r&&(r.state=U.Changed,this.documentMap.delete(t)),r}}class lm{constructor(e){this.reflection=e.shared.AstReflection,this.langiumDocuments=()=>e.shared.workspace.LangiumDocuments,this.scopeProvider=e.references.ScopeProvider,this.astNodeLocator=e.workspace.AstNodeLocator}async link(e,t=X.None){for(const r of Et(e.parseResult.value))await Le(t),Zo(r).forEach(i=>this.doLink(i,e))}doLink(e,t){const r=e.reference;if(r._ref===void 0)try{const i=this.getCandidate(e);if(kn(i))r._ref=i;else if(r._nodeDescription=i,this.langiumDocuments().hasDocument(i.documentUri)){const s=this.loadAstNode(i);r._ref=s??this.createLinkingError(e,i)}}catch(i){r._ref=Object.assign(Object.assign({},e),{message:`An error occurred while resolving reference to '${r.$refText}': ${i}`})}t.references.push(r)}unlink(e){for(const t of e.references)delete t._ref,delete t._nodeDescription;e.references=[]}getCandidate(e){const r=this.scopeProvider.getScope(e).getElement(e.reference.$refText);return r??this.createLinkingError(e)}buildReference(e,t,r,i){const s=this,a={$refNode:r,$refText:i,get ref(){var o;if(ae(this._ref))return this._ref;if(Nu(this._nodeDescription)){const l=s.loadAstNode(this._nodeDescription);this._ref=l??s.createLinkingError({reference:a,container:e,property:t},this._nodeDescription)}else if(this._ref===void 0){const l=s.getLinkedNode({reference:a,container:e,property:t});if(l.error&&Ue(e).state=e.end)return s.ref}}if(r){const i=this.nameProvider.getNameNode(r);if(i&&(i===e||Su(e,i)))return r}}}findDeclarationNode(e){const t=this.findDeclaration(e);if(t!=null&&t.$cstNode){const r=this.nameProvider.getNameNode(t);return r??t.$cstNode}}findReferences(e,t){const r=[];if(t.includeDeclaration){const s=this.getReferenceToSelf(e);s&&r.push(s)}let i=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e));return t.documentUri&&(i=i.filter(s=>rt.equals(s.sourceUri,t.documentUri))),r.push(...i),Q(r)}getReferenceToSelf(e){const t=this.nameProvider.getNameNode(e);if(t){const r=Ue(e),i=this.nodeLocator.getAstNodePath(e);return{sourceUri:r.uri,sourcePath:i,targetUri:r.uri,targetPath:i,segment:Ln(t),local:!0}}}}class Wi{constructor(e){if(this.map=new Map,e)for(const[t,r]of e)this.add(t,r)}get size(){return Pr.sum(Q(this.map.values()).map(e=>e.length))}clear(){this.map.clear()}delete(e,t){if(t===void 0)return this.map.delete(e);{const r=this.map.get(e);if(r){const i=r.indexOf(t);if(i>=0)return r.length===1?this.map.delete(e):r.splice(i,1),!0}return!1}}get(e){var t;return(t=this.map.get(e))!==null&&t!==void 0?t:[]}has(e,t){if(t===void 0)return this.map.has(e);{const r=this.map.get(e);return r?r.indexOf(t)>=0:!1}}add(e,t){return this.map.has(e)?this.map.get(e).push(t):this.map.set(e,[t]),this}addAll(e,t){return this.map.has(e)?this.map.get(e).push(...t):this.map.set(e,Array.from(t)),this}forEach(e){this.map.forEach((t,r)=>t.forEach(i=>e(i,r,this)))}[Symbol.iterator](){return this.entries().iterator()}entries(){return Q(this.map.entries()).flatMap(([e,t])=>t.map(r=>[e,r]))}keys(){return Q(this.map.keys())}values(){return Q(this.map.values()).flat()}entriesGroupedByKey(){return Q(this.map.entries())}}class Ha{get size(){return this.map.size}constructor(e){if(this.map=new Map,this.inverse=new Map,e)for(const[t,r]of e)this.set(t,r)}clear(){this.map.clear(),this.inverse.clear()}set(e,t){return this.map.set(e,t),this.inverse.set(t,e),this}get(e){return this.map.get(e)}getKey(e){return this.inverse.get(e)}delete(e){const t=this.map.get(e);return t!==void 0?(this.map.delete(e),this.inverse.delete(t),!0):!1}}class fm{constructor(e){this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider}async computeExports(e,t=X.None){return this.computeExportsForNode(e.parseResult.value,e,void 0,t)}async computeExportsForNode(e,t,r=ki,i=X.None){const s=[];this.exportNode(e,s,t);for(const a of r(e))await Le(i),this.exportNode(a,s,t);return s}exportNode(e,t,r){const i=this.nameProvider.getName(e);i&&t.push(this.descriptions.createDescription(e,i,r))}async computeLocalScopes(e,t=X.None){const r=e.parseResult.value,i=new Wi;for(const s of pn(r))await Le(t),this.processNode(s,e,i);return i}processNode(e,t,r){const i=e.$container;if(i){const s=this.nameProvider.getName(e);s&&r.add(i,this.descriptions.createDescription(e,s,t))}}}class Va{constructor(e,t,r){var i;this.elements=e,this.outerScope=t,this.caseInsensitive=(i=r==null?void 0:r.caseInsensitive)!==null&&i!==void 0?i:!1}getAllElements(){return this.outerScope?this.elements.concat(this.outerScope.getAllElements()):this.elements}getElement(e){const t=this.caseInsensitive?this.elements.find(r=>r.name.toLowerCase()===e.toLowerCase()):this.elements.find(r=>r.name===e);if(t)return t;if(this.outerScope)return this.outerScope.getElement(e)}}class hm{constructor(e,t,r){var i;this.elements=new Map,this.caseInsensitive=(i=r==null?void 0:r.caseInsensitive)!==null&&i!==void 0?i:!1;for(const s of e){const a=this.caseInsensitive?s.name.toLowerCase():s.name;this.elements.set(a,s)}this.outerScope=t}getElement(e){const t=this.caseInsensitive?e.toLowerCase():e,r=this.elements.get(t);if(r)return r;if(this.outerScope)return this.outerScope.getElement(e)}getAllElements(){let e=Q(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}}class mc{constructor(){this.toDispose=[],this.isDisposed=!1}onDispose(e){this.toDispose.push(e)}dispose(){this.throwIfDisposed(),this.clear(),this.isDisposed=!0,this.toDispose.forEach(e=>e.dispose())}throwIfDisposed(){if(this.isDisposed)throw new Error("This cache has already been disposed")}}class pm extends mc{constructor(){super(...arguments),this.cache=new Map}has(e){return this.throwIfDisposed(),this.cache.has(e)}set(e,t){this.throwIfDisposed(),this.cache.set(e,t)}get(e,t){if(this.throwIfDisposed(),this.cache.has(e))return this.cache.get(e);if(t){const r=t();return this.cache.set(e,r),r}else return}delete(e){return this.throwIfDisposed(),this.cache.delete(e)}clear(){this.throwIfDisposed(),this.cache.clear()}}class mm extends mc{constructor(e){super(),this.cache=new Map,this.converter=e??(t=>t)}has(e,t){return this.throwIfDisposed(),this.cacheForContext(e).has(t)}set(e,t,r){this.throwIfDisposed(),this.cacheForContext(e).set(t,r)}get(e,t,r){this.throwIfDisposed();const i=this.cacheForContext(e);if(i.has(t))return i.get(t);if(r){const s=r();return i.set(t,s),s}else return}delete(e,t){return this.throwIfDisposed(),this.cacheForContext(e).delete(t)}clear(e){if(this.throwIfDisposed(),e){const t=this.converter(e);this.cache.delete(t)}else this.cache.clear()}cacheForContext(e){const t=this.converter(e);let r=this.cache.get(t);return r||(r=new Map,this.cache.set(t,r)),r}}class gm extends pm{constructor(e){super(),this.onDispose(e.workspace.DocumentBuilder.onUpdate(()=>{this.clear()}))}}class ym{constructor(e){this.reflection=e.shared.AstReflection,this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider,this.indexManager=e.shared.workspace.IndexManager,this.globalScopeCache=new gm(e.shared)}getScope(e){const t=[],r=this.reflection.getReferenceType(e),i=Ue(e.container).precomputedScopes;if(i){let a=e.container;do{const o=i.get(a);o.length>0&&t.push(Q(o).filter(l=>this.reflection.isSubtype(l.type,r))),a=a.$container}while(a)}let s=this.getGlobalScope(r,e);for(let a=t.length-1;a>=0;a--)s=this.createScope(t[a],s);return s}createScope(e,t,r){return new Va(Q(e),t,r)}createScopeForNodes(e,t,r){const i=Q(e).map(s=>{const a=this.nameProvider.getName(s);if(a)return this.descriptions.createDescription(s,a)}).nonNullable();return new Va(i,t,r)}getGlobalScope(e,t){return this.globalScopeCache.get(e,()=>new hm(this.indexManager.allElements(e)))}}function Tm(n){return typeof n.$comment=="string"}function Wa(n){return typeof n=="object"&&!!n&&("$ref"in n||"$error"in n)}class vm{constructor(e){this.ignoreProperties=new Set(["$container","$containerProperty","$containerIndex","$document","$cstNode"]),this.langiumDocuments=e.shared.workspace.LangiumDocuments,this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider,this.commentProvider=e.documentation.CommentProvider}serialize(e,t={}){const r=t==null?void 0:t.replacer,i=(a,o)=>this.replacer(a,o,t),s=r?(a,o)=>r(a,o,i):i;try{return this.currentDocument=Ue(e),JSON.stringify(e,s,t==null?void 0:t.space)}finally{this.currentDocument=void 0}}deserialize(e,t={}){const r=JSON.parse(e);return this.linkNode(r,r,t),r}replacer(e,t,{refText:r,sourceText:i,textRegions:s,comments:a,uriConverter:o}){var l,c,u,d;if(!this.ignoreProperties.has(e))if(Ge(t)){const f=t.ref,h=r?t.$refText:void 0;if(f){const m=Ue(f);let g="";this.currentDocument&&this.currentDocument!==m&&(o?g=o(m.uri,t):g=m.uri.toString());const _=this.astNodeLocator.getAstNodePath(f);return{$ref:`${g}#${_}`,$refText:h}}else return{$error:(c=(l=t.error)===null||l===void 0?void 0:l.message)!==null&&c!==void 0?c:"Could not resolve reference",$refText:h}}else if(ae(t)){let f;if(s&&(f=this.addAstNodeRegionWithAssignmentsTo(Object.assign({},t)),(!e||t.$document)&&(f!=null&&f.$textRegion)&&(f.$textRegion.documentURI=(u=this.currentDocument)===null||u===void 0?void 0:u.uri.toString())),i&&!e&&(f??(f=Object.assign({},t)),f.$sourceText=(d=t.$cstNode)===null||d===void 0?void 0:d.text),a){f??(f=Object.assign({},t));const h=this.commentProvider.getComment(t);h&&(f.$comment=h.replace(/\r/g,""))}return f??t}else return t}addAstNodeRegionWithAssignmentsTo(e){const t=r=>({offset:r.offset,end:r.end,length:r.length,range:r.range});if(e.$cstNode){const r=e.$textRegion=t(e.$cstNode),i=r.assignments={};return Object.keys(e).filter(s=>!s.startsWith("$")).forEach(s=>{const a=bd(e.$cstNode,s).map(t);a.length!==0&&(i[s]=a)}),e}}linkNode(e,t,r,i,s,a){for(const[l,c]of Object.entries(e))if(Array.isArray(c))for(let u=0;u{try{await e.call(t,r,i,s)}catch(a){if(Hi(a))throw a;console.error("An error occurred during validation:",a);const o=a instanceof Error?a.message:String(a);a instanceof Error&&a.stack&&console.error(a.stack),i("error","An error occurred during validation: "+o,{node:r})}}}addEntry(e,t){if(e==="AstNode"){this.entries.add("AstNode",t);return}for(const r of this.reflection.getAllSubTypes(e))this.entries.add(r,t)}getChecks(e,t){let r=Q(this.entries.get(e)).concat(this.entries.get("AstNode"));return t&&(r=r.filter(i=>t.includes(i.category))),r.map(i=>i.check)}}class Rm{constructor(e){this.validationRegistry=e.validation.ValidationRegistry,this.metadata=e.LanguageMetaData}async validateDocument(e,t={},r=X.None){const i=e.parseResult,s=[];if(await Le(r),(!t.categories||t.categories.includes("built-in"))&&(this.processLexingErrors(i,s,t),t.stopAfterLexingErrors&&s.some(a=>{var o;return((o=a.data)===null||o===void 0?void 0:o.code)===Qe.LexingError})||(this.processParsingErrors(i,s,t),t.stopAfterParsingErrors&&s.some(a=>{var o;return((o=a.data)===null||o===void 0?void 0:o.code)===Qe.ParsingError}))||(this.processLinkingErrors(e,s,t),t.stopAfterLinkingErrors&&s.some(a=>{var o;return((o=a.data)===null||o===void 0?void 0:o.code)===Qe.LinkingError}))))return s;try{s.push(...await this.validateAst(i.value,t,r))}catch(a){if(Hi(a))throw a;console.error("An error occurred during validation:",a)}return await Le(r),s}processLexingErrors(e,t,r){for(const i of e.lexerErrors){const s={severity:Or("error"),range:{start:{line:i.line-1,character:i.column-1},end:{line:i.line-1,character:i.column+i.length-1}},message:i.message,data:Ka(Qe.LexingError),source:this.getSource()};t.push(s)}}processParsingErrors(e,t,r){for(const i of e.parserErrors){let s;if(isNaN(i.token.startOffset)){if("previousToken"in i){const a=i.previousToken;if(isNaN(a.startOffset)){const o={line:0,character:0};s={start:o,end:o}}else{const o={line:a.endLine-1,character:a.endColumn};s={start:o,end:o}}}}else s=Dr(i.token);if(s){const a={severity:Or("error"),range:s,message:i.message,data:Ka(Qe.ParsingError),source:this.getSource()};t.push(a)}}}processLinkingErrors(e,t,r){for(const i of e.references){const s=i.error;if(s){const a={node:s.container,property:s.property,index:s.index,data:{code:Qe.LinkingError,containerType:s.container.$type,property:s.property,refText:s.reference.$refText}};t.push(this.toDiagnostic("error",s.message,a))}}}async validateAst(e,t,r=X.None){const i=[],s=(a,o,l)=>{i.push(this.toDiagnostic(a,o,l))};return await Promise.all(Et(e).map(async a=>{await Le(r);const o=this.validationRegistry.getChecks(a.$type,t.categories);for(const l of o)await l(a,s,r)})),i}toDiagnostic(e,t,r){return{message:t,range:Am(r),severity:Or(e),code:r.code,codeDescription:r.codeDescription,tags:r.tags,relatedInformation:r.relatedInformation,data:r.data,source:this.getSource()}}getSource(){return this.metadata.languageId}}function Am(n){if(n.range)return n.range;let e;return typeof n.property=="string"?e=il(n.node.$cstNode,n.property,n.index):typeof n.keyword=="string"&&(e=Nd(n.node.$cstNode,n.keyword,n.index)),e??(e=n.node.$cstNode),e?e.range:{start:{line:0,character:0},end:{line:0,character:0}}}function Or(n){switch(n){case"error":return 1;case"warning":return 2;case"info":return 3;case"hint":return 4;default:throw new Error("Invalid diagnostic severity: "+n)}}var Qe;(function(n){n.LexingError="lexing-error",n.ParsingError="parsing-error",n.LinkingError="linking-error"})(Qe||(Qe={}));class bm{constructor(e){this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider}createDescription(e,t,r=Ue(e)){t??(t=this.nameProvider.getName(e));const i=this.astNodeLocator.getAstNodePath(e);if(!t)throw new Error(`Node at path ${i} has no name.`);let s;const a=()=>{var o;return s??(s=Ln((o=this.nameProvider.getNameNode(e))!==null&&o!==void 0?o:e.$cstNode))};return{node:e,name:t,get nameSegment(){return a()},selectionSegment:Ln(e.$cstNode),type:e.$type,documentUri:r.uri,path:i}}}class Nm{constructor(e){this.nodeLocator=e.workspace.AstNodeLocator}async createDescriptions(e,t=X.None){const r=[],i=e.parseResult.value;for(const s of Et(i))await Le(t),Zo(s).filter(a=>!kn(a)).forEach(a=>{const o=this.createDescription(a);o&&r.push(o)});return r}createDescription(e){const t=e.reference.$nodeDescription,r=e.reference.$refNode;if(!t||!r)return;const i=Ue(e.container).uri;return{sourceUri:i,sourcePath:this.nodeLocator.getAstNodePath(e.container),targetUri:t.documentUri,targetPath:t.path,segment:Ln(r),local:rt.equals(t.documentUri,i)}}}class km{constructor(){this.segmentSeparator="/",this.indexSeparator="@"}getAstNodePath(e){if(e.$container){const t=this.getAstNodePath(e.$container),r=this.getPathSegment(e);return t+this.segmentSeparator+r}return""}getPathSegment({$containerProperty:e,$containerIndex:t}){if(!e)throw new Error("Missing '$containerProperty' in AST node.");return t!==void 0?e+this.indexSeparator+t:e}getAstNode(e,t){return t.split(this.segmentSeparator).reduce((i,s)=>{if(!i||s.length===0)return i;const a=s.indexOf(this.indexSeparator);if(a>0){const o=s.substring(0,a),l=parseInt(s.substring(a+1)),c=i[o];return c==null?void 0:c[l]}return i[s]},e)}}class Im{constructor(e){this._ready=new Vi,this.settings={},this.workspaceConfig=!1,this.serviceRegistry=e.ServiceRegistry}get ready(){return this._ready.promise}initialize(e){var t,r;this.workspaceConfig=(r=(t=e.capabilities.workspace)===null||t===void 0?void 0:t.configuration)!==null&&r!==void 0?r:!1}async initialized(e){if(this.workspaceConfig){if(e.register){const t=this.serviceRegistry.all;e.register({section:t.map(r=>this.toSectionName(r.LanguageMetaData.languageId))})}if(e.fetchConfiguration){const t=this.serviceRegistry.all.map(i=>({section:this.toSectionName(i.LanguageMetaData.languageId)})),r=await e.fetchConfiguration(t);t.forEach((i,s)=>{this.updateSectionConfiguration(i.section,r[s])})}}this._ready.resolve()}updateConfiguration(e){e.settings&&Object.keys(e.settings).forEach(t=>{this.updateSectionConfiguration(t,e.settings[t])})}updateSectionConfiguration(e,t){this.settings[e]=t}async getConfiguration(e,t){await this.ready;const r=this.toSectionName(e);if(this.settings[r])return this.settings[r][t]}toSectionName(e){return`${e}`}}var er;(function(n){function e(t){return{dispose:async()=>await t()}}n.create=e})(er||(er={}));class Sm{constructor(e){this.updateBuildOptions={validation:{categories:["built-in","fast"]}},this.updateListeners=[],this.buildPhaseListeners=new Wi,this.buildState=new Map,this.documentBuildWaiters=new Map,this.currentState=U.Changed,this.langiumDocuments=e.workspace.LangiumDocuments,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.indexManager=e.workspace.IndexManager,this.serviceRegistry=e.ServiceRegistry}async build(e,t={},r=X.None){var i,s;for(const a of e){const o=a.uri.toString();if(a.state===U.Validated){if(typeof t.validation=="boolean"&&t.validation)a.state=U.IndexedReferences,a.diagnostics=void 0,this.buildState.delete(o);else if(typeof t.validation=="object"){const l=this.buildState.get(o),c=(i=l==null?void 0:l.result)===null||i===void 0?void 0:i.validationChecks;if(c){const d=((s=t.validation.categories)!==null&&s!==void 0?s:Zn.all).filter(f=>!c.includes(f));d.length>0&&(this.buildState.set(o,{completed:!1,options:{validation:Object.assign(Object.assign({},t.validation),{categories:d})},result:l.result}),a.state=U.IndexedReferences)}}}else this.buildState.delete(o)}this.currentState=U.Changed,await this.emitUpdate(e.map(a=>a.uri),[]),await this.buildDocuments(e,t,r)}async update(e,t,r=X.None){this.currentState=U.Changed;for(const a of t)this.langiumDocuments.deleteDocument(a),this.buildState.delete(a.toString()),this.indexManager.remove(a);for(const a of e){if(!this.langiumDocuments.invalidateDocument(a)){const l=this.langiumDocumentFactory.fromModel({$type:"INVALID"},a);l.state=U.Changed,this.langiumDocuments.addDocument(l)}this.buildState.delete(a.toString())}const i=Q(e).concat(t).map(a=>a.toString()).toSet();this.langiumDocuments.all.filter(a=>!i.has(a.uri.toString())&&this.shouldRelink(a,i)).forEach(a=>{this.serviceRegistry.getServices(a.uri).references.Linker.unlink(a),a.state=Math.min(a.state,U.ComputedScopes),a.diagnostics=void 0}),await this.emitUpdate(e,t),await Le(r);const s=this.langiumDocuments.all.filter(a=>{var o;return a.stater(e,t)))}shouldRelink(e,t){return e.references.some(r=>r.error!==void 0)?!0:this.indexManager.isAffected(e,t)}onUpdate(e){return this.updateListeners.push(e),er.create(()=>{const t=this.updateListeners.indexOf(e);t>=0&&this.updateListeners.splice(t,1)})}async buildDocuments(e,t,r){this.prepareBuild(e,t),await this.runCancelable(e,U.Parsed,r,s=>this.langiumDocumentFactory.update(s,r)),await this.runCancelable(e,U.IndexedContent,r,s=>this.indexManager.updateContent(s,r)),await this.runCancelable(e,U.ComputedScopes,r,async s=>{const a=this.serviceRegistry.getServices(s.uri).references.ScopeComputation;s.precomputedScopes=await a.computeLocalScopes(s,r)}),await this.runCancelable(e,U.Linked,r,s=>this.serviceRegistry.getServices(s.uri).references.Linker.link(s,r)),await this.runCancelable(e,U.IndexedReferences,r,s=>this.indexManager.updateReferences(s,r));const i=e.filter(s=>this.shouldValidate(s));await this.runCancelable(i,U.Validated,r,s=>this.validate(s,r));for(const s of e){const a=this.buildState.get(s.uri.toString());a&&(a.completed=!0)}}prepareBuild(e,t){for(const r of e){const i=r.uri.toString(),s=this.buildState.get(i);(!s||s.completed)&&this.buildState.set(i,{completed:!1,options:t,result:s==null?void 0:s.result})}}async runCancelable(e,t,r,i){const s=e.filter(a=>a.state{this.buildPhaseListeners.delete(e,t)})}waitUntil(e,t,r){let i;if(t&&"path"in t?i=t:r=t,r??(r=X.None),i){const s=this.langiumDocuments.getDocument(i);if(s&&s.state>e)return Promise.resolve(i)}return this.currentState>=e?Promise.resolve(void 0):r.isCancellationRequested?Promise.reject(Qn):new Promise((s,a)=>{const o=this.onBuildPhase(e,()=>{if(o.dispose(),l.dispose(),i){const c=this.langiumDocuments.getDocument(i);s(c==null?void 0:c.uri)}else s(void 0)}),l=r.onCancellationRequested(()=>{o.dispose(),l.dispose(),a(Qn)})})}async notifyBuildPhase(e,t,r){if(e.length===0)return;const i=this.buildPhaseListeners.get(t);for(const s of i)await Le(r),await s(e,r)}shouldValidate(e){return!!this.getBuildOptions(e).validation}async validate(e,t){var r,i;const s=this.serviceRegistry.getServices(e.uri).validation.DocumentValidator,a=this.getBuildOptions(e).validation,o=typeof a=="object"?a:void 0,l=await s.validateDocument(e,o,t);e.diagnostics?e.diagnostics.push(...l):e.diagnostics=l;const c=this.buildState.get(e.uri.toString());if(c){(r=c.result)!==null&&r!==void 0||(c.result={});const u=(i=o==null?void 0:o.categories)!==null&&i!==void 0?i:Zn.all;c.result.validationChecks?c.result.validationChecks.push(...u):c.result.validationChecks=[...u]}}getBuildOptions(e){var t,r;return(r=(t=this.buildState.get(e.uri.toString()))===null||t===void 0?void 0:t.options)!==null&&r!==void 0?r:{}}}class xm{constructor(e){this.symbolIndex=new Map,this.symbolByTypeIndex=new mm,this.referenceIndex=new Map,this.documents=e.workspace.LangiumDocuments,this.serviceRegistry=e.ServiceRegistry,this.astReflection=e.AstReflection}findAllReferences(e,t){const r=Ue(e).uri,i=[];return this.referenceIndex.forEach(s=>{s.forEach(a=>{rt.equals(a.targetUri,r)&&a.targetPath===t&&i.push(a)})}),Q(i)}allElements(e,t){let r=Q(this.symbolIndex.keys());return t&&(r=r.filter(i=>!t||t.has(i))),r.map(i=>this.getFileDescriptions(i,e)).flat()}getFileDescriptions(e,t){var r;return t?this.symbolByTypeIndex.get(e,t,()=>{var s;return((s=this.symbolIndex.get(e))!==null&&s!==void 0?s:[]).filter(o=>this.astReflection.isSubtype(o.type,t))}):(r=this.symbolIndex.get(e))!==null&&r!==void 0?r:[]}remove(e){const t=e.toString();this.symbolIndex.delete(t),this.symbolByTypeIndex.clear(t),this.referenceIndex.delete(t)}async updateContent(e,t=X.None){const i=await this.serviceRegistry.getServices(e.uri).references.ScopeComputation.computeExports(e,t),s=e.uri.toString();this.symbolIndex.set(s,i),this.symbolByTypeIndex.clear(s)}async updateReferences(e,t=X.None){const i=await this.serviceRegistry.getServices(e.uri).workspace.ReferenceDescriptionProvider.createDescriptions(e,t);this.referenceIndex.set(e.uri.toString(),i)}isAffected(e,t){const r=this.referenceIndex.get(e.uri.toString());return r?r.some(i=>!i.local&&t.has(i.targetUri.toString())):!1}}class Cm{constructor(e){this.initialBuildOptions={},this._ready=new Vi,this.serviceRegistry=e.ServiceRegistry,this.langiumDocuments=e.workspace.LangiumDocuments,this.documentBuilder=e.workspace.DocumentBuilder,this.fileSystemProvider=e.workspace.FileSystemProvider,this.mutex=e.workspace.WorkspaceLock}get ready(){return this._ready.promise}initialize(e){var t;this.folders=(t=e.workspaceFolders)!==null&&t!==void 0?t:void 0}initialized(e){return this.mutex.write(t=>{var r;return this.initializeWorkspace((r=this.folders)!==null&&r!==void 0?r:[],t)})}async initializeWorkspace(e,t=X.None){const r=await this.performStartup(e);await Le(t),await this.documentBuilder.build(r,this.initialBuildOptions,t)}async performStartup(e){const t=this.serviceRegistry.all.flatMap(s=>s.LanguageMetaData.fileExtensions),r=[],i=s=>{r.push(s),this.langiumDocuments.hasDocument(s.uri)||this.langiumDocuments.addDocument(s)};return await this.loadAdditionalDocuments(e,i),await Promise.all(e.map(s=>[s,this.getRootFolder(s)]).map(async s=>this.traverseFolder(...s,t,i))),this._ready.resolve(),r}loadAdditionalDocuments(e,t){return Promise.resolve()}getRootFolder(e){return Wt.parse(e.uri)}async traverseFolder(e,t,r,i){const s=await this.fileSystemProvider.readDirectory(t);await Promise.all(s.map(async a=>{if(this.includeEntry(e,a,r)){if(a.isDirectory)await this.traverseFolder(e,a.uri,r,i);else if(a.isFile){const o=await this.langiumDocuments.getOrCreateDocument(a.uri);i(o)}}}))}includeEntry(e,t,r){const i=rt.basename(t.uri);if(i.startsWith("."))return!1;if(t.isDirectory)return i!=="node_modules"&&i!=="out";if(t.isFile){const s=rt.extname(t.uri);return r.includes(s)}return!1}}class wm{constructor(e){const t=e.parser.TokenBuilder.buildTokens(e.Grammar,{caseInsensitive:e.LanguageMetaData.caseInsensitive});this.tokenTypes=this.toTokenTypeDictionary(t);const r=za(t)?Object.values(t):t;this.chevrotainLexer=new de(r,{positionTracking:"full"})}get definition(){return this.tokenTypes}tokenize(e){var t;const r=this.chevrotainLexer.tokenize(e);return{tokens:r.tokens,errors:r.errors,hidden:(t=r.groups.hidden)!==null&&t!==void 0?t:[]}}toTokenTypeDictionary(e){if(za(e))return e;const t=gc(e)?Object.values(e.modes).flat():e,r={};return t.forEach(i=>r[i.name]=i),r}}function Om(n){return Array.isArray(n)&&(n.length===0||"name"in n[0])}function gc(n){return n&&"modes"in n&&"defaultMode"in n}function za(n){return!Om(n)&&!gc(n)}function Lm(n,e,t){let r,i;typeof n=="string"?(i=e,r=t):(i=n.range.start,r=e),i||(i=P.create(0,0));const s=yc(n),a=Ki(r),o=Mm({lines:s,position:i,options:a});return Fm({index:0,tokens:o,position:i})}function $m(n,e){const t=Ki(e),r=yc(n);if(r.length===0)return!1;const i=r[0],s=r[r.length-1],a=t.start,o=t.end;return!!(a!=null&&a.exec(i))&&!!(o!=null&&o.exec(s))}function yc(n){let e="";return typeof n=="string"?e=n:e=n.text,e.split(hd)}const qa=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,Pm=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu;function Mm(n){var e,t,r;const i=[];let s=n.position.line,a=n.position.character;for(let o=0;o=u.length){if(i.length>0){const h=P.create(s,a);i.push({type:"break",content:"",range:$.create(h,h)})}}else{qa.lastIndex=d;const h=qa.exec(u);if(h){const m=h[0],g=h[1],_=P.create(s,a+d),y=P.create(s,a+d+m.length);i.push({type:"tag",content:g,range:$.create(_,y)}),d+=m.length,d=yi(u,d)}if(d0&&i[i.length-1].type==="break"?i.slice(0,-1):i}function Dm(n,e,t,r){const i=[];if(n.length===0){const s=P.create(t,r),a=P.create(t,r+e.length);i.push({type:"text",content:e,range:$.create(s,a)})}else{let s=0;for(const o of n){const l=o.index,c=e.substring(s,l);c.length>0&&i.push({type:"text",content:e.substring(s,l),range:$.create(P.create(t,s+r),P.create(t,l+r))});let u=c.length+1;const d=o[1];if(i.push({type:"inline-tag",content:d,range:$.create(P.create(t,s+u+r),P.create(t,s+u+d.length+r))}),u+=d.length,o.length===4){u+=o[2].length;const f=o[3];i.push({type:"text",content:f,range:$.create(P.create(t,s+u+r),P.create(t,s+u+f.length+r))})}else i.push({type:"text",content:"",range:$.create(P.create(t,s+u+r),P.create(t,s+u+r))});s=l+o[0].length}const a=e.substring(s);a.length>0&&i.push({type:"text",content:a,range:$.create(P.create(t,s+r),P.create(t,s+r+a.length))})}return i}const jm=/\S/,Gm=/\s*$/;function yi(n,e){const t=n.substring(e).match(jm);return t?e+t.index:n.length}function Um(n){const e=n.match(Gm);if(e&&typeof e.index=="number")return e.index}function Fm(n){var e,t,r,i;const s=P.create(n.position.line,n.position.character);if(n.tokens.length===0)return new Ya([],$.create(s,s));const a=[];for(;n.indext.name===e)}getTags(e){return this.getAllTags().filter(t=>t.name===e)}getAllTags(){return this.elements.filter(e=>"name"in e)}toString(){let e="";for(const t of this.elements)if(e.length===0)e=t.toString();else{const r=t.toString();e+=Xa(e)+r}return e.trim()}toMarkdown(e){let t="";for(const r of this.elements)if(t.length===0)t=r.toMarkdown(e);else{const i=r.toMarkdown(e);t+=Xa(t)+i}return t.trim()}}class $r{constructor(e,t,r,i){this.name=e,this.content=t,this.inline=r,this.range=i}toString(){let e=`@${this.name}`;const t=this.content.toString();return this.content.inlines.length===1?e=`${e} ${t}`:this.content.inlines.length>1&&(e=`${e} +`;case"r":return"\r";case"t":return" ";case"v":return"\v";case"0":return"\0";default:return c}}function r(c){return c.charAt(0)==="^"?c.substring(1):c}n.convertID=r;function i(c){return parseInt(c)}n.convertInt=i;function s(c){return BigInt(c)}n.convertBigint=s;function a(c){return new Date(c)}n.convertDate=a;function o(c){return Number(c)}n.convertNumber=o;function l(c){return c.toLowerCase()==="true"}n.convertBoolean=l})(Ve||(Ve={}));var dn={},yr={};Object.defineProperty(yr,"__esModule",{value:!0});let di;function fi(){if(di===void 0)throw new Error("No runtime abstraction layer installed");return di}(function(n){function e(t){if(t===void 0)throw new Error("No runtime abstraction layer provided");di=t}n.install=e})(fi||(fi={}));yr.default=fi;var se={};Object.defineProperty(se,"__esModule",{value:!0});se.stringArray=se.array=se.func=se.error=se.number=se.string=se.boolean=void 0;function Kp(n){return n===!0||n===!1}se.boolean=Kp;function uc(n){return typeof n=="string"||n instanceof String}se.string=uc;function zp(n){return typeof n=="number"||n instanceof Number}se.number=zp;function qp(n){return n instanceof Error}se.error=qp;function Yp(n){return typeof n=="function"}se.func=Yp;function dc(n){return Array.isArray(n)}se.array=dc;function Xp(n){return dc(n)&&n.every(e=>uc(e))}se.stringArray=Xp;var Vt={};Object.defineProperty(Vt,"__esModule",{value:!0});Vt.Emitter=Vt.Event=void 0;const Jp=yr;var Ga;(function(n){const e={dispose(){}};n.None=function(){return e}})(Ga||(Vt.Event=Ga={}));class Qp{add(e,t=null,r){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(r)&&r.push({dispose:()=>this.remove(e,t)})}remove(e,t=null){if(!this._callbacks)return;let r=!1;for(let i=0,s=this._callbacks.length;i{this._callbacks||(this._callbacks=new Qp),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,t);const i={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,t),i.dispose=Tr._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(r)&&r.push(i),i}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}}Vt.Emitter=Tr;Tr._noop=function(){};var X;Object.defineProperty(dn,"__esModule",{value:!0});var hi=dn.CancellationTokenSource=X=dn.CancellationToken=void 0;const Zp=yr,em=se,pi=Vt;var Jn;(function(n){n.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:pi.Event.None}),n.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:pi.Event.None});function e(t){const r=t;return r&&(r===n.None||r===n.Cancelled||em.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}n.is=e})(Jn||(X=dn.CancellationToken=Jn={}));const tm=Object.freeze(function(n,e){const t=(0,Zp.default)().timer.setTimeout(n.bind(e),0);return{dispose(){t.dispose()}}});class Ua{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?tm:(this._emitter||(this._emitter=new pi.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}}class nm{get token(){return this._token||(this._token=new Ua),this._token}cancel(){this._token?this._token.cancel():this._token=Jn.Cancelled}dispose(){this._token?this._token instanceof Ua&&this._token.dispose():this._token=Jn.None}}hi=dn.CancellationTokenSource=nm;function rm(){return new Promise(n=>{typeof setImmediate>"u"?setTimeout(n,0):setImmediate(n)})}let Fa=0,im=10;const Qn=Symbol("OperationCancelled");function Hi(n){return n===Qn}async function Le(n){if(n===X.None)return;const e=Date.now();if(e-Fa>=im&&(Fa=e,await rm()),n.isCancellationRequested)throw Qn}class Vi{constructor(){this.promise=new Promise((e,t)=>{this.resolve=r=>(e(r),this),this.reject=r=>(t(r),this)})}}class fn{constructor(e,t,r,i){this._uri=e,this._languageId=t,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const t=this.offsetAt(e.start),r=this.offsetAt(e.end);return this._content.substring(t,r)}return this._content}update(e,t){for(const r of e)if(fn.isIncremental(r)){const i=hc(r.range),s=this.offsetAt(i.start),a=this.offsetAt(i.end);this._content=this._content.substring(0,s)+r.text+this._content.substring(a,this._content.length);const o=Math.max(i.start.line,0),l=Math.max(i.end.line,0);let c=this._lineOffsets;const u=Ba(r.text,!1,s);if(l-o===u.length)for(let f=0,h=u.length;fe?i=a:r=a+1}const s=r-1;return e=this.ensureBeforeEOL(e,t[s]),{line:s,character:e-t[s]}}offsetAt(e){const t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;const r=t[e.line];if(e.character<=0)return r;const i=e.line+1t&&fc(this._content.charCodeAt(e-1));)e--;return e}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){const t=e;return t!=null&&typeof t.text=="string"&&t.range!==void 0&&(t.rangeLength===void 0||typeof t.rangeLength=="number")}static isFull(e){const t=e;return t!=null&&typeof t.text=="string"&&t.range===void 0&&t.rangeLength===void 0}}var mi;(function(n){function e(i,s,a,o){return new fn(i,s,a,o)}n.create=e;function t(i,s,a){if(i instanceof fn)return i.update(s,a),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}n.update=t;function r(i,s){const a=i.getText(),o=gi(s.map(sm),(u,d)=>{const f=u.range.start.line-d.range.start.line;return f===0?u.range.start.character-d.range.start.character:f});let l=0;const c=[];for(const u of o){const d=i.offsetAt(u.range.start);if(dl&&c.push(a.substring(l,d)),u.newText.length&&c.push(u.newText),l=i.offsetAt(u.range.end)}return c.push(a.substr(l)),c.join("")}n.applyEdits=r})(mi||(mi={}));function gi(n,e){if(n.length<=1)return n;const t=n.length/2|0,r=n.slice(0,t),i=n.slice(t);gi(r,e),gi(i,e);let s=0,a=0,o=0;for(;st.line||e.line===t.line&&e.character>t.character?{start:t,end:e}:n}function sm(n){const e=hc(n.range);return e!==n.range?{newText:n.newText,range:e}:n}var wr={version:"v20.18.3",versions:{node:"20.18.3",acorn:"8.14.0",ada:"2.9.2",ares:"1.34.4",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.15+quic",simdutf:"5.6.4",tz:"2024b",undici:"6.21.1",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.25",zlib:"1.3.0.1-motley-82a5fec"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.18.3/node-v20.18.3.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.18.3/node-v20.18.3-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule internal/util","NativeModule internal/util/types","NativeModule internal/validators","NativeModule internal/linkedlist","NativeModule internal/priority_queue","Internal Binding icu","NativeModule internal/util/inspect","NativeModule internal/util/debuglog","NativeModule internal/timers","NativeModule internal/events/abort_listener","NativeModule events","Internal Binding buffer","NativeModule internal/buffer","NativeModule buffer","Internal Binding messaging","NativeModule internal/worker/js_transferable","NativeModule internal/querystring","NativeModule internal/constants","NativeModule path","NativeModule querystring","Internal Binding url","NativeModule internal/url","NativeModule internal/fs/utils","Internal Binding process_methods","NativeModule internal/process/per_thread","Internal Binding credentials","NativeModule internal/process/promises","NativeModule internal/fixed_queue","NativeModule async_hooks","NativeModule internal/process/task_queues","NativeModule timers","Internal Binding trace_events","Internal Binding contextify","NativeModule internal/vm","NativeModule internal/process/execution","NativeModule internal/process/warning","NativeModule internal/source_map/source_map_cache","Internal Binding fs","Internal Binding blob","Internal Binding encoding_binding","NativeModule internal/encoding","NativeModule internal/streams/utils","NativeModule util","NativeModule internal/webstreams/util","NativeModule internal/webstreams/queuingstrategies","NativeModule internal/blob","Internal Binding permission","NativeModule internal/process/permission","NativeModule fs","NativeModule internal/modules/helpers","NativeModule internal/console/constructor","NativeModule internal/console/global","NativeModule internal/util/inspector","Internal Binding inspector","NativeModule internal/webidl","Internal Binding performance","NativeModule internal/perf/utils","NativeModule internal/event_target","Internal Binding wasm_web_api","Internal Binding mksnapshot","NativeModule internal/v8/startup_snapshot","NativeModule internal/process/signal","NativeModule url","NativeModule internal/modules/package_json_reader","NativeModule internal/modules/cjs/loader","NativeModule internal/process/pre_execution","NativeModule internal/modules/esm/utils","NativeModule internal/inspector_async_hook","Internal Binding worker","NativeModule internal/modules/run_main","NativeModule internal/net","NativeModule internal/dns/utils","NativeModule internal/modules/esm/assert","NativeModule internal/modules/esm/loader","NativeModule internal/modules/esm/module_map","NativeModule internal/modules/esm/translators","NativeModule internal/modules/esm/package_config","NativeModule internal/modules/esm/formats","NativeModule internal/modules/esm/get_format","NativeModule internal/modules/esm/resolve","NativeModule internal/modules/esm/module_job","NativeModule internal/modules/esm/load","Internal Binding fs_dir","NativeModule internal/fs/dir","NativeModule string_decoder","Internal Binding fs_event_wrap","Internal Binding uv","NativeModule internal/fs/watchers","NativeModule internal/fs/recursive_watch","NativeModule internal/readline/utils","NativeModule internal/readline/callbacks","NativeModule internal/readline/interface","NativeModule internal/fs/promises","NativeModule internal/perf/performance_entry","NativeModule internal/perf/observe","NativeModule internal/perf/resource_timing","NativeModule internal/perf/nodetiming","NativeModule internal/perf/usertiming","NativeModule internal/perf/event_loop_utilization","NativeModule internal/histogram","NativeModule internal/perf/timerify","NativeModule internal/perf/performance","NativeModule internal/perf/event_loop_delay","NativeModule perf_hooks","NativeModule internal/modules/esm/initialize_import_meta","NativeModule internal/streams/destroy","NativeModule internal/abort_controller","NativeModule internal/streams/end-of-stream","NativeModule internal/streams/legacy","NativeModule internal/streams/add-abort-signal","NativeModule internal/streams/state","NativeModule internal/streams/from","NativeModule internal/streams/readable","NativeModule internal/streams/writable","NativeModule internal/streams/duplex","NativeModule internal/streams/pipeline","NativeModule internal/streams/compose","NativeModule internal/streams/operators","NativeModule stream/promises","NativeModule internal/streams/transform","NativeModule internal/streams/passthrough","NativeModule internal/streams/duplexpair","NativeModule stream","NativeModule internal/fs/streams","NativeModule fs/promises","NativeModule internal/util/parse_args/utils","NativeModule internal/util/parse_args/parse_args","NativeModule internal/mime","NativeModule internal/source_map/source_map","NativeModule module","Internal Binding crypto","NativeModule internal/crypto/random","NativeModule internal/crypto/hashnames","NativeModule internal/crypto/util","NativeModule internal/crypto/pbkdf2","NativeModule internal/crypto/scrypt","NativeModule internal/crypto/keys","NativeModule internal/crypto/hkdf","NativeModule internal/crypto/keygen","NativeModule internal/crypto/diffiehellman","NativeModule internal/streams/lazy_transform","NativeModule internal/crypto/cipher","NativeModule internal/crypto/sig","NativeModule internal/crypto/hash","NativeModule internal/crypto/x509","NativeModule internal/crypto/certificate","NativeModule crypto","NativeModule internal/crypto/webcrypto","Internal Binding stream_wrap","Internal Binding tcp_wrap","Internal Binding pipe_wrap","NativeModule internal/stream_base_commons","NativeModule diagnostics_channel","NativeModule net","Internal Binding tty_wrap","NativeModule internal/tty","NativeModule tty","NativeModule internal/deps/cjs-module-lexer/dist/lexer","Internal Binding udp_wrap","NativeModule internal/dgram","NativeModule dgram","Internal Binding process_wrap","NativeModule internal/socket_list","Internal Binding spawn_sync","NativeModule internal/child_process","NativeModule child_process","NativeModule _http_agent","Internal Binding http_parser","NativeModule internal/freelist","NativeModule _http_incoming","NativeModule _http_common","NativeModule internal/http","NativeModule _http_outgoing","NativeModule _http_client","NativeModule _http_server","NativeModule http","Internal Binding cares_wrap","NativeModule internal/tls/secure-context","NativeModule _tls_common","Internal Binding js_stream","NativeModule internal/js_stream_socket","Internal Binding tls_wrap","NativeModule _tls_wrap","NativeModule internal/tls/secure-pair","NativeModule tls","NativeModule https","Internal Binding block_list","NativeModule internal/socketaddress","NativeModule internal/blocklist","Internal Binding os","NativeModule os","NativeModule internal/dns/callback_resolver","NativeModule dns","NativeModule internal/dns/promises","NativeModule internal/util/colors","NativeModule internal/assert/assertion_error","NativeModule internal/assert/utils","NativeModule internal/assert/calltracker","NativeModule assert","Internal Binding serdes","Internal Binding profiler","Internal Binding heap_utils","Internal Binding internal_only_v8","NativeModule internal/heap_utils","NativeModule internal/promise_hooks","Internal Binding v8","NativeModule v8","NativeModule internal/worker/io","NativeModule internal/error_serdes","NativeModule internal/worker","NativeModule worker_threads","NativeModule internal/file","NativeModule internal/readline/emitKeypressEvents","NativeModule internal/readline/promises","NativeModule readline/promises","NativeModule readline","Internal Binding zlib","NativeModule zlib","NativeModule process","Internal Binding report","NativeModule internal/process/report","NativeModule constants","NativeModule internal/crypto/webidl"],_events:{newListener:[null,null],removeListener:[null,null]},_eventsCount:3,domain:null,_exiting:!1,config:{target_defaults:{cflags:[],default_configuration:"Release",defines:["NODE_OPENSSL_CONF_NAME=nodejs_conf","NODE_OPENSSL_HAS_QUIC","ICU_NO_USER_DATA_OVERRIDE"],include_dirs:[],libraries:[]},variables:{asan:0,clang:0,coverage:!1,dcheck_always_on:0,debug_nghttp2:!1,debug_node:!1,enable_lto:!1,enable_pgo_generate:!1,enable_pgo_use:!1,error_on_warn:!1,force_dynamic_crt:0,gas_version:"2.35",host_arch:"x64",icu_data_in:"../../deps/icu-tmp/icudt75l.dat",icu_endianness:"l",icu_gyp_path:"tools/icu/icu-generic.gyp",icu_path:"deps/icu-small",icu_small:!1,icu_ver_major:"75",is_debug:0,libdir:"lib",llvm_version:"0.0",napi_build_version:"9",node_builtin_shareable_builtins:["deps/cjs-module-lexer/lexer.js","deps/cjs-module-lexer/dist/lexer.js","deps/undici/undici.js"],node_byteorder:"little",node_debug_lib:!1,node_enable_d8:!1,node_enable_v8_vtunejit:!1,node_fipsinstall:!1,node_install_corepack:!0,node_install_npm:!0,node_library_files:["lib/_http_agent.js","lib/_http_client.js","lib/_http_common.js","lib/_http_incoming.js","lib/_http_outgoing.js","lib/_http_server.js","lib/_stream_duplex.js","lib/_stream_passthrough.js","lib/_stream_readable.js","lib/_stream_transform.js","lib/_stream_wrap.js","lib/_stream_writable.js","lib/_tls_common.js","lib/_tls_wrap.js","lib/assert.js","lib/assert/strict.js","lib/async_hooks.js","lib/buffer.js","lib/child_process.js","lib/cluster.js","lib/console.js","lib/constants.js","lib/crypto.js","lib/dgram.js","lib/diagnostics_channel.js","lib/dns.js","lib/dns/promises.js","lib/domain.js","lib/events.js","lib/fs.js","lib/fs/promises.js","lib/http.js","lib/http2.js","lib/https.js","lib/inspector.js","lib/inspector/promises.js","lib/internal/abort_controller.js","lib/internal/assert.js","lib/internal/assert/assertion_error.js","lib/internal/assert/calltracker.js","lib/internal/assert/utils.js","lib/internal/async_hooks.js","lib/internal/blob.js","lib/internal/blocklist.js","lib/internal/bootstrap/node.js","lib/internal/bootstrap/realm.js","lib/internal/bootstrap/shadow_realm.js","lib/internal/bootstrap/switches/does_not_own_process_state.js","lib/internal/bootstrap/switches/does_own_process_state.js","lib/internal/bootstrap/switches/is_main_thread.js","lib/internal/bootstrap/switches/is_not_main_thread.js","lib/internal/bootstrap/web/exposed-wildcard.js","lib/internal/bootstrap/web/exposed-window-or-worker.js","lib/internal/buffer.js","lib/internal/child_process.js","lib/internal/child_process/serialization.js","lib/internal/cli_table.js","lib/internal/cluster/child.js","lib/internal/cluster/primary.js","lib/internal/cluster/round_robin_handle.js","lib/internal/cluster/shared_handle.js","lib/internal/cluster/utils.js","lib/internal/cluster/worker.js","lib/internal/console/constructor.js","lib/internal/console/global.js","lib/internal/constants.js","lib/internal/crypto/aes.js","lib/internal/crypto/certificate.js","lib/internal/crypto/cfrg.js","lib/internal/crypto/cipher.js","lib/internal/crypto/diffiehellman.js","lib/internal/crypto/ec.js","lib/internal/crypto/hash.js","lib/internal/crypto/hashnames.js","lib/internal/crypto/hkdf.js","lib/internal/crypto/keygen.js","lib/internal/crypto/keys.js","lib/internal/crypto/mac.js","lib/internal/crypto/pbkdf2.js","lib/internal/crypto/random.js","lib/internal/crypto/rsa.js","lib/internal/crypto/scrypt.js","lib/internal/crypto/sig.js","lib/internal/crypto/util.js","lib/internal/crypto/webcrypto.js","lib/internal/crypto/webidl.js","lib/internal/crypto/x509.js","lib/internal/debugger/inspect.js","lib/internal/debugger/inspect_client.js","lib/internal/debugger/inspect_repl.js","lib/internal/dgram.js","lib/internal/dns/callback_resolver.js","lib/internal/dns/promises.js","lib/internal/dns/utils.js","lib/internal/encoding.js","lib/internal/error_serdes.js","lib/internal/errors.js","lib/internal/event_target.js","lib/internal/events/abort_listener.js","lib/internal/events/symbols.js","lib/internal/file.js","lib/internal/fixed_queue.js","lib/internal/freelist.js","lib/internal/freeze_intrinsics.js","lib/internal/fs/cp/cp-sync.js","lib/internal/fs/cp/cp.js","lib/internal/fs/dir.js","lib/internal/fs/promises.js","lib/internal/fs/read/context.js","lib/internal/fs/recursive_watch.js","lib/internal/fs/rimraf.js","lib/internal/fs/streams.js","lib/internal/fs/sync_write_stream.js","lib/internal/fs/utils.js","lib/internal/fs/watchers.js","lib/internal/heap_utils.js","lib/internal/histogram.js","lib/internal/http.js","lib/internal/http2/compat.js","lib/internal/http2/core.js","lib/internal/http2/util.js","lib/internal/inspector_async_hook.js","lib/internal/inspector_network_tracking.js","lib/internal/js_stream_socket.js","lib/internal/legacy/processbinding.js","lib/internal/linkedlist.js","lib/internal/main/check_syntax.js","lib/internal/main/embedding.js","lib/internal/main/eval_stdin.js","lib/internal/main/eval_string.js","lib/internal/main/inspect.js","lib/internal/main/mksnapshot.js","lib/internal/main/print_help.js","lib/internal/main/prof_process.js","lib/internal/main/repl.js","lib/internal/main/run_main_module.js","lib/internal/main/test_runner.js","lib/internal/main/watch_mode.js","lib/internal/main/worker_thread.js","lib/internal/mime.js","lib/internal/modules/cjs/loader.js","lib/internal/modules/esm/assert.js","lib/internal/modules/esm/create_dynamic_module.js","lib/internal/modules/esm/fetch_module.js","lib/internal/modules/esm/formats.js","lib/internal/modules/esm/get_format.js","lib/internal/modules/esm/hooks.js","lib/internal/modules/esm/initialize_import_meta.js","lib/internal/modules/esm/load.js","lib/internal/modules/esm/loader.js","lib/internal/modules/esm/module_job.js","lib/internal/modules/esm/module_map.js","lib/internal/modules/esm/package_config.js","lib/internal/modules/esm/resolve.js","lib/internal/modules/esm/shared_constants.js","lib/internal/modules/esm/translators.js","lib/internal/modules/esm/utils.js","lib/internal/modules/esm/worker.js","lib/internal/modules/helpers.js","lib/internal/modules/package_json_reader.js","lib/internal/modules/run_main.js","lib/internal/navigator.js","lib/internal/net.js","lib/internal/options.js","lib/internal/per_context/domexception.js","lib/internal/per_context/messageport.js","lib/internal/per_context/primordials.js","lib/internal/perf/event_loop_delay.js","lib/internal/perf/event_loop_utilization.js","lib/internal/perf/nodetiming.js","lib/internal/perf/observe.js","lib/internal/perf/performance.js","lib/internal/perf/performance_entry.js","lib/internal/perf/resource_timing.js","lib/internal/perf/timerify.js","lib/internal/perf/usertiming.js","lib/internal/perf/utils.js","lib/internal/policy/manifest.js","lib/internal/policy/sri.js","lib/internal/priority_queue.js","lib/internal/process/execution.js","lib/internal/process/per_thread.js","lib/internal/process/permission.js","lib/internal/process/policy.js","lib/internal/process/pre_execution.js","lib/internal/process/promises.js","lib/internal/process/report.js","lib/internal/process/signal.js","lib/internal/process/task_queues.js","lib/internal/process/warning.js","lib/internal/process/worker_thread_only.js","lib/internal/promise_hooks.js","lib/internal/querystring.js","lib/internal/readline/callbacks.js","lib/internal/readline/emitKeypressEvents.js","lib/internal/readline/interface.js","lib/internal/readline/promises.js","lib/internal/readline/utils.js","lib/internal/repl.js","lib/internal/repl/await.js","lib/internal/repl/history.js","lib/internal/repl/utils.js","lib/internal/socket_list.js","lib/internal/socketaddress.js","lib/internal/source_map/prepare_stack_trace.js","lib/internal/source_map/source_map.js","lib/internal/source_map/source_map_cache.js","lib/internal/stream_base_commons.js","lib/internal/streams/add-abort-signal.js","lib/internal/streams/compose.js","lib/internal/streams/destroy.js","lib/internal/streams/duplex.js","lib/internal/streams/duplexify.js","lib/internal/streams/duplexpair.js","lib/internal/streams/end-of-stream.js","lib/internal/streams/from.js","lib/internal/streams/lazy_transform.js","lib/internal/streams/legacy.js","lib/internal/streams/operators.js","lib/internal/streams/passthrough.js","lib/internal/streams/pipeline.js","lib/internal/streams/readable.js","lib/internal/streams/state.js","lib/internal/streams/transform.js","lib/internal/streams/utils.js","lib/internal/streams/writable.js","lib/internal/test/binding.js","lib/internal/test/transfer.js","lib/internal/test_runner/coverage.js","lib/internal/test_runner/harness.js","lib/internal/test_runner/mock/loader.js","lib/internal/test_runner/mock/mock.js","lib/internal/test_runner/mock/mock_timers.js","lib/internal/test_runner/reporter/dot.js","lib/internal/test_runner/reporter/junit.js","lib/internal/test_runner/reporter/lcov.js","lib/internal/test_runner/reporter/spec.js","lib/internal/test_runner/reporter/tap.js","lib/internal/test_runner/reporter/utils.js","lib/internal/test_runner/reporter/v8-serializer.js","lib/internal/test_runner/runner.js","lib/internal/test_runner/test.js","lib/internal/test_runner/tests_stream.js","lib/internal/test_runner/utils.js","lib/internal/timers.js","lib/internal/tls/secure-context.js","lib/internal/tls/secure-pair.js","lib/internal/trace_events_async_hooks.js","lib/internal/tty.js","lib/internal/url.js","lib/internal/util.js","lib/internal/util/colors.js","lib/internal/util/comparisons.js","lib/internal/util/debuglog.js","lib/internal/util/embedding.js","lib/internal/util/inspect.js","lib/internal/util/inspector.js","lib/internal/util/iterable_weak_map.js","lib/internal/util/parse_args/parse_args.js","lib/internal/util/parse_args/utils.js","lib/internal/util/types.js","lib/internal/v8/startup_snapshot.js","lib/internal/v8_prof_polyfill.js","lib/internal/v8_prof_processor.js","lib/internal/validators.js","lib/internal/vm.js","lib/internal/vm/module.js","lib/internal/wasm_web_api.js","lib/internal/watch_mode/files_watcher.js","lib/internal/watchdog.js","lib/internal/webidl.js","lib/internal/webstreams/adapters.js","lib/internal/webstreams/compression.js","lib/internal/webstreams/encoding.js","lib/internal/webstreams/queuingstrategies.js","lib/internal/webstreams/readablestream.js","lib/internal/webstreams/transfer.js","lib/internal/webstreams/transformstream.js","lib/internal/webstreams/util.js","lib/internal/webstreams/writablestream.js","lib/internal/worker.js","lib/internal/worker/io.js","lib/internal/worker/js_transferable.js","lib/module.js","lib/net.js","lib/os.js","lib/path.js","lib/path/posix.js","lib/path/win32.js","lib/perf_hooks.js","lib/process.js","lib/punycode.js","lib/querystring.js","lib/readline.js","lib/readline/promises.js","lib/repl.js","lib/sea.js","lib/stream.js","lib/stream/consumers.js","lib/stream/promises.js","lib/stream/web.js","lib/string_decoder.js","lib/sys.js","lib/test.js","lib/test/reporters.js","lib/timers.js","lib/timers/promises.js","lib/tls.js","lib/trace_events.js","lib/tty.js","lib/url.js","lib/util.js","lib/util/types.js","lib/v8.js","lib/vm.js","lib/wasi.js","lib/worker_threads.js","lib/zlib.js"],node_module_version:115,node_no_browser_globals:!1,node_prefix:"/",node_release_urlbase:"https://nodejs.org/download/release/",node_section_ordering_info:"",node_shared:!1,node_shared_ada:!1,node_shared_brotli:!1,node_shared_cares:!1,node_shared_http_parser:!1,node_shared_libuv:!1,node_shared_nghttp2:!1,node_shared_nghttp3:!1,node_shared_ngtcp2:!1,node_shared_openssl:!1,node_shared_simdjson:!1,node_shared_simdutf:!1,node_shared_uvwasi:!1,node_shared_zlib:!1,node_tag:"",node_target_type:"executable",node_use_bundled_v8:!0,node_use_node_code_cache:!0,node_use_node_snapshot:!0,node_use_openssl:!0,node_use_v8_platform:!0,node_with_ltcg:!1,node_without_node_options:!1,node_write_snapshot_as_array_literals:!1,openssl_is_fips:!1,openssl_quic:!0,ossfuzz:!1,shlib_suffix:"so.115",single_executable_application:!0,target_arch:"x64",ubsan:0,use_prefix_to_find_headers:!1,v8_enable_31bit_smis_on_64bit_arch:0,v8_enable_extensible_ro_snapshot:0,v8_enable_gdbjit:0,v8_enable_hugepage:0,v8_enable_i18n_support:1,v8_enable_inspector:1,v8_enable_javascript_promise_hooks:1,v8_enable_lite_mode:0,v8_enable_maglev:0,v8_enable_object_print:1,v8_enable_pointer_compression:0,v8_enable_sandbox:0,v8_enable_shared_ro_heap:1,v8_enable_short_builtin_calls:1,v8_enable_v8_checks:0,v8_enable_webassembly:1,v8_no_strict_aliasing:1,v8_optimized_debug:1,v8_promise_internal_field_count:1,v8_random_seed:0,v8_trace_maps:0,v8_use_siphash:1,want_separate_host_toolset:0}},allowedNodeEnvironmentFlags:{},features:{inspector:!0,debug:!1,uv:!0,ipv6:!0,tls_alpn:!0,tls_sni:!0,tls_ocsp:!0,tls:!0,cached_builtins:!0},sourceMapsEnabled:!1,stdout:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:1,_isStdio:!0},stdin:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:2,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,fd:0},stderr:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:2,_isStdio:!0},env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_7d0927af-a53f-46dd-8cfd-0e9ad29a5452",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v20.18.3 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_7d0927af-a53f-46dd-8cfd-0e9ad29a5452",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/md/md/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"doocs",GRADLE_HOME:"/usr/share/gradle-8.13",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/28.0.13004108",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43716716",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/md/md",SYSTEMD_EXEC_PID:"830",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250302.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.12/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.6/x64",JOURNAL_STREAM:"8:7073",GITHUB_WORKFLOW:"Build and Deploy",_:"/opt/hostedtoolcache/node/20.18.3/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.3/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"13738114923",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"b0ab984ebd1ab95b558bace366604e15551deff3",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",GITHUB_WORKFLOW_REF:"doocs/md/.github/workflows/build.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.3/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_fdf857ee-5fee-4fd4-98a2-63d82b9097a4",INVOCATION_ID:"f51a27b48d5b436ea3bda1f4cbbbb859",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",npm_package_name:"md",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"506",GITHUB_TRIGGERING_ACTOR:"yanglbme",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub-Actions-1000004055",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"doocs/md",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"218952803",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"1.6.0",npm_lifecycle_event:"build:only",GITHUB_REF_PROTECTED:"true",GITHUB_WORKSPACE:"/home/runner/work/md/md",ACCEPT_EULA:"Y",GITHUB_JOB:"build-and-deploy",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"b0ab984ebd1ab95b558bace366604e15551deff3",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"yanglbme",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.3/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_7d0927af-a53f-46dd-8cfd-0e9ad29a5452",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/md/md",GITHUB_ACTOR_ID:"21008209",RUNNER_WORKSPACE:"/home/runner/work/md",npm_execpath:"/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_7d0927af-a53f-46dd-8cfd-0e9ad29a5452",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.3/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_7d0927af-a53f-46dd-8cfd-0e9ad29a5452",INIT_CWD:"/home/runner/work/md/md",EDITOR:"vi",NODE_ENV:"production",LAUNCH_EDITOR:"code"},title:"node",argv:["/opt/hostedtoolcache/node/20.18.3/x64/bin/node","/home/runner/work/md/md/node_modules/.bin/vite","build"],execArgv:[],pid:2179,ppid:2178,execPath:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",debugPort:9229,argv0:"node",_preload_modules:[],report:{directory:"",filename:"",compact:!1,excludeNetwork:!1,signal:"SIGUSR2",reportOnFatalError:!1,reportOnSignal:!1,reportOnUncaughtException:!1}},pc;(()=>{var n={470:i=>{function s(l){if(typeof l!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(l))}function a(l,c){for(var u,d="",f=0,h=-1,m=0,g=0;g<=l.length;++g){if(g2){var _=d.lastIndexOf("/");if(_!==d.length-1){_===-1?(d="",f=0):f=(d=d.slice(0,_)).length-1-d.lastIndexOf("/"),h=g,m=0;continue}}else if(d.length===2||d.length===1){d="",f=0,h=g,m=0;continue}}c&&(d.length>0?d+="/..":d="..",f=2)}else d.length>0?d+="/"+l.slice(h+1,g):d=l.slice(h+1,g),f=g-h-1;h=g,m=0}else u===46&&m!==-1?++m:m=-1}return d}var o={resolve:function(){for(var l,c="",u=!1,d=arguments.length-1;d>=-1&&!u;d--){var f;d>=0?f=arguments[d]:(l===void 0&&(l=wr.cwd()),f=l),s(f),f.length!==0&&(c=f+"/"+c,u=f.charCodeAt(0)===47)}return c=a(c,!u),u?c.length>0?"/"+c:"/":c.length>0?c:"."},normalize:function(l){if(s(l),l.length===0)return".";var c=l.charCodeAt(0)===47,u=l.charCodeAt(l.length-1)===47;return(l=a(l,!c)).length!==0||c||(l="."),l.length>0&&u&&(l+="/"),c?"/"+l:l},isAbsolute:function(l){return s(l),l.length>0&&l.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var l,c=0;c0&&(l===void 0?l=u:l+="/"+u)}return l===void 0?".":o.normalize(l)},relative:function(l,c){if(s(l),s(c),l===c||(l=o.resolve(l))===(c=o.resolve(c)))return"";for(var u=1;ug){if(c.charCodeAt(h+y)===47)return c.slice(h+y+1);if(y===0)return c.slice(h+y)}else f>g&&(l.charCodeAt(u+y)===47?_=y:y===0&&(_=0));break}var E=l.charCodeAt(u+y);if(E!==c.charCodeAt(h+y))break;E===47&&(_=y)}var v="";for(y=u+_+1;y<=d;++y)y!==d&&l.charCodeAt(y)!==47||(v.length===0?v+="..":v+="/..");return v.length>0?v+c.slice(h+_):(h+=_,c.charCodeAt(h)===47&&++h,c.slice(h))},_makeLong:function(l){return l},dirname:function(l){if(s(l),l.length===0)return".";for(var c=l.charCodeAt(0),u=c===47,d=-1,f=!0,h=l.length-1;h>=1;--h)if((c=l.charCodeAt(h))===47){if(!f){d=h;break}}else f=!1;return d===-1?u?"/":".":u&&d===1?"//":l.slice(0,d)},basename:function(l,c){if(c!==void 0&&typeof c!="string")throw new TypeError('"ext" argument must be a string');s(l);var u,d=0,f=-1,h=!0;if(c!==void 0&&c.length>0&&c.length<=l.length){if(c.length===l.length&&c===l)return"";var m=c.length-1,g=-1;for(u=l.length-1;u>=0;--u){var _=l.charCodeAt(u);if(_===47){if(!h){d=u+1;break}}else g===-1&&(h=!1,g=u+1),m>=0&&(_===c.charCodeAt(m)?--m==-1&&(f=u):(m=-1,f=g))}return d===f?f=g:f===-1&&(f=l.length),l.slice(d,f)}for(u=l.length-1;u>=0;--u)if(l.charCodeAt(u)===47){if(!h){d=u+1;break}}else f===-1&&(h=!1,f=u+1);return f===-1?"":l.slice(d,f)},extname:function(l){s(l);for(var c=-1,u=0,d=-1,f=!0,h=0,m=l.length-1;m>=0;--m){var g=l.charCodeAt(m);if(g!==47)d===-1&&(f=!1,d=m+1),g===46?c===-1?c=m:h!==1&&(h=1):c!==-1&&(h=-1);else if(!f){u=m+1;break}}return c===-1||d===-1||h===0||h===1&&c===d-1&&c===u+1?"":l.slice(c,d)},format:function(l){if(l===null||typeof l!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof l);return function(c,u){var d=u.dir||u.root,f=u.base||(u.name||"")+(u.ext||"");return d?d===u.root?d+f:d+"/"+f:f}(0,l)},parse:function(l){s(l);var c={root:"",dir:"",base:"",ext:"",name:""};if(l.length===0)return c;var u,d=l.charCodeAt(0),f=d===47;f?(c.root="/",u=1):u=0;for(var h=-1,m=0,g=-1,_=!0,y=l.length-1,E=0;y>=u;--y)if((d=l.charCodeAt(y))!==47)g===-1&&(_=!1,g=y+1),d===46?h===-1?h=y:E!==1&&(E=1):h!==-1&&(E=-1);else if(!_){m=y+1;break}return h===-1||g===-1||E===0||E===1&&h===g-1&&h===m+1?g!==-1&&(c.base=c.name=m===0&&f?l.slice(1,g):l.slice(m,g)):(m===0&&f?(c.name=l.slice(1,h),c.base=l.slice(1,g)):(c.name=l.slice(m,h),c.base=l.slice(m,g)),c.ext=l.slice(h,g)),m>0?c.dir=l.slice(0,m-1):f&&(c.dir="/"),c},sep:"/",delimiter:":",win32:null,posix:null};o.posix=o,i.exports=o}},e={};function t(i){var s=e[i];if(s!==void 0)return s.exports;var a=e[i]={exports:{}};return n[i](a,a.exports,t),a.exports}t.d=(i,s)=>{for(var a in s)t.o(s,a)&&!t.o(i,a)&&Object.defineProperty(i,a,{enumerable:!0,get:s[a]})},t.o=(i,s)=>Object.prototype.hasOwnProperty.call(i,s),t.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var r={};(()=>{let i;t.r(r),t.d(r,{URI:()=>f,Utils:()=>be}),typeof wr=="object"?i=wr.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);const s=/^\w[\w\d+.-]*$/,a=/^\//,o=/^\/\//;function l(A,T){if(!A.scheme&&T)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${A.authority}", path: "${A.path}", query: "${A.query}", fragment: "${A.fragment}"}`);if(A.scheme&&!s.test(A.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(A.path){if(A.authority){if(!a.test(A.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(o.test(A.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}const c="",u="/",d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class f{constructor(T,R,N,L,O,w=!1){Je(this,"scheme");Je(this,"authority");Je(this,"path");Je(this,"query");Je(this,"fragment");typeof T=="object"?(this.scheme=T.scheme||c,this.authority=T.authority||c,this.path=T.path||c,this.query=T.query||c,this.fragment=T.fragment||c):(this.scheme=function(ye,z){return ye||z?ye:"file"}(T,w),this.authority=R||c,this.path=function(ye,z){switch(ye){case"https":case"http":case"file":z?z[0]!==u&&(z=u+z):z=u}return z}(this.scheme,N||c),this.query=L||c,this.fragment=O||c,l(this,w))}static isUri(T){return T instanceof f||!!T&&typeof T.authority=="string"&&typeof T.fragment=="string"&&typeof T.path=="string"&&typeof T.query=="string"&&typeof T.scheme=="string"&&typeof T.fsPath=="string"&&typeof T.with=="function"&&typeof T.toString=="function"}get fsPath(){return E(this)}with(T){if(!T)return this;let{scheme:R,authority:N,path:L,query:O,fragment:w}=T;return R===void 0?R=this.scheme:R===null&&(R=c),N===void 0?N=this.authority:N===null&&(N=c),L===void 0?L=this.path:L===null&&(L=c),O===void 0?O=this.query:O===null&&(O=c),w===void 0?w=this.fragment:w===null&&(w=c),R===this.scheme&&N===this.authority&&L===this.path&&O===this.query&&w===this.fragment?this:new m(R,N,L,O,w)}static parse(T,R=!1){const N=d.exec(T);return N?new m(N[2]||c,ne(N[4]||c),ne(N[5]||c),ne(N[7]||c),ne(N[9]||c),R):new m(c,c,c,c,c)}static file(T){let R=c;if(i&&(T=T.replace(/\\/g,u)),T[0]===u&&T[1]===u){const N=T.indexOf(u,2);N===-1?(R=T.substring(2),T=u):(R=T.substring(2,N),T=T.substring(N)||u)}return new m("file",R,T,c,c)}static from(T){const R=new m(T.scheme,T.authority,T.path,T.query,T.fragment);return l(R,!0),R}toString(T=!1){return v(this,T)}toJSON(){return this}static revive(T){if(T){if(T instanceof f)return T;{const R=new m(T);return R._formatted=T.external,R._fsPath=T._sep===h?T.fsPath:null,R}}return T}}const h=i?1:void 0;class m extends f{constructor(){super(...arguments);Je(this,"_formatted",null);Je(this,"_fsPath",null)}get fsPath(){return this._fsPath||(this._fsPath=E(this)),this._fsPath}toString(R=!1){return R?v(this,!0):(this._formatted||(this._formatted=v(this,!1)),this._formatted)}toJSON(){const R={$mid:1};return this._fsPath&&(R.fsPath=this._fsPath,R._sep=h),this._formatted&&(R.external=this._formatted),this.path&&(R.path=this.path),this.scheme&&(R.scheme=this.scheme),this.authority&&(R.authority=this.authority),this.query&&(R.query=this.query),this.fragment&&(R.fragment=this.fragment),R}}const g={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function _(A,T,R){let N,L=-1;for(let O=0;O=97&&w<=122||w>=65&&w<=90||w>=48&&w<=57||w===45||w===46||w===95||w===126||T&&w===47||R&&w===91||R&&w===93||R&&w===58)L!==-1&&(N+=encodeURIComponent(A.substring(L,O)),L=-1),N!==void 0&&(N+=A.charAt(O));else{N===void 0&&(N=A.substr(0,O));const ye=g[w];ye!==void 0?(L!==-1&&(N+=encodeURIComponent(A.substring(L,O)),L=-1),N+=ye):L===-1&&(L=O)}}return L!==-1&&(N+=encodeURIComponent(A.substring(L))),N!==void 0?N:A}function y(A){let T;for(let R=0;R1&&A.scheme==="file"?`//${A.authority}${A.path}`:A.path.charCodeAt(0)===47&&(A.path.charCodeAt(1)>=65&&A.path.charCodeAt(1)<=90||A.path.charCodeAt(1)>=97&&A.path.charCodeAt(1)<=122)&&A.path.charCodeAt(2)===58?A.path[1].toLowerCase()+A.path.substr(2):A.path,i&&(R=R.replace(/\//g,"\\")),R}function v(A,T){const R=T?y:_;let N="",{scheme:L,authority:O,path:w,query:ye,fragment:z}=A;if(L&&(N+=L,N+=":"),(O||L==="file")&&(N+=u,N+=u),O){let B=O.indexOf("@");if(B!==-1){const at=O.substr(0,B);O=O.substr(B+1),B=at.lastIndexOf(":"),B===-1?N+=R(at,!1,!1):(N+=R(at.substr(0,B),!1,!1),N+=":",N+=R(at.substr(B+1),!1,!0)),N+="@"}O=O.toLowerCase(),B=O.lastIndexOf(":"),B===-1?N+=R(O,!1,!0):(N+=R(O.substr(0,B),!1,!0),N+=O.substr(B))}if(w){if(w.length>=3&&w.charCodeAt(0)===47&&w.charCodeAt(2)===58){const B=w.charCodeAt(1);B>=65&&B<=90&&(w=`/${String.fromCharCode(B+32)}:${w.substr(3)}`)}else if(w.length>=2&&w.charCodeAt(1)===58){const B=w.charCodeAt(0);B>=65&&B<=90&&(w=`${String.fromCharCode(B+32)}:${w.substr(2)}`)}N+=R(w,!0,!1)}return ye&&(N+="?",N+=R(ye,!1,!1)),z&&(N+="#",N+=T?z:_(z,!1,!1)),N}function I(A){try{return decodeURIComponent(A)}catch{return A.length>3?A.substr(0,3)+I(A.substr(3)):A}}const j=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function ne(A){return A.match(j)?A.replace(j,T=>I(T)):A}var Ce=t(470);const ge=Ce.posix||Ce,De="/";var be;(function(A){A.joinPath=function(T,...R){return T.with({path:ge.join(T.path,...R)})},A.resolvePath=function(T,...R){let N=T.path,L=!1;N[0]!==De&&(N=De+N,L=!0);let O=ge.resolve(N,...R);return L&&O[0]===De&&!T.authority&&(O=O.substring(1)),T.with({path:O})},A.dirname=function(T){if(T.path.length===0||T.path===De)return T;let R=ge.dirname(T.path);return R.length===1&&R.charCodeAt(0)===46&&(R=""),T.with({path:R})},A.basename=function(T){return ge.basename(T.path)},A.extname=function(T){return ge.extname(T.path)}})(be||(be={}))})(),pc=r})();const{URI:Wt,Utils:sn}=pc;var rt;(function(n){n.basename=sn.basename,n.dirname=sn.dirname,n.extname=sn.extname,n.joinPath=sn.joinPath,n.resolvePath=sn.resolvePath;function e(r,i){return(r==null?void 0:r.toString())===(i==null?void 0:i.toString())}n.equals=e;function t(r,i){const s=typeof r=="string"?r:r.path,a=typeof i=="string"?i:i.path,o=s.split("/").filter(f=>f.length>0),l=a.split("/").filter(f=>f.length>0);let c=0;for(;ci??(i=mi.create(e.toString(),r.getServices(e).LanguageMetaData.languageId,0,t??""))}}class om{constructor(e){this.documentMap=new Map,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory}get all(){return Q(this.documentMap.values())}addDocument(e){const t=e.uri.toString();if(this.documentMap.has(t))throw new Error(`A document with the URI '${t}' is already present.`);this.documentMap.set(t,e)}getDocument(e){const t=e.toString();return this.documentMap.get(t)}async getOrCreateDocument(e,t){let r=this.getDocument(e);return r||(r=await this.langiumDocumentFactory.fromUri(e,t),this.addDocument(r),r)}createDocument(e,t,r){if(r)return this.langiumDocumentFactory.fromString(t,e,r).then(i=>(this.addDocument(i),i));{const i=this.langiumDocumentFactory.fromString(t,e);return this.addDocument(i),i}}hasDocument(e){return this.documentMap.has(e.toString())}invalidateDocument(e){const t=e.toString(),r=this.documentMap.get(t);return r&&(r.state=U.Changed,r.precomputedScopes=void 0,r.references=[],r.diagnostics=void 0),r}deleteDocument(e){const t=e.toString(),r=this.documentMap.get(t);return r&&(r.state=U.Changed,this.documentMap.delete(t)),r}}class lm{constructor(e){this.reflection=e.shared.AstReflection,this.langiumDocuments=()=>e.shared.workspace.LangiumDocuments,this.scopeProvider=e.references.ScopeProvider,this.astNodeLocator=e.workspace.AstNodeLocator}async link(e,t=X.None){for(const r of Et(e.parseResult.value))await Le(t),Zo(r).forEach(i=>this.doLink(i,e))}doLink(e,t){const r=e.reference;if(r._ref===void 0)try{const i=this.getCandidate(e);if(kn(i))r._ref=i;else if(r._nodeDescription=i,this.langiumDocuments().hasDocument(i.documentUri)){const s=this.loadAstNode(i);r._ref=s??this.createLinkingError(e,i)}}catch(i){r._ref=Object.assign(Object.assign({},e),{message:`An error occurred while resolving reference to '${r.$refText}': ${i}`})}t.references.push(r)}unlink(e){for(const t of e.references)delete t._ref,delete t._nodeDescription;e.references=[]}getCandidate(e){const r=this.scopeProvider.getScope(e).getElement(e.reference.$refText);return r??this.createLinkingError(e)}buildReference(e,t,r,i){const s=this,a={$refNode:r,$refText:i,get ref(){var o;if(ae(this._ref))return this._ref;if(Nu(this._nodeDescription)){const l=s.loadAstNode(this._nodeDescription);this._ref=l??s.createLinkingError({reference:a,container:e,property:t},this._nodeDescription)}else if(this._ref===void 0){const l=s.getLinkedNode({reference:a,container:e,property:t});if(l.error&&Ue(e).state=e.end)return s.ref}}if(r){const i=this.nameProvider.getNameNode(r);if(i&&(i===e||Su(e,i)))return r}}}findDeclarationNode(e){const t=this.findDeclaration(e);if(t!=null&&t.$cstNode){const r=this.nameProvider.getNameNode(t);return r??t.$cstNode}}findReferences(e,t){const r=[];if(t.includeDeclaration){const s=this.getReferenceToSelf(e);s&&r.push(s)}let i=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e));return t.documentUri&&(i=i.filter(s=>rt.equals(s.sourceUri,t.documentUri))),r.push(...i),Q(r)}getReferenceToSelf(e){const t=this.nameProvider.getNameNode(e);if(t){const r=Ue(e),i=this.nodeLocator.getAstNodePath(e);return{sourceUri:r.uri,sourcePath:i,targetUri:r.uri,targetPath:i,segment:Ln(t),local:!0}}}}class Wi{constructor(e){if(this.map=new Map,e)for(const[t,r]of e)this.add(t,r)}get size(){return Pr.sum(Q(this.map.values()).map(e=>e.length))}clear(){this.map.clear()}delete(e,t){if(t===void 0)return this.map.delete(e);{const r=this.map.get(e);if(r){const i=r.indexOf(t);if(i>=0)return r.length===1?this.map.delete(e):r.splice(i,1),!0}return!1}}get(e){var t;return(t=this.map.get(e))!==null&&t!==void 0?t:[]}has(e,t){if(t===void 0)return this.map.has(e);{const r=this.map.get(e);return r?r.indexOf(t)>=0:!1}}add(e,t){return this.map.has(e)?this.map.get(e).push(t):this.map.set(e,[t]),this}addAll(e,t){return this.map.has(e)?this.map.get(e).push(...t):this.map.set(e,Array.from(t)),this}forEach(e){this.map.forEach((t,r)=>t.forEach(i=>e(i,r,this)))}[Symbol.iterator](){return this.entries().iterator()}entries(){return Q(this.map.entries()).flatMap(([e,t])=>t.map(r=>[e,r]))}keys(){return Q(this.map.keys())}values(){return Q(this.map.values()).flat()}entriesGroupedByKey(){return Q(this.map.entries())}}class Ha{get size(){return this.map.size}constructor(e){if(this.map=new Map,this.inverse=new Map,e)for(const[t,r]of e)this.set(t,r)}clear(){this.map.clear(),this.inverse.clear()}set(e,t){return this.map.set(e,t),this.inverse.set(t,e),this}get(e){return this.map.get(e)}getKey(e){return this.inverse.get(e)}delete(e){const t=this.map.get(e);return t!==void 0?(this.map.delete(e),this.inverse.delete(t),!0):!1}}class fm{constructor(e){this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider}async computeExports(e,t=X.None){return this.computeExportsForNode(e.parseResult.value,e,void 0,t)}async computeExportsForNode(e,t,r=ki,i=X.None){const s=[];this.exportNode(e,s,t);for(const a of r(e))await Le(i),this.exportNode(a,s,t);return s}exportNode(e,t,r){const i=this.nameProvider.getName(e);i&&t.push(this.descriptions.createDescription(e,i,r))}async computeLocalScopes(e,t=X.None){const r=e.parseResult.value,i=new Wi;for(const s of pn(r))await Le(t),this.processNode(s,e,i);return i}processNode(e,t,r){const i=e.$container;if(i){const s=this.nameProvider.getName(e);s&&r.add(i,this.descriptions.createDescription(e,s,t))}}}class Va{constructor(e,t,r){var i;this.elements=e,this.outerScope=t,this.caseInsensitive=(i=r==null?void 0:r.caseInsensitive)!==null&&i!==void 0?i:!1}getAllElements(){return this.outerScope?this.elements.concat(this.outerScope.getAllElements()):this.elements}getElement(e){const t=this.caseInsensitive?this.elements.find(r=>r.name.toLowerCase()===e.toLowerCase()):this.elements.find(r=>r.name===e);if(t)return t;if(this.outerScope)return this.outerScope.getElement(e)}}class hm{constructor(e,t,r){var i;this.elements=new Map,this.caseInsensitive=(i=r==null?void 0:r.caseInsensitive)!==null&&i!==void 0?i:!1;for(const s of e){const a=this.caseInsensitive?s.name.toLowerCase():s.name;this.elements.set(a,s)}this.outerScope=t}getElement(e){const t=this.caseInsensitive?e.toLowerCase():e,r=this.elements.get(t);if(r)return r;if(this.outerScope)return this.outerScope.getElement(e)}getAllElements(){let e=Q(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}}class mc{constructor(){this.toDispose=[],this.isDisposed=!1}onDispose(e){this.toDispose.push(e)}dispose(){this.throwIfDisposed(),this.clear(),this.isDisposed=!0,this.toDispose.forEach(e=>e.dispose())}throwIfDisposed(){if(this.isDisposed)throw new Error("This cache has already been disposed")}}class pm extends mc{constructor(){super(...arguments),this.cache=new Map}has(e){return this.throwIfDisposed(),this.cache.has(e)}set(e,t){this.throwIfDisposed(),this.cache.set(e,t)}get(e,t){if(this.throwIfDisposed(),this.cache.has(e))return this.cache.get(e);if(t){const r=t();return this.cache.set(e,r),r}else return}delete(e){return this.throwIfDisposed(),this.cache.delete(e)}clear(){this.throwIfDisposed(),this.cache.clear()}}class mm extends mc{constructor(e){super(),this.cache=new Map,this.converter=e??(t=>t)}has(e,t){return this.throwIfDisposed(),this.cacheForContext(e).has(t)}set(e,t,r){this.throwIfDisposed(),this.cacheForContext(e).set(t,r)}get(e,t,r){this.throwIfDisposed();const i=this.cacheForContext(e);if(i.has(t))return i.get(t);if(r){const s=r();return i.set(t,s),s}else return}delete(e,t){return this.throwIfDisposed(),this.cacheForContext(e).delete(t)}clear(e){if(this.throwIfDisposed(),e){const t=this.converter(e);this.cache.delete(t)}else this.cache.clear()}cacheForContext(e){const t=this.converter(e);let r=this.cache.get(t);return r||(r=new Map,this.cache.set(t,r)),r}}class gm extends pm{constructor(e){super(),this.onDispose(e.workspace.DocumentBuilder.onUpdate(()=>{this.clear()}))}}class ym{constructor(e){this.reflection=e.shared.AstReflection,this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider,this.indexManager=e.shared.workspace.IndexManager,this.globalScopeCache=new gm(e.shared)}getScope(e){const t=[],r=this.reflection.getReferenceType(e),i=Ue(e.container).precomputedScopes;if(i){let a=e.container;do{const o=i.get(a);o.length>0&&t.push(Q(o).filter(l=>this.reflection.isSubtype(l.type,r))),a=a.$container}while(a)}let s=this.getGlobalScope(r,e);for(let a=t.length-1;a>=0;a--)s=this.createScope(t[a],s);return s}createScope(e,t,r){return new Va(Q(e),t,r)}createScopeForNodes(e,t,r){const i=Q(e).map(s=>{const a=this.nameProvider.getName(s);if(a)return this.descriptions.createDescription(s,a)}).nonNullable();return new Va(i,t,r)}getGlobalScope(e,t){return this.globalScopeCache.get(e,()=>new hm(this.indexManager.allElements(e)))}}function Tm(n){return typeof n.$comment=="string"}function Wa(n){return typeof n=="object"&&!!n&&("$ref"in n||"$error"in n)}class vm{constructor(e){this.ignoreProperties=new Set(["$container","$containerProperty","$containerIndex","$document","$cstNode"]),this.langiumDocuments=e.shared.workspace.LangiumDocuments,this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider,this.commentProvider=e.documentation.CommentProvider}serialize(e,t={}){const r=t==null?void 0:t.replacer,i=(a,o)=>this.replacer(a,o,t),s=r?(a,o)=>r(a,o,i):i;try{return this.currentDocument=Ue(e),JSON.stringify(e,s,t==null?void 0:t.space)}finally{this.currentDocument=void 0}}deserialize(e,t={}){const r=JSON.parse(e);return this.linkNode(r,r,t),r}replacer(e,t,{refText:r,sourceText:i,textRegions:s,comments:a,uriConverter:o}){var l,c,u,d;if(!this.ignoreProperties.has(e))if(Ge(t)){const f=t.ref,h=r?t.$refText:void 0;if(f){const m=Ue(f);let g="";this.currentDocument&&this.currentDocument!==m&&(o?g=o(m.uri,t):g=m.uri.toString());const _=this.astNodeLocator.getAstNodePath(f);return{$ref:`${g}#${_}`,$refText:h}}else return{$error:(c=(l=t.error)===null||l===void 0?void 0:l.message)!==null&&c!==void 0?c:"Could not resolve reference",$refText:h}}else if(ae(t)){let f;if(s&&(f=this.addAstNodeRegionWithAssignmentsTo(Object.assign({},t)),(!e||t.$document)&&(f!=null&&f.$textRegion)&&(f.$textRegion.documentURI=(u=this.currentDocument)===null||u===void 0?void 0:u.uri.toString())),i&&!e&&(f??(f=Object.assign({},t)),f.$sourceText=(d=t.$cstNode)===null||d===void 0?void 0:d.text),a){f??(f=Object.assign({},t));const h=this.commentProvider.getComment(t);h&&(f.$comment=h.replace(/\r/g,""))}return f??t}else return t}addAstNodeRegionWithAssignmentsTo(e){const t=r=>({offset:r.offset,end:r.end,length:r.length,range:r.range});if(e.$cstNode){const r=e.$textRegion=t(e.$cstNode),i=r.assignments={};return Object.keys(e).filter(s=>!s.startsWith("$")).forEach(s=>{const a=bd(e.$cstNode,s).map(t);a.length!==0&&(i[s]=a)}),e}}linkNode(e,t,r,i,s,a){for(const[l,c]of Object.entries(e))if(Array.isArray(c))for(let u=0;u{try{await e.call(t,r,i,s)}catch(a){if(Hi(a))throw a;console.error("An error occurred during validation:",a);const o=a instanceof Error?a.message:String(a);a instanceof Error&&a.stack&&console.error(a.stack),i("error","An error occurred during validation: "+o,{node:r})}}}addEntry(e,t){if(e==="AstNode"){this.entries.add("AstNode",t);return}for(const r of this.reflection.getAllSubTypes(e))this.entries.add(r,t)}getChecks(e,t){let r=Q(this.entries.get(e)).concat(this.entries.get("AstNode"));return t&&(r=r.filter(i=>t.includes(i.category))),r.map(i=>i.check)}}class Rm{constructor(e){this.validationRegistry=e.validation.ValidationRegistry,this.metadata=e.LanguageMetaData}async validateDocument(e,t={},r=X.None){const i=e.parseResult,s=[];if(await Le(r),(!t.categories||t.categories.includes("built-in"))&&(this.processLexingErrors(i,s,t),t.stopAfterLexingErrors&&s.some(a=>{var o;return((o=a.data)===null||o===void 0?void 0:o.code)===Qe.LexingError})||(this.processParsingErrors(i,s,t),t.stopAfterParsingErrors&&s.some(a=>{var o;return((o=a.data)===null||o===void 0?void 0:o.code)===Qe.ParsingError}))||(this.processLinkingErrors(e,s,t),t.stopAfterLinkingErrors&&s.some(a=>{var o;return((o=a.data)===null||o===void 0?void 0:o.code)===Qe.LinkingError}))))return s;try{s.push(...await this.validateAst(i.value,t,r))}catch(a){if(Hi(a))throw a;console.error("An error occurred during validation:",a)}return await Le(r),s}processLexingErrors(e,t,r){for(const i of e.lexerErrors){const s={severity:Or("error"),range:{start:{line:i.line-1,character:i.column-1},end:{line:i.line-1,character:i.column+i.length-1}},message:i.message,data:Ka(Qe.LexingError),source:this.getSource()};t.push(s)}}processParsingErrors(e,t,r){for(const i of e.parserErrors){let s;if(isNaN(i.token.startOffset)){if("previousToken"in i){const a=i.previousToken;if(isNaN(a.startOffset)){const o={line:0,character:0};s={start:o,end:o}}else{const o={line:a.endLine-1,character:a.endColumn};s={start:o,end:o}}}}else s=Dr(i.token);if(s){const a={severity:Or("error"),range:s,message:i.message,data:Ka(Qe.ParsingError),source:this.getSource()};t.push(a)}}}processLinkingErrors(e,t,r){for(const i of e.references){const s=i.error;if(s){const a={node:s.container,property:s.property,index:s.index,data:{code:Qe.LinkingError,containerType:s.container.$type,property:s.property,refText:s.reference.$refText}};t.push(this.toDiagnostic("error",s.message,a))}}}async validateAst(e,t,r=X.None){const i=[],s=(a,o,l)=>{i.push(this.toDiagnostic(a,o,l))};return await Promise.all(Et(e).map(async a=>{await Le(r);const o=this.validationRegistry.getChecks(a.$type,t.categories);for(const l of o)await l(a,s,r)})),i}toDiagnostic(e,t,r){return{message:t,range:Am(r),severity:Or(e),code:r.code,codeDescription:r.codeDescription,tags:r.tags,relatedInformation:r.relatedInformation,data:r.data,source:this.getSource()}}getSource(){return this.metadata.languageId}}function Am(n){if(n.range)return n.range;let e;return typeof n.property=="string"?e=il(n.node.$cstNode,n.property,n.index):typeof n.keyword=="string"&&(e=Nd(n.node.$cstNode,n.keyword,n.index)),e??(e=n.node.$cstNode),e?e.range:{start:{line:0,character:0},end:{line:0,character:0}}}function Or(n){switch(n){case"error":return 1;case"warning":return 2;case"info":return 3;case"hint":return 4;default:throw new Error("Invalid diagnostic severity: "+n)}}var Qe;(function(n){n.LexingError="lexing-error",n.ParsingError="parsing-error",n.LinkingError="linking-error"})(Qe||(Qe={}));class bm{constructor(e){this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider}createDescription(e,t,r=Ue(e)){t??(t=this.nameProvider.getName(e));const i=this.astNodeLocator.getAstNodePath(e);if(!t)throw new Error(`Node at path ${i} has no name.`);let s;const a=()=>{var o;return s??(s=Ln((o=this.nameProvider.getNameNode(e))!==null&&o!==void 0?o:e.$cstNode))};return{node:e,name:t,get nameSegment(){return a()},selectionSegment:Ln(e.$cstNode),type:e.$type,documentUri:r.uri,path:i}}}class Nm{constructor(e){this.nodeLocator=e.workspace.AstNodeLocator}async createDescriptions(e,t=X.None){const r=[],i=e.parseResult.value;for(const s of Et(i))await Le(t),Zo(s).filter(a=>!kn(a)).forEach(a=>{const o=this.createDescription(a);o&&r.push(o)});return r}createDescription(e){const t=e.reference.$nodeDescription,r=e.reference.$refNode;if(!t||!r)return;const i=Ue(e.container).uri;return{sourceUri:i,sourcePath:this.nodeLocator.getAstNodePath(e.container),targetUri:t.documentUri,targetPath:t.path,segment:Ln(r),local:rt.equals(t.documentUri,i)}}}class km{constructor(){this.segmentSeparator="/",this.indexSeparator="@"}getAstNodePath(e){if(e.$container){const t=this.getAstNodePath(e.$container),r=this.getPathSegment(e);return t+this.segmentSeparator+r}return""}getPathSegment({$containerProperty:e,$containerIndex:t}){if(!e)throw new Error("Missing '$containerProperty' in AST node.");return t!==void 0?e+this.indexSeparator+t:e}getAstNode(e,t){return t.split(this.segmentSeparator).reduce((i,s)=>{if(!i||s.length===0)return i;const a=s.indexOf(this.indexSeparator);if(a>0){const o=s.substring(0,a),l=parseInt(s.substring(a+1)),c=i[o];return c==null?void 0:c[l]}return i[s]},e)}}class Im{constructor(e){this._ready=new Vi,this.settings={},this.workspaceConfig=!1,this.serviceRegistry=e.ServiceRegistry}get ready(){return this._ready.promise}initialize(e){var t,r;this.workspaceConfig=(r=(t=e.capabilities.workspace)===null||t===void 0?void 0:t.configuration)!==null&&r!==void 0?r:!1}async initialized(e){if(this.workspaceConfig){if(e.register){const t=this.serviceRegistry.all;e.register({section:t.map(r=>this.toSectionName(r.LanguageMetaData.languageId))})}if(e.fetchConfiguration){const t=this.serviceRegistry.all.map(i=>({section:this.toSectionName(i.LanguageMetaData.languageId)})),r=await e.fetchConfiguration(t);t.forEach((i,s)=>{this.updateSectionConfiguration(i.section,r[s])})}}this._ready.resolve()}updateConfiguration(e){e.settings&&Object.keys(e.settings).forEach(t=>{this.updateSectionConfiguration(t,e.settings[t])})}updateSectionConfiguration(e,t){this.settings[e]=t}async getConfiguration(e,t){await this.ready;const r=this.toSectionName(e);if(this.settings[r])return this.settings[r][t]}toSectionName(e){return`${e}`}}var er;(function(n){function e(t){return{dispose:async()=>await t()}}n.create=e})(er||(er={}));class Sm{constructor(e){this.updateBuildOptions={validation:{categories:["built-in","fast"]}},this.updateListeners=[],this.buildPhaseListeners=new Wi,this.buildState=new Map,this.documentBuildWaiters=new Map,this.currentState=U.Changed,this.langiumDocuments=e.workspace.LangiumDocuments,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.indexManager=e.workspace.IndexManager,this.serviceRegistry=e.ServiceRegistry}async build(e,t={},r=X.None){var i,s;for(const a of e){const o=a.uri.toString();if(a.state===U.Validated){if(typeof t.validation=="boolean"&&t.validation)a.state=U.IndexedReferences,a.diagnostics=void 0,this.buildState.delete(o);else if(typeof t.validation=="object"){const l=this.buildState.get(o),c=(i=l==null?void 0:l.result)===null||i===void 0?void 0:i.validationChecks;if(c){const d=((s=t.validation.categories)!==null&&s!==void 0?s:Zn.all).filter(f=>!c.includes(f));d.length>0&&(this.buildState.set(o,{completed:!1,options:{validation:Object.assign(Object.assign({},t.validation),{categories:d})},result:l.result}),a.state=U.IndexedReferences)}}}else this.buildState.delete(o)}this.currentState=U.Changed,await this.emitUpdate(e.map(a=>a.uri),[]),await this.buildDocuments(e,t,r)}async update(e,t,r=X.None){this.currentState=U.Changed;for(const a of t)this.langiumDocuments.deleteDocument(a),this.buildState.delete(a.toString()),this.indexManager.remove(a);for(const a of e){if(!this.langiumDocuments.invalidateDocument(a)){const l=this.langiumDocumentFactory.fromModel({$type:"INVALID"},a);l.state=U.Changed,this.langiumDocuments.addDocument(l)}this.buildState.delete(a.toString())}const i=Q(e).concat(t).map(a=>a.toString()).toSet();this.langiumDocuments.all.filter(a=>!i.has(a.uri.toString())&&this.shouldRelink(a,i)).forEach(a=>{this.serviceRegistry.getServices(a.uri).references.Linker.unlink(a),a.state=Math.min(a.state,U.ComputedScopes),a.diagnostics=void 0}),await this.emitUpdate(e,t),await Le(r);const s=this.langiumDocuments.all.filter(a=>{var o;return a.stater(e,t)))}shouldRelink(e,t){return e.references.some(r=>r.error!==void 0)?!0:this.indexManager.isAffected(e,t)}onUpdate(e){return this.updateListeners.push(e),er.create(()=>{const t=this.updateListeners.indexOf(e);t>=0&&this.updateListeners.splice(t,1)})}async buildDocuments(e,t,r){this.prepareBuild(e,t),await this.runCancelable(e,U.Parsed,r,s=>this.langiumDocumentFactory.update(s,r)),await this.runCancelable(e,U.IndexedContent,r,s=>this.indexManager.updateContent(s,r)),await this.runCancelable(e,U.ComputedScopes,r,async s=>{const a=this.serviceRegistry.getServices(s.uri).references.ScopeComputation;s.precomputedScopes=await a.computeLocalScopes(s,r)}),await this.runCancelable(e,U.Linked,r,s=>this.serviceRegistry.getServices(s.uri).references.Linker.link(s,r)),await this.runCancelable(e,U.IndexedReferences,r,s=>this.indexManager.updateReferences(s,r));const i=e.filter(s=>this.shouldValidate(s));await this.runCancelable(i,U.Validated,r,s=>this.validate(s,r));for(const s of e){const a=this.buildState.get(s.uri.toString());a&&(a.completed=!0)}}prepareBuild(e,t){for(const r of e){const i=r.uri.toString(),s=this.buildState.get(i);(!s||s.completed)&&this.buildState.set(i,{completed:!1,options:t,result:s==null?void 0:s.result})}}async runCancelable(e,t,r,i){const s=e.filter(a=>a.state{this.buildPhaseListeners.delete(e,t)})}waitUntil(e,t,r){let i;if(t&&"path"in t?i=t:r=t,r??(r=X.None),i){const s=this.langiumDocuments.getDocument(i);if(s&&s.state>e)return Promise.resolve(i)}return this.currentState>=e?Promise.resolve(void 0):r.isCancellationRequested?Promise.reject(Qn):new Promise((s,a)=>{const o=this.onBuildPhase(e,()=>{if(o.dispose(),l.dispose(),i){const c=this.langiumDocuments.getDocument(i);s(c==null?void 0:c.uri)}else s(void 0)}),l=r.onCancellationRequested(()=>{o.dispose(),l.dispose(),a(Qn)})})}async notifyBuildPhase(e,t,r){if(e.length===0)return;const i=this.buildPhaseListeners.get(t);for(const s of i)await Le(r),await s(e,r)}shouldValidate(e){return!!this.getBuildOptions(e).validation}async validate(e,t){var r,i;const s=this.serviceRegistry.getServices(e.uri).validation.DocumentValidator,a=this.getBuildOptions(e).validation,o=typeof a=="object"?a:void 0,l=await s.validateDocument(e,o,t);e.diagnostics?e.diagnostics.push(...l):e.diagnostics=l;const c=this.buildState.get(e.uri.toString());if(c){(r=c.result)!==null&&r!==void 0||(c.result={});const u=(i=o==null?void 0:o.categories)!==null&&i!==void 0?i:Zn.all;c.result.validationChecks?c.result.validationChecks.push(...u):c.result.validationChecks=[...u]}}getBuildOptions(e){var t,r;return(r=(t=this.buildState.get(e.uri.toString()))===null||t===void 0?void 0:t.options)!==null&&r!==void 0?r:{}}}class xm{constructor(e){this.symbolIndex=new Map,this.symbolByTypeIndex=new mm,this.referenceIndex=new Map,this.documents=e.workspace.LangiumDocuments,this.serviceRegistry=e.ServiceRegistry,this.astReflection=e.AstReflection}findAllReferences(e,t){const r=Ue(e).uri,i=[];return this.referenceIndex.forEach(s=>{s.forEach(a=>{rt.equals(a.targetUri,r)&&a.targetPath===t&&i.push(a)})}),Q(i)}allElements(e,t){let r=Q(this.symbolIndex.keys());return t&&(r=r.filter(i=>!t||t.has(i))),r.map(i=>this.getFileDescriptions(i,e)).flat()}getFileDescriptions(e,t){var r;return t?this.symbolByTypeIndex.get(e,t,()=>{var s;return((s=this.symbolIndex.get(e))!==null&&s!==void 0?s:[]).filter(o=>this.astReflection.isSubtype(o.type,t))}):(r=this.symbolIndex.get(e))!==null&&r!==void 0?r:[]}remove(e){const t=e.toString();this.symbolIndex.delete(t),this.symbolByTypeIndex.clear(t),this.referenceIndex.delete(t)}async updateContent(e,t=X.None){const i=await this.serviceRegistry.getServices(e.uri).references.ScopeComputation.computeExports(e,t),s=e.uri.toString();this.symbolIndex.set(s,i),this.symbolByTypeIndex.clear(s)}async updateReferences(e,t=X.None){const i=await this.serviceRegistry.getServices(e.uri).workspace.ReferenceDescriptionProvider.createDescriptions(e,t);this.referenceIndex.set(e.uri.toString(),i)}isAffected(e,t){const r=this.referenceIndex.get(e.uri.toString());return r?r.some(i=>!i.local&&t.has(i.targetUri.toString())):!1}}class Cm{constructor(e){this.initialBuildOptions={},this._ready=new Vi,this.serviceRegistry=e.ServiceRegistry,this.langiumDocuments=e.workspace.LangiumDocuments,this.documentBuilder=e.workspace.DocumentBuilder,this.fileSystemProvider=e.workspace.FileSystemProvider,this.mutex=e.workspace.WorkspaceLock}get ready(){return this._ready.promise}initialize(e){var t;this.folders=(t=e.workspaceFolders)!==null&&t!==void 0?t:void 0}initialized(e){return this.mutex.write(t=>{var r;return this.initializeWorkspace((r=this.folders)!==null&&r!==void 0?r:[],t)})}async initializeWorkspace(e,t=X.None){const r=await this.performStartup(e);await Le(t),await this.documentBuilder.build(r,this.initialBuildOptions,t)}async performStartup(e){const t=this.serviceRegistry.all.flatMap(s=>s.LanguageMetaData.fileExtensions),r=[],i=s=>{r.push(s),this.langiumDocuments.hasDocument(s.uri)||this.langiumDocuments.addDocument(s)};return await this.loadAdditionalDocuments(e,i),await Promise.all(e.map(s=>[s,this.getRootFolder(s)]).map(async s=>this.traverseFolder(...s,t,i))),this._ready.resolve(),r}loadAdditionalDocuments(e,t){return Promise.resolve()}getRootFolder(e){return Wt.parse(e.uri)}async traverseFolder(e,t,r,i){const s=await this.fileSystemProvider.readDirectory(t);await Promise.all(s.map(async a=>{if(this.includeEntry(e,a,r)){if(a.isDirectory)await this.traverseFolder(e,a.uri,r,i);else if(a.isFile){const o=await this.langiumDocuments.getOrCreateDocument(a.uri);i(o)}}}))}includeEntry(e,t,r){const i=rt.basename(t.uri);if(i.startsWith("."))return!1;if(t.isDirectory)return i!=="node_modules"&&i!=="out";if(t.isFile){const s=rt.extname(t.uri);return r.includes(s)}return!1}}class wm{constructor(e){const t=e.parser.TokenBuilder.buildTokens(e.Grammar,{caseInsensitive:e.LanguageMetaData.caseInsensitive});this.tokenTypes=this.toTokenTypeDictionary(t);const r=za(t)?Object.values(t):t;this.chevrotainLexer=new de(r,{positionTracking:"full"})}get definition(){return this.tokenTypes}tokenize(e){var t;const r=this.chevrotainLexer.tokenize(e);return{tokens:r.tokens,errors:r.errors,hidden:(t=r.groups.hidden)!==null&&t!==void 0?t:[]}}toTokenTypeDictionary(e){if(za(e))return e;const t=gc(e)?Object.values(e.modes).flat():e,r={};return t.forEach(i=>r[i.name]=i),r}}function Om(n){return Array.isArray(n)&&(n.length===0||"name"in n[0])}function gc(n){return n&&"modes"in n&&"defaultMode"in n}function za(n){return!Om(n)&&!gc(n)}function Lm(n,e,t){let r,i;typeof n=="string"?(i=e,r=t):(i=n.range.start,r=e),i||(i=P.create(0,0));const s=yc(n),a=Ki(r),o=Mm({lines:s,position:i,options:a});return Fm({index:0,tokens:o,position:i})}function $m(n,e){const t=Ki(e),r=yc(n);if(r.length===0)return!1;const i=r[0],s=r[r.length-1],a=t.start,o=t.end;return!!(a!=null&&a.exec(i))&&!!(o!=null&&o.exec(s))}function yc(n){let e="";return typeof n=="string"?e=n:e=n.text,e.split(hd)}const qa=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,Pm=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu;function Mm(n){var e,t,r;const i=[];let s=n.position.line,a=n.position.character;for(let o=0;o=u.length){if(i.length>0){const h=P.create(s,a);i.push({type:"break",content:"",range:$.create(h,h)})}}else{qa.lastIndex=d;const h=qa.exec(u);if(h){const m=h[0],g=h[1],_=P.create(s,a+d),y=P.create(s,a+d+m.length);i.push({type:"tag",content:g,range:$.create(_,y)}),d+=m.length,d=yi(u,d)}if(d0&&i[i.length-1].type==="break"?i.slice(0,-1):i}function Dm(n,e,t,r){const i=[];if(n.length===0){const s=P.create(t,r),a=P.create(t,r+e.length);i.push({type:"text",content:e,range:$.create(s,a)})}else{let s=0;for(const o of n){const l=o.index,c=e.substring(s,l);c.length>0&&i.push({type:"text",content:e.substring(s,l),range:$.create(P.create(t,s+r),P.create(t,l+r))});let u=c.length+1;const d=o[1];if(i.push({type:"inline-tag",content:d,range:$.create(P.create(t,s+u+r),P.create(t,s+u+d.length+r))}),u+=d.length,o.length===4){u+=o[2].length;const f=o[3];i.push({type:"text",content:f,range:$.create(P.create(t,s+u+r),P.create(t,s+u+f.length+r))})}else i.push({type:"text",content:"",range:$.create(P.create(t,s+u+r),P.create(t,s+u+r))});s=l+o[0].length}const a=e.substring(s);a.length>0&&i.push({type:"text",content:a,range:$.create(P.create(t,s+r),P.create(t,s+r+a.length))})}return i}const jm=/\S/,Gm=/\s*$/;function yi(n,e){const t=n.substring(e).match(jm);return t?e+t.index:n.length}function Um(n){const e=n.match(Gm);if(e&&typeof e.index=="number")return e.index}function Fm(n){var e,t,r,i;const s=P.create(n.position.line,n.position.character);if(n.tokens.length===0)return new Ya([],$.create(s,s));const a=[];for(;n.indext.name===e)}getTags(e){return this.getAllTags().filter(t=>t.name===e)}getAllTags(){return this.elements.filter(e=>"name"in e)}toString(){let e="";for(const t of this.elements)if(e.length===0)e=t.toString();else{const r=t.toString();e+=Xa(e)+r}return e.trim()}toMarkdown(e){let t="";for(const r of this.elements)if(t.length===0)t=r.toMarkdown(e);else{const i=r.toMarkdown(e);t+=Xa(t)+i}return t.trim()}}class $r{constructor(e,t,r,i){this.name=e,this.content=t,this.inline=r,this.range=i}toString(){let e=`@${this.name}`;const t=this.content.toString();return this.content.inlines.length===1?e=`${e} ${t}`:this.content.inlines.length>1&&(e=`${e} ${t}`),this.inline?`{${e}}`:e}toMarkdown(e){var t,r;return(r=(t=e==null?void 0:e.renderTag)===null||t===void 0?void 0:t.call(e,this))!==null&&r!==void 0?r:this.toMarkdownDefault(e)}toMarkdownDefault(e){const t=this.content.toMarkdown(e);if(this.inline){const s=Wm(this.name,t,e??{});if(typeof s=="string")return s}let r="";(e==null?void 0:e.tag)==="italic"||(e==null?void 0:e.tag)===void 0?r="*":(e==null?void 0:e.tag)==="bold"?r="**":(e==null?void 0:e.tag)==="bold-italic"&&(r="***");let i=`${r}@${this.name}${r}`;return this.content.inlines.length===1?i=`${i} — ${t}`:this.content.inlines.length>1&&(i=`${i} ${t}`),this.inline?`{${i}}`:i}}function Wm(n,e,t){var r,i;if(n==="linkplain"||n==="linkcode"||n==="link"){const s=e.indexOf(" ");let a=e;if(s>0){const l=yi(e,s);a=e.substring(l),e=e.substring(0,s)}return(n==="linkcode"||n==="link"&&t.link==="code")&&(a=`\`${a}\``),(i=(r=t.renderLink)===null||r===void 0?void 0:r.call(t,e,a))!==null&&i!==void 0?i:Km(e,a)}}function Km(n,e){try{return Wt.parse(n,!0),`[${e}](${n})`}catch{return n}}class Ti{constructor(e,t){this.inlines=e,this.range=t}toString(){let e="";for(let t=0;tr.range.start.line&&(e+=` `)}return e}toMarkdown(e){let t="";for(let r=0;ri.range.start.line&&(t+=` diff --git a/static/js/md-gitGraphDiagram-NRZ2UAAF-Dxkwg6fz.js b/static/js/md-gitGraphDiagram-NRZ2UAAF-BGJ9QOJm.js similarity index 98% rename from static/js/md-gitGraphDiagram-NRZ2UAAF-Dxkwg6fz.js rename to static/js/md-gitGraphDiagram-NRZ2UAAF-BGJ9QOJm.js index 83abbc2f2..7c89a5684 100644 --- a/static/js/md-gitGraphDiagram-NRZ2UAAF-Dxkwg6fz.js +++ b/static/js/md-gitGraphDiagram-NRZ2UAAF-BGJ9QOJm.js @@ -1,4 +1,4 @@ -import{p as Z}from"./md-chunk-TMUBEWPD-CnSBa8lL.js";import{I as F}from"./md-chunk-KFBOBJHC-Bi4-jCiM.js";import{_ as h,n as U,o as rr,s as er,g as tr,a as ar,b as nr,l as w,c as sr,d as or,u as cr,B as ir,v as dr,k as B,C as hr,D as lr,E as $r,F as fr}from"./md-index-Pj6M4nIk.js";import{p as gr}from"./md-gitGraph-YCYPL57B-Hx73xtpL.js";import"./md-_baseUniq-B_2Z1DXv.js";import"./md-_basePickBy-DCcDoZXV.js";import"./md-clone-CnShQSdt.js";var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},yr=$r.gitGraph,z=h(()=>hr({...yr,...lr().gitGraph}),"getConfig"),i=new F(()=>{const t=z(),r=t.mainBranchName,a=t.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:a}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function S(){return fr({length:7})}h(S,"getID");function N(t,r){const a=Object.create(null);return t.reduce((s,e)=>{const n=r(e);return a[n]||(a[n]=!0,s.push(e)),s},[])}h(N,"uniqBy");var ur=h(function(t){i.records.direction=t},"setDirection"),xr=h(function(t){w.debug("options str",t),t=t==null?void 0:t.trim(),t=t||"{}";try{i.records.options=JSON.parse(t)}catch(r){w.error("error while parsing gitGraph options",r.message)}},"setOptions"),pr=h(function(){return i.records.options},"getOptions"),br=h(function(t){let r=t.msg,a=t.id;const s=t.type;let e=t.tags;w.info("commit",r,a,s,e),w.debug("Entering commit:",r,a,s,e);const n=z();a=B.sanitizeText(a,n),r=B.sanitizeText(r,n),e=e==null?void 0:e.map(o=>B.sanitizeText(o,n));const c={id:a||i.records.seq+"-"+S(),message:r,seq:i.records.seq++,type:s??x.NORMAL,tags:e??[],parents:i.records.head==null?[]:[i.records.head.id],branch:i.records.currBranch};i.records.head=c,w.info("main branch",n.mainBranchName),i.records.commits.set(c.id,c),i.records.branches.set(i.records.currBranch,c.id),w.debug("in pushCommit "+c.id)},"commit"),mr=h(function(t){let r=t.name;const a=t.order;if(r=B.sanitizeText(r,z()),i.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}")`);i.records.branches.set(r,i.records.head!=null?i.records.head.id:null),i.records.branchConfig.set(r,{name:r,order:a}),_(r),w.debug("in createBranch")},"branch"),wr=h(t=>{let r=t.branch,a=t.id;const s=t.type,e=t.tags,n=z();r=B.sanitizeText(r,n),a&&(a=B.sanitizeText(a,n));const c=i.records.branches.get(i.records.currBranch),o=i.records.branches.get(r),$=c?i.records.commits.get(c):void 0,l=o?i.records.commits.get(o):void 0;if($&&l&&$.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(i.records.currBranch===r){const d=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},d}if($===void 0||!$){const d=new Error(`Incorrect usage of "merge". Current branch (${i.records.currBranch})has no commits`);throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},d}if(!i.records.branches.has(r)){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},d}if(l===void 0||!l){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},d}if($===l){const d=new Error('Incorrect usage of "merge". Both branches have same head');throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},d}if(a&&i.records.commits.has(a)){const d=new Error('Incorrect usage of "merge". Commit with id:'+a+" already exists, use different custom Id");throw d.hash={text:`merge ${r} ${a} ${s} ${e==null?void 0:e.join(" ")}`,token:`merge ${r} ${a} ${s} ${e==null?void 0:e.join(" ")}`,expected:[`merge ${r} ${a}_UNIQUE ${s} ${e==null?void 0:e.join(" ")}`]},d}const f=o||"",g={id:a||`${i.records.seq}-${S()}`,message:`merged branch ${r} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,f],branch:i.records.currBranch,type:x.MERGE,customType:s,customId:!!a,tags:e??[]};i.records.head=g,i.records.commits.set(g.id,g),i.records.branches.set(i.records.currBranch,g.id),w.debug(i.records.branches),w.debug("in mergeBranch")},"merge"),vr=h(function(t){let r=t.id,a=t.targetId,s=t.tags,e=t.parent;w.debug("Entering cherryPick:",r,a,s);const n=z();if(r=B.sanitizeText(r,n),a=B.sanitizeText(a,n),s=s==null?void 0:s.map($=>B.sanitizeText($,n)),e=B.sanitizeText(e,n),!r||!i.records.commits.has(r)){const $=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw $.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},$}const c=i.records.commits.get(r);if(c===void 0||!c)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(e&&!(Array.isArray(c.parents)&&c.parents.includes(e)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const o=c.branch;if(c.type===x.MERGE&&!e)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!a||!i.records.commits.has(a)){if(o===i.records.currBranch){const g=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw g.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},g}const $=i.records.branches.get(i.records.currBranch);if($===void 0||!$){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},g}const l=i.records.commits.get($);if(l===void 0||!l){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},g}const f={id:i.records.seq+"-"+S(),message:`cherry-picked ${c==null?void 0:c.message} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,c.id],branch:i.records.currBranch,type:x.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${c.id}${c.type===x.MERGE?`|parent:${e}`:""}`]};i.records.head=f,i.records.commits.set(f.id,f),i.records.branches.set(i.records.currBranch,f.id),w.debug(i.records.branches),w.debug("in cherryPick")}},"cherryPick"),_=h(function(t){if(t=B.sanitizeText(t,z()),i.records.branches.has(t)){i.records.currBranch=t;const r=i.records.branches.get(i.records.currBranch);r===void 0||!r?i.records.head=null:i.records.head=i.records.commits.get(r)??null}else{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}},"checkout");function A(t,r,a){const s=t.indexOf(r);s===-1?t.push(a):t.splice(s,1,a)}h(A,"upsert");function D(t){const r=t.reduce((e,n)=>e.seq>n.seq?e:n,t[0]);let a="";t.forEach(function(e){e===r?a+=" *":a+=" |"});const s=[a,r.id,r.seq];for(const e in i.records.branches)i.records.branches.get(e)===r.id&&s.push(e);if(w.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const e=i.records.commits.get(r.parents[0]);A(t,r,e),r.parents[1]&&t.push(i.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const e=i.records.commits.get(r.parents[0]);A(t,r,e)}}t=N(t,e=>e.id),D(t)}h(D,"prettyPrintCommitHistory");var Cr=h(function(){w.debug(i.records.commits);const t=V()[0];D([t])},"prettyPrint"),Er=h(function(){i.reset(),dr()},"clear"),Br=h(function(){return[...i.records.branchConfig.values()].map((r,a)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${a}`)}).sort((r,a)=>(r.order??0)-(a.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),kr=h(function(){return i.records.branches},"getBranches"),Lr=h(function(){return i.records.commits},"getCommits"),V=h(function(){const t=[...i.records.commits.values()];return t.forEach(function(r){w.debug(r.id)}),t.sort((r,a)=>r.seq-a.seq),t},"getCommitsArray"),Tr=h(function(){return i.records.currBranch},"getCurrentBranch"),Mr=h(function(){return i.records.direction},"getDirection"),Rr=h(function(){return i.records.head},"getHead"),X={commitType:x,getConfig:z,setDirection:ur,setOptions:xr,getOptions:pr,commit:br,branch:mr,merge:wr,cherryPick:vr,checkout:_,prettyPrint:Cr,clear:Er,getBranchesAsObjArray:Br,getBranches:kr,getCommits:Lr,getCommitsArray:V,getCurrentBranch:Tr,getDirection:Mr,getHead:Rr,setAccTitle:nr,getAccTitle:ar,getAccDescription:tr,setAccDescription:er,setDiagramTitle:rr,getDiagramTitle:U},Ir=h((t,r)=>{Z(t,r),t.dir&&r.setDirection(t.dir);for(const a of t.statements)qr(a,r)},"populate"),qr=h((t,r)=>{const s={Commit:h(e=>r.commit(Or(e)),"Commit"),Branch:h(e=>r.branch(zr(e)),"Branch"),Merge:h(e=>r.merge(Gr(e)),"Merge"),Checkout:h(e=>r.checkout(Hr(e)),"Checkout"),CherryPicking:h(e=>r.cherryPick(Pr(e)),"CherryPicking")}[t.$type];s?s(t):w.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),Or=h(t=>({id:t.id,msg:t.message??"",type:t.type!==void 0?x[t.type]:x.NORMAL,tags:t.tags??void 0}),"parseCommit"),zr=h(t=>({name:t.name,order:t.order??0}),"parseBranch"),Gr=h(t=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?x[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),Hr=h(t=>t.branch,"parseCheckout"),Pr=h(t=>{var a;return{id:t.id,targetId:"",tags:((a=t.tags)==null?void 0:a.length)===0?void 0:t.tags,parent:t.parent}},"parseCherryPicking"),Wr={parse:h(async t=>{const r=await gr("gitGraph",t);w.debug(r),Ir(r,X)},"parse")},j=sr(),b=j==null?void 0:j.gitGraph,R=10,I=40,k=4,L=2,O=8,C=new Map,E=new Map,P=30,G=new Map,W=[],M=0,u="LR",Sr=h(()=>{C.clear(),E.clear(),G.clear(),M=0,W=[],u="LR"},"clear"),J=h(t=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t=="string"?t.split(/\\n|\n|/gi):t).forEach(s=>{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=s.trim(),r.appendChild(e)}),r},"drawText"),Q=h(t=>{let r,a,s;return u==="BT"?(a=h((e,n)=>e<=n,"comparisonFunc"),s=1/0):(a=h((e,n)=>e>=n,"comparisonFunc"),s=0),t.forEach(e=>{var c,o;const n=u==="TB"||u=="BT"?(c=E.get(e))==null?void 0:c.y:(o=E.get(e))==null?void 0:o.x;n!==void 0&&a(n,s)&&(r=e,s=n)}),r},"findClosestParent"),jr=h(t=>{let r="",a=1/0;return t.forEach(s=>{const e=E.get(s).y;e<=a&&(r=s,a=e)}),r||void 0},"findClosestParentBT"),Ar=h((t,r,a)=>{let s=a,e=a;const n=[];t.forEach(c=>{const o=r.get(c);if(!o)throw new Error(`Commit not found for key ${c}`);o.parents.length?(s=Yr(o),e=Math.max(s,e)):n.push(o),Kr(o,s)}),s=e,n.forEach(c=>{Nr(c,s,a)}),t.forEach(c=>{const o=r.get(c);if(o!=null&&o.parents.length){const $=jr(o.parents);s=E.get($).y-I,s<=e&&(e=s);const l=C.get(o.branch).pos,f=s-R;E.set(o.id,{x:l,y:f})}})},"setParallelBTPos"),Dr=h(t=>{var s;const r=Q(t.parents.filter(e=>e!==null));if(!r)throw new Error(`Closest parent not found for commit ${t.id}`);const a=(s=E.get(r))==null?void 0:s.y;if(a===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return a},"findClosestParentPos"),Yr=h(t=>Dr(t)+I,"calculateCommitPosition"),Kr=h((t,r)=>{const a=C.get(t.branch);if(!a)throw new Error(`Branch not found for commit ${t.id}`);const s=a.pos,e=r+R;return E.set(t.id,{x:s,y:e}),{x:s,y:e}},"setCommitPosition"),Nr=h((t,r,a)=>{const s=C.get(t.branch);if(!s)throw new Error(`Branch not found for commit ${t.id}`);const e=r+a,n=s.pos;E.set(t.id,{x:n,y:e})},"setRootPosition"),_r=h((t,r,a,s,e,n)=>{if(n===x.HIGHLIGHT)t.append("rect").attr("x",a.x-10).attr("y",a.y-10).attr("width",20).attr("height",20).attr("class",`commit ${r.id} commit-highlight${e%O} ${s}-outer`),t.append("rect").attr("x",a.x-6).attr("y",a.y-6).attr("width",12).attr("height",12).attr("class",`commit ${r.id} commit${e%O} ${s}-inner`);else if(n===x.CHERRY_PICK)t.append("circle").attr("cx",a.x).attr("cy",a.y).attr("r",10).attr("class",`commit ${r.id} ${s}`),t.append("circle").attr("cx",a.x-3).attr("cy",a.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${r.id} ${s}`),t.append("circle").attr("cx",a.x+3).attr("cy",a.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${r.id} ${s}`),t.append("line").attr("x1",a.x+3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke","#fff").attr("class",`commit ${r.id} ${s}`),t.append("line").attr("x1",a.x-3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke","#fff").attr("class",`commit ${r.id} ${s}`);else{const c=t.append("circle");if(c.attr("cx",a.x),c.attr("cy",a.y),c.attr("r",r.type===x.MERGE?9:10),c.attr("class",`commit ${r.id} commit${e%O}`),n===x.MERGE){const o=t.append("circle");o.attr("cx",a.x),o.attr("cy",a.y),o.attr("r",6),o.attr("class",`commit ${s} ${r.id} commit${e%O}`)}n===x.REVERSE&&t.append("path").attr("d",`M ${a.x-5},${a.y-5}L${a.x+5},${a.y+5}M${a.x-5},${a.y+5}L${a.x+5},${a.y-5}`).attr("class",`commit ${s} ${r.id} commit${e%O}`)}},"drawCommitBullet"),Vr=h((t,r,a,s)=>{var e;if(r.type!==x.CHERRY_PICK&&(r.customId&&r.type===x.MERGE||r.type!==x.MERGE)&&(b!=null&&b.showCommitLabel)){const n=t.append("g"),c=n.insert("rect").attr("class","commit-label-bkg"),o=n.append("text").attr("x",s).attr("y",a.y+25).attr("class","commit-label").text(r.id),$=(e=o.node())==null?void 0:e.getBBox();if($&&(c.attr("x",a.posWithOffset-$.width/2-L).attr("y",a.y+13.5).attr("width",$.width+2*L).attr("height",$.height+2*L),u==="TB"||u==="BT"?(c.attr("x",a.x-($.width+4*k+5)).attr("y",a.y-12),o.attr("x",a.x-($.width+4*k)).attr("y",a.y+$.height-12)):o.attr("x",a.posWithOffset-$.width/2),b.rotateCommitLabel))if(u==="TB"||u==="BT")o.attr("transform","rotate(-45, "+a.x+", "+a.y+")"),c.attr("transform","rotate(-45, "+a.x+", "+a.y+")");else{const l=-7.5-($.width+10)/25*9.5,f=10+$.width/25*8.5;n.attr("transform","translate("+l+", "+f+") rotate(-45, "+s+", "+a.y+")")}}},"drawCommitLabel"),Xr=h((t,r,a,s)=>{var e;if(r.tags.length>0){let n=0,c=0,o=0;const $=[];for(const l of r.tags.reverse()){const f=t.insert("polygon"),g=t.append("circle"),d=t.append("text").attr("y",a.y-16-n).attr("class","tag-label").text(l),y=(e=d.node())==null?void 0:e.getBBox();if(!y)throw new Error("Tag bbox not found");c=Math.max(c,y.width),o=Math.max(o,y.height),d.attr("x",a.posWithOffset-y.width/2),$.push({tag:d,hole:g,rect:f,yOffset:n}),n+=20}for(const{tag:l,hole:f,rect:g,yOffset:d}of $){const y=o/2,p=a.y-19.2-d;if(g.attr("class","tag-label-bkg").attr("points",` +import{p as Z}from"./md-chunk-TMUBEWPD-BMgjwLeC.js";import{I as F}from"./md-chunk-KFBOBJHC-Cw-7g_Wb.js";import{_ as h,n as U,o as rr,s as er,g as tr,a as ar,b as nr,l as w,c as sr,d as or,u as cr,B as ir,v as dr,k as B,C as hr,D as lr,E as $r,F as fr}from"./md-index-1F_vrIf8.js";import{p as gr}from"./md-gitGraph-YCYPL57B-Da34XlYK.js";import"./md-_baseUniq-CaouebKG.js";import"./md-_basePickBy-BEC9IKhF.js";import"./md-clone-Cc6Gk5Be.js";var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},yr=$r.gitGraph,z=h(()=>hr({...yr,...lr().gitGraph}),"getConfig"),i=new F(()=>{const t=z(),r=t.mainBranchName,a=t.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:a}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function S(){return fr({length:7})}h(S,"getID");function N(t,r){const a=Object.create(null);return t.reduce((s,e)=>{const n=r(e);return a[n]||(a[n]=!0,s.push(e)),s},[])}h(N,"uniqBy");var ur=h(function(t){i.records.direction=t},"setDirection"),xr=h(function(t){w.debug("options str",t),t=t==null?void 0:t.trim(),t=t||"{}";try{i.records.options=JSON.parse(t)}catch(r){w.error("error while parsing gitGraph options",r.message)}},"setOptions"),pr=h(function(){return i.records.options},"getOptions"),br=h(function(t){let r=t.msg,a=t.id;const s=t.type;let e=t.tags;w.info("commit",r,a,s,e),w.debug("Entering commit:",r,a,s,e);const n=z();a=B.sanitizeText(a,n),r=B.sanitizeText(r,n),e=e==null?void 0:e.map(o=>B.sanitizeText(o,n));const c={id:a||i.records.seq+"-"+S(),message:r,seq:i.records.seq++,type:s??x.NORMAL,tags:e??[],parents:i.records.head==null?[]:[i.records.head.id],branch:i.records.currBranch};i.records.head=c,w.info("main branch",n.mainBranchName),i.records.commits.set(c.id,c),i.records.branches.set(i.records.currBranch,c.id),w.debug("in pushCommit "+c.id)},"commit"),mr=h(function(t){let r=t.name;const a=t.order;if(r=B.sanitizeText(r,z()),i.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}")`);i.records.branches.set(r,i.records.head!=null?i.records.head.id:null),i.records.branchConfig.set(r,{name:r,order:a}),_(r),w.debug("in createBranch")},"branch"),wr=h(t=>{let r=t.branch,a=t.id;const s=t.type,e=t.tags,n=z();r=B.sanitizeText(r,n),a&&(a=B.sanitizeText(a,n));const c=i.records.branches.get(i.records.currBranch),o=i.records.branches.get(r),$=c?i.records.commits.get(c):void 0,l=o?i.records.commits.get(o):void 0;if($&&l&&$.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(i.records.currBranch===r){const d=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},d}if($===void 0||!$){const d=new Error(`Incorrect usage of "merge". Current branch (${i.records.currBranch})has no commits`);throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},d}if(!i.records.branches.has(r)){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},d}if(l===void 0||!l){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},d}if($===l){const d=new Error('Incorrect usage of "merge". Both branches have same head');throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},d}if(a&&i.records.commits.has(a)){const d=new Error('Incorrect usage of "merge". Commit with id:'+a+" already exists, use different custom Id");throw d.hash={text:`merge ${r} ${a} ${s} ${e==null?void 0:e.join(" ")}`,token:`merge ${r} ${a} ${s} ${e==null?void 0:e.join(" ")}`,expected:[`merge ${r} ${a}_UNIQUE ${s} ${e==null?void 0:e.join(" ")}`]},d}const f=o||"",g={id:a||`${i.records.seq}-${S()}`,message:`merged branch ${r} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,f],branch:i.records.currBranch,type:x.MERGE,customType:s,customId:!!a,tags:e??[]};i.records.head=g,i.records.commits.set(g.id,g),i.records.branches.set(i.records.currBranch,g.id),w.debug(i.records.branches),w.debug("in mergeBranch")},"merge"),vr=h(function(t){let r=t.id,a=t.targetId,s=t.tags,e=t.parent;w.debug("Entering cherryPick:",r,a,s);const n=z();if(r=B.sanitizeText(r,n),a=B.sanitizeText(a,n),s=s==null?void 0:s.map($=>B.sanitizeText($,n)),e=B.sanitizeText(e,n),!r||!i.records.commits.has(r)){const $=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw $.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},$}const c=i.records.commits.get(r);if(c===void 0||!c)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(e&&!(Array.isArray(c.parents)&&c.parents.includes(e)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const o=c.branch;if(c.type===x.MERGE&&!e)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!a||!i.records.commits.has(a)){if(o===i.records.currBranch){const g=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw g.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},g}const $=i.records.branches.get(i.records.currBranch);if($===void 0||!$){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},g}const l=i.records.commits.get($);if(l===void 0||!l){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},g}const f={id:i.records.seq+"-"+S(),message:`cherry-picked ${c==null?void 0:c.message} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,c.id],branch:i.records.currBranch,type:x.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${c.id}${c.type===x.MERGE?`|parent:${e}`:""}`]};i.records.head=f,i.records.commits.set(f.id,f),i.records.branches.set(i.records.currBranch,f.id),w.debug(i.records.branches),w.debug("in cherryPick")}},"cherryPick"),_=h(function(t){if(t=B.sanitizeText(t,z()),i.records.branches.has(t)){i.records.currBranch=t;const r=i.records.branches.get(i.records.currBranch);r===void 0||!r?i.records.head=null:i.records.head=i.records.commits.get(r)??null}else{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}},"checkout");function A(t,r,a){const s=t.indexOf(r);s===-1?t.push(a):t.splice(s,1,a)}h(A,"upsert");function D(t){const r=t.reduce((e,n)=>e.seq>n.seq?e:n,t[0]);let a="";t.forEach(function(e){e===r?a+=" *":a+=" |"});const s=[a,r.id,r.seq];for(const e in i.records.branches)i.records.branches.get(e)===r.id&&s.push(e);if(w.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const e=i.records.commits.get(r.parents[0]);A(t,r,e),r.parents[1]&&t.push(i.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const e=i.records.commits.get(r.parents[0]);A(t,r,e)}}t=N(t,e=>e.id),D(t)}h(D,"prettyPrintCommitHistory");var Cr=h(function(){w.debug(i.records.commits);const t=V()[0];D([t])},"prettyPrint"),Er=h(function(){i.reset(),dr()},"clear"),Br=h(function(){return[...i.records.branchConfig.values()].map((r,a)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${a}`)}).sort((r,a)=>(r.order??0)-(a.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),kr=h(function(){return i.records.branches},"getBranches"),Lr=h(function(){return i.records.commits},"getCommits"),V=h(function(){const t=[...i.records.commits.values()];return t.forEach(function(r){w.debug(r.id)}),t.sort((r,a)=>r.seq-a.seq),t},"getCommitsArray"),Tr=h(function(){return i.records.currBranch},"getCurrentBranch"),Mr=h(function(){return i.records.direction},"getDirection"),Rr=h(function(){return i.records.head},"getHead"),X={commitType:x,getConfig:z,setDirection:ur,setOptions:xr,getOptions:pr,commit:br,branch:mr,merge:wr,cherryPick:vr,checkout:_,prettyPrint:Cr,clear:Er,getBranchesAsObjArray:Br,getBranches:kr,getCommits:Lr,getCommitsArray:V,getCurrentBranch:Tr,getDirection:Mr,getHead:Rr,setAccTitle:nr,getAccTitle:ar,getAccDescription:tr,setAccDescription:er,setDiagramTitle:rr,getDiagramTitle:U},Ir=h((t,r)=>{Z(t,r),t.dir&&r.setDirection(t.dir);for(const a of t.statements)qr(a,r)},"populate"),qr=h((t,r)=>{const s={Commit:h(e=>r.commit(Or(e)),"Commit"),Branch:h(e=>r.branch(zr(e)),"Branch"),Merge:h(e=>r.merge(Gr(e)),"Merge"),Checkout:h(e=>r.checkout(Hr(e)),"Checkout"),CherryPicking:h(e=>r.cherryPick(Pr(e)),"CherryPicking")}[t.$type];s?s(t):w.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),Or=h(t=>({id:t.id,msg:t.message??"",type:t.type!==void 0?x[t.type]:x.NORMAL,tags:t.tags??void 0}),"parseCommit"),zr=h(t=>({name:t.name,order:t.order??0}),"parseBranch"),Gr=h(t=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?x[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),Hr=h(t=>t.branch,"parseCheckout"),Pr=h(t=>{var a;return{id:t.id,targetId:"",tags:((a=t.tags)==null?void 0:a.length)===0?void 0:t.tags,parent:t.parent}},"parseCherryPicking"),Wr={parse:h(async t=>{const r=await gr("gitGraph",t);w.debug(r),Ir(r,X)},"parse")},j=sr(),b=j==null?void 0:j.gitGraph,R=10,I=40,k=4,L=2,O=8,C=new Map,E=new Map,P=30,G=new Map,W=[],M=0,u="LR",Sr=h(()=>{C.clear(),E.clear(),G.clear(),M=0,W=[],u="LR"},"clear"),J=h(t=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t=="string"?t.split(/\\n|\n|/gi):t).forEach(s=>{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=s.trim(),r.appendChild(e)}),r},"drawText"),Q=h(t=>{let r,a,s;return u==="BT"?(a=h((e,n)=>e<=n,"comparisonFunc"),s=1/0):(a=h((e,n)=>e>=n,"comparisonFunc"),s=0),t.forEach(e=>{var c,o;const n=u==="TB"||u=="BT"?(c=E.get(e))==null?void 0:c.y:(o=E.get(e))==null?void 0:o.x;n!==void 0&&a(n,s)&&(r=e,s=n)}),r},"findClosestParent"),jr=h(t=>{let r="",a=1/0;return t.forEach(s=>{const e=E.get(s).y;e<=a&&(r=s,a=e)}),r||void 0},"findClosestParentBT"),Ar=h((t,r,a)=>{let s=a,e=a;const n=[];t.forEach(c=>{const o=r.get(c);if(!o)throw new Error(`Commit not found for key ${c}`);o.parents.length?(s=Yr(o),e=Math.max(s,e)):n.push(o),Kr(o,s)}),s=e,n.forEach(c=>{Nr(c,s,a)}),t.forEach(c=>{const o=r.get(c);if(o!=null&&o.parents.length){const $=jr(o.parents);s=E.get($).y-I,s<=e&&(e=s);const l=C.get(o.branch).pos,f=s-R;E.set(o.id,{x:l,y:f})}})},"setParallelBTPos"),Dr=h(t=>{var s;const r=Q(t.parents.filter(e=>e!==null));if(!r)throw new Error(`Closest parent not found for commit ${t.id}`);const a=(s=E.get(r))==null?void 0:s.y;if(a===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return a},"findClosestParentPos"),Yr=h(t=>Dr(t)+I,"calculateCommitPosition"),Kr=h((t,r)=>{const a=C.get(t.branch);if(!a)throw new Error(`Branch not found for commit ${t.id}`);const s=a.pos,e=r+R;return E.set(t.id,{x:s,y:e}),{x:s,y:e}},"setCommitPosition"),Nr=h((t,r,a)=>{const s=C.get(t.branch);if(!s)throw new Error(`Branch not found for commit ${t.id}`);const e=r+a,n=s.pos;E.set(t.id,{x:n,y:e})},"setRootPosition"),_r=h((t,r,a,s,e,n)=>{if(n===x.HIGHLIGHT)t.append("rect").attr("x",a.x-10).attr("y",a.y-10).attr("width",20).attr("height",20).attr("class",`commit ${r.id} commit-highlight${e%O} ${s}-outer`),t.append("rect").attr("x",a.x-6).attr("y",a.y-6).attr("width",12).attr("height",12).attr("class",`commit ${r.id} commit${e%O} ${s}-inner`);else if(n===x.CHERRY_PICK)t.append("circle").attr("cx",a.x).attr("cy",a.y).attr("r",10).attr("class",`commit ${r.id} ${s}`),t.append("circle").attr("cx",a.x-3).attr("cy",a.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${r.id} ${s}`),t.append("circle").attr("cx",a.x+3).attr("cy",a.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${r.id} ${s}`),t.append("line").attr("x1",a.x+3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke","#fff").attr("class",`commit ${r.id} ${s}`),t.append("line").attr("x1",a.x-3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke","#fff").attr("class",`commit ${r.id} ${s}`);else{const c=t.append("circle");if(c.attr("cx",a.x),c.attr("cy",a.y),c.attr("r",r.type===x.MERGE?9:10),c.attr("class",`commit ${r.id} commit${e%O}`),n===x.MERGE){const o=t.append("circle");o.attr("cx",a.x),o.attr("cy",a.y),o.attr("r",6),o.attr("class",`commit ${s} ${r.id} commit${e%O}`)}n===x.REVERSE&&t.append("path").attr("d",`M ${a.x-5},${a.y-5}L${a.x+5},${a.y+5}M${a.x-5},${a.y+5}L${a.x+5},${a.y-5}`).attr("class",`commit ${s} ${r.id} commit${e%O}`)}},"drawCommitBullet"),Vr=h((t,r,a,s)=>{var e;if(r.type!==x.CHERRY_PICK&&(r.customId&&r.type===x.MERGE||r.type!==x.MERGE)&&(b!=null&&b.showCommitLabel)){const n=t.append("g"),c=n.insert("rect").attr("class","commit-label-bkg"),o=n.append("text").attr("x",s).attr("y",a.y+25).attr("class","commit-label").text(r.id),$=(e=o.node())==null?void 0:e.getBBox();if($&&(c.attr("x",a.posWithOffset-$.width/2-L).attr("y",a.y+13.5).attr("width",$.width+2*L).attr("height",$.height+2*L),u==="TB"||u==="BT"?(c.attr("x",a.x-($.width+4*k+5)).attr("y",a.y-12),o.attr("x",a.x-($.width+4*k)).attr("y",a.y+$.height-12)):o.attr("x",a.posWithOffset-$.width/2),b.rotateCommitLabel))if(u==="TB"||u==="BT")o.attr("transform","rotate(-45, "+a.x+", "+a.y+")"),c.attr("transform","rotate(-45, "+a.x+", "+a.y+")");else{const l=-7.5-($.width+10)/25*9.5,f=10+$.width/25*8.5;n.attr("transform","translate("+l+", "+f+") rotate(-45, "+s+", "+a.y+")")}}},"drawCommitLabel"),Xr=h((t,r,a,s)=>{var e;if(r.tags.length>0){let n=0,c=0,o=0;const $=[];for(const l of r.tags.reverse()){const f=t.insert("polygon"),g=t.append("circle"),d=t.append("text").attr("y",a.y-16-n).attr("class","tag-label").text(l),y=(e=d.node())==null?void 0:e.getBBox();if(!y)throw new Error("Tag bbox not found");c=Math.max(c,y.width),o=Math.max(o,y.height),d.attr("x",a.posWithOffset-y.width/2),$.push({tag:d,hole:g,rect:f,yOffset:n}),n+=20}for(const{tag:l,hole:f,rect:g,yOffset:d}of $){const y=o/2,p=a.y-19.2-d;if(g.attr("class","tag-label-bkg").attr("points",` ${s-c/2-k/2},${p+L} ${s-c/2-k/2},${p-L} ${a.posWithOffset-c/2-k},${p-y-L} diff --git a/static/js/md-graph-Dk7IDouC.js b/static/js/md-graph-tF8klDvC.js similarity index 96% rename from static/js/md-graph-Dk7IDouC.js rename to static/js/md-graph-tF8klDvC.js index a30c11b70..a178093dd 100644 --- a/static/js/md-graph-Dk7IDouC.js +++ b/static/js/md-graph-tF8klDvC.js @@ -1 +1 @@ -import{aA as N,aB as j,aC as f,aD as b,aE as E}from"./md-index-Pj6M4nIk.js";import{a as v,c as P,k as _,f as g,d,i as l,v as p,r as D}from"./md-_baseUniq-B_2Z1DXv.js";var w=N(function(o){return v(P(o,1,j,!0))}),F="\0",a="\0",O="";class L{constructor(e={}){this._isDirected=Object.prototype.hasOwnProperty.call(e,"directed")?e.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,"multigraph")?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=f(void 0),this._defaultEdgeLabelFn=f(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[a]={}),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(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return b(e)||(e=f(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return _(this._nodes)}sources(){var e=this;return g(this.nodes(),function(t){return E(e._in[t])})}sinks(){var e=this;return g(this.nodes(),function(t){return E(e._out[t])})}setNodes(e,t){var s=arguments,i=this;return d(e,function(r){s.length>1?i.setNode(r,t):i.setNode(r)}),this}setNode(e,t){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=a,this._children[e]={},this._children[a][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var t=s=>this.removeEdge(this._edgeObjs[s]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],d(this.children(e),s=>{this.setParent(s)}),delete this._children[e]),d(_(this._in[e]),t),delete this._in[e],delete this._preds[e],d(_(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(l(t))t=a;else{t+="";for(var s=t;!l(s);s=this.parent(s))if(s===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if(t!==a)return t}}children(e){if(l(e)&&(e=a),this._isCompound){var t=this._children[e];if(t)return _(t)}else{if(e===a)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var t=this._preds[e];if(t)return _(t)}successors(e){var t=this._sucs[e];if(t)return _(t)}neighbors(e){var t=this.predecessors(e);if(t)return w(t,this.successors(e))}isLeaf(e){var t;return this.isDirected()?t=this.successors(e):t=this.neighbors(e),t.length===0}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var s=this;d(this._nodes,function(n,h){e(h)&&t.setNode(h,n)}),d(this._edgeObjs,function(n){t.hasNode(n.v)&&t.hasNode(n.w)&&t.setEdge(n,s.edge(n))});var i={};function r(n){var h=s.parent(n);return h===void 0||t.hasNode(h)?(i[n]=h,h):h in i?i[h]:r(h)}return this._isCompound&&d(t.nodes(),function(n){t.setParent(n,r(n))}),t}setDefaultEdgeLabel(e){return b(e)||(e=f(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return p(this._edgeObjs)}setPath(e,t){var s=this,i=arguments;return D(e,function(r,n){return i.length>1?s.setEdge(r,n,t):s.setEdge(r,n),n}),this}setEdge(){var e,t,s,i,r=!1,n=arguments[0];typeof n=="object"&&n!==null&&"v"in n?(e=n.v,t=n.w,s=n.name,arguments.length===2&&(i=arguments[1],r=!0)):(e=n,t=arguments[1],s=arguments[3],arguments.length>2&&(i=arguments[2],r=!0)),e=""+e,t=""+t,l(s)||(s=""+s);var h=c(this._isDirected,e,t,s);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,h))return r&&(this._edgeLabels[h]=i),this;if(!l(s)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[h]=r?i:this._defaultEdgeLabelFn(e,t,s);var u=M(this._isDirected,e,t,s);return e=u.v,t=u.w,Object.freeze(u),this._edgeObjs[h]=u,C(this._preds[t],e),C(this._sucs[e],t),this._in[t][h]=u,this._out[e][h]=u,this._edgeCount++,this}edge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s);return this._edgeLabels[i]}hasEdge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s);return Object.prototype.hasOwnProperty.call(this._edgeLabels,i)}removeEdge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s),r=this._edgeObjs[i];return r&&(e=r.v,t=r.w,delete this._edgeLabels[i],delete this._edgeObjs[i],y(this._preds[t],e),y(this._sucs[e],t),delete this._in[t][i],delete this._out[e][i],this._edgeCount--),this}inEdges(e,t){var s=this._in[e];if(s){var i=p(s);return t?g(i,function(r){return r.v===t}):i}}outEdges(e,t){var s=this._out[e];if(s){var i=p(s);return t?g(i,function(r){return r.w===t}):i}}nodeEdges(e,t){var s=this.inEdges(e,t);if(s)return s.concat(this.outEdges(e,t))}}L.prototype._nodeCount=0;L.prototype._edgeCount=0;function C(o,e){o[e]?o[e]++:o[e]=1}function y(o,e){--o[e]||delete o[e]}function c(o,e,t,s){var i=""+e,r=""+t;if(!o&&i>r){var n=i;i=r,r=n}return i+O+r+O+(l(s)?F:s)}function M(o,e,t,s){var i=""+e,r=""+t;if(!o&&i>r){var n=i;i=r,r=n}var h={v:i,w:r};return s&&(h.name=s),h}function m(o,e){return c(o,e.v,e.w,e.name)}export{L as G}; +import{aA as N,aB as j,aC as f,aD as b,aE as E}from"./md-index-1F_vrIf8.js";import{a as v,c as P,k as _,f as g,d,i as l,v as p,r as D}from"./md-_baseUniq-CaouebKG.js";var w=N(function(o){return v(P(o,1,j,!0))}),F="\0",a="\0",O="";class L{constructor(e={}){this._isDirected=Object.prototype.hasOwnProperty.call(e,"directed")?e.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,"multigraph")?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=f(void 0),this._defaultEdgeLabelFn=f(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[a]={}),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(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return b(e)||(e=f(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return _(this._nodes)}sources(){var e=this;return g(this.nodes(),function(t){return E(e._in[t])})}sinks(){var e=this;return g(this.nodes(),function(t){return E(e._out[t])})}setNodes(e,t){var s=arguments,i=this;return d(e,function(r){s.length>1?i.setNode(r,t):i.setNode(r)}),this}setNode(e,t){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=a,this._children[e]={},this._children[a][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var t=s=>this.removeEdge(this._edgeObjs[s]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],d(this.children(e),s=>{this.setParent(s)}),delete this._children[e]),d(_(this._in[e]),t),delete this._in[e],delete this._preds[e],d(_(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(l(t))t=a;else{t+="";for(var s=t;!l(s);s=this.parent(s))if(s===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if(t!==a)return t}}children(e){if(l(e)&&(e=a),this._isCompound){var t=this._children[e];if(t)return _(t)}else{if(e===a)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var t=this._preds[e];if(t)return _(t)}successors(e){var t=this._sucs[e];if(t)return _(t)}neighbors(e){var t=this.predecessors(e);if(t)return w(t,this.successors(e))}isLeaf(e){var t;return this.isDirected()?t=this.successors(e):t=this.neighbors(e),t.length===0}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var s=this;d(this._nodes,function(n,h){e(h)&&t.setNode(h,n)}),d(this._edgeObjs,function(n){t.hasNode(n.v)&&t.hasNode(n.w)&&t.setEdge(n,s.edge(n))});var i={};function r(n){var h=s.parent(n);return h===void 0||t.hasNode(h)?(i[n]=h,h):h in i?i[h]:r(h)}return this._isCompound&&d(t.nodes(),function(n){t.setParent(n,r(n))}),t}setDefaultEdgeLabel(e){return b(e)||(e=f(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return p(this._edgeObjs)}setPath(e,t){var s=this,i=arguments;return D(e,function(r,n){return i.length>1?s.setEdge(r,n,t):s.setEdge(r,n),n}),this}setEdge(){var e,t,s,i,r=!1,n=arguments[0];typeof n=="object"&&n!==null&&"v"in n?(e=n.v,t=n.w,s=n.name,arguments.length===2&&(i=arguments[1],r=!0)):(e=n,t=arguments[1],s=arguments[3],arguments.length>2&&(i=arguments[2],r=!0)),e=""+e,t=""+t,l(s)||(s=""+s);var h=c(this._isDirected,e,t,s);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,h))return r&&(this._edgeLabels[h]=i),this;if(!l(s)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[h]=r?i:this._defaultEdgeLabelFn(e,t,s);var u=M(this._isDirected,e,t,s);return e=u.v,t=u.w,Object.freeze(u),this._edgeObjs[h]=u,C(this._preds[t],e),C(this._sucs[e],t),this._in[t][h]=u,this._out[e][h]=u,this._edgeCount++,this}edge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s);return this._edgeLabels[i]}hasEdge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s);return Object.prototype.hasOwnProperty.call(this._edgeLabels,i)}removeEdge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s),r=this._edgeObjs[i];return r&&(e=r.v,t=r.w,delete this._edgeLabels[i],delete this._edgeObjs[i],y(this._preds[t],e),y(this._sucs[e],t),delete this._in[t][i],delete this._out[e][i],this._edgeCount--),this}inEdges(e,t){var s=this._in[e];if(s){var i=p(s);return t?g(i,function(r){return r.v===t}):i}}outEdges(e,t){var s=this._out[e];if(s){var i=p(s);return t?g(i,function(r){return r.w===t}):i}}nodeEdges(e,t){var s=this.inEdges(e,t);if(s)return s.concat(this.outEdges(e,t))}}L.prototype._nodeCount=0;L.prototype._edgeCount=0;function C(o,e){o[e]?o[e]++:o[e]=1}function y(o,e){--o[e]||delete o[e]}function c(o,e,t,s){var i=""+e,r=""+t;if(!o&&i>r){var n=i;i=r,r=n}return i+O+r+O+(l(s)?F:s)}function M(o,e,t,s){var i=""+e,r=""+t;if(!o&&i>r){var n=i;i=r,r=n}var h={v:i,w:r};return s&&(h.name=s),h}function m(o,e){return c(o,e.v,e.w,e.name)}export{L as G}; diff --git a/static/js/md-index-Pj6M4nIk.js b/static/js/md-index-1F_vrIf8.js similarity index 86% rename from static/js/md-index-Pj6M4nIk.js rename to static/js/md-index-1F_vrIf8.js index 2c740dab0..e1d900ee3 100644 --- a/static/js/md-index-Pj6M4nIk.js +++ b/static/js/md-index-1F_vrIf8.js @@ -1,4 +1,4 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/js/md-dagre-4EVJKHTY-DYrconoh.js","static/js/md-graph-Dk7IDouC.js","static/js/md-_baseUniq-B_2Z1DXv.js","static/js/md-layout-InKKBTOk.js","static/js/md-_basePickBy-DCcDoZXV.js","static/js/md-clone-CnShQSdt.js","static/js/md-c4Diagram-6F5ED5ID-DVeXkvBx.js","static/js/md-chunk-ASOPGD6M-WtHLfW0h.js","static/js/md-flowDiagram-7ASYPVHJ-DVDFWXaF.js","static/js/md-chunk-5HRBRIJM-aORRBbXN.js","static/js/md-channel-BZPvYpZL.js","static/js/md-erDiagram-6RL3IURR-jjK-g8TC.js","static/js/md-gitGraphDiagram-NRZ2UAAF-Dxkwg6fz.js","static/js/md-chunk-TMUBEWPD-CnSBa8lL.js","static/js/md-chunk-KFBOBJHC-Bi4-jCiM.js","static/js/md-gitGraph-YCYPL57B-Hx73xtpL.js","static/js/md-ganttDiagram-NTVNEXSI-DLDnheDH.js","static/js/md-linear-D6Y5aq77.js","static/js/md-init-Gi6I4Gst.js","static/js/md-infoDiagram-A4XQUW5V-DI_2FOHH.js","static/js/md-pieDiagram-YF2LJOPJ-CEpnORvl.js","static/js/md-arc-JYr3KmYy.js","static/js/md-ordinal-CxVaQH2l.js","static/js/md-quadrantDiagram-OS5C2QUG-DQuklVfT.js","static/js/md-xychartDiagram-6QU3TZC5-CHuQLkx8.js","static/js/md-requirementDiagram-MIRIMTAZ-Cuj6en5F.js","static/js/md-sequenceDiagram-G6AWOVSC-D4E-_IXF.js","static/js/md-classDiagram-LNE6IOMH-Df_V4S_x.js","static/js/md-chunk-T2TOU4HS-CIbzXCrE.js","static/js/md-classDiagram-v2-MQ7JQ4JX-Df_V4S_x.js","static/js/md-stateDiagram-MAYHULR4-3EjsInh5.js","static/js/md-chunk-7U56Z5CX-CX_-p2zN.js","static/js/md-stateDiagram-v2-4JROLMXI-CrYqH-If.js","static/js/md-journeyDiagram-G5WM74LC-DeRpwxJo.js","static/js/md-timeline-definition-U7ZMHBDA-BmkDcRCw.js","static/js/md-mindmap-definition-GWI6TPTV-CtuHO1si.js","static/js/md-cytoscape.esm-Do9JCuQa.js","static/js/md-sankeyDiagram-Y46BX6SQ-DVAwfI-F.js","static/js/md-diagram-QW4FP2JN-BZVbMsBE.js","static/js/md-blockDiagram-ZHA2E4KO-C8ljgUT6.js","static/js/md-architectureDiagram-UYN6MBPD-DDmNR903.js"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/js/md-dagre-4EVJKHTY-BG19s4lC.js","static/js/md-graph-tF8klDvC.js","static/js/md-_baseUniq-CaouebKG.js","static/js/md-layout-FhzIEdmV.js","static/js/md-_basePickBy-BEC9IKhF.js","static/js/md-clone-Cc6Gk5Be.js","static/js/md-c4Diagram-6F5ED5ID-DAgfq_AW.js","static/js/md-chunk-ASOPGD6M-CJv05LUp.js","static/js/md-flowDiagram-7ASYPVHJ-DY8fyx-9.js","static/js/md-chunk-5HRBRIJM-DZZLUrKF.js","static/js/md-channel-CvuT1-A9.js","static/js/md-erDiagram-6RL3IURR-CO0oPig6.js","static/js/md-gitGraphDiagram-NRZ2UAAF-BGJ9QOJm.js","static/js/md-chunk-TMUBEWPD-BMgjwLeC.js","static/js/md-chunk-KFBOBJHC-Cw-7g_Wb.js","static/js/md-gitGraph-YCYPL57B-Da34XlYK.js","static/js/md-ganttDiagram-NTVNEXSI-pWDNUSzQ.js","static/js/md-linear-Co1Vf5c0.js","static/js/md-init-Gi6I4Gst.js","static/js/md-infoDiagram-A4XQUW5V-CKkfwt6-.js","static/js/md-pieDiagram-YF2LJOPJ-BBXxsIEF.js","static/js/md-arc-iggqmto5.js","static/js/md-ordinal-CxVaQH2l.js","static/js/md-quadrantDiagram-OS5C2QUG-Q3DlY2O7.js","static/js/md-xychartDiagram-6QU3TZC5-DhlBqjGC.js","static/js/md-requirementDiagram-MIRIMTAZ-B1wB8i9j.js","static/js/md-sequenceDiagram-G6AWOVSC-CNX-iFIZ.js","static/js/md-classDiagram-LNE6IOMH-C4umT8cQ.js","static/js/md-chunk-T2TOU4HS-Bimvx1kA.js","static/js/md-classDiagram-v2-MQ7JQ4JX-C4umT8cQ.js","static/js/md-stateDiagram-MAYHULR4-B-IB3ZQa.js","static/js/md-chunk-7U56Z5CX-5vmlRDfv.js","static/js/md-stateDiagram-v2-4JROLMXI-CKG0ax-F.js","static/js/md-journeyDiagram-G5WM74LC-CnGpahky.js","static/js/md-timeline-definition-U7ZMHBDA-Mo7FFo8w.js","static/js/md-mindmap-definition-GWI6TPTV-CVyrDhrY.js","static/js/md-cytoscape.esm-CrenbRtv.js","static/js/md-sankeyDiagram-Y46BX6SQ-BNc1s3Kf.js","static/js/md-diagram-QW4FP2JN-CI9G-xCX.js","static/js/md-blockDiagram-ZHA2E4KO-B_JcBI2p.js","static/js/md-architectureDiagram-UYN6MBPD-Bj_3RA8s.js"])))=>i.map(i=>d[i]); var n2=Object.defineProperty;var UC=Ra=>{throw TypeError(Ra)};var i2=(Ra,ed,ud)=>ed in Ra?n2(Ra,ed,{enumerable:!0,configurable:!0,writable:!0,value:ud}):Ra[ed]=ud;var Ig=(Ra,ed,ud)=>i2(Ra,typeof ed!="symbol"?ed+"":ed,ud),a2=(Ra,ed,ud)=>ed.has(Ra)||UC("Cannot "+ud);var jC=(Ra,ed,ud)=>ed.has(Ra)?UC("Cannot add the same private member more than once"):ed instanceof WeakSet?ed.add(Ra):ed.set(Ra,ud);var ZS=(Ra,ed,ud)=>(a2(Ra,ed,"access private method"),ud);(function(){const ed=document.createElement("link").relList;if(ed&&ed.supports&&ed.supports("modulepreload"))return;for(const hd of document.querySelectorAll('link[rel="modulepreload"]'))dd(hd);new MutationObserver(hd=>{for(const md of hd)if(md.type==="childList")for(const gd of md.addedNodes)gd.tagName==="LINK"&&gd.rel==="modulepreload"&&dd(gd)}).observe(document,{childList:!0,subtree:!0});function ud(hd){const md={};return hd.integrity&&(md.integrity=hd.integrity),hd.referrerPolicy&&(md.referrerPolicy=hd.referrerPolicy),hd.crossOrigin==="use-credentials"?md.credentials="include":hd.crossOrigin==="anonymous"?md.credentials="omit":md.credentials="same-origin",md}function dd(hd){if(hd.ep)return;hd.ep=!0;const md=ud(hd);fetch(hd.href,md)}})();const global$1=globalThis||void 0||self;/** * @vue/shared v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors @@ -14,13 +14,13 @@ var n2=Object.defineProperty;var UC=Ra=>{throw TypeError(Ra)};var i2=(Ra,ed,ud)= **/const stack=[];let isWarning=!1;function warn$1(Ra,...ed){if(isWarning)return;isWarning=!0,pauseTracking();const ud=stack.length?stack[stack.length-1].component:null,dd=ud&&ud.appContext.config.warnHandler,hd=getComponentTrace();if(dd)callWithErrorHandling(dd,ud,11,[Ra+ed.map(md=>{var gd,yd;return(yd=(gd=md.toString)==null?void 0:gd.call(md))!=null?yd:JSON.stringify(md)}).join(""),ud&&ud.proxy,hd.map(({vnode:md})=>`at <${formatComponentName(ud,md.type)}>`).join(` `),hd]);else{const md=[`[Vue warn]: ${Ra}`,...ed];hd.length&&md.push(` `,...formatTrace(hd)),console.warn(...md)}resetTracking(),isWarning=!1}function getComponentTrace(){let Ra=stack[stack.length-1];if(!Ra)return[];const ed=[];for(;Ra;){const ud=ed[0];ud&&ud.vnode===Ra?ud.recurseCount++:ed.push({vnode:Ra,recurseCount:0});const dd=Ra.component&&Ra.component.parent;Ra=dd&&dd.vnode}return ed}function formatTrace(Ra){const ed=[];return Ra.forEach((ud,dd)=>{ed.push(...dd===0?[]:[` -`],...formatTraceEntry(ud))}),ed}function formatTraceEntry({vnode:Ra,recurseCount:ed}){const ud=ed>0?`... (${ed} recursive calls)`:"",dd=Ra.component?Ra.component.parent==null:!1,hd=` at <${formatComponentName(Ra.component,Ra.type,dd)}`,md=">"+ud;return Ra.props?[hd,...formatProps(Ra.props),md]:[hd+md]}function formatProps(Ra){const ed=[],ud=Object.keys(Ra);return ud.slice(0,3).forEach(dd=>{ed.push(...formatProp(dd,Ra[dd]))}),ud.length>3&&ed.push(" ..."),ed}function formatProp(Ra,ed,ud){return isString$2(ed)?(ed=JSON.stringify(ed),ud?ed:[`${Ra}=${ed}`]):typeof ed=="number"||typeof ed=="boolean"||ed==null?ud?ed:[`${Ra}=${ed}`]:isRef(ed)?(ed=formatProp(Ra,toRaw(ed.value),!0),ud?ed:[`${Ra}=Ref<`,ed,">"]):isFunction$4(ed)?[`${Ra}=fn${ed.name?`<${ed.name}>`:""}`]:(ed=toRaw(ed),ud?ed:[`${Ra}=`,ed])}function callWithErrorHandling(Ra,ed,ud,dd){try{return dd?Ra(...dd):Ra()}catch(hd){handleError$1(hd,ed,ud)}}function callWithAsyncErrorHandling(Ra,ed,ud,dd){if(isFunction$4(Ra)){const hd=callWithErrorHandling(Ra,ed,ud,dd);return hd&&isPromise(hd)&&hd.catch(md=>{handleError$1(md,ed,ud)}),hd}if(isArray$3(Ra)){const hd=[];for(let md=0;md>>1,hd=queue$2[dd],md=getId(hd);md=getId(ud)?queue$2.push(Ra):queue$2.splice(findInsertionIndex(ed),0,Ra),Ra.flags|=1,queueFlush()}}function queueFlush(){currentFlushPromise||(currentFlushPromise=resolvedPromise.then(flushJobs))}function queuePostFlushCb(Ra){isArray$3(Ra)?pendingPostFlushCbs.push(...Ra):activePostFlushCbs&&Ra.id===-1?activePostFlushCbs.splice(postFlushIndex+1,0,Ra):Ra.flags&1||(pendingPostFlushCbs.push(Ra),Ra.flags|=1),queueFlush()}function flushPreFlushCbs(Ra,ed,ud=flushIndex+1){for(;udgetId(ud)-getId(dd));if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...ed);return}for(activePostFlushCbs=ed,postFlushIndex=0;postFlushIndexRa.id==null?Ra.flags&2?-1:1/0:Ra.id;function flushJobs(Ra){try{for(flushIndex=0;flushIndex{dd._d&&setBlockTracking(-1);const md=setCurrentRenderingInstance(ed);let gd;try{gd=Ra(...hd)}finally{setCurrentRenderingInstance(md),dd._d&&setBlockTracking(1)}return gd};return dd._n=!0,dd._c=!0,dd._d=!0,dd}function withDirectives(Ra,ed){if(currentRenderingInstance===null)return Ra;const ud=getComponentPublicInstance(currentRenderingInstance),dd=Ra.dirs||(Ra.dirs=[]);for(let hd=0;hdRa.__isTeleport,isTeleportDisabled=Ra=>Ra&&(Ra.disabled||Ra.disabled===""),isTeleportDeferred=Ra=>Ra&&(Ra.defer||Ra.defer===""),isTargetSVG=Ra=>typeof SVGElement<"u"&&Ra instanceof SVGElement,isTargetMathML=Ra=>typeof MathMLElement=="function"&&Ra instanceof MathMLElement,resolveTarget=(Ra,ed)=>{const ud=Ra&&Ra.to;return isString$2(ud)?ed?ed(ud):null:ud},TeleportImpl={name:"Teleport",__isTeleport:!0,process(Ra,ed,ud,dd,hd,md,gd,yd,vd,Cd){const{mc:wd,pc:Nd,pbc:Ld,o:{insert:Ud,querySelector:jd,createText:Gd,createComment:Yd}}=Cd,zd=isTeleportDisabled(ed.props);let{shapeFlag:qd,children:Wd,dynamicChildren:Xd}=ed;if(Ra==null){const Jd=ed.el=Gd(""),Zd=ed.anchor=Gd("");Ud(Jd,ud,dd),Ud(Zd,ud,dd);const mf=(_f,vf)=>{qd&16&&(hd&&hd.isCE&&(hd.ce._teleportTarget=_f),wd(Wd,_f,vf,hd,md,gd,yd,vd))},xf=()=>{const _f=ed.target=resolveTarget(ed.props,jd),vf=prepareAnchor(_f,ed,Gd,Ud);_f&&(gd!=="svg"&&isTargetSVG(_f)?gd="svg":gd!=="mathml"&&isTargetMathML(_f)&&(gd="mathml"),zd||(mf(_f,vf),updateCssVars(ed,!1)))};zd&&(mf(ud,Zd),updateCssVars(ed,!0)),isTeleportDeferred(ed.props)?queuePostRenderEffect(()=>{xf(),ed.el.__isMounted=!0},md):xf()}else{if(isTeleportDeferred(ed.props)&&!Ra.el.__isMounted){queuePostRenderEffect(()=>{TeleportImpl.process(Ra,ed,ud,dd,hd,md,gd,yd,vd,Cd),delete Ra.el.__isMounted},md);return}ed.el=Ra.el,ed.targetStart=Ra.targetStart;const Jd=ed.anchor=Ra.anchor,Zd=ed.target=Ra.target,mf=ed.targetAnchor=Ra.targetAnchor,xf=isTeleportDisabled(Ra.props),_f=xf?ud:Zd,vf=xf?Jd:mf;if(gd==="svg"||isTargetSVG(Zd)?gd="svg":(gd==="mathml"||isTargetMathML(Zd))&&(gd="mathml"),Xd?(Ld(Ra.dynamicChildren,Xd,_f,hd,md,gd,yd),traverseStaticChildren(Ra,ed,!0)):vd||Nd(Ra,ed,_f,vf,hd,md,gd,yd,!1),zd)xf?ed.props&&Ra.props&&ed.props.to!==Ra.props.to&&(ed.props.to=Ra.props.to):moveTeleport(ed,ud,Jd,Cd,1);else if((ed.props&&ed.props.to)!==(Ra.props&&Ra.props.to)){const gf=ed.target=resolveTarget(ed.props,jd);gf&&moveTeleport(ed,gf,null,Cd,0)}else xf&&moveTeleport(ed,Zd,mf,Cd,1);updateCssVars(ed,zd)}},remove(Ra,ed,ud,{um:dd,o:{remove:hd}},md){const{shapeFlag:gd,children:yd,anchor:vd,targetStart:Cd,targetAnchor:wd,target:Nd,props:Ld}=Ra;if(Nd&&(hd(Cd),hd(wd)),md&&hd(vd),gd&16){const Ud=md||!isTeleportDisabled(Ld);for(let jd=0;jd{Ra.isMounted=!0}),onBeforeUnmount(()=>{Ra.isUnmounting=!0}),Ra}const TransitionHookValidator=[Function,Array],BaseTransitionPropsValidators={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:TransitionHookValidator,onEnter:TransitionHookValidator,onAfterEnter:TransitionHookValidator,onEnterCancelled:TransitionHookValidator,onBeforeLeave:TransitionHookValidator,onLeave:TransitionHookValidator,onAfterLeave:TransitionHookValidator,onLeaveCancelled:TransitionHookValidator,onBeforeAppear:TransitionHookValidator,onAppear:TransitionHookValidator,onAfterAppear:TransitionHookValidator,onAppearCancelled:TransitionHookValidator},recursiveGetSubtree=Ra=>{const ed=Ra.subTree;return ed.component?recursiveGetSubtree(ed.component):ed},BaseTransitionImpl={name:"BaseTransition",props:BaseTransitionPropsValidators,setup(Ra,{slots:ed}){const ud=getCurrentInstance(),dd=useTransitionState();return()=>{const hd=ed.default&&getTransitionRawChildren(ed.default(),!0);if(!hd||!hd.length)return;const md=findNonCommentChild(hd),gd=toRaw(Ra),{mode:yd}=gd;if(dd.isLeaving)return emptyPlaceholder(md);const vd=getInnerChild$1(md);if(!vd)return emptyPlaceholder(md);let Cd=resolveTransitionHooks(vd,gd,dd,ud,Nd=>Cd=Nd);vd.type!==Comment$2&&setTransitionHooks(vd,Cd);let wd=ud.subTree&&getInnerChild$1(ud.subTree);if(wd&&wd.type!==Comment$2&&!isSameVNodeType(vd,wd)&&recursiveGetSubtree(ud).type!==Comment$2){let Nd=resolveTransitionHooks(wd,gd,dd,ud);if(setTransitionHooks(wd,Nd),yd==="out-in"&&vd.type!==Comment$2)return dd.isLeaving=!0,Nd.afterLeave=()=>{dd.isLeaving=!1,ud.job.flags&8||ud.update(),delete Nd.afterLeave,wd=void 0},emptyPlaceholder(md);yd==="in-out"&&vd.type!==Comment$2?Nd.delayLeave=(Ld,Ud,jd)=>{const Gd=getLeavingNodesForType(dd,wd);Gd[String(wd.key)]=wd,Ld[leaveCbKey]=()=>{Ud(),Ld[leaveCbKey]=void 0,delete Cd.delayedLeave,wd=void 0},Cd.delayedLeave=()=>{jd(),delete Cd.delayedLeave,wd=void 0}}:wd=void 0}else wd&&(wd=void 0);return md}}};function findNonCommentChild(Ra){let ed=Ra[0];if(Ra.length>1){for(const ud of Ra)if(ud.type!==Comment$2){ed=ud;break}}return ed}const BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(Ra,ed){const{leavingVNodes:ud}=Ra;let dd=ud.get(ed.type);return dd||(dd=Object.create(null),ud.set(ed.type,dd)),dd}function resolveTransitionHooks(Ra,ed,ud,dd,hd){const{appear:md,mode:gd,persisted:yd=!1,onBeforeEnter:vd,onEnter:Cd,onAfterEnter:wd,onEnterCancelled:Nd,onBeforeLeave:Ld,onLeave:Ud,onAfterLeave:jd,onLeaveCancelled:Gd,onBeforeAppear:Yd,onAppear:zd,onAfterAppear:qd,onAppearCancelled:Wd}=ed,Xd=String(Ra.key),Jd=getLeavingNodesForType(ud,Ra),Zd=(_f,vf)=>{_f&&callWithAsyncErrorHandling(_f,dd,9,vf)},mf=(_f,vf)=>{const gf=vf[1];Zd(_f,vf),isArray$3(_f)?_f.every(Af=>Af.length<=1)&&gf():_f.length<=1&&gf()},xf={mode:gd,persisted:yd,beforeEnter(_f){let vf=vd;if(!ud.isMounted)if(md)vf=Yd||vd;else return;_f[leaveCbKey]&&_f[leaveCbKey](!0);const gf=Jd[Xd];gf&&isSameVNodeType(Ra,gf)&&gf.el[leaveCbKey]&&gf.el[leaveCbKey](),Zd(vf,[_f])},enter(_f){let vf=Cd,gf=wd,Af=Nd;if(!ud.isMounted)if(md)vf=zd||Cd,gf=qd||wd,Af=Wd||Nd;else return;let Df=!1;const Of=_f[enterCbKey]=Cf=>{Df||(Df=!0,Cf?Zd(Af,[_f]):Zd(gf,[_f]),xf.delayedLeave&&xf.delayedLeave(),_f[enterCbKey]=void 0)};vf?mf(vf,[_f,Of]):Of()},leave(_f,vf){const gf=String(Ra.key);if(_f[enterCbKey]&&_f[enterCbKey](!0),ud.isUnmounting)return vf();Zd(Ld,[_f]);let Af=!1;const Df=_f[leaveCbKey]=Of=>{Af||(Af=!0,vf(),Of?Zd(Gd,[_f]):Zd(jd,[_f]),_f[leaveCbKey]=void 0,Jd[gf]===Ra&&delete Jd[gf])};Jd[gf]=Ra,Ud?mf(Ud,[_f,Df]):Df()},clone(_f){const vf=resolveTransitionHooks(_f,ed,ud,dd,hd);return hd&&hd(vf),vf}};return xf}function emptyPlaceholder(Ra){if(isKeepAlive(Ra))return Ra=cloneVNode(Ra),Ra.children=null,Ra}function getInnerChild$1(Ra){if(!isKeepAlive(Ra))return isTeleport(Ra.type)&&Ra.children?findNonCommentChild(Ra.children):Ra;const{shapeFlag:ed,children:ud}=Ra;if(ud){if(ed&16)return ud[0];if(ed&32&&isFunction$4(ud.default))return ud.default()}}function setTransitionHooks(Ra,ed){Ra.shapeFlag&6&&Ra.component?(Ra.transition=ed,setTransitionHooks(Ra.component.subTree,ed)):Ra.shapeFlag&128?(Ra.ssContent.transition=ed.clone(Ra.ssContent),Ra.ssFallback.transition=ed.clone(Ra.ssFallback)):Ra.transition=ed}function getTransitionRawChildren(Ra,ed=!1,ud){let dd=[],hd=0;for(let md=0;md1)for(let md=0;mdud.value,set:md=>ud.value=md})}return ud}function setRef(Ra,ed,ud,dd,hd=!1){if(isArray$3(Ra)){Ra.forEach((jd,Gd)=>setRef(jd,ed&&(isArray$3(ed)?ed[Gd]:ed),ud,dd,hd));return}if(isAsyncWrapper(dd)&&!hd){dd.shapeFlag&512&&dd.type.__asyncResolved&&dd.component.subTree.component&&setRef(Ra,ed,ud,dd.component.subTree);return}const md=dd.shapeFlag&4?getComponentPublicInstance(dd.component):dd.el,gd=hd?null:md,{i:yd,r:vd}=Ra,Cd=ed&&ed.r,wd=yd.refs===EMPTY_OBJ?yd.refs={}:yd.refs,Nd=yd.setupState,Ld=toRaw(Nd),Ud=Nd===EMPTY_OBJ?()=>!1:jd=>hasOwn$4(Ld,jd);if(Cd!=null&&Cd!==vd&&(isString$2(Cd)?(wd[Cd]=null,Ud(Cd)&&(Nd[Cd]=null)):isRef(Cd)&&(Cd.value=null)),isFunction$4(vd))callWithErrorHandling(vd,yd,12,[gd,wd]);else{const jd=isString$2(vd),Gd=isRef(vd);if(jd||Gd){const Yd=()=>{if(Ra.f){const zd=jd?Ud(vd)?Nd[vd]:wd[vd]:vd.value;hd?isArray$3(zd)&&remove$2(zd,md):isArray$3(zd)?zd.includes(md)||zd.push(md):jd?(wd[vd]=[md],Ud(vd)&&(Nd[vd]=wd[vd])):(vd.value=[md],Ra.k&&(wd[Ra.k]=vd.value))}else jd?(wd[vd]=gd,Ud(vd)&&(Nd[vd]=gd)):Gd&&(vd.value=gd,Ra.k&&(wd[Ra.k]=gd))};gd?(Yd.id=-1,queuePostRenderEffect(Yd,ud)):Yd()}}}getGlobalThis().requestIdleCallback;getGlobalThis().cancelIdleCallback;const isAsyncWrapper=Ra=>!!Ra.type.__asyncLoader,isKeepAlive=Ra=>Ra.type.__isKeepAlive;function onActivated(Ra,ed){registerKeepAliveHook(Ra,"a",ed)}function onDeactivated(Ra,ed){registerKeepAliveHook(Ra,"da",ed)}function registerKeepAliveHook(Ra,ed,ud=currentInstance){const dd=Ra.__wdc||(Ra.__wdc=()=>{let hd=ud;for(;hd;){if(hd.isDeactivated)return;hd=hd.parent}return Ra()});if(injectHook(ed,dd,ud),ud){let hd=ud.parent;for(;hd&&hd.parent;)isKeepAlive(hd.parent.vnode)&&injectToKeepAliveRoot(dd,ed,ud,hd),hd=hd.parent}}function injectToKeepAliveRoot(Ra,ed,ud,dd){const hd=injectHook(ed,Ra,dd,!0);onUnmounted(()=>{remove$2(dd[ed],hd)},ud)}function injectHook(Ra,ed,ud=currentInstance,dd=!1){if(ud){const hd=ud[Ra]||(ud[Ra]=[]),md=ed.__weh||(ed.__weh=(...gd)=>{pauseTracking();const yd=setCurrentInstance(ud),vd=callWithAsyncErrorHandling(ed,ud,Ra,gd);return yd(),resetTracking(),vd});return dd?hd.unshift(md):hd.push(md),md}}const createHook=Ra=>(ed,ud=currentInstance)=>{(!isInSSRComponentSetup||Ra==="sp")&&injectHook(Ra,(...dd)=>ed(...dd),ud)},onBeforeMount=createHook("bm"),onMounted=createHook("m"),onBeforeUpdate=createHook("bu"),onUpdated=createHook("u"),onBeforeUnmount=createHook("bum"),onUnmounted=createHook("um"),onServerPrefetch=createHook("sp"),onRenderTriggered=createHook("rtg"),onRenderTracked=createHook("rtc");function onErrorCaptured(Ra,ed=currentInstance){injectHook("ec",Ra,ed)}const COMPONENTS="components";function resolveComponent(Ra,ed){return resolveAsset(COMPONENTS,Ra,!0,ed)||Ra}const NULL_DYNAMIC_COMPONENT=Symbol.for("v-ndc");function resolveDynamicComponent(Ra){return isString$2(Ra)?resolveAsset(COMPONENTS,Ra,!1)||Ra:Ra||NULL_DYNAMIC_COMPONENT}function resolveAsset(Ra,ed,ud=!0,dd=!1){const hd=currentRenderingInstance||currentInstance;if(hd){const md=hd.type;{const yd=getComponentName(md,!1);if(yd&&(yd===ed||yd===camelize(ed)||yd===capitalize(camelize(ed))))return md}const gd=resolve$1(hd[Ra]||md[Ra],ed)||resolve$1(hd.appContext[Ra],ed);return!gd&&dd?md:gd}}function resolve$1(Ra,ed){return Ra&&(Ra[ed]||Ra[camelize(ed)]||Ra[capitalize(camelize(ed))])}function renderList(Ra,ed,ud,dd){let hd;const md=ud,gd=isArray$3(Ra);if(gd||isString$2(Ra)){const yd=gd&&isReactive(Ra);let vd=!1;yd&&(vd=!isShallow(Ra),Ra=shallowReadArray(Ra)),hd=new Array(Ra.length);for(let Cd=0,wd=Ra.length;Cded(yd,vd,void 0,md));else{const yd=Object.keys(Ra);hd=new Array(yd.length);for(let vd=0,Cd=yd.length;vdisVNode(ed)?!(ed.type===Comment$2||ed.type===Fragment&&!ensureValidVNode(ed.children)):!0)?Ra:null}function toHandlers(Ra,ed){const ud={};for(const dd in Ra)ud[toHandlerKey(dd)]=Ra[dd];return ud}const getPublicInstance=Ra=>Ra?isStatefulComponent(Ra)?getComponentPublicInstance(Ra):getPublicInstance(Ra.parent):null,publicPropertiesMap=extend$4(Object.create(null),{$:Ra=>Ra,$el:Ra=>Ra.vnode.el,$data:Ra=>Ra.data,$props:Ra=>Ra.props,$attrs:Ra=>Ra.attrs,$slots:Ra=>Ra.slots,$refs:Ra=>Ra.refs,$parent:Ra=>getPublicInstance(Ra.parent),$root:Ra=>getPublicInstance(Ra.root),$host:Ra=>Ra.ce,$emit:Ra=>Ra.emit,$options:Ra=>resolveMergedOptions(Ra),$forceUpdate:Ra=>Ra.f||(Ra.f=()=>{queueJob(Ra.update)}),$nextTick:Ra=>Ra.n||(Ra.n=nextTick$1.bind(Ra.proxy)),$watch:Ra=>instanceWatch.bind(Ra)}),hasSetupBinding=(Ra,ed)=>Ra!==EMPTY_OBJ&&!Ra.__isScriptSetup&&hasOwn$4(Ra,ed),PublicInstanceProxyHandlers={get({_:Ra},ed){if(ed==="__v_skip")return!0;const{ctx:ud,setupState:dd,data:hd,props:md,accessCache:gd,type:yd,appContext:vd}=Ra;let Cd;if(ed[0]!=="$"){const Ud=gd[ed];if(Ud!==void 0)switch(Ud){case 1:return dd[ed];case 2:return hd[ed];case 4:return ud[ed];case 3:return md[ed]}else{if(hasSetupBinding(dd,ed))return gd[ed]=1,dd[ed];if(hd!==EMPTY_OBJ&&hasOwn$4(hd,ed))return gd[ed]=2,hd[ed];if((Cd=Ra.propsOptions[0])&&hasOwn$4(Cd,ed))return gd[ed]=3,md[ed];if(ud!==EMPTY_OBJ&&hasOwn$4(ud,ed))return gd[ed]=4,ud[ed];shouldCacheAccess&&(gd[ed]=0)}}const wd=publicPropertiesMap[ed];let Nd,Ld;if(wd)return ed==="$attrs"&&track(Ra.attrs,"get",""),wd(Ra);if((Nd=yd.__cssModules)&&(Nd=Nd[ed]))return Nd;if(ud!==EMPTY_OBJ&&hasOwn$4(ud,ed))return gd[ed]=4,ud[ed];if(Ld=vd.config.globalProperties,hasOwn$4(Ld,ed))return Ld[ed]},set({_:Ra},ed,ud){const{data:dd,setupState:hd,ctx:md}=Ra;return hasSetupBinding(hd,ed)?(hd[ed]=ud,!0):dd!==EMPTY_OBJ&&hasOwn$4(dd,ed)?(dd[ed]=ud,!0):hasOwn$4(Ra.props,ed)||ed[0]==="$"&&ed.slice(1)in Ra?!1:(md[ed]=ud,!0)},has({_:{data:Ra,setupState:ed,accessCache:ud,ctx:dd,appContext:hd,propsOptions:md}},gd){let yd;return!!ud[gd]||Ra!==EMPTY_OBJ&&hasOwn$4(Ra,gd)||hasSetupBinding(ed,gd)||(yd=md[0])&&hasOwn$4(yd,gd)||hasOwn$4(dd,gd)||hasOwn$4(publicPropertiesMap,gd)||hasOwn$4(hd.config.globalProperties,gd)},defineProperty(Ra,ed,ud){return ud.get!=null?Ra._.accessCache[ed]=0:hasOwn$4(ud,"value")&&this.set(Ra,ed,ud.value,null),Reflect.defineProperty(Ra,ed,ud)}};function useSlots(){return getContext().slots}function useAttrs(){return getContext().attrs}function getContext(){const Ra=getCurrentInstance();return Ra.setupContext||(Ra.setupContext=createSetupContext(Ra))}function normalizePropsOrEmits(Ra){return isArray$3(Ra)?Ra.reduce((ed,ud)=>(ed[ud]=null,ed),{}):Ra}function mergeDefaults(Ra,ed){const ud=normalizePropsOrEmits(Ra);for(const dd in ed){if(dd.startsWith("__skip"))continue;let hd=ud[dd];hd?isArray$3(hd)||isFunction$4(hd)?hd=ud[dd]={type:hd,default:ed[dd]}:hd.default=ed[dd]:hd===null&&(hd=ud[dd]={default:ed[dd]}),hd&&ed[`__skip_${dd}`]&&(hd.skipFactory=!0)}return ud}let shouldCacheAccess=!0;function applyOptions(Ra){const ed=resolveMergedOptions(Ra),ud=Ra.proxy,dd=Ra.ctx;shouldCacheAccess=!1,ed.beforeCreate&&callHook$1(ed.beforeCreate,Ra,"bc");const{data:hd,computed:md,methods:gd,watch:yd,provide:vd,inject:Cd,created:wd,beforeMount:Nd,mounted:Ld,beforeUpdate:Ud,updated:jd,activated:Gd,deactivated:Yd,beforeDestroy:zd,beforeUnmount:qd,destroyed:Wd,unmounted:Xd,render:Jd,renderTracked:Zd,renderTriggered:mf,errorCaptured:xf,serverPrefetch:_f,expose:vf,inheritAttrs:gf,components:Af,directives:Df,filters:Of}=ed;if(Cd&&resolveInjections(Cd,dd,null),gd)for(const Ff in gd){const sh=gd[Ff];isFunction$4(sh)&&(dd[Ff]=sh.bind(ud))}if(hd){const Ff=hd.call(ud,ud);isObject$9(Ff)&&(Ra.data=reactive(Ff))}if(shouldCacheAccess=!0,md)for(const Ff in md){const sh=md[Ff],Sh=isFunction$4(sh)?sh.bind(ud,ud):isFunction$4(sh.get)?sh.get.bind(ud,ud):NOOP,yh=!isFunction$4(sh)&&isFunction$4(sh.set)?sh.set.bind(ud):NOOP,Mh=computed({get:Sh,set:yh});Object.defineProperty(dd,Ff,{enumerable:!0,configurable:!0,get:()=>Mh.value,set:lh=>Mh.value=lh})}if(yd)for(const Ff in yd)createWatcher(yd[Ff],dd,ud,Ff);if(vd){const Ff=isFunction$4(vd)?vd.call(ud):vd;Reflect.ownKeys(Ff).forEach(sh=>{provide(sh,Ff[sh])})}wd&&callHook$1(wd,Ra,"c");function If(Ff,sh){isArray$3(sh)?sh.forEach(Sh=>Ff(Sh.bind(ud))):sh&&Ff(sh.bind(ud))}if(If(onBeforeMount,Nd),If(onMounted,Ld),If(onBeforeUpdate,Ud),If(onUpdated,jd),If(onActivated,Gd),If(onDeactivated,Yd),If(onErrorCaptured,xf),If(onRenderTracked,Zd),If(onRenderTriggered,mf),If(onBeforeUnmount,qd),If(onUnmounted,Xd),If(onServerPrefetch,_f),isArray$3(vf))if(vf.length){const Ff=Ra.exposed||(Ra.exposed={});vf.forEach(sh=>{Object.defineProperty(Ff,sh,{get:()=>ud[sh],set:Sh=>ud[sh]=Sh})})}else Ra.exposed||(Ra.exposed={});Jd&&Ra.render===NOOP&&(Ra.render=Jd),gf!=null&&(Ra.inheritAttrs=gf),Af&&(Ra.components=Af),Df&&(Ra.directives=Df),_f&&markAsyncBoundary(Ra)}function resolveInjections(Ra,ed,ud=NOOP){isArray$3(Ra)&&(Ra=normalizeInject(Ra));for(const dd in Ra){const hd=Ra[dd];let md;isObject$9(hd)?"default"in hd?md=inject(hd.from||dd,hd.default,!0):md=inject(hd.from||dd):md=inject(hd),isRef(md)?Object.defineProperty(ed,dd,{enumerable:!0,configurable:!0,get:()=>md.value,set:gd=>md.value=gd}):ed[dd]=md}}function callHook$1(Ra,ed,ud){callWithAsyncErrorHandling(isArray$3(Ra)?Ra.map(dd=>dd.bind(ed.proxy)):Ra.bind(ed.proxy),ed,ud)}function createWatcher(Ra,ed,ud,dd){let hd=dd.includes(".")?createPathGetter(ud,dd):()=>ud[dd];if(isString$2(Ra)){const md=ed[Ra];isFunction$4(md)&&watch(hd,md)}else if(isFunction$4(Ra))watch(hd,Ra.bind(ud));else if(isObject$9(Ra))if(isArray$3(Ra))Ra.forEach(md=>createWatcher(md,ed,ud,dd));else{const md=isFunction$4(Ra.handler)?Ra.handler.bind(ud):ed[Ra.handler];isFunction$4(md)&&watch(hd,md,Ra)}}function resolveMergedOptions(Ra){const ed=Ra.type,{mixins:ud,extends:dd}=ed,{mixins:hd,optionsCache:md,config:{optionMergeStrategies:gd}}=Ra.appContext,yd=md.get(ed);let vd;return yd?vd=yd:!hd.length&&!ud&&!dd?vd=ed:(vd={},hd.length&&hd.forEach(Cd=>mergeOptions(vd,Cd,gd,!0)),mergeOptions(vd,ed,gd)),isObject$9(ed)&&md.set(ed,vd),vd}function mergeOptions(Ra,ed,ud,dd=!1){const{mixins:hd,extends:md}=ed;md&&mergeOptions(Ra,md,ud,!0),hd&&hd.forEach(gd=>mergeOptions(Ra,gd,ud,!0));for(const gd in ed)if(!(dd&&gd==="expose")){const yd=internalOptionMergeStrats[gd]||ud&&ud[gd];Ra[gd]=yd?yd(Ra[gd],ed[gd]):ed[gd]}return Ra}const internalOptionMergeStrats={data:mergeDataFn,props:mergeEmitsOrPropsOptions,emits:mergeEmitsOrPropsOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(Ra,ed){return ed?Ra?function(){return extend$4(isFunction$4(Ra)?Ra.call(this,this):Ra,isFunction$4(ed)?ed.call(this,this):ed)}:ed:Ra}function mergeInject(Ra,ed){return mergeObjectOptions(normalizeInject(Ra),normalizeInject(ed))}function normalizeInject(Ra){if(isArray$3(Ra)){const ed={};for(let ud=0;ud1)return ud&&isFunction$4(ed)?ed.call(dd&&dd.proxy):ed}}function hasInjectionContext(){return!!(currentInstance||currentRenderingInstance||currentApp)}const internalObjectProto={},createInternalObject=()=>Object.create(internalObjectProto),isInternalObject=Ra=>Object.getPrototypeOf(Ra)===internalObjectProto;function initProps(Ra,ed,ud,dd=!1){const hd={},md=createInternalObject();Ra.propsDefaults=Object.create(null),setFullProps(Ra,ed,hd,md);for(const gd in Ra.propsOptions[0])gd in hd||(hd[gd]=void 0);ud?Ra.props=dd?hd:shallowReactive(hd):Ra.type.props?Ra.props=hd:Ra.props=md,Ra.attrs=md}function updateProps(Ra,ed,ud,dd){const{props:hd,attrs:md,vnode:{patchFlag:gd}}=Ra,yd=toRaw(hd),[vd]=Ra.propsOptions;let Cd=!1;if((dd||gd>0)&&!(gd&16)){if(gd&8){const wd=Ra.vnode.dynamicProps;for(let Nd=0;Nd{vd=!0;const[Ld,Ud]=normalizePropsOptions(Nd,ed,!0);extend$4(gd,Ld),Ud&&yd.push(...Ud)};!ud&&ed.mixins.length&&ed.mixins.forEach(wd),Ra.extends&&wd(Ra.extends),Ra.mixins&&Ra.mixins.forEach(wd)}if(!md&&!vd)return isObject$9(Ra)&&dd.set(Ra,EMPTY_ARR),EMPTY_ARR;if(isArray$3(md))for(let wd=0;wdRa[0]==="_"||Ra==="$stable",normalizeSlotValue=Ra=>isArray$3(Ra)?Ra.map(normalizeVNode):[normalizeVNode(Ra)],normalizeSlot=(Ra,ed,ud)=>{if(ed._n)return ed;const dd=withCtx((...hd)=>normalizeSlotValue(ed(...hd)),ud);return dd._c=!1,dd},normalizeObjectSlots=(Ra,ed,ud)=>{const dd=Ra._ctx;for(const hd in Ra){if(isInternalKey(hd))continue;const md=Ra[hd];if(isFunction$4(md))ed[hd]=normalizeSlot(hd,md,dd);else if(md!=null){const gd=normalizeSlotValue(md);ed[hd]=()=>gd}}},normalizeVNodeSlots=(Ra,ed)=>{const ud=normalizeSlotValue(ed);Ra.slots.default=()=>ud},assignSlots=(Ra,ed,ud)=>{for(const dd in ed)(ud||dd!=="_")&&(Ra[dd]=ed[dd])},initSlots=(Ra,ed,ud)=>{const dd=Ra.slots=createInternalObject();if(Ra.vnode.shapeFlag&32){const hd=ed._;hd?(assignSlots(dd,ed,ud),ud&&def$2(dd,"_",hd,!0)):normalizeObjectSlots(ed,dd)}else ed&&normalizeVNodeSlots(Ra,ed)},updateSlots=(Ra,ed,ud)=>{const{vnode:dd,slots:hd}=Ra;let md=!0,gd=EMPTY_OBJ;if(dd.shapeFlag&32){const yd=ed._;yd?ud&&yd===1?md=!1:assignSlots(hd,ed,ud):(md=!ed.$stable,normalizeObjectSlots(ed,hd)),gd=ed}else ed&&(normalizeVNodeSlots(Ra,ed),gd={default:1});if(md)for(const yd in hd)!isInternalKey(yd)&&gd[yd]==null&&delete hd[yd]},queuePostRenderEffect=queueEffectWithSuspense;function createRenderer$1(Ra){return baseCreateRenderer(Ra)}function baseCreateRenderer(Ra,ed){const ud=getGlobalThis();ud.__VUE__=!0;const{insert:dd,remove:hd,patchProp:md,createElement:gd,createText:yd,createComment:vd,setText:Cd,setElementText:wd,parentNode:Nd,nextSibling:Ld,setScopeId:Ud=NOOP,insertStaticContent:jd}=Ra,Gd=(th,oh,Zh,Sm=null,$h=null,Vf=null,nh=void 0,Lh=null,Ih=!!oh.dynamicChildren)=>{if(th===oh)return;th&&!isSameVNodeType(th,oh)&&(Sm=kf(th),lh(th,$h,Vf,!0),th=null),oh.patchFlag===-2&&(Ih=!1,oh.dynamicChildren=null);const{type:om,ref:zh,shapeFlag:Om}=oh;switch(om){case Text$2:Yd(th,oh,Zh,Sm);break;case Comment$2:zd(th,oh,Zh,Sm);break;case Static:th==null&&qd(oh,Zh,Sm,nh);break;case Fragment:Af(th,oh,Zh,Sm,$h,Vf,nh,Lh,Ih);break;default:Om&1?Jd(th,oh,Zh,Sm,$h,Vf,nh,Lh,Ih):Om&6?Df(th,oh,Zh,Sm,$h,Vf,nh,Lh,Ih):(Om&64||Om&128)&&om.process(th,oh,Zh,Sm,$h,Vf,nh,Lh,Ih,Ph)}zh!=null&&$h&&setRef(zh,th&&th.ref,Vf,oh||th,!oh)},Yd=(th,oh,Zh,Sm)=>{if(th==null)dd(oh.el=yd(oh.children),Zh,Sm);else{const $h=oh.el=th.el;oh.children!==th.children&&Cd($h,oh.children)}},zd=(th,oh,Zh,Sm)=>{th==null?dd(oh.el=vd(oh.children||""),Zh,Sm):oh.el=th.el},qd=(th,oh,Zh,Sm)=>{[th.el,th.anchor]=jd(th.children,oh,Zh,Sm,th.el,th.anchor)},Wd=({el:th,anchor:oh},Zh,Sm)=>{let $h;for(;th&&th!==oh;)$h=Ld(th),dd(th,Zh,Sm),th=$h;dd(oh,Zh,Sm)},Xd=({el:th,anchor:oh})=>{let Zh;for(;th&&th!==oh;)Zh=Ld(th),hd(th),th=Zh;hd(oh)},Jd=(th,oh,Zh,Sm,$h,Vf,nh,Lh,Ih)=>{oh.type==="svg"?nh="svg":oh.type==="math"&&(nh="mathml"),th==null?Zd(oh,Zh,Sm,$h,Vf,nh,Lh,Ih):_f(th,oh,$h,Vf,nh,Lh,Ih)},Zd=(th,oh,Zh,Sm,$h,Vf,nh,Lh)=>{let Ih,om;const{props:zh,shapeFlag:Om,transition:Im,dirs:Zm}=th;if(Ih=th.el=gd(th.type,Vf,zh&&zh.is,zh),Om&8?wd(Ih,th.children):Om&16&&xf(th.children,Ih,null,Sm,$h,resolveChildrenNamespace(th,Vf),nh,Lh),Zm&&invokeDirectiveHook(th,null,Sm,"created"),mf(Ih,th,th.scopeId,nh,Sm),zh){for(const Wm in zh)Wm!=="value"&&!isReservedProp(Wm)&&md(Ih,Wm,null,zh[Wm],Vf,Sm);"value"in zh&&md(Ih,"value",null,zh.value,Vf),(om=zh.onVnodeBeforeMount)&&invokeVNodeHook(om,Sm,th)}Zm&&invokeDirectiveHook(th,null,Sm,"beforeMount");const Lm=needTransition($h,Im);Lm&&Im.beforeEnter(Ih),dd(Ih,oh,Zh),((om=zh&&zh.onVnodeMounted)||Lm||Zm)&&queuePostRenderEffect(()=>{om&&invokeVNodeHook(om,Sm,th),Lm&&Im.enter(Ih),Zm&&invokeDirectiveHook(th,null,Sm,"mounted")},$h)},mf=(th,oh,Zh,Sm,$h)=>{if(Zh&&Ud(th,Zh),Sm)for(let Vf=0;Vf{for(let om=Ih;om{const Lh=oh.el=th.el;let{patchFlag:Ih,dynamicChildren:om,dirs:zh}=oh;Ih|=th.patchFlag&16;const Om=th.props||EMPTY_OBJ,Im=oh.props||EMPTY_OBJ;let Zm;if(Zh&&toggleRecurse(Zh,!1),(Zm=Im.onVnodeBeforeUpdate)&&invokeVNodeHook(Zm,Zh,oh,th),zh&&invokeDirectiveHook(oh,th,Zh,"beforeUpdate"),Zh&&toggleRecurse(Zh,!0),(Om.innerHTML&&Im.innerHTML==null||Om.textContent&&Im.textContent==null)&&wd(Lh,""),om?vf(th.dynamicChildren,om,Lh,Zh,Sm,resolveChildrenNamespace(oh,$h),Vf):nh||sh(th,oh,Lh,null,Zh,Sm,resolveChildrenNamespace(oh,$h),Vf,!1),Ih>0){if(Ih&16)gf(Lh,Om,Im,Zh,$h);else if(Ih&2&&Om.class!==Im.class&&md(Lh,"class",null,Im.class,$h),Ih&4&&md(Lh,"style",Om.style,Im.style,$h),Ih&8){const Lm=oh.dynamicProps;for(let Wm=0;Wm{Zm&&invokeVNodeHook(Zm,Zh,oh,th),zh&&invokeDirectiveHook(oh,th,Zh,"updated")},Sm)},vf=(th,oh,Zh,Sm,$h,Vf,nh)=>{for(let Lh=0;Lh{if(oh!==Zh){if(oh!==EMPTY_OBJ)for(const Vf in oh)!isReservedProp(Vf)&&!(Vf in Zh)&&md(th,Vf,oh[Vf],null,$h,Sm);for(const Vf in Zh){if(isReservedProp(Vf))continue;const nh=Zh[Vf],Lh=oh[Vf];nh!==Lh&&Vf!=="value"&&md(th,Vf,Lh,nh,$h,Sm)}"value"in Zh&&md(th,"value",oh.value,Zh.value,$h)}},Af=(th,oh,Zh,Sm,$h,Vf,nh,Lh,Ih)=>{const om=oh.el=th?th.el:yd(""),zh=oh.anchor=th?th.anchor:yd("");let{patchFlag:Om,dynamicChildren:Im,slotScopeIds:Zm}=oh;Zm&&(Lh=Lh?Lh.concat(Zm):Zm),th==null?(dd(om,Zh,Sm),dd(zh,Zh,Sm),xf(oh.children||[],Zh,zh,$h,Vf,nh,Lh,Ih)):Om>0&&Om&64&&Im&&th.dynamicChildren?(vf(th.dynamicChildren,Im,Zh,$h,Vf,nh,Lh),(oh.key!=null||$h&&oh===$h.subTree)&&traverseStaticChildren(th,oh,!0)):sh(th,oh,Zh,zh,$h,Vf,nh,Lh,Ih)},Df=(th,oh,Zh,Sm,$h,Vf,nh,Lh,Ih)=>{oh.slotScopeIds=Lh,th==null?oh.shapeFlag&512?$h.ctx.activate(oh,Zh,Sm,nh,Ih):Of(oh,Zh,Sm,$h,Vf,nh,Ih):Cf(th,oh,Ih)},Of=(th,oh,Zh,Sm,$h,Vf,nh)=>{const Lh=th.component=createComponentInstance(th,Sm,$h);if(isKeepAlive(th)&&(Lh.ctx.renderer=Ph),setupComponent(Lh,!1,nh),Lh.asyncDep){if($h&&$h.registerDep(Lh,If,nh),!th.el){const Ih=Lh.subTree=createVNode(Comment$2);zd(null,Ih,oh,Zh)}}else If(Lh,th,oh,Zh,$h,Vf,nh)},Cf=(th,oh,Zh)=>{const Sm=oh.component=th.component;if(shouldUpdateComponent(th,oh,Zh))if(Sm.asyncDep&&!Sm.asyncResolved){Ff(Sm,oh,Zh);return}else Sm.next=oh,Sm.update();else oh.el=th.el,Sm.vnode=oh},If=(th,oh,Zh,Sm,$h,Vf,nh)=>{const Lh=()=>{if(th.isMounted){let{next:Om,bu:Im,u:Zm,parent:Lm,vnode:Wm}=th;{const $f=locateNonHydratedAsyncRoot(th);if($f){Om&&(Om.el=Wm.el,Ff(th,Om,nh)),$f.asyncDep.then(()=>{th.isUnmounted||Lh()});return}}let ig=Om,yg;toggleRecurse(th,!1),Om?(Om.el=Wm.el,Ff(th,Om,nh)):Om=Wm,Im&&invokeArrayFns(Im),(yg=Om.props&&Om.props.onVnodeBeforeUpdate)&&invokeVNodeHook(yg,Lm,Om,Wm),toggleRecurse(th,!0);const jh=renderComponentRoot(th),Pf=th.subTree;th.subTree=jh,Gd(Pf,jh,Nd(Pf.el),kf(Pf),th,$h,Vf),Om.el=jh.el,ig===null&&updateHOCHostEl(th,jh.el),Zm&&queuePostRenderEffect(Zm,$h),(yg=Om.props&&Om.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(yg,Lm,Om,Wm),$h)}else{let Om;const{el:Im,props:Zm}=oh,{bm:Lm,m:Wm,parent:ig,root:yg,type:jh}=th,Pf=isAsyncWrapper(oh);toggleRecurse(th,!1),Lm&&invokeArrayFns(Lm),!Pf&&(Om=Zm&&Zm.onVnodeBeforeMount)&&invokeVNodeHook(Om,ig,oh),toggleRecurse(th,!0);{yg.ce&&yg.ce._injectChildStyle(jh);const $f=th.subTree=renderComponentRoot(th);Gd(null,$f,Zh,Sm,th,$h,Vf),oh.el=$f.el}if(Wm&&queuePostRenderEffect(Wm,$h),!Pf&&(Om=Zm&&Zm.onVnodeMounted)){const $f=oh;queuePostRenderEffect(()=>invokeVNodeHook(Om,ig,$f),$h)}(oh.shapeFlag&256||ig&&isAsyncWrapper(ig.vnode)&&ig.vnode.shapeFlag&256)&&th.a&&queuePostRenderEffect(th.a,$h),th.isMounted=!0,oh=Zh=Sm=null}};th.scope.on();const Ih=th.effect=new ReactiveEffect(Lh);th.scope.off();const om=th.update=Ih.run.bind(Ih),zh=th.job=Ih.runIfDirty.bind(Ih);zh.i=th,zh.id=th.uid,Ih.scheduler=()=>queueJob(zh),toggleRecurse(th,!0),om()},Ff=(th,oh,Zh)=>{oh.component=th;const Sm=th.vnode.props;th.vnode=oh,th.next=null,updateProps(th,oh.props,Sm,Zh),updateSlots(th,oh.children,Zh),pauseTracking(),flushPreFlushCbs(th),resetTracking()},sh=(th,oh,Zh,Sm,$h,Vf,nh,Lh,Ih=!1)=>{const om=th&&th.children,zh=th?th.shapeFlag:0,Om=oh.children,{patchFlag:Im,shapeFlag:Zm}=oh;if(Im>0){if(Im&128){yh(om,Om,Zh,Sm,$h,Vf,nh,Lh,Ih);return}else if(Im&256){Sh(om,Om,Zh,Sm,$h,Vf,nh,Lh,Ih);return}}Zm&8?(zh&16&&Eh(om,$h,Vf),Om!==om&&wd(Zh,Om)):zh&16?Zm&16?yh(om,Om,Zh,Sm,$h,Vf,nh,Lh,Ih):Eh(om,$h,Vf,!0):(zh&8&&wd(Zh,""),Zm&16&&xf(Om,Zh,Sm,$h,Vf,nh,Lh,Ih))},Sh=(th,oh,Zh,Sm,$h,Vf,nh,Lh,Ih)=>{th=th||EMPTY_ARR,oh=oh||EMPTY_ARR;const om=th.length,zh=oh.length,Om=Math.min(om,zh);let Im;for(Im=0;Imzh?Eh(th,$h,Vf,!0,!1,Om):xf(oh,Zh,Sm,$h,Vf,nh,Lh,Ih,Om)},yh=(th,oh,Zh,Sm,$h,Vf,nh,Lh,Ih)=>{let om=0;const zh=oh.length;let Om=th.length-1,Im=zh-1;for(;om<=Om&&om<=Im;){const Zm=th[om],Lm=oh[om]=Ih?cloneIfMounted(oh[om]):normalizeVNode(oh[om]);if(isSameVNodeType(Zm,Lm))Gd(Zm,Lm,Zh,null,$h,Vf,nh,Lh,Ih);else break;om++}for(;om<=Om&&om<=Im;){const Zm=th[Om],Lm=oh[Im]=Ih?cloneIfMounted(oh[Im]):normalizeVNode(oh[Im]);if(isSameVNodeType(Zm,Lm))Gd(Zm,Lm,Zh,null,$h,Vf,nh,Lh,Ih);else break;Om--,Im--}if(om>Om){if(om<=Im){const Zm=Im+1,Lm=ZmIm)for(;om<=Om;)lh(th[om],$h,Vf,!0),om++;else{const Zm=om,Lm=om,Wm=new Map;for(om=Lm;om<=Im;om++){const _m=oh[om]=Ih?cloneIfMounted(oh[om]):normalizeVNode(oh[om]);_m.key!=null&&Wm.set(_m.key,om)}let ig,yg=0;const jh=Im-Lm+1;let Pf=!1,$f=0;const Nh=new Array(jh);for(om=0;om=jh){lh(_m,$h,Vf,!0);continue}let $m;if(_m.key!=null)$m=Wm.get(_m.key);else for(ig=Lm;ig<=Im;ig++)if(Nh[ig-Lm]===0&&isSameVNodeType(_m,oh[ig])){$m=ig;break}$m===void 0?lh(_m,$h,Vf,!0):(Nh[$m-Lm]=om+1,$m>=$f?$f=$m:Pf=!0,Gd(_m,oh[$m],Zh,null,$h,Vf,nh,Lh,Ih),yg++)}const Wh=Pf?getSequence(Nh):EMPTY_ARR;for(ig=Wh.length-1,om=jh-1;om>=0;om--){const _m=Lm+om,$m=oh[_m],Ym=_m+1{const{el:Vf,type:nh,transition:Lh,children:Ih,shapeFlag:om}=th;if(om&6){Mh(th.component.subTree,oh,Zh,Sm);return}if(om&128){th.suspense.move(oh,Zh,Sm);return}if(om&64){nh.move(th,oh,Zh,Ph);return}if(nh===Fragment){dd(Vf,oh,Zh);for(let Om=0;OmLh.enter(Vf),$h);else{const{leave:Om,delayLeave:Im,afterLeave:Zm}=Lh,Lm=()=>dd(Vf,oh,Zh),Wm=()=>{Om(Vf,()=>{Lm(),Zm&&Zm()})};Im?Im(Vf,Lm,Wm):Wm()}else dd(Vf,oh,Zh)},lh=(th,oh,Zh,Sm=!1,$h=!1)=>{const{type:Vf,props:nh,ref:Lh,children:Ih,dynamicChildren:om,shapeFlag:zh,patchFlag:Om,dirs:Im,cacheIndex:Zm}=th;if(Om===-2&&($h=!1),Lh!=null&&setRef(Lh,null,Zh,th,!0),Zm!=null&&(oh.renderCache[Zm]=void 0),zh&256){oh.ctx.deactivate(th);return}const Lm=zh&1&&Im,Wm=!isAsyncWrapper(th);let ig;if(Wm&&(ig=nh&&nh.onVnodeBeforeUnmount)&&invokeVNodeHook(ig,oh,th),zh&6)xh(th.component,Zh,Sm);else{if(zh&128){th.suspense.unmount(Zh,Sm);return}Lm&&invokeDirectiveHook(th,null,oh,"beforeUnmount"),zh&64?th.type.remove(th,oh,Zh,Ph,Sm):om&&!om.hasOnce&&(Vf!==Fragment||Om>0&&Om&64)?Eh(om,oh,Zh,!1,!0):(Vf===Fragment&&Om&384||!$h&&zh&16)&&Eh(Ih,oh,Zh),Sm&&rh(th)}(Wm&&(ig=nh&&nh.onVnodeUnmounted)||Lm)&&queuePostRenderEffect(()=>{ig&&invokeVNodeHook(ig,oh,th),Lm&&invokeDirectiveHook(th,null,oh,"unmounted")},Zh)},rh=th=>{const{type:oh,el:Zh,anchor:Sm,transition:$h}=th;if(oh===Fragment){mh(Zh,Sm);return}if(oh===Static){Xd(th);return}const Vf=()=>{hd(Zh),$h&&!$h.persisted&&$h.afterLeave&&$h.afterLeave()};if(th.shapeFlag&1&&$h&&!$h.persisted){const{leave:nh,delayLeave:Lh}=$h,Ih=()=>nh(Zh,Vf);Lh?Lh(th.el,Vf,Ih):Ih()}else Vf()},mh=(th,oh)=>{let Zh;for(;th!==oh;)Zh=Ld(th),hd(th),th=Zh;hd(oh)},xh=(th,oh,Zh)=>{const{bum:Sm,scope:$h,job:Vf,subTree:nh,um:Lh,m:Ih,a:om}=th;invalidateMount(Ih),invalidateMount(om),Sm&&invokeArrayFns(Sm),$h.stop(),Vf&&(Vf.flags|=8,lh(nh,th,oh,Zh)),Lh&&queuePostRenderEffect(Lh,oh),queuePostRenderEffect(()=>{th.isUnmounted=!0},oh),oh&&oh.pendingBranch&&!oh.isUnmounted&&th.asyncDep&&!th.asyncResolved&&th.suspenseId===oh.pendingId&&(oh.deps--,oh.deps===0&&oh.resolve())},Eh=(th,oh,Zh,Sm=!1,$h=!1,Vf=0)=>{for(let nh=Vf;nh{if(th.shapeFlag&6)return kf(th.component.subTree);if(th.shapeFlag&128)return th.suspense.next();const oh=Ld(th.anchor||th.el),Zh=oh&&oh[TeleportEndKey];return Zh?Ld(Zh):oh};let Rf=!1;const _h=(th,oh,Zh)=>{th==null?oh._vnode&&lh(oh._vnode,null,null,!0):Gd(oh._vnode||null,th,oh,null,null,null,Zh),oh._vnode=th,Rf||(Rf=!0,flushPreFlushCbs(),flushPostFlushCbs(),Rf=!1)},Ph={p:Gd,um:lh,m:Mh,r:rh,mt:Of,mc:xf,pc:sh,pbc:vf,n:kf,o:Ra};return{render:_h,hydrate:void 0,createApp:createAppAPI(_h)}}function resolveChildrenNamespace({type:Ra,props:ed},ud){return ud==="svg"&&Ra==="foreignObject"||ud==="mathml"&&Ra==="annotation-xml"&&ed&&ed.encoding&&ed.encoding.includes("html")?void 0:ud}function toggleRecurse({effect:Ra,job:ed},ud){ud?(Ra.flags|=32,ed.flags|=4):(Ra.flags&=-33,ed.flags&=-5)}function needTransition(Ra,ed){return(!Ra||Ra&&!Ra.pendingBranch)&&ed&&!ed.persisted}function traverseStaticChildren(Ra,ed,ud=!1){const dd=Ra.children,hd=ed.children;if(isArray$3(dd)&&isArray$3(hd))for(let md=0;md>1,Ra[ud[yd]]0&&(ed[dd]=ud[md-1]),ud[md]=dd)}}for(md=ud.length,gd=ud[md-1];md-- >0;)ud[md]=gd,gd=ed[gd];return ud}function locateNonHydratedAsyncRoot(Ra){const ed=Ra.subTree.component;if(ed)return ed.asyncDep&&!ed.asyncResolved?ed:locateNonHydratedAsyncRoot(ed)}function invalidateMount(Ra){if(Ra)for(let ed=0;edinject(ssrContextKey);function watchEffect(Ra,ed){return doWatch(Ra,null,ed)}function watchPostEffect(Ra,ed){return doWatch(Ra,null,{flush:"post"})}function watch(Ra,ed,ud){return doWatch(Ra,ed,ud)}function doWatch(Ra,ed,ud=EMPTY_OBJ){const{immediate:dd,deep:hd,flush:md,once:gd}=ud,yd=extend$4({},ud),vd=ed&&dd||!ed&&md!=="post";let Cd;if(isInSSRComponentSetup){if(md==="sync"){const Ud=useSSRContext();Cd=Ud.__watcherHandles||(Ud.__watcherHandles=[])}else if(!vd){const Ud=()=>{};return Ud.stop=NOOP,Ud.resume=NOOP,Ud.pause=NOOP,Ud}}const wd=currentInstance;yd.call=(Ud,jd,Gd)=>callWithAsyncErrorHandling(Ud,wd,jd,Gd);let Nd=!1;md==="post"?yd.scheduler=Ud=>{queuePostRenderEffect(Ud,wd&&wd.suspense)}:md!=="sync"&&(Nd=!0,yd.scheduler=(Ud,jd)=>{jd?Ud():queueJob(Ud)}),yd.augmentJob=Ud=>{ed&&(Ud.flags|=4),Nd&&(Ud.flags|=2,wd&&(Ud.id=wd.uid,Ud.i=wd))};const Ld=watch$1(Ra,ed,yd);return isInSSRComponentSetup&&(Cd?Cd.push(Ld):vd&&Ld()),Ld}function instanceWatch(Ra,ed,ud){const dd=this.proxy,hd=isString$2(Ra)?Ra.includes(".")?createPathGetter(dd,Ra):()=>dd[Ra]:Ra.bind(dd,dd);let md;isFunction$4(ed)?md=ed:(md=ed.handler,ud=ed);const gd=setCurrentInstance(this),yd=doWatch(hd,md.bind(dd),ud);return gd(),yd}function createPathGetter(Ra,ed){const ud=ed.split(".");return()=>{let dd=Ra;for(let hd=0;hded==="modelValue"||ed==="model-value"?Ra.modelModifiers:Ra[`${ed}Modifiers`]||Ra[`${camelize(ed)}Modifiers`]||Ra[`${hyphenate(ed)}Modifiers`];function emit(Ra,ed,...ud){if(Ra.isUnmounted)return;const dd=Ra.vnode.props||EMPTY_OBJ;let hd=ud;const md=ed.startsWith("update:"),gd=md&&getModelModifiers(dd,ed.slice(7));gd&&(gd.trim&&(hd=ud.map(wd=>isString$2(wd)?wd.trim():wd)),gd.number&&(hd=ud.map(looseToNumber)));let yd,vd=dd[yd=toHandlerKey(ed)]||dd[yd=toHandlerKey(camelize(ed))];!vd&&md&&(vd=dd[yd=toHandlerKey(hyphenate(ed))]),vd&&callWithAsyncErrorHandling(vd,Ra,6,hd);const Cd=dd[yd+"Once"];if(Cd){if(!Ra.emitted)Ra.emitted={};else if(Ra.emitted[yd])return;Ra.emitted[yd]=!0,callWithAsyncErrorHandling(Cd,Ra,6,hd)}}function normalizeEmitsOptions(Ra,ed,ud=!1){const dd=ed.emitsCache,hd=dd.get(Ra);if(hd!==void 0)return hd;const md=Ra.emits;let gd={},yd=!1;if(!isFunction$4(Ra)){const vd=Cd=>{const wd=normalizeEmitsOptions(Cd,ed,!0);wd&&(yd=!0,extend$4(gd,wd))};!ud&&ed.mixins.length&&ed.mixins.forEach(vd),Ra.extends&&vd(Ra.extends),Ra.mixins&&Ra.mixins.forEach(vd)}return!md&&!yd?(isObject$9(Ra)&&dd.set(Ra,null),null):(isArray$3(md)?md.forEach(vd=>gd[vd]=null):extend$4(gd,md),isObject$9(Ra)&&dd.set(Ra,gd),gd)}function isEmitListener(Ra,ed){return!Ra||!isOn(ed)?!1:(ed=ed.slice(2).replace(/Once$/,""),hasOwn$4(Ra,ed[0].toLowerCase()+ed.slice(1))||hasOwn$4(Ra,hyphenate(ed))||hasOwn$4(Ra,ed))}function markAttrsAccessed(){}function renderComponentRoot(Ra){const{type:ed,vnode:ud,proxy:dd,withProxy:hd,propsOptions:[md],slots:gd,attrs:yd,emit:vd,render:Cd,renderCache:wd,props:Nd,data:Ld,setupState:Ud,ctx:jd,inheritAttrs:Gd}=Ra,Yd=setCurrentRenderingInstance(Ra);let zd,qd;try{if(ud.shapeFlag&4){const Xd=hd||dd,Jd=Xd;zd=normalizeVNode(Cd.call(Jd,Xd,wd,Nd,Ud,Ld,jd)),qd=yd}else{const Xd=ed;zd=normalizeVNode(Xd.length>1?Xd(Nd,{attrs:yd,slots:gd,emit:vd}):Xd(Nd,null)),qd=ed.props?yd:getFunctionalFallthrough(yd)}}catch(Xd){blockStack.length=0,handleError$1(Xd,Ra,1),zd=createVNode(Comment$2)}let Wd=zd;if(qd&&Gd!==!1){const Xd=Object.keys(qd),{shapeFlag:Jd}=Wd;Xd.length&&Jd&7&&(md&&Xd.some(isModelListener)&&(qd=filterModelListeners(qd,md)),Wd=cloneVNode(Wd,qd,!1,!0))}return ud.dirs&&(Wd=cloneVNode(Wd,null,!1,!0),Wd.dirs=Wd.dirs?Wd.dirs.concat(ud.dirs):ud.dirs),ud.transition&&setTransitionHooks(Wd,ud.transition),zd=Wd,setCurrentRenderingInstance(Yd),zd}const getFunctionalFallthrough=Ra=>{let ed;for(const ud in Ra)(ud==="class"||ud==="style"||isOn(ud))&&((ed||(ed={}))[ud]=Ra[ud]);return ed},filterModelListeners=(Ra,ed)=>{const ud={};for(const dd in Ra)(!isModelListener(dd)||!(dd.slice(9)in ed))&&(ud[dd]=Ra[dd]);return ud};function shouldUpdateComponent(Ra,ed,ud){const{props:dd,children:hd,component:md}=Ra,{props:gd,children:yd,patchFlag:vd}=ed,Cd=md.emitsOptions;if(ed.dirs||ed.transition)return!0;if(ud&&vd>=0){if(vd&1024)return!0;if(vd&16)return dd?hasPropsChanged(dd,gd,Cd):!!gd;if(vd&8){const wd=ed.dynamicProps;for(let Nd=0;NdRa.__isSuspense;function queueEffectWithSuspense(Ra,ed){ed&&ed.pendingBranch?isArray$3(Ra)?ed.effects.push(...Ra):ed.effects.push(Ra):queuePostFlushCb(Ra)}const Fragment=Symbol.for("v-fgt"),Text$2=Symbol.for("v-txt"),Comment$2=Symbol.for("v-cmt"),Static=Symbol.for("v-stc"),blockStack=[];let currentBlock=null;function openBlock(Ra=!1){blockStack.push(currentBlock=Ra?null:[])}function closeBlock(){blockStack.pop(),currentBlock=blockStack[blockStack.length-1]||null}let isBlockTreeEnabled=1;function setBlockTracking(Ra,ed=!1){isBlockTreeEnabled+=Ra,Ra<0&¤tBlock&&ed&&(currentBlock.hasOnce=!0)}function setupBlock(Ra){return Ra.dynamicChildren=isBlockTreeEnabled>0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&¤tBlock&¤tBlock.push(Ra),Ra}function createElementBlock(Ra,ed,ud,dd,hd,md){return setupBlock(createBaseVNode(Ra,ed,ud,dd,hd,md,!0))}function createBlock(Ra,ed,ud,dd,hd){return setupBlock(createVNode(Ra,ed,ud,dd,hd,!0))}function isVNode(Ra){return Ra?Ra.__v_isVNode===!0:!1}function isSameVNodeType(Ra,ed){return Ra.type===ed.type&&Ra.key===ed.key}const normalizeKey=({key:Ra})=>Ra??null,normalizeRef=({ref:Ra,ref_key:ed,ref_for:ud})=>(typeof Ra=="number"&&(Ra=""+Ra),Ra!=null?isString$2(Ra)||isRef(Ra)||isFunction$4(Ra)?{i:currentRenderingInstance,r:Ra,k:ed,f:!!ud}:Ra:null);function createBaseVNode(Ra,ed=null,ud=null,dd=0,hd=null,md=Ra===Fragment?0:1,gd=!1,yd=!1){const vd={__v_isVNode:!0,__v_skip:!0,type:Ra,props:ed,key:ed&&normalizeKey(ed),ref:ed&&normalizeRef(ed),scopeId:currentScopeId,slotScopeIds:null,children:ud,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:md,patchFlag:dd,dynamicProps:hd,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return yd?(normalizeChildren$1(vd,ud),md&128&&Ra.normalize(vd)):ud&&(vd.shapeFlag|=isString$2(ud)?8:16),isBlockTreeEnabled>0&&!gd&¤tBlock&&(vd.patchFlag>0||md&6)&&vd.patchFlag!==32&¤tBlock.push(vd),vd}const createVNode=_createVNode;function _createVNode(Ra,ed=null,ud=null,dd=0,hd=null,md=!1){if((!Ra||Ra===NULL_DYNAMIC_COMPONENT)&&(Ra=Comment$2),isVNode(Ra)){const yd=cloneVNode(Ra,ed,!0);return ud&&normalizeChildren$1(yd,ud),isBlockTreeEnabled>0&&!md&¤tBlock&&(yd.shapeFlag&6?currentBlock[currentBlock.indexOf(Ra)]=yd:currentBlock.push(yd)),yd.patchFlag=-2,yd}if(isClassComponent(Ra)&&(Ra=Ra.__vccOpts),ed){ed=guardReactiveProps(ed);let{class:yd,style:vd}=ed;yd&&!isString$2(yd)&&(ed.class=normalizeClass(yd)),isObject$9(vd)&&(isProxy(vd)&&!isArray$3(vd)&&(vd=extend$4({},vd)),ed.style=normalizeStyle(vd))}const gd=isString$2(Ra)?1:isSuspense(Ra)?128:isTeleport(Ra)?64:isObject$9(Ra)?4:isFunction$4(Ra)?2:0;return createBaseVNode(Ra,ed,ud,dd,hd,gd,md,!0)}function guardReactiveProps(Ra){return Ra?isProxy(Ra)||isInternalObject(Ra)?extend$4({},Ra):Ra:null}function cloneVNode(Ra,ed,ud=!1,dd=!1){const{props:hd,ref:md,patchFlag:gd,children:yd,transition:vd}=Ra,Cd=ed?mergeProps(hd||{},ed):hd,wd={__v_isVNode:!0,__v_skip:!0,type:Ra.type,props:Cd,key:Cd&&normalizeKey(Cd),ref:ed&&ed.ref?ud&&md?isArray$3(md)?md.concat(normalizeRef(ed)):[md,normalizeRef(ed)]:normalizeRef(ed):md,scopeId:Ra.scopeId,slotScopeIds:Ra.slotScopeIds,children:yd,target:Ra.target,targetStart:Ra.targetStart,targetAnchor:Ra.targetAnchor,staticCount:Ra.staticCount,shapeFlag:Ra.shapeFlag,patchFlag:ed&&Ra.type!==Fragment?gd===-1?16:gd|16:gd,dynamicProps:Ra.dynamicProps,dynamicChildren:Ra.dynamicChildren,appContext:Ra.appContext,dirs:Ra.dirs,transition:vd,component:Ra.component,suspense:Ra.suspense,ssContent:Ra.ssContent&&cloneVNode(Ra.ssContent),ssFallback:Ra.ssFallback&&cloneVNode(Ra.ssFallback),el:Ra.el,anchor:Ra.anchor,ctx:Ra.ctx,ce:Ra.ce};return vd&&dd&&setTransitionHooks(wd,vd.clone(wd)),wd}function createTextVNode(Ra=" ",ed=0){return createVNode(Text$2,null,Ra,ed)}function createCommentVNode(Ra="",ed=!1){return ed?(openBlock(),createBlock(Comment$2,null,Ra)):createVNode(Comment$2,null,Ra)}function normalizeVNode(Ra){return Ra==null||typeof Ra=="boolean"?createVNode(Comment$2):isArray$3(Ra)?createVNode(Fragment,null,Ra.slice()):isVNode(Ra)?cloneIfMounted(Ra):createVNode(Text$2,null,String(Ra))}function cloneIfMounted(Ra){return Ra.el===null&&Ra.patchFlag!==-1||Ra.memo?Ra:cloneVNode(Ra)}function normalizeChildren$1(Ra,ed){let ud=0;const{shapeFlag:dd}=Ra;if(ed==null)ed=null;else if(isArray$3(ed))ud=16;else if(typeof ed=="object")if(dd&65){const hd=ed.default;hd&&(hd._c&&(hd._d=!1),normalizeChildren$1(Ra,hd()),hd._c&&(hd._d=!0));return}else{ud=32;const hd=ed._;!hd&&!isInternalObject(ed)?ed._ctx=currentRenderingInstance:hd===3&¤tRenderingInstance&&(currentRenderingInstance.slots._===1?ed._=1:(ed._=2,Ra.patchFlag|=1024))}else isFunction$4(ed)?(ed={default:ed,_ctx:currentRenderingInstance},ud=32):(ed=String(ed),dd&64?(ud=16,ed=[createTextVNode(ed)]):ud=8);Ra.children=ed,Ra.shapeFlag|=ud}function mergeProps(...Ra){const ed={};for(let ud=0;udcurrentInstance||currentRenderingInstance;let internalSetCurrentInstance,setInSSRSetupState;{const Ra=getGlobalThis(),ed=(ud,dd)=>{let hd;return(hd=Ra[ud])||(hd=Ra[ud]=[]),hd.push(dd),md=>{hd.length>1?hd.forEach(gd=>gd(md)):hd[0](md)}};internalSetCurrentInstance=ed("__VUE_INSTANCE_SETTERS__",ud=>currentInstance=ud),setInSSRSetupState=ed("__VUE_SSR_SETTERS__",ud=>isInSSRComponentSetup=ud)}const setCurrentInstance=Ra=>{const ed=currentInstance;return internalSetCurrentInstance(Ra),Ra.scope.on(),()=>{Ra.scope.off(),internalSetCurrentInstance(ed)}},unsetCurrentInstance=()=>{currentInstance&¤tInstance.scope.off(),internalSetCurrentInstance(null)};function isStatefulComponent(Ra){return Ra.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;function setupComponent(Ra,ed=!1,ud=!1){ed&&setInSSRSetupState(ed);const{props:dd,children:hd}=Ra.vnode,md=isStatefulComponent(Ra);initProps(Ra,dd,md,ed),initSlots(Ra,hd,ud);const gd=md?setupStatefulComponent(Ra,ed):void 0;return ed&&setInSSRSetupState(!1),gd}function setupStatefulComponent(Ra,ed){const ud=Ra.type;Ra.accessCache=Object.create(null),Ra.proxy=new Proxy(Ra.ctx,PublicInstanceProxyHandlers);const{setup:dd}=ud;if(dd){pauseTracking();const hd=Ra.setupContext=dd.length>1?createSetupContext(Ra):null,md=setCurrentInstance(Ra),gd=callWithErrorHandling(dd,Ra,0,[Ra.props,hd]),yd=isPromise(gd);if(resetTracking(),md(),(yd||Ra.sp)&&!isAsyncWrapper(Ra)&&markAsyncBoundary(Ra),yd){if(gd.then(unsetCurrentInstance,unsetCurrentInstance),ed)return gd.then(vd=>{handleSetupResult(Ra,vd)}).catch(vd=>{handleError$1(vd,Ra,0)});Ra.asyncDep=gd}else handleSetupResult(Ra,gd)}else finishComponentSetup(Ra)}function handleSetupResult(Ra,ed,ud){isFunction$4(ed)?Ra.type.__ssrInlineRender?Ra.ssrRender=ed:Ra.render=ed:isObject$9(ed)&&(Ra.setupState=proxyRefs(ed)),finishComponentSetup(Ra)}function finishComponentSetup(Ra,ed,ud){const dd=Ra.type;Ra.render||(Ra.render=dd.render||NOOP);{const hd=setCurrentInstance(Ra);pauseTracking();try{applyOptions(Ra)}finally{resetTracking(),hd()}}}const attrsProxyHandlers={get(Ra,ed){return track(Ra,"get",""),Ra[ed]}};function createSetupContext(Ra){const ed=ud=>{Ra.exposed=ud||{}};return{attrs:new Proxy(Ra.attrs,attrsProxyHandlers),slots:Ra.slots,emit:Ra.emit,expose:ed}}function getComponentPublicInstance(Ra){return Ra.exposed?Ra.exposeProxy||(Ra.exposeProxy=new Proxy(proxyRefs(markRaw(Ra.exposed)),{get(ed,ud){if(ud in ed)return ed[ud];if(ud in publicPropertiesMap)return publicPropertiesMap[ud](Ra)},has(ed,ud){return ud in ed||ud in publicPropertiesMap}})):Ra.proxy}const classifyRE=/(?:^|[-_])(\w)/g,classify=Ra=>Ra.replace(classifyRE,ed=>ed.toUpperCase()).replace(/[-_]/g,"");function getComponentName(Ra,ed=!0){return isFunction$4(Ra)?Ra.displayName||Ra.name:Ra.name||ed&&Ra.__name}function formatComponentName(Ra,ed,ud=!1){let dd=getComponentName(ed);if(!dd&&ed.__file){const hd=ed.__file.match(/([^/\\]+)\.\w+$/);hd&&(dd=hd[1])}if(!dd&&Ra&&Ra.parent){const hd=md=>{for(const gd in md)if(md[gd]===ed)return gd};dd=hd(Ra.components||Ra.parent.type.components)||hd(Ra.appContext.components)}return dd?classify(dd):ud?"App":"Anonymous"}function isClassComponent(Ra){return isFunction$4(Ra)&&"__vccOpts"in Ra}const computed=(Ra,ed)=>computed$1(Ra,ed,isInSSRComponentSetup);function h$2(Ra,ed,ud){const dd=arguments.length;return dd===2?isObject$9(ed)&&!isArray$3(ed)?isVNode(ed)?createVNode(Ra,null,[ed]):createVNode(Ra,ed):createVNode(Ra,null,ed):(dd>3?ud=Array.prototype.slice.call(arguments,2):dd===3&&isVNode(ud)&&(ud=[ud]),createVNode(Ra,ed,ud))}const version$3="3.5.13";/** +`],...formatTraceEntry(ud))}),ed}function formatTraceEntry({vnode:Ra,recurseCount:ed}){const ud=ed>0?`... (${ed} recursive calls)`:"",dd=Ra.component?Ra.component.parent==null:!1,hd=` at <${formatComponentName(Ra.component,Ra.type,dd)}`,md=">"+ud;return Ra.props?[hd,...formatProps(Ra.props),md]:[hd+md]}function formatProps(Ra){const ed=[],ud=Object.keys(Ra);return ud.slice(0,3).forEach(dd=>{ed.push(...formatProp(dd,Ra[dd]))}),ud.length>3&&ed.push(" ..."),ed}function formatProp(Ra,ed,ud){return isString$2(ed)?(ed=JSON.stringify(ed),ud?ed:[`${Ra}=${ed}`]):typeof ed=="number"||typeof ed=="boolean"||ed==null?ud?ed:[`${Ra}=${ed}`]:isRef(ed)?(ed=formatProp(Ra,toRaw(ed.value),!0),ud?ed:[`${Ra}=Ref<`,ed,">"]):isFunction$4(ed)?[`${Ra}=fn${ed.name?`<${ed.name}>`:""}`]:(ed=toRaw(ed),ud?ed:[`${Ra}=`,ed])}function callWithErrorHandling(Ra,ed,ud,dd){try{return dd?Ra(...dd):Ra()}catch(hd){handleError$1(hd,ed,ud)}}function callWithAsyncErrorHandling(Ra,ed,ud,dd){if(isFunction$4(Ra)){const hd=callWithErrorHandling(Ra,ed,ud,dd);return hd&&isPromise(hd)&&hd.catch(md=>{handleError$1(md,ed,ud)}),hd}if(isArray$3(Ra)){const hd=[];for(let md=0;md>>1,hd=queue$2[dd],md=getId(hd);md=getId(ud)?queue$2.push(Ra):queue$2.splice(findInsertionIndex(ed),0,Ra),Ra.flags|=1,queueFlush()}}function queueFlush(){currentFlushPromise||(currentFlushPromise=resolvedPromise.then(flushJobs))}function queuePostFlushCb(Ra){isArray$3(Ra)?pendingPostFlushCbs.push(...Ra):activePostFlushCbs&&Ra.id===-1?activePostFlushCbs.splice(postFlushIndex+1,0,Ra):Ra.flags&1||(pendingPostFlushCbs.push(Ra),Ra.flags|=1),queueFlush()}function flushPreFlushCbs(Ra,ed,ud=flushIndex+1){for(;udgetId(ud)-getId(dd));if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...ed);return}for(activePostFlushCbs=ed,postFlushIndex=0;postFlushIndexRa.id==null?Ra.flags&2?-1:1/0:Ra.id;function flushJobs(Ra){try{for(flushIndex=0;flushIndex{dd._d&&setBlockTracking(-1);const md=setCurrentRenderingInstance(ed);let gd;try{gd=Ra(...hd)}finally{setCurrentRenderingInstance(md),dd._d&&setBlockTracking(1)}return gd};return dd._n=!0,dd._c=!0,dd._d=!0,dd}function withDirectives(Ra,ed){if(currentRenderingInstance===null)return Ra;const ud=getComponentPublicInstance(currentRenderingInstance),dd=Ra.dirs||(Ra.dirs=[]);for(let hd=0;hdRa.__isTeleport,isTeleportDisabled=Ra=>Ra&&(Ra.disabled||Ra.disabled===""),isTeleportDeferred=Ra=>Ra&&(Ra.defer||Ra.defer===""),isTargetSVG=Ra=>typeof SVGElement<"u"&&Ra instanceof SVGElement,isTargetMathML=Ra=>typeof MathMLElement=="function"&&Ra instanceof MathMLElement,resolveTarget=(Ra,ed)=>{const ud=Ra&&Ra.to;return isString$2(ud)?ed?ed(ud):null:ud},TeleportImpl={name:"Teleport",__isTeleport:!0,process(Ra,ed,ud,dd,hd,md,gd,yd,vd,Cd){const{mc:wd,pc:Nd,pbc:Ld,o:{insert:Ud,querySelector:jd,createText:Gd,createComment:Yd}}=Cd,zd=isTeleportDisabled(ed.props);let{shapeFlag:qd,children:Wd,dynamicChildren:Xd}=ed;if(Ra==null){const Jd=ed.el=Gd(""),Zd=ed.anchor=Gd("");Ud(Jd,ud,dd),Ud(Zd,ud,dd);const mf=(_f,vf)=>{qd&16&&(hd&&hd.isCE&&(hd.ce._teleportTarget=_f),wd(Wd,_f,vf,hd,md,gd,yd,vd))},xf=()=>{const _f=ed.target=resolveTarget(ed.props,jd),vf=prepareAnchor(_f,ed,Gd,Ud);_f&&(gd!=="svg"&&isTargetSVG(_f)?gd="svg":gd!=="mathml"&&isTargetMathML(_f)&&(gd="mathml"),zd||(mf(_f,vf),updateCssVars(ed,!1)))};zd&&(mf(ud,Zd),updateCssVars(ed,!0)),isTeleportDeferred(ed.props)?queuePostRenderEffect(()=>{xf(),ed.el.__isMounted=!0},md):xf()}else{if(isTeleportDeferred(ed.props)&&!Ra.el.__isMounted){queuePostRenderEffect(()=>{TeleportImpl.process(Ra,ed,ud,dd,hd,md,gd,yd,vd,Cd),delete Ra.el.__isMounted},md);return}ed.el=Ra.el,ed.targetStart=Ra.targetStart;const Jd=ed.anchor=Ra.anchor,Zd=ed.target=Ra.target,mf=ed.targetAnchor=Ra.targetAnchor,xf=isTeleportDisabled(Ra.props),_f=xf?ud:Zd,vf=xf?Jd:mf;if(gd==="svg"||isTargetSVG(Zd)?gd="svg":(gd==="mathml"||isTargetMathML(Zd))&&(gd="mathml"),Xd?(Ld(Ra.dynamicChildren,Xd,_f,hd,md,gd,yd),traverseStaticChildren(Ra,ed,!0)):vd||Nd(Ra,ed,_f,vf,hd,md,gd,yd,!1),zd)xf?ed.props&&Ra.props&&ed.props.to!==Ra.props.to&&(ed.props.to=Ra.props.to):moveTeleport(ed,ud,Jd,Cd,1);else if((ed.props&&ed.props.to)!==(Ra.props&&Ra.props.to)){const gf=ed.target=resolveTarget(ed.props,jd);gf&&moveTeleport(ed,gf,null,Cd,0)}else xf&&moveTeleport(ed,Zd,mf,Cd,1);updateCssVars(ed,zd)}},remove(Ra,ed,ud,{um:dd,o:{remove:hd}},md){const{shapeFlag:gd,children:yd,anchor:vd,targetStart:Cd,targetAnchor:wd,target:Nd,props:Ld}=Ra;if(Nd&&(hd(Cd),hd(wd)),md&&hd(vd),gd&16){const Ud=md||!isTeleportDisabled(Ld);for(let jd=0;jd{Ra.isMounted=!0}),onBeforeUnmount(()=>{Ra.isUnmounting=!0}),Ra}const TransitionHookValidator=[Function,Array],BaseTransitionPropsValidators={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:TransitionHookValidator,onEnter:TransitionHookValidator,onAfterEnter:TransitionHookValidator,onEnterCancelled:TransitionHookValidator,onBeforeLeave:TransitionHookValidator,onLeave:TransitionHookValidator,onAfterLeave:TransitionHookValidator,onLeaveCancelled:TransitionHookValidator,onBeforeAppear:TransitionHookValidator,onAppear:TransitionHookValidator,onAfterAppear:TransitionHookValidator,onAppearCancelled:TransitionHookValidator},recursiveGetSubtree=Ra=>{const ed=Ra.subTree;return ed.component?recursiveGetSubtree(ed.component):ed},BaseTransitionImpl={name:"BaseTransition",props:BaseTransitionPropsValidators,setup(Ra,{slots:ed}){const ud=getCurrentInstance(),dd=useTransitionState();return()=>{const hd=ed.default&&getTransitionRawChildren(ed.default(),!0);if(!hd||!hd.length)return;const md=findNonCommentChild(hd),gd=toRaw(Ra),{mode:yd}=gd;if(dd.isLeaving)return emptyPlaceholder(md);const vd=getInnerChild$1(md);if(!vd)return emptyPlaceholder(md);let Cd=resolveTransitionHooks(vd,gd,dd,ud,Nd=>Cd=Nd);vd.type!==Comment$2&&setTransitionHooks(vd,Cd);let wd=ud.subTree&&getInnerChild$1(ud.subTree);if(wd&&wd.type!==Comment$2&&!isSameVNodeType(vd,wd)&&recursiveGetSubtree(ud).type!==Comment$2){let Nd=resolveTransitionHooks(wd,gd,dd,ud);if(setTransitionHooks(wd,Nd),yd==="out-in"&&vd.type!==Comment$2)return dd.isLeaving=!0,Nd.afterLeave=()=>{dd.isLeaving=!1,ud.job.flags&8||ud.update(),delete Nd.afterLeave,wd=void 0},emptyPlaceholder(md);yd==="in-out"&&vd.type!==Comment$2?Nd.delayLeave=(Ld,Ud,jd)=>{const Gd=getLeavingNodesForType(dd,wd);Gd[String(wd.key)]=wd,Ld[leaveCbKey]=()=>{Ud(),Ld[leaveCbKey]=void 0,delete Cd.delayedLeave,wd=void 0},Cd.delayedLeave=()=>{jd(),delete Cd.delayedLeave,wd=void 0}}:wd=void 0}else wd&&(wd=void 0);return md}}};function findNonCommentChild(Ra){let ed=Ra[0];if(Ra.length>1){for(const ud of Ra)if(ud.type!==Comment$2){ed=ud;break}}return ed}const BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(Ra,ed){const{leavingVNodes:ud}=Ra;let dd=ud.get(ed.type);return dd||(dd=Object.create(null),ud.set(ed.type,dd)),dd}function resolveTransitionHooks(Ra,ed,ud,dd,hd){const{appear:md,mode:gd,persisted:yd=!1,onBeforeEnter:vd,onEnter:Cd,onAfterEnter:wd,onEnterCancelled:Nd,onBeforeLeave:Ld,onLeave:Ud,onAfterLeave:jd,onLeaveCancelled:Gd,onBeforeAppear:Yd,onAppear:zd,onAfterAppear:qd,onAppearCancelled:Wd}=ed,Xd=String(Ra.key),Jd=getLeavingNodesForType(ud,Ra),Zd=(_f,vf)=>{_f&&callWithAsyncErrorHandling(_f,dd,9,vf)},mf=(_f,vf)=>{const gf=vf[1];Zd(_f,vf),isArray$3(_f)?_f.every(Af=>Af.length<=1)&&gf():_f.length<=1&&gf()},xf={mode:gd,persisted:yd,beforeEnter(_f){let vf=vd;if(!ud.isMounted)if(md)vf=Yd||vd;else return;_f[leaveCbKey]&&_f[leaveCbKey](!0);const gf=Jd[Xd];gf&&isSameVNodeType(Ra,gf)&&gf.el[leaveCbKey]&&gf.el[leaveCbKey](),Zd(vf,[_f])},enter(_f){let vf=Cd,gf=wd,Af=Nd;if(!ud.isMounted)if(md)vf=zd||Cd,gf=qd||wd,Af=Wd||Nd;else return;let Df=!1;const kf=_f[enterCbKey]=Cf=>{Df||(Df=!0,Cf?Zd(Af,[_f]):Zd(gf,[_f]),xf.delayedLeave&&xf.delayedLeave(),_f[enterCbKey]=void 0)};vf?mf(vf,[_f,kf]):kf()},leave(_f,vf){const gf=String(Ra.key);if(_f[enterCbKey]&&_f[enterCbKey](!0),ud.isUnmounting)return vf();Zd(Ld,[_f]);let Af=!1;const Df=_f[leaveCbKey]=kf=>{Af||(Af=!0,vf(),kf?Zd(Gd,[_f]):Zd(jd,[_f]),_f[leaveCbKey]=void 0,Jd[gf]===Ra&&delete Jd[gf])};Jd[gf]=Ra,Ud?mf(Ud,[_f,Df]):Df()},clone(_f){const vf=resolveTransitionHooks(_f,ed,ud,dd,hd);return hd&&hd(vf),vf}};return xf}function emptyPlaceholder(Ra){if(isKeepAlive(Ra))return Ra=cloneVNode(Ra),Ra.children=null,Ra}function getInnerChild$1(Ra){if(!isKeepAlive(Ra))return isTeleport(Ra.type)&&Ra.children?findNonCommentChild(Ra.children):Ra;const{shapeFlag:ed,children:ud}=Ra;if(ud){if(ed&16)return ud[0];if(ed&32&&isFunction$4(ud.default))return ud.default()}}function setTransitionHooks(Ra,ed){Ra.shapeFlag&6&&Ra.component?(Ra.transition=ed,setTransitionHooks(Ra.component.subTree,ed)):Ra.shapeFlag&128?(Ra.ssContent.transition=ed.clone(Ra.ssContent),Ra.ssFallback.transition=ed.clone(Ra.ssFallback)):Ra.transition=ed}function getTransitionRawChildren(Ra,ed=!1,ud){let dd=[],hd=0;for(let md=0;md1)for(let md=0;mdud.value,set:md=>ud.value=md})}return ud}function setRef(Ra,ed,ud,dd,hd=!1){if(isArray$3(Ra)){Ra.forEach((jd,Gd)=>setRef(jd,ed&&(isArray$3(ed)?ed[Gd]:ed),ud,dd,hd));return}if(isAsyncWrapper(dd)&&!hd){dd.shapeFlag&512&&dd.type.__asyncResolved&&dd.component.subTree.component&&setRef(Ra,ed,ud,dd.component.subTree);return}const md=dd.shapeFlag&4?getComponentPublicInstance(dd.component):dd.el,gd=hd?null:md,{i:yd,r:vd}=Ra,Cd=ed&&ed.r,wd=yd.refs===EMPTY_OBJ?yd.refs={}:yd.refs,Nd=yd.setupState,Ld=toRaw(Nd),Ud=Nd===EMPTY_OBJ?()=>!1:jd=>hasOwn$4(Ld,jd);if(Cd!=null&&Cd!==vd&&(isString$2(Cd)?(wd[Cd]=null,Ud(Cd)&&(Nd[Cd]=null)):isRef(Cd)&&(Cd.value=null)),isFunction$4(vd))callWithErrorHandling(vd,yd,12,[gd,wd]);else{const jd=isString$2(vd),Gd=isRef(vd);if(jd||Gd){const Yd=()=>{if(Ra.f){const zd=jd?Ud(vd)?Nd[vd]:wd[vd]:vd.value;hd?isArray$3(zd)&&remove$2(zd,md):isArray$3(zd)?zd.includes(md)||zd.push(md):jd?(wd[vd]=[md],Ud(vd)&&(Nd[vd]=wd[vd])):(vd.value=[md],Ra.k&&(wd[Ra.k]=vd.value))}else jd?(wd[vd]=gd,Ud(vd)&&(Nd[vd]=gd)):Gd&&(vd.value=gd,Ra.k&&(wd[Ra.k]=gd))};gd?(Yd.id=-1,queuePostRenderEffect(Yd,ud)):Yd()}}}getGlobalThis().requestIdleCallback;getGlobalThis().cancelIdleCallback;const isAsyncWrapper=Ra=>!!Ra.type.__asyncLoader,isKeepAlive=Ra=>Ra.type.__isKeepAlive;function onActivated(Ra,ed){registerKeepAliveHook(Ra,"a",ed)}function onDeactivated(Ra,ed){registerKeepAliveHook(Ra,"da",ed)}function registerKeepAliveHook(Ra,ed,ud=currentInstance){const dd=Ra.__wdc||(Ra.__wdc=()=>{let hd=ud;for(;hd;){if(hd.isDeactivated)return;hd=hd.parent}return Ra()});if(injectHook(ed,dd,ud),ud){let hd=ud.parent;for(;hd&&hd.parent;)isKeepAlive(hd.parent.vnode)&&injectToKeepAliveRoot(dd,ed,ud,hd),hd=hd.parent}}function injectToKeepAliveRoot(Ra,ed,ud,dd){const hd=injectHook(ed,Ra,dd,!0);onUnmounted(()=>{remove$2(dd[ed],hd)},ud)}function injectHook(Ra,ed,ud=currentInstance,dd=!1){if(ud){const hd=ud[Ra]||(ud[Ra]=[]),md=ed.__weh||(ed.__weh=(...gd)=>{pauseTracking();const yd=setCurrentInstance(ud),vd=callWithAsyncErrorHandling(ed,ud,Ra,gd);return yd(),resetTracking(),vd});return dd?hd.unshift(md):hd.push(md),md}}const createHook=Ra=>(ed,ud=currentInstance)=>{(!isInSSRComponentSetup||Ra==="sp")&&injectHook(Ra,(...dd)=>ed(...dd),ud)},onBeforeMount=createHook("bm"),onMounted=createHook("m"),onBeforeUpdate=createHook("bu"),onUpdated=createHook("u"),onBeforeUnmount=createHook("bum"),onUnmounted=createHook("um"),onServerPrefetch=createHook("sp"),onRenderTriggered=createHook("rtg"),onRenderTracked=createHook("rtc");function onErrorCaptured(Ra,ed=currentInstance){injectHook("ec",Ra,ed)}const COMPONENTS="components";function resolveComponent(Ra,ed){return resolveAsset(COMPONENTS,Ra,!0,ed)||Ra}const NULL_DYNAMIC_COMPONENT=Symbol.for("v-ndc");function resolveDynamicComponent(Ra){return isString$2(Ra)?resolveAsset(COMPONENTS,Ra,!1)||Ra:Ra||NULL_DYNAMIC_COMPONENT}function resolveAsset(Ra,ed,ud=!0,dd=!1){const hd=currentRenderingInstance||currentInstance;if(hd){const md=hd.type;{const yd=getComponentName(md,!1);if(yd&&(yd===ed||yd===camelize(ed)||yd===capitalize(camelize(ed))))return md}const gd=resolve$1(hd[Ra]||md[Ra],ed)||resolve$1(hd.appContext[Ra],ed);return!gd&&dd?md:gd}}function resolve$1(Ra,ed){return Ra&&(Ra[ed]||Ra[camelize(ed)]||Ra[capitalize(camelize(ed))])}function renderList(Ra,ed,ud,dd){let hd;const md=ud,gd=isArray$3(Ra);if(gd||isString$2(Ra)){const yd=gd&&isReactive(Ra);let vd=!1;yd&&(vd=!isShallow(Ra),Ra=shallowReadArray(Ra)),hd=new Array(Ra.length);for(let Cd=0,wd=Ra.length;Cded(yd,vd,void 0,md));else{const yd=Object.keys(Ra);hd=new Array(yd.length);for(let vd=0,Cd=yd.length;vdisVNode(ed)?!(ed.type===Comment$2||ed.type===Fragment&&!ensureValidVNode(ed.children)):!0)?Ra:null}function toHandlers(Ra,ed){const ud={};for(const dd in Ra)ud[toHandlerKey(dd)]=Ra[dd];return ud}const getPublicInstance=Ra=>Ra?isStatefulComponent(Ra)?getComponentPublicInstance(Ra):getPublicInstance(Ra.parent):null,publicPropertiesMap=extend$4(Object.create(null),{$:Ra=>Ra,$el:Ra=>Ra.vnode.el,$data:Ra=>Ra.data,$props:Ra=>Ra.props,$attrs:Ra=>Ra.attrs,$slots:Ra=>Ra.slots,$refs:Ra=>Ra.refs,$parent:Ra=>getPublicInstance(Ra.parent),$root:Ra=>getPublicInstance(Ra.root),$host:Ra=>Ra.ce,$emit:Ra=>Ra.emit,$options:Ra=>resolveMergedOptions(Ra),$forceUpdate:Ra=>Ra.f||(Ra.f=()=>{queueJob(Ra.update)}),$nextTick:Ra=>Ra.n||(Ra.n=nextTick$1.bind(Ra.proxy)),$watch:Ra=>instanceWatch.bind(Ra)}),hasSetupBinding=(Ra,ed)=>Ra!==EMPTY_OBJ&&!Ra.__isScriptSetup&&hasOwn$4(Ra,ed),PublicInstanceProxyHandlers={get({_:Ra},ed){if(ed==="__v_skip")return!0;const{ctx:ud,setupState:dd,data:hd,props:md,accessCache:gd,type:yd,appContext:vd}=Ra;let Cd;if(ed[0]!=="$"){const Ud=gd[ed];if(Ud!==void 0)switch(Ud){case 1:return dd[ed];case 2:return hd[ed];case 4:return ud[ed];case 3:return md[ed]}else{if(hasSetupBinding(dd,ed))return gd[ed]=1,dd[ed];if(hd!==EMPTY_OBJ&&hasOwn$4(hd,ed))return gd[ed]=2,hd[ed];if((Cd=Ra.propsOptions[0])&&hasOwn$4(Cd,ed))return gd[ed]=3,md[ed];if(ud!==EMPTY_OBJ&&hasOwn$4(ud,ed))return gd[ed]=4,ud[ed];shouldCacheAccess&&(gd[ed]=0)}}const wd=publicPropertiesMap[ed];let Nd,Ld;if(wd)return ed==="$attrs"&&track(Ra.attrs,"get",""),wd(Ra);if((Nd=yd.__cssModules)&&(Nd=Nd[ed]))return Nd;if(ud!==EMPTY_OBJ&&hasOwn$4(ud,ed))return gd[ed]=4,ud[ed];if(Ld=vd.config.globalProperties,hasOwn$4(Ld,ed))return Ld[ed]},set({_:Ra},ed,ud){const{data:dd,setupState:hd,ctx:md}=Ra;return hasSetupBinding(hd,ed)?(hd[ed]=ud,!0):dd!==EMPTY_OBJ&&hasOwn$4(dd,ed)?(dd[ed]=ud,!0):hasOwn$4(Ra.props,ed)||ed[0]==="$"&&ed.slice(1)in Ra?!1:(md[ed]=ud,!0)},has({_:{data:Ra,setupState:ed,accessCache:ud,ctx:dd,appContext:hd,propsOptions:md}},gd){let yd;return!!ud[gd]||Ra!==EMPTY_OBJ&&hasOwn$4(Ra,gd)||hasSetupBinding(ed,gd)||(yd=md[0])&&hasOwn$4(yd,gd)||hasOwn$4(dd,gd)||hasOwn$4(publicPropertiesMap,gd)||hasOwn$4(hd.config.globalProperties,gd)},defineProperty(Ra,ed,ud){return ud.get!=null?Ra._.accessCache[ed]=0:hasOwn$4(ud,"value")&&this.set(Ra,ed,ud.value,null),Reflect.defineProperty(Ra,ed,ud)}};function useSlots(){return getContext().slots}function useAttrs(){return getContext().attrs}function getContext(){const Ra=getCurrentInstance();return Ra.setupContext||(Ra.setupContext=createSetupContext(Ra))}function normalizePropsOrEmits(Ra){return isArray$3(Ra)?Ra.reduce((ed,ud)=>(ed[ud]=null,ed),{}):Ra}function mergeDefaults(Ra,ed){const ud=normalizePropsOrEmits(Ra);for(const dd in ed){if(dd.startsWith("__skip"))continue;let hd=ud[dd];hd?isArray$3(hd)||isFunction$4(hd)?hd=ud[dd]={type:hd,default:ed[dd]}:hd.default=ed[dd]:hd===null&&(hd=ud[dd]={default:ed[dd]}),hd&&ed[`__skip_${dd}`]&&(hd.skipFactory=!0)}return ud}let shouldCacheAccess=!0;function applyOptions(Ra){const ed=resolveMergedOptions(Ra),ud=Ra.proxy,dd=Ra.ctx;shouldCacheAccess=!1,ed.beforeCreate&&callHook$1(ed.beforeCreate,Ra,"bc");const{data:hd,computed:md,methods:gd,watch:yd,provide:vd,inject:Cd,created:wd,beforeMount:Nd,mounted:Ld,beforeUpdate:Ud,updated:jd,activated:Gd,deactivated:Yd,beforeDestroy:zd,beforeUnmount:qd,destroyed:Wd,unmounted:Xd,render:Jd,renderTracked:Zd,renderTriggered:mf,errorCaptured:xf,serverPrefetch:_f,expose:vf,inheritAttrs:gf,components:Af,directives:Df,filters:kf}=ed;if(Cd&&resolveInjections(Cd,dd,null),gd)for(const Ff in gd){const oh=gd[Ff];isFunction$4(oh)&&(dd[Ff]=oh.bind(ud))}if(hd){const Ff=hd.call(ud,ud);isObject$9(Ff)&&(Ra.data=reactive(Ff))}if(shouldCacheAccess=!0,md)for(const Ff in md){const oh=md[Ff],Eh=isFunction$4(oh)?oh.bind(ud,ud):isFunction$4(oh.get)?oh.get.bind(ud,ud):NOOP,_h=!isFunction$4(oh)&&isFunction$4(oh.set)?oh.set.bind(ud):NOOP,Mh=computed({get:Eh,set:_h});Object.defineProperty(dd,Ff,{enumerable:!0,configurable:!0,get:()=>Mh.value,set:lh=>Mh.value=lh})}if(yd)for(const Ff in yd)createWatcher(yd[Ff],dd,ud,Ff);if(vd){const Ff=isFunction$4(vd)?vd.call(ud):vd;Reflect.ownKeys(Ff).forEach(oh=>{provide(oh,Ff[oh])})}wd&&callHook$1(wd,Ra,"c");function If(Ff,oh){isArray$3(oh)?oh.forEach(Eh=>Ff(Eh.bind(ud))):oh&&Ff(oh.bind(ud))}if(If(onBeforeMount,Nd),If(onMounted,Ld),If(onBeforeUpdate,Ud),If(onUpdated,jd),If(onActivated,Gd),If(onDeactivated,Yd),If(onErrorCaptured,xf),If(onRenderTracked,Zd),If(onRenderTriggered,mf),If(onBeforeUnmount,qd),If(onUnmounted,Xd),If(onServerPrefetch,_f),isArray$3(vf))if(vf.length){const Ff=Ra.exposed||(Ra.exposed={});vf.forEach(oh=>{Object.defineProperty(Ff,oh,{get:()=>ud[oh],set:Eh=>ud[oh]=Eh})})}else Ra.exposed||(Ra.exposed={});Jd&&Ra.render===NOOP&&(Ra.render=Jd),gf!=null&&(Ra.inheritAttrs=gf),Af&&(Ra.components=Af),Df&&(Ra.directives=Df),_f&&markAsyncBoundary(Ra)}function resolveInjections(Ra,ed,ud=NOOP){isArray$3(Ra)&&(Ra=normalizeInject(Ra));for(const dd in Ra){const hd=Ra[dd];let md;isObject$9(hd)?"default"in hd?md=inject(hd.from||dd,hd.default,!0):md=inject(hd.from||dd):md=inject(hd),isRef(md)?Object.defineProperty(ed,dd,{enumerable:!0,configurable:!0,get:()=>md.value,set:gd=>md.value=gd}):ed[dd]=md}}function callHook$1(Ra,ed,ud){callWithAsyncErrorHandling(isArray$3(Ra)?Ra.map(dd=>dd.bind(ed.proxy)):Ra.bind(ed.proxy),ed,ud)}function createWatcher(Ra,ed,ud,dd){let hd=dd.includes(".")?createPathGetter(ud,dd):()=>ud[dd];if(isString$2(Ra)){const md=ed[Ra];isFunction$4(md)&&watch(hd,md)}else if(isFunction$4(Ra))watch(hd,Ra.bind(ud));else if(isObject$9(Ra))if(isArray$3(Ra))Ra.forEach(md=>createWatcher(md,ed,ud,dd));else{const md=isFunction$4(Ra.handler)?Ra.handler.bind(ud):ed[Ra.handler];isFunction$4(md)&&watch(hd,md,Ra)}}function resolveMergedOptions(Ra){const ed=Ra.type,{mixins:ud,extends:dd}=ed,{mixins:hd,optionsCache:md,config:{optionMergeStrategies:gd}}=Ra.appContext,yd=md.get(ed);let vd;return yd?vd=yd:!hd.length&&!ud&&!dd?vd=ed:(vd={},hd.length&&hd.forEach(Cd=>mergeOptions(vd,Cd,gd,!0)),mergeOptions(vd,ed,gd)),isObject$9(ed)&&md.set(ed,vd),vd}function mergeOptions(Ra,ed,ud,dd=!1){const{mixins:hd,extends:md}=ed;md&&mergeOptions(Ra,md,ud,!0),hd&&hd.forEach(gd=>mergeOptions(Ra,gd,ud,!0));for(const gd in ed)if(!(dd&&gd==="expose")){const yd=internalOptionMergeStrats[gd]||ud&&ud[gd];Ra[gd]=yd?yd(Ra[gd],ed[gd]):ed[gd]}return Ra}const internalOptionMergeStrats={data:mergeDataFn,props:mergeEmitsOrPropsOptions,emits:mergeEmitsOrPropsOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(Ra,ed){return ed?Ra?function(){return extend$4(isFunction$4(Ra)?Ra.call(this,this):Ra,isFunction$4(ed)?ed.call(this,this):ed)}:ed:Ra}function mergeInject(Ra,ed){return mergeObjectOptions(normalizeInject(Ra),normalizeInject(ed))}function normalizeInject(Ra){if(isArray$3(Ra)){const ed={};for(let ud=0;ud1)return ud&&isFunction$4(ed)?ed.call(dd&&dd.proxy):ed}}function hasInjectionContext(){return!!(currentInstance||currentRenderingInstance||currentApp)}const internalObjectProto={},createInternalObject=()=>Object.create(internalObjectProto),isInternalObject=Ra=>Object.getPrototypeOf(Ra)===internalObjectProto;function initProps(Ra,ed,ud,dd=!1){const hd={},md=createInternalObject();Ra.propsDefaults=Object.create(null),setFullProps(Ra,ed,hd,md);for(const gd in Ra.propsOptions[0])gd in hd||(hd[gd]=void 0);ud?Ra.props=dd?hd:shallowReactive(hd):Ra.type.props?Ra.props=hd:Ra.props=md,Ra.attrs=md}function updateProps(Ra,ed,ud,dd){const{props:hd,attrs:md,vnode:{patchFlag:gd}}=Ra,yd=toRaw(hd),[vd]=Ra.propsOptions;let Cd=!1;if((dd||gd>0)&&!(gd&16)){if(gd&8){const wd=Ra.vnode.dynamicProps;for(let Nd=0;Nd{vd=!0;const[Ld,Ud]=normalizePropsOptions(Nd,ed,!0);extend$4(gd,Ld),Ud&&yd.push(...Ud)};!ud&&ed.mixins.length&&ed.mixins.forEach(wd),Ra.extends&&wd(Ra.extends),Ra.mixins&&Ra.mixins.forEach(wd)}if(!md&&!vd)return isObject$9(Ra)&&dd.set(Ra,EMPTY_ARR),EMPTY_ARR;if(isArray$3(md))for(let wd=0;wdRa[0]==="_"||Ra==="$stable",normalizeSlotValue=Ra=>isArray$3(Ra)?Ra.map(normalizeVNode):[normalizeVNode(Ra)],normalizeSlot=(Ra,ed,ud)=>{if(ed._n)return ed;const dd=withCtx((...hd)=>normalizeSlotValue(ed(...hd)),ud);return dd._c=!1,dd},normalizeObjectSlots=(Ra,ed,ud)=>{const dd=Ra._ctx;for(const hd in Ra){if(isInternalKey(hd))continue;const md=Ra[hd];if(isFunction$4(md))ed[hd]=normalizeSlot(hd,md,dd);else if(md!=null){const gd=normalizeSlotValue(md);ed[hd]=()=>gd}}},normalizeVNodeSlots=(Ra,ed)=>{const ud=normalizeSlotValue(ed);Ra.slots.default=()=>ud},assignSlots=(Ra,ed,ud)=>{for(const dd in ed)(ud||dd!=="_")&&(Ra[dd]=ed[dd])},initSlots=(Ra,ed,ud)=>{const dd=Ra.slots=createInternalObject();if(Ra.vnode.shapeFlag&32){const hd=ed._;hd?(assignSlots(dd,ed,ud),ud&&def$2(dd,"_",hd,!0)):normalizeObjectSlots(ed,dd)}else ed&&normalizeVNodeSlots(Ra,ed)},updateSlots=(Ra,ed,ud)=>{const{vnode:dd,slots:hd}=Ra;let md=!0,gd=EMPTY_OBJ;if(dd.shapeFlag&32){const yd=ed._;yd?ud&&yd===1?md=!1:assignSlots(hd,ed,ud):(md=!ed.$stable,normalizeObjectSlots(ed,hd)),gd=ed}else ed&&(normalizeVNodeSlots(Ra,ed),gd={default:1});if(md)for(const yd in hd)!isInternalKey(yd)&&gd[yd]==null&&delete hd[yd]},queuePostRenderEffect=queueEffectWithSuspense;function createRenderer$1(Ra){return baseCreateRenderer(Ra)}function baseCreateRenderer(Ra,ed){const ud=getGlobalThis();ud.__VUE__=!0;const{insert:dd,remove:hd,patchProp:md,createElement:gd,createText:yd,createComment:vd,setText:Cd,setElementText:wd,parentNode:Nd,nextSibling:Ld,setScopeId:Ud=NOOP,insertStaticContent:jd}=Ra,Gd=(th,sh,Zh,Sm=null,$h=null,Vf=null,nh=void 0,Lh=null,Ih=!!sh.dynamicChildren)=>{if(th===sh)return;th&&!isSameVNodeType(th,sh)&&(Sm=Of(th),lh(th,$h,Vf,!0),th=null),sh.patchFlag===-2&&(Ih=!1,sh.dynamicChildren=null);const{type:om,ref:zh,shapeFlag:Mm}=sh;switch(om){case Text$2:Yd(th,sh,Zh,Sm);break;case Comment$2:zd(th,sh,Zh,Sm);break;case Static:th==null&&qd(sh,Zh,Sm,nh);break;case Fragment:Af(th,sh,Zh,Sm,$h,Vf,nh,Lh,Ih);break;default:Mm&1?Jd(th,sh,Zh,Sm,$h,Vf,nh,Lh,Ih):Mm&6?Df(th,sh,Zh,Sm,$h,Vf,nh,Lh,Ih):(Mm&64||Mm&128)&&om.process(th,sh,Zh,Sm,$h,Vf,nh,Lh,Ih,Ph)}zh!=null&&$h&&setRef(zh,th&&th.ref,Vf,sh||th,!sh)},Yd=(th,sh,Zh,Sm)=>{if(th==null)dd(sh.el=yd(sh.children),Zh,Sm);else{const $h=sh.el=th.el;sh.children!==th.children&&Cd($h,sh.children)}},zd=(th,sh,Zh,Sm)=>{th==null?dd(sh.el=vd(sh.children||""),Zh,Sm):sh.el=th.el},qd=(th,sh,Zh,Sm)=>{[th.el,th.anchor]=jd(th.children,sh,Zh,Sm,th.el,th.anchor)},Wd=({el:th,anchor:sh},Zh,Sm)=>{let $h;for(;th&&th!==sh;)$h=Ld(th),dd(th,Zh,Sm),th=$h;dd(sh,Zh,Sm)},Xd=({el:th,anchor:sh})=>{let Zh;for(;th&&th!==sh;)Zh=Ld(th),hd(th),th=Zh;hd(sh)},Jd=(th,sh,Zh,Sm,$h,Vf,nh,Lh,Ih)=>{sh.type==="svg"?nh="svg":sh.type==="math"&&(nh="mathml"),th==null?Zd(sh,Zh,Sm,$h,Vf,nh,Lh,Ih):_f(th,sh,$h,Vf,nh,Lh,Ih)},Zd=(th,sh,Zh,Sm,$h,Vf,nh,Lh)=>{let Ih,om;const{props:zh,shapeFlag:Mm,transition:Nm,dirs:Zm}=th;if(Ih=th.el=gd(th.type,Vf,zh&&zh.is,zh),Mm&8?wd(Ih,th.children):Mm&16&&xf(th.children,Ih,null,Sm,$h,resolveChildrenNamespace(th,Vf),nh,Lh),Zm&&invokeDirectiveHook(th,null,Sm,"created"),mf(Ih,th,th.scopeId,nh,Sm),zh){for(const jm in zh)jm!=="value"&&!isReservedProp(jm)&&md(Ih,jm,null,zh[jm],Vf,Sm);"value"in zh&&md(Ih,"value",null,zh.value,Vf),(om=zh.onVnodeBeforeMount)&&invokeVNodeHook(om,Sm,th)}Zm&&invokeDirectiveHook(th,null,Sm,"beforeMount");const Ym=needTransition($h,Nm);Ym&&Nm.beforeEnter(Ih),dd(Ih,sh,Zh),((om=zh&&zh.onVnodeMounted)||Ym||Zm)&&queuePostRenderEffect(()=>{om&&invokeVNodeHook(om,Sm,th),Ym&&Nm.enter(Ih),Zm&&invokeDirectiveHook(th,null,Sm,"mounted")},$h)},mf=(th,sh,Zh,Sm,$h)=>{if(Zh&&Ud(th,Zh),Sm)for(let Vf=0;Vf{for(let om=Ih;om{const Lh=sh.el=th.el;let{patchFlag:Ih,dynamicChildren:om,dirs:zh}=sh;Ih|=th.patchFlag&16;const Mm=th.props||EMPTY_OBJ,Nm=sh.props||EMPTY_OBJ;let Zm;if(Zh&&toggleRecurse(Zh,!1),(Zm=Nm.onVnodeBeforeUpdate)&&invokeVNodeHook(Zm,Zh,sh,th),zh&&invokeDirectiveHook(sh,th,Zh,"beforeUpdate"),Zh&&toggleRecurse(Zh,!0),(Mm.innerHTML&&Nm.innerHTML==null||Mm.textContent&&Nm.textContent==null)&&wd(Lh,""),om?vf(th.dynamicChildren,om,Lh,Zh,Sm,resolveChildrenNamespace(sh,$h),Vf):nh||oh(th,sh,Lh,null,Zh,Sm,resolveChildrenNamespace(sh,$h),Vf,!1),Ih>0){if(Ih&16)gf(Lh,Mm,Nm,Zh,$h);else if(Ih&2&&Mm.class!==Nm.class&&md(Lh,"class",null,Nm.class,$h),Ih&4&&md(Lh,"style",Mm.style,Nm.style,$h),Ih&8){const Ym=sh.dynamicProps;for(let jm=0;jm{Zm&&invokeVNodeHook(Zm,Zh,sh,th),zh&&invokeDirectiveHook(sh,th,Zh,"updated")},Sm)},vf=(th,sh,Zh,Sm,$h,Vf,nh)=>{for(let Lh=0;Lh{if(sh!==Zh){if(sh!==EMPTY_OBJ)for(const Vf in sh)!isReservedProp(Vf)&&!(Vf in Zh)&&md(th,Vf,sh[Vf],null,$h,Sm);for(const Vf in Zh){if(isReservedProp(Vf))continue;const nh=Zh[Vf],Lh=sh[Vf];nh!==Lh&&Vf!=="value"&&md(th,Vf,Lh,nh,$h,Sm)}"value"in Zh&&md(th,"value",sh.value,Zh.value,$h)}},Af=(th,sh,Zh,Sm,$h,Vf,nh,Lh,Ih)=>{const om=sh.el=th?th.el:yd(""),zh=sh.anchor=th?th.anchor:yd("");let{patchFlag:Mm,dynamicChildren:Nm,slotScopeIds:Zm}=sh;Zm&&(Lh=Lh?Lh.concat(Zm):Zm),th==null?(dd(om,Zh,Sm),dd(zh,Zh,Sm),xf(sh.children||[],Zh,zh,$h,Vf,nh,Lh,Ih)):Mm>0&&Mm&64&&Nm&&th.dynamicChildren?(vf(th.dynamicChildren,Nm,Zh,$h,Vf,nh,Lh),(sh.key!=null||$h&&sh===$h.subTree)&&traverseStaticChildren(th,sh,!0)):oh(th,sh,Zh,zh,$h,Vf,nh,Lh,Ih)},Df=(th,sh,Zh,Sm,$h,Vf,nh,Lh,Ih)=>{sh.slotScopeIds=Lh,th==null?sh.shapeFlag&512?$h.ctx.activate(sh,Zh,Sm,nh,Ih):kf(sh,Zh,Sm,$h,Vf,nh,Ih):Cf(th,sh,Ih)},kf=(th,sh,Zh,Sm,$h,Vf,nh)=>{const Lh=th.component=createComponentInstance(th,Sm,$h);if(isKeepAlive(th)&&(Lh.ctx.renderer=Ph),setupComponent(Lh,!1,nh),Lh.asyncDep){if($h&&$h.registerDep(Lh,If,nh),!th.el){const Ih=Lh.subTree=createVNode(Comment$2);zd(null,Ih,sh,Zh)}}else If(Lh,th,sh,Zh,$h,Vf,nh)},Cf=(th,sh,Zh)=>{const Sm=sh.component=th.component;if(shouldUpdateComponent(th,sh,Zh))if(Sm.asyncDep&&!Sm.asyncResolved){Ff(Sm,sh,Zh);return}else Sm.next=sh,Sm.update();else sh.el=th.el,Sm.vnode=sh},If=(th,sh,Zh,Sm,$h,Vf,nh)=>{const Lh=()=>{if(th.isMounted){let{next:Mm,bu:Nm,u:Zm,parent:Ym,vnode:jm}=th;{const $f=locateNonHydratedAsyncRoot(th);if($f){Mm&&(Mm.el=jm.el,Ff(th,Mm,nh)),$f.asyncDep.then(()=>{th.isUnmounted||Lh()});return}}let rg=Mm,pg;toggleRecurse(th,!1),Mm?(Mm.el=jm.el,Ff(th,Mm,nh)):Mm=jm,Nm&&invokeArrayFns(Nm),(pg=Mm.props&&Mm.props.onVnodeBeforeUpdate)&&invokeVNodeHook(pg,Ym,Mm,jm),toggleRecurse(th,!0);const jh=renderComponentRoot(th),Pf=th.subTree;th.subTree=jh,Gd(Pf,jh,Nd(Pf.el),Of(Pf),th,$h,Vf),Mm.el=jh.el,rg===null&&updateHOCHostEl(th,jh.el),Zm&&queuePostRenderEffect(Zm,$h),(pg=Mm.props&&Mm.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(pg,Ym,Mm,jm),$h)}else{let Mm;const{el:Nm,props:Zm}=sh,{bm:Ym,m:jm,parent:rg,root:pg,type:jh}=th,Pf=isAsyncWrapper(sh);toggleRecurse(th,!1),Ym&&invokeArrayFns(Ym),!Pf&&(Mm=Zm&&Zm.onVnodeBeforeMount)&&invokeVNodeHook(Mm,rg,sh),toggleRecurse(th,!0);{pg.ce&&pg.ce._injectChildStyle(jh);const $f=th.subTree=renderComponentRoot(th);Gd(null,$f,Zh,Sm,th,$h,Vf),sh.el=$f.el}if(jm&&queuePostRenderEffect(jm,$h),!Pf&&(Mm=Zm&&Zm.onVnodeMounted)){const $f=sh;queuePostRenderEffect(()=>invokeVNodeHook(Mm,rg,$f),$h)}(sh.shapeFlag&256||rg&&isAsyncWrapper(rg.vnode)&&rg.vnode.shapeFlag&256)&&th.a&&queuePostRenderEffect(th.a,$h),th.isMounted=!0,sh=Zh=Sm=null}};th.scope.on();const Ih=th.effect=new ReactiveEffect(Lh);th.scope.off();const om=th.update=Ih.run.bind(Ih),zh=th.job=Ih.runIfDirty.bind(Ih);zh.i=th,zh.id=th.uid,Ih.scheduler=()=>queueJob(zh),toggleRecurse(th,!0),om()},Ff=(th,sh,Zh)=>{sh.component=th;const Sm=th.vnode.props;th.vnode=sh,th.next=null,updateProps(th,sh.props,Sm,Zh),updateSlots(th,sh.children,Zh),pauseTracking(),flushPreFlushCbs(th),resetTracking()},oh=(th,sh,Zh,Sm,$h,Vf,nh,Lh,Ih=!1)=>{const om=th&&th.children,zh=th?th.shapeFlag:0,Mm=sh.children,{patchFlag:Nm,shapeFlag:Zm}=sh;if(Nm>0){if(Nm&128){_h(om,Mm,Zh,Sm,$h,Vf,nh,Lh,Ih);return}else if(Nm&256){Eh(om,Mm,Zh,Sm,$h,Vf,nh,Lh,Ih);return}}Zm&8?(zh&16&&Sh(om,$h,Vf),Mm!==om&&wd(Zh,Mm)):zh&16?Zm&16?_h(om,Mm,Zh,Sm,$h,Vf,nh,Lh,Ih):Sh(om,$h,Vf,!0):(zh&8&&wd(Zh,""),Zm&16&&xf(Mm,Zh,Sm,$h,Vf,nh,Lh,Ih))},Eh=(th,sh,Zh,Sm,$h,Vf,nh,Lh,Ih)=>{th=th||EMPTY_ARR,sh=sh||EMPTY_ARR;const om=th.length,zh=sh.length,Mm=Math.min(om,zh);let Nm;for(Nm=0;Nmzh?Sh(th,$h,Vf,!0,!1,Mm):xf(sh,Zh,Sm,$h,Vf,nh,Lh,Ih,Mm)},_h=(th,sh,Zh,Sm,$h,Vf,nh,Lh,Ih)=>{let om=0;const zh=sh.length;let Mm=th.length-1,Nm=zh-1;for(;om<=Mm&&om<=Nm;){const Zm=th[om],Ym=sh[om]=Ih?cloneIfMounted(sh[om]):normalizeVNode(sh[om]);if(isSameVNodeType(Zm,Ym))Gd(Zm,Ym,Zh,null,$h,Vf,nh,Lh,Ih);else break;om++}for(;om<=Mm&&om<=Nm;){const Zm=th[Mm],Ym=sh[Nm]=Ih?cloneIfMounted(sh[Nm]):normalizeVNode(sh[Nm]);if(isSameVNodeType(Zm,Ym))Gd(Zm,Ym,Zh,null,$h,Vf,nh,Lh,Ih);else break;Mm--,Nm--}if(om>Mm){if(om<=Nm){const Zm=Nm+1,Ym=ZmNm)for(;om<=Mm;)lh(th[om],$h,Vf,!0),om++;else{const Zm=om,Ym=om,jm=new Map;for(om=Ym;om<=Nm;om++){const _m=sh[om]=Ih?cloneIfMounted(sh[om]):normalizeVNode(sh[om]);_m.key!=null&&jm.set(_m.key,om)}let rg,pg=0;const jh=Nm-Ym+1;let Pf=!1,$f=0;const Nh=new Array(jh);for(om=0;om=jh){lh(_m,$h,Vf,!0);continue}let Om;if(_m.key!=null)Om=jm.get(_m.key);else for(rg=Ym;rg<=Nm;rg++)if(Nh[rg-Ym]===0&&isSameVNodeType(_m,sh[rg])){Om=rg;break}Om===void 0?lh(_m,$h,Vf,!0):(Nh[Om-Ym]=om+1,Om>=$f?$f=Om:Pf=!0,Gd(_m,sh[Om],Zh,null,$h,Vf,nh,Lh,Ih),pg++)}const Wh=Pf?getSequence(Nh):EMPTY_ARR;for(rg=Wh.length-1,om=jh-1;om>=0;om--){const _m=Ym+om,Om=sh[_m],Wm=_m+1{const{el:Vf,type:nh,transition:Lh,children:Ih,shapeFlag:om}=th;if(om&6){Mh(th.component.subTree,sh,Zh,Sm);return}if(om&128){th.suspense.move(sh,Zh,Sm);return}if(om&64){nh.move(th,sh,Zh,Ph);return}if(nh===Fragment){dd(Vf,sh,Zh);for(let Mm=0;MmLh.enter(Vf),$h);else{const{leave:Mm,delayLeave:Nm,afterLeave:Zm}=Lh,Ym=()=>dd(Vf,sh,Zh),jm=()=>{Mm(Vf,()=>{Ym(),Zm&&Zm()})};Nm?Nm(Vf,Ym,jm):jm()}else dd(Vf,sh,Zh)},lh=(th,sh,Zh,Sm=!1,$h=!1)=>{const{type:Vf,props:nh,ref:Lh,children:Ih,dynamicChildren:om,shapeFlag:zh,patchFlag:Mm,dirs:Nm,cacheIndex:Zm}=th;if(Mm===-2&&($h=!1),Lh!=null&&setRef(Lh,null,Zh,th,!0),Zm!=null&&(sh.renderCache[Zm]=void 0),zh&256){sh.ctx.deactivate(th);return}const Ym=zh&1&&Nm,jm=!isAsyncWrapper(th);let rg;if(jm&&(rg=nh&&nh.onVnodeBeforeUnmount)&&invokeVNodeHook(rg,sh,th),zh&6)xh(th.component,Zh,Sm);else{if(zh&128){th.suspense.unmount(Zh,Sm);return}Ym&&invokeDirectiveHook(th,null,sh,"beforeUnmount"),zh&64?th.type.remove(th,sh,Zh,Ph,Sm):om&&!om.hasOnce&&(Vf!==Fragment||Mm>0&&Mm&64)?Sh(om,sh,Zh,!1,!0):(Vf===Fragment&&Mm&384||!$h&&zh&16)&&Sh(Ih,sh,Zh),Sm&&rh(th)}(jm&&(rg=nh&&nh.onVnodeUnmounted)||Ym)&&queuePostRenderEffect(()=>{rg&&invokeVNodeHook(rg,sh,th),Ym&&invokeDirectiveHook(th,null,sh,"unmounted")},Zh)},rh=th=>{const{type:sh,el:Zh,anchor:Sm,transition:$h}=th;if(sh===Fragment){mh(Zh,Sm);return}if(sh===Static){Xd(th);return}const Vf=()=>{hd(Zh),$h&&!$h.persisted&&$h.afterLeave&&$h.afterLeave()};if(th.shapeFlag&1&&$h&&!$h.persisted){const{leave:nh,delayLeave:Lh}=$h,Ih=()=>nh(Zh,Vf);Lh?Lh(th.el,Vf,Ih):Ih()}else Vf()},mh=(th,sh)=>{let Zh;for(;th!==sh;)Zh=Ld(th),hd(th),th=Zh;hd(sh)},xh=(th,sh,Zh)=>{const{bum:Sm,scope:$h,job:Vf,subTree:nh,um:Lh,m:Ih,a:om}=th;invalidateMount(Ih),invalidateMount(om),Sm&&invokeArrayFns(Sm),$h.stop(),Vf&&(Vf.flags|=8,lh(nh,th,sh,Zh)),Lh&&queuePostRenderEffect(Lh,sh),queuePostRenderEffect(()=>{th.isUnmounted=!0},sh),sh&&sh.pendingBranch&&!sh.isUnmounted&&th.asyncDep&&!th.asyncResolved&&th.suspenseId===sh.pendingId&&(sh.deps--,sh.deps===0&&sh.resolve())},Sh=(th,sh,Zh,Sm=!1,$h=!1,Vf=0)=>{for(let nh=Vf;nh{if(th.shapeFlag&6)return Of(th.component.subTree);if(th.shapeFlag&128)return th.suspense.next();const sh=Ld(th.anchor||th.el),Zh=sh&&sh[TeleportEndKey];return Zh?Ld(Zh):sh};let Rf=!1;const yh=(th,sh,Zh)=>{th==null?sh._vnode&&lh(sh._vnode,null,null,!0):Gd(sh._vnode||null,th,sh,null,null,null,Zh),sh._vnode=th,Rf||(Rf=!0,flushPreFlushCbs(),flushPostFlushCbs(),Rf=!1)},Ph={p:Gd,um:lh,m:Mh,r:rh,mt:kf,mc:xf,pc:oh,pbc:vf,n:Of,o:Ra};return{render:yh,hydrate:void 0,createApp:createAppAPI(yh)}}function resolveChildrenNamespace({type:Ra,props:ed},ud){return ud==="svg"&&Ra==="foreignObject"||ud==="mathml"&&Ra==="annotation-xml"&&ed&&ed.encoding&&ed.encoding.includes("html")?void 0:ud}function toggleRecurse({effect:Ra,job:ed},ud){ud?(Ra.flags|=32,ed.flags|=4):(Ra.flags&=-33,ed.flags&=-5)}function needTransition(Ra,ed){return(!Ra||Ra&&!Ra.pendingBranch)&&ed&&!ed.persisted}function traverseStaticChildren(Ra,ed,ud=!1){const dd=Ra.children,hd=ed.children;if(isArray$3(dd)&&isArray$3(hd))for(let md=0;md>1,Ra[ud[yd]]0&&(ed[dd]=ud[md-1]),ud[md]=dd)}}for(md=ud.length,gd=ud[md-1];md-- >0;)ud[md]=gd,gd=ed[gd];return ud}function locateNonHydratedAsyncRoot(Ra){const ed=Ra.subTree.component;if(ed)return ed.asyncDep&&!ed.asyncResolved?ed:locateNonHydratedAsyncRoot(ed)}function invalidateMount(Ra){if(Ra)for(let ed=0;edinject(ssrContextKey);function watchEffect(Ra,ed){return doWatch(Ra,null,ed)}function watchPostEffect(Ra,ed){return doWatch(Ra,null,{flush:"post"})}function watch(Ra,ed,ud){return doWatch(Ra,ed,ud)}function doWatch(Ra,ed,ud=EMPTY_OBJ){const{immediate:dd,deep:hd,flush:md,once:gd}=ud,yd=extend$4({},ud),vd=ed&&dd||!ed&&md!=="post";let Cd;if(isInSSRComponentSetup){if(md==="sync"){const Ud=useSSRContext();Cd=Ud.__watcherHandles||(Ud.__watcherHandles=[])}else if(!vd){const Ud=()=>{};return Ud.stop=NOOP,Ud.resume=NOOP,Ud.pause=NOOP,Ud}}const wd=currentInstance;yd.call=(Ud,jd,Gd)=>callWithAsyncErrorHandling(Ud,wd,jd,Gd);let Nd=!1;md==="post"?yd.scheduler=Ud=>{queuePostRenderEffect(Ud,wd&&wd.suspense)}:md!=="sync"&&(Nd=!0,yd.scheduler=(Ud,jd)=>{jd?Ud():queueJob(Ud)}),yd.augmentJob=Ud=>{ed&&(Ud.flags|=4),Nd&&(Ud.flags|=2,wd&&(Ud.id=wd.uid,Ud.i=wd))};const Ld=watch$1(Ra,ed,yd);return isInSSRComponentSetup&&(Cd?Cd.push(Ld):vd&&Ld()),Ld}function instanceWatch(Ra,ed,ud){const dd=this.proxy,hd=isString$2(Ra)?Ra.includes(".")?createPathGetter(dd,Ra):()=>dd[Ra]:Ra.bind(dd,dd);let md;isFunction$4(ed)?md=ed:(md=ed.handler,ud=ed);const gd=setCurrentInstance(this),yd=doWatch(hd,md.bind(dd),ud);return gd(),yd}function createPathGetter(Ra,ed){const ud=ed.split(".");return()=>{let dd=Ra;for(let hd=0;hded==="modelValue"||ed==="model-value"?Ra.modelModifiers:Ra[`${ed}Modifiers`]||Ra[`${camelize(ed)}Modifiers`]||Ra[`${hyphenate(ed)}Modifiers`];function emit(Ra,ed,...ud){if(Ra.isUnmounted)return;const dd=Ra.vnode.props||EMPTY_OBJ;let hd=ud;const md=ed.startsWith("update:"),gd=md&&getModelModifiers(dd,ed.slice(7));gd&&(gd.trim&&(hd=ud.map(wd=>isString$2(wd)?wd.trim():wd)),gd.number&&(hd=ud.map(looseToNumber)));let yd,vd=dd[yd=toHandlerKey(ed)]||dd[yd=toHandlerKey(camelize(ed))];!vd&&md&&(vd=dd[yd=toHandlerKey(hyphenate(ed))]),vd&&callWithAsyncErrorHandling(vd,Ra,6,hd);const Cd=dd[yd+"Once"];if(Cd){if(!Ra.emitted)Ra.emitted={};else if(Ra.emitted[yd])return;Ra.emitted[yd]=!0,callWithAsyncErrorHandling(Cd,Ra,6,hd)}}function normalizeEmitsOptions(Ra,ed,ud=!1){const dd=ed.emitsCache,hd=dd.get(Ra);if(hd!==void 0)return hd;const md=Ra.emits;let gd={},yd=!1;if(!isFunction$4(Ra)){const vd=Cd=>{const wd=normalizeEmitsOptions(Cd,ed,!0);wd&&(yd=!0,extend$4(gd,wd))};!ud&&ed.mixins.length&&ed.mixins.forEach(vd),Ra.extends&&vd(Ra.extends),Ra.mixins&&Ra.mixins.forEach(vd)}return!md&&!yd?(isObject$9(Ra)&&dd.set(Ra,null),null):(isArray$3(md)?md.forEach(vd=>gd[vd]=null):extend$4(gd,md),isObject$9(Ra)&&dd.set(Ra,gd),gd)}function isEmitListener(Ra,ed){return!Ra||!isOn(ed)?!1:(ed=ed.slice(2).replace(/Once$/,""),hasOwn$4(Ra,ed[0].toLowerCase()+ed.slice(1))||hasOwn$4(Ra,hyphenate(ed))||hasOwn$4(Ra,ed))}function markAttrsAccessed(){}function renderComponentRoot(Ra){const{type:ed,vnode:ud,proxy:dd,withProxy:hd,propsOptions:[md],slots:gd,attrs:yd,emit:vd,render:Cd,renderCache:wd,props:Nd,data:Ld,setupState:Ud,ctx:jd,inheritAttrs:Gd}=Ra,Yd=setCurrentRenderingInstance(Ra);let zd,qd;try{if(ud.shapeFlag&4){const Xd=hd||dd,Jd=Xd;zd=normalizeVNode(Cd.call(Jd,Xd,wd,Nd,Ud,Ld,jd)),qd=yd}else{const Xd=ed;zd=normalizeVNode(Xd.length>1?Xd(Nd,{attrs:yd,slots:gd,emit:vd}):Xd(Nd,null)),qd=ed.props?yd:getFunctionalFallthrough(yd)}}catch(Xd){blockStack.length=0,handleError$1(Xd,Ra,1),zd=createVNode(Comment$2)}let Wd=zd;if(qd&&Gd!==!1){const Xd=Object.keys(qd),{shapeFlag:Jd}=Wd;Xd.length&&Jd&7&&(md&&Xd.some(isModelListener)&&(qd=filterModelListeners(qd,md)),Wd=cloneVNode(Wd,qd,!1,!0))}return ud.dirs&&(Wd=cloneVNode(Wd,null,!1,!0),Wd.dirs=Wd.dirs?Wd.dirs.concat(ud.dirs):ud.dirs),ud.transition&&setTransitionHooks(Wd,ud.transition),zd=Wd,setCurrentRenderingInstance(Yd),zd}const getFunctionalFallthrough=Ra=>{let ed;for(const ud in Ra)(ud==="class"||ud==="style"||isOn(ud))&&((ed||(ed={}))[ud]=Ra[ud]);return ed},filterModelListeners=(Ra,ed)=>{const ud={};for(const dd in Ra)(!isModelListener(dd)||!(dd.slice(9)in ed))&&(ud[dd]=Ra[dd]);return ud};function shouldUpdateComponent(Ra,ed,ud){const{props:dd,children:hd,component:md}=Ra,{props:gd,children:yd,patchFlag:vd}=ed,Cd=md.emitsOptions;if(ed.dirs||ed.transition)return!0;if(ud&&vd>=0){if(vd&1024)return!0;if(vd&16)return dd?hasPropsChanged(dd,gd,Cd):!!gd;if(vd&8){const wd=ed.dynamicProps;for(let Nd=0;NdRa.__isSuspense;function queueEffectWithSuspense(Ra,ed){ed&&ed.pendingBranch?isArray$3(Ra)?ed.effects.push(...Ra):ed.effects.push(Ra):queuePostFlushCb(Ra)}const Fragment=Symbol.for("v-fgt"),Text$2=Symbol.for("v-txt"),Comment$2=Symbol.for("v-cmt"),Static=Symbol.for("v-stc"),blockStack=[];let currentBlock=null;function openBlock(Ra=!1){blockStack.push(currentBlock=Ra?null:[])}function closeBlock(){blockStack.pop(),currentBlock=blockStack[blockStack.length-1]||null}let isBlockTreeEnabled=1;function setBlockTracking(Ra,ed=!1){isBlockTreeEnabled+=Ra,Ra<0&¤tBlock&&ed&&(currentBlock.hasOnce=!0)}function setupBlock(Ra){return Ra.dynamicChildren=isBlockTreeEnabled>0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&¤tBlock&¤tBlock.push(Ra),Ra}function createElementBlock(Ra,ed,ud,dd,hd,md){return setupBlock(createBaseVNode(Ra,ed,ud,dd,hd,md,!0))}function createBlock(Ra,ed,ud,dd,hd){return setupBlock(createVNode(Ra,ed,ud,dd,hd,!0))}function isVNode(Ra){return Ra?Ra.__v_isVNode===!0:!1}function isSameVNodeType(Ra,ed){return Ra.type===ed.type&&Ra.key===ed.key}const normalizeKey=({key:Ra})=>Ra??null,normalizeRef=({ref:Ra,ref_key:ed,ref_for:ud})=>(typeof Ra=="number"&&(Ra=""+Ra),Ra!=null?isString$2(Ra)||isRef(Ra)||isFunction$4(Ra)?{i:currentRenderingInstance,r:Ra,k:ed,f:!!ud}:Ra:null);function createBaseVNode(Ra,ed=null,ud=null,dd=0,hd=null,md=Ra===Fragment?0:1,gd=!1,yd=!1){const vd={__v_isVNode:!0,__v_skip:!0,type:Ra,props:ed,key:ed&&normalizeKey(ed),ref:ed&&normalizeRef(ed),scopeId:currentScopeId,slotScopeIds:null,children:ud,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:md,patchFlag:dd,dynamicProps:hd,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return yd?(normalizeChildren$1(vd,ud),md&128&&Ra.normalize(vd)):ud&&(vd.shapeFlag|=isString$2(ud)?8:16),isBlockTreeEnabled>0&&!gd&¤tBlock&&(vd.patchFlag>0||md&6)&&vd.patchFlag!==32&¤tBlock.push(vd),vd}const createVNode=_createVNode;function _createVNode(Ra,ed=null,ud=null,dd=0,hd=null,md=!1){if((!Ra||Ra===NULL_DYNAMIC_COMPONENT)&&(Ra=Comment$2),isVNode(Ra)){const yd=cloneVNode(Ra,ed,!0);return ud&&normalizeChildren$1(yd,ud),isBlockTreeEnabled>0&&!md&¤tBlock&&(yd.shapeFlag&6?currentBlock[currentBlock.indexOf(Ra)]=yd:currentBlock.push(yd)),yd.patchFlag=-2,yd}if(isClassComponent(Ra)&&(Ra=Ra.__vccOpts),ed){ed=guardReactiveProps(ed);let{class:yd,style:vd}=ed;yd&&!isString$2(yd)&&(ed.class=normalizeClass(yd)),isObject$9(vd)&&(isProxy(vd)&&!isArray$3(vd)&&(vd=extend$4({},vd)),ed.style=normalizeStyle(vd))}const gd=isString$2(Ra)?1:isSuspense(Ra)?128:isTeleport(Ra)?64:isObject$9(Ra)?4:isFunction$4(Ra)?2:0;return createBaseVNode(Ra,ed,ud,dd,hd,gd,md,!0)}function guardReactiveProps(Ra){return Ra?isProxy(Ra)||isInternalObject(Ra)?extend$4({},Ra):Ra:null}function cloneVNode(Ra,ed,ud=!1,dd=!1){const{props:hd,ref:md,patchFlag:gd,children:yd,transition:vd}=Ra,Cd=ed?mergeProps(hd||{},ed):hd,wd={__v_isVNode:!0,__v_skip:!0,type:Ra.type,props:Cd,key:Cd&&normalizeKey(Cd),ref:ed&&ed.ref?ud&&md?isArray$3(md)?md.concat(normalizeRef(ed)):[md,normalizeRef(ed)]:normalizeRef(ed):md,scopeId:Ra.scopeId,slotScopeIds:Ra.slotScopeIds,children:yd,target:Ra.target,targetStart:Ra.targetStart,targetAnchor:Ra.targetAnchor,staticCount:Ra.staticCount,shapeFlag:Ra.shapeFlag,patchFlag:ed&&Ra.type!==Fragment?gd===-1?16:gd|16:gd,dynamicProps:Ra.dynamicProps,dynamicChildren:Ra.dynamicChildren,appContext:Ra.appContext,dirs:Ra.dirs,transition:vd,component:Ra.component,suspense:Ra.suspense,ssContent:Ra.ssContent&&cloneVNode(Ra.ssContent),ssFallback:Ra.ssFallback&&cloneVNode(Ra.ssFallback),el:Ra.el,anchor:Ra.anchor,ctx:Ra.ctx,ce:Ra.ce};return vd&&dd&&setTransitionHooks(wd,vd.clone(wd)),wd}function createTextVNode(Ra=" ",ed=0){return createVNode(Text$2,null,Ra,ed)}function createCommentVNode(Ra="",ed=!1){return ed?(openBlock(),createBlock(Comment$2,null,Ra)):createVNode(Comment$2,null,Ra)}function normalizeVNode(Ra){return Ra==null||typeof Ra=="boolean"?createVNode(Comment$2):isArray$3(Ra)?createVNode(Fragment,null,Ra.slice()):isVNode(Ra)?cloneIfMounted(Ra):createVNode(Text$2,null,String(Ra))}function cloneIfMounted(Ra){return Ra.el===null&&Ra.patchFlag!==-1||Ra.memo?Ra:cloneVNode(Ra)}function normalizeChildren$1(Ra,ed){let ud=0;const{shapeFlag:dd}=Ra;if(ed==null)ed=null;else if(isArray$3(ed))ud=16;else if(typeof ed=="object")if(dd&65){const hd=ed.default;hd&&(hd._c&&(hd._d=!1),normalizeChildren$1(Ra,hd()),hd._c&&(hd._d=!0));return}else{ud=32;const hd=ed._;!hd&&!isInternalObject(ed)?ed._ctx=currentRenderingInstance:hd===3&¤tRenderingInstance&&(currentRenderingInstance.slots._===1?ed._=1:(ed._=2,Ra.patchFlag|=1024))}else isFunction$4(ed)?(ed={default:ed,_ctx:currentRenderingInstance},ud=32):(ed=String(ed),dd&64?(ud=16,ed=[createTextVNode(ed)]):ud=8);Ra.children=ed,Ra.shapeFlag|=ud}function mergeProps(...Ra){const ed={};for(let ud=0;udcurrentInstance||currentRenderingInstance;let internalSetCurrentInstance,setInSSRSetupState;{const Ra=getGlobalThis(),ed=(ud,dd)=>{let hd;return(hd=Ra[ud])||(hd=Ra[ud]=[]),hd.push(dd),md=>{hd.length>1?hd.forEach(gd=>gd(md)):hd[0](md)}};internalSetCurrentInstance=ed("__VUE_INSTANCE_SETTERS__",ud=>currentInstance=ud),setInSSRSetupState=ed("__VUE_SSR_SETTERS__",ud=>isInSSRComponentSetup=ud)}const setCurrentInstance=Ra=>{const ed=currentInstance;return internalSetCurrentInstance(Ra),Ra.scope.on(),()=>{Ra.scope.off(),internalSetCurrentInstance(ed)}},unsetCurrentInstance=()=>{currentInstance&¤tInstance.scope.off(),internalSetCurrentInstance(null)};function isStatefulComponent(Ra){return Ra.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;function setupComponent(Ra,ed=!1,ud=!1){ed&&setInSSRSetupState(ed);const{props:dd,children:hd}=Ra.vnode,md=isStatefulComponent(Ra);initProps(Ra,dd,md,ed),initSlots(Ra,hd,ud);const gd=md?setupStatefulComponent(Ra,ed):void 0;return ed&&setInSSRSetupState(!1),gd}function setupStatefulComponent(Ra,ed){const ud=Ra.type;Ra.accessCache=Object.create(null),Ra.proxy=new Proxy(Ra.ctx,PublicInstanceProxyHandlers);const{setup:dd}=ud;if(dd){pauseTracking();const hd=Ra.setupContext=dd.length>1?createSetupContext(Ra):null,md=setCurrentInstance(Ra),gd=callWithErrorHandling(dd,Ra,0,[Ra.props,hd]),yd=isPromise(gd);if(resetTracking(),md(),(yd||Ra.sp)&&!isAsyncWrapper(Ra)&&markAsyncBoundary(Ra),yd){if(gd.then(unsetCurrentInstance,unsetCurrentInstance),ed)return gd.then(vd=>{handleSetupResult(Ra,vd)}).catch(vd=>{handleError$1(vd,Ra,0)});Ra.asyncDep=gd}else handleSetupResult(Ra,gd)}else finishComponentSetup(Ra)}function handleSetupResult(Ra,ed,ud){isFunction$4(ed)?Ra.type.__ssrInlineRender?Ra.ssrRender=ed:Ra.render=ed:isObject$9(ed)&&(Ra.setupState=proxyRefs(ed)),finishComponentSetup(Ra)}function finishComponentSetup(Ra,ed,ud){const dd=Ra.type;Ra.render||(Ra.render=dd.render||NOOP);{const hd=setCurrentInstance(Ra);pauseTracking();try{applyOptions(Ra)}finally{resetTracking(),hd()}}}const attrsProxyHandlers={get(Ra,ed){return track(Ra,"get",""),Ra[ed]}};function createSetupContext(Ra){const ed=ud=>{Ra.exposed=ud||{}};return{attrs:new Proxy(Ra.attrs,attrsProxyHandlers),slots:Ra.slots,emit:Ra.emit,expose:ed}}function getComponentPublicInstance(Ra){return Ra.exposed?Ra.exposeProxy||(Ra.exposeProxy=new Proxy(proxyRefs(markRaw(Ra.exposed)),{get(ed,ud){if(ud in ed)return ed[ud];if(ud in publicPropertiesMap)return publicPropertiesMap[ud](Ra)},has(ed,ud){return ud in ed||ud in publicPropertiesMap}})):Ra.proxy}const classifyRE=/(?:^|[-_])(\w)/g,classify=Ra=>Ra.replace(classifyRE,ed=>ed.toUpperCase()).replace(/[-_]/g,"");function getComponentName(Ra,ed=!0){return isFunction$4(Ra)?Ra.displayName||Ra.name:Ra.name||ed&&Ra.__name}function formatComponentName(Ra,ed,ud=!1){let dd=getComponentName(ed);if(!dd&&ed.__file){const hd=ed.__file.match(/([^/\\]+)\.\w+$/);hd&&(dd=hd[1])}if(!dd&&Ra&&Ra.parent){const hd=md=>{for(const gd in md)if(md[gd]===ed)return gd};dd=hd(Ra.components||Ra.parent.type.components)||hd(Ra.appContext.components)}return dd?classify(dd):ud?"App":"Anonymous"}function isClassComponent(Ra){return isFunction$4(Ra)&&"__vccOpts"in Ra}const computed=(Ra,ed)=>computed$1(Ra,ed,isInSSRComponentSetup);function h$2(Ra,ed,ud){const dd=arguments.length;return dd===2?isObject$9(ed)&&!isArray$3(ed)?isVNode(ed)?createVNode(Ra,null,[ed]):createVNode(Ra,ed):createVNode(Ra,null,ed):(dd>3?ud=Array.prototype.slice.call(arguments,2):dd===3&&isVNode(ud)&&(ud=[ud]),createVNode(Ra,ed,ud))}const version$3="3.5.13";/** * @vue/runtime-dom v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let policy;const tt$4=typeof window<"u"&&window.trustedTypes;if(tt$4)try{policy=tt$4.createPolicy("vue",{createHTML:Ra=>Ra})}catch{}const unsafeToTrustedHTML=policy?Ra=>policy.createHTML(Ra):Ra=>Ra,svgNS="http://www.w3.org/2000/svg",mathmlNS="http://www.w3.org/1998/Math/MathML",doc=typeof document<"u"?document:null,templateContainer=doc&&doc.createElement("template"),nodeOps={insert:(Ra,ed,ud)=>{ed.insertBefore(Ra,ud||null)},remove:Ra=>{const ed=Ra.parentNode;ed&&ed.removeChild(Ra)},createElement:(Ra,ed,ud,dd)=>{const hd=ed==="svg"?doc.createElementNS(svgNS,Ra):ed==="mathml"?doc.createElementNS(mathmlNS,Ra):ud?doc.createElement(Ra,{is:ud}):doc.createElement(Ra);return Ra==="select"&&dd&&dd.multiple!=null&&hd.setAttribute("multiple",dd.multiple),hd},createText:Ra=>doc.createTextNode(Ra),createComment:Ra=>doc.createComment(Ra),setText:(Ra,ed)=>{Ra.nodeValue=ed},setElementText:(Ra,ed)=>{Ra.textContent=ed},parentNode:Ra=>Ra.parentNode,nextSibling:Ra=>Ra.nextSibling,querySelector:Ra=>doc.querySelector(Ra),setScopeId(Ra,ed){Ra.setAttribute(ed,"")},insertStaticContent(Ra,ed,ud,dd,hd,md){const gd=ud?ud.previousSibling:ed.lastChild;if(hd&&(hd===md||hd.nextSibling))for(;ed.insertBefore(hd.cloneNode(!0),ud),!(hd===md||!(hd=hd.nextSibling)););else{templateContainer.innerHTML=unsafeToTrustedHTML(dd==="svg"?`${Ra}`:dd==="mathml"?`${Ra}`:Ra);const yd=templateContainer.content;if(dd==="svg"||dd==="mathml"){const vd=yd.firstChild;for(;vd.firstChild;)yd.appendChild(vd.firstChild);yd.removeChild(vd)}ed.insertBefore(yd,ud)}return[gd?gd.nextSibling:ed.firstChild,ud?ud.previousSibling:ed.lastChild]}},TRANSITION="transition",ANIMATION="animation",vtcKey=Symbol("_vtc"),DOMTransitionPropsValidators={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},TransitionPropsValidators=extend$4({},BaseTransitionPropsValidators,DOMTransitionPropsValidators),decorate$1=Ra=>(Ra.displayName="Transition",Ra.props=TransitionPropsValidators,Ra),Transition$1=decorate$1((Ra,{slots:ed})=>h$2(BaseTransition,resolveTransitionProps(Ra),ed)),callHook=(Ra,ed=[])=>{isArray$3(Ra)?Ra.forEach(ud=>ud(...ed)):Ra&&Ra(...ed)},hasExplicitCallback=Ra=>Ra?isArray$3(Ra)?Ra.some(ed=>ed.length>1):Ra.length>1:!1;function resolveTransitionProps(Ra){const ed={};for(const Af in Ra)Af in DOMTransitionPropsValidators||(ed[Af]=Ra[Af]);if(Ra.css===!1)return ed;const{name:ud="v",type:dd,duration:hd,enterFromClass:md=`${ud}-enter-from`,enterActiveClass:gd=`${ud}-enter-active`,enterToClass:yd=`${ud}-enter-to`,appearFromClass:vd=md,appearActiveClass:Cd=gd,appearToClass:wd=yd,leaveFromClass:Nd=`${ud}-leave-from`,leaveActiveClass:Ld=`${ud}-leave-active`,leaveToClass:Ud=`${ud}-leave-to`}=Ra,jd=normalizeDuration(hd),Gd=jd&&jd[0],Yd=jd&&jd[1],{onBeforeEnter:zd,onEnter:qd,onEnterCancelled:Wd,onLeave:Xd,onLeaveCancelled:Jd,onBeforeAppear:Zd=zd,onAppear:mf=qd,onAppearCancelled:xf=Wd}=ed,_f=(Af,Df,Of,Cf)=>{Af._enterCancelled=Cf,removeTransitionClass(Af,Df?wd:yd),removeTransitionClass(Af,Df?Cd:gd),Of&&Of()},vf=(Af,Df)=>{Af._isLeaving=!1,removeTransitionClass(Af,Nd),removeTransitionClass(Af,Ud),removeTransitionClass(Af,Ld),Df&&Df()},gf=Af=>(Df,Of)=>{const Cf=Af?mf:qd,If=()=>_f(Df,Af,Of);callHook(Cf,[Df,If]),nextFrame(()=>{removeTransitionClass(Df,Af?vd:md),addTransitionClass(Df,Af?wd:yd),hasExplicitCallback(Cf)||whenTransitionEnds(Df,dd,Gd,If)})};return extend$4(ed,{onBeforeEnter(Af){callHook(zd,[Af]),addTransitionClass(Af,md),addTransitionClass(Af,gd)},onBeforeAppear(Af){callHook(Zd,[Af]),addTransitionClass(Af,vd),addTransitionClass(Af,Cd)},onEnter:gf(!1),onAppear:gf(!0),onLeave(Af,Df){Af._isLeaving=!0;const Of=()=>vf(Af,Df);addTransitionClass(Af,Nd),Af._enterCancelled?(addTransitionClass(Af,Ld),forceReflow()):(forceReflow(),addTransitionClass(Af,Ld)),nextFrame(()=>{Af._isLeaving&&(removeTransitionClass(Af,Nd),addTransitionClass(Af,Ud),hasExplicitCallback(Xd)||whenTransitionEnds(Af,dd,Yd,Of))}),callHook(Xd,[Af,Of])},onEnterCancelled(Af){_f(Af,!1,void 0,!0),callHook(Wd,[Af])},onAppearCancelled(Af){_f(Af,!0,void 0,!0),callHook(xf,[Af])},onLeaveCancelled(Af){vf(Af),callHook(Jd,[Af])}})}function normalizeDuration(Ra){if(Ra==null)return null;if(isObject$9(Ra))return[NumberOf(Ra.enter),NumberOf(Ra.leave)];{const ed=NumberOf(Ra);return[ed,ed]}}function NumberOf(Ra){return toNumber$4(Ra)}function addTransitionClass(Ra,ed){ed.split(/\s+/).forEach(ud=>ud&&Ra.classList.add(ud)),(Ra[vtcKey]||(Ra[vtcKey]=new Set)).add(ed)}function removeTransitionClass(Ra,ed){ed.split(/\s+/).forEach(dd=>dd&&Ra.classList.remove(dd));const ud=Ra[vtcKey];ud&&(ud.delete(ed),ud.size||(Ra[vtcKey]=void 0))}function nextFrame(Ra){requestAnimationFrame(()=>{requestAnimationFrame(Ra)})}let endId=0;function whenTransitionEnds(Ra,ed,ud,dd){const hd=Ra._endId=++endId,md=()=>{hd===Ra._endId&&dd()};if(ud!=null)return setTimeout(md,ud);const{type:gd,timeout:yd,propCount:vd}=getTransitionInfo(Ra,ed);if(!gd)return dd();const Cd=gd+"end";let wd=0;const Nd=()=>{Ra.removeEventListener(Cd,Ld),md()},Ld=Ud=>{Ud.target===Ra&&++wd>=vd&&Nd()};setTimeout(()=>{wd(ud[jd]||"").split(", "),hd=dd(`${TRANSITION}Delay`),md=dd(`${TRANSITION}Duration`),gd=getTimeout(hd,md),yd=dd(`${ANIMATION}Delay`),vd=dd(`${ANIMATION}Duration`),Cd=getTimeout(yd,vd);let wd=null,Nd=0,Ld=0;ed===TRANSITION?gd>0&&(wd=TRANSITION,Nd=gd,Ld=md.length):ed===ANIMATION?Cd>0&&(wd=ANIMATION,Nd=Cd,Ld=vd.length):(Nd=Math.max(gd,Cd),wd=Nd>0?gd>Cd?TRANSITION:ANIMATION:null,Ld=wd?wd===TRANSITION?md.length:vd.length:0);const Ud=wd===TRANSITION&&/\b(transform|all)(,|$)/.test(dd(`${TRANSITION}Property`).toString());return{type:wd,timeout:Nd,propCount:Ld,hasTransform:Ud}}function getTimeout(Ra,ed){for(;Ra.lengthtoMs(ud)+toMs(Ra[dd])))}function toMs(Ra){return Ra==="auto"?0:Number(Ra.slice(0,-1).replace(",","."))*1e3}function forceReflow(){return document.body.offsetHeight}function patchClass(Ra,ed,ud){const dd=Ra[vtcKey];dd&&(ed=(ed?[ed,...dd]:[...dd]).join(" ")),ed==null?Ra.removeAttribute("class"):ud?Ra.setAttribute("class",ed):Ra.className=ed}const vShowOriginalDisplay=Symbol("_vod"),vShowHidden=Symbol("_vsh"),vShow={beforeMount(Ra,{value:ed},{transition:ud}){Ra[vShowOriginalDisplay]=Ra.style.display==="none"?"":Ra.style.display,ud&&ed?ud.beforeEnter(Ra):setDisplay(Ra,ed)},mounted(Ra,{value:ed},{transition:ud}){ud&&ed&&ud.enter(Ra)},updated(Ra,{value:ed,oldValue:ud},{transition:dd}){!ed!=!ud&&(dd?ed?(dd.beforeEnter(Ra),setDisplay(Ra,!0),dd.enter(Ra)):dd.leave(Ra,()=>{setDisplay(Ra,!1)}):setDisplay(Ra,ed))},beforeUnmount(Ra,{value:ed}){setDisplay(Ra,ed)}};function setDisplay(Ra,ed){Ra.style.display=ed?Ra[vShowOriginalDisplay]:"none",Ra[vShowHidden]=!ed}const CSS_VAR_TEXT=Symbol(""),displayRE=/(^|;)\s*display\s*:/;function patchStyle(Ra,ed,ud){const dd=Ra.style,hd=isString$2(ud);let md=!1;if(ud&&!hd){if(ed)if(isString$2(ed))for(const gd of ed.split(";")){const yd=gd.slice(0,gd.indexOf(":")).trim();ud[yd]==null&&setStyle(dd,yd,"")}else for(const gd in ed)ud[gd]==null&&setStyle(dd,gd,"");for(const gd in ud)gd==="display"&&(md=!0),setStyle(dd,gd,ud[gd])}else if(hd){if(ed!==ud){const gd=dd[CSS_VAR_TEXT];gd&&(ud+=";"+gd),dd.cssText=ud,md=displayRE.test(ud)}}else ed&&Ra.removeAttribute("style");vShowOriginalDisplay in Ra&&(Ra[vShowOriginalDisplay]=md?dd.display:"",Ra[vShowHidden]&&(dd.display="none"))}const importantRE=/\s*!important$/;function setStyle(Ra,ed,ud){if(isArray$3(ud))ud.forEach(dd=>setStyle(Ra,ed,dd));else if(ud==null&&(ud=""),ed.startsWith("--"))Ra.setProperty(ed,ud);else{const dd=autoPrefix(Ra,ed);importantRE.test(ud)?Ra.setProperty(hyphenate(dd),ud.replace(importantRE,""),"important"):Ra[dd]=ud}}const prefixes$1=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(Ra,ed){const ud=prefixCache[ed];if(ud)return ud;let dd=camelize(ed);if(dd!=="filter"&&dd in Ra)return prefixCache[ed]=dd;dd=capitalize(dd);for(let hd=0;hdcachedNow||(p$2.then(()=>cachedNow=0),cachedNow=Date.now());function createInvoker(Ra,ed){const ud=dd=>{if(!dd._vts)dd._vts=Date.now();else if(dd._vts<=ud.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(dd,ud.value),ed,5,[dd])};return ud.value=Ra,ud.attached=getNow(),ud}function patchStopImmediatePropagation(Ra,ed){if(isArray$3(ed)){const ud=Ra.stopImmediatePropagation;return Ra.stopImmediatePropagation=()=>{ud.call(Ra),Ra._stopped=!0},ed.map(dd=>hd=>!hd._stopped&&dd&&dd(hd))}else return ed}const isNativeOn=Ra=>Ra.charCodeAt(0)===111&&Ra.charCodeAt(1)===110&&Ra.charCodeAt(2)>96&&Ra.charCodeAt(2)<123,patchProp=(Ra,ed,ud,dd,hd,md)=>{const gd=hd==="svg";ed==="class"?patchClass(Ra,dd,gd):ed==="style"?patchStyle(Ra,ud,dd):isOn(ed)?isModelListener(ed)||patchEvent(Ra,ed,ud,dd,md):(ed[0]==="."?(ed=ed.slice(1),!0):ed[0]==="^"?(ed=ed.slice(1),!1):shouldSetAsProp(Ra,ed,dd,gd))?(patchDOMProp(Ra,ed,dd),!Ra.tagName.includes("-")&&(ed==="value"||ed==="checked"||ed==="selected")&&patchAttr(Ra,ed,dd,gd,md,ed!=="value")):Ra._isVueCE&&(/[A-Z]/.test(ed)||!isString$2(dd))?patchDOMProp(Ra,camelize(ed),dd,md,ed):(ed==="true-value"?Ra._trueValue=dd:ed==="false-value"&&(Ra._falseValue=dd),patchAttr(Ra,ed,dd,gd))};function shouldSetAsProp(Ra,ed,ud,dd){if(dd)return!!(ed==="innerHTML"||ed==="textContent"||ed in Ra&&isNativeOn(ed)&&isFunction$4(ud));if(ed==="spellcheck"||ed==="draggable"||ed==="translate"||ed==="form"||ed==="list"&&Ra.tagName==="INPUT"||ed==="type"&&Ra.tagName==="TEXTAREA")return!1;if(ed==="width"||ed==="height"){const hd=Ra.tagName;if(hd==="IMG"||hd==="VIDEO"||hd==="CANVAS"||hd==="SOURCE")return!1}return isNativeOn(ed)&&isString$2(ud)?!1:ed in Ra}const getModelAssigner=Ra=>{const ed=Ra.props["onUpdate:modelValue"]||!1;return isArray$3(ed)?ud=>invokeArrayFns(ed,ud):ed};function onCompositionStart(Ra){Ra.target.composing=!0}function onCompositionEnd(Ra){const ed=Ra.target;ed.composing&&(ed.composing=!1,ed.dispatchEvent(new Event("input")))}const assignKey=Symbol("_assign"),vModelText={created(Ra,{modifiers:{lazy:ed,trim:ud,number:dd}},hd){Ra[assignKey]=getModelAssigner(hd);const md=dd||hd.props&&hd.props.type==="number";addEventListener(Ra,ed?"change":"input",gd=>{if(gd.target.composing)return;let yd=Ra.value;ud&&(yd=yd.trim()),md&&(yd=looseToNumber(yd)),Ra[assignKey](yd)}),ud&&addEventListener(Ra,"change",()=>{Ra.value=Ra.value.trim()}),ed||(addEventListener(Ra,"compositionstart",onCompositionStart),addEventListener(Ra,"compositionend",onCompositionEnd),addEventListener(Ra,"change",onCompositionEnd))},mounted(Ra,{value:ed}){Ra.value=ed??""},beforeUpdate(Ra,{value:ed,oldValue:ud,modifiers:{lazy:dd,trim:hd,number:md}},gd){if(Ra[assignKey]=getModelAssigner(gd),Ra.composing)return;const yd=(md||Ra.type==="number")&&!/^0\d/.test(Ra.value)?looseToNumber(Ra.value):Ra.value,vd=ed??"";yd!==vd&&(document.activeElement===Ra&&Ra.type!=="range"&&(dd&&ed===ud||hd&&Ra.value.trim()===vd)||(Ra.value=vd))}},vModelSelect={deep:!0,created(Ra,{value:ed,modifiers:{number:ud}},dd){const hd=isSet$1(ed);addEventListener(Ra,"change",()=>{const md=Array.prototype.filter.call(Ra.options,gd=>gd.selected).map(gd=>ud?looseToNumber(getValue$1(gd)):getValue$1(gd));Ra[assignKey](Ra.multiple?hd?new Set(md):md:md[0]),Ra._assigning=!0,nextTick$1(()=>{Ra._assigning=!1})}),Ra[assignKey]=getModelAssigner(dd)},mounted(Ra,{value:ed}){setSelected(Ra,ed)},beforeUpdate(Ra,ed,ud){Ra[assignKey]=getModelAssigner(ud)},updated(Ra,{value:ed}){Ra._assigning||setSelected(Ra,ed)}};function setSelected(Ra,ed){const ud=Ra.multiple,dd=isArray$3(ed);if(!(ud&&!dd&&!isSet$1(ed))){for(let hd=0,md=Ra.options.length;hdString(Cd)===String(yd)):gd.selected=looseIndexOf(ed,yd)>-1}else gd.selected=ed.has(yd);else if(looseEqual(getValue$1(gd),ed)){Ra.selectedIndex!==hd&&(Ra.selectedIndex=hd);return}}!ud&&Ra.selectedIndex!==-1&&(Ra.selectedIndex=-1)}}function getValue$1(Ra){return"_value"in Ra?Ra._value:Ra.value}const systemModifiers=["ctrl","shift","alt","meta"],modifierGuards={stop:Ra=>Ra.stopPropagation(),prevent:Ra=>Ra.preventDefault(),self:Ra=>Ra.target!==Ra.currentTarget,ctrl:Ra=>!Ra.ctrlKey,shift:Ra=>!Ra.shiftKey,alt:Ra=>!Ra.altKey,meta:Ra=>!Ra.metaKey,left:Ra=>"button"in Ra&&Ra.button!==0,middle:Ra=>"button"in Ra&&Ra.button!==1,right:Ra=>"button"in Ra&&Ra.button!==2,exact:(Ra,ed)=>systemModifiers.some(ud=>Ra[`${ud}Key`]&&!ed.includes(ud))},withModifiers=(Ra,ed)=>{const ud=Ra._withMods||(Ra._withMods={}),dd=ed.join(".");return ud[dd]||(ud[dd]=(hd,...md)=>{for(let gd=0;gd{const ud=Ra._withKeys||(Ra._withKeys={}),dd=ed.join(".");return ud[dd]||(ud[dd]=hd=>{if(!("key"in hd))return;const md=hyphenate(hd.key);if(ed.some(gd=>gd===md||keyNames[gd]===md))return Ra(hd)})},rendererOptions=extend$4({patchProp},nodeOps);let renderer$1;function ensureRenderer(){return renderer$1||(renderer$1=createRenderer$1(rendererOptions))}const createApp=(...Ra)=>{const ed=ensureRenderer().createApp(...Ra),{mount:ud}=ed;return ed.mount=dd=>{const hd=normalizeContainer(dd);if(!hd)return;const md=ed._component;!isFunction$4(md)&&!md.render&&!md.template&&(md.template=hd.innerHTML),hd.nodeType===1&&(hd.textContent="");const gd=ud(hd,!1,resolveRootNamespace(hd));return hd instanceof Element&&(hd.removeAttribute("v-cloak"),hd.setAttribute("data-v-app","")),gd},ed};function resolveRootNamespace(Ra){if(Ra instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&Ra instanceof MathMLElement)return"mathml"}function normalizeContainer(Ra){return isString$2(Ra)?document.querySelector(Ra):Ra}let activePinia;const setActivePinia=Ra=>activePinia=Ra,piniaSymbol=Symbol();function isPlainObject$5(Ra){return Ra&&typeof Ra=="object"&&Object.prototype.toString.call(Ra)==="[object Object]"&&typeof Ra.toJSON!="function"}var MutationType;(function(Ra){Ra.direct="direct",Ra.patchObject="patch object",Ra.patchFunction="patch function"})(MutationType||(MutationType={}));function createPinia(){const Ra=effectScope(!0),ed=Ra.run(()=>ref$1({}));let ud=[],dd=[];const hd=markRaw({install(md){setActivePinia(hd),hd._a=md,md.provide(piniaSymbol,hd),md.config.globalProperties.$pinia=hd,dd.forEach(gd=>ud.push(gd)),dd=[]},use(md){return this._a?ud.push(md):dd.push(md),this},_p:ud,_a:null,_e:Ra,_s:new Map,state:ed});return hd}const noop$6=()=>{};function addSubscription(Ra,ed,ud,dd=noop$6){Ra.push(ed);const hd=()=>{const md=Ra.indexOf(ed);md>-1&&(Ra.splice(md,1),dd())};return!ud&&getCurrentScope()&&onScopeDispose(hd),hd}function triggerSubscriptions(Ra,...ed){Ra.slice().forEach(ud=>{ud(...ed)})}const fallbackRunWithContext=Ra=>Ra(),ACTION_MARKER=Symbol(),ACTION_NAME=Symbol();function mergeReactiveObjects(Ra,ed){Ra instanceof Map&&ed instanceof Map?ed.forEach((ud,dd)=>Ra.set(dd,ud)):Ra instanceof Set&&ed instanceof Set&&ed.forEach(Ra.add,Ra);for(const ud in ed){if(!ed.hasOwnProperty(ud))continue;const dd=ed[ud],hd=Ra[ud];isPlainObject$5(hd)&&isPlainObject$5(dd)&&Ra.hasOwnProperty(ud)&&!isRef(dd)&&!isReactive(dd)?Ra[ud]=mergeReactiveObjects(hd,dd):Ra[ud]=dd}return Ra}const skipHydrateSymbol=Symbol();function shouldHydrate(Ra){return!isPlainObject$5(Ra)||!Ra.hasOwnProperty(skipHydrateSymbol)}const{assign}=Object;function isComputed(Ra){return!!(isRef(Ra)&&Ra.effect)}function createOptionsStore(Ra,ed,ud,dd){const{state:hd,actions:md,getters:gd}=ed,yd=ud.state.value[Ra];let vd;function Cd(){yd||(ud.state.value[Ra]=hd?hd():{});const wd=toRefs(ud.state.value[Ra]);return assign(wd,md,Object.keys(gd||{}).reduce((Nd,Ld)=>(Nd[Ld]=markRaw(computed(()=>{setActivePinia(ud);const Ud=ud._s.get(Ra);return gd[Ld].call(Ud,Ud)})),Nd),{}))}return vd=createSetupStore(Ra,Cd,ed,ud,dd,!0),vd}function createSetupStore(Ra,ed,ud={},dd,hd,md){let gd;const yd=assign({actions:{}},ud),vd={deep:!0};let Cd,wd,Nd=[],Ld=[],Ud;const jd=dd.state.value[Ra];!md&&!jd&&(dd.state.value[Ra]={}),ref$1({});let Gd;function Yd(xf){let _f;Cd=wd=!1,typeof xf=="function"?(xf(dd.state.value[Ra]),_f={type:MutationType.patchFunction,storeId:Ra,events:Ud}):(mergeReactiveObjects(dd.state.value[Ra],xf),_f={type:MutationType.patchObject,payload:xf,storeId:Ra,events:Ud});const vf=Gd=Symbol();nextTick$1().then(()=>{Gd===vf&&(Cd=!0)}),wd=!0,triggerSubscriptions(Nd,_f,dd.state.value[Ra])}const zd=md?function(){const{state:_f}=ud,vf=_f?_f():{};this.$patch(gf=>{assign(gf,vf)})}:noop$6;function qd(){gd.stop(),Nd=[],Ld=[],dd._s.delete(Ra)}const Wd=(xf,_f="")=>{if(ACTION_MARKER in xf)return xf[ACTION_NAME]=_f,xf;const vf=function(){setActivePinia(dd);const gf=Array.from(arguments),Af=[],Df=[];function Of(Ff){Af.push(Ff)}function Cf(Ff){Df.push(Ff)}triggerSubscriptions(Ld,{args:gf,name:vf[ACTION_NAME],store:Jd,after:Of,onError:Cf});let If;try{If=xf.apply(this&&this.$id===Ra?this:Jd,gf)}catch(Ff){throw triggerSubscriptions(Df,Ff),Ff}return If instanceof Promise?If.then(Ff=>(triggerSubscriptions(Af,Ff),Ff)).catch(Ff=>(triggerSubscriptions(Df,Ff),Promise.reject(Ff))):(triggerSubscriptions(Af,If),If)};return vf[ACTION_MARKER]=!0,vf[ACTION_NAME]=_f,vf},Xd={_p:dd,$id:Ra,$onAction:addSubscription.bind(null,Ld),$patch:Yd,$reset:zd,$subscribe(xf,_f={}){const vf=addSubscription(Nd,xf,_f.detached,()=>gf()),gf=gd.run(()=>watch(()=>dd.state.value[Ra],Af=>{(_f.flush==="sync"?wd:Cd)&&xf({storeId:Ra,type:MutationType.direct,events:Ud},Af)},assign({},vd,_f)));return vf},$dispose:qd},Jd=reactive(Xd);dd._s.set(Ra,Jd);const mf=(dd._a&&dd._a.runWithContext||fallbackRunWithContext)(()=>dd._e.run(()=>(gd=effectScope()).run(()=>ed({action:Wd}))));for(const xf in mf){const _f=mf[xf];if(isRef(_f)&&!isComputed(_f)||isReactive(_f))md||(jd&&shouldHydrate(_f)&&(isRef(_f)?_f.value=jd[xf]:mergeReactiveObjects(_f,jd[xf])),dd.state.value[Ra][xf]=_f);else if(typeof _f=="function"){const vf=Wd(_f,xf);mf[xf]=vf,yd.actions[xf]=_f}}return assign(Jd,mf),assign(toRaw(Jd),mf),Object.defineProperty(Jd,"$state",{get:()=>dd.state.value[Ra],set:xf=>{Yd(_f=>{assign(_f,xf)})}}),dd._p.forEach(xf=>{assign(Jd,gd.run(()=>xf({store:Jd,app:dd._a,pinia:dd,options:yd})))}),jd&&md&&ud.hydrate&&ud.hydrate(Jd.$state,jd),Cd=!0,wd=!0,Jd}/*! #__NO_SIDE_EFFECTS__ */function defineStore(Ra,ed,ud){let dd,hd;const md=typeof ed=="function";typeof Ra=="string"?(dd=Ra,hd=md?ud:ed):(hd=Ra,dd=Ra.id);function gd(yd,vd){const Cd=hasInjectionContext();return yd=yd||(Cd?inject(piniaSymbol,null):null),yd&&setActivePinia(yd),yd=activePinia,yd._s.has(dd)||(md?createSetupStore(dd,ed,hd,yd):createOptionsStore(dd,hd,yd)),yd._s.get(dd)}return gd.$id=dd,gd}function storeToRefs(Ra){{const ed=toRaw(Ra),ud={};for(const dd in ed){const hd=ed[dd];hd.effect?ud[dd]=computed({get:()=>Ra[dd],set(md){Ra[dd]=md}}):(isRef(hd)||isReactive(hd))&&(ud[dd]=toRef$1(Ra,dd))}return ud}}const sides=["top","right","bottom","left"],min$4=Math.min,max$5=Math.max,round$3=Math.round,floor$2=Math.floor,createCoords=Ra=>({x:Ra,y:Ra}),oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"},oppositeAlignmentMap={start:"end",end:"start"};function clamp(Ra,ed,ud){return max$5(Ra,min$4(ed,ud))}function evaluate$1(Ra,ed){return typeof Ra=="function"?Ra(ed):Ra}function getSide(Ra){return Ra.split("-")[0]}function getAlignment(Ra){return Ra.split("-")[1]}function getOppositeAxis(Ra){return Ra==="x"?"y":"x"}function getAxisLength(Ra){return Ra==="y"?"height":"width"}function getSideAxis(Ra){return["top","bottom"].includes(getSide(Ra))?"y":"x"}function getAlignmentAxis(Ra){return getOppositeAxis(getSideAxis(Ra))}function getAlignmentSides(Ra,ed,ud){ud===void 0&&(ud=!1);const dd=getAlignment(Ra),hd=getAlignmentAxis(Ra),md=getAxisLength(hd);let gd=hd==="x"?dd===(ud?"end":"start")?"right":"left":dd==="start"?"bottom":"top";return ed.reference[md]>ed.floating[md]&&(gd=getOppositePlacement$1(gd)),[gd,getOppositePlacement$1(gd)]}function getExpandedPlacements(Ra){const ed=getOppositePlacement$1(Ra);return[getOppositeAlignmentPlacement(Ra),ed,getOppositeAlignmentPlacement(ed)]}function getOppositeAlignmentPlacement(Ra){return Ra.replace(/start|end/g,ed=>oppositeAlignmentMap[ed])}function getSideList(Ra,ed,ud){const dd=["left","right"],hd=["right","left"],md=["top","bottom"],gd=["bottom","top"];switch(Ra){case"top":case"bottom":return ud?ed?hd:dd:ed?dd:hd;case"left":case"right":return ed?md:gd;default:return[]}}function getOppositeAxisPlacements(Ra,ed,ud,dd){const hd=getAlignment(Ra);let md=getSideList(getSide(Ra),ud==="start",dd);return hd&&(md=md.map(gd=>gd+"-"+hd),ed&&(md=md.concat(md.map(getOppositeAlignmentPlacement)))),md}function getOppositePlacement$1(Ra){return Ra.replace(/left|right|bottom|top/g,ed=>oppositeSideMap[ed])}function expandPaddingObject(Ra){return{top:0,right:0,bottom:0,left:0,...Ra}}function getPaddingObject(Ra){return typeof Ra!="number"?expandPaddingObject(Ra):{top:Ra,right:Ra,bottom:Ra,left:Ra}}function rectToClientRect$1(Ra){const{x:ed,y:ud,width:dd,height:hd}=Ra;return{width:dd,height:hd,top:ud,left:ed,right:ed+dd,bottom:ud+hd,x:ed,y:ud}}function computeCoordsFromPlacement(Ra,ed,ud){let{reference:dd,floating:hd}=Ra;const md=getSideAxis(ed),gd=getAlignmentAxis(ed),yd=getAxisLength(gd),vd=getSide(ed),Cd=md==="y",wd=dd.x+dd.width/2-hd.width/2,Nd=dd.y+dd.height/2-hd.height/2,Ld=dd[yd]/2-hd[yd]/2;let Ud;switch(vd){case"top":Ud={x:wd,y:dd.y-hd.height};break;case"bottom":Ud={x:wd,y:dd.y+dd.height};break;case"right":Ud={x:dd.x+dd.width,y:Nd};break;case"left":Ud={x:dd.x-hd.width,y:Nd};break;default:Ud={x:dd.x,y:dd.y}}switch(getAlignment(ed)){case"start":Ud[gd]-=Ld*(ud&&Cd?-1:1);break;case"end":Ud[gd]+=Ld*(ud&&Cd?-1:1);break}return Ud}const computePosition$1=async(Ra,ed,ud)=>{const{placement:dd="bottom",strategy:hd="absolute",middleware:md=[],platform:gd}=ud,yd=md.filter(Boolean),vd=await(gd.isRTL==null?void 0:gd.isRTL(ed));let Cd=await gd.getElementRects({reference:Ra,floating:ed,strategy:hd}),{x:wd,y:Nd}=computeCoordsFromPlacement(Cd,dd,vd),Ld=dd,Ud={},jd=0;for(let Gd=0;Gd({name:"arrow",options:Ra,async fn(ed){const{x:ud,y:dd,placement:hd,rects:md,platform:gd,elements:yd,middlewareData:vd}=ed,{element:Cd,padding:wd=0}=evaluate$1(Ra,ed)||{};if(Cd==null)return{};const Nd=getPaddingObject(wd),Ld={x:ud,y:dd},Ud=getAlignmentAxis(hd),jd=getAxisLength(Ud),Gd=await gd.getDimensions(Cd),Yd=Ud==="y",zd=Yd?"top":"left",qd=Yd?"bottom":"right",Wd=Yd?"clientHeight":"clientWidth",Xd=md.reference[jd]+md.reference[Ud]-Ld[Ud]-md.floating[jd],Jd=Ld[Ud]-md.reference[Ud],Zd=await(gd.getOffsetParent==null?void 0:gd.getOffsetParent(Cd));let mf=Zd?Zd[Wd]:0;(!mf||!await(gd.isElement==null?void 0:gd.isElement(Zd)))&&(mf=yd.floating[Wd]||md.floating[jd]);const xf=Xd/2-Jd/2,_f=mf/2-Gd[jd]/2-1,vf=min$4(Nd[zd],_f),gf=min$4(Nd[qd],_f),Af=vf,Df=mf-Gd[jd]-gf,Of=mf/2-Gd[jd]/2+xf,Cf=clamp(Af,Of,Df),If=!vd.arrow&&getAlignment(hd)!=null&&Of!==Cf&&md.reference[jd]/2-(OfOf<=0)){var gf,Af;const Of=(((gf=md.flip)==null?void 0:gf.index)||0)+1,Cf=mf[Of];if(Cf)return{data:{index:Of,overflows:vf},reset:{placement:Cf}};let If=(Af=vf.filter(Ff=>Ff.overflows[0]<=0).sort((Ff,sh)=>Ff.overflows[1]-sh.overflows[1])[0])==null?void 0:Af.placement;if(!If)switch(Ud){case"bestFit":{var Df;const Ff=(Df=vf.filter(sh=>{if(Zd){const Sh=getSideAxis(sh.placement);return Sh===qd||Sh==="y"}return!0}).map(sh=>[sh.placement,sh.overflows.filter(Sh=>Sh>0).reduce((Sh,yh)=>Sh+yh,0)]).sort((sh,Sh)=>sh[1]-Sh[1])[0])==null?void 0:Df[0];Ff&&(If=Ff);break}case"initialPlacement":If=yd;break}if(hd!==If)return{reset:{placement:If}}}return{}}}};function getSideOffsets$1(Ra,ed){return{top:Ra.top-ed.height,right:Ra.right-ed.width,bottom:Ra.bottom-ed.height,left:Ra.left-ed.width}}function isAnySideFullyClipped$1(Ra){return sides.some(ed=>Ra[ed]>=0)}const hide$3=function(Ra){return Ra===void 0&&(Ra={}),{name:"hide",options:Ra,async fn(ed){const{rects:ud}=ed,{strategy:dd="referenceHidden",...hd}=evaluate$1(Ra,ed);switch(dd){case"referenceHidden":{const md=await detectOverflow$1(ed,{...hd,elementContext:"reference"}),gd=getSideOffsets$1(md,ud.reference);return{data:{referenceHiddenOffsets:gd,referenceHidden:isAnySideFullyClipped$1(gd)}}}case"escaped":{const md=await detectOverflow$1(ed,{...hd,altBoundary:!0}),gd=getSideOffsets$1(md,ud.floating);return{data:{escapedOffsets:gd,escaped:isAnySideFullyClipped$1(gd)}}}default:return{}}}}};async function convertValueToCoords(Ra,ed){const{placement:ud,platform:dd,elements:hd}=Ra,md=await(dd.isRTL==null?void 0:dd.isRTL(hd.floating)),gd=getSide(ud),yd=getAlignment(ud),vd=getSideAxis(ud)==="y",Cd=["left","top"].includes(gd)?-1:1,wd=md&&vd?-1:1,Nd=evaluate$1(ed,Ra);let{mainAxis:Ld,crossAxis:Ud,alignmentAxis:jd}=typeof Nd=="number"?{mainAxis:Nd,crossAxis:0,alignmentAxis:null}:{mainAxis:Nd.mainAxis||0,crossAxis:Nd.crossAxis||0,alignmentAxis:Nd.alignmentAxis};return yd&&typeof jd=="number"&&(Ud=yd==="end"?jd*-1:jd),vd?{x:Ud*wd,y:Ld*Cd}:{x:Ld*Cd,y:Ud*wd}}const offset$3=function(Ra){return Ra===void 0&&(Ra=0),{name:"offset",options:Ra,async fn(ed){var ud,dd;const{x:hd,y:md,placement:gd,middlewareData:yd}=ed,vd=await convertValueToCoords(ed,Ra);return gd===((ud=yd.offset)==null?void 0:ud.placement)&&(dd=yd.arrow)!=null&&dd.alignmentOffset?{}:{x:hd+vd.x,y:md+vd.y,data:{...vd,placement:gd}}}}},shift$1=function(Ra){return Ra===void 0&&(Ra={}),{name:"shift",options:Ra,async fn(ed){const{x:ud,y:dd,placement:hd}=ed,{mainAxis:md=!0,crossAxis:gd=!1,limiter:yd={fn:Yd=>{let{x:zd,y:qd}=Yd;return{x:zd,y:qd}}},...vd}=evaluate$1(Ra,ed),Cd={x:ud,y:dd},wd=await detectOverflow$1(ed,vd),Nd=getSideAxis(getSide(hd)),Ld=getOppositeAxis(Nd);let Ud=Cd[Ld],jd=Cd[Nd];if(md){const Yd=Ld==="y"?"top":"left",zd=Ld==="y"?"bottom":"right",qd=Ud+wd[Yd],Wd=Ud-wd[zd];Ud=clamp(qd,Ud,Wd)}if(gd){const Yd=Nd==="y"?"top":"left",zd=Nd==="y"?"bottom":"right",qd=jd+wd[Yd],Wd=jd-wd[zd];jd=clamp(qd,jd,Wd)}const Gd=yd.fn({...ed,[Ld]:Ud,[Nd]:jd});return{...Gd,data:{x:Gd.x-ud,y:Gd.y-dd,enabled:{[Ld]:md,[Nd]:gd}}}}}},limitShift$1=function(Ra){return Ra===void 0&&(Ra={}),{options:Ra,fn(ed){const{x:ud,y:dd,placement:hd,rects:md,middlewareData:gd}=ed,{offset:yd=0,mainAxis:vd=!0,crossAxis:Cd=!0}=evaluate$1(Ra,ed),wd={x:ud,y:dd},Nd=getSideAxis(hd),Ld=getOppositeAxis(Nd);let Ud=wd[Ld],jd=wd[Nd];const Gd=evaluate$1(yd,ed),Yd=typeof Gd=="number"?{mainAxis:Gd,crossAxis:0}:{mainAxis:0,crossAxis:0,...Gd};if(vd){const Wd=Ld==="y"?"height":"width",Xd=md.reference[Ld]-md.floating[Wd]+Yd.mainAxis,Jd=md.reference[Ld]+md.reference[Wd]-Yd.mainAxis;UdJd&&(Ud=Jd)}if(Cd){var zd,qd;const Wd=Ld==="y"?"width":"height",Xd=["top","left"].includes(getSide(hd)),Jd=md.reference[Nd]-md.floating[Wd]+(Xd&&((zd=gd.offset)==null?void 0:zd[Nd])||0)+(Xd?0:Yd.crossAxis),Zd=md.reference[Nd]+md.reference[Wd]+(Xd?0:((qd=gd.offset)==null?void 0:qd[Nd])||0)-(Xd?Yd.crossAxis:0);jdZd&&(jd=Zd)}return{[Ld]:Ud,[Nd]:jd}}}},size$1=function(Ra){return Ra===void 0&&(Ra={}),{name:"size",options:Ra,async fn(ed){var ud,dd;const{placement:hd,rects:md,platform:gd,elements:yd}=ed,{apply:vd=()=>{},...Cd}=evaluate$1(Ra,ed),wd=await detectOverflow$1(ed,Cd),Nd=getSide(hd),Ld=getAlignment(hd),Ud=getSideAxis(hd)==="y",{width:jd,height:Gd}=md.floating;let Yd,zd;Nd==="top"||Nd==="bottom"?(Yd=Nd,zd=Ld===(await(gd.isRTL==null?void 0:gd.isRTL(yd.floating))?"start":"end")?"left":"right"):(zd=Nd,Yd=Ld==="end"?"top":"bottom");const qd=Gd-wd.top-wd.bottom,Wd=jd-wd.left-wd.right,Xd=min$4(Gd-wd[Yd],qd),Jd=min$4(jd-wd[zd],Wd),Zd=!ed.middlewareData.shift;let mf=Xd,xf=Jd;if((ud=ed.middlewareData.shift)!=null&&ud.enabled.x&&(xf=Wd),(dd=ed.middlewareData.shift)!=null&&dd.enabled.y&&(mf=qd),Zd&&!Ld){const vf=max$5(wd.left,0),gf=max$5(wd.right,0),Af=max$5(wd.top,0),Df=max$5(wd.bottom,0);Ud?xf=jd-2*(vf!==0||gf!==0?vf+gf:max$5(wd.left,wd.right)):mf=Gd-2*(Af!==0||Df!==0?Af+Df:max$5(wd.top,wd.bottom))}await vd({...ed,availableWidth:xf,availableHeight:mf});const _f=await gd.getDimensions(yd.floating);return jd!==_f.width||Gd!==_f.height?{reset:{rects:!0}}:{}}}};function hasWindow(){return typeof window<"u"}function getNodeName$1(Ra){return isNode$2(Ra)?(Ra.nodeName||"").toLowerCase():"#document"}function getWindow$1(Ra){var ed;return(Ra==null||(ed=Ra.ownerDocument)==null?void 0:ed.defaultView)||window}function getDocumentElement$1(Ra){var ed;return(ed=(isNode$2(Ra)?Ra.ownerDocument:Ra.document)||window.document)==null?void 0:ed.documentElement}function isNode$2(Ra){return hasWindow()?Ra instanceof Node||Ra instanceof getWindow$1(Ra).Node:!1}function isElement$2(Ra){return hasWindow()?Ra instanceof Element||Ra instanceof getWindow$1(Ra).Element:!1}function isHTMLElement$1(Ra){return hasWindow()?Ra instanceof HTMLElement||Ra instanceof getWindow$1(Ra).HTMLElement:!1}function isShadowRoot$1(Ra){return!hasWindow()||typeof ShadowRoot>"u"?!1:Ra instanceof ShadowRoot||Ra instanceof getWindow$1(Ra).ShadowRoot}function isOverflowElement(Ra){const{overflow:ed,overflowX:ud,overflowY:dd,display:hd}=getComputedStyle$2(Ra);return/auto|scroll|overlay|hidden|clip/.test(ed+dd+ud)&&!["inline","contents"].includes(hd)}function isTableElement$1(Ra){return["table","td","th"].includes(getNodeName$1(Ra))}function isTopLayer(Ra){return[":popover-open",":modal"].some(ed=>{try{return Ra.matches(ed)}catch{return!1}})}function isContainingBlock(Ra){const ed=isWebKit(),ud=isElement$2(Ra)?getComputedStyle$2(Ra):Ra;return["transform","translate","scale","rotate","perspective"].some(dd=>ud[dd]?ud[dd]!=="none":!1)||(ud.containerType?ud.containerType!=="normal":!1)||!ed&&(ud.backdropFilter?ud.backdropFilter!=="none":!1)||!ed&&(ud.filter?ud.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(dd=>(ud.willChange||"").includes(dd))||["paint","layout","strict","content"].some(dd=>(ud.contain||"").includes(dd))}function getContainingBlock$1(Ra){let ed=getParentNode$1(Ra);for(;isHTMLElement$1(ed)&&!isLastTraversableNode(ed);){if(isContainingBlock(ed))return ed;if(isTopLayer(ed))return null;ed=getParentNode$1(ed)}return null}function isWebKit(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(Ra){return["html","body","#document"].includes(getNodeName$1(Ra))}function getComputedStyle$2(Ra){return getWindow$1(Ra).getComputedStyle(Ra)}function getNodeScroll$1(Ra){return isElement$2(Ra)?{scrollLeft:Ra.scrollLeft,scrollTop:Ra.scrollTop}:{scrollLeft:Ra.scrollX,scrollTop:Ra.scrollY}}function getParentNode$1(Ra){if(getNodeName$1(Ra)==="html")return Ra;const ed=Ra.assignedSlot||Ra.parentNode||isShadowRoot$1(Ra)&&Ra.host||getDocumentElement$1(Ra);return isShadowRoot$1(ed)?ed.host:ed}function getNearestOverflowAncestor(Ra){const ed=getParentNode$1(Ra);return isLastTraversableNode(ed)?Ra.ownerDocument?Ra.ownerDocument.body:Ra.body:isHTMLElement$1(ed)&&isOverflowElement(ed)?ed:getNearestOverflowAncestor(ed)}function getOverflowAncestors(Ra,ed,ud){var dd;ed===void 0&&(ed=[]),ud===void 0&&(ud=!0);const hd=getNearestOverflowAncestor(Ra),md=hd===((dd=Ra.ownerDocument)==null?void 0:dd.body),gd=getWindow$1(hd);if(md){const yd=getFrameElement(gd);return ed.concat(gd,gd.visualViewport||[],isOverflowElement(hd)?hd:[],yd&&ud?getOverflowAncestors(yd):[])}return ed.concat(hd,getOverflowAncestors(hd,[],ud))}function getFrameElement(Ra){return Ra.parent&&Object.getPrototypeOf(Ra.parent)?Ra.frameElement:null}function getCssDimensions(Ra){const ed=getComputedStyle$2(Ra);let ud=parseFloat(ed.width)||0,dd=parseFloat(ed.height)||0;const hd=isHTMLElement$1(Ra),md=hd?Ra.offsetWidth:ud,gd=hd?Ra.offsetHeight:dd,yd=round$3(ud)!==md||round$3(dd)!==gd;return yd&&(ud=md,dd=gd),{width:ud,height:dd,$:yd}}function unwrapElement$1(Ra){return isElement$2(Ra)?Ra:Ra.contextElement}function getScale(Ra){const ed=unwrapElement$1(Ra);if(!isHTMLElement$1(ed))return createCoords(1);const ud=ed.getBoundingClientRect(),{width:dd,height:hd,$:md}=getCssDimensions(ed);let gd=(md?round$3(ud.width):ud.width)/dd,yd=(md?round$3(ud.height):ud.height)/hd;return(!gd||!Number.isFinite(gd))&&(gd=1),(!yd||!Number.isFinite(yd))&&(yd=1),{x:gd,y:yd}}const noOffsets=createCoords(0);function getVisualOffsets(Ra){const ed=getWindow$1(Ra);return!isWebKit()||!ed.visualViewport?noOffsets:{x:ed.visualViewport.offsetLeft,y:ed.visualViewport.offsetTop}}function shouldAddVisualOffsets(Ra,ed,ud){return ed===void 0&&(ed=!1),!ud||ed&&ud!==getWindow$1(Ra)?!1:ed}function getBoundingClientRect$1(Ra,ed,ud,dd){ed===void 0&&(ed=!1),ud===void 0&&(ud=!1);const hd=Ra.getBoundingClientRect(),md=unwrapElement$1(Ra);let gd=createCoords(1);ed&&(dd?isElement$2(dd)&&(gd=getScale(dd)):gd=getScale(Ra));const yd=shouldAddVisualOffsets(md,ud,dd)?getVisualOffsets(md):createCoords(0);let vd=(hd.left+yd.x)/gd.x,Cd=(hd.top+yd.y)/gd.y,wd=hd.width/gd.x,Nd=hd.height/gd.y;if(md){const Ld=getWindow$1(md),Ud=dd&&isElement$2(dd)?getWindow$1(dd):dd;let jd=Ld,Gd=getFrameElement(jd);for(;Gd&&dd&&Ud!==jd;){const Yd=getScale(Gd),zd=Gd.getBoundingClientRect(),qd=getComputedStyle$2(Gd),Wd=zd.left+(Gd.clientLeft+parseFloat(qd.paddingLeft))*Yd.x,Xd=zd.top+(Gd.clientTop+parseFloat(qd.paddingTop))*Yd.y;vd*=Yd.x,Cd*=Yd.y,wd*=Yd.x,Nd*=Yd.y,vd+=Wd,Cd+=Xd,jd=getWindow$1(Gd),Gd=getFrameElement(jd)}}return rectToClientRect$1({width:wd,height:Nd,x:vd,y:Cd})}function getWindowScrollBarX$1(Ra,ed){const ud=getNodeScroll$1(Ra).scrollLeft;return ed?ed.left+ud:getBoundingClientRect$1(getDocumentElement$1(Ra)).left+ud}function getHTMLOffset(Ra,ed,ud){ud===void 0&&(ud=!1);const dd=Ra.getBoundingClientRect(),hd=dd.left+ed.scrollLeft-(ud?0:getWindowScrollBarX$1(Ra,dd)),md=dd.top+ed.scrollTop;return{x:hd,y:md}}function convertOffsetParentRelativeRectToViewportRelativeRect(Ra){let{elements:ed,rect:ud,offsetParent:dd,strategy:hd}=Ra;const md=hd==="fixed",gd=getDocumentElement$1(dd),yd=ed?isTopLayer(ed.floating):!1;if(dd===gd||yd&&md)return ud;let vd={scrollLeft:0,scrollTop:0},Cd=createCoords(1);const wd=createCoords(0),Nd=isHTMLElement$1(dd);if((Nd||!Nd&&!md)&&((getNodeName$1(dd)!=="body"||isOverflowElement(gd))&&(vd=getNodeScroll$1(dd)),isHTMLElement$1(dd))){const Ud=getBoundingClientRect$1(dd);Cd=getScale(dd),wd.x=Ud.x+dd.clientLeft,wd.y=Ud.y+dd.clientTop}const Ld=gd&&!Nd&&!md?getHTMLOffset(gd,vd,!0):createCoords(0);return{width:ud.width*Cd.x,height:ud.height*Cd.y,x:ud.x*Cd.x-vd.scrollLeft*Cd.x+wd.x+Ld.x,y:ud.y*Cd.y-vd.scrollTop*Cd.y+wd.y+Ld.y}}function getClientRects(Ra){return Array.from(Ra.getClientRects())}function getDocumentRect$1(Ra){const ed=getDocumentElement$1(Ra),ud=getNodeScroll$1(Ra),dd=Ra.ownerDocument.body,hd=max$5(ed.scrollWidth,ed.clientWidth,dd.scrollWidth,dd.clientWidth),md=max$5(ed.scrollHeight,ed.clientHeight,dd.scrollHeight,dd.clientHeight);let gd=-ud.scrollLeft+getWindowScrollBarX$1(Ra);const yd=-ud.scrollTop;return getComputedStyle$2(dd).direction==="rtl"&&(gd+=max$5(ed.clientWidth,dd.clientWidth)-hd),{width:hd,height:md,x:gd,y:yd}}function getViewportRect$1(Ra,ed){const ud=getWindow$1(Ra),dd=getDocumentElement$1(Ra),hd=ud.visualViewport;let md=dd.clientWidth,gd=dd.clientHeight,yd=0,vd=0;if(hd){md=hd.width,gd=hd.height;const Cd=isWebKit();(!Cd||Cd&&ed==="fixed")&&(yd=hd.offsetLeft,vd=hd.offsetTop)}return{width:md,height:gd,x:yd,y:vd}}function getInnerBoundingClientRect$1(Ra,ed){const ud=getBoundingClientRect$1(Ra,!0,ed==="fixed"),dd=ud.top+Ra.clientTop,hd=ud.left+Ra.clientLeft,md=isHTMLElement$1(Ra)?getScale(Ra):createCoords(1),gd=Ra.clientWidth*md.x,yd=Ra.clientHeight*md.y,vd=hd*md.x,Cd=dd*md.y;return{width:gd,height:yd,x:vd,y:Cd}}function getClientRectFromClippingAncestor(Ra,ed,ud){let dd;if(ed==="viewport")dd=getViewportRect$1(Ra,ud);else if(ed==="document")dd=getDocumentRect$1(getDocumentElement$1(Ra));else if(isElement$2(ed))dd=getInnerBoundingClientRect$1(ed,ud);else{const hd=getVisualOffsets(Ra);dd={x:ed.x-hd.x,y:ed.y-hd.y,width:ed.width,height:ed.height}}return rectToClientRect$1(dd)}function hasFixedPositionAncestor(Ra,ed){const ud=getParentNode$1(Ra);return ud===ed||!isElement$2(ud)||isLastTraversableNode(ud)?!1:getComputedStyle$2(ud).position==="fixed"||hasFixedPositionAncestor(ud,ed)}function getClippingElementAncestors(Ra,ed){const ud=ed.get(Ra);if(ud)return ud;let dd=getOverflowAncestors(Ra,[],!1).filter(yd=>isElement$2(yd)&&getNodeName$1(yd)!=="body"),hd=null;const md=getComputedStyle$2(Ra).position==="fixed";let gd=md?getParentNode$1(Ra):Ra;for(;isElement$2(gd)&&!isLastTraversableNode(gd);){const yd=getComputedStyle$2(gd),vd=isContainingBlock(gd);!vd&&yd.position==="fixed"&&(hd=null),(md?!vd&&!hd:!vd&&yd.position==="static"&&!!hd&&["absolute","fixed"].includes(hd.position)||isOverflowElement(gd)&&!vd&&hasFixedPositionAncestor(Ra,gd))?dd=dd.filter(wd=>wd!==gd):hd=yd,gd=getParentNode$1(gd)}return ed.set(Ra,dd),dd}function getClippingRect$1(Ra){let{element:ed,boundary:ud,rootBoundary:dd,strategy:hd}=Ra;const gd=[...ud==="clippingAncestors"?isTopLayer(ed)?[]:getClippingElementAncestors(ed,this._c):[].concat(ud),dd],yd=gd[0],vd=gd.reduce((Cd,wd)=>{const Nd=getClientRectFromClippingAncestor(ed,wd,hd);return Cd.top=max$5(Nd.top,Cd.top),Cd.right=min$4(Nd.right,Cd.right),Cd.bottom=min$4(Nd.bottom,Cd.bottom),Cd.left=max$5(Nd.left,Cd.left),Cd},getClientRectFromClippingAncestor(ed,yd,hd));return{width:vd.right-vd.left,height:vd.bottom-vd.top,x:vd.left,y:vd.top}}function getDimensions(Ra){const{width:ed,height:ud}=getCssDimensions(Ra);return{width:ed,height:ud}}function getRectRelativeToOffsetParent(Ra,ed,ud){const dd=isHTMLElement$1(ed),hd=getDocumentElement$1(ed),md=ud==="fixed",gd=getBoundingClientRect$1(Ra,!0,md,ed);let yd={scrollLeft:0,scrollTop:0};const vd=createCoords(0);if(dd||!dd&&!md)if((getNodeName$1(ed)!=="body"||isOverflowElement(hd))&&(yd=getNodeScroll$1(ed)),dd){const Ld=getBoundingClientRect$1(ed,!0,md,ed);vd.x=Ld.x+ed.clientLeft,vd.y=Ld.y+ed.clientTop}else hd&&(vd.x=getWindowScrollBarX$1(hd));const Cd=hd&&!dd&&!md?getHTMLOffset(hd,yd):createCoords(0),wd=gd.left+yd.scrollLeft-vd.x-Cd.x,Nd=gd.top+yd.scrollTop-vd.y-Cd.y;return{x:wd,y:Nd,width:gd.width,height:gd.height}}function isStaticPositioned(Ra){return getComputedStyle$2(Ra).position==="static"}function getTrueOffsetParent$1(Ra,ed){if(!isHTMLElement$1(Ra)||getComputedStyle$2(Ra).position==="fixed")return null;if(ed)return ed(Ra);let ud=Ra.offsetParent;return getDocumentElement$1(Ra)===ud&&(ud=ud.ownerDocument.body),ud}function getOffsetParent$1(Ra,ed){const ud=getWindow$1(Ra);if(isTopLayer(Ra))return ud;if(!isHTMLElement$1(Ra)){let hd=getParentNode$1(Ra);for(;hd&&!isLastTraversableNode(hd);){if(isElement$2(hd)&&!isStaticPositioned(hd))return hd;hd=getParentNode$1(hd)}return ud}let dd=getTrueOffsetParent$1(Ra,ed);for(;dd&&isTableElement$1(dd)&&isStaticPositioned(dd);)dd=getTrueOffsetParent$1(dd,ed);return dd&&isLastTraversableNode(dd)&&isStaticPositioned(dd)&&!isContainingBlock(dd)?ud:dd||getContainingBlock$1(Ra)||ud}const getElementRects=async function(Ra){const ed=this.getOffsetParent||getOffsetParent$1,ud=this.getDimensions,dd=await ud(Ra.floating);return{reference:getRectRelativeToOffsetParent(Ra.reference,await ed(Ra.floating),Ra.strategy),floating:{x:0,y:0,width:dd.width,height:dd.height}}};function isRTL(Ra){return getComputedStyle$2(Ra).direction==="rtl"}const platform$3={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement:getDocumentElement$1,getClippingRect:getClippingRect$1,getOffsetParent:getOffsetParent$1,getElementRects,getClientRects,getDimensions,getScale,isElement:isElement$2,isRTL};function rectsAreEqual(Ra,ed){return Ra.x===ed.x&&Ra.y===ed.y&&Ra.width===ed.width&&Ra.height===ed.height}function observeMove(Ra,ed){let ud=null,dd;const hd=getDocumentElement$1(Ra);function md(){var yd;clearTimeout(dd),(yd=ud)==null||yd.disconnect(),ud=null}function gd(yd,vd){yd===void 0&&(yd=!1),vd===void 0&&(vd=1),md();const Cd=Ra.getBoundingClientRect(),{left:wd,top:Nd,width:Ld,height:Ud}=Cd;if(yd||ed(),!Ld||!Ud)return;const jd=floor$2(Nd),Gd=floor$2(hd.clientWidth-(wd+Ld)),Yd=floor$2(hd.clientHeight-(Nd+Ud)),zd=floor$2(wd),Wd={rootMargin:-jd+"px "+-Gd+"px "+-Yd+"px "+-zd+"px",threshold:max$5(0,min$4(1,vd))||1};let Xd=!0;function Jd(Zd){const mf=Zd[0].intersectionRatio;if(mf!==vd){if(!Xd)return gd();mf?gd(!1,mf):dd=setTimeout(()=>{gd(!1,1e-7)},1e3)}mf===1&&!rectsAreEqual(Cd,Ra.getBoundingClientRect())&&gd(),Xd=!1}try{ud=new IntersectionObserver(Jd,{...Wd,root:hd.ownerDocument})}catch{ud=new IntersectionObserver(Jd,Wd)}ud.observe(Ra)}return gd(!0),md}function autoUpdate(Ra,ed,ud,dd){dd===void 0&&(dd={});const{ancestorScroll:hd=!0,ancestorResize:md=!0,elementResize:gd=typeof ResizeObserver=="function",layoutShift:yd=typeof IntersectionObserver=="function",animationFrame:vd=!1}=dd,Cd=unwrapElement$1(Ra),wd=hd||md?[...Cd?getOverflowAncestors(Cd):[],...getOverflowAncestors(ed)]:[];wd.forEach(zd=>{hd&&zd.addEventListener("scroll",ud,{passive:!0}),md&&zd.addEventListener("resize",ud)});const Nd=Cd&&yd?observeMove(Cd,ud):null;let Ld=-1,Ud=null;gd&&(Ud=new ResizeObserver(zd=>{let[qd]=zd;qd&&qd.target===Cd&&Ud&&(Ud.unobserve(ed),cancelAnimationFrame(Ld),Ld=requestAnimationFrame(()=>{var Wd;(Wd=Ud)==null||Wd.observe(ed)})),ud()}),Cd&&!vd&&Ud.observe(Cd),Ud.observe(ed));let jd,Gd=vd?getBoundingClientRect$1(Ra):null;vd&&Yd();function Yd(){const zd=getBoundingClientRect$1(Ra);Gd&&!rectsAreEqual(Gd,zd)&&ud(),Gd=zd,jd=requestAnimationFrame(Yd)}return ud(),()=>{var zd;wd.forEach(qd=>{hd&&qd.removeEventListener("scroll",ud),md&&qd.removeEventListener("resize",ud)}),Nd==null||Nd(),(zd=Ud)==null||zd.disconnect(),Ud=null,vd&&cancelAnimationFrame(jd)}}const offset$2=offset$3,shift=shift$1,flip$2=flip$3,size=size$1,hide$2=hide$3,arrow$3=arrow$4,limitShift=limitShift$1,computePosition=(Ra,ed,ud)=>{const dd=new Map,hd={platform:platform$3,...ud},md={...hd.platform,_c:dd};return computePosition$1(Ra,ed,{...hd,platform:md})};function isComponentPublicInstance(Ra){return Ra!=null&&typeof Ra=="object"&&"$el"in Ra}function unwrapElement(Ra){if(isComponentPublicInstance(Ra)){const ed=Ra.$el;return isNode$2(ed)&&getNodeName$1(ed)==="#comment"?null:ed}return Ra}function toValue$1(Ra){return typeof Ra=="function"?Ra():unref(Ra)}function arrow$2(Ra){return{name:"arrow",options:Ra,fn(ed){const ud=unwrapElement(toValue$1(Ra.element));return ud==null?{}:arrow$3({element:ud,padding:Ra.padding}).fn(ed)}}}function getDPR(Ra){return typeof window>"u"?1:(Ra.ownerDocument.defaultView||window).devicePixelRatio||1}function roundByDPR(Ra,ed){const ud=getDPR(Ra);return Math.round(ed*ud)/ud}function useFloating(Ra,ed,ud){ud===void 0&&(ud={});const dd=ud.whileElementsMounted,hd=computed(()=>{var mf;return(mf=toValue$1(ud.open))!=null?mf:!0}),md=computed(()=>toValue$1(ud.middleware)),gd=computed(()=>{var mf;return(mf=toValue$1(ud.placement))!=null?mf:"bottom"}),yd=computed(()=>{var mf;return(mf=toValue$1(ud.strategy))!=null?mf:"absolute"}),vd=computed(()=>{var mf;return(mf=toValue$1(ud.transform))!=null?mf:!0}),Cd=computed(()=>unwrapElement(Ra.value)),wd=computed(()=>unwrapElement(ed.value)),Nd=ref$1(0),Ld=ref$1(0),Ud=ref$1(yd.value),jd=ref$1(gd.value),Gd=shallowRef({}),Yd=ref$1(!1),zd=computed(()=>{const mf={position:Ud.value,left:"0",top:"0"};if(!wd.value)return mf;const xf=roundByDPR(wd.value,Nd.value),_f=roundByDPR(wd.value,Ld.value);return vd.value?{...mf,transform:"translate("+xf+"px, "+_f+"px)",...getDPR(wd.value)>=1.5&&{willChange:"transform"}}:{position:Ud.value,left:xf+"px",top:_f+"px"}});let qd;function Wd(){if(Cd.value==null||wd.value==null)return;const mf=hd.value;computePosition(Cd.value,wd.value,{middleware:md.value,placement:gd.value,strategy:yd.value}).then(xf=>{Nd.value=xf.x,Ld.value=xf.y,Ud.value=xf.strategy,jd.value=xf.placement,Gd.value=xf.middlewareData,Yd.value=mf!==!1})}function Xd(){typeof qd=="function"&&(qd(),qd=void 0)}function Jd(){if(Xd(),dd===void 0){Wd();return}if(Cd.value!=null&&wd.value!=null){qd=dd(Cd.value,wd.value,Wd);return}}function Zd(){hd.value||(Yd.value=!1)}return watch([md,gd,yd,hd],Wd,{flush:"sync"}),watch([Cd,wd],Jd,{flush:"sync"}),watch(hd,Zd,{flush:"sync"}),getCurrentScope()&&onScopeDispose(Xd),{x:shallowReadonly(Nd),y:shallowReadonly(Ld),strategy:shallowReadonly(Ud),placement:shallowReadonly(jd),middlewareData:shallowReadonly(Gd),isPositioned:shallowReadonly(Yd),floatingStyles:zd,update:Wd}}let $488c6ddbf4ef74c2$var$formatterCache=new Map,$488c6ddbf4ef74c2$var$supportsSignDisplay=!1;try{$488c6ddbf4ef74c2$var$supportsSignDisplay=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let $488c6ddbf4ef74c2$var$supportsUnit=!1;try{$488c6ddbf4ef74c2$var$supportsUnit=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const $488c6ddbf4ef74c2$var$UNITS={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5{format(ed){let ud="";if(!$488c6ddbf4ef74c2$var$supportsSignDisplay&&this.options.signDisplay!=null?ud=$488c6ddbf4ef74c2$export$711b50b3c525e0f2(this.numberFormatter,this.options.signDisplay,ed):ud=this.numberFormatter.format(ed),this.options.style==="unit"&&!$488c6ddbf4ef74c2$var$supportsUnit){var dd;let{unit:hd,unitDisplay:md="short",locale:gd}=this.resolvedOptions();if(!hd)return ud;let yd=(dd=$488c6ddbf4ef74c2$var$UNITS[hd])===null||dd===void 0?void 0:dd[md];ud+=yd[gd]||yd.default}return ud}formatToParts(ed){return this.numberFormatter.formatToParts(ed)}formatRange(ed,ud){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(ed,ud);if(ud= start date");return`${this.format(ed)} – ${this.format(ud)}`}formatRangeToParts(ed,ud){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(ed,ud);if(ud= start date");let dd=this.numberFormatter.formatToParts(ed),hd=this.numberFormatter.formatToParts(ud);return[...dd.map(md=>({...md,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...hd.map(md=>({...md,source:"endRange"}))]}resolvedOptions(){let ed=this.numberFormatter.resolvedOptions();return!$488c6ddbf4ef74c2$var$supportsSignDisplay&&this.options.signDisplay!=null&&(ed={...ed,signDisplay:this.options.signDisplay}),!$488c6ddbf4ef74c2$var$supportsUnit&&this.options.style==="unit"&&(ed={...ed,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),ed}constructor(ed,ud={}){this.numberFormatter=$488c6ddbf4ef74c2$var$getCachedNumberFormatter(ed,ud),this.options=ud}}function $488c6ddbf4ef74c2$var$getCachedNumberFormatter(Ra,ed={}){let{numberingSystem:ud}=ed;if(ud&&Ra.includes("-nu-")&&(Ra.includes("-u-")||(Ra+="-u-"),Ra+=`-nu-${ud}`),ed.style==="unit"&&!$488c6ddbf4ef74c2$var$supportsUnit){var dd;let{unit:gd,unitDisplay:yd="short"}=ed;if(!gd)throw new Error('unit option must be provided with style: "unit"');if(!(!((dd=$488c6ddbf4ef74c2$var$UNITS[gd])===null||dd===void 0)&&dd[yd]))throw new Error(`Unsupported unit ${gd} with unitDisplay = ${yd}`);ed={...ed,style:"decimal"}}let hd=Ra+(ed?Object.entries(ed).sort((gd,yd)=>gd[0]0||Object.is(ud,0):ed==="exceptZero"&&(Object.is(ud,-0)||Object.is(ud,0)?ud=Math.abs(ud):dd=ud>0),dd){let hd=Ra.format(-ud),md=Ra.format(ud),gd=hd.replace(md,"").replace(/\u200e|\u061C/,"");return[...gd].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),hd.replace(md,"!!!").replace(gd,"+").replace("!!!",md)}else return Ra.format(ud)}}const $6c7bd7858deea686$var$CURRENCY_SIGN_REGEX=new RegExp("^.*\\(.*\\).*$"),$6c7bd7858deea686$var$NUMBERING_SYSTEMS=["latn","arab","hanidec","deva","beng"];class $6c7bd7858deea686$export$cd11ab140839f11d{parse(ed){return $6c7bd7858deea686$var$getNumberParserImpl(this.locale,this.options,ed).parse(ed)}isValidPartialNumber(ed,ud,dd){return $6c7bd7858deea686$var$getNumberParserImpl(this.locale,this.options,ed).isValidPartialNumber(ed,ud,dd)}getNumberingSystem(ed){return $6c7bd7858deea686$var$getNumberParserImpl(this.locale,this.options,ed).options.numberingSystem}constructor(ed,ud={}){this.locale=ed,this.options=ud}}const $6c7bd7858deea686$var$numberParserCache=new Map;function $6c7bd7858deea686$var$getNumberParserImpl(Ra,ed,ud){let dd=$6c7bd7858deea686$var$getCachedNumberParser(Ra,ed);if(!Ra.includes("-nu-")&&!dd.isValidPartialNumber(ud)){for(let hd of $6c7bd7858deea686$var$NUMBERING_SYSTEMS)if(hd!==dd.options.numberingSystem){let md=$6c7bd7858deea686$var$getCachedNumberParser(Ra+(Ra.includes("-u-")?"-nu-":"-u-nu-")+hd,ed);if(md.isValidPartialNumber(ud))return md}}return dd}function $6c7bd7858deea686$var$getCachedNumberParser(Ra,ed){let ud=Ra+(ed?Object.entries(ed).sort((hd,md)=>hd[0]-1&&(ud=`-${ud}`)}let dd=ud?+ud:NaN;if(isNaN(dd))return NaN;if(this.options.style==="percent"){var hd,md;let gd={...this.options,style:"decimal",minimumFractionDigits:Math.min(((hd=this.options.minimumFractionDigits)!==null&&hd!==void 0?hd:0)+2,20),maximumFractionDigits:Math.min(((md=this.options.maximumFractionDigits)!==null&&md!==void 0?md:0)+2,20)};return new $6c7bd7858deea686$export$cd11ab140839f11d(this.locale,gd).parse(new $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5(this.locale,gd).format(dd))}return this.options.currencySign==="accounting"&&$6c7bd7858deea686$var$CURRENCY_SIGN_REGEX.test(ed)&&(dd=-1*dd),dd}sanitize(ed){return ed=ed.replace(this.symbols.literals,""),this.symbols.minusSign&&(ed=ed.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(ed=ed.replace(",",this.symbols.decimal),ed=ed.replace("،",this.symbols.decimal)),this.symbols.group&&(ed=$6c7bd7858deea686$var$replaceAll(ed,".",this.symbols.group))),this.options.locale==="fr-FR"&&(ed=$6c7bd7858deea686$var$replaceAll(ed,"."," ")),ed}isValidPartialNumber(ed,ud=-1/0,dd=1/0){return ed=this.sanitize(ed),this.symbols.minusSign&&ed.startsWith(this.symbols.minusSign)&&ud<0?ed=ed.slice(this.symbols.minusSign.length):this.symbols.plusSign&&ed.startsWith(this.symbols.plusSign)&&dd>0&&(ed=ed.slice(this.symbols.plusSign.length)),this.symbols.group&&ed.startsWith(this.symbols.group)||this.symbols.decimal&&ed.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(ed=$6c7bd7858deea686$var$replaceAll(ed,this.symbols.group,"")),ed=ed.replace(this.symbols.numeral,""),this.symbols.decimal&&(ed=ed.replace(this.symbols.decimal,"")),ed.length===0)}constructor(ed,ud={}){this.locale=ed,this.formatter=new Intl.NumberFormat(ed,ud),this.options=this.formatter.resolvedOptions(),this.symbols=$6c7bd7858deea686$var$getSymbols(ed,this.formatter,this.options,ud);var dd,hd;this.options.style==="percent"&&(((dd=this.options.minimumFractionDigits)!==null&&dd!==void 0?dd:0)>18||((hd=this.options.maximumFractionDigits)!==null&&hd!==void 0?hd:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const $6c7bd7858deea686$var$nonLiteralParts=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),$6c7bd7858deea686$var$pluralNumbers=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function $6c7bd7858deea686$var$getSymbols(Ra,ed,ud,dd){var hd,md,gd,yd;let vd=new Intl.NumberFormat(Ra,{...ud,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),Cd=vd.formatToParts(-10000.111),wd=vd.formatToParts(10000.111),Nd=$6c7bd7858deea686$var$pluralNumbers.map(vf=>vd.formatToParts(vf));var Ld;let Ud=(Ld=(hd=Cd.find(vf=>vf.type==="minusSign"))===null||hd===void 0?void 0:hd.value)!==null&&Ld!==void 0?Ld:"-",jd=(md=wd.find(vf=>vf.type==="plusSign"))===null||md===void 0?void 0:md.value;!jd&&((dd==null?void 0:dd.signDisplay)==="exceptZero"||(dd==null?void 0:dd.signDisplay)==="always")&&(jd="+");let Yd=(gd=new Intl.NumberFormat(Ra,{...ud,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(vf=>vf.type==="decimal"))===null||gd===void 0?void 0:gd.value,zd=(yd=Cd.find(vf=>vf.type==="group"))===null||yd===void 0?void 0:yd.value,qd=Cd.filter(vf=>!$6c7bd7858deea686$var$nonLiteralParts.has(vf.type)).map(vf=>$6c7bd7858deea686$var$escapeRegex(vf.value)),Wd=Nd.flatMap(vf=>vf.filter(gf=>!$6c7bd7858deea686$var$nonLiteralParts.has(gf.type)).map(gf=>$6c7bd7858deea686$var$escapeRegex(gf.value))),Xd=[...new Set([...qd,...Wd])].sort((vf,gf)=>gf.length-vf.length),Jd=Xd.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${Xd.join("|")}|[\\p{White_Space}]`,"gu"),Zd=[...new Intl.NumberFormat(ud.locale,{useGrouping:!1}).format(9876543210)].reverse(),mf=new Map(Zd.map((vf,gf)=>[vf,gf])),xf=new RegExp(`[${Zd.join("")}]`,"g");return{minusSign:Ud,plusSign:jd,decimal:Yd,group:zd,literals:Jd,numeral:xf,index:vf=>String(mf.get(vf))}}function $6c7bd7858deea686$var$replaceAll(Ra,ed,ud){return Ra.replaceAll?Ra.replaceAll(ed,ud):Ra.split(ed).join(ud)}function $6c7bd7858deea686$var$escapeRegex(Ra){return Ra.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function te$5(Ra,ed){const ud=typeof Ra=="string"&&!ed?`${Ra}Context`:ed,dd=Symbol(ud);return[hd=>{const md=inject(dd,hd);if(md||md===null)return md;throw new Error(`Injection \`${dd.toString()}\` not found. Component must be used within ${Array.isArray(Ra)?`one of the following components: ${Ra.join(", ")}`:`\`${Ra}\``}`)},hd=>(provide(dd,hd),hd)]}function jt$3(Ra,ed,ud){const dd=ud.originalEvent.target,hd=new CustomEvent(Ra,{bubbles:!1,cancelable:!0,detail:ud});ed&&dd.addEventListener(Ra,ed,{once:!0}),dd.dispatchEvent(hd)}function Ut$4(Ra,ed=Number.NEGATIVE_INFINITY,ud=Number.POSITIVE_INFINITY){return Math.min(ud,Math.max(ed,Ra))}function Da$1(Ra,ed){let ud=Ra;const dd=ed.toString(),hd=dd.indexOf("."),md=hd>=0?dd.length-hd:0;if(md>0){const gd=10**md;ud=Math.round(ud*gd)/gd}return ud}function Wr$4(Ra,ed,ud,dd){ed=Number(ed),ud=Number(ud);const hd=(Ra-(Number.isNaN(ed)?0:ed))%dd;let md=Da$1(Math.abs(hd)*2>=dd?Ra+Math.sign(hd)*(dd-Math.abs(hd)):Ra-hd,dd);return Number.isNaN(ed)?!Number.isNaN(ud)&&md>ud&&(md=Math.floor(Da$1(ud/dd,dd))*dd):mdud&&(md=ed+Math.floor(Da$1((ud-ed)/dd,dd))*dd),md=Da$1(md,dd),md}function ht$3(Ra){return Ra==null}function ni$4(Ra,ed){var ud;const dd=shallowRef();return watchEffect(()=>{dd.value=Ra()},{...ed,flush:(ud=void 0)!=null?ud:"sync"}),readonly(dd)}function bt$5(Ra){return getCurrentScope()?(onScopeDispose(Ra),!0):!1}function ua$2(){const Ra=new Set,ed=ud=>{Ra.delete(ud)};return{on:ud=>{Ra.add(ud);const dd=()=>ed(ud);return bt$5(dd),{off:dd}},off:ed,trigger:(...ud)=>Promise.all(Array.from(Ra).map(dd=>dd(...ud)))}}function li$4(Ra){let ed=!1,ud;const dd=effectScope(!0);return(...hd)=>(ed||(ud=dd.run(()=>Ra(...hd)),ed=!0),ud)}function Dl$3(Ra){let ed=0,ud,dd;const hd=()=>{ed-=1,dd&&ed<=0&&(dd.stop(),ud=void 0,dd=void 0)};return(...md)=>(ed+=1,ud||(dd=effectScope(!0),ud=dd.run(()=>Ra(...md))),bt$5(hd),ud)}function je$6(Ra){return typeof Ra=="function"?Ra():unref(Ra)}function si$4(Ra){if(!isRef(Ra))return reactive(Ra);const ed=new Proxy({},{get(ud,dd,hd){return unref(Reflect.get(Ra.value,dd,hd))},set(ud,dd,hd){return isRef(Ra.value[dd])&&!isRef(hd)?Ra.value[dd].value=hd:Ra.value[dd]=hd,!0},deleteProperty(ud,dd){return Reflect.deleteProperty(Ra.value,dd)},has(ud,dd){return Reflect.has(Ra.value,dd)},ownKeys(){return Object.keys(Ra.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return reactive(ed)}function $l$3(Ra){return si$4(computed(Ra))}const Je$3=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ri$4=Ra=>typeof Ra<"u",ui$4=Object.prototype.toString,di$4=Ra=>ui$4.call(Ra)==="[object Object]",Na$1=()=>{},jo$2=ci$5();function ci$5(){var Ra,ed;return Je$3&&((Ra=window==null?void 0:window.navigator)==null?void 0:Ra.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((ed=window==null?void 0:window.navigator)==null?void 0:ed.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Bl$3(Ra,ed){function ud(...dd){return new Promise((hd,md)=>{Promise.resolve(Ra(()=>ed.apply(this,dd),{fn:ed,thisArg:this,args:dd})).then(hd).catch(md)})}return ud}const Il$3=Ra=>Ra();function pi$6(Ra=Il$3){const ed=ref$1(!0);function ud(){ed.value=!1}function dd(){ed.value=!0}const hd=(...md)=>{ed.value&&Ra(...md)};return{isActive:readonly(ed),pause:ud,resume:dd,eventFilter:hd}}function Tl$3(Ra){return getCurrentInstance()}function Tt$3(Ra,ed=1e4){return customRef((ud,dd)=>{let hd=je$6(Ra),md;const gd=()=>setTimeout(()=>{hd=je$6(Ra),dd()},je$6(ed));return bt$5(()=>{clearTimeout(md)}),{get(){return ud(),hd},set(yd){hd=yd,dd(),clearTimeout(md),md=gd()}}})}function vi$2(Ra,ed,ud={}){const{eventFilter:dd=Il$3,...hd}=ud;return watch(Ra,Bl$3(dd,ed),hd)}function Uo$3(Ra,ed,ud={}){const{eventFilter:dd,...hd}=ud,{eventFilter:md,pause:gd,resume:yd,isActive:vd}=pi$6(dd);return{stop:vi$2(Ra,ed,{...hd,eventFilter:md}),pause:gd,resume:yd,isActive:vd}}function mi$2(Ra,ed,...[ud]){const{flush:dd="sync",deep:hd=!1,immediate:md=!0,direction:gd="both",transform:yd={}}=ud||{},vd=[],Cd="ltr"in yd&&yd.ltr||(Nd=>Nd),wd="rtl"in yd&&yd.rtl||(Nd=>Nd);return(gd==="both"||gd==="ltr")&&vd.push(Uo$3(Ra,Nd=>{vd.forEach(Ld=>Ld.pause()),ed.value=Cd(Nd),vd.forEach(Ld=>Ld.resume())},{flush:dd,deep:hd,immediate:md})),(gd==="both"||gd==="rtl")&&vd.push(Uo$3(ed,Nd=>{vd.forEach(Ld=>Ld.pause()),Ra.value=wd(Nd),vd.forEach(Ld=>Ld.resume())},{flush:dd,deep:hd,immediate:md})),()=>{vd.forEach(Nd=>Nd.stop())}}function hi$3(Ra,ed){Tl$3()&&onBeforeUnmount(Ra,ed)}function Un$4(Ra,ed,ud={}){const{immediate:dd=!0}=ud,hd=ref$1(!1);let md=null;function gd(){md&&(clearTimeout(md),md=null)}function yd(){hd.value=!1,gd()}function vd(...Cd){gd(),hd.value=!0,md=setTimeout(()=>{hd.value=!1,md=null,Ra(...Cd)},je$6(ed))}return dd&&(hd.value=!0,Je$3&&vd()),bt$5(yd),{isPending:readonly(hd),start:vd,stop:yd}}function $e$4(Ra){var ed;const ud=je$6(Ra);return(ed=ud==null?void 0:ud.$el)!=null?ed:ud}const Rt$4=Je$3?window:void 0;function He$4(...Ra){let ed,ud,dd,hd;if(typeof Ra[0]=="string"||Array.isArray(Ra[0])?([ud,dd,hd]=Ra,ed=Rt$4):[ed,ud,dd,hd]=Ra,!ed)return Na$1;Array.isArray(ud)||(ud=[ud]),Array.isArray(dd)||(dd=[dd]);const md=[],gd=()=>{md.forEach(wd=>wd()),md.length=0},yd=(wd,Nd,Ld,Ud)=>(wd.addEventListener(Nd,Ld,Ud),()=>wd.removeEventListener(Nd,Ld,Ud)),vd=watch(()=>[$e$4(ed),je$6(hd)],([wd,Nd])=>{if(gd(),!wd)return;const Ld=di$4(Nd)?{...Nd}:Nd;md.push(...ud.flatMap(Ud=>dd.map(jd=>yd(wd,Ud,jd,Ld))))},{immediate:!0,flush:"post"}),Cd=()=>{vd(),gd()};return bt$5(Cd),Cd}function Ci$2(Ra){return typeof Ra=="function"?Ra:typeof Ra=="string"?ed=>ed.key===Ra:Array.isArray(Ra)?ed=>Ra.includes(ed.key):()=>!0}function Gn$4(...Ra){let ed,ud,dd={};Ra.length===3?(ed=Ra[0],ud=Ra[1],dd=Ra[2]):Ra.length===2?typeof Ra[1]=="object"?(ed=!0,ud=Ra[0],dd=Ra[1]):(ed=Ra[0],ud=Ra[1]):(ed=!0,ud=Ra[0]);const{target:hd=Rt$4,eventName:md="keydown",passive:gd=!1,dedupe:yd=!1}=dd,vd=Ci$2(ed);return He$4(hd,md,Cd=>{Cd.repeat&&je$6(yd)||vd(Cd)&&ud(Cd)},gd)}function Ga$2(){const Ra=ref$1(!1),ed=getCurrentInstance();return ed&&onMounted(()=>{Ra.value=!0},ed),Ra}function _i$2(Ra){return JSON.parse(JSON.stringify(Ra))}function ne$5(Ra,ed,ud,dd={}){var hd,md,gd;const{clone:yd=!1,passive:vd=!1,eventName:Cd,deep:wd=!1,defaultValue:Nd,shouldEmit:Ld}=dd,Ud=getCurrentInstance(),jd=ud||(Ud==null?void 0:Ud.emit)||((hd=Ud==null?void 0:Ud.$emit)==null?void 0:hd.bind(Ud))||((gd=(md=Ud==null?void 0:Ud.proxy)==null?void 0:md.$emit)==null?void 0:gd.bind(Ud==null?void 0:Ud.proxy));let Gd=Cd;ed||(ed="modelValue"),Gd=Gd||`update:${ed.toString()}`;const Yd=Wd=>yd?typeof yd=="function"?yd(Wd):_i$2(Wd):Wd,zd=()=>ri$4(Ra[ed])?Yd(Ra[ed]):Nd,qd=Wd=>{Ld?Ld(Wd)&&jd(Gd,Wd):jd(Gd,Wd)};if(vd){const Wd=zd(),Xd=ref$1(Wd);let Jd=!1;return watch(()=>Ra[ed],Zd=>{Jd||(Jd=!0,Xd.value=Yd(Zd),nextTick$1(()=>Jd=!1))}),watch(Xd,Zd=>{!Jd&&(Zd!==Ra[ed]||wd)&&qd(Zd)},{deep:wd}),Xd}else return computed({get(){return zd()},set(Wd){qd(Wd)}})}function qa(Ra){return Ra?Ra.flatMap(ed=>ed.type===Fragment?qa(ed.children):[ed]):[]}function me$4(){let Ra=document.activeElement;if(Ra==null)return null;for(;Ra!=null&&Ra.shadowRoot!=null&&Ra.shadowRoot.activeElement!=null;)Ra=Ra.shadowRoot.activeElement;return Ra}const Ei$2=["INPUT","TEXTAREA"];function At$5(Ra,ed,ud,dd={}){if(!ed||dd.enableIgnoredElement&&Ei$2.includes(ed.nodeName))return null;const{arrowKeyOptions:hd="both",attributeName:md="[data-radix-vue-collection-item]",itemsArray:gd=[],loop:yd=!0,dir:vd="ltr",preventScroll:Cd=!0,focus:wd=!1}=dd,[Nd,Ld,Ud,jd,Gd,Yd]=[Ra.key==="ArrowRight",Ra.key==="ArrowLeft",Ra.key==="ArrowUp",Ra.key==="ArrowDown",Ra.key==="Home",Ra.key==="End"],zd=Ud||jd,qd=Nd||Ld;if(!Gd&&!Yd&&(!zd&&!qd||hd==="vertical"&&qd||hd==="horizontal"&&zd))return null;const Wd=ud?Array.from(ud.querySelectorAll(md)):gd;if(!Wd.length)return null;Cd&&Ra.preventDefault();let Xd=null;return qd||zd?Xd=Ml$3(Wd,ed,{goForward:zd?jd:vd==="ltr"?Nd:Ld,loop:yd}):Gd?Xd=Wd.at(0)||null:Yd&&(Xd=Wd.at(-1)||null),wd&&(Xd==null||Xd.focus()),Xd}function Ml$3(Ra,ed,ud,dd=Ra.length){if(--dd===0)return null;const hd=Ra.indexOf(ed),md=ud.goForward?hd+1:hd-1;if(!ud.loop&&(md<0||md>=Ra.length))return null;const gd=(md+Ra.length)%Ra.length,yd=Ra[gd];return yd?yd.hasAttribute("disabled")&&yd.getAttribute("disabled")!=="false"?Ml$3(Ra,yd,ud,dd):yd:null}function Cn$3(Ra){if(Ra===null||typeof Ra!="object")return!1;const ed=Object.getPrototypeOf(Ra);return ed!==null&&ed!==Object.prototype&&Object.getPrototypeOf(ed)!==null||Symbol.iterator in Ra?!1:Symbol.toStringTag in Ra?Object.prototype.toString.call(Ra)==="[object Module]":!0}function $n$4(Ra,ed,ud=".",dd){if(!Cn$3(ed))return $n$4(Ra,{},ud);const hd=Object.assign({},ed);for(const md in Ra){if(md==="__proto__"||md==="constructor")continue;const gd=Ra[md];gd!=null&&(Array.isArray(gd)&&Array.isArray(hd[md])?hd[md]=[...gd,...hd[md]]:Cn$3(gd)&&Cn$3(hd[md])?hd[md]=$n$4(gd,hd[md],(ud?`${ud}.`:"")+md.toString()):hd[md]=gd)}return hd}function Pi$2(Ra){return(...ed)=>ed.reduce((ud,dd)=>$n$4(ud,dd,""),{})}const Di$3=Pi$2(),[Ya$2,$i$2]=te$5("ConfigProvider");let Bi$2="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Ii$1=(Ra=21)=>{let ed="",ud=Ra;for(;ud--;)ed+=Bi$2[Math.random()*64|0];return ed};const Ti$2=Dl$3(()=>{const Ra=ref$1(new Map),ed=ref$1(),ud=computed(()=>{for(const gd of Ra.value.values())if(gd)return!0;return!1}),dd=Ya$2({scrollBody:ref$1(!0)});let hd=null;const md=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.body.style.removeProperty("--scrollbar-width"),document.body.style.overflow=ed.value??"",jo$2&&(hd==null||hd()),ed.value=void 0};return watch(ud,(gd,yd)=>{var vd;if(!Je$3)return;if(!gd){yd&&md();return}ed.value===void 0&&(ed.value=document.body.style.overflow);const Cd=window.innerWidth-document.documentElement.clientWidth,wd={padding:Cd,margin:0},Nd=(vd=dd.scrollBody)!=null&&vd.value?typeof dd.scrollBody.value=="object"?Di$3({padding:dd.scrollBody.value.padding===!0?Cd:dd.scrollBody.value.padding,margin:dd.scrollBody.value.margin===!0?Cd:dd.scrollBody.value.margin},wd):wd:{padding:0,margin:0};Cd>0&&(document.body.style.paddingRight=typeof Nd.padding=="number"?`${Nd.padding}px`:String(Nd.padding),document.body.style.marginRight=typeof Nd.margin=="number"?`${Nd.margin}px`:String(Nd.margin),document.body.style.setProperty("--scrollbar-width",`${Cd}px`),document.body.style.overflow="hidden"),jo$2&&(hd=He$4(document,"touchmove",Ld=>Ri$1(Ld),{passive:!1})),nextTick$1(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})},{immediate:!0,flush:"sync"}),Ra});function ya$1(Ra){const ed=Ii$1(6),ud=Ti$2();ud.value.set(ed,Ra??!1);const dd=computed({get:()=>ud.value.get(ed)??!1,set:hd=>ud.value.set(ed,hd)});return hi$3(()=>{ud.value.delete(ed)}),dd}function Vl$3(Ra){const ed=window.getComputedStyle(Ra);if(ed.overflowX==="scroll"||ed.overflowY==="scroll"||ed.overflowX==="auto"&&Ra.clientWidth1?!0:(ed.preventDefault&&ed.cancelable&&ed.preventDefault(),!1)}const Ai$2="data-radix-vue-collection-item";function Fe$5(Ra,ed=Ai$2){const ud=Ra??Symbol();return{createCollection:dd=>{const hd=ref$1([]);function md(){const gd=$e$4(dd);return gd?hd.value=Array.from(gd.querySelectorAll(`[${ed}]:not([data-disabled])`)):hd.value=[]}return onBeforeUpdate(()=>{hd.value=[]}),onMounted(md),onUpdated(md),watch(()=>dd==null?void 0:dd.value,md,{immediate:!0}),provide(ud,hd),hd},injectCollection:()=>inject(ud,ref$1([]))}}function we$5(Ra){const ed=Ya$2({dir:ref$1("ltr")});return computed(()=>{var ud;return(Ra==null?void 0:Ra.value)||((ud=ed.dir)==null?void 0:ud.value)||"ltr"})}function Te$5(Ra){const ed=getCurrentInstance(),ud=ed==null?void 0:ed.type.emits,dd={};return ud!=null&&ud.length||console.warn(`No emitted event found. Please check component: ${ed==null?void 0:ed.type.__name}`),ud==null||ud.forEach(hd=>{dd[toHandlerKey(camelize(hd))]=(...md)=>Ra(hd,...md)}),dd}let wn$3=0;function Yn$3(){watchEffect(Ra=>{if(!Je$3)return;const ed=document.querySelectorAll("[data-radix-focus-guard]");document.body.insertAdjacentElement("afterbegin",ed[0]??Go$2()),document.body.insertAdjacentElement("beforeend",ed[1]??Go$2()),wn$3++,Ra(()=>{wn$3===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(ud=>ud.remove()),wn$3--})})}function Go$2(){const Ra=document.createElement("span");return Ra.setAttribute("data-radix-focus-guard",""),Ra.tabIndex=0,Ra.style.outline="none",Ra.style.opacity="0",Ra.style.position="fixed",Ra.style.pointerEvents="none",Ra}function at$6(Ra){return computed(()=>{var ed;return je$6(Ra)?!!((ed=$e$4(Ra))!=null&&ed.closest("form")):!0})}function Ot$3(Ra){const ed=getCurrentInstance(),ud=Object.keys((ed==null?void 0:ed.type.props)??{}).reduce((hd,md)=>{const gd=(ed==null?void 0:ed.type.props[md]).default;return gd!==void 0&&(hd[md]=gd),hd},{}),dd=toRef$1(Ra);return computed(()=>{const hd={},md=(ed==null?void 0:ed.vnode.props)??{};return Object.keys(md).forEach(gd=>{hd[camelize(gd)]=md[gd]}),Object.keys({...ud,...hd}).reduce((gd,yd)=>(dd.value[yd]!==void 0&&(gd[yd]=dd.value[yd]),gd),{})})}function Se$6(Ra,ed){const ud=Ot$3(Ra),dd=ed?Te$5(ed):{};return computed(()=>({...ud.value,...dd}))}function R$6(){const Ra=getCurrentInstance(),ed=ref$1(),ud=computed(()=>{var gd,yd;return["#text","#comment"].includes((gd=ed.value)==null?void 0:gd.$el.nodeName)?(yd=ed.value)==null?void 0:yd.$el.nextElementSibling:$e$4(ed)}),dd=Object.assign({},Ra.exposed),hd={};for(const gd in Ra.props)Object.defineProperty(hd,gd,{enumerable:!0,configurable:!0,get:()=>Ra.props[gd]});if(Object.keys(dd).length>0)for(const gd in dd)Object.defineProperty(hd,gd,{enumerable:!0,configurable:!0,get:()=>dd[gd]});Object.defineProperty(hd,"$el",{enumerable:!0,configurable:!0,get:()=>Ra.vnode.el}),Ra.exposed=hd;function md(gd){ed.value=gd,gd&&(Object.defineProperty(hd,"$el",{enumerable:!0,configurable:!0,get:()=>gd instanceof Element?gd:gd.$el}),Ra.exposed=hd)}return{forwardRef:md,currentRef:ed,currentElement:ud}}function Fl$3(Ra,ed){const ud=Tt$3(!1,300),dd=ref$1(null),hd=ua$2();function md(){dd.value=null,ud.value=!1}function gd(yd,vd){const Cd=yd.currentTarget,wd={x:yd.clientX,y:yd.clientY},Nd=Oi$1(wd,Cd.getBoundingClientRect()),Ld=ki$2(wd,Nd),Ud=Mi$2(vd.getBoundingClientRect()),jd=Fi$2([...Ld,...Ud]);dd.value=jd,ud.value=!0}return watchEffect(yd=>{if(Ra.value&&ed.value){const vd=wd=>gd(wd,ed.value),Cd=wd=>gd(wd,Ra.value);Ra.value.addEventListener("pointerleave",vd),ed.value.addEventListener("pointerleave",Cd),yd(()=>{var wd,Nd;(wd=Ra.value)==null||wd.removeEventListener("pointerleave",vd),(Nd=ed.value)==null||Nd.removeEventListener("pointerleave",Cd)})}}),watchEffect(yd=>{var vd;if(dd.value){const Cd=wd=>{var Nd,Ld;if(!dd.value)return;const Ud=wd.target,jd={x:wd.clientX,y:wd.clientY},Gd=((Nd=Ra.value)==null?void 0:Nd.contains(Ud))||((Ld=ed.value)==null?void 0:Ld.contains(Ud)),Yd=!Vi$1(jd,dd.value),zd=!!Ud.closest("[data-grace-area-trigger]");Gd?md():(Yd||zd)&&(md(),hd.trigger())};(vd=Ra.value)==null||vd.ownerDocument.addEventListener("pointermove",Cd),yd(()=>{var wd;return(wd=Ra.value)==null?void 0:wd.ownerDocument.removeEventListener("pointermove",Cd)})}}),{isPointerInTransit:ud,onPointerExit:hd.on}}function Oi$1(Ra,ed){const ud=Math.abs(ed.top-Ra.y),dd=Math.abs(ed.bottom-Ra.y),hd=Math.abs(ed.right-Ra.x),md=Math.abs(ed.left-Ra.x);switch(Math.min(ud,dd,hd,md)){case md:return"left";case hd:return"right";case ud:return"top";case dd:return"bottom";default:throw new Error("unreachable")}}function ki$2(Ra,ed,ud=5){const dd=[];switch(ed){case"top":dd.push({x:Ra.x-ud,y:Ra.y+ud},{x:Ra.x+ud,y:Ra.y+ud});break;case"bottom":dd.push({x:Ra.x-ud,y:Ra.y-ud},{x:Ra.x+ud,y:Ra.y-ud});break;case"left":dd.push({x:Ra.x+ud,y:Ra.y-ud},{x:Ra.x+ud,y:Ra.y+ud});break;case"right":dd.push({x:Ra.x-ud,y:Ra.y-ud},{x:Ra.x-ud,y:Ra.y+ud});break}return dd}function Mi$2(Ra){const{top:ed,right:ud,bottom:dd,left:hd}=Ra;return[{x:hd,y:ed},{x:ud,y:ed},{x:ud,y:dd},{x:hd,y:dd}]}function Vi$1(Ra,ed){const{x:ud,y:dd}=Ra;let hd=!1;for(let md=0,gd=ed.length-1;mddd!=wd>dd&&ud<(Cd-yd)*(dd-vd)/(wd-vd)+yd&&(hd=!hd)}return hd}function Fi$2(Ra){const ed=Ra.slice();return ed.sort((ud,dd)=>ud.xdd.x?1:ud.ydd.y?1:0),Ni$1(ed)}function Ni$1(Ra){if(Ra.length<=1)return Ra.slice();const ed=[];for(let dd=0;dd=2;){const md=ed[ed.length-1],gd=ed[ed.length-2];if((md.x-gd.x)*(hd.y-gd.y)>=(md.y-gd.y)*(hd.x-gd.x))ed.pop();else break}ed.push(hd)}ed.pop();const ud=[];for(let dd=Ra.length-1;dd>=0;dd--){const hd=Ra[dd];for(;ud.length>=2;){const md=ud[ud.length-1],gd=ud[ud.length-2];if((md.x-gd.x)*(hd.y-gd.y)>=(md.y-gd.y)*(hd.x-gd.x))ud.pop();else break}ud.push(hd)}return ud.pop(),ed.length===1&&ud.length===1&&ed[0].x===ud[0].x&&ed[0].y===ud[0].y?ed:ed.concat(ud)}var Li$1=function(Ra){if(typeof document>"u")return null;var ed=Array.isArray(Ra)?Ra[0]:Ra;return ed.ownerDocument.body},Kt$1=new WeakMap,$a$2=new WeakMap,Ba$2={},_n$3=0,Nl$3=function(Ra){return Ra&&(Ra.host||Nl$3(Ra.parentNode))},zi$1=function(Ra,ed){return ed.map(function(ud){if(Ra.contains(ud))return ud;var dd=Nl$3(ud);return dd&&Ra.contains(dd)?dd:(console.error("aria-hidden",ud,"in not contained inside",Ra,". Doing nothing"),null)}).filter(function(ud){return!!ud})},Ki$2=function(Ra,ed,ud,dd){var hd=zi$1(ed,Array.isArray(Ra)?Ra:[Ra]);Ba$2[ud]||(Ba$2[ud]=new WeakMap);var md=Ba$2[ud],gd=[],yd=new Set,vd=new Set(hd),Cd=function(Nd){!Nd||yd.has(Nd)||(yd.add(Nd),Cd(Nd.parentNode))};hd.forEach(Cd);var wd=function(Nd){!Nd||vd.has(Nd)||Array.prototype.forEach.call(Nd.children,function(Ld){if(yd.has(Ld))wd(Ld);else try{var Ud=Ld.getAttribute(dd),jd=Ud!==null&&Ud!=="false",Gd=(Kt$1.get(Ld)||0)+1,Yd=(md.get(Ld)||0)+1;Kt$1.set(Ld,Gd),md.set(Ld,Yd),gd.push(Ld),Gd===1&&jd&&$a$2.set(Ld,!0),Yd===1&&Ld.setAttribute(ud,"true"),jd||Ld.setAttribute(dd,"true")}catch(zd){console.error("aria-hidden: cannot operate on ",Ld,zd)}})};return wd(ed),yd.clear(),_n$3++,function(){gd.forEach(function(Nd){var Ld=Kt$1.get(Nd)-1,Ud=md.get(Nd)-1;Kt$1.set(Nd,Ld),md.set(Nd,Ud),Ld||($a$2.has(Nd)||Nd.removeAttribute(dd),$a$2.delete(Nd)),Ud||Nd.removeAttribute(ud)}),_n$3--,_n$3||(Kt$1=new WeakMap,Kt$1=new WeakMap,$a$2=new WeakMap,Ba$2={})}},Hi$1=function(Ra,ed,ud){ud===void 0&&(ud="data-aria-hidden");var dd=Array.from(Array.isArray(Ra)?Ra:[Ra]),hd=Li$1(Ra);return hd?(dd.push.apply(dd,Array.from(hd.querySelectorAll("[aria-live]"))),Ki$2(dd,hd,ud,"aria-hidden")):function(){return null}};function ga$2(Ra){let ed;watch(()=>$e$4(Ra),ud=>{ud?ed=Hi$1(ud):ed&&ed()}),onUnmounted(()=>{ed&&ed()})}let Wi$2=0;function ge$7(Ra,ed="radix"){if(Ra)return Ra;const ud=Ya$2({useId:void 0});return useId?`${ed}-${useId()}`:ud.useId?`${ed}-${ud.useId()}`:`${ed}-${++Wi$2}`}function Ll$3(Ra){const ed=ref$1(),ud=computed(()=>{var hd;return((hd=ed.value)==null?void 0:hd.width)??0}),dd=computed(()=>{var hd;return((hd=ed.value)==null?void 0:hd.height)??0});return onMounted(()=>{const hd=$e$4(Ra);if(hd){ed.value={width:hd.offsetWidth,height:hd.offsetHeight};const md=new ResizeObserver(gd=>{if(!Array.isArray(gd)||!gd.length)return;const yd=gd[0];let vd,Cd;if("borderBoxSize"in yd){const wd=yd.borderBoxSize,Nd=Array.isArray(wd)?wd[0]:wd;vd=Nd.inlineSize,Cd=Nd.blockSize}else vd=hd.offsetWidth,Cd=hd.offsetHeight;ed.value={width:vd,height:Cd}});return md.observe(hd,{box:"border-box"}),()=>md.unobserve(hd)}else ed.value=void 0}),{width:ud,height:dd}}function zl$3(Ra,ed){const ud=ref$1(Ra);function dd(hd){return ed[ud.value][hd]??ud.value}return{state:ud,dispatch:hd=>{ud.value=dd(hd)}}}const Ui$1="data-item-text";function ba$3(Ra){const ed=Tt$3("",1e3);return{search:ed,handleTypeaheadSearch:(ud,dd)=>{if(!(Ra!=null&&Ra.value)&&!dd)return;ed.value=ed.value+ud;const hd=(Ra==null?void 0:Ra.value)??dd,md=me$4(),gd=hd.map(Nd=>{var Ld;return{ref:Nd,textValue:((Ld=(Nd.querySelector(`[${Ui$1}]`)??Nd).textContent)==null?void 0:Ld.trim())??""}}),yd=gd.find(Nd=>Nd.ref===md),vd=gd.map(Nd=>Nd.textValue),Cd=Zn$4(vd,ed.value,yd==null?void 0:yd.textValue),wd=gd.find(Nd=>Nd.textValue===Cd);return wd&&wd.ref.focus(),wd==null?void 0:wd.ref},resetTypeahead:()=>{ed.value=""}}}function Xn$4(Ra,ed){return Ra.map((ud,dd)=>Ra[(ed+dd)%Ra.length])}function Zn$4(Ra,ed,ud){const dd=ed.length>1&&Array.from(ed).every(yd=>yd===ed[0])?ed[0]:ed,hd=ud?Ra.indexOf(ud):-1;let md=Xn$4(Ra,Math.max(hd,0));dd.length===1&&(md=md.filter(yd=>yd!==ud));const gd=md.find(yd=>yd.toLowerCase().startsWith(dd.toLowerCase()));return gd!==ud?gd:void 0}const Jn$4=defineComponent({name:"PrimitiveSlot",inheritAttrs:!1,setup(Ra,{attrs:ed,slots:ud}){return()=>{var dd,hd;if(!ud.default)return null;const md=qa(ud.default()),gd=md.findIndex(wd=>wd.type!==Comment$2);if(gd===-1)return md;const yd=md[gd];(dd=yd.props)==null||delete dd.ref;const vd=yd.props?mergeProps(ed,yd.props):ed;ed.class&&(hd=yd.props)!=null&&hd.class&&delete yd.props.class;const Cd=cloneVNode(yd,vd);for(const wd in vd)wd.startsWith("on")&&(Cd.props||(Cd.props={}),Cd.props[wd]=vd[wd]);return md.length===1?Cd:(md[gd]=Cd,md)}}}),O$4=defineComponent({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(Ra,{attrs:ed,slots:ud}){const dd=Ra.asChild?"template":Ra.as;return typeof dd=="string"&&["area","img","input"].includes(dd)?()=>h$2(dd,ed):dd!=="template"?()=>h$2(Ra.as,ed,{default:ud.default}):()=>h$2(Jn$4,ed,{default:ud.default})}});function Re$7(){const Ra=ref$1(),ed=computed(()=>{var ud,dd;return["#text","#comment"].includes((ud=Ra.value)==null?void 0:ud.$el.nodeName)?(dd=Ra.value)==null?void 0:dd.$el.nextElementSibling:$e$4(Ra)});return{primitiveElement:Ra,currentElement:ed}}function Xi$1(Ra,ed){var ud;const dd=ref$1({}),hd=ref$1("none"),md=ref$1(Ra),gd=Ra.value?"mounted":"unmounted";let yd;const vd=((ud=ed.value)==null?void 0:ud.ownerDocument.defaultView)??Rt$4,{state:Cd,dispatch:wd}=zl$3(gd,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),Nd=Yd=>{var zd;if(Je$3){const qd=new CustomEvent(Yd,{bubbles:!1,cancelable:!1});(zd=ed.value)==null||zd.dispatchEvent(qd)}};watch(Ra,async(Yd,zd)=>{var qd;const Wd=zd!==Yd;if(await nextTick$1(),Wd){const Xd=hd.value,Jd=Ia$2(ed.value);Yd?(wd("MOUNT"),Nd("enter"),Jd==="none"&&Nd("after-enter")):Jd==="none"||((qd=dd.value)==null?void 0:qd.display)==="none"?(wd("UNMOUNT"),Nd("leave"),Nd("after-leave")):zd&&Xd!==Jd?(wd("ANIMATION_OUT"),Nd("leave")):(wd("UNMOUNT"),Nd("after-leave"))}},{immediate:!0});const Ld=Yd=>{const zd=Ia$2(ed.value),qd=zd.includes(Yd.animationName),Wd=Cd.value==="mounted"?"enter":"leave";if(Yd.target===ed.value&&qd&&(Nd(`after-${Wd}`),wd("ANIMATION_END"),!md.value)){const Xd=ed.value.style.animationFillMode;ed.value.style.animationFillMode="forwards",yd=vd==null?void 0:vd.setTimeout(()=>{var Jd;((Jd=ed.value)==null?void 0:Jd.style.animationFillMode)==="forwards"&&(ed.value.style.animationFillMode=Xd)})}Yd.target===ed.value&&zd==="none"&&wd("ANIMATION_END")},Ud=Yd=>{Yd.target===ed.value&&(hd.value=Ia$2(ed.value))},jd=watch(ed,(Yd,zd)=>{Yd?(dd.value=getComputedStyle(Yd),Yd.addEventListener("animationstart",Ud),Yd.addEventListener("animationcancel",Ld),Yd.addEventListener("animationend",Ld)):(wd("ANIMATION_END"),yd!==void 0&&(vd==null||vd.clearTimeout(yd)),zd==null||zd.removeEventListener("animationstart",Ud),zd==null||zd.removeEventListener("animationcancel",Ld),zd==null||zd.removeEventListener("animationend",Ld))},{immediate:!0}),Gd=watch(Cd,()=>{const Yd=Ia$2(ed.value);hd.value=Cd.value==="mounted"?Yd:"none"});return onUnmounted(()=>{jd(),Gd()}),{isPresent:computed(()=>["mounted","unmountSuspended"].includes(Cd.value))}}function Ia$2(Ra){return Ra&&getComputedStyle(Ra).animationName||"none"}const Pe$6=defineComponent({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(Ra,{slots:ed,expose:ud}){var dd;const{present:hd,forceMount:md}=toRefs(Ra),gd=ref$1(),{isPresent:yd}=Xi$1(hd,gd);ud({present:yd});let vd=ed.default({present:yd});vd=qa(vd||[]);const Cd=getCurrentInstance();if(vd&&(vd==null?void 0:vd.length)>1){const wd=(dd=Cd==null?void 0:Cd.parent)!=null&&dd.type.name?`<${Cd.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${wd}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(Nd=>` - ${Nd}`).join(` +**/let policy;const tt$4=typeof window<"u"&&window.trustedTypes;if(tt$4)try{policy=tt$4.createPolicy("vue",{createHTML:Ra=>Ra})}catch{}const unsafeToTrustedHTML=policy?Ra=>policy.createHTML(Ra):Ra=>Ra,svgNS="http://www.w3.org/2000/svg",mathmlNS="http://www.w3.org/1998/Math/MathML",doc=typeof document<"u"?document:null,templateContainer=doc&&doc.createElement("template"),nodeOps={insert:(Ra,ed,ud)=>{ed.insertBefore(Ra,ud||null)},remove:Ra=>{const ed=Ra.parentNode;ed&&ed.removeChild(Ra)},createElement:(Ra,ed,ud,dd)=>{const hd=ed==="svg"?doc.createElementNS(svgNS,Ra):ed==="mathml"?doc.createElementNS(mathmlNS,Ra):ud?doc.createElement(Ra,{is:ud}):doc.createElement(Ra);return Ra==="select"&&dd&&dd.multiple!=null&&hd.setAttribute("multiple",dd.multiple),hd},createText:Ra=>doc.createTextNode(Ra),createComment:Ra=>doc.createComment(Ra),setText:(Ra,ed)=>{Ra.nodeValue=ed},setElementText:(Ra,ed)=>{Ra.textContent=ed},parentNode:Ra=>Ra.parentNode,nextSibling:Ra=>Ra.nextSibling,querySelector:Ra=>doc.querySelector(Ra),setScopeId(Ra,ed){Ra.setAttribute(ed,"")},insertStaticContent(Ra,ed,ud,dd,hd,md){const gd=ud?ud.previousSibling:ed.lastChild;if(hd&&(hd===md||hd.nextSibling))for(;ed.insertBefore(hd.cloneNode(!0),ud),!(hd===md||!(hd=hd.nextSibling)););else{templateContainer.innerHTML=unsafeToTrustedHTML(dd==="svg"?`${Ra}`:dd==="mathml"?`${Ra}`:Ra);const yd=templateContainer.content;if(dd==="svg"||dd==="mathml"){const vd=yd.firstChild;for(;vd.firstChild;)yd.appendChild(vd.firstChild);yd.removeChild(vd)}ed.insertBefore(yd,ud)}return[gd?gd.nextSibling:ed.firstChild,ud?ud.previousSibling:ed.lastChild]}},TRANSITION="transition",ANIMATION="animation",vtcKey=Symbol("_vtc"),DOMTransitionPropsValidators={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},TransitionPropsValidators=extend$4({},BaseTransitionPropsValidators,DOMTransitionPropsValidators),decorate$1=Ra=>(Ra.displayName="Transition",Ra.props=TransitionPropsValidators,Ra),Transition$1=decorate$1((Ra,{slots:ed})=>h$2(BaseTransition,resolveTransitionProps(Ra),ed)),callHook=(Ra,ed=[])=>{isArray$3(Ra)?Ra.forEach(ud=>ud(...ed)):Ra&&Ra(...ed)},hasExplicitCallback=Ra=>Ra?isArray$3(Ra)?Ra.some(ed=>ed.length>1):Ra.length>1:!1;function resolveTransitionProps(Ra){const ed={};for(const Af in Ra)Af in DOMTransitionPropsValidators||(ed[Af]=Ra[Af]);if(Ra.css===!1)return ed;const{name:ud="v",type:dd,duration:hd,enterFromClass:md=`${ud}-enter-from`,enterActiveClass:gd=`${ud}-enter-active`,enterToClass:yd=`${ud}-enter-to`,appearFromClass:vd=md,appearActiveClass:Cd=gd,appearToClass:wd=yd,leaveFromClass:Nd=`${ud}-leave-from`,leaveActiveClass:Ld=`${ud}-leave-active`,leaveToClass:Ud=`${ud}-leave-to`}=Ra,jd=normalizeDuration(hd),Gd=jd&&jd[0],Yd=jd&&jd[1],{onBeforeEnter:zd,onEnter:qd,onEnterCancelled:Wd,onLeave:Xd,onLeaveCancelled:Jd,onBeforeAppear:Zd=zd,onAppear:mf=qd,onAppearCancelled:xf=Wd}=ed,_f=(Af,Df,kf,Cf)=>{Af._enterCancelled=Cf,removeTransitionClass(Af,Df?wd:yd),removeTransitionClass(Af,Df?Cd:gd),kf&&kf()},vf=(Af,Df)=>{Af._isLeaving=!1,removeTransitionClass(Af,Nd),removeTransitionClass(Af,Ud),removeTransitionClass(Af,Ld),Df&&Df()},gf=Af=>(Df,kf)=>{const Cf=Af?mf:qd,If=()=>_f(Df,Af,kf);callHook(Cf,[Df,If]),nextFrame(()=>{removeTransitionClass(Df,Af?vd:md),addTransitionClass(Df,Af?wd:yd),hasExplicitCallback(Cf)||whenTransitionEnds(Df,dd,Gd,If)})};return extend$4(ed,{onBeforeEnter(Af){callHook(zd,[Af]),addTransitionClass(Af,md),addTransitionClass(Af,gd)},onBeforeAppear(Af){callHook(Zd,[Af]),addTransitionClass(Af,vd),addTransitionClass(Af,Cd)},onEnter:gf(!1),onAppear:gf(!0),onLeave(Af,Df){Af._isLeaving=!0;const kf=()=>vf(Af,Df);addTransitionClass(Af,Nd),Af._enterCancelled?(addTransitionClass(Af,Ld),forceReflow()):(forceReflow(),addTransitionClass(Af,Ld)),nextFrame(()=>{Af._isLeaving&&(removeTransitionClass(Af,Nd),addTransitionClass(Af,Ud),hasExplicitCallback(Xd)||whenTransitionEnds(Af,dd,Yd,kf))}),callHook(Xd,[Af,kf])},onEnterCancelled(Af){_f(Af,!1,void 0,!0),callHook(Wd,[Af])},onAppearCancelled(Af){_f(Af,!0,void 0,!0),callHook(xf,[Af])},onLeaveCancelled(Af){vf(Af),callHook(Jd,[Af])}})}function normalizeDuration(Ra){if(Ra==null)return null;if(isObject$9(Ra))return[NumberOf(Ra.enter),NumberOf(Ra.leave)];{const ed=NumberOf(Ra);return[ed,ed]}}function NumberOf(Ra){return toNumber$4(Ra)}function addTransitionClass(Ra,ed){ed.split(/\s+/).forEach(ud=>ud&&Ra.classList.add(ud)),(Ra[vtcKey]||(Ra[vtcKey]=new Set)).add(ed)}function removeTransitionClass(Ra,ed){ed.split(/\s+/).forEach(dd=>dd&&Ra.classList.remove(dd));const ud=Ra[vtcKey];ud&&(ud.delete(ed),ud.size||(Ra[vtcKey]=void 0))}function nextFrame(Ra){requestAnimationFrame(()=>{requestAnimationFrame(Ra)})}let endId=0;function whenTransitionEnds(Ra,ed,ud,dd){const hd=Ra._endId=++endId,md=()=>{hd===Ra._endId&&dd()};if(ud!=null)return setTimeout(md,ud);const{type:gd,timeout:yd,propCount:vd}=getTransitionInfo(Ra,ed);if(!gd)return dd();const Cd=gd+"end";let wd=0;const Nd=()=>{Ra.removeEventListener(Cd,Ld),md()},Ld=Ud=>{Ud.target===Ra&&++wd>=vd&&Nd()};setTimeout(()=>{wd(ud[jd]||"").split(", "),hd=dd(`${TRANSITION}Delay`),md=dd(`${TRANSITION}Duration`),gd=getTimeout(hd,md),yd=dd(`${ANIMATION}Delay`),vd=dd(`${ANIMATION}Duration`),Cd=getTimeout(yd,vd);let wd=null,Nd=0,Ld=0;ed===TRANSITION?gd>0&&(wd=TRANSITION,Nd=gd,Ld=md.length):ed===ANIMATION?Cd>0&&(wd=ANIMATION,Nd=Cd,Ld=vd.length):(Nd=Math.max(gd,Cd),wd=Nd>0?gd>Cd?TRANSITION:ANIMATION:null,Ld=wd?wd===TRANSITION?md.length:vd.length:0);const Ud=wd===TRANSITION&&/\b(transform|all)(,|$)/.test(dd(`${TRANSITION}Property`).toString());return{type:wd,timeout:Nd,propCount:Ld,hasTransform:Ud}}function getTimeout(Ra,ed){for(;Ra.lengthtoMs(ud)+toMs(Ra[dd])))}function toMs(Ra){return Ra==="auto"?0:Number(Ra.slice(0,-1).replace(",","."))*1e3}function forceReflow(){return document.body.offsetHeight}function patchClass(Ra,ed,ud){const dd=Ra[vtcKey];dd&&(ed=(ed?[ed,...dd]:[...dd]).join(" ")),ed==null?Ra.removeAttribute("class"):ud?Ra.setAttribute("class",ed):Ra.className=ed}const vShowOriginalDisplay=Symbol("_vod"),vShowHidden=Symbol("_vsh"),vShow={beforeMount(Ra,{value:ed},{transition:ud}){Ra[vShowOriginalDisplay]=Ra.style.display==="none"?"":Ra.style.display,ud&&ed?ud.beforeEnter(Ra):setDisplay(Ra,ed)},mounted(Ra,{value:ed},{transition:ud}){ud&&ed&&ud.enter(Ra)},updated(Ra,{value:ed,oldValue:ud},{transition:dd}){!ed!=!ud&&(dd?ed?(dd.beforeEnter(Ra),setDisplay(Ra,!0),dd.enter(Ra)):dd.leave(Ra,()=>{setDisplay(Ra,!1)}):setDisplay(Ra,ed))},beforeUnmount(Ra,{value:ed}){setDisplay(Ra,ed)}};function setDisplay(Ra,ed){Ra.style.display=ed?Ra[vShowOriginalDisplay]:"none",Ra[vShowHidden]=!ed}const CSS_VAR_TEXT=Symbol(""),displayRE=/(^|;)\s*display\s*:/;function patchStyle(Ra,ed,ud){const dd=Ra.style,hd=isString$2(ud);let md=!1;if(ud&&!hd){if(ed)if(isString$2(ed))for(const gd of ed.split(";")){const yd=gd.slice(0,gd.indexOf(":")).trim();ud[yd]==null&&setStyle(dd,yd,"")}else for(const gd in ed)ud[gd]==null&&setStyle(dd,gd,"");for(const gd in ud)gd==="display"&&(md=!0),setStyle(dd,gd,ud[gd])}else if(hd){if(ed!==ud){const gd=dd[CSS_VAR_TEXT];gd&&(ud+=";"+gd),dd.cssText=ud,md=displayRE.test(ud)}}else ed&&Ra.removeAttribute("style");vShowOriginalDisplay in Ra&&(Ra[vShowOriginalDisplay]=md?dd.display:"",Ra[vShowHidden]&&(dd.display="none"))}const importantRE=/\s*!important$/;function setStyle(Ra,ed,ud){if(isArray$3(ud))ud.forEach(dd=>setStyle(Ra,ed,dd));else if(ud==null&&(ud=""),ed.startsWith("--"))Ra.setProperty(ed,ud);else{const dd=autoPrefix(Ra,ed);importantRE.test(ud)?Ra.setProperty(hyphenate(dd),ud.replace(importantRE,""),"important"):Ra[dd]=ud}}const prefixes$1=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(Ra,ed){const ud=prefixCache[ed];if(ud)return ud;let dd=camelize(ed);if(dd!=="filter"&&dd in Ra)return prefixCache[ed]=dd;dd=capitalize(dd);for(let hd=0;hdcachedNow||(p$2.then(()=>cachedNow=0),cachedNow=Date.now());function createInvoker(Ra,ed){const ud=dd=>{if(!dd._vts)dd._vts=Date.now();else if(dd._vts<=ud.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(dd,ud.value),ed,5,[dd])};return ud.value=Ra,ud.attached=getNow(),ud}function patchStopImmediatePropagation(Ra,ed){if(isArray$3(ed)){const ud=Ra.stopImmediatePropagation;return Ra.stopImmediatePropagation=()=>{ud.call(Ra),Ra._stopped=!0},ed.map(dd=>hd=>!hd._stopped&&dd&&dd(hd))}else return ed}const isNativeOn=Ra=>Ra.charCodeAt(0)===111&&Ra.charCodeAt(1)===110&&Ra.charCodeAt(2)>96&&Ra.charCodeAt(2)<123,patchProp=(Ra,ed,ud,dd,hd,md)=>{const gd=hd==="svg";ed==="class"?patchClass(Ra,dd,gd):ed==="style"?patchStyle(Ra,ud,dd):isOn(ed)?isModelListener(ed)||patchEvent(Ra,ed,ud,dd,md):(ed[0]==="."?(ed=ed.slice(1),!0):ed[0]==="^"?(ed=ed.slice(1),!1):shouldSetAsProp(Ra,ed,dd,gd))?(patchDOMProp(Ra,ed,dd),!Ra.tagName.includes("-")&&(ed==="value"||ed==="checked"||ed==="selected")&&patchAttr(Ra,ed,dd,gd,md,ed!=="value")):Ra._isVueCE&&(/[A-Z]/.test(ed)||!isString$2(dd))?patchDOMProp(Ra,camelize(ed),dd,md,ed):(ed==="true-value"?Ra._trueValue=dd:ed==="false-value"&&(Ra._falseValue=dd),patchAttr(Ra,ed,dd,gd))};function shouldSetAsProp(Ra,ed,ud,dd){if(dd)return!!(ed==="innerHTML"||ed==="textContent"||ed in Ra&&isNativeOn(ed)&&isFunction$4(ud));if(ed==="spellcheck"||ed==="draggable"||ed==="translate"||ed==="form"||ed==="list"&&Ra.tagName==="INPUT"||ed==="type"&&Ra.tagName==="TEXTAREA")return!1;if(ed==="width"||ed==="height"){const hd=Ra.tagName;if(hd==="IMG"||hd==="VIDEO"||hd==="CANVAS"||hd==="SOURCE")return!1}return isNativeOn(ed)&&isString$2(ud)?!1:ed in Ra}const getModelAssigner=Ra=>{const ed=Ra.props["onUpdate:modelValue"]||!1;return isArray$3(ed)?ud=>invokeArrayFns(ed,ud):ed};function onCompositionStart(Ra){Ra.target.composing=!0}function onCompositionEnd(Ra){const ed=Ra.target;ed.composing&&(ed.composing=!1,ed.dispatchEvent(new Event("input")))}const assignKey=Symbol("_assign"),vModelText={created(Ra,{modifiers:{lazy:ed,trim:ud,number:dd}},hd){Ra[assignKey]=getModelAssigner(hd);const md=dd||hd.props&&hd.props.type==="number";addEventListener(Ra,ed?"change":"input",gd=>{if(gd.target.composing)return;let yd=Ra.value;ud&&(yd=yd.trim()),md&&(yd=looseToNumber(yd)),Ra[assignKey](yd)}),ud&&addEventListener(Ra,"change",()=>{Ra.value=Ra.value.trim()}),ed||(addEventListener(Ra,"compositionstart",onCompositionStart),addEventListener(Ra,"compositionend",onCompositionEnd),addEventListener(Ra,"change",onCompositionEnd))},mounted(Ra,{value:ed}){Ra.value=ed??""},beforeUpdate(Ra,{value:ed,oldValue:ud,modifiers:{lazy:dd,trim:hd,number:md}},gd){if(Ra[assignKey]=getModelAssigner(gd),Ra.composing)return;const yd=(md||Ra.type==="number")&&!/^0\d/.test(Ra.value)?looseToNumber(Ra.value):Ra.value,vd=ed??"";yd!==vd&&(document.activeElement===Ra&&Ra.type!=="range"&&(dd&&ed===ud||hd&&Ra.value.trim()===vd)||(Ra.value=vd))}},vModelSelect={deep:!0,created(Ra,{value:ed,modifiers:{number:ud}},dd){const hd=isSet$1(ed);addEventListener(Ra,"change",()=>{const md=Array.prototype.filter.call(Ra.options,gd=>gd.selected).map(gd=>ud?looseToNumber(getValue$1(gd)):getValue$1(gd));Ra[assignKey](Ra.multiple?hd?new Set(md):md:md[0]),Ra._assigning=!0,nextTick$1(()=>{Ra._assigning=!1})}),Ra[assignKey]=getModelAssigner(dd)},mounted(Ra,{value:ed}){setSelected(Ra,ed)},beforeUpdate(Ra,ed,ud){Ra[assignKey]=getModelAssigner(ud)},updated(Ra,{value:ed}){Ra._assigning||setSelected(Ra,ed)}};function setSelected(Ra,ed){const ud=Ra.multiple,dd=isArray$3(ed);if(!(ud&&!dd&&!isSet$1(ed))){for(let hd=0,md=Ra.options.length;hdString(Cd)===String(yd)):gd.selected=looseIndexOf(ed,yd)>-1}else gd.selected=ed.has(yd);else if(looseEqual(getValue$1(gd),ed)){Ra.selectedIndex!==hd&&(Ra.selectedIndex=hd);return}}!ud&&Ra.selectedIndex!==-1&&(Ra.selectedIndex=-1)}}function getValue$1(Ra){return"_value"in Ra?Ra._value:Ra.value}const systemModifiers=["ctrl","shift","alt","meta"],modifierGuards={stop:Ra=>Ra.stopPropagation(),prevent:Ra=>Ra.preventDefault(),self:Ra=>Ra.target!==Ra.currentTarget,ctrl:Ra=>!Ra.ctrlKey,shift:Ra=>!Ra.shiftKey,alt:Ra=>!Ra.altKey,meta:Ra=>!Ra.metaKey,left:Ra=>"button"in Ra&&Ra.button!==0,middle:Ra=>"button"in Ra&&Ra.button!==1,right:Ra=>"button"in Ra&&Ra.button!==2,exact:(Ra,ed)=>systemModifiers.some(ud=>Ra[`${ud}Key`]&&!ed.includes(ud))},withModifiers=(Ra,ed)=>{const ud=Ra._withMods||(Ra._withMods={}),dd=ed.join(".");return ud[dd]||(ud[dd]=(hd,...md)=>{for(let gd=0;gd{const ud=Ra._withKeys||(Ra._withKeys={}),dd=ed.join(".");return ud[dd]||(ud[dd]=hd=>{if(!("key"in hd))return;const md=hyphenate(hd.key);if(ed.some(gd=>gd===md||keyNames[gd]===md))return Ra(hd)})},rendererOptions=extend$4({patchProp},nodeOps);let renderer$1;function ensureRenderer(){return renderer$1||(renderer$1=createRenderer$1(rendererOptions))}const createApp=(...Ra)=>{const ed=ensureRenderer().createApp(...Ra),{mount:ud}=ed;return ed.mount=dd=>{const hd=normalizeContainer(dd);if(!hd)return;const md=ed._component;!isFunction$4(md)&&!md.render&&!md.template&&(md.template=hd.innerHTML),hd.nodeType===1&&(hd.textContent="");const gd=ud(hd,!1,resolveRootNamespace(hd));return hd instanceof Element&&(hd.removeAttribute("v-cloak"),hd.setAttribute("data-v-app","")),gd},ed};function resolveRootNamespace(Ra){if(Ra instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&Ra instanceof MathMLElement)return"mathml"}function normalizeContainer(Ra){return isString$2(Ra)?document.querySelector(Ra):Ra}let activePinia;const setActivePinia=Ra=>activePinia=Ra,piniaSymbol=Symbol();function isPlainObject$5(Ra){return Ra&&typeof Ra=="object"&&Object.prototype.toString.call(Ra)==="[object Object]"&&typeof Ra.toJSON!="function"}var MutationType;(function(Ra){Ra.direct="direct",Ra.patchObject="patch object",Ra.patchFunction="patch function"})(MutationType||(MutationType={}));function createPinia(){const Ra=effectScope(!0),ed=Ra.run(()=>ref$1({}));let ud=[],dd=[];const hd=markRaw({install(md){setActivePinia(hd),hd._a=md,md.provide(piniaSymbol,hd),md.config.globalProperties.$pinia=hd,dd.forEach(gd=>ud.push(gd)),dd=[]},use(md){return this._a?ud.push(md):dd.push(md),this},_p:ud,_a:null,_e:Ra,_s:new Map,state:ed});return hd}const noop$6=()=>{};function addSubscription(Ra,ed,ud,dd=noop$6){Ra.push(ed);const hd=()=>{const md=Ra.indexOf(ed);md>-1&&(Ra.splice(md,1),dd())};return!ud&&getCurrentScope()&&onScopeDispose(hd),hd}function triggerSubscriptions(Ra,...ed){Ra.slice().forEach(ud=>{ud(...ed)})}const fallbackRunWithContext=Ra=>Ra(),ACTION_MARKER=Symbol(),ACTION_NAME=Symbol();function mergeReactiveObjects(Ra,ed){Ra instanceof Map&&ed instanceof Map?ed.forEach((ud,dd)=>Ra.set(dd,ud)):Ra instanceof Set&&ed instanceof Set&&ed.forEach(Ra.add,Ra);for(const ud in ed){if(!ed.hasOwnProperty(ud))continue;const dd=ed[ud],hd=Ra[ud];isPlainObject$5(hd)&&isPlainObject$5(dd)&&Ra.hasOwnProperty(ud)&&!isRef(dd)&&!isReactive(dd)?Ra[ud]=mergeReactiveObjects(hd,dd):Ra[ud]=dd}return Ra}const skipHydrateSymbol=Symbol();function shouldHydrate(Ra){return!isPlainObject$5(Ra)||!Ra.hasOwnProperty(skipHydrateSymbol)}const{assign}=Object;function isComputed(Ra){return!!(isRef(Ra)&&Ra.effect)}function createOptionsStore(Ra,ed,ud,dd){const{state:hd,actions:md,getters:gd}=ed,yd=ud.state.value[Ra];let vd;function Cd(){yd||(ud.state.value[Ra]=hd?hd():{});const wd=toRefs(ud.state.value[Ra]);return assign(wd,md,Object.keys(gd||{}).reduce((Nd,Ld)=>(Nd[Ld]=markRaw(computed(()=>{setActivePinia(ud);const Ud=ud._s.get(Ra);return gd[Ld].call(Ud,Ud)})),Nd),{}))}return vd=createSetupStore(Ra,Cd,ed,ud,dd,!0),vd}function createSetupStore(Ra,ed,ud={},dd,hd,md){let gd;const yd=assign({actions:{}},ud),vd={deep:!0};let Cd,wd,Nd=[],Ld=[],Ud;const jd=dd.state.value[Ra];!md&&!jd&&(dd.state.value[Ra]={}),ref$1({});let Gd;function Yd(xf){let _f;Cd=wd=!1,typeof xf=="function"?(xf(dd.state.value[Ra]),_f={type:MutationType.patchFunction,storeId:Ra,events:Ud}):(mergeReactiveObjects(dd.state.value[Ra],xf),_f={type:MutationType.patchObject,payload:xf,storeId:Ra,events:Ud});const vf=Gd=Symbol();nextTick$1().then(()=>{Gd===vf&&(Cd=!0)}),wd=!0,triggerSubscriptions(Nd,_f,dd.state.value[Ra])}const zd=md?function(){const{state:_f}=ud,vf=_f?_f():{};this.$patch(gf=>{assign(gf,vf)})}:noop$6;function qd(){gd.stop(),Nd=[],Ld=[],dd._s.delete(Ra)}const Wd=(xf,_f="")=>{if(ACTION_MARKER in xf)return xf[ACTION_NAME]=_f,xf;const vf=function(){setActivePinia(dd);const gf=Array.from(arguments),Af=[],Df=[];function kf(Ff){Af.push(Ff)}function Cf(Ff){Df.push(Ff)}triggerSubscriptions(Ld,{args:gf,name:vf[ACTION_NAME],store:Jd,after:kf,onError:Cf});let If;try{If=xf.apply(this&&this.$id===Ra?this:Jd,gf)}catch(Ff){throw triggerSubscriptions(Df,Ff),Ff}return If instanceof Promise?If.then(Ff=>(triggerSubscriptions(Af,Ff),Ff)).catch(Ff=>(triggerSubscriptions(Df,Ff),Promise.reject(Ff))):(triggerSubscriptions(Af,If),If)};return vf[ACTION_MARKER]=!0,vf[ACTION_NAME]=_f,vf},Xd={_p:dd,$id:Ra,$onAction:addSubscription.bind(null,Ld),$patch:Yd,$reset:zd,$subscribe(xf,_f={}){const vf=addSubscription(Nd,xf,_f.detached,()=>gf()),gf=gd.run(()=>watch(()=>dd.state.value[Ra],Af=>{(_f.flush==="sync"?wd:Cd)&&xf({storeId:Ra,type:MutationType.direct,events:Ud},Af)},assign({},vd,_f)));return vf},$dispose:qd},Jd=reactive(Xd);dd._s.set(Ra,Jd);const mf=(dd._a&&dd._a.runWithContext||fallbackRunWithContext)(()=>dd._e.run(()=>(gd=effectScope()).run(()=>ed({action:Wd}))));for(const xf in mf){const _f=mf[xf];if(isRef(_f)&&!isComputed(_f)||isReactive(_f))md||(jd&&shouldHydrate(_f)&&(isRef(_f)?_f.value=jd[xf]:mergeReactiveObjects(_f,jd[xf])),dd.state.value[Ra][xf]=_f);else if(typeof _f=="function"){const vf=Wd(_f,xf);mf[xf]=vf,yd.actions[xf]=_f}}return assign(Jd,mf),assign(toRaw(Jd),mf),Object.defineProperty(Jd,"$state",{get:()=>dd.state.value[Ra],set:xf=>{Yd(_f=>{assign(_f,xf)})}}),dd._p.forEach(xf=>{assign(Jd,gd.run(()=>xf({store:Jd,app:dd._a,pinia:dd,options:yd})))}),jd&&md&&ud.hydrate&&ud.hydrate(Jd.$state,jd),Cd=!0,wd=!0,Jd}/*! #__NO_SIDE_EFFECTS__ */function defineStore(Ra,ed,ud){let dd,hd;const md=typeof ed=="function";typeof Ra=="string"?(dd=Ra,hd=md?ud:ed):(hd=Ra,dd=Ra.id);function gd(yd,vd){const Cd=hasInjectionContext();return yd=yd||(Cd?inject(piniaSymbol,null):null),yd&&setActivePinia(yd),yd=activePinia,yd._s.has(dd)||(md?createSetupStore(dd,ed,hd,yd):createOptionsStore(dd,hd,yd)),yd._s.get(dd)}return gd.$id=dd,gd}function storeToRefs(Ra){{const ed=toRaw(Ra),ud={};for(const dd in ed){const hd=ed[dd];hd.effect?ud[dd]=computed({get:()=>Ra[dd],set(md){Ra[dd]=md}}):(isRef(hd)||isReactive(hd))&&(ud[dd]=toRef$1(Ra,dd))}return ud}}const sides=["top","right","bottom","left"],min$4=Math.min,max$5=Math.max,round$3=Math.round,floor$2=Math.floor,createCoords=Ra=>({x:Ra,y:Ra}),oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"},oppositeAlignmentMap={start:"end",end:"start"};function clamp(Ra,ed,ud){return max$5(Ra,min$4(ed,ud))}function evaluate$1(Ra,ed){return typeof Ra=="function"?Ra(ed):Ra}function getSide(Ra){return Ra.split("-")[0]}function getAlignment(Ra){return Ra.split("-")[1]}function getOppositeAxis(Ra){return Ra==="x"?"y":"x"}function getAxisLength(Ra){return Ra==="y"?"height":"width"}function getSideAxis(Ra){return["top","bottom"].includes(getSide(Ra))?"y":"x"}function getAlignmentAxis(Ra){return getOppositeAxis(getSideAxis(Ra))}function getAlignmentSides(Ra,ed,ud){ud===void 0&&(ud=!1);const dd=getAlignment(Ra),hd=getAlignmentAxis(Ra),md=getAxisLength(hd);let gd=hd==="x"?dd===(ud?"end":"start")?"right":"left":dd==="start"?"bottom":"top";return ed.reference[md]>ed.floating[md]&&(gd=getOppositePlacement$1(gd)),[gd,getOppositePlacement$1(gd)]}function getExpandedPlacements(Ra){const ed=getOppositePlacement$1(Ra);return[getOppositeAlignmentPlacement(Ra),ed,getOppositeAlignmentPlacement(ed)]}function getOppositeAlignmentPlacement(Ra){return Ra.replace(/start|end/g,ed=>oppositeAlignmentMap[ed])}function getSideList(Ra,ed,ud){const dd=["left","right"],hd=["right","left"],md=["top","bottom"],gd=["bottom","top"];switch(Ra){case"top":case"bottom":return ud?ed?hd:dd:ed?dd:hd;case"left":case"right":return ed?md:gd;default:return[]}}function getOppositeAxisPlacements(Ra,ed,ud,dd){const hd=getAlignment(Ra);let md=getSideList(getSide(Ra),ud==="start",dd);return hd&&(md=md.map(gd=>gd+"-"+hd),ed&&(md=md.concat(md.map(getOppositeAlignmentPlacement)))),md}function getOppositePlacement$1(Ra){return Ra.replace(/left|right|bottom|top/g,ed=>oppositeSideMap[ed])}function expandPaddingObject(Ra){return{top:0,right:0,bottom:0,left:0,...Ra}}function getPaddingObject(Ra){return typeof Ra!="number"?expandPaddingObject(Ra):{top:Ra,right:Ra,bottom:Ra,left:Ra}}function rectToClientRect$1(Ra){const{x:ed,y:ud,width:dd,height:hd}=Ra;return{width:dd,height:hd,top:ud,left:ed,right:ed+dd,bottom:ud+hd,x:ed,y:ud}}function computeCoordsFromPlacement(Ra,ed,ud){let{reference:dd,floating:hd}=Ra;const md=getSideAxis(ed),gd=getAlignmentAxis(ed),yd=getAxisLength(gd),vd=getSide(ed),Cd=md==="y",wd=dd.x+dd.width/2-hd.width/2,Nd=dd.y+dd.height/2-hd.height/2,Ld=dd[yd]/2-hd[yd]/2;let Ud;switch(vd){case"top":Ud={x:wd,y:dd.y-hd.height};break;case"bottom":Ud={x:wd,y:dd.y+dd.height};break;case"right":Ud={x:dd.x+dd.width,y:Nd};break;case"left":Ud={x:dd.x-hd.width,y:Nd};break;default:Ud={x:dd.x,y:dd.y}}switch(getAlignment(ed)){case"start":Ud[gd]-=Ld*(ud&&Cd?-1:1);break;case"end":Ud[gd]+=Ld*(ud&&Cd?-1:1);break}return Ud}const computePosition$1=async(Ra,ed,ud)=>{const{placement:dd="bottom",strategy:hd="absolute",middleware:md=[],platform:gd}=ud,yd=md.filter(Boolean),vd=await(gd.isRTL==null?void 0:gd.isRTL(ed));let Cd=await gd.getElementRects({reference:Ra,floating:ed,strategy:hd}),{x:wd,y:Nd}=computeCoordsFromPlacement(Cd,dd,vd),Ld=dd,Ud={},jd=0;for(let Gd=0;Gd({name:"arrow",options:Ra,async fn(ed){const{x:ud,y:dd,placement:hd,rects:md,platform:gd,elements:yd,middlewareData:vd}=ed,{element:Cd,padding:wd=0}=evaluate$1(Ra,ed)||{};if(Cd==null)return{};const Nd=getPaddingObject(wd),Ld={x:ud,y:dd},Ud=getAlignmentAxis(hd),jd=getAxisLength(Ud),Gd=await gd.getDimensions(Cd),Yd=Ud==="y",zd=Yd?"top":"left",qd=Yd?"bottom":"right",Wd=Yd?"clientHeight":"clientWidth",Xd=md.reference[jd]+md.reference[Ud]-Ld[Ud]-md.floating[jd],Jd=Ld[Ud]-md.reference[Ud],Zd=await(gd.getOffsetParent==null?void 0:gd.getOffsetParent(Cd));let mf=Zd?Zd[Wd]:0;(!mf||!await(gd.isElement==null?void 0:gd.isElement(Zd)))&&(mf=yd.floating[Wd]||md.floating[jd]);const xf=Xd/2-Jd/2,_f=mf/2-Gd[jd]/2-1,vf=min$4(Nd[zd],_f),gf=min$4(Nd[qd],_f),Af=vf,Df=mf-Gd[jd]-gf,kf=mf/2-Gd[jd]/2+xf,Cf=clamp(Af,kf,Df),If=!vd.arrow&&getAlignment(hd)!=null&&kf!==Cf&&md.reference[jd]/2-(kfkf<=0)){var gf,Af;const kf=(((gf=md.flip)==null?void 0:gf.index)||0)+1,Cf=mf[kf];if(Cf)return{data:{index:kf,overflows:vf},reset:{placement:Cf}};let If=(Af=vf.filter(Ff=>Ff.overflows[0]<=0).sort((Ff,oh)=>Ff.overflows[1]-oh.overflows[1])[0])==null?void 0:Af.placement;if(!If)switch(Ud){case"bestFit":{var Df;const Ff=(Df=vf.filter(oh=>{if(Zd){const Eh=getSideAxis(oh.placement);return Eh===qd||Eh==="y"}return!0}).map(oh=>[oh.placement,oh.overflows.filter(Eh=>Eh>0).reduce((Eh,_h)=>Eh+_h,0)]).sort((oh,Eh)=>oh[1]-Eh[1])[0])==null?void 0:Df[0];Ff&&(If=Ff);break}case"initialPlacement":If=yd;break}if(hd!==If)return{reset:{placement:If}}}return{}}}};function getSideOffsets$1(Ra,ed){return{top:Ra.top-ed.height,right:Ra.right-ed.width,bottom:Ra.bottom-ed.height,left:Ra.left-ed.width}}function isAnySideFullyClipped$1(Ra){return sides.some(ed=>Ra[ed]>=0)}const hide$3=function(Ra){return Ra===void 0&&(Ra={}),{name:"hide",options:Ra,async fn(ed){const{rects:ud}=ed,{strategy:dd="referenceHidden",...hd}=evaluate$1(Ra,ed);switch(dd){case"referenceHidden":{const md=await detectOverflow$1(ed,{...hd,elementContext:"reference"}),gd=getSideOffsets$1(md,ud.reference);return{data:{referenceHiddenOffsets:gd,referenceHidden:isAnySideFullyClipped$1(gd)}}}case"escaped":{const md=await detectOverflow$1(ed,{...hd,altBoundary:!0}),gd=getSideOffsets$1(md,ud.floating);return{data:{escapedOffsets:gd,escaped:isAnySideFullyClipped$1(gd)}}}default:return{}}}}};async function convertValueToCoords(Ra,ed){const{placement:ud,platform:dd,elements:hd}=Ra,md=await(dd.isRTL==null?void 0:dd.isRTL(hd.floating)),gd=getSide(ud),yd=getAlignment(ud),vd=getSideAxis(ud)==="y",Cd=["left","top"].includes(gd)?-1:1,wd=md&&vd?-1:1,Nd=evaluate$1(ed,Ra);let{mainAxis:Ld,crossAxis:Ud,alignmentAxis:jd}=typeof Nd=="number"?{mainAxis:Nd,crossAxis:0,alignmentAxis:null}:{mainAxis:Nd.mainAxis||0,crossAxis:Nd.crossAxis||0,alignmentAxis:Nd.alignmentAxis};return yd&&typeof jd=="number"&&(Ud=yd==="end"?jd*-1:jd),vd?{x:Ud*wd,y:Ld*Cd}:{x:Ld*Cd,y:Ud*wd}}const offset$3=function(Ra){return Ra===void 0&&(Ra=0),{name:"offset",options:Ra,async fn(ed){var ud,dd;const{x:hd,y:md,placement:gd,middlewareData:yd}=ed,vd=await convertValueToCoords(ed,Ra);return gd===((ud=yd.offset)==null?void 0:ud.placement)&&(dd=yd.arrow)!=null&&dd.alignmentOffset?{}:{x:hd+vd.x,y:md+vd.y,data:{...vd,placement:gd}}}}},shift$1=function(Ra){return Ra===void 0&&(Ra={}),{name:"shift",options:Ra,async fn(ed){const{x:ud,y:dd,placement:hd}=ed,{mainAxis:md=!0,crossAxis:gd=!1,limiter:yd={fn:Yd=>{let{x:zd,y:qd}=Yd;return{x:zd,y:qd}}},...vd}=evaluate$1(Ra,ed),Cd={x:ud,y:dd},wd=await detectOverflow$1(ed,vd),Nd=getSideAxis(getSide(hd)),Ld=getOppositeAxis(Nd);let Ud=Cd[Ld],jd=Cd[Nd];if(md){const Yd=Ld==="y"?"top":"left",zd=Ld==="y"?"bottom":"right",qd=Ud+wd[Yd],Wd=Ud-wd[zd];Ud=clamp(qd,Ud,Wd)}if(gd){const Yd=Nd==="y"?"top":"left",zd=Nd==="y"?"bottom":"right",qd=jd+wd[Yd],Wd=jd-wd[zd];jd=clamp(qd,jd,Wd)}const Gd=yd.fn({...ed,[Ld]:Ud,[Nd]:jd});return{...Gd,data:{x:Gd.x-ud,y:Gd.y-dd,enabled:{[Ld]:md,[Nd]:gd}}}}}},limitShift$1=function(Ra){return Ra===void 0&&(Ra={}),{options:Ra,fn(ed){const{x:ud,y:dd,placement:hd,rects:md,middlewareData:gd}=ed,{offset:yd=0,mainAxis:vd=!0,crossAxis:Cd=!0}=evaluate$1(Ra,ed),wd={x:ud,y:dd},Nd=getSideAxis(hd),Ld=getOppositeAxis(Nd);let Ud=wd[Ld],jd=wd[Nd];const Gd=evaluate$1(yd,ed),Yd=typeof Gd=="number"?{mainAxis:Gd,crossAxis:0}:{mainAxis:0,crossAxis:0,...Gd};if(vd){const Wd=Ld==="y"?"height":"width",Xd=md.reference[Ld]-md.floating[Wd]+Yd.mainAxis,Jd=md.reference[Ld]+md.reference[Wd]-Yd.mainAxis;UdJd&&(Ud=Jd)}if(Cd){var zd,qd;const Wd=Ld==="y"?"width":"height",Xd=["top","left"].includes(getSide(hd)),Jd=md.reference[Nd]-md.floating[Wd]+(Xd&&((zd=gd.offset)==null?void 0:zd[Nd])||0)+(Xd?0:Yd.crossAxis),Zd=md.reference[Nd]+md.reference[Wd]+(Xd?0:((qd=gd.offset)==null?void 0:qd[Nd])||0)-(Xd?Yd.crossAxis:0);jdZd&&(jd=Zd)}return{[Ld]:Ud,[Nd]:jd}}}},size$1=function(Ra){return Ra===void 0&&(Ra={}),{name:"size",options:Ra,async fn(ed){var ud,dd;const{placement:hd,rects:md,platform:gd,elements:yd}=ed,{apply:vd=()=>{},...Cd}=evaluate$1(Ra,ed),wd=await detectOverflow$1(ed,Cd),Nd=getSide(hd),Ld=getAlignment(hd),Ud=getSideAxis(hd)==="y",{width:jd,height:Gd}=md.floating;let Yd,zd;Nd==="top"||Nd==="bottom"?(Yd=Nd,zd=Ld===(await(gd.isRTL==null?void 0:gd.isRTL(yd.floating))?"start":"end")?"left":"right"):(zd=Nd,Yd=Ld==="end"?"top":"bottom");const qd=Gd-wd.top-wd.bottom,Wd=jd-wd.left-wd.right,Xd=min$4(Gd-wd[Yd],qd),Jd=min$4(jd-wd[zd],Wd),Zd=!ed.middlewareData.shift;let mf=Xd,xf=Jd;if((ud=ed.middlewareData.shift)!=null&&ud.enabled.x&&(xf=Wd),(dd=ed.middlewareData.shift)!=null&&dd.enabled.y&&(mf=qd),Zd&&!Ld){const vf=max$5(wd.left,0),gf=max$5(wd.right,0),Af=max$5(wd.top,0),Df=max$5(wd.bottom,0);Ud?xf=jd-2*(vf!==0||gf!==0?vf+gf:max$5(wd.left,wd.right)):mf=Gd-2*(Af!==0||Df!==0?Af+Df:max$5(wd.top,wd.bottom))}await vd({...ed,availableWidth:xf,availableHeight:mf});const _f=await gd.getDimensions(yd.floating);return jd!==_f.width||Gd!==_f.height?{reset:{rects:!0}}:{}}}};function hasWindow(){return typeof window<"u"}function getNodeName$1(Ra){return isNode$2(Ra)?(Ra.nodeName||"").toLowerCase():"#document"}function getWindow$1(Ra){var ed;return(Ra==null||(ed=Ra.ownerDocument)==null?void 0:ed.defaultView)||window}function getDocumentElement$1(Ra){var ed;return(ed=(isNode$2(Ra)?Ra.ownerDocument:Ra.document)||window.document)==null?void 0:ed.documentElement}function isNode$2(Ra){return hasWindow()?Ra instanceof Node||Ra instanceof getWindow$1(Ra).Node:!1}function isElement$2(Ra){return hasWindow()?Ra instanceof Element||Ra instanceof getWindow$1(Ra).Element:!1}function isHTMLElement$1(Ra){return hasWindow()?Ra instanceof HTMLElement||Ra instanceof getWindow$1(Ra).HTMLElement:!1}function isShadowRoot$1(Ra){return!hasWindow()||typeof ShadowRoot>"u"?!1:Ra instanceof ShadowRoot||Ra instanceof getWindow$1(Ra).ShadowRoot}function isOverflowElement(Ra){const{overflow:ed,overflowX:ud,overflowY:dd,display:hd}=getComputedStyle$2(Ra);return/auto|scroll|overlay|hidden|clip/.test(ed+dd+ud)&&!["inline","contents"].includes(hd)}function isTableElement$1(Ra){return["table","td","th"].includes(getNodeName$1(Ra))}function isTopLayer(Ra){return[":popover-open",":modal"].some(ed=>{try{return Ra.matches(ed)}catch{return!1}})}function isContainingBlock(Ra){const ed=isWebKit(),ud=isElement$2(Ra)?getComputedStyle$2(Ra):Ra;return["transform","translate","scale","rotate","perspective"].some(dd=>ud[dd]?ud[dd]!=="none":!1)||(ud.containerType?ud.containerType!=="normal":!1)||!ed&&(ud.backdropFilter?ud.backdropFilter!=="none":!1)||!ed&&(ud.filter?ud.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(dd=>(ud.willChange||"").includes(dd))||["paint","layout","strict","content"].some(dd=>(ud.contain||"").includes(dd))}function getContainingBlock$1(Ra){let ed=getParentNode$1(Ra);for(;isHTMLElement$1(ed)&&!isLastTraversableNode(ed);){if(isContainingBlock(ed))return ed;if(isTopLayer(ed))return null;ed=getParentNode$1(ed)}return null}function isWebKit(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(Ra){return["html","body","#document"].includes(getNodeName$1(Ra))}function getComputedStyle$2(Ra){return getWindow$1(Ra).getComputedStyle(Ra)}function getNodeScroll$1(Ra){return isElement$2(Ra)?{scrollLeft:Ra.scrollLeft,scrollTop:Ra.scrollTop}:{scrollLeft:Ra.scrollX,scrollTop:Ra.scrollY}}function getParentNode$1(Ra){if(getNodeName$1(Ra)==="html")return Ra;const ed=Ra.assignedSlot||Ra.parentNode||isShadowRoot$1(Ra)&&Ra.host||getDocumentElement$1(Ra);return isShadowRoot$1(ed)?ed.host:ed}function getNearestOverflowAncestor(Ra){const ed=getParentNode$1(Ra);return isLastTraversableNode(ed)?Ra.ownerDocument?Ra.ownerDocument.body:Ra.body:isHTMLElement$1(ed)&&isOverflowElement(ed)?ed:getNearestOverflowAncestor(ed)}function getOverflowAncestors(Ra,ed,ud){var dd;ed===void 0&&(ed=[]),ud===void 0&&(ud=!0);const hd=getNearestOverflowAncestor(Ra),md=hd===((dd=Ra.ownerDocument)==null?void 0:dd.body),gd=getWindow$1(hd);if(md){const yd=getFrameElement(gd);return ed.concat(gd,gd.visualViewport||[],isOverflowElement(hd)?hd:[],yd&&ud?getOverflowAncestors(yd):[])}return ed.concat(hd,getOverflowAncestors(hd,[],ud))}function getFrameElement(Ra){return Ra.parent&&Object.getPrototypeOf(Ra.parent)?Ra.frameElement:null}function getCssDimensions(Ra){const ed=getComputedStyle$2(Ra);let ud=parseFloat(ed.width)||0,dd=parseFloat(ed.height)||0;const hd=isHTMLElement$1(Ra),md=hd?Ra.offsetWidth:ud,gd=hd?Ra.offsetHeight:dd,yd=round$3(ud)!==md||round$3(dd)!==gd;return yd&&(ud=md,dd=gd),{width:ud,height:dd,$:yd}}function unwrapElement$1(Ra){return isElement$2(Ra)?Ra:Ra.contextElement}function getScale(Ra){const ed=unwrapElement$1(Ra);if(!isHTMLElement$1(ed))return createCoords(1);const ud=ed.getBoundingClientRect(),{width:dd,height:hd,$:md}=getCssDimensions(ed);let gd=(md?round$3(ud.width):ud.width)/dd,yd=(md?round$3(ud.height):ud.height)/hd;return(!gd||!Number.isFinite(gd))&&(gd=1),(!yd||!Number.isFinite(yd))&&(yd=1),{x:gd,y:yd}}const noOffsets=createCoords(0);function getVisualOffsets(Ra){const ed=getWindow$1(Ra);return!isWebKit()||!ed.visualViewport?noOffsets:{x:ed.visualViewport.offsetLeft,y:ed.visualViewport.offsetTop}}function shouldAddVisualOffsets(Ra,ed,ud){return ed===void 0&&(ed=!1),!ud||ed&&ud!==getWindow$1(Ra)?!1:ed}function getBoundingClientRect$1(Ra,ed,ud,dd){ed===void 0&&(ed=!1),ud===void 0&&(ud=!1);const hd=Ra.getBoundingClientRect(),md=unwrapElement$1(Ra);let gd=createCoords(1);ed&&(dd?isElement$2(dd)&&(gd=getScale(dd)):gd=getScale(Ra));const yd=shouldAddVisualOffsets(md,ud,dd)?getVisualOffsets(md):createCoords(0);let vd=(hd.left+yd.x)/gd.x,Cd=(hd.top+yd.y)/gd.y,wd=hd.width/gd.x,Nd=hd.height/gd.y;if(md){const Ld=getWindow$1(md),Ud=dd&&isElement$2(dd)?getWindow$1(dd):dd;let jd=Ld,Gd=getFrameElement(jd);for(;Gd&&dd&&Ud!==jd;){const Yd=getScale(Gd),zd=Gd.getBoundingClientRect(),qd=getComputedStyle$2(Gd),Wd=zd.left+(Gd.clientLeft+parseFloat(qd.paddingLeft))*Yd.x,Xd=zd.top+(Gd.clientTop+parseFloat(qd.paddingTop))*Yd.y;vd*=Yd.x,Cd*=Yd.y,wd*=Yd.x,Nd*=Yd.y,vd+=Wd,Cd+=Xd,jd=getWindow$1(Gd),Gd=getFrameElement(jd)}}return rectToClientRect$1({width:wd,height:Nd,x:vd,y:Cd})}function getWindowScrollBarX$1(Ra,ed){const ud=getNodeScroll$1(Ra).scrollLeft;return ed?ed.left+ud:getBoundingClientRect$1(getDocumentElement$1(Ra)).left+ud}function getHTMLOffset(Ra,ed,ud){ud===void 0&&(ud=!1);const dd=Ra.getBoundingClientRect(),hd=dd.left+ed.scrollLeft-(ud?0:getWindowScrollBarX$1(Ra,dd)),md=dd.top+ed.scrollTop;return{x:hd,y:md}}function convertOffsetParentRelativeRectToViewportRelativeRect(Ra){let{elements:ed,rect:ud,offsetParent:dd,strategy:hd}=Ra;const md=hd==="fixed",gd=getDocumentElement$1(dd),yd=ed?isTopLayer(ed.floating):!1;if(dd===gd||yd&&md)return ud;let vd={scrollLeft:0,scrollTop:0},Cd=createCoords(1);const wd=createCoords(0),Nd=isHTMLElement$1(dd);if((Nd||!Nd&&!md)&&((getNodeName$1(dd)!=="body"||isOverflowElement(gd))&&(vd=getNodeScroll$1(dd)),isHTMLElement$1(dd))){const Ud=getBoundingClientRect$1(dd);Cd=getScale(dd),wd.x=Ud.x+dd.clientLeft,wd.y=Ud.y+dd.clientTop}const Ld=gd&&!Nd&&!md?getHTMLOffset(gd,vd,!0):createCoords(0);return{width:ud.width*Cd.x,height:ud.height*Cd.y,x:ud.x*Cd.x-vd.scrollLeft*Cd.x+wd.x+Ld.x,y:ud.y*Cd.y-vd.scrollTop*Cd.y+wd.y+Ld.y}}function getClientRects(Ra){return Array.from(Ra.getClientRects())}function getDocumentRect$1(Ra){const ed=getDocumentElement$1(Ra),ud=getNodeScroll$1(Ra),dd=Ra.ownerDocument.body,hd=max$5(ed.scrollWidth,ed.clientWidth,dd.scrollWidth,dd.clientWidth),md=max$5(ed.scrollHeight,ed.clientHeight,dd.scrollHeight,dd.clientHeight);let gd=-ud.scrollLeft+getWindowScrollBarX$1(Ra);const yd=-ud.scrollTop;return getComputedStyle$2(dd).direction==="rtl"&&(gd+=max$5(ed.clientWidth,dd.clientWidth)-hd),{width:hd,height:md,x:gd,y:yd}}function getViewportRect$1(Ra,ed){const ud=getWindow$1(Ra),dd=getDocumentElement$1(Ra),hd=ud.visualViewport;let md=dd.clientWidth,gd=dd.clientHeight,yd=0,vd=0;if(hd){md=hd.width,gd=hd.height;const Cd=isWebKit();(!Cd||Cd&&ed==="fixed")&&(yd=hd.offsetLeft,vd=hd.offsetTop)}return{width:md,height:gd,x:yd,y:vd}}function getInnerBoundingClientRect$1(Ra,ed){const ud=getBoundingClientRect$1(Ra,!0,ed==="fixed"),dd=ud.top+Ra.clientTop,hd=ud.left+Ra.clientLeft,md=isHTMLElement$1(Ra)?getScale(Ra):createCoords(1),gd=Ra.clientWidth*md.x,yd=Ra.clientHeight*md.y,vd=hd*md.x,Cd=dd*md.y;return{width:gd,height:yd,x:vd,y:Cd}}function getClientRectFromClippingAncestor(Ra,ed,ud){let dd;if(ed==="viewport")dd=getViewportRect$1(Ra,ud);else if(ed==="document")dd=getDocumentRect$1(getDocumentElement$1(Ra));else if(isElement$2(ed))dd=getInnerBoundingClientRect$1(ed,ud);else{const hd=getVisualOffsets(Ra);dd={x:ed.x-hd.x,y:ed.y-hd.y,width:ed.width,height:ed.height}}return rectToClientRect$1(dd)}function hasFixedPositionAncestor(Ra,ed){const ud=getParentNode$1(Ra);return ud===ed||!isElement$2(ud)||isLastTraversableNode(ud)?!1:getComputedStyle$2(ud).position==="fixed"||hasFixedPositionAncestor(ud,ed)}function getClippingElementAncestors(Ra,ed){const ud=ed.get(Ra);if(ud)return ud;let dd=getOverflowAncestors(Ra,[],!1).filter(yd=>isElement$2(yd)&&getNodeName$1(yd)!=="body"),hd=null;const md=getComputedStyle$2(Ra).position==="fixed";let gd=md?getParentNode$1(Ra):Ra;for(;isElement$2(gd)&&!isLastTraversableNode(gd);){const yd=getComputedStyle$2(gd),vd=isContainingBlock(gd);!vd&&yd.position==="fixed"&&(hd=null),(md?!vd&&!hd:!vd&&yd.position==="static"&&!!hd&&["absolute","fixed"].includes(hd.position)||isOverflowElement(gd)&&!vd&&hasFixedPositionAncestor(Ra,gd))?dd=dd.filter(wd=>wd!==gd):hd=yd,gd=getParentNode$1(gd)}return ed.set(Ra,dd),dd}function getClippingRect$1(Ra){let{element:ed,boundary:ud,rootBoundary:dd,strategy:hd}=Ra;const gd=[...ud==="clippingAncestors"?isTopLayer(ed)?[]:getClippingElementAncestors(ed,this._c):[].concat(ud),dd],yd=gd[0],vd=gd.reduce((Cd,wd)=>{const Nd=getClientRectFromClippingAncestor(ed,wd,hd);return Cd.top=max$5(Nd.top,Cd.top),Cd.right=min$4(Nd.right,Cd.right),Cd.bottom=min$4(Nd.bottom,Cd.bottom),Cd.left=max$5(Nd.left,Cd.left),Cd},getClientRectFromClippingAncestor(ed,yd,hd));return{width:vd.right-vd.left,height:vd.bottom-vd.top,x:vd.left,y:vd.top}}function getDimensions(Ra){const{width:ed,height:ud}=getCssDimensions(Ra);return{width:ed,height:ud}}function getRectRelativeToOffsetParent(Ra,ed,ud){const dd=isHTMLElement$1(ed),hd=getDocumentElement$1(ed),md=ud==="fixed",gd=getBoundingClientRect$1(Ra,!0,md,ed);let yd={scrollLeft:0,scrollTop:0};const vd=createCoords(0);if(dd||!dd&&!md)if((getNodeName$1(ed)!=="body"||isOverflowElement(hd))&&(yd=getNodeScroll$1(ed)),dd){const Ld=getBoundingClientRect$1(ed,!0,md,ed);vd.x=Ld.x+ed.clientLeft,vd.y=Ld.y+ed.clientTop}else hd&&(vd.x=getWindowScrollBarX$1(hd));const Cd=hd&&!dd&&!md?getHTMLOffset(hd,yd):createCoords(0),wd=gd.left+yd.scrollLeft-vd.x-Cd.x,Nd=gd.top+yd.scrollTop-vd.y-Cd.y;return{x:wd,y:Nd,width:gd.width,height:gd.height}}function isStaticPositioned(Ra){return getComputedStyle$2(Ra).position==="static"}function getTrueOffsetParent$1(Ra,ed){if(!isHTMLElement$1(Ra)||getComputedStyle$2(Ra).position==="fixed")return null;if(ed)return ed(Ra);let ud=Ra.offsetParent;return getDocumentElement$1(Ra)===ud&&(ud=ud.ownerDocument.body),ud}function getOffsetParent$1(Ra,ed){const ud=getWindow$1(Ra);if(isTopLayer(Ra))return ud;if(!isHTMLElement$1(Ra)){let hd=getParentNode$1(Ra);for(;hd&&!isLastTraversableNode(hd);){if(isElement$2(hd)&&!isStaticPositioned(hd))return hd;hd=getParentNode$1(hd)}return ud}let dd=getTrueOffsetParent$1(Ra,ed);for(;dd&&isTableElement$1(dd)&&isStaticPositioned(dd);)dd=getTrueOffsetParent$1(dd,ed);return dd&&isLastTraversableNode(dd)&&isStaticPositioned(dd)&&!isContainingBlock(dd)?ud:dd||getContainingBlock$1(Ra)||ud}const getElementRects=async function(Ra){const ed=this.getOffsetParent||getOffsetParent$1,ud=this.getDimensions,dd=await ud(Ra.floating);return{reference:getRectRelativeToOffsetParent(Ra.reference,await ed(Ra.floating),Ra.strategy),floating:{x:0,y:0,width:dd.width,height:dd.height}}};function isRTL(Ra){return getComputedStyle$2(Ra).direction==="rtl"}const platform$3={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement:getDocumentElement$1,getClippingRect:getClippingRect$1,getOffsetParent:getOffsetParent$1,getElementRects,getClientRects,getDimensions,getScale,isElement:isElement$2,isRTL};function rectsAreEqual(Ra,ed){return Ra.x===ed.x&&Ra.y===ed.y&&Ra.width===ed.width&&Ra.height===ed.height}function observeMove(Ra,ed){let ud=null,dd;const hd=getDocumentElement$1(Ra);function md(){var yd;clearTimeout(dd),(yd=ud)==null||yd.disconnect(),ud=null}function gd(yd,vd){yd===void 0&&(yd=!1),vd===void 0&&(vd=1),md();const Cd=Ra.getBoundingClientRect(),{left:wd,top:Nd,width:Ld,height:Ud}=Cd;if(yd||ed(),!Ld||!Ud)return;const jd=floor$2(Nd),Gd=floor$2(hd.clientWidth-(wd+Ld)),Yd=floor$2(hd.clientHeight-(Nd+Ud)),zd=floor$2(wd),Wd={rootMargin:-jd+"px "+-Gd+"px "+-Yd+"px "+-zd+"px",threshold:max$5(0,min$4(1,vd))||1};let Xd=!0;function Jd(Zd){const mf=Zd[0].intersectionRatio;if(mf!==vd){if(!Xd)return gd();mf?gd(!1,mf):dd=setTimeout(()=>{gd(!1,1e-7)},1e3)}mf===1&&!rectsAreEqual(Cd,Ra.getBoundingClientRect())&&gd(),Xd=!1}try{ud=new IntersectionObserver(Jd,{...Wd,root:hd.ownerDocument})}catch{ud=new IntersectionObserver(Jd,Wd)}ud.observe(Ra)}return gd(!0),md}function autoUpdate(Ra,ed,ud,dd){dd===void 0&&(dd={});const{ancestorScroll:hd=!0,ancestorResize:md=!0,elementResize:gd=typeof ResizeObserver=="function",layoutShift:yd=typeof IntersectionObserver=="function",animationFrame:vd=!1}=dd,Cd=unwrapElement$1(Ra),wd=hd||md?[...Cd?getOverflowAncestors(Cd):[],...getOverflowAncestors(ed)]:[];wd.forEach(zd=>{hd&&zd.addEventListener("scroll",ud,{passive:!0}),md&&zd.addEventListener("resize",ud)});const Nd=Cd&&yd?observeMove(Cd,ud):null;let Ld=-1,Ud=null;gd&&(Ud=new ResizeObserver(zd=>{let[qd]=zd;qd&&qd.target===Cd&&Ud&&(Ud.unobserve(ed),cancelAnimationFrame(Ld),Ld=requestAnimationFrame(()=>{var Wd;(Wd=Ud)==null||Wd.observe(ed)})),ud()}),Cd&&!vd&&Ud.observe(Cd),Ud.observe(ed));let jd,Gd=vd?getBoundingClientRect$1(Ra):null;vd&&Yd();function Yd(){const zd=getBoundingClientRect$1(Ra);Gd&&!rectsAreEqual(Gd,zd)&&ud(),Gd=zd,jd=requestAnimationFrame(Yd)}return ud(),()=>{var zd;wd.forEach(qd=>{hd&&qd.removeEventListener("scroll",ud),md&&qd.removeEventListener("resize",ud)}),Nd==null||Nd(),(zd=Ud)==null||zd.disconnect(),Ud=null,vd&&cancelAnimationFrame(jd)}}const offset$2=offset$3,shift=shift$1,flip$2=flip$3,size=size$1,hide$2=hide$3,arrow$3=arrow$4,limitShift=limitShift$1,computePosition=(Ra,ed,ud)=>{const dd=new Map,hd={platform:platform$3,...ud},md={...hd.platform,_c:dd};return computePosition$1(Ra,ed,{...hd,platform:md})};function isComponentPublicInstance(Ra){return Ra!=null&&typeof Ra=="object"&&"$el"in Ra}function unwrapElement(Ra){if(isComponentPublicInstance(Ra)){const ed=Ra.$el;return isNode$2(ed)&&getNodeName$1(ed)==="#comment"?null:ed}return Ra}function toValue$1(Ra){return typeof Ra=="function"?Ra():unref(Ra)}function arrow$2(Ra){return{name:"arrow",options:Ra,fn(ed){const ud=unwrapElement(toValue$1(Ra.element));return ud==null?{}:arrow$3({element:ud,padding:Ra.padding}).fn(ed)}}}function getDPR(Ra){return typeof window>"u"?1:(Ra.ownerDocument.defaultView||window).devicePixelRatio||1}function roundByDPR(Ra,ed){const ud=getDPR(Ra);return Math.round(ed*ud)/ud}function useFloating(Ra,ed,ud){ud===void 0&&(ud={});const dd=ud.whileElementsMounted,hd=computed(()=>{var mf;return(mf=toValue$1(ud.open))!=null?mf:!0}),md=computed(()=>toValue$1(ud.middleware)),gd=computed(()=>{var mf;return(mf=toValue$1(ud.placement))!=null?mf:"bottom"}),yd=computed(()=>{var mf;return(mf=toValue$1(ud.strategy))!=null?mf:"absolute"}),vd=computed(()=>{var mf;return(mf=toValue$1(ud.transform))!=null?mf:!0}),Cd=computed(()=>unwrapElement(Ra.value)),wd=computed(()=>unwrapElement(ed.value)),Nd=ref$1(0),Ld=ref$1(0),Ud=ref$1(yd.value),jd=ref$1(gd.value),Gd=shallowRef({}),Yd=ref$1(!1),zd=computed(()=>{const mf={position:Ud.value,left:"0",top:"0"};if(!wd.value)return mf;const xf=roundByDPR(wd.value,Nd.value),_f=roundByDPR(wd.value,Ld.value);return vd.value?{...mf,transform:"translate("+xf+"px, "+_f+"px)",...getDPR(wd.value)>=1.5&&{willChange:"transform"}}:{position:Ud.value,left:xf+"px",top:_f+"px"}});let qd;function Wd(){if(Cd.value==null||wd.value==null)return;const mf=hd.value;computePosition(Cd.value,wd.value,{middleware:md.value,placement:gd.value,strategy:yd.value}).then(xf=>{Nd.value=xf.x,Ld.value=xf.y,Ud.value=xf.strategy,jd.value=xf.placement,Gd.value=xf.middlewareData,Yd.value=mf!==!1})}function Xd(){typeof qd=="function"&&(qd(),qd=void 0)}function Jd(){if(Xd(),dd===void 0){Wd();return}if(Cd.value!=null&&wd.value!=null){qd=dd(Cd.value,wd.value,Wd);return}}function Zd(){hd.value||(Yd.value=!1)}return watch([md,gd,yd,hd],Wd,{flush:"sync"}),watch([Cd,wd],Jd,{flush:"sync"}),watch(hd,Zd,{flush:"sync"}),getCurrentScope()&&onScopeDispose(Xd),{x:shallowReadonly(Nd),y:shallowReadonly(Ld),strategy:shallowReadonly(Ud),placement:shallowReadonly(jd),middlewareData:shallowReadonly(Gd),isPositioned:shallowReadonly(Yd),floatingStyles:zd,update:Wd}}let $488c6ddbf4ef74c2$var$formatterCache=new Map,$488c6ddbf4ef74c2$var$supportsSignDisplay=!1;try{$488c6ddbf4ef74c2$var$supportsSignDisplay=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let $488c6ddbf4ef74c2$var$supportsUnit=!1;try{$488c6ddbf4ef74c2$var$supportsUnit=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const $488c6ddbf4ef74c2$var$UNITS={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5{format(ed){let ud="";if(!$488c6ddbf4ef74c2$var$supportsSignDisplay&&this.options.signDisplay!=null?ud=$488c6ddbf4ef74c2$export$711b50b3c525e0f2(this.numberFormatter,this.options.signDisplay,ed):ud=this.numberFormatter.format(ed),this.options.style==="unit"&&!$488c6ddbf4ef74c2$var$supportsUnit){var dd;let{unit:hd,unitDisplay:md="short",locale:gd}=this.resolvedOptions();if(!hd)return ud;let yd=(dd=$488c6ddbf4ef74c2$var$UNITS[hd])===null||dd===void 0?void 0:dd[md];ud+=yd[gd]||yd.default}return ud}formatToParts(ed){return this.numberFormatter.formatToParts(ed)}formatRange(ed,ud){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(ed,ud);if(ud= start date");return`${this.format(ed)} – ${this.format(ud)}`}formatRangeToParts(ed,ud){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(ed,ud);if(ud= start date");let dd=this.numberFormatter.formatToParts(ed),hd=this.numberFormatter.formatToParts(ud);return[...dd.map(md=>({...md,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...hd.map(md=>({...md,source:"endRange"}))]}resolvedOptions(){let ed=this.numberFormatter.resolvedOptions();return!$488c6ddbf4ef74c2$var$supportsSignDisplay&&this.options.signDisplay!=null&&(ed={...ed,signDisplay:this.options.signDisplay}),!$488c6ddbf4ef74c2$var$supportsUnit&&this.options.style==="unit"&&(ed={...ed,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),ed}constructor(ed,ud={}){this.numberFormatter=$488c6ddbf4ef74c2$var$getCachedNumberFormatter(ed,ud),this.options=ud}}function $488c6ddbf4ef74c2$var$getCachedNumberFormatter(Ra,ed={}){let{numberingSystem:ud}=ed;if(ud&&Ra.includes("-nu-")&&(Ra.includes("-u-")||(Ra+="-u-"),Ra+=`-nu-${ud}`),ed.style==="unit"&&!$488c6ddbf4ef74c2$var$supportsUnit){var dd;let{unit:gd,unitDisplay:yd="short"}=ed;if(!gd)throw new Error('unit option must be provided with style: "unit"');if(!(!((dd=$488c6ddbf4ef74c2$var$UNITS[gd])===null||dd===void 0)&&dd[yd]))throw new Error(`Unsupported unit ${gd} with unitDisplay = ${yd}`);ed={...ed,style:"decimal"}}let hd=Ra+(ed?Object.entries(ed).sort((gd,yd)=>gd[0]0||Object.is(ud,0):ed==="exceptZero"&&(Object.is(ud,-0)||Object.is(ud,0)?ud=Math.abs(ud):dd=ud>0),dd){let hd=Ra.format(-ud),md=Ra.format(ud),gd=hd.replace(md,"").replace(/\u200e|\u061C/,"");return[...gd].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),hd.replace(md,"!!!").replace(gd,"+").replace("!!!",md)}else return Ra.format(ud)}}const $6c7bd7858deea686$var$CURRENCY_SIGN_REGEX=new RegExp("^.*\\(.*\\).*$"),$6c7bd7858deea686$var$NUMBERING_SYSTEMS=["latn","arab","hanidec","deva","beng"];class $6c7bd7858deea686$export$cd11ab140839f11d{parse(ed){return $6c7bd7858deea686$var$getNumberParserImpl(this.locale,this.options,ed).parse(ed)}isValidPartialNumber(ed,ud,dd){return $6c7bd7858deea686$var$getNumberParserImpl(this.locale,this.options,ed).isValidPartialNumber(ed,ud,dd)}getNumberingSystem(ed){return $6c7bd7858deea686$var$getNumberParserImpl(this.locale,this.options,ed).options.numberingSystem}constructor(ed,ud={}){this.locale=ed,this.options=ud}}const $6c7bd7858deea686$var$numberParserCache=new Map;function $6c7bd7858deea686$var$getNumberParserImpl(Ra,ed,ud){let dd=$6c7bd7858deea686$var$getCachedNumberParser(Ra,ed);if(!Ra.includes("-nu-")&&!dd.isValidPartialNumber(ud)){for(let hd of $6c7bd7858deea686$var$NUMBERING_SYSTEMS)if(hd!==dd.options.numberingSystem){let md=$6c7bd7858deea686$var$getCachedNumberParser(Ra+(Ra.includes("-u-")?"-nu-":"-u-nu-")+hd,ed);if(md.isValidPartialNumber(ud))return md}}return dd}function $6c7bd7858deea686$var$getCachedNumberParser(Ra,ed){let ud=Ra+(ed?Object.entries(ed).sort((hd,md)=>hd[0]-1&&(ud=`-${ud}`)}let dd=ud?+ud:NaN;if(isNaN(dd))return NaN;if(this.options.style==="percent"){var hd,md;let gd={...this.options,style:"decimal",minimumFractionDigits:Math.min(((hd=this.options.minimumFractionDigits)!==null&&hd!==void 0?hd:0)+2,20),maximumFractionDigits:Math.min(((md=this.options.maximumFractionDigits)!==null&&md!==void 0?md:0)+2,20)};return new $6c7bd7858deea686$export$cd11ab140839f11d(this.locale,gd).parse(new $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5(this.locale,gd).format(dd))}return this.options.currencySign==="accounting"&&$6c7bd7858deea686$var$CURRENCY_SIGN_REGEX.test(ed)&&(dd=-1*dd),dd}sanitize(ed){return ed=ed.replace(this.symbols.literals,""),this.symbols.minusSign&&(ed=ed.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(ed=ed.replace(",",this.symbols.decimal),ed=ed.replace("،",this.symbols.decimal)),this.symbols.group&&(ed=$6c7bd7858deea686$var$replaceAll(ed,".",this.symbols.group))),this.options.locale==="fr-FR"&&(ed=$6c7bd7858deea686$var$replaceAll(ed,"."," ")),ed}isValidPartialNumber(ed,ud=-1/0,dd=1/0){return ed=this.sanitize(ed),this.symbols.minusSign&&ed.startsWith(this.symbols.minusSign)&&ud<0?ed=ed.slice(this.symbols.minusSign.length):this.symbols.plusSign&&ed.startsWith(this.symbols.plusSign)&&dd>0&&(ed=ed.slice(this.symbols.plusSign.length)),this.symbols.group&&ed.startsWith(this.symbols.group)||this.symbols.decimal&&ed.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(ed=$6c7bd7858deea686$var$replaceAll(ed,this.symbols.group,"")),ed=ed.replace(this.symbols.numeral,""),this.symbols.decimal&&(ed=ed.replace(this.symbols.decimal,"")),ed.length===0)}constructor(ed,ud={}){this.locale=ed,this.formatter=new Intl.NumberFormat(ed,ud),this.options=this.formatter.resolvedOptions(),this.symbols=$6c7bd7858deea686$var$getSymbols(ed,this.formatter,this.options,ud);var dd,hd;this.options.style==="percent"&&(((dd=this.options.minimumFractionDigits)!==null&&dd!==void 0?dd:0)>18||((hd=this.options.maximumFractionDigits)!==null&&hd!==void 0?hd:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const $6c7bd7858deea686$var$nonLiteralParts=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),$6c7bd7858deea686$var$pluralNumbers=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function $6c7bd7858deea686$var$getSymbols(Ra,ed,ud,dd){var hd,md,gd,yd;let vd=new Intl.NumberFormat(Ra,{...ud,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),Cd=vd.formatToParts(-10000.111),wd=vd.formatToParts(10000.111),Nd=$6c7bd7858deea686$var$pluralNumbers.map(vf=>vd.formatToParts(vf));var Ld;let Ud=(Ld=(hd=Cd.find(vf=>vf.type==="minusSign"))===null||hd===void 0?void 0:hd.value)!==null&&Ld!==void 0?Ld:"-",jd=(md=wd.find(vf=>vf.type==="plusSign"))===null||md===void 0?void 0:md.value;!jd&&((dd==null?void 0:dd.signDisplay)==="exceptZero"||(dd==null?void 0:dd.signDisplay)==="always")&&(jd="+");let Yd=(gd=new Intl.NumberFormat(Ra,{...ud,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(vf=>vf.type==="decimal"))===null||gd===void 0?void 0:gd.value,zd=(yd=Cd.find(vf=>vf.type==="group"))===null||yd===void 0?void 0:yd.value,qd=Cd.filter(vf=>!$6c7bd7858deea686$var$nonLiteralParts.has(vf.type)).map(vf=>$6c7bd7858deea686$var$escapeRegex(vf.value)),Wd=Nd.flatMap(vf=>vf.filter(gf=>!$6c7bd7858deea686$var$nonLiteralParts.has(gf.type)).map(gf=>$6c7bd7858deea686$var$escapeRegex(gf.value))),Xd=[...new Set([...qd,...Wd])].sort((vf,gf)=>gf.length-vf.length),Jd=Xd.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${Xd.join("|")}|[\\p{White_Space}]`,"gu"),Zd=[...new Intl.NumberFormat(ud.locale,{useGrouping:!1}).format(9876543210)].reverse(),mf=new Map(Zd.map((vf,gf)=>[vf,gf])),xf=new RegExp(`[${Zd.join("")}]`,"g");return{minusSign:Ud,plusSign:jd,decimal:Yd,group:zd,literals:Jd,numeral:xf,index:vf=>String(mf.get(vf))}}function $6c7bd7858deea686$var$replaceAll(Ra,ed,ud){return Ra.replaceAll?Ra.replaceAll(ed,ud):Ra.split(ed).join(ud)}function $6c7bd7858deea686$var$escapeRegex(Ra){return Ra.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function te$5(Ra,ed){const ud=typeof Ra=="string"&&!ed?`${Ra}Context`:ed,dd=Symbol(ud);return[hd=>{const md=inject(dd,hd);if(md||md===null)return md;throw new Error(`Injection \`${dd.toString()}\` not found. Component must be used within ${Array.isArray(Ra)?`one of the following components: ${Ra.join(", ")}`:`\`${Ra}\``}`)},hd=>(provide(dd,hd),hd)]}function jt$3(Ra,ed,ud){const dd=ud.originalEvent.target,hd=new CustomEvent(Ra,{bubbles:!1,cancelable:!0,detail:ud});ed&&dd.addEventListener(Ra,ed,{once:!0}),dd.dispatchEvent(hd)}function Ut$4(Ra,ed=Number.NEGATIVE_INFINITY,ud=Number.POSITIVE_INFINITY){return Math.min(ud,Math.max(ed,Ra))}function Da$1(Ra,ed){let ud=Ra;const dd=ed.toString(),hd=dd.indexOf("."),md=hd>=0?dd.length-hd:0;if(md>0){const gd=10**md;ud=Math.round(ud*gd)/gd}return ud}function Wr$4(Ra,ed,ud,dd){ed=Number(ed),ud=Number(ud);const hd=(Ra-(Number.isNaN(ed)?0:ed))%dd;let md=Da$1(Math.abs(hd)*2>=dd?Ra+Math.sign(hd)*(dd-Math.abs(hd)):Ra-hd,dd);return Number.isNaN(ed)?!Number.isNaN(ud)&&md>ud&&(md=Math.floor(Da$1(ud/dd,dd))*dd):mdud&&(md=ed+Math.floor(Da$1((ud-ed)/dd,dd))*dd),md=Da$1(md,dd),md}function ht$3(Ra){return Ra==null}function ni$4(Ra,ed){var ud;const dd=shallowRef();return watchEffect(()=>{dd.value=Ra()},{...ed,flush:(ud=void 0)!=null?ud:"sync"}),readonly(dd)}function bt$5(Ra){return getCurrentScope()?(onScopeDispose(Ra),!0):!1}function ua$2(){const Ra=new Set,ed=ud=>{Ra.delete(ud)};return{on:ud=>{Ra.add(ud);const dd=()=>ed(ud);return bt$5(dd),{off:dd}},off:ed,trigger:(...ud)=>Promise.all(Array.from(Ra).map(dd=>dd(...ud)))}}function li$4(Ra){let ed=!1,ud;const dd=effectScope(!0);return(...hd)=>(ed||(ud=dd.run(()=>Ra(...hd)),ed=!0),ud)}function Dl$3(Ra){let ed=0,ud,dd;const hd=()=>{ed-=1,dd&&ed<=0&&(dd.stop(),ud=void 0,dd=void 0)};return(...md)=>(ed+=1,ud||(dd=effectScope(!0),ud=dd.run(()=>Ra(...md))),bt$5(hd),ud)}function je$6(Ra){return typeof Ra=="function"?Ra():unref(Ra)}function si$4(Ra){if(!isRef(Ra))return reactive(Ra);const ed=new Proxy({},{get(ud,dd,hd){return unref(Reflect.get(Ra.value,dd,hd))},set(ud,dd,hd){return isRef(Ra.value[dd])&&!isRef(hd)?Ra.value[dd].value=hd:Ra.value[dd]=hd,!0},deleteProperty(ud,dd){return Reflect.deleteProperty(Ra.value,dd)},has(ud,dd){return Reflect.has(Ra.value,dd)},ownKeys(){return Object.keys(Ra.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return reactive(ed)}function $l$3(Ra){return si$4(computed(Ra))}const Je$3=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ri$4=Ra=>typeof Ra<"u",ui$4=Object.prototype.toString,di$4=Ra=>ui$4.call(Ra)==="[object Object]",Na$1=()=>{},jo$2=ci$5();function ci$5(){var Ra,ed;return Je$3&&((Ra=window==null?void 0:window.navigator)==null?void 0:Ra.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((ed=window==null?void 0:window.navigator)==null?void 0:ed.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Bl$3(Ra,ed){function ud(...dd){return new Promise((hd,md)=>{Promise.resolve(Ra(()=>ed.apply(this,dd),{fn:ed,thisArg:this,args:dd})).then(hd).catch(md)})}return ud}const Il$3=Ra=>Ra();function pi$6(Ra=Il$3){const ed=ref$1(!0);function ud(){ed.value=!1}function dd(){ed.value=!0}const hd=(...md)=>{ed.value&&Ra(...md)};return{isActive:readonly(ed),pause:ud,resume:dd,eventFilter:hd}}function Tl$3(Ra){return getCurrentInstance()}function Tt$3(Ra,ed=1e4){return customRef((ud,dd)=>{let hd=je$6(Ra),md;const gd=()=>setTimeout(()=>{hd=je$6(Ra),dd()},je$6(ed));return bt$5(()=>{clearTimeout(md)}),{get(){return ud(),hd},set(yd){hd=yd,dd(),clearTimeout(md),md=gd()}}})}function vi$2(Ra,ed,ud={}){const{eventFilter:dd=Il$3,...hd}=ud;return watch(Ra,Bl$3(dd,ed),hd)}function Uo$3(Ra,ed,ud={}){const{eventFilter:dd,...hd}=ud,{eventFilter:md,pause:gd,resume:yd,isActive:vd}=pi$6(dd);return{stop:vi$2(Ra,ed,{...hd,eventFilter:md}),pause:gd,resume:yd,isActive:vd}}function mi$2(Ra,ed,...[ud]){const{flush:dd="sync",deep:hd=!1,immediate:md=!0,direction:gd="both",transform:yd={}}=ud||{},vd=[],Cd="ltr"in yd&&yd.ltr||(Nd=>Nd),wd="rtl"in yd&&yd.rtl||(Nd=>Nd);return(gd==="both"||gd==="ltr")&&vd.push(Uo$3(Ra,Nd=>{vd.forEach(Ld=>Ld.pause()),ed.value=Cd(Nd),vd.forEach(Ld=>Ld.resume())},{flush:dd,deep:hd,immediate:md})),(gd==="both"||gd==="rtl")&&vd.push(Uo$3(ed,Nd=>{vd.forEach(Ld=>Ld.pause()),Ra.value=wd(Nd),vd.forEach(Ld=>Ld.resume())},{flush:dd,deep:hd,immediate:md})),()=>{vd.forEach(Nd=>Nd.stop())}}function hi$3(Ra,ed){Tl$3()&&onBeforeUnmount(Ra,ed)}function Un$4(Ra,ed,ud={}){const{immediate:dd=!0}=ud,hd=ref$1(!1);let md=null;function gd(){md&&(clearTimeout(md),md=null)}function yd(){hd.value=!1,gd()}function vd(...Cd){gd(),hd.value=!0,md=setTimeout(()=>{hd.value=!1,md=null,Ra(...Cd)},je$6(ed))}return dd&&(hd.value=!0,Je$3&&vd()),bt$5(yd),{isPending:readonly(hd),start:vd,stop:yd}}function $e$4(Ra){var ed;const ud=je$6(Ra);return(ed=ud==null?void 0:ud.$el)!=null?ed:ud}const Rt$4=Je$3?window:void 0;function He$4(...Ra){let ed,ud,dd,hd;if(typeof Ra[0]=="string"||Array.isArray(Ra[0])?([ud,dd,hd]=Ra,ed=Rt$4):[ed,ud,dd,hd]=Ra,!ed)return Na$1;Array.isArray(ud)||(ud=[ud]),Array.isArray(dd)||(dd=[dd]);const md=[],gd=()=>{md.forEach(wd=>wd()),md.length=0},yd=(wd,Nd,Ld,Ud)=>(wd.addEventListener(Nd,Ld,Ud),()=>wd.removeEventListener(Nd,Ld,Ud)),vd=watch(()=>[$e$4(ed),je$6(hd)],([wd,Nd])=>{if(gd(),!wd)return;const Ld=di$4(Nd)?{...Nd}:Nd;md.push(...ud.flatMap(Ud=>dd.map(jd=>yd(wd,Ud,jd,Ld))))},{immediate:!0,flush:"post"}),Cd=()=>{vd(),gd()};return bt$5(Cd),Cd}function Ci$2(Ra){return typeof Ra=="function"?Ra:typeof Ra=="string"?ed=>ed.key===Ra:Array.isArray(Ra)?ed=>Ra.includes(ed.key):()=>!0}function Gn$4(...Ra){let ed,ud,dd={};Ra.length===3?(ed=Ra[0],ud=Ra[1],dd=Ra[2]):Ra.length===2?typeof Ra[1]=="object"?(ed=!0,ud=Ra[0],dd=Ra[1]):(ed=Ra[0],ud=Ra[1]):(ed=!0,ud=Ra[0]);const{target:hd=Rt$4,eventName:md="keydown",passive:gd=!1,dedupe:yd=!1}=dd,vd=Ci$2(ed);return He$4(hd,md,Cd=>{Cd.repeat&&je$6(yd)||vd(Cd)&&ud(Cd)},gd)}function Ga$2(){const Ra=ref$1(!1),ed=getCurrentInstance();return ed&&onMounted(()=>{Ra.value=!0},ed),Ra}function _i$2(Ra){return JSON.parse(JSON.stringify(Ra))}function ne$5(Ra,ed,ud,dd={}){var hd,md,gd;const{clone:yd=!1,passive:vd=!1,eventName:Cd,deep:wd=!1,defaultValue:Nd,shouldEmit:Ld}=dd,Ud=getCurrentInstance(),jd=ud||(Ud==null?void 0:Ud.emit)||((hd=Ud==null?void 0:Ud.$emit)==null?void 0:hd.bind(Ud))||((gd=(md=Ud==null?void 0:Ud.proxy)==null?void 0:md.$emit)==null?void 0:gd.bind(Ud==null?void 0:Ud.proxy));let Gd=Cd;ed||(ed="modelValue"),Gd=Gd||`update:${ed.toString()}`;const Yd=Wd=>yd?typeof yd=="function"?yd(Wd):_i$2(Wd):Wd,zd=()=>ri$4(Ra[ed])?Yd(Ra[ed]):Nd,qd=Wd=>{Ld?Ld(Wd)&&jd(Gd,Wd):jd(Gd,Wd)};if(vd){const Wd=zd(),Xd=ref$1(Wd);let Jd=!1;return watch(()=>Ra[ed],Zd=>{Jd||(Jd=!0,Xd.value=Yd(Zd),nextTick$1(()=>Jd=!1))}),watch(Xd,Zd=>{!Jd&&(Zd!==Ra[ed]||wd)&&qd(Zd)},{deep:wd}),Xd}else return computed({get(){return zd()},set(Wd){qd(Wd)}})}function qa(Ra){return Ra?Ra.flatMap(ed=>ed.type===Fragment?qa(ed.children):[ed]):[]}function me$4(){let Ra=document.activeElement;if(Ra==null)return null;for(;Ra!=null&&Ra.shadowRoot!=null&&Ra.shadowRoot.activeElement!=null;)Ra=Ra.shadowRoot.activeElement;return Ra}const Ei$2=["INPUT","TEXTAREA"];function At$5(Ra,ed,ud,dd={}){if(!ed||dd.enableIgnoredElement&&Ei$2.includes(ed.nodeName))return null;const{arrowKeyOptions:hd="both",attributeName:md="[data-radix-vue-collection-item]",itemsArray:gd=[],loop:yd=!0,dir:vd="ltr",preventScroll:Cd=!0,focus:wd=!1}=dd,[Nd,Ld,Ud,jd,Gd,Yd]=[Ra.key==="ArrowRight",Ra.key==="ArrowLeft",Ra.key==="ArrowUp",Ra.key==="ArrowDown",Ra.key==="Home",Ra.key==="End"],zd=Ud||jd,qd=Nd||Ld;if(!Gd&&!Yd&&(!zd&&!qd||hd==="vertical"&&qd||hd==="horizontal"&&zd))return null;const Wd=ud?Array.from(ud.querySelectorAll(md)):gd;if(!Wd.length)return null;Cd&&Ra.preventDefault();let Xd=null;return qd||zd?Xd=Ml$3(Wd,ed,{goForward:zd?jd:vd==="ltr"?Nd:Ld,loop:yd}):Gd?Xd=Wd.at(0)||null:Yd&&(Xd=Wd.at(-1)||null),wd&&(Xd==null||Xd.focus()),Xd}function Ml$3(Ra,ed,ud,dd=Ra.length){if(--dd===0)return null;const hd=Ra.indexOf(ed),md=ud.goForward?hd+1:hd-1;if(!ud.loop&&(md<0||md>=Ra.length))return null;const gd=(md+Ra.length)%Ra.length,yd=Ra[gd];return yd?yd.hasAttribute("disabled")&&yd.getAttribute("disabled")!=="false"?Ml$3(Ra,yd,ud,dd):yd:null}function Cn$3(Ra){if(Ra===null||typeof Ra!="object")return!1;const ed=Object.getPrototypeOf(Ra);return ed!==null&&ed!==Object.prototype&&Object.getPrototypeOf(ed)!==null||Symbol.iterator in Ra?!1:Symbol.toStringTag in Ra?Object.prototype.toString.call(Ra)==="[object Module]":!0}function $n$4(Ra,ed,ud=".",dd){if(!Cn$3(ed))return $n$4(Ra,{},ud);const hd=Object.assign({},ed);for(const md in Ra){if(md==="__proto__"||md==="constructor")continue;const gd=Ra[md];gd!=null&&(Array.isArray(gd)&&Array.isArray(hd[md])?hd[md]=[...gd,...hd[md]]:Cn$3(gd)&&Cn$3(hd[md])?hd[md]=$n$4(gd,hd[md],(ud?`${ud}.`:"")+md.toString()):hd[md]=gd)}return hd}function Pi$2(Ra){return(...ed)=>ed.reduce((ud,dd)=>$n$4(ud,dd,""),{})}const Di$3=Pi$2(),[Ya$2,$i$2]=te$5("ConfigProvider");let Bi$2="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Ii$1=(Ra=21)=>{let ed="",ud=Ra;for(;ud--;)ed+=Bi$2[Math.random()*64|0];return ed};const Ti$2=Dl$3(()=>{const Ra=ref$1(new Map),ed=ref$1(),ud=computed(()=>{for(const gd of Ra.value.values())if(gd)return!0;return!1}),dd=Ya$2({scrollBody:ref$1(!0)});let hd=null;const md=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.body.style.removeProperty("--scrollbar-width"),document.body.style.overflow=ed.value??"",jo$2&&(hd==null||hd()),ed.value=void 0};return watch(ud,(gd,yd)=>{var vd;if(!Je$3)return;if(!gd){yd&&md();return}ed.value===void 0&&(ed.value=document.body.style.overflow);const Cd=window.innerWidth-document.documentElement.clientWidth,wd={padding:Cd,margin:0},Nd=(vd=dd.scrollBody)!=null&&vd.value?typeof dd.scrollBody.value=="object"?Di$3({padding:dd.scrollBody.value.padding===!0?Cd:dd.scrollBody.value.padding,margin:dd.scrollBody.value.margin===!0?Cd:dd.scrollBody.value.margin},wd):wd:{padding:0,margin:0};Cd>0&&(document.body.style.paddingRight=typeof Nd.padding=="number"?`${Nd.padding}px`:String(Nd.padding),document.body.style.marginRight=typeof Nd.margin=="number"?`${Nd.margin}px`:String(Nd.margin),document.body.style.setProperty("--scrollbar-width",`${Cd}px`),document.body.style.overflow="hidden"),jo$2&&(hd=He$4(document,"touchmove",Ld=>Ri$1(Ld),{passive:!1})),nextTick$1(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})},{immediate:!0,flush:"sync"}),Ra});function ya$1(Ra){const ed=Ii$1(6),ud=Ti$2();ud.value.set(ed,Ra??!1);const dd=computed({get:()=>ud.value.get(ed)??!1,set:hd=>ud.value.set(ed,hd)});return hi$3(()=>{ud.value.delete(ed)}),dd}function Vl$3(Ra){const ed=window.getComputedStyle(Ra);if(ed.overflowX==="scroll"||ed.overflowY==="scroll"||ed.overflowX==="auto"&&Ra.clientWidth1?!0:(ed.preventDefault&&ed.cancelable&&ed.preventDefault(),!1)}const Ai$2="data-radix-vue-collection-item";function Fe$5(Ra,ed=Ai$2){const ud=Ra??Symbol();return{createCollection:dd=>{const hd=ref$1([]);function md(){const gd=$e$4(dd);return gd?hd.value=Array.from(gd.querySelectorAll(`[${ed}]:not([data-disabled])`)):hd.value=[]}return onBeforeUpdate(()=>{hd.value=[]}),onMounted(md),onUpdated(md),watch(()=>dd==null?void 0:dd.value,md,{immediate:!0}),provide(ud,hd),hd},injectCollection:()=>inject(ud,ref$1([]))}}function we$5(Ra){const ed=Ya$2({dir:ref$1("ltr")});return computed(()=>{var ud;return(Ra==null?void 0:Ra.value)||((ud=ed.dir)==null?void 0:ud.value)||"ltr"})}function Te$5(Ra){const ed=getCurrentInstance(),ud=ed==null?void 0:ed.type.emits,dd={};return ud!=null&&ud.length||console.warn(`No emitted event found. Please check component: ${ed==null?void 0:ed.type.__name}`),ud==null||ud.forEach(hd=>{dd[toHandlerKey(camelize(hd))]=(...md)=>Ra(hd,...md)}),dd}let wn$3=0;function Yn$3(){watchEffect(Ra=>{if(!Je$3)return;const ed=document.querySelectorAll("[data-radix-focus-guard]");document.body.insertAdjacentElement("afterbegin",ed[0]??Go$2()),document.body.insertAdjacentElement("beforeend",ed[1]??Go$2()),wn$3++,Ra(()=>{wn$3===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(ud=>ud.remove()),wn$3--})})}function Go$2(){const Ra=document.createElement("span");return Ra.setAttribute("data-radix-focus-guard",""),Ra.tabIndex=0,Ra.style.outline="none",Ra.style.opacity="0",Ra.style.position="fixed",Ra.style.pointerEvents="none",Ra}function at$6(Ra){return computed(()=>{var ed;return je$6(Ra)?!!((ed=$e$4(Ra))!=null&&ed.closest("form")):!0})}function Ot$3(Ra){const ed=getCurrentInstance(),ud=Object.keys((ed==null?void 0:ed.type.props)??{}).reduce((hd,md)=>{const gd=(ed==null?void 0:ed.type.props[md]).default;return gd!==void 0&&(hd[md]=gd),hd},{}),dd=toRef$1(Ra);return computed(()=>{const hd={},md=(ed==null?void 0:ed.vnode.props)??{};return Object.keys(md).forEach(gd=>{hd[camelize(gd)]=md[gd]}),Object.keys({...ud,...hd}).reduce((gd,yd)=>(dd.value[yd]!==void 0&&(gd[yd]=dd.value[yd]),gd),{})})}function Se$6(Ra,ed){const ud=Ot$3(Ra),dd=ed?Te$5(ed):{};return computed(()=>({...ud.value,...dd}))}function R$6(){const Ra=getCurrentInstance(),ed=ref$1(),ud=computed(()=>{var gd,yd;return["#text","#comment"].includes((gd=ed.value)==null?void 0:gd.$el.nodeName)?(yd=ed.value)==null?void 0:yd.$el.nextElementSibling:$e$4(ed)}),dd=Object.assign({},Ra.exposed),hd={};for(const gd in Ra.props)Object.defineProperty(hd,gd,{enumerable:!0,configurable:!0,get:()=>Ra.props[gd]});if(Object.keys(dd).length>0)for(const gd in dd)Object.defineProperty(hd,gd,{enumerable:!0,configurable:!0,get:()=>dd[gd]});Object.defineProperty(hd,"$el",{enumerable:!0,configurable:!0,get:()=>Ra.vnode.el}),Ra.exposed=hd;function md(gd){ed.value=gd,gd&&(Object.defineProperty(hd,"$el",{enumerable:!0,configurable:!0,get:()=>gd instanceof Element?gd:gd.$el}),Ra.exposed=hd)}return{forwardRef:md,currentRef:ed,currentElement:ud}}function Fl$3(Ra,ed){const ud=Tt$3(!1,300),dd=ref$1(null),hd=ua$2();function md(){dd.value=null,ud.value=!1}function gd(yd,vd){const Cd=yd.currentTarget,wd={x:yd.clientX,y:yd.clientY},Nd=Oi$1(wd,Cd.getBoundingClientRect()),Ld=ki$2(wd,Nd),Ud=Mi$2(vd.getBoundingClientRect()),jd=Fi$2([...Ld,...Ud]);dd.value=jd,ud.value=!0}return watchEffect(yd=>{if(Ra.value&&ed.value){const vd=wd=>gd(wd,ed.value),Cd=wd=>gd(wd,Ra.value);Ra.value.addEventListener("pointerleave",vd),ed.value.addEventListener("pointerleave",Cd),yd(()=>{var wd,Nd;(wd=Ra.value)==null||wd.removeEventListener("pointerleave",vd),(Nd=ed.value)==null||Nd.removeEventListener("pointerleave",Cd)})}}),watchEffect(yd=>{var vd;if(dd.value){const Cd=wd=>{var Nd,Ld;if(!dd.value)return;const Ud=wd.target,jd={x:wd.clientX,y:wd.clientY},Gd=((Nd=Ra.value)==null?void 0:Nd.contains(Ud))||((Ld=ed.value)==null?void 0:Ld.contains(Ud)),Yd=!Vi$1(jd,dd.value),zd=!!Ud.closest("[data-grace-area-trigger]");Gd?md():(Yd||zd)&&(md(),hd.trigger())};(vd=Ra.value)==null||vd.ownerDocument.addEventListener("pointermove",Cd),yd(()=>{var wd;return(wd=Ra.value)==null?void 0:wd.ownerDocument.removeEventListener("pointermove",Cd)})}}),{isPointerInTransit:ud,onPointerExit:hd.on}}function Oi$1(Ra,ed){const ud=Math.abs(ed.top-Ra.y),dd=Math.abs(ed.bottom-Ra.y),hd=Math.abs(ed.right-Ra.x),md=Math.abs(ed.left-Ra.x);switch(Math.min(ud,dd,hd,md)){case md:return"left";case hd:return"right";case ud:return"top";case dd:return"bottom";default:throw new Error("unreachable")}}function ki$2(Ra,ed,ud=5){const dd=[];switch(ed){case"top":dd.push({x:Ra.x-ud,y:Ra.y+ud},{x:Ra.x+ud,y:Ra.y+ud});break;case"bottom":dd.push({x:Ra.x-ud,y:Ra.y-ud},{x:Ra.x+ud,y:Ra.y-ud});break;case"left":dd.push({x:Ra.x+ud,y:Ra.y-ud},{x:Ra.x+ud,y:Ra.y+ud});break;case"right":dd.push({x:Ra.x-ud,y:Ra.y-ud},{x:Ra.x-ud,y:Ra.y+ud});break}return dd}function Mi$2(Ra){const{top:ed,right:ud,bottom:dd,left:hd}=Ra;return[{x:hd,y:ed},{x:ud,y:ed},{x:ud,y:dd},{x:hd,y:dd}]}function Vi$1(Ra,ed){const{x:ud,y:dd}=Ra;let hd=!1;for(let md=0,gd=ed.length-1;mddd!=wd>dd&&ud<(Cd-yd)*(dd-vd)/(wd-vd)+yd&&(hd=!hd)}return hd}function Fi$2(Ra){const ed=Ra.slice();return ed.sort((ud,dd)=>ud.xdd.x?1:ud.ydd.y?1:0),Ni$1(ed)}function Ni$1(Ra){if(Ra.length<=1)return Ra.slice();const ed=[];for(let dd=0;dd=2;){const md=ed[ed.length-1],gd=ed[ed.length-2];if((md.x-gd.x)*(hd.y-gd.y)>=(md.y-gd.y)*(hd.x-gd.x))ed.pop();else break}ed.push(hd)}ed.pop();const ud=[];for(let dd=Ra.length-1;dd>=0;dd--){const hd=Ra[dd];for(;ud.length>=2;){const md=ud[ud.length-1],gd=ud[ud.length-2];if((md.x-gd.x)*(hd.y-gd.y)>=(md.y-gd.y)*(hd.x-gd.x))ud.pop();else break}ud.push(hd)}return ud.pop(),ed.length===1&&ud.length===1&&ed[0].x===ud[0].x&&ed[0].y===ud[0].y?ed:ed.concat(ud)}var Li$1=function(Ra){if(typeof document>"u")return null;var ed=Array.isArray(Ra)?Ra[0]:Ra;return ed.ownerDocument.body},Kt$1=new WeakMap,$a$2=new WeakMap,Ba$2={},_n$3=0,Nl$3=function(Ra){return Ra&&(Ra.host||Nl$3(Ra.parentNode))},zi$1=function(Ra,ed){return ed.map(function(ud){if(Ra.contains(ud))return ud;var dd=Nl$3(ud);return dd&&Ra.contains(dd)?dd:(console.error("aria-hidden",ud,"in not contained inside",Ra,". Doing nothing"),null)}).filter(function(ud){return!!ud})},Ki$2=function(Ra,ed,ud,dd){var hd=zi$1(ed,Array.isArray(Ra)?Ra:[Ra]);Ba$2[ud]||(Ba$2[ud]=new WeakMap);var md=Ba$2[ud],gd=[],yd=new Set,vd=new Set(hd),Cd=function(Nd){!Nd||yd.has(Nd)||(yd.add(Nd),Cd(Nd.parentNode))};hd.forEach(Cd);var wd=function(Nd){!Nd||vd.has(Nd)||Array.prototype.forEach.call(Nd.children,function(Ld){if(yd.has(Ld))wd(Ld);else try{var Ud=Ld.getAttribute(dd),jd=Ud!==null&&Ud!=="false",Gd=(Kt$1.get(Ld)||0)+1,Yd=(md.get(Ld)||0)+1;Kt$1.set(Ld,Gd),md.set(Ld,Yd),gd.push(Ld),Gd===1&&jd&&$a$2.set(Ld,!0),Yd===1&&Ld.setAttribute(ud,"true"),jd||Ld.setAttribute(dd,"true")}catch(zd){console.error("aria-hidden: cannot operate on ",Ld,zd)}})};return wd(ed),yd.clear(),_n$3++,function(){gd.forEach(function(Nd){var Ld=Kt$1.get(Nd)-1,Ud=md.get(Nd)-1;Kt$1.set(Nd,Ld),md.set(Nd,Ud),Ld||($a$2.has(Nd)||Nd.removeAttribute(dd),$a$2.delete(Nd)),Ud||Nd.removeAttribute(ud)}),_n$3--,_n$3||(Kt$1=new WeakMap,Kt$1=new WeakMap,$a$2=new WeakMap,Ba$2={})}},Hi$1=function(Ra,ed,ud){ud===void 0&&(ud="data-aria-hidden");var dd=Array.from(Array.isArray(Ra)?Ra:[Ra]),hd=Li$1(Ra);return hd?(dd.push.apply(dd,Array.from(hd.querySelectorAll("[aria-live]"))),Ki$2(dd,hd,ud,"aria-hidden")):function(){return null}};function ga$2(Ra){let ed;watch(()=>$e$4(Ra),ud=>{ud?ed=Hi$1(ud):ed&&ed()}),onUnmounted(()=>{ed&&ed()})}let Wi$2=0;function ge$7(Ra,ed="radix"){if(Ra)return Ra;const ud=Ya$2({useId:void 0});return useId?`${ed}-${useId()}`:ud.useId?`${ed}-${ud.useId()}`:`${ed}-${++Wi$2}`}function Ll$3(Ra){const ed=ref$1(),ud=computed(()=>{var hd;return((hd=ed.value)==null?void 0:hd.width)??0}),dd=computed(()=>{var hd;return((hd=ed.value)==null?void 0:hd.height)??0});return onMounted(()=>{const hd=$e$4(Ra);if(hd){ed.value={width:hd.offsetWidth,height:hd.offsetHeight};const md=new ResizeObserver(gd=>{if(!Array.isArray(gd)||!gd.length)return;const yd=gd[0];let vd,Cd;if("borderBoxSize"in yd){const wd=yd.borderBoxSize,Nd=Array.isArray(wd)?wd[0]:wd;vd=Nd.inlineSize,Cd=Nd.blockSize}else vd=hd.offsetWidth,Cd=hd.offsetHeight;ed.value={width:vd,height:Cd}});return md.observe(hd,{box:"border-box"}),()=>md.unobserve(hd)}else ed.value=void 0}),{width:ud,height:dd}}function zl$3(Ra,ed){const ud=ref$1(Ra);function dd(hd){return ed[ud.value][hd]??ud.value}return{state:ud,dispatch:hd=>{ud.value=dd(hd)}}}const Ui$1="data-item-text";function ba$3(Ra){const ed=Tt$3("",1e3);return{search:ed,handleTypeaheadSearch:(ud,dd)=>{if(!(Ra!=null&&Ra.value)&&!dd)return;ed.value=ed.value+ud;const hd=(Ra==null?void 0:Ra.value)??dd,md=me$4(),gd=hd.map(Nd=>{var Ld;return{ref:Nd,textValue:((Ld=(Nd.querySelector(`[${Ui$1}]`)??Nd).textContent)==null?void 0:Ld.trim())??""}}),yd=gd.find(Nd=>Nd.ref===md),vd=gd.map(Nd=>Nd.textValue),Cd=Zn$4(vd,ed.value,yd==null?void 0:yd.textValue),wd=gd.find(Nd=>Nd.textValue===Cd);return wd&&wd.ref.focus(),wd==null?void 0:wd.ref},resetTypeahead:()=>{ed.value=""}}}function Xn$4(Ra,ed){return Ra.map((ud,dd)=>Ra[(ed+dd)%Ra.length])}function Zn$4(Ra,ed,ud){const dd=ed.length>1&&Array.from(ed).every(yd=>yd===ed[0])?ed[0]:ed,hd=ud?Ra.indexOf(ud):-1;let md=Xn$4(Ra,Math.max(hd,0));dd.length===1&&(md=md.filter(yd=>yd!==ud));const gd=md.find(yd=>yd.toLowerCase().startsWith(dd.toLowerCase()));return gd!==ud?gd:void 0}const Jn$4=defineComponent({name:"PrimitiveSlot",inheritAttrs:!1,setup(Ra,{attrs:ed,slots:ud}){return()=>{var dd,hd;if(!ud.default)return null;const md=qa(ud.default()),gd=md.findIndex(wd=>wd.type!==Comment$2);if(gd===-1)return md;const yd=md[gd];(dd=yd.props)==null||delete dd.ref;const vd=yd.props?mergeProps(ed,yd.props):ed;ed.class&&(hd=yd.props)!=null&&hd.class&&delete yd.props.class;const Cd=cloneVNode(yd,vd);for(const wd in vd)wd.startsWith("on")&&(Cd.props||(Cd.props={}),Cd.props[wd]=vd[wd]);return md.length===1?Cd:(md[gd]=Cd,md)}}}),O$4=defineComponent({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(Ra,{attrs:ed,slots:ud}){const dd=Ra.asChild?"template":Ra.as;return typeof dd=="string"&&["area","img","input"].includes(dd)?()=>h$2(dd,ed):dd!=="template"?()=>h$2(Ra.as,ed,{default:ud.default}):()=>h$2(Jn$4,ed,{default:ud.default})}});function Re$7(){const Ra=ref$1(),ed=computed(()=>{var ud,dd;return["#text","#comment"].includes((ud=Ra.value)==null?void 0:ud.$el.nodeName)?(dd=Ra.value)==null?void 0:dd.$el.nextElementSibling:$e$4(Ra)});return{primitiveElement:Ra,currentElement:ed}}function Xi$1(Ra,ed){var ud;const dd=ref$1({}),hd=ref$1("none"),md=ref$1(Ra),gd=Ra.value?"mounted":"unmounted";let yd;const vd=((ud=ed.value)==null?void 0:ud.ownerDocument.defaultView)??Rt$4,{state:Cd,dispatch:wd}=zl$3(gd,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),Nd=Yd=>{var zd;if(Je$3){const qd=new CustomEvent(Yd,{bubbles:!1,cancelable:!1});(zd=ed.value)==null||zd.dispatchEvent(qd)}};watch(Ra,async(Yd,zd)=>{var qd;const Wd=zd!==Yd;if(await nextTick$1(),Wd){const Xd=hd.value,Jd=Ia$2(ed.value);Yd?(wd("MOUNT"),Nd("enter"),Jd==="none"&&Nd("after-enter")):Jd==="none"||((qd=dd.value)==null?void 0:qd.display)==="none"?(wd("UNMOUNT"),Nd("leave"),Nd("after-leave")):zd&&Xd!==Jd?(wd("ANIMATION_OUT"),Nd("leave")):(wd("UNMOUNT"),Nd("after-leave"))}},{immediate:!0});const Ld=Yd=>{const zd=Ia$2(ed.value),qd=zd.includes(Yd.animationName),Wd=Cd.value==="mounted"?"enter":"leave";if(Yd.target===ed.value&&qd&&(Nd(`after-${Wd}`),wd("ANIMATION_END"),!md.value)){const Xd=ed.value.style.animationFillMode;ed.value.style.animationFillMode="forwards",yd=vd==null?void 0:vd.setTimeout(()=>{var Jd;((Jd=ed.value)==null?void 0:Jd.style.animationFillMode)==="forwards"&&(ed.value.style.animationFillMode=Xd)})}Yd.target===ed.value&&zd==="none"&&wd("ANIMATION_END")},Ud=Yd=>{Yd.target===ed.value&&(hd.value=Ia$2(ed.value))},jd=watch(ed,(Yd,zd)=>{Yd?(dd.value=getComputedStyle(Yd),Yd.addEventListener("animationstart",Ud),Yd.addEventListener("animationcancel",Ld),Yd.addEventListener("animationend",Ld)):(wd("ANIMATION_END"),yd!==void 0&&(vd==null||vd.clearTimeout(yd)),zd==null||zd.removeEventListener("animationstart",Ud),zd==null||zd.removeEventListener("animationcancel",Ld),zd==null||zd.removeEventListener("animationend",Ld))},{immediate:!0}),Gd=watch(Cd,()=>{const Yd=Ia$2(ed.value);hd.value=Cd.value==="mounted"?Yd:"none"});return onUnmounted(()=>{jd(),Gd()}),{isPresent:computed(()=>["mounted","unmountSuspended"].includes(Cd.value))}}function Ia$2(Ra){return Ra&&getComputedStyle(Ra).animationName||"none"}const Pe$6=defineComponent({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(Ra,{slots:ed,expose:ud}){var dd;const{present:hd,forceMount:md}=toRefs(Ra),gd=ref$1(),{isPresent:yd}=Xi$1(hd,gd);ud({present:yd});let vd=ed.default({present:yd});vd=qa(vd||[]);const Cd=getCurrentInstance();if(vd&&(vd==null?void 0:vd.length)>1){const wd=(dd=Cd==null?void 0:Cd.parent)!=null&&dd.type.name?`<${Cd.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${wd}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(Nd=>` - ${Nd}`).join(` `)].join(` -`))}return()=>md.value||hd.value||yd.value?h$2(ed.default({present:yd})[0],{ref:wd=>{const Nd=$e$4(wd);return typeof(Nd==null?void 0:Nd.hasAttribute)>"u"||(Nd!=null&&Nd.hasAttribute("data-radix-popper-content-wrapper")?gd.value=Nd.firstElementChild:gd.value=Nd),Nd}}):null}}),[ot$3,au$4]=te$5("DialogRoot"),nu$4=defineComponent({inheritAttrs:!1,__name:"DialogRoot",props:{open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:!1},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(Ra,{emit:ed}){const ud=Ra,dd=ne$5(ud,"open",ed,{defaultValue:ud.defaultOpen,passive:ud.open===void 0}),hd=ref$1(),md=ref$1(),{modal:gd}=toRefs(ud);return au$4({open:dd,modal:gd,openModal:()=>{dd.value=!0},onOpenChange:yd=>{dd.value=yd},onOpenToggle:()=>{dd.value=!dd.value},contentId:"",titleId:"",descriptionId:"",triggerElement:hd,contentElement:md}),(yd,vd)=>renderSlot(yd.$slots,"default",{open:unref(dd)})}}),ou$3=defineComponent({__name:"DialogTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const ed=Ra,ud=ot$3(),{forwardRef:dd,currentElement:hd}=R$6();return ud.contentId||(ud.contentId=ge$7(void 0,"radix-vue-dialog-content")),onMounted(()=>{ud.triggerElement.value=hd.value}),(md,gd)=>(openBlock(),createBlock(unref(O$4),mergeProps(ed,{ref:unref(dd),type:md.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":unref(ud).open.value||!1,"aria-controls":unref(ud).open.value?unref(ud).contentId:void 0,"data-state":unref(ud).open.value?"open":"closed",onClick:unref(ud).onOpenToggle}),{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},16,["type","aria-expanded","aria-controls","data-state","onClick"]))}}),rt$3=defineComponent({__name:"Teleport",props:{to:{default:"body"},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const ed=Ga$2();return(ud,dd)=>unref(ed)||ud.forceMount?(openBlock(),createBlock(Teleport,{key:0,to:ud.to,disabled:ud.disabled},[renderSlot(ud.$slots,"default")],8,["to","disabled"])):createCommentVNode("",!0)}}),Iv=defineComponent({__name:"DialogPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createBlock(unref(rt$3),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),lu$3="dismissableLayer.pointerDownOutside",su$3="dismissableLayer.focusOutside";function jl$3(Ra,ed){const ud=ed.closest("[data-dismissable-layer]"),dd=Ra.dataset.dismissableLayer===""?Ra:Ra.querySelector("[data-dismissable-layer]"),hd=Array.from(Ra.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(ud&&dd===ud||hd.indexOf(dd){});return watchEffect(gd=>{if(!Je$3)return;const yd=async Cd=>{const wd=Cd.target;if(ed!=null&&ed.value){if(jl$3(ed.value,wd)){hd.value=!1;return}if(Cd.target&&!hd.value){let Nd=function(){jt$3(lu$3,Ra,Ld)};const Ld={originalEvent:Cd};Cd.pointerType==="touch"?(dd.removeEventListener("click",md.value),md.value=Nd,dd.addEventListener("click",md.value,{once:!0})):Nd()}else dd.removeEventListener("click",md.value);hd.value=!1}},vd=window.setTimeout(()=>{dd.addEventListener("pointerdown",yd)},0);gd(()=>{window.clearTimeout(vd),dd.removeEventListener("pointerdown",yd),dd.removeEventListener("click",md.value)})}),{onPointerDownCapture:()=>hd.value=!0}}function Gl$3(Ra,ed){var ud;const dd=((ud=ed==null?void 0:ed.value)==null?void 0:ud.ownerDocument)??(globalThis==null?void 0:globalThis.document),hd=ref$1(!1);return watchEffect(md=>{if(!Je$3)return;const gd=async yd=>{ed!=null&&ed.value&&(await nextTick$1(),!(!ed.value||jl$3(ed.value,yd.target))&&yd.target&&!hd.value&&jt$3(su$3,Ra,{originalEvent:yd}))};dd.addEventListener("focusin",gd),md(()=>dd.removeEventListener("focusin",gd))}),{onFocusCapture:()=>hd.value=!0,onBlurCapture:()=>hd.value=!1}}const Ge$3=reactive({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ct$4=defineComponent({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,{forwardRef:hd,currentElement:md}=R$6(),gd=computed(()=>{var jd;return((jd=md.value)==null?void 0:jd.ownerDocument)??globalThis.document}),yd=computed(()=>Ge$3.layersRoot),vd=computed(()=>md.value?Array.from(yd.value).indexOf(md.value):-1),Cd=computed(()=>Ge$3.layersWithOutsidePointerEventsDisabled.size>0),wd=computed(()=>{const jd=Array.from(yd.value),[Gd]=[...Ge$3.layersWithOutsidePointerEventsDisabled].slice(-1),Yd=jd.indexOf(Gd);return vd.value>=Yd}),Nd=Ul$3(async jd=>{const Gd=[...Ge$3.branches].some(Yd=>Yd==null?void 0:Yd.contains(jd.target));!wd.value||Gd||(dd("pointerDownOutside",jd),dd("interactOutside",jd),await nextTick$1(),jd.defaultPrevented||dd("dismiss"))},md),Ld=Gl$3(jd=>{[...Ge$3.branches].some(Gd=>Gd==null?void 0:Gd.contains(jd.target))||(dd("focusOutside",jd),dd("interactOutside",jd),jd.defaultPrevented||dd("dismiss"))},md);Gn$4("Escape",jd=>{vd.value===yd.value.size-1&&(dd("escapeKeyDown",jd),jd.defaultPrevented||dd("dismiss"))});let Ud;return watchEffect(jd=>{md.value&&(ud.disableOutsidePointerEvents&&(Ge$3.layersWithOutsidePointerEventsDisabled.size===0&&(Ud=gd.value.body.style.pointerEvents,gd.value.body.style.pointerEvents="none"),Ge$3.layersWithOutsidePointerEventsDisabled.add(md.value)),yd.value.add(md.value),jd(()=>{ud.disableOutsidePointerEvents&&Ge$3.layersWithOutsidePointerEventsDisabled.size===1&&(gd.value.body.style.pointerEvents=Ud)}))}),watchEffect(jd=>{jd(()=>{md.value&&(yd.value.delete(md.value),Ge$3.layersWithOutsidePointerEventsDisabled.delete(md.value))})}),(jd,Gd)=>(openBlock(),createBlock(unref(O$4),{ref:unref(hd),"as-child":jd.asChild,as:jd.as,"data-dismissable-layer":"",style:normalizeStyle({pointerEvents:Cd.value?wd.value?"auto":"none":void 0}),onFocusCapture:unref(Ld).onFocusCapture,onBlurCapture:unref(Ld).onBlurCapture,onPointerdownCapture:unref(Nd).onPointerDownCapture},{default:withCtx(()=>[renderSlot(jd.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),xn$3="focusScope.autoFocusOnMount",Sn$4="focusScope.autoFocusOnUnmount",qo$2={bubbles:!1,cancelable:!0};function Ma$1(Ra,{select:ed=!1}={}){const ud=me$4();for(const dd of Ra)if(pt$4(dd,{select:ed}),me$4()!==ud)return!0}function iu$2(Ra){const ed=eo$2(Ra),ud=Yo$2(ed,Ra),dd=Yo$2(ed.reverse(),Ra);return[ud,dd]}function eo$2(Ra){const ed=[],ud=document.createTreeWalker(Ra,NodeFilter.SHOW_ELEMENT,{acceptNode:dd=>{const hd=dd.tagName==="INPUT"&&dd.type==="hidden";return dd.disabled||dd.hidden||hd?NodeFilter.FILTER_SKIP:dd.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;ud.nextNode();)ed.push(ud.currentNode);return ed}function Yo$2(Ra,ed){for(const ud of Ra)if(!uu$4(ud,{upTo:ed}))return ud}function uu$4(Ra,{upTo:ed}){if(getComputedStyle(Ra).visibility==="hidden")return!0;for(;Ra;){if(ed!==void 0&&Ra===ed)return!1;if(getComputedStyle(Ra).display==="none")return!0;Ra=Ra.parentElement}return!1}function du$3(Ra){return Ra instanceof HTMLInputElement&&"select"in Ra}function pt$4(Ra,{select:ed=!1}={}){if(Ra&&Ra.focus){const ud=me$4();Ra.focus({preventScroll:!0}),Ra!==ud&&du$3(Ra)&&ed&&Ra.select()}}const cu$4=li$4(()=>ref$1([]));function fu$2(){const Ra=cu$4();return{add(ed){const ud=Ra.value[0];ed!==ud&&(ud==null||ud.pause()),Ra.value=Xo$2(Ra.value,ed),Ra.value.unshift(ed)},remove(ed){var ud;Ra.value=Xo$2(Ra.value,ed),(ud=Ra.value[0])==null||ud.resume()}}}function Xo$2(Ra,ed){const ud=[...Ra],dd=ud.indexOf(ed);return dd!==-1&&ud.splice(dd,1),ud}function pu$3(Ra){return Ra.filter(ed=>ed.tagName!=="A")}const Za$1=defineComponent({__name:"FocusScope",props:{loop:{type:Boolean,default:!1},trapped:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["mountAutoFocus","unmountAutoFocus"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,{currentRef:hd,currentElement:md}=R$6(),gd=ref$1(null),yd=fu$2(),vd=reactive({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});watchEffect(wd=>{if(!Je$3)return;const Nd=md.value;if(!ud.trapped)return;function Ld(Yd){if(vd.paused||!Nd)return;const zd=Yd.target;Nd.contains(zd)?gd.value=zd:pt$4(gd.value,{select:!0})}function Ud(Yd){if(vd.paused||!Nd)return;const zd=Yd.relatedTarget;zd!==null&&(Nd.contains(zd)||pt$4(gd.value,{select:!0}))}function jd(Yd){Nd.contains(gd.value)||pt$4(Nd)}document.addEventListener("focusin",Ld),document.addEventListener("focusout",Ud);const Gd=new MutationObserver(jd);Nd&&Gd.observe(Nd,{childList:!0,subtree:!0}),wd(()=>{document.removeEventListener("focusin",Ld),document.removeEventListener("focusout",Ud),Gd.disconnect()})}),watchEffect(async wd=>{const Nd=md.value;if(await nextTick$1(),!Nd)return;yd.add(vd);const Ld=me$4();if(!Nd.contains(Ld)){const Ud=new CustomEvent(xn$3,qo$2);Nd.addEventListener(xn$3,jd=>dd("mountAutoFocus",jd)),Nd.dispatchEvent(Ud),Ud.defaultPrevented||(Ma$1(pu$3(eo$2(Nd)),{select:!0}),me$4()===Ld&&pt$4(Nd))}wd(()=>{Nd.removeEventListener(xn$3,Gd=>dd("mountAutoFocus",Gd));const Ud=new CustomEvent(Sn$4,qo$2),jd=Gd=>{dd("unmountAutoFocus",Gd)};Nd.addEventListener(Sn$4,jd),Nd.dispatchEvent(Ud),setTimeout(()=>{Ud.defaultPrevented||pt$4(Ld??document.body,{select:!0}),Nd.removeEventListener(Sn$4,jd),yd.remove(vd)},0)})});function Cd(wd){if(!ud.loop&&!ud.trapped||vd.paused)return;const Nd=wd.key==="Tab"&&!wd.altKey&&!wd.ctrlKey&&!wd.metaKey,Ld=me$4();if(Nd&&Ld){const Ud=wd.currentTarget,[jd,Gd]=iu$2(Ud);jd&&Gd?!wd.shiftKey&&Ld===Gd?(wd.preventDefault(),ud.loop&&pt$4(jd,{select:!0})):wd.shiftKey&&Ld===jd&&(wd.preventDefault(),ud.loop&&pt$4(Gd,{select:!0})):Ld===Ud&&wd.preventDefault()}}return(wd,Nd)=>(openBlock(),createBlock(unref(O$4),{ref_key:"currentRef",ref:hd,tabindex:"-1","as-child":wd.asChild,as:wd.as,onKeydown:Cd},{default:withCtx(()=>[renderSlot(wd.$slots,"default")]),_:3},8,["as-child","as"]))}}),vu$3="menu.itemSelect",Bn$3=["Enter"," "],mu$3=["ArrowDown","PageUp","Home"],ql$3=["ArrowUp","PageDown","End"],hu$3=[...mu$3,...ql$3],yu$2={ltr:[...Bn$3,"ArrowRight"],rtl:[...Bn$3,"ArrowLeft"]},gu$2={ltr:["ArrowLeft"],rtl:["ArrowRight"]};function to$2(Ra){return Ra?"open":"closed"}function La$2(Ra){return Ra==="indeterminate"}function ao$2(Ra){return La$2(Ra)?"indeterminate":Ra?"checked":"unchecked"}function In$2(Ra){const ed=me$4();for(const ud of Ra)if(ud===ed||(ud.focus(),me$4()!==ed))return}function bu$3(Ra,ed){const{x:ud,y:dd}=Ra;let hd=!1;for(let md=0,gd=ed.length-1;mddd!=wd>dd&&ud<(Cd-yd)*(dd-vd)/(wd-vd)+yd&&(hd=!hd)}return hd}function Cu$3(Ra,ed){if(!ed)return!1;const ud={x:Ra.clientX,y:Ra.clientY};return bu$3(ud,ed)}function da$1(Ra){return Ra.pointerType==="mouse"}const Yl$3=defineComponent({__name:"DialogContentImpl",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=ot$3(),{forwardRef:md,currentElement:gd}=R$6();return hd.titleId||(hd.titleId=ge$7(void 0,"radix-vue-dialog-title")),hd.descriptionId||(hd.descriptionId=ge$7(void 0,"radix-vue-dialog-description")),onMounted(()=>{hd.contentElement=gd,me$4()!==document.body&&(hd.triggerElement.value=me$4())}),(yd,vd)=>(openBlock(),createBlock(unref(Za$1),{"as-child":"",loop:"",trapped:ud.trapFocus,onMountAutoFocus:vd[5]||(vd[5]=Cd=>dd("openAutoFocus",Cd)),onUnmountAutoFocus:vd[6]||(vd[6]=Cd=>dd("closeAutoFocus",Cd))},{default:withCtx(()=>[createVNode(unref(Ct$4),mergeProps({id:unref(hd).contentId,ref:unref(md),as:yd.as,"as-child":yd.asChild,"disable-outside-pointer-events":yd.disableOutsidePointerEvents,role:"dialog","aria-describedby":unref(hd).descriptionId,"aria-labelledby":unref(hd).titleId,"data-state":unref(to$2)(unref(hd).open.value)},yd.$attrs,{onDismiss:vd[0]||(vd[0]=Cd=>unref(hd).onOpenChange(!1)),onEscapeKeyDown:vd[1]||(vd[1]=Cd=>dd("escapeKeyDown",Cd)),onFocusOutside:vd[2]||(vd[2]=Cd=>dd("focusOutside",Cd)),onInteractOutside:vd[3]||(vd[3]=Cd=>dd("interactOutside",Cd)),onPointerDownOutside:vd[4]||(vd[4]=Cd=>dd("pointerDownOutside",Cd))}),{default:withCtx(()=>[renderSlot(yd.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}}),Su$2=defineComponent({__name:"DialogContentModal",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=ot$3(),md=Te$5(dd),{forwardRef:gd,currentElement:yd}=R$6();return ga$2(yd),(vd,Cd)=>(openBlock(),createBlock(Yl$3,mergeProps({...ud,...unref(md)},{ref:unref(gd),"trap-focus":unref(hd).open.value,"disable-outside-pointer-events":!0,onCloseAutoFocus:Cd[0]||(Cd[0]=wd=>{var Nd;wd.defaultPrevented||(wd.preventDefault(),(Nd=unref(hd).triggerElement.value)==null||Nd.focus())}),onPointerDownOutside:Cd[1]||(Cd[1]=wd=>{const Nd=wd.detail.originalEvent,Ld=Nd.button===0&&Nd.ctrlKey===!0;(Nd.button===2||Ld)&&wd.preventDefault()}),onFocusOutside:Cd[2]||(Cd[2]=wd=>{wd.preventDefault()})}),{default:withCtx(()=>[renderSlot(vd.$slots,"default")]),_:3},16,["trap-focus"]))}}),Eu$3=defineComponent({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:ed}){const ud=Ra,dd=Te$5(ed);R$6();const hd=ot$3(),md=ref$1(!1),gd=ref$1(!1);return(yd,vd)=>(openBlock(),createBlock(Yl$3,mergeProps({...ud,...unref(dd)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:vd[0]||(vd[0]=Cd=>{var wd;Cd.defaultPrevented||(md.value||(wd=unref(hd).triggerElement.value)==null||wd.focus(),Cd.preventDefault()),md.value=!1,gd.value=!1}),onInteractOutside:vd[1]||(vd[1]=Cd=>{var wd;Cd.defaultPrevented||(md.value=!0,Cd.detail.originalEvent.type==="pointerdown"&&(gd.value=!0));const Nd=Cd.target;(wd=unref(hd).triggerElement.value)!=null&&wd.contains(Nd)&&Cd.preventDefault(),Cd.detail.originalEvent.type==="focusin"&&gd.value&&Cd.preventDefault()})}),{default:withCtx(()=>[renderSlot(yd.$slots,"default")]),_:3},16))}}),Pu$2=defineComponent({__name:"DialogContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=ot$3(),md=Te$5(dd),{forwardRef:gd}=R$6();return(yd,vd)=>(openBlock(),createBlock(unref(Pe$6),{present:yd.forceMount||unref(hd).open.value},{default:withCtx(()=>[unref(hd).modal.value?(openBlock(),createBlock(Su$2,mergeProps({key:0,ref:unref(gd)},{...ud,...unref(md),...yd.$attrs}),{default:withCtx(()=>[renderSlot(yd.$slots,"default")]),_:3},16)):(openBlock(),createBlock(Eu$3,mergeProps({key:1,ref:unref(gd)},{...ud,...unref(md),...yd.$attrs}),{default:withCtx(()=>[renderSlot(yd.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),Du$3=defineComponent({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean},as:{}},setup(Ra){const ed=ot$3();return ya$1(!0),R$6(),(ud,dd)=>(openBlock(),createBlock(unref(O$4),{as:ud.as,"as-child":ud.asChild,"data-state":unref(ed).open.value?"open":"closed",style:{"pointer-events":"auto"}},{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),$u$3=defineComponent({__name:"DialogOverlay",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(Ra){const ed=ot$3(),{forwardRef:ud}=R$6();return(dd,hd)=>{var md;return(md=unref(ed))!=null&&md.modal.value?(openBlock(),createBlock(unref(Pe$6),{key:0,present:dd.forceMount||unref(ed).open.value},{default:withCtx(()=>[createVNode(Du$3,mergeProps(dd.$attrs,{ref:unref(ud),as:dd.as,"as-child":dd.asChild}),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):createCommentVNode("",!0)}}}),Xl$3=defineComponent({__name:"DialogClose",props:{asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const ed=Ra;R$6();const ud=ot$3();return(dd,hd)=>(openBlock(),createBlock(unref(O$4),mergeProps(ed,{type:dd.as==="button"?"button":void 0,onClick:hd[0]||(hd[0]=md=>unref(ud).onOpenChange(!1))}),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16,["type"]))}}),Bu$2=defineComponent({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{default:"h2"}},setup(Ra){const ed=Ra,ud=ot$3();return R$6(),(dd,hd)=>(openBlock(),createBlock(unref(O$4),mergeProps(ed,{id:unref(ud).titleId}),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16,["id"]))}}),Iu$3=defineComponent({__name:"DialogDescription",props:{asChild:{type:Boolean},as:{default:"p"}},setup(Ra){const ed=Ra;R$6();const ud=ot$3();return(dd,hd)=>(openBlock(),createBlock(unref(O$4),mergeProps(ed,{id:unref(ud).descriptionId}),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16,["id"]))}}),Tv=defineComponent({__name:"AlertDialogRoot",props:{open:{type:Boolean},defaultOpen:{type:Boolean}},emits:["update:open"],setup(Ra,{emit:ed}){const ud=Se$6(Ra,ed);return R$6(),(dd,hd)=>(openBlock(),createBlock(unref(nu$4),mergeProps(unref(ud),{modal:!0}),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16))}}),Av=defineComponent({__name:"AlertDialogPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createBlock(unref(rt$3),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),[Tu$3,Ru$3]=te$5("AlertDialogContent"),Ov=defineComponent({__name:"AlertDialogContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:ed}){const ud=Ra,dd=Te$5(ed);R$6();const hd=ref$1();return Ru$3({onCancelElementChange:md=>{hd.value=md}}),(md,gd)=>(openBlock(),createBlock(unref(Pu$2),mergeProps({...ud,...unref(dd)},{role:"alertdialog",onPointerDownOutside:gd[0]||(gd[0]=withModifiers(()=>{},["prevent"])),onInteractOutside:gd[1]||(gd[1]=withModifiers(()=>{},["prevent"])),onOpenAutoFocus:gd[2]||(gd[2]=()=>{nextTick$1(()=>{var yd;(yd=hd.value)==null||yd.focus({preventScroll:!0})})})}),{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},16))}}),kv=defineComponent({__name:"AlertDialogOverlay",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra;return R$6(),(ud,dd)=>(openBlock(),createBlock(unref($u$3),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),Mv=defineComponent({__name:"AlertDialogCancel",props:{asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const ed=Ra,ud=Tu$3(),{forwardRef:dd,currentElement:hd}=R$6();return onMounted(()=>{ud.onCancelElementChange(hd.value)}),(md,gd)=>(openBlock(),createBlock(unref(Xl$3),mergeProps(ed,{ref:unref(dd)}),{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},16))}}),Vv=defineComponent({__name:"AlertDialogTitle",props:{asChild:{type:Boolean},as:{default:"h2"}},setup(Ra){const ed=Ra;return R$6(),(ud,dd)=>(openBlock(),createBlock(unref(Bu$2),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),Fv=defineComponent({__name:"AlertDialogDescription",props:{asChild:{type:Boolean},as:{default:"p"}},setup(Ra){const ed=Ra;return R$6(),(ud,dd)=>(openBlock(),createBlock(unref(Iu$3),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),Nv=defineComponent({__name:"AlertDialogAction",props:{asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const ed=Ra;return R$6(),(ud,dd)=>(openBlock(),createBlock(unref(Xl$3),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}});function za$1(Ra){return Ra==="indeterminate"}function Ql$3(Ra){return za$1(Ra)?"indeterminate":Ra?"checked":"unchecked"}const td=["value","checked","name","disabled","required"],[ad$1,nd]=te$5("CheckboxRoot"),Wv=defineComponent({inheritAttrs:!1,__name:"CheckboxRoot",props:{defaultChecked:{type:Boolean},checked:{type:[Boolean,String],default:void 0},disabled:{type:Boolean},required:{type:Boolean},name:{},value:{default:"on"},id:{},asChild:{type:Boolean},as:{default:"button"}},emits:["update:checked"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,{disabled:hd}=toRefs(ud),md=ne$5(ud,"checked",dd,{defaultValue:ud.defaultChecked,passive:ud.checked===void 0}),{forwardRef:gd,currentElement:yd}=R$6(),vd=at$6(yd),Cd=computed(()=>{var wd;return ud.id&&yd.value?(wd=document.querySelector(`[for="${ud.id}"]`))==null?void 0:wd.innerText:void 0});return nd({disabled:hd,state:md}),(wd,Nd)=>(openBlock(),createElementBlock(Fragment,null,[createVNode(unref(O$4),mergeProps(wd.$attrs,{id:wd.id,ref:unref(gd),role:"checkbox","as-child":ud.asChild,as:wd.as,type:wd.as==="button"?"button":void 0,"aria-checked":unref(za$1)(unref(md))?"mixed":unref(md),"aria-required":ud.required,"aria-label":wd.$attrs["aria-label"]||Cd.value,"data-state":unref(Ql$3)(unref(md)),"data-disabled":unref(hd)?"":void 0,disabled:unref(hd),onKeydown:withKeys(withModifiers(()=>{},["prevent"]),["enter"]),onClick:Nd[0]||(Nd[0]=Ld=>md.value=unref(za$1)(unref(md))?!0:!unref(md))}),{default:withCtx(()=>[renderSlot(wd.$slots,"default",{checked:unref(md)})]),_:3},16,["id","as-child","as","type","aria-checked","aria-required","aria-label","data-state","data-disabled","disabled","onKeydown"]),unref(vd)?(openBlock(),createElementBlock("input",{key:0,type:"checkbox",tabindex:"-1","aria-hidden":"true",value:wd.value,checked:!!unref(md),name:ud.name,disabled:ud.disabled,required:ud.required,style:{transform:"translateX(-100%)",position:"absolute",pointerEvents:"none",opacity:0,margin:0}},null,8,td)):createCommentVNode("",!0)],64))}}),jv=defineComponent({__name:"CheckboxIndicator",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{default:"span"}},setup(Ra){const{forwardRef:ed}=R$6(),ud=ad$1();return(dd,hd)=>(openBlock(),createBlock(unref(Pe$6),{present:dd.forceMount||unref(za$1)(unref(ud).state.value)||unref(ud).state.value===!0},{default:withCtx(()=>[createVNode(unref(O$4),mergeProps({ref:unref(ed),"data-state":unref(Ql$3)(unref(ud).state.value),"data-disabled":unref(ud).disabled.value?"":void 0,style:{pointerEvents:"none"},"as-child":dd.asChild,as:dd.as},dd.$attrs),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16,["data-state","data-disabled","as-child","as"])]),_:3},8,["present"]))}}),[es$2,od]=te$5("PopperRoot"),kt$4=defineComponent({inheritAttrs:!1,__name:"PopperRoot",setup(Ra){const ed=ref$1();return od({anchor:ed,onAnchorChange:ud=>ed.value=ud}),(ud,dd)=>renderSlot(ud.$slots,"default")}}),Mt$4=defineComponent({__name:"PopperAnchor",props:{element:{},asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra,{forwardRef:ud,currentElement:dd}=R$6(),hd=es$2();return watchEffect(()=>{hd.onAnchorChange(ed.element??dd.value)}),(md,gd)=>(openBlock(),createBlock(unref(O$4),{ref:unref(ud),as:md.as,"as-child":md.asChild},{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},8,["as","as-child"]))}});function ld(Ra){return Ra!==null}function sd(Ra){return{name:"transformOrigin",options:Ra,fn(ed){var ud,dd,hd;const{placement:md,rects:gd,middlewareData:yd}=ed,vd=((ud=yd.arrow)==null?void 0:ud.centerOffset)!==0,Cd=vd?0:Ra.arrowWidth,wd=vd?0:Ra.arrowHeight,[Nd,Ld]=Tn$3(md),Ud={start:"0%",center:"50%",end:"100%"}[Ld],jd=(((dd=yd.arrow)==null?void 0:dd.x)??0)+Cd/2,Gd=(((hd=yd.arrow)==null?void 0:hd.y)??0)+wd/2;let Yd="",zd="";return Nd==="bottom"?(Yd=vd?Ud:`${jd}px`,zd=`${-wd}px`):Nd==="top"?(Yd=vd?Ud:`${jd}px`,zd=`${gd.floating.height+wd}px`):Nd==="right"?(Yd=`${-wd}px`,zd=vd?Ud:`${Gd}px`):Nd==="left"&&(Yd=`${gd.floating.width+wd}px`,zd=vd?Ud:`${Gd}px`),{data:{x:Yd,y:zd}}}}}function Tn$3(Ra){const[ed,ud="center"]=Ra.split("-");return[ed,ud]}const ts$1={side:"bottom",sideOffset:0,align:"center",alignOffset:0,arrowPadding:0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,updatePositionStrategy:"optimized",prioritizePosition:!1},[rd,id$2]=te$5("PopperContent"),It$3=defineComponent({inheritAttrs:!1,__name:"PopperContent",props:mergeDefaults({side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},{...ts$1}),emits:["placed"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=es$2(),{forwardRef:md,currentElement:gd}=R$6(),yd=ref$1(),vd=ref$1(),{width:Cd,height:wd}=Ll$3(vd),Nd=computed(()=>ud.side+(ud.align!=="center"?`-${ud.align}`:"")),Ld=computed(()=>typeof ud.collisionPadding=="number"?ud.collisionPadding:{top:0,right:0,bottom:0,left:0,...ud.collisionPadding}),Ud=computed(()=>Array.isArray(ud.collisionBoundary)?ud.collisionBoundary:[ud.collisionBoundary]),jd=computed(()=>({padding:Ld.value,boundary:Ud.value.filter(ld),altBoundary:Ud.value.length>0})),Gd=ni$4(()=>[offset$2({mainAxis:ud.sideOffset+wd.value,alignmentAxis:ud.alignOffset}),ud.prioritizePosition&&ud.avoidCollisions&&flip$2({...jd.value}),ud.avoidCollisions&&shift({mainAxis:!0,crossAxis:!!ud.prioritizePosition,limiter:ud.sticky==="partial"?limitShift():void 0,...jd.value}),!ud.prioritizePosition&&ud.avoidCollisions&&flip$2({...jd.value}),size({...jd.value,apply:({elements:vf,rects:gf,availableWidth:Af,availableHeight:Df})=>{const{width:Of,height:Cf}=gf.reference,If=vf.floating.style;If.setProperty("--radix-popper-available-width",`${Af}px`),If.setProperty("--radix-popper-available-height",`${Df}px`),If.setProperty("--radix-popper-anchor-width",`${Of}px`),If.setProperty("--radix-popper-anchor-height",`${Cf}px`)}}),vd.value&&arrow$2({element:vd.value,padding:ud.arrowPadding}),sd({arrowWidth:Cd.value,arrowHeight:wd.value}),ud.hideWhenDetached&&hide$2({strategy:"referenceHidden",...jd.value})]),{floatingStyles:Yd,placement:zd,isPositioned:qd,middlewareData:Wd}=useFloating(hd.anchor,yd,{strategy:"fixed",placement:Nd,whileElementsMounted:(...vf)=>autoUpdate(...vf,{animationFrame:ud.updatePositionStrategy==="always"}),middleware:Gd}),Xd=computed(()=>Tn$3(zd.value)[0]),Jd=computed(()=>Tn$3(zd.value)[1]);watchPostEffect(()=>{qd.value&&dd("placed")});const Zd=computed(()=>{var vf;return((vf=Wd.value.arrow)==null?void 0:vf.centerOffset)!==0}),mf=ref$1("");watchEffect(()=>{gd.value&&(mf.value=window.getComputedStyle(gd.value).zIndex)});const xf=computed(()=>{var vf;return((vf=Wd.value.arrow)==null?void 0:vf.x)??0}),_f=computed(()=>{var vf;return((vf=Wd.value.arrow)==null?void 0:vf.y)??0});return id$2({placedSide:Xd,onArrowChange:vf=>vd.value=vf,arrowX:xf,arrowY:_f,shouldHideArrow:Zd}),(vf,gf)=>{var Af,Df,Of;return openBlock(),createElementBlock("div",{ref_key:"floatingRef",ref:yd,"data-radix-popper-content-wrapper":"",style:normalizeStyle({...unref(Yd),transform:unref(qd)?unref(Yd).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:mf.value,"--radix-popper-transform-origin":[(Af=unref(Wd).transformOrigin)==null?void 0:Af.x,(Df=unref(Wd).transformOrigin)==null?void 0:Df.y].join(" "),...((Of=unref(Wd).hide)==null?void 0:Of.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}})},[createVNode(unref(O$4),mergeProps({ref:unref(md)},vf.$attrs,{"as-child":ud.asChild,as:vf.as,"data-side":Xd.value,"data-align":Jd.value,style:{animation:unref(qd)?void 0:"none"}}),{default:withCtx(()=>[renderSlot(vf.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4)}}}),Jt$4=defineComponent({__name:"VisuallyHidden",props:{asChild:{type:Boolean},as:{default:"span"}},setup(Ra){return R$6(),(ed,ud)=>(openBlock(),createBlock(unref(O$4),{as:ed.as,"as-child":ed.asChild,style:{position:"absolute",border:0,width:"1px",display:"inline-block",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}},{default:withCtx(()=>[renderSlot(ed.$slots,"default")]),_:3},8,["as","as-child"]))}}),fd="data-radix-vue-collection-item",[oo$4,pd]=te$5("CollectionProvider");function Ca$1(Ra=fd){const ed=ref$1(new Map),ud=ref$1(),dd=pd({collectionRef:ud,itemMap:ed,attrName:Ra}),{getItems:hd}=ea$1(dd),md=computed(()=>Array.from(dd.itemMap.value.values())),gd=computed(()=>dd.itemMap.value.size);return{getItems:hd,reactiveItems:md,itemMapSize:gd}}const wa$1=defineComponent({name:"CollectionSlot",setup(Ra,{slots:ed}){const ud=oo$4(),{primitiveElement:dd,currentElement:hd}=Re$7();return watch(hd,()=>{ud.collectionRef.value=hd.value}),()=>h$2(Jn$4,{ref:dd},ed)}}),Qt$3=defineComponent({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(Ra,{slots:ed,attrs:ud}){const dd=oo$4(),{primitiveElement:hd,currentElement:md}=Re$7();return watchEffect(gd=>{if(md.value){const yd=markRaw(md.value);dd.itemMap.value.set(yd,{ref:md.value,value:Ra.value}),gd(()=>dd.itemMap.value.delete(yd))}}),()=>h$2(Jn$4,{...ud,[dd.attrName]:"",ref:hd},ed)}});function ea$1(Ra){const ed=Ra??oo$4();return{getItems:()=>{const ud=ed.collectionRef.value;if(!ud)return[];const dd=Array.from(ud.querySelectorAll(`[${ed.attrName}]`));return Array.from(ed.itemMap.value.values()).sort((hd,md)=>dd.indexOf(hd.ref)-dd.indexOf(md.ref))}}}function Ja(Ra){const ed=Ya$2({nonce:ref$1()});return computed(()=>{var ud;return(Ra==null?void 0:Ra.value)||((ud=ed.nonce)==null?void 0:ud.value)})}const Qa$1=defineComponent({__name:"MenuAnchor",props:{element:{},asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createBlock(unref(Mt$4),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}});function _d(){const Ra=ref$1(!1);return onMounted(()=>{He$4("keydown",()=>{Ra.value=!0},{capture:!0,passive:!0}),He$4(["pointerdown","pointermove"],()=>{Ra.value=!1},{capture:!0,passive:!0})}),Ra}const xd=Dl$3(_d),[Vt$3,ns$2]=te$5(["MenuRoot","MenuSub"],"MenuContext"),[_a$3,Sd]=te$5("MenuRoot"),so$2=defineComponent({__name:"MenuRoot",props:{open:{type:Boolean,default:!1},dir:{},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,{modal:hd,dir:md}=toRefs(ud),gd=we$5(md),yd=ne$5(ud,"open",dd),vd=ref$1(),Cd=xd();return ns$2({open:yd,onOpenChange:wd=>{yd.value=wd},content:vd,onContentChange:wd=>{vd.value=wd}}),Sd({onClose:()=>{yd.value=!1},isUsingKeyboardRef:Cd,dir:gd,modal:hd}),(wd,Nd)=>(openBlock(),createBlock(unref(kt$4),null,{default:withCtx(()=>[renderSlot(wd.$slots,"default")]),_:3}))}}),Ed="rovingFocusGroup.onEntryFocus",Pd={bubbles:!1,cancelable:!0},en$3={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Dd(Ra,ed){return ed!=="rtl"?Ra:Ra==="ArrowLeft"?"ArrowRight":Ra==="ArrowRight"?"ArrowLeft":Ra}function os$2(Ra,ed,ud){const dd=Dd(Ra.key,ud);if(!(ed==="vertical"&&["ArrowLeft","ArrowRight"].includes(dd))&&!(ed==="horizontal"&&["ArrowUp","ArrowDown"].includes(dd)))return en$3[dd]}function ls$2(Ra,ed=!1){const ud=me$4();for(const dd of Ra)if(dd===ud||(dd.focus({preventScroll:ed}),me$4()!==ud))return}function $d$1(Ra,ed){return Ra.map((ud,dd)=>Ra[(ed+dd)%Ra.length])}const[Bd,Id]=te$5("RovingFocusGroup"),Ft$4=defineComponent({__name:"RovingFocusGroup",props:{orientation:{default:void 0},dir:{},loop:{type:Boolean,default:!1},currentTabStopId:{},defaultCurrentTabStopId:{},preventScrollOnEntryFocus:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["entryFocus","update:currentTabStopId"],setup(Ra,{expose:ed,emit:ud}){const dd=Ra,hd=ud,{loop:md,orientation:gd,dir:yd}=toRefs(dd),vd=we$5(yd),Cd=ne$5(dd,"currentTabStopId",hd,{defaultValue:dd.defaultCurrentTabStopId,passive:dd.currentTabStopId===void 0}),wd=ref$1(!1),Nd=ref$1(!1),Ld=ref$1(0),{getItems:Ud}=Ca$1();function jd(Yd){const zd=!Nd.value;if(Yd.currentTarget&&Yd.target===Yd.currentTarget&&zd&&!wd.value){const qd=new CustomEvent(Ed,Pd);if(Yd.currentTarget.dispatchEvent(qd),hd("entryFocus",qd),!qd.defaultPrevented){const Wd=Ud().map(mf=>mf.ref).filter(mf=>mf.dataset.disabled!==""),Xd=Wd.find(mf=>mf.getAttribute("data-active")==="true"),Jd=Wd.find(mf=>mf.id===Cd.value),Zd=[Xd,Jd,...Wd].filter(Boolean);ls$2(Zd,dd.preventScrollOnEntryFocus)}}Nd.value=!1}function Gd(){setTimeout(()=>{Nd.value=!1},1)}return ed({getItems:Ud}),Id({loop:md,dir:vd,orientation:gd,currentTabStopId:Cd,onItemFocus:Yd=>{Cd.value=Yd},onItemShiftTab:()=>{wd.value=!0},onFocusableItemAdd:()=>{Ld.value++},onFocusableItemRemove:()=>{Ld.value--}}),(Yd,zd)=>(openBlock(),createBlock(unref(wa$1),null,{default:withCtx(()=>[createVNode(unref(O$4),{tabindex:wd.value||Ld.value===0?-1:0,"data-orientation":unref(gd),as:Yd.as,"as-child":Yd.asChild,dir:unref(vd),style:{outline:"none"},onMousedown:zd[0]||(zd[0]=qd=>Nd.value=!0),onMouseup:Gd,onFocus:jd,onBlur:zd[1]||(zd[1]=qd=>wd.value=!1)},{default:withCtx(()=>[renderSlot(Yd.$slots,"default")]),_:3},8,["tabindex","data-orientation","as","as-child","dir"])]),_:3}))}}),Nt$4=defineComponent({__name:"RovingFocusItem",props:{tabStopId:{},focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!0},allowShiftKey:{type:Boolean},asChild:{type:Boolean},as:{default:"span"}},setup(Ra){const ed=Ra,ud=Bd(),dd=computed(()=>ed.tabStopId||ge$7()),hd=computed(()=>ud.currentTabStopId.value===dd.value),{getItems:md}=ea$1();onMounted(()=>{ed.focusable&&ud.onFocusableItemAdd()}),onUnmounted(()=>{ed.focusable&&ud.onFocusableItemRemove()});function gd(yd){if(yd.key==="Tab"&&yd.shiftKey){ud.onItemShiftTab();return}if(yd.target!==yd.currentTarget)return;const vd=os$2(yd,ud.orientation.value,ud.dir.value);if(vd!==void 0){if(yd.metaKey||yd.ctrlKey||yd.altKey||!ed.allowShiftKey&&yd.shiftKey)return;yd.preventDefault();let Cd=[...md().map(wd=>wd.ref).filter(wd=>wd.dataset.disabled!=="")];if(vd==="last")Cd.reverse();else if(vd==="prev"||vd==="next"){vd==="prev"&&Cd.reverse();const wd=Cd.indexOf(yd.currentTarget);Cd=ud.loop.value?$d$1(Cd,wd+1):Cd.slice(wd+1)}nextTick$1(()=>ls$2(Cd))}}return(yd,vd)=>(openBlock(),createBlock(unref(Qt$3),null,{default:withCtx(()=>[createVNode(unref(O$4),{tabindex:hd.value?0:-1,"data-orientation":unref(ud).orientation.value,"data-active":yd.active,"data-disabled":yd.focusable?void 0:"",as:yd.as,"as-child":yd.asChild,onMousedown:vd[0]||(vd[0]=Cd=>{yd.focusable?unref(ud).onItemFocus(dd.value):Cd.preventDefault()}),onFocus:vd[1]||(vd[1]=Cd=>unref(ud).onItemFocus(dd.value)),onKeydown:gd},{default:withCtx(()=>[renderSlot(yd.$slots,"default")]),_:3},8,["tabindex","data-orientation","data-active","data-disabled","as","as-child"])]),_:3}))}}),[ro$2,Td]=te$5("MenuContent"),io$3=defineComponent({__name:"MenuContentImpl",props:mergeDefaults({loop:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},disableOutsideScroll:{type:Boolean},trapFocus:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},{...ts$1}),emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus","dismiss"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=Vt$3(),md=_a$3(),{trapFocus:gd,disableOutsidePointerEvents:yd,loop:vd}=toRefs(ud);Yn$3(),ya$1(yd.value);const Cd=ref$1(""),wd=ref$1(0),Nd=ref$1(0),Ld=ref$1(null),Ud=ref$1("right"),jd=ref$1(0),Gd=ref$1(null),{createCollection:Yd}=Fe$5(),{forwardRef:zd,currentElement:qd}=R$6(),Wd=Yd(qd);watch(qd,vf=>{hd.onContentChange(vf)});const{handleTypeaheadSearch:Xd}=ba$3(Wd);onUnmounted(()=>{window.clearTimeout(wd.value)});function Jd(vf){var gf,Af;return Ud.value===((gf=Ld.value)==null?void 0:gf.side)&&Cu$3(vf,(Af=Ld.value)==null?void 0:Af.area)}async function Zd(vf){var gf;dd("openAutoFocus",vf),!vf.defaultPrevented&&(vf.preventDefault(),(gf=qd.value)==null||gf.focus({preventScroll:!0}))}function mf(vf){if(vf.defaultPrevented)return;const gf=vf.target.closest("[data-radix-menu-content]")===vf.currentTarget,Af=vf.ctrlKey||vf.altKey||vf.metaKey,Df=vf.key.length===1,Of=At$5(vf,me$4(),qd.value,{loop:vd.value,arrowKeyOptions:"vertical",dir:md==null?void 0:md.dir.value,focus:!0,attributeName:"[data-radix-vue-collection-item]:not([data-disabled])"});if(Of)return Of==null?void 0:Of.focus();if(vf.code==="Space"||(gf&&(vf.key==="Tab"&&vf.preventDefault(),!Af&&Df&&Xd(vf.key)),vf.target!==qd.value)||!hu$3.includes(vf.key))return;vf.preventDefault();const Cf=Wd.value;ql$3.includes(vf.key)&&Cf.reverse(),In$2(Cf)}function xf(vf){var gf,Af;(Af=(gf=vf==null?void 0:vf.currentTarget)==null?void 0:gf.contains)!=null&&Af.call(gf,vf.target)||(window.clearTimeout(wd.value),Cd.value="")}function _f(vf){var gf;if(!da$1(vf))return;const Af=vf.target,Df=jd.value!==vf.clientX;if((gf=vf==null?void 0:vf.currentTarget)!=null&&gf.contains(Af)&&Df){const Of=vf.clientX>jd.value?"right":"left";Ud.value=Of,jd.value=vf.clientX}}return Td({onItemEnter:vf=>!!Jd(vf),onItemLeave:vf=>{var gf;Jd(vf)||((gf=qd.value)==null||gf.focus(),Gd.value=null)},onTriggerLeave:vf=>!!Jd(vf),searchRef:Cd,pointerGraceTimerRef:Nd,onPointerGraceIntentChange:vf=>{Ld.value=vf}}),(vf,gf)=>(openBlock(),createBlock(unref(Za$1),{"as-child":"",trapped:unref(gd),onMountAutoFocus:Zd,onUnmountAutoFocus:gf[7]||(gf[7]=Af=>dd("closeAutoFocus",Af))},{default:withCtx(()=>[createVNode(unref(Ct$4),{"as-child":"","disable-outside-pointer-events":unref(yd),onEscapeKeyDown:gf[2]||(gf[2]=Af=>dd("escapeKeyDown",Af)),onPointerDownOutside:gf[3]||(gf[3]=Af=>dd("pointerDownOutside",Af)),onFocusOutside:gf[4]||(gf[4]=Af=>dd("focusOutside",Af)),onInteractOutside:gf[5]||(gf[5]=Af=>dd("interactOutside",Af)),onDismiss:gf[6]||(gf[6]=Af=>dd("dismiss"))},{default:withCtx(()=>[createVNode(unref(Ft$4),{"current-tab-stop-id":Gd.value,"onUpdate:currentTabStopId":gf[0]||(gf[0]=Af=>Gd.value=Af),"as-child":"",orientation:"vertical",dir:unref(md).dir.value,loop:unref(vd),onEntryFocus:gf[1]||(gf[1]=Af=>{dd("entryFocus",Af),unref(md).isUsingKeyboardRef.value||Af.preventDefault()})},{default:withCtx(()=>[createVNode(unref(It$3),{ref:unref(zd),role:"menu",as:vf.as,"as-child":vf.asChild,"aria-orientation":"vertical","data-radix-menu-content":"","data-state":unref(to$2)(unref(hd).open.value),dir:unref(md).dir.value,side:vf.side,"side-offset":vf.sideOffset,align:vf.align,"align-offset":vf.alignOffset,"avoid-collisions":vf.avoidCollisions,"collision-boundary":vf.collisionBoundary,"collision-padding":vf.collisionPadding,"arrow-padding":vf.arrowPadding,"prioritize-position":vf.prioritizePosition,sticky:vf.sticky,"hide-when-detached":vf.hideWhenDetached,onKeydown:mf,onBlur:xf,onPointermove:_f},{default:withCtx(()=>[renderSlot(vf.$slots,"default")]),_:3},8,["as","as-child","data-state","dir","side","side-offset","align","align-offset","avoid-collisions","collision-boundary","collision-padding","arrow-padding","prioritize-position","sticky","hide-when-detached"])]),_:3},8,["current-tab-stop-id","dir","loop"])]),_:3},8,["disable-outside-pointer-events"])]),_:3},8,["trapped"]))}}),ss$2=defineComponent({inheritAttrs:!1,__name:"MenuItemImpl",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra,ud=ro$2(),{forwardRef:dd}=R$6(),hd=ref$1(!1);async function md(yd){if(!yd.defaultPrevented&&da$1(yd)){if(ed.disabled)ud.onItemLeave(yd);else if(!ud.onItemEnter(yd)){const vd=yd.currentTarget;vd==null||vd.focus({preventScroll:!0})}}}async function gd(yd){await nextTick$1(),!yd.defaultPrevented&&da$1(yd)&&ud.onItemLeave(yd)}return(yd,vd)=>(openBlock(),createBlock(unref(Qt$3),{value:{textValue:yd.textValue}},{default:withCtx(()=>[createVNode(unref(O$4),mergeProps({ref:unref(dd),role:"menuitem",tabindex:"-1"},yd.$attrs,{as:yd.as,"as-child":yd.asChild,"data-radix-vue-collection-item":"","aria-disabled":yd.disabled||void 0,"data-disabled":yd.disabled?"":void 0,"data-highlighted":hd.value?"":void 0,onPointermove:md,onPointerleave:gd,onFocus:vd[0]||(vd[0]=async Cd=>{await nextTick$1(),!(Cd.defaultPrevented||yd.disabled)&&(hd.value=!0)}),onBlur:vd[1]||(vd[1]=async Cd=>{await nextTick$1(),!Cd.defaultPrevented&&(hd.value=!1)})}),{default:withCtx(()=>[renderSlot(yd.$slots,"default")]),_:3},16,["as","as-child","aria-disabled","data-disabled","data-highlighted"])]),_:3},8,["value"]))}}),xa$3=defineComponent({__name:"MenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,{forwardRef:hd,currentElement:md}=R$6(),gd=_a$3(),yd=ro$2(),vd=ref$1(!1);async function Cd(){const wd=md.value;if(!ud.disabled&&wd){const Nd=new CustomEvent(vu$3,{bubbles:!0,cancelable:!0});dd("select",Nd),await nextTick$1(),Nd.defaultPrevented?vd.value=!1:gd.onClose()}}return(wd,Nd)=>(openBlock(),createBlock(ss$2,mergeProps(ud,{ref:unref(hd),onClick:Cd,onPointerdown:Nd[0]||(Nd[0]=()=>{vd.value=!0}),onPointerup:Nd[1]||(Nd[1]=async Ld=>{var Ud;await nextTick$1(),!Ld.defaultPrevented&&(vd.value||(Ud=Ld.currentTarget)==null||Ud.click())}),onKeydown:Nd[2]||(Nd[2]=async Ld=>{const Ud=unref(yd).searchRef.value!=="";wd.disabled||Ud&&Ld.key===" "||unref(Bn$3).includes(Ld.key)&&(Ld.currentTarget.click(),Ld.preventDefault())})}),{default:withCtx(()=>[renderSlot(wd.$slots,"default")]),_:3},16))}}),[Rd,rs$2]=te$5(["MenuCheckboxItem","MenuRadioItem"],"MenuItemIndicatorContext"),uo$3=defineComponent({__name:"MenuItemIndicator",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{default:"span"}},setup(Ra){const ed=Rd({checked:ref$1(!1)});return(ud,dd)=>(openBlock(),createBlock(unref(Pe$6),{present:ud.forceMount||unref(La$2)(unref(ed).checked.value)||unref(ed).checked.value===!0},{default:withCtx(()=>[createVNode(unref(O$4),{as:ud.as,"as-child":ud.asChild,"data-state":unref(ao$2)(unref(ed).checked.value)},{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},8,["as","as-child","data-state"])]),_:3},8,["present"]))}}),co$4=defineComponent({__name:"MenuCheckboxItem",props:{checked:{type:[Boolean,String],default:!1},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select","update:checked"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=ne$5(ud,"checked",dd);return rs$2({checked:hd}),(md,gd)=>(openBlock(),createBlock(xa$3,mergeProps({role:"menuitemcheckbox"},ud,{"aria-checked":unref(La$2)(unref(hd))?"mixed":unref(hd),"data-state":unref(ao$2)(unref(hd)),onSelect:gd[0]||(gd[0]=async yd=>{dd("select",yd),unref(La$2)(unref(hd))?hd.value=!0:hd.value=!unref(hd)})}),{default:withCtx(()=>[renderSlot(md.$slots,"default",{checked:unref(hd)})]),_:3},16,["aria-checked","data-state"]))}}),Ad=defineComponent({__name:"MenuRootContentModal",props:{loop:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=Se$6(ud,dd),md=Vt$3(),{forwardRef:gd,currentElement:yd}=R$6();return ga$2(yd),(vd,Cd)=>(openBlock(),createBlock(io$3,mergeProps(unref(hd),{ref:unref(gd),"trap-focus":unref(md).open.value,"disable-outside-pointer-events":unref(md).open.value,"disable-outside-scroll":!0,onDismiss:Cd[0]||(Cd[0]=wd=>unref(md).onOpenChange(!1)),onFocusOutside:Cd[1]||(Cd[1]=withModifiers(wd=>dd("focusOutside",wd),["prevent"]))}),{default:withCtx(()=>[renderSlot(vd.$slots,"default")]),_:3},16,["trap-focus","disable-outside-pointer-events"]))}}),Od=defineComponent({__name:"MenuRootContentNonModal",props:{loop:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:ed}){const ud=Se$6(Ra,ed),dd=Vt$3();return(hd,md)=>(openBlock(),createBlock(io$3,mergeProps(unref(ud),{"trap-focus":!1,"disable-outside-pointer-events":!1,"disable-outside-scroll":!1,onDismiss:md[0]||(md[0]=gd=>unref(dd).onOpenChange(!1))}),{default:withCtx(()=>[renderSlot(hd.$slots,"default")]),_:3},16))}}),fo$2=defineComponent({__name:"MenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:ed}){const ud=Se$6(Ra,ed),dd=Vt$3(),hd=_a$3();return(md,gd)=>(openBlock(),createBlock(unref(Pe$6),{present:md.forceMount||unref(dd).open.value},{default:withCtx(()=>[unref(hd).modal.value?(openBlock(),createBlock(Ad,normalizeProps(mergeProps({key:0},{...md.$attrs,...unref(ud)})),{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},16)):(openBlock(),createBlock(Od,normalizeProps(mergeProps({key:1},{...md.$attrs,...unref(ud)})),{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),tn$3=defineComponent({__name:"MenuGroup",props:{asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createBlock(unref(O$4),mergeProps({role:"group"},ed),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),vo$1=defineComponent({__name:"MenuPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createBlock(unref(rt$3),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),[kd,Md]=te$5("MenuRadioGroup"),mo$3=defineComponent({__name:"MenuRadioGroup",props:{modelValue:{default:""},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(Ra,{emit:ed}){const ud=Ra,dd=ne$5(ud,"modelValue",ed);return Md({modelValue:dd,onValueChange:hd=>{dd.value=hd}}),(hd,md)=>(openBlock(),createBlock(tn$3,normalizeProps(guardReactiveProps(ud)),{default:withCtx(()=>[renderSlot(hd.$slots,"default",{modelValue:unref(dd)})]),_:3},16))}}),ho$2=defineComponent({__name:"MenuRadioItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,{value:hd}=toRefs(ud),md=kd(),gd=computed(()=>md.modelValue.value===(hd==null?void 0:hd.value));return rs$2({checked:gd}),(yd,vd)=>(openBlock(),createBlock(xa$3,mergeProps({role:"menuitemradio"},ud,{"aria-checked":gd.value,"data-state":unref(ao$2)(gd.value),onSelect:vd[0]||(vd[0]=async Cd=>{dd("select",Cd),unref(md).onValueChange(unref(hd))})}),{default:withCtx(()=>[renderSlot(yd.$slots,"default")]),_:3},16,["aria-checked","data-state"]))}}),yo$3=defineComponent({__name:"MenuSeparator",props:{asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createBlock(unref(O$4),mergeProps(ed,{role:"separator","aria-orientation":"horizontal"}),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),[is$4,Vd]=te$5("MenuSub"),go$3=defineComponent({__name:"MenuSub",props:{open:{type:Boolean,default:void 0}},emits:["update:open"],setup(Ra,{emit:ed}){const ud=Ra,dd=ne$5(ud,"open",ed,{defaultValue:!1,passive:ud.open===void 0}),hd=Vt$3(),md=ref$1(),gd=ref$1();return watchEffect(yd=>{(hd==null?void 0:hd.open.value)===!1&&(dd.value=!1),yd(()=>dd.value=!1)}),ns$2({open:dd,onOpenChange:yd=>{dd.value=yd},content:gd,onContentChange:yd=>{gd.value=yd}}),Vd({triggerId:"",contentId:"",trigger:md,onTriggerChange:yd=>{md.value=yd}}),(yd,vd)=>(openBlock(),createBlock(unref(kt$4),null,{default:withCtx(()=>[renderSlot(yd.$slots,"default")]),_:3}))}}),bo$3=defineComponent({__name:"MenuSubContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},sideOffset:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean,default:!0},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:ed}){const ud=Se$6(Ra,ed),dd=Vt$3(),hd=_a$3(),md=is$4(),{forwardRef:gd,currentElement:yd}=R$6();return md.contentId||(md.contentId=ge$7(void 0,"radix-vue-menu-sub-content")),(vd,Cd)=>(openBlock(),createBlock(unref(Pe$6),{present:vd.forceMount||unref(dd).open.value},{default:withCtx(()=>[createVNode(io$3,mergeProps(unref(ud),{id:unref(md).contentId,ref:unref(gd),"aria-labelledby":unref(md).triggerId,align:"start",side:unref(hd).dir.value==="rtl"?"left":"right","disable-outside-pointer-events":!1,"disable-outside-scroll":!1,"trap-focus":!1,onOpenAutoFocus:Cd[0]||(Cd[0]=withModifiers(wd=>{var Nd;unref(hd).isUsingKeyboardRef.value&&((Nd=unref(yd))==null||Nd.focus())},["prevent"])),onCloseAutoFocus:Cd[1]||(Cd[1]=withModifiers(()=>{},["prevent"])),onFocusOutside:Cd[2]||(Cd[2]=wd=>{wd.defaultPrevented||wd.target!==unref(md).trigger.value&&unref(dd).onOpenChange(!1)}),onEscapeKeyDown:Cd[3]||(Cd[3]=wd=>{unref(hd).onClose(),wd.preventDefault()}),onKeydown:Cd[4]||(Cd[4]=wd=>{var Nd,Ld;const Ud=(Nd=wd.currentTarget)==null?void 0:Nd.contains(wd.target),jd=unref(gu$2)[unref(hd).dir.value].includes(wd.key);Ud&&jd&&(unref(dd).onOpenChange(!1),(Ld=unref(md).trigger.value)==null||Ld.focus(),wd.preventDefault())})}),{default:withCtx(()=>[renderSlot(vd.$slots,"default")]),_:3},16,["id","aria-labelledby","side"])]),_:3},8,["present"]))}}),Co$1=defineComponent({__name:"MenuSubTrigger",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra,ud=Vt$3(),dd=_a$3(),hd=is$4(),md=ro$2(),gd=ref$1(null);hd.triggerId||(hd.triggerId=ge$7(void 0,"radix-vue-menu-sub-trigger"));function yd(){gd.value&&window.clearTimeout(gd.value),gd.value=null}onUnmounted(()=>{yd()});function vd(Nd){!da$1(Nd)||md.onItemEnter(Nd)||!ed.disabled&&!ud.open.value&&!gd.value&&(md.onPointerGraceIntentChange(null),gd.value=window.setTimeout(()=>{ud.onOpenChange(!0),yd()},100))}async function Cd(Nd){var Ld,Ud;if(!da$1(Nd))return;yd();const jd=(Ld=ud.content.value)==null?void 0:Ld.getBoundingClientRect();if(jd!=null&&jd.width){const Gd=(Ud=ud.content.value)==null?void 0:Ud.dataset.side,Yd=Gd==="right",zd=Yd?-5:5,qd=jd[Yd?"left":"right"],Wd=jd[Yd?"right":"left"];md.onPointerGraceIntentChange({area:[{x:Nd.clientX+zd,y:Nd.clientY},{x:qd,y:jd.top},{x:Wd,y:jd.top},{x:Wd,y:jd.bottom},{x:qd,y:jd.bottom}],side:Gd}),window.clearTimeout(md.pointerGraceTimerRef.value),md.pointerGraceTimerRef.value=window.setTimeout(()=>md.onPointerGraceIntentChange(null),300)}else{if(md.onTriggerLeave(Nd))return;md.onPointerGraceIntentChange(null)}}async function wd(Nd){var Ld;const Ud=md.searchRef.value!=="";ed.disabled||Ud&&Nd.key===" "||yu$2[dd.dir.value].includes(Nd.key)&&(ud.onOpenChange(!0),await nextTick$1(),(Ld=ud.content.value)==null||Ld.focus(),Nd.preventDefault())}return(Nd,Ld)=>(openBlock(),createBlock(Qa$1,{"as-child":""},{default:withCtx(()=>[createVNode(ss$2,mergeProps(ed,{id:unref(hd).triggerId,ref:Ud=>{var jd;(jd=unref(hd))==null||jd.onTriggerChange(Ud==null?void 0:Ud.$el)},"aria-haspopup":"menu","aria-expanded":unref(ud).open.value,"aria-controls":unref(hd).contentId,"data-state":unref(to$2)(unref(ud).open.value),onClick:Ld[0]||(Ld[0]=async Ud=>{ed.disabled||Ud.defaultPrevented||(Ud.currentTarget.focus(),unref(ud).open.value||unref(ud).onOpenChange(!0))}),onPointermove:vd,onPointerleave:Cd,onKeydown:wd}),{default:withCtx(()=>[renderSlot(Nd.$slots,"default")]),_:3},16,["id","aria-expanded","aria-controls","data-state"])]),_:3}))}}),[us$3,Fd]=te$5("ContextMenuRoot"),rm$1=defineComponent({inheritAttrs:!1,__name:"ContextMenuRoot",props:{dir:{},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,{dir:hd,modal:md}=toRefs(ud);R$6();const gd=we$5(hd),yd=ref$1(!1);return Fd({open:yd,onOpenChange:vd=>{yd.value=vd},dir:gd,modal:md}),watch(yd,vd=>{dd("update:open",vd)}),(vd,Cd)=>(openBlock(),createBlock(unref(so$2),{open:yd.value,"onUpdate:open":Cd[0]||(Cd[0]=wd=>yd.value=wd),dir:unref(gd),modal:unref(md)},{default:withCtx(()=>[renderSlot(vd.$slots,"default")]),_:3},8,["open","dir","modal"]))}});function Zo$3(Ra){return Ra.pointerType!=="mouse"}const im=defineComponent({inheritAttrs:!1,__name:"ContextMenuTrigger",props:{disabled:{type:Boolean,default:!1},asChild:{type:Boolean},as:{default:"span"}},setup(Ra){const ed=Ra,{disabled:ud}=toRefs(ed),{forwardRef:dd}=R$6(),hd=us$3(),md=ref$1({x:0,y:0}),gd=computed(()=>({getBoundingClientRect:()=>({width:0,height:0,left:md.value.x,right:md.value.x,top:md.value.y,bottom:md.value.y,...md.value})})),yd=ref$1(0);function vd(){window.clearTimeout(yd.value)}function Cd(Ud){md.value={x:Ud.clientX,y:Ud.clientY},hd.onOpenChange(!0)}async function wd(Ud){ud.value||(await nextTick$1(),Ud.defaultPrevented||(vd(),Cd(Ud),Ud.preventDefault()))}async function Nd(Ud){ud.value||(await nextTick$1(),Zo$3(Ud)&&!Ud.defaultPrevented&&(vd(),yd.value=window.setTimeout(()=>Cd(Ud),700)))}async function Ld(Ud){ud.value||(await nextTick$1(),Zo$3(Ud)&&!Ud.defaultPrevented&&vd())}return(Ud,jd)=>(openBlock(),createElementBlock(Fragment,null,[createVNode(unref(Qa$1),{as:"template",element:gd.value},null,8,["element"]),createVNode(unref(O$4),mergeProps({ref:unref(dd),as:Ud.as,"as-child":Ud.asChild,"data-state":unref(hd).open.value?"open":"closed","data-disabled":unref(ud)?"":void 0,style:{WebkitTouchCallout:"none"}},Ud.$attrs,{onContextmenu:wd,onPointerdown:Nd,onPointermove:Ld,onPointercancel:Ld,onPointerup:Ld}),{default:withCtx(()=>[renderSlot(Ud.$slots,"default")]),_:3},16,["as","as-child","data-state","data-disabled"])],64))}}),um=defineComponent({__name:"ContextMenuPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createBlock(unref(vo$1),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),dm=defineComponent({__name:"ContextMenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},alignOffset:{default:0},avoidCollisions:{type:Boolean,default:!0},collisionBoundary:{default:()=>[]},collisionPadding:{default:0},sticky:{default:"partial"},hideWhenDetached:{type:Boolean,default:!1},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(Ra,{emit:ed}){const ud=Se$6(Ra,ed);R$6();const dd=us$3(),hd=ref$1(!1);return(md,gd)=>(openBlock(),createBlock(unref(fo$2),mergeProps(unref(ud),{side:"right","side-offset":2,align:"start",style:{"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"},onCloseAutoFocus:gd[0]||(gd[0]=yd=>{!yd.defaultPrevented&&hd.value&&yd.preventDefault(),hd.value=!1}),onInteractOutside:gd[1]||(gd[1]=yd=>{!yd.defaultPrevented&&!unref(dd).modal.value&&(hd.value=!0)})}),{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},16))}}),fm=defineComponent({__name:"ContextMenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(Ra,{emit:ed}){const ud=Ra,dd=Te$5(ed);return R$6(),(hd,md)=>(openBlock(),createBlock(unref(xa$3),normalizeProps(guardReactiveProps({...ud,...unref(dd)})),{default:withCtx(()=>[renderSlot(hd.$slots,"default")]),_:3},16))}}),vm$1=defineComponent({__name:"ContextMenuSeparator",props:{asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra;return R$6(),(ud,dd)=>(openBlock(),createBlock(unref(yo$3),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),[fs$3,cc$2]=te$5("DropdownMenuRoot"),uh=defineComponent({__name:"DropdownMenuRoot",props:{defaultOpen:{type:Boolean},open:{type:Boolean,default:void 0},dir:{},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed;R$6();const hd=ne$5(ud,"open",dd,{defaultValue:ud.defaultOpen,passive:ud.open===void 0}),md=ref$1(),{modal:gd,dir:yd}=toRefs(ud),vd=we$5(yd);return cc$2({open:hd,onOpenChange:Cd=>{hd.value=Cd},onOpenToggle:()=>{hd.value=!hd.value},triggerId:"",triggerElement:md,contentId:"",modal:gd,dir:vd}),(Cd,wd)=>(openBlock(),createBlock(unref(so$2),{open:unref(hd),"onUpdate:open":wd[0]||(wd[0]=Nd=>isRef(hd)?hd.value=Nd:null),dir:unref(vd),modal:unref(gd)},{default:withCtx(()=>[renderSlot(Cd.$slots,"default",{open:unref(hd)})]),_:3},8,["open","dir","modal"]))}}),dh=defineComponent({__name:"DropdownMenuTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const ed=Ra,ud=fs$3(),{forwardRef:dd,currentElement:hd}=R$6();return onMounted(()=>{ud.triggerElement=hd}),ud.triggerId||(ud.triggerId=ge$7(void 0,"radix-vue-dropdown-menu-trigger")),(md,gd)=>(openBlock(),createBlock(unref(Qa$1),{"as-child":""},{default:withCtx(()=>[createVNode(unref(O$4),{id:unref(ud).triggerId,ref:unref(dd),type:md.as==="button"?"button":void 0,"as-child":ed.asChild,as:md.as,"aria-haspopup":"menu","aria-expanded":unref(ud).open.value,"aria-controls":unref(ud).open.value?unref(ud).contentId:void 0,"data-disabled":md.disabled?"":void 0,disabled:md.disabled,"data-state":unref(ud).open.value?"open":"closed",onClick:gd[0]||(gd[0]=async yd=>{var vd;!md.disabled&&yd.button===0&&yd.ctrlKey===!1&&((vd=unref(ud))==null||vd.onOpenToggle(),await nextTick$1(),unref(ud).open.value&&yd.preventDefault())}),onKeydown:gd[1]||(gd[1]=withKeys(yd=>{md.disabled||(["Enter"," "].includes(yd.key)&&unref(ud).onOpenToggle(),yd.key==="ArrowDown"&&unref(ud).onOpenChange(!0),["Enter"," ","ArrowDown"].includes(yd.key)&&yd.preventDefault())},["enter","space","arrow-down"]))},{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},8,["id","type","as-child","as","aria-expanded","aria-controls","data-disabled","disabled","data-state"])]),_:3}))}}),ch$1=defineComponent({__name:"DropdownMenuPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createBlock(unref(vo$1),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),fh=defineComponent({__name:"DropdownMenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(Ra,{emit:ed}){const ud=Se$6(Ra,ed);R$6();const dd=fs$3(),hd=ref$1(!1);function md(gd){gd.defaultPrevented||(hd.value||setTimeout(()=>{var yd;(yd=dd.triggerElement.value)==null||yd.focus()},0),hd.value=!1,gd.preventDefault())}return dd.contentId||(dd.contentId=ge$7(void 0,"radix-vue-dropdown-menu-content")),(gd,yd)=>{var vd;return openBlock(),createBlock(unref(fo$2),mergeProps(unref(ud),{id:unref(dd).contentId,"aria-labelledby":(vd=unref(dd))==null?void 0:vd.triggerId,style:{"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"},onCloseAutoFocus:md,onInteractOutside:yd[0]||(yd[0]=Cd=>{var wd;if(Cd.defaultPrevented)return;const Nd=Cd.detail.originalEvent,Ld=Nd.button===0&&Nd.ctrlKey===!0,Ud=Nd.button===2||Ld;(!unref(dd).modal.value||Ud)&&(hd.value=!0),(wd=unref(dd).triggerElement.value)!=null&&wd.contains(Cd.target)&&Cd.preventDefault()})}),{default:withCtx(()=>[renderSlot(gd.$slots,"default")]),_:3},16,["id","aria-labelledby"])}}}),vh=defineComponent({__name:"DropdownMenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(Ra,{emit:ed}){const ud=Ra,dd=Te$5(ed);return R$6(),(hd,md)=>(openBlock(),createBlock(unref(xa$3),normalizeProps(guardReactiveProps({...ud,...unref(dd)})),{default:withCtx(()=>[renderSlot(hd.$slots,"default")]),_:3},16))}}),gh=defineComponent({__name:"DropdownMenuItemIndicator",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra;return R$6(),(ud,dd)=>(openBlock(),createBlock(unref(uo$3),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),Ch=defineComponent({__name:"DropdownMenuRadioGroup",props:{modelValue:{},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(Ra,{emit:ed}){const ud=Ra,dd=Te$5(ed);return R$6(),(hd,md)=>(openBlock(),createBlock(unref(mo$3),normalizeProps(guardReactiveProps({...ud,...unref(dd)})),{default:withCtx(()=>[renderSlot(hd.$slots,"default")]),_:3},16))}}),wh=defineComponent({__name:"DropdownMenuRadioItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(Ra,{emit:ed}){const ud=Se$6(Ra,ed);return R$6(),(dd,hd)=>(openBlock(),createBlock(unref(ho$2),normalizeProps(guardReactiveProps(unref(ud))),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16))}}),[xo$4,vc$1]=te$5("HoverCardRoot"),Rh=defineComponent({__name:"HoverCardRoot",props:{defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},openDelay:{default:700},closeDelay:{default:300}},emits:["update:open"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,{openDelay:hd,closeDelay:md}=toRefs(ud);R$6();const gd=ne$5(ud,"open",dd,{defaultValue:ud.defaultOpen,passive:ud.open===void 0}),yd=ref$1(0),vd=ref$1(0),Cd=ref$1(!1),wd=ref$1(!1),Nd=ref$1(!1),Ld=ref$1();function Ud(){clearTimeout(vd.value),yd.value=window.setTimeout(()=>gd.value=!0,hd.value)}function jd(){clearTimeout(yd.value),!Cd.value&&!wd.value&&(vd.value=window.setTimeout(()=>gd.value=!1,md.value))}function Gd(){gd.value=!1}return vc$1({open:gd,onOpenChange(Yd){gd.value=Yd},onOpen:Ud,onClose:jd,onDismiss:Gd,hasSelectionRef:Cd,isPointerDownOnContentRef:wd,isPointerInTransitRef:Nd,triggerElement:Ld}),(Yd,zd)=>(openBlock(),createBlock(unref(kt$4),null,{default:withCtx(()=>[renderSlot(Yd.$slots,"default",{open:unref(gd)})]),_:3}))}});function An$3(Ra){return ed=>ed.pointerType==="touch"?void 0:Ra()}function mc$1(Ra){const ed=[],ud=document.createTreeWalker(Ra,NodeFilter.SHOW_ELEMENT,{acceptNode:dd=>dd.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;ud.nextNode();)ed.push(ud.currentNode);return ed}const Ah=defineComponent({__name:"HoverCardTrigger",props:{asChild:{type:Boolean},as:{default:"a"}},setup(Ra){const{forwardRef:ed,currentElement:ud}=R$6(),dd=xo$4();dd.triggerElement=ud;function hd(){setTimeout(()=>{!dd.isPointerInTransitRef.value&&!dd.open.value&&dd.onClose()},0)}return(md,gd)=>(openBlock(),createBlock(unref(Mt$4),{"as-child":""},{default:withCtx(()=>[createVNode(unref(O$4),{ref:unref(ed),"as-child":md.asChild,as:md.as,"data-state":unref(dd).open.value?"open":"closed","data-grace-area-trigger":"",onPointerenter:gd[0]||(gd[0]=yd=>unref(An$3)(unref(dd).onOpen)(yd)),onPointerleave:gd[1]||(gd[1]=yd=>unref(An$3)(hd)(yd)),onFocus:gd[2]||(gd[2]=yd=>unref(dd).onOpen()),onBlur:gd[3]||(gd[3]=yd=>unref(dd).onClose())},{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},8,["as-child","as","data-state"])]),_:3}))}}),Oh=defineComponent({__name:"HoverCardPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createBlock(unref(rt$3),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),hc$1=defineComponent({__name:"HoverCardContentImpl",props:{side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=Ot$3(ud),{forwardRef:md,currentElement:gd}=R$6(),yd=xo$4(),{isPointerInTransit:vd,onPointerExit:Cd}=Fl$3(yd.triggerElement,gd);mi$2(yd.isPointerInTransitRef,vd,{direction:"rtl"}),Cd(()=>{yd.onClose()});const wd=ref$1(!1);let Nd;watchEffect(Ud=>{if(wd.value){const jd=document.body;Nd=jd.style.userSelect||jd.style.webkitUserSelect,jd.style.userSelect="none",jd.style.webkitUserSelect="none",Ud(()=>{jd.style.userSelect=Nd,jd.style.webkitUserSelect=Nd})}});function Ld(){wd.value=!1,yd.isPointerDownOnContentRef.value=!1,nextTick$1(()=>{var Ud;((Ud=document.getSelection())==null?void 0:Ud.toString())!==""&&(yd.hasSelectionRef.value=!0)})}return onMounted(()=>{gd.value&&(document.addEventListener("pointerup",Ld),mc$1(gd.value).forEach(Ud=>Ud.setAttribute("tabindex","-1")))}),onUnmounted(()=>{document.removeEventListener("pointerup",Ld),yd.hasSelectionRef.value=!1,yd.isPointerDownOnContentRef.value=!1}),(Ud,jd)=>(openBlock(),createBlock(unref(Ct$4),{"as-child":"","disable-outside-pointer-events":!1,onEscapeKeyDown:jd[1]||(jd[1]=Gd=>dd("escapeKeyDown",Gd)),onPointerDownOutside:jd[2]||(jd[2]=Gd=>dd("pointerDownOutside",Gd)),onFocusOutside:jd[3]||(jd[3]=withModifiers(Gd=>dd("focusOutside",Gd),["prevent"])),onDismiss:unref(yd).onDismiss},{default:withCtx(()=>[createVNode(unref(It$3),mergeProps({...unref(hd),...Ud.$attrs},{ref:unref(md),"data-state":unref(yd).open.value?"open":"closed",style:{userSelect:wd.value?"text":void 0,WebkitUserSelect:wd.value?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"},onPointerdown:jd[0]||(jd[0]=Gd=>{Gd.currentTarget.contains(Gd.target)&&(wd.value=!0),unref(yd).hasSelectionRef.value=!1,unref(yd).isPointerDownOnContentRef.value=!0})}),{default:withCtx(()=>[renderSlot(Ud.$slots,"default")]),_:3},16,["data-state","style"])]),_:3},8,["onDismiss"]))}}),kh=defineComponent({__name:"HoverCardContent",props:{forceMount:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside"],setup(Ra,{emit:ed}){const ud=Se$6(Ra,ed),{forwardRef:dd}=R$6(),hd=xo$4();return(md,gd)=>(openBlock(),createBlock(unref(Pe$6),{present:md.forceMount||unref(hd).open.value},{default:withCtx(()=>[createVNode(hc$1,mergeProps(unref(ud),{ref:unref(dd),onPointerenter:gd[0]||(gd[0]=yd=>unref(An$3)(unref(hd).onOpen)(yd))}),{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},16)]),_:3},8,["present"]))}}),Vh=defineComponent({__name:"Label",props:{for:{},asChild:{type:Boolean},as:{default:"label"}},setup(Ra){const ed=Ra;return R$6(),(ud,dd)=>(openBlock(),createBlock(unref(O$4),mergeProps(ed,{onMousedown:dd[0]||(dd[0]=hd=>{!hd.defaultPrevented&&hd.detail>1&&hd.preventDefault()})}),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),[nn$3,Vc$2]=te$5("MenubarRoot"),Uh=defineComponent({__name:"MenubarRoot",props:{modelValue:{},defaultValue:{},dir:{},loop:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,{forwardRef:hd,currentElement:md}=R$6(),{createCollection:gd}=Fe$5("menubar");gd(md);const yd=ne$5(ud,"modelValue",dd,{defaultValue:ud.defaultValue??"",passive:ud.modelValue===void 0}),vd=ref$1(null),{dir:Cd,loop:wd}=toRefs(ud),Nd=we$5(Cd);return Vc$2({modelValue:yd,dir:Nd,loop:wd,onMenuOpen:Ld=>{yd.value=Ld,vd.value=Ld},onMenuClose:()=>{yd.value=""},onMenuToggle:Ld=>{yd.value=yd.value?"":Ld,vd.value=Ld}}),(Ld,Ud)=>(openBlock(),createBlock(unref(Ft$4),{"current-tab-stop-id":vd.value,"onUpdate:currentTabStopId":Ud[0]||(Ud[0]=jd=>vd.value=jd),orientation:"horizontal",loop:unref(wd),dir:unref(Nd),"as-child":""},{default:withCtx(()=>[createVNode(unref(O$4),{ref:unref(hd),role:"menubar"},{default:withCtx(()=>[renderSlot(Ld.$slots,"default",{modelValue:unref(yd)})]),_:3},512)]),_:3},8,["current-tab-stop-id","loop","dir"]))}}),[So$1,Fc$2]=te$5("MenubarMenu"),Gh=defineComponent({__name:"MenubarMenu",props:{value:{}},setup(Ra){const ed=ge$7(Ra.value),ud=nn$3();R$6();const dd=ref$1(),hd=ref$1(!1),md=computed(()=>ud.modelValue.value===ed);return watch(md,()=>{md.value||(hd.value=!1)}),Fc$2({value:ed,triggerElement:dd,triggerId:ed,contentId:"",wasKeyboardTriggerOpenRef:hd}),(gd,yd)=>(openBlock(),createBlock(unref(so$2),{open:md.value,modal:!1,dir:unref(ud).dir.value,"onUpdate:open":yd[0]||(yd[0]=vd=>{vd||unref(ud).onMenuClose()})},{default:withCtx(()=>[renderSlot(gd.$slots,"default")]),_:3},8,["open","dir"]))}}),qh=defineComponent({__name:"MenubarTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const ed=nn$3(),ud=So$1(),{forwardRef:dd,currentElement:hd}=R$6(),md=ref$1(!1),gd=computed(()=>ed.modelValue.value===ud.value);return onMounted(()=>{ud.triggerElement=hd}),(yd,vd)=>(openBlock(),createBlock(unref(Nt$4),{"as-child":"",focusable:!yd.disabled,"tab-stop-id":unref(ud).value},{default:withCtx(()=>[createVNode(unref(Qa$1),{"as-child":""},{default:withCtx(()=>[createVNode(unref(O$4),{id:unref(ud).triggerId,ref:unref(dd),as:yd.as,type:yd.as==="button"?"button":void 0,role:"menuitem","aria-haspopup":"menu","aria-expanded":gd.value,"aria-controls":gd.value?unref(ud).contentId:void 0,"data-highlighted":md.value?"":void 0,"data-state":gd.value?"open":"closed","data-disabled":yd.disabled?"":void 0,disabled:yd.disabled,"data-value":unref(ud).value,"data-radix-vue-collection-item":"",onPointerdown:vd[0]||(vd[0]=Cd=>{!yd.disabled&&Cd.button===0&&Cd.ctrlKey===!1&&(unref(ed).onMenuOpen(unref(ud).value),gd.value||Cd.preventDefault())}),onPointerenter:vd[1]||(vd[1]=()=>{var Cd;unref(ed).modelValue.value&&!gd.value&&(unref(ed).onMenuOpen(unref(ud).value),(Cd=unref(hd))==null||Cd.focus())}),onKeydown:vd[2]||(vd[2]=withKeys(Cd=>{yd.disabled||(["Enter"," "].includes(Cd.key)&&unref(ed).onMenuToggle(unref(ud).value),Cd.key==="ArrowDown"&&unref(ed).onMenuOpen(unref(ud).value),["Enter"," ","ArrowDown"].includes(Cd.key)&&(unref(ud).wasKeyboardTriggerOpenRef.value=!0,Cd.preventDefault()))},["enter","space","arrow-down"])),onFocus:vd[3]||(vd[3]=Cd=>md.value=!0),onBlur:vd[4]||(vd[4]=Cd=>md.value=!1)},{default:withCtx(()=>[renderSlot(yd.$slots,"default")]),_:3},8,["id","as","type","aria-expanded","aria-controls","data-highlighted","data-state","data-disabled","disabled","data-value"])]),_:3})]),_:3},8,["focusable","tab-stop-id"]))}}),Yh=defineComponent({__name:"MenubarPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createBlock(unref(vo$1),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),Xh=defineComponent({__name:"MenubarContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},side:{},sideOffset:{},align:{default:"start"},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(Ra,{emit:ed}){const ud=Se$6(Ra,ed);R$6();const dd=nn$3(),hd=So$1();hd.contentId||(hd.contentId=ge$7(void 0,"radix-vue-menubar-content"));const{injectCollection:md}=Fe$5("menubar"),gd=md(),yd=ref$1(!1);function vd(Cd){const wd=Cd.target.hasAttribute("data-radix-menubar-subtrigger"),Nd=(dd.dir.value==="rtl"?"ArrowRight":"ArrowLeft")===Cd.key;if(!Nd&&wd)return;let Ld=gd.value.map(Gd=>Gd.dataset.value);Nd&&Ld.reverse();const Ud=Ld.indexOf(hd.value);Ld=dd.loop.value?Xn$4(Ld,Ud+1):Ld.slice(Ud+1);const[jd]=Ld;jd&&dd.onMenuOpen(jd)}return(Cd,wd)=>(openBlock(),createBlock(unref(fo$2),mergeProps(unref(ud),{id:unref(hd).contentId,"data-radix-menubar-content":"","aria-labelledby":unref(hd).triggerId,style:{"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"},onCloseAutoFocus:wd[0]||(wd[0]=Nd=>{var Ld;!unref(dd).modelValue.value&&!yd.value&&((Ld=unref(hd).triggerElement.value)==null||Ld.focus()),yd.value=!1,Nd.preventDefault()}),onFocusOutside:wd[1]||(wd[1]=Nd=>{const Ld=Nd.target;unref(gd).some(Ud=>Ud.contains(Ld))&&Nd.preventDefault()}),onInteractOutside:wd[2]||(wd[2]=Nd=>{yd.value=!0}),onEntryFocus:wd[3]||(wd[3]=Nd=>{unref(hd).wasKeyboardTriggerOpenRef.value||Nd.preventDefault()}),onKeydown:withKeys(vd,["arrow-right","arrow-left"])}),{default:withCtx(()=>[renderSlot(Cd.$slots,"default")]),_:3},16,["id","aria-labelledby"]))}}),Jh=defineComponent({__name:"MenubarItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(Ra,{emit:ed}){const ud=Ra,dd=Te$5(ed);return R$6(),(hd,md)=>(openBlock(),createBlock(unref(xa$3),normalizeProps(guardReactiveProps({...ud,...unref(dd)})),{default:withCtx(()=>[renderSlot(hd.$slots,"default")]),_:3},16))}}),ey=defineComponent({__name:"MenubarSeparator",props:{asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra;return R$6(),(ud,dd)=>(openBlock(),createBlock(unref(yo$3),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),ty=defineComponent({__name:"MenubarCheckboxItem",props:{checked:{type:[Boolean,String]},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select","update:checked"],setup(Ra,{emit:ed}){const ud=Ra,dd=Te$5(ed);return R$6(),(hd,md)=>(openBlock(),createBlock(unref(co$4),normalizeProps(guardReactiveProps({...ud,...unref(dd)})),{default:withCtx(()=>[renderSlot(hd.$slots,"default")]),_:3},16))}}),ay$1=defineComponent({__name:"MenubarItemIndicator",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra;return R$6(),(ud,dd)=>(openBlock(),createBlock(unref(uo$3),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),sy=defineComponent({__name:"MenubarSub",props:{defaultOpen:{type:Boolean},open:{type:Boolean,default:void 0}},emits:["update:open"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed;R$6();const hd=ne$5(ud,"open",dd,{defaultValue:ud.defaultOpen??!1,passive:ud.open===void 0});return(md,gd)=>(openBlock(),createBlock(unref(go$3),{open:unref(hd),"onUpdate:open":gd[0]||(gd[0]=yd=>isRef(hd)?hd.value=yd:null)},{default:withCtx(()=>[renderSlot(md.$slots,"default",{open:unref(hd)})]),_:3},8,["open"]))}}),ry=defineComponent({__name:"MenubarSubContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},sideOffset:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:ed}){const ud=Se$6(Ra,ed);R$6();const{injectCollection:dd}=Fe$5("menubar"),hd=nn$3(),md=So$1(),gd=dd();function yd(vd){if(vd.target.hasAttribute("data-radix-menubar-subtrigger"))return;let Cd=gd.value.map(Ld=>Ld.dataset.value);const wd=Cd.indexOf(md.value);Cd=hd.loop.value?Xn$4(Cd,wd+1):Cd.slice(wd+1);const[Nd]=Cd;Nd&&hd.onMenuOpen(Nd)}return(vd,Cd)=>(openBlock(),createBlock(unref(bo$3),mergeProps(unref(ud),{"data-radix-menubar-content":"",style:{"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"},onKeydown:withKeys(yd,["arrow-right"])}),{default:withCtx(()=>[renderSlot(vd.$slots,"default")]),_:3},16))}}),iy=defineComponent({__name:"MenubarSubTrigger",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra;return R$6(),(ud,dd)=>(openBlock(),createBlock(unref(Co$1),mergeProps(ed,{"data-radix-menubar-subtrigger":""}),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}});function bs$3(Ra){const{disabled:ed}=Ra,ud=ref$1(),dd=ua$2(),hd=()=>window.clearTimeout(ud.value),md=Ld=>{hd(),!ed.value&&(dd.trigger(),ud.value=window.setTimeout(()=>{md(60)},Ld))},gd=()=>{md(400)},yd=()=>{hd()},vd=ref$1(!1),Cd=computed(()=>$e$4(Ra.target)),wd=Ld=>{Ld.button!==0||vd.value||(Ld.preventDefault(),vd.value=!0,gd())},Nd=()=>{vd.value=!1,yd()};return Je$3&&(He$4(Cd||window,"pointerdown",wd),He$4(window,"pointerup",Nd),He$4(window,"pointercancel",Nd)),{isPressed:vd,onTrigger:dd.on}}function Qo$3(Ra,ed=ref$1({})){return $l$3(()=>new $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5(Ra.value,ed.value))}function Wc$2(Ra,ed=ref$1({})){return $l$3(()=>new $6c7bd7858deea686$export$cd11ab140839f11d(Ra.value,ed.value))}function el$3(Ra,ed,ud){let dd=Ra==="+"?ed+ud:ed-ud;if(ed%1!==0||ud%1!==0){const hd=ed.toString().split("."),md=ud.toString().split("."),gd=hd[1]&&hd[1].length||0,yd=md[1]&&md[1].length||0,vd=10**Math.max(gd,yd);ed=Math.round(ed*vd),ud=Math.round(ud*vd),dd=Ra==="+"?ed+ud:ed-ud,dd/=vd}return dd}const jc$2=["value","name","disabled","required"],[Do$3,Uc$2]=te$5("NumberFieldRoot"),gy$1=defineComponent({inheritAttrs:!1,__name:"NumberFieldRoot",props:{defaultValue:{default:void 0},modelValue:{},min:{},max:{},step:{default:1},formatOptions:{},locale:{default:"en-US"},disabled:{type:Boolean},required:{type:Boolean},name:{},id:{},asChild:{type:Boolean},as:{default:"div"}},emits:["update:modelValue"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,{disabled:hd,min:md,max:gd,step:yd,locale:vd,formatOptions:Cd,id:wd}=toRefs(ud),Nd=ne$5(ud,"modelValue",dd,{defaultValue:ud.defaultValue,passive:ud.modelValue===void 0}),{primitiveElement:Ld,currentElement:Ud}=Re$7(),jd=at$6(Ud),Gd=ref$1(),Yd=computed(()=>Df(Nd.value)===md.value||(md.value&&!isNaN(Nd.value)?el$3("-",Nd.value,yd.value)Df(Nd.value)===gd.value||(gd.value&&!isNaN(Nd.value)?el$3("+",Nd.value,yd.value)>gd.value:!1));function qd(Cf,If=1){var Ff;const sh=mf.parse(((Ff=Gd.value)==null?void 0:Ff.value)??"");ud.disabled||(isNaN(sh)?Nd.value=md.value??0:Cf==="increase"?Nd.value=Df(sh+(yd.value??1)*If):Nd.value=Df(sh-(yd.value??1)*If))}function Wd(Cf=1){qd("increase",Cf)}function Xd(Cf=1){qd("decrease",Cf)}function Jd(Cf){Cf==="min"&&md.value!==void 0?Nd.value=Df(md.value):Cf==="max"&&gd.value!==void 0&&(Nd.value=Df(gd.value))}const Zd=Qo$3(vd,Cd),mf=Wc$2(vd,Cd),xf=computed(()=>Zd.resolvedOptions().maximumFractionDigits>0?"decimal":"numeric"),_f=Qo$3(vd,Cd),vf=computed(()=>isNaN(Nd.value)?"":_f.format(Nd.value));function gf(Cf){return mf.isValidPartialNumber(Cf,md.value,gd.value)}function Af(Cf){Gd.value&&(Gd.value.value=Cf)}function Df(Cf){let If;return yd.value===void 0||isNaN(yd.value)?If=Ut$4(Cf,md.value,gd.value):If=Wr$4(Cf,md.value,gd.value,yd.value),If=mf.parse(Zd.format(If)),If}function Of(Cf){const If=mf.parse(Cf);return Nd.value=Df(If),Cf.length?Af(vf.value):Af(Cf)}return Uc$2({modelValue:Nd,handleDecrease:Xd,handleIncrease:Wd,handleMinMaxValue:Jd,inputMode:xf,inputEl:Gd,onInputElement:Cf=>Gd.value=Cf,textValue:vf,validate:gf,applyInputValue:Of,disabled:hd,max:gd,min:md,isDecreaseDisabled:Yd,isIncreaseDisabled:zd,id:wd}),(Cf,If)=>(openBlock(),createElementBlock(Fragment,null,[createVNode(unref(O$4),mergeProps(Cf.$attrs,{ref_key:"primitiveElement",ref:Ld,role:"group",as:Cf.as,"as-child":Cf.asChild,"data-disabled":unref(hd)?"":void 0}),{default:withCtx(()=>[renderSlot(Cf.$slots,"default",{modelValue:unref(Nd),textValue:vf.value})]),_:3},16,["as","as-child","data-disabled"]),unref(jd)?(openBlock(),createElementBlock("input",{key:0,type:"text",tabindex:"-1","aria-hidden":"true",value:unref(Nd),name:ud.name,disabled:ud.disabled,required:ud.required,style:{transform:"translateX(-100%)",position:"absolute",pointerEvents:"none",opacity:0,margin:0}},null,8,jc$2)):createCommentVNode("",!0)],64))}}),by$2=defineComponent({__name:"NumberFieldInput",props:{asChild:{type:Boolean},as:{default:"input"}},setup(Ra){const ed=Ra,{primitiveElement:ud,currentElement:dd}=Re$7(),hd=Do$3();function md(vd){vd.target===me$4()&&(Math.abs(vd.deltaY)<=Math.abs(vd.deltaX)||(vd.preventDefault(),vd.deltaY>0?hd.handleIncrease():vd.deltaY<0&&hd.handleDecrease()))}onMounted(()=>{hd.onInputElement(dd.value)});const gd=ref$1(hd.textValue.value);watch(()=>hd.textValue.value,()=>{gd.value=hd.textValue.value},{immediate:!0,deep:!0});function yd(){requestAnimationFrame(()=>{gd.value=hd.textValue.value})}return(vd,Cd)=>(openBlock(),createBlock(unref(O$4),mergeProps(ed,{id:unref(hd).id.value,ref_key:"primitiveElement",ref:ud,value:gd.value,role:"spinbutton",type:"text",tabindex:"0",inputmode:unref(hd).inputMode.value,disabled:unref(hd).disabled.value?"":void 0,"data-disabled":unref(hd).disabled.value?"":void 0,autocomplete:"off",autocorrect:"off",spellcheck:"false","aria-roledescription":"Number field","aria-valuenow":unref(hd).modelValue.value,"aria-valuemin":unref(hd).min.value,"aria-valuemax":unref(hd).max.value,onKeydown:[Cd[0]||(Cd[0]=withKeys(withModifiers(wd=>unref(hd).handleIncrease(),["prevent"]),["up"])),Cd[1]||(Cd[1]=withKeys(withModifiers(wd=>unref(hd).handleDecrease(),["prevent"]),["down"])),Cd[2]||(Cd[2]=withKeys(withModifiers(wd=>unref(hd).handleIncrease(10),["prevent"]),["page-up"])),Cd[3]||(Cd[3]=withKeys(withModifiers(wd=>unref(hd).handleDecrease(10),["prevent"]),["page-down"])),Cd[4]||(Cd[4]=withKeys(withModifiers(wd=>unref(hd).handleMinMaxValue("min"),["prevent"]),["home"])),Cd[5]||(Cd[5]=withKeys(withModifiers(wd=>unref(hd).handleMinMaxValue("max"),["prevent"]),["end"])),Cd[8]||(Cd[8]=withKeys(wd=>{var Nd;return unref(hd).applyInputValue((Nd=wd.target)==null?void 0:Nd.value)},["enter"]))],onWheel:md,onBeforeinput:Cd[6]||(Cd[6]=wd=>{const Nd=wd.target;let Ld=Nd.value.slice(0,Nd.selectionStart??void 0)+(wd.data??"")+Nd.value.slice(Nd.selectionEnd??void 0);unref(hd).validate(Ld)||wd.preventDefault()}),onInput:Cd[7]||(Cd[7]=wd=>{const Nd=wd.target;gd.value=Nd.value}),onChange:yd,onBlur:Cd[9]||(Cd[9]=wd=>{var Nd;return unref(hd).applyInputValue((Nd=wd.target)==null?void 0:Nd.value)})}),{default:withCtx(()=>[renderSlot(vd.$slots,"default")]),_:3},16,["id","value","inputmode","disabled","data-disabled","aria-valuenow","aria-valuemin","aria-valuemax"]))}}),Cy=defineComponent({__name:"NumberFieldIncrement",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const ed=Ra,ud=Do$3(),dd=computed(()=>{var vd;return((vd=ud.disabled)==null?void 0:vd.value)||ed.disabled||ud.isIncreaseDisabled.value}),{primitiveElement:hd,currentElement:md}=Re$7(),{isPressed:gd,onTrigger:yd}=bs$3({target:md,disabled:dd});return yd(()=>{ud.handleIncrease()}),(vd,Cd)=>(openBlock(),createBlock(unref(O$4),mergeProps(ed,{ref_key:"primitiveElement",ref:hd,tabindex:"-1","aria-label":"Increase",type:vd.as==="button"?"button":void 0,style:{userSelect:unref(gd)?"none":void 0},disabled:dd.value?"":void 0,"data-disabled":dd.value?"":void 0,"data-pressed":unref(gd)?"true":void 0,onContextmenu:Cd[0]||(Cd[0]=withModifiers(()=>{},["prevent"]))}),{default:withCtx(()=>[renderSlot(vd.$slots,"default")]),_:3},16,["type","style","disabled","data-disabled","data-pressed"]))}}),wy$1=defineComponent({__name:"NumberFieldDecrement",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const ed=Ra,ud=Do$3(),dd=computed(()=>{var vd;return((vd=ud.disabled)==null?void 0:vd.value)||ed.disabled||ud.isDecreaseDisabled.value}),{primitiveElement:hd,currentElement:md}=Re$7(),{isPressed:gd,onTrigger:yd}=bs$3({target:md,disabled:dd});return yd(()=>{ud.handleDecrease()}),(vd,Cd)=>(openBlock(),createBlock(unref(O$4),mergeProps(ed,{ref_key:"primitiveElement",ref:hd,tabindex:"-1","aria-label":"Decrease",type:vd.as==="button"?"button":void 0,style:{userSelect:unref(gd)?"none":void 0},disabled:dd.value?"":void 0,"data-disabled":dd.value?"":void 0,"data-pressed":unref(gd)?"true":void 0,onContextmenu:Cd[0]||(Cd[0]=withModifiers(()=>{},["prevent"]))}),{default:withCtx(()=>[renderSlot(vd.$slots,"default")]),_:3},16,["type","style","disabled","data-disabled","data-pressed"]))}}),Nf=["default-value"],Lf=defineComponent({__name:"BubbleSelect",props:{autocomplete:{},autofocus:{type:Boolean},disabled:{type:Boolean},form:{},multiple:{type:Boolean},name:{},required:{type:Boolean},size:{},value:{}},setup(Ra){const ed=Ra,{value:ud}=toRefs(ed),dd=ref$1();return(hd,md)=>(openBlock(),createBlock(unref(Jt$4),{"as-child":""},{default:withCtx(()=>[withDirectives(createBaseVNode("select",mergeProps({ref_key:"selectElement",ref:dd},ed,{"onUpdate:modelValue":md[0]||(md[0]=gd=>isRef(ud)?ud.value=gd:null),"default-value":unref(ud)}),[renderSlot(hd.$slots,"default")],16,Nf),[[vModelSelect,unref(ud)]])]),_:3}))}}),zf={key:0,value:""},[xt$1,Rs$1]=te$5("SelectRoot"),[Kf,Hf$1]=te$5("SelectRoot"),Ky=defineComponent({__name:"SelectRoot",props:{open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean},defaultValue:{default:""},modelValue:{default:void 0},dir:{},name:{},autocomplete:{},disabled:{type:Boolean},required:{type:Boolean}},emits:["update:modelValue","update:open"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=ne$5(ud,"modelValue",dd,{defaultValue:ud.defaultValue,passive:ud.modelValue===void 0}),md=ne$5(ud,"open",dd,{defaultValue:ud.defaultOpen,passive:ud.open===void 0}),gd=ref$1(),yd=ref$1(),vd=ref$1({x:0,y:0}),Cd=ref$1(!1),{required:wd,disabled:Nd,dir:Ld}=toRefs(ud),Ud=we$5(Ld);Rs$1({triggerElement:gd,onTriggerChange:zd=>{gd.value=zd},valueElement:yd,onValueElementChange:zd=>{yd.value=zd},valueElementHasChildren:Cd,onValueElementHasChildrenChange:zd=>{Cd.value=zd},contentId:"",modelValue:hd,onValueChange:zd=>{hd.value=zd},open:md,required:wd,onOpenChange:zd=>{md.value=zd},dir:Ud,triggerPointerDownPosRef:vd,disabled:Nd});const jd=at$6(gd),Gd=ref$1(new Set),Yd=computed(()=>Array.from(Gd.value).map(zd=>{var qd;return(qd=zd.props)==null?void 0:qd.value}).join(";"));return Hf$1({onNativeOptionAdd:zd=>{Gd.value.add(zd)},onNativeOptionRemove:zd=>{Gd.value.delete(zd)}}),(zd,qd)=>(openBlock(),createBlock(unref(kt$4),null,{default:withCtx(()=>[renderSlot(zd.$slots,"default",{modelValue:unref(hd),open:unref(md)}),unref(jd)?(openBlock(),createBlock(Lf,mergeProps({key:Yd.value},zd.$attrs,{"aria-hidden":"true",tabindex:"-1",required:unref(wd),name:zd.name,autocomplete:zd.autocomplete,disabled:unref(Nd),value:unref(hd),onChange:qd[0]||(qd[0]=Wd=>hd.value=Wd.target.value)}),{default:withCtx(()=>[unref(hd)===void 0?(openBlock(),createElementBlock("option",zf)):createCommentVNode("",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(Array.from(Gd.value),Wd=>(openBlock(),createBlock(resolveDynamicComponent(Wd),mergeProps({ref_for:!0},Wd.props,{key:Wd.key??""}),null,16))),128))]),_:1},16,["required","name","autocomplete","disabled","value"])):createCommentVNode("",!0)]),_:3}))}}),Wf=[" ","Enter","ArrowUp","ArrowDown"],jf=[" ","Enter"],qe$3=10;function As$3(Ra){return Ra===""||ht$3(Ra)}const Hy=defineComponent({__name:"SelectTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const ed=Ra,ud=xt$1(),dd=computed(()=>{var Ud;return((Ud=ud.disabled)==null?void 0:Ud.value)||ed.disabled}),{forwardRef:hd,currentElement:md}=R$6();ud.contentId||(ud.contentId=ge$7(void 0,"radix-vue-select-content")),onMounted(()=>{ud.triggerElement=md});const{injectCollection:gd}=Fe$5(),yd=gd(),{search:vd,handleTypeaheadSearch:Cd,resetTypeahead:wd}=ba$3(yd);function Nd(){dd.value||(ud.onOpenChange(!0),wd())}function Ld(Ud){Nd(),ud.triggerPointerDownPosRef.value={x:Math.round(Ud.pageX),y:Math.round(Ud.pageY)}}return(Ud,jd)=>(openBlock(),createBlock(unref(Mt$4),{"as-child":""},{default:withCtx(()=>{var Gd,Yd,zd,qd;return[createVNode(unref(O$4),{ref:unref(hd),role:"combobox",type:Ud.as==="button"?"button":void 0,"aria-controls":unref(ud).contentId,"aria-expanded":unref(ud).open.value||!1,"aria-required":(Gd=unref(ud).required)==null?void 0:Gd.value,"aria-autocomplete":"none",disabled:dd.value,dir:(Yd=unref(ud))==null?void 0:Yd.dir.value,"data-state":(zd=unref(ud))!=null&&zd.open.value?"open":"closed","data-disabled":dd.value?"":void 0,"data-placeholder":unref(As$3)((qd=unref(ud).modelValue)==null?void 0:qd.value)?"":void 0,"as-child":Ud.asChild,as:Ud.as,onClick:jd[0]||(jd[0]=Wd=>{var Xd;(Xd=Wd==null?void 0:Wd.currentTarget)==null||Xd.focus()}),onPointerdown:jd[1]||(jd[1]=Wd=>{if(Wd.pointerType==="touch")return Wd.preventDefault();const Xd=Wd.target;Xd.hasPointerCapture(Wd.pointerId)&&Xd.releasePointerCapture(Wd.pointerId),Wd.button===0&&Wd.ctrlKey===!1&&(Ld(Wd),Wd.preventDefault())}),onPointerup:jd[2]||(jd[2]=withModifiers(Wd=>{Wd.pointerType==="touch"&&Ld(Wd)},["prevent"])),onKeydown:jd[3]||(jd[3]=Wd=>{const Xd=unref(vd)!=="";!(Wd.ctrlKey||Wd.altKey||Wd.metaKey)&&Wd.key.length===1&&Xd&&Wd.key===" "||(unref(Cd)(Wd.key),unref(Wf).includes(Wd.key)&&(Nd(),Wd.preventDefault()))})},{default:withCtx(()=>[renderSlot(Ud.$slots,"default")]),_:3},8,["type","aria-controls","aria-expanded","aria-required","disabled","dir","data-state","data-disabled","data-placeholder","as-child","as"])]}),_:3}))}}),Wy=defineComponent({__name:"SelectPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createBlock(unref(rt$3),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),[Io$2,Uf]=te$5("SelectItemAlignedPosition"),Gf=defineComponent({inheritAttrs:!1,__name:"SelectItemAlignedPosition",props:{asChild:{type:Boolean},as:{}},emits:["placed"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,{injectCollection:hd}=Fe$5(),md=xt$1(),gd=St$4(),yd=hd(),vd=ref$1(!1),Cd=ref$1(!0),wd=ref$1(),{forwardRef:Nd,currentElement:Ld}=R$6(),{viewport:Ud,selectedItem:jd,selectedItemText:Gd,focusSelectedItem:Yd}=gd;function zd(){if(md.triggerElement.value&&md.valueElement.value&&wd.value&&Ld.value&&Ud!=null&&Ud.value&&jd!=null&&jd.value&&Gd!=null&&Gd.value){const Xd=md.triggerElement.value.getBoundingClientRect(),Jd=Ld.value.getBoundingClientRect(),Zd=md.valueElement.value.getBoundingClientRect(),mf=Gd.value.getBoundingClientRect();if(md.dir.value!=="rtl"){const kf=mf.left-Jd.left,Rf=Zd.left-kf,_h=Xd.left-Rf,Ph=Xd.width+_h,sm=Math.max(Ph,Jd.width),th=window.innerWidth-qe$3,oh=Ut$4(Rf,qe$3,Math.max(qe$3,th-sm));wd.value.style.minWidth=`${Ph}px`,wd.value.style.left=`${oh}px`}else{const kf=Jd.right-mf.right,Rf=window.innerWidth-Zd.right-kf,_h=window.innerWidth-Xd.right-Rf,Ph=Xd.width+_h,sm=Math.max(Ph,Jd.width),th=window.innerWidth-qe$3,oh=Ut$4(Rf,qe$3,Math.max(qe$3,th-sm));wd.value.style.minWidth=`${Ph}px`,wd.value.style.right=`${oh}px`}const xf=yd.value,_f=window.innerHeight-qe$3*2,vf=Ud.value.scrollHeight,gf=window.getComputedStyle(Ld.value),Af=Number.parseInt(gf.borderTopWidth,10),Df=Number.parseInt(gf.paddingTop,10),Of=Number.parseInt(gf.borderBottomWidth,10),Cf=Number.parseInt(gf.paddingBottom,10),If=Af+Df+vf+Cf+Of,Ff=Math.min(jd.value.offsetHeight*5,If),sh=window.getComputedStyle(Ud.value),Sh=Number.parseInt(sh.paddingTop,10),yh=Number.parseInt(sh.paddingBottom,10),Mh=Xd.top+Xd.height/2-qe$3,lh=_f-Mh,rh=jd.value.offsetHeight/2,mh=jd.value.offsetTop+rh,xh=Af+Df+mh,Eh=If-xh;if(xh<=Mh){const kf=jd.value===xf[xf.length-1];wd.value.style.bottom="0px";const Rf=Ld.value.clientHeight-Ud.value.offsetTop-Ud.value.offsetHeight,_h=Math.max(lh,rh+(kf?yh:0)+Rf+Of),Ph=xh+_h;wd.value.style.height=`${Ph}px`}else{const kf=jd.value===xf[0];wd.value.style.top="0px";const Rf=Math.max(Mh,Af+Ud.value.offsetTop+(kf?Sh:0)+rh)+Eh;wd.value.style.height=`${Rf}px`,Ud.value.scrollTop=xh-Mh+Ud.value.offsetTop}wd.value.style.margin=`${qe$3}px 0`,wd.value.style.minHeight=`${Ff}px`,wd.value.style.maxHeight=`${_f}px`,dd("placed"),requestAnimationFrame(()=>vd.value=!0)}}const qd=ref$1("");onMounted(async()=>{await nextTick$1(),zd(),Ld.value&&(qd.value=window.getComputedStyle(Ld.value).zIndex)});function Wd(Xd){Xd&&Cd.value===!0&&(zd(),Yd==null||Yd(),Cd.value=!1)}return Uf({contentWrapper:wd,shouldExpandOnScrollRef:vd,onScrollButtonChange:Wd}),(Xd,Jd)=>(openBlock(),createElementBlock("div",{ref_key:"contentWrapperElement",ref:wd,style:normalizeStyle({display:"flex",flexDirection:"column",position:"fixed",zIndex:qd.value})},[createVNode(unref(O$4),mergeProps({ref:unref(Nd),style:{boxSizing:"border-box",maxHeight:"100%"}},{...Xd.$attrs,...ud}),{default:withCtx(()=>[renderSlot(Xd.$slots,"default")]),_:3},16)],4))}}),qf=defineComponent({__name:"SelectPopperPosition",props:{side:{},sideOffset:{},align:{default:"start"},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{default:qe$3},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ot$3(Ra);return(ud,dd)=>(openBlock(),createBlock(unref(It$3),mergeProps(unref(ed),{style:{boxSizing:"border-box","--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),zt$1={onViewportChange:()=>{},itemTextRefCallback:()=>{},itemRefCallback:()=>{}},[St$4,Yf]=te$5("SelectContent"),Xf=defineComponent({__name:"SelectContentImpl",props:{position:{default:"item-aligned"},bodyLock:{type:Boolean,default:!0},side:{},sideOffset:{},align:{default:"start"},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=xt$1();Yn$3(),ya$1(ud.bodyLock);const{createCollection:md}=Fe$5(),gd=ref$1();ga$2(gd);const yd=md(gd),{search:vd,handleTypeaheadSearch:Cd}=ba$3(yd),wd=ref$1(),Nd=ref$1(),Ld=ref$1(),Ud=ref$1(!1),jd=ref$1(!1);function Gd(){Nd.value&&gd.value&&In$2([Nd.value,gd.value])}watch(Ud,()=>{Gd()});const{onOpenChange:Yd,triggerPointerDownPosRef:zd}=hd;watchEffect(Jd=>{if(!gd.value)return;let Zd={x:0,y:0};const mf=_f=>{var vf,gf;Zd={x:Math.abs(Math.round(_f.pageX)-(((vf=zd.value)==null?void 0:vf.x)??0)),y:Math.abs(Math.round(_f.pageY)-(((gf=zd.value)==null?void 0:gf.y)??0))}},xf=_f=>{var vf;_f.pointerType!=="touch"&&(Zd.x<=10&&Zd.y<=10?_f.preventDefault():(vf=gd.value)!=null&&vf.contains(_f.target)||Yd(!1),document.removeEventListener("pointermove",mf),zd.value=null)};zd.value!==null&&(document.addEventListener("pointermove",mf),document.addEventListener("pointerup",xf,{capture:!0,once:!0})),Jd(()=>{document.removeEventListener("pointermove",mf),document.removeEventListener("pointerup",xf,{capture:!0})})});function qd(Jd){const Zd=Jd.ctrlKey||Jd.altKey||Jd.metaKey;if(Jd.key==="Tab"&&Jd.preventDefault(),!Zd&&Jd.key.length===1&&Cd(Jd.key),["ArrowUp","ArrowDown","Home","End"].includes(Jd.key)){let mf=yd.value;if(["ArrowUp","End"].includes(Jd.key)&&(mf=mf.slice().reverse()),["ArrowUp","ArrowDown"].includes(Jd.key)){const xf=Jd.target,_f=mf.indexOf(xf);mf=mf.slice(_f+1)}setTimeout(()=>In$2(mf)),Jd.preventDefault()}}const Wd=computed(()=>ud.position==="popper"?ud:{}),Xd=Ot$3(Wd.value);return Yf({content:gd,viewport:wd,onViewportChange:Jd=>{wd.value=Jd},itemRefCallback:(Jd,Zd,mf)=>{var xf,_f;const vf=!jd.value&&!mf;(((xf=hd.modelValue)==null?void 0:xf.value)!==void 0&&((_f=hd.modelValue)==null?void 0:_f.value)===Zd||vf)&&(Nd.value=Jd,vf&&(jd.value=!0))},selectedItem:Nd,selectedItemText:Ld,onItemLeave:()=>{var Jd;(Jd=gd.value)==null||Jd.focus()},itemTextRefCallback:(Jd,Zd,mf)=>{var xf,_f;const vf=!jd.value&&!mf;(((xf=hd.modelValue)==null?void 0:xf.value)!==void 0&&((_f=hd.modelValue)==null?void 0:_f.value)===Zd||vf)&&(Ld.value=Jd)},focusSelectedItem:Gd,position:ud.position,isPositioned:Ud,searchRef:vd}),(Jd,Zd)=>(openBlock(),createBlock(unref(Za$1),{"as-child":"",onMountAutoFocus:Zd[6]||(Zd[6]=withModifiers(()=>{},["prevent"])),onUnmountAutoFocus:Zd[7]||(Zd[7]=mf=>{var xf;dd("closeAutoFocus",mf),!mf.defaultPrevented&&((xf=unref(hd).triggerElement.value)==null||xf.focus({preventScroll:!0}),mf.preventDefault())})},{default:withCtx(()=>[createVNode(unref(Ct$4),{"as-child":"","disable-outside-pointer-events":"",onFocusOutside:Zd[2]||(Zd[2]=withModifiers(()=>{},["prevent"])),onDismiss:Zd[3]||(Zd[3]=mf=>unref(hd).onOpenChange(!1)),onEscapeKeyDown:Zd[4]||(Zd[4]=mf=>dd("escapeKeyDown",mf)),onPointerDownOutside:Zd[5]||(Zd[5]=mf=>dd("pointerDownOutside",mf))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Jd.position==="popper"?qf:Gf),mergeProps({...Jd.$attrs,...unref(Xd)},{id:unref(hd).contentId,ref:mf=>{gd.value=unref($e$4)(mf)},role:"listbox","data-state":unref(hd).open.value?"open":"closed",dir:unref(hd).dir.value,style:{display:"flex",flexDirection:"column",outline:"none"},onContextmenu:Zd[0]||(Zd[0]=withModifiers(()=>{},["prevent"])),onPlaced:Zd[1]||(Zd[1]=mf=>Ud.value=!0),onKeydown:qd}),{default:withCtx(()=>[renderSlot(Jd.$slots,"default")]),_:3},16,["id","data-state","dir","onKeydown"]))]),_:3})]),_:3}))}}),Zf=defineComponent({inheritAttrs:!1,__name:"SelectProvider",props:{context:{}},setup(Ra){return Rs$1(Ra.context),(ed,ud)=>renderSlot(ed.$slots,"default")}}),Jf={key:1},jy=defineComponent({inheritAttrs:!1,__name:"SelectContent",props:{forceMount:{type:Boolean},position:{},bodyLock:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(Ra,{emit:ed}){const ud=Ra,dd=Se$6(ud,ed),hd=xt$1(),md=ref$1();onMounted(()=>{md.value=new DocumentFragment});const gd=ref$1(),yd=computed(()=>ud.forceMount||hd.open.value);return(vd,Cd)=>{var wd;return yd.value?(openBlock(),createBlock(unref(Pe$6),{key:0,ref_key:"presenceRef",ref:gd,present:!0},{default:withCtx(()=>[createVNode(Xf,normalizeProps(guardReactiveProps({...unref(dd),...vd.$attrs})),{default:withCtx(()=>[renderSlot(vd.$slots,"default")]),_:3},16)]),_:3},512)):!((wd=gd.value)!=null&&wd.present)&&md.value?(openBlock(),createElementBlock("div",Jf,[(openBlock(),createBlock(Teleport,{to:md.value},[createVNode(Zf,{context:unref(hd)},{default:withCtx(()=>[renderSlot(vd.$slots,"default")]),_:3},8,["context"])],8,["to"]))])):createCommentVNode("",!0)}}}),[Os$4,Qf]=te$5("SelectItem"),qy=defineComponent({__name:"SelectItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra,{disabled:ud}=toRefs(ed),dd=xt$1(),hd=St$4(zt$1),{forwardRef:md,currentElement:gd}=R$6(),yd=computed(()=>{var Gd;return((Gd=dd.modelValue)==null?void 0:Gd.value)===ed.value}),vd=ref$1(!1),Cd=ref$1(ed.textValue??""),wd=ge$7(void 0,"radix-vue-select-item-text");async function Nd(Gd){await nextTick$1(),!(Gd!=null&&Gd.defaultPrevented)&&(ud.value||(dd.onValueChange(ed.value),dd.onOpenChange(!1)))}async function Ld(Gd){var Yd;await nextTick$1(),!Gd.defaultPrevented&&(ud.value?(Yd=hd.onItemLeave)==null||Yd.call(hd):Gd.currentTarget.focus({preventScroll:!0}))}async function Ud(Gd){var Yd;await nextTick$1(),!Gd.defaultPrevented&&Gd.currentTarget===me$4()&&((Yd=hd.onItemLeave)==null||Yd.call(hd))}async function jd(Gd){var Yd;await nextTick$1(),!(Gd.defaultPrevented||((Yd=hd.searchRef)==null?void 0:Yd.value)!==""&&Gd.key===" ")&&(jf.includes(Gd.key)&&Nd(),Gd.key===" "&&Gd.preventDefault())}if(ed.value==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return onMounted(()=>{gd.value&&hd.itemRefCallback(gd.value,ed.value,ed.disabled)}),Qf({value:ed.value,disabled:ud,textId:wd,isSelected:yd,onItemTextChange:Gd=>{Cd.value=((Cd.value||(Gd==null?void 0:Gd.textContent))??"").trim()}}),(Gd,Yd)=>(openBlock(),createBlock(unref(O$4),{ref:unref(md),role:"option","data-radix-vue-collection-item":"","aria-labelledby":unref(wd),"data-highlighted":vd.value?"":void 0,"aria-selected":yd.value,"data-state":yd.value?"checked":"unchecked","aria-disabled":unref(ud)||void 0,"data-disabled":unref(ud)?"":void 0,tabindex:unref(ud)?void 0:-1,as:Gd.as,"as-child":Gd.asChild,onFocus:Yd[0]||(Yd[0]=zd=>vd.value=!0),onBlur:Yd[1]||(Yd[1]=zd=>vd.value=!1),onPointerup:Nd,onPointerdown:Yd[2]||(Yd[2]=zd=>{zd.currentTarget.focus({preventScroll:!0})}),onTouchend:Yd[3]||(Yd[3]=withModifiers(()=>{},["prevent","stop"])),onPointermove:Ld,onPointerleave:Ud,onKeydown:jd},{default:withCtx(()=>[renderSlot(Gd.$slots,"default")]),_:3},8,["aria-labelledby","data-highlighted","aria-selected","data-state","aria-disabled","data-disabled","tabindex","as","as-child"]))}}),Yy=defineComponent({__name:"SelectItemIndicator",props:{asChild:{type:Boolean},as:{default:"span"}},setup(Ra){const ed=Ra,ud=Os$4();return(dd,hd)=>unref(ud).isSelected.value?(openBlock(),createBlock(unref(O$4),mergeProps({key:0,"aria-hidden":"true"},ed),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16)):createCommentVNode("",!0)}}),Jy=defineComponent({inheritAttrs:!1,__name:"SelectItemText",props:{asChild:{type:Boolean},as:{default:"span"}},setup(Ra){const ed=Ra,ud=xt$1(),dd=St$4(zt$1),hd=Kf(),md=Os$4(),{forwardRef:gd,currentElement:yd}=R$6(),vd=computed(()=>{var Cd;return h$2("option",{key:md.value,value:md.value,disabled:md.disabled.value,textContent:(Cd=yd.value)==null?void 0:Cd.textContent})});return onMounted(()=>{yd.value&&(md.onItemTextChange(yd.value),dd.itemTextRefCallback(yd.value,md.value,md.disabled.value),hd.onNativeOptionAdd(vd.value))}),onBeforeUnmount(()=>{hd.onNativeOptionRemove(vd.value)}),(Cd,wd)=>(openBlock(),createElementBlock(Fragment,null,[createVNode(unref(O$4),mergeProps({id:unref(md).textId,ref:unref(gd)},{...ed,...Cd.$attrs},{"data-item-text":""}),{default:withCtx(()=>[renderSlot(Cd.$slots,"default")]),_:3},16,["id"]),unref(md).isSelected.value&&unref(ud).valueElement.value&&!unref(ud).valueElementHasChildren.value?(openBlock(),createBlock(Teleport,{key:0,to:unref(ud).valueElement.value},[renderSlot(Cd.$slots,"default")],8,["to"])):createCommentVNode("",!0)],64))}}),Qy=defineComponent({__name:"SelectViewport",props:{nonce:{},asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra,{nonce:ud}=toRefs(ed),dd=Ja(ud),hd=St$4(zt$1),md=hd.position==="item-aligned"?Io$2():void 0,{forwardRef:gd,currentElement:yd}=R$6();onMounted(()=>{hd==null||hd.onViewportChange(yd.value)});const vd=ref$1(0);function Cd(wd){const Nd=wd.currentTarget,{shouldExpandOnScrollRef:Ld,contentWrapper:Ud}=md??{};if(Ld!=null&&Ld.value&&Ud!=null&&Ud.value){const jd=Math.abs(vd.value-Nd.scrollTop);if(jd>0){const Gd=window.innerHeight-qe$3*2,Yd=Number.parseFloat(Ud.value.style.minHeight),zd=Number.parseFloat(Ud.value.style.height),qd=Math.max(Yd,zd);if(qd0?Jd:0,Ud.value.style.justifyContent="flex-end")}}}vd.value=Nd.scrollTop}return(wd,Nd)=>(openBlock(),createElementBlock(Fragment,null,[createVNode(unref(O$4),mergeProps({ref:unref(gd),"data-radix-select-viewport":"",role:"presentation"},{...wd.$attrs,...ed},{style:{position:"relative",flex:1,overflow:"hidden auto"},onScroll:Cd}),{default:withCtx(()=>[renderSlot(wd.$slots,"default")]),_:3},16),createVNode(unref(O$4),{as:"style",nonce:unref(dd)},{default:withCtx(()=>[createTextVNode(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-radix-select-viewport] { scrollbar-width:none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } [data-radix-select-viewport]::-webkit-scrollbar { display: none; } ")]),_:1},8,["nonce"])],64))}}),ks$2=defineComponent({__name:"SelectScrollButtonImpl",emits:["autoScroll"],setup(Ra,{emit:ed}){const ud=ed,{injectCollection:dd}=Fe$5(),hd=dd(),md=St$4(zt$1),gd=ref$1(null);function yd(){gd.value!==null&&(window.clearInterval(gd.value),gd.value=null)}watchEffect(()=>{const wd=hd.value.find(Nd=>Nd===me$4());wd==null||wd.scrollIntoView({block:"nearest"})});function vd(){gd.value===null&&(gd.value=window.setInterval(()=>{ud("autoScroll")},50))}function Cd(){var wd;(wd=md.onItemLeave)==null||wd.call(md),gd.value===null&&(gd.value=window.setInterval(()=>{ud("autoScroll")},50))}return onBeforeUnmount(()=>yd()),(wd,Nd)=>{var Ld;return openBlock(),createBlock(unref(O$4),mergeProps({"aria-hidden":"true",style:{flexShrink:0}},(Ld=wd.$parent)==null?void 0:Ld.$props,{onPointerdown:vd,onPointermove:Cd,onPointerleave:Nd[0]||(Nd[0]=()=>{yd()})}),{default:withCtx(()=>[renderSlot(wd.$slots,"default")]),_:3},16)}}}),eg=defineComponent({__name:"SelectScrollUpButton",props:{asChild:{type:Boolean},as:{}},setup(Ra){const ed=St$4(zt$1),ud=ed.position==="item-aligned"?Io$2():void 0,{forwardRef:dd,currentElement:hd}=R$6(),md=ref$1(!1);return watchEffect(gd=>{var yd,vd;if((yd=ed.viewport)!=null&&yd.value&&(vd=ed.isPositioned)!=null&&vd.value){let Cd=function(){md.value=wd.scrollTop>0};const wd=ed.viewport.value;Cd(),wd.addEventListener("scroll",Cd),gd(()=>wd.removeEventListener("scroll",Cd))}}),watch(hd,()=>{hd.value&&(ud==null||ud.onScrollButtonChange(hd.value))}),(gd,yd)=>md.value?(openBlock(),createBlock(ks$2,{key:0,ref:unref(dd),onAutoScroll:yd[0]||(yd[0]=()=>{const{viewport:vd,selectedItem:Cd}=unref(ed);vd!=null&&vd.value&&Cd!=null&&Cd.value&&(vd.value.scrollTop=vd.value.scrollTop-Cd.value.offsetHeight)})},{default:withCtx(()=>[renderSlot(gd.$slots,"default")]),_:3},512)):createCommentVNode("",!0)}}),tg=defineComponent({__name:"SelectScrollDownButton",props:{asChild:{type:Boolean},as:{}},setup(Ra){const ed=St$4(zt$1),ud=ed.position==="item-aligned"?Io$2():void 0,{forwardRef:dd,currentElement:hd}=R$6(),md=ref$1(!1);return watchEffect(gd=>{var yd,vd;if((yd=ed.viewport)!=null&&yd.value&&(vd=ed.isPositioned)!=null&&vd.value){let Cd=function(){const Nd=wd.scrollHeight-wd.clientHeight;md.value=Math.ceil(wd.scrollTop)wd.removeEventListener("scroll",Cd))}}),watch(hd,()=>{hd.value&&(ud==null||ud.onScrollButtonChange(hd.value))}),(gd,yd)=>md.value?(openBlock(),createBlock(ks$2,{key:0,ref:unref(dd),onAutoScroll:yd[0]||(yd[0]=()=>{const{viewport:vd,selectedItem:Cd}=unref(ed);vd!=null&&vd.value&&Cd!=null&&Cd.value&&(vd.value.scrollTop=vd.value.scrollTop+Cd.value.offsetHeight)})},{default:withCtx(()=>[renderSlot(gd.$slots,"default")]),_:3},512)):createCommentVNode("",!0)}}),ag$1=defineComponent({__name:"SelectValue",props:{placeholder:{default:""},asChild:{type:Boolean},as:{default:"span"}},setup(Ra){const{forwardRef:ed,currentElement:ud}=R$6(),dd=xt$1(),hd=useSlots();return onBeforeMount(()=>{var md;const gd=!!qa((md=hd==null?void 0:hd.default)==null?void 0:md.call(hd)).length;dd.onValueElementHasChildrenChange(gd)}),onMounted(()=>{dd.valueElement=ud}),(md,gd)=>(openBlock(),createBlock(unref(O$4),{ref:unref(ed),as:md.as,"as-child":md.asChild,style:{pointerEvents:"none"}},{default:withCtx(()=>{var yd;return[unref(As$3)((yd=unref(dd).modelValue)==null?void 0:yd.value)?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(md.placeholder),1)],64)):renderSlot(md.$slots,"default",{key:1})]}),_:3},8,["as","as-child"]))}}),ng=defineComponent({__name:"SelectIcon",props:{asChild:{type:Boolean},as:{default:"span"}},setup(Ra){return(ed,ud)=>(openBlock(),createBlock(unref(O$4),{"aria-hidden":"true",as:ed.as,"as-child":ed.asChild},{default:withCtx(()=>[renderSlot(ed.$slots,"default",{},()=>[createTextVNode("▼")])]),_:3},8,["as","as-child"]))}}),Ms$1=defineComponent({__name:"BaseSeparator",props:{orientation:{default:"horizontal"},decorative:{type:Boolean},asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra,ud=["horizontal","vertical"];function dd(yd){return ud.includes(yd)}const hd=computed(()=>dd(ed.orientation)?ed.orientation:"horizontal"),md=computed(()=>hd.value==="vertical"?ed.orientation:void 0),gd=computed(()=>ed.decorative?{role:"none"}:{"aria-orientation":md.value,role:"separator"});return(yd,vd)=>(openBlock(),createBlock(unref(O$4),mergeProps({as:yd.as,"as-child":yd.asChild,"data-orientation":hd.value},gd.value),{default:withCtx(()=>[renderSlot(yd.$slots,"default")]),_:3},16,["as","as-child","data-orientation"]))}}),ap$3=defineComponent({__name:"Separator",props:{orientation:{default:"horizontal"},decorative:{type:Boolean},asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createBlock(Ms$1,normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}});function xp$1(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}xp$1();const Kp$1=["name","disabled","required","value","checked","data-state","data-disabled"],[Hp$1,Wp$1]=te$5("SwitchRoot"),gg$1=defineComponent({__name:"SwitchRoot",props:{defaultChecked:{type:Boolean},checked:{type:Boolean,default:void 0},disabled:{type:Boolean},required:{type:Boolean},name:{},id:{},value:{default:"on"},asChild:{type:Boolean},as:{default:"button"}},emits:["update:checked"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,{disabled:hd}=toRefs(ud),md=ne$5(ud,"checked",dd,{defaultValue:ud.defaultChecked,passive:ud.checked===void 0});function gd(){hd.value||(md.value=!md.value)}const{forwardRef:yd,currentElement:vd}=R$6(),Cd=at$6(vd),wd=computed(()=>{var Nd;return ud.id&&vd.value?(Nd=document.querySelector(`[for="${ud.id}"]`))==null?void 0:Nd.innerText:void 0});return Wp$1({checked:md,toggleCheck:gd,disabled:hd}),(Nd,Ld)=>(openBlock(),createElementBlock(Fragment,null,[createVNode(unref(O$4),mergeProps(Nd.$attrs,{id:Nd.id,ref:unref(yd),role:"switch",type:Nd.as==="button"?"button":void 0,value:Nd.value,"aria-label":Nd.$attrs["aria-label"]||wd.value,"aria-checked":unref(md),"aria-required":Nd.required,"data-state":unref(md)?"checked":"unchecked","data-disabled":unref(hd)?"":void 0,"as-child":Nd.asChild,as:Nd.as,disabled:unref(hd),onClick:gd,onKeydown:withKeys(withModifiers(gd,["prevent"]),["enter"])}),{default:withCtx(()=>[renderSlot(Nd.$slots,"default",{checked:unref(md)})]),_:3},16,["id","type","value","aria-label","aria-checked","aria-required","data-state","data-disabled","as-child","as","disabled","onKeydown"]),unref(Cd)?(openBlock(),createElementBlock("input",{key:0,type:"checkbox",name:Nd.name,tabindex:"-1","aria-hidden":"true",disabled:unref(hd),required:Nd.required,value:Nd.value,checked:!!unref(md),"data-state":unref(md)?"checked":"unchecked","data-disabled":unref(hd)?"":void 0,style:{transform:"translateX(-100%)",position:"absolute",pointerEvents:"none",opacity:0,margin:0}},null,8,Kp$1)):createCommentVNode("",!0)],64))}}),bg$1=defineComponent({__name:"SwitchThumb",props:{asChild:{type:Boolean},as:{default:"span"}},setup(Ra){const ed=Hp$1();return R$6(),(ud,dd)=>{var hd;return openBlock(),createBlock(unref(O$4),{"data-state":(hd=unref(ed).checked)!=null&&hd.value?"checked":"unchecked","data-disabled":unref(ed).disabled.value?"":void 0,"as-child":ud.asChild,as:ud.as},{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},8,["data-state","data-disabled","as-child","as"])}}}),[vn$3,jp$1]=te$5("TabsRoot"),Cg=defineComponent({__name:"TabsRoot",props:{defaultValue:{},orientation:{default:"horizontal"},dir:{},activationMode:{default:"automatic"},modelValue:{},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,{orientation:hd,dir:md}=toRefs(ud),gd=we$5(md);R$6();const yd=ne$5(ud,"modelValue",dd,{defaultValue:ud.defaultValue,passive:ud.modelValue===void 0}),vd=ref$1();return jp$1({modelValue:yd,changeModelValue:Cd=>{yd.value=Cd},orientation:hd,dir:gd,activationMode:ud.activationMode,baseId:ge$7(void 0,"radix-vue-tabs"),tabsList:vd}),(Cd,wd)=>(openBlock(),createBlock(unref(O$4),{dir:unref(gd),"data-orientation":unref(hd),"as-child":Cd.asChild,as:Cd.as},{default:withCtx(()=>[renderSlot(Cd.$slots,"default",{modelValue:unref(yd)})]),_:3},8,["dir","data-orientation","as-child","as"]))}}),wg=defineComponent({__name:"TabsList",props:{loop:{type:Boolean,default:!0},asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra,{loop:ud}=toRefs(ed),{forwardRef:dd,currentElement:hd}=R$6(),md=vn$3();return md.tabsList=hd,(gd,yd)=>(openBlock(),createBlock(unref(Ft$4),{"as-child":"",orientation:unref(md).orientation.value,dir:unref(md).dir.value,loop:unref(ud)},{default:withCtx(()=>[createVNode(unref(O$4),{ref:unref(dd),role:"tablist","as-child":gd.asChild,as:gd.as,"aria-orientation":unref(md).orientation.value},{default:withCtx(()=>[renderSlot(gd.$slots,"default")]),_:3},8,["as-child","as","aria-orientation"])]),_:3},8,["orientation","dir","loop"]))}});function ir$4(Ra,ed){return`${Ra}-trigger-${ed}`}function ur$3(Ra,ed){return`${Ra}-content-${ed}`}const _g=defineComponent({__name:"TabsContent",props:{value:{},forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra,{forwardRef:ud}=R$6(),dd=vn$3(),hd=computed(()=>ir$4(dd.baseId,ed.value)),md=computed(()=>ur$3(dd.baseId,ed.value)),gd=computed(()=>ed.value===dd.modelValue.value),yd=ref$1(gd.value);return onMounted(()=>{requestAnimationFrame(()=>{yd.value=!1})}),(vd,Cd)=>(openBlock(),createBlock(unref(Pe$6),{present:gd.value,"force-mount":""},{default:withCtx(({present:wd})=>[createVNode(unref(O$4),{id:md.value,ref:unref(ud),"as-child":vd.asChild,as:vd.as,role:"tabpanel","data-state":gd.value?"active":"inactive","data-orientation":unref(dd).orientation.value,"aria-labelledby":hd.value,hidden:!wd.value,tabindex:"0",style:normalizeStyle({animationDuration:yd.value?"0s":void 0})},{default:withCtx(()=>[vd.forceMount||gd.value?renderSlot(vd.$slots,"default",{key:0}):createCommentVNode("",!0)]),_:2},1032,["id","as-child","as","data-state","data-orientation","aria-labelledby","hidden","style"])]),_:3},8,["present"]))}}),xg=defineComponent({__name:"TabsTrigger",props:{value:{},disabled:{type:Boolean,default:!1},asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const ed=Ra,{forwardRef:ud}=R$6(),dd=vn$3(),hd=computed(()=>ir$4(dd.baseId,ed.value)),md=computed(()=>ur$3(dd.baseId,ed.value)),gd=computed(()=>ed.value===dd.modelValue.value);return(yd,vd)=>(openBlock(),createBlock(unref(Nt$4),{"as-child":"",focusable:!yd.disabled,active:gd.value},{default:withCtx(()=>[createVNode(unref(O$4),{id:hd.value,ref:unref(ud),role:"tab",type:yd.as==="button"?"button":void 0,as:yd.as,"as-child":yd.asChild,"aria-selected":gd.value?"true":"false","aria-controls":md.value,"data-state":gd.value?"active":"inactive",disabled:yd.disabled,"data-disabled":yd.disabled?"":void 0,"data-orientation":unref(dd).orientation.value,onMousedown:vd[0]||(vd[0]=withModifiers(Cd=>{!yd.disabled&&Cd.ctrlKey===!1?unref(dd).changeModelValue(yd.value):Cd.preventDefault()},["left"])),onKeydown:vd[1]||(vd[1]=withKeys(Cd=>unref(dd).changeModelValue(yd.value),["enter","space"])),onFocus:vd[2]||(vd[2]=()=>{const Cd=unref(dd).activationMode!=="manual";!gd.value&&!yd.disabled&&Cd&&unref(dd).changeModelValue(yd.value)})},{default:withCtx(()=>[renderSlot(yd.$slots,"default")]),_:3},8,["id","type","as","as-child","aria-selected","aria-controls","data-state","disabled","data-disabled","data-orientation"])]),_:3},8,["focusable","active"]))}}),vr$3="tooltip.open",[Mo$4,fv]=te$5("TooltipProvider"),Hg=defineComponent({inheritAttrs:!1,__name:"TooltipProvider",props:{delayDuration:{default:700},skipDelayDuration:{default:300},disableHoverableContent:{type:Boolean,default:!1},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean,default:!1}},setup(Ra){const ed=Ra,{delayDuration:ud,skipDelayDuration:dd,disableHoverableContent:hd,disableClosingTrigger:md,ignoreNonKeyboardFocus:gd,disabled:yd}=toRefs(ed);R$6();const vd=ref$1(!0),Cd=ref$1(!1),{start:wd,stop:Nd}=Un$4(()=>{vd.value=!0},dd,{immediate:!1});return fv({isOpenDelayed:vd,delayDuration:ud,onOpen(){Nd(),vd.value=!1},onClose(){wd()},isPointerInTransitRef:Cd,disableHoverableContent:hd,disableClosingTrigger:md,disabled:yd,ignoreNonKeyboardFocus:gd}),(Ld,Ud)=>renderSlot(Ld.$slots,"default")}}),[yn$4,pv]=te$5("TooltipRoot"),Wg=defineComponent({__name:"TooltipRoot",props:{defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},delayDuration:{default:void 0},disableHoverableContent:{type:Boolean,default:void 0},disableClosingTrigger:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},ignoreNonKeyboardFocus:{type:Boolean,default:void 0}},emits:["update:open"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed;R$6();const hd=Mo$4(),md=computed(()=>ud.disableHoverableContent??hd.disableHoverableContent.value),gd=computed(()=>ud.disableClosingTrigger??hd.disableClosingTrigger.value),yd=computed(()=>ud.disabled??hd.disabled.value),vd=computed(()=>ud.delayDuration??hd.delayDuration.value),Cd=computed(()=>ud.ignoreNonKeyboardFocus??hd.ignoreNonKeyboardFocus.value),wd=ne$5(ud,"open",dd,{defaultValue:ud.defaultOpen,passive:ud.open===void 0});watch(wd,Wd=>{hd.onClose&&(Wd?(hd.onOpen(),document.dispatchEvent(new CustomEvent(vr$3))):hd.onClose())});const Nd=ref$1(!1),Ld=ref$1(),Ud=computed(()=>wd.value?Nd.value?"delayed-open":"instant-open":"closed"),{start:jd,stop:Gd}=Un$4(()=>{Nd.value=!0,wd.value=!0},vd,{immediate:!1});function Yd(){Gd(),Nd.value=!1,wd.value=!0}function zd(){Gd(),wd.value=!1}function qd(){jd()}return pv({contentId:"",open:wd,stateAttribute:Ud,trigger:Ld,onTriggerChange(Wd){Ld.value=Wd},onTriggerEnter(){hd.isOpenDelayed.value?qd():Yd()},onTriggerLeave(){md.value?zd():Gd()},onOpen:Yd,onClose:zd,disableHoverableContent:md,disableClosingTrigger:gd,disabled:yd,ignoreNonKeyboardFocus:Cd}),(Wd,Xd)=>(openBlock(),createBlock(unref(kt$4),null,{default:withCtx(()=>[renderSlot(Wd.$slots,"default",{open:unref(wd)})]),_:3}))}}),jg=defineComponent({__name:"TooltipTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const ed=Ra,ud=yn$4(),dd=Mo$4();ud.contentId||(ud.contentId=ge$7(void 0,"radix-vue-tooltip-content"));const{forwardRef:hd,currentElement:md}=R$6(),gd=ref$1(!1),yd=ref$1(!1),vd=computed(()=>ud.disabled.value?{}:{click:Gd,focus:Ud,pointermove:Nd,pointerleave:Ld,pointerdown:wd,blur:jd});onMounted(()=>{ud.onTriggerChange(md.value)});function Cd(){setTimeout(()=>{gd.value=!1},1)}function wd(){gd.value=!0,document.addEventListener("pointerup",Cd,{once:!0})}function Nd(Yd){Yd.pointerType!=="touch"&&!yd.value&&!dd.isPointerInTransitRef.value&&(ud.onTriggerEnter(),yd.value=!0)}function Ld(){ud.onTriggerLeave(),yd.value=!1}function Ud(Yd){var zd,qd;gd.value||ud.ignoreNonKeyboardFocus.value&&!((qd=(zd=Yd.target).matches)!=null&&qd.call(zd,":focus-visible"))||ud.onOpen()}function jd(){ud.onClose()}function Gd(){ud.disableClosingTrigger.value||ud.onClose()}return(Yd,zd)=>(openBlock(),createBlock(unref(Mt$4),{"as-child":""},{default:withCtx(()=>[createVNode(unref(O$4),mergeProps({ref:unref(hd),"aria-describedby":unref(ud).open.value?unref(ud).contentId:void 0,"data-state":unref(ud).stateAttribute.value,as:Yd.as,"as-child":ed.asChild,"data-grace-area-trigger":""},toHandlers(vd.value)),{default:withCtx(()=>[renderSlot(Yd.$slots,"default")]),_:3},16,["aria-describedby","data-state","as","as-child"])]),_:3}))}}),mr$3=defineComponent({__name:"TooltipContentImpl",props:{ariaLabel:{},asChild:{type:Boolean},as:{},side:{default:"top"},sideOffset:{default:0},align:{default:"center"},alignOffset:{},avoidCollisions:{type:Boolean,default:!0},collisionBoundary:{default:()=>[]},collisionPadding:{default:0},arrowPadding:{default:0},sticky:{default:"partial"},hideWhenDetached:{type:Boolean,default:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=yn$4(),{forwardRef:md}=R$6(),gd=useSlots(),yd=computed(()=>{var wd;return(wd=gd.default)==null?void 0:wd.call(gd)}),vd=computed(()=>{var wd;if(ud.ariaLabel)return ud.ariaLabel;let Nd="";function Ld(Ud){typeof Ud.children=="string"&&Ud.type!==Comment$2?Nd+=Ud.children:Array.isArray(Ud.children)&&Ud.children.forEach(jd=>Ld(jd))}return(wd=yd.value)==null||wd.forEach(Ud=>Ld(Ud)),Nd}),Cd=computed(()=>{const{ariaLabel:wd,...Nd}=ud;return Nd});return onMounted(()=>{He$4(window,"scroll",wd=>{const Nd=wd.target;Nd!=null&&Nd.contains(hd.trigger.value)&&hd.onClose()}),He$4(window,vr$3,hd.onClose)}),(wd,Nd)=>(openBlock(),createBlock(unref(Ct$4),{"as-child":"","disable-outside-pointer-events":!1,onEscapeKeyDown:Nd[0]||(Nd[0]=Ld=>dd("escapeKeyDown",Ld)),onPointerDownOutside:Nd[1]||(Nd[1]=Ld=>{var Ud;unref(hd).disableClosingTrigger.value&&(Ud=unref(hd).trigger.value)!=null&&Ud.contains(Ld.target)&&Ld.preventDefault(),dd("pointerDownOutside",Ld)}),onFocusOutside:Nd[2]||(Nd[2]=withModifiers(()=>{},["prevent"])),onDismiss:Nd[3]||(Nd[3]=Ld=>unref(hd).onClose())},{default:withCtx(()=>[createVNode(unref(It$3),mergeProps({ref:unref(md),"data-state":unref(hd).stateAttribute.value},{...wd.$attrs,...Cd.value},{style:{"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),{default:withCtx(()=>[renderSlot(wd.$slots,"default"),createVNode(unref(Jt$4),{id:unref(hd).contentId,role:"tooltip"},{default:withCtx(()=>[createTextVNode(toDisplayString(vd.value),1)]),_:1},8,["id"])]),_:3},16,["data-state"])]),_:3}))}}),vv=defineComponent({__name:"TooltipContentHoverable",props:{ariaLabel:{},asChild:{type:Boolean},as:{},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean}},setup(Ra){const ed=Ot$3(Ra),{forwardRef:ud,currentElement:dd}=R$6(),{trigger:hd,onClose:md}=yn$4(),gd=Mo$4(),{isPointerInTransit:yd,onPointerExit:vd}=Fl$3(hd,dd);return gd.isPointerInTransitRef=yd,vd(()=>{md()}),(Cd,wd)=>(openBlock(),createBlock(mr$3,mergeProps({ref:unref(ud)},unref(ed)),{default:withCtx(()=>[renderSlot(Cd.$slots,"default")]),_:3},16))}}),Ug=defineComponent({__name:"TooltipContent",props:{forceMount:{type:Boolean},ariaLabel:{},asChild:{type:Boolean},as:{},side:{default:"top"},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean}},emits:["escapeKeyDown","pointerDownOutside"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=yn$4(),md=Se$6(ud,dd),{forwardRef:gd}=R$6();return(yd,vd)=>(openBlock(),createBlock(unref(Pe$6),{present:yd.forceMount||unref(hd).open.value},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(hd).disableHoverableContent.value?mr$3:vv),mergeProps({ref:unref(gd)},unref(md)),{default:withCtx(()=>[renderSlot(yd.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),qg=defineComponent({__name:"TooltipPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createBlock(unref(rt$3),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),_sfc_main$1r=defineComponent({__name:"AlertDialog",props:{open:{type:Boolean},defaultOpen:{type:Boolean}},emits:["update:open"],setup(Ra,{emit:ed}){const hd=Se$6(Ra,ed);return(md,gd)=>(openBlock(),createBlock(unref(Tv),normalizeProps(guardReactiveProps(unref(hd))),{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},16))}});function r$2(Ra){var ed,ud,dd="";if(typeof Ra=="string"||typeof Ra=="number")dd+=Ra;else if(typeof Ra=="object")if(Array.isArray(Ra)){var hd=Ra.length;for(ed=0;ed{const ed=createClassMap(Ra),{conflictingClassGroups:ud,conflictingClassGroupModifiers:dd}=Ra;return{getClassGroupId:gd=>{const yd=gd.split(CLASS_PART_SEPARATOR);return yd[0]===""&&yd.length!==1&&yd.shift(),getGroupRecursive(yd,ed)||getGroupIdForArbitraryProperty(gd)},getConflictingClassGroupIds:(gd,yd)=>{const vd=ud[gd]||[];return yd&&dd[gd]?[...vd,...dd[gd]]:vd}}},getGroupRecursive=(Ra,ed)=>{var gd;if(Ra.length===0)return ed.classGroupId;const ud=Ra[0],dd=ed.nextPart.get(ud),hd=dd?getGroupRecursive(Ra.slice(1),dd):void 0;if(hd)return hd;if(ed.validators.length===0)return;const md=Ra.join(CLASS_PART_SEPARATOR);return(gd=ed.validators.find(({validator:yd})=>yd(md)))==null?void 0:gd.classGroupId},arbitraryPropertyRegex=/^\[(.+)\]$/,getGroupIdForArbitraryProperty=Ra=>{if(arbitraryPropertyRegex.test(Ra)){const ed=arbitraryPropertyRegex.exec(Ra)[1],ud=ed==null?void 0:ed.substring(0,ed.indexOf(":"));if(ud)return"arbitrary.."+ud}},createClassMap=Ra=>{const{theme:ed,prefix:ud}=Ra,dd={nextPart:new Map,validators:[]};return getPrefixedClassGroupEntries(Object.entries(Ra.classGroups),ud).forEach(([md,gd])=>{processClassesRecursively(gd,dd,md,ed)}),dd},processClassesRecursively=(Ra,ed,ud,dd)=>{Ra.forEach(hd=>{if(typeof hd=="string"){const md=hd===""?ed:getPart(ed,hd);md.classGroupId=ud;return}if(typeof hd=="function"){if(isThemeGetter(hd)){processClassesRecursively(hd(dd),ed,ud,dd);return}ed.validators.push({validator:hd,classGroupId:ud});return}Object.entries(hd).forEach(([md,gd])=>{processClassesRecursively(gd,getPart(ed,md),ud,dd)})})},getPart=(Ra,ed)=>{let ud=Ra;return ed.split(CLASS_PART_SEPARATOR).forEach(dd=>{ud.nextPart.has(dd)||ud.nextPart.set(dd,{nextPart:new Map,validators:[]}),ud=ud.nextPart.get(dd)}),ud},isThemeGetter=Ra=>Ra.isThemeGetter,getPrefixedClassGroupEntries=(Ra,ed)=>ed?Ra.map(([ud,dd])=>{const hd=dd.map(md=>typeof md=="string"?ed+md:typeof md=="object"?Object.fromEntries(Object.entries(md).map(([gd,yd])=>[ed+gd,yd])):md);return[ud,hd]}):Ra,createLruCache=Ra=>{if(Ra<1)return{get:()=>{},set:()=>{}};let ed=0,ud=new Map,dd=new Map;const hd=(md,gd)=>{ud.set(md,gd),ed++,ed>Ra&&(ed=0,dd=ud,ud=new Map)};return{get(md){let gd=ud.get(md);if(gd!==void 0)return gd;if((gd=dd.get(md))!==void 0)return hd(md,gd),gd},set(md,gd){ud.has(md)?ud.set(md,gd):hd(md,gd)}}},IMPORTANT_MODIFIER="!",createParseClassName=Ra=>{const{separator:ed,experimentalParseClassName:ud}=Ra,dd=ed.length===1,hd=ed[0],md=ed.length,gd=yd=>{const vd=[];let Cd=0,wd=0,Nd;for(let Yd=0;Ydwd?Nd-wd:void 0;return{modifiers:vd,hasImportantModifier:Ud,baseClassName:jd,maybePostfixModifierPosition:Gd}};return ud?yd=>ud({className:yd,parseClassName:gd}):gd},sortModifiers=Ra=>{if(Ra.length<=1)return Ra;const ed=[];let ud=[];return Ra.forEach(dd=>{dd[0]==="["?(ed.push(...ud.sort(),dd),ud=[]):ud.push(dd)}),ed.push(...ud.sort()),ed},createConfigUtils=Ra=>({cache:createLruCache(Ra.cacheSize),parseClassName:createParseClassName(Ra),...createClassGroupUtils(Ra)}),SPLIT_CLASSES_REGEX=/\s+/,mergeClassList=(Ra,ed)=>{const{parseClassName:ud,getClassGroupId:dd,getConflictingClassGroupIds:hd}=ed,md=[],gd=Ra.trim().split(SPLIT_CLASSES_REGEX);let yd="";for(let vd=gd.length-1;vd>=0;vd-=1){const Cd=gd[vd],{modifiers:wd,hasImportantModifier:Nd,baseClassName:Ld,maybePostfixModifierPosition:Ud}=ud(Cd);let jd=!!Ud,Gd=dd(jd?Ld.substring(0,Ud):Ld);if(!Gd){if(!jd){yd=Cd+(yd.length>0?" "+yd:yd);continue}if(Gd=dd(Ld),!Gd){yd=Cd+(yd.length>0?" "+yd:yd);continue}jd=!1}const Yd=sortModifiers(wd).join(":"),zd=Nd?Yd+IMPORTANT_MODIFIER:Yd,qd=zd+Gd;if(md.includes(qd))continue;md.push(qd);const Wd=hd(Gd,jd);for(let Xd=0;Xd0?" "+yd:yd)}return yd};function twJoin(){let Ra=0,ed,ud,dd="";for(;Ra{if(typeof Ra=="string")return Ra;let ed,ud="";for(let dd=0;ddNd(wd),Ra());return ud=createConfigUtils(Cd),dd=ud.cache.get,hd=ud.cache.set,md=yd,yd(vd)}function yd(vd){const Cd=dd(vd);if(Cd)return Cd;const wd=mergeClassList(vd,ud);return hd(vd,wd),wd}return function(){return md(twJoin.apply(null,arguments))}}const fromTheme=Ra=>{const ed=ud=>ud[Ra]||[];return ed.isThemeGetter=!0,ed},arbitraryValueRegex=/^\[(?:([a-z-]+):)?(.+)\]$/i,fractionRegex=/^\d+\/\d+$/,stringLengths=new Set(["px","full","screen"]),tshirtUnitRegex=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lengthUnitRegex=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,colorFunctionRegex=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,shadowRegex=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,imageRegex=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,isLength$1=Ra=>isNumber$3(Ra)||stringLengths.has(Ra)||fractionRegex.test(Ra),isArbitraryLength=Ra=>getIsArbitraryValue(Ra,"length",isLengthOnly),isNumber$3=Ra=>!!Ra&&!Number.isNaN(Number(Ra)),isArbitraryNumber=Ra=>getIsArbitraryValue(Ra,"number",isNumber$3),isInteger$2=Ra=>!!Ra&&Number.isInteger(Number(Ra)),isPercent=Ra=>Ra.endsWith("%")&&isNumber$3(Ra.slice(0,-1)),isArbitraryValue=Ra=>arbitraryValueRegex.test(Ra),isTshirtSize=Ra=>tshirtUnitRegex.test(Ra),sizeLabels=new Set(["length","size","percentage"]),isArbitrarySize=Ra=>getIsArbitraryValue(Ra,sizeLabels,isNever),isArbitraryPosition=Ra=>getIsArbitraryValue(Ra,"position",isNever),imageLabels=new Set(["image","url"]),isArbitraryImage=Ra=>getIsArbitraryValue(Ra,imageLabels,isImage),isArbitraryShadow=Ra=>getIsArbitraryValue(Ra,"",isShadow),isAny=()=>!0,getIsArbitraryValue=(Ra,ed,ud)=>{const dd=arbitraryValueRegex.exec(Ra);return dd?dd[1]?typeof ed=="string"?dd[1]===ed:ed.has(dd[1]):ud(dd[2]):!1},isLengthOnly=Ra=>lengthUnitRegex.test(Ra)&&!colorFunctionRegex.test(Ra),isNever=()=>!1,isShadow=Ra=>shadowRegex.test(Ra),isImage=Ra=>imageRegex.test(Ra),getDefaultConfig=()=>{const Ra=fromTheme("colors"),ed=fromTheme("spacing"),ud=fromTheme("blur"),dd=fromTheme("brightness"),hd=fromTheme("borderColor"),md=fromTheme("borderRadius"),gd=fromTheme("borderSpacing"),yd=fromTheme("borderWidth"),vd=fromTheme("contrast"),Cd=fromTheme("grayscale"),wd=fromTheme("hueRotate"),Nd=fromTheme("invert"),Ld=fromTheme("gap"),Ud=fromTheme("gradientColorStops"),jd=fromTheme("gradientColorStopPositions"),Gd=fromTheme("inset"),Yd=fromTheme("margin"),zd=fromTheme("opacity"),qd=fromTheme("padding"),Wd=fromTheme("saturate"),Xd=fromTheme("scale"),Jd=fromTheme("sepia"),Zd=fromTheme("skew"),mf=fromTheme("space"),xf=fromTheme("translate"),_f=()=>["auto","contain","none"],vf=()=>["auto","hidden","clip","visible","scroll"],gf=()=>["auto",isArbitraryValue,ed],Af=()=>[isArbitraryValue,ed],Df=()=>["",isLength$1,isArbitraryLength],Of=()=>["auto",isNumber$3,isArbitraryValue],Cf=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],If=()=>["solid","dashed","dotted","double","none"],Ff=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],sh=()=>["start","end","center","between","around","evenly","stretch"],Sh=()=>["","0",isArbitraryValue],yh=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Mh=()=>[isNumber$3,isArbitraryValue];return{cacheSize:500,separator:":",theme:{colors:[isAny],spacing:[isLength$1,isArbitraryLength],blur:["none","",isTshirtSize,isArbitraryValue],brightness:Mh(),borderColor:[Ra],borderRadius:["none","","full",isTshirtSize,isArbitraryValue],borderSpacing:Af(),borderWidth:Df(),contrast:Mh(),grayscale:Sh(),hueRotate:Mh(),invert:Sh(),gap:Af(),gradientColorStops:[Ra],gradientColorStopPositions:[isPercent,isArbitraryLength],inset:gf(),margin:gf(),opacity:Mh(),padding:Af(),saturate:Mh(),scale:Mh(),sepia:Sh(),skew:Mh(),space:Af(),translate:Af()},classGroups:{aspect:[{aspect:["auto","square","video",isArbitraryValue]}],container:["container"],columns:[{columns:[isTshirtSize]}],"break-after":[{"break-after":yh()}],"break-before":[{"break-before":yh()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Cf(),isArbitraryValue]}],overflow:[{overflow:vf()}],"overflow-x":[{"overflow-x":vf()}],"overflow-y":[{"overflow-y":vf()}],overscroll:[{overscroll:_f()}],"overscroll-x":[{"overscroll-x":_f()}],"overscroll-y":[{"overscroll-y":_f()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[Gd]}],"inset-x":[{"inset-x":[Gd]}],"inset-y":[{"inset-y":[Gd]}],start:[{start:[Gd]}],end:[{end:[Gd]}],top:[{top:[Gd]}],right:[{right:[Gd]}],bottom:[{bottom:[Gd]}],left:[{left:[Gd]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",isInteger$2,isArbitraryValue]}],basis:[{basis:gf()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",isArbitraryValue]}],grow:[{grow:Sh()}],shrink:[{shrink:Sh()}],order:[{order:["first","last","none",isInteger$2,isArbitraryValue]}],"grid-cols":[{"grid-cols":[isAny]}],"col-start-end":[{col:["auto",{span:["full",isInteger$2,isArbitraryValue]},isArbitraryValue]}],"col-start":[{"col-start":Of()}],"col-end":[{"col-end":Of()}],"grid-rows":[{"grid-rows":[isAny]}],"row-start-end":[{row:["auto",{span:[isInteger$2,isArbitraryValue]},isArbitraryValue]}],"row-start":[{"row-start":Of()}],"row-end":[{"row-end":Of()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",isArbitraryValue]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",isArbitraryValue]}],gap:[{gap:[Ld]}],"gap-x":[{"gap-x":[Ld]}],"gap-y":[{"gap-y":[Ld]}],"justify-content":[{justify:["normal",...sh()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...sh(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...sh(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[qd]}],px:[{px:[qd]}],py:[{py:[qd]}],ps:[{ps:[qd]}],pe:[{pe:[qd]}],pt:[{pt:[qd]}],pr:[{pr:[qd]}],pb:[{pb:[qd]}],pl:[{pl:[qd]}],m:[{m:[Yd]}],mx:[{mx:[Yd]}],my:[{my:[Yd]}],ms:[{ms:[Yd]}],me:[{me:[Yd]}],mt:[{mt:[Yd]}],mr:[{mr:[Yd]}],mb:[{mb:[Yd]}],ml:[{ml:[Yd]}],"space-x":[{"space-x":[mf]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[mf]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",isArbitraryValue,ed]}],"min-w":[{"min-w":[isArbitraryValue,ed,"min","max","fit"]}],"max-w":[{"max-w":[isArbitraryValue,ed,"none","full","min","max","fit","prose",{screen:[isTshirtSize]},isTshirtSize]}],h:[{h:[isArbitraryValue,ed,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[isArbitraryValue,ed,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[isArbitraryValue,ed,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[isArbitraryValue,ed,"auto","min","max","fit"]}],"font-size":[{text:["base",isTshirtSize,isArbitraryLength]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",isArbitraryNumber]}],"font-family":[{font:[isAny]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",isArbitraryValue]}],"line-clamp":[{"line-clamp":["none",isNumber$3,isArbitraryNumber]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",isLength$1,isArbitraryValue]}],"list-image":[{"list-image":["none",isArbitraryValue]}],"list-style-type":[{list:["none","disc","decimal",isArbitraryValue]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[Ra]}],"placeholder-opacity":[{"placeholder-opacity":[zd]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[Ra]}],"text-opacity":[{"text-opacity":[zd]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...If(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",isLength$1,isArbitraryLength]}],"underline-offset":[{"underline-offset":["auto",isLength$1,isArbitraryValue]}],"text-decoration-color":[{decoration:[Ra]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Af()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",isArbitraryValue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",isArbitraryValue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[zd]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Cf(),isArbitraryPosition]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",isArbitrarySize]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},isArbitraryImage]}],"bg-color":[{bg:[Ra]}],"gradient-from-pos":[{from:[jd]}],"gradient-via-pos":[{via:[jd]}],"gradient-to-pos":[{to:[jd]}],"gradient-from":[{from:[Ud]}],"gradient-via":[{via:[Ud]}],"gradient-to":[{to:[Ud]}],rounded:[{rounded:[md]}],"rounded-s":[{"rounded-s":[md]}],"rounded-e":[{"rounded-e":[md]}],"rounded-t":[{"rounded-t":[md]}],"rounded-r":[{"rounded-r":[md]}],"rounded-b":[{"rounded-b":[md]}],"rounded-l":[{"rounded-l":[md]}],"rounded-ss":[{"rounded-ss":[md]}],"rounded-se":[{"rounded-se":[md]}],"rounded-ee":[{"rounded-ee":[md]}],"rounded-es":[{"rounded-es":[md]}],"rounded-tl":[{"rounded-tl":[md]}],"rounded-tr":[{"rounded-tr":[md]}],"rounded-br":[{"rounded-br":[md]}],"rounded-bl":[{"rounded-bl":[md]}],"border-w":[{border:[yd]}],"border-w-x":[{"border-x":[yd]}],"border-w-y":[{"border-y":[yd]}],"border-w-s":[{"border-s":[yd]}],"border-w-e":[{"border-e":[yd]}],"border-w-t":[{"border-t":[yd]}],"border-w-r":[{"border-r":[yd]}],"border-w-b":[{"border-b":[yd]}],"border-w-l":[{"border-l":[yd]}],"border-opacity":[{"border-opacity":[zd]}],"border-style":[{border:[...If(),"hidden"]}],"divide-x":[{"divide-x":[yd]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[yd]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[zd]}],"divide-style":[{divide:If()}],"border-color":[{border:[hd]}],"border-color-x":[{"border-x":[hd]}],"border-color-y":[{"border-y":[hd]}],"border-color-s":[{"border-s":[hd]}],"border-color-e":[{"border-e":[hd]}],"border-color-t":[{"border-t":[hd]}],"border-color-r":[{"border-r":[hd]}],"border-color-b":[{"border-b":[hd]}],"border-color-l":[{"border-l":[hd]}],"divide-color":[{divide:[hd]}],"outline-style":[{outline:["",...If()]}],"outline-offset":[{"outline-offset":[isLength$1,isArbitraryValue]}],"outline-w":[{outline:[isLength$1,isArbitraryLength]}],"outline-color":[{outline:[Ra]}],"ring-w":[{ring:Df()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[Ra]}],"ring-opacity":[{"ring-opacity":[zd]}],"ring-offset-w":[{"ring-offset":[isLength$1,isArbitraryLength]}],"ring-offset-color":[{"ring-offset":[Ra]}],shadow:[{shadow:["","inner","none",isTshirtSize,isArbitraryShadow]}],"shadow-color":[{shadow:[isAny]}],opacity:[{opacity:[zd]}],"mix-blend":[{"mix-blend":[...Ff(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ff()}],filter:[{filter:["","none"]}],blur:[{blur:[ud]}],brightness:[{brightness:[dd]}],contrast:[{contrast:[vd]}],"drop-shadow":[{"drop-shadow":["","none",isTshirtSize,isArbitraryValue]}],grayscale:[{grayscale:[Cd]}],"hue-rotate":[{"hue-rotate":[wd]}],invert:[{invert:[Nd]}],saturate:[{saturate:[Wd]}],sepia:[{sepia:[Jd]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[ud]}],"backdrop-brightness":[{"backdrop-brightness":[dd]}],"backdrop-contrast":[{"backdrop-contrast":[vd]}],"backdrop-grayscale":[{"backdrop-grayscale":[Cd]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[wd]}],"backdrop-invert":[{"backdrop-invert":[Nd]}],"backdrop-opacity":[{"backdrop-opacity":[zd]}],"backdrop-saturate":[{"backdrop-saturate":[Wd]}],"backdrop-sepia":[{"backdrop-sepia":[Jd]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[gd]}],"border-spacing-x":[{"border-spacing-x":[gd]}],"border-spacing-y":[{"border-spacing-y":[gd]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",isArbitraryValue]}],duration:[{duration:Mh()}],ease:[{ease:["linear","in","out","in-out",isArbitraryValue]}],delay:[{delay:Mh()}],animate:[{animate:["none","spin","ping","pulse","bounce",isArbitraryValue]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[Xd]}],"scale-x":[{"scale-x":[Xd]}],"scale-y":[{"scale-y":[Xd]}],rotate:[{rotate:[isInteger$2,isArbitraryValue]}],"translate-x":[{"translate-x":[xf]}],"translate-y":[{"translate-y":[xf]}],"skew-x":[{"skew-x":[Zd]}],"skew-y":[{"skew-y":[Zd]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",isArbitraryValue]}],accent:[{accent:["auto",Ra]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",isArbitraryValue]}],"caret-color":[{caret:[Ra]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":Af()}],"scroll-mx":[{"scroll-mx":Af()}],"scroll-my":[{"scroll-my":Af()}],"scroll-ms":[{"scroll-ms":Af()}],"scroll-me":[{"scroll-me":Af()}],"scroll-mt":[{"scroll-mt":Af()}],"scroll-mr":[{"scroll-mr":Af()}],"scroll-mb":[{"scroll-mb":Af()}],"scroll-ml":[{"scroll-ml":Af()}],"scroll-p":[{"scroll-p":Af()}],"scroll-px":[{"scroll-px":Af()}],"scroll-py":[{"scroll-py":Af()}],"scroll-ps":[{"scroll-ps":Af()}],"scroll-pe":[{"scroll-pe":Af()}],"scroll-pt":[{"scroll-pt":Af()}],"scroll-pr":[{"scroll-pr":Af()}],"scroll-pb":[{"scroll-pb":Af()}],"scroll-pl":[{"scroll-pl":Af()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",isArbitraryValue]}],fill:[{fill:[Ra,"none"]}],"stroke-w":[{stroke:[isLength$1,isArbitraryLength,isArbitraryNumber]}],stroke:[{stroke:[Ra,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},twMerge=createTailwindMerge(getDefaultConfig);function cn$4(...Ra){return twMerge(clsx(Ra))}const _sfc_main$1q=defineComponent({__name:"AlertDialogContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=computed(()=>{const{class:gd,...yd}=ud;return yd}),md=Se$6(hd,dd);return(gd,yd)=>(openBlock(),createBlock(unref(Av),null,{default:withCtx(()=>[createVNode(unref(kv),{class:"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80"}),createVNode(unref(Ov),mergeProps(unref(md),{class:unref(cn$4)("fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",ud.class)}),{default:withCtx(()=>[renderSlot(gd.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),_sfc_main$1p=defineComponent({__name:"AlertDialogFooter",props:{class:{}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(cn$4)("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-x-2",ed.class))},[renderSlot(ud.$slots,"default")],2))}}),falsyToString=Ra=>typeof Ra=="boolean"?`${Ra}`:Ra===0?"0":Ra,cx$1=clsx,cva=(Ra,ed)=>ud=>{var dd;if((ed==null?void 0:ed.variants)==null)return cx$1(Ra,ud==null?void 0:ud.class,ud==null?void 0:ud.className);const{variants:hd,defaultVariants:md}=ed,gd=Object.keys(hd).map(Cd=>{const wd=ud==null?void 0:ud[Cd],Nd=md==null?void 0:md[Cd];if(wd===null)return null;const Ld=falsyToString(wd)||falsyToString(Nd);return hd[Cd][Ld]}),yd=ud&&Object.entries(ud).reduce((Cd,wd)=>{let[Nd,Ld]=wd;return Ld===void 0||(Cd[Nd]=Ld),Cd},{}),vd=ed==null||(dd=ed.compoundVariants)===null||dd===void 0?void 0:dd.reduce((Cd,wd)=>{let{class:Nd,className:Ld,...Ud}=wd;return Object.entries(Ud).every(jd=>{let[Gd,Yd]=jd;return Array.isArray(Yd)?Yd.includes({...md,...yd}[Gd]):{...md,...yd}[Gd]===Yd})?[...Cd,Nd,Ld]:Cd},[]);return cx$1(Ra,gd,vd,ud==null?void 0:ud.class,ud==null?void 0:ud.className)},_sfc_main$1o=defineComponent({__name:"Button",props:{variant:{},size:{},class:{},asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createBlock(unref(O$4),{as:ud.as,"as-child":ud.asChild,class:normalizeClass(unref(cn$4)(unref(buttonVariants)({variant:ud.variant,size:ud.size}),ed.class))},{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},8,["as","as-child","class"]))}}),buttonVariants=cva("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",xs:"h-7 rounded px-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),_sfc_main$1n=defineComponent({__name:"AlertDialogAction",props:{asChild:{type:Boolean},as:{},class:{}},setup(Ra){const ed=Ra,ud=computed(()=>{const{class:dd,...hd}=ed;return hd});return(dd,hd)=>(openBlock(),createBlock(unref(Nv),mergeProps(ud.value,{class:unref(cn$4)(unref(buttonVariants)(),ed.class)}),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$1m=defineComponent({__name:"AlertDialogCancel",props:{asChild:{type:Boolean},as:{},class:{}},setup(Ra){const ed=Ra,ud=computed(()=>{const{class:dd,...hd}=ed;return hd});return(dd,hd)=>(openBlock(),createBlock(unref(Mv),mergeProps(ud.value,{class:unref(cn$4)(unref(buttonVariants)({variant:"outline"}),"mt-2 sm:mt-0",ed.class)}),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$1l=defineComponent({__name:"AlertDialogHeader",props:{class:{}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(cn$4)("flex flex-col gap-y-2 text-center sm:text-left",ed.class))},[renderSlot(ud.$slots,"default")],2))}}),_sfc_main$1k=defineComponent({__name:"AlertDialogDescription",props:{asChild:{type:Boolean},as:{},class:{}},setup(Ra){const ed=Ra,ud=computed(()=>{const{class:dd,...hd}=ed;return hd});return(dd,hd)=>(openBlock(),createBlock(unref(Fv),mergeProps(ud.value,{class:unref(cn$4)("text-sm text-muted-foreground",ed.class)}),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$1j=defineComponent({__name:"AlertDialogTitle",props:{asChild:{type:Boolean},as:{},class:{}},setup(Ra){const ed=Ra,ud=computed(()=>{const{class:dd,...hd}=ed;return hd});return(dd,hd)=>(openBlock(),createBlock(unref(Vv),mergeProps(ud.value,{class:unref(cn$4)("text-lg font-semibold",ed.class)}),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16,["class"]))}}),_hoisted_1$f={key:0,class:"loading"},_sfc_main$1i=defineComponent({__name:"RunLoading",setup(Ra){const ed=ref$1(!0);return onMounted(()=>{setTimeout(()=>{ed.value=!1},100)}),(ud,dd)=>(openBlock(),createBlock(Transition$1,{name:"fade"},{default:withCtx(()=>[unref(ed)?(openBlock(),createElementBlock("div",_hoisted_1$f,dd[0]||(dd[0]=[createBaseVNode("strong",null,"致力于让 Markdown 编辑更简单",-1)]))):createCommentVNode("",!0)]),_:1}))}}),_export_sfc=(Ra,ed)=>{const ud=Ra.__vccOpts||Ra;for(const[dd,hd]of ed)ud[dd]=hd;return ud},__unplugin_components_13$1=_export_sfc(_sfc_main$1i,[["__scopeId","data-v-8781f9ec"]]),_sfc_main$1h=defineComponent({__name:"Dialog",props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(Ra,{emit:ed}){const hd=Se$6(Ra,ed);return(md,gd)=>(openBlock(),createBlock(unref(nu$4),normalizeProps(guardReactiveProps(unref(hd))),{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},16))}});/** +`))}return()=>md.value||hd.value||yd.value?h$2(ed.default({present:yd})[0],{ref:wd=>{const Nd=$e$4(wd);return typeof(Nd==null?void 0:Nd.hasAttribute)>"u"||(Nd!=null&&Nd.hasAttribute("data-radix-popper-content-wrapper")?gd.value=Nd.firstElementChild:gd.value=Nd),Nd}}):null}}),[ot$3,au$4]=te$5("DialogRoot"),nu$4=defineComponent({inheritAttrs:!1,__name:"DialogRoot",props:{open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:!1},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(Ra,{emit:ed}){const ud=Ra,dd=ne$5(ud,"open",ed,{defaultValue:ud.defaultOpen,passive:ud.open===void 0}),hd=ref$1(),md=ref$1(),{modal:gd}=toRefs(ud);return au$4({open:dd,modal:gd,openModal:()=>{dd.value=!0},onOpenChange:yd=>{dd.value=yd},onOpenToggle:()=>{dd.value=!dd.value},contentId:"",titleId:"",descriptionId:"",triggerElement:hd,contentElement:md}),(yd,vd)=>renderSlot(yd.$slots,"default",{open:unref(dd)})}}),ou$3=defineComponent({__name:"DialogTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const ed=Ra,ud=ot$3(),{forwardRef:dd,currentElement:hd}=R$6();return ud.contentId||(ud.contentId=ge$7(void 0,"radix-vue-dialog-content")),onMounted(()=>{ud.triggerElement.value=hd.value}),(md,gd)=>(openBlock(),createBlock(unref(O$4),mergeProps(ed,{ref:unref(dd),type:md.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":unref(ud).open.value||!1,"aria-controls":unref(ud).open.value?unref(ud).contentId:void 0,"data-state":unref(ud).open.value?"open":"closed",onClick:unref(ud).onOpenToggle}),{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},16,["type","aria-expanded","aria-controls","data-state","onClick"]))}}),rt$3=defineComponent({__name:"Teleport",props:{to:{default:"body"},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const ed=Ga$2();return(ud,dd)=>unref(ed)||ud.forceMount?(openBlock(),createBlock(Teleport,{key:0,to:ud.to,disabled:ud.disabled},[renderSlot(ud.$slots,"default")],8,["to","disabled"])):createCommentVNode("",!0)}}),Iv=defineComponent({__name:"DialogPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createBlock(unref(rt$3),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),lu$3="dismissableLayer.pointerDownOutside",su$3="dismissableLayer.focusOutside";function jl$3(Ra,ed){const ud=ed.closest("[data-dismissable-layer]"),dd=Ra.dataset.dismissableLayer===""?Ra:Ra.querySelector("[data-dismissable-layer]"),hd=Array.from(Ra.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(ud&&dd===ud||hd.indexOf(dd){});return watchEffect(gd=>{if(!Je$3)return;const yd=async Cd=>{const wd=Cd.target;if(ed!=null&&ed.value){if(jl$3(ed.value,wd)){hd.value=!1;return}if(Cd.target&&!hd.value){let Nd=function(){jt$3(lu$3,Ra,Ld)};const Ld={originalEvent:Cd};Cd.pointerType==="touch"?(dd.removeEventListener("click",md.value),md.value=Nd,dd.addEventListener("click",md.value,{once:!0})):Nd()}else dd.removeEventListener("click",md.value);hd.value=!1}},vd=window.setTimeout(()=>{dd.addEventListener("pointerdown",yd)},0);gd(()=>{window.clearTimeout(vd),dd.removeEventListener("pointerdown",yd),dd.removeEventListener("click",md.value)})}),{onPointerDownCapture:()=>hd.value=!0}}function Gl$3(Ra,ed){var ud;const dd=((ud=ed==null?void 0:ed.value)==null?void 0:ud.ownerDocument)??(globalThis==null?void 0:globalThis.document),hd=ref$1(!1);return watchEffect(md=>{if(!Je$3)return;const gd=async yd=>{ed!=null&&ed.value&&(await nextTick$1(),!(!ed.value||jl$3(ed.value,yd.target))&&yd.target&&!hd.value&&jt$3(su$3,Ra,{originalEvent:yd}))};dd.addEventListener("focusin",gd),md(()=>dd.removeEventListener("focusin",gd))}),{onFocusCapture:()=>hd.value=!0,onBlurCapture:()=>hd.value=!1}}const Ge$3=reactive({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ct$4=defineComponent({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,{forwardRef:hd,currentElement:md}=R$6(),gd=computed(()=>{var jd;return((jd=md.value)==null?void 0:jd.ownerDocument)??globalThis.document}),yd=computed(()=>Ge$3.layersRoot),vd=computed(()=>md.value?Array.from(yd.value).indexOf(md.value):-1),Cd=computed(()=>Ge$3.layersWithOutsidePointerEventsDisabled.size>0),wd=computed(()=>{const jd=Array.from(yd.value),[Gd]=[...Ge$3.layersWithOutsidePointerEventsDisabled].slice(-1),Yd=jd.indexOf(Gd);return vd.value>=Yd}),Nd=Ul$3(async jd=>{const Gd=[...Ge$3.branches].some(Yd=>Yd==null?void 0:Yd.contains(jd.target));!wd.value||Gd||(dd("pointerDownOutside",jd),dd("interactOutside",jd),await nextTick$1(),jd.defaultPrevented||dd("dismiss"))},md),Ld=Gl$3(jd=>{[...Ge$3.branches].some(Gd=>Gd==null?void 0:Gd.contains(jd.target))||(dd("focusOutside",jd),dd("interactOutside",jd),jd.defaultPrevented||dd("dismiss"))},md);Gn$4("Escape",jd=>{vd.value===yd.value.size-1&&(dd("escapeKeyDown",jd),jd.defaultPrevented||dd("dismiss"))});let Ud;return watchEffect(jd=>{md.value&&(ud.disableOutsidePointerEvents&&(Ge$3.layersWithOutsidePointerEventsDisabled.size===0&&(Ud=gd.value.body.style.pointerEvents,gd.value.body.style.pointerEvents="none"),Ge$3.layersWithOutsidePointerEventsDisabled.add(md.value)),yd.value.add(md.value),jd(()=>{ud.disableOutsidePointerEvents&&Ge$3.layersWithOutsidePointerEventsDisabled.size===1&&(gd.value.body.style.pointerEvents=Ud)}))}),watchEffect(jd=>{jd(()=>{md.value&&(yd.value.delete(md.value),Ge$3.layersWithOutsidePointerEventsDisabled.delete(md.value))})}),(jd,Gd)=>(openBlock(),createBlock(unref(O$4),{ref:unref(hd),"as-child":jd.asChild,as:jd.as,"data-dismissable-layer":"",style:normalizeStyle({pointerEvents:Cd.value?wd.value?"auto":"none":void 0}),onFocusCapture:unref(Ld).onFocusCapture,onBlurCapture:unref(Ld).onBlurCapture,onPointerdownCapture:unref(Nd).onPointerDownCapture},{default:withCtx(()=>[renderSlot(jd.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),xn$3="focusScope.autoFocusOnMount",Sn$4="focusScope.autoFocusOnUnmount",qo$2={bubbles:!1,cancelable:!0};function Ma$1(Ra,{select:ed=!1}={}){const ud=me$4();for(const dd of Ra)if(pt$4(dd,{select:ed}),me$4()!==ud)return!0}function iu$2(Ra){const ed=eo$2(Ra),ud=Yo$2(ed,Ra),dd=Yo$2(ed.reverse(),Ra);return[ud,dd]}function eo$2(Ra){const ed=[],ud=document.createTreeWalker(Ra,NodeFilter.SHOW_ELEMENT,{acceptNode:dd=>{const hd=dd.tagName==="INPUT"&&dd.type==="hidden";return dd.disabled||dd.hidden||hd?NodeFilter.FILTER_SKIP:dd.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;ud.nextNode();)ed.push(ud.currentNode);return ed}function Yo$2(Ra,ed){for(const ud of Ra)if(!uu$4(ud,{upTo:ed}))return ud}function uu$4(Ra,{upTo:ed}){if(getComputedStyle(Ra).visibility==="hidden")return!0;for(;Ra;){if(ed!==void 0&&Ra===ed)return!1;if(getComputedStyle(Ra).display==="none")return!0;Ra=Ra.parentElement}return!1}function du$3(Ra){return Ra instanceof HTMLInputElement&&"select"in Ra}function pt$4(Ra,{select:ed=!1}={}){if(Ra&&Ra.focus){const ud=me$4();Ra.focus({preventScroll:!0}),Ra!==ud&&du$3(Ra)&&ed&&Ra.select()}}const cu$4=li$4(()=>ref$1([]));function fu$2(){const Ra=cu$4();return{add(ed){const ud=Ra.value[0];ed!==ud&&(ud==null||ud.pause()),Ra.value=Xo$2(Ra.value,ed),Ra.value.unshift(ed)},remove(ed){var ud;Ra.value=Xo$2(Ra.value,ed),(ud=Ra.value[0])==null||ud.resume()}}}function Xo$2(Ra,ed){const ud=[...Ra],dd=ud.indexOf(ed);return dd!==-1&&ud.splice(dd,1),ud}function pu$3(Ra){return Ra.filter(ed=>ed.tagName!=="A")}const Za$1=defineComponent({__name:"FocusScope",props:{loop:{type:Boolean,default:!1},trapped:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["mountAutoFocus","unmountAutoFocus"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,{currentRef:hd,currentElement:md}=R$6(),gd=ref$1(null),yd=fu$2(),vd=reactive({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});watchEffect(wd=>{if(!Je$3)return;const Nd=md.value;if(!ud.trapped)return;function Ld(Yd){if(vd.paused||!Nd)return;const zd=Yd.target;Nd.contains(zd)?gd.value=zd:pt$4(gd.value,{select:!0})}function Ud(Yd){if(vd.paused||!Nd)return;const zd=Yd.relatedTarget;zd!==null&&(Nd.contains(zd)||pt$4(gd.value,{select:!0}))}function jd(Yd){Nd.contains(gd.value)||pt$4(Nd)}document.addEventListener("focusin",Ld),document.addEventListener("focusout",Ud);const Gd=new MutationObserver(jd);Nd&&Gd.observe(Nd,{childList:!0,subtree:!0}),wd(()=>{document.removeEventListener("focusin",Ld),document.removeEventListener("focusout",Ud),Gd.disconnect()})}),watchEffect(async wd=>{const Nd=md.value;if(await nextTick$1(),!Nd)return;yd.add(vd);const Ld=me$4();if(!Nd.contains(Ld)){const Ud=new CustomEvent(xn$3,qo$2);Nd.addEventListener(xn$3,jd=>dd("mountAutoFocus",jd)),Nd.dispatchEvent(Ud),Ud.defaultPrevented||(Ma$1(pu$3(eo$2(Nd)),{select:!0}),me$4()===Ld&&pt$4(Nd))}wd(()=>{Nd.removeEventListener(xn$3,Gd=>dd("mountAutoFocus",Gd));const Ud=new CustomEvent(Sn$4,qo$2),jd=Gd=>{dd("unmountAutoFocus",Gd)};Nd.addEventListener(Sn$4,jd),Nd.dispatchEvent(Ud),setTimeout(()=>{Ud.defaultPrevented||pt$4(Ld??document.body,{select:!0}),Nd.removeEventListener(Sn$4,jd),yd.remove(vd)},0)})});function Cd(wd){if(!ud.loop&&!ud.trapped||vd.paused)return;const Nd=wd.key==="Tab"&&!wd.altKey&&!wd.ctrlKey&&!wd.metaKey,Ld=me$4();if(Nd&&Ld){const Ud=wd.currentTarget,[jd,Gd]=iu$2(Ud);jd&&Gd?!wd.shiftKey&&Ld===Gd?(wd.preventDefault(),ud.loop&&pt$4(jd,{select:!0})):wd.shiftKey&&Ld===jd&&(wd.preventDefault(),ud.loop&&pt$4(Gd,{select:!0})):Ld===Ud&&wd.preventDefault()}}return(wd,Nd)=>(openBlock(),createBlock(unref(O$4),{ref_key:"currentRef",ref:hd,tabindex:"-1","as-child":wd.asChild,as:wd.as,onKeydown:Cd},{default:withCtx(()=>[renderSlot(wd.$slots,"default")]),_:3},8,["as-child","as"]))}}),vu$3="menu.itemSelect",Bn$3=["Enter"," "],mu$3=["ArrowDown","PageUp","Home"],ql$3=["ArrowUp","PageDown","End"],hu$3=[...mu$3,...ql$3],yu$2={ltr:[...Bn$3,"ArrowRight"],rtl:[...Bn$3,"ArrowLeft"]},gu$2={ltr:["ArrowLeft"],rtl:["ArrowRight"]};function to$2(Ra){return Ra?"open":"closed"}function La$2(Ra){return Ra==="indeterminate"}function ao$2(Ra){return La$2(Ra)?"indeterminate":Ra?"checked":"unchecked"}function In$2(Ra){const ed=me$4();for(const ud of Ra)if(ud===ed||(ud.focus(),me$4()!==ed))return}function bu$3(Ra,ed){const{x:ud,y:dd}=Ra;let hd=!1;for(let md=0,gd=ed.length-1;mddd!=wd>dd&&ud<(Cd-yd)*(dd-vd)/(wd-vd)+yd&&(hd=!hd)}return hd}function Cu$3(Ra,ed){if(!ed)return!1;const ud={x:Ra.clientX,y:Ra.clientY};return bu$3(ud,ed)}function da$1(Ra){return Ra.pointerType==="mouse"}const Yl$3=defineComponent({__name:"DialogContentImpl",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=ot$3(),{forwardRef:md,currentElement:gd}=R$6();return hd.titleId||(hd.titleId=ge$7(void 0,"radix-vue-dialog-title")),hd.descriptionId||(hd.descriptionId=ge$7(void 0,"radix-vue-dialog-description")),onMounted(()=>{hd.contentElement=gd,me$4()!==document.body&&(hd.triggerElement.value=me$4())}),(yd,vd)=>(openBlock(),createBlock(unref(Za$1),{"as-child":"",loop:"",trapped:ud.trapFocus,onMountAutoFocus:vd[5]||(vd[5]=Cd=>dd("openAutoFocus",Cd)),onUnmountAutoFocus:vd[6]||(vd[6]=Cd=>dd("closeAutoFocus",Cd))},{default:withCtx(()=>[createVNode(unref(Ct$4),mergeProps({id:unref(hd).contentId,ref:unref(md),as:yd.as,"as-child":yd.asChild,"disable-outside-pointer-events":yd.disableOutsidePointerEvents,role:"dialog","aria-describedby":unref(hd).descriptionId,"aria-labelledby":unref(hd).titleId,"data-state":unref(to$2)(unref(hd).open.value)},yd.$attrs,{onDismiss:vd[0]||(vd[0]=Cd=>unref(hd).onOpenChange(!1)),onEscapeKeyDown:vd[1]||(vd[1]=Cd=>dd("escapeKeyDown",Cd)),onFocusOutside:vd[2]||(vd[2]=Cd=>dd("focusOutside",Cd)),onInteractOutside:vd[3]||(vd[3]=Cd=>dd("interactOutside",Cd)),onPointerDownOutside:vd[4]||(vd[4]=Cd=>dd("pointerDownOutside",Cd))}),{default:withCtx(()=>[renderSlot(yd.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}}),Su$2=defineComponent({__name:"DialogContentModal",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=ot$3(),md=Te$5(dd),{forwardRef:gd,currentElement:yd}=R$6();return ga$2(yd),(vd,Cd)=>(openBlock(),createBlock(Yl$3,mergeProps({...ud,...unref(md)},{ref:unref(gd),"trap-focus":unref(hd).open.value,"disable-outside-pointer-events":!0,onCloseAutoFocus:Cd[0]||(Cd[0]=wd=>{var Nd;wd.defaultPrevented||(wd.preventDefault(),(Nd=unref(hd).triggerElement.value)==null||Nd.focus())}),onPointerDownOutside:Cd[1]||(Cd[1]=wd=>{const Nd=wd.detail.originalEvent,Ld=Nd.button===0&&Nd.ctrlKey===!0;(Nd.button===2||Ld)&&wd.preventDefault()}),onFocusOutside:Cd[2]||(Cd[2]=wd=>{wd.preventDefault()})}),{default:withCtx(()=>[renderSlot(vd.$slots,"default")]),_:3},16,["trap-focus"]))}}),Eu$3=defineComponent({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:ed}){const ud=Ra,dd=Te$5(ed);R$6();const hd=ot$3(),md=ref$1(!1),gd=ref$1(!1);return(yd,vd)=>(openBlock(),createBlock(Yl$3,mergeProps({...ud,...unref(dd)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:vd[0]||(vd[0]=Cd=>{var wd;Cd.defaultPrevented||(md.value||(wd=unref(hd).triggerElement.value)==null||wd.focus(),Cd.preventDefault()),md.value=!1,gd.value=!1}),onInteractOutside:vd[1]||(vd[1]=Cd=>{var wd;Cd.defaultPrevented||(md.value=!0,Cd.detail.originalEvent.type==="pointerdown"&&(gd.value=!0));const Nd=Cd.target;(wd=unref(hd).triggerElement.value)!=null&&wd.contains(Nd)&&Cd.preventDefault(),Cd.detail.originalEvent.type==="focusin"&&gd.value&&Cd.preventDefault()})}),{default:withCtx(()=>[renderSlot(yd.$slots,"default")]),_:3},16))}}),Pu$2=defineComponent({__name:"DialogContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=ot$3(),md=Te$5(dd),{forwardRef:gd}=R$6();return(yd,vd)=>(openBlock(),createBlock(unref(Pe$6),{present:yd.forceMount||unref(hd).open.value},{default:withCtx(()=>[unref(hd).modal.value?(openBlock(),createBlock(Su$2,mergeProps({key:0,ref:unref(gd)},{...ud,...unref(md),...yd.$attrs}),{default:withCtx(()=>[renderSlot(yd.$slots,"default")]),_:3},16)):(openBlock(),createBlock(Eu$3,mergeProps({key:1,ref:unref(gd)},{...ud,...unref(md),...yd.$attrs}),{default:withCtx(()=>[renderSlot(yd.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),Du$3=defineComponent({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean},as:{}},setup(Ra){const ed=ot$3();return ya$1(!0),R$6(),(ud,dd)=>(openBlock(),createBlock(unref(O$4),{as:ud.as,"as-child":ud.asChild,"data-state":unref(ed).open.value?"open":"closed",style:{"pointer-events":"auto"}},{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),$u$3=defineComponent({__name:"DialogOverlay",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(Ra){const ed=ot$3(),{forwardRef:ud}=R$6();return(dd,hd)=>{var md;return(md=unref(ed))!=null&&md.modal.value?(openBlock(),createBlock(unref(Pe$6),{key:0,present:dd.forceMount||unref(ed).open.value},{default:withCtx(()=>[createVNode(Du$3,mergeProps(dd.$attrs,{ref:unref(ud),as:dd.as,"as-child":dd.asChild}),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):createCommentVNode("",!0)}}}),Xl$3=defineComponent({__name:"DialogClose",props:{asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const ed=Ra;R$6();const ud=ot$3();return(dd,hd)=>(openBlock(),createBlock(unref(O$4),mergeProps(ed,{type:dd.as==="button"?"button":void 0,onClick:hd[0]||(hd[0]=md=>unref(ud).onOpenChange(!1))}),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16,["type"]))}}),Bu$2=defineComponent({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{default:"h2"}},setup(Ra){const ed=Ra,ud=ot$3();return R$6(),(dd,hd)=>(openBlock(),createBlock(unref(O$4),mergeProps(ed,{id:unref(ud).titleId}),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16,["id"]))}}),Iu$3=defineComponent({__name:"DialogDescription",props:{asChild:{type:Boolean},as:{default:"p"}},setup(Ra){const ed=Ra;R$6();const ud=ot$3();return(dd,hd)=>(openBlock(),createBlock(unref(O$4),mergeProps(ed,{id:unref(ud).descriptionId}),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16,["id"]))}}),Tv=defineComponent({__name:"AlertDialogRoot",props:{open:{type:Boolean},defaultOpen:{type:Boolean}},emits:["update:open"],setup(Ra,{emit:ed}){const ud=Se$6(Ra,ed);return R$6(),(dd,hd)=>(openBlock(),createBlock(unref(nu$4),mergeProps(unref(ud),{modal:!0}),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16))}}),Av=defineComponent({__name:"AlertDialogPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createBlock(unref(rt$3),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),[Tu$3,Ru$3]=te$5("AlertDialogContent"),Ov=defineComponent({__name:"AlertDialogContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:ed}){const ud=Ra,dd=Te$5(ed);R$6();const hd=ref$1();return Ru$3({onCancelElementChange:md=>{hd.value=md}}),(md,gd)=>(openBlock(),createBlock(unref(Pu$2),mergeProps({...ud,...unref(dd)},{role:"alertdialog",onPointerDownOutside:gd[0]||(gd[0]=withModifiers(()=>{},["prevent"])),onInteractOutside:gd[1]||(gd[1]=withModifiers(()=>{},["prevent"])),onOpenAutoFocus:gd[2]||(gd[2]=()=>{nextTick$1(()=>{var yd;(yd=hd.value)==null||yd.focus({preventScroll:!0})})})}),{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},16))}}),kv=defineComponent({__name:"AlertDialogOverlay",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra;return R$6(),(ud,dd)=>(openBlock(),createBlock(unref($u$3),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),Mv=defineComponent({__name:"AlertDialogCancel",props:{asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const ed=Ra,ud=Tu$3(),{forwardRef:dd,currentElement:hd}=R$6();return onMounted(()=>{ud.onCancelElementChange(hd.value)}),(md,gd)=>(openBlock(),createBlock(unref(Xl$3),mergeProps(ed,{ref:unref(dd)}),{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},16))}}),Vv=defineComponent({__name:"AlertDialogTitle",props:{asChild:{type:Boolean},as:{default:"h2"}},setup(Ra){const ed=Ra;return R$6(),(ud,dd)=>(openBlock(),createBlock(unref(Bu$2),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),Fv=defineComponent({__name:"AlertDialogDescription",props:{asChild:{type:Boolean},as:{default:"p"}},setup(Ra){const ed=Ra;return R$6(),(ud,dd)=>(openBlock(),createBlock(unref(Iu$3),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),Nv=defineComponent({__name:"AlertDialogAction",props:{asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const ed=Ra;return R$6(),(ud,dd)=>(openBlock(),createBlock(unref(Xl$3),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}});function za$1(Ra){return Ra==="indeterminate"}function Ql$3(Ra){return za$1(Ra)?"indeterminate":Ra?"checked":"unchecked"}const td=["value","checked","name","disabled","required"],[ad$1,nd]=te$5("CheckboxRoot"),Wv=defineComponent({inheritAttrs:!1,__name:"CheckboxRoot",props:{defaultChecked:{type:Boolean},checked:{type:[Boolean,String],default:void 0},disabled:{type:Boolean},required:{type:Boolean},name:{},value:{default:"on"},id:{},asChild:{type:Boolean},as:{default:"button"}},emits:["update:checked"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,{disabled:hd}=toRefs(ud),md=ne$5(ud,"checked",dd,{defaultValue:ud.defaultChecked,passive:ud.checked===void 0}),{forwardRef:gd,currentElement:yd}=R$6(),vd=at$6(yd),Cd=computed(()=>{var wd;return ud.id&&yd.value?(wd=document.querySelector(`[for="${ud.id}"]`))==null?void 0:wd.innerText:void 0});return nd({disabled:hd,state:md}),(wd,Nd)=>(openBlock(),createElementBlock(Fragment,null,[createVNode(unref(O$4),mergeProps(wd.$attrs,{id:wd.id,ref:unref(gd),role:"checkbox","as-child":ud.asChild,as:wd.as,type:wd.as==="button"?"button":void 0,"aria-checked":unref(za$1)(unref(md))?"mixed":unref(md),"aria-required":ud.required,"aria-label":wd.$attrs["aria-label"]||Cd.value,"data-state":unref(Ql$3)(unref(md)),"data-disabled":unref(hd)?"":void 0,disabled:unref(hd),onKeydown:withKeys(withModifiers(()=>{},["prevent"]),["enter"]),onClick:Nd[0]||(Nd[0]=Ld=>md.value=unref(za$1)(unref(md))?!0:!unref(md))}),{default:withCtx(()=>[renderSlot(wd.$slots,"default",{checked:unref(md)})]),_:3},16,["id","as-child","as","type","aria-checked","aria-required","aria-label","data-state","data-disabled","disabled","onKeydown"]),unref(vd)?(openBlock(),createElementBlock("input",{key:0,type:"checkbox",tabindex:"-1","aria-hidden":"true",value:wd.value,checked:!!unref(md),name:ud.name,disabled:ud.disabled,required:ud.required,style:{transform:"translateX(-100%)",position:"absolute",pointerEvents:"none",opacity:0,margin:0}},null,8,td)):createCommentVNode("",!0)],64))}}),jv=defineComponent({__name:"CheckboxIndicator",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{default:"span"}},setup(Ra){const{forwardRef:ed}=R$6(),ud=ad$1();return(dd,hd)=>(openBlock(),createBlock(unref(Pe$6),{present:dd.forceMount||unref(za$1)(unref(ud).state.value)||unref(ud).state.value===!0},{default:withCtx(()=>[createVNode(unref(O$4),mergeProps({ref:unref(ed),"data-state":unref(Ql$3)(unref(ud).state.value),"data-disabled":unref(ud).disabled.value?"":void 0,style:{pointerEvents:"none"},"as-child":dd.asChild,as:dd.as},dd.$attrs),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16,["data-state","data-disabled","as-child","as"])]),_:3},8,["present"]))}}),[es$2,od]=te$5("PopperRoot"),kt$4=defineComponent({inheritAttrs:!1,__name:"PopperRoot",setup(Ra){const ed=ref$1();return od({anchor:ed,onAnchorChange:ud=>ed.value=ud}),(ud,dd)=>renderSlot(ud.$slots,"default")}}),Mt$4=defineComponent({__name:"PopperAnchor",props:{element:{},asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra,{forwardRef:ud,currentElement:dd}=R$6(),hd=es$2();return watchEffect(()=>{hd.onAnchorChange(ed.element??dd.value)}),(md,gd)=>(openBlock(),createBlock(unref(O$4),{ref:unref(ud),as:md.as,"as-child":md.asChild},{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},8,["as","as-child"]))}});function ld(Ra){return Ra!==null}function sd(Ra){return{name:"transformOrigin",options:Ra,fn(ed){var ud,dd,hd;const{placement:md,rects:gd,middlewareData:yd}=ed,vd=((ud=yd.arrow)==null?void 0:ud.centerOffset)!==0,Cd=vd?0:Ra.arrowWidth,wd=vd?0:Ra.arrowHeight,[Nd,Ld]=Tn$3(md),Ud={start:"0%",center:"50%",end:"100%"}[Ld],jd=(((dd=yd.arrow)==null?void 0:dd.x)??0)+Cd/2,Gd=(((hd=yd.arrow)==null?void 0:hd.y)??0)+wd/2;let Yd="",zd="";return Nd==="bottom"?(Yd=vd?Ud:`${jd}px`,zd=`${-wd}px`):Nd==="top"?(Yd=vd?Ud:`${jd}px`,zd=`${gd.floating.height+wd}px`):Nd==="right"?(Yd=`${-wd}px`,zd=vd?Ud:`${Gd}px`):Nd==="left"&&(Yd=`${gd.floating.width+wd}px`,zd=vd?Ud:`${Gd}px`),{data:{x:Yd,y:zd}}}}}function Tn$3(Ra){const[ed,ud="center"]=Ra.split("-");return[ed,ud]}const ts$1={side:"bottom",sideOffset:0,align:"center",alignOffset:0,arrowPadding:0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,updatePositionStrategy:"optimized",prioritizePosition:!1},[rd,id$2]=te$5("PopperContent"),It$3=defineComponent({inheritAttrs:!1,__name:"PopperContent",props:mergeDefaults({side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},{...ts$1}),emits:["placed"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=es$2(),{forwardRef:md,currentElement:gd}=R$6(),yd=ref$1(),vd=ref$1(),{width:Cd,height:wd}=Ll$3(vd),Nd=computed(()=>ud.side+(ud.align!=="center"?`-${ud.align}`:"")),Ld=computed(()=>typeof ud.collisionPadding=="number"?ud.collisionPadding:{top:0,right:0,bottom:0,left:0,...ud.collisionPadding}),Ud=computed(()=>Array.isArray(ud.collisionBoundary)?ud.collisionBoundary:[ud.collisionBoundary]),jd=computed(()=>({padding:Ld.value,boundary:Ud.value.filter(ld),altBoundary:Ud.value.length>0})),Gd=ni$4(()=>[offset$2({mainAxis:ud.sideOffset+wd.value,alignmentAxis:ud.alignOffset}),ud.prioritizePosition&&ud.avoidCollisions&&flip$2({...jd.value}),ud.avoidCollisions&&shift({mainAxis:!0,crossAxis:!!ud.prioritizePosition,limiter:ud.sticky==="partial"?limitShift():void 0,...jd.value}),!ud.prioritizePosition&&ud.avoidCollisions&&flip$2({...jd.value}),size({...jd.value,apply:({elements:vf,rects:gf,availableWidth:Af,availableHeight:Df})=>{const{width:kf,height:Cf}=gf.reference,If=vf.floating.style;If.setProperty("--radix-popper-available-width",`${Af}px`),If.setProperty("--radix-popper-available-height",`${Df}px`),If.setProperty("--radix-popper-anchor-width",`${kf}px`),If.setProperty("--radix-popper-anchor-height",`${Cf}px`)}}),vd.value&&arrow$2({element:vd.value,padding:ud.arrowPadding}),sd({arrowWidth:Cd.value,arrowHeight:wd.value}),ud.hideWhenDetached&&hide$2({strategy:"referenceHidden",...jd.value})]),{floatingStyles:Yd,placement:zd,isPositioned:qd,middlewareData:Wd}=useFloating(hd.anchor,yd,{strategy:"fixed",placement:Nd,whileElementsMounted:(...vf)=>autoUpdate(...vf,{animationFrame:ud.updatePositionStrategy==="always"}),middleware:Gd}),Xd=computed(()=>Tn$3(zd.value)[0]),Jd=computed(()=>Tn$3(zd.value)[1]);watchPostEffect(()=>{qd.value&&dd("placed")});const Zd=computed(()=>{var vf;return((vf=Wd.value.arrow)==null?void 0:vf.centerOffset)!==0}),mf=ref$1("");watchEffect(()=>{gd.value&&(mf.value=window.getComputedStyle(gd.value).zIndex)});const xf=computed(()=>{var vf;return((vf=Wd.value.arrow)==null?void 0:vf.x)??0}),_f=computed(()=>{var vf;return((vf=Wd.value.arrow)==null?void 0:vf.y)??0});return id$2({placedSide:Xd,onArrowChange:vf=>vd.value=vf,arrowX:xf,arrowY:_f,shouldHideArrow:Zd}),(vf,gf)=>{var Af,Df,kf;return openBlock(),createElementBlock("div",{ref_key:"floatingRef",ref:yd,"data-radix-popper-content-wrapper":"",style:normalizeStyle({...unref(Yd),transform:unref(qd)?unref(Yd).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:mf.value,"--radix-popper-transform-origin":[(Af=unref(Wd).transformOrigin)==null?void 0:Af.x,(Df=unref(Wd).transformOrigin)==null?void 0:Df.y].join(" "),...((kf=unref(Wd).hide)==null?void 0:kf.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}})},[createVNode(unref(O$4),mergeProps({ref:unref(md)},vf.$attrs,{"as-child":ud.asChild,as:vf.as,"data-side":Xd.value,"data-align":Jd.value,style:{animation:unref(qd)?void 0:"none"}}),{default:withCtx(()=>[renderSlot(vf.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4)}}}),Jt$4=defineComponent({__name:"VisuallyHidden",props:{asChild:{type:Boolean},as:{default:"span"}},setup(Ra){return R$6(),(ed,ud)=>(openBlock(),createBlock(unref(O$4),{as:ed.as,"as-child":ed.asChild,style:{position:"absolute",border:0,width:"1px",display:"inline-block",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}},{default:withCtx(()=>[renderSlot(ed.$slots,"default")]),_:3},8,["as","as-child"]))}}),fd="data-radix-vue-collection-item",[oo$4,pd]=te$5("CollectionProvider");function Ca$1(Ra=fd){const ed=ref$1(new Map),ud=ref$1(),dd=pd({collectionRef:ud,itemMap:ed,attrName:Ra}),{getItems:hd}=ea$1(dd),md=computed(()=>Array.from(dd.itemMap.value.values())),gd=computed(()=>dd.itemMap.value.size);return{getItems:hd,reactiveItems:md,itemMapSize:gd}}const wa$1=defineComponent({name:"CollectionSlot",setup(Ra,{slots:ed}){const ud=oo$4(),{primitiveElement:dd,currentElement:hd}=Re$7();return watch(hd,()=>{ud.collectionRef.value=hd.value}),()=>h$2(Jn$4,{ref:dd},ed)}}),Qt$3=defineComponent({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(Ra,{slots:ed,attrs:ud}){const dd=oo$4(),{primitiveElement:hd,currentElement:md}=Re$7();return watchEffect(gd=>{if(md.value){const yd=markRaw(md.value);dd.itemMap.value.set(yd,{ref:md.value,value:Ra.value}),gd(()=>dd.itemMap.value.delete(yd))}}),()=>h$2(Jn$4,{...ud,[dd.attrName]:"",ref:hd},ed)}});function ea$1(Ra){const ed=Ra??oo$4();return{getItems:()=>{const ud=ed.collectionRef.value;if(!ud)return[];const dd=Array.from(ud.querySelectorAll(`[${ed.attrName}]`));return Array.from(ed.itemMap.value.values()).sort((hd,md)=>dd.indexOf(hd.ref)-dd.indexOf(md.ref))}}}function Ja(Ra){const ed=Ya$2({nonce:ref$1()});return computed(()=>{var ud;return(Ra==null?void 0:Ra.value)||((ud=ed.nonce)==null?void 0:ud.value)})}const Qa$1=defineComponent({__name:"MenuAnchor",props:{element:{},asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createBlock(unref(Mt$4),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}});function _d(){const Ra=ref$1(!1);return onMounted(()=>{He$4("keydown",()=>{Ra.value=!0},{capture:!0,passive:!0}),He$4(["pointerdown","pointermove"],()=>{Ra.value=!1},{capture:!0,passive:!0})}),Ra}const xd=Dl$3(_d),[Vt$3,ns$2]=te$5(["MenuRoot","MenuSub"],"MenuContext"),[_a$3,Sd]=te$5("MenuRoot"),so$2=defineComponent({__name:"MenuRoot",props:{open:{type:Boolean,default:!1},dir:{},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,{modal:hd,dir:md}=toRefs(ud),gd=we$5(md),yd=ne$5(ud,"open",dd),vd=ref$1(),Cd=xd();return ns$2({open:yd,onOpenChange:wd=>{yd.value=wd},content:vd,onContentChange:wd=>{vd.value=wd}}),Sd({onClose:()=>{yd.value=!1},isUsingKeyboardRef:Cd,dir:gd,modal:hd}),(wd,Nd)=>(openBlock(),createBlock(unref(kt$4),null,{default:withCtx(()=>[renderSlot(wd.$slots,"default")]),_:3}))}}),Ed="rovingFocusGroup.onEntryFocus",Pd={bubbles:!1,cancelable:!0},en$3={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Dd(Ra,ed){return ed!=="rtl"?Ra:Ra==="ArrowLeft"?"ArrowRight":Ra==="ArrowRight"?"ArrowLeft":Ra}function os$2(Ra,ed,ud){const dd=Dd(Ra.key,ud);if(!(ed==="vertical"&&["ArrowLeft","ArrowRight"].includes(dd))&&!(ed==="horizontal"&&["ArrowUp","ArrowDown"].includes(dd)))return en$3[dd]}function ls$2(Ra,ed=!1){const ud=me$4();for(const dd of Ra)if(dd===ud||(dd.focus({preventScroll:ed}),me$4()!==ud))return}function $d$1(Ra,ed){return Ra.map((ud,dd)=>Ra[(ed+dd)%Ra.length])}const[Bd,Id]=te$5("RovingFocusGroup"),Ft$4=defineComponent({__name:"RovingFocusGroup",props:{orientation:{default:void 0},dir:{},loop:{type:Boolean,default:!1},currentTabStopId:{},defaultCurrentTabStopId:{},preventScrollOnEntryFocus:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["entryFocus","update:currentTabStopId"],setup(Ra,{expose:ed,emit:ud}){const dd=Ra,hd=ud,{loop:md,orientation:gd,dir:yd}=toRefs(dd),vd=we$5(yd),Cd=ne$5(dd,"currentTabStopId",hd,{defaultValue:dd.defaultCurrentTabStopId,passive:dd.currentTabStopId===void 0}),wd=ref$1(!1),Nd=ref$1(!1),Ld=ref$1(0),{getItems:Ud}=Ca$1();function jd(Yd){const zd=!Nd.value;if(Yd.currentTarget&&Yd.target===Yd.currentTarget&&zd&&!wd.value){const qd=new CustomEvent(Ed,Pd);if(Yd.currentTarget.dispatchEvent(qd),hd("entryFocus",qd),!qd.defaultPrevented){const Wd=Ud().map(mf=>mf.ref).filter(mf=>mf.dataset.disabled!==""),Xd=Wd.find(mf=>mf.getAttribute("data-active")==="true"),Jd=Wd.find(mf=>mf.id===Cd.value),Zd=[Xd,Jd,...Wd].filter(Boolean);ls$2(Zd,dd.preventScrollOnEntryFocus)}}Nd.value=!1}function Gd(){setTimeout(()=>{Nd.value=!1},1)}return ed({getItems:Ud}),Id({loop:md,dir:vd,orientation:gd,currentTabStopId:Cd,onItemFocus:Yd=>{Cd.value=Yd},onItemShiftTab:()=>{wd.value=!0},onFocusableItemAdd:()=>{Ld.value++},onFocusableItemRemove:()=>{Ld.value--}}),(Yd,zd)=>(openBlock(),createBlock(unref(wa$1),null,{default:withCtx(()=>[createVNode(unref(O$4),{tabindex:wd.value||Ld.value===0?-1:0,"data-orientation":unref(gd),as:Yd.as,"as-child":Yd.asChild,dir:unref(vd),style:{outline:"none"},onMousedown:zd[0]||(zd[0]=qd=>Nd.value=!0),onMouseup:Gd,onFocus:jd,onBlur:zd[1]||(zd[1]=qd=>wd.value=!1)},{default:withCtx(()=>[renderSlot(Yd.$slots,"default")]),_:3},8,["tabindex","data-orientation","as","as-child","dir"])]),_:3}))}}),Nt$4=defineComponent({__name:"RovingFocusItem",props:{tabStopId:{},focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!0},allowShiftKey:{type:Boolean},asChild:{type:Boolean},as:{default:"span"}},setup(Ra){const ed=Ra,ud=Bd(),dd=computed(()=>ed.tabStopId||ge$7()),hd=computed(()=>ud.currentTabStopId.value===dd.value),{getItems:md}=ea$1();onMounted(()=>{ed.focusable&&ud.onFocusableItemAdd()}),onUnmounted(()=>{ed.focusable&&ud.onFocusableItemRemove()});function gd(yd){if(yd.key==="Tab"&&yd.shiftKey){ud.onItemShiftTab();return}if(yd.target!==yd.currentTarget)return;const vd=os$2(yd,ud.orientation.value,ud.dir.value);if(vd!==void 0){if(yd.metaKey||yd.ctrlKey||yd.altKey||!ed.allowShiftKey&&yd.shiftKey)return;yd.preventDefault();let Cd=[...md().map(wd=>wd.ref).filter(wd=>wd.dataset.disabled!=="")];if(vd==="last")Cd.reverse();else if(vd==="prev"||vd==="next"){vd==="prev"&&Cd.reverse();const wd=Cd.indexOf(yd.currentTarget);Cd=ud.loop.value?$d$1(Cd,wd+1):Cd.slice(wd+1)}nextTick$1(()=>ls$2(Cd))}}return(yd,vd)=>(openBlock(),createBlock(unref(Qt$3),null,{default:withCtx(()=>[createVNode(unref(O$4),{tabindex:hd.value?0:-1,"data-orientation":unref(ud).orientation.value,"data-active":yd.active,"data-disabled":yd.focusable?void 0:"",as:yd.as,"as-child":yd.asChild,onMousedown:vd[0]||(vd[0]=Cd=>{yd.focusable?unref(ud).onItemFocus(dd.value):Cd.preventDefault()}),onFocus:vd[1]||(vd[1]=Cd=>unref(ud).onItemFocus(dd.value)),onKeydown:gd},{default:withCtx(()=>[renderSlot(yd.$slots,"default")]),_:3},8,["tabindex","data-orientation","data-active","data-disabled","as","as-child"])]),_:3}))}}),[ro$2,Td]=te$5("MenuContent"),io$3=defineComponent({__name:"MenuContentImpl",props:mergeDefaults({loop:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},disableOutsideScroll:{type:Boolean},trapFocus:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},{...ts$1}),emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus","dismiss"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=Vt$3(),md=_a$3(),{trapFocus:gd,disableOutsidePointerEvents:yd,loop:vd}=toRefs(ud);Yn$3(),ya$1(yd.value);const Cd=ref$1(""),wd=ref$1(0),Nd=ref$1(0),Ld=ref$1(null),Ud=ref$1("right"),jd=ref$1(0),Gd=ref$1(null),{createCollection:Yd}=Fe$5(),{forwardRef:zd,currentElement:qd}=R$6(),Wd=Yd(qd);watch(qd,vf=>{hd.onContentChange(vf)});const{handleTypeaheadSearch:Xd}=ba$3(Wd);onUnmounted(()=>{window.clearTimeout(wd.value)});function Jd(vf){var gf,Af;return Ud.value===((gf=Ld.value)==null?void 0:gf.side)&&Cu$3(vf,(Af=Ld.value)==null?void 0:Af.area)}async function Zd(vf){var gf;dd("openAutoFocus",vf),!vf.defaultPrevented&&(vf.preventDefault(),(gf=qd.value)==null||gf.focus({preventScroll:!0}))}function mf(vf){if(vf.defaultPrevented)return;const gf=vf.target.closest("[data-radix-menu-content]")===vf.currentTarget,Af=vf.ctrlKey||vf.altKey||vf.metaKey,Df=vf.key.length===1,kf=At$5(vf,me$4(),qd.value,{loop:vd.value,arrowKeyOptions:"vertical",dir:md==null?void 0:md.dir.value,focus:!0,attributeName:"[data-radix-vue-collection-item]:not([data-disabled])"});if(kf)return kf==null?void 0:kf.focus();if(vf.code==="Space"||(gf&&(vf.key==="Tab"&&vf.preventDefault(),!Af&&Df&&Xd(vf.key)),vf.target!==qd.value)||!hu$3.includes(vf.key))return;vf.preventDefault();const Cf=Wd.value;ql$3.includes(vf.key)&&Cf.reverse(),In$2(Cf)}function xf(vf){var gf,Af;(Af=(gf=vf==null?void 0:vf.currentTarget)==null?void 0:gf.contains)!=null&&Af.call(gf,vf.target)||(window.clearTimeout(wd.value),Cd.value="")}function _f(vf){var gf;if(!da$1(vf))return;const Af=vf.target,Df=jd.value!==vf.clientX;if((gf=vf==null?void 0:vf.currentTarget)!=null&&gf.contains(Af)&&Df){const kf=vf.clientX>jd.value?"right":"left";Ud.value=kf,jd.value=vf.clientX}}return Td({onItemEnter:vf=>!!Jd(vf),onItemLeave:vf=>{var gf;Jd(vf)||((gf=qd.value)==null||gf.focus(),Gd.value=null)},onTriggerLeave:vf=>!!Jd(vf),searchRef:Cd,pointerGraceTimerRef:Nd,onPointerGraceIntentChange:vf=>{Ld.value=vf}}),(vf,gf)=>(openBlock(),createBlock(unref(Za$1),{"as-child":"",trapped:unref(gd),onMountAutoFocus:Zd,onUnmountAutoFocus:gf[7]||(gf[7]=Af=>dd("closeAutoFocus",Af))},{default:withCtx(()=>[createVNode(unref(Ct$4),{"as-child":"","disable-outside-pointer-events":unref(yd),onEscapeKeyDown:gf[2]||(gf[2]=Af=>dd("escapeKeyDown",Af)),onPointerDownOutside:gf[3]||(gf[3]=Af=>dd("pointerDownOutside",Af)),onFocusOutside:gf[4]||(gf[4]=Af=>dd("focusOutside",Af)),onInteractOutside:gf[5]||(gf[5]=Af=>dd("interactOutside",Af)),onDismiss:gf[6]||(gf[6]=Af=>dd("dismiss"))},{default:withCtx(()=>[createVNode(unref(Ft$4),{"current-tab-stop-id":Gd.value,"onUpdate:currentTabStopId":gf[0]||(gf[0]=Af=>Gd.value=Af),"as-child":"",orientation:"vertical",dir:unref(md).dir.value,loop:unref(vd),onEntryFocus:gf[1]||(gf[1]=Af=>{dd("entryFocus",Af),unref(md).isUsingKeyboardRef.value||Af.preventDefault()})},{default:withCtx(()=>[createVNode(unref(It$3),{ref:unref(zd),role:"menu",as:vf.as,"as-child":vf.asChild,"aria-orientation":"vertical","data-radix-menu-content":"","data-state":unref(to$2)(unref(hd).open.value),dir:unref(md).dir.value,side:vf.side,"side-offset":vf.sideOffset,align:vf.align,"align-offset":vf.alignOffset,"avoid-collisions":vf.avoidCollisions,"collision-boundary":vf.collisionBoundary,"collision-padding":vf.collisionPadding,"arrow-padding":vf.arrowPadding,"prioritize-position":vf.prioritizePosition,sticky:vf.sticky,"hide-when-detached":vf.hideWhenDetached,onKeydown:mf,onBlur:xf,onPointermove:_f},{default:withCtx(()=>[renderSlot(vf.$slots,"default")]),_:3},8,["as","as-child","data-state","dir","side","side-offset","align","align-offset","avoid-collisions","collision-boundary","collision-padding","arrow-padding","prioritize-position","sticky","hide-when-detached"])]),_:3},8,["current-tab-stop-id","dir","loop"])]),_:3},8,["disable-outside-pointer-events"])]),_:3},8,["trapped"]))}}),ss$2=defineComponent({inheritAttrs:!1,__name:"MenuItemImpl",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra,ud=ro$2(),{forwardRef:dd}=R$6(),hd=ref$1(!1);async function md(yd){if(!yd.defaultPrevented&&da$1(yd)){if(ed.disabled)ud.onItemLeave(yd);else if(!ud.onItemEnter(yd)){const vd=yd.currentTarget;vd==null||vd.focus({preventScroll:!0})}}}async function gd(yd){await nextTick$1(),!yd.defaultPrevented&&da$1(yd)&&ud.onItemLeave(yd)}return(yd,vd)=>(openBlock(),createBlock(unref(Qt$3),{value:{textValue:yd.textValue}},{default:withCtx(()=>[createVNode(unref(O$4),mergeProps({ref:unref(dd),role:"menuitem",tabindex:"-1"},yd.$attrs,{as:yd.as,"as-child":yd.asChild,"data-radix-vue-collection-item":"","aria-disabled":yd.disabled||void 0,"data-disabled":yd.disabled?"":void 0,"data-highlighted":hd.value?"":void 0,onPointermove:md,onPointerleave:gd,onFocus:vd[0]||(vd[0]=async Cd=>{await nextTick$1(),!(Cd.defaultPrevented||yd.disabled)&&(hd.value=!0)}),onBlur:vd[1]||(vd[1]=async Cd=>{await nextTick$1(),!Cd.defaultPrevented&&(hd.value=!1)})}),{default:withCtx(()=>[renderSlot(yd.$slots,"default")]),_:3},16,["as","as-child","aria-disabled","data-disabled","data-highlighted"])]),_:3},8,["value"]))}}),xa$3=defineComponent({__name:"MenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,{forwardRef:hd,currentElement:md}=R$6(),gd=_a$3(),yd=ro$2(),vd=ref$1(!1);async function Cd(){const wd=md.value;if(!ud.disabled&&wd){const Nd=new CustomEvent(vu$3,{bubbles:!0,cancelable:!0});dd("select",Nd),await nextTick$1(),Nd.defaultPrevented?vd.value=!1:gd.onClose()}}return(wd,Nd)=>(openBlock(),createBlock(ss$2,mergeProps(ud,{ref:unref(hd),onClick:Cd,onPointerdown:Nd[0]||(Nd[0]=()=>{vd.value=!0}),onPointerup:Nd[1]||(Nd[1]=async Ld=>{var Ud;await nextTick$1(),!Ld.defaultPrevented&&(vd.value||(Ud=Ld.currentTarget)==null||Ud.click())}),onKeydown:Nd[2]||(Nd[2]=async Ld=>{const Ud=unref(yd).searchRef.value!=="";wd.disabled||Ud&&Ld.key===" "||unref(Bn$3).includes(Ld.key)&&(Ld.currentTarget.click(),Ld.preventDefault())})}),{default:withCtx(()=>[renderSlot(wd.$slots,"default")]),_:3},16))}}),[Rd,rs$2]=te$5(["MenuCheckboxItem","MenuRadioItem"],"MenuItemIndicatorContext"),uo$3=defineComponent({__name:"MenuItemIndicator",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{default:"span"}},setup(Ra){const ed=Rd({checked:ref$1(!1)});return(ud,dd)=>(openBlock(),createBlock(unref(Pe$6),{present:ud.forceMount||unref(La$2)(unref(ed).checked.value)||unref(ed).checked.value===!0},{default:withCtx(()=>[createVNode(unref(O$4),{as:ud.as,"as-child":ud.asChild,"data-state":unref(ao$2)(unref(ed).checked.value)},{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},8,["as","as-child","data-state"])]),_:3},8,["present"]))}}),co$4=defineComponent({__name:"MenuCheckboxItem",props:{checked:{type:[Boolean,String],default:!1},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select","update:checked"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=ne$5(ud,"checked",dd);return rs$2({checked:hd}),(md,gd)=>(openBlock(),createBlock(xa$3,mergeProps({role:"menuitemcheckbox"},ud,{"aria-checked":unref(La$2)(unref(hd))?"mixed":unref(hd),"data-state":unref(ao$2)(unref(hd)),onSelect:gd[0]||(gd[0]=async yd=>{dd("select",yd),unref(La$2)(unref(hd))?hd.value=!0:hd.value=!unref(hd)})}),{default:withCtx(()=>[renderSlot(md.$slots,"default",{checked:unref(hd)})]),_:3},16,["aria-checked","data-state"]))}}),Ad=defineComponent({__name:"MenuRootContentModal",props:{loop:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=Se$6(ud,dd),md=Vt$3(),{forwardRef:gd,currentElement:yd}=R$6();return ga$2(yd),(vd,Cd)=>(openBlock(),createBlock(io$3,mergeProps(unref(hd),{ref:unref(gd),"trap-focus":unref(md).open.value,"disable-outside-pointer-events":unref(md).open.value,"disable-outside-scroll":!0,onDismiss:Cd[0]||(Cd[0]=wd=>unref(md).onOpenChange(!1)),onFocusOutside:Cd[1]||(Cd[1]=withModifiers(wd=>dd("focusOutside",wd),["prevent"]))}),{default:withCtx(()=>[renderSlot(vd.$slots,"default")]),_:3},16,["trap-focus","disable-outside-pointer-events"]))}}),Od=defineComponent({__name:"MenuRootContentNonModal",props:{loop:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:ed}){const ud=Se$6(Ra,ed),dd=Vt$3();return(hd,md)=>(openBlock(),createBlock(io$3,mergeProps(unref(ud),{"trap-focus":!1,"disable-outside-pointer-events":!1,"disable-outside-scroll":!1,onDismiss:md[0]||(md[0]=gd=>unref(dd).onOpenChange(!1))}),{default:withCtx(()=>[renderSlot(hd.$slots,"default")]),_:3},16))}}),fo$2=defineComponent({__name:"MenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:ed}){const ud=Se$6(Ra,ed),dd=Vt$3(),hd=_a$3();return(md,gd)=>(openBlock(),createBlock(unref(Pe$6),{present:md.forceMount||unref(dd).open.value},{default:withCtx(()=>[unref(hd).modal.value?(openBlock(),createBlock(Ad,normalizeProps(mergeProps({key:0},{...md.$attrs,...unref(ud)})),{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},16)):(openBlock(),createBlock(Od,normalizeProps(mergeProps({key:1},{...md.$attrs,...unref(ud)})),{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),tn$3=defineComponent({__name:"MenuGroup",props:{asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createBlock(unref(O$4),mergeProps({role:"group"},ed),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),vo$1=defineComponent({__name:"MenuPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createBlock(unref(rt$3),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),[kd,Md]=te$5("MenuRadioGroup"),mo$3=defineComponent({__name:"MenuRadioGroup",props:{modelValue:{default:""},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(Ra,{emit:ed}){const ud=Ra,dd=ne$5(ud,"modelValue",ed);return Md({modelValue:dd,onValueChange:hd=>{dd.value=hd}}),(hd,md)=>(openBlock(),createBlock(tn$3,normalizeProps(guardReactiveProps(ud)),{default:withCtx(()=>[renderSlot(hd.$slots,"default",{modelValue:unref(dd)})]),_:3},16))}}),ho$2=defineComponent({__name:"MenuRadioItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,{value:hd}=toRefs(ud),md=kd(),gd=computed(()=>md.modelValue.value===(hd==null?void 0:hd.value));return rs$2({checked:gd}),(yd,vd)=>(openBlock(),createBlock(xa$3,mergeProps({role:"menuitemradio"},ud,{"aria-checked":gd.value,"data-state":unref(ao$2)(gd.value),onSelect:vd[0]||(vd[0]=async Cd=>{dd("select",Cd),unref(md).onValueChange(unref(hd))})}),{default:withCtx(()=>[renderSlot(yd.$slots,"default")]),_:3},16,["aria-checked","data-state"]))}}),yo$3=defineComponent({__name:"MenuSeparator",props:{asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createBlock(unref(O$4),mergeProps(ed,{role:"separator","aria-orientation":"horizontal"}),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),[is$4,Vd]=te$5("MenuSub"),go$3=defineComponent({__name:"MenuSub",props:{open:{type:Boolean,default:void 0}},emits:["update:open"],setup(Ra,{emit:ed}){const ud=Ra,dd=ne$5(ud,"open",ed,{defaultValue:!1,passive:ud.open===void 0}),hd=Vt$3(),md=ref$1(),gd=ref$1();return watchEffect(yd=>{(hd==null?void 0:hd.open.value)===!1&&(dd.value=!1),yd(()=>dd.value=!1)}),ns$2({open:dd,onOpenChange:yd=>{dd.value=yd},content:gd,onContentChange:yd=>{gd.value=yd}}),Vd({triggerId:"",contentId:"",trigger:md,onTriggerChange:yd=>{md.value=yd}}),(yd,vd)=>(openBlock(),createBlock(unref(kt$4),null,{default:withCtx(()=>[renderSlot(yd.$slots,"default")]),_:3}))}}),bo$3=defineComponent({__name:"MenuSubContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},sideOffset:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean,default:!0},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:ed}){const ud=Se$6(Ra,ed),dd=Vt$3(),hd=_a$3(),md=is$4(),{forwardRef:gd,currentElement:yd}=R$6();return md.contentId||(md.contentId=ge$7(void 0,"radix-vue-menu-sub-content")),(vd,Cd)=>(openBlock(),createBlock(unref(Pe$6),{present:vd.forceMount||unref(dd).open.value},{default:withCtx(()=>[createVNode(io$3,mergeProps(unref(ud),{id:unref(md).contentId,ref:unref(gd),"aria-labelledby":unref(md).triggerId,align:"start",side:unref(hd).dir.value==="rtl"?"left":"right","disable-outside-pointer-events":!1,"disable-outside-scroll":!1,"trap-focus":!1,onOpenAutoFocus:Cd[0]||(Cd[0]=withModifiers(wd=>{var Nd;unref(hd).isUsingKeyboardRef.value&&((Nd=unref(yd))==null||Nd.focus())},["prevent"])),onCloseAutoFocus:Cd[1]||(Cd[1]=withModifiers(()=>{},["prevent"])),onFocusOutside:Cd[2]||(Cd[2]=wd=>{wd.defaultPrevented||wd.target!==unref(md).trigger.value&&unref(dd).onOpenChange(!1)}),onEscapeKeyDown:Cd[3]||(Cd[3]=wd=>{unref(hd).onClose(),wd.preventDefault()}),onKeydown:Cd[4]||(Cd[4]=wd=>{var Nd,Ld;const Ud=(Nd=wd.currentTarget)==null?void 0:Nd.contains(wd.target),jd=unref(gu$2)[unref(hd).dir.value].includes(wd.key);Ud&&jd&&(unref(dd).onOpenChange(!1),(Ld=unref(md).trigger.value)==null||Ld.focus(),wd.preventDefault())})}),{default:withCtx(()=>[renderSlot(vd.$slots,"default")]),_:3},16,["id","aria-labelledby","side"])]),_:3},8,["present"]))}}),Co$1=defineComponent({__name:"MenuSubTrigger",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra,ud=Vt$3(),dd=_a$3(),hd=is$4(),md=ro$2(),gd=ref$1(null);hd.triggerId||(hd.triggerId=ge$7(void 0,"radix-vue-menu-sub-trigger"));function yd(){gd.value&&window.clearTimeout(gd.value),gd.value=null}onUnmounted(()=>{yd()});function vd(Nd){!da$1(Nd)||md.onItemEnter(Nd)||!ed.disabled&&!ud.open.value&&!gd.value&&(md.onPointerGraceIntentChange(null),gd.value=window.setTimeout(()=>{ud.onOpenChange(!0),yd()},100))}async function Cd(Nd){var Ld,Ud;if(!da$1(Nd))return;yd();const jd=(Ld=ud.content.value)==null?void 0:Ld.getBoundingClientRect();if(jd!=null&&jd.width){const Gd=(Ud=ud.content.value)==null?void 0:Ud.dataset.side,Yd=Gd==="right",zd=Yd?-5:5,qd=jd[Yd?"left":"right"],Wd=jd[Yd?"right":"left"];md.onPointerGraceIntentChange({area:[{x:Nd.clientX+zd,y:Nd.clientY},{x:qd,y:jd.top},{x:Wd,y:jd.top},{x:Wd,y:jd.bottom},{x:qd,y:jd.bottom}],side:Gd}),window.clearTimeout(md.pointerGraceTimerRef.value),md.pointerGraceTimerRef.value=window.setTimeout(()=>md.onPointerGraceIntentChange(null),300)}else{if(md.onTriggerLeave(Nd))return;md.onPointerGraceIntentChange(null)}}async function wd(Nd){var Ld;const Ud=md.searchRef.value!=="";ed.disabled||Ud&&Nd.key===" "||yu$2[dd.dir.value].includes(Nd.key)&&(ud.onOpenChange(!0),await nextTick$1(),(Ld=ud.content.value)==null||Ld.focus(),Nd.preventDefault())}return(Nd,Ld)=>(openBlock(),createBlock(Qa$1,{"as-child":""},{default:withCtx(()=>[createVNode(ss$2,mergeProps(ed,{id:unref(hd).triggerId,ref:Ud=>{var jd;(jd=unref(hd))==null||jd.onTriggerChange(Ud==null?void 0:Ud.$el)},"aria-haspopup":"menu","aria-expanded":unref(ud).open.value,"aria-controls":unref(hd).contentId,"data-state":unref(to$2)(unref(ud).open.value),onClick:Ld[0]||(Ld[0]=async Ud=>{ed.disabled||Ud.defaultPrevented||(Ud.currentTarget.focus(),unref(ud).open.value||unref(ud).onOpenChange(!0))}),onPointermove:vd,onPointerleave:Cd,onKeydown:wd}),{default:withCtx(()=>[renderSlot(Nd.$slots,"default")]),_:3},16,["id","aria-expanded","aria-controls","data-state"])]),_:3}))}}),[us$3,Fd]=te$5("ContextMenuRoot"),rm$1=defineComponent({inheritAttrs:!1,__name:"ContextMenuRoot",props:{dir:{},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,{dir:hd,modal:md}=toRefs(ud);R$6();const gd=we$5(hd),yd=ref$1(!1);return Fd({open:yd,onOpenChange:vd=>{yd.value=vd},dir:gd,modal:md}),watch(yd,vd=>{dd("update:open",vd)}),(vd,Cd)=>(openBlock(),createBlock(unref(so$2),{open:yd.value,"onUpdate:open":Cd[0]||(Cd[0]=wd=>yd.value=wd),dir:unref(gd),modal:unref(md)},{default:withCtx(()=>[renderSlot(vd.$slots,"default")]),_:3},8,["open","dir","modal"]))}});function Zo$3(Ra){return Ra.pointerType!=="mouse"}const im=defineComponent({inheritAttrs:!1,__name:"ContextMenuTrigger",props:{disabled:{type:Boolean,default:!1},asChild:{type:Boolean},as:{default:"span"}},setup(Ra){const ed=Ra,{disabled:ud}=toRefs(ed),{forwardRef:dd}=R$6(),hd=us$3(),md=ref$1({x:0,y:0}),gd=computed(()=>({getBoundingClientRect:()=>({width:0,height:0,left:md.value.x,right:md.value.x,top:md.value.y,bottom:md.value.y,...md.value})})),yd=ref$1(0);function vd(){window.clearTimeout(yd.value)}function Cd(Ud){md.value={x:Ud.clientX,y:Ud.clientY},hd.onOpenChange(!0)}async function wd(Ud){ud.value||(await nextTick$1(),Ud.defaultPrevented||(vd(),Cd(Ud),Ud.preventDefault()))}async function Nd(Ud){ud.value||(await nextTick$1(),Zo$3(Ud)&&!Ud.defaultPrevented&&(vd(),yd.value=window.setTimeout(()=>Cd(Ud),700)))}async function Ld(Ud){ud.value||(await nextTick$1(),Zo$3(Ud)&&!Ud.defaultPrevented&&vd())}return(Ud,jd)=>(openBlock(),createElementBlock(Fragment,null,[createVNode(unref(Qa$1),{as:"template",element:gd.value},null,8,["element"]),createVNode(unref(O$4),mergeProps({ref:unref(dd),as:Ud.as,"as-child":Ud.asChild,"data-state":unref(hd).open.value?"open":"closed","data-disabled":unref(ud)?"":void 0,style:{WebkitTouchCallout:"none"}},Ud.$attrs,{onContextmenu:wd,onPointerdown:Nd,onPointermove:Ld,onPointercancel:Ld,onPointerup:Ld}),{default:withCtx(()=>[renderSlot(Ud.$slots,"default")]),_:3},16,["as","as-child","data-state","data-disabled"])],64))}}),um=defineComponent({__name:"ContextMenuPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createBlock(unref(vo$1),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),dm=defineComponent({__name:"ContextMenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},alignOffset:{default:0},avoidCollisions:{type:Boolean,default:!0},collisionBoundary:{default:()=>[]},collisionPadding:{default:0},sticky:{default:"partial"},hideWhenDetached:{type:Boolean,default:!1},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(Ra,{emit:ed}){const ud=Se$6(Ra,ed);R$6();const dd=us$3(),hd=ref$1(!1);return(md,gd)=>(openBlock(),createBlock(unref(fo$2),mergeProps(unref(ud),{side:"right","side-offset":2,align:"start",style:{"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"},onCloseAutoFocus:gd[0]||(gd[0]=yd=>{!yd.defaultPrevented&&hd.value&&yd.preventDefault(),hd.value=!1}),onInteractOutside:gd[1]||(gd[1]=yd=>{!yd.defaultPrevented&&!unref(dd).modal.value&&(hd.value=!0)})}),{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},16))}}),fm=defineComponent({__name:"ContextMenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(Ra,{emit:ed}){const ud=Ra,dd=Te$5(ed);return R$6(),(hd,md)=>(openBlock(),createBlock(unref(xa$3),normalizeProps(guardReactiveProps({...ud,...unref(dd)})),{default:withCtx(()=>[renderSlot(hd.$slots,"default")]),_:3},16))}}),vm$1=defineComponent({__name:"ContextMenuSeparator",props:{asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra;return R$6(),(ud,dd)=>(openBlock(),createBlock(unref(yo$3),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),[fs$3,cc$2]=te$5("DropdownMenuRoot"),uh=defineComponent({__name:"DropdownMenuRoot",props:{defaultOpen:{type:Boolean},open:{type:Boolean,default:void 0},dir:{},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed;R$6();const hd=ne$5(ud,"open",dd,{defaultValue:ud.defaultOpen,passive:ud.open===void 0}),md=ref$1(),{modal:gd,dir:yd}=toRefs(ud),vd=we$5(yd);return cc$2({open:hd,onOpenChange:Cd=>{hd.value=Cd},onOpenToggle:()=>{hd.value=!hd.value},triggerId:"",triggerElement:md,contentId:"",modal:gd,dir:vd}),(Cd,wd)=>(openBlock(),createBlock(unref(so$2),{open:unref(hd),"onUpdate:open":wd[0]||(wd[0]=Nd=>isRef(hd)?hd.value=Nd:null),dir:unref(vd),modal:unref(gd)},{default:withCtx(()=>[renderSlot(Cd.$slots,"default",{open:unref(hd)})]),_:3},8,["open","dir","modal"]))}}),dh=defineComponent({__name:"DropdownMenuTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const ed=Ra,ud=fs$3(),{forwardRef:dd,currentElement:hd}=R$6();return onMounted(()=>{ud.triggerElement=hd}),ud.triggerId||(ud.triggerId=ge$7(void 0,"radix-vue-dropdown-menu-trigger")),(md,gd)=>(openBlock(),createBlock(unref(Qa$1),{"as-child":""},{default:withCtx(()=>[createVNode(unref(O$4),{id:unref(ud).triggerId,ref:unref(dd),type:md.as==="button"?"button":void 0,"as-child":ed.asChild,as:md.as,"aria-haspopup":"menu","aria-expanded":unref(ud).open.value,"aria-controls":unref(ud).open.value?unref(ud).contentId:void 0,"data-disabled":md.disabled?"":void 0,disabled:md.disabled,"data-state":unref(ud).open.value?"open":"closed",onClick:gd[0]||(gd[0]=async yd=>{var vd;!md.disabled&&yd.button===0&&yd.ctrlKey===!1&&((vd=unref(ud))==null||vd.onOpenToggle(),await nextTick$1(),unref(ud).open.value&&yd.preventDefault())}),onKeydown:gd[1]||(gd[1]=withKeys(yd=>{md.disabled||(["Enter"," "].includes(yd.key)&&unref(ud).onOpenToggle(),yd.key==="ArrowDown"&&unref(ud).onOpenChange(!0),["Enter"," ","ArrowDown"].includes(yd.key)&&yd.preventDefault())},["enter","space","arrow-down"]))},{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},8,["id","type","as-child","as","aria-expanded","aria-controls","data-disabled","disabled","data-state"])]),_:3}))}}),ch$1=defineComponent({__name:"DropdownMenuPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createBlock(unref(vo$1),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),fh=defineComponent({__name:"DropdownMenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(Ra,{emit:ed}){const ud=Se$6(Ra,ed);R$6();const dd=fs$3(),hd=ref$1(!1);function md(gd){gd.defaultPrevented||(hd.value||setTimeout(()=>{var yd;(yd=dd.triggerElement.value)==null||yd.focus()},0),hd.value=!1,gd.preventDefault())}return dd.contentId||(dd.contentId=ge$7(void 0,"radix-vue-dropdown-menu-content")),(gd,yd)=>{var vd;return openBlock(),createBlock(unref(fo$2),mergeProps(unref(ud),{id:unref(dd).contentId,"aria-labelledby":(vd=unref(dd))==null?void 0:vd.triggerId,style:{"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"},onCloseAutoFocus:md,onInteractOutside:yd[0]||(yd[0]=Cd=>{var wd;if(Cd.defaultPrevented)return;const Nd=Cd.detail.originalEvent,Ld=Nd.button===0&&Nd.ctrlKey===!0,Ud=Nd.button===2||Ld;(!unref(dd).modal.value||Ud)&&(hd.value=!0),(wd=unref(dd).triggerElement.value)!=null&&wd.contains(Cd.target)&&Cd.preventDefault()})}),{default:withCtx(()=>[renderSlot(gd.$slots,"default")]),_:3},16,["id","aria-labelledby"])}}}),vh=defineComponent({__name:"DropdownMenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(Ra,{emit:ed}){const ud=Ra,dd=Te$5(ed);return R$6(),(hd,md)=>(openBlock(),createBlock(unref(xa$3),normalizeProps(guardReactiveProps({...ud,...unref(dd)})),{default:withCtx(()=>[renderSlot(hd.$slots,"default")]),_:3},16))}}),gh=defineComponent({__name:"DropdownMenuItemIndicator",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra;return R$6(),(ud,dd)=>(openBlock(),createBlock(unref(uo$3),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),Ch=defineComponent({__name:"DropdownMenuRadioGroup",props:{modelValue:{},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(Ra,{emit:ed}){const ud=Ra,dd=Te$5(ed);return R$6(),(hd,md)=>(openBlock(),createBlock(unref(mo$3),normalizeProps(guardReactiveProps({...ud,...unref(dd)})),{default:withCtx(()=>[renderSlot(hd.$slots,"default")]),_:3},16))}}),wh=defineComponent({__name:"DropdownMenuRadioItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(Ra,{emit:ed}){const ud=Se$6(Ra,ed);return R$6(),(dd,hd)=>(openBlock(),createBlock(unref(ho$2),normalizeProps(guardReactiveProps(unref(ud))),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16))}}),[xo$4,vc$1]=te$5("HoverCardRoot"),Rh=defineComponent({__name:"HoverCardRoot",props:{defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},openDelay:{default:700},closeDelay:{default:300}},emits:["update:open"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,{openDelay:hd,closeDelay:md}=toRefs(ud);R$6();const gd=ne$5(ud,"open",dd,{defaultValue:ud.defaultOpen,passive:ud.open===void 0}),yd=ref$1(0),vd=ref$1(0),Cd=ref$1(!1),wd=ref$1(!1),Nd=ref$1(!1),Ld=ref$1();function Ud(){clearTimeout(vd.value),yd.value=window.setTimeout(()=>gd.value=!0,hd.value)}function jd(){clearTimeout(yd.value),!Cd.value&&!wd.value&&(vd.value=window.setTimeout(()=>gd.value=!1,md.value))}function Gd(){gd.value=!1}return vc$1({open:gd,onOpenChange(Yd){gd.value=Yd},onOpen:Ud,onClose:jd,onDismiss:Gd,hasSelectionRef:Cd,isPointerDownOnContentRef:wd,isPointerInTransitRef:Nd,triggerElement:Ld}),(Yd,zd)=>(openBlock(),createBlock(unref(kt$4),null,{default:withCtx(()=>[renderSlot(Yd.$slots,"default",{open:unref(gd)})]),_:3}))}});function An$3(Ra){return ed=>ed.pointerType==="touch"?void 0:Ra()}function mc$1(Ra){const ed=[],ud=document.createTreeWalker(Ra,NodeFilter.SHOW_ELEMENT,{acceptNode:dd=>dd.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;ud.nextNode();)ed.push(ud.currentNode);return ed}const Ah=defineComponent({__name:"HoverCardTrigger",props:{asChild:{type:Boolean},as:{default:"a"}},setup(Ra){const{forwardRef:ed,currentElement:ud}=R$6(),dd=xo$4();dd.triggerElement=ud;function hd(){setTimeout(()=>{!dd.isPointerInTransitRef.value&&!dd.open.value&&dd.onClose()},0)}return(md,gd)=>(openBlock(),createBlock(unref(Mt$4),{"as-child":""},{default:withCtx(()=>[createVNode(unref(O$4),{ref:unref(ed),"as-child":md.asChild,as:md.as,"data-state":unref(dd).open.value?"open":"closed","data-grace-area-trigger":"",onPointerenter:gd[0]||(gd[0]=yd=>unref(An$3)(unref(dd).onOpen)(yd)),onPointerleave:gd[1]||(gd[1]=yd=>unref(An$3)(hd)(yd)),onFocus:gd[2]||(gd[2]=yd=>unref(dd).onOpen()),onBlur:gd[3]||(gd[3]=yd=>unref(dd).onClose())},{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},8,["as-child","as","data-state"])]),_:3}))}}),Oh=defineComponent({__name:"HoverCardPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createBlock(unref(rt$3),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),hc$1=defineComponent({__name:"HoverCardContentImpl",props:{side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=Ot$3(ud),{forwardRef:md,currentElement:gd}=R$6(),yd=xo$4(),{isPointerInTransit:vd,onPointerExit:Cd}=Fl$3(yd.triggerElement,gd);mi$2(yd.isPointerInTransitRef,vd,{direction:"rtl"}),Cd(()=>{yd.onClose()});const wd=ref$1(!1);let Nd;watchEffect(Ud=>{if(wd.value){const jd=document.body;Nd=jd.style.userSelect||jd.style.webkitUserSelect,jd.style.userSelect="none",jd.style.webkitUserSelect="none",Ud(()=>{jd.style.userSelect=Nd,jd.style.webkitUserSelect=Nd})}});function Ld(){wd.value=!1,yd.isPointerDownOnContentRef.value=!1,nextTick$1(()=>{var Ud;((Ud=document.getSelection())==null?void 0:Ud.toString())!==""&&(yd.hasSelectionRef.value=!0)})}return onMounted(()=>{gd.value&&(document.addEventListener("pointerup",Ld),mc$1(gd.value).forEach(Ud=>Ud.setAttribute("tabindex","-1")))}),onUnmounted(()=>{document.removeEventListener("pointerup",Ld),yd.hasSelectionRef.value=!1,yd.isPointerDownOnContentRef.value=!1}),(Ud,jd)=>(openBlock(),createBlock(unref(Ct$4),{"as-child":"","disable-outside-pointer-events":!1,onEscapeKeyDown:jd[1]||(jd[1]=Gd=>dd("escapeKeyDown",Gd)),onPointerDownOutside:jd[2]||(jd[2]=Gd=>dd("pointerDownOutside",Gd)),onFocusOutside:jd[3]||(jd[3]=withModifiers(Gd=>dd("focusOutside",Gd),["prevent"])),onDismiss:unref(yd).onDismiss},{default:withCtx(()=>[createVNode(unref(It$3),mergeProps({...unref(hd),...Ud.$attrs},{ref:unref(md),"data-state":unref(yd).open.value?"open":"closed",style:{userSelect:wd.value?"text":void 0,WebkitUserSelect:wd.value?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"},onPointerdown:jd[0]||(jd[0]=Gd=>{Gd.currentTarget.contains(Gd.target)&&(wd.value=!0),unref(yd).hasSelectionRef.value=!1,unref(yd).isPointerDownOnContentRef.value=!0})}),{default:withCtx(()=>[renderSlot(Ud.$slots,"default")]),_:3},16,["data-state","style"])]),_:3},8,["onDismiss"]))}}),kh=defineComponent({__name:"HoverCardContent",props:{forceMount:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside"],setup(Ra,{emit:ed}){const ud=Se$6(Ra,ed),{forwardRef:dd}=R$6(),hd=xo$4();return(md,gd)=>(openBlock(),createBlock(unref(Pe$6),{present:md.forceMount||unref(hd).open.value},{default:withCtx(()=>[createVNode(hc$1,mergeProps(unref(ud),{ref:unref(dd),onPointerenter:gd[0]||(gd[0]=yd=>unref(An$3)(unref(hd).onOpen)(yd))}),{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},16)]),_:3},8,["present"]))}}),Vh=defineComponent({__name:"Label",props:{for:{},asChild:{type:Boolean},as:{default:"label"}},setup(Ra){const ed=Ra;return R$6(),(ud,dd)=>(openBlock(),createBlock(unref(O$4),mergeProps(ed,{onMousedown:dd[0]||(dd[0]=hd=>{!hd.defaultPrevented&&hd.detail>1&&hd.preventDefault()})}),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),[nn$3,Vc$2]=te$5("MenubarRoot"),Uh=defineComponent({__name:"MenubarRoot",props:{modelValue:{},defaultValue:{},dir:{},loop:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,{forwardRef:hd,currentElement:md}=R$6(),{createCollection:gd}=Fe$5("menubar");gd(md);const yd=ne$5(ud,"modelValue",dd,{defaultValue:ud.defaultValue??"",passive:ud.modelValue===void 0}),vd=ref$1(null),{dir:Cd,loop:wd}=toRefs(ud),Nd=we$5(Cd);return Vc$2({modelValue:yd,dir:Nd,loop:wd,onMenuOpen:Ld=>{yd.value=Ld,vd.value=Ld},onMenuClose:()=>{yd.value=""},onMenuToggle:Ld=>{yd.value=yd.value?"":Ld,vd.value=Ld}}),(Ld,Ud)=>(openBlock(),createBlock(unref(Ft$4),{"current-tab-stop-id":vd.value,"onUpdate:currentTabStopId":Ud[0]||(Ud[0]=jd=>vd.value=jd),orientation:"horizontal",loop:unref(wd),dir:unref(Nd),"as-child":""},{default:withCtx(()=>[createVNode(unref(O$4),{ref:unref(hd),role:"menubar"},{default:withCtx(()=>[renderSlot(Ld.$slots,"default",{modelValue:unref(yd)})]),_:3},512)]),_:3},8,["current-tab-stop-id","loop","dir"]))}}),[So$1,Fc$2]=te$5("MenubarMenu"),Gh=defineComponent({__name:"MenubarMenu",props:{value:{}},setup(Ra){const ed=ge$7(Ra.value),ud=nn$3();R$6();const dd=ref$1(),hd=ref$1(!1),md=computed(()=>ud.modelValue.value===ed);return watch(md,()=>{md.value||(hd.value=!1)}),Fc$2({value:ed,triggerElement:dd,triggerId:ed,contentId:"",wasKeyboardTriggerOpenRef:hd}),(gd,yd)=>(openBlock(),createBlock(unref(so$2),{open:md.value,modal:!1,dir:unref(ud).dir.value,"onUpdate:open":yd[0]||(yd[0]=vd=>{vd||unref(ud).onMenuClose()})},{default:withCtx(()=>[renderSlot(gd.$slots,"default")]),_:3},8,["open","dir"]))}}),qh=defineComponent({__name:"MenubarTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const ed=nn$3(),ud=So$1(),{forwardRef:dd,currentElement:hd}=R$6(),md=ref$1(!1),gd=computed(()=>ed.modelValue.value===ud.value);return onMounted(()=>{ud.triggerElement=hd}),(yd,vd)=>(openBlock(),createBlock(unref(Nt$4),{"as-child":"",focusable:!yd.disabled,"tab-stop-id":unref(ud).value},{default:withCtx(()=>[createVNode(unref(Qa$1),{"as-child":""},{default:withCtx(()=>[createVNode(unref(O$4),{id:unref(ud).triggerId,ref:unref(dd),as:yd.as,type:yd.as==="button"?"button":void 0,role:"menuitem","aria-haspopup":"menu","aria-expanded":gd.value,"aria-controls":gd.value?unref(ud).contentId:void 0,"data-highlighted":md.value?"":void 0,"data-state":gd.value?"open":"closed","data-disabled":yd.disabled?"":void 0,disabled:yd.disabled,"data-value":unref(ud).value,"data-radix-vue-collection-item":"",onPointerdown:vd[0]||(vd[0]=Cd=>{!yd.disabled&&Cd.button===0&&Cd.ctrlKey===!1&&(unref(ed).onMenuOpen(unref(ud).value),gd.value||Cd.preventDefault())}),onPointerenter:vd[1]||(vd[1]=()=>{var Cd;unref(ed).modelValue.value&&!gd.value&&(unref(ed).onMenuOpen(unref(ud).value),(Cd=unref(hd))==null||Cd.focus())}),onKeydown:vd[2]||(vd[2]=withKeys(Cd=>{yd.disabled||(["Enter"," "].includes(Cd.key)&&unref(ed).onMenuToggle(unref(ud).value),Cd.key==="ArrowDown"&&unref(ed).onMenuOpen(unref(ud).value),["Enter"," ","ArrowDown"].includes(Cd.key)&&(unref(ud).wasKeyboardTriggerOpenRef.value=!0,Cd.preventDefault()))},["enter","space","arrow-down"])),onFocus:vd[3]||(vd[3]=Cd=>md.value=!0),onBlur:vd[4]||(vd[4]=Cd=>md.value=!1)},{default:withCtx(()=>[renderSlot(yd.$slots,"default")]),_:3},8,["id","as","type","aria-expanded","aria-controls","data-highlighted","data-state","data-disabled","disabled","data-value"])]),_:3})]),_:3},8,["focusable","tab-stop-id"]))}}),Yh=defineComponent({__name:"MenubarPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createBlock(unref(vo$1),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),Xh=defineComponent({__name:"MenubarContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},side:{},sideOffset:{},align:{default:"start"},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(Ra,{emit:ed}){const ud=Se$6(Ra,ed);R$6();const dd=nn$3(),hd=So$1();hd.contentId||(hd.contentId=ge$7(void 0,"radix-vue-menubar-content"));const{injectCollection:md}=Fe$5("menubar"),gd=md(),yd=ref$1(!1);function vd(Cd){const wd=Cd.target.hasAttribute("data-radix-menubar-subtrigger"),Nd=(dd.dir.value==="rtl"?"ArrowRight":"ArrowLeft")===Cd.key;if(!Nd&&wd)return;let Ld=gd.value.map(Gd=>Gd.dataset.value);Nd&&Ld.reverse();const Ud=Ld.indexOf(hd.value);Ld=dd.loop.value?Xn$4(Ld,Ud+1):Ld.slice(Ud+1);const[jd]=Ld;jd&&dd.onMenuOpen(jd)}return(Cd,wd)=>(openBlock(),createBlock(unref(fo$2),mergeProps(unref(ud),{id:unref(hd).contentId,"data-radix-menubar-content":"","aria-labelledby":unref(hd).triggerId,style:{"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"},onCloseAutoFocus:wd[0]||(wd[0]=Nd=>{var Ld;!unref(dd).modelValue.value&&!yd.value&&((Ld=unref(hd).triggerElement.value)==null||Ld.focus()),yd.value=!1,Nd.preventDefault()}),onFocusOutside:wd[1]||(wd[1]=Nd=>{const Ld=Nd.target;unref(gd).some(Ud=>Ud.contains(Ld))&&Nd.preventDefault()}),onInteractOutside:wd[2]||(wd[2]=Nd=>{yd.value=!0}),onEntryFocus:wd[3]||(wd[3]=Nd=>{unref(hd).wasKeyboardTriggerOpenRef.value||Nd.preventDefault()}),onKeydown:withKeys(vd,["arrow-right","arrow-left"])}),{default:withCtx(()=>[renderSlot(Cd.$slots,"default")]),_:3},16,["id","aria-labelledby"]))}}),Jh=defineComponent({__name:"MenubarItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(Ra,{emit:ed}){const ud=Ra,dd=Te$5(ed);return R$6(),(hd,md)=>(openBlock(),createBlock(unref(xa$3),normalizeProps(guardReactiveProps({...ud,...unref(dd)})),{default:withCtx(()=>[renderSlot(hd.$slots,"default")]),_:3},16))}}),ey=defineComponent({__name:"MenubarSeparator",props:{asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra;return R$6(),(ud,dd)=>(openBlock(),createBlock(unref(yo$3),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),ty=defineComponent({__name:"MenubarCheckboxItem",props:{checked:{type:[Boolean,String]},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select","update:checked"],setup(Ra,{emit:ed}){const ud=Ra,dd=Te$5(ed);return R$6(),(hd,md)=>(openBlock(),createBlock(unref(co$4),normalizeProps(guardReactiveProps({...ud,...unref(dd)})),{default:withCtx(()=>[renderSlot(hd.$slots,"default")]),_:3},16))}}),ay$1=defineComponent({__name:"MenubarItemIndicator",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra;return R$6(),(ud,dd)=>(openBlock(),createBlock(unref(uo$3),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),sy=defineComponent({__name:"MenubarSub",props:{defaultOpen:{type:Boolean},open:{type:Boolean,default:void 0}},emits:["update:open"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed;R$6();const hd=ne$5(ud,"open",dd,{defaultValue:ud.defaultOpen??!1,passive:ud.open===void 0});return(md,gd)=>(openBlock(),createBlock(unref(go$3),{open:unref(hd),"onUpdate:open":gd[0]||(gd[0]=yd=>isRef(hd)?hd.value=yd:null)},{default:withCtx(()=>[renderSlot(md.$slots,"default",{open:unref(hd)})]),_:3},8,["open"]))}}),ry=defineComponent({__name:"MenubarSubContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},sideOffset:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:ed}){const ud=Se$6(Ra,ed);R$6();const{injectCollection:dd}=Fe$5("menubar"),hd=nn$3(),md=So$1(),gd=dd();function yd(vd){if(vd.target.hasAttribute("data-radix-menubar-subtrigger"))return;let Cd=gd.value.map(Ld=>Ld.dataset.value);const wd=Cd.indexOf(md.value);Cd=hd.loop.value?Xn$4(Cd,wd+1):Cd.slice(wd+1);const[Nd]=Cd;Nd&&hd.onMenuOpen(Nd)}return(vd,Cd)=>(openBlock(),createBlock(unref(bo$3),mergeProps(unref(ud),{"data-radix-menubar-content":"",style:{"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"},onKeydown:withKeys(yd,["arrow-right"])}),{default:withCtx(()=>[renderSlot(vd.$slots,"default")]),_:3},16))}}),iy=defineComponent({__name:"MenubarSubTrigger",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra;return R$6(),(ud,dd)=>(openBlock(),createBlock(unref(Co$1),mergeProps(ed,{"data-radix-menubar-subtrigger":""}),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}});function bs$3(Ra){const{disabled:ed}=Ra,ud=ref$1(),dd=ua$2(),hd=()=>window.clearTimeout(ud.value),md=Ld=>{hd(),!ed.value&&(dd.trigger(),ud.value=window.setTimeout(()=>{md(60)},Ld))},gd=()=>{md(400)},yd=()=>{hd()},vd=ref$1(!1),Cd=computed(()=>$e$4(Ra.target)),wd=Ld=>{Ld.button!==0||vd.value||(Ld.preventDefault(),vd.value=!0,gd())},Nd=()=>{vd.value=!1,yd()};return Je$3&&(He$4(Cd||window,"pointerdown",wd),He$4(window,"pointerup",Nd),He$4(window,"pointercancel",Nd)),{isPressed:vd,onTrigger:dd.on}}function Qo$3(Ra,ed=ref$1({})){return $l$3(()=>new $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5(Ra.value,ed.value))}function Wc$2(Ra,ed=ref$1({})){return $l$3(()=>new $6c7bd7858deea686$export$cd11ab140839f11d(Ra.value,ed.value))}function el$3(Ra,ed,ud){let dd=Ra==="+"?ed+ud:ed-ud;if(ed%1!==0||ud%1!==0){const hd=ed.toString().split("."),md=ud.toString().split("."),gd=hd[1]&&hd[1].length||0,yd=md[1]&&md[1].length||0,vd=10**Math.max(gd,yd);ed=Math.round(ed*vd),ud=Math.round(ud*vd),dd=Ra==="+"?ed+ud:ed-ud,dd/=vd}return dd}const jc$2=["value","name","disabled","required"],[Do$3,Uc$2]=te$5("NumberFieldRoot"),gy$1=defineComponent({inheritAttrs:!1,__name:"NumberFieldRoot",props:{defaultValue:{default:void 0},modelValue:{},min:{},max:{},step:{default:1},formatOptions:{},locale:{default:"en-US"},disabled:{type:Boolean},required:{type:Boolean},name:{},id:{},asChild:{type:Boolean},as:{default:"div"}},emits:["update:modelValue"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,{disabled:hd,min:md,max:gd,step:yd,locale:vd,formatOptions:Cd,id:wd}=toRefs(ud),Nd=ne$5(ud,"modelValue",dd,{defaultValue:ud.defaultValue,passive:ud.modelValue===void 0}),{primitiveElement:Ld,currentElement:Ud}=Re$7(),jd=at$6(Ud),Gd=ref$1(),Yd=computed(()=>Df(Nd.value)===md.value||(md.value&&!isNaN(Nd.value)?el$3("-",Nd.value,yd.value)Df(Nd.value)===gd.value||(gd.value&&!isNaN(Nd.value)?el$3("+",Nd.value,yd.value)>gd.value:!1));function qd(Cf,If=1){var Ff;const oh=mf.parse(((Ff=Gd.value)==null?void 0:Ff.value)??"");ud.disabled||(isNaN(oh)?Nd.value=md.value??0:Cf==="increase"?Nd.value=Df(oh+(yd.value??1)*If):Nd.value=Df(oh-(yd.value??1)*If))}function Wd(Cf=1){qd("increase",Cf)}function Xd(Cf=1){qd("decrease",Cf)}function Jd(Cf){Cf==="min"&&md.value!==void 0?Nd.value=Df(md.value):Cf==="max"&&gd.value!==void 0&&(Nd.value=Df(gd.value))}const Zd=Qo$3(vd,Cd),mf=Wc$2(vd,Cd),xf=computed(()=>Zd.resolvedOptions().maximumFractionDigits>0?"decimal":"numeric"),_f=Qo$3(vd,Cd),vf=computed(()=>isNaN(Nd.value)?"":_f.format(Nd.value));function gf(Cf){return mf.isValidPartialNumber(Cf,md.value,gd.value)}function Af(Cf){Gd.value&&(Gd.value.value=Cf)}function Df(Cf){let If;return yd.value===void 0||isNaN(yd.value)?If=Ut$4(Cf,md.value,gd.value):If=Wr$4(Cf,md.value,gd.value,yd.value),If=mf.parse(Zd.format(If)),If}function kf(Cf){const If=mf.parse(Cf);return Nd.value=Df(If),Cf.length?Af(vf.value):Af(Cf)}return Uc$2({modelValue:Nd,handleDecrease:Xd,handleIncrease:Wd,handleMinMaxValue:Jd,inputMode:xf,inputEl:Gd,onInputElement:Cf=>Gd.value=Cf,textValue:vf,validate:gf,applyInputValue:kf,disabled:hd,max:gd,min:md,isDecreaseDisabled:Yd,isIncreaseDisabled:zd,id:wd}),(Cf,If)=>(openBlock(),createElementBlock(Fragment,null,[createVNode(unref(O$4),mergeProps(Cf.$attrs,{ref_key:"primitiveElement",ref:Ld,role:"group",as:Cf.as,"as-child":Cf.asChild,"data-disabled":unref(hd)?"":void 0}),{default:withCtx(()=>[renderSlot(Cf.$slots,"default",{modelValue:unref(Nd),textValue:vf.value})]),_:3},16,["as","as-child","data-disabled"]),unref(jd)?(openBlock(),createElementBlock("input",{key:0,type:"text",tabindex:"-1","aria-hidden":"true",value:unref(Nd),name:ud.name,disabled:ud.disabled,required:ud.required,style:{transform:"translateX(-100%)",position:"absolute",pointerEvents:"none",opacity:0,margin:0}},null,8,jc$2)):createCommentVNode("",!0)],64))}}),by$2=defineComponent({__name:"NumberFieldInput",props:{asChild:{type:Boolean},as:{default:"input"}},setup(Ra){const ed=Ra,{primitiveElement:ud,currentElement:dd}=Re$7(),hd=Do$3();function md(vd){vd.target===me$4()&&(Math.abs(vd.deltaY)<=Math.abs(vd.deltaX)||(vd.preventDefault(),vd.deltaY>0?hd.handleIncrease():vd.deltaY<0&&hd.handleDecrease()))}onMounted(()=>{hd.onInputElement(dd.value)});const gd=ref$1(hd.textValue.value);watch(()=>hd.textValue.value,()=>{gd.value=hd.textValue.value},{immediate:!0,deep:!0});function yd(){requestAnimationFrame(()=>{gd.value=hd.textValue.value})}return(vd,Cd)=>(openBlock(),createBlock(unref(O$4),mergeProps(ed,{id:unref(hd).id.value,ref_key:"primitiveElement",ref:ud,value:gd.value,role:"spinbutton",type:"text",tabindex:"0",inputmode:unref(hd).inputMode.value,disabled:unref(hd).disabled.value?"":void 0,"data-disabled":unref(hd).disabled.value?"":void 0,autocomplete:"off",autocorrect:"off",spellcheck:"false","aria-roledescription":"Number field","aria-valuenow":unref(hd).modelValue.value,"aria-valuemin":unref(hd).min.value,"aria-valuemax":unref(hd).max.value,onKeydown:[Cd[0]||(Cd[0]=withKeys(withModifiers(wd=>unref(hd).handleIncrease(),["prevent"]),["up"])),Cd[1]||(Cd[1]=withKeys(withModifiers(wd=>unref(hd).handleDecrease(),["prevent"]),["down"])),Cd[2]||(Cd[2]=withKeys(withModifiers(wd=>unref(hd).handleIncrease(10),["prevent"]),["page-up"])),Cd[3]||(Cd[3]=withKeys(withModifiers(wd=>unref(hd).handleDecrease(10),["prevent"]),["page-down"])),Cd[4]||(Cd[4]=withKeys(withModifiers(wd=>unref(hd).handleMinMaxValue("min"),["prevent"]),["home"])),Cd[5]||(Cd[5]=withKeys(withModifiers(wd=>unref(hd).handleMinMaxValue("max"),["prevent"]),["end"])),Cd[8]||(Cd[8]=withKeys(wd=>{var Nd;return unref(hd).applyInputValue((Nd=wd.target)==null?void 0:Nd.value)},["enter"]))],onWheel:md,onBeforeinput:Cd[6]||(Cd[6]=wd=>{const Nd=wd.target;let Ld=Nd.value.slice(0,Nd.selectionStart??void 0)+(wd.data??"")+Nd.value.slice(Nd.selectionEnd??void 0);unref(hd).validate(Ld)||wd.preventDefault()}),onInput:Cd[7]||(Cd[7]=wd=>{const Nd=wd.target;gd.value=Nd.value}),onChange:yd,onBlur:Cd[9]||(Cd[9]=wd=>{var Nd;return unref(hd).applyInputValue((Nd=wd.target)==null?void 0:Nd.value)})}),{default:withCtx(()=>[renderSlot(vd.$slots,"default")]),_:3},16,["id","value","inputmode","disabled","data-disabled","aria-valuenow","aria-valuemin","aria-valuemax"]))}}),Cy=defineComponent({__name:"NumberFieldIncrement",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const ed=Ra,ud=Do$3(),dd=computed(()=>{var vd;return((vd=ud.disabled)==null?void 0:vd.value)||ed.disabled||ud.isIncreaseDisabled.value}),{primitiveElement:hd,currentElement:md}=Re$7(),{isPressed:gd,onTrigger:yd}=bs$3({target:md,disabled:dd});return yd(()=>{ud.handleIncrease()}),(vd,Cd)=>(openBlock(),createBlock(unref(O$4),mergeProps(ed,{ref_key:"primitiveElement",ref:hd,tabindex:"-1","aria-label":"Increase",type:vd.as==="button"?"button":void 0,style:{userSelect:unref(gd)?"none":void 0},disabled:dd.value?"":void 0,"data-disabled":dd.value?"":void 0,"data-pressed":unref(gd)?"true":void 0,onContextmenu:Cd[0]||(Cd[0]=withModifiers(()=>{},["prevent"]))}),{default:withCtx(()=>[renderSlot(vd.$slots,"default")]),_:3},16,["type","style","disabled","data-disabled","data-pressed"]))}}),wy$1=defineComponent({__name:"NumberFieldDecrement",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const ed=Ra,ud=Do$3(),dd=computed(()=>{var vd;return((vd=ud.disabled)==null?void 0:vd.value)||ed.disabled||ud.isDecreaseDisabled.value}),{primitiveElement:hd,currentElement:md}=Re$7(),{isPressed:gd,onTrigger:yd}=bs$3({target:md,disabled:dd});return yd(()=>{ud.handleDecrease()}),(vd,Cd)=>(openBlock(),createBlock(unref(O$4),mergeProps(ed,{ref_key:"primitiveElement",ref:hd,tabindex:"-1","aria-label":"Decrease",type:vd.as==="button"?"button":void 0,style:{userSelect:unref(gd)?"none":void 0},disabled:dd.value?"":void 0,"data-disabled":dd.value?"":void 0,"data-pressed":unref(gd)?"true":void 0,onContextmenu:Cd[0]||(Cd[0]=withModifiers(()=>{},["prevent"]))}),{default:withCtx(()=>[renderSlot(vd.$slots,"default")]),_:3},16,["type","style","disabled","data-disabled","data-pressed"]))}}),Nf=["default-value"],Lf=defineComponent({__name:"BubbleSelect",props:{autocomplete:{},autofocus:{type:Boolean},disabled:{type:Boolean},form:{},multiple:{type:Boolean},name:{},required:{type:Boolean},size:{},value:{}},setup(Ra){const ed=Ra,{value:ud}=toRefs(ed),dd=ref$1();return(hd,md)=>(openBlock(),createBlock(unref(Jt$4),{"as-child":""},{default:withCtx(()=>[withDirectives(createBaseVNode("select",mergeProps({ref_key:"selectElement",ref:dd},ed,{"onUpdate:modelValue":md[0]||(md[0]=gd=>isRef(ud)?ud.value=gd:null),"default-value":unref(ud)}),[renderSlot(hd.$slots,"default")],16,Nf),[[vModelSelect,unref(ud)]])]),_:3}))}}),zf={key:0,value:""},[xt$1,Rs$1]=te$5("SelectRoot"),[Kf,Hf$1]=te$5("SelectRoot"),Ky=defineComponent({__name:"SelectRoot",props:{open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean},defaultValue:{default:""},modelValue:{default:void 0},dir:{},name:{},autocomplete:{},disabled:{type:Boolean},required:{type:Boolean}},emits:["update:modelValue","update:open"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=ne$5(ud,"modelValue",dd,{defaultValue:ud.defaultValue,passive:ud.modelValue===void 0}),md=ne$5(ud,"open",dd,{defaultValue:ud.defaultOpen,passive:ud.open===void 0}),gd=ref$1(),yd=ref$1(),vd=ref$1({x:0,y:0}),Cd=ref$1(!1),{required:wd,disabled:Nd,dir:Ld}=toRefs(ud),Ud=we$5(Ld);Rs$1({triggerElement:gd,onTriggerChange:zd=>{gd.value=zd},valueElement:yd,onValueElementChange:zd=>{yd.value=zd},valueElementHasChildren:Cd,onValueElementHasChildrenChange:zd=>{Cd.value=zd},contentId:"",modelValue:hd,onValueChange:zd=>{hd.value=zd},open:md,required:wd,onOpenChange:zd=>{md.value=zd},dir:Ud,triggerPointerDownPosRef:vd,disabled:Nd});const jd=at$6(gd),Gd=ref$1(new Set),Yd=computed(()=>Array.from(Gd.value).map(zd=>{var qd;return(qd=zd.props)==null?void 0:qd.value}).join(";"));return Hf$1({onNativeOptionAdd:zd=>{Gd.value.add(zd)},onNativeOptionRemove:zd=>{Gd.value.delete(zd)}}),(zd,qd)=>(openBlock(),createBlock(unref(kt$4),null,{default:withCtx(()=>[renderSlot(zd.$slots,"default",{modelValue:unref(hd),open:unref(md)}),unref(jd)?(openBlock(),createBlock(Lf,mergeProps({key:Yd.value},zd.$attrs,{"aria-hidden":"true",tabindex:"-1",required:unref(wd),name:zd.name,autocomplete:zd.autocomplete,disabled:unref(Nd),value:unref(hd),onChange:qd[0]||(qd[0]=Wd=>hd.value=Wd.target.value)}),{default:withCtx(()=>[unref(hd)===void 0?(openBlock(),createElementBlock("option",zf)):createCommentVNode("",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(Array.from(Gd.value),Wd=>(openBlock(),createBlock(resolveDynamicComponent(Wd),mergeProps({ref_for:!0},Wd.props,{key:Wd.key??""}),null,16))),128))]),_:1},16,["required","name","autocomplete","disabled","value"])):createCommentVNode("",!0)]),_:3}))}}),Wf=[" ","Enter","ArrowUp","ArrowDown"],jf=[" ","Enter"],qe$3=10;function As$3(Ra){return Ra===""||ht$3(Ra)}const Hy=defineComponent({__name:"SelectTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const ed=Ra,ud=xt$1(),dd=computed(()=>{var Ud;return((Ud=ud.disabled)==null?void 0:Ud.value)||ed.disabled}),{forwardRef:hd,currentElement:md}=R$6();ud.contentId||(ud.contentId=ge$7(void 0,"radix-vue-select-content")),onMounted(()=>{ud.triggerElement=md});const{injectCollection:gd}=Fe$5(),yd=gd(),{search:vd,handleTypeaheadSearch:Cd,resetTypeahead:wd}=ba$3(yd);function Nd(){dd.value||(ud.onOpenChange(!0),wd())}function Ld(Ud){Nd(),ud.triggerPointerDownPosRef.value={x:Math.round(Ud.pageX),y:Math.round(Ud.pageY)}}return(Ud,jd)=>(openBlock(),createBlock(unref(Mt$4),{"as-child":""},{default:withCtx(()=>{var Gd,Yd,zd,qd;return[createVNode(unref(O$4),{ref:unref(hd),role:"combobox",type:Ud.as==="button"?"button":void 0,"aria-controls":unref(ud).contentId,"aria-expanded":unref(ud).open.value||!1,"aria-required":(Gd=unref(ud).required)==null?void 0:Gd.value,"aria-autocomplete":"none",disabled:dd.value,dir:(Yd=unref(ud))==null?void 0:Yd.dir.value,"data-state":(zd=unref(ud))!=null&&zd.open.value?"open":"closed","data-disabled":dd.value?"":void 0,"data-placeholder":unref(As$3)((qd=unref(ud).modelValue)==null?void 0:qd.value)?"":void 0,"as-child":Ud.asChild,as:Ud.as,onClick:jd[0]||(jd[0]=Wd=>{var Xd;(Xd=Wd==null?void 0:Wd.currentTarget)==null||Xd.focus()}),onPointerdown:jd[1]||(jd[1]=Wd=>{if(Wd.pointerType==="touch")return Wd.preventDefault();const Xd=Wd.target;Xd.hasPointerCapture(Wd.pointerId)&&Xd.releasePointerCapture(Wd.pointerId),Wd.button===0&&Wd.ctrlKey===!1&&(Ld(Wd),Wd.preventDefault())}),onPointerup:jd[2]||(jd[2]=withModifiers(Wd=>{Wd.pointerType==="touch"&&Ld(Wd)},["prevent"])),onKeydown:jd[3]||(jd[3]=Wd=>{const Xd=unref(vd)!=="";!(Wd.ctrlKey||Wd.altKey||Wd.metaKey)&&Wd.key.length===1&&Xd&&Wd.key===" "||(unref(Cd)(Wd.key),unref(Wf).includes(Wd.key)&&(Nd(),Wd.preventDefault()))})},{default:withCtx(()=>[renderSlot(Ud.$slots,"default")]),_:3},8,["type","aria-controls","aria-expanded","aria-required","disabled","dir","data-state","data-disabled","data-placeholder","as-child","as"])]}),_:3}))}}),Wy=defineComponent({__name:"SelectPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createBlock(unref(rt$3),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),[Io$2,Uf]=te$5("SelectItemAlignedPosition"),Gf=defineComponent({inheritAttrs:!1,__name:"SelectItemAlignedPosition",props:{asChild:{type:Boolean},as:{}},emits:["placed"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,{injectCollection:hd}=Fe$5(),md=xt$1(),gd=St$4(),yd=hd(),vd=ref$1(!1),Cd=ref$1(!0),wd=ref$1(),{forwardRef:Nd,currentElement:Ld}=R$6(),{viewport:Ud,selectedItem:jd,selectedItemText:Gd,focusSelectedItem:Yd}=gd;function zd(){if(md.triggerElement.value&&md.valueElement.value&&wd.value&&Ld.value&&Ud!=null&&Ud.value&&jd!=null&&jd.value&&Gd!=null&&Gd.value){const Xd=md.triggerElement.value.getBoundingClientRect(),Jd=Ld.value.getBoundingClientRect(),Zd=md.valueElement.value.getBoundingClientRect(),mf=Gd.value.getBoundingClientRect();if(md.dir.value!=="rtl"){const Of=mf.left-Jd.left,Rf=Zd.left-Of,yh=Xd.left-Rf,Ph=Xd.width+yh,sm=Math.max(Ph,Jd.width),th=window.innerWidth-qe$3,sh=Ut$4(Rf,qe$3,Math.max(qe$3,th-sm));wd.value.style.minWidth=`${Ph}px`,wd.value.style.left=`${sh}px`}else{const Of=Jd.right-mf.right,Rf=window.innerWidth-Zd.right-Of,yh=window.innerWidth-Xd.right-Rf,Ph=Xd.width+yh,sm=Math.max(Ph,Jd.width),th=window.innerWidth-qe$3,sh=Ut$4(Rf,qe$3,Math.max(qe$3,th-sm));wd.value.style.minWidth=`${Ph}px`,wd.value.style.right=`${sh}px`}const xf=yd.value,_f=window.innerHeight-qe$3*2,vf=Ud.value.scrollHeight,gf=window.getComputedStyle(Ld.value),Af=Number.parseInt(gf.borderTopWidth,10),Df=Number.parseInt(gf.paddingTop,10),kf=Number.parseInt(gf.borderBottomWidth,10),Cf=Number.parseInt(gf.paddingBottom,10),If=Af+Df+vf+Cf+kf,Ff=Math.min(jd.value.offsetHeight*5,If),oh=window.getComputedStyle(Ud.value),Eh=Number.parseInt(oh.paddingTop,10),_h=Number.parseInt(oh.paddingBottom,10),Mh=Xd.top+Xd.height/2-qe$3,lh=_f-Mh,rh=jd.value.offsetHeight/2,mh=jd.value.offsetTop+rh,xh=Af+Df+mh,Sh=If-xh;if(xh<=Mh){const Of=jd.value===xf[xf.length-1];wd.value.style.bottom="0px";const Rf=Ld.value.clientHeight-Ud.value.offsetTop-Ud.value.offsetHeight,yh=Math.max(lh,rh+(Of?_h:0)+Rf+kf),Ph=xh+yh;wd.value.style.height=`${Ph}px`}else{const Of=jd.value===xf[0];wd.value.style.top="0px";const Rf=Math.max(Mh,Af+Ud.value.offsetTop+(Of?Eh:0)+rh)+Sh;wd.value.style.height=`${Rf}px`,Ud.value.scrollTop=xh-Mh+Ud.value.offsetTop}wd.value.style.margin=`${qe$3}px 0`,wd.value.style.minHeight=`${Ff}px`,wd.value.style.maxHeight=`${_f}px`,dd("placed"),requestAnimationFrame(()=>vd.value=!0)}}const qd=ref$1("");onMounted(async()=>{await nextTick$1(),zd(),Ld.value&&(qd.value=window.getComputedStyle(Ld.value).zIndex)});function Wd(Xd){Xd&&Cd.value===!0&&(zd(),Yd==null||Yd(),Cd.value=!1)}return Uf({contentWrapper:wd,shouldExpandOnScrollRef:vd,onScrollButtonChange:Wd}),(Xd,Jd)=>(openBlock(),createElementBlock("div",{ref_key:"contentWrapperElement",ref:wd,style:normalizeStyle({display:"flex",flexDirection:"column",position:"fixed",zIndex:qd.value})},[createVNode(unref(O$4),mergeProps({ref:unref(Nd),style:{boxSizing:"border-box",maxHeight:"100%"}},{...Xd.$attrs,...ud}),{default:withCtx(()=>[renderSlot(Xd.$slots,"default")]),_:3},16)],4))}}),qf=defineComponent({__name:"SelectPopperPosition",props:{side:{},sideOffset:{},align:{default:"start"},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{default:qe$3},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ot$3(Ra);return(ud,dd)=>(openBlock(),createBlock(unref(It$3),mergeProps(unref(ed),{style:{boxSizing:"border-box","--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),zt$1={onViewportChange:()=>{},itemTextRefCallback:()=>{},itemRefCallback:()=>{}},[St$4,Yf]=te$5("SelectContent"),Xf=defineComponent({__name:"SelectContentImpl",props:{position:{default:"item-aligned"},bodyLock:{type:Boolean,default:!0},side:{},sideOffset:{},align:{default:"start"},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=xt$1();Yn$3(),ya$1(ud.bodyLock);const{createCollection:md}=Fe$5(),gd=ref$1();ga$2(gd);const yd=md(gd),{search:vd,handleTypeaheadSearch:Cd}=ba$3(yd),wd=ref$1(),Nd=ref$1(),Ld=ref$1(),Ud=ref$1(!1),jd=ref$1(!1);function Gd(){Nd.value&&gd.value&&In$2([Nd.value,gd.value])}watch(Ud,()=>{Gd()});const{onOpenChange:Yd,triggerPointerDownPosRef:zd}=hd;watchEffect(Jd=>{if(!gd.value)return;let Zd={x:0,y:0};const mf=_f=>{var vf,gf;Zd={x:Math.abs(Math.round(_f.pageX)-(((vf=zd.value)==null?void 0:vf.x)??0)),y:Math.abs(Math.round(_f.pageY)-(((gf=zd.value)==null?void 0:gf.y)??0))}},xf=_f=>{var vf;_f.pointerType!=="touch"&&(Zd.x<=10&&Zd.y<=10?_f.preventDefault():(vf=gd.value)!=null&&vf.contains(_f.target)||Yd(!1),document.removeEventListener("pointermove",mf),zd.value=null)};zd.value!==null&&(document.addEventListener("pointermove",mf),document.addEventListener("pointerup",xf,{capture:!0,once:!0})),Jd(()=>{document.removeEventListener("pointermove",mf),document.removeEventListener("pointerup",xf,{capture:!0})})});function qd(Jd){const Zd=Jd.ctrlKey||Jd.altKey||Jd.metaKey;if(Jd.key==="Tab"&&Jd.preventDefault(),!Zd&&Jd.key.length===1&&Cd(Jd.key),["ArrowUp","ArrowDown","Home","End"].includes(Jd.key)){let mf=yd.value;if(["ArrowUp","End"].includes(Jd.key)&&(mf=mf.slice().reverse()),["ArrowUp","ArrowDown"].includes(Jd.key)){const xf=Jd.target,_f=mf.indexOf(xf);mf=mf.slice(_f+1)}setTimeout(()=>In$2(mf)),Jd.preventDefault()}}const Wd=computed(()=>ud.position==="popper"?ud:{}),Xd=Ot$3(Wd.value);return Yf({content:gd,viewport:wd,onViewportChange:Jd=>{wd.value=Jd},itemRefCallback:(Jd,Zd,mf)=>{var xf,_f;const vf=!jd.value&&!mf;(((xf=hd.modelValue)==null?void 0:xf.value)!==void 0&&((_f=hd.modelValue)==null?void 0:_f.value)===Zd||vf)&&(Nd.value=Jd,vf&&(jd.value=!0))},selectedItem:Nd,selectedItemText:Ld,onItemLeave:()=>{var Jd;(Jd=gd.value)==null||Jd.focus()},itemTextRefCallback:(Jd,Zd,mf)=>{var xf,_f;const vf=!jd.value&&!mf;(((xf=hd.modelValue)==null?void 0:xf.value)!==void 0&&((_f=hd.modelValue)==null?void 0:_f.value)===Zd||vf)&&(Ld.value=Jd)},focusSelectedItem:Gd,position:ud.position,isPositioned:Ud,searchRef:vd}),(Jd,Zd)=>(openBlock(),createBlock(unref(Za$1),{"as-child":"",onMountAutoFocus:Zd[6]||(Zd[6]=withModifiers(()=>{},["prevent"])),onUnmountAutoFocus:Zd[7]||(Zd[7]=mf=>{var xf;dd("closeAutoFocus",mf),!mf.defaultPrevented&&((xf=unref(hd).triggerElement.value)==null||xf.focus({preventScroll:!0}),mf.preventDefault())})},{default:withCtx(()=>[createVNode(unref(Ct$4),{"as-child":"","disable-outside-pointer-events":"",onFocusOutside:Zd[2]||(Zd[2]=withModifiers(()=>{},["prevent"])),onDismiss:Zd[3]||(Zd[3]=mf=>unref(hd).onOpenChange(!1)),onEscapeKeyDown:Zd[4]||(Zd[4]=mf=>dd("escapeKeyDown",mf)),onPointerDownOutside:Zd[5]||(Zd[5]=mf=>dd("pointerDownOutside",mf))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Jd.position==="popper"?qf:Gf),mergeProps({...Jd.$attrs,...unref(Xd)},{id:unref(hd).contentId,ref:mf=>{gd.value=unref($e$4)(mf)},role:"listbox","data-state":unref(hd).open.value?"open":"closed",dir:unref(hd).dir.value,style:{display:"flex",flexDirection:"column",outline:"none"},onContextmenu:Zd[0]||(Zd[0]=withModifiers(()=>{},["prevent"])),onPlaced:Zd[1]||(Zd[1]=mf=>Ud.value=!0),onKeydown:qd}),{default:withCtx(()=>[renderSlot(Jd.$slots,"default")]),_:3},16,["id","data-state","dir","onKeydown"]))]),_:3})]),_:3}))}}),Zf=defineComponent({inheritAttrs:!1,__name:"SelectProvider",props:{context:{}},setup(Ra){return Rs$1(Ra.context),(ed,ud)=>renderSlot(ed.$slots,"default")}}),Jf={key:1},jy=defineComponent({inheritAttrs:!1,__name:"SelectContent",props:{forceMount:{type:Boolean},position:{},bodyLock:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(Ra,{emit:ed}){const ud=Ra,dd=Se$6(ud,ed),hd=xt$1(),md=ref$1();onMounted(()=>{md.value=new DocumentFragment});const gd=ref$1(),yd=computed(()=>ud.forceMount||hd.open.value);return(vd,Cd)=>{var wd;return yd.value?(openBlock(),createBlock(unref(Pe$6),{key:0,ref_key:"presenceRef",ref:gd,present:!0},{default:withCtx(()=>[createVNode(Xf,normalizeProps(guardReactiveProps({...unref(dd),...vd.$attrs})),{default:withCtx(()=>[renderSlot(vd.$slots,"default")]),_:3},16)]),_:3},512)):!((wd=gd.value)!=null&&wd.present)&&md.value?(openBlock(),createElementBlock("div",Jf,[(openBlock(),createBlock(Teleport,{to:md.value},[createVNode(Zf,{context:unref(hd)},{default:withCtx(()=>[renderSlot(vd.$slots,"default")]),_:3},8,["context"])],8,["to"]))])):createCommentVNode("",!0)}}}),[Os$4,Qf]=te$5("SelectItem"),qy=defineComponent({__name:"SelectItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra,{disabled:ud}=toRefs(ed),dd=xt$1(),hd=St$4(zt$1),{forwardRef:md,currentElement:gd}=R$6(),yd=computed(()=>{var Gd;return((Gd=dd.modelValue)==null?void 0:Gd.value)===ed.value}),vd=ref$1(!1),Cd=ref$1(ed.textValue??""),wd=ge$7(void 0,"radix-vue-select-item-text");async function Nd(Gd){await nextTick$1(),!(Gd!=null&&Gd.defaultPrevented)&&(ud.value||(dd.onValueChange(ed.value),dd.onOpenChange(!1)))}async function Ld(Gd){var Yd;await nextTick$1(),!Gd.defaultPrevented&&(ud.value?(Yd=hd.onItemLeave)==null||Yd.call(hd):Gd.currentTarget.focus({preventScroll:!0}))}async function Ud(Gd){var Yd;await nextTick$1(),!Gd.defaultPrevented&&Gd.currentTarget===me$4()&&((Yd=hd.onItemLeave)==null||Yd.call(hd))}async function jd(Gd){var Yd;await nextTick$1(),!(Gd.defaultPrevented||((Yd=hd.searchRef)==null?void 0:Yd.value)!==""&&Gd.key===" ")&&(jf.includes(Gd.key)&&Nd(),Gd.key===" "&&Gd.preventDefault())}if(ed.value==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return onMounted(()=>{gd.value&&hd.itemRefCallback(gd.value,ed.value,ed.disabled)}),Qf({value:ed.value,disabled:ud,textId:wd,isSelected:yd,onItemTextChange:Gd=>{Cd.value=((Cd.value||(Gd==null?void 0:Gd.textContent))??"").trim()}}),(Gd,Yd)=>(openBlock(),createBlock(unref(O$4),{ref:unref(md),role:"option","data-radix-vue-collection-item":"","aria-labelledby":unref(wd),"data-highlighted":vd.value?"":void 0,"aria-selected":yd.value,"data-state":yd.value?"checked":"unchecked","aria-disabled":unref(ud)||void 0,"data-disabled":unref(ud)?"":void 0,tabindex:unref(ud)?void 0:-1,as:Gd.as,"as-child":Gd.asChild,onFocus:Yd[0]||(Yd[0]=zd=>vd.value=!0),onBlur:Yd[1]||(Yd[1]=zd=>vd.value=!1),onPointerup:Nd,onPointerdown:Yd[2]||(Yd[2]=zd=>{zd.currentTarget.focus({preventScroll:!0})}),onTouchend:Yd[3]||(Yd[3]=withModifiers(()=>{},["prevent","stop"])),onPointermove:Ld,onPointerleave:Ud,onKeydown:jd},{default:withCtx(()=>[renderSlot(Gd.$slots,"default")]),_:3},8,["aria-labelledby","data-highlighted","aria-selected","data-state","aria-disabled","data-disabled","tabindex","as","as-child"]))}}),Yy=defineComponent({__name:"SelectItemIndicator",props:{asChild:{type:Boolean},as:{default:"span"}},setup(Ra){const ed=Ra,ud=Os$4();return(dd,hd)=>unref(ud).isSelected.value?(openBlock(),createBlock(unref(O$4),mergeProps({key:0,"aria-hidden":"true"},ed),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16)):createCommentVNode("",!0)}}),Jy=defineComponent({inheritAttrs:!1,__name:"SelectItemText",props:{asChild:{type:Boolean},as:{default:"span"}},setup(Ra){const ed=Ra,ud=xt$1(),dd=St$4(zt$1),hd=Kf(),md=Os$4(),{forwardRef:gd,currentElement:yd}=R$6(),vd=computed(()=>{var Cd;return h$2("option",{key:md.value,value:md.value,disabled:md.disabled.value,textContent:(Cd=yd.value)==null?void 0:Cd.textContent})});return onMounted(()=>{yd.value&&(md.onItemTextChange(yd.value),dd.itemTextRefCallback(yd.value,md.value,md.disabled.value),hd.onNativeOptionAdd(vd.value))}),onBeforeUnmount(()=>{hd.onNativeOptionRemove(vd.value)}),(Cd,wd)=>(openBlock(),createElementBlock(Fragment,null,[createVNode(unref(O$4),mergeProps({id:unref(md).textId,ref:unref(gd)},{...ed,...Cd.$attrs},{"data-item-text":""}),{default:withCtx(()=>[renderSlot(Cd.$slots,"default")]),_:3},16,["id"]),unref(md).isSelected.value&&unref(ud).valueElement.value&&!unref(ud).valueElementHasChildren.value?(openBlock(),createBlock(Teleport,{key:0,to:unref(ud).valueElement.value},[renderSlot(Cd.$slots,"default")],8,["to"])):createCommentVNode("",!0)],64))}}),Qy=defineComponent({__name:"SelectViewport",props:{nonce:{},asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra,{nonce:ud}=toRefs(ed),dd=Ja(ud),hd=St$4(zt$1),md=hd.position==="item-aligned"?Io$2():void 0,{forwardRef:gd,currentElement:yd}=R$6();onMounted(()=>{hd==null||hd.onViewportChange(yd.value)});const vd=ref$1(0);function Cd(wd){const Nd=wd.currentTarget,{shouldExpandOnScrollRef:Ld,contentWrapper:Ud}=md??{};if(Ld!=null&&Ld.value&&Ud!=null&&Ud.value){const jd=Math.abs(vd.value-Nd.scrollTop);if(jd>0){const Gd=window.innerHeight-qe$3*2,Yd=Number.parseFloat(Ud.value.style.minHeight),zd=Number.parseFloat(Ud.value.style.height),qd=Math.max(Yd,zd);if(qd0?Jd:0,Ud.value.style.justifyContent="flex-end")}}}vd.value=Nd.scrollTop}return(wd,Nd)=>(openBlock(),createElementBlock(Fragment,null,[createVNode(unref(O$4),mergeProps({ref:unref(gd),"data-radix-select-viewport":"",role:"presentation"},{...wd.$attrs,...ed},{style:{position:"relative",flex:1,overflow:"hidden auto"},onScroll:Cd}),{default:withCtx(()=>[renderSlot(wd.$slots,"default")]),_:3},16),createVNode(unref(O$4),{as:"style",nonce:unref(dd)},{default:withCtx(()=>[createTextVNode(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-radix-select-viewport] { scrollbar-width:none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } [data-radix-select-viewport]::-webkit-scrollbar { display: none; } ")]),_:1},8,["nonce"])],64))}}),ks$2=defineComponent({__name:"SelectScrollButtonImpl",emits:["autoScroll"],setup(Ra,{emit:ed}){const ud=ed,{injectCollection:dd}=Fe$5(),hd=dd(),md=St$4(zt$1),gd=ref$1(null);function yd(){gd.value!==null&&(window.clearInterval(gd.value),gd.value=null)}watchEffect(()=>{const wd=hd.value.find(Nd=>Nd===me$4());wd==null||wd.scrollIntoView({block:"nearest"})});function vd(){gd.value===null&&(gd.value=window.setInterval(()=>{ud("autoScroll")},50))}function Cd(){var wd;(wd=md.onItemLeave)==null||wd.call(md),gd.value===null&&(gd.value=window.setInterval(()=>{ud("autoScroll")},50))}return onBeforeUnmount(()=>yd()),(wd,Nd)=>{var Ld;return openBlock(),createBlock(unref(O$4),mergeProps({"aria-hidden":"true",style:{flexShrink:0}},(Ld=wd.$parent)==null?void 0:Ld.$props,{onPointerdown:vd,onPointermove:Cd,onPointerleave:Nd[0]||(Nd[0]=()=>{yd()})}),{default:withCtx(()=>[renderSlot(wd.$slots,"default")]),_:3},16)}}}),eg=defineComponent({__name:"SelectScrollUpButton",props:{asChild:{type:Boolean},as:{}},setup(Ra){const ed=St$4(zt$1),ud=ed.position==="item-aligned"?Io$2():void 0,{forwardRef:dd,currentElement:hd}=R$6(),md=ref$1(!1);return watchEffect(gd=>{var yd,vd;if((yd=ed.viewport)!=null&&yd.value&&(vd=ed.isPositioned)!=null&&vd.value){let Cd=function(){md.value=wd.scrollTop>0};const wd=ed.viewport.value;Cd(),wd.addEventListener("scroll",Cd),gd(()=>wd.removeEventListener("scroll",Cd))}}),watch(hd,()=>{hd.value&&(ud==null||ud.onScrollButtonChange(hd.value))}),(gd,yd)=>md.value?(openBlock(),createBlock(ks$2,{key:0,ref:unref(dd),onAutoScroll:yd[0]||(yd[0]=()=>{const{viewport:vd,selectedItem:Cd}=unref(ed);vd!=null&&vd.value&&Cd!=null&&Cd.value&&(vd.value.scrollTop=vd.value.scrollTop-Cd.value.offsetHeight)})},{default:withCtx(()=>[renderSlot(gd.$slots,"default")]),_:3},512)):createCommentVNode("",!0)}}),tg=defineComponent({__name:"SelectScrollDownButton",props:{asChild:{type:Boolean},as:{}},setup(Ra){const ed=St$4(zt$1),ud=ed.position==="item-aligned"?Io$2():void 0,{forwardRef:dd,currentElement:hd}=R$6(),md=ref$1(!1);return watchEffect(gd=>{var yd,vd;if((yd=ed.viewport)!=null&&yd.value&&(vd=ed.isPositioned)!=null&&vd.value){let Cd=function(){const Nd=wd.scrollHeight-wd.clientHeight;md.value=Math.ceil(wd.scrollTop)wd.removeEventListener("scroll",Cd))}}),watch(hd,()=>{hd.value&&(ud==null||ud.onScrollButtonChange(hd.value))}),(gd,yd)=>md.value?(openBlock(),createBlock(ks$2,{key:0,ref:unref(dd),onAutoScroll:yd[0]||(yd[0]=()=>{const{viewport:vd,selectedItem:Cd}=unref(ed);vd!=null&&vd.value&&Cd!=null&&Cd.value&&(vd.value.scrollTop=vd.value.scrollTop+Cd.value.offsetHeight)})},{default:withCtx(()=>[renderSlot(gd.$slots,"default")]),_:3},512)):createCommentVNode("",!0)}}),ag$1=defineComponent({__name:"SelectValue",props:{placeholder:{default:""},asChild:{type:Boolean},as:{default:"span"}},setup(Ra){const{forwardRef:ed,currentElement:ud}=R$6(),dd=xt$1(),hd=useSlots();return onBeforeMount(()=>{var md;const gd=!!qa((md=hd==null?void 0:hd.default)==null?void 0:md.call(hd)).length;dd.onValueElementHasChildrenChange(gd)}),onMounted(()=>{dd.valueElement=ud}),(md,gd)=>(openBlock(),createBlock(unref(O$4),{ref:unref(ed),as:md.as,"as-child":md.asChild,style:{pointerEvents:"none"}},{default:withCtx(()=>{var yd;return[unref(As$3)((yd=unref(dd).modelValue)==null?void 0:yd.value)?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(md.placeholder),1)],64)):renderSlot(md.$slots,"default",{key:1})]}),_:3},8,["as","as-child"]))}}),ng=defineComponent({__name:"SelectIcon",props:{asChild:{type:Boolean},as:{default:"span"}},setup(Ra){return(ed,ud)=>(openBlock(),createBlock(unref(O$4),{"aria-hidden":"true",as:ed.as,"as-child":ed.asChild},{default:withCtx(()=>[renderSlot(ed.$slots,"default",{},()=>[createTextVNode("▼")])]),_:3},8,["as","as-child"]))}}),Ms$1=defineComponent({__name:"BaseSeparator",props:{orientation:{default:"horizontal"},decorative:{type:Boolean},asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra,ud=["horizontal","vertical"];function dd(yd){return ud.includes(yd)}const hd=computed(()=>dd(ed.orientation)?ed.orientation:"horizontal"),md=computed(()=>hd.value==="vertical"?ed.orientation:void 0),gd=computed(()=>ed.decorative?{role:"none"}:{"aria-orientation":md.value,role:"separator"});return(yd,vd)=>(openBlock(),createBlock(unref(O$4),mergeProps({as:yd.as,"as-child":yd.asChild,"data-orientation":hd.value},gd.value),{default:withCtx(()=>[renderSlot(yd.$slots,"default")]),_:3},16,["as","as-child","data-orientation"]))}}),ap$3=defineComponent({__name:"Separator",props:{orientation:{default:"horizontal"},decorative:{type:Boolean},asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createBlock(Ms$1,normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}});function xp$1(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}xp$1();const Kp$1=["name","disabled","required","value","checked","data-state","data-disabled"],[Hp$1,Wp$1]=te$5("SwitchRoot"),gg$1=defineComponent({__name:"SwitchRoot",props:{defaultChecked:{type:Boolean},checked:{type:Boolean,default:void 0},disabled:{type:Boolean},required:{type:Boolean},name:{},id:{},value:{default:"on"},asChild:{type:Boolean},as:{default:"button"}},emits:["update:checked"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,{disabled:hd}=toRefs(ud),md=ne$5(ud,"checked",dd,{defaultValue:ud.defaultChecked,passive:ud.checked===void 0});function gd(){hd.value||(md.value=!md.value)}const{forwardRef:yd,currentElement:vd}=R$6(),Cd=at$6(vd),wd=computed(()=>{var Nd;return ud.id&&vd.value?(Nd=document.querySelector(`[for="${ud.id}"]`))==null?void 0:Nd.innerText:void 0});return Wp$1({checked:md,toggleCheck:gd,disabled:hd}),(Nd,Ld)=>(openBlock(),createElementBlock(Fragment,null,[createVNode(unref(O$4),mergeProps(Nd.$attrs,{id:Nd.id,ref:unref(yd),role:"switch",type:Nd.as==="button"?"button":void 0,value:Nd.value,"aria-label":Nd.$attrs["aria-label"]||wd.value,"aria-checked":unref(md),"aria-required":Nd.required,"data-state":unref(md)?"checked":"unchecked","data-disabled":unref(hd)?"":void 0,"as-child":Nd.asChild,as:Nd.as,disabled:unref(hd),onClick:gd,onKeydown:withKeys(withModifiers(gd,["prevent"]),["enter"])}),{default:withCtx(()=>[renderSlot(Nd.$slots,"default",{checked:unref(md)})]),_:3},16,["id","type","value","aria-label","aria-checked","aria-required","data-state","data-disabled","as-child","as","disabled","onKeydown"]),unref(Cd)?(openBlock(),createElementBlock("input",{key:0,type:"checkbox",name:Nd.name,tabindex:"-1","aria-hidden":"true",disabled:unref(hd),required:Nd.required,value:Nd.value,checked:!!unref(md),"data-state":unref(md)?"checked":"unchecked","data-disabled":unref(hd)?"":void 0,style:{transform:"translateX(-100%)",position:"absolute",pointerEvents:"none",opacity:0,margin:0}},null,8,Kp$1)):createCommentVNode("",!0)],64))}}),bg$1=defineComponent({__name:"SwitchThumb",props:{asChild:{type:Boolean},as:{default:"span"}},setup(Ra){const ed=Hp$1();return R$6(),(ud,dd)=>{var hd;return openBlock(),createBlock(unref(O$4),{"data-state":(hd=unref(ed).checked)!=null&&hd.value?"checked":"unchecked","data-disabled":unref(ed).disabled.value?"":void 0,"as-child":ud.asChild,as:ud.as},{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},8,["data-state","data-disabled","as-child","as"])}}}),[vn$3,jp$1]=te$5("TabsRoot"),Cg=defineComponent({__name:"TabsRoot",props:{defaultValue:{},orientation:{default:"horizontal"},dir:{},activationMode:{default:"automatic"},modelValue:{},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,{orientation:hd,dir:md}=toRefs(ud),gd=we$5(md);R$6();const yd=ne$5(ud,"modelValue",dd,{defaultValue:ud.defaultValue,passive:ud.modelValue===void 0}),vd=ref$1();return jp$1({modelValue:yd,changeModelValue:Cd=>{yd.value=Cd},orientation:hd,dir:gd,activationMode:ud.activationMode,baseId:ge$7(void 0,"radix-vue-tabs"),tabsList:vd}),(Cd,wd)=>(openBlock(),createBlock(unref(O$4),{dir:unref(gd),"data-orientation":unref(hd),"as-child":Cd.asChild,as:Cd.as},{default:withCtx(()=>[renderSlot(Cd.$slots,"default",{modelValue:unref(yd)})]),_:3},8,["dir","data-orientation","as-child","as"]))}}),wg=defineComponent({__name:"TabsList",props:{loop:{type:Boolean,default:!0},asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra,{loop:ud}=toRefs(ed),{forwardRef:dd,currentElement:hd}=R$6(),md=vn$3();return md.tabsList=hd,(gd,yd)=>(openBlock(),createBlock(unref(Ft$4),{"as-child":"",orientation:unref(md).orientation.value,dir:unref(md).dir.value,loop:unref(ud)},{default:withCtx(()=>[createVNode(unref(O$4),{ref:unref(dd),role:"tablist","as-child":gd.asChild,as:gd.as,"aria-orientation":unref(md).orientation.value},{default:withCtx(()=>[renderSlot(gd.$slots,"default")]),_:3},8,["as-child","as","aria-orientation"])]),_:3},8,["orientation","dir","loop"]))}});function ir$4(Ra,ed){return`${Ra}-trigger-${ed}`}function ur$3(Ra,ed){return`${Ra}-content-${ed}`}const _g=defineComponent({__name:"TabsContent",props:{value:{},forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra,{forwardRef:ud}=R$6(),dd=vn$3(),hd=computed(()=>ir$4(dd.baseId,ed.value)),md=computed(()=>ur$3(dd.baseId,ed.value)),gd=computed(()=>ed.value===dd.modelValue.value),yd=ref$1(gd.value);return onMounted(()=>{requestAnimationFrame(()=>{yd.value=!1})}),(vd,Cd)=>(openBlock(),createBlock(unref(Pe$6),{present:gd.value,"force-mount":""},{default:withCtx(({present:wd})=>[createVNode(unref(O$4),{id:md.value,ref:unref(ud),"as-child":vd.asChild,as:vd.as,role:"tabpanel","data-state":gd.value?"active":"inactive","data-orientation":unref(dd).orientation.value,"aria-labelledby":hd.value,hidden:!wd.value,tabindex:"0",style:normalizeStyle({animationDuration:yd.value?"0s":void 0})},{default:withCtx(()=>[vd.forceMount||gd.value?renderSlot(vd.$slots,"default",{key:0}):createCommentVNode("",!0)]),_:2},1032,["id","as-child","as","data-state","data-orientation","aria-labelledby","hidden","style"])]),_:3},8,["present"]))}}),xg=defineComponent({__name:"TabsTrigger",props:{value:{},disabled:{type:Boolean,default:!1},asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const ed=Ra,{forwardRef:ud}=R$6(),dd=vn$3(),hd=computed(()=>ir$4(dd.baseId,ed.value)),md=computed(()=>ur$3(dd.baseId,ed.value)),gd=computed(()=>ed.value===dd.modelValue.value);return(yd,vd)=>(openBlock(),createBlock(unref(Nt$4),{"as-child":"",focusable:!yd.disabled,active:gd.value},{default:withCtx(()=>[createVNode(unref(O$4),{id:hd.value,ref:unref(ud),role:"tab",type:yd.as==="button"?"button":void 0,as:yd.as,"as-child":yd.asChild,"aria-selected":gd.value?"true":"false","aria-controls":md.value,"data-state":gd.value?"active":"inactive",disabled:yd.disabled,"data-disabled":yd.disabled?"":void 0,"data-orientation":unref(dd).orientation.value,onMousedown:vd[0]||(vd[0]=withModifiers(Cd=>{!yd.disabled&&Cd.ctrlKey===!1?unref(dd).changeModelValue(yd.value):Cd.preventDefault()},["left"])),onKeydown:vd[1]||(vd[1]=withKeys(Cd=>unref(dd).changeModelValue(yd.value),["enter","space"])),onFocus:vd[2]||(vd[2]=()=>{const Cd=unref(dd).activationMode!=="manual";!gd.value&&!yd.disabled&&Cd&&unref(dd).changeModelValue(yd.value)})},{default:withCtx(()=>[renderSlot(yd.$slots,"default")]),_:3},8,["id","type","as","as-child","aria-selected","aria-controls","data-state","disabled","data-disabled","data-orientation"])]),_:3},8,["focusable","active"]))}}),vr$3="tooltip.open",[Mo$4,fv]=te$5("TooltipProvider"),Hg=defineComponent({inheritAttrs:!1,__name:"TooltipProvider",props:{delayDuration:{default:700},skipDelayDuration:{default:300},disableHoverableContent:{type:Boolean,default:!1},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean,default:!1}},setup(Ra){const ed=Ra,{delayDuration:ud,skipDelayDuration:dd,disableHoverableContent:hd,disableClosingTrigger:md,ignoreNonKeyboardFocus:gd,disabled:yd}=toRefs(ed);R$6();const vd=ref$1(!0),Cd=ref$1(!1),{start:wd,stop:Nd}=Un$4(()=>{vd.value=!0},dd,{immediate:!1});return fv({isOpenDelayed:vd,delayDuration:ud,onOpen(){Nd(),vd.value=!1},onClose(){wd()},isPointerInTransitRef:Cd,disableHoverableContent:hd,disableClosingTrigger:md,disabled:yd,ignoreNonKeyboardFocus:gd}),(Ld,Ud)=>renderSlot(Ld.$slots,"default")}}),[yn$4,pv]=te$5("TooltipRoot"),Wg=defineComponent({__name:"TooltipRoot",props:{defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},delayDuration:{default:void 0},disableHoverableContent:{type:Boolean,default:void 0},disableClosingTrigger:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},ignoreNonKeyboardFocus:{type:Boolean,default:void 0}},emits:["update:open"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed;R$6();const hd=Mo$4(),md=computed(()=>ud.disableHoverableContent??hd.disableHoverableContent.value),gd=computed(()=>ud.disableClosingTrigger??hd.disableClosingTrigger.value),yd=computed(()=>ud.disabled??hd.disabled.value),vd=computed(()=>ud.delayDuration??hd.delayDuration.value),Cd=computed(()=>ud.ignoreNonKeyboardFocus??hd.ignoreNonKeyboardFocus.value),wd=ne$5(ud,"open",dd,{defaultValue:ud.defaultOpen,passive:ud.open===void 0});watch(wd,Wd=>{hd.onClose&&(Wd?(hd.onOpen(),document.dispatchEvent(new CustomEvent(vr$3))):hd.onClose())});const Nd=ref$1(!1),Ld=ref$1(),Ud=computed(()=>wd.value?Nd.value?"delayed-open":"instant-open":"closed"),{start:jd,stop:Gd}=Un$4(()=>{Nd.value=!0,wd.value=!0},vd,{immediate:!1});function Yd(){Gd(),Nd.value=!1,wd.value=!0}function zd(){Gd(),wd.value=!1}function qd(){jd()}return pv({contentId:"",open:wd,stateAttribute:Ud,trigger:Ld,onTriggerChange(Wd){Ld.value=Wd},onTriggerEnter(){hd.isOpenDelayed.value?qd():Yd()},onTriggerLeave(){md.value?zd():Gd()},onOpen:Yd,onClose:zd,disableHoverableContent:md,disableClosingTrigger:gd,disabled:yd,ignoreNonKeyboardFocus:Cd}),(Wd,Xd)=>(openBlock(),createBlock(unref(kt$4),null,{default:withCtx(()=>[renderSlot(Wd.$slots,"default",{open:unref(wd)})]),_:3}))}}),jg=defineComponent({__name:"TooltipTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const ed=Ra,ud=yn$4(),dd=Mo$4();ud.contentId||(ud.contentId=ge$7(void 0,"radix-vue-tooltip-content"));const{forwardRef:hd,currentElement:md}=R$6(),gd=ref$1(!1),yd=ref$1(!1),vd=computed(()=>ud.disabled.value?{}:{click:Gd,focus:Ud,pointermove:Nd,pointerleave:Ld,pointerdown:wd,blur:jd});onMounted(()=>{ud.onTriggerChange(md.value)});function Cd(){setTimeout(()=>{gd.value=!1},1)}function wd(){gd.value=!0,document.addEventListener("pointerup",Cd,{once:!0})}function Nd(Yd){Yd.pointerType!=="touch"&&!yd.value&&!dd.isPointerInTransitRef.value&&(ud.onTriggerEnter(),yd.value=!0)}function Ld(){ud.onTriggerLeave(),yd.value=!1}function Ud(Yd){var zd,qd;gd.value||ud.ignoreNonKeyboardFocus.value&&!((qd=(zd=Yd.target).matches)!=null&&qd.call(zd,":focus-visible"))||ud.onOpen()}function jd(){ud.onClose()}function Gd(){ud.disableClosingTrigger.value||ud.onClose()}return(Yd,zd)=>(openBlock(),createBlock(unref(Mt$4),{"as-child":""},{default:withCtx(()=>[createVNode(unref(O$4),mergeProps({ref:unref(hd),"aria-describedby":unref(ud).open.value?unref(ud).contentId:void 0,"data-state":unref(ud).stateAttribute.value,as:Yd.as,"as-child":ed.asChild,"data-grace-area-trigger":""},toHandlers(vd.value)),{default:withCtx(()=>[renderSlot(Yd.$slots,"default")]),_:3},16,["aria-describedby","data-state","as","as-child"])]),_:3}))}}),mr$3=defineComponent({__name:"TooltipContentImpl",props:{ariaLabel:{},asChild:{type:Boolean},as:{},side:{default:"top"},sideOffset:{default:0},align:{default:"center"},alignOffset:{},avoidCollisions:{type:Boolean,default:!0},collisionBoundary:{default:()=>[]},collisionPadding:{default:0},arrowPadding:{default:0},sticky:{default:"partial"},hideWhenDetached:{type:Boolean,default:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=yn$4(),{forwardRef:md}=R$6(),gd=useSlots(),yd=computed(()=>{var wd;return(wd=gd.default)==null?void 0:wd.call(gd)}),vd=computed(()=>{var wd;if(ud.ariaLabel)return ud.ariaLabel;let Nd="";function Ld(Ud){typeof Ud.children=="string"&&Ud.type!==Comment$2?Nd+=Ud.children:Array.isArray(Ud.children)&&Ud.children.forEach(jd=>Ld(jd))}return(wd=yd.value)==null||wd.forEach(Ud=>Ld(Ud)),Nd}),Cd=computed(()=>{const{ariaLabel:wd,...Nd}=ud;return Nd});return onMounted(()=>{He$4(window,"scroll",wd=>{const Nd=wd.target;Nd!=null&&Nd.contains(hd.trigger.value)&&hd.onClose()}),He$4(window,vr$3,hd.onClose)}),(wd,Nd)=>(openBlock(),createBlock(unref(Ct$4),{"as-child":"","disable-outside-pointer-events":!1,onEscapeKeyDown:Nd[0]||(Nd[0]=Ld=>dd("escapeKeyDown",Ld)),onPointerDownOutside:Nd[1]||(Nd[1]=Ld=>{var Ud;unref(hd).disableClosingTrigger.value&&(Ud=unref(hd).trigger.value)!=null&&Ud.contains(Ld.target)&&Ld.preventDefault(),dd("pointerDownOutside",Ld)}),onFocusOutside:Nd[2]||(Nd[2]=withModifiers(()=>{},["prevent"])),onDismiss:Nd[3]||(Nd[3]=Ld=>unref(hd).onClose())},{default:withCtx(()=>[createVNode(unref(It$3),mergeProps({ref:unref(md),"data-state":unref(hd).stateAttribute.value},{...wd.$attrs,...Cd.value},{style:{"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),{default:withCtx(()=>[renderSlot(wd.$slots,"default"),createVNode(unref(Jt$4),{id:unref(hd).contentId,role:"tooltip"},{default:withCtx(()=>[createTextVNode(toDisplayString(vd.value),1)]),_:1},8,["id"])]),_:3},16,["data-state"])]),_:3}))}}),vv=defineComponent({__name:"TooltipContentHoverable",props:{ariaLabel:{},asChild:{type:Boolean},as:{},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean}},setup(Ra){const ed=Ot$3(Ra),{forwardRef:ud,currentElement:dd}=R$6(),{trigger:hd,onClose:md}=yn$4(),gd=Mo$4(),{isPointerInTransit:yd,onPointerExit:vd}=Fl$3(hd,dd);return gd.isPointerInTransitRef=yd,vd(()=>{md()}),(Cd,wd)=>(openBlock(),createBlock(mr$3,mergeProps({ref:unref(ud)},unref(ed)),{default:withCtx(()=>[renderSlot(Cd.$slots,"default")]),_:3},16))}}),Ug=defineComponent({__name:"TooltipContent",props:{forceMount:{type:Boolean},ariaLabel:{},asChild:{type:Boolean},as:{},side:{default:"top"},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean}},emits:["escapeKeyDown","pointerDownOutside"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=yn$4(),md=Se$6(ud,dd),{forwardRef:gd}=R$6();return(yd,vd)=>(openBlock(),createBlock(unref(Pe$6),{present:yd.forceMount||unref(hd).open.value},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(hd).disableHoverableContent.value?mr$3:vv),mergeProps({ref:unref(gd)},unref(md)),{default:withCtx(()=>[renderSlot(yd.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),qg=defineComponent({__name:"TooltipPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createBlock(unref(rt$3),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),_sfc_main$1r=defineComponent({__name:"AlertDialog",props:{open:{type:Boolean},defaultOpen:{type:Boolean}},emits:["update:open"],setup(Ra,{emit:ed}){const hd=Se$6(Ra,ed);return(md,gd)=>(openBlock(),createBlock(unref(Tv),normalizeProps(guardReactiveProps(unref(hd))),{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},16))}});function r$2(Ra){var ed,ud,dd="";if(typeof Ra=="string"||typeof Ra=="number")dd+=Ra;else if(typeof Ra=="object")if(Array.isArray(Ra)){var hd=Ra.length;for(ed=0;ed{const ed=createClassMap(Ra),{conflictingClassGroups:ud,conflictingClassGroupModifiers:dd}=Ra;return{getClassGroupId:gd=>{const yd=gd.split(CLASS_PART_SEPARATOR);return yd[0]===""&&yd.length!==1&&yd.shift(),getGroupRecursive(yd,ed)||getGroupIdForArbitraryProperty(gd)},getConflictingClassGroupIds:(gd,yd)=>{const vd=ud[gd]||[];return yd&&dd[gd]?[...vd,...dd[gd]]:vd}}},getGroupRecursive=(Ra,ed)=>{var gd;if(Ra.length===0)return ed.classGroupId;const ud=Ra[0],dd=ed.nextPart.get(ud),hd=dd?getGroupRecursive(Ra.slice(1),dd):void 0;if(hd)return hd;if(ed.validators.length===0)return;const md=Ra.join(CLASS_PART_SEPARATOR);return(gd=ed.validators.find(({validator:yd})=>yd(md)))==null?void 0:gd.classGroupId},arbitraryPropertyRegex=/^\[(.+)\]$/,getGroupIdForArbitraryProperty=Ra=>{if(arbitraryPropertyRegex.test(Ra)){const ed=arbitraryPropertyRegex.exec(Ra)[1],ud=ed==null?void 0:ed.substring(0,ed.indexOf(":"));if(ud)return"arbitrary.."+ud}},createClassMap=Ra=>{const{theme:ed,prefix:ud}=Ra,dd={nextPart:new Map,validators:[]};return getPrefixedClassGroupEntries(Object.entries(Ra.classGroups),ud).forEach(([md,gd])=>{processClassesRecursively(gd,dd,md,ed)}),dd},processClassesRecursively=(Ra,ed,ud,dd)=>{Ra.forEach(hd=>{if(typeof hd=="string"){const md=hd===""?ed:getPart(ed,hd);md.classGroupId=ud;return}if(typeof hd=="function"){if(isThemeGetter(hd)){processClassesRecursively(hd(dd),ed,ud,dd);return}ed.validators.push({validator:hd,classGroupId:ud});return}Object.entries(hd).forEach(([md,gd])=>{processClassesRecursively(gd,getPart(ed,md),ud,dd)})})},getPart=(Ra,ed)=>{let ud=Ra;return ed.split(CLASS_PART_SEPARATOR).forEach(dd=>{ud.nextPart.has(dd)||ud.nextPart.set(dd,{nextPart:new Map,validators:[]}),ud=ud.nextPart.get(dd)}),ud},isThemeGetter=Ra=>Ra.isThemeGetter,getPrefixedClassGroupEntries=(Ra,ed)=>ed?Ra.map(([ud,dd])=>{const hd=dd.map(md=>typeof md=="string"?ed+md:typeof md=="object"?Object.fromEntries(Object.entries(md).map(([gd,yd])=>[ed+gd,yd])):md);return[ud,hd]}):Ra,createLruCache=Ra=>{if(Ra<1)return{get:()=>{},set:()=>{}};let ed=0,ud=new Map,dd=new Map;const hd=(md,gd)=>{ud.set(md,gd),ed++,ed>Ra&&(ed=0,dd=ud,ud=new Map)};return{get(md){let gd=ud.get(md);if(gd!==void 0)return gd;if((gd=dd.get(md))!==void 0)return hd(md,gd),gd},set(md,gd){ud.has(md)?ud.set(md,gd):hd(md,gd)}}},IMPORTANT_MODIFIER="!",createParseClassName=Ra=>{const{separator:ed,experimentalParseClassName:ud}=Ra,dd=ed.length===1,hd=ed[0],md=ed.length,gd=yd=>{const vd=[];let Cd=0,wd=0,Nd;for(let Yd=0;Ydwd?Nd-wd:void 0;return{modifiers:vd,hasImportantModifier:Ud,baseClassName:jd,maybePostfixModifierPosition:Gd}};return ud?yd=>ud({className:yd,parseClassName:gd}):gd},sortModifiers=Ra=>{if(Ra.length<=1)return Ra;const ed=[];let ud=[];return Ra.forEach(dd=>{dd[0]==="["?(ed.push(...ud.sort(),dd),ud=[]):ud.push(dd)}),ed.push(...ud.sort()),ed},createConfigUtils=Ra=>({cache:createLruCache(Ra.cacheSize),parseClassName:createParseClassName(Ra),...createClassGroupUtils(Ra)}),SPLIT_CLASSES_REGEX=/\s+/,mergeClassList=(Ra,ed)=>{const{parseClassName:ud,getClassGroupId:dd,getConflictingClassGroupIds:hd}=ed,md=[],gd=Ra.trim().split(SPLIT_CLASSES_REGEX);let yd="";for(let vd=gd.length-1;vd>=0;vd-=1){const Cd=gd[vd],{modifiers:wd,hasImportantModifier:Nd,baseClassName:Ld,maybePostfixModifierPosition:Ud}=ud(Cd);let jd=!!Ud,Gd=dd(jd?Ld.substring(0,Ud):Ld);if(!Gd){if(!jd){yd=Cd+(yd.length>0?" "+yd:yd);continue}if(Gd=dd(Ld),!Gd){yd=Cd+(yd.length>0?" "+yd:yd);continue}jd=!1}const Yd=sortModifiers(wd).join(":"),zd=Nd?Yd+IMPORTANT_MODIFIER:Yd,qd=zd+Gd;if(md.includes(qd))continue;md.push(qd);const Wd=hd(Gd,jd);for(let Xd=0;Xd0?" "+yd:yd)}return yd};function twJoin(){let Ra=0,ed,ud,dd="";for(;Ra{if(typeof Ra=="string")return Ra;let ed,ud="";for(let dd=0;ddNd(wd),Ra());return ud=createConfigUtils(Cd),dd=ud.cache.get,hd=ud.cache.set,md=yd,yd(vd)}function yd(vd){const Cd=dd(vd);if(Cd)return Cd;const wd=mergeClassList(vd,ud);return hd(vd,wd),wd}return function(){return md(twJoin.apply(null,arguments))}}const fromTheme=Ra=>{const ed=ud=>ud[Ra]||[];return ed.isThemeGetter=!0,ed},arbitraryValueRegex=/^\[(?:([a-z-]+):)?(.+)\]$/i,fractionRegex=/^\d+\/\d+$/,stringLengths=new Set(["px","full","screen"]),tshirtUnitRegex=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lengthUnitRegex=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,colorFunctionRegex=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,shadowRegex=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,imageRegex=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,isLength$1=Ra=>isNumber$3(Ra)||stringLengths.has(Ra)||fractionRegex.test(Ra),isArbitraryLength=Ra=>getIsArbitraryValue(Ra,"length",isLengthOnly),isNumber$3=Ra=>!!Ra&&!Number.isNaN(Number(Ra)),isArbitraryNumber=Ra=>getIsArbitraryValue(Ra,"number",isNumber$3),isInteger$2=Ra=>!!Ra&&Number.isInteger(Number(Ra)),isPercent=Ra=>Ra.endsWith("%")&&isNumber$3(Ra.slice(0,-1)),isArbitraryValue=Ra=>arbitraryValueRegex.test(Ra),isTshirtSize=Ra=>tshirtUnitRegex.test(Ra),sizeLabels=new Set(["length","size","percentage"]),isArbitrarySize=Ra=>getIsArbitraryValue(Ra,sizeLabels,isNever),isArbitraryPosition=Ra=>getIsArbitraryValue(Ra,"position",isNever),imageLabels=new Set(["image","url"]),isArbitraryImage=Ra=>getIsArbitraryValue(Ra,imageLabels,isImage),isArbitraryShadow=Ra=>getIsArbitraryValue(Ra,"",isShadow),isAny=()=>!0,getIsArbitraryValue=(Ra,ed,ud)=>{const dd=arbitraryValueRegex.exec(Ra);return dd?dd[1]?typeof ed=="string"?dd[1]===ed:ed.has(dd[1]):ud(dd[2]):!1},isLengthOnly=Ra=>lengthUnitRegex.test(Ra)&&!colorFunctionRegex.test(Ra),isNever=()=>!1,isShadow=Ra=>shadowRegex.test(Ra),isImage=Ra=>imageRegex.test(Ra),getDefaultConfig=()=>{const Ra=fromTheme("colors"),ed=fromTheme("spacing"),ud=fromTheme("blur"),dd=fromTheme("brightness"),hd=fromTheme("borderColor"),md=fromTheme("borderRadius"),gd=fromTheme("borderSpacing"),yd=fromTheme("borderWidth"),vd=fromTheme("contrast"),Cd=fromTheme("grayscale"),wd=fromTheme("hueRotate"),Nd=fromTheme("invert"),Ld=fromTheme("gap"),Ud=fromTheme("gradientColorStops"),jd=fromTheme("gradientColorStopPositions"),Gd=fromTheme("inset"),Yd=fromTheme("margin"),zd=fromTheme("opacity"),qd=fromTheme("padding"),Wd=fromTheme("saturate"),Xd=fromTheme("scale"),Jd=fromTheme("sepia"),Zd=fromTheme("skew"),mf=fromTheme("space"),xf=fromTheme("translate"),_f=()=>["auto","contain","none"],vf=()=>["auto","hidden","clip","visible","scroll"],gf=()=>["auto",isArbitraryValue,ed],Af=()=>[isArbitraryValue,ed],Df=()=>["",isLength$1,isArbitraryLength],kf=()=>["auto",isNumber$3,isArbitraryValue],Cf=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],If=()=>["solid","dashed","dotted","double","none"],Ff=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],oh=()=>["start","end","center","between","around","evenly","stretch"],Eh=()=>["","0",isArbitraryValue],_h=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Mh=()=>[isNumber$3,isArbitraryValue];return{cacheSize:500,separator:":",theme:{colors:[isAny],spacing:[isLength$1,isArbitraryLength],blur:["none","",isTshirtSize,isArbitraryValue],brightness:Mh(),borderColor:[Ra],borderRadius:["none","","full",isTshirtSize,isArbitraryValue],borderSpacing:Af(),borderWidth:Df(),contrast:Mh(),grayscale:Eh(),hueRotate:Mh(),invert:Eh(),gap:Af(),gradientColorStops:[Ra],gradientColorStopPositions:[isPercent,isArbitraryLength],inset:gf(),margin:gf(),opacity:Mh(),padding:Af(),saturate:Mh(),scale:Mh(),sepia:Eh(),skew:Mh(),space:Af(),translate:Af()},classGroups:{aspect:[{aspect:["auto","square","video",isArbitraryValue]}],container:["container"],columns:[{columns:[isTshirtSize]}],"break-after":[{"break-after":_h()}],"break-before":[{"break-before":_h()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Cf(),isArbitraryValue]}],overflow:[{overflow:vf()}],"overflow-x":[{"overflow-x":vf()}],"overflow-y":[{"overflow-y":vf()}],overscroll:[{overscroll:_f()}],"overscroll-x":[{"overscroll-x":_f()}],"overscroll-y":[{"overscroll-y":_f()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[Gd]}],"inset-x":[{"inset-x":[Gd]}],"inset-y":[{"inset-y":[Gd]}],start:[{start:[Gd]}],end:[{end:[Gd]}],top:[{top:[Gd]}],right:[{right:[Gd]}],bottom:[{bottom:[Gd]}],left:[{left:[Gd]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",isInteger$2,isArbitraryValue]}],basis:[{basis:gf()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",isArbitraryValue]}],grow:[{grow:Eh()}],shrink:[{shrink:Eh()}],order:[{order:["first","last","none",isInteger$2,isArbitraryValue]}],"grid-cols":[{"grid-cols":[isAny]}],"col-start-end":[{col:["auto",{span:["full",isInteger$2,isArbitraryValue]},isArbitraryValue]}],"col-start":[{"col-start":kf()}],"col-end":[{"col-end":kf()}],"grid-rows":[{"grid-rows":[isAny]}],"row-start-end":[{row:["auto",{span:[isInteger$2,isArbitraryValue]},isArbitraryValue]}],"row-start":[{"row-start":kf()}],"row-end":[{"row-end":kf()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",isArbitraryValue]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",isArbitraryValue]}],gap:[{gap:[Ld]}],"gap-x":[{"gap-x":[Ld]}],"gap-y":[{"gap-y":[Ld]}],"justify-content":[{justify:["normal",...oh()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...oh(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...oh(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[qd]}],px:[{px:[qd]}],py:[{py:[qd]}],ps:[{ps:[qd]}],pe:[{pe:[qd]}],pt:[{pt:[qd]}],pr:[{pr:[qd]}],pb:[{pb:[qd]}],pl:[{pl:[qd]}],m:[{m:[Yd]}],mx:[{mx:[Yd]}],my:[{my:[Yd]}],ms:[{ms:[Yd]}],me:[{me:[Yd]}],mt:[{mt:[Yd]}],mr:[{mr:[Yd]}],mb:[{mb:[Yd]}],ml:[{ml:[Yd]}],"space-x":[{"space-x":[mf]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[mf]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",isArbitraryValue,ed]}],"min-w":[{"min-w":[isArbitraryValue,ed,"min","max","fit"]}],"max-w":[{"max-w":[isArbitraryValue,ed,"none","full","min","max","fit","prose",{screen:[isTshirtSize]},isTshirtSize]}],h:[{h:[isArbitraryValue,ed,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[isArbitraryValue,ed,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[isArbitraryValue,ed,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[isArbitraryValue,ed,"auto","min","max","fit"]}],"font-size":[{text:["base",isTshirtSize,isArbitraryLength]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",isArbitraryNumber]}],"font-family":[{font:[isAny]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",isArbitraryValue]}],"line-clamp":[{"line-clamp":["none",isNumber$3,isArbitraryNumber]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",isLength$1,isArbitraryValue]}],"list-image":[{"list-image":["none",isArbitraryValue]}],"list-style-type":[{list:["none","disc","decimal",isArbitraryValue]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[Ra]}],"placeholder-opacity":[{"placeholder-opacity":[zd]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[Ra]}],"text-opacity":[{"text-opacity":[zd]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...If(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",isLength$1,isArbitraryLength]}],"underline-offset":[{"underline-offset":["auto",isLength$1,isArbitraryValue]}],"text-decoration-color":[{decoration:[Ra]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Af()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",isArbitraryValue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",isArbitraryValue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[zd]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Cf(),isArbitraryPosition]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",isArbitrarySize]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},isArbitraryImage]}],"bg-color":[{bg:[Ra]}],"gradient-from-pos":[{from:[jd]}],"gradient-via-pos":[{via:[jd]}],"gradient-to-pos":[{to:[jd]}],"gradient-from":[{from:[Ud]}],"gradient-via":[{via:[Ud]}],"gradient-to":[{to:[Ud]}],rounded:[{rounded:[md]}],"rounded-s":[{"rounded-s":[md]}],"rounded-e":[{"rounded-e":[md]}],"rounded-t":[{"rounded-t":[md]}],"rounded-r":[{"rounded-r":[md]}],"rounded-b":[{"rounded-b":[md]}],"rounded-l":[{"rounded-l":[md]}],"rounded-ss":[{"rounded-ss":[md]}],"rounded-se":[{"rounded-se":[md]}],"rounded-ee":[{"rounded-ee":[md]}],"rounded-es":[{"rounded-es":[md]}],"rounded-tl":[{"rounded-tl":[md]}],"rounded-tr":[{"rounded-tr":[md]}],"rounded-br":[{"rounded-br":[md]}],"rounded-bl":[{"rounded-bl":[md]}],"border-w":[{border:[yd]}],"border-w-x":[{"border-x":[yd]}],"border-w-y":[{"border-y":[yd]}],"border-w-s":[{"border-s":[yd]}],"border-w-e":[{"border-e":[yd]}],"border-w-t":[{"border-t":[yd]}],"border-w-r":[{"border-r":[yd]}],"border-w-b":[{"border-b":[yd]}],"border-w-l":[{"border-l":[yd]}],"border-opacity":[{"border-opacity":[zd]}],"border-style":[{border:[...If(),"hidden"]}],"divide-x":[{"divide-x":[yd]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[yd]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[zd]}],"divide-style":[{divide:If()}],"border-color":[{border:[hd]}],"border-color-x":[{"border-x":[hd]}],"border-color-y":[{"border-y":[hd]}],"border-color-s":[{"border-s":[hd]}],"border-color-e":[{"border-e":[hd]}],"border-color-t":[{"border-t":[hd]}],"border-color-r":[{"border-r":[hd]}],"border-color-b":[{"border-b":[hd]}],"border-color-l":[{"border-l":[hd]}],"divide-color":[{divide:[hd]}],"outline-style":[{outline:["",...If()]}],"outline-offset":[{"outline-offset":[isLength$1,isArbitraryValue]}],"outline-w":[{outline:[isLength$1,isArbitraryLength]}],"outline-color":[{outline:[Ra]}],"ring-w":[{ring:Df()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[Ra]}],"ring-opacity":[{"ring-opacity":[zd]}],"ring-offset-w":[{"ring-offset":[isLength$1,isArbitraryLength]}],"ring-offset-color":[{"ring-offset":[Ra]}],shadow:[{shadow:["","inner","none",isTshirtSize,isArbitraryShadow]}],"shadow-color":[{shadow:[isAny]}],opacity:[{opacity:[zd]}],"mix-blend":[{"mix-blend":[...Ff(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ff()}],filter:[{filter:["","none"]}],blur:[{blur:[ud]}],brightness:[{brightness:[dd]}],contrast:[{contrast:[vd]}],"drop-shadow":[{"drop-shadow":["","none",isTshirtSize,isArbitraryValue]}],grayscale:[{grayscale:[Cd]}],"hue-rotate":[{"hue-rotate":[wd]}],invert:[{invert:[Nd]}],saturate:[{saturate:[Wd]}],sepia:[{sepia:[Jd]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[ud]}],"backdrop-brightness":[{"backdrop-brightness":[dd]}],"backdrop-contrast":[{"backdrop-contrast":[vd]}],"backdrop-grayscale":[{"backdrop-grayscale":[Cd]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[wd]}],"backdrop-invert":[{"backdrop-invert":[Nd]}],"backdrop-opacity":[{"backdrop-opacity":[zd]}],"backdrop-saturate":[{"backdrop-saturate":[Wd]}],"backdrop-sepia":[{"backdrop-sepia":[Jd]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[gd]}],"border-spacing-x":[{"border-spacing-x":[gd]}],"border-spacing-y":[{"border-spacing-y":[gd]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",isArbitraryValue]}],duration:[{duration:Mh()}],ease:[{ease:["linear","in","out","in-out",isArbitraryValue]}],delay:[{delay:Mh()}],animate:[{animate:["none","spin","ping","pulse","bounce",isArbitraryValue]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[Xd]}],"scale-x":[{"scale-x":[Xd]}],"scale-y":[{"scale-y":[Xd]}],rotate:[{rotate:[isInteger$2,isArbitraryValue]}],"translate-x":[{"translate-x":[xf]}],"translate-y":[{"translate-y":[xf]}],"skew-x":[{"skew-x":[Zd]}],"skew-y":[{"skew-y":[Zd]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",isArbitraryValue]}],accent:[{accent:["auto",Ra]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",isArbitraryValue]}],"caret-color":[{caret:[Ra]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":Af()}],"scroll-mx":[{"scroll-mx":Af()}],"scroll-my":[{"scroll-my":Af()}],"scroll-ms":[{"scroll-ms":Af()}],"scroll-me":[{"scroll-me":Af()}],"scroll-mt":[{"scroll-mt":Af()}],"scroll-mr":[{"scroll-mr":Af()}],"scroll-mb":[{"scroll-mb":Af()}],"scroll-ml":[{"scroll-ml":Af()}],"scroll-p":[{"scroll-p":Af()}],"scroll-px":[{"scroll-px":Af()}],"scroll-py":[{"scroll-py":Af()}],"scroll-ps":[{"scroll-ps":Af()}],"scroll-pe":[{"scroll-pe":Af()}],"scroll-pt":[{"scroll-pt":Af()}],"scroll-pr":[{"scroll-pr":Af()}],"scroll-pb":[{"scroll-pb":Af()}],"scroll-pl":[{"scroll-pl":Af()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",isArbitraryValue]}],fill:[{fill:[Ra,"none"]}],"stroke-w":[{stroke:[isLength$1,isArbitraryLength,isArbitraryNumber]}],stroke:[{stroke:[Ra,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},twMerge=createTailwindMerge(getDefaultConfig);function cn$4(...Ra){return twMerge(clsx(Ra))}const _sfc_main$1q=defineComponent({__name:"AlertDialogContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=computed(()=>{const{class:gd,...yd}=ud;return yd}),md=Se$6(hd,dd);return(gd,yd)=>(openBlock(),createBlock(unref(Av),null,{default:withCtx(()=>[createVNode(unref(kv),{class:"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80"}),createVNode(unref(Ov),mergeProps(unref(md),{class:unref(cn$4)("fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",ud.class)}),{default:withCtx(()=>[renderSlot(gd.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),_sfc_main$1p=defineComponent({__name:"AlertDialogFooter",props:{class:{}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(cn$4)("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-x-2",ed.class))},[renderSlot(ud.$slots,"default")],2))}}),falsyToString=Ra=>typeof Ra=="boolean"?`${Ra}`:Ra===0?"0":Ra,cx$1=clsx,cva=(Ra,ed)=>ud=>{var dd;if((ed==null?void 0:ed.variants)==null)return cx$1(Ra,ud==null?void 0:ud.class,ud==null?void 0:ud.className);const{variants:hd,defaultVariants:md}=ed,gd=Object.keys(hd).map(Cd=>{const wd=ud==null?void 0:ud[Cd],Nd=md==null?void 0:md[Cd];if(wd===null)return null;const Ld=falsyToString(wd)||falsyToString(Nd);return hd[Cd][Ld]}),yd=ud&&Object.entries(ud).reduce((Cd,wd)=>{let[Nd,Ld]=wd;return Ld===void 0||(Cd[Nd]=Ld),Cd},{}),vd=ed==null||(dd=ed.compoundVariants)===null||dd===void 0?void 0:dd.reduce((Cd,wd)=>{let{class:Nd,className:Ld,...Ud}=wd;return Object.entries(Ud).every(jd=>{let[Gd,Yd]=jd;return Array.isArray(Yd)?Yd.includes({...md,...yd}[Gd]):{...md,...yd}[Gd]===Yd})?[...Cd,Nd,Ld]:Cd},[]);return cx$1(Ra,gd,vd,ud==null?void 0:ud.class,ud==null?void 0:ud.className)},_sfc_main$1o=defineComponent({__name:"Button",props:{variant:{},size:{},class:{},asChild:{type:Boolean},as:{default:"button"}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createBlock(unref(O$4),{as:ud.as,"as-child":ud.asChild,class:normalizeClass(unref(cn$4)(unref(buttonVariants)({variant:ud.variant,size:ud.size}),ed.class))},{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},8,["as","as-child","class"]))}}),buttonVariants=cva("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",xs:"h-7 rounded px-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),_sfc_main$1n=defineComponent({__name:"AlertDialogAction",props:{asChild:{type:Boolean},as:{},class:{}},setup(Ra){const ed=Ra,ud=computed(()=>{const{class:dd,...hd}=ed;return hd});return(dd,hd)=>(openBlock(),createBlock(unref(Nv),mergeProps(ud.value,{class:unref(cn$4)(unref(buttonVariants)(),ed.class)}),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$1m=defineComponent({__name:"AlertDialogCancel",props:{asChild:{type:Boolean},as:{},class:{}},setup(Ra){const ed=Ra,ud=computed(()=>{const{class:dd,...hd}=ed;return hd});return(dd,hd)=>(openBlock(),createBlock(unref(Mv),mergeProps(ud.value,{class:unref(cn$4)(unref(buttonVariants)({variant:"outline"}),"mt-2 sm:mt-0",ed.class)}),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$1l=defineComponent({__name:"AlertDialogHeader",props:{class:{}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(cn$4)("flex flex-col gap-y-2 text-center sm:text-left",ed.class))},[renderSlot(ud.$slots,"default")],2))}}),_sfc_main$1k=defineComponent({__name:"AlertDialogDescription",props:{asChild:{type:Boolean},as:{},class:{}},setup(Ra){const ed=Ra,ud=computed(()=>{const{class:dd,...hd}=ed;return hd});return(dd,hd)=>(openBlock(),createBlock(unref(Fv),mergeProps(ud.value,{class:unref(cn$4)("text-sm text-muted-foreground",ed.class)}),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$1j=defineComponent({__name:"AlertDialogTitle",props:{asChild:{type:Boolean},as:{},class:{}},setup(Ra){const ed=Ra,ud=computed(()=>{const{class:dd,...hd}=ed;return hd});return(dd,hd)=>(openBlock(),createBlock(unref(Vv),mergeProps(ud.value,{class:unref(cn$4)("text-lg font-semibold",ed.class)}),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16,["class"]))}}),_hoisted_1$f={key:0,class:"loading"},_sfc_main$1i=defineComponent({__name:"RunLoading",setup(Ra){const ed=ref$1(!0);return onMounted(()=>{setTimeout(()=>{ed.value=!1},100)}),(ud,dd)=>(openBlock(),createBlock(Transition$1,{name:"fade"},{default:withCtx(()=>[unref(ed)?(openBlock(),createElementBlock("div",_hoisted_1$f,dd[0]||(dd[0]=[createBaseVNode("strong",null,"致力于让 Markdown 编辑更简单",-1)]))):createCommentVNode("",!0)]),_:1}))}}),_export_sfc=(Ra,ed)=>{const ud=Ra.__vccOpts||Ra;for(const[dd,hd]of ed)ud[dd]=hd;return ud},__unplugin_components_13$1=_export_sfc(_sfc_main$1i,[["__scopeId","data-v-8781f9ec"]]),_sfc_main$1h=defineComponent({__name:"Dialog",props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(Ra,{emit:ed}){const hd=Se$6(Ra,ed);return(md,gd)=>(openBlock(),createBlock(unref(nu$4),normalizeProps(guardReactiveProps(unref(hd))),{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},16))}});/** * @license lucide-vue-next v0.473.0 - ISC * * This source code is licensed under the ISC license. @@ -471,7 +471,7 @@ code_pre { * * @author Feross Aboukhadijeh * @license MIT - */(function(Ra){const ed=base64Js$1,ud=ieee754$1,dd=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ra.Buffer=wd,Ra.SlowBuffer=Jd,Ra.INSPECT_MAX_BYTES=50;const hd=2147483647;Ra.kMaxLength=hd;const{Uint8Array:md,ArrayBuffer:gd,SharedArrayBuffer:yd}=globalThis;wd.TYPED_ARRAY_SUPPORT=vd(),!wd.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function vd(){try{const jh=new md(1),Pf={foo:function(){return 42}};return Object.setPrototypeOf(Pf,md.prototype),Object.setPrototypeOf(jh,Pf),jh.foo()===42}catch{return!1}}Object.defineProperty(wd.prototype,"parent",{enumerable:!0,get:function(){if(wd.isBuffer(this))return this.buffer}}),Object.defineProperty(wd.prototype,"offset",{enumerable:!0,get:function(){if(wd.isBuffer(this))return this.byteOffset}});function Cd(jh){if(jh>hd)throw new RangeError('The value "'+jh+'" is invalid for option "size"');const Pf=new md(jh);return Object.setPrototypeOf(Pf,wd.prototype),Pf}function wd(jh,Pf,$f){if(typeof jh=="number"){if(typeof Pf=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return jd(jh)}return Nd(jh,Pf,$f)}wd.poolSize=8192;function Nd(jh,Pf,$f){if(typeof jh=="string")return Gd(jh,Pf);if(gd.isView(jh))return zd(jh);if(jh==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof jh);if(Zm(jh,gd)||jh&&Zm(jh.buffer,gd)||typeof yd<"u"&&(Zm(jh,yd)||jh&&Zm(jh.buffer,yd)))return qd(jh,Pf,$f);if(typeof jh=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Nh=jh.valueOf&&jh.valueOf();if(Nh!=null&&Nh!==jh)return wd.from(Nh,Pf,$f);const Wh=Wd(jh);if(Wh)return Wh;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof jh[Symbol.toPrimitive]=="function")return wd.from(jh[Symbol.toPrimitive]("string"),Pf,$f);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof jh)}wd.from=function(jh,Pf,$f){return Nd(jh,Pf,$f)},Object.setPrototypeOf(wd.prototype,md.prototype),Object.setPrototypeOf(wd,md);function Ld(jh){if(typeof jh!="number")throw new TypeError('"size" argument must be of type number');if(jh<0)throw new RangeError('The value "'+jh+'" is invalid for option "size"')}function Ud(jh,Pf,$f){return Ld(jh),jh<=0?Cd(jh):Pf!==void 0?typeof $f=="string"?Cd(jh).fill(Pf,$f):Cd(jh).fill(Pf):Cd(jh)}wd.alloc=function(jh,Pf,$f){return Ud(jh,Pf,$f)};function jd(jh){return Ld(jh),Cd(jh<0?0:Xd(jh)|0)}wd.allocUnsafe=function(jh){return jd(jh)},wd.allocUnsafeSlow=function(jh){return jd(jh)};function Gd(jh,Pf){if((typeof Pf!="string"||Pf==="")&&(Pf="utf8"),!wd.isEncoding(Pf))throw new TypeError("Unknown encoding: "+Pf);const $f=Zd(jh,Pf)|0;let Nh=Cd($f);const Wh=Nh.write(jh,Pf);return Wh!==$f&&(Nh=Nh.slice(0,Wh)),Nh}function Yd(jh){const Pf=jh.length<0?0:Xd(jh.length)|0,$f=Cd(Pf);for(let Nh=0;Nh=hd)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+hd.toString(16)+" bytes");return jh|0}function Jd(jh){return+jh!=jh&&(jh=0),wd.alloc(+jh)}wd.isBuffer=function(Pf){return Pf!=null&&Pf._isBuffer===!0&&Pf!==wd.prototype},wd.compare=function(Pf,$f){if(Zm(Pf,md)&&(Pf=wd.from(Pf,Pf.offset,Pf.byteLength)),Zm($f,md)&&($f=wd.from($f,$f.offset,$f.byteLength)),!wd.isBuffer(Pf)||!wd.isBuffer($f))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Pf===$f)return 0;let Nh=Pf.length,Wh=$f.length;for(let _m=0,$m=Math.min(Nh,Wh);_m<$m;++_m)if(Pf[_m]!==$f[_m]){Nh=Pf[_m],Wh=$f[_m];break}return NhWh.length?(wd.isBuffer($m)||($m=wd.from($m)),$m.copy(Wh,_m)):md.prototype.set.call(Wh,$m,_m);else if(wd.isBuffer($m))$m.copy(Wh,_m);else throw new TypeError('"list" argument must be an Array of Buffers');_m+=$m.length}return Wh};function Zd(jh,Pf){if(wd.isBuffer(jh))return jh.length;if(gd.isView(jh)||Zm(jh,gd))return jh.byteLength;if(typeof jh!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof jh);const $f=jh.length,Nh=arguments.length>2&&arguments[2]===!0;if(!Nh&&$f===0)return 0;let Wh=!1;for(;;)switch(Pf){case"ascii":case"latin1":case"binary":return $f;case"utf8":case"utf-8":return Ih(jh).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $f*2;case"hex":return $f>>>1;case"base64":return Om(jh).length;default:if(Wh)return Nh?-1:Ih(jh).length;Pf=(""+Pf).toLowerCase(),Wh=!0}}wd.byteLength=Zd;function mf(jh,Pf,$f){let Nh=!1;if((Pf===void 0||Pf<0)&&(Pf=0),Pf>this.length||(($f===void 0||$f>this.length)&&($f=this.length),$f<=0)||($f>>>=0,Pf>>>=0,$f<=Pf))return"";for(jh||(jh="utf8");;)switch(jh){case"hex":return lh(this,Pf,$f);case"utf8":case"utf-8":return Ff(this,Pf,$f);case"ascii":return yh(this,Pf,$f);case"latin1":case"binary":return Mh(this,Pf,$f);case"base64":return If(this,Pf,$f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return rh(this,Pf,$f);default:if(Nh)throw new TypeError("Unknown encoding: "+jh);jh=(jh+"").toLowerCase(),Nh=!0}}wd.prototype._isBuffer=!0;function xf(jh,Pf,$f){const Nh=jh[Pf];jh[Pf]=jh[$f],jh[$f]=Nh}wd.prototype.swap16=function(){const Pf=this.length;if(Pf%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let $f=0;$f$f&&(Pf+=" ... "),""},dd&&(wd.prototype[dd]=wd.prototype.inspect),wd.prototype.compare=function(Pf,$f,Nh,Wh,_m){if(Zm(Pf,md)&&(Pf=wd.from(Pf,Pf.offset,Pf.byteLength)),!wd.isBuffer(Pf))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Pf);if($f===void 0&&($f=0),Nh===void 0&&(Nh=Pf?Pf.length:0),Wh===void 0&&(Wh=0),_m===void 0&&(_m=this.length),$f<0||Nh>Pf.length||Wh<0||_m>this.length)throw new RangeError("out of range index");if(Wh>=_m&&$f>=Nh)return 0;if(Wh>=_m)return-1;if($f>=Nh)return 1;if($f>>>=0,Nh>>>=0,Wh>>>=0,_m>>>=0,this===Pf)return 0;let $m=_m-Wh,Ym=Nh-$f;const Ag=Math.min($m,Ym),sg=this.slice(Wh,_m),mg=Pf.slice($f,Nh);for(let vg=0;vg2147483647?$f=2147483647:$f<-2147483648&&($f=-2147483648),$f=+$f,Lm($f)&&($f=Wh?0:jh.length-1),$f<0&&($f=jh.length+$f),$f>=jh.length){if(Wh)return-1;$f=jh.length-1}else if($f<0)if(Wh)$f=0;else return-1;if(typeof Pf=="string"&&(Pf=wd.from(Pf,Nh)),wd.isBuffer(Pf))return Pf.length===0?-1:vf(jh,Pf,$f,Nh,Wh);if(typeof Pf=="number")return Pf=Pf&255,typeof md.prototype.indexOf=="function"?Wh?md.prototype.indexOf.call(jh,Pf,$f):md.prototype.lastIndexOf.call(jh,Pf,$f):vf(jh,[Pf],$f,Nh,Wh);throw new TypeError("val must be string, number or Buffer")}function vf(jh,Pf,$f,Nh,Wh){let _m=1,$m=jh.length,Ym=Pf.length;if(Nh!==void 0&&(Nh=String(Nh).toLowerCase(),Nh==="ucs2"||Nh==="ucs-2"||Nh==="utf16le"||Nh==="utf-16le")){if(jh.length<2||Pf.length<2)return-1;_m=2,$m/=2,Ym/=2,$f/=2}function Ag(mg,vg){return _m===1?mg[vg]:mg.readUInt16BE(vg*_m)}let sg;if(Wh){let mg=-1;for(sg=$f;sg<$m;sg++)if(Ag(jh,sg)===Ag(Pf,mg===-1?0:sg-mg)){if(mg===-1&&(mg=sg),sg-mg+1===Ym)return mg*_m}else mg!==-1&&(sg-=sg-mg),mg=-1}else for($f+Ym>$m&&($f=$m-Ym),sg=$f;sg>=0;sg--){let mg=!0;for(let vg=0;vgWh&&(Nh=Wh)):Nh=Wh;const _m=Pf.length;Nh>_m/2&&(Nh=_m/2);let $m;for($m=0;$m>>0,isFinite(Nh)?(Nh=Nh>>>0,Wh===void 0&&(Wh="utf8")):(Wh=Nh,Nh=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const _m=this.length-$f;if((Nh===void 0||Nh>_m)&&(Nh=_m),Pf.length>0&&(Nh<0||$f<0)||$f>this.length)throw new RangeError("Attempt to write outside buffer bounds");Wh||(Wh="utf8");let $m=!1;for(;;)switch(Wh){case"hex":return gf(this,Pf,$f,Nh);case"utf8":case"utf-8":return Af(this,Pf,$f,Nh);case"ascii":case"latin1":case"binary":return Df(this,Pf,$f,Nh);case"base64":return Of(this,Pf,$f,Nh);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Cf(this,Pf,$f,Nh);default:if($m)throw new TypeError("Unknown encoding: "+Wh);Wh=(""+Wh).toLowerCase(),$m=!0}},wd.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function If(jh,Pf,$f){return Pf===0&&$f===jh.length?ed.fromByteArray(jh):ed.fromByteArray(jh.slice(Pf,$f))}function Ff(jh,Pf,$f){$f=Math.min(jh.length,$f);const Nh=[];let Wh=Pf;for(;Wh<$f;){const _m=jh[Wh];let $m=null,Ym=_m>239?4:_m>223?3:_m>191?2:1;if(Wh+Ym<=$f){let Ag,sg,mg,vg;switch(Ym){case 1:_m<128&&($m=_m);break;case 2:Ag=jh[Wh+1],(Ag&192)===128&&(vg=(_m&31)<<6|Ag&63,vg>127&&($m=vg));break;case 3:Ag=jh[Wh+1],sg=jh[Wh+2],(Ag&192)===128&&(sg&192)===128&&(vg=(_m&15)<<12|(Ag&63)<<6|sg&63,vg>2047&&(vg<55296||vg>57343)&&($m=vg));break;case 4:Ag=jh[Wh+1],sg=jh[Wh+2],mg=jh[Wh+3],(Ag&192)===128&&(sg&192)===128&&(mg&192)===128&&(vg=(_m&15)<<18|(Ag&63)<<12|(sg&63)<<6|mg&63,vg>65535&&vg<1114112&&($m=vg))}}$m===null?($m=65533,Ym=1):$m>65535&&($m-=65536,Nh.push($m>>>10&1023|55296),$m=56320|$m&1023),Nh.push($m),Wh+=Ym}return Sh(Nh)}const sh=4096;function Sh(jh){const Pf=jh.length;if(Pf<=sh)return String.fromCharCode.apply(String,jh);let $f="",Nh=0;for(;NhNh)&&($f=Nh);let Wh="";for(let _m=Pf;_m<$f;++_m)Wh+=Wm[jh[_m]];return Wh}function rh(jh,Pf,$f){const Nh=jh.slice(Pf,$f);let Wh="";for(let _m=0;_mNh&&(Pf=Nh),$f<0?($f+=Nh,$f<0&&($f=0)):$f>Nh&&($f=Nh),$f$f)throw new RangeError("Trying to access beyond buffer length")}wd.prototype.readUintLE=wd.prototype.readUIntLE=function(Pf,$f,Nh){Pf=Pf>>>0,$f=$f>>>0,Nh||mh(Pf,$f,this.length);let Wh=this[Pf],_m=1,$m=0;for(;++$m<$f&&(_m*=256);)Wh+=this[Pf+$m]*_m;return Wh},wd.prototype.readUintBE=wd.prototype.readUIntBE=function(Pf,$f,Nh){Pf=Pf>>>0,$f=$f>>>0,Nh||mh(Pf,$f,this.length);let Wh=this[Pf+--$f],_m=1;for(;$f>0&&(_m*=256);)Wh+=this[Pf+--$f]*_m;return Wh},wd.prototype.readUint8=wd.prototype.readUInt8=function(Pf,$f){return Pf=Pf>>>0,$f||mh(Pf,1,this.length),this[Pf]},wd.prototype.readUint16LE=wd.prototype.readUInt16LE=function(Pf,$f){return Pf=Pf>>>0,$f||mh(Pf,2,this.length),this[Pf]|this[Pf+1]<<8},wd.prototype.readUint16BE=wd.prototype.readUInt16BE=function(Pf,$f){return Pf=Pf>>>0,$f||mh(Pf,2,this.length),this[Pf]<<8|this[Pf+1]},wd.prototype.readUint32LE=wd.prototype.readUInt32LE=function(Pf,$f){return Pf=Pf>>>0,$f||mh(Pf,4,this.length),(this[Pf]|this[Pf+1]<<8|this[Pf+2]<<16)+this[Pf+3]*16777216},wd.prototype.readUint32BE=wd.prototype.readUInt32BE=function(Pf,$f){return Pf=Pf>>>0,$f||mh(Pf,4,this.length),this[Pf]*16777216+(this[Pf+1]<<16|this[Pf+2]<<8|this[Pf+3])},wd.prototype.readBigUInt64LE=ig(function(Pf){Pf=Pf>>>0,$h(Pf,"offset");const $f=this[Pf],Nh=this[Pf+7];($f===void 0||Nh===void 0)&&Vf(Pf,this.length-8);const Wh=$f+this[++Pf]*2**8+this[++Pf]*2**16+this[++Pf]*2**24,_m=this[++Pf]+this[++Pf]*2**8+this[++Pf]*2**16+Nh*2**24;return BigInt(Wh)+(BigInt(_m)<>>0,$h(Pf,"offset");const $f=this[Pf],Nh=this[Pf+7];($f===void 0||Nh===void 0)&&Vf(Pf,this.length-8);const Wh=$f*2**24+this[++Pf]*2**16+this[++Pf]*2**8+this[++Pf],_m=this[++Pf]*2**24+this[++Pf]*2**16+this[++Pf]*2**8+Nh;return(BigInt(Wh)<>>0,$f=$f>>>0,Nh||mh(Pf,$f,this.length);let Wh=this[Pf],_m=1,$m=0;for(;++$m<$f&&(_m*=256);)Wh+=this[Pf+$m]*_m;return _m*=128,Wh>=_m&&(Wh-=Math.pow(2,8*$f)),Wh},wd.prototype.readIntBE=function(Pf,$f,Nh){Pf=Pf>>>0,$f=$f>>>0,Nh||mh(Pf,$f,this.length);let Wh=$f,_m=1,$m=this[Pf+--Wh];for(;Wh>0&&(_m*=256);)$m+=this[Pf+--Wh]*_m;return _m*=128,$m>=_m&&($m-=Math.pow(2,8*$f)),$m},wd.prototype.readInt8=function(Pf,$f){return Pf=Pf>>>0,$f||mh(Pf,1,this.length),this[Pf]&128?(255-this[Pf]+1)*-1:this[Pf]},wd.prototype.readInt16LE=function(Pf,$f){Pf=Pf>>>0,$f||mh(Pf,2,this.length);const Nh=this[Pf]|this[Pf+1]<<8;return Nh&32768?Nh|4294901760:Nh},wd.prototype.readInt16BE=function(Pf,$f){Pf=Pf>>>0,$f||mh(Pf,2,this.length);const Nh=this[Pf+1]|this[Pf]<<8;return Nh&32768?Nh|4294901760:Nh},wd.prototype.readInt32LE=function(Pf,$f){return Pf=Pf>>>0,$f||mh(Pf,4,this.length),this[Pf]|this[Pf+1]<<8|this[Pf+2]<<16|this[Pf+3]<<24},wd.prototype.readInt32BE=function(Pf,$f){return Pf=Pf>>>0,$f||mh(Pf,4,this.length),this[Pf]<<24|this[Pf+1]<<16|this[Pf+2]<<8|this[Pf+3]},wd.prototype.readBigInt64LE=ig(function(Pf){Pf=Pf>>>0,$h(Pf,"offset");const $f=this[Pf],Nh=this[Pf+7];($f===void 0||Nh===void 0)&&Vf(Pf,this.length-8);const Wh=this[Pf+4]+this[Pf+5]*2**8+this[Pf+6]*2**16+(Nh<<24);return(BigInt(Wh)<>>0,$h(Pf,"offset");const $f=this[Pf],Nh=this[Pf+7];($f===void 0||Nh===void 0)&&Vf(Pf,this.length-8);const Wh=($f<<24)+this[++Pf]*2**16+this[++Pf]*2**8+this[++Pf];return(BigInt(Wh)<>>0,$f||mh(Pf,4,this.length),ud.read(this,Pf,!0,23,4)},wd.prototype.readFloatBE=function(Pf,$f){return Pf=Pf>>>0,$f||mh(Pf,4,this.length),ud.read(this,Pf,!1,23,4)},wd.prototype.readDoubleLE=function(Pf,$f){return Pf=Pf>>>0,$f||mh(Pf,8,this.length),ud.read(this,Pf,!0,52,8)},wd.prototype.readDoubleBE=function(Pf,$f){return Pf=Pf>>>0,$f||mh(Pf,8,this.length),ud.read(this,Pf,!1,52,8)};function xh(jh,Pf,$f,Nh,Wh,_m){if(!wd.isBuffer(jh))throw new TypeError('"buffer" argument must be a Buffer instance');if(Pf>Wh||Pf<_m)throw new RangeError('"value" argument is out of bounds');if($f+Nh>jh.length)throw new RangeError("Index out of range")}wd.prototype.writeUintLE=wd.prototype.writeUIntLE=function(Pf,$f,Nh,Wh){if(Pf=+Pf,$f=$f>>>0,Nh=Nh>>>0,!Wh){const Ym=Math.pow(2,8*Nh)-1;xh(this,Pf,$f,Nh,Ym,0)}let _m=1,$m=0;for(this[$f]=Pf&255;++$m>>0,Nh=Nh>>>0,!Wh){const Ym=Math.pow(2,8*Nh)-1;xh(this,Pf,$f,Nh,Ym,0)}let _m=Nh-1,$m=1;for(this[$f+_m]=Pf&255;--_m>=0&&($m*=256);)this[$f+_m]=Pf/$m&255;return $f+Nh},wd.prototype.writeUint8=wd.prototype.writeUInt8=function(Pf,$f,Nh){return Pf=+Pf,$f=$f>>>0,Nh||xh(this,Pf,$f,1,255,0),this[$f]=Pf&255,$f+1},wd.prototype.writeUint16LE=wd.prototype.writeUInt16LE=function(Pf,$f,Nh){return Pf=+Pf,$f=$f>>>0,Nh||xh(this,Pf,$f,2,65535,0),this[$f]=Pf&255,this[$f+1]=Pf>>>8,$f+2},wd.prototype.writeUint16BE=wd.prototype.writeUInt16BE=function(Pf,$f,Nh){return Pf=+Pf,$f=$f>>>0,Nh||xh(this,Pf,$f,2,65535,0),this[$f]=Pf>>>8,this[$f+1]=Pf&255,$f+2},wd.prototype.writeUint32LE=wd.prototype.writeUInt32LE=function(Pf,$f,Nh){return Pf=+Pf,$f=$f>>>0,Nh||xh(this,Pf,$f,4,4294967295,0),this[$f+3]=Pf>>>24,this[$f+2]=Pf>>>16,this[$f+1]=Pf>>>8,this[$f]=Pf&255,$f+4},wd.prototype.writeUint32BE=wd.prototype.writeUInt32BE=function(Pf,$f,Nh){return Pf=+Pf,$f=$f>>>0,Nh||xh(this,Pf,$f,4,4294967295,0),this[$f]=Pf>>>24,this[$f+1]=Pf>>>16,this[$f+2]=Pf>>>8,this[$f+3]=Pf&255,$f+4};function Eh(jh,Pf,$f,Nh,Wh){Sm(Pf,Nh,Wh,jh,$f,7);let _m=Number(Pf&BigInt(4294967295));jh[$f++]=_m,_m=_m>>8,jh[$f++]=_m,_m=_m>>8,jh[$f++]=_m,_m=_m>>8,jh[$f++]=_m;let $m=Number(Pf>>BigInt(32)&BigInt(4294967295));return jh[$f++]=$m,$m=$m>>8,jh[$f++]=$m,$m=$m>>8,jh[$f++]=$m,$m=$m>>8,jh[$f++]=$m,$f}function kf(jh,Pf,$f,Nh,Wh){Sm(Pf,Nh,Wh,jh,$f,7);let _m=Number(Pf&BigInt(4294967295));jh[$f+7]=_m,_m=_m>>8,jh[$f+6]=_m,_m=_m>>8,jh[$f+5]=_m,_m=_m>>8,jh[$f+4]=_m;let $m=Number(Pf>>BigInt(32)&BigInt(4294967295));return jh[$f+3]=$m,$m=$m>>8,jh[$f+2]=$m,$m=$m>>8,jh[$f+1]=$m,$m=$m>>8,jh[$f]=$m,$f+8}wd.prototype.writeBigUInt64LE=ig(function(Pf,$f=0){return Eh(this,Pf,$f,BigInt(0),BigInt("0xffffffffffffffff"))}),wd.prototype.writeBigUInt64BE=ig(function(Pf,$f=0){return kf(this,Pf,$f,BigInt(0),BigInt("0xffffffffffffffff"))}),wd.prototype.writeIntLE=function(Pf,$f,Nh,Wh){if(Pf=+Pf,$f=$f>>>0,!Wh){const Ag=Math.pow(2,8*Nh-1);xh(this,Pf,$f,Nh,Ag-1,-Ag)}let _m=0,$m=1,Ym=0;for(this[$f]=Pf&255;++_m>0)-Ym&255;return $f+Nh},wd.prototype.writeIntBE=function(Pf,$f,Nh,Wh){if(Pf=+Pf,$f=$f>>>0,!Wh){const Ag=Math.pow(2,8*Nh-1);xh(this,Pf,$f,Nh,Ag-1,-Ag)}let _m=Nh-1,$m=1,Ym=0;for(this[$f+_m]=Pf&255;--_m>=0&&($m*=256);)Pf<0&&Ym===0&&this[$f+_m+1]!==0&&(Ym=1),this[$f+_m]=(Pf/$m>>0)-Ym&255;return $f+Nh},wd.prototype.writeInt8=function(Pf,$f,Nh){return Pf=+Pf,$f=$f>>>0,Nh||xh(this,Pf,$f,1,127,-128),Pf<0&&(Pf=255+Pf+1),this[$f]=Pf&255,$f+1},wd.prototype.writeInt16LE=function(Pf,$f,Nh){return Pf=+Pf,$f=$f>>>0,Nh||xh(this,Pf,$f,2,32767,-32768),this[$f]=Pf&255,this[$f+1]=Pf>>>8,$f+2},wd.prototype.writeInt16BE=function(Pf,$f,Nh){return Pf=+Pf,$f=$f>>>0,Nh||xh(this,Pf,$f,2,32767,-32768),this[$f]=Pf>>>8,this[$f+1]=Pf&255,$f+2},wd.prototype.writeInt32LE=function(Pf,$f,Nh){return Pf=+Pf,$f=$f>>>0,Nh||xh(this,Pf,$f,4,2147483647,-2147483648),this[$f]=Pf&255,this[$f+1]=Pf>>>8,this[$f+2]=Pf>>>16,this[$f+3]=Pf>>>24,$f+4},wd.prototype.writeInt32BE=function(Pf,$f,Nh){return Pf=+Pf,$f=$f>>>0,Nh||xh(this,Pf,$f,4,2147483647,-2147483648),Pf<0&&(Pf=4294967295+Pf+1),this[$f]=Pf>>>24,this[$f+1]=Pf>>>16,this[$f+2]=Pf>>>8,this[$f+3]=Pf&255,$f+4},wd.prototype.writeBigInt64LE=ig(function(Pf,$f=0){return Eh(this,Pf,$f,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),wd.prototype.writeBigInt64BE=ig(function(Pf,$f=0){return kf(this,Pf,$f,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Rf(jh,Pf,$f,Nh,Wh,_m){if($f+Nh>jh.length)throw new RangeError("Index out of range");if($f<0)throw new RangeError("Index out of range")}function _h(jh,Pf,$f,Nh,Wh){return Pf=+Pf,$f=$f>>>0,Wh||Rf(jh,Pf,$f,4),ud.write(jh,Pf,$f,Nh,23,4),$f+4}wd.prototype.writeFloatLE=function(Pf,$f,Nh){return _h(this,Pf,$f,!0,Nh)},wd.prototype.writeFloatBE=function(Pf,$f,Nh){return _h(this,Pf,$f,!1,Nh)};function Ph(jh,Pf,$f,Nh,Wh){return Pf=+Pf,$f=$f>>>0,Wh||Rf(jh,Pf,$f,8),ud.write(jh,Pf,$f,Nh,52,8),$f+8}wd.prototype.writeDoubleLE=function(Pf,$f,Nh){return Ph(this,Pf,$f,!0,Nh)},wd.prototype.writeDoubleBE=function(Pf,$f,Nh){return Ph(this,Pf,$f,!1,Nh)},wd.prototype.copy=function(Pf,$f,Nh,Wh){if(!wd.isBuffer(Pf))throw new TypeError("argument should be a Buffer");if(Nh||(Nh=0),!Wh&&Wh!==0&&(Wh=this.length),$f>=Pf.length&&($f=Pf.length),$f||($f=0),Wh>0&&Wh=this.length)throw new RangeError("Index out of range");if(Wh<0)throw new RangeError("sourceEnd out of bounds");Wh>this.length&&(Wh=this.length),Pf.length-$f>>0,Nh=Nh===void 0?this.length:Nh>>>0,Pf||(Pf=0);let _m;if(typeof Pf=="number")for(_m=$f;_m2**32?Wh=oh(String($f)):typeof $f=="bigint"&&(Wh=String($f),($f>BigInt(2)**BigInt(32)||$f<-(BigInt(2)**BigInt(32)))&&(Wh=oh(Wh)),Wh+="n"),Nh+=` It must be ${Pf}. Received ${Wh}`,Nh},RangeError);function oh(jh){let Pf="",$f=jh.length;const Nh=jh[0]==="-"?1:0;for(;$f>=Nh+4;$f-=3)Pf=`_${jh.slice($f-3,$f)}${Pf}`;return`${jh.slice(0,$f)}${Pf}`}function Zh(jh,Pf,$f){$h(Pf,"offset"),(jh[Pf]===void 0||jh[Pf+$f]===void 0)&&Vf(Pf,jh.length-($f+1))}function Sm(jh,Pf,$f,Nh,Wh,_m){if(jh>$f||jh= 0${$m} and < 2${$m} ** ${(_m+1)*8}${$m}`:Ym=`>= -(2${$m} ** ${(_m+1)*8-1}${$m}) and < 2 ** ${(_m+1)*8-1}${$m}`,new sm.ERR_OUT_OF_RANGE("value",Ym,jh)}Zh(Nh,Wh,_m)}function $h(jh,Pf){if(typeof jh!="number")throw new sm.ERR_INVALID_ARG_TYPE(Pf,"number",jh)}function Vf(jh,Pf,$f){throw Math.floor(jh)!==jh?($h(jh,$f),new sm.ERR_OUT_OF_RANGE("offset","an integer",jh)):Pf<0?new sm.ERR_BUFFER_OUT_OF_BOUNDS:new sm.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${Pf}`,jh)}const nh=/[^+/0-9A-Za-z-_]/g;function Lh(jh){if(jh=jh.split("=")[0],jh=jh.trim().replace(nh,""),jh.length<2)return"";for(;jh.length%4!==0;)jh=jh+"=";return jh}function Ih(jh,Pf){Pf=Pf||1/0;let $f;const Nh=jh.length;let Wh=null;const _m=[];for(let $m=0;$m55295&&$f<57344){if(!Wh){if($f>56319){(Pf-=3)>-1&&_m.push(239,191,189);continue}else if($m+1===Nh){(Pf-=3)>-1&&_m.push(239,191,189);continue}Wh=$f;continue}if($f<56320){(Pf-=3)>-1&&_m.push(239,191,189),Wh=$f;continue}$f=(Wh-55296<<10|$f-56320)+65536}else Wh&&(Pf-=3)>-1&&_m.push(239,191,189);if(Wh=null,$f<128){if((Pf-=1)<0)break;_m.push($f)}else if($f<2048){if((Pf-=2)<0)break;_m.push($f>>6|192,$f&63|128)}else if($f<65536){if((Pf-=3)<0)break;_m.push($f>>12|224,$f>>6&63|128,$f&63|128)}else if($f<1114112){if((Pf-=4)<0)break;_m.push($f>>18|240,$f>>12&63|128,$f>>6&63|128,$f&63|128)}else throw new Error("Invalid code point")}return _m}function om(jh){const Pf=[];for(let $f=0;$f>8,Wh=$f%256,_m.push(Wh),_m.push(Nh);return _m}function Om(jh){return ed.toByteArray(Lh(jh))}function Im(jh,Pf,$f,Nh){let Wh;for(Wh=0;Wh=Pf.length||Wh>=jh.length);++Wh)Pf[Wh+$f]=jh[Wh];return Wh}function Zm(jh,Pf){return jh instanceof Pf||jh!=null&&jh.constructor!=null&&jh.constructor.name!=null&&jh.constructor.name===Pf.name}function Lm(jh){return jh!==jh}const Wm=function(){const jh="0123456789abcdef",Pf=new Array(256);for(let $f=0;$f<16;++$f){const Nh=$f*16;for(let Wh=0;Wh<16;++Wh)Pf[Nh+Wh]=jh[$f]+jh[Wh]}return Pf}();function ig(jh){return typeof BigInt>"u"?yg:jh}function yg(){throw new Error("BigInt not supported")}})(buffer$1);const Buffer$4=buffer$1.Buffer;function getSymbols(Ra){return Object.getOwnPropertySymbols(Ra).filter(ed=>Object.prototype.propertyIsEnumerable.call(Ra,ed))}function getTag$3(Ra){return Ra==null?Ra===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(Ra)}const regexpTag$1="[object RegExp]",stringTag$1="[object String]",numberTag$1="[object Number]",booleanTag="[object Boolean]",argumentsTag="[object Arguments]",symbolTag="[object Symbol]",dateTag$1="[object Date]",mapTag$3="[object Map]",setTag$3="[object Set]",arrayTag$1="[object Array]",arrayBufferTag$1="[object ArrayBuffer]",objectTag$3="[object Object]",dataViewTag$2="[object DataView]",uint8ArrayTag="[object Uint8Array]",uint8ClampedArrayTag="[object Uint8ClampedArray]",uint16ArrayTag="[object Uint16Array]",uint32ArrayTag="[object Uint32Array]",int8ArrayTag="[object Int8Array]",int16ArrayTag="[object Int16Array]",int32ArrayTag="[object Int32Array]",float32ArrayTag="[object Float32Array]",float64ArrayTag="[object Float64Array]";function cloneDeepWithImpl(Ra,ed,ud,dd=new Map,hd=void 0){const md=hd==null?void 0:hd(Ra,ed,ud,dd);if(md!=null)return md;if(isPrimitive(Ra))return Ra;if(dd.has(Ra))return dd.get(Ra);if(Array.isArray(Ra)){const gd=new Array(Ra.length);dd.set(Ra,gd);for(let yd=0;yd0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(ed){this.children=ed}}class CDATA extends NodeWithChildren{constructor(){super(...arguments),this.type=ElementType.CDATA}get nodeType(){return 4}}class Document extends NodeWithChildren{constructor(){super(...arguments),this.type=ElementType.Root}get nodeType(){return 9}}let Element$1=class extends NodeWithChildren{constructor(ed,ud,dd=[],hd=ed==="script"?ElementType.Script:ed==="style"?ElementType.Style:ElementType.Tag){super(dd),this.name=ed,this.attribs=ud,this.type=hd}get nodeType(){return 1}get tagName(){return this.name}set tagName(ed){this.name=ed}get attributes(){return Object.keys(this.attribs).map(ed=>{var ud,dd;return{name:ed,value:this.attribs[ed],namespace:(ud=this["x-attribsNamespace"])===null||ud===void 0?void 0:ud[ed],prefix:(dd=this["x-attribsPrefix"])===null||dd===void 0?void 0:dd[ed]}})}};function isTag(Ra){return isTag$1(Ra)}function isCDATA(Ra){return Ra.type===ElementType.CDATA}function isText(Ra){return Ra.type===ElementType.Text}function isComment$1(Ra){return Ra.type===ElementType.Comment}function isDirective(Ra){return Ra.type===ElementType.Directive}function isDocument(Ra){return Ra.type===ElementType.Root}function hasChildren(Ra){return Object.prototype.hasOwnProperty.call(Ra,"children")}function cloneNode(Ra,ed=!1){let ud;if(isText(Ra))ud=new Text(Ra.data);else if(isComment$1(Ra))ud=new Comment(Ra.data);else if(isTag(Ra)){const dd=ed?cloneChildren(Ra.children):[],hd=new Element$1(Ra.name,{...Ra.attribs},dd);dd.forEach(md=>md.parent=hd),Ra.namespace!=null&&(hd.namespace=Ra.namespace),Ra["x-attribsNamespace"]&&(hd["x-attribsNamespace"]={...Ra["x-attribsNamespace"]}),Ra["x-attribsPrefix"]&&(hd["x-attribsPrefix"]={...Ra["x-attribsPrefix"]}),ud=hd}else if(isCDATA(Ra)){const dd=ed?cloneChildren(Ra.children):[],hd=new CDATA(dd);dd.forEach(md=>md.parent=hd),ud=hd}else if(isDocument(Ra)){const dd=ed?cloneChildren(Ra.children):[],hd=new Document(dd);dd.forEach(md=>md.parent=hd),Ra["x-mode"]&&(hd["x-mode"]=Ra["x-mode"]),ud=hd}else if(isDirective(Ra)){const dd=new ProcessingInstruction(Ra.name,Ra.data);Ra["x-name"]!=null&&(dd["x-name"]=Ra["x-name"],dd["x-publicId"]=Ra["x-publicId"],dd["x-systemId"]=Ra["x-systemId"]),ud=dd}else throw new Error(`Not implemented yet: ${Ra.type}`);return ud.startIndex=Ra.startIndex,ud.endIndex=Ra.endIndex,Ra.sourceCodeLocation!=null&&(ud.sourceCodeLocation=Ra.sourceCodeLocation),ud}function cloneChildren(Ra){const ed=Ra.map(ud=>cloneNode(ud,!0));for(let ud=1;ud䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(Ra){return Ra.charCodeAt(0)}));var decodeDataXml={};Object.defineProperty(decodeDataXml,"__esModule",{value:!0});decodeDataXml.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(Ra){return Ra.charCodeAt(0)}));var decode_codepoint={};(function(Ra){var ed;Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.replaceCodePoint=Ra.fromCodePoint=void 0;var ud=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);Ra.fromCodePoint=(ed=String.fromCodePoint)!==null&&ed!==void 0?ed:function(md){var gd="";return md>65535&&(md-=65536,gd+=String.fromCharCode(md>>>10&1023|55296),md=56320|md&1023),gd+=String.fromCharCode(md),gd};function dd(md){var gd;return md>=55296&&md<=57343||md>1114111?65533:(gd=ud.get(md))!==null&&gd!==void 0?gd:md}Ra.replaceCodePoint=dd;function hd(md){return(0,Ra.fromCodePoint)(dd(md))}Ra.default=hd})(decode_codepoint);(function(Ra){var ed=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(gf,Af,Df,Of){Of===void 0&&(Of=Df);var Cf=Object.getOwnPropertyDescriptor(Af,Df);(!Cf||("get"in Cf?!Af.__esModule:Cf.writable||Cf.configurable))&&(Cf={enumerable:!0,get:function(){return Af[Df]}}),Object.defineProperty(gf,Of,Cf)}:function(gf,Af,Df,Of){Of===void 0&&(Of=Df),gf[Of]=Af[Df]}),ud=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(gf,Af){Object.defineProperty(gf,"default",{enumerable:!0,value:Af})}:function(gf,Af){gf.default=Af}),dd=commonjsGlobal&&commonjsGlobal.__importStar||function(gf){if(gf&&gf.__esModule)return gf;var Af={};if(gf!=null)for(var Df in gf)Df!=="default"&&Object.prototype.hasOwnProperty.call(gf,Df)&&ed(Af,gf,Df);return ud(Af,gf),Af},hd=commonjsGlobal&&commonjsGlobal.__importDefault||function(gf){return gf&&gf.__esModule?gf:{default:gf}};Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.decodeXML=Ra.decodeHTMLStrict=Ra.decodeHTMLAttribute=Ra.decodeHTML=Ra.determineBranch=Ra.EntityDecoder=Ra.DecodingMode=Ra.BinTrieFlags=Ra.fromCodePoint=Ra.replaceCodePoint=Ra.decodeCodePoint=Ra.xmlDecodeTree=Ra.htmlDecodeTree=void 0;var md=hd(decodeDataHtml);Ra.htmlDecodeTree=md.default;var gd=hd(decodeDataXml);Ra.xmlDecodeTree=gd.default;var yd=dd(decode_codepoint);Ra.decodeCodePoint=yd.default;var vd=decode_codepoint;Object.defineProperty(Ra,"replaceCodePoint",{enumerable:!0,get:function(){return vd.replaceCodePoint}}),Object.defineProperty(Ra,"fromCodePoint",{enumerable:!0,get:function(){return vd.fromCodePoint}});var Cd;(function(gf){gf[gf.NUM=35]="NUM",gf[gf.SEMI=59]="SEMI",gf[gf.EQUALS=61]="EQUALS",gf[gf.ZERO=48]="ZERO",gf[gf.NINE=57]="NINE",gf[gf.LOWER_A=97]="LOWER_A",gf[gf.LOWER_F=102]="LOWER_F",gf[gf.LOWER_X=120]="LOWER_X",gf[gf.LOWER_Z=122]="LOWER_Z",gf[gf.UPPER_A=65]="UPPER_A",gf[gf.UPPER_F=70]="UPPER_F",gf[gf.UPPER_Z=90]="UPPER_Z"})(Cd||(Cd={}));var wd=32,Nd;(function(gf){gf[gf.VALUE_LENGTH=49152]="VALUE_LENGTH",gf[gf.BRANCH_LENGTH=16256]="BRANCH_LENGTH",gf[gf.JUMP_TABLE=127]="JUMP_TABLE"})(Nd=Ra.BinTrieFlags||(Ra.BinTrieFlags={}));function Ld(gf){return gf>=Cd.ZERO&&gf<=Cd.NINE}function Ud(gf){return gf>=Cd.UPPER_A&&gf<=Cd.UPPER_F||gf>=Cd.LOWER_A&&gf<=Cd.LOWER_F}function jd(gf){return gf>=Cd.UPPER_A&&gf<=Cd.UPPER_Z||gf>=Cd.LOWER_A&&gf<=Cd.LOWER_Z||Ld(gf)}function Gd(gf){return gf===Cd.EQUALS||jd(gf)}var Yd;(function(gf){gf[gf.EntityStart=0]="EntityStart",gf[gf.NumericStart=1]="NumericStart",gf[gf.NumericDecimal=2]="NumericDecimal",gf[gf.NumericHex=3]="NumericHex",gf[gf.NamedEntity=4]="NamedEntity"})(Yd||(Yd={}));var zd;(function(gf){gf[gf.Legacy=0]="Legacy",gf[gf.Strict=1]="Strict",gf[gf.Attribute=2]="Attribute"})(zd=Ra.DecodingMode||(Ra.DecodingMode={}));var qd=function(){function gf(Af,Df,Of){this.decodeTree=Af,this.emitCodePoint=Df,this.errors=Of,this.state=Yd.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=zd.Strict}return gf.prototype.startEntity=function(Af){this.decodeMode=Af,this.state=Yd.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},gf.prototype.write=function(Af,Df){switch(this.state){case Yd.EntityStart:return Af.charCodeAt(Df)===Cd.NUM?(this.state=Yd.NumericStart,this.consumed+=1,this.stateNumericStart(Af,Df+1)):(this.state=Yd.NamedEntity,this.stateNamedEntity(Af,Df));case Yd.NumericStart:return this.stateNumericStart(Af,Df);case Yd.NumericDecimal:return this.stateNumericDecimal(Af,Df);case Yd.NumericHex:return this.stateNumericHex(Af,Df);case Yd.NamedEntity:return this.stateNamedEntity(Af,Df)}},gf.prototype.stateNumericStart=function(Af,Df){return Df>=Af.length?-1:(Af.charCodeAt(Df)|wd)===Cd.LOWER_X?(this.state=Yd.NumericHex,this.consumed+=1,this.stateNumericHex(Af,Df+1)):(this.state=Yd.NumericDecimal,this.stateNumericDecimal(Af,Df))},gf.prototype.addToNumericResult=function(Af,Df,Of,Cf){if(Df!==Of){var If=Of-Df;this.result=this.result*Math.pow(Cf,If)+parseInt(Af.substr(Df,If),Cf),this.consumed+=If}},gf.prototype.stateNumericHex=function(Af,Df){for(var Of=Df;Df>14;Df>14,If!==0){if(Ff===Cd.SEMI)return this.emitNamedEntityData(this.treeIndex,If,this.consumed+this.excess);this.decodeMode!==zd.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},gf.prototype.emitNotTerminatedNamedEntity=function(){var Af,Df=this,Of=Df.result,Cf=Df.decodeTree,If=(Cf[Of]&Nd.VALUE_LENGTH)>>14;return this.emitNamedEntityData(Of,If,this.consumed),(Af=this.errors)===null||Af===void 0||Af.missingSemicolonAfterCharacterReference(),this.consumed},gf.prototype.emitNamedEntityData=function(Af,Df,Of){var Cf=this.decodeTree;return this.emitCodePoint(Df===1?Cf[Af]&~Nd.VALUE_LENGTH:Cf[Af+1],Of),Df===3&&this.emitCodePoint(Cf[Af+2],Of),Of},gf.prototype.end=function(){var Af;switch(this.state){case Yd.NamedEntity:return this.result!==0&&(this.decodeMode!==zd.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Yd.NumericDecimal:return this.emitNumericEntity(0,2);case Yd.NumericHex:return this.emitNumericEntity(0,3);case Yd.NumericStart:return(Af=this.errors)===null||Af===void 0||Af.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Yd.EntityStart:return 0}},gf}();Ra.EntityDecoder=qd;function Wd(gf){var Af="",Df=new qd(gf,function(Of){return Af+=(0,yd.fromCodePoint)(Of)});return function(Cf,If){for(var Ff=0,sh=0;(sh=Cf.indexOf("&",sh))>=0;){Af+=Cf.slice(Ff,sh),Df.startEntity(If);var Sh=Df.write(Cf,sh+1);if(Sh<0){Ff=sh+Df.end();break}Ff=sh+Sh,sh=Sh===0?Ff+1:Ff}var yh=Af+Cf.slice(Ff);return Af="",yh}}function Xd(gf,Af,Df,Of){var Cf=(Af&Nd.BRANCH_LENGTH)>>7,If=Af&Nd.JUMP_TABLE;if(Cf===0)return If!==0&&Of===If?Df:-1;if(If){var Ff=Of-If;return Ff<0||Ff>=Cf?-1:gf[Df+Ff]-1}for(var sh=Df,Sh=sh+Cf-1;sh<=Sh;){var yh=sh+Sh>>>1,Mh=gf[yh];if(MhOf)Sh=yh-1;else return gf[yh+Cf]}return-1}Ra.determineBranch=Xd;var Jd=Wd(md.default),Zd=Wd(gd.default);function mf(gf,Af){return Af===void 0&&(Af=zd.Legacy),Jd(gf,Af)}Ra.decodeHTML=mf;function xf(gf){return Jd(gf,zd.Attribute)}Ra.decodeHTMLAttribute=xf;function _f(gf){return Jd(gf,zd.Strict)}Ra.decodeHTMLStrict=_f;function vf(gf){return Zd(gf,zd.Strict)}Ra.decodeXML=vf})(decode$2);var encode$3={},encodeHtml={};Object.defineProperty(encodeHtml,"__esModule",{value:!0});function restoreDiff(Ra){for(var ed=1;ed$\x80-\uFFFF]/g;var ed=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);Ra.getCodePoint=String.prototype.codePointAt!=null?function(hd,md){return hd.codePointAt(md)}:function(hd,md){return(hd.charCodeAt(md)&64512)===55296?(hd.charCodeAt(md)-55296)*1024+hd.charCodeAt(md+1)-56320+65536:hd.charCodeAt(md)};function ud(hd){for(var md="",gd=0,yd;(yd=Ra.xmlReplacer.exec(hd))!==null;){var vd=yd.index,Cd=hd.charCodeAt(vd),wd=ed.get(Cd);wd!==void 0?(md+=hd.substring(gd,vd)+wd,gd=vd+1):(md+="".concat(hd.substring(gd,vd),"&#x").concat((0,Ra.getCodePoint)(hd,vd).toString(16),";"),gd=Ra.xmlReplacer.lastIndex+=+((Cd&64512)===55296))}return md+hd.substr(gd)}Ra.encodeXML=ud,Ra.escape=ud;function dd(hd,md){return function(yd){for(var vd,Cd=0,wd="";vd=hd.exec(yd);)Cd!==vd.index&&(wd+=yd.substring(Cd,vd.index)),wd+=md.get(vd[0].charCodeAt(0)),Cd=vd.index+1;return wd+yd.substring(Cd)}}Ra.escapeUTF8=dd(/[&<>'"]/g,ed),Ra.escapeAttribute=dd(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),Ra.escapeText=dd(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))})(_escape);var __importDefault=commonjsGlobal&&commonjsGlobal.__importDefault||function(Ra){return Ra&&Ra.__esModule?Ra:{default:Ra}};Object.defineProperty(encode$3,"__esModule",{value:!0});encode$3.encodeNonAsciiHTML=encode$3.encodeHTML=void 0;var encode_html_js_1=__importDefault(encodeHtml),escape_js_1=_escape,htmlReplacer=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function encodeHTML(Ra){return encodeHTMLTrieRe(htmlReplacer,Ra)}encode$3.encodeHTML=encodeHTML;function encodeNonAsciiHTML(Ra){return encodeHTMLTrieRe(escape_js_1.xmlReplacer,Ra)}encode$3.encodeNonAsciiHTML=encodeNonAsciiHTML;function encodeHTMLTrieRe(Ra,ed){for(var ud="",dd=0,hd;(hd=Ra.exec(ed))!==null;){var md=hd.index;ud+=ed.substring(dd,md);var gd=ed.charCodeAt(md),yd=encode_html_js_1.default.get(gd);if(typeof yd=="object"){if(md+1[Ra.toLowerCase(),Ra])),attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(Ra=>[Ra.toLowerCase(),Ra])),unencodedElements=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function replaceQuotes(Ra){return Ra.replace(/"/g,""")}function formatAttributes(Ra,ed){var ud;if(!Ra)return;const dd=((ud=ed.encodeEntities)!==null&&ud!==void 0?ud:ed.decodeEntities)===!1?replaceQuotes:ed.xmlMode||ed.encodeEntities!=="utf8"?lib$4.encodeXML:lib$4.escapeAttribute;return Object.keys(Ra).map(hd=>{var md,gd;const yd=(md=Ra[hd])!==null&&md!==void 0?md:"";return ed.xmlMode==="foreign"&&(hd=(gd=attributeNames.get(hd))!==null&&gd!==void 0?gd:hd),!ed.emptyAttrs&&!ed.xmlMode&&yd===""?hd:`${hd}="${dd(yd)}"`}).join(" ")}const singleTag=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function render$3(Ra,ed={}){const ud="length"in Ra?Ra:[Ra];let dd="";for(let hd=0;hd0&&(dd+=render$3(Ra.children,ed)),(ed.xmlMode||!singleTag.has(Ra.name))&&(dd+=``)),dd}function renderDirective(Ra){return`<${Ra.data}>`}function renderText(Ra,ed){var ud;let dd=Ra.data||"";return((ud=ed.encodeEntities)!==null&&ud!==void 0?ud:ed.decodeEntities)!==!1&&!(!ed.xmlMode&&Ra.parent&&unencodedElements.has(Ra.parent.name))&&(dd=ed.xmlMode||ed.encodeEntities!=="utf8"?lib$4.encodeXML(dd):lib$4.escapeText(dd)),dd}function renderCdata(Ra){return``}function renderComment(Ra){return``}function getOuterHTML(Ra,ed){return render$3(Ra,ed)}function getInnerHTML(Ra,ed){return hasChildren(Ra)?Ra.children.map(ud=>getOuterHTML(ud,ed)).join(""):""}function getText(Ra){return Array.isArray(Ra)?Ra.map(getText).join(""):isTag(Ra)?Ra.name==="br"?` + */(function(Ra){const ed=base64Js$1,ud=ieee754$1,dd=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ra.Buffer=wd,Ra.SlowBuffer=Jd,Ra.INSPECT_MAX_BYTES=50;const hd=2147483647;Ra.kMaxLength=hd;const{Uint8Array:md,ArrayBuffer:gd,SharedArrayBuffer:yd}=globalThis;wd.TYPED_ARRAY_SUPPORT=vd(),!wd.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function vd(){try{const jh=new md(1),Pf={foo:function(){return 42}};return Object.setPrototypeOf(Pf,md.prototype),Object.setPrototypeOf(jh,Pf),jh.foo()===42}catch{return!1}}Object.defineProperty(wd.prototype,"parent",{enumerable:!0,get:function(){if(wd.isBuffer(this))return this.buffer}}),Object.defineProperty(wd.prototype,"offset",{enumerable:!0,get:function(){if(wd.isBuffer(this))return this.byteOffset}});function Cd(jh){if(jh>hd)throw new RangeError('The value "'+jh+'" is invalid for option "size"');const Pf=new md(jh);return Object.setPrototypeOf(Pf,wd.prototype),Pf}function wd(jh,Pf,$f){if(typeof jh=="number"){if(typeof Pf=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return jd(jh)}return Nd(jh,Pf,$f)}wd.poolSize=8192;function Nd(jh,Pf,$f){if(typeof jh=="string")return Gd(jh,Pf);if(gd.isView(jh))return zd(jh);if(jh==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof jh);if(Zm(jh,gd)||jh&&Zm(jh.buffer,gd)||typeof yd<"u"&&(Zm(jh,yd)||jh&&Zm(jh.buffer,yd)))return qd(jh,Pf,$f);if(typeof jh=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Nh=jh.valueOf&&jh.valueOf();if(Nh!=null&&Nh!==jh)return wd.from(Nh,Pf,$f);const Wh=Wd(jh);if(Wh)return Wh;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof jh[Symbol.toPrimitive]=="function")return wd.from(jh[Symbol.toPrimitive]("string"),Pf,$f);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof jh)}wd.from=function(jh,Pf,$f){return Nd(jh,Pf,$f)},Object.setPrototypeOf(wd.prototype,md.prototype),Object.setPrototypeOf(wd,md);function Ld(jh){if(typeof jh!="number")throw new TypeError('"size" argument must be of type number');if(jh<0)throw new RangeError('The value "'+jh+'" is invalid for option "size"')}function Ud(jh,Pf,$f){return Ld(jh),jh<=0?Cd(jh):Pf!==void 0?typeof $f=="string"?Cd(jh).fill(Pf,$f):Cd(jh).fill(Pf):Cd(jh)}wd.alloc=function(jh,Pf,$f){return Ud(jh,Pf,$f)};function jd(jh){return Ld(jh),Cd(jh<0?0:Xd(jh)|0)}wd.allocUnsafe=function(jh){return jd(jh)},wd.allocUnsafeSlow=function(jh){return jd(jh)};function Gd(jh,Pf){if((typeof Pf!="string"||Pf==="")&&(Pf="utf8"),!wd.isEncoding(Pf))throw new TypeError("Unknown encoding: "+Pf);const $f=Zd(jh,Pf)|0;let Nh=Cd($f);const Wh=Nh.write(jh,Pf);return Wh!==$f&&(Nh=Nh.slice(0,Wh)),Nh}function Yd(jh){const Pf=jh.length<0?0:Xd(jh.length)|0,$f=Cd(Pf);for(let Nh=0;Nh=hd)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+hd.toString(16)+" bytes");return jh|0}function Jd(jh){return+jh!=jh&&(jh=0),wd.alloc(+jh)}wd.isBuffer=function(Pf){return Pf!=null&&Pf._isBuffer===!0&&Pf!==wd.prototype},wd.compare=function(Pf,$f){if(Zm(Pf,md)&&(Pf=wd.from(Pf,Pf.offset,Pf.byteLength)),Zm($f,md)&&($f=wd.from($f,$f.offset,$f.byteLength)),!wd.isBuffer(Pf)||!wd.isBuffer($f))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Pf===$f)return 0;let Nh=Pf.length,Wh=$f.length;for(let _m=0,Om=Math.min(Nh,Wh);_mWh.length?(wd.isBuffer(Om)||(Om=wd.from(Om)),Om.copy(Wh,_m)):md.prototype.set.call(Wh,Om,_m);else if(wd.isBuffer(Om))Om.copy(Wh,_m);else throw new TypeError('"list" argument must be an Array of Buffers');_m+=Om.length}return Wh};function Zd(jh,Pf){if(wd.isBuffer(jh))return jh.length;if(gd.isView(jh)||Zm(jh,gd))return jh.byteLength;if(typeof jh!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof jh);const $f=jh.length,Nh=arguments.length>2&&arguments[2]===!0;if(!Nh&&$f===0)return 0;let Wh=!1;for(;;)switch(Pf){case"ascii":case"latin1":case"binary":return $f;case"utf8":case"utf-8":return Ih(jh).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $f*2;case"hex":return $f>>>1;case"base64":return Mm(jh).length;default:if(Wh)return Nh?-1:Ih(jh).length;Pf=(""+Pf).toLowerCase(),Wh=!0}}wd.byteLength=Zd;function mf(jh,Pf,$f){let Nh=!1;if((Pf===void 0||Pf<0)&&(Pf=0),Pf>this.length||(($f===void 0||$f>this.length)&&($f=this.length),$f<=0)||($f>>>=0,Pf>>>=0,$f<=Pf))return"";for(jh||(jh="utf8");;)switch(jh){case"hex":return lh(this,Pf,$f);case"utf8":case"utf-8":return Ff(this,Pf,$f);case"ascii":return _h(this,Pf,$f);case"latin1":case"binary":return Mh(this,Pf,$f);case"base64":return If(this,Pf,$f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return rh(this,Pf,$f);default:if(Nh)throw new TypeError("Unknown encoding: "+jh);jh=(jh+"").toLowerCase(),Nh=!0}}wd.prototype._isBuffer=!0;function xf(jh,Pf,$f){const Nh=jh[Pf];jh[Pf]=jh[$f],jh[$f]=Nh}wd.prototype.swap16=function(){const Pf=this.length;if(Pf%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let $f=0;$f$f&&(Pf+=" ... "),""},dd&&(wd.prototype[dd]=wd.prototype.inspect),wd.prototype.compare=function(Pf,$f,Nh,Wh,_m){if(Zm(Pf,md)&&(Pf=wd.from(Pf,Pf.offset,Pf.byteLength)),!wd.isBuffer(Pf))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Pf);if($f===void 0&&($f=0),Nh===void 0&&(Nh=Pf?Pf.length:0),Wh===void 0&&(Wh=0),_m===void 0&&(_m=this.length),$f<0||Nh>Pf.length||Wh<0||_m>this.length)throw new RangeError("out of range index");if(Wh>=_m&&$f>=Nh)return 0;if(Wh>=_m)return-1;if($f>=Nh)return 1;if($f>>>=0,Nh>>>=0,Wh>>>=0,_m>>>=0,this===Pf)return 0;let Om=_m-Wh,Wm=Nh-$f;const Ag=Math.min(Om,Wm),sg=this.slice(Wh,_m),yg=Pf.slice($f,Nh);for(let vg=0;vg2147483647?$f=2147483647:$f<-2147483648&&($f=-2147483648),$f=+$f,Ym($f)&&($f=Wh?0:jh.length-1),$f<0&&($f=jh.length+$f),$f>=jh.length){if(Wh)return-1;$f=jh.length-1}else if($f<0)if(Wh)$f=0;else return-1;if(typeof Pf=="string"&&(Pf=wd.from(Pf,Nh)),wd.isBuffer(Pf))return Pf.length===0?-1:vf(jh,Pf,$f,Nh,Wh);if(typeof Pf=="number")return Pf=Pf&255,typeof md.prototype.indexOf=="function"?Wh?md.prototype.indexOf.call(jh,Pf,$f):md.prototype.lastIndexOf.call(jh,Pf,$f):vf(jh,[Pf],$f,Nh,Wh);throw new TypeError("val must be string, number or Buffer")}function vf(jh,Pf,$f,Nh,Wh){let _m=1,Om=jh.length,Wm=Pf.length;if(Nh!==void 0&&(Nh=String(Nh).toLowerCase(),Nh==="ucs2"||Nh==="ucs-2"||Nh==="utf16le"||Nh==="utf-16le")){if(jh.length<2||Pf.length<2)return-1;_m=2,Om/=2,Wm/=2,$f/=2}function Ag(yg,vg){return _m===1?yg[vg]:yg.readUInt16BE(vg*_m)}let sg;if(Wh){let yg=-1;for(sg=$f;sgOm&&($f=Om-Wm),sg=$f;sg>=0;sg--){let yg=!0;for(let vg=0;vgWh&&(Nh=Wh)):Nh=Wh;const _m=Pf.length;Nh>_m/2&&(Nh=_m/2);let Om;for(Om=0;Om>>0,isFinite(Nh)?(Nh=Nh>>>0,Wh===void 0&&(Wh="utf8")):(Wh=Nh,Nh=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const _m=this.length-$f;if((Nh===void 0||Nh>_m)&&(Nh=_m),Pf.length>0&&(Nh<0||$f<0)||$f>this.length)throw new RangeError("Attempt to write outside buffer bounds");Wh||(Wh="utf8");let Om=!1;for(;;)switch(Wh){case"hex":return gf(this,Pf,$f,Nh);case"utf8":case"utf-8":return Af(this,Pf,$f,Nh);case"ascii":case"latin1":case"binary":return Df(this,Pf,$f,Nh);case"base64":return kf(this,Pf,$f,Nh);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Cf(this,Pf,$f,Nh);default:if(Om)throw new TypeError("Unknown encoding: "+Wh);Wh=(""+Wh).toLowerCase(),Om=!0}},wd.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function If(jh,Pf,$f){return Pf===0&&$f===jh.length?ed.fromByteArray(jh):ed.fromByteArray(jh.slice(Pf,$f))}function Ff(jh,Pf,$f){$f=Math.min(jh.length,$f);const Nh=[];let Wh=Pf;for(;Wh<$f;){const _m=jh[Wh];let Om=null,Wm=_m>239?4:_m>223?3:_m>191?2:1;if(Wh+Wm<=$f){let Ag,sg,yg,vg;switch(Wm){case 1:_m<128&&(Om=_m);break;case 2:Ag=jh[Wh+1],(Ag&192)===128&&(vg=(_m&31)<<6|Ag&63,vg>127&&(Om=vg));break;case 3:Ag=jh[Wh+1],sg=jh[Wh+2],(Ag&192)===128&&(sg&192)===128&&(vg=(_m&15)<<12|(Ag&63)<<6|sg&63,vg>2047&&(vg<55296||vg>57343)&&(Om=vg));break;case 4:Ag=jh[Wh+1],sg=jh[Wh+2],yg=jh[Wh+3],(Ag&192)===128&&(sg&192)===128&&(yg&192)===128&&(vg=(_m&15)<<18|(Ag&63)<<12|(sg&63)<<6|yg&63,vg>65535&&vg<1114112&&(Om=vg))}}Om===null?(Om=65533,Wm=1):Om>65535&&(Om-=65536,Nh.push(Om>>>10&1023|55296),Om=56320|Om&1023),Nh.push(Om),Wh+=Wm}return Eh(Nh)}const oh=4096;function Eh(jh){const Pf=jh.length;if(Pf<=oh)return String.fromCharCode.apply(String,jh);let $f="",Nh=0;for(;NhNh)&&($f=Nh);let Wh="";for(let _m=Pf;_m<$f;++_m)Wh+=jm[jh[_m]];return Wh}function rh(jh,Pf,$f){const Nh=jh.slice(Pf,$f);let Wh="";for(let _m=0;_mNh&&(Pf=Nh),$f<0?($f+=Nh,$f<0&&($f=0)):$f>Nh&&($f=Nh),$f$f)throw new RangeError("Trying to access beyond buffer length")}wd.prototype.readUintLE=wd.prototype.readUIntLE=function(Pf,$f,Nh){Pf=Pf>>>0,$f=$f>>>0,Nh||mh(Pf,$f,this.length);let Wh=this[Pf],_m=1,Om=0;for(;++Om<$f&&(_m*=256);)Wh+=this[Pf+Om]*_m;return Wh},wd.prototype.readUintBE=wd.prototype.readUIntBE=function(Pf,$f,Nh){Pf=Pf>>>0,$f=$f>>>0,Nh||mh(Pf,$f,this.length);let Wh=this[Pf+--$f],_m=1;for(;$f>0&&(_m*=256);)Wh+=this[Pf+--$f]*_m;return Wh},wd.prototype.readUint8=wd.prototype.readUInt8=function(Pf,$f){return Pf=Pf>>>0,$f||mh(Pf,1,this.length),this[Pf]},wd.prototype.readUint16LE=wd.prototype.readUInt16LE=function(Pf,$f){return Pf=Pf>>>0,$f||mh(Pf,2,this.length),this[Pf]|this[Pf+1]<<8},wd.prototype.readUint16BE=wd.prototype.readUInt16BE=function(Pf,$f){return Pf=Pf>>>0,$f||mh(Pf,2,this.length),this[Pf]<<8|this[Pf+1]},wd.prototype.readUint32LE=wd.prototype.readUInt32LE=function(Pf,$f){return Pf=Pf>>>0,$f||mh(Pf,4,this.length),(this[Pf]|this[Pf+1]<<8|this[Pf+2]<<16)+this[Pf+3]*16777216},wd.prototype.readUint32BE=wd.prototype.readUInt32BE=function(Pf,$f){return Pf=Pf>>>0,$f||mh(Pf,4,this.length),this[Pf]*16777216+(this[Pf+1]<<16|this[Pf+2]<<8|this[Pf+3])},wd.prototype.readBigUInt64LE=rg(function(Pf){Pf=Pf>>>0,$h(Pf,"offset");const $f=this[Pf],Nh=this[Pf+7];($f===void 0||Nh===void 0)&&Vf(Pf,this.length-8);const Wh=$f+this[++Pf]*2**8+this[++Pf]*2**16+this[++Pf]*2**24,_m=this[++Pf]+this[++Pf]*2**8+this[++Pf]*2**16+Nh*2**24;return BigInt(Wh)+(BigInt(_m)<>>0,$h(Pf,"offset");const $f=this[Pf],Nh=this[Pf+7];($f===void 0||Nh===void 0)&&Vf(Pf,this.length-8);const Wh=$f*2**24+this[++Pf]*2**16+this[++Pf]*2**8+this[++Pf],_m=this[++Pf]*2**24+this[++Pf]*2**16+this[++Pf]*2**8+Nh;return(BigInt(Wh)<>>0,$f=$f>>>0,Nh||mh(Pf,$f,this.length);let Wh=this[Pf],_m=1,Om=0;for(;++Om<$f&&(_m*=256);)Wh+=this[Pf+Om]*_m;return _m*=128,Wh>=_m&&(Wh-=Math.pow(2,8*$f)),Wh},wd.prototype.readIntBE=function(Pf,$f,Nh){Pf=Pf>>>0,$f=$f>>>0,Nh||mh(Pf,$f,this.length);let Wh=$f,_m=1,Om=this[Pf+--Wh];for(;Wh>0&&(_m*=256);)Om+=this[Pf+--Wh]*_m;return _m*=128,Om>=_m&&(Om-=Math.pow(2,8*$f)),Om},wd.prototype.readInt8=function(Pf,$f){return Pf=Pf>>>0,$f||mh(Pf,1,this.length),this[Pf]&128?(255-this[Pf]+1)*-1:this[Pf]},wd.prototype.readInt16LE=function(Pf,$f){Pf=Pf>>>0,$f||mh(Pf,2,this.length);const Nh=this[Pf]|this[Pf+1]<<8;return Nh&32768?Nh|4294901760:Nh},wd.prototype.readInt16BE=function(Pf,$f){Pf=Pf>>>0,$f||mh(Pf,2,this.length);const Nh=this[Pf+1]|this[Pf]<<8;return Nh&32768?Nh|4294901760:Nh},wd.prototype.readInt32LE=function(Pf,$f){return Pf=Pf>>>0,$f||mh(Pf,4,this.length),this[Pf]|this[Pf+1]<<8|this[Pf+2]<<16|this[Pf+3]<<24},wd.prototype.readInt32BE=function(Pf,$f){return Pf=Pf>>>0,$f||mh(Pf,4,this.length),this[Pf]<<24|this[Pf+1]<<16|this[Pf+2]<<8|this[Pf+3]},wd.prototype.readBigInt64LE=rg(function(Pf){Pf=Pf>>>0,$h(Pf,"offset");const $f=this[Pf],Nh=this[Pf+7];($f===void 0||Nh===void 0)&&Vf(Pf,this.length-8);const Wh=this[Pf+4]+this[Pf+5]*2**8+this[Pf+6]*2**16+(Nh<<24);return(BigInt(Wh)<>>0,$h(Pf,"offset");const $f=this[Pf],Nh=this[Pf+7];($f===void 0||Nh===void 0)&&Vf(Pf,this.length-8);const Wh=($f<<24)+this[++Pf]*2**16+this[++Pf]*2**8+this[++Pf];return(BigInt(Wh)<>>0,$f||mh(Pf,4,this.length),ud.read(this,Pf,!0,23,4)},wd.prototype.readFloatBE=function(Pf,$f){return Pf=Pf>>>0,$f||mh(Pf,4,this.length),ud.read(this,Pf,!1,23,4)},wd.prototype.readDoubleLE=function(Pf,$f){return Pf=Pf>>>0,$f||mh(Pf,8,this.length),ud.read(this,Pf,!0,52,8)},wd.prototype.readDoubleBE=function(Pf,$f){return Pf=Pf>>>0,$f||mh(Pf,8,this.length),ud.read(this,Pf,!1,52,8)};function xh(jh,Pf,$f,Nh,Wh,_m){if(!wd.isBuffer(jh))throw new TypeError('"buffer" argument must be a Buffer instance');if(Pf>Wh||Pf<_m)throw new RangeError('"value" argument is out of bounds');if($f+Nh>jh.length)throw new RangeError("Index out of range")}wd.prototype.writeUintLE=wd.prototype.writeUIntLE=function(Pf,$f,Nh,Wh){if(Pf=+Pf,$f=$f>>>0,Nh=Nh>>>0,!Wh){const Wm=Math.pow(2,8*Nh)-1;xh(this,Pf,$f,Nh,Wm,0)}let _m=1,Om=0;for(this[$f]=Pf&255;++Om>>0,Nh=Nh>>>0,!Wh){const Wm=Math.pow(2,8*Nh)-1;xh(this,Pf,$f,Nh,Wm,0)}let _m=Nh-1,Om=1;for(this[$f+_m]=Pf&255;--_m>=0&&(Om*=256);)this[$f+_m]=Pf/Om&255;return $f+Nh},wd.prototype.writeUint8=wd.prototype.writeUInt8=function(Pf,$f,Nh){return Pf=+Pf,$f=$f>>>0,Nh||xh(this,Pf,$f,1,255,0),this[$f]=Pf&255,$f+1},wd.prototype.writeUint16LE=wd.prototype.writeUInt16LE=function(Pf,$f,Nh){return Pf=+Pf,$f=$f>>>0,Nh||xh(this,Pf,$f,2,65535,0),this[$f]=Pf&255,this[$f+1]=Pf>>>8,$f+2},wd.prototype.writeUint16BE=wd.prototype.writeUInt16BE=function(Pf,$f,Nh){return Pf=+Pf,$f=$f>>>0,Nh||xh(this,Pf,$f,2,65535,0),this[$f]=Pf>>>8,this[$f+1]=Pf&255,$f+2},wd.prototype.writeUint32LE=wd.prototype.writeUInt32LE=function(Pf,$f,Nh){return Pf=+Pf,$f=$f>>>0,Nh||xh(this,Pf,$f,4,4294967295,0),this[$f+3]=Pf>>>24,this[$f+2]=Pf>>>16,this[$f+1]=Pf>>>8,this[$f]=Pf&255,$f+4},wd.prototype.writeUint32BE=wd.prototype.writeUInt32BE=function(Pf,$f,Nh){return Pf=+Pf,$f=$f>>>0,Nh||xh(this,Pf,$f,4,4294967295,0),this[$f]=Pf>>>24,this[$f+1]=Pf>>>16,this[$f+2]=Pf>>>8,this[$f+3]=Pf&255,$f+4};function Sh(jh,Pf,$f,Nh,Wh){Sm(Pf,Nh,Wh,jh,$f,7);let _m=Number(Pf&BigInt(4294967295));jh[$f++]=_m,_m=_m>>8,jh[$f++]=_m,_m=_m>>8,jh[$f++]=_m,_m=_m>>8,jh[$f++]=_m;let Om=Number(Pf>>BigInt(32)&BigInt(4294967295));return jh[$f++]=Om,Om=Om>>8,jh[$f++]=Om,Om=Om>>8,jh[$f++]=Om,Om=Om>>8,jh[$f++]=Om,$f}function Of(jh,Pf,$f,Nh,Wh){Sm(Pf,Nh,Wh,jh,$f,7);let _m=Number(Pf&BigInt(4294967295));jh[$f+7]=_m,_m=_m>>8,jh[$f+6]=_m,_m=_m>>8,jh[$f+5]=_m,_m=_m>>8,jh[$f+4]=_m;let Om=Number(Pf>>BigInt(32)&BigInt(4294967295));return jh[$f+3]=Om,Om=Om>>8,jh[$f+2]=Om,Om=Om>>8,jh[$f+1]=Om,Om=Om>>8,jh[$f]=Om,$f+8}wd.prototype.writeBigUInt64LE=rg(function(Pf,$f=0){return Sh(this,Pf,$f,BigInt(0),BigInt("0xffffffffffffffff"))}),wd.prototype.writeBigUInt64BE=rg(function(Pf,$f=0){return Of(this,Pf,$f,BigInt(0),BigInt("0xffffffffffffffff"))}),wd.prototype.writeIntLE=function(Pf,$f,Nh,Wh){if(Pf=+Pf,$f=$f>>>0,!Wh){const Ag=Math.pow(2,8*Nh-1);xh(this,Pf,$f,Nh,Ag-1,-Ag)}let _m=0,Om=1,Wm=0;for(this[$f]=Pf&255;++_m>0)-Wm&255;return $f+Nh},wd.prototype.writeIntBE=function(Pf,$f,Nh,Wh){if(Pf=+Pf,$f=$f>>>0,!Wh){const Ag=Math.pow(2,8*Nh-1);xh(this,Pf,$f,Nh,Ag-1,-Ag)}let _m=Nh-1,Om=1,Wm=0;for(this[$f+_m]=Pf&255;--_m>=0&&(Om*=256);)Pf<0&&Wm===0&&this[$f+_m+1]!==0&&(Wm=1),this[$f+_m]=(Pf/Om>>0)-Wm&255;return $f+Nh},wd.prototype.writeInt8=function(Pf,$f,Nh){return Pf=+Pf,$f=$f>>>0,Nh||xh(this,Pf,$f,1,127,-128),Pf<0&&(Pf=255+Pf+1),this[$f]=Pf&255,$f+1},wd.prototype.writeInt16LE=function(Pf,$f,Nh){return Pf=+Pf,$f=$f>>>0,Nh||xh(this,Pf,$f,2,32767,-32768),this[$f]=Pf&255,this[$f+1]=Pf>>>8,$f+2},wd.prototype.writeInt16BE=function(Pf,$f,Nh){return Pf=+Pf,$f=$f>>>0,Nh||xh(this,Pf,$f,2,32767,-32768),this[$f]=Pf>>>8,this[$f+1]=Pf&255,$f+2},wd.prototype.writeInt32LE=function(Pf,$f,Nh){return Pf=+Pf,$f=$f>>>0,Nh||xh(this,Pf,$f,4,2147483647,-2147483648),this[$f]=Pf&255,this[$f+1]=Pf>>>8,this[$f+2]=Pf>>>16,this[$f+3]=Pf>>>24,$f+4},wd.prototype.writeInt32BE=function(Pf,$f,Nh){return Pf=+Pf,$f=$f>>>0,Nh||xh(this,Pf,$f,4,2147483647,-2147483648),Pf<0&&(Pf=4294967295+Pf+1),this[$f]=Pf>>>24,this[$f+1]=Pf>>>16,this[$f+2]=Pf>>>8,this[$f+3]=Pf&255,$f+4},wd.prototype.writeBigInt64LE=rg(function(Pf,$f=0){return Sh(this,Pf,$f,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),wd.prototype.writeBigInt64BE=rg(function(Pf,$f=0){return Of(this,Pf,$f,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Rf(jh,Pf,$f,Nh,Wh,_m){if($f+Nh>jh.length)throw new RangeError("Index out of range");if($f<0)throw new RangeError("Index out of range")}function yh(jh,Pf,$f,Nh,Wh){return Pf=+Pf,$f=$f>>>0,Wh||Rf(jh,Pf,$f,4),ud.write(jh,Pf,$f,Nh,23,4),$f+4}wd.prototype.writeFloatLE=function(Pf,$f,Nh){return yh(this,Pf,$f,!0,Nh)},wd.prototype.writeFloatBE=function(Pf,$f,Nh){return yh(this,Pf,$f,!1,Nh)};function Ph(jh,Pf,$f,Nh,Wh){return Pf=+Pf,$f=$f>>>0,Wh||Rf(jh,Pf,$f,8),ud.write(jh,Pf,$f,Nh,52,8),$f+8}wd.prototype.writeDoubleLE=function(Pf,$f,Nh){return Ph(this,Pf,$f,!0,Nh)},wd.prototype.writeDoubleBE=function(Pf,$f,Nh){return Ph(this,Pf,$f,!1,Nh)},wd.prototype.copy=function(Pf,$f,Nh,Wh){if(!wd.isBuffer(Pf))throw new TypeError("argument should be a Buffer");if(Nh||(Nh=0),!Wh&&Wh!==0&&(Wh=this.length),$f>=Pf.length&&($f=Pf.length),$f||($f=0),Wh>0&&Wh=this.length)throw new RangeError("Index out of range");if(Wh<0)throw new RangeError("sourceEnd out of bounds");Wh>this.length&&(Wh=this.length),Pf.length-$f>>0,Nh=Nh===void 0?this.length:Nh>>>0,Pf||(Pf=0);let _m;if(typeof Pf=="number")for(_m=$f;_m2**32?Wh=sh(String($f)):typeof $f=="bigint"&&(Wh=String($f),($f>BigInt(2)**BigInt(32)||$f<-(BigInt(2)**BigInt(32)))&&(Wh=sh(Wh)),Wh+="n"),Nh+=` It must be ${Pf}. Received ${Wh}`,Nh},RangeError);function sh(jh){let Pf="",$f=jh.length;const Nh=jh[0]==="-"?1:0;for(;$f>=Nh+4;$f-=3)Pf=`_${jh.slice($f-3,$f)}${Pf}`;return`${jh.slice(0,$f)}${Pf}`}function Zh(jh,Pf,$f){$h(Pf,"offset"),(jh[Pf]===void 0||jh[Pf+$f]===void 0)&&Vf(Pf,jh.length-($f+1))}function Sm(jh,Pf,$f,Nh,Wh,_m){if(jh>$f||jh= 0${Om} and < 2${Om} ** ${(_m+1)*8}${Om}`:Wm=`>= -(2${Om} ** ${(_m+1)*8-1}${Om}) and < 2 ** ${(_m+1)*8-1}${Om}`,new sm.ERR_OUT_OF_RANGE("value",Wm,jh)}Zh(Nh,Wh,_m)}function $h(jh,Pf){if(typeof jh!="number")throw new sm.ERR_INVALID_ARG_TYPE(Pf,"number",jh)}function Vf(jh,Pf,$f){throw Math.floor(jh)!==jh?($h(jh,$f),new sm.ERR_OUT_OF_RANGE("offset","an integer",jh)):Pf<0?new sm.ERR_BUFFER_OUT_OF_BOUNDS:new sm.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${Pf}`,jh)}const nh=/[^+/0-9A-Za-z-_]/g;function Lh(jh){if(jh=jh.split("=")[0],jh=jh.trim().replace(nh,""),jh.length<2)return"";for(;jh.length%4!==0;)jh=jh+"=";return jh}function Ih(jh,Pf){Pf=Pf||1/0;let $f;const Nh=jh.length;let Wh=null;const _m=[];for(let Om=0;Om55295&&$f<57344){if(!Wh){if($f>56319){(Pf-=3)>-1&&_m.push(239,191,189);continue}else if(Om+1===Nh){(Pf-=3)>-1&&_m.push(239,191,189);continue}Wh=$f;continue}if($f<56320){(Pf-=3)>-1&&_m.push(239,191,189),Wh=$f;continue}$f=(Wh-55296<<10|$f-56320)+65536}else Wh&&(Pf-=3)>-1&&_m.push(239,191,189);if(Wh=null,$f<128){if((Pf-=1)<0)break;_m.push($f)}else if($f<2048){if((Pf-=2)<0)break;_m.push($f>>6|192,$f&63|128)}else if($f<65536){if((Pf-=3)<0)break;_m.push($f>>12|224,$f>>6&63|128,$f&63|128)}else if($f<1114112){if((Pf-=4)<0)break;_m.push($f>>18|240,$f>>12&63|128,$f>>6&63|128,$f&63|128)}else throw new Error("Invalid code point")}return _m}function om(jh){const Pf=[];for(let $f=0;$f>8,Wh=$f%256,_m.push(Wh),_m.push(Nh);return _m}function Mm(jh){return ed.toByteArray(Lh(jh))}function Nm(jh,Pf,$f,Nh){let Wh;for(Wh=0;Wh=Pf.length||Wh>=jh.length);++Wh)Pf[Wh+$f]=jh[Wh];return Wh}function Zm(jh,Pf){return jh instanceof Pf||jh!=null&&jh.constructor!=null&&jh.constructor.name!=null&&jh.constructor.name===Pf.name}function Ym(jh){return jh!==jh}const jm=function(){const jh="0123456789abcdef",Pf=new Array(256);for(let $f=0;$f<16;++$f){const Nh=$f*16;for(let Wh=0;Wh<16;++Wh)Pf[Nh+Wh]=jh[$f]+jh[Wh]}return Pf}();function rg(jh){return typeof BigInt>"u"?pg:jh}function pg(){throw new Error("BigInt not supported")}})(buffer$1);const Buffer$4=buffer$1.Buffer;function getSymbols(Ra){return Object.getOwnPropertySymbols(Ra).filter(ed=>Object.prototype.propertyIsEnumerable.call(Ra,ed))}function getTag$3(Ra){return Ra==null?Ra===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(Ra)}const regexpTag$1="[object RegExp]",stringTag$1="[object String]",numberTag$1="[object Number]",booleanTag="[object Boolean]",argumentsTag="[object Arguments]",symbolTag="[object Symbol]",dateTag$1="[object Date]",mapTag$3="[object Map]",setTag$3="[object Set]",arrayTag$1="[object Array]",arrayBufferTag$1="[object ArrayBuffer]",objectTag$3="[object Object]",dataViewTag$2="[object DataView]",uint8ArrayTag="[object Uint8Array]",uint8ClampedArrayTag="[object Uint8ClampedArray]",uint16ArrayTag="[object Uint16Array]",uint32ArrayTag="[object Uint32Array]",int8ArrayTag="[object Int8Array]",int16ArrayTag="[object Int16Array]",int32ArrayTag="[object Int32Array]",float32ArrayTag="[object Float32Array]",float64ArrayTag="[object Float64Array]";function cloneDeepWithImpl(Ra,ed,ud,dd=new Map,hd=void 0){const md=hd==null?void 0:hd(Ra,ed,ud,dd);if(md!=null)return md;if(isPrimitive(Ra))return Ra;if(dd.has(Ra))return dd.get(Ra);if(Array.isArray(Ra)){const gd=new Array(Ra.length);dd.set(Ra,gd);for(let yd=0;yd0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(ed){this.children=ed}}class CDATA extends NodeWithChildren{constructor(){super(...arguments),this.type=ElementType.CDATA}get nodeType(){return 4}}class Document extends NodeWithChildren{constructor(){super(...arguments),this.type=ElementType.Root}get nodeType(){return 9}}let Element$1=class extends NodeWithChildren{constructor(ed,ud,dd=[],hd=ed==="script"?ElementType.Script:ed==="style"?ElementType.Style:ElementType.Tag){super(dd),this.name=ed,this.attribs=ud,this.type=hd}get nodeType(){return 1}get tagName(){return this.name}set tagName(ed){this.name=ed}get attributes(){return Object.keys(this.attribs).map(ed=>{var ud,dd;return{name:ed,value:this.attribs[ed],namespace:(ud=this["x-attribsNamespace"])===null||ud===void 0?void 0:ud[ed],prefix:(dd=this["x-attribsPrefix"])===null||dd===void 0?void 0:dd[ed]}})}};function isTag(Ra){return isTag$1(Ra)}function isCDATA(Ra){return Ra.type===ElementType.CDATA}function isText(Ra){return Ra.type===ElementType.Text}function isComment$1(Ra){return Ra.type===ElementType.Comment}function isDirective(Ra){return Ra.type===ElementType.Directive}function isDocument(Ra){return Ra.type===ElementType.Root}function hasChildren(Ra){return Object.prototype.hasOwnProperty.call(Ra,"children")}function cloneNode(Ra,ed=!1){let ud;if(isText(Ra))ud=new Text(Ra.data);else if(isComment$1(Ra))ud=new Comment(Ra.data);else if(isTag(Ra)){const dd=ed?cloneChildren(Ra.children):[],hd=new Element$1(Ra.name,{...Ra.attribs},dd);dd.forEach(md=>md.parent=hd),Ra.namespace!=null&&(hd.namespace=Ra.namespace),Ra["x-attribsNamespace"]&&(hd["x-attribsNamespace"]={...Ra["x-attribsNamespace"]}),Ra["x-attribsPrefix"]&&(hd["x-attribsPrefix"]={...Ra["x-attribsPrefix"]}),ud=hd}else if(isCDATA(Ra)){const dd=ed?cloneChildren(Ra.children):[],hd=new CDATA(dd);dd.forEach(md=>md.parent=hd),ud=hd}else if(isDocument(Ra)){const dd=ed?cloneChildren(Ra.children):[],hd=new Document(dd);dd.forEach(md=>md.parent=hd),Ra["x-mode"]&&(hd["x-mode"]=Ra["x-mode"]),ud=hd}else if(isDirective(Ra)){const dd=new ProcessingInstruction(Ra.name,Ra.data);Ra["x-name"]!=null&&(dd["x-name"]=Ra["x-name"],dd["x-publicId"]=Ra["x-publicId"],dd["x-systemId"]=Ra["x-systemId"]),ud=dd}else throw new Error(`Not implemented yet: ${Ra.type}`);return ud.startIndex=Ra.startIndex,ud.endIndex=Ra.endIndex,Ra.sourceCodeLocation!=null&&(ud.sourceCodeLocation=Ra.sourceCodeLocation),ud}function cloneChildren(Ra){const ed=Ra.map(ud=>cloneNode(ud,!0));for(let ud=1;ud䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(Ra){return Ra.charCodeAt(0)}));var decodeDataXml={};Object.defineProperty(decodeDataXml,"__esModule",{value:!0});decodeDataXml.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(Ra){return Ra.charCodeAt(0)}));var decode_codepoint={};(function(Ra){var ed;Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.replaceCodePoint=Ra.fromCodePoint=void 0;var ud=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);Ra.fromCodePoint=(ed=String.fromCodePoint)!==null&&ed!==void 0?ed:function(md){var gd="";return md>65535&&(md-=65536,gd+=String.fromCharCode(md>>>10&1023|55296),md=56320|md&1023),gd+=String.fromCharCode(md),gd};function dd(md){var gd;return md>=55296&&md<=57343||md>1114111?65533:(gd=ud.get(md))!==null&&gd!==void 0?gd:md}Ra.replaceCodePoint=dd;function hd(md){return(0,Ra.fromCodePoint)(dd(md))}Ra.default=hd})(decode_codepoint);(function(Ra){var ed=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(gf,Af,Df,kf){kf===void 0&&(kf=Df);var Cf=Object.getOwnPropertyDescriptor(Af,Df);(!Cf||("get"in Cf?!Af.__esModule:Cf.writable||Cf.configurable))&&(Cf={enumerable:!0,get:function(){return Af[Df]}}),Object.defineProperty(gf,kf,Cf)}:function(gf,Af,Df,kf){kf===void 0&&(kf=Df),gf[kf]=Af[Df]}),ud=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(gf,Af){Object.defineProperty(gf,"default",{enumerable:!0,value:Af})}:function(gf,Af){gf.default=Af}),dd=commonjsGlobal&&commonjsGlobal.__importStar||function(gf){if(gf&&gf.__esModule)return gf;var Af={};if(gf!=null)for(var Df in gf)Df!=="default"&&Object.prototype.hasOwnProperty.call(gf,Df)&&ed(Af,gf,Df);return ud(Af,gf),Af},hd=commonjsGlobal&&commonjsGlobal.__importDefault||function(gf){return gf&&gf.__esModule?gf:{default:gf}};Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.decodeXML=Ra.decodeHTMLStrict=Ra.decodeHTMLAttribute=Ra.decodeHTML=Ra.determineBranch=Ra.EntityDecoder=Ra.DecodingMode=Ra.BinTrieFlags=Ra.fromCodePoint=Ra.replaceCodePoint=Ra.decodeCodePoint=Ra.xmlDecodeTree=Ra.htmlDecodeTree=void 0;var md=hd(decodeDataHtml);Ra.htmlDecodeTree=md.default;var gd=hd(decodeDataXml);Ra.xmlDecodeTree=gd.default;var yd=dd(decode_codepoint);Ra.decodeCodePoint=yd.default;var vd=decode_codepoint;Object.defineProperty(Ra,"replaceCodePoint",{enumerable:!0,get:function(){return vd.replaceCodePoint}}),Object.defineProperty(Ra,"fromCodePoint",{enumerable:!0,get:function(){return vd.fromCodePoint}});var Cd;(function(gf){gf[gf.NUM=35]="NUM",gf[gf.SEMI=59]="SEMI",gf[gf.EQUALS=61]="EQUALS",gf[gf.ZERO=48]="ZERO",gf[gf.NINE=57]="NINE",gf[gf.LOWER_A=97]="LOWER_A",gf[gf.LOWER_F=102]="LOWER_F",gf[gf.LOWER_X=120]="LOWER_X",gf[gf.LOWER_Z=122]="LOWER_Z",gf[gf.UPPER_A=65]="UPPER_A",gf[gf.UPPER_F=70]="UPPER_F",gf[gf.UPPER_Z=90]="UPPER_Z"})(Cd||(Cd={}));var wd=32,Nd;(function(gf){gf[gf.VALUE_LENGTH=49152]="VALUE_LENGTH",gf[gf.BRANCH_LENGTH=16256]="BRANCH_LENGTH",gf[gf.JUMP_TABLE=127]="JUMP_TABLE"})(Nd=Ra.BinTrieFlags||(Ra.BinTrieFlags={}));function Ld(gf){return gf>=Cd.ZERO&&gf<=Cd.NINE}function Ud(gf){return gf>=Cd.UPPER_A&&gf<=Cd.UPPER_F||gf>=Cd.LOWER_A&&gf<=Cd.LOWER_F}function jd(gf){return gf>=Cd.UPPER_A&&gf<=Cd.UPPER_Z||gf>=Cd.LOWER_A&&gf<=Cd.LOWER_Z||Ld(gf)}function Gd(gf){return gf===Cd.EQUALS||jd(gf)}var Yd;(function(gf){gf[gf.EntityStart=0]="EntityStart",gf[gf.NumericStart=1]="NumericStart",gf[gf.NumericDecimal=2]="NumericDecimal",gf[gf.NumericHex=3]="NumericHex",gf[gf.NamedEntity=4]="NamedEntity"})(Yd||(Yd={}));var zd;(function(gf){gf[gf.Legacy=0]="Legacy",gf[gf.Strict=1]="Strict",gf[gf.Attribute=2]="Attribute"})(zd=Ra.DecodingMode||(Ra.DecodingMode={}));var qd=function(){function gf(Af,Df,kf){this.decodeTree=Af,this.emitCodePoint=Df,this.errors=kf,this.state=Yd.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=zd.Strict}return gf.prototype.startEntity=function(Af){this.decodeMode=Af,this.state=Yd.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},gf.prototype.write=function(Af,Df){switch(this.state){case Yd.EntityStart:return Af.charCodeAt(Df)===Cd.NUM?(this.state=Yd.NumericStart,this.consumed+=1,this.stateNumericStart(Af,Df+1)):(this.state=Yd.NamedEntity,this.stateNamedEntity(Af,Df));case Yd.NumericStart:return this.stateNumericStart(Af,Df);case Yd.NumericDecimal:return this.stateNumericDecimal(Af,Df);case Yd.NumericHex:return this.stateNumericHex(Af,Df);case Yd.NamedEntity:return this.stateNamedEntity(Af,Df)}},gf.prototype.stateNumericStart=function(Af,Df){return Df>=Af.length?-1:(Af.charCodeAt(Df)|wd)===Cd.LOWER_X?(this.state=Yd.NumericHex,this.consumed+=1,this.stateNumericHex(Af,Df+1)):(this.state=Yd.NumericDecimal,this.stateNumericDecimal(Af,Df))},gf.prototype.addToNumericResult=function(Af,Df,kf,Cf){if(Df!==kf){var If=kf-Df;this.result=this.result*Math.pow(Cf,If)+parseInt(Af.substr(Df,If),Cf),this.consumed+=If}},gf.prototype.stateNumericHex=function(Af,Df){for(var kf=Df;Df>14;Df>14,If!==0){if(Ff===Cd.SEMI)return this.emitNamedEntityData(this.treeIndex,If,this.consumed+this.excess);this.decodeMode!==zd.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},gf.prototype.emitNotTerminatedNamedEntity=function(){var Af,Df=this,kf=Df.result,Cf=Df.decodeTree,If=(Cf[kf]&Nd.VALUE_LENGTH)>>14;return this.emitNamedEntityData(kf,If,this.consumed),(Af=this.errors)===null||Af===void 0||Af.missingSemicolonAfterCharacterReference(),this.consumed},gf.prototype.emitNamedEntityData=function(Af,Df,kf){var Cf=this.decodeTree;return this.emitCodePoint(Df===1?Cf[Af]&~Nd.VALUE_LENGTH:Cf[Af+1],kf),Df===3&&this.emitCodePoint(Cf[Af+2],kf),kf},gf.prototype.end=function(){var Af;switch(this.state){case Yd.NamedEntity:return this.result!==0&&(this.decodeMode!==zd.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Yd.NumericDecimal:return this.emitNumericEntity(0,2);case Yd.NumericHex:return this.emitNumericEntity(0,3);case Yd.NumericStart:return(Af=this.errors)===null||Af===void 0||Af.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Yd.EntityStart:return 0}},gf}();Ra.EntityDecoder=qd;function Wd(gf){var Af="",Df=new qd(gf,function(kf){return Af+=(0,yd.fromCodePoint)(kf)});return function(Cf,If){for(var Ff=0,oh=0;(oh=Cf.indexOf("&",oh))>=0;){Af+=Cf.slice(Ff,oh),Df.startEntity(If);var Eh=Df.write(Cf,oh+1);if(Eh<0){Ff=oh+Df.end();break}Ff=oh+Eh,oh=Eh===0?Ff+1:Ff}var _h=Af+Cf.slice(Ff);return Af="",_h}}function Xd(gf,Af,Df,kf){var Cf=(Af&Nd.BRANCH_LENGTH)>>7,If=Af&Nd.JUMP_TABLE;if(Cf===0)return If!==0&&kf===If?Df:-1;if(If){var Ff=kf-If;return Ff<0||Ff>=Cf?-1:gf[Df+Ff]-1}for(var oh=Df,Eh=oh+Cf-1;oh<=Eh;){var _h=oh+Eh>>>1,Mh=gf[_h];if(Mhkf)Eh=_h-1;else return gf[_h+Cf]}return-1}Ra.determineBranch=Xd;var Jd=Wd(md.default),Zd=Wd(gd.default);function mf(gf,Af){return Af===void 0&&(Af=zd.Legacy),Jd(gf,Af)}Ra.decodeHTML=mf;function xf(gf){return Jd(gf,zd.Attribute)}Ra.decodeHTMLAttribute=xf;function _f(gf){return Jd(gf,zd.Strict)}Ra.decodeHTMLStrict=_f;function vf(gf){return Zd(gf,zd.Strict)}Ra.decodeXML=vf})(decode$2);var encode$3={},encodeHtml={};Object.defineProperty(encodeHtml,"__esModule",{value:!0});function restoreDiff(Ra){for(var ed=1;ed$\x80-\uFFFF]/g;var ed=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);Ra.getCodePoint=String.prototype.codePointAt!=null?function(hd,md){return hd.codePointAt(md)}:function(hd,md){return(hd.charCodeAt(md)&64512)===55296?(hd.charCodeAt(md)-55296)*1024+hd.charCodeAt(md+1)-56320+65536:hd.charCodeAt(md)};function ud(hd){for(var md="",gd=0,yd;(yd=Ra.xmlReplacer.exec(hd))!==null;){var vd=yd.index,Cd=hd.charCodeAt(vd),wd=ed.get(Cd);wd!==void 0?(md+=hd.substring(gd,vd)+wd,gd=vd+1):(md+="".concat(hd.substring(gd,vd),"&#x").concat((0,Ra.getCodePoint)(hd,vd).toString(16),";"),gd=Ra.xmlReplacer.lastIndex+=+((Cd&64512)===55296))}return md+hd.substr(gd)}Ra.encodeXML=ud,Ra.escape=ud;function dd(hd,md){return function(yd){for(var vd,Cd=0,wd="";vd=hd.exec(yd);)Cd!==vd.index&&(wd+=yd.substring(Cd,vd.index)),wd+=md.get(vd[0].charCodeAt(0)),Cd=vd.index+1;return wd+yd.substring(Cd)}}Ra.escapeUTF8=dd(/[&<>'"]/g,ed),Ra.escapeAttribute=dd(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),Ra.escapeText=dd(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))})(_escape);var __importDefault=commonjsGlobal&&commonjsGlobal.__importDefault||function(Ra){return Ra&&Ra.__esModule?Ra:{default:Ra}};Object.defineProperty(encode$3,"__esModule",{value:!0});encode$3.encodeNonAsciiHTML=encode$3.encodeHTML=void 0;var encode_html_js_1=__importDefault(encodeHtml),escape_js_1=_escape,htmlReplacer=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function encodeHTML(Ra){return encodeHTMLTrieRe(htmlReplacer,Ra)}encode$3.encodeHTML=encodeHTML;function encodeNonAsciiHTML(Ra){return encodeHTMLTrieRe(escape_js_1.xmlReplacer,Ra)}encode$3.encodeNonAsciiHTML=encodeNonAsciiHTML;function encodeHTMLTrieRe(Ra,ed){for(var ud="",dd=0,hd;(hd=Ra.exec(ed))!==null;){var md=hd.index;ud+=ed.substring(dd,md);var gd=ed.charCodeAt(md),yd=encode_html_js_1.default.get(gd);if(typeof yd=="object"){if(md+1[Ra.toLowerCase(),Ra])),attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(Ra=>[Ra.toLowerCase(),Ra])),unencodedElements=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function replaceQuotes(Ra){return Ra.replace(/"/g,""")}function formatAttributes(Ra,ed){var ud;if(!Ra)return;const dd=((ud=ed.encodeEntities)!==null&&ud!==void 0?ud:ed.decodeEntities)===!1?replaceQuotes:ed.xmlMode||ed.encodeEntities!=="utf8"?lib$4.encodeXML:lib$4.escapeAttribute;return Object.keys(Ra).map(hd=>{var md,gd;const yd=(md=Ra[hd])!==null&&md!==void 0?md:"";return ed.xmlMode==="foreign"&&(hd=(gd=attributeNames.get(hd))!==null&&gd!==void 0?gd:hd),!ed.emptyAttrs&&!ed.xmlMode&&yd===""?hd:`${hd}="${dd(yd)}"`}).join(" ")}const singleTag=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function render$3(Ra,ed={}){const ud="length"in Ra?Ra:[Ra];let dd="";for(let hd=0;hd0&&(dd+=render$3(Ra.children,ed)),(ed.xmlMode||!singleTag.has(Ra.name))&&(dd+=``)),dd}function renderDirective(Ra){return`<${Ra.data}>`}function renderText(Ra,ed){var ud;let dd=Ra.data||"";return((ud=ed.encodeEntities)!==null&&ud!==void 0?ud:ed.decodeEntities)!==!1&&!(!ed.xmlMode&&Ra.parent&&unencodedElements.has(Ra.parent.name))&&(dd=ed.xmlMode||ed.encodeEntities!=="utf8"?lib$4.encodeXML(dd):lib$4.escapeText(dd)),dd}function renderCdata(Ra){return``}function renderComment(Ra){return``}function getOuterHTML(Ra,ed){return render$3(Ra,ed)}function getInnerHTML(Ra,ed){return hasChildren(Ra)?Ra.children.map(ud=>getOuterHTML(ud,ed)).join(""):""}function getText(Ra){return Array.isArray(Ra)?Ra.map(getText).join(""):isTag(Ra)?Ra.name==="br"?` `:getText(Ra.children):isCDATA(Ra)?getText(Ra.children):isText(Ra)?Ra.data:""}function textContent(Ra){return Array.isArray(Ra)?Ra.map(textContent).join(""):hasChildren(Ra)&&!isComment$1(Ra)?textContent(Ra.children):isText(Ra)?Ra.data:""}function innerText(Ra){return Array.isArray(Ra)?Ra.map(innerText).join(""):hasChildren(Ra)&&(Ra.type===ElementType.Tag||isCDATA(Ra))?innerText(Ra.children):isText(Ra)?Ra.data:""}function getChildren(Ra){return hasChildren(Ra)?Ra.children:[]}function getParent(Ra){return Ra.parent||null}function getSiblings(Ra){const ed=getParent(Ra);if(ed!=null)return getChildren(ed);const ud=[Ra];let{prev:dd,next:hd}=Ra;for(;dd!=null;)ud.unshift(dd),{prev:dd}=dd;for(;hd!=null;)ud.push(hd),{next:hd}=hd;return ud}function getAttributeValue(Ra,ed){var ud;return(ud=Ra.attribs)===null||ud===void 0?void 0:ud[ed]}function hasAttrib(Ra,ed){return Ra.attribs!=null&&Object.prototype.hasOwnProperty.call(Ra.attribs,ed)&&Ra.attribs[ed]!=null}function getName(Ra){return Ra.name}function nextElementSibling(Ra){let{next:ed}=Ra;for(;ed!==null&&!isTag(ed);)({next:ed}=ed);return ed}function prevElementSibling(Ra){let{prev:ed}=Ra;for(;ed!==null&&!isTag(ed);)({prev:ed}=ed);return ed}function removeElement(Ra){if(Ra.prev&&(Ra.prev.next=Ra.next),Ra.next&&(Ra.next.prev=Ra.prev),Ra.parent){const ed=Ra.parent.children,ud=ed.lastIndexOf(Ra);ud>=0&&ed.splice(ud,1)}Ra.next=null,Ra.prev=null,Ra.parent=null}function replaceElement(Ra,ed){const ud=ed.prev=Ra.prev;ud&&(ud.next=ed);const dd=ed.next=Ra.next;dd&&(dd.prev=ed);const hd=ed.parent=Ra.parent;if(hd){const md=hd.children;md[md.lastIndexOf(Ra)]=ed,Ra.parent=null}}function appendChild(Ra,ed){if(removeElement(ed),ed.next=null,ed.parent=Ra,Ra.children.push(ed)>1){const ud=Ra.children[Ra.children.length-2];ud.next=ed,ed.prev=ud}else ed.prev=null}function append$3(Ra,ed){removeElement(ed);const{parent:ud}=Ra,dd=Ra.next;if(ed.next=dd,ed.prev=Ra,Ra.next=ed,ed.parent=ud,dd){if(dd.prev=ed,ud){const hd=ud.children;hd.splice(hd.lastIndexOf(dd),0,ed)}}else ud&&ud.children.push(ed)}function prependChild(Ra,ed){if(removeElement(ed),ed.parent=Ra,ed.prev=null,Ra.children.unshift(ed)!==1){const ud=Ra.children[1];ud.prev=ed,ed.next=ud}else ed.next=null}function prepend$1(Ra,ed){removeElement(ed);const{parent:ud}=Ra;if(ud){const dd=ud.children;dd.splice(dd.indexOf(Ra),0,ed)}Ra.prev&&(Ra.prev.next=ed),ed.parent=ud,ed.prev=Ra.prev,ed.next=Ra,Ra.prev=ed}function filter$5(Ra,ed,ud=!0,dd=1/0){return find$3(Ra,Array.isArray(ed)?ed:[ed],ud,dd)}function find$3(Ra,ed,ud,dd){const hd=[],md=[Array.isArray(ed)?ed:[ed]],gd=[0];for(;;){if(gd[0]>=md[0].length){if(gd.length===1)return hd;md.shift(),gd.shift();continue}const yd=md[0][gd[0]++];if(Ra(yd)&&(hd.push(yd),--dd<=0))return hd;ud&&hasChildren(yd)&&yd.children.length>0&&(gd.unshift(0),md.unshift(yd.children))}}function findOneChild(Ra,ed){return ed.find(Ra)}function findOne(Ra,ed,ud=!0){const dd=Array.isArray(ed)?ed:[ed];for(let hd=0;hd0){const gd=findOne(Ra,md.children,!0);if(gd)return gd}}return null}function existsOne(Ra,ed){return(Array.isArray(ed)?ed:[ed]).some(ud=>isTag(ud)&&Ra(ud)||hasChildren(ud)&&existsOne(Ra,ud.children))}function findAll(Ra,ed){const ud=[],dd=[Array.isArray(ed)?ed:[ed]],hd=[0];for(;;){if(hd[0]>=dd[0].length){if(dd.length===1)return ud;dd.shift(),hd.shift();continue}const md=dd[0][hd[0]++];isTag(md)&&Ra(md)&&ud.push(md),hasChildren(md)&&md.children.length>0&&(hd.unshift(0),dd.unshift(md.children))}}const Checks={tag_name(Ra){return typeof Ra=="function"?ed=>isTag(ed)&&Ra(ed.name):Ra==="*"?isTag:ed=>isTag(ed)&&ed.name===Ra},tag_type(Ra){return typeof Ra=="function"?ed=>Ra(ed.type):ed=>ed.type===Ra},tag_contains(Ra){return typeof Ra=="function"?ed=>isText(ed)&&Ra(ed.data):ed=>isText(ed)&&ed.data===Ra}};function getAttribCheck(Ra,ed){return typeof ed=="function"?ud=>isTag(ud)&&ed(ud.attribs[Ra]):ud=>isTag(ud)&&ud.attribs[Ra]===ed}function combineFuncs(Ra,ed){return ud=>Ra(ud)||ed(ud)}function compileTest(Ra){const ed=Object.keys(Ra).map(ud=>{const dd=Ra[ud];return Object.prototype.hasOwnProperty.call(Checks,ud)?Checks[ud](dd):getAttribCheck(ud,dd)});return ed.length===0?null:ed.reduce(combineFuncs)}function testElement(Ra,ed){const ud=compileTest(Ra);return ud?ud(ed):!0}function getElements(Ra,ed,ud,dd=1/0){const hd=compileTest(Ra);return hd?filter$5(hd,ed,ud,dd):[]}function getElementById(Ra,ed,ud=!0){return Array.isArray(ed)||(ed=[ed]),findOne(getAttribCheck("id",Ra),ed,ud)}function getElementsByTagName(Ra,ed,ud=!0,dd=1/0){return filter$5(Checks.tag_name(Ra),ed,ud,dd)}function getElementsByClassName(Ra,ed,ud=!0,dd=1/0){return filter$5(getAttribCheck("class",Ra),ed,ud,dd)}function getElementsByTagType(Ra,ed,ud=!0,dd=1/0){return filter$5(Checks.tag_type(Ra),ed,ud,dd)}function removeSubsets(Ra){let ed=Ra.length;for(;--ed>=0;){const ud=Ra[ed];if(ed>0&&Ra.lastIndexOf(ud,ed-1)>=0){Ra.splice(ed,1);continue}for(let dd=ud.parent;dd;dd=dd.parent)if(Ra.includes(dd)){Ra.splice(ed,1);break}}return Ra}var DocumentPosition$1;(function(Ra){Ra[Ra.DISCONNECTED=1]="DISCONNECTED",Ra[Ra.PRECEDING=2]="PRECEDING",Ra[Ra.FOLLOWING=4]="FOLLOWING",Ra[Ra.CONTAINS=8]="CONTAINS",Ra[Ra.CONTAINED_BY=16]="CONTAINED_BY"})(DocumentPosition$1||(DocumentPosition$1={}));function compareDocumentPosition(Ra,ed){const ud=[],dd=[];if(Ra===ed)return 0;let hd=hasChildren(Ra)?Ra:Ra.parent;for(;hd;)ud.unshift(hd),hd=hd.parent;for(hd=hasChildren(ed)?ed:ed.parent;hd;)dd.unshift(hd),hd=hd.parent;const md=Math.min(ud.length,dd.length);let gd=0;for(;gdvd.indexOf(wd)?yd===ed?DocumentPosition$1.FOLLOWING|DocumentPosition$1.CONTAINED_BY:DocumentPosition$1.FOLLOWING:yd===Ra?DocumentPosition$1.PRECEDING|DocumentPosition$1.CONTAINS:DocumentPosition$1.PRECEDING}function uniqueSort(Ra){return Ra=Ra.filter((ed,ud,dd)=>!dd.includes(ed,ud+1)),Ra.sort((ed,ud)=>{const dd=compareDocumentPosition(ed,ud);return dd&DocumentPosition$1.PRECEDING?-1:dd&DocumentPosition$1.FOLLOWING?1:0}),Ra}function getFeed(Ra){const ed=getOneElement(isValidFeed,Ra);return ed?ed.name==="feed"?getAtomFeed(ed):getRssFeed(ed):null}function getAtomFeed(Ra){var ed;const ud=Ra.children,dd={type:"atom",items:getElementsByTagName("entry",ud).map(gd=>{var yd;const{children:vd}=gd,Cd={media:getMediaElements(vd)};addConditionally(Cd,"id","id",vd),addConditionally(Cd,"title","title",vd);const wd=(yd=getOneElement("link",vd))===null||yd===void 0?void 0:yd.attribs.href;wd&&(Cd.link=wd);const Nd=fetch$1("summary",vd)||fetch$1("content",vd);Nd&&(Cd.description=Nd);const Ld=fetch$1("updated",vd);return Ld&&(Cd.pubDate=new Date(Ld)),Cd})};addConditionally(dd,"id","id",ud),addConditionally(dd,"title","title",ud);const hd=(ed=getOneElement("link",ud))===null||ed===void 0?void 0:ed.attribs.href;hd&&(dd.link=hd),addConditionally(dd,"description","subtitle",ud);const md=fetch$1("updated",ud);return md&&(dd.updated=new Date(md)),addConditionally(dd,"author","email",ud,!0),dd}function getRssFeed(Ra){var ed,ud;const dd=(ud=(ed=getOneElement("channel",Ra.children))===null||ed===void 0?void 0:ed.children)!==null&&ud!==void 0?ud:[],hd={type:Ra.name.substr(0,3),id:"",items:getElementsByTagName("item",Ra.children).map(gd=>{const{children:yd}=gd,vd={media:getMediaElements(yd)};addConditionally(vd,"id","guid",yd),addConditionally(vd,"title","title",yd),addConditionally(vd,"link","link",yd),addConditionally(vd,"description","description",yd);const Cd=fetch$1("pubDate",yd)||fetch$1("dc:date",yd);return Cd&&(vd.pubDate=new Date(Cd)),vd})};addConditionally(hd,"title","title",dd),addConditionally(hd,"link","link",dd),addConditionally(hd,"description","description",dd);const md=fetch$1("lastBuildDate",dd);return md&&(hd.updated=new Date(md)),addConditionally(hd,"author","managingEditor",dd,!0),hd}const MEDIA_KEYS_STRING=["url","type","lang"],MEDIA_KEYS_INT=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function getMediaElements(Ra){return getElementsByTagName("media:content",Ra).map(ed=>{const{attribs:ud}=ed,dd={medium:ud.medium,isDefault:!!ud.isDefault};for(const hd of MEDIA_KEYS_STRING)ud[hd]&&(dd[hd]=ud[hd]);for(const hd of MEDIA_KEYS_INT)ud[hd]&&(dd[hd]=parseInt(ud[hd],10));return ud.expression&&(dd.expression=ud.expression),dd})}function getOneElement(Ra,ed){return getElementsByTagName(Ra,ed,!0,1)[0]}function fetch$1(Ra,ed,ud=!1){return textContent(getElementsByTagName(Ra,ed,ud,1)).trim()}function addConditionally(Ra,ed,ud,dd,hd=!1){const md=fetch$1(ud,dd,hd);md&&(Ra[ed]=md)}function isValidFeed(Ra){return Ra==="rss"||Ra==="feed"||Ra==="rdf:RDF"}const DomUtils=Object.freeze(Object.defineProperty({__proto__:null,get DocumentPosition(){return DocumentPosition$1},append:append$3,appendChild,compareDocumentPosition,existsOne,filter:filter$5,find:find$3,findAll,findOne,findOneChild,getAttributeValue,getChildren,getElementById,getElements,getElementsByClassName,getElementsByTagName,getElementsByTagType,getFeed,getInnerHTML,getName,getOuterHTML,getParent,getSiblings,getText,hasAttrib,hasChildren,innerText,isCDATA,isComment:isComment$1,isDocument,isTag,isText,nextElementSibling,prepend:prepend$1,prependChild,prevElementSibling,removeElement,removeSubsets,replaceElement,testElement,textContent,uniqueSort},Symbol.toStringTag,{value:"Module"})),defaultOpts$1={_useHtmlParser2:!1};function flattenOptions(Ra,ed){if(!Ra)return ed??defaultOpts$1;const ud={_useHtmlParser2:!!Ra.xmlMode,...ed,...Ra};return Ra.xml?(ud._useHtmlParser2=!0,ud.xmlMode=!0,Ra.xml!==!0&&Object.assign(ud,Ra.xml)):Ra.xmlMode&&(ud._useHtmlParser2=!0),ud}function render$2(Ra,ed,ud){return Ra?Ra(ed??Ra._root.children,null,void 0,ud).toString():""}function isOptions(Ra,ed){return typeof Ra=="object"&&Ra!=null&&!("length"in Ra)&&!("type"in Ra)}function html$5(Ra,ed){const ud=isOptions(Ra)?(ed=Ra,void 0):Ra,dd={...this===null||this===void 0?void 0:this._options,...flattenOptions(ed)};return render$2(this,ud,dd)}function xml$4(Ra){const ed={...this._options,xmlMode:!0};return render$2(this,Ra,ed)}function text$3(Ra){const ed=Ra??(this?this.root():[]);let ud="";for(let dd=0;ddud.toUpperCase())}function cssCase(Ra){return Ra.replace(/[A-Z]/g,"-$&").toLowerCase()}function domEach(Ra,ed){const ud=Ra.length;for(let dd=0;ddRa.length-3)return!1;const ud=Ra.charCodeAt(ed+1);return(ud>=CharacterCodes.LowerA&&ud<=CharacterCodes.LowerZ||ud>=CharacterCodes.UpperA&&ud<=CharacterCodes.UpperZ||ud===CharacterCodes.Exclamation)&&Ra.includes(">",ed+2)}const hasOwn$2=Object.prototype.hasOwnProperty,rspace=/\s+/,dataAttrPrefix="data-",rboolean=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,rbrace=/^{[^]*}$|^\[[^]*]$/;function getAttr$1(Ra,ed,ud){var dd;if(!(!Ra||!isTag(Ra))){if((dd=Ra.attribs)!==null&&dd!==void 0||(Ra.attribs={}),!ed)return Ra.attribs;if(hasOwn$2.call(Ra.attribs,ed))return!ud&&rboolean.test(ed)?ed:Ra.attribs[ed];if(Ra.name==="option"&&ed==="value")return text$3(Ra.children);if(Ra.name==="input"&&(Ra.attribs.type==="radio"||Ra.attribs.type==="checkbox")&&ed==="value")return"on"}}function setAttr(Ra,ed,ud){ud===null?removeAttribute(Ra,ed):Ra.attribs[ed]=`${ud}`}function attr(Ra,ed){if(typeof Ra=="object"||ed!==void 0){if(typeof ed=="function"){if(typeof Ra!="string")throw new Error("Bad combination of arguments.");return domEach(this,(ud,dd)=>{isTag(ud)&&setAttr(ud,Ra,ed.call(ud,dd,ud.attribs[Ra]))})}return domEach(this,ud=>{if(isTag(ud))if(typeof Ra=="object")for(const dd of Object.keys(Ra)){const hd=Ra[dd];setAttr(ud,dd,hd)}else setAttr(ud,Ra,ed)})}return arguments.length>1?this:getAttr$1(this[0],Ra,this.options.xmlMode)}function getProp(Ra,ed,ud){return ed in Ra?Ra[ed]:!ud&&rboolean.test(ed)?getAttr$1(Ra,ed,!1)!==void 0:getAttr$1(Ra,ed,ud)}function setProp(Ra,ed,ud,dd){ed in Ra?Ra[ed]=ud:setAttr(Ra,ed,!dd&&rboolean.test(ed)?ud?"":null:`${ud}`)}function prop(Ra,ed){var ud;if(typeof Ra=="string"&&ed===void 0){const dd=this[0];if(!dd||!isTag(dd))return;switch(Ra){case"style":{const hd=this.css(),md=Object.keys(hd);for(let gd=0;gd").parent().html();case"innerHTML":return this.html();default:return getProp(dd,Ra,this.options.xmlMode)}}if(typeof Ra=="object"||ed!==void 0){if(typeof ed=="function"){if(typeof Ra=="object")throw new TypeError("Bad combination of arguments.");return domEach(this,(dd,hd)=>{isTag(dd)&&setProp(dd,Ra,ed.call(dd,hd,getProp(dd,Ra,this.options.xmlMode)),this.options.xmlMode)})}return domEach(this,dd=>{if(isTag(dd))if(typeof Ra=="object")for(const hd of Object.keys(Ra)){const md=Ra[hd];setProp(dd,hd,md,this.options.xmlMode)}else setProp(dd,Ra,ed,this.options.xmlMode)})}}function setData(Ra,ed,ud){var dd;(dd=Ra.data)!==null&&dd!==void 0||(Ra.data={}),typeof ed=="object"?Object.assign(Ra.data,ed):typeof ed=="string"&&ud!==void 0&&(Ra.data[ed]=ud)}function readAllData(Ra){for(const ed of Object.keys(Ra.attribs)){if(!ed.startsWith(dataAttrPrefix))continue;const ud=camelCase$1(ed.slice(dataAttrPrefix.length));hasOwn$2.call(Ra.data,ud)||(Ra.data[ud]=parseDataValue(Ra.attribs[ed]))}return Ra.data}function readData(Ra,ed){const ud=dataAttrPrefix+cssCase(ed),dd=Ra.data;if(hasOwn$2.call(dd,ed))return dd[ed];if(hasOwn$2.call(Ra.attribs,ud))return dd[ed]=parseDataValue(Ra.attribs[ud])}function parseDataValue(Ra){if(Ra==="null")return null;if(Ra==="true")return!0;if(Ra==="false")return!1;const ed=Number(Ra);if(Ra===String(ed))return ed;if(rbrace.test(Ra))try{return JSON.parse(Ra)}catch{}return Ra}function data(Ra,ed){var ud;const dd=this[0];if(!dd||!isTag(dd))return;const hd=dd;return(ud=hd.data)!==null&&ud!==void 0||(hd.data={}),Ra==null?readAllData(hd):typeof Ra=="object"||ed!==void 0?(domEach(this,md=>{isTag(md)&&(typeof Ra=="object"?setData(md,Ra):setData(md,Ra,ed))}),this):readData(hd,Ra)}function val$1(Ra){const ed=arguments.length===0,ud=this[0];if(!ud||!isTag(ud))return ed?void 0:this;switch(ud.name){case"textarea":return this.text(Ra);case"select":{const dd=this.find("option:selected");if(!ed){if(this.attr("multiple")==null&&typeof Ra=="object")return this;this.find("option").removeAttr("selected");const hd=typeof Ra=="object"?Ra:[Ra];for(const md of hd)this.find(`option[value="${md}"]`).attr("selected","");return this}return this.attr("multiple")?dd.toArray().map(hd=>text$3(hd.children)):dd.attr("value")}case"input":case"option":return ed?this.attr("value"):this.attr("value",Ra)}}function removeAttribute(Ra,ed){!Ra.attribs||!hasOwn$2.call(Ra.attribs,ed)||delete Ra.attribs[ed]}function splitNames(Ra){return Ra?Ra.trim().split(rspace):[]}function removeAttr(Ra){const ed=splitNames(Ra);for(const ud of ed)domEach(this,dd=>{isTag(dd)&&removeAttribute(dd,ud)});return this}function hasClass(Ra){return this.toArray().some(ed=>{const ud=isTag(ed)&&ed.attribs.class;let dd=-1;if(ud&&Ra.length>0)for(;(dd=ud.indexOf(Ra,dd+1))>-1;){const hd=dd+Ra.length;if((dd===0||rspace.test(ud[dd-1]))&&(hd===ud.length||rspace.test(ud[hd])))return!0}return!1})}function addClass(Ra){if(typeof Ra=="function")return domEach(this,(dd,hd)=>{if(isTag(dd)){const md=dd.attribs.class||"";addClass.call([dd],Ra.call(dd,hd,md))}});if(!Ra||typeof Ra!="string")return this;const ed=Ra.split(rspace),ud=this.length;for(let dd=0;dd{isTag(hd)&&removeClass.call([hd],Ra.call(hd,md,hd.attribs.class||""))});const ed=splitNames(Ra),ud=ed.length,dd=arguments.length===0;return domEach(this,hd=>{if(isTag(hd))if(dd)hd.attribs.class="";else{const md=splitNames(hd.attribs.class);let gd=!1;for(let yd=0;yd=0&&(md.splice(vd,1),gd=!0,yd--)}gd&&(hd.attribs.class=md.join(" "))}})}function toggleClass(Ra,ed){if(typeof Ra=="function")return domEach(this,(gd,yd)=>{isTag(gd)&&toggleClass.call([gd],Ra.call(gd,yd,gd.attribs.class||"",ed),ed)});if(!Ra||typeof Ra!="string")return this;const ud=Ra.split(rspace),dd=ud.length,hd=typeof ed=="boolean"?ed?1:-1:0,md=this.length;for(let gd=0;gd=0&&wd<0?vd.push(ud[Cd]):hd<=0&&wd>=0&&vd.splice(wd,1)}yd.attribs.class=vd.join(" ")}return this}const Attributes=Object.freeze(Object.defineProperty({__proto__:null,addClass,attr,data,hasClass,prop,removeAttr,removeClass,toggleClass,val:val$1},Symbol.toStringTag,{value:"Module"}));var SelectorType$2;(function(Ra){Ra.Attribute="attribute",Ra.Pseudo="pseudo",Ra.PseudoElement="pseudo-element",Ra.Tag="tag",Ra.Universal="universal",Ra.Adjacent="adjacent",Ra.Child="child",Ra.Descendant="descendant",Ra.Parent="parent",Ra.Sibling="sibling",Ra.ColumnCombinator="column-combinator"})(SelectorType$2||(SelectorType$2={}));var AttributeAction;(function(Ra){Ra.Any="any",Ra.Element="element",Ra.End="end",Ra.Equals="equals",Ra.Exists="exists",Ra.Hyphen="hyphen",Ra.Not="not",Ra.Start="start"})(AttributeAction||(AttributeAction={}));const reName=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,reEscape=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,actionTypes=new Map([[126,AttributeAction.Element],[94,AttributeAction.Start],[36,AttributeAction.End],[42,AttributeAction.Any],[33,AttributeAction.Not],[124,AttributeAction.Hyphen]]),unpackPseudos=new Set(["has","not","matches","is","where","host","host-context"]);function isTraversal$1(Ra){switch(Ra.type){case SelectorType$2.Adjacent:case SelectorType$2.Child:case SelectorType$2.Descendant:case SelectorType$2.Parent:case SelectorType$2.Sibling:case SelectorType$2.ColumnCombinator:return!0;default:return!1}}const stripQuotesFromPseudos=new Set(["contains","icontains"]);function funescape(Ra,ed,ud){const dd=parseInt(ed,16)-65536;return dd!==dd||ud?ed:dd<0?String.fromCharCode(dd+65536):String.fromCharCode(dd>>10|55296,dd&1023|56320)}function unescapeCSS(Ra){return Ra.replace(reEscape,funescape)}function isQuote(Ra){return Ra===39||Ra===34}function isWhitespace$4(Ra){return Ra===32||Ra===9||Ra===10||Ra===12||Ra===13}function parse$8(Ra){const ed=[],ud=parseSelector(ed,`${Ra}`,0);if(ud0&&ud0&&isTraversal$1(dd[dd.length-1]))throw new Error("Did not expect successive traversals.")}function Cd(Ld){if(dd.length>0&&dd[dd.length-1].type===SelectorType$2.Descendant){dd[dd.length-1].type=Ld;return}vd(),dd.push({type:Ld})}function wd(Ld,Ud){dd.push({type:SelectorType$2.Attribute,name:Ld,action:Ud,value:hd(1),namespace:null,ignoreCase:"quirks"})}function Nd(){if(dd.length&&dd[dd.length-1].type===SelectorType$2.Descendant&&dd.pop(),dd.length===0)throw new Error("Empty sub-selector");Ra.push(dd)}if(md(0),ed.length===ud)return ud;e:for(;ud=0&&dd>=1)):Ra.type===SelectorType$2.Pseudo&&(Ra.data?Ra.name==="has"||Ra.name==="contains"?dd=0:Array.isArray(Ra.data)?(dd=Math.min(...Ra.data.map(hd=>Math.min(...hd.map(getProcedure)))),dd<0&&(dd=0)):dd=2:dd=3),dd}const reChars=/[-[\]{}()*+?.,\\^$|#\s]/g;function escapeRegex(Ra){return Ra.replace(reChars,"\\$&")}const caseInsensitiveAttributes=new Set(["accept","accept-charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","color","compact","declare","defer","dir","direction","disabled","enctype","face","frame","hreflang","http-equiv","lang","language","link","media","method","multiple","nohref","noresize","noshade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shape","target","text","type","valign","valuetype","vlink"]);function shouldIgnoreCase(Ra,ed){return typeof Ra.ignoreCase=="boolean"?Ra.ignoreCase:Ra.ignoreCase==="quirks"?!!ed.quirksMode:!ed.xmlMode&&caseInsensitiveAttributes.has(Ra.name)}const attributeRules={equals(Ra,ed,ud){const{adapter:dd}=ud,{name:hd}=ed;let{value:md}=ed;return shouldIgnoreCase(ed,ud)?(md=md.toLowerCase(),gd=>{const yd=dd.getAttributeValue(gd,hd);return yd!=null&&yd.length===md.length&&yd.toLowerCase()===md&&Ra(gd)}):gd=>dd.getAttributeValue(gd,hd)===md&&Ra(gd)},hyphen(Ra,ed,ud){const{adapter:dd}=ud,{name:hd}=ed;let{value:md}=ed;const gd=md.length;return shouldIgnoreCase(ed,ud)?(md=md.toLowerCase(),function(vd){const Cd=dd.getAttributeValue(vd,hd);return Cd!=null&&(Cd.length===gd||Cd.charAt(gd)==="-")&&Cd.substr(0,gd).toLowerCase()===md&&Ra(vd)}):function(vd){const Cd=dd.getAttributeValue(vd,hd);return Cd!=null&&(Cd.length===gd||Cd.charAt(gd)==="-")&&Cd.substr(0,gd)===md&&Ra(vd)}},element(Ra,ed,ud){const{adapter:dd}=ud,{name:hd,value:md}=ed;if(/\s/.test(md))return boolbase$1.falseFunc;const gd=new RegExp(`(?:^|\\s)${escapeRegex(md)}(?:$|\\s)`,shouldIgnoreCase(ed,ud)?"i":"");return function(vd){const Cd=dd.getAttributeValue(vd,hd);return Cd!=null&&Cd.length>=md.length&&gd.test(Cd)&&Ra(vd)}},exists(Ra,{name:ed},{adapter:ud}){return dd=>ud.hasAttrib(dd,ed)&&Ra(dd)},start(Ra,ed,ud){const{adapter:dd}=ud,{name:hd}=ed;let{value:md}=ed;const gd=md.length;return gd===0?boolbase$1.falseFunc:shouldIgnoreCase(ed,ud)?(md=md.toLowerCase(),yd=>{const vd=dd.getAttributeValue(yd,hd);return vd!=null&&vd.length>=gd&&vd.substr(0,gd).toLowerCase()===md&&Ra(yd)}):yd=>{var vd;return!!(!((vd=dd.getAttributeValue(yd,hd))===null||vd===void 0)&&vd.startsWith(md))&&Ra(yd)}},end(Ra,ed,ud){const{adapter:dd}=ud,{name:hd}=ed;let{value:md}=ed;const gd=-md.length;return gd===0?boolbase$1.falseFunc:shouldIgnoreCase(ed,ud)?(md=md.toLowerCase(),yd=>{var vd;return((vd=dd.getAttributeValue(yd,hd))===null||vd===void 0?void 0:vd.substr(gd).toLowerCase())===md&&Ra(yd)}):yd=>{var vd;return!!(!((vd=dd.getAttributeValue(yd,hd))===null||vd===void 0)&&vd.endsWith(md))&&Ra(yd)}},any(Ra,ed,ud){const{adapter:dd}=ud,{name:hd,value:md}=ed;if(md==="")return boolbase$1.falseFunc;if(shouldIgnoreCase(ed,ud)){const gd=new RegExp(escapeRegex(md),"i");return function(vd){const Cd=dd.getAttributeValue(vd,hd);return Cd!=null&&Cd.length>=md.length&&gd.test(Cd)&&Ra(vd)}}return gd=>{var yd;return!!(!((yd=dd.getAttributeValue(gd,hd))===null||yd===void 0)&&yd.includes(md))&&Ra(gd)}},not(Ra,ed,ud){const{adapter:dd}=ud,{name:hd}=ed;let{value:md}=ed;return md===""?gd=>!!dd.getAttributeValue(gd,hd)&&Ra(gd):shouldIgnoreCase(ed,ud)?(md=md.toLowerCase(),gd=>{const yd=dd.getAttributeValue(gd,hd);return(yd==null||yd.length!==md.length||yd.toLowerCase()!==md)&&Ra(gd)}):gd=>dd.getAttributeValue(gd,hd)!==md&&Ra(gd)}},whitespace$1=new Set([9,10,12,13,32]),ZERO=48,NINE=57;function parse$7(Ra){if(Ra=Ra.trim().toLowerCase(),Ra==="even")return[2,0];if(Ra==="odd")return[2,1];let ed=0,ud=0,dd=md(),hd=gd();if(ed=ZERO&&Ra.charCodeAt(ed)<=NINE;)Cd=Cd*10+(Ra.charCodeAt(ed)-ZERO),ed++;return ed===vd?null:Cd}function yd(){for(;edmd<=ud;if(ed===0)return md=>md===ud;if(ed===1)return ud<0?boolbase$1.trueFunc:md=>md>=ud;const dd=Math.abs(ed),hd=(ud%dd+dd)%dd;return ed>1?md=>md>=ud&&md%dd===hd:md=>md<=ud&&md%dd===hd}function nthCheck(Ra){return compile$1(parse$7(Ra))}function getChildFunc(Ra,ed){return ud=>{const dd=ed.getParent(ud);return dd!=null&&ed.isTag(dd)&&Ra(ud)}}const filters={contains(Ra,ed,{adapter:ud}){return function(hd){return Ra(hd)&&ud.getText(hd).includes(ed)}},icontains(Ra,ed,{adapter:ud}){const dd=ed.toLowerCase();return function(md){return Ra(md)&&ud.getText(md).toLowerCase().includes(dd)}},"nth-child"(Ra,ed,{adapter:ud,equals:dd}){const hd=nthCheck(ed);return hd===boolbase$1.falseFunc?boolbase$1.falseFunc:hd===boolbase$1.trueFunc?getChildFunc(Ra,ud):function(gd){const yd=ud.getSiblings(gd);let vd=0;for(let Cd=0;Cd=0&&!dd(gd,yd[Cd]);Cd--)ud.isTag(yd[Cd])&&vd++;return hd(vd)&&Ra(gd)}},"nth-of-type"(Ra,ed,{adapter:ud,equals:dd}){const hd=nthCheck(ed);return hd===boolbase$1.falseFunc?boolbase$1.falseFunc:hd===boolbase$1.trueFunc?getChildFunc(Ra,ud):function(gd){const yd=ud.getSiblings(gd);let vd=0;for(let Cd=0;Cd=0;Cd--){const wd=yd[Cd];if(dd(gd,wd))break;ud.isTag(wd)&&ud.getName(wd)===ud.getName(gd)&&vd++}return hd(vd)&&Ra(gd)}},root(Ra,ed,{adapter:ud}){return dd=>{const hd=ud.getParent(dd);return(hd==null||!ud.isTag(hd))&&Ra(dd)}},scope(Ra,ed,ud,dd){const{equals:hd}=ud;return!dd||dd.length===0?filters.root(Ra,ed,ud):dd.length===1?md=>hd(dd[0],md)&&Ra(md):md=>dd.includes(md)&&Ra(md)},hover:dynamicStatePseudo("isHovered"),visited:dynamicStatePseudo("isVisited"),active:dynamicStatePseudo("isActive")};function dynamicStatePseudo(Ra){return function(ud,dd,{adapter:hd}){const md=hd[Ra];return typeof md!="function"?boolbase$1.falseFunc:function(yd){return md(yd)&&ud(yd)}}}const pseudos={empty(Ra,{adapter:ed}){return!ed.getChildren(Ra).some(ud=>ed.isTag(ud)||ed.getText(ud)!=="")},"first-child"(Ra,{adapter:ed,equals:ud}){if(ed.prevElementSibling)return ed.prevElementSibling(Ra)==null;const dd=ed.getSiblings(Ra).find(hd=>ed.isTag(hd));return dd!=null&&ud(Ra,dd)},"last-child"(Ra,{adapter:ed,equals:ud}){const dd=ed.getSiblings(Ra);for(let hd=dd.length-1;hd>=0;hd--){if(ud(Ra,dd[hd]))return!0;if(ed.isTag(dd[hd]))break}return!1},"first-of-type"(Ra,{adapter:ed,equals:ud}){const dd=ed.getSiblings(Ra),hd=ed.getName(Ra);for(let md=0;md=0;md--){const gd=dd[md];if(ud(Ra,gd))return!0;if(ed.isTag(gd)&&ed.getName(gd)===hd)break}return!1},"only-of-type"(Ra,{adapter:ed,equals:ud}){const dd=ed.getName(Ra);return ed.getSiblings(Ra).every(hd=>ud(Ra,hd)||!ed.isTag(hd)||ed.getName(hd)!==dd)},"only-child"(Ra,{adapter:ed,equals:ud}){return ed.getSiblings(Ra).every(dd=>ud(Ra,dd)||!ed.isTag(dd))}};function verifyPseudoArgs(Ra,ed,ud,dd){if(ud===null){if(Ra.length>dd)throw new Error(`Pseudo-class :${ed} requires an argument`)}else if(Ra.length===dd)throw new Error(`Pseudo-class :${ed} doesn't have any arguments`)}const aliases={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:`:is( :is(button, input, select, textarea, optgroup, option)[disabled], optgroup[disabled] > option, @@ -479,11 +479,11 @@ code_pre { )`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"},PLACEHOLDER_ELEMENT={};function ensureIsTag(Ra,ed){return Ra===boolbase$1.falseFunc?boolbase$1.falseFunc:ud=>ed.isTag(ud)&&Ra(ud)}function getNextSiblings(Ra,ed){const ud=ed.getSiblings(Ra);if(ud.length<=1)return[];const dd=ud.indexOf(Ra);return dd<0||dd===ud.length-1?[]:ud.slice(dd+1).filter(ed.isTag)}function copyOptions(Ra){return{xmlMode:!!Ra.xmlMode,lowerCaseAttributeNames:!!Ra.lowerCaseAttributeNames,lowerCaseTags:!!Ra.lowerCaseTags,quirksMode:!!Ra.quirksMode,cacheResults:!!Ra.cacheResults,pseudos:Ra.pseudos,adapter:Ra.adapter,equals:Ra.equals}}const is$3=(Ra,ed,ud,dd,hd)=>{const md=hd(ed,copyOptions(ud),dd);return md===boolbase$1.trueFunc?Ra:md===boolbase$1.falseFunc?boolbase$1.falseFunc:gd=>md(gd)&&Ra(gd)},subselects={is:is$3,matches:is$3,where:is$3,not(Ra,ed,ud,dd,hd){const md=hd(ed,copyOptions(ud),dd);return md===boolbase$1.falseFunc?Ra:md===boolbase$1.trueFunc?boolbase$1.falseFunc:gd=>!md(gd)&&Ra(gd)},has(Ra,ed,ud,dd,hd){const{adapter:md}=ud,gd=copyOptions(ud);gd.relativeSelector=!0;const yd=ed.some(wd=>wd.some(isTraversal))?[PLACEHOLDER_ELEMENT]:void 0,vd=hd(ed,gd,yd);if(vd===boolbase$1.falseFunc)return boolbase$1.falseFunc;const Cd=ensureIsTag(vd,md);if(yd&&vd!==boolbase$1.trueFunc){const{shouldTestNextSiblings:wd=!1}=vd;return Nd=>{if(!Ra(Nd))return!1;yd[0]=Nd;const Ld=md.getChildren(Nd),Ud=wd?[...Ld,...getNextSiblings(Nd,md)]:Ld;return md.existsOne(Cd,Ud)}}return wd=>Ra(wd)&&md.existsOne(Cd,md.getChildren(wd))}};function compilePseudoSelector(Ra,ed,ud,dd,hd){var md;const{name:gd,data:yd}=ed;if(Array.isArray(yd)){if(!(gd in subselects))throw new Error(`Unknown pseudo-class :${gd}(${yd})`);return subselects[gd](Ra,yd,ud,dd,hd)}const vd=(md=ud.pseudos)===null||md===void 0?void 0:md[gd],Cd=typeof vd=="string"?vd:aliases[gd];if(typeof Cd=="string"){if(yd!=null)throw new Error(`Pseudo ${gd} doesn't have any arguments`);const wd=parse$8(Cd);return subselects.is(Ra,wd,ud,dd,hd)}if(typeof vd=="function")return verifyPseudoArgs(vd,gd,yd,1),wd=>vd(wd,yd)&&Ra(wd);if(gd in filters)return filters[gd](Ra,yd,ud,dd);if(gd in pseudos){const wd=pseudos[gd];return verifyPseudoArgs(wd,gd,yd,2),Nd=>wd(Nd,ud,yd)&&Ra(Nd)}throw new Error(`Unknown pseudo-class :${gd}`)}function getElementParent(Ra,ed){const ud=ed.getParent(Ra);return ud&&ed.isTag(ud)?ud:null}function compileGeneralSelector(Ra,ed,ud,dd,hd){const{adapter:md,equals:gd}=ud;switch(ed.type){case SelectorType$2.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case SelectorType$2.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case SelectorType$2.Attribute:{if(ed.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!ud.xmlMode||ud.lowerCaseAttributeNames)&&(ed.name=ed.name.toLowerCase()),attributeRules[ed.action](Ra,ed,ud)}case SelectorType$2.Pseudo:return compilePseudoSelector(Ra,ed,ud,dd,hd);case SelectorType$2.Tag:{if(ed.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:yd}=ed;return(!ud.xmlMode||ud.lowerCaseTags)&&(yd=yd.toLowerCase()),function(Cd){return md.getName(Cd)===yd&&Ra(Cd)}}case SelectorType$2.Descendant:{if(ud.cacheResults===!1||typeof WeakSet>"u")return function(Cd){let wd=Cd;for(;wd=getElementParent(wd,md);)if(Ra(wd))return!0;return!1};const yd=new WeakSet;return function(Cd){let wd=Cd;for(;wd=getElementParent(wd,md);)if(!yd.has(wd)){if(md.isTag(wd)&&Ra(wd))return!0;yd.add(wd)}return!1}}case"_flexibleDescendant":return function(vd){let Cd=vd;do if(Ra(Cd))return!0;while(Cd=getElementParent(Cd,md));return!1};case SelectorType$2.Parent:return function(vd){return md.getChildren(vd).some(Cd=>md.isTag(Cd)&&Ra(Cd))};case SelectorType$2.Child:return function(vd){const Cd=md.getParent(vd);return Cd!=null&&md.isTag(Cd)&&Ra(Cd)};case SelectorType$2.Sibling:return function(vd){const Cd=md.getSiblings(vd);for(let wd=0;wded.some(includesScopePseudo)))}const DESCENDANT_TOKEN={type:SelectorType$2.Descendant},FLEXIBLE_DESCENDANT_TOKEN={type:"_flexibleDescendant"},SCOPE_TOKEN={type:SelectorType$2.Pseudo,name:"scope",data:null};function absolutize(Ra,{adapter:ed},ud){const dd=!!(ud!=null&&ud.every(hd=>{const md=ed.isTag(hd)&&ed.getParent(hd);return hd===PLACEHOLDER_ELEMENT||md&&ed.isTag(md)}));for(const hd of Ra){if(!(hd.length>0&&isTraversal(hd[0])&&hd[0].type!==SelectorType$2.Descendant))if(dd&&!hd.some(includesScopePseudo))hd.unshift(DESCENDANT_TOKEN);else continue;hd.unshift(SCOPE_TOKEN)}}function compileToken(Ra,ed,ud){var dd;Ra.forEach(sortByProcedure),ud=(dd=ed.context)!==null&&dd!==void 0?dd:ud;const hd=Array.isArray(ud),md=ud&&(Array.isArray(ud)?ud:[ud]);if(ed.relativeSelector!==!1)absolutize(Ra,ed,md);else if(Ra.some(vd=>vd.length>0&&isTraversal(vd[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let gd=!1;const yd=Ra.map(vd=>{if(vd.length>=2){const[Cd,wd]=vd;Cd.type!==SelectorType$2.Pseudo||Cd.name!=="scope"||(hd&&wd.type===SelectorType$2.Descendant?vd[1]=FLEXIBLE_DESCENDANT_TOKEN:(wd.type===SelectorType$2.Adjacent||wd.type===SelectorType$2.Sibling)&&(gd=!0))}return compileRules(vd,ed,md)}).reduce(reduceRules,boolbase$1.falseFunc);return yd.shouldTestNextSiblings=gd,yd}function compileRules(Ra,ed,ud){var dd;return Ra.reduce((hd,md)=>hd===boolbase$1.falseFunc?boolbase$1.falseFunc:compileGeneralSelector(hd,md,ed,ud,compileToken),(dd=ed.rootFunc)!==null&&dd!==void 0?dd:boolbase$1.trueFunc)}function reduceRules(Ra,ed){return ed===boolbase$1.falseFunc||Ra===boolbase$1.trueFunc?Ra:Ra===boolbase$1.falseFunc||ed===boolbase$1.trueFunc?ed:function(dd){return Ra(dd)||ed(dd)}}const defaultEquals=(Ra,ed)=>Ra===ed,defaultOptions$3={adapter:DomUtils,equals:defaultEquals};function convertOptionFormats(Ra){var ed,ud,dd,hd;const md=Ra??defaultOptions$3;return(ed=md.adapter)!==null&&ed!==void 0||(md.adapter=DomUtils),(ud=md.equals)!==null&&ud!==void 0||(md.equals=(hd=(dd=md.adapter)===null||dd===void 0?void 0:dd.equals)!==null&&hd!==void 0?hd:defaultEquals),md}function wrapCompile(Ra){return function(ud,dd,hd){const md=convertOptionFormats(dd);return Ra(ud,md,hd)}}const _compileToken=wrapCompile(compileToken);function prepareContext(Ra,ed,ud=!1){return ud&&(Ra=appendNextSiblings(Ra,ed)),Array.isArray(Ra)?ed.removeSubsets(Ra):ed.getChildren(Ra)}function appendNextSiblings(Ra,ed){const ud=Array.isArray(Ra)?Ra.slice(0):[Ra],dd=ud.length;for(let hd=0;hded.some(isFilter)):!1}function getLimit(Ra,ed,ud){const dd=ed!=null?parseInt(ed,10):NaN;switch(Ra){case"first":return 1;case"nth":case"eq":return isFinite(dd)?dd>=0?dd+1:1/0:0;case"lt":return isFinite(dd)?dd>=0?Math.min(dd,ud):1/0:0;case"gt":return isFinite(dd)?1/0:0;case"odd":return 2*ud;case"even":return 2*ud-1;case"last":case"not":return 1/0}}function getDocumentRoot(Ra){for(;Ra.parent;)Ra=Ra.parent;return Ra}function groupSelectors(Ra){const ed=[],ud=[];for(const dd of Ra)dd.some(isFilter)?ed.push(dd):ud.push(dd);return[ud,ed]}const UNIVERSAL_SELECTOR={type:SelectorType$2.Universal,namespace:null},SCOPE_PSEUDO={type:SelectorType$2.Pseudo,name:"scope",data:null};function is$2(Ra,ed,ud={}){return some$2([Ra],ed,ud)}function some$2(Ra,ed,ud={}){if(typeof ed=="function")return Ra.some(ed);const[dd,hd]=groupSelectors(parse$8(ed));return dd.length>0&&Ra.some(_compileToken(dd,ud))||hd.some(md=>filterBySelector(md,Ra,ud).length>0)}function filterByPosition(Ra,ed,ud,dd){const hd=typeof ud=="string"?parseInt(ud,10):NaN;switch(Ra){case"first":case"lt":return ed;case"last":return ed.length>0?[ed[ed.length-1]]:ed;case"nth":case"eq":return isFinite(hd)&&Math.abs(hd)gd%2===0);case"odd":return ed.filter((md,gd)=>gd%2===1);case"not":{const md=new Set(filterParsed(ud,ed,dd));return ed.filter(gd=>!md.has(gd))}}}function filter$4(Ra,ed,ud={}){return filterParsed(parse$8(Ra),ed,ud)}function filterParsed(Ra,ed,ud){if(ed.length===0)return[];const[dd,hd]=groupSelectors(Ra);let md;if(dd.length){const gd=filterElements(ed,dd,ud);if(hd.length===0)return gd;gd.length&&(md=new Set(gd))}for(let gd=0;gdisTag(wd)&&!md.has(wd)):ed).length===0)break;const Cd=filterBySelector(yd,ed,ud);if(Cd.length)if(md)Cd.forEach(wd=>md.add(wd));else{if(gd===hd.length-1)return Cd;md=new Set(Cd)}}return typeof md<"u"?md.size===ed.length?ed:ed.filter(gd=>md.has(gd)):[]}function filterBySelector(Ra,ed,ud){var dd;if(Ra.some(isTraversal$1)){const hd=(dd=ud.root)!==null&&dd!==void 0?dd:getDocumentRoot(ed[0]),md={...ud,context:ed,relativeSelector:!1};return Ra.push(SCOPE_PSEUDO),findFilterElements(hd,Ra,md,!0,ed.length)}return findFilterElements(ed,Ra,ud,!1,ed.length)}function select$1(Ra,ed,ud={},dd=1/0){if(typeof Ra=="function")return find$2(ed,Ra);const[hd,md]=groupSelectors(parse$8(Ra)),gd=md.map(yd=>findFilterElements(ed,yd,ud,!0,dd));return hd.length&&gd.push(findElements(ed,hd,ud,dd)),gd.length===0?[]:gd.length===1?gd[0]:uniqueSort(gd.reduce((yd,vd)=>[...yd,...vd]))}function findFilterElements(Ra,ed,ud,dd,hd){const md=ed.findIndex(isFilter),gd=ed.slice(0,md),yd=ed[md],vd=ed.length-1===md?hd:1/0,Cd=getLimit(yd.name,yd.data,vd);if(Cd===0)return[];const Nd=(gd.length===0&&!Array.isArray(Ra)?getChildren(Ra).filter(isTag):gd.length===0?(Array.isArray(Ra)?Ra:[Ra]).filter(isTag):dd||gd.some(isTraversal$1)?findElements(Ra,[gd],ud,Cd):filterElements(Ra,[gd],ud)).slice(0,Cd);let Ld=filterByPosition(yd.name,Nd,yd.data,ud);if(Ld.length===0||ed.length===md+1)return Ld;const Ud=ed.slice(md+1),jd=Ud.some(isTraversal$1);if(jd){if(isTraversal$1(Ud[0])){const{type:Gd}=Ud[0];(Gd===SelectorType$2.Sibling||Gd===SelectorType$2.Adjacent)&&(Ld=prepareContext(Ld,DomUtils,!0)),Ud.unshift(UNIVERSAL_SELECTOR)}ud={...ud,relativeSelector:!1,rootFunc:Gd=>Ld.includes(Gd)}}else ud.rootFunc&&ud.rootFunc!==boolbase.trueFunc&&(ud={...ud,rootFunc:boolbase.trueFunc});return Ud.some(isFilter)?findFilterElements(Ld,Ud,ud,!1,hd):jd?findElements(Ld,[Ud],ud,hd):filterElements(Ld,[Ud],ud)}function findElements(Ra,ed,ud,dd){const hd=_compileToken(ed,ud,Ra);return find$2(Ra,hd,dd)}function find$2(Ra,ed,ud=1/0){const dd=prepareContext(Ra,DomUtils,ed.shouldTestNextSiblings);return find$3(hd=>isTag(hd)&&ed(hd),dd,!0,ud)}function filterElements(Ra,ed,ud){const dd=(Array.isArray(Ra)?Ra:[Ra]).filter(isTag);if(dd.length===0)return dd;const hd=_compileToken(ed,ud);return hd===boolbase.trueFunc?dd:dd.filter(hd)}const reSiblingSelector=/^\s*[+~]/;function find$1(Ra){if(!Ra)return this._make([]);if(typeof Ra!="string"){const ed=isCheerio(Ra)?Ra.toArray():[Ra],ud=this.toArray();return this._make(ed.filter(dd=>ud.some(hd=>contains$1(hd,dd))))}return this._findBySelector(Ra,Number.POSITIVE_INFINITY)}function _findBySelector(Ra,ed){var ud;const dd=this.toArray(),hd=reSiblingSelector.test(Ra)?dd:this.children().toArray(),md={context:dd,root:(ud=this._root)===null||ud===void 0?void 0:ud[0],xmlMode:this.options.xmlMode,lowerCaseTags:this.options.lowerCaseTags,lowerCaseAttributeNames:this.options.lowerCaseAttributeNames,pseudos:this.options.pseudos,quirksMode:this.options.quirksMode};return this._make(select$1(Ra,hd,md,ed))}function _getMatcher(Ra){return function(ed,...ud){return function(dd){var hd;let md=Ra(ed,this);return dd&&(md=filterArray$1(md,dd,this.options.xmlMode,(hd=this._root)===null||hd===void 0?void 0:hd[0])),this._make(this.length>1&&md.length>1?ud.reduce((gd,yd)=>yd(gd),md):md)}}}const _matcher=_getMatcher((Ra,ed)=>{let ud=[];for(let dd=0;dd0&&(ud=ud.concat(hd))}return ud}),_singleMatcher=_getMatcher((Ra,ed)=>{const ud=[];for(let dd=0;dd{const gd=[];return domEach(md,yd=>{for(let vd;(vd=hd(yd))&&!(ud!=null&&ud(vd,gd.length));yd=vd)gd.push(vd)}),gd})(Ra,...ed);return function(hd,md){ud=typeof hd=="string"?yd=>is$2(yd,hd,this.options):hd?getFilterFn(hd):null;const gd=dd.call(this,md);return ud=null,gd}}function _removeDuplicates(Ra){return Ra.length>1?Array.from(new Set(Ra)):Ra}const parent$1=_singleMatcher(({parent:Ra})=>Ra&&!isDocument(Ra)?Ra:null,_removeDuplicates),parents=_matcher(Ra=>{const ed=[];for(;Ra.parent&&!isDocument(Ra.parent);)ed.push(Ra.parent),Ra=Ra.parent;return ed},uniqueSort,Ra=>Ra.reverse()),parentsUntil=_matchUntil(({parent:Ra})=>Ra&&!isDocument(Ra)?Ra:null,uniqueSort,Ra=>Ra.reverse());function closest(Ra){var ed;const ud=[];if(!Ra)return this._make(ud);const dd={xmlMode:this.options.xmlMode,root:(ed=this._root)===null||ed===void 0?void 0:ed[0]},hd=typeof Ra=="string"?md=>is$2(md,Ra,dd):getFilterFn(Ra);return domEach(this,md=>{for(md&&!isDocument(md)&&!isTag(md)&&(md=md.parent);md&&isTag(md);){if(hd(md,0)){ud.includes(md)||ud.push(md);break}md=md.parent}}),this._make(ud)}const next$1=_singleMatcher(Ra=>nextElementSibling(Ra)),nextAll=_matcher(Ra=>{const ed=[];for(;Ra.next;)Ra=Ra.next,isTag(Ra)&&ed.push(Ra);return ed},_removeDuplicates),nextUntil=_matchUntil(Ra=>nextElementSibling(Ra),_removeDuplicates),prev$1=_singleMatcher(Ra=>prevElementSibling(Ra)),prevAll=_matcher(Ra=>{const ed=[];for(;Ra.prev;)Ra=Ra.prev,isTag(Ra)&&ed.push(Ra);return ed},_removeDuplicates),prevUntil=_matchUntil(Ra=>prevElementSibling(Ra),_removeDuplicates),siblings=_matcher(Ra=>getSiblings(Ra).filter(ed=>isTag(ed)&&ed!==Ra),uniqueSort),children$2=_matcher(Ra=>getChildren(Ra).filter(isTag),_removeDuplicates);function contents(){const Ra=this.toArray().reduce((ed,ud)=>hasChildren(ud)?ed.concat(ud.children):ed,[]);return this._make(Ra)}function each$1(Ra){let ed=0;const ud=this.length;for(;edRa.call(ed,ud,ed):isCheerio(Ra)?ed=>Array.prototype.includes.call(Ra,ed):function(ed){return Ra===ed}}function filter$3(Ra){var ed;return this._make(filterArray$1(this.toArray(),Ra,this.options.xmlMode,(ed=this._root)===null||ed===void 0?void 0:ed[0]))}function filterArray$1(Ra,ed,ud,dd){return typeof ed=="string"?filter$4(ed,Ra,{xmlMode:ud,root:dd}):Ra.filter(getFilterFn(ed))}function is$1(Ra){const ed=this.toArray();return typeof Ra=="string"?some$2(ed.filter(isTag),Ra,this.options):Ra?ed.some(getFilterFn(Ra)):!1}function not$1(Ra){let ed=this.toArray();if(typeof Ra=="string"){const ud=new Set(filter$4(Ra,ed,this.options));ed=ed.filter(dd=>!ud.has(dd))}else{const ud=getFilterFn(Ra);ed=ed.filter((dd,hd)=>!ud(dd,hd))}return this._make(ed)}function has(Ra){return this.filter(typeof Ra=="string"?`:has(${Ra})`:(ed,ud)=>this._make(ud).find(Ra).length>0)}function first(){return this.length>1?this._make(this[0]):this}function last(){return this.length>0?this._make(this[this.length-1]):this}function eq$1(Ra){var ed;return Ra=+Ra,Ra===0&&this.length<=1?this:(Ra<0&&(Ra=this.length+Ra),this._make((ed=this[Ra])!==null&&ed!==void 0?ed:[]))}function get$3(Ra){return Ra==null?this.toArray():this[Ra<0?this.length+Ra:Ra]}function toArray$5(){return Array.prototype.slice.call(this)}function index$1(Ra){let ed,ud;return Ra==null?(ed=this.parent().children(),ud=this[0]):typeof Ra=="string"?(ed=this._make(Ra),ud=this[0]):(ed=this,ud=isCheerio(Ra)?Ra[0]:Ra),Array.prototype.indexOf.call(ed,ud)}function slice$1(Ra,ed){return this._make(Array.prototype.slice.call(this,Ra,ed))}function end$1(){var Ra;return(Ra=this.prevObject)!==null&&Ra!==void 0?Ra:this._make([])}function add(Ra,ed){const ud=this._make(Ra,ed),dd=uniqueSort([...this.get(),...ud.get()]);return this._make(dd)}function addBack(Ra){return this.prevObject?this.add(Ra?this.prevObject.filter(Ra):this.prevObject):this}const Traversing=Object.freeze(Object.defineProperty({__proto__:null,_findBySelector,add,addBack,children:children$2,closest,contents,each:each$1,end:end$1,eq:eq$1,filter:filter$3,filterArray:filterArray$1,find:find$1,first,get:get$3,has,index:index$1,is:is$1,last,map:map$5,next:next$1,nextAll,nextUntil,not:not$1,parent:parent$1,parents,parentsUntil,prev:prev$1,prevAll,prevUntil,siblings,slice:slice$1,toArray:toArray$5},Symbol.toStringTag,{value:"Module"}));function getParse(Ra){return function(ud,dd,hd,md){if(typeof Buffer$4<"u"&&Buffer$4.isBuffer(ud)&&(ud=ud.toString()),typeof ud=="string")return Ra(ud,dd,hd,md);const gd=ud;if(!Array.isArray(gd)&&isDocument(gd))return gd;const yd=new Document([]);return update(gd,yd),yd}}function update(Ra,ed){const ud=Array.isArray(Ra)?Ra:[Ra];ed?ed.children=ud:ed=null;for(let dd=0;dd{if(!hasChildren(dd))return;const md=typeof ed[0]=="function"?ed[0].call(dd,hd,this._render(dd.children)):ed,gd=this._makeDomArray(md,hd=Ra.length?null:Ra[ed+ud];for(let wd=0;wd-1&&(Ld.children.splice(jd,1),hd===Ld&&ed>jd&&yd[0]--)}Nd.parent=hd,Nd.prev&&(Nd.prev.next=(md=Nd.next)!==null&&md!==void 0?md:null),Nd.next&&(Nd.next.prev=(gd=Nd.prev)!==null&&gd!==void 0?gd:null),Nd.prev=wd===0?vd:dd[wd-1],Nd.next=wd===dd.length-1?Cd:dd[wd+1]}return vd&&(vd.next=dd[0]),Cd&&(Cd.prev=dd[dd.length-1]),Ra.splice(...yd)}function appendTo(Ra){return(isCheerio(Ra)?Ra:this._make(Ra)).append(this),this}function prependTo(Ra){return(isCheerio(Ra)?Ra:this._make(Ra)).prepend(this),this}const append$2=_insert((Ra,ed,ud)=>{uniqueSplice(ed,ed.length,0,Ra,ud)}),prepend=_insert((Ra,ed,ud)=>{uniqueSplice(ed,0,0,Ra,ud)});function _wrap(Ra){return function(ed){const ud=this.length-1,dd=this.parents().last();for(let hd=0;hd{const{parent:dd}=Ra;if(!dd)return;const hd=dd.children,md=hd.indexOf(Ra);update([Ra],ed),uniqueSplice(hd,md,0,ud,dd)}),wrapInner=_wrap((Ra,ed,ud)=>{hasChildren(Ra)&&(update(Ra.children,ed),update(ud,Ra))});function unwrap(Ra){return this.parent(Ra).not("body").each((ed,ud)=>{this._make(ud).replaceWith(ud.children)}),this}function wrapAll(Ra){const ed=this[0];if(ed){const ud=this._make(typeof Ra=="function"?Ra.call(ed,0,ed):Ra).insertBefore(ed);let dd;for(let md=0;md{if(!hasChildren(ud)||!ud.parent)return;const hd=ud.parent.children,md=hd.indexOf(ud);if(md<0)return;const gd=typeof Ra[0]=="function"?Ra[0].call(ud,dd,this._render(ud.children)):Ra,yd=this._makeDomArray(gd,dd{if(!hasChildren(ud)||!ud.parent)return;const hd=ud.parent.children,md=hd.indexOf(ud);if(md<0)return;const gd=typeof Ra[0]=="function"?Ra[0].call(ud,dd,this._render(ud.children)):Ra,yd=this._makeDomArray(gd,dd{const hd=this.clone().toArray(),{parent:md}=dd;if(!md)return;const gd=md.children,yd=gd.indexOf(dd);yd<0||(uniqueSplice(gd,yd,0,hd,md),ud.push(...hd))}),this._make(ud)}function remove$1(Ra){const ed=Ra?this.filter(Ra):this;return domEach(ed,ud=>{removeElement(ud),ud.prev=ud.next=ud.parent=null}),this}function replaceWith(Ra){return domEach(this,(ed,ud)=>{const{parent:dd}=ed;if(!dd)return;const hd=dd.children,md=typeof Ra=="function"?Ra.call(ed,ud,ed):Ra,gd=this._makeDomArray(md);update(gd,null);const yd=hd.indexOf(ed);uniqueSplice(hd,yd,1,gd,dd),gd.includes(ed)||(ed.parent=ed.prev=ed.next=null)})}function empty$1(){return domEach(this,Ra=>{if(hasChildren(Ra)){for(const ed of Ra.children)ed.next=ed.prev=ed.parent=null;Ra.children.length=0}})}function html$4(Ra){if(Ra===void 0){const ed=this[0];return!ed||!hasChildren(ed)?null:this._render(ed.children)}return domEach(this,ed=>{if(!hasChildren(ed))return;for(const dd of ed.children)dd.next=dd.prev=dd.parent=null;const ud=isCheerio(Ra)?Ra.toArray():this._parse(`${Ra}`,this.options,!1,ed).children;update(ud,ed)})}function toString$3(){return this._render(this)}function text$2(Ra){return Ra===void 0?text$3(this):typeof Ra=="function"?domEach(this,(ed,ud)=>this._make(ed).text(Ra.call(ed,ud,text$3([ed])))):domEach(this,ed=>{if(!hasChildren(ed))return;for(const dd of ed.children)dd.next=dd.prev=dd.parent=null;const ud=new Text(`${Ra}`);update(ud,ed)})}function clone$2(){const Ra=Array.prototype.map.call(this.get(),ud=>cloneNode(ud,!0)),ed=new Document(Ra);for(const ud of Ra)ud.parent=ed;return this._make(Ra)}const Manipulation=Object.freeze(Object.defineProperty({__proto__:null,_makeDomArray,after,append:append$2,appendTo,before,clone:clone$2,empty:empty$1,html:html$4,insertAfter,insertBefore,prepend,prependTo,remove:remove$1,replaceWith,text:text$2,toString:toString$3,unwrap,wrap:wrap$1,wrapAll,wrapInner},Symbol.toStringTag,{value:"Module"}));function css$1(Ra,ed){if(Ra!=null&&ed!=null||typeof Ra=="object"&&!Array.isArray(Ra))return domEach(this,(ud,dd)=>{isTag(ud)&&setCss(ud,Ra,ed,dd)});if(this.length!==0)return getCss(this[0],Ra)}function setCss(Ra,ed,ud,dd){if(typeof ed=="string"){const hd=getCss(Ra),md=typeof ud=="function"?ud.call(Ra,dd,hd[ed]):ud;md===""?delete hd[ed]:md!=null&&(hd[ed]=md),Ra.attribs.style=stringify$3(hd)}else if(typeof ed=="object"){const hd=Object.keys(ed);for(let md=0;md`${ed}${ed?" ":""}${ud}: ${Ra[ud]};`,"")}function parse$6(Ra){if(Ra=(Ra||"").trim(),!Ra)return{};const ed={};let ud;for(const dd of Ra.split(";")){const hd=dd.indexOf(":");if(hd<1||hd===dd.length-1){const md=dd.trimEnd();md.length>0&&ud!==void 0&&(ed[ud]+=`;${md}`)}else ud=dd.slice(0,hd).trim(),ed[ud]=dd.slice(hd+1).trim()}return ed}const Css=Object.freeze(Object.defineProperty({__proto__:null,css:css$1},Symbol.toStringTag,{value:"Module"})),submittableSelector="input,select,textarea,keygen",r20=/%20/g,rCRLF=/\r?\n/g;function serialize$1(){return this.serializeArray().map(ud=>`${encodeURIComponent(ud.name)}=${encodeURIComponent(ud.value)}`).join("&").replace(r20,"+")}function serializeArray(){return this.map((Ra,ed)=>{const ud=this._make(ed);return isTag(ed)&&ed.name==="form"?ud.find(submittableSelector).toArray():ud.filter(submittableSelector).toArray()}).filter('[name!=""]:enabled:not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map((Ra,ed)=>{var ud;const dd=this._make(ed),hd=dd.attr("name"),md=(ud=dd.val())!==null&&ud!==void 0?ud:"";return Array.isArray(md)?md.map(gd=>({name:hd,value:gd.replace(rCRLF,`\r `)})):{name:hd,value:md.replace(rCRLF,`\r `)}}).toArray()}const Forms=Object.freeze(Object.defineProperty({__proto__:null,serialize:serialize$1,serializeArray},Symbol.toStringTag,{value:"Module"}));function getExtractDescr(Ra){var ed;return typeof Ra=="string"?{selector:Ra,value:"textContent"}:{selector:Ra.selector,value:(ed=Ra.value)!==null&&ed!==void 0?ed:"textContent"}}function extract(Ra){const ed={};for(const ud in Ra){const dd=Ra[ud],hd=Array.isArray(dd),{selector:md,value:gd}=getExtractDescr(hd?dd[0]:dd),yd=typeof gd=="function"?gd:typeof gd=="string"?vd=>this._make(vd).prop(gd):vd=>this._make(vd).extract(gd);if(hd)ed[ud]=this._findBySelector(md,Number.POSITIVE_INFINITY).map((vd,Cd)=>yd(Cd,ud,ed)).get();else{const vd=this._findBySelector(md,1);ed[ud]=vd.length>0?yd(vd[0],ud,ed):void 0}}return ed}const Extract=Object.freeze(Object.defineProperty({__proto__:null,extract},Symbol.toStringTag,{value:"Module"}));class Cheerio{constructor(ed,ud,dd){if(this.length=0,this.options=dd,this._root=ud,ed){for(let hd=0;hd=55296&&Ra<=57343}function isSurrogatePair(Ra){return Ra>=56320&&Ra<=57343}function getSurrogatePairCodePoint(Ra,ed){return(Ra-55296)*1024+9216+ed}function isControlCodePoint(Ra){return Ra!==32&&Ra!==10&&Ra!==13&&Ra!==9&&Ra!==12&&Ra>=1&&Ra<=31||Ra>=127&&Ra<=159}function isUndefinedCodePoint(Ra){return Ra>=64976&&Ra<=65007||UNDEFINED_CODE_POINTS.has(Ra)}var ERR;(function(Ra){Ra.controlCharacterInInputStream="control-character-in-input-stream",Ra.noncharacterInInputStream="noncharacter-in-input-stream",Ra.surrogateInInputStream="surrogate-in-input-stream",Ra.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",Ra.endTagWithAttributes="end-tag-with-attributes",Ra.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",Ra.unexpectedSolidusInTag="unexpected-solidus-in-tag",Ra.unexpectedNullCharacter="unexpected-null-character",Ra.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",Ra.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",Ra.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",Ra.missingEndTagName="missing-end-tag-name",Ra.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",Ra.unknownNamedCharacterReference="unknown-named-character-reference",Ra.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",Ra.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",Ra.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",Ra.eofBeforeTagName="eof-before-tag-name",Ra.eofInTag="eof-in-tag",Ra.missingAttributeValue="missing-attribute-value",Ra.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",Ra.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",Ra.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",Ra.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",Ra.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",Ra.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",Ra.missingDoctypePublicIdentifier="missing-doctype-public-identifier",Ra.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",Ra.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",Ra.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",Ra.cdataInHtmlContent="cdata-in-html-content",Ra.incorrectlyOpenedComment="incorrectly-opened-comment",Ra.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",Ra.eofInDoctype="eof-in-doctype",Ra.nestedComment="nested-comment",Ra.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",Ra.eofInComment="eof-in-comment",Ra.incorrectlyClosedComment="incorrectly-closed-comment",Ra.eofInCdata="eof-in-cdata",Ra.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",Ra.nullCharacterReference="null-character-reference",Ra.surrogateCharacterReference="surrogate-character-reference",Ra.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",Ra.controlCharacterReference="control-character-reference",Ra.noncharacterCharacterReference="noncharacter-character-reference",Ra.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",Ra.missingDoctypeName="missing-doctype-name",Ra.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",Ra.duplicateAttribute="duplicate-attribute",Ra.nonConformingDoctype="non-conforming-doctype",Ra.missingDoctype="missing-doctype",Ra.misplacedDoctype="misplaced-doctype",Ra.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",Ra.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",Ra.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",Ra.openElementsLeftAfterEof="open-elements-left-after-eof",Ra.abandonedHeadElementChild="abandoned-head-element-child",Ra.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",Ra.nestedNoscriptInHead="nested-noscript-in-head",Ra.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(ERR||(ERR={}));const DEFAULT_BUFFER_WATERLINE=65536;class Preprocessor{constructor(ed){this.handler=ed,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=DEFAULT_BUFFER_WATERLINE,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(ed,ud){const{line:dd,col:hd,offset:md}=this,gd=hd+ud,yd=md+ud;return{code:ed,startLine:dd,endLine:dd,startCol:gd,endCol:gd,startOffset:yd,endOffset:yd}}_err(ed){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(ed,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(ed){if(this.pos!==this.html.length-1){const ud=this.html.charCodeAt(this.pos+1);if(isSurrogatePair(ud))return this.pos++,this._addGap(),getSurrogatePairCodePoint(ed,ud)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,CODE_POINTS.EOF;return this._err(ERR.surrogateInInputStream),ed}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(ed,ud){this.html.length>0?this.html+=ed:this.html=ed,this.endOfChunkHit=!1,this.lastChunkWritten=ud}insertHtmlAtCurrentPos(ed){this.html=this.html.substring(0,this.pos+1)+ed+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(ed,ud){if(this.pos+ed.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(ud)return this.html.startsWith(ed,this.pos);for(let dd=0;dd=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,CODE_POINTS.EOF;const dd=this.html.charCodeAt(ud);return dd===CODE_POINTS.CARRIAGE_RETURN?CODE_POINTS.LINE_FEED:dd}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,CODE_POINTS.EOF;let ed=this.html.charCodeAt(this.pos);return ed===CODE_POINTS.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,CODE_POINTS.LINE_FEED):ed===CODE_POINTS.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,isSurrogate(ed)&&(ed=this._processSurrogate(ed)),this.handler.onParseError===null||ed>31&&ed<127||ed===CODE_POINTS.LINE_FEED||ed===CODE_POINTS.CARRIAGE_RETURN||ed>159&&ed<64976||this._checkForProblematicCharacters(ed),ed)}_checkForProblematicCharacters(ed){isControlCodePoint(ed)?this._err(ERR.controlCharacterInInputStream):isUndefinedCodePoint(ed)&&this._err(ERR.noncharacterInInputStream)}retreat(ed){for(this.pos-=ed;this.pos=0;ud--)if(Ra.attrs[ud].name===ed)return Ra.attrs[ud].value;return null}const htmlDecodeTree=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(Ra=>Ra.charCodeAt(0))),xmlDecodeTree=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(Ra=>Ra.charCodeAt(0)));var _a$2;const decodeMap=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),fromCodePoint=(_a$2=String.fromCodePoint)!==null&&_a$2!==void 0?_a$2:function(Ra){let ed="";return Ra>65535&&(Ra-=65536,ed+=String.fromCharCode(Ra>>>10&1023|55296),Ra=56320|Ra&1023),ed+=String.fromCharCode(Ra),ed};function replaceCodePoint(Ra){var ed;return Ra>=55296&&Ra<=57343||Ra>1114111?65533:(ed=decodeMap.get(Ra))!==null&&ed!==void 0?ed:Ra}var CharCodes$1;(function(Ra){Ra[Ra.NUM=35]="NUM",Ra[Ra.SEMI=59]="SEMI",Ra[Ra.EQUALS=61]="EQUALS",Ra[Ra.ZERO=48]="ZERO",Ra[Ra.NINE=57]="NINE",Ra[Ra.LOWER_A=97]="LOWER_A",Ra[Ra.LOWER_F=102]="LOWER_F",Ra[Ra.LOWER_X=120]="LOWER_X",Ra[Ra.LOWER_Z=122]="LOWER_Z",Ra[Ra.UPPER_A=65]="UPPER_A",Ra[Ra.UPPER_F=70]="UPPER_F",Ra[Ra.UPPER_Z=90]="UPPER_Z"})(CharCodes$1||(CharCodes$1={}));const TO_LOWER_BIT=32;var BinTrieFlags;(function(Ra){Ra[Ra.VALUE_LENGTH=49152]="VALUE_LENGTH",Ra[Ra.BRANCH_LENGTH=16256]="BRANCH_LENGTH",Ra[Ra.JUMP_TABLE=127]="JUMP_TABLE"})(BinTrieFlags||(BinTrieFlags={}));function isNumber$2(Ra){return Ra>=CharCodes$1.ZERO&&Ra<=CharCodes$1.NINE}function isHexadecimalCharacter(Ra){return Ra>=CharCodes$1.UPPER_A&&Ra<=CharCodes$1.UPPER_F||Ra>=CharCodes$1.LOWER_A&&Ra<=CharCodes$1.LOWER_F}function isAsciiAlphaNumeric$1(Ra){return Ra>=CharCodes$1.UPPER_A&&Ra<=CharCodes$1.UPPER_Z||Ra>=CharCodes$1.LOWER_A&&Ra<=CharCodes$1.LOWER_Z||isNumber$2(Ra)}function isEntityInAttributeInvalidEnd(Ra){return Ra===CharCodes$1.EQUALS||isAsciiAlphaNumeric$1(Ra)}var EntityDecoderState;(function(Ra){Ra[Ra.EntityStart=0]="EntityStart",Ra[Ra.NumericStart=1]="NumericStart",Ra[Ra.NumericDecimal=2]="NumericDecimal",Ra[Ra.NumericHex=3]="NumericHex",Ra[Ra.NamedEntity=4]="NamedEntity"})(EntityDecoderState||(EntityDecoderState={}));var DecodingMode;(function(Ra){Ra[Ra.Legacy=0]="Legacy",Ra[Ra.Strict=1]="Strict",Ra[Ra.Attribute=2]="Attribute"})(DecodingMode||(DecodingMode={}));class EntityDecoder{constructor(ed,ud,dd){this.decodeTree=ed,this.emitCodePoint=ud,this.errors=dd,this.state=EntityDecoderState.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=DecodingMode.Strict}startEntity(ed){this.decodeMode=ed,this.state=EntityDecoderState.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(ed,ud){switch(this.state){case EntityDecoderState.EntityStart:return ed.charCodeAt(ud)===CharCodes$1.NUM?(this.state=EntityDecoderState.NumericStart,this.consumed+=1,this.stateNumericStart(ed,ud+1)):(this.state=EntityDecoderState.NamedEntity,this.stateNamedEntity(ed,ud));case EntityDecoderState.NumericStart:return this.stateNumericStart(ed,ud);case EntityDecoderState.NumericDecimal:return this.stateNumericDecimal(ed,ud);case EntityDecoderState.NumericHex:return this.stateNumericHex(ed,ud);case EntityDecoderState.NamedEntity:return this.stateNamedEntity(ed,ud)}}stateNumericStart(ed,ud){return ud>=ed.length?-1:(ed.charCodeAt(ud)|TO_LOWER_BIT)===CharCodes$1.LOWER_X?(this.state=EntityDecoderState.NumericHex,this.consumed+=1,this.stateNumericHex(ed,ud+1)):(this.state=EntityDecoderState.NumericDecimal,this.stateNumericDecimal(ed,ud))}addToNumericResult(ed,ud,dd,hd){if(ud!==dd){const md=dd-ud;this.result=this.result*Math.pow(hd,md)+parseInt(ed.substr(ud,md),hd),this.consumed+=md}}stateNumericHex(ed,ud){const dd=ud;for(;ud>14;for(;ud>14,md!==0){if(gd===CharCodes$1.SEMI)return this.emitNamedEntityData(this.treeIndex,md,this.consumed+this.excess);this.decodeMode!==DecodingMode.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var ed;const{result:ud,decodeTree:dd}=this,hd=(dd[ud]&BinTrieFlags.VALUE_LENGTH)>>14;return this.emitNamedEntityData(ud,hd,this.consumed),(ed=this.errors)===null||ed===void 0||ed.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(ed,ud,dd){const{decodeTree:hd}=this;return this.emitCodePoint(ud===1?hd[ed]&~BinTrieFlags.VALUE_LENGTH:hd[ed+1],dd),ud===3&&this.emitCodePoint(hd[ed+2],dd),dd}end(){var ed;switch(this.state){case EntityDecoderState.NamedEntity:return this.result!==0&&(this.decodeMode!==DecodingMode.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case EntityDecoderState.NumericDecimal:return this.emitNumericEntity(0,2);case EntityDecoderState.NumericHex:return this.emitNumericEntity(0,3);case EntityDecoderState.NumericStart:return(ed=this.errors)===null||ed===void 0||ed.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case EntityDecoderState.EntityStart:return 0}}}function getDecoder(Ra){let ed="";const ud=new EntityDecoder(Ra,dd=>ed+=fromCodePoint(dd));return function(hd,md){let gd=0,yd=0;for(;(yd=hd.indexOf("&",yd))>=0;){ed+=hd.slice(gd,yd),ud.startEntity(md);const Cd=ud.write(hd,yd+1);if(Cd<0){gd=yd+ud.end();break}gd=yd+Cd,yd=Cd===0?gd+1:gd}const vd=ed+hd.slice(gd);return ed="",vd}}function determineBranch(Ra,ed,ud,dd){const hd=(ed&BinTrieFlags.BRANCH_LENGTH)>>7,md=ed&BinTrieFlags.JUMP_TABLE;if(hd===0)return md!==0&&dd===md?ud:-1;if(md){const vd=dd-md;return vd<0||vd>=hd?-1:Ra[ud+vd]-1}let gd=ud,yd=gd+hd-1;for(;gd<=yd;){const vd=gd+yd>>>1,Cd=Ra[vd];if(Cddd)yd=vd-1;else return Ra[vd+hd]}return-1}getDecoder(htmlDecodeTree);getDecoder(xmlDecodeTree);var NS;(function(Ra){Ra.HTML="http://www.w3.org/1999/xhtml",Ra.MATHML="http://www.w3.org/1998/Math/MathML",Ra.SVG="http://www.w3.org/2000/svg",Ra.XLINK="http://www.w3.org/1999/xlink",Ra.XML="http://www.w3.org/XML/1998/namespace",Ra.XMLNS="http://www.w3.org/2000/xmlns/"})(NS||(NS={}));var ATTRS;(function(Ra){Ra.TYPE="type",Ra.ACTION="action",Ra.ENCODING="encoding",Ra.PROMPT="prompt",Ra.NAME="name",Ra.COLOR="color",Ra.FACE="face",Ra.SIZE="size"})(ATTRS||(ATTRS={}));var DOCUMENT_MODE;(function(Ra){Ra.NO_QUIRKS="no-quirks",Ra.QUIRKS="quirks",Ra.LIMITED_QUIRKS="limited-quirks"})(DOCUMENT_MODE||(DOCUMENT_MODE={}));var TAG_NAMES;(function(Ra){Ra.A="a",Ra.ADDRESS="address",Ra.ANNOTATION_XML="annotation-xml",Ra.APPLET="applet",Ra.AREA="area",Ra.ARTICLE="article",Ra.ASIDE="aside",Ra.B="b",Ra.BASE="base",Ra.BASEFONT="basefont",Ra.BGSOUND="bgsound",Ra.BIG="big",Ra.BLOCKQUOTE="blockquote",Ra.BODY="body",Ra.BR="br",Ra.BUTTON="button",Ra.CAPTION="caption",Ra.CENTER="center",Ra.CODE="code",Ra.COL="col",Ra.COLGROUP="colgroup",Ra.DD="dd",Ra.DESC="desc",Ra.DETAILS="details",Ra.DIALOG="dialog",Ra.DIR="dir",Ra.DIV="div",Ra.DL="dl",Ra.DT="dt",Ra.EM="em",Ra.EMBED="embed",Ra.FIELDSET="fieldset",Ra.FIGCAPTION="figcaption",Ra.FIGURE="figure",Ra.FONT="font",Ra.FOOTER="footer",Ra.FOREIGN_OBJECT="foreignObject",Ra.FORM="form",Ra.FRAME="frame",Ra.FRAMESET="frameset",Ra.H1="h1",Ra.H2="h2",Ra.H3="h3",Ra.H4="h4",Ra.H5="h5",Ra.H6="h6",Ra.HEAD="head",Ra.HEADER="header",Ra.HGROUP="hgroup",Ra.HR="hr",Ra.HTML="html",Ra.I="i",Ra.IMG="img",Ra.IMAGE="image",Ra.INPUT="input",Ra.IFRAME="iframe",Ra.KEYGEN="keygen",Ra.LABEL="label",Ra.LI="li",Ra.LINK="link",Ra.LISTING="listing",Ra.MAIN="main",Ra.MALIGNMARK="malignmark",Ra.MARQUEE="marquee",Ra.MATH="math",Ra.MENU="menu",Ra.META="meta",Ra.MGLYPH="mglyph",Ra.MI="mi",Ra.MO="mo",Ra.MN="mn",Ra.MS="ms",Ra.MTEXT="mtext",Ra.NAV="nav",Ra.NOBR="nobr",Ra.NOFRAMES="noframes",Ra.NOEMBED="noembed",Ra.NOSCRIPT="noscript",Ra.OBJECT="object",Ra.OL="ol",Ra.OPTGROUP="optgroup",Ra.OPTION="option",Ra.P="p",Ra.PARAM="param",Ra.PLAINTEXT="plaintext",Ra.PRE="pre",Ra.RB="rb",Ra.RP="rp",Ra.RT="rt",Ra.RTC="rtc",Ra.RUBY="ruby",Ra.S="s",Ra.SCRIPT="script",Ra.SEARCH="search",Ra.SECTION="section",Ra.SELECT="select",Ra.SOURCE="source",Ra.SMALL="small",Ra.SPAN="span",Ra.STRIKE="strike",Ra.STRONG="strong",Ra.STYLE="style",Ra.SUB="sub",Ra.SUMMARY="summary",Ra.SUP="sup",Ra.TABLE="table",Ra.TBODY="tbody",Ra.TEMPLATE="template",Ra.TEXTAREA="textarea",Ra.TFOOT="tfoot",Ra.TD="td",Ra.TH="th",Ra.THEAD="thead",Ra.TITLE="title",Ra.TR="tr",Ra.TRACK="track",Ra.TT="tt",Ra.U="u",Ra.UL="ul",Ra.SVG="svg",Ra.VAR="var",Ra.WBR="wbr",Ra.XMP="xmp"})(TAG_NAMES||(TAG_NAMES={}));var TAG_ID;(function(Ra){Ra[Ra.UNKNOWN=0]="UNKNOWN",Ra[Ra.A=1]="A",Ra[Ra.ADDRESS=2]="ADDRESS",Ra[Ra.ANNOTATION_XML=3]="ANNOTATION_XML",Ra[Ra.APPLET=4]="APPLET",Ra[Ra.AREA=5]="AREA",Ra[Ra.ARTICLE=6]="ARTICLE",Ra[Ra.ASIDE=7]="ASIDE",Ra[Ra.B=8]="B",Ra[Ra.BASE=9]="BASE",Ra[Ra.BASEFONT=10]="BASEFONT",Ra[Ra.BGSOUND=11]="BGSOUND",Ra[Ra.BIG=12]="BIG",Ra[Ra.BLOCKQUOTE=13]="BLOCKQUOTE",Ra[Ra.BODY=14]="BODY",Ra[Ra.BR=15]="BR",Ra[Ra.BUTTON=16]="BUTTON",Ra[Ra.CAPTION=17]="CAPTION",Ra[Ra.CENTER=18]="CENTER",Ra[Ra.CODE=19]="CODE",Ra[Ra.COL=20]="COL",Ra[Ra.COLGROUP=21]="COLGROUP",Ra[Ra.DD=22]="DD",Ra[Ra.DESC=23]="DESC",Ra[Ra.DETAILS=24]="DETAILS",Ra[Ra.DIALOG=25]="DIALOG",Ra[Ra.DIR=26]="DIR",Ra[Ra.DIV=27]="DIV",Ra[Ra.DL=28]="DL",Ra[Ra.DT=29]="DT",Ra[Ra.EM=30]="EM",Ra[Ra.EMBED=31]="EMBED",Ra[Ra.FIELDSET=32]="FIELDSET",Ra[Ra.FIGCAPTION=33]="FIGCAPTION",Ra[Ra.FIGURE=34]="FIGURE",Ra[Ra.FONT=35]="FONT",Ra[Ra.FOOTER=36]="FOOTER",Ra[Ra.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",Ra[Ra.FORM=38]="FORM",Ra[Ra.FRAME=39]="FRAME",Ra[Ra.FRAMESET=40]="FRAMESET",Ra[Ra.H1=41]="H1",Ra[Ra.H2=42]="H2",Ra[Ra.H3=43]="H3",Ra[Ra.H4=44]="H4",Ra[Ra.H5=45]="H5",Ra[Ra.H6=46]="H6",Ra[Ra.HEAD=47]="HEAD",Ra[Ra.HEADER=48]="HEADER",Ra[Ra.HGROUP=49]="HGROUP",Ra[Ra.HR=50]="HR",Ra[Ra.HTML=51]="HTML",Ra[Ra.I=52]="I",Ra[Ra.IMG=53]="IMG",Ra[Ra.IMAGE=54]="IMAGE",Ra[Ra.INPUT=55]="INPUT",Ra[Ra.IFRAME=56]="IFRAME",Ra[Ra.KEYGEN=57]="KEYGEN",Ra[Ra.LABEL=58]="LABEL",Ra[Ra.LI=59]="LI",Ra[Ra.LINK=60]="LINK",Ra[Ra.LISTING=61]="LISTING",Ra[Ra.MAIN=62]="MAIN",Ra[Ra.MALIGNMARK=63]="MALIGNMARK",Ra[Ra.MARQUEE=64]="MARQUEE",Ra[Ra.MATH=65]="MATH",Ra[Ra.MENU=66]="MENU",Ra[Ra.META=67]="META",Ra[Ra.MGLYPH=68]="MGLYPH",Ra[Ra.MI=69]="MI",Ra[Ra.MO=70]="MO",Ra[Ra.MN=71]="MN",Ra[Ra.MS=72]="MS",Ra[Ra.MTEXT=73]="MTEXT",Ra[Ra.NAV=74]="NAV",Ra[Ra.NOBR=75]="NOBR",Ra[Ra.NOFRAMES=76]="NOFRAMES",Ra[Ra.NOEMBED=77]="NOEMBED",Ra[Ra.NOSCRIPT=78]="NOSCRIPT",Ra[Ra.OBJECT=79]="OBJECT",Ra[Ra.OL=80]="OL",Ra[Ra.OPTGROUP=81]="OPTGROUP",Ra[Ra.OPTION=82]="OPTION",Ra[Ra.P=83]="P",Ra[Ra.PARAM=84]="PARAM",Ra[Ra.PLAINTEXT=85]="PLAINTEXT",Ra[Ra.PRE=86]="PRE",Ra[Ra.RB=87]="RB",Ra[Ra.RP=88]="RP",Ra[Ra.RT=89]="RT",Ra[Ra.RTC=90]="RTC",Ra[Ra.RUBY=91]="RUBY",Ra[Ra.S=92]="S",Ra[Ra.SCRIPT=93]="SCRIPT",Ra[Ra.SEARCH=94]="SEARCH",Ra[Ra.SECTION=95]="SECTION",Ra[Ra.SELECT=96]="SELECT",Ra[Ra.SOURCE=97]="SOURCE",Ra[Ra.SMALL=98]="SMALL",Ra[Ra.SPAN=99]="SPAN",Ra[Ra.STRIKE=100]="STRIKE",Ra[Ra.STRONG=101]="STRONG",Ra[Ra.STYLE=102]="STYLE",Ra[Ra.SUB=103]="SUB",Ra[Ra.SUMMARY=104]="SUMMARY",Ra[Ra.SUP=105]="SUP",Ra[Ra.TABLE=106]="TABLE",Ra[Ra.TBODY=107]="TBODY",Ra[Ra.TEMPLATE=108]="TEMPLATE",Ra[Ra.TEXTAREA=109]="TEXTAREA",Ra[Ra.TFOOT=110]="TFOOT",Ra[Ra.TD=111]="TD",Ra[Ra.TH=112]="TH",Ra[Ra.THEAD=113]="THEAD",Ra[Ra.TITLE=114]="TITLE",Ra[Ra.TR=115]="TR",Ra[Ra.TRACK=116]="TRACK",Ra[Ra.TT=117]="TT",Ra[Ra.U=118]="U",Ra[Ra.UL=119]="UL",Ra[Ra.SVG=120]="SVG",Ra[Ra.VAR=121]="VAR",Ra[Ra.WBR=122]="WBR",Ra[Ra.XMP=123]="XMP"})(TAG_ID||(TAG_ID={}));const TAG_NAME_TO_ID=new Map([[TAG_NAMES.A,TAG_ID.A],[TAG_NAMES.ADDRESS,TAG_ID.ADDRESS],[TAG_NAMES.ANNOTATION_XML,TAG_ID.ANNOTATION_XML],[TAG_NAMES.APPLET,TAG_ID.APPLET],[TAG_NAMES.AREA,TAG_ID.AREA],[TAG_NAMES.ARTICLE,TAG_ID.ARTICLE],[TAG_NAMES.ASIDE,TAG_ID.ASIDE],[TAG_NAMES.B,TAG_ID.B],[TAG_NAMES.BASE,TAG_ID.BASE],[TAG_NAMES.BASEFONT,TAG_ID.BASEFONT],[TAG_NAMES.BGSOUND,TAG_ID.BGSOUND],[TAG_NAMES.BIG,TAG_ID.BIG],[TAG_NAMES.BLOCKQUOTE,TAG_ID.BLOCKQUOTE],[TAG_NAMES.BODY,TAG_ID.BODY],[TAG_NAMES.BR,TAG_ID.BR],[TAG_NAMES.BUTTON,TAG_ID.BUTTON],[TAG_NAMES.CAPTION,TAG_ID.CAPTION],[TAG_NAMES.CENTER,TAG_ID.CENTER],[TAG_NAMES.CODE,TAG_ID.CODE],[TAG_NAMES.COL,TAG_ID.COL],[TAG_NAMES.COLGROUP,TAG_ID.COLGROUP],[TAG_NAMES.DD,TAG_ID.DD],[TAG_NAMES.DESC,TAG_ID.DESC],[TAG_NAMES.DETAILS,TAG_ID.DETAILS],[TAG_NAMES.DIALOG,TAG_ID.DIALOG],[TAG_NAMES.DIR,TAG_ID.DIR],[TAG_NAMES.DIV,TAG_ID.DIV],[TAG_NAMES.DL,TAG_ID.DL],[TAG_NAMES.DT,TAG_ID.DT],[TAG_NAMES.EM,TAG_ID.EM],[TAG_NAMES.EMBED,TAG_ID.EMBED],[TAG_NAMES.FIELDSET,TAG_ID.FIELDSET],[TAG_NAMES.FIGCAPTION,TAG_ID.FIGCAPTION],[TAG_NAMES.FIGURE,TAG_ID.FIGURE],[TAG_NAMES.FONT,TAG_ID.FONT],[TAG_NAMES.FOOTER,TAG_ID.FOOTER],[TAG_NAMES.FOREIGN_OBJECT,TAG_ID.FOREIGN_OBJECT],[TAG_NAMES.FORM,TAG_ID.FORM],[TAG_NAMES.FRAME,TAG_ID.FRAME],[TAG_NAMES.FRAMESET,TAG_ID.FRAMESET],[TAG_NAMES.H1,TAG_ID.H1],[TAG_NAMES.H2,TAG_ID.H2],[TAG_NAMES.H3,TAG_ID.H3],[TAG_NAMES.H4,TAG_ID.H4],[TAG_NAMES.H5,TAG_ID.H5],[TAG_NAMES.H6,TAG_ID.H6],[TAG_NAMES.HEAD,TAG_ID.HEAD],[TAG_NAMES.HEADER,TAG_ID.HEADER],[TAG_NAMES.HGROUP,TAG_ID.HGROUP],[TAG_NAMES.HR,TAG_ID.HR],[TAG_NAMES.HTML,TAG_ID.HTML],[TAG_NAMES.I,TAG_ID.I],[TAG_NAMES.IMG,TAG_ID.IMG],[TAG_NAMES.IMAGE,TAG_ID.IMAGE],[TAG_NAMES.INPUT,TAG_ID.INPUT],[TAG_NAMES.IFRAME,TAG_ID.IFRAME],[TAG_NAMES.KEYGEN,TAG_ID.KEYGEN],[TAG_NAMES.LABEL,TAG_ID.LABEL],[TAG_NAMES.LI,TAG_ID.LI],[TAG_NAMES.LINK,TAG_ID.LINK],[TAG_NAMES.LISTING,TAG_ID.LISTING],[TAG_NAMES.MAIN,TAG_ID.MAIN],[TAG_NAMES.MALIGNMARK,TAG_ID.MALIGNMARK],[TAG_NAMES.MARQUEE,TAG_ID.MARQUEE],[TAG_NAMES.MATH,TAG_ID.MATH],[TAG_NAMES.MENU,TAG_ID.MENU],[TAG_NAMES.META,TAG_ID.META],[TAG_NAMES.MGLYPH,TAG_ID.MGLYPH],[TAG_NAMES.MI,TAG_ID.MI],[TAG_NAMES.MO,TAG_ID.MO],[TAG_NAMES.MN,TAG_ID.MN],[TAG_NAMES.MS,TAG_ID.MS],[TAG_NAMES.MTEXT,TAG_ID.MTEXT],[TAG_NAMES.NAV,TAG_ID.NAV],[TAG_NAMES.NOBR,TAG_ID.NOBR],[TAG_NAMES.NOFRAMES,TAG_ID.NOFRAMES],[TAG_NAMES.NOEMBED,TAG_ID.NOEMBED],[TAG_NAMES.NOSCRIPT,TAG_ID.NOSCRIPT],[TAG_NAMES.OBJECT,TAG_ID.OBJECT],[TAG_NAMES.OL,TAG_ID.OL],[TAG_NAMES.OPTGROUP,TAG_ID.OPTGROUP],[TAG_NAMES.OPTION,TAG_ID.OPTION],[TAG_NAMES.P,TAG_ID.P],[TAG_NAMES.PARAM,TAG_ID.PARAM],[TAG_NAMES.PLAINTEXT,TAG_ID.PLAINTEXT],[TAG_NAMES.PRE,TAG_ID.PRE],[TAG_NAMES.RB,TAG_ID.RB],[TAG_NAMES.RP,TAG_ID.RP],[TAG_NAMES.RT,TAG_ID.RT],[TAG_NAMES.RTC,TAG_ID.RTC],[TAG_NAMES.RUBY,TAG_ID.RUBY],[TAG_NAMES.S,TAG_ID.S],[TAG_NAMES.SCRIPT,TAG_ID.SCRIPT],[TAG_NAMES.SEARCH,TAG_ID.SEARCH],[TAG_NAMES.SECTION,TAG_ID.SECTION],[TAG_NAMES.SELECT,TAG_ID.SELECT],[TAG_NAMES.SOURCE,TAG_ID.SOURCE],[TAG_NAMES.SMALL,TAG_ID.SMALL],[TAG_NAMES.SPAN,TAG_ID.SPAN],[TAG_NAMES.STRIKE,TAG_ID.STRIKE],[TAG_NAMES.STRONG,TAG_ID.STRONG],[TAG_NAMES.STYLE,TAG_ID.STYLE],[TAG_NAMES.SUB,TAG_ID.SUB],[TAG_NAMES.SUMMARY,TAG_ID.SUMMARY],[TAG_NAMES.SUP,TAG_ID.SUP],[TAG_NAMES.TABLE,TAG_ID.TABLE],[TAG_NAMES.TBODY,TAG_ID.TBODY],[TAG_NAMES.TEMPLATE,TAG_ID.TEMPLATE],[TAG_NAMES.TEXTAREA,TAG_ID.TEXTAREA],[TAG_NAMES.TFOOT,TAG_ID.TFOOT],[TAG_NAMES.TD,TAG_ID.TD],[TAG_NAMES.TH,TAG_ID.TH],[TAG_NAMES.THEAD,TAG_ID.THEAD],[TAG_NAMES.TITLE,TAG_ID.TITLE],[TAG_NAMES.TR,TAG_ID.TR],[TAG_NAMES.TRACK,TAG_ID.TRACK],[TAG_NAMES.TT,TAG_ID.TT],[TAG_NAMES.U,TAG_ID.U],[TAG_NAMES.UL,TAG_ID.UL],[TAG_NAMES.SVG,TAG_ID.SVG],[TAG_NAMES.VAR,TAG_ID.VAR],[TAG_NAMES.WBR,TAG_ID.WBR],[TAG_NAMES.XMP,TAG_ID.XMP]]);function getTagID(Ra){var ed;return(ed=TAG_NAME_TO_ID.get(Ra))!==null&&ed!==void 0?ed:TAG_ID.UNKNOWN}const $$4=TAG_ID,SPECIAL_ELEMENTS={[NS.HTML]:new Set([$$4.ADDRESS,$$4.APPLET,$$4.AREA,$$4.ARTICLE,$$4.ASIDE,$$4.BASE,$$4.BASEFONT,$$4.BGSOUND,$$4.BLOCKQUOTE,$$4.BODY,$$4.BR,$$4.BUTTON,$$4.CAPTION,$$4.CENTER,$$4.COL,$$4.COLGROUP,$$4.DD,$$4.DETAILS,$$4.DIR,$$4.DIV,$$4.DL,$$4.DT,$$4.EMBED,$$4.FIELDSET,$$4.FIGCAPTION,$$4.FIGURE,$$4.FOOTER,$$4.FORM,$$4.FRAME,$$4.FRAMESET,$$4.H1,$$4.H2,$$4.H3,$$4.H4,$$4.H5,$$4.H6,$$4.HEAD,$$4.HEADER,$$4.HGROUP,$$4.HR,$$4.HTML,$$4.IFRAME,$$4.IMG,$$4.INPUT,$$4.LI,$$4.LINK,$$4.LISTING,$$4.MAIN,$$4.MARQUEE,$$4.MENU,$$4.META,$$4.NAV,$$4.NOEMBED,$$4.NOFRAMES,$$4.NOSCRIPT,$$4.OBJECT,$$4.OL,$$4.P,$$4.PARAM,$$4.PLAINTEXT,$$4.PRE,$$4.SCRIPT,$$4.SECTION,$$4.SELECT,$$4.SOURCE,$$4.STYLE,$$4.SUMMARY,$$4.TABLE,$$4.TBODY,$$4.TD,$$4.TEMPLATE,$$4.TEXTAREA,$$4.TFOOT,$$4.TH,$$4.THEAD,$$4.TITLE,$$4.TR,$$4.TRACK,$$4.UL,$$4.WBR,$$4.XMP]),[NS.MATHML]:new Set([$$4.MI,$$4.MO,$$4.MN,$$4.MS,$$4.MTEXT,$$4.ANNOTATION_XML]),[NS.SVG]:new Set([$$4.TITLE,$$4.FOREIGN_OBJECT,$$4.DESC]),[NS.XLINK]:new Set,[NS.XML]:new Set,[NS.XMLNS]:new Set},NUMBERED_HEADERS=new Set([$$4.H1,$$4.H2,$$4.H3,$$4.H4,$$4.H5,$$4.H6]),UNESCAPED_TEXT=new Set([TAG_NAMES.STYLE,TAG_NAMES.SCRIPT,TAG_NAMES.XMP,TAG_NAMES.IFRAME,TAG_NAMES.NOEMBED,TAG_NAMES.NOFRAMES,TAG_NAMES.PLAINTEXT]);function hasUnescapedText(Ra,ed){return UNESCAPED_TEXT.has(Ra)||ed&&Ra===TAG_NAMES.NOSCRIPT}var State$5;(function(Ra){Ra[Ra.DATA=0]="DATA",Ra[Ra.RCDATA=1]="RCDATA",Ra[Ra.RAWTEXT=2]="RAWTEXT",Ra[Ra.SCRIPT_DATA=3]="SCRIPT_DATA",Ra[Ra.PLAINTEXT=4]="PLAINTEXT",Ra[Ra.TAG_OPEN=5]="TAG_OPEN",Ra[Ra.END_TAG_OPEN=6]="END_TAG_OPEN",Ra[Ra.TAG_NAME=7]="TAG_NAME",Ra[Ra.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",Ra[Ra.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",Ra[Ra.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",Ra[Ra.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",Ra[Ra.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",Ra[Ra.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",Ra[Ra.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",Ra[Ra.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",Ra[Ra.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",Ra[Ra.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",Ra[Ra.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",Ra[Ra.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",Ra[Ra.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",Ra[Ra.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",Ra[Ra.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",Ra[Ra.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",Ra[Ra.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",Ra[Ra.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",Ra[Ra.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",Ra[Ra.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",Ra[Ra.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",Ra[Ra.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",Ra[Ra.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",Ra[Ra.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",Ra[Ra.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",Ra[Ra.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",Ra[Ra.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",Ra[Ra.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",Ra[Ra.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",Ra[Ra.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",Ra[Ra.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",Ra[Ra.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",Ra[Ra.BOGUS_COMMENT=40]="BOGUS_COMMENT",Ra[Ra.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",Ra[Ra.COMMENT_START=42]="COMMENT_START",Ra[Ra.COMMENT_START_DASH=43]="COMMENT_START_DASH",Ra[Ra.COMMENT=44]="COMMENT",Ra[Ra.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",Ra[Ra.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",Ra[Ra.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",Ra[Ra.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",Ra[Ra.COMMENT_END_DASH=49]="COMMENT_END_DASH",Ra[Ra.COMMENT_END=50]="COMMENT_END",Ra[Ra.COMMENT_END_BANG=51]="COMMENT_END_BANG",Ra[Ra.DOCTYPE=52]="DOCTYPE",Ra[Ra.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",Ra[Ra.DOCTYPE_NAME=54]="DOCTYPE_NAME",Ra[Ra.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",Ra[Ra.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",Ra[Ra.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",Ra[Ra.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",Ra[Ra.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",Ra[Ra.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",Ra[Ra.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",Ra[Ra.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",Ra[Ra.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",Ra[Ra.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",Ra[Ra.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",Ra[Ra.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",Ra[Ra.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",Ra[Ra.CDATA_SECTION=68]="CDATA_SECTION",Ra[Ra.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",Ra[Ra.CDATA_SECTION_END=70]="CDATA_SECTION_END",Ra[Ra.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",Ra[Ra.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(State$5||(State$5={}));const TokenizerMode={DATA:State$5.DATA,RCDATA:State$5.RCDATA,RAWTEXT:State$5.RAWTEXT,SCRIPT_DATA:State$5.SCRIPT_DATA,PLAINTEXT:State$5.PLAINTEXT,CDATA_SECTION:State$5.CDATA_SECTION};function isAsciiDigit(Ra){return Ra>=CODE_POINTS.DIGIT_0&&Ra<=CODE_POINTS.DIGIT_9}function isAsciiUpper(Ra){return Ra>=CODE_POINTS.LATIN_CAPITAL_A&&Ra<=CODE_POINTS.LATIN_CAPITAL_Z}function isAsciiLower(Ra){return Ra>=CODE_POINTS.LATIN_SMALL_A&&Ra<=CODE_POINTS.LATIN_SMALL_Z}function isAsciiLetter(Ra){return isAsciiLower(Ra)||isAsciiUpper(Ra)}function isAsciiAlphaNumeric(Ra){return isAsciiLetter(Ra)||isAsciiDigit(Ra)}function toAsciiLower(Ra){return Ra+32}function isWhitespace$3(Ra){return Ra===CODE_POINTS.SPACE||Ra===CODE_POINTS.LINE_FEED||Ra===CODE_POINTS.TABULATION||Ra===CODE_POINTS.FORM_FEED}function isScriptDataDoubleEscapeSequenceEnd(Ra){return isWhitespace$3(Ra)||Ra===CODE_POINTS.SOLIDUS||Ra===CODE_POINTS.GREATER_THAN_SIGN}function getErrorForNumericCharacterReference(Ra){return Ra===CODE_POINTS.NULL?ERR.nullCharacterReference:Ra>1114111?ERR.characterReferenceOutsideUnicodeRange:isSurrogate(Ra)?ERR.surrogateCharacterReference:isUndefinedCodePoint(Ra)?ERR.noncharacterCharacterReference:isControlCodePoint(Ra)||Ra===CODE_POINTS.CARRIAGE_RETURN?ERR.controlCharacterReference:null}let Tokenizer$1=class{constructor(ed,ud){this.options=ed,this.handler=ud,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=State$5.DATA,this.returnState=State$5.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Preprocessor(ud),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new EntityDecoder(htmlDecodeTree,(dd,hd)=>{this.preprocessor.pos=this.entityStartPos+hd-1,this._flushCodePointConsumedAsCharacterReference(dd)},ud.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(ERR.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:dd=>{this._err(ERR.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+dd)},validateNumericCharacterReference:dd=>{const hd=getErrorForNumericCharacterReference(dd);hd&&this._err(hd,1)}}:void 0)}_err(ed,ud=0){var dd,hd;(hd=(dd=this.handler).onParseError)===null||hd===void 0||hd.call(dd,this.preprocessor.getError(ed,ud))}getCurrentLocation(ed){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-ed,startOffset:this.preprocessor.offset-ed,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const ed=this._consume();this._ensureHibernation()||this._callState(ed)}this.inLoop=!1}}pause(){this.paused=!0}resume(ed){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||ed==null||ed())}write(ed,ud,dd){this.active=!0,this.preprocessor.write(ed,ud),this._runParsingLoop(),this.paused||dd==null||dd()}insertHtmlAtCurrentPos(ed){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(ed),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(ed){this.consumedAfterSnapshot+=ed;for(let ud=0;ud0&&this._err(ERR.endTagWithAttributes),ed.selfClosing&&this._err(ERR.endTagWithTrailingSolidus),this.handler.onEndTag(ed)),this.preprocessor.dropParsedChunk()}emitCurrentComment(ed){this.prepareToken(ed),this.handler.onComment(ed),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(ed){this.prepareToken(ed),this.handler.onDoctype(ed),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(ed){if(this.currentCharacterToken){switch(ed&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=ed.startLine,this.currentCharacterToken.location.endCol=ed.startCol,this.currentCharacterToken.location.endOffset=ed.startOffset),this.currentCharacterToken.type){case TokenType.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case TokenType.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case TokenType.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const ed=this.getCurrentLocation(0);ed&&(ed.endLine=ed.startLine,ed.endCol=ed.startCol,ed.endOffset=ed.startOffset),this._emitCurrentCharacterToken(ed),this.handler.onEof({type:TokenType.EOF,location:ed}),this.active=!1}_appendCharToCurrentCharacterToken(ed,ud){if(this.currentCharacterToken)if(this.currentCharacterToken.type===ed){this.currentCharacterToken.chars+=ud;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(ed,ud)}_emitCodePoint(ed){const ud=isWhitespace$3(ed)?TokenType.WHITESPACE_CHARACTER:ed===CODE_POINTS.NULL?TokenType.NULL_CHARACTER:TokenType.CHARACTER;this._appendCharToCurrentCharacterToken(ud,String.fromCodePoint(ed))}_emitChars(ed){this._appendCharToCurrentCharacterToken(TokenType.CHARACTER,ed)}_startCharacterReference(){this.returnState=this.state,this.state=State$5.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?DecodingMode.Attribute:DecodingMode.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===State$5.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===State$5.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===State$5.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(ed){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(ed):this._emitCodePoint(ed)}_callState(ed){switch(this.state){case State$5.DATA:{this._stateData(ed);break}case State$5.RCDATA:{this._stateRcdata(ed);break}case State$5.RAWTEXT:{this._stateRawtext(ed);break}case State$5.SCRIPT_DATA:{this._stateScriptData(ed);break}case State$5.PLAINTEXT:{this._statePlaintext(ed);break}case State$5.TAG_OPEN:{this._stateTagOpen(ed);break}case State$5.END_TAG_OPEN:{this._stateEndTagOpen(ed);break}case State$5.TAG_NAME:{this._stateTagName(ed);break}case State$5.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(ed);break}case State$5.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(ed);break}case State$5.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(ed);break}case State$5.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(ed);break}case State$5.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(ed);break}case State$5.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(ed);break}case State$5.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(ed);break}case State$5.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(ed);break}case State$5.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(ed);break}case State$5.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(ed);break}case State$5.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(ed);break}case State$5.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(ed);break}case State$5.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(ed);break}case State$5.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(ed);break}case State$5.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(ed);break}case State$5.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(ed);break}case State$5.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(ed);break}case State$5.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(ed);break}case State$5.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(ed);break}case State$5.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(ed);break}case State$5.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(ed);break}case State$5.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(ed);break}case State$5.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(ed);break}case State$5.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(ed);break}case State$5.ATTRIBUTE_NAME:{this._stateAttributeName(ed);break}case State$5.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(ed);break}case State$5.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(ed);break}case State$5.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(ed);break}case State$5.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(ed);break}case State$5.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(ed);break}case State$5.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(ed);break}case State$5.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(ed);break}case State$5.BOGUS_COMMENT:{this._stateBogusComment(ed);break}case State$5.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(ed);break}case State$5.COMMENT_START:{this._stateCommentStart(ed);break}case State$5.COMMENT_START_DASH:{this._stateCommentStartDash(ed);break}case State$5.COMMENT:{this._stateComment(ed);break}case State$5.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(ed);break}case State$5.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(ed);break}case State$5.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(ed);break}case State$5.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(ed);break}case State$5.COMMENT_END_DASH:{this._stateCommentEndDash(ed);break}case State$5.COMMENT_END:{this._stateCommentEnd(ed);break}case State$5.COMMENT_END_BANG:{this._stateCommentEndBang(ed);break}case State$5.DOCTYPE:{this._stateDoctype(ed);break}case State$5.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(ed);break}case State$5.DOCTYPE_NAME:{this._stateDoctypeName(ed);break}case State$5.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(ed);break}case State$5.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(ed);break}case State$5.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(ed);break}case State$5.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(ed);break}case State$5.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(ed);break}case State$5.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(ed);break}case State$5.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(ed);break}case State$5.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(ed);break}case State$5.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(ed);break}case State$5.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(ed);break}case State$5.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(ed);break}case State$5.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(ed);break}case State$5.BOGUS_DOCTYPE:{this._stateBogusDoctype(ed);break}case State$5.CDATA_SECTION:{this._stateCdataSection(ed);break}case State$5.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(ed);break}case State$5.CDATA_SECTION_END:{this._stateCdataSectionEnd(ed);break}case State$5.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case State$5.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(ed);break}default:throw new Error("Unknown state")}}_stateData(ed){switch(ed){case CODE_POINTS.LESS_THAN_SIGN:{this.state=State$5.TAG_OPEN;break}case CODE_POINTS.AMPERSAND:{this._startCharacterReference();break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this._emitCodePoint(ed);break}case CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(ed)}}_stateRcdata(ed){switch(ed){case CODE_POINTS.AMPERSAND:{this._startCharacterReference();break}case CODE_POINTS.LESS_THAN_SIGN:{this.state=State$5.RCDATA_LESS_THAN_SIGN;break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this._emitChars(REPLACEMENT_CHARACTER);break}case CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(ed)}}_stateRawtext(ed){switch(ed){case CODE_POINTS.LESS_THAN_SIGN:{this.state=State$5.RAWTEXT_LESS_THAN_SIGN;break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this._emitChars(REPLACEMENT_CHARACTER);break}case CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(ed)}}_stateScriptData(ed){switch(ed){case CODE_POINTS.LESS_THAN_SIGN:{this.state=State$5.SCRIPT_DATA_LESS_THAN_SIGN;break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this._emitChars(REPLACEMENT_CHARACTER);break}case CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(ed)}}_statePlaintext(ed){switch(ed){case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this._emitChars(REPLACEMENT_CHARACTER);break}case CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(ed)}}_stateTagOpen(ed){if(isAsciiLetter(ed))this._createStartTagToken(),this.state=State$5.TAG_NAME,this._stateTagName(ed);else switch(ed){case CODE_POINTS.EXCLAMATION_MARK:{this.state=State$5.MARKUP_DECLARATION_OPEN;break}case CODE_POINTS.SOLIDUS:{this.state=State$5.END_TAG_OPEN;break}case CODE_POINTS.QUESTION_MARK:{this._err(ERR.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=State$5.BOGUS_COMMENT,this._stateBogusComment(ed);break}case CODE_POINTS.EOF:{this._err(ERR.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(ERR.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=State$5.DATA,this._stateData(ed)}}_stateEndTagOpen(ed){if(isAsciiLetter(ed))this._createEndTagToken(),this.state=State$5.TAG_NAME,this._stateTagName(ed);else switch(ed){case CODE_POINTS.GREATER_THAN_SIGN:{this._err(ERR.missingEndTagName),this.state=State$5.DATA;break}case CODE_POINTS.EOF:{this._err(ERR.eofBeforeTagName),this._emitChars("");break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this.state=State$5.SCRIPT_DATA_ESCAPED,this._emitChars(REPLACEMENT_CHARACTER);break}case CODE_POINTS.EOF:{this._err(ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=State$5.SCRIPT_DATA_ESCAPED,this._emitCodePoint(ed)}}_stateScriptDataEscapedLessThanSign(ed){ed===CODE_POINTS.SOLIDUS?this.state=State$5.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:isAsciiLetter(ed)?(this._emitChars("<"),this.state=State$5.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(ed)):(this._emitChars("<"),this.state=State$5.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(ed))}_stateScriptDataEscapedEndTagOpen(ed){isAsciiLetter(ed)?(this.state=State$5.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(ed)):(this._emitChars("");break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this.state=State$5.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(REPLACEMENT_CHARACTER);break}case CODE_POINTS.EOF:{this._err(ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=State$5.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(ed)}}_stateScriptDataDoubleEscapedLessThanSign(ed){ed===CODE_POINTS.SOLIDUS?(this.state=State$5.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=State$5.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(ed))}_stateScriptDataDoubleEscapeEnd(ed){if(this.preprocessor.startsWith(SEQUENCES.SCRIPT,!1)&&isScriptDataDoubleEscapeSequenceEnd(this.preprocessor.peek(SEQUENCES.SCRIPT.length))){this._emitCodePoint(ed);for(let ud=0;ud0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(ed,!0)}replace(ed,ud){const dd=this._indexOf(ed);this.items[dd]=ud,dd===this.stackTop&&(this.current=ud)}insertAfter(ed,ud,dd){const hd=this._indexOf(ed)+1;this.items.splice(hd,0,ud),this.tagIDs.splice(hd,0,dd),this.stackTop++,hd===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,hd===this.stackTop)}popUntilTagNamePopped(ed){let ud=this.stackTop+1;do ud=this.tagIDs.lastIndexOf(ed,ud-1);while(ud>0&&this.treeAdapter.getNamespaceURI(this.items[ud])!==NS.HTML);this.shortenToLength(ud<0?0:ud)}shortenToLength(ed){for(;this.stackTop>=ed;){const ud=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(ud,this.stackTop=0;dd--)if(ed.has(this.tagIDs[dd])&&this.treeAdapter.getNamespaceURI(this.items[dd])===ud)return dd;return-1}clearBackTo(ed,ud){const dd=this._indexOfTagNames(ed,ud);this.shortenToLength(dd+1)}clearBackToTableContext(){this.clearBackTo(TABLE_CONTEXT,NS.HTML)}clearBackToTableBodyContext(){this.clearBackTo(TABLE_BODY_CONTEXT,NS.HTML)}clearBackToTableRowContext(){this.clearBackTo(TABLE_ROW_CONTEXT,NS.HTML)}remove(ed){const ud=this._indexOf(ed);ud>=0&&(ud===this.stackTop?this.pop():(this.items.splice(ud,1),this.tagIDs.splice(ud,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(ed,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===TAG_ID.BODY?this.items[1]:null}contains(ed){return this._indexOf(ed)>-1}getCommonAncestor(ed){const ud=this._indexOf(ed)-1;return ud>=0?this.items[ud]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===TAG_ID.HTML}hasInDynamicScope(ed,ud){for(let dd=this.stackTop;dd>=0;dd--){const hd=this.tagIDs[dd];switch(this.treeAdapter.getNamespaceURI(this.items[dd])){case NS.HTML:{if(hd===ed)return!0;if(ud.has(hd))return!1;break}case NS.SVG:{if(SCOPING_ELEMENTS_SVG.has(hd))return!1;break}case NS.MATHML:{if(SCOPING_ELEMENTS_MATHML.has(hd))return!1;break}}}return!0}hasInScope(ed){return this.hasInDynamicScope(ed,SCOPING_ELEMENTS_HTML)}hasInListItemScope(ed){return this.hasInDynamicScope(ed,SCOPING_ELEMENTS_HTML_LIST)}hasInButtonScope(ed){return this.hasInDynamicScope(ed,SCOPING_ELEMENTS_HTML_BUTTON)}hasNumberedHeaderInScope(){for(let ed=this.stackTop;ed>=0;ed--){const ud=this.tagIDs[ed];switch(this.treeAdapter.getNamespaceURI(this.items[ed])){case NS.HTML:{if(NUMBERED_HEADERS.has(ud))return!0;if(SCOPING_ELEMENTS_HTML.has(ud))return!1;break}case NS.SVG:{if(SCOPING_ELEMENTS_SVG.has(ud))return!1;break}case NS.MATHML:{if(SCOPING_ELEMENTS_MATHML.has(ud))return!1;break}}}return!0}hasInTableScope(ed){for(let ud=this.stackTop;ud>=0;ud--)if(this.treeAdapter.getNamespaceURI(this.items[ud])===NS.HTML)switch(this.tagIDs[ud]){case ed:return!0;case TAG_ID.TABLE:case TAG_ID.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let ed=this.stackTop;ed>=0;ed--)if(this.treeAdapter.getNamespaceURI(this.items[ed])===NS.HTML)switch(this.tagIDs[ed]){case TAG_ID.TBODY:case TAG_ID.THEAD:case TAG_ID.TFOOT:return!0;case TAG_ID.TABLE:case TAG_ID.HTML:return!1}return!0}hasInSelectScope(ed){for(let ud=this.stackTop;ud>=0;ud--)if(this.treeAdapter.getNamespaceURI(this.items[ud])===NS.HTML)switch(this.tagIDs[ud]){case ed:return!0;case TAG_ID.OPTION:case TAG_ID.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;IMPLICIT_END_TAG_REQUIRED.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;IMPLICIT_END_TAG_REQUIRED_THOROUGHLY.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(ed){for(;this.currentTagId!==ed&&IMPLICIT_END_TAG_REQUIRED_THOROUGHLY.has(this.currentTagId);)this.pop()}}const NOAH_ARK_CAPACITY=3;var EntryType;(function(Ra){Ra[Ra.Marker=0]="Marker",Ra[Ra.Element=1]="Element"})(EntryType||(EntryType={}));const MARKER={type:EntryType.Marker};class FormattingElementList{constructor(ed){this.treeAdapter=ed,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(ed,ud){const dd=[],hd=ud.length,md=this.treeAdapter.getTagName(ed),gd=this.treeAdapter.getNamespaceURI(ed);for(let yd=0;yd[gd.name,gd.value]));let md=0;for(let gd=0;gdhd.get(vd.name)===vd.value)&&(md+=1,md>=NOAH_ARK_CAPACITY&&this.entries.splice(yd.idx,1))}}insertMarker(){this.entries.unshift(MARKER)}pushElement(ed,ud){this._ensureNoahArkCondition(ed),this.entries.unshift({type:EntryType.Element,element:ed,token:ud})}insertElementAfterBookmark(ed,ud){const dd=this.entries.indexOf(this.bookmark);this.entries.splice(dd,0,{type:EntryType.Element,element:ed,token:ud})}removeEntry(ed){const ud=this.entries.indexOf(ed);ud>=0&&this.entries.splice(ud,1)}clearToLastMarker(){const ed=this.entries.indexOf(MARKER);ed>=0?this.entries.splice(0,ed+1):this.entries.length=0}getElementEntryInScopeWithTagName(ed){const ud=this.entries.find(dd=>dd.type===EntryType.Marker||this.treeAdapter.getTagName(dd.element)===ed);return ud&&ud.type===EntryType.Element?ud:null}getElementEntry(ed){return this.entries.find(ud=>ud.type===EntryType.Element&&ud.element===ed)}}const defaultTreeAdapter={createDocument(){return{nodeName:"#document",mode:DOCUMENT_MODE.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(Ra,ed,ud){return{nodeName:Ra,tagName:Ra,attrs:ud,namespaceURI:ed,childNodes:[],parentNode:null}},createCommentNode(Ra){return{nodeName:"#comment",data:Ra,parentNode:null}},createTextNode(Ra){return{nodeName:"#text",value:Ra,parentNode:null}},appendChild(Ra,ed){Ra.childNodes.push(ed),ed.parentNode=Ra},insertBefore(Ra,ed,ud){const dd=Ra.childNodes.indexOf(ud);Ra.childNodes.splice(dd,0,ed),ed.parentNode=Ra},setTemplateContent(Ra,ed){Ra.content=ed},getTemplateContent(Ra){return Ra.content},setDocumentType(Ra,ed,ud,dd){const hd=Ra.childNodes.find(md=>md.nodeName==="#documentType");if(hd)hd.name=ed,hd.publicId=ud,hd.systemId=dd;else{const md={nodeName:"#documentType",name:ed,publicId:ud,systemId:dd,parentNode:null};defaultTreeAdapter.appendChild(Ra,md)}},setDocumentMode(Ra,ed){Ra.mode=ed},getDocumentMode(Ra){return Ra.mode},detachNode(Ra){if(Ra.parentNode){const ed=Ra.parentNode.childNodes.indexOf(Ra);Ra.parentNode.childNodes.splice(ed,1),Ra.parentNode=null}},insertText(Ra,ed){if(Ra.childNodes.length>0){const ud=Ra.childNodes[Ra.childNodes.length-1];if(defaultTreeAdapter.isTextNode(ud)){ud.value+=ed;return}}defaultTreeAdapter.appendChild(Ra,defaultTreeAdapter.createTextNode(ed))},insertTextBefore(Ra,ed,ud){const dd=Ra.childNodes[Ra.childNodes.indexOf(ud)-1];dd&&defaultTreeAdapter.isTextNode(dd)?dd.value+=ed:defaultTreeAdapter.insertBefore(Ra,defaultTreeAdapter.createTextNode(ed),ud)},adoptAttributes(Ra,ed){const ud=new Set(Ra.attrs.map(dd=>dd.name));for(let dd=0;ddRa.startsWith(ud))}function isConforming(Ra){return Ra.name===VALID_DOCTYPE_NAME&&Ra.publicId===null&&(Ra.systemId===null||Ra.systemId===VALID_SYSTEM_ID)}function getDocumentMode(Ra){if(Ra.name!==VALID_DOCTYPE_NAME)return DOCUMENT_MODE.QUIRKS;const{systemId:ed}=Ra;if(ed&&ed.toLowerCase()===QUIRKS_MODE_SYSTEM_ID)return DOCUMENT_MODE.QUIRKS;let{publicId:ud}=Ra;if(ud!==null){if(ud=ud.toLowerCase(),QUIRKS_MODE_PUBLIC_IDS.has(ud))return DOCUMENT_MODE.QUIRKS;let dd=ed===null?QUIRKS_MODE_NO_SYSTEM_ID_PUBLIC_ID_PREFIXES:QUIRKS_MODE_PUBLIC_ID_PREFIXES;if(hasPrefix(ud,dd))return DOCUMENT_MODE.QUIRKS;if(dd=ed===null?LIMITED_QUIRKS_PUBLIC_ID_PREFIXES:LIMITED_QUIRKS_WITH_SYSTEM_ID_PUBLIC_ID_PREFIXES,hasPrefix(ud,dd))return DOCUMENT_MODE.LIMITED_QUIRKS}return DOCUMENT_MODE.NO_QUIRKS}const MIME_TYPES={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},DEFINITION_URL_ATTR="definitionurl",ADJUSTED_DEFINITION_URL_ATTR="definitionURL",SVG_ATTRS_ADJUSTMENT_MAP=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(Ra=>[Ra.toLowerCase(),Ra])),XML_ATTRS_ADJUSTMENT_MAP=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:NS.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:NS.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:NS.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:NS.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:NS.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:NS.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:NS.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:NS.XML}],["xml:space",{prefix:"xml",name:"space",namespace:NS.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:NS.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:NS.XMLNS}]]),SVG_TAG_NAMES_ADJUSTMENT_MAP=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(Ra=>[Ra.toLowerCase(),Ra])),EXITS_FOREIGN_CONTENT=new Set([TAG_ID.B,TAG_ID.BIG,TAG_ID.BLOCKQUOTE,TAG_ID.BODY,TAG_ID.BR,TAG_ID.CENTER,TAG_ID.CODE,TAG_ID.DD,TAG_ID.DIV,TAG_ID.DL,TAG_ID.DT,TAG_ID.EM,TAG_ID.EMBED,TAG_ID.H1,TAG_ID.H2,TAG_ID.H3,TAG_ID.H4,TAG_ID.H5,TAG_ID.H6,TAG_ID.HEAD,TAG_ID.HR,TAG_ID.I,TAG_ID.IMG,TAG_ID.LI,TAG_ID.LISTING,TAG_ID.MENU,TAG_ID.META,TAG_ID.NOBR,TAG_ID.OL,TAG_ID.P,TAG_ID.PRE,TAG_ID.RUBY,TAG_ID.S,TAG_ID.SMALL,TAG_ID.SPAN,TAG_ID.STRONG,TAG_ID.STRIKE,TAG_ID.SUB,TAG_ID.SUP,TAG_ID.TABLE,TAG_ID.TT,TAG_ID.U,TAG_ID.UL,TAG_ID.VAR]);function causesExit(Ra){const ed=Ra.tagID;return ed===TAG_ID.FONT&&Ra.attrs.some(({name:dd})=>dd===ATTRS.COLOR||dd===ATTRS.SIZE||dd===ATTRS.FACE)||EXITS_FOREIGN_CONTENT.has(ed)}function adjustTokenMathMLAttrs(Ra){for(let ed=0;ed0&&this._setContextModes(ed,ud)}onItemPop(ed,ud){var dd,hd;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(ed,this.currentToken),(hd=(dd=this.treeAdapter).onItemPop)===null||hd===void 0||hd.call(dd,ed,this.openElements.current),ud){let md,gd;this.openElements.stackTop===0&&this.fragmentContext?(md=this.fragmentContext,gd=this.fragmentContextID):{current:md,currentTagId:gd}=this.openElements,this._setContextModes(md,gd)}}_setContextModes(ed,ud){const dd=ed===this.document||this.treeAdapter.getNamespaceURI(ed)===NS.HTML;this.currentNotInHTML=!dd,this.tokenizer.inForeignNode=!dd&&!this._isIntegrationPoint(ud,ed)}_switchToTextParsing(ed,ud){this._insertElement(ed,NS.HTML),this.tokenizer.state=ud,this.originalInsertionMode=this.insertionMode,this.insertionMode=InsertionMode.TEXT}switchToPlaintextParsing(){this.insertionMode=InsertionMode.TEXT,this.originalInsertionMode=InsertionMode.IN_BODY,this.tokenizer.state=TokenizerMode.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let ed=this.fragmentContext;for(;ed;){if(this.treeAdapter.getTagName(ed)===TAG_NAMES.FORM){this.formElement=ed;break}ed=this.treeAdapter.getParentNode(ed)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==NS.HTML))switch(this.fragmentContextID){case TAG_ID.TITLE:case TAG_ID.TEXTAREA:{this.tokenizer.state=TokenizerMode.RCDATA;break}case TAG_ID.STYLE:case TAG_ID.XMP:case TAG_ID.IFRAME:case TAG_ID.NOEMBED:case TAG_ID.NOFRAMES:case TAG_ID.NOSCRIPT:{this.tokenizer.state=TokenizerMode.RAWTEXT;break}case TAG_ID.SCRIPT:{this.tokenizer.state=TokenizerMode.SCRIPT_DATA;break}case TAG_ID.PLAINTEXT:{this.tokenizer.state=TokenizerMode.PLAINTEXT;break}}}_setDocumentType(ed){const ud=ed.name||"",dd=ed.publicId||"",hd=ed.systemId||"";if(this.treeAdapter.setDocumentType(this.document,ud,dd,hd),ed.location){const gd=this.treeAdapter.getChildNodes(this.document).find(yd=>this.treeAdapter.isDocumentTypeNode(yd));gd&&this.treeAdapter.setNodeSourceCodeLocation(gd,ed.location)}}_attachElementToTree(ed,ud){if(this.options.sourceCodeLocationInfo){const dd=ud&&{...ud,startTag:ud};this.treeAdapter.setNodeSourceCodeLocation(ed,dd)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(ed);else{const dd=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(dd,ed)}}_appendElement(ed,ud){const dd=this.treeAdapter.createElement(ed.tagName,ud,ed.attrs);this._attachElementToTree(dd,ed.location)}_insertElement(ed,ud){const dd=this.treeAdapter.createElement(ed.tagName,ud,ed.attrs);this._attachElementToTree(dd,ed.location),this.openElements.push(dd,ed.tagID)}_insertFakeElement(ed,ud){const dd=this.treeAdapter.createElement(ed,NS.HTML,[]);this._attachElementToTree(dd,null),this.openElements.push(dd,ud)}_insertTemplate(ed){const ud=this.treeAdapter.createElement(ed.tagName,NS.HTML,ed.attrs),dd=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(ud,dd),this._attachElementToTree(ud,ed.location),this.openElements.push(ud,ed.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(dd,null)}_insertFakeRootElement(){const ed=this.treeAdapter.createElement(TAG_NAMES.HTML,NS.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(ed,null),this.treeAdapter.appendChild(this.openElements.current,ed),this.openElements.push(ed,TAG_ID.HTML)}_appendCommentNode(ed,ud){const dd=this.treeAdapter.createCommentNode(ed.data);this.treeAdapter.appendChild(ud,dd),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(dd,ed.location)}_insertCharacters(ed){let ud,dd;if(this._shouldFosterParentOnInsertion()?({parent:ud,beforeElement:dd}=this._findFosterParentingLocation(),dd?this.treeAdapter.insertTextBefore(ud,ed.chars,dd):this.treeAdapter.insertText(ud,ed.chars)):(ud=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(ud,ed.chars)),!ed.location)return;const hd=this.treeAdapter.getChildNodes(ud),md=dd?hd.lastIndexOf(dd):hd.length,gd=hd[md-1];if(this.treeAdapter.getNodeSourceCodeLocation(gd)){const{endLine:vd,endCol:Cd,endOffset:wd}=ed.location;this.treeAdapter.updateNodeSourceCodeLocation(gd,{endLine:vd,endCol:Cd,endOffset:wd})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(gd,ed.location)}_adoptNodes(ed,ud){for(let dd=this.treeAdapter.getFirstChild(ed);dd;dd=this.treeAdapter.getFirstChild(ed))this.treeAdapter.detachNode(dd),this.treeAdapter.appendChild(ud,dd)}_setEndLocation(ed,ud){if(this.treeAdapter.getNodeSourceCodeLocation(ed)&&ud.location){const dd=ud.location,hd=this.treeAdapter.getTagName(ed),md=ud.type===TokenType.END_TAG&&hd===ud.tagName?{endTag:{...dd},endLine:dd.endLine,endCol:dd.endCol,endOffset:dd.endOffset}:{endLine:dd.startLine,endCol:dd.startCol,endOffset:dd.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(ed,md)}}shouldProcessStartTagTokenInForeignContent(ed){if(!this.currentNotInHTML)return!1;let ud,dd;return this.openElements.stackTop===0&&this.fragmentContext?(ud=this.fragmentContext,dd=this.fragmentContextID):{current:ud,currentTagId:dd}=this.openElements,ed.tagID===TAG_ID.SVG&&this.treeAdapter.getTagName(ud)===TAG_NAMES.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(ud)===NS.MATHML?!1:this.tokenizer.inForeignNode||(ed.tagID===TAG_ID.MGLYPH||ed.tagID===TAG_ID.MALIGNMARK)&&!this._isIntegrationPoint(dd,ud,NS.HTML)}_processToken(ed){switch(ed.type){case TokenType.CHARACTER:{this.onCharacter(ed);break}case TokenType.NULL_CHARACTER:{this.onNullCharacter(ed);break}case TokenType.COMMENT:{this.onComment(ed);break}case TokenType.DOCTYPE:{this.onDoctype(ed);break}case TokenType.START_TAG:{this._processStartTag(ed);break}case TokenType.END_TAG:{this.onEndTag(ed);break}case TokenType.EOF:{this.onEof(ed);break}case TokenType.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(ed);break}}}_isIntegrationPoint(ed,ud,dd){const hd=this.treeAdapter.getNamespaceURI(ud),md=this.treeAdapter.getAttrList(ud);return isIntegrationPoint(ed,hd,md,dd)}_reconstructActiveFormattingElements(){const ed=this.activeFormattingElements.entries.length;if(ed){const ud=this.activeFormattingElements.entries.findIndex(hd=>hd.type===EntryType.Marker||this.openElements.contains(hd.element)),dd=ud<0?ed-1:ud-1;for(let hd=dd;hd>=0;hd--){const md=this.activeFormattingElements.entries[hd];this._insertElement(md.token,this.treeAdapter.getNamespaceURI(md.element)),md.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=InsertionMode.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(TAG_ID.P),this.openElements.popUntilTagNamePopped(TAG_ID.P)}_resetInsertionMode(){for(let ed=this.openElements.stackTop;ed>=0;ed--)switch(ed===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[ed]){case TAG_ID.TR:{this.insertionMode=InsertionMode.IN_ROW;return}case TAG_ID.TBODY:case TAG_ID.THEAD:case TAG_ID.TFOOT:{this.insertionMode=InsertionMode.IN_TABLE_BODY;return}case TAG_ID.CAPTION:{this.insertionMode=InsertionMode.IN_CAPTION;return}case TAG_ID.COLGROUP:{this.insertionMode=InsertionMode.IN_COLUMN_GROUP;return}case TAG_ID.TABLE:{this.insertionMode=InsertionMode.IN_TABLE;return}case TAG_ID.BODY:{this.insertionMode=InsertionMode.IN_BODY;return}case TAG_ID.FRAMESET:{this.insertionMode=InsertionMode.IN_FRAMESET;return}case TAG_ID.SELECT:{this._resetInsertionModeForSelect(ed);return}case TAG_ID.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case TAG_ID.HTML:{this.insertionMode=this.headElement?InsertionMode.AFTER_HEAD:InsertionMode.BEFORE_HEAD;return}case TAG_ID.TD:case TAG_ID.TH:{if(ed>0){this.insertionMode=InsertionMode.IN_CELL;return}break}case TAG_ID.HEAD:{if(ed>0){this.insertionMode=InsertionMode.IN_HEAD;return}break}}this.insertionMode=InsertionMode.IN_BODY}_resetInsertionModeForSelect(ed){if(ed>0)for(let ud=ed-1;ud>0;ud--){const dd=this.openElements.tagIDs[ud];if(dd===TAG_ID.TEMPLATE)break;if(dd===TAG_ID.TABLE){this.insertionMode=InsertionMode.IN_SELECT_IN_TABLE;return}}this.insertionMode=InsertionMode.IN_SELECT}_isElementCausesFosterParenting(ed){return TABLE_STRUCTURE_TAGS.has(ed)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let ed=this.openElements.stackTop;ed>=0;ed--){const ud=this.openElements.items[ed];switch(this.openElements.tagIDs[ed]){case TAG_ID.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(ud)===NS.HTML)return{parent:this.treeAdapter.getTemplateContent(ud),beforeElement:null};break}case TAG_ID.TABLE:{const dd=this.treeAdapter.getParentNode(ud);return dd?{parent:dd,beforeElement:ud}:{parent:this.openElements.items[ed-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(ed){const ud=this._findFosterParentingLocation();ud.beforeElement?this.treeAdapter.insertBefore(ud.parent,ed,ud.beforeElement):this.treeAdapter.appendChild(ud.parent,ed)}_isSpecialElement(ed,ud){const dd=this.treeAdapter.getNamespaceURI(ed);return SPECIAL_ELEMENTS[dd].has(ud)}onCharacter(ed){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){characterInForeignContent(this,ed);return}switch(this.insertionMode){case InsertionMode.INITIAL:{tokenInInitialMode(this,ed);break}case InsertionMode.BEFORE_HTML:{tokenBeforeHtml(this,ed);break}case InsertionMode.BEFORE_HEAD:{tokenBeforeHead(this,ed);break}case InsertionMode.IN_HEAD:{tokenInHead(this,ed);break}case InsertionMode.IN_HEAD_NO_SCRIPT:{tokenInHeadNoScript(this,ed);break}case InsertionMode.AFTER_HEAD:{tokenAfterHead(this,ed);break}case InsertionMode.IN_BODY:case InsertionMode.IN_CAPTION:case InsertionMode.IN_CELL:case InsertionMode.IN_TEMPLATE:{characterInBody(this,ed);break}case InsertionMode.TEXT:case InsertionMode.IN_SELECT:case InsertionMode.IN_SELECT_IN_TABLE:{this._insertCharacters(ed);break}case InsertionMode.IN_TABLE:case InsertionMode.IN_TABLE_BODY:case InsertionMode.IN_ROW:{characterInTable(this,ed);break}case InsertionMode.IN_TABLE_TEXT:{characterInTableText(this,ed);break}case InsertionMode.IN_COLUMN_GROUP:{tokenInColumnGroup(this,ed);break}case InsertionMode.AFTER_BODY:{tokenAfterBody(this,ed);break}case InsertionMode.AFTER_AFTER_BODY:{tokenAfterAfterBody(this,ed);break}}}onNullCharacter(ed){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){nullCharacterInForeignContent(this,ed);return}switch(this.insertionMode){case InsertionMode.INITIAL:{tokenInInitialMode(this,ed);break}case InsertionMode.BEFORE_HTML:{tokenBeforeHtml(this,ed);break}case InsertionMode.BEFORE_HEAD:{tokenBeforeHead(this,ed);break}case InsertionMode.IN_HEAD:{tokenInHead(this,ed);break}case InsertionMode.IN_HEAD_NO_SCRIPT:{tokenInHeadNoScript(this,ed);break}case InsertionMode.AFTER_HEAD:{tokenAfterHead(this,ed);break}case InsertionMode.TEXT:{this._insertCharacters(ed);break}case InsertionMode.IN_TABLE:case InsertionMode.IN_TABLE_BODY:case InsertionMode.IN_ROW:{characterInTable(this,ed);break}case InsertionMode.IN_COLUMN_GROUP:{tokenInColumnGroup(this,ed);break}case InsertionMode.AFTER_BODY:{tokenAfterBody(this,ed);break}case InsertionMode.AFTER_AFTER_BODY:{tokenAfterAfterBody(this,ed);break}}}onComment(ed){if(this.skipNextNewLine=!1,this.currentNotInHTML){appendComment(this,ed);return}switch(this.insertionMode){case InsertionMode.INITIAL:case InsertionMode.BEFORE_HTML:case InsertionMode.BEFORE_HEAD:case InsertionMode.IN_HEAD:case InsertionMode.IN_HEAD_NO_SCRIPT:case InsertionMode.AFTER_HEAD:case InsertionMode.IN_BODY:case InsertionMode.IN_TABLE:case InsertionMode.IN_CAPTION:case InsertionMode.IN_COLUMN_GROUP:case InsertionMode.IN_TABLE_BODY:case InsertionMode.IN_ROW:case InsertionMode.IN_CELL:case InsertionMode.IN_SELECT:case InsertionMode.IN_SELECT_IN_TABLE:case InsertionMode.IN_TEMPLATE:case InsertionMode.IN_FRAMESET:case InsertionMode.AFTER_FRAMESET:{appendComment(this,ed);break}case InsertionMode.IN_TABLE_TEXT:{tokenInTableText(this,ed);break}case InsertionMode.AFTER_BODY:{appendCommentToRootHtmlElement(this,ed);break}case InsertionMode.AFTER_AFTER_BODY:case InsertionMode.AFTER_AFTER_FRAMESET:{appendCommentToDocument(this,ed);break}}}onDoctype(ed){switch(this.skipNextNewLine=!1,this.insertionMode){case InsertionMode.INITIAL:{doctypeInInitialMode(this,ed);break}case InsertionMode.BEFORE_HEAD:case InsertionMode.IN_HEAD:case InsertionMode.IN_HEAD_NO_SCRIPT:case InsertionMode.AFTER_HEAD:{this._err(ed,ERR.misplacedDoctype);break}case InsertionMode.IN_TABLE_TEXT:{tokenInTableText(this,ed);break}}}onStartTag(ed){this.skipNextNewLine=!1,this.currentToken=ed,this._processStartTag(ed),ed.selfClosing&&!ed.ackSelfClosing&&this._err(ed,ERR.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(ed){this.shouldProcessStartTagTokenInForeignContent(ed)?startTagInForeignContent(this,ed):this._startTagOutsideForeignContent(ed)}_startTagOutsideForeignContent(ed){switch(this.insertionMode){case InsertionMode.INITIAL:{tokenInInitialMode(this,ed);break}case InsertionMode.BEFORE_HTML:{startTagBeforeHtml(this,ed);break}case InsertionMode.BEFORE_HEAD:{startTagBeforeHead(this,ed);break}case InsertionMode.IN_HEAD:{startTagInHead(this,ed);break}case InsertionMode.IN_HEAD_NO_SCRIPT:{startTagInHeadNoScript(this,ed);break}case InsertionMode.AFTER_HEAD:{startTagAfterHead(this,ed);break}case InsertionMode.IN_BODY:{startTagInBody(this,ed);break}case InsertionMode.IN_TABLE:{startTagInTable(this,ed);break}case InsertionMode.IN_TABLE_TEXT:{tokenInTableText(this,ed);break}case InsertionMode.IN_CAPTION:{startTagInCaption(this,ed);break}case InsertionMode.IN_COLUMN_GROUP:{startTagInColumnGroup(this,ed);break}case InsertionMode.IN_TABLE_BODY:{startTagInTableBody(this,ed);break}case InsertionMode.IN_ROW:{startTagInRow(this,ed);break}case InsertionMode.IN_CELL:{startTagInCell(this,ed);break}case InsertionMode.IN_SELECT:{startTagInSelect(this,ed);break}case InsertionMode.IN_SELECT_IN_TABLE:{startTagInSelectInTable(this,ed);break}case InsertionMode.IN_TEMPLATE:{startTagInTemplate(this,ed);break}case InsertionMode.AFTER_BODY:{startTagAfterBody(this,ed);break}case InsertionMode.IN_FRAMESET:{startTagInFrameset(this,ed);break}case InsertionMode.AFTER_FRAMESET:{startTagAfterFrameset(this,ed);break}case InsertionMode.AFTER_AFTER_BODY:{startTagAfterAfterBody(this,ed);break}case InsertionMode.AFTER_AFTER_FRAMESET:{startTagAfterAfterFrameset(this,ed);break}}}onEndTag(ed){this.skipNextNewLine=!1,this.currentToken=ed,this.currentNotInHTML?endTagInForeignContent(this,ed):this._endTagOutsideForeignContent(ed)}_endTagOutsideForeignContent(ed){switch(this.insertionMode){case InsertionMode.INITIAL:{tokenInInitialMode(this,ed);break}case InsertionMode.BEFORE_HTML:{endTagBeforeHtml(this,ed);break}case InsertionMode.BEFORE_HEAD:{endTagBeforeHead(this,ed);break}case InsertionMode.IN_HEAD:{endTagInHead(this,ed);break}case InsertionMode.IN_HEAD_NO_SCRIPT:{endTagInHeadNoScript(this,ed);break}case InsertionMode.AFTER_HEAD:{endTagAfterHead(this,ed);break}case InsertionMode.IN_BODY:{endTagInBody(this,ed);break}case InsertionMode.TEXT:{endTagInText(this,ed);break}case InsertionMode.IN_TABLE:{endTagInTable(this,ed);break}case InsertionMode.IN_TABLE_TEXT:{tokenInTableText(this,ed);break}case InsertionMode.IN_CAPTION:{endTagInCaption(this,ed);break}case InsertionMode.IN_COLUMN_GROUP:{endTagInColumnGroup(this,ed);break}case InsertionMode.IN_TABLE_BODY:{endTagInTableBody(this,ed);break}case InsertionMode.IN_ROW:{endTagInRow(this,ed);break}case InsertionMode.IN_CELL:{endTagInCell(this,ed);break}case InsertionMode.IN_SELECT:{endTagInSelect(this,ed);break}case InsertionMode.IN_SELECT_IN_TABLE:{endTagInSelectInTable(this,ed);break}case InsertionMode.IN_TEMPLATE:{endTagInTemplate(this,ed);break}case InsertionMode.AFTER_BODY:{endTagAfterBody(this,ed);break}case InsertionMode.IN_FRAMESET:{endTagInFrameset(this,ed);break}case InsertionMode.AFTER_FRAMESET:{endTagAfterFrameset(this,ed);break}case InsertionMode.AFTER_AFTER_BODY:{tokenAfterAfterBody(this,ed);break}}}onEof(ed){switch(this.insertionMode){case InsertionMode.INITIAL:{tokenInInitialMode(this,ed);break}case InsertionMode.BEFORE_HTML:{tokenBeforeHtml(this,ed);break}case InsertionMode.BEFORE_HEAD:{tokenBeforeHead(this,ed);break}case InsertionMode.IN_HEAD:{tokenInHead(this,ed);break}case InsertionMode.IN_HEAD_NO_SCRIPT:{tokenInHeadNoScript(this,ed);break}case InsertionMode.AFTER_HEAD:{tokenAfterHead(this,ed);break}case InsertionMode.IN_BODY:case InsertionMode.IN_TABLE:case InsertionMode.IN_CAPTION:case InsertionMode.IN_COLUMN_GROUP:case InsertionMode.IN_TABLE_BODY:case InsertionMode.IN_ROW:case InsertionMode.IN_CELL:case InsertionMode.IN_SELECT:case InsertionMode.IN_SELECT_IN_TABLE:{eofInBody(this,ed);break}case InsertionMode.TEXT:{eofInText(this,ed);break}case InsertionMode.IN_TABLE_TEXT:{tokenInTableText(this,ed);break}case InsertionMode.IN_TEMPLATE:{eofInTemplate(this,ed);break}case InsertionMode.AFTER_BODY:case InsertionMode.IN_FRAMESET:case InsertionMode.AFTER_FRAMESET:case InsertionMode.AFTER_AFTER_BODY:case InsertionMode.AFTER_AFTER_FRAMESET:{stopParsing(this,ed);break}}}onWhitespaceCharacter(ed){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,ed.chars.charCodeAt(0)===CODE_POINTS.LINE_FEED)){if(ed.chars.length===1)return;ed.chars=ed.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(ed);return}switch(this.insertionMode){case InsertionMode.IN_HEAD:case InsertionMode.IN_HEAD_NO_SCRIPT:case InsertionMode.AFTER_HEAD:case InsertionMode.TEXT:case InsertionMode.IN_COLUMN_GROUP:case InsertionMode.IN_SELECT:case InsertionMode.IN_SELECT_IN_TABLE:case InsertionMode.IN_FRAMESET:case InsertionMode.AFTER_FRAMESET:{this._insertCharacters(ed);break}case InsertionMode.IN_BODY:case InsertionMode.IN_CAPTION:case InsertionMode.IN_CELL:case InsertionMode.IN_TEMPLATE:case InsertionMode.AFTER_BODY:case InsertionMode.AFTER_AFTER_BODY:case InsertionMode.AFTER_AFTER_FRAMESET:{whitespaceCharacterInBody(this,ed);break}case InsertionMode.IN_TABLE:case InsertionMode.IN_TABLE_BODY:case InsertionMode.IN_ROW:{characterInTable(this,ed);break}case InsertionMode.IN_TABLE_TEXT:{whitespaceCharacterInTableText(this,ed);break}}}};function aaObtainFormattingElementEntry(Ra,ed){let ud=Ra.activeFormattingElements.getElementEntryInScopeWithTagName(ed.tagName);return ud?Ra.openElements.contains(ud.element)?Ra.openElements.hasInScope(ed.tagID)||(ud=null):(Ra.activeFormattingElements.removeEntry(ud),ud=null):genericEndTagInBody(Ra,ed),ud}function aaObtainFurthestBlock(Ra,ed){let ud=null,dd=Ra.openElements.stackTop;for(;dd>=0;dd--){const hd=Ra.openElements.items[dd];if(hd===ed.element)break;Ra._isSpecialElement(hd,Ra.openElements.tagIDs[dd])&&(ud=hd)}return ud||(Ra.openElements.shortenToLength(dd<0?0:dd),Ra.activeFormattingElements.removeEntry(ed)),ud}function aaInnerLoop(Ra,ed,ud){let dd=ed,hd=Ra.openElements.getCommonAncestor(ed);for(let md=0,gd=hd;gd!==ud;md++,gd=hd){hd=Ra.openElements.getCommonAncestor(gd);const yd=Ra.activeFormattingElements.getElementEntry(gd),vd=yd&&md>=AA_INNER_LOOP_ITER;!yd||vd?(vd&&Ra.activeFormattingElements.removeEntry(yd),Ra.openElements.remove(gd)):(gd=aaRecreateElementFromEntry(Ra,yd),dd===ed&&(Ra.activeFormattingElements.bookmark=yd),Ra.treeAdapter.detachNode(dd),Ra.treeAdapter.appendChild(gd,dd),dd=gd)}return dd}function aaRecreateElementFromEntry(Ra,ed){const ud=Ra.treeAdapter.getNamespaceURI(ed.element),dd=Ra.treeAdapter.createElement(ed.token.tagName,ud,ed.token.attrs);return Ra.openElements.replace(ed.element,dd),ed.element=dd,dd}function aaInsertLastNodeInCommonAncestor(Ra,ed,ud){const dd=Ra.treeAdapter.getTagName(ed),hd=getTagID(dd);if(Ra._isElementCausesFosterParenting(hd))Ra._fosterParentElement(ud);else{const md=Ra.treeAdapter.getNamespaceURI(ed);hd===TAG_ID.TEMPLATE&&md===NS.HTML&&(ed=Ra.treeAdapter.getTemplateContent(ed)),Ra.treeAdapter.appendChild(ed,ud)}}function aaReplaceFormattingElement(Ra,ed,ud){const dd=Ra.treeAdapter.getNamespaceURI(ud.element),{token:hd}=ud,md=Ra.treeAdapter.createElement(hd.tagName,dd,hd.attrs);Ra._adoptNodes(ed,md),Ra.treeAdapter.appendChild(ed,md),Ra.activeFormattingElements.insertElementAfterBookmark(md,hd),Ra.activeFormattingElements.removeEntry(ud),Ra.openElements.remove(ud.element),Ra.openElements.insertAfter(ed,md,hd.tagID)}function callAdoptionAgency(Ra,ed){for(let ud=0;ud=ud;dd--)Ra._setEndLocation(Ra.openElements.items[dd],ed);if(!Ra.fragmentContext&&Ra.openElements.stackTop>=0){const dd=Ra.openElements.items[0],hd=Ra.treeAdapter.getNodeSourceCodeLocation(dd);if(hd&&!hd.endTag&&(Ra._setEndLocation(dd,ed),Ra.openElements.stackTop>=1)){const md=Ra.openElements.items[1],gd=Ra.treeAdapter.getNodeSourceCodeLocation(md);gd&&!gd.endTag&&Ra._setEndLocation(md,ed)}}}}function doctypeInInitialMode(Ra,ed){Ra._setDocumentType(ed);const ud=ed.forceQuirks?DOCUMENT_MODE.QUIRKS:getDocumentMode(ed);isConforming(ed)||Ra._err(ed,ERR.nonConformingDoctype),Ra.treeAdapter.setDocumentMode(Ra.document,ud),Ra.insertionMode=InsertionMode.BEFORE_HTML}function tokenInInitialMode(Ra,ed){Ra._err(ed,ERR.missingDoctype,!0),Ra.treeAdapter.setDocumentMode(Ra.document,DOCUMENT_MODE.QUIRKS),Ra.insertionMode=InsertionMode.BEFORE_HTML,Ra._processToken(ed)}function startTagBeforeHtml(Ra,ed){ed.tagID===TAG_ID.HTML?(Ra._insertElement(ed,NS.HTML),Ra.insertionMode=InsertionMode.BEFORE_HEAD):tokenBeforeHtml(Ra,ed)}function endTagBeforeHtml(Ra,ed){const ud=ed.tagID;(ud===TAG_ID.HTML||ud===TAG_ID.HEAD||ud===TAG_ID.BODY||ud===TAG_ID.BR)&&tokenBeforeHtml(Ra,ed)}function tokenBeforeHtml(Ra,ed){Ra._insertFakeRootElement(),Ra.insertionMode=InsertionMode.BEFORE_HEAD,Ra._processToken(ed)}function startTagBeforeHead(Ra,ed){switch(ed.tagID){case TAG_ID.HTML:{startTagInBody(Ra,ed);break}case TAG_ID.HEAD:{Ra._insertElement(ed,NS.HTML),Ra.headElement=Ra.openElements.current,Ra.insertionMode=InsertionMode.IN_HEAD;break}default:tokenBeforeHead(Ra,ed)}}function endTagBeforeHead(Ra,ed){const ud=ed.tagID;ud===TAG_ID.HEAD||ud===TAG_ID.BODY||ud===TAG_ID.HTML||ud===TAG_ID.BR?tokenBeforeHead(Ra,ed):Ra._err(ed,ERR.endTagWithoutMatchingOpenElement)}function tokenBeforeHead(Ra,ed){Ra._insertFakeElement(TAG_NAMES.HEAD,TAG_ID.HEAD),Ra.headElement=Ra.openElements.current,Ra.insertionMode=InsertionMode.IN_HEAD,Ra._processToken(ed)}function startTagInHead(Ra,ed){switch(ed.tagID){case TAG_ID.HTML:{startTagInBody(Ra,ed);break}case TAG_ID.BASE:case TAG_ID.BASEFONT:case TAG_ID.BGSOUND:case TAG_ID.LINK:case TAG_ID.META:{Ra._appendElement(ed,NS.HTML),ed.ackSelfClosing=!0;break}case TAG_ID.TITLE:{Ra._switchToTextParsing(ed,TokenizerMode.RCDATA);break}case TAG_ID.NOSCRIPT:{Ra.options.scriptingEnabled?Ra._switchToTextParsing(ed,TokenizerMode.RAWTEXT):(Ra._insertElement(ed,NS.HTML),Ra.insertionMode=InsertionMode.IN_HEAD_NO_SCRIPT);break}case TAG_ID.NOFRAMES:case TAG_ID.STYLE:{Ra._switchToTextParsing(ed,TokenizerMode.RAWTEXT);break}case TAG_ID.SCRIPT:{Ra._switchToTextParsing(ed,TokenizerMode.SCRIPT_DATA);break}case TAG_ID.TEMPLATE:{Ra._insertTemplate(ed),Ra.activeFormattingElements.insertMarker(),Ra.framesetOk=!1,Ra.insertionMode=InsertionMode.IN_TEMPLATE,Ra.tmplInsertionModeStack.unshift(InsertionMode.IN_TEMPLATE);break}case TAG_ID.HEAD:{Ra._err(ed,ERR.misplacedStartTagForHeadElement);break}default:tokenInHead(Ra,ed)}}function endTagInHead(Ra,ed){switch(ed.tagID){case TAG_ID.HEAD:{Ra.openElements.pop(),Ra.insertionMode=InsertionMode.AFTER_HEAD;break}case TAG_ID.BODY:case TAG_ID.BR:case TAG_ID.HTML:{tokenInHead(Ra,ed);break}case TAG_ID.TEMPLATE:{templateEndTagInHead(Ra,ed);break}default:Ra._err(ed,ERR.endTagWithoutMatchingOpenElement)}}function templateEndTagInHead(Ra,ed){Ra.openElements.tmplCount>0?(Ra.openElements.generateImpliedEndTagsThoroughly(),Ra.openElements.currentTagId!==TAG_ID.TEMPLATE&&Ra._err(ed,ERR.closingOfElementWithOpenChildElements),Ra.openElements.popUntilTagNamePopped(TAG_ID.TEMPLATE),Ra.activeFormattingElements.clearToLastMarker(),Ra.tmplInsertionModeStack.shift(),Ra._resetInsertionMode()):Ra._err(ed,ERR.endTagWithoutMatchingOpenElement)}function tokenInHead(Ra,ed){Ra.openElements.pop(),Ra.insertionMode=InsertionMode.AFTER_HEAD,Ra._processToken(ed)}function startTagInHeadNoScript(Ra,ed){switch(ed.tagID){case TAG_ID.HTML:{startTagInBody(Ra,ed);break}case TAG_ID.BASEFONT:case TAG_ID.BGSOUND:case TAG_ID.HEAD:case TAG_ID.LINK:case TAG_ID.META:case TAG_ID.NOFRAMES:case TAG_ID.STYLE:{startTagInHead(Ra,ed);break}case TAG_ID.NOSCRIPT:{Ra._err(ed,ERR.nestedNoscriptInHead);break}default:tokenInHeadNoScript(Ra,ed)}}function endTagInHeadNoScript(Ra,ed){switch(ed.tagID){case TAG_ID.NOSCRIPT:{Ra.openElements.pop(),Ra.insertionMode=InsertionMode.IN_HEAD;break}case TAG_ID.BR:{tokenInHeadNoScript(Ra,ed);break}default:Ra._err(ed,ERR.endTagWithoutMatchingOpenElement)}}function tokenInHeadNoScript(Ra,ed){const ud=ed.type===TokenType.EOF?ERR.openElementsLeftAfterEof:ERR.disallowedContentInNoscriptInHead;Ra._err(ed,ud),Ra.openElements.pop(),Ra.insertionMode=InsertionMode.IN_HEAD,Ra._processToken(ed)}function startTagAfterHead(Ra,ed){switch(ed.tagID){case TAG_ID.HTML:{startTagInBody(Ra,ed);break}case TAG_ID.BODY:{Ra._insertElement(ed,NS.HTML),Ra.framesetOk=!1,Ra.insertionMode=InsertionMode.IN_BODY;break}case TAG_ID.FRAMESET:{Ra._insertElement(ed,NS.HTML),Ra.insertionMode=InsertionMode.IN_FRAMESET;break}case TAG_ID.BASE:case TAG_ID.BASEFONT:case TAG_ID.BGSOUND:case TAG_ID.LINK:case TAG_ID.META:case TAG_ID.NOFRAMES:case TAG_ID.SCRIPT:case TAG_ID.STYLE:case TAG_ID.TEMPLATE:case TAG_ID.TITLE:{Ra._err(ed,ERR.abandonedHeadElementChild),Ra.openElements.push(Ra.headElement,TAG_ID.HEAD),startTagInHead(Ra,ed),Ra.openElements.remove(Ra.headElement);break}case TAG_ID.HEAD:{Ra._err(ed,ERR.misplacedStartTagForHeadElement);break}default:tokenAfterHead(Ra,ed)}}function endTagAfterHead(Ra,ed){switch(ed.tagID){case TAG_ID.BODY:case TAG_ID.HTML:case TAG_ID.BR:{tokenAfterHead(Ra,ed);break}case TAG_ID.TEMPLATE:{templateEndTagInHead(Ra,ed);break}default:Ra._err(ed,ERR.endTagWithoutMatchingOpenElement)}}function tokenAfterHead(Ra,ed){Ra._insertFakeElement(TAG_NAMES.BODY,TAG_ID.BODY),Ra.insertionMode=InsertionMode.IN_BODY,modeInBody(Ra,ed)}function modeInBody(Ra,ed){switch(ed.type){case TokenType.CHARACTER:{characterInBody(Ra,ed);break}case TokenType.WHITESPACE_CHARACTER:{whitespaceCharacterInBody(Ra,ed);break}case TokenType.COMMENT:{appendComment(Ra,ed);break}case TokenType.START_TAG:{startTagInBody(Ra,ed);break}case TokenType.END_TAG:{endTagInBody(Ra,ed);break}case TokenType.EOF:{eofInBody(Ra,ed);break}}}function whitespaceCharacterInBody(Ra,ed){Ra._reconstructActiveFormattingElements(),Ra._insertCharacters(ed)}function characterInBody(Ra,ed){Ra._reconstructActiveFormattingElements(),Ra._insertCharacters(ed),Ra.framesetOk=!1}function htmlStartTagInBody(Ra,ed){Ra.openElements.tmplCount===0&&Ra.treeAdapter.adoptAttributes(Ra.openElements.items[0],ed.attrs)}function bodyStartTagInBody(Ra,ed){const ud=Ra.openElements.tryPeekProperlyNestedBodyElement();ud&&Ra.openElements.tmplCount===0&&(Ra.framesetOk=!1,Ra.treeAdapter.adoptAttributes(ud,ed.attrs))}function framesetStartTagInBody(Ra,ed){const ud=Ra.openElements.tryPeekProperlyNestedBodyElement();Ra.framesetOk&&ud&&(Ra.treeAdapter.detachNode(ud),Ra.openElements.popAllUpToHtmlElement(),Ra._insertElement(ed,NS.HTML),Ra.insertionMode=InsertionMode.IN_FRAMESET)}function addressStartTagInBody(Ra,ed){Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),Ra._insertElement(ed,NS.HTML)}function numberedHeaderStartTagInBody(Ra,ed){Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),NUMBERED_HEADERS.has(Ra.openElements.currentTagId)&&Ra.openElements.pop(),Ra._insertElement(ed,NS.HTML)}function preStartTagInBody(Ra,ed){Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),Ra._insertElement(ed,NS.HTML),Ra.skipNextNewLine=!0,Ra.framesetOk=!1}function formStartTagInBody(Ra,ed){const ud=Ra.openElements.tmplCount>0;(!Ra.formElement||ud)&&(Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),Ra._insertElement(ed,NS.HTML),ud||(Ra.formElement=Ra.openElements.current))}function listItemStartTagInBody(Ra,ed){Ra.framesetOk=!1;const ud=ed.tagID;for(let dd=Ra.openElements.stackTop;dd>=0;dd--){const hd=Ra.openElements.tagIDs[dd];if(ud===TAG_ID.LI&&hd===TAG_ID.LI||(ud===TAG_ID.DD||ud===TAG_ID.DT)&&(hd===TAG_ID.DD||hd===TAG_ID.DT)){Ra.openElements.generateImpliedEndTagsWithExclusion(hd),Ra.openElements.popUntilTagNamePopped(hd);break}if(hd!==TAG_ID.ADDRESS&&hd!==TAG_ID.DIV&&hd!==TAG_ID.P&&Ra._isSpecialElement(Ra.openElements.items[dd],hd))break}Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),Ra._insertElement(ed,NS.HTML)}function plaintextStartTagInBody(Ra,ed){Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),Ra._insertElement(ed,NS.HTML),Ra.tokenizer.state=TokenizerMode.PLAINTEXT}function buttonStartTagInBody(Ra,ed){Ra.openElements.hasInScope(TAG_ID.BUTTON)&&(Ra.openElements.generateImpliedEndTags(),Ra.openElements.popUntilTagNamePopped(TAG_ID.BUTTON)),Ra._reconstructActiveFormattingElements(),Ra._insertElement(ed,NS.HTML),Ra.framesetOk=!1}function aStartTagInBody(Ra,ed){const ud=Ra.activeFormattingElements.getElementEntryInScopeWithTagName(TAG_NAMES.A);ud&&(callAdoptionAgency(Ra,ed),Ra.openElements.remove(ud.element),Ra.activeFormattingElements.removeEntry(ud)),Ra._reconstructActiveFormattingElements(),Ra._insertElement(ed,NS.HTML),Ra.activeFormattingElements.pushElement(Ra.openElements.current,ed)}function bStartTagInBody(Ra,ed){Ra._reconstructActiveFormattingElements(),Ra._insertElement(ed,NS.HTML),Ra.activeFormattingElements.pushElement(Ra.openElements.current,ed)}function nobrStartTagInBody(Ra,ed){Ra._reconstructActiveFormattingElements(),Ra.openElements.hasInScope(TAG_ID.NOBR)&&(callAdoptionAgency(Ra,ed),Ra._reconstructActiveFormattingElements()),Ra._insertElement(ed,NS.HTML),Ra.activeFormattingElements.pushElement(Ra.openElements.current,ed)}function appletStartTagInBody(Ra,ed){Ra._reconstructActiveFormattingElements(),Ra._insertElement(ed,NS.HTML),Ra.activeFormattingElements.insertMarker(),Ra.framesetOk=!1}function tableStartTagInBody(Ra,ed){Ra.treeAdapter.getDocumentMode(Ra.document)!==DOCUMENT_MODE.QUIRKS&&Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),Ra._insertElement(ed,NS.HTML),Ra.framesetOk=!1,Ra.insertionMode=InsertionMode.IN_TABLE}function areaStartTagInBody(Ra,ed){Ra._reconstructActiveFormattingElements(),Ra._appendElement(ed,NS.HTML),Ra.framesetOk=!1,ed.ackSelfClosing=!0}function isHiddenInput(Ra){const ed=getTokenAttr(Ra,ATTRS.TYPE);return ed!=null&&ed.toLowerCase()===HIDDEN_INPUT_TYPE}function inputStartTagInBody(Ra,ed){Ra._reconstructActiveFormattingElements(),Ra._appendElement(ed,NS.HTML),isHiddenInput(ed)||(Ra.framesetOk=!1),ed.ackSelfClosing=!0}function paramStartTagInBody(Ra,ed){Ra._appendElement(ed,NS.HTML),ed.ackSelfClosing=!0}function hrStartTagInBody(Ra,ed){Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),Ra._appendElement(ed,NS.HTML),Ra.framesetOk=!1,ed.ackSelfClosing=!0}function imageStartTagInBody(Ra,ed){ed.tagName=TAG_NAMES.IMG,ed.tagID=TAG_ID.IMG,areaStartTagInBody(Ra,ed)}function textareaStartTagInBody(Ra,ed){Ra._insertElement(ed,NS.HTML),Ra.skipNextNewLine=!0,Ra.tokenizer.state=TokenizerMode.RCDATA,Ra.originalInsertionMode=Ra.insertionMode,Ra.framesetOk=!1,Ra.insertionMode=InsertionMode.TEXT}function xmpStartTagInBody(Ra,ed){Ra.openElements.hasInButtonScope(TAG_ID.P)&&Ra._closePElement(),Ra._reconstructActiveFormattingElements(),Ra.framesetOk=!1,Ra._switchToTextParsing(ed,TokenizerMode.RAWTEXT)}function iframeStartTagInBody(Ra,ed){Ra.framesetOk=!1,Ra._switchToTextParsing(ed,TokenizerMode.RAWTEXT)}function rawTextStartTagInBody(Ra,ed){Ra._switchToTextParsing(ed,TokenizerMode.RAWTEXT)}function selectStartTagInBody(Ra,ed){Ra._reconstructActiveFormattingElements(),Ra._insertElement(ed,NS.HTML),Ra.framesetOk=!1,Ra.insertionMode=Ra.insertionMode===InsertionMode.IN_TABLE||Ra.insertionMode===InsertionMode.IN_CAPTION||Ra.insertionMode===InsertionMode.IN_TABLE_BODY||Ra.insertionMode===InsertionMode.IN_ROW||Ra.insertionMode===InsertionMode.IN_CELL?InsertionMode.IN_SELECT_IN_TABLE:InsertionMode.IN_SELECT}function optgroupStartTagInBody(Ra,ed){Ra.openElements.currentTagId===TAG_ID.OPTION&&Ra.openElements.pop(),Ra._reconstructActiveFormattingElements(),Ra._insertElement(ed,NS.HTML)}function rbStartTagInBody(Ra,ed){Ra.openElements.hasInScope(TAG_ID.RUBY)&&Ra.openElements.generateImpliedEndTags(),Ra._insertElement(ed,NS.HTML)}function rtStartTagInBody(Ra,ed){Ra.openElements.hasInScope(TAG_ID.RUBY)&&Ra.openElements.generateImpliedEndTagsWithExclusion(TAG_ID.RTC),Ra._insertElement(ed,NS.HTML)}function mathStartTagInBody(Ra,ed){Ra._reconstructActiveFormattingElements(),adjustTokenMathMLAttrs(ed),adjustTokenXMLAttrs(ed),ed.selfClosing?Ra._appendElement(ed,NS.MATHML):Ra._insertElement(ed,NS.MATHML),ed.ackSelfClosing=!0}function svgStartTagInBody(Ra,ed){Ra._reconstructActiveFormattingElements(),adjustTokenSVGAttrs(ed),adjustTokenXMLAttrs(ed),ed.selfClosing?Ra._appendElement(ed,NS.SVG):Ra._insertElement(ed,NS.SVG),ed.ackSelfClosing=!0}function genericStartTagInBody(Ra,ed){Ra._reconstructActiveFormattingElements(),Ra._insertElement(ed,NS.HTML)}function startTagInBody(Ra,ed){switch(ed.tagID){case TAG_ID.I:case TAG_ID.S:case TAG_ID.B:case TAG_ID.U:case TAG_ID.EM:case TAG_ID.TT:case TAG_ID.BIG:case TAG_ID.CODE:case TAG_ID.FONT:case TAG_ID.SMALL:case TAG_ID.STRIKE:case TAG_ID.STRONG:{bStartTagInBody(Ra,ed);break}case TAG_ID.A:{aStartTagInBody(Ra,ed);break}case TAG_ID.H1:case TAG_ID.H2:case TAG_ID.H3:case TAG_ID.H4:case TAG_ID.H5:case TAG_ID.H6:{numberedHeaderStartTagInBody(Ra,ed);break}case TAG_ID.P:case TAG_ID.DL:case TAG_ID.OL:case TAG_ID.UL:case TAG_ID.DIV:case TAG_ID.DIR:case TAG_ID.NAV:case TAG_ID.MAIN:case TAG_ID.MENU:case TAG_ID.ASIDE:case TAG_ID.CENTER:case TAG_ID.FIGURE:case TAG_ID.FOOTER:case TAG_ID.HEADER:case TAG_ID.HGROUP:case TAG_ID.DIALOG:case TAG_ID.DETAILS:case TAG_ID.ADDRESS:case TAG_ID.ARTICLE:case TAG_ID.SEARCH:case TAG_ID.SECTION:case TAG_ID.SUMMARY:case TAG_ID.FIELDSET:case TAG_ID.BLOCKQUOTE:case TAG_ID.FIGCAPTION:{addressStartTagInBody(Ra,ed);break}case TAG_ID.LI:case TAG_ID.DD:case TAG_ID.DT:{listItemStartTagInBody(Ra,ed);break}case TAG_ID.BR:case TAG_ID.IMG:case TAG_ID.WBR:case TAG_ID.AREA:case TAG_ID.EMBED:case TAG_ID.KEYGEN:{areaStartTagInBody(Ra,ed);break}case TAG_ID.HR:{hrStartTagInBody(Ra,ed);break}case TAG_ID.RB:case TAG_ID.RTC:{rbStartTagInBody(Ra,ed);break}case TAG_ID.RT:case TAG_ID.RP:{rtStartTagInBody(Ra,ed);break}case TAG_ID.PRE:case TAG_ID.LISTING:{preStartTagInBody(Ra,ed);break}case TAG_ID.XMP:{xmpStartTagInBody(Ra,ed);break}case TAG_ID.SVG:{svgStartTagInBody(Ra,ed);break}case TAG_ID.HTML:{htmlStartTagInBody(Ra,ed);break}case TAG_ID.BASE:case TAG_ID.LINK:case TAG_ID.META:case TAG_ID.STYLE:case TAG_ID.TITLE:case TAG_ID.SCRIPT:case TAG_ID.BGSOUND:case TAG_ID.BASEFONT:case TAG_ID.TEMPLATE:{startTagInHead(Ra,ed);break}case TAG_ID.BODY:{bodyStartTagInBody(Ra,ed);break}case TAG_ID.FORM:{formStartTagInBody(Ra,ed);break}case TAG_ID.NOBR:{nobrStartTagInBody(Ra,ed);break}case TAG_ID.MATH:{mathStartTagInBody(Ra,ed);break}case TAG_ID.TABLE:{tableStartTagInBody(Ra,ed);break}case TAG_ID.INPUT:{inputStartTagInBody(Ra,ed);break}case TAG_ID.PARAM:case TAG_ID.TRACK:case TAG_ID.SOURCE:{paramStartTagInBody(Ra,ed);break}case TAG_ID.IMAGE:{imageStartTagInBody(Ra,ed);break}case TAG_ID.BUTTON:{buttonStartTagInBody(Ra,ed);break}case TAG_ID.APPLET:case TAG_ID.OBJECT:case TAG_ID.MARQUEE:{appletStartTagInBody(Ra,ed);break}case TAG_ID.IFRAME:{iframeStartTagInBody(Ra,ed);break}case TAG_ID.SELECT:{selectStartTagInBody(Ra,ed);break}case TAG_ID.OPTION:case TAG_ID.OPTGROUP:{optgroupStartTagInBody(Ra,ed);break}case TAG_ID.NOEMBED:case TAG_ID.NOFRAMES:{rawTextStartTagInBody(Ra,ed);break}case TAG_ID.FRAMESET:{framesetStartTagInBody(Ra,ed);break}case TAG_ID.TEXTAREA:{textareaStartTagInBody(Ra,ed);break}case TAG_ID.NOSCRIPT:{Ra.options.scriptingEnabled?rawTextStartTagInBody(Ra,ed):genericStartTagInBody(Ra,ed);break}case TAG_ID.PLAINTEXT:{plaintextStartTagInBody(Ra,ed);break}case TAG_ID.COL:case TAG_ID.TH:case TAG_ID.TD:case TAG_ID.TR:case TAG_ID.HEAD:case TAG_ID.FRAME:case TAG_ID.TBODY:case TAG_ID.TFOOT:case TAG_ID.THEAD:case TAG_ID.CAPTION:case TAG_ID.COLGROUP:break;default:genericStartTagInBody(Ra,ed)}}function bodyEndTagInBody(Ra,ed){if(Ra.openElements.hasInScope(TAG_ID.BODY)&&(Ra.insertionMode=InsertionMode.AFTER_BODY,Ra.options.sourceCodeLocationInfo)){const ud=Ra.openElements.tryPeekProperlyNestedBodyElement();ud&&Ra._setEndLocation(ud,ed)}}function htmlEndTagInBody(Ra,ed){Ra.openElements.hasInScope(TAG_ID.BODY)&&(Ra.insertionMode=InsertionMode.AFTER_BODY,endTagAfterBody(Ra,ed))}function addressEndTagInBody(Ra,ed){const ud=ed.tagID;Ra.openElements.hasInScope(ud)&&(Ra.openElements.generateImpliedEndTags(),Ra.openElements.popUntilTagNamePopped(ud))}function formEndTagInBody(Ra){const ed=Ra.openElements.tmplCount>0,{formElement:ud}=Ra;ed||(Ra.formElement=null),(ud||ed)&&Ra.openElements.hasInScope(TAG_ID.FORM)&&(Ra.openElements.generateImpliedEndTags(),ed?Ra.openElements.popUntilTagNamePopped(TAG_ID.FORM):ud&&Ra.openElements.remove(ud))}function pEndTagInBody(Ra){Ra.openElements.hasInButtonScope(TAG_ID.P)||Ra._insertFakeElement(TAG_NAMES.P,TAG_ID.P),Ra._closePElement()}function liEndTagInBody(Ra){Ra.openElements.hasInListItemScope(TAG_ID.LI)&&(Ra.openElements.generateImpliedEndTagsWithExclusion(TAG_ID.LI),Ra.openElements.popUntilTagNamePopped(TAG_ID.LI))}function ddEndTagInBody(Ra,ed){const ud=ed.tagID;Ra.openElements.hasInScope(ud)&&(Ra.openElements.generateImpliedEndTagsWithExclusion(ud),Ra.openElements.popUntilTagNamePopped(ud))}function numberedHeaderEndTagInBody(Ra){Ra.openElements.hasNumberedHeaderInScope()&&(Ra.openElements.generateImpliedEndTags(),Ra.openElements.popUntilNumberedHeaderPopped())}function appletEndTagInBody(Ra,ed){const ud=ed.tagID;Ra.openElements.hasInScope(ud)&&(Ra.openElements.generateImpliedEndTags(),Ra.openElements.popUntilTagNamePopped(ud),Ra.activeFormattingElements.clearToLastMarker())}function brEndTagInBody(Ra){Ra._reconstructActiveFormattingElements(),Ra._insertFakeElement(TAG_NAMES.BR,TAG_ID.BR),Ra.openElements.pop(),Ra.framesetOk=!1}function genericEndTagInBody(Ra,ed){const ud=ed.tagName,dd=ed.tagID;for(let hd=Ra.openElements.stackTop;hd>0;hd--){const md=Ra.openElements.items[hd],gd=Ra.openElements.tagIDs[hd];if(dd===gd&&(dd!==TAG_ID.UNKNOWN||Ra.treeAdapter.getTagName(md)===ud)){Ra.openElements.generateImpliedEndTagsWithExclusion(dd),Ra.openElements.stackTop>=hd&&Ra.openElements.shortenToLength(hd);break}if(Ra._isSpecialElement(md,gd))break}}function endTagInBody(Ra,ed){switch(ed.tagID){case TAG_ID.A:case TAG_ID.B:case TAG_ID.I:case TAG_ID.S:case TAG_ID.U:case TAG_ID.EM:case TAG_ID.TT:case TAG_ID.BIG:case TAG_ID.CODE:case TAG_ID.FONT:case TAG_ID.NOBR:case TAG_ID.SMALL:case TAG_ID.STRIKE:case TAG_ID.STRONG:{callAdoptionAgency(Ra,ed);break}case TAG_ID.P:{pEndTagInBody(Ra);break}case TAG_ID.DL:case TAG_ID.UL:case TAG_ID.OL:case TAG_ID.DIR:case TAG_ID.DIV:case TAG_ID.NAV:case TAG_ID.PRE:case TAG_ID.MAIN:case TAG_ID.MENU:case TAG_ID.ASIDE:case TAG_ID.BUTTON:case TAG_ID.CENTER:case TAG_ID.FIGURE:case TAG_ID.FOOTER:case TAG_ID.HEADER:case TAG_ID.HGROUP:case TAG_ID.DIALOG:case TAG_ID.ADDRESS:case TAG_ID.ARTICLE:case TAG_ID.DETAILS:case TAG_ID.SEARCH:case TAG_ID.SECTION:case TAG_ID.SUMMARY:case TAG_ID.LISTING:case TAG_ID.FIELDSET:case TAG_ID.BLOCKQUOTE:case TAG_ID.FIGCAPTION:{addressEndTagInBody(Ra,ed);break}case TAG_ID.LI:{liEndTagInBody(Ra);break}case TAG_ID.DD:case TAG_ID.DT:{ddEndTagInBody(Ra,ed);break}case TAG_ID.H1:case TAG_ID.H2:case TAG_ID.H3:case TAG_ID.H4:case TAG_ID.H5:case TAG_ID.H6:{numberedHeaderEndTagInBody(Ra);break}case TAG_ID.BR:{brEndTagInBody(Ra);break}case TAG_ID.BODY:{bodyEndTagInBody(Ra,ed);break}case TAG_ID.HTML:{htmlEndTagInBody(Ra,ed);break}case TAG_ID.FORM:{formEndTagInBody(Ra);break}case TAG_ID.APPLET:case TAG_ID.OBJECT:case TAG_ID.MARQUEE:{appletEndTagInBody(Ra,ed);break}case TAG_ID.TEMPLATE:{templateEndTagInHead(Ra,ed);break}default:genericEndTagInBody(Ra,ed)}}function eofInBody(Ra,ed){Ra.tmplInsertionModeStack.length>0?eofInTemplate(Ra,ed):stopParsing(Ra,ed)}function endTagInText(Ra,ed){var ud;ed.tagID===TAG_ID.SCRIPT&&((ud=Ra.scriptHandler)===null||ud===void 0||ud.call(Ra,Ra.openElements.current)),Ra.openElements.pop(),Ra.insertionMode=Ra.originalInsertionMode}function eofInText(Ra,ed){Ra._err(ed,ERR.eofInElementThatCanContainOnlyText),Ra.openElements.pop(),Ra.insertionMode=Ra.originalInsertionMode,Ra.onEof(ed)}function characterInTable(Ra,ed){if(TABLE_STRUCTURE_TAGS.has(Ra.openElements.currentTagId))switch(Ra.pendingCharacterTokens.length=0,Ra.hasNonWhitespacePendingCharacterToken=!1,Ra.originalInsertionMode=Ra.insertionMode,Ra.insertionMode=InsertionMode.IN_TABLE_TEXT,ed.type){case TokenType.CHARACTER:{characterInTableText(Ra,ed);break}case TokenType.WHITESPACE_CHARACTER:{whitespaceCharacterInTableText(Ra,ed);break}}else tokenInTable(Ra,ed)}function captionStartTagInTable(Ra,ed){Ra.openElements.clearBackToTableContext(),Ra.activeFormattingElements.insertMarker(),Ra._insertElement(ed,NS.HTML),Ra.insertionMode=InsertionMode.IN_CAPTION}function colgroupStartTagInTable(Ra,ed){Ra.openElements.clearBackToTableContext(),Ra._insertElement(ed,NS.HTML),Ra.insertionMode=InsertionMode.IN_COLUMN_GROUP}function colStartTagInTable(Ra,ed){Ra.openElements.clearBackToTableContext(),Ra._insertFakeElement(TAG_NAMES.COLGROUP,TAG_ID.COLGROUP),Ra.insertionMode=InsertionMode.IN_COLUMN_GROUP,startTagInColumnGroup(Ra,ed)}function tbodyStartTagInTable(Ra,ed){Ra.openElements.clearBackToTableContext(),Ra._insertElement(ed,NS.HTML),Ra.insertionMode=InsertionMode.IN_TABLE_BODY}function tdStartTagInTable(Ra,ed){Ra.openElements.clearBackToTableContext(),Ra._insertFakeElement(TAG_NAMES.TBODY,TAG_ID.TBODY),Ra.insertionMode=InsertionMode.IN_TABLE_BODY,startTagInTableBody(Ra,ed)}function tableStartTagInTable(Ra,ed){Ra.openElements.hasInTableScope(TAG_ID.TABLE)&&(Ra.openElements.popUntilTagNamePopped(TAG_ID.TABLE),Ra._resetInsertionMode(),Ra._processStartTag(ed))}function inputStartTagInTable(Ra,ed){isHiddenInput(ed)?Ra._appendElement(ed,NS.HTML):tokenInTable(Ra,ed),ed.ackSelfClosing=!0}function formStartTagInTable(Ra,ed){!Ra.formElement&&Ra.openElements.tmplCount===0&&(Ra._insertElement(ed,NS.HTML),Ra.formElement=Ra.openElements.current,Ra.openElements.pop())}function startTagInTable(Ra,ed){switch(ed.tagID){case TAG_ID.TD:case TAG_ID.TH:case TAG_ID.TR:{tdStartTagInTable(Ra,ed);break}case TAG_ID.STYLE:case TAG_ID.SCRIPT:case TAG_ID.TEMPLATE:{startTagInHead(Ra,ed);break}case TAG_ID.COL:{colStartTagInTable(Ra,ed);break}case TAG_ID.FORM:{formStartTagInTable(Ra,ed);break}case TAG_ID.TABLE:{tableStartTagInTable(Ra,ed);break}case TAG_ID.TBODY:case TAG_ID.TFOOT:case TAG_ID.THEAD:{tbodyStartTagInTable(Ra,ed);break}case TAG_ID.INPUT:{inputStartTagInTable(Ra,ed);break}case TAG_ID.CAPTION:{captionStartTagInTable(Ra,ed);break}case TAG_ID.COLGROUP:{colgroupStartTagInTable(Ra,ed);break}default:tokenInTable(Ra,ed)}}function endTagInTable(Ra,ed){switch(ed.tagID){case TAG_ID.TABLE:{Ra.openElements.hasInTableScope(TAG_ID.TABLE)&&(Ra.openElements.popUntilTagNamePopped(TAG_ID.TABLE),Ra._resetInsertionMode());break}case TAG_ID.TEMPLATE:{templateEndTagInHead(Ra,ed);break}case TAG_ID.BODY:case TAG_ID.CAPTION:case TAG_ID.COL:case TAG_ID.COLGROUP:case TAG_ID.HTML:case TAG_ID.TBODY:case TAG_ID.TD:case TAG_ID.TFOOT:case TAG_ID.TH:case TAG_ID.THEAD:case TAG_ID.TR:break;default:tokenInTable(Ra,ed)}}function tokenInTable(Ra,ed){const ud=Ra.fosterParentingEnabled;Ra.fosterParentingEnabled=!0,modeInBody(Ra,ed),Ra.fosterParentingEnabled=ud}function whitespaceCharacterInTableText(Ra,ed){Ra.pendingCharacterTokens.push(ed)}function characterInTableText(Ra,ed){Ra.pendingCharacterTokens.push(ed),Ra.hasNonWhitespacePendingCharacterToken=!0}function tokenInTableText(Ra,ed){let ud=0;if(Ra.hasNonWhitespacePendingCharacterToken)for(;ud0&&Ra.openElements.currentTagId===TAG_ID.OPTION&&Ra.openElements.tagIDs[Ra.openElements.stackTop-1]===TAG_ID.OPTGROUP&&Ra.openElements.pop(),Ra.openElements.currentTagId===TAG_ID.OPTGROUP&&Ra.openElements.pop();break}case TAG_ID.OPTION:{Ra.openElements.currentTagId===TAG_ID.OPTION&&Ra.openElements.pop();break}case TAG_ID.SELECT:{Ra.openElements.hasInSelectScope(TAG_ID.SELECT)&&(Ra.openElements.popUntilTagNamePopped(TAG_ID.SELECT),Ra._resetInsertionMode());break}case TAG_ID.TEMPLATE:{templateEndTagInHead(Ra,ed);break}}}function startTagInSelectInTable(Ra,ed){const ud=ed.tagID;ud===TAG_ID.CAPTION||ud===TAG_ID.TABLE||ud===TAG_ID.TBODY||ud===TAG_ID.TFOOT||ud===TAG_ID.THEAD||ud===TAG_ID.TR||ud===TAG_ID.TD||ud===TAG_ID.TH?(Ra.openElements.popUntilTagNamePopped(TAG_ID.SELECT),Ra._resetInsertionMode(),Ra._processStartTag(ed)):startTagInSelect(Ra,ed)}function endTagInSelectInTable(Ra,ed){const ud=ed.tagID;ud===TAG_ID.CAPTION||ud===TAG_ID.TABLE||ud===TAG_ID.TBODY||ud===TAG_ID.TFOOT||ud===TAG_ID.THEAD||ud===TAG_ID.TR||ud===TAG_ID.TD||ud===TAG_ID.TH?Ra.openElements.hasInTableScope(ud)&&(Ra.openElements.popUntilTagNamePopped(TAG_ID.SELECT),Ra._resetInsertionMode(),Ra.onEndTag(ed)):endTagInSelect(Ra,ed)}function startTagInTemplate(Ra,ed){switch(ed.tagID){case TAG_ID.BASE:case TAG_ID.BASEFONT:case TAG_ID.BGSOUND:case TAG_ID.LINK:case TAG_ID.META:case TAG_ID.NOFRAMES:case TAG_ID.SCRIPT:case TAG_ID.STYLE:case TAG_ID.TEMPLATE:case TAG_ID.TITLE:{startTagInHead(Ra,ed);break}case TAG_ID.CAPTION:case TAG_ID.COLGROUP:case TAG_ID.TBODY:case TAG_ID.TFOOT:case TAG_ID.THEAD:{Ra.tmplInsertionModeStack[0]=InsertionMode.IN_TABLE,Ra.insertionMode=InsertionMode.IN_TABLE,startTagInTable(Ra,ed);break}case TAG_ID.COL:{Ra.tmplInsertionModeStack[0]=InsertionMode.IN_COLUMN_GROUP,Ra.insertionMode=InsertionMode.IN_COLUMN_GROUP,startTagInColumnGroup(Ra,ed);break}case TAG_ID.TR:{Ra.tmplInsertionModeStack[0]=InsertionMode.IN_TABLE_BODY,Ra.insertionMode=InsertionMode.IN_TABLE_BODY,startTagInTableBody(Ra,ed);break}case TAG_ID.TD:case TAG_ID.TH:{Ra.tmplInsertionModeStack[0]=InsertionMode.IN_ROW,Ra.insertionMode=InsertionMode.IN_ROW,startTagInRow(Ra,ed);break}default:Ra.tmplInsertionModeStack[0]=InsertionMode.IN_BODY,Ra.insertionMode=InsertionMode.IN_BODY,startTagInBody(Ra,ed)}}function endTagInTemplate(Ra,ed){ed.tagID===TAG_ID.TEMPLATE&&templateEndTagInHead(Ra,ed)}function eofInTemplate(Ra,ed){Ra.openElements.tmplCount>0?(Ra.openElements.popUntilTagNamePopped(TAG_ID.TEMPLATE),Ra.activeFormattingElements.clearToLastMarker(),Ra.tmplInsertionModeStack.shift(),Ra._resetInsertionMode(),Ra.onEof(ed)):stopParsing(Ra,ed)}function startTagAfterBody(Ra,ed){ed.tagID===TAG_ID.HTML?startTagInBody(Ra,ed):tokenAfterBody(Ra,ed)}function endTagAfterBody(Ra,ed){var ud;if(ed.tagID===TAG_ID.HTML){if(Ra.fragmentContext||(Ra.insertionMode=InsertionMode.AFTER_AFTER_BODY),Ra.options.sourceCodeLocationInfo&&Ra.openElements.tagIDs[0]===TAG_ID.HTML){Ra._setEndLocation(Ra.openElements.items[0],ed);const dd=Ra.openElements.items[1];dd&&!(!((ud=Ra.treeAdapter.getNodeSourceCodeLocation(dd))===null||ud===void 0)&&ud.endTag)&&Ra._setEndLocation(dd,ed)}}else tokenAfterBody(Ra,ed)}function tokenAfterBody(Ra,ed){Ra.insertionMode=InsertionMode.IN_BODY,modeInBody(Ra,ed)}function startTagInFrameset(Ra,ed){switch(ed.tagID){case TAG_ID.HTML:{startTagInBody(Ra,ed);break}case TAG_ID.FRAMESET:{Ra._insertElement(ed,NS.HTML);break}case TAG_ID.FRAME:{Ra._appendElement(ed,NS.HTML),ed.ackSelfClosing=!0;break}case TAG_ID.NOFRAMES:{startTagInHead(Ra,ed);break}}}function endTagInFrameset(Ra,ed){ed.tagID===TAG_ID.FRAMESET&&!Ra.openElements.isRootHtmlElementCurrent()&&(Ra.openElements.pop(),!Ra.fragmentContext&&Ra.openElements.currentTagId!==TAG_ID.FRAMESET&&(Ra.insertionMode=InsertionMode.AFTER_FRAMESET))}function startTagAfterFrameset(Ra,ed){switch(ed.tagID){case TAG_ID.HTML:{startTagInBody(Ra,ed);break}case TAG_ID.NOFRAMES:{startTagInHead(Ra,ed);break}}}function endTagAfterFrameset(Ra,ed){ed.tagID===TAG_ID.HTML&&(Ra.insertionMode=InsertionMode.AFTER_AFTER_FRAMESET)}function startTagAfterAfterBody(Ra,ed){ed.tagID===TAG_ID.HTML?startTagInBody(Ra,ed):tokenAfterAfterBody(Ra,ed)}function tokenAfterAfterBody(Ra,ed){Ra.insertionMode=InsertionMode.IN_BODY,modeInBody(Ra,ed)}function startTagAfterAfterFrameset(Ra,ed){switch(ed.tagID){case TAG_ID.HTML:{startTagInBody(Ra,ed);break}case TAG_ID.NOFRAMES:{startTagInHead(Ra,ed);break}}}function nullCharacterInForeignContent(Ra,ed){ed.chars=REPLACEMENT_CHARACTER,Ra._insertCharacters(ed)}function characterInForeignContent(Ra,ed){Ra._insertCharacters(ed),Ra.framesetOk=!1}function popUntilHtmlOrIntegrationPoint(Ra){for(;Ra.treeAdapter.getNamespaceURI(Ra.openElements.current)!==NS.HTML&&!Ra._isIntegrationPoint(Ra.openElements.currentTagId,Ra.openElements.current);)Ra.openElements.pop()}function startTagInForeignContent(Ra,ed){if(causesExit(ed))popUntilHtmlOrIntegrationPoint(Ra),Ra._startTagOutsideForeignContent(ed);else{const ud=Ra._getAdjustedCurrentElement(),dd=Ra.treeAdapter.getNamespaceURI(ud);dd===NS.MATHML?adjustTokenMathMLAttrs(ed):dd===NS.SVG&&(adjustTokenSVGTagName(ed),adjustTokenSVGAttrs(ed)),adjustTokenXMLAttrs(ed),ed.selfClosing?Ra._appendElement(ed,dd):Ra._insertElement(ed,dd),ed.ackSelfClosing=!0}}function endTagInForeignContent(Ra,ed){if(ed.tagID===TAG_ID.P||ed.tagID===TAG_ID.BR){popUntilHtmlOrIntegrationPoint(Ra),Ra._endTagOutsideForeignContent(ed);return}for(let ud=Ra.openElements.stackTop;ud>0;ud--){const dd=Ra.openElements.items[ud];if(Ra.treeAdapter.getNamespaceURI(dd)===NS.HTML){Ra._endTagOutsideForeignContent(ed);break}const hd=Ra.treeAdapter.getTagName(dd);if(hd.toLowerCase()===ed.tagName){ed.tagName=hd,Ra.openElements.shortenToLength(ud);break}}}function getEscaper(Ra,ed){return function(dd){let hd,md=0,gd="";for(;hd=Ra.exec(dd);)md!==hd.index&&(gd+=dd.substring(md,hd.index)),gd+=ed.get(hd[0].charCodeAt(0)),md=hd.index+1;return gd+dd.substring(md)}}const escapeAttribute=getEscaper(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),escapeText=getEscaper(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),VOID_ELEMENTS=new Set([TAG_NAMES.AREA,TAG_NAMES.BASE,TAG_NAMES.BASEFONT,TAG_NAMES.BGSOUND,TAG_NAMES.BR,TAG_NAMES.COL,TAG_NAMES.EMBED,TAG_NAMES.FRAME,TAG_NAMES.HR,TAG_NAMES.IMG,TAG_NAMES.INPUT,TAG_NAMES.KEYGEN,TAG_NAMES.LINK,TAG_NAMES.META,TAG_NAMES.PARAM,TAG_NAMES.SOURCE,TAG_NAMES.TRACK,TAG_NAMES.WBR]);function isVoidElement(Ra,ed){return ed.treeAdapter.isElementNode(Ra)&&ed.treeAdapter.getNamespaceURI(Ra)===NS.HTML&&VOID_ELEMENTS.has(ed.treeAdapter.getTagName(Ra))}const defaultOpts={treeAdapter:defaultTreeAdapter,scriptingEnabled:!0};function serializeOuter(Ra,ed){const ud={...defaultOpts,...ed};return serializeNode(Ra,ud)}function serializeChildNodes(Ra,ed){let ud="";const dd=ed.treeAdapter.isElementNode(Ra)&&ed.treeAdapter.getTagName(Ra)===TAG_NAMES.TEMPLATE&&ed.treeAdapter.getNamespaceURI(Ra)===NS.HTML?ed.treeAdapter.getTemplateContent(Ra):Ra,hd=ed.treeAdapter.getChildNodes(dd);if(hd)for(const md of hd)ud+=serializeNode(md,ed);return ud}function serializeNode(Ra,ed){return ed.treeAdapter.isElementNode(Ra)?serializeElement(Ra,ed):ed.treeAdapter.isTextNode(Ra)?serializeTextNode(Ra,ed):ed.treeAdapter.isCommentNode(Ra)?serializeCommentNode(Ra,ed):ed.treeAdapter.isDocumentTypeNode(Ra)?serializeDocumentTypeNode(Ra,ed):""}function serializeElement(Ra,ed){const ud=ed.treeAdapter.getTagName(Ra);return`<${ud}${serializeAttributes(Ra,ed)}>${isVoidElement(Ra,ed)?"":`${serializeChildNodes(Ra,ed)}`}`}function serializeAttributes(Ra,{treeAdapter:ed}){let ud="";for(const dd of ed.getAttrList(Ra)){if(ud+=" ",dd.namespace)switch(dd.namespace){case NS.XML:{ud+=`xml:${dd.name}`;break}case NS.XMLNS:{dd.name!=="xmlns"&&(ud+="xmlns:"),ud+=dd.name;break}case NS.XLINK:{ud+=`xlink:${dd.name}`;break}default:ud+=`${dd.prefix}:${dd.name}`}else ud+=dd.name;ud+=`="${escapeAttribute(dd.value)}"`}return ud}function serializeTextNode(Ra,ed){const{treeAdapter:ud}=ed,dd=ud.getTextNodeContent(Ra),hd=ud.getParentNode(Ra),md=hd&&ud.isElementNode(hd)&&ud.getTagName(hd);return md&&ud.getNamespaceURI(hd)===NS.HTML&&hasUnescapedText(md,ed.scriptingEnabled)?dd:escapeText(dd)}function serializeCommentNode(Ra,{treeAdapter:ed}){return``}function serializeDocumentTypeNode(Ra,{treeAdapter:ed}){return``}function parse$5(Ra,ed){return Parser$2.parse(Ra,ed)}function parseFragment(Ra,ed,ud){typeof Ra=="string"&&(ud=ed,ed=Ra,Ra=null);const dd=Parser$2.getFragmentParser(Ra,ud);return dd.tokenizer.write(ed,!0),dd.getFragment()}function enquoteDoctypeId(Ra){const ed=Ra.includes('"')?"'":'"';return ed+Ra+ed}function serializeDoctypeContent(Ra,ed,ud){let dd="!DOCTYPE ";return Ra&&(dd+=Ra),ed?dd+=` PUBLIC ${enquoteDoctypeId(ed)}`:ud&&(dd+=" SYSTEM"),ud&&(dd+=` ${enquoteDoctypeId(ud)}`),dd}const adapter={isCommentNode:isComment$1,isElementNode:isTag,isTextNode:isText,createDocument(){const Ra=new Document([]);return Ra["x-mode"]=DOCUMENT_MODE.NO_QUIRKS,Ra},createDocumentFragment(){return new Document([])},createElement(Ra,ed,ud){const dd=Object.create(null),hd=Object.create(null),md=Object.create(null);for(let yd=0;ydisDirective(gd)&&gd.name==="!doctype");md?md.data=hd??null:(md=new ProcessingInstruction("!doctype",hd),adapter.appendChild(Ra,md)),md["x-name"]=ed,md["x-publicId"]=ud,md["x-systemId"]=dd},setDocumentMode(Ra,ed){Ra["x-mode"]=ed},getDocumentMode(Ra){return Ra["x-mode"]},detachNode(Ra){if(Ra.parent){const ed=Ra.parent.children.indexOf(Ra),{prev:ud,next:dd}=Ra;Ra.prev=null,Ra.next=null,ud&&(ud.next=dd),dd&&(dd.prev=ud),Ra.parent.children.splice(ed,1),Ra.parent=null}},insertText(Ra,ed){const ud=Ra.children[Ra.children.length-1];ud&&isText(ud)?ud.data+=ed:adapter.appendChild(Ra,adapter.createTextNode(ed))},insertTextBefore(Ra,ed,ud){const dd=Ra.children[Ra.children.indexOf(ud)-1];dd&&isText(dd)?dd.data+=ed:adapter.insertBefore(Ra,adapter.createTextNode(ed),ud)},adoptAttributes(Ra,ed){for(let ud=0;ud=CharCodes.LowerA&&Ra<=CharCodes.LowerZ||Ra>=CharCodes.UpperA&&Ra<=CharCodes.UpperZ}var QuoteType;(function(Ra){Ra[Ra.NoValue=0]="NoValue",Ra[Ra.Unquoted=1]="Unquoted",Ra[Ra.Single=2]="Single",Ra[Ra.Double=3]="Double"})(QuoteType||(QuoteType={}));const Sequences={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class Tokenizer{constructor({xmlMode:ed=!1,decodeEntities:ud=!0},dd){this.cbs=dd,this.state=State$4.Text,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=State$4.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.xmlMode=ed,this.decodeEntities=ud,this.entityDecoder=new EntityDecoder(ed?xmlDecodeTree:htmlDecodeTree,(hd,md)=>this.emitCodePoint(hd,md))}reset(){this.state=State$4.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=State$4.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(ed){this.offset+=this.buffer.length,this.buffer=ed,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=State$4.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&ed===CharCodes.Amp&&this.startEntity()}stateSpecialStartSequence(ed){const ud=this.sequenceIndex===this.currentSequence.length;if(!(ud?isEndOfTagSection(ed):(ed|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!ud){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=State$4.InTagName,this.stateInTagName(ed)}stateInSpecialTag(ed){if(this.sequenceIndex===this.currentSequence.length){if(ed===CharCodes.Gt||isWhitespace$2(ed)){const ud=this.index-this.currentSequence.length;if(this.sectionStart=0?(this.state=this.baseState,ed===0&&(this.index=this.entityStart)):this.index=this.offset+this.buffer.length-1}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===State$4.Text||this.state===State$4.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===State$4.InAttributeValueDq||this.state===State$4.InAttributeValueSq||this.state===State$4.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index=ed||(this.state===State$4.InCommentLike?this.currentSequence===Sequences.CdataEnd?this.cbs.oncdata(this.sectionStart,ed,0):this.cbs.oncomment(this.sectionStart,ed,0):this.state===State$4.InTagName||this.state===State$4.BeforeAttributeName||this.state===State$4.BeforeAttributeValue||this.state===State$4.AfterAttributeName||this.state===State$4.InAttributeName||this.state===State$4.InAttributeValueSq||this.state===State$4.InAttributeValueDq||this.state===State$4.InAttributeValueNq||this.state===State$4.InClosingTagName||this.cbs.ontext(this.sectionStart,ed))}emitCodePoint(ed,ud){this.baseState!==State$4.Text&&this.baseState!==State$4.InSpecialTag?(this.sectionStart0&&gd.has(this.stack[0]);){const yd=this.stack.shift();(dd=(ud=this.cbs).onclosetag)===null||dd===void 0||dd.call(ud,yd,!0)}this.isVoidElement(ed)||(this.stack.unshift(ed),this.htmlMode&&(foreignContextElements.has(ed)?this.foreignContext.unshift(!0):htmlIntegrationElements.has(ed)&&this.foreignContext.unshift(!1))),(md=(hd=this.cbs).onopentagname)===null||md===void 0||md.call(hd,ed),this.cbs.onopentag&&(this.attribs={})}endOpenTag(ed){var ud,dd;this.startIndex=this.openTagStart,this.attribs&&((dd=(ud=this.cbs).onopentag)===null||dd===void 0||dd.call(ud,this.tagname,this.attribs,ed),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(ed){this.endIndex=ed,this.endOpenTag(!1),this.startIndex=ed+1}onclosetag(ed,ud){var dd,hd,md,gd,yd,vd,Cd,wd;this.endIndex=ud;let Nd=this.getSlice(ed,ud);if(this.lowerCaseTagNames&&(Nd=Nd.toLowerCase()),this.htmlMode&&(foreignContextElements.has(Nd)||htmlIntegrationElements.has(Nd))&&this.foreignContext.shift(),this.isVoidElement(Nd))this.htmlMode&&Nd==="br"&&((gd=(md=this.cbs).onopentagname)===null||gd===void 0||gd.call(md,"br"),(vd=(yd=this.cbs).onopentag)===null||vd===void 0||vd.call(yd,"br",{},!0),(wd=(Cd=this.cbs).onclosetag)===null||wd===void 0||wd.call(Cd,"br",!1));else{const Ld=this.stack.indexOf(Nd);if(Ld!==-1)for(let Ud=0;Ud<=Ld;Ud++){const jd=this.stack.shift();(hd=(dd=this.cbs).onclosetag)===null||hd===void 0||hd.call(dd,jd,Ud!==Ld)}else this.htmlMode&&Nd==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=ud+1}onselfclosingtag(ed){this.endIndex=ed,this.recognizeSelfClosing||this.foreignContext[0]?(this.closeCurrentTag(!1),this.startIndex=ed+1):this.onopentagend(ed)}closeCurrentTag(ed){var ud,dd;const hd=this.tagname;this.endOpenTag(ed),this.stack[0]===hd&&((dd=(ud=this.cbs).onclosetag)===null||dd===void 0||dd.call(ud,hd,!ed),this.stack.shift())}onattribname(ed,ud){this.startIndex=ed;const dd=this.getSlice(ed,ud);this.attribname=this.lowerCaseAttributeNames?dd.toLowerCase():dd}onattribdata(ed,ud){this.attribvalue+=this.getSlice(ed,ud)}onattribentity(ed){this.attribvalue+=fromCodePoint(ed)}onattribend(ed,ud){var dd,hd;this.endIndex=ud,(hd=(dd=this.cbs).onattribute)===null||hd===void 0||hd.call(dd,this.attribname,this.attribvalue,ed===QuoteType.Double?'"':ed===QuoteType.Single?"'":ed===QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(ed){const ud=ed.search(reNameEnd);let dd=ud<0?ed:ed.substr(0,ud);return this.lowerCaseTagNames&&(dd=dd.toLowerCase()),dd}ondeclaration(ed,ud){this.endIndex=ud;const dd=this.getSlice(ed,ud);if(this.cbs.onprocessinginstruction){const hd=this.getInstructionName(dd);this.cbs.onprocessinginstruction(`!${hd}`,`!${dd}`)}this.startIndex=ud+1}onprocessinginstruction(ed,ud){this.endIndex=ud;const dd=this.getSlice(ed,ud);if(this.cbs.onprocessinginstruction){const hd=this.getInstructionName(dd);this.cbs.onprocessinginstruction(`?${hd}`,`?${dd}`)}this.startIndex=ud+1}oncomment(ed,ud,dd){var hd,md,gd,yd;this.endIndex=ud,(md=(hd=this.cbs).oncomment)===null||md===void 0||md.call(hd,this.getSlice(ed,ud-dd)),(yd=(gd=this.cbs).oncommentend)===null||yd===void 0||yd.call(gd),this.startIndex=ud+1}oncdata(ed,ud,dd){var hd,md,gd,yd,vd,Cd,wd,Nd,Ld,Ud;this.endIndex=ud;const jd=this.getSlice(ed,ud-dd);!this.htmlMode||this.options.recognizeCDATA?((md=(hd=this.cbs).oncdatastart)===null||md===void 0||md.call(hd),(yd=(gd=this.cbs).ontext)===null||yd===void 0||yd.call(gd,jd),(Cd=(vd=this.cbs).oncdataend)===null||Cd===void 0||Cd.call(vd)):((Nd=(wd=this.cbs).oncomment)===null||Nd===void 0||Nd.call(wd,`[CDATA[${jd}]]`),(Ud=(Ld=this.cbs).oncommentend)===null||Ud===void 0||Ud.call(Ld)),this.startIndex=ud+1}onend(){var ed,ud;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let dd=0;dd=this.buffers[0].length;)this.shiftBuffer();let dd=this.buffers[0].slice(ed-this.bufferOffset,ud-this.bufferOffset);for(;ud-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),dd+=this.buffers[0].slice(0,ud-this.bufferOffset);return dd}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(ed){var ud,dd;if(this.ended){(dd=(ud=this.cbs).onerror)===null||dd===void 0||dd.call(ud,new Error(".write() after done!"));return}this.buffers.push(ed),this.tokenizer.running&&(this.tokenizer.write(ed),this.writeIndex++)}end(ed){var ud,dd;if(this.ended){(dd=(ud=this.cbs).onerror)===null||dd===void 0||dd.call(ud,new Error(".end() after done!"));return}ed&&this.write(ed),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndexed._useHtmlParser2?parseDocument(Ra,ed):parseWithParse5(Ra,ed,ud,dd)),load$3=getLoad(parse$4,(Ra,ed)=>ed._useHtmlParser2?render$3(Ra,ed):renderWithParse5(Ra)),browser$1=Object.freeze(Object.defineProperty({__proto__:null,contains:contains$1,load:load$3,merge:merge$7},Symbol.toStringTag,{value:"Module"})),require$$0$2=getAugmentedNamespace(browser$1);var utils$4={},lexer={exports:{}},debug={exports:{}};(function(Ra,ed){var ud={stderr:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:2,_isStdio:!0}};Ra.exports=dd;function dd(md){return hd.bind(null,md)}function hd(md){var gd=[].slice.call(arguments,1);gd.unshift("["+md+"]"),ud.stderr.write(gd.join(" ")+` -`)}})(debug);var debugExports=debug.exports;(function(Ra,ed){debugExports("lex"),Ra.exports=ud;function ud(dd){var hd="",md,gd=0,yd=-1,vd=0,Cd=1,wd="before-selector",Nd=[wd],Ld={},Ud=[],jd=["media","keyframes",{name:"-webkit-keyframes",type:"keyframes",prefix:"-webkit-"},{name:"-moz-keyframes",type:"keyframes",prefix:"-moz-"},{name:"-ms-keyframes",type:"keyframes",prefix:"-ms-"},{name:"-o-keyframes",type:"keyframes",prefix:"-o-"},"font-face",{name:"import",state:"before-at-value"},{name:"charset",state:"before-at-value"},"supports","viewport",{name:"namespace",state:"before-at-value"},"document",{name:"-moz-document",type:"document",prefix:"-moz-"},"page"];function Gd(){return xf(),dd[yd]}function Yd(Ff){return Ff?Nd[Nd.length-1-Ff]:wd}function zd(Ff){var sh=yd+1;return Ff===dd.slice(sh,sh+Ff.length)}function qd(Ff){var sh=dd.slice(yd).indexOf(Ff);return sh>0?sh:!1}function Wd(Ff){return Ff===Xd(1)}function Xd(Ff){return dd[yd+(Ff||1)]}function Jd(){var Ff=Nd.pop();return wd=Nd[Nd.length-1],Ff}function Zd(Ff){return wd=Ff,Nd.push(wd),Nd.length}function mf(Ff){var sh=wd;return Nd[Nd.length-1]=wd=Ff,sh}function xf(Ff){if((Ff||1)==1)dd[yd]==` -`?(Cd++,gd=1):gd++,yd++;else{var sh=dd.slice(yd,yd+Ff).split(` -`);sh.length>1&&(Cd+=sh.length-1,gd=1),gd+=sh[sh.length-1].length,yd=yd+Ff}}function _f(){Ld.end={line:Cd,col:gd},Ud.push(Ld),hd="",Ld={}}function vf(Ff){Ld={type:Ff,start:{line:Cd,col:gd}}}for(;md=Gd();)switch(md){case" ":switch(Yd()){case"selector":case"value":case"value-paren":case"at-group":case"at-value":case"comment":case"double-string":case"single-string":hd+=md;break}break;case` +`)}})(debug);var debugExports=debug.exports;(function(Ra,ed){debugExports("lex"),Ra.exports=ud;function ud(dd){var hd="",md,gd=0,yd=-1,vd=0,Cd=1,wd="before-selector",Nd=[wd],Ld={},Ud=[],jd=["media","keyframes",{name:"-webkit-keyframes",type:"keyframes",prefix:"-webkit-"},{name:"-moz-keyframes",type:"keyframes",prefix:"-moz-"},{name:"-ms-keyframes",type:"keyframes",prefix:"-ms-"},{name:"-o-keyframes",type:"keyframes",prefix:"-o-"},"font-face",{name:"import",state:"before-at-value"},{name:"charset",state:"before-at-value"},"supports","viewport",{name:"namespace",state:"before-at-value"},"document",{name:"-moz-document",type:"document",prefix:"-moz-"},"page"];function Gd(){return xf(),dd[yd]}function Yd(Ff){return Ff?Nd[Nd.length-1-Ff]:wd}function zd(Ff){var oh=yd+1;return Ff===dd.slice(oh,oh+Ff.length)}function qd(Ff){var oh=dd.slice(yd).indexOf(Ff);return oh>0?oh:!1}function Wd(Ff){return Ff===Xd(1)}function Xd(Ff){return dd[yd+(Ff||1)]}function Jd(){var Ff=Nd.pop();return wd=Nd[Nd.length-1],Ff}function Zd(Ff){return wd=Ff,Nd.push(wd),Nd.length}function mf(Ff){var oh=wd;return Nd[Nd.length-1]=wd=Ff,oh}function xf(Ff){if((Ff||1)==1)dd[yd]==` +`?(Cd++,gd=1):gd++,yd++;else{var oh=dd.slice(yd,yd+Ff).split(` +`);oh.length>1&&(Cd+=oh.length-1,gd=1),gd+=oh[oh.length-1].length,yd=yd+Ff}}function _f(){Ld.end={line:Cd,col:gd},Ud.push(Ld),hd="",Ld={}}function vf(Ff){Ld={type:Ff,start:{line:Cd,col:gd}}}for(;md=Gd();)switch(md){case" ":switch(Yd()){case"selector":case"value":case"value-paren":case"at-group":case"at-value":case"comment":case"double-string":case"single-string":hd+=md;break}break;case` `:case" ":case"\r":case"\f":switch(Yd()){case"value":case"value-paren":case"at-group":case"comment":case"single-string":case"double-string":case"selector":hd+=md;break;case"at-value":md===` -`&&(Ld.value=hd.trim(),_f(),Jd());break}break;case":":switch(Yd()){case"name":Ld.name=hd.trim(),hd="",mf("before-value");break;case"before-selector":hd+=md,vf("selector"),Zd("selector");break;case"before-value":mf("value"),hd+=md;break;default:hd+=md;break}break;case";":switch(Yd()){case"name":case"before-value":case"value":hd.trim().length>0&&(Ld.value=hd.trim(),_f()),mf("before-name");break;case"value-paren":hd+=md;break;case"at-value":Ld.value=hd.trim(),_f(),Jd();break;case"before-name":break;default:hd+=md;break}break;case"{":switch(Yd()){case"selector":if(Xd(-1)==="\\"){hd+=md;break}Ld.text=hd.trim(),_f(),mf("before-name"),vd=vd+1;break;case"at-group":switch(Ld.name=hd.trim(),Ld.type){case"font-face":case"viewport":case"page":Zd("before-name");break;default:Zd("before-selector")}_f(),vd=vd+1;break;case"name":case"at-rule":Ld.name=hd.trim(),_f(),Zd("before-name"),vd=vd+1;break;case"comment":case"double-string":case"single-string":hd+=md;break;case"before-value":mf("value"),hd+=md;break}break;case"}":switch(Yd()){case"before-name":case"name":case"before-value":case"value":hd&&(Ld.value=hd.trim()),Ld.name&&Ld.value&&_f(),vf("end"),_f(),Jd(),Yd()==="at-group"&&(vf("at-group-end"),_f(),Jd()),vd>0&&(vd=vd-1);break;case"at-group":case"before-selector":case"selector":if(Xd(-1)==="\\"){hd+=md;break}vd>0&&Yd(1)==="at-group"&&(vf("at-group-end"),_f()),vd>1&&Jd(),vd>0&&(vd=vd-1);break;case"double-string":case"single-string":case"comment":hd+=md;break}break;case'"':case"'":switch(Yd()){case"double-string":md==='"'&&Xd(-1)!=="\\"&&Jd();break;case"single-string":md==="'"&&Xd(-1)!=="\\"&&Jd();break;case"before-at-value":mf("at-value"),Zd(md==='"'?"double-string":"single-string");break;case"before-value":mf("value"),Zd(md==='"'?"double-string":"single-string");break;case"comment":break;default:Xd(-1)!=="\\"&&Zd(md==='"'?"double-string":"single-string")}hd+=md;break;case"/":switch(Yd()){case"comment":case"double-string":case"single-string":hd+=md;break;case"before-value":case"selector":case"name":case"value":if(Wd("*")){var gf=qd("*/");gf&&xf(gf+1)}else Yd()=="before-value"&&mf("value"),hd+=md;break;default:Wd("*")?(vf("comment"),Zd("comment"),xf()):hd+=md;break}break;case"*":switch(Yd()){case"comment":Wd("/")?(Ld.text=hd,xf(),_f(),Jd()):hd+=md;break;case"before-selector":hd+=md,vf("selector"),Zd("selector");break;case"before-value":mf("value"),hd+=md;break;default:hd+=md}break;case"@":switch(Yd()){case"comment":case"double-string":case"single-string":hd+=md;break;case"before-value":mf("value"),hd+=md;break;default:for(var Af=!1,Df,Of,Cf=0,If=jd.length;!Af&&Cf0&&(Ld.value=hd.trim(),_f()),mf("before-name");break;case"value-paren":hd+=md;break;case"at-value":Ld.value=hd.trim(),_f(),Jd();break;case"before-name":break;default:hd+=md;break}break;case"{":switch(Yd()){case"selector":if(Xd(-1)==="\\"){hd+=md;break}Ld.text=hd.trim(),_f(),mf("before-name"),vd=vd+1;break;case"at-group":switch(Ld.name=hd.trim(),Ld.type){case"font-face":case"viewport":case"page":Zd("before-name");break;default:Zd("before-selector")}_f(),vd=vd+1;break;case"name":case"at-rule":Ld.name=hd.trim(),_f(),Zd("before-name"),vd=vd+1;break;case"comment":case"double-string":case"single-string":hd+=md;break;case"before-value":mf("value"),hd+=md;break}break;case"}":switch(Yd()){case"before-name":case"name":case"before-value":case"value":hd&&(Ld.value=hd.trim()),Ld.name&&Ld.value&&_f(),vf("end"),_f(),Jd(),Yd()==="at-group"&&(vf("at-group-end"),_f(),Jd()),vd>0&&(vd=vd-1);break;case"at-group":case"before-selector":case"selector":if(Xd(-1)==="\\"){hd+=md;break}vd>0&&Yd(1)==="at-group"&&(vf("at-group-end"),_f()),vd>1&&Jd(),vd>0&&(vd=vd-1);break;case"double-string":case"single-string":case"comment":hd+=md;break}break;case'"':case"'":switch(Yd()){case"double-string":md==='"'&&Xd(-1)!=="\\"&&Jd();break;case"single-string":md==="'"&&Xd(-1)!=="\\"&&Jd();break;case"before-at-value":mf("at-value"),Zd(md==='"'?"double-string":"single-string");break;case"before-value":mf("value"),Zd(md==='"'?"double-string":"single-string");break;case"comment":break;default:Xd(-1)!=="\\"&&Zd(md==='"'?"double-string":"single-string")}hd+=md;break;case"/":switch(Yd()){case"comment":case"double-string":case"single-string":hd+=md;break;case"before-value":case"selector":case"name":case"value":if(Wd("*")){var gf=qd("*/");gf&&xf(gf+1)}else Yd()=="before-value"&&mf("value"),hd+=md;break;default:Wd("*")?(vf("comment"),Zd("comment"),xf()):hd+=md;break}break;case"*":switch(Yd()){case"comment":Wd("/")?(Ld.text=hd,xf(),_f(),Jd()):hd+=md;break;case"before-selector":hd+=md,vf("selector"),Zd("selector");break;case"before-value":mf("value"),hd+=md;break;default:hd+=md}break;case"@":switch(Yd()){case"comment":case"double-string":case"single-string":hd+=md;break;case"before-value":mf("value"),hd+=md;break;default:for(var Af=!1,Df,kf,Cf=0,If=jd.length;!Af&&Cf+)\\s*|(\\s+)|(+|\\*)|\\#(+)|\\.(+)|\\[\\s*(+)(?:\\s*([*^$!~|]?=)(?:\\s*(?:(["']?)(.*?)\\9)))?\\s*\\](?!\\])|(:+)(+)(?:\\((?:(?:(["'])([^\\13]*)\\13)|((?:\\([^)]+\\)|[^()]*)+))\\))?)`.replace(//,"["+escape$5(">+~`!@$%^&={}\\;/g,"(?:[\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])").replace(//g,"(?:[:\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])")),Part=function(ed){this.combinator=ed||" ",this.tag="*"};Part.prototype.toString=function(){if(!this.raw){var Ra="",ed,ud;if(Ra+=this.tag||"*",this.id&&(Ra+="#"+this.id),this.classes&&(Ra+="."+this.classList.join(".")),this.attributes)for(ed=0;ud=this.attributes[ed++];)Ra+="["+ud.name+(ud.operator?ud.operator+'"'+ud.value+'"':"")+"]";if(this.pseudos)for(ed=0;ud=this.pseudos[ed++];)Ra+=":"+ud.name,ud.value&&(Ra+="("+ud.value+")");this.raw=Ra}return this.raw};var Expression=function(){this.length=0};Expression.prototype.toString=function(){if(!this.raw){for(var Ra="",ed=0,ud;ud=this[ed++];)ed!==1&&(Ra+=" "),ud.combinator!==" "&&(Ra+=ud.combinator+" "),Ra+=ud;this.raw=Ra}return this.raw};var replacer=function(Ra,ed,ud,dd,hd,md,gd,yd,vd,Cd,wd,Nd,Ld,Ud,jd,Gd){var Yd,zd;if((ed||!this.length)&&(Yd=this[this.length++]=new Expression,ed))return"";if(Yd||(Yd=this[this.length-1]),(ud||dd||!Yd.length)&&(zd=Yd[Yd.length++]=new Part(ud)),zd||(zd=Yd[Yd.length-1]),hd)zd.tag=unescape$2(hd);else if(md)zd.id=unescape$2(md);else if(gd){var qd=unescape$2(gd),Wd=zd.classes||(zd.classes={});if(!Wd[qd]){Wd[qd]=escape$5(gd);var Xd=zd.classList||(zd.classList=[]);Xd.push(qd),Xd.sort()}}else Ld?(Gd=Gd||jd,(zd.pseudos||(zd.pseudos=[])).push({type:Nd.length==1?"class":"element",name:unescape$2(Ld),escapedName:escape$5(Ld),value:Gd?unescape$2(Gd):null,escapedValue:Gd?escape$5(Gd):null})):yd&&(wd=wd?escape$5(wd):null,(zd.attributes||(zd.attributes=[])).push({operator:vd,name:unescape$2(yd),escapedName:escape$5(yd),value:wd?unescape$2(wd):null,escapedValue:wd?escape$5(wd):null}));return""},Expressions=function(ed){this.length=0;for(var ud=this,dd=ed,hd;ed;){if(hd=ed.replace(slickRe,function(){return replacer.apply(ud,arguments)}),hd===ed)throw new Error(dd+" is an invalid expression");ed=hd}};Expressions.prototype.toString=function(){if(!this.raw){for(var Ra=[],ed=0,ud;ud=this[ed++];)Ra.push(ud);this.raw=Ra.join(", ")}return this.raw};var cache$2={},parse$3=function(Ra){return Ra==null?null:(Ra=(""+Ra).replace(/^\s+|\s+$/g,""),cache$2[Ra]||(cache$2[Ra]=new Expressions(Ra)))},parser$2=parse$3;(function(Ra,ed){var ud=parser$2;Ra.exports=dd;function dd(md,gd){this.text=md,this.spec=void 0,this.styleAttribute=gd||!1}dd.prototype.parsed=function(){return this.tokens||(this.tokens=hd(this.text)),this.tokens},dd.prototype.specificity=function(){var md=this.styleAttribute;return this.spec||(this.spec=gd(this.text,this.parsed())),this.spec;function gd(yd,vd){for(var Cd=vd||hd(yd),wd=[md?1:0,0,0,0],Nd=[],Ld=0;Ld-1})},Ra.compareFunc=function(hd,md){for(var gd=Math.min(hd.length,md.length),yd=0;ydmd[yd]?1:-1;return hd.length-md.length},Ra.compare=function(hd,md){return Ra.compareFunc(hd,md)==1?hd:md},Ra.getDefaultOptions=function(hd){var md=Object.assign({extraCss:"",insertPreservedExtraCss:!0,applyStyleTags:!0,removeStyleTags:!0,preserveMediaQueries:!0,preserveFontFaces:!0,preserveKeyFrames:!0,preservePseudos:!0,applyWidthAttributes:!0,applyHeightAttributes:!0,applyAttributesTableElements:!0,resolveCSSVariables:!0,url:""},hd);return md.webResources=md.webResources||{},md}}(utils$4)),utils$4}(function(Ra){var ed=require$$0$2;requireUtils$1();var ud=function(hd,md,gd){const{xmlMode:yd,...vd}=md;return md=Object.assign({xml:{decodeEntities:!1,xmlMode:yd}},vd),hd=gd(hd),ed.load(hd,md)},dd=function(){var hd=[],md=function(yd){var vd=Ra.exports.codeBlocks;return Object.keys(vd).forEach(function(Cd){var wd=new RegExp(vd[Cd].start+"([\\S\\s]*?)"+vd[Cd].end,"g");yd=yd.replace(wd,function(Nd,Ld){return hd.push(Nd),"JUICE_CODE_BLOCK_"+(hd.length-1)+"_"})}),yd},gd=function(yd){for(var vd=0;vd"},HBS:{start:"{{",end:"}}"}}})(cheerio$1);var cheerioExports=cheerio$1.exports,numbers$1={};numbers$1.romanize=function(Ra){if(isNaN(Ra))return NaN;for(var ed=String(+Ra).split(""),ud=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"],dd="",hd=3;hd--;)dd=(ud[+ed.pop()+hd*10]||"")+dd;return Array(+ed.join("")+1).join("M")+dd};numbers$1.alphanumeric=function(Ra){for(var ed="",ud;Ra>0;)ud=(Ra-1)%26,ed=String.fromCharCode(65+ud)+ed,Ra=(Ra-ud)/26|0;return ed||void 0};const uniqueString=Ra=>{let ed="";do ed=(Math.random()+1).toString(36).substring(2);while(Ra.indexOf(ed)!==-1);return ed},replaceVariables=(Ra,ed)=>{let ud=/([a-z\-]+)\s*\(\s*([^\(\)]*?)\s*(?:,\s*([^\(\)]*?)\s*)?\s*\)/i,dd=[],hd,md=uniqueString(ed);for(;(hd=ud.exec(ed))!==null;){let yd=`${dd.length}`;if(hd[1].toLowerCase()=="var"){const Cd=findVariableValue(Ra,hd[2]);if(Cd){ed=ed.replace(hd[0],Cd);continue}if(hd[3]){ed=ed.replace(hd[0],hd[3]);continue}}let vd=`${md}${yd.padStart(5,"-")}`;ed=ed.replace(hd[0],vd),dd.push({placeholder:vd,replace:hd[0]})}for(var gd=dd.length-1;gd>=0;gd--){const yd=dd[gd];ed=ed.replace(yd.placeholder,yd.replace)}return ed},findVariableValue=(Ra,ed)=>{for(;Ra;){if(Ra.styleProps&&ed in Ra.styleProps)return Ra.styleProps[ed].value;var Ra=Ra.pseudoElementParent||Ra.parent}};var variables$1={replaceVariables,findVariableValue},{decode:decode$1}=lib$4,utils$3=requireUtils$1(),numbers=numbers$1,variables=variables$1,inline$2=function(ed){ed.ignoredPseudos=["hover","active","focus","visited","link"],ed.widthElements=["TABLE","TD","TH","IMG"],ed.heightElements=["TABLE","TD","TH","IMG"],ed.tableElements=["TABLE","TH","TR","TD","CAPTION","COLGROUP","COL","THEAD","TBODY","TFOOT"],ed.nonVisualElements=["HEAD","TITLE","BASE","LINK","STYLE","META","SCRIPT","NOSCRIPT"],ed.styleToAttribute={"background-color":"bgcolor","background-image":"background","text-align":"align","vertical-align":"valign"},ed.excludedProperties=[],ed.juiceDocument=Cd,ed.inlineDocument=ud;function ud(Ld,Ud,jd){jd=jd||{};var Gd=utils$3.parseCSS(Ud),Yd=[],zd="style",qd={};if(jd.styleAttributeName&&(zd=jd.styleAttributeName),Gd.forEach(Jd),Yd.forEach(Zd),jd.inlinePseudoElements&&Yd.forEach(mf),jd.applyWidthAttributes&&Yd.forEach(function(gf){xf(gf,"width")}),jd.applyHeightAttributes&&Yd.forEach(function(gf){xf(gf,"height")}),jd.applyAttributesTableElements&&Yd.forEach(vf),jd.insertPreservedExtraCss&&jd.extraCss){var Wd=utils$3.getPreservedText(jd.extraCss,{mediaQueries:jd.preserveMediaQueries,fontFaces:jd.preserveFontFaces,keyFrames:jd.preserveKeyFrames});if(Wd){var Xd=null;jd.insertPreservedExtraCss!==!0?Xd=Ld(jd.insertPreservedExtraCss):(Xd=Ld("head"),Xd.length||(Xd=Ld("body")),Xd.length||(Xd=Ld.root())),Xd.first().append("")}}function Jd(gf){var Af=gf[0],Df=gf[1],Of=new utils$3.Selector(Af),Cf=Of.parsed();if(Cf){for(var If=gd(Cf),Ff=0;Ff=0)return}}if(If){var Mh=Cf[Cf.length-1],lh=Mh.pseudos;Mh.pseudos=vd(Mh.pseudos),Af=Cf.toString(),Mh.pseudos=lh}var rh;try{rh=Ld(Af)}catch{return}rh.each(function(){var mh=this;if(mh.name&&ed.nonVisualElements.indexOf(mh.name.toUpperCase())>=0)return;if(mh.counterProps||(mh.counterProps=mh.parent&&mh.parent.counterProps?Object.create(mh.parent.counterProps):{}),If){var xh="pseudo"+If,Eh=mh[xh];Eh||(Eh=mh[xh]=Ld("").get(0),Eh.pseudoElementType=If,Eh.pseudoElementParent=mh,Eh.counterProps=mh.counterProps,mh[xh]=Eh),mh=Eh}if(!mh.styleProps){if(mh.styleProps={},Ld(mh).attr(zd)){var kf=Ld(mh).attr(zd),Rf=jd.decodeStyleAttributes?decode$1(kf):kf,_h="* { "+Rf+" } ";th(utils$3.parseCSS(_h)[0][1],new utils$3.Selector("")}}function Jd(gf){var Af=gf[0],Df=gf[1],kf=new utils$3.Selector(Af),Cf=kf.parsed();if(Cf){for(var If=gd(Cf),Ff=0;Ff=0)return}}if(If){var Mh=Cf[Cf.length-1],lh=Mh.pseudos;Mh.pseudos=vd(Mh.pseudos),Af=Cf.toString(),Mh.pseudos=lh}var rh;try{rh=Ld(Af)}catch{return}rh.each(function(){var mh=this;if(mh.name&&ed.nonVisualElements.indexOf(mh.name.toUpperCase())>=0)return;if(mh.counterProps||(mh.counterProps=mh.parent&&mh.parent.counterProps?Object.create(mh.parent.counterProps):{}),If){var xh="pseudo"+If,Sh=mh[xh];Sh||(Sh=mh[xh]=Ld("").get(0),Sh.pseudoElementType=If,Sh.pseudoElementParent=mh,Sh.counterProps=mh.counterProps,mh[xh]=Sh),mh=Sh}if(!mh.styleProps){if(mh.styleProps={},Ld(mh).attr(zd)){var Of=Ld(mh).attr(zd),Rf=jd.decodeStyleAttributes?decode$1(Of):Of,yh="* { "+Rf+" } ";th(utils$3.parseCSS(yh)[0][1],new utils$3.Selector(" - `),ig+=` + `),pg+=` - `,Ld.value=mh.createContainer(ig)},kf=()=>{const Lm=css2json(Cf.value.getValue()),Wm=customCssWithTemplate(Lm,Yd.value,customizeTheme(themeMap[Ud.value],{fontSize:Wd.value,color:Yd.value}));mh.setOptions({theme:Wm}),Eh()};onMounted(()=>{const Lm=document.querySelector("#cssEditor");Lm.value=Sh().content;const Wm=Ra.value?"darcula":"xq-light";Cf.value=markRaw(CodeMirror.fromTextArea(Lm,{mode:"css",theme:Wm,lineNumbers:!1,lineWrapping:!0,styleActiveLine:!0,matchBrackets:!0,autofocus:!0,extraKeys:{[`${shiftKey}-${altKey}-F`]:function(yg){formatDoc(yg.getValue(),"css").then(jh=>{Sh().content=jh,yg.setValue(jh)})}}})),Cf.value.on("keyup",(ig,yg)=>{(yg.keyCode>=65&&yg.keyCode<=90||yg.keyCode===189)&&ig.showHint(yg)}),Cf.value.on("update",()=>{kf(),Sh().content=Cf.value.getValue()})}),watch(Ra,()=>{var Wm,ig;const Lm=Ra.value?"darcula":"xq-light";(ig=(Wm=toRaw(Cf.value))==null?void 0:Wm.setOption)==null||ig.call(Wm,"theme",Lm)});const Rf=()=>{gd.value=!1,ud.value=!0,vd.value=!1,Ud.value=themeOptions[0].value,jd.value=fontFamilyOptions[0].value,jd.value=fontFamilyOptions[0].value,Gd.value=fontSizeOptions[2].value,Yd.value=colorOptions[0].value,zd.value=codeBlockThemeOptions[23].value,qd.value=legendOptions[3].value,sh.value={active:"方案 1",tabs:[{title:"方案 1",name:"方案 1",content:Ff.value||DEFAULT_CSS_CONTENT}]},Cf.value.setValue(DEFAULT_CSS_CONTENT),kf(),Eh(),Ke.success("样式重置成功~")},_h=Lm=>(...Wm)=>{Lm(...Wm),Eh()},Ph=(Lm,Wm)=>{const ig=themeMap[Ud.value],yg=Number(Lm.replace("px",""));return customCssWithTemplate(css2json(Sh().content),Wm,customizeTheme(ig,{fontSize:yg,color:Wm}))},sm=_h(Lm=>{mh.setOptions({theme:customCssWithTemplate(css2json(Sh().content),Yd.value,customizeTheme(themeMap[Lm],{fontSize:Wd.value}))}),Ud.value=Lm}),th=_h(Lm=>{mh.setOptions({fonts:Lm}),jd.value=Lm}),oh=_h(Lm=>{const Wm=Ph(Lm,Yd.value);mh.setOptions({size:Lm,theme:Wm}),Gd.value=Lm}),Zh=_h(Lm=>{const Wm=Ph(Gd.value,Lm);mh.setOptions({theme:Wm}),Yd.value=Lm}),Sm=_h(Lm=>{zd.value=Lm}),$h=_h(Lm=>{qd.value=Lm}),Vf=_h(()=>{dd()}),nh=_h(()=>{yd()}),Lh=_h(()=>{Cd()}),Ih=_h(()=>{Nd()}),om=()=>{exportHTML(Yd.value),document.querySelector("#output").innerHTML=Ld.value},zh=()=>{downloadMD(Xd.value.getValue())},Om=()=>{const Lm=document.body,Wm=document.createElement("input");Wm.type="file",Wm.name="filename",Wm.accept=".md",Wm.onchange=()=>{const ig=Wm.files[0];if(!ig)return;const yg=new FileReader;yg.readAsText(ig),yg.onload=jh=>{Xd.value.setValue(jh.target.result),Ke.success("文档导入成功")}},Lm.appendChild(Wm),Wm.click(),Lm.removeChild(Wm)},Im=ref$1(!1);return{isDark:Ra,toggleDark:ed,isEditOnLeft:hd,toggleEditOnLeft:md,isMacCodeBlock:ud,isCiteStatus:gd,citeStatusChanged:nh,isUseIndent:wd,useIndentChanged:Ih,isCountStatus:vd,countStatusChanged:Lh,output:Ld,editor:Xd,cssEditor:Cf,theme:Ud,fontFamily:jd,fontSize:Gd,primaryColor:Yd,codeBlockTheme:zd,legend:qd,readingTime:xh,editorRefresh:Eh,themeChanged:sm,fontChanged:th,sizeChanged:oh,colorChanged:Zh,codeBlockThemeChanged:Sm,legendChanged:$h,macCodeBlockChanged:Vf,formatContent:Df,exportEditorContent2HTML:om,exportEditorContent2MD:zh,importMarkdownContent:Om,isOpenConfirmDialog:Im,resetStyleConfirm:()=>{Im.value=!0},resetStyle:Rf,cssContentConfig:sh,addCssContentTab:lh,validatorTabName:rh,setCssEditorValue:If,tabChanged:yh,renameTab:Mh,posts:xf,currentPostIndex:_f,addPost:vf,renamePost:gf,delPost:Af,isOpenPostSlider:mf,isOpenRightSlider:Zd}}),useDisplayStore=defineStore("display",()=>{const Ra=ref$1(!1),ed=useToggle(Ra),ud=ref$1(!1),dd=useToggle(ud),hd=ref$1(!1),md=useToggle(hd);return{isShowCssEditor:Ra,toggleShowCssEditor:ed,isShowInsertFormDialog:ud,toggleShowInsertFormDialog:dd,isShowUploadImgDialog:hd,toggleShowUploadImgDialog:md}}),_hoisted_1$e={class:"space-x-2 flex justify-between"},_hoisted_2$9={class:"space-y-2 border-1 rounded p-2"},_sfc_main$15=defineComponent({__name:"InsertFormDialog",setup(Ra){const ed=useStore(),ud=useDisplayStore(),{toggleShowInsertFormDialog:dd}=ud,hd=ref$1(3),md=ref$1(3),gd=ref$1({});function yd(){hd.value=3,md.value=3,gd.value={}}function vd(){const wd=createTable({rows:hd.value,cols:md.value,data:gd.value});toRaw(ed.editor).replaceSelection(` + `,Ld.value=mh.createContainer(pg)},Of=()=>{const jm=css2json(Cf.value.getValue()),rg=customCssWithTemplate(jm,Yd.value,customizeTheme(themeMap[Ud.value],{fontSize:Wd.value,color:Yd.value}));mh.setOptions({theme:rg}),Sh()};onMounted(()=>{const jm=document.querySelector("#cssEditor");jm.value=Eh().content;const rg=Ra.value?"darcula":"xq-light";Cf.value=markRaw(CodeMirror.fromTextArea(jm,{mode:"css",theme:rg,lineNumbers:!1,lineWrapping:!0,styleActiveLine:!0,matchBrackets:!0,autofocus:!0,extraKeys:{[`${shiftKey}-${altKey}-F`]:function(jh){formatDoc(jh.getValue(),"css").then(Pf=>{Eh().content=Pf,jh.setValue(Pf)})}}})),Cf.value.on("keyup",(pg,jh)=>{(jh.keyCode>=65&&jh.keyCode<=90||jh.keyCode===189)&&pg.showHint(jh)}),Cf.value.on("update",()=>{Of(),Eh().content=Cf.value.getValue()})}),watch(Ra,()=>{var rg,pg;const jm=Ra.value?"darcula":"xq-light";(pg=(rg=toRaw(Cf.value))==null?void 0:rg.setOption)==null||pg.call(rg,"theme",jm)});const Rf=()=>{gd.value=!1,ud.value=!0,vd.value=!1,Ud.value=themeOptions[0].value,jd.value=fontFamilyOptions[0].value,jd.value=fontFamilyOptions[0].value,Gd.value=fontSizeOptions[2].value,Yd.value=colorOptions[0].value,zd.value=codeBlockThemeOptions[23].value,qd.value=legendOptions[3].value,oh.value={active:"方案 1",tabs:[{title:"方案 1",name:"方案 1",content:Ff.value||DEFAULT_CSS_CONTENT}]},Cf.value.setValue(DEFAULT_CSS_CONTENT),Of(),Sh(),Ke.success("样式重置成功~")},yh=jm=>(...rg)=>{jm(...rg),Sh()},Ph=(jm,rg)=>{const pg=themeMap[Ud.value],jh=Number(jm.replace("px",""));return customCssWithTemplate(css2json(Eh().content),rg,customizeTheme(pg,{fontSize:jh,color:rg}))},sm=yh(jm=>{mh.setOptions({theme:customCssWithTemplate(css2json(Eh().content),Yd.value,customizeTheme(themeMap[jm],{fontSize:Wd.value}))}),Ud.value=jm}),th=yh(jm=>{mh.setOptions({fonts:jm}),jd.value=jm}),sh=yh(jm=>{const rg=Ph(jm,Yd.value);mh.setOptions({size:jm,theme:rg}),Gd.value=jm}),Zh=yh(jm=>{const rg=Ph(Gd.value,jm);mh.setOptions({theme:rg}),Yd.value=jm}),Sm=yh(jm=>{zd.value=jm}),$h=yh(jm=>{qd.value=jm}),Vf=yh(()=>{dd()}),nh=yh(()=>{yd()}),Lh=yh(()=>{Cd()}),Ih=yh(()=>{Nd()}),om=()=>{exportHTML(Yd.value),document.querySelector("#output").innerHTML=Ld.value},zh=()=>{downloadMD(Xd.value.getValue())},Mm=()=>{Xd.value.setValue(DEFAULT_CONTENT),Ke.success("文档已重置为默认文档")},Nm=()=>{const jm=document.body,rg=document.createElement("input");rg.type="file",rg.name="filename",rg.accept=".md",rg.onchange=()=>{const pg=rg.files[0];if(!pg)return;const jh=new FileReader;jh.readAsText(pg),jh.onload=Pf=>{Xd.value.setValue(Pf.target.result),Ke.success("文档导入成功")}},jm.appendChild(rg),rg.click(),jm.removeChild(rg)},Zm=ref$1(!1);return{isDark:Ra,toggleDark:ed,isEditOnLeft:hd,toggleEditOnLeft:md,isMacCodeBlock:ud,isCiteStatus:gd,citeStatusChanged:nh,isUseIndent:wd,useIndentChanged:Ih,isCountStatus:vd,countStatusChanged:Lh,output:Ld,editor:Xd,cssEditor:Cf,theme:Ud,fontFamily:jd,fontSize:Gd,primaryColor:Yd,codeBlockTheme:zd,legend:qd,readingTime:xh,editorRefresh:Sh,themeChanged:sm,fontChanged:th,sizeChanged:sh,colorChanged:Zh,codeBlockThemeChanged:Sm,legendChanged:$h,macCodeBlockChanged:Vf,formatContent:Df,exportEditorContent2HTML:om,exportEditorContent2MD:zh,importMarkdownContent:Nm,importDefaultContent:Mm,isOpenConfirmDialog:Zm,resetStyleConfirm:()=>{Zm.value=!0},resetStyle:Rf,cssContentConfig:oh,addCssContentTab:lh,validatorTabName:rh,setCssEditorValue:If,tabChanged:_h,renameTab:Mh,posts:xf,currentPostIndex:_f,addPost:vf,renamePost:gf,delPost:Af,isOpenPostSlider:mf,isOpenRightSlider:Zd}}),useDisplayStore=defineStore("display",()=>{const Ra=ref$1(!1),ed=useToggle(Ra),ud=ref$1(!1),dd=useToggle(ud),hd=ref$1(!1),md=useToggle(hd);return{isShowCssEditor:Ra,toggleShowCssEditor:ed,isShowInsertFormDialog:ud,toggleShowInsertFormDialog:dd,isShowUploadImgDialog:hd,toggleShowUploadImgDialog:md}}),_hoisted_1$e={class:"space-x-2 flex justify-between"},_hoisted_2$9={class:"space-y-2 border-1 rounded p-2"},_sfc_main$15=defineComponent({__name:"InsertFormDialog",setup(Ra){const ed=useStore(),ud=useDisplayStore(),{toggleShowInsertFormDialog:dd}=ud,hd=ref$1(3),md=ref$1(3),gd=ref$1({});function yd(){hd.value=3,md.value=3,gd.value={}}function vd(){const wd=createTable({rows:hd.value,cols:md.value,data:gd.value});toRaw(ed.editor).replaceSelection(` ${wd} `,"end"),yd(),dd()}function Cd(wd){wd||dd(!1)}return(wd,Nd)=>{const Ld=_sfc_main$16,Ud=_sfc_main$17,jd=_sfc_main$18,Gd=_sfc_main$19,Yd=_sfc_main$1a,zd=_sfc_main$1b,qd=_sfc_main$1c,Wd=_sfc_main$1d,Xd=_sfc_main$1e,Jd=_sfc_main$1o,Zd=_sfc_main$1f,mf=_sfc_main$1g,xf=_sfc_main$1h;return openBlock(),createBlock(xf,{open:unref(ud).isShowInsertFormDialog,"onUpdate:open":Cd},{default:withCtx(()=>[createVNode(mf,null,{default:withCtx(()=>[createVNode(Ud,null,{default:withCtx(()=>[createVNode(Ld,null,{default:withCtx(()=>Nd[3]||(Nd[3]=[createTextVNode("插入表格")])),_:1})]),_:1}),createBaseVNode("div",_hoisted_1$e,[createVNode(Wd,{modelValue:unref(hd),"onUpdate:modelValue":Nd[0]||(Nd[0]=_f=>isRef(hd)?hd.value=_f:null),min:1,max:100},{default:withCtx(()=>[createVNode(jd,null,{default:withCtx(()=>Nd[4]||(Nd[4]=[createTextVNode("行数")])),_:1}),createVNode(qd,null,{default:withCtx(()=>[createVNode(Gd),createVNode(Yd),createVNode(zd)]),_:1})]),_:1},8,["modelValue"]),createVNode(Wd,{modelValue:unref(md),"onUpdate:modelValue":Nd[1]||(Nd[1]=_f=>isRef(md)?md.value=_f:null),min:1,max:100},{default:withCtx(()=>[createVNode(jd,null,{default:withCtx(()=>Nd[5]||(Nd[5]=[createTextVNode("列数")])),_:1}),createVNode(qd,null,{default:withCtx(()=>[createVNode(Gd),createVNode(Yd),createVNode(zd)]),_:1})]),_:1},8,["modelValue"])]),createBaseVNode("div",_hoisted_2$9,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(hd)+1,_f=>(openBlock(),createElementBlock("div",{key:_f,class:normalizeClass([{"head-style":_f===1},"space-x-2 flex"])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(md),vf=>(openBlock(),createBlock(Xd,{key:vf,modelValue:unref(gd)[`k_${_f-1}_${vf-1}`],"onUpdate:modelValue":gf=>unref(gd)[`k_${_f-1}_${vf-1}`]=gf,class:normalizeClass({"bg-gray-100 dark:bg-gray-900":_f===1}),placeholder:_f===1?"表头":""},null,8,["modelValue","onUpdate:modelValue","class","placeholder"]))),128))],2))),128))]),createVNode(Zd,null,{default:withCtx(()=>[createVNode(Jd,{variant:"outline",onClick:Nd[2]||(Nd[2]=_f=>unref(dd)(!1))},{default:withCtx(()=>Nd[6]||(Nd[6]=[createTextVNode(" 取 消 ")])),_:1}),createVNode(Jd,{onClick:vd},{default:withCtx(()=>Nd[7]||(Nd[7]=[createTextVNode(" 确 定 ")])),_:1})]),_:1})]),_:1})]),_:1},8,["open"])}}}),_sfc_main$14=defineComponent({__name:"Tabs",props:{defaultValue:{},orientation:{},dir:{},activationMode:{},modelValue:{},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(Ra,{emit:ed}){const hd=Se$6(Ra,ed);return(md,gd)=>(openBlock(),createBlock(unref(Cg),normalizeProps(guardReactiveProps(unref(hd))),{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},16))}}),_hoisted_1$d={class:"space-y-4"},_hoisted_2$8={class:"h-60 border"},_sfc_main$13=defineComponent({__name:"CustomUploadForm",setup(Ra){const ed=useStore(),ud=useLocalStorage("formCustomConfig",removeLeft(` const {file, util, okCb, errCb} = CUSTOM_ARG @@ -1099,16 +1099,16 @@ ${wd} * vee-validate v4.15.0 * (c) 2024 Abdelrahman Awad * @license MIT - */function isCallable(Ra){return typeof Ra=="function"}function isNullOrUndefined(Ra){return Ra==null}const isObject$4=Ra=>Ra!==null&&!!Ra&&typeof Ra=="object"&&!Array.isArray(Ra);function isIndex$1(Ra){return Number(Ra)>=0}function toNumber$3(Ra){const ed=parseFloat(Ra);return isNaN(ed)?Ra:ed}function isObjectLike$1(Ra){return typeof Ra=="object"&&Ra!==null}function getTag$1(Ra){return Ra==null?Ra===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(Ra)}function isPlainObject$2(Ra){if(!isObjectLike$1(Ra)||getTag$1(Ra)!=="[object Object]")return!1;if(Object.getPrototypeOf(Ra)===null)return!0;let ed=Ra;for(;Object.getPrototypeOf(ed)!==null;)ed=Object.getPrototypeOf(ed);return Object.getPrototypeOf(Ra)===ed}function merge$3(Ra,ed){return Object.keys(ed).forEach(ud=>{if(isPlainObject$2(ed[ud])&&isPlainObject$2(Ra[ud])){Ra[ud]||(Ra[ud]={}),merge$3(Ra[ud],ed[ud]);return}Ra[ud]=ed[ud]}),Ra}function normalizeFormPath(Ra){const ed=Ra.split(".");if(!ed.length)return"";let ud=String(ed[0]);for(let dd=1;ddisContainerValue(hd)&&md in hd?hd[md]:ud,Ra):ud}function setInPath(Ra,ed,ud){if(isNotNestedPath(ed)){Ra[cleanupNonNestedPath(ed)]=ud;return}const dd=ed.split(/\.|\[(\d+)\]/).filter(Boolean);let hd=Ra;for(let md=0;mdgetFromPath(Ra,ud.slice(0,gd).join(".")));for(let md=hd.length-1;md>=0;md--)if(isEmptyContainer(hd[md])){if(md===0){unset(Ra,ud[0]);continue}unset(hd[md-1],ud[md-1])}}function keysOf(Ra){return Object.keys(Ra)}function injectWithSelf(Ra,ed=void 0){const ud=getCurrentInstance();return(ud==null?void 0:ud.provides[Ra])||inject(Ra,ed)}function resolveNextCheckboxValue(Ra,ed,ud){if(Array.isArray(Ra)){const dd=[...Ra],hd=dd.findIndex(md=>isEqual(md,ed));return hd>=0?dd.splice(hd,1):dd.push(ed),dd}return isEqual(Ra,ed)?ud:ed}function debounceAsync(Ra,ed=0){let ud=null,dd=[];return function(...hd){return ud&&clearTimeout(ud),ud=setTimeout(()=>{const md=Ra(...hd);dd.forEach(gd=>gd(md)),dd=[]},ed),new Promise(md=>dd.push(md))}}function applyModelModifiers(Ra,ed){return isObject$4(ed)&&ed.number?toNumber$3(Ra):Ra}function withLatest(Ra,ed){let ud;return async function(...hd){const md=Ra(...hd);ud=md;const gd=await md;return md!==ud?gd:(ud=void 0,ed(gd,hd))}}function normalizeErrorItem(Ra){return Array.isArray(Ra)?Ra:Ra?[Ra]:[]}function omit(Ra,ed){const ud={};for(const dd in Ra)ed.includes(dd)||(ud[dd]=Ra[dd]);return ud}function debounceNextTick(Ra){let ed=null,ud=[];return function(...dd){const hd=nextTick$1(()=>{if(ed!==hd)return;const md=Ra(...dd);ud.forEach(gd=>gd(md)),ud=[],ed=null});return ed=hd,new Promise(md=>ud.push(md))}}function normalizeChildren(Ra,ed,ud){return ed.slots.default?typeof Ra=="string"||!Ra?ed.slots.default(ud()):{default:()=>{var dd,hd;return(hd=(dd=ed.slots).default)===null||hd===void 0?void 0:hd.call(dd,ud())}}:ed.slots.default}function getBoundValue(Ra){if(hasValueBinding(Ra))return Ra._value}function hasValueBinding(Ra){return"_value"in Ra}function parseInputValue(Ra){return Ra.type==="number"||Ra.type==="range"?Number.isNaN(Ra.valueAsNumber)?Ra.value:Ra.valueAsNumber:Ra.value}function normalizeEventValue(Ra){if(!isEvent(Ra))return Ra;const ed=Ra.target;if(hasCheckedAttr(ed.type)&&hasValueBinding(ed))return getBoundValue(ed);if(ed.type==="file"&&ed.files){const ud=Array.from(ed.files);return ed.multiple?ud:ud[0]}if(isNativeMultiSelect(ed))return Array.from(ed.options).filter(ud=>ud.selected&&!ud.disabled).map(getBoundValue);if(isNativeSelect(ed)){const ud=Array.from(ed.options).find(dd=>dd.selected);return ud?getBoundValue(ud):ed.value}return parseInputValue(ed)}function normalizeRules(Ra){const ed={};return Object.defineProperty(ed,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),Ra?isObject$4(Ra)&&Ra._$$isNormalized?Ra:isObject$4(Ra)?Object.keys(Ra).reduce((ud,dd)=>{const hd=normalizeParams(Ra[dd]);return Ra[dd]!==!1&&(ud[dd]=buildParams(hd)),ud},ed):typeof Ra!="string"?ed:Ra.split("|").reduce((ud,dd)=>{const hd=parseRule(dd);return hd.name&&(ud[hd.name]=buildParams(hd.params)),ud},ed):ed}function normalizeParams(Ra){return Ra===!0?[]:Array.isArray(Ra)||isObject$4(Ra)?Ra:[Ra]}function buildParams(Ra){const ed=ud=>typeof ud=="string"&&ud[0]==="@"?createLocator(ud.slice(1)):ud;return Array.isArray(Ra)?Ra.map(ed):Ra instanceof RegExp?[Ra]:Object.keys(Ra).reduce((ud,dd)=>(ud[dd]=ed(Ra[dd]),ud),{})}const parseRule=Ra=>{let ed=[];const ud=Ra.split(":")[0];return Ra.includes(":")&&(ed=Ra.split(":").slice(1).join(":").split(",")),{name:ud,params:ed}};function createLocator(Ra){const ed=ud=>{var dd;return(dd=getFromPath(ud,Ra))!==null&&dd!==void 0?dd:ud[Ra]};return ed.__locatorRef=Ra,ed}function extractLocators(Ra){return Array.isArray(Ra)?Ra.filter(isLocator):keysOf(Ra).filter(ed=>isLocator(Ra[ed])).map(ed=>Ra[ed])}const DEFAULT_CONFIG={generateMessage:({field:Ra})=>`${Ra} is not valid.`,bails:!0,validateOnBlur:!0,validateOnChange:!0,validateOnInput:!1,validateOnModelUpdate:!0};let currentConfig=Object.assign({},DEFAULT_CONFIG);const getConfig$1=()=>currentConfig;async function validate$1(Ra,ed,ud={}){const dd=ud==null?void 0:ud.bails,hd={name:(ud==null?void 0:ud.name)||"{field}",rules:ed,label:ud==null?void 0:ud.label,bails:dd??!0,formData:(ud==null?void 0:ud.values)||{}},md=await _validate(hd,Ra);return Object.assign(Object.assign({},md),{valid:!md.errors.length})}async function _validate(Ra,ed){const ud=Ra.rules;if(isTypedSchema(ud)||isYupValidator(ud))return validateFieldWithTypedSchema(ed,Object.assign(Object.assign({},Ra),{rules:ud}));if(isCallable(ud)||Array.isArray(ud)){const yd={field:Ra.label||Ra.name,name:Ra.name,label:Ra.label,form:Ra.formData,value:ed},vd=Array.isArray(ud)?ud:[ud],Cd=vd.length,wd=[];for(let Nd=0;Nd{const Cd=vd.path||"";return yd[Cd]||(yd[Cd]={errors:[],path:Cd}),yd[Cd].errors.push(...vd.errors),yd},{});return{errors:Object.values(gd)}}}}}async function validateFieldWithTypedSchema(Ra,ed){const dd=await(isTypedSchema(ed.rules)?ed.rules:yupToTypedSchema(ed.rules)).parse(Ra,{formData:ed.formData}),hd=[];for(const md of dd.errors)md.errors.length&&hd.push(...md.errors);return{value:dd.value,errors:hd}}async function _test(Ra,ed,ud){const dd=resolveRule(ud.name);if(!dd)throw new Error(`No such validator '${ud.name}' exists.`);const hd=fillTargetValues(ud.params,Ra.formData),md={field:Ra.label||Ra.name,name:Ra.name,label:Ra.label,value:ed,form:Ra.formData,rule:Object.assign(Object.assign({},ud),{params:hd})},gd=await dd(ed,hd,md);return typeof gd=="string"?{error:gd}:{error:gd?void 0:_generateFieldError(md)}}function _generateFieldError(Ra){const ed=getConfig$1().generateMessage;return ed?ed(Ra):"Field is invalid"}function fillTargetValues(Ra,ed){const ud=dd=>isLocator(dd)?dd(ed):dd;return Array.isArray(Ra)?Ra.map(ud):Object.keys(Ra).reduce((dd,hd)=>(dd[hd]=ud(Ra[hd]),dd),{})}async function validateTypedSchema(Ra,ed){const dd=await(isTypedSchema(Ra)?Ra:yupToTypedSchema(Ra)).parse(klona(ed),{formData:klona(ed)}),hd={},md={};for(const gd of dd.errors){const yd=gd.errors,vd=(gd.path||"").replace(/\["(\d+)"\]/g,(Cd,wd)=>`[${wd}]`);hd[vd]={valid:!yd.length,errors:yd},yd.length&&(md[vd]=yd[0])}return{valid:!dd.errors.length,results:hd,errors:md,values:dd.value,source:"schema"}}async function validateObjectSchema(Ra,ed,ud){const hd=keysOf(Ra).map(async Cd=>{var wd,Nd,Ld;const Ud=(wd=ud==null?void 0:ud.names)===null||wd===void 0?void 0:wd[Cd],jd=await validate$1(getFromPath(ed,Cd),Ra[Cd],{name:(Ud==null?void 0:Ud.name)||Cd,label:Ud==null?void 0:Ud.label,values:ed,bails:(Ld=(Nd=ud==null?void 0:ud.bailsMap)===null||Nd===void 0?void 0:Nd[Cd])!==null&&Ld!==void 0?Ld:!0});return Object.assign(Object.assign({},jd),{path:Cd})});let md=!0;const gd=await Promise.all(hd),yd={},vd={};for(const Cd of gd)yd[Cd.path]={valid:Cd.valid,errors:Cd.errors},Cd.valid||(md=!1,vd[Cd.path]=Cd.errors[0]);return{valid:md,results:yd,errors:vd,source:"schema"}}let ID_COUNTER=0;function useFieldState(Ra,ed){const{value:ud,initialValue:dd,setInitialValue:hd}=_useFieldValue(Ra,ed.modelValue,ed.form);if(!ed.form){let vd=function(Ud){var jd;"value"in Ud&&(ud.value=Ud.value),"errors"in Ud&&wd(Ud.errors),"touched"in Ud&&(Ld.touched=(jd=Ud.touched)!==null&&jd!==void 0?jd:Ld.touched),"initialValue"in Ud&&hd(Ud.initialValue)};const{errors:Cd,setErrors:wd}=createFieldErrors(),Nd=ID_COUNTER>=Number.MAX_SAFE_INTEGER?0:++ID_COUNTER,Ld=createFieldMeta(ud,dd,Cd,ed.schema);return{id:Nd,path:Ra,value:ud,initialValue:dd,meta:Ld,flags:{pendingUnmount:{[Nd]:!1},pendingReset:!1},errors:Cd,setState:vd}}const md=ed.form.createPathState(Ra,{bails:ed.bails,label:ed.label,type:ed.type,validate:ed.validate,schema:ed.schema}),gd=computed(()=>md.errors);function yd(vd){var Cd,wd,Nd;"value"in vd&&(ud.value=vd.value),"errors"in vd&&((Cd=ed.form)===null||Cd===void 0||Cd.setFieldError(unref(Ra),vd.errors)),"touched"in vd&&((wd=ed.form)===null||wd===void 0||wd.setFieldTouched(unref(Ra),(Nd=vd.touched)!==null&&Nd!==void 0?Nd:!1)),"initialValue"in vd&&hd(vd.initialValue)}return{id:Array.isArray(md.id)?md.id[md.id.length-1]:md.id,path:Ra,value:ud,errors:gd,meta:md,initialValue:dd,flags:md.__flags,setState:yd}}function _useFieldValue(Ra,ed,ud){const dd=ref$1(unref(ed));function hd(){return ud?getFromPath(ud.initialValues.value,unref(Ra),unref(dd)):unref(dd)}function md(Cd){if(!ud){dd.value=Cd;return}ud.setFieldInitialValue(unref(Ra),Cd,!0)}const gd=computed(hd);if(!ud)return{value:ref$1(hd()),initialValue:gd,setInitialValue:md};const yd=resolveModelValue(ed,ud,gd,Ra);return ud.stageInitialValue(unref(Ra),yd,!0),{value:computed({get(){return getFromPath(ud.values,unref(Ra))},set(Cd){ud.setFieldValue(unref(Ra),Cd,!1)}}),initialValue:gd,setInitialValue:md}}function resolveModelValue(Ra,ed,ud,dd){return isRef(Ra)?unref(Ra):Ra!==void 0?Ra:getFromPath(ed.values,unref(dd),unref(ud))}function createFieldMeta(Ra,ed,ud,dd){const hd=computed(()=>{var gd,yd,vd;return(vd=(yd=(gd=toValue$2(dd))===null||gd===void 0?void 0:gd.describe)===null||yd===void 0?void 0:yd.call(gd).required)!==null&&vd!==void 0?vd:!1}),md=reactive({touched:!1,pending:!1,valid:!0,required:hd,validated:!!unref(ud).length,initialValue:computed(()=>unref(ed)),dirty:computed(()=>!isEqual(unref(Ra),unref(ed)))});return watch(ud,gd=>{md.valid=!gd.length},{immediate:!0,flush:"sync"}),md}function createFieldErrors(){const Ra=ref$1([]);return{errors:Ra,setErrors:ed=>{Ra.value=normalizeErrorItem(ed)}}}function useField(Ra,ed,ud){return hasCheckedAttr(ud==null?void 0:ud.type)?useFieldWithChecked(Ra,ed,ud):_useField(Ra,ed,ud)}function _useField(Ra,ed,ud){const{initialValue:dd,validateOnMount:hd,bails:md,type:gd,checkedValue:yd,label:vd,validateOnValueUpdate:Cd,uncheckedValue:wd,controlled:Nd,keepValueOnUnmount:Ld,syncVModel:Ud,form:jd}=normalizeOptions(ud),Gd=Nd?injectWithSelf(FormContextKey):void 0,Yd=jd||Gd,zd=computed(()=>normalizeFormPath(toValue$2(Ra))),qd=computed(()=>{if(toValue$2(Yd==null?void 0:Yd.schema))return;const kf=unref(ed);return isYupValidator(kf)||isTypedSchema(kf)||isCallable(kf)||Array.isArray(kf)?kf:normalizeRules(kf)}),Wd=!isCallable(qd.value)&&isTypedSchema(toValue$2(ed)),{id:Xd,value:Jd,initialValue:Zd,meta:mf,setState:xf,errors:_f,flags:vf}=useFieldState(zd,{modelValue:dd,form:Yd,bails:md,label:vd,type:gd,validate:qd.value?If:void 0,schema:Wd?ed:void 0}),gf=computed(()=>_f.value[0]);Ud&&useVModel({value:Jd,prop:Ud,handleChange:Ff,shouldValidate:()=>Cd&&!vf.pendingReset});const Af=(Eh,kf=!1)=>{mf.touched=!0,kf&&Of()};async function Df(Eh){var kf,Rf;if(Yd!=null&&Yd.validateSchema){const{results:_h}=await Yd.validateSchema(Eh);return(kf=_h[toValue$2(zd)])!==null&&kf!==void 0?kf:{valid:!0,errors:[]}}return qd.value?validate$1(Jd.value,qd.value,{name:toValue$2(zd),label:toValue$2(vd),values:(Rf=Yd==null?void 0:Yd.values)!==null&&Rf!==void 0?Rf:{},bails:md}):{valid:!0,errors:[]}}const Of=withLatest(async()=>(mf.pending=!0,mf.validated=!0,Df("validated-only")),Eh=>(vf.pendingUnmount[mh.id]||(xf({errors:Eh.errors}),mf.pending=!1,mf.valid=Eh.valid),Eh)),Cf=withLatest(async()=>Df("silent"),Eh=>(mf.valid=Eh.valid,Eh));function If(Eh){return(Eh==null?void 0:Eh.mode)==="silent"?Cf():Of()}function Ff(Eh,kf=!0){const Rf=normalizeEventValue(Eh);Mh(Rf,kf)}onMounted(()=>{if(hd)return Of();(!Yd||!Yd.validateSchema)&&Cf()});function sh(Eh){mf.touched=Eh}function Sh(Eh){var kf;const Rf=Eh&&"value"in Eh?Eh.value:Zd.value;xf({value:klona(Rf),initialValue:klona(Rf),touched:(kf=Eh==null?void 0:Eh.touched)!==null&&kf!==void 0?kf:!1,errors:(Eh==null?void 0:Eh.errors)||[]}),mf.pending=!1,mf.validated=!1,Cf()}const yh=getCurrentInstance();function Mh(Eh,kf=!0){Jd.value=yh&&Ud?applyModelModifiers(Eh,yh.props.modelModifiers):Eh,(kf?Of:Cf)()}function lh(Eh){xf({errors:Array.isArray(Eh)?Eh:[Eh]})}const rh=computed({get(){return Jd.value},set(Eh){Mh(Eh,Cd)}}),mh={id:Xd,name:zd,label:vd,value:rh,meta:mf,errors:_f,errorMessage:gf,type:gd,checkedValue:yd,uncheckedValue:wd,bails:md,keepValueOnUnmount:Ld,resetField:Sh,handleReset:()=>Sh(),validate:If,handleChange:Ff,handleBlur:Af,setState:xf,setTouched:sh,setErrors:lh,setValue:Mh};if(provide(FieldContextKey,mh),isRef(ed)&&typeof unref(ed)!="function"&&watch(ed,(Eh,kf)=>{isEqual(Eh,kf)||(mf.validated?Of():Cf())},{deep:!0}),!Yd)return mh;const xh=computed(()=>{const Eh=qd.value;return!Eh||isCallable(Eh)||isYupValidator(Eh)||isTypedSchema(Eh)||Array.isArray(Eh)?{}:Object.keys(Eh).reduce((kf,Rf)=>{const _h=extractLocators(Eh[Rf]).map(Ph=>Ph.__locatorRef).reduce((Ph,sm)=>{const th=getFromPath(Yd.values,sm)||Yd.values[sm];return th!==void 0&&(Ph[sm]=th),Ph},{});return Object.assign(kf,_h),kf},{})});return watch(xh,(Eh,kf)=>{if(!Object.keys(Eh).length)return;!isEqual(Eh,kf)&&(mf.validated?Of():Cf())}),onBeforeUnmount(()=>{var Eh;const kf=(Eh=toValue$2(mh.keepValueOnUnmount))!==null&&Eh!==void 0?Eh:toValue$2(Yd.keepValuesOnUnmount),Rf=toValue$2(zd);if(kf||!Yd||vf.pendingUnmount[mh.id]){Yd==null||Yd.removePathState(Rf,Xd);return}vf.pendingUnmount[mh.id]=!0;const _h=Yd.getPathState(Rf);if(Array.isArray(_h==null?void 0:_h.id)&&(_h!=null&&_h.multiple)?_h!=null&&_h.id.includes(mh.id):(_h==null?void 0:_h.id)===mh.id){if(_h!=null&&_h.multiple&&Array.isArray(_h.value)){const sm=_h.value.findIndex(th=>isEqual(th,toValue$2(mh.checkedValue)));if(sm>-1){const th=[..._h.value];th.splice(sm,1),Yd.setFieldValue(Rf,th)}Array.isArray(_h.id)&&_h.id.splice(_h.id.indexOf(mh.id),1)}else Yd.unsetPathValue(toValue$2(zd));Yd.removePathState(Rf,Xd)}}),mh}function normalizeOptions(Ra){const ed=()=>({initialValue:void 0,validateOnMount:!1,bails:!0,label:void 0,validateOnValueUpdate:!0,keepValueOnUnmount:void 0,syncVModel:!1,controlled:!0}),ud=!!(Ra!=null&&Ra.syncVModel),dd=typeof(Ra==null?void 0:Ra.syncVModel)=="string"?Ra.syncVModel:(Ra==null?void 0:Ra.modelPropName)||"modelValue",hd=ud&&!("initialValue"in(Ra||{}))?getCurrentModelValue(getCurrentInstance(),dd):Ra==null?void 0:Ra.initialValue;if(!Ra)return Object.assign(Object.assign({},ed()),{initialValue:hd});const md="valueProp"in Ra?Ra.valueProp:Ra.checkedValue,gd="standalone"in Ra?!Ra.standalone:Ra.controlled,yd=(Ra==null?void 0:Ra.modelPropName)||(Ra==null?void 0:Ra.syncVModel)||!1;return Object.assign(Object.assign(Object.assign({},ed()),Ra||{}),{initialValue:hd,controlled:gd??!0,checkedValue:md,syncVModel:yd})}function useFieldWithChecked(Ra,ed,ud){const dd=ud!=null&&ud.standalone?void 0:injectWithSelf(FormContextKey),hd=ud==null?void 0:ud.checkedValue,md=ud==null?void 0:ud.uncheckedValue;function gd(yd){const vd=yd.handleChange,Cd=computed(()=>{const Nd=toValue$2(yd.value),Ld=toValue$2(hd);return Array.isArray(Nd)?Nd.findIndex(Ud=>isEqual(Ud,Ld))>=0:isEqual(Ld,Nd)});function wd(Nd,Ld=!0){var Ud,jd;if(Cd.value===((Ud=Nd==null?void 0:Nd.target)===null||Ud===void 0?void 0:Ud.checked)){Ld&&yd.validate();return}const Gd=toValue$2(Ra),Yd=dd==null?void 0:dd.getPathState(Gd),zd=normalizeEventValue(Nd);let qd=(jd=toValue$2(hd))!==null&&jd!==void 0?jd:zd;dd&&(Yd!=null&&Yd.multiple)&&Yd.type==="checkbox"?qd=resolveNextCheckboxValue(getFromPath(dd.values,Gd)||[],qd,void 0):(ud==null?void 0:ud.type)==="checkbox"&&(qd=resolveNextCheckboxValue(toValue$2(yd.value),qd,toValue$2(md))),vd(qd,Ld)}return Object.assign(Object.assign({},yd),{checked:Cd,checkedValue:hd,uncheckedValue:md,handleChange:wd})}return gd(_useField(Ra,ed,ud))}function useVModel({prop:Ra,value:ed,handleChange:ud,shouldValidate:dd}){const hd=getCurrentInstance();if(!hd||!Ra)return;const md=typeof Ra=="string"?Ra:"modelValue",gd=`update:${md}`;md in hd.props&&(watch(ed,yd=>{isEqual(yd,getCurrentModelValue(hd,md))||hd.emit(gd,yd)}),watch(()=>getCurrentModelValue(hd,md),yd=>{if(yd===IS_ABSENT&&ed.value===void 0)return;const vd=yd===IS_ABSENT?void 0:yd;isEqual(vd,ed.value)||ud(vd,dd())}))}function getCurrentModelValue(Ra,ed){if(Ra)return Ra.props[ed]}const FieldImpl=defineComponent({name:"Field",inheritAttrs:!1,props:{as:{type:[String,Object],default:void 0},name:{type:String,required:!0},rules:{type:[Object,String,Function],default:void 0},validateOnMount:{type:Boolean,default:!1},validateOnBlur:{type:Boolean,default:void 0},validateOnChange:{type:Boolean,default:void 0},validateOnInput:{type:Boolean,default:void 0},validateOnModelUpdate:{type:Boolean,default:void 0},bails:{type:Boolean,default:()=>getConfig$1().bails},label:{type:String,default:void 0},uncheckedValue:{type:null,default:void 0},modelValue:{type:null,default:IS_ABSENT},modelModifiers:{type:null,default:()=>({})},"onUpdate:modelValue":{type:null,default:void 0},standalone:{type:Boolean,default:!1},keepValue:{type:Boolean,default:void 0}},setup(Ra,ed){const ud=toRef$1(Ra,"rules"),dd=toRef$1(Ra,"name"),hd=toRef$1(Ra,"label"),md=toRef$1(Ra,"uncheckedValue"),gd=toRef$1(Ra,"keepValue"),{errors:yd,value:vd,errorMessage:Cd,validate:wd,handleChange:Nd,handleBlur:Ld,setTouched:Ud,resetField:jd,handleReset:Gd,meta:Yd,checked:zd,setErrors:qd,setValue:Wd}=useField(dd,ud,{validateOnMount:Ra.validateOnMount,bails:Ra.bails,standalone:Ra.standalone,type:ed.attrs.type,initialValue:resolveInitialValue(Ra,ed),checkedValue:ed.attrs.value,uncheckedValue:md,label:hd,validateOnValueUpdate:Ra.validateOnModelUpdate,keepValueOnUnmount:gd,syncVModel:!0}),Xd=function(vf,gf=!0){Nd(vf,gf)},Jd=computed(()=>{const{validateOnInput:_f,validateOnChange:vf,validateOnBlur:gf,validateOnModelUpdate:Af}=resolveValidationTriggers(Ra);function Df(Ff){Ld(Ff,gf),isCallable(ed.attrs.onBlur)&&ed.attrs.onBlur(Ff)}function Of(Ff){Xd(Ff,_f),isCallable(ed.attrs.onInput)&&ed.attrs.onInput(Ff)}function Cf(Ff){Xd(Ff,vf),isCallable(ed.attrs.onChange)&&ed.attrs.onChange(Ff)}const If={name:Ra.name,onBlur:Df,onInput:Of,onChange:Cf};return If["onUpdate:modelValue"]=Ff=>Xd(Ff,Af),If}),Zd=computed(()=>{const _f=Object.assign({},Jd.value);hasCheckedAttr(ed.attrs.type)&&zd&&(_f.checked=zd.value);const vf=resolveTag(Ra,ed);return shouldHaveValueBinding(vf,ed.attrs)&&(_f.value=vd.value),_f}),mf=computed(()=>Object.assign(Object.assign({},Jd.value),{modelValue:vd.value}));function xf(){return{field:Zd.value,componentField:mf.value,value:vd.value,meta:Yd,errors:yd.value,errorMessage:Cd.value,validate:wd,resetField:jd,handleChange:Xd,handleInput:_f=>Xd(_f,!1),handleReset:Gd,handleBlur:Jd.value.onBlur,setTouched:Ud,setErrors:qd,setValue:Wd}}return ed.expose({value:vd,meta:Yd,errors:yd,errorMessage:Cd,setErrors:qd,setTouched:Ud,setValue:Wd,reset:jd,validate:wd,handleChange:Nd}),()=>{const _f=resolveDynamicComponent(resolveTag(Ra,ed)),vf=normalizeChildren(_f,ed,xf);return _f?h$2(_f,Object.assign(Object.assign({},ed.attrs),Zd.value),vf):vf}}});function resolveTag(Ra,ed){let ud=Ra.as||"";return!Ra.as&&!ed.slots.default&&(ud="input"),ud}function resolveValidationTriggers(Ra){var ed,ud,dd,hd;const{validateOnInput:md,validateOnChange:gd,validateOnBlur:yd,validateOnModelUpdate:vd}=getConfig$1();return{validateOnInput:(ed=Ra.validateOnInput)!==null&&ed!==void 0?ed:md,validateOnChange:(ud=Ra.validateOnChange)!==null&&ud!==void 0?ud:gd,validateOnBlur:(dd=Ra.validateOnBlur)!==null&&dd!==void 0?dd:yd,validateOnModelUpdate:(hd=Ra.validateOnModelUpdate)!==null&&hd!==void 0?hd:vd}}function resolveInitialValue(Ra,ed){return hasCheckedAttr(ed.attrs.type)?isPropPresent(Ra,"modelValue")?Ra.modelValue:void 0:isPropPresent(Ra,"modelValue")?Ra.modelValue:ed.attrs.value}const Field=FieldImpl;let FORM_COUNTER=0;const PRIVATE_PATH_STATE_KEYS=["bails","fieldsCount","id","multiple","type","validate"];function resolveInitialValues(Ra){const ed=(Ra==null?void 0:Ra.initialValues)||{},ud=Object.assign({},toValue$2(ed)),dd=unref(Ra==null?void 0:Ra.validationSchema);return dd&&isTypedSchema(dd)&&isCallable(dd.cast)?klona(dd.cast(ud)||{}):klona(ud)}function useForm(Ra){var ed;const ud=FORM_COUNTER++,dd=(Ra==null?void 0:Ra.name)||"Form";let hd=0;const md=ref$1(!1),gd=ref$1(!1),yd=ref$1(0),vd=[],Cd=reactive(resolveInitialValues(Ra)),wd=ref$1([]),Nd=ref$1({}),Ld=ref$1({}),Ud=debounceNextTick(()=>{Ld.value=wd.value.reduce((Pf,$f)=>(Pf[normalizeFormPath(toValue$2($f.path))]=$f,Pf),{})});function jd(Pf,$f){const Nh=Ff(Pf);if(!Nh){typeof Pf=="string"&&(Nd.value[normalizeFormPath(Pf)]=normalizeErrorItem($f));return}if(typeof Pf=="string"){const Wh=normalizeFormPath(Pf);Nd.value[Wh]&&delete Nd.value[Wh]}Nh.errors=normalizeErrorItem($f),Nh.valid=!Nh.errors.length}function Gd(Pf){keysOf(Pf).forEach($f=>{jd($f,Pf[$f])})}Ra!=null&&Ra.initialErrors&&Gd(Ra.initialErrors);const Yd=computed(()=>{const Pf=wd.value.reduce(($f,Nh)=>(Nh.errors.length&&($f[toValue$2(Nh.path)]=Nh.errors),$f),{});return Object.assign(Object.assign({},Nd.value),Pf)}),zd=computed(()=>keysOf(Yd.value).reduce((Pf,$f)=>{const Nh=Yd.value[$f];return Nh!=null&&Nh.length&&(Pf[$f]=Nh[0]),Pf},{})),qd=computed(()=>wd.value.reduce((Pf,$f)=>(Pf[toValue$2($f.path)]={name:toValue$2($f.path)||"",label:$f.label||""},Pf),{})),Wd=computed(()=>wd.value.reduce((Pf,$f)=>{var Nh;return Pf[toValue$2($f.path)]=(Nh=$f.bails)!==null&&Nh!==void 0?Nh:!0,Pf},{})),Xd=Object.assign({},(Ra==null?void 0:Ra.initialErrors)||{}),Jd=(ed=Ra==null?void 0:Ra.keepValuesOnUnmount)!==null&&ed!==void 0?ed:!1,{initialValues:Zd,originalInitialValues:mf,setInitialValues:xf}=useFormInitialValues(wd,Cd,Ra),_f=useFormMeta(wd,Cd,mf,zd),vf=computed(()=>wd.value.reduce((Pf,$f)=>{const Nh=getFromPath(Cd,toValue$2($f.path));return setInPath(Pf,toValue$2($f.path),Nh),Pf},{})),gf=Ra==null?void 0:Ra.validationSchema;function Af(Pf,$f){var Nh,Wh;const _m=computed(()=>getFromPath(Zd.value,toValue$2(Pf))),$m=Ld.value[toValue$2(Pf)],Ym=($f==null?void 0:$f.type)==="checkbox"||($f==null?void 0:$f.type)==="radio";if($m&&Ym){$m.multiple=!0;const p_=hd++;return Array.isArray($m.id)?$m.id.push(p_):$m.id=[$m.id,p_],$m.fieldsCount++,$m.__flags.pendingUnmount[p_]=!1,$m}const Ag=computed(()=>getFromPath(Cd,toValue$2(Pf))),sg=toValue$2(Pf),mg=Sh.findIndex(p_=>p_===sg);mg!==-1&&Sh.splice(mg,1);const vg=computed(()=>{var p_,l_,v_,r_;const O_=toValue$2(gf);if(isTypedSchema(O_))return(l_=(p_=O_.describe)===null||p_===void 0?void 0:p_.call(O_,toValue$2(Pf)).required)!==null&&l_!==void 0?l_:!1;const S_=toValue$2($f==null?void 0:$f.schema);return isTypedSchema(S_)&&(r_=(v_=S_.describe)===null||v_===void 0?void 0:v_.call(S_).required)!==null&&r_!==void 0?r_:!1}),kg=hd++,Kg=reactive({id:kg,path:Pf,touched:!1,pending:!1,valid:!0,validated:!!(!((Nh=Xd[sg])===null||Nh===void 0)&&Nh.length),required:vg,initialValue:_m,errors:shallowRef([]),bails:(Wh=$f==null?void 0:$f.bails)!==null&&Wh!==void 0?Wh:!1,label:$f==null?void 0:$f.label,type:($f==null?void 0:$f.type)||"default",value:Ag,multiple:!1,__flags:{pendingUnmount:{[kg]:!1},pendingReset:!1},fieldsCount:1,validate:$f==null?void 0:$f.validate,dirty:computed(()=>!isEqual(unref(Ag),unref(_m)))});return wd.value.push(Kg),Ld.value[sg]=Kg,Ud(),zd.value[sg]&&!Xd[sg]&&nextTick$1(()=>{Ih(sg,{mode:"silent"})}),isRef(Pf)&&watch(Pf,p_=>{Ud();const l_=klona(Ag.value);Ld.value[p_]=Kg,nextTick$1(()=>{setInPath(Cd,p_,l_)})}),Kg}const Df=debounceAsync(Im,5),Of=debounceAsync(Im,5),Cf=withLatest(async Pf=>await(Pf==="silent"?Df():Of()),(Pf,[$f])=>{const Nh=keysOf(kf.errorBag.value),_m=[...new Set([...keysOf(Pf.results),...wd.value.map($m=>$m.path),...Nh])].sort().reduce(($m,Ym)=>{var Ag;const sg=Ym,mg=Ff(sg)||sh(sg),vg=((Ag=Pf.results[sg])===null||Ag===void 0?void 0:Ag.errors)||[],kg=toValue$2(mg==null?void 0:mg.path)||sg,Kg=mergeValidationResults({errors:vg,valid:!vg.length},$m.results[kg]);return $m.results[kg]=Kg,Kg.valid||($m.errors[kg]=Kg.errors[0]),mg&&Nd.value[kg]&&delete Nd.value[kg],mg?(mg.valid=Kg.valid,$f==="silent"||$f==="validated-only"&&!mg.validated||jd(mg,Kg.errors),$m):(jd(kg,vg),$m)},{valid:Pf.valid,results:{},errors:{},source:Pf.source});return Pf.values&&(_m.values=Pf.values,_m.source=Pf.source),keysOf(_m.results).forEach($m=>{var Ym;const Ag=Ff($m);Ag&&$f!=="silent"&&($f==="validated-only"&&!Ag.validated||jd(Ag,(Ym=_m.results[$m])===null||Ym===void 0?void 0:Ym.errors))}),_m});function If(Pf){wd.value.forEach(Pf)}function Ff(Pf){const $f=typeof Pf=="string"?normalizeFormPath(Pf):Pf;return typeof $f=="string"?Ld.value[$f]:$f}function sh(Pf){return wd.value.filter(Nh=>Pf.startsWith(toValue$2(Nh.path))).reduce((Nh,Wh)=>Nh?Wh.path.length>Nh.path.length?Wh:Nh:Wh,void 0)}let Sh=[],yh;function Mh(Pf){return Sh.push(Pf),yh||(yh=nextTick$1(()=>{[...Sh].sort().reverse().forEach(Nh=>{unsetPath(Cd,Nh)}),Sh=[],yh=null})),yh}function lh(Pf){return function(Nh,Wh){return function($m){return $m instanceof Event&&($m.preventDefault(),$m.stopPropagation()),If(Ym=>Ym.touched=!0),md.value=!0,yd.value++,Lh().then(Ym=>{const Ag=klona(Cd);if(Ym.valid&&typeof Nh=="function"){const sg=klona(vf.value);let mg=Pf?sg:Ag;return Ym.values&&(mg=Ym.source==="schema"?Ym.values:Object.assign({},mg,Ym.values)),Nh(mg,{evt:$m,controlledValues:sg,setErrors:Gd,setFieldError:jd,setTouched:$h,setFieldTouched:th,setValues:Ph,setFieldValue:Rf,resetForm:nh,resetField:Vf})}!Ym.valid&&typeof Wh=="function"&&Wh({values:Ag,evt:$m,errors:Ym.errors,results:Ym.results})}).then(Ym=>(md.value=!1,Ym),Ym=>{throw md.value=!1,Ym})}}}const mh=lh(!1);mh.withControlled=lh(!0);function xh(Pf,$f){const Nh=wd.value.findIndex(_m=>_m.path===Pf&&(Array.isArray(_m.id)?_m.id.includes($f):_m.id===$f)),Wh=wd.value[Nh];if(!(Nh===-1||!Wh)){if(nextTick$1(()=>{Ih(Pf,{mode:"silent",warn:!1})}),Wh.multiple&&Wh.fieldsCount&&Wh.fieldsCount--,Array.isArray(Wh.id)){const _m=Wh.id.indexOf($f);_m>=0&&Wh.id.splice(_m,1),delete Wh.__flags.pendingUnmount[$f]}(!Wh.multiple||Wh.fieldsCount<=0)&&(wd.value.splice(Nh,1),om(Pf),Ud(),delete Ld.value[Pf])}}function Eh(Pf){keysOf(Ld.value).forEach($f=>{$f.startsWith(Pf)&&delete Ld.value[$f]}),wd.value=wd.value.filter($f=>!$f.path.startsWith(Pf)),nextTick$1(()=>{Ud()})}const kf={name:dd,formId:ud,values:Cd,controlledValues:vf,errorBag:Yd,errors:zd,schema:gf,submitCount:yd,meta:_f,isSubmitting:md,isValidating:gd,fieldArrays:vd,keepValuesOnUnmount:Jd,validateSchema:unref(gf)?Cf:void 0,validate:Lh,setFieldError:jd,validateField:Ih,setFieldValue:Rf,setValues:Ph,setErrors:Gd,setFieldTouched:th,setTouched:$h,resetForm:nh,resetField:Vf,handleSubmit:mh,useFieldModel:Wm,defineInputBinds:ig,defineComponentBinds:yg,defineField:Lm,stageInitialValue:zh,unsetInitialValue:om,setFieldInitialValue:Om,createPathState:Af,getPathState:Ff,unsetPathValue:Mh,removePathState:xh,initialValues:Zd,getAllPathStates:()=>wd.value,destroyPath:Eh,isFieldTouched:oh,isFieldDirty:Zh,isFieldValid:Sm};function Rf(Pf,$f,Nh=!0){const Wh=klona($f),_m=typeof Pf=="string"?Pf:Pf.path;Ff(_m)||Af(_m),setInPath(Cd,_m,Wh),Nh&&Ih(_m)}function _h(Pf,$f=!0){keysOf(Cd).forEach(Nh=>{delete Cd[Nh]}),keysOf(Pf).forEach(Nh=>{Rf(Nh,Pf[Nh],!1)}),$f&&Lh()}function Ph(Pf,$f=!0){merge$3(Cd,Pf),vd.forEach(Nh=>Nh&&Nh.reset()),$f&&Lh()}function sm(Pf,$f){const Nh=Ff(toValue$2(Pf))||Af(Pf);return computed({get(){return Nh.value},set(Wh){var _m;const $m=toValue$2(Pf);Rf($m,Wh,(_m=toValue$2($f))!==null&&_m!==void 0?_m:!1)}})}function th(Pf,$f){const Nh=Ff(Pf);Nh&&(Nh.touched=$f)}function oh(Pf){const $f=Ff(Pf);return $f?$f.touched:wd.value.filter(Nh=>Nh.path.startsWith(Pf)).some(Nh=>Nh.touched)}function Zh(Pf){const $f=Ff(Pf);return $f?$f.dirty:wd.value.filter(Nh=>Nh.path.startsWith(Pf)).some(Nh=>Nh.dirty)}function Sm(Pf){const $f=Ff(Pf);return $f?$f.valid:wd.value.filter(Nh=>Nh.path.startsWith(Pf)).every(Nh=>Nh.valid)}function $h(Pf){if(typeof Pf=="boolean"){If($f=>{$f.touched=Pf});return}keysOf(Pf).forEach($f=>{th($f,!!Pf[$f])})}function Vf(Pf,$f){var Nh;const Wh=$f&&"value"in $f?$f.value:getFromPath(Zd.value,Pf),_m=Ff(Pf);_m&&(_m.__flags.pendingReset=!0),Om(Pf,klona(Wh),!0),Rf(Pf,Wh,!1),th(Pf,(Nh=$f==null?void 0:$f.touched)!==null&&Nh!==void 0?Nh:!1),jd(Pf,($f==null?void 0:$f.errors)||[]),nextTick$1(()=>{_m&&(_m.__flags.pendingReset=!1)})}function nh(Pf,$f){let Nh=klona(Pf!=null&&Pf.values?Pf.values:mf.value);Nh=$f!=null&&$f.force?Nh:merge$3(mf.value,Nh),Nh=isTypedSchema(gf)&&isCallable(gf.cast)?gf.cast(Nh):Nh,xf(Nh,{force:$f==null?void 0:$f.force}),If(Wh=>{var _m;Wh.__flags.pendingReset=!0,Wh.validated=!1,Wh.touched=((_m=Pf==null?void 0:Pf.touched)===null||_m===void 0?void 0:_m[toValue$2(Wh.path)])||!1,Rf(toValue$2(Wh.path),getFromPath(Nh,toValue$2(Wh.path)),!1),jd(toValue$2(Wh.path),void 0)}),$f!=null&&$f.force?_h(Nh,!1):Ph(Nh,!1),Gd((Pf==null?void 0:Pf.errors)||{}),yd.value=(Pf==null?void 0:Pf.submitCount)||0,nextTick$1(()=>{Lh({mode:"silent"}),If(Wh=>{Wh.__flags.pendingReset=!1})})}async function Lh(Pf){const $f=(Pf==null?void 0:Pf.mode)||"force";if($f==="force"&&If(Ym=>Ym.validated=!0),kf.validateSchema)return kf.validateSchema($f);gd.value=!0;const Nh=await Promise.all(wd.value.map(Ym=>Ym.validate?Ym.validate(Pf).then(Ag=>({key:toValue$2(Ym.path),valid:Ag.valid,errors:Ag.errors,value:Ag.value})):Promise.resolve({key:toValue$2(Ym.path),valid:!0,errors:[],value:void 0})));gd.value=!1;const Wh={},_m={},$m={};for(const Ym of Nh)Wh[Ym.key]={valid:Ym.valid,errors:Ym.errors},Ym.value&&setInPath($m,Ym.key,Ym.value),Ym.errors.length&&(_m[Ym.key]=Ym.errors[0]);return{valid:Nh.every(Ym=>Ym.valid),results:Wh,errors:_m,values:$m,source:"fields"}}async function Ih(Pf,$f){var Nh;const Wh=Ff(Pf);if(Wh&&($f==null?void 0:$f.mode)!=="silent"&&(Wh.validated=!0),gf){const{results:_m}=await Cf(($f==null?void 0:$f.mode)||"validated-only");return _m[Pf]||{errors:[],valid:!0}}return Wh!=null&&Wh.validate?Wh.validate($f):(!Wh&&(Nh=$f==null?void 0:$f.warn),Promise.resolve({errors:[],valid:!0}))}function om(Pf){unsetPath(Zd.value,Pf)}function zh(Pf,$f,Nh=!1){Om(Pf,$f),setInPath(Cd,Pf,$f),Nh&&!(Ra!=null&&Ra.initialValues)&&setInPath(mf.value,Pf,klona($f))}function Om(Pf,$f,Nh=!1){setInPath(Zd.value,Pf,klona($f)),Nh&&setInPath(mf.value,Pf,klona($f))}async function Im(){const Pf=unref(gf);if(!Pf)return{valid:!0,results:{},errors:{},source:"none"};gd.value=!0;const $f=isYupValidator(Pf)||isTypedSchema(Pf)?await validateTypedSchema(Pf,Cd):await validateObjectSchema(Pf,Cd,{names:qd.value,bailsMap:Wd.value});return gd.value=!1,$f}const Zm=mh((Pf,{evt:$f})=>{isFormSubmitEvent($f)&&$f.target.submit()});onMounted(()=>{if(Ra!=null&&Ra.initialErrors&&Gd(Ra.initialErrors),Ra!=null&&Ra.initialTouched&&$h(Ra.initialTouched),Ra!=null&&Ra.validateOnMount){Lh();return}kf.validateSchema&&kf.validateSchema("silent")}),isRef(gf)&&watch(gf,()=>{var Pf;(Pf=kf.validateSchema)===null||Pf===void 0||Pf.call(kf,"validated-only")}),provide(FormContextKey,kf);function Lm(Pf,$f){const Nh=isCallable($f)||$f==null?void 0:$f.label,Wh=Ff(toValue$2(Pf))||Af(Pf,{label:Nh}),_m=()=>isCallable($f)?$f(omit(Wh,PRIVATE_PATH_STATE_KEYS)):$f||{};function $m(){var vg;Wh.touched=!0,((vg=_m().validateOnBlur)!==null&&vg!==void 0?vg:getConfig$1().validateOnBlur)&&Ih(toValue$2(Wh.path))}function Ym(){var vg;((vg=_m().validateOnInput)!==null&&vg!==void 0?vg:getConfig$1().validateOnInput)&&nextTick$1(()=>{Ih(toValue$2(Wh.path))})}function Ag(){var vg;((vg=_m().validateOnChange)!==null&&vg!==void 0?vg:getConfig$1().validateOnChange)&&nextTick$1(()=>{Ih(toValue$2(Wh.path))})}const sg=computed(()=>{const vg={onChange:Ag,onInput:Ym,onBlur:$m};return isCallable($f)?Object.assign(Object.assign({},vg),$f(omit(Wh,PRIVATE_PATH_STATE_KEYS)).props||{}):$f!=null&&$f.props?Object.assign(Object.assign({},vg),$f.props(omit(Wh,PRIVATE_PATH_STATE_KEYS))):vg});return[sm(Pf,()=>{var vg,kg,Kg;return(Kg=(vg=_m().validateOnModelUpdate)!==null&&vg!==void 0?vg:(kg=getConfig$1())===null||kg===void 0?void 0:kg.validateOnModelUpdate)!==null&&Kg!==void 0?Kg:!0}),sg]}function Wm(Pf){return Array.isArray(Pf)?Pf.map($f=>sm($f,!0)):sm(Pf)}function ig(Pf,$f){const[Nh,Wh]=Lm(Pf,$f);function _m(){Wh.value.onBlur()}function $m(Ag){const sg=normalizeEventValue(Ag);Rf(toValue$2(Pf),sg,!1),Wh.value.onInput()}function Ym(Ag){const sg=normalizeEventValue(Ag);Rf(toValue$2(Pf),sg,!1),Wh.value.onChange()}return computed(()=>Object.assign(Object.assign({},Wh.value),{onBlur:_m,onInput:$m,onChange:Ym,value:Nh.value}))}function yg(Pf,$f){const[Nh,Wh]=Lm(Pf,$f),_m=Ff(toValue$2(Pf));function $m(Ym){Nh.value=Ym}return computed(()=>{const Ym=isCallable($f)?$f(omit(_m,PRIVATE_PATH_STATE_KEYS)):$f||{};return Object.assign({[Ym.model||"modelValue"]:Nh.value,[`onUpdate:${Ym.model||"modelValue"}`]:$m},Wh.value)})}const jh=Object.assign(Object.assign({},kf),{values:readonly(Cd),handleReset:()=>nh(),submitForm:Zm});return provide(PublicFormContextKey,jh),jh}function useFormMeta(Ra,ed,ud,dd){const hd={touched:"some",pending:"some",valid:"every"},md=computed(()=>!isEqual(ed,unref(ud)));function gd(){const vd=Ra.value;return keysOf(hd).reduce((Cd,wd)=>{const Nd=hd[wd];return Cd[wd]=vd[Nd](Ld=>Ld[wd]),Cd},{})}const yd=reactive(gd());return watchEffect(()=>{const vd=gd();yd.touched=vd.touched,yd.valid=vd.valid,yd.pending=vd.pending}),computed(()=>Object.assign(Object.assign({initialValues:unref(ud)},yd),{valid:yd.valid&&!keysOf(dd.value).length,dirty:md.value}))}function useFormInitialValues(Ra,ed,ud){const dd=resolveInitialValues(ud),hd=ref$1(dd),md=ref$1(klona(dd));function gd(yd,vd){vd!=null&&vd.force?(hd.value=klona(yd),md.value=klona(yd)):(hd.value=merge$3(klona(hd.value)||{},klona(yd)),md.value=merge$3(klona(md.value)||{},klona(yd))),vd!=null&&vd.updateFields&&Ra.value.forEach(Cd=>{if(Cd.touched)return;const Nd=getFromPath(hd.value,toValue$2(Cd.path));setInPath(ed,toValue$2(Cd.path),klona(Nd))})}return{initialValues:hd,originalInitialValues:md,setInitialValues:gd}}function mergeValidationResults(Ra,ed){return ed?{valid:Ra.valid&&ed.valid,errors:[...Ra.errors,...ed.errors]}:Ra}const FormImpl=defineComponent({name:"Form",inheritAttrs:!1,props:{as:{type:null,default:"form"},validationSchema:{type:Object,default:void 0},initialValues:{type:Object,default:void 0},initialErrors:{type:Object,default:void 0},initialTouched:{type:Object,default:void 0},validateOnMount:{type:Boolean,default:!1},onSubmit:{type:Function,default:void 0},onInvalidSubmit:{type:Function,default:void 0},keepValues:{type:Boolean,default:!1},name:{type:String,default:"Form"}},setup(Ra,ed){const ud=toRef$1(Ra,"validationSchema"),dd=toRef$1(Ra,"keepValues"),{errors:hd,errorBag:md,values:gd,meta:yd,isSubmitting:vd,isValidating:Cd,submitCount:wd,controlledValues:Nd,validate:Ld,validateField:Ud,handleReset:jd,resetForm:Gd,handleSubmit:Yd,setErrors:zd,setFieldError:qd,setFieldValue:Wd,setValues:Xd,setFieldTouched:Jd,setTouched:Zd,resetField:mf}=useForm({validationSchema:ud.value?ud:void 0,initialValues:Ra.initialValues,initialErrors:Ra.initialErrors,initialTouched:Ra.initialTouched,validateOnMount:Ra.validateOnMount,keepValuesOnUnmount:dd,name:Ra.name}),xf=Yd((If,{evt:Ff})=>{isFormSubmitEvent(Ff)&&Ff.target.submit()},Ra.onInvalidSubmit),_f=Ra.onSubmit?Yd(Ra.onSubmit,Ra.onInvalidSubmit):xf;function vf(If){isEvent(If)&&If.preventDefault(),jd(),typeof ed.attrs.onReset=="function"&&ed.attrs.onReset()}function gf(If,Ff){return Yd(typeof If=="function"&&!Ff?If:Ff,Ra.onInvalidSubmit)(If)}function Af(){return klona(gd)}function Df(){return klona(yd.value)}function Of(){return klona(hd.value)}function Cf(){return{meta:yd.value,errors:hd.value,errorBag:md.value,values:gd,isSubmitting:vd.value,isValidating:Cd.value,submitCount:wd.value,controlledValues:Nd.value,validate:Ld,validateField:Ud,handleSubmit:gf,handleReset:jd,submitForm:xf,setErrors:zd,setFieldError:qd,setFieldValue:Wd,setValues:Xd,setFieldTouched:Jd,setTouched:Zd,resetForm:Gd,resetField:mf,getValues:Af,getMeta:Df,getErrors:Of}}return ed.expose({setFieldError:qd,setErrors:zd,setFieldValue:Wd,setValues:Xd,setFieldTouched:Jd,setTouched:Zd,resetForm:Gd,validate:Ld,validateField:Ud,resetField:mf,getValues:Af,getMeta:Df,getErrors:Of,values:gd,meta:yd,errors:hd}),function(){const Ff=Ra.as==="form"?Ra.as:Ra.as?resolveDynamicComponent(Ra.as):null,sh=normalizeChildren(Ff,ed,Cf);return Ff?h$2(Ff,Object.assign(Object.assign(Object.assign({},Ff==="form"?{novalidate:!0}:{}),ed.attrs),{onSubmit:_f,onReset:vf}),sh):sh}}}),Form=FormImpl;/** + */function isCallable(Ra){return typeof Ra=="function"}function isNullOrUndefined(Ra){return Ra==null}const isObject$4=Ra=>Ra!==null&&!!Ra&&typeof Ra=="object"&&!Array.isArray(Ra);function isIndex$1(Ra){return Number(Ra)>=0}function toNumber$3(Ra){const ed=parseFloat(Ra);return isNaN(ed)?Ra:ed}function isObjectLike$1(Ra){return typeof Ra=="object"&&Ra!==null}function getTag$1(Ra){return Ra==null?Ra===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(Ra)}function isPlainObject$2(Ra){if(!isObjectLike$1(Ra)||getTag$1(Ra)!=="[object Object]")return!1;if(Object.getPrototypeOf(Ra)===null)return!0;let ed=Ra;for(;Object.getPrototypeOf(ed)!==null;)ed=Object.getPrototypeOf(ed);return Object.getPrototypeOf(Ra)===ed}function merge$3(Ra,ed){return Object.keys(ed).forEach(ud=>{if(isPlainObject$2(ed[ud])&&isPlainObject$2(Ra[ud])){Ra[ud]||(Ra[ud]={}),merge$3(Ra[ud],ed[ud]);return}Ra[ud]=ed[ud]}),Ra}function normalizeFormPath(Ra){const ed=Ra.split(".");if(!ed.length)return"";let ud=String(ed[0]);for(let dd=1;ddisContainerValue(hd)&&md in hd?hd[md]:ud,Ra):ud}function setInPath(Ra,ed,ud){if(isNotNestedPath(ed)){Ra[cleanupNonNestedPath(ed)]=ud;return}const dd=ed.split(/\.|\[(\d+)\]/).filter(Boolean);let hd=Ra;for(let md=0;mdgetFromPath(Ra,ud.slice(0,gd).join(".")));for(let md=hd.length-1;md>=0;md--)if(isEmptyContainer(hd[md])){if(md===0){unset(Ra,ud[0]);continue}unset(hd[md-1],ud[md-1])}}function keysOf(Ra){return Object.keys(Ra)}function injectWithSelf(Ra,ed=void 0){const ud=getCurrentInstance();return(ud==null?void 0:ud.provides[Ra])||inject(Ra,ed)}function resolveNextCheckboxValue(Ra,ed,ud){if(Array.isArray(Ra)){const dd=[...Ra],hd=dd.findIndex(md=>isEqual(md,ed));return hd>=0?dd.splice(hd,1):dd.push(ed),dd}return isEqual(Ra,ed)?ud:ed}function debounceAsync(Ra,ed=0){let ud=null,dd=[];return function(...hd){return ud&&clearTimeout(ud),ud=setTimeout(()=>{const md=Ra(...hd);dd.forEach(gd=>gd(md)),dd=[]},ed),new Promise(md=>dd.push(md))}}function applyModelModifiers(Ra,ed){return isObject$4(ed)&&ed.number?toNumber$3(Ra):Ra}function withLatest(Ra,ed){let ud;return async function(...hd){const md=Ra(...hd);ud=md;const gd=await md;return md!==ud?gd:(ud=void 0,ed(gd,hd))}}function normalizeErrorItem(Ra){return Array.isArray(Ra)?Ra:Ra?[Ra]:[]}function omit(Ra,ed){const ud={};for(const dd in Ra)ed.includes(dd)||(ud[dd]=Ra[dd]);return ud}function debounceNextTick(Ra){let ed=null,ud=[];return function(...dd){const hd=nextTick$1(()=>{if(ed!==hd)return;const md=Ra(...dd);ud.forEach(gd=>gd(md)),ud=[],ed=null});return ed=hd,new Promise(md=>ud.push(md))}}function normalizeChildren(Ra,ed,ud){return ed.slots.default?typeof Ra=="string"||!Ra?ed.slots.default(ud()):{default:()=>{var dd,hd;return(hd=(dd=ed.slots).default)===null||hd===void 0?void 0:hd.call(dd,ud())}}:ed.slots.default}function getBoundValue(Ra){if(hasValueBinding(Ra))return Ra._value}function hasValueBinding(Ra){return"_value"in Ra}function parseInputValue(Ra){return Ra.type==="number"||Ra.type==="range"?Number.isNaN(Ra.valueAsNumber)?Ra.value:Ra.valueAsNumber:Ra.value}function normalizeEventValue(Ra){if(!isEvent(Ra))return Ra;const ed=Ra.target;if(hasCheckedAttr(ed.type)&&hasValueBinding(ed))return getBoundValue(ed);if(ed.type==="file"&&ed.files){const ud=Array.from(ed.files);return ed.multiple?ud:ud[0]}if(isNativeMultiSelect(ed))return Array.from(ed.options).filter(ud=>ud.selected&&!ud.disabled).map(getBoundValue);if(isNativeSelect(ed)){const ud=Array.from(ed.options).find(dd=>dd.selected);return ud?getBoundValue(ud):ed.value}return parseInputValue(ed)}function normalizeRules(Ra){const ed={};return Object.defineProperty(ed,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),Ra?isObject$4(Ra)&&Ra._$$isNormalized?Ra:isObject$4(Ra)?Object.keys(Ra).reduce((ud,dd)=>{const hd=normalizeParams(Ra[dd]);return Ra[dd]!==!1&&(ud[dd]=buildParams(hd)),ud},ed):typeof Ra!="string"?ed:Ra.split("|").reduce((ud,dd)=>{const hd=parseRule(dd);return hd.name&&(ud[hd.name]=buildParams(hd.params)),ud},ed):ed}function normalizeParams(Ra){return Ra===!0?[]:Array.isArray(Ra)||isObject$4(Ra)?Ra:[Ra]}function buildParams(Ra){const ed=ud=>typeof ud=="string"&&ud[0]==="@"?createLocator(ud.slice(1)):ud;return Array.isArray(Ra)?Ra.map(ed):Ra instanceof RegExp?[Ra]:Object.keys(Ra).reduce((ud,dd)=>(ud[dd]=ed(Ra[dd]),ud),{})}const parseRule=Ra=>{let ed=[];const ud=Ra.split(":")[0];return Ra.includes(":")&&(ed=Ra.split(":").slice(1).join(":").split(",")),{name:ud,params:ed}};function createLocator(Ra){const ed=ud=>{var dd;return(dd=getFromPath(ud,Ra))!==null&&dd!==void 0?dd:ud[Ra]};return ed.__locatorRef=Ra,ed}function extractLocators(Ra){return Array.isArray(Ra)?Ra.filter(isLocator):keysOf(Ra).filter(ed=>isLocator(Ra[ed])).map(ed=>Ra[ed])}const DEFAULT_CONFIG={generateMessage:({field:Ra})=>`${Ra} is not valid.`,bails:!0,validateOnBlur:!0,validateOnChange:!0,validateOnInput:!1,validateOnModelUpdate:!0};let currentConfig=Object.assign({},DEFAULT_CONFIG);const getConfig$1=()=>currentConfig;async function validate$1(Ra,ed,ud={}){const dd=ud==null?void 0:ud.bails,hd={name:(ud==null?void 0:ud.name)||"{field}",rules:ed,label:ud==null?void 0:ud.label,bails:dd??!0,formData:(ud==null?void 0:ud.values)||{}},md=await _validate(hd,Ra);return Object.assign(Object.assign({},md),{valid:!md.errors.length})}async function _validate(Ra,ed){const ud=Ra.rules;if(isTypedSchema(ud)||isYupValidator(ud))return validateFieldWithTypedSchema(ed,Object.assign(Object.assign({},Ra),{rules:ud}));if(isCallable(ud)||Array.isArray(ud)){const yd={field:Ra.label||Ra.name,name:Ra.name,label:Ra.label,form:Ra.formData,value:ed},vd=Array.isArray(ud)?ud:[ud],Cd=vd.length,wd=[];for(let Nd=0;Nd{const Cd=vd.path||"";return yd[Cd]||(yd[Cd]={errors:[],path:Cd}),yd[Cd].errors.push(...vd.errors),yd},{});return{errors:Object.values(gd)}}}}}async function validateFieldWithTypedSchema(Ra,ed){const dd=await(isTypedSchema(ed.rules)?ed.rules:yupToTypedSchema(ed.rules)).parse(Ra,{formData:ed.formData}),hd=[];for(const md of dd.errors)md.errors.length&&hd.push(...md.errors);return{value:dd.value,errors:hd}}async function _test(Ra,ed,ud){const dd=resolveRule(ud.name);if(!dd)throw new Error(`No such validator '${ud.name}' exists.`);const hd=fillTargetValues(ud.params,Ra.formData),md={field:Ra.label||Ra.name,name:Ra.name,label:Ra.label,value:ed,form:Ra.formData,rule:Object.assign(Object.assign({},ud),{params:hd})},gd=await dd(ed,hd,md);return typeof gd=="string"?{error:gd}:{error:gd?void 0:_generateFieldError(md)}}function _generateFieldError(Ra){const ed=getConfig$1().generateMessage;return ed?ed(Ra):"Field is invalid"}function fillTargetValues(Ra,ed){const ud=dd=>isLocator(dd)?dd(ed):dd;return Array.isArray(Ra)?Ra.map(ud):Object.keys(Ra).reduce((dd,hd)=>(dd[hd]=ud(Ra[hd]),dd),{})}async function validateTypedSchema(Ra,ed){const dd=await(isTypedSchema(Ra)?Ra:yupToTypedSchema(Ra)).parse(klona(ed),{formData:klona(ed)}),hd={},md={};for(const gd of dd.errors){const yd=gd.errors,vd=(gd.path||"").replace(/\["(\d+)"\]/g,(Cd,wd)=>`[${wd}]`);hd[vd]={valid:!yd.length,errors:yd},yd.length&&(md[vd]=yd[0])}return{valid:!dd.errors.length,results:hd,errors:md,values:dd.value,source:"schema"}}async function validateObjectSchema(Ra,ed,ud){const hd=keysOf(Ra).map(async Cd=>{var wd,Nd,Ld;const Ud=(wd=ud==null?void 0:ud.names)===null||wd===void 0?void 0:wd[Cd],jd=await validate$1(getFromPath(ed,Cd),Ra[Cd],{name:(Ud==null?void 0:Ud.name)||Cd,label:Ud==null?void 0:Ud.label,values:ed,bails:(Ld=(Nd=ud==null?void 0:ud.bailsMap)===null||Nd===void 0?void 0:Nd[Cd])!==null&&Ld!==void 0?Ld:!0});return Object.assign(Object.assign({},jd),{path:Cd})});let md=!0;const gd=await Promise.all(hd),yd={},vd={};for(const Cd of gd)yd[Cd.path]={valid:Cd.valid,errors:Cd.errors},Cd.valid||(md=!1,vd[Cd.path]=Cd.errors[0]);return{valid:md,results:yd,errors:vd,source:"schema"}}let ID_COUNTER=0;function useFieldState(Ra,ed){const{value:ud,initialValue:dd,setInitialValue:hd}=_useFieldValue(Ra,ed.modelValue,ed.form);if(!ed.form){let vd=function(Ud){var jd;"value"in Ud&&(ud.value=Ud.value),"errors"in Ud&&wd(Ud.errors),"touched"in Ud&&(Ld.touched=(jd=Ud.touched)!==null&&jd!==void 0?jd:Ld.touched),"initialValue"in Ud&&hd(Ud.initialValue)};const{errors:Cd,setErrors:wd}=createFieldErrors(),Nd=ID_COUNTER>=Number.MAX_SAFE_INTEGER?0:++ID_COUNTER,Ld=createFieldMeta(ud,dd,Cd,ed.schema);return{id:Nd,path:Ra,value:ud,initialValue:dd,meta:Ld,flags:{pendingUnmount:{[Nd]:!1},pendingReset:!1},errors:Cd,setState:vd}}const md=ed.form.createPathState(Ra,{bails:ed.bails,label:ed.label,type:ed.type,validate:ed.validate,schema:ed.schema}),gd=computed(()=>md.errors);function yd(vd){var Cd,wd,Nd;"value"in vd&&(ud.value=vd.value),"errors"in vd&&((Cd=ed.form)===null||Cd===void 0||Cd.setFieldError(unref(Ra),vd.errors)),"touched"in vd&&((wd=ed.form)===null||wd===void 0||wd.setFieldTouched(unref(Ra),(Nd=vd.touched)!==null&&Nd!==void 0?Nd:!1)),"initialValue"in vd&&hd(vd.initialValue)}return{id:Array.isArray(md.id)?md.id[md.id.length-1]:md.id,path:Ra,value:ud,errors:gd,meta:md,initialValue:dd,flags:md.__flags,setState:yd}}function _useFieldValue(Ra,ed,ud){const dd=ref$1(unref(ed));function hd(){return ud?getFromPath(ud.initialValues.value,unref(Ra),unref(dd)):unref(dd)}function md(Cd){if(!ud){dd.value=Cd;return}ud.setFieldInitialValue(unref(Ra),Cd,!0)}const gd=computed(hd);if(!ud)return{value:ref$1(hd()),initialValue:gd,setInitialValue:md};const yd=resolveModelValue(ed,ud,gd,Ra);return ud.stageInitialValue(unref(Ra),yd,!0),{value:computed({get(){return getFromPath(ud.values,unref(Ra))},set(Cd){ud.setFieldValue(unref(Ra),Cd,!1)}}),initialValue:gd,setInitialValue:md}}function resolveModelValue(Ra,ed,ud,dd){return isRef(Ra)?unref(Ra):Ra!==void 0?Ra:getFromPath(ed.values,unref(dd),unref(ud))}function createFieldMeta(Ra,ed,ud,dd){const hd=computed(()=>{var gd,yd,vd;return(vd=(yd=(gd=toValue$2(dd))===null||gd===void 0?void 0:gd.describe)===null||yd===void 0?void 0:yd.call(gd).required)!==null&&vd!==void 0?vd:!1}),md=reactive({touched:!1,pending:!1,valid:!0,required:hd,validated:!!unref(ud).length,initialValue:computed(()=>unref(ed)),dirty:computed(()=>!isEqual(unref(Ra),unref(ed)))});return watch(ud,gd=>{md.valid=!gd.length},{immediate:!0,flush:"sync"}),md}function createFieldErrors(){const Ra=ref$1([]);return{errors:Ra,setErrors:ed=>{Ra.value=normalizeErrorItem(ed)}}}function useField(Ra,ed,ud){return hasCheckedAttr(ud==null?void 0:ud.type)?useFieldWithChecked(Ra,ed,ud):_useField(Ra,ed,ud)}function _useField(Ra,ed,ud){const{initialValue:dd,validateOnMount:hd,bails:md,type:gd,checkedValue:yd,label:vd,validateOnValueUpdate:Cd,uncheckedValue:wd,controlled:Nd,keepValueOnUnmount:Ld,syncVModel:Ud,form:jd}=normalizeOptions(ud),Gd=Nd?injectWithSelf(FormContextKey):void 0,Yd=jd||Gd,zd=computed(()=>normalizeFormPath(toValue$2(Ra))),qd=computed(()=>{if(toValue$2(Yd==null?void 0:Yd.schema))return;const Of=unref(ed);return isYupValidator(Of)||isTypedSchema(Of)||isCallable(Of)||Array.isArray(Of)?Of:normalizeRules(Of)}),Wd=!isCallable(qd.value)&&isTypedSchema(toValue$2(ed)),{id:Xd,value:Jd,initialValue:Zd,meta:mf,setState:xf,errors:_f,flags:vf}=useFieldState(zd,{modelValue:dd,form:Yd,bails:md,label:vd,type:gd,validate:qd.value?If:void 0,schema:Wd?ed:void 0}),gf=computed(()=>_f.value[0]);Ud&&useVModel({value:Jd,prop:Ud,handleChange:Ff,shouldValidate:()=>Cd&&!vf.pendingReset});const Af=(Sh,Of=!1)=>{mf.touched=!0,Of&&kf()};async function Df(Sh){var Of,Rf;if(Yd!=null&&Yd.validateSchema){const{results:yh}=await Yd.validateSchema(Sh);return(Of=yh[toValue$2(zd)])!==null&&Of!==void 0?Of:{valid:!0,errors:[]}}return qd.value?validate$1(Jd.value,qd.value,{name:toValue$2(zd),label:toValue$2(vd),values:(Rf=Yd==null?void 0:Yd.values)!==null&&Rf!==void 0?Rf:{},bails:md}):{valid:!0,errors:[]}}const kf=withLatest(async()=>(mf.pending=!0,mf.validated=!0,Df("validated-only")),Sh=>(vf.pendingUnmount[mh.id]||(xf({errors:Sh.errors}),mf.pending=!1,mf.valid=Sh.valid),Sh)),Cf=withLatest(async()=>Df("silent"),Sh=>(mf.valid=Sh.valid,Sh));function If(Sh){return(Sh==null?void 0:Sh.mode)==="silent"?Cf():kf()}function Ff(Sh,Of=!0){const Rf=normalizeEventValue(Sh);Mh(Rf,Of)}onMounted(()=>{if(hd)return kf();(!Yd||!Yd.validateSchema)&&Cf()});function oh(Sh){mf.touched=Sh}function Eh(Sh){var Of;const Rf=Sh&&"value"in Sh?Sh.value:Zd.value;xf({value:klona(Rf),initialValue:klona(Rf),touched:(Of=Sh==null?void 0:Sh.touched)!==null&&Of!==void 0?Of:!1,errors:(Sh==null?void 0:Sh.errors)||[]}),mf.pending=!1,mf.validated=!1,Cf()}const _h=getCurrentInstance();function Mh(Sh,Of=!0){Jd.value=_h&&Ud?applyModelModifiers(Sh,_h.props.modelModifiers):Sh,(Of?kf:Cf)()}function lh(Sh){xf({errors:Array.isArray(Sh)?Sh:[Sh]})}const rh=computed({get(){return Jd.value},set(Sh){Mh(Sh,Cd)}}),mh={id:Xd,name:zd,label:vd,value:rh,meta:mf,errors:_f,errorMessage:gf,type:gd,checkedValue:yd,uncheckedValue:wd,bails:md,keepValueOnUnmount:Ld,resetField:Eh,handleReset:()=>Eh(),validate:If,handleChange:Ff,handleBlur:Af,setState:xf,setTouched:oh,setErrors:lh,setValue:Mh};if(provide(FieldContextKey,mh),isRef(ed)&&typeof unref(ed)!="function"&&watch(ed,(Sh,Of)=>{isEqual(Sh,Of)||(mf.validated?kf():Cf())},{deep:!0}),!Yd)return mh;const xh=computed(()=>{const Sh=qd.value;return!Sh||isCallable(Sh)||isYupValidator(Sh)||isTypedSchema(Sh)||Array.isArray(Sh)?{}:Object.keys(Sh).reduce((Of,Rf)=>{const yh=extractLocators(Sh[Rf]).map(Ph=>Ph.__locatorRef).reduce((Ph,sm)=>{const th=getFromPath(Yd.values,sm)||Yd.values[sm];return th!==void 0&&(Ph[sm]=th),Ph},{});return Object.assign(Of,yh),Of},{})});return watch(xh,(Sh,Of)=>{if(!Object.keys(Sh).length)return;!isEqual(Sh,Of)&&(mf.validated?kf():Cf())}),onBeforeUnmount(()=>{var Sh;const Of=(Sh=toValue$2(mh.keepValueOnUnmount))!==null&&Sh!==void 0?Sh:toValue$2(Yd.keepValuesOnUnmount),Rf=toValue$2(zd);if(Of||!Yd||vf.pendingUnmount[mh.id]){Yd==null||Yd.removePathState(Rf,Xd);return}vf.pendingUnmount[mh.id]=!0;const yh=Yd.getPathState(Rf);if(Array.isArray(yh==null?void 0:yh.id)&&(yh!=null&&yh.multiple)?yh!=null&&yh.id.includes(mh.id):(yh==null?void 0:yh.id)===mh.id){if(yh!=null&&yh.multiple&&Array.isArray(yh.value)){const sm=yh.value.findIndex(th=>isEqual(th,toValue$2(mh.checkedValue)));if(sm>-1){const th=[...yh.value];th.splice(sm,1),Yd.setFieldValue(Rf,th)}Array.isArray(yh.id)&&yh.id.splice(yh.id.indexOf(mh.id),1)}else Yd.unsetPathValue(toValue$2(zd));Yd.removePathState(Rf,Xd)}}),mh}function normalizeOptions(Ra){const ed=()=>({initialValue:void 0,validateOnMount:!1,bails:!0,label:void 0,validateOnValueUpdate:!0,keepValueOnUnmount:void 0,syncVModel:!1,controlled:!0}),ud=!!(Ra!=null&&Ra.syncVModel),dd=typeof(Ra==null?void 0:Ra.syncVModel)=="string"?Ra.syncVModel:(Ra==null?void 0:Ra.modelPropName)||"modelValue",hd=ud&&!("initialValue"in(Ra||{}))?getCurrentModelValue(getCurrentInstance(),dd):Ra==null?void 0:Ra.initialValue;if(!Ra)return Object.assign(Object.assign({},ed()),{initialValue:hd});const md="valueProp"in Ra?Ra.valueProp:Ra.checkedValue,gd="standalone"in Ra?!Ra.standalone:Ra.controlled,yd=(Ra==null?void 0:Ra.modelPropName)||(Ra==null?void 0:Ra.syncVModel)||!1;return Object.assign(Object.assign(Object.assign({},ed()),Ra||{}),{initialValue:hd,controlled:gd??!0,checkedValue:md,syncVModel:yd})}function useFieldWithChecked(Ra,ed,ud){const dd=ud!=null&&ud.standalone?void 0:injectWithSelf(FormContextKey),hd=ud==null?void 0:ud.checkedValue,md=ud==null?void 0:ud.uncheckedValue;function gd(yd){const vd=yd.handleChange,Cd=computed(()=>{const Nd=toValue$2(yd.value),Ld=toValue$2(hd);return Array.isArray(Nd)?Nd.findIndex(Ud=>isEqual(Ud,Ld))>=0:isEqual(Ld,Nd)});function wd(Nd,Ld=!0){var Ud,jd;if(Cd.value===((Ud=Nd==null?void 0:Nd.target)===null||Ud===void 0?void 0:Ud.checked)){Ld&&yd.validate();return}const Gd=toValue$2(Ra),Yd=dd==null?void 0:dd.getPathState(Gd),zd=normalizeEventValue(Nd);let qd=(jd=toValue$2(hd))!==null&&jd!==void 0?jd:zd;dd&&(Yd!=null&&Yd.multiple)&&Yd.type==="checkbox"?qd=resolveNextCheckboxValue(getFromPath(dd.values,Gd)||[],qd,void 0):(ud==null?void 0:ud.type)==="checkbox"&&(qd=resolveNextCheckboxValue(toValue$2(yd.value),qd,toValue$2(md))),vd(qd,Ld)}return Object.assign(Object.assign({},yd),{checked:Cd,checkedValue:hd,uncheckedValue:md,handleChange:wd})}return gd(_useField(Ra,ed,ud))}function useVModel({prop:Ra,value:ed,handleChange:ud,shouldValidate:dd}){const hd=getCurrentInstance();if(!hd||!Ra)return;const md=typeof Ra=="string"?Ra:"modelValue",gd=`update:${md}`;md in hd.props&&(watch(ed,yd=>{isEqual(yd,getCurrentModelValue(hd,md))||hd.emit(gd,yd)}),watch(()=>getCurrentModelValue(hd,md),yd=>{if(yd===IS_ABSENT&&ed.value===void 0)return;const vd=yd===IS_ABSENT?void 0:yd;isEqual(vd,ed.value)||ud(vd,dd())}))}function getCurrentModelValue(Ra,ed){if(Ra)return Ra.props[ed]}const FieldImpl=defineComponent({name:"Field",inheritAttrs:!1,props:{as:{type:[String,Object],default:void 0},name:{type:String,required:!0},rules:{type:[Object,String,Function],default:void 0},validateOnMount:{type:Boolean,default:!1},validateOnBlur:{type:Boolean,default:void 0},validateOnChange:{type:Boolean,default:void 0},validateOnInput:{type:Boolean,default:void 0},validateOnModelUpdate:{type:Boolean,default:void 0},bails:{type:Boolean,default:()=>getConfig$1().bails},label:{type:String,default:void 0},uncheckedValue:{type:null,default:void 0},modelValue:{type:null,default:IS_ABSENT},modelModifiers:{type:null,default:()=>({})},"onUpdate:modelValue":{type:null,default:void 0},standalone:{type:Boolean,default:!1},keepValue:{type:Boolean,default:void 0}},setup(Ra,ed){const ud=toRef$1(Ra,"rules"),dd=toRef$1(Ra,"name"),hd=toRef$1(Ra,"label"),md=toRef$1(Ra,"uncheckedValue"),gd=toRef$1(Ra,"keepValue"),{errors:yd,value:vd,errorMessage:Cd,validate:wd,handleChange:Nd,handleBlur:Ld,setTouched:Ud,resetField:jd,handleReset:Gd,meta:Yd,checked:zd,setErrors:qd,setValue:Wd}=useField(dd,ud,{validateOnMount:Ra.validateOnMount,bails:Ra.bails,standalone:Ra.standalone,type:ed.attrs.type,initialValue:resolveInitialValue(Ra,ed),checkedValue:ed.attrs.value,uncheckedValue:md,label:hd,validateOnValueUpdate:Ra.validateOnModelUpdate,keepValueOnUnmount:gd,syncVModel:!0}),Xd=function(vf,gf=!0){Nd(vf,gf)},Jd=computed(()=>{const{validateOnInput:_f,validateOnChange:vf,validateOnBlur:gf,validateOnModelUpdate:Af}=resolveValidationTriggers(Ra);function Df(Ff){Ld(Ff,gf),isCallable(ed.attrs.onBlur)&&ed.attrs.onBlur(Ff)}function kf(Ff){Xd(Ff,_f),isCallable(ed.attrs.onInput)&&ed.attrs.onInput(Ff)}function Cf(Ff){Xd(Ff,vf),isCallable(ed.attrs.onChange)&&ed.attrs.onChange(Ff)}const If={name:Ra.name,onBlur:Df,onInput:kf,onChange:Cf};return If["onUpdate:modelValue"]=Ff=>Xd(Ff,Af),If}),Zd=computed(()=>{const _f=Object.assign({},Jd.value);hasCheckedAttr(ed.attrs.type)&&zd&&(_f.checked=zd.value);const vf=resolveTag(Ra,ed);return shouldHaveValueBinding(vf,ed.attrs)&&(_f.value=vd.value),_f}),mf=computed(()=>Object.assign(Object.assign({},Jd.value),{modelValue:vd.value}));function xf(){return{field:Zd.value,componentField:mf.value,value:vd.value,meta:Yd,errors:yd.value,errorMessage:Cd.value,validate:wd,resetField:jd,handleChange:Xd,handleInput:_f=>Xd(_f,!1),handleReset:Gd,handleBlur:Jd.value.onBlur,setTouched:Ud,setErrors:qd,setValue:Wd}}return ed.expose({value:vd,meta:Yd,errors:yd,errorMessage:Cd,setErrors:qd,setTouched:Ud,setValue:Wd,reset:jd,validate:wd,handleChange:Nd}),()=>{const _f=resolveDynamicComponent(resolveTag(Ra,ed)),vf=normalizeChildren(_f,ed,xf);return _f?h$2(_f,Object.assign(Object.assign({},ed.attrs),Zd.value),vf):vf}}});function resolveTag(Ra,ed){let ud=Ra.as||"";return!Ra.as&&!ed.slots.default&&(ud="input"),ud}function resolveValidationTriggers(Ra){var ed,ud,dd,hd;const{validateOnInput:md,validateOnChange:gd,validateOnBlur:yd,validateOnModelUpdate:vd}=getConfig$1();return{validateOnInput:(ed=Ra.validateOnInput)!==null&&ed!==void 0?ed:md,validateOnChange:(ud=Ra.validateOnChange)!==null&&ud!==void 0?ud:gd,validateOnBlur:(dd=Ra.validateOnBlur)!==null&&dd!==void 0?dd:yd,validateOnModelUpdate:(hd=Ra.validateOnModelUpdate)!==null&&hd!==void 0?hd:vd}}function resolveInitialValue(Ra,ed){return hasCheckedAttr(ed.attrs.type)?isPropPresent(Ra,"modelValue")?Ra.modelValue:void 0:isPropPresent(Ra,"modelValue")?Ra.modelValue:ed.attrs.value}const Field=FieldImpl;let FORM_COUNTER=0;const PRIVATE_PATH_STATE_KEYS=["bails","fieldsCount","id","multiple","type","validate"];function resolveInitialValues(Ra){const ed=(Ra==null?void 0:Ra.initialValues)||{},ud=Object.assign({},toValue$2(ed)),dd=unref(Ra==null?void 0:Ra.validationSchema);return dd&&isTypedSchema(dd)&&isCallable(dd.cast)?klona(dd.cast(ud)||{}):klona(ud)}function useForm(Ra){var ed;const ud=FORM_COUNTER++,dd=(Ra==null?void 0:Ra.name)||"Form";let hd=0;const md=ref$1(!1),gd=ref$1(!1),yd=ref$1(0),vd=[],Cd=reactive(resolveInitialValues(Ra)),wd=ref$1([]),Nd=ref$1({}),Ld=ref$1({}),Ud=debounceNextTick(()=>{Ld.value=wd.value.reduce((Pf,$f)=>(Pf[normalizeFormPath(toValue$2($f.path))]=$f,Pf),{})});function jd(Pf,$f){const Nh=Ff(Pf);if(!Nh){typeof Pf=="string"&&(Nd.value[normalizeFormPath(Pf)]=normalizeErrorItem($f));return}if(typeof Pf=="string"){const Wh=normalizeFormPath(Pf);Nd.value[Wh]&&delete Nd.value[Wh]}Nh.errors=normalizeErrorItem($f),Nh.valid=!Nh.errors.length}function Gd(Pf){keysOf(Pf).forEach($f=>{jd($f,Pf[$f])})}Ra!=null&&Ra.initialErrors&&Gd(Ra.initialErrors);const Yd=computed(()=>{const Pf=wd.value.reduce(($f,Nh)=>(Nh.errors.length&&($f[toValue$2(Nh.path)]=Nh.errors),$f),{});return Object.assign(Object.assign({},Nd.value),Pf)}),zd=computed(()=>keysOf(Yd.value).reduce((Pf,$f)=>{const Nh=Yd.value[$f];return Nh!=null&&Nh.length&&(Pf[$f]=Nh[0]),Pf},{})),qd=computed(()=>wd.value.reduce((Pf,$f)=>(Pf[toValue$2($f.path)]={name:toValue$2($f.path)||"",label:$f.label||""},Pf),{})),Wd=computed(()=>wd.value.reduce((Pf,$f)=>{var Nh;return Pf[toValue$2($f.path)]=(Nh=$f.bails)!==null&&Nh!==void 0?Nh:!0,Pf},{})),Xd=Object.assign({},(Ra==null?void 0:Ra.initialErrors)||{}),Jd=(ed=Ra==null?void 0:Ra.keepValuesOnUnmount)!==null&&ed!==void 0?ed:!1,{initialValues:Zd,originalInitialValues:mf,setInitialValues:xf}=useFormInitialValues(wd,Cd,Ra),_f=useFormMeta(wd,Cd,mf,zd),vf=computed(()=>wd.value.reduce((Pf,$f)=>{const Nh=getFromPath(Cd,toValue$2($f.path));return setInPath(Pf,toValue$2($f.path),Nh),Pf},{})),gf=Ra==null?void 0:Ra.validationSchema;function Af(Pf,$f){var Nh,Wh;const _m=computed(()=>getFromPath(Zd.value,toValue$2(Pf))),Om=Ld.value[toValue$2(Pf)],Wm=($f==null?void 0:$f.type)==="checkbox"||($f==null?void 0:$f.type)==="radio";if(Om&&Wm){Om.multiple=!0;const p_=hd++;return Array.isArray(Om.id)?Om.id.push(p_):Om.id=[Om.id,p_],Om.fieldsCount++,Om.__flags.pendingUnmount[p_]=!1,Om}const Ag=computed(()=>getFromPath(Cd,toValue$2(Pf))),sg=toValue$2(Pf),yg=Eh.findIndex(p_=>p_===sg);yg!==-1&&Eh.splice(yg,1);const vg=computed(()=>{var p_,l_,v_,r_;const O_=toValue$2(gf);if(isTypedSchema(O_))return(l_=(p_=O_.describe)===null||p_===void 0?void 0:p_.call(O_,toValue$2(Pf)).required)!==null&&l_!==void 0?l_:!1;const S_=toValue$2($f==null?void 0:$f.schema);return isTypedSchema(S_)&&(r_=(v_=S_.describe)===null||v_===void 0?void 0:v_.call(S_).required)!==null&&r_!==void 0?r_:!1}),kg=hd++,Kg=reactive({id:kg,path:Pf,touched:!1,pending:!1,valid:!0,validated:!!(!((Nh=Xd[sg])===null||Nh===void 0)&&Nh.length),required:vg,initialValue:_m,errors:shallowRef([]),bails:(Wh=$f==null?void 0:$f.bails)!==null&&Wh!==void 0?Wh:!1,label:$f==null?void 0:$f.label,type:($f==null?void 0:$f.type)||"default",value:Ag,multiple:!1,__flags:{pendingUnmount:{[kg]:!1},pendingReset:!1},fieldsCount:1,validate:$f==null?void 0:$f.validate,dirty:computed(()=>!isEqual(unref(Ag),unref(_m)))});return wd.value.push(Kg),Ld.value[sg]=Kg,Ud(),zd.value[sg]&&!Xd[sg]&&nextTick$1(()=>{Ih(sg,{mode:"silent"})}),isRef(Pf)&&watch(Pf,p_=>{Ud();const l_=klona(Ag.value);Ld.value[p_]=Kg,nextTick$1(()=>{setInPath(Cd,p_,l_)})}),Kg}const Df=debounceAsync(Nm,5),kf=debounceAsync(Nm,5),Cf=withLatest(async Pf=>await(Pf==="silent"?Df():kf()),(Pf,[$f])=>{const Nh=keysOf(Of.errorBag.value),_m=[...new Set([...keysOf(Pf.results),...wd.value.map(Om=>Om.path),...Nh])].sort().reduce((Om,Wm)=>{var Ag;const sg=Wm,yg=Ff(sg)||oh(sg),vg=((Ag=Pf.results[sg])===null||Ag===void 0?void 0:Ag.errors)||[],kg=toValue$2(yg==null?void 0:yg.path)||sg,Kg=mergeValidationResults({errors:vg,valid:!vg.length},Om.results[kg]);return Om.results[kg]=Kg,Kg.valid||(Om.errors[kg]=Kg.errors[0]),yg&&Nd.value[kg]&&delete Nd.value[kg],yg?(yg.valid=Kg.valid,$f==="silent"||$f==="validated-only"&&!yg.validated||jd(yg,Kg.errors),Om):(jd(kg,vg),Om)},{valid:Pf.valid,results:{},errors:{},source:Pf.source});return Pf.values&&(_m.values=Pf.values,_m.source=Pf.source),keysOf(_m.results).forEach(Om=>{var Wm;const Ag=Ff(Om);Ag&&$f!=="silent"&&($f==="validated-only"&&!Ag.validated||jd(Ag,(Wm=_m.results[Om])===null||Wm===void 0?void 0:Wm.errors))}),_m});function If(Pf){wd.value.forEach(Pf)}function Ff(Pf){const $f=typeof Pf=="string"?normalizeFormPath(Pf):Pf;return typeof $f=="string"?Ld.value[$f]:$f}function oh(Pf){return wd.value.filter(Nh=>Pf.startsWith(toValue$2(Nh.path))).reduce((Nh,Wh)=>Nh?Wh.path.length>Nh.path.length?Wh:Nh:Wh,void 0)}let Eh=[],_h;function Mh(Pf){return Eh.push(Pf),_h||(_h=nextTick$1(()=>{[...Eh].sort().reverse().forEach(Nh=>{unsetPath(Cd,Nh)}),Eh=[],_h=null})),_h}function lh(Pf){return function(Nh,Wh){return function(Om){return Om instanceof Event&&(Om.preventDefault(),Om.stopPropagation()),If(Wm=>Wm.touched=!0),md.value=!0,yd.value++,Lh().then(Wm=>{const Ag=klona(Cd);if(Wm.valid&&typeof Nh=="function"){const sg=klona(vf.value);let yg=Pf?sg:Ag;return Wm.values&&(yg=Wm.source==="schema"?Wm.values:Object.assign({},yg,Wm.values)),Nh(yg,{evt:Om,controlledValues:sg,setErrors:Gd,setFieldError:jd,setTouched:$h,setFieldTouched:th,setValues:Ph,setFieldValue:Rf,resetForm:nh,resetField:Vf})}!Wm.valid&&typeof Wh=="function"&&Wh({values:Ag,evt:Om,errors:Wm.errors,results:Wm.results})}).then(Wm=>(md.value=!1,Wm),Wm=>{throw md.value=!1,Wm})}}}const mh=lh(!1);mh.withControlled=lh(!0);function xh(Pf,$f){const Nh=wd.value.findIndex(_m=>_m.path===Pf&&(Array.isArray(_m.id)?_m.id.includes($f):_m.id===$f)),Wh=wd.value[Nh];if(!(Nh===-1||!Wh)){if(nextTick$1(()=>{Ih(Pf,{mode:"silent",warn:!1})}),Wh.multiple&&Wh.fieldsCount&&Wh.fieldsCount--,Array.isArray(Wh.id)){const _m=Wh.id.indexOf($f);_m>=0&&Wh.id.splice(_m,1),delete Wh.__flags.pendingUnmount[$f]}(!Wh.multiple||Wh.fieldsCount<=0)&&(wd.value.splice(Nh,1),om(Pf),Ud(),delete Ld.value[Pf])}}function Sh(Pf){keysOf(Ld.value).forEach($f=>{$f.startsWith(Pf)&&delete Ld.value[$f]}),wd.value=wd.value.filter($f=>!$f.path.startsWith(Pf)),nextTick$1(()=>{Ud()})}const Of={name:dd,formId:ud,values:Cd,controlledValues:vf,errorBag:Yd,errors:zd,schema:gf,submitCount:yd,meta:_f,isSubmitting:md,isValidating:gd,fieldArrays:vd,keepValuesOnUnmount:Jd,validateSchema:unref(gf)?Cf:void 0,validate:Lh,setFieldError:jd,validateField:Ih,setFieldValue:Rf,setValues:Ph,setErrors:Gd,setFieldTouched:th,setTouched:$h,resetForm:nh,resetField:Vf,handleSubmit:mh,useFieldModel:jm,defineInputBinds:rg,defineComponentBinds:pg,defineField:Ym,stageInitialValue:zh,unsetInitialValue:om,setFieldInitialValue:Mm,createPathState:Af,getPathState:Ff,unsetPathValue:Mh,removePathState:xh,initialValues:Zd,getAllPathStates:()=>wd.value,destroyPath:Sh,isFieldTouched:sh,isFieldDirty:Zh,isFieldValid:Sm};function Rf(Pf,$f,Nh=!0){const Wh=klona($f),_m=typeof Pf=="string"?Pf:Pf.path;Ff(_m)||Af(_m),setInPath(Cd,_m,Wh),Nh&&Ih(_m)}function yh(Pf,$f=!0){keysOf(Cd).forEach(Nh=>{delete Cd[Nh]}),keysOf(Pf).forEach(Nh=>{Rf(Nh,Pf[Nh],!1)}),$f&&Lh()}function Ph(Pf,$f=!0){merge$3(Cd,Pf),vd.forEach(Nh=>Nh&&Nh.reset()),$f&&Lh()}function sm(Pf,$f){const Nh=Ff(toValue$2(Pf))||Af(Pf);return computed({get(){return Nh.value},set(Wh){var _m;const Om=toValue$2(Pf);Rf(Om,Wh,(_m=toValue$2($f))!==null&&_m!==void 0?_m:!1)}})}function th(Pf,$f){const Nh=Ff(Pf);Nh&&(Nh.touched=$f)}function sh(Pf){const $f=Ff(Pf);return $f?$f.touched:wd.value.filter(Nh=>Nh.path.startsWith(Pf)).some(Nh=>Nh.touched)}function Zh(Pf){const $f=Ff(Pf);return $f?$f.dirty:wd.value.filter(Nh=>Nh.path.startsWith(Pf)).some(Nh=>Nh.dirty)}function Sm(Pf){const $f=Ff(Pf);return $f?$f.valid:wd.value.filter(Nh=>Nh.path.startsWith(Pf)).every(Nh=>Nh.valid)}function $h(Pf){if(typeof Pf=="boolean"){If($f=>{$f.touched=Pf});return}keysOf(Pf).forEach($f=>{th($f,!!Pf[$f])})}function Vf(Pf,$f){var Nh;const Wh=$f&&"value"in $f?$f.value:getFromPath(Zd.value,Pf),_m=Ff(Pf);_m&&(_m.__flags.pendingReset=!0),Mm(Pf,klona(Wh),!0),Rf(Pf,Wh,!1),th(Pf,(Nh=$f==null?void 0:$f.touched)!==null&&Nh!==void 0?Nh:!1),jd(Pf,($f==null?void 0:$f.errors)||[]),nextTick$1(()=>{_m&&(_m.__flags.pendingReset=!1)})}function nh(Pf,$f){let Nh=klona(Pf!=null&&Pf.values?Pf.values:mf.value);Nh=$f!=null&&$f.force?Nh:merge$3(mf.value,Nh),Nh=isTypedSchema(gf)&&isCallable(gf.cast)?gf.cast(Nh):Nh,xf(Nh,{force:$f==null?void 0:$f.force}),If(Wh=>{var _m;Wh.__flags.pendingReset=!0,Wh.validated=!1,Wh.touched=((_m=Pf==null?void 0:Pf.touched)===null||_m===void 0?void 0:_m[toValue$2(Wh.path)])||!1,Rf(toValue$2(Wh.path),getFromPath(Nh,toValue$2(Wh.path)),!1),jd(toValue$2(Wh.path),void 0)}),$f!=null&&$f.force?yh(Nh,!1):Ph(Nh,!1),Gd((Pf==null?void 0:Pf.errors)||{}),yd.value=(Pf==null?void 0:Pf.submitCount)||0,nextTick$1(()=>{Lh({mode:"silent"}),If(Wh=>{Wh.__flags.pendingReset=!1})})}async function Lh(Pf){const $f=(Pf==null?void 0:Pf.mode)||"force";if($f==="force"&&If(Wm=>Wm.validated=!0),Of.validateSchema)return Of.validateSchema($f);gd.value=!0;const Nh=await Promise.all(wd.value.map(Wm=>Wm.validate?Wm.validate(Pf).then(Ag=>({key:toValue$2(Wm.path),valid:Ag.valid,errors:Ag.errors,value:Ag.value})):Promise.resolve({key:toValue$2(Wm.path),valid:!0,errors:[],value:void 0})));gd.value=!1;const Wh={},_m={},Om={};for(const Wm of Nh)Wh[Wm.key]={valid:Wm.valid,errors:Wm.errors},Wm.value&&setInPath(Om,Wm.key,Wm.value),Wm.errors.length&&(_m[Wm.key]=Wm.errors[0]);return{valid:Nh.every(Wm=>Wm.valid),results:Wh,errors:_m,values:Om,source:"fields"}}async function Ih(Pf,$f){var Nh;const Wh=Ff(Pf);if(Wh&&($f==null?void 0:$f.mode)!=="silent"&&(Wh.validated=!0),gf){const{results:_m}=await Cf(($f==null?void 0:$f.mode)||"validated-only");return _m[Pf]||{errors:[],valid:!0}}return Wh!=null&&Wh.validate?Wh.validate($f):(!Wh&&(Nh=$f==null?void 0:$f.warn),Promise.resolve({errors:[],valid:!0}))}function om(Pf){unsetPath(Zd.value,Pf)}function zh(Pf,$f,Nh=!1){Mm(Pf,$f),setInPath(Cd,Pf,$f),Nh&&!(Ra!=null&&Ra.initialValues)&&setInPath(mf.value,Pf,klona($f))}function Mm(Pf,$f,Nh=!1){setInPath(Zd.value,Pf,klona($f)),Nh&&setInPath(mf.value,Pf,klona($f))}async function Nm(){const Pf=unref(gf);if(!Pf)return{valid:!0,results:{},errors:{},source:"none"};gd.value=!0;const $f=isYupValidator(Pf)||isTypedSchema(Pf)?await validateTypedSchema(Pf,Cd):await validateObjectSchema(Pf,Cd,{names:qd.value,bailsMap:Wd.value});return gd.value=!1,$f}const Zm=mh((Pf,{evt:$f})=>{isFormSubmitEvent($f)&&$f.target.submit()});onMounted(()=>{if(Ra!=null&&Ra.initialErrors&&Gd(Ra.initialErrors),Ra!=null&&Ra.initialTouched&&$h(Ra.initialTouched),Ra!=null&&Ra.validateOnMount){Lh();return}Of.validateSchema&&Of.validateSchema("silent")}),isRef(gf)&&watch(gf,()=>{var Pf;(Pf=Of.validateSchema)===null||Pf===void 0||Pf.call(Of,"validated-only")}),provide(FormContextKey,Of);function Ym(Pf,$f){const Nh=isCallable($f)||$f==null?void 0:$f.label,Wh=Ff(toValue$2(Pf))||Af(Pf,{label:Nh}),_m=()=>isCallable($f)?$f(omit(Wh,PRIVATE_PATH_STATE_KEYS)):$f||{};function Om(){var vg;Wh.touched=!0,((vg=_m().validateOnBlur)!==null&&vg!==void 0?vg:getConfig$1().validateOnBlur)&&Ih(toValue$2(Wh.path))}function Wm(){var vg;((vg=_m().validateOnInput)!==null&&vg!==void 0?vg:getConfig$1().validateOnInput)&&nextTick$1(()=>{Ih(toValue$2(Wh.path))})}function Ag(){var vg;((vg=_m().validateOnChange)!==null&&vg!==void 0?vg:getConfig$1().validateOnChange)&&nextTick$1(()=>{Ih(toValue$2(Wh.path))})}const sg=computed(()=>{const vg={onChange:Ag,onInput:Wm,onBlur:Om};return isCallable($f)?Object.assign(Object.assign({},vg),$f(omit(Wh,PRIVATE_PATH_STATE_KEYS)).props||{}):$f!=null&&$f.props?Object.assign(Object.assign({},vg),$f.props(omit(Wh,PRIVATE_PATH_STATE_KEYS))):vg});return[sm(Pf,()=>{var vg,kg,Kg;return(Kg=(vg=_m().validateOnModelUpdate)!==null&&vg!==void 0?vg:(kg=getConfig$1())===null||kg===void 0?void 0:kg.validateOnModelUpdate)!==null&&Kg!==void 0?Kg:!0}),sg]}function jm(Pf){return Array.isArray(Pf)?Pf.map($f=>sm($f,!0)):sm(Pf)}function rg(Pf,$f){const[Nh,Wh]=Ym(Pf,$f);function _m(){Wh.value.onBlur()}function Om(Ag){const sg=normalizeEventValue(Ag);Rf(toValue$2(Pf),sg,!1),Wh.value.onInput()}function Wm(Ag){const sg=normalizeEventValue(Ag);Rf(toValue$2(Pf),sg,!1),Wh.value.onChange()}return computed(()=>Object.assign(Object.assign({},Wh.value),{onBlur:_m,onInput:Om,onChange:Wm,value:Nh.value}))}function pg(Pf,$f){const[Nh,Wh]=Ym(Pf,$f),_m=Ff(toValue$2(Pf));function Om(Wm){Nh.value=Wm}return computed(()=>{const Wm=isCallable($f)?$f(omit(_m,PRIVATE_PATH_STATE_KEYS)):$f||{};return Object.assign({[Wm.model||"modelValue"]:Nh.value,[`onUpdate:${Wm.model||"modelValue"}`]:Om},Wh.value)})}const jh=Object.assign(Object.assign({},Of),{values:readonly(Cd),handleReset:()=>nh(),submitForm:Zm});return provide(PublicFormContextKey,jh),jh}function useFormMeta(Ra,ed,ud,dd){const hd={touched:"some",pending:"some",valid:"every"},md=computed(()=>!isEqual(ed,unref(ud)));function gd(){const vd=Ra.value;return keysOf(hd).reduce((Cd,wd)=>{const Nd=hd[wd];return Cd[wd]=vd[Nd](Ld=>Ld[wd]),Cd},{})}const yd=reactive(gd());return watchEffect(()=>{const vd=gd();yd.touched=vd.touched,yd.valid=vd.valid,yd.pending=vd.pending}),computed(()=>Object.assign(Object.assign({initialValues:unref(ud)},yd),{valid:yd.valid&&!keysOf(dd.value).length,dirty:md.value}))}function useFormInitialValues(Ra,ed,ud){const dd=resolveInitialValues(ud),hd=ref$1(dd),md=ref$1(klona(dd));function gd(yd,vd){vd!=null&&vd.force?(hd.value=klona(yd),md.value=klona(yd)):(hd.value=merge$3(klona(hd.value)||{},klona(yd)),md.value=merge$3(klona(md.value)||{},klona(yd))),vd!=null&&vd.updateFields&&Ra.value.forEach(Cd=>{if(Cd.touched)return;const Nd=getFromPath(hd.value,toValue$2(Cd.path));setInPath(ed,toValue$2(Cd.path),klona(Nd))})}return{initialValues:hd,originalInitialValues:md,setInitialValues:gd}}function mergeValidationResults(Ra,ed){return ed?{valid:Ra.valid&&ed.valid,errors:[...Ra.errors,...ed.errors]}:Ra}const FormImpl=defineComponent({name:"Form",inheritAttrs:!1,props:{as:{type:null,default:"form"},validationSchema:{type:Object,default:void 0},initialValues:{type:Object,default:void 0},initialErrors:{type:Object,default:void 0},initialTouched:{type:Object,default:void 0},validateOnMount:{type:Boolean,default:!1},onSubmit:{type:Function,default:void 0},onInvalidSubmit:{type:Function,default:void 0},keepValues:{type:Boolean,default:!1},name:{type:String,default:"Form"}},setup(Ra,ed){const ud=toRef$1(Ra,"validationSchema"),dd=toRef$1(Ra,"keepValues"),{errors:hd,errorBag:md,values:gd,meta:yd,isSubmitting:vd,isValidating:Cd,submitCount:wd,controlledValues:Nd,validate:Ld,validateField:Ud,handleReset:jd,resetForm:Gd,handleSubmit:Yd,setErrors:zd,setFieldError:qd,setFieldValue:Wd,setValues:Xd,setFieldTouched:Jd,setTouched:Zd,resetField:mf}=useForm({validationSchema:ud.value?ud:void 0,initialValues:Ra.initialValues,initialErrors:Ra.initialErrors,initialTouched:Ra.initialTouched,validateOnMount:Ra.validateOnMount,keepValuesOnUnmount:dd,name:Ra.name}),xf=Yd((If,{evt:Ff})=>{isFormSubmitEvent(Ff)&&Ff.target.submit()},Ra.onInvalidSubmit),_f=Ra.onSubmit?Yd(Ra.onSubmit,Ra.onInvalidSubmit):xf;function vf(If){isEvent(If)&&If.preventDefault(),jd(),typeof ed.attrs.onReset=="function"&&ed.attrs.onReset()}function gf(If,Ff){return Yd(typeof If=="function"&&!Ff?If:Ff,Ra.onInvalidSubmit)(If)}function Af(){return klona(gd)}function Df(){return klona(yd.value)}function kf(){return klona(hd.value)}function Cf(){return{meta:yd.value,errors:hd.value,errorBag:md.value,values:gd,isSubmitting:vd.value,isValidating:Cd.value,submitCount:wd.value,controlledValues:Nd.value,validate:Ld,validateField:Ud,handleSubmit:gf,handleReset:jd,submitForm:xf,setErrors:zd,setFieldError:qd,setFieldValue:Wd,setValues:Xd,setFieldTouched:Jd,setTouched:Zd,resetForm:Gd,resetField:mf,getValues:Af,getMeta:Df,getErrors:kf}}return ed.expose({setFieldError:qd,setErrors:zd,setFieldValue:Wd,setValues:Xd,setFieldTouched:Jd,setTouched:Zd,resetForm:Gd,validate:Ld,validateField:Ud,resetField:mf,getValues:Af,getMeta:Df,getErrors:kf,values:gd,meta:yd,errors:hd}),function(){const Ff=Ra.as==="form"?Ra.as:Ra.as?resolveDynamicComponent(Ra.as):null,oh=normalizeChildren(Ff,ed,Cf);return Ff?h$2(Ff,Object.assign(Object.assign(Object.assign({},Ff==="form"?{novalidate:!0}:{}),ed.attrs),{onSubmit:_f,onReset:vf}),oh):oh}}}),Form=FormImpl;/** * vee-validate v4.15.0 * (c) 2024 Abdelrahman Awad * @license MIT - */const isObject$3=Ra=>Ra!==null&&!!Ra&&typeof Ra=="object"&&!Array.isArray(Ra);function isIndex(Ra){return Number(Ra)>=0}function isObjectLike(Ra){return typeof Ra=="object"&&Ra!==null}function getTag(Ra){return Ra==null?Ra===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(Ra)}function isPlainObject$1(Ra){if(!isObjectLike(Ra)||getTag(Ra)!=="[object Object]")return!1;if(Object.getPrototypeOf(Ra)===null)return!0;let ed=Ra;for(;Object.getPrototypeOf(ed)!==null;)ed=Object.getPrototypeOf(ed);return Object.getPrototypeOf(Ra)===ed}function merge$2(Ra,ed){return Object.keys(ed).forEach(ud=>{if(isPlainObject$1(ed[ud])&&isPlainObject$1(Ra[ud])){Ra[ud]||(Ra[ud]={}),merge$2(Ra[ud],ed[ud]);return}Ra[ud]=ed[ud]}),Ra}function toTypedSchema(Ra,ed={abortEarly:!1}){return{__type:"VVTypedSchema",async parse(dd){var hd;try{return{value:await Ra.validate(dd,Object.assign({},ed)),errors:[]}}catch(md){const gd=md;if(gd.name!=="ValidationError")throw md;if(!(!((hd=gd.inner)===null||hd===void 0)&&hd.length)&&gd.errors.length)return{errors:[{path:gd.path,errors:gd.errors}]};const yd=gd.inner.reduce((vd,Cd)=>{const wd=Cd.path||"";return vd[wd]||(vd[wd]={errors:[],path:wd}),vd[wd].errors.push(...Cd.errors),vd},{});return{errors:Object.values(yd)}}},cast(dd){try{return Ra.cast(dd)}catch{const md=Ra.getDefault();return isObject$3(md)&&isObject$3(dd)?merge$2(md,dd):dd}},describe(dd){try{if(!dd)return getDescriptionFromYupSpec(Ra.spec);const hd=getSpecForPath(dd,Ra);return hd?getDescriptionFromYupSpec(hd):{required:!1,exists:!1}}catch{return{required:!1,exists:!1}}}}}function getDescriptionFromYupSpec(Ra){return{required:!Ra.optional,exists:!0}}function getSpecForPath(Ra,ed){if(!isObjectSchema(ed))return null;if(isNotNestedPath(Ra)){const hd=ed.fields[cleanupNonNestedPath(Ra)];return(hd==null?void 0:hd.spec)||null}const ud=(Ra||"").split(/\.|\[(\d+)\]/).filter(Boolean);let dd=ed;for(let hd=0;hd=this._maxSize&&this.clear(),Ra in this._values||this._size++,this._values[Ra]=ed};var SPLIT_REGEX=/[^.^\]^[]+|(?=\[\]|\.\.)/g,DIGIT_REGEX=/^\d+$/,LEAD_DIGIT_REGEX=/^\d/,SPEC_CHAR_REGEX=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,CLEAN_QUOTES_REGEX=/^\s*(['"]?)(.*?)(\1)\s*$/,MAX_CACHE_SIZE$1=512,pathCache=new Cache(MAX_CACHE_SIZE$1),setCache=new Cache(MAX_CACHE_SIZE$1),getCache=new Cache(MAX_CACHE_SIZE$1),propertyExpr={Cache,split,normalizePath,setter:function(Ra){var ed=normalizePath(Ra);return setCache.get(Ra)||setCache.set(Ra,function(dd,hd){for(var md=0,gd=ed.length,yd=dd;mdRa.match(reWords)||[],upperFirst=Ra=>Ra[0].toUpperCase()+Ra.slice(1),join=(Ra,ed)=>words(Ra).join(ed).toLowerCase(),camelCase=Ra=>words(Ra).reduce((ed,ud)=>`${ed}${ed?ud[0].toUpperCase()+ud.slice(1).toLowerCase():ud.toLowerCase()}`,""),pascalCase=Ra=>upperFirst(camelCase(Ra)),snakeCase=Ra=>join(Ra,"_"),kebabCase=Ra=>join(Ra,"-"),sentenceCase=Ra=>upperFirst(join(Ra," ")),titleCase=Ra=>words(Ra).map(upperFirst).join(" ");var tinyCase={words,upperFirst,camelCase,pascalCase,snakeCase,kebabCase,sentenceCase,titleCase},toposort$2={exports:{}};toposort$2.exports=function(Ra){return toposort(uniqueNodes(Ra),Ra)};toposort$2.exports.array=toposort;function toposort(Ra,ed){var ud=Ra.length,dd=new Array(ud),hd={},md=ud,gd=makeOutgoingEdges(ed),yd=makeNodesHash(Ra);for(ed.forEach(function(Cd){if(!yd.has(Cd[0])||!yd.has(Cd[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});md--;)hd[md]||vd(Ra[md],md,new Set);return dd;function vd(Cd,wd,Nd){if(Nd.has(Cd)){var Ld;try{Ld=", node was:"+JSON.stringify(Cd)}catch{Ld=""}throw new Error("Cyclic dependency"+Ld)}if(!yd.has(Cd))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(Cd));if(!hd[wd]){hd[wd]=!0;var Ud=gd.get(Cd)||new Set;if(Ud=Array.from(Ud),wd=Ud.length){Nd.add(Cd);do{var jd=Ud[--wd];vd(jd,yd.get(jd),Nd)}while(wd);Nd.delete(Cd)}dd[--ud]=Cd}}}function uniqueNodes(Ra){for(var ed=new Set,ud=0,dd=Ra.length;ud"",SYMBOL_REGEXP=/^Symbol\((.*)\)(.*)$/;function printNumber(Ra){return Ra!=+Ra?"NaN":Ra===0&&1/Ra<0?"-0":""+Ra}function printSimpleValue(Ra,ed=!1){if(Ra==null||Ra===!0||Ra===!1)return""+Ra;const ud=typeof Ra;if(ud==="number")return printNumber(Ra);if(ud==="string")return ed?`"${Ra}"`:Ra;if(ud==="function")return"[Function "+(Ra.name||"anonymous")+"]";if(ud==="symbol")return symbolToString.call(Ra).replace(SYMBOL_REGEXP,"Symbol($1)");const dd=toString$2.call(Ra).slice(8,-1);return dd==="Date"?isNaN(Ra.getTime())?""+Ra:Ra.toISOString(Ra):dd==="Error"||Ra instanceof Error?"["+errorToString.call(Ra)+"]":dd==="RegExp"?regExpToString.call(Ra):null}function printValue(Ra,ed){let ud=printSimpleValue(Ra,ed);return ud!==null?ud:JSON.stringify(Ra,function(dd,hd){let md=printSimpleValue(this[dd],ed);return md!==null?md:hd},2)}function toArray$2(Ra){return Ra==null?[]:[].concat(Ra)}let _Symbol$toStringTag,_Symbol$hasInstance,_Symbol$toStringTag2,strReg=/\$\{\s*(\w+)\s*\}/g;_Symbol$toStringTag=Symbol.toStringTag;class ValidationErrorNoStack{constructor(ed,ud,dd,hd){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[_Symbol$toStringTag]="Error",this.name="ValidationError",this.value=ud,this.path=dd,this.type=hd,this.errors=[],this.inner=[],toArray$2(ed).forEach(md=>{if(ValidationError.isError(md)){this.errors.push(...md.errors);const gd=md.inner.length?md.inner:[md];this.inner.push(...gd)}else this.errors.push(md)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}_Symbol$hasInstance=Symbol.hasInstance;_Symbol$toStringTag2=Symbol.toStringTag;class ValidationError extends Error{static formatError(ed,ud){const dd=ud.label||ud.path||"this";return ud=Object.assign({},ud,{path:dd,originalPath:ud.path}),typeof ed=="string"?ed.replace(strReg,(hd,md)=>printValue(ud[md])):typeof ed=="function"?ed(ud):ed}static isError(ed){return ed&&ed.name==="ValidationError"}constructor(ed,ud,dd,hd,md){const gd=new ValidationErrorNoStack(ed,ud,dd,hd);if(md)return gd;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[_Symbol$toStringTag2]="Error",this.name=gd.name,this.message=gd.message,this.type=gd.type,this.value=gd.value,this.path=gd.path,this.errors=gd.errors,this.inner=gd.inner,Error.captureStackTrace&&Error.captureStackTrace(this,ValidationError)}static[_Symbol$hasInstance](ed){return ValidationErrorNoStack[Symbol.hasInstance](ed)||super[Symbol.hasInstance](ed)}}let mixed={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:Ra,type:ed,value:ud,originalValue:dd})=>{const hd=dd!=null&&dd!==ud?` (cast from the value \`${printValue(dd,!0)}\`).`:".";return ed!=="mixed"?`${Ra} must be a \`${ed}\` type, but the final value was: \`${printValue(ud,!0)}\``+hd:`${Ra} must match the configured type. The validated value was: \`${printValue(ud,!0)}\``+hd}},string={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},number={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},date={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},boolean={isValue:"${path} field must be ${value}"},object={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},array={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},tuple={notType:Ra=>{const{path:ed,value:ud,spec:dd}=Ra,hd=dd.types.length;if(Array.isArray(ud)){if(ud.lengthhd)return`${ed} tuple value has too many items, expected a length of ${hd} but got ${ud.length} for value: \`${printValue(ud,!0)}\``}return ValidationError.formatError(mixed.notType,Ra)}};Object.assign(Object.create(null),{mixed,string,number,date,object,array,boolean,tuple});const isSchema=Ra=>Ra&&Ra.__isYupSchema__;class Condition{static fromOptions(ed,ud){if(!ud.then&&!ud.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:dd,then:hd,otherwise:md}=ud,gd=typeof dd=="function"?dd:(...yd)=>yd.every(vd=>vd===dd);return new Condition(ed,(yd,vd)=>{var Cd;let wd=gd(...yd)?hd:md;return(Cd=wd==null?void 0:wd(vd))!=null?Cd:vd})}constructor(ed,ud){this.fn=void 0,this.refs=ed,this.refs=ed,this.fn=ud}resolve(ed,ud){let dd=this.refs.map(md=>md.getValue(ud==null?void 0:ud.value,ud==null?void 0:ud.parent,ud==null?void 0:ud.context)),hd=this.fn(dd,ed,ud);if(hd===void 0||hd===ed)return ed;if(!isSchema(hd))throw new TypeError("conditions must return a schema object");return hd.resolve(ud)}}const prefixes={context:"$",value:"."};class Reference{constructor(ed,ud={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof ed!="string")throw new TypeError("ref must be a string, got: "+ed);if(this.key=ed.trim(),ed==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===prefixes.context,this.isValue=this.key[0]===prefixes.value,this.isSibling=!this.isContext&&!this.isValue;let dd=this.isContext?prefixes.context:this.isValue?prefixes.value:"";this.path=this.key.slice(dd.length),this.getter=this.path&&propertyExpr.getter(this.path,!0),this.map=ud.map}getValue(ed,ud,dd){let hd=this.isContext?dd:this.isValue?ed:ud;return this.getter&&(hd=this.getter(hd||{})),this.map&&(hd=this.map(hd)),hd}cast(ed,ud){return this.getValue(ed,ud==null?void 0:ud.parent,ud==null?void 0:ud.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(ed){return ed&&ed.__isYupRef}}Reference.prototype.__isYupRef=!0;const isAbsent=Ra=>Ra==null;function createValidation(Ra){function ed({value:ud,path:dd="",options:hd,originalValue:md,schema:gd},yd,vd){const{name:Cd,test:wd,params:Nd,message:Ld,skipAbsent:Ud}=Ra;let{parent:jd,context:Gd,abortEarly:Yd=gd.spec.abortEarly,disableStackTrace:zd=gd.spec.disableStackTrace}=hd;function qd(gf){return Reference.isRef(gf)?gf.getValue(ud,jd,Gd):gf}function Wd(gf={}){const Af=Object.assign({value:ud,originalValue:md,label:gd.spec.label,path:gf.path||dd,spec:gd.spec,disableStackTrace:gf.disableStackTrace||zd},Nd,gf.params);for(const Of of Object.keys(Af))Af[Of]=qd(Af[Of]);const Df=new ValidationError(ValidationError.formatError(gf.message||Ld,Af),ud,Af.path,gf.type||Cd,Af.disableStackTrace);return Df.params=Af,Df}const Xd=Yd?yd:vd;let Jd={path:dd,parent:jd,type:Cd,from:hd.from,createError:Wd,resolve:qd,options:hd,originalValue:md,schema:gd};const Zd=gf=>{ValidationError.isError(gf)?Xd(gf):gf?vd(null):Xd(Wd())},mf=gf=>{ValidationError.isError(gf)?Xd(gf):yd(gf)};if(Ud&&isAbsent(ud))return Zd(!0);let _f;try{var vf;if(_f=wd.call(Jd,ud,Jd),typeof((vf=_f)==null?void 0:vf.then)=="function"){if(hd.sync)throw new Error(`Validation test of type: "${Jd.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(_f).then(Zd,mf)}}catch(gf){mf(gf);return}Zd(_f)}return ed.OPTIONS=Ra,ed}function getIn(Ra,ed,ud,dd=ud){let hd,md,gd;return ed?(propertyExpr.forEach(ed,(yd,vd,Cd)=>{let wd=vd?yd.slice(1,yd.length-1):yd;Ra=Ra.resolve({context:dd,parent:hd,value:ud});let Nd=Ra.type==="tuple",Ld=Cd?parseInt(wd,10):0;if(Ra.innerType||Nd){if(Nd&&!Cd)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${gd}" must contain an index to the tuple element, e.g. "${gd}[0]"`);if(ud&&Ld>=ud.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${yd}, in the path: ${ed}. because there is no value at that index. `);hd=ud,ud=ud&&ud[Ld],Ra=Nd?Ra.spec.types[Ld]:Ra.innerType}if(!Cd){if(!Ra.fields||!Ra.fields[wd])throw new Error(`The schema does not contain the path: ${ed}. (failed at: ${gd} which is a type: "${Ra.type}")`);hd=ud,ud=ud&&ud[wd],Ra=Ra.fields[wd]}md=wd,gd=vd?"["+yd+"]":"."+yd}),{schema:Ra,parent:hd,parentPath:md}):{parent:hd,parentPath:ed,schema:Ra}}class ReferenceSet extends Set{describe(){const ed=[];for(const ud of this.values())ed.push(Reference.isRef(ud)?ud.describe():ud);return ed}resolveAll(ed){let ud=[];for(const dd of this.values())ud.push(ed(dd));return ud}clone(){return new ReferenceSet(this.values())}merge(ed,ud){const dd=this.clone();return ed.forEach(hd=>dd.add(hd)),ud.forEach(hd=>dd.delete(hd)),dd}}function clone(Ra,ed=new Map){if(isSchema(Ra)||!Ra||typeof Ra!="object")return Ra;if(ed.has(Ra))return ed.get(Ra);let ud;if(Ra instanceof Date)ud=new Date(Ra.getTime()),ed.set(Ra,ud);else if(Ra instanceof RegExp)ud=new RegExp(Ra),ed.set(Ra,ud);else if(Array.isArray(Ra)){ud=new Array(Ra.length),ed.set(Ra,ud);for(let dd=0;dd{this.typeError(mixed.notType)}),this.type=ed.type,this._typeCheck=ed.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},ed==null?void 0:ed.spec),this.withMutation(ud=>{ud.nonNullable()})}get _type(){return this.type}clone(ed){if(this._mutate)return ed&&Object.assign(this.spec,ed),this;const ud=Object.create(Object.getPrototypeOf(this));return ud.type=this.type,ud._typeCheck=this._typeCheck,ud._whitelist=this._whitelist.clone(),ud._blacklist=this._blacklist.clone(),ud.internalTests=Object.assign({},this.internalTests),ud.exclusiveTests=Object.assign({},this.exclusiveTests),ud.deps=[...this.deps],ud.conditions=[...this.conditions],ud.tests=[...this.tests],ud.transforms=[...this.transforms],ud.spec=clone(Object.assign({},this.spec,ed)),ud}label(ed){let ud=this.clone();return ud.spec.label=ed,ud}meta(...ed){if(ed.length===0)return this.spec.meta;let ud=this.clone();return ud.spec.meta=Object.assign(ud.spec.meta||{},ed[0]),ud}withMutation(ed){let ud=this._mutate;this._mutate=!0;let dd=ed(this);return this._mutate=ud,dd}concat(ed){if(!ed||ed===this)return this;if(ed.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${ed.type}`);let ud=this,dd=ed.clone();const hd=Object.assign({},ud.spec,dd.spec);return dd.spec=hd,dd.internalTests=Object.assign({},ud.internalTests,dd.internalTests),dd._whitelist=ud._whitelist.merge(ed._whitelist,ed._blacklist),dd._blacklist=ud._blacklist.merge(ed._blacklist,ed._whitelist),dd.tests=ud.tests,dd.exclusiveTests=ud.exclusiveTests,dd.withMutation(md=>{ed.tests.forEach(gd=>{md.test(gd.OPTIONS)})}),dd.transforms=[...ud.transforms,...dd.transforms],dd}isType(ed){return ed==null?!!(this.spec.nullable&&ed===null||this.spec.optional&&ed===void 0):this._typeCheck(ed)}resolve(ed){let ud=this;if(ud.conditions.length){let dd=ud.conditions;ud=ud.clone(),ud.conditions=[],ud=dd.reduce((hd,md)=>md.resolve(hd,ed),ud),ud=ud.resolve(ed)}return ud}resolveOptions(ed){var ud,dd,hd,md;return Object.assign({},ed,{from:ed.from||[],strict:(ud=ed.strict)!=null?ud:this.spec.strict,abortEarly:(dd=ed.abortEarly)!=null?dd:this.spec.abortEarly,recursive:(hd=ed.recursive)!=null?hd:this.spec.recursive,disableStackTrace:(md=ed.disableStackTrace)!=null?md:this.spec.disableStackTrace})}cast(ed,ud={}){let dd=this.resolve(Object.assign({value:ed},ud)),hd=ud.assert==="ignore-optionality",md=dd._cast(ed,ud);if(ud.assert!==!1&&!dd.isType(md)){if(hd&&isAbsent(md))return md;let gd=printValue(ed),yd=printValue(md);throw new TypeError(`The value of ${ud.path||"field"} could not be cast to a value that satisfies the schema type: "${dd.type}". + */const isObject$3=Ra=>Ra!==null&&!!Ra&&typeof Ra=="object"&&!Array.isArray(Ra);function isIndex(Ra){return Number(Ra)>=0}function isObjectLike(Ra){return typeof Ra=="object"&&Ra!==null}function getTag(Ra){return Ra==null?Ra===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(Ra)}function isPlainObject$1(Ra){if(!isObjectLike(Ra)||getTag(Ra)!=="[object Object]")return!1;if(Object.getPrototypeOf(Ra)===null)return!0;let ed=Ra;for(;Object.getPrototypeOf(ed)!==null;)ed=Object.getPrototypeOf(ed);return Object.getPrototypeOf(Ra)===ed}function merge$2(Ra,ed){return Object.keys(ed).forEach(ud=>{if(isPlainObject$1(ed[ud])&&isPlainObject$1(Ra[ud])){Ra[ud]||(Ra[ud]={}),merge$2(Ra[ud],ed[ud]);return}Ra[ud]=ed[ud]}),Ra}function toTypedSchema(Ra,ed={abortEarly:!1}){return{__type:"VVTypedSchema",async parse(dd){var hd;try{return{value:await Ra.validate(dd,Object.assign({},ed)),errors:[]}}catch(md){const gd=md;if(gd.name!=="ValidationError")throw md;if(!(!((hd=gd.inner)===null||hd===void 0)&&hd.length)&&gd.errors.length)return{errors:[{path:gd.path,errors:gd.errors}]};const yd=gd.inner.reduce((vd,Cd)=>{const wd=Cd.path||"";return vd[wd]||(vd[wd]={errors:[],path:wd}),vd[wd].errors.push(...Cd.errors),vd},{});return{errors:Object.values(yd)}}},cast(dd){try{return Ra.cast(dd)}catch{const md=Ra.getDefault();return isObject$3(md)&&isObject$3(dd)?merge$2(md,dd):dd}},describe(dd){try{if(!dd)return getDescriptionFromYupSpec(Ra.spec);const hd=getSpecForPath(dd,Ra);return hd?getDescriptionFromYupSpec(hd):{required:!1,exists:!1}}catch{return{required:!1,exists:!1}}}}}function getDescriptionFromYupSpec(Ra){return{required:!Ra.optional,exists:!0}}function getSpecForPath(Ra,ed){if(!isObjectSchema(ed))return null;if(isNotNestedPath(Ra)){const hd=ed.fields[cleanupNonNestedPath(Ra)];return(hd==null?void 0:hd.spec)||null}const ud=(Ra||"").split(/\.|\[(\d+)\]/).filter(Boolean);let dd=ed;for(let hd=0;hd=this._maxSize&&this.clear(),Ra in this._values||this._size++,this._values[Ra]=ed};var SPLIT_REGEX=/[^.^\]^[]+|(?=\[\]|\.\.)/g,DIGIT_REGEX=/^\d+$/,LEAD_DIGIT_REGEX=/^\d/,SPEC_CHAR_REGEX=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,CLEAN_QUOTES_REGEX=/^\s*(['"]?)(.*?)(\1)\s*$/,MAX_CACHE_SIZE$1=512,pathCache=new Cache(MAX_CACHE_SIZE$1),setCache=new Cache(MAX_CACHE_SIZE$1),getCache=new Cache(MAX_CACHE_SIZE$1),propertyExpr={Cache,split,normalizePath,setter:function(Ra){var ed=normalizePath(Ra);return setCache.get(Ra)||setCache.set(Ra,function(dd,hd){for(var md=0,gd=ed.length,yd=dd;mdRa.match(reWords)||[],upperFirst=Ra=>Ra[0].toUpperCase()+Ra.slice(1),join=(Ra,ed)=>words(Ra).join(ed).toLowerCase(),camelCase=Ra=>words(Ra).reduce((ed,ud)=>`${ed}${ed?ud[0].toUpperCase()+ud.slice(1).toLowerCase():ud.toLowerCase()}`,""),pascalCase=Ra=>upperFirst(camelCase(Ra)),snakeCase=Ra=>join(Ra,"_"),kebabCase=Ra=>join(Ra,"-"),sentenceCase=Ra=>upperFirst(join(Ra," ")),titleCase=Ra=>words(Ra).map(upperFirst).join(" ");var tinyCase={words,upperFirst,camelCase,pascalCase,snakeCase,kebabCase,sentenceCase,titleCase},toposort$2={exports:{}};toposort$2.exports=function(Ra){return toposort(uniqueNodes(Ra),Ra)};toposort$2.exports.array=toposort;function toposort(Ra,ed){var ud=Ra.length,dd=new Array(ud),hd={},md=ud,gd=makeOutgoingEdges(ed),yd=makeNodesHash(Ra);for(ed.forEach(function(Cd){if(!yd.has(Cd[0])||!yd.has(Cd[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});md--;)hd[md]||vd(Ra[md],md,new Set);return dd;function vd(Cd,wd,Nd){if(Nd.has(Cd)){var Ld;try{Ld=", node was:"+JSON.stringify(Cd)}catch{Ld=""}throw new Error("Cyclic dependency"+Ld)}if(!yd.has(Cd))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(Cd));if(!hd[wd]){hd[wd]=!0;var Ud=gd.get(Cd)||new Set;if(Ud=Array.from(Ud),wd=Ud.length){Nd.add(Cd);do{var jd=Ud[--wd];vd(jd,yd.get(jd),Nd)}while(wd);Nd.delete(Cd)}dd[--ud]=Cd}}}function uniqueNodes(Ra){for(var ed=new Set,ud=0,dd=Ra.length;ud"",SYMBOL_REGEXP=/^Symbol\((.*)\)(.*)$/;function printNumber(Ra){return Ra!=+Ra?"NaN":Ra===0&&1/Ra<0?"-0":""+Ra}function printSimpleValue(Ra,ed=!1){if(Ra==null||Ra===!0||Ra===!1)return""+Ra;const ud=typeof Ra;if(ud==="number")return printNumber(Ra);if(ud==="string")return ed?`"${Ra}"`:Ra;if(ud==="function")return"[Function "+(Ra.name||"anonymous")+"]";if(ud==="symbol")return symbolToString.call(Ra).replace(SYMBOL_REGEXP,"Symbol($1)");const dd=toString$2.call(Ra).slice(8,-1);return dd==="Date"?isNaN(Ra.getTime())?""+Ra:Ra.toISOString(Ra):dd==="Error"||Ra instanceof Error?"["+errorToString.call(Ra)+"]":dd==="RegExp"?regExpToString.call(Ra):null}function printValue(Ra,ed){let ud=printSimpleValue(Ra,ed);return ud!==null?ud:JSON.stringify(Ra,function(dd,hd){let md=printSimpleValue(this[dd],ed);return md!==null?md:hd},2)}function toArray$2(Ra){return Ra==null?[]:[].concat(Ra)}let _Symbol$toStringTag,_Symbol$hasInstance,_Symbol$toStringTag2,strReg=/\$\{\s*(\w+)\s*\}/g;_Symbol$toStringTag=Symbol.toStringTag;class ValidationErrorNoStack{constructor(ed,ud,dd,hd){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[_Symbol$toStringTag]="Error",this.name="ValidationError",this.value=ud,this.path=dd,this.type=hd,this.errors=[],this.inner=[],toArray$2(ed).forEach(md=>{if(ValidationError.isError(md)){this.errors.push(...md.errors);const gd=md.inner.length?md.inner:[md];this.inner.push(...gd)}else this.errors.push(md)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}_Symbol$hasInstance=Symbol.hasInstance;_Symbol$toStringTag2=Symbol.toStringTag;class ValidationError extends Error{static formatError(ed,ud){const dd=ud.label||ud.path||"this";return ud=Object.assign({},ud,{path:dd,originalPath:ud.path}),typeof ed=="string"?ed.replace(strReg,(hd,md)=>printValue(ud[md])):typeof ed=="function"?ed(ud):ed}static isError(ed){return ed&&ed.name==="ValidationError"}constructor(ed,ud,dd,hd,md){const gd=new ValidationErrorNoStack(ed,ud,dd,hd);if(md)return gd;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[_Symbol$toStringTag2]="Error",this.name=gd.name,this.message=gd.message,this.type=gd.type,this.value=gd.value,this.path=gd.path,this.errors=gd.errors,this.inner=gd.inner,Error.captureStackTrace&&Error.captureStackTrace(this,ValidationError)}static[_Symbol$hasInstance](ed){return ValidationErrorNoStack[Symbol.hasInstance](ed)||super[Symbol.hasInstance](ed)}}let mixed={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:Ra,type:ed,value:ud,originalValue:dd})=>{const hd=dd!=null&&dd!==ud?` (cast from the value \`${printValue(dd,!0)}\`).`:".";return ed!=="mixed"?`${Ra} must be a \`${ed}\` type, but the final value was: \`${printValue(ud,!0)}\``+hd:`${Ra} must match the configured type. The validated value was: \`${printValue(ud,!0)}\``+hd}},string={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},number={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},date={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},boolean={isValue:"${path} field must be ${value}"},object={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},array={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},tuple={notType:Ra=>{const{path:ed,value:ud,spec:dd}=Ra,hd=dd.types.length;if(Array.isArray(ud)){if(ud.lengthhd)return`${ed} tuple value has too many items, expected a length of ${hd} but got ${ud.length} for value: \`${printValue(ud,!0)}\``}return ValidationError.formatError(mixed.notType,Ra)}};Object.assign(Object.create(null),{mixed,string,number,date,object,array,boolean,tuple});const isSchema=Ra=>Ra&&Ra.__isYupSchema__;class Condition{static fromOptions(ed,ud){if(!ud.then&&!ud.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:dd,then:hd,otherwise:md}=ud,gd=typeof dd=="function"?dd:(...yd)=>yd.every(vd=>vd===dd);return new Condition(ed,(yd,vd)=>{var Cd;let wd=gd(...yd)?hd:md;return(Cd=wd==null?void 0:wd(vd))!=null?Cd:vd})}constructor(ed,ud){this.fn=void 0,this.refs=ed,this.refs=ed,this.fn=ud}resolve(ed,ud){let dd=this.refs.map(md=>md.getValue(ud==null?void 0:ud.value,ud==null?void 0:ud.parent,ud==null?void 0:ud.context)),hd=this.fn(dd,ed,ud);if(hd===void 0||hd===ed)return ed;if(!isSchema(hd))throw new TypeError("conditions must return a schema object");return hd.resolve(ud)}}const prefixes={context:"$",value:"."};class Reference{constructor(ed,ud={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof ed!="string")throw new TypeError("ref must be a string, got: "+ed);if(this.key=ed.trim(),ed==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===prefixes.context,this.isValue=this.key[0]===prefixes.value,this.isSibling=!this.isContext&&!this.isValue;let dd=this.isContext?prefixes.context:this.isValue?prefixes.value:"";this.path=this.key.slice(dd.length),this.getter=this.path&&propertyExpr.getter(this.path,!0),this.map=ud.map}getValue(ed,ud,dd){let hd=this.isContext?dd:this.isValue?ed:ud;return this.getter&&(hd=this.getter(hd||{})),this.map&&(hd=this.map(hd)),hd}cast(ed,ud){return this.getValue(ed,ud==null?void 0:ud.parent,ud==null?void 0:ud.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(ed){return ed&&ed.__isYupRef}}Reference.prototype.__isYupRef=!0;const isAbsent=Ra=>Ra==null;function createValidation(Ra){function ed({value:ud,path:dd="",options:hd,originalValue:md,schema:gd},yd,vd){const{name:Cd,test:wd,params:Nd,message:Ld,skipAbsent:Ud}=Ra;let{parent:jd,context:Gd,abortEarly:Yd=gd.spec.abortEarly,disableStackTrace:zd=gd.spec.disableStackTrace}=hd;function qd(gf){return Reference.isRef(gf)?gf.getValue(ud,jd,Gd):gf}function Wd(gf={}){const Af=Object.assign({value:ud,originalValue:md,label:gd.spec.label,path:gf.path||dd,spec:gd.spec,disableStackTrace:gf.disableStackTrace||zd},Nd,gf.params);for(const kf of Object.keys(Af))Af[kf]=qd(Af[kf]);const Df=new ValidationError(ValidationError.formatError(gf.message||Ld,Af),ud,Af.path,gf.type||Cd,Af.disableStackTrace);return Df.params=Af,Df}const Xd=Yd?yd:vd;let Jd={path:dd,parent:jd,type:Cd,from:hd.from,createError:Wd,resolve:qd,options:hd,originalValue:md,schema:gd};const Zd=gf=>{ValidationError.isError(gf)?Xd(gf):gf?vd(null):Xd(Wd())},mf=gf=>{ValidationError.isError(gf)?Xd(gf):yd(gf)};if(Ud&&isAbsent(ud))return Zd(!0);let _f;try{var vf;if(_f=wd.call(Jd,ud,Jd),typeof((vf=_f)==null?void 0:vf.then)=="function"){if(hd.sync)throw new Error(`Validation test of type: "${Jd.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(_f).then(Zd,mf)}}catch(gf){mf(gf);return}Zd(_f)}return ed.OPTIONS=Ra,ed}function getIn(Ra,ed,ud,dd=ud){let hd,md,gd;return ed?(propertyExpr.forEach(ed,(yd,vd,Cd)=>{let wd=vd?yd.slice(1,yd.length-1):yd;Ra=Ra.resolve({context:dd,parent:hd,value:ud});let Nd=Ra.type==="tuple",Ld=Cd?parseInt(wd,10):0;if(Ra.innerType||Nd){if(Nd&&!Cd)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${gd}" must contain an index to the tuple element, e.g. "${gd}[0]"`);if(ud&&Ld>=ud.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${yd}, in the path: ${ed}. because there is no value at that index. `);hd=ud,ud=ud&&ud[Ld],Ra=Nd?Ra.spec.types[Ld]:Ra.innerType}if(!Cd){if(!Ra.fields||!Ra.fields[wd])throw new Error(`The schema does not contain the path: ${ed}. (failed at: ${gd} which is a type: "${Ra.type}")`);hd=ud,ud=ud&&ud[wd],Ra=Ra.fields[wd]}md=wd,gd=vd?"["+yd+"]":"."+yd}),{schema:Ra,parent:hd,parentPath:md}):{parent:hd,parentPath:ed,schema:Ra}}class ReferenceSet extends Set{describe(){const ed=[];for(const ud of this.values())ed.push(Reference.isRef(ud)?ud.describe():ud);return ed}resolveAll(ed){let ud=[];for(const dd of this.values())ud.push(ed(dd));return ud}clone(){return new ReferenceSet(this.values())}merge(ed,ud){const dd=this.clone();return ed.forEach(hd=>dd.add(hd)),ud.forEach(hd=>dd.delete(hd)),dd}}function clone(Ra,ed=new Map){if(isSchema(Ra)||!Ra||typeof Ra!="object")return Ra;if(ed.has(Ra))return ed.get(Ra);let ud;if(Ra instanceof Date)ud=new Date(Ra.getTime()),ed.set(Ra,ud);else if(Ra instanceof RegExp)ud=new RegExp(Ra),ed.set(Ra,ud);else if(Array.isArray(Ra)){ud=new Array(Ra.length),ed.set(Ra,ud);for(let dd=0;dd{this.typeError(mixed.notType)}),this.type=ed.type,this._typeCheck=ed.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},ed==null?void 0:ed.spec),this.withMutation(ud=>{ud.nonNullable()})}get _type(){return this.type}clone(ed){if(this._mutate)return ed&&Object.assign(this.spec,ed),this;const ud=Object.create(Object.getPrototypeOf(this));return ud.type=this.type,ud._typeCheck=this._typeCheck,ud._whitelist=this._whitelist.clone(),ud._blacklist=this._blacklist.clone(),ud.internalTests=Object.assign({},this.internalTests),ud.exclusiveTests=Object.assign({},this.exclusiveTests),ud.deps=[...this.deps],ud.conditions=[...this.conditions],ud.tests=[...this.tests],ud.transforms=[...this.transforms],ud.spec=clone(Object.assign({},this.spec,ed)),ud}label(ed){let ud=this.clone();return ud.spec.label=ed,ud}meta(...ed){if(ed.length===0)return this.spec.meta;let ud=this.clone();return ud.spec.meta=Object.assign(ud.spec.meta||{},ed[0]),ud}withMutation(ed){let ud=this._mutate;this._mutate=!0;let dd=ed(this);return this._mutate=ud,dd}concat(ed){if(!ed||ed===this)return this;if(ed.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${ed.type}`);let ud=this,dd=ed.clone();const hd=Object.assign({},ud.spec,dd.spec);return dd.spec=hd,dd.internalTests=Object.assign({},ud.internalTests,dd.internalTests),dd._whitelist=ud._whitelist.merge(ed._whitelist,ed._blacklist),dd._blacklist=ud._blacklist.merge(ed._blacklist,ed._whitelist),dd.tests=ud.tests,dd.exclusiveTests=ud.exclusiveTests,dd.withMutation(md=>{ed.tests.forEach(gd=>{md.test(gd.OPTIONS)})}),dd.transforms=[...ud.transforms,...dd.transforms],dd}isType(ed){return ed==null?!!(this.spec.nullable&&ed===null||this.spec.optional&&ed===void 0):this._typeCheck(ed)}resolve(ed){let ud=this;if(ud.conditions.length){let dd=ud.conditions;ud=ud.clone(),ud.conditions=[],ud=dd.reduce((hd,md)=>md.resolve(hd,ed),ud),ud=ud.resolve(ed)}return ud}resolveOptions(ed){var ud,dd,hd,md;return Object.assign({},ed,{from:ed.from||[],strict:(ud=ed.strict)!=null?ud:this.spec.strict,abortEarly:(dd=ed.abortEarly)!=null?dd:this.spec.abortEarly,recursive:(hd=ed.recursive)!=null?hd:this.spec.recursive,disableStackTrace:(md=ed.disableStackTrace)!=null?md:this.spec.disableStackTrace})}cast(ed,ud={}){let dd=this.resolve(Object.assign({value:ed},ud)),hd=ud.assert==="ignore-optionality",md=dd._cast(ed,ud);if(ud.assert!==!1&&!dd.isType(md)){if(hd&&isAbsent(md))return md;let gd=printValue(ed),yd=printValue(md);throw new TypeError(`The value of ${ud.path||"field"} could not be cast to a value that satisfies the schema type: "${dd.type}". attempted value: ${gd} -`+(yd!==gd?`result of cast: ${yd}`:""))}return md}_cast(ed,ud){let dd=ed===void 0?ed:this.transforms.reduce((hd,md)=>md.call(this,hd,ed,this),ed);return dd===void 0&&(dd=this.getDefault(ud)),dd}_validate(ed,ud={},dd,hd){let{path:md,originalValue:gd=ed,strict:yd=this.spec.strict}=ud,vd=ed;yd||(vd=this._cast(vd,Object.assign({assert:!1},ud)));let Cd=[];for(let wd of Object.values(this.internalTests))wd&&Cd.push(wd);this.runTests({path:md,value:vd,originalValue:gd,options:ud,tests:Cd},dd,wd=>{if(wd.length)return hd(wd,vd);this.runTests({path:md,value:vd,originalValue:gd,options:ud,tests:this.tests},dd,hd)})}runTests(ed,ud,dd){let hd=!1,{tests:md,value:gd,originalValue:yd,path:vd,options:Cd}=ed,wd=Gd=>{hd||(hd=!0,ud(Gd,gd))},Nd=Gd=>{hd||(hd=!0,dd(Gd,gd))},Ld=md.length,Ud=[];if(!Ld)return Nd([]);let jd={value:gd,originalValue:yd,path:vd,options:Cd,schema:this};for(let Gd=0;Gdthis.resolve(wd)._validate(Cd,wd,Ld,Ud)}validate(ed,ud){var dd;let hd=this.resolve(Object.assign({},ud,{value:ed})),md=(dd=ud==null?void 0:ud.disableStackTrace)!=null?dd:hd.spec.disableStackTrace;return new Promise((gd,yd)=>hd._validate(ed,ud,(vd,Cd)=>{ValidationError.isError(vd)&&(vd.value=Cd),yd(vd)},(vd,Cd)=>{vd.length?yd(new ValidationError(vd,Cd,void 0,void 0,md)):gd(Cd)}))}validateSync(ed,ud){var dd;let hd=this.resolve(Object.assign({},ud,{value:ed})),md,gd=(dd=ud==null?void 0:ud.disableStackTrace)!=null?dd:hd.spec.disableStackTrace;return hd._validate(ed,Object.assign({},ud,{sync:!0}),(yd,vd)=>{throw ValidationError.isError(yd)&&(yd.value=vd),yd},(yd,vd)=>{if(yd.length)throw new ValidationError(yd,ed,void 0,void 0,gd);md=vd}),md}isValid(ed,ud){return this.validate(ed,ud).then(()=>!0,dd=>{if(ValidationError.isError(dd))return!1;throw dd})}isValidSync(ed,ud){try{return this.validateSync(ed,ud),!0}catch(dd){if(ValidationError.isError(dd))return!1;throw dd}}_getDefault(ed){let ud=this.spec.default;return ud==null?ud:typeof ud=="function"?ud.call(this,ed):clone(ud)}getDefault(ed){return this.resolve(ed||{})._getDefault(ed)}default(ed){return arguments.length===0?this._getDefault():this.clone({default:ed})}strict(ed=!0){return this.clone({strict:ed})}nullability(ed,ud){const dd=this.clone({nullable:ed});return dd.internalTests.nullable=createValidation({message:ud,name:"nullable",test(hd){return hd===null?this.schema.spec.nullable:!0}}),dd}optionality(ed,ud){const dd=this.clone({optional:ed});return dd.internalTests.optionality=createValidation({message:ud,name:"optionality",test(hd){return hd===void 0?this.schema.spec.optional:!0}}),dd}optional(){return this.optionality(!0)}defined(ed=mixed.defined){return this.optionality(!1,ed)}nullable(){return this.nullability(!0)}nonNullable(ed=mixed.notNull){return this.nullability(!1,ed)}required(ed=mixed.required){return this.clone().withMutation(ud=>ud.nonNullable(ed).defined(ed))}notRequired(){return this.clone().withMutation(ed=>ed.nullable().optional())}transform(ed){let ud=this.clone();return ud.transforms.push(ed),ud}test(...ed){let ud;if(ed.length===1?typeof ed[0]=="function"?ud={test:ed[0]}:ud=ed[0]:ed.length===2?ud={name:ed[0],test:ed[1]}:ud={name:ed[0],message:ed[1],test:ed[2]},ud.message===void 0&&(ud.message=mixed.default),typeof ud.test!="function")throw new TypeError("`test` is a required parameters");let dd=this.clone(),hd=createValidation(ud),md=ud.exclusive||ud.name&&dd.exclusiveTests[ud.name]===!0;if(ud.exclusive&&!ud.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return ud.name&&(dd.exclusiveTests[ud.name]=!!ud.exclusive),dd.tests=dd.tests.filter(gd=>!(gd.OPTIONS.name===ud.name&&(md||gd.OPTIONS.test===hd.OPTIONS.test))),dd.tests.push(hd),dd}when(ed,ud){!Array.isArray(ed)&&typeof ed!="string"&&(ud=ed,ed=".");let dd=this.clone(),hd=toArray$2(ed).map(md=>new Reference(md));return hd.forEach(md=>{md.isSibling&&dd.deps.push(md.key)}),dd.conditions.push(typeof ud=="function"?new Condition(hd,ud):Condition.fromOptions(hd,ud)),dd}typeError(ed){let ud=this.clone();return ud.internalTests.typeError=createValidation({message:ed,name:"typeError",skipAbsent:!0,test(dd){return this.schema._typeCheck(dd)?!0:this.createError({params:{type:this.schema.type}})}}),ud}oneOf(ed,ud=mixed.oneOf){let dd=this.clone();return ed.forEach(hd=>{dd._whitelist.add(hd),dd._blacklist.delete(hd)}),dd.internalTests.whiteList=createValidation({message:ud,name:"oneOf",skipAbsent:!0,test(hd){let md=this.schema._whitelist,gd=md.resolveAll(this.resolve);return gd.includes(hd)?!0:this.createError({params:{values:Array.from(md).join(", "),resolved:gd}})}}),dd}notOneOf(ed,ud=mixed.notOneOf){let dd=this.clone();return ed.forEach(hd=>{dd._blacklist.add(hd),dd._whitelist.delete(hd)}),dd.internalTests.blacklist=createValidation({message:ud,name:"notOneOf",test(hd){let md=this.schema._blacklist,gd=md.resolveAll(this.resolve);return gd.includes(hd)?this.createError({params:{values:Array.from(md).join(", "),resolved:gd}}):!0}}),dd}strip(ed=!0){let ud=this.clone();return ud.spec.strip=ed,ud}describe(ed){const ud=(ed?this.resolve(ed):this).clone(),{label:dd,meta:hd,optional:md,nullable:gd}=ud.spec;return{meta:hd,label:dd,optional:md,nullable:gd,default:ud.getDefault(ed),type:ud.type,oneOf:ud._whitelist.describe(),notOneOf:ud._blacklist.describe(),tests:ud.tests.map(vd=>({name:vd.OPTIONS.name,params:vd.OPTIONS.params})).filter((vd,Cd,wd)=>wd.findIndex(Nd=>Nd.name===vd.name)===Cd)}}}Schema.prototype.__isYupSchema__=!0;for(const Ra of["validate","validateSync"])Schema.prototype[`${Ra}At`]=function(ed,ud,dd={}){const{parent:hd,parentPath:md,schema:gd}=getIn(this,ed,ud,dd.context);return gd[Ra](hd&&hd[md],Object.assign({},dd,{parent:hd,path:ed}))};for(const Ra of["equals","is"])Schema.prototype[Ra]=Schema.prototype.oneOf;for(const Ra of["not","nope"])Schema.prototype[Ra]=Schema.prototype.notOneOf;function create$7(){return new BooleanSchema}class BooleanSchema extends Schema{constructor(){super({type:"boolean",check(ed){return ed instanceof Boolean&&(ed=ed.valueOf()),typeof ed=="boolean"}}),this.withMutation(()=>{this.transform((ed,ud,dd)=>{if(dd.spec.coerce&&!dd.isType(ed)){if(/^(true|1)$/i.test(String(ed)))return!0;if(/^(false|0)$/i.test(String(ed)))return!1}return ed})})}isTrue(ed=boolean.isValue){return this.test({message:ed,name:"is-value",exclusive:!0,params:{value:"true"},test(ud){return isAbsent(ud)||ud===!0}})}isFalse(ed=boolean.isValue){return this.test({message:ed,name:"is-value",exclusive:!0,params:{value:"false"},test(ud){return isAbsent(ud)||ud===!1}})}default(ed){return super.default(ed)}defined(ed){return super.defined(ed)}optional(){return super.optional()}required(ed){return super.required(ed)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(ed){return super.nonNullable(ed)}strip(ed){return super.strip(ed)}}create$7.prototype=BooleanSchema.prototype;const isoReg=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function parseIsoDate(Ra){const ed=parseDateStruct(Ra);if(!ed)return Date.parse?Date.parse(Ra):Number.NaN;if(ed.z===void 0&&ed.plusMinus===void 0)return new Date(ed.year,ed.month,ed.day,ed.hour,ed.minute,ed.second,ed.millisecond).valueOf();let ud=0;return ed.z!=="Z"&&ed.plusMinus!==void 0&&(ud=ed.hourOffset*60+ed.minuteOffset,ed.plusMinus==="+"&&(ud=0-ud)),Date.UTC(ed.year,ed.month,ed.day,ed.hour,ed.minute+ud,ed.second,ed.millisecond)}function parseDateStruct(Ra){var ed,ud;const dd=isoReg.exec(Ra);return dd?{year:toNumber$2(dd[1]),month:toNumber$2(dd[2],1)-1,day:toNumber$2(dd[3],1),hour:toNumber$2(dd[4]),minute:toNumber$2(dd[5]),second:toNumber$2(dd[6]),millisecond:dd[7]?toNumber$2(dd[7].substring(0,3)):0,precision:(ed=(ud=dd[7])==null?void 0:ud.length)!=null?ed:void 0,z:dd[8]||void 0,plusMinus:dd[9]||void 0,hourOffset:toNumber$2(dd[10]),minuteOffset:toNumber$2(dd[11])}:null}function toNumber$2(Ra,ed=0){return Number(Ra)||ed}let rEmail=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,rUrl=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,rUUID=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,yearMonthDay="^\\d{4}-\\d{2}-\\d{2}",hourMinuteSecond="\\d{2}:\\d{2}:\\d{2}",zOrOffset="(([+-]\\d{2}(:?\\d{2})?)|Z)",rIsoDateTime=new RegExp(`${yearMonthDay}T${hourMinuteSecond}(\\.\\d+)?${zOrOffset}$`),isTrimmed=Ra=>isAbsent(Ra)||Ra===Ra.trim(),objStringTag={}.toString();function create$6(){return new StringSchema}class StringSchema extends Schema{constructor(){super({type:"string",check(ed){return ed instanceof String&&(ed=ed.valueOf()),typeof ed=="string"}}),this.withMutation(()=>{this.transform((ed,ud,dd)=>{if(!dd.spec.coerce||dd.isType(ed)||Array.isArray(ed))return ed;const hd=ed!=null&&ed.toString?ed.toString():ed;return hd===objStringTag?ed:hd})})}required(ed){return super.required(ed).withMutation(ud=>ud.test({message:ed||mixed.required,name:"required",skipAbsent:!0,test:dd=>!!dd.length}))}notRequired(){return super.notRequired().withMutation(ed=>(ed.tests=ed.tests.filter(ud=>ud.OPTIONS.name!=="required"),ed))}length(ed,ud=string.length){return this.test({message:ud,name:"length",exclusive:!0,params:{length:ed},skipAbsent:!0,test(dd){return dd.length===this.resolve(ed)}})}min(ed,ud=string.min){return this.test({message:ud,name:"min",exclusive:!0,params:{min:ed},skipAbsent:!0,test(dd){return dd.length>=this.resolve(ed)}})}max(ed,ud=string.max){return this.test({name:"max",exclusive:!0,message:ud,params:{max:ed},skipAbsent:!0,test(dd){return dd.length<=this.resolve(ed)}})}matches(ed,ud){let dd=!1,hd,md;return ud&&(typeof ud=="object"?{excludeEmptyString:dd=!1,message:hd,name:md}=ud:hd=ud),this.test({name:md||"matches",message:hd||string.matches,params:{regex:ed},skipAbsent:!0,test:gd=>gd===""&&dd||gd.search(ed)!==-1})}email(ed=string.email){return this.matches(rEmail,{name:"email",message:ed,excludeEmptyString:!0})}url(ed=string.url){return this.matches(rUrl,{name:"url",message:ed,excludeEmptyString:!0})}uuid(ed=string.uuid){return this.matches(rUUID,{name:"uuid",message:ed,excludeEmptyString:!1})}datetime(ed){let ud="",dd,hd;return ed&&(typeof ed=="object"?{message:ud="",allowOffset:dd=!1,precision:hd=void 0}=ed:ud=ed),this.matches(rIsoDateTime,{name:"datetime",message:ud||string.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:ud||string.datetime_offset,params:{allowOffset:dd},skipAbsent:!0,test:md=>{if(!md||dd)return!0;const gd=parseDateStruct(md);return gd?!!gd.z:!1}}).test({name:"datetime_precision",message:ud||string.datetime_precision,params:{precision:hd},skipAbsent:!0,test:md=>{if(!md||hd==null)return!0;const gd=parseDateStruct(md);return gd?gd.precision===hd:!1}})}ensure(){return this.default("").transform(ed=>ed===null?"":ed)}trim(ed=string.trim){return this.transform(ud=>ud!=null?ud.trim():ud).test({message:ed,name:"trim",test:isTrimmed})}lowercase(ed=string.lowercase){return this.transform(ud=>isAbsent(ud)?ud:ud.toLowerCase()).test({message:ed,name:"string_case",exclusive:!0,skipAbsent:!0,test:ud=>isAbsent(ud)||ud===ud.toLowerCase()})}uppercase(ed=string.uppercase){return this.transform(ud=>isAbsent(ud)?ud:ud.toUpperCase()).test({message:ed,name:"string_case",exclusive:!0,skipAbsent:!0,test:ud=>isAbsent(ud)||ud===ud.toUpperCase()})}}create$6.prototype=StringSchema.prototype;let invalidDate=new Date(""),isDate$1=Ra=>Object.prototype.toString.call(Ra)==="[object Date]";class DateSchema extends Schema{constructor(){super({type:"date",check(ed){return isDate$1(ed)&&!isNaN(ed.getTime())}}),this.withMutation(()=>{this.transform((ed,ud,dd)=>!dd.spec.coerce||dd.isType(ed)||ed===null?ed:(ed=parseIsoDate(ed),isNaN(ed)?DateSchema.INVALID_DATE:new Date(ed)))})}prepareParam(ed,ud){let dd;if(Reference.isRef(ed))dd=ed;else{let hd=this.cast(ed);if(!this._typeCheck(hd))throw new TypeError(`\`${ud}\` must be a Date or a value that can be \`cast()\` to a Date`);dd=hd}return dd}min(ed,ud=date.min){let dd=this.prepareParam(ed,"min");return this.test({message:ud,name:"min",exclusive:!0,params:{min:ed},skipAbsent:!0,test(hd){return hd>=this.resolve(dd)}})}max(ed,ud=date.max){let dd=this.prepareParam(ed,"max");return this.test({message:ud,name:"max",exclusive:!0,params:{max:ed},skipAbsent:!0,test(hd){return hd<=this.resolve(dd)}})}}DateSchema.INVALID_DATE=invalidDate;function sortFields(Ra,ed=[]){let ud=[],dd=new Set,hd=new Set(ed.map(([gd,yd])=>`${gd}-${yd}`));function md(gd,yd){let vd=propertyExpr.split(gd)[0];dd.add(vd),hd.has(`${yd}-${vd}`)||ud.push([yd,vd])}for(const gd of Object.keys(Ra)){let yd=Ra[gd];dd.add(gd),Reference.isRef(yd)&&yd.isSibling?md(yd.path,gd):isSchema(yd)&&"deps"in yd&&yd.deps.forEach(vd=>md(vd,gd))}return toposort$1.array(Array.from(dd),ud).reverse()}function findIndex(Ra,ed){let ud=1/0;return Ra.some((dd,hd)=>{var md;if((md=ed.path)!=null&&md.includes(dd))return ud=hd,!0}),ud}function sortByKeyOrder(Ra){return(ed,ud)=>findIndex(Ra,ed)-findIndex(Ra,ud)}const parseJson=(Ra,ed,ud)=>{if(typeof Ra!="string")return Ra;let dd=Ra;try{dd=JSON.parse(Ra)}catch{}return ud.isType(dd)?dd:Ra};function deepPartial(Ra){if("fields"in Ra){const ed={};for(const[ud,dd]of Object.entries(Ra.fields))ed[ud]=deepPartial(dd);return Ra.setFields(ed)}if(Ra.type==="array"){const ed=Ra.optional();return ed.innerType&&(ed.innerType=deepPartial(ed.innerType)),ed}return Ra.type==="tuple"?Ra.optional().clone({types:Ra.spec.types.map(deepPartial)}):"optional"in Ra?Ra.optional():Ra}const deepHas=(Ra,ed)=>{const ud=[...propertyExpr.normalizePath(ed)];if(ud.length===1)return ud[0]in Ra;let dd=ud.pop(),hd=propertyExpr.getter(propertyExpr.join(ud),!0)(Ra);return!!(hd&&dd in hd)};let isObject$2=Ra=>Object.prototype.toString.call(Ra)==="[object Object]";function unknown(Ra,ed){let ud=Object.keys(Ra.fields);return Object.keys(ed).filter(dd=>ud.indexOf(dd)===-1)}const defaultSort=sortByKeyOrder([]);function create$3(Ra){return new ObjectSchema(Ra)}class ObjectSchema extends Schema{constructor(ed){super({type:"object",check(ud){return isObject$2(ud)||typeof ud=="function"}}),this.fields=Object.create(null),this._sortErrors=defaultSort,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{ed&&this.shape(ed)})}_cast(ed,ud={}){var dd;let hd=super._cast(ed,ud);if(hd===void 0)return this.getDefault(ud);if(!this._typeCheck(hd))return hd;let md=this.fields,gd=(dd=ud.stripUnknown)!=null?dd:this.spec.noUnknown,yd=[].concat(this._nodes,Object.keys(hd).filter(Nd=>!this._nodes.includes(Nd))),vd={},Cd=Object.assign({},ud,{parent:vd,__validating:ud.__validating||!1}),wd=!1;for(const Nd of yd){let Ld=md[Nd],Ud=Nd in hd;if(Ld){let jd,Gd=hd[Nd];Cd.path=(ud.path?`${ud.path}.`:"")+Nd,Ld=Ld.resolve({value:Gd,context:ud.context,parent:vd});let Yd=Ld instanceof Schema?Ld.spec:void 0,zd=Yd==null?void 0:Yd.strict;if(Yd!=null&&Yd.strip){wd=wd||Nd in hd;continue}jd=!ud.__validating||!zd?Ld.cast(hd[Nd],Cd):hd[Nd],jd!==void 0&&(vd[Nd]=jd)}else Ud&&!gd&&(vd[Nd]=hd[Nd]);(Ud!==Nd in vd||vd[Nd]!==hd[Nd])&&(wd=!0)}return wd?vd:hd}_validate(ed,ud={},dd,hd){let{from:md=[],originalValue:gd=ed,recursive:yd=this.spec.recursive}=ud;ud.from=[{schema:this,value:gd},...md],ud.__validating=!0,ud.originalValue=gd,super._validate(ed,ud,dd,(vd,Cd)=>{if(!yd||!isObject$2(Cd)){hd(vd,Cd);return}gd=gd||Cd;let wd=[];for(let Nd of this._nodes){let Ld=this.fields[Nd];!Ld||Reference.isRef(Ld)||wd.push(Ld.asNestedTest({options:ud,key:Nd,parent:Cd,parentPath:ud.path,originalParent:gd}))}this.runTests({tests:wd,value:Cd,originalValue:gd,options:ud},dd,Nd=>{hd(Nd.sort(this._sortErrors).concat(vd),Cd)})})}clone(ed){const ud=super.clone(ed);return ud.fields=Object.assign({},this.fields),ud._nodes=this._nodes,ud._excludedEdges=this._excludedEdges,ud._sortErrors=this._sortErrors,ud}concat(ed){let ud=super.concat(ed),dd=ud.fields;for(let[hd,md]of Object.entries(this.fields)){const gd=dd[hd];dd[hd]=gd===void 0?md:gd}return ud.withMutation(hd=>hd.setFields(dd,[...this._excludedEdges,...ed._excludedEdges]))}_getDefault(ed){if("default"in this.spec)return super._getDefault(ed);if(!this._nodes.length)return;let ud={};return this._nodes.forEach(dd=>{var hd;const md=this.fields[dd];let gd=ed;(hd=gd)!=null&&hd.value&&(gd=Object.assign({},gd,{parent:gd.value,value:gd.value[dd]})),ud[dd]=md&&"getDefault"in md?md.getDefault(gd):void 0}),ud}setFields(ed,ud){let dd=this.clone();return dd.fields=ed,dd._nodes=sortFields(ed,ud),dd._sortErrors=sortByKeyOrder(Object.keys(ed)),ud&&(dd._excludedEdges=ud),dd}shape(ed,ud=[]){return this.clone().withMutation(dd=>{let hd=dd._excludedEdges;return ud.length&&(Array.isArray(ud[0])||(ud=[ud]),hd=[...dd._excludedEdges,...ud]),dd.setFields(Object.assign(dd.fields,ed),hd)})}partial(){const ed={};for(const[ud,dd]of Object.entries(this.fields))ed[ud]="optional"in dd&&dd.optional instanceof Function?dd.optional():dd;return this.setFields(ed)}deepPartial(){return deepPartial(this)}pick(ed){const ud={};for(const dd of ed)this.fields[dd]&&(ud[dd]=this.fields[dd]);return this.setFields(ud,this._excludedEdges.filter(([dd,hd])=>ed.includes(dd)&&ed.includes(hd)))}omit(ed){const ud=[];for(const dd of Object.keys(this.fields))ed.includes(dd)||ud.push(dd);return this.pick(ud)}from(ed,ud,dd){let hd=propertyExpr.getter(ed,!0);return this.transform(md=>{if(!md)return md;let gd=md;return deepHas(md,ed)&&(gd=Object.assign({},md),dd||delete gd[ed],gd[ud]=hd(md)),gd})}json(){return this.transform(parseJson)}exact(ed){return this.test({name:"exact",exclusive:!0,message:ed||object.exact,test(ud){if(ud==null)return!0;const dd=unknown(this.schema,ud);return dd.length===0||this.createError({params:{properties:dd.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(ed=!0,ud=object.noUnknown){typeof ed!="boolean"&&(ud=ed,ed=!0);let dd=this.test({name:"noUnknown",exclusive:!0,message:ud,test(hd){if(hd==null)return!0;const md=unknown(this.schema,hd);return!ed||md.length===0||this.createError({params:{unknown:md.join(", ")}})}});return dd.spec.noUnknown=ed,dd}unknown(ed=!0,ud=object.noUnknown){return this.noUnknown(!ed,ud)}transformKeys(ed){return this.transform(ud=>{if(!ud)return ud;const dd={};for(const hd of Object.keys(ud))dd[ed(hd)]=ud[hd];return dd})}camelCase(){return this.transformKeys(tinyCase.camelCase)}snakeCase(){return this.transformKeys(tinyCase.snakeCase)}constantCase(){return this.transformKeys(ed=>tinyCase.snakeCase(ed).toUpperCase())}describe(ed){const ud=(ed?this.resolve(ed):this).clone(),dd=super.describe(ed);dd.fields={};for(const[md,gd]of Object.entries(ud.fields)){var hd;let yd=ed;(hd=yd)!=null&&hd.value&&(yd=Object.assign({},yd,{parent:yd.value,value:yd.value[md]})),dd.fields[md]=gd.describe(yd)}return dd}}create$3.prototype=ObjectSchema.prototype;const _hoisted_1$9={class:"flex flex-col items-start"},_hoisted_2$6={class:"flex flex-col items-start"},_sfc_main$S=defineComponent({__name:"UploadImgDialog",emits:["uploadImage"],setup(Ra,{emit:ed}){const ud=ed,dd=useDisplayStore(),hd=toTypedSchema(create$3({repo:create$6().required("GitHub 仓库不能为空"),branch:create$6().optional(),accessToken:create$6().required("GitHub Token 不能为空")})),md=ref$1(localStorage.getItem("githubConfig")?JSON.parse(localStorage.getItem("githubConfig")):{repo:"",branch:"",accessToken:""});function gd(Sh){localStorage.setItem("githubConfig",JSON.stringify(Sh)),md.value=Sh,Ke.success("保存成功")}const yd=toTypedSchema(create$3({accessKeyId:create$6().required("AccessKey ID 不能为空"),accessKeySecret:create$6().required("AccessKey Secret 不能为空"),bucket:create$6().required("Bucket 不能为空"),region:create$6().required("Region 不能为空"),useSSL:create$7().required(),cdnHost:create$6().optional(),path:create$6().optional()})),vd=ref$1(localStorage.getItem("aliOSSConfig")?JSON.parse(localStorage.getItem("aliOSSConfig")):{accessKeyId:"",accessKeySecret:"",bucket:"",region:"",useSSL:!0,cdnHost:"",path:""});function Cd(Sh){localStorage.setItem("aliOSSConfig",JSON.stringify(Sh)),vd.value=Sh,Ke.success("保存成功")}const wd=toTypedSchema(create$3({secretId:create$6().required("Secret ID 不能为空"),secretKey:create$6().required("Secret Key 不能为空"),bucket:create$6().required("Bucket 不能为空"),region:create$6().required("Region 不能为空"),cdnHost:create$6().optional(),path:create$6().optional()})),Nd=ref$1(localStorage.getItem("txCOSConfig")?JSON.parse(localStorage.getItem("txCOSConfig")):{secretId:"",secretKey:"",bucket:"",region:"",cdnHost:"",path:""});function Ld(Sh){localStorage.setItem("txCOSConfig",JSON.stringify(Sh)),Nd.value=Sh,Ke.success("保存成功")}const Ud=toTypedSchema(create$3({accessKey:create$6().required("AccessKey 不能为空"),secretKey:create$6().required("SecretKey 不能为空"),bucket:create$6().required("Bucket 不能为空"),domain:create$6().required("Bucket 对应域名不能为空"),region:create$6().optional(),path:create$6().optional()})),jd=ref$1(localStorage.getItem("qiniuConfig")?JSON.parse(localStorage.getItem("qiniuConfig")):{accessKey:"",secretKey:"",bucket:"",domain:"",region:"",path:""});function Gd(Sh){localStorage.setItem("qiniuConfig",JSON.stringify(Sh)),jd.value=Sh,Ke.success("保存成功")}const Yd=toTypedSchema(create$3({endpoint:create$6().required("Endpoint 不能为空"),port:create$6().optional(),useSSL:create$7().required(),bucket:create$6().required("Bucket 不能为空"),accessKey:create$6().required("AccessKey 不能为空"),secretKey:create$6().required("SecretKey 不能为空")})),zd=ref$1(localStorage.getItem("minioConfig")?JSON.parse(localStorage.getItem("minioConfig")):{endpoint:"",port:"",useSSL:!0,bucket:"",accessKey:"",secretKey:""});function qd(Sh){localStorage.setItem("minioConfig",JSON.stringify(Sh)),zd.value=Sh,Ke.success("保存成功")}const Wd=ref$1(window.location.href.startsWith("http")),Xd=toTypedSchema(create$3({proxyOrigin:Wd.value?create$6().required("代理域名不能为空"):create$6().optional(),appID:create$6().required("AppID 不能为空"),appsecret:create$6().required("AppSecret 不能为空")})),Jd=ref$1(localStorage.getItem("mpConfig")?JSON.parse(localStorage.getItem("mpConfig")):{proxyOrigin:"",appID:"",appsecret:""});function Zd(Sh){localStorage.setItem("mpConfig",JSON.stringify(Sh)),Jd.value=Sh,Ke.success("保存成功")}const mf=toTypedSchema(create$3({accountId:create$6().required("Account ID 不能为空"),accessKey:create$6().required("AccessKey 不能为空"),secretKey:create$6().required("SecretKey 不能为空"),bucket:create$6().required("Bucket 不能为空"),domain:create$6().required("Bucket 对应域名不能为空"),path:create$6().optional()})),xf=ref$1(localStorage.getItem("r2Config")?JSON.parse(localStorage.getItem("r2Config")):{accountId:"",accessKey:"",secretKey:"",bucket:"",domain:"",path:""});function _f(Sh){localStorage.setItem("r2Config",JSON.stringify(Sh)),xf.value=Sh,Ke.success("保存成功")}const vf=[{value:"default",label:"默认"},{value:"github",label:"GitHub"},{value:"aliOSS",label:"阿里云"},{value:"txCOS",label:"腾讯云"},{value:"qiniu",label:"七牛云"},{value:"minio",label:"MinIO"},{value:"mp",label:"公众号图床"},{value:"r2",label:"Cloudflare R2"},{value:"formCustom",label:"自定义代码"}],gf=ref$1("default"),Af=ref$1("upload");onBeforeMount(()=>{localStorage.getItem("imgHost")&&(gf.value=localStorage.getItem("imgHost"))});function Df(){localStorage.setItem("imgHost",gf.value),Ke.success("已成功切换图床")}function Of(Sh){const yh=checkImage(Sh);if(!yh.ok)return Ke.error(yh.msg||""),!1;let Mh=localStorage.getItem("imgHost");Mh=Mh||"default",localStorage.setItem("imgHost",Mh);const lh=localStorage.getItem(`${Mh}Config`);return Mh==="default"||lh?!0:(Ke.error(`请先配置 ${Mh} 图床参数`),!1)}const Cf=ref$1(!1),{open:If,onChange:Ff}=useFileDialog({accept:"image/*"});Ff(Sh=>{if(Sh==null)return;const yh=Sh[0];Of(yh)&&ud("uploadImage",yh)});function sh(Sh){Cf.value=!1,Sh.stopPropagation();const yh=Array.from(Sh.dataTransfer.files)[0];Of(yh)&&ud("uploadImage",yh)}return(Sh,yh)=>{const Mh=_sfc_main$16,lh=_sfc_main$17,rh=_sfc_main$T,mh=_sfc_main$U,xh=_sfc_main$W,Eh=_sfc_main$X,kf=_sfc_main$_,Rf=_sfc_main$V,_h=_sfc_main$$,Ph=_sfc_main$18,sm=_sfc_main$10,th=_sfc_main$1e,oh=__unplugin_components_12,Zh=_sfc_main$1o,Sm=_sfc_main$12,$h=_sfc_main$13,Vf=_sfc_main$14,nh=_sfc_main$1g,Lh=_sfc_main$1h;return openBlock(),createBlock(Lh,{open:unref(dd).isShowUploadImgDialog,"onUpdate:open":yh[6]||(yh[6]=Ih=>unref(dd).isShowUploadImgDialog=Ih)},{default:withCtx(()=>[createVNode(nh,{class:"max-w-max",onPointerDownOutside:yh[5]||(yh[5]=Ih=>Ih.preventDefault())},{default:withCtx(()=>[createVNode(lh,null,{default:withCtx(()=>[createVNode(Mh,null,{default:withCtx(()=>yh[7]||(yh[7]=[createTextVNode("本地上传")])),_:1})]),_:1}),createVNode(Vf,{modelValue:unref(Af),"onUpdate:modelValue":yh[4]||(yh[4]=Ih=>isRef(Af)?Af.value=Ih:null),class:"w-max"},{default:withCtx(()=>[createVNode(mh,null,{default:withCtx(()=>[createVNode(rh,{value:"upload"},{default:withCtx(()=>yh[8]||(yh[8]=[createTextVNode(" 选择上传 ")])),_:1}),(openBlock(!0),createElementBlock(Fragment,null,renderList(vf.filter(Ih=>Ih.value!=="default"),Ih=>(openBlock(),createBlock(rh,{key:Ih.value,value:Ih.value},{default:withCtx(()=>[createTextVNode(toDisplayString(Ih.label),1)]),_:2},1032,["value"]))),128))]),_:1}),createVNode(sm,{value:"upload"},{default:withCtx(()=>[createVNode(Ph,null,{default:withCtx(()=>[yh[9]||(yh[9]=createBaseVNode("span",{class:"my-4 block"}," 图床 ",-1)),createVNode(_h,{modelValue:unref(gf),"onUpdate:modelValue":[yh[0]||(yh[0]=Ih=>isRef(gf)?gf.value=Ih:null),Df]},{default:withCtx(()=>[createVNode(Eh,null,{default:withCtx(()=>[createVNode(xh,{placeholder:"请选择"})]),_:1}),createVNode(Rf,null,{default:withCtx(()=>[(openBlock(),createElementBlock(Fragment,null,renderList(vf,Ih=>createVNode(kf,{key:Ih.value,label:Ih.label,value:Ih.value},{default:withCtx(()=>[createTextVNode(toDisplayString(Ih.label),1)]),_:2},1032,["label","value"])),64))]),_:1})]),_:1},8,["modelValue"])]),_:1}),createBaseVNode("div",{class:normalizeClass(["bg-clip-padding mt-4 h-50 flex flex-col cursor-pointer items-center justify-evenly border-2 rounded border-dashed transition-colors hover:border-gray-700 hover:bg-gray-400/50 dark:hover:border-gray-200 dark:hover:bg-gray-500/50",{"border-gray-700 bg-gray-400/50 dark:border-gray-200 dark:bg-gray-500/50":unref(Cf)}]),onClick:yh[1]||(yh[1]=Ih=>unref(If)()),onDrop:withModifiers(sh,["prevent"]),onDragover:yh[2]||(yh[2]=withModifiers(Ih=>Cf.value=!0,["prevent"])),onDragleave:yh[3]||(yh[3]=withModifiers(Ih=>Cf.value=!1,["prevent"]))},[createVNode(unref(CloudUpload),{class:"size-20"}),yh[10]||(yh[10]=createBaseVNode("p",null,[createTextVNode(" 将图片拖到此处,或 "),createBaseVNode("strong",null,"点击上传")],-1))],34)]),_:1}),createVNode(sm,{value:"github"},{default:withCtx(()=>[createVNode(unref(Form),{"validation-schema":unref(hd),"initial-values":unref(md),onSubmit:gd},{default:withCtx(()=>[createVNode(unref(Field),{name:"repo"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(oh,{label:"GitHub 仓库",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:github.com/yanglbme/resource"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"branch"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(oh,{label:"分支",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:release,可不填,默认 master"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"accessToken"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(oh,{label:"Token",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,type:"password",placeholder:"如:cc1d0c1426d0fd0902bd2d7184b14da61b8abc46"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(oh,null,{default:withCtx(()=>[createVNode(Zh,{variant:"link",class:"p-0",as:"a",href:"https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token",target:"_blank"},{default:withCtx(()=>yh[11]||(yh[11]=[createTextVNode(" 如何获取 GitHub Token? ")])),_:1})]),_:1}),createVNode(oh,null,{default:withCtx(()=>[createVNode(Zh,{type:"submit"},{default:withCtx(()=>yh[12]||(yh[12]=[createTextVNode(" 保存配置 ")])),_:1})]),_:1})]),_:1},8,["validation-schema","initial-values"])]),_:1}),createVNode(sm,{value:"aliOSS"},{default:withCtx(()=>[createVNode(unref(Form),{"validation-schema":unref(yd),"initial-values":unref(vd),onSubmit:Cd},{default:withCtx(()=>[createVNode(unref(Field),{name:"accessKeyId"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(oh,{label:"AccessKey ID",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:LTAI4GdoocsmdoxUf13ylbaNHk"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"accessKeySecret"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(oh,{label:"AccessKey Secret",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,type:"password",placeholder:"如:cc1d0c142doocs0902bd2d7md4b14da6ylbabc46"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"bucket"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(oh,{label:"Bucket",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:doocs"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"region"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(oh,{label:"Bucket 所在区域",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:oss-cn-shenzhen"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"useSSL",type:"boolean"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(oh,{label:"UseSSL",required:"",error:om},{default:withCtx(()=>[createVNode(Sm,{checked:Ih.value,name:Ih.name,"onUpdate:checked":Ih.onChange,onBlur:Ih.onBlur},null,8,["checked","name","onUpdate:checked","onBlur"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"cdnHost"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(oh,{label:"自定义 CDN 域名",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:https://imagecdn.alidaodao.com,可不填"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"path"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(oh,{label:"存储路径",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:img,可不填,默认为根目录"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(oh,null,{default:withCtx(()=>[createVNode(Zh,{variant:"link",class:"p-0",as:"a",href:"https://help.aliyun.com/document_detail/31883.html",target:"_blank"},{default:withCtx(()=>yh[13]||(yh[13]=[createTextVNode(" 如何使用阿里云 OSS? ")])),_:1})]),_:1}),createVNode(oh,null,{default:withCtx(()=>[createVNode(Zh,{type:"submit"},{default:withCtx(()=>yh[14]||(yh[14]=[createTextVNode(" 保存配置 ")])),_:1})]),_:1})]),_:1},8,["validation-schema","initial-values"])]),_:1}),createVNode(sm,{value:"txCOS"},{default:withCtx(()=>[createVNode(unref(Form),{"validation-schema":unref(wd),"initial-values":unref(Nd),onSubmit:Ld},{default:withCtx(()=>[createVNode(unref(Field),{name:"secretId"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(oh,{label:"SecretId",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:AKIDnQp1w3DOOCSs8F5MDp9tdoocsmdUPonW3"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"secretKey"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(oh,{label:"SecretKey",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,type:"password",placeholder:"如:ukLmdtEJ9271f3DOocsMDsCXdS3YlbW0"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"bucket"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(oh,{label:"Bucket",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:doocs-3212520134"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"region"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(oh,{label:"Bucket 所在区域",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:ap-guangzhou"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"cdnHost"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(oh,{label:"自定义 CDN 域名",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:https://imagecdn.alidaodao.com,可不填"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"path"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(oh,{label:"存储路径",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:img,可不填,默认根目录"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(oh,null,{default:withCtx(()=>[createVNode(Zh,{variant:"link",class:"p-0",as:"a",href:"https://cloud.tencent.com/document/product/436/38484",target:"_blank"},{default:withCtx(()=>yh[15]||(yh[15]=[createTextVNode(" 如何使用腾讯云 COS? ")])),_:1})]),_:1}),createVNode(oh,null,{default:withCtx(()=>[createVNode(Zh,{type:"submit"},{default:withCtx(()=>yh[16]||(yh[16]=[createTextVNode(" 保存配置 ")])),_:1})]),_:1})]),_:1},8,["validation-schema","initial-values"])]),_:1}),createVNode(sm,{value:"qiniu"},{default:withCtx(()=>[createVNode(unref(Form),{"validation-schema":unref(Ud),"initial-values":unref(jd),onSubmit:Gd},{default:withCtx(()=>[createVNode(unref(Field),{name:"accessKey"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(oh,{label:"AccessKey",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:6DD3VaLJ_SQgOdoocsyTV_YWaDmdnL2n8EGx7kG"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"secretKey"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(oh,{label:"SecretKey",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,type:"password",placeholder:"如:qgZa5qrvDOOcsmdKStD1oCjZ9nB7MDvJUs_34SIm"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"bucket"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(oh,{label:"Bucket",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:md"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"domain"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(oh,{label:"Bucket 对应域名",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:https://images.123ylb.cn"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"region"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(oh,{label:"存储区域",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:z2,可不填"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"path"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(oh,{label:"存储路径",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:img,可不填,默认为根目录"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(oh,null,{default:withCtx(()=>[createVNode(Zh,{variant:"link",class:"p-0",as:"a",href:"https://developer.qiniu.com/kodo",target:"_blank"},{default:withCtx(()=>yh[17]||(yh[17]=[createTextVNode(" 如何使用七牛云 Kodo? ")])),_:1})]),_:1}),createVNode(oh,null,{default:withCtx(()=>[createVNode(Zh,{type:"submit"},{default:withCtx(()=>yh[18]||(yh[18]=[createTextVNode(" 保存配置 ")])),_:1})]),_:1})]),_:1},8,["validation-schema","initial-values"])]),_:1}),createVNode(sm,{value:"minio"},{default:withCtx(()=>[createVNode(unref(Form),{"validation-schema":unref(Yd),"initial-values":unref(zd),onSubmit:qd},{default:withCtx(()=>[createVNode(unref(Field),{name:"endpoint"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(oh,{label:"Endpoint",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:play.min.io"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"port"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(oh,{label:"Port",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,type:"number",placeholder:"如:9000,可不填,http 默认为 80,https 默认为 443"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"useSSL",type:"boolean"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(oh,{label:"UseSSL",required:"",error:om},{default:withCtx(()=>[createVNode(Sm,{checked:Ih.value,name:Ih.name,"onUpdate:checked":Ih.onChange,onBlur:Ih.onBlur},null,8,["checked","name","onUpdate:checked","onBlur"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"bucket"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(oh,{label:"Bucket",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:doocs"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"accessKey"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(oh,{label:"AccessKey",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:zhangsan"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"secretKey"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(oh,{label:"SecretKey",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:asdasdasd"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(oh,null,{default:withCtx(()=>[createVNode(Zh,{variant:"link",class:"p-0",as:"a",href:"http://docs.minio.org.cn/docs/master/minio-client-complete-guide",target:"_blank"},{default:withCtx(()=>yh[19]||(yh[19]=[createTextVNode(" 如何使用 MinIO? ")])),_:1})]),_:1}),createVNode(oh,null,{default:withCtx(()=>[createVNode(Zh,{type:"submit"},{default:withCtx(()=>yh[20]||(yh[20]=[createTextVNode(" 保存配置 ")])),_:1})]),_:1})]),_:1},8,["validation-schema","initial-values"])]),_:1}),createVNode(sm,{value:"mp"},{default:withCtx(()=>[createVNode(unref(Form),{"validation-schema":unref(Xd),"initial-values":unref(Jd),onSubmit:Zd},{default:withCtx(()=>[createVNode(unref(Field),{name:"proxyOrigin"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(oh,{label:"代理域名",required:unref(Wd),error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:http://proxy.example.com,使用插件时可不填"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["required","error"])]),_:1}),createVNode(unref(Field),{name:"appID"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(oh,{label:"appID",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:wx6e1234567890efa3"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"appsecret"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(oh,{label:"appsecret",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:d9f1abcdef01234567890abcdef82397"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(oh,null,{default:withCtx(()=>[createBaseVNode("div",_hoisted_1$9,[createVNode(Zh,{variant:"link",class:"p-0",as:"a",href:"https://developers.weixin.qq.com/doc/offiaccount/Getting_Started/Getting_Started_Guide.html",target:"_blank"},{default:withCtx(()=>yh[21]||(yh[21]=[createTextVNode(" 如何开启公众号开发者模式并获取应用账号密钥? ")])),_:1}),createVNode(Zh,{variant:"link",class:"p-0",as:"a",href:"https://mpmd.pages.dev/tutorial/",target:"_blank"},{default:withCtx(()=>yh[22]||(yh[22]=[createTextVNode(" 如何在浏览器插件中使用公众号图床? ")])),_:1})])]),_:1}),createVNode(oh,null,{default:withCtx(()=>[createVNode(Zh,{type:"submit"},{default:withCtx(()=>yh[23]||(yh[23]=[createTextVNode(" 保存配置 ")])),_:1})]),_:1})]),_:1},8,["validation-schema","initial-values"])]),_:1}),createVNode(sm,{value:"r2"},{default:withCtx(()=>[createVNode(unref(Form),{"validation-schema":unref(mf),"initial-values":unref(xf),onSubmit:_f},{default:withCtx(()=>[createVNode(unref(Field),{name:"accountId"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(oh,{label:"AccountId",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如: 0030f123e55a57546f4c281c564e560",class:"min-w-[350px]"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"accessKey"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(oh,{label:"AccessKey",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如: 358090b3a12824a6b0787gae7ad0fc72"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"secretKey"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(oh,{label:"SecretKey",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,type:"password",placeholder:"如: c1c4dbcb0b6b785ac6633422a06dff3dac055fe74fe40xj1b5c5fcf1bf128010"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"bucket"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(oh,{label:"Bucket",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:md"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"domain"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(oh,{label:"域名",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:https://oss.example.com"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"path"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(oh,{label:"存储路径",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:img,可不填,默认为根目录"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(oh,null,{default:withCtx(()=>[createBaseVNode("div",_hoisted_2$6,[createVNode(Zh,{variant:"link",class:"p-0",as:"a",href:"https://developers.cloudflare.com/r2/api/s3/api/",target:"_blank"},{default:withCtx(()=>yh[24]||(yh[24]=[createTextVNode(" 如何使用 S3 API 操作 Cloudflare R2 ")])),_:1}),createVNode(Zh,{variant:"link",class:"p-0",as:"a",href:"https://developers.cloudflare.com/r2/buckets/cors/",target:"_blank"},{default:withCtx(()=>yh[25]||(yh[25]=[createTextVNode(" 如何设置跨域(CORS) ")])),_:1})])]),_:1}),createVNode(oh,null,{default:withCtx(()=>[createVNode(Zh,{type:"submit"},{default:withCtx(()=>yh[26]||(yh[26]=[createTextVNode(" 保存配置 ")])),_:1})]),_:1})]),_:1},8,["validation-schema","initial-values"])]),_:1}),createVNode(sm,{value:"formCustom"},{default:withCtx(()=>[createVNode($h)]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["open"])}}});var top="top",bottom="bottom",right="right",left="left",auto$1="auto",basePlacements=[top,bottom,right,left],start="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce(function(Ra,ed){return Ra.concat([ed+"-"+start,ed+"-"+end])},[]),placements=[].concat(basePlacements,[auto$1]).reduce(function(Ra,ed){return Ra.concat([ed,ed+"-"+start,ed+"-"+end])},[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main$1="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main$1,afterMain,beforeWrite,write,afterWrite];function getNodeName(Ra){return Ra?(Ra.nodeName||"").toLowerCase():null}function getWindow(Ra){if(Ra==null)return window;if(Ra.toString()!=="[object Window]"){var ed=Ra.ownerDocument;return ed&&ed.defaultView||window}return Ra}function isElement$1(Ra){var ed=getWindow(Ra).Element;return Ra instanceof ed||Ra instanceof Element}function isHTMLElement(Ra){var ed=getWindow(Ra).HTMLElement;return Ra instanceof ed||Ra instanceof HTMLElement}function isShadowRoot(Ra){if(typeof ShadowRoot>"u")return!1;var ed=getWindow(Ra).ShadowRoot;return Ra instanceof ed||Ra instanceof ShadowRoot}function applyStyles(Ra){var ed=Ra.state;Object.keys(ed.elements).forEach(function(ud){var dd=ed.styles[ud]||{},hd=ed.attributes[ud]||{},md=ed.elements[ud];!isHTMLElement(md)||!getNodeName(md)||(Object.assign(md.style,dd),Object.keys(hd).forEach(function(gd){var yd=hd[gd];yd===!1?md.removeAttribute(gd):md.setAttribute(gd,yd===!0?"":yd)}))})}function effect$2(Ra){var ed=Ra.state,ud={popper:{position:ed.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(ed.elements.popper.style,ud.popper),ed.styles=ud,ed.elements.arrow&&Object.assign(ed.elements.arrow.style,ud.arrow),function(){Object.keys(ed.elements).forEach(function(dd){var hd=ed.elements[dd],md=ed.attributes[dd]||{},gd=Object.keys(ed.styles.hasOwnProperty(dd)?ed.styles[dd]:ud[dd]),yd=gd.reduce(function(vd,Cd){return vd[Cd]="",vd},{});!isHTMLElement(hd)||!getNodeName(hd)||(Object.assign(hd.style,yd),Object.keys(md).forEach(function(vd){hd.removeAttribute(vd)}))})}}const applyStyles$1={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:effect$2,requires:["computeStyles"]};function getBasePlacement(Ra){return Ra.split("-")[0]}var max=Math.max,min=Math.min,round=Math.round;function getUAString(){var Ra=navigator.userAgentData;return Ra!=null&&Ra.brands&&Array.isArray(Ra.brands)?Ra.brands.map(function(ed){return ed.brand+"/"+ed.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(Ra,ed,ud){ed===void 0&&(ed=!1),ud===void 0&&(ud=!1);var dd=Ra.getBoundingClientRect(),hd=1,md=1;ed&&isHTMLElement(Ra)&&(hd=Ra.offsetWidth>0&&round(dd.width)/Ra.offsetWidth||1,md=Ra.offsetHeight>0&&round(dd.height)/Ra.offsetHeight||1);var gd=isElement$1(Ra)?getWindow(Ra):window,yd=gd.visualViewport,vd=!isLayoutViewport()&&ud,Cd=(dd.left+(vd&&yd?yd.offsetLeft:0))/hd,wd=(dd.top+(vd&&yd?yd.offsetTop:0))/md,Nd=dd.width/hd,Ld=dd.height/md;return{width:Nd,height:Ld,top:wd,right:Cd+Nd,bottom:wd+Ld,left:Cd,x:Cd,y:wd}}function getLayoutRect(Ra){var ed=getBoundingClientRect(Ra),ud=Ra.offsetWidth,dd=Ra.offsetHeight;return Math.abs(ed.width-ud)<=1&&(ud=ed.width),Math.abs(ed.height-dd)<=1&&(dd=ed.height),{x:Ra.offsetLeft,y:Ra.offsetTop,width:ud,height:dd}}function contains(Ra,ed){var ud=ed.getRootNode&&ed.getRootNode();if(Ra.contains(ed))return!0;if(ud&&isShadowRoot(ud)){var dd=ed;do{if(dd&&Ra.isSameNode(dd))return!0;dd=dd.parentNode||dd.host}while(dd)}return!1}function getComputedStyle$1(Ra){return getWindow(Ra).getComputedStyle(Ra)}function isTableElement(Ra){return["table","td","th"].indexOf(getNodeName(Ra))>=0}function getDocumentElement(Ra){return((isElement$1(Ra)?Ra.ownerDocument:Ra.document)||window.document).documentElement}function getParentNode(Ra){return getNodeName(Ra)==="html"?Ra:Ra.assignedSlot||Ra.parentNode||(isShadowRoot(Ra)?Ra.host:null)||getDocumentElement(Ra)}function getTrueOffsetParent(Ra){return!isHTMLElement(Ra)||getComputedStyle$1(Ra).position==="fixed"?null:Ra.offsetParent}function getContainingBlock(Ra){var ed=/firefox/i.test(getUAString()),ud=/Trident/i.test(getUAString());if(ud&&isHTMLElement(Ra)){var dd=getComputedStyle$1(Ra);if(dd.position==="fixed")return null}var hd=getParentNode(Ra);for(isShadowRoot(hd)&&(hd=hd.host);isHTMLElement(hd)&&["html","body"].indexOf(getNodeName(hd))<0;){var md=getComputedStyle$1(hd);if(md.transform!=="none"||md.perspective!=="none"||md.contain==="paint"||["transform","perspective"].indexOf(md.willChange)!==-1||ed&&md.willChange==="filter"||ed&&md.filter&&md.filter!=="none")return hd;hd=hd.parentNode}return null}function getOffsetParent(Ra){for(var ed=getWindow(Ra),ud=getTrueOffsetParent(Ra);ud&&isTableElement(ud)&&getComputedStyle$1(ud).position==="static";)ud=getTrueOffsetParent(ud);return ud&&(getNodeName(ud)==="html"||getNodeName(ud)==="body"&&getComputedStyle$1(ud).position==="static")?ed:ud||getContainingBlock(Ra)||ed}function getMainAxisFromPlacement(Ra){return["top","bottom"].indexOf(Ra)>=0?"x":"y"}function within(Ra,ed,ud){return max(Ra,min(ed,ud))}function withinMaxClamp(Ra,ed,ud){var dd=within(Ra,ed,ud);return dd>ud?ud:dd}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(Ra){return Object.assign({},getFreshSideObject(),Ra)}function expandToHashMap(Ra,ed){return ed.reduce(function(ud,dd){return ud[dd]=Ra,ud},{})}var toPaddingObject=function(ed,ud){return ed=typeof ed=="function"?ed(Object.assign({},ud.rects,{placement:ud.placement})):ed,mergePaddingObject(typeof ed!="number"?ed:expandToHashMap(ed,basePlacements))};function arrow(Ra){var ed,ud=Ra.state,dd=Ra.name,hd=Ra.options,md=ud.elements.arrow,gd=ud.modifiersData.popperOffsets,yd=getBasePlacement(ud.placement),vd=getMainAxisFromPlacement(yd),Cd=[left,right].indexOf(yd)>=0,wd=Cd?"height":"width";if(!(!md||!gd)){var Nd=toPaddingObject(hd.padding,ud),Ld=getLayoutRect(md),Ud=vd==="y"?top:left,jd=vd==="y"?bottom:right,Gd=ud.rects.reference[wd]+ud.rects.reference[vd]-gd[vd]-ud.rects.popper[wd],Yd=gd[vd]-ud.rects.reference[vd],zd=getOffsetParent(md),qd=zd?vd==="y"?zd.clientHeight||0:zd.clientWidth||0:0,Wd=Gd/2-Yd/2,Xd=Nd[Ud],Jd=qd-Ld[wd]-Nd[jd],Zd=qd/2-Ld[wd]/2+Wd,mf=within(Xd,Zd,Jd),xf=vd;ud.modifiersData[dd]=(ed={},ed[xf]=mf,ed.centerOffset=mf-Zd,ed)}}function effect$1(Ra){var ed=Ra.state,ud=Ra.options,dd=ud.element,hd=dd===void 0?"[data-popper-arrow]":dd;hd!=null&&(typeof hd=="string"&&(hd=ed.elements.popper.querySelector(hd),!hd)||contains(ed.elements.popper,hd)&&(ed.elements.arrow=hd))}const arrow$1={name:"arrow",enabled:!0,phase:"main",fn:arrow,effect:effect$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(Ra){return Ra.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(Ra,ed){var ud=Ra.x,dd=Ra.y,hd=ed.devicePixelRatio||1;return{x:round(ud*hd)/hd||0,y:round(dd*hd)/hd||0}}function mapToStyles(Ra){var ed,ud=Ra.popper,dd=Ra.popperRect,hd=Ra.placement,md=Ra.variation,gd=Ra.offsets,yd=Ra.position,vd=Ra.gpuAcceleration,Cd=Ra.adaptive,wd=Ra.roundOffsets,Nd=Ra.isFixed,Ld=gd.x,Ud=Ld===void 0?0:Ld,jd=gd.y,Gd=jd===void 0?0:jd,Yd=typeof wd=="function"?wd({x:Ud,y:Gd}):{x:Ud,y:Gd};Ud=Yd.x,Gd=Yd.y;var zd=gd.hasOwnProperty("x"),qd=gd.hasOwnProperty("y"),Wd=left,Xd=top,Jd=window;if(Cd){var Zd=getOffsetParent(ud),mf="clientHeight",xf="clientWidth";if(Zd===getWindow(ud)&&(Zd=getDocumentElement(ud),getComputedStyle$1(Zd).position!=="static"&&yd==="absolute"&&(mf="scrollHeight",xf="scrollWidth")),Zd=Zd,hd===top||(hd===left||hd===right)&&md===end){Xd=bottom;var _f=Nd&&Zd===Jd&&Jd.visualViewport?Jd.visualViewport.height:Zd[mf];Gd-=_f-dd.height,Gd*=vd?1:-1}if(hd===left||(hd===top||hd===bottom)&&md===end){Wd=right;var vf=Nd&&Zd===Jd&&Jd.visualViewport?Jd.visualViewport.width:Zd[xf];Ud-=vf-dd.width,Ud*=vd?1:-1}}var gf=Object.assign({position:yd},Cd&&unsetSides),Af=wd===!0?roundOffsetsByDPR({x:Ud,y:Gd},getWindow(ud)):{x:Ud,y:Gd};if(Ud=Af.x,Gd=Af.y,vd){var Df;return Object.assign({},gf,(Df={},Df[Xd]=qd?"0":"",Df[Wd]=zd?"0":"",Df.transform=(Jd.devicePixelRatio||1)<=1?"translate("+Ud+"px, "+Gd+"px)":"translate3d("+Ud+"px, "+Gd+"px, 0)",Df))}return Object.assign({},gf,(ed={},ed[Xd]=qd?Gd+"px":"",ed[Wd]=zd?Ud+"px":"",ed.transform="",ed))}function computeStyles(Ra){var ed=Ra.state,ud=Ra.options,dd=ud.gpuAcceleration,hd=dd===void 0?!0:dd,md=ud.adaptive,gd=md===void 0?!0:md,yd=ud.roundOffsets,vd=yd===void 0?!0:yd,Cd={placement:getBasePlacement(ed.placement),variation:getVariation(ed.placement),popper:ed.elements.popper,popperRect:ed.rects.popper,gpuAcceleration:hd,isFixed:ed.options.strategy==="fixed"};ed.modifiersData.popperOffsets!=null&&(ed.styles.popper=Object.assign({},ed.styles.popper,mapToStyles(Object.assign({},Cd,{offsets:ed.modifiersData.popperOffsets,position:ed.options.strategy,adaptive:gd,roundOffsets:vd})))),ed.modifiersData.arrow!=null&&(ed.styles.arrow=Object.assign({},ed.styles.arrow,mapToStyles(Object.assign({},Cd,{offsets:ed.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:vd})))),ed.attributes.popper=Object.assign({},ed.attributes.popper,{"data-popper-placement":ed.placement})}const computeStyles$1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}};var passive={passive:!0};function effect(Ra){var ed=Ra.state,ud=Ra.instance,dd=Ra.options,hd=dd.scroll,md=hd===void 0?!0:hd,gd=dd.resize,yd=gd===void 0?!0:gd,vd=getWindow(ed.elements.popper),Cd=[].concat(ed.scrollParents.reference,ed.scrollParents.popper);return md&&Cd.forEach(function(wd){wd.addEventListener("scroll",ud.update,passive)}),yd&&vd.addEventListener("resize",ud.update,passive),function(){md&&Cd.forEach(function(wd){wd.removeEventListener("scroll",ud.update,passive)}),yd&&vd.removeEventListener("resize",ud.update,passive)}}const eventListeners={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect,data:{}};var hash$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(Ra){return Ra.replace(/left|right|bottom|top/g,function(ed){return hash$1[ed]})}var hash={start:"end",end:"start"};function getOppositeVariationPlacement(Ra){return Ra.replace(/start|end/g,function(ed){return hash[ed]})}function getWindowScroll(Ra){var ed=getWindow(Ra),ud=ed.pageXOffset,dd=ed.pageYOffset;return{scrollLeft:ud,scrollTop:dd}}function getWindowScrollBarX(Ra){return getBoundingClientRect(getDocumentElement(Ra)).left+getWindowScroll(Ra).scrollLeft}function getViewportRect(Ra,ed){var ud=getWindow(Ra),dd=getDocumentElement(Ra),hd=ud.visualViewport,md=dd.clientWidth,gd=dd.clientHeight,yd=0,vd=0;if(hd){md=hd.width,gd=hd.height;var Cd=isLayoutViewport();(Cd||!Cd&&ed==="fixed")&&(yd=hd.offsetLeft,vd=hd.offsetTop)}return{width:md,height:gd,x:yd+getWindowScrollBarX(Ra),y:vd}}function getDocumentRect(Ra){var ed,ud=getDocumentElement(Ra),dd=getWindowScroll(Ra),hd=(ed=Ra.ownerDocument)==null?void 0:ed.body,md=max(ud.scrollWidth,ud.clientWidth,hd?hd.scrollWidth:0,hd?hd.clientWidth:0),gd=max(ud.scrollHeight,ud.clientHeight,hd?hd.scrollHeight:0,hd?hd.clientHeight:0),yd=-dd.scrollLeft+getWindowScrollBarX(Ra),vd=-dd.scrollTop;return getComputedStyle$1(hd||ud).direction==="rtl"&&(yd+=max(ud.clientWidth,hd?hd.clientWidth:0)-md),{width:md,height:gd,x:yd,y:vd}}function isScrollParent(Ra){var ed=getComputedStyle$1(Ra),ud=ed.overflow,dd=ed.overflowX,hd=ed.overflowY;return/auto|scroll|overlay|hidden/.test(ud+hd+dd)}function getScrollParent(Ra){return["html","body","#document"].indexOf(getNodeName(Ra))>=0?Ra.ownerDocument.body:isHTMLElement(Ra)&&isScrollParent(Ra)?Ra:getScrollParent(getParentNode(Ra))}function listScrollParents(Ra,ed){var ud;ed===void 0&&(ed=[]);var dd=getScrollParent(Ra),hd=dd===((ud=Ra.ownerDocument)==null?void 0:ud.body),md=getWindow(dd),gd=hd?[md].concat(md.visualViewport||[],isScrollParent(dd)?dd:[]):dd,yd=ed.concat(gd);return hd?yd:yd.concat(listScrollParents(getParentNode(gd)))}function rectToClientRect(Ra){return Object.assign({},Ra,{left:Ra.x,top:Ra.y,right:Ra.x+Ra.width,bottom:Ra.y+Ra.height})}function getInnerBoundingClientRect(Ra,ed){var ud=getBoundingClientRect(Ra,!1,ed==="fixed");return ud.top=ud.top+Ra.clientTop,ud.left=ud.left+Ra.clientLeft,ud.bottom=ud.top+Ra.clientHeight,ud.right=ud.left+Ra.clientWidth,ud.width=Ra.clientWidth,ud.height=Ra.clientHeight,ud.x=ud.left,ud.y=ud.top,ud}function getClientRectFromMixedType(Ra,ed,ud){return ed===viewport?rectToClientRect(getViewportRect(Ra,ud)):isElement$1(ed)?getInnerBoundingClientRect(ed,ud):rectToClientRect(getDocumentRect(getDocumentElement(Ra)))}function getClippingParents(Ra){var ed=listScrollParents(getParentNode(Ra)),ud=["absolute","fixed"].indexOf(getComputedStyle$1(Ra).position)>=0,dd=ud&&isHTMLElement(Ra)?getOffsetParent(Ra):Ra;return isElement$1(dd)?ed.filter(function(hd){return isElement$1(hd)&&contains(hd,dd)&&getNodeName(hd)!=="body"}):[]}function getClippingRect(Ra,ed,ud,dd){var hd=ed==="clippingParents"?getClippingParents(Ra):[].concat(ed),md=[].concat(hd,[ud]),gd=md[0],yd=md.reduce(function(vd,Cd){var wd=getClientRectFromMixedType(Ra,Cd,dd);return vd.top=max(wd.top,vd.top),vd.right=min(wd.right,vd.right),vd.bottom=min(wd.bottom,vd.bottom),vd.left=max(wd.left,vd.left),vd},getClientRectFromMixedType(Ra,gd,dd));return yd.width=yd.right-yd.left,yd.height=yd.bottom-yd.top,yd.x=yd.left,yd.y=yd.top,yd}function computeOffsets(Ra){var ed=Ra.reference,ud=Ra.element,dd=Ra.placement,hd=dd?getBasePlacement(dd):null,md=dd?getVariation(dd):null,gd=ed.x+ed.width/2-ud.width/2,yd=ed.y+ed.height/2-ud.height/2,vd;switch(hd){case top:vd={x:gd,y:ed.y-ud.height};break;case bottom:vd={x:gd,y:ed.y+ed.height};break;case right:vd={x:ed.x+ed.width,y:yd};break;case left:vd={x:ed.x-ud.width,y:yd};break;default:vd={x:ed.x,y:ed.y}}var Cd=hd?getMainAxisFromPlacement(hd):null;if(Cd!=null){var wd=Cd==="y"?"height":"width";switch(md){case start:vd[Cd]=vd[Cd]-(ed[wd]/2-ud[wd]/2);break;case end:vd[Cd]=vd[Cd]+(ed[wd]/2-ud[wd]/2);break}}return vd}function detectOverflow(Ra,ed){ed===void 0&&(ed={});var ud=ed,dd=ud.placement,hd=dd===void 0?Ra.placement:dd,md=ud.strategy,gd=md===void 0?Ra.strategy:md,yd=ud.boundary,vd=yd===void 0?clippingParents:yd,Cd=ud.rootBoundary,wd=Cd===void 0?viewport:Cd,Nd=ud.elementContext,Ld=Nd===void 0?popper:Nd,Ud=ud.altBoundary,jd=Ud===void 0?!1:Ud,Gd=ud.padding,Yd=Gd===void 0?0:Gd,zd=mergePaddingObject(typeof Yd!="number"?Yd:expandToHashMap(Yd,basePlacements)),qd=Ld===popper?reference:popper,Wd=Ra.rects.popper,Xd=Ra.elements[jd?qd:Ld],Jd=getClippingRect(isElement$1(Xd)?Xd:Xd.contextElement||getDocumentElement(Ra.elements.popper),vd,wd,gd),Zd=getBoundingClientRect(Ra.elements.reference),mf=computeOffsets({reference:Zd,element:Wd,placement:hd}),xf=rectToClientRect(Object.assign({},Wd,mf)),_f=Ld===popper?xf:Zd,vf={top:Jd.top-_f.top+zd.top,bottom:_f.bottom-Jd.bottom+zd.bottom,left:Jd.left-_f.left+zd.left,right:_f.right-Jd.right+zd.right},gf=Ra.modifiersData.offset;if(Ld===popper&&gf){var Af=gf[hd];Object.keys(vf).forEach(function(Df){var Of=[right,bottom].indexOf(Df)>=0?1:-1,Cf=[top,bottom].indexOf(Df)>=0?"y":"x";vf[Df]+=Af[Cf]*Of})}return vf}function computeAutoPlacement(Ra,ed){ed===void 0&&(ed={});var ud=ed,dd=ud.placement,hd=ud.boundary,md=ud.rootBoundary,gd=ud.padding,yd=ud.flipVariations,vd=ud.allowedAutoPlacements,Cd=vd===void 0?placements:vd,wd=getVariation(dd),Nd=wd?yd?variationPlacements:variationPlacements.filter(function(jd){return getVariation(jd)===wd}):basePlacements,Ld=Nd.filter(function(jd){return Cd.indexOf(jd)>=0});Ld.length===0&&(Ld=Nd);var Ud=Ld.reduce(function(jd,Gd){return jd[Gd]=detectOverflow(Ra,{placement:Gd,boundary:hd,rootBoundary:md,padding:gd})[getBasePlacement(Gd)],jd},{});return Object.keys(Ud).sort(function(jd,Gd){return Ud[jd]-Ud[Gd]})}function getExpandedFallbackPlacements(Ra){if(getBasePlacement(Ra)===auto$1)return[];var ed=getOppositePlacement(Ra);return[getOppositeVariationPlacement(Ra),ed,getOppositeVariationPlacement(ed)]}function flip(Ra){var ed=Ra.state,ud=Ra.options,dd=Ra.name;if(!ed.modifiersData[dd]._skip){for(var hd=ud.mainAxis,md=hd===void 0?!0:hd,gd=ud.altAxis,yd=gd===void 0?!0:gd,vd=ud.fallbackPlacements,Cd=ud.padding,wd=ud.boundary,Nd=ud.rootBoundary,Ld=ud.altBoundary,Ud=ud.flipVariations,jd=Ud===void 0?!0:Ud,Gd=ud.allowedAutoPlacements,Yd=ed.options.placement,zd=getBasePlacement(Yd),qd=zd===Yd,Wd=vd||(qd||!jd?[getOppositePlacement(Yd)]:getExpandedFallbackPlacements(Yd)),Xd=[Yd].concat(Wd).reduce(function(mh,xh){return mh.concat(getBasePlacement(xh)===auto$1?computeAutoPlacement(ed,{placement:xh,boundary:wd,rootBoundary:Nd,padding:Cd,flipVariations:jd,allowedAutoPlacements:Gd}):xh)},[]),Jd=ed.rects.reference,Zd=ed.rects.popper,mf=new Map,xf=!0,_f=Xd[0],vf=0;vf=0,Cf=Of?"width":"height",If=detectOverflow(ed,{placement:gf,boundary:wd,rootBoundary:Nd,altBoundary:Ld,padding:Cd}),Ff=Of?Df?right:left:Df?bottom:top;Jd[Cf]>Zd[Cf]&&(Ff=getOppositePlacement(Ff));var sh=getOppositePlacement(Ff),Sh=[];if(md&&Sh.push(If[Af]<=0),yd&&Sh.push(If[Ff]<=0,If[sh]<=0),Sh.every(function(mh){return mh})){_f=gf,xf=!1;break}mf.set(gf,Sh)}if(xf)for(var yh=jd?3:1,Mh=function(xh){var Eh=Xd.find(function(kf){var Rf=mf.get(kf);if(Rf)return Rf.slice(0,xh).every(function(_h){return _h})});if(Eh)return _f=Eh,"break"},lh=yh;lh>0;lh--){var rh=Mh(lh);if(rh==="break")break}ed.placement!==_f&&(ed.modifiersData[dd]._skip=!0,ed.placement=_f,ed.reset=!0)}}const flip$1={name:"flip",enabled:!0,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(Ra,ed,ud){return ud===void 0&&(ud={x:0,y:0}),{top:Ra.top-ed.height-ud.y,right:Ra.right-ed.width+ud.x,bottom:Ra.bottom-ed.height+ud.y,left:Ra.left-ed.width-ud.x}}function isAnySideFullyClipped(Ra){return[top,right,bottom,left].some(function(ed){return Ra[ed]>=0})}function hide(Ra){var ed=Ra.state,ud=Ra.name,dd=ed.rects.reference,hd=ed.rects.popper,md=ed.modifiersData.preventOverflow,gd=detectOverflow(ed,{elementContext:"reference"}),yd=detectOverflow(ed,{altBoundary:!0}),vd=getSideOffsets(gd,dd),Cd=getSideOffsets(yd,hd,md),wd=isAnySideFullyClipped(vd),Nd=isAnySideFullyClipped(Cd);ed.modifiersData[ud]={referenceClippingOffsets:vd,popperEscapeOffsets:Cd,isReferenceHidden:wd,hasPopperEscaped:Nd},ed.attributes.popper=Object.assign({},ed.attributes.popper,{"data-popper-reference-hidden":wd,"data-popper-escaped":Nd})}const hide$1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(Ra,ed,ud){var dd=getBasePlacement(Ra),hd=[left,top].indexOf(dd)>=0?-1:1,md=typeof ud=="function"?ud(Object.assign({},ed,{placement:Ra})):ud,gd=md[0],yd=md[1];return gd=gd||0,yd=(yd||0)*hd,[left,right].indexOf(dd)>=0?{x:yd,y:gd}:{x:gd,y:yd}}function offset(Ra){var ed=Ra.state,ud=Ra.options,dd=Ra.name,hd=ud.offset,md=hd===void 0?[0,0]:hd,gd=placements.reduce(function(wd,Nd){return wd[Nd]=distanceAndSkiddingToXY(Nd,ed.rects,md),wd},{}),yd=gd[ed.placement],vd=yd.x,Cd=yd.y;ed.modifiersData.popperOffsets!=null&&(ed.modifiersData.popperOffsets.x+=vd,ed.modifiersData.popperOffsets.y+=Cd),ed.modifiersData[dd]=gd}const offset$1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset};function popperOffsets(Ra){var ed=Ra.state,ud=Ra.name;ed.modifiersData[ud]=computeOffsets({reference:ed.rects.reference,element:ed.rects.popper,placement:ed.placement})}const popperOffsets$1={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(Ra){return Ra==="x"?"y":"x"}function preventOverflow(Ra){var ed=Ra.state,ud=Ra.options,dd=Ra.name,hd=ud.mainAxis,md=hd===void 0?!0:hd,gd=ud.altAxis,yd=gd===void 0?!1:gd,vd=ud.boundary,Cd=ud.rootBoundary,wd=ud.altBoundary,Nd=ud.padding,Ld=ud.tether,Ud=Ld===void 0?!0:Ld,jd=ud.tetherOffset,Gd=jd===void 0?0:jd,Yd=detectOverflow(ed,{boundary:vd,rootBoundary:Cd,padding:Nd,altBoundary:wd}),zd=getBasePlacement(ed.placement),qd=getVariation(ed.placement),Wd=!qd,Xd=getMainAxisFromPlacement(zd),Jd=getAltAxis(Xd),Zd=ed.modifiersData.popperOffsets,mf=ed.rects.reference,xf=ed.rects.popper,_f=typeof Gd=="function"?Gd(Object.assign({},ed.rects,{placement:ed.placement})):Gd,vf=typeof _f=="number"?{mainAxis:_f,altAxis:_f}:Object.assign({mainAxis:0,altAxis:0},_f),gf=ed.modifiersData.offset?ed.modifiersData.offset[ed.placement]:null,Af={x:0,y:0};if(Zd){if(md){var Df,Of=Xd==="y"?top:left,Cf=Xd==="y"?bottom:right,If=Xd==="y"?"height":"width",Ff=Zd[Xd],sh=Ff+Yd[Of],Sh=Ff-Yd[Cf],yh=Ud?-xf[If]/2:0,Mh=qd===start?mf[If]:xf[If],lh=qd===start?-xf[If]:-mf[If],rh=ed.elements.arrow,mh=Ud&&rh?getLayoutRect(rh):{width:0,height:0},xh=ed.modifiersData["arrow#persistent"]?ed.modifiersData["arrow#persistent"].padding:getFreshSideObject(),Eh=xh[Of],kf=xh[Cf],Rf=within(0,mf[If],mh[If]),_h=Wd?mf[If]/2-yh-Rf-Eh-vf.mainAxis:Mh-Rf-Eh-vf.mainAxis,Ph=Wd?-mf[If]/2+yh+Rf+kf+vf.mainAxis:lh+Rf+kf+vf.mainAxis,sm=ed.elements.arrow&&getOffsetParent(ed.elements.arrow),th=sm?Xd==="y"?sm.clientTop||0:sm.clientLeft||0:0,oh=(Df=gf==null?void 0:gf[Xd])!=null?Df:0,Zh=Ff+_h-oh-th,Sm=Ff+Ph-oh,$h=within(Ud?min(sh,Zh):sh,Ff,Ud?max(Sh,Sm):Sh);Zd[Xd]=$h,Af[Xd]=$h-Ff}if(yd){var Vf,nh=Xd==="x"?top:left,Lh=Xd==="x"?bottom:right,Ih=Zd[Jd],om=Jd==="y"?"height":"width",zh=Ih+Yd[nh],Om=Ih-Yd[Lh],Im=[top,left].indexOf(zd)!==-1,Zm=(Vf=gf==null?void 0:gf[Jd])!=null?Vf:0,Lm=Im?zh:Ih-mf[om]-xf[om]-Zm+vf.altAxis,Wm=Im?Ih+mf[om]+xf[om]-Zm-vf.altAxis:Om,ig=Ud&&Im?withinMaxClamp(Lm,Ih,Wm):within(Ud?Lm:zh,Ih,Ud?Wm:Om);Zd[Jd]=ig,Af[Jd]=ig-Ih}ed.modifiersData[dd]=Af}}const preventOverflow$1={name:"preventOverflow",enabled:!0,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(Ra){return{scrollLeft:Ra.scrollLeft,scrollTop:Ra.scrollTop}}function getNodeScroll(Ra){return Ra===getWindow(Ra)||!isHTMLElement(Ra)?getWindowScroll(Ra):getHTMLElementScroll(Ra)}function isElementScaled(Ra){var ed=Ra.getBoundingClientRect(),ud=round(ed.width)/Ra.offsetWidth||1,dd=round(ed.height)/Ra.offsetHeight||1;return ud!==1||dd!==1}function getCompositeRect(Ra,ed,ud){ud===void 0&&(ud=!1);var dd=isHTMLElement(ed),hd=isHTMLElement(ed)&&isElementScaled(ed),md=getDocumentElement(ed),gd=getBoundingClientRect(Ra,hd,ud),yd={scrollLeft:0,scrollTop:0},vd={x:0,y:0};return(dd||!dd&&!ud)&&((getNodeName(ed)!=="body"||isScrollParent(md))&&(yd=getNodeScroll(ed)),isHTMLElement(ed)?(vd=getBoundingClientRect(ed,!0),vd.x+=ed.clientLeft,vd.y+=ed.clientTop):md&&(vd.x=getWindowScrollBarX(md))),{x:gd.left+yd.scrollLeft-vd.x,y:gd.top+yd.scrollTop-vd.y,width:gd.width,height:gd.height}}function order(Ra){var ed=new Map,ud=new Set,dd=[];Ra.forEach(function(md){ed.set(md.name,md)});function hd(md){ud.add(md.name);var gd=[].concat(md.requires||[],md.requiresIfExists||[]);gd.forEach(function(yd){if(!ud.has(yd)){var vd=ed.get(yd);vd&&hd(vd)}}),dd.push(md)}return Ra.forEach(function(md){ud.has(md.name)||hd(md)}),dd}function orderModifiers(Ra){var ed=order(Ra);return modifierPhases.reduce(function(ud,dd){return ud.concat(ed.filter(function(hd){return hd.phase===dd}))},[])}function debounce(Ra){var ed;return function(){return ed||(ed=new Promise(function(ud){Promise.resolve().then(function(){ed=void 0,ud(Ra())})})),ed}}function mergeByName(Ra){var ed=Ra.reduce(function(ud,dd){var hd=ud[dd.name];return ud[dd.name]=hd?Object.assign({},hd,dd,{options:Object.assign({},hd.options,dd.options),data:Object.assign({},hd.data,dd.data)}):dd,ud},{});return Object.keys(ed).map(function(ud){return ed[ud]})}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var Ra=arguments.length,ed=new Array(Ra),ud=0;udRa.length)&&(ed=Ra.length);for(var ud=0,dd=Array(ed);ud=0;--lh){var rh=this.tryEntries[lh],mh=rh.completion;if(rh.tryLoc==="root")return Mh("end");if(rh.tryLoc<=this.prev){var xh=gd.call(rh,"catchLoc"),Eh=gd.call(rh,"finallyLoc");if(xh&&Eh){if(this.prev=0;--Mh){var lh=this.tryEntries[Mh];if(lh.tryLoc<=this.prev&&gd.call(lh,"finallyLoc")&&this.prev=0;--yh){var Mh=this.tryEntries[yh];if(Mh.finallyLoc===Sh)return this.complete(Mh.completion,Mh.afterLoc),If(Mh),Wd}},catch:function(Sh){for(var yh=this.tryEntries.length-1;yh>=0;--yh){var Mh=this.tryEntries[yh];if(Mh.tryLoc===Sh){var lh=Mh.completion;if(lh.type==="throw"){var rh=lh.arg;If(Mh)}return rh}}throw Error("illegal catch attempt")},delegateYield:function(Sh,yh,Mh){return this.delegate={iterator:sh(Sh),resultName:yh,nextLoc:Mh},this.method==="next"&&(this.arg=dd),Wd}},hd}Ra.exports=ud,Ra.exports.__esModule=!0,Ra.exports.default=Ra.exports}(M$1);var R$1=M$1.exports(),z$1=R$1;try{regeneratorRuntime=R$1}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=R$1:Function("r","regeneratorRuntime = r")(R$1)}function T$1(Ra,ed){return function(ud){if(Array.isArray(ud))return ud}(Ra)||function(ud,dd){var hd=ud==null?null:typeof Symbol<"u"&&ud[Symbol.iterator]||ud["@@iterator"];if(hd!=null){var md,gd,yd,vd,Cd=[],wd=!0,Nd=!1;try{if(yd=(hd=hd.call(ud)).next,dd===0){if(Object(hd)!==hd)return;wd=!1}else for(;!(wd=(md=yd.call(hd)).done)&&(Cd.push(md.value),Cd.length!==dd);wd=!0);}catch(Ld){Nd=!0,gd=Ld}finally{try{if(!wd&&hd.return!=null&&(vd=hd.return(),Object(vd)!==vd))return}finally{if(Nd)throw gd}}return Cd}}(Ra,ed)||F$1(Ra,ed)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function D$1(Ra){var ed=function(ud,dd){if(L$1(ud)!="object"||!ud)return ud;var hd=ud[Symbol.toPrimitive];if(hd!==void 0){var md=hd.call(ud,dd);if(L$1(md)!="object")return md;throw new TypeError("@@toPrimitive must return a primitive value.")}return(dd==="string"?String:Number)(ud)}(Ra,"string");return L$1(ed)=="symbol"?ed:ed+""}function H$1(Ra,ed,ud){return(ed=D$1(ed))in Ra?Object.defineProperty(Ra,ed,{value:ud,enumerable:!0,configurable:!0,writable:!0}):Ra[ed]=ud,Ra}var G$1=defineComponent({name:"Saturation",props:{size:{type:Number,default:160},hue:{type:Number,default:0},saturation:{type:Number,default:0},value:{type:Number,default:0}},emits:["change"],setup:function(Ra,ed){var ud=ed.emit,dd=computed(function(){return{width:"".concat(Ra.size,"px"),height:"".concat(Ra.size,"px"),background:"hsl(".concat(Ra.hue,", 100%, 50%)")}});return{saturationStyle:dd,sliderStyle:computed(function(){return{top:"".concat((100-Ra.value)/100*Ra.size-5,"px"),left:"".concat(Ra.saturation*Ra.size/100-5,"px"),width:"".concat(10,"px"),height:"".concat(10,"px")}}),onSelect:function(hd){var md=hd.target.getBoundingClientRect(),gd=md.left,yd=md.top,vd=function(wd){var Nd,Ld;wd instanceof MouseEvent?(Nd=wd.clientX,Ld=wd.clientY):wd instanceof TouchEvent&&(Nd=wd.touches[0].clientX,Ld=wd.touches[0].clientY);var Ud=Nd-gd,jd=Ld-yd;Ud<0&&(Ud=0),jd<0&&(jd=0),Ud>Ra.size&&(Ud=Ra.size),jd>Ra.size&&(jd=Ra.size);var Gd=Ud/Ra.size*100,Yd=100-jd/Ra.size*100;ud("change",Gd,Yd)};vd(hd);var Cd=function(){document.removeEventListener("mousemove",vd),document.removeEventListener("mouseup",Cd),document.removeEventListener("touchmove",vd),document.removeEventListener("touchend",Cd)};vd(hd),hd instanceof MouseEvent&&(document.addEventListener("mousemove",vd),document.addEventListener("mouseup",Cd)),hd instanceof TouchEvent&&(hd.preventDefault(),document.addEventListener("touchmove",vd,{passive:!1}),document.addEventListener("touchend",Cd))}}}});function V$1(Ra,ed){ed===void 0&&(ed={});var ud=ed.insertAt;if(Ra&&typeof document<"u"){var dd=document.head||document.getElementsByTagName("head")[0],hd=document.createElement("style");hd.type="text/css",ud==="top"&&dd.firstChild?dd.insertBefore(hd,dd.firstChild):dd.appendChild(hd),hd.styleSheet?hd.styleSheet.cssText=Ra:hd.appendChild(document.createTextNode(Ra))}}V$1(".saturation[data-v-24517fec]{position:relative}.saturation-black[data-v-24517fec],.saturation-white[data-v-24517fec]{cursor:pointer;height:100%;left:0;position:absolute;top:0;width:100%}.saturation-white[data-v-24517fec]{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.saturation-black[data-v-24517fec]{background:linear-gradient(0deg,#000,transparent)}.slider[data-v-24517fec]{border:1px solid #fff;border-radius:50%;box-shadow:0 0 1px 1px rgba(0,0,0,.3);left:0;pointer-events:none;position:absolute;top:0;z-index:1}"),G$1.render=function(Ra,ed,ud,dd,hd,md){return openBlock(),createElementBlock("div",{class:"saturation",style:normalizeStyle(Ra.saturationStyle),onMousedown:ed[0]||(ed[0]=withModifiers(function(){return Ra.onSelect&&Ra.onSelect.apply(Ra,arguments)},["prevent","stop"])),onTouchstart:ed[1]||(ed[1]=withModifiers(function(){return Ra.onSelect&&Ra.onSelect.apply(Ra,arguments)},["prevent","stop"]))},[ed[2]||(ed[2]=createBaseVNode("div",{class:"saturation-white"},null,-1)),ed[3]||(ed[3]=createBaseVNode("div",{class:"saturation-black"},null,-1)),createBaseVNode("div",{class:"slider",style:normalizeStyle(Ra.sliderStyle)},null,4)],36)},G$1.__scopeId="data-v-24517fec",G$1.__file="src/picker/Saturation.vue";var Y$1=defineComponent({name:"Hue",props:{width:{type:Number,default:15},height:{type:Number,default:160},hue:{type:Number,default:0}},emits:["change"],setup:function(Ra,ed){var ud=ed.emit,dd=computed(function(){return{top:"".concat((1-Ra.hue/360)*Ra.height-2,"px"),height:"".concat(4,"px")}}),hd=ref$1();return onMounted(function(){(function(){if(hd.value){hd.value.width=Ra.width,hd.value.height=Ra.height;var md=hd.value.getContext("2d");if(md){var gd=md.createLinearGradient(0,0,0,Ra.height);gd.addColorStop(0,"#FF0000"),gd.addColorStop(.17,"#FF00FF"),gd.addColorStop(.34,"#0000FF"),gd.addColorStop(.51,"#00FFFF"),gd.addColorStop(.68,"#00FF00"),gd.addColorStop(.17*5,"#FFFF00"),gd.addColorStop(1,"#FF0000"),md.fillStyle=gd,md.fillRect(0,0,Ra.width,Ra.height)}}})()}),{canvas:hd,sliderStyle:dd,onSelect:function(md){var gd=md.target.getBoundingClientRect().top,yd=function(Cd){var wd;Cd instanceof MouseEvent?wd=Cd.clientY:Cd instanceof TouchEvent&&(wd=Cd.touches[0].clientY);var Nd=wd-gd;Nd<0&&(Nd=0),Nd>Ra.height&&(Nd=Ra.height);var Ld=-100*Nd/Ra.height+100;ud("change",360*Ld/100)},vd=function(){document.removeEventListener("mousemove",yd),document.removeEventListener("mouseup",vd),document.removeEventListener("touchmove",yd),document.removeEventListener("touchend",vd)};yd(md),md instanceof MouseEvent&&(document.addEventListener("mousemove",yd),document.addEventListener("mouseup",vd)),md instanceof TouchEvent&&(md.preventDefault(),document.addEventListener("touchmove",yd,{passive:!1}),document.addEventListener("touchend",vd))}}}}),$={ref:"canvas"};V$1(".hue[data-v-78b9f4f0]{position:relative;touch-action:none}.slider[data-v-78b9f4f0]{background:#fff;box-shadow:0 0 1px 0 rgba(0,0,0,.3);left:0;pointer-events:none;position:absolute;width:100%;z-index:1}"),Y$1.render=function(Ra,ed,ud,dd,hd,md){return openBlock(),createElementBlock("div",{class:"hue",onMousedown:ed[0]||(ed[0]=withModifiers(function(){return Ra.onSelect&&Ra.onSelect.apply(Ra,arguments)},["prevent","stop"])),onTouchstart:ed[1]||(ed[1]=withModifiers(function(){return Ra.onSelect&&Ra.onSelect.apply(Ra,arguments)},["prevent","stop"]))},[createBaseVNode("canvas",$,null,512),createBaseVNode("div",{class:"slider",style:normalizeStyle(Ra.sliderStyle)},null,4)],32)},Y$1.__scopeId="data-v-78b9f4f0",Y$1.__file="src/picker/Hue.vue";var X$1=defineComponent({name:"Alpha",props:{width:{type:Number,default:15},height:{type:Number,default:160},color:{type:String,default:"#000000"},alpha:{type:Number,default:1}},setup:function(Ra,ed){var ud=ed.emit,dd=computed(function(){return{top:"".concat(Ra.alpha*Ra.height-2,"px"),height:"".concat(4,"px")}}),hd=ref$1(),md=function(){var gd=hd.value.getContext("2d");hd.value.width=Ra.width,hd.value.height=Ra.height;var yd=function(Cd){var wd=document.createElement("canvas"),Nd=wd.getContext("2d"),Ld=2*Cd;return wd.width=Ld,wd.height=Ld,Nd.fillStyle="#ffffff",Nd.fillRect(0,0,Ld,Ld),Nd.fillStyle="#ccd5db",Nd.fillRect(0,0,Cd,Cd),Nd.fillRect(Cd,Cd,Cd,Cd),wd}(5);gd.fillStyle=gd.createPattern(yd,"repeat"),gd.fillRect(0,0,Ra.width,Ra.height);var vd=gd.createLinearGradient(0,0,0,Ra.height);vd.addColorStop(.01,"rgba(255,255,255,0)"),vd.addColorStop(.99,Ra.color),gd.fillStyle=vd,gd.fillRect(0,0,Ra.width,Ra.height)};return watch(function(){return Ra.color},function(){md()}),onMounted(function(){md()}),{canvas:hd,sliderStyle:dd,onSelect:function(gd){var yd=gd.target.getBoundingClientRect().top,vd=function(wd){var Nd;wd instanceof MouseEvent?Nd=wd.clientY:wd instanceof TouchEvent&&(Nd=wd.touches[0].clientY);var Ld=Nd-yd;Ld<0&&(Ld=0),Ld>Ra.height&&(Ld=Ra.height);var Ud=parseFloat((Ld/Ra.height).toFixed(2));ud("change",Ud)},Cd=function(){document.removeEventListener("mousemove",vd),document.removeEventListener("mouseup",Cd),document.removeEventListener("touchmove",vd),document.removeEventListener("touchend",Cd)};vd(gd),gd instanceof MouseEvent&&(document.addEventListener("mousemove",vd),document.addEventListener("mouseup",Cd)),gd instanceof TouchEvent&&(gd.preventDefault(),document.addEventListener("touchmove",vd,{passive:!1}),document.addEventListener("touchend",Cd))}}}}),J$1={ref:"canvas"};V$1(".alpha[data-v-24dc9656]{position:relative;touch-action:none}.slider[data-v-24dc9656]{background:#fff;box-shadow:0 0 1px 0 rgba(0,0,0,.3);left:0;pointer-events:none;position:absolute;width:100%;z-index:1}"),X$1.render=function(Ra,ed,ud,dd,hd,md){return openBlock(),createElementBlock("div",{class:"alpha",onMousedown:ed[0]||(ed[0]=withModifiers(function(){return Ra.onSelect&&Ra.onSelect.apply(Ra,arguments)},["prevent","stop"])),onTouchstart:ed[1]||(ed[1]=withModifiers(function(){return Ra.onSelect&&Ra.onSelect.apply(Ra,arguments)},["prevent","stop"]))},[createBaseVNode("canvas",J$1,null,512),createBaseVNode("div",{class:"slider",style:normalizeStyle(Ra.sliderStyle)},null,4)],32)},X$1.__scopeId="data-v-24dc9656",X$1.__file="src/picker/Alpha.vue";var q$1={rgb:"RGBA",hex:"HEX",hsl:"HSLA",hsv:"HSVA"},U$1={rgb:"RGB",hex:"HEX",hsl:"HSL",hsv:"HSV"},W$1={RGB:"rgb",RGBA:"rgb",HEX:"hex",HSL:"hsl",HSLA:"hsl",HSV:"hsv",HSVA:"hsv"};function K$1(Ra,ed){var ud=Object.keys(Ra);if(Object.getOwnPropertySymbols){var dd=Object.getOwnPropertySymbols(Ra);ed&&(dd=dd.filter(function(hd){return Object.getOwnPropertyDescriptor(Ra,hd).enumerable})),ud.push.apply(ud,dd)}return ud}function Q$1(Ra){for(var ed=1;ed1}),vd=computed(function(){var wd=Ra.options,Nd=Ra.showAlpha,Ld=Ra.value;return Array.isArray(wd)?Nd?wd.map(function(Ud){return q$1[Ud]}).filter(function(Ud){return!Ud.includes(Ld)}):wd.map(function(Ud){return U$1[Ud]}).filter(function(Ud){return!Ud.includes(Ld)}):[]}),Cd=function(wd){var Nd,Ld,Ud=wd.target;!((Nd=unref(dd))!==null&&Nd!==void 0&&Nd.isEqualNode(Ud))&&(!((Ld=unref(dd))===null||Ld===void 0)&&Ld.contains(Ud))||(md.value=!1)};return onMounted(function(){document.addEventListener("mouseup",Cd,!1)}),onUnmounted(function(){document.removeEventListener("mouseup",Cd,!1)}),{targetRef:dd,selectorRef:hd,selectorStyle:gd,isShowSelector:md,isNeedSelect:yd,formatOptions:vd,onShow:function(){yd.value&&(md.value=!0)},onFormatChange:function(wd){ud("change",W$1[wd])}}}}),re={class:"format"},ne={key:0,class:"arrow"},oe=["onClick"];V$1(".format[data-v-5f6e8f5e]{position:relative}.label[data-v-5f6e8f5e]{align-items:center;background:#e7e8e9;color:#999;display:flex;float:left;font-weight:500;height:30px;justify-content:center;position:relative;width:60px}[pick-colors-theme=dark] .label[data-v-5f6e8f5e]{background:#252930;color:#999}.arrow[data-v-5f6e8f5e]{height:6px;margin-bottom:4px;margin-left:5px;transform:rotate(135deg);width:6px}.arrow[data-v-5f6e8f5e],[pick-colors-theme=dark] .arrow[data-v-5f6e8f5e]{border-right:1px solid #999;border-top:1px solid #999}.selector[data-v-5f6e8f5e]{align-items:center;background:#f7f8f9;border-radius:5px;box-shadow:0 0 16px 0 rgba(0,0,0,.16);cursor:pointer;display:flex;flex-direction:column;font-weight:400;justify-content:center;padding:4px}[pick-colors-theme=dark] .selector[data-v-5f6e8f5e]{background:#252930;color:#999}.selector-item[data-v-5f6e8f5e]{align-items:center;display:flex;height:30px;justify-content:center;width:60px}.selector-item[data-v-5f6e8f5e]:hover{background:#e1f2fe}[pick-colors-theme=dark] .selector-item[data-v-5f6e8f5e]{color:#fff}[pick-colors-theme=dark] .selector-item[data-v-5f6e8f5e]:hover{background:#0087fa}.active-selector-item[data-v-5f6e8f5e]{background:#e1f2fe}[pick-colors-theme=dark] .active-selector-item[data-v-5f6e8f5e]{background:#0087fa}.v-enter-active[data-v-5f6e8f5e],.v-leave-active[data-v-5f6e8f5e]{opacity:1;transform:scaleY(1);transform-origin:center top;transition:opacity .2s ease-in-out,transform .2s ease-in-out}.v-enter-from[data-v-5f6e8f5e],.v-leave-to[data-v-5f6e8f5e]{opacity:0;transform:scaleY(0)}"),te.render=function(Ra,ed,ud,dd,hd,md){return openBlock(),createElementBlock("div",re,[createBaseVNode("div",{class:"label",ref:"targetRef",onClick:ed[0]||(ed[0]=function(){return Ra.onShow&&Ra.onShow.apply(Ra,arguments)})},[createBaseVNode("span",null,toDisplayString(Ra.value),1),Ra.isNeedSelect?(openBlock(),createElementBlock("div",ne)):createCommentVNode("v-if",!0)],512),createVNode(Transition$1,null,{default:withCtx(function(){return[Ra.isShowSelector?(openBlock(),createElementBlock("div",{key:0,class:"selector",ref:"selectorRef",style:normalizeStyle(Ra.selectorStyle)},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Ra.formatOptions,function(gd){return openBlock(),createElementBlock("div",{class:"selector-item",key:gd,onClick:function(yd){return Ra.onFormatChange(gd)}},toDisplayString(gd),9,oe)}),128))],4)):createCommentVNode("v-if",!0)]}),_:1})])},te.__scopeId="data-v-5f6e8f5e",te.__file="src/picker/input-value/FormatValue.vue";var ae$1=defineComponent({name:"Input",components:{FormatValue:te},props:{format:{type:String,default:"RGBA"},value:{type:String,default:""},width:{type:Number},showAlpha:{type:Boolean},formatOptions:{type:[Boolean,Array]}},emits:["change","focus","blur","enter","formatChange"],setup:function(Ra,ed){var ud=ed.emit;return{onInput:function(dd){var hd;ud("change",(hd=dd.target)===null||hd===void 0?void 0:hd.value)},valueStyle:computed(function(){return{minWidth:"".concat(Ra.width,"px"),maxWidth:"".concat(Ra.width,"px"),width:"".concat(Ra.width,"px")}}),onFocus:function(){ud("focus")},onBlur:function(){ud("blur")},onEnter:function(){ud("enter")},onFormatChange:function(dd){ud("formatChange",dd)}}}}),ie={class:"input"},ce$1=[".value"];function le(Ra,ed){var ud=Object.keys(Ra);if(Object.getOwnPropertySymbols){var dd=Object.getOwnPropertySymbols(Ra);ed&&(dd=dd.filter(function(hd){return Object.getOwnPropertyDescriptor(Ra,hd).enumerable})),ud.push.apply(ud,dd)}return ud}function ue(Ra){for(var ed=1;ed0?parseFloat(dd.toFixed(2)):dd),ed){case"hsl":var Cd=se(md,gd/100,yd/100);return"hsla(".concat(md.toFixed(0),", ").concat(Math.round(100*Cd[1]),"%, ").concat(Math.round(100*Cd[2]),"%, ").concat(vd,")");case"hsv":return"hsva(".concat(md.toFixed(0),", ").concat(Math.round(gd),"%, ").concat(Math.round(yd),"%, ").concat(vd,")");case"rgb":var wd=he(md,gd,yd),Nd=wd.r,Ld=wd.g,Ud=wd.b;return"rgba(".concat(Nd,", ").concat(Ld,", ").concat(Ud,", ").concat(vd,")");default:return"".concat(pe(he(md,gd,yd))).concat(de(255*vd))}else switch(ed){case"hsl":var jd=se(md,gd/100,yd/100);return"hsl(".concat(md.toFixed(0),", ").concat(Math.round(100*jd[1]),"%, ").concat(Math.round(100*jd[2]),"%)");case"hsv":return"hsv(".concat(md.toFixed(0),", ").concat(Math.round(gd),"%, ").concat(Math.round(yd),"%)");case"rgb":var Gd=he(md,gd,yd),Yd=Gd.r,zd=Gd.g,qd=Gd.b;return"rgb(".concat(Yd,", ").concat(zd,", ").concat(qd,")");default:return pe(he(md,gd,yd))}},ge=function(Ra){var ed=Ra.r,ud=Ra.g,dd=Ra.b;ed=ve(ed,255),ud=ve(ud,255),dd=ve(dd,255);var hd,md=Math.max(ed,ud,dd),gd=Math.min(ed,ud,dd),yd=md,vd=md-gd,Cd=md===0?0:vd/md;if(md===gd)hd=0;else{switch(md){case ed:hd=(ud-dd)/vd+(ud2&&arguments[2]!==void 0)||arguments[2])switch(ed){case"rgb":var ud=we(Ra),dd=ud.r,hd=ud.g,md=ud.b,gd=ud.a;return ue(ue({},ge({r:dd,g:hd,b:md})),{},{a:+gd});case"hsv":var yd=ke(Ra);return{h:yd.h,s:yd.s,v:yd.v,a:yd.a};case"hsl":var vd=Se(Ra),Cd=vd.h,wd=vd.s,Nd=vd.l,Ld=vd.a;return ue(ue({},ye({h:Cd,s:wd,l:Nd})),{},{a:+Ld});default:var Ud=be$1(Ra),jd=Ud.r,Gd=Ud.g,Yd=Ud.b,zd=Ud.a;return ue(ue({},ge({r:jd,g:Gd,b:Yd})),{},{a:zd/255})}else switch(ed){case"rgb":return ue(ue({},ge(we(Ra))),{},{a:1});case"hsv":var qd=ke(Ra);return{h:qd.h,s:qd.s,v:qd.v,a:1};case"hsl":return ue(ue({},ye(Se(Ra))),{},{a:1});default:return ue(ue({},ge(be$1(Ra))),{},{a:1})}},Oe=function(Ra){return Ra.match(/^#/)?"hex":Ra.match(/^rgb/)?"rgb":Ra.match(/^hsl/)?"hsl":Ra.match(/^hsv/)?"hsv":"hex"},Ee=function(Ra){var ed=Ra.h,ud=Ra.s,dd=Ra.v,hd=Ra.a;return isNaN(ed)&&isNaN(ud)&&isNaN(dd)?null:(isNaN(ed)&&(ed=0),isNaN(ud)&&(ud=0),isNaN(dd)&&(dd=0),isNaN(hd)&&(hd=1),{h:ed,s:ud,v:dd,a:hd})},Ae=defineComponent({name:"ColorItem",props:{size:{type:[Number,String],default:20},width:{type:[Number,String]},height:{type:[Number,String]},value:{type:String,default:""},border:{type:Boolean,default:!0},borderRadius:{type:Number,default:5},selected:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1}},emits:["select"],setup:function(Ra){var ed=ref$1(),ud=inject("theme",{theme:"light"}).theme,dd=computed(function(){return parseFloat((Ra.width||Ra.size)+"")}),hd=computed(function(){return parseFloat((Ra.height||Ra.size)+"")}),md=computed(function(){return{width:"".concat(unref(dd),"px"),height:"".concat(unref(hd),"px"),border:Ra.border?"1px solid ".concat(unref(ud)==="dark"?"#434345":"#d9d9d9"):"",borderRadius:"".concat(Ra.borderRadius,"px"),boxShadow:Ra.selected?"0 0 3px 2px ".concat(unref(ud)==="dark"?"#2681ff":"#1890ff"):""}}),gd=function(){var yd=ed.value.getContext("2d");ed.value.width=unref(dd),ed.value.height=unref(hd);var vd=function(Cd){var wd=document.createElement("canvas"),Nd=wd.getContext("2d"),Ld=2*Cd;return wd.width=Ld,wd.height=Ld,Nd.fillStyle="#ffffff",Nd.fillRect(0,0,Ld,Ld),Nd.fillStyle="#ccd5db",Nd.fillRect(0,0,Cd,Cd),Nd.fillRect(Cd,Cd,Cd,Cd),wd}(5);yd.fillStyle=yd.createPattern(vd,"repeat"),yd.fillRect(0,0,unref(dd),unref(hd)),yd.fillStyle=Ra.value,yd.fillRect(0,0,unref(dd),unref(hd))};return watch(function(){return Ra.value},function(){gd()}),onMounted(function(){gd()}),{canvas:ed,colorItemStyle:md}}}),Ne=["draggable"];V$1(".color-item[data-v-02da71fd]{display:inline-block;vertical-align:top}"),Ae.render=function(Ra,ed,ud,dd,hd,md){return openBlock(),createElementBlock("canvas",{class:"color-item",style:normalizeStyle(Ra.colorItemStyle),ref:"canvas",draggable:Ra.draggable},null,12,Ne)},Ae.__scopeId="data-v-02da71fd",Ae.__file="src/color-item/ColorItem.vue";var Ie=defineComponent({name:"Colors",components:{ColorItem:Ae},props:{colors:{type:Array,default:function(){return[]}},selectedIndex:{type:Number,default:-1}},emits:["change"],setup:function(Ra,ed){var ud=ed.emit;return{onSelectColor:function(dd,hd){ud("change",dd,hd)},useColors:computed(function(){return Ra.colors.map(function(dd){return xe(dd,"hex",!0)})})}}}),Fe={class:"colors"};function _e$1(Ra,ed){var ud=Object.keys(Ra);if(Object.getOwnPropertySymbols){var dd=Object.getOwnPropertySymbols(Ra);ed&&(dd=dd.filter(function(hd){return Object.getOwnPropertyDescriptor(Ra,hd).enumerable})),ud.push.apply(ud,dd)}return ud}function Le(Ra){for(var ed=1;ed0?(openBlock(),createBlock(wd,{key:0,class:"colors",colors:Ra.colors,"selected-index":Ra.selectColorIndex,onChange:Ra.onSelectColor},null,8,["colors","selected-index","onChange"])):createCommentVNode("v-if",!0)])],4)},Pe.__scopeId="data-v-6ceadec6",Pe.__file="src/picker/Picker.vue";var Be=defineComponent({name:"AddColorItem",props:{size:{type:Number,default:20},selected:{type:Boolean,default:!1}},setup:function(Ra){var ed=inject("theme",{theme:"light"}).theme;return{addColorItemStyle:computed(function(){return{width:"".concat(Ra.size,"px"),height:"".concat(Ra.size,"px"),lineHeight:"".concat(Ra.size,"px"),boxShadow:Ra.selected?"0 0 3px 2px ".concat(unref(ed)==="dark"?"#2681ff":"#1890ff"):""}})}}});V$1(".add-color-item[data-v-ceb1719c]{background:#fff;border:1px solid #d9d9d9;border-radius:5px;vertical-align:top}.container[data-v-ceb1719c]{pointer-events:none;transform:scale(.9);transform-origin:center}[pick-colors-theme=dark] .add-color-item[data-v-ceb1719c]{background:#141414;border:1px solid #434343}path[data-v-ceb1719c]{fill:#000}[pick-colors-theme=dark] path[data-v-ceb1719c]{fill:#fff}"),Be.render=function(Ra,ed,ud,dd,hd,md){return openBlock(),createElementBlock("svg",{class:"add-color-item",style:normalizeStyle(Ra.addColorItemStyle),viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},ed[0]||(ed[0]=[createBaseVNode("g",{class:"container"},[createBaseVNode("path",{d:"M544 464V160h-80v304H160v80h304v304h80V544h304v-80z"})],-1)]),4)},Be.__scopeId="data-v-ceb1719c",Be.__file="src/add-color-item/AddColorItem.vue";var Re=defineComponent({name:"ColorPicker",components:{ColorItem:Ae,Picker:Pe,AddColorItem:Be},props:{value:{type:[String,Array]},theme:{type:String,default:"light"},size:{type:[Number,String],default:20},width:{type:[Number,String]},height:{type:[Number,String]},format:{type:String},showPicker:{type:Boolean,default:void 0},showAlpha:{type:Boolean,default:!1},addColor:{type:Boolean,default:!1},deleteColor:{type:Boolean,default:!0},max:{type:Number,default:13},popupContainer:{type:[String,Object,Boolean],default:"body"},zIndex:{type:Number,default:1e3},colors:{type:Array,default:function(){return["#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","#ff4500","#ff7d4d","#00babd","#1f93ff","#fa64c3"]}},position:{type:String},placement:{type:String},formatOptions:{type:[Boolean,Array],default:!1}},emits:["change","update:value","update:showPicker","overflowMax","closePicker","formatChange"],setup:function(Ra,ed){var ud=ed.emit,dd=ref$1([]),hd=computed(function(){return unref(dd).map(function(_f){return xe(_f,"hex",Ra.showAlpha)})}),md=ref$1("hex");watch(function(){return Ra.format},function(){md.value=Ra.format},{immediate:!0}),watch(function(){return Ra.value},function(){var _f=Ra.value||"",vf=Array.isArray(_f)?_f:[_f];dd.value=vf.map(function(gf){return xe(gf,unref(md),Ra.showAlpha)})},{immediate:!0});var gd=ref$1(void 0),yd=computed(function(){return unref(dd)[unref(gd)]}),vd=ref$1(!1);watch(function(){return Ra.showPicker},function(){vd.value=Ra.showPicker},{immediate:!0});var Cd,wd,Nd=ref$1(null),Ld=ref$1(null),Ud=ee(Nd,Ld,{defaultStyle:{zIndex:Ra.zIndex},strategy:Ra.position,placement:Ra.placement}).style,jd=function(){unref(Nd)==null&&(Nd.value=unref(xf)[0]),unref(gd)==null&&(gd.value=0),Ra.showPicker===void 0?vd.value=!0:ud("update:showPicker",!0)},Gd=function(){gd.value=void 0,Ra.showPicker===void 0?vd.value=!1:ud("update:showPicker",!1),ud("closePicker",toRaw(Array.isArray(Ra.value)||Ra.addColor?unref(dd):unref(dd)[0]))},Yd=ref$1(),zd=function(){var _f=j$1(z$1.mark(function vf(gf){var Af,Df,Of,Cf;return z$1.wrap(function(If){for(;;)switch(If.prev=If.next){case 0:if(Df=gf.target,(Of=(Af=Df.dataset)===null||Af===void 0?void 0:Af.index)!=null&&Of!==""){If.next=4;break}return If.abrupt("return");case 4:if(Cf=+Of,unref(gd)!==Cf){If.next=7;break}return If.abrupt("return");case 7:unref(gd)!=null&&unref(gd)!==Cf?(Gd(),Cd&&clearTimeout(Cd),Cd=setTimeout(function(){jd(),clearTimeout(Cd)},100)):jd(),gd.value=Cf,Nd.value=Df;case 10:case"end":return If.stop()}},vf)}));return function(vf){return _f.apply(this,arguments)}}(),qd=function(){var _f=j$1(z$1.mark(function vf(gf){var Af,Df,Of,Cf,If;return z$1.wrap(function(Ff){for(;;)switch(Ff.prev=Ff.next){case 0:if(Cf=gf.target,!(!((Af=unref(Yd))!==null&&Af!==void 0&&Af.isEqualNode(Cf))&&(!((Df=unref(Yd))===null||Df===void 0)&&Df.contains(Cf)))){Ff.next=4;break}return Ff.abrupt("return");case 4:if(If=(Of=unref(Ld))===null||Of===void 0?void 0:Of.$el,!(If!=null&&If.contains(Cf))){Ff.next=8;break}return Ff.abrupt("return");case 8:wd&&clearTimeout(wd),wd=setTimeout(function(){unref(vd)&&Gd()},0);case 10:case"end":return Ff.stop()}},vf)}));return function(vf){return _f.apply(this,arguments)}}();watch(vd,function(){unref(vd)&&(jd(),clearTimeout(wd))});var Wd,Xd=ref$1(Ra.max>unref(dd).length),Jd=computed(function(){return typeof Ra.popupContainer=="string"||L$1(Ra.popupContainer)==="object"&&Ra.popupContainer!=null?Ra.popupContainer:"body"}),Zd=computed(function(){return typeof Ra.popupContainer=="boolean"&&Ra.popupContainer===!1}),mf=computed(function(){return Ra.theme});watch(function(){return[Ra.theme,unref(Ld)]},function(){nextTick$1(function(){var _f,vf;(_f=unref(Yd))===null||_f===void 0||_f.setAttribute("pick-colors-theme",unref(mf)),(vf=unref(Ld))===null||vf===void 0||(vf=vf.$el)===null||vf===void 0||vf.setAttribute("pick-colors-theme",unref(mf))})},{immediate:!0}),provide("theme",{theme:mf});var xf=ref$1([]);return onMounted(function(){document.addEventListener("mouseup",qd,!1),Ra.showPicker&&jd()}),onUnmounted(function(){document.removeEventListener("mouseup",qd,!1),Cd&&(clearTimeout(Cd),Cd=null),wd&&(clearTimeout(wd),wd=null)}),{valueList:dd,colorItemSelected:function(_f){return(Ra.addColor?unref(dd).length>0:unref(dd).length>1)&&unref(gd)===_f},selectedColor:yd,selectedIndex:gd,isShowPicker:vd,addColorItemShow:Xd,onPickerChange:function(_f){var vf=unref(gd),gf=unref(dd).slice(),Af=unref(dd).length;if(vf!=null){vf>=0?gf[vf]=_f:(gd.value=Af,gf.push(_f));var Df="";Df=Array.isArray(Ra.value)||Ra.addColor?gf:_f,dd.value=Array.isArray(Df)?Df:[Df],ud("update:value",Df),ud("change",Df,_f,vf),Ra.addColor&&Af>=Ra.max&&(Xd.value=!1,ud("overflowMax"))}},colorPicker:Yd,onColorClick:zd,pickerRef:Ld,onColorItemDragStart:function(_f){_f.dataTransfer.effectAllowed="move";var vf=_f.target;Wd=+vf.dataset.index},onColorItemDragOver:function(_f){},onColorItemDrop:function(_f){var vf=+_f.target.dataset.index,gf=_$1(unref(dd)),Af=gf[Wd];gf.splice(Wd,1);var Df=gf.slice(0,vf),Of=gf.splice(vf),Cf=Df.concat([Af]).concat(Of);ud("update:value",Cf),ud("change",Cf,Cf[Wd],Wd)},colorItemsRef:xf,pickerStyle:Ud,values:hd,teleportDisabled:Zd,toPopupContainer:Jd,formatValue:md,onFormatChange:function(_f){md.value=_f,ud("formatChange",_f)}}}});V$1(".color-picker[data-v-3c43ade8]{display:inline-block}.color-item[data-v-3c43ade8]{margin:5px}.add-color-item[data-v-3c43ade8]{display:inline-block;margin:5px}.picker[data-v-3c43ade8]{overflow:hidden}.v-enter-active[data-v-3c43ade8],.v-leave-active[data-v-3c43ade8]{opacity:1;transform:scaleY(1);transform-origin:center top;transition:opacity .2s ease-in-out,transform .2s ease-in-out}.v-enter-from[data-v-3c43ade8],.v-leave-to[data-v-3c43ade8]{opacity:0;transform:scaleY(0)}"),Re.render=function(Ra,ed,ud,dd,hd,md){var gd=resolveComponent("color-item"),yd=resolveComponent("add-color-item"),vd=resolveComponent("picker");return openBlock(),createElementBlock("div",{class:"color-picker",ref:"colorPicker",onDragstart:ed[0]||(ed[0]=withModifiers(function(){return Ra.onColorItemDragStart&&Ra.onColorItemDragStart.apply(Ra,arguments)},["stop"])),onDragover:ed[1]||(ed[1]=withModifiers(function(){return Ra.onColorItemDragOver&&Ra.onColorItemDragOver.apply(Ra,arguments)},["prevent","stop"])),onDrop:ed[2]||(ed[2]=withModifiers(function(){return Ra.onColorItemDrop&&Ra.onColorItemDrop.apply(Ra,arguments)},["prevent","stop"])),onClick:ed[3]||(ed[3]=withModifiers(function(){return Ra.onColorClick&&Ra.onColorClick.apply(Ra,arguments)},["stop"]))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Ra.values,function(Cd,wd){return openBlock(),createBlock(gd,{class:"color-item",key:wd,ref_for:!0,ref:function(Nd){return Ra.colorItemsRef[wd]=Nd},size:Ra.size,width:Ra.width,height:Ra.height,value:Cd,selected:Ra.colorItemSelected(wd),"data-index":wd,draggable:Ra.valueList.length>1,format:Ra.formatValue},null,8,["size","width","height","value","selected","data-index","draggable","format"])}),128)),Ra.addColor&&Ra.addColorItemShow?(openBlock(),createBlock(yd,{key:0,class:"add-color-item",ref:"addColorItem",selected:Ra.colorItemSelected(-1),"data-index":-1},null,8,["selected"])):createCommentVNode("v-if",!0),(openBlock(),createBlock(Teleport,{to:Ra.toPopupContainer,disabled:Ra.teleportDisabled},[createVNode(Transition$1,null,{default:withCtx(function(){return[Ra.isShowPicker?(openBlock(),createBlock(vd,{key:0,class:"picker",style:normalizeStyle(Ra.pickerStyle),ref:"pickerRef",value:Ra.selectedColor,format:Ra.formatValue,"show-alpha":Ra.showAlpha,colors:Ra.colors,formatOptions:Ra.formatOptions,onChange:Ra.onPickerChange,onFormatChange:Ra.onFormatChange},null,8,["style","value","format","show-alpha","colors","formatOptions","onChange","onFormatChange"])):createCommentVNode("v-if",!0)]}),_:1})],8,["to","disabled"]))],544)},Re.__scopeId="data-v-3c43ade8",Re.__file="src/ColorPicker.vue";const _hoisted_1$8={class:"space-y-2"},_hoisted_2$5={class:"grid grid-cols-3 justify-items-center gap-2"},_hoisted_3$4={class:"space-y-2"},_hoisted_4$4={class:"grid grid-cols-3 justify-items-center gap-2"},_hoisted_5$3={class:"space-y-2"},_hoisted_6$3={class:"grid grid-cols-5 justify-items-center gap-2"},_hoisted_7$1={class:"space-y-2"},_hoisted_8$1={class:"grid grid-cols-3 justify-items-center gap-2"},_hoisted_9={class:"space-y-2"},_hoisted_10={class:"space-y-2"},_hoisted_11={class:"space-y-2"},_hoisted_12={class:"grid grid-cols-3 justify-items-center gap-2"},_hoisted_13={class:"space-y-2"},_hoisted_14={class:"grid grid-cols-5 justify-items-center gap-2"},_hoisted_15={class:"space-y-2"},_hoisted_16={class:"grid grid-cols-5 justify-items-center gap-2"},_hoisted_17={class:"space-y-2"},_hoisted_18={class:"grid grid-cols-5 justify-items-center gap-2"},_hoisted_19={class:"space-y-2"},_hoisted_20={class:"grid grid-cols-5 justify-items-center gap-2"},_hoisted_21={class:"space-y-2"},_hoisted_22={class:"grid grid-cols-5 justify-items-center gap-2"},_hoisted_23={class:"space-y-2"},_hoisted_24={class:"grid grid-cols-5 justify-items-center gap-2"},_hoisted_25={class:"space-y-2"},_sfc_main$R=defineComponent({__name:"RightSlider",setup(Ra){const ed=useStore(),ud=useDisplayStore(),{isDark:dd,primaryColor:hd}=storeToRefs(ed);function md(){ud.toggleShowCssEditor(),setTimeout(()=>{ed.cssEditor.refresh()},50)}const gd=ref$1(!1),yd=ref$1("");watch(gd,()=>{gd.value&&(yd.value="")});const vd=useTemplateRef("pickColorsContainer"),Cd=ref$1("rgb"),wd=ref$1(["rgb","hex","hsl","hsv"]);return(Nd,Ld)=>{const Ud=_sfc_main$1o,jd=_sfc_main$W,Gd=_sfc_main$X,Yd=_sfc_main$_,zd=_sfc_main$V,qd=_sfc_main$$;return openBlock(),createElementBlock("div",{class:normalizeClass(["overflow-hidden border-l-2 border-gray/20 bg-white transition-width duration-300 dark:bg-[#191919]",{"w-0 border-l-0":!unref(ed).isOpenRightSlider,"w-100":unref(ed).isOpenRightSlider}]),style:{"z-index":"1"}},[createBaseVNode("div",{class:normalizeClass(["space-y-4 h-full overflow-auto p-4 transition-transform",{"translate-x-0":unref(ed).isOpenRightSlider,"translate-x-full":!unref(ed).isOpenRightSlider}])},[createBaseVNode("div",_hoisted_1$8,[Ld[14]||(Ld[14]=createBaseVNode("h2",null,"主题",-1)),createBaseVNode("div",_hoisted_2$5,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(themeOptions),({label:Wd,value:Xd})=>(openBlock(),createBlock(Ud,{key:Xd,class:normalizeClass(["w-full",{"border-black dark:border-white":unref(ed).theme===Xd}]),variant:"outline",onClick:Jd=>unref(ed).themeChanged(Xd)},{default:withCtx(()=>[createTextVNode(toDisplayString(Wd),1)]),_:2},1032,["class","onClick"]))),128))])]),createBaseVNode("div",_hoisted_3$4,[Ld[15]||(Ld[15]=createBaseVNode("h2",null,"字体",-1)),createBaseVNode("div",_hoisted_4$4,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(fontFamilyOptions),({label:Wd,value:Xd})=>(openBlock(),createBlock(Ud,{key:Xd,variant:"outline",class:normalizeClass(["w-full",{"border-black dark:border-white":unref(ed).fontFamily===Xd}]),onClick:Jd=>unref(ed).fontChanged(Xd)},{default:withCtx(()=>[createTextVNode(toDisplayString(Wd),1)]),_:2},1032,["class","onClick"]))),128))])]),createBaseVNode("div",_hoisted_5$3,[Ld[16]||(Ld[16]=createBaseVNode("h2",null,"字号",-1)),createBaseVNode("div",_hoisted_6$3,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(fontSizeOptions),({value:Wd,desc:Xd})=>(openBlock(),createBlock(Ud,{key:Wd,variant:"outline",class:normalizeClass(["w-full",{"border-black dark:border-white":unref(ed).fontSize===Wd}]),onClick:Jd=>unref(ed).sizeChanged(Wd)},{default:withCtx(()=>[createTextVNode(toDisplayString(Xd),1)]),_:2},1032,["class","onClick"]))),128))])]),createBaseVNode("div",_hoisted_7$1,[Ld[17]||(Ld[17]=createBaseVNode("h2",null,"主题色",-1)),createBaseVNode("div",_hoisted_8$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(colorOptions),({label:Wd,value:Xd})=>(openBlock(),createBlock(Ud,{key:Xd,class:normalizeClass(["w-full",{"border-black dark:border-white":unref(ed).primaryColor===Xd}]),variant:"outline",onClick:Jd=>unref(ed).colorChanged(Xd)},{default:withCtx(()=>[createBaseVNode("span",{class:"mr-2 inline-block h-4 w-4 rounded-full",style:normalizeStyle({background:Xd})},null,4),createTextVNode(" "+toDisplayString(Wd),1)]),_:2},1032,["class","onClick"]))),128))])]),createBaseVNode("div",_hoisted_9,[Ld[18]||(Ld[18]=createBaseVNode("h2",null,"自定义主题色",-1)),createBaseVNode("div",{ref_key:"pickColorsContainer",ref:vd},[unref(vd)?(openBlock(),createBlock(unref(Re),{key:0,value:unref(hd),"onUpdate:value":Ld[0]||(Ld[0]=Wd=>isRef(hd)?hd.value=Wd:null),"show-alpha":"",format:unref(Cd),"format-options":unref(wd),theme:unref(ed).isDark?"dark":"light","popup-container":unref(vd),onChange:unref(ed).colorChanged},null,8,["value","format","format-options","theme","popup-container","onChange"])):createCommentVNode("",!0)],512)]),createBaseVNode("div",_hoisted_10,[Ld[19]||(Ld[19]=createBaseVNode("h2",null,"代码块主题",-1)),createBaseVNode("div",null,[createVNode(qd,{modelValue:unref(ed).codeBlockTheme,"onUpdate:modelValue":[Ld[1]||(Ld[1]=Wd=>unref(ed).codeBlockTheme=Wd),unref(ed).codeBlockThemeChanged]},{default:withCtx(()=>[createVNode(Gd,null,{default:withCtx(()=>[createVNode(jd,{placeholder:"Select a code block theme"})]),_:1}),createVNode(zd,null,{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(codeBlockThemeOptions),({label:Wd,value:Xd})=>(openBlock(),createBlock(Yd,{key:Wd,value:Xd},{default:withCtx(()=>[createTextVNode(toDisplayString(Wd),1)]),_:2},1032,["value"]))),128))]),_:1})]),_:1},8,["modelValue","onUpdate:modelValue"])])]),createBaseVNode("div",_hoisted_11,[Ld[20]||(Ld[20]=createBaseVNode("h2",null,"图注格式",-1)),createBaseVNode("div",_hoisted_12,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(legendOptions),({label:Wd,value:Xd})=>(openBlock(),createBlock(Ud,{key:Xd,class:normalizeClass(["w-full",{"border-black dark:border-white":unref(ed).legend===Xd}]),variant:"outline",onClick:Jd=>unref(ed).legendChanged(Xd)},{default:withCtx(()=>[createTextVNode(toDisplayString(Wd),1)]),_:2},1032,["class","onClick"]))),128))])]),createBaseVNode("div",_hoisted_13,[Ld[23]||(Ld[23]=createBaseVNode("h2",null,"Mac 代码块",-1)),createBaseVNode("div",_hoisted_14,[createVNode(Ud,{class:normalizeClass(["w-full",{"border-black dark:border-white":unref(ed).isMacCodeBlock}]),variant:"outline",onClick:Ld[2]||(Ld[2]=Wd=>!unref(ed).isMacCodeBlock&&unref(ed).macCodeBlockChanged())},{default:withCtx(()=>Ld[21]||(Ld[21]=[createTextVNode(" 开启 ")])),_:1},8,["class"]),createVNode(Ud,{class:normalizeClass(["w-full",{"border-black dark:border-white":!unref(ed).isMacCodeBlock}]),variant:"outline",onClick:Ld[3]||(Ld[3]=Wd=>unref(ed).isMacCodeBlock&&unref(ed).macCodeBlockChanged())},{default:withCtx(()=>Ld[22]||(Ld[22]=[createTextVNode(" 关闭 ")])),_:1},8,["class"])])]),createBaseVNode("div",_hoisted_15,[Ld[26]||(Ld[26]=createBaseVNode("h2",null,"微信外链转底部引用",-1)),createBaseVNode("div",_hoisted_16,[createVNode(Ud,{class:normalizeClass(["w-full",{"border-black dark:border-white":unref(ed).isCiteStatus}]),variant:"outline",onClick:Ld[4]||(Ld[4]=Wd=>!unref(ed).isCiteStatus&&unref(ed).citeStatusChanged())},{default:withCtx(()=>Ld[24]||(Ld[24]=[createTextVNode(" 开启 ")])),_:1},8,["class"]),createVNode(Ud,{class:normalizeClass(["w-full",{"border-black dark:border-white":!unref(ed).isCiteStatus}]),variant:"outline",onClick:Ld[5]||(Ld[5]=Wd=>unref(ed).isCiteStatus&&unref(ed).citeStatusChanged())},{default:withCtx(()=>Ld[25]||(Ld[25]=[createTextVNode(" 关闭 ")])),_:1},8,["class"])])]),createBaseVNode("div",_hoisted_17,[Ld[29]||(Ld[29]=createBaseVNode("h2",null,"段落首行缩进",-1)),createBaseVNode("div",_hoisted_18,[createVNode(Ud,{class:normalizeClass(["w-full",{"border-black dark:border-white":unref(ed).isUseIndent}]),variant:"outline",onClick:Ld[6]||(Ld[6]=Wd=>!unref(ed).isUseIndent&&unref(ed).useIndentChanged())},{default:withCtx(()=>Ld[27]||(Ld[27]=[createTextVNode(" 开启 ")])),_:1},8,["class"]),createVNode(Ud,{class:normalizeClass(["w-full",{"border-black dark:border-white":!unref(ed).isUseIndent}]),variant:"outline",onClick:Ld[7]||(Ld[7]=Wd=>unref(ed).isUseIndent&&unref(ed).useIndentChanged())},{default:withCtx(()=>Ld[28]||(Ld[28]=[createTextVNode(" 关闭 ")])),_:1},8,["class"])])]),createBaseVNode("div",_hoisted_19,[Ld[32]||(Ld[32]=createBaseVNode("h2",null,"自定义 CSS 面板",-1)),createBaseVNode("div",_hoisted_20,[createVNode(Ud,{class:normalizeClass(["w-full",{"border-black dark:border-white":unref(ud).isShowCssEditor}]),variant:"outline",onClick:Ld[8]||(Ld[8]=Wd=>!unref(ud).isShowCssEditor&&md())},{default:withCtx(()=>Ld[30]||(Ld[30]=[createTextVNode(" 开启 ")])),_:1},8,["class"]),createVNode(Ud,{class:normalizeClass(["w-full",{"border-black dark:border-white":!unref(ud).isShowCssEditor}]),variant:"outline",onClick:Ld[9]||(Ld[9]=Wd=>unref(ud).isShowCssEditor&&md())},{default:withCtx(()=>Ld[31]||(Ld[31]=[createTextVNode(" 关闭 ")])),_:1},8,["class"])])]),createBaseVNode("div",_hoisted_21,[Ld[35]||(Ld[35]=createBaseVNode("h2",null,"编辑区位置",-1)),createBaseVNode("div",_hoisted_22,[createVNode(Ud,{class:normalizeClass(["w-full",{"border-black dark:border-white":unref(ed).isEditOnLeft}]),variant:"outline",onClick:Ld[10]||(Ld[10]=Wd=>!unref(ed).isEditOnLeft&&unref(ed).toggleEditOnLeft())},{default:withCtx(()=>Ld[33]||(Ld[33]=[createTextVNode(" 左侧 ")])),_:1},8,["class"]),createVNode(Ud,{class:normalizeClass(["w-full",{"border-black dark:border-white":!unref(ed).isEditOnLeft}]),variant:"outline",onClick:Ld[11]||(Ld[11]=Wd=>unref(ed).isEditOnLeft&&unref(ed).toggleEditOnLeft())},{default:withCtx(()=>Ld[34]||(Ld[34]=[createTextVNode(" 右侧 ")])),_:1},8,["class"])])]),createBaseVNode("div",_hoisted_23,[Ld[36]||(Ld[36]=createBaseVNode("h2",null,"模式",-1)),createBaseVNode("div",_hoisted_24,[createVNode(Ud,{class:normalizeClass(["w-full",{"border-black dark:border-white":!unref(dd)}]),variant:"outline",onClick:Ld[12]||(Ld[12]=Wd=>unref(ed).toggleDark(!1))},{default:withCtx(()=>[createVNode(unref(Sun),{class:"h-4 w-4"})]),_:1},8,["class"]),createVNode(Ud,{class:normalizeClass(["w-full",{"border-black dark:border-white":unref(dd)}]),variant:"outline",onClick:Ld[13]||(Ld[13]=Wd=>unref(ed).toggleDark(!0))},{default:withCtx(()=>[createVNode(unref(Moon),{class:"h-4 w-4"})]),_:1},8,["class"])])]),createBaseVNode("div",_hoisted_25,[Ld[38]||(Ld[38]=createBaseVNode("h2",null,"样式配置",-1)),createVNode(Ud,{onClick:unref(ed).resetStyleConfirm},{default:withCtx(()=>Ld[37]||(Ld[37]=[createTextVNode(" 重置 ")])),_:1},8,["onClick"])])],2)],2)}}}),_sfc_main$Q=defineComponent({__name:"DialogDescription",props:{asChild:{type:Boolean},as:{},class:{}},setup(Ra){const ed=Ra,ud=computed(()=>{const{class:hd,...md}=ed;return md}),dd=Ot$3(ud);return(hd,md)=>(openBlock(),createBlock(unref(Iu$3),mergeProps(unref(dd),{class:unref(cn$4)("text-sm text-muted-foreground",ed.class)}),{default:withCtx(()=>[renderSlot(hd.$slots,"default")]),_:3},16,["class"]))}}),_hoisted_1$7={class:"cssEditor-wrapper h-full flex flex-col border-l-2 border-gray/50"},_sfc_main$P=defineComponent({__name:"CssEditor",setup(Ra){const ed=useStore(),ud=useDisplayStore(),dd=ref$1(!1),hd=ref$1(""),md=ref$1(["",ed.cssContentConfig.active]);function gd(zd){hd.value=zd,dd.value=!0}function yd(){if(!hd.value.trim()){Ke.error("新建失败,方案名不可为空");return}if(!ed.validatorTabName(hd.value)){Ke.error("不能与现有方案重名");return}ed.renameTab(hd.value),dd.value=!1,Ke.success("修改成功~")}const vd=ref$1(!1),Cd=ref$1("");function wd(){if(!Cd.value.trim()){Ke.error("新建失败,方案名不可为空");return}if(!ed.validatorTabName(Cd.value)){Ke.error("不能与现有方案重名");return}ed.addCssContentTab(Cd.value),vd.value=!1,ed.cssContentConfig.active=Cd.value,md.value=[md.value[1],Cd.value],Ke.success("新建成功~")}const Nd=ref$1(!1),Ld=ref$1("");function Ud(zd){Ld.value=zd,Nd.value=!0}function jd(){const zd=ed.cssContentConfig.tabs;if(zd.length===1){Ke.warning("至少保留一个方案");return}let qd=ed.cssContentConfig.active;qd===Ld.value&&zd.forEach((Wd,Xd)=>{if(Wd.name===Ld.value){const Jd=zd[Xd+1]||zd[Xd-1];Jd&&(qd=Jd.name)}}),ed.tabChanged(qd),ed.cssContentConfig.tabs=zd.filter(Wd=>Wd.name!==Ld.value),Ke.success("删除成功~")}function Gd(){Cd.value=`方案${ed.cssContentConfig.tabs.length+1}`,vd.value=!0}function Yd(zd){if(zd==="add"){ed.cssContentConfig.active=md.value[1],Gd();return}md.value=[md.value[1],zd],ed.tabChanged(zd)}return(zd,qd)=>{const Wd=_sfc_main$T,Xd=_sfc_main$U,Jd=_sfc_main$14,Zd=_sfc_main$16,mf=_sfc_main$Q,xf=_sfc_main$17,_f=_sfc_main$1e,vf=_sfc_main$1o,gf=_sfc_main$1f,Af=_sfc_main$1g,Df=_sfc_main$1h,Of=_sfc_main$1j,Cf=_sfc_main$1k,If=_sfc_main$1l,Ff=_sfc_main$1m,sh=_sfc_main$1n,Sh=_sfc_main$1p,yh=_sfc_main$1q,Mh=_sfc_main$1r;return openBlock(),createBlock(Transition$1,{"enter-active-class":"bounceInRight"},{default:withCtx(()=>[withDirectives(createBaseVNode("div",_hoisted_1$7,[createVNode(Jd,{modelValue:unref(ed).cssContentConfig.active,"onUpdate:modelValue":[qd[0]||(qd[0]=lh=>unref(ed).cssContentConfig.active=lh),Yd]},{default:withCtx(()=>[createVNode(Xd,{class:"w-full overflow-x-auto"},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(ed).cssContentConfig.tabs,lh=>(openBlock(),createBlock(Wd,{key:lh.name,value:lh.name,class:"flex-1"},{default:withCtx(()=>[createTextVNode(toDisplayString(lh.title)+" ",1),withDirectives(createVNode(unref(PenLine),{class:"inline size-4 rounded-full p-0.5 transition-color hover:bg-gray-200 dark:hover:bg-gray-600",onClick:rh=>gd(lh.name)},null,8,["onClick"]),[[vShow,unref(ed).cssContentConfig.active===lh.name]]),withDirectives(createVNode(unref(X$6),{class:"inline size-4 rounded-full p-0.5 transition-color hover:bg-gray-200 dark:hover:bg-gray-600",onClick:withModifiers(rh=>Ud(lh.name),["self"])},null,8,["onClick"]),[[vShow,unref(ed).cssContentConfig.active===lh.name]])]),_:2},1032,["value"]))),128)),createVNode(Wd,{value:"add"},{default:withCtx(()=>[createVNode(unref(Plus),{class:"h-5 w-5"})]),_:1})]),_:1})]),_:1},8,["modelValue"]),qd[21]||(qd[21]=createBaseVNode("textarea",{id:"cssEditor",type:"textarea",placeholder:"Your custom css here."},null,-1)),createVNode(Df,{open:unref(vd),"onUpdate:open":qd[4]||(qd[4]=lh=>isRef(vd)?vd.value=lh:null)},{default:withCtx(()=>[createVNode(Af,{class:"sm:max-w-[425px]"},{default:withCtx(()=>[createVNode(xf,null,{default:withCtx(()=>[createVNode(Zd,null,{default:withCtx(()=>qd[9]||(qd[9]=[createTextVNode("新建自定义 CSS")])),_:1}),createVNode(mf,null,{default:withCtx(()=>qd[10]||(qd[10]=[createTextVNode(" 请输入方案名称 ")])),_:1})]),_:1}),createVNode(_f,{modelValue:unref(Cd),"onUpdate:modelValue":qd[1]||(qd[1]=lh=>isRef(Cd)?Cd.value=lh:null)},null,8,["modelValue"]),createVNode(gf,null,{default:withCtx(()=>[createVNode(vf,{variant:"outline",onClick:qd[2]||(qd[2]=lh=>vd.value=!1)},{default:withCtx(()=>qd[11]||(qd[11]=[createTextVNode(" 取消 ")])),_:1}),createVNode(vf,{onClick:qd[3]||(qd[3]=lh=>wd())},{default:withCtx(()=>qd[12]||(qd[12]=[createTextVNode(" 保存 ")])),_:1})]),_:1})]),_:1})]),_:1},8,["open"]),createVNode(Df,{open:unref(dd),"onUpdate:open":qd[7]||(qd[7]=lh=>isRef(dd)?dd.value=lh:null)},{default:withCtx(()=>[createVNode(Af,{class:"sm:max-w-[425px]"},{default:withCtx(()=>[createVNode(xf,null,{default:withCtx(()=>[createVNode(Zd,null,{default:withCtx(()=>qd[13]||(qd[13]=[createTextVNode("编辑方案名称")])),_:1}),createVNode(mf,null,{default:withCtx(()=>qd[14]||(qd[14]=[createTextVNode(" 请输入新的方案名称 ")])),_:1})]),_:1}),createVNode(_f,{modelValue:unref(hd),"onUpdate:modelValue":qd[5]||(qd[5]=lh=>isRef(hd)?hd.value=lh:null)},null,8,["modelValue"]),createVNode(gf,null,{default:withCtx(()=>[createVNode(vf,{variant:"outline",onClick:qd[6]||(qd[6]=lh=>dd.value=!1)},{default:withCtx(()=>qd[15]||(qd[15]=[createTextVNode(" 取消 ")])),_:1}),createVNode(vf,{onClick:yd},{default:withCtx(()=>qd[16]||(qd[16]=[createTextVNode(" 保存 ")])),_:1})]),_:1})]),_:1})]),_:1},8,["open"]),createVNode(Mh,{open:unref(Nd),"onUpdate:open":qd[8]||(qd[8]=lh=>isRef(Nd)?Nd.value=lh:null)},{default:withCtx(()=>[createVNode(yh,null,{default:withCtx(()=>[createVNode(If,null,{default:withCtx(()=>[createVNode(Of,null,{default:withCtx(()=>qd[17]||(qd[17]=[createTextVNode("提示")])),_:1}),createVNode(Cf,null,{default:withCtx(()=>qd[18]||(qd[18]=[createTextVNode(" 此操作将删除该自定义方案,是否继续? ")])),_:1})]),_:1}),createVNode(Sh,null,{default:withCtx(()=>[createVNode(Ff,null,{default:withCtx(()=>qd[19]||(qd[19]=[createTextVNode("取消")])),_:1}),createVNode(sh,{onClick:jd},{default:withCtx(()=>qd[20]||(qd[20]=[createTextVNode(" 确认 ")])),_:1})]),_:1})]),_:1})]),_:1},8,["open"])],512),[[vShow,unref(ud).isShowCssEditor]])]),_:1})}}}),__unplugin_components_9=_export_sfc(_sfc_main$P,[["__scopeId","data-v-a83b50e8"]]),_sfc_main$O=defineComponent({__name:"BackTop",props:{left:{},top:{},right:{},bottom:{},visibilityHeight:{},target:{},onClick:{type:Function}},setup(Ra){const ed=Ra,ud=ref$1(ed.visibilityHeight??400),dd=ref$1(!1),hd=ref$1(null);function md(yd){var vd,Cd;console.log("scrollToTop"),(vd=hd.value)==null||vd.scrollTo({top:0,left:0,behavior:"smooth"}),(Cd=ed.onClick)==null||Cd.call(ed,yd)}const gd=throttle$1(yd=>{yd instanceof HTMLElement?dd.value=yd.scrollTop>ud.value:dd.value=window.scrollY>ud.value},200,{edges:["leading","trailing"]});return onMounted(()=>{ed.target?hd.value=document.getElementById(ed.target):hd.value=window,hd.value.addEventListener("scroll",()=>{gd(hd.value)})}),onUnmounted(()=>{hd.value.removeEventListener("scroll",()=>{gd(hd.value)})}),(yd,vd)=>{const Cd=_sfc_main$1o;return unref(dd)?(openBlock(),createBlock(Cd,{key:0,variant:"outline",size:"icon",class:"fixed z-50 rounded-full",style:normalizeStyle({left:`${yd.left}px`,top:`${yd.top}px`,right:`${yd.right}px`,bottom:`${yd.bottom}px`}),onClick:md},{default:withCtx(()=>[createVNode(unref(ArrowUpFromLine))]),_:1},8,["style"])):createCommentVNode("",!0)}}}),_sfc_main$N=defineComponent({__name:"ContextMenu",props:{dir:{},modal:{type:Boolean}},emits:["update:open"],setup(Ra,{emit:ed}){const hd=Se$6(Ra,ed);return(md,gd)=>(openBlock(),createBlock(unref(rm$1),normalizeProps(guardReactiveProps(unref(hd))),{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},16))}}),_sfc_main$M=defineComponent({__name:"ContextMenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},sticky:{},hideWhenDetached:{type:Boolean},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=computed(()=>{const{class:gd,...yd}=ud;return yd}),md=Se$6(hd,dd);return(gd,yd)=>(openBlock(),createBlock(unref(um),null,{default:withCtx(()=>[createVNode(unref(dm),mergeProps(unref(md),{class:unref(cn$4)("z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",ud.class)}),{default:withCtx(()=>[renderSlot(gd.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),_sfc_main$L=defineComponent({__name:"ContextMenuShortcut",props:{class:{}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(cn$4)("ml-auto text-xs tracking-widest text-muted-foreground",ed.class))},[renderSlot(ud.$slots,"default")],2))}}),_sfc_main$K=defineComponent({__name:"ContextMenuSeparator",props:{asChild:{type:Boolean},as:{},class:{}},setup(Ra){const ed=Ra,ud=computed(()=>{const{class:dd,...hd}=ed;return hd});return(dd,hd)=>(openBlock(),createBlock(unref(vm$1),mergeProps(ud.value,{class:unref(cn$4)("-mx-1 my-1 h-px bg-border",ed.class)}),null,16,["class"]))}}),_sfc_main$J=defineComponent({__name:"ContextMenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{},inset:{type:Boolean}},emits:["select"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=computed(()=>{const{class:gd,...yd}=ud;return yd}),md=Se$6(hd,dd);return(gd,yd)=>(openBlock(),createBlock(unref(fm),mergeProps(unref(md),{class:unref(cn$4)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",gd.inset&&"pl-8",ud.class)}),{default:withCtx(()=>[renderSlot(gd.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$I=defineComponent({__name:"ContextMenuTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(Ra){const ud=Ot$3(Ra);return(dd,hd)=>(openBlock(),createBlock(unref(im),normalizeProps(guardReactiveProps(unref(ud))),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16))}}),_sfc_main$H=defineComponent({__name:"DropdownMenu",props:{defaultOpen:{type:Boolean},open:{type:Boolean},dir:{},modal:{type:Boolean}},emits:["update:open"],setup(Ra,{emit:ed}){const hd=Se$6(Ra,ed);return(md,gd)=>(openBlock(),createBlock(unref(uh),normalizeProps(guardReactiveProps(unref(hd))),{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},16))}}),_sfc_main$G=defineComponent({__name:"DropdownMenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},side:{},sideOffset:{default:4},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=computed(()=>{const{class:gd,...yd}=ud;return yd}),md=Se$6(hd,dd);return(gd,yd)=>(openBlock(),createBlock(unref(ch$1),null,{default:withCtx(()=>[createVNode(unref(fh),mergeProps(unref(md),{class:unref(cn$4)("z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",ud.class)}),{default:withCtx(()=>[renderSlot(gd.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),_sfc_main$F=defineComponent({__name:"DropdownMenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{},inset:{type:Boolean}},setup(Ra){const ed=Ra,ud=computed(()=>{const{class:hd,...md}=ed;return md}),dd=Ot$3(ud);return(hd,md)=>(openBlock(),createBlock(unref(vh),mergeProps(unref(dd),{class:unref(cn$4)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",hd.inset&&"pl-8",ed.class)}),{default:withCtx(()=>[renderSlot(hd.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$E=defineComponent({__name:"DropdownMenuTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(Ra){const ud=Ot$3(Ra);return(dd,hd)=>(openBlock(),createBlock(unref(dh),mergeProps({class:"outline-none"},unref(ud)),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16))}}),_sfc_main$D=defineComponent({__name:"DialogTrigger",props:{asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createBlock(unref(ou$3),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),_hoisted_1$6=["onClick"],_hoisted_2$4={class:"line-clamp-1"},_sfc_main$C=defineComponent({__name:"PostSlider",setup(Ra){const ed=useStore(),ud=ref$1(!1),dd=ref$1("");watch(ud,()=>{ud.value&&(dd.value="")});function hd(){if(dd.value===""){Ke.error("内容标题不可为空");return}ed.addPost(dd.value),ud.value=!1,Ke.success("内容新增成功")}const md=ref$1(-1),gd=ref$1(!1),yd=ref$1("");function vd(Ud){md.value=Ud,yd.value=ed.posts[Ud].title,gd.value=!0}function Cd(){if(yd.value===""){Ke.error("内容标题不可为空");return}ed.renamePost(md.value,yd.value),gd.value=!1,Ke.success("内容重命名成功")}const wd=ref$1(!1);function Nd(Ud){md.value=Ud,wd.value=!0}function Ld(){ed.delPost(md.value),wd.value=!1,Ke.success("内容删除成功")}return(Ud,jd)=>{const Gd=_sfc_main$1o,Yd=_sfc_main$D,zd=_sfc_main$16,qd=_sfc_main$Q,Wd=_sfc_main$17,Xd=_sfc_main$1e,Jd=_sfc_main$1f,Zd=_sfc_main$1g,mf=_sfc_main$1h,xf=_sfc_main$E,_f=_sfc_main$F,vf=_sfc_main$G,gf=_sfc_main$H,Af=_sfc_main$1j,Df=_sfc_main$1k,Of=_sfc_main$1l,Cf=_sfc_main$1m,If=_sfc_main$1n,Ff=_sfc_main$1p,sh=_sfc_main$1q,Sh=_sfc_main$1r;return openBlock(),createElementBlock("div",{class:normalizeClass(["overflow-hidden bg-gray/20 transition-width duration-300 dark:bg-[#191c20]",{"w-0":!unref(ed).isOpenPostSlider,"w-50":unref(ed).isOpenPostSlider}])},[createBaseVNode("nav",{class:normalizeClass(["space-y-1 h-full overflow-auto border-r-2 border-gray/20 p-2 transition-transform",{"translate-x-100":unref(ed).isOpenPostSlider,"-translate-x-full":!unref(ed).isOpenPostSlider}])},[createVNode(mf,{open:unref(ud),"onUpdate:open":jd[2]||(jd[2]=yh=>isRef(ud)?ud.value=yh:null)},{default:withCtx(()=>[createVNode(Yd,{"as-child":""},{default:withCtx(()=>[createVNode(Gd,{variant:"outline",class:"w-full",size:"xs"},{default:withCtx(()=>[createVNode(unref(Plus)),jd[9]||(jd[9]=createTextVNode(" 新增内容 "))]),_:1})]),_:1}),createVNode(Zd,null,{default:withCtx(()=>[createVNode(Wd,null,{default:withCtx(()=>[createVNode(zd,null,{default:withCtx(()=>jd[10]||(jd[10]=[createTextVNode("新增内容")])),_:1}),createVNode(qd,null,{default:withCtx(()=>jd[11]||(jd[11]=[createTextVNode(" 请输入内容名称 ")])),_:1})]),_:1}),createVNode(Xd,{modelValue:unref(dd),"onUpdate:modelValue":jd[0]||(jd[0]=yh=>isRef(dd)?dd.value=yh:null)},null,8,["modelValue"]),createVNode(Jd,null,{default:withCtx(()=>[createVNode(Gd,{onClick:jd[1]||(jd[1]=yh=>hd())},{default:withCtx(()=>jd[12]||(jd[12]=[createTextVNode(" 确 定 ")])),_:1})]),_:1})]),_:1})]),_:1},8,["open"]),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(ed).posts,(yh,Mh)=>(openBlock(),createElementBlock("a",{key:yh.title,href:"#",class:normalizeClass([{"bg-primary text-primary-foreground shadow-lg dark:border-1 border-primary":unref(ed).currentPostIndex===Mh,"dark:bg-gray/30 dark:text-primary-foreground-dark dark:border-primary-dark":unref(ed).currentPostIndex===Mh},"hover:bg-primary/90 hover:text-primary-foreground dark:hover:border-primary-dark h-8 w-full inline-flex items-center justify-start gap-2 whitespace-nowrap rounded px-2 text-sm transition-colors dark:text-white dark:hover:bg-gray/20 dark:hover:text-white"]),onClick:lh=>unref(ed).currentPostIndex=Mh},[createBaseVNode("span",_hoisted_2$4,toDisplayString(yh.title),1),createVNode(gf,null,{default:withCtx(()=>[createVNode(xf,{"as-child":""},{default:withCtx(()=>[createVNode(Gd,{size:"xs",variant:"ghost",class:"ml-auto px-1.5"},{default:withCtx(()=>[createVNode(unref(Ellipsis),{class:"size-4"})]),_:1})]),_:1}),createVNode(vf,null,{default:withCtx(()=>[createVNode(_f,{onClick:withModifiers(lh=>vd(Mh),["stop"])},{default:withCtx(()=>[createVNode(unref(PenLine),{class:"mr-2 size-4"}),jd[13]||(jd[13]=createTextVNode(" 重命名 "))]),_:2},1032,["onClick"]),unref(ed).posts.length>1?(openBlock(),createBlock(_f,{key:0,onClick:withModifiers(lh=>Nd(Mh),["stop"])},{default:withCtx(()=>[createVNode(unref(Trash),{class:"mr-2 size-4"}),jd[14]||(jd[14]=createTextVNode(" 删除 "))]),_:2},1032,["onClick"])):createCommentVNode("",!0)]),_:2},1024)]),_:2},1024)],10,_hoisted_1$6))),128)),createVNode(mf,{open:unref(gd),"onUpdate:open":jd[6]||(jd[6]=yh=>isRef(gd)?gd.value=yh:null)},{default:withCtx(()=>[createVNode(Zd,{class:"sm:max-w-[425px]"},{default:withCtx(()=>[createVNode(Wd,null,{default:withCtx(()=>[createVNode(zd,null,{default:withCtx(()=>jd[15]||(jd[15]=[createTextVNode("编辑内容名称")])),_:1}),createVNode(qd,null,{default:withCtx(()=>jd[16]||(jd[16]=[createTextVNode(" 请输入新的内容名称 ")])),_:1})]),_:1}),createVNode(Xd,{modelValue:unref(yd),"onUpdate:modelValue":jd[3]||(jd[3]=yh=>isRef(yd)?yd.value=yh:null)},null,8,["modelValue"]),createVNode(Jd,null,{default:withCtx(()=>[createVNode(Gd,{variant:"outline",onClick:jd[4]||(jd[4]=yh=>gd.value=!1)},{default:withCtx(()=>jd[17]||(jd[17]=[createTextVNode(" 取消 ")])),_:1}),createVNode(Gd,{onClick:jd[5]||(jd[5]=yh=>Cd())},{default:withCtx(()=>jd[18]||(jd[18]=[createTextVNode(" 保存 ")])),_:1})]),_:1})]),_:1})]),_:1},8,["open"]),createVNode(Sh,{open:unref(wd),"onUpdate:open":jd[8]||(jd[8]=yh=>isRef(wd)?wd.value=yh:null)},{default:withCtx(()=>[createVNode(sh,null,{default:withCtx(()=>[createVNode(Of,null,{default:withCtx(()=>[createVNode(Af,null,{default:withCtx(()=>jd[19]||(jd[19]=[createTextVNode("提示")])),_:1}),createVNode(Df,null,{default:withCtx(()=>jd[20]||(jd[20]=[createTextVNode(" 此操作将删除该内容,是否继续? ")])),_:1})]),_:1}),createVNode(Ff,null,{default:withCtx(()=>[createVNode(Cf,null,{default:withCtx(()=>jd[21]||(jd[21]=[createTextVNode("取消")])),_:1}),createVNode(If,{onClick:jd[7]||(jd[7]=yh=>Ld())},{default:withCtx(()=>jd[22]||(jd[22]=[createTextVNode(" 确认 ")])),_:1})]),_:1})]),_:1})]),_:1},8,["open"])],2)],2)}}}),_hoisted_1$5={class:"mt-4"},_hoisted_2$3={key:0,class:"py-4 text-center"},_hoisted_3$3={key:1,class:"max-h-[400px] flex flex-col overflow-y-auto"},_hoisted_4$3={class:"mb-2 flex items-center gap-2"},_hoisted_5$2=["src"],_hoisted_6$2=["href"],_sfc_main$B=defineComponent({__name:"PostTaskDialog",props:{post:{},open:{type:Boolean}},emits:["update:open"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=computed({get:()=>ud.open,set:vd=>dd("update:open",vd)}),md=ref$1(null),gd=ref$1(!1);async function yd(){var vd;if(ud.post)try{(vd=window.$syncer)==null||vd.addTask({post:{title:ud.post.title,content:ud.post.content,markdown:ud.post.markdown,thumb:ud.post.thumb,desc:ud.post.desc},accounts:ud.post.accounts.filter(Cd=>Cd.checked)},Cd=>{md.value=Cd},()=>{gd.value=!1})}catch(Cd){console.error("发布失败:",Cd)}}return watch(()=>ud.open,vd=>{vd&&yd()}),(vd,Cd)=>(openBlock(),createBlock(unref(_sfc_main$1h),{open:unref(hd),"onUpdate:open":Cd[0]||(Cd[0]=wd=>isRef(hd)?hd.value=wd:null)},{default:withCtx(()=>[createVNode(unref(_sfc_main$1g),null,{default:withCtx(()=>{var wd;return[createVNode(unref(_sfc_main$17),null,{default:withCtx(()=>[createVNode(unref(_sfc_main$16),null,{default:withCtx(()=>Cd[1]||(Cd[1]=[createTextVNode("提交发布任务")])),_:1})]),_:1}),createBaseVNode("div",_hoisted_1$5,[unref(md)?(openBlock(),createElementBlock("div",_hoisted_3$3,[(openBlock(!0),createElementBlock(Fragment,null,renderList((wd=unref(md))==null?void 0:wd.accounts,Nd=>(openBlock(),createElementBlock("div",{key:Nd.uid+Nd.displayName,class:"border-b py-4 last:border-b-0"},[createBaseVNode("div",_hoisted_4$3,[Nd.icon?(openBlock(),createElementBlock("img",{key:0,src:Nd.icon,class:"object-cover h-5 w-5",alt:""},null,8,_hoisted_5$2)):createCommentVNode("",!0),createBaseVNode("span",null,toDisplayString(Nd.title)+" - "+toDisplayString(Nd.displayName||Nd.home),1)]),createBaseVNode("div",{class:normalizeClass(["w-full flex-1 gap-2 overflow-auto pl-7 text-sm",{"text-yellow-600":Nd.status==="uploading","text-red-600":Nd.status==="failed","text-green-600":Nd.status==="done"}])},[Nd.status==="uploading"?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(Nd.msg||"发布中"),1)],64)):createCommentVNode("",!0),Nd.status==="failed"?(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(" 同步失败, 错误内容:"+toDisplayString(Nd.error),1)],64)):createCommentVNode("",!0),Nd.status==="done"&&Nd.editResp?(openBlock(),createElementBlock(Fragment,{key:2},[Cd[2]||(Cd[2]=createTextVNode(" 同步成功 ")),Nd.type!=="wordpress"&&Nd.editResp?(openBlock(),createElementBlock("a",{key:0,href:Nd.editResp.draftLink,class:"ml-2 text-blue-500 hover:underline",referrerPolicy:"no-referrer",target:"_blank"},"查看草稿",8,_hoisted_6$2)):createCommentVNode("",!0)],64)):createCommentVNode("",!0)],2)]))),128))])):(openBlock(),createElementBlock("div",_hoisted_2$3," 等待发布.. "))])]}),_:1})]),_:1},8,["open"]))}}),__unplugin_components_13=_export_sfc(_sfc_main$B,[["__scopeId","data-v-3407b3ac"]]),_sfc_main$A=defineComponent({__name:"Textarea",props:{class:{},defaultValue:{},modelValue:{}},setup(Ra,{emit:ed}){const ud=Ra,hd=useVModel$1(ud,"modelValue",ed,{passive:!0,defaultValue:ud.defaultValue});return(md,gd)=>withDirectives((openBlock(),createElementBlock("textarea",{"onUpdate:modelValue":gd[0]||(gd[0]=yd=>isRef(hd)?hd.value=yd:null),class:normalizeClass(unref(cn$4)("flex min-h-20 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",ud.class))},null,2)),[[vModelText,unref(hd)]])}}),_sfc_main$z=defineComponent({__name:"AlertDescription",props:{class:{}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(cn$4)("text-sm [&_p]:leading-relaxed",ed.class))},[renderSlot(ud.$slots,"default")],2))}}),_sfc_main$y=defineComponent({__name:"AlertTitle",props:{class:{}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createElementBlock("h5",{class:normalizeClass(unref(cn$4)("mb-1 font-medium leading-none tracking-tight",ed.class))},[renderSlot(ud.$slots,"default")],2))}}),alertVariants=cva("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),_sfc_main$x=defineComponent({__name:"Alert",props:{class:{},variant:{}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(cn$4)(unref(alertVariants)({variant:ud.variant}),ed.class)),role:"alert"},[renderSlot(ud.$slots,"default")],2))}}),_hoisted_1$4={class:"w-full flex items-center gap-4"},_hoisted_2$2={class:"w-full flex items-center gap-4"},_hoisted_3$2={class:"w-full flex items-start gap-4"},_hoisted_4$2={class:"w-full flex items-start gap-4"},_hoisted_5$1={class:"flex flex-1 flex-col gap-2"},_hoisted_6$1={class:"flex flex-row items-center gap-4"},_hoisted_7={class:"flex items-center gap-2 text-sm"},_hoisted_8=["src"],_sfc_main$w=defineComponent({__name:"PostInfo",setup(Ra){const ed=useStore(),{output:ud,editor:dd}=storeToRefs(ed),hd=ref$1(!1),md=ref$1(!1),gd=ref$1([]),yd=ref$1(!1),vd=ref$1({title:"",desc:"",thumb:"",content:"",markdown:"",accounts:[]}),Cd=computed(()=>md.value&&vd.value.accounts.some(Gd=>Gd.checked));async function wd(){var zd,qd;md.value&&gd.value.length===0&&await Nd();let Gd={thumb:"",title:"",desc:"",content:"",markdown:"",accounts:[]};const Yd=gd.value.filter(Wd=>!["weixin","ipfs"].includes(Wd.type));try{Gd={thumb:((zd=document.querySelector("#output img"))==null?void 0:zd.src)??"",title:[1,2,3,4,5,6].map(Wd=>document.querySelector(`#output h${Wd}`)).filter(Wd=>Wd)[0].textContent??"",desc:document.querySelector("#output p").textContent??"",content:ud.value,markdown:((qd=dd.value)==null?void 0:qd.getValue())??"",accounts:Yd}}catch(Wd){console.log("error",Wd)}finally{vd.value={...Gd}}}async function Nd(){return new Promise(Gd=>{var Yd;(Yd=window.$syncer)==null||Yd.getAccounts(zd=>{gd.value=zd.map(qd=>({...qd,checked:!0})),Gd()})})}function Ld(){vd.value.accounts=vd.value.accounts.filter(Gd=>Gd.checked),yd.value=!0,hd.value=!1}function Ud(Gd){Gd||(hd.value=!1)}function jd(){if(window.$syncer!==void 0){md.value=!0;return}let Gd=0;const Yd=setInterval(async()=>{if(window.$syncer!==void 0){md.value=!0,await Nd(),clearInterval(Yd);return}Gd++,Gd>10&&clearInterval(Yd)},500)}return onBeforeMount(()=>{jd()}),(Gd,Yd)=>{const zd=_sfc_main$1o,qd=_sfc_main$D,Wd=_sfc_main$16,Xd=_sfc_main$17,Jd=_sfc_main$y,Zd=_sfc_main$z,mf=_sfc_main$x,xf=_sfc_main$18,_f=_sfc_main$1e,vf=_sfc_main$A,gf=_sfc_main$1f,Af=_sfc_main$1g,Df=_sfc_main$1h,Of=__unplugin_components_13;return openBlock(),createElementBlock(Fragment,null,[createVNode(Df,{open:unref(hd),"onUpdate:open":[Yd[4]||(Yd[4]=Cf=>isRef(hd)?hd.value=Cf:null),Ud]},{default:withCtx(()=>[createVNode(qd,null,{default:withCtx(()=>[createVNode(zd,{variant:"outline",onClick:wd},{default:withCtx(()=>Yd[6]||(Yd[6]=[createTextVNode(" 发布 ")])),_:1})]),_:1}),createVNode(Af,null,{default:withCtx(()=>[createVNode(Xd,null,{default:withCtx(()=>[createVNode(Wd,null,{default:withCtx(()=>Yd[7]||(Yd[7]=[createTextVNode("发布")])),_:1})]),_:1}),createVNode(mf,null,{default:withCtx(()=>[createVNode(unref(Info),{class:"h-4 w-4"}),createVNode(Jd,null,{default:withCtx(()=>Yd[8]||(Yd[8]=[createTextVNode("提示")])),_:1}),createVNode(Zd,null,{default:withCtx(()=>Yd[9]||(Yd[9]=[createTextVNode(" 此功能由第三方浏览器插件支持,本平台不保证安全性及同步准确度。 ")])),_:1})]),_:1}),unref(md)?createCommentVNode("",!0):(openBlock(),createBlock(mf,{key:0},{default:withCtx(()=>[createVNode(unref(Info),{class:"h-4 w-4"}),createVNode(Jd,null,{default:withCtx(()=>Yd[10]||(Yd[10]=[createTextVNode("未检测到插件")])),_:1}),createVNode(Zd,null,{default:withCtx(()=>[Yd[12]||(Yd[12]=createTextVNode(" 请安装 ")),createVNode(unref(O$4),{as:"a",class:"text-blue-500",href:"https://www.wechatsync.com/?utm_source=syncicon#install",target:"_blank"},{default:withCtx(()=>Yd[11]||(Yd[11]=[createTextVNode(" 文章同步助手 ")])),_:1}),Yd[13]||(Yd[13]=createTextVNode(" 插件 "))]),_:1})]),_:1})),createBaseVNode("div",_hoisted_1$4,[createVNode(xf,{for:"thumb",class:"w-10 text-end"},{default:withCtx(()=>Yd[14]||(Yd[14]=[createTextVNode(" 封面 ")])),_:1}),createVNode(_f,{id:"thumb",modelValue:unref(vd).thumb,"onUpdate:modelValue":Yd[0]||(Yd[0]=Cf=>unref(vd).thumb=Cf),placeholder:"自动提取第一张图"},null,8,["modelValue"])]),createBaseVNode("div",_hoisted_2$2,[createVNode(xf,{for:"title",class:"w-10 text-end"},{default:withCtx(()=>Yd[15]||(Yd[15]=[createTextVNode(" 标题 ")])),_:1}),createVNode(_f,{id:"title",modelValue:unref(vd).title,"onUpdate:modelValue":Yd[1]||(Yd[1]=Cf=>unref(vd).title=Cf),placeholder:"自动提取第一个标题"},null,8,["modelValue"])]),createBaseVNode("div",_hoisted_3$2,[createVNode(xf,{for:"desc",class:"w-10 text-end"},{default:withCtx(()=>Yd[16]||(Yd[16]=[createTextVNode(" 描述 ")])),_:1}),createVNode(vf,{id:"desc",modelValue:unref(vd).desc,"onUpdate:modelValue":Yd[2]||(Yd[2]=Cf=>unref(vd).desc=Cf),placeholder:"自动提取第一个段落"},null,8,["modelValue"])]),createBaseVNode("div",_hoisted_4$2,[createVNode(xf,{class:"w-10 text-end"},{default:withCtx(()=>Yd[17]||(Yd[17]=[createTextVNode(" 账号 ")])),_:1}),createBaseVNode("div",_hoisted_5$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(vd).accounts,Cf=>(openBlock(),createElementBlock("div",{key:Cf.uid+Cf.displayName,class:"flex items-center gap-2"},[createBaseVNode("label",_hoisted_6$1,[createVNode(unref(Wv),{checked:Cf.checked,"onUpdate:checked":If=>Cf.checked=If,class:"bg-background hover:bg-muted h-[25px] w-[25px] flex appearance-none items-center justify-center border border-gray-200 rounded-[4px] outline-none"},{default:withCtx(()=>[createVNode(unref(jv),null,{default:withCtx(()=>[Cf.checked?(openBlock(),createBlock(unref(Check),{key:0,class:"h-4 w-4"})):createCommentVNode("",!0)]),_:2},1024)]),_:2},1032,["checked","onUpdate:checked"]),createBaseVNode("span",_hoisted_7,[createBaseVNode("img",{src:Cf.icon,alt:"",class:"inline-block h-[20px] w-[20px]"},null,8,_hoisted_8),createTextVNode(" "+toDisplayString(Cf.title)+" - "+toDisplayString(Cf.displayName??Cf.home),1)])])]))),128))])]),createVNode(gf,null,{default:withCtx(()=>[createVNode(zd,{variant:"outline",onClick:Yd[3]||(Yd[3]=Cf=>hd.value=!1)},{default:withCtx(()=>Yd[18]||(Yd[18]=[createTextVNode(" 取 消 ")])),_:1}),createVNode(zd,{disabled:!unref(Cd),onClick:Ld},{default:withCtx(()=>Yd[19]||(Yd[19]=[createTextVNode(" 确 定 ")])),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1},8,["open"]),createVNode(Of,{open:unref(yd),"onUpdate:open":Yd[5]||(Yd[5]=Cf=>isRef(yd)?yd.value=Cf:null),post:unref(vd)},null,8,["open","post"])],64)}}}),_sfc_main$v=defineComponent({__name:"DropdownMenuRadioGroup",props:{modelValue:{},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(Ra,{emit:ed}){const hd=Se$6(Ra,ed);return(md,gd)=>(openBlock(),createBlock(unref(Ch),normalizeProps(guardReactiveProps(unref(hd))),{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},16))}}),_hoisted_1$3={class:"absolute left-2 h-3.5 w-3.5 flex items-center justify-center"},_sfc_main$u=defineComponent({__name:"DropdownMenuRadioItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{}},emits:["select"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=computed(()=>{const{class:gd,...yd}=ud;return yd}),md=Se$6(hd,dd);return(gd,yd)=>(openBlock(),createBlock(unref(wh),mergeProps(unref(md),{class:unref(cn$4)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",ud.class)}),{default:withCtx(()=>[createBaseVNode("span",_hoisted_1$3,[createVNode(unref(gh),null,{default:withCtx(()=>[createVNode(unref(Circle),{class:"h-2 w-2 fill-current"})]),_:1})]),renderSlot(gd.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$t=defineComponent({__name:"Separator",props:{orientation:{},decorative:{type:Boolean},asChild:{type:Boolean},as:{},class:{},label:{}},setup(Ra){const ed=Ra,ud=computed(()=>{const{class:dd,...hd}=ed;return hd});return(dd,hd)=>(openBlock(),createBlock(unref(ap$3),mergeProps(ud.value,{class:unref(cn$4)("shrink-0 bg-border relative",ed.orientation==="vertical"?"w-px h-full":"h-px w-full",ed.class)}),{default:withCtx(()=>[ed.label?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(cn$4)("text-xs text-muted-foreground bg-background absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 flex justify-center items-center",ed.orientation==="vertical"?"w-[1px] px-1 py-2":"h-[1px] py-1 px-2"))},toDisplayString(ed.label),3)):createCommentVNode("",!0)]),_:1},16,["class"]))}}),_sfc_main$s=defineComponent({__name:"TooltipProvider",props:{delayDuration:{},skipDelayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createBlock(unref(Hg),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),_sfc_main$r=defineComponent({__name:"Tooltip",props:{defaultOpen:{type:Boolean},open:{type:Boolean},delayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},emits:["update:open"],setup(Ra,{emit:ed}){const hd=Se$6(Ra,ed);return(md,gd)=>(openBlock(),createBlock(unref(Wg),normalizeProps(guardReactiveProps(unref(hd))),{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},16))}}),_sfc_main$q=defineComponent({inheritAttrs:!1,__name:"TooltipContent",props:{forceMount:{type:Boolean},ariaLabel:{},asChild:{type:Boolean},as:{},side:{},sideOffset:{default:4},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},class:{}},emits:["escapeKeyDown","pointerDownOutside"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=computed(()=>{const{class:gd,...yd}=ud;return yd}),md=Se$6(hd,dd);return(gd,yd)=>(openBlock(),createBlock(unref(qg),null,{default:withCtx(()=>[createVNode(unref(Ug),mergeProps({...unref(md),...gd.$attrs},{class:unref(cn$4)("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",ud.class)}),{default:withCtx(()=>[renderSlot(gd.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),_sfc_main$p=defineComponent({__name:"TooltipTrigger",props:{asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createBlock(unref(jg),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),_sfc_main$o=defineComponent({__name:"Menubar",props:{modelValue:{},defaultValue:{},dir:{},loop:{type:Boolean},class:{}},emits:["update:modelValue"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=computed(()=>{const{class:gd,...yd}=ud;return yd}),md=Se$6(hd,dd);return(gd,yd)=>(openBlock(),createBlock(unref(Uh),mergeProps(unref(md),{class:unref(cn$4)("flex h-10 items-center gap-x-1 rounded-md border bg-background p-1",ud.class)}),{default:withCtx(()=>[renderSlot(gd.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$n=defineComponent({__name:"AboutDialog",props:{visible:{type:Boolean,default:!1}},emits:["close"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed;function hd(yd){yd||dd("close")}const md=[{label:"GitHub 仓库",url:"https://github.com/doocs/md"},{label:"Gitee 仓库",url:"https://gitee.com/doocs/md"},{label:"GitCode 仓库",url:"https://gitcode.com/doocs/md"}];function gd(yd){window.open(yd,"_blank")}return(yd,vd)=>{const Cd=_sfc_main$16,wd=_sfc_main$17,Nd=_sfc_main$1o,Ld=_sfc_main$1f,Ud=_sfc_main$1g,jd=_sfc_main$1h;return openBlock(),createBlock(jd,{open:ud.visible,"onUpdate:open":hd},{default:withCtx(()=>[createVNode(Ud,null,{default:withCtx(()=>[createVNode(wd,null,{default:withCtx(()=>[createVNode(Cd,null,{default:withCtx(()=>vd[0]||(vd[0]=[createTextVNode("关于")])),_:1})]),_:1}),vd[1]||(vd[1]=createBaseVNode("div",{class:"text-center"},[createBaseVNode("h3",null,"一款高度简洁的微信 Markdown 编辑器"),createBaseVNode("p",null,"扫码关注公众号 Doocs,原创技术内容第一时间推送!"),createBaseVNode("img",{class:"mx-auto my-5",src:"https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/md/images/1648303220922-7e14aefa-816e-44c1-8604-ade709ca1c69.png",alt:"Doocs Markdown 编辑器",style:{width:"40%"}})],-1)),createVNode(Ld,{class:"sm:justify-evenly"},{default:withCtx(()=>[(openBlock(),createElementBlock(Fragment,null,renderList(md,Gd=>createVNode(Nd,{key:Gd.url,onClick:Yd=>gd(Gd.url)},{default:withCtx(()=>[createTextVNode(toDisplayString(Gd.label),1)]),_:2},1032,["onClick"])),64))]),_:1})]),_:1})]),_:1},8,["open"])}}}),_sfc_main$m=defineComponent({__name:"MenubarMenu",props:{value:{}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createBlock(unref(Gh),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),_sfc_main$l=defineComponent({__name:"MenubarContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},side:{},sideOffset:{default:8},align:{default:"start"},alignOffset:{default:-4},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(Ra){const ed=Ra,ud=computed(()=>{const{class:hd,...md}=ed;return md}),dd=Ot$3(ud);return(hd,md)=>(openBlock(),createBlock(unref(Yh),null,{default:withCtx(()=>[createVNode(unref(Xh),mergeProps(unref(dd),{class:unref(cn$4)("z-50 min-w-48 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",ed.class)}),{default:withCtx(()=>[renderSlot(hd.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),_hoisted_1$2={class:"absolute left-2 h-3.5 w-3.5 flex items-center justify-center"},_sfc_main$k=defineComponent({__name:"MenubarCheckboxItem",props:{checked:{type:[Boolean,String]},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{}},emits:["select","update:checked"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=computed(()=>{const{class:gd,...yd}=ud;return yd}),md=Se$6(hd,dd);return(gd,yd)=>(openBlock(),createBlock(unref(ty),mergeProps(unref(md),{class:unref(cn$4)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",ud.class)}),{default:withCtx(()=>[createBaseVNode("span",_hoisted_1$2,[createVNode(unref(ay$1),null,{default:withCtx(()=>[createVNode(unref(Check),{class:"h-4 w-4"})]),_:1})]),renderSlot(gd.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$j=defineComponent({__name:"MenubarTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(Ra){const ed=Ra,ud=computed(()=>{const{class:hd,...md}=ed;return md}),dd=Ot$3(ud);return(hd,md)=>(openBlock(),createBlock(unref(qh),mergeProps(unref(dd),{class:unref(cn$4)("flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none hover:bg-accent focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",ed.class)}),{default:withCtx(()=>[renderSlot(hd.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$i=defineComponent({__name:"HelpDropdown",setup(Ra){const ed=ref$1(!1);return(ud,dd)=>{const hd=_sfc_main$j,md=_sfc_main$k,gd=_sfc_main$l,yd=_sfc_main$m,vd=_sfc_main$n;return openBlock(),createElementBlock(Fragment,null,[createVNode(yd,null,{default:withCtx(()=>[createVNode(hd,null,{default:withCtx(()=>dd[2]||(dd[2]=[createTextVNode(" 帮助 ")])),_:1}),createVNode(gd,{align:"start"},{default:withCtx(()=>[createVNode(md,{onClick:dd[0]||(dd[0]=Cd=>ed.value=!0)},{default:withCtx(()=>dd[3]||(dd[3]=[createBaseVNode("span",null,"关于",-1)])),_:1})]),_:1})]),_:1}),createVNode(vd,{visible:unref(ed),onClose:dd[1]||(dd[1]=Cd=>ed.value=!1)},null,8,["visible"])],64)}}}),_sfc_main$h=defineComponent({__name:"HoverCard",props:{defaultOpen:{type:Boolean},open:{type:Boolean},openDelay:{},closeDelay:{}},emits:["update:open"],setup(Ra,{emit:ed}){const hd=Se$6(Ra,ed);return(md,gd)=>(openBlock(),createBlock(unref(Rh),normalizeProps(guardReactiveProps(unref(hd))),{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},16))}}),_sfc_main$g=defineComponent({__name:"HoverCardContent",props:{forceMount:{type:Boolean},side:{},sideOffset:{default:4},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(Ra){const ed=Ra,ud=computed(()=>{const{class:hd,...md}=ed;return md}),dd=Ot$3(ud);return(hd,md)=>(openBlock(),createBlock(unref(Oh),null,{default:withCtx(()=>[createVNode(unref(kh),mergeProps(unref(dd),{class:unref(cn$4)("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",ed.class)}),{default:withCtx(()=>[renderSlot(hd.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),_sfc_main$f=defineComponent({__name:"HoverCardTrigger",props:{asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createBlock(unref(Ah),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),_sfc_main$e=defineComponent({__name:"MenubarSeparator",props:{asChild:{type:Boolean},as:{},class:{}},setup(Ra){const ed=Ra,ud=computed(()=>{const{class:hd,...md}=ed;return md}),dd=Ot$3(ud);return(hd,md)=>(openBlock(),createBlock(unref(ey),mergeProps({class:unref(cn$4)("-mx-1 my-1 h-px bg-muted",ed.class)},unref(dd)),null,16,["class"]))}}),_sfc_main$d=defineComponent({__name:"MenubarSub",props:{defaultOpen:{type:Boolean},open:{type:Boolean}},emits:["update:open"],setup(Ra,{emit:ed}){const hd=Se$6(Ra,ed);return(md,gd)=>(openBlock(),createBlock(unref(sy),normalizeProps(guardReactiveProps(unref(hd))),{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},16))}}),_sfc_main$c=defineComponent({__name:"MenubarSubContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},sideOffset:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=computed(()=>{const{class:gd,...yd}=ud;return yd}),md=Se$6(hd,dd);return(gd,yd)=>(openBlock(),createBlock(unref(Yh),null,{default:withCtx(()=>[createVNode(unref(ry),mergeProps(unref(md),{class:unref(cn$4)("z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",ud.class)}),{default:withCtx(()=>[renderSlot(gd.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),_sfc_main$b=defineComponent({__name:"DropdownMenuShortcut",props:{class:{}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(cn$4)("ml-auto text-xs tracking-widest opacity-60",ed.class))},[renderSlot(ud.$slots,"default")],2))}}),_sfc_main$a=defineComponent({__name:"MenubarSubTrigger",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{},inset:{type:Boolean}},setup(Ra){const ed=Ra,ud=computed(()=>{const{class:hd,...md}=ed;return md}),dd=Ot$3(ud);return(hd,md)=>(openBlock(),createBlock(unref(iy),mergeProps(unref(dd),{class:unref(cn$4)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",hd.inset&&"pl-8",ed.class)}),{default:withCtx(()=>[renderSlot(hd.$slots,"default"),createVNode(unref(ChevronRight),{class:"ml-auto h-4 w-4"})]),_:3},16,["class"]))}}),_sfc_main$9=defineComponent({__name:"StyleOptionMenu",props:{title:{},options:{},current:{},change:{type:Function}},setup(Ra){const ed=Ra;function ud(dd,hd){switch(dd){case"字体":return{fontFamily:hd};case"字号":return{fontSize:hd};case"主题色":return{color:hd};default:return{}}}return(dd,hd)=>{const md=_sfc_main$a,gd=_sfc_main$b,yd=_sfc_main$k,vd=_sfc_main$c,Cd=_sfc_main$d;return openBlock(),createBlock(Cd,null,{default:withCtx(()=>[createVNode(md,null,{default:withCtx(()=>[hd[0]||(hd[0]=createBaseVNode("span",{class:"mr-2 h-4 w-4"},null,-1)),createBaseVNode("span",null,toDisplayString(ed.title),1)]),_:1}),createVNode(vd,{class:"max-h-56 overflow-auto"},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(dd.options,({label:wd,value:Nd,desc:Ld})=>(openBlock(),createBlock(yd,{key:Nd,label:wd,"model-value":Nd,class:"w-50",checked:dd.current===Nd,onClick:Ud=>dd.change(Nd)},{default:withCtx(()=>[createTextVNode(toDisplayString(wd)+" ",1),createVNode(gd,{style:normalizeStyle(ud(dd.title,Nd))},{default:withCtx(()=>[createTextVNode(toDisplayString(Ld),1)]),_:2},1032,["style"])]),_:2},1032,["label","model-value","checked","onClick"]))),128))]),_:1})]),_:1})}}}),_sfc_main$8=defineComponent({__name:"StyleDropdown",setup(Ra){const ed=useStore(),{toggleShowCssEditor:ud}=useDisplayStore(),{theme:dd,fontFamily:hd,fontSize:md,primaryColor:gd,codeBlockTheme:yd,legend:vd,isMacCodeBlock:Cd,cssEditor:wd}=storeToRefs(ed),{resetStyleConfirm:Nd,themeChanged:Ld,fontChanged:Ud,sizeChanged:jd,colorChanged:Gd,codeBlockThemeChanged:Yd,legendChanged:zd,macCodeBlockChanged:qd}=ed,Wd=ref$1(null);function Xd(){var _f;(_f=Wd.value)==null||_f.show()}function Jd(){ud(),setTimeout(()=>{wd.value.refresh()},50)}const Zd=useTemplateRef("pickColorsContainer"),mf=ref$1("rgb"),xf=ref$1(["rgb","hex","hsl","hsv"]);return(_f,vf)=>{const gf=_sfc_main$j,Af=_sfc_main$9,Df=_sfc_main$e,Of=_sfc_main$f,Cf=_sfc_main$g,If=_sfc_main$h,Ff=_sfc_main$k,sh=_sfc_main$l,Sh=_sfc_main$m;return openBlock(),createBlock(Sh,null,{default:withCtx(()=>[createVNode(gf,null,{default:withCtx(()=>vf[1]||(vf[1]=[createTextVNode(" 样式 ")])),_:1}),createVNode(sh,{class:"w-56",align:"start"},{default:withCtx(()=>[createVNode(Af,{title:"主题",options:unref(themeOptions),current:unref(dd),change:unref(Ld)},null,8,["options","current","change"]),createVNode(Df),createVNode(Af,{title:"字体",options:unref(fontFamilyOptions),current:unref(hd),change:unref(Ud)},null,8,["options","current","change"]),createVNode(Af,{title:"字号",options:unref(fontSizeOptions),current:unref(md),change:unref(jd)},null,8,["options","current","change"]),createVNode(Af,{title:"主题色",options:unref(colorOptions),current:unref(gd),change:unref(Gd)},null,8,["options","current","change"]),createVNode(Af,{title:"代码块主题",options:unref(codeBlockThemeOptions),current:unref(yd),change:unref(Yd)},null,8,["options","current","change"]),createVNode(Af,{title:"图注格式",options:unref(legendOptions),current:unref(vd),change:unref(zd)},null,8,["options","current","change"]),createVNode(Df),createVNode(Ff,{onClick:withModifiers(Xd,["self","prevent"])},{default:withCtx(()=>[createVNode(If,{"open-delay":100},{default:withCtx(()=>[createVNode(Of,{class:"w-full flex"},{default:withCtx(()=>vf[2]||(vf[2]=[createTextVNode(" 自定义主题色 ")])),_:1}),createVNode(Cf,{side:"right",class:"w-min"},{default:withCtx(()=>[createBaseVNode("div",{ref_key:"pickColorsContainer",ref:Zd},[createVNode(unref(Re),{value:unref(gd),"onUpdate:value":vf[0]||(vf[0]=yh=>isRef(gd)?gd.value=yh:null),"show-alpha":"",format:unref(mf),"format-options":unref(xf),theme:unref(ed).isDark?"dark":"light","popup-container":unref(Zd),onChange:unref(ed).colorChanged},null,8,["value","format","format-options","theme","popup-container","onChange"])],512)]),_:1})]),_:1})]),_:1}),createVNode(Ff,{onClick:Jd},{default:withCtx(()=>vf[3]||(vf[3]=[createTextVNode(" 自定义 CSS ")])),_:1}),createVNode(Df),createVNode(Ff,{checked:unref(Cd),onClick:unref(qd)},{default:withCtx(()=>vf[4]||(vf[4]=[createTextVNode(" Mac 代码块 ")])),_:1},8,["checked","onClick"]),createVNode(Df),createVNode(Ff,{divided:"",onClick:unref(Nd)},{default:withCtx(()=>vf[5]||(vf[5]=[createTextVNode(" 重置 ")])),_:1},8,["onClick"])]),_:1})]),_:1})}}}),_sfc_main$7=defineComponent({__name:"MenubarItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{},inset:{type:Boolean}},emits:["select"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=computed(()=>{const{class:gd,...yd}=ud;return yd}),md=Se$6(hd,dd);return(gd,yd)=>(openBlock(),createBlock(unref(Jh),mergeProps(unref(md),{class:unref(cn$4)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",gd.inset&&"pl-8",ud.class)}),{default:withCtx(()=>[renderSlot(gd.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$6=defineComponent({__name:"EditDropdown",setup(Ra){const{toggleShowInsertFormDialog:ed,toggleShowUploadImgDialog:ud}=useDisplayStore();return(dd,hd)=>{const md=_sfc_main$j,gd=_sfc_main$7,yd=_sfc_main$l,vd=_sfc_main$m;return openBlock(),createBlock(vd,null,{default:withCtx(()=>[createVNode(md,null,{default:withCtx(()=>hd[2]||(hd[2]=[createTextVNode(" 编辑 ")])),_:1}),createVNode(yd,{align:"start"},{default:withCtx(()=>[createVNode(gd,{onClick:hd[0]||(hd[0]=Cd=>unref(ud)())},{default:withCtx(()=>[createVNode(unref(CloudUpload),{class:"mr-2 h-4 w-4"}),hd[3]||(hd[3]=createTextVNode(" 上传图片 "))]),_:1}),createVNode(gd,{onClick:hd[1]||(hd[1]=Cd=>unref(ed)())},{default:withCtx(()=>[createVNode(unref(Table),{class:"mr-2 h-4 w-4"}),hd[4]||(hd[4]=createTextVNode(" 插入表格 "))]),_:1})]),_:1})]),_:1})}}}),_sfc_main$5=defineComponent({__name:"MenubarShortcut",props:{class:{}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(cn$4)("ml-auto text-xs tracking-widest text-muted-foreground",ed.class))},[renderSlot(ud.$slots,"default")],2))}}),_sfc_main$4=defineComponent({__name:"FileDropdown",setup(Ra){const ed=useStore(),{isDark:ud,isEditOnLeft:dd}=storeToRefs(ed),{exportEditorContent2HTML:hd,exportEditorContent2MD:md,importMarkdownContent:gd}=ed;return(yd,vd)=>{const Cd=_sfc_main$j,wd=_sfc_main$7,Nd=_sfc_main$e,Ld=_sfc_main$k,Ud=_sfc_main$l,jd=_sfc_main$m;return openBlock(),createBlock(jd,null,{default:withCtx(()=>[createVNode(Cd,null,{default:withCtx(()=>vd[5]||(vd[5]=[createTextVNode(" 文件 ")])),_:1}),createVNode(Ud,{align:"start"},{default:withCtx(()=>[createVNode(wd,{onClick:vd[0]||(vd[0]=Gd=>unref(gd)())},{default:withCtx(()=>[createVNode(unref(Upload),{class:"mr-2 size-4"}),vd[6]||(vd[6]=createTextVNode(" 导入 .md "))]),_:1}),createVNode(wd,{onClick:vd[1]||(vd[1]=Gd=>unref(md)())},{default:withCtx(()=>[createVNode(unref(Download),{class:"mr-2 size-4"}),vd[7]||(vd[7]=createTextVNode(" 导出 .md "))]),_:1}),createVNode(wd,{onClick:vd[2]||(vd[2]=Gd=>unref(hd)())},{default:withCtx(()=>[createVNode(unref(FileCode),{class:"mr-2 size-4"}),vd[8]||(vd[8]=createTextVNode(" 导出 .html "))]),_:1}),createVNode(Nd),createVNode(Ld,{checked:unref(ud),"onUpdate:checked":vd[3]||(vd[3]=Gd=>isRef(ud)?ud.value=Gd:null)},{default:withCtx(()=>vd[9]||(vd[9]=[createTextVNode(" 深色模式 ")])),_:1},8,["checked"]),createVNode(Nd),createVNode(Ld,{checked:unref(dd),"onUpdate:checked":vd[4]||(vd[4]=Gd=>isRef(dd)?dd.value=Gd:null)},{default:withCtx(()=>vd[10]||(vd[10]=[createTextVNode(" 左侧编辑 ")])),_:1},8,["checked"])]),_:1})]),_:1})}}}),_sfc_main$3=defineComponent({__name:"Sonner",props:{invert:{type:Boolean},theme:{},position:{},hotkey:{},richColors:{type:Boolean},expand:{type:Boolean},duration:{},gap:{},visibleToasts:{},closeButton:{type:Boolean},toastOptions:{},class:{},style:{},offset:{},dir:{},icons:{},containerAriaLabel:{},pauseWhenPageIsHidden:{type:Boolean},cn:{type:Function}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createBlock(unref(Ve),mergeProps({class:"toaster group"},ed,{"toast-options":{classes:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}}}),null,16))}}),_hoisted_1$1={class:"header-container h-15 flex items-center justify-between px-5 dark:bg-[#191c20]"},_hoisted_2$1={class:"space-x-2 flex"},_hoisted_3$1={class:"space-x-2 flex"},_hoisted_4$1={class:"space-x-1 bg-background text-background-foreground mx-2 flex items-center border rounded-md"},_sfc_main$2=defineComponent({__name:"index",emits:["addFormat","formatContent","startCopy","endCopy"],setup(Ra,{emit:ed}){const ud=ed,dd=[{label:"加粗",kbd:[ctrlSign,"B"],emitArgs:["addFormat",`${ctrlKey}-B`]},{label:"斜体",kbd:[ctrlSign,"I"],emitArgs:["addFormat",`${ctrlKey}-I`]},{label:"删除线",kbd:[ctrlSign,"D"],emitArgs:["addFormat",`${ctrlKey}-D`]},{label:"超链接",kbd:[ctrlSign,"K"],emitArgs:["addFormat",`${ctrlKey}-K`]},{label:"行内代码",kbd:[ctrlSign,"E"],emitArgs:["addFormat",`${ctrlKey}-E`]},{label:"格式化",kbd:[altSign,shiftSign,"F"],emitArgs:["formatContent"]}],hd=useStore(),{isDark:md,isCiteStatus:gd,isCountStatus:yd,output:vd,primaryColor:Cd,isOpenPostSlider:wd}=storeToRefs(hd),{toggleDark:Nd,editorRefresh:Ld,citeStatusChanged:Ud,countStatusChanged:jd}=hd,Gd=useStorage(addPrefix("copyMode"),"txt"),Yd=ref$1(""),{copy:zd}=useClipboard({source:Yd});function qd(){ud("startCopy"),setTimeout(()=>{const Wd=md.value;Wd&&Nd(),nextTick$1(async()=>{processClipboardContent(Cd.value);const Xd=document.getElementById("output");Xd.focus(),window.getSelection().removeAllRanges();const Jd=Xd.innerHTML;if(Gd.value==="txt"){const Zd=document.createRange();Zd.setStartBefore(Xd.firstChild),Zd.setEndAfter(Xd.lastChild),window.getSelection().addRange(Zd),document.execCommand("copy"),window.getSelection().removeAllRanges()}Xd.innerHTML=vd.value,Wd&&nextTick$1(()=>Nd()),Gd.value==="html"&&await zd(Jd),Ke.success(Gd.value==="html"?"已复制 HTML 源码,请进行下一步操作。":"已复制渲染后的内容到剪贴板,可直接到公众号后台粘贴。"),Ld(),ud("endCopy")})},350)}return(Wd,Xd)=>{const Jd=_sfc_main$4,Zd=_sfc_main$j,mf=_sfc_main$5,xf=_sfc_main$k,_f=_sfc_main$e,vf=_sfc_main$l,gf=_sfc_main$m,Af=_sfc_main$6,Df=_sfc_main$8,Of=_sfc_main$i,Cf=_sfc_main$o,If=_sfc_main$1o,Ff=_sfc_main$p,sh=_sfc_main$q,Sh=_sfc_main$r,yh=_sfc_main$s,Mh=_sfc_main$t,lh=_sfc_main$E,rh=_sfc_main$u,mh=_sfc_main$v,xh=_sfc_main$G,Eh=_sfc_main$H,kf=_sfc_main$w;return openBlock(),createElementBlock("header",_hoisted_1$1,[createBaseVNode("div",_hoisted_2$1,[createVNode(Cf,{class:"menubar"},{default:withCtx(()=>[createVNode(Jd),createVNode(gf,null,{default:withCtx(()=>[createVNode(Zd,null,{default:withCtx(()=>Xd[7]||(Xd[7]=[createTextVNode(" 格式 ")])),_:1}),createVNode(vf,{class:"w-60",align:"start"},{default:withCtx(()=>[(openBlock(),createElementBlock(Fragment,null,renderList(dd,({label:Rf,kbd:_h,emitArgs:Ph})=>createVNode(xf,{key:Rf,onClick:sm=>Ph[0]==="addFormat"?Wd.$emit(Ph[0],Ph[1]):Wd.$emit(Ph[0])},{default:withCtx(()=>[createTextVNode(toDisplayString(Rf)+" ",1),createVNode(mf,null,{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(_h,sm=>(openBlock(),createElementBlock("kbd",{key:sm,class:"mx-1 bg-gray-2 dark:bg-stone-9"},toDisplayString(sm),1))),128))]),_:2},1024)]),_:2},1032,["onClick"])),64)),createVNode(_f),createVNode(xf,{checked:unref(gd),onClick:Xd[0]||(Xd[0]=Rf=>unref(Ud)())},{default:withCtx(()=>Xd[8]||(Xd[8]=[createTextVNode(" 微信外链转底部引用 ")])),_:1},8,["checked"]),createVNode(_f),createVNode(xf,{checked:unref(yd),onClick:Xd[1]||(Xd[1]=Rf=>unref(jd)())},{default:withCtx(()=>Xd[9]||(Xd[9]=[createTextVNode(" 统计字数和阅读时间 ")])),_:1},8,["checked"])]),_:1})]),_:1}),createVNode(Af),createVNode(Df),createVNode(Of)]),_:1})]),createBaseVNode("div",_hoisted_3$1,[createVNode(yh,{"delay-duration":200},{default:withCtx(()=>[createVNode(Sh,null,{default:withCtx(()=>[createVNode(Ff,{"as-child":""},{default:withCtx(()=>[createVNode(If,{variant:"outline",onClick:Xd[2]||(Xd[2]=Rf=>wd.value=!unref(wd))},{default:withCtx(()=>[withDirectives(createVNode(unref(PanelLeftOpen),{class:"size-4"},null,512),[[vShow,!unref(wd)]]),withDirectives(createVNode(unref(PanelLeftClose),{class:"size-4"},null,512),[[vShow,unref(wd)]])]),_:1})]),_:1}),createVNode(sh,{side:"left"},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(wd)?"关闭":"内容管理"),1)]),_:1})]),_:1})]),_:1}),createVNode(If,{variant:"outline",onClick:Xd[3]||(Xd[3]=Rf=>unref(Nd)())},{default:withCtx(()=>[withDirectives(createVNode(unref(Moon),{class:"size-4"},null,512),[[vShow,unref(md)]]),withDirectives(createVNode(unref(Sun),{class:"size-4"},null,512),[[vShow,!unref(md)]])]),_:1}),createBaseVNode("div",_hoisted_4$1,[createVNode(If,{variant:"ghost",class:"shadow-none",onClick:qd},{default:withCtx(()=>Xd[10]||(Xd[10]=[createTextVNode(" 复制 ")])),_:1}),createVNode(Mh,{orientation:"vertical",class:"h-5"}),createVNode(Eh,{modelValue:unref(Gd),"onUpdate:modelValue":Xd[5]||(Xd[5]=Rf=>isRef(Gd)?Gd.value=Rf:null)},{default:withCtx(()=>[createVNode(lh,{"as-child":""},{default:withCtx(()=>[createVNode(If,{variant:"ghost",class:"px-2 shadow-none"},{default:withCtx(()=>[createVNode(unref(ChevronDown),{class:"text-secondary-foreground h-4 w-4"})]),_:1})]),_:1}),createVNode(xh,{align:"end","align-offset":-5,class:"w-[200px]"},{default:withCtx(()=>[createVNode(mh,{modelValue:unref(Gd),"onUpdate:modelValue":Xd[4]||(Xd[4]=Rf=>isRef(Gd)?Gd.value=Rf:null)},{default:withCtx(()=>[createVNode(rh,{value:"txt"},{default:withCtx(()=>Xd[11]||(Xd[11]=[createTextVNode(" 公众号格式 ")])),_:1}),createVNode(rh,{value:"html"},{default:withCtx(()=>Xd[12]||(Xd[12]=[createTextVNode(" HTML 格式 ")])),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["modelValue"])]),createVNode(kf),createVNode(If,{variant:"outline",onClick:Xd[6]||(Xd[6]=Rf=>unref(hd).isOpenRightSlider=!unref(hd).isOpenRightSlider)},{default:withCtx(()=>[createVNode(unref(Settings),{class:"size-4"})]),_:1}),createVNode(unref(_sfc_main$3),{"rich-colors":"",position:"top-center"})])])}}}),__unplugin_components_0=_export_sfc(_sfc_main$2,[["__scopeId","data-v-9a6c5c36"]]);function bind(Ra,ed){return function(){return Ra.apply(ed,arguments)}}var define_process_default$7={};const{toString:toString$1}=Object.prototype,{getPrototypeOf}=Object,kindOf=(Ra=>ed=>{const ud=toString$1.call(ed);return Ra[ud]||(Ra[ud]=ud.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=Ra=>(Ra=Ra.toLowerCase(),ed=>kindOf(ed)===Ra),typeOfTest=Ra=>ed=>typeof ed===Ra,{isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(Ra){return Ra!==null&&!isUndefined(Ra)&&Ra.constructor!==null&&!isUndefined(Ra.constructor)&&isFunction$1(Ra.constructor.isBuffer)&&Ra.constructor.isBuffer(Ra)}const isArrayBuffer$2=kindOfTest("ArrayBuffer");function isArrayBufferView(Ra){let ed;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ed=ArrayBuffer.isView(Ra):ed=Ra&&Ra.buffer&&isArrayBuffer$2(Ra.buffer),ed}const isString$1=typeOfTest("string"),isFunction$1=typeOfTest("function"),isNumber$1=typeOfTest("number"),isObject$1=Ra=>Ra!==null&&typeof Ra=="object",isBoolean$1=Ra=>Ra===!0||Ra===!1,isPlainObject=Ra=>{if(kindOf(Ra)!=="object")return!1;const ed=getPrototypeOf(Ra);return(ed===null||ed===Object.prototype||Object.getPrototypeOf(ed)===null)&&!(Symbol.toStringTag in Ra)&&!(Symbol.iterator in Ra)},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=Ra=>isObject$1(Ra)&&isFunction$1(Ra.pipe),isFormData=Ra=>{let ed;return Ra&&(typeof FormData=="function"&&Ra instanceof FormData||isFunction$1(Ra.append)&&((ed=kindOf(Ra))==="formdata"||ed==="object"&&isFunction$1(Ra.toString)&&Ra.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream$3,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=Ra=>Ra.trim?Ra.trim():Ra.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(Ra,ed,{allOwnKeys:ud=!1}={}){if(Ra===null||typeof Ra>"u")return;let dd,hd;if(typeof Ra!="object"&&(Ra=[Ra]),isArray(Ra))for(dd=0,hd=Ra.length;dd0;)if(hd=ud[dd],ed===hd.toLowerCase())return hd;return null}const _global=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global$1,isContextDefined=Ra=>!isUndefined(Ra)&&Ra!==_global;function merge$1(){const{caseless:Ra}=isContextDefined(this)&&this||{},ed={},ud=(dd,hd)=>{const md=Ra&&findKey(ed,hd)||hd;isPlainObject(ed[md])&&isPlainObject(dd)?ed[md]=merge$1(ed[md],dd):isPlainObject(dd)?ed[md]=merge$1({},dd):isArray(dd)?ed[md]=dd.slice():ed[md]=dd};for(let dd=0,hd=arguments.length;dd(forEach(ed,(hd,md)=>{ud&&isFunction$1(hd)?Ra[md]=bind(hd,ud):Ra[md]=hd},{allOwnKeys:dd}),Ra),stripBOM=Ra=>(Ra.charCodeAt(0)===65279&&(Ra=Ra.slice(1)),Ra),inherits$1=(Ra,ed,ud,dd)=>{Ra.prototype=Object.create(ed.prototype,dd),Ra.prototype.constructor=Ra,Object.defineProperty(Ra,"super",{value:ed.prototype}),ud&&Object.assign(Ra.prototype,ud)},toFlatObject=(Ra,ed,ud,dd)=>{let hd,md,gd;const yd={};if(ed=ed||{},Ra==null)return ed;do{for(hd=Object.getOwnPropertyNames(Ra),md=hd.length;md-- >0;)gd=hd[md],(!dd||dd(gd,Ra,ed))&&!yd[gd]&&(ed[gd]=Ra[gd],yd[gd]=!0);Ra=ud!==!1&&getPrototypeOf(Ra)}while(Ra&&(!ud||ud(Ra,ed))&&Ra!==Object.prototype);return ed},endsWith=(Ra,ed,ud)=>{Ra=String(Ra),(ud===void 0||ud>Ra.length)&&(ud=Ra.length),ud-=ed.length;const dd=Ra.indexOf(ed,ud);return dd!==-1&&dd===ud},toArray$1=Ra=>{if(!Ra)return null;if(isArray(Ra))return Ra;let ed=Ra.length;if(!isNumber$1(ed))return null;const ud=new Array(ed);for(;ed-- >0;)ud[ed]=Ra[ed];return ud},isTypedArray=(Ra=>ed=>Ra&&ed instanceof Ra)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=(Ra,ed)=>{const dd=(Ra&&Ra[Symbol.iterator]).call(Ra);let hd;for(;(hd=dd.next())&&!hd.done;){const md=hd.value;ed.call(Ra,md[0],md[1])}},matchAll=(Ra,ed)=>{let ud;const dd=[];for(;(ud=Ra.exec(ed))!==null;)dd.push(ud);return dd},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=Ra=>Ra.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(ud,dd,hd){return dd.toUpperCase()+hd}),hasOwnProperty$1=(({hasOwnProperty:Ra})=>(ed,ud)=>Ra.call(ed,ud))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(Ra,ed)=>{const ud=Object.getOwnPropertyDescriptors(Ra),dd={};forEach(ud,(hd,md)=>{let gd;(gd=ed(hd,md,Ra))!==!1&&(dd[md]=gd||hd)}),Object.defineProperties(Ra,dd)},freezeMethods=Ra=>{reduceDescriptors(Ra,(ed,ud)=>{if(isFunction$1(Ra)&&["arguments","caller","callee"].indexOf(ud)!==-1)return!1;const dd=Ra[ud];if(isFunction$1(dd)){if(ed.enumerable=!1,"writable"in ed){ed.writable=!1;return}ed.set||(ed.set=()=>{throw Error("Can not rewrite read-only method '"+ud+"'")})}})},toObjectSet=(Ra,ed)=>{const ud={},dd=hd=>{hd.forEach(md=>{ud[md]=!0})};return isArray(Ra)?dd(Ra):dd(String(Ra).split(ed)),ud},noop=()=>{},toFiniteNumber=(Ra,ed)=>Ra!=null&&Number.isFinite(Ra=+Ra)?Ra:ed;function isSpecCompliantForm(Ra){return!!(Ra&&isFunction$1(Ra.append)&&Ra[Symbol.toStringTag]==="FormData"&&Ra[Symbol.iterator])}const toJSONObject=Ra=>{const ed=new Array(10),ud=(dd,hd)=>{if(isObject$1(dd)){if(ed.indexOf(dd)>=0)return;if(!("toJSON"in dd)){ed[hd]=dd;const md=isArray(dd)?[]:{};return forEach(dd,(gd,yd)=>{const vd=ud(gd,hd+1);!isUndefined(vd)&&(md[yd]=vd)}),ed[hd]=void 0,md}}return dd};return ud(Ra,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=Ra=>Ra&&(isObject$1(Ra)||isFunction$1(Ra))&&isFunction$1(Ra.then)&&isFunction$1(Ra.catch),_setImmediate=((Ra,ed)=>Ra?setImmediate:ed?((ud,dd)=>(_global.addEventListener("message",({source:hd,data:md})=>{hd===_global&&md===ud&&dd.length&&dd.shift()()},!1),hd=>{dd.push(hd),_global.postMessage(ud,"*")}))(`axios@${Math.random()}`,[]):ud=>setTimeout(ud))(typeof setImmediate=="function",isFunction$1(_global.postMessage)),asap=typeof queueMicrotask<"u"?queueMicrotask.bind(_global):typeof define_process_default$7<"u"&&define_process_default$7.nextTick||_setImmediate,utils$2={isArray,isArrayBuffer:isArrayBuffer$2,isBuffer,isFormData,isArrayBufferView,isString:isString$1,isNumber:isNumber$1,isBoolean:isBoolean$1,isObject:isObject$1,isPlainObject,isReadableStream:isReadableStream$3,isRequest,isResponse,isHeaders,isUndefined,isDate,isFile,isBlob,isRegExp,isFunction:isFunction$1,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge:merge$1,extend,trim,stripBOM,inherits:inherits$1,toFlatObject,kindOf,kindOfTest,endsWith,toArray:toArray$1,forEachEntry,matchAll,isHTMLForm,hasOwnProperty:hasOwnProperty$1,hasOwnProp:hasOwnProperty$1,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop,toFiniteNumber,findKey,global:_global,isContextDefined,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable,setImmediate:_setImmediate,asap};function AxiosError$1(Ra,ed,ud,dd,hd){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=Ra,this.name="AxiosError",ed&&(this.code=ed),ud&&(this.config=ud),dd&&(this.request=dd),hd&&(this.response=hd,this.status=hd.status?hd.status:null)}utils$2.inherits(AxiosError$1,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$2.toJSONObject(this.config),code:this.code,status:this.status}}});const prototype$1=AxiosError$1.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(Ra=>{descriptors[Ra]={value:Ra}});Object.defineProperties(AxiosError$1,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError$1.from=(Ra,ed,ud,dd,hd,md)=>{const gd=Object.create(prototype$1);return utils$2.toFlatObject(Ra,gd,function(vd){return vd!==Error.prototype},yd=>yd!=="isAxiosError"),AxiosError$1.call(gd,Ra.message,ed,ud,dd,hd),gd.cause=Ra,gd.name=Ra.name,md&&Object.assign(gd,md),gd};const httpAdapter=null;function isVisitable(Ra){return utils$2.isPlainObject(Ra)||utils$2.isArray(Ra)}function removeBrackets(Ra){return utils$2.endsWith(Ra,"[]")?Ra.slice(0,-2):Ra}function renderKey(Ra,ed,ud){return Ra?Ra.concat(ed).map(function(hd,md){return hd=removeBrackets(hd),!ud&&md?"["+hd+"]":hd}).join(ud?".":""):ed}function isFlatArray(Ra){return utils$2.isArray(Ra)&&!Ra.some(isVisitable)}const predicates=utils$2.toFlatObject(utils$2,{},null,function(ed){return/^is[A-Z]/.test(ed)});function toFormData$1(Ra,ed,ud){if(!utils$2.isObject(Ra))throw new TypeError("target must be an object");ed=ed||new FormData,ud=utils$2.toFlatObject(ud,{metaTokens:!0,dots:!1,indexes:!1},!1,function(Gd,Yd){return!utils$2.isUndefined(Yd[Gd])});const dd=ud.metaTokens,hd=ud.visitor||wd,md=ud.dots,gd=ud.indexes,vd=(ud.Blob||typeof Blob<"u"&&Blob)&&utils$2.isSpecCompliantForm(ed);if(!utils$2.isFunction(hd))throw new TypeError("visitor must be a function");function Cd(jd){if(jd===null)return"";if(utils$2.isDate(jd))return jd.toISOString();if(!vd&&utils$2.isBlob(jd))throw new AxiosError$1("Blob is not supported. Use a Buffer instead.");return utils$2.isArrayBuffer(jd)||utils$2.isTypedArray(jd)?vd&&typeof Blob=="function"?new Blob([jd]):Buffer$4.from(jd):jd}function wd(jd,Gd,Yd){let zd=jd;if(jd&&!Yd&&typeof jd=="object"){if(utils$2.endsWith(Gd,"{}"))Gd=dd?Gd:Gd.slice(0,-2),jd=JSON.stringify(jd);else if(utils$2.isArray(jd)&&isFlatArray(jd)||(utils$2.isFileList(jd)||utils$2.endsWith(Gd,"[]"))&&(zd=utils$2.toArray(jd)))return Gd=removeBrackets(Gd),zd.forEach(function(Wd,Xd){!(utils$2.isUndefined(Wd)||Wd===null)&&ed.append(gd===!0?renderKey([Gd],Xd,md):gd===null?Gd:Gd+"[]",Cd(Wd))}),!1}return isVisitable(jd)?!0:(ed.append(renderKey(Yd,Gd,md),Cd(jd)),!1)}const Nd=[],Ld=Object.assign(predicates,{defaultVisitor:wd,convertValue:Cd,isVisitable});function Ud(jd,Gd){if(!utils$2.isUndefined(jd)){if(Nd.indexOf(jd)!==-1)throw Error("Circular reference detected in "+Gd.join("."));Nd.push(jd),utils$2.forEach(jd,function(zd,qd){(!(utils$2.isUndefined(zd)||zd===null)&&hd.call(ed,zd,utils$2.isString(qd)?qd.trim():qd,Gd,Ld))===!0&&Ud(zd,Gd?Gd.concat(qd):[qd])}),Nd.pop()}}if(!utils$2.isObject(Ra))throw new TypeError("data must be an object");return Ud(Ra),ed}function encode$2(Ra){const ed={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(Ra).replace(/[!'()~]|%20|%00/g,function(dd){return ed[dd]})}function AxiosURLSearchParams(Ra,ed){this._pairs=[],Ra&&toFormData$1(Ra,this,ed)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function(ed,ud){this._pairs.push([ed,ud])};prototype.toString=function(ed){const ud=ed?function(dd){return ed.call(this,dd,encode$2)}:encode$2;return this._pairs.map(function(hd){return ud(hd[0])+"="+ud(hd[1])},"").join("&")};function encode$1(Ra){return encodeURIComponent(Ra).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(Ra,ed,ud){if(!ed)return Ra;const dd=ud&&ud.encode||encode$1;utils$2.isFunction(ud)&&(ud={serialize:ud});const hd=ud&&ud.serialize;let md;if(hd?md=hd(ed,ud):md=utils$2.isURLSearchParams(ed)?ed.toString():new AxiosURLSearchParams(ed,ud).toString(dd),md){const gd=Ra.indexOf("#");gd!==-1&&(Ra=Ra.slice(0,gd)),Ra+=(Ra.indexOf("?")===-1?"?":"&")+md}return Ra}class InterceptorManager{constructor(){this.handlers=[]}use(ed,ud,dd){return this.handlers.push({fulfilled:ed,rejected:ud,synchronous:dd?dd.synchronous:!1,runWhen:dd?dd.runWhen:null}),this.handlers.length-1}eject(ed){this.handlers[ed]&&(this.handlers[ed]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(ed){utils$2.forEach(this.handlers,function(dd){dd!==null&&ed(dd)})}}const transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv=typeof window<"u"&&typeof document<"u",_navigator=typeof navigator=="object"&&navigator||void 0,hasStandardBrowserEnv=hasBrowserEnv&&(!_navigator||["ReactNative","NativeScript","NS"].indexOf(_navigator.product)<0),hasStandardBrowserWebWorkerEnv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",origin=hasBrowserEnv&&window.location.href||"http://localhost",utils$1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv,navigator:_navigator,origin},Symbol.toStringTag,{value:"Module"})),platform={...utils$1,...platform$1};function toURLEncodedForm(Ra,ed){return toFormData$1(Ra,new platform.classes.URLSearchParams,Object.assign({visitor:function(ud,dd,hd,md){return platform.isNode&&utils$2.isBuffer(ud)?(this.append(dd,ud.toString("base64")),!1):md.defaultVisitor.apply(this,arguments)}},ed))}function parsePropPath(Ra){return utils$2.matchAll(/\w+|\[(\w*)]/g,Ra).map(ed=>ed[0]==="[]"?"":ed[1]||ed[0])}function arrayToObject(Ra){const ed={},ud=Object.keys(Ra);let dd;const hd=ud.length;let md;for(dd=0;dd=ud.length;return gd=!gd&&utils$2.isArray(hd)?hd.length:gd,vd?(utils$2.hasOwnProp(hd,gd)?hd[gd]=[hd[gd],dd]:hd[gd]=dd,!yd):((!hd[gd]||!utils$2.isObject(hd[gd]))&&(hd[gd]=[]),ed(ud,dd,hd[gd],md)&&utils$2.isArray(hd[gd])&&(hd[gd]=arrayToObject(hd[gd])),!yd)}if(utils$2.isFormData(Ra)&&utils$2.isFunction(Ra.entries)){const ud={};return utils$2.forEachEntry(Ra,(dd,hd)=>{ed(parsePropPath(dd),hd,ud,0)}),ud}return null}function stringifySafely(Ra,ed,ud){if(utils$2.isString(Ra))try{return(ed||JSON.parse)(Ra),utils$2.trim(Ra)}catch(dd){if(dd.name!=="SyntaxError")throw dd}return(ud||JSON.stringify)(Ra)}const defaults$1={transitional:transitionalDefaults,adapter:["xhr","http","fetch"],transformRequest:[function(ed,ud){const dd=ud.getContentType()||"",hd=dd.indexOf("application/json")>-1,md=utils$2.isObject(ed);if(md&&utils$2.isHTMLForm(ed)&&(ed=new FormData(ed)),utils$2.isFormData(ed))return hd?JSON.stringify(formDataToJSON(ed)):ed;if(utils$2.isArrayBuffer(ed)||utils$2.isBuffer(ed)||utils$2.isStream(ed)||utils$2.isFile(ed)||utils$2.isBlob(ed)||utils$2.isReadableStream(ed))return ed;if(utils$2.isArrayBufferView(ed))return ed.buffer;if(utils$2.isURLSearchParams(ed))return ud.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),ed.toString();let yd;if(md){if(dd.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(ed,this.formSerializer).toString();if((yd=utils$2.isFileList(ed))||dd.indexOf("multipart/form-data")>-1){const vd=this.env&&this.env.FormData;return toFormData$1(yd?{"files[]":ed}:ed,vd&&new vd,this.formSerializer)}}return md||hd?(ud.setContentType("application/json",!1),stringifySafely(ed)):ed}],transformResponse:[function(ed){const ud=this.transitional||defaults$1.transitional,dd=ud&&ud.forcedJSONParsing,hd=this.responseType==="json";if(utils$2.isResponse(ed)||utils$2.isReadableStream(ed))return ed;if(ed&&utils$2.isString(ed)&&(dd&&!this.responseType||hd)){const gd=!(ud&&ud.silentJSONParsing)&&hd;try{return JSON.parse(ed)}catch(yd){if(gd)throw yd.name==="SyntaxError"?AxiosError$1.from(yd,AxiosError$1.ERR_BAD_RESPONSE,this,null,this.response):yd}}return ed}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function(ed){return ed>=200&&ed<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$2.forEach(["delete","get","head","post","put","patch"],Ra=>{defaults$1.headers[Ra]={}});const ignoreDuplicateOf=utils$2.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=Ra=>{const ed={};let ud,dd,hd;return Ra&&Ra.split(` +`+(yd!==gd?`result of cast: ${yd}`:""))}return md}_cast(ed,ud){let dd=ed===void 0?ed:this.transforms.reduce((hd,md)=>md.call(this,hd,ed,this),ed);return dd===void 0&&(dd=this.getDefault(ud)),dd}_validate(ed,ud={},dd,hd){let{path:md,originalValue:gd=ed,strict:yd=this.spec.strict}=ud,vd=ed;yd||(vd=this._cast(vd,Object.assign({assert:!1},ud)));let Cd=[];for(let wd of Object.values(this.internalTests))wd&&Cd.push(wd);this.runTests({path:md,value:vd,originalValue:gd,options:ud,tests:Cd},dd,wd=>{if(wd.length)return hd(wd,vd);this.runTests({path:md,value:vd,originalValue:gd,options:ud,tests:this.tests},dd,hd)})}runTests(ed,ud,dd){let hd=!1,{tests:md,value:gd,originalValue:yd,path:vd,options:Cd}=ed,wd=Gd=>{hd||(hd=!0,ud(Gd,gd))},Nd=Gd=>{hd||(hd=!0,dd(Gd,gd))},Ld=md.length,Ud=[];if(!Ld)return Nd([]);let jd={value:gd,originalValue:yd,path:vd,options:Cd,schema:this};for(let Gd=0;Gdthis.resolve(wd)._validate(Cd,wd,Ld,Ud)}validate(ed,ud){var dd;let hd=this.resolve(Object.assign({},ud,{value:ed})),md=(dd=ud==null?void 0:ud.disableStackTrace)!=null?dd:hd.spec.disableStackTrace;return new Promise((gd,yd)=>hd._validate(ed,ud,(vd,Cd)=>{ValidationError.isError(vd)&&(vd.value=Cd),yd(vd)},(vd,Cd)=>{vd.length?yd(new ValidationError(vd,Cd,void 0,void 0,md)):gd(Cd)}))}validateSync(ed,ud){var dd;let hd=this.resolve(Object.assign({},ud,{value:ed})),md,gd=(dd=ud==null?void 0:ud.disableStackTrace)!=null?dd:hd.spec.disableStackTrace;return hd._validate(ed,Object.assign({},ud,{sync:!0}),(yd,vd)=>{throw ValidationError.isError(yd)&&(yd.value=vd),yd},(yd,vd)=>{if(yd.length)throw new ValidationError(yd,ed,void 0,void 0,gd);md=vd}),md}isValid(ed,ud){return this.validate(ed,ud).then(()=>!0,dd=>{if(ValidationError.isError(dd))return!1;throw dd})}isValidSync(ed,ud){try{return this.validateSync(ed,ud),!0}catch(dd){if(ValidationError.isError(dd))return!1;throw dd}}_getDefault(ed){let ud=this.spec.default;return ud==null?ud:typeof ud=="function"?ud.call(this,ed):clone(ud)}getDefault(ed){return this.resolve(ed||{})._getDefault(ed)}default(ed){return arguments.length===0?this._getDefault():this.clone({default:ed})}strict(ed=!0){return this.clone({strict:ed})}nullability(ed,ud){const dd=this.clone({nullable:ed});return dd.internalTests.nullable=createValidation({message:ud,name:"nullable",test(hd){return hd===null?this.schema.spec.nullable:!0}}),dd}optionality(ed,ud){const dd=this.clone({optional:ed});return dd.internalTests.optionality=createValidation({message:ud,name:"optionality",test(hd){return hd===void 0?this.schema.spec.optional:!0}}),dd}optional(){return this.optionality(!0)}defined(ed=mixed.defined){return this.optionality(!1,ed)}nullable(){return this.nullability(!0)}nonNullable(ed=mixed.notNull){return this.nullability(!1,ed)}required(ed=mixed.required){return this.clone().withMutation(ud=>ud.nonNullable(ed).defined(ed))}notRequired(){return this.clone().withMutation(ed=>ed.nullable().optional())}transform(ed){let ud=this.clone();return ud.transforms.push(ed),ud}test(...ed){let ud;if(ed.length===1?typeof ed[0]=="function"?ud={test:ed[0]}:ud=ed[0]:ed.length===2?ud={name:ed[0],test:ed[1]}:ud={name:ed[0],message:ed[1],test:ed[2]},ud.message===void 0&&(ud.message=mixed.default),typeof ud.test!="function")throw new TypeError("`test` is a required parameters");let dd=this.clone(),hd=createValidation(ud),md=ud.exclusive||ud.name&&dd.exclusiveTests[ud.name]===!0;if(ud.exclusive&&!ud.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return ud.name&&(dd.exclusiveTests[ud.name]=!!ud.exclusive),dd.tests=dd.tests.filter(gd=>!(gd.OPTIONS.name===ud.name&&(md||gd.OPTIONS.test===hd.OPTIONS.test))),dd.tests.push(hd),dd}when(ed,ud){!Array.isArray(ed)&&typeof ed!="string"&&(ud=ed,ed=".");let dd=this.clone(),hd=toArray$2(ed).map(md=>new Reference(md));return hd.forEach(md=>{md.isSibling&&dd.deps.push(md.key)}),dd.conditions.push(typeof ud=="function"?new Condition(hd,ud):Condition.fromOptions(hd,ud)),dd}typeError(ed){let ud=this.clone();return ud.internalTests.typeError=createValidation({message:ed,name:"typeError",skipAbsent:!0,test(dd){return this.schema._typeCheck(dd)?!0:this.createError({params:{type:this.schema.type}})}}),ud}oneOf(ed,ud=mixed.oneOf){let dd=this.clone();return ed.forEach(hd=>{dd._whitelist.add(hd),dd._blacklist.delete(hd)}),dd.internalTests.whiteList=createValidation({message:ud,name:"oneOf",skipAbsent:!0,test(hd){let md=this.schema._whitelist,gd=md.resolveAll(this.resolve);return gd.includes(hd)?!0:this.createError({params:{values:Array.from(md).join(", "),resolved:gd}})}}),dd}notOneOf(ed,ud=mixed.notOneOf){let dd=this.clone();return ed.forEach(hd=>{dd._blacklist.add(hd),dd._whitelist.delete(hd)}),dd.internalTests.blacklist=createValidation({message:ud,name:"notOneOf",test(hd){let md=this.schema._blacklist,gd=md.resolveAll(this.resolve);return gd.includes(hd)?this.createError({params:{values:Array.from(md).join(", "),resolved:gd}}):!0}}),dd}strip(ed=!0){let ud=this.clone();return ud.spec.strip=ed,ud}describe(ed){const ud=(ed?this.resolve(ed):this).clone(),{label:dd,meta:hd,optional:md,nullable:gd}=ud.spec;return{meta:hd,label:dd,optional:md,nullable:gd,default:ud.getDefault(ed),type:ud.type,oneOf:ud._whitelist.describe(),notOneOf:ud._blacklist.describe(),tests:ud.tests.map(vd=>({name:vd.OPTIONS.name,params:vd.OPTIONS.params})).filter((vd,Cd,wd)=>wd.findIndex(Nd=>Nd.name===vd.name)===Cd)}}}Schema.prototype.__isYupSchema__=!0;for(const Ra of["validate","validateSync"])Schema.prototype[`${Ra}At`]=function(ed,ud,dd={}){const{parent:hd,parentPath:md,schema:gd}=getIn(this,ed,ud,dd.context);return gd[Ra](hd&&hd[md],Object.assign({},dd,{parent:hd,path:ed}))};for(const Ra of["equals","is"])Schema.prototype[Ra]=Schema.prototype.oneOf;for(const Ra of["not","nope"])Schema.prototype[Ra]=Schema.prototype.notOneOf;function create$7(){return new BooleanSchema}class BooleanSchema extends Schema{constructor(){super({type:"boolean",check(ed){return ed instanceof Boolean&&(ed=ed.valueOf()),typeof ed=="boolean"}}),this.withMutation(()=>{this.transform((ed,ud,dd)=>{if(dd.spec.coerce&&!dd.isType(ed)){if(/^(true|1)$/i.test(String(ed)))return!0;if(/^(false|0)$/i.test(String(ed)))return!1}return ed})})}isTrue(ed=boolean.isValue){return this.test({message:ed,name:"is-value",exclusive:!0,params:{value:"true"},test(ud){return isAbsent(ud)||ud===!0}})}isFalse(ed=boolean.isValue){return this.test({message:ed,name:"is-value",exclusive:!0,params:{value:"false"},test(ud){return isAbsent(ud)||ud===!1}})}default(ed){return super.default(ed)}defined(ed){return super.defined(ed)}optional(){return super.optional()}required(ed){return super.required(ed)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(ed){return super.nonNullable(ed)}strip(ed){return super.strip(ed)}}create$7.prototype=BooleanSchema.prototype;const isoReg=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function parseIsoDate(Ra){const ed=parseDateStruct(Ra);if(!ed)return Date.parse?Date.parse(Ra):Number.NaN;if(ed.z===void 0&&ed.plusMinus===void 0)return new Date(ed.year,ed.month,ed.day,ed.hour,ed.minute,ed.second,ed.millisecond).valueOf();let ud=0;return ed.z!=="Z"&&ed.plusMinus!==void 0&&(ud=ed.hourOffset*60+ed.minuteOffset,ed.plusMinus==="+"&&(ud=0-ud)),Date.UTC(ed.year,ed.month,ed.day,ed.hour,ed.minute+ud,ed.second,ed.millisecond)}function parseDateStruct(Ra){var ed,ud;const dd=isoReg.exec(Ra);return dd?{year:toNumber$2(dd[1]),month:toNumber$2(dd[2],1)-1,day:toNumber$2(dd[3],1),hour:toNumber$2(dd[4]),minute:toNumber$2(dd[5]),second:toNumber$2(dd[6]),millisecond:dd[7]?toNumber$2(dd[7].substring(0,3)):0,precision:(ed=(ud=dd[7])==null?void 0:ud.length)!=null?ed:void 0,z:dd[8]||void 0,plusMinus:dd[9]||void 0,hourOffset:toNumber$2(dd[10]),minuteOffset:toNumber$2(dd[11])}:null}function toNumber$2(Ra,ed=0){return Number(Ra)||ed}let rEmail=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,rUrl=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,rUUID=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,yearMonthDay="^\\d{4}-\\d{2}-\\d{2}",hourMinuteSecond="\\d{2}:\\d{2}:\\d{2}",zOrOffset="(([+-]\\d{2}(:?\\d{2})?)|Z)",rIsoDateTime=new RegExp(`${yearMonthDay}T${hourMinuteSecond}(\\.\\d+)?${zOrOffset}$`),isTrimmed=Ra=>isAbsent(Ra)||Ra===Ra.trim(),objStringTag={}.toString();function create$6(){return new StringSchema}class StringSchema extends Schema{constructor(){super({type:"string",check(ed){return ed instanceof String&&(ed=ed.valueOf()),typeof ed=="string"}}),this.withMutation(()=>{this.transform((ed,ud,dd)=>{if(!dd.spec.coerce||dd.isType(ed)||Array.isArray(ed))return ed;const hd=ed!=null&&ed.toString?ed.toString():ed;return hd===objStringTag?ed:hd})})}required(ed){return super.required(ed).withMutation(ud=>ud.test({message:ed||mixed.required,name:"required",skipAbsent:!0,test:dd=>!!dd.length}))}notRequired(){return super.notRequired().withMutation(ed=>(ed.tests=ed.tests.filter(ud=>ud.OPTIONS.name!=="required"),ed))}length(ed,ud=string.length){return this.test({message:ud,name:"length",exclusive:!0,params:{length:ed},skipAbsent:!0,test(dd){return dd.length===this.resolve(ed)}})}min(ed,ud=string.min){return this.test({message:ud,name:"min",exclusive:!0,params:{min:ed},skipAbsent:!0,test(dd){return dd.length>=this.resolve(ed)}})}max(ed,ud=string.max){return this.test({name:"max",exclusive:!0,message:ud,params:{max:ed},skipAbsent:!0,test(dd){return dd.length<=this.resolve(ed)}})}matches(ed,ud){let dd=!1,hd,md;return ud&&(typeof ud=="object"?{excludeEmptyString:dd=!1,message:hd,name:md}=ud:hd=ud),this.test({name:md||"matches",message:hd||string.matches,params:{regex:ed},skipAbsent:!0,test:gd=>gd===""&&dd||gd.search(ed)!==-1})}email(ed=string.email){return this.matches(rEmail,{name:"email",message:ed,excludeEmptyString:!0})}url(ed=string.url){return this.matches(rUrl,{name:"url",message:ed,excludeEmptyString:!0})}uuid(ed=string.uuid){return this.matches(rUUID,{name:"uuid",message:ed,excludeEmptyString:!1})}datetime(ed){let ud="",dd,hd;return ed&&(typeof ed=="object"?{message:ud="",allowOffset:dd=!1,precision:hd=void 0}=ed:ud=ed),this.matches(rIsoDateTime,{name:"datetime",message:ud||string.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:ud||string.datetime_offset,params:{allowOffset:dd},skipAbsent:!0,test:md=>{if(!md||dd)return!0;const gd=parseDateStruct(md);return gd?!!gd.z:!1}}).test({name:"datetime_precision",message:ud||string.datetime_precision,params:{precision:hd},skipAbsent:!0,test:md=>{if(!md||hd==null)return!0;const gd=parseDateStruct(md);return gd?gd.precision===hd:!1}})}ensure(){return this.default("").transform(ed=>ed===null?"":ed)}trim(ed=string.trim){return this.transform(ud=>ud!=null?ud.trim():ud).test({message:ed,name:"trim",test:isTrimmed})}lowercase(ed=string.lowercase){return this.transform(ud=>isAbsent(ud)?ud:ud.toLowerCase()).test({message:ed,name:"string_case",exclusive:!0,skipAbsent:!0,test:ud=>isAbsent(ud)||ud===ud.toLowerCase()})}uppercase(ed=string.uppercase){return this.transform(ud=>isAbsent(ud)?ud:ud.toUpperCase()).test({message:ed,name:"string_case",exclusive:!0,skipAbsent:!0,test:ud=>isAbsent(ud)||ud===ud.toUpperCase()})}}create$6.prototype=StringSchema.prototype;let invalidDate=new Date(""),isDate$1=Ra=>Object.prototype.toString.call(Ra)==="[object Date]";class DateSchema extends Schema{constructor(){super({type:"date",check(ed){return isDate$1(ed)&&!isNaN(ed.getTime())}}),this.withMutation(()=>{this.transform((ed,ud,dd)=>!dd.spec.coerce||dd.isType(ed)||ed===null?ed:(ed=parseIsoDate(ed),isNaN(ed)?DateSchema.INVALID_DATE:new Date(ed)))})}prepareParam(ed,ud){let dd;if(Reference.isRef(ed))dd=ed;else{let hd=this.cast(ed);if(!this._typeCheck(hd))throw new TypeError(`\`${ud}\` must be a Date or a value that can be \`cast()\` to a Date`);dd=hd}return dd}min(ed,ud=date.min){let dd=this.prepareParam(ed,"min");return this.test({message:ud,name:"min",exclusive:!0,params:{min:ed},skipAbsent:!0,test(hd){return hd>=this.resolve(dd)}})}max(ed,ud=date.max){let dd=this.prepareParam(ed,"max");return this.test({message:ud,name:"max",exclusive:!0,params:{max:ed},skipAbsent:!0,test(hd){return hd<=this.resolve(dd)}})}}DateSchema.INVALID_DATE=invalidDate;function sortFields(Ra,ed=[]){let ud=[],dd=new Set,hd=new Set(ed.map(([gd,yd])=>`${gd}-${yd}`));function md(gd,yd){let vd=propertyExpr.split(gd)[0];dd.add(vd),hd.has(`${yd}-${vd}`)||ud.push([yd,vd])}for(const gd of Object.keys(Ra)){let yd=Ra[gd];dd.add(gd),Reference.isRef(yd)&&yd.isSibling?md(yd.path,gd):isSchema(yd)&&"deps"in yd&&yd.deps.forEach(vd=>md(vd,gd))}return toposort$1.array(Array.from(dd),ud).reverse()}function findIndex(Ra,ed){let ud=1/0;return Ra.some((dd,hd)=>{var md;if((md=ed.path)!=null&&md.includes(dd))return ud=hd,!0}),ud}function sortByKeyOrder(Ra){return(ed,ud)=>findIndex(Ra,ed)-findIndex(Ra,ud)}const parseJson=(Ra,ed,ud)=>{if(typeof Ra!="string")return Ra;let dd=Ra;try{dd=JSON.parse(Ra)}catch{}return ud.isType(dd)?dd:Ra};function deepPartial(Ra){if("fields"in Ra){const ed={};for(const[ud,dd]of Object.entries(Ra.fields))ed[ud]=deepPartial(dd);return Ra.setFields(ed)}if(Ra.type==="array"){const ed=Ra.optional();return ed.innerType&&(ed.innerType=deepPartial(ed.innerType)),ed}return Ra.type==="tuple"?Ra.optional().clone({types:Ra.spec.types.map(deepPartial)}):"optional"in Ra?Ra.optional():Ra}const deepHas=(Ra,ed)=>{const ud=[...propertyExpr.normalizePath(ed)];if(ud.length===1)return ud[0]in Ra;let dd=ud.pop(),hd=propertyExpr.getter(propertyExpr.join(ud),!0)(Ra);return!!(hd&&dd in hd)};let isObject$2=Ra=>Object.prototype.toString.call(Ra)==="[object Object]";function unknown(Ra,ed){let ud=Object.keys(Ra.fields);return Object.keys(ed).filter(dd=>ud.indexOf(dd)===-1)}const defaultSort=sortByKeyOrder([]);function create$3(Ra){return new ObjectSchema(Ra)}class ObjectSchema extends Schema{constructor(ed){super({type:"object",check(ud){return isObject$2(ud)||typeof ud=="function"}}),this.fields=Object.create(null),this._sortErrors=defaultSort,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{ed&&this.shape(ed)})}_cast(ed,ud={}){var dd;let hd=super._cast(ed,ud);if(hd===void 0)return this.getDefault(ud);if(!this._typeCheck(hd))return hd;let md=this.fields,gd=(dd=ud.stripUnknown)!=null?dd:this.spec.noUnknown,yd=[].concat(this._nodes,Object.keys(hd).filter(Nd=>!this._nodes.includes(Nd))),vd={},Cd=Object.assign({},ud,{parent:vd,__validating:ud.__validating||!1}),wd=!1;for(const Nd of yd){let Ld=md[Nd],Ud=Nd in hd;if(Ld){let jd,Gd=hd[Nd];Cd.path=(ud.path?`${ud.path}.`:"")+Nd,Ld=Ld.resolve({value:Gd,context:ud.context,parent:vd});let Yd=Ld instanceof Schema?Ld.spec:void 0,zd=Yd==null?void 0:Yd.strict;if(Yd!=null&&Yd.strip){wd=wd||Nd in hd;continue}jd=!ud.__validating||!zd?Ld.cast(hd[Nd],Cd):hd[Nd],jd!==void 0&&(vd[Nd]=jd)}else Ud&&!gd&&(vd[Nd]=hd[Nd]);(Ud!==Nd in vd||vd[Nd]!==hd[Nd])&&(wd=!0)}return wd?vd:hd}_validate(ed,ud={},dd,hd){let{from:md=[],originalValue:gd=ed,recursive:yd=this.spec.recursive}=ud;ud.from=[{schema:this,value:gd},...md],ud.__validating=!0,ud.originalValue=gd,super._validate(ed,ud,dd,(vd,Cd)=>{if(!yd||!isObject$2(Cd)){hd(vd,Cd);return}gd=gd||Cd;let wd=[];for(let Nd of this._nodes){let Ld=this.fields[Nd];!Ld||Reference.isRef(Ld)||wd.push(Ld.asNestedTest({options:ud,key:Nd,parent:Cd,parentPath:ud.path,originalParent:gd}))}this.runTests({tests:wd,value:Cd,originalValue:gd,options:ud},dd,Nd=>{hd(Nd.sort(this._sortErrors).concat(vd),Cd)})})}clone(ed){const ud=super.clone(ed);return ud.fields=Object.assign({},this.fields),ud._nodes=this._nodes,ud._excludedEdges=this._excludedEdges,ud._sortErrors=this._sortErrors,ud}concat(ed){let ud=super.concat(ed),dd=ud.fields;for(let[hd,md]of Object.entries(this.fields)){const gd=dd[hd];dd[hd]=gd===void 0?md:gd}return ud.withMutation(hd=>hd.setFields(dd,[...this._excludedEdges,...ed._excludedEdges]))}_getDefault(ed){if("default"in this.spec)return super._getDefault(ed);if(!this._nodes.length)return;let ud={};return this._nodes.forEach(dd=>{var hd;const md=this.fields[dd];let gd=ed;(hd=gd)!=null&&hd.value&&(gd=Object.assign({},gd,{parent:gd.value,value:gd.value[dd]})),ud[dd]=md&&"getDefault"in md?md.getDefault(gd):void 0}),ud}setFields(ed,ud){let dd=this.clone();return dd.fields=ed,dd._nodes=sortFields(ed,ud),dd._sortErrors=sortByKeyOrder(Object.keys(ed)),ud&&(dd._excludedEdges=ud),dd}shape(ed,ud=[]){return this.clone().withMutation(dd=>{let hd=dd._excludedEdges;return ud.length&&(Array.isArray(ud[0])||(ud=[ud]),hd=[...dd._excludedEdges,...ud]),dd.setFields(Object.assign(dd.fields,ed),hd)})}partial(){const ed={};for(const[ud,dd]of Object.entries(this.fields))ed[ud]="optional"in dd&&dd.optional instanceof Function?dd.optional():dd;return this.setFields(ed)}deepPartial(){return deepPartial(this)}pick(ed){const ud={};for(const dd of ed)this.fields[dd]&&(ud[dd]=this.fields[dd]);return this.setFields(ud,this._excludedEdges.filter(([dd,hd])=>ed.includes(dd)&&ed.includes(hd)))}omit(ed){const ud=[];for(const dd of Object.keys(this.fields))ed.includes(dd)||ud.push(dd);return this.pick(ud)}from(ed,ud,dd){let hd=propertyExpr.getter(ed,!0);return this.transform(md=>{if(!md)return md;let gd=md;return deepHas(md,ed)&&(gd=Object.assign({},md),dd||delete gd[ed],gd[ud]=hd(md)),gd})}json(){return this.transform(parseJson)}exact(ed){return this.test({name:"exact",exclusive:!0,message:ed||object.exact,test(ud){if(ud==null)return!0;const dd=unknown(this.schema,ud);return dd.length===0||this.createError({params:{properties:dd.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(ed=!0,ud=object.noUnknown){typeof ed!="boolean"&&(ud=ed,ed=!0);let dd=this.test({name:"noUnknown",exclusive:!0,message:ud,test(hd){if(hd==null)return!0;const md=unknown(this.schema,hd);return!ed||md.length===0||this.createError({params:{unknown:md.join(", ")}})}});return dd.spec.noUnknown=ed,dd}unknown(ed=!0,ud=object.noUnknown){return this.noUnknown(!ed,ud)}transformKeys(ed){return this.transform(ud=>{if(!ud)return ud;const dd={};for(const hd of Object.keys(ud))dd[ed(hd)]=ud[hd];return dd})}camelCase(){return this.transformKeys(tinyCase.camelCase)}snakeCase(){return this.transformKeys(tinyCase.snakeCase)}constantCase(){return this.transformKeys(ed=>tinyCase.snakeCase(ed).toUpperCase())}describe(ed){const ud=(ed?this.resolve(ed):this).clone(),dd=super.describe(ed);dd.fields={};for(const[md,gd]of Object.entries(ud.fields)){var hd;let yd=ed;(hd=yd)!=null&&hd.value&&(yd=Object.assign({},yd,{parent:yd.value,value:yd.value[md]})),dd.fields[md]=gd.describe(yd)}return dd}}create$3.prototype=ObjectSchema.prototype;const _hoisted_1$9={class:"flex flex-col items-start"},_hoisted_2$6={class:"flex flex-col items-start"},_sfc_main$S=defineComponent({__name:"UploadImgDialog",emits:["uploadImage"],setup(Ra,{emit:ed}){const ud=ed,dd=useDisplayStore(),hd=toTypedSchema(create$3({repo:create$6().required("GitHub 仓库不能为空"),branch:create$6().optional(),accessToken:create$6().required("GitHub Token 不能为空")})),md=ref$1(localStorage.getItem("githubConfig")?JSON.parse(localStorage.getItem("githubConfig")):{repo:"",branch:"",accessToken:""});function gd(Eh){localStorage.setItem("githubConfig",JSON.stringify(Eh)),md.value=Eh,Ke.success("保存成功")}const yd=toTypedSchema(create$3({accessKeyId:create$6().required("AccessKey ID 不能为空"),accessKeySecret:create$6().required("AccessKey Secret 不能为空"),bucket:create$6().required("Bucket 不能为空"),region:create$6().required("Region 不能为空"),useSSL:create$7().required(),cdnHost:create$6().optional(),path:create$6().optional()})),vd=ref$1(localStorage.getItem("aliOSSConfig")?JSON.parse(localStorage.getItem("aliOSSConfig")):{accessKeyId:"",accessKeySecret:"",bucket:"",region:"",useSSL:!0,cdnHost:"",path:""});function Cd(Eh){localStorage.setItem("aliOSSConfig",JSON.stringify(Eh)),vd.value=Eh,Ke.success("保存成功")}const wd=toTypedSchema(create$3({secretId:create$6().required("Secret ID 不能为空"),secretKey:create$6().required("Secret Key 不能为空"),bucket:create$6().required("Bucket 不能为空"),region:create$6().required("Region 不能为空"),cdnHost:create$6().optional(),path:create$6().optional()})),Nd=ref$1(localStorage.getItem("txCOSConfig")?JSON.parse(localStorage.getItem("txCOSConfig")):{secretId:"",secretKey:"",bucket:"",region:"",cdnHost:"",path:""});function Ld(Eh){localStorage.setItem("txCOSConfig",JSON.stringify(Eh)),Nd.value=Eh,Ke.success("保存成功")}const Ud=toTypedSchema(create$3({accessKey:create$6().required("AccessKey 不能为空"),secretKey:create$6().required("SecretKey 不能为空"),bucket:create$6().required("Bucket 不能为空"),domain:create$6().required("Bucket 对应域名不能为空"),region:create$6().optional(),path:create$6().optional()})),jd=ref$1(localStorage.getItem("qiniuConfig")?JSON.parse(localStorage.getItem("qiniuConfig")):{accessKey:"",secretKey:"",bucket:"",domain:"",region:"",path:""});function Gd(Eh){localStorage.setItem("qiniuConfig",JSON.stringify(Eh)),jd.value=Eh,Ke.success("保存成功")}const Yd=toTypedSchema(create$3({endpoint:create$6().required("Endpoint 不能为空"),port:create$6().optional(),useSSL:create$7().required(),bucket:create$6().required("Bucket 不能为空"),accessKey:create$6().required("AccessKey 不能为空"),secretKey:create$6().required("SecretKey 不能为空")})),zd=ref$1(localStorage.getItem("minioConfig")?JSON.parse(localStorage.getItem("minioConfig")):{endpoint:"",port:"",useSSL:!0,bucket:"",accessKey:"",secretKey:""});function qd(Eh){localStorage.setItem("minioConfig",JSON.stringify(Eh)),zd.value=Eh,Ke.success("保存成功")}const Wd=ref$1(window.location.href.startsWith("http")),Xd=toTypedSchema(create$3({proxyOrigin:Wd.value?create$6().required("代理域名不能为空"):create$6().optional(),appID:create$6().required("AppID 不能为空"),appsecret:create$6().required("AppSecret 不能为空")})),Jd=ref$1(localStorage.getItem("mpConfig")?JSON.parse(localStorage.getItem("mpConfig")):{proxyOrigin:"",appID:"",appsecret:""});function Zd(Eh){localStorage.setItem("mpConfig",JSON.stringify(Eh)),Jd.value=Eh,Ke.success("保存成功")}const mf=toTypedSchema(create$3({accountId:create$6().required("Account ID 不能为空"),accessKey:create$6().required("AccessKey 不能为空"),secretKey:create$6().required("SecretKey 不能为空"),bucket:create$6().required("Bucket 不能为空"),domain:create$6().required("Bucket 对应域名不能为空"),path:create$6().optional()})),xf=ref$1(localStorage.getItem("r2Config")?JSON.parse(localStorage.getItem("r2Config")):{accountId:"",accessKey:"",secretKey:"",bucket:"",domain:"",path:""});function _f(Eh){localStorage.setItem("r2Config",JSON.stringify(Eh)),xf.value=Eh,Ke.success("保存成功")}const vf=[{value:"default",label:"默认"},{value:"github",label:"GitHub"},{value:"aliOSS",label:"阿里云"},{value:"txCOS",label:"腾讯云"},{value:"qiniu",label:"七牛云"},{value:"minio",label:"MinIO"},{value:"mp",label:"公众号图床"},{value:"r2",label:"Cloudflare R2"},{value:"formCustom",label:"自定义代码"}],gf=ref$1("default"),Af=ref$1("upload");onBeforeMount(()=>{localStorage.getItem("imgHost")&&(gf.value=localStorage.getItem("imgHost"))});function Df(){localStorage.setItem("imgHost",gf.value),Ke.success("已成功切换图床")}function kf(Eh){const _h=checkImage(Eh);if(!_h.ok)return Ke.error(_h.msg||""),!1;let Mh=localStorage.getItem("imgHost");Mh=Mh||"default",localStorage.setItem("imgHost",Mh);const lh=localStorage.getItem(`${Mh}Config`);return Mh==="default"||lh?!0:(Ke.error(`请先配置 ${Mh} 图床参数`),!1)}const Cf=ref$1(!1),{open:If,onChange:Ff}=useFileDialog({accept:"image/*"});Ff(Eh=>{if(Eh==null)return;const _h=Eh[0];kf(_h)&&ud("uploadImage",_h)});function oh(Eh){Cf.value=!1,Eh.stopPropagation();const _h=Array.from(Eh.dataTransfer.files)[0];kf(_h)&&ud("uploadImage",_h)}return(Eh,_h)=>{const Mh=_sfc_main$16,lh=_sfc_main$17,rh=_sfc_main$T,mh=_sfc_main$U,xh=_sfc_main$W,Sh=_sfc_main$X,Of=_sfc_main$_,Rf=_sfc_main$V,yh=_sfc_main$$,Ph=_sfc_main$18,sm=_sfc_main$10,th=_sfc_main$1e,sh=__unplugin_components_12,Zh=_sfc_main$1o,Sm=_sfc_main$12,$h=_sfc_main$13,Vf=_sfc_main$14,nh=_sfc_main$1g,Lh=_sfc_main$1h;return openBlock(),createBlock(Lh,{open:unref(dd).isShowUploadImgDialog,"onUpdate:open":_h[6]||(_h[6]=Ih=>unref(dd).isShowUploadImgDialog=Ih)},{default:withCtx(()=>[createVNode(nh,{class:"max-w-max",onPointerDownOutside:_h[5]||(_h[5]=Ih=>Ih.preventDefault())},{default:withCtx(()=>[createVNode(lh,null,{default:withCtx(()=>[createVNode(Mh,null,{default:withCtx(()=>_h[7]||(_h[7]=[createTextVNode("本地上传")])),_:1})]),_:1}),createVNode(Vf,{modelValue:unref(Af),"onUpdate:modelValue":_h[4]||(_h[4]=Ih=>isRef(Af)?Af.value=Ih:null),class:"w-max"},{default:withCtx(()=>[createVNode(mh,null,{default:withCtx(()=>[createVNode(rh,{value:"upload"},{default:withCtx(()=>_h[8]||(_h[8]=[createTextVNode(" 选择上传 ")])),_:1}),(openBlock(!0),createElementBlock(Fragment,null,renderList(vf.filter(Ih=>Ih.value!=="default"),Ih=>(openBlock(),createBlock(rh,{key:Ih.value,value:Ih.value},{default:withCtx(()=>[createTextVNode(toDisplayString(Ih.label),1)]),_:2},1032,["value"]))),128))]),_:1}),createVNode(sm,{value:"upload"},{default:withCtx(()=>[createVNode(Ph,null,{default:withCtx(()=>[_h[9]||(_h[9]=createBaseVNode("span",{class:"my-4 block"}," 图床 ",-1)),createVNode(yh,{modelValue:unref(gf),"onUpdate:modelValue":[_h[0]||(_h[0]=Ih=>isRef(gf)?gf.value=Ih:null),Df]},{default:withCtx(()=>[createVNode(Sh,null,{default:withCtx(()=>[createVNode(xh,{placeholder:"请选择"})]),_:1}),createVNode(Rf,null,{default:withCtx(()=>[(openBlock(),createElementBlock(Fragment,null,renderList(vf,Ih=>createVNode(Of,{key:Ih.value,label:Ih.label,value:Ih.value},{default:withCtx(()=>[createTextVNode(toDisplayString(Ih.label),1)]),_:2},1032,["label","value"])),64))]),_:1})]),_:1},8,["modelValue"])]),_:1}),createBaseVNode("div",{class:normalizeClass(["bg-clip-padding mt-4 h-50 flex flex-col cursor-pointer items-center justify-evenly border-2 rounded border-dashed transition-colors hover:border-gray-700 hover:bg-gray-400/50 dark:hover:border-gray-200 dark:hover:bg-gray-500/50",{"border-gray-700 bg-gray-400/50 dark:border-gray-200 dark:bg-gray-500/50":unref(Cf)}]),onClick:_h[1]||(_h[1]=Ih=>unref(If)()),onDrop:withModifiers(oh,["prevent"]),onDragover:_h[2]||(_h[2]=withModifiers(Ih=>Cf.value=!0,["prevent"])),onDragleave:_h[3]||(_h[3]=withModifiers(Ih=>Cf.value=!1,["prevent"]))},[createVNode(unref(CloudUpload),{class:"size-20"}),_h[10]||(_h[10]=createBaseVNode("p",null,[createTextVNode(" 将图片拖到此处,或 "),createBaseVNode("strong",null,"点击上传")],-1))],34)]),_:1}),createVNode(sm,{value:"github"},{default:withCtx(()=>[createVNode(unref(Form),{"validation-schema":unref(hd),"initial-values":unref(md),onSubmit:gd},{default:withCtx(()=>[createVNode(unref(Field),{name:"repo"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(sh,{label:"GitHub 仓库",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:github.com/yanglbme/resource"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"branch"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(sh,{label:"分支",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:release,可不填,默认 master"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"accessToken"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(sh,{label:"Token",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,type:"password",placeholder:"如:cc1d0c1426d0fd0902bd2d7184b14da61b8abc46"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(sh,null,{default:withCtx(()=>[createVNode(Zh,{variant:"link",class:"p-0",as:"a",href:"https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token",target:"_blank"},{default:withCtx(()=>_h[11]||(_h[11]=[createTextVNode(" 如何获取 GitHub Token? ")])),_:1})]),_:1}),createVNode(sh,null,{default:withCtx(()=>[createVNode(Zh,{type:"submit"},{default:withCtx(()=>_h[12]||(_h[12]=[createTextVNode(" 保存配置 ")])),_:1})]),_:1})]),_:1},8,["validation-schema","initial-values"])]),_:1}),createVNode(sm,{value:"aliOSS"},{default:withCtx(()=>[createVNode(unref(Form),{"validation-schema":unref(yd),"initial-values":unref(vd),onSubmit:Cd},{default:withCtx(()=>[createVNode(unref(Field),{name:"accessKeyId"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(sh,{label:"AccessKey ID",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:LTAI4GdoocsmdoxUf13ylbaNHk"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"accessKeySecret"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(sh,{label:"AccessKey Secret",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,type:"password",placeholder:"如:cc1d0c142doocs0902bd2d7md4b14da6ylbabc46"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"bucket"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(sh,{label:"Bucket",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:doocs"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"region"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(sh,{label:"Bucket 所在区域",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:oss-cn-shenzhen"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"useSSL",type:"boolean"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(sh,{label:"UseSSL",required:"",error:om},{default:withCtx(()=>[createVNode(Sm,{checked:Ih.value,name:Ih.name,"onUpdate:checked":Ih.onChange,onBlur:Ih.onBlur},null,8,["checked","name","onUpdate:checked","onBlur"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"cdnHost"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(sh,{label:"自定义 CDN 域名",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:https://imagecdn.alidaodao.com,可不填"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"path"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(sh,{label:"存储路径",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:img,可不填,默认为根目录"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(sh,null,{default:withCtx(()=>[createVNode(Zh,{variant:"link",class:"p-0",as:"a",href:"https://help.aliyun.com/document_detail/31883.html",target:"_blank"},{default:withCtx(()=>_h[13]||(_h[13]=[createTextVNode(" 如何使用阿里云 OSS? ")])),_:1})]),_:1}),createVNode(sh,null,{default:withCtx(()=>[createVNode(Zh,{type:"submit"},{default:withCtx(()=>_h[14]||(_h[14]=[createTextVNode(" 保存配置 ")])),_:1})]),_:1})]),_:1},8,["validation-schema","initial-values"])]),_:1}),createVNode(sm,{value:"txCOS"},{default:withCtx(()=>[createVNode(unref(Form),{"validation-schema":unref(wd),"initial-values":unref(Nd),onSubmit:Ld},{default:withCtx(()=>[createVNode(unref(Field),{name:"secretId"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(sh,{label:"SecretId",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:AKIDnQp1w3DOOCSs8F5MDp9tdoocsmdUPonW3"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"secretKey"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(sh,{label:"SecretKey",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,type:"password",placeholder:"如:ukLmdtEJ9271f3DOocsMDsCXdS3YlbW0"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"bucket"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(sh,{label:"Bucket",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:doocs-3212520134"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"region"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(sh,{label:"Bucket 所在区域",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:ap-guangzhou"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"cdnHost"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(sh,{label:"自定义 CDN 域名",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:https://imagecdn.alidaodao.com,可不填"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"path"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(sh,{label:"存储路径",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:img,可不填,默认根目录"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(sh,null,{default:withCtx(()=>[createVNode(Zh,{variant:"link",class:"p-0",as:"a",href:"https://cloud.tencent.com/document/product/436/38484",target:"_blank"},{default:withCtx(()=>_h[15]||(_h[15]=[createTextVNode(" 如何使用腾讯云 COS? ")])),_:1})]),_:1}),createVNode(sh,null,{default:withCtx(()=>[createVNode(Zh,{type:"submit"},{default:withCtx(()=>_h[16]||(_h[16]=[createTextVNode(" 保存配置 ")])),_:1})]),_:1})]),_:1},8,["validation-schema","initial-values"])]),_:1}),createVNode(sm,{value:"qiniu"},{default:withCtx(()=>[createVNode(unref(Form),{"validation-schema":unref(Ud),"initial-values":unref(jd),onSubmit:Gd},{default:withCtx(()=>[createVNode(unref(Field),{name:"accessKey"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(sh,{label:"AccessKey",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:6DD3VaLJ_SQgOdoocsyTV_YWaDmdnL2n8EGx7kG"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"secretKey"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(sh,{label:"SecretKey",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,type:"password",placeholder:"如:qgZa5qrvDOOcsmdKStD1oCjZ9nB7MDvJUs_34SIm"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"bucket"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(sh,{label:"Bucket",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:md"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"domain"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(sh,{label:"Bucket 对应域名",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:https://images.123ylb.cn"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"region"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(sh,{label:"存储区域",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:z2,可不填"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"path"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(sh,{label:"存储路径",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:img,可不填,默认为根目录"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(sh,null,{default:withCtx(()=>[createVNode(Zh,{variant:"link",class:"p-0",as:"a",href:"https://developer.qiniu.com/kodo",target:"_blank"},{default:withCtx(()=>_h[17]||(_h[17]=[createTextVNode(" 如何使用七牛云 Kodo? ")])),_:1})]),_:1}),createVNode(sh,null,{default:withCtx(()=>[createVNode(Zh,{type:"submit"},{default:withCtx(()=>_h[18]||(_h[18]=[createTextVNode(" 保存配置 ")])),_:1})]),_:1})]),_:1},8,["validation-schema","initial-values"])]),_:1}),createVNode(sm,{value:"minio"},{default:withCtx(()=>[createVNode(unref(Form),{"validation-schema":unref(Yd),"initial-values":unref(zd),onSubmit:qd},{default:withCtx(()=>[createVNode(unref(Field),{name:"endpoint"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(sh,{label:"Endpoint",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:play.min.io"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"port"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(sh,{label:"Port",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,type:"number",placeholder:"如:9000,可不填,http 默认为 80,https 默认为 443"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"useSSL",type:"boolean"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(sh,{label:"UseSSL",required:"",error:om},{default:withCtx(()=>[createVNode(Sm,{checked:Ih.value,name:Ih.name,"onUpdate:checked":Ih.onChange,onBlur:Ih.onBlur},null,8,["checked","name","onUpdate:checked","onBlur"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"bucket"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(sh,{label:"Bucket",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:doocs"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"accessKey"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(sh,{label:"AccessKey",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:zhangsan"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"secretKey"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(sh,{label:"SecretKey",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:asdasdasd"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(sh,null,{default:withCtx(()=>[createVNode(Zh,{variant:"link",class:"p-0",as:"a",href:"http://docs.minio.org.cn/docs/master/minio-client-complete-guide",target:"_blank"},{default:withCtx(()=>_h[19]||(_h[19]=[createTextVNode(" 如何使用 MinIO? ")])),_:1})]),_:1}),createVNode(sh,null,{default:withCtx(()=>[createVNode(Zh,{type:"submit"},{default:withCtx(()=>_h[20]||(_h[20]=[createTextVNode(" 保存配置 ")])),_:1})]),_:1})]),_:1},8,["validation-schema","initial-values"])]),_:1}),createVNode(sm,{value:"mp"},{default:withCtx(()=>[createVNode(unref(Form),{"validation-schema":unref(Xd),"initial-values":unref(Jd),onSubmit:Zd},{default:withCtx(()=>[createVNode(unref(Field),{name:"proxyOrigin"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(sh,{label:"代理域名",required:unref(Wd),error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:http://proxy.example.com,使用插件时可不填"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["required","error"])]),_:1}),createVNode(unref(Field),{name:"appID"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(sh,{label:"appID",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:wx6e1234567890efa3"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"appsecret"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(sh,{label:"appsecret",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:d9f1abcdef01234567890abcdef82397"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(sh,null,{default:withCtx(()=>[createBaseVNode("div",_hoisted_1$9,[createVNode(Zh,{variant:"link",class:"p-0",as:"a",href:"https://developers.weixin.qq.com/doc/offiaccount/Getting_Started/Getting_Started_Guide.html",target:"_blank"},{default:withCtx(()=>_h[21]||(_h[21]=[createTextVNode(" 如何开启公众号开发者模式并获取应用账号密钥? ")])),_:1}),createVNode(Zh,{variant:"link",class:"p-0",as:"a",href:"https://mpmd.pages.dev/tutorial/",target:"_blank"},{default:withCtx(()=>_h[22]||(_h[22]=[createTextVNode(" 如何在浏览器插件中使用公众号图床? ")])),_:1})])]),_:1}),createVNode(sh,null,{default:withCtx(()=>[createVNode(Zh,{type:"submit"},{default:withCtx(()=>_h[23]||(_h[23]=[createTextVNode(" 保存配置 ")])),_:1})]),_:1})]),_:1},8,["validation-schema","initial-values"])]),_:1}),createVNode(sm,{value:"r2"},{default:withCtx(()=>[createVNode(unref(Form),{"validation-schema":unref(mf),"initial-values":unref(xf),onSubmit:_f},{default:withCtx(()=>[createVNode(unref(Field),{name:"accountId"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(sh,{label:"AccountId",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如: 0030f123e55a57546f4c281c564e560",class:"min-w-[350px]"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"accessKey"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(sh,{label:"AccessKey",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如: 358090b3a12824a6b0787gae7ad0fc72"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"secretKey"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(sh,{label:"SecretKey",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,type:"password",placeholder:"如: c1c4dbcb0b6b785ac6633422a06dff3dac055fe74fe40xj1b5c5fcf1bf128010"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"bucket"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(sh,{label:"Bucket",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:md"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"domain"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(sh,{label:"域名",required:"",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:https://oss.example.com"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(unref(Field),{name:"path"},{default:withCtx(({field:Ih,errorMessage:om})=>[createVNode(sh,{label:"存储路径",error:om},{default:withCtx(()=>[createVNode(th,mergeProps(Ih,{modelValue:Ih.value,"onUpdate:modelValue":zh=>Ih.value=zh,placeholder:"如:img,可不填,默认为根目录"}),null,16,["modelValue","onUpdate:modelValue"])]),_:2},1032,["error"])]),_:1}),createVNode(sh,null,{default:withCtx(()=>[createBaseVNode("div",_hoisted_2$6,[createVNode(Zh,{variant:"link",class:"p-0",as:"a",href:"https://developers.cloudflare.com/r2/api/s3/api/",target:"_blank"},{default:withCtx(()=>_h[24]||(_h[24]=[createTextVNode(" 如何使用 S3 API 操作 Cloudflare R2 ")])),_:1}),createVNode(Zh,{variant:"link",class:"p-0",as:"a",href:"https://developers.cloudflare.com/r2/buckets/cors/",target:"_blank"},{default:withCtx(()=>_h[25]||(_h[25]=[createTextVNode(" 如何设置跨域(CORS) ")])),_:1})])]),_:1}),createVNode(sh,null,{default:withCtx(()=>[createVNode(Zh,{type:"submit"},{default:withCtx(()=>_h[26]||(_h[26]=[createTextVNode(" 保存配置 ")])),_:1})]),_:1})]),_:1},8,["validation-schema","initial-values"])]),_:1}),createVNode(sm,{value:"formCustom"},{default:withCtx(()=>[createVNode($h)]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["open"])}}});var top="top",bottom="bottom",right="right",left="left",auto$1="auto",basePlacements=[top,bottom,right,left],start="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce(function(Ra,ed){return Ra.concat([ed+"-"+start,ed+"-"+end])},[]),placements=[].concat(basePlacements,[auto$1]).reduce(function(Ra,ed){return Ra.concat([ed,ed+"-"+start,ed+"-"+end])},[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main$1="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main$1,afterMain,beforeWrite,write,afterWrite];function getNodeName(Ra){return Ra?(Ra.nodeName||"").toLowerCase():null}function getWindow(Ra){if(Ra==null)return window;if(Ra.toString()!=="[object Window]"){var ed=Ra.ownerDocument;return ed&&ed.defaultView||window}return Ra}function isElement$1(Ra){var ed=getWindow(Ra).Element;return Ra instanceof ed||Ra instanceof Element}function isHTMLElement(Ra){var ed=getWindow(Ra).HTMLElement;return Ra instanceof ed||Ra instanceof HTMLElement}function isShadowRoot(Ra){if(typeof ShadowRoot>"u")return!1;var ed=getWindow(Ra).ShadowRoot;return Ra instanceof ed||Ra instanceof ShadowRoot}function applyStyles(Ra){var ed=Ra.state;Object.keys(ed.elements).forEach(function(ud){var dd=ed.styles[ud]||{},hd=ed.attributes[ud]||{},md=ed.elements[ud];!isHTMLElement(md)||!getNodeName(md)||(Object.assign(md.style,dd),Object.keys(hd).forEach(function(gd){var yd=hd[gd];yd===!1?md.removeAttribute(gd):md.setAttribute(gd,yd===!0?"":yd)}))})}function effect$2(Ra){var ed=Ra.state,ud={popper:{position:ed.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(ed.elements.popper.style,ud.popper),ed.styles=ud,ed.elements.arrow&&Object.assign(ed.elements.arrow.style,ud.arrow),function(){Object.keys(ed.elements).forEach(function(dd){var hd=ed.elements[dd],md=ed.attributes[dd]||{},gd=Object.keys(ed.styles.hasOwnProperty(dd)?ed.styles[dd]:ud[dd]),yd=gd.reduce(function(vd,Cd){return vd[Cd]="",vd},{});!isHTMLElement(hd)||!getNodeName(hd)||(Object.assign(hd.style,yd),Object.keys(md).forEach(function(vd){hd.removeAttribute(vd)}))})}}const applyStyles$1={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:effect$2,requires:["computeStyles"]};function getBasePlacement(Ra){return Ra.split("-")[0]}var max=Math.max,min=Math.min,round=Math.round;function getUAString(){var Ra=navigator.userAgentData;return Ra!=null&&Ra.brands&&Array.isArray(Ra.brands)?Ra.brands.map(function(ed){return ed.brand+"/"+ed.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(Ra,ed,ud){ed===void 0&&(ed=!1),ud===void 0&&(ud=!1);var dd=Ra.getBoundingClientRect(),hd=1,md=1;ed&&isHTMLElement(Ra)&&(hd=Ra.offsetWidth>0&&round(dd.width)/Ra.offsetWidth||1,md=Ra.offsetHeight>0&&round(dd.height)/Ra.offsetHeight||1);var gd=isElement$1(Ra)?getWindow(Ra):window,yd=gd.visualViewport,vd=!isLayoutViewport()&&ud,Cd=(dd.left+(vd&&yd?yd.offsetLeft:0))/hd,wd=(dd.top+(vd&&yd?yd.offsetTop:0))/md,Nd=dd.width/hd,Ld=dd.height/md;return{width:Nd,height:Ld,top:wd,right:Cd+Nd,bottom:wd+Ld,left:Cd,x:Cd,y:wd}}function getLayoutRect(Ra){var ed=getBoundingClientRect(Ra),ud=Ra.offsetWidth,dd=Ra.offsetHeight;return Math.abs(ed.width-ud)<=1&&(ud=ed.width),Math.abs(ed.height-dd)<=1&&(dd=ed.height),{x:Ra.offsetLeft,y:Ra.offsetTop,width:ud,height:dd}}function contains(Ra,ed){var ud=ed.getRootNode&&ed.getRootNode();if(Ra.contains(ed))return!0;if(ud&&isShadowRoot(ud)){var dd=ed;do{if(dd&&Ra.isSameNode(dd))return!0;dd=dd.parentNode||dd.host}while(dd)}return!1}function getComputedStyle$1(Ra){return getWindow(Ra).getComputedStyle(Ra)}function isTableElement(Ra){return["table","td","th"].indexOf(getNodeName(Ra))>=0}function getDocumentElement(Ra){return((isElement$1(Ra)?Ra.ownerDocument:Ra.document)||window.document).documentElement}function getParentNode(Ra){return getNodeName(Ra)==="html"?Ra:Ra.assignedSlot||Ra.parentNode||(isShadowRoot(Ra)?Ra.host:null)||getDocumentElement(Ra)}function getTrueOffsetParent(Ra){return!isHTMLElement(Ra)||getComputedStyle$1(Ra).position==="fixed"?null:Ra.offsetParent}function getContainingBlock(Ra){var ed=/firefox/i.test(getUAString()),ud=/Trident/i.test(getUAString());if(ud&&isHTMLElement(Ra)){var dd=getComputedStyle$1(Ra);if(dd.position==="fixed")return null}var hd=getParentNode(Ra);for(isShadowRoot(hd)&&(hd=hd.host);isHTMLElement(hd)&&["html","body"].indexOf(getNodeName(hd))<0;){var md=getComputedStyle$1(hd);if(md.transform!=="none"||md.perspective!=="none"||md.contain==="paint"||["transform","perspective"].indexOf(md.willChange)!==-1||ed&&md.willChange==="filter"||ed&&md.filter&&md.filter!=="none")return hd;hd=hd.parentNode}return null}function getOffsetParent(Ra){for(var ed=getWindow(Ra),ud=getTrueOffsetParent(Ra);ud&&isTableElement(ud)&&getComputedStyle$1(ud).position==="static";)ud=getTrueOffsetParent(ud);return ud&&(getNodeName(ud)==="html"||getNodeName(ud)==="body"&&getComputedStyle$1(ud).position==="static")?ed:ud||getContainingBlock(Ra)||ed}function getMainAxisFromPlacement(Ra){return["top","bottom"].indexOf(Ra)>=0?"x":"y"}function within(Ra,ed,ud){return max(Ra,min(ed,ud))}function withinMaxClamp(Ra,ed,ud){var dd=within(Ra,ed,ud);return dd>ud?ud:dd}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(Ra){return Object.assign({},getFreshSideObject(),Ra)}function expandToHashMap(Ra,ed){return ed.reduce(function(ud,dd){return ud[dd]=Ra,ud},{})}var toPaddingObject=function(ed,ud){return ed=typeof ed=="function"?ed(Object.assign({},ud.rects,{placement:ud.placement})):ed,mergePaddingObject(typeof ed!="number"?ed:expandToHashMap(ed,basePlacements))};function arrow(Ra){var ed,ud=Ra.state,dd=Ra.name,hd=Ra.options,md=ud.elements.arrow,gd=ud.modifiersData.popperOffsets,yd=getBasePlacement(ud.placement),vd=getMainAxisFromPlacement(yd),Cd=[left,right].indexOf(yd)>=0,wd=Cd?"height":"width";if(!(!md||!gd)){var Nd=toPaddingObject(hd.padding,ud),Ld=getLayoutRect(md),Ud=vd==="y"?top:left,jd=vd==="y"?bottom:right,Gd=ud.rects.reference[wd]+ud.rects.reference[vd]-gd[vd]-ud.rects.popper[wd],Yd=gd[vd]-ud.rects.reference[vd],zd=getOffsetParent(md),qd=zd?vd==="y"?zd.clientHeight||0:zd.clientWidth||0:0,Wd=Gd/2-Yd/2,Xd=Nd[Ud],Jd=qd-Ld[wd]-Nd[jd],Zd=qd/2-Ld[wd]/2+Wd,mf=within(Xd,Zd,Jd),xf=vd;ud.modifiersData[dd]=(ed={},ed[xf]=mf,ed.centerOffset=mf-Zd,ed)}}function effect$1(Ra){var ed=Ra.state,ud=Ra.options,dd=ud.element,hd=dd===void 0?"[data-popper-arrow]":dd;hd!=null&&(typeof hd=="string"&&(hd=ed.elements.popper.querySelector(hd),!hd)||contains(ed.elements.popper,hd)&&(ed.elements.arrow=hd))}const arrow$1={name:"arrow",enabled:!0,phase:"main",fn:arrow,effect:effect$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(Ra){return Ra.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(Ra,ed){var ud=Ra.x,dd=Ra.y,hd=ed.devicePixelRatio||1;return{x:round(ud*hd)/hd||0,y:round(dd*hd)/hd||0}}function mapToStyles(Ra){var ed,ud=Ra.popper,dd=Ra.popperRect,hd=Ra.placement,md=Ra.variation,gd=Ra.offsets,yd=Ra.position,vd=Ra.gpuAcceleration,Cd=Ra.adaptive,wd=Ra.roundOffsets,Nd=Ra.isFixed,Ld=gd.x,Ud=Ld===void 0?0:Ld,jd=gd.y,Gd=jd===void 0?0:jd,Yd=typeof wd=="function"?wd({x:Ud,y:Gd}):{x:Ud,y:Gd};Ud=Yd.x,Gd=Yd.y;var zd=gd.hasOwnProperty("x"),qd=gd.hasOwnProperty("y"),Wd=left,Xd=top,Jd=window;if(Cd){var Zd=getOffsetParent(ud),mf="clientHeight",xf="clientWidth";if(Zd===getWindow(ud)&&(Zd=getDocumentElement(ud),getComputedStyle$1(Zd).position!=="static"&&yd==="absolute"&&(mf="scrollHeight",xf="scrollWidth")),Zd=Zd,hd===top||(hd===left||hd===right)&&md===end){Xd=bottom;var _f=Nd&&Zd===Jd&&Jd.visualViewport?Jd.visualViewport.height:Zd[mf];Gd-=_f-dd.height,Gd*=vd?1:-1}if(hd===left||(hd===top||hd===bottom)&&md===end){Wd=right;var vf=Nd&&Zd===Jd&&Jd.visualViewport?Jd.visualViewport.width:Zd[xf];Ud-=vf-dd.width,Ud*=vd?1:-1}}var gf=Object.assign({position:yd},Cd&&unsetSides),Af=wd===!0?roundOffsetsByDPR({x:Ud,y:Gd},getWindow(ud)):{x:Ud,y:Gd};if(Ud=Af.x,Gd=Af.y,vd){var Df;return Object.assign({},gf,(Df={},Df[Xd]=qd?"0":"",Df[Wd]=zd?"0":"",Df.transform=(Jd.devicePixelRatio||1)<=1?"translate("+Ud+"px, "+Gd+"px)":"translate3d("+Ud+"px, "+Gd+"px, 0)",Df))}return Object.assign({},gf,(ed={},ed[Xd]=qd?Gd+"px":"",ed[Wd]=zd?Ud+"px":"",ed.transform="",ed))}function computeStyles(Ra){var ed=Ra.state,ud=Ra.options,dd=ud.gpuAcceleration,hd=dd===void 0?!0:dd,md=ud.adaptive,gd=md===void 0?!0:md,yd=ud.roundOffsets,vd=yd===void 0?!0:yd,Cd={placement:getBasePlacement(ed.placement),variation:getVariation(ed.placement),popper:ed.elements.popper,popperRect:ed.rects.popper,gpuAcceleration:hd,isFixed:ed.options.strategy==="fixed"};ed.modifiersData.popperOffsets!=null&&(ed.styles.popper=Object.assign({},ed.styles.popper,mapToStyles(Object.assign({},Cd,{offsets:ed.modifiersData.popperOffsets,position:ed.options.strategy,adaptive:gd,roundOffsets:vd})))),ed.modifiersData.arrow!=null&&(ed.styles.arrow=Object.assign({},ed.styles.arrow,mapToStyles(Object.assign({},Cd,{offsets:ed.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:vd})))),ed.attributes.popper=Object.assign({},ed.attributes.popper,{"data-popper-placement":ed.placement})}const computeStyles$1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}};var passive={passive:!0};function effect(Ra){var ed=Ra.state,ud=Ra.instance,dd=Ra.options,hd=dd.scroll,md=hd===void 0?!0:hd,gd=dd.resize,yd=gd===void 0?!0:gd,vd=getWindow(ed.elements.popper),Cd=[].concat(ed.scrollParents.reference,ed.scrollParents.popper);return md&&Cd.forEach(function(wd){wd.addEventListener("scroll",ud.update,passive)}),yd&&vd.addEventListener("resize",ud.update,passive),function(){md&&Cd.forEach(function(wd){wd.removeEventListener("scroll",ud.update,passive)}),yd&&vd.removeEventListener("resize",ud.update,passive)}}const eventListeners={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect,data:{}};var hash$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(Ra){return Ra.replace(/left|right|bottom|top/g,function(ed){return hash$1[ed]})}var hash={start:"end",end:"start"};function getOppositeVariationPlacement(Ra){return Ra.replace(/start|end/g,function(ed){return hash[ed]})}function getWindowScroll(Ra){var ed=getWindow(Ra),ud=ed.pageXOffset,dd=ed.pageYOffset;return{scrollLeft:ud,scrollTop:dd}}function getWindowScrollBarX(Ra){return getBoundingClientRect(getDocumentElement(Ra)).left+getWindowScroll(Ra).scrollLeft}function getViewportRect(Ra,ed){var ud=getWindow(Ra),dd=getDocumentElement(Ra),hd=ud.visualViewport,md=dd.clientWidth,gd=dd.clientHeight,yd=0,vd=0;if(hd){md=hd.width,gd=hd.height;var Cd=isLayoutViewport();(Cd||!Cd&&ed==="fixed")&&(yd=hd.offsetLeft,vd=hd.offsetTop)}return{width:md,height:gd,x:yd+getWindowScrollBarX(Ra),y:vd}}function getDocumentRect(Ra){var ed,ud=getDocumentElement(Ra),dd=getWindowScroll(Ra),hd=(ed=Ra.ownerDocument)==null?void 0:ed.body,md=max(ud.scrollWidth,ud.clientWidth,hd?hd.scrollWidth:0,hd?hd.clientWidth:0),gd=max(ud.scrollHeight,ud.clientHeight,hd?hd.scrollHeight:0,hd?hd.clientHeight:0),yd=-dd.scrollLeft+getWindowScrollBarX(Ra),vd=-dd.scrollTop;return getComputedStyle$1(hd||ud).direction==="rtl"&&(yd+=max(ud.clientWidth,hd?hd.clientWidth:0)-md),{width:md,height:gd,x:yd,y:vd}}function isScrollParent(Ra){var ed=getComputedStyle$1(Ra),ud=ed.overflow,dd=ed.overflowX,hd=ed.overflowY;return/auto|scroll|overlay|hidden/.test(ud+hd+dd)}function getScrollParent(Ra){return["html","body","#document"].indexOf(getNodeName(Ra))>=0?Ra.ownerDocument.body:isHTMLElement(Ra)&&isScrollParent(Ra)?Ra:getScrollParent(getParentNode(Ra))}function listScrollParents(Ra,ed){var ud;ed===void 0&&(ed=[]);var dd=getScrollParent(Ra),hd=dd===((ud=Ra.ownerDocument)==null?void 0:ud.body),md=getWindow(dd),gd=hd?[md].concat(md.visualViewport||[],isScrollParent(dd)?dd:[]):dd,yd=ed.concat(gd);return hd?yd:yd.concat(listScrollParents(getParentNode(gd)))}function rectToClientRect(Ra){return Object.assign({},Ra,{left:Ra.x,top:Ra.y,right:Ra.x+Ra.width,bottom:Ra.y+Ra.height})}function getInnerBoundingClientRect(Ra,ed){var ud=getBoundingClientRect(Ra,!1,ed==="fixed");return ud.top=ud.top+Ra.clientTop,ud.left=ud.left+Ra.clientLeft,ud.bottom=ud.top+Ra.clientHeight,ud.right=ud.left+Ra.clientWidth,ud.width=Ra.clientWidth,ud.height=Ra.clientHeight,ud.x=ud.left,ud.y=ud.top,ud}function getClientRectFromMixedType(Ra,ed,ud){return ed===viewport?rectToClientRect(getViewportRect(Ra,ud)):isElement$1(ed)?getInnerBoundingClientRect(ed,ud):rectToClientRect(getDocumentRect(getDocumentElement(Ra)))}function getClippingParents(Ra){var ed=listScrollParents(getParentNode(Ra)),ud=["absolute","fixed"].indexOf(getComputedStyle$1(Ra).position)>=0,dd=ud&&isHTMLElement(Ra)?getOffsetParent(Ra):Ra;return isElement$1(dd)?ed.filter(function(hd){return isElement$1(hd)&&contains(hd,dd)&&getNodeName(hd)!=="body"}):[]}function getClippingRect(Ra,ed,ud,dd){var hd=ed==="clippingParents"?getClippingParents(Ra):[].concat(ed),md=[].concat(hd,[ud]),gd=md[0],yd=md.reduce(function(vd,Cd){var wd=getClientRectFromMixedType(Ra,Cd,dd);return vd.top=max(wd.top,vd.top),vd.right=min(wd.right,vd.right),vd.bottom=min(wd.bottom,vd.bottom),vd.left=max(wd.left,vd.left),vd},getClientRectFromMixedType(Ra,gd,dd));return yd.width=yd.right-yd.left,yd.height=yd.bottom-yd.top,yd.x=yd.left,yd.y=yd.top,yd}function computeOffsets(Ra){var ed=Ra.reference,ud=Ra.element,dd=Ra.placement,hd=dd?getBasePlacement(dd):null,md=dd?getVariation(dd):null,gd=ed.x+ed.width/2-ud.width/2,yd=ed.y+ed.height/2-ud.height/2,vd;switch(hd){case top:vd={x:gd,y:ed.y-ud.height};break;case bottom:vd={x:gd,y:ed.y+ed.height};break;case right:vd={x:ed.x+ed.width,y:yd};break;case left:vd={x:ed.x-ud.width,y:yd};break;default:vd={x:ed.x,y:ed.y}}var Cd=hd?getMainAxisFromPlacement(hd):null;if(Cd!=null){var wd=Cd==="y"?"height":"width";switch(md){case start:vd[Cd]=vd[Cd]-(ed[wd]/2-ud[wd]/2);break;case end:vd[Cd]=vd[Cd]+(ed[wd]/2-ud[wd]/2);break}}return vd}function detectOverflow(Ra,ed){ed===void 0&&(ed={});var ud=ed,dd=ud.placement,hd=dd===void 0?Ra.placement:dd,md=ud.strategy,gd=md===void 0?Ra.strategy:md,yd=ud.boundary,vd=yd===void 0?clippingParents:yd,Cd=ud.rootBoundary,wd=Cd===void 0?viewport:Cd,Nd=ud.elementContext,Ld=Nd===void 0?popper:Nd,Ud=ud.altBoundary,jd=Ud===void 0?!1:Ud,Gd=ud.padding,Yd=Gd===void 0?0:Gd,zd=mergePaddingObject(typeof Yd!="number"?Yd:expandToHashMap(Yd,basePlacements)),qd=Ld===popper?reference:popper,Wd=Ra.rects.popper,Xd=Ra.elements[jd?qd:Ld],Jd=getClippingRect(isElement$1(Xd)?Xd:Xd.contextElement||getDocumentElement(Ra.elements.popper),vd,wd,gd),Zd=getBoundingClientRect(Ra.elements.reference),mf=computeOffsets({reference:Zd,element:Wd,placement:hd}),xf=rectToClientRect(Object.assign({},Wd,mf)),_f=Ld===popper?xf:Zd,vf={top:Jd.top-_f.top+zd.top,bottom:_f.bottom-Jd.bottom+zd.bottom,left:Jd.left-_f.left+zd.left,right:_f.right-Jd.right+zd.right},gf=Ra.modifiersData.offset;if(Ld===popper&&gf){var Af=gf[hd];Object.keys(vf).forEach(function(Df){var kf=[right,bottom].indexOf(Df)>=0?1:-1,Cf=[top,bottom].indexOf(Df)>=0?"y":"x";vf[Df]+=Af[Cf]*kf})}return vf}function computeAutoPlacement(Ra,ed){ed===void 0&&(ed={});var ud=ed,dd=ud.placement,hd=ud.boundary,md=ud.rootBoundary,gd=ud.padding,yd=ud.flipVariations,vd=ud.allowedAutoPlacements,Cd=vd===void 0?placements:vd,wd=getVariation(dd),Nd=wd?yd?variationPlacements:variationPlacements.filter(function(jd){return getVariation(jd)===wd}):basePlacements,Ld=Nd.filter(function(jd){return Cd.indexOf(jd)>=0});Ld.length===0&&(Ld=Nd);var Ud=Ld.reduce(function(jd,Gd){return jd[Gd]=detectOverflow(Ra,{placement:Gd,boundary:hd,rootBoundary:md,padding:gd})[getBasePlacement(Gd)],jd},{});return Object.keys(Ud).sort(function(jd,Gd){return Ud[jd]-Ud[Gd]})}function getExpandedFallbackPlacements(Ra){if(getBasePlacement(Ra)===auto$1)return[];var ed=getOppositePlacement(Ra);return[getOppositeVariationPlacement(Ra),ed,getOppositeVariationPlacement(ed)]}function flip(Ra){var ed=Ra.state,ud=Ra.options,dd=Ra.name;if(!ed.modifiersData[dd]._skip){for(var hd=ud.mainAxis,md=hd===void 0?!0:hd,gd=ud.altAxis,yd=gd===void 0?!0:gd,vd=ud.fallbackPlacements,Cd=ud.padding,wd=ud.boundary,Nd=ud.rootBoundary,Ld=ud.altBoundary,Ud=ud.flipVariations,jd=Ud===void 0?!0:Ud,Gd=ud.allowedAutoPlacements,Yd=ed.options.placement,zd=getBasePlacement(Yd),qd=zd===Yd,Wd=vd||(qd||!jd?[getOppositePlacement(Yd)]:getExpandedFallbackPlacements(Yd)),Xd=[Yd].concat(Wd).reduce(function(mh,xh){return mh.concat(getBasePlacement(xh)===auto$1?computeAutoPlacement(ed,{placement:xh,boundary:wd,rootBoundary:Nd,padding:Cd,flipVariations:jd,allowedAutoPlacements:Gd}):xh)},[]),Jd=ed.rects.reference,Zd=ed.rects.popper,mf=new Map,xf=!0,_f=Xd[0],vf=0;vf=0,Cf=kf?"width":"height",If=detectOverflow(ed,{placement:gf,boundary:wd,rootBoundary:Nd,altBoundary:Ld,padding:Cd}),Ff=kf?Df?right:left:Df?bottom:top;Jd[Cf]>Zd[Cf]&&(Ff=getOppositePlacement(Ff));var oh=getOppositePlacement(Ff),Eh=[];if(md&&Eh.push(If[Af]<=0),yd&&Eh.push(If[Ff]<=0,If[oh]<=0),Eh.every(function(mh){return mh})){_f=gf,xf=!1;break}mf.set(gf,Eh)}if(xf)for(var _h=jd?3:1,Mh=function(xh){var Sh=Xd.find(function(Of){var Rf=mf.get(Of);if(Rf)return Rf.slice(0,xh).every(function(yh){return yh})});if(Sh)return _f=Sh,"break"},lh=_h;lh>0;lh--){var rh=Mh(lh);if(rh==="break")break}ed.placement!==_f&&(ed.modifiersData[dd]._skip=!0,ed.placement=_f,ed.reset=!0)}}const flip$1={name:"flip",enabled:!0,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(Ra,ed,ud){return ud===void 0&&(ud={x:0,y:0}),{top:Ra.top-ed.height-ud.y,right:Ra.right-ed.width+ud.x,bottom:Ra.bottom-ed.height+ud.y,left:Ra.left-ed.width-ud.x}}function isAnySideFullyClipped(Ra){return[top,right,bottom,left].some(function(ed){return Ra[ed]>=0})}function hide(Ra){var ed=Ra.state,ud=Ra.name,dd=ed.rects.reference,hd=ed.rects.popper,md=ed.modifiersData.preventOverflow,gd=detectOverflow(ed,{elementContext:"reference"}),yd=detectOverflow(ed,{altBoundary:!0}),vd=getSideOffsets(gd,dd),Cd=getSideOffsets(yd,hd,md),wd=isAnySideFullyClipped(vd),Nd=isAnySideFullyClipped(Cd);ed.modifiersData[ud]={referenceClippingOffsets:vd,popperEscapeOffsets:Cd,isReferenceHidden:wd,hasPopperEscaped:Nd},ed.attributes.popper=Object.assign({},ed.attributes.popper,{"data-popper-reference-hidden":wd,"data-popper-escaped":Nd})}const hide$1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(Ra,ed,ud){var dd=getBasePlacement(Ra),hd=[left,top].indexOf(dd)>=0?-1:1,md=typeof ud=="function"?ud(Object.assign({},ed,{placement:Ra})):ud,gd=md[0],yd=md[1];return gd=gd||0,yd=(yd||0)*hd,[left,right].indexOf(dd)>=0?{x:yd,y:gd}:{x:gd,y:yd}}function offset(Ra){var ed=Ra.state,ud=Ra.options,dd=Ra.name,hd=ud.offset,md=hd===void 0?[0,0]:hd,gd=placements.reduce(function(wd,Nd){return wd[Nd]=distanceAndSkiddingToXY(Nd,ed.rects,md),wd},{}),yd=gd[ed.placement],vd=yd.x,Cd=yd.y;ed.modifiersData.popperOffsets!=null&&(ed.modifiersData.popperOffsets.x+=vd,ed.modifiersData.popperOffsets.y+=Cd),ed.modifiersData[dd]=gd}const offset$1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset};function popperOffsets(Ra){var ed=Ra.state,ud=Ra.name;ed.modifiersData[ud]=computeOffsets({reference:ed.rects.reference,element:ed.rects.popper,placement:ed.placement})}const popperOffsets$1={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(Ra){return Ra==="x"?"y":"x"}function preventOverflow(Ra){var ed=Ra.state,ud=Ra.options,dd=Ra.name,hd=ud.mainAxis,md=hd===void 0?!0:hd,gd=ud.altAxis,yd=gd===void 0?!1:gd,vd=ud.boundary,Cd=ud.rootBoundary,wd=ud.altBoundary,Nd=ud.padding,Ld=ud.tether,Ud=Ld===void 0?!0:Ld,jd=ud.tetherOffset,Gd=jd===void 0?0:jd,Yd=detectOverflow(ed,{boundary:vd,rootBoundary:Cd,padding:Nd,altBoundary:wd}),zd=getBasePlacement(ed.placement),qd=getVariation(ed.placement),Wd=!qd,Xd=getMainAxisFromPlacement(zd),Jd=getAltAxis(Xd),Zd=ed.modifiersData.popperOffsets,mf=ed.rects.reference,xf=ed.rects.popper,_f=typeof Gd=="function"?Gd(Object.assign({},ed.rects,{placement:ed.placement})):Gd,vf=typeof _f=="number"?{mainAxis:_f,altAxis:_f}:Object.assign({mainAxis:0,altAxis:0},_f),gf=ed.modifiersData.offset?ed.modifiersData.offset[ed.placement]:null,Af={x:0,y:0};if(Zd){if(md){var Df,kf=Xd==="y"?top:left,Cf=Xd==="y"?bottom:right,If=Xd==="y"?"height":"width",Ff=Zd[Xd],oh=Ff+Yd[kf],Eh=Ff-Yd[Cf],_h=Ud?-xf[If]/2:0,Mh=qd===start?mf[If]:xf[If],lh=qd===start?-xf[If]:-mf[If],rh=ed.elements.arrow,mh=Ud&&rh?getLayoutRect(rh):{width:0,height:0},xh=ed.modifiersData["arrow#persistent"]?ed.modifiersData["arrow#persistent"].padding:getFreshSideObject(),Sh=xh[kf],Of=xh[Cf],Rf=within(0,mf[If],mh[If]),yh=Wd?mf[If]/2-_h-Rf-Sh-vf.mainAxis:Mh-Rf-Sh-vf.mainAxis,Ph=Wd?-mf[If]/2+_h+Rf+Of+vf.mainAxis:lh+Rf+Of+vf.mainAxis,sm=ed.elements.arrow&&getOffsetParent(ed.elements.arrow),th=sm?Xd==="y"?sm.clientTop||0:sm.clientLeft||0:0,sh=(Df=gf==null?void 0:gf[Xd])!=null?Df:0,Zh=Ff+yh-sh-th,Sm=Ff+Ph-sh,$h=within(Ud?min(oh,Zh):oh,Ff,Ud?max(Eh,Sm):Eh);Zd[Xd]=$h,Af[Xd]=$h-Ff}if(yd){var Vf,nh=Xd==="x"?top:left,Lh=Xd==="x"?bottom:right,Ih=Zd[Jd],om=Jd==="y"?"height":"width",zh=Ih+Yd[nh],Mm=Ih-Yd[Lh],Nm=[top,left].indexOf(zd)!==-1,Zm=(Vf=gf==null?void 0:gf[Jd])!=null?Vf:0,Ym=Nm?zh:Ih-mf[om]-xf[om]-Zm+vf.altAxis,jm=Nm?Ih+mf[om]+xf[om]-Zm-vf.altAxis:Mm,rg=Ud&&Nm?withinMaxClamp(Ym,Ih,jm):within(Ud?Ym:zh,Ih,Ud?jm:Mm);Zd[Jd]=rg,Af[Jd]=rg-Ih}ed.modifiersData[dd]=Af}}const preventOverflow$1={name:"preventOverflow",enabled:!0,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(Ra){return{scrollLeft:Ra.scrollLeft,scrollTop:Ra.scrollTop}}function getNodeScroll(Ra){return Ra===getWindow(Ra)||!isHTMLElement(Ra)?getWindowScroll(Ra):getHTMLElementScroll(Ra)}function isElementScaled(Ra){var ed=Ra.getBoundingClientRect(),ud=round(ed.width)/Ra.offsetWidth||1,dd=round(ed.height)/Ra.offsetHeight||1;return ud!==1||dd!==1}function getCompositeRect(Ra,ed,ud){ud===void 0&&(ud=!1);var dd=isHTMLElement(ed),hd=isHTMLElement(ed)&&isElementScaled(ed),md=getDocumentElement(ed),gd=getBoundingClientRect(Ra,hd,ud),yd={scrollLeft:0,scrollTop:0},vd={x:0,y:0};return(dd||!dd&&!ud)&&((getNodeName(ed)!=="body"||isScrollParent(md))&&(yd=getNodeScroll(ed)),isHTMLElement(ed)?(vd=getBoundingClientRect(ed,!0),vd.x+=ed.clientLeft,vd.y+=ed.clientTop):md&&(vd.x=getWindowScrollBarX(md))),{x:gd.left+yd.scrollLeft-vd.x,y:gd.top+yd.scrollTop-vd.y,width:gd.width,height:gd.height}}function order(Ra){var ed=new Map,ud=new Set,dd=[];Ra.forEach(function(md){ed.set(md.name,md)});function hd(md){ud.add(md.name);var gd=[].concat(md.requires||[],md.requiresIfExists||[]);gd.forEach(function(yd){if(!ud.has(yd)){var vd=ed.get(yd);vd&&hd(vd)}}),dd.push(md)}return Ra.forEach(function(md){ud.has(md.name)||hd(md)}),dd}function orderModifiers(Ra){var ed=order(Ra);return modifierPhases.reduce(function(ud,dd){return ud.concat(ed.filter(function(hd){return hd.phase===dd}))},[])}function debounce(Ra){var ed;return function(){return ed||(ed=new Promise(function(ud){Promise.resolve().then(function(){ed=void 0,ud(Ra())})})),ed}}function mergeByName(Ra){var ed=Ra.reduce(function(ud,dd){var hd=ud[dd.name];return ud[dd.name]=hd?Object.assign({},hd,dd,{options:Object.assign({},hd.options,dd.options),data:Object.assign({},hd.data,dd.data)}):dd,ud},{});return Object.keys(ed).map(function(ud){return ed[ud]})}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var Ra=arguments.length,ed=new Array(Ra),ud=0;udRa.length)&&(ed=Ra.length);for(var ud=0,dd=Array(ed);ud=0;--lh){var rh=this.tryEntries[lh],mh=rh.completion;if(rh.tryLoc==="root")return Mh("end");if(rh.tryLoc<=this.prev){var xh=gd.call(rh,"catchLoc"),Sh=gd.call(rh,"finallyLoc");if(xh&&Sh){if(this.prev=0;--Mh){var lh=this.tryEntries[Mh];if(lh.tryLoc<=this.prev&&gd.call(lh,"finallyLoc")&&this.prev=0;--_h){var Mh=this.tryEntries[_h];if(Mh.finallyLoc===Eh)return this.complete(Mh.completion,Mh.afterLoc),If(Mh),Wd}},catch:function(Eh){for(var _h=this.tryEntries.length-1;_h>=0;--_h){var Mh=this.tryEntries[_h];if(Mh.tryLoc===Eh){var lh=Mh.completion;if(lh.type==="throw"){var rh=lh.arg;If(Mh)}return rh}}throw Error("illegal catch attempt")},delegateYield:function(Eh,_h,Mh){return this.delegate={iterator:oh(Eh),resultName:_h,nextLoc:Mh},this.method==="next"&&(this.arg=dd),Wd}},hd}Ra.exports=ud,Ra.exports.__esModule=!0,Ra.exports.default=Ra.exports}(M$1);var R$1=M$1.exports(),z$1=R$1;try{regeneratorRuntime=R$1}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=R$1:Function("r","regeneratorRuntime = r")(R$1)}function T$1(Ra,ed){return function(ud){if(Array.isArray(ud))return ud}(Ra)||function(ud,dd){var hd=ud==null?null:typeof Symbol<"u"&&ud[Symbol.iterator]||ud["@@iterator"];if(hd!=null){var md,gd,yd,vd,Cd=[],wd=!0,Nd=!1;try{if(yd=(hd=hd.call(ud)).next,dd===0){if(Object(hd)!==hd)return;wd=!1}else for(;!(wd=(md=yd.call(hd)).done)&&(Cd.push(md.value),Cd.length!==dd);wd=!0);}catch(Ld){Nd=!0,gd=Ld}finally{try{if(!wd&&hd.return!=null&&(vd=hd.return(),Object(vd)!==vd))return}finally{if(Nd)throw gd}}return Cd}}(Ra,ed)||F$1(Ra,ed)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function D$1(Ra){var ed=function(ud,dd){if(L$1(ud)!="object"||!ud)return ud;var hd=ud[Symbol.toPrimitive];if(hd!==void 0){var md=hd.call(ud,dd);if(L$1(md)!="object")return md;throw new TypeError("@@toPrimitive must return a primitive value.")}return(dd==="string"?String:Number)(ud)}(Ra,"string");return L$1(ed)=="symbol"?ed:ed+""}function H$1(Ra,ed,ud){return(ed=D$1(ed))in Ra?Object.defineProperty(Ra,ed,{value:ud,enumerable:!0,configurable:!0,writable:!0}):Ra[ed]=ud,Ra}var G$1=defineComponent({name:"Saturation",props:{size:{type:Number,default:160},hue:{type:Number,default:0},saturation:{type:Number,default:0},value:{type:Number,default:0}},emits:["change"],setup:function(Ra,ed){var ud=ed.emit,dd=computed(function(){return{width:"".concat(Ra.size,"px"),height:"".concat(Ra.size,"px"),background:"hsl(".concat(Ra.hue,", 100%, 50%)")}});return{saturationStyle:dd,sliderStyle:computed(function(){return{top:"".concat((100-Ra.value)/100*Ra.size-5,"px"),left:"".concat(Ra.saturation*Ra.size/100-5,"px"),width:"".concat(10,"px"),height:"".concat(10,"px")}}),onSelect:function(hd){var md=hd.target.getBoundingClientRect(),gd=md.left,yd=md.top,vd=function(wd){var Nd,Ld;wd instanceof MouseEvent?(Nd=wd.clientX,Ld=wd.clientY):wd instanceof TouchEvent&&(Nd=wd.touches[0].clientX,Ld=wd.touches[0].clientY);var Ud=Nd-gd,jd=Ld-yd;Ud<0&&(Ud=0),jd<0&&(jd=0),Ud>Ra.size&&(Ud=Ra.size),jd>Ra.size&&(jd=Ra.size);var Gd=Ud/Ra.size*100,Yd=100-jd/Ra.size*100;ud("change",Gd,Yd)};vd(hd);var Cd=function(){document.removeEventListener("mousemove",vd),document.removeEventListener("mouseup",Cd),document.removeEventListener("touchmove",vd),document.removeEventListener("touchend",Cd)};vd(hd),hd instanceof MouseEvent&&(document.addEventListener("mousemove",vd),document.addEventListener("mouseup",Cd)),hd instanceof TouchEvent&&(hd.preventDefault(),document.addEventListener("touchmove",vd,{passive:!1}),document.addEventListener("touchend",Cd))}}}});function V$1(Ra,ed){ed===void 0&&(ed={});var ud=ed.insertAt;if(Ra&&typeof document<"u"){var dd=document.head||document.getElementsByTagName("head")[0],hd=document.createElement("style");hd.type="text/css",ud==="top"&&dd.firstChild?dd.insertBefore(hd,dd.firstChild):dd.appendChild(hd),hd.styleSheet?hd.styleSheet.cssText=Ra:hd.appendChild(document.createTextNode(Ra))}}V$1(".saturation[data-v-24517fec]{position:relative}.saturation-black[data-v-24517fec],.saturation-white[data-v-24517fec]{cursor:pointer;height:100%;left:0;position:absolute;top:0;width:100%}.saturation-white[data-v-24517fec]{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.saturation-black[data-v-24517fec]{background:linear-gradient(0deg,#000,transparent)}.slider[data-v-24517fec]{border:1px solid #fff;border-radius:50%;box-shadow:0 0 1px 1px rgba(0,0,0,.3);left:0;pointer-events:none;position:absolute;top:0;z-index:1}"),G$1.render=function(Ra,ed,ud,dd,hd,md){return openBlock(),createElementBlock("div",{class:"saturation",style:normalizeStyle(Ra.saturationStyle),onMousedown:ed[0]||(ed[0]=withModifiers(function(){return Ra.onSelect&&Ra.onSelect.apply(Ra,arguments)},["prevent","stop"])),onTouchstart:ed[1]||(ed[1]=withModifiers(function(){return Ra.onSelect&&Ra.onSelect.apply(Ra,arguments)},["prevent","stop"]))},[ed[2]||(ed[2]=createBaseVNode("div",{class:"saturation-white"},null,-1)),ed[3]||(ed[3]=createBaseVNode("div",{class:"saturation-black"},null,-1)),createBaseVNode("div",{class:"slider",style:normalizeStyle(Ra.sliderStyle)},null,4)],36)},G$1.__scopeId="data-v-24517fec",G$1.__file="src/picker/Saturation.vue";var Y$1=defineComponent({name:"Hue",props:{width:{type:Number,default:15},height:{type:Number,default:160},hue:{type:Number,default:0}},emits:["change"],setup:function(Ra,ed){var ud=ed.emit,dd=computed(function(){return{top:"".concat((1-Ra.hue/360)*Ra.height-2,"px"),height:"".concat(4,"px")}}),hd=ref$1();return onMounted(function(){(function(){if(hd.value){hd.value.width=Ra.width,hd.value.height=Ra.height;var md=hd.value.getContext("2d");if(md){var gd=md.createLinearGradient(0,0,0,Ra.height);gd.addColorStop(0,"#FF0000"),gd.addColorStop(.17,"#FF00FF"),gd.addColorStop(.34,"#0000FF"),gd.addColorStop(.51,"#00FFFF"),gd.addColorStop(.68,"#00FF00"),gd.addColorStop(.17*5,"#FFFF00"),gd.addColorStop(1,"#FF0000"),md.fillStyle=gd,md.fillRect(0,0,Ra.width,Ra.height)}}})()}),{canvas:hd,sliderStyle:dd,onSelect:function(md){var gd=md.target.getBoundingClientRect().top,yd=function(Cd){var wd;Cd instanceof MouseEvent?wd=Cd.clientY:Cd instanceof TouchEvent&&(wd=Cd.touches[0].clientY);var Nd=wd-gd;Nd<0&&(Nd=0),Nd>Ra.height&&(Nd=Ra.height);var Ld=-100*Nd/Ra.height+100;ud("change",360*Ld/100)},vd=function(){document.removeEventListener("mousemove",yd),document.removeEventListener("mouseup",vd),document.removeEventListener("touchmove",yd),document.removeEventListener("touchend",vd)};yd(md),md instanceof MouseEvent&&(document.addEventListener("mousemove",yd),document.addEventListener("mouseup",vd)),md instanceof TouchEvent&&(md.preventDefault(),document.addEventListener("touchmove",yd,{passive:!1}),document.addEventListener("touchend",vd))}}}}),$={ref:"canvas"};V$1(".hue[data-v-78b9f4f0]{position:relative;touch-action:none}.slider[data-v-78b9f4f0]{background:#fff;box-shadow:0 0 1px 0 rgba(0,0,0,.3);left:0;pointer-events:none;position:absolute;width:100%;z-index:1}"),Y$1.render=function(Ra,ed,ud,dd,hd,md){return openBlock(),createElementBlock("div",{class:"hue",onMousedown:ed[0]||(ed[0]=withModifiers(function(){return Ra.onSelect&&Ra.onSelect.apply(Ra,arguments)},["prevent","stop"])),onTouchstart:ed[1]||(ed[1]=withModifiers(function(){return Ra.onSelect&&Ra.onSelect.apply(Ra,arguments)},["prevent","stop"]))},[createBaseVNode("canvas",$,null,512),createBaseVNode("div",{class:"slider",style:normalizeStyle(Ra.sliderStyle)},null,4)],32)},Y$1.__scopeId="data-v-78b9f4f0",Y$1.__file="src/picker/Hue.vue";var X$1=defineComponent({name:"Alpha",props:{width:{type:Number,default:15},height:{type:Number,default:160},color:{type:String,default:"#000000"},alpha:{type:Number,default:1}},setup:function(Ra,ed){var ud=ed.emit,dd=computed(function(){return{top:"".concat(Ra.alpha*Ra.height-2,"px"),height:"".concat(4,"px")}}),hd=ref$1(),md=function(){var gd=hd.value.getContext("2d");hd.value.width=Ra.width,hd.value.height=Ra.height;var yd=function(Cd){var wd=document.createElement("canvas"),Nd=wd.getContext("2d"),Ld=2*Cd;return wd.width=Ld,wd.height=Ld,Nd.fillStyle="#ffffff",Nd.fillRect(0,0,Ld,Ld),Nd.fillStyle="#ccd5db",Nd.fillRect(0,0,Cd,Cd),Nd.fillRect(Cd,Cd,Cd,Cd),wd}(5);gd.fillStyle=gd.createPattern(yd,"repeat"),gd.fillRect(0,0,Ra.width,Ra.height);var vd=gd.createLinearGradient(0,0,0,Ra.height);vd.addColorStop(.01,"rgba(255,255,255,0)"),vd.addColorStop(.99,Ra.color),gd.fillStyle=vd,gd.fillRect(0,0,Ra.width,Ra.height)};return watch(function(){return Ra.color},function(){md()}),onMounted(function(){md()}),{canvas:hd,sliderStyle:dd,onSelect:function(gd){var yd=gd.target.getBoundingClientRect().top,vd=function(wd){var Nd;wd instanceof MouseEvent?Nd=wd.clientY:wd instanceof TouchEvent&&(Nd=wd.touches[0].clientY);var Ld=Nd-yd;Ld<0&&(Ld=0),Ld>Ra.height&&(Ld=Ra.height);var Ud=parseFloat((Ld/Ra.height).toFixed(2));ud("change",Ud)},Cd=function(){document.removeEventListener("mousemove",vd),document.removeEventListener("mouseup",Cd),document.removeEventListener("touchmove",vd),document.removeEventListener("touchend",Cd)};vd(gd),gd instanceof MouseEvent&&(document.addEventListener("mousemove",vd),document.addEventListener("mouseup",Cd)),gd instanceof TouchEvent&&(gd.preventDefault(),document.addEventListener("touchmove",vd,{passive:!1}),document.addEventListener("touchend",Cd))}}}}),J$1={ref:"canvas"};V$1(".alpha[data-v-24dc9656]{position:relative;touch-action:none}.slider[data-v-24dc9656]{background:#fff;box-shadow:0 0 1px 0 rgba(0,0,0,.3);left:0;pointer-events:none;position:absolute;width:100%;z-index:1}"),X$1.render=function(Ra,ed,ud,dd,hd,md){return openBlock(),createElementBlock("div",{class:"alpha",onMousedown:ed[0]||(ed[0]=withModifiers(function(){return Ra.onSelect&&Ra.onSelect.apply(Ra,arguments)},["prevent","stop"])),onTouchstart:ed[1]||(ed[1]=withModifiers(function(){return Ra.onSelect&&Ra.onSelect.apply(Ra,arguments)},["prevent","stop"]))},[createBaseVNode("canvas",J$1,null,512),createBaseVNode("div",{class:"slider",style:normalizeStyle(Ra.sliderStyle)},null,4)],32)},X$1.__scopeId="data-v-24dc9656",X$1.__file="src/picker/Alpha.vue";var q$1={rgb:"RGBA",hex:"HEX",hsl:"HSLA",hsv:"HSVA"},U$1={rgb:"RGB",hex:"HEX",hsl:"HSL",hsv:"HSV"},W$1={RGB:"rgb",RGBA:"rgb",HEX:"hex",HSL:"hsl",HSLA:"hsl",HSV:"hsv",HSVA:"hsv"};function K$1(Ra,ed){var ud=Object.keys(Ra);if(Object.getOwnPropertySymbols){var dd=Object.getOwnPropertySymbols(Ra);ed&&(dd=dd.filter(function(hd){return Object.getOwnPropertyDescriptor(Ra,hd).enumerable})),ud.push.apply(ud,dd)}return ud}function Q$1(Ra){for(var ed=1;ed1}),vd=computed(function(){var wd=Ra.options,Nd=Ra.showAlpha,Ld=Ra.value;return Array.isArray(wd)?Nd?wd.map(function(Ud){return q$1[Ud]}).filter(function(Ud){return!Ud.includes(Ld)}):wd.map(function(Ud){return U$1[Ud]}).filter(function(Ud){return!Ud.includes(Ld)}):[]}),Cd=function(wd){var Nd,Ld,Ud=wd.target;!((Nd=unref(dd))!==null&&Nd!==void 0&&Nd.isEqualNode(Ud))&&(!((Ld=unref(dd))===null||Ld===void 0)&&Ld.contains(Ud))||(md.value=!1)};return onMounted(function(){document.addEventListener("mouseup",Cd,!1)}),onUnmounted(function(){document.removeEventListener("mouseup",Cd,!1)}),{targetRef:dd,selectorRef:hd,selectorStyle:gd,isShowSelector:md,isNeedSelect:yd,formatOptions:vd,onShow:function(){yd.value&&(md.value=!0)},onFormatChange:function(wd){ud("change",W$1[wd])}}}}),re={class:"format"},ne={key:0,class:"arrow"},oe=["onClick"];V$1(".format[data-v-5f6e8f5e]{position:relative}.label[data-v-5f6e8f5e]{align-items:center;background:#e7e8e9;color:#999;display:flex;float:left;font-weight:500;height:30px;justify-content:center;position:relative;width:60px}[pick-colors-theme=dark] .label[data-v-5f6e8f5e]{background:#252930;color:#999}.arrow[data-v-5f6e8f5e]{height:6px;margin-bottom:4px;margin-left:5px;transform:rotate(135deg);width:6px}.arrow[data-v-5f6e8f5e],[pick-colors-theme=dark] .arrow[data-v-5f6e8f5e]{border-right:1px solid #999;border-top:1px solid #999}.selector[data-v-5f6e8f5e]{align-items:center;background:#f7f8f9;border-radius:5px;box-shadow:0 0 16px 0 rgba(0,0,0,.16);cursor:pointer;display:flex;flex-direction:column;font-weight:400;justify-content:center;padding:4px}[pick-colors-theme=dark] .selector[data-v-5f6e8f5e]{background:#252930;color:#999}.selector-item[data-v-5f6e8f5e]{align-items:center;display:flex;height:30px;justify-content:center;width:60px}.selector-item[data-v-5f6e8f5e]:hover{background:#e1f2fe}[pick-colors-theme=dark] .selector-item[data-v-5f6e8f5e]{color:#fff}[pick-colors-theme=dark] .selector-item[data-v-5f6e8f5e]:hover{background:#0087fa}.active-selector-item[data-v-5f6e8f5e]{background:#e1f2fe}[pick-colors-theme=dark] .active-selector-item[data-v-5f6e8f5e]{background:#0087fa}.v-enter-active[data-v-5f6e8f5e],.v-leave-active[data-v-5f6e8f5e]{opacity:1;transform:scaleY(1);transform-origin:center top;transition:opacity .2s ease-in-out,transform .2s ease-in-out}.v-enter-from[data-v-5f6e8f5e],.v-leave-to[data-v-5f6e8f5e]{opacity:0;transform:scaleY(0)}"),te.render=function(Ra,ed,ud,dd,hd,md){return openBlock(),createElementBlock("div",re,[createBaseVNode("div",{class:"label",ref:"targetRef",onClick:ed[0]||(ed[0]=function(){return Ra.onShow&&Ra.onShow.apply(Ra,arguments)})},[createBaseVNode("span",null,toDisplayString(Ra.value),1),Ra.isNeedSelect?(openBlock(),createElementBlock("div",ne)):createCommentVNode("v-if",!0)],512),createVNode(Transition$1,null,{default:withCtx(function(){return[Ra.isShowSelector?(openBlock(),createElementBlock("div",{key:0,class:"selector",ref:"selectorRef",style:normalizeStyle(Ra.selectorStyle)},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Ra.formatOptions,function(gd){return openBlock(),createElementBlock("div",{class:"selector-item",key:gd,onClick:function(yd){return Ra.onFormatChange(gd)}},toDisplayString(gd),9,oe)}),128))],4)):createCommentVNode("v-if",!0)]}),_:1})])},te.__scopeId="data-v-5f6e8f5e",te.__file="src/picker/input-value/FormatValue.vue";var ae$1=defineComponent({name:"Input",components:{FormatValue:te},props:{format:{type:String,default:"RGBA"},value:{type:String,default:""},width:{type:Number},showAlpha:{type:Boolean},formatOptions:{type:[Boolean,Array]}},emits:["change","focus","blur","enter","formatChange"],setup:function(Ra,ed){var ud=ed.emit;return{onInput:function(dd){var hd;ud("change",(hd=dd.target)===null||hd===void 0?void 0:hd.value)},valueStyle:computed(function(){return{minWidth:"".concat(Ra.width,"px"),maxWidth:"".concat(Ra.width,"px"),width:"".concat(Ra.width,"px")}}),onFocus:function(){ud("focus")},onBlur:function(){ud("blur")},onEnter:function(){ud("enter")},onFormatChange:function(dd){ud("formatChange",dd)}}}}),ie={class:"input"},ce$1=[".value"];function le(Ra,ed){var ud=Object.keys(Ra);if(Object.getOwnPropertySymbols){var dd=Object.getOwnPropertySymbols(Ra);ed&&(dd=dd.filter(function(hd){return Object.getOwnPropertyDescriptor(Ra,hd).enumerable})),ud.push.apply(ud,dd)}return ud}function ue(Ra){for(var ed=1;ed0?parseFloat(dd.toFixed(2)):dd),ed){case"hsl":var Cd=se(md,gd/100,yd/100);return"hsla(".concat(md.toFixed(0),", ").concat(Math.round(100*Cd[1]),"%, ").concat(Math.round(100*Cd[2]),"%, ").concat(vd,")");case"hsv":return"hsva(".concat(md.toFixed(0),", ").concat(Math.round(gd),"%, ").concat(Math.round(yd),"%, ").concat(vd,")");case"rgb":var wd=he(md,gd,yd),Nd=wd.r,Ld=wd.g,Ud=wd.b;return"rgba(".concat(Nd,", ").concat(Ld,", ").concat(Ud,", ").concat(vd,")");default:return"".concat(pe(he(md,gd,yd))).concat(de(255*vd))}else switch(ed){case"hsl":var jd=se(md,gd/100,yd/100);return"hsl(".concat(md.toFixed(0),", ").concat(Math.round(100*jd[1]),"%, ").concat(Math.round(100*jd[2]),"%)");case"hsv":return"hsv(".concat(md.toFixed(0),", ").concat(Math.round(gd),"%, ").concat(Math.round(yd),"%)");case"rgb":var Gd=he(md,gd,yd),Yd=Gd.r,zd=Gd.g,qd=Gd.b;return"rgb(".concat(Yd,", ").concat(zd,", ").concat(qd,")");default:return pe(he(md,gd,yd))}},ge=function(Ra){var ed=Ra.r,ud=Ra.g,dd=Ra.b;ed=ve(ed,255),ud=ve(ud,255),dd=ve(dd,255);var hd,md=Math.max(ed,ud,dd),gd=Math.min(ed,ud,dd),yd=md,vd=md-gd,Cd=md===0?0:vd/md;if(md===gd)hd=0;else{switch(md){case ed:hd=(ud-dd)/vd+(ud2&&arguments[2]!==void 0)||arguments[2])switch(ed){case"rgb":var ud=we(Ra),dd=ud.r,hd=ud.g,md=ud.b,gd=ud.a;return ue(ue({},ge({r:dd,g:hd,b:md})),{},{a:+gd});case"hsv":var yd=ke(Ra);return{h:yd.h,s:yd.s,v:yd.v,a:yd.a};case"hsl":var vd=Se(Ra),Cd=vd.h,wd=vd.s,Nd=vd.l,Ld=vd.a;return ue(ue({},ye({h:Cd,s:wd,l:Nd})),{},{a:+Ld});default:var Ud=be$1(Ra),jd=Ud.r,Gd=Ud.g,Yd=Ud.b,zd=Ud.a;return ue(ue({},ge({r:jd,g:Gd,b:Yd})),{},{a:zd/255})}else switch(ed){case"rgb":return ue(ue({},ge(we(Ra))),{},{a:1});case"hsv":var qd=ke(Ra);return{h:qd.h,s:qd.s,v:qd.v,a:1};case"hsl":return ue(ue({},ye(Se(Ra))),{},{a:1});default:return ue(ue({},ge(be$1(Ra))),{},{a:1})}},Oe=function(Ra){return Ra.match(/^#/)?"hex":Ra.match(/^rgb/)?"rgb":Ra.match(/^hsl/)?"hsl":Ra.match(/^hsv/)?"hsv":"hex"},Ee=function(Ra){var ed=Ra.h,ud=Ra.s,dd=Ra.v,hd=Ra.a;return isNaN(ed)&&isNaN(ud)&&isNaN(dd)?null:(isNaN(ed)&&(ed=0),isNaN(ud)&&(ud=0),isNaN(dd)&&(dd=0),isNaN(hd)&&(hd=1),{h:ed,s:ud,v:dd,a:hd})},Ae=defineComponent({name:"ColorItem",props:{size:{type:[Number,String],default:20},width:{type:[Number,String]},height:{type:[Number,String]},value:{type:String,default:""},border:{type:Boolean,default:!0},borderRadius:{type:Number,default:5},selected:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1}},emits:["select"],setup:function(Ra){var ed=ref$1(),ud=inject("theme",{theme:"light"}).theme,dd=computed(function(){return parseFloat((Ra.width||Ra.size)+"")}),hd=computed(function(){return parseFloat((Ra.height||Ra.size)+"")}),md=computed(function(){return{width:"".concat(unref(dd),"px"),height:"".concat(unref(hd),"px"),border:Ra.border?"1px solid ".concat(unref(ud)==="dark"?"#434345":"#d9d9d9"):"",borderRadius:"".concat(Ra.borderRadius,"px"),boxShadow:Ra.selected?"0 0 3px 2px ".concat(unref(ud)==="dark"?"#2681ff":"#1890ff"):""}}),gd=function(){var yd=ed.value.getContext("2d");ed.value.width=unref(dd),ed.value.height=unref(hd);var vd=function(Cd){var wd=document.createElement("canvas"),Nd=wd.getContext("2d"),Ld=2*Cd;return wd.width=Ld,wd.height=Ld,Nd.fillStyle="#ffffff",Nd.fillRect(0,0,Ld,Ld),Nd.fillStyle="#ccd5db",Nd.fillRect(0,0,Cd,Cd),Nd.fillRect(Cd,Cd,Cd,Cd),wd}(5);yd.fillStyle=yd.createPattern(vd,"repeat"),yd.fillRect(0,0,unref(dd),unref(hd)),yd.fillStyle=Ra.value,yd.fillRect(0,0,unref(dd),unref(hd))};return watch(function(){return Ra.value},function(){gd()}),onMounted(function(){gd()}),{canvas:ed,colorItemStyle:md}}}),Ne=["draggable"];V$1(".color-item[data-v-02da71fd]{display:inline-block;vertical-align:top}"),Ae.render=function(Ra,ed,ud,dd,hd,md){return openBlock(),createElementBlock("canvas",{class:"color-item",style:normalizeStyle(Ra.colorItemStyle),ref:"canvas",draggable:Ra.draggable},null,12,Ne)},Ae.__scopeId="data-v-02da71fd",Ae.__file="src/color-item/ColorItem.vue";var Ie=defineComponent({name:"Colors",components:{ColorItem:Ae},props:{colors:{type:Array,default:function(){return[]}},selectedIndex:{type:Number,default:-1}},emits:["change"],setup:function(Ra,ed){var ud=ed.emit;return{onSelectColor:function(dd,hd){ud("change",dd,hd)},useColors:computed(function(){return Ra.colors.map(function(dd){return xe(dd,"hex",!0)})})}}}),Fe={class:"colors"};function _e$1(Ra,ed){var ud=Object.keys(Ra);if(Object.getOwnPropertySymbols){var dd=Object.getOwnPropertySymbols(Ra);ed&&(dd=dd.filter(function(hd){return Object.getOwnPropertyDescriptor(Ra,hd).enumerable})),ud.push.apply(ud,dd)}return ud}function Le(Ra){for(var ed=1;ed0?(openBlock(),createBlock(wd,{key:0,class:"colors",colors:Ra.colors,"selected-index":Ra.selectColorIndex,onChange:Ra.onSelectColor},null,8,["colors","selected-index","onChange"])):createCommentVNode("v-if",!0)])],4)},Pe.__scopeId="data-v-6ceadec6",Pe.__file="src/picker/Picker.vue";var Be=defineComponent({name:"AddColorItem",props:{size:{type:Number,default:20},selected:{type:Boolean,default:!1}},setup:function(Ra){var ed=inject("theme",{theme:"light"}).theme;return{addColorItemStyle:computed(function(){return{width:"".concat(Ra.size,"px"),height:"".concat(Ra.size,"px"),lineHeight:"".concat(Ra.size,"px"),boxShadow:Ra.selected?"0 0 3px 2px ".concat(unref(ed)==="dark"?"#2681ff":"#1890ff"):""}})}}});V$1(".add-color-item[data-v-ceb1719c]{background:#fff;border:1px solid #d9d9d9;border-radius:5px;vertical-align:top}.container[data-v-ceb1719c]{pointer-events:none;transform:scale(.9);transform-origin:center}[pick-colors-theme=dark] .add-color-item[data-v-ceb1719c]{background:#141414;border:1px solid #434343}path[data-v-ceb1719c]{fill:#000}[pick-colors-theme=dark] path[data-v-ceb1719c]{fill:#fff}"),Be.render=function(Ra,ed,ud,dd,hd,md){return openBlock(),createElementBlock("svg",{class:"add-color-item",style:normalizeStyle(Ra.addColorItemStyle),viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},ed[0]||(ed[0]=[createBaseVNode("g",{class:"container"},[createBaseVNode("path",{d:"M544 464V160h-80v304H160v80h304v304h80V544h304v-80z"})],-1)]),4)},Be.__scopeId="data-v-ceb1719c",Be.__file="src/add-color-item/AddColorItem.vue";var Re=defineComponent({name:"ColorPicker",components:{ColorItem:Ae,Picker:Pe,AddColorItem:Be},props:{value:{type:[String,Array]},theme:{type:String,default:"light"},size:{type:[Number,String],default:20},width:{type:[Number,String]},height:{type:[Number,String]},format:{type:String},showPicker:{type:Boolean,default:void 0},showAlpha:{type:Boolean,default:!1},addColor:{type:Boolean,default:!1},deleteColor:{type:Boolean,default:!0},max:{type:Number,default:13},popupContainer:{type:[String,Object,Boolean],default:"body"},zIndex:{type:Number,default:1e3},colors:{type:Array,default:function(){return["#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","#ff4500","#ff7d4d","#00babd","#1f93ff","#fa64c3"]}},position:{type:String},placement:{type:String},formatOptions:{type:[Boolean,Array],default:!1}},emits:["change","update:value","update:showPicker","overflowMax","closePicker","formatChange"],setup:function(Ra,ed){var ud=ed.emit,dd=ref$1([]),hd=computed(function(){return unref(dd).map(function(_f){return xe(_f,"hex",Ra.showAlpha)})}),md=ref$1("hex");watch(function(){return Ra.format},function(){md.value=Ra.format},{immediate:!0}),watch(function(){return Ra.value},function(){var _f=Ra.value||"",vf=Array.isArray(_f)?_f:[_f];dd.value=vf.map(function(gf){return xe(gf,unref(md),Ra.showAlpha)})},{immediate:!0});var gd=ref$1(void 0),yd=computed(function(){return unref(dd)[unref(gd)]}),vd=ref$1(!1);watch(function(){return Ra.showPicker},function(){vd.value=Ra.showPicker},{immediate:!0});var Cd,wd,Nd=ref$1(null),Ld=ref$1(null),Ud=ee(Nd,Ld,{defaultStyle:{zIndex:Ra.zIndex},strategy:Ra.position,placement:Ra.placement}).style,jd=function(){unref(Nd)==null&&(Nd.value=unref(xf)[0]),unref(gd)==null&&(gd.value=0),Ra.showPicker===void 0?vd.value=!0:ud("update:showPicker",!0)},Gd=function(){gd.value=void 0,Ra.showPicker===void 0?vd.value=!1:ud("update:showPicker",!1),ud("closePicker",toRaw(Array.isArray(Ra.value)||Ra.addColor?unref(dd):unref(dd)[0]))},Yd=ref$1(),zd=function(){var _f=j$1(z$1.mark(function vf(gf){var Af,Df,kf,Cf;return z$1.wrap(function(If){for(;;)switch(If.prev=If.next){case 0:if(Df=gf.target,(kf=(Af=Df.dataset)===null||Af===void 0?void 0:Af.index)!=null&&kf!==""){If.next=4;break}return If.abrupt("return");case 4:if(Cf=+kf,unref(gd)!==Cf){If.next=7;break}return If.abrupt("return");case 7:unref(gd)!=null&&unref(gd)!==Cf?(Gd(),Cd&&clearTimeout(Cd),Cd=setTimeout(function(){jd(),clearTimeout(Cd)},100)):jd(),gd.value=Cf,Nd.value=Df;case 10:case"end":return If.stop()}},vf)}));return function(vf){return _f.apply(this,arguments)}}(),qd=function(){var _f=j$1(z$1.mark(function vf(gf){var Af,Df,kf,Cf,If;return z$1.wrap(function(Ff){for(;;)switch(Ff.prev=Ff.next){case 0:if(Cf=gf.target,!(!((Af=unref(Yd))!==null&&Af!==void 0&&Af.isEqualNode(Cf))&&(!((Df=unref(Yd))===null||Df===void 0)&&Df.contains(Cf)))){Ff.next=4;break}return Ff.abrupt("return");case 4:if(If=(kf=unref(Ld))===null||kf===void 0?void 0:kf.$el,!(If!=null&&If.contains(Cf))){Ff.next=8;break}return Ff.abrupt("return");case 8:wd&&clearTimeout(wd),wd=setTimeout(function(){unref(vd)&&Gd()},0);case 10:case"end":return Ff.stop()}},vf)}));return function(vf){return _f.apply(this,arguments)}}();watch(vd,function(){unref(vd)&&(jd(),clearTimeout(wd))});var Wd,Xd=ref$1(Ra.max>unref(dd).length),Jd=computed(function(){return typeof Ra.popupContainer=="string"||L$1(Ra.popupContainer)==="object"&&Ra.popupContainer!=null?Ra.popupContainer:"body"}),Zd=computed(function(){return typeof Ra.popupContainer=="boolean"&&Ra.popupContainer===!1}),mf=computed(function(){return Ra.theme});watch(function(){return[Ra.theme,unref(Ld)]},function(){nextTick$1(function(){var _f,vf;(_f=unref(Yd))===null||_f===void 0||_f.setAttribute("pick-colors-theme",unref(mf)),(vf=unref(Ld))===null||vf===void 0||(vf=vf.$el)===null||vf===void 0||vf.setAttribute("pick-colors-theme",unref(mf))})},{immediate:!0}),provide("theme",{theme:mf});var xf=ref$1([]);return onMounted(function(){document.addEventListener("mouseup",qd,!1),Ra.showPicker&&jd()}),onUnmounted(function(){document.removeEventListener("mouseup",qd,!1),Cd&&(clearTimeout(Cd),Cd=null),wd&&(clearTimeout(wd),wd=null)}),{valueList:dd,colorItemSelected:function(_f){return(Ra.addColor?unref(dd).length>0:unref(dd).length>1)&&unref(gd)===_f},selectedColor:yd,selectedIndex:gd,isShowPicker:vd,addColorItemShow:Xd,onPickerChange:function(_f){var vf=unref(gd),gf=unref(dd).slice(),Af=unref(dd).length;if(vf!=null){vf>=0?gf[vf]=_f:(gd.value=Af,gf.push(_f));var Df="";Df=Array.isArray(Ra.value)||Ra.addColor?gf:_f,dd.value=Array.isArray(Df)?Df:[Df],ud("update:value",Df),ud("change",Df,_f,vf),Ra.addColor&&Af>=Ra.max&&(Xd.value=!1,ud("overflowMax"))}},colorPicker:Yd,onColorClick:zd,pickerRef:Ld,onColorItemDragStart:function(_f){_f.dataTransfer.effectAllowed="move";var vf=_f.target;Wd=+vf.dataset.index},onColorItemDragOver:function(_f){},onColorItemDrop:function(_f){var vf=+_f.target.dataset.index,gf=_$1(unref(dd)),Af=gf[Wd];gf.splice(Wd,1);var Df=gf.slice(0,vf),kf=gf.splice(vf),Cf=Df.concat([Af]).concat(kf);ud("update:value",Cf),ud("change",Cf,Cf[Wd],Wd)},colorItemsRef:xf,pickerStyle:Ud,values:hd,teleportDisabled:Zd,toPopupContainer:Jd,formatValue:md,onFormatChange:function(_f){md.value=_f,ud("formatChange",_f)}}}});V$1(".color-picker[data-v-3c43ade8]{display:inline-block}.color-item[data-v-3c43ade8]{margin:5px}.add-color-item[data-v-3c43ade8]{display:inline-block;margin:5px}.picker[data-v-3c43ade8]{overflow:hidden}.v-enter-active[data-v-3c43ade8],.v-leave-active[data-v-3c43ade8]{opacity:1;transform:scaleY(1);transform-origin:center top;transition:opacity .2s ease-in-out,transform .2s ease-in-out}.v-enter-from[data-v-3c43ade8],.v-leave-to[data-v-3c43ade8]{opacity:0;transform:scaleY(0)}"),Re.render=function(Ra,ed,ud,dd,hd,md){var gd=resolveComponent("color-item"),yd=resolveComponent("add-color-item"),vd=resolveComponent("picker");return openBlock(),createElementBlock("div",{class:"color-picker",ref:"colorPicker",onDragstart:ed[0]||(ed[0]=withModifiers(function(){return Ra.onColorItemDragStart&&Ra.onColorItemDragStart.apply(Ra,arguments)},["stop"])),onDragover:ed[1]||(ed[1]=withModifiers(function(){return Ra.onColorItemDragOver&&Ra.onColorItemDragOver.apply(Ra,arguments)},["prevent","stop"])),onDrop:ed[2]||(ed[2]=withModifiers(function(){return Ra.onColorItemDrop&&Ra.onColorItemDrop.apply(Ra,arguments)},["prevent","stop"])),onClick:ed[3]||(ed[3]=withModifiers(function(){return Ra.onColorClick&&Ra.onColorClick.apply(Ra,arguments)},["stop"]))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Ra.values,function(Cd,wd){return openBlock(),createBlock(gd,{class:"color-item",key:wd,ref_for:!0,ref:function(Nd){return Ra.colorItemsRef[wd]=Nd},size:Ra.size,width:Ra.width,height:Ra.height,value:Cd,selected:Ra.colorItemSelected(wd),"data-index":wd,draggable:Ra.valueList.length>1,format:Ra.formatValue},null,8,["size","width","height","value","selected","data-index","draggable","format"])}),128)),Ra.addColor&&Ra.addColorItemShow?(openBlock(),createBlock(yd,{key:0,class:"add-color-item",ref:"addColorItem",selected:Ra.colorItemSelected(-1),"data-index":-1},null,8,["selected"])):createCommentVNode("v-if",!0),(openBlock(),createBlock(Teleport,{to:Ra.toPopupContainer,disabled:Ra.teleportDisabled},[createVNode(Transition$1,null,{default:withCtx(function(){return[Ra.isShowPicker?(openBlock(),createBlock(vd,{key:0,class:"picker",style:normalizeStyle(Ra.pickerStyle),ref:"pickerRef",value:Ra.selectedColor,format:Ra.formatValue,"show-alpha":Ra.showAlpha,colors:Ra.colors,formatOptions:Ra.formatOptions,onChange:Ra.onPickerChange,onFormatChange:Ra.onFormatChange},null,8,["style","value","format","show-alpha","colors","formatOptions","onChange","onFormatChange"])):createCommentVNode("v-if",!0)]}),_:1})],8,["to","disabled"]))],544)},Re.__scopeId="data-v-3c43ade8",Re.__file="src/ColorPicker.vue";const _hoisted_1$8={class:"space-y-2"},_hoisted_2$5={class:"grid grid-cols-3 justify-items-center gap-2"},_hoisted_3$4={class:"space-y-2"},_hoisted_4$4={class:"grid grid-cols-3 justify-items-center gap-2"},_hoisted_5$3={class:"space-y-2"},_hoisted_6$3={class:"grid grid-cols-5 justify-items-center gap-2"},_hoisted_7$1={class:"space-y-2"},_hoisted_8$1={class:"grid grid-cols-3 justify-items-center gap-2"},_hoisted_9={class:"space-y-2"},_hoisted_10={class:"space-y-2"},_hoisted_11={class:"space-y-2"},_hoisted_12={class:"grid grid-cols-3 justify-items-center gap-2"},_hoisted_13={class:"space-y-2"},_hoisted_14={class:"grid grid-cols-5 justify-items-center gap-2"},_hoisted_15={class:"space-y-2"},_hoisted_16={class:"grid grid-cols-5 justify-items-center gap-2"},_hoisted_17={class:"space-y-2"},_hoisted_18={class:"grid grid-cols-5 justify-items-center gap-2"},_hoisted_19={class:"space-y-2"},_hoisted_20={class:"grid grid-cols-5 justify-items-center gap-2"},_hoisted_21={class:"space-y-2"},_hoisted_22={class:"grid grid-cols-5 justify-items-center gap-2"},_hoisted_23={class:"space-y-2"},_hoisted_24={class:"grid grid-cols-5 justify-items-center gap-2"},_hoisted_25={class:"space-y-2"},_sfc_main$R=defineComponent({__name:"RightSlider",setup(Ra){const ed=useStore(),ud=useDisplayStore(),{isDark:dd,primaryColor:hd}=storeToRefs(ed);function md(){ud.toggleShowCssEditor(),setTimeout(()=>{ed.cssEditor.refresh()},50)}const gd=ref$1(!1),yd=ref$1("");watch(gd,()=>{gd.value&&(yd.value="")});const vd=useTemplateRef("pickColorsContainer"),Cd=ref$1("rgb"),wd=ref$1(["rgb","hex","hsl","hsv"]);return(Nd,Ld)=>{const Ud=_sfc_main$1o,jd=_sfc_main$W,Gd=_sfc_main$X,Yd=_sfc_main$_,zd=_sfc_main$V,qd=_sfc_main$$;return openBlock(),createElementBlock("div",{class:normalizeClass(["overflow-hidden border-l-2 border-gray/20 bg-white transition-width duration-300 dark:bg-[#191919]",{"w-0 border-l-0":!unref(ed).isOpenRightSlider,"w-100":unref(ed).isOpenRightSlider}]),style:{"z-index":"1"}},[createBaseVNode("div",{class:normalizeClass(["space-y-4 h-full overflow-auto p-4 transition-transform",{"translate-x-0":unref(ed).isOpenRightSlider,"translate-x-full":!unref(ed).isOpenRightSlider}])},[createBaseVNode("div",_hoisted_1$8,[Ld[14]||(Ld[14]=createBaseVNode("h2",null,"主题",-1)),createBaseVNode("div",_hoisted_2$5,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(themeOptions),({label:Wd,value:Xd})=>(openBlock(),createBlock(Ud,{key:Xd,class:normalizeClass(["w-full",{"border-black dark:border-white":unref(ed).theme===Xd}]),variant:"outline",onClick:Jd=>unref(ed).themeChanged(Xd)},{default:withCtx(()=>[createTextVNode(toDisplayString(Wd),1)]),_:2},1032,["class","onClick"]))),128))])]),createBaseVNode("div",_hoisted_3$4,[Ld[15]||(Ld[15]=createBaseVNode("h2",null,"字体",-1)),createBaseVNode("div",_hoisted_4$4,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(fontFamilyOptions),({label:Wd,value:Xd})=>(openBlock(),createBlock(Ud,{key:Xd,variant:"outline",class:normalizeClass(["w-full",{"border-black dark:border-white":unref(ed).fontFamily===Xd}]),onClick:Jd=>unref(ed).fontChanged(Xd)},{default:withCtx(()=>[createTextVNode(toDisplayString(Wd),1)]),_:2},1032,["class","onClick"]))),128))])]),createBaseVNode("div",_hoisted_5$3,[Ld[16]||(Ld[16]=createBaseVNode("h2",null,"字号",-1)),createBaseVNode("div",_hoisted_6$3,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(fontSizeOptions),({value:Wd,desc:Xd})=>(openBlock(),createBlock(Ud,{key:Wd,variant:"outline",class:normalizeClass(["w-full",{"border-black dark:border-white":unref(ed).fontSize===Wd}]),onClick:Jd=>unref(ed).sizeChanged(Wd)},{default:withCtx(()=>[createTextVNode(toDisplayString(Xd),1)]),_:2},1032,["class","onClick"]))),128))])]),createBaseVNode("div",_hoisted_7$1,[Ld[17]||(Ld[17]=createBaseVNode("h2",null,"主题色",-1)),createBaseVNode("div",_hoisted_8$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(colorOptions),({label:Wd,value:Xd})=>(openBlock(),createBlock(Ud,{key:Xd,class:normalizeClass(["w-full",{"border-black dark:border-white":unref(ed).primaryColor===Xd}]),variant:"outline",onClick:Jd=>unref(ed).colorChanged(Xd)},{default:withCtx(()=>[createBaseVNode("span",{class:"mr-2 inline-block h-4 w-4 rounded-full",style:normalizeStyle({background:Xd})},null,4),createTextVNode(" "+toDisplayString(Wd),1)]),_:2},1032,["class","onClick"]))),128))])]),createBaseVNode("div",_hoisted_9,[Ld[18]||(Ld[18]=createBaseVNode("h2",null,"自定义主题色",-1)),createBaseVNode("div",{ref_key:"pickColorsContainer",ref:vd},[unref(vd)?(openBlock(),createBlock(unref(Re),{key:0,value:unref(hd),"onUpdate:value":Ld[0]||(Ld[0]=Wd=>isRef(hd)?hd.value=Wd:null),"show-alpha":"",format:unref(Cd),"format-options":unref(wd),theme:unref(ed).isDark?"dark":"light","popup-container":unref(vd),onChange:unref(ed).colorChanged},null,8,["value","format","format-options","theme","popup-container","onChange"])):createCommentVNode("",!0)],512)]),createBaseVNode("div",_hoisted_10,[Ld[19]||(Ld[19]=createBaseVNode("h2",null,"代码块主题",-1)),createBaseVNode("div",null,[createVNode(qd,{modelValue:unref(ed).codeBlockTheme,"onUpdate:modelValue":[Ld[1]||(Ld[1]=Wd=>unref(ed).codeBlockTheme=Wd),unref(ed).codeBlockThemeChanged]},{default:withCtx(()=>[createVNode(Gd,null,{default:withCtx(()=>[createVNode(jd,{placeholder:"Select a code block theme"})]),_:1}),createVNode(zd,null,{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(codeBlockThemeOptions),({label:Wd,value:Xd})=>(openBlock(),createBlock(Yd,{key:Wd,value:Xd},{default:withCtx(()=>[createTextVNode(toDisplayString(Wd),1)]),_:2},1032,["value"]))),128))]),_:1})]),_:1},8,["modelValue","onUpdate:modelValue"])])]),createBaseVNode("div",_hoisted_11,[Ld[20]||(Ld[20]=createBaseVNode("h2",null,"图注格式",-1)),createBaseVNode("div",_hoisted_12,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(legendOptions),({label:Wd,value:Xd})=>(openBlock(),createBlock(Ud,{key:Xd,class:normalizeClass(["w-full",{"border-black dark:border-white":unref(ed).legend===Xd}]),variant:"outline",onClick:Jd=>unref(ed).legendChanged(Xd)},{default:withCtx(()=>[createTextVNode(toDisplayString(Wd),1)]),_:2},1032,["class","onClick"]))),128))])]),createBaseVNode("div",_hoisted_13,[Ld[23]||(Ld[23]=createBaseVNode("h2",null,"Mac 代码块",-1)),createBaseVNode("div",_hoisted_14,[createVNode(Ud,{class:normalizeClass(["w-full",{"border-black dark:border-white":unref(ed).isMacCodeBlock}]),variant:"outline",onClick:Ld[2]||(Ld[2]=Wd=>!unref(ed).isMacCodeBlock&&unref(ed).macCodeBlockChanged())},{default:withCtx(()=>Ld[21]||(Ld[21]=[createTextVNode(" 开启 ")])),_:1},8,["class"]),createVNode(Ud,{class:normalizeClass(["w-full",{"border-black dark:border-white":!unref(ed).isMacCodeBlock}]),variant:"outline",onClick:Ld[3]||(Ld[3]=Wd=>unref(ed).isMacCodeBlock&&unref(ed).macCodeBlockChanged())},{default:withCtx(()=>Ld[22]||(Ld[22]=[createTextVNode(" 关闭 ")])),_:1},8,["class"])])]),createBaseVNode("div",_hoisted_15,[Ld[26]||(Ld[26]=createBaseVNode("h2",null,"微信外链转底部引用",-1)),createBaseVNode("div",_hoisted_16,[createVNode(Ud,{class:normalizeClass(["w-full",{"border-black dark:border-white":unref(ed).isCiteStatus}]),variant:"outline",onClick:Ld[4]||(Ld[4]=Wd=>!unref(ed).isCiteStatus&&unref(ed).citeStatusChanged())},{default:withCtx(()=>Ld[24]||(Ld[24]=[createTextVNode(" 开启 ")])),_:1},8,["class"]),createVNode(Ud,{class:normalizeClass(["w-full",{"border-black dark:border-white":!unref(ed).isCiteStatus}]),variant:"outline",onClick:Ld[5]||(Ld[5]=Wd=>unref(ed).isCiteStatus&&unref(ed).citeStatusChanged())},{default:withCtx(()=>Ld[25]||(Ld[25]=[createTextVNode(" 关闭 ")])),_:1},8,["class"])])]),createBaseVNode("div",_hoisted_17,[Ld[29]||(Ld[29]=createBaseVNode("h2",null,"段落首行缩进",-1)),createBaseVNode("div",_hoisted_18,[createVNode(Ud,{class:normalizeClass(["w-full",{"border-black dark:border-white":unref(ed).isUseIndent}]),variant:"outline",onClick:Ld[6]||(Ld[6]=Wd=>!unref(ed).isUseIndent&&unref(ed).useIndentChanged())},{default:withCtx(()=>Ld[27]||(Ld[27]=[createTextVNode(" 开启 ")])),_:1},8,["class"]),createVNode(Ud,{class:normalizeClass(["w-full",{"border-black dark:border-white":!unref(ed).isUseIndent}]),variant:"outline",onClick:Ld[7]||(Ld[7]=Wd=>unref(ed).isUseIndent&&unref(ed).useIndentChanged())},{default:withCtx(()=>Ld[28]||(Ld[28]=[createTextVNode(" 关闭 ")])),_:1},8,["class"])])]),createBaseVNode("div",_hoisted_19,[Ld[32]||(Ld[32]=createBaseVNode("h2",null,"自定义 CSS 面板",-1)),createBaseVNode("div",_hoisted_20,[createVNode(Ud,{class:normalizeClass(["w-full",{"border-black dark:border-white":unref(ud).isShowCssEditor}]),variant:"outline",onClick:Ld[8]||(Ld[8]=Wd=>!unref(ud).isShowCssEditor&&md())},{default:withCtx(()=>Ld[30]||(Ld[30]=[createTextVNode(" 开启 ")])),_:1},8,["class"]),createVNode(Ud,{class:normalizeClass(["w-full",{"border-black dark:border-white":!unref(ud).isShowCssEditor}]),variant:"outline",onClick:Ld[9]||(Ld[9]=Wd=>unref(ud).isShowCssEditor&&md())},{default:withCtx(()=>Ld[31]||(Ld[31]=[createTextVNode(" 关闭 ")])),_:1},8,["class"])])]),createBaseVNode("div",_hoisted_21,[Ld[35]||(Ld[35]=createBaseVNode("h2",null,"编辑区位置",-1)),createBaseVNode("div",_hoisted_22,[createVNode(Ud,{class:normalizeClass(["w-full",{"border-black dark:border-white":unref(ed).isEditOnLeft}]),variant:"outline",onClick:Ld[10]||(Ld[10]=Wd=>!unref(ed).isEditOnLeft&&unref(ed).toggleEditOnLeft())},{default:withCtx(()=>Ld[33]||(Ld[33]=[createTextVNode(" 左侧 ")])),_:1},8,["class"]),createVNode(Ud,{class:normalizeClass(["w-full",{"border-black dark:border-white":!unref(ed).isEditOnLeft}]),variant:"outline",onClick:Ld[11]||(Ld[11]=Wd=>unref(ed).isEditOnLeft&&unref(ed).toggleEditOnLeft())},{default:withCtx(()=>Ld[34]||(Ld[34]=[createTextVNode(" 右侧 ")])),_:1},8,["class"])])]),createBaseVNode("div",_hoisted_23,[Ld[36]||(Ld[36]=createBaseVNode("h2",null,"模式",-1)),createBaseVNode("div",_hoisted_24,[createVNode(Ud,{class:normalizeClass(["w-full",{"border-black dark:border-white":!unref(dd)}]),variant:"outline",onClick:Ld[12]||(Ld[12]=Wd=>unref(ed).toggleDark(!1))},{default:withCtx(()=>[createVNode(unref(Sun),{class:"h-4 w-4"})]),_:1},8,["class"]),createVNode(Ud,{class:normalizeClass(["w-full",{"border-black dark:border-white":unref(dd)}]),variant:"outline",onClick:Ld[13]||(Ld[13]=Wd=>unref(ed).toggleDark(!0))},{default:withCtx(()=>[createVNode(unref(Moon),{class:"h-4 w-4"})]),_:1},8,["class"])])]),createBaseVNode("div",_hoisted_25,[Ld[38]||(Ld[38]=createBaseVNode("h2",null,"样式配置",-1)),createVNode(Ud,{onClick:unref(ed).resetStyleConfirm},{default:withCtx(()=>Ld[37]||(Ld[37]=[createTextVNode(" 重置 ")])),_:1},8,["onClick"])])],2)],2)}}}),_sfc_main$Q=defineComponent({__name:"DialogDescription",props:{asChild:{type:Boolean},as:{},class:{}},setup(Ra){const ed=Ra,ud=computed(()=>{const{class:hd,...md}=ed;return md}),dd=Ot$3(ud);return(hd,md)=>(openBlock(),createBlock(unref(Iu$3),mergeProps(unref(dd),{class:unref(cn$4)("text-sm text-muted-foreground",ed.class)}),{default:withCtx(()=>[renderSlot(hd.$slots,"default")]),_:3},16,["class"]))}}),_hoisted_1$7={class:"cssEditor-wrapper h-full flex flex-col border-l-2 border-gray/50"},_sfc_main$P=defineComponent({__name:"CssEditor",setup(Ra){const ed=useStore(),ud=useDisplayStore(),dd=ref$1(!1),hd=ref$1(""),md=ref$1(["",ed.cssContentConfig.active]);function gd(zd){hd.value=zd,dd.value=!0}function yd(){if(!hd.value.trim()){Ke.error("新建失败,方案名不可为空");return}if(!ed.validatorTabName(hd.value)){Ke.error("不能与现有方案重名");return}ed.renameTab(hd.value),dd.value=!1,Ke.success("修改成功~")}const vd=ref$1(!1),Cd=ref$1("");function wd(){if(!Cd.value.trim()){Ke.error("新建失败,方案名不可为空");return}if(!ed.validatorTabName(Cd.value)){Ke.error("不能与现有方案重名");return}ed.addCssContentTab(Cd.value),vd.value=!1,ed.cssContentConfig.active=Cd.value,md.value=[md.value[1],Cd.value],Ke.success("新建成功~")}const Nd=ref$1(!1),Ld=ref$1("");function Ud(zd){Ld.value=zd,Nd.value=!0}function jd(){const zd=ed.cssContentConfig.tabs;if(zd.length===1){Ke.warning("至少保留一个方案");return}let qd=ed.cssContentConfig.active;qd===Ld.value&&zd.forEach((Wd,Xd)=>{if(Wd.name===Ld.value){const Jd=zd[Xd+1]||zd[Xd-1];Jd&&(qd=Jd.name)}}),ed.tabChanged(qd),ed.cssContentConfig.tabs=zd.filter(Wd=>Wd.name!==Ld.value),Ke.success("删除成功~")}function Gd(){Cd.value=`方案${ed.cssContentConfig.tabs.length+1}`,vd.value=!0}function Yd(zd){if(zd==="add"){ed.cssContentConfig.active=md.value[1],Gd();return}md.value=[md.value[1],zd],ed.tabChanged(zd)}return(zd,qd)=>{const Wd=_sfc_main$T,Xd=_sfc_main$U,Jd=_sfc_main$14,Zd=_sfc_main$16,mf=_sfc_main$Q,xf=_sfc_main$17,_f=_sfc_main$1e,vf=_sfc_main$1o,gf=_sfc_main$1f,Af=_sfc_main$1g,Df=_sfc_main$1h,kf=_sfc_main$1j,Cf=_sfc_main$1k,If=_sfc_main$1l,Ff=_sfc_main$1m,oh=_sfc_main$1n,Eh=_sfc_main$1p,_h=_sfc_main$1q,Mh=_sfc_main$1r;return openBlock(),createBlock(Transition$1,{"enter-active-class":"bounceInRight"},{default:withCtx(()=>[withDirectives(createBaseVNode("div",_hoisted_1$7,[createVNode(Jd,{modelValue:unref(ed).cssContentConfig.active,"onUpdate:modelValue":[qd[0]||(qd[0]=lh=>unref(ed).cssContentConfig.active=lh),Yd]},{default:withCtx(()=>[createVNode(Xd,{class:"w-full overflow-x-auto"},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(ed).cssContentConfig.tabs,lh=>(openBlock(),createBlock(Wd,{key:lh.name,value:lh.name,class:"flex-1"},{default:withCtx(()=>[createTextVNode(toDisplayString(lh.title)+" ",1),withDirectives(createVNode(unref(PenLine),{class:"inline size-4 rounded-full p-0.5 transition-color hover:bg-gray-200 dark:hover:bg-gray-600",onClick:rh=>gd(lh.name)},null,8,["onClick"]),[[vShow,unref(ed).cssContentConfig.active===lh.name]]),withDirectives(createVNode(unref(X$6),{class:"inline size-4 rounded-full p-0.5 transition-color hover:bg-gray-200 dark:hover:bg-gray-600",onClick:withModifiers(rh=>Ud(lh.name),["self"])},null,8,["onClick"]),[[vShow,unref(ed).cssContentConfig.active===lh.name]])]),_:2},1032,["value"]))),128)),createVNode(Wd,{value:"add"},{default:withCtx(()=>[createVNode(unref(Plus),{class:"h-5 w-5"})]),_:1})]),_:1})]),_:1},8,["modelValue"]),qd[21]||(qd[21]=createBaseVNode("textarea",{id:"cssEditor",type:"textarea",placeholder:"Your custom css here."},null,-1)),createVNode(Df,{open:unref(vd),"onUpdate:open":qd[4]||(qd[4]=lh=>isRef(vd)?vd.value=lh:null)},{default:withCtx(()=>[createVNode(Af,{class:"sm:max-w-[425px]"},{default:withCtx(()=>[createVNode(xf,null,{default:withCtx(()=>[createVNode(Zd,null,{default:withCtx(()=>qd[9]||(qd[9]=[createTextVNode("新建自定义 CSS")])),_:1}),createVNode(mf,null,{default:withCtx(()=>qd[10]||(qd[10]=[createTextVNode(" 请输入方案名称 ")])),_:1})]),_:1}),createVNode(_f,{modelValue:unref(Cd),"onUpdate:modelValue":qd[1]||(qd[1]=lh=>isRef(Cd)?Cd.value=lh:null)},null,8,["modelValue"]),createVNode(gf,null,{default:withCtx(()=>[createVNode(vf,{variant:"outline",onClick:qd[2]||(qd[2]=lh=>vd.value=!1)},{default:withCtx(()=>qd[11]||(qd[11]=[createTextVNode(" 取消 ")])),_:1}),createVNode(vf,{onClick:qd[3]||(qd[3]=lh=>wd())},{default:withCtx(()=>qd[12]||(qd[12]=[createTextVNode(" 保存 ")])),_:1})]),_:1})]),_:1})]),_:1},8,["open"]),createVNode(Df,{open:unref(dd),"onUpdate:open":qd[7]||(qd[7]=lh=>isRef(dd)?dd.value=lh:null)},{default:withCtx(()=>[createVNode(Af,{class:"sm:max-w-[425px]"},{default:withCtx(()=>[createVNode(xf,null,{default:withCtx(()=>[createVNode(Zd,null,{default:withCtx(()=>qd[13]||(qd[13]=[createTextVNode("编辑方案名称")])),_:1}),createVNode(mf,null,{default:withCtx(()=>qd[14]||(qd[14]=[createTextVNode(" 请输入新的方案名称 ")])),_:1})]),_:1}),createVNode(_f,{modelValue:unref(hd),"onUpdate:modelValue":qd[5]||(qd[5]=lh=>isRef(hd)?hd.value=lh:null)},null,8,["modelValue"]),createVNode(gf,null,{default:withCtx(()=>[createVNode(vf,{variant:"outline",onClick:qd[6]||(qd[6]=lh=>dd.value=!1)},{default:withCtx(()=>qd[15]||(qd[15]=[createTextVNode(" 取消 ")])),_:1}),createVNode(vf,{onClick:yd},{default:withCtx(()=>qd[16]||(qd[16]=[createTextVNode(" 保存 ")])),_:1})]),_:1})]),_:1})]),_:1},8,["open"]),createVNode(Mh,{open:unref(Nd),"onUpdate:open":qd[8]||(qd[8]=lh=>isRef(Nd)?Nd.value=lh:null)},{default:withCtx(()=>[createVNode(_h,null,{default:withCtx(()=>[createVNode(If,null,{default:withCtx(()=>[createVNode(kf,null,{default:withCtx(()=>qd[17]||(qd[17]=[createTextVNode("提示")])),_:1}),createVNode(Cf,null,{default:withCtx(()=>qd[18]||(qd[18]=[createTextVNode(" 此操作将删除该自定义方案,是否继续? ")])),_:1})]),_:1}),createVNode(Eh,null,{default:withCtx(()=>[createVNode(Ff,null,{default:withCtx(()=>qd[19]||(qd[19]=[createTextVNode("取消")])),_:1}),createVNode(oh,{onClick:jd},{default:withCtx(()=>qd[20]||(qd[20]=[createTextVNode(" 确认 ")])),_:1})]),_:1})]),_:1})]),_:1},8,["open"])],512),[[vShow,unref(ud).isShowCssEditor]])]),_:1})}}}),__unplugin_components_9=_export_sfc(_sfc_main$P,[["__scopeId","data-v-a83b50e8"]]),_sfc_main$O=defineComponent({__name:"BackTop",props:{left:{},top:{},right:{},bottom:{},visibilityHeight:{},target:{},onClick:{type:Function}},setup(Ra){const ed=Ra,ud=ref$1(ed.visibilityHeight??400),dd=ref$1(!1),hd=ref$1(null);function md(yd){var vd,Cd;console.log("scrollToTop"),(vd=hd.value)==null||vd.scrollTo({top:0,left:0,behavior:"smooth"}),(Cd=ed.onClick)==null||Cd.call(ed,yd)}const gd=throttle$1(yd=>{yd instanceof HTMLElement?dd.value=yd.scrollTop>ud.value:dd.value=window.scrollY>ud.value},200,{edges:["leading","trailing"]});return onMounted(()=>{ed.target?hd.value=document.getElementById(ed.target):hd.value=window,hd.value.addEventListener("scroll",()=>{gd(hd.value)})}),onUnmounted(()=>{hd.value.removeEventListener("scroll",()=>{gd(hd.value)})}),(yd,vd)=>{const Cd=_sfc_main$1o;return unref(dd)?(openBlock(),createBlock(Cd,{key:0,variant:"outline",size:"icon",class:"fixed z-50 rounded-full",style:normalizeStyle({left:`${yd.left}px`,top:`${yd.top}px`,right:`${yd.right}px`,bottom:`${yd.bottom}px`}),onClick:md},{default:withCtx(()=>[createVNode(unref(ArrowUpFromLine))]),_:1},8,["style"])):createCommentVNode("",!0)}}}),_sfc_main$N=defineComponent({__name:"ContextMenu",props:{dir:{},modal:{type:Boolean}},emits:["update:open"],setup(Ra,{emit:ed}){const hd=Se$6(Ra,ed);return(md,gd)=>(openBlock(),createBlock(unref(rm$1),normalizeProps(guardReactiveProps(unref(hd))),{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},16))}}),_sfc_main$M=defineComponent({__name:"ContextMenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},sticky:{},hideWhenDetached:{type:Boolean},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=computed(()=>{const{class:gd,...yd}=ud;return yd}),md=Se$6(hd,dd);return(gd,yd)=>(openBlock(),createBlock(unref(um),null,{default:withCtx(()=>[createVNode(unref(dm),mergeProps(unref(md),{class:unref(cn$4)("z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",ud.class)}),{default:withCtx(()=>[renderSlot(gd.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),_sfc_main$L=defineComponent({__name:"ContextMenuShortcut",props:{class:{}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(cn$4)("ml-auto text-xs tracking-widest text-muted-foreground",ed.class))},[renderSlot(ud.$slots,"default")],2))}}),_sfc_main$K=defineComponent({__name:"ContextMenuSeparator",props:{asChild:{type:Boolean},as:{},class:{}},setup(Ra){const ed=Ra,ud=computed(()=>{const{class:dd,...hd}=ed;return hd});return(dd,hd)=>(openBlock(),createBlock(unref(vm$1),mergeProps(ud.value,{class:unref(cn$4)("-mx-1 my-1 h-px bg-border",ed.class)}),null,16,["class"]))}}),_sfc_main$J=defineComponent({__name:"ContextMenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{},inset:{type:Boolean}},emits:["select"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=computed(()=>{const{class:gd,...yd}=ud;return yd}),md=Se$6(hd,dd);return(gd,yd)=>(openBlock(),createBlock(unref(fm),mergeProps(unref(md),{class:unref(cn$4)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",gd.inset&&"pl-8",ud.class)}),{default:withCtx(()=>[renderSlot(gd.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$I=defineComponent({__name:"ContextMenuTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(Ra){const ud=Ot$3(Ra);return(dd,hd)=>(openBlock(),createBlock(unref(im),normalizeProps(guardReactiveProps(unref(ud))),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16))}}),_sfc_main$H=defineComponent({__name:"DropdownMenu",props:{defaultOpen:{type:Boolean},open:{type:Boolean},dir:{},modal:{type:Boolean}},emits:["update:open"],setup(Ra,{emit:ed}){const hd=Se$6(Ra,ed);return(md,gd)=>(openBlock(),createBlock(unref(uh),normalizeProps(guardReactiveProps(unref(hd))),{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},16))}}),_sfc_main$G=defineComponent({__name:"DropdownMenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},side:{},sideOffset:{default:4},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=computed(()=>{const{class:gd,...yd}=ud;return yd}),md=Se$6(hd,dd);return(gd,yd)=>(openBlock(),createBlock(unref(ch$1),null,{default:withCtx(()=>[createVNode(unref(fh),mergeProps(unref(md),{class:unref(cn$4)("z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",ud.class)}),{default:withCtx(()=>[renderSlot(gd.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),_sfc_main$F=defineComponent({__name:"DropdownMenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{},inset:{type:Boolean}},setup(Ra){const ed=Ra,ud=computed(()=>{const{class:hd,...md}=ed;return md}),dd=Ot$3(ud);return(hd,md)=>(openBlock(),createBlock(unref(vh),mergeProps(unref(dd),{class:unref(cn$4)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",hd.inset&&"pl-8",ed.class)}),{default:withCtx(()=>[renderSlot(hd.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$E=defineComponent({__name:"DropdownMenuTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{}},setup(Ra){const ud=Ot$3(Ra);return(dd,hd)=>(openBlock(),createBlock(unref(dh),mergeProps({class:"outline-none"},unref(ud)),{default:withCtx(()=>[renderSlot(dd.$slots,"default")]),_:3},16))}}),_sfc_main$D=defineComponent({__name:"DialogTrigger",props:{asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createBlock(unref(ou$3),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),_hoisted_1$6=["onClick"],_hoisted_2$4={class:"line-clamp-1"},_sfc_main$C=defineComponent({__name:"PostSlider",setup(Ra){const ed=useStore(),ud=ref$1(!1),dd=ref$1("");watch(ud,()=>{ud.value&&(dd.value="")});function hd(){if(dd.value===""){Ke.error("内容标题不可为空");return}ed.addPost(dd.value),ud.value=!1,Ke.success("内容新增成功")}const md=ref$1(-1),gd=ref$1(!1),yd=ref$1("");function vd(Ud){md.value=Ud,yd.value=ed.posts[Ud].title,gd.value=!0}function Cd(){if(yd.value===""){Ke.error("内容标题不可为空");return}ed.renamePost(md.value,yd.value),gd.value=!1,Ke.success("内容重命名成功")}const wd=ref$1(!1);function Nd(Ud){md.value=Ud,wd.value=!0}function Ld(){ed.delPost(md.value),wd.value=!1,Ke.success("内容删除成功")}return(Ud,jd)=>{const Gd=_sfc_main$1o,Yd=_sfc_main$D,zd=_sfc_main$16,qd=_sfc_main$Q,Wd=_sfc_main$17,Xd=_sfc_main$1e,Jd=_sfc_main$1f,Zd=_sfc_main$1g,mf=_sfc_main$1h,xf=_sfc_main$E,_f=_sfc_main$F,vf=_sfc_main$G,gf=_sfc_main$H,Af=_sfc_main$1j,Df=_sfc_main$1k,kf=_sfc_main$1l,Cf=_sfc_main$1m,If=_sfc_main$1n,Ff=_sfc_main$1p,oh=_sfc_main$1q,Eh=_sfc_main$1r;return openBlock(),createElementBlock("div",{class:normalizeClass(["overflow-hidden bg-gray/20 transition-width duration-300 dark:bg-[#191c20]",{"w-0":!unref(ed).isOpenPostSlider,"w-50":unref(ed).isOpenPostSlider}])},[createBaseVNode("nav",{class:normalizeClass(["space-y-1 h-full overflow-auto border-r-2 border-gray/20 p-2 transition-transform",{"translate-x-100":unref(ed).isOpenPostSlider,"-translate-x-full":!unref(ed).isOpenPostSlider}])},[createVNode(mf,{open:unref(ud),"onUpdate:open":jd[2]||(jd[2]=_h=>isRef(ud)?ud.value=_h:null)},{default:withCtx(()=>[createVNode(Yd,{"as-child":""},{default:withCtx(()=>[createVNode(Gd,{variant:"outline",class:"w-full",size:"xs"},{default:withCtx(()=>[createVNode(unref(Plus)),jd[9]||(jd[9]=createTextVNode(" 新增内容 "))]),_:1})]),_:1}),createVNode(Zd,null,{default:withCtx(()=>[createVNode(Wd,null,{default:withCtx(()=>[createVNode(zd,null,{default:withCtx(()=>jd[10]||(jd[10]=[createTextVNode("新增内容")])),_:1}),createVNode(qd,null,{default:withCtx(()=>jd[11]||(jd[11]=[createTextVNode(" 请输入内容名称 ")])),_:1})]),_:1}),createVNode(Xd,{modelValue:unref(dd),"onUpdate:modelValue":jd[0]||(jd[0]=_h=>isRef(dd)?dd.value=_h:null)},null,8,["modelValue"]),createVNode(Jd,null,{default:withCtx(()=>[createVNode(Gd,{onClick:jd[1]||(jd[1]=_h=>hd())},{default:withCtx(()=>jd[12]||(jd[12]=[createTextVNode(" 确 定 ")])),_:1})]),_:1})]),_:1})]),_:1},8,["open"]),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(ed).posts,(_h,Mh)=>(openBlock(),createElementBlock("a",{key:_h.title,href:"#",class:normalizeClass([{"bg-primary text-primary-foreground shadow-lg dark:border-1 border-primary":unref(ed).currentPostIndex===Mh,"dark:bg-gray/30 dark:text-primary-foreground-dark dark:border-primary-dark":unref(ed).currentPostIndex===Mh},"hover:bg-primary/90 hover:text-primary-foreground dark:hover:border-primary-dark h-8 w-full inline-flex items-center justify-start gap-2 whitespace-nowrap rounded px-2 text-sm transition-colors dark:text-white dark:hover:bg-gray/20 dark:hover:text-white"]),onClick:lh=>unref(ed).currentPostIndex=Mh},[createBaseVNode("span",_hoisted_2$4,toDisplayString(_h.title),1),createVNode(gf,null,{default:withCtx(()=>[createVNode(xf,{"as-child":""},{default:withCtx(()=>[createVNode(Gd,{size:"xs",variant:"ghost",class:"ml-auto px-1.5"},{default:withCtx(()=>[createVNode(unref(Ellipsis),{class:"size-4"})]),_:1})]),_:1}),createVNode(vf,null,{default:withCtx(()=>[createVNode(_f,{onClick:withModifiers(lh=>vd(Mh),["stop"])},{default:withCtx(()=>[createVNode(unref(PenLine),{class:"mr-2 size-4"}),jd[13]||(jd[13]=createTextVNode(" 重命名 "))]),_:2},1032,["onClick"]),unref(ed).posts.length>1?(openBlock(),createBlock(_f,{key:0,onClick:withModifiers(lh=>Nd(Mh),["stop"])},{default:withCtx(()=>[createVNode(unref(Trash),{class:"mr-2 size-4"}),jd[14]||(jd[14]=createTextVNode(" 删除 "))]),_:2},1032,["onClick"])):createCommentVNode("",!0)]),_:2},1024)]),_:2},1024)],10,_hoisted_1$6))),128)),createVNode(mf,{open:unref(gd),"onUpdate:open":jd[6]||(jd[6]=_h=>isRef(gd)?gd.value=_h:null)},{default:withCtx(()=>[createVNode(Zd,{class:"sm:max-w-[425px]"},{default:withCtx(()=>[createVNode(Wd,null,{default:withCtx(()=>[createVNode(zd,null,{default:withCtx(()=>jd[15]||(jd[15]=[createTextVNode("编辑内容名称")])),_:1}),createVNode(qd,null,{default:withCtx(()=>jd[16]||(jd[16]=[createTextVNode(" 请输入新的内容名称 ")])),_:1})]),_:1}),createVNode(Xd,{modelValue:unref(yd),"onUpdate:modelValue":jd[3]||(jd[3]=_h=>isRef(yd)?yd.value=_h:null)},null,8,["modelValue"]),createVNode(Jd,null,{default:withCtx(()=>[createVNode(Gd,{variant:"outline",onClick:jd[4]||(jd[4]=_h=>gd.value=!1)},{default:withCtx(()=>jd[17]||(jd[17]=[createTextVNode(" 取消 ")])),_:1}),createVNode(Gd,{onClick:jd[5]||(jd[5]=_h=>Cd())},{default:withCtx(()=>jd[18]||(jd[18]=[createTextVNode(" 保存 ")])),_:1})]),_:1})]),_:1})]),_:1},8,["open"]),createVNode(Eh,{open:unref(wd),"onUpdate:open":jd[8]||(jd[8]=_h=>isRef(wd)?wd.value=_h:null)},{default:withCtx(()=>[createVNode(oh,null,{default:withCtx(()=>[createVNode(kf,null,{default:withCtx(()=>[createVNode(Af,null,{default:withCtx(()=>jd[19]||(jd[19]=[createTextVNode("提示")])),_:1}),createVNode(Df,null,{default:withCtx(()=>jd[20]||(jd[20]=[createTextVNode(" 此操作将删除该内容,是否继续? ")])),_:1})]),_:1}),createVNode(Ff,null,{default:withCtx(()=>[createVNode(Cf,null,{default:withCtx(()=>jd[21]||(jd[21]=[createTextVNode("取消")])),_:1}),createVNode(If,{onClick:jd[7]||(jd[7]=_h=>Ld())},{default:withCtx(()=>jd[22]||(jd[22]=[createTextVNode(" 确认 ")])),_:1})]),_:1})]),_:1})]),_:1},8,["open"])],2)],2)}}}),_hoisted_1$5={class:"mt-4"},_hoisted_2$3={key:0,class:"py-4 text-center"},_hoisted_3$3={key:1,class:"max-h-[400px] flex flex-col overflow-y-auto"},_hoisted_4$3={class:"mb-2 flex items-center gap-2"},_hoisted_5$2=["src"],_hoisted_6$2=["href"],_sfc_main$B=defineComponent({__name:"PostTaskDialog",props:{post:{},open:{type:Boolean}},emits:["update:open"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=computed({get:()=>ud.open,set:vd=>dd("update:open",vd)}),md=ref$1(null),gd=ref$1(!1);async function yd(){var vd;if(ud.post)try{(vd=window.$syncer)==null||vd.addTask({post:{title:ud.post.title,content:ud.post.content,markdown:ud.post.markdown,thumb:ud.post.thumb,desc:ud.post.desc},accounts:ud.post.accounts.filter(Cd=>Cd.checked)},Cd=>{md.value=Cd},()=>{gd.value=!1})}catch(Cd){console.error("发布失败:",Cd)}}return watch(()=>ud.open,vd=>{vd&&yd()}),(vd,Cd)=>(openBlock(),createBlock(unref(_sfc_main$1h),{open:unref(hd),"onUpdate:open":Cd[0]||(Cd[0]=wd=>isRef(hd)?hd.value=wd:null)},{default:withCtx(()=>[createVNode(unref(_sfc_main$1g),null,{default:withCtx(()=>{var wd;return[createVNode(unref(_sfc_main$17),null,{default:withCtx(()=>[createVNode(unref(_sfc_main$16),null,{default:withCtx(()=>Cd[1]||(Cd[1]=[createTextVNode("提交发布任务")])),_:1})]),_:1}),createBaseVNode("div",_hoisted_1$5,[unref(md)?(openBlock(),createElementBlock("div",_hoisted_3$3,[(openBlock(!0),createElementBlock(Fragment,null,renderList((wd=unref(md))==null?void 0:wd.accounts,Nd=>(openBlock(),createElementBlock("div",{key:Nd.uid+Nd.displayName,class:"border-b py-4 last:border-b-0"},[createBaseVNode("div",_hoisted_4$3,[Nd.icon?(openBlock(),createElementBlock("img",{key:0,src:Nd.icon,class:"object-cover h-5 w-5",alt:""},null,8,_hoisted_5$2)):createCommentVNode("",!0),createBaseVNode("span",null,toDisplayString(Nd.title)+" - "+toDisplayString(Nd.displayName||Nd.home),1)]),createBaseVNode("div",{class:normalizeClass(["w-full flex-1 gap-2 overflow-auto pl-7 text-sm",{"text-yellow-600":Nd.status==="uploading","text-red-600":Nd.status==="failed","text-green-600":Nd.status==="done"}])},[Nd.status==="uploading"?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(Nd.msg||"发布中"),1)],64)):createCommentVNode("",!0),Nd.status==="failed"?(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(" 同步失败, 错误内容:"+toDisplayString(Nd.error),1)],64)):createCommentVNode("",!0),Nd.status==="done"&&Nd.editResp?(openBlock(),createElementBlock(Fragment,{key:2},[Cd[2]||(Cd[2]=createTextVNode(" 同步成功 ")),Nd.type!=="wordpress"&&Nd.editResp?(openBlock(),createElementBlock("a",{key:0,href:Nd.editResp.draftLink,class:"ml-2 text-blue-500 hover:underline",referrerPolicy:"no-referrer",target:"_blank"},"查看草稿",8,_hoisted_6$2)):createCommentVNode("",!0)],64)):createCommentVNode("",!0)],2)]))),128))])):(openBlock(),createElementBlock("div",_hoisted_2$3," 等待发布.. "))])]}),_:1})]),_:1},8,["open"]))}}),__unplugin_components_13=_export_sfc(_sfc_main$B,[["__scopeId","data-v-3407b3ac"]]),_sfc_main$A=defineComponent({__name:"Textarea",props:{class:{},defaultValue:{},modelValue:{}},setup(Ra,{emit:ed}){const ud=Ra,hd=useVModel$1(ud,"modelValue",ed,{passive:!0,defaultValue:ud.defaultValue});return(md,gd)=>withDirectives((openBlock(),createElementBlock("textarea",{"onUpdate:modelValue":gd[0]||(gd[0]=yd=>isRef(hd)?hd.value=yd:null),class:normalizeClass(unref(cn$4)("flex min-h-20 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",ud.class))},null,2)),[[vModelText,unref(hd)]])}}),_sfc_main$z=defineComponent({__name:"AlertDescription",props:{class:{}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(cn$4)("text-sm [&_p]:leading-relaxed",ed.class))},[renderSlot(ud.$slots,"default")],2))}}),_sfc_main$y=defineComponent({__name:"AlertTitle",props:{class:{}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createElementBlock("h5",{class:normalizeClass(unref(cn$4)("mb-1 font-medium leading-none tracking-tight",ed.class))},[renderSlot(ud.$slots,"default")],2))}}),alertVariants=cva("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),_sfc_main$x=defineComponent({__name:"Alert",props:{class:{},variant:{}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(cn$4)(unref(alertVariants)({variant:ud.variant}),ed.class)),role:"alert"},[renderSlot(ud.$slots,"default")],2))}}),_hoisted_1$4={class:"w-full flex items-center gap-4"},_hoisted_2$2={class:"w-full flex items-center gap-4"},_hoisted_3$2={class:"w-full flex items-start gap-4"},_hoisted_4$2={class:"w-full flex items-start gap-4"},_hoisted_5$1={class:"flex flex-1 flex-col gap-2"},_hoisted_6$1={class:"flex flex-row items-center gap-4"},_hoisted_7={class:"flex items-center gap-2 text-sm"},_hoisted_8=["src"],_sfc_main$w=defineComponent({__name:"PostInfo",setup(Ra){const ed=useStore(),{output:ud,editor:dd}=storeToRefs(ed),hd=ref$1(!1),md=ref$1(!1),gd=ref$1([]),yd=ref$1(!1),vd=ref$1({title:"",desc:"",thumb:"",content:"",markdown:"",accounts:[]}),Cd=computed(()=>md.value&&vd.value.accounts.some(Gd=>Gd.checked));async function wd(){var zd,qd;md.value&&gd.value.length===0&&await Nd();let Gd={thumb:"",title:"",desc:"",content:"",markdown:"",accounts:[]};const Yd=gd.value.filter(Wd=>!["weixin","ipfs"].includes(Wd.type));try{Gd={thumb:((zd=document.querySelector("#output img"))==null?void 0:zd.src)??"",title:[1,2,3,4,5,6].map(Wd=>document.querySelector(`#output h${Wd}`)).filter(Wd=>Wd)[0].textContent??"",desc:document.querySelector("#output p").textContent??"",content:ud.value,markdown:((qd=dd.value)==null?void 0:qd.getValue())??"",accounts:Yd}}catch(Wd){console.log("error",Wd)}finally{vd.value={...Gd}}}async function Nd(){return new Promise(Gd=>{var Yd;(Yd=window.$syncer)==null||Yd.getAccounts(zd=>{gd.value=zd.map(qd=>({...qd,checked:!0})),Gd()})})}function Ld(){vd.value.accounts=vd.value.accounts.filter(Gd=>Gd.checked),yd.value=!0,hd.value=!1}function Ud(Gd){Gd||(hd.value=!1)}function jd(){if(window.$syncer!==void 0){md.value=!0;return}let Gd=0;const Yd=setInterval(async()=>{if(window.$syncer!==void 0){md.value=!0,await Nd(),clearInterval(Yd);return}Gd++,Gd>10&&clearInterval(Yd)},500)}return onBeforeMount(()=>{jd()}),(Gd,Yd)=>{const zd=_sfc_main$1o,qd=_sfc_main$D,Wd=_sfc_main$16,Xd=_sfc_main$17,Jd=_sfc_main$y,Zd=_sfc_main$z,mf=_sfc_main$x,xf=_sfc_main$18,_f=_sfc_main$1e,vf=_sfc_main$A,gf=_sfc_main$1f,Af=_sfc_main$1g,Df=_sfc_main$1h,kf=__unplugin_components_13;return openBlock(),createElementBlock(Fragment,null,[createVNode(Df,{open:unref(hd),"onUpdate:open":[Yd[4]||(Yd[4]=Cf=>isRef(hd)?hd.value=Cf:null),Ud]},{default:withCtx(()=>[createVNode(qd,null,{default:withCtx(()=>[createVNode(zd,{variant:"outline",onClick:wd},{default:withCtx(()=>Yd[6]||(Yd[6]=[createTextVNode(" 发布 ")])),_:1})]),_:1}),createVNode(Af,null,{default:withCtx(()=>[createVNode(Xd,null,{default:withCtx(()=>[createVNode(Wd,null,{default:withCtx(()=>Yd[7]||(Yd[7]=[createTextVNode("发布")])),_:1})]),_:1}),createVNode(mf,null,{default:withCtx(()=>[createVNode(unref(Info),{class:"h-4 w-4"}),createVNode(Jd,null,{default:withCtx(()=>Yd[8]||(Yd[8]=[createTextVNode("提示")])),_:1}),createVNode(Zd,null,{default:withCtx(()=>Yd[9]||(Yd[9]=[createTextVNode(" 此功能由第三方浏览器插件支持,本平台不保证安全性及同步准确度。 ")])),_:1})]),_:1}),unref(md)?createCommentVNode("",!0):(openBlock(),createBlock(mf,{key:0},{default:withCtx(()=>[createVNode(unref(Info),{class:"h-4 w-4"}),createVNode(Jd,null,{default:withCtx(()=>Yd[10]||(Yd[10]=[createTextVNode("未检测到插件")])),_:1}),createVNode(Zd,null,{default:withCtx(()=>[Yd[12]||(Yd[12]=createTextVNode(" 请安装 ")),createVNode(unref(O$4),{as:"a",class:"text-blue-500",href:"https://www.wechatsync.com/?utm_source=syncicon#install",target:"_blank"},{default:withCtx(()=>Yd[11]||(Yd[11]=[createTextVNode(" 文章同步助手 ")])),_:1}),Yd[13]||(Yd[13]=createTextVNode(" 插件 "))]),_:1})]),_:1})),createBaseVNode("div",_hoisted_1$4,[createVNode(xf,{for:"thumb",class:"w-10 text-end"},{default:withCtx(()=>Yd[14]||(Yd[14]=[createTextVNode(" 封面 ")])),_:1}),createVNode(_f,{id:"thumb",modelValue:unref(vd).thumb,"onUpdate:modelValue":Yd[0]||(Yd[0]=Cf=>unref(vd).thumb=Cf),placeholder:"自动提取第一张图"},null,8,["modelValue"])]),createBaseVNode("div",_hoisted_2$2,[createVNode(xf,{for:"title",class:"w-10 text-end"},{default:withCtx(()=>Yd[15]||(Yd[15]=[createTextVNode(" 标题 ")])),_:1}),createVNode(_f,{id:"title",modelValue:unref(vd).title,"onUpdate:modelValue":Yd[1]||(Yd[1]=Cf=>unref(vd).title=Cf),placeholder:"自动提取第一个标题"},null,8,["modelValue"])]),createBaseVNode("div",_hoisted_3$2,[createVNode(xf,{for:"desc",class:"w-10 text-end"},{default:withCtx(()=>Yd[16]||(Yd[16]=[createTextVNode(" 描述 ")])),_:1}),createVNode(vf,{id:"desc",modelValue:unref(vd).desc,"onUpdate:modelValue":Yd[2]||(Yd[2]=Cf=>unref(vd).desc=Cf),placeholder:"自动提取第一个段落"},null,8,["modelValue"])]),createBaseVNode("div",_hoisted_4$2,[createVNode(xf,{class:"w-10 text-end"},{default:withCtx(()=>Yd[17]||(Yd[17]=[createTextVNode(" 账号 ")])),_:1}),createBaseVNode("div",_hoisted_5$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(vd).accounts,Cf=>(openBlock(),createElementBlock("div",{key:Cf.uid+Cf.displayName,class:"flex items-center gap-2"},[createBaseVNode("label",_hoisted_6$1,[createVNode(unref(Wv),{checked:Cf.checked,"onUpdate:checked":If=>Cf.checked=If,class:"bg-background hover:bg-muted h-[25px] w-[25px] flex appearance-none items-center justify-center border border-gray-200 rounded-[4px] outline-none"},{default:withCtx(()=>[createVNode(unref(jv),null,{default:withCtx(()=>[Cf.checked?(openBlock(),createBlock(unref(Check),{key:0,class:"h-4 w-4"})):createCommentVNode("",!0)]),_:2},1024)]),_:2},1032,["checked","onUpdate:checked"]),createBaseVNode("span",_hoisted_7,[createBaseVNode("img",{src:Cf.icon,alt:"",class:"inline-block h-[20px] w-[20px]"},null,8,_hoisted_8),createTextVNode(" "+toDisplayString(Cf.title)+" - "+toDisplayString(Cf.displayName??Cf.home),1)])])]))),128))])]),createVNode(gf,null,{default:withCtx(()=>[createVNode(zd,{variant:"outline",onClick:Yd[3]||(Yd[3]=Cf=>hd.value=!1)},{default:withCtx(()=>Yd[18]||(Yd[18]=[createTextVNode(" 取 消 ")])),_:1}),createVNode(zd,{disabled:!unref(Cd),onClick:Ld},{default:withCtx(()=>Yd[19]||(Yd[19]=[createTextVNode(" 确 定 ")])),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1},8,["open"]),createVNode(kf,{open:unref(yd),"onUpdate:open":Yd[5]||(Yd[5]=Cf=>isRef(yd)?yd.value=Cf:null),post:unref(vd)},null,8,["open","post"])],64)}}}),_sfc_main$v=defineComponent({__name:"DropdownMenuRadioGroup",props:{modelValue:{},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(Ra,{emit:ed}){const hd=Se$6(Ra,ed);return(md,gd)=>(openBlock(),createBlock(unref(Ch),normalizeProps(guardReactiveProps(unref(hd))),{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},16))}}),_hoisted_1$3={class:"absolute left-2 h-3.5 w-3.5 flex items-center justify-center"},_sfc_main$u=defineComponent({__name:"DropdownMenuRadioItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{}},emits:["select"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=computed(()=>{const{class:gd,...yd}=ud;return yd}),md=Se$6(hd,dd);return(gd,yd)=>(openBlock(),createBlock(unref(wh),mergeProps(unref(md),{class:unref(cn$4)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",ud.class)}),{default:withCtx(()=>[createBaseVNode("span",_hoisted_1$3,[createVNode(unref(gh),null,{default:withCtx(()=>[createVNode(unref(Circle),{class:"h-2 w-2 fill-current"})]),_:1})]),renderSlot(gd.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$t=defineComponent({__name:"Separator",props:{orientation:{},decorative:{type:Boolean},asChild:{type:Boolean},as:{},class:{},label:{}},setup(Ra){const ed=Ra,ud=computed(()=>{const{class:dd,...hd}=ed;return hd});return(dd,hd)=>(openBlock(),createBlock(unref(ap$3),mergeProps(ud.value,{class:unref(cn$4)("shrink-0 bg-border relative",ed.orientation==="vertical"?"w-px h-full":"h-px w-full",ed.class)}),{default:withCtx(()=>[ed.label?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(cn$4)("text-xs text-muted-foreground bg-background absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 flex justify-center items-center",ed.orientation==="vertical"?"w-[1px] px-1 py-2":"h-[1px] py-1 px-2"))},toDisplayString(ed.label),3)):createCommentVNode("",!0)]),_:1},16,["class"]))}}),_sfc_main$s=defineComponent({__name:"TooltipProvider",props:{delayDuration:{},skipDelayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createBlock(unref(Hg),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),_sfc_main$r=defineComponent({__name:"Tooltip",props:{defaultOpen:{type:Boolean},open:{type:Boolean},delayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},emits:["update:open"],setup(Ra,{emit:ed}){const hd=Se$6(Ra,ed);return(md,gd)=>(openBlock(),createBlock(unref(Wg),normalizeProps(guardReactiveProps(unref(hd))),{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},16))}}),_sfc_main$q=defineComponent({inheritAttrs:!1,__name:"TooltipContent",props:{forceMount:{type:Boolean},ariaLabel:{},asChild:{type:Boolean},as:{},side:{},sideOffset:{default:4},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},class:{}},emits:["escapeKeyDown","pointerDownOutside"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=computed(()=>{const{class:gd,...yd}=ud;return yd}),md=Se$6(hd,dd);return(gd,yd)=>(openBlock(),createBlock(unref(qg),null,{default:withCtx(()=>[createVNode(unref(Ug),mergeProps({...unref(md),...gd.$attrs},{class:unref(cn$4)("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",ud.class)}),{default:withCtx(()=>[renderSlot(gd.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),_sfc_main$p=defineComponent({__name:"TooltipTrigger",props:{asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createBlock(unref(jg),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),_sfc_main$o=defineComponent({__name:"Menubar",props:{modelValue:{},defaultValue:{},dir:{},loop:{type:Boolean},class:{}},emits:["update:modelValue"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=computed(()=>{const{class:gd,...yd}=ud;return yd}),md=Se$6(hd,dd);return(gd,yd)=>(openBlock(),createBlock(unref(Uh),mergeProps(unref(md),{class:unref(cn$4)("flex h-10 items-center gap-x-1 rounded-md border bg-background p-1",ud.class)}),{default:withCtx(()=>[renderSlot(gd.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$n=defineComponent({__name:"AboutDialog",props:{visible:{type:Boolean,default:!1}},emits:["close"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed;function hd(yd){yd||dd("close")}const md=[{label:"GitHub 仓库",url:"https://github.com/doocs/md"},{label:"Gitee 仓库",url:"https://gitee.com/doocs/md"},{label:"GitCode 仓库",url:"https://gitcode.com/doocs/md"}];function gd(yd){window.open(yd,"_blank")}return(yd,vd)=>{const Cd=_sfc_main$16,wd=_sfc_main$17,Nd=_sfc_main$1o,Ld=_sfc_main$1f,Ud=_sfc_main$1g,jd=_sfc_main$1h;return openBlock(),createBlock(jd,{open:ud.visible,"onUpdate:open":hd},{default:withCtx(()=>[createVNode(Ud,null,{default:withCtx(()=>[createVNode(wd,null,{default:withCtx(()=>[createVNode(Cd,null,{default:withCtx(()=>vd[0]||(vd[0]=[createTextVNode("关于")])),_:1})]),_:1}),vd[1]||(vd[1]=createBaseVNode("div",{class:"text-center"},[createBaseVNode("h3",null,"一款高度简洁的微信 Markdown 编辑器"),createBaseVNode("p",null,"扫码关注公众号 Doocs,原创技术内容第一时间推送!"),createBaseVNode("img",{class:"mx-auto my-5",src:"https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/md/images/1648303220922-7e14aefa-816e-44c1-8604-ade709ca1c69.png",alt:"Doocs Markdown 编辑器",style:{width:"40%"}})],-1)),createVNode(Ld,{class:"sm:justify-evenly"},{default:withCtx(()=>[(openBlock(),createElementBlock(Fragment,null,renderList(md,Gd=>createVNode(Nd,{key:Gd.url,onClick:Yd=>gd(Gd.url)},{default:withCtx(()=>[createTextVNode(toDisplayString(Gd.label),1)]),_:2},1032,["onClick"])),64))]),_:1})]),_:1})]),_:1},8,["open"])}}}),_sfc_main$m=defineComponent({__name:"MenubarMenu",props:{value:{}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createBlock(unref(Gh),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),_sfc_main$l=defineComponent({__name:"MenubarContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},side:{},sideOffset:{default:8},align:{default:"start"},alignOffset:{default:-4},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(Ra){const ed=Ra,ud=computed(()=>{const{class:hd,...md}=ed;return md}),dd=Ot$3(ud);return(hd,md)=>(openBlock(),createBlock(unref(Yh),null,{default:withCtx(()=>[createVNode(unref(Xh),mergeProps(unref(dd),{class:unref(cn$4)("z-50 min-w-48 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",ed.class)}),{default:withCtx(()=>[renderSlot(hd.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),_hoisted_1$2={class:"absolute left-2 h-3.5 w-3.5 flex items-center justify-center"},_sfc_main$k=defineComponent({__name:"MenubarCheckboxItem",props:{checked:{type:[Boolean,String]},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{}},emits:["select","update:checked"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=computed(()=>{const{class:gd,...yd}=ud;return yd}),md=Se$6(hd,dd);return(gd,yd)=>(openBlock(),createBlock(unref(ty),mergeProps(unref(md),{class:unref(cn$4)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",ud.class)}),{default:withCtx(()=>[createBaseVNode("span",_hoisted_1$2,[createVNode(unref(ay$1),null,{default:withCtx(()=>[createVNode(unref(Check),{class:"h-4 w-4"})]),_:1})]),renderSlot(gd.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$j=defineComponent({__name:"MenubarTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(Ra){const ed=Ra,ud=computed(()=>{const{class:hd,...md}=ed;return md}),dd=Ot$3(ud);return(hd,md)=>(openBlock(),createBlock(unref(qh),mergeProps(unref(dd),{class:unref(cn$4)("flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none hover:bg-accent focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",ed.class)}),{default:withCtx(()=>[renderSlot(hd.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$i=defineComponent({__name:"HelpDropdown",setup(Ra){const ed=ref$1(!1);return(ud,dd)=>{const hd=_sfc_main$j,md=_sfc_main$k,gd=_sfc_main$l,yd=_sfc_main$m,vd=_sfc_main$n;return openBlock(),createElementBlock(Fragment,null,[createVNode(yd,null,{default:withCtx(()=>[createVNode(hd,null,{default:withCtx(()=>dd[2]||(dd[2]=[createTextVNode(" 帮助 ")])),_:1}),createVNode(gd,{align:"start"},{default:withCtx(()=>[createVNode(md,{onClick:dd[0]||(dd[0]=Cd=>ed.value=!0)},{default:withCtx(()=>dd[3]||(dd[3]=[createBaseVNode("span",null,"关于",-1)])),_:1})]),_:1})]),_:1}),createVNode(vd,{visible:unref(ed),onClose:dd[1]||(dd[1]=Cd=>ed.value=!1)},null,8,["visible"])],64)}}}),_sfc_main$h=defineComponent({__name:"HoverCard",props:{defaultOpen:{type:Boolean},open:{type:Boolean},openDelay:{},closeDelay:{}},emits:["update:open"],setup(Ra,{emit:ed}){const hd=Se$6(Ra,ed);return(md,gd)=>(openBlock(),createBlock(unref(Rh),normalizeProps(guardReactiveProps(unref(hd))),{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},16))}}),_sfc_main$g=defineComponent({__name:"HoverCardContent",props:{forceMount:{type:Boolean},side:{},sideOffset:{default:4},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(Ra){const ed=Ra,ud=computed(()=>{const{class:hd,...md}=ed;return md}),dd=Ot$3(ud);return(hd,md)=>(openBlock(),createBlock(unref(Oh),null,{default:withCtx(()=>[createVNode(unref(kh),mergeProps(unref(dd),{class:unref(cn$4)("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",ed.class)}),{default:withCtx(()=>[renderSlot(hd.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),_sfc_main$f=defineComponent({__name:"HoverCardTrigger",props:{asChild:{type:Boolean},as:{}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createBlock(unref(Ah),normalizeProps(guardReactiveProps(ed)),{default:withCtx(()=>[renderSlot(ud.$slots,"default")]),_:3},16))}}),_sfc_main$e=defineComponent({__name:"MenubarSeparator",props:{asChild:{type:Boolean},as:{},class:{}},setup(Ra){const ed=Ra,ud=computed(()=>{const{class:hd,...md}=ed;return md}),dd=Ot$3(ud);return(hd,md)=>(openBlock(),createBlock(unref(ey),mergeProps({class:unref(cn$4)("-mx-1 my-1 h-px bg-muted",ed.class)},unref(dd)),null,16,["class"]))}}),_sfc_main$d=defineComponent({__name:"MenubarSub",props:{defaultOpen:{type:Boolean},open:{type:Boolean}},emits:["update:open"],setup(Ra,{emit:ed}){const hd=Se$6(Ra,ed);return(md,gd)=>(openBlock(),createBlock(unref(sy),normalizeProps(guardReactiveProps(unref(hd))),{default:withCtx(()=>[renderSlot(md.$slots,"default")]),_:3},16))}}),_sfc_main$c=defineComponent({__name:"MenubarSubContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},sideOffset:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=computed(()=>{const{class:gd,...yd}=ud;return yd}),md=Se$6(hd,dd);return(gd,yd)=>(openBlock(),createBlock(unref(Yh),null,{default:withCtx(()=>[createVNode(unref(ry),mergeProps(unref(md),{class:unref(cn$4)("z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",ud.class)}),{default:withCtx(()=>[renderSlot(gd.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),_sfc_main$b=defineComponent({__name:"DropdownMenuShortcut",props:{class:{}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(cn$4)("ml-auto text-xs tracking-widest opacity-60",ed.class))},[renderSlot(ud.$slots,"default")],2))}}),_sfc_main$a=defineComponent({__name:"MenubarSubTrigger",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{},inset:{type:Boolean}},setup(Ra){const ed=Ra,ud=computed(()=>{const{class:hd,...md}=ed;return md}),dd=Ot$3(ud);return(hd,md)=>(openBlock(),createBlock(unref(iy),mergeProps(unref(dd),{class:unref(cn$4)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",hd.inset&&"pl-8",ed.class)}),{default:withCtx(()=>[renderSlot(hd.$slots,"default"),createVNode(unref(ChevronRight),{class:"ml-auto h-4 w-4"})]),_:3},16,["class"]))}}),_sfc_main$9=defineComponent({__name:"StyleOptionMenu",props:{title:{},options:{},current:{},change:{type:Function}},setup(Ra){const ed=Ra;function ud(dd,hd){switch(dd){case"字体":return{fontFamily:hd};case"字号":return{fontSize:hd};case"主题色":return{color:hd};default:return{}}}return(dd,hd)=>{const md=_sfc_main$a,gd=_sfc_main$b,yd=_sfc_main$k,vd=_sfc_main$c,Cd=_sfc_main$d;return openBlock(),createBlock(Cd,null,{default:withCtx(()=>[createVNode(md,null,{default:withCtx(()=>[hd[0]||(hd[0]=createBaseVNode("span",{class:"mr-2 h-4 w-4"},null,-1)),createBaseVNode("span",null,toDisplayString(ed.title),1)]),_:1}),createVNode(vd,{class:"max-h-56 overflow-auto"},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(dd.options,({label:wd,value:Nd,desc:Ld})=>(openBlock(),createBlock(yd,{key:Nd,label:wd,"model-value":Nd,class:"w-50",checked:dd.current===Nd,onClick:Ud=>dd.change(Nd)},{default:withCtx(()=>[createTextVNode(toDisplayString(wd)+" ",1),createVNode(gd,{style:normalizeStyle(ud(dd.title,Nd))},{default:withCtx(()=>[createTextVNode(toDisplayString(Ld),1)]),_:2},1032,["style"])]),_:2},1032,["label","model-value","checked","onClick"]))),128))]),_:1})]),_:1})}}}),_sfc_main$8=defineComponent({__name:"StyleDropdown",setup(Ra){const ed=useStore(),{toggleShowCssEditor:ud}=useDisplayStore(),{theme:dd,fontFamily:hd,fontSize:md,primaryColor:gd,codeBlockTheme:yd,legend:vd,isMacCodeBlock:Cd,cssEditor:wd}=storeToRefs(ed),{resetStyleConfirm:Nd,themeChanged:Ld,fontChanged:Ud,sizeChanged:jd,colorChanged:Gd,codeBlockThemeChanged:Yd,legendChanged:zd,macCodeBlockChanged:qd}=ed,Wd=ref$1(null);function Xd(){var _f;(_f=Wd.value)==null||_f.show()}function Jd(){ud(),setTimeout(()=>{wd.value.refresh()},50)}const Zd=useTemplateRef("pickColorsContainer"),mf=ref$1("rgb"),xf=ref$1(["rgb","hex","hsl","hsv"]);return(_f,vf)=>{const gf=_sfc_main$j,Af=_sfc_main$9,Df=_sfc_main$e,kf=_sfc_main$f,Cf=_sfc_main$g,If=_sfc_main$h,Ff=_sfc_main$k,oh=_sfc_main$l,Eh=_sfc_main$m;return openBlock(),createBlock(Eh,null,{default:withCtx(()=>[createVNode(gf,null,{default:withCtx(()=>vf[1]||(vf[1]=[createTextVNode(" 样式 ")])),_:1}),createVNode(oh,{class:"w-56",align:"start"},{default:withCtx(()=>[createVNode(Af,{title:"主题",options:unref(themeOptions),current:unref(dd),change:unref(Ld)},null,8,["options","current","change"]),createVNode(Df),createVNode(Af,{title:"字体",options:unref(fontFamilyOptions),current:unref(hd),change:unref(Ud)},null,8,["options","current","change"]),createVNode(Af,{title:"字号",options:unref(fontSizeOptions),current:unref(md),change:unref(jd)},null,8,["options","current","change"]),createVNode(Af,{title:"主题色",options:unref(colorOptions),current:unref(gd),change:unref(Gd)},null,8,["options","current","change"]),createVNode(Af,{title:"代码块主题",options:unref(codeBlockThemeOptions),current:unref(yd),change:unref(Yd)},null,8,["options","current","change"]),createVNode(Af,{title:"图注格式",options:unref(legendOptions),current:unref(vd),change:unref(zd)},null,8,["options","current","change"]),createVNode(Df),createVNode(Ff,{onClick:withModifiers(Xd,["self","prevent"])},{default:withCtx(()=>[createVNode(If,{"open-delay":100},{default:withCtx(()=>[createVNode(kf,{class:"w-full flex"},{default:withCtx(()=>vf[2]||(vf[2]=[createTextVNode(" 自定义主题色 ")])),_:1}),createVNode(Cf,{side:"right",class:"w-min"},{default:withCtx(()=>[createBaseVNode("div",{ref_key:"pickColorsContainer",ref:Zd},[createVNode(unref(Re),{value:unref(gd),"onUpdate:value":vf[0]||(vf[0]=_h=>isRef(gd)?gd.value=_h:null),"show-alpha":"",format:unref(mf),"format-options":unref(xf),theme:unref(ed).isDark?"dark":"light","popup-container":unref(Zd),onChange:unref(ed).colorChanged},null,8,["value","format","format-options","theme","popup-container","onChange"])],512)]),_:1})]),_:1})]),_:1}),createVNode(Ff,{onClick:Jd},{default:withCtx(()=>vf[3]||(vf[3]=[createTextVNode(" 自定义 CSS ")])),_:1}),createVNode(Df),createVNode(Ff,{checked:unref(Cd),onClick:unref(qd)},{default:withCtx(()=>vf[4]||(vf[4]=[createTextVNode(" Mac 代码块 ")])),_:1},8,["checked","onClick"]),createVNode(Df),createVNode(Ff,{divided:"",onClick:unref(Nd)},{default:withCtx(()=>vf[5]||(vf[5]=[createTextVNode(" 重置 ")])),_:1},8,["onClick"])]),_:1})]),_:1})}}}),_sfc_main$7=defineComponent({__name:"MenubarItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{},inset:{type:Boolean}},emits:["select"],setup(Ra,{emit:ed}){const ud=Ra,dd=ed,hd=computed(()=>{const{class:gd,...yd}=ud;return yd}),md=Se$6(hd,dd);return(gd,yd)=>(openBlock(),createBlock(unref(Jh),mergeProps(unref(md),{class:unref(cn$4)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",gd.inset&&"pl-8",ud.class)}),{default:withCtx(()=>[renderSlot(gd.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$6=defineComponent({__name:"EditDropdown",setup(Ra){const{toggleShowInsertFormDialog:ed,toggleShowUploadImgDialog:ud}=useDisplayStore();return(dd,hd)=>{const md=_sfc_main$j,gd=_sfc_main$7,yd=_sfc_main$l,vd=_sfc_main$m;return openBlock(),createBlock(vd,null,{default:withCtx(()=>[createVNode(md,null,{default:withCtx(()=>hd[2]||(hd[2]=[createTextVNode(" 编辑 ")])),_:1}),createVNode(yd,{align:"start"},{default:withCtx(()=>[createVNode(gd,{onClick:hd[0]||(hd[0]=Cd=>unref(ud)())},{default:withCtx(()=>[createVNode(unref(CloudUpload),{class:"mr-2 h-4 w-4"}),hd[3]||(hd[3]=createTextVNode(" 上传图片 "))]),_:1}),createVNode(gd,{onClick:hd[1]||(hd[1]=Cd=>unref(ed)())},{default:withCtx(()=>[createVNode(unref(Table),{class:"mr-2 h-4 w-4"}),hd[4]||(hd[4]=createTextVNode(" 插入表格 "))]),_:1})]),_:1})]),_:1})}}}),_sfc_main$5=defineComponent({__name:"MenubarShortcut",props:{class:{}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(cn$4)("ml-auto text-xs tracking-widest text-muted-foreground",ed.class))},[renderSlot(ud.$slots,"default")],2))}}),_sfc_main$4=defineComponent({__name:"FileDropdown",setup(Ra){const ed=useStore(),{isDark:ud,isEditOnLeft:dd}=storeToRefs(ed),{exportEditorContent2HTML:hd,exportEditorContent2MD:md,importMarkdownContent:gd}=ed;return(yd,vd)=>{const Cd=_sfc_main$j,wd=_sfc_main$7,Nd=_sfc_main$e,Ld=_sfc_main$k,Ud=_sfc_main$l,jd=_sfc_main$m;return openBlock(),createBlock(jd,null,{default:withCtx(()=>[createVNode(Cd,null,{default:withCtx(()=>vd[5]||(vd[5]=[createTextVNode(" 文件 ")])),_:1}),createVNode(Ud,{align:"start"},{default:withCtx(()=>[createVNode(wd,{onClick:vd[0]||(vd[0]=Gd=>unref(gd)())},{default:withCtx(()=>[createVNode(unref(Upload),{class:"mr-2 size-4"}),vd[6]||(vd[6]=createTextVNode(" 导入 .md "))]),_:1}),createVNode(wd,{onClick:vd[1]||(vd[1]=Gd=>unref(md)())},{default:withCtx(()=>[createVNode(unref(Download),{class:"mr-2 size-4"}),vd[7]||(vd[7]=createTextVNode(" 导出 .md "))]),_:1}),createVNode(wd,{onClick:vd[2]||(vd[2]=Gd=>unref(hd)())},{default:withCtx(()=>[createVNode(unref(FileCode),{class:"mr-2 size-4"}),vd[8]||(vd[8]=createTextVNode(" 导出 .html "))]),_:1}),createVNode(Nd),createVNode(Ld,{checked:unref(ud),"onUpdate:checked":vd[3]||(vd[3]=Gd=>isRef(ud)?ud.value=Gd:null)},{default:withCtx(()=>vd[9]||(vd[9]=[createTextVNode(" 深色模式 ")])),_:1},8,["checked"]),createVNode(Nd),createVNode(Ld,{checked:unref(dd),"onUpdate:checked":vd[4]||(vd[4]=Gd=>isRef(dd)?dd.value=Gd:null)},{default:withCtx(()=>vd[10]||(vd[10]=[createTextVNode(" 左侧编辑 ")])),_:1},8,["checked"])]),_:1})]),_:1})}}}),_sfc_main$3=defineComponent({__name:"Sonner",props:{invert:{type:Boolean},theme:{},position:{},hotkey:{},richColors:{type:Boolean},expand:{type:Boolean},duration:{},gap:{},visibleToasts:{},closeButton:{type:Boolean},toastOptions:{},class:{},style:{},offset:{},dir:{},icons:{},containerAriaLabel:{},pauseWhenPageIsHidden:{type:Boolean},cn:{type:Function}},setup(Ra){const ed=Ra;return(ud,dd)=>(openBlock(),createBlock(unref(Ve),mergeProps({class:"toaster group"},ed,{"toast-options":{classes:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}}}),null,16))}}),_hoisted_1$1={class:"header-container h-15 flex items-center justify-between px-5 dark:bg-[#191c20]"},_hoisted_2$1={class:"space-x-2 flex"},_hoisted_3$1={class:"space-x-2 flex"},_hoisted_4$1={class:"space-x-1 bg-background text-background-foreground mx-2 flex items-center border rounded-md"},_sfc_main$2=defineComponent({__name:"index",emits:["addFormat","formatContent","startCopy","endCopy"],setup(Ra,{emit:ed}){const ud=ed,dd=[{label:"加粗",kbd:[ctrlSign,"B"],emitArgs:["addFormat",`${ctrlKey}-B`]},{label:"斜体",kbd:[ctrlSign,"I"],emitArgs:["addFormat",`${ctrlKey}-I`]},{label:"删除线",kbd:[ctrlSign,"D"],emitArgs:["addFormat",`${ctrlKey}-D`]},{label:"超链接",kbd:[ctrlSign,"K"],emitArgs:["addFormat",`${ctrlKey}-K`]},{label:"行内代码",kbd:[ctrlSign,"E"],emitArgs:["addFormat",`${ctrlKey}-E`]},{label:"格式化",kbd:[altSign,shiftSign,"F"],emitArgs:["formatContent"]}],hd=useStore(),{isDark:md,isCiteStatus:gd,isCountStatus:yd,output:vd,primaryColor:Cd,isOpenPostSlider:wd}=storeToRefs(hd),{toggleDark:Nd,editorRefresh:Ld,citeStatusChanged:Ud,countStatusChanged:jd}=hd,Gd=useStorage(addPrefix("copyMode"),"txt"),Yd=ref$1(""),{copy:zd}=useClipboard({source:Yd});function qd(){ud("startCopy"),setTimeout(()=>{const Wd=md.value;Wd&&Nd(),nextTick$1(async()=>{processClipboardContent(Cd.value);const Xd=document.getElementById("output");Xd.focus(),window.getSelection().removeAllRanges();const Jd=Xd.innerHTML;if(Gd.value==="txt"){const Zd=document.createRange();Zd.setStartBefore(Xd.firstChild),Zd.setEndAfter(Xd.lastChild),window.getSelection().addRange(Zd),document.execCommand("copy"),window.getSelection().removeAllRanges()}Xd.innerHTML=vd.value,Wd&&nextTick$1(()=>Nd()),Gd.value==="html"&&await zd(Jd),Ke.success(Gd.value==="html"?"已复制 HTML 源码,请进行下一步操作。":"已复制渲染后的内容到剪贴板,可直接到公众号后台粘贴。"),Ld(),ud("endCopy")})},350)}return(Wd,Xd)=>{const Jd=_sfc_main$4,Zd=_sfc_main$j,mf=_sfc_main$5,xf=_sfc_main$k,_f=_sfc_main$e,vf=_sfc_main$l,gf=_sfc_main$m,Af=_sfc_main$6,Df=_sfc_main$8,kf=_sfc_main$i,Cf=_sfc_main$o,If=_sfc_main$1o,Ff=_sfc_main$p,oh=_sfc_main$q,Eh=_sfc_main$r,_h=_sfc_main$s,Mh=_sfc_main$t,lh=_sfc_main$E,rh=_sfc_main$u,mh=_sfc_main$v,xh=_sfc_main$G,Sh=_sfc_main$H,Of=_sfc_main$w;return openBlock(),createElementBlock("header",_hoisted_1$1,[createBaseVNode("div",_hoisted_2$1,[createVNode(Cf,{class:"menubar"},{default:withCtx(()=>[createVNode(Jd),createVNode(gf,null,{default:withCtx(()=>[createVNode(Zd,null,{default:withCtx(()=>Xd[7]||(Xd[7]=[createTextVNode(" 格式 ")])),_:1}),createVNode(vf,{class:"w-60",align:"start"},{default:withCtx(()=>[(openBlock(),createElementBlock(Fragment,null,renderList(dd,({label:Rf,kbd:yh,emitArgs:Ph})=>createVNode(xf,{key:Rf,onClick:sm=>Ph[0]==="addFormat"?Wd.$emit(Ph[0],Ph[1]):Wd.$emit(Ph[0])},{default:withCtx(()=>[createTextVNode(toDisplayString(Rf)+" ",1),createVNode(mf,null,{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(yh,sm=>(openBlock(),createElementBlock("kbd",{key:sm,class:"mx-1 bg-gray-2 dark:bg-stone-9"},toDisplayString(sm),1))),128))]),_:2},1024)]),_:2},1032,["onClick"])),64)),createVNode(_f),createVNode(xf,{checked:unref(gd),onClick:Xd[0]||(Xd[0]=Rf=>unref(Ud)())},{default:withCtx(()=>Xd[8]||(Xd[8]=[createTextVNode(" 微信外链转底部引用 ")])),_:1},8,["checked"]),createVNode(_f),createVNode(xf,{checked:unref(yd),onClick:Xd[1]||(Xd[1]=Rf=>unref(jd)())},{default:withCtx(()=>Xd[9]||(Xd[9]=[createTextVNode(" 统计字数和阅读时间 ")])),_:1},8,["checked"])]),_:1})]),_:1}),createVNode(Af),createVNode(Df),createVNode(kf)]),_:1})]),createBaseVNode("div",_hoisted_3$1,[createVNode(_h,{"delay-duration":200},{default:withCtx(()=>[createVNode(Eh,null,{default:withCtx(()=>[createVNode(Ff,{"as-child":""},{default:withCtx(()=>[createVNode(If,{variant:"outline",onClick:Xd[2]||(Xd[2]=Rf=>wd.value=!unref(wd))},{default:withCtx(()=>[withDirectives(createVNode(unref(PanelLeftOpen),{class:"size-4"},null,512),[[vShow,!unref(wd)]]),withDirectives(createVNode(unref(PanelLeftClose),{class:"size-4"},null,512),[[vShow,unref(wd)]])]),_:1})]),_:1}),createVNode(oh,{side:"left"},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(wd)?"关闭":"内容管理"),1)]),_:1})]),_:1})]),_:1}),createVNode(If,{variant:"outline",onClick:Xd[3]||(Xd[3]=Rf=>unref(Nd)())},{default:withCtx(()=>[withDirectives(createVNode(unref(Moon),{class:"size-4"},null,512),[[vShow,unref(md)]]),withDirectives(createVNode(unref(Sun),{class:"size-4"},null,512),[[vShow,!unref(md)]])]),_:1}),createBaseVNode("div",_hoisted_4$1,[createVNode(If,{variant:"ghost",class:"shadow-none",onClick:qd},{default:withCtx(()=>Xd[10]||(Xd[10]=[createTextVNode(" 复制 ")])),_:1}),createVNode(Mh,{orientation:"vertical",class:"h-5"}),createVNode(Sh,{modelValue:unref(Gd),"onUpdate:modelValue":Xd[5]||(Xd[5]=Rf=>isRef(Gd)?Gd.value=Rf:null)},{default:withCtx(()=>[createVNode(lh,{"as-child":""},{default:withCtx(()=>[createVNode(If,{variant:"ghost",class:"px-2 shadow-none"},{default:withCtx(()=>[createVNode(unref(ChevronDown),{class:"text-secondary-foreground h-4 w-4"})]),_:1})]),_:1}),createVNode(xh,{align:"end","align-offset":-5,class:"w-[200px]"},{default:withCtx(()=>[createVNode(mh,{modelValue:unref(Gd),"onUpdate:modelValue":Xd[4]||(Xd[4]=Rf=>isRef(Gd)?Gd.value=Rf:null)},{default:withCtx(()=>[createVNode(rh,{value:"txt"},{default:withCtx(()=>Xd[11]||(Xd[11]=[createTextVNode(" 公众号格式 ")])),_:1}),createVNode(rh,{value:"html"},{default:withCtx(()=>Xd[12]||(Xd[12]=[createTextVNode(" HTML 格式 ")])),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["modelValue"])]),createVNode(Of),createVNode(If,{variant:"outline",onClick:Xd[6]||(Xd[6]=Rf=>unref(hd).isOpenRightSlider=!unref(hd).isOpenRightSlider)},{default:withCtx(()=>[createVNode(unref(Settings),{class:"size-4"})]),_:1}),createVNode(unref(_sfc_main$3),{"rich-colors":"",position:"top-center"})])])}}}),__unplugin_components_0=_export_sfc(_sfc_main$2,[["__scopeId","data-v-9a6c5c36"]]);function bind(Ra,ed){return function(){return Ra.apply(ed,arguments)}}var define_process_default$7={};const{toString:toString$1}=Object.prototype,{getPrototypeOf}=Object,kindOf=(Ra=>ed=>{const ud=toString$1.call(ed);return Ra[ud]||(Ra[ud]=ud.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=Ra=>(Ra=Ra.toLowerCase(),ed=>kindOf(ed)===Ra),typeOfTest=Ra=>ed=>typeof ed===Ra,{isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(Ra){return Ra!==null&&!isUndefined(Ra)&&Ra.constructor!==null&&!isUndefined(Ra.constructor)&&isFunction$1(Ra.constructor.isBuffer)&&Ra.constructor.isBuffer(Ra)}const isArrayBuffer$2=kindOfTest("ArrayBuffer");function isArrayBufferView(Ra){let ed;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ed=ArrayBuffer.isView(Ra):ed=Ra&&Ra.buffer&&isArrayBuffer$2(Ra.buffer),ed}const isString$1=typeOfTest("string"),isFunction$1=typeOfTest("function"),isNumber$1=typeOfTest("number"),isObject$1=Ra=>Ra!==null&&typeof Ra=="object",isBoolean$1=Ra=>Ra===!0||Ra===!1,isPlainObject=Ra=>{if(kindOf(Ra)!=="object")return!1;const ed=getPrototypeOf(Ra);return(ed===null||ed===Object.prototype||Object.getPrototypeOf(ed)===null)&&!(Symbol.toStringTag in Ra)&&!(Symbol.iterator in Ra)},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=Ra=>isObject$1(Ra)&&isFunction$1(Ra.pipe),isFormData=Ra=>{let ed;return Ra&&(typeof FormData=="function"&&Ra instanceof FormData||isFunction$1(Ra.append)&&((ed=kindOf(Ra))==="formdata"||ed==="object"&&isFunction$1(Ra.toString)&&Ra.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream$3,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=Ra=>Ra.trim?Ra.trim():Ra.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(Ra,ed,{allOwnKeys:ud=!1}={}){if(Ra===null||typeof Ra>"u")return;let dd,hd;if(typeof Ra!="object"&&(Ra=[Ra]),isArray(Ra))for(dd=0,hd=Ra.length;dd0;)if(hd=ud[dd],ed===hd.toLowerCase())return hd;return null}const _global=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global$1,isContextDefined=Ra=>!isUndefined(Ra)&&Ra!==_global;function merge$1(){const{caseless:Ra}=isContextDefined(this)&&this||{},ed={},ud=(dd,hd)=>{const md=Ra&&findKey(ed,hd)||hd;isPlainObject(ed[md])&&isPlainObject(dd)?ed[md]=merge$1(ed[md],dd):isPlainObject(dd)?ed[md]=merge$1({},dd):isArray(dd)?ed[md]=dd.slice():ed[md]=dd};for(let dd=0,hd=arguments.length;dd(forEach(ed,(hd,md)=>{ud&&isFunction$1(hd)?Ra[md]=bind(hd,ud):Ra[md]=hd},{allOwnKeys:dd}),Ra),stripBOM=Ra=>(Ra.charCodeAt(0)===65279&&(Ra=Ra.slice(1)),Ra),inherits$1=(Ra,ed,ud,dd)=>{Ra.prototype=Object.create(ed.prototype,dd),Ra.prototype.constructor=Ra,Object.defineProperty(Ra,"super",{value:ed.prototype}),ud&&Object.assign(Ra.prototype,ud)},toFlatObject=(Ra,ed,ud,dd)=>{let hd,md,gd;const yd={};if(ed=ed||{},Ra==null)return ed;do{for(hd=Object.getOwnPropertyNames(Ra),md=hd.length;md-- >0;)gd=hd[md],(!dd||dd(gd,Ra,ed))&&!yd[gd]&&(ed[gd]=Ra[gd],yd[gd]=!0);Ra=ud!==!1&&getPrototypeOf(Ra)}while(Ra&&(!ud||ud(Ra,ed))&&Ra!==Object.prototype);return ed},endsWith=(Ra,ed,ud)=>{Ra=String(Ra),(ud===void 0||ud>Ra.length)&&(ud=Ra.length),ud-=ed.length;const dd=Ra.indexOf(ed,ud);return dd!==-1&&dd===ud},toArray$1=Ra=>{if(!Ra)return null;if(isArray(Ra))return Ra;let ed=Ra.length;if(!isNumber$1(ed))return null;const ud=new Array(ed);for(;ed-- >0;)ud[ed]=Ra[ed];return ud},isTypedArray=(Ra=>ed=>Ra&&ed instanceof Ra)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=(Ra,ed)=>{const dd=(Ra&&Ra[Symbol.iterator]).call(Ra);let hd;for(;(hd=dd.next())&&!hd.done;){const md=hd.value;ed.call(Ra,md[0],md[1])}},matchAll=(Ra,ed)=>{let ud;const dd=[];for(;(ud=Ra.exec(ed))!==null;)dd.push(ud);return dd},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=Ra=>Ra.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(ud,dd,hd){return dd.toUpperCase()+hd}),hasOwnProperty$1=(({hasOwnProperty:Ra})=>(ed,ud)=>Ra.call(ed,ud))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(Ra,ed)=>{const ud=Object.getOwnPropertyDescriptors(Ra),dd={};forEach(ud,(hd,md)=>{let gd;(gd=ed(hd,md,Ra))!==!1&&(dd[md]=gd||hd)}),Object.defineProperties(Ra,dd)},freezeMethods=Ra=>{reduceDescriptors(Ra,(ed,ud)=>{if(isFunction$1(Ra)&&["arguments","caller","callee"].indexOf(ud)!==-1)return!1;const dd=Ra[ud];if(isFunction$1(dd)){if(ed.enumerable=!1,"writable"in ed){ed.writable=!1;return}ed.set||(ed.set=()=>{throw Error("Can not rewrite read-only method '"+ud+"'")})}})},toObjectSet=(Ra,ed)=>{const ud={},dd=hd=>{hd.forEach(md=>{ud[md]=!0})};return isArray(Ra)?dd(Ra):dd(String(Ra).split(ed)),ud},noop=()=>{},toFiniteNumber=(Ra,ed)=>Ra!=null&&Number.isFinite(Ra=+Ra)?Ra:ed;function isSpecCompliantForm(Ra){return!!(Ra&&isFunction$1(Ra.append)&&Ra[Symbol.toStringTag]==="FormData"&&Ra[Symbol.iterator])}const toJSONObject=Ra=>{const ed=new Array(10),ud=(dd,hd)=>{if(isObject$1(dd)){if(ed.indexOf(dd)>=0)return;if(!("toJSON"in dd)){ed[hd]=dd;const md=isArray(dd)?[]:{};return forEach(dd,(gd,yd)=>{const vd=ud(gd,hd+1);!isUndefined(vd)&&(md[yd]=vd)}),ed[hd]=void 0,md}}return dd};return ud(Ra,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=Ra=>Ra&&(isObject$1(Ra)||isFunction$1(Ra))&&isFunction$1(Ra.then)&&isFunction$1(Ra.catch),_setImmediate=((Ra,ed)=>Ra?setImmediate:ed?((ud,dd)=>(_global.addEventListener("message",({source:hd,data:md})=>{hd===_global&&md===ud&&dd.length&&dd.shift()()},!1),hd=>{dd.push(hd),_global.postMessage(ud,"*")}))(`axios@${Math.random()}`,[]):ud=>setTimeout(ud))(typeof setImmediate=="function",isFunction$1(_global.postMessage)),asap=typeof queueMicrotask<"u"?queueMicrotask.bind(_global):typeof define_process_default$7<"u"&&define_process_default$7.nextTick||_setImmediate,utils$2={isArray,isArrayBuffer:isArrayBuffer$2,isBuffer,isFormData,isArrayBufferView,isString:isString$1,isNumber:isNumber$1,isBoolean:isBoolean$1,isObject:isObject$1,isPlainObject,isReadableStream:isReadableStream$3,isRequest,isResponse,isHeaders,isUndefined,isDate,isFile,isBlob,isRegExp,isFunction:isFunction$1,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge:merge$1,extend,trim,stripBOM,inherits:inherits$1,toFlatObject,kindOf,kindOfTest,endsWith,toArray:toArray$1,forEachEntry,matchAll,isHTMLForm,hasOwnProperty:hasOwnProperty$1,hasOwnProp:hasOwnProperty$1,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop,toFiniteNumber,findKey,global:_global,isContextDefined,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable,setImmediate:_setImmediate,asap};function AxiosError$1(Ra,ed,ud,dd,hd){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=Ra,this.name="AxiosError",ed&&(this.code=ed),ud&&(this.config=ud),dd&&(this.request=dd),hd&&(this.response=hd,this.status=hd.status?hd.status:null)}utils$2.inherits(AxiosError$1,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$2.toJSONObject(this.config),code:this.code,status:this.status}}});const prototype$1=AxiosError$1.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(Ra=>{descriptors[Ra]={value:Ra}});Object.defineProperties(AxiosError$1,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError$1.from=(Ra,ed,ud,dd,hd,md)=>{const gd=Object.create(prototype$1);return utils$2.toFlatObject(Ra,gd,function(vd){return vd!==Error.prototype},yd=>yd!=="isAxiosError"),AxiosError$1.call(gd,Ra.message,ed,ud,dd,hd),gd.cause=Ra,gd.name=Ra.name,md&&Object.assign(gd,md),gd};const httpAdapter=null;function isVisitable(Ra){return utils$2.isPlainObject(Ra)||utils$2.isArray(Ra)}function removeBrackets(Ra){return utils$2.endsWith(Ra,"[]")?Ra.slice(0,-2):Ra}function renderKey(Ra,ed,ud){return Ra?Ra.concat(ed).map(function(hd,md){return hd=removeBrackets(hd),!ud&&md?"["+hd+"]":hd}).join(ud?".":""):ed}function isFlatArray(Ra){return utils$2.isArray(Ra)&&!Ra.some(isVisitable)}const predicates=utils$2.toFlatObject(utils$2,{},null,function(ed){return/^is[A-Z]/.test(ed)});function toFormData$1(Ra,ed,ud){if(!utils$2.isObject(Ra))throw new TypeError("target must be an object");ed=ed||new FormData,ud=utils$2.toFlatObject(ud,{metaTokens:!0,dots:!1,indexes:!1},!1,function(Gd,Yd){return!utils$2.isUndefined(Yd[Gd])});const dd=ud.metaTokens,hd=ud.visitor||wd,md=ud.dots,gd=ud.indexes,vd=(ud.Blob||typeof Blob<"u"&&Blob)&&utils$2.isSpecCompliantForm(ed);if(!utils$2.isFunction(hd))throw new TypeError("visitor must be a function");function Cd(jd){if(jd===null)return"";if(utils$2.isDate(jd))return jd.toISOString();if(!vd&&utils$2.isBlob(jd))throw new AxiosError$1("Blob is not supported. Use a Buffer instead.");return utils$2.isArrayBuffer(jd)||utils$2.isTypedArray(jd)?vd&&typeof Blob=="function"?new Blob([jd]):Buffer$4.from(jd):jd}function wd(jd,Gd,Yd){let zd=jd;if(jd&&!Yd&&typeof jd=="object"){if(utils$2.endsWith(Gd,"{}"))Gd=dd?Gd:Gd.slice(0,-2),jd=JSON.stringify(jd);else if(utils$2.isArray(jd)&&isFlatArray(jd)||(utils$2.isFileList(jd)||utils$2.endsWith(Gd,"[]"))&&(zd=utils$2.toArray(jd)))return Gd=removeBrackets(Gd),zd.forEach(function(Wd,Xd){!(utils$2.isUndefined(Wd)||Wd===null)&&ed.append(gd===!0?renderKey([Gd],Xd,md):gd===null?Gd:Gd+"[]",Cd(Wd))}),!1}return isVisitable(jd)?!0:(ed.append(renderKey(Yd,Gd,md),Cd(jd)),!1)}const Nd=[],Ld=Object.assign(predicates,{defaultVisitor:wd,convertValue:Cd,isVisitable});function Ud(jd,Gd){if(!utils$2.isUndefined(jd)){if(Nd.indexOf(jd)!==-1)throw Error("Circular reference detected in "+Gd.join("."));Nd.push(jd),utils$2.forEach(jd,function(zd,qd){(!(utils$2.isUndefined(zd)||zd===null)&&hd.call(ed,zd,utils$2.isString(qd)?qd.trim():qd,Gd,Ld))===!0&&Ud(zd,Gd?Gd.concat(qd):[qd])}),Nd.pop()}}if(!utils$2.isObject(Ra))throw new TypeError("data must be an object");return Ud(Ra),ed}function encode$2(Ra){const ed={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(Ra).replace(/[!'()~]|%20|%00/g,function(dd){return ed[dd]})}function AxiosURLSearchParams(Ra,ed){this._pairs=[],Ra&&toFormData$1(Ra,this,ed)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function(ed,ud){this._pairs.push([ed,ud])};prototype.toString=function(ed){const ud=ed?function(dd){return ed.call(this,dd,encode$2)}:encode$2;return this._pairs.map(function(hd){return ud(hd[0])+"="+ud(hd[1])},"").join("&")};function encode$1(Ra){return encodeURIComponent(Ra).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(Ra,ed,ud){if(!ed)return Ra;const dd=ud&&ud.encode||encode$1;utils$2.isFunction(ud)&&(ud={serialize:ud});const hd=ud&&ud.serialize;let md;if(hd?md=hd(ed,ud):md=utils$2.isURLSearchParams(ed)?ed.toString():new AxiosURLSearchParams(ed,ud).toString(dd),md){const gd=Ra.indexOf("#");gd!==-1&&(Ra=Ra.slice(0,gd)),Ra+=(Ra.indexOf("?")===-1?"?":"&")+md}return Ra}class InterceptorManager{constructor(){this.handlers=[]}use(ed,ud,dd){return this.handlers.push({fulfilled:ed,rejected:ud,synchronous:dd?dd.synchronous:!1,runWhen:dd?dd.runWhen:null}),this.handlers.length-1}eject(ed){this.handlers[ed]&&(this.handlers[ed]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(ed){utils$2.forEach(this.handlers,function(dd){dd!==null&&ed(dd)})}}const transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv=typeof window<"u"&&typeof document<"u",_navigator=typeof navigator=="object"&&navigator||void 0,hasStandardBrowserEnv=hasBrowserEnv&&(!_navigator||["ReactNative","NativeScript","NS"].indexOf(_navigator.product)<0),hasStandardBrowserWebWorkerEnv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",origin=hasBrowserEnv&&window.location.href||"http://localhost",utils$1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv,navigator:_navigator,origin},Symbol.toStringTag,{value:"Module"})),platform={...utils$1,...platform$1};function toURLEncodedForm(Ra,ed){return toFormData$1(Ra,new platform.classes.URLSearchParams,Object.assign({visitor:function(ud,dd,hd,md){return platform.isNode&&utils$2.isBuffer(ud)?(this.append(dd,ud.toString("base64")),!1):md.defaultVisitor.apply(this,arguments)}},ed))}function parsePropPath(Ra){return utils$2.matchAll(/\w+|\[(\w*)]/g,Ra).map(ed=>ed[0]==="[]"?"":ed[1]||ed[0])}function arrayToObject(Ra){const ed={},ud=Object.keys(Ra);let dd;const hd=ud.length;let md;for(dd=0;dd=ud.length;return gd=!gd&&utils$2.isArray(hd)?hd.length:gd,vd?(utils$2.hasOwnProp(hd,gd)?hd[gd]=[hd[gd],dd]:hd[gd]=dd,!yd):((!hd[gd]||!utils$2.isObject(hd[gd]))&&(hd[gd]=[]),ed(ud,dd,hd[gd],md)&&utils$2.isArray(hd[gd])&&(hd[gd]=arrayToObject(hd[gd])),!yd)}if(utils$2.isFormData(Ra)&&utils$2.isFunction(Ra.entries)){const ud={};return utils$2.forEachEntry(Ra,(dd,hd)=>{ed(parsePropPath(dd),hd,ud,0)}),ud}return null}function stringifySafely(Ra,ed,ud){if(utils$2.isString(Ra))try{return(ed||JSON.parse)(Ra),utils$2.trim(Ra)}catch(dd){if(dd.name!=="SyntaxError")throw dd}return(ud||JSON.stringify)(Ra)}const defaults$1={transitional:transitionalDefaults,adapter:["xhr","http","fetch"],transformRequest:[function(ed,ud){const dd=ud.getContentType()||"",hd=dd.indexOf("application/json")>-1,md=utils$2.isObject(ed);if(md&&utils$2.isHTMLForm(ed)&&(ed=new FormData(ed)),utils$2.isFormData(ed))return hd?JSON.stringify(formDataToJSON(ed)):ed;if(utils$2.isArrayBuffer(ed)||utils$2.isBuffer(ed)||utils$2.isStream(ed)||utils$2.isFile(ed)||utils$2.isBlob(ed)||utils$2.isReadableStream(ed))return ed;if(utils$2.isArrayBufferView(ed))return ed.buffer;if(utils$2.isURLSearchParams(ed))return ud.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),ed.toString();let yd;if(md){if(dd.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(ed,this.formSerializer).toString();if((yd=utils$2.isFileList(ed))||dd.indexOf("multipart/form-data")>-1){const vd=this.env&&this.env.FormData;return toFormData$1(yd?{"files[]":ed}:ed,vd&&new vd,this.formSerializer)}}return md||hd?(ud.setContentType("application/json",!1),stringifySafely(ed)):ed}],transformResponse:[function(ed){const ud=this.transitional||defaults$1.transitional,dd=ud&&ud.forcedJSONParsing,hd=this.responseType==="json";if(utils$2.isResponse(ed)||utils$2.isReadableStream(ed))return ed;if(ed&&utils$2.isString(ed)&&(dd&&!this.responseType||hd)){const gd=!(ud&&ud.silentJSONParsing)&&hd;try{return JSON.parse(ed)}catch(yd){if(gd)throw yd.name==="SyntaxError"?AxiosError$1.from(yd,AxiosError$1.ERR_BAD_RESPONSE,this,null,this.response):yd}}return ed}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function(ed){return ed>=200&&ed<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$2.forEach(["delete","get","head","post","put","patch"],Ra=>{defaults$1.headers[Ra]={}});const ignoreDuplicateOf=utils$2.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=Ra=>{const ed={};let ud,dd,hd;return Ra&&Ra.split(` `).forEach(function(gd){hd=gd.indexOf(":"),ud=gd.substring(0,hd).trim().toLowerCase(),dd=gd.substring(hd+1).trim(),!(!ud||ed[ud]&&ignoreDuplicateOf[ud])&&(ud==="set-cookie"?ed[ud]?ed[ud].push(dd):ed[ud]=[dd]:ed[ud]=ed[ud]?ed[ud]+", "+dd:dd)}),ed},$internals=Symbol("internals");function normalizeHeader(Ra){return Ra&&String(Ra).trim().toLowerCase()}function normalizeValue(Ra){return Ra===!1||Ra==null?Ra:utils$2.isArray(Ra)?Ra.map(normalizeValue):String(Ra)}function parseTokens(Ra){const ed=Object.create(null),ud=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let dd;for(;dd=ud.exec(Ra);)ed[dd[1]]=dd[2];return ed}const isValidHeaderName=Ra=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(Ra.trim());function matchHeaderValue(Ra,ed,ud,dd,hd){if(utils$2.isFunction(dd))return dd.call(this,ed,ud);if(hd&&(ed=ud),!!utils$2.isString(ed)){if(utils$2.isString(dd))return ed.indexOf(dd)!==-1;if(utils$2.isRegExp(dd))return dd.test(ed)}}function formatHeader(Ra){return Ra.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(ed,ud,dd)=>ud.toUpperCase()+dd)}function buildAccessors(Ra,ed){const ud=utils$2.toCamelCase(" "+ed);["get","set","has"].forEach(dd=>{Object.defineProperty(Ra,dd+ud,{value:function(hd,md,gd){return this[dd].call(this,ed,hd,md,gd)},configurable:!0})})}let AxiosHeaders$1=class{constructor(ed){ed&&this.set(ed)}set(ed,ud,dd){const hd=this;function md(yd,vd,Cd){const wd=normalizeHeader(vd);if(!wd)throw new Error("header name must be a non-empty string");const Nd=utils$2.findKey(hd,wd);(!Nd||hd[Nd]===void 0||Cd===!0||Cd===void 0&&hd[Nd]!==!1)&&(hd[Nd||vd]=normalizeValue(yd))}const gd=(yd,vd)=>utils$2.forEach(yd,(Cd,wd)=>md(Cd,wd,vd));if(utils$2.isPlainObject(ed)||ed instanceof this.constructor)gd(ed,ud);else if(utils$2.isString(ed)&&(ed=ed.trim())&&!isValidHeaderName(ed))gd(parseHeaders(ed),ud);else if(utils$2.isHeaders(ed))for(const[yd,vd]of ed.entries())md(vd,yd,dd);else ed!=null&&md(ud,ed,dd);return this}get(ed,ud){if(ed=normalizeHeader(ed),ed){const dd=utils$2.findKey(this,ed);if(dd){const hd=this[dd];if(!ud)return hd;if(ud===!0)return parseTokens(hd);if(utils$2.isFunction(ud))return ud.call(this,hd,dd);if(utils$2.isRegExp(ud))return ud.exec(hd);throw new TypeError("parser must be boolean|regexp|function")}}}has(ed,ud){if(ed=normalizeHeader(ed),ed){const dd=utils$2.findKey(this,ed);return!!(dd&&this[dd]!==void 0&&(!ud||matchHeaderValue(this,this[dd],dd,ud)))}return!1}delete(ed,ud){const dd=this;let hd=!1;function md(gd){if(gd=normalizeHeader(gd),gd){const yd=utils$2.findKey(dd,gd);yd&&(!ud||matchHeaderValue(dd,dd[yd],yd,ud))&&(delete dd[yd],hd=!0)}}return utils$2.isArray(ed)?ed.forEach(md):md(ed),hd}clear(ed){const ud=Object.keys(this);let dd=ud.length,hd=!1;for(;dd--;){const md=ud[dd];(!ed||matchHeaderValue(this,this[md],md,ed,!0))&&(delete this[md],hd=!0)}return hd}normalize(ed){const ud=this,dd={};return utils$2.forEach(this,(hd,md)=>{const gd=utils$2.findKey(dd,md);if(gd){ud[gd]=normalizeValue(hd),delete ud[md];return}const yd=ed?formatHeader(md):String(md).trim();yd!==md&&delete ud[md],ud[yd]=normalizeValue(hd),dd[yd]=!0}),this}concat(...ed){return this.constructor.concat(this,...ed)}toJSON(ed){const ud=Object.create(null);return utils$2.forEach(this,(dd,hd)=>{dd!=null&&dd!==!1&&(ud[hd]=ed&&utils$2.isArray(dd)?dd.join(", "):dd)}),ud}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([ed,ud])=>ed+": "+ud).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(ed){return ed instanceof this?ed:new this(ed)}static concat(ed,...ud){const dd=new this(ed);return ud.forEach(hd=>dd.set(hd)),dd}static accessor(ed){const dd=(this[$internals]=this[$internals]={accessors:{}}).accessors,hd=this.prototype;function md(gd){const yd=normalizeHeader(gd);dd[yd]||(buildAccessors(hd,gd),dd[yd]=!0)}return utils$2.isArray(ed)?ed.forEach(md):md(ed),this}};AxiosHeaders$1.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$2.reduceDescriptors(AxiosHeaders$1.prototype,({value:Ra},ed)=>{let ud=ed[0].toUpperCase()+ed.slice(1);return{get:()=>Ra,set(dd){this[ud]=dd}}});utils$2.freezeMethods(AxiosHeaders$1);function transformData(Ra,ed){const ud=this||defaults$1,dd=ed||ud,hd=AxiosHeaders$1.from(dd.headers);let md=dd.data;return utils$2.forEach(Ra,function(yd){md=yd.call(ud,md,hd.normalize(),ed?ed.status:void 0)}),hd.normalize(),md}function isCancel$1(Ra){return!!(Ra&&Ra.__CANCEL__)}function CanceledError$1(Ra,ed,ud){AxiosError$1.call(this,Ra??"canceled",AxiosError$1.ERR_CANCELED,ed,ud),this.name="CanceledError"}utils$2.inherits(CanceledError$1,AxiosError$1,{__CANCEL__:!0});function settle(Ra,ed,ud){const dd=ud.config.validateStatus;!ud.status||!dd||dd(ud.status)?Ra(ud):ed(new AxiosError$1("Request failed with status code "+ud.status,[AxiosError$1.ERR_BAD_REQUEST,AxiosError$1.ERR_BAD_RESPONSE][Math.floor(ud.status/100)-4],ud.config,ud.request,ud))}function parseProtocol(Ra){const ed=/^([-+\w]{1,25})(:?\/\/|:)/.exec(Ra);return ed&&ed[1]||""}function speedometer(Ra,ed){Ra=Ra||10;const ud=new Array(Ra),dd=new Array(Ra);let hd=0,md=0,gd;return ed=ed!==void 0?ed:1e3,function(vd){const Cd=Date.now(),wd=dd[md];gd||(gd=Cd),ud[hd]=vd,dd[hd]=Cd;let Nd=md,Ld=0;for(;Nd!==hd;)Ld+=ud[Nd++],Nd=Nd%Ra;if(hd=(hd+1)%Ra,hd===md&&(md=(md+1)%Ra),Cd-gd{ud=wd,hd=null,md&&(clearTimeout(md),md=null),Ra.apply(null,Cd)};return[(...Cd)=>{const wd=Date.now(),Nd=wd-ud;Nd>=dd?gd(Cd,wd):(hd=Cd,md||(md=setTimeout(()=>{md=null,gd(hd)},dd-Nd)))},()=>hd&&gd(hd)]}const progressEventReducer=(Ra,ed,ud=3)=>{let dd=0;const hd=speedometer(50,250);return throttle(md=>{const gd=md.loaded,yd=md.lengthComputable?md.total:void 0,vd=gd-dd,Cd=hd(vd),wd=gd<=yd;dd=gd;const Nd={loaded:gd,total:yd,progress:yd?gd/yd:void 0,bytes:vd,rate:Cd||void 0,estimated:Cd&&yd&&wd?(yd-gd)/Cd:void 0,event:md,lengthComputable:yd!=null,[ed?"download":"upload"]:!0};Ra(Nd)},ud)},progressEventDecorator=(Ra,ed)=>{const ud=Ra!=null;return[dd=>ed[0]({lengthComputable:ud,total:Ra,loaded:dd}),ed[1]]},asyncDecorator=Ra=>(...ed)=>utils$2.asap(()=>Ra(...ed)),isURLSameOrigin=platform.hasStandardBrowserEnv?((Ra,ed)=>ud=>(ud=new URL(ud,platform.origin),Ra.protocol===ud.protocol&&Ra.host===ud.host&&(ed||Ra.port===ud.port)))(new URL(platform.origin),platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent)):()=>!0,cookies=platform.hasStandardBrowserEnv?{write(Ra,ed,ud,dd,hd,md){const gd=[Ra+"="+encodeURIComponent(ed)];utils$2.isNumber(ud)&&gd.push("expires="+new Date(ud).toGMTString()),utils$2.isString(dd)&&gd.push("path="+dd),utils$2.isString(hd)&&gd.push("domain="+hd),md===!0&&gd.push("secure"),document.cookie=gd.join("; ")},read(Ra){const ed=document.cookie.match(new RegExp("(^|;\\s*)("+Ra+")=([^;]*)"));return ed?decodeURIComponent(ed[3]):null},remove(Ra){this.write(Ra,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(Ra){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(Ra)}function combineURLs(Ra,ed){return ed?Ra.replace(/\/?\/$/,"")+"/"+ed.replace(/^\/+/,""):Ra}function buildFullPath(Ra,ed,ud){let dd=!isAbsoluteURL(ed);return Ra&&dd||ud==!1?combineURLs(Ra,ed):ed}const headersToObject=Ra=>Ra instanceof AxiosHeaders$1?{...Ra}:Ra;function mergeConfig$1(Ra,ed){ed=ed||{};const ud={};function dd(Cd,wd,Nd,Ld){return utils$2.isPlainObject(Cd)&&utils$2.isPlainObject(wd)?utils$2.merge.call({caseless:Ld},Cd,wd):utils$2.isPlainObject(wd)?utils$2.merge({},wd):utils$2.isArray(wd)?wd.slice():wd}function hd(Cd,wd,Nd,Ld){if(utils$2.isUndefined(wd)){if(!utils$2.isUndefined(Cd))return dd(void 0,Cd,Nd,Ld)}else return dd(Cd,wd,Nd,Ld)}function md(Cd,wd){if(!utils$2.isUndefined(wd))return dd(void 0,wd)}function gd(Cd,wd){if(utils$2.isUndefined(wd)){if(!utils$2.isUndefined(Cd))return dd(void 0,Cd)}else return dd(void 0,wd)}function yd(Cd,wd,Nd){if(Nd in ed)return dd(Cd,wd);if(Nd in Ra)return dd(void 0,Cd)}const vd={url:md,method:md,data:md,baseURL:gd,transformRequest:gd,transformResponse:gd,paramsSerializer:gd,timeout:gd,timeoutMessage:gd,withCredentials:gd,withXSRFToken:gd,adapter:gd,responseType:gd,xsrfCookieName:gd,xsrfHeaderName:gd,onUploadProgress:gd,onDownloadProgress:gd,decompress:gd,maxContentLength:gd,maxBodyLength:gd,beforeRedirect:gd,transport:gd,httpAgent:gd,httpsAgent:gd,cancelToken:gd,socketPath:gd,responseEncoding:gd,validateStatus:yd,headers:(Cd,wd,Nd)=>hd(headersToObject(Cd),headersToObject(wd),Nd,!0)};return utils$2.forEach(Object.keys(Object.assign({},Ra,ed)),function(wd){const Nd=vd[wd]||hd,Ld=Nd(Ra[wd],ed[wd],wd);utils$2.isUndefined(Ld)&&Nd!==yd||(ud[wd]=Ld)}),ud}const resolveConfig=Ra=>{const ed=mergeConfig$1({},Ra);let{data:ud,withXSRFToken:dd,xsrfHeaderName:hd,xsrfCookieName:md,headers:gd,auth:yd}=ed;ed.headers=gd=AxiosHeaders$1.from(gd),ed.url=buildURL(buildFullPath(ed.baseURL,ed.url),Ra.params,Ra.paramsSerializer),yd&&gd.set("Authorization","Basic "+btoa((yd.username||"")+":"+(yd.password?unescape(encodeURIComponent(yd.password)):"")));let vd;if(utils$2.isFormData(ud)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)gd.setContentType(void 0);else if((vd=gd.getContentType())!==!1){const[Cd,...wd]=vd?vd.split(";").map(Nd=>Nd.trim()).filter(Boolean):[];gd.setContentType([Cd||"multipart/form-data",...wd].join("; "))}}if(platform.hasStandardBrowserEnv&&(dd&&utils$2.isFunction(dd)&&(dd=dd(ed)),dd||dd!==!1&&isURLSameOrigin(ed.url))){const Cd=hd&&md&&cookies.read(md);Cd&&gd.set(hd,Cd)}return ed},isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(Ra){return new Promise(function(ud,dd){const hd=resolveConfig(Ra);let md=hd.data;const gd=AxiosHeaders$1.from(hd.headers).normalize();let{responseType:yd,onUploadProgress:vd,onDownloadProgress:Cd}=hd,wd,Nd,Ld,Ud,jd;function Gd(){Ud&&Ud(),jd&&jd(),hd.cancelToken&&hd.cancelToken.unsubscribe(wd),hd.signal&&hd.signal.removeEventListener("abort",wd)}let Yd=new XMLHttpRequest;Yd.open(hd.method.toUpperCase(),hd.url,!0),Yd.timeout=hd.timeout;function zd(){if(!Yd)return;const Wd=AxiosHeaders$1.from("getAllResponseHeaders"in Yd&&Yd.getAllResponseHeaders()),Jd={data:!yd||yd==="text"||yd==="json"?Yd.responseText:Yd.response,status:Yd.status,statusText:Yd.statusText,headers:Wd,config:Ra,request:Yd};settle(function(mf){ud(mf),Gd()},function(mf){dd(mf),Gd()},Jd),Yd=null}"onloadend"in Yd?Yd.onloadend=zd:Yd.onreadystatechange=function(){!Yd||Yd.readyState!==4||Yd.status===0&&!(Yd.responseURL&&Yd.responseURL.indexOf("file:")===0)||setTimeout(zd)},Yd.onabort=function(){Yd&&(dd(new AxiosError$1("Request aborted",AxiosError$1.ECONNABORTED,Ra,Yd)),Yd=null)},Yd.onerror=function(){dd(new AxiosError$1("Network Error",AxiosError$1.ERR_NETWORK,Ra,Yd)),Yd=null},Yd.ontimeout=function(){let Xd=hd.timeout?"timeout of "+hd.timeout+"ms exceeded":"timeout exceeded";const Jd=hd.transitional||transitionalDefaults;hd.timeoutErrorMessage&&(Xd=hd.timeoutErrorMessage),dd(new AxiosError$1(Xd,Jd.clarifyTimeoutError?AxiosError$1.ETIMEDOUT:AxiosError$1.ECONNABORTED,Ra,Yd)),Yd=null},md===void 0&&gd.setContentType(null),"setRequestHeader"in Yd&&utils$2.forEach(gd.toJSON(),function(Xd,Jd){Yd.setRequestHeader(Jd,Xd)}),utils$2.isUndefined(hd.withCredentials)||(Yd.withCredentials=!!hd.withCredentials),yd&&yd!=="json"&&(Yd.responseType=hd.responseType),Cd&&([Ld,jd]=progressEventReducer(Cd,!0),Yd.addEventListener("progress",Ld)),vd&&Yd.upload&&([Nd,Ud]=progressEventReducer(vd),Yd.upload.addEventListener("progress",Nd),Yd.upload.addEventListener("loadend",Ud)),(hd.cancelToken||hd.signal)&&(wd=Wd=>{Yd&&(dd(!Wd||Wd.type?new CanceledError$1(null,Ra,Yd):Wd),Yd.abort(),Yd=null)},hd.cancelToken&&hd.cancelToken.subscribe(wd),hd.signal&&(hd.signal.aborted?wd():hd.signal.addEventListener("abort",wd)));const qd=parseProtocol(hd.url);if(qd&&platform.protocols.indexOf(qd)===-1){dd(new AxiosError$1("Unsupported protocol "+qd+":",AxiosError$1.ERR_BAD_REQUEST,Ra));return}Yd.send(md||null)})},composeSignals=(Ra,ed)=>{const{length:ud}=Ra=Ra?Ra.filter(Boolean):[];if(ed||ud){let dd=new AbortController,hd;const md=function(Cd){if(!hd){hd=!0,yd();const wd=Cd instanceof Error?Cd:this.reason;dd.abort(wd instanceof AxiosError$1?wd:new CanceledError$1(wd instanceof Error?wd.message:wd))}};let gd=ed&&setTimeout(()=>{gd=null,md(new AxiosError$1(`timeout ${ed} of ms exceeded`,AxiosError$1.ETIMEDOUT))},ed);const yd=()=>{Ra&&(gd&&clearTimeout(gd),gd=null,Ra.forEach(Cd=>{Cd.unsubscribe?Cd.unsubscribe(md):Cd.removeEventListener("abort",md)}),Ra=null)};Ra.forEach(Cd=>Cd.addEventListener("abort",md));const{signal:vd}=dd;return vd.unsubscribe=()=>utils$2.asap(yd),vd}},streamChunk=function*(Ra,ed){let ud=Ra.byteLength;if(ud{const hd=readBytes(Ra,ed);let md=0,gd,yd=vd=>{gd||(gd=!0,dd&&dd(vd))};return new ReadableStream({async pull(vd){try{const{done:Cd,value:wd}=await hd.next();if(Cd){yd(),vd.close();return}let Nd=wd.byteLength;if(ud){let Ld=md+=Nd;ud(Ld)}vd.enqueue(new Uint8Array(wd))}catch(Cd){throw yd(Cd),Cd}},cancel(vd){return yd(vd),hd.return()}},{highWaterMark:2})},isFetchSupported=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",isReadableStreamSupported=isFetchSupported&&typeof ReadableStream=="function",encodeText=isFetchSupported&&(typeof TextEncoder=="function"?(Ra=>ed=>Ra.encode(ed))(new TextEncoder):async Ra=>new Uint8Array(await new Response(Ra).arrayBuffer())),test=(Ra,...ed)=>{try{return!!Ra(...ed)}catch{return!1}},supportsRequestStream=isReadableStreamSupported&&test(()=>{let Ra=!1;const ed=new Request(platform.origin,{body:new ReadableStream,method:"POST",get duplex(){return Ra=!0,"half"}}).headers.has("Content-Type");return Ra&&!ed}),DEFAULT_CHUNK_SIZE$1=64*1024,supportsResponseStream=isReadableStreamSupported&&test(()=>utils$2.isReadableStream(new Response("").body)),resolvers={stream:supportsResponseStream&&(Ra=>Ra.body)};isFetchSupported&&(Ra=>{["text","arrayBuffer","blob","formData","stream"].forEach(ed=>{!resolvers[ed]&&(resolvers[ed]=utils$2.isFunction(Ra[ed])?ud=>ud[ed]():(ud,dd)=>{throw new AxiosError$1(`Response type '${ed}' is not supported`,AxiosError$1.ERR_NOT_SUPPORT,dd)})})})(new Response);const getBodyLength=async Ra=>{if(Ra==null)return 0;if(utils$2.isBlob(Ra))return Ra.size;if(utils$2.isSpecCompliantForm(Ra))return(await new Request(platform.origin,{method:"POST",body:Ra}).arrayBuffer()).byteLength;if(utils$2.isArrayBufferView(Ra)||utils$2.isArrayBuffer(Ra))return Ra.byteLength;if(utils$2.isURLSearchParams(Ra)&&(Ra=Ra+""),utils$2.isString(Ra))return(await encodeText(Ra)).byteLength},resolveBodyLength=async(Ra,ed)=>{const ud=utils$2.toFiniteNumber(Ra.getContentLength());return ud??getBodyLength(ed)},fetchAdapter=isFetchSupported&&(async Ra=>{let{url:ed,method:ud,data:dd,signal:hd,cancelToken:md,timeout:gd,onDownloadProgress:yd,onUploadProgress:vd,responseType:Cd,headers:wd,withCredentials:Nd="same-origin",fetchOptions:Ld}=resolveConfig(Ra);Cd=Cd?(Cd+"").toLowerCase():"text";let Ud=composeSignals([hd,md&&md.toAbortSignal()],gd),jd;const Gd=Ud&&Ud.unsubscribe&&(()=>{Ud.unsubscribe()});let Yd;try{if(vd&&supportsRequestStream&&ud!=="get"&&ud!=="head"&&(Yd=await resolveBodyLength(wd,dd))!==0){let Jd=new Request(ed,{method:"POST",body:dd,duplex:"half"}),Zd;if(utils$2.isFormData(dd)&&(Zd=Jd.headers.get("content-type"))&&wd.setContentType(Zd),Jd.body){const[mf,xf]=progressEventDecorator(Yd,progressEventReducer(asyncDecorator(vd)));dd=trackStream(Jd.body,DEFAULT_CHUNK_SIZE$1,mf,xf)}}utils$2.isString(Nd)||(Nd=Nd?"include":"omit");const zd="credentials"in Request.prototype;jd=new Request(ed,{...Ld,signal:Ud,method:ud.toUpperCase(),headers:wd.normalize().toJSON(),body:dd,duplex:"half",credentials:zd?Nd:void 0});let qd=await fetch(jd);const Wd=supportsResponseStream&&(Cd==="stream"||Cd==="response");if(supportsResponseStream&&(yd||Wd&&Gd)){const Jd={};["status","statusText","headers"].forEach(_f=>{Jd[_f]=qd[_f]});const Zd=utils$2.toFiniteNumber(qd.headers.get("content-length")),[mf,xf]=yd&&progressEventDecorator(Zd,progressEventReducer(asyncDecorator(yd),!0))||[];qd=new Response(trackStream(qd.body,DEFAULT_CHUNK_SIZE$1,mf,()=>{xf&&xf(),Gd&&Gd()}),Jd)}Cd=Cd||"text";let Xd=await resolvers[utils$2.findKey(resolvers,Cd)||"text"](qd,Ra);return!Wd&&Gd&&Gd(),await new Promise((Jd,Zd)=>{settle(Jd,Zd,{data:Xd,headers:AxiosHeaders$1.from(qd.headers),status:qd.status,statusText:qd.statusText,config:Ra,request:jd})})}catch(zd){throw Gd&&Gd(),zd&&zd.name==="TypeError"&&/fetch/i.test(zd.message)?Object.assign(new AxiosError$1("Network Error",AxiosError$1.ERR_NETWORK,Ra,jd),{cause:zd.cause||zd}):AxiosError$1.from(zd,zd&&zd.code,Ra,jd)}}),knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:fetchAdapter};utils$2.forEach(knownAdapters,(Ra,ed)=>{if(Ra){try{Object.defineProperty(Ra,"name",{value:ed})}catch{}Object.defineProperty(Ra,"adapterName",{value:ed})}});const renderReason=Ra=>`- ${Ra}`,isResolvedHandle=Ra=>utils$2.isFunction(Ra)||Ra===null||Ra===!1,adapters={getAdapter:Ra=>{Ra=utils$2.isArray(Ra)?Ra:[Ra];const{length:ed}=Ra;let ud,dd;const hd={};for(let md=0;md`adapter ${yd} `+(vd===!1?"is not supported by the environment":"is not available in the build"));let gd=ed?md.length>1?`since : `+md.map(renderReason).join(` @@ -1153,17 +1153,17 @@ For more information please go to https://github.com/aws/aws-sdk-js-v3#functiona * https://github.com/lancedikson/bowser * MIT License | (c) Dustin Diaz 2012-2015 * MIT License | (c) Denis Demchenko 2015-2019 - */class Bowser{static getParser(ed,ud=!1){if(typeof ed!="string")throw new Error("UserAgent should be a string");return new Parser(ed,ud)}static parse(ed){return new Parser(ed).getResult()}static get BROWSER_MAP(){return BROWSER_MAP}static get ENGINE_MAP(){return ENGINE_MAP}static get OS_MAP(){return OS_MAP}static get PLATFORMS_MAP(){return PLATFORMS_MAP}}const createDefaultUserAgentProvider=({serviceId:Ra,clientVersion:ed})=>async ud=>{var gd,yd,vd,Cd,wd,Nd;const dd=typeof window<"u"&&((gd=window==null?void 0:window.navigator)!=null&&gd.userAgent)?Bowser.parse(window.navigator.userAgent):void 0,hd=[["aws-sdk-js",ed],["ua","2.1"],[`os/${((yd=dd==null?void 0:dd.os)==null?void 0:yd.name)||"other"}`,(vd=dd==null?void 0:dd.os)==null?void 0:vd.version],["lang/js"],["md/browser",`${((Cd=dd==null?void 0:dd.browser)==null?void 0:Cd.name)??"unknown"}_${((wd=dd==null?void 0:dd.browser)==null?void 0:wd.version)??"unknown"}`]];Ra&&hd.push([`api/${Ra}`,ed]);const md=await((Nd=ud==null?void 0:ud.userAgentAppId)==null?void 0:Nd.call(ud));return md&&hd.push([`app/${md}`]),hd};class Int64{constructor(ed){if(this.bytes=ed,ed.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(ed){if(ed>9223372036854776e3||ed<-9223372036854776e3)throw new Error(`${ed} is too large (or, if negative, too small) to represent as an Int64`);const ud=new Uint8Array(8);for(let dd=7,hd=Math.abs(Math.round(ed));dd>-1&&hd>0;dd--,hd/=256)ud[dd]=hd;return ed<0&&negate(ud),new Int64(ud)}valueOf(){const ed=this.bytes.slice(0),ud=ed[0]&128;return ud&&negate(ed),parseInt(toHex(ed),16)*(ud?-1:1)}toString(){return String(this.valueOf())}}function negate(Ra){for(let ed=0;ed<8;ed++)Ra[ed]^=255;for(let ed=7;ed>-1&&(Ra[ed]++,Ra[ed]===0);ed--);}class HeaderMarshaller{constructor(ed,ud){this.toUtf8=ed,this.fromUtf8=ud}format(ed){const ud=[];for(const md of Object.keys(ed)){const gd=this.fromUtf8(md);ud.push(Uint8Array.from([gd.byteLength]),gd,this.formatHeaderValue(ed[md]))}const dd=new Uint8Array(ud.reduce((md,gd)=>md+gd.byteLength,0));let hd=0;for(const md of ud)dd.set(md,hd),hd+=md.byteLength;return dd}formatHeaderValue(ed){switch(ed.type){case"boolean":return Uint8Array.from([ed.value?0:1]);case"byte":return Uint8Array.from([2,ed.value]);case"short":const ud=new DataView(new ArrayBuffer(3));return ud.setUint8(0,3),ud.setInt16(1,ed.value,!1),new Uint8Array(ud.buffer);case"integer":const dd=new DataView(new ArrayBuffer(5));return dd.setUint8(0,4),dd.setInt32(1,ed.value,!1),new Uint8Array(dd.buffer);case"long":const hd=new Uint8Array(9);return hd[0]=5,hd.set(ed.value.bytes,1),hd;case"binary":const md=new DataView(new ArrayBuffer(3+ed.value.byteLength));md.setUint8(0,6),md.setUint16(1,ed.value.byteLength,!1);const gd=new Uint8Array(md.buffer);return gd.set(ed.value,3),gd;case"string":const yd=this.fromUtf8(ed.value),vd=new DataView(new ArrayBuffer(3+yd.byteLength));vd.setUint8(0,7),vd.setUint16(1,yd.byteLength,!1);const Cd=new Uint8Array(vd.buffer);return Cd.set(yd,3),Cd;case"timestamp":const wd=new Uint8Array(9);return wd[0]=8,wd.set(Int64.fromNumber(ed.value.valueOf()).bytes,1),wd;case"uuid":if(!UUID_PATTERN.test(ed.value))throw new Error(`Invalid UUID received: ${ed.value}`);const Nd=new Uint8Array(17);return Nd[0]=9,Nd.set(fromHex(ed.value.replace(/\-/g,"")),1),Nd}}parse(ed){const ud={};let dd=0;for(;dd{if(typeof yd!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+yd);ed=yd,ud=4,dd=new Uint8Array(yd),new DataView(dd.buffer).setUint32(0,yd,!1)},gd=async function*(){const yd=Ra[Symbol.asyncIterator]();for(;;){const{value:vd,done:Cd}=await yd.next();if(Cd){if(ed)if(ed===ud)yield dd;else throw new Error("Truncated event message received.");else return;return}const wd=vd.length;let Nd=0;for(;Nd({[Symbol.asyncIterator]:async function*(){const ed=Ra.getReader();try{for(;;){const{done:ud,value:dd}=await ed.read();if(ud)return;yield dd}}finally{ed.releaseLock()}}}),iterableToReadableStream=Ra=>{const ed=Ra[Symbol.asyncIterator]();return new ReadableStream({async pull(ud){const{done:dd,value:hd}=await ed.next();if(dd)return ud.close();ud.enqueue(hd)}})};class EventStreamMarshaller{constructor({utf8Encoder:ed,utf8Decoder:ud}){this.universalMarshaller=new EventStreamMarshaller$1({utf8Decoder:ud,utf8Encoder:ed})}deserialize(ed,ud){const dd=isReadableStream$1(ed)?readableStreamtoIterable(ed):ed;return this.universalMarshaller.deserialize(dd,ud)}serialize(ed,ud){const dd=this.universalMarshaller.serialize(ed,ud);return typeof ReadableStream=="function"?iterableToReadableStream(dd):dd}}const isReadableStream$1=Ra=>typeof ReadableStream=="function"&&Ra instanceof ReadableStream,eventStreamSerdeProvider=Ra=>new EventStreamMarshaller(Ra);async function blobReader(Ra,ed,ud=1024*1024){const dd=Ra.size;let hd=0;for(;hd{dd.update(hd)}),dd.digest()},invalidProvider=Ra=>()=>Promise.reject(Ra),BLOCK_SIZE=64,DIGEST_LENGTH=16,INIT=[1732584193,4023233417,2562383102,271733878];class Md5{constructor(){this.reset()}update(ed){if(isEmptyData(ed))return;if(this.finished)throw new Error("Attempted to update an already finished hash.");const ud=convertToBuffer(ed);let dd=0,{byteLength:hd}=ud;for(this.bytesHashed+=hd;hd>0;)this.buffer.setUint8(this.bufferLength++,ud[dd++]),hd--,this.bufferLength===BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)}async digest(){if(!this.finished){const{buffer:ud,bufferLength:dd,bytesHashed:hd}=this,md=hd*8;if(ud.setUint8(this.bufferLength++,128),dd%BLOCK_SIZE>=BLOCK_SIZE-8){for(let gd=this.bufferLength;gd>>0,!0),ud.setUint32(BLOCK_SIZE-4,Math.floor(md/4294967296),!0),this.hashBuffer(),this.finished=!0}const ed=new DataView(new ArrayBuffer(DIGEST_LENGTH));for(let ud=0;ud<4;ud++)ed.setUint32(ud*4,this.state[ud],!0);return new Uint8Array(ed.buffer,ed.byteOffset,ed.byteLength)}hashBuffer(){const{buffer:ed,state:ud}=this;let dd=ud[0],hd=ud[1],md=ud[2],gd=ud[3];dd=ff(dd,hd,md,gd,ed.getUint32(0,!0),7,3614090360),gd=ff(gd,dd,hd,md,ed.getUint32(4,!0),12,3905402710),md=ff(md,gd,dd,hd,ed.getUint32(8,!0),17,606105819),hd=ff(hd,md,gd,dd,ed.getUint32(12,!0),22,3250441966),dd=ff(dd,hd,md,gd,ed.getUint32(16,!0),7,4118548399),gd=ff(gd,dd,hd,md,ed.getUint32(20,!0),12,1200080426),md=ff(md,gd,dd,hd,ed.getUint32(24,!0),17,2821735955),hd=ff(hd,md,gd,dd,ed.getUint32(28,!0),22,4249261313),dd=ff(dd,hd,md,gd,ed.getUint32(32,!0),7,1770035416),gd=ff(gd,dd,hd,md,ed.getUint32(36,!0),12,2336552879),md=ff(md,gd,dd,hd,ed.getUint32(40,!0),17,4294925233),hd=ff(hd,md,gd,dd,ed.getUint32(44,!0),22,2304563134),dd=ff(dd,hd,md,gd,ed.getUint32(48,!0),7,1804603682),gd=ff(gd,dd,hd,md,ed.getUint32(52,!0),12,4254626195),md=ff(md,gd,dd,hd,ed.getUint32(56,!0),17,2792965006),hd=ff(hd,md,gd,dd,ed.getUint32(60,!0),22,1236535329),dd=gg(dd,hd,md,gd,ed.getUint32(4,!0),5,4129170786),gd=gg(gd,dd,hd,md,ed.getUint32(24,!0),9,3225465664),md=gg(md,gd,dd,hd,ed.getUint32(44,!0),14,643717713),hd=gg(hd,md,gd,dd,ed.getUint32(0,!0),20,3921069994),dd=gg(dd,hd,md,gd,ed.getUint32(20,!0),5,3593408605),gd=gg(gd,dd,hd,md,ed.getUint32(40,!0),9,38016083),md=gg(md,gd,dd,hd,ed.getUint32(60,!0),14,3634488961),hd=gg(hd,md,gd,dd,ed.getUint32(16,!0),20,3889429448),dd=gg(dd,hd,md,gd,ed.getUint32(36,!0),5,568446438),gd=gg(gd,dd,hd,md,ed.getUint32(56,!0),9,3275163606),md=gg(md,gd,dd,hd,ed.getUint32(12,!0),14,4107603335),hd=gg(hd,md,gd,dd,ed.getUint32(32,!0),20,1163531501),dd=gg(dd,hd,md,gd,ed.getUint32(52,!0),5,2850285829),gd=gg(gd,dd,hd,md,ed.getUint32(8,!0),9,4243563512),md=gg(md,gd,dd,hd,ed.getUint32(28,!0),14,1735328473),hd=gg(hd,md,gd,dd,ed.getUint32(48,!0),20,2368359562),dd=hh(dd,hd,md,gd,ed.getUint32(20,!0),4,4294588738),gd=hh(gd,dd,hd,md,ed.getUint32(32,!0),11,2272392833),md=hh(md,gd,dd,hd,ed.getUint32(44,!0),16,1839030562),hd=hh(hd,md,gd,dd,ed.getUint32(56,!0),23,4259657740),dd=hh(dd,hd,md,gd,ed.getUint32(4,!0),4,2763975236),gd=hh(gd,dd,hd,md,ed.getUint32(16,!0),11,1272893353),md=hh(md,gd,dd,hd,ed.getUint32(28,!0),16,4139469664),hd=hh(hd,md,gd,dd,ed.getUint32(40,!0),23,3200236656),dd=hh(dd,hd,md,gd,ed.getUint32(52,!0),4,681279174),gd=hh(gd,dd,hd,md,ed.getUint32(0,!0),11,3936430074),md=hh(md,gd,dd,hd,ed.getUint32(12,!0),16,3572445317),hd=hh(hd,md,gd,dd,ed.getUint32(24,!0),23,76029189),dd=hh(dd,hd,md,gd,ed.getUint32(36,!0),4,3654602809),gd=hh(gd,dd,hd,md,ed.getUint32(48,!0),11,3873151461),md=hh(md,gd,dd,hd,ed.getUint32(60,!0),16,530742520),hd=hh(hd,md,gd,dd,ed.getUint32(8,!0),23,3299628645),dd=ii(dd,hd,md,gd,ed.getUint32(0,!0),6,4096336452),gd=ii(gd,dd,hd,md,ed.getUint32(28,!0),10,1126891415),md=ii(md,gd,dd,hd,ed.getUint32(56,!0),15,2878612391),hd=ii(hd,md,gd,dd,ed.getUint32(20,!0),21,4237533241),dd=ii(dd,hd,md,gd,ed.getUint32(48,!0),6,1700485571),gd=ii(gd,dd,hd,md,ed.getUint32(12,!0),10,2399980690),md=ii(md,gd,dd,hd,ed.getUint32(40,!0),15,4293915773),hd=ii(hd,md,gd,dd,ed.getUint32(4,!0),21,2240044497),dd=ii(dd,hd,md,gd,ed.getUint32(32,!0),6,1873313359),gd=ii(gd,dd,hd,md,ed.getUint32(60,!0),10,4264355552),md=ii(md,gd,dd,hd,ed.getUint32(24,!0),15,2734768916),hd=ii(hd,md,gd,dd,ed.getUint32(52,!0),21,1309151649),dd=ii(dd,hd,md,gd,ed.getUint32(16,!0),6,4149444226),gd=ii(gd,dd,hd,md,ed.getUint32(44,!0),10,3174756917),md=ii(md,gd,dd,hd,ed.getUint32(8,!0),15,718787259),hd=ii(hd,md,gd,dd,ed.getUint32(36,!0),21,3951481745),ud[0]=dd+ud[0]&4294967295,ud[1]=hd+ud[1]&4294967295,ud[2]=md+ud[2]&4294967295,ud[3]=gd+ud[3]&4294967295}reset(){this.state=Uint32Array.from(INIT),this.buffer=new DataView(new ArrayBuffer(BLOCK_SIZE)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}}function cmn(Ra,ed,ud,dd,hd,md){return ed=(ed+Ra&4294967295)+(dd+md&4294967295)&4294967295,(ed<>>32-hd)+ud&4294967295}function ff(Ra,ed,ud,dd,hd,md,gd){return cmn(ed&ud|~ed&dd,Ra,ed,hd,md,gd)}function gg(Ra,ed,ud,dd,hd,md,gd){return cmn(ed&dd|ud&~dd,Ra,ed,hd,md,gd)}function hh(Ra,ed,ud,dd,hd,md,gd){return cmn(ed^ud^dd,Ra,ed,hd,md,gd)}function ii(Ra,ed,ud,dd,hd,md,gd){return cmn(ud^(ed|~dd),Ra,ed,hd,md,gd)}function isEmptyData(Ra){return typeof Ra=="string"?Ra.length===0:Ra.byteLength===0}function convertToBuffer(Ra){return typeof Ra=="string"?fromUtf8$3(Ra):ArrayBuffer.isView(Ra)?new Uint8Array(Ra.buffer,Ra.byteOffset,Ra.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(Ra)}const TEXT_ENCODER=typeof TextEncoder=="function"?new TextEncoder:null,calculateBodyLength=Ra=>{if(typeof Ra=="string"){if(TEXT_ENCODER)return TEXT_ENCODER.encode(Ra).byteLength;let ed=Ra.length;for(let ud=ed-1;ud>=0;ud--){const dd=Ra.charCodeAt(ud);dd>127&&dd<=2047?ed++:dd>2047&&dd<=65535&&(ed+=2),dd>=56320&&dd<=57343&&ud--}return ed}else{if(typeof Ra.byteLength=="number")return Ra.byteLength;if(typeof Ra.size=="number")return Ra.size}throw new Error(`Body Length computation failed for ${Ra}`)},getRuntimeConfig$1=Ra=>({apiVersion:"2006-03-01",base64Decoder:(Ra==null?void 0:Ra.base64Decoder)??fromBase64,base64Encoder:(Ra==null?void 0:Ra.base64Encoder)??toBase64,disableHostPrefix:(Ra==null?void 0:Ra.disableHostPrefix)??!1,endpointProvider:(Ra==null?void 0:Ra.endpointProvider)??defaultEndpointResolver,extensions:(Ra==null?void 0:Ra.extensions)??[],getAwsChunkedEncodingStream:(Ra==null?void 0:Ra.getAwsChunkedEncodingStream)??getAwsChunkedEncodingStream,httpAuthSchemeProvider:(Ra==null?void 0:Ra.httpAuthSchemeProvider)??defaultS3HttpAuthSchemeProvider,httpAuthSchemes:(Ra==null?void 0:Ra.httpAuthSchemes)??[{schemeId:"aws.auth#sigv4",identityProvider:ed=>ed.getIdentityProvider("aws.auth#sigv4"),signer:new AwsSdkSigV4Signer},{schemeId:"aws.auth#sigv4a",identityProvider:ed=>ed.getIdentityProvider("aws.auth#sigv4a"),signer:new AwsSdkSigV4ASigner}],logger:(Ra==null?void 0:Ra.logger)??new NoOpLogger,sdkStreamMixin:(Ra==null?void 0:Ra.sdkStreamMixin)??sdkStreamMixin,serviceId:(Ra==null?void 0:Ra.serviceId)??"S3",signerConstructor:(Ra==null?void 0:Ra.signerConstructor)??SignatureV4MultiRegion,signingEscapePath:(Ra==null?void 0:Ra.signingEscapePath)??!1,urlParser:(Ra==null?void 0:Ra.urlParser)??parseUrl,useArnRegion:(Ra==null?void 0:Ra.useArnRegion)??!1,utf8Decoder:(Ra==null?void 0:Ra.utf8Decoder)??fromUtf8$3,utf8Encoder:(Ra==null?void 0:Ra.utf8Encoder)??toUtf8}),DEFAULTS_MODE_OPTIONS=["in-region","cross-region","mobile","standard","legacy"],resolveDefaultsModeConfig=({defaultsMode:Ra}={})=>memoize$1(async()=>{const ed=typeof Ra=="function"?await Ra():Ra;switch(ed==null?void 0:ed.toLowerCase()){case"auto":return Promise.resolve(isMobileBrowser()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(ed==null?void 0:ed.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${DEFAULTS_MODE_OPTIONS.join(", ")}, got ${ed}`)}}),isMobileBrowser=()=>{var ud,dd;const Ra=typeof window<"u"&&((ud=window==null?void 0:window.navigator)!=null&&ud.userAgent)?Bowser.parse(window.navigator.userAgent):void 0,ed=(dd=Ra==null?void 0:Ra.platform)==null?void 0:dd.type;return ed==="tablet"||ed==="mobile"},getRuntimeConfig=Ra=>{const ed=resolveDefaultsModeConfig(Ra),ud=()=>ed().then(loadConfigsForDefaultMode),dd=getRuntimeConfig$1(Ra);return{...dd,...Ra,runtime:"browser",defaultsMode:ed,bodyLengthChecker:(Ra==null?void 0:Ra.bodyLengthChecker)??calculateBodyLength,credentialDefaultProvider:(Ra==null?void 0:Ra.credentialDefaultProvider)??(hd=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:(Ra==null?void 0:Ra.defaultUserAgentProvider)??createDefaultUserAgentProvider({serviceId:dd.serviceId,clientVersion:packageInfo.version}),eventStreamSerdeProvider:(Ra==null?void 0:Ra.eventStreamSerdeProvider)??eventStreamSerdeProvider,maxAttempts:(Ra==null?void 0:Ra.maxAttempts)??DEFAULT_MAX_ATTEMPTS,md5:(Ra==null?void 0:Ra.md5)??Md5,region:(Ra==null?void 0:Ra.region)??invalidProvider("Region is missing"),requestHandler:FetchHttpHandler.create((Ra==null?void 0:Ra.requestHandler)??ud),retryMode:(Ra==null?void 0:Ra.retryMode)??(async()=>(await ud()).retryMode||DEFAULT_RETRY_MODE),sha1:(Ra==null?void 0:Ra.sha1)??Sha1,sha256:(Ra==null?void 0:Ra.sha256)??Sha256,streamCollector:(Ra==null?void 0:Ra.streamCollector)??streamCollector,streamHasher:(Ra==null?void 0:Ra.streamHasher)??blobHasher,useDualstackEndpoint:(Ra==null?void 0:Ra.useDualstackEndpoint)??(()=>Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),useFipsEndpoint:(Ra==null?void 0:Ra.useFipsEndpoint)??(()=>Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT))}},getAwsRegionExtensionConfiguration=Ra=>{let ed=async()=>{if(Ra.region===void 0)throw new Error("Region is missing from runtimeConfig");const ud=Ra.region;return typeof ud=="string"?ud:ud()};return{setRegion(ud){ed=ud},region(){return ed}}},resolveAwsRegionExtensionConfiguration=Ra=>({region:Ra.region()}),getHttpAuthExtensionConfiguration=Ra=>{const ed=Ra.httpAuthSchemes;let ud=Ra.httpAuthSchemeProvider,dd=Ra.credentials;return{setHttpAuthScheme(hd){const md=ed.findIndex(gd=>gd.schemeId===hd.schemeId);md===-1?ed.push(hd):ed.splice(md,1,hd)},httpAuthSchemes(){return ed},setHttpAuthSchemeProvider(hd){ud=hd},httpAuthSchemeProvider(){return ud},setCredentials(hd){dd=hd},credentials(){return dd}}},resolveHttpAuthRuntimeConfig=Ra=>({httpAuthSchemes:Ra.httpAuthSchemes(),httpAuthSchemeProvider:Ra.httpAuthSchemeProvider(),credentials:Ra.credentials()}),asPartial=Ra=>Ra,resolveRuntimeExtensions=(Ra,ed)=>{const ud={...asPartial(getAwsRegionExtensionConfiguration(Ra)),...asPartial(getDefaultExtensionConfiguration(Ra)),...asPartial(getHttpHandlerExtensionConfiguration(Ra)),...asPartial(getHttpAuthExtensionConfiguration(Ra))};return ed.forEach(dd=>dd.configure(ud)),{...Ra,...resolveAwsRegionExtensionConfiguration(ud),...resolveDefaultRuntimeConfig(ud),...resolveHttpHandlerRuntimeConfig(ud),...resolveHttpAuthRuntimeConfig(ud)}};class S3Client extends Client$1{constructor(...[ud]){const dd=getRuntimeConfig(ud||{}),hd=resolveClientEndpointParameters(dd),md=resolveUserAgentConfig(hd),gd=resolveFlexibleChecksumsConfig(md),yd=resolveRetryConfig(gd),vd=resolveRegionConfig(yd),Cd=vd,wd=resolveEndpointConfig(Cd),Nd=resolveEventStreamSerdeConfig(wd),Ld=resolveHttpAuthSchemeConfig(Nd),Ud=resolveS3Config(Ld,{session:[()=>this,CreateSessionCommand]}),jd=resolveRuntimeExtensions(Ud,(ud==null?void 0:ud.extensions)||[]);super(jd);Ig(this,"config");this.config=jd,this.middlewareStack.use(getUserAgentPlugin(this.config)),this.middlewareStack.use(getRetryPlugin(this.config)),this.middlewareStack.use(getContentLengthPlugin(this.config)),this.middlewareStack.use(getHostHeaderPlugin(this.config)),this.middlewareStack.use(getLoggerPlugin(this.config)),this.middlewareStack.use(getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:defaultS3HttpAuthSchemeParametersProvider,identityProviderConfigProvider:async Gd=>new DefaultIdentityProviderConfig({"aws.auth#sigv4":Gd.credentials,"aws.auth#sigv4a":Gd.credentials})})),this.middlewareStack.use(getHttpSigningPlugin(this.config)),this.middlewareStack.use(getValidateBucketNamePlugin(this.config)),this.middlewareStack.use(getAddExpectContinuePlugin(this.config)),this.middlewareStack.use(getRegionRedirectMiddlewarePlugin(this.config)),this.middlewareStack.use(getS3ExpressPlugin(this.config)),this.middlewareStack.use(getS3ExpressHttpSigningPlugin(this.config))}destroy(){super.destroy()}}function ssecMiddleware(Ra){return ed=>async ud=>{const dd={...ud.input},hd=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}];for(const md of hd){const gd=dd[md.target];if(gd){let yd;typeof gd=="string"?isValidBase64EncodedSSECustomerKey(gd,Ra)?yd=Ra.base64Decoder(gd):(yd=Ra.utf8Decoder(gd),dd[md.target]=Ra.base64Encoder(yd)):(yd=ArrayBuffer.isView(gd)?new Uint8Array(gd.buffer,gd.byteOffset,gd.byteLength):new Uint8Array(gd),dd[md.target]=Ra.base64Encoder(yd));const vd=new Ra.md5;vd.update(yd),dd[md.hash]=Ra.base64Encoder(await vd.digest())}}return ed({...ud,input:dd})}}const ssecMiddlewareOptions={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0},getSsecPlugin=Ra=>({applyToStack:ed=>{ed.add(ssecMiddleware(Ra),ssecMiddlewareOptions)}});function isValidBase64EncodedSSECustomerKey(Ra,ed){if(!/^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(Ra))return!1;try{return ed.base64Decoder(Ra).length===32}catch{return!1}}class PutObjectCommand extends Command.classBuilder().ep({...commonParams,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(ed,ud,dd,hd){return[getSerdePlugin(dd,this.serialize,this.deserialize),getEndpointPlugin(dd,ed.getEndpointParameterInstructions()),getFlexibleChecksumsPlugin(dd,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),getCheckContentLengthHeaderPlugin(),getThrow200ExceptionsPlugin(dd),getSsecPlugin(dd)]}).s("AmazonS3","PutObject",{}).n("S3Client","PutObjectCommand").f(PutObjectRequestFilterSensitiveLog,PutObjectOutputFilterSensitiveLog).ser(se_PutObjectCommand).de(de_PutObjectCommand).build(){}function formatUrl(Ra){const{port:ed,query:ud}=Ra;let{protocol:dd,path:hd,hostname:md}=Ra;dd&&dd.slice(-1)!==":"&&(dd+=":"),ed&&(md+=`:${ed}`),hd&&hd.charAt(0)!=="/"&&(hd=`/${hd}`);let gd=ud?buildQueryString(ud):"";gd&&gd[0]!=="?"&&(gd=`?${gd}`);let yd="";if(Ra.username!=null||Ra.password!=null){const Cd=Ra.username??"",wd=Ra.password??"";yd=`${Cd}:${wd}@`}let vd="";return Ra.fragment&&(vd=`#${Ra.fragment}`),`${dd}//${yd}${md}${hd}${gd}${vd}`}const UNSIGNED_PAYLOAD="UNSIGNED-PAYLOAD",SHA256_HEADER="X-Amz-Content-Sha256";class S3RequestPresigner{constructor(ed){Ig(this,"signer");const ud={service:ed.signingName||ed.service||"s3",uriEscapePath:ed.uriEscapePath||!1,applyChecksum:ed.applyChecksum||!1,...ed};this.signer=new SignatureV4MultiRegion(ud)}presign(ed,{unsignableHeaders:ud=new Set,hoistableHeaders:dd=new Set,unhoistableHeaders:hd=new Set,...md}={}){return this.prepareRequest(ed,{unsignableHeaders:ud,unhoistableHeaders:hd,hoistableHeaders:dd}),this.signer.presign(ed,{expiresIn:900,unsignableHeaders:ud,unhoistableHeaders:hd,...md})}presignWithCredentials(ed,ud,{unsignableHeaders:dd=new Set,hoistableHeaders:hd=new Set,unhoistableHeaders:md=new Set,...gd}={}){return this.prepareRequest(ed,{unsignableHeaders:dd,unhoistableHeaders:md,hoistableHeaders:hd}),this.signer.presignWithCredentials(ed,ud,{expiresIn:900,unsignableHeaders:dd,unhoistableHeaders:md,...gd})}prepareRequest(ed,{unsignableHeaders:ud=new Set,unhoistableHeaders:dd=new Set,hoistableHeaders:hd=new Set}={}){ud.add("content-type"),Object.keys(ed.headers).map(vd=>vd.toLowerCase()).filter(vd=>vd.startsWith("x-amz-server-side-encryption")).forEach(vd=>{hd.has(vd)||dd.add(vd)}),ed.headers[SHA256_HEADER]=UNSIGNED_PAYLOAD;const md=ed.headers.host,gd=ed.port,yd=`${ed.hostname}${ed.port!=null?":"+gd:""}`;(!md||md===ed.hostname&&ed.port!=null)&&(ed.headers.host=yd)}}const getSignedUrl=async(Ra,ed,ud={})=>{var Nd,Ld,Ud;let dd,hd;if(typeof Ra.config.endpointProvider=="function"){const Gd=(Ld=(Nd=(await getEndpointFromInstructions(ed.input,ed.constructor,Ra.config)).properties)==null?void 0:Nd.authSchemes)==null?void 0:Ld[0];(Gd==null?void 0:Gd.name)==="sigv4a"?hd=(Ud=Gd==null?void 0:Gd.signingRegionSet)==null?void 0:Ud.join(","):hd=Gd==null?void 0:Gd.signingRegion,dd=new S3RequestPresigner({...Ra.config,signingName:Gd==null?void 0:Gd.signingName,region:async()=>hd})}else dd=new S3RequestPresigner(Ra.config);const md=(jd,Gd)=>async Yd=>{const{request:zd}=Yd;if(!HttpRequest.isInstance(zd))throw new Error("Request to be presigned is not an valid HTTP request.");delete zd.headers["amz-sdk-invocation-id"],delete zd.headers["amz-sdk-request"],delete zd.headers["x-amz-user-agent"];let qd;const Wd={...ud,signingRegion:ud.signingRegion??Gd.signing_region??hd,signingService:ud.signingService??Gd.signing_service};return Gd.s3ExpressIdentity?qd=await dd.presignWithCredentials(zd,Gd.s3ExpressIdentity,Wd):qd=await dd.presign(zd,Wd),{response:{},output:{$metadata:{httpStatusCode:200},presigned:qd}}},gd="presignInterceptMiddleware",yd=Ra.middlewareStack.clone();yd.addRelativeTo(md,{name:gd,relation:"before",toMiddleware:"awsAuthMiddleware",override:!0});const vd=ed.resolveMiddleware(yd,Ra.config,{}),{output:Cd}=await vd({input:ed.input}),{presigned:wd}=Cd;return formatUrl(wd)};var toString=Object.prototype.toString,isModern=typeof Buffer$4<"u"&&typeof Buffer$4.alloc=="function"&&typeof Buffer$4.allocUnsafe=="function"&&typeof Buffer$4.from=="function";function isArrayBuffer(Ra){return toString.call(Ra).slice(8,-1)==="ArrayBuffer"}function fromArrayBuffer(Ra,ed,ud){ed>>>=0;var dd=Ra.byteLength-ed;if(dd<0)throw new RangeError("'offset' is out of bounds");if(ud===void 0)ud=dd;else if(ud>>>=0,ud>dd)throw new RangeError("'length' is out of bounds");return isModern?Buffer$4.from(Ra.slice(ed,ed+ud)):new Buffer$4(new Uint8Array(Ra.slice(ed,ed+ud)))}function fromString(Ra,ed){if((typeof ed!="string"||ed==="")&&(ed="utf8"),!Buffer$4.isEncoding(ed))throw new TypeError('"encoding" must be a valid string encoding');return isModern?Buffer$4.from(Ra,ed):new Buffer$4(Ra,ed)}function bufferFrom(Ra,ed,ud){if(typeof Ra=="number")throw new TypeError('"value" argument must not be a number');return isArrayBuffer(Ra)?fromArrayBuffer(Ra,ed,ud):typeof Ra=="string"?fromString(Ra,ed):isModern?Buffer$4.from(Ra):new Buffer$4(Ra)}var bufferFrom_1=bufferFrom;const Buffer$1=getDefaultExportFromCjs(bufferFrom_1);var cosJsSdkV5={exports:{}};(function(Ra,ed){(function(dd,hd){Ra.exports=hd()})(commonjsGlobal,function(){return function(ud){var dd={};function hd(md){if(dd[md])return dd[md].exports;var gd=dd[md]={i:md,l:!1,exports:{}};return ud[md].call(gd.exports,gd,gd.exports,hd),gd.l=!0,gd.exports}return hd.m=ud,hd.c=dd,hd.d=function(md,gd,yd){hd.o(md,gd)||Object.defineProperty(md,gd,{enumerable:!0,get:yd})},hd.r=function(md){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(md,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(md,"__esModule",{value:!0})},hd.t=function(md,gd){if(gd&1&&(md=hd(md)),gd&8||gd&4&&typeof md=="object"&&md&&md.__esModule)return md;var yd=Object.create(null);if(hd.r(yd),Object.defineProperty(yd,"default",{enumerable:!0,value:md}),gd&2&&typeof md!="string")for(var vd in md)hd.d(yd,vd,(function(Cd){return md[Cd]}).bind(null,vd));return yd},hd.n=function(md){var gd=md&&md.__esModule?function(){return md.default}:function(){return md};return hd.d(gd,"a",gd),gd},hd.o=function(md,gd){return Object.prototype.hasOwnProperty.call(md,gd)},hd.p="/dist/",hd(hd.s="./index.js")}({"./index.js":function(ud,dd,hd){var md=hd("./src/cos.js");ud.exports=md},"./lib/base64.js":function(ud,dd){var hd=function(md){md=md||{};var gd=md.Base64,yd="2.1.9",vd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Cd=function(Af){for(var Df={},Of=0,Cf=Af.length;Of>>6)+wd(128|Of&63):wd(224|Of>>>12&15)+wd(128|Of>>>6&63)+wd(128|Of&63)}else{var Of=65536+(Df.charCodeAt(0)-55296)*1024+(Df.charCodeAt(1)-56320);return wd(240|Of>>>18&7)+wd(128|Of>>>12&63)+wd(128|Of>>>6&63)+wd(128|Of&63)}},Ld=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Ud=function(Df){return Df.replace(Ld,Nd)},jd=function(Df){var Of=[0,2,1][Df.length%3],Cf=Df.charCodeAt(0)<<16|(Df.length>1?Df.charCodeAt(1):0)<<8|(Df.length>2?Df.charCodeAt(2):0),If=[vd.charAt(Cf>>>18),vd.charAt(Cf>>>12&63),Of>=2?"=":vd.charAt(Cf>>>6&63),Of>=1?"=":vd.charAt(Cf&63)];return If.join("")},Gd=md.btoa?function(Af){return md.btoa(Af)}:function(Af){return Af.replace(/[\s\S]{1,3}/g,jd)},Yd=function(Af){return Gd(Ud(Af))},zd=function(Df,Of){return Of?Yd(String(Df)).replace(/[+\/]/g,function(Cf){return Cf=="+"?"-":"_"}).replace(/=/g,""):Yd(String(Df))},qd=function(Df){return zd(Df,!0)},Wd=new RegExp(["[À-ß][€-¿]","[à-ï][€-¿]{2}","[ð-÷][€-¿]{3}"].join("|"),"g"),Xd=function(Df){switch(Df.length){case 4:var Of=(7&Df.charCodeAt(0))<<18|(63&Df.charCodeAt(1))<<12|(63&Df.charCodeAt(2))<<6|63&Df.charCodeAt(3),Cf=Of-65536;return wd((Cf>>>10)+55296)+wd((Cf&1023)+56320);case 3:return wd((15&Df.charCodeAt(0))<<12|(63&Df.charCodeAt(1))<<6|63&Df.charCodeAt(2));default:return wd((31&Df.charCodeAt(0))<<6|63&Df.charCodeAt(1))}},Jd=function(Df){return Df.replace(Wd,Xd)},Zd=function(Df){var Of=Df.length,Cf=Of%4,If=(Of>0?Cd[Df.charAt(0)]<<18:0)|(Of>1?Cd[Df.charAt(1)]<<12:0)|(Of>2?Cd[Df.charAt(2)]<<6:0)|(Of>3?Cd[Df.charAt(3)]:0),Ff=[wd(If>>>16),wd(If>>>8&255),wd(If&255)];return Ff.length-=[0,0,2,1][Cf],Ff.join("")},mf=md.atob?function(Af){return md.atob(Af)}:function(Af){return Af.replace(/[\s\S]{1,4}/g,Zd)},xf=function(Af){return Jd(mf(Af))},_f=function(Df){return xf(String(Df).replace(/[-_]/g,function(Of){return Of=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},vf=function(){var Df=md.Base64;return md.Base64=gd,Df},gf={VERSION:yd,atob:mf,btoa:Gd,fromBase64:_f,toBase64:zd,utob:Ud,encode:zd,encodeURI:qd,btou:Jd,decode:_f,noConflict:vf};return gf}();ud.exports=hd},"./lib/crypto.js":function(ud,dd,hd){(function(md){var gd=hd("./node_modules/@babel/runtime/helpers/typeof.js"),yd=yd||function(vd,Cd){var wd={},Nd=wd.lib={},Ld=function(){},Ud=Nd.Base={extend:function(Zd){Ld.prototype=this;var mf=new Ld;return Zd&&mf.mixIn(Zd),mf.hasOwnProperty("init")||(mf.init=function(){mf.$super.init.apply(this,arguments)}),mf.init.prototype=mf,mf.$super=this,mf},create:function(){var Zd=this.extend();return Zd.init.apply(Zd,arguments),Zd},init:function(){},mixIn:function(Zd){for(var mf in Zd)Zd.hasOwnProperty(mf)&&(this[mf]=Zd[mf]);Zd.hasOwnProperty("toString")&&(this.toString=Zd.toString)},clone:function(){return this.init.prototype.extend(this)}},jd=Nd.WordArray=Ud.extend({init:function(Zd,mf){Zd=this.words=Zd||[],this.sigBytes=mf!=Cd?mf:4*Zd.length},toString:function(Zd){return(Zd||Yd).stringify(this)},concat:function(Zd){var mf=this.words,xf=Zd.words,_f=this.sigBytes;if(Zd=Zd.sigBytes,this.clamp(),_f%4)for(var vf=0;vf>>2]|=(xf[vf>>>2]>>>24-8*(vf%4)&255)<<24-8*((_f+vf)%4);else if(65535>>2]=xf[vf>>>2];else mf.push.apply(mf,xf);return this.sigBytes+=Zd,this},clamp:function(){var Zd=this.words,mf=this.sigBytes;Zd[mf>>>2]&=4294967295<<32-8*(mf%4),Zd.length=vd.ceil(mf/4)},clone:function(){var Zd=Ud.clone.call(this);return Zd.words=this.words.slice(0),Zd},random:function(Zd){for(var mf=[],xf=0;xf>>2]>>>24-8*(_f%4)&255;xf.push((vf>>>4).toString(16)),xf.push((vf&15).toString(16))}return xf.join("")},parse:function(Zd){for(var mf=Zd.length,xf=[],_f=0;_f>>3]|=parseInt(Zd.substr(_f,2),16)<<24-4*(_f%8);return new jd.init(xf,mf/2)}},zd=Gd.Latin1={stringify:function(Zd){var mf=Zd.words;Zd=Zd.sigBytes;for(var xf=[],_f=0;_f>>2]>>>24-8*(_f%4)&255));return xf.join("")},parse:function(Zd){for(var mf=Zd.length,xf=[],_f=0;_f>>2]|=(Zd.charCodeAt(_f)&255)<<24-8*(_f%4);return new jd.init(xf,mf)}},qd=Gd.Utf8={stringify:function(Zd){try{return decodeURIComponent(escape(zd.stringify(Zd)))}catch{throw Error("Malformed UTF-8 data")}},parse:function(Zd){return zd.parse(unescape(encodeURIComponent(Zd)))}},Wd=Nd.BufferedBlockAlgorithm=Ud.extend({reset:function(){this._data=new jd.init,this._nDataBytes=0},_append:function(Zd){typeof Zd=="string"&&(Zd=qd.parse(Zd)),this._data.concat(Zd),this._nDataBytes+=Zd.sigBytes},_process:function(Zd){var mf=this._data,xf=mf.words,_f=mf.sigBytes,vf=this.blockSize,gf=_f/(4*vf),gf=Zd?vd.ceil(gf):vd.max((gf|0)-this._minBufferSize,0);if(Zd=gf*vf,_f=vd.min(4*Zd,_f),Zd){for(var Af=0;AfZd;Zd++){if(16>Zd)Nd[Zd]=jd[Gd+Zd]|0;else{var mf=Nd[Zd-3]^Nd[Zd-8]^Nd[Zd-14]^Nd[Zd-16];Nd[Zd]=mf<<1|mf>>>31}mf=(zd<<5|zd>>>27)+Jd+Nd[Zd],mf=20>Zd?mf+((qd&Wd|~qd&Xd)+1518500249):40>Zd?mf+((qd^Wd^Xd)+1859775393):60>Zd?mf+((qd&Wd|qd&Xd|Wd&Xd)-1894007588):mf+((qd^Wd^Xd)-899497514),Jd=Xd,Xd=Wd,Wd=qd<<30|qd>>>2,qd=zd,zd=mf}Yd[0]=Yd[0]+zd|0,Yd[1]=Yd[1]+qd|0,Yd[2]=Yd[2]+Wd|0,Yd[3]=Yd[3]+Xd|0,Yd[4]=Yd[4]+Jd|0},_doFinalize:function(){var jd=this._data,Gd=jd.words,Yd=8*this._nDataBytes,zd=8*jd.sigBytes;return Gd[zd>>>5]|=128<<24-zd%32,Gd[(zd+64>>>9<<4)+14]=Math.floor(Yd/4294967296),Gd[(zd+64>>>9<<4)+15]=Yd,jd.sigBytes=4*Gd.length,this._process(),this._hash},clone:function(){var jd=wd.clone.call(this);return jd._hash=this._hash.clone(),jd}});vd.SHA1=wd._createHelper(Ld),vd.HmacSHA1=wd._createHmacHelper(Ld)})(),function(){var vd=yd,Cd=vd.enc.Utf8;vd.algo.HMAC=vd.lib.Base.extend({init:function(Nd,Ld){Nd=this._hasher=new Nd.init,typeof Ld=="string"&&(Ld=Cd.parse(Ld));var Ud=Nd.blockSize,jd=4*Ud;Ld.sigBytes>jd&&(Ld=Nd.finalize(Ld)),Ld.clamp();for(var Gd=this._oKey=Ld.clone(),Yd=this._iKey=Ld.clone(),zd=Gd.words,qd=Yd.words,Wd=0;Wd>>2]>>>24-qd%4*8&255,Xd=jd[qd+1>>>2]>>>24-(qd+1)%4*8&255,Jd=jd[qd+2>>>2]>>>24-(qd+2)%4*8&255,Zd=Wd<<16|Xd<<8|Jd,mf=0;mf<4&&qd+mf*.75>>6*(3-mf)&63));var xf=Yd.charAt(64);if(xf)for(;zd.length%4;)zd.push(xf);return zd.join("")},parse:function(Ud){var jd=Ud.length,Gd=this._map,Yd=Gd.charAt(64);if(Yd){var zd=Ud.indexOf(Yd);zd!=-1&&(jd=zd)}for(var qd=[],Wd=0,Xd=0;Xd>>6-Xd%4*2;qd[Wd>>>2]|=(Jd|Zd)<<24-Wd%4*8,Wd++}return wd.create(qd,Wd)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),gd(md)==="object"?md.exports=yd:window.CryptoJS=yd}).call(this,hd("./node_modules/webpack/buildin/module.js")(ud))},"./lib/md5.js":function(ud,dd,hd){(function(md){var gd,yd=hd("./node_modules/@babel/runtime/helpers/typeof.js");(function(){var vd=(typeof window>"u"?"undefined":yd(window))==="object",Cd=vd?window:{};Cd.JS_MD5_NO_WINDOW&&(vd=!1);var wd=!vd&&(typeof self>"u"?"undefined":yd(self))==="object";wd&&(Cd=self);var Nd=!Cd.JS_MD5_NO_COMMON_JS&&yd(md)==="object"&&md.exports,Ld=hd("./node_modules/webpack/buildin/amd-options.js"),Ud=!Cd.JS_MD5_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",jd="0123456789abcdef".split(""),Gd=[128,32768,8388608,-2147483648],Yd=[0,8,16,24],zd=["hex","array","digest","buffer","arrayBuffer","base64"],qd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),Wd=[],Xd;if(Ud){var Jd=new ArrayBuffer(68);Xd=new Uint8Array(Jd),Wd=new Uint32Array(Jd)}(Cd.JS_MD5_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(vf){return Object.prototype.toString.call(vf)==="[object Array]"}),Ud&&(Cd.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(vf){return yd(vf)==="object"&&vf.buffer&&vf.buffer.constructor===ArrayBuffer});var Zd=function(gf){return function(Af,Df){return new xf(!0).update(Af,Df)[gf]()}},mf=function(){var gf=Zd("hex");gf.getCtx=gf.create=function(){return new xf},gf.update=function(Of){return gf.create().update(Of)};for(var Af=0;Af>6,Ff[Of++]=128|Af&63):Af<55296||Af>=57344?(Ff[Of++]=224|Af>>12,Ff[Of++]=128|Af>>6&63,Ff[Of++]=128|Af&63):(Af=65536+((Af&1023)<<10|vf.charCodeAt(++Df)&1023),Ff[Of++]=240|Af>>18,Ff[Of++]=128|Af>>12&63,Ff[Of++]=128|Af>>6&63,Ff[Of++]=128|Af&63);else for(Of=this.start;Df>2]|=Af<>2]|=(192|Af>>6)<>2]|=(128|Af&63)<=57344?(If[Of>>2]|=(224|Af>>12)<>2]|=(128|Af>>6&63)<>2]|=(128|Af&63)<>2]|=(240|Af>>18)<>2]|=(128|Af>>12&63)<>2]|=(128|Af>>6&63)<>2]|=(128|Af&63)<=64?(this.start=Of-64,this.hash(),this.hashed=!0):this.start=Of}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},xf.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var vf=this.blocks,gf=this.lastByteIndex;vf[gf>>2]|=Gd[gf&3],gf>=56&&(this.hashed||this.hash(),vf[0]=vf[16],vf[16]=vf[1]=vf[2]=vf[3]=vf[4]=vf[5]=vf[6]=vf[7]=vf[8]=vf[9]=vf[10]=vf[11]=vf[12]=vf[13]=vf[14]=vf[15]=0),vf[14]=this.bytes<<3,vf[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},xf.prototype.hash=function(){var vf,gf,Af,Df,Of,Cf,If=this.blocks;this.first?(vf=If[0]-680876937,vf=(vf<<7|vf>>>25)-271733879<<0,Df=(-1732584194^vf&2004318071)+If[1]-117830708,Df=(Df<<12|Df>>>20)+vf<<0,Af=(-271733879^Df&(vf^-271733879))+If[2]-1126478375,Af=(Af<<17|Af>>>15)+Df<<0,gf=(vf^Af&(Df^vf))+If[3]-1316259209,gf=(gf<<22|gf>>>10)+Af<<0):(vf=this.h0,gf=this.h1,Af=this.h2,Df=this.h3,vf+=(Df^gf&(Af^Df))+If[0]-680876936,vf=(vf<<7|vf>>>25)+gf<<0,Df+=(Af^vf&(gf^Af))+If[1]-389564586,Df=(Df<<12|Df>>>20)+vf<<0,Af+=(gf^Df&(vf^gf))+If[2]+606105819,Af=(Af<<17|Af>>>15)+Df<<0,gf+=(vf^Af&(Df^vf))+If[3]-1044525330,gf=(gf<<22|gf>>>10)+Af<<0),vf+=(Df^gf&(Af^Df))+If[4]-176418897,vf=(vf<<7|vf>>>25)+gf<<0,Df+=(Af^vf&(gf^Af))+If[5]+1200080426,Df=(Df<<12|Df>>>20)+vf<<0,Af+=(gf^Df&(vf^gf))+If[6]-1473231341,Af=(Af<<17|Af>>>15)+Df<<0,gf+=(vf^Af&(Df^vf))+If[7]-45705983,gf=(gf<<22|gf>>>10)+Af<<0,vf+=(Df^gf&(Af^Df))+If[8]+1770035416,vf=(vf<<7|vf>>>25)+gf<<0,Df+=(Af^vf&(gf^Af))+If[9]-1958414417,Df=(Df<<12|Df>>>20)+vf<<0,Af+=(gf^Df&(vf^gf))+If[10]-42063,Af=(Af<<17|Af>>>15)+Df<<0,gf+=(vf^Af&(Df^vf))+If[11]-1990404162,gf=(gf<<22|gf>>>10)+Af<<0,vf+=(Df^gf&(Af^Df))+If[12]+1804603682,vf=(vf<<7|vf>>>25)+gf<<0,Df+=(Af^vf&(gf^Af))+If[13]-40341101,Df=(Df<<12|Df>>>20)+vf<<0,Af+=(gf^Df&(vf^gf))+If[14]-1502002290,Af=(Af<<17|Af>>>15)+Df<<0,gf+=(vf^Af&(Df^vf))+If[15]+1236535329,gf=(gf<<22|gf>>>10)+Af<<0,vf+=(Af^Df&(gf^Af))+If[1]-165796510,vf=(vf<<5|vf>>>27)+gf<<0,Df+=(gf^Af&(vf^gf))+If[6]-1069501632,Df=(Df<<9|Df>>>23)+vf<<0,Af+=(vf^gf&(Df^vf))+If[11]+643717713,Af=(Af<<14|Af>>>18)+Df<<0,gf+=(Df^vf&(Af^Df))+If[0]-373897302,gf=(gf<<20|gf>>>12)+Af<<0,vf+=(Af^Df&(gf^Af))+If[5]-701558691,vf=(vf<<5|vf>>>27)+gf<<0,Df+=(gf^Af&(vf^gf))+If[10]+38016083,Df=(Df<<9|Df>>>23)+vf<<0,Af+=(vf^gf&(Df^vf))+If[15]-660478335,Af=(Af<<14|Af>>>18)+Df<<0,gf+=(Df^vf&(Af^Df))+If[4]-405537848,gf=(gf<<20|gf>>>12)+Af<<0,vf+=(Af^Df&(gf^Af))+If[9]+568446438,vf=(vf<<5|vf>>>27)+gf<<0,Df+=(gf^Af&(vf^gf))+If[14]-1019803690,Df=(Df<<9|Df>>>23)+vf<<0,Af+=(vf^gf&(Df^vf))+If[3]-187363961,Af=(Af<<14|Af>>>18)+Df<<0,gf+=(Df^vf&(Af^Df))+If[8]+1163531501,gf=(gf<<20|gf>>>12)+Af<<0,vf+=(Af^Df&(gf^Af))+If[13]-1444681467,vf=(vf<<5|vf>>>27)+gf<<0,Df+=(gf^Af&(vf^gf))+If[2]-51403784,Df=(Df<<9|Df>>>23)+vf<<0,Af+=(vf^gf&(Df^vf))+If[7]+1735328473,Af=(Af<<14|Af>>>18)+Df<<0,gf+=(Df^vf&(Af^Df))+If[12]-1926607734,gf=(gf<<20|gf>>>12)+Af<<0,Of=gf^Af,vf+=(Of^Df)+If[5]-378558,vf=(vf<<4|vf>>>28)+gf<<0,Df+=(Of^vf)+If[8]-2022574463,Df=(Df<<11|Df>>>21)+vf<<0,Cf=Df^vf,Af+=(Cf^gf)+If[11]+1839030562,Af=(Af<<16|Af>>>16)+Df<<0,gf+=(Cf^Af)+If[14]-35309556,gf=(gf<<23|gf>>>9)+Af<<0,Of=gf^Af,vf+=(Of^Df)+If[1]-1530992060,vf=(vf<<4|vf>>>28)+gf<<0,Df+=(Of^vf)+If[4]+1272893353,Df=(Df<<11|Df>>>21)+vf<<0,Cf=Df^vf,Af+=(Cf^gf)+If[7]-155497632,Af=(Af<<16|Af>>>16)+Df<<0,gf+=(Cf^Af)+If[10]-1094730640,gf=(gf<<23|gf>>>9)+Af<<0,Of=gf^Af,vf+=(Of^Df)+If[13]+681279174,vf=(vf<<4|vf>>>28)+gf<<0,Df+=(Of^vf)+If[0]-358537222,Df=(Df<<11|Df>>>21)+vf<<0,Cf=Df^vf,Af+=(Cf^gf)+If[3]-722521979,Af=(Af<<16|Af>>>16)+Df<<0,gf+=(Cf^Af)+If[6]+76029189,gf=(gf<<23|gf>>>9)+Af<<0,Of=gf^Af,vf+=(Of^Df)+If[9]-640364487,vf=(vf<<4|vf>>>28)+gf<<0,Df+=(Of^vf)+If[12]-421815835,Df=(Df<<11|Df>>>21)+vf<<0,Cf=Df^vf,Af+=(Cf^gf)+If[15]+530742520,Af=(Af<<16|Af>>>16)+Df<<0,gf+=(Cf^Af)+If[2]-995338651,gf=(gf<<23|gf>>>9)+Af<<0,vf+=(Af^(gf|~Df))+If[0]-198630844,vf=(vf<<6|vf>>>26)+gf<<0,Df+=(gf^(vf|~Af))+If[7]+1126891415,Df=(Df<<10|Df>>>22)+vf<<0,Af+=(vf^(Df|~gf))+If[14]-1416354905,Af=(Af<<15|Af>>>17)+Df<<0,gf+=(Df^(Af|~vf))+If[5]-57434055,gf=(gf<<21|gf>>>11)+Af<<0,vf+=(Af^(gf|~Df))+If[12]+1700485571,vf=(vf<<6|vf>>>26)+gf<<0,Df+=(gf^(vf|~Af))+If[3]-1894986606,Df=(Df<<10|Df>>>22)+vf<<0,Af+=(vf^(Df|~gf))+If[10]-1051523,Af=(Af<<15|Af>>>17)+Df<<0,gf+=(Df^(Af|~vf))+If[1]-2054922799,gf=(gf<<21|gf>>>11)+Af<<0,vf+=(Af^(gf|~Df))+If[8]+1873313359,vf=(vf<<6|vf>>>26)+gf<<0,Df+=(gf^(vf|~Af))+If[15]-30611744,Df=(Df<<10|Df>>>22)+vf<<0,Af+=(vf^(Df|~gf))+If[6]-1560198380,Af=(Af<<15|Af>>>17)+Df<<0,gf+=(Df^(Af|~vf))+If[13]+1309151649,gf=(gf<<21|gf>>>11)+Af<<0,vf+=(Af^(gf|~Df))+If[4]-145523070,vf=(vf<<6|vf>>>26)+gf<<0,Df+=(gf^(vf|~Af))+If[11]-1120210379,Df=(Df<<10|Df>>>22)+vf<<0,Af+=(vf^(Df|~gf))+If[2]+718787259,Af=(Af<<15|Af>>>17)+Df<<0,gf+=(Df^(Af|~vf))+If[9]-343485551,gf=(gf<<21|gf>>>11)+Af<<0,this.first?(this.h0=vf+1732584193<<0,this.h1=gf-271733879<<0,this.h2=Af-1732584194<<0,this.h3=Df+271733878<<0,this.first=!1):(this.h0=this.h0+vf<<0,this.h1=this.h1+gf<<0,this.h2=this.h2+Af<<0,this.h3=this.h3+Df<<0)},xf.prototype.hex=function(){this.finalize();var vf=this.h0,gf=this.h1,Af=this.h2,Df=this.h3;return jd[vf>>4&15]+jd[vf&15]+jd[vf>>12&15]+jd[vf>>8&15]+jd[vf>>20&15]+jd[vf>>16&15]+jd[vf>>28&15]+jd[vf>>24&15]+jd[gf>>4&15]+jd[gf&15]+jd[gf>>12&15]+jd[gf>>8&15]+jd[gf>>20&15]+jd[gf>>16&15]+jd[gf>>28&15]+jd[gf>>24&15]+jd[Af>>4&15]+jd[Af&15]+jd[Af>>12&15]+jd[Af>>8&15]+jd[Af>>20&15]+jd[Af>>16&15]+jd[Af>>28&15]+jd[Af>>24&15]+jd[Df>>4&15]+jd[Df&15]+jd[Df>>12&15]+jd[Df>>8&15]+jd[Df>>20&15]+jd[Df>>16&15]+jd[Df>>28&15]+jd[Df>>24&15]},xf.prototype.toString=xf.prototype.hex,xf.prototype.digest=function(vf){if(vf==="hex")return this.hex();this.finalize();var gf=this.h0,Af=this.h1,Df=this.h2,Of=this.h3,Cf=[gf&255,gf>>8&255,gf>>16&255,gf>>24&255,Af&255,Af>>8&255,Af>>16&255,Af>>24&255,Df&255,Df>>8&255,Df>>16&255,Df>>24&255,Of&255,Of>>8&255,Of>>16&255,Of>>24&255];return Cf},xf.prototype.array=xf.prototype.digest,xf.prototype.arrayBuffer=function(){this.finalize();var vf=new ArrayBuffer(16),gf=new Uint32Array(vf);return gf[0]=this.h0,gf[1]=this.h1,gf[2]=this.h2,gf[3]=this.h3,vf},xf.prototype.buffer=xf.prototype.arrayBuffer,xf.prototype.base64=function(){for(var vf,gf,Af,Df="",Of=this.array(),Cf=0;Cf<15;)vf=Of[Cf++],gf=Of[Cf++],Af=Of[Cf++],Df+=qd[vf>>>2]+qd[(vf<<4|gf>>>4)&63]+qd[(gf<<2|Af>>>6)&63]+qd[Af&63];return vf=Of[Cf],Df+=qd[vf>>>2]+qd[vf<<4&63]+"==",Df};var _f=mf();Nd?md.exports=_f:(Cd.md5=_f,Ld&&(gd=(function(){return _f}).call(_f,hd,_f,md),gd!==void 0&&(md.exports=gd)))})()}).call(this,hd("./node_modules/webpack/buildin/module.js")(ud))},"./lib/request.js":function(ud,dd,hd){var md=hd("./node_modules/@babel/runtime/helpers/typeof.js"),gd=function(Ld){switch(md(Ld)){case"string":return Ld;case"boolean":return Ld?"true":"false";case"number":return isFinite(Ld)?Ld:"";default:return""}},yd=function(Ld,Ud,jd,Gd){return Ud=Ud||"&",jd=jd||"=",Ld===null&&(Ld=void 0),md(Ld)==="object"?Object.keys(Ld).map(function(Yd){var zd=encodeURIComponent(gd(Yd))+jd;return Array.isArray(Ld[Yd])?Ld[Yd].map(function(qd){return zd+encodeURIComponent(gd(qd))}).join(Ud):zd+encodeURIComponent(gd(Ld[Yd]))}).filter(Boolean).join(Ud):""},vd=function(Ld,Ud,jd){var Gd={},Yd=Ud.getAllResponseHeaders();return Yd&&Yd.length>0&&Yd.trim().split(` -`).forEach(function(zd){if(zd){var qd=zd.indexOf(":"),Wd=zd.substr(0,qd).trim().toLowerCase(),Xd=zd.substr(qd+1).trim();Gd[Wd]=Xd}}),{error:Ld,statusCode:Ud.status,statusMessage:Ud.statusText,headers:Gd,body:jd}},Cd=function(Ld,Ud){return!Ud&&Ud==="text"?Ld.responseText:Ld.response},wd=function(Ld,Ud){var jd=(Ld.method||"GET").toUpperCase(),Gd=Ld.url;if(Ld.qs){var Yd=yd(Ld.qs);Yd&&(Gd+=(Gd.indexOf("?")===-1?"?":"&")+Yd)}var zd=new XMLHttpRequest;if(zd.open(jd,Gd,!0),zd.responseType=Ld.dataType||"text",Ld.xhrFields)for(var qd in Ld.xhrFields)zd[qd]=Ld.xhrFields[qd];var Wd=Ld.headers;if(Wd)for(var Xd in Wd)Wd.hasOwnProperty(Xd)&&Xd.toLowerCase()!=="content-length"&&Xd.toLowerCase()!=="user-agent"&&Xd.toLowerCase()!=="origin"&&Xd.toLowerCase()!=="host"&&zd.setRequestHeader(Xd,Wd[Xd]);return Ld.onProgress&&zd.upload&&(zd.upload.onprogress=Ld.onProgress),Ld.onDownloadProgress&&(zd.onprogress=Ld.onDownloadProgress),Ld.timeout&&(zd.timeout=Ld.timeout),zd.ontimeout=function(Jd){var Zd=new Error("timeout");Ud(vd(Zd,zd))},zd.onload=function(){Ud(vd(null,zd,Cd(zd,Ld.dataType)))},zd.onerror=function(Jd){var Zd=Cd(zd,Ld.dataType);if(Zd)Ud(vd(null,zd,Zd));else{var mf=zd.statusText;!mf&&zd.status===0&&(mf=new Error("CORS blocked or network error")),Ud(vd(mf,zd,Zd))}},zd.send(Ld.body||""),zd};ud.exports=wd},"./node_modules/@babel/runtime/helpers/classCallCheck.js":function(ud,dd){function hd(md,gd){if(!(md instanceof gd))throw new TypeError("Cannot call a class as a function")}ud.exports=hd,ud.exports.__esModule=!0,ud.exports.default=ud.exports},"./node_modules/@babel/runtime/helpers/createClass.js":function(ud,dd,hd){var md=hd("./node_modules/@babel/runtime/helpers/toPropertyKey.js");function gd(vd,Cd){for(var wd=0;wd{for(const yd of md)if(typeof yd=="string"&&gd===yd||yd instanceof RegExp&&yd.test(gd))return!0}:()=>!1}ud.exports=hd},"./node_modules/fast-xml-parser/src/util.js":function(ud,dd,hd){const md=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",gd=md+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",yd="["+md+"]["+gd+"]*",vd=new RegExp("^"+yd+"$"),Cd=function(Nd,Ld){const Ud=[];let jd=Ld.exec(Nd);for(;jd;){const Gd=[];Gd.startIndex=Ld.lastIndex-jd[0].length;const Yd=jd.length;for(let zd=0;zd"u")};dd.isExist=function(Nd){return typeof Nd<"u"},dd.isEmptyObject=function(Nd){return Object.keys(Nd).length===0},dd.merge=function(Nd,Ld,Ud){if(Ld){const jd=Object.keys(Ld),Gd=jd.length;for(let Yd=0;Yd"&&Zd[gf]!==" "&&Zd[gf]!==" "&&Zd[gf]!==` -`&&Zd[gf]!=="\r";gf++)Of+=Zd[gf];if(Of=Of.trim(),Of[Of.length-1]==="/"&&(Of=Of.substring(0,Of.length-1),gf--),!Wd(Of)){let Ff;return Of.trim().length===0?Ff="Invalid space after '<'.":Ff="Tag '"+Of+"' is an invalid name.",zd("InvalidTag",Ff,Xd(Zd,gf))}const Cf=Ld(Zd,gf);if(Cf===!1)return zd("InvalidAttr","Attributes for '"+Of+"' have open quote.",Xd(Zd,gf));let If=Cf.value;if(gf=Cf.index,If[If.length-1]==="/"){const Ff=gf-If.length;If=If.substring(0,If.length-1);const sh=jd(If,mf);if(sh===!0)_f=!0;else return zd(sh.err.code,sh.err.msg,Xd(Zd,Ff+sh.err.line))}else if(Df)if(Cf.tagClosed){if(If.trim().length>0)return zd("InvalidTag","Closing tag '"+Of+"' can't have attributes or invalid starting.",Xd(Zd,Af));if(xf.length===0)return zd("InvalidTag","Closing tag '"+Of+"' has not been opened.",Xd(Zd,Af));{const Ff=xf.pop();if(Of!==Ff.tagName){let sh=Xd(Zd,Ff.tagStartPos);return zd("InvalidTag","Expected closing tag '"+Ff.tagName+"' (opened in line "+sh.line+", col "+sh.col+") instead of closing tag '"+Of+"'.",Xd(Zd,Af))}xf.length==0&&(vf=!0)}}else return zd("InvalidTag","Closing tag '"+Of+"' doesn't have proper closing.",Xd(Zd,gf));else{const Ff=jd(If,mf);if(Ff!==!0)return zd(Ff.err.code,Ff.err.msg,Xd(Zd,gf-If.length+Ff.err.line));if(vf===!0)return zd("InvalidXml","Multiple possible root nodes found.",Xd(Zd,gf));mf.unpairedTags.indexOf(Of)!==-1||xf.push({tagName:Of,tagStartPos:Af}),_f=!0}for(gf++;gf0)return zd("InvalidXml","Invalid '"+JSON.stringify(xf.map(gf=>gf.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return zd("InvalidXml","Start tag expected.",1);return!0};function yd(Zd){return Zd===" "||Zd===" "||Zd===` + */class Bowser{static getParser(ed,ud=!1){if(typeof ed!="string")throw new Error("UserAgent should be a string");return new Parser(ed,ud)}static parse(ed){return new Parser(ed).getResult()}static get BROWSER_MAP(){return BROWSER_MAP}static get ENGINE_MAP(){return ENGINE_MAP}static get OS_MAP(){return OS_MAP}static get PLATFORMS_MAP(){return PLATFORMS_MAP}}const createDefaultUserAgentProvider=({serviceId:Ra,clientVersion:ed})=>async ud=>{var gd,yd,vd,Cd,wd,Nd;const dd=typeof window<"u"&&((gd=window==null?void 0:window.navigator)!=null&&gd.userAgent)?Bowser.parse(window.navigator.userAgent):void 0,hd=[["aws-sdk-js",ed],["ua","2.1"],[`os/${((yd=dd==null?void 0:dd.os)==null?void 0:yd.name)||"other"}`,(vd=dd==null?void 0:dd.os)==null?void 0:vd.version],["lang/js"],["md/browser",`${((Cd=dd==null?void 0:dd.browser)==null?void 0:Cd.name)??"unknown"}_${((wd=dd==null?void 0:dd.browser)==null?void 0:wd.version)??"unknown"}`]];Ra&&hd.push([`api/${Ra}`,ed]);const md=await((Nd=ud==null?void 0:ud.userAgentAppId)==null?void 0:Nd.call(ud));return md&&hd.push([`app/${md}`]),hd};class Int64{constructor(ed){if(this.bytes=ed,ed.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(ed){if(ed>9223372036854776e3||ed<-9223372036854776e3)throw new Error(`${ed} is too large (or, if negative, too small) to represent as an Int64`);const ud=new Uint8Array(8);for(let dd=7,hd=Math.abs(Math.round(ed));dd>-1&&hd>0;dd--,hd/=256)ud[dd]=hd;return ed<0&&negate(ud),new Int64(ud)}valueOf(){const ed=this.bytes.slice(0),ud=ed[0]&128;return ud&&negate(ed),parseInt(toHex(ed),16)*(ud?-1:1)}toString(){return String(this.valueOf())}}function negate(Ra){for(let ed=0;ed<8;ed++)Ra[ed]^=255;for(let ed=7;ed>-1&&(Ra[ed]++,Ra[ed]===0);ed--);}class HeaderMarshaller{constructor(ed,ud){this.toUtf8=ed,this.fromUtf8=ud}format(ed){const ud=[];for(const md of Object.keys(ed)){const gd=this.fromUtf8(md);ud.push(Uint8Array.from([gd.byteLength]),gd,this.formatHeaderValue(ed[md]))}const dd=new Uint8Array(ud.reduce((md,gd)=>md+gd.byteLength,0));let hd=0;for(const md of ud)dd.set(md,hd),hd+=md.byteLength;return dd}formatHeaderValue(ed){switch(ed.type){case"boolean":return Uint8Array.from([ed.value?0:1]);case"byte":return Uint8Array.from([2,ed.value]);case"short":const ud=new DataView(new ArrayBuffer(3));return ud.setUint8(0,3),ud.setInt16(1,ed.value,!1),new Uint8Array(ud.buffer);case"integer":const dd=new DataView(new ArrayBuffer(5));return dd.setUint8(0,4),dd.setInt32(1,ed.value,!1),new Uint8Array(dd.buffer);case"long":const hd=new Uint8Array(9);return hd[0]=5,hd.set(ed.value.bytes,1),hd;case"binary":const md=new DataView(new ArrayBuffer(3+ed.value.byteLength));md.setUint8(0,6),md.setUint16(1,ed.value.byteLength,!1);const gd=new Uint8Array(md.buffer);return gd.set(ed.value,3),gd;case"string":const yd=this.fromUtf8(ed.value),vd=new DataView(new ArrayBuffer(3+yd.byteLength));vd.setUint8(0,7),vd.setUint16(1,yd.byteLength,!1);const Cd=new Uint8Array(vd.buffer);return Cd.set(yd,3),Cd;case"timestamp":const wd=new Uint8Array(9);return wd[0]=8,wd.set(Int64.fromNumber(ed.value.valueOf()).bytes,1),wd;case"uuid":if(!UUID_PATTERN.test(ed.value))throw new Error(`Invalid UUID received: ${ed.value}`);const Nd=new Uint8Array(17);return Nd[0]=9,Nd.set(fromHex(ed.value.replace(/\-/g,"")),1),Nd}}parse(ed){const ud={};let dd=0;for(;dd{if(typeof yd!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+yd);ed=yd,ud=4,dd=new Uint8Array(yd),new DataView(dd.buffer).setUint32(0,yd,!1)},gd=async function*(){const yd=Ra[Symbol.asyncIterator]();for(;;){const{value:vd,done:Cd}=await yd.next();if(Cd){if(ed)if(ed===ud)yield dd;else throw new Error("Truncated event message received.");else return;return}const wd=vd.length;let Nd=0;for(;Nd({[Symbol.asyncIterator]:async function*(){const ed=Ra.getReader();try{for(;;){const{done:ud,value:dd}=await ed.read();if(ud)return;yield dd}}finally{ed.releaseLock()}}}),iterableToReadableStream=Ra=>{const ed=Ra[Symbol.asyncIterator]();return new ReadableStream({async pull(ud){const{done:dd,value:hd}=await ed.next();if(dd)return ud.close();ud.enqueue(hd)}})};class EventStreamMarshaller{constructor({utf8Encoder:ed,utf8Decoder:ud}){this.universalMarshaller=new EventStreamMarshaller$1({utf8Decoder:ud,utf8Encoder:ed})}deserialize(ed,ud){const dd=isReadableStream$1(ed)?readableStreamtoIterable(ed):ed;return this.universalMarshaller.deserialize(dd,ud)}serialize(ed,ud){const dd=this.universalMarshaller.serialize(ed,ud);return typeof ReadableStream=="function"?iterableToReadableStream(dd):dd}}const isReadableStream$1=Ra=>typeof ReadableStream=="function"&&Ra instanceof ReadableStream,eventStreamSerdeProvider=Ra=>new EventStreamMarshaller(Ra);async function blobReader(Ra,ed,ud=1024*1024){const dd=Ra.size;let hd=0;for(;hd{dd.update(hd)}),dd.digest()},invalidProvider=Ra=>()=>Promise.reject(Ra),BLOCK_SIZE=64,DIGEST_LENGTH=16,INIT=[1732584193,4023233417,2562383102,271733878];class Md5{constructor(){this.reset()}update(ed){if(isEmptyData(ed))return;if(this.finished)throw new Error("Attempted to update an already finished hash.");const ud=convertToBuffer(ed);let dd=0,{byteLength:hd}=ud;for(this.bytesHashed+=hd;hd>0;)this.buffer.setUint8(this.bufferLength++,ud[dd++]),hd--,this.bufferLength===BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)}async digest(){if(!this.finished){const{buffer:ud,bufferLength:dd,bytesHashed:hd}=this,md=hd*8;if(ud.setUint8(this.bufferLength++,128),dd%BLOCK_SIZE>=BLOCK_SIZE-8){for(let gd=this.bufferLength;gd>>0,!0),ud.setUint32(BLOCK_SIZE-4,Math.floor(md/4294967296),!0),this.hashBuffer(),this.finished=!0}const ed=new DataView(new ArrayBuffer(DIGEST_LENGTH));for(let ud=0;ud<4;ud++)ed.setUint32(ud*4,this.state[ud],!0);return new Uint8Array(ed.buffer,ed.byteOffset,ed.byteLength)}hashBuffer(){const{buffer:ed,state:ud}=this;let dd=ud[0],hd=ud[1],md=ud[2],gd=ud[3];dd=ff(dd,hd,md,gd,ed.getUint32(0,!0),7,3614090360),gd=ff(gd,dd,hd,md,ed.getUint32(4,!0),12,3905402710),md=ff(md,gd,dd,hd,ed.getUint32(8,!0),17,606105819),hd=ff(hd,md,gd,dd,ed.getUint32(12,!0),22,3250441966),dd=ff(dd,hd,md,gd,ed.getUint32(16,!0),7,4118548399),gd=ff(gd,dd,hd,md,ed.getUint32(20,!0),12,1200080426),md=ff(md,gd,dd,hd,ed.getUint32(24,!0),17,2821735955),hd=ff(hd,md,gd,dd,ed.getUint32(28,!0),22,4249261313),dd=ff(dd,hd,md,gd,ed.getUint32(32,!0),7,1770035416),gd=ff(gd,dd,hd,md,ed.getUint32(36,!0),12,2336552879),md=ff(md,gd,dd,hd,ed.getUint32(40,!0),17,4294925233),hd=ff(hd,md,gd,dd,ed.getUint32(44,!0),22,2304563134),dd=ff(dd,hd,md,gd,ed.getUint32(48,!0),7,1804603682),gd=ff(gd,dd,hd,md,ed.getUint32(52,!0),12,4254626195),md=ff(md,gd,dd,hd,ed.getUint32(56,!0),17,2792965006),hd=ff(hd,md,gd,dd,ed.getUint32(60,!0),22,1236535329),dd=gg(dd,hd,md,gd,ed.getUint32(4,!0),5,4129170786),gd=gg(gd,dd,hd,md,ed.getUint32(24,!0),9,3225465664),md=gg(md,gd,dd,hd,ed.getUint32(44,!0),14,643717713),hd=gg(hd,md,gd,dd,ed.getUint32(0,!0),20,3921069994),dd=gg(dd,hd,md,gd,ed.getUint32(20,!0),5,3593408605),gd=gg(gd,dd,hd,md,ed.getUint32(40,!0),9,38016083),md=gg(md,gd,dd,hd,ed.getUint32(60,!0),14,3634488961),hd=gg(hd,md,gd,dd,ed.getUint32(16,!0),20,3889429448),dd=gg(dd,hd,md,gd,ed.getUint32(36,!0),5,568446438),gd=gg(gd,dd,hd,md,ed.getUint32(56,!0),9,3275163606),md=gg(md,gd,dd,hd,ed.getUint32(12,!0),14,4107603335),hd=gg(hd,md,gd,dd,ed.getUint32(32,!0),20,1163531501),dd=gg(dd,hd,md,gd,ed.getUint32(52,!0),5,2850285829),gd=gg(gd,dd,hd,md,ed.getUint32(8,!0),9,4243563512),md=gg(md,gd,dd,hd,ed.getUint32(28,!0),14,1735328473),hd=gg(hd,md,gd,dd,ed.getUint32(48,!0),20,2368359562),dd=hh(dd,hd,md,gd,ed.getUint32(20,!0),4,4294588738),gd=hh(gd,dd,hd,md,ed.getUint32(32,!0),11,2272392833),md=hh(md,gd,dd,hd,ed.getUint32(44,!0),16,1839030562),hd=hh(hd,md,gd,dd,ed.getUint32(56,!0),23,4259657740),dd=hh(dd,hd,md,gd,ed.getUint32(4,!0),4,2763975236),gd=hh(gd,dd,hd,md,ed.getUint32(16,!0),11,1272893353),md=hh(md,gd,dd,hd,ed.getUint32(28,!0),16,4139469664),hd=hh(hd,md,gd,dd,ed.getUint32(40,!0),23,3200236656),dd=hh(dd,hd,md,gd,ed.getUint32(52,!0),4,681279174),gd=hh(gd,dd,hd,md,ed.getUint32(0,!0),11,3936430074),md=hh(md,gd,dd,hd,ed.getUint32(12,!0),16,3572445317),hd=hh(hd,md,gd,dd,ed.getUint32(24,!0),23,76029189),dd=hh(dd,hd,md,gd,ed.getUint32(36,!0),4,3654602809),gd=hh(gd,dd,hd,md,ed.getUint32(48,!0),11,3873151461),md=hh(md,gd,dd,hd,ed.getUint32(60,!0),16,530742520),hd=hh(hd,md,gd,dd,ed.getUint32(8,!0),23,3299628645),dd=ii(dd,hd,md,gd,ed.getUint32(0,!0),6,4096336452),gd=ii(gd,dd,hd,md,ed.getUint32(28,!0),10,1126891415),md=ii(md,gd,dd,hd,ed.getUint32(56,!0),15,2878612391),hd=ii(hd,md,gd,dd,ed.getUint32(20,!0),21,4237533241),dd=ii(dd,hd,md,gd,ed.getUint32(48,!0),6,1700485571),gd=ii(gd,dd,hd,md,ed.getUint32(12,!0),10,2399980690),md=ii(md,gd,dd,hd,ed.getUint32(40,!0),15,4293915773),hd=ii(hd,md,gd,dd,ed.getUint32(4,!0),21,2240044497),dd=ii(dd,hd,md,gd,ed.getUint32(32,!0),6,1873313359),gd=ii(gd,dd,hd,md,ed.getUint32(60,!0),10,4264355552),md=ii(md,gd,dd,hd,ed.getUint32(24,!0),15,2734768916),hd=ii(hd,md,gd,dd,ed.getUint32(52,!0),21,1309151649),dd=ii(dd,hd,md,gd,ed.getUint32(16,!0),6,4149444226),gd=ii(gd,dd,hd,md,ed.getUint32(44,!0),10,3174756917),md=ii(md,gd,dd,hd,ed.getUint32(8,!0),15,718787259),hd=ii(hd,md,gd,dd,ed.getUint32(36,!0),21,3951481745),ud[0]=dd+ud[0]&4294967295,ud[1]=hd+ud[1]&4294967295,ud[2]=md+ud[2]&4294967295,ud[3]=gd+ud[3]&4294967295}reset(){this.state=Uint32Array.from(INIT),this.buffer=new DataView(new ArrayBuffer(BLOCK_SIZE)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}}function cmn(Ra,ed,ud,dd,hd,md){return ed=(ed+Ra&4294967295)+(dd+md&4294967295)&4294967295,(ed<>>32-hd)+ud&4294967295}function ff(Ra,ed,ud,dd,hd,md,gd){return cmn(ed&ud|~ed&dd,Ra,ed,hd,md,gd)}function gg(Ra,ed,ud,dd,hd,md,gd){return cmn(ed&dd|ud&~dd,Ra,ed,hd,md,gd)}function hh(Ra,ed,ud,dd,hd,md,gd){return cmn(ed^ud^dd,Ra,ed,hd,md,gd)}function ii(Ra,ed,ud,dd,hd,md,gd){return cmn(ud^(ed|~dd),Ra,ed,hd,md,gd)}function isEmptyData(Ra){return typeof Ra=="string"?Ra.length===0:Ra.byteLength===0}function convertToBuffer(Ra){return typeof Ra=="string"?fromUtf8$3(Ra):ArrayBuffer.isView(Ra)?new Uint8Array(Ra.buffer,Ra.byteOffset,Ra.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(Ra)}const TEXT_ENCODER=typeof TextEncoder=="function"?new TextEncoder:null,calculateBodyLength=Ra=>{if(typeof Ra=="string"){if(TEXT_ENCODER)return TEXT_ENCODER.encode(Ra).byteLength;let ed=Ra.length;for(let ud=ed-1;ud>=0;ud--){const dd=Ra.charCodeAt(ud);dd>127&&dd<=2047?ed++:dd>2047&&dd<=65535&&(ed+=2),dd>=56320&&dd<=57343&&ud--}return ed}else{if(typeof Ra.byteLength=="number")return Ra.byteLength;if(typeof Ra.size=="number")return Ra.size}throw new Error(`Body Length computation failed for ${Ra}`)},getRuntimeConfig$1=Ra=>({apiVersion:"2006-03-01",base64Decoder:(Ra==null?void 0:Ra.base64Decoder)??fromBase64,base64Encoder:(Ra==null?void 0:Ra.base64Encoder)??toBase64,disableHostPrefix:(Ra==null?void 0:Ra.disableHostPrefix)??!1,endpointProvider:(Ra==null?void 0:Ra.endpointProvider)??defaultEndpointResolver,extensions:(Ra==null?void 0:Ra.extensions)??[],getAwsChunkedEncodingStream:(Ra==null?void 0:Ra.getAwsChunkedEncodingStream)??getAwsChunkedEncodingStream,httpAuthSchemeProvider:(Ra==null?void 0:Ra.httpAuthSchemeProvider)??defaultS3HttpAuthSchemeProvider,httpAuthSchemes:(Ra==null?void 0:Ra.httpAuthSchemes)??[{schemeId:"aws.auth#sigv4",identityProvider:ed=>ed.getIdentityProvider("aws.auth#sigv4"),signer:new AwsSdkSigV4Signer},{schemeId:"aws.auth#sigv4a",identityProvider:ed=>ed.getIdentityProvider("aws.auth#sigv4a"),signer:new AwsSdkSigV4ASigner}],logger:(Ra==null?void 0:Ra.logger)??new NoOpLogger,sdkStreamMixin:(Ra==null?void 0:Ra.sdkStreamMixin)??sdkStreamMixin,serviceId:(Ra==null?void 0:Ra.serviceId)??"S3",signerConstructor:(Ra==null?void 0:Ra.signerConstructor)??SignatureV4MultiRegion,signingEscapePath:(Ra==null?void 0:Ra.signingEscapePath)??!1,urlParser:(Ra==null?void 0:Ra.urlParser)??parseUrl,useArnRegion:(Ra==null?void 0:Ra.useArnRegion)??!1,utf8Decoder:(Ra==null?void 0:Ra.utf8Decoder)??fromUtf8$3,utf8Encoder:(Ra==null?void 0:Ra.utf8Encoder)??toUtf8}),DEFAULTS_MODE_OPTIONS=["in-region","cross-region","mobile","standard","legacy"],resolveDefaultsModeConfig=({defaultsMode:Ra}={})=>memoize$1(async()=>{const ed=typeof Ra=="function"?await Ra():Ra;switch(ed==null?void 0:ed.toLowerCase()){case"auto":return Promise.resolve(isMobileBrowser()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(ed==null?void 0:ed.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${DEFAULTS_MODE_OPTIONS.join(", ")}, got ${ed}`)}}),isMobileBrowser=()=>{var ud,dd;const Ra=typeof window<"u"&&((ud=window==null?void 0:window.navigator)!=null&&ud.userAgent)?Bowser.parse(window.navigator.userAgent):void 0,ed=(dd=Ra==null?void 0:Ra.platform)==null?void 0:dd.type;return ed==="tablet"||ed==="mobile"},getRuntimeConfig=Ra=>{const ed=resolveDefaultsModeConfig(Ra),ud=()=>ed().then(loadConfigsForDefaultMode),dd=getRuntimeConfig$1(Ra);return{...dd,...Ra,runtime:"browser",defaultsMode:ed,bodyLengthChecker:(Ra==null?void 0:Ra.bodyLengthChecker)??calculateBodyLength,credentialDefaultProvider:(Ra==null?void 0:Ra.credentialDefaultProvider)??(hd=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:(Ra==null?void 0:Ra.defaultUserAgentProvider)??createDefaultUserAgentProvider({serviceId:dd.serviceId,clientVersion:packageInfo.version}),eventStreamSerdeProvider:(Ra==null?void 0:Ra.eventStreamSerdeProvider)??eventStreamSerdeProvider,maxAttempts:(Ra==null?void 0:Ra.maxAttempts)??DEFAULT_MAX_ATTEMPTS,md5:(Ra==null?void 0:Ra.md5)??Md5,region:(Ra==null?void 0:Ra.region)??invalidProvider("Region is missing"),requestHandler:FetchHttpHandler.create((Ra==null?void 0:Ra.requestHandler)??ud),retryMode:(Ra==null?void 0:Ra.retryMode)??(async()=>(await ud()).retryMode||DEFAULT_RETRY_MODE),sha1:(Ra==null?void 0:Ra.sha1)??Sha1,sha256:(Ra==null?void 0:Ra.sha256)??Sha256,streamCollector:(Ra==null?void 0:Ra.streamCollector)??streamCollector,streamHasher:(Ra==null?void 0:Ra.streamHasher)??blobHasher,useDualstackEndpoint:(Ra==null?void 0:Ra.useDualstackEndpoint)??(()=>Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),useFipsEndpoint:(Ra==null?void 0:Ra.useFipsEndpoint)??(()=>Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT))}},getAwsRegionExtensionConfiguration=Ra=>{let ed=async()=>{if(Ra.region===void 0)throw new Error("Region is missing from runtimeConfig");const ud=Ra.region;return typeof ud=="string"?ud:ud()};return{setRegion(ud){ed=ud},region(){return ed}}},resolveAwsRegionExtensionConfiguration=Ra=>({region:Ra.region()}),getHttpAuthExtensionConfiguration=Ra=>{const ed=Ra.httpAuthSchemes;let ud=Ra.httpAuthSchemeProvider,dd=Ra.credentials;return{setHttpAuthScheme(hd){const md=ed.findIndex(gd=>gd.schemeId===hd.schemeId);md===-1?ed.push(hd):ed.splice(md,1,hd)},httpAuthSchemes(){return ed},setHttpAuthSchemeProvider(hd){ud=hd},httpAuthSchemeProvider(){return ud},setCredentials(hd){dd=hd},credentials(){return dd}}},resolveHttpAuthRuntimeConfig=Ra=>({httpAuthSchemes:Ra.httpAuthSchemes(),httpAuthSchemeProvider:Ra.httpAuthSchemeProvider(),credentials:Ra.credentials()}),asPartial=Ra=>Ra,resolveRuntimeExtensions=(Ra,ed)=>{const ud={...asPartial(getAwsRegionExtensionConfiguration(Ra)),...asPartial(getDefaultExtensionConfiguration(Ra)),...asPartial(getHttpHandlerExtensionConfiguration(Ra)),...asPartial(getHttpAuthExtensionConfiguration(Ra))};return ed.forEach(dd=>dd.configure(ud)),{...Ra,...resolveAwsRegionExtensionConfiguration(ud),...resolveDefaultRuntimeConfig(ud),...resolveHttpHandlerRuntimeConfig(ud),...resolveHttpAuthRuntimeConfig(ud)}};class S3Client extends Client$1{constructor(...[ud]){const dd=getRuntimeConfig(ud||{}),hd=resolveClientEndpointParameters(dd),md=resolveUserAgentConfig(hd),gd=resolveFlexibleChecksumsConfig(md),yd=resolveRetryConfig(gd),vd=resolveRegionConfig(yd),Cd=vd,wd=resolveEndpointConfig(Cd),Nd=resolveEventStreamSerdeConfig(wd),Ld=resolveHttpAuthSchemeConfig(Nd),Ud=resolveS3Config(Ld,{session:[()=>this,CreateSessionCommand]}),jd=resolveRuntimeExtensions(Ud,(ud==null?void 0:ud.extensions)||[]);super(jd);Ig(this,"config");this.config=jd,this.middlewareStack.use(getUserAgentPlugin(this.config)),this.middlewareStack.use(getRetryPlugin(this.config)),this.middlewareStack.use(getContentLengthPlugin(this.config)),this.middlewareStack.use(getHostHeaderPlugin(this.config)),this.middlewareStack.use(getLoggerPlugin(this.config)),this.middlewareStack.use(getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:defaultS3HttpAuthSchemeParametersProvider,identityProviderConfigProvider:async Gd=>new DefaultIdentityProviderConfig({"aws.auth#sigv4":Gd.credentials,"aws.auth#sigv4a":Gd.credentials})})),this.middlewareStack.use(getHttpSigningPlugin(this.config)),this.middlewareStack.use(getValidateBucketNamePlugin(this.config)),this.middlewareStack.use(getAddExpectContinuePlugin(this.config)),this.middlewareStack.use(getRegionRedirectMiddlewarePlugin(this.config)),this.middlewareStack.use(getS3ExpressPlugin(this.config)),this.middlewareStack.use(getS3ExpressHttpSigningPlugin(this.config))}destroy(){super.destroy()}}function ssecMiddleware(Ra){return ed=>async ud=>{const dd={...ud.input},hd=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}];for(const md of hd){const gd=dd[md.target];if(gd){let yd;typeof gd=="string"?isValidBase64EncodedSSECustomerKey(gd,Ra)?yd=Ra.base64Decoder(gd):(yd=Ra.utf8Decoder(gd),dd[md.target]=Ra.base64Encoder(yd)):(yd=ArrayBuffer.isView(gd)?new Uint8Array(gd.buffer,gd.byteOffset,gd.byteLength):new Uint8Array(gd),dd[md.target]=Ra.base64Encoder(yd));const vd=new Ra.md5;vd.update(yd),dd[md.hash]=Ra.base64Encoder(await vd.digest())}}return ed({...ud,input:dd})}}const ssecMiddlewareOptions={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0},getSsecPlugin=Ra=>({applyToStack:ed=>{ed.add(ssecMiddleware(Ra),ssecMiddlewareOptions)}});function isValidBase64EncodedSSECustomerKey(Ra,ed){if(!/^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(Ra))return!1;try{return ed.base64Decoder(Ra).length===32}catch{return!1}}class PutObjectCommand extends Command.classBuilder().ep({...commonParams,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(ed,ud,dd,hd){return[getSerdePlugin(dd,this.serialize,this.deserialize),getEndpointPlugin(dd,ed.getEndpointParameterInstructions()),getFlexibleChecksumsPlugin(dd,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),getCheckContentLengthHeaderPlugin(),getThrow200ExceptionsPlugin(dd),getSsecPlugin(dd)]}).s("AmazonS3","PutObject",{}).n("S3Client","PutObjectCommand").f(PutObjectRequestFilterSensitiveLog,PutObjectOutputFilterSensitiveLog).ser(se_PutObjectCommand).de(de_PutObjectCommand).build(){}function formatUrl(Ra){const{port:ed,query:ud}=Ra;let{protocol:dd,path:hd,hostname:md}=Ra;dd&&dd.slice(-1)!==":"&&(dd+=":"),ed&&(md+=`:${ed}`),hd&&hd.charAt(0)!=="/"&&(hd=`/${hd}`);let gd=ud?buildQueryString(ud):"";gd&&gd[0]!=="?"&&(gd=`?${gd}`);let yd="";if(Ra.username!=null||Ra.password!=null){const Cd=Ra.username??"",wd=Ra.password??"";yd=`${Cd}:${wd}@`}let vd="";return Ra.fragment&&(vd=`#${Ra.fragment}`),`${dd}//${yd}${md}${hd}${gd}${vd}`}const UNSIGNED_PAYLOAD="UNSIGNED-PAYLOAD",SHA256_HEADER="X-Amz-Content-Sha256";class S3RequestPresigner{constructor(ed){Ig(this,"signer");const ud={service:ed.signingName||ed.service||"s3",uriEscapePath:ed.uriEscapePath||!1,applyChecksum:ed.applyChecksum||!1,...ed};this.signer=new SignatureV4MultiRegion(ud)}presign(ed,{unsignableHeaders:ud=new Set,hoistableHeaders:dd=new Set,unhoistableHeaders:hd=new Set,...md}={}){return this.prepareRequest(ed,{unsignableHeaders:ud,unhoistableHeaders:hd,hoistableHeaders:dd}),this.signer.presign(ed,{expiresIn:900,unsignableHeaders:ud,unhoistableHeaders:hd,...md})}presignWithCredentials(ed,ud,{unsignableHeaders:dd=new Set,hoistableHeaders:hd=new Set,unhoistableHeaders:md=new Set,...gd}={}){return this.prepareRequest(ed,{unsignableHeaders:dd,unhoistableHeaders:md,hoistableHeaders:hd}),this.signer.presignWithCredentials(ed,ud,{expiresIn:900,unsignableHeaders:dd,unhoistableHeaders:md,...gd})}prepareRequest(ed,{unsignableHeaders:ud=new Set,unhoistableHeaders:dd=new Set,hoistableHeaders:hd=new Set}={}){ud.add("content-type"),Object.keys(ed.headers).map(vd=>vd.toLowerCase()).filter(vd=>vd.startsWith("x-amz-server-side-encryption")).forEach(vd=>{hd.has(vd)||dd.add(vd)}),ed.headers[SHA256_HEADER]=UNSIGNED_PAYLOAD;const md=ed.headers.host,gd=ed.port,yd=`${ed.hostname}${ed.port!=null?":"+gd:""}`;(!md||md===ed.hostname&&ed.port!=null)&&(ed.headers.host=yd)}}const getSignedUrl=async(Ra,ed,ud={})=>{var Nd,Ld,Ud;let dd,hd;if(typeof Ra.config.endpointProvider=="function"){const Gd=(Ld=(Nd=(await getEndpointFromInstructions(ed.input,ed.constructor,Ra.config)).properties)==null?void 0:Nd.authSchemes)==null?void 0:Ld[0];(Gd==null?void 0:Gd.name)==="sigv4a"?hd=(Ud=Gd==null?void 0:Gd.signingRegionSet)==null?void 0:Ud.join(","):hd=Gd==null?void 0:Gd.signingRegion,dd=new S3RequestPresigner({...Ra.config,signingName:Gd==null?void 0:Gd.signingName,region:async()=>hd})}else dd=new S3RequestPresigner(Ra.config);const md=(jd,Gd)=>async Yd=>{const{request:zd}=Yd;if(!HttpRequest.isInstance(zd))throw new Error("Request to be presigned is not an valid HTTP request.");delete zd.headers["amz-sdk-invocation-id"],delete zd.headers["amz-sdk-request"],delete zd.headers["x-amz-user-agent"];let qd;const Wd={...ud,signingRegion:ud.signingRegion??Gd.signing_region??hd,signingService:ud.signingService??Gd.signing_service};return Gd.s3ExpressIdentity?qd=await dd.presignWithCredentials(zd,Gd.s3ExpressIdentity,Wd):qd=await dd.presign(zd,Wd),{response:{},output:{$metadata:{httpStatusCode:200},presigned:qd}}},gd="presignInterceptMiddleware",yd=Ra.middlewareStack.clone();yd.addRelativeTo(md,{name:gd,relation:"before",toMiddleware:"awsAuthMiddleware",override:!0});const vd=ed.resolveMiddleware(yd,Ra.config,{}),{output:Cd}=await vd({input:ed.input}),{presigned:wd}=Cd;return formatUrl(wd)};var toString=Object.prototype.toString,isModern=typeof Buffer$4<"u"&&typeof Buffer$4.alloc=="function"&&typeof Buffer$4.allocUnsafe=="function"&&typeof Buffer$4.from=="function";function isArrayBuffer(Ra){return toString.call(Ra).slice(8,-1)==="ArrayBuffer"}function fromArrayBuffer(Ra,ed,ud){ed>>>=0;var dd=Ra.byteLength-ed;if(dd<0)throw new RangeError("'offset' is out of bounds");if(ud===void 0)ud=dd;else if(ud>>>=0,ud>dd)throw new RangeError("'length' is out of bounds");return isModern?Buffer$4.from(Ra.slice(ed,ed+ud)):new Buffer$4(new Uint8Array(Ra.slice(ed,ed+ud)))}function fromString(Ra,ed){if((typeof ed!="string"||ed==="")&&(ed="utf8"),!Buffer$4.isEncoding(ed))throw new TypeError('"encoding" must be a valid string encoding');return isModern?Buffer$4.from(Ra,ed):new Buffer$4(Ra,ed)}function bufferFrom(Ra,ed,ud){if(typeof Ra=="number")throw new TypeError('"value" argument must not be a number');return isArrayBuffer(Ra)?fromArrayBuffer(Ra,ed,ud):typeof Ra=="string"?fromString(Ra,ed):isModern?Buffer$4.from(Ra):new Buffer$4(Ra)}var bufferFrom_1=bufferFrom;const Buffer$1=getDefaultExportFromCjs(bufferFrom_1);var cosJsSdkV5={exports:{}};(function(Ra,ed){(function(dd,hd){Ra.exports=hd()})(commonjsGlobal,function(){return function(ud){var dd={};function hd(md){if(dd[md])return dd[md].exports;var gd=dd[md]={i:md,l:!1,exports:{}};return ud[md].call(gd.exports,gd,gd.exports,hd),gd.l=!0,gd.exports}return hd.m=ud,hd.c=dd,hd.d=function(md,gd,yd){hd.o(md,gd)||Object.defineProperty(md,gd,{enumerable:!0,get:yd})},hd.r=function(md){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(md,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(md,"__esModule",{value:!0})},hd.t=function(md,gd){if(gd&1&&(md=hd(md)),gd&8||gd&4&&typeof md=="object"&&md&&md.__esModule)return md;var yd=Object.create(null);if(hd.r(yd),Object.defineProperty(yd,"default",{enumerable:!0,value:md}),gd&2&&typeof md!="string")for(var vd in md)hd.d(yd,vd,(function(Cd){return md[Cd]}).bind(null,vd));return yd},hd.n=function(md){var gd=md&&md.__esModule?function(){return md.default}:function(){return md};return hd.d(gd,"a",gd),gd},hd.o=function(md,gd){return Object.prototype.hasOwnProperty.call(md,gd)},hd.p="/dist/",hd(hd.s="./index.js")}({"./index.js":function(ud,dd,hd){var md=hd("./src/cos.js");ud.exports=md},"./lib/base64.js":function(ud,dd){var hd=function(md){md=md||{};var gd=md.Base64,yd="2.1.9",vd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Cd=function(Af){for(var Df={},kf=0,Cf=Af.length;kf>>6)+wd(128|kf&63):wd(224|kf>>>12&15)+wd(128|kf>>>6&63)+wd(128|kf&63)}else{var kf=65536+(Df.charCodeAt(0)-55296)*1024+(Df.charCodeAt(1)-56320);return wd(240|kf>>>18&7)+wd(128|kf>>>12&63)+wd(128|kf>>>6&63)+wd(128|kf&63)}},Ld=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Ud=function(Df){return Df.replace(Ld,Nd)},jd=function(Df){var kf=[0,2,1][Df.length%3],Cf=Df.charCodeAt(0)<<16|(Df.length>1?Df.charCodeAt(1):0)<<8|(Df.length>2?Df.charCodeAt(2):0),If=[vd.charAt(Cf>>>18),vd.charAt(Cf>>>12&63),kf>=2?"=":vd.charAt(Cf>>>6&63),kf>=1?"=":vd.charAt(Cf&63)];return If.join("")},Gd=md.btoa?function(Af){return md.btoa(Af)}:function(Af){return Af.replace(/[\s\S]{1,3}/g,jd)},Yd=function(Af){return Gd(Ud(Af))},zd=function(Df,kf){return kf?Yd(String(Df)).replace(/[+\/]/g,function(Cf){return Cf=="+"?"-":"_"}).replace(/=/g,""):Yd(String(Df))},qd=function(Df){return zd(Df,!0)},Wd=new RegExp(["[À-ß][€-¿]","[à-ï][€-¿]{2}","[ð-÷][€-¿]{3}"].join("|"),"g"),Xd=function(Df){switch(Df.length){case 4:var kf=(7&Df.charCodeAt(0))<<18|(63&Df.charCodeAt(1))<<12|(63&Df.charCodeAt(2))<<6|63&Df.charCodeAt(3),Cf=kf-65536;return wd((Cf>>>10)+55296)+wd((Cf&1023)+56320);case 3:return wd((15&Df.charCodeAt(0))<<12|(63&Df.charCodeAt(1))<<6|63&Df.charCodeAt(2));default:return wd((31&Df.charCodeAt(0))<<6|63&Df.charCodeAt(1))}},Jd=function(Df){return Df.replace(Wd,Xd)},Zd=function(Df){var kf=Df.length,Cf=kf%4,If=(kf>0?Cd[Df.charAt(0)]<<18:0)|(kf>1?Cd[Df.charAt(1)]<<12:0)|(kf>2?Cd[Df.charAt(2)]<<6:0)|(kf>3?Cd[Df.charAt(3)]:0),Ff=[wd(If>>>16),wd(If>>>8&255),wd(If&255)];return Ff.length-=[0,0,2,1][Cf],Ff.join("")},mf=md.atob?function(Af){return md.atob(Af)}:function(Af){return Af.replace(/[\s\S]{1,4}/g,Zd)},xf=function(Af){return Jd(mf(Af))},_f=function(Df){return xf(String(Df).replace(/[-_]/g,function(kf){return kf=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},vf=function(){var Df=md.Base64;return md.Base64=gd,Df},gf={VERSION:yd,atob:mf,btoa:Gd,fromBase64:_f,toBase64:zd,utob:Ud,encode:zd,encodeURI:qd,btou:Jd,decode:_f,noConflict:vf};return gf}();ud.exports=hd},"./lib/crypto.js":function(ud,dd,hd){(function(md){var gd=hd("./node_modules/@babel/runtime/helpers/typeof.js"),yd=yd||function(vd,Cd){var wd={},Nd=wd.lib={},Ld=function(){},Ud=Nd.Base={extend:function(Zd){Ld.prototype=this;var mf=new Ld;return Zd&&mf.mixIn(Zd),mf.hasOwnProperty("init")||(mf.init=function(){mf.$super.init.apply(this,arguments)}),mf.init.prototype=mf,mf.$super=this,mf},create:function(){var Zd=this.extend();return Zd.init.apply(Zd,arguments),Zd},init:function(){},mixIn:function(Zd){for(var mf in Zd)Zd.hasOwnProperty(mf)&&(this[mf]=Zd[mf]);Zd.hasOwnProperty("toString")&&(this.toString=Zd.toString)},clone:function(){return this.init.prototype.extend(this)}},jd=Nd.WordArray=Ud.extend({init:function(Zd,mf){Zd=this.words=Zd||[],this.sigBytes=mf!=Cd?mf:4*Zd.length},toString:function(Zd){return(Zd||Yd).stringify(this)},concat:function(Zd){var mf=this.words,xf=Zd.words,_f=this.sigBytes;if(Zd=Zd.sigBytes,this.clamp(),_f%4)for(var vf=0;vf>>2]|=(xf[vf>>>2]>>>24-8*(vf%4)&255)<<24-8*((_f+vf)%4);else if(65535>>2]=xf[vf>>>2];else mf.push.apply(mf,xf);return this.sigBytes+=Zd,this},clamp:function(){var Zd=this.words,mf=this.sigBytes;Zd[mf>>>2]&=4294967295<<32-8*(mf%4),Zd.length=vd.ceil(mf/4)},clone:function(){var Zd=Ud.clone.call(this);return Zd.words=this.words.slice(0),Zd},random:function(Zd){for(var mf=[],xf=0;xf>>2]>>>24-8*(_f%4)&255;xf.push((vf>>>4).toString(16)),xf.push((vf&15).toString(16))}return xf.join("")},parse:function(Zd){for(var mf=Zd.length,xf=[],_f=0;_f>>3]|=parseInt(Zd.substr(_f,2),16)<<24-4*(_f%8);return new jd.init(xf,mf/2)}},zd=Gd.Latin1={stringify:function(Zd){var mf=Zd.words;Zd=Zd.sigBytes;for(var xf=[],_f=0;_f>>2]>>>24-8*(_f%4)&255));return xf.join("")},parse:function(Zd){for(var mf=Zd.length,xf=[],_f=0;_f>>2]|=(Zd.charCodeAt(_f)&255)<<24-8*(_f%4);return new jd.init(xf,mf)}},qd=Gd.Utf8={stringify:function(Zd){try{return decodeURIComponent(escape(zd.stringify(Zd)))}catch{throw Error("Malformed UTF-8 data")}},parse:function(Zd){return zd.parse(unescape(encodeURIComponent(Zd)))}},Wd=Nd.BufferedBlockAlgorithm=Ud.extend({reset:function(){this._data=new jd.init,this._nDataBytes=0},_append:function(Zd){typeof Zd=="string"&&(Zd=qd.parse(Zd)),this._data.concat(Zd),this._nDataBytes+=Zd.sigBytes},_process:function(Zd){var mf=this._data,xf=mf.words,_f=mf.sigBytes,vf=this.blockSize,gf=_f/(4*vf),gf=Zd?vd.ceil(gf):vd.max((gf|0)-this._minBufferSize,0);if(Zd=gf*vf,_f=vd.min(4*Zd,_f),Zd){for(var Af=0;AfZd;Zd++){if(16>Zd)Nd[Zd]=jd[Gd+Zd]|0;else{var mf=Nd[Zd-3]^Nd[Zd-8]^Nd[Zd-14]^Nd[Zd-16];Nd[Zd]=mf<<1|mf>>>31}mf=(zd<<5|zd>>>27)+Jd+Nd[Zd],mf=20>Zd?mf+((qd&Wd|~qd&Xd)+1518500249):40>Zd?mf+((qd^Wd^Xd)+1859775393):60>Zd?mf+((qd&Wd|qd&Xd|Wd&Xd)-1894007588):mf+((qd^Wd^Xd)-899497514),Jd=Xd,Xd=Wd,Wd=qd<<30|qd>>>2,qd=zd,zd=mf}Yd[0]=Yd[0]+zd|0,Yd[1]=Yd[1]+qd|0,Yd[2]=Yd[2]+Wd|0,Yd[3]=Yd[3]+Xd|0,Yd[4]=Yd[4]+Jd|0},_doFinalize:function(){var jd=this._data,Gd=jd.words,Yd=8*this._nDataBytes,zd=8*jd.sigBytes;return Gd[zd>>>5]|=128<<24-zd%32,Gd[(zd+64>>>9<<4)+14]=Math.floor(Yd/4294967296),Gd[(zd+64>>>9<<4)+15]=Yd,jd.sigBytes=4*Gd.length,this._process(),this._hash},clone:function(){var jd=wd.clone.call(this);return jd._hash=this._hash.clone(),jd}});vd.SHA1=wd._createHelper(Ld),vd.HmacSHA1=wd._createHmacHelper(Ld)})(),function(){var vd=yd,Cd=vd.enc.Utf8;vd.algo.HMAC=vd.lib.Base.extend({init:function(Nd,Ld){Nd=this._hasher=new Nd.init,typeof Ld=="string"&&(Ld=Cd.parse(Ld));var Ud=Nd.blockSize,jd=4*Ud;Ld.sigBytes>jd&&(Ld=Nd.finalize(Ld)),Ld.clamp();for(var Gd=this._oKey=Ld.clone(),Yd=this._iKey=Ld.clone(),zd=Gd.words,qd=Yd.words,Wd=0;Wd>>2]>>>24-qd%4*8&255,Xd=jd[qd+1>>>2]>>>24-(qd+1)%4*8&255,Jd=jd[qd+2>>>2]>>>24-(qd+2)%4*8&255,Zd=Wd<<16|Xd<<8|Jd,mf=0;mf<4&&qd+mf*.75>>6*(3-mf)&63));var xf=Yd.charAt(64);if(xf)for(;zd.length%4;)zd.push(xf);return zd.join("")},parse:function(Ud){var jd=Ud.length,Gd=this._map,Yd=Gd.charAt(64);if(Yd){var zd=Ud.indexOf(Yd);zd!=-1&&(jd=zd)}for(var qd=[],Wd=0,Xd=0;Xd>>6-Xd%4*2;qd[Wd>>>2]|=(Jd|Zd)<<24-Wd%4*8,Wd++}return wd.create(qd,Wd)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),gd(md)==="object"?md.exports=yd:window.CryptoJS=yd}).call(this,hd("./node_modules/webpack/buildin/module.js")(ud))},"./lib/md5.js":function(ud,dd,hd){(function(md){var gd,yd=hd("./node_modules/@babel/runtime/helpers/typeof.js");(function(){var vd=(typeof window>"u"?"undefined":yd(window))==="object",Cd=vd?window:{};Cd.JS_MD5_NO_WINDOW&&(vd=!1);var wd=!vd&&(typeof self>"u"?"undefined":yd(self))==="object";wd&&(Cd=self);var Nd=!Cd.JS_MD5_NO_COMMON_JS&&yd(md)==="object"&&md.exports,Ld=hd("./node_modules/webpack/buildin/amd-options.js"),Ud=!Cd.JS_MD5_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",jd="0123456789abcdef".split(""),Gd=[128,32768,8388608,-2147483648],Yd=[0,8,16,24],zd=["hex","array","digest","buffer","arrayBuffer","base64"],qd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),Wd=[],Xd;if(Ud){var Jd=new ArrayBuffer(68);Xd=new Uint8Array(Jd),Wd=new Uint32Array(Jd)}(Cd.JS_MD5_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(vf){return Object.prototype.toString.call(vf)==="[object Array]"}),Ud&&(Cd.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(vf){return yd(vf)==="object"&&vf.buffer&&vf.buffer.constructor===ArrayBuffer});var Zd=function(gf){return function(Af,Df){return new xf(!0).update(Af,Df)[gf]()}},mf=function(){var gf=Zd("hex");gf.getCtx=gf.create=function(){return new xf},gf.update=function(kf){return gf.create().update(kf)};for(var Af=0;Af>6,Ff[kf++]=128|Af&63):Af<55296||Af>=57344?(Ff[kf++]=224|Af>>12,Ff[kf++]=128|Af>>6&63,Ff[kf++]=128|Af&63):(Af=65536+((Af&1023)<<10|vf.charCodeAt(++Df)&1023),Ff[kf++]=240|Af>>18,Ff[kf++]=128|Af>>12&63,Ff[kf++]=128|Af>>6&63,Ff[kf++]=128|Af&63);else for(kf=this.start;Df>2]|=Af<>2]|=(192|Af>>6)<>2]|=(128|Af&63)<=57344?(If[kf>>2]|=(224|Af>>12)<>2]|=(128|Af>>6&63)<>2]|=(128|Af&63)<>2]|=(240|Af>>18)<>2]|=(128|Af>>12&63)<>2]|=(128|Af>>6&63)<>2]|=(128|Af&63)<=64?(this.start=kf-64,this.hash(),this.hashed=!0):this.start=kf}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},xf.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var vf=this.blocks,gf=this.lastByteIndex;vf[gf>>2]|=Gd[gf&3],gf>=56&&(this.hashed||this.hash(),vf[0]=vf[16],vf[16]=vf[1]=vf[2]=vf[3]=vf[4]=vf[5]=vf[6]=vf[7]=vf[8]=vf[9]=vf[10]=vf[11]=vf[12]=vf[13]=vf[14]=vf[15]=0),vf[14]=this.bytes<<3,vf[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},xf.prototype.hash=function(){var vf,gf,Af,Df,kf,Cf,If=this.blocks;this.first?(vf=If[0]-680876937,vf=(vf<<7|vf>>>25)-271733879<<0,Df=(-1732584194^vf&2004318071)+If[1]-117830708,Df=(Df<<12|Df>>>20)+vf<<0,Af=(-271733879^Df&(vf^-271733879))+If[2]-1126478375,Af=(Af<<17|Af>>>15)+Df<<0,gf=(vf^Af&(Df^vf))+If[3]-1316259209,gf=(gf<<22|gf>>>10)+Af<<0):(vf=this.h0,gf=this.h1,Af=this.h2,Df=this.h3,vf+=(Df^gf&(Af^Df))+If[0]-680876936,vf=(vf<<7|vf>>>25)+gf<<0,Df+=(Af^vf&(gf^Af))+If[1]-389564586,Df=(Df<<12|Df>>>20)+vf<<0,Af+=(gf^Df&(vf^gf))+If[2]+606105819,Af=(Af<<17|Af>>>15)+Df<<0,gf+=(vf^Af&(Df^vf))+If[3]-1044525330,gf=(gf<<22|gf>>>10)+Af<<0),vf+=(Df^gf&(Af^Df))+If[4]-176418897,vf=(vf<<7|vf>>>25)+gf<<0,Df+=(Af^vf&(gf^Af))+If[5]+1200080426,Df=(Df<<12|Df>>>20)+vf<<0,Af+=(gf^Df&(vf^gf))+If[6]-1473231341,Af=(Af<<17|Af>>>15)+Df<<0,gf+=(vf^Af&(Df^vf))+If[7]-45705983,gf=(gf<<22|gf>>>10)+Af<<0,vf+=(Df^gf&(Af^Df))+If[8]+1770035416,vf=(vf<<7|vf>>>25)+gf<<0,Df+=(Af^vf&(gf^Af))+If[9]-1958414417,Df=(Df<<12|Df>>>20)+vf<<0,Af+=(gf^Df&(vf^gf))+If[10]-42063,Af=(Af<<17|Af>>>15)+Df<<0,gf+=(vf^Af&(Df^vf))+If[11]-1990404162,gf=(gf<<22|gf>>>10)+Af<<0,vf+=(Df^gf&(Af^Df))+If[12]+1804603682,vf=(vf<<7|vf>>>25)+gf<<0,Df+=(Af^vf&(gf^Af))+If[13]-40341101,Df=(Df<<12|Df>>>20)+vf<<0,Af+=(gf^Df&(vf^gf))+If[14]-1502002290,Af=(Af<<17|Af>>>15)+Df<<0,gf+=(vf^Af&(Df^vf))+If[15]+1236535329,gf=(gf<<22|gf>>>10)+Af<<0,vf+=(Af^Df&(gf^Af))+If[1]-165796510,vf=(vf<<5|vf>>>27)+gf<<0,Df+=(gf^Af&(vf^gf))+If[6]-1069501632,Df=(Df<<9|Df>>>23)+vf<<0,Af+=(vf^gf&(Df^vf))+If[11]+643717713,Af=(Af<<14|Af>>>18)+Df<<0,gf+=(Df^vf&(Af^Df))+If[0]-373897302,gf=(gf<<20|gf>>>12)+Af<<0,vf+=(Af^Df&(gf^Af))+If[5]-701558691,vf=(vf<<5|vf>>>27)+gf<<0,Df+=(gf^Af&(vf^gf))+If[10]+38016083,Df=(Df<<9|Df>>>23)+vf<<0,Af+=(vf^gf&(Df^vf))+If[15]-660478335,Af=(Af<<14|Af>>>18)+Df<<0,gf+=(Df^vf&(Af^Df))+If[4]-405537848,gf=(gf<<20|gf>>>12)+Af<<0,vf+=(Af^Df&(gf^Af))+If[9]+568446438,vf=(vf<<5|vf>>>27)+gf<<0,Df+=(gf^Af&(vf^gf))+If[14]-1019803690,Df=(Df<<9|Df>>>23)+vf<<0,Af+=(vf^gf&(Df^vf))+If[3]-187363961,Af=(Af<<14|Af>>>18)+Df<<0,gf+=(Df^vf&(Af^Df))+If[8]+1163531501,gf=(gf<<20|gf>>>12)+Af<<0,vf+=(Af^Df&(gf^Af))+If[13]-1444681467,vf=(vf<<5|vf>>>27)+gf<<0,Df+=(gf^Af&(vf^gf))+If[2]-51403784,Df=(Df<<9|Df>>>23)+vf<<0,Af+=(vf^gf&(Df^vf))+If[7]+1735328473,Af=(Af<<14|Af>>>18)+Df<<0,gf+=(Df^vf&(Af^Df))+If[12]-1926607734,gf=(gf<<20|gf>>>12)+Af<<0,kf=gf^Af,vf+=(kf^Df)+If[5]-378558,vf=(vf<<4|vf>>>28)+gf<<0,Df+=(kf^vf)+If[8]-2022574463,Df=(Df<<11|Df>>>21)+vf<<0,Cf=Df^vf,Af+=(Cf^gf)+If[11]+1839030562,Af=(Af<<16|Af>>>16)+Df<<0,gf+=(Cf^Af)+If[14]-35309556,gf=(gf<<23|gf>>>9)+Af<<0,kf=gf^Af,vf+=(kf^Df)+If[1]-1530992060,vf=(vf<<4|vf>>>28)+gf<<0,Df+=(kf^vf)+If[4]+1272893353,Df=(Df<<11|Df>>>21)+vf<<0,Cf=Df^vf,Af+=(Cf^gf)+If[7]-155497632,Af=(Af<<16|Af>>>16)+Df<<0,gf+=(Cf^Af)+If[10]-1094730640,gf=(gf<<23|gf>>>9)+Af<<0,kf=gf^Af,vf+=(kf^Df)+If[13]+681279174,vf=(vf<<4|vf>>>28)+gf<<0,Df+=(kf^vf)+If[0]-358537222,Df=(Df<<11|Df>>>21)+vf<<0,Cf=Df^vf,Af+=(Cf^gf)+If[3]-722521979,Af=(Af<<16|Af>>>16)+Df<<0,gf+=(Cf^Af)+If[6]+76029189,gf=(gf<<23|gf>>>9)+Af<<0,kf=gf^Af,vf+=(kf^Df)+If[9]-640364487,vf=(vf<<4|vf>>>28)+gf<<0,Df+=(kf^vf)+If[12]-421815835,Df=(Df<<11|Df>>>21)+vf<<0,Cf=Df^vf,Af+=(Cf^gf)+If[15]+530742520,Af=(Af<<16|Af>>>16)+Df<<0,gf+=(Cf^Af)+If[2]-995338651,gf=(gf<<23|gf>>>9)+Af<<0,vf+=(Af^(gf|~Df))+If[0]-198630844,vf=(vf<<6|vf>>>26)+gf<<0,Df+=(gf^(vf|~Af))+If[7]+1126891415,Df=(Df<<10|Df>>>22)+vf<<0,Af+=(vf^(Df|~gf))+If[14]-1416354905,Af=(Af<<15|Af>>>17)+Df<<0,gf+=(Df^(Af|~vf))+If[5]-57434055,gf=(gf<<21|gf>>>11)+Af<<0,vf+=(Af^(gf|~Df))+If[12]+1700485571,vf=(vf<<6|vf>>>26)+gf<<0,Df+=(gf^(vf|~Af))+If[3]-1894986606,Df=(Df<<10|Df>>>22)+vf<<0,Af+=(vf^(Df|~gf))+If[10]-1051523,Af=(Af<<15|Af>>>17)+Df<<0,gf+=(Df^(Af|~vf))+If[1]-2054922799,gf=(gf<<21|gf>>>11)+Af<<0,vf+=(Af^(gf|~Df))+If[8]+1873313359,vf=(vf<<6|vf>>>26)+gf<<0,Df+=(gf^(vf|~Af))+If[15]-30611744,Df=(Df<<10|Df>>>22)+vf<<0,Af+=(vf^(Df|~gf))+If[6]-1560198380,Af=(Af<<15|Af>>>17)+Df<<0,gf+=(Df^(Af|~vf))+If[13]+1309151649,gf=(gf<<21|gf>>>11)+Af<<0,vf+=(Af^(gf|~Df))+If[4]-145523070,vf=(vf<<6|vf>>>26)+gf<<0,Df+=(gf^(vf|~Af))+If[11]-1120210379,Df=(Df<<10|Df>>>22)+vf<<0,Af+=(vf^(Df|~gf))+If[2]+718787259,Af=(Af<<15|Af>>>17)+Df<<0,gf+=(Df^(Af|~vf))+If[9]-343485551,gf=(gf<<21|gf>>>11)+Af<<0,this.first?(this.h0=vf+1732584193<<0,this.h1=gf-271733879<<0,this.h2=Af-1732584194<<0,this.h3=Df+271733878<<0,this.first=!1):(this.h0=this.h0+vf<<0,this.h1=this.h1+gf<<0,this.h2=this.h2+Af<<0,this.h3=this.h3+Df<<0)},xf.prototype.hex=function(){this.finalize();var vf=this.h0,gf=this.h1,Af=this.h2,Df=this.h3;return jd[vf>>4&15]+jd[vf&15]+jd[vf>>12&15]+jd[vf>>8&15]+jd[vf>>20&15]+jd[vf>>16&15]+jd[vf>>28&15]+jd[vf>>24&15]+jd[gf>>4&15]+jd[gf&15]+jd[gf>>12&15]+jd[gf>>8&15]+jd[gf>>20&15]+jd[gf>>16&15]+jd[gf>>28&15]+jd[gf>>24&15]+jd[Af>>4&15]+jd[Af&15]+jd[Af>>12&15]+jd[Af>>8&15]+jd[Af>>20&15]+jd[Af>>16&15]+jd[Af>>28&15]+jd[Af>>24&15]+jd[Df>>4&15]+jd[Df&15]+jd[Df>>12&15]+jd[Df>>8&15]+jd[Df>>20&15]+jd[Df>>16&15]+jd[Df>>28&15]+jd[Df>>24&15]},xf.prototype.toString=xf.prototype.hex,xf.prototype.digest=function(vf){if(vf==="hex")return this.hex();this.finalize();var gf=this.h0,Af=this.h1,Df=this.h2,kf=this.h3,Cf=[gf&255,gf>>8&255,gf>>16&255,gf>>24&255,Af&255,Af>>8&255,Af>>16&255,Af>>24&255,Df&255,Df>>8&255,Df>>16&255,Df>>24&255,kf&255,kf>>8&255,kf>>16&255,kf>>24&255];return Cf},xf.prototype.array=xf.prototype.digest,xf.prototype.arrayBuffer=function(){this.finalize();var vf=new ArrayBuffer(16),gf=new Uint32Array(vf);return gf[0]=this.h0,gf[1]=this.h1,gf[2]=this.h2,gf[3]=this.h3,vf},xf.prototype.buffer=xf.prototype.arrayBuffer,xf.prototype.base64=function(){for(var vf,gf,Af,Df="",kf=this.array(),Cf=0;Cf<15;)vf=kf[Cf++],gf=kf[Cf++],Af=kf[Cf++],Df+=qd[vf>>>2]+qd[(vf<<4|gf>>>4)&63]+qd[(gf<<2|Af>>>6)&63]+qd[Af&63];return vf=kf[Cf],Df+=qd[vf>>>2]+qd[vf<<4&63]+"==",Df};var _f=mf();Nd?md.exports=_f:(Cd.md5=_f,Ld&&(gd=(function(){return _f}).call(_f,hd,_f,md),gd!==void 0&&(md.exports=gd)))})()}).call(this,hd("./node_modules/webpack/buildin/module.js")(ud))},"./lib/request.js":function(ud,dd,hd){var md=hd("./node_modules/@babel/runtime/helpers/typeof.js"),gd=function(Ld){switch(md(Ld)){case"string":return Ld;case"boolean":return Ld?"true":"false";case"number":return isFinite(Ld)?Ld:"";default:return""}},yd=function(Ld,Ud,jd,Gd){return Ud=Ud||"&",jd=jd||"=",Ld===null&&(Ld=void 0),md(Ld)==="object"?Object.keys(Ld).map(function(Yd){var zd=encodeURIComponent(gd(Yd))+jd;return Array.isArray(Ld[Yd])?Ld[Yd].map(function(qd){return zd+encodeURIComponent(gd(qd))}).join(Ud):zd+encodeURIComponent(gd(Ld[Yd]))}).filter(Boolean).join(Ud):""},vd=function(Ld,Ud,jd){var Gd={},Yd=Ud.getAllResponseHeaders();return Yd&&Yd.length>0&&Yd.trim().split(` +`).forEach(function(zd){if(zd){var qd=zd.indexOf(":"),Wd=zd.substr(0,qd).trim().toLowerCase(),Xd=zd.substr(qd+1).trim();Gd[Wd]=Xd}}),{error:Ld,statusCode:Ud.status,statusMessage:Ud.statusText,headers:Gd,body:jd}},Cd=function(Ld,Ud){return!Ud&&Ud==="text"?Ld.responseText:Ld.response},wd=function(Ld,Ud){var jd=(Ld.method||"GET").toUpperCase(),Gd=Ld.url;if(Ld.qs){var Yd=yd(Ld.qs);Yd&&(Gd+=(Gd.indexOf("?")===-1?"?":"&")+Yd)}var zd=new XMLHttpRequest;if(zd.open(jd,Gd,!0),zd.responseType=Ld.dataType||"text",Ld.xhrFields)for(var qd in Ld.xhrFields)zd[qd]=Ld.xhrFields[qd];var Wd=Ld.headers;if(Wd)for(var Xd in Wd)Wd.hasOwnProperty(Xd)&&Xd.toLowerCase()!=="content-length"&&Xd.toLowerCase()!=="user-agent"&&Xd.toLowerCase()!=="origin"&&Xd.toLowerCase()!=="host"&&zd.setRequestHeader(Xd,Wd[Xd]);return Ld.onProgress&&zd.upload&&(zd.upload.onprogress=Ld.onProgress),Ld.onDownloadProgress&&(zd.onprogress=Ld.onDownloadProgress),Ld.timeout&&(zd.timeout=Ld.timeout),zd.ontimeout=function(Jd){var Zd=new Error("timeout");Ud(vd(Zd,zd))},zd.onload=function(){Ud(vd(null,zd,Cd(zd,Ld.dataType)))},zd.onerror=function(Jd){var Zd=Cd(zd,Ld.dataType);if(Zd)Ud(vd(null,zd,Zd));else{var mf=zd.statusText;!mf&&zd.status===0&&(mf=new Error("CORS blocked or network error")),Ud(vd(mf,zd,Zd))}},zd.send(Ld.body||""),zd};ud.exports=wd},"./node_modules/@babel/runtime/helpers/classCallCheck.js":function(ud,dd){function hd(md,gd){if(!(md instanceof gd))throw new TypeError("Cannot call a class as a function")}ud.exports=hd,ud.exports.__esModule=!0,ud.exports.default=ud.exports},"./node_modules/@babel/runtime/helpers/createClass.js":function(ud,dd,hd){var md=hd("./node_modules/@babel/runtime/helpers/toPropertyKey.js");function gd(vd,Cd){for(var wd=0;wd{for(const yd of md)if(typeof yd=="string"&&gd===yd||yd instanceof RegExp&&yd.test(gd))return!0}:()=>!1}ud.exports=hd},"./node_modules/fast-xml-parser/src/util.js":function(ud,dd,hd){const md=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",gd=md+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",yd="["+md+"]["+gd+"]*",vd=new RegExp("^"+yd+"$"),Cd=function(Nd,Ld){const Ud=[];let jd=Ld.exec(Nd);for(;jd;){const Gd=[];Gd.startIndex=Ld.lastIndex-jd[0].length;const Yd=jd.length;for(let zd=0;zd"u")};dd.isExist=function(Nd){return typeof Nd<"u"},dd.isEmptyObject=function(Nd){return Object.keys(Nd).length===0},dd.merge=function(Nd,Ld,Ud){if(Ld){const jd=Object.keys(Ld),Gd=jd.length;for(let Yd=0;Yd"&&Zd[gf]!==" "&&Zd[gf]!==" "&&Zd[gf]!==` +`&&Zd[gf]!=="\r";gf++)kf+=Zd[gf];if(kf=kf.trim(),kf[kf.length-1]==="/"&&(kf=kf.substring(0,kf.length-1),gf--),!Wd(kf)){let Ff;return kf.trim().length===0?Ff="Invalid space after '<'.":Ff="Tag '"+kf+"' is an invalid name.",zd("InvalidTag",Ff,Xd(Zd,gf))}const Cf=Ld(Zd,gf);if(Cf===!1)return zd("InvalidAttr","Attributes for '"+kf+"' have open quote.",Xd(Zd,gf));let If=Cf.value;if(gf=Cf.index,If[If.length-1]==="/"){const Ff=gf-If.length;If=If.substring(0,If.length-1);const oh=jd(If,mf);if(oh===!0)_f=!0;else return zd(oh.err.code,oh.err.msg,Xd(Zd,Ff+oh.err.line))}else if(Df)if(Cf.tagClosed){if(If.trim().length>0)return zd("InvalidTag","Closing tag '"+kf+"' can't have attributes or invalid starting.",Xd(Zd,Af));if(xf.length===0)return zd("InvalidTag","Closing tag '"+kf+"' has not been opened.",Xd(Zd,Af));{const Ff=xf.pop();if(kf!==Ff.tagName){let oh=Xd(Zd,Ff.tagStartPos);return zd("InvalidTag","Expected closing tag '"+Ff.tagName+"' (opened in line "+oh.line+", col "+oh.col+") instead of closing tag '"+kf+"'.",Xd(Zd,Af))}xf.length==0&&(vf=!0)}}else return zd("InvalidTag","Closing tag '"+kf+"' doesn't have proper closing.",Xd(Zd,gf));else{const Ff=jd(If,mf);if(Ff!==!0)return zd(Ff.err.code,Ff.err.msg,Xd(Zd,gf-If.length+Ff.err.line));if(vf===!0)return zd("InvalidXml","Multiple possible root nodes found.",Xd(Zd,gf));mf.unpairedTags.indexOf(kf)!==-1||xf.push({tagName:kf,tagStartPos:Af}),_f=!0}for(gf++;gf0)return zd("InvalidXml","Invalid '"+JSON.stringify(xf.map(gf=>gf.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return zd("InvalidXml","Start tag expected.",1);return!0};function yd(Zd){return Zd===" "||Zd===" "||Zd===` `||Zd==="\r"}function vd(Zd,mf){const xf=mf;for(;mf5&&_f==="xml")return zd("InvalidXml","XML declaration allowed only at the start of the document.",Xd(Zd,mf));if(Zd[mf]=="?"&&Zd[mf+1]==">"){mf++;break}else continue}return mf}function Cd(Zd,mf){if(Zd.length>mf+5&&Zd[mf+1]==="-"&&Zd[mf+2]==="-"){for(mf+=3;mf"){mf+=2;break}}else if(Zd.length>mf+8&&Zd[mf+1]==="D"&&Zd[mf+2]==="O"&&Zd[mf+3]==="C"&&Zd[mf+4]==="T"&&Zd[mf+5]==="Y"&&Zd[mf+6]==="P"&&Zd[mf+7]==="E"){let xf=1;for(mf+=8;mf"&&(xf--,xf===0))break}else if(Zd.length>mf+9&&Zd[mf+1]==="["&&Zd[mf+2]==="C"&&Zd[mf+3]==="D"&&Zd[mf+4]==="A"&&Zd[mf+5]==="T"&&Zd[mf+6]==="A"&&Zd[mf+7]==="["){for(mf+=8;mf"){mf+=2;break}}return mf}const wd='"',Nd="'";function Ld(Zd,mf){let xf="",_f="",vf=!1;for(;mf"&&_f===""){vf=!0;break}xf+=Zd[mf]}return _f!==""?!1:{value:xf,index:mf,tagClosed:vf}}const Ud=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function jd(Zd,mf){const xf=md.getAllMatches(Zd,Ud),_f={};for(let vf=0;vf","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function vd(Ld){this.options=Object.assign({},yd,Ld),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=gd(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Nd),this.processTextOrObjNode=Cd,this.options.format?(this.indentate=wd,this.tagEndChar=`> `,this.newLine=` `):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}vd.prototype.build=function(Ld){return this.options.preserveOrder?md(Ld,this.options):(Array.isArray(Ld)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(Ld={[this.options.arrayNodeName]:Ld}),this.j2x(Ld,0,[]).val)},vd.prototype.j2x=function(Ld,Ud,jd){let Gd="",Yd="";const zd=jd.join(".");for(let qd in Ld)if(Object.prototype.hasOwnProperty.call(Ld,qd))if(typeof Ld[qd]>"u")this.isAttribute(qd)&&(Yd+="");else if(Ld[qd]===null)this.isAttribute(qd)?Yd+="":qd[0]==="?"?Yd+=this.indentate(Ud)+"<"+qd+"?"+this.tagEndChar:Yd+=this.indentate(Ud)+"<"+qd+"/"+this.tagEndChar;else if(Ld[qd]instanceof Date)Yd+=this.buildTextValNode(Ld[qd],qd,"",Ud);else if(typeof Ld[qd]!="object"){const Wd=this.isAttribute(qd);if(Wd&&!this.ignoreAttributesFn(Wd,zd))Gd+=this.buildAttrPairStr(Wd,""+Ld[qd]);else if(!Wd)if(qd===this.options.textNodeName){let Xd=this.options.tagValueProcessor(qd,""+Ld[qd]);Yd+=this.replaceEntitiesValue(Xd)}else Yd+=this.buildTextValNode(Ld[qd],qd,"",Ud)}else if(Array.isArray(Ld[qd])){const Wd=Ld[qd].length;let Xd="",Jd="";for(let Zd=0;Zd"u"))if(mf===null)qd[0]==="?"?Yd+=this.indentate(Ud)+"<"+qd+"?"+this.tagEndChar:Yd+=this.indentate(Ud)+"<"+qd+"/"+this.tagEndChar;else if(typeof mf=="object")if(this.options.oneListGroup){const xf=this.j2x(mf,Ud+1,jd.concat(qd));Xd+=xf.val,this.options.attributesGroupName&&mf.hasOwnProperty(this.options.attributesGroupName)&&(Jd+=xf.attrStr)}else Xd+=this.processTextOrObjNode(mf,qd,Ud,jd);else if(this.options.oneListGroup){let xf=this.options.tagValueProcessor(qd,mf);xf=this.replaceEntitiesValue(xf),Xd+=xf}else Xd+=this.buildTextValNode(mf,qd,"",Ud)}this.options.oneListGroup&&(Xd=this.buildObjectNode(Xd,qd,Jd,Ud)),Yd+=Xd}else if(this.options.attributesGroupName&&qd===this.options.attributesGroupName){const Wd=Object.keys(Ld[qd]),Xd=Wd.length;for(let Jd=0;Jd"+Ld+Yd:this.options.commentPropName!==!1&&Ud===this.options.commentPropName&&zd.length===0?this.indentate(Gd)+``+this.newLine:this.indentate(Gd)+"<"+Ud+jd+zd+this.tagEndChar+Ld+this.indentate(Gd)+Yd}},vd.prototype.closeTag=function(Ld){let Ud="";return this.options.unpairedTags.indexOf(Ld)!==-1?this.options.suppressUnpairedNode||(Ud="/"):this.options.suppressEmptyNode?Ud="/":Ud=`>`+this.newLine;if(this.options.commentPropName!==!1&&Ud===this.options.commentPropName)return this.indentate(Gd)+``+this.newLine;if(Ud[0]==="?")return this.indentate(Gd)+"<"+Ud+jd+"?"+this.tagEndChar;{let Yd=this.options.tagValueProcessor(Ud,Ld);return Yd=this.replaceEntitiesValue(Yd),Yd===""?this.indentate(Gd)+"<"+Ud+jd+this.closeTag(Ud)+this.tagEndChar:this.indentate(Gd)+"<"+Ud+jd+">"+Yd+"0&&this.options.processEntities)for(let Ud=0;Ud0&&(Ud=hd),gd(Nd,Ld,"",Ud)}function gd(Nd,Ld,Ud,jd){let Gd="",Yd=!1;for(let zd=0;zd`,Yd=!1;continue}else if(Wd===Ld.commentPropName){Gd+=jd+``,Yd=!0;continue}else if(Wd[0]==="?"){const _f=vd(qd[":@"],Ld),vf=Wd==="?xml"?"":jd;let gf=qd[Wd][0][Ld.textNodeName];gf=gf.length!==0?" "+gf:"",Gd+=vf+`<${Wd}${gf}${_f}?>`,Yd=!0;continue}let Jd=jd;Jd!==""&&(Jd+=Ld.indentBy);const Zd=vd(qd[":@"],Ld),mf=jd+`<${Wd}${Zd}`,xf=gd(qd[Wd],Ld,Xd,Jd);Ld.unpairedTags.indexOf(Wd)!==-1?Ld.suppressUnpairedNode?Gd+=mf+">":Gd+=mf+"/>":(!xf||xf.length===0)&&Ld.suppressEmptyNode?Gd+=mf+"/>":xf&&xf.endsWith(">")?Gd+=mf+`>${xf}${jd}`:(Gd+=mf+">",xf&&jd!==""&&(xf.includes("/>")||xf.includes("`),Yd=!0}return Gd}function yd(Nd){const Ld=Object.keys(Nd);for(let Ud=0;Ud0&&Ld.processEntities)for(let Ud=0;Ud"){if(Wd?jd[Gd-1]==="-"&&jd[Gd-2]==="-"&&(Wd=!1,zd--):zd--,zd===0)break}else jd[Gd]==="["?qd=!0:Xd+=jd[Gd];if(zd!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:Yd,i:Gd}}function yd(jd,Gd){let Yd="";for(;Gd!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(gd,yd,vd){return gd}},md=function(gd){return Object.assign({},hd,gd)};dd.buildOptions=md,dd.defaultOptions=hd},"./node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js":function(ud,dd,hd){const md=hd("./node_modules/fast-xml-parser/src/util.js"),gd=hd("./node_modules/fast-xml-parser/src/xmlparser/xmlNode.js"),yd=hd("./node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js"),vd=hd("./node_modules/strnum/strnum.js"),Cd=hd("./node_modules/fast-xml-parser/src/ignoreAttributes.js");class wd{constructor(gf){this.options=gf,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(Af,Df)=>String.fromCharCode(Number.parseInt(Df,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(Af,Df)=>String.fromCharCode(Number.parseInt(Df,16))}},this.addExternalEntities=Nd,this.parseXml=Yd,this.parseTextData=Ld,this.resolveNameSpace=Ud,this.buildAttributesMap=Gd,this.isItStopNode=Xd,this.replaceEntitiesValue=qd,this.readStopNodeData=xf,this.saveTextToParentTag=Wd,this.addChild=zd,this.ignoreAttributesFn=Cd(this.options.ignoreAttributes)}}function Nd(vf){const gf=Object.keys(vf);for(let Af=0;Af0)){If||(vf=this.replaceEntitiesValue(vf));const Ff=this.options.tagValueProcessor(gf,vf,Af,Of,Cf);return Ff==null?vf:typeof Ff!=typeof vf||Ff!==vf?Ff:this.options.trimValues?_f(vf,this.options.parseTagValue,this.options.numberParseOptions):vf.trim()===vf?_f(vf,this.options.parseTagValue,this.options.numberParseOptions):vf}}function Ud(vf){if(this.options.removeNSPrefix){const gf=vf.split(":"),Af=vf.charAt(0)==="/"?"/":"";if(gf[0]==="xmlns")return"";gf.length===2&&(vf=Af+gf[1])}return vf}const jd=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function Gd(vf,gf,Af){if(this.options.ignoreAttributes!==!0&&typeof vf=="string"){const Df=md.getAllMatches(vf,jd),Of=Df.length,Cf={};for(let If=0;If",Cf,"Closing Tag is not closed.");let sh=vf.substring(Cf+2,Ff).trim();if(this.options.removeNSPrefix){const Mh=sh.indexOf(":");Mh!==-1&&(sh=sh.substr(Mh+1))}this.options.transformTagName&&(sh=this.options.transformTagName(sh)),Af&&(Df=this.saveTextToParentTag(Df,Af,Of));const Sh=Of.substring(Of.lastIndexOf(".")+1);if(sh&&this.options.unpairedTags.indexOf(sh)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: `);let yh=0;Sh&&this.options.unpairedTags.indexOf(Sh)!==-1?(yh=Of.lastIndexOf(".",Of.lastIndexOf(".")-1),this.tagsNodeStack.pop()):yh=Of.lastIndexOf("."),Of=Of.substring(0,yh),Af=this.tagsNodeStack.pop(),Df="",Cf=Ff}else if(vf[Cf+1]==="?"){let Ff=mf(vf,Cf,!1,"?>");if(!Ff)throw new Error("Pi Tag is not closed.");if(Df=this.saveTextToParentTag(Df,Af,Of),!(this.options.ignoreDeclaration&&Ff.tagName==="?xml"||this.options.ignorePiTags)){const sh=new gd(Ff.tagName);sh.add(this.options.textNodeName,""),Ff.tagName!==Ff.tagExp&&Ff.attrExpPresent&&(sh[":@"]=this.buildAttributesMap(Ff.tagExp,Of,Ff.tagName)),this.addChild(Af,sh,Of)}Cf=Ff.closeIndex+1}else if(vf.substr(Cf+1,3)==="!--"){const Ff=Zd(vf,"-->",Cf+4,"Comment is not closed.");if(this.options.commentPropName){const sh=vf.substring(Cf+4,Ff-2);Df=this.saveTextToParentTag(Df,Af,Of),Af.add(this.options.commentPropName,[{[this.options.textNodeName]:sh}])}Cf=Ff}else if(vf.substr(Cf+1,2)==="!D"){const Ff=yd(vf,Cf);this.docTypeEntities=Ff.entities,Cf=Ff.i}else if(vf.substr(Cf+1,2)==="!["){const Ff=Zd(vf,"]]>",Cf,"CDATA is not closed.")-2,sh=vf.substring(Cf+9,Ff);Df=this.saveTextToParentTag(Df,Af,Of);let Sh=this.parseTextData(sh,Af.tagname,Of,!0,!1,!0,!0);Sh==null&&(Sh=""),this.options.cdataPropName?Af.add(this.options.cdataPropName,[{[this.options.textNodeName]:sh}]):Af.add(this.options.textNodeName,Sh),Cf=Ff+2}else{let Ff=mf(vf,Cf,this.options.removeNSPrefix),sh=Ff.tagName;const Sh=Ff.rawTagName;let yh=Ff.tagExp,Mh=Ff.attrExpPresent,lh=Ff.closeIndex;this.options.transformTagName&&(sh=this.options.transformTagName(sh)),Af&&Df&&Af.tagname!=="!xml"&&(Df=this.saveTextToParentTag(Df,Af,Of,!1));const rh=Af;if(rh&&this.options.unpairedTags.indexOf(rh.tagname)!==-1&&(Af=this.tagsNodeStack.pop(),Of=Of.substring(0,Of.lastIndexOf("."))),sh!==gf.tagname&&(Of+=Of?"."+sh:sh),this.isItStopNode(this.options.stopNodes,Of,sh)){let mh="";if(yh.length>0&&yh.lastIndexOf("/")===yh.length-1)sh[sh.length-1]==="/"?(sh=sh.substr(0,sh.length-1),Of=Of.substr(0,Of.length-1),yh=sh):yh=yh.substr(0,yh.length-1),Cf=Ff.closeIndex;else if(this.options.unpairedTags.indexOf(sh)!==-1)Cf=Ff.closeIndex;else{const Eh=this.readStopNodeData(vf,Sh,lh+1);if(!Eh)throw new Error(`Unexpected end of ${Sh}`);Cf=Eh.i,mh=Eh.tagContent}const xh=new gd(sh);sh!==yh&&Mh&&(xh[":@"]=this.buildAttributesMap(yh,Of,sh)),mh&&(mh=this.parseTextData(mh,sh,Of,!0,Mh,!0,!0)),Of=Of.substr(0,Of.lastIndexOf(".")),xh.add(this.options.textNodeName,mh),this.addChild(Af,xh,Of)}else{if(yh.length>0&&yh.lastIndexOf("/")===yh.length-1){sh[sh.length-1]==="/"?(sh=sh.substr(0,sh.length-1),Of=Of.substr(0,Of.length-1),yh=sh):yh=yh.substr(0,yh.length-1),this.options.transformTagName&&(sh=this.options.transformTagName(sh));const mh=new gd(sh);sh!==yh&&Mh&&(mh[":@"]=this.buildAttributesMap(yh,Of,sh)),this.addChild(Af,mh,Of),Of=Of.substr(0,Of.lastIndexOf("."))}else{const mh=new gd(sh);this.tagsNodeStack.push(Af),sh!==yh&&Mh&&(mh[":@"]=this.buildAttributesMap(yh,Of,sh)),this.addChild(Af,mh,Of),Af=mh}Df="",Cf=lh}}else Df+=vf[Cf];return gf.child};function zd(vf,gf,Af){const Df=this.options.updateTag(gf.tagname,Af,gf[":@"]);Df===!1||(typeof Df=="string"&&(gf.tagname=Df),vf.addChild(gf))}const qd=function(vf){if(this.options.processEntities){for(let gf in this.docTypeEntities){const Af=this.docTypeEntities[gf];vf=vf.replace(Af.regx,Af.val)}for(let gf in this.lastEntities){const Af=this.lastEntities[gf];vf=vf.replace(Af.regex,Af.val)}if(this.options.htmlEntities)for(let gf in this.htmlEntities){const Af=this.htmlEntities[gf];vf=vf.replace(Af.regex,Af.val)}vf=vf.replace(this.ampEntity.regex,this.ampEntity.val)}return vf};function Wd(vf,gf,Af,Df){return vf&&(Df===void 0&&(Df=Object.keys(gf.child).length===0),vf=this.parseTextData(vf,gf.tagname,Af,!1,gf[":@"]?Object.keys(gf[":@"]).length!==0:!1,Df),vf!==void 0&&vf!==""&&gf.add(this.options.textNodeName,vf),vf=""),vf}function Xd(vf,gf,Af){const Df="*."+Af;for(const Of in vf){const Cf=vf[Of];if(Df===Cf||gf===Cf)return!0}return!1}function Jd(vf,gf,Af=">"){let Df,Of="";for(let Cf=gf;Cf",Af,`${gf} is not closed`);if(vf.substring(Af+2,Cf).trim()===gf&&(Of--,Of===0))return{tagContent:vf.substring(Df,Af),i:Cf};Af=Cf}else if(vf[Af+1]==="?")Af=Zd(vf,"?>",Af+1,"StopNode is not closed.");else if(vf.substr(Af+1,3)==="!--")Af=Zd(vf,"-->",Af+3,"StopNode is not closed.");else if(vf.substr(Af+1,2)==="![")Af=Zd(vf,"]]>",Af,"StopNode is not closed.")-2;else{const Cf=mf(vf,Af,">");Cf&&((Cf&&Cf.tagName)===gf&&Cf.tagExp[Cf.tagExp.length-1]!=="/"&&Of++,Af=Cf.closeIndex)}}function _f(vf,gf,Af){if(gf&&typeof vf=="string"){const Df=vf.trim();return Df==="true"?!0:Df==="false"?!1:vd(vf,Af)}else return md.isExist(vf)?vf:""}ud.exports=wd},"./node_modules/fast-xml-parser/src/xmlparser/XMLParser.js":function(ud,dd,hd){const{buildOptions:md}=hd("./node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js"),gd=hd("./node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js"),{prettify:yd}=hd("./node_modules/fast-xml-parser/src/xmlparser/node2json.js"),vd=hd("./node_modules/fast-xml-parser/src/validator.js");class Cd{constructor(Nd){this.externalEntities={},this.options=md(Nd)}parse(Nd,Ld){if(typeof Nd!="string")if(Nd.toString)Nd=Nd.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(Ld){Ld===!0&&(Ld={});const Gd=vd.validate(Nd,Ld);if(Gd!==!0)throw Error(`${Gd.err.msg}:${Gd.err.line}:${Gd.err.col}`)}const Ud=new gd(this.options);Ud.addExternalEntities(this.externalEntities);const jd=Ud.parseXml(Nd);return this.options.preserveOrder||jd===void 0?jd:yd(jd,this.options)}addEntity(Nd,Ld){if(Ld.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(Nd.indexOf("&")!==-1||Nd.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for ' '");if(Ld==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[Nd]=Ld}}ud.exports=Cd},"./node_modules/fast-xml-parser/src/xmlparser/node2json.js":function(ud,dd,hd){function md(wd,Nd){return gd(wd,Nd)}function gd(wd,Nd,Ld){let Ud;const jd={};for(let Gd=0;Gd0&&(jd[Nd.textNodeName]=Ud):Ud!==void 0&&(jd[Nd.textNodeName]=Ud),jd}function yd(wd){const Nd=Object.keys(wd);for(let Ld=0;Ld0?this.child.push({[yd.tagname]:yd.child,":@":yd[":@"]}):this.child.push({[yd.tagname]:yd.child})}}ud.exports=md},"./node_modules/process/browser.js":function(ud,dd){var hd=ud.exports={},md,gd;function yd(){throw new Error("setTimeout has not been defined")}function vd(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?md=setTimeout:md=yd}catch{md=yd}try{typeof clearTimeout=="function"?gd=clearTimeout:gd=vd}catch{gd=vd}})();function Cd(Wd){if(md===setTimeout)return setTimeout(Wd,0);if((md===yd||!md)&&setTimeout)return md=setTimeout,setTimeout(Wd,0);try{return md(Wd,0)}catch{try{return md.call(null,Wd,0)}catch{return md.call(this,Wd,0)}}}function wd(Wd){if(gd===clearTimeout)return clearTimeout(Wd);if((gd===vd||!gd)&&clearTimeout)return gd=clearTimeout,clearTimeout(Wd);try{return gd(Wd)}catch{try{return gd.call(null,Wd)}catch{return gd.call(this,Wd)}}}var Nd=[],Ld=!1,Ud,jd=-1;function Gd(){!Ld||!Ud||(Ld=!1,Ud.length?Nd=Ud.concat(Nd):jd=-1,Nd.length&&Yd())}function Yd(){if(!Ld){var Wd=Cd(Gd);Ld=!0;for(var Xd=Nd.length;Xd;){for(Ud=Nd,Nd=[];++jd1)for(var Jd=1;Jd0&&Ud&&Nd[2]!==".")return Cd;if(!wd.leadingZeros&&jd.length>0&&!Ud&&Nd[1]!==".")return Cd;{const zd=Number(Nd),qd=""+zd;return qd.search(/[eE]/)!==-1||Yd?wd.eNotation?zd:Cd:Nd.indexOf(".")!==-1?qd==="0"&&Gd===""||qd===Gd||Ud&&qd==="-"+Gd?zd:Cd:jd?Gd===qd||Ud+Gd===qd?zd:Cd:Nd===qd||Nd===Ud+qd?zd:Cd}}else return Cd}}function vd(Cd){return Cd&&Cd.indexOf(".")!==-1&&(Cd=Cd.replace(/0+$/,""),Cd==="."?Cd="0":Cd[0]==="."?Cd="0"+Cd:Cd[Cd.length-1]==="."&&(Cd=Cd.substr(0,Cd.length-1))),Cd}ud.exports=yd},"./node_modules/webpack/buildin/amd-options.js":function(ud,dd){(function(hd){ud.exports=hd}).call(this,{})},"./node_modules/webpack/buildin/module.js":function(ud,dd){ud.exports=function(hd){return hd.webpackPolyfill||(hd.deprecate=function(){},hd.paths=[],hd.children||(hd.children=[]),Object.defineProperty(hd,"loaded",{enumerable:!0,get:function(){return hd.l}}),Object.defineProperty(hd,"id",{enumerable:!0,get:function(){return hd.i}}),hd.webpackPolyfill=1),hd}},"./package.json":function(ud){ud.exports=JSON.parse('{"name":"cos-js-sdk-v5","version":"1.8.7","description":"JavaScript SDK for [腾讯云对象存储](https://cloud.tencent.com/product/cos)","main":"dist/cos-js-sdk-v5.js","types":"index.d.ts","scripts":{"prettier":"prettier --write src demo/demo.js demo/CIDemos/*.js test/test.js server/sts.js lib/request.js index.d.ts","server":"node server/sts.js","dev":"cross-env NODE_ENV=development webpack -w --mode=development","build":"cross-env NODE_ENV=production webpack --mode=production","cos-auth.min.js":"uglifyjs ./demo/common/cos-auth.js -o ./demo/common/cos-auth.min.js -c -m","test":"jest --runInBand --coverage"},"repository":{"type":"git","url":"git+https://github.com/tencentyun/cos-js-sdk-v5.git"},"keywords":[],"author":"carsonxu","license":"ISC","bugs":{"url":"https://github.com/tencentyun/cos-js-sdk-v5/issues"},"homepage":"https://github.com/tencentyun/cos-js-sdk-v5#readme","dependencies":{"fast-xml-parser":"4.5.0"},"devDependencies":{"@babel/core":"7.17.9","@babel/plugin-transform-runtime":"7.18.10","@babel/preset-env":"7.16.11","babel-loader":"8.2.5","body-parser":"^1.18.3","cross-env":"^5.2.0","express":"^4.16.4","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","prettier":"^3.0.1","qcloud-cos-sts":"^3.0.2","request":"^2.87.0","terser-webpack-plugin":"4.2.3","uglifyjs":"^2.4.11","webpack":"4.46.0","webpack-cli":"4.10.0"}}')},"./src/advance.js":function(ud,dd,hd){var md=hd("./node_modules/@babel/runtime/helpers/typeof.js"),gd=hd("./src/session.js"),yd=hd("./src/async.js"),vd=hd("./src/event.js").EventProxy,Cd=hd("./src/util.js"),wd=hd("./src/tracker.js");function Nd(_f,vf){var gf=this,Af=new vd,Df=_f.TaskId,Of=_f.Bucket,Cf=_f.Region,If=_f.Key,Ff=_f.Body,sh=_f.ChunkSize||_f.SliceSize||gf.options.ChunkSize,Sh=_f.AsyncLimit,yh=_f.StorageClass,Mh=_f.ServerSideEncryption,lh,rh,mh=_f.onHashProgress,xh=_f.tracker;xh&&xh.setParams({chunkSize:sh}),Af.on("error",function(Eh){if(gf._isRunningTask(Df))return _f.UploadData.UploadId&&gd.removeUsing(_f.UploadData.UploadId),Eh.UploadId=_f.UploadData.UploadId||"",vf(Eh)}),Af.on("upload_complete",function(Eh){var kf=Cd.extend({UploadId:_f.UploadData.UploadId||""},Eh);vf(null,kf)}),Af.on("upload_slice_complete",function(Eh){var kf={};Cd.each(_f.Headers,function(Rf,_h){var Ph=_h.toLowerCase();(Ph.indexOf("x-cos-meta-")===0||["pic-operations","x-cos-callback","x-cos-callback-var","x-cos-return-body"].includes(Ph))&&(kf[_h]=Rf)}),zd.call(gf,{Bucket:Of,Region:Cf,Key:If,UploadId:Eh.UploadId,SliceList:Eh.SliceList,Headers:kf,tracker:xh},function(Rf,_h){if(gf._isRunningTask(Df)){if(gd.removeUsing(Eh.UploadId),Rf)return rh(null,!0),Af.emit("error",Rf);gd.removeUploadId.call(gf,Eh.UploadId),rh({loaded:lh,total:lh},!0),Af.emit("upload_complete",_h)}})}),Af.on("get_upload_data_finish",function(Eh){var kf=gd.getFileId(Ff,_f.ChunkSize,Of,If);kf&&gd.saveUploadId.call(gf,kf,Eh.UploadId,gf.options.UploadIdCacheLimit),gd.setUsing(Eh.UploadId),rh(null,!0),Gd.call(gf,{TaskId:Df,Bucket:Of,Region:Cf,Key:If,Body:Ff,FileSize:lh,SliceSize:sh,AsyncLimit:Sh,ServerSideEncryption:Mh,UploadData:Eh,Headers:_f.Headers,onProgress:rh,tracker:xh},function(Rf,_h){if(gf._isRunningTask(Df)){if(Rf)return rh(null,!0),Af.emit("error",Rf);Af.emit("upload_slice_complete",_h)}})}),Af.on("get_file_size_finish",function(){if(rh=Cd.throttleOnProgress.call(gf,lh,_f.onProgress),_f.UploadData.UploadId)Af.emit("get_upload_data_finish",_f.UploadData);else{var Eh=Cd.extend({TaskId:Df,Bucket:Of,Region:Cf,Key:If,Headers:_f.Headers,StorageClass:yh,Body:Ff,FileSize:lh,SliceSize:sh,onHashProgress:mh,tracker:xh},_f);Ld.call(gf,Eh,function(kf,Rf){if(gf._isRunningTask(Df)){if(kf)return Af.emit("error",kf);_f.UploadData.UploadId=Rf.UploadId,_f.UploadData.PartList=Rf.PartList,Af.emit("get_upload_data_finish",_f.UploadData)}})}}),lh=_f.ContentLength,delete _f.ContentLength,!_f.Headers&&(_f.Headers={}),Cd.each(_f.Headers,function(Eh,kf){kf.toLowerCase()==="content-length"&&delete _f.Headers[kf]}),function(){for(var Eh=[1,2,4,8,16,32,64,128,256,512,1024,2048,4096,5120],kf=1024*1024,Rf=0;Rfyh)return Rf(null,!1);if(_h>1){var Ph=Math.max(kf[0].Size,kf[1].Size);if(Ph!==Sh)return Rf(null,!1)}var sm=function th(oh){if(oh<_h){var Zh=kf[oh];rh(Zh.PartNumber,function(Sm,$h){$h&&$h.ETag===Zh.ETag&&$h.Size===Zh.Size?th(oh+1):Rf(null,!1)})}else Rf(null,!0)};sm(0)},xh=new vd;xh.on("error",function(Eh){if(If._isRunningTask(gf))return vf(Eh)}),xh.on("upload_id_available",function(Eh){var kf={},Rf=[];Cd.each(Eh.PartList,function(sm){kf[sm.PartNumber]=sm});for(var _h=1;_h<=yh;_h++){var Ph=kf[_h];Ph?(Ph.PartNumber=_h,Ph.Uploaded=!0):Ph={PartNumber:_h,ETag:null,Uploaded:!1},Rf.push(Ph)}Eh.PartList=Rf,vf(null,Eh)}),xh.on("no_available_upload_id",function(){if(If._isRunningTask(gf)){var Eh=Cd.extend({Bucket:Af,Region:Df,Key:Of,Query:Cd.clone(_f.Query),StorageClass:Cf,Body:_f.Body,calledBySdk:"sliceUploadFile",tracker:_f.tracker},_f),kf=Cd.clone(_f.Headers);delete kf["x-cos-mime-limit"],Eh.Headers=kf,If.multipartInit(Eh,function(Rf,_h){if(If._isRunningTask(gf)){if(Rf)return xh.emit("error",Rf);var Ph=_h.UploadId;if(!Ph)return vf(Cd.error(new Error("no such upload id")));xh.emit("upload_id_available",{UploadId:Ph,PartList:[]})}})}}),xh.on("has_and_check_upload_id",function(Eh){Eh=Eh.reverse(),yd.eachLimit(Eh,1,function(kf,Rf){if(If._isRunningTask(gf)){if(gd.using[kf]){Rf();return}jd.call(If,{Bucket:Af,Region:Df,Key:Of,UploadId:kf,tracker:_f.tracker},function(_h,Ph){if(If._isRunningTask(gf)){if(_h)return gd.removeUsing(kf),xh.emit("error",_h);var sm=Ph.PartList;sm.forEach(function(th){th.PartNumber*=1,th.Size*=1,th.ETag=th.ETag||""}),mh(sm,function(th,oh){if(If._isRunningTask(gf)){if(th)return xh.emit("error",th);oh?Rf({UploadId:kf,PartList:sm}):Rf()}})}})}},function(kf){If._isRunningTask(gf)&&(lh(null,!0),kf&&kf.UploadId?xh.emit("upload_id_available",kf):xh.emit("no_available_upload_id"))})}),xh.on("seek_local_avail_upload_id",function(Eh){var kf=gd.getFileId(_f.Body,_f.ChunkSize,Af,Of),Rf=gd.getUploadIdList.call(If,kf);if(!kf||!Rf){xh.emit("has_and_check_upload_id",Eh);return}var _h=function Ph(sm){if(sm>=Rf.length){xh.emit("has_and_check_upload_id",Eh);return}var th=Rf[sm];if(!Cd.isInArray(Eh,th)){gd.removeUploadId.call(If,th),Ph(sm+1);return}if(gd.using[th]){Ph(sm+1);return}jd.call(If,{Bucket:Af,Region:Df,Key:Of,UploadId:th,tracker:_f.tracker},function(oh,Zh){If._isRunningTask(gf)&&(oh?(gd.removeUploadId.call(If,th),Ph(sm+1)):xh.emit("upload_id_available",{UploadId:th,PartList:Zh.PartList}))})};_h(0)}),xh.on("get_remote_upload_id_list",function(){Ud.call(If,{Bucket:Af,Region:Df,Key:Of,tracker:_f.tracker},function(Eh,kf){if(If._isRunningTask(gf)){if(Eh)return xh.emit("error",Eh);var Rf=Cd.filter(kf.UploadList,function(sm){return sm.Key===Of&&(!Cf||sm.StorageClass.toUpperCase()===Cf.toUpperCase())}).reverse().map(function(sm){return sm.UploadId||sm.UploadID});if(Rf.length)xh.emit("seek_local_avail_upload_id",Rf);else{var _h=gd.getFileId(_f.Body,_f.ChunkSize,Af,Of),Ph;_h&&(Ph=gd.getUploadIdList.call(If,_h))&&Cd.each(Ph,function(sm){gd.removeUploadId.call(If,sm)}),xh.emit("no_available_upload_id")}}})}),xh.emit("get_remote_upload_id_list")}function Ud(_f,vf){var gf=this,Af=[],Df={Bucket:_f.Bucket,Region:_f.Region,Prefix:_f.Key,calledBySdk:_f.calledBySdk||"sliceUploadFile",tracker:_f.tracker},Of=function Cf(){gf.multipartList(Df,function(If,Ff){if(If)return vf(If);Af.push.apply(Af,Ff.Upload||[]),Ff.IsTruncated==="true"?(Df.KeyMarker=Ff.NextKeyMarker,Df.UploadIdMarker=Ff.NextUploadIdMarker,Cf()):vf(null,{UploadList:Af})})};Of()}function jd(_f,vf){var gf=this,Af=[],Df={Bucket:_f.Bucket,Region:_f.Region,Key:_f.Key,UploadId:_f.UploadId,calledBySdk:"sliceUploadFile",tracker:_f.tracker},Of=function Cf(){gf.multipartListPart(Df,function(If,Ff){if(If)return vf(If);Af.push.apply(Af,Ff.Part||[]),Ff.IsTruncated==="true"?(Df.PartNumberMarker=Ff.NextPartNumberMarker,Cf()):vf(null,{PartList:Af})})};Of()}function Gd(_f,vf){var gf=this,Af=_f.TaskId,Df=_f.Bucket,Of=_f.Region,Cf=_f.Key,If=_f.UploadData,Ff=_f.FileSize,sh=_f.SliceSize,Sh=Math.min(_f.AsyncLimit||gf.options.ChunkParallelLimit||1,256),yh=_f.Body,Mh=Math.ceil(Ff/sh),lh=0,rh=_f.ServerSideEncryption,mh=_f.Headers,xh=Cd.filter(If.PartList,function(kf){return kf.Uploaded&&(lh+=kf.PartNumber>=Mh&&Ff%sh||sh),!kf.Uploaded}),Eh=_f.onProgress;yd.eachLimit(xh,Sh,function(kf,Rf){if(gf._isRunningTask(Af)){var _h=kf.PartNumber,Ph=Math.min(Ff,kf.PartNumber*sh)-(kf.PartNumber-1)*sh,sm=0;Yd.call(gf,{TaskId:Af,Bucket:Df,Region:Of,Key:Cf,SliceSize:sh,FileSize:Ff,PartNumber:_h,ServerSideEncryption:rh,Body:yh,UploadData:If,Headers:mh,onProgress:function(oh){lh+=oh.loaded-sm,sm=oh.loaded,Eh({loaded:lh,total:Ff})},tracker:_f.tracker},function(th,oh){gf._isRunningTask(Af)&&(!th&&!oh.ETag&&(th='get ETag error, please add "ETag" to CORS ExposeHeader setting.( 获取ETag失败,请在CORS ExposeHeader设置中添加ETag,请参考文档:https://cloud.tencent.com/document/product/436/13318 )'),th?lh-=sm:(lh+=Ph-sm,kf.ETag=oh.ETag),Eh({loaded:lh,total:Ff}),Rf(th||null,oh))})}},function(kf){if(gf._isRunningTask(Af)){if(kf)return vf(kf);vf(null,{UploadId:If.UploadId,SliceList:If.PartList})}})}function Yd(_f,vf){var gf=this,Af=_f.TaskId,Df=_f.Bucket,Of=_f.Region,Cf=_f.Key,If=_f.FileSize,Ff=_f.Body,sh=_f.PartNumber*1,Sh=_f.SliceSize,yh=_f.ServerSideEncryption,Mh=_f.UploadData,lh=_f.Headers||{},rh=gf.options.ChunkRetryTimes+1,mh=Sh*(sh-1),xh=Sh,Eh=mh+Sh;Eh>If&&(Eh=If,xh=Eh-mh);var kf=["x-cos-traffic-limit","x-cos-mime-limit"],Rf={};Cd.each(lh,function(Ph,sm){kf.indexOf(sm)>-1&&(Rf[sm]=Ph)});var _h=Mh.PartList[sh-1];yd.retry(rh,function(Ph){gf._isRunningTask(Af)&&Cd.fileSlice(Ff,mh,Eh,!0,function(sm){gf.multipartUpload({TaskId:Af,Bucket:Df,Region:Of,Key:Cf,ContentLength:xh,PartNumber:sh,UploadId:Mh.UploadId,ServerSideEncryption:yh,Body:sm,Headers:Rf,onProgress:_f.onProgress,calledBySdk:"sliceUploadFile",tracker:_f.tracker},function(th,oh){if(gf._isRunningTask(Af))return th?Ph(th):(_h.Uploaded=!0,Ph(null,oh))})})},function(Ph,sm){if(gf._isRunningTask(Af))return vf(Ph,sm)})}function zd(_f,vf){var gf=_f.Bucket,Af=_f.Region,Df=_f.Key,Of=_f.UploadId,Cf=_f.SliceList,If=this,Ff=this.options.ChunkRetryTimes+1,sh=_f.Headers,Sh=Cf.map(function(yh){return{PartNumber:yh.PartNumber,ETag:yh.ETag}});yd.retry(Ff,function(yh){If.multipartComplete({Bucket:gf,Region:Af,Key:Df,UploadId:Of,Parts:Sh,Headers:sh,calledBySdk:"sliceUploadFile",tracker:_f.tracker},yh)},function(yh,Mh){vf(yh,Mh)})}function qd(_f,vf){var gf=_f.Bucket,Af=_f.Region,Df=_f.Key,Of=_f.UploadId,Cf=_f.Level||"task",If=_f.AsyncLimit,Ff=this,sh=new vd;if(sh.on("error",function(Sh){return vf(Sh)}),sh.on("get_abort_array",function(Sh){Wd.call(Ff,{Bucket:gf,Region:Af,Key:Df,Headers:_f.Headers,AsyncLimit:If,AbortArray:Sh},vf)}),Cf==="bucket")Ud.call(Ff,{Bucket:gf,Region:Af,calledBySdk:"abortUploadTask"},function(Sh,yh){if(Sh)return vf(Sh);sh.emit("get_abort_array",yh.UploadList||[])});else if(Cf==="file"){if(!Df)return vf(Cd.error(new Error("abort_upload_task_no_key")));Ud.call(Ff,{Bucket:gf,Region:Af,Key:Df,calledBySdk:"abortUploadTask"},function(Sh,yh){if(Sh)return vf(Sh);sh.emit("get_abort_array",yh.UploadList||[])})}else if(Cf==="task"){if(!Of)return vf(Cd.error(new Error("abort_upload_task_no_id")));if(!Df)return vf(Cd.error(new Error("abort_upload_task_no_key")));sh.emit("get_abort_array",[{Key:Df,UploadId:Of}])}else return vf(Cd.error(new Error("abort_unknown_level")))}function Wd(_f,vf){var gf=_f.Bucket,Af=_f.Region,Df=_f.Key,Of=_f.AbortArray,Cf=_f.AsyncLimit||1,If=this,Ff=0,sh=new Array(Of.length);yd.eachLimit(Of,Cf,function(Sh,yh){var Mh=Ff;if(Df&&Df!==Sh.Key){sh[Mh]={error:{KeyNotMatch:!0}},yh(null);return}var lh=Sh.UploadId||Sh.UploadID;If.multipartAbort({Bucket:gf,Region:Af,Key:Sh.Key,Headers:_f.Headers,UploadId:lh},function(rh){var mh={Bucket:gf,Region:Af,Key:Sh.Key,UploadId:lh};sh[Mh]={error:rh,task:mh},yh(null)}),Ff++},function(Sh){if(Sh)return vf(Sh);for(var yh=[],Mh=[],lh=0,rh=sh.length;lhAf?"sliceUploadFile":"putObject";_f.tracker=new wd({Beacon:gf.options.BeaconReporter,clsReporter:gf.options.ClsReporter,bucket:_f.Bucket,region:_f.Region,apiName:"uploadFile",realApi:sh,fileKey:_f.Key,fileSize:Cf,accelerate:Ff,deepTracker:gf.options.DeepTracker,customId:gf.options.CustomId,delay:gf.options.TrackerDelay})}Cd.each(_f,function(mh,xh){md(mh)!=="object"&&typeof mh!="function"&&(If[xh]=mh)});var Sh=_f.onTaskReady,yh=function(xh){If.TaskId=xh,Sh&&Sh(xh)};_f.onTaskReady=yh;var Mh=Cf>Af?"sliceUploadFile":"putObject",lh=_f.onFileFinish,rh=function(xh,Eh){_f.tracker&&_f.tracker.report(xh,Eh),lh&&lh(xh,Eh,If),vf&&vf(xh,Eh)};Df.push({api:Mh,params:_f,callback:rh}),gf._addTasks(Df)}function Jd(_f,vf){var gf=this,Af=_f.SliceSize===void 0?gf.options.SliceSize:_f.SliceSize,Df=0,Of=0,Cf=Cd.throttleOnProgress.call(gf,Of,_f.onProgress),If=_f.files.length,Ff=_f.onFileFinish,sh=Array(If),Sh=function(lh,rh,mh){Cf(null,!0),Ff&&Ff(lh,rh,mh),sh[mh.Index]={options:mh,error:lh,data:rh},--If<=0&&vf&&vf(null,{files:sh})},yh=[];Cd.each(_f.files,function(Mh,lh){(function(){var rh=Mh.Body,mh=rh.size||rh.length||0,xh={Index:lh,TaskId:""};if(!gf.options.UseRawKey&&Mh.Key&&Mh.Key.substr(0,1)==="/"&&(Mh.Key=Mh.Key.substr(1)),Df+=mh,gf.options.EnableReporter){var Eh=gf.options.UseAccelerate||typeof gf.options.Domain=="string"&&gf.options.Domain.includes("accelerate."),kf=mh>Af?"sliceUploadFile":"putObject";Mh.tracker=new wd({Beacon:gf.options.BeaconReporter,clsReporter:gf.options.ClsReporter,bucket:Mh.Bucket,region:Mh.Region,apiName:"uploadFiles",realApi:kf,fileKey:Mh.Key,fileSize:mh,accelerate:Eh,deepTracker:gf.options.DeepTracker,customId:gf.options.CustomId,delay:gf.options.TrackerDelay})}Cd.each(Mh,function($h,Vf){md($h)!=="object"&&typeof $h!="function"&&(xh[Vf]=$h)});var Rf=Mh.onTaskReady,_h=function(Vf){xh.TaskId=Vf,Rf&&Rf(Vf)};Mh.onTaskReady=_h;var Ph=0,sm=Mh.onProgress,th=function(Vf){Of=Of-Ph+Vf.loaded,Ph=Vf.loaded,sm&&sm(Vf),Cf({loaded:Of,total:Df})};Mh.onProgress=th;var oh=mh>Af?"sliceUploadFile":"putObject",Zh=Mh.onFileFinish,Sm=function(Vf,nh){Mh.tracker&&Mh.tracker.report(Vf,nh),Zh&&Zh(Vf,nh),Sh&&Sh(Vf,nh,xh)};yh.push({api:oh,params:Mh,callback:Sm})})()}),gf._addTasks(yh)}function Zd(_f,vf){var gf=new vd,Af=this,Df=_f.Bucket,Of=_f.Region,Cf=_f.Key,If=_f.CopySource,Ff=Cd.getSourceParams.call(this,If);if(!Ff){vf(Cd.error(new Error("CopySource format error")));return}var sh=Ff.Bucket,Sh=Ff.Region,yh=decodeURIComponent(Ff.Key),Mh=_f.CopySliceSize===void 0?Af.options.CopySliceSize:_f.CopySliceSize;Mh=Math.max(0,Mh);var lh=_f.CopyChunkSize||this.options.CopyChunkSize,rh=this.options.CopyChunkParallelLimit,mh=this.options.ChunkRetryTimes+1,xh=0,Eh=0,kf,Rf,_h={},Ph={},sm={};gf.on("copy_slice_complete",function(th){Cd.each(_f.Headers,function(Zh,Sm){Sm.toLowerCase().indexOf("x-cos-meta-")});var oh=Cd.map(th.PartList,function(Zh){return{PartNumber:Zh.PartNumber,ETag:Zh.ETag}});yd.retry(mh,function(Zh){Af.multipartComplete({Bucket:Df,Region:Of,Key:Cf,UploadId:th.UploadId,Parts:oh,tracker:_f.tracker,calledBySdk:"sliceCopyFile"},Zh)},function(Zh,Sm){if(gd.removeUsing(th.UploadId),Zh)return Rf(null,!0),vf(Zh);gd.removeUploadId(th.UploadId),Rf({loaded:kf,total:kf},!0),vf(null,Sm)})}),gf.on("get_copy_data_finish",function(th){var oh=gd.getCopyFileId(If,_h,lh,Df,Cf);oh&&gd.saveUploadId(oh,th.UploadId,Af.options.UploadIdCacheLimit),gd.setUsing(th.UploadId);var Zh=Cd.filter(th.PartList,function(Sm){return Sm.Uploaded&&(Eh+=Sm.PartNumber>=xh&&kf%lh||lh),!Sm.Uploaded});yd.eachLimit(Zh,rh,function(Sm,$h){var Vf=Sm.PartNumber,nh=Sm.CopySourceRange,Lh=Sm.end-Sm.start;yd.retry(mh,function(Ih){mf.call(Af,{Bucket:Df,Region:Of,Key:Cf,CopySource:If,UploadId:th.UploadId,PartNumber:Vf,CopySourceRange:nh,tracker:_f.tracker,calledBySdk:"sliceCopyFile"},Ih)},function(Ih,om){if(Ih)return $h(Ih);Eh+=Lh,Rf({loaded:Eh,total:kf}),Sm.ETag=om.ETag,$h(Ih||null,om)})},function(Sm){if(Sm)return gd.removeUsing(th.UploadId),Rf(null,!0),vf(Sm);gf.emit("copy_slice_complete",th)})}),gf.on("get_chunk_size_finish",function(){var th=function(){Af.multipartInit({Bucket:Df,Region:Of,Key:Cf,Headers:sm,tracker:_f.tracker,calledBySdk:"sliceCopyFile"},function(Vf,nh){if(Vf)return vf(Vf);_f.UploadId=nh.UploadId,gf.emit("get_copy_data_finish",{UploadId:_f.UploadId,PartList:_f.PartList})})},oh=gd.getCopyFileId(If,_h,lh,Df,Cf),Zh=gd.getUploadIdList(oh);if(!oh||!Zh)return th();var Sm=function $h(Vf){if(Vf>=Zh.length)return th();var nh=Zh[Vf];if(gd.using[nh])return $h(Vf+1);jd.call(Af,{Bucket:Df,Region:Of,Key:Cf,UploadId:nh,tracker:_f.tracker,calledBySdk:"sliceCopyFile"},function(Lh,Ih){if(Lh)gd.removeUploadId(nh),$h(Vf+1);else{if(gd.using[nh])return $h(Vf+1);var om={},zh=0;Cd.each(Ih.PartList,function(Om){var Im=parseInt(Om.Size),Zm=zh+Im-1;om[Om.PartNumber+"|"+zh+"|"+Zm]=Om.ETag,zh+=Im}),Cd.each(_f.PartList,function(Om){var Im=om[Om.PartNumber+"|"+Om.start+"|"+Om.end];Im&&(Om.ETag=Im,Om.Uploaded=!0)}),gf.emit("get_copy_data_finish",{UploadId:nh,PartList:_f.PartList})}})};Sm(0)}),gf.on("get_file_size_finish",function(){if(function(){for(var oh=[1,2,4,8,16,32,64,128,256,512,1024,2048,4096,5120],Zh=1024*1024,Sm=0;SmVf.length&&(Ph[$h]=Sm)}),gf.emit("get_file_size_finish")}})}function mf(_f,vf){var gf=_f.TaskId,Af=_f.Bucket,Df=_f.Region,Of=_f.Key,Cf=_f.CopySource,If=_f.UploadId,Ff=_f.PartNumber*1,sh=_f.CopySourceRange,Sh=this.options.ChunkRetryTimes+1,yh=this;yd.retry(Sh,function(Mh){yh.uploadPartCopy({TaskId:gf,Bucket:Af,Region:Df,Key:Of,CopySource:Cf,UploadId:If,PartNumber:Ff,CopySourceRange:sh,tracker:_f.tracker,calledBySdk:_f.calledBySdk},function(lh,rh){Mh(lh||null,rh)})},function(Mh,lh){return vf(Mh,lh)})}var xf={sliceUploadFile:Nd,abortUploadTask:qd,uploadFile:Xd,uploadFiles:Jd,sliceCopyFile:Zd};ud.exports.init=function(_f,vf){vf.transferToTaskMethod(xf,"sliceUploadFile"),Cd.each(xf,function(gf,Af){_f.prototype[Af]=Cd.apiWrapper(Af,gf)})}},"./src/async.js":function(ud,dd){var hd=function(vd,Cd,wd,Nd){if(Nd=Nd||function(){},!vd.length||Cd<=0)return Nd();var Ld=0,Ud=0,jd=0;(function Gd(){if(Ld>=vd.length)return Nd();for(;jd=vd.length?Nd():Gd())})})()},md=function(vd,Cd,wd){var Nd=function Ld(Ud){Cd(function(jd,Gd){jd&&Ud"u"?"undefined":md(location))==="object"&&location.protocol==="http:"?"http:":"https:"),hm=this.options.ServiceDomain,Fm=ih.AppId||this.options.appId,Pm=ih.Region;hm?(hm=hm.replace(/\{\{AppId\}\}/gi,Fm||"").replace(/\{\{Region\}\}/gi,Pm||"").replace(/\{\{.*?\}\}/gi,""),/^[a-zA-Z]+:\/\//.test(hm)||(hm=Qh+"//"+hm),hm.slice(-1)==="/"&&(hm=hm.slice(0,-1))):Pm?hm=Qh+"//cos."+Pm+".myqcloud.com":hm=Qh+"//service.cos.myqcloud.com";var Vm="",Gm=Pm?"cos."+Pm+".myqcloud.com":"service.cos.myqcloud.com",Tm=hm.replace(/^https?:\/\/([^/]+)(\/.*)?$/,"$1");Gm===Tm&&(Vm=Gm),Pg.call(this,{Action:"name/cos:GetService",url:hm,method:"GET",headers:ih.Headers,SignHost:Vm,tracker:ih.tracker},function(lg,fg){if(lg)return mm(lg);var zg=fg&&fg.ListAllMyBucketsResult&&fg.ListAllMyBucketsResult.Buckets&&fg.ListAllMyBucketsResult.Buckets.Bucket||[];zg=yd.isArray(zg)?zg:[zg];var Tg=fg&&fg.ListAllMyBucketsResult&&fg.ListAllMyBucketsResult.Owner||{};mm(null,{Buckets:zg,Owner:Tg,statusCode:fg.statusCode,headers:fg.headers})})}function Cd(ih,mm){var Qh=this,hm="";if(ih.BucketAZConfig){var Fm={BucketAZConfig:ih.BucketAZConfig};hm=yd.json2xml({CreateBucketConfiguration:Fm})}Pg.call(this,{Action:"name/cos:PutBucket",method:"PUT",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,body:hm,tracker:ih.tracker},function(Pm,Vm){if(Pm)return mm(Pm);var Gm=S_({protocol:Qh.options.Protocol,domain:Qh.options.Domain,bucket:ih.Bucket,region:ih.Region,isLocation:!0});mm(null,{Location:Gm,statusCode:Vm.statusCode,headers:Vm.headers})})}function wd(ih,mm){Pg.call(this,{Action:"name/cos:HeadBucket",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,method:"HEAD",tracker:ih.tracker},mm)}function Nd(ih,mm){var Qh={};Qh.prefix=ih.Prefix||"",Qh.delimiter=ih.Delimiter,Qh.marker=ih.Marker,Qh["max-keys"]=ih.MaxKeys,Qh["encoding-type"]=ih.EncodingType,Pg.call(this,{Action:"name/cos:GetBucket",ResourceKey:Qh.prefix,method:"GET",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,qs:Qh,tracker:ih.tracker},function(hm,Fm){if(hm)return mm(hm);var Pm=Fm.ListBucketResult||{},Vm=Pm.Contents||[],Gm=Pm.CommonPrefixes||[];Vm=yd.isArray(Vm)?Vm:[Vm],Gm=yd.isArray(Gm)?Gm:[Gm];var Tm=yd.clone(Pm);yd.extend(Tm,{Contents:Vm,CommonPrefixes:Gm,statusCode:Fm.statusCode,headers:Fm.headers}),mm(null,Tm)})}function Ld(ih,mm){Pg.call(this,{Action:"name/cos:DeleteBucket",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,method:"DELETE",tracker:ih.tracker},function(Qh,hm){if(Qh&&Qh.statusCode===204)return mm(null,{statusCode:Qh.statusCode});if(Qh)return mm(Qh);mm(null,{statusCode:hm.statusCode,headers:hm.headers})})}function Ud(ih,mm){var Qh=ih.Headers,hm="";if(ih.AccessControlPolicy){var Fm=yd.clone(ih.AccessControlPolicy||{}),Pm=Fm.Grants||Fm.Grant;Pm=yd.isArray(Pm)?Pm:[Pm],delete Fm.Grant,delete Fm.Grants,Fm.AccessControlList={Grant:Pm},hm=yd.json2xml({AccessControlPolicy:Fm}),Qh["Content-Type"]="application/xml",Qh["Content-MD5"]=yd.b64(yd.md5(hm))}yd.each(Qh,function(Vm,Gm){Gm.indexOf("x-cos-grant-")===0&&(Qh[Gm]=O_(Qh[Gm]))}),Pg.call(this,{Action:"name/cos:PutBucketACL",method:"PUT",Bucket:ih.Bucket,Region:ih.Region,headers:Qh,action:"acl",body:hm,tracker:ih.tracker},function(Vm,Gm){if(Vm)return mm(Vm);mm(null,{statusCode:Gm.statusCode,headers:Gm.headers})})}function jd(ih,mm){Pg.call(this,{Action:"name/cos:GetBucketACL",method:"GET",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"acl",tracker:ih.tracker},function(Qh,hm){if(Qh)return mm(Qh);var Fm=hm.AccessControlPolicy||{},Pm=Fm.Owner||{},Vm=Fm.AccessControlList.Grant||[];Vm=yd.isArray(Vm)?Vm:[Vm];var Gm=r_(Fm);hm.headers&&hm.headers["x-cos-acl"]&&(Gm.ACL=hm.headers["x-cos-acl"]),Gm=yd.extend(Gm,{Owner:Pm,Grants:Vm,statusCode:hm.statusCode,headers:hm.headers}),mm(null,Gm)})}function Gd(ih,mm){var Qh=ih.CORSConfiguration||{},hm=Qh.CORSRules||ih.CORSRules||[];hm=yd.clone(yd.isArray(hm)?hm:[hm]),yd.each(hm,function(Gm){yd.each(["AllowedOrigin","AllowedHeader","AllowedMethod","ExposeHeader"],function(Tm){var lg=Tm+"s",fg=Gm[lg]||Gm[Tm]||[];delete Gm[lg],Gm[Tm]=yd.isArray(fg)?fg:[fg]})});var Fm={CORSRule:hm};ih.ResponseVary&&(Fm.ResponseVary=ih.ResponseVary);var Pm=yd.json2xml({CORSConfiguration:Fm}),Vm=ih.Headers;Vm["Content-Type"]="application/xml",Vm["Content-MD5"]=yd.b64(yd.md5(Pm)),Pg.call(this,{Action:"name/cos:PutBucketCORS",method:"PUT",Bucket:ih.Bucket,Region:ih.Region,body:Pm,action:"cors",headers:Vm,tracker:ih.tracker},function(Gm,Tm){if(Gm)return mm(Gm);mm(null,{statusCode:Tm.statusCode,headers:Tm.headers})})}function Yd(ih,mm){Pg.call(this,{Action:"name/cos:GetBucketCORS",method:"GET",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"cors",tracker:ih.tracker},function(Qh,hm){if(Qh){if(Qh.statusCode===404&&Qh.error&&Qh.error.Code==="NoSuchCORSConfiguration"){var Fm={CORSRules:[],statusCode:Qh.statusCode};Qh.headers&&(Fm.headers=Qh.headers),mm(null,Fm)}else mm(Qh);return}var Pm=hm.CORSConfiguration||{},Vm=Pm.CORSRules||Pm.CORSRule||[];Vm=yd.clone(yd.isArray(Vm)?Vm:[Vm]);var Gm=Pm.ResponseVary;yd.each(Vm,function(Tm){yd.each(["AllowedOrigin","AllowedHeader","AllowedMethod","ExposeHeader"],function(lg){var fg=lg+"s",zg=Tm[fg]||Tm[lg]||[];delete Tm[lg],Tm[fg]=yd.isArray(zg)?zg:[zg]})}),mm(null,{CORSRules:Vm,ResponseVary:Gm,statusCode:hm.statusCode,headers:hm.headers})})}function zd(ih,mm){Pg.call(this,{Action:"name/cos:DeleteBucketCORS",method:"DELETE",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"cors",tracker:ih.tracker},function(Qh,hm){if(Qh&&Qh.statusCode===204)return mm(null,{statusCode:Qh.statusCode});if(Qh)return mm(Qh);mm(null,{statusCode:hm.statusCode||Qh.statusCode,headers:hm.headers})})}function qd(ih,mm){Pg.call(this,{Action:"name/cos:GetBucketLocation",method:"GET",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"location",tracker:ih.tracker},mm)}function Wd(ih,mm){var Qh=ih.Policy;try{typeof Qh=="string"&&(Qh=JSON.parse(Qh))}catch{}if(!Qh||typeof Qh=="string")return mm(yd.error(new Error("Policy format error")));var hm=JSON.stringify(Qh);Qh.version||(Qh.version="2.0");var Fm=ih.Headers;Fm["Content-Type"]="application/json",Fm["Content-MD5"]=yd.b64(yd.md5(hm)),Pg.call(this,{Action:"name/cos:PutBucketPolicy",method:"PUT",Bucket:ih.Bucket,Region:ih.Region,action:"policy",body:hm,headers:Fm,tracker:ih.tracker},function(Pm,Vm){if(Pm&&Pm.statusCode===204)return mm(null,{statusCode:Pm.statusCode});if(Pm)return mm(Pm);mm(null,{statusCode:Vm.statusCode,headers:Vm.headers})})}function Xd(ih,mm){Pg.call(this,{Action:"name/cos:GetBucketPolicy",method:"GET",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"policy",rawBody:!0,tracker:ih.tracker},function(Qh,hm){if(Qh)return Qh.statusCode&&Qh.statusCode===403?mm(yd.error(Qh,{ErrorStatus:"Access Denied"})):Qh.statusCode&&Qh.statusCode===405?mm(yd.error(Qh,{ErrorStatus:"Method Not Allowed"})):Qh.statusCode&&Qh.statusCode===404?mm(yd.error(Qh,{ErrorStatus:"Policy Not Found"})):mm(Qh);var Fm={};try{Fm=JSON.parse(hm.body)}catch{}mm(null,{Policy:Fm,statusCode:hm.statusCode,headers:hm.headers})})}function Jd(ih,mm){Pg.call(this,{Action:"name/cos:DeleteBucketPolicy",method:"DELETE",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"policy",tracker:ih.tracker},function(Qh,hm){if(Qh&&Qh.statusCode===204)return mm(null,{statusCode:Qh.statusCode});if(Qh)return mm(Qh);mm(null,{statusCode:hm.statusCode||Qh.statusCode,headers:hm.headers})})}function Zd(ih,mm){var Qh=ih.Tagging||{},hm=Qh.TagSet||Qh.Tags||ih.Tags||[];hm=yd.clone(yd.isArray(hm)?hm:[hm]);var Fm=yd.json2xml({Tagging:{TagSet:{Tag:hm}}}),Pm=ih.Headers;Pm["Content-Type"]="application/xml",Pm["Content-MD5"]=yd.b64(yd.md5(Fm)),Pg.call(this,{Action:"name/cos:PutBucketTagging",method:"PUT",Bucket:ih.Bucket,Region:ih.Region,body:Fm,action:"tagging",headers:Pm,tracker:ih.tracker},function(Vm,Gm){if(Vm&&Vm.statusCode===204)return mm(null,{statusCode:Vm.statusCode});if(Vm)return mm(Vm);mm(null,{statusCode:Gm.statusCode,headers:Gm.headers})})}function mf(ih,mm){Pg.call(this,{Action:"name/cos:GetBucketTagging",method:"GET",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"tagging",tracker:ih.tracker},function(Qh,hm){if(Qh){if(Qh.statusCode===404&&Qh.error&&(Qh.error==="Not Found"||Qh.error.Code==="NoSuchTagSet")){var Fm={Tags:[],statusCode:Qh.statusCode};Qh.headers&&(Fm.headers=Qh.headers),mm(null,Fm)}else mm(Qh);return}var Pm=[];try{Pm=hm.Tagging.TagSet.Tag||[]}catch{}Pm=yd.clone(yd.isArray(Pm)?Pm:[Pm]),mm(null,{Tags:Pm,statusCode:hm.statusCode,headers:hm.headers})})}function xf(ih,mm){Pg.call(this,{Action:"name/cos:DeleteBucketTagging",method:"DELETE",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"tagging",tracker:ih.tracker},function(Qh,hm){if(Qh&&Qh.statusCode===204)return mm(null,{statusCode:Qh.statusCode});if(Qh)return mm(Qh);mm(null,{statusCode:hm.statusCode,headers:hm.headers})})}function _f(ih,mm){var Qh=ih.LifecycleConfiguration||{},hm=Qh.Rules||ih.Rules||[];hm=yd.clone(hm);var Fm=yd.json2xml({LifecycleConfiguration:{Rule:hm}}),Pm=ih.Headers;Pm["Content-Type"]="application/xml",Pm["Content-MD5"]=yd.b64(yd.md5(Fm)),Pg.call(this,{Action:"name/cos:PutBucketLifecycle",method:"PUT",Bucket:ih.Bucket,Region:ih.Region,body:Fm,action:"lifecycle",headers:Pm,tracker:ih.tracker},function(Vm,Gm){if(Vm&&Vm.statusCode===204)return mm(null,{statusCode:Vm.statusCode});if(Vm)return mm(Vm);mm(null,{statusCode:Gm.statusCode,headers:Gm.headers})})}function vf(ih,mm){Pg.call(this,{Action:"name/cos:GetBucketLifecycle",method:"GET",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"lifecycle",tracker:ih.tracker},function(Qh,hm){if(Qh){if(Qh.statusCode===404&&Qh.error&&Qh.error.Code==="NoSuchLifecycleConfiguration"){var Fm={Rules:[],statusCode:Qh.statusCode};Qh.headers&&(Fm.headers=Qh.headers),mm(null,Fm)}else mm(Qh);return}var Pm=[];try{Pm=hm.LifecycleConfiguration.Rule||[]}catch{}Pm=yd.clone(yd.isArray(Pm)?Pm:[Pm]),mm(null,{Rules:Pm,statusCode:hm.statusCode,headers:hm.headers})})}function gf(ih,mm){Pg.call(this,{Action:"name/cos:DeleteBucketLifecycle",method:"DELETE",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"lifecycle",tracker:ih.tracker},function(Qh,hm){if(Qh&&Qh.statusCode===204)return mm(null,{statusCode:Qh.statusCode});if(Qh)return mm(Qh);mm(null,{statusCode:hm.statusCode,headers:hm.headers})})}function Af(ih,mm){if(!ih.VersioningConfiguration){mm(yd.error(new Error("missing param VersioningConfiguration")));return}var Qh=ih.VersioningConfiguration||{},hm=yd.json2xml({VersioningConfiguration:Qh}),Fm=ih.Headers;Fm["Content-Type"]="application/xml",Fm["Content-MD5"]=yd.b64(yd.md5(hm)),Pg.call(this,{Action:"name/cos:PutBucketVersioning",method:"PUT",Bucket:ih.Bucket,Region:ih.Region,body:hm,action:"versioning",headers:Fm,tracker:ih.tracker},function(Pm,Vm){if(Pm&&Pm.statusCode===204)return mm(null,{statusCode:Pm.statusCode});if(Pm)return mm(Pm);mm(null,{statusCode:Vm.statusCode,headers:Vm.headers})})}function Df(ih,mm){Pg.call(this,{Action:"name/cos:GetBucketVersioning",method:"GET",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"versioning",tracker:ih.tracker},function(Qh,hm){Qh||!hm.VersioningConfiguration&&(hm.VersioningConfiguration={}),mm(Qh,hm)})}function Of(ih,mm){var Qh=yd.clone(ih.ReplicationConfiguration),hm=yd.json2xml({ReplicationConfiguration:Qh});hm=hm.replace(/<(\/?)Rules>/gi,"<$1Rule>"),hm=hm.replace(/<(\/?)Tags>/gi,"<$1Tag>");var Fm=ih.Headers;Fm["Content-Type"]="application/xml",Fm["Content-MD5"]=yd.b64(yd.md5(hm)),Pg.call(this,{Action:"name/cos:PutBucketReplication",method:"PUT",Bucket:ih.Bucket,Region:ih.Region,body:hm,action:"replication",headers:Fm,tracker:ih.tracker},function(Pm,Vm){if(Pm&&Pm.statusCode===204)return mm(null,{statusCode:Pm.statusCode});if(Pm)return mm(Pm);mm(null,{statusCode:Vm.statusCode,headers:Vm.headers})})}function Cf(ih,mm){Pg.call(this,{Action:"name/cos:GetBucketReplication",method:"GET",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"replication",tracker:ih.tracker},function(Qh,hm){if(Qh){if(Qh.statusCode===404&&Qh.error&&(Qh.error==="Not Found"||Qh.error.Code==="ReplicationConfigurationnotFoundError")){var Fm={ReplicationConfiguration:{Rules:[]},statusCode:Qh.statusCode};Qh.headers&&(Fm.headers=Qh.headers),mm(null,Fm)}else mm(Qh);return}!hm.ReplicationConfiguration&&(hm.ReplicationConfiguration={}),hm.ReplicationConfiguration.Rule&&(hm.ReplicationConfiguration.Rules=yd.makeArray(hm.ReplicationConfiguration.Rule),delete hm.ReplicationConfiguration.Rule),mm(Qh,hm)})}function If(ih,mm){Pg.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"replication",tracker:ih.tracker},function(Qh,hm){if(Qh&&Qh.statusCode===204)return mm(null,{statusCode:Qh.statusCode});if(Qh)return mm(Qh);mm(null,{statusCode:hm.statusCode,headers:hm.headers})})}function Ff(ih,mm){if(!ih.WebsiteConfiguration){mm(yd.error(new Error("missing param WebsiteConfiguration")));return}var Qh=yd.clone(ih.WebsiteConfiguration||{}),hm=Qh.RoutingRules||Qh.RoutingRule||[];hm=yd.isArray(hm)?hm:[hm],delete Qh.RoutingRule,delete Qh.RoutingRules,hm.length&&(Qh.RoutingRules={RoutingRule:hm});var Fm=yd.json2xml({WebsiteConfiguration:Qh}),Pm=ih.Headers;Pm["Content-Type"]="application/xml",Pm["Content-MD5"]=yd.b64(yd.md5(Fm)),Pg.call(this,{Action:"name/cos:PutBucketWebsite",method:"PUT",Bucket:ih.Bucket,Region:ih.Region,body:Fm,action:"website",headers:Pm,tracker:ih.tracker},function(Vm,Gm){if(Vm&&Vm.statusCode===204)return mm(null,{statusCode:Vm.statusCode});if(Vm)return mm(Vm);mm(null,{statusCode:Gm.statusCode,headers:Gm.headers})})}function sh(ih,mm){Pg.call(this,{Action:"name/cos:GetBucketWebsite",method:"GET",Bucket:ih.Bucket,Region:ih.Region,Key:ih.Key,headers:ih.Headers,action:"website",tracker:ih.tracker},function(Qh,hm){if(Qh){if(Qh.statusCode===404&&Qh.error.Code==="NoSuchWebsiteConfiguration"){var Fm={WebsiteConfiguration:{},statusCode:Qh.statusCode};Qh.headers&&(Fm.headers=Qh.headers),mm(null,Fm)}else mm(Qh);return}var Pm=hm.WebsiteConfiguration||{};if(Pm.RoutingRules){var Vm=yd.clone(Pm.RoutingRules.RoutingRule||[]);Vm=yd.makeArray(Vm),Pm.RoutingRules=Vm}mm(null,{WebsiteConfiguration:Pm,statusCode:hm.statusCode,headers:hm.headers})})}function Sh(ih,mm){Pg.call(this,{Action:"name/cos:DeleteBucketWebsite",method:"DELETE",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"website",tracker:ih.tracker},function(Qh,hm){if(Qh&&Qh.statusCode===204)return mm(null,{statusCode:Qh.statusCode});if(Qh)return mm(Qh);mm(null,{statusCode:hm.statusCode,headers:hm.headers})})}function yh(ih,mm){if(!ih.RefererConfiguration){mm(yd.error(new Error("missing param RefererConfiguration")));return}var Qh=yd.clone(ih.RefererConfiguration||{}),hm=Qh.DomainList||{},Fm=hm.Domains||hm.Domain||[];Fm=yd.isArray(Fm)?Fm:[Fm],Fm.length&&(Qh.DomainList={Domain:Fm});var Pm=yd.json2xml({RefererConfiguration:Qh}),Vm=ih.Headers;Vm["Content-Type"]="application/xml",Vm["Content-MD5"]=yd.b64(yd.md5(Pm)),Pg.call(this,{Action:"name/cos:PutBucketReferer",method:"PUT",Bucket:ih.Bucket,Region:ih.Region,body:Pm,action:"referer",headers:Vm,tracker:ih.tracker},function(Gm,Tm){if(Gm&&Gm.statusCode===204)return mm(null,{statusCode:Gm.statusCode});if(Gm)return mm(Gm);mm(null,{statusCode:Tm.statusCode,headers:Tm.headers})})}function Mh(ih,mm){Pg.call(this,{Action:"name/cos:GetBucketReferer",method:"GET",Bucket:ih.Bucket,Region:ih.Region,Key:ih.Key,headers:ih.Headers,action:"referer",tracker:ih.tracker},function(Qh,hm){if(Qh){if(Qh.statusCode===404&&Qh.error.Code==="NoSuchRefererConfiguration"){var Fm={WebsiteConfiguration:{},statusCode:Qh.statusCode};Qh.headers&&(Fm.headers=Qh.headers),mm(null,Fm)}else mm(Qh);return}var Pm=hm.RefererConfiguration||{};if(Pm.DomainList){var Vm=yd.makeArray(Pm.DomainList.Domain||[]);Pm.DomainList={Domains:Vm}}mm(null,{RefererConfiguration:Pm,statusCode:hm.statusCode,headers:hm.headers})})}function lh(ih,mm){var Qh=ih.DomainConfiguration||{},hm=Qh.DomainRule||ih.DomainRule||[];hm=yd.clone(hm);var Fm=yd.json2xml({DomainConfiguration:{DomainRule:hm}}),Pm=ih.Headers;Pm["Content-Type"]="application/xml",Pm["Content-MD5"]=yd.b64(yd.md5(Fm)),Pg.call(this,{Action:"name/cos:PutBucketDomain",method:"PUT",Bucket:ih.Bucket,Region:ih.Region,body:Fm,action:"domain",headers:Pm,tracker:ih.tracker},function(Vm,Gm){if(Vm&&Vm.statusCode===204)return mm(null,{statusCode:Vm.statusCode});if(Vm)return mm(Vm);mm(null,{statusCode:Gm.statusCode,headers:Gm.headers})})}function rh(ih,mm){Pg.call(this,{Action:"name/cos:GetBucketDomain",method:"GET",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"domain",tracker:ih.tracker},function(Qh,hm){if(Qh)return mm(Qh);var Fm=[];try{Fm=hm.DomainConfiguration.DomainRule||[]}catch{}Fm=yd.clone(yd.isArray(Fm)?Fm:[Fm]),mm(null,{DomainRule:Fm,statusCode:hm.statusCode,headers:hm.headers})})}function mh(ih,mm){Pg.call(this,{Action:"name/cos:DeleteBucketDomain",method:"DELETE",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"domain",tracker:ih.tracker},function(Qh,hm){if(Qh&&Qh.statusCode===204)return mm(null,{statusCode:Qh.statusCode});if(Qh)return mm(Qh);mm(null,{statusCode:hm.statusCode,headers:hm.headers})})}function xh(ih,mm){var Qh=ih.OriginConfiguration||{},hm=Qh.OriginRule||ih.OriginRule||[];hm=yd.clone(hm);var Fm=yd.json2xml({OriginConfiguration:{OriginRule:hm}}),Pm=ih.Headers;Pm["Content-Type"]="application/xml",Pm["Content-MD5"]=yd.b64(yd.md5(Fm)),Pg.call(this,{Action:"name/cos:PutBucketOrigin",method:"PUT",Bucket:ih.Bucket,Region:ih.Region,body:Fm,action:"origin",headers:Pm,tracker:ih.tracker},function(Vm,Gm){if(Vm&&Vm.statusCode===204)return mm(null,{statusCode:Vm.statusCode});if(Vm)return mm(Vm);mm(null,{statusCode:Gm.statusCode,headers:Gm.headers})})}function Eh(ih,mm){Pg.call(this,{Action:"name/cos:GetBucketOrigin",method:"GET",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"origin",tracker:ih.tracker},function(Qh,hm){if(Qh)return mm(Qh);var Fm=[];try{Fm=hm.OriginConfiguration.OriginRule||[]}catch{}Fm=yd.clone(yd.isArray(Fm)?Fm:[Fm]),mm(null,{OriginRule:Fm,statusCode:hm.statusCode,headers:hm.headers})})}function kf(ih,mm){Pg.call(this,{Action:"name/cos:DeleteBucketOrigin",method:"DELETE",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"origin",tracker:ih.tracker},function(Qh,hm){if(Qh&&Qh.statusCode===204)return mm(null,{statusCode:Qh.statusCode});if(Qh)return mm(Qh);mm(null,{statusCode:hm.statusCode,headers:hm.headers})})}function Rf(ih,mm){var Qh=yd.json2xml({BucketLoggingStatus:ih.BucketLoggingStatus||""}),hm=ih.Headers;hm["Content-Type"]="application/xml",hm["Content-MD5"]=yd.b64(yd.md5(Qh)),Pg.call(this,{Action:"name/cos:PutBucketLogging",method:"PUT",Bucket:ih.Bucket,Region:ih.Region,body:Qh,action:"logging",headers:hm,tracker:ih.tracker},function(Fm,Pm){if(Fm&&Fm.statusCode===204)return mm(null,{statusCode:Fm.statusCode});if(Fm)return mm(Fm);mm(null,{statusCode:Pm.statusCode,headers:Pm.headers})})}function _h(ih,mm){Pg.call(this,{Action:"name/cos:GetBucketLogging",method:"GET",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"logging",tracker:ih.tracker},function(Qh,hm){if(Qh)return mm(Qh);mm(null,{BucketLoggingStatus:hm.BucketLoggingStatus,statusCode:hm.statusCode,headers:hm.headers})})}function Ph(ih,mm,Qh){var hm=yd.clone(mm.InventoryConfiguration);if(hm.OptionalFields){var Fm=hm.OptionalFields||[];hm.OptionalFields={Field:Fm}}if(hm.Destination&&hm.Destination.COSBucketDestination&&hm.Destination.COSBucketDestination.Encryption){var Pm=hm.Destination.COSBucketDestination.Encryption;Object.keys(Pm).indexOf("SSECOS")>-1&&(Pm["SSE-COS"]=Pm.SSECOS,delete Pm.SSECOS)}var Vm=yd.json2xml({InventoryConfiguration:hm}),Gm=mm.Headers;Gm["Content-Type"]="application/xml",Gm["Content-MD5"]=yd.b64(yd.md5(Vm));var Tm=ih==="PUT"?"name/cos:PutBucketInventory":"name/cos:PostBucketInventory";Pg.call(this,{Action:Tm,method:ih,Bucket:mm.Bucket,Region:mm.Region,body:Vm,action:"inventory",qs:{id:mm.Id},headers:Gm,tracker:mm.tracker},function(lg,fg){if(lg&&lg.statusCode===204)return Qh(null,{statusCode:lg.statusCode});if(lg)return Qh(lg);Qh(null,{statusCode:fg.statusCode,headers:fg.headers})})}function sm(ih,mm){return Ph.call(this,"PUT",ih,mm)}function th(ih,mm){return Ph.call(this,"POST",ih,mm)}function oh(ih,mm){Pg.call(this,{Action:"name/cos:GetBucketInventory",method:"GET",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"inventory",qs:{id:ih.Id},tracker:ih.tracker},function(Qh,hm){if(Qh)return mm(Qh);var Fm=hm.InventoryConfiguration;if(Fm&&Fm.OptionalFields&&Fm.OptionalFields.Field){var Pm=Fm.OptionalFields.Field;yd.isArray(Pm)||(Pm=[Pm]),Fm.OptionalFields=Pm}if(Fm.Destination&&Fm.Destination.COSBucketDestination&&Fm.Destination.COSBucketDestination.Encryption){var Vm=Fm.Destination.COSBucketDestination.Encryption;Object.keys(Vm).indexOf("SSE-COS")>-1&&(Vm.SSECOS=Vm["SSE-COS"],delete Vm["SSE-COS"])}mm(null,{InventoryConfiguration:Fm,statusCode:hm.statusCode,headers:hm.headers})})}function Zh(ih,mm){Pg.call(this,{Action:"name/cos:ListBucketInventory",method:"GET",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"inventory",qs:{"continuation-token":ih.ContinuationToken},tracker:ih.tracker},function(Qh,hm){if(Qh)return mm(Qh);var Fm=hm.ListInventoryConfigurationResult,Pm=Fm.InventoryConfiguration||[];Pm=yd.isArray(Pm)?Pm:[Pm],delete Fm.InventoryConfiguration,yd.each(Pm,function(Vm){if(Vm&&Vm.OptionalFields&&Vm.OptionalFields.Field){var Gm=Vm.OptionalFields.Field;yd.isArray(Gm)||(Gm=[Gm]),Vm.OptionalFields=Gm}if(Vm.Destination&&Vm.Destination.COSBucketDestination&&Vm.Destination.COSBucketDestination.Encryption){var Tm=Vm.Destination.COSBucketDestination.Encryption;Object.keys(Tm).indexOf("SSE-COS")>-1&&(Tm.SSECOS=Tm["SSE-COS"],delete Tm["SSE-COS"])}}),Fm.InventoryConfigurations=Pm,yd.extend(Fm,{statusCode:hm.statusCode,headers:hm.headers}),mm(null,Fm)})}function Sm(ih,mm){Pg.call(this,{Action:"name/cos:DeleteBucketInventory",method:"DELETE",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"inventory",qs:{id:ih.Id},tracker:ih.tracker},function(Qh,hm){if(Qh&&Qh.statusCode===204)return mm(null,{statusCode:Qh.statusCode});if(Qh)return mm(Qh);mm(null,{statusCode:hm.statusCode,headers:hm.headers})})}function $h(ih,mm){if(!ih.AccelerateConfiguration){mm(yd.error(new Error("missing param AccelerateConfiguration")));return}var Qh={AccelerateConfiguration:ih.AccelerateConfiguration||{}},hm=yd.json2xml(Qh),Fm={};Fm["Content-Type"]="application/xml",Fm["Content-MD5"]=yd.b64(yd.md5(hm)),Pg.call(this,{Action:"name/cos:PutBucketAccelerate",method:"PUT",Bucket:ih.Bucket,Region:ih.Region,body:hm,action:"accelerate",headers:Fm,tracker:ih.tracker},function(Pm,Vm){if(Pm)return mm(Pm);mm(null,{statusCode:Vm.statusCode,headers:Vm.headers})})}function Vf(ih,mm){Pg.call(this,{Action:"name/cos:GetBucketAccelerate",method:"GET",Bucket:ih.Bucket,Region:ih.Region,action:"accelerate",tracker:ih.tracker},function(Qh,hm){Qh||!hm.AccelerateConfiguration&&(hm.AccelerateConfiguration={}),mm(Qh,hm)})}function nh(ih,mm){var Qh=ih.ServerSideEncryptionConfiguration||{},hm=Qh.Rule||Qh.Rules||[],Fm=yd.json2xml({ServerSideEncryptionConfiguration:{Rule:hm}}),Pm=ih.Headers;Pm["Content-Type"]="application/xml",Pm["Content-MD5"]=yd.b64(yd.md5(Fm)),Pg.call(this,{Action:"name/cos:PutBucketEncryption",method:"PUT",Bucket:ih.Bucket,Region:ih.Region,body:Fm,action:"encryption",headers:Pm,tracker:ih.tracker},function(Vm,Gm){if(Vm&&Vm.statusCode===204)return mm(null,{statusCode:Vm.statusCode});if(Vm)return mm(Vm);mm(null,{statusCode:Gm.statusCode,headers:Gm.headers})})}function Lh(ih,mm){Pg.call(this,{Action:"name/cos:GetBucketEncryption",method:"GET",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"encryption",tracker:ih.tracker},function(Qh,hm){if(Qh){if(Qh.statusCode===404&&Qh.code==="NoSuchEncryptionConfiguration"){var Fm={EncryptionConfiguration:{Rules:[]},statusCode:Qh.statusCode};Qh.headers&&(Fm.headers=Qh.headers),mm(null,Fm)}else mm(Qh);return}var Pm=yd.makeArray(hm.EncryptionConfiguration&&hm.EncryptionConfiguration.Rule||[]);hm.EncryptionConfiguration={Rules:Pm},mm(Qh,hm)})}function Ih(ih,mm){Pg.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"encryption",tracker:ih.tracker},function(Qh,hm){if(Qh&&Qh.statusCode===204)return mm(null,{statusCode:Qh.statusCode});if(Qh)return mm(Qh);mm(null,{statusCode:hm.statusCode,headers:hm.headers})})}function om(ih,mm){Pg.call(this,{Action:"name/cos:HeadObject",method:"HEAD",Bucket:ih.Bucket,Region:ih.Region,Key:ih.Key,VersionId:ih.VersionId,headers:ih.Headers,tracker:ih.tracker},function(Qh,hm){if(Qh){var Fm=Qh.statusCode;return ih.Headers["If-Modified-Since"]&&Fm&&Fm===304?mm(null,{NotModified:!0,statusCode:Fm}):mm(Qh)}hm.ETag=yd.attr(hm.headers,"etag",""),mm(null,hm)})}function zh(ih,mm){var Qh={};Qh.prefix=ih.Prefix||"",Qh.delimiter=ih.Delimiter,Qh["key-marker"]=ih.KeyMarker,Qh["version-id-marker"]=ih.VersionIdMarker,Qh["max-keys"]=ih.MaxKeys,Qh["encoding-type"]=ih.EncodingType,Pg.call(this,{Action:"name/cos:GetBucketObjectVersions",ResourceKey:Qh.prefix,method:"GET",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,qs:Qh,action:"versions",tracker:ih.tracker},function(hm,Fm){if(hm)return mm(hm);var Pm=Fm.ListVersionsResult||{},Vm=Pm.DeleteMarker||[];Vm=yd.isArray(Vm)?Vm:[Vm];var Gm=Pm.Version||[];Gm=yd.isArray(Gm)?Gm:[Gm];var Tm=yd.clone(Pm);delete Tm.DeleteMarker,delete Tm.Version,yd.extend(Tm,{DeleteMarkers:Vm,Versions:Gm,statusCode:Fm.statusCode,headers:Fm.headers}),mm(null,Tm)})}function Om(ih,mm){if(this.options.ObjectKeySimplifyCheck){var Qh=yd.simplifyPath(ih.Key);if(Qh==="/"){mm(yd.error(new Error("The Getobject Key is illegal")));return}}var hm=ih.Query||{},Fm=ih.QueryString||"",Pm=yd.throttleOnProgress.call(this,0,ih.onProgress),Vm=ih.tracker;Vm&&Vm.setParams({signStartTime:new Date().getTime()}),hm["response-content-type"]=ih.ResponseContentType,hm["response-content-language"]=ih.ResponseContentLanguage,hm["response-expires"]=ih.ResponseExpires,hm["response-cache-control"]=ih.ResponseCacheControl,hm["response-content-disposition"]=ih.ResponseContentDisposition,hm["response-content-encoding"]=ih.ResponseContentEncoding,Pg.call(this,{Action:"name/cos:GetObject",method:"GET",Bucket:ih.Bucket,Region:ih.Region,Key:ih.Key,VersionId:ih.VersionId,DataType:ih.DataType,headers:ih.Headers,qs:hm,qsStr:Fm,rawBody:!0,onDownloadProgress:Pm,tracker:Vm},function(Gm,Tm){if(Pm(null,!0),Gm){var lg=Gm.statusCode;return ih.Headers["If-Modified-Since"]&&lg&&lg===304?mm(null,{NotModified:!0}):mm(Gm)}mm(null,{Body:Tm.body,ETag:yd.attr(Tm.headers,"etag",""),statusCode:Tm.statusCode,headers:Tm.headers})})}function Im(ih,mm){var Qh=this,hm=ih.ContentLength,Fm=yd.throttleOnProgress.call(Qh,hm,ih.onProgress),Pm=ih.Headers;!Pm["Cache-Control"]&&!Pm["cache-control"]&&(Pm["Cache-Control"]=""),!Pm["Content-Type"]&&!Pm["content-type"]&&(Pm["Content-Type"]=ih.Body&&ih.Body.type||"");var Vm=ih.UploadAddMetaMd5||Qh.options.UploadAddMetaMd5||Qh.options.UploadCheckContentMd5,Gm=ih.tracker;Vm&&Gm&&Gm.setParams({md5StartTime:new Date().getTime()}),yd.getBodyMd5(Vm,ih.Body,function(Tm){Tm&&(Gm&&Gm.setParams({md5EndTime:new Date().getTime()}),Qh.options.UploadCheckContentMd5&&(Pm["Content-MD5"]=yd.b64(Tm)),(ih.UploadAddMetaMd5||Qh.options.UploadAddMetaMd5)&&(Pm["x-cos-meta-md5"]=Tm)),ih.ContentLength!==void 0&&(Pm["Content-Length"]=ih.ContentLength),Fm(null,!0),Pg.call(Qh,{Action:"name/cos:PutObject",TaskId:ih.TaskId,method:"PUT",Bucket:ih.Bucket,Region:ih.Region,Key:ih.Key,headers:ih.Headers,qs:ih.Query,body:ih.Body,onProgress:Fm,tracker:Gm},function(lg,fg){if(lg)return Fm(null,!0),mm(lg);Fm({loaded:hm,total:hm},!0);var zg=S_({ForcePathStyle:Qh.options.ForcePathStyle,protocol:Qh.options.Protocol,domain:Qh.options.Domain,bucket:ih.Bucket,region:Qh.options.UseAccelerate?"accelerate":ih.Region,object:ih.Key});zg=zg.substr(zg.indexOf("://")+3),fg.Location=zg,fg.ETag=yd.attr(fg.headers,"etag",""),mm(null,fg)})},ih.onHashProgress)}function Zm(ih,mm){Pg.call(this,{Action:"name/cos:DeleteObject",method:"DELETE",Bucket:ih.Bucket,Region:ih.Region,Key:ih.Key,headers:ih.Headers,VersionId:ih.VersionId,action:ih.Recursive?"recursive":"",tracker:ih.tracker},function(Qh,hm){if(Qh){var Fm=Qh.statusCode;return Fm&&Fm===404?mm(null,{BucketNotFound:!0,statusCode:Fm}):mm(Qh)}mm(null,{statusCode:hm.statusCode,headers:hm.headers})})}function Lm(ih,mm){var Qh={};ih.VersionId&&(Qh.versionId=ih.VersionId),Pg.call(this,{Action:"name/cos:GetObjectACL",method:"GET",Bucket:ih.Bucket,Region:ih.Region,Key:ih.Key,headers:ih.Headers,qs:Qh,action:"acl",tracker:ih.tracker},function(hm,Fm){if(hm)return mm(hm);var Pm=Fm.AccessControlPolicy||{},Vm=Pm.Owner||{},Gm=Pm.AccessControlList&&Pm.AccessControlList.Grant||[];Gm=yd.isArray(Gm)?Gm:[Gm];var Tm=r_(Pm);delete Tm.GrantWrite,Fm.headers&&Fm.headers["x-cos-acl"]&&(Tm.ACL=Fm.headers["x-cos-acl"]),Tm=yd.extend(Tm,{Owner:Vm,Grants:Gm,statusCode:Fm.statusCode,headers:Fm.headers}),mm(null,Tm)})}function Wm(ih,mm){var Qh=ih.Headers,hm="";if(ih.AccessControlPolicy){var Fm=yd.clone(ih.AccessControlPolicy||{}),Pm=Fm.Grants||Fm.Grant;Pm=yd.isArray(Pm)?Pm:[Pm],delete Fm.Grant,delete Fm.Grants,Fm.AccessControlList={Grant:Pm},hm=yd.json2xml({AccessControlPolicy:Fm}),Qh["Content-Type"]="application/xml",Qh["Content-MD5"]=yd.b64(yd.md5(hm))}yd.each(Qh,function(Vm,Gm){Gm.indexOf("x-cos-grant-")===0&&(Qh[Gm]=O_(Qh[Gm]))}),Pg.call(this,{Action:"name/cos:PutObjectACL",method:"PUT",Bucket:ih.Bucket,Region:ih.Region,Key:ih.Key,action:"acl",headers:Qh,body:hm,tracker:ih.tracker},function(Vm,Gm){if(Vm)return mm(Vm);mm(null,{statusCode:Gm.statusCode,headers:Gm.headers})})}function ig(ih,mm){var Qh=ih.Headers;Qh.Origin=ih.Origin,Qh["Access-Control-Request-Method"]=ih.AccessControlRequestMethod,Qh["Access-Control-Request-Headers"]=ih.AccessControlRequestHeaders,Pg.call(this,{Action:"name/cos:OptionsObject",method:"OPTIONS",Bucket:ih.Bucket,Region:ih.Region,Key:ih.Key,headers:Qh,tracker:ih.tracker},function(hm,Fm){if(hm)return hm.statusCode&&hm.statusCode===403?mm(null,{OptionsForbidden:!0,statusCode:hm.statusCode}):mm(hm);var Pm=Fm.headers||{};mm(null,{AccessControlAllowOrigin:Pm["access-control-allow-origin"],AccessControlAllowMethods:Pm["access-control-allow-methods"],AccessControlAllowHeaders:Pm["access-control-allow-headers"],AccessControlExposeHeaders:Pm["access-control-expose-headers"],AccessControlMaxAge:Pm["access-control-max-age"],statusCode:Fm.statusCode,headers:Fm.headers})})}function yg(ih,mm){var Qh=this,hm=ih.Headers;!hm["Cache-Control"]&&!hm["cache-control"]&&(hm["Cache-Control"]="");var Fm=ih.CopySource||"",Pm=yd.getSourceParams.call(this,Fm);if(!Pm){mm(yd.error(new Error("CopySource format error")));return}var Vm=Pm.Bucket,Gm=Pm.Region,Tm=decodeURIComponent(Pm.Key);Pg.call(this,{Scope:[{action:"name/cos:GetObject",bucket:Vm,region:Gm,prefix:Tm},{action:"name/cos:PutObject",bucket:ih.Bucket,region:ih.Region,prefix:ih.Key}],method:"PUT",Bucket:ih.Bucket,Region:ih.Region,Key:ih.Key,VersionId:ih.VersionId,headers:ih.Headers,tracker:ih.tracker},function(lg,fg){if(lg)return mm(lg);var zg=yd.clone(fg.CopyObjectResult||{}),Tg=S_({ForcePathStyle:Qh.options.ForcePathStyle,protocol:Qh.options.Protocol,domain:Qh.options.Domain,bucket:ih.Bucket,region:ih.Region,object:ih.Key,isLocation:!0});yd.extend(zg,{Location:Tg,statusCode:fg.statusCode,headers:fg.headers}),mm(null,zg)})}function jh(ih,mm){var Qh=ih.CopySource||"",hm=yd.getSourceParams.call(this,Qh);if(!hm){mm(yd.error(new Error("CopySource format error")));return}var Fm=hm.Bucket,Pm=hm.Region,Vm=decodeURIComponent(hm.Key);Pg.call(this,{Scope:[{action:"name/cos:GetObject",bucket:Fm,region:Pm,prefix:Vm},{action:"name/cos:PutObject",bucket:ih.Bucket,region:ih.Region,prefix:ih.Key}],method:"PUT",Bucket:ih.Bucket,Region:ih.Region,Key:ih.Key,VersionId:ih.VersionId,qs:{partNumber:ih.PartNumber,uploadId:ih.UploadId},headers:ih.Headers,tracker:ih.tracker},function(Gm,Tm){if(Gm)return mm(Gm);var lg=yd.clone(Tm.CopyPartResult||{});yd.extend(lg,{statusCode:Tm.statusCode,headers:Tm.headers}),mm(null,lg)})}function Pf(ih,mm){var Qh=ih.Objects||[],hm=ih.Quiet;Qh=yd.isArray(Qh)?Qh:[Qh];var Fm=yd.json2xml({Delete:{Object:Qh,Quiet:hm||!1}}),Pm=ih.Headers;Pm["Content-Type"]="application/xml",Pm["Content-MD5"]=yd.b64(yd.md5(Fm));var Vm=yd.map(Qh,function(Gm){return{action:"name/cos:DeleteObject",bucket:ih.Bucket,region:ih.Region,prefix:Gm.Key}});Pg.call(this,{Scope:Vm,method:"POST",Bucket:ih.Bucket,Region:ih.Region,body:Fm,action:"delete",headers:Pm,tracker:ih.tracker},function(Gm,Tm){if(Gm)return mm(Gm);var lg=Tm.DeleteResult||{},fg=lg.Deleted||[],zg=lg.Error||[];fg=yd.isArray(fg)?fg:[fg],zg=yd.isArray(zg)?zg:[zg];var Tg=yd.clone(lg);yd.extend(Tg,{Error:zg,Deleted:fg,statusCode:Tm.statusCode,headers:Tm.headers}),mm(null,Tg)})}function $f(ih,mm){var Qh=ih.Headers;if(!ih.RestoreRequest){mm(yd.error(new Error("missing param RestoreRequest")));return}var hm=ih.RestoreRequest||{},Fm=yd.json2xml({RestoreRequest:hm});Qh["Content-Type"]="application/xml",Qh["Content-MD5"]=yd.b64(yd.md5(Fm)),Pg.call(this,{Action:"name/cos:RestoreObject",method:"POST",Bucket:ih.Bucket,Region:ih.Region,Key:ih.Key,VersionId:ih.VersionId,body:Fm,action:"restore",headers:Qh,tracker:ih.tracker},mm)}function Nh(ih,mm){var Qh=ih.Tagging||{},hm=Qh.TagSet||Qh.Tags||ih.Tags||[];hm=yd.clone(yd.isArray(hm)?hm:[hm]);var Fm=yd.json2xml({Tagging:{TagSet:{Tag:hm}}}),Pm=ih.Headers;Pm["Content-Type"]="application/xml",Pm["Content-MD5"]=yd.b64(yd.md5(Fm)),Pg.call(this,{Action:"name/cos:PutObjectTagging",method:"PUT",Bucket:ih.Bucket,Key:ih.Key,Region:ih.Region,body:Fm,action:"tagging",headers:Pm,VersionId:ih.VersionId,tracker:ih.tracker},function(Vm,Gm){if(Vm&&Vm.statusCode===204)return mm(null,{statusCode:Vm.statusCode});if(Vm)return mm(Vm);mm(null,{statusCode:Gm.statusCode,headers:Gm.headers})})}function Wh(ih,mm){Pg.call(this,{Action:"name/cos:GetObjectTagging",method:"GET",Key:ih.Key,Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"tagging",VersionId:ih.VersionId,tracker:ih.tracker},function(Qh,hm){if(Qh){if(Qh.statusCode===404&&Qh.error&&(Qh.error==="Not Found"||Qh.error.Code==="NoSuchTagSet")){var Fm={Tags:[],statusCode:Qh.statusCode};Qh.headers&&(Fm.headers=Qh.headers),mm(null,Fm)}else mm(Qh);return}var Pm=[];try{Pm=hm.Tagging.TagSet.Tag||[]}catch{}Pm=yd.clone(yd.isArray(Pm)?Pm:[Pm]),mm(null,{Tags:Pm,statusCode:hm.statusCode,headers:hm.headers})})}function _m(ih,mm){Pg.call(this,{Action:"name/cos:DeleteObjectTagging",method:"DELETE",Bucket:ih.Bucket,Region:ih.Region,Key:ih.Key,headers:ih.Headers,action:"tagging",VersionId:ih.VersionId,tracker:ih.tracker},function(Qh,hm){if(Qh&&Qh.statusCode===204)return mm(null,{statusCode:Qh.statusCode});if(Qh)return mm(Qh);mm(null,{statusCode:hm.statusCode,headers:hm.headers})})}function $m(ih,mm){var Qh=ih.SelectType;if(!Qh)return mm(yd.error(new Error("missing param SelectType")));var hm=ih.SelectRequest||{},Fm=yd.json2xml({SelectRequest:hm}),Pm=ih.Headers;Pm["Content-Type"]="application/xml",Pm["Content-MD5"]=yd.b64(yd.md5(Fm)),Pg.call(this,{Action:"name/cos:GetObject",method:"POST",Bucket:ih.Bucket,Region:ih.Region,Key:ih.Key,headers:ih.Headers,action:"select",qs:{"select-type":ih.SelectType},VersionId:ih.VersionId,body:Fm,DataType:"arraybuffer",rawBody:!0,tracker:ih.tracker},function(Vm,Gm){if(Vm&&Vm.statusCode===204)return mm(null,{statusCode:Vm.statusCode});if(Vm)return mm(Vm);var Tm=yd.parseSelectPayload(Gm.body);mm(null,{statusCode:Gm.statusCode,headers:Gm.headers,Body:Tm.body,Payload:Tm.payload})})}function Ym(ih,mm){var Qh=this,hm=ih.Headers,Fm=ih.tracker;!hm["Cache-Control"]&&!hm["cache-control"]&&(hm["Cache-Control"]=""),!hm["Content-Type"]&&!hm["content-type"]&&(hm["Content-Type"]=ih.Body&&ih.Body.type||"");var Pm=ih.Body&&(ih.UploadAddMetaMd5||Qh.options.UploadAddMetaMd5);Pm&&Fm&&Fm.setParams({md5StartTime:new Date().getTime()}),yd.getBodyMd5(Pm,ih.Body,function(Vm){Vm&&(ih.Headers["x-cos-meta-md5"]=Vm),Pm&&Fm&&Fm.setParams({md5EndTime:new Date().getTime()}),Pg.call(Qh,{Action:"name/cos:InitiateMultipartUpload",method:"POST",Bucket:ih.Bucket,Region:ih.Region,Key:ih.Key,action:"uploads",headers:ih.Headers,qs:ih.Query,tracker:Fm},function(Gm,Tm){if(Gm)return Fm&&Fm.parent&&Fm.parent.setParams({errorNode:"multipartInit"}),mm(Gm);if(Tm=yd.clone(Tm||{}),Tm&&Tm.InitiateMultipartUploadResult)return mm(null,yd.extend(Tm.InitiateMultipartUploadResult,{statusCode:Tm.statusCode,headers:Tm.headers}));mm(null,Tm)})},ih.onHashProgress)}function Ag(ih,mm){var Qh=this;yd.getFileSize("multipartUpload",ih,function(){var hm=ih.tracker,Fm=Qh.options.UploadCheckContentMd5;Fm&&hm&&hm.setParams({md5StartTime:new Date().getTime()}),yd.getBodyMd5(Fm,ih.Body,function(Pm){Pm&&(ih.Headers["Content-MD5"]=yd.b64(Pm)),Fm&&hm&&hm.setParams({md5EndTime:new Date().getTime()}),hm&&hm.setParams({partNumber:ih.PartNumber}),Pg.call(Qh,{Action:"name/cos:UploadPart",TaskId:ih.TaskId,method:"PUT",Bucket:ih.Bucket,Region:ih.Region,Key:ih.Key,qs:{partNumber:ih.PartNumber,uploadId:ih.UploadId},headers:ih.Headers,onProgress:ih.onProgress,body:ih.Body||null,tracker:hm},function(Vm,Gm){if(Vm)return hm&&hm.parent&&hm.parent.setParams({errorNode:"multipartUpload"}),mm(Vm);mm(null,{ETag:yd.attr(Gm.headers,"etag",""),statusCode:Gm.statusCode,headers:Gm.headers})})})})}function sg(ih,mm){for(var Qh=this,hm=ih.UploadId,Fm=ih.Parts,Pm=ih.tracker,Vm=0,Gm=Fm.length;Vm-1?zg(fg.Authorization):"sign="+encodeURIComponent(fg.Authorization)),fg.SecurityToken&&(Tg+="&x-cos-security-token="+fg.SecurityToken),fg.ClientIP&&(Tg+="&clientIP="+fg.ClientIP),fg.ClientUA&&(Tg+="&clientUA="+fg.ClientUA),fg.Token&&(Tg+="&token="+fg.Token),Pm&&(Tg+="&"+Pm),setTimeout(function(){mm(null,{Url:Tg})})}});return Tm?(Vm+="?"+Tm.Authorization+(Tm.SecurityToken?"&x-cos-security-token="+Tm.SecurityToken:""),Pm&&(Vm+="&"+Pm)):Pm&&(Vm+="?"+Pm),Vm}function r_(ih){var mm={GrantFullControl:[],GrantWrite:[],GrantRead:[],GrantReadAcp:[],GrantWriteAcp:[],ACL:""},Qh={FULL_CONTROL:"GrantFullControl",WRITE:"GrantWrite",READ:"GrantRead",READ_ACP:"GrantReadAcp",WRITE_ACP:"GrantWriteAcp"},hm=ih&&ih.AccessControlList||{},Fm=hm.Grant;Fm&&(Fm=yd.isArray(Fm)?Fm:[Fm]);var Pm={READ:0,WRITE:0,FULL_CONTROL:0};return Fm&&Fm.length&&yd.each(Fm,function(Vm){var Gm=Vm.Grantee.URI&&Vm.Grantee.URI.endsWith("/groups/global/AllUsers");Vm.Grantee.ID==="qcs::cam::anyone:anyone"||Gm?Pm[Vm.Permission]=1:Vm.Grantee.ID!==ih.Owner.ID&&mm[Qh[Vm.Permission]].push('id="'+Vm.Grantee.ID+'"')}),Pm.FULL_CONTROL||Pm.WRITE&&Pm.READ?mm.ACL="public-read-write":Pm.READ?mm.ACL="public-read":mm.ACL="private",yd.each(Qh,function(Vm){mm[Vm]=O_(mm[Vm].join(","))}),mm}function O_(ih){var mm=ih.split(","),Qh={},hm,Fm;for(hm=0;hm"u"?"undefined":md(location))==="object"&&location.protocol==="http:"?"http:":"https:");Pm||(["cn-south","cn-south-2","cn-north","cn-east","cn-southwest","sg"].indexOf(mm)>-1?Pm="{Region}.myqcloud.com":Pm="cos.{Region}.myqcloud.com",ih.ForcePathStyle||(Pm="{Bucket}."+Pm)),Pm=Pm.replace(/\{\{AppId\}\}/gi,Fm).replace(/\{\{Bucket\}\}/gi,hm).replace(/\{\{Region\}\}/gi,mm).replace(/\{\{.*?\}\}/gi,""),Pm=Pm.replace(/\{AppId\}/gi,Fm).replace(/\{BucketName\}/gi,hm).replace(/\{Bucket\}/gi,Qh).replace(/\{Region\}/gi,mm).replace(/\{.*?\}/gi,""),/^[a-zA-Z]+:\/\//.test(Pm)||(Pm=Gm+"//"+Pm),Pm.slice(-1)==="/"&&(Pm=Pm.slice(0,-1));var Tm=Pm;return ih.ForcePathStyle&&(Tm+="/"+Qh),Tm+="/",Vm&&(Tm+=yd.camSafeUrlEncode(Vm).replace(/%2F/g,"/")),ih.isLocation&&(Tm=Tm.replace(/^https?:\/\//,"")),Tm}var Q_=function(mm){if(!mm.Bucket||!mm.Region)return"";var Qh=mm.UseAccelerate===void 0?this.options.UseAccelerate:mm.UseAccelerate,hm=mm.Url||S_({ForcePathStyle:this.options.ForcePathStyle,protocol:this.options.Protocol,domain:this.options.Domain,bucket:mm.Bucket,region:Qh?"accelerate":mm.Region}),Fm=hm.replace(/^https?:\/\/([^/]+)(\/.*)?$/,"$1");return Fm};function t0(ih,mm){var Qh=yd.clone(ih.Headers),hm="";yd.each(Qh,function(g_,s_){(g_===""||["content-type","cache-control","expires"].indexOf(s_.toLowerCase())>-1)&&delete Qh[s_],s_.toLowerCase()==="host"&&(hm=g_)});var Fm=ih.ForceSignHost!==!1;!hm&&ih.SignHost&&Fm&&(Qh.Host=ih.SignHost);var Pm=!1,Vm=function(s_,Hh){Pm||(Pm=!0,Hh&&Hh.XCosSecurityToken&&!Hh.SecurityToken&&(Hh=yd.clone(Hh),Hh.SecurityToken=Hh.XCosSecurityToken,delete Hh.XCosSecurityToken),mm&&mm(s_,Hh))},Gm=this,Tm=ih.Bucket||"",lg=ih.Region||"",fg=ih.Key||"";Gm.options.ForcePathStyle&&Tm&&(fg=Tm+"/"+fg);var zg="/"+fg,Tg={},Xg=ih.Scope;if(!Xg){var D_=ih.Action||"",A_=ih.ResourceKey||ih.Key||"";Xg=ih.Scope||[{action:D_,bucket:Tm,region:lg,prefix:A_}]}var f_=yd.md5(JSON.stringify(Xg));Gm._StsCache=Gm._StsCache||[],function(){var g_,s_;for(g_=Gm._StsCache.length-1;g_>=0;g_--){s_=Gm._StsCache[g_];var Hh=Math.round(yd.getSkewTime(Gm.options.SystemClockOffset)/1e3)+30;if(s_.StartTime&&Hh=s_.ExpiredTime){Gm._StsCache.splice(g_,1);continue}if(!s_.ScopeLimit||s_.ScopeLimit&&s_.ScopeKey===f_){Tg=s_;break}}}();var Mg=function(){var s_="";Tg.StartTime&&ih.Expires?s_=Tg.StartTime+";"+(Tg.StartTime+ih.Expires*1):Tg.StartTime&&Tg.ExpiredTime&&(s_=Tg.StartTime+";"+Tg.ExpiredTime);var Hh=yd.getAuth({SecretId:Tg.TmpSecretId,SecretKey:Tg.TmpSecretKey,Method:ih.Method,Pathname:zg,Query:ih.Query,Headers:Qh,Expires:ih.Expires,UseRawKey:Gm.options.UseRawKey,SystemClockOffset:Gm.options.SystemClockOffset,KeyTime:s_,ForceSignHost:Fm}),Mm={Authorization:Hh,SecurityToken:Tg.SecurityToken||Tg.XCosSecurityToken||"",Token:Tg.Token||"",ClientIP:Tg.ClientIP||"",ClientUA:Tg.ClientUA||"",SignFrom:"client"};Vm(null,Mm)},V_=function(s_){if(s_.Authorization){var Hh=!1,Mm=s_.Authorization;if(Mm)if(Mm.indexOf(" ")>-1)Hh=!1;else if(Mm.indexOf("q-sign-algorithm=")>-1&&Mm.indexOf("q-ak=")>-1&&Mm.indexOf("q-sign-time=")>-1&&Mm.indexOf("q-key-time=")>-1&&Mm.indexOf("q-url-param-list=")>-1)Hh=!0;else try{Mm=atob(Mm),Mm.indexOf("a=")>-1&&Mm.indexOf("k=")>-1&&Mm.indexOf("t=")>-1&&Mm.indexOf("r=")>-1&&Mm.indexOf("b=")>-1&&(Hh=!0)}catch{}if(!Hh)return yd.error(new Error("getAuthorization callback params format error"))}else{if(!s_.TmpSecretId)return yd.error(new Error('getAuthorization callback params missing "TmpSecretId"'));if(!s_.TmpSecretKey)return yd.error(new Error('getAuthorization callback params missing "TmpSecretKey"'));if(!s_.SecurityToken&&!s_.XCosSecurityToken)return yd.error(new Error('getAuthorization callback params missing "SecurityToken"'));if(!s_.ExpiredTime)return yd.error(new Error('getAuthorization callback params missing "ExpiredTime"'));if(s_.ExpiredTime&&s_.ExpiredTime.toString().length!==10)return yd.error(new Error('getAuthorization callback params "ExpiredTime" should be 10 digits'));if(s_.StartTime&&s_.StartTime.toString().length!==10)return yd.error(new Error('getAuthorization callback params "StartTime" should be 10 StartTime'))}return!1};if(Tg.ExpiredTime&&Tg.ExpiredTime-yd.getSkewTime(Gm.options.SystemClockOffset)/1e3>60)Mg();else if(Gm.options.getAuthorization)Gm.options.getAuthorization.call(Gm,{Bucket:Tm,Region:lg,Method:ih.Method,Key:fg,Pathname:zg,Query:ih.Query,Headers:Qh,Scope:Xg,SystemClockOffset:Gm.options.SystemClockOffset,ForceSignHost:Fm},function(g_){typeof g_=="string"&&(g_={Authorization:g_});var s_=V_(g_);if(s_)return Vm(s_);g_.Authorization?Vm(null,g_):(Tg=g_||{},Tg.Scope=Xg,Tg.ScopeKey=f_,Gm._StsCache.push(Tg),Mg())});else if(Gm.options.getSTS)Gm.options.getSTS.call(Gm,{Bucket:Tm,Region:lg},function(g_){Tg=g_||{},Tg.Scope=Xg,Tg.ScopeKey=f_,Tg.TmpSecretId||(Tg.TmpSecretId=Tg.SecretId),Tg.TmpSecretKey||(Tg.TmpSecretKey=Tg.SecretKey);var s_=V_(Tg);if(s_)return Vm(s_);Gm._StsCache.push(Tg),Mg()});else return function(){var g_="";if(Gm.options.StartTime&&ih.Expires){if(Gm.options.StartTime.toString().length!==10)return Vm(yd.error(new Error('params "StartTime" should be 10 digits')));g_=Gm.options.StartTime+";"+(Gm.options.StartTime+ih.Expires*1)}else if(Gm.options.StartTime&&Gm.options.ExpiredTime){if(Gm.options.StartTime.toString().length!==10)return Vm(yd.error(new Error('params "StartTime" should be 10 digits')));if(Gm.options.ExpiredTime.toString().length!==10)return Vm(yd.error(new Error('params "ExpiredTime" should be 10 digits')));g_=Gm.options.StartTime+";"+Gm.options.ExpiredTime*1}var s_=yd.getAuth({SecretId:ih.SecretId||Gm.options.SecretId,SecretKey:ih.SecretKey||Gm.options.SecretKey,Method:ih.Method,Pathname:zg,Query:ih.Query,Headers:Qh,Expires:ih.Expires,KeyTime:g_,UseRawKey:Gm.options.UseRawKey,SystemClockOffset:Gm.options.SystemClockOffset,ForceSignHost:Fm}),Hh={Authorization:s_,SecurityToken:Gm.options.SecurityToken||Gm.options.XCosSecurityToken,SignFrom:"client"};return Vm(null,Hh),Hh}();return""}function R_(ih){var mm=this,Qh=!1,hm=!1,Fm=!1,Pm=ih.headers&&(ih.headers.date||ih.headers.Date)||ih.error&&ih.error.ServerTime;try{var Vm=ih.error.Code,Gm=ih.error.Message;(Vm==="RequestTimeTooSkewed"||Vm==="AccessDenied"&&Gm==="Request has expired")&&(hm=!0)}catch{}if(ih)if(hm&&Pm){var Tm=Date.parse(Pm);this.options.CorrectClockSkew&&Math.abs(yd.getSkewTime(this.options.SystemClockOffset)-Tm)>=3e4&&(console.error("error: Local time is too skewed."),this.options.SystemClockOffset=Tm-Date.now(),Qh=!0)}else Math.floor(ih.statusCode/100)===5?Qh=!0:ih.message==="CORS blocked or network error"&&(Fm=!0,Qh=mm.options.AutoSwitchHost);return{canRetry:Qh,networkError:Fm}}function P_(ih){var mm=ih.requestUrl,Qh=ih.clientCalcSign,hm=ih.networkError;if(!this.options.AutoSwitchHost||!mm||!Qh||!hm)return!1;var Fm=/^https?:\/\/[^\/]*\.cos\.[^\/]*\.myqcloud\.com(\/.*)?$/,Pm=/^https?:\/\/[^\/]*\.cos\.accelerate\.myqcloud\.com(\/.*)?$/,Vm=Fm.test(mm)&&!Pm.test(mm);return Vm}function Pg(ih,mm){var Qh=this;!ih.headers&&(ih.headers={}),!ih.qs&&(ih.qs={}),ih.VersionId&&(ih.qs.versionId=ih.VersionId),ih.qs=yd.clearKey(ih.qs),ih.headers&&(ih.headers=yd.clearKey(ih.headers)),ih.qs&&(ih.qs=yd.clearKey(ih.qs));var hm=yd.clone(ih.qs);ih.action&&(hm[ih.action]="");var Fm=ih.url||ih.Url,Pm=ih.SignHost||Q_.call(this,{Bucket:ih.Bucket,Region:ih.Region,Url:Fm}),Vm=ih.tracker,Gm=function Tm(lg){var fg=Qh.options.SystemClockOffset;Vm&&Vm.setParams({signStartTime:new Date().getTime(),httpRetryTimes:lg-1}),ih.SwitchHost&&(Pm=Pm.replace(/myqcloud.com/,"tencentcos.cn")),t0.call(Qh,{Bucket:ih.Bucket||"",Region:ih.Region||"",Method:ih.method,Key:ih.Key,Query:hm,Headers:ih.headers,SignHost:Pm,Action:ih.Action,ResourceKey:ih.ResourceKey,Scope:ih.Scope,ForceSignHost:Qh.options.ForceSignHost,SwitchHost:ih.SwitchHost},function(zg,Tg){if(zg){mm(zg);return}Vm&&Vm.setParams({signEndTime:new Date().getTime(),httpStartTime:new Date().getTime()}),ih.AuthData=Tg,$0.call(Qh,ih,function(Xg,D_){Vm&&Vm.setParams({httpEndTime:new Date().getTime()});var A_=!1,f_=!1;if(Xg){var Mg=R_.call(Qh,Xg);A_=Mg.canRetry||fg!==Qh.options.SystemClockOffset,f_=Mg.networkError}if(Xg&&lg<2&&A_){ih.headers&&(delete ih.headers.Authorization,delete ih.headers.token,delete ih.headers.clientIP,delete ih.headers.clientUA,ih.headers["x-cos-security-token"]&&delete ih.headers["x-cos-security-token"],ih.headers["x-ci-security-token"]&&delete ih.headers["x-ci-security-token"]);var V_=P_.call(Qh,{requestUrl:(Xg==null?void 0:Xg.url)||"",clientCalcSign:Tg.SignFrom==="client",networkError:f_});ih.SwitchHost=V_,ih.retry=!0,Tm(lg+1)}else mm(Xg,D_)})})};Gm(1)}function $0(ih,mm){var Qh=this,hm=ih.TaskId;if(!(hm&&!Qh._isRunningTask(hm))){var Fm=ih.Bucket,Pm=ih.Region,Vm=ih.Key,Gm=ih.method||"GET",Tm=ih.Url||ih.url,lg=ih.body,fg=ih.rawBody;Qh.options.UseAccelerate&&(Pm="accelerate"),Tm=Tm||S_({ForcePathStyle:Qh.options.ForcePathStyle,protocol:Qh.options.Protocol,domain:Qh.options.Domain,bucket:Fm,region:Pm,object:Vm}),ih.SwitchHost&&(Tm=Tm.replace(/myqcloud.com/,"tencentcos.cn"));var zg=Vm?Tm:"";ih.action&&(Tm=Tm+"?"+(yd.isIOS_QQ?"".concat(ih.action,"="):ih.action)),ih.qsStr&&(Tm.indexOf("?")>-1?Tm=Tm+"&"+ih.qsStr:Tm=Tm+"?"+ih.qsStr);var Tg={method:Gm,url:Tm,headers:ih.headers,qs:ih.qs,body:lg},Xg="x-cos-security-token";if(yd.isCIHost(Tm)&&(Xg="x-ci-security-token"),Tg.headers.Authorization=ih.AuthData.Authorization,ih.AuthData.Token&&(Tg.headers.token=ih.AuthData.Token),ih.AuthData.ClientIP&&(Tg.headers.clientIP=ih.AuthData.ClientIP),ih.AuthData.ClientUA&&(Tg.headers.clientUA=ih.AuthData.ClientUA),ih.AuthData.SecurityToken&&(Tg.headers[Xg]=ih.AuthData.SecurityToken),ih.Action&&(Tg.action=ih.Action),Tg.key=ih.Key||ih.ResourceKey,Tg.headers&&(Tg.headers=yd.clearKey(Tg.headers)),ih.retry&&(Tg.headers["x-cos-sdk-retry"]=!0),Tg=yd.clearKey(Tg),ih.onProgress&&typeof ih.onProgress=="function"){var D_=lg&&(lg.size||lg.length)||0;Tg.onProgress=function(Hh){if(!(hm&&!Qh._isRunningTask(hm))){var Mm=Hh?Hh.loaded:0;ih.onProgress({loaded:Mm,total:D_})}}}ih.onDownloadProgress&&(Tg.onDownloadProgress=ih.onDownloadProgress),ih.DataType&&(Tg.dataType=ih.DataType),this.options.Timeout&&(Tg.timeout=this.options.Timeout),Qh.options.ForcePathStyle&&(Tg.pathStyle=Qh.options.ForcePathStyle),Qh.emit("before-send",Tg);var A_=Tg.url.includes("accelerate."),f_=Tg.qs?Object.keys(Tg.qs).map(function(Hh){return"".concat(Hh,"=").concat(Tg.qs[Hh])}).join("&"):"",Mg=f_?Tg.url+"?"+f_:Tg.url;if(ih.tracker){var V_;ih.tracker.setParams({url:Mg,httpMethod:Tg.method,accelerate:A_,httpSize:((V_=Tg.body)===null||V_===void 0?void 0:V_.size)||0}),ih.tracker.parent&&!ih.tracker.parent.params.url&&ih.tracker.parent.setParams({url:zg,accelerate:A_})}var g_=(Qh.options.Request||gd)(Tg,function(Hh){if(!(Hh&&Hh.error==="abort")){var Mm={options:Tg,error:Hh&&Hh.error,statusCode:Hh&&Hh.statusCode||0,statusMessage:Hh&&Hh.statusMessage||"",headers:Hh&&Hh.headers||{},body:Hh&&Hh.body};Qh.emit("after-receive",Mm);var pg=Mm.error,Rg=Mm.body,og={statusCode:Mm.statusCode,statusMessage:Mm.statusMessage,headers:Mm.headers},Fg,y_=function(B0,K_){if(hm&&Qh.off("inner-kill-task",s_),!Fg){Fg=!0;var E0={};if(og&&og.statusCode&&(E0.statusCode=og.statusCode),og&&og.headers&&(E0.headers=og.headers),B0)Tg.url&&(E0.url=Tg.url),Tg.method&&(E0.method=Tg.method),B0=yd.extend(B0||{},E0),mm(B0,null);else{if(ih.Action==="name/cos:PutObject"){var d0={};for(var nb in ih.headers){var Pb=nb.toLowerCase();d0[Pb]=ih.headers[nb]}d0["x-cos-callback"]?K_.Error?(K_.CallbackError=yd.clone(K_.Error),delete K_.Error):K_.CallbackBody=yd.clone(K_):d0["x-cos-return-body"]&&(K_.Error?(K_.ReturnError=yd.clone(K_.Error),delete K_.Error):K_.ReturnBody=yd.clone(K_))}K_=yd.extend(K_||{},E0),mm(null,K_)}g_=null}};if(pg)return y_(yd.error(pg));var Y_=og.statusCode,s0=Math.floor(Y_/100)===2;if(fg){if(s0)return y_(null,{body:Rg});if(Rg instanceof Blob){yd.readAsBinaryString(Rg,function(u_){var B0=yd.parseResBody(u_),K_=B0.Error||B0;return y_(yd.error(new Error(K_.Message||"response body error"),{code:K_.Code,error:K_}))});return}}var L0=yd.parseResBody(Rg),rb=L0.Error||L0;s0?y_(null,L0):rb?y_(yd.error(new Error(rb.Message),{code:rb.Code,error:rb})):Y_?y_(yd.error(new Error(og.statusMessage),{code:""+Y_})):Y_&&y_(yd.error(new Error("statusCode error")))}}),s_=function Hh(Mm){Mm.TaskId===hm&&(g_&&g_.abort&&g_.abort(),Qh.off("inner-kill-task",Hh))};hm&&Qh.on("inner-kill-task",s_)}}var z0={getService:vd,putBucket:Cd,headBucket:wd,getBucket:Nd,deleteBucket:Ld,putBucketAcl:Ud,getBucketAcl:jd,putBucketCors:Gd,getBucketCors:Yd,deleteBucketCors:zd,getBucketLocation:qd,getBucketPolicy:Xd,putBucketPolicy:Wd,deleteBucketPolicy:Jd,putBucketTagging:Zd,getBucketTagging:mf,deleteBucketTagging:xf,putBucketLifecycle:_f,getBucketLifecycle:vf,deleteBucketLifecycle:gf,putBucketVersioning:Af,getBucketVersioning:Df,putBucketReplication:Of,getBucketReplication:Cf,deleteBucketReplication:If,putBucketWebsite:Ff,getBucketWebsite:sh,deleteBucketWebsite:Sh,putBucketReferer:yh,getBucketReferer:Mh,putBucketDomain:lh,getBucketDomain:rh,deleteBucketDomain:mh,putBucketOrigin:xh,getBucketOrigin:Eh,deleteBucketOrigin:kf,putBucketLogging:Rf,getBucketLogging:_h,putBucketInventory:sm,postBucketInventory:th,getBucketInventory:oh,listBucketInventory:Zh,deleteBucketInventory:Sm,putBucketAccelerate:$h,getBucketAccelerate:Vf,putBucketEncryption:nh,getBucketEncryption:Lh,deleteBucketEncryption:Ih,getObject:Om,headObject:om,listObjectVersions:zh,putObject:Im,deleteObject:Zm,getObjectAcl:Lm,putObjectAcl:Wm,optionsObject:ig,putObjectCopy:yg,deleteMultipleObject:Pf,restoreObject:$f,putObjectTagging:Nh,getObjectTagging:Wh,deleteObjectTagging:_m,selectObjectContent:$m,appendObject:p_,uploadPartCopy:jh,multipartInit:Ym,multipartUpload:Ag,multipartComplete:sg,multipartList:mg,multipartListPart:vg,multipartAbort:kg,request:Kg,getObjectUrl:v_,getAuth:l_};function c0(ih,mm,Qh){yd.each(["Cors","Acl"],function(hm){if(ih.slice(-hm.length)===hm){var Fm=ih.slice(0,-hm.length)+hm.toUpperCase(),Pm=yd.apiWrapper(ih,mm),Vm=!1;Qh[Fm]=function(){!Vm&&console.warn("warning: cos."+Fm+" has been deprecated. Please Use cos."+ih+" instead."),Vm=!0,Pm.apply(this,arguments)}}})}ud.exports.init=function(ih,mm){mm.transferToTaskMethod(z0,"putObject"),yd.each(z0,function(Qh,hm){ih.prototype[hm]=yd.apiWrapper(hm,Qh),c0(hm,Qh,ih.prototype)})}},"./src/cos.js":function(ud,dd,hd){var md=hd("./src/util.js"),gd=hd("./src/event.js"),yd=hd("./src/task.js"),vd=hd("./src/base.js"),Cd=hd("./src/advance.js"),wd=hd("./package.json"),Nd={AppId:"",SecretId:"",SecretKey:"",SecurityToken:"",StartTime:0,ExpiredTime:0,ChunkRetryTimes:2,FileParallelLimit:3,ChunkParallelLimit:3,ChunkSize:1024*1024,SliceSize:1024*1024,CopyChunkParallelLimit:20,CopyChunkSize:1024*1024*10,CopySliceSize:1024*1024*10,MaxPartNumber:1e4,ProgressInterval:1e3,Domain:"",ServiceDomain:"",Protocol:"",CompatibilityMode:!1,ForcePathStyle:!1,UseRawKey:!1,Timeout:0,CorrectClockSkew:!0,SystemClockOffset:0,UploadCheckContentMd5:!1,UploadQueueSize:1e4,UploadAddMetaMd5:!1,UploadIdCacheLimit:50,UseAccelerate:!1,ForceSignHost:!0,AutoSwitchHost:!0,CopySourceParser:null,ObjectKeySimplifyCheck:!0,DeepTracker:!1,TrackerDelay:5e3,CustomId:"",BeaconReporter:null,ClsReporter:null},Ld=function(jd){if(this.options=md.extend(md.clone(Nd),jd||{}),this.options.FileParallelLimit=Math.max(1,this.options.FileParallelLimit),this.options.ChunkParallelLimit=Math.max(1,this.options.ChunkParallelLimit),this.options.ChunkRetryTimes=Math.max(0,this.options.ChunkRetryTimes),this.options.ChunkSize=Math.max(1024*1024,this.options.ChunkSize),this.options.CopyChunkParallelLimit=Math.max(1,this.options.CopyChunkParallelLimit),this.options.CopyChunkSize=Math.max(1024*1024,this.options.CopyChunkSize),this.options.CopySliceSize=Math.max(0,this.options.CopySliceSize),this.options.MaxPartNumber=Math.max(1024,Math.min(1e4,this.options.MaxPartNumber)),this.options.Timeout=Math.max(0,this.options.Timeout),this.options.EnableReporter=this.options.BeaconReporter||this.options.ClsReporter,this.options.AppId&&console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g: "test-1250000000").'),this.options.SecretId&&this.options.SecretId.indexOf(" ")>-1&&(console.error("error: SecretId格式错误,请检查"),console.error("error: SecretId format is incorrect. Please check")),this.options.SecretKey&&this.options.SecretKey.indexOf(" ")>-1&&(console.error("error: SecretKey格式错误,请检查"),console.error("error: SecretKey format is incorrect. Please check")),md.isNode()&&(console.log("Tip: Next.js、Nuxt.js 等服务端渲染技术可正常使用JavaScript SDK,请忽略下方 nodejs 环境警告"),console.warn("warning: cos-js-sdk-v5 不支持 nodejs 环境使用,请改用 cos-nodejs-sdk-v5,参考文档: https://cloud.tencent.com/document/product/436/8629"),console.warn("warning: cos-js-sdk-v5 does not support nodejs environment. Please use cos-nodejs-sdk-v5 instead. See: https://cloud.tencent.com/document/product/436/8629")),this.options.ForcePathStyle)throw console.warn("cos-js-sdk-v5不再支持使用path-style,仅支持使用virtual-hosted-style,参考文档:https://cloud.tencent.com/document/product/436/96243"),new Error("ForcePathStyle is not supported");gd.init(this),yd.init(this)};vd.init(Ld,yd),Cd.init(Ld,yd),Ld.util={md5:md.md5,xml2json:md.xml2json,json2xml:md.json2xml,encodeBase64:md.encodeBase64},Ld.getAuthorization=md.getAuth,Ld.version=wd.version,ud.exports=Ld},"./src/event.js":function(ud,dd){var hd=function(yd){var vd={},Cd=function(Nd){return!vd[Nd]&&(vd[Nd]=[]),vd[Nd]};yd.on=function(wd,Nd){wd==="task-list-update"&&console.warn('warning: Event "'+wd+'" has been deprecated. Please use "list-update" instead.'),Cd(wd).push(Nd)},yd.off=function(wd,Nd){for(var Ld=Cd(wd),Ud=Ld.length-1;Ud>=0;Ud--)Nd===Ld[Ud]&&Ld.splice(Ud,1)},yd.emit=function(wd,Nd){for(var Ld=Cd(wd).map(function(jd){return jd}),Ud=0;Ud=0;qd--){var Wd=vd[qd][2];(!Wd||Wd+yd=0;Wd--){var Xd=vd[Wd];Xd[0]===Yd&&Xd[1]===zd&&vd.splice(Wd,1)}vd.unshift([Yd,zd,Math.round(Date.now()/1e3)]),vd.length>qd&&vd.splice(qd),Ud()}},removeUploadId:function(Yd){Ld.call(this),delete jd.using[Yd];for(var zd=vd.length-1;zd>=0;zd--)vd[zd][1]===Yd&&vd.splice(zd,1);Ud()}};ud.exports=jd},"./src/task.js":function(ud,dd,hd){var md=hd("./src/session.js"),gd=hd("./src/util.js"),yd={},vd=function(Nd,Ld){yd[Ld]=Nd[Ld],Nd[Ld]=function(Ud,jd){Ud.SkipTask?yd[Ld].call(this,Ud,jd):this._addTask(Ld,Ud,jd)}},Cd=function(Nd){var Ld=[],Ud={},jd=0,Gd=0,Yd=function(mf){var xf={id:mf.id,Bucket:mf.Bucket,Region:mf.Region,Key:mf.Key,FilePath:mf.FilePath,state:mf.state,loaded:mf.loaded,size:mf.size,speed:mf.speed,percent:mf.percent,hashPercent:mf.hashPercent,error:mf.error};return mf.FilePath&&(xf.FilePath=mf.FilePath),mf._custom&&(xf._custom=mf._custom),xf},zd=function(){var Zd,mf=function(){Zd=0,Nd.emit("task-list-update",{list:gd.map(Ld,Yd)}),Nd.emit("list-update",{list:gd.map(Ld,Yd)})};return function(){Zd||(Zd=setTimeout(mf))}}(),qd=function(){if(!(Ld.length<=Nd.options.UploadQueueSize)){for(var mf=0;mfNd.options.UploadQueueSize;){var xf=Ld[mf].state==="waiting"||Ld[mf].state==="checking"||Ld[mf].state==="uploading";!Ld[mf]||!xf?(Ud[Ld[mf].id]&&delete Ud[Ld[mf].id],Ld.splice(mf,1),Gd--):mf++}zd()}},Wd=function Zd(){if(!(jd>=Nd.options.FileParallelLimit)){for(;Ld[Gd]&&Ld[Gd].state!=="waiting";)Gd++;if(!(Gd>=Ld.length)){var mf=Ld[Gd];Gd++,jd++,mf.state="checking",mf.params.onTaskStart&&mf.params.onTaskStart(Yd(mf)),!mf.params.UploadData&&(mf.params.UploadData={});var xf=gd.formatParams(mf.api,mf.params);yd[mf.api].call(Nd,xf,function(_f,vf){Nd._isRunningTask(mf.id)&&((mf.state==="checking"||mf.state==="uploading")&&(mf.state=_f?"error":"success",_f&&(mf.error=_f),jd--,zd(),Zd(),mf.callback&&mf.callback(_f,vf),mf.state==="success"&&(mf.params&&(delete mf.params.UploadData,delete mf.params.Body,delete mf.params),delete mf.callback)),qd())}),zd(),setTimeout(Zd)}}},Xd=function(mf,xf){var _f=Ud[mf];if(_f){var vf=_f&&_f.state==="waiting",gf=_f&&(_f.state==="checking"||_f.state==="uploading");if(xf==="canceled"&&_f.state!=="canceled"||xf==="paused"&&vf||xf==="paused"&&gf){_f.state=xf,Nd.emit("inner-kill-task",{TaskId:mf,toState:xf});try{var Af=_f&&_f.params&&_f.params.UploadData.UploadId}catch{}xf==="canceled"&&Af&&md.removeUsing(Af),zd(),gf&&(jd--,Wd()),xf==="canceled"&&(_f.params&&(delete _f.params.UploadData,delete _f.params.Body,delete _f.params),delete _f.callback)}qd()}};Nd._addTasks=function(Zd){gd.each(Zd,function(mf){Nd._addTask(mf.api,mf.params,mf.callback,!0)}),zd()};var Jd=!0;Nd._addTask=function(Zd,mf,xf,_f){mf=gd.formatParams(Zd,mf);var vf=gd.uuid();mf.TaskId=vf,mf.onTaskReady&&mf.onTaskReady(vf),mf.TaskReady&&(mf.TaskReady(vf),Jd&&console.warn('warning: Param "TaskReady" has been deprecated. Please use "onTaskReady" instead.'),Jd=!1);var gf={params:mf,callback:xf,api:Zd,index:Ld.length,id:vf,Bucket:mf.Bucket,Region:mf.Region,Key:mf.Key,FilePath:mf.FilePath||"",state:"waiting",loaded:0,size:0,speed:0,percent:0,hashPercent:0,error:null,_custom:mf._custom},Af=mf.onHashProgress;mf.onHashProgress=function(Of){Nd._isRunningTask(gf.id)&&(gf.hashPercent=Of.percent,Af&&Af(Of),zd())};var Df=mf.onProgress;return mf.onProgress=function(Of){Nd._isRunningTask(gf.id)&&(gf.state==="checking"&&(gf.state="uploading"),gf.loaded=Of.loaded,gf.speed=Of.speed,gf.percent=Of.percent,Df&&Df(Of),zd())},gd.getFileSize(Zd,mf,function(Of,Cf){if(Of)return xf(gd.error(Of));Ud[vf]=gf,Ld.push(gf),gf.size=Cf,!_f&&zd(),Wd(),qd()}),vf},Nd._isRunningTask=function(Zd){var mf=Ud[Zd];return!!(mf&&(mf.state==="checking"||mf.state==="uploading"))},Nd.getTaskList=function(){return gd.map(Ld,Yd)},Nd.cancelTask=function(Zd){Xd(Zd,"canceled")},Nd.pauseTask=function(Zd){Xd(Zd,"paused")},Nd.restartTask=function(Zd){var mf=Ud[Zd];mf&&(mf.state==="paused"||mf.state==="error")&&(mf.state="waiting",zd(),Gd=Math.min(Gd,mf.index),Wd())},Nd.isUploadRunning=function(){return jd||Gd"u"?"undefined":yd(navigator))==="object"){var xf=navigator.connection||navigator.mozConnection||navigator.webkitConnection;return(xf==null?void 0:xf.type)||(xf==null?void 0:xf.effectiveType)||"unknown"}return"unknown"},getProtocol:function(){return(typeof location>"u"?"undefined":yd(location))==="object"?location.protocol.replace(/:/,""):"unknown protocol"},getOsType:function(){if((typeof navigator>"u"?"undefined":yd(navigator))!=="object")return"unknown os";var xf=navigator.userAgent.toLowerCase(),_f=/macintosh|mac os x/i.test(navigator.userAgent);return xf.indexOf("win32")>=0||xf.indexOf("wow32")>=0?"win32":xf.indexOf("win64")>=0||xf.indexOf("wow64")>=0?"win64":_f?"mac":"unknown os"},isMobile:function(){var xf=/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i;return!!((typeof navigator>"u"?"undefined":yd(navigator))==="object"&&navigator.userAgent.match(xf))},isAndroid:function(){var xf=/(Android|Adr|Linux)/i;return!!((typeof navigator>"u"?"undefined":yd(navigator))==="object"&&navigator.userAgent.match(xf))},isIOS:function(){var xf=/(iPhone|iPod|iPad|iOS)/i;return!!((typeof navigator>"u"?"undefined":yd(navigator))==="object"&&navigator.userAgent.match(xf))},isOtherMobile:function(){return Ud&&!isAndroid&&!isIOS},getUA:function(){if((typeof navigator>"u"?"undefined":yd(navigator))!=="object")return"unknown device";var xf=navigator.userAgent;return xf}},Ud=Ld.isMobile(),jd=Ld.isAndroid()?"android":Ld.isIOS?"ios":"other_mobile",Gd=Ld.getOsType(),Yd=Ud?jd:Gd,zd=Ld.getUA(),qd=Ld.getProtocol(),Wd=function(xf){return["putObject","sliceUploadFile","uploadFile","uploadFiles"].includes(xf)?"UploadTask":xf==="getObject"?"DownloadTask":["putObjectCopy","sliceCopyFile"].includes(xf)?"CopyTask":xf};function Xd(mf){return mf.replace(/([A-Z])/g,"_$1").toLowerCase()}function Jd(mf){var xf={},_f=["sdkVersionName","sdkVersionCode","osName","networkType","requestName","requestResult","bucket","region","appid","accelerate","url","host","requestPath","userAgent","networkProtocol","httpMethod","httpSize","httpSpeed","httpTookTime","httpMd5","httpSign","httpFullTime","httpDomain","partNumber","httpRetryTimes","customId","traceId","realApi"],vf=[].concat(_f,["errorNode","errorCode","errorName","errorMessage","errorRequestId","errorHttpCode","errorServiceName","errorType","fullError"]),gf=mf.requestResult==="Success"?_f:vf;for(var Af in mf)if(gf.includes(Af)){var Df=Xd(Af);xf[Df]=mf[Af]}return xf.request_name=mf.realApi?Wd(mf.realApi):mf.requestName,xf}var Zd=function(){function mf(xf){md(this,mf);var _f=xf.parent,vf=xf.traceId,gf=xf.bucket,Af=xf.region,Df=xf.apiName,Of=xf.realApi,Cf=xf.httpMethod,If=xf.fileKey,Ff=xf.fileSize,sh=xf.accelerate,Sh=xf.customId,yh=xf.delay,Mh=xf.deepTracker,lh=xf.Beacon,rh=xf.clsReporter,mh=gf&&gf.substr(gf.lastIndexOf("-")+1)||"";this.parent=_f,this.deepTracker=Mh,this.delay=yh,rh&&!this.clsReporter&&(this.clsReporter=rh),this.params={sdkVersionName:"cos-js-sdk-v5",sdkVersionCode:vd.version,osName:Yd,networkType:"",requestName:Df||"",requestResult:"",realApi:Of,bucket:gf,region:Af,accelerate:sh,httpMethod:Cf,url:"",host:"",httpDomain:"",requestPath:If||"",userAgent:zd,networkProtocol:qd,errorType:"",errorCode:"",errorName:"",errorMessage:"",errorRequestId:"",errorHttpCode:0,errorServiceName:"",errorNode:"",httpTookTime:0,httpSize:Ff||0,httpMd5:0,httpSign:0,httpFullTime:0,httpSpeed:0,md5StartTime:0,md5EndTime:0,signStartTime:0,signEndTime:0,httpStartTime:0,httpEndTime:0,startTime:new Date().getTime(),endTime:0,traceId:vf||Ld.getUid(),appid:mh,partNumber:0,httpRetryTimes:0,customId:Sh||"",partTime:0},lh&&(this.beacon=wd(lh,yh))}return gd(mf,[{key:"formatResult",value:function(_f,vf){var gf,Af,Df,Of,Cf,If,Ff=new Date().getTime(),sh=Ld.getNetType(),Sh=_f?(_f==null?void 0:_f.code)||(_f==null||(gf=_f.error)===null||gf===void 0?void 0:gf.code)||(_f==null||(Af=_f.error)===null||Af===void 0?void 0:Af.Code):"",yh=_f?(_f==null?void 0:_f.message)||(_f==null||(Df=_f.error)===null||Df===void 0?void 0:Df.message)||(_f==null||(Of=_f.error)===null||Of===void 0?void 0:Of.Message):"",Mh=yh,lh=_f?(_f==null?void 0:_f.resource)||(_f==null||(Cf=_f.error)===null||Cf===void 0?void 0:Cf.resource)||(_f==null||(If=_f.error)===null||If===void 0?void 0:If.Resource):"",rh=_f?_f==null?void 0:_f.statusCode:vf.statusCode,mh=_f?(_f==null?void 0:_f.headers)&&(_f==null?void 0:_f.headers["x-cos-request-id"]):(vf==null?void 0:vf.headers)&&(vf==null?void 0:vf.headers["x-cos-request-id"]),xh=_f?mh?"Server":"Client":"";this.params.requestName==="getObject"&&(this.params.httpSize=vf?vf.headers&&vf.headers["content-length"]:0);var Eh=this.params.realApi==="sliceUploadFile",kf=this.params.realApi==="sliceCopyFile";if(Eh||kf){var Rf=this.params.httpSize/1024/this.params.partTime;Object.assign(this.params,{httpSpeed:Rf<0?0:Rf.toFixed(3)})}else{var _h=Ff-this.params.startTime,Ph=this.params.httpEndTime-this.params.httpStartTime,sm=this.params.httpSize/1024/(Ph/1e3),th=this.params.md5EndTime-this.params.md5StartTime,oh=this.params.signEndTime-this.params.signStartTime;this.parent&&(this.parent.addParamValue("httpTookTime",Nd(Ph)),this.parent.addParamValue("httpFullTime",Nd(_h)),this.parent.addParamValue("httpMd5",Nd(th)),this.parent.addParamValue("httpSign",Nd(oh)),["multipartUpload","uploadPartCopy","putObjectCopy"].includes(this.params.requestName)&&this.parent.addParamValue("partTime",Nd(Ph))),Object.assign(this.params,{httpFullTime:Nd(_h),httpMd5:Nd(th),httpSign:Nd(oh),httpTookTime:Nd(Ph),httpSpeed:sm<0?0:sm.toFixed(3)})}if(Object.assign(this.params,{networkType:sh,requestResult:_f?"Failure":"Success",errorType:xh,errorCode:Sh,errorHttpCode:rh,errorName:Mh,errorMessage:yh,errorServiceName:lh,errorRequestId:mh}),_f&&(!Sh||!yh)&&(this.params.fullError=_f?JSON.stringify(_f):""),this.params.url){try{var Zh=/^http(s)?:\/\/(.*?)\//.exec(this.params.url);this.params.host=Zh[2]}catch{this.params.host=this.params.url}this.params.httpDomain=this.params.host}}},{key:"report",value:function(_f,vf){if(!(!this.beacon&&!this.clsReporter)){this.formatResult(_f,vf);var gf=Jd(this.params);this.beacon&&this.sendEventsToBeacon(gf),this.clsReporter&&this.sendEventsToCLS(gf)}}},{key:"setParams",value:function(_f){Object.assign(this.params,_f)}},{key:"addParamValue",value:function(_f,vf){this.params[_f]=(+this.params[_f]+ +vf).toFixed(3)}},{key:"sendEventsToBeacon",value:function(_f){var vf=this.params.requestName==="sliceUploadFile"||this.params.realApi==="sliceUploadFile";if(!(vf&&!this.deepTracker)){var gf="qcloud_track_cos_sdk";this.delay===0?this.beacon&&this.beacon.onDirectUserAction(gf,_f):this.beacon&&this.beacon.onUserAction(gf,_f)}}},{key:"sendEventsToCLS",value:function(_f){var vf=this.delay===0;this.clsReporter.log(_f,vf)}},{key:"generateSubTracker",value:function(_f){return Object.assign(_f,{parent:this,deepTracker:this.deepTracker,traceId:this.params.traceId,bucket:this.params.bucket,region:this.params.region,accelerate:this.params.accelerate,fileKey:this.params.requestPath,customId:this.params.customId,delay:this.delay,clsReporter:this.clsReporter}),new mf(_f)}}]),mf}();ud.exports=Zd},"./src/util.js":function(ud,dd,hd){(function(md){var gd=hd("./node_modules/@babel/runtime/helpers/typeof.js");function yd(Pf,$f){var Nh=typeof Symbol<"u"&&Pf[Symbol.iterator]||Pf["@@iterator"];if(!Nh){if(Array.isArray(Pf)||(Nh=vd(Pf))||$f){Nh&&(Pf=Nh);var Wh=0,_m=function(){};return{s:_m,n:function(){return Wh>=Pf.length?{done:!0}:{done:!1,value:Pf[Wh++]}},e:function(mg){throw mg},f:_m}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var $m,Ym=!0,Ag=!1;return{s:function(){Nh=Nh.call(Pf)},n:function(){var mg=Nh.next();return Ym=mg.done,mg},e:function(mg){Ag=!0,$m=mg},f:function(){try{Ym||Nh.return==null||Nh.return()}finally{if(Ag)throw $m}}}}function vd(Pf,$f){if(Pf){if(typeof Pf=="string")return Cd(Pf,$f);var Nh={}.toString.call(Pf).slice(8,-1);return Nh==="Object"&&Pf.constructor&&(Nh=Pf.constructor.name),Nh==="Map"||Nh==="Set"?Array.from(Pf):Nh==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Nh)?Cd(Pf,$f):void 0}}function Cd(Pf,$f){($f==null||$f>Pf.length)&&($f=Pf.length);for(var Nh=0,Wh=Array($f);Nh<$f;Nh++)Wh[Nh]=Pf[Nh];return Wh}var wd=hd("./lib/md5.js"),Nd=hd("./lib/crypto.js"),Ld=hd("./node_modules/fast-xml-parser/src/fxp.js"),Ud=Ld.XMLParser,jd=Ld.XMLBuilder,Gd=new Ud({ignoreDeclaration:!0,ignoreAttributes:!0,parseTagValue:!1}),Yd=new jd,zd=hd("./lib/base64.js"),qd=hd("./src/tracker.js"),Wd=function($f){var Nh=Gd.parse($f);return Nh},Xd=function($f){var Nh=Yd.build($f);return Nh};function Jd(Pf){return encodeURIComponent(Pf).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}function Zd(Pf,$f){var Nh=[];for(var Wh in Pf)Pf.hasOwnProperty(Wh)&&Nh.push($f?Jd(Wh).toLowerCase():Wh);return Nh.sort(function(_m,$m){return _m=_m.toLowerCase(),$m=$m.toLowerCase(),_m===$m?0:_m>$m?1:-1})}var mf=function($f,Nh){var Wh,_m,$m,Ym=[],Ag=Zd($f);for(Wh=0;Wh-1||xf.indexOf(_m)>-1)&&(Nh[Wh]=$f[Wh])}return Nh},vf=function($f){$f=$f||{};var Nh=$f.SecretId,Wh=$f.SecretKey,_m=$f.KeyTime,$m=($f.method||$f.Method||"get").toLowerCase(),Ym=rh($f.Query||$f.params||{}),Ag=_f(rh($f.Headers||$f.headers||{})),sg=$f.Key||"",mg;$f.UseRawKey?mg=$f.Pathname||$f.pathname||"/"+sg:(mg=$f.Pathname||$f.pathname||sg,mg.indexOf("/")!==0&&(mg="/"+mg));var vg=$f.ForceSignHost!==!1;if(!Ag.Host&&!Ag.host&&$f.Bucket&&$f.Region&&vg&&(Ag.Host=$f.Bucket+".cos."+$f.Region+".myqcloud.com"),!Nh)throw new Error("missing param SecretId");if(!Wh)throw new Error("missing param SecretKey");var kg=Math.round(Lh($f.SystemClockOffset)/1e3)-1,Kg=kg,p_=$f.Expires||$f.expires;p_===void 0?Kg+=900:Kg+=p_*1||0;var l_="sha1",v_=Nh,r_=_m||kg+";"+Kg,O_=_m||kg+";"+Kg,S_=Zd(Ag,!0).join(";").toLowerCase(),Q_=Zd(Ym,!0).join(";").toLowerCase(),t0=Nd.HmacSHA1(O_,Wh).toString(),R_=[$m,mg,jh.obj2str(Ym,!0),jh.obj2str(Ag,!0),""].join(` +`;function md(Nd,Ld){let Ud="";return Ld.format&&Ld.indentBy.length>0&&(Ud=hd),gd(Nd,Ld,"",Ud)}function gd(Nd,Ld,Ud,jd){let Gd="",Yd=!1;for(let zd=0;zd`,Yd=!1;continue}else if(Wd===Ld.commentPropName){Gd+=jd+``,Yd=!0;continue}else if(Wd[0]==="?"){const _f=vd(qd[":@"],Ld),vf=Wd==="?xml"?"":jd;let gf=qd[Wd][0][Ld.textNodeName];gf=gf.length!==0?" "+gf:"",Gd+=vf+`<${Wd}${gf}${_f}?>`,Yd=!0;continue}let Jd=jd;Jd!==""&&(Jd+=Ld.indentBy);const Zd=vd(qd[":@"],Ld),mf=jd+`<${Wd}${Zd}`,xf=gd(qd[Wd],Ld,Xd,Jd);Ld.unpairedTags.indexOf(Wd)!==-1?Ld.suppressUnpairedNode?Gd+=mf+">":Gd+=mf+"/>":(!xf||xf.length===0)&&Ld.suppressEmptyNode?Gd+=mf+"/>":xf&&xf.endsWith(">")?Gd+=mf+`>${xf}${jd}`:(Gd+=mf+">",xf&&jd!==""&&(xf.includes("/>")||xf.includes("`),Yd=!0}return Gd}function yd(Nd){const Ld=Object.keys(Nd);for(let Ud=0;Ud0&&Ld.processEntities)for(let Ud=0;Ud"){if(Wd?jd[Gd-1]==="-"&&jd[Gd-2]==="-"&&(Wd=!1,zd--):zd--,zd===0)break}else jd[Gd]==="["?qd=!0:Xd+=jd[Gd];if(zd!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:Yd,i:Gd}}function yd(jd,Gd){let Yd="";for(;Gd!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(gd,yd,vd){return gd}},md=function(gd){return Object.assign({},hd,gd)};dd.buildOptions=md,dd.defaultOptions=hd},"./node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js":function(ud,dd,hd){const md=hd("./node_modules/fast-xml-parser/src/util.js"),gd=hd("./node_modules/fast-xml-parser/src/xmlparser/xmlNode.js"),yd=hd("./node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js"),vd=hd("./node_modules/strnum/strnum.js"),Cd=hd("./node_modules/fast-xml-parser/src/ignoreAttributes.js");class wd{constructor(gf){this.options=gf,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(Af,Df)=>String.fromCharCode(Number.parseInt(Df,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(Af,Df)=>String.fromCharCode(Number.parseInt(Df,16))}},this.addExternalEntities=Nd,this.parseXml=Yd,this.parseTextData=Ld,this.resolveNameSpace=Ud,this.buildAttributesMap=Gd,this.isItStopNode=Xd,this.replaceEntitiesValue=qd,this.readStopNodeData=xf,this.saveTextToParentTag=Wd,this.addChild=zd,this.ignoreAttributesFn=Cd(this.options.ignoreAttributes)}}function Nd(vf){const gf=Object.keys(vf);for(let Af=0;Af0)){If||(vf=this.replaceEntitiesValue(vf));const Ff=this.options.tagValueProcessor(gf,vf,Af,kf,Cf);return Ff==null?vf:typeof Ff!=typeof vf||Ff!==vf?Ff:this.options.trimValues?_f(vf,this.options.parseTagValue,this.options.numberParseOptions):vf.trim()===vf?_f(vf,this.options.parseTagValue,this.options.numberParseOptions):vf}}function Ud(vf){if(this.options.removeNSPrefix){const gf=vf.split(":"),Af=vf.charAt(0)==="/"?"/":"";if(gf[0]==="xmlns")return"";gf.length===2&&(vf=Af+gf[1])}return vf}const jd=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function Gd(vf,gf,Af){if(this.options.ignoreAttributes!==!0&&typeof vf=="string"){const Df=md.getAllMatches(vf,jd),kf=Df.length,Cf={};for(let If=0;If",Cf,"Closing Tag is not closed.");let oh=vf.substring(Cf+2,Ff).trim();if(this.options.removeNSPrefix){const Mh=oh.indexOf(":");Mh!==-1&&(oh=oh.substr(Mh+1))}this.options.transformTagName&&(oh=this.options.transformTagName(oh)),Af&&(Df=this.saveTextToParentTag(Df,Af,kf));const Eh=kf.substring(kf.lastIndexOf(".")+1);if(oh&&this.options.unpairedTags.indexOf(oh)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: `);let _h=0;Eh&&this.options.unpairedTags.indexOf(Eh)!==-1?(_h=kf.lastIndexOf(".",kf.lastIndexOf(".")-1),this.tagsNodeStack.pop()):_h=kf.lastIndexOf("."),kf=kf.substring(0,_h),Af=this.tagsNodeStack.pop(),Df="",Cf=Ff}else if(vf[Cf+1]==="?"){let Ff=mf(vf,Cf,!1,"?>");if(!Ff)throw new Error("Pi Tag is not closed.");if(Df=this.saveTextToParentTag(Df,Af,kf),!(this.options.ignoreDeclaration&&Ff.tagName==="?xml"||this.options.ignorePiTags)){const oh=new gd(Ff.tagName);oh.add(this.options.textNodeName,""),Ff.tagName!==Ff.tagExp&&Ff.attrExpPresent&&(oh[":@"]=this.buildAttributesMap(Ff.tagExp,kf,Ff.tagName)),this.addChild(Af,oh,kf)}Cf=Ff.closeIndex+1}else if(vf.substr(Cf+1,3)==="!--"){const Ff=Zd(vf,"-->",Cf+4,"Comment is not closed.");if(this.options.commentPropName){const oh=vf.substring(Cf+4,Ff-2);Df=this.saveTextToParentTag(Df,Af,kf),Af.add(this.options.commentPropName,[{[this.options.textNodeName]:oh}])}Cf=Ff}else if(vf.substr(Cf+1,2)==="!D"){const Ff=yd(vf,Cf);this.docTypeEntities=Ff.entities,Cf=Ff.i}else if(vf.substr(Cf+1,2)==="!["){const Ff=Zd(vf,"]]>",Cf,"CDATA is not closed.")-2,oh=vf.substring(Cf+9,Ff);Df=this.saveTextToParentTag(Df,Af,kf);let Eh=this.parseTextData(oh,Af.tagname,kf,!0,!1,!0,!0);Eh==null&&(Eh=""),this.options.cdataPropName?Af.add(this.options.cdataPropName,[{[this.options.textNodeName]:oh}]):Af.add(this.options.textNodeName,Eh),Cf=Ff+2}else{let Ff=mf(vf,Cf,this.options.removeNSPrefix),oh=Ff.tagName;const Eh=Ff.rawTagName;let _h=Ff.tagExp,Mh=Ff.attrExpPresent,lh=Ff.closeIndex;this.options.transformTagName&&(oh=this.options.transformTagName(oh)),Af&&Df&&Af.tagname!=="!xml"&&(Df=this.saveTextToParentTag(Df,Af,kf,!1));const rh=Af;if(rh&&this.options.unpairedTags.indexOf(rh.tagname)!==-1&&(Af=this.tagsNodeStack.pop(),kf=kf.substring(0,kf.lastIndexOf("."))),oh!==gf.tagname&&(kf+=kf?"."+oh:oh),this.isItStopNode(this.options.stopNodes,kf,oh)){let mh="";if(_h.length>0&&_h.lastIndexOf("/")===_h.length-1)oh[oh.length-1]==="/"?(oh=oh.substr(0,oh.length-1),kf=kf.substr(0,kf.length-1),_h=oh):_h=_h.substr(0,_h.length-1),Cf=Ff.closeIndex;else if(this.options.unpairedTags.indexOf(oh)!==-1)Cf=Ff.closeIndex;else{const Sh=this.readStopNodeData(vf,Eh,lh+1);if(!Sh)throw new Error(`Unexpected end of ${Eh}`);Cf=Sh.i,mh=Sh.tagContent}const xh=new gd(oh);oh!==_h&&Mh&&(xh[":@"]=this.buildAttributesMap(_h,kf,oh)),mh&&(mh=this.parseTextData(mh,oh,kf,!0,Mh,!0,!0)),kf=kf.substr(0,kf.lastIndexOf(".")),xh.add(this.options.textNodeName,mh),this.addChild(Af,xh,kf)}else{if(_h.length>0&&_h.lastIndexOf("/")===_h.length-1){oh[oh.length-1]==="/"?(oh=oh.substr(0,oh.length-1),kf=kf.substr(0,kf.length-1),_h=oh):_h=_h.substr(0,_h.length-1),this.options.transformTagName&&(oh=this.options.transformTagName(oh));const mh=new gd(oh);oh!==_h&&Mh&&(mh[":@"]=this.buildAttributesMap(_h,kf,oh)),this.addChild(Af,mh,kf),kf=kf.substr(0,kf.lastIndexOf("."))}else{const mh=new gd(oh);this.tagsNodeStack.push(Af),oh!==_h&&Mh&&(mh[":@"]=this.buildAttributesMap(_h,kf,oh)),this.addChild(Af,mh,kf),Af=mh}Df="",Cf=lh}}else Df+=vf[Cf];return gf.child};function zd(vf,gf,Af){const Df=this.options.updateTag(gf.tagname,Af,gf[":@"]);Df===!1||(typeof Df=="string"&&(gf.tagname=Df),vf.addChild(gf))}const qd=function(vf){if(this.options.processEntities){for(let gf in this.docTypeEntities){const Af=this.docTypeEntities[gf];vf=vf.replace(Af.regx,Af.val)}for(let gf in this.lastEntities){const Af=this.lastEntities[gf];vf=vf.replace(Af.regex,Af.val)}if(this.options.htmlEntities)for(let gf in this.htmlEntities){const Af=this.htmlEntities[gf];vf=vf.replace(Af.regex,Af.val)}vf=vf.replace(this.ampEntity.regex,this.ampEntity.val)}return vf};function Wd(vf,gf,Af,Df){return vf&&(Df===void 0&&(Df=Object.keys(gf.child).length===0),vf=this.parseTextData(vf,gf.tagname,Af,!1,gf[":@"]?Object.keys(gf[":@"]).length!==0:!1,Df),vf!==void 0&&vf!==""&&gf.add(this.options.textNodeName,vf),vf=""),vf}function Xd(vf,gf,Af){const Df="*."+Af;for(const kf in vf){const Cf=vf[kf];if(Df===Cf||gf===Cf)return!0}return!1}function Jd(vf,gf,Af=">"){let Df,kf="";for(let Cf=gf;Cf",Af,`${gf} is not closed`);if(vf.substring(Af+2,Cf).trim()===gf&&(kf--,kf===0))return{tagContent:vf.substring(Df,Af),i:Cf};Af=Cf}else if(vf[Af+1]==="?")Af=Zd(vf,"?>",Af+1,"StopNode is not closed.");else if(vf.substr(Af+1,3)==="!--")Af=Zd(vf,"-->",Af+3,"StopNode is not closed.");else if(vf.substr(Af+1,2)==="![")Af=Zd(vf,"]]>",Af,"StopNode is not closed.")-2;else{const Cf=mf(vf,Af,">");Cf&&((Cf&&Cf.tagName)===gf&&Cf.tagExp[Cf.tagExp.length-1]!=="/"&&kf++,Af=Cf.closeIndex)}}function _f(vf,gf,Af){if(gf&&typeof vf=="string"){const Df=vf.trim();return Df==="true"?!0:Df==="false"?!1:vd(vf,Af)}else return md.isExist(vf)?vf:""}ud.exports=wd},"./node_modules/fast-xml-parser/src/xmlparser/XMLParser.js":function(ud,dd,hd){const{buildOptions:md}=hd("./node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js"),gd=hd("./node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js"),{prettify:yd}=hd("./node_modules/fast-xml-parser/src/xmlparser/node2json.js"),vd=hd("./node_modules/fast-xml-parser/src/validator.js");class Cd{constructor(Nd){this.externalEntities={},this.options=md(Nd)}parse(Nd,Ld){if(typeof Nd!="string")if(Nd.toString)Nd=Nd.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(Ld){Ld===!0&&(Ld={});const Gd=vd.validate(Nd,Ld);if(Gd!==!0)throw Error(`${Gd.err.msg}:${Gd.err.line}:${Gd.err.col}`)}const Ud=new gd(this.options);Ud.addExternalEntities(this.externalEntities);const jd=Ud.parseXml(Nd);return this.options.preserveOrder||jd===void 0?jd:yd(jd,this.options)}addEntity(Nd,Ld){if(Ld.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(Nd.indexOf("&")!==-1||Nd.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for ' '");if(Ld==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[Nd]=Ld}}ud.exports=Cd},"./node_modules/fast-xml-parser/src/xmlparser/node2json.js":function(ud,dd,hd){function md(wd,Nd){return gd(wd,Nd)}function gd(wd,Nd,Ld){let Ud;const jd={};for(let Gd=0;Gd0&&(jd[Nd.textNodeName]=Ud):Ud!==void 0&&(jd[Nd.textNodeName]=Ud),jd}function yd(wd){const Nd=Object.keys(wd);for(let Ld=0;Ld0?this.child.push({[yd.tagname]:yd.child,":@":yd[":@"]}):this.child.push({[yd.tagname]:yd.child})}}ud.exports=md},"./node_modules/process/browser.js":function(ud,dd){var hd=ud.exports={},md,gd;function yd(){throw new Error("setTimeout has not been defined")}function vd(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?md=setTimeout:md=yd}catch{md=yd}try{typeof clearTimeout=="function"?gd=clearTimeout:gd=vd}catch{gd=vd}})();function Cd(Wd){if(md===setTimeout)return setTimeout(Wd,0);if((md===yd||!md)&&setTimeout)return md=setTimeout,setTimeout(Wd,0);try{return md(Wd,0)}catch{try{return md.call(null,Wd,0)}catch{return md.call(this,Wd,0)}}}function wd(Wd){if(gd===clearTimeout)return clearTimeout(Wd);if((gd===vd||!gd)&&clearTimeout)return gd=clearTimeout,clearTimeout(Wd);try{return gd(Wd)}catch{try{return gd.call(null,Wd)}catch{return gd.call(this,Wd)}}}var Nd=[],Ld=!1,Ud,jd=-1;function Gd(){!Ld||!Ud||(Ld=!1,Ud.length?Nd=Ud.concat(Nd):jd=-1,Nd.length&&Yd())}function Yd(){if(!Ld){var Wd=Cd(Gd);Ld=!0;for(var Xd=Nd.length;Xd;){for(Ud=Nd,Nd=[];++jd1)for(var Jd=1;Jd0&&Ud&&Nd[2]!==".")return Cd;if(!wd.leadingZeros&&jd.length>0&&!Ud&&Nd[1]!==".")return Cd;{const zd=Number(Nd),qd=""+zd;return qd.search(/[eE]/)!==-1||Yd?wd.eNotation?zd:Cd:Nd.indexOf(".")!==-1?qd==="0"&&Gd===""||qd===Gd||Ud&&qd==="-"+Gd?zd:Cd:jd?Gd===qd||Ud+Gd===qd?zd:Cd:Nd===qd||Nd===Ud+qd?zd:Cd}}else return Cd}}function vd(Cd){return Cd&&Cd.indexOf(".")!==-1&&(Cd=Cd.replace(/0+$/,""),Cd==="."?Cd="0":Cd[0]==="."?Cd="0"+Cd:Cd[Cd.length-1]==="."&&(Cd=Cd.substr(0,Cd.length-1))),Cd}ud.exports=yd},"./node_modules/webpack/buildin/amd-options.js":function(ud,dd){(function(hd){ud.exports=hd}).call(this,{})},"./node_modules/webpack/buildin/module.js":function(ud,dd){ud.exports=function(hd){return hd.webpackPolyfill||(hd.deprecate=function(){},hd.paths=[],hd.children||(hd.children=[]),Object.defineProperty(hd,"loaded",{enumerable:!0,get:function(){return hd.l}}),Object.defineProperty(hd,"id",{enumerable:!0,get:function(){return hd.i}}),hd.webpackPolyfill=1),hd}},"./package.json":function(ud){ud.exports=JSON.parse('{"name":"cos-js-sdk-v5","version":"1.8.7","description":"JavaScript SDK for [腾讯云对象存储](https://cloud.tencent.com/product/cos)","main":"dist/cos-js-sdk-v5.js","types":"index.d.ts","scripts":{"prettier":"prettier --write src demo/demo.js demo/CIDemos/*.js test/test.js server/sts.js lib/request.js index.d.ts","server":"node server/sts.js","dev":"cross-env NODE_ENV=development webpack -w --mode=development","build":"cross-env NODE_ENV=production webpack --mode=production","cos-auth.min.js":"uglifyjs ./demo/common/cos-auth.js -o ./demo/common/cos-auth.min.js -c -m","test":"jest --runInBand --coverage"},"repository":{"type":"git","url":"git+https://github.com/tencentyun/cos-js-sdk-v5.git"},"keywords":[],"author":"carsonxu","license":"ISC","bugs":{"url":"https://github.com/tencentyun/cos-js-sdk-v5/issues"},"homepage":"https://github.com/tencentyun/cos-js-sdk-v5#readme","dependencies":{"fast-xml-parser":"4.5.0"},"devDependencies":{"@babel/core":"7.17.9","@babel/plugin-transform-runtime":"7.18.10","@babel/preset-env":"7.16.11","babel-loader":"8.2.5","body-parser":"^1.18.3","cross-env":"^5.2.0","express":"^4.16.4","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","prettier":"^3.0.1","qcloud-cos-sts":"^3.0.2","request":"^2.87.0","terser-webpack-plugin":"4.2.3","uglifyjs":"^2.4.11","webpack":"4.46.0","webpack-cli":"4.10.0"}}')},"./src/advance.js":function(ud,dd,hd){var md=hd("./node_modules/@babel/runtime/helpers/typeof.js"),gd=hd("./src/session.js"),yd=hd("./src/async.js"),vd=hd("./src/event.js").EventProxy,Cd=hd("./src/util.js"),wd=hd("./src/tracker.js");function Nd(_f,vf){var gf=this,Af=new vd,Df=_f.TaskId,kf=_f.Bucket,Cf=_f.Region,If=_f.Key,Ff=_f.Body,oh=_f.ChunkSize||_f.SliceSize||gf.options.ChunkSize,Eh=_f.AsyncLimit,_h=_f.StorageClass,Mh=_f.ServerSideEncryption,lh,rh,mh=_f.onHashProgress,xh=_f.tracker;xh&&xh.setParams({chunkSize:oh}),Af.on("error",function(Sh){if(gf._isRunningTask(Df))return _f.UploadData.UploadId&&gd.removeUsing(_f.UploadData.UploadId),Sh.UploadId=_f.UploadData.UploadId||"",vf(Sh)}),Af.on("upload_complete",function(Sh){var Of=Cd.extend({UploadId:_f.UploadData.UploadId||""},Sh);vf(null,Of)}),Af.on("upload_slice_complete",function(Sh){var Of={};Cd.each(_f.Headers,function(Rf,yh){var Ph=yh.toLowerCase();(Ph.indexOf("x-cos-meta-")===0||["pic-operations","x-cos-callback","x-cos-callback-var","x-cos-return-body"].includes(Ph))&&(Of[yh]=Rf)}),zd.call(gf,{Bucket:kf,Region:Cf,Key:If,UploadId:Sh.UploadId,SliceList:Sh.SliceList,Headers:Of,tracker:xh},function(Rf,yh){if(gf._isRunningTask(Df)){if(gd.removeUsing(Sh.UploadId),Rf)return rh(null,!0),Af.emit("error",Rf);gd.removeUploadId.call(gf,Sh.UploadId),rh({loaded:lh,total:lh},!0),Af.emit("upload_complete",yh)}})}),Af.on("get_upload_data_finish",function(Sh){var Of=gd.getFileId(Ff,_f.ChunkSize,kf,If);Of&&gd.saveUploadId.call(gf,Of,Sh.UploadId,gf.options.UploadIdCacheLimit),gd.setUsing(Sh.UploadId),rh(null,!0),Gd.call(gf,{TaskId:Df,Bucket:kf,Region:Cf,Key:If,Body:Ff,FileSize:lh,SliceSize:oh,AsyncLimit:Eh,ServerSideEncryption:Mh,UploadData:Sh,Headers:_f.Headers,onProgress:rh,tracker:xh},function(Rf,yh){if(gf._isRunningTask(Df)){if(Rf)return rh(null,!0),Af.emit("error",Rf);Af.emit("upload_slice_complete",yh)}})}),Af.on("get_file_size_finish",function(){if(rh=Cd.throttleOnProgress.call(gf,lh,_f.onProgress),_f.UploadData.UploadId)Af.emit("get_upload_data_finish",_f.UploadData);else{var Sh=Cd.extend({TaskId:Df,Bucket:kf,Region:Cf,Key:If,Headers:_f.Headers,StorageClass:_h,Body:Ff,FileSize:lh,SliceSize:oh,onHashProgress:mh,tracker:xh},_f);Ld.call(gf,Sh,function(Of,Rf){if(gf._isRunningTask(Df)){if(Of)return Af.emit("error",Of);_f.UploadData.UploadId=Rf.UploadId,_f.UploadData.PartList=Rf.PartList,Af.emit("get_upload_data_finish",_f.UploadData)}})}}),lh=_f.ContentLength,delete _f.ContentLength,!_f.Headers&&(_f.Headers={}),Cd.each(_f.Headers,function(Sh,Of){Of.toLowerCase()==="content-length"&&delete _f.Headers[Of]}),function(){for(var Sh=[1,2,4,8,16,32,64,128,256,512,1024,2048,4096,5120],Of=1024*1024,Rf=0;Rf_h)return Rf(null,!1);if(yh>1){var Ph=Math.max(Of[0].Size,Of[1].Size);if(Ph!==Eh)return Rf(null,!1)}var sm=function th(sh){if(sh=Rf.length){xh.emit("has_and_check_upload_id",Sh);return}var th=Rf[sm];if(!Cd.isInArray(Sh,th)){gd.removeUploadId.call(If,th),Ph(sm+1);return}if(gd.using[th]){Ph(sm+1);return}jd.call(If,{Bucket:Af,Region:Df,Key:kf,UploadId:th,tracker:_f.tracker},function(sh,Zh){If._isRunningTask(gf)&&(sh?(gd.removeUploadId.call(If,th),Ph(sm+1)):xh.emit("upload_id_available",{UploadId:th,PartList:Zh.PartList}))})};yh(0)}),xh.on("get_remote_upload_id_list",function(){Ud.call(If,{Bucket:Af,Region:Df,Key:kf,tracker:_f.tracker},function(Sh,Of){if(If._isRunningTask(gf)){if(Sh)return xh.emit("error",Sh);var Rf=Cd.filter(Of.UploadList,function(sm){return sm.Key===kf&&(!Cf||sm.StorageClass.toUpperCase()===Cf.toUpperCase())}).reverse().map(function(sm){return sm.UploadId||sm.UploadID});if(Rf.length)xh.emit("seek_local_avail_upload_id",Rf);else{var yh=gd.getFileId(_f.Body,_f.ChunkSize,Af,kf),Ph;yh&&(Ph=gd.getUploadIdList.call(If,yh))&&Cd.each(Ph,function(sm){gd.removeUploadId.call(If,sm)}),xh.emit("no_available_upload_id")}}})}),xh.emit("get_remote_upload_id_list")}function Ud(_f,vf){var gf=this,Af=[],Df={Bucket:_f.Bucket,Region:_f.Region,Prefix:_f.Key,calledBySdk:_f.calledBySdk||"sliceUploadFile",tracker:_f.tracker},kf=function Cf(){gf.multipartList(Df,function(If,Ff){if(If)return vf(If);Af.push.apply(Af,Ff.Upload||[]),Ff.IsTruncated==="true"?(Df.KeyMarker=Ff.NextKeyMarker,Df.UploadIdMarker=Ff.NextUploadIdMarker,Cf()):vf(null,{UploadList:Af})})};kf()}function jd(_f,vf){var gf=this,Af=[],Df={Bucket:_f.Bucket,Region:_f.Region,Key:_f.Key,UploadId:_f.UploadId,calledBySdk:"sliceUploadFile",tracker:_f.tracker},kf=function Cf(){gf.multipartListPart(Df,function(If,Ff){if(If)return vf(If);Af.push.apply(Af,Ff.Part||[]),Ff.IsTruncated==="true"?(Df.PartNumberMarker=Ff.NextPartNumberMarker,Cf()):vf(null,{PartList:Af})})};kf()}function Gd(_f,vf){var gf=this,Af=_f.TaskId,Df=_f.Bucket,kf=_f.Region,Cf=_f.Key,If=_f.UploadData,Ff=_f.FileSize,oh=_f.SliceSize,Eh=Math.min(_f.AsyncLimit||gf.options.ChunkParallelLimit||1,256),_h=_f.Body,Mh=Math.ceil(Ff/oh),lh=0,rh=_f.ServerSideEncryption,mh=_f.Headers,xh=Cd.filter(If.PartList,function(Of){return Of.Uploaded&&(lh+=Of.PartNumber>=Mh&&Ff%oh||oh),!Of.Uploaded}),Sh=_f.onProgress;yd.eachLimit(xh,Eh,function(Of,Rf){if(gf._isRunningTask(Af)){var yh=Of.PartNumber,Ph=Math.min(Ff,Of.PartNumber*oh)-(Of.PartNumber-1)*oh,sm=0;Yd.call(gf,{TaskId:Af,Bucket:Df,Region:kf,Key:Cf,SliceSize:oh,FileSize:Ff,PartNumber:yh,ServerSideEncryption:rh,Body:_h,UploadData:If,Headers:mh,onProgress:function(sh){lh+=sh.loaded-sm,sm=sh.loaded,Sh({loaded:lh,total:Ff})},tracker:_f.tracker},function(th,sh){gf._isRunningTask(Af)&&(!th&&!sh.ETag&&(th='get ETag error, please add "ETag" to CORS ExposeHeader setting.( 获取ETag失败,请在CORS ExposeHeader设置中添加ETag,请参考文档:https://cloud.tencent.com/document/product/436/13318 )'),th?lh-=sm:(lh+=Ph-sm,Of.ETag=sh.ETag),Sh({loaded:lh,total:Ff}),Rf(th||null,sh))})}},function(Of){if(gf._isRunningTask(Af)){if(Of)return vf(Of);vf(null,{UploadId:If.UploadId,SliceList:If.PartList})}})}function Yd(_f,vf){var gf=this,Af=_f.TaskId,Df=_f.Bucket,kf=_f.Region,Cf=_f.Key,If=_f.FileSize,Ff=_f.Body,oh=_f.PartNumber*1,Eh=_f.SliceSize,_h=_f.ServerSideEncryption,Mh=_f.UploadData,lh=_f.Headers||{},rh=gf.options.ChunkRetryTimes+1,mh=Eh*(oh-1),xh=Eh,Sh=mh+Eh;Sh>If&&(Sh=If,xh=Sh-mh);var Of=["x-cos-traffic-limit","x-cos-mime-limit"],Rf={};Cd.each(lh,function(Ph,sm){Of.indexOf(sm)>-1&&(Rf[sm]=Ph)});var yh=Mh.PartList[oh-1];yd.retry(rh,function(Ph){gf._isRunningTask(Af)&&Cd.fileSlice(Ff,mh,Sh,!0,function(sm){gf.multipartUpload({TaskId:Af,Bucket:Df,Region:kf,Key:Cf,ContentLength:xh,PartNumber:oh,UploadId:Mh.UploadId,ServerSideEncryption:_h,Body:sm,Headers:Rf,onProgress:_f.onProgress,calledBySdk:"sliceUploadFile",tracker:_f.tracker},function(th,sh){if(gf._isRunningTask(Af))return th?Ph(th):(yh.Uploaded=!0,Ph(null,sh))})})},function(Ph,sm){if(gf._isRunningTask(Af))return vf(Ph,sm)})}function zd(_f,vf){var gf=_f.Bucket,Af=_f.Region,Df=_f.Key,kf=_f.UploadId,Cf=_f.SliceList,If=this,Ff=this.options.ChunkRetryTimes+1,oh=_f.Headers,Eh=Cf.map(function(_h){return{PartNumber:_h.PartNumber,ETag:_h.ETag}});yd.retry(Ff,function(_h){If.multipartComplete({Bucket:gf,Region:Af,Key:Df,UploadId:kf,Parts:Eh,Headers:oh,calledBySdk:"sliceUploadFile",tracker:_f.tracker},_h)},function(_h,Mh){vf(_h,Mh)})}function qd(_f,vf){var gf=_f.Bucket,Af=_f.Region,Df=_f.Key,kf=_f.UploadId,Cf=_f.Level||"task",If=_f.AsyncLimit,Ff=this,oh=new vd;if(oh.on("error",function(Eh){return vf(Eh)}),oh.on("get_abort_array",function(Eh){Wd.call(Ff,{Bucket:gf,Region:Af,Key:Df,Headers:_f.Headers,AsyncLimit:If,AbortArray:Eh},vf)}),Cf==="bucket")Ud.call(Ff,{Bucket:gf,Region:Af,calledBySdk:"abortUploadTask"},function(Eh,_h){if(Eh)return vf(Eh);oh.emit("get_abort_array",_h.UploadList||[])});else if(Cf==="file"){if(!Df)return vf(Cd.error(new Error("abort_upload_task_no_key")));Ud.call(Ff,{Bucket:gf,Region:Af,Key:Df,calledBySdk:"abortUploadTask"},function(Eh,_h){if(Eh)return vf(Eh);oh.emit("get_abort_array",_h.UploadList||[])})}else if(Cf==="task"){if(!kf)return vf(Cd.error(new Error("abort_upload_task_no_id")));if(!Df)return vf(Cd.error(new Error("abort_upload_task_no_key")));oh.emit("get_abort_array",[{Key:Df,UploadId:kf}])}else return vf(Cd.error(new Error("abort_unknown_level")))}function Wd(_f,vf){var gf=_f.Bucket,Af=_f.Region,Df=_f.Key,kf=_f.AbortArray,Cf=_f.AsyncLimit||1,If=this,Ff=0,oh=new Array(kf.length);yd.eachLimit(kf,Cf,function(Eh,_h){var Mh=Ff;if(Df&&Df!==Eh.Key){oh[Mh]={error:{KeyNotMatch:!0}},_h(null);return}var lh=Eh.UploadId||Eh.UploadID;If.multipartAbort({Bucket:gf,Region:Af,Key:Eh.Key,Headers:_f.Headers,UploadId:lh},function(rh){var mh={Bucket:gf,Region:Af,Key:Eh.Key,UploadId:lh};oh[Mh]={error:rh,task:mh},_h(null)}),Ff++},function(Eh){if(Eh)return vf(Eh);for(var _h=[],Mh=[],lh=0,rh=oh.length;lhAf?"sliceUploadFile":"putObject";_f.tracker=new wd({Beacon:gf.options.BeaconReporter,clsReporter:gf.options.ClsReporter,bucket:_f.Bucket,region:_f.Region,apiName:"uploadFile",realApi:oh,fileKey:_f.Key,fileSize:Cf,accelerate:Ff,deepTracker:gf.options.DeepTracker,customId:gf.options.CustomId,delay:gf.options.TrackerDelay})}Cd.each(_f,function(mh,xh){md(mh)!=="object"&&typeof mh!="function"&&(If[xh]=mh)});var Eh=_f.onTaskReady,_h=function(xh){If.TaskId=xh,Eh&&Eh(xh)};_f.onTaskReady=_h;var Mh=Cf>Af?"sliceUploadFile":"putObject",lh=_f.onFileFinish,rh=function(xh,Sh){_f.tracker&&_f.tracker.report(xh,Sh),lh&&lh(xh,Sh,If),vf&&vf(xh,Sh)};Df.push({api:Mh,params:_f,callback:rh}),gf._addTasks(Df)}function Jd(_f,vf){var gf=this,Af=_f.SliceSize===void 0?gf.options.SliceSize:_f.SliceSize,Df=0,kf=0,Cf=Cd.throttleOnProgress.call(gf,kf,_f.onProgress),If=_f.files.length,Ff=_f.onFileFinish,oh=Array(If),Eh=function(lh,rh,mh){Cf(null,!0),Ff&&Ff(lh,rh,mh),oh[mh.Index]={options:mh,error:lh,data:rh},--If<=0&&vf&&vf(null,{files:oh})},_h=[];Cd.each(_f.files,function(Mh,lh){(function(){var rh=Mh.Body,mh=rh.size||rh.length||0,xh={Index:lh,TaskId:""};if(!gf.options.UseRawKey&&Mh.Key&&Mh.Key.substr(0,1)==="/"&&(Mh.Key=Mh.Key.substr(1)),Df+=mh,gf.options.EnableReporter){var Sh=gf.options.UseAccelerate||typeof gf.options.Domain=="string"&&gf.options.Domain.includes("accelerate."),Of=mh>Af?"sliceUploadFile":"putObject";Mh.tracker=new wd({Beacon:gf.options.BeaconReporter,clsReporter:gf.options.ClsReporter,bucket:Mh.Bucket,region:Mh.Region,apiName:"uploadFiles",realApi:Of,fileKey:Mh.Key,fileSize:mh,accelerate:Sh,deepTracker:gf.options.DeepTracker,customId:gf.options.CustomId,delay:gf.options.TrackerDelay})}Cd.each(Mh,function($h,Vf){md($h)!=="object"&&typeof $h!="function"&&(xh[Vf]=$h)});var Rf=Mh.onTaskReady,yh=function(Vf){xh.TaskId=Vf,Rf&&Rf(Vf)};Mh.onTaskReady=yh;var Ph=0,sm=Mh.onProgress,th=function(Vf){kf=kf-Ph+Vf.loaded,Ph=Vf.loaded,sm&&sm(Vf),Cf({loaded:kf,total:Df})};Mh.onProgress=th;var sh=mh>Af?"sliceUploadFile":"putObject",Zh=Mh.onFileFinish,Sm=function(Vf,nh){Mh.tracker&&Mh.tracker.report(Vf,nh),Zh&&Zh(Vf,nh),Eh&&Eh(Vf,nh,xh)};_h.push({api:sh,params:Mh,callback:Sm})})()}),gf._addTasks(_h)}function Zd(_f,vf){var gf=new vd,Af=this,Df=_f.Bucket,kf=_f.Region,Cf=_f.Key,If=_f.CopySource,Ff=Cd.getSourceParams.call(this,If);if(!Ff){vf(Cd.error(new Error("CopySource format error")));return}var oh=Ff.Bucket,Eh=Ff.Region,_h=decodeURIComponent(Ff.Key),Mh=_f.CopySliceSize===void 0?Af.options.CopySliceSize:_f.CopySliceSize;Mh=Math.max(0,Mh);var lh=_f.CopyChunkSize||this.options.CopyChunkSize,rh=this.options.CopyChunkParallelLimit,mh=this.options.ChunkRetryTimes+1,xh=0,Sh=0,Of,Rf,yh={},Ph={},sm={};gf.on("copy_slice_complete",function(th){Cd.each(_f.Headers,function(Zh,Sm){Sm.toLowerCase().indexOf("x-cos-meta-")});var sh=Cd.map(th.PartList,function(Zh){return{PartNumber:Zh.PartNumber,ETag:Zh.ETag}});yd.retry(mh,function(Zh){Af.multipartComplete({Bucket:Df,Region:kf,Key:Cf,UploadId:th.UploadId,Parts:sh,tracker:_f.tracker,calledBySdk:"sliceCopyFile"},Zh)},function(Zh,Sm){if(gd.removeUsing(th.UploadId),Zh)return Rf(null,!0),vf(Zh);gd.removeUploadId(th.UploadId),Rf({loaded:Of,total:Of},!0),vf(null,Sm)})}),gf.on("get_copy_data_finish",function(th){var sh=gd.getCopyFileId(If,yh,lh,Df,Cf);sh&&gd.saveUploadId(sh,th.UploadId,Af.options.UploadIdCacheLimit),gd.setUsing(th.UploadId);var Zh=Cd.filter(th.PartList,function(Sm){return Sm.Uploaded&&(Sh+=Sm.PartNumber>=xh&&Of%lh||lh),!Sm.Uploaded});yd.eachLimit(Zh,rh,function(Sm,$h){var Vf=Sm.PartNumber,nh=Sm.CopySourceRange,Lh=Sm.end-Sm.start;yd.retry(mh,function(Ih){mf.call(Af,{Bucket:Df,Region:kf,Key:Cf,CopySource:If,UploadId:th.UploadId,PartNumber:Vf,CopySourceRange:nh,tracker:_f.tracker,calledBySdk:"sliceCopyFile"},Ih)},function(Ih,om){if(Ih)return $h(Ih);Sh+=Lh,Rf({loaded:Sh,total:Of}),Sm.ETag=om.ETag,$h(Ih||null,om)})},function(Sm){if(Sm)return gd.removeUsing(th.UploadId),Rf(null,!0),vf(Sm);gf.emit("copy_slice_complete",th)})}),gf.on("get_chunk_size_finish",function(){var th=function(){Af.multipartInit({Bucket:Df,Region:kf,Key:Cf,Headers:sm,tracker:_f.tracker,calledBySdk:"sliceCopyFile"},function(Vf,nh){if(Vf)return vf(Vf);_f.UploadId=nh.UploadId,gf.emit("get_copy_data_finish",{UploadId:_f.UploadId,PartList:_f.PartList})})},sh=gd.getCopyFileId(If,yh,lh,Df,Cf),Zh=gd.getUploadIdList(sh);if(!sh||!Zh)return th();var Sm=function $h(Vf){if(Vf>=Zh.length)return th();var nh=Zh[Vf];if(gd.using[nh])return $h(Vf+1);jd.call(Af,{Bucket:Df,Region:kf,Key:Cf,UploadId:nh,tracker:_f.tracker,calledBySdk:"sliceCopyFile"},function(Lh,Ih){if(Lh)gd.removeUploadId(nh),$h(Vf+1);else{if(gd.using[nh])return $h(Vf+1);var om={},zh=0;Cd.each(Ih.PartList,function(Mm){var Nm=parseInt(Mm.Size),Zm=zh+Nm-1;om[Mm.PartNumber+"|"+zh+"|"+Zm]=Mm.ETag,zh+=Nm}),Cd.each(_f.PartList,function(Mm){var Nm=om[Mm.PartNumber+"|"+Mm.start+"|"+Mm.end];Nm&&(Mm.ETag=Nm,Mm.Uploaded=!0)}),gf.emit("get_copy_data_finish",{UploadId:nh,PartList:_f.PartList})}})};Sm(0)}),gf.on("get_file_size_finish",function(){if(function(){for(var sh=[1,2,4,8,16,32,64,128,256,512,1024,2048,4096,5120],Zh=1024*1024,Sm=0;SmVf.length&&(Ph[$h]=Sm)}),gf.emit("get_file_size_finish")}})}function mf(_f,vf){var gf=_f.TaskId,Af=_f.Bucket,Df=_f.Region,kf=_f.Key,Cf=_f.CopySource,If=_f.UploadId,Ff=_f.PartNumber*1,oh=_f.CopySourceRange,Eh=this.options.ChunkRetryTimes+1,_h=this;yd.retry(Eh,function(Mh){_h.uploadPartCopy({TaskId:gf,Bucket:Af,Region:Df,Key:kf,CopySource:Cf,UploadId:If,PartNumber:Ff,CopySourceRange:oh,tracker:_f.tracker,calledBySdk:_f.calledBySdk},function(lh,rh){Mh(lh||null,rh)})},function(Mh,lh){return vf(Mh,lh)})}var xf={sliceUploadFile:Nd,abortUploadTask:qd,uploadFile:Xd,uploadFiles:Jd,sliceCopyFile:Zd};ud.exports.init=function(_f,vf){vf.transferToTaskMethod(xf,"sliceUploadFile"),Cd.each(xf,function(gf,Af){_f.prototype[Af]=Cd.apiWrapper(Af,gf)})}},"./src/async.js":function(ud,dd){var hd=function(vd,Cd,wd,Nd){if(Nd=Nd||function(){},!vd.length||Cd<=0)return Nd();var Ld=0,Ud=0,jd=0;(function Gd(){if(Ld>=vd.length)return Nd();for(;jd=vd.length?Nd():Gd())})})()},md=function(vd,Cd,wd){var Nd=function Ld(Ud){Cd(function(jd,Gd){jd&&Ud"u"?"undefined":md(location))==="object"&&location.protocol==="http:"?"http:":"https:"),hm=this.options.ServiceDomain,Lm=ih.AppId||this.options.appId,Pm=ih.Region;hm?(hm=hm.replace(/\{\{AppId\}\}/gi,Lm||"").replace(/\{\{Region\}\}/gi,Pm||"").replace(/\{\{.*?\}\}/gi,""),/^[a-zA-Z]+:\/\//.test(hm)||(hm=Qh+"//"+hm),hm.slice(-1)==="/"&&(hm=hm.slice(0,-1))):Pm?hm=Qh+"//cos."+Pm+".myqcloud.com":hm=Qh+"//service.cos.myqcloud.com";var Vm="",Gm=Pm?"cos."+Pm+".myqcloud.com":"service.cos.myqcloud.com",Tm=hm.replace(/^https?:\/\/([^/]+)(\/.*)?$/,"$1");Gm===Tm&&(Vm=Gm),Pg.call(this,{Action:"name/cos:GetService",url:hm,method:"GET",headers:ih.Headers,SignHost:Vm,tracker:ih.tracker},function(lg,hg){if(lg)return mm(lg);var zg=hg&&hg.ListAllMyBucketsResult&&hg.ListAllMyBucketsResult.Buckets&&hg.ListAllMyBucketsResult.Buckets.Bucket||[];zg=yd.isArray(zg)?zg:[zg];var Tg=hg&&hg.ListAllMyBucketsResult&&hg.ListAllMyBucketsResult.Owner||{};mm(null,{Buckets:zg,Owner:Tg,statusCode:hg.statusCode,headers:hg.headers})})}function Cd(ih,mm){var Qh=this,hm="";if(ih.BucketAZConfig){var Lm={BucketAZConfig:ih.BucketAZConfig};hm=yd.json2xml({CreateBucketConfiguration:Lm})}Pg.call(this,{Action:"name/cos:PutBucket",method:"PUT",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,body:hm,tracker:ih.tracker},function(Pm,Vm){if(Pm)return mm(Pm);var Gm=S_({protocol:Qh.options.Protocol,domain:Qh.options.Domain,bucket:ih.Bucket,region:ih.Region,isLocation:!0});mm(null,{Location:Gm,statusCode:Vm.statusCode,headers:Vm.headers})})}function wd(ih,mm){Pg.call(this,{Action:"name/cos:HeadBucket",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,method:"HEAD",tracker:ih.tracker},mm)}function Nd(ih,mm){var Qh={};Qh.prefix=ih.Prefix||"",Qh.delimiter=ih.Delimiter,Qh.marker=ih.Marker,Qh["max-keys"]=ih.MaxKeys,Qh["encoding-type"]=ih.EncodingType,Pg.call(this,{Action:"name/cos:GetBucket",ResourceKey:Qh.prefix,method:"GET",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,qs:Qh,tracker:ih.tracker},function(hm,Lm){if(hm)return mm(hm);var Pm=Lm.ListBucketResult||{},Vm=Pm.Contents||[],Gm=Pm.CommonPrefixes||[];Vm=yd.isArray(Vm)?Vm:[Vm],Gm=yd.isArray(Gm)?Gm:[Gm];var Tm=yd.clone(Pm);yd.extend(Tm,{Contents:Vm,CommonPrefixes:Gm,statusCode:Lm.statusCode,headers:Lm.headers}),mm(null,Tm)})}function Ld(ih,mm){Pg.call(this,{Action:"name/cos:DeleteBucket",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,method:"DELETE",tracker:ih.tracker},function(Qh,hm){if(Qh&&Qh.statusCode===204)return mm(null,{statusCode:Qh.statusCode});if(Qh)return mm(Qh);mm(null,{statusCode:hm.statusCode,headers:hm.headers})})}function Ud(ih,mm){var Qh=ih.Headers,hm="";if(ih.AccessControlPolicy){var Lm=yd.clone(ih.AccessControlPolicy||{}),Pm=Lm.Grants||Lm.Grant;Pm=yd.isArray(Pm)?Pm:[Pm],delete Lm.Grant,delete Lm.Grants,Lm.AccessControlList={Grant:Pm},hm=yd.json2xml({AccessControlPolicy:Lm}),Qh["Content-Type"]="application/xml",Qh["Content-MD5"]=yd.b64(yd.md5(hm))}yd.each(Qh,function(Vm,Gm){Gm.indexOf("x-cos-grant-")===0&&(Qh[Gm]=O_(Qh[Gm]))}),Pg.call(this,{Action:"name/cos:PutBucketACL",method:"PUT",Bucket:ih.Bucket,Region:ih.Region,headers:Qh,action:"acl",body:hm,tracker:ih.tracker},function(Vm,Gm){if(Vm)return mm(Vm);mm(null,{statusCode:Gm.statusCode,headers:Gm.headers})})}function jd(ih,mm){Pg.call(this,{Action:"name/cos:GetBucketACL",method:"GET",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"acl",tracker:ih.tracker},function(Qh,hm){if(Qh)return mm(Qh);var Lm=hm.AccessControlPolicy||{},Pm=Lm.Owner||{},Vm=Lm.AccessControlList.Grant||[];Vm=yd.isArray(Vm)?Vm:[Vm];var Gm=r_(Lm);hm.headers&&hm.headers["x-cos-acl"]&&(Gm.ACL=hm.headers["x-cos-acl"]),Gm=yd.extend(Gm,{Owner:Pm,Grants:Vm,statusCode:hm.statusCode,headers:hm.headers}),mm(null,Gm)})}function Gd(ih,mm){var Qh=ih.CORSConfiguration||{},hm=Qh.CORSRules||ih.CORSRules||[];hm=yd.clone(yd.isArray(hm)?hm:[hm]),yd.each(hm,function(Gm){yd.each(["AllowedOrigin","AllowedHeader","AllowedMethod","ExposeHeader"],function(Tm){var lg=Tm+"s",hg=Gm[lg]||Gm[Tm]||[];delete Gm[lg],Gm[Tm]=yd.isArray(hg)?hg:[hg]})});var Lm={CORSRule:hm};ih.ResponseVary&&(Lm.ResponseVary=ih.ResponseVary);var Pm=yd.json2xml({CORSConfiguration:Lm}),Vm=ih.Headers;Vm["Content-Type"]="application/xml",Vm["Content-MD5"]=yd.b64(yd.md5(Pm)),Pg.call(this,{Action:"name/cos:PutBucketCORS",method:"PUT",Bucket:ih.Bucket,Region:ih.Region,body:Pm,action:"cors",headers:Vm,tracker:ih.tracker},function(Gm,Tm){if(Gm)return mm(Gm);mm(null,{statusCode:Tm.statusCode,headers:Tm.headers})})}function Yd(ih,mm){Pg.call(this,{Action:"name/cos:GetBucketCORS",method:"GET",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"cors",tracker:ih.tracker},function(Qh,hm){if(Qh){if(Qh.statusCode===404&&Qh.error&&Qh.error.Code==="NoSuchCORSConfiguration"){var Lm={CORSRules:[],statusCode:Qh.statusCode};Qh.headers&&(Lm.headers=Qh.headers),mm(null,Lm)}else mm(Qh);return}var Pm=hm.CORSConfiguration||{},Vm=Pm.CORSRules||Pm.CORSRule||[];Vm=yd.clone(yd.isArray(Vm)?Vm:[Vm]);var Gm=Pm.ResponseVary;yd.each(Vm,function(Tm){yd.each(["AllowedOrigin","AllowedHeader","AllowedMethod","ExposeHeader"],function(lg){var hg=lg+"s",zg=Tm[hg]||Tm[lg]||[];delete Tm[lg],Tm[hg]=yd.isArray(zg)?zg:[zg]})}),mm(null,{CORSRules:Vm,ResponseVary:Gm,statusCode:hm.statusCode,headers:hm.headers})})}function zd(ih,mm){Pg.call(this,{Action:"name/cos:DeleteBucketCORS",method:"DELETE",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"cors",tracker:ih.tracker},function(Qh,hm){if(Qh&&Qh.statusCode===204)return mm(null,{statusCode:Qh.statusCode});if(Qh)return mm(Qh);mm(null,{statusCode:hm.statusCode||Qh.statusCode,headers:hm.headers})})}function qd(ih,mm){Pg.call(this,{Action:"name/cos:GetBucketLocation",method:"GET",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"location",tracker:ih.tracker},mm)}function Wd(ih,mm){var Qh=ih.Policy;try{typeof Qh=="string"&&(Qh=JSON.parse(Qh))}catch{}if(!Qh||typeof Qh=="string")return mm(yd.error(new Error("Policy format error")));var hm=JSON.stringify(Qh);Qh.version||(Qh.version="2.0");var Lm=ih.Headers;Lm["Content-Type"]="application/json",Lm["Content-MD5"]=yd.b64(yd.md5(hm)),Pg.call(this,{Action:"name/cos:PutBucketPolicy",method:"PUT",Bucket:ih.Bucket,Region:ih.Region,action:"policy",body:hm,headers:Lm,tracker:ih.tracker},function(Pm,Vm){if(Pm&&Pm.statusCode===204)return mm(null,{statusCode:Pm.statusCode});if(Pm)return mm(Pm);mm(null,{statusCode:Vm.statusCode,headers:Vm.headers})})}function Xd(ih,mm){Pg.call(this,{Action:"name/cos:GetBucketPolicy",method:"GET",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"policy",rawBody:!0,tracker:ih.tracker},function(Qh,hm){if(Qh)return Qh.statusCode&&Qh.statusCode===403?mm(yd.error(Qh,{ErrorStatus:"Access Denied"})):Qh.statusCode&&Qh.statusCode===405?mm(yd.error(Qh,{ErrorStatus:"Method Not Allowed"})):Qh.statusCode&&Qh.statusCode===404?mm(yd.error(Qh,{ErrorStatus:"Policy Not Found"})):mm(Qh);var Lm={};try{Lm=JSON.parse(hm.body)}catch{}mm(null,{Policy:Lm,statusCode:hm.statusCode,headers:hm.headers})})}function Jd(ih,mm){Pg.call(this,{Action:"name/cos:DeleteBucketPolicy",method:"DELETE",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"policy",tracker:ih.tracker},function(Qh,hm){if(Qh&&Qh.statusCode===204)return mm(null,{statusCode:Qh.statusCode});if(Qh)return mm(Qh);mm(null,{statusCode:hm.statusCode||Qh.statusCode,headers:hm.headers})})}function Zd(ih,mm){var Qh=ih.Tagging||{},hm=Qh.TagSet||Qh.Tags||ih.Tags||[];hm=yd.clone(yd.isArray(hm)?hm:[hm]);var Lm=yd.json2xml({Tagging:{TagSet:{Tag:hm}}}),Pm=ih.Headers;Pm["Content-Type"]="application/xml",Pm["Content-MD5"]=yd.b64(yd.md5(Lm)),Pg.call(this,{Action:"name/cos:PutBucketTagging",method:"PUT",Bucket:ih.Bucket,Region:ih.Region,body:Lm,action:"tagging",headers:Pm,tracker:ih.tracker},function(Vm,Gm){if(Vm&&Vm.statusCode===204)return mm(null,{statusCode:Vm.statusCode});if(Vm)return mm(Vm);mm(null,{statusCode:Gm.statusCode,headers:Gm.headers})})}function mf(ih,mm){Pg.call(this,{Action:"name/cos:GetBucketTagging",method:"GET",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"tagging",tracker:ih.tracker},function(Qh,hm){if(Qh){if(Qh.statusCode===404&&Qh.error&&(Qh.error==="Not Found"||Qh.error.Code==="NoSuchTagSet")){var Lm={Tags:[],statusCode:Qh.statusCode};Qh.headers&&(Lm.headers=Qh.headers),mm(null,Lm)}else mm(Qh);return}var Pm=[];try{Pm=hm.Tagging.TagSet.Tag||[]}catch{}Pm=yd.clone(yd.isArray(Pm)?Pm:[Pm]),mm(null,{Tags:Pm,statusCode:hm.statusCode,headers:hm.headers})})}function xf(ih,mm){Pg.call(this,{Action:"name/cos:DeleteBucketTagging",method:"DELETE",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"tagging",tracker:ih.tracker},function(Qh,hm){if(Qh&&Qh.statusCode===204)return mm(null,{statusCode:Qh.statusCode});if(Qh)return mm(Qh);mm(null,{statusCode:hm.statusCode,headers:hm.headers})})}function _f(ih,mm){var Qh=ih.LifecycleConfiguration||{},hm=Qh.Rules||ih.Rules||[];hm=yd.clone(hm);var Lm=yd.json2xml({LifecycleConfiguration:{Rule:hm}}),Pm=ih.Headers;Pm["Content-Type"]="application/xml",Pm["Content-MD5"]=yd.b64(yd.md5(Lm)),Pg.call(this,{Action:"name/cos:PutBucketLifecycle",method:"PUT",Bucket:ih.Bucket,Region:ih.Region,body:Lm,action:"lifecycle",headers:Pm,tracker:ih.tracker},function(Vm,Gm){if(Vm&&Vm.statusCode===204)return mm(null,{statusCode:Vm.statusCode});if(Vm)return mm(Vm);mm(null,{statusCode:Gm.statusCode,headers:Gm.headers})})}function vf(ih,mm){Pg.call(this,{Action:"name/cos:GetBucketLifecycle",method:"GET",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"lifecycle",tracker:ih.tracker},function(Qh,hm){if(Qh){if(Qh.statusCode===404&&Qh.error&&Qh.error.Code==="NoSuchLifecycleConfiguration"){var Lm={Rules:[],statusCode:Qh.statusCode};Qh.headers&&(Lm.headers=Qh.headers),mm(null,Lm)}else mm(Qh);return}var Pm=[];try{Pm=hm.LifecycleConfiguration.Rule||[]}catch{}Pm=yd.clone(yd.isArray(Pm)?Pm:[Pm]),mm(null,{Rules:Pm,statusCode:hm.statusCode,headers:hm.headers})})}function gf(ih,mm){Pg.call(this,{Action:"name/cos:DeleteBucketLifecycle",method:"DELETE",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"lifecycle",tracker:ih.tracker},function(Qh,hm){if(Qh&&Qh.statusCode===204)return mm(null,{statusCode:Qh.statusCode});if(Qh)return mm(Qh);mm(null,{statusCode:hm.statusCode,headers:hm.headers})})}function Af(ih,mm){if(!ih.VersioningConfiguration){mm(yd.error(new Error("missing param VersioningConfiguration")));return}var Qh=ih.VersioningConfiguration||{},hm=yd.json2xml({VersioningConfiguration:Qh}),Lm=ih.Headers;Lm["Content-Type"]="application/xml",Lm["Content-MD5"]=yd.b64(yd.md5(hm)),Pg.call(this,{Action:"name/cos:PutBucketVersioning",method:"PUT",Bucket:ih.Bucket,Region:ih.Region,body:hm,action:"versioning",headers:Lm,tracker:ih.tracker},function(Pm,Vm){if(Pm&&Pm.statusCode===204)return mm(null,{statusCode:Pm.statusCode});if(Pm)return mm(Pm);mm(null,{statusCode:Vm.statusCode,headers:Vm.headers})})}function Df(ih,mm){Pg.call(this,{Action:"name/cos:GetBucketVersioning",method:"GET",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"versioning",tracker:ih.tracker},function(Qh,hm){Qh||!hm.VersioningConfiguration&&(hm.VersioningConfiguration={}),mm(Qh,hm)})}function kf(ih,mm){var Qh=yd.clone(ih.ReplicationConfiguration),hm=yd.json2xml({ReplicationConfiguration:Qh});hm=hm.replace(/<(\/?)Rules>/gi,"<$1Rule>"),hm=hm.replace(/<(\/?)Tags>/gi,"<$1Tag>");var Lm=ih.Headers;Lm["Content-Type"]="application/xml",Lm["Content-MD5"]=yd.b64(yd.md5(hm)),Pg.call(this,{Action:"name/cos:PutBucketReplication",method:"PUT",Bucket:ih.Bucket,Region:ih.Region,body:hm,action:"replication",headers:Lm,tracker:ih.tracker},function(Pm,Vm){if(Pm&&Pm.statusCode===204)return mm(null,{statusCode:Pm.statusCode});if(Pm)return mm(Pm);mm(null,{statusCode:Vm.statusCode,headers:Vm.headers})})}function Cf(ih,mm){Pg.call(this,{Action:"name/cos:GetBucketReplication",method:"GET",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"replication",tracker:ih.tracker},function(Qh,hm){if(Qh){if(Qh.statusCode===404&&Qh.error&&(Qh.error==="Not Found"||Qh.error.Code==="ReplicationConfigurationnotFoundError")){var Lm={ReplicationConfiguration:{Rules:[]},statusCode:Qh.statusCode};Qh.headers&&(Lm.headers=Qh.headers),mm(null,Lm)}else mm(Qh);return}!hm.ReplicationConfiguration&&(hm.ReplicationConfiguration={}),hm.ReplicationConfiguration.Rule&&(hm.ReplicationConfiguration.Rules=yd.makeArray(hm.ReplicationConfiguration.Rule),delete hm.ReplicationConfiguration.Rule),mm(Qh,hm)})}function If(ih,mm){Pg.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"replication",tracker:ih.tracker},function(Qh,hm){if(Qh&&Qh.statusCode===204)return mm(null,{statusCode:Qh.statusCode});if(Qh)return mm(Qh);mm(null,{statusCode:hm.statusCode,headers:hm.headers})})}function Ff(ih,mm){if(!ih.WebsiteConfiguration){mm(yd.error(new Error("missing param WebsiteConfiguration")));return}var Qh=yd.clone(ih.WebsiteConfiguration||{}),hm=Qh.RoutingRules||Qh.RoutingRule||[];hm=yd.isArray(hm)?hm:[hm],delete Qh.RoutingRule,delete Qh.RoutingRules,hm.length&&(Qh.RoutingRules={RoutingRule:hm});var Lm=yd.json2xml({WebsiteConfiguration:Qh}),Pm=ih.Headers;Pm["Content-Type"]="application/xml",Pm["Content-MD5"]=yd.b64(yd.md5(Lm)),Pg.call(this,{Action:"name/cos:PutBucketWebsite",method:"PUT",Bucket:ih.Bucket,Region:ih.Region,body:Lm,action:"website",headers:Pm,tracker:ih.tracker},function(Vm,Gm){if(Vm&&Vm.statusCode===204)return mm(null,{statusCode:Vm.statusCode});if(Vm)return mm(Vm);mm(null,{statusCode:Gm.statusCode,headers:Gm.headers})})}function oh(ih,mm){Pg.call(this,{Action:"name/cos:GetBucketWebsite",method:"GET",Bucket:ih.Bucket,Region:ih.Region,Key:ih.Key,headers:ih.Headers,action:"website",tracker:ih.tracker},function(Qh,hm){if(Qh){if(Qh.statusCode===404&&Qh.error.Code==="NoSuchWebsiteConfiguration"){var Lm={WebsiteConfiguration:{},statusCode:Qh.statusCode};Qh.headers&&(Lm.headers=Qh.headers),mm(null,Lm)}else mm(Qh);return}var Pm=hm.WebsiteConfiguration||{};if(Pm.RoutingRules){var Vm=yd.clone(Pm.RoutingRules.RoutingRule||[]);Vm=yd.makeArray(Vm),Pm.RoutingRules=Vm}mm(null,{WebsiteConfiguration:Pm,statusCode:hm.statusCode,headers:hm.headers})})}function Eh(ih,mm){Pg.call(this,{Action:"name/cos:DeleteBucketWebsite",method:"DELETE",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"website",tracker:ih.tracker},function(Qh,hm){if(Qh&&Qh.statusCode===204)return mm(null,{statusCode:Qh.statusCode});if(Qh)return mm(Qh);mm(null,{statusCode:hm.statusCode,headers:hm.headers})})}function _h(ih,mm){if(!ih.RefererConfiguration){mm(yd.error(new Error("missing param RefererConfiguration")));return}var Qh=yd.clone(ih.RefererConfiguration||{}),hm=Qh.DomainList||{},Lm=hm.Domains||hm.Domain||[];Lm=yd.isArray(Lm)?Lm:[Lm],Lm.length&&(Qh.DomainList={Domain:Lm});var Pm=yd.json2xml({RefererConfiguration:Qh}),Vm=ih.Headers;Vm["Content-Type"]="application/xml",Vm["Content-MD5"]=yd.b64(yd.md5(Pm)),Pg.call(this,{Action:"name/cos:PutBucketReferer",method:"PUT",Bucket:ih.Bucket,Region:ih.Region,body:Pm,action:"referer",headers:Vm,tracker:ih.tracker},function(Gm,Tm){if(Gm&&Gm.statusCode===204)return mm(null,{statusCode:Gm.statusCode});if(Gm)return mm(Gm);mm(null,{statusCode:Tm.statusCode,headers:Tm.headers})})}function Mh(ih,mm){Pg.call(this,{Action:"name/cos:GetBucketReferer",method:"GET",Bucket:ih.Bucket,Region:ih.Region,Key:ih.Key,headers:ih.Headers,action:"referer",tracker:ih.tracker},function(Qh,hm){if(Qh){if(Qh.statusCode===404&&Qh.error.Code==="NoSuchRefererConfiguration"){var Lm={WebsiteConfiguration:{},statusCode:Qh.statusCode};Qh.headers&&(Lm.headers=Qh.headers),mm(null,Lm)}else mm(Qh);return}var Pm=hm.RefererConfiguration||{};if(Pm.DomainList){var Vm=yd.makeArray(Pm.DomainList.Domain||[]);Pm.DomainList={Domains:Vm}}mm(null,{RefererConfiguration:Pm,statusCode:hm.statusCode,headers:hm.headers})})}function lh(ih,mm){var Qh=ih.DomainConfiguration||{},hm=Qh.DomainRule||ih.DomainRule||[];hm=yd.clone(hm);var Lm=yd.json2xml({DomainConfiguration:{DomainRule:hm}}),Pm=ih.Headers;Pm["Content-Type"]="application/xml",Pm["Content-MD5"]=yd.b64(yd.md5(Lm)),Pg.call(this,{Action:"name/cos:PutBucketDomain",method:"PUT",Bucket:ih.Bucket,Region:ih.Region,body:Lm,action:"domain",headers:Pm,tracker:ih.tracker},function(Vm,Gm){if(Vm&&Vm.statusCode===204)return mm(null,{statusCode:Vm.statusCode});if(Vm)return mm(Vm);mm(null,{statusCode:Gm.statusCode,headers:Gm.headers})})}function rh(ih,mm){Pg.call(this,{Action:"name/cos:GetBucketDomain",method:"GET",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"domain",tracker:ih.tracker},function(Qh,hm){if(Qh)return mm(Qh);var Lm=[];try{Lm=hm.DomainConfiguration.DomainRule||[]}catch{}Lm=yd.clone(yd.isArray(Lm)?Lm:[Lm]),mm(null,{DomainRule:Lm,statusCode:hm.statusCode,headers:hm.headers})})}function mh(ih,mm){Pg.call(this,{Action:"name/cos:DeleteBucketDomain",method:"DELETE",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"domain",tracker:ih.tracker},function(Qh,hm){if(Qh&&Qh.statusCode===204)return mm(null,{statusCode:Qh.statusCode});if(Qh)return mm(Qh);mm(null,{statusCode:hm.statusCode,headers:hm.headers})})}function xh(ih,mm){var Qh=ih.OriginConfiguration||{},hm=Qh.OriginRule||ih.OriginRule||[];hm=yd.clone(hm);var Lm=yd.json2xml({OriginConfiguration:{OriginRule:hm}}),Pm=ih.Headers;Pm["Content-Type"]="application/xml",Pm["Content-MD5"]=yd.b64(yd.md5(Lm)),Pg.call(this,{Action:"name/cos:PutBucketOrigin",method:"PUT",Bucket:ih.Bucket,Region:ih.Region,body:Lm,action:"origin",headers:Pm,tracker:ih.tracker},function(Vm,Gm){if(Vm&&Vm.statusCode===204)return mm(null,{statusCode:Vm.statusCode});if(Vm)return mm(Vm);mm(null,{statusCode:Gm.statusCode,headers:Gm.headers})})}function Sh(ih,mm){Pg.call(this,{Action:"name/cos:GetBucketOrigin",method:"GET",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"origin",tracker:ih.tracker},function(Qh,hm){if(Qh)return mm(Qh);var Lm=[];try{Lm=hm.OriginConfiguration.OriginRule||[]}catch{}Lm=yd.clone(yd.isArray(Lm)?Lm:[Lm]),mm(null,{OriginRule:Lm,statusCode:hm.statusCode,headers:hm.headers})})}function Of(ih,mm){Pg.call(this,{Action:"name/cos:DeleteBucketOrigin",method:"DELETE",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"origin",tracker:ih.tracker},function(Qh,hm){if(Qh&&Qh.statusCode===204)return mm(null,{statusCode:Qh.statusCode});if(Qh)return mm(Qh);mm(null,{statusCode:hm.statusCode,headers:hm.headers})})}function Rf(ih,mm){var Qh=yd.json2xml({BucketLoggingStatus:ih.BucketLoggingStatus||""}),hm=ih.Headers;hm["Content-Type"]="application/xml",hm["Content-MD5"]=yd.b64(yd.md5(Qh)),Pg.call(this,{Action:"name/cos:PutBucketLogging",method:"PUT",Bucket:ih.Bucket,Region:ih.Region,body:Qh,action:"logging",headers:hm,tracker:ih.tracker},function(Lm,Pm){if(Lm&&Lm.statusCode===204)return mm(null,{statusCode:Lm.statusCode});if(Lm)return mm(Lm);mm(null,{statusCode:Pm.statusCode,headers:Pm.headers})})}function yh(ih,mm){Pg.call(this,{Action:"name/cos:GetBucketLogging",method:"GET",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"logging",tracker:ih.tracker},function(Qh,hm){if(Qh)return mm(Qh);mm(null,{BucketLoggingStatus:hm.BucketLoggingStatus,statusCode:hm.statusCode,headers:hm.headers})})}function Ph(ih,mm,Qh){var hm=yd.clone(mm.InventoryConfiguration);if(hm.OptionalFields){var Lm=hm.OptionalFields||[];hm.OptionalFields={Field:Lm}}if(hm.Destination&&hm.Destination.COSBucketDestination&&hm.Destination.COSBucketDestination.Encryption){var Pm=hm.Destination.COSBucketDestination.Encryption;Object.keys(Pm).indexOf("SSECOS")>-1&&(Pm["SSE-COS"]=Pm.SSECOS,delete Pm.SSECOS)}var Vm=yd.json2xml({InventoryConfiguration:hm}),Gm=mm.Headers;Gm["Content-Type"]="application/xml",Gm["Content-MD5"]=yd.b64(yd.md5(Vm));var Tm=ih==="PUT"?"name/cos:PutBucketInventory":"name/cos:PostBucketInventory";Pg.call(this,{Action:Tm,method:ih,Bucket:mm.Bucket,Region:mm.Region,body:Vm,action:"inventory",qs:{id:mm.Id},headers:Gm,tracker:mm.tracker},function(lg,hg){if(lg&&lg.statusCode===204)return Qh(null,{statusCode:lg.statusCode});if(lg)return Qh(lg);Qh(null,{statusCode:hg.statusCode,headers:hg.headers})})}function sm(ih,mm){return Ph.call(this,"PUT",ih,mm)}function th(ih,mm){return Ph.call(this,"POST",ih,mm)}function sh(ih,mm){Pg.call(this,{Action:"name/cos:GetBucketInventory",method:"GET",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"inventory",qs:{id:ih.Id},tracker:ih.tracker},function(Qh,hm){if(Qh)return mm(Qh);var Lm=hm.InventoryConfiguration;if(Lm&&Lm.OptionalFields&&Lm.OptionalFields.Field){var Pm=Lm.OptionalFields.Field;yd.isArray(Pm)||(Pm=[Pm]),Lm.OptionalFields=Pm}if(Lm.Destination&&Lm.Destination.COSBucketDestination&&Lm.Destination.COSBucketDestination.Encryption){var Vm=Lm.Destination.COSBucketDestination.Encryption;Object.keys(Vm).indexOf("SSE-COS")>-1&&(Vm.SSECOS=Vm["SSE-COS"],delete Vm["SSE-COS"])}mm(null,{InventoryConfiguration:Lm,statusCode:hm.statusCode,headers:hm.headers})})}function Zh(ih,mm){Pg.call(this,{Action:"name/cos:ListBucketInventory",method:"GET",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"inventory",qs:{"continuation-token":ih.ContinuationToken},tracker:ih.tracker},function(Qh,hm){if(Qh)return mm(Qh);var Lm=hm.ListInventoryConfigurationResult,Pm=Lm.InventoryConfiguration||[];Pm=yd.isArray(Pm)?Pm:[Pm],delete Lm.InventoryConfiguration,yd.each(Pm,function(Vm){if(Vm&&Vm.OptionalFields&&Vm.OptionalFields.Field){var Gm=Vm.OptionalFields.Field;yd.isArray(Gm)||(Gm=[Gm]),Vm.OptionalFields=Gm}if(Vm.Destination&&Vm.Destination.COSBucketDestination&&Vm.Destination.COSBucketDestination.Encryption){var Tm=Vm.Destination.COSBucketDestination.Encryption;Object.keys(Tm).indexOf("SSE-COS")>-1&&(Tm.SSECOS=Tm["SSE-COS"],delete Tm["SSE-COS"])}}),Lm.InventoryConfigurations=Pm,yd.extend(Lm,{statusCode:hm.statusCode,headers:hm.headers}),mm(null,Lm)})}function Sm(ih,mm){Pg.call(this,{Action:"name/cos:DeleteBucketInventory",method:"DELETE",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"inventory",qs:{id:ih.Id},tracker:ih.tracker},function(Qh,hm){if(Qh&&Qh.statusCode===204)return mm(null,{statusCode:Qh.statusCode});if(Qh)return mm(Qh);mm(null,{statusCode:hm.statusCode,headers:hm.headers})})}function $h(ih,mm){if(!ih.AccelerateConfiguration){mm(yd.error(new Error("missing param AccelerateConfiguration")));return}var Qh={AccelerateConfiguration:ih.AccelerateConfiguration||{}},hm=yd.json2xml(Qh),Lm={};Lm["Content-Type"]="application/xml",Lm["Content-MD5"]=yd.b64(yd.md5(hm)),Pg.call(this,{Action:"name/cos:PutBucketAccelerate",method:"PUT",Bucket:ih.Bucket,Region:ih.Region,body:hm,action:"accelerate",headers:Lm,tracker:ih.tracker},function(Pm,Vm){if(Pm)return mm(Pm);mm(null,{statusCode:Vm.statusCode,headers:Vm.headers})})}function Vf(ih,mm){Pg.call(this,{Action:"name/cos:GetBucketAccelerate",method:"GET",Bucket:ih.Bucket,Region:ih.Region,action:"accelerate",tracker:ih.tracker},function(Qh,hm){Qh||!hm.AccelerateConfiguration&&(hm.AccelerateConfiguration={}),mm(Qh,hm)})}function nh(ih,mm){var Qh=ih.ServerSideEncryptionConfiguration||{},hm=Qh.Rule||Qh.Rules||[],Lm=yd.json2xml({ServerSideEncryptionConfiguration:{Rule:hm}}),Pm=ih.Headers;Pm["Content-Type"]="application/xml",Pm["Content-MD5"]=yd.b64(yd.md5(Lm)),Pg.call(this,{Action:"name/cos:PutBucketEncryption",method:"PUT",Bucket:ih.Bucket,Region:ih.Region,body:Lm,action:"encryption",headers:Pm,tracker:ih.tracker},function(Vm,Gm){if(Vm&&Vm.statusCode===204)return mm(null,{statusCode:Vm.statusCode});if(Vm)return mm(Vm);mm(null,{statusCode:Gm.statusCode,headers:Gm.headers})})}function Lh(ih,mm){Pg.call(this,{Action:"name/cos:GetBucketEncryption",method:"GET",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"encryption",tracker:ih.tracker},function(Qh,hm){if(Qh){if(Qh.statusCode===404&&Qh.code==="NoSuchEncryptionConfiguration"){var Lm={EncryptionConfiguration:{Rules:[]},statusCode:Qh.statusCode};Qh.headers&&(Lm.headers=Qh.headers),mm(null,Lm)}else mm(Qh);return}var Pm=yd.makeArray(hm.EncryptionConfiguration&&hm.EncryptionConfiguration.Rule||[]);hm.EncryptionConfiguration={Rules:Pm},mm(Qh,hm)})}function Ih(ih,mm){Pg.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"encryption",tracker:ih.tracker},function(Qh,hm){if(Qh&&Qh.statusCode===204)return mm(null,{statusCode:Qh.statusCode});if(Qh)return mm(Qh);mm(null,{statusCode:hm.statusCode,headers:hm.headers})})}function om(ih,mm){Pg.call(this,{Action:"name/cos:HeadObject",method:"HEAD",Bucket:ih.Bucket,Region:ih.Region,Key:ih.Key,VersionId:ih.VersionId,headers:ih.Headers,tracker:ih.tracker},function(Qh,hm){if(Qh){var Lm=Qh.statusCode;return ih.Headers["If-Modified-Since"]&&Lm&&Lm===304?mm(null,{NotModified:!0,statusCode:Lm}):mm(Qh)}hm.ETag=yd.attr(hm.headers,"etag",""),mm(null,hm)})}function zh(ih,mm){var Qh={};Qh.prefix=ih.Prefix||"",Qh.delimiter=ih.Delimiter,Qh["key-marker"]=ih.KeyMarker,Qh["version-id-marker"]=ih.VersionIdMarker,Qh["max-keys"]=ih.MaxKeys,Qh["encoding-type"]=ih.EncodingType,Pg.call(this,{Action:"name/cos:GetBucketObjectVersions",ResourceKey:Qh.prefix,method:"GET",Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,qs:Qh,action:"versions",tracker:ih.tracker},function(hm,Lm){if(hm)return mm(hm);var Pm=Lm.ListVersionsResult||{},Vm=Pm.DeleteMarker||[];Vm=yd.isArray(Vm)?Vm:[Vm];var Gm=Pm.Version||[];Gm=yd.isArray(Gm)?Gm:[Gm];var Tm=yd.clone(Pm);delete Tm.DeleteMarker,delete Tm.Version,yd.extend(Tm,{DeleteMarkers:Vm,Versions:Gm,statusCode:Lm.statusCode,headers:Lm.headers}),mm(null,Tm)})}function Mm(ih,mm){if(this.options.ObjectKeySimplifyCheck){var Qh=yd.simplifyPath(ih.Key);if(Qh==="/"){mm(yd.error(new Error("The Getobject Key is illegal")));return}}var hm=ih.Query||{},Lm=ih.QueryString||"",Pm=yd.throttleOnProgress.call(this,0,ih.onProgress),Vm=ih.tracker;Vm&&Vm.setParams({signStartTime:new Date().getTime()}),hm["response-content-type"]=ih.ResponseContentType,hm["response-content-language"]=ih.ResponseContentLanguage,hm["response-expires"]=ih.ResponseExpires,hm["response-cache-control"]=ih.ResponseCacheControl,hm["response-content-disposition"]=ih.ResponseContentDisposition,hm["response-content-encoding"]=ih.ResponseContentEncoding,Pg.call(this,{Action:"name/cos:GetObject",method:"GET",Bucket:ih.Bucket,Region:ih.Region,Key:ih.Key,VersionId:ih.VersionId,DataType:ih.DataType,headers:ih.Headers,qs:hm,qsStr:Lm,rawBody:!0,onDownloadProgress:Pm,tracker:Vm},function(Gm,Tm){if(Pm(null,!0),Gm){var lg=Gm.statusCode;return ih.Headers["If-Modified-Since"]&&lg&&lg===304?mm(null,{NotModified:!0}):mm(Gm)}mm(null,{Body:Tm.body,ETag:yd.attr(Tm.headers,"etag",""),statusCode:Tm.statusCode,headers:Tm.headers})})}function Nm(ih,mm){var Qh=this,hm=ih.ContentLength,Lm=yd.throttleOnProgress.call(Qh,hm,ih.onProgress),Pm=ih.Headers;!Pm["Cache-Control"]&&!Pm["cache-control"]&&(Pm["Cache-Control"]=""),!Pm["Content-Type"]&&!Pm["content-type"]&&(Pm["Content-Type"]=ih.Body&&ih.Body.type||"");var Vm=ih.UploadAddMetaMd5||Qh.options.UploadAddMetaMd5||Qh.options.UploadCheckContentMd5,Gm=ih.tracker;Vm&&Gm&&Gm.setParams({md5StartTime:new Date().getTime()}),yd.getBodyMd5(Vm,ih.Body,function(Tm){Tm&&(Gm&&Gm.setParams({md5EndTime:new Date().getTime()}),Qh.options.UploadCheckContentMd5&&(Pm["Content-MD5"]=yd.b64(Tm)),(ih.UploadAddMetaMd5||Qh.options.UploadAddMetaMd5)&&(Pm["x-cos-meta-md5"]=Tm)),ih.ContentLength!==void 0&&(Pm["Content-Length"]=ih.ContentLength),Lm(null,!0),Pg.call(Qh,{Action:"name/cos:PutObject",TaskId:ih.TaskId,method:"PUT",Bucket:ih.Bucket,Region:ih.Region,Key:ih.Key,headers:ih.Headers,qs:ih.Query,body:ih.Body,onProgress:Lm,tracker:Gm},function(lg,hg){if(lg)return Lm(null,!0),mm(lg);Lm({loaded:hm,total:hm},!0);var zg=S_({ForcePathStyle:Qh.options.ForcePathStyle,protocol:Qh.options.Protocol,domain:Qh.options.Domain,bucket:ih.Bucket,region:Qh.options.UseAccelerate?"accelerate":ih.Region,object:ih.Key});zg=zg.substr(zg.indexOf("://")+3),hg.Location=zg,hg.ETag=yd.attr(hg.headers,"etag",""),mm(null,hg)})},ih.onHashProgress)}function Zm(ih,mm){Pg.call(this,{Action:"name/cos:DeleteObject",method:"DELETE",Bucket:ih.Bucket,Region:ih.Region,Key:ih.Key,headers:ih.Headers,VersionId:ih.VersionId,action:ih.Recursive?"recursive":"",tracker:ih.tracker},function(Qh,hm){if(Qh){var Lm=Qh.statusCode;return Lm&&Lm===404?mm(null,{BucketNotFound:!0,statusCode:Lm}):mm(Qh)}mm(null,{statusCode:hm.statusCode,headers:hm.headers})})}function Ym(ih,mm){var Qh={};ih.VersionId&&(Qh.versionId=ih.VersionId),Pg.call(this,{Action:"name/cos:GetObjectACL",method:"GET",Bucket:ih.Bucket,Region:ih.Region,Key:ih.Key,headers:ih.Headers,qs:Qh,action:"acl",tracker:ih.tracker},function(hm,Lm){if(hm)return mm(hm);var Pm=Lm.AccessControlPolicy||{},Vm=Pm.Owner||{},Gm=Pm.AccessControlList&&Pm.AccessControlList.Grant||[];Gm=yd.isArray(Gm)?Gm:[Gm];var Tm=r_(Pm);delete Tm.GrantWrite,Lm.headers&&Lm.headers["x-cos-acl"]&&(Tm.ACL=Lm.headers["x-cos-acl"]),Tm=yd.extend(Tm,{Owner:Vm,Grants:Gm,statusCode:Lm.statusCode,headers:Lm.headers}),mm(null,Tm)})}function jm(ih,mm){var Qh=ih.Headers,hm="";if(ih.AccessControlPolicy){var Lm=yd.clone(ih.AccessControlPolicy||{}),Pm=Lm.Grants||Lm.Grant;Pm=yd.isArray(Pm)?Pm:[Pm],delete Lm.Grant,delete Lm.Grants,Lm.AccessControlList={Grant:Pm},hm=yd.json2xml({AccessControlPolicy:Lm}),Qh["Content-Type"]="application/xml",Qh["Content-MD5"]=yd.b64(yd.md5(hm))}yd.each(Qh,function(Vm,Gm){Gm.indexOf("x-cos-grant-")===0&&(Qh[Gm]=O_(Qh[Gm]))}),Pg.call(this,{Action:"name/cos:PutObjectACL",method:"PUT",Bucket:ih.Bucket,Region:ih.Region,Key:ih.Key,action:"acl",headers:Qh,body:hm,tracker:ih.tracker},function(Vm,Gm){if(Vm)return mm(Vm);mm(null,{statusCode:Gm.statusCode,headers:Gm.headers})})}function rg(ih,mm){var Qh=ih.Headers;Qh.Origin=ih.Origin,Qh["Access-Control-Request-Method"]=ih.AccessControlRequestMethod,Qh["Access-Control-Request-Headers"]=ih.AccessControlRequestHeaders,Pg.call(this,{Action:"name/cos:OptionsObject",method:"OPTIONS",Bucket:ih.Bucket,Region:ih.Region,Key:ih.Key,headers:Qh,tracker:ih.tracker},function(hm,Lm){if(hm)return hm.statusCode&&hm.statusCode===403?mm(null,{OptionsForbidden:!0,statusCode:hm.statusCode}):mm(hm);var Pm=Lm.headers||{};mm(null,{AccessControlAllowOrigin:Pm["access-control-allow-origin"],AccessControlAllowMethods:Pm["access-control-allow-methods"],AccessControlAllowHeaders:Pm["access-control-allow-headers"],AccessControlExposeHeaders:Pm["access-control-expose-headers"],AccessControlMaxAge:Pm["access-control-max-age"],statusCode:Lm.statusCode,headers:Lm.headers})})}function pg(ih,mm){var Qh=this,hm=ih.Headers;!hm["Cache-Control"]&&!hm["cache-control"]&&(hm["Cache-Control"]="");var Lm=ih.CopySource||"",Pm=yd.getSourceParams.call(this,Lm);if(!Pm){mm(yd.error(new Error("CopySource format error")));return}var Vm=Pm.Bucket,Gm=Pm.Region,Tm=decodeURIComponent(Pm.Key);Pg.call(this,{Scope:[{action:"name/cos:GetObject",bucket:Vm,region:Gm,prefix:Tm},{action:"name/cos:PutObject",bucket:ih.Bucket,region:ih.Region,prefix:ih.Key}],method:"PUT",Bucket:ih.Bucket,Region:ih.Region,Key:ih.Key,VersionId:ih.VersionId,headers:ih.Headers,tracker:ih.tracker},function(lg,hg){if(lg)return mm(lg);var zg=yd.clone(hg.CopyObjectResult||{}),Tg=S_({ForcePathStyle:Qh.options.ForcePathStyle,protocol:Qh.options.Protocol,domain:Qh.options.Domain,bucket:ih.Bucket,region:ih.Region,object:ih.Key,isLocation:!0});yd.extend(zg,{Location:Tg,statusCode:hg.statusCode,headers:hg.headers}),mm(null,zg)})}function jh(ih,mm){var Qh=ih.CopySource||"",hm=yd.getSourceParams.call(this,Qh);if(!hm){mm(yd.error(new Error("CopySource format error")));return}var Lm=hm.Bucket,Pm=hm.Region,Vm=decodeURIComponent(hm.Key);Pg.call(this,{Scope:[{action:"name/cos:GetObject",bucket:Lm,region:Pm,prefix:Vm},{action:"name/cos:PutObject",bucket:ih.Bucket,region:ih.Region,prefix:ih.Key}],method:"PUT",Bucket:ih.Bucket,Region:ih.Region,Key:ih.Key,VersionId:ih.VersionId,qs:{partNumber:ih.PartNumber,uploadId:ih.UploadId},headers:ih.Headers,tracker:ih.tracker},function(Gm,Tm){if(Gm)return mm(Gm);var lg=yd.clone(Tm.CopyPartResult||{});yd.extend(lg,{statusCode:Tm.statusCode,headers:Tm.headers}),mm(null,lg)})}function Pf(ih,mm){var Qh=ih.Objects||[],hm=ih.Quiet;Qh=yd.isArray(Qh)?Qh:[Qh];var Lm=yd.json2xml({Delete:{Object:Qh,Quiet:hm||!1}}),Pm=ih.Headers;Pm["Content-Type"]="application/xml",Pm["Content-MD5"]=yd.b64(yd.md5(Lm));var Vm=yd.map(Qh,function(Gm){return{action:"name/cos:DeleteObject",bucket:ih.Bucket,region:ih.Region,prefix:Gm.Key}});Pg.call(this,{Scope:Vm,method:"POST",Bucket:ih.Bucket,Region:ih.Region,body:Lm,action:"delete",headers:Pm,tracker:ih.tracker},function(Gm,Tm){if(Gm)return mm(Gm);var lg=Tm.DeleteResult||{},hg=lg.Deleted||[],zg=lg.Error||[];hg=yd.isArray(hg)?hg:[hg],zg=yd.isArray(zg)?zg:[zg];var Tg=yd.clone(lg);yd.extend(Tg,{Error:zg,Deleted:hg,statusCode:Tm.statusCode,headers:Tm.headers}),mm(null,Tg)})}function $f(ih,mm){var Qh=ih.Headers;if(!ih.RestoreRequest){mm(yd.error(new Error("missing param RestoreRequest")));return}var hm=ih.RestoreRequest||{},Lm=yd.json2xml({RestoreRequest:hm});Qh["Content-Type"]="application/xml",Qh["Content-MD5"]=yd.b64(yd.md5(Lm)),Pg.call(this,{Action:"name/cos:RestoreObject",method:"POST",Bucket:ih.Bucket,Region:ih.Region,Key:ih.Key,VersionId:ih.VersionId,body:Lm,action:"restore",headers:Qh,tracker:ih.tracker},mm)}function Nh(ih,mm){var Qh=ih.Tagging||{},hm=Qh.TagSet||Qh.Tags||ih.Tags||[];hm=yd.clone(yd.isArray(hm)?hm:[hm]);var Lm=yd.json2xml({Tagging:{TagSet:{Tag:hm}}}),Pm=ih.Headers;Pm["Content-Type"]="application/xml",Pm["Content-MD5"]=yd.b64(yd.md5(Lm)),Pg.call(this,{Action:"name/cos:PutObjectTagging",method:"PUT",Bucket:ih.Bucket,Key:ih.Key,Region:ih.Region,body:Lm,action:"tagging",headers:Pm,VersionId:ih.VersionId,tracker:ih.tracker},function(Vm,Gm){if(Vm&&Vm.statusCode===204)return mm(null,{statusCode:Vm.statusCode});if(Vm)return mm(Vm);mm(null,{statusCode:Gm.statusCode,headers:Gm.headers})})}function Wh(ih,mm){Pg.call(this,{Action:"name/cos:GetObjectTagging",method:"GET",Key:ih.Key,Bucket:ih.Bucket,Region:ih.Region,headers:ih.Headers,action:"tagging",VersionId:ih.VersionId,tracker:ih.tracker},function(Qh,hm){if(Qh){if(Qh.statusCode===404&&Qh.error&&(Qh.error==="Not Found"||Qh.error.Code==="NoSuchTagSet")){var Lm={Tags:[],statusCode:Qh.statusCode};Qh.headers&&(Lm.headers=Qh.headers),mm(null,Lm)}else mm(Qh);return}var Pm=[];try{Pm=hm.Tagging.TagSet.Tag||[]}catch{}Pm=yd.clone(yd.isArray(Pm)?Pm:[Pm]),mm(null,{Tags:Pm,statusCode:hm.statusCode,headers:hm.headers})})}function _m(ih,mm){Pg.call(this,{Action:"name/cos:DeleteObjectTagging",method:"DELETE",Bucket:ih.Bucket,Region:ih.Region,Key:ih.Key,headers:ih.Headers,action:"tagging",VersionId:ih.VersionId,tracker:ih.tracker},function(Qh,hm){if(Qh&&Qh.statusCode===204)return mm(null,{statusCode:Qh.statusCode});if(Qh)return mm(Qh);mm(null,{statusCode:hm.statusCode,headers:hm.headers})})}function Om(ih,mm){var Qh=ih.SelectType;if(!Qh)return mm(yd.error(new Error("missing param SelectType")));var hm=ih.SelectRequest||{},Lm=yd.json2xml({SelectRequest:hm}),Pm=ih.Headers;Pm["Content-Type"]="application/xml",Pm["Content-MD5"]=yd.b64(yd.md5(Lm)),Pg.call(this,{Action:"name/cos:GetObject",method:"POST",Bucket:ih.Bucket,Region:ih.Region,Key:ih.Key,headers:ih.Headers,action:"select",qs:{"select-type":ih.SelectType},VersionId:ih.VersionId,body:Lm,DataType:"arraybuffer",rawBody:!0,tracker:ih.tracker},function(Vm,Gm){if(Vm&&Vm.statusCode===204)return mm(null,{statusCode:Vm.statusCode});if(Vm)return mm(Vm);var Tm=yd.parseSelectPayload(Gm.body);mm(null,{statusCode:Gm.statusCode,headers:Gm.headers,Body:Tm.body,Payload:Tm.payload})})}function Wm(ih,mm){var Qh=this,hm=ih.Headers,Lm=ih.tracker;!hm["Cache-Control"]&&!hm["cache-control"]&&(hm["Cache-Control"]=""),!hm["Content-Type"]&&!hm["content-type"]&&(hm["Content-Type"]=ih.Body&&ih.Body.type||"");var Pm=ih.Body&&(ih.UploadAddMetaMd5||Qh.options.UploadAddMetaMd5);Pm&&Lm&&Lm.setParams({md5StartTime:new Date().getTime()}),yd.getBodyMd5(Pm,ih.Body,function(Vm){Vm&&(ih.Headers["x-cos-meta-md5"]=Vm),Pm&&Lm&&Lm.setParams({md5EndTime:new Date().getTime()}),Pg.call(Qh,{Action:"name/cos:InitiateMultipartUpload",method:"POST",Bucket:ih.Bucket,Region:ih.Region,Key:ih.Key,action:"uploads",headers:ih.Headers,qs:ih.Query,tracker:Lm},function(Gm,Tm){if(Gm)return Lm&&Lm.parent&&Lm.parent.setParams({errorNode:"multipartInit"}),mm(Gm);if(Tm=yd.clone(Tm||{}),Tm&&Tm.InitiateMultipartUploadResult)return mm(null,yd.extend(Tm.InitiateMultipartUploadResult,{statusCode:Tm.statusCode,headers:Tm.headers}));mm(null,Tm)})},ih.onHashProgress)}function Ag(ih,mm){var Qh=this;yd.getFileSize("multipartUpload",ih,function(){var hm=ih.tracker,Lm=Qh.options.UploadCheckContentMd5;Lm&&hm&&hm.setParams({md5StartTime:new Date().getTime()}),yd.getBodyMd5(Lm,ih.Body,function(Pm){Pm&&(ih.Headers["Content-MD5"]=yd.b64(Pm)),Lm&&hm&&hm.setParams({md5EndTime:new Date().getTime()}),hm&&hm.setParams({partNumber:ih.PartNumber}),Pg.call(Qh,{Action:"name/cos:UploadPart",TaskId:ih.TaskId,method:"PUT",Bucket:ih.Bucket,Region:ih.Region,Key:ih.Key,qs:{partNumber:ih.PartNumber,uploadId:ih.UploadId},headers:ih.Headers,onProgress:ih.onProgress,body:ih.Body||null,tracker:hm},function(Vm,Gm){if(Vm)return hm&&hm.parent&&hm.parent.setParams({errorNode:"multipartUpload"}),mm(Vm);mm(null,{ETag:yd.attr(Gm.headers,"etag",""),statusCode:Gm.statusCode,headers:Gm.headers})})})})}function sg(ih,mm){for(var Qh=this,hm=ih.UploadId,Lm=ih.Parts,Pm=ih.tracker,Vm=0,Gm=Lm.length;Vm-1?zg(hg.Authorization):"sign="+encodeURIComponent(hg.Authorization)),hg.SecurityToken&&(Tg+="&x-cos-security-token="+hg.SecurityToken),hg.ClientIP&&(Tg+="&clientIP="+hg.ClientIP),hg.ClientUA&&(Tg+="&clientUA="+hg.ClientUA),hg.Token&&(Tg+="&token="+hg.Token),Pm&&(Tg+="&"+Pm),setTimeout(function(){mm(null,{Url:Tg})})}});return Tm?(Vm+="?"+Tm.Authorization+(Tm.SecurityToken?"&x-cos-security-token="+Tm.SecurityToken:""),Pm&&(Vm+="&"+Pm)):Pm&&(Vm+="?"+Pm),Vm}function r_(ih){var mm={GrantFullControl:[],GrantWrite:[],GrantRead:[],GrantReadAcp:[],GrantWriteAcp:[],ACL:""},Qh={FULL_CONTROL:"GrantFullControl",WRITE:"GrantWrite",READ:"GrantRead",READ_ACP:"GrantReadAcp",WRITE_ACP:"GrantWriteAcp"},hm=ih&&ih.AccessControlList||{},Lm=hm.Grant;Lm&&(Lm=yd.isArray(Lm)?Lm:[Lm]);var Pm={READ:0,WRITE:0,FULL_CONTROL:0};return Lm&&Lm.length&&yd.each(Lm,function(Vm){var Gm=Vm.Grantee.URI&&Vm.Grantee.URI.endsWith("/groups/global/AllUsers");Vm.Grantee.ID==="qcs::cam::anyone:anyone"||Gm?Pm[Vm.Permission]=1:Vm.Grantee.ID!==ih.Owner.ID&&mm[Qh[Vm.Permission]].push('id="'+Vm.Grantee.ID+'"')}),Pm.FULL_CONTROL||Pm.WRITE&&Pm.READ?mm.ACL="public-read-write":Pm.READ?mm.ACL="public-read":mm.ACL="private",yd.each(Qh,function(Vm){mm[Vm]=O_(mm[Vm].join(","))}),mm}function O_(ih){var mm=ih.split(","),Qh={},hm,Lm;for(hm=0;hm"u"?"undefined":md(location))==="object"&&location.protocol==="http:"?"http:":"https:");Pm||(["cn-south","cn-south-2","cn-north","cn-east","cn-southwest","sg"].indexOf(mm)>-1?Pm="{Region}.myqcloud.com":Pm="cos.{Region}.myqcloud.com",ih.ForcePathStyle||(Pm="{Bucket}."+Pm)),Pm=Pm.replace(/\{\{AppId\}\}/gi,Lm).replace(/\{\{Bucket\}\}/gi,hm).replace(/\{\{Region\}\}/gi,mm).replace(/\{\{.*?\}\}/gi,""),Pm=Pm.replace(/\{AppId\}/gi,Lm).replace(/\{BucketName\}/gi,hm).replace(/\{Bucket\}/gi,Qh).replace(/\{Region\}/gi,mm).replace(/\{.*?\}/gi,""),/^[a-zA-Z]+:\/\//.test(Pm)||(Pm=Gm+"//"+Pm),Pm.slice(-1)==="/"&&(Pm=Pm.slice(0,-1));var Tm=Pm;return ih.ForcePathStyle&&(Tm+="/"+Qh),Tm+="/",Vm&&(Tm+=yd.camSafeUrlEncode(Vm).replace(/%2F/g,"/")),ih.isLocation&&(Tm=Tm.replace(/^https?:\/\//,"")),Tm}var Q_=function(mm){if(!mm.Bucket||!mm.Region)return"";var Qh=mm.UseAccelerate===void 0?this.options.UseAccelerate:mm.UseAccelerate,hm=mm.Url||S_({ForcePathStyle:this.options.ForcePathStyle,protocol:this.options.Protocol,domain:this.options.Domain,bucket:mm.Bucket,region:Qh?"accelerate":mm.Region}),Lm=hm.replace(/^https?:\/\/([^/]+)(\/.*)?$/,"$1");return Lm};function t0(ih,mm){var Qh=yd.clone(ih.Headers),hm="";yd.each(Qh,function(g_,s_){(g_===""||["content-type","cache-control","expires"].indexOf(s_.toLowerCase())>-1)&&delete Qh[s_],s_.toLowerCase()==="host"&&(hm=g_)});var Lm=ih.ForceSignHost!==!1;!hm&&ih.SignHost&&Lm&&(Qh.Host=ih.SignHost);var Pm=!1,Vm=function(s_,Hh){Pm||(Pm=!0,Hh&&Hh.XCosSecurityToken&&!Hh.SecurityToken&&(Hh=yd.clone(Hh),Hh.SecurityToken=Hh.XCosSecurityToken,delete Hh.XCosSecurityToken),mm&&mm(s_,Hh))},Gm=this,Tm=ih.Bucket||"",lg=ih.Region||"",hg=ih.Key||"";Gm.options.ForcePathStyle&&Tm&&(hg=Tm+"/"+hg);var zg="/"+hg,Tg={},Xg=ih.Scope;if(!Xg){var D_=ih.Action||"",A_=ih.ResourceKey||ih.Key||"";Xg=ih.Scope||[{action:D_,bucket:Tm,region:lg,prefix:A_}]}var f_=yd.md5(JSON.stringify(Xg));Gm._StsCache=Gm._StsCache||[],function(){var g_,s_;for(g_=Gm._StsCache.length-1;g_>=0;g_--){s_=Gm._StsCache[g_];var Hh=Math.round(yd.getSkewTime(Gm.options.SystemClockOffset)/1e3)+30;if(s_.StartTime&&Hh=s_.ExpiredTime){Gm._StsCache.splice(g_,1);continue}if(!s_.ScopeLimit||s_.ScopeLimit&&s_.ScopeKey===f_){Tg=s_;break}}}();var Mg=function(){var s_="";Tg.StartTime&&ih.Expires?s_=Tg.StartTime+";"+(Tg.StartTime+ih.Expires*1):Tg.StartTime&&Tg.ExpiredTime&&(s_=Tg.StartTime+";"+Tg.ExpiredTime);var Hh=yd.getAuth({SecretId:Tg.TmpSecretId,SecretKey:Tg.TmpSecretKey,Method:ih.Method,Pathname:zg,Query:ih.Query,Headers:Qh,Expires:ih.Expires,UseRawKey:Gm.options.UseRawKey,SystemClockOffset:Gm.options.SystemClockOffset,KeyTime:s_,ForceSignHost:Lm}),$m={Authorization:Hh,SecurityToken:Tg.SecurityToken||Tg.XCosSecurityToken||"",Token:Tg.Token||"",ClientIP:Tg.ClientIP||"",ClientUA:Tg.ClientUA||"",SignFrom:"client"};Vm(null,$m)},V_=function(s_){if(s_.Authorization){var Hh=!1,$m=s_.Authorization;if($m)if($m.indexOf(" ")>-1)Hh=!1;else if($m.indexOf("q-sign-algorithm=")>-1&&$m.indexOf("q-ak=")>-1&&$m.indexOf("q-sign-time=")>-1&&$m.indexOf("q-key-time=")>-1&&$m.indexOf("q-url-param-list=")>-1)Hh=!0;else try{$m=atob($m),$m.indexOf("a=")>-1&&$m.indexOf("k=")>-1&&$m.indexOf("t=")>-1&&$m.indexOf("r=")>-1&&$m.indexOf("b=")>-1&&(Hh=!0)}catch{}if(!Hh)return yd.error(new Error("getAuthorization callback params format error"))}else{if(!s_.TmpSecretId)return yd.error(new Error('getAuthorization callback params missing "TmpSecretId"'));if(!s_.TmpSecretKey)return yd.error(new Error('getAuthorization callback params missing "TmpSecretKey"'));if(!s_.SecurityToken&&!s_.XCosSecurityToken)return yd.error(new Error('getAuthorization callback params missing "SecurityToken"'));if(!s_.ExpiredTime)return yd.error(new Error('getAuthorization callback params missing "ExpiredTime"'));if(s_.ExpiredTime&&s_.ExpiredTime.toString().length!==10)return yd.error(new Error('getAuthorization callback params "ExpiredTime" should be 10 digits'));if(s_.StartTime&&s_.StartTime.toString().length!==10)return yd.error(new Error('getAuthorization callback params "StartTime" should be 10 StartTime'))}return!1};if(Tg.ExpiredTime&&Tg.ExpiredTime-yd.getSkewTime(Gm.options.SystemClockOffset)/1e3>60)Mg();else if(Gm.options.getAuthorization)Gm.options.getAuthorization.call(Gm,{Bucket:Tm,Region:lg,Method:ih.Method,Key:hg,Pathname:zg,Query:ih.Query,Headers:Qh,Scope:Xg,SystemClockOffset:Gm.options.SystemClockOffset,ForceSignHost:Lm},function(g_){typeof g_=="string"&&(g_={Authorization:g_});var s_=V_(g_);if(s_)return Vm(s_);g_.Authorization?Vm(null,g_):(Tg=g_||{},Tg.Scope=Xg,Tg.ScopeKey=f_,Gm._StsCache.push(Tg),Mg())});else if(Gm.options.getSTS)Gm.options.getSTS.call(Gm,{Bucket:Tm,Region:lg},function(g_){Tg=g_||{},Tg.Scope=Xg,Tg.ScopeKey=f_,Tg.TmpSecretId||(Tg.TmpSecretId=Tg.SecretId),Tg.TmpSecretKey||(Tg.TmpSecretKey=Tg.SecretKey);var s_=V_(Tg);if(s_)return Vm(s_);Gm._StsCache.push(Tg),Mg()});else return function(){var g_="";if(Gm.options.StartTime&&ih.Expires){if(Gm.options.StartTime.toString().length!==10)return Vm(yd.error(new Error('params "StartTime" should be 10 digits')));g_=Gm.options.StartTime+";"+(Gm.options.StartTime+ih.Expires*1)}else if(Gm.options.StartTime&&Gm.options.ExpiredTime){if(Gm.options.StartTime.toString().length!==10)return Vm(yd.error(new Error('params "StartTime" should be 10 digits')));if(Gm.options.ExpiredTime.toString().length!==10)return Vm(yd.error(new Error('params "ExpiredTime" should be 10 digits')));g_=Gm.options.StartTime+";"+Gm.options.ExpiredTime*1}var s_=yd.getAuth({SecretId:ih.SecretId||Gm.options.SecretId,SecretKey:ih.SecretKey||Gm.options.SecretKey,Method:ih.Method,Pathname:zg,Query:ih.Query,Headers:Qh,Expires:ih.Expires,KeyTime:g_,UseRawKey:Gm.options.UseRawKey,SystemClockOffset:Gm.options.SystemClockOffset,ForceSignHost:Lm}),Hh={Authorization:s_,SecurityToken:Gm.options.SecurityToken||Gm.options.XCosSecurityToken,SignFrom:"client"};return Vm(null,Hh),Hh}();return""}function R_(ih){var mm=this,Qh=!1,hm=!1,Lm=!1,Pm=ih.headers&&(ih.headers.date||ih.headers.Date)||ih.error&&ih.error.ServerTime;try{var Vm=ih.error.Code,Gm=ih.error.Message;(Vm==="RequestTimeTooSkewed"||Vm==="AccessDenied"&&Gm==="Request has expired")&&(hm=!0)}catch{}if(ih)if(hm&&Pm){var Tm=Date.parse(Pm);this.options.CorrectClockSkew&&Math.abs(yd.getSkewTime(this.options.SystemClockOffset)-Tm)>=3e4&&(console.error("error: Local time is too skewed."),this.options.SystemClockOffset=Tm-Date.now(),Qh=!0)}else Math.floor(ih.statusCode/100)===5?Qh=!0:ih.message==="CORS blocked or network error"&&(Lm=!0,Qh=mm.options.AutoSwitchHost);return{canRetry:Qh,networkError:Lm}}function P_(ih){var mm=ih.requestUrl,Qh=ih.clientCalcSign,hm=ih.networkError;if(!this.options.AutoSwitchHost||!mm||!Qh||!hm)return!1;var Lm=/^https?:\/\/[^\/]*\.cos\.[^\/]*\.myqcloud\.com(\/.*)?$/,Pm=/^https?:\/\/[^\/]*\.cos\.accelerate\.myqcloud\.com(\/.*)?$/,Vm=Lm.test(mm)&&!Pm.test(mm);return Vm}function Pg(ih,mm){var Qh=this;!ih.headers&&(ih.headers={}),!ih.qs&&(ih.qs={}),ih.VersionId&&(ih.qs.versionId=ih.VersionId),ih.qs=yd.clearKey(ih.qs),ih.headers&&(ih.headers=yd.clearKey(ih.headers)),ih.qs&&(ih.qs=yd.clearKey(ih.qs));var hm=yd.clone(ih.qs);ih.action&&(hm[ih.action]="");var Lm=ih.url||ih.Url,Pm=ih.SignHost||Q_.call(this,{Bucket:ih.Bucket,Region:ih.Region,Url:Lm}),Vm=ih.tracker,Gm=function Tm(lg){var hg=Qh.options.SystemClockOffset;Vm&&Vm.setParams({signStartTime:new Date().getTime(),httpRetryTimes:lg-1}),ih.SwitchHost&&(Pm=Pm.replace(/myqcloud.com/,"tencentcos.cn")),t0.call(Qh,{Bucket:ih.Bucket||"",Region:ih.Region||"",Method:ih.method,Key:ih.Key,Query:hm,Headers:ih.headers,SignHost:Pm,Action:ih.Action,ResourceKey:ih.ResourceKey,Scope:ih.Scope,ForceSignHost:Qh.options.ForceSignHost,SwitchHost:ih.SwitchHost},function(zg,Tg){if(zg){mm(zg);return}Vm&&Vm.setParams({signEndTime:new Date().getTime(),httpStartTime:new Date().getTime()}),ih.AuthData=Tg,$0.call(Qh,ih,function(Xg,D_){Vm&&Vm.setParams({httpEndTime:new Date().getTime()});var A_=!1,f_=!1;if(Xg){var Mg=R_.call(Qh,Xg);A_=Mg.canRetry||hg!==Qh.options.SystemClockOffset,f_=Mg.networkError}if(Xg&&lg<2&&A_){ih.headers&&(delete ih.headers.Authorization,delete ih.headers.token,delete ih.headers.clientIP,delete ih.headers.clientUA,ih.headers["x-cos-security-token"]&&delete ih.headers["x-cos-security-token"],ih.headers["x-ci-security-token"]&&delete ih.headers["x-ci-security-token"]);var V_=P_.call(Qh,{requestUrl:(Xg==null?void 0:Xg.url)||"",clientCalcSign:Tg.SignFrom==="client",networkError:f_});ih.SwitchHost=V_,ih.retry=!0,Tm(lg+1)}else mm(Xg,D_)})})};Gm(1)}function $0(ih,mm){var Qh=this,hm=ih.TaskId;if(!(hm&&!Qh._isRunningTask(hm))){var Lm=ih.Bucket,Pm=ih.Region,Vm=ih.Key,Gm=ih.method||"GET",Tm=ih.Url||ih.url,lg=ih.body,hg=ih.rawBody;Qh.options.UseAccelerate&&(Pm="accelerate"),Tm=Tm||S_({ForcePathStyle:Qh.options.ForcePathStyle,protocol:Qh.options.Protocol,domain:Qh.options.Domain,bucket:Lm,region:Pm,object:Vm}),ih.SwitchHost&&(Tm=Tm.replace(/myqcloud.com/,"tencentcos.cn"));var zg=Vm?Tm:"";ih.action&&(Tm=Tm+"?"+(yd.isIOS_QQ?"".concat(ih.action,"="):ih.action)),ih.qsStr&&(Tm.indexOf("?")>-1?Tm=Tm+"&"+ih.qsStr:Tm=Tm+"?"+ih.qsStr);var Tg={method:Gm,url:Tm,headers:ih.headers,qs:ih.qs,body:lg},Xg="x-cos-security-token";if(yd.isCIHost(Tm)&&(Xg="x-ci-security-token"),Tg.headers.Authorization=ih.AuthData.Authorization,ih.AuthData.Token&&(Tg.headers.token=ih.AuthData.Token),ih.AuthData.ClientIP&&(Tg.headers.clientIP=ih.AuthData.ClientIP),ih.AuthData.ClientUA&&(Tg.headers.clientUA=ih.AuthData.ClientUA),ih.AuthData.SecurityToken&&(Tg.headers[Xg]=ih.AuthData.SecurityToken),ih.Action&&(Tg.action=ih.Action),Tg.key=ih.Key||ih.ResourceKey,Tg.headers&&(Tg.headers=yd.clearKey(Tg.headers)),ih.retry&&(Tg.headers["x-cos-sdk-retry"]=!0),Tg=yd.clearKey(Tg),ih.onProgress&&typeof ih.onProgress=="function"){var D_=lg&&(lg.size||lg.length)||0;Tg.onProgress=function(Hh){if(!(hm&&!Qh._isRunningTask(hm))){var $m=Hh?Hh.loaded:0;ih.onProgress({loaded:$m,total:D_})}}}ih.onDownloadProgress&&(Tg.onDownloadProgress=ih.onDownloadProgress),ih.DataType&&(Tg.dataType=ih.DataType),this.options.Timeout&&(Tg.timeout=this.options.Timeout),Qh.options.ForcePathStyle&&(Tg.pathStyle=Qh.options.ForcePathStyle),Qh.emit("before-send",Tg);var A_=Tg.url.includes("accelerate."),f_=Tg.qs?Object.keys(Tg.qs).map(function(Hh){return"".concat(Hh,"=").concat(Tg.qs[Hh])}).join("&"):"",Mg=f_?Tg.url+"?"+f_:Tg.url;if(ih.tracker){var V_;ih.tracker.setParams({url:Mg,httpMethod:Tg.method,accelerate:A_,httpSize:((V_=Tg.body)===null||V_===void 0?void 0:V_.size)||0}),ih.tracker.parent&&!ih.tracker.parent.params.url&&ih.tracker.parent.setParams({url:zg,accelerate:A_})}var g_=(Qh.options.Request||gd)(Tg,function(Hh){if(!(Hh&&Hh.error==="abort")){var $m={options:Tg,error:Hh&&Hh.error,statusCode:Hh&&Hh.statusCode||0,statusMessage:Hh&&Hh.statusMessage||"",headers:Hh&&Hh.headers||{},body:Hh&&Hh.body};Qh.emit("after-receive",$m);var fg=$m.error,Rg=$m.body,og={statusCode:$m.statusCode,statusMessage:$m.statusMessage,headers:$m.headers},Fg,y_=function(B0,K_){if(hm&&Qh.off("inner-kill-task",s_),!Fg){Fg=!0;var E0={};if(og&&og.statusCode&&(E0.statusCode=og.statusCode),og&&og.headers&&(E0.headers=og.headers),B0)Tg.url&&(E0.url=Tg.url),Tg.method&&(E0.method=Tg.method),B0=yd.extend(B0||{},E0),mm(B0,null);else{if(ih.Action==="name/cos:PutObject"){var d0={};for(var nb in ih.headers){var Pb=nb.toLowerCase();d0[Pb]=ih.headers[nb]}d0["x-cos-callback"]?K_.Error?(K_.CallbackError=yd.clone(K_.Error),delete K_.Error):K_.CallbackBody=yd.clone(K_):d0["x-cos-return-body"]&&(K_.Error?(K_.ReturnError=yd.clone(K_.Error),delete K_.Error):K_.ReturnBody=yd.clone(K_))}K_=yd.extend(K_||{},E0),mm(null,K_)}g_=null}};if(fg)return y_(yd.error(fg));var Y_=og.statusCode,s0=Math.floor(Y_/100)===2;if(hg){if(s0)return y_(null,{body:Rg});if(Rg instanceof Blob){yd.readAsBinaryString(Rg,function(u_){var B0=yd.parseResBody(u_),K_=B0.Error||B0;return y_(yd.error(new Error(K_.Message||"response body error"),{code:K_.Code,error:K_}))});return}}var L0=yd.parseResBody(Rg),rb=L0.Error||L0;s0?y_(null,L0):rb?y_(yd.error(new Error(rb.Message),{code:rb.Code,error:rb})):Y_?y_(yd.error(new Error(og.statusMessage),{code:""+Y_})):Y_&&y_(yd.error(new Error("statusCode error")))}}),s_=function Hh($m){$m.TaskId===hm&&(g_&&g_.abort&&g_.abort(),Qh.off("inner-kill-task",Hh))};hm&&Qh.on("inner-kill-task",s_)}}var z0={getService:vd,putBucket:Cd,headBucket:wd,getBucket:Nd,deleteBucket:Ld,putBucketAcl:Ud,getBucketAcl:jd,putBucketCors:Gd,getBucketCors:Yd,deleteBucketCors:zd,getBucketLocation:qd,getBucketPolicy:Xd,putBucketPolicy:Wd,deleteBucketPolicy:Jd,putBucketTagging:Zd,getBucketTagging:mf,deleteBucketTagging:xf,putBucketLifecycle:_f,getBucketLifecycle:vf,deleteBucketLifecycle:gf,putBucketVersioning:Af,getBucketVersioning:Df,putBucketReplication:kf,getBucketReplication:Cf,deleteBucketReplication:If,putBucketWebsite:Ff,getBucketWebsite:oh,deleteBucketWebsite:Eh,putBucketReferer:_h,getBucketReferer:Mh,putBucketDomain:lh,getBucketDomain:rh,deleteBucketDomain:mh,putBucketOrigin:xh,getBucketOrigin:Sh,deleteBucketOrigin:Of,putBucketLogging:Rf,getBucketLogging:yh,putBucketInventory:sm,postBucketInventory:th,getBucketInventory:sh,listBucketInventory:Zh,deleteBucketInventory:Sm,putBucketAccelerate:$h,getBucketAccelerate:Vf,putBucketEncryption:nh,getBucketEncryption:Lh,deleteBucketEncryption:Ih,getObject:Mm,headObject:om,listObjectVersions:zh,putObject:Nm,deleteObject:Zm,getObjectAcl:Ym,putObjectAcl:jm,optionsObject:rg,putObjectCopy:pg,deleteMultipleObject:Pf,restoreObject:$f,putObjectTagging:Nh,getObjectTagging:Wh,deleteObjectTagging:_m,selectObjectContent:Om,appendObject:p_,uploadPartCopy:jh,multipartInit:Wm,multipartUpload:Ag,multipartComplete:sg,multipartList:yg,multipartListPart:vg,multipartAbort:kg,request:Kg,getObjectUrl:v_,getAuth:l_};function c0(ih,mm,Qh){yd.each(["Cors","Acl"],function(hm){if(ih.slice(-hm.length)===hm){var Lm=ih.slice(0,-hm.length)+hm.toUpperCase(),Pm=yd.apiWrapper(ih,mm),Vm=!1;Qh[Lm]=function(){!Vm&&console.warn("warning: cos."+Lm+" has been deprecated. Please Use cos."+ih+" instead."),Vm=!0,Pm.apply(this,arguments)}}})}ud.exports.init=function(ih,mm){mm.transferToTaskMethod(z0,"putObject"),yd.each(z0,function(Qh,hm){ih.prototype[hm]=yd.apiWrapper(hm,Qh),c0(hm,Qh,ih.prototype)})}},"./src/cos.js":function(ud,dd,hd){var md=hd("./src/util.js"),gd=hd("./src/event.js"),yd=hd("./src/task.js"),vd=hd("./src/base.js"),Cd=hd("./src/advance.js"),wd=hd("./package.json"),Nd={AppId:"",SecretId:"",SecretKey:"",SecurityToken:"",StartTime:0,ExpiredTime:0,ChunkRetryTimes:2,FileParallelLimit:3,ChunkParallelLimit:3,ChunkSize:1024*1024,SliceSize:1024*1024,CopyChunkParallelLimit:20,CopyChunkSize:1024*1024*10,CopySliceSize:1024*1024*10,MaxPartNumber:1e4,ProgressInterval:1e3,Domain:"",ServiceDomain:"",Protocol:"",CompatibilityMode:!1,ForcePathStyle:!1,UseRawKey:!1,Timeout:0,CorrectClockSkew:!0,SystemClockOffset:0,UploadCheckContentMd5:!1,UploadQueueSize:1e4,UploadAddMetaMd5:!1,UploadIdCacheLimit:50,UseAccelerate:!1,ForceSignHost:!0,AutoSwitchHost:!0,CopySourceParser:null,ObjectKeySimplifyCheck:!0,DeepTracker:!1,TrackerDelay:5e3,CustomId:"",BeaconReporter:null,ClsReporter:null},Ld=function(jd){if(this.options=md.extend(md.clone(Nd),jd||{}),this.options.FileParallelLimit=Math.max(1,this.options.FileParallelLimit),this.options.ChunkParallelLimit=Math.max(1,this.options.ChunkParallelLimit),this.options.ChunkRetryTimes=Math.max(0,this.options.ChunkRetryTimes),this.options.ChunkSize=Math.max(1024*1024,this.options.ChunkSize),this.options.CopyChunkParallelLimit=Math.max(1,this.options.CopyChunkParallelLimit),this.options.CopyChunkSize=Math.max(1024*1024,this.options.CopyChunkSize),this.options.CopySliceSize=Math.max(0,this.options.CopySliceSize),this.options.MaxPartNumber=Math.max(1024,Math.min(1e4,this.options.MaxPartNumber)),this.options.Timeout=Math.max(0,this.options.Timeout),this.options.EnableReporter=this.options.BeaconReporter||this.options.ClsReporter,this.options.AppId&&console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g: "test-1250000000").'),this.options.SecretId&&this.options.SecretId.indexOf(" ")>-1&&(console.error("error: SecretId格式错误,请检查"),console.error("error: SecretId format is incorrect. Please check")),this.options.SecretKey&&this.options.SecretKey.indexOf(" ")>-1&&(console.error("error: SecretKey格式错误,请检查"),console.error("error: SecretKey format is incorrect. Please check")),md.isNode()&&(console.log("Tip: Next.js、Nuxt.js 等服务端渲染技术可正常使用JavaScript SDK,请忽略下方 nodejs 环境警告"),console.warn("warning: cos-js-sdk-v5 不支持 nodejs 环境使用,请改用 cos-nodejs-sdk-v5,参考文档: https://cloud.tencent.com/document/product/436/8629"),console.warn("warning: cos-js-sdk-v5 does not support nodejs environment. Please use cos-nodejs-sdk-v5 instead. See: https://cloud.tencent.com/document/product/436/8629")),this.options.ForcePathStyle)throw console.warn("cos-js-sdk-v5不再支持使用path-style,仅支持使用virtual-hosted-style,参考文档:https://cloud.tencent.com/document/product/436/96243"),new Error("ForcePathStyle is not supported");gd.init(this),yd.init(this)};vd.init(Ld,yd),Cd.init(Ld,yd),Ld.util={md5:md.md5,xml2json:md.xml2json,json2xml:md.json2xml,encodeBase64:md.encodeBase64},Ld.getAuthorization=md.getAuth,Ld.version=wd.version,ud.exports=Ld},"./src/event.js":function(ud,dd){var hd=function(yd){var vd={},Cd=function(Nd){return!vd[Nd]&&(vd[Nd]=[]),vd[Nd]};yd.on=function(wd,Nd){wd==="task-list-update"&&console.warn('warning: Event "'+wd+'" has been deprecated. Please use "list-update" instead.'),Cd(wd).push(Nd)},yd.off=function(wd,Nd){for(var Ld=Cd(wd),Ud=Ld.length-1;Ud>=0;Ud--)Nd===Ld[Ud]&&Ld.splice(Ud,1)},yd.emit=function(wd,Nd){for(var Ld=Cd(wd).map(function(jd){return jd}),Ud=0;Ud=0;qd--){var Wd=vd[qd][2];(!Wd||Wd+yd=0;Wd--){var Xd=vd[Wd];Xd[0]===Yd&&Xd[1]===zd&&vd.splice(Wd,1)}vd.unshift([Yd,zd,Math.round(Date.now()/1e3)]),vd.length>qd&&vd.splice(qd),Ud()}},removeUploadId:function(Yd){Ld.call(this),delete jd.using[Yd];for(var zd=vd.length-1;zd>=0;zd--)vd[zd][1]===Yd&&vd.splice(zd,1);Ud()}};ud.exports=jd},"./src/task.js":function(ud,dd,hd){var md=hd("./src/session.js"),gd=hd("./src/util.js"),yd={},vd=function(Nd,Ld){yd[Ld]=Nd[Ld],Nd[Ld]=function(Ud,jd){Ud.SkipTask?yd[Ld].call(this,Ud,jd):this._addTask(Ld,Ud,jd)}},Cd=function(Nd){var Ld=[],Ud={},jd=0,Gd=0,Yd=function(mf){var xf={id:mf.id,Bucket:mf.Bucket,Region:mf.Region,Key:mf.Key,FilePath:mf.FilePath,state:mf.state,loaded:mf.loaded,size:mf.size,speed:mf.speed,percent:mf.percent,hashPercent:mf.hashPercent,error:mf.error};return mf.FilePath&&(xf.FilePath=mf.FilePath),mf._custom&&(xf._custom=mf._custom),xf},zd=function(){var Zd,mf=function(){Zd=0,Nd.emit("task-list-update",{list:gd.map(Ld,Yd)}),Nd.emit("list-update",{list:gd.map(Ld,Yd)})};return function(){Zd||(Zd=setTimeout(mf))}}(),qd=function(){if(!(Ld.length<=Nd.options.UploadQueueSize)){for(var mf=0;mfNd.options.UploadQueueSize;){var xf=Ld[mf].state==="waiting"||Ld[mf].state==="checking"||Ld[mf].state==="uploading";!Ld[mf]||!xf?(Ud[Ld[mf].id]&&delete Ud[Ld[mf].id],Ld.splice(mf,1),Gd--):mf++}zd()}},Wd=function Zd(){if(!(jd>=Nd.options.FileParallelLimit)){for(;Ld[Gd]&&Ld[Gd].state!=="waiting";)Gd++;if(!(Gd>=Ld.length)){var mf=Ld[Gd];Gd++,jd++,mf.state="checking",mf.params.onTaskStart&&mf.params.onTaskStart(Yd(mf)),!mf.params.UploadData&&(mf.params.UploadData={});var xf=gd.formatParams(mf.api,mf.params);yd[mf.api].call(Nd,xf,function(_f,vf){Nd._isRunningTask(mf.id)&&((mf.state==="checking"||mf.state==="uploading")&&(mf.state=_f?"error":"success",_f&&(mf.error=_f),jd--,zd(),Zd(),mf.callback&&mf.callback(_f,vf),mf.state==="success"&&(mf.params&&(delete mf.params.UploadData,delete mf.params.Body,delete mf.params),delete mf.callback)),qd())}),zd(),setTimeout(Zd)}}},Xd=function(mf,xf){var _f=Ud[mf];if(_f){var vf=_f&&_f.state==="waiting",gf=_f&&(_f.state==="checking"||_f.state==="uploading");if(xf==="canceled"&&_f.state!=="canceled"||xf==="paused"&&vf||xf==="paused"&&gf){_f.state=xf,Nd.emit("inner-kill-task",{TaskId:mf,toState:xf});try{var Af=_f&&_f.params&&_f.params.UploadData.UploadId}catch{}xf==="canceled"&&Af&&md.removeUsing(Af),zd(),gf&&(jd--,Wd()),xf==="canceled"&&(_f.params&&(delete _f.params.UploadData,delete _f.params.Body,delete _f.params),delete _f.callback)}qd()}};Nd._addTasks=function(Zd){gd.each(Zd,function(mf){Nd._addTask(mf.api,mf.params,mf.callback,!0)}),zd()};var Jd=!0;Nd._addTask=function(Zd,mf,xf,_f){mf=gd.formatParams(Zd,mf);var vf=gd.uuid();mf.TaskId=vf,mf.onTaskReady&&mf.onTaskReady(vf),mf.TaskReady&&(mf.TaskReady(vf),Jd&&console.warn('warning: Param "TaskReady" has been deprecated. Please use "onTaskReady" instead.'),Jd=!1);var gf={params:mf,callback:xf,api:Zd,index:Ld.length,id:vf,Bucket:mf.Bucket,Region:mf.Region,Key:mf.Key,FilePath:mf.FilePath||"",state:"waiting",loaded:0,size:0,speed:0,percent:0,hashPercent:0,error:null,_custom:mf._custom},Af=mf.onHashProgress;mf.onHashProgress=function(kf){Nd._isRunningTask(gf.id)&&(gf.hashPercent=kf.percent,Af&&Af(kf),zd())};var Df=mf.onProgress;return mf.onProgress=function(kf){Nd._isRunningTask(gf.id)&&(gf.state==="checking"&&(gf.state="uploading"),gf.loaded=kf.loaded,gf.speed=kf.speed,gf.percent=kf.percent,Df&&Df(kf),zd())},gd.getFileSize(Zd,mf,function(kf,Cf){if(kf)return xf(gd.error(kf));Ud[vf]=gf,Ld.push(gf),gf.size=Cf,!_f&&zd(),Wd(),qd()}),vf},Nd._isRunningTask=function(Zd){var mf=Ud[Zd];return!!(mf&&(mf.state==="checking"||mf.state==="uploading"))},Nd.getTaskList=function(){return gd.map(Ld,Yd)},Nd.cancelTask=function(Zd){Xd(Zd,"canceled")},Nd.pauseTask=function(Zd){Xd(Zd,"paused")},Nd.restartTask=function(Zd){var mf=Ud[Zd];mf&&(mf.state==="paused"||mf.state==="error")&&(mf.state="waiting",zd(),Gd=Math.min(Gd,mf.index),Wd())},Nd.isUploadRunning=function(){return jd||Gd"u"?"undefined":yd(navigator))==="object"){var xf=navigator.connection||navigator.mozConnection||navigator.webkitConnection;return(xf==null?void 0:xf.type)||(xf==null?void 0:xf.effectiveType)||"unknown"}return"unknown"},getProtocol:function(){return(typeof location>"u"?"undefined":yd(location))==="object"?location.protocol.replace(/:/,""):"unknown protocol"},getOsType:function(){if((typeof navigator>"u"?"undefined":yd(navigator))!=="object")return"unknown os";var xf=navigator.userAgent.toLowerCase(),_f=/macintosh|mac os x/i.test(navigator.userAgent);return xf.indexOf("win32")>=0||xf.indexOf("wow32")>=0?"win32":xf.indexOf("win64")>=0||xf.indexOf("wow64")>=0?"win64":_f?"mac":"unknown os"},isMobile:function(){var xf=/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i;return!!((typeof navigator>"u"?"undefined":yd(navigator))==="object"&&navigator.userAgent.match(xf))},isAndroid:function(){var xf=/(Android|Adr|Linux)/i;return!!((typeof navigator>"u"?"undefined":yd(navigator))==="object"&&navigator.userAgent.match(xf))},isIOS:function(){var xf=/(iPhone|iPod|iPad|iOS)/i;return!!((typeof navigator>"u"?"undefined":yd(navigator))==="object"&&navigator.userAgent.match(xf))},isOtherMobile:function(){return Ud&&!isAndroid&&!isIOS},getUA:function(){if((typeof navigator>"u"?"undefined":yd(navigator))!=="object")return"unknown device";var xf=navigator.userAgent;return xf}},Ud=Ld.isMobile(),jd=Ld.isAndroid()?"android":Ld.isIOS?"ios":"other_mobile",Gd=Ld.getOsType(),Yd=Ud?jd:Gd,zd=Ld.getUA(),qd=Ld.getProtocol(),Wd=function(xf){return["putObject","sliceUploadFile","uploadFile","uploadFiles"].includes(xf)?"UploadTask":xf==="getObject"?"DownloadTask":["putObjectCopy","sliceCopyFile"].includes(xf)?"CopyTask":xf};function Xd(mf){return mf.replace(/([A-Z])/g,"_$1").toLowerCase()}function Jd(mf){var xf={},_f=["sdkVersionName","sdkVersionCode","osName","networkType","requestName","requestResult","bucket","region","appid","accelerate","url","host","requestPath","userAgent","networkProtocol","httpMethod","httpSize","httpSpeed","httpTookTime","httpMd5","httpSign","httpFullTime","httpDomain","partNumber","httpRetryTimes","customId","traceId","realApi"],vf=[].concat(_f,["errorNode","errorCode","errorName","errorMessage","errorRequestId","errorHttpCode","errorServiceName","errorType","fullError"]),gf=mf.requestResult==="Success"?_f:vf;for(var Af in mf)if(gf.includes(Af)){var Df=Xd(Af);xf[Df]=mf[Af]}return xf.request_name=mf.realApi?Wd(mf.realApi):mf.requestName,xf}var Zd=function(){function mf(xf){md(this,mf);var _f=xf.parent,vf=xf.traceId,gf=xf.bucket,Af=xf.region,Df=xf.apiName,kf=xf.realApi,Cf=xf.httpMethod,If=xf.fileKey,Ff=xf.fileSize,oh=xf.accelerate,Eh=xf.customId,_h=xf.delay,Mh=xf.deepTracker,lh=xf.Beacon,rh=xf.clsReporter,mh=gf&&gf.substr(gf.lastIndexOf("-")+1)||"";this.parent=_f,this.deepTracker=Mh,this.delay=_h,rh&&!this.clsReporter&&(this.clsReporter=rh),this.params={sdkVersionName:"cos-js-sdk-v5",sdkVersionCode:vd.version,osName:Yd,networkType:"",requestName:Df||"",requestResult:"",realApi:kf,bucket:gf,region:Af,accelerate:oh,httpMethod:Cf,url:"",host:"",httpDomain:"",requestPath:If||"",userAgent:zd,networkProtocol:qd,errorType:"",errorCode:"",errorName:"",errorMessage:"",errorRequestId:"",errorHttpCode:0,errorServiceName:"",errorNode:"",httpTookTime:0,httpSize:Ff||0,httpMd5:0,httpSign:0,httpFullTime:0,httpSpeed:0,md5StartTime:0,md5EndTime:0,signStartTime:0,signEndTime:0,httpStartTime:0,httpEndTime:0,startTime:new Date().getTime(),endTime:0,traceId:vf||Ld.getUid(),appid:mh,partNumber:0,httpRetryTimes:0,customId:Eh||"",partTime:0},lh&&(this.beacon=wd(lh,_h))}return gd(mf,[{key:"formatResult",value:function(_f,vf){var gf,Af,Df,kf,Cf,If,Ff=new Date().getTime(),oh=Ld.getNetType(),Eh=_f?(_f==null?void 0:_f.code)||(_f==null||(gf=_f.error)===null||gf===void 0?void 0:gf.code)||(_f==null||(Af=_f.error)===null||Af===void 0?void 0:Af.Code):"",_h=_f?(_f==null?void 0:_f.message)||(_f==null||(Df=_f.error)===null||Df===void 0?void 0:Df.message)||(_f==null||(kf=_f.error)===null||kf===void 0?void 0:kf.Message):"",Mh=_h,lh=_f?(_f==null?void 0:_f.resource)||(_f==null||(Cf=_f.error)===null||Cf===void 0?void 0:Cf.resource)||(_f==null||(If=_f.error)===null||If===void 0?void 0:If.Resource):"",rh=_f?_f==null?void 0:_f.statusCode:vf.statusCode,mh=_f?(_f==null?void 0:_f.headers)&&(_f==null?void 0:_f.headers["x-cos-request-id"]):(vf==null?void 0:vf.headers)&&(vf==null?void 0:vf.headers["x-cos-request-id"]),xh=_f?mh?"Server":"Client":"";this.params.requestName==="getObject"&&(this.params.httpSize=vf?vf.headers&&vf.headers["content-length"]:0);var Sh=this.params.realApi==="sliceUploadFile",Of=this.params.realApi==="sliceCopyFile";if(Sh||Of){var Rf=this.params.httpSize/1024/this.params.partTime;Object.assign(this.params,{httpSpeed:Rf<0?0:Rf.toFixed(3)})}else{var yh=Ff-this.params.startTime,Ph=this.params.httpEndTime-this.params.httpStartTime,sm=this.params.httpSize/1024/(Ph/1e3),th=this.params.md5EndTime-this.params.md5StartTime,sh=this.params.signEndTime-this.params.signStartTime;this.parent&&(this.parent.addParamValue("httpTookTime",Nd(Ph)),this.parent.addParamValue("httpFullTime",Nd(yh)),this.parent.addParamValue("httpMd5",Nd(th)),this.parent.addParamValue("httpSign",Nd(sh)),["multipartUpload","uploadPartCopy","putObjectCopy"].includes(this.params.requestName)&&this.parent.addParamValue("partTime",Nd(Ph))),Object.assign(this.params,{httpFullTime:Nd(yh),httpMd5:Nd(th),httpSign:Nd(sh),httpTookTime:Nd(Ph),httpSpeed:sm<0?0:sm.toFixed(3)})}if(Object.assign(this.params,{networkType:oh,requestResult:_f?"Failure":"Success",errorType:xh,errorCode:Eh,errorHttpCode:rh,errorName:Mh,errorMessage:_h,errorServiceName:lh,errorRequestId:mh}),_f&&(!Eh||!_h)&&(this.params.fullError=_f?JSON.stringify(_f):""),this.params.url){try{var Zh=/^http(s)?:\/\/(.*?)\//.exec(this.params.url);this.params.host=Zh[2]}catch{this.params.host=this.params.url}this.params.httpDomain=this.params.host}}},{key:"report",value:function(_f,vf){if(!(!this.beacon&&!this.clsReporter)){this.formatResult(_f,vf);var gf=Jd(this.params);this.beacon&&this.sendEventsToBeacon(gf),this.clsReporter&&this.sendEventsToCLS(gf)}}},{key:"setParams",value:function(_f){Object.assign(this.params,_f)}},{key:"addParamValue",value:function(_f,vf){this.params[_f]=(+this.params[_f]+ +vf).toFixed(3)}},{key:"sendEventsToBeacon",value:function(_f){var vf=this.params.requestName==="sliceUploadFile"||this.params.realApi==="sliceUploadFile";if(!(vf&&!this.deepTracker)){var gf="qcloud_track_cos_sdk";this.delay===0?this.beacon&&this.beacon.onDirectUserAction(gf,_f):this.beacon&&this.beacon.onUserAction(gf,_f)}}},{key:"sendEventsToCLS",value:function(_f){var vf=this.delay===0;this.clsReporter.log(_f,vf)}},{key:"generateSubTracker",value:function(_f){return Object.assign(_f,{parent:this,deepTracker:this.deepTracker,traceId:this.params.traceId,bucket:this.params.bucket,region:this.params.region,accelerate:this.params.accelerate,fileKey:this.params.requestPath,customId:this.params.customId,delay:this.delay,clsReporter:this.clsReporter}),new mf(_f)}}]),mf}();ud.exports=Zd},"./src/util.js":function(ud,dd,hd){(function(md){var gd=hd("./node_modules/@babel/runtime/helpers/typeof.js");function yd(Pf,$f){var Nh=typeof Symbol<"u"&&Pf[Symbol.iterator]||Pf["@@iterator"];if(!Nh){if(Array.isArray(Pf)||(Nh=vd(Pf))||$f){Nh&&(Pf=Nh);var Wh=0,_m=function(){};return{s:_m,n:function(){return Wh>=Pf.length?{done:!0}:{done:!1,value:Pf[Wh++]}},e:function(yg){throw yg},f:_m}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Om,Wm=!0,Ag=!1;return{s:function(){Nh=Nh.call(Pf)},n:function(){var yg=Nh.next();return Wm=yg.done,yg},e:function(yg){Ag=!0,Om=yg},f:function(){try{Wm||Nh.return==null||Nh.return()}finally{if(Ag)throw Om}}}}function vd(Pf,$f){if(Pf){if(typeof Pf=="string")return Cd(Pf,$f);var Nh={}.toString.call(Pf).slice(8,-1);return Nh==="Object"&&Pf.constructor&&(Nh=Pf.constructor.name),Nh==="Map"||Nh==="Set"?Array.from(Pf):Nh==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Nh)?Cd(Pf,$f):void 0}}function Cd(Pf,$f){($f==null||$f>Pf.length)&&($f=Pf.length);for(var Nh=0,Wh=Array($f);Nh<$f;Nh++)Wh[Nh]=Pf[Nh];return Wh}var wd=hd("./lib/md5.js"),Nd=hd("./lib/crypto.js"),Ld=hd("./node_modules/fast-xml-parser/src/fxp.js"),Ud=Ld.XMLParser,jd=Ld.XMLBuilder,Gd=new Ud({ignoreDeclaration:!0,ignoreAttributes:!0,parseTagValue:!1}),Yd=new jd,zd=hd("./lib/base64.js"),qd=hd("./src/tracker.js"),Wd=function($f){var Nh=Gd.parse($f);return Nh},Xd=function($f){var Nh=Yd.build($f);return Nh};function Jd(Pf){return encodeURIComponent(Pf).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}function Zd(Pf,$f){var Nh=[];for(var Wh in Pf)Pf.hasOwnProperty(Wh)&&Nh.push($f?Jd(Wh).toLowerCase():Wh);return Nh.sort(function(_m,Om){return _m=_m.toLowerCase(),Om=Om.toLowerCase(),_m===Om?0:_m>Om?1:-1})}var mf=function($f,Nh){var Wh,_m,Om,Wm=[],Ag=Zd($f);for(Wh=0;Wh-1||xf.indexOf(_m)>-1)&&(Nh[Wh]=$f[Wh])}return Nh},vf=function($f){$f=$f||{};var Nh=$f.SecretId,Wh=$f.SecretKey,_m=$f.KeyTime,Om=($f.method||$f.Method||"get").toLowerCase(),Wm=rh($f.Query||$f.params||{}),Ag=_f(rh($f.Headers||$f.headers||{})),sg=$f.Key||"",yg;$f.UseRawKey?yg=$f.Pathname||$f.pathname||"/"+sg:(yg=$f.Pathname||$f.pathname||sg,yg.indexOf("/")!==0&&(yg="/"+yg));var vg=$f.ForceSignHost!==!1;if(!Ag.Host&&!Ag.host&&$f.Bucket&&$f.Region&&vg&&(Ag.Host=$f.Bucket+".cos."+$f.Region+".myqcloud.com"),!Nh)throw new Error("missing param SecretId");if(!Wh)throw new Error("missing param SecretKey");var kg=Math.round(Lh($f.SystemClockOffset)/1e3)-1,Kg=kg,p_=$f.Expires||$f.expires;p_===void 0?Kg+=900:Kg+=p_*1||0;var l_="sha1",v_=Nh,r_=_m||kg+";"+Kg,O_=_m||kg+";"+Kg,S_=Zd(Ag,!0).join(";").toLowerCase(),Q_=Zd(Wm,!0).join(";").toLowerCase(),t0=Nd.HmacSHA1(O_,Wh).toString(),R_=[Om,yg,jh.obj2str(Wm,!0),jh.obj2str(Ag,!0),""].join(` `),P_=["sha1",r_,Nd.SHA1(R_).toString(),""].join(` -`),Pg=Nd.HmacSHA1(P_,t0).toString(),$0=["q-sign-algorithm="+l_,"q-ak="+v_,"q-sign-time="+r_,"q-key-time="+O_,"q-header-list="+S_,"q-url-param-list="+Q_,"q-signature="+Pg].join("&");return $0},gf=function($f,Nh,Wh){var _m=Nh/8,$m=$f.slice(Wh,Wh+_m);return new Uint8Array($m).reverse(),new{8:Uint8Array,16:Uint16Array,32:Uint32Array}[Nh]($m)[0]},Af=function($f,Nh,Wh,_m){var $m=$f.slice(Nh,Wh),Ym="";return new Uint8Array($m).forEach(function(Ag){Ym+=String.fromCharCode(Ag)}),_m&&(Ym=decodeURIComponent(escape(Ym))),Ym},Df=function($f){for(var Nh={},Wh=Af($f),_m={records:[]};$f.byteLength;){var $m=gf($f,32,0),Ym=gf($f,32,4),Ag=$m-Ym-16,sg=0,mg;for($f=$f.slice(12);sgparseInt(_m[$m])?1:-1;return 0},$f=function(Wh){if(!Wh)return!1;var _m=(Wh.match(/Chrome\/([.\d]+)/)||[])[1],$m=(Wh.match(/QBCore\/([.\d]+)/)||[])[1],Ym=(Wh.match(/QQBrowser\/([.\d]+)/)||[])[1],Ag=_m&&Pf(_m,"53.0.2785.116")<0&&$m&&Pf($m,"3.53.991.400")<0&&Ym&&Pf(Ym,"9.0.2524.400")<=0||!1;return Ag};return $f(typeof navigator<"u"&&navigator.userAgent)}(),Sh=function($f,Nh,Wh,_m,$m){var Ym;if($f.slice?Ym=$f.slice(Nh,Wh):$f.mozSlice?Ym=$f.mozSlice(Nh,Wh):$f.webkitSlice&&(Ym=$f.webkitSlice(Nh,Wh)),_m&&sh){var Ag=new FileReader;Ag.onload=function(sg){Ym=null,$m(new Blob([Ag.result]))},Ag.readAsArrayBuffer(Ym)}else $m(Ym)},yh=function($f,Nh,Wh,_m){Wh=Wh||Cf,$f?typeof Nh=="string"?Wh(jh.md5(Nh,!0)):Blob&&Nh instanceof Blob?jh.getFileMd5(Nh,function($m,Ym){Wh(Ym)},_m):Wh():Wh()},Mh=1024*1024,lh=function($f,Nh,Wh){var _m=$f.size,$m=0,Ym=wd.getCtx(),Ag=function sg(mg){if(mg>=_m){var vg=Ym.digest("hex");Nh(null,vg);return}var kg=Math.min(_m,mg+Mh);jh.fileSlice($f,mg,kg,!1,function(Kg){Ff(Kg,function(p_){Kg=null,Ym=Ym.update(p_,!0),$m+=p_.length,p_=null,Wh&&Wh({loaded:$m,total:_m,percent:Math.round($m/_m*1e4)/1e4}),sg(mg+Mh)})})};Ag(0)};function rh(Pf){return Ph(Pf,function($f){return gd($f)==="object"&&$f!==null?rh($f):$f})}function mh(Pf,$f,Nh){return Pf&&$f in Pf?Pf[$f]:Nh}function xh(Pf,$f){return _h($f,function(Nh,Wh){Pf[Wh]=$f[Wh]}),Pf}function Eh(Pf){return Pf instanceof Array}function kf(Pf,$f){for(var Nh=!1,Wh=0;Wh-1,sg=!Ym||typeof Ym=="string"&&Ym.indexOf("{Region}")>-1;if($f.indexOf("Bucket")>-1||$f==="deleteMultipleObject"||$f==="multipartList"||$f==="listObjectVersions"){if(Ag&&!Wh)return"Bucket";if(sg&&!_m)return"Region"}else if($f.indexOf("Object")>-1||$f.indexOf("multipart")>-1||$f==="sliceUploadFile"||$f==="abortUploadTask"||$f==="uploadFile"){if(Ag&&!Wh)return"Bucket";if(sg&&!_m)return"Region";if(!$m)return"Key"}return!1},Sm=function($f,Nh){if(Nh=xh({},Nh),$f!=="getAuth"&&$f!=="getV4Auth"&&$f!=="getObjectUrl"){var Wh=Nh.Headers||{};if(Nh&&gd(Nh)==="object"){(function(){for(var $m in Nh)Nh.hasOwnProperty($m)&&$m.indexOf("x-cos-")>-1&&(Wh[$m]=Nh[$m])})();var _m={"x-cos-mfa":"MFA","Content-MD5":"ContentMD5","Content-Length":"ContentLength","Content-Type":"ContentType",Expect:"Expect",Expires:"Expires","Cache-Control":"CacheControl","Content-Disposition":"ContentDisposition","Content-Encoding":"ContentEncoding",Range:"Range","If-Modified-Since":"IfModifiedSince","If-Unmodified-Since":"IfUnmodifiedSince","If-Match":"IfMatch","If-None-Match":"IfNoneMatch","x-cos-copy-source":"CopySource","x-cos-copy-source-Range":"CopySourceRange","x-cos-metadata-directive":"MetadataDirective","x-cos-copy-source-If-Modified-Since":"CopySourceIfModifiedSince","x-cos-copy-source-If-Unmodified-Since":"CopySourceIfUnmodifiedSince","x-cos-copy-source-If-Match":"CopySourceIfMatch","x-cos-copy-source-If-None-Match":"CopySourceIfNoneMatch","x-cos-acl":"ACL","x-cos-grant-read":"GrantRead","x-cos-grant-write":"GrantWrite","x-cos-grant-full-control":"GrantFullControl","x-cos-grant-read-acp":"GrantReadAcp","x-cos-grant-write-acp":"GrantWriteAcp","x-cos-storage-class":"StorageClass","x-cos-traffic-limit":"TrafficLimit","x-cos-mime-limit":"MimeLimit","x-cos-server-side-encryption-customer-algorithm":"SSECustomerAlgorithm","x-cos-server-side-encryption-customer-key":"SSECustomerKey","x-cos-server-side-encryption-customer-key-MD5":"SSECustomerKeyMD5","x-cos-server-side-encryption":"ServerSideEncryption","x-cos-server-side-encryption-cos-kms-key-id":"SSEKMSKeyId","x-cos-server-side-encryption-context":"SSEContext","Pic-Operations":"PicOperations","x-cos-callback":"Callback","x-cos-callback-var":"CallbackVar","x-cos-return-body":"ReturnBody"};jh.each(_m,function($m,Ym){Nh[$m]!==void 0&&(Wh[Ym]=Nh[$m])}),Nh.Headers=If(Wh)}}return Nh},$h=function($f,Nh){return function(Wh,_m){var $m=this;typeof Wh=="function"&&(_m=Wh,Wh={}),Wh=Sm($f,Wh);var Ym;if($m.options.EnableReporter)if(Wh.calledBySdk==="sliceUploadFile"||Wh.calledBySdk==="sliceCopyFile")Ym=Wh.tracker&&Wh.tracker.generateSubTracker({apiName:$f});else if(["uploadFile","uploadFiles"].includes($f))Ym=null;else{var Ag=0;Wh.Body&&(Ag=typeof Wh.Body=="string"?Wh.Body.length:Wh.Body.size||Wh.Body.byteLength||0);var sg=$m.options.UseAccelerate||typeof $m.options.Domain=="string"&&$m.options.Domain.includes("accelerate.");Ym=new qd({Beacon:$m.options.BeaconReporter,clsReporter:$m.options.ClsReporter,bucket:Wh.Bucket,region:Wh.Region,apiName:$f,realApi:$f,accelerate:sg,fileKey:Wh.Key,fileSize:Ag,deepTracker:$m.options.DeepTracker,customId:$m.options.CustomId,delay:$m.options.TrackerDelay})}Wh.tracker=Ym;var mg=function(r_){return r_&&r_.headers&&(r_.headers["x-cos-request-id"]&&(r_.RequestId=r_.headers["x-cos-request-id"]),r_.headers["x-ci-request-id"]&&(r_.RequestId=r_.headers["x-ci-request-id"]),r_.headers["x-cos-version-id"]&&(r_.VersionId=r_.headers["x-cos-version-id"]),r_.headers["x-cos-delete-marker"]&&(r_.DeleteMarker=r_.headers["x-cos-delete-marker"])),r_},vg=function(r_,O_){Ym&&Ym.report(r_,O_),_m&&_m(mg(r_),mg(O_))},kg=function(){if($f!=="getService"&&$f!=="abortUploadTask"){var r_=Zh.call($m,$f,Wh);if(r_)return"missing param "+r_;if(Wh.Region){if($m.options.CompatibilityMode){if(!/^([a-z\d-.]+)$/.test(Wh.Region))return"Region format error."}else{if(Wh.Region.indexOf("cos.")>-1)return'param Region should not be start with "cos."';if(!/^([a-z\d-]+)$/.test(Wh.Region))return"Region format error."}!$m.options.CompatibilityMode&&Wh.Region.indexOf("-")===-1&&Wh.Region!=="yfb"&&Wh.Region!=="default"&&Wh.Region!=="accelerate"&&console.warn("warning: param Region format error, find help here: https://cloud.tencent.com/document/product/436/6224")}if(Wh.Bucket){if(!/^([a-z\d-]+)-(\d+)$/.test(Wh.Bucket))if(Wh.AppId)Wh.Bucket=Wh.Bucket+"-"+Wh.AppId;else if($m.options.AppId)Wh.Bucket=Wh.Bucket+"-"+$m.options.AppId;else return'Bucket should format as "test-1250000000".';Wh.AppId&&(console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g Bucket:"test-1250000000" ).'),delete Wh.AppId)}!$m.options.UseRawKey&&Wh.Key&&Wh.Key.substr(0,1)==="/"&&(Wh.Key=Wh.Key.substr(1))}},Kg=kg(),p_=["getAuth","getObjectUrl"].includes($f);if(typeof Promise=="function"&&!p_&&!_m)return new Promise(function(v_,r_){if(_m=function(S_,Q_){S_?r_(S_):v_(Q_)},Kg)return vg(jh.error(new Error(Kg)));Nh.call($m,Wh,vg)});if(Kg)return vg(jh.error(new Error(Kg)));var l_=Nh.call($m,Wh,vg);if(p_)return l_}},Vf=function($f,Nh){var Wh=this,_m=0,$m=0,Ym=Date.now(),Ag,sg;function mg(){if(sg=0,Nh&&typeof Nh=="function"){Ag=Date.now();var vg=Math.max(0,Math.round(($m-_m)/((Ag-Ym)/1e3)*100)/100)||0,kg;$m===0&&$f===0?kg=1:kg=Math.floor($m/$f*100)/100||0,Ym=Ag,_m=$m;try{Nh({loaded:$m,total:$f,speed:vg,percent:kg})}catch{}}}return function(vg,kg){if(vg&&($m=vg.loaded,$f=vg.total),kg)clearTimeout(sg),mg();else{if(sg)return;sg=setTimeout(mg,Wh.options.ProgressInterval)}}},nh=function($f,Nh,Wh){var _m;if(typeof Nh.Body=="string"?Nh.Body=new Blob([Nh.Body],{type:"text/plain"}):Nh.Body instanceof ArrayBuffer&&(Nh.Body=new Blob([Nh.Body])),Nh.Body&&(Nh.Body instanceof Blob||Nh.Body.toString()==="[object File]"||Nh.Body.toString()==="[object Blob]"))_m=Nh.Body.size;else{Wh(jh.error(new Error("params body format error, Only allow File|Blob|String.")));return}Nh.ContentLength=_m,Wh(null,_m)},Lh=function($f){return Date.now()+($f||0)},Ih=function($f,Nh){var Wh=$f;return $f.message=$f.message||null,typeof Nh=="string"?($f.error=Nh,$f.message=Nh):gd(Nh)==="object"&&Nh!==null&&(xh($f,Nh),(Nh.code||Nh.name)&&($f.code=Nh.code||Nh.name),Nh.message&&($f.message=Nh.message),Nh.stack&&($f.stack=Nh.stack)),typeof Object.defineProperty=="function"&&(Object.defineProperty($f,"name",{writable:!0,enumerable:!1}),Object.defineProperty($f,"message",{enumerable:!0})),$f.name=Nh&&Nh.name||$f.name||$f.code||"Error",$f.code||($f.code=$f.name),$f.error||($f.error=rh(Wh)),$f},om=function(){return(typeof globalThis>"u"?"undefined":gd(globalThis))==="object"&&(globalThis.constructor.name==="DedicatedWorkerGlobalScope"||globalThis.FileReaderSync)},zh=function(){return(typeof window>"u"?"undefined":gd(window))!=="object"&&(typeof md>"u"?"undefined":gd(md))==="object"&&!0&&!om()},Om=function($f){return/^https?:\/\/([^/]+\.)?ci\.[^/]+/.test($f)},Im=function(){if((typeof navigator>"u"?"undefined":gd(navigator))!=="object")return!1;var Pf=navigator.userAgent,$f=!!Pf.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return $f}(),Zm=function(){return(typeof navigator>"u"?"undefined":gd(navigator))!=="object"?!1:/\sQQ/i.test(navigator.userAgent)}(),Lm=function($f,Nh){var Wh=zd.encode($f);return Nh&&(Wh=Wh.replaceAll("+","-").replaceAll("/","_").replaceAll("=","")),Wh},Wm=function($f){return $f?zd.decode($f):""},ig=function($f){var Nh=$f.split("/"),Wh=[],_m=yd(Nh),$m;try{for(_m.s();!($m=_m.n()).done;){var Ym=$m.value;Ym===".."?Wh.length&&Wh.pop():Ym.length&&Ym!=="."&&Wh.push(Ym)}}catch(Ag){_m.e(Ag)}finally{_m.f()}return"/"+Wh.join("/")},yg=function($f){var Nh;if($f&&typeof $f=="string"){var Wh=$f.trim(),_m=Wh.indexOf("<")===0,$m=Wh.indexOf("{")===0;if(_m)Nh=jh.xml2json($f)||{};else if($m)try{var Ym=$f.replace(/\n/g," "),Ag=JSON.parse(Ym);Object.prototype.toString.call(Ag)==="[object Object]"?Nh=Ag:Nh=$f}catch{Nh=$f}else Nh=$f}else Nh=$f||{};return Nh},jh={noop:Cf,formatParams:Sm,apiWrapper:$h,xml2json:Wd,json2xml:Xd,md5:wd,clearKey:If,fileSlice:Sh,getBodyMd5:yh,getFileMd5:lh,b64:th,extend:xh,isArray:Eh,isInArray:kf,makeArray:Rf,each:_h,map:Ph,filter:sm,clone:rh,attr:mh,uuid:oh,camSafeUrlEncode:Jd,throttleOnProgress:Vf,getFileSize:nh,getSkewTime:Lh,error:Ih,obj2str:mf,getAuth:vf,parseSelectPayload:Df,getSourceParams:Of,isBrowser:!0,isNode:zh,isCIHost:Om,isIOS_QQ:Im&&Zm,encodeBase64:Lm,decodeBase64:Wm,simplifyPath:ig,readAsBinaryString:Ff,parseResBody:yg};ud.exports=jh}).call(this,hd("./node_modules/process/browser.js"))}})})})(cosJsSdkV5);var cosJsSdkV5Exports=cosJsSdkV5.exports;const COS=getDefaultExportFromCjs(cosJsSdkV5Exports);var cryptoJs={exports:{}},core={exports:{}};const __viteBrowserExternal={},http=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0$1=getAugmentedNamespace(http);var hasRequiredCore;function requireCore(){return hasRequiredCore||(hasRequiredCore=1,function(Ra,ed){(function(ud,dd){Ra.exports=dd()})(commonjsGlobal,function(){var ud=ud||function(dd,hd){var md;if(typeof window<"u"&&window.crypto&&(md=window.crypto),typeof self<"u"&&self.crypto&&(md=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(md=globalThis.crypto),!md&&typeof window<"u"&&window.msCrypto&&(md=window.msCrypto),!md&&typeof commonjsGlobal<"u"&&commonjsGlobal.crypto&&(md=commonjsGlobal.crypto),!md&&typeof commonjsRequire=="function")try{md=require$$0$1}catch{}var gd=function(){if(md){if(typeof md.getRandomValues=="function")try{return md.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof md.randomBytes=="function")try{return md.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},yd=Object.create||function(){function qd(){}return function(Wd){var Xd;return qd.prototype=Wd,Xd=new qd,qd.prototype=null,Xd}}(),vd={},Cd=vd.lib={},wd=Cd.Base=function(){return{extend:function(qd){var Wd=yd(this);return qd&&Wd.mixIn(qd),(!Wd.hasOwnProperty("init")||this.init===Wd.init)&&(Wd.init=function(){Wd.$super.init.apply(this,arguments)}),Wd.init.prototype=Wd,Wd.$super=this,Wd},create:function(){var qd=this.extend();return qd.init.apply(qd,arguments),qd},init:function(){},mixIn:function(qd){for(var Wd in qd)qd.hasOwnProperty(Wd)&&(this[Wd]=qd[Wd]);qd.hasOwnProperty("toString")&&(this.toString=qd.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),Nd=Cd.WordArray=wd.extend({init:function(qd,Wd){qd=this.words=qd||[],Wd!=hd?this.sigBytes=Wd:this.sigBytes=qd.length*4},toString:function(qd){return(qd||Ud).stringify(this)},concat:function(qd){var Wd=this.words,Xd=qd.words,Jd=this.sigBytes,Zd=qd.sigBytes;if(this.clamp(),Jd%4)for(var mf=0;mf>>2]>>>24-mf%4*8&255;Wd[Jd+mf>>>2]|=xf<<24-(Jd+mf)%4*8}else for(var _f=0;_f>>2]=Xd[_f>>>2];return this.sigBytes+=Zd,this},clamp:function(){var qd=this.words,Wd=this.sigBytes;qd[Wd>>>2]&=4294967295<<32-Wd%4*8,qd.length=dd.ceil(Wd/4)},clone:function(){var qd=wd.clone.call(this);return qd.words=this.words.slice(0),qd},random:function(qd){for(var Wd=[],Xd=0;Xd>>2]>>>24-Zd%4*8&255;Jd.push((mf>>>4).toString(16)),Jd.push((mf&15).toString(16))}return Jd.join("")},parse:function(qd){for(var Wd=qd.length,Xd=[],Jd=0;Jd>>3]|=parseInt(qd.substr(Jd,2),16)<<24-Jd%8*4;return new Nd.init(Xd,Wd/2)}},jd=Ld.Latin1={stringify:function(qd){for(var Wd=qd.words,Xd=qd.sigBytes,Jd=[],Zd=0;Zd>>2]>>>24-Zd%4*8&255;Jd.push(String.fromCharCode(mf))}return Jd.join("")},parse:function(qd){for(var Wd=qd.length,Xd=[],Jd=0;Jd>>2]|=(qd.charCodeAt(Jd)&255)<<24-Jd%4*8;return new Nd.init(Xd,Wd)}},Gd=Ld.Utf8={stringify:function(qd){try{return decodeURIComponent(escape(jd.stringify(qd)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(qd){return jd.parse(unescape(encodeURIComponent(qd)))}},Yd=Cd.BufferedBlockAlgorithm=wd.extend({reset:function(){this._data=new Nd.init,this._nDataBytes=0},_append:function(qd){typeof qd=="string"&&(qd=Gd.parse(qd)),this._data.concat(qd),this._nDataBytes+=qd.sigBytes},_process:function(qd){var Wd,Xd=this._data,Jd=Xd.words,Zd=Xd.sigBytes,mf=this.blockSize,xf=mf*4,_f=Zd/xf;qd?_f=dd.ceil(_f):_f=dd.max((_f|0)-this._minBufferSize,0);var vf=_f*mf,gf=dd.min(vf*4,Zd);if(vf){for(var Af=0;Af>>2]|=vd[Nd]<<24-Nd%4*8;gd.call(this,wd,Cd)}else gd.apply(this,arguments)};yd.prototype=md}}(),ud.lib.WordArray})}(libTypedarrays)),libTypedarrays.exports}var encUtf16={exports:{}},hasRequiredEncUtf16;function requireEncUtf16(){return hasRequiredEncUtf16||(hasRequiredEncUtf16=1,function(Ra,ed){(function(ud,dd){Ra.exports=dd(requireCore())})(commonjsGlobal,function(ud){return function(){var dd=ud,hd=dd.lib,md=hd.WordArray,gd=dd.enc;gd.Utf16=gd.Utf16BE={stringify:function(vd){for(var Cd=vd.words,wd=vd.sigBytes,Nd=[],Ld=0;Ld>>2]>>>16-Ld%4*8&65535;Nd.push(String.fromCharCode(Ud))}return Nd.join("")},parse:function(vd){for(var Cd=vd.length,wd=[],Nd=0;Nd>>1]|=vd.charCodeAt(Nd)<<16-Nd%2*16;return md.create(wd,Cd*2)}},gd.Utf16LE={stringify:function(vd){for(var Cd=vd.words,wd=vd.sigBytes,Nd=[],Ld=0;Ld>>2]>>>16-Ld%4*8&65535);Nd.push(String.fromCharCode(Ud))}return Nd.join("")},parse:function(vd){for(var Cd=vd.length,wd=[],Nd=0;Nd>>1]|=yd(vd.charCodeAt(Nd)<<16-Nd%2*16);return md.create(wd,Cd*2)}};function yd(vd){return vd<<8&4278255360|vd>>>8&16711935}}(),ud.enc.Utf16})}(encUtf16)),encUtf16.exports}var encBase64={exports:{}},hasRequiredEncBase64;function requireEncBase64(){return hasRequiredEncBase64||(hasRequiredEncBase64=1,function(Ra,ed){(function(ud,dd){Ra.exports=dd(requireCore())})(commonjsGlobal,function(ud){return function(){var dd=ud,hd=dd.lib,md=hd.WordArray,gd=dd.enc;gd.Base64={stringify:function(vd){var Cd=vd.words,wd=vd.sigBytes,Nd=this._map;vd.clamp();for(var Ld=[],Ud=0;Ud>>2]>>>24-Ud%4*8&255,Gd=Cd[Ud+1>>>2]>>>24-(Ud+1)%4*8&255,Yd=Cd[Ud+2>>>2]>>>24-(Ud+2)%4*8&255,zd=jd<<16|Gd<<8|Yd,qd=0;qd<4&&Ud+qd*.75>>6*(3-qd)&63));var Wd=Nd.charAt(64);if(Wd)for(;Ld.length%4;)Ld.push(Wd);return Ld.join("")},parse:function(vd){var Cd=vd.length,wd=this._map,Nd=this._reverseMap;if(!Nd){Nd=this._reverseMap=[];for(var Ld=0;Ld>>6-Ud%4*2,Yd=jd|Gd;Nd[Ld>>>2]|=Yd<<24-Ld%4*8,Ld++}return md.create(Nd,Ld)}}(),ud.enc.Base64})}(encBase64)),encBase64.exports}var encBase64url={exports:{}},hasRequiredEncBase64url;function requireEncBase64url(){return hasRequiredEncBase64url||(hasRequiredEncBase64url=1,function(Ra,ed){(function(ud,dd){Ra.exports=dd(requireCore())})(commonjsGlobal,function(ud){return function(){var dd=ud,hd=dd.lib,md=hd.WordArray,gd=dd.enc;gd.Base64url={stringify:function(vd,Cd){Cd===void 0&&(Cd=!0);var wd=vd.words,Nd=vd.sigBytes,Ld=Cd?this._safe_map:this._map;vd.clamp();for(var Ud=[],jd=0;jd>>2]>>>24-jd%4*8&255,Yd=wd[jd+1>>>2]>>>24-(jd+1)%4*8&255,zd=wd[jd+2>>>2]>>>24-(jd+2)%4*8&255,qd=Gd<<16|Yd<<8|zd,Wd=0;Wd<4&&jd+Wd*.75>>6*(3-Wd)&63));var Xd=Ld.charAt(64);if(Xd)for(;Ud.length%4;)Ud.push(Xd);return Ud.join("")},parse:function(vd,Cd){Cd===void 0&&(Cd=!0);var wd=vd.length,Nd=Cd?this._safe_map:this._map,Ld=this._reverseMap;if(!Ld){Ld=this._reverseMap=[];for(var Ud=0;Ud>>6-Ud%4*2,Yd=jd|Gd;Nd[Ld>>>2]|=Yd<<24-Ld%4*8,Ld++}return md.create(Nd,Ld)}}(),ud.enc.Base64url})}(encBase64url)),encBase64url.exports}var md5$1={exports:{}},hasRequiredMd5$1;function requireMd5$1(){return hasRequiredMd5$1||(hasRequiredMd5$1=1,function(Ra,ed){(function(ud,dd){Ra.exports=dd(requireCore())})(commonjsGlobal,function(ud){return function(dd){var hd=ud,md=hd.lib,gd=md.WordArray,yd=md.Hasher,vd=hd.algo,Cd=[];(function(){for(var Gd=0;Gd<64;Gd++)Cd[Gd]=dd.abs(dd.sin(Gd+1))*4294967296|0})();var wd=vd.MD5=yd.extend({_doReset:function(){this._hash=new gd.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(Gd,Yd){for(var zd=0;zd<16;zd++){var qd=Yd+zd,Wd=Gd[qd];Gd[qd]=(Wd<<8|Wd>>>24)&16711935|(Wd<<24|Wd>>>8)&4278255360}var Xd=this._hash.words,Jd=Gd[Yd+0],Zd=Gd[Yd+1],mf=Gd[Yd+2],xf=Gd[Yd+3],_f=Gd[Yd+4],vf=Gd[Yd+5],gf=Gd[Yd+6],Af=Gd[Yd+7],Df=Gd[Yd+8],Of=Gd[Yd+9],Cf=Gd[Yd+10],If=Gd[Yd+11],Ff=Gd[Yd+12],sh=Gd[Yd+13],Sh=Gd[Yd+14],yh=Gd[Yd+15],Mh=Xd[0],lh=Xd[1],rh=Xd[2],mh=Xd[3];Mh=Nd(Mh,lh,rh,mh,Jd,7,Cd[0]),mh=Nd(mh,Mh,lh,rh,Zd,12,Cd[1]),rh=Nd(rh,mh,Mh,lh,mf,17,Cd[2]),lh=Nd(lh,rh,mh,Mh,xf,22,Cd[3]),Mh=Nd(Mh,lh,rh,mh,_f,7,Cd[4]),mh=Nd(mh,Mh,lh,rh,vf,12,Cd[5]),rh=Nd(rh,mh,Mh,lh,gf,17,Cd[6]),lh=Nd(lh,rh,mh,Mh,Af,22,Cd[7]),Mh=Nd(Mh,lh,rh,mh,Df,7,Cd[8]),mh=Nd(mh,Mh,lh,rh,Of,12,Cd[9]),rh=Nd(rh,mh,Mh,lh,Cf,17,Cd[10]),lh=Nd(lh,rh,mh,Mh,If,22,Cd[11]),Mh=Nd(Mh,lh,rh,mh,Ff,7,Cd[12]),mh=Nd(mh,Mh,lh,rh,sh,12,Cd[13]),rh=Nd(rh,mh,Mh,lh,Sh,17,Cd[14]),lh=Nd(lh,rh,mh,Mh,yh,22,Cd[15]),Mh=Ld(Mh,lh,rh,mh,Zd,5,Cd[16]),mh=Ld(mh,Mh,lh,rh,gf,9,Cd[17]),rh=Ld(rh,mh,Mh,lh,If,14,Cd[18]),lh=Ld(lh,rh,mh,Mh,Jd,20,Cd[19]),Mh=Ld(Mh,lh,rh,mh,vf,5,Cd[20]),mh=Ld(mh,Mh,lh,rh,Cf,9,Cd[21]),rh=Ld(rh,mh,Mh,lh,yh,14,Cd[22]),lh=Ld(lh,rh,mh,Mh,_f,20,Cd[23]),Mh=Ld(Mh,lh,rh,mh,Of,5,Cd[24]),mh=Ld(mh,Mh,lh,rh,Sh,9,Cd[25]),rh=Ld(rh,mh,Mh,lh,xf,14,Cd[26]),lh=Ld(lh,rh,mh,Mh,Df,20,Cd[27]),Mh=Ld(Mh,lh,rh,mh,sh,5,Cd[28]),mh=Ld(mh,Mh,lh,rh,mf,9,Cd[29]),rh=Ld(rh,mh,Mh,lh,Af,14,Cd[30]),lh=Ld(lh,rh,mh,Mh,Ff,20,Cd[31]),Mh=Ud(Mh,lh,rh,mh,vf,4,Cd[32]),mh=Ud(mh,Mh,lh,rh,Df,11,Cd[33]),rh=Ud(rh,mh,Mh,lh,If,16,Cd[34]),lh=Ud(lh,rh,mh,Mh,Sh,23,Cd[35]),Mh=Ud(Mh,lh,rh,mh,Zd,4,Cd[36]),mh=Ud(mh,Mh,lh,rh,_f,11,Cd[37]),rh=Ud(rh,mh,Mh,lh,Af,16,Cd[38]),lh=Ud(lh,rh,mh,Mh,Cf,23,Cd[39]),Mh=Ud(Mh,lh,rh,mh,sh,4,Cd[40]),mh=Ud(mh,Mh,lh,rh,Jd,11,Cd[41]),rh=Ud(rh,mh,Mh,lh,xf,16,Cd[42]),lh=Ud(lh,rh,mh,Mh,gf,23,Cd[43]),Mh=Ud(Mh,lh,rh,mh,Of,4,Cd[44]),mh=Ud(mh,Mh,lh,rh,Ff,11,Cd[45]),rh=Ud(rh,mh,Mh,lh,yh,16,Cd[46]),lh=Ud(lh,rh,mh,Mh,mf,23,Cd[47]),Mh=jd(Mh,lh,rh,mh,Jd,6,Cd[48]),mh=jd(mh,Mh,lh,rh,Af,10,Cd[49]),rh=jd(rh,mh,Mh,lh,Sh,15,Cd[50]),lh=jd(lh,rh,mh,Mh,vf,21,Cd[51]),Mh=jd(Mh,lh,rh,mh,Ff,6,Cd[52]),mh=jd(mh,Mh,lh,rh,xf,10,Cd[53]),rh=jd(rh,mh,Mh,lh,Cf,15,Cd[54]),lh=jd(lh,rh,mh,Mh,Zd,21,Cd[55]),Mh=jd(Mh,lh,rh,mh,Df,6,Cd[56]),mh=jd(mh,Mh,lh,rh,yh,10,Cd[57]),rh=jd(rh,mh,Mh,lh,gf,15,Cd[58]),lh=jd(lh,rh,mh,Mh,sh,21,Cd[59]),Mh=jd(Mh,lh,rh,mh,_f,6,Cd[60]),mh=jd(mh,Mh,lh,rh,If,10,Cd[61]),rh=jd(rh,mh,Mh,lh,mf,15,Cd[62]),lh=jd(lh,rh,mh,Mh,Of,21,Cd[63]),Xd[0]=Xd[0]+Mh|0,Xd[1]=Xd[1]+lh|0,Xd[2]=Xd[2]+rh|0,Xd[3]=Xd[3]+mh|0},_doFinalize:function(){var Gd=this._data,Yd=Gd.words,zd=this._nDataBytes*8,qd=Gd.sigBytes*8;Yd[qd>>>5]|=128<<24-qd%32;var Wd=dd.floor(zd/4294967296),Xd=zd;Yd[(qd+64>>>9<<4)+15]=(Wd<<8|Wd>>>24)&16711935|(Wd<<24|Wd>>>8)&4278255360,Yd[(qd+64>>>9<<4)+14]=(Xd<<8|Xd>>>24)&16711935|(Xd<<24|Xd>>>8)&4278255360,Gd.sigBytes=(Yd.length+1)*4,this._process();for(var Jd=this._hash,Zd=Jd.words,mf=0;mf<4;mf++){var xf=Zd[mf];Zd[mf]=(xf<<8|xf>>>24)&16711935|(xf<<24|xf>>>8)&4278255360}return Jd},clone:function(){var Gd=yd.clone.call(this);return Gd._hash=this._hash.clone(),Gd}});function Nd(Gd,Yd,zd,qd,Wd,Xd,Jd){var Zd=Gd+(Yd&zd|~Yd&qd)+Wd+Jd;return(Zd<>>32-Xd)+Yd}function Ld(Gd,Yd,zd,qd,Wd,Xd,Jd){var Zd=Gd+(Yd&qd|zd&~qd)+Wd+Jd;return(Zd<>>32-Xd)+Yd}function Ud(Gd,Yd,zd,qd,Wd,Xd,Jd){var Zd=Gd+(Yd^zd^qd)+Wd+Jd;return(Zd<>>32-Xd)+Yd}function jd(Gd,Yd,zd,qd,Wd,Xd,Jd){var Zd=Gd+(zd^(Yd|~qd))+Wd+Jd;return(Zd<>>32-Xd)+Yd}hd.MD5=yd._createHelper(wd),hd.HmacMD5=yd._createHmacHelper(wd)}(Math),ud.MD5})}(md5$1)),md5$1.exports}var sha1={exports:{}},hasRequiredSha1;function requireSha1(){return hasRequiredSha1||(hasRequiredSha1=1,function(Ra,ed){(function(ud,dd){Ra.exports=dd(requireCore())})(commonjsGlobal,function(ud){return function(){var dd=ud,hd=dd.lib,md=hd.WordArray,gd=hd.Hasher,yd=dd.algo,vd=[],Cd=yd.SHA1=gd.extend({_doReset:function(){this._hash=new md.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(wd,Nd){for(var Ld=this._hash.words,Ud=Ld[0],jd=Ld[1],Gd=Ld[2],Yd=Ld[3],zd=Ld[4],qd=0;qd<80;qd++){if(qd<16)vd[qd]=wd[Nd+qd]|0;else{var Wd=vd[qd-3]^vd[qd-8]^vd[qd-14]^vd[qd-16];vd[qd]=Wd<<1|Wd>>>31}var Xd=(Ud<<5|Ud>>>27)+zd+vd[qd];qd<20?Xd+=(jd&Gd|~jd&Yd)+1518500249:qd<40?Xd+=(jd^Gd^Yd)+1859775393:qd<60?Xd+=(jd&Gd|jd&Yd|Gd&Yd)-1894007588:Xd+=(jd^Gd^Yd)-899497514,zd=Yd,Yd=Gd,Gd=jd<<30|jd>>>2,jd=Ud,Ud=Xd}Ld[0]=Ld[0]+Ud|0,Ld[1]=Ld[1]+jd|0,Ld[2]=Ld[2]+Gd|0,Ld[3]=Ld[3]+Yd|0,Ld[4]=Ld[4]+zd|0},_doFinalize:function(){var wd=this._data,Nd=wd.words,Ld=this._nDataBytes*8,Ud=wd.sigBytes*8;return Nd[Ud>>>5]|=128<<24-Ud%32,Nd[(Ud+64>>>9<<4)+14]=Math.floor(Ld/4294967296),Nd[(Ud+64>>>9<<4)+15]=Ld,wd.sigBytes=Nd.length*4,this._process(),this._hash},clone:function(){var wd=gd.clone.call(this);return wd._hash=this._hash.clone(),wd}});dd.SHA1=gd._createHelper(Cd),dd.HmacSHA1=gd._createHmacHelper(Cd)}(),ud.SHA1})}(sha1)),sha1.exports}var sha256={exports:{}},hasRequiredSha256;function requireSha256(){return hasRequiredSha256||(hasRequiredSha256=1,function(Ra,ed){(function(ud,dd){Ra.exports=dd(requireCore())})(commonjsGlobal,function(ud){return function(dd){var hd=ud,md=hd.lib,gd=md.WordArray,yd=md.Hasher,vd=hd.algo,Cd=[],wd=[];(function(){function Ud(zd){for(var qd=dd.sqrt(zd),Wd=2;Wd<=qd;Wd++)if(!(zd%Wd))return!1;return!0}function jd(zd){return(zd-(zd|0))*4294967296|0}for(var Gd=2,Yd=0;Yd<64;)Ud(Gd)&&(Yd<8&&(Cd[Yd]=jd(dd.pow(Gd,1/2))),wd[Yd]=jd(dd.pow(Gd,1/3)),Yd++),Gd++})();var Nd=[],Ld=vd.SHA256=yd.extend({_doReset:function(){this._hash=new gd.init(Cd.slice(0))},_doProcessBlock:function(Ud,jd){for(var Gd=this._hash.words,Yd=Gd[0],zd=Gd[1],qd=Gd[2],Wd=Gd[3],Xd=Gd[4],Jd=Gd[5],Zd=Gd[6],mf=Gd[7],xf=0;xf<64;xf++){if(xf<16)Nd[xf]=Ud[jd+xf]|0;else{var _f=Nd[xf-15],vf=(_f<<25|_f>>>7)^(_f<<14|_f>>>18)^_f>>>3,gf=Nd[xf-2],Af=(gf<<15|gf>>>17)^(gf<<13|gf>>>19)^gf>>>10;Nd[xf]=vf+Nd[xf-7]+Af+Nd[xf-16]}var Df=Xd&Jd^~Xd&Zd,Of=Yd&zd^Yd&qd^zd&qd,Cf=(Yd<<30|Yd>>>2)^(Yd<<19|Yd>>>13)^(Yd<<10|Yd>>>22),If=(Xd<<26|Xd>>>6)^(Xd<<21|Xd>>>11)^(Xd<<7|Xd>>>25),Ff=mf+If+Df+wd[xf]+Nd[xf],sh=Cf+Of;mf=Zd,Zd=Jd,Jd=Xd,Xd=Wd+Ff|0,Wd=qd,qd=zd,zd=Yd,Yd=Ff+sh|0}Gd[0]=Gd[0]+Yd|0,Gd[1]=Gd[1]+zd|0,Gd[2]=Gd[2]+qd|0,Gd[3]=Gd[3]+Wd|0,Gd[4]=Gd[4]+Xd|0,Gd[5]=Gd[5]+Jd|0,Gd[6]=Gd[6]+Zd|0,Gd[7]=Gd[7]+mf|0},_doFinalize:function(){var Ud=this._data,jd=Ud.words,Gd=this._nDataBytes*8,Yd=Ud.sigBytes*8;return jd[Yd>>>5]|=128<<24-Yd%32,jd[(Yd+64>>>9<<4)+14]=dd.floor(Gd/4294967296),jd[(Yd+64>>>9<<4)+15]=Gd,Ud.sigBytes=jd.length*4,this._process(),this._hash},clone:function(){var Ud=yd.clone.call(this);return Ud._hash=this._hash.clone(),Ud}});hd.SHA256=yd._createHelper(Ld),hd.HmacSHA256=yd._createHmacHelper(Ld)}(Math),ud.SHA256})}(sha256)),sha256.exports}var sha224={exports:{}},hasRequiredSha224;function requireSha224(){return hasRequiredSha224||(hasRequiredSha224=1,function(Ra,ed){(function(ud,dd,hd){Ra.exports=dd(requireCore(),requireSha256())})(commonjsGlobal,function(ud){return function(){var dd=ud,hd=dd.lib,md=hd.WordArray,gd=dd.algo,yd=gd.SHA256,vd=gd.SHA224=yd.extend({_doReset:function(){this._hash=new md.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var Cd=yd._doFinalize.call(this);return Cd.sigBytes-=4,Cd}});dd.SHA224=yd._createHelper(vd),dd.HmacSHA224=yd._createHmacHelper(vd)}(),ud.SHA224})}(sha224)),sha224.exports}var sha512={exports:{}},hasRequiredSha512;function requireSha512(){return hasRequiredSha512||(hasRequiredSha512=1,function(Ra,ed){(function(ud,dd,hd){Ra.exports=dd(requireCore(),requireX64Core())})(commonjsGlobal,function(ud){return function(){var dd=ud,hd=dd.lib,md=hd.Hasher,gd=dd.x64,yd=gd.Word,vd=gd.WordArray,Cd=dd.algo;function wd(){return yd.create.apply(yd,arguments)}var Nd=[wd(1116352408,3609767458),wd(1899447441,602891725),wd(3049323471,3964484399),wd(3921009573,2173295548),wd(961987163,4081628472),wd(1508970993,3053834265),wd(2453635748,2937671579),wd(2870763221,3664609560),wd(3624381080,2734883394),wd(310598401,1164996542),wd(607225278,1323610764),wd(1426881987,3590304994),wd(1925078388,4068182383),wd(2162078206,991336113),wd(2614888103,633803317),wd(3248222580,3479774868),wd(3835390401,2666613458),wd(4022224774,944711139),wd(264347078,2341262773),wd(604807628,2007800933),wd(770255983,1495990901),wd(1249150122,1856431235),wd(1555081692,3175218132),wd(1996064986,2198950837),wd(2554220882,3999719339),wd(2821834349,766784016),wd(2952996808,2566594879),wd(3210313671,3203337956),wd(3336571891,1034457026),wd(3584528711,2466948901),wd(113926993,3758326383),wd(338241895,168717936),wd(666307205,1188179964),wd(773529912,1546045734),wd(1294757372,1522805485),wd(1396182291,2643833823),wd(1695183700,2343527390),wd(1986661051,1014477480),wd(2177026350,1206759142),wd(2456956037,344077627),wd(2730485921,1290863460),wd(2820302411,3158454273),wd(3259730800,3505952657),wd(3345764771,106217008),wd(3516065817,3606008344),wd(3600352804,1432725776),wd(4094571909,1467031594),wd(275423344,851169720),wd(430227734,3100823752),wd(506948616,1363258195),wd(659060556,3750685593),wd(883997877,3785050280),wd(958139571,3318307427),wd(1322822218,3812723403),wd(1537002063,2003034995),wd(1747873779,3602036899),wd(1955562222,1575990012),wd(2024104815,1125592928),wd(2227730452,2716904306),wd(2361852424,442776044),wd(2428436474,593698344),wd(2756734187,3733110249),wd(3204031479,2999351573),wd(3329325298,3815920427),wd(3391569614,3928383900),wd(3515267271,566280711),wd(3940187606,3454069534),wd(4118630271,4000239992),wd(116418474,1914138554),wd(174292421,2731055270),wd(289380356,3203993006),wd(460393269,320620315),wd(685471733,587496836),wd(852142971,1086792851),wd(1017036298,365543100),wd(1126000580,2618297676),wd(1288033470,3409855158),wd(1501505948,4234509866),wd(1607167915,987167468),wd(1816402316,1246189591)],Ld=[];(function(){for(var jd=0;jd<80;jd++)Ld[jd]=wd()})();var Ud=Cd.SHA512=md.extend({_doReset:function(){this._hash=new vd.init([new yd.init(1779033703,4089235720),new yd.init(3144134277,2227873595),new yd.init(1013904242,4271175723),new yd.init(2773480762,1595750129),new yd.init(1359893119,2917565137),new yd.init(2600822924,725511199),new yd.init(528734635,4215389547),new yd.init(1541459225,327033209)])},_doProcessBlock:function(jd,Gd){for(var Yd=this._hash.words,zd=Yd[0],qd=Yd[1],Wd=Yd[2],Xd=Yd[3],Jd=Yd[4],Zd=Yd[5],mf=Yd[6],xf=Yd[7],_f=zd.high,vf=zd.low,gf=qd.high,Af=qd.low,Df=Wd.high,Of=Wd.low,Cf=Xd.high,If=Xd.low,Ff=Jd.high,sh=Jd.low,Sh=Zd.high,yh=Zd.low,Mh=mf.high,lh=mf.low,rh=xf.high,mh=xf.low,xh=_f,Eh=vf,kf=gf,Rf=Af,_h=Df,Ph=Of,sm=Cf,th=If,oh=Ff,Zh=sh,Sm=Sh,$h=yh,Vf=Mh,nh=lh,Lh=rh,Ih=mh,om=0;om<80;om++){var zh,Om,Im=Ld[om];if(om<16)Om=Im.high=jd[Gd+om*2]|0,zh=Im.low=jd[Gd+om*2+1]|0;else{var Zm=Ld[om-15],Lm=Zm.high,Wm=Zm.low,ig=(Lm>>>1|Wm<<31)^(Lm>>>8|Wm<<24)^Lm>>>7,yg=(Wm>>>1|Lm<<31)^(Wm>>>8|Lm<<24)^(Wm>>>7|Lm<<25),jh=Ld[om-2],Pf=jh.high,$f=jh.low,Nh=(Pf>>>19|$f<<13)^(Pf<<3|$f>>>29)^Pf>>>6,Wh=($f>>>19|Pf<<13)^($f<<3|Pf>>>29)^($f>>>6|Pf<<26),_m=Ld[om-7],$m=_m.high,Ym=_m.low,Ag=Ld[om-16],sg=Ag.high,mg=Ag.low;zh=yg+Ym,Om=ig+$m+(zh>>>0>>0?1:0),zh=zh+Wh,Om=Om+Nh+(zh>>>0>>0?1:0),zh=zh+mg,Om=Om+sg+(zh>>>0>>0?1:0),Im.high=Om,Im.low=zh}var vg=oh&Sm^~oh&Vf,kg=Zh&$h^~Zh&nh,Kg=xh&kf^xh&_h^kf&_h,p_=Eh&Rf^Eh&Ph^Rf&Ph,l_=(xh>>>28|Eh<<4)^(xh<<30|Eh>>>2)^(xh<<25|Eh>>>7),v_=(Eh>>>28|xh<<4)^(Eh<<30|xh>>>2)^(Eh<<25|xh>>>7),r_=(oh>>>14|Zh<<18)^(oh>>>18|Zh<<14)^(oh<<23|Zh>>>9),O_=(Zh>>>14|oh<<18)^(Zh>>>18|oh<<14)^(Zh<<23|oh>>>9),S_=Nd[om],Q_=S_.high,t0=S_.low,R_=Ih+O_,P_=Lh+r_+(R_>>>0>>0?1:0),R_=R_+kg,P_=P_+vg+(R_>>>0>>0?1:0),R_=R_+t0,P_=P_+Q_+(R_>>>0>>0?1:0),R_=R_+zh,P_=P_+Om+(R_>>>0>>0?1:0),Pg=v_+p_,$0=l_+Kg+(Pg>>>0>>0?1:0);Lh=Vf,Ih=nh,Vf=Sm,nh=$h,Sm=oh,$h=Zh,Zh=th+R_|0,oh=sm+P_+(Zh>>>0>>0?1:0)|0,sm=_h,th=Ph,_h=kf,Ph=Rf,kf=xh,Rf=Eh,Eh=R_+Pg|0,xh=P_+$0+(Eh>>>0>>0?1:0)|0}vf=zd.low=vf+Eh,zd.high=_f+xh+(vf>>>0>>0?1:0),Af=qd.low=Af+Rf,qd.high=gf+kf+(Af>>>0>>0?1:0),Of=Wd.low=Of+Ph,Wd.high=Df+_h+(Of>>>0>>0?1:0),If=Xd.low=If+th,Xd.high=Cf+sm+(If>>>0>>0?1:0),sh=Jd.low=sh+Zh,Jd.high=Ff+oh+(sh>>>0>>0?1:0),yh=Zd.low=yh+$h,Zd.high=Sh+Sm+(yh>>>0<$h>>>0?1:0),lh=mf.low=lh+nh,mf.high=Mh+Vf+(lh>>>0>>0?1:0),mh=xf.low=mh+Ih,xf.high=rh+Lh+(mh>>>0>>0?1:0)},_doFinalize:function(){var jd=this._data,Gd=jd.words,Yd=this._nDataBytes*8,zd=jd.sigBytes*8;Gd[zd>>>5]|=128<<24-zd%32,Gd[(zd+128>>>10<<5)+30]=Math.floor(Yd/4294967296),Gd[(zd+128>>>10<<5)+31]=Yd,jd.sigBytes=Gd.length*4,this._process();var qd=this._hash.toX32();return qd},clone:function(){var jd=md.clone.call(this);return jd._hash=this._hash.clone(),jd},blockSize:1024/32});dd.SHA512=md._createHelper(Ud),dd.HmacSHA512=md._createHmacHelper(Ud)}(),ud.SHA512})}(sha512)),sha512.exports}var sha384={exports:{}},hasRequiredSha384;function requireSha384(){return hasRequiredSha384||(hasRequiredSha384=1,function(Ra,ed){(function(ud,dd,hd){Ra.exports=dd(requireCore(),requireX64Core(),requireSha512())})(commonjsGlobal,function(ud){return function(){var dd=ud,hd=dd.x64,md=hd.Word,gd=hd.WordArray,yd=dd.algo,vd=yd.SHA512,Cd=yd.SHA384=vd.extend({_doReset:function(){this._hash=new gd.init([new md.init(3418070365,3238371032),new md.init(1654270250,914150663),new md.init(2438529370,812702999),new md.init(355462360,4144912697),new md.init(1731405415,4290775857),new md.init(2394180231,1750603025),new md.init(3675008525,1694076839),new md.init(1203062813,3204075428)])},_doFinalize:function(){var wd=vd._doFinalize.call(this);return wd.sigBytes-=16,wd}});dd.SHA384=vd._createHelper(Cd),dd.HmacSHA384=vd._createHmacHelper(Cd)}(),ud.SHA384})}(sha384)),sha384.exports}var sha3={exports:{}},hasRequiredSha3;function requireSha3(){return hasRequiredSha3||(hasRequiredSha3=1,function(Ra,ed){(function(ud,dd,hd){Ra.exports=dd(requireCore(),requireX64Core())})(commonjsGlobal,function(ud){return function(dd){var hd=ud,md=hd.lib,gd=md.WordArray,yd=md.Hasher,vd=hd.x64,Cd=vd.Word,wd=hd.algo,Nd=[],Ld=[],Ud=[];(function(){for(var Yd=1,zd=0,qd=0;qd<24;qd++){Nd[Yd+5*zd]=(qd+1)*(qd+2)/2%64;var Wd=zd%5,Xd=(2*Yd+3*zd)%5;Yd=Wd,zd=Xd}for(var Yd=0;Yd<5;Yd++)for(var zd=0;zd<5;zd++)Ld[Yd+5*zd]=zd+(2*Yd+3*zd)%5*5;for(var Jd=1,Zd=0;Zd<24;Zd++){for(var mf=0,xf=0,_f=0;_f<7;_f++){if(Jd&1){var vf=(1<<_f)-1;vf<32?xf^=1<>>24)&16711935|(Jd<<24|Jd>>>8)&4278255360,Zd=(Zd<<8|Zd>>>24)&16711935|(Zd<<24|Zd>>>8)&4278255360;var mf=qd[Xd];mf.high^=Zd,mf.low^=Jd}for(var xf=0;xf<24;xf++){for(var _f=0;_f<5;_f++){for(var vf=0,gf=0,Af=0;Af<5;Af++){var mf=qd[_f+5*Af];vf^=mf.high,gf^=mf.low}var Df=jd[_f];Df.high=vf,Df.low=gf}for(var _f=0;_f<5;_f++)for(var Of=jd[(_f+4)%5],Cf=jd[(_f+1)%5],If=Cf.high,Ff=Cf.low,vf=Of.high^(If<<1|Ff>>>31),gf=Of.low^(Ff<<1|If>>>31),Af=0;Af<5;Af++){var mf=qd[_f+5*Af];mf.high^=vf,mf.low^=gf}for(var sh=1;sh<25;sh++){var vf,gf,mf=qd[sh],Sh=mf.high,yh=mf.low,Mh=Nd[sh];Mh<32?(vf=Sh<>>32-Mh,gf=yh<>>32-Mh):(vf=yh<>>64-Mh,gf=Sh<>>64-Mh);var lh=jd[Ld[sh]];lh.high=vf,lh.low=gf}var rh=jd[0],mh=qd[0];rh.high=mh.high,rh.low=mh.low;for(var _f=0;_f<5;_f++)for(var Af=0;Af<5;Af++){var sh=_f+5*Af,mf=qd[sh],xh=jd[sh],Eh=jd[(_f+1)%5+5*Af],kf=jd[(_f+2)%5+5*Af];mf.high=xh.high^~Eh.high&kf.high,mf.low=xh.low^~Eh.low&kf.low}var mf=qd[0],Rf=Ud[xf];mf.high^=Rf.high,mf.low^=Rf.low}},_doFinalize:function(){var Yd=this._data,zd=Yd.words;this._nDataBytes*8;var qd=Yd.sigBytes*8,Wd=this.blockSize*32;zd[qd>>>5]|=1<<24-qd%32,zd[(dd.ceil((qd+1)/Wd)*Wd>>>5)-1]|=128,Yd.sigBytes=zd.length*4,this._process();for(var Xd=this._state,Jd=this.cfg.outputLength/8,Zd=Jd/8,mf=[],xf=0;xf>>24)&16711935|(vf<<24|vf>>>8)&4278255360,gf=(gf<<8|gf>>>24)&16711935|(gf<<24|gf>>>8)&4278255360,mf.push(gf),mf.push(vf)}return new gd.init(mf,Jd)},clone:function(){for(var Yd=yd.clone.call(this),zd=Yd._state=this._state.slice(0),qd=0;qd<25;qd++)zd[qd]=zd[qd].clone();return Yd}});hd.SHA3=yd._createHelper(Gd),hd.HmacSHA3=yd._createHmacHelper(Gd)}(Math),ud.SHA3})}(sha3)),sha3.exports}var ripemd160={exports:{}},hasRequiredRipemd160;function requireRipemd160(){return hasRequiredRipemd160||(hasRequiredRipemd160=1,function(Ra,ed){(function(ud,dd){Ra.exports=dd(requireCore())})(commonjsGlobal,function(ud){/** @preserve +`),Pg=Nd.HmacSHA1(P_,t0).toString(),$0=["q-sign-algorithm="+l_,"q-ak="+v_,"q-sign-time="+r_,"q-key-time="+O_,"q-header-list="+S_,"q-url-param-list="+Q_,"q-signature="+Pg].join("&");return $0},gf=function($f,Nh,Wh){var _m=Nh/8,Om=$f.slice(Wh,Wh+_m);return new Uint8Array(Om).reverse(),new{8:Uint8Array,16:Uint16Array,32:Uint32Array}[Nh](Om)[0]},Af=function($f,Nh,Wh,_m){var Om=$f.slice(Nh,Wh),Wm="";return new Uint8Array(Om).forEach(function(Ag){Wm+=String.fromCharCode(Ag)}),_m&&(Wm=decodeURIComponent(escape(Wm))),Wm},Df=function($f){for(var Nh={},Wh=Af($f),_m={records:[]};$f.byteLength;){var Om=gf($f,32,0),Wm=gf($f,32,4),Ag=Om-Wm-16,sg=0,yg;for($f=$f.slice(12);sgparseInt(_m[Om])?1:-1;return 0},$f=function(Wh){if(!Wh)return!1;var _m=(Wh.match(/Chrome\/([.\d]+)/)||[])[1],Om=(Wh.match(/QBCore\/([.\d]+)/)||[])[1],Wm=(Wh.match(/QQBrowser\/([.\d]+)/)||[])[1],Ag=_m&&Pf(_m,"53.0.2785.116")<0&&Om&&Pf(Om,"3.53.991.400")<0&&Wm&&Pf(Wm,"9.0.2524.400")<=0||!1;return Ag};return $f(typeof navigator<"u"&&navigator.userAgent)}(),Eh=function($f,Nh,Wh,_m,Om){var Wm;if($f.slice?Wm=$f.slice(Nh,Wh):$f.mozSlice?Wm=$f.mozSlice(Nh,Wh):$f.webkitSlice&&(Wm=$f.webkitSlice(Nh,Wh)),_m&&oh){var Ag=new FileReader;Ag.onload=function(sg){Wm=null,Om(new Blob([Ag.result]))},Ag.readAsArrayBuffer(Wm)}else Om(Wm)},_h=function($f,Nh,Wh,_m){Wh=Wh||Cf,$f?typeof Nh=="string"?Wh(jh.md5(Nh,!0)):Blob&&Nh instanceof Blob?jh.getFileMd5(Nh,function(Om,Wm){Wh(Wm)},_m):Wh():Wh()},Mh=1024*1024,lh=function($f,Nh,Wh){var _m=$f.size,Om=0,Wm=wd.getCtx(),Ag=function sg(yg){if(yg>=_m){var vg=Wm.digest("hex");Nh(null,vg);return}var kg=Math.min(_m,yg+Mh);jh.fileSlice($f,yg,kg,!1,function(Kg){Ff(Kg,function(p_){Kg=null,Wm=Wm.update(p_,!0),Om+=p_.length,p_=null,Wh&&Wh({loaded:Om,total:_m,percent:Math.round(Om/_m*1e4)/1e4}),sg(yg+Mh)})})};Ag(0)};function rh(Pf){return Ph(Pf,function($f){return gd($f)==="object"&&$f!==null?rh($f):$f})}function mh(Pf,$f,Nh){return Pf&&$f in Pf?Pf[$f]:Nh}function xh(Pf,$f){return yh($f,function(Nh,Wh){Pf[Wh]=$f[Wh]}),Pf}function Sh(Pf){return Pf instanceof Array}function Of(Pf,$f){for(var Nh=!1,Wh=0;Wh-1,sg=!Wm||typeof Wm=="string"&&Wm.indexOf("{Region}")>-1;if($f.indexOf("Bucket")>-1||$f==="deleteMultipleObject"||$f==="multipartList"||$f==="listObjectVersions"){if(Ag&&!Wh)return"Bucket";if(sg&&!_m)return"Region"}else if($f.indexOf("Object")>-1||$f.indexOf("multipart")>-1||$f==="sliceUploadFile"||$f==="abortUploadTask"||$f==="uploadFile"){if(Ag&&!Wh)return"Bucket";if(sg&&!_m)return"Region";if(!Om)return"Key"}return!1},Sm=function($f,Nh){if(Nh=xh({},Nh),$f!=="getAuth"&&$f!=="getV4Auth"&&$f!=="getObjectUrl"){var Wh=Nh.Headers||{};if(Nh&&gd(Nh)==="object"){(function(){for(var Om in Nh)Nh.hasOwnProperty(Om)&&Om.indexOf("x-cos-")>-1&&(Wh[Om]=Nh[Om])})();var _m={"x-cos-mfa":"MFA","Content-MD5":"ContentMD5","Content-Length":"ContentLength","Content-Type":"ContentType",Expect:"Expect",Expires:"Expires","Cache-Control":"CacheControl","Content-Disposition":"ContentDisposition","Content-Encoding":"ContentEncoding",Range:"Range","If-Modified-Since":"IfModifiedSince","If-Unmodified-Since":"IfUnmodifiedSince","If-Match":"IfMatch","If-None-Match":"IfNoneMatch","x-cos-copy-source":"CopySource","x-cos-copy-source-Range":"CopySourceRange","x-cos-metadata-directive":"MetadataDirective","x-cos-copy-source-If-Modified-Since":"CopySourceIfModifiedSince","x-cos-copy-source-If-Unmodified-Since":"CopySourceIfUnmodifiedSince","x-cos-copy-source-If-Match":"CopySourceIfMatch","x-cos-copy-source-If-None-Match":"CopySourceIfNoneMatch","x-cos-acl":"ACL","x-cos-grant-read":"GrantRead","x-cos-grant-write":"GrantWrite","x-cos-grant-full-control":"GrantFullControl","x-cos-grant-read-acp":"GrantReadAcp","x-cos-grant-write-acp":"GrantWriteAcp","x-cos-storage-class":"StorageClass","x-cos-traffic-limit":"TrafficLimit","x-cos-mime-limit":"MimeLimit","x-cos-server-side-encryption-customer-algorithm":"SSECustomerAlgorithm","x-cos-server-side-encryption-customer-key":"SSECustomerKey","x-cos-server-side-encryption-customer-key-MD5":"SSECustomerKeyMD5","x-cos-server-side-encryption":"ServerSideEncryption","x-cos-server-side-encryption-cos-kms-key-id":"SSEKMSKeyId","x-cos-server-side-encryption-context":"SSEContext","Pic-Operations":"PicOperations","x-cos-callback":"Callback","x-cos-callback-var":"CallbackVar","x-cos-return-body":"ReturnBody"};jh.each(_m,function(Om,Wm){Nh[Om]!==void 0&&(Wh[Wm]=Nh[Om])}),Nh.Headers=If(Wh)}}return Nh},$h=function($f,Nh){return function(Wh,_m){var Om=this;typeof Wh=="function"&&(_m=Wh,Wh={}),Wh=Sm($f,Wh);var Wm;if(Om.options.EnableReporter)if(Wh.calledBySdk==="sliceUploadFile"||Wh.calledBySdk==="sliceCopyFile")Wm=Wh.tracker&&Wh.tracker.generateSubTracker({apiName:$f});else if(["uploadFile","uploadFiles"].includes($f))Wm=null;else{var Ag=0;Wh.Body&&(Ag=typeof Wh.Body=="string"?Wh.Body.length:Wh.Body.size||Wh.Body.byteLength||0);var sg=Om.options.UseAccelerate||typeof Om.options.Domain=="string"&&Om.options.Domain.includes("accelerate.");Wm=new qd({Beacon:Om.options.BeaconReporter,clsReporter:Om.options.ClsReporter,bucket:Wh.Bucket,region:Wh.Region,apiName:$f,realApi:$f,accelerate:sg,fileKey:Wh.Key,fileSize:Ag,deepTracker:Om.options.DeepTracker,customId:Om.options.CustomId,delay:Om.options.TrackerDelay})}Wh.tracker=Wm;var yg=function(r_){return r_&&r_.headers&&(r_.headers["x-cos-request-id"]&&(r_.RequestId=r_.headers["x-cos-request-id"]),r_.headers["x-ci-request-id"]&&(r_.RequestId=r_.headers["x-ci-request-id"]),r_.headers["x-cos-version-id"]&&(r_.VersionId=r_.headers["x-cos-version-id"]),r_.headers["x-cos-delete-marker"]&&(r_.DeleteMarker=r_.headers["x-cos-delete-marker"])),r_},vg=function(r_,O_){Wm&&Wm.report(r_,O_),_m&&_m(yg(r_),yg(O_))},kg=function(){if($f!=="getService"&&$f!=="abortUploadTask"){var r_=Zh.call(Om,$f,Wh);if(r_)return"missing param "+r_;if(Wh.Region){if(Om.options.CompatibilityMode){if(!/^([a-z\d-.]+)$/.test(Wh.Region))return"Region format error."}else{if(Wh.Region.indexOf("cos.")>-1)return'param Region should not be start with "cos."';if(!/^([a-z\d-]+)$/.test(Wh.Region))return"Region format error."}!Om.options.CompatibilityMode&&Wh.Region.indexOf("-")===-1&&Wh.Region!=="yfb"&&Wh.Region!=="default"&&Wh.Region!=="accelerate"&&console.warn("warning: param Region format error, find help here: https://cloud.tencent.com/document/product/436/6224")}if(Wh.Bucket){if(!/^([a-z\d-]+)-(\d+)$/.test(Wh.Bucket))if(Wh.AppId)Wh.Bucket=Wh.Bucket+"-"+Wh.AppId;else if(Om.options.AppId)Wh.Bucket=Wh.Bucket+"-"+Om.options.AppId;else return'Bucket should format as "test-1250000000".';Wh.AppId&&(console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g Bucket:"test-1250000000" ).'),delete Wh.AppId)}!Om.options.UseRawKey&&Wh.Key&&Wh.Key.substr(0,1)==="/"&&(Wh.Key=Wh.Key.substr(1))}},Kg=kg(),p_=["getAuth","getObjectUrl"].includes($f);if(typeof Promise=="function"&&!p_&&!_m)return new Promise(function(v_,r_){if(_m=function(S_,Q_){S_?r_(S_):v_(Q_)},Kg)return vg(jh.error(new Error(Kg)));Nh.call(Om,Wh,vg)});if(Kg)return vg(jh.error(new Error(Kg)));var l_=Nh.call(Om,Wh,vg);if(p_)return l_}},Vf=function($f,Nh){var Wh=this,_m=0,Om=0,Wm=Date.now(),Ag,sg;function yg(){if(sg=0,Nh&&typeof Nh=="function"){Ag=Date.now();var vg=Math.max(0,Math.round((Om-_m)/((Ag-Wm)/1e3)*100)/100)||0,kg;Om===0&&$f===0?kg=1:kg=Math.floor(Om/$f*100)/100||0,Wm=Ag,_m=Om;try{Nh({loaded:Om,total:$f,speed:vg,percent:kg})}catch{}}}return function(vg,kg){if(vg&&(Om=vg.loaded,$f=vg.total),kg)clearTimeout(sg),yg();else{if(sg)return;sg=setTimeout(yg,Wh.options.ProgressInterval)}}},nh=function($f,Nh,Wh){var _m;if(typeof Nh.Body=="string"?Nh.Body=new Blob([Nh.Body],{type:"text/plain"}):Nh.Body instanceof ArrayBuffer&&(Nh.Body=new Blob([Nh.Body])),Nh.Body&&(Nh.Body instanceof Blob||Nh.Body.toString()==="[object File]"||Nh.Body.toString()==="[object Blob]"))_m=Nh.Body.size;else{Wh(jh.error(new Error("params body format error, Only allow File|Blob|String.")));return}Nh.ContentLength=_m,Wh(null,_m)},Lh=function($f){return Date.now()+($f||0)},Ih=function($f,Nh){var Wh=$f;return $f.message=$f.message||null,typeof Nh=="string"?($f.error=Nh,$f.message=Nh):gd(Nh)==="object"&&Nh!==null&&(xh($f,Nh),(Nh.code||Nh.name)&&($f.code=Nh.code||Nh.name),Nh.message&&($f.message=Nh.message),Nh.stack&&($f.stack=Nh.stack)),typeof Object.defineProperty=="function"&&(Object.defineProperty($f,"name",{writable:!0,enumerable:!1}),Object.defineProperty($f,"message",{enumerable:!0})),$f.name=Nh&&Nh.name||$f.name||$f.code||"Error",$f.code||($f.code=$f.name),$f.error||($f.error=rh(Wh)),$f},om=function(){return(typeof globalThis>"u"?"undefined":gd(globalThis))==="object"&&(globalThis.constructor.name==="DedicatedWorkerGlobalScope"||globalThis.FileReaderSync)},zh=function(){return(typeof window>"u"?"undefined":gd(window))!=="object"&&(typeof md>"u"?"undefined":gd(md))==="object"&&!0&&!om()},Mm=function($f){return/^https?:\/\/([^/]+\.)?ci\.[^/]+/.test($f)},Nm=function(){if((typeof navigator>"u"?"undefined":gd(navigator))!=="object")return!1;var Pf=navigator.userAgent,$f=!!Pf.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return $f}(),Zm=function(){return(typeof navigator>"u"?"undefined":gd(navigator))!=="object"?!1:/\sQQ/i.test(navigator.userAgent)}(),Ym=function($f,Nh){var Wh=zd.encode($f);return Nh&&(Wh=Wh.replaceAll("+","-").replaceAll("/","_").replaceAll("=","")),Wh},jm=function($f){return $f?zd.decode($f):""},rg=function($f){var Nh=$f.split("/"),Wh=[],_m=yd(Nh),Om;try{for(_m.s();!(Om=_m.n()).done;){var Wm=Om.value;Wm===".."?Wh.length&&Wh.pop():Wm.length&&Wm!=="."&&Wh.push(Wm)}}catch(Ag){_m.e(Ag)}finally{_m.f()}return"/"+Wh.join("/")},pg=function($f){var Nh;if($f&&typeof $f=="string"){var Wh=$f.trim(),_m=Wh.indexOf("<")===0,Om=Wh.indexOf("{")===0;if(_m)Nh=jh.xml2json($f)||{};else if(Om)try{var Wm=$f.replace(/\n/g," "),Ag=JSON.parse(Wm);Object.prototype.toString.call(Ag)==="[object Object]"?Nh=Ag:Nh=$f}catch{Nh=$f}else Nh=$f}else Nh=$f||{};return Nh},jh={noop:Cf,formatParams:Sm,apiWrapper:$h,xml2json:Wd,json2xml:Xd,md5:wd,clearKey:If,fileSlice:Eh,getBodyMd5:_h,getFileMd5:lh,b64:th,extend:xh,isArray:Sh,isInArray:Of,makeArray:Rf,each:yh,map:Ph,filter:sm,clone:rh,attr:mh,uuid:sh,camSafeUrlEncode:Jd,throttleOnProgress:Vf,getFileSize:nh,getSkewTime:Lh,error:Ih,obj2str:mf,getAuth:vf,parseSelectPayload:Df,getSourceParams:kf,isBrowser:!0,isNode:zh,isCIHost:Mm,isIOS_QQ:Nm&&Zm,encodeBase64:Ym,decodeBase64:jm,simplifyPath:rg,readAsBinaryString:Ff,parseResBody:pg};ud.exports=jh}).call(this,hd("./node_modules/process/browser.js"))}})})})(cosJsSdkV5);var cosJsSdkV5Exports=cosJsSdkV5.exports;const COS=getDefaultExportFromCjs(cosJsSdkV5Exports);var cryptoJs={exports:{}},core={exports:{}};const __viteBrowserExternal={},http=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0$1=getAugmentedNamespace(http);var hasRequiredCore;function requireCore(){return hasRequiredCore||(hasRequiredCore=1,function(Ra,ed){(function(ud,dd){Ra.exports=dd()})(commonjsGlobal,function(){var ud=ud||function(dd,hd){var md;if(typeof window<"u"&&window.crypto&&(md=window.crypto),typeof self<"u"&&self.crypto&&(md=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(md=globalThis.crypto),!md&&typeof window<"u"&&window.msCrypto&&(md=window.msCrypto),!md&&typeof commonjsGlobal<"u"&&commonjsGlobal.crypto&&(md=commonjsGlobal.crypto),!md&&typeof commonjsRequire=="function")try{md=require$$0$1}catch{}var gd=function(){if(md){if(typeof md.getRandomValues=="function")try{return md.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof md.randomBytes=="function")try{return md.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},yd=Object.create||function(){function qd(){}return function(Wd){var Xd;return qd.prototype=Wd,Xd=new qd,qd.prototype=null,Xd}}(),vd={},Cd=vd.lib={},wd=Cd.Base=function(){return{extend:function(qd){var Wd=yd(this);return qd&&Wd.mixIn(qd),(!Wd.hasOwnProperty("init")||this.init===Wd.init)&&(Wd.init=function(){Wd.$super.init.apply(this,arguments)}),Wd.init.prototype=Wd,Wd.$super=this,Wd},create:function(){var qd=this.extend();return qd.init.apply(qd,arguments),qd},init:function(){},mixIn:function(qd){for(var Wd in qd)qd.hasOwnProperty(Wd)&&(this[Wd]=qd[Wd]);qd.hasOwnProperty("toString")&&(this.toString=qd.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),Nd=Cd.WordArray=wd.extend({init:function(qd,Wd){qd=this.words=qd||[],Wd!=hd?this.sigBytes=Wd:this.sigBytes=qd.length*4},toString:function(qd){return(qd||Ud).stringify(this)},concat:function(qd){var Wd=this.words,Xd=qd.words,Jd=this.sigBytes,Zd=qd.sigBytes;if(this.clamp(),Jd%4)for(var mf=0;mf>>2]>>>24-mf%4*8&255;Wd[Jd+mf>>>2]|=xf<<24-(Jd+mf)%4*8}else for(var _f=0;_f>>2]=Xd[_f>>>2];return this.sigBytes+=Zd,this},clamp:function(){var qd=this.words,Wd=this.sigBytes;qd[Wd>>>2]&=4294967295<<32-Wd%4*8,qd.length=dd.ceil(Wd/4)},clone:function(){var qd=wd.clone.call(this);return qd.words=this.words.slice(0),qd},random:function(qd){for(var Wd=[],Xd=0;Xd>>2]>>>24-Zd%4*8&255;Jd.push((mf>>>4).toString(16)),Jd.push((mf&15).toString(16))}return Jd.join("")},parse:function(qd){for(var Wd=qd.length,Xd=[],Jd=0;Jd>>3]|=parseInt(qd.substr(Jd,2),16)<<24-Jd%8*4;return new Nd.init(Xd,Wd/2)}},jd=Ld.Latin1={stringify:function(qd){for(var Wd=qd.words,Xd=qd.sigBytes,Jd=[],Zd=0;Zd>>2]>>>24-Zd%4*8&255;Jd.push(String.fromCharCode(mf))}return Jd.join("")},parse:function(qd){for(var Wd=qd.length,Xd=[],Jd=0;Jd>>2]|=(qd.charCodeAt(Jd)&255)<<24-Jd%4*8;return new Nd.init(Xd,Wd)}},Gd=Ld.Utf8={stringify:function(qd){try{return decodeURIComponent(escape(jd.stringify(qd)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(qd){return jd.parse(unescape(encodeURIComponent(qd)))}},Yd=Cd.BufferedBlockAlgorithm=wd.extend({reset:function(){this._data=new Nd.init,this._nDataBytes=0},_append:function(qd){typeof qd=="string"&&(qd=Gd.parse(qd)),this._data.concat(qd),this._nDataBytes+=qd.sigBytes},_process:function(qd){var Wd,Xd=this._data,Jd=Xd.words,Zd=Xd.sigBytes,mf=this.blockSize,xf=mf*4,_f=Zd/xf;qd?_f=dd.ceil(_f):_f=dd.max((_f|0)-this._minBufferSize,0);var vf=_f*mf,gf=dd.min(vf*4,Zd);if(vf){for(var Af=0;Af>>2]|=vd[Nd]<<24-Nd%4*8;gd.call(this,wd,Cd)}else gd.apply(this,arguments)};yd.prototype=md}}(),ud.lib.WordArray})}(libTypedarrays)),libTypedarrays.exports}var encUtf16={exports:{}},hasRequiredEncUtf16;function requireEncUtf16(){return hasRequiredEncUtf16||(hasRequiredEncUtf16=1,function(Ra,ed){(function(ud,dd){Ra.exports=dd(requireCore())})(commonjsGlobal,function(ud){return function(){var dd=ud,hd=dd.lib,md=hd.WordArray,gd=dd.enc;gd.Utf16=gd.Utf16BE={stringify:function(vd){for(var Cd=vd.words,wd=vd.sigBytes,Nd=[],Ld=0;Ld>>2]>>>16-Ld%4*8&65535;Nd.push(String.fromCharCode(Ud))}return Nd.join("")},parse:function(vd){for(var Cd=vd.length,wd=[],Nd=0;Nd>>1]|=vd.charCodeAt(Nd)<<16-Nd%2*16;return md.create(wd,Cd*2)}},gd.Utf16LE={stringify:function(vd){for(var Cd=vd.words,wd=vd.sigBytes,Nd=[],Ld=0;Ld>>2]>>>16-Ld%4*8&65535);Nd.push(String.fromCharCode(Ud))}return Nd.join("")},parse:function(vd){for(var Cd=vd.length,wd=[],Nd=0;Nd>>1]|=yd(vd.charCodeAt(Nd)<<16-Nd%2*16);return md.create(wd,Cd*2)}};function yd(vd){return vd<<8&4278255360|vd>>>8&16711935}}(),ud.enc.Utf16})}(encUtf16)),encUtf16.exports}var encBase64={exports:{}},hasRequiredEncBase64;function requireEncBase64(){return hasRequiredEncBase64||(hasRequiredEncBase64=1,function(Ra,ed){(function(ud,dd){Ra.exports=dd(requireCore())})(commonjsGlobal,function(ud){return function(){var dd=ud,hd=dd.lib,md=hd.WordArray,gd=dd.enc;gd.Base64={stringify:function(vd){var Cd=vd.words,wd=vd.sigBytes,Nd=this._map;vd.clamp();for(var Ld=[],Ud=0;Ud>>2]>>>24-Ud%4*8&255,Gd=Cd[Ud+1>>>2]>>>24-(Ud+1)%4*8&255,Yd=Cd[Ud+2>>>2]>>>24-(Ud+2)%4*8&255,zd=jd<<16|Gd<<8|Yd,qd=0;qd<4&&Ud+qd*.75>>6*(3-qd)&63));var Wd=Nd.charAt(64);if(Wd)for(;Ld.length%4;)Ld.push(Wd);return Ld.join("")},parse:function(vd){var Cd=vd.length,wd=this._map,Nd=this._reverseMap;if(!Nd){Nd=this._reverseMap=[];for(var Ld=0;Ld>>6-Ud%4*2,Yd=jd|Gd;Nd[Ld>>>2]|=Yd<<24-Ld%4*8,Ld++}return md.create(Nd,Ld)}}(),ud.enc.Base64})}(encBase64)),encBase64.exports}var encBase64url={exports:{}},hasRequiredEncBase64url;function requireEncBase64url(){return hasRequiredEncBase64url||(hasRequiredEncBase64url=1,function(Ra,ed){(function(ud,dd){Ra.exports=dd(requireCore())})(commonjsGlobal,function(ud){return function(){var dd=ud,hd=dd.lib,md=hd.WordArray,gd=dd.enc;gd.Base64url={stringify:function(vd,Cd){Cd===void 0&&(Cd=!0);var wd=vd.words,Nd=vd.sigBytes,Ld=Cd?this._safe_map:this._map;vd.clamp();for(var Ud=[],jd=0;jd>>2]>>>24-jd%4*8&255,Yd=wd[jd+1>>>2]>>>24-(jd+1)%4*8&255,zd=wd[jd+2>>>2]>>>24-(jd+2)%4*8&255,qd=Gd<<16|Yd<<8|zd,Wd=0;Wd<4&&jd+Wd*.75>>6*(3-Wd)&63));var Xd=Ld.charAt(64);if(Xd)for(;Ud.length%4;)Ud.push(Xd);return Ud.join("")},parse:function(vd,Cd){Cd===void 0&&(Cd=!0);var wd=vd.length,Nd=Cd?this._safe_map:this._map,Ld=this._reverseMap;if(!Ld){Ld=this._reverseMap=[];for(var Ud=0;Ud>>6-Ud%4*2,Yd=jd|Gd;Nd[Ld>>>2]|=Yd<<24-Ld%4*8,Ld++}return md.create(Nd,Ld)}}(),ud.enc.Base64url})}(encBase64url)),encBase64url.exports}var md5$1={exports:{}},hasRequiredMd5$1;function requireMd5$1(){return hasRequiredMd5$1||(hasRequiredMd5$1=1,function(Ra,ed){(function(ud,dd){Ra.exports=dd(requireCore())})(commonjsGlobal,function(ud){return function(dd){var hd=ud,md=hd.lib,gd=md.WordArray,yd=md.Hasher,vd=hd.algo,Cd=[];(function(){for(var Gd=0;Gd<64;Gd++)Cd[Gd]=dd.abs(dd.sin(Gd+1))*4294967296|0})();var wd=vd.MD5=yd.extend({_doReset:function(){this._hash=new gd.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(Gd,Yd){for(var zd=0;zd<16;zd++){var qd=Yd+zd,Wd=Gd[qd];Gd[qd]=(Wd<<8|Wd>>>24)&16711935|(Wd<<24|Wd>>>8)&4278255360}var Xd=this._hash.words,Jd=Gd[Yd+0],Zd=Gd[Yd+1],mf=Gd[Yd+2],xf=Gd[Yd+3],_f=Gd[Yd+4],vf=Gd[Yd+5],gf=Gd[Yd+6],Af=Gd[Yd+7],Df=Gd[Yd+8],kf=Gd[Yd+9],Cf=Gd[Yd+10],If=Gd[Yd+11],Ff=Gd[Yd+12],oh=Gd[Yd+13],Eh=Gd[Yd+14],_h=Gd[Yd+15],Mh=Xd[0],lh=Xd[1],rh=Xd[2],mh=Xd[3];Mh=Nd(Mh,lh,rh,mh,Jd,7,Cd[0]),mh=Nd(mh,Mh,lh,rh,Zd,12,Cd[1]),rh=Nd(rh,mh,Mh,lh,mf,17,Cd[2]),lh=Nd(lh,rh,mh,Mh,xf,22,Cd[3]),Mh=Nd(Mh,lh,rh,mh,_f,7,Cd[4]),mh=Nd(mh,Mh,lh,rh,vf,12,Cd[5]),rh=Nd(rh,mh,Mh,lh,gf,17,Cd[6]),lh=Nd(lh,rh,mh,Mh,Af,22,Cd[7]),Mh=Nd(Mh,lh,rh,mh,Df,7,Cd[8]),mh=Nd(mh,Mh,lh,rh,kf,12,Cd[9]),rh=Nd(rh,mh,Mh,lh,Cf,17,Cd[10]),lh=Nd(lh,rh,mh,Mh,If,22,Cd[11]),Mh=Nd(Mh,lh,rh,mh,Ff,7,Cd[12]),mh=Nd(mh,Mh,lh,rh,oh,12,Cd[13]),rh=Nd(rh,mh,Mh,lh,Eh,17,Cd[14]),lh=Nd(lh,rh,mh,Mh,_h,22,Cd[15]),Mh=Ld(Mh,lh,rh,mh,Zd,5,Cd[16]),mh=Ld(mh,Mh,lh,rh,gf,9,Cd[17]),rh=Ld(rh,mh,Mh,lh,If,14,Cd[18]),lh=Ld(lh,rh,mh,Mh,Jd,20,Cd[19]),Mh=Ld(Mh,lh,rh,mh,vf,5,Cd[20]),mh=Ld(mh,Mh,lh,rh,Cf,9,Cd[21]),rh=Ld(rh,mh,Mh,lh,_h,14,Cd[22]),lh=Ld(lh,rh,mh,Mh,_f,20,Cd[23]),Mh=Ld(Mh,lh,rh,mh,kf,5,Cd[24]),mh=Ld(mh,Mh,lh,rh,Eh,9,Cd[25]),rh=Ld(rh,mh,Mh,lh,xf,14,Cd[26]),lh=Ld(lh,rh,mh,Mh,Df,20,Cd[27]),Mh=Ld(Mh,lh,rh,mh,oh,5,Cd[28]),mh=Ld(mh,Mh,lh,rh,mf,9,Cd[29]),rh=Ld(rh,mh,Mh,lh,Af,14,Cd[30]),lh=Ld(lh,rh,mh,Mh,Ff,20,Cd[31]),Mh=Ud(Mh,lh,rh,mh,vf,4,Cd[32]),mh=Ud(mh,Mh,lh,rh,Df,11,Cd[33]),rh=Ud(rh,mh,Mh,lh,If,16,Cd[34]),lh=Ud(lh,rh,mh,Mh,Eh,23,Cd[35]),Mh=Ud(Mh,lh,rh,mh,Zd,4,Cd[36]),mh=Ud(mh,Mh,lh,rh,_f,11,Cd[37]),rh=Ud(rh,mh,Mh,lh,Af,16,Cd[38]),lh=Ud(lh,rh,mh,Mh,Cf,23,Cd[39]),Mh=Ud(Mh,lh,rh,mh,oh,4,Cd[40]),mh=Ud(mh,Mh,lh,rh,Jd,11,Cd[41]),rh=Ud(rh,mh,Mh,lh,xf,16,Cd[42]),lh=Ud(lh,rh,mh,Mh,gf,23,Cd[43]),Mh=Ud(Mh,lh,rh,mh,kf,4,Cd[44]),mh=Ud(mh,Mh,lh,rh,Ff,11,Cd[45]),rh=Ud(rh,mh,Mh,lh,_h,16,Cd[46]),lh=Ud(lh,rh,mh,Mh,mf,23,Cd[47]),Mh=jd(Mh,lh,rh,mh,Jd,6,Cd[48]),mh=jd(mh,Mh,lh,rh,Af,10,Cd[49]),rh=jd(rh,mh,Mh,lh,Eh,15,Cd[50]),lh=jd(lh,rh,mh,Mh,vf,21,Cd[51]),Mh=jd(Mh,lh,rh,mh,Ff,6,Cd[52]),mh=jd(mh,Mh,lh,rh,xf,10,Cd[53]),rh=jd(rh,mh,Mh,lh,Cf,15,Cd[54]),lh=jd(lh,rh,mh,Mh,Zd,21,Cd[55]),Mh=jd(Mh,lh,rh,mh,Df,6,Cd[56]),mh=jd(mh,Mh,lh,rh,_h,10,Cd[57]),rh=jd(rh,mh,Mh,lh,gf,15,Cd[58]),lh=jd(lh,rh,mh,Mh,oh,21,Cd[59]),Mh=jd(Mh,lh,rh,mh,_f,6,Cd[60]),mh=jd(mh,Mh,lh,rh,If,10,Cd[61]),rh=jd(rh,mh,Mh,lh,mf,15,Cd[62]),lh=jd(lh,rh,mh,Mh,kf,21,Cd[63]),Xd[0]=Xd[0]+Mh|0,Xd[1]=Xd[1]+lh|0,Xd[2]=Xd[2]+rh|0,Xd[3]=Xd[3]+mh|0},_doFinalize:function(){var Gd=this._data,Yd=Gd.words,zd=this._nDataBytes*8,qd=Gd.sigBytes*8;Yd[qd>>>5]|=128<<24-qd%32;var Wd=dd.floor(zd/4294967296),Xd=zd;Yd[(qd+64>>>9<<4)+15]=(Wd<<8|Wd>>>24)&16711935|(Wd<<24|Wd>>>8)&4278255360,Yd[(qd+64>>>9<<4)+14]=(Xd<<8|Xd>>>24)&16711935|(Xd<<24|Xd>>>8)&4278255360,Gd.sigBytes=(Yd.length+1)*4,this._process();for(var Jd=this._hash,Zd=Jd.words,mf=0;mf<4;mf++){var xf=Zd[mf];Zd[mf]=(xf<<8|xf>>>24)&16711935|(xf<<24|xf>>>8)&4278255360}return Jd},clone:function(){var Gd=yd.clone.call(this);return Gd._hash=this._hash.clone(),Gd}});function Nd(Gd,Yd,zd,qd,Wd,Xd,Jd){var Zd=Gd+(Yd&zd|~Yd&qd)+Wd+Jd;return(Zd<>>32-Xd)+Yd}function Ld(Gd,Yd,zd,qd,Wd,Xd,Jd){var Zd=Gd+(Yd&qd|zd&~qd)+Wd+Jd;return(Zd<>>32-Xd)+Yd}function Ud(Gd,Yd,zd,qd,Wd,Xd,Jd){var Zd=Gd+(Yd^zd^qd)+Wd+Jd;return(Zd<>>32-Xd)+Yd}function jd(Gd,Yd,zd,qd,Wd,Xd,Jd){var Zd=Gd+(zd^(Yd|~qd))+Wd+Jd;return(Zd<>>32-Xd)+Yd}hd.MD5=yd._createHelper(wd),hd.HmacMD5=yd._createHmacHelper(wd)}(Math),ud.MD5})}(md5$1)),md5$1.exports}var sha1={exports:{}},hasRequiredSha1;function requireSha1(){return hasRequiredSha1||(hasRequiredSha1=1,function(Ra,ed){(function(ud,dd){Ra.exports=dd(requireCore())})(commonjsGlobal,function(ud){return function(){var dd=ud,hd=dd.lib,md=hd.WordArray,gd=hd.Hasher,yd=dd.algo,vd=[],Cd=yd.SHA1=gd.extend({_doReset:function(){this._hash=new md.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(wd,Nd){for(var Ld=this._hash.words,Ud=Ld[0],jd=Ld[1],Gd=Ld[2],Yd=Ld[3],zd=Ld[4],qd=0;qd<80;qd++){if(qd<16)vd[qd]=wd[Nd+qd]|0;else{var Wd=vd[qd-3]^vd[qd-8]^vd[qd-14]^vd[qd-16];vd[qd]=Wd<<1|Wd>>>31}var Xd=(Ud<<5|Ud>>>27)+zd+vd[qd];qd<20?Xd+=(jd&Gd|~jd&Yd)+1518500249:qd<40?Xd+=(jd^Gd^Yd)+1859775393:qd<60?Xd+=(jd&Gd|jd&Yd|Gd&Yd)-1894007588:Xd+=(jd^Gd^Yd)-899497514,zd=Yd,Yd=Gd,Gd=jd<<30|jd>>>2,jd=Ud,Ud=Xd}Ld[0]=Ld[0]+Ud|0,Ld[1]=Ld[1]+jd|0,Ld[2]=Ld[2]+Gd|0,Ld[3]=Ld[3]+Yd|0,Ld[4]=Ld[4]+zd|0},_doFinalize:function(){var wd=this._data,Nd=wd.words,Ld=this._nDataBytes*8,Ud=wd.sigBytes*8;return Nd[Ud>>>5]|=128<<24-Ud%32,Nd[(Ud+64>>>9<<4)+14]=Math.floor(Ld/4294967296),Nd[(Ud+64>>>9<<4)+15]=Ld,wd.sigBytes=Nd.length*4,this._process(),this._hash},clone:function(){var wd=gd.clone.call(this);return wd._hash=this._hash.clone(),wd}});dd.SHA1=gd._createHelper(Cd),dd.HmacSHA1=gd._createHmacHelper(Cd)}(),ud.SHA1})}(sha1)),sha1.exports}var sha256={exports:{}},hasRequiredSha256;function requireSha256(){return hasRequiredSha256||(hasRequiredSha256=1,function(Ra,ed){(function(ud,dd){Ra.exports=dd(requireCore())})(commonjsGlobal,function(ud){return function(dd){var hd=ud,md=hd.lib,gd=md.WordArray,yd=md.Hasher,vd=hd.algo,Cd=[],wd=[];(function(){function Ud(zd){for(var qd=dd.sqrt(zd),Wd=2;Wd<=qd;Wd++)if(!(zd%Wd))return!1;return!0}function jd(zd){return(zd-(zd|0))*4294967296|0}for(var Gd=2,Yd=0;Yd<64;)Ud(Gd)&&(Yd<8&&(Cd[Yd]=jd(dd.pow(Gd,1/2))),wd[Yd]=jd(dd.pow(Gd,1/3)),Yd++),Gd++})();var Nd=[],Ld=vd.SHA256=yd.extend({_doReset:function(){this._hash=new gd.init(Cd.slice(0))},_doProcessBlock:function(Ud,jd){for(var Gd=this._hash.words,Yd=Gd[0],zd=Gd[1],qd=Gd[2],Wd=Gd[3],Xd=Gd[4],Jd=Gd[5],Zd=Gd[6],mf=Gd[7],xf=0;xf<64;xf++){if(xf<16)Nd[xf]=Ud[jd+xf]|0;else{var _f=Nd[xf-15],vf=(_f<<25|_f>>>7)^(_f<<14|_f>>>18)^_f>>>3,gf=Nd[xf-2],Af=(gf<<15|gf>>>17)^(gf<<13|gf>>>19)^gf>>>10;Nd[xf]=vf+Nd[xf-7]+Af+Nd[xf-16]}var Df=Xd&Jd^~Xd&Zd,kf=Yd&zd^Yd&qd^zd&qd,Cf=(Yd<<30|Yd>>>2)^(Yd<<19|Yd>>>13)^(Yd<<10|Yd>>>22),If=(Xd<<26|Xd>>>6)^(Xd<<21|Xd>>>11)^(Xd<<7|Xd>>>25),Ff=mf+If+Df+wd[xf]+Nd[xf],oh=Cf+kf;mf=Zd,Zd=Jd,Jd=Xd,Xd=Wd+Ff|0,Wd=qd,qd=zd,zd=Yd,Yd=Ff+oh|0}Gd[0]=Gd[0]+Yd|0,Gd[1]=Gd[1]+zd|0,Gd[2]=Gd[2]+qd|0,Gd[3]=Gd[3]+Wd|0,Gd[4]=Gd[4]+Xd|0,Gd[5]=Gd[5]+Jd|0,Gd[6]=Gd[6]+Zd|0,Gd[7]=Gd[7]+mf|0},_doFinalize:function(){var Ud=this._data,jd=Ud.words,Gd=this._nDataBytes*8,Yd=Ud.sigBytes*8;return jd[Yd>>>5]|=128<<24-Yd%32,jd[(Yd+64>>>9<<4)+14]=dd.floor(Gd/4294967296),jd[(Yd+64>>>9<<4)+15]=Gd,Ud.sigBytes=jd.length*4,this._process(),this._hash},clone:function(){var Ud=yd.clone.call(this);return Ud._hash=this._hash.clone(),Ud}});hd.SHA256=yd._createHelper(Ld),hd.HmacSHA256=yd._createHmacHelper(Ld)}(Math),ud.SHA256})}(sha256)),sha256.exports}var sha224={exports:{}},hasRequiredSha224;function requireSha224(){return hasRequiredSha224||(hasRequiredSha224=1,function(Ra,ed){(function(ud,dd,hd){Ra.exports=dd(requireCore(),requireSha256())})(commonjsGlobal,function(ud){return function(){var dd=ud,hd=dd.lib,md=hd.WordArray,gd=dd.algo,yd=gd.SHA256,vd=gd.SHA224=yd.extend({_doReset:function(){this._hash=new md.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var Cd=yd._doFinalize.call(this);return Cd.sigBytes-=4,Cd}});dd.SHA224=yd._createHelper(vd),dd.HmacSHA224=yd._createHmacHelper(vd)}(),ud.SHA224})}(sha224)),sha224.exports}var sha512={exports:{}},hasRequiredSha512;function requireSha512(){return hasRequiredSha512||(hasRequiredSha512=1,function(Ra,ed){(function(ud,dd,hd){Ra.exports=dd(requireCore(),requireX64Core())})(commonjsGlobal,function(ud){return function(){var dd=ud,hd=dd.lib,md=hd.Hasher,gd=dd.x64,yd=gd.Word,vd=gd.WordArray,Cd=dd.algo;function wd(){return yd.create.apply(yd,arguments)}var Nd=[wd(1116352408,3609767458),wd(1899447441,602891725),wd(3049323471,3964484399),wd(3921009573,2173295548),wd(961987163,4081628472),wd(1508970993,3053834265),wd(2453635748,2937671579),wd(2870763221,3664609560),wd(3624381080,2734883394),wd(310598401,1164996542),wd(607225278,1323610764),wd(1426881987,3590304994),wd(1925078388,4068182383),wd(2162078206,991336113),wd(2614888103,633803317),wd(3248222580,3479774868),wd(3835390401,2666613458),wd(4022224774,944711139),wd(264347078,2341262773),wd(604807628,2007800933),wd(770255983,1495990901),wd(1249150122,1856431235),wd(1555081692,3175218132),wd(1996064986,2198950837),wd(2554220882,3999719339),wd(2821834349,766784016),wd(2952996808,2566594879),wd(3210313671,3203337956),wd(3336571891,1034457026),wd(3584528711,2466948901),wd(113926993,3758326383),wd(338241895,168717936),wd(666307205,1188179964),wd(773529912,1546045734),wd(1294757372,1522805485),wd(1396182291,2643833823),wd(1695183700,2343527390),wd(1986661051,1014477480),wd(2177026350,1206759142),wd(2456956037,344077627),wd(2730485921,1290863460),wd(2820302411,3158454273),wd(3259730800,3505952657),wd(3345764771,106217008),wd(3516065817,3606008344),wd(3600352804,1432725776),wd(4094571909,1467031594),wd(275423344,851169720),wd(430227734,3100823752),wd(506948616,1363258195),wd(659060556,3750685593),wd(883997877,3785050280),wd(958139571,3318307427),wd(1322822218,3812723403),wd(1537002063,2003034995),wd(1747873779,3602036899),wd(1955562222,1575990012),wd(2024104815,1125592928),wd(2227730452,2716904306),wd(2361852424,442776044),wd(2428436474,593698344),wd(2756734187,3733110249),wd(3204031479,2999351573),wd(3329325298,3815920427),wd(3391569614,3928383900),wd(3515267271,566280711),wd(3940187606,3454069534),wd(4118630271,4000239992),wd(116418474,1914138554),wd(174292421,2731055270),wd(289380356,3203993006),wd(460393269,320620315),wd(685471733,587496836),wd(852142971,1086792851),wd(1017036298,365543100),wd(1126000580,2618297676),wd(1288033470,3409855158),wd(1501505948,4234509866),wd(1607167915,987167468),wd(1816402316,1246189591)],Ld=[];(function(){for(var jd=0;jd<80;jd++)Ld[jd]=wd()})();var Ud=Cd.SHA512=md.extend({_doReset:function(){this._hash=new vd.init([new yd.init(1779033703,4089235720),new yd.init(3144134277,2227873595),new yd.init(1013904242,4271175723),new yd.init(2773480762,1595750129),new yd.init(1359893119,2917565137),new yd.init(2600822924,725511199),new yd.init(528734635,4215389547),new yd.init(1541459225,327033209)])},_doProcessBlock:function(jd,Gd){for(var Yd=this._hash.words,zd=Yd[0],qd=Yd[1],Wd=Yd[2],Xd=Yd[3],Jd=Yd[4],Zd=Yd[5],mf=Yd[6],xf=Yd[7],_f=zd.high,vf=zd.low,gf=qd.high,Af=qd.low,Df=Wd.high,kf=Wd.low,Cf=Xd.high,If=Xd.low,Ff=Jd.high,oh=Jd.low,Eh=Zd.high,_h=Zd.low,Mh=mf.high,lh=mf.low,rh=xf.high,mh=xf.low,xh=_f,Sh=vf,Of=gf,Rf=Af,yh=Df,Ph=kf,sm=Cf,th=If,sh=Ff,Zh=oh,Sm=Eh,$h=_h,Vf=Mh,nh=lh,Lh=rh,Ih=mh,om=0;om<80;om++){var zh,Mm,Nm=Ld[om];if(om<16)Mm=Nm.high=jd[Gd+om*2]|0,zh=Nm.low=jd[Gd+om*2+1]|0;else{var Zm=Ld[om-15],Ym=Zm.high,jm=Zm.low,rg=(Ym>>>1|jm<<31)^(Ym>>>8|jm<<24)^Ym>>>7,pg=(jm>>>1|Ym<<31)^(jm>>>8|Ym<<24)^(jm>>>7|Ym<<25),jh=Ld[om-2],Pf=jh.high,$f=jh.low,Nh=(Pf>>>19|$f<<13)^(Pf<<3|$f>>>29)^Pf>>>6,Wh=($f>>>19|Pf<<13)^($f<<3|Pf>>>29)^($f>>>6|Pf<<26),_m=Ld[om-7],Om=_m.high,Wm=_m.low,Ag=Ld[om-16],sg=Ag.high,yg=Ag.low;zh=pg+Wm,Mm=rg+Om+(zh>>>0>>0?1:0),zh=zh+Wh,Mm=Mm+Nh+(zh>>>0>>0?1:0),zh=zh+yg,Mm=Mm+sg+(zh>>>0>>0?1:0),Nm.high=Mm,Nm.low=zh}var vg=sh&Sm^~sh&Vf,kg=Zh&$h^~Zh&nh,Kg=xh&Of^xh&yh^Of&yh,p_=Sh&Rf^Sh&Ph^Rf&Ph,l_=(xh>>>28|Sh<<4)^(xh<<30|Sh>>>2)^(xh<<25|Sh>>>7),v_=(Sh>>>28|xh<<4)^(Sh<<30|xh>>>2)^(Sh<<25|xh>>>7),r_=(sh>>>14|Zh<<18)^(sh>>>18|Zh<<14)^(sh<<23|Zh>>>9),O_=(Zh>>>14|sh<<18)^(Zh>>>18|sh<<14)^(Zh<<23|sh>>>9),S_=Nd[om],Q_=S_.high,t0=S_.low,R_=Ih+O_,P_=Lh+r_+(R_>>>0>>0?1:0),R_=R_+kg,P_=P_+vg+(R_>>>0>>0?1:0),R_=R_+t0,P_=P_+Q_+(R_>>>0>>0?1:0),R_=R_+zh,P_=P_+Mm+(R_>>>0>>0?1:0),Pg=v_+p_,$0=l_+Kg+(Pg>>>0>>0?1:0);Lh=Vf,Ih=nh,Vf=Sm,nh=$h,Sm=sh,$h=Zh,Zh=th+R_|0,sh=sm+P_+(Zh>>>0>>0?1:0)|0,sm=yh,th=Ph,yh=Of,Ph=Rf,Of=xh,Rf=Sh,Sh=R_+Pg|0,xh=P_+$0+(Sh>>>0>>0?1:0)|0}vf=zd.low=vf+Sh,zd.high=_f+xh+(vf>>>0>>0?1:0),Af=qd.low=Af+Rf,qd.high=gf+Of+(Af>>>0>>0?1:0),kf=Wd.low=kf+Ph,Wd.high=Df+yh+(kf>>>0>>0?1:0),If=Xd.low=If+th,Xd.high=Cf+sm+(If>>>0>>0?1:0),oh=Jd.low=oh+Zh,Jd.high=Ff+sh+(oh>>>0>>0?1:0),_h=Zd.low=_h+$h,Zd.high=Eh+Sm+(_h>>>0<$h>>>0?1:0),lh=mf.low=lh+nh,mf.high=Mh+Vf+(lh>>>0>>0?1:0),mh=xf.low=mh+Ih,xf.high=rh+Lh+(mh>>>0>>0?1:0)},_doFinalize:function(){var jd=this._data,Gd=jd.words,Yd=this._nDataBytes*8,zd=jd.sigBytes*8;Gd[zd>>>5]|=128<<24-zd%32,Gd[(zd+128>>>10<<5)+30]=Math.floor(Yd/4294967296),Gd[(zd+128>>>10<<5)+31]=Yd,jd.sigBytes=Gd.length*4,this._process();var qd=this._hash.toX32();return qd},clone:function(){var jd=md.clone.call(this);return jd._hash=this._hash.clone(),jd},blockSize:1024/32});dd.SHA512=md._createHelper(Ud),dd.HmacSHA512=md._createHmacHelper(Ud)}(),ud.SHA512})}(sha512)),sha512.exports}var sha384={exports:{}},hasRequiredSha384;function requireSha384(){return hasRequiredSha384||(hasRequiredSha384=1,function(Ra,ed){(function(ud,dd,hd){Ra.exports=dd(requireCore(),requireX64Core(),requireSha512())})(commonjsGlobal,function(ud){return function(){var dd=ud,hd=dd.x64,md=hd.Word,gd=hd.WordArray,yd=dd.algo,vd=yd.SHA512,Cd=yd.SHA384=vd.extend({_doReset:function(){this._hash=new gd.init([new md.init(3418070365,3238371032),new md.init(1654270250,914150663),new md.init(2438529370,812702999),new md.init(355462360,4144912697),new md.init(1731405415,4290775857),new md.init(2394180231,1750603025),new md.init(3675008525,1694076839),new md.init(1203062813,3204075428)])},_doFinalize:function(){var wd=vd._doFinalize.call(this);return wd.sigBytes-=16,wd}});dd.SHA384=vd._createHelper(Cd),dd.HmacSHA384=vd._createHmacHelper(Cd)}(),ud.SHA384})}(sha384)),sha384.exports}var sha3={exports:{}},hasRequiredSha3;function requireSha3(){return hasRequiredSha3||(hasRequiredSha3=1,function(Ra,ed){(function(ud,dd,hd){Ra.exports=dd(requireCore(),requireX64Core())})(commonjsGlobal,function(ud){return function(dd){var hd=ud,md=hd.lib,gd=md.WordArray,yd=md.Hasher,vd=hd.x64,Cd=vd.Word,wd=hd.algo,Nd=[],Ld=[],Ud=[];(function(){for(var Yd=1,zd=0,qd=0;qd<24;qd++){Nd[Yd+5*zd]=(qd+1)*(qd+2)/2%64;var Wd=zd%5,Xd=(2*Yd+3*zd)%5;Yd=Wd,zd=Xd}for(var Yd=0;Yd<5;Yd++)for(var zd=0;zd<5;zd++)Ld[Yd+5*zd]=zd+(2*Yd+3*zd)%5*5;for(var Jd=1,Zd=0;Zd<24;Zd++){for(var mf=0,xf=0,_f=0;_f<7;_f++){if(Jd&1){var vf=(1<<_f)-1;vf<32?xf^=1<>>24)&16711935|(Jd<<24|Jd>>>8)&4278255360,Zd=(Zd<<8|Zd>>>24)&16711935|(Zd<<24|Zd>>>8)&4278255360;var mf=qd[Xd];mf.high^=Zd,mf.low^=Jd}for(var xf=0;xf<24;xf++){for(var _f=0;_f<5;_f++){for(var vf=0,gf=0,Af=0;Af<5;Af++){var mf=qd[_f+5*Af];vf^=mf.high,gf^=mf.low}var Df=jd[_f];Df.high=vf,Df.low=gf}for(var _f=0;_f<5;_f++)for(var kf=jd[(_f+4)%5],Cf=jd[(_f+1)%5],If=Cf.high,Ff=Cf.low,vf=kf.high^(If<<1|Ff>>>31),gf=kf.low^(Ff<<1|If>>>31),Af=0;Af<5;Af++){var mf=qd[_f+5*Af];mf.high^=vf,mf.low^=gf}for(var oh=1;oh<25;oh++){var vf,gf,mf=qd[oh],Eh=mf.high,_h=mf.low,Mh=Nd[oh];Mh<32?(vf=Eh<>>32-Mh,gf=_h<>>32-Mh):(vf=_h<>>64-Mh,gf=Eh<>>64-Mh);var lh=jd[Ld[oh]];lh.high=vf,lh.low=gf}var rh=jd[0],mh=qd[0];rh.high=mh.high,rh.low=mh.low;for(var _f=0;_f<5;_f++)for(var Af=0;Af<5;Af++){var oh=_f+5*Af,mf=qd[oh],xh=jd[oh],Sh=jd[(_f+1)%5+5*Af],Of=jd[(_f+2)%5+5*Af];mf.high=xh.high^~Sh.high&Of.high,mf.low=xh.low^~Sh.low&Of.low}var mf=qd[0],Rf=Ud[xf];mf.high^=Rf.high,mf.low^=Rf.low}},_doFinalize:function(){var Yd=this._data,zd=Yd.words;this._nDataBytes*8;var qd=Yd.sigBytes*8,Wd=this.blockSize*32;zd[qd>>>5]|=1<<24-qd%32,zd[(dd.ceil((qd+1)/Wd)*Wd>>>5)-1]|=128,Yd.sigBytes=zd.length*4,this._process();for(var Xd=this._state,Jd=this.cfg.outputLength/8,Zd=Jd/8,mf=[],xf=0;xf>>24)&16711935|(vf<<24|vf>>>8)&4278255360,gf=(gf<<8|gf>>>24)&16711935|(gf<<24|gf>>>8)&4278255360,mf.push(gf),mf.push(vf)}return new gd.init(mf,Jd)},clone:function(){for(var Yd=yd.clone.call(this),zd=Yd._state=this._state.slice(0),qd=0;qd<25;qd++)zd[qd]=zd[qd].clone();return Yd}});hd.SHA3=yd._createHelper(Gd),hd.HmacSHA3=yd._createHmacHelper(Gd)}(Math),ud.SHA3})}(sha3)),sha3.exports}var ripemd160={exports:{}},hasRequiredRipemd160;function requireRipemd160(){return hasRequiredRipemd160||(hasRequiredRipemd160=1,function(Ra,ed){(function(ud,dd){Ra.exports=dd(requireCore())})(commonjsGlobal,function(ud){/** @preserve (c) 2012 by Cédric Mesnil. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -1172,11 +1172,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */return function(dd){var hd=ud,md=hd.lib,gd=md.WordArray,yd=md.Hasher,vd=hd.algo,Cd=gd.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),wd=gd.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),Nd=gd.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),Ld=gd.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),Ud=gd.create([0,1518500249,1859775393,2400959708,2840853838]),jd=gd.create([1352829926,1548603684,1836072691,2053994217,0]),Gd=vd.RIPEMD160=yd.extend({_doReset:function(){this._hash=gd.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(Zd,mf){for(var xf=0;xf<16;xf++){var _f=mf+xf,vf=Zd[_f];Zd[_f]=(vf<<8|vf>>>24)&16711935|(vf<<24|vf>>>8)&4278255360}var gf=this._hash.words,Af=Ud.words,Df=jd.words,Of=Cd.words,Cf=wd.words,If=Nd.words,Ff=Ld.words,sh,Sh,yh,Mh,lh,rh,mh,xh,Eh,kf;rh=sh=gf[0],mh=Sh=gf[1],xh=yh=gf[2],Eh=Mh=gf[3],kf=lh=gf[4];for(var Rf,xf=0;xf<80;xf+=1)Rf=sh+Zd[mf+Of[xf]]|0,xf<16?Rf+=Yd(Sh,yh,Mh)+Af[0]:xf<32?Rf+=zd(Sh,yh,Mh)+Af[1]:xf<48?Rf+=qd(Sh,yh,Mh)+Af[2]:xf<64?Rf+=Wd(Sh,yh,Mh)+Af[3]:Rf+=Xd(Sh,yh,Mh)+Af[4],Rf=Rf|0,Rf=Jd(Rf,If[xf]),Rf=Rf+lh|0,sh=lh,lh=Mh,Mh=Jd(yh,10),yh=Sh,Sh=Rf,Rf=rh+Zd[mf+Cf[xf]]|0,xf<16?Rf+=Xd(mh,xh,Eh)+Df[0]:xf<32?Rf+=Wd(mh,xh,Eh)+Df[1]:xf<48?Rf+=qd(mh,xh,Eh)+Df[2]:xf<64?Rf+=zd(mh,xh,Eh)+Df[3]:Rf+=Yd(mh,xh,Eh)+Df[4],Rf=Rf|0,Rf=Jd(Rf,Ff[xf]),Rf=Rf+kf|0,rh=kf,kf=Eh,Eh=Jd(xh,10),xh=mh,mh=Rf;Rf=gf[1]+yh+Eh|0,gf[1]=gf[2]+Mh+kf|0,gf[2]=gf[3]+lh+rh|0,gf[3]=gf[4]+sh+mh|0,gf[4]=gf[0]+Sh+xh|0,gf[0]=Rf},_doFinalize:function(){var Zd=this._data,mf=Zd.words,xf=this._nDataBytes*8,_f=Zd.sigBytes*8;mf[_f>>>5]|=128<<24-_f%32,mf[(_f+64>>>9<<4)+14]=(xf<<8|xf>>>24)&16711935|(xf<<24|xf>>>8)&4278255360,Zd.sigBytes=(mf.length+1)*4,this._process();for(var vf=this._hash,gf=vf.words,Af=0;Af<5;Af++){var Df=gf[Af];gf[Af]=(Df<<8|Df>>>24)&16711935|(Df<<24|Df>>>8)&4278255360}return vf},clone:function(){var Zd=yd.clone.call(this);return Zd._hash=this._hash.clone(),Zd}});function Yd(Zd,mf,xf){return Zd^mf^xf}function zd(Zd,mf,xf){return Zd&mf|~Zd&xf}function qd(Zd,mf,xf){return(Zd|~mf)^xf}function Wd(Zd,mf,xf){return Zd&xf|mf&~xf}function Xd(Zd,mf,xf){return Zd^(mf|~xf)}function Jd(Zd,mf){return Zd<>>32-mf}hd.RIPEMD160=yd._createHelper(Gd),hd.HmacRIPEMD160=yd._createHmacHelper(Gd)}(),ud.RIPEMD160})}(ripemd160)),ripemd160.exports}var hmac={exports:{}},hasRequiredHmac;function requireHmac(){return hasRequiredHmac||(hasRequiredHmac=1,function(Ra,ed){(function(ud,dd){Ra.exports=dd(requireCore())})(commonjsGlobal,function(ud){(function(){var dd=ud,hd=dd.lib,md=hd.Base,gd=dd.enc,yd=gd.Utf8,vd=dd.algo;vd.HMAC=md.extend({init:function(Cd,wd){Cd=this._hasher=new Cd.init,typeof wd=="string"&&(wd=yd.parse(wd));var Nd=Cd.blockSize,Ld=Nd*4;wd.sigBytes>Ld&&(wd=Cd.finalize(wd)),wd.clamp();for(var Ud=this._oKey=wd.clone(),jd=this._iKey=wd.clone(),Gd=Ud.words,Yd=jd.words,zd=0;zd>>2]&255;vf.sigBytes-=gf}};md.BlockCipher=Ud.extend({cfg:Ud.cfg.extend({mode:Yd,padding:qd}),reset:function(){var vf;Ud.reset.call(this);var gf=this.cfg,Af=gf.iv,Df=gf.mode;this._xformMode==this._ENC_XFORM_MODE?vf=Df.createEncryptor:(vf=Df.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==vf?this._mode.init(this,Af&&Af.words):(this._mode=vf.call(Df,this,Af&&Af.words),this._mode.__creator=vf)},_doProcessBlock:function(vf,gf){this._mode.processBlock(vf,gf)},_doFinalize:function(){var vf,gf=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(gf.pad(this._data,this.blockSize),vf=this._process(!0)):(vf=this._process(!0),gf.unpad(vf)),vf},blockSize:128/32});var Wd=md.CipherParams=gd.extend({init:function(vf){this.mixIn(vf)},toString:function(vf){return(vf||this.formatter).stringify(this)}}),Xd=hd.format={},Jd=Xd.OpenSSL={stringify:function(vf){var gf,Af=vf.ciphertext,Df=vf.salt;return Df?gf=yd.create([1398893684,1701076831]).concat(Df).concat(Af):gf=Af,gf.toString(wd)},parse:function(vf){var gf,Af=wd.parse(vf),Df=Af.words;return Df[0]==1398893684&&Df[1]==1701076831&&(gf=yd.create(Df.slice(2,4)),Df.splice(0,4),Af.sigBytes-=16),Wd.create({ciphertext:Af,salt:gf})}},Zd=md.SerializableCipher=gd.extend({cfg:gd.extend({format:Jd}),encrypt:function(vf,gf,Af,Df){Df=this.cfg.extend(Df);var Of=vf.createEncryptor(Af,Df),Cf=Of.finalize(gf),If=Of.cfg;return Wd.create({ciphertext:Cf,key:Af,iv:If.iv,algorithm:vf,mode:If.mode,padding:If.padding,blockSize:vf.blockSize,formatter:Df.format})},decrypt:function(vf,gf,Af,Df){Df=this.cfg.extend(Df),gf=this._parse(gf,Df.format);var Of=vf.createDecryptor(Af,Df).finalize(gf.ciphertext);return Of},_parse:function(vf,gf){return typeof vf=="string"?gf.parse(vf,this):vf}}),mf=hd.kdf={},xf=mf.OpenSSL={execute:function(vf,gf,Af,Df,Of){if(Df||(Df=yd.random(64/8)),Of)var Cf=Ld.create({keySize:gf+Af,hasher:Of}).compute(vf,Df);else var Cf=Ld.create({keySize:gf+Af}).compute(vf,Df);var If=yd.create(Cf.words.slice(gf),Af*4);return Cf.sigBytes=gf*4,Wd.create({key:Cf,iv:If,salt:Df})}},_f=md.PasswordBasedCipher=Zd.extend({cfg:Zd.cfg.extend({kdf:xf}),encrypt:function(vf,gf,Af,Df){Df=this.cfg.extend(Df);var Of=Df.kdf.execute(Af,vf.keySize,vf.ivSize,Df.salt,Df.hasher);Df.iv=Of.iv;var Cf=Zd.encrypt.call(this,vf,gf,Of.key,Df);return Cf.mixIn(Of),Cf},decrypt:function(vf,gf,Af,Df){Df=this.cfg.extend(Df),gf=this._parse(gf,Df.format);var Of=Df.kdf.execute(Af,vf.keySize,vf.ivSize,gf.salt,Df.hasher);Df.iv=Of.iv;var Cf=Zd.decrypt.call(this,vf,gf,Of.key,Df);return Cf}})}()})}(cipherCore)),cipherCore.exports}var modeCfb={exports:{}},hasRequiredModeCfb;function requireModeCfb(){return hasRequiredModeCfb||(hasRequiredModeCfb=1,function(Ra,ed){(function(ud,dd,hd){Ra.exports=dd(requireCore(),requireCipherCore())})(commonjsGlobal,function(ud){return ud.mode.CFB=function(){var dd=ud.lib.BlockCipherMode.extend();dd.Encryptor=dd.extend({processBlock:function(md,gd){var yd=this._cipher,vd=yd.blockSize;hd.call(this,md,gd,vd,yd),this._prevBlock=md.slice(gd,gd+vd)}}),dd.Decryptor=dd.extend({processBlock:function(md,gd){var yd=this._cipher,vd=yd.blockSize,Cd=md.slice(gd,gd+vd);hd.call(this,md,gd,vd,yd),this._prevBlock=Cd}});function hd(md,gd,yd,vd){var Cd,wd=this._iv;wd?(Cd=wd.slice(0),this._iv=void 0):Cd=this._prevBlock,vd.encryptBlock(Cd,0);for(var Nd=0;Nd>>24)&16711935|(vf<<24|vf>>>8)&4278255360}var gf=this._hash.words,Af=Ud.words,Df=jd.words,kf=Cd.words,Cf=wd.words,If=Nd.words,Ff=Ld.words,oh,Eh,_h,Mh,lh,rh,mh,xh,Sh,Of;rh=oh=gf[0],mh=Eh=gf[1],xh=_h=gf[2],Sh=Mh=gf[3],Of=lh=gf[4];for(var Rf,xf=0;xf<80;xf+=1)Rf=oh+Zd[mf+kf[xf]]|0,xf<16?Rf+=Yd(Eh,_h,Mh)+Af[0]:xf<32?Rf+=zd(Eh,_h,Mh)+Af[1]:xf<48?Rf+=qd(Eh,_h,Mh)+Af[2]:xf<64?Rf+=Wd(Eh,_h,Mh)+Af[3]:Rf+=Xd(Eh,_h,Mh)+Af[4],Rf=Rf|0,Rf=Jd(Rf,If[xf]),Rf=Rf+lh|0,oh=lh,lh=Mh,Mh=Jd(_h,10),_h=Eh,Eh=Rf,Rf=rh+Zd[mf+Cf[xf]]|0,xf<16?Rf+=Xd(mh,xh,Sh)+Df[0]:xf<32?Rf+=Wd(mh,xh,Sh)+Df[1]:xf<48?Rf+=qd(mh,xh,Sh)+Df[2]:xf<64?Rf+=zd(mh,xh,Sh)+Df[3]:Rf+=Yd(mh,xh,Sh)+Df[4],Rf=Rf|0,Rf=Jd(Rf,Ff[xf]),Rf=Rf+Of|0,rh=Of,Of=Sh,Sh=Jd(xh,10),xh=mh,mh=Rf;Rf=gf[1]+_h+Sh|0,gf[1]=gf[2]+Mh+Of|0,gf[2]=gf[3]+lh+rh|0,gf[3]=gf[4]+oh+mh|0,gf[4]=gf[0]+Eh+xh|0,gf[0]=Rf},_doFinalize:function(){var Zd=this._data,mf=Zd.words,xf=this._nDataBytes*8,_f=Zd.sigBytes*8;mf[_f>>>5]|=128<<24-_f%32,mf[(_f+64>>>9<<4)+14]=(xf<<8|xf>>>24)&16711935|(xf<<24|xf>>>8)&4278255360,Zd.sigBytes=(mf.length+1)*4,this._process();for(var vf=this._hash,gf=vf.words,Af=0;Af<5;Af++){var Df=gf[Af];gf[Af]=(Df<<8|Df>>>24)&16711935|(Df<<24|Df>>>8)&4278255360}return vf},clone:function(){var Zd=yd.clone.call(this);return Zd._hash=this._hash.clone(),Zd}});function Yd(Zd,mf,xf){return Zd^mf^xf}function zd(Zd,mf,xf){return Zd&mf|~Zd&xf}function qd(Zd,mf,xf){return(Zd|~mf)^xf}function Wd(Zd,mf,xf){return Zd&xf|mf&~xf}function Xd(Zd,mf,xf){return Zd^(mf|~xf)}function Jd(Zd,mf){return Zd<>>32-mf}hd.RIPEMD160=yd._createHelper(Gd),hd.HmacRIPEMD160=yd._createHmacHelper(Gd)}(),ud.RIPEMD160})}(ripemd160)),ripemd160.exports}var hmac={exports:{}},hasRequiredHmac;function requireHmac(){return hasRequiredHmac||(hasRequiredHmac=1,function(Ra,ed){(function(ud,dd){Ra.exports=dd(requireCore())})(commonjsGlobal,function(ud){(function(){var dd=ud,hd=dd.lib,md=hd.Base,gd=dd.enc,yd=gd.Utf8,vd=dd.algo;vd.HMAC=md.extend({init:function(Cd,wd){Cd=this._hasher=new Cd.init,typeof wd=="string"&&(wd=yd.parse(wd));var Nd=Cd.blockSize,Ld=Nd*4;wd.sigBytes>Ld&&(wd=Cd.finalize(wd)),wd.clamp();for(var Ud=this._oKey=wd.clone(),jd=this._iKey=wd.clone(),Gd=Ud.words,Yd=jd.words,zd=0;zd>>2]&255;vf.sigBytes-=gf}};md.BlockCipher=Ud.extend({cfg:Ud.cfg.extend({mode:Yd,padding:qd}),reset:function(){var vf;Ud.reset.call(this);var gf=this.cfg,Af=gf.iv,Df=gf.mode;this._xformMode==this._ENC_XFORM_MODE?vf=Df.createEncryptor:(vf=Df.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==vf?this._mode.init(this,Af&&Af.words):(this._mode=vf.call(Df,this,Af&&Af.words),this._mode.__creator=vf)},_doProcessBlock:function(vf,gf){this._mode.processBlock(vf,gf)},_doFinalize:function(){var vf,gf=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(gf.pad(this._data,this.blockSize),vf=this._process(!0)):(vf=this._process(!0),gf.unpad(vf)),vf},blockSize:128/32});var Wd=md.CipherParams=gd.extend({init:function(vf){this.mixIn(vf)},toString:function(vf){return(vf||this.formatter).stringify(this)}}),Xd=hd.format={},Jd=Xd.OpenSSL={stringify:function(vf){var gf,Af=vf.ciphertext,Df=vf.salt;return Df?gf=yd.create([1398893684,1701076831]).concat(Df).concat(Af):gf=Af,gf.toString(wd)},parse:function(vf){var gf,Af=wd.parse(vf),Df=Af.words;return Df[0]==1398893684&&Df[1]==1701076831&&(gf=yd.create(Df.slice(2,4)),Df.splice(0,4),Af.sigBytes-=16),Wd.create({ciphertext:Af,salt:gf})}},Zd=md.SerializableCipher=gd.extend({cfg:gd.extend({format:Jd}),encrypt:function(vf,gf,Af,Df){Df=this.cfg.extend(Df);var kf=vf.createEncryptor(Af,Df),Cf=kf.finalize(gf),If=kf.cfg;return Wd.create({ciphertext:Cf,key:Af,iv:If.iv,algorithm:vf,mode:If.mode,padding:If.padding,blockSize:vf.blockSize,formatter:Df.format})},decrypt:function(vf,gf,Af,Df){Df=this.cfg.extend(Df),gf=this._parse(gf,Df.format);var kf=vf.createDecryptor(Af,Df).finalize(gf.ciphertext);return kf},_parse:function(vf,gf){return typeof vf=="string"?gf.parse(vf,this):vf}}),mf=hd.kdf={},xf=mf.OpenSSL={execute:function(vf,gf,Af,Df,kf){if(Df||(Df=yd.random(64/8)),kf)var Cf=Ld.create({keySize:gf+Af,hasher:kf}).compute(vf,Df);else var Cf=Ld.create({keySize:gf+Af}).compute(vf,Df);var If=yd.create(Cf.words.slice(gf),Af*4);return Cf.sigBytes=gf*4,Wd.create({key:Cf,iv:If,salt:Df})}},_f=md.PasswordBasedCipher=Zd.extend({cfg:Zd.cfg.extend({kdf:xf}),encrypt:function(vf,gf,Af,Df){Df=this.cfg.extend(Df);var kf=Df.kdf.execute(Af,vf.keySize,vf.ivSize,Df.salt,Df.hasher);Df.iv=kf.iv;var Cf=Zd.encrypt.call(this,vf,gf,kf.key,Df);return Cf.mixIn(kf),Cf},decrypt:function(vf,gf,Af,Df){Df=this.cfg.extend(Df),gf=this._parse(gf,Df.format);var kf=Df.kdf.execute(Af,vf.keySize,vf.ivSize,gf.salt,Df.hasher);Df.iv=kf.iv;var Cf=Zd.decrypt.call(this,vf,gf,kf.key,Df);return Cf}})}()})}(cipherCore)),cipherCore.exports}var modeCfb={exports:{}},hasRequiredModeCfb;function requireModeCfb(){return hasRequiredModeCfb||(hasRequiredModeCfb=1,function(Ra,ed){(function(ud,dd,hd){Ra.exports=dd(requireCore(),requireCipherCore())})(commonjsGlobal,function(ud){return ud.mode.CFB=function(){var dd=ud.lib.BlockCipherMode.extend();dd.Encryptor=dd.extend({processBlock:function(md,gd){var yd=this._cipher,vd=yd.blockSize;hd.call(this,md,gd,vd,yd),this._prevBlock=md.slice(gd,gd+vd)}}),dd.Decryptor=dd.extend({processBlock:function(md,gd){var yd=this._cipher,vd=yd.blockSize,Cd=md.slice(gd,gd+vd);hd.call(this,md,gd,vd,yd),this._prevBlock=Cd}});function hd(md,gd,yd,vd){var Cd,wd=this._iv;wd?(Cd=wd.slice(0),this._iv=void 0):Cd=this._prevBlock,vd.encryptBlock(Cd,0);for(var Nd=0;Nd>24&255)===255){var vd=yd>>16&255,Cd=yd>>8&255,wd=yd&255;vd===255?(vd=0,Cd===255?(Cd=0,wd===255?wd=0:++wd):++Cd):++vd,yd=0,yd+=vd<<16,yd+=Cd<<8,yd+=wd}else yd+=1<<24;return yd}function md(yd){return(yd[0]=hd(yd[0]))===0&&(yd[1]=hd(yd[1])),yd}var gd=dd.Encryptor=dd.extend({processBlock:function(yd,vd){var Cd=this._cipher,wd=Cd.blockSize,Nd=this._iv,Ld=this._counter;Nd&&(Ld=this._counter=Nd.slice(0),this._iv=void 0),md(Ld);var Ud=Ld.slice(0);Cd.encryptBlock(Ud,0);for(var jd=0;jd>>2]|=yd<<24-vd%4*8,dd.sigBytes+=yd},unpad:function(dd){var hd=dd.words[dd.sigBytes-1>>>2]&255;dd.sigBytes-=hd}},ud.pad.Ansix923})}(padAnsix923)),padAnsix923.exports}var padIso10126={exports:{}},hasRequiredPadIso10126;function requirePadIso10126(){return hasRequiredPadIso10126||(hasRequiredPadIso10126=1,function(Ra,ed){(function(ud,dd,hd){Ra.exports=dd(requireCore(),requireCipherCore())})(commonjsGlobal,function(ud){return ud.pad.Iso10126={pad:function(dd,hd){var md=hd*4,gd=md-dd.sigBytes%md;dd.concat(ud.lib.WordArray.random(gd-1)).concat(ud.lib.WordArray.create([gd<<24],1))},unpad:function(dd){var hd=dd.words[dd.sigBytes-1>>>2]&255;dd.sigBytes-=hd}},ud.pad.Iso10126})}(padIso10126)),padIso10126.exports}var padIso97971={exports:{}},hasRequiredPadIso97971;function requirePadIso97971(){return hasRequiredPadIso97971||(hasRequiredPadIso97971=1,function(Ra,ed){(function(ud,dd,hd){Ra.exports=dd(requireCore(),requireCipherCore())})(commonjsGlobal,function(ud){return ud.pad.Iso97971={pad:function(dd,hd){dd.concat(ud.lib.WordArray.create([2147483648],1)),ud.pad.ZeroPadding.pad(dd,hd)},unpad:function(dd){ud.pad.ZeroPadding.unpad(dd),dd.sigBytes--}},ud.pad.Iso97971})}(padIso97971)),padIso97971.exports}var padZeropadding={exports:{}},hasRequiredPadZeropadding;function requirePadZeropadding(){return hasRequiredPadZeropadding||(hasRequiredPadZeropadding=1,function(Ra,ed){(function(ud,dd,hd){Ra.exports=dd(requireCore(),requireCipherCore())})(commonjsGlobal,function(ud){return ud.pad.ZeroPadding={pad:function(dd,hd){var md=hd*4;dd.clamp(),dd.sigBytes+=md-(dd.sigBytes%md||md)},unpad:function(dd){for(var hd=dd.words,md=dd.sigBytes-1,md=dd.sigBytes-1;md>=0;md--)if(hd[md>>>2]>>>24-md%4*8&255){dd.sigBytes=md+1;break}}},ud.pad.ZeroPadding})}(padZeropadding)),padZeropadding.exports}var padNopadding={exports:{}},hasRequiredPadNopadding;function requirePadNopadding(){return hasRequiredPadNopadding||(hasRequiredPadNopadding=1,function(Ra,ed){(function(ud,dd,hd){Ra.exports=dd(requireCore(),requireCipherCore())})(commonjsGlobal,function(ud){return ud.pad.NoPadding={pad:function(){},unpad:function(){}},ud.pad.NoPadding})}(padNopadding)),padNopadding.exports}var formatHex={exports:{}},hasRequiredFormatHex;function requireFormatHex(){return hasRequiredFormatHex||(hasRequiredFormatHex=1,function(Ra,ed){(function(ud,dd,hd){Ra.exports=dd(requireCore(),requireCipherCore())})(commonjsGlobal,function(ud){return function(dd){var hd=ud,md=hd.lib,gd=md.CipherParams,yd=hd.enc,vd=yd.Hex,Cd=hd.format;Cd.Hex={stringify:function(wd){return wd.ciphertext.toString(vd)},parse:function(wd){var Nd=vd.parse(wd);return gd.create({ciphertext:Nd})}}}(),ud.format.Hex})}(formatHex)),formatHex.exports}var aes={exports:{}},hasRequiredAes;function requireAes(){return hasRequiredAes||(hasRequiredAes=1,function(Ra,ed){(function(ud,dd,hd){Ra.exports=dd(requireCore(),requireEncBase64(),requireMd5$1(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(ud){return function(){var dd=ud,hd=dd.lib,md=hd.BlockCipher,gd=dd.algo,yd=[],vd=[],Cd=[],wd=[],Nd=[],Ld=[],Ud=[],jd=[],Gd=[],Yd=[];(function(){for(var Wd=[],Xd=0;Xd<256;Xd++)Xd<128?Wd[Xd]=Xd<<1:Wd[Xd]=Xd<<1^283;for(var Jd=0,Zd=0,Xd=0;Xd<256;Xd++){var mf=Zd^Zd<<1^Zd<<2^Zd<<3^Zd<<4;mf=mf>>>8^mf&255^99,yd[Jd]=mf,vd[mf]=Jd;var xf=Wd[Jd],_f=Wd[xf],vf=Wd[_f],gf=Wd[mf]*257^mf*16843008;Cd[Jd]=gf<<24|gf>>>8,wd[Jd]=gf<<16|gf>>>16,Nd[Jd]=gf<<8|gf>>>24,Ld[Jd]=gf;var gf=vf*16843009^_f*65537^xf*257^Jd*16843008;Ud[mf]=gf<<24|gf>>>8,jd[mf]=gf<<16|gf>>>16,Gd[mf]=gf<<8|gf>>>24,Yd[mf]=gf,Jd?(Jd=xf^Wd[Wd[Wd[vf^xf]]],Zd^=Wd[Wd[Zd]]):Jd=Zd=1}})();var zd=[0,1,2,4,8,16,32,64,128,27,54],qd=gd.AES=md.extend({_doReset:function(){var Wd;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var Xd=this._keyPriorReset=this._key,Jd=Xd.words,Zd=Xd.sigBytes/4,mf=this._nRounds=Zd+6,xf=(mf+1)*4,_f=this._keySchedule=[],vf=0;vf6&&vf%Zd==4&&(Wd=yd[Wd>>>24]<<24|yd[Wd>>>16&255]<<16|yd[Wd>>>8&255]<<8|yd[Wd&255]):(Wd=Wd<<8|Wd>>>24,Wd=yd[Wd>>>24]<<24|yd[Wd>>>16&255]<<16|yd[Wd>>>8&255]<<8|yd[Wd&255],Wd^=zd[vf/Zd|0]<<24),_f[vf]=_f[vf-Zd]^Wd);for(var gf=this._invKeySchedule=[],Af=0;Af>>24]]^jd[yd[Wd>>>16&255]]^Gd[yd[Wd>>>8&255]]^Yd[yd[Wd&255]]}}},encryptBlock:function(Wd,Xd){this._doCryptBlock(Wd,Xd,this._keySchedule,Cd,wd,Nd,Ld,yd)},decryptBlock:function(Wd,Xd){var Jd=Wd[Xd+1];Wd[Xd+1]=Wd[Xd+3],Wd[Xd+3]=Jd,this._doCryptBlock(Wd,Xd,this._invKeySchedule,Ud,jd,Gd,Yd,vd);var Jd=Wd[Xd+1];Wd[Xd+1]=Wd[Xd+3],Wd[Xd+3]=Jd},_doCryptBlock:function(Wd,Xd,Jd,Zd,mf,xf,_f,vf){for(var gf=this._nRounds,Af=Wd[Xd]^Jd[0],Df=Wd[Xd+1]^Jd[1],Of=Wd[Xd+2]^Jd[2],Cf=Wd[Xd+3]^Jd[3],If=4,Ff=1;Ff>>24]^mf[Df>>>16&255]^xf[Of>>>8&255]^_f[Cf&255]^Jd[If++],Sh=Zd[Df>>>24]^mf[Of>>>16&255]^xf[Cf>>>8&255]^_f[Af&255]^Jd[If++],yh=Zd[Of>>>24]^mf[Cf>>>16&255]^xf[Af>>>8&255]^_f[Df&255]^Jd[If++],Mh=Zd[Cf>>>24]^mf[Af>>>16&255]^xf[Df>>>8&255]^_f[Of&255]^Jd[If++];Af=sh,Df=Sh,Of=yh,Cf=Mh}var sh=(vf[Af>>>24]<<24|vf[Df>>>16&255]<<16|vf[Of>>>8&255]<<8|vf[Cf&255])^Jd[If++],Sh=(vf[Df>>>24]<<24|vf[Of>>>16&255]<<16|vf[Cf>>>8&255]<<8|vf[Af&255])^Jd[If++],yh=(vf[Of>>>24]<<24|vf[Cf>>>16&255]<<16|vf[Af>>>8&255]<<8|vf[Df&255])^Jd[If++],Mh=(vf[Cf>>>24]<<24|vf[Af>>>16&255]<<16|vf[Df>>>8&255]<<8|vf[Of&255])^Jd[If++];Wd[Xd]=sh,Wd[Xd+1]=Sh,Wd[Xd+2]=yh,Wd[Xd+3]=Mh},keySize:256/32});dd.AES=md._createHelper(qd)}(),ud.AES})}(aes)),aes.exports}var tripledes={exports:{}},hasRequiredTripledes;function requireTripledes(){return hasRequiredTripledes||(hasRequiredTripledes=1,function(Ra,ed){(function(ud,dd,hd){Ra.exports=dd(requireCore(),requireEncBase64(),requireMd5$1(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(ud){return function(){var dd=ud,hd=dd.lib,md=hd.WordArray,gd=hd.BlockCipher,yd=dd.algo,vd=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],Cd=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],wd=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],Nd=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],Ld=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],Ud=yd.DES=gd.extend({_doReset:function(){for(var zd=this._key,qd=zd.words,Wd=[],Xd=0;Xd<56;Xd++){var Jd=vd[Xd]-1;Wd[Xd]=qd[Jd>>>5]>>>31-Jd%32&1}for(var Zd=this._subKeys=[],mf=0;mf<16;mf++){for(var xf=Zd[mf]=[],_f=wd[mf],Xd=0;Xd<24;Xd++)xf[Xd/6|0]|=Wd[(Cd[Xd]-1+_f)%28]<<31-Xd%6,xf[4+(Xd/6|0)]|=Wd[28+(Cd[Xd+24]-1+_f)%28]<<31-Xd%6;xf[0]=xf[0]<<1|xf[0]>>>31;for(var Xd=1;Xd<7;Xd++)xf[Xd]=xf[Xd]>>>(Xd-1)*4+3;xf[7]=xf[7]<<5|xf[7]>>>27}for(var vf=this._invSubKeys=[],Xd=0;Xd<16;Xd++)vf[Xd]=Zd[15-Xd]},encryptBlock:function(zd,qd){this._doCryptBlock(zd,qd,this._subKeys)},decryptBlock:function(zd,qd){this._doCryptBlock(zd,qd,this._invSubKeys)},_doCryptBlock:function(zd,qd,Wd){this._lBlock=zd[qd],this._rBlock=zd[qd+1],jd.call(this,4,252645135),jd.call(this,16,65535),Gd.call(this,2,858993459),Gd.call(this,8,16711935),jd.call(this,1,1431655765);for(var Xd=0;Xd<16;Xd++){for(var Jd=Wd[Xd],Zd=this._lBlock,mf=this._rBlock,xf=0,_f=0;_f<8;_f++)xf|=Nd[_f][((mf^Jd[_f])&Ld[_f])>>>0];this._lBlock=mf,this._rBlock=Zd^xf}var vf=this._lBlock;this._lBlock=this._rBlock,this._rBlock=vf,jd.call(this,1,1431655765),Gd.call(this,8,16711935),Gd.call(this,2,858993459),jd.call(this,16,65535),jd.call(this,4,252645135),zd[qd]=this._lBlock,zd[qd+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function jd(zd,qd){var Wd=(this._lBlock>>>zd^this._rBlock)&qd;this._rBlock^=Wd,this._lBlock^=Wd<>>zd^this._lBlock)&qd;this._lBlock^=Wd,this._rBlock^=Wd<192.");var Wd=qd.slice(0,2),Xd=qd.length<4?qd.slice(0,2):qd.slice(2,4),Jd=qd.length<6?qd.slice(0,2):qd.slice(4,6);this._des1=Ud.createEncryptor(md.create(Wd)),this._des2=Ud.createEncryptor(md.create(Xd)),this._des3=Ud.createEncryptor(md.create(Jd))},encryptBlock:function(zd,qd){this._des1.encryptBlock(zd,qd),this._des2.decryptBlock(zd,qd),this._des3.encryptBlock(zd,qd)},decryptBlock:function(zd,qd){this._des3.decryptBlock(zd,qd),this._des2.encryptBlock(zd,qd),this._des1.decryptBlock(zd,qd)},keySize:192/32,ivSize:64/32,blockSize:64/32});dd.TripleDES=gd._createHelper(Yd)}(),ud.TripleDES})}(tripledes)),tripledes.exports}var rc4={exports:{}},hasRequiredRc4;function requireRc4(){return hasRequiredRc4||(hasRequiredRc4=1,function(Ra,ed){(function(ud,dd,hd){Ra.exports=dd(requireCore(),requireEncBase64(),requireMd5$1(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(ud){return function(){var dd=ud,hd=dd.lib,md=hd.StreamCipher,gd=dd.algo,yd=gd.RC4=md.extend({_doReset:function(){for(var wd=this._key,Nd=wd.words,Ld=wd.sigBytes,Ud=this._S=[],jd=0;jd<256;jd++)Ud[jd]=jd;for(var jd=0,Gd=0;jd<256;jd++){var Yd=jd%Ld,zd=Nd[Yd>>>2]>>>24-Yd%4*8&255;Gd=(Gd+Ud[jd]+zd)%256;var qd=Ud[jd];Ud[jd]=Ud[Gd],Ud[Gd]=qd}this._i=this._j=0},_doProcessBlock:function(wd,Nd){wd[Nd]^=vd.call(this)},keySize:256/32,ivSize:0});function vd(){for(var wd=this._S,Nd=this._i,Ld=this._j,Ud=0,jd=0;jd<4;jd++){Nd=(Nd+1)%256,Ld=(Ld+wd[Nd])%256;var Gd=wd[Nd];wd[Nd]=wd[Ld],wd[Ld]=Gd,Ud|=wd[(wd[Nd]+wd[Ld])%256]<<24-jd*8}return this._i=Nd,this._j=Ld,Ud}dd.RC4=md._createHelper(yd);var Cd=gd.RC4Drop=yd.extend({cfg:yd.cfg.extend({drop:192}),_doReset:function(){yd._doReset.call(this);for(var wd=this.cfg.drop;wd>0;wd--)vd.call(this)}});dd.RC4Drop=md._createHelper(Cd)}(),ud.RC4})}(rc4)),rc4.exports}var rabbit={exports:{}},hasRequiredRabbit;function requireRabbit(){return hasRequiredRabbit||(hasRequiredRabbit=1,function(Ra,ed){(function(ud,dd,hd){Ra.exports=dd(requireCore(),requireEncBase64(),requireMd5$1(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(ud){return function(){var dd=ud,hd=dd.lib,md=hd.StreamCipher,gd=dd.algo,yd=[],vd=[],Cd=[],wd=gd.Rabbit=md.extend({_doReset:function(){for(var Ld=this._key.words,Ud=this.cfg.iv,jd=0;jd<4;jd++)Ld[jd]=(Ld[jd]<<8|Ld[jd]>>>24)&16711935|(Ld[jd]<<24|Ld[jd]>>>8)&4278255360;var Gd=this._X=[Ld[0],Ld[3]<<16|Ld[2]>>>16,Ld[1],Ld[0]<<16|Ld[3]>>>16,Ld[2],Ld[1]<<16|Ld[0]>>>16,Ld[3],Ld[2]<<16|Ld[1]>>>16],Yd=this._C=[Ld[2]<<16|Ld[2]>>>16,Ld[0]&4294901760|Ld[1]&65535,Ld[3]<<16|Ld[3]>>>16,Ld[1]&4294901760|Ld[2]&65535,Ld[0]<<16|Ld[0]>>>16,Ld[2]&4294901760|Ld[3]&65535,Ld[1]<<16|Ld[1]>>>16,Ld[3]&4294901760|Ld[0]&65535];this._b=0;for(var jd=0;jd<4;jd++)Nd.call(this);for(var jd=0;jd<8;jd++)Yd[jd]^=Gd[jd+4&7];if(Ud){var zd=Ud.words,qd=zd[0],Wd=zd[1],Xd=(qd<<8|qd>>>24)&16711935|(qd<<24|qd>>>8)&4278255360,Jd=(Wd<<8|Wd>>>24)&16711935|(Wd<<24|Wd>>>8)&4278255360,Zd=Xd>>>16|Jd&4294901760,mf=Jd<<16|Xd&65535;Yd[0]^=Xd,Yd[1]^=Zd,Yd[2]^=Jd,Yd[3]^=mf,Yd[4]^=Xd,Yd[5]^=Zd,Yd[6]^=Jd,Yd[7]^=mf;for(var jd=0;jd<4;jd++)Nd.call(this)}},_doProcessBlock:function(Ld,Ud){var jd=this._X;Nd.call(this),yd[0]=jd[0]^jd[5]>>>16^jd[3]<<16,yd[1]=jd[2]^jd[7]>>>16^jd[5]<<16,yd[2]=jd[4]^jd[1]>>>16^jd[7]<<16,yd[3]=jd[6]^jd[3]>>>16^jd[1]<<16;for(var Gd=0;Gd<4;Gd++)yd[Gd]=(yd[Gd]<<8|yd[Gd]>>>24)&16711935|(yd[Gd]<<24|yd[Gd]>>>8)&4278255360,Ld[Ud+Gd]^=yd[Gd]},blockSize:128/32,ivSize:64/32});function Nd(){for(var Ld=this._X,Ud=this._C,jd=0;jd<8;jd++)vd[jd]=Ud[jd];Ud[0]=Ud[0]+1295307597+this._b|0,Ud[1]=Ud[1]+3545052371+(Ud[0]>>>0>>0?1:0)|0,Ud[2]=Ud[2]+886263092+(Ud[1]>>>0>>0?1:0)|0,Ud[3]=Ud[3]+1295307597+(Ud[2]>>>0>>0?1:0)|0,Ud[4]=Ud[4]+3545052371+(Ud[3]>>>0>>0?1:0)|0,Ud[5]=Ud[5]+886263092+(Ud[4]>>>0>>0?1:0)|0,Ud[6]=Ud[6]+1295307597+(Ud[5]>>>0>>0?1:0)|0,Ud[7]=Ud[7]+3545052371+(Ud[6]>>>0>>0?1:0)|0,this._b=Ud[7]>>>0>>0?1:0;for(var jd=0;jd<8;jd++){var Gd=Ld[jd]+Ud[jd],Yd=Gd&65535,zd=Gd>>>16,qd=((Yd*Yd>>>17)+Yd*zd>>>15)+zd*zd,Wd=((Gd&4294901760)*Gd|0)+((Gd&65535)*Gd|0);Cd[jd]=qd^Wd}Ld[0]=Cd[0]+(Cd[7]<<16|Cd[7]>>>16)+(Cd[6]<<16|Cd[6]>>>16)|0,Ld[1]=Cd[1]+(Cd[0]<<8|Cd[0]>>>24)+Cd[7]|0,Ld[2]=Cd[2]+(Cd[1]<<16|Cd[1]>>>16)+(Cd[0]<<16|Cd[0]>>>16)|0,Ld[3]=Cd[3]+(Cd[2]<<8|Cd[2]>>>24)+Cd[1]|0,Ld[4]=Cd[4]+(Cd[3]<<16|Cd[3]>>>16)+(Cd[2]<<16|Cd[2]>>>16)|0,Ld[5]=Cd[5]+(Cd[4]<<8|Cd[4]>>>24)+Cd[3]|0,Ld[6]=Cd[6]+(Cd[5]<<16|Cd[5]>>>16)+(Cd[4]<<16|Cd[4]>>>16)|0,Ld[7]=Cd[7]+(Cd[6]<<8|Cd[6]>>>24)+Cd[5]|0}dd.Rabbit=md._createHelper(wd)}(),ud.Rabbit})}(rabbit)),rabbit.exports}var rabbitLegacy={exports:{}},hasRequiredRabbitLegacy;function requireRabbitLegacy(){return hasRequiredRabbitLegacy||(hasRequiredRabbitLegacy=1,function(Ra,ed){(function(ud,dd,hd){Ra.exports=dd(requireCore(),requireEncBase64(),requireMd5$1(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(ud){return function(){var dd=ud,hd=dd.lib,md=hd.StreamCipher,gd=dd.algo,yd=[],vd=[],Cd=[],wd=gd.RabbitLegacy=md.extend({_doReset:function(){var Ld=this._key.words,Ud=this.cfg.iv,jd=this._X=[Ld[0],Ld[3]<<16|Ld[2]>>>16,Ld[1],Ld[0]<<16|Ld[3]>>>16,Ld[2],Ld[1]<<16|Ld[0]>>>16,Ld[3],Ld[2]<<16|Ld[1]>>>16],Gd=this._C=[Ld[2]<<16|Ld[2]>>>16,Ld[0]&4294901760|Ld[1]&65535,Ld[3]<<16|Ld[3]>>>16,Ld[1]&4294901760|Ld[2]&65535,Ld[0]<<16|Ld[0]>>>16,Ld[2]&4294901760|Ld[3]&65535,Ld[1]<<16|Ld[1]>>>16,Ld[3]&4294901760|Ld[0]&65535];this._b=0;for(var Yd=0;Yd<4;Yd++)Nd.call(this);for(var Yd=0;Yd<8;Yd++)Gd[Yd]^=jd[Yd+4&7];if(Ud){var zd=Ud.words,qd=zd[0],Wd=zd[1],Xd=(qd<<8|qd>>>24)&16711935|(qd<<24|qd>>>8)&4278255360,Jd=(Wd<<8|Wd>>>24)&16711935|(Wd<<24|Wd>>>8)&4278255360,Zd=Xd>>>16|Jd&4294901760,mf=Jd<<16|Xd&65535;Gd[0]^=Xd,Gd[1]^=Zd,Gd[2]^=Jd,Gd[3]^=mf,Gd[4]^=Xd,Gd[5]^=Zd,Gd[6]^=Jd,Gd[7]^=mf;for(var Yd=0;Yd<4;Yd++)Nd.call(this)}},_doProcessBlock:function(Ld,Ud){var jd=this._X;Nd.call(this),yd[0]=jd[0]^jd[5]>>>16^jd[3]<<16,yd[1]=jd[2]^jd[7]>>>16^jd[5]<<16,yd[2]=jd[4]^jd[1]>>>16^jd[7]<<16,yd[3]=jd[6]^jd[3]>>>16^jd[1]<<16;for(var Gd=0;Gd<4;Gd++)yd[Gd]=(yd[Gd]<<8|yd[Gd]>>>24)&16711935|(yd[Gd]<<24|yd[Gd]>>>8)&4278255360,Ld[Ud+Gd]^=yd[Gd]},blockSize:128/32,ivSize:64/32});function Nd(){for(var Ld=this._X,Ud=this._C,jd=0;jd<8;jd++)vd[jd]=Ud[jd];Ud[0]=Ud[0]+1295307597+this._b|0,Ud[1]=Ud[1]+3545052371+(Ud[0]>>>0>>0?1:0)|0,Ud[2]=Ud[2]+886263092+(Ud[1]>>>0>>0?1:0)|0,Ud[3]=Ud[3]+1295307597+(Ud[2]>>>0>>0?1:0)|0,Ud[4]=Ud[4]+3545052371+(Ud[3]>>>0>>0?1:0)|0,Ud[5]=Ud[5]+886263092+(Ud[4]>>>0>>0?1:0)|0,Ud[6]=Ud[6]+1295307597+(Ud[5]>>>0>>0?1:0)|0,Ud[7]=Ud[7]+3545052371+(Ud[6]>>>0>>0?1:0)|0,this._b=Ud[7]>>>0>>0?1:0;for(var jd=0;jd<8;jd++){var Gd=Ld[jd]+Ud[jd],Yd=Gd&65535,zd=Gd>>>16,qd=((Yd*Yd>>>17)+Yd*zd>>>15)+zd*zd,Wd=((Gd&4294901760)*Gd|0)+((Gd&65535)*Gd|0);Cd[jd]=qd^Wd}Ld[0]=Cd[0]+(Cd[7]<<16|Cd[7]>>>16)+(Cd[6]<<16|Cd[6]>>>16)|0,Ld[1]=Cd[1]+(Cd[0]<<8|Cd[0]>>>24)+Cd[7]|0,Ld[2]=Cd[2]+(Cd[1]<<16|Cd[1]>>>16)+(Cd[0]<<16|Cd[0]>>>16)|0,Ld[3]=Cd[3]+(Cd[2]<<8|Cd[2]>>>24)+Cd[1]|0,Ld[4]=Cd[4]+(Cd[3]<<16|Cd[3]>>>16)+(Cd[2]<<16|Cd[2]>>>16)|0,Ld[5]=Cd[5]+(Cd[4]<<8|Cd[4]>>>24)+Cd[3]|0,Ld[6]=Cd[6]+(Cd[5]<<16|Cd[5]>>>16)+(Cd[4]<<16|Cd[4]>>>16)|0,Ld[7]=Cd[7]+(Cd[6]<<8|Cd[6]>>>24)+Cd[5]|0}dd.RabbitLegacy=md._createHelper(wd)}(),ud.RabbitLegacy})}(rabbitLegacy)),rabbitLegacy.exports}var blowfish={exports:{}},hasRequiredBlowfish;function requireBlowfish(){return hasRequiredBlowfish||(hasRequiredBlowfish=1,function(Ra,ed){(function(ud,dd,hd){Ra.exports=dd(requireCore(),requireEncBase64(),requireMd5$1(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(ud){return function(){var dd=ud,hd=dd.lib,md=hd.BlockCipher,gd=dd.algo;const yd=16,vd=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],Cd=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var wd={pbox:[],sbox:[]};function Nd(Yd,zd){let qd=zd>>24&255,Wd=zd>>16&255,Xd=zd>>8&255,Jd=zd&255,Zd=Yd.sbox[0][qd]+Yd.sbox[1][Wd];return Zd=Zd^Yd.sbox[2][Xd],Zd=Zd+Yd.sbox[3][Jd],Zd}function Ld(Yd,zd,qd){let Wd=zd,Xd=qd,Jd;for(let Zd=0;Zd1;--Zd)Wd=Wd^Yd.pbox[Zd],Xd=Nd(Yd,Wd)^Xd,Jd=Wd,Wd=Xd,Xd=Jd;return Jd=Wd,Wd=Xd,Xd=Jd,Xd=Xd^Yd.pbox[1],Wd=Wd^Yd.pbox[0],{left:Wd,right:Xd}}function jd(Yd,zd,qd){for(let mf=0;mf<4;mf++){Yd.sbox[mf]=[];for(let xf=0;xf<256;xf++)Yd.sbox[mf][xf]=Cd[mf][xf]}let Wd=0;for(let mf=0;mf=qd&&(Wd=0);let Xd=0,Jd=0,Zd=0;for(let mf=0;mf2){var vd=ud.lastIndexOf("/");if(vd!==ud.length-1){vd===-1?(ud="",dd=0):(ud=ud.slice(0,vd),dd=ud.length-1-ud.lastIndexOf("/")),hd=yd,md=0;continue}}else if(ud.length===2||ud.length===1){ud="",dd=0,hd=yd,md=0;continue}}ed&&(ud.length>0?ud+="/..":ud="..",dd=2)}else ud.length>0?ud+="/"+Ra.slice(hd+1,yd):ud=Ra.slice(hd+1,yd),dd=yd-hd-1;hd=yd,md=0}else gd===46&&md!==-1?++md:md=-1}return ud}function _format(Ra,ed){var ud=ed.dir||ed.root,dd=ed.base||(ed.name||"")+(ed.ext||"");return ud?ud===ed.root?ud+dd:ud+Ra+dd:dd}var posix={resolve:function(){for(var ed="",ud=!1,dd,hd=arguments.length-1;hd>=-1&&!ud;hd--){var md;hd>=0?md=arguments[hd]:(dd===void 0&&(dd=define_process_default$6.cwd()),md=dd),assertPath(md),md.length!==0&&(ed=md+"/"+ed,ud=md.charCodeAt(0)===47)}return ed=normalizeStringPosix(ed,!ud),ud?ed.length>0?"/"+ed:"/":ed.length>0?ed:"."},normalize:function(ed){if(assertPath(ed),ed.length===0)return".";var ud=ed.charCodeAt(0)===47,dd=ed.charCodeAt(ed.length-1)===47;return ed=normalizeStringPosix(ed,!ud),ed.length===0&&!ud&&(ed="."),ed.length>0&&dd&&(ed+="/"),ud?"/"+ed:ed},isAbsolute:function(ed){return assertPath(ed),ed.length>0&&ed.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var ed,ud=0;ud0&&(ed===void 0?ed=dd:ed+="/"+dd)}return ed===void 0?".":posix.normalize(ed)},relative:function(ed,ud){if(assertPath(ed),assertPath(ud),ed===ud||(ed=posix.resolve(ed),ud=posix.resolve(ud),ed===ud))return"";for(var dd=1;ddCd){if(ud.charCodeAt(gd+Nd)===47)return ud.slice(gd+Nd+1);if(Nd===0)return ud.slice(gd+Nd)}else md>Cd&&(ed.charCodeAt(dd+Nd)===47?wd=Nd:Nd===0&&(wd=0));break}var Ld=ed.charCodeAt(dd+Nd),Ud=ud.charCodeAt(gd+Nd);if(Ld!==Ud)break;Ld===47&&(wd=Nd)}var jd="";for(Nd=dd+wd+1;Nd<=hd;++Nd)(Nd===hd||ed.charCodeAt(Nd)===47)&&(jd.length===0?jd+="..":jd+="/..");return jd.length>0?jd+ud.slice(gd+wd):(gd+=wd,ud.charCodeAt(gd)===47&&++gd,ud.slice(gd))},_makeLong:function(ed){return ed},dirname:function(ed){if(assertPath(ed),ed.length===0)return".";for(var ud=ed.charCodeAt(0),dd=ud===47,hd=-1,md=!0,gd=ed.length-1;gd>=1;--gd)if(ud=ed.charCodeAt(gd),ud===47){if(!md){hd=gd;break}}else md=!1;return hd===-1?dd?"/":".":dd&&hd===1?"//":ed.slice(0,hd)},basename:function(ed,ud){if(ud!==void 0&&typeof ud!="string")throw new TypeError('"ext" argument must be a string');assertPath(ed);var dd=0,hd=-1,md=!0,gd;if(ud!==void 0&&ud.length>0&&ud.length<=ed.length){if(ud.length===ed.length&&ud===ed)return"";var yd=ud.length-1,vd=-1;for(gd=ed.length-1;gd>=0;--gd){var Cd=ed.charCodeAt(gd);if(Cd===47){if(!md){dd=gd+1;break}}else vd===-1&&(md=!1,vd=gd+1),yd>=0&&(Cd===ud.charCodeAt(yd)?--yd===-1&&(hd=gd):(yd=-1,hd=vd))}return dd===hd?hd=vd:hd===-1&&(hd=ed.length),ed.slice(dd,hd)}else{for(gd=ed.length-1;gd>=0;--gd)if(ed.charCodeAt(gd)===47){if(!md){dd=gd+1;break}}else hd===-1&&(md=!1,hd=gd+1);return hd===-1?"":ed.slice(dd,hd)}},extname:function(ed){assertPath(ed);for(var ud=-1,dd=0,hd=-1,md=!0,gd=0,yd=ed.length-1;yd>=0;--yd){var vd=ed.charCodeAt(yd);if(vd===47){if(!md){dd=yd+1;break}continue}hd===-1&&(md=!1,hd=yd+1),vd===46?ud===-1?ud=yd:gd!==1&&(gd=1):ud!==-1&&(gd=-1)}return ud===-1||hd===-1||gd===0||gd===1&&ud===hd-1&&ud===dd+1?"":ed.slice(ud,hd)},format:function(ed){if(ed===null||typeof ed!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof ed);return _format("/",ed)},parse:function(ed){assertPath(ed);var ud={root:"",dir:"",base:"",ext:"",name:""};if(ed.length===0)return ud;var dd=ed.charCodeAt(0),hd=dd===47,md;hd?(ud.root="/",md=1):md=0;for(var gd=-1,yd=0,vd=-1,Cd=!0,wd=ed.length-1,Nd=0;wd>=md;--wd){if(dd=ed.charCodeAt(wd),dd===47){if(!Cd){yd=wd+1;break}continue}vd===-1&&(Cd=!1,vd=wd+1),dd===46?gd===-1?gd=wd:Nd!==1&&(Nd=1):gd!==-1&&(Nd=-1)}return gd===-1||vd===-1||Nd===0||Nd===1&&gd===vd-1&&gd===yd+1?vd!==-1&&(yd===0&&hd?ud.base=ud.name=ed.slice(1,vd):ud.base=ud.name=ed.slice(yd,vd)):(yd===0&&hd?(ud.name=ed.slice(1,gd),ud.base=ed.slice(1,vd)):(ud.name=ed.slice(yd,gd),ud.base=ed.slice(yd,vd)),ud.ext=ed.slice(gd,vd)),yd>0?ud.dir=ed.slice(0,yd-1):hd&&(ud.dir="/"),ud},sep:"/",delimiter:":",win32:null,posix:null};posix.posix=posix;var pathBrowserify=posix,define_process_default$5={};function apply(Ra,...ed){return(...ud)=>Ra(...ed,...ud)}function initialParams(Ra){return function(...ed){var ud=ed.pop();return Ra.call(this,ed,ud)}}var hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,hasSetImmediate=typeof setImmediate=="function"&&setImmediate,hasNextTick=typeof define_process_default$5=="object"&&typeof define_process_default$5.nextTick=="function";function fallback(Ra){setTimeout(Ra,0)}function wrap(Ra){return(ed,...ud)=>Ra(()=>ed(...ud))}var _defer$1;hasQueueMicrotask?_defer$1=queueMicrotask:hasSetImmediate?_defer$1=setImmediate:hasNextTick?_defer$1=define_process_default$5.nextTick:_defer$1=fallback;var setImmediate$1$1=wrap(_defer$1);function asyncify(Ra){return isAsync(Ra)?function(...ed){const ud=ed.pop(),dd=Ra.apply(this,ed);return handlePromise(dd,ud)}:initialParams(function(ed,ud){var dd;try{dd=Ra.apply(this,ed)}catch(hd){return ud(hd)}if(dd&&typeof dd.then=="function")return handlePromise(dd,ud);ud(null,dd)})}function handlePromise(Ra,ed){return Ra.then(ud=>{invokeCallback(ed,null,ud)},ud=>{invokeCallback(ed,ud&&(ud instanceof Error||ud.message)?ud:new Error(ud))})}function invokeCallback(Ra,ed,ud){try{Ra(ed,ud)}catch(dd){setImmediate$1$1(hd=>{throw hd},dd)}}function isAsync(Ra){return Ra[Symbol.toStringTag]==="AsyncFunction"}function isAsyncGenerator(Ra){return Ra[Symbol.toStringTag]==="AsyncGenerator"}function isAsyncIterable(Ra){return typeof Ra[Symbol.asyncIterator]=="function"}function wrapAsync(Ra){if(typeof Ra!="function")throw new Error("expected a function");return isAsync(Ra)?asyncify(Ra):Ra}function awaitify(Ra,ed){if(ed||(ed=Ra.length),!ed)throw new Error("arity is undefined");function ud(...dd){return typeof dd[ed-1]=="function"?Ra.apply(this,dd):new Promise((hd,md)=>{dd[ed-1]=(gd,...yd)=>{if(gd)return md(gd);hd(yd.length>1?yd:yd[0])},Ra.apply(this,dd)})}return ud}function applyEach$1(Ra){return function(ud,...dd){return awaitify(function(md){var gd=this;return Ra(ud,(yd,vd)=>{wrapAsync(yd).apply(gd,dd.concat(vd))},md)})}}function _asyncMap(Ra,ed,ud,dd){ed=ed||[];var hd=[],md=0,gd=wrapAsync(ud);return Ra(ed,(yd,vd,Cd)=>{var wd=md++;gd(yd,(Nd,Ld)=>{hd[wd]=Ld,Cd(Nd)})},yd=>{dd(yd,hd)})}function isArrayLike(Ra){return Ra&&typeof Ra.length=="number"&&Ra.length>=0&&Ra.length%1===0}const breakLoop={};function once(Ra){function ed(...ud){if(Ra!==null){var dd=Ra;Ra=null,dd.apply(this,ud)}}return Object.assign(ed,Ra),ed}function getIterator(Ra){return Ra[Symbol.iterator]&&Ra[Symbol.iterator]()}function createArrayIterator(Ra){var ed=-1,ud=Ra.length;return function(){return++ed=ed||gd||hd||(gd=!0,Ra.next().then(({value:Ld,done:Ud})=>{if(!(md||hd)){if(gd=!1,Ud){hd=!0,yd<=0&&dd(null);return}yd++,ud(Ld,vd,wd),vd++,Cd()}}).catch(Nd))}function wd(Ld,Ud){if(yd-=1,!md){if(Ld)return Nd(Ld);if(Ld===!1){hd=!0,md=!0;return}if(Ud===breakLoop||hd&&yd<=0)return hd=!0,dd(null);Cd()}}function Nd(Ld){md||(gd=!1,hd=!0,dd(Ld))}Cd()}var eachOfLimit$2=Ra=>(ed,ud,dd)=>{if(dd=once(dd),Ra<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!ed)return dd(null);if(isAsyncGenerator(ed))return asyncEachOfLimit(ed,Ra,ud,dd);if(isAsyncIterable(ed))return asyncEachOfLimit(ed[Symbol.asyncIterator](),Ra,ud,dd);var hd=createIterator(ed),md=!1,gd=!1,yd=0,vd=!1;function Cd(Nd,Ld){if(!gd)if(yd-=1,Nd)md=!0,dd(Nd);else if(Nd===!1)md=!0,gd=!0;else{if(Ld===breakLoop||md&&yd<=0)return md=!0,dd(null);vd||wd()}}function wd(){for(vd=!0;yd1?hd:hd[0])}return ud[PROMISE_SYMBOL]=new Promise((dd,hd)=>{Ra=dd,ed=hd}),ud}function auto(Ra,ed,ud){typeof ed!="number"&&(ud=ed,ed=null),ud=once(ud||promiseCallback());var dd=Object.keys(Ra).length;if(!dd)return ud(null);ed||(ed=dd);var hd={},md=0,gd=!1,yd=!1,vd=Object.create(null),Cd=[],wd=[],Nd={};Object.keys(Ra).forEach(Wd=>{var Xd=Ra[Wd];if(!Array.isArray(Xd)){Ld(Wd,[Xd]),wd.push(Wd);return}var Jd=Xd.slice(0,Xd.length-1),Zd=Jd.length;if(Zd===0){Ld(Wd,Xd),wd.push(Wd);return}Nd[Wd]=Zd,Jd.forEach(mf=>{if(!Ra[mf])throw new Error("async.auto task `"+Wd+"` has a non-existent dependency `"+mf+"` in "+Jd.join(", "));jd(mf,()=>{Zd--,Zd===0&&Ld(Wd,Xd)})})}),zd(),Ud();function Ld(Wd,Xd){Cd.push(()=>Yd(Wd,Xd))}function Ud(){if(!gd){if(Cd.length===0&&md===0)return ud(null,hd);for(;Cd.length&&mdJd()),Ud()}function Yd(Wd,Xd){if(!yd){var Jd=onlyOnce((mf,...xf)=>{if(md--,mf===!1){gd=!0;return}if(xf.length<2&&([xf]=xf),mf){var _f={};if(Object.keys(hd).forEach(vf=>{_f[vf]=hd[vf]}),_f[Wd]=xf,yd=!0,vd=Object.create(null),gd)return;ud(mf,_f)}else hd[Wd]=xf,Gd(Wd)});md++;var Zd=wrapAsync(Xd[Xd.length-1]);Xd.length>1?Zd(hd,Jd):Zd(Jd)}}function zd(){for(var Wd,Xd=0;wd.length;)Wd=wd.pop(),Xd++,qd(Wd).forEach(Jd=>{--Nd[Jd]===0&&wd.push(Jd)});if(Xd!==dd)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}function qd(Wd){var Xd=[];return Object.keys(Ra).forEach(Jd=>{const Zd=Ra[Jd];Array.isArray(Zd)&&Zd.indexOf(Wd)>=0&&Xd.push(Jd)}),Xd}return ud[PROMISE_SYMBOL]}var FN_ARGS=/^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/,ARROW_FN_ARGS=/^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/,FN_ARG_SPLIT=/,/,FN_ARG=/(=.+)?(\s*)$/;function stripComments(Ra){let ed="",ud=0,dd=Ra.indexOf("*/");for(;ud>24&255)===255){var vd=yd>>16&255,Cd=yd>>8&255,wd=yd&255;vd===255?(vd=0,Cd===255?(Cd=0,wd===255?wd=0:++wd):++Cd):++vd,yd=0,yd+=vd<<16,yd+=Cd<<8,yd+=wd}else yd+=1<<24;return yd}function md(yd){return(yd[0]=hd(yd[0]))===0&&(yd[1]=hd(yd[1])),yd}var gd=dd.Encryptor=dd.extend({processBlock:function(yd,vd){var Cd=this._cipher,wd=Cd.blockSize,Nd=this._iv,Ld=this._counter;Nd&&(Ld=this._counter=Nd.slice(0),this._iv=void 0),md(Ld);var Ud=Ld.slice(0);Cd.encryptBlock(Ud,0);for(var jd=0;jd>>2]|=yd<<24-vd%4*8,dd.sigBytes+=yd},unpad:function(dd){var hd=dd.words[dd.sigBytes-1>>>2]&255;dd.sigBytes-=hd}},ud.pad.Ansix923})}(padAnsix923)),padAnsix923.exports}var padIso10126={exports:{}},hasRequiredPadIso10126;function requirePadIso10126(){return hasRequiredPadIso10126||(hasRequiredPadIso10126=1,function(Ra,ed){(function(ud,dd,hd){Ra.exports=dd(requireCore(),requireCipherCore())})(commonjsGlobal,function(ud){return ud.pad.Iso10126={pad:function(dd,hd){var md=hd*4,gd=md-dd.sigBytes%md;dd.concat(ud.lib.WordArray.random(gd-1)).concat(ud.lib.WordArray.create([gd<<24],1))},unpad:function(dd){var hd=dd.words[dd.sigBytes-1>>>2]&255;dd.sigBytes-=hd}},ud.pad.Iso10126})}(padIso10126)),padIso10126.exports}var padIso97971={exports:{}},hasRequiredPadIso97971;function requirePadIso97971(){return hasRequiredPadIso97971||(hasRequiredPadIso97971=1,function(Ra,ed){(function(ud,dd,hd){Ra.exports=dd(requireCore(),requireCipherCore())})(commonjsGlobal,function(ud){return ud.pad.Iso97971={pad:function(dd,hd){dd.concat(ud.lib.WordArray.create([2147483648],1)),ud.pad.ZeroPadding.pad(dd,hd)},unpad:function(dd){ud.pad.ZeroPadding.unpad(dd),dd.sigBytes--}},ud.pad.Iso97971})}(padIso97971)),padIso97971.exports}var padZeropadding={exports:{}},hasRequiredPadZeropadding;function requirePadZeropadding(){return hasRequiredPadZeropadding||(hasRequiredPadZeropadding=1,function(Ra,ed){(function(ud,dd,hd){Ra.exports=dd(requireCore(),requireCipherCore())})(commonjsGlobal,function(ud){return ud.pad.ZeroPadding={pad:function(dd,hd){var md=hd*4;dd.clamp(),dd.sigBytes+=md-(dd.sigBytes%md||md)},unpad:function(dd){for(var hd=dd.words,md=dd.sigBytes-1,md=dd.sigBytes-1;md>=0;md--)if(hd[md>>>2]>>>24-md%4*8&255){dd.sigBytes=md+1;break}}},ud.pad.ZeroPadding})}(padZeropadding)),padZeropadding.exports}var padNopadding={exports:{}},hasRequiredPadNopadding;function requirePadNopadding(){return hasRequiredPadNopadding||(hasRequiredPadNopadding=1,function(Ra,ed){(function(ud,dd,hd){Ra.exports=dd(requireCore(),requireCipherCore())})(commonjsGlobal,function(ud){return ud.pad.NoPadding={pad:function(){},unpad:function(){}},ud.pad.NoPadding})}(padNopadding)),padNopadding.exports}var formatHex={exports:{}},hasRequiredFormatHex;function requireFormatHex(){return hasRequiredFormatHex||(hasRequiredFormatHex=1,function(Ra,ed){(function(ud,dd,hd){Ra.exports=dd(requireCore(),requireCipherCore())})(commonjsGlobal,function(ud){return function(dd){var hd=ud,md=hd.lib,gd=md.CipherParams,yd=hd.enc,vd=yd.Hex,Cd=hd.format;Cd.Hex={stringify:function(wd){return wd.ciphertext.toString(vd)},parse:function(wd){var Nd=vd.parse(wd);return gd.create({ciphertext:Nd})}}}(),ud.format.Hex})}(formatHex)),formatHex.exports}var aes={exports:{}},hasRequiredAes;function requireAes(){return hasRequiredAes||(hasRequiredAes=1,function(Ra,ed){(function(ud,dd,hd){Ra.exports=dd(requireCore(),requireEncBase64(),requireMd5$1(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(ud){return function(){var dd=ud,hd=dd.lib,md=hd.BlockCipher,gd=dd.algo,yd=[],vd=[],Cd=[],wd=[],Nd=[],Ld=[],Ud=[],jd=[],Gd=[],Yd=[];(function(){for(var Wd=[],Xd=0;Xd<256;Xd++)Xd<128?Wd[Xd]=Xd<<1:Wd[Xd]=Xd<<1^283;for(var Jd=0,Zd=0,Xd=0;Xd<256;Xd++){var mf=Zd^Zd<<1^Zd<<2^Zd<<3^Zd<<4;mf=mf>>>8^mf&255^99,yd[Jd]=mf,vd[mf]=Jd;var xf=Wd[Jd],_f=Wd[xf],vf=Wd[_f],gf=Wd[mf]*257^mf*16843008;Cd[Jd]=gf<<24|gf>>>8,wd[Jd]=gf<<16|gf>>>16,Nd[Jd]=gf<<8|gf>>>24,Ld[Jd]=gf;var gf=vf*16843009^_f*65537^xf*257^Jd*16843008;Ud[mf]=gf<<24|gf>>>8,jd[mf]=gf<<16|gf>>>16,Gd[mf]=gf<<8|gf>>>24,Yd[mf]=gf,Jd?(Jd=xf^Wd[Wd[Wd[vf^xf]]],Zd^=Wd[Wd[Zd]]):Jd=Zd=1}})();var zd=[0,1,2,4,8,16,32,64,128,27,54],qd=gd.AES=md.extend({_doReset:function(){var Wd;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var Xd=this._keyPriorReset=this._key,Jd=Xd.words,Zd=Xd.sigBytes/4,mf=this._nRounds=Zd+6,xf=(mf+1)*4,_f=this._keySchedule=[],vf=0;vf6&&vf%Zd==4&&(Wd=yd[Wd>>>24]<<24|yd[Wd>>>16&255]<<16|yd[Wd>>>8&255]<<8|yd[Wd&255]):(Wd=Wd<<8|Wd>>>24,Wd=yd[Wd>>>24]<<24|yd[Wd>>>16&255]<<16|yd[Wd>>>8&255]<<8|yd[Wd&255],Wd^=zd[vf/Zd|0]<<24),_f[vf]=_f[vf-Zd]^Wd);for(var gf=this._invKeySchedule=[],Af=0;Af>>24]]^jd[yd[Wd>>>16&255]]^Gd[yd[Wd>>>8&255]]^Yd[yd[Wd&255]]}}},encryptBlock:function(Wd,Xd){this._doCryptBlock(Wd,Xd,this._keySchedule,Cd,wd,Nd,Ld,yd)},decryptBlock:function(Wd,Xd){var Jd=Wd[Xd+1];Wd[Xd+1]=Wd[Xd+3],Wd[Xd+3]=Jd,this._doCryptBlock(Wd,Xd,this._invKeySchedule,Ud,jd,Gd,Yd,vd);var Jd=Wd[Xd+1];Wd[Xd+1]=Wd[Xd+3],Wd[Xd+3]=Jd},_doCryptBlock:function(Wd,Xd,Jd,Zd,mf,xf,_f,vf){for(var gf=this._nRounds,Af=Wd[Xd]^Jd[0],Df=Wd[Xd+1]^Jd[1],kf=Wd[Xd+2]^Jd[2],Cf=Wd[Xd+3]^Jd[3],If=4,Ff=1;Ff>>24]^mf[Df>>>16&255]^xf[kf>>>8&255]^_f[Cf&255]^Jd[If++],Eh=Zd[Df>>>24]^mf[kf>>>16&255]^xf[Cf>>>8&255]^_f[Af&255]^Jd[If++],_h=Zd[kf>>>24]^mf[Cf>>>16&255]^xf[Af>>>8&255]^_f[Df&255]^Jd[If++],Mh=Zd[Cf>>>24]^mf[Af>>>16&255]^xf[Df>>>8&255]^_f[kf&255]^Jd[If++];Af=oh,Df=Eh,kf=_h,Cf=Mh}var oh=(vf[Af>>>24]<<24|vf[Df>>>16&255]<<16|vf[kf>>>8&255]<<8|vf[Cf&255])^Jd[If++],Eh=(vf[Df>>>24]<<24|vf[kf>>>16&255]<<16|vf[Cf>>>8&255]<<8|vf[Af&255])^Jd[If++],_h=(vf[kf>>>24]<<24|vf[Cf>>>16&255]<<16|vf[Af>>>8&255]<<8|vf[Df&255])^Jd[If++],Mh=(vf[Cf>>>24]<<24|vf[Af>>>16&255]<<16|vf[Df>>>8&255]<<8|vf[kf&255])^Jd[If++];Wd[Xd]=oh,Wd[Xd+1]=Eh,Wd[Xd+2]=_h,Wd[Xd+3]=Mh},keySize:256/32});dd.AES=md._createHelper(qd)}(),ud.AES})}(aes)),aes.exports}var tripledes={exports:{}},hasRequiredTripledes;function requireTripledes(){return hasRequiredTripledes||(hasRequiredTripledes=1,function(Ra,ed){(function(ud,dd,hd){Ra.exports=dd(requireCore(),requireEncBase64(),requireMd5$1(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(ud){return function(){var dd=ud,hd=dd.lib,md=hd.WordArray,gd=hd.BlockCipher,yd=dd.algo,vd=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],Cd=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],wd=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],Nd=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],Ld=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],Ud=yd.DES=gd.extend({_doReset:function(){for(var zd=this._key,qd=zd.words,Wd=[],Xd=0;Xd<56;Xd++){var Jd=vd[Xd]-1;Wd[Xd]=qd[Jd>>>5]>>>31-Jd%32&1}for(var Zd=this._subKeys=[],mf=0;mf<16;mf++){for(var xf=Zd[mf]=[],_f=wd[mf],Xd=0;Xd<24;Xd++)xf[Xd/6|0]|=Wd[(Cd[Xd]-1+_f)%28]<<31-Xd%6,xf[4+(Xd/6|0)]|=Wd[28+(Cd[Xd+24]-1+_f)%28]<<31-Xd%6;xf[0]=xf[0]<<1|xf[0]>>>31;for(var Xd=1;Xd<7;Xd++)xf[Xd]=xf[Xd]>>>(Xd-1)*4+3;xf[7]=xf[7]<<5|xf[7]>>>27}for(var vf=this._invSubKeys=[],Xd=0;Xd<16;Xd++)vf[Xd]=Zd[15-Xd]},encryptBlock:function(zd,qd){this._doCryptBlock(zd,qd,this._subKeys)},decryptBlock:function(zd,qd){this._doCryptBlock(zd,qd,this._invSubKeys)},_doCryptBlock:function(zd,qd,Wd){this._lBlock=zd[qd],this._rBlock=zd[qd+1],jd.call(this,4,252645135),jd.call(this,16,65535),Gd.call(this,2,858993459),Gd.call(this,8,16711935),jd.call(this,1,1431655765);for(var Xd=0;Xd<16;Xd++){for(var Jd=Wd[Xd],Zd=this._lBlock,mf=this._rBlock,xf=0,_f=0;_f<8;_f++)xf|=Nd[_f][((mf^Jd[_f])&Ld[_f])>>>0];this._lBlock=mf,this._rBlock=Zd^xf}var vf=this._lBlock;this._lBlock=this._rBlock,this._rBlock=vf,jd.call(this,1,1431655765),Gd.call(this,8,16711935),Gd.call(this,2,858993459),jd.call(this,16,65535),jd.call(this,4,252645135),zd[qd]=this._lBlock,zd[qd+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function jd(zd,qd){var Wd=(this._lBlock>>>zd^this._rBlock)&qd;this._rBlock^=Wd,this._lBlock^=Wd<>>zd^this._lBlock)&qd;this._lBlock^=Wd,this._rBlock^=Wd<192.");var Wd=qd.slice(0,2),Xd=qd.length<4?qd.slice(0,2):qd.slice(2,4),Jd=qd.length<6?qd.slice(0,2):qd.slice(4,6);this._des1=Ud.createEncryptor(md.create(Wd)),this._des2=Ud.createEncryptor(md.create(Xd)),this._des3=Ud.createEncryptor(md.create(Jd))},encryptBlock:function(zd,qd){this._des1.encryptBlock(zd,qd),this._des2.decryptBlock(zd,qd),this._des3.encryptBlock(zd,qd)},decryptBlock:function(zd,qd){this._des3.decryptBlock(zd,qd),this._des2.encryptBlock(zd,qd),this._des1.decryptBlock(zd,qd)},keySize:192/32,ivSize:64/32,blockSize:64/32});dd.TripleDES=gd._createHelper(Yd)}(),ud.TripleDES})}(tripledes)),tripledes.exports}var rc4={exports:{}},hasRequiredRc4;function requireRc4(){return hasRequiredRc4||(hasRequiredRc4=1,function(Ra,ed){(function(ud,dd,hd){Ra.exports=dd(requireCore(),requireEncBase64(),requireMd5$1(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(ud){return function(){var dd=ud,hd=dd.lib,md=hd.StreamCipher,gd=dd.algo,yd=gd.RC4=md.extend({_doReset:function(){for(var wd=this._key,Nd=wd.words,Ld=wd.sigBytes,Ud=this._S=[],jd=0;jd<256;jd++)Ud[jd]=jd;for(var jd=0,Gd=0;jd<256;jd++){var Yd=jd%Ld,zd=Nd[Yd>>>2]>>>24-Yd%4*8&255;Gd=(Gd+Ud[jd]+zd)%256;var qd=Ud[jd];Ud[jd]=Ud[Gd],Ud[Gd]=qd}this._i=this._j=0},_doProcessBlock:function(wd,Nd){wd[Nd]^=vd.call(this)},keySize:256/32,ivSize:0});function vd(){for(var wd=this._S,Nd=this._i,Ld=this._j,Ud=0,jd=0;jd<4;jd++){Nd=(Nd+1)%256,Ld=(Ld+wd[Nd])%256;var Gd=wd[Nd];wd[Nd]=wd[Ld],wd[Ld]=Gd,Ud|=wd[(wd[Nd]+wd[Ld])%256]<<24-jd*8}return this._i=Nd,this._j=Ld,Ud}dd.RC4=md._createHelper(yd);var Cd=gd.RC4Drop=yd.extend({cfg:yd.cfg.extend({drop:192}),_doReset:function(){yd._doReset.call(this);for(var wd=this.cfg.drop;wd>0;wd--)vd.call(this)}});dd.RC4Drop=md._createHelper(Cd)}(),ud.RC4})}(rc4)),rc4.exports}var rabbit={exports:{}},hasRequiredRabbit;function requireRabbit(){return hasRequiredRabbit||(hasRequiredRabbit=1,function(Ra,ed){(function(ud,dd,hd){Ra.exports=dd(requireCore(),requireEncBase64(),requireMd5$1(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(ud){return function(){var dd=ud,hd=dd.lib,md=hd.StreamCipher,gd=dd.algo,yd=[],vd=[],Cd=[],wd=gd.Rabbit=md.extend({_doReset:function(){for(var Ld=this._key.words,Ud=this.cfg.iv,jd=0;jd<4;jd++)Ld[jd]=(Ld[jd]<<8|Ld[jd]>>>24)&16711935|(Ld[jd]<<24|Ld[jd]>>>8)&4278255360;var Gd=this._X=[Ld[0],Ld[3]<<16|Ld[2]>>>16,Ld[1],Ld[0]<<16|Ld[3]>>>16,Ld[2],Ld[1]<<16|Ld[0]>>>16,Ld[3],Ld[2]<<16|Ld[1]>>>16],Yd=this._C=[Ld[2]<<16|Ld[2]>>>16,Ld[0]&4294901760|Ld[1]&65535,Ld[3]<<16|Ld[3]>>>16,Ld[1]&4294901760|Ld[2]&65535,Ld[0]<<16|Ld[0]>>>16,Ld[2]&4294901760|Ld[3]&65535,Ld[1]<<16|Ld[1]>>>16,Ld[3]&4294901760|Ld[0]&65535];this._b=0;for(var jd=0;jd<4;jd++)Nd.call(this);for(var jd=0;jd<8;jd++)Yd[jd]^=Gd[jd+4&7];if(Ud){var zd=Ud.words,qd=zd[0],Wd=zd[1],Xd=(qd<<8|qd>>>24)&16711935|(qd<<24|qd>>>8)&4278255360,Jd=(Wd<<8|Wd>>>24)&16711935|(Wd<<24|Wd>>>8)&4278255360,Zd=Xd>>>16|Jd&4294901760,mf=Jd<<16|Xd&65535;Yd[0]^=Xd,Yd[1]^=Zd,Yd[2]^=Jd,Yd[3]^=mf,Yd[4]^=Xd,Yd[5]^=Zd,Yd[6]^=Jd,Yd[7]^=mf;for(var jd=0;jd<4;jd++)Nd.call(this)}},_doProcessBlock:function(Ld,Ud){var jd=this._X;Nd.call(this),yd[0]=jd[0]^jd[5]>>>16^jd[3]<<16,yd[1]=jd[2]^jd[7]>>>16^jd[5]<<16,yd[2]=jd[4]^jd[1]>>>16^jd[7]<<16,yd[3]=jd[6]^jd[3]>>>16^jd[1]<<16;for(var Gd=0;Gd<4;Gd++)yd[Gd]=(yd[Gd]<<8|yd[Gd]>>>24)&16711935|(yd[Gd]<<24|yd[Gd]>>>8)&4278255360,Ld[Ud+Gd]^=yd[Gd]},blockSize:128/32,ivSize:64/32});function Nd(){for(var Ld=this._X,Ud=this._C,jd=0;jd<8;jd++)vd[jd]=Ud[jd];Ud[0]=Ud[0]+1295307597+this._b|0,Ud[1]=Ud[1]+3545052371+(Ud[0]>>>0>>0?1:0)|0,Ud[2]=Ud[2]+886263092+(Ud[1]>>>0>>0?1:0)|0,Ud[3]=Ud[3]+1295307597+(Ud[2]>>>0>>0?1:0)|0,Ud[4]=Ud[4]+3545052371+(Ud[3]>>>0>>0?1:0)|0,Ud[5]=Ud[5]+886263092+(Ud[4]>>>0>>0?1:0)|0,Ud[6]=Ud[6]+1295307597+(Ud[5]>>>0>>0?1:0)|0,Ud[7]=Ud[7]+3545052371+(Ud[6]>>>0>>0?1:0)|0,this._b=Ud[7]>>>0>>0?1:0;for(var jd=0;jd<8;jd++){var Gd=Ld[jd]+Ud[jd],Yd=Gd&65535,zd=Gd>>>16,qd=((Yd*Yd>>>17)+Yd*zd>>>15)+zd*zd,Wd=((Gd&4294901760)*Gd|0)+((Gd&65535)*Gd|0);Cd[jd]=qd^Wd}Ld[0]=Cd[0]+(Cd[7]<<16|Cd[7]>>>16)+(Cd[6]<<16|Cd[6]>>>16)|0,Ld[1]=Cd[1]+(Cd[0]<<8|Cd[0]>>>24)+Cd[7]|0,Ld[2]=Cd[2]+(Cd[1]<<16|Cd[1]>>>16)+(Cd[0]<<16|Cd[0]>>>16)|0,Ld[3]=Cd[3]+(Cd[2]<<8|Cd[2]>>>24)+Cd[1]|0,Ld[4]=Cd[4]+(Cd[3]<<16|Cd[3]>>>16)+(Cd[2]<<16|Cd[2]>>>16)|0,Ld[5]=Cd[5]+(Cd[4]<<8|Cd[4]>>>24)+Cd[3]|0,Ld[6]=Cd[6]+(Cd[5]<<16|Cd[5]>>>16)+(Cd[4]<<16|Cd[4]>>>16)|0,Ld[7]=Cd[7]+(Cd[6]<<8|Cd[6]>>>24)+Cd[5]|0}dd.Rabbit=md._createHelper(wd)}(),ud.Rabbit})}(rabbit)),rabbit.exports}var rabbitLegacy={exports:{}},hasRequiredRabbitLegacy;function requireRabbitLegacy(){return hasRequiredRabbitLegacy||(hasRequiredRabbitLegacy=1,function(Ra,ed){(function(ud,dd,hd){Ra.exports=dd(requireCore(),requireEncBase64(),requireMd5$1(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(ud){return function(){var dd=ud,hd=dd.lib,md=hd.StreamCipher,gd=dd.algo,yd=[],vd=[],Cd=[],wd=gd.RabbitLegacy=md.extend({_doReset:function(){var Ld=this._key.words,Ud=this.cfg.iv,jd=this._X=[Ld[0],Ld[3]<<16|Ld[2]>>>16,Ld[1],Ld[0]<<16|Ld[3]>>>16,Ld[2],Ld[1]<<16|Ld[0]>>>16,Ld[3],Ld[2]<<16|Ld[1]>>>16],Gd=this._C=[Ld[2]<<16|Ld[2]>>>16,Ld[0]&4294901760|Ld[1]&65535,Ld[3]<<16|Ld[3]>>>16,Ld[1]&4294901760|Ld[2]&65535,Ld[0]<<16|Ld[0]>>>16,Ld[2]&4294901760|Ld[3]&65535,Ld[1]<<16|Ld[1]>>>16,Ld[3]&4294901760|Ld[0]&65535];this._b=0;for(var Yd=0;Yd<4;Yd++)Nd.call(this);for(var Yd=0;Yd<8;Yd++)Gd[Yd]^=jd[Yd+4&7];if(Ud){var zd=Ud.words,qd=zd[0],Wd=zd[1],Xd=(qd<<8|qd>>>24)&16711935|(qd<<24|qd>>>8)&4278255360,Jd=(Wd<<8|Wd>>>24)&16711935|(Wd<<24|Wd>>>8)&4278255360,Zd=Xd>>>16|Jd&4294901760,mf=Jd<<16|Xd&65535;Gd[0]^=Xd,Gd[1]^=Zd,Gd[2]^=Jd,Gd[3]^=mf,Gd[4]^=Xd,Gd[5]^=Zd,Gd[6]^=Jd,Gd[7]^=mf;for(var Yd=0;Yd<4;Yd++)Nd.call(this)}},_doProcessBlock:function(Ld,Ud){var jd=this._X;Nd.call(this),yd[0]=jd[0]^jd[5]>>>16^jd[3]<<16,yd[1]=jd[2]^jd[7]>>>16^jd[5]<<16,yd[2]=jd[4]^jd[1]>>>16^jd[7]<<16,yd[3]=jd[6]^jd[3]>>>16^jd[1]<<16;for(var Gd=0;Gd<4;Gd++)yd[Gd]=(yd[Gd]<<8|yd[Gd]>>>24)&16711935|(yd[Gd]<<24|yd[Gd]>>>8)&4278255360,Ld[Ud+Gd]^=yd[Gd]},blockSize:128/32,ivSize:64/32});function Nd(){for(var Ld=this._X,Ud=this._C,jd=0;jd<8;jd++)vd[jd]=Ud[jd];Ud[0]=Ud[0]+1295307597+this._b|0,Ud[1]=Ud[1]+3545052371+(Ud[0]>>>0>>0?1:0)|0,Ud[2]=Ud[2]+886263092+(Ud[1]>>>0>>0?1:0)|0,Ud[3]=Ud[3]+1295307597+(Ud[2]>>>0>>0?1:0)|0,Ud[4]=Ud[4]+3545052371+(Ud[3]>>>0>>0?1:0)|0,Ud[5]=Ud[5]+886263092+(Ud[4]>>>0>>0?1:0)|0,Ud[6]=Ud[6]+1295307597+(Ud[5]>>>0>>0?1:0)|0,Ud[7]=Ud[7]+3545052371+(Ud[6]>>>0>>0?1:0)|0,this._b=Ud[7]>>>0>>0?1:0;for(var jd=0;jd<8;jd++){var Gd=Ld[jd]+Ud[jd],Yd=Gd&65535,zd=Gd>>>16,qd=((Yd*Yd>>>17)+Yd*zd>>>15)+zd*zd,Wd=((Gd&4294901760)*Gd|0)+((Gd&65535)*Gd|0);Cd[jd]=qd^Wd}Ld[0]=Cd[0]+(Cd[7]<<16|Cd[7]>>>16)+(Cd[6]<<16|Cd[6]>>>16)|0,Ld[1]=Cd[1]+(Cd[0]<<8|Cd[0]>>>24)+Cd[7]|0,Ld[2]=Cd[2]+(Cd[1]<<16|Cd[1]>>>16)+(Cd[0]<<16|Cd[0]>>>16)|0,Ld[3]=Cd[3]+(Cd[2]<<8|Cd[2]>>>24)+Cd[1]|0,Ld[4]=Cd[4]+(Cd[3]<<16|Cd[3]>>>16)+(Cd[2]<<16|Cd[2]>>>16)|0,Ld[5]=Cd[5]+(Cd[4]<<8|Cd[4]>>>24)+Cd[3]|0,Ld[6]=Cd[6]+(Cd[5]<<16|Cd[5]>>>16)+(Cd[4]<<16|Cd[4]>>>16)|0,Ld[7]=Cd[7]+(Cd[6]<<8|Cd[6]>>>24)+Cd[5]|0}dd.RabbitLegacy=md._createHelper(wd)}(),ud.RabbitLegacy})}(rabbitLegacy)),rabbitLegacy.exports}var blowfish={exports:{}},hasRequiredBlowfish;function requireBlowfish(){return hasRequiredBlowfish||(hasRequiredBlowfish=1,function(Ra,ed){(function(ud,dd,hd){Ra.exports=dd(requireCore(),requireEncBase64(),requireMd5$1(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(ud){return function(){var dd=ud,hd=dd.lib,md=hd.BlockCipher,gd=dd.algo;const yd=16,vd=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],Cd=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var wd={pbox:[],sbox:[]};function Nd(Yd,zd){let qd=zd>>24&255,Wd=zd>>16&255,Xd=zd>>8&255,Jd=zd&255,Zd=Yd.sbox[0][qd]+Yd.sbox[1][Wd];return Zd=Zd^Yd.sbox[2][Xd],Zd=Zd+Yd.sbox[3][Jd],Zd}function Ld(Yd,zd,qd){let Wd=zd,Xd=qd,Jd;for(let Zd=0;Zd1;--Zd)Wd=Wd^Yd.pbox[Zd],Xd=Nd(Yd,Wd)^Xd,Jd=Wd,Wd=Xd,Xd=Jd;return Jd=Wd,Wd=Xd,Xd=Jd,Xd=Xd^Yd.pbox[1],Wd=Wd^Yd.pbox[0],{left:Wd,right:Xd}}function jd(Yd,zd,qd){for(let mf=0;mf<4;mf++){Yd.sbox[mf]=[];for(let xf=0;xf<256;xf++)Yd.sbox[mf][xf]=Cd[mf][xf]}let Wd=0;for(let mf=0;mf=qd&&(Wd=0);let Xd=0,Jd=0,Zd=0;for(let mf=0;mf2){var vd=ud.lastIndexOf("/");if(vd!==ud.length-1){vd===-1?(ud="",dd=0):(ud=ud.slice(0,vd),dd=ud.length-1-ud.lastIndexOf("/")),hd=yd,md=0;continue}}else if(ud.length===2||ud.length===1){ud="",dd=0,hd=yd,md=0;continue}}ed&&(ud.length>0?ud+="/..":ud="..",dd=2)}else ud.length>0?ud+="/"+Ra.slice(hd+1,yd):ud=Ra.slice(hd+1,yd),dd=yd-hd-1;hd=yd,md=0}else gd===46&&md!==-1?++md:md=-1}return ud}function _format(Ra,ed){var ud=ed.dir||ed.root,dd=ed.base||(ed.name||"")+(ed.ext||"");return ud?ud===ed.root?ud+dd:ud+Ra+dd:dd}var posix={resolve:function(){for(var ed="",ud=!1,dd,hd=arguments.length-1;hd>=-1&&!ud;hd--){var md;hd>=0?md=arguments[hd]:(dd===void 0&&(dd=define_process_default$6.cwd()),md=dd),assertPath(md),md.length!==0&&(ed=md+"/"+ed,ud=md.charCodeAt(0)===47)}return ed=normalizeStringPosix(ed,!ud),ud?ed.length>0?"/"+ed:"/":ed.length>0?ed:"."},normalize:function(ed){if(assertPath(ed),ed.length===0)return".";var ud=ed.charCodeAt(0)===47,dd=ed.charCodeAt(ed.length-1)===47;return ed=normalizeStringPosix(ed,!ud),ed.length===0&&!ud&&(ed="."),ed.length>0&&dd&&(ed+="/"),ud?"/"+ed:ed},isAbsolute:function(ed){return assertPath(ed),ed.length>0&&ed.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var ed,ud=0;ud0&&(ed===void 0?ed=dd:ed+="/"+dd)}return ed===void 0?".":posix.normalize(ed)},relative:function(ed,ud){if(assertPath(ed),assertPath(ud),ed===ud||(ed=posix.resolve(ed),ud=posix.resolve(ud),ed===ud))return"";for(var dd=1;ddCd){if(ud.charCodeAt(gd+Nd)===47)return ud.slice(gd+Nd+1);if(Nd===0)return ud.slice(gd+Nd)}else md>Cd&&(ed.charCodeAt(dd+Nd)===47?wd=Nd:Nd===0&&(wd=0));break}var Ld=ed.charCodeAt(dd+Nd),Ud=ud.charCodeAt(gd+Nd);if(Ld!==Ud)break;Ld===47&&(wd=Nd)}var jd="";for(Nd=dd+wd+1;Nd<=hd;++Nd)(Nd===hd||ed.charCodeAt(Nd)===47)&&(jd.length===0?jd+="..":jd+="/..");return jd.length>0?jd+ud.slice(gd+wd):(gd+=wd,ud.charCodeAt(gd)===47&&++gd,ud.slice(gd))},_makeLong:function(ed){return ed},dirname:function(ed){if(assertPath(ed),ed.length===0)return".";for(var ud=ed.charCodeAt(0),dd=ud===47,hd=-1,md=!0,gd=ed.length-1;gd>=1;--gd)if(ud=ed.charCodeAt(gd),ud===47){if(!md){hd=gd;break}}else md=!1;return hd===-1?dd?"/":".":dd&&hd===1?"//":ed.slice(0,hd)},basename:function(ed,ud){if(ud!==void 0&&typeof ud!="string")throw new TypeError('"ext" argument must be a string');assertPath(ed);var dd=0,hd=-1,md=!0,gd;if(ud!==void 0&&ud.length>0&&ud.length<=ed.length){if(ud.length===ed.length&&ud===ed)return"";var yd=ud.length-1,vd=-1;for(gd=ed.length-1;gd>=0;--gd){var Cd=ed.charCodeAt(gd);if(Cd===47){if(!md){dd=gd+1;break}}else vd===-1&&(md=!1,vd=gd+1),yd>=0&&(Cd===ud.charCodeAt(yd)?--yd===-1&&(hd=gd):(yd=-1,hd=vd))}return dd===hd?hd=vd:hd===-1&&(hd=ed.length),ed.slice(dd,hd)}else{for(gd=ed.length-1;gd>=0;--gd)if(ed.charCodeAt(gd)===47){if(!md){dd=gd+1;break}}else hd===-1&&(md=!1,hd=gd+1);return hd===-1?"":ed.slice(dd,hd)}},extname:function(ed){assertPath(ed);for(var ud=-1,dd=0,hd=-1,md=!0,gd=0,yd=ed.length-1;yd>=0;--yd){var vd=ed.charCodeAt(yd);if(vd===47){if(!md){dd=yd+1;break}continue}hd===-1&&(md=!1,hd=yd+1),vd===46?ud===-1?ud=yd:gd!==1&&(gd=1):ud!==-1&&(gd=-1)}return ud===-1||hd===-1||gd===0||gd===1&&ud===hd-1&&ud===dd+1?"":ed.slice(ud,hd)},format:function(ed){if(ed===null||typeof ed!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof ed);return _format("/",ed)},parse:function(ed){assertPath(ed);var ud={root:"",dir:"",base:"",ext:"",name:""};if(ed.length===0)return ud;var dd=ed.charCodeAt(0),hd=dd===47,md;hd?(ud.root="/",md=1):md=0;for(var gd=-1,yd=0,vd=-1,Cd=!0,wd=ed.length-1,Nd=0;wd>=md;--wd){if(dd=ed.charCodeAt(wd),dd===47){if(!Cd){yd=wd+1;break}continue}vd===-1&&(Cd=!1,vd=wd+1),dd===46?gd===-1?gd=wd:Nd!==1&&(Nd=1):gd!==-1&&(Nd=-1)}return gd===-1||vd===-1||Nd===0||Nd===1&&gd===vd-1&&gd===yd+1?vd!==-1&&(yd===0&&hd?ud.base=ud.name=ed.slice(1,vd):ud.base=ud.name=ed.slice(yd,vd)):(yd===0&&hd?(ud.name=ed.slice(1,gd),ud.base=ed.slice(1,vd)):(ud.name=ed.slice(yd,gd),ud.base=ed.slice(yd,vd)),ud.ext=ed.slice(gd,vd)),yd>0?ud.dir=ed.slice(0,yd-1):hd&&(ud.dir="/"),ud},sep:"/",delimiter:":",win32:null,posix:null};posix.posix=posix;var pathBrowserify=posix,define_process_default$5={};function apply(Ra,...ed){return(...ud)=>Ra(...ed,...ud)}function initialParams(Ra){return function(...ed){var ud=ed.pop();return Ra.call(this,ed,ud)}}var hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,hasSetImmediate=typeof setImmediate=="function"&&setImmediate,hasNextTick=typeof define_process_default$5=="object"&&typeof define_process_default$5.nextTick=="function";function fallback(Ra){setTimeout(Ra,0)}function wrap(Ra){return(ed,...ud)=>Ra(()=>ed(...ud))}var _defer$1;hasQueueMicrotask?_defer$1=queueMicrotask:hasSetImmediate?_defer$1=setImmediate:hasNextTick?_defer$1=define_process_default$5.nextTick:_defer$1=fallback;var setImmediate$1$1=wrap(_defer$1);function asyncify(Ra){return isAsync(Ra)?function(...ed){const ud=ed.pop(),dd=Ra.apply(this,ed);return handlePromise(dd,ud)}:initialParams(function(ed,ud){var dd;try{dd=Ra.apply(this,ed)}catch(hd){return ud(hd)}if(dd&&typeof dd.then=="function")return handlePromise(dd,ud);ud(null,dd)})}function handlePromise(Ra,ed){return Ra.then(ud=>{invokeCallback(ed,null,ud)},ud=>{invokeCallback(ed,ud&&(ud instanceof Error||ud.message)?ud:new Error(ud))})}function invokeCallback(Ra,ed,ud){try{Ra(ed,ud)}catch(dd){setImmediate$1$1(hd=>{throw hd},dd)}}function isAsync(Ra){return Ra[Symbol.toStringTag]==="AsyncFunction"}function isAsyncGenerator(Ra){return Ra[Symbol.toStringTag]==="AsyncGenerator"}function isAsyncIterable(Ra){return typeof Ra[Symbol.asyncIterator]=="function"}function wrapAsync(Ra){if(typeof Ra!="function")throw new Error("expected a function");return isAsync(Ra)?asyncify(Ra):Ra}function awaitify(Ra,ed){if(ed||(ed=Ra.length),!ed)throw new Error("arity is undefined");function ud(...dd){return typeof dd[ed-1]=="function"?Ra.apply(this,dd):new Promise((hd,md)=>{dd[ed-1]=(gd,...yd)=>{if(gd)return md(gd);hd(yd.length>1?yd:yd[0])},Ra.apply(this,dd)})}return ud}function applyEach$1(Ra){return function(ud,...dd){return awaitify(function(md){var gd=this;return Ra(ud,(yd,vd)=>{wrapAsync(yd).apply(gd,dd.concat(vd))},md)})}}function _asyncMap(Ra,ed,ud,dd){ed=ed||[];var hd=[],md=0,gd=wrapAsync(ud);return Ra(ed,(yd,vd,Cd)=>{var wd=md++;gd(yd,(Nd,Ld)=>{hd[wd]=Ld,Cd(Nd)})},yd=>{dd(yd,hd)})}function isArrayLike(Ra){return Ra&&typeof Ra.length=="number"&&Ra.length>=0&&Ra.length%1===0}const breakLoop={};function once(Ra){function ed(...ud){if(Ra!==null){var dd=Ra;Ra=null,dd.apply(this,ud)}}return Object.assign(ed,Ra),ed}function getIterator(Ra){return Ra[Symbol.iterator]&&Ra[Symbol.iterator]()}function createArrayIterator(Ra){var ed=-1,ud=Ra.length;return function(){return++ed=ed||gd||hd||(gd=!0,Ra.next().then(({value:Ld,done:Ud})=>{if(!(md||hd)){if(gd=!1,Ud){hd=!0,yd<=0&&dd(null);return}yd++,ud(Ld,vd,wd),vd++,Cd()}}).catch(Nd))}function wd(Ld,Ud){if(yd-=1,!md){if(Ld)return Nd(Ld);if(Ld===!1){hd=!0,md=!0;return}if(Ud===breakLoop||hd&&yd<=0)return hd=!0,dd(null);Cd()}}function Nd(Ld){md||(gd=!1,hd=!0,dd(Ld))}Cd()}var eachOfLimit$2=Ra=>(ed,ud,dd)=>{if(dd=once(dd),Ra<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!ed)return dd(null);if(isAsyncGenerator(ed))return asyncEachOfLimit(ed,Ra,ud,dd);if(isAsyncIterable(ed))return asyncEachOfLimit(ed[Symbol.asyncIterator](),Ra,ud,dd);var hd=createIterator(ed),md=!1,gd=!1,yd=0,vd=!1;function Cd(Nd,Ld){if(!gd)if(yd-=1,Nd)md=!0,dd(Nd);else if(Nd===!1)md=!0,gd=!0;else{if(Ld===breakLoop||md&&yd<=0)return md=!0,dd(null);vd||wd()}}function wd(){for(vd=!0;yd1?hd:hd[0])}return ud[PROMISE_SYMBOL]=new Promise((dd,hd)=>{Ra=dd,ed=hd}),ud}function auto(Ra,ed,ud){typeof ed!="number"&&(ud=ed,ed=null),ud=once(ud||promiseCallback());var dd=Object.keys(Ra).length;if(!dd)return ud(null);ed||(ed=dd);var hd={},md=0,gd=!1,yd=!1,vd=Object.create(null),Cd=[],wd=[],Nd={};Object.keys(Ra).forEach(Wd=>{var Xd=Ra[Wd];if(!Array.isArray(Xd)){Ld(Wd,[Xd]),wd.push(Wd);return}var Jd=Xd.slice(0,Xd.length-1),Zd=Jd.length;if(Zd===0){Ld(Wd,Xd),wd.push(Wd);return}Nd[Wd]=Zd,Jd.forEach(mf=>{if(!Ra[mf])throw new Error("async.auto task `"+Wd+"` has a non-existent dependency `"+mf+"` in "+Jd.join(", "));jd(mf,()=>{Zd--,Zd===0&&Ld(Wd,Xd)})})}),zd(),Ud();function Ld(Wd,Xd){Cd.push(()=>Yd(Wd,Xd))}function Ud(){if(!gd){if(Cd.length===0&&md===0)return ud(null,hd);for(;Cd.length&&mdJd()),Ud()}function Yd(Wd,Xd){if(!yd){var Jd=onlyOnce((mf,...xf)=>{if(md--,mf===!1){gd=!0;return}if(xf.length<2&&([xf]=xf),mf){var _f={};if(Object.keys(hd).forEach(vf=>{_f[vf]=hd[vf]}),_f[Wd]=xf,yd=!0,vd=Object.create(null),gd)return;ud(mf,_f)}else hd[Wd]=xf,Gd(Wd)});md++;var Zd=wrapAsync(Xd[Xd.length-1]);Xd.length>1?Zd(hd,Jd):Zd(Jd)}}function zd(){for(var Wd,Xd=0;wd.length;)Wd=wd.pop(),Xd++,qd(Wd).forEach(Jd=>{--Nd[Jd]===0&&wd.push(Jd)});if(Xd!==dd)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}function qd(Wd){var Xd=[];return Object.keys(Ra).forEach(Jd=>{const Zd=Ra[Jd];Array.isArray(Zd)&&Zd.indexOf(Wd)>=0&&Xd.push(Jd)}),Xd}return ud[PROMISE_SYMBOL]}var FN_ARGS=/^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/,ARROW_FN_ARGS=/^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/,FN_ARG_SPLIT=/,/,FN_ARG=/(=.+)?(\s*)$/;function stripComments(Ra){let ed="",ud=0,dd=Ra.indexOf("*/");for(;udhd.replace(FN_ARG,"").trim())}function autoInject(Ra,ed){var ud={};return Object.keys(Ra).forEach(dd=>{var hd=Ra[dd],md,gd=isAsync(hd),yd=!gd&&hd.length===1||gd&&hd.length===0;if(Array.isArray(hd))md=[...hd],hd=md.pop(),ud[dd]=md.concat(md.length>0?vd:hd);else if(yd)ud[dd]=hd;else{if(md=parseParams(hd),hd.length===0&&!gd&&md.length===0)throw new Error("autoInject task functions require explicit parameters.");gd||md.pop(),ud[dd]=md.concat(vd)}function vd(Cd,wd){var Nd=md.map(Ld=>Cd[Ld]);Nd.push(wd),wrapAsync(hd)(...Nd)}}),auto(ud,ed)}class DLL{constructor(){this.head=this.tail=null,this.length=0}removeLink(ed){return ed.prev?ed.prev.next=ed.next:this.head=ed.next,ed.next?ed.next.prev=ed.prev:this.tail=ed.prev,ed.prev=ed.next=null,this.length-=1,ed}empty(){for(;this.head;)this.shift();return this}insertAfter(ed,ud){ud.prev=ed,ud.next=ed.next,ed.next?ed.next.prev=ud:this.tail=ud,ed.next=ud,this.length+=1}insertBefore(ed,ud){ud.prev=ed.prev,ud.next=ed,ed.prev?ed.prev.next=ud:this.head=ud,ed.prev=ud,this.length+=1}unshift(ed){this.head?this.insertBefore(this.head,ed):setInitial(this,ed)}push(ed){this.tail?this.insertAfter(this.tail,ed):setInitial(this,ed)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var ed=this.head;ed;)yield ed.data,ed=ed.next}remove(ed){for(var ud=this.head;ud;){var{next:dd}=ud;ed(ud)&&this.removeLink(ud),ud=dd}return this}}function setInitial(Ra,ed){Ra.length=1,Ra.head=Ra.tail=ed}function queue$1(Ra,ed,ud){if(ed==null)ed=1;else if(ed===0)throw new RangeError("Concurrency must not be zero");var dd=wrapAsync(Ra),hd=0,md=[];const gd={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function yd(qd,Wd){gd[qd].push(Wd)}function vd(qd,Wd){const Xd=(...Jd)=>{Cd(qd,Xd),Wd(...Jd)};gd[qd].push(Xd)}function Cd(qd,Wd){if(!qd)return Object.keys(gd).forEach(Xd=>gd[Xd]=[]);if(!Wd)return gd[qd]=[];gd[qd]=gd[qd].filter(Xd=>Xd!==Wd)}function wd(qd,...Wd){gd[qd].forEach(Xd=>Xd(...Wd))}var Nd=!1;function Ld(qd,Wd,Xd,Jd){if(Jd!=null&&typeof Jd!="function")throw new Error("task callback must be a function");zd.started=!0;var Zd,mf;function xf(vf,...gf){if(vf)return Xd?mf(vf):Zd();if(gf.length<=1)return Zd(gf[0]);Zd(gf)}var _f=zd._createTaskItem(qd,Xd?xf:Jd||xf);if(Wd?zd._tasks.unshift(_f):zd._tasks.push(_f),Nd||(Nd=!0,setImmediate$1$1(()=>{Nd=!1,zd.process()})),Xd||!Jd)return new Promise((vf,gf)=>{Zd=vf,mf=gf})}function Ud(qd){return function(Wd,...Xd){hd-=1;for(var Jd=0,Zd=qd.length;Jd0&&md.splice(xf,1),mf.callback(Wd,...Xd),Wd!=null&&wd("error",Wd,mf.data)}hd<=zd.concurrency-zd.buffer&&wd("unsaturated"),zd.idle()&&wd("drain"),zd.process()}}function jd(qd){return qd.length===0&&zd.idle()?(setImmediate$1$1(()=>wd("drain")),!0):!1}const Gd=qd=>Wd=>{if(!Wd)return new Promise((Xd,Jd)=>{vd(qd,(Zd,mf)=>{if(Zd)return Jd(Zd);Xd(mf)})});Cd(qd),yd(qd,Wd)};var Yd=!1,zd={_tasks:new DLL,_createTaskItem(qd,Wd){return{data:qd,callback:Wd}},*[Symbol.iterator](){yield*zd._tasks[Symbol.iterator]()},concurrency:ed,payload:ud,buffer:ed/4,started:!1,paused:!1,push(qd,Wd){return Array.isArray(qd)?jd(qd)?void 0:qd.map(Xd=>Ld(Xd,!1,!1,Wd)):Ld(qd,!1,!1,Wd)},pushAsync(qd,Wd){return Array.isArray(qd)?jd(qd)?void 0:qd.map(Xd=>Ld(Xd,!1,!0,Wd)):Ld(qd,!1,!0,Wd)},kill(){Cd(),zd._tasks.empty()},unshift(qd,Wd){return Array.isArray(qd)?jd(qd)?void 0:qd.map(Xd=>Ld(Xd,!0,!1,Wd)):Ld(qd,!0,!1,Wd)},unshiftAsync(qd,Wd){return Array.isArray(qd)?jd(qd)?void 0:qd.map(Xd=>Ld(Xd,!0,!0,Wd)):Ld(qd,!0,!0,Wd)},remove(qd){zd._tasks.remove(qd)},process(){if(!Yd){for(Yd=!0;!zd.paused&&hd{hd(ed,md,(vd,Cd)=>{ed=Cd,yd(vd)})},md=>dd(md,ed))}var reduce$1=awaitify(reduce,4);function seq(...Ra){var ed=Ra.map(wrapAsync);return function(...ud){var dd=this,hd=ud[ud.length-1];return typeof hd=="function"?ud.pop():hd=promiseCallback(),reduce$1(ed,ud,(md,gd,yd)=>{gd.apply(dd,md.concat((vd,...Cd)=>{yd(vd,Cd)}))},(md,gd)=>hd(md,...gd)),hd[PROMISE_SYMBOL]}}function compose(...Ra){return seq(...Ra.reverse())}function mapLimit(Ra,ed,ud,dd){return _asyncMap(eachOfLimit$2(ed),Ra,ud,dd)}var mapLimit$1=awaitify(mapLimit,4);function concatLimit(Ra,ed,ud,dd){var hd=wrapAsync(ud);return mapLimit$1(Ra,ed,(md,gd)=>{hd(md,(yd,...vd)=>yd?gd(yd):gd(yd,vd))},(md,gd)=>{for(var yd=[],vd=0;vd{var gd=!1,yd;const vd=wrapAsync(hd);ud(dd,(Cd,wd,Nd)=>{vd(Cd,(Ld,Ud)=>{if(Ld||Ld===!1)return Nd(Ld);if(Ra(Ud)&&!yd)return gd=!0,yd=ed(!0,Cd),Nd(null,breakLoop);Nd()})},Cd=>{if(Cd)return md(Cd);md(null,gd?yd:ed(!1))})}}function detect(Ra,ed,ud){return _createTester(dd=>dd,(dd,hd)=>hd)(eachOf$1,Ra,ed,ud)}var detect$1=awaitify(detect,3);function detectLimit(Ra,ed,ud,dd){return _createTester(hd=>hd,(hd,md)=>md)(eachOfLimit$2(ed),Ra,ud,dd)}var detectLimit$1=awaitify(detectLimit,4);function detectSeries(Ra,ed,ud){return _createTester(dd=>dd,(dd,hd)=>hd)(eachOfLimit$2(1),Ra,ed,ud)}var detectSeries$1=awaitify(detectSeries,3);function consoleFunc(Ra){return(ed,...ud)=>wrapAsync(ed)(...ud,(dd,...hd)=>{typeof console=="object"&&(dd?console.error&&console.error(dd):console[Ra]&&hd.forEach(md=>console[Ra](md)))})}var dir=consoleFunc("dir");function doWhilst(Ra,ed,ud){ud=onlyOnce(ud);var dd=wrapAsync(Ra),hd=wrapAsync(ed),md;function gd(vd,...Cd){if(vd)return ud(vd);vd!==!1&&(md=Cd,hd(...Cd,yd))}function yd(vd,Cd){if(vd)return ud(vd);if(vd!==!1){if(!Cd)return ud(null,...md);dd(gd)}}return yd(null,!0)}var doWhilst$1=awaitify(doWhilst,3);function doUntil(Ra,ed,ud){const dd=wrapAsync(ed);return doWhilst$1(Ra,(...hd)=>{const md=hd.pop();dd(...hd,(gd,yd)=>md(gd,!yd))},ud)}function _withoutIndex(Ra){return(ed,ud,dd)=>Ra(ed,dd)}function eachLimit$2(Ra,ed,ud){return eachOf$1(Ra,_withoutIndex(wrapAsync(ed)),ud)}var each=awaitify(eachLimit$2,3);function eachLimit(Ra,ed,ud,dd){return eachOfLimit$2(ed)(Ra,_withoutIndex(wrapAsync(ud)),dd)}var eachLimit$1=awaitify(eachLimit,4);function eachSeries(Ra,ed,ud){return eachLimit$1(Ra,1,ed,ud)}var eachSeries$1=awaitify(eachSeries,3);function ensureAsync(Ra){return isAsync(Ra)?Ra:function(...ed){var ud=ed.pop(),dd=!0;ed.push((...hd)=>{dd?setImmediate$1$1(()=>ud(...hd)):ud(...hd)}),Ra.apply(this,ed),dd=!1}}function every(Ra,ed,ud){return _createTester(dd=>!dd,dd=>!dd)(eachOf$1,Ra,ed,ud)}var every$1=awaitify(every,3);function everyLimit(Ra,ed,ud,dd){return _createTester(hd=>!hd,hd=>!hd)(eachOfLimit$2(ed),Ra,ud,dd)}var everyLimit$1=awaitify(everyLimit,4);function everySeries(Ra,ed,ud){return _createTester(dd=>!dd,dd=>!dd)(eachOfSeries$1,Ra,ed,ud)}var everySeries$1=awaitify(everySeries,3);function filterArray(Ra,ed,ud,dd){var hd=new Array(ed.length);Ra(ed,(md,gd,yd)=>{ud(md,(vd,Cd)=>{hd[gd]=!!Cd,yd(vd)})},md=>{if(md)return dd(md);for(var gd=[],yd=0;yd{ud(md,(vd,Cd)=>{if(vd)return yd(vd);Cd&&hd.push({index:gd,value:md}),yd(vd)})},md=>{if(md)return dd(md);dd(null,hd.sort((gd,yd)=>gd.index-yd.index).map(gd=>gd.value))})}function _filter(Ra,ed,ud,dd){var hd=isArrayLike(ed)?filterArray:filterGeneric;return hd(Ra,ed,wrapAsync(ud),dd)}function filter(Ra,ed,ud){return _filter(eachOf$1,Ra,ed,ud)}var filter$1=awaitify(filter,3);function filterLimit(Ra,ed,ud,dd){return _filter(eachOfLimit$2(ed),Ra,ud,dd)}var filterLimit$1=awaitify(filterLimit,4);function filterSeries(Ra,ed,ud){return _filter(eachOfSeries$1,Ra,ed,ud)}var filterSeries$1=awaitify(filterSeries,3);function forever(Ra,ed){var ud=onlyOnce(ed),dd=wrapAsync(ensureAsync(Ra));function hd(md){if(md)return ud(md);md!==!1&&dd(hd)}return hd()}var forever$1=awaitify(forever,2);function groupByLimit(Ra,ed,ud,dd){var hd=wrapAsync(ud);return mapLimit$1(Ra,ed,(md,gd)=>{hd(md,(yd,vd)=>yd?gd(yd):gd(yd,{key:vd,val:md}))},(md,gd)=>{for(var yd={},{hasOwnProperty:vd}=Object.prototype,Cd=0;Cd{md(gd,yd,(Cd,wd)=>{if(Cd)return vd(Cd);hd[yd]=wd,vd(Cd)})},gd=>dd(gd,hd))}var mapValuesLimit$1=awaitify(mapValuesLimit,4);function mapValues(Ra,ed,ud){return mapValuesLimit$1(Ra,1/0,ed,ud)}function mapValuesSeries(Ra,ed,ud){return mapValuesLimit$1(Ra,1,ed,ud)}function memoize(Ra,ed=ud=>ud){var ud=Object.create(null),dd=Object.create(null),hd=wrapAsync(Ra),md=initialParams((gd,yd)=>{var vd=ed(...gd);vd in ud?setImmediate$1$1(()=>yd(null,...ud[vd])):vd in dd?dd[vd].push(yd):(dd[vd]=[yd],hd(...gd,(Cd,...wd)=>{Cd||(ud[vd]=wd);var Nd=dd[vd];delete dd[vd];for(var Ld=0,Ud=Nd.length;Ld{var dd=isArrayLike(ed)?[]:{};Ra(ed,(hd,md,gd)=>{wrapAsync(hd)((yd,...vd)=>{vd.length<2&&([vd]=vd),dd[md]=vd,gd(yd)})},hd=>ud(hd,dd))},3);function parallel(Ra,ed){return _parallel(eachOf$1,Ra,ed)}function parallelLimit(Ra,ed,ud){return _parallel(eachOfLimit$2(ed),Ra,ud)}function queue(Ra,ed){var ud=wrapAsync(Ra);return queue$1((dd,hd)=>{ud(dd[0],hd)},ed,1)}class Heap{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(ed){let ud;for(;ed>0&&smaller(this.heap[ed],this.heap[ud=parent(ed)]);){let dd=this.heap[ed];this.heap[ed]=this.heap[ud],this.heap[ud]=dd,ed=ud}}percDown(ed){let ud;for(;(ud=leftChi(ed))=0;dd--)this.percDown(dd);return this}}function leftChi(Ra){return(Ra<<1)+1}function parent(Ra){return(Ra+1>>1)-1}function smaller(Ra,ed){return Ra.priority!==ed.priority?Ra.priority({data:gd,priority:yd,callback:vd});function md(gd,yd){return Array.isArray(gd)?gd.map(vd=>({data:vd,priority:yd})):{data:gd,priority:yd}}return ud.push=function(gd,yd=0,vd){return dd(md(gd,yd),vd)},ud.pushAsync=function(gd,yd=0,vd){return hd(md(gd,yd),vd)},delete ud.unshift,delete ud.unshiftAsync,ud}function race(Ra,ed){if(ed=once(ed),!Array.isArray(Ra))return ed(new TypeError("First argument to race must be an array of functions"));if(!Ra.length)return ed();for(var ud=0,dd=Ra.length;ud{let yd={};if(md&&(yd.error=md),gd.length>0){var vd=gd;gd.length<=1&&([vd]=gd),yd.value=vd}hd(null,yd)}),ed.apply(this,dd)})}function reflectAll(Ra){var ed;return Array.isArray(Ra)?ed=Ra.map(reflect):(ed={},Object.keys(Ra).forEach(ud=>{ed[ud]=reflect.call(this,Ra[ud])})),ed}function reject$2(Ra,ed,ud,dd){const hd=wrapAsync(ud);return _filter(Ra,ed,(md,gd)=>{hd(md,(yd,vd)=>{gd(yd,!vd)})},dd)}function reject(Ra,ed,ud){return reject$2(eachOf$1,Ra,ed,ud)}var reject$1=awaitify(reject,3);function rejectLimit(Ra,ed,ud,dd){return reject$2(eachOfLimit$2(ed),Ra,ud,dd)}var rejectLimit$1=awaitify(rejectLimit,4);function rejectSeries(Ra,ed,ud){return reject$2(eachOfSeries$1,Ra,ed,ud)}var rejectSeries$1=awaitify(rejectSeries,3);function constant(Ra){return function(){return Ra}}const DEFAULT_TIMES=5,DEFAULT_INTERVAL=0;function retry(Ra,ed,ud){var dd={times:DEFAULT_TIMES,intervalFunc:constant(DEFAULT_INTERVAL)};if(arguments.length<3&&typeof Ra=="function"?(ud=ed||promiseCallback(),ed=Ra):(parseTimes(dd,Ra),ud=ud||promiseCallback()),typeof ed!="function")throw new Error("Invalid arguments for async.retry");var hd=wrapAsync(ed),md=1;function gd(){hd((yd,...vd)=>{yd!==!1&&(yd&&md++{(hd.lengthdd)(eachOf$1,Ra,ed,ud)}var some$1=awaitify(some,3);function someLimit(Ra,ed,ud,dd){return _createTester(Boolean,hd=>hd)(eachOfLimit$2(ed),Ra,ud,dd)}var someLimit$1=awaitify(someLimit,4);function someSeries(Ra,ed,ud){return _createTester(Boolean,dd=>dd)(eachOfSeries$1,Ra,ed,ud)}var someSeries$1=awaitify(someSeries,3);function sortBy(Ra,ed,ud){var dd=wrapAsync(ed);return map$1(Ra,(md,gd)=>{dd(md,(yd,vd)=>{if(yd)return gd(yd);gd(yd,{value:md,criteria:vd})})},(md,gd)=>{if(md)return ud(md);ud(null,gd.sort(hd).map(yd=>yd.value))});function hd(md,gd){var yd=md.criteria,vd=gd.criteria;return ydvd?1:0}}var sortBy$1=awaitify(sortBy,3);function timeout(Ra,ed,ud){var dd=wrapAsync(Ra);return initialParams((hd,md)=>{var gd=!1,yd;function vd(){var Cd=Ra.name||"anonymous",wd=new Error('Callback function "'+Cd+'" timed out.');wd.code="ETIMEDOUT",ud&&(wd.info=ud),gd=!0,md(wd)}hd.push((...Cd)=>{gd||(md(...Cd),clearTimeout(yd))}),yd=setTimeout(vd,ed),dd(...hd)})}function range(Ra){for(var ed=Array(Ra);Ra--;)ed[Ra]=Ra;return ed}function timesLimit(Ra,ed,ud,dd){var hd=wrapAsync(ud);return mapLimit$1(range(Ra),ed,hd,dd)}function times(Ra,ed,ud){return timesLimit(Ra,1/0,ed,ud)}function timesSeries(Ra,ed,ud){return timesLimit(Ra,1,ed,ud)}function transform(Ra,ed,ud,dd){arguments.length<=3&&typeof ed=="function"&&(dd=ud,ud=ed,ed=Array.isArray(Ra)?[]:{}),dd=once(dd||promiseCallback());var hd=wrapAsync(ud);return eachOf$1(Ra,(md,gd,yd)=>{hd(ed,md,gd,yd)},md=>dd(md,ed)),dd[PROMISE_SYMBOL]}function tryEach(Ra,ed){var ud=null,dd;return eachSeries$1(Ra,(hd,md)=>{wrapAsync(hd)((gd,...yd)=>{if(gd===!1)return md(gd);yd.length<2?[dd]=yd:dd=yd,ud=gd,md(gd?null:{})})},()=>ed(ud,dd))}var tryEach$1=awaitify(tryEach);function unmemoize(Ra){return(...ed)=>(Ra.unmemoized||Ra)(...ed)}function whilst(Ra,ed,ud){ud=onlyOnce(ud);var dd=wrapAsync(ed),hd=wrapAsync(Ra),md=[];function gd(vd,...Cd){if(vd)return ud(vd);md=Cd,vd!==!1&&hd(yd)}function yd(vd,Cd){if(vd)return ud(vd);if(vd!==!1){if(!Cd)return ud(null,...md);dd(gd)}}return hd(yd)}var whilst$1=awaitify(whilst,3);function until(Ra,ed,ud){const dd=wrapAsync(Ra);return whilst$1(hd=>dd((md,gd)=>hd(md,!gd)),ed,ud)}function waterfall(Ra,ed){if(ed=once(ed),!Array.isArray(Ra))return ed(new Error("First argument to waterfall must be an array of functions"));if(!Ra.length)return ed();var ud=0;function dd(md){var gd=wrapAsync(Ra[ud++]);gd(...md,onlyOnce(hd))}function hd(md,...gd){if(md!==!1){if(md||ud===Ra.length)return ed(md,...gd);dd(gd)}}dd([])}var waterfall$1=awaitify(waterfall),index={apply,applyEach,applyEachSeries,asyncify,auto,autoInject,cargo:cargo$1,cargoQueue:cargo,compose,concat:concat$1,concatLimit:concatLimit$1,concatSeries:concatSeries$1,constant:constant$1,detect:detect$1,detectLimit:detectLimit$1,detectSeries:detectSeries$1,dir,doUntil,doWhilst:doWhilst$1,each,eachLimit:eachLimit$1,eachOf:eachOf$1,eachOfLimit:eachOfLimit$1,eachOfSeries:eachOfSeries$1,eachSeries:eachSeries$1,ensureAsync,every:every$1,everyLimit:everyLimit$1,everySeries:everySeries$1,filter:filter$1,filterLimit:filterLimit$1,filterSeries:filterSeries$1,forever:forever$1,groupBy,groupByLimit:groupByLimit$1,groupBySeries,log,map:map$1,mapLimit:mapLimit$1,mapSeries:mapSeries$1,mapValues,mapValuesLimit:mapValuesLimit$1,mapValuesSeries,memoize,nextTick,parallel,parallelLimit,priorityQueue,queue,race:race$1,reduce:reduce$1,reduceRight,reflect,reflectAll,reject:reject$1,rejectLimit:rejectLimit$1,rejectSeries:rejectSeries$1,retry,retryable,seq,series,setImmediate:setImmediate$1$1,some:some$1,someLimit:someLimit$1,someSeries:someSeries$1,sortBy:sortBy$1,timeout,times,timesLimit,timesSeries,transform,tryEach:tryEach$1,unmemoize,until,waterfall:waterfall$1,whilst:whilst$1,all:every$1,allLimit:everyLimit$1,allSeries:everySeries$1,any:some$1,anyLimit:someLimit$1,anySeries:someSeries$1,find:detect$1,findLimit:detectLimit$1,findSeries:detectSeries$1,flatMap:concat$1,flatMapLimit:concatLimit$1,flatMapSeries:concatSeries$1,forEach:each,forEachSeries:eachSeries$1,forEachLimit:eachLimit$1,forEachOf:eachOf$1,forEachOfSeries:eachOfSeries$1,forEachOfLimit:eachOfLimit$1,inject:reduce$1,foldl:reduce$1,foldr:reduceRight,select:filter$1,selectLimit:filterLimit$1,selectSeries:filterSeries$1,wrapSync:asyncify,during:whilst$1,doDuring:doWhilst$1},readableBrowser={exports:{}};(function(Ra,ed){ed=Ra.exports=require_stream_readable(),ed.Stream=ed,ed.Readable=ed,ed.Writable=require_stream_writable(),ed.Duplex=require_stream_duplex(),ed.Transform=_stream_transform,ed.PassThrough=_stream_passthrough,ed.finished=endOfStream,ed.pipeline=pipeline_1})(readableBrowser,readableBrowser.exports);var readableBrowserExports=readableBrowser.exports;const{Transform:Transform$1}=readableBrowserExports;class Block extends Transform$1{constructor(ed,ud={}){super(ud),typeof ed=="object"&&(ud=ed,ed=ud.size),this.size=ed||512;const{nopad:dd,zeroPadding:hd=!0}=ud;dd?this._zeroPadding=!1:this._zeroPadding=!!hd,this._buffered=[],this._bufferedBytes=0}_transform(ed,ud,dd){for(this._bufferedBytes+=ed.length,this._buffered.push(ed);this._bufferedBytes>=this.size;){this._bufferedBytes-=this.size;const hd=[];let md=0;for(;md * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */lodash.exports;(function(Ra,ed){(function(){var ud,dd="4.17.21",hd=200,md="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",gd="Expected a function",yd="Invalid `variable` option passed into `_.template`",vd="__lodash_hash_undefined__",Cd=500,wd="__lodash_placeholder__",Nd=1,Ld=2,Ud=4,jd=1,Gd=2,Yd=1,zd=2,qd=4,Wd=8,Xd=16,Jd=32,Zd=64,mf=128,xf=256,_f=512,vf=30,gf="...",Af=800,Df=16,Of=1,Cf=2,If=3,Ff=1/0,sh=9007199254740991,Sh=17976931348623157e292,yh=NaN,Mh=4294967295,lh=Mh-1,rh=Mh>>>1,mh=[["ary",mf],["bind",Yd],["bindKey",zd],["curry",Wd],["curryRight",Xd],["flip",_f],["partial",Jd],["partialRight",Zd],["rearg",xf]],xh="[object Arguments]",Eh="[object Array]",kf="[object AsyncFunction]",Rf="[object Boolean]",_h="[object Date]",Ph="[object DOMException]",sm="[object Error]",th="[object Function]",oh="[object GeneratorFunction]",Zh="[object Map]",Sm="[object Number]",$h="[object Null]",Vf="[object Object]",nh="[object Promise]",Lh="[object Proxy]",Ih="[object RegExp]",om="[object Set]",zh="[object String]",Om="[object Symbol]",Im="[object Undefined]",Zm="[object WeakMap]",Lm="[object WeakSet]",Wm="[object ArrayBuffer]",ig="[object DataView]",yg="[object Float32Array]",jh="[object Float64Array]",Pf="[object Int8Array]",$f="[object Int16Array]",Nh="[object Int32Array]",Wh="[object Uint8Array]",_m="[object Uint8ClampedArray]",$m="[object Uint16Array]",Ym="[object Uint32Array]",Ag=/\b__p \+= '';/g,sg=/\b(__p \+=) '' \+/g,mg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,vg=/&(?:amp|lt|gt|quot|#39);/g,kg=/[&<>"']/g,Kg=RegExp(vg.source),p_=RegExp(kg.source),l_=/<%-([\s\S]+?)%>/g,v_=/<%([\s\S]+?)%>/g,r_=/<%=([\s\S]+?)%>/g,O_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,S_=/^\w*$/,Q_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,t0=/[\\^$.*+?()[\]{}|]/g,R_=RegExp(t0.source),P_=/^\s+/,Pg=/\s/,$0=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,z0=/\{\n\/\* \[wrapped with (.+)\] \*/,c0=/,? & /,ih=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,mm=/[()=,{}\[\]\/\s]/,Qh=/\\(\\)?/g,hm=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Fm=/\w*$/,Pm=/^[-+]0x[0-9a-f]+$/i,Vm=/^0b[01]+$/i,Gm=/^\[object .+?Constructor\]$/,Tm=/^0o[0-7]+$/i,lg=/^(?:0|[1-9]\d*)$/,fg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,zg=/($^)/,Tg=/['\n\r\u2028\u2029\\]/g,Xg="\\ud800-\\udfff",D_="\\u0300-\\u036f",A_="\\ufe20-\\ufe2f",f_="\\u20d0-\\u20ff",Mg=D_+A_+f_,V_="\\u2700-\\u27bf",g_="a-z\\xdf-\\xf6\\xf8-\\xff",s_="\\xac\\xb1\\xd7\\xf7",Hh="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Mm="\\u2000-\\u206f",pg=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Rg="A-Z\\xc0-\\xd6\\xd8-\\xde",og="\\ufe0e\\ufe0f",Fg=s_+Hh+Mm+pg,y_="['’]",Y_="["+Xg+"]",s0="["+Fg+"]",L0="["+Mg+"]",rb="\\d+",u_="["+V_+"]",B0="["+g_+"]",K_="[^"+Xg+Fg+rb+V_+g_+Rg+"]",E0="\\ud83c[\\udffb-\\udfff]",d0="(?:"+L0+"|"+E0+")",nb="[^"+Xg+"]",Pb="(?:\\ud83c[\\udde6-\\uddff]){2}",S0="[\\ud800-\\udbff][\\udc00-\\udfff]",ib="["+Rg+"]",ov="\\u200d",Iy="(?:"+B0+"|"+K_+")",i_="(?:"+ib+"|"+K_+")",Ry="(?:"+y_+"(?:d|ll|m|re|s|t|ve))?",Kb="(?:"+y_+"(?:D|LL|M|RE|S|T|VE))?",lv=d0+"?",Jv="["+og+"]?",Zv="(?:"+ov+"(?:"+[nb,Pb,S0].join("|")+")"+Jv+lv+")*",Xb="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",p0="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",W0=Jv+lv+Zv,_b="(?:"+[u_,Pb,S0].join("|")+")"+W0,Qb="(?:"+[nb+L0+"?",L0,Pb,S0,Y_].join("|")+")",Oy=RegExp(y_,"g"),g1=RegExp(L0,"g"),PE=RegExp(E0+"(?="+E0+")|"+Qb+W0,"g"),_1=RegExp([ib+"?"+B0+"+"+Ry+"(?="+[s0,ib,"$"].join("|")+")",i_+"+"+Kb+"(?="+[s0,ib+Iy,"$"].join("|")+")",ib+"?"+Iy+"+"+Ry,ib+"+"+Kb,p0,Xb,rb,_b].join("|"),"g"),pS=RegExp("["+ov+Xg+Mg+og+"]"),LE=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,b1=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],y1=-1,Lg={};Lg[yg]=Lg[jh]=Lg[Pf]=Lg[$f]=Lg[Nh]=Lg[Wh]=Lg[_m]=Lg[$m]=Lg[Ym]=!0,Lg[xh]=Lg[Eh]=Lg[Wm]=Lg[Rf]=Lg[ig]=Lg[_h]=Lg[sm]=Lg[th]=Lg[Zh]=Lg[Sm]=Lg[Vf]=Lg[Ih]=Lg[om]=Lg[zh]=Lg[Zm]=!1;var q_={};q_[xh]=q_[Eh]=q_[Wm]=q_[ig]=q_[Rf]=q_[_h]=q_[yg]=q_[jh]=q_[Pf]=q_[$f]=q_[Nh]=q_[Zh]=q_[Sm]=q_[Vf]=q_[Ih]=q_[om]=q_[zh]=q_[Om]=q_[Wh]=q_[_m]=q_[$m]=q_[Ym]=!0,q_[sm]=q_[th]=q_[Zm]=!1;var uv={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},eE={"&":"&","<":"<",">":">",'"':""","'":"'"},BE={"&":"&","<":"<",">":">",""":'"',"'":"'"},v1={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},E1=parseFloat,dv=parseInt,S1=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,FE=typeof self=="object"&&self&&self.Object===Object&&self,j_=S1||FE||Function("return this")(),UE=ed&&!ed.nodeType&&ed,Jb=UE&&!0&&Ra&&!Ra.nodeType&&Ra,J_=Jb&&Jb.exports===UE,sb=J_&&S1.process,o0=function(){try{var Jm=Jb&&Jb.require&&Jb.require("util").types;return Jm||sb&&sb.binding&&sb.binding("util")}catch{}}(),hv=o0&&o0.isArrayBuffer,ob=o0&&o0.isDate,$y=o0&&o0.isMap,tE=o0&&o0.isRegExp,yb=o0&&o0.isSet,x1=o0&&o0.isTypedArray;function q0(Jm,hg,ug){switch(ug.length){case 0:return Jm.call(hg);case 1:return Jm.call(hg,ug[0]);case 2:return Jm.call(hg,ug[0],ug[1]);case 3:return Jm.call(hg,ug[0],ug[1],ug[2])}return Jm.apply(hg,ug)}function jE(Jm,hg,ug,t_){for(var b_=-1,k_=Jm==null?0:Jm.length;++b_-1}function nE(Jm,hg,ug){for(var t_=-1,b_=Jm==null?0:Jm.length;++t_-1;);return ug}function x0(Jm,hg){for(var ug=Jm.length;ug--&&hf(hg,Jm[ug],0)>-1;);return ug}function gv(Jm,hg){for(var ug=Jm.length,t_=0;ug--;)Jm[ug]===hg&&++t_;return t_}var iE=Nm(uv),Bb=Nm(eE);function _v(Jm){return"\\"+v1[Jm]}function hS(Jm,hg){return Jm==null?ud:Jm[hg]}function sE(Jm){return pS.test(Jm)}function ex(Jm){return LE.test(Jm)}function lT(Jm){for(var hg,ug=[];!(hg=Jm.next()).done;)ug.push(hg.value);return ug}function w1(Jm){var hg=-1,ug=Array(Jm.size);return Jm.forEach(function(t_,b_){ug[++hg]=[b_,t_]}),ug}function D1(Jm,hg){return function(ug){return Jm(hg(ug))}}function X0(Jm,hg){for(var ug=-1,t_=Jm.length,b_=0,k_=[];++ug-1}function mx(df,Sf){var Mf=this.__data__,Th=fE(Mf,df);return Th<0?(++this.size,Mf.push([df,Sf])):Mf[Th][1]=Sf,this}Ab.prototype.clear=ET,Ab.prototype.delete=AS,Ab.prototype.get=wS,Ab.prototype.has=hx,Ab.prototype.set=mx;function wb(df){var Sf=-1,Mf=df==null?0:df.length;for(this.clear();++Sf=Sf?df:Sf)),df}function J0(df,Sf,Mf,Th,lm,Dm){var zm,Km=Sf&Nd,rg=Sf&Ld,Dg=Sf&Ud;if(Mf&&(zm=lm?Mf(df,Th,lm,Dm):Mf(df)),zm!==ud)return zm;if(!g0(df))return df;var Ng=x_(df);if(Ng){if(zm=FT(df),!Km)return K0(df,zm)}else{var Og=w0(df),Zg=Og==th||Og==oh;if(ME(df))return HS(df,Km);if(Og==Vf||Og==xh||Zg&&!lm){if(zm=rg||Zg?{}:Xx(df),!Km)return rg?$T(df,vx(zm,df)):Ux(df,RS(zm,df))}else{if(!q_[Og])return lm?df:{};zm=eS(df,Og,Km)}}Dm||(Dm=new n0);var o_=Dm.get(df);if(o_)return o_;Dm.set(df,zm),CC(df)?df.forEach(function(m_){zm.add(J0(m_,Sf,Mf,m_,df,Dm))}):xC(df)&&df.forEach(function(m_,I_){zm.set(I_,J0(m_,Sf,Mf,I_,df,Dm))});var h_=Dg?rg?Z1:J1:rg?mb:H0,w_=Ng?ud:h_(df);return Y0(w_||df,function(m_,I_){w_&&(I_=m_,m_=df[I_]),pE(zm,I_,J0(m_,Sf,Mf,I_,df,Dm))}),zm}function CT(df){var Sf=H0(df);return function(Mf){return OS(Mf,df,Sf)}}function OS(df,Sf,Mf){var Th=Mf.length;if(df==null)return!Th;for(df=z_(df);Th--;){var lm=Mf[Th],Dm=Sf[lm],zm=df[lm];if(zm===ud&&!(lm in df)||!Dm(zm))return!1}return!0}function Ex(df,Sf,Mf){if(typeof df!="function")throw new ub(gd);return a_(function(){df.apply(ud,Mf)},Sf)}function QE(df,Sf,Mf,Th){var lm=-1,Dm=rE,zm=!0,Km=df.length,rg=[],Dg=Sf.length;if(!Km)return rg;Mf&&(Sf=X_(Sf,__(Mf))),Th?(Dm=nE,zm=!1):Sf.length>=hd&&(Dm=N_,zm=!1,Sf=new Fy(Sf));e:for(;++lmlm?0:lm+Mf),Th=Th===ud||Th>lm?lm:C_(Th),Th<0&&(Th+=lm),Th=Mf>Th?0:wC(Th);Mf0&&Mf(Km)?Sf>1?C0(Km,Sf-1,Mf,Th,lm):vb(lm,Km):Th||(lm[lm.length]=Km)}return lm}var mE=jx(),$S=jx(!0);function pb(df,Sf){return df&&mE(df,Sf,H0)}function U1(df,Sf){return df&&$S(df,Sf,H0)}function j1(df,Sf){return Lb(Sf,function(Mf){return Yv(df[Mf])})}function zy(df,Sf){Sf=ev(Sf,df);for(var Mf=0,Th=Sf.length;df!=null&&MfSf}function xx(df,Sf){return df!=null&&U_.call(df,Sf)}function Tx(df,Sf){return df!=null&&Sf in z_(df)}function gE(df,Sf,Mf){return df>=b0(Sf,Mf)&&df=120&&Ng.length>=120)?new Fy(zm&&Ng):ud}Ng=df[0];var Og=-1,Zg=Km[0];e:for(;++Og-1;)Km!==df&&Sv.call(Km,rg,1),Sv.call(df,rg,1);return df}function F0(df,Sf){for(var Mf=df?Sf.length:0,Th=Mf-1;Mf--;){var lm=Sf[Mf];if(Mf==Th||lm!==Dm){var Dm=lm;Ef(lm)?Sv.call(df,lm,1):G1(df,lm)}}return df}function q1(df,Sf){return df+Cv(TS()*(Sf-df+1))}function DT(df,Sf,Mf,Th){for(var lm=-1,Dm=e0(VE((Sf-df)/(Mf||1)),0),zm=ug(Dm);Dm--;)zm[Th?Dm:++lm]=df,df+=Mf;return zm}function US(df,Sf){var Mf="";if(!df||Sf<1||Sf>sh)return Mf;do Sf%2&&(Mf+=df),Sf=Cv(Sf/2),Sf&&(df+=df);while(Sf);return Mf}function T_(df,Sf){return n_($g(df,Sf,gb),df+"")}function Mx(df){return DS(rS(df))}function Px(df,Sf){var Mf=rS(df);return u0(Mf,Ty(Sf,0,Mf.length))}function AE(df,Sf,Mf,Th){if(!g0(df))return df;Sf=ev(Sf,df);for(var lm=-1,Dm=Sf.length,zm=Dm-1,Km=df;Km!=null&&++lmlm?0:lm+Sf),Mf=Mf>lm?lm:Mf,Mf<0&&(Mf+=lm),lm=Sf>Mf?0:Mf-Sf>>>0,Sf>>>=0;for(var Dm=ug(lm);++Th>>1,zm=df[Dm];zm!==null&&!kb(zm)&&(Mf?zm<=Sf:zm=hd){var Dg=Sf?null:PT(df);if(Dg)return Q0(Dg);zm=!1,lm=N_,rg=new Fy}else rg=Sf?[]:Km;e:for(;++Th=Th?df:A0(df,Sf,Mf)}var Fx=vS||function(df){return j_.clearTimeout(df)};function HS(df,Sf){if(Sf)return df.slice();var Mf=df.length,Th=_S?_S(Mf):new df.constructor(Mf);return df.copy(Th),Th}function wE(df){var Sf=new df.constructor(df.byteLength);return new R1(Sf).set(new R1(df)),Sf}function RT(df,Sf){var Mf=Sf?wE(df.buffer):df.buffer;return new df.constructor(Mf,df.byteOffset,df.byteLength)}function OT(df){var Sf=new df.constructor(df.source,Fm.exec(df));return Sf.lastIndex=df.lastIndex,Sf}function s1(df){return YE?z_(YE.call(df)):{}}function qS(df,Sf){var Mf=Sf?wE(df.buffer):df.buffer;return new df.constructor(Mf,df.byteOffset,df.length)}function GS(df,Sf){if(df!==Sf){var Mf=df!==ud,Th=df===null,lm=df===df,Dm=kb(df),zm=Sf!==ud,Km=Sf===null,rg=Sf===Sf,Dg=kb(Sf);if(!Km&&!Dg&&!Dm&&df>Sf||Dm&&zm&&rg&&!Km&&!Dg||Th&&zm&&rg||!Mf&&rg||!lm)return 1;if(!Th&&!Dm&&!Dg&&df=Km)return rg;var Dg=Mf[Th];return rg*(Dg=="desc"?-1:1)}}return df.index-Sf.index}function z1(df,Sf,Mf,Th){for(var lm=-1,Dm=df.length,zm=Mf.length,Km=-1,rg=Sf.length,Dg=e0(Dm-zm,0),Ng=ug(rg+Dg),Og=!Th;++Km1?Mf[lm-1]:ud,zm=lm>2?Mf[2]:ud;for(Dm=df.length>3&&typeof Dm=="function"?(lm--,Dm):ud,zm&&yf(Mf[0],Mf[1],zm)&&(Dm=lm<3?ud:Dm,lm=1),Sf=z_(Sf);++Th-1?lm[Dm?Sf[zm]:zm]:ud}}function Gx(df){return Gb(function(Sf){var Mf=Sf.length,Th=Mf,lm=H_.prototype.thru;for(df&&Sf.reverse();Th--;){var Dm=Sf[Th];if(typeof Dm!="function")throw new ub(gd);if(lm&&!zm&&p1(Dm)=="wrapper")var zm=new H_([],!0)}for(Th=zm?Th:Mf;++Th1&&M_.reverse(),Ng&&rgKm))return!1;var Dg=Dm.get(df),Ng=Dm.get(Sf);if(Dg&&Ng)return Dg==Sf&&Ng==df;var Og=-1,Zg=!0,o_=Mf&Gd?new Fy:ud;for(Dm.set(df,Sf),Dm.set(Sf,df);++Og1?"& ":"")+Sf[Th],Sf=Sf.join(Mf>2?", ":" "),df.replace($0,`{ + */lodash.exports;(function(Ra,ed){(function(){var ud,dd="4.17.21",hd=200,md="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",gd="Expected a function",yd="Invalid `variable` option passed into `_.template`",vd="__lodash_hash_undefined__",Cd=500,wd="__lodash_placeholder__",Nd=1,Ld=2,Ud=4,jd=1,Gd=2,Yd=1,zd=2,qd=4,Wd=8,Xd=16,Jd=32,Zd=64,mf=128,xf=256,_f=512,vf=30,gf="...",Af=800,Df=16,kf=1,Cf=2,If=3,Ff=1/0,oh=9007199254740991,Eh=17976931348623157e292,_h=NaN,Mh=4294967295,lh=Mh-1,rh=Mh>>>1,mh=[["ary",mf],["bind",Yd],["bindKey",zd],["curry",Wd],["curryRight",Xd],["flip",_f],["partial",Jd],["partialRight",Zd],["rearg",xf]],xh="[object Arguments]",Sh="[object Array]",Of="[object AsyncFunction]",Rf="[object Boolean]",yh="[object Date]",Ph="[object DOMException]",sm="[object Error]",th="[object Function]",sh="[object GeneratorFunction]",Zh="[object Map]",Sm="[object Number]",$h="[object Null]",Vf="[object Object]",nh="[object Promise]",Lh="[object Proxy]",Ih="[object RegExp]",om="[object Set]",zh="[object String]",Mm="[object Symbol]",Nm="[object Undefined]",Zm="[object WeakMap]",Ym="[object WeakSet]",jm="[object ArrayBuffer]",rg="[object DataView]",pg="[object Float32Array]",jh="[object Float64Array]",Pf="[object Int8Array]",$f="[object Int16Array]",Nh="[object Int32Array]",Wh="[object Uint8Array]",_m="[object Uint8ClampedArray]",Om="[object Uint16Array]",Wm="[object Uint32Array]",Ag=/\b__p \+= '';/g,sg=/\b(__p \+=) '' \+/g,yg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,vg=/&(?:amp|lt|gt|quot|#39);/g,kg=/[&<>"']/g,Kg=RegExp(vg.source),p_=RegExp(kg.source),l_=/<%-([\s\S]+?)%>/g,v_=/<%([\s\S]+?)%>/g,r_=/<%=([\s\S]+?)%>/g,O_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,S_=/^\w*$/,Q_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,t0=/[\\^$.*+?()[\]{}|]/g,R_=RegExp(t0.source),P_=/^\s+/,Pg=/\s/,$0=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,z0=/\{\n\/\* \[wrapped with (.+)\] \*/,c0=/,? & /,ih=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,mm=/[()=,{}\[\]\/\s]/,Qh=/\\(\\)?/g,hm=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Lm=/\w*$/,Pm=/^[-+]0x[0-9a-f]+$/i,Vm=/^0b[01]+$/i,Gm=/^\[object .+?Constructor\]$/,Tm=/^0o[0-7]+$/i,lg=/^(?:0|[1-9]\d*)$/,hg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,zg=/($^)/,Tg=/['\n\r\u2028\u2029\\]/g,Xg="\\ud800-\\udfff",D_="\\u0300-\\u036f",A_="\\ufe20-\\ufe2f",f_="\\u20d0-\\u20ff",Mg=D_+A_+f_,V_="\\u2700-\\u27bf",g_="a-z\\xdf-\\xf6\\xf8-\\xff",s_="\\xac\\xb1\\xd7\\xf7",Hh="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",$m="\\u2000-\\u206f",fg=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Rg="A-Z\\xc0-\\xd6\\xd8-\\xde",og="\\ufe0e\\ufe0f",Fg=s_+Hh+$m+fg,y_="['’]",Y_="["+Xg+"]",s0="["+Fg+"]",L0="["+Mg+"]",rb="\\d+",u_="["+V_+"]",B0="["+g_+"]",K_="[^"+Xg+Fg+rb+V_+g_+Rg+"]",E0="\\ud83c[\\udffb-\\udfff]",d0="(?:"+L0+"|"+E0+")",nb="[^"+Xg+"]",Pb="(?:\\ud83c[\\udde6-\\uddff]){2}",S0="[\\ud800-\\udbff][\\udc00-\\udfff]",ib="["+Rg+"]",ov="\\u200d",Iy="(?:"+B0+"|"+K_+")",i_="(?:"+ib+"|"+K_+")",Ry="(?:"+y_+"(?:d|ll|m|re|s|t|ve))?",Kb="(?:"+y_+"(?:D|LL|M|RE|S|T|VE))?",lv=d0+"?",Jv="["+og+"]?",Zv="(?:"+ov+"(?:"+[nb,Pb,S0].join("|")+")"+Jv+lv+")*",Xb="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",p0="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",W0=Jv+lv+Zv,_b="(?:"+[u_,Pb,S0].join("|")+")"+W0,Qb="(?:"+[nb+L0+"?",L0,Pb,S0,Y_].join("|")+")",Oy=RegExp(y_,"g"),g1=RegExp(L0,"g"),PE=RegExp(E0+"(?="+E0+")|"+Qb+W0,"g"),_1=RegExp([ib+"?"+B0+"+"+Ry+"(?="+[s0,ib,"$"].join("|")+")",i_+"+"+Kb+"(?="+[s0,ib+Iy,"$"].join("|")+")",ib+"?"+Iy+"+"+Ry,ib+"+"+Kb,p0,Xb,rb,_b].join("|"),"g"),pS=RegExp("["+ov+Xg+Mg+og+"]"),LE=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,b1=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],y1=-1,Lg={};Lg[pg]=Lg[jh]=Lg[Pf]=Lg[$f]=Lg[Nh]=Lg[Wh]=Lg[_m]=Lg[Om]=Lg[Wm]=!0,Lg[xh]=Lg[Sh]=Lg[jm]=Lg[Rf]=Lg[rg]=Lg[yh]=Lg[sm]=Lg[th]=Lg[Zh]=Lg[Sm]=Lg[Vf]=Lg[Ih]=Lg[om]=Lg[zh]=Lg[Zm]=!1;var q_={};q_[xh]=q_[Sh]=q_[jm]=q_[rg]=q_[Rf]=q_[yh]=q_[pg]=q_[jh]=q_[Pf]=q_[$f]=q_[Nh]=q_[Zh]=q_[Sm]=q_[Vf]=q_[Ih]=q_[om]=q_[zh]=q_[Mm]=q_[Wh]=q_[_m]=q_[Om]=q_[Wm]=!0,q_[sm]=q_[th]=q_[Zm]=!1;var uv={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},eE={"&":"&","<":"<",">":">",'"':""","'":"'"},BE={"&":"&","<":"<",">":">",""":'"',"'":"'"},v1={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},E1=parseFloat,dv=parseInt,S1=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,FE=typeof self=="object"&&self&&self.Object===Object&&self,j_=S1||FE||Function("return this")(),UE=ed&&!ed.nodeType&&ed,Jb=UE&&!0&&Ra&&!Ra.nodeType&&Ra,J_=Jb&&Jb.exports===UE,sb=J_&&S1.process,o0=function(){try{var Jm=Jb&&Jb.require&&Jb.require("util").types;return Jm||sb&&sb.binding&&sb.binding("util")}catch{}}(),hv=o0&&o0.isArrayBuffer,ob=o0&&o0.isDate,$y=o0&&o0.isMap,tE=o0&&o0.isRegExp,yb=o0&&o0.isSet,x1=o0&&o0.isTypedArray;function q0(Jm,mg,ug){switch(ug.length){case 0:return Jm.call(mg);case 1:return Jm.call(mg,ug[0]);case 2:return Jm.call(mg,ug[0],ug[1]);case 3:return Jm.call(mg,ug[0],ug[1],ug[2])}return Jm.apply(mg,ug)}function jE(Jm,mg,ug,t_){for(var b_=-1,k_=Jm==null?0:Jm.length;++b_-1}function nE(Jm,mg,ug){for(var t_=-1,b_=Jm==null?0:Jm.length;++t_-1;);return ug}function x0(Jm,mg){for(var ug=Jm.length;ug--&&hf(mg,Jm[ug],0)>-1;);return ug}function gv(Jm,mg){for(var ug=Jm.length,t_=0;ug--;)Jm[ug]===mg&&++t_;return t_}var iE=Im(uv),Bb=Im(eE);function _v(Jm){return"\\"+v1[Jm]}function hS(Jm,mg){return Jm==null?ud:Jm[mg]}function sE(Jm){return pS.test(Jm)}function ex(Jm){return LE.test(Jm)}function lT(Jm){for(var mg,ug=[];!(mg=Jm.next()).done;)ug.push(mg.value);return ug}function w1(Jm){var mg=-1,ug=Array(Jm.size);return Jm.forEach(function(t_,b_){ug[++mg]=[b_,t_]}),ug}function D1(Jm,mg){return function(ug){return Jm(mg(ug))}}function X0(Jm,mg){for(var ug=-1,t_=Jm.length,b_=0,k_=[];++ug-1}function mx(df,Sf){var Mf=this.__data__,Th=fE(Mf,df);return Th<0?(++this.size,Mf.push([df,Sf])):Mf[Th][1]=Sf,this}Ab.prototype.clear=ET,Ab.prototype.delete=AS,Ab.prototype.get=wS,Ab.prototype.has=hx,Ab.prototype.set=mx;function wb(df){var Sf=-1,Mf=df==null?0:df.length;for(this.clear();++Sf=Sf?df:Sf)),df}function J0(df,Sf,Mf,Th,lm,Dm){var zm,Km=Sf&Nd,ig=Sf&Ld,Dg=Sf&Ud;if(Mf&&(zm=lm?Mf(df,Th,lm,Dm):Mf(df)),zm!==ud)return zm;if(!g0(df))return df;var Ng=x_(df);if(Ng){if(zm=FT(df),!Km)return K0(df,zm)}else{var Og=w0(df),Zg=Og==th||Og==sh;if(ME(df))return HS(df,Km);if(Og==Vf||Og==xh||Zg&&!lm){if(zm=ig||Zg?{}:Xx(df),!Km)return ig?$T(df,vx(zm,df)):Ux(df,RS(zm,df))}else{if(!q_[Og])return lm?df:{};zm=eS(df,Og,Km)}}Dm||(Dm=new n0);var o_=Dm.get(df);if(o_)return o_;Dm.set(df,zm),CC(df)?df.forEach(function(m_){zm.add(J0(m_,Sf,Mf,m_,df,Dm))}):xC(df)&&df.forEach(function(m_,I_){zm.set(I_,J0(m_,Sf,Mf,I_,df,Dm))});var h_=Dg?ig?Z1:J1:ig?mb:H0,w_=Ng?ud:h_(df);return Y0(w_||df,function(m_,I_){w_&&(I_=m_,m_=df[I_]),pE(zm,I_,J0(m_,Sf,Mf,I_,df,Dm))}),zm}function CT(df){var Sf=H0(df);return function(Mf){return OS(Mf,df,Sf)}}function OS(df,Sf,Mf){var Th=Mf.length;if(df==null)return!Th;for(df=z_(df);Th--;){var lm=Mf[Th],Dm=Sf[lm],zm=df[lm];if(zm===ud&&!(lm in df)||!Dm(zm))return!1}return!0}function Ex(df,Sf,Mf){if(typeof df!="function")throw new ub(gd);return a_(function(){df.apply(ud,Mf)},Sf)}function QE(df,Sf,Mf,Th){var lm=-1,Dm=rE,zm=!0,Km=df.length,ig=[],Dg=Sf.length;if(!Km)return ig;Mf&&(Sf=X_(Sf,__(Mf))),Th?(Dm=nE,zm=!1):Sf.length>=hd&&(Dm=N_,zm=!1,Sf=new Fy(Sf));e:for(;++lmlm?0:lm+Mf),Th=Th===ud||Th>lm?lm:C_(Th),Th<0&&(Th+=lm),Th=Mf>Th?0:wC(Th);Mf0&&Mf(Km)?Sf>1?C0(Km,Sf-1,Mf,Th,lm):vb(lm,Km):Th||(lm[lm.length]=Km)}return lm}var mE=jx(),$S=jx(!0);function pb(df,Sf){return df&&mE(df,Sf,H0)}function U1(df,Sf){return df&&$S(df,Sf,H0)}function j1(df,Sf){return Lb(Sf,function(Mf){return Yv(df[Mf])})}function zy(df,Sf){Sf=ev(Sf,df);for(var Mf=0,Th=Sf.length;df!=null&&MfSf}function xx(df,Sf){return df!=null&&U_.call(df,Sf)}function Tx(df,Sf){return df!=null&&Sf in z_(df)}function gE(df,Sf,Mf){return df>=b0(Sf,Mf)&&df=120&&Ng.length>=120)?new Fy(zm&&Ng):ud}Ng=df[0];var Og=-1,Zg=Km[0];e:for(;++Og-1;)Km!==df&&Sv.call(Km,ig,1),Sv.call(df,ig,1);return df}function F0(df,Sf){for(var Mf=df?Sf.length:0,Th=Mf-1;Mf--;){var lm=Sf[Mf];if(Mf==Th||lm!==Dm){var Dm=lm;Ef(lm)?Sv.call(df,lm,1):G1(df,lm)}}return df}function q1(df,Sf){return df+Cv(TS()*(Sf-df+1))}function DT(df,Sf,Mf,Th){for(var lm=-1,Dm=e0(VE((Sf-df)/(Mf||1)),0),zm=ug(Dm);Dm--;)zm[Th?Dm:++lm]=df,df+=Mf;return zm}function US(df,Sf){var Mf="";if(!df||Sf<1||Sf>oh)return Mf;do Sf%2&&(Mf+=df),Sf=Cv(Sf/2),Sf&&(df+=df);while(Sf);return Mf}function T_(df,Sf){return n_($g(df,Sf,gb),df+"")}function Mx(df){return DS(rS(df))}function Px(df,Sf){var Mf=rS(df);return u0(Mf,Ty(Sf,0,Mf.length))}function AE(df,Sf,Mf,Th){if(!g0(df))return df;Sf=ev(Sf,df);for(var lm=-1,Dm=Sf.length,zm=Dm-1,Km=df;Km!=null&&++lmlm?0:lm+Sf),Mf=Mf>lm?lm:Mf,Mf<0&&(Mf+=lm),lm=Sf>Mf?0:Mf-Sf>>>0,Sf>>>=0;for(var Dm=ug(lm);++Th>>1,zm=df[Dm];zm!==null&&!kb(zm)&&(Mf?zm<=Sf:zm=hd){var Dg=Sf?null:PT(df);if(Dg)return Q0(Dg);zm=!1,lm=N_,ig=new Fy}else ig=Sf?[]:Km;e:for(;++Th=Th?df:A0(df,Sf,Mf)}var Fx=vS||function(df){return j_.clearTimeout(df)};function HS(df,Sf){if(Sf)return df.slice();var Mf=df.length,Th=_S?_S(Mf):new df.constructor(Mf);return df.copy(Th),Th}function wE(df){var Sf=new df.constructor(df.byteLength);return new R1(Sf).set(new R1(df)),Sf}function RT(df,Sf){var Mf=Sf?wE(df.buffer):df.buffer;return new df.constructor(Mf,df.byteOffset,df.byteLength)}function OT(df){var Sf=new df.constructor(df.source,Lm.exec(df));return Sf.lastIndex=df.lastIndex,Sf}function s1(df){return YE?z_(YE.call(df)):{}}function qS(df,Sf){var Mf=Sf?wE(df.buffer):df.buffer;return new df.constructor(Mf,df.byteOffset,df.length)}function GS(df,Sf){if(df!==Sf){var Mf=df!==ud,Th=df===null,lm=df===df,Dm=kb(df),zm=Sf!==ud,Km=Sf===null,ig=Sf===Sf,Dg=kb(Sf);if(!Km&&!Dg&&!Dm&&df>Sf||Dm&&zm&&ig&&!Km&&!Dg||Th&&zm&&ig||!Mf&&ig||!lm)return 1;if(!Th&&!Dm&&!Dg&&df=Km)return ig;var Dg=Mf[Th];return ig*(Dg=="desc"?-1:1)}}return df.index-Sf.index}function z1(df,Sf,Mf,Th){for(var lm=-1,Dm=df.length,zm=Mf.length,Km=-1,ig=Sf.length,Dg=e0(Dm-zm,0),Ng=ug(ig+Dg),Og=!Th;++Km1?Mf[lm-1]:ud,zm=lm>2?Mf[2]:ud;for(Dm=df.length>3&&typeof Dm=="function"?(lm--,Dm):ud,zm&&yf(Mf[0],Mf[1],zm)&&(Dm=lm<3?ud:Dm,lm=1),Sf=z_(Sf);++Th-1?lm[Dm?Sf[zm]:zm]:ud}}function Gx(df){return Gb(function(Sf){var Mf=Sf.length,Th=Mf,lm=H_.prototype.thru;for(df&&Sf.reverse();Th--;){var Dm=Sf[Th];if(typeof Dm!="function")throw new ub(gd);if(lm&&!zm&&p1(Dm)=="wrapper")var zm=new H_([],!0)}for(Th=zm?Th:Mf;++Th1&&M_.reverse(),Ng&&igKm))return!1;var Dg=Dm.get(df),Ng=Dm.get(Sf);if(Dg&&Ng)return Dg==Sf&&Ng==df;var Og=-1,Zg=!0,o_=Mf&Gd?new Fy:ud;for(Dm.set(df,Sf),Dm.set(Sf,df);++Og1?"& ":"")+Sf[Th],Sf=Sf.join(Mf>2?", ":" "),df.replace($0,`{ /* [wrapped with `+Sf+`] */ -`)}function Qd(df){return x_(df)||h1(df)||!!(lx&&df&&df[lx])}function Ef(df,Sf){var Mf=typeof df;return Sf=Sf??sh,!!Sf&&(Mf=="number"||Mf!="symbol"&&lg.test(df))&&df>-1&&df%1==0&&df0){if(++Sf>=Af)return arguments[0]}else Sf=0;return df.apply(ud,arguments)}}function u0(df,Sf){var Mf=-1,Th=df.length,lm=Th-1;for(Sf=Sf===ud?Th:Sf;++Mf1?df[Sf-1]:ud;return Mf=typeof Mf=="function"?(df.pop(),Mf):ud,lC(df,Mf)});function uC(df){var Sf=gm(df);return Sf.__chain__=!0,Sf}function FA(df,Sf){return Sf(df),df}function Qx(df,Sf){return Sf(df)}var UA=Gb(function(df){var Sf=df.length,Mf=Sf?df[0]:0,Th=this.__wrapped__,lm=function(Dm){return hE(Dm,df)};return Sf>1||this.__actions__.length||!(Th instanceof d_)||!Ef(Mf)?this.thru(lm):(Th=Th.slice(Mf,+Mf+(Sf?1:0)),Th.__actions__.push({func:Qx,args:[lm],thisArg:ud}),new H_(Th,this.__chain__).thru(function(Dm){return Sf&&!Dm.length&&Dm.push(ud),Dm}))});function jA(){return uC(this)}function HA(){return new H_(this.value(),this.__chain__)}function qA(){this.__values__===ud&&(this.__values__=AC(this.value()));var df=this.__index__>=this.__values__.length,Sf=df?ud:this.__values__[this.__index__++];return{done:df,value:Sf}}function GA(){return this}function VA(df){for(var Sf,Mf=this;Mf instanceof M0;){var Th=U0(Mf);Th.__index__=0,Th.__values__=ud,Sf?lm.__wrapped__=Th:Sf=Th;var lm=Th;Mf=Mf.__wrapped__}return lm.__wrapped__=df,Sf}function zA(){var df=this.__wrapped__;if(df instanceof d_){var Sf=df;return this.__actions__.length&&(Sf=new d_(this)),Sf=Sf.reverse(),Sf.__actions__.push({func:Qx,args:[UT],thisArg:ud}),new H_(Sf,this.__chain__)}return this.thru(UT)}function WA(){return r1(this.__wrapped__,this.__actions__)}var YA=DE(function(df,Sf,Mf){U_.call(df,Mf)?++df[Mf]:Sy(df,Mf,1)});function KA(df,Sf,Mf){var Th=x_(df)?mv:AT;return Mf&&yf(df,Sf,Mf)&&(Sf=ud),Th(df,c_(Sf,3))}function XA(df,Sf){var Mf=x_(df)?Lb:Lv;return Mf(df,c_(Sf,3))}var QA=zS(zb),JA=zS(iv);function ZA(df,Sf){return C0(Jx(df,Sf),1)}function ew(df,Sf){return C0(Jx(df,Sf),Ff)}function tw(df,Sf,Mf){return Mf=Mf===ud?1:C_(Mf),C0(Jx(df,Sf),Mf)}function cC(df,Sf){var Mf=x_(df)?Y0:Nb;return Mf(df,c_(Sf,3))}function dC(df,Sf){var Mf=x_(df)?T1:kS;return Mf(df,c_(Sf,3))}var rw=DE(function(df,Sf,Mf){U_.call(df,Mf)?df[Mf].push(Sf):Sy(df,Mf,[Sf])});function nw(df,Sf,Mf,Th){df=hb(df)?df:rS(df),Mf=Mf&&!Th?C_(Mf):0;var lm=df.length;return Mf<0&&(Mf=e0(lm+Mf,0)),nT(df)?Mf<=lm&&df.indexOf(Sf,Mf)>-1:!!lm&&hf(df,Sf,Mf)>-1}var iw=T_(function(df,Sf,Mf){var Th=-1,lm=typeof Sf=="function",Dm=hb(df)?ug(df.length):[];return Nb(df,function(zm){Dm[++Th]=lm?q0(Sf,zm,Mf):vE(zm,Sf,Mf)}),Dm}),sw=DE(function(df,Sf,Mf){Sy(df,Mf,Sf)});function Jx(df,Sf){var Mf=x_(df)?X_:LS;return Mf(df,c_(Sf,3))}function ow(df,Sf,Mf,Th){return df==null?[]:(x_(Sf)||(Sf=Sf==null?[]:[Sf]),Mf=Th?ud:Mf,x_(Mf)||(Mf=Mf==null?[]:[Mf]),Ox(df,Sf,Mf))}var lw=DE(function(df,Sf,Mf){df[Mf?0:1].push(Sf)},function(){return[[],[]]});function uw(df,Sf,Mf){var Th=x_(df)?HE:Hm,lm=arguments.length<3;return Th(df,c_(Sf,4),Mf,lm,Nb)}function dw(df,Sf,Mf){var Th=x_(df)?C1:Hm,lm=arguments.length<3;return Th(df,c_(Sf,4),Mf,lm,kS)}function pw(df,Sf){var Mf=x_(df)?Lb:Lv;return Mf(df,tT(c_(Sf,3)))}function fw(df){var Sf=x_(df)?DS:Mx;return Sf(df)}function hw(df,Sf,Mf){(Mf?yf(df,Sf,Mf):Sf===ud)?Sf=1:Sf=C_(Sf);var Th=x_(df)?TT:Px;return Th(df,Sf)}function mw(df){var Sf=x_(df)?IS:IT;return Sf(df)}function gw(df){if(df==null)return 0;if(hb(df))return nT(df)?oE(df):df.length;var Sf=w0(df);return Sf==Zh||Sf==om?df.size:Uv(df).length}function _w(df,Sf,Mf){var Th=x_(df)?My:e1;return Mf&&yf(df,Sf,Mf)&&(Sf=ud),Th(df,c_(Sf,3))}var yw=T_(function(df,Sf){if(df==null)return[];var Mf=Sf.length;return Mf>1&&yf(df,Sf[0],Sf[1])?Sf=[]:Mf>2&&yf(Sf[0],Sf[1],Sf[2])&&(Sf=[Sf[0]]),Ox(df,C0(Sf,1),[])}),Zx=cE||function(){return j_.Date.now()};function vw(df,Sf){if(typeof Sf!="function")throw new ub(gd);return df=C_(df),function(){if(--df<1)return Sf.apply(this,arguments)}}function pC(df,Sf,Mf){return Sf=Mf?ud:Sf,Sf=df&&Sf==null?df.length:Sf,$_(df,mf,ud,ud,ud,ud,Sf)}function hC(df,Sf){var Mf;if(typeof Sf!="function")throw new ub(gd);return df=C_(df),function(){return--df>0&&(Mf=Sf.apply(this,arguments)),df<=1&&(Sf=ud),Mf}}var HT=T_(function(df,Sf,Mf){var Th=Yd;if(Mf.length){var lm=X0(Mf,OE(HT));Th|=Jd}return $_(df,Th,Sf,Mf,lm)}),mC=T_(function(df,Sf,Mf){var Th=Yd|zd;if(Mf.length){var lm=X0(Mf,OE(mC));Th|=Jd}return $_(Sf,Th,df,Mf,lm)});function gC(df,Sf,Mf){Sf=Mf?ud:Sf;var Th=$_(df,Wd,ud,ud,ud,ud,ud,Sf);return Th.placeholder=gC.placeholder,Th}function yC(df,Sf,Mf){Sf=Mf?ud:Sf;var Th=$_(df,Xd,ud,ud,ud,ud,ud,Sf);return Th.placeholder=yC.placeholder,Th}function vC(df,Sf,Mf){var Th,lm,Dm,zm,Km,rg,Dg=0,Ng=!1,Og=!1,Zg=!0;if(typeof df!="function")throw new ub(gd);Sf=Yb(Sf)||0,g0(Mf)&&(Ng=!!Mf.leading,Og="maxWait"in Mf,Dm=Og?e0(Yb(Mf.maxWait)||0,Sf):Dm,Zg="trailing"in Mf?!!Mf.trailing:Zg);function o_(I0){var Ny=Th,Xv=lm;return Th=lm=ud,Dg=I0,zm=df.apply(Xv,Ny),zm}function h_(I0){return Dg=I0,Km=a_(I_,Sf),Ng?o_(I0):zm}function w_(I0){var Ny=I0-rg,Xv=I0-Dg,FC=Sf-Ny;return Og?b0(FC,Dm-Xv):FC}function m_(I0){var Ny=I0-rg,Xv=I0-Dg;return rg===ud||Ny>=Sf||Ny<0||Og&&Xv>=Dm}function I_(){var I0=Zx();if(m_(I0))return M_(I0);Km=a_(I_,w_(I0))}function M_(I0){return Km=ud,Zg&&Th?o_(I0):(Th=lm=ud,zm)}function $b(){Km!==ud&&Fx(Km),Dg=0,Th=rg=lm=Km=ud}function tb(){return Km===ud?zm:M_(Zx())}function Mb(){var I0=Zx(),Ny=m_(I0);if(Th=arguments,lm=this,rg=I0,Ny){if(Km===ud)return h_(rg);if(Og)return Fx(Km),Km=a_(I_,Sf),o_(rg)}return Km===ud&&(Km=a_(I_,Sf)),zm}return Mb.cancel=$b,Mb.flush=tb,Mb}var Ew=T_(function(df,Sf){return Ex(df,1,Sf)}),Sw=T_(function(df,Sf,Mf){return Ex(df,Yb(Sf)||0,Mf)});function xw(df){return $_(df,_f)}function eT(df,Sf){if(typeof df!="function"||Sf!=null&&typeof Sf!="function")throw new ub(gd);var Mf=function(){var Th=arguments,lm=Sf?Sf.apply(this,Th):Th[0],Dm=Mf.cache;if(Dm.has(lm))return Dm.get(lm);var zm=df.apply(this,Th);return Mf.cache=Dm.set(lm,zm)||Dm,zm};return Mf.cache=new(eT.Cache||wb),Mf}eT.Cache=wb;function tT(df){if(typeof df!="function")throw new ub(gd);return function(){var Sf=arguments;switch(Sf.length){case 0:return!df.call(this);case 1:return!df.call(this,Sf[0]);case 2:return!df.call(this,Sf[0],Sf[1]);case 3:return!df.call(this,Sf[0],Sf[1],Sf[2])}return!df.apply(this,Sf)}}function Tw(df){return hC(2,df)}var Cw=a1(function(df,Sf){Sf=Sf.length==1&&x_(Sf[0])?X_(Sf[0],__(c_())):X_(C0(Sf,1),__(c_()));var Mf=Sf.length;return T_(function(Th){for(var lm=-1,Dm=b0(Th.length,Mf);++lm=Sf}),h1=MS(function(){return arguments}())?MS:function(df){return v0(df)&&U_.call(df,"callee")&&!O1.call(df,"callee")},x_=ug.isArray,Uw=hv?__(hv):SE;function hb(df){return df!=null&&rT(df.length)&&!Yv(df)}function N0(df){return v0(df)&&hb(df)}function jw(df){return df===!0||df===!1||v0(df)&&O0(df)==Rf}var ME=dT||eC,Hw=ob?__(ob):Ax;function qw(df){return v0(df)&&df.nodeType===1&&!JS(df)}function Gw(df){if(df==null)return!0;if(hb(df)&&(x_(df)||typeof df=="string"||typeof df.splice=="function"||ME(df)||tS(df)||h1(df)))return!df.length;var Sf=w0(df);if(Sf==Zh||Sf==om)return!df.size;if(Kh(df))return!Uv(df).length;for(var Mf in df)if(U_.call(df,Mf))return!1;return!0}function Vw(df,Sf){return Xy(df,Sf)}function zw(df,Sf,Mf){Mf=typeof Mf=="function"?Mf:ud;var Th=Mf?Mf(df,Sf):ud;return Th===ud?Xy(df,Sf,ud,Mf):!!Th}function GT(df){if(!v0(df))return!1;var Sf=O0(df);return Sf==sm||Sf==Ph||typeof df.message=="string"&&typeof df.name=="string"&&!JS(df)}function Ww(df){return typeof df=="number"&&ux(df)}function Yv(df){if(!g0(df))return!1;var Sf=O0(df);return Sf==th||Sf==oh||Sf==kf||Sf==Lh}function SC(df){return typeof df=="number"&&df==C_(df)}function rT(df){return typeof df=="number"&&df>-1&&df%1==0&&df<=sh}function g0(df){var Sf=typeof df;return df!=null&&(Sf=="object"||Sf=="function")}function v0(df){return df!=null&&typeof df=="object"}var xC=$y?__($y):JE;function Yw(df,Sf){return df===Sf||PS(df,Sf,F_(Sf))}function Kw(df,Sf,Mf){return Mf=typeof Mf=="function"?Mf:ud,PS(df,Sf,F_(Sf),Mf)}function Xw(df){return TC(df)&&df!=+df}function Qw(df){if(Fh(df))throw new b_(md);return Bv(df)}function Jw(df){return df===null}function Zw(df){return df==null}function TC(df){return typeof df=="number"||v0(df)&&O0(df)==Sm}function JS(df){if(!v0(df)||O0(df)!=Vf)return!1;var Sf=Ly(df);if(Sf===null)return!0;var Mf=U_.call(Sf,"constructor")&&Sf.constructor;return typeof Mf=="function"&&Mf instanceof Mf&&lE.call(Mf)==Ev}var VT=tE?__(tE):Dx;function eD(df){return SC(df)&&df>=-9007199254740991&&df<=sh}var CC=yb?__(yb):Nx;function nT(df){return typeof df=="string"||!x_(df)&&v0(df)&&O0(df)==zh}function kb(df){return typeof df=="symbol"||v0(df)&&O0(df)==Om}var tS=x1?__(x1):Ix;function tD(df){return df===ud}function rD(df){return v0(df)&&w0(df)==Zm}function nD(df){return v0(df)&&O0(df)==Lm}var iD=l1(Hv),sD=l1(function(df,Sf){return df<=Sf});function AC(df){if(!df)return[];if(hb(df))return nT(df)?Eb(df):K0(df);if(xv&&df[xv])return lT(df[xv]());var Sf=w0(df),Mf=Sf==Zh?w1:Sf==om?Q0:rS;return Mf(df)}function Kv(df){if(!df)return df===0?df:0;if(df=Yb(df),df===Ff||df===-1/0){var Sf=df<0?-1:1;return Sf*Sh}return df===df?df:0}function C_(df){var Sf=Kv(df),Mf=Sf%1;return Sf===Sf?Mf?Sf-Mf:Sf:0}function wC(df){return df?Ty(C_(df),0,Mh):0}function Yb(df){if(typeof df=="number")return df;if(kb(df))return yh;if(g0(df)){var Sf=typeof df.valueOf=="function"?df.valueOf():df;df=g0(Sf)?Sf+"":Sf}if(typeof df!="string")return df===0?df:+df;df=e_(df);var Mf=Vm.test(df);return Mf||Tm.test(df)?dv(df.slice(2),Mf?2:8):Pm.test(df)?yh:+df}function DC(df){return Rb(df,mb(df))}function oD(df){return df?Ty(C_(df),-9007199254740991,sh):df===0?df:0}function W_(df){return df==null?"":Z0(df)}var lD=qb(function(df,Sf){if(Kh(Sf)||hb(Sf)){Rb(Sf,H0(Sf),df);return}for(var Mf in Sf)U_.call(Sf,Mf)&&pE(df,Mf,Sf[Mf])}),NC=qb(function(df,Sf){Rb(Sf,mb(Sf),df)}),iT=qb(function(df,Sf,Mf,Th){Rb(Sf,mb(Sf),df,Th)}),uD=qb(function(df,Sf,Mf,Th){Rb(Sf,H0(Sf),df,Th)}),cD=Gb(hE);function dD(df,Sf){var Mf=dE(df);return Sf==null?Mf:RS(Mf,Sf)}var pD=T_(function(df,Sf){df=z_(df);var Mf=-1,Th=Sf.length,lm=Th>2?Sf[2]:ud;for(lm&&yf(Sf[0],Sf[1],lm)&&(Th=1);++Mf1),Dm}),Rb(df,Z1(df),Mf),Th&&(Mf=J0(Mf,Nd|Ld|Ud,c1));for(var lm=Sf.length;lm--;)G1(Mf,Sf[lm]);return Mf});function RD(df,Sf){return RC(df,tT(c_(Sf)))}var OD=Gb(function(df,Sf){return df==null?{}:kx(df,Sf)});function RC(df,Sf){if(df==null)return{};var Mf=X_(Z1(df),function(Th){return[Th]});return Sf=c_(Sf),$x(df,Mf,function(Th,lm){return Sf(Th,lm[0])})}function kD(df,Sf,Mf){Sf=ev(Sf,df);var Th=-1,lm=Sf.length;for(lm||(lm=1,df=ud);++ThSf){var Th=df;df=Sf,Sf=Th}if(Mf||df%1||Sf%1){var lm=TS();return b0(df+lm*(Sf-df+E1("1e-"+((lm+"").length-1))),Sf)}return q1(df,Sf)}var GD=IE(function(df,Sf,Mf){return Sf=Sf.toLowerCase(),df+(Mf?$C(Sf):Sf)});function $C(df){return YT(W_(df).toLowerCase())}function MC(df){return df=W_(df),df&&df.replace(fg,iE).replace(g1,"")}function VD(df,Sf,Mf){df=W_(df),Sf=Z0(Sf);var Th=df.length;Mf=Mf===ud?Th:Ty(C_(Mf),0,Th);var lm=Mf;return Mf-=Sf.length,Mf>=0&&df.slice(Mf,lm)==Sf}function zD(df){return df=W_(df),df&&p_.test(df)?df.replace(kg,Bb):df}function WD(df){return df=W_(df),df&&R_.test(df)?df.replace(t0,"\\$&"):df}var YD=IE(function(df,Sf,Mf){return df+(Mf?"-":"")+Sf.toLowerCase()}),KD=IE(function(df,Sf,Mf){return df+(Mf?" ":"")+Sf.toLowerCase()}),XD=qx("toLowerCase");function QD(df,Sf,Mf){df=W_(df),Sf=C_(Sf);var Th=Sf?oE(df):0;if(!Sf||Th>=Sf)return df;var lm=(Sf-Th)/2;return K1(Cv(lm),Mf)+df+K1(VE(lm),Mf)}function JD(df,Sf,Mf){df=W_(df),Sf=C_(Sf);var Th=Sf?oE(df):0;return Sf&&Th>>0,Mf?(df=W_(df),df&&(typeof Sf=="string"||Sf!=null&&!VT(Sf))&&(Sf=Z0(Sf),!Sf&&sE(df))?Ay(Eb(df),0,Mf):df.split(Sf,Mf)):[]}var sN=IE(function(df,Sf,Mf){return df+(Mf?" ":"")+YT(Sf)});function oN(df,Sf,Mf){return df=W_(df),Mf=Mf==null?0:Ty(C_(Mf),0,df.length),Sf=Z0(Sf),df.slice(Mf,Mf+Sf.length)==Sf}function lN(df,Sf,Mf){var Th=gm.templateSettings;Mf&&yf(df,Sf,Mf)&&(Sf=ud),df=W_(df),Sf=iT({},Sf,Th,Wx);var lm=iT({},Sf.imports,Th.imports,Wx),Dm=H0(lm),zm=r0(lm,Dm),Km,rg,Dg=0,Ng=Sf.interpolate||zg,Og="__p += '",Zg=GE((Sf.escape||zg).source+"|"+Ng.source+"|"+(Ng===r_?hm:zg).source+"|"+(Sf.evaluate||zg).source+"|$","g"),o_="//# sourceURL="+(U_.call(Sf,"sourceURL")?(Sf.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++y1+"]")+` +`)}function Qd(df){return x_(df)||h1(df)||!!(lx&&df&&df[lx])}function Ef(df,Sf){var Mf=typeof df;return Sf=Sf??oh,!!Sf&&(Mf=="number"||Mf!="symbol"&&lg.test(df))&&df>-1&&df%1==0&&df0){if(++Sf>=Af)return arguments[0]}else Sf=0;return df.apply(ud,arguments)}}function u0(df,Sf){var Mf=-1,Th=df.length,lm=Th-1;for(Sf=Sf===ud?Th:Sf;++Mf1?df[Sf-1]:ud;return Mf=typeof Mf=="function"?(df.pop(),Mf):ud,lC(df,Mf)});function uC(df){var Sf=gm(df);return Sf.__chain__=!0,Sf}function FA(df,Sf){return Sf(df),df}function Qx(df,Sf){return Sf(df)}var UA=Gb(function(df){var Sf=df.length,Mf=Sf?df[0]:0,Th=this.__wrapped__,lm=function(Dm){return hE(Dm,df)};return Sf>1||this.__actions__.length||!(Th instanceof d_)||!Ef(Mf)?this.thru(lm):(Th=Th.slice(Mf,+Mf+(Sf?1:0)),Th.__actions__.push({func:Qx,args:[lm],thisArg:ud}),new H_(Th,this.__chain__).thru(function(Dm){return Sf&&!Dm.length&&Dm.push(ud),Dm}))});function jA(){return uC(this)}function HA(){return new H_(this.value(),this.__chain__)}function qA(){this.__values__===ud&&(this.__values__=AC(this.value()));var df=this.__index__>=this.__values__.length,Sf=df?ud:this.__values__[this.__index__++];return{done:df,value:Sf}}function GA(){return this}function VA(df){for(var Sf,Mf=this;Mf instanceof M0;){var Th=U0(Mf);Th.__index__=0,Th.__values__=ud,Sf?lm.__wrapped__=Th:Sf=Th;var lm=Th;Mf=Mf.__wrapped__}return lm.__wrapped__=df,Sf}function zA(){var df=this.__wrapped__;if(df instanceof d_){var Sf=df;return this.__actions__.length&&(Sf=new d_(this)),Sf=Sf.reverse(),Sf.__actions__.push({func:Qx,args:[UT],thisArg:ud}),new H_(Sf,this.__chain__)}return this.thru(UT)}function WA(){return r1(this.__wrapped__,this.__actions__)}var YA=DE(function(df,Sf,Mf){U_.call(df,Mf)?++df[Mf]:Sy(df,Mf,1)});function KA(df,Sf,Mf){var Th=x_(df)?mv:AT;return Mf&&yf(df,Sf,Mf)&&(Sf=ud),Th(df,c_(Sf,3))}function XA(df,Sf){var Mf=x_(df)?Lb:Lv;return Mf(df,c_(Sf,3))}var QA=zS(zb),JA=zS(iv);function ZA(df,Sf){return C0(Jx(df,Sf),1)}function ew(df,Sf){return C0(Jx(df,Sf),Ff)}function tw(df,Sf,Mf){return Mf=Mf===ud?1:C_(Mf),C0(Jx(df,Sf),Mf)}function cC(df,Sf){var Mf=x_(df)?Y0:Nb;return Mf(df,c_(Sf,3))}function dC(df,Sf){var Mf=x_(df)?T1:kS;return Mf(df,c_(Sf,3))}var rw=DE(function(df,Sf,Mf){U_.call(df,Mf)?df[Mf].push(Sf):Sy(df,Mf,[Sf])});function nw(df,Sf,Mf,Th){df=hb(df)?df:rS(df),Mf=Mf&&!Th?C_(Mf):0;var lm=df.length;return Mf<0&&(Mf=e0(lm+Mf,0)),nT(df)?Mf<=lm&&df.indexOf(Sf,Mf)>-1:!!lm&&hf(df,Sf,Mf)>-1}var iw=T_(function(df,Sf,Mf){var Th=-1,lm=typeof Sf=="function",Dm=hb(df)?ug(df.length):[];return Nb(df,function(zm){Dm[++Th]=lm?q0(Sf,zm,Mf):vE(zm,Sf,Mf)}),Dm}),sw=DE(function(df,Sf,Mf){Sy(df,Mf,Sf)});function Jx(df,Sf){var Mf=x_(df)?X_:LS;return Mf(df,c_(Sf,3))}function ow(df,Sf,Mf,Th){return df==null?[]:(x_(Sf)||(Sf=Sf==null?[]:[Sf]),Mf=Th?ud:Mf,x_(Mf)||(Mf=Mf==null?[]:[Mf]),Ox(df,Sf,Mf))}var lw=DE(function(df,Sf,Mf){df[Mf?0:1].push(Sf)},function(){return[[],[]]});function uw(df,Sf,Mf){var Th=x_(df)?HE:Hm,lm=arguments.length<3;return Th(df,c_(Sf,4),Mf,lm,Nb)}function dw(df,Sf,Mf){var Th=x_(df)?C1:Hm,lm=arguments.length<3;return Th(df,c_(Sf,4),Mf,lm,kS)}function pw(df,Sf){var Mf=x_(df)?Lb:Lv;return Mf(df,tT(c_(Sf,3)))}function fw(df){var Sf=x_(df)?DS:Mx;return Sf(df)}function hw(df,Sf,Mf){(Mf?yf(df,Sf,Mf):Sf===ud)?Sf=1:Sf=C_(Sf);var Th=x_(df)?TT:Px;return Th(df,Sf)}function mw(df){var Sf=x_(df)?IS:IT;return Sf(df)}function gw(df){if(df==null)return 0;if(hb(df))return nT(df)?oE(df):df.length;var Sf=w0(df);return Sf==Zh||Sf==om?df.size:Uv(df).length}function _w(df,Sf,Mf){var Th=x_(df)?My:e1;return Mf&&yf(df,Sf,Mf)&&(Sf=ud),Th(df,c_(Sf,3))}var yw=T_(function(df,Sf){if(df==null)return[];var Mf=Sf.length;return Mf>1&&yf(df,Sf[0],Sf[1])?Sf=[]:Mf>2&&yf(Sf[0],Sf[1],Sf[2])&&(Sf=[Sf[0]]),Ox(df,C0(Sf,1),[])}),Zx=cE||function(){return j_.Date.now()};function vw(df,Sf){if(typeof Sf!="function")throw new ub(gd);return df=C_(df),function(){if(--df<1)return Sf.apply(this,arguments)}}function pC(df,Sf,Mf){return Sf=Mf?ud:Sf,Sf=df&&Sf==null?df.length:Sf,$_(df,mf,ud,ud,ud,ud,Sf)}function hC(df,Sf){var Mf;if(typeof Sf!="function")throw new ub(gd);return df=C_(df),function(){return--df>0&&(Mf=Sf.apply(this,arguments)),df<=1&&(Sf=ud),Mf}}var HT=T_(function(df,Sf,Mf){var Th=Yd;if(Mf.length){var lm=X0(Mf,OE(HT));Th|=Jd}return $_(df,Th,Sf,Mf,lm)}),mC=T_(function(df,Sf,Mf){var Th=Yd|zd;if(Mf.length){var lm=X0(Mf,OE(mC));Th|=Jd}return $_(Sf,Th,df,Mf,lm)});function gC(df,Sf,Mf){Sf=Mf?ud:Sf;var Th=$_(df,Wd,ud,ud,ud,ud,ud,Sf);return Th.placeholder=gC.placeholder,Th}function yC(df,Sf,Mf){Sf=Mf?ud:Sf;var Th=$_(df,Xd,ud,ud,ud,ud,ud,Sf);return Th.placeholder=yC.placeholder,Th}function vC(df,Sf,Mf){var Th,lm,Dm,zm,Km,ig,Dg=0,Ng=!1,Og=!1,Zg=!0;if(typeof df!="function")throw new ub(gd);Sf=Yb(Sf)||0,g0(Mf)&&(Ng=!!Mf.leading,Og="maxWait"in Mf,Dm=Og?e0(Yb(Mf.maxWait)||0,Sf):Dm,Zg="trailing"in Mf?!!Mf.trailing:Zg);function o_(I0){var Ny=Th,Xv=lm;return Th=lm=ud,Dg=I0,zm=df.apply(Xv,Ny),zm}function h_(I0){return Dg=I0,Km=a_(I_,Sf),Ng?o_(I0):zm}function w_(I0){var Ny=I0-ig,Xv=I0-Dg,FC=Sf-Ny;return Og?b0(FC,Dm-Xv):FC}function m_(I0){var Ny=I0-ig,Xv=I0-Dg;return ig===ud||Ny>=Sf||Ny<0||Og&&Xv>=Dm}function I_(){var I0=Zx();if(m_(I0))return M_(I0);Km=a_(I_,w_(I0))}function M_(I0){return Km=ud,Zg&&Th?o_(I0):(Th=lm=ud,zm)}function $b(){Km!==ud&&Fx(Km),Dg=0,Th=ig=lm=Km=ud}function tb(){return Km===ud?zm:M_(Zx())}function Mb(){var I0=Zx(),Ny=m_(I0);if(Th=arguments,lm=this,ig=I0,Ny){if(Km===ud)return h_(ig);if(Og)return Fx(Km),Km=a_(I_,Sf),o_(ig)}return Km===ud&&(Km=a_(I_,Sf)),zm}return Mb.cancel=$b,Mb.flush=tb,Mb}var Ew=T_(function(df,Sf){return Ex(df,1,Sf)}),Sw=T_(function(df,Sf,Mf){return Ex(df,Yb(Sf)||0,Mf)});function xw(df){return $_(df,_f)}function eT(df,Sf){if(typeof df!="function"||Sf!=null&&typeof Sf!="function")throw new ub(gd);var Mf=function(){var Th=arguments,lm=Sf?Sf.apply(this,Th):Th[0],Dm=Mf.cache;if(Dm.has(lm))return Dm.get(lm);var zm=df.apply(this,Th);return Mf.cache=Dm.set(lm,zm)||Dm,zm};return Mf.cache=new(eT.Cache||wb),Mf}eT.Cache=wb;function tT(df){if(typeof df!="function")throw new ub(gd);return function(){var Sf=arguments;switch(Sf.length){case 0:return!df.call(this);case 1:return!df.call(this,Sf[0]);case 2:return!df.call(this,Sf[0],Sf[1]);case 3:return!df.call(this,Sf[0],Sf[1],Sf[2])}return!df.apply(this,Sf)}}function Tw(df){return hC(2,df)}var Cw=a1(function(df,Sf){Sf=Sf.length==1&&x_(Sf[0])?X_(Sf[0],__(c_())):X_(C0(Sf,1),__(c_()));var Mf=Sf.length;return T_(function(Th){for(var lm=-1,Dm=b0(Th.length,Mf);++lm=Sf}),h1=MS(function(){return arguments}())?MS:function(df){return v0(df)&&U_.call(df,"callee")&&!O1.call(df,"callee")},x_=ug.isArray,Uw=hv?__(hv):SE;function hb(df){return df!=null&&rT(df.length)&&!Yv(df)}function N0(df){return v0(df)&&hb(df)}function jw(df){return df===!0||df===!1||v0(df)&&O0(df)==Rf}var ME=dT||eC,Hw=ob?__(ob):Ax;function qw(df){return v0(df)&&df.nodeType===1&&!JS(df)}function Gw(df){if(df==null)return!0;if(hb(df)&&(x_(df)||typeof df=="string"||typeof df.splice=="function"||ME(df)||tS(df)||h1(df)))return!df.length;var Sf=w0(df);if(Sf==Zh||Sf==om)return!df.size;if(Kh(df))return!Uv(df).length;for(var Mf in df)if(U_.call(df,Mf))return!1;return!0}function Vw(df,Sf){return Xy(df,Sf)}function zw(df,Sf,Mf){Mf=typeof Mf=="function"?Mf:ud;var Th=Mf?Mf(df,Sf):ud;return Th===ud?Xy(df,Sf,ud,Mf):!!Th}function GT(df){if(!v0(df))return!1;var Sf=O0(df);return Sf==sm||Sf==Ph||typeof df.message=="string"&&typeof df.name=="string"&&!JS(df)}function Ww(df){return typeof df=="number"&&ux(df)}function Yv(df){if(!g0(df))return!1;var Sf=O0(df);return Sf==th||Sf==sh||Sf==Of||Sf==Lh}function SC(df){return typeof df=="number"&&df==C_(df)}function rT(df){return typeof df=="number"&&df>-1&&df%1==0&&df<=oh}function g0(df){var Sf=typeof df;return df!=null&&(Sf=="object"||Sf=="function")}function v0(df){return df!=null&&typeof df=="object"}var xC=$y?__($y):JE;function Yw(df,Sf){return df===Sf||PS(df,Sf,F_(Sf))}function Kw(df,Sf,Mf){return Mf=typeof Mf=="function"?Mf:ud,PS(df,Sf,F_(Sf),Mf)}function Xw(df){return TC(df)&&df!=+df}function Qw(df){if(Fh(df))throw new b_(md);return Bv(df)}function Jw(df){return df===null}function Zw(df){return df==null}function TC(df){return typeof df=="number"||v0(df)&&O0(df)==Sm}function JS(df){if(!v0(df)||O0(df)!=Vf)return!1;var Sf=Ly(df);if(Sf===null)return!0;var Mf=U_.call(Sf,"constructor")&&Sf.constructor;return typeof Mf=="function"&&Mf instanceof Mf&&lE.call(Mf)==Ev}var VT=tE?__(tE):Dx;function eD(df){return SC(df)&&df>=-9007199254740991&&df<=oh}var CC=yb?__(yb):Nx;function nT(df){return typeof df=="string"||!x_(df)&&v0(df)&&O0(df)==zh}function kb(df){return typeof df=="symbol"||v0(df)&&O0(df)==Mm}var tS=x1?__(x1):Ix;function tD(df){return df===ud}function rD(df){return v0(df)&&w0(df)==Zm}function nD(df){return v0(df)&&O0(df)==Ym}var iD=l1(Hv),sD=l1(function(df,Sf){return df<=Sf});function AC(df){if(!df)return[];if(hb(df))return nT(df)?Eb(df):K0(df);if(xv&&df[xv])return lT(df[xv]());var Sf=w0(df),Mf=Sf==Zh?w1:Sf==om?Q0:rS;return Mf(df)}function Kv(df){if(!df)return df===0?df:0;if(df=Yb(df),df===Ff||df===-1/0){var Sf=df<0?-1:1;return Sf*Eh}return df===df?df:0}function C_(df){var Sf=Kv(df),Mf=Sf%1;return Sf===Sf?Mf?Sf-Mf:Sf:0}function wC(df){return df?Ty(C_(df),0,Mh):0}function Yb(df){if(typeof df=="number")return df;if(kb(df))return _h;if(g0(df)){var Sf=typeof df.valueOf=="function"?df.valueOf():df;df=g0(Sf)?Sf+"":Sf}if(typeof df!="string")return df===0?df:+df;df=e_(df);var Mf=Vm.test(df);return Mf||Tm.test(df)?dv(df.slice(2),Mf?2:8):Pm.test(df)?_h:+df}function DC(df){return Rb(df,mb(df))}function oD(df){return df?Ty(C_(df),-9007199254740991,oh):df===0?df:0}function W_(df){return df==null?"":Z0(df)}var lD=qb(function(df,Sf){if(Kh(Sf)||hb(Sf)){Rb(Sf,H0(Sf),df);return}for(var Mf in Sf)U_.call(Sf,Mf)&&pE(df,Mf,Sf[Mf])}),NC=qb(function(df,Sf){Rb(Sf,mb(Sf),df)}),iT=qb(function(df,Sf,Mf,Th){Rb(Sf,mb(Sf),df,Th)}),uD=qb(function(df,Sf,Mf,Th){Rb(Sf,H0(Sf),df,Th)}),cD=Gb(hE);function dD(df,Sf){var Mf=dE(df);return Sf==null?Mf:RS(Mf,Sf)}var pD=T_(function(df,Sf){df=z_(df);var Mf=-1,Th=Sf.length,lm=Th>2?Sf[2]:ud;for(lm&&yf(Sf[0],Sf[1],lm)&&(Th=1);++Mf1),Dm}),Rb(df,Z1(df),Mf),Th&&(Mf=J0(Mf,Nd|Ld|Ud,c1));for(var lm=Sf.length;lm--;)G1(Mf,Sf[lm]);return Mf});function RD(df,Sf){return RC(df,tT(c_(Sf)))}var OD=Gb(function(df,Sf){return df==null?{}:kx(df,Sf)});function RC(df,Sf){if(df==null)return{};var Mf=X_(Z1(df),function(Th){return[Th]});return Sf=c_(Sf),$x(df,Mf,function(Th,lm){return Sf(Th,lm[0])})}function kD(df,Sf,Mf){Sf=ev(Sf,df);var Th=-1,lm=Sf.length;for(lm||(lm=1,df=ud);++ThSf){var Th=df;df=Sf,Sf=Th}if(Mf||df%1||Sf%1){var lm=TS();return b0(df+lm*(Sf-df+E1("1e-"+((lm+"").length-1))),Sf)}return q1(df,Sf)}var GD=IE(function(df,Sf,Mf){return Sf=Sf.toLowerCase(),df+(Mf?$C(Sf):Sf)});function $C(df){return YT(W_(df).toLowerCase())}function MC(df){return df=W_(df),df&&df.replace(hg,iE).replace(g1,"")}function VD(df,Sf,Mf){df=W_(df),Sf=Z0(Sf);var Th=df.length;Mf=Mf===ud?Th:Ty(C_(Mf),0,Th);var lm=Mf;return Mf-=Sf.length,Mf>=0&&df.slice(Mf,lm)==Sf}function zD(df){return df=W_(df),df&&p_.test(df)?df.replace(kg,Bb):df}function WD(df){return df=W_(df),df&&R_.test(df)?df.replace(t0,"\\$&"):df}var YD=IE(function(df,Sf,Mf){return df+(Mf?"-":"")+Sf.toLowerCase()}),KD=IE(function(df,Sf,Mf){return df+(Mf?" ":"")+Sf.toLowerCase()}),XD=qx("toLowerCase");function QD(df,Sf,Mf){df=W_(df),Sf=C_(Sf);var Th=Sf?oE(df):0;if(!Sf||Th>=Sf)return df;var lm=(Sf-Th)/2;return K1(Cv(lm),Mf)+df+K1(VE(lm),Mf)}function JD(df,Sf,Mf){df=W_(df),Sf=C_(Sf);var Th=Sf?oE(df):0;return Sf&&Th>>0,Mf?(df=W_(df),df&&(typeof Sf=="string"||Sf!=null&&!VT(Sf))&&(Sf=Z0(Sf),!Sf&&sE(df))?Ay(Eb(df),0,Mf):df.split(Sf,Mf)):[]}var sN=IE(function(df,Sf,Mf){return df+(Mf?" ":"")+YT(Sf)});function oN(df,Sf,Mf){return df=W_(df),Mf=Mf==null?0:Ty(C_(Mf),0,df.length),Sf=Z0(Sf),df.slice(Mf,Mf+Sf.length)==Sf}function lN(df,Sf,Mf){var Th=gm.templateSettings;Mf&&yf(df,Sf,Mf)&&(Sf=ud),df=W_(df),Sf=iT({},Sf,Th,Wx);var lm=iT({},Sf.imports,Th.imports,Wx),Dm=H0(lm),zm=r0(lm,Dm),Km,ig,Dg=0,Ng=Sf.interpolate||zg,Og="__p += '",Zg=GE((Sf.escape||zg).source+"|"+Ng.source+"|"+(Ng===r_?hm:zg).source+"|"+(Sf.evaluate||zg).source+"|$","g"),o_="//# sourceURL="+(U_.call(Sf,"sourceURL")?(Sf.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++y1+"]")+` `;df.replace(Zg,function(m_,I_,M_,$b,tb,Mb){return M_||(M_=$b),Og+=df.slice(Dg,Mb).replace(Tg,_v),I_&&(Km=!0,Og+=`' + __e(`+I_+`) + -'`),tb&&(rg=!0,Og+=`'; +'`),tb&&(ig=!0,Og+=`'; `+tb+`; __p += '`),M_&&(Og+=`' + ((__t = (`+M_+`)) == null ? '' : __t) + @@ -1199,26 +1199,26 @@ __p += '`),M_&&(Og+=`' + `;var h_=U_.call(Sf,"variable")&&Sf.variable;if(!h_)Og=`with (obj) { `+Og+` } -`;else if(mm.test(h_))throw new b_(yd);Og=(rg?Og.replace(Ag,""):Og).replace(sg,"$1").replace(mg,"$1;"),Og="function("+(h_||"obj")+`) { +`;else if(mm.test(h_))throw new b_(yd);Og=(ig?Og.replace(Ag,""):Og).replace(sg,"$1").replace(yg,"$1;"),Og="function("+(h_||"obj")+`) { `+(h_?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(Km?", __e = _.escape":"")+(rg?`, __j = Array.prototype.join; +`)+"var __t, __p = ''"+(Km?", __e = _.escape":"")+(ig?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+Og+`return __p -}`;var w_=LC(function(){return k_(Dm,o_+"return "+Og).apply(ud,zm)});if(w_.source=Og,GT(w_))throw w_;return w_}function uN(df){return W_(df).toLowerCase()}function cN(df){return W_(df).toUpperCase()}function dN(df,Sf,Mf){if(df=W_(df),df&&(Mf||Sf===ud))return e_(df);if(!df||!(Sf=Z0(Sf)))return df;var Th=Eb(df),lm=Eb(Sf),Dm=L_(Th,lm),zm=x0(Th,lm)+1;return Ay(Th,Dm,zm).join("")}function pN(df,Sf,Mf){if(df=W_(df),df&&(Mf||Sf===ud))return df.slice(0,mS(df)+1);if(!df||!(Sf=Z0(Sf)))return df;var Th=Eb(df),lm=x0(Th,Eb(Sf))+1;return Ay(Th,0,lm).join("")}function fN(df,Sf,Mf){if(df=W_(df),df&&(Mf||Sf===ud))return df.replace(P_,"");if(!df||!(Sf=Z0(Sf)))return df;var Th=Eb(df),lm=L_(Th,Eb(Sf));return Ay(Th,lm).join("")}function hN(df,Sf){var Mf=vf,Th=gf;if(g0(Sf)){var lm="separator"in Sf?Sf.separator:lm;Mf="length"in Sf?C_(Sf.length):Mf,Th="omission"in Sf?Z0(Sf.omission):Th}df=W_(df);var Dm=df.length;if(sE(df)){var zm=Eb(df);Dm=zm.length}if(Mf>=Dm)return df;var Km=Mf-oE(Th);if(Km<1)return Th;var rg=zm?Ay(zm,0,Km).join(""):df.slice(0,Km);if(lm===ud)return rg+Th;if(zm&&(Km+=rg.length-Km),VT(lm)){if(df.slice(Km).search(lm)){var Dg,Ng=rg;for(lm.global||(lm=GE(lm.source,W_(Fm.exec(lm))+"g")),lm.lastIndex=0;Dg=lm.exec(Ng);)var Og=Dg.index;rg=rg.slice(0,Og===ud?Km:Og)}}else if(df.indexOf(Z0(lm),Km)!=Km){var Zg=rg.lastIndexOf(lm);Zg>-1&&(rg=rg.slice(0,Zg))}return rg+Th}function mN(df){return df=W_(df),df&&Kg.test(df)?df.replace(vg,nx):df}var gN=IE(function(df,Sf,Mf){return df+(Mf?" ":"")+Sf.toUpperCase()}),YT=qx("toUpperCase");function PC(df,Sf,Mf){return df=W_(df),Sf=Mf?ud:Sf,Sf===ud?ex(df)?sx(df):fS(df):df.match(Sf)||[]}var LC=T_(function(df,Sf){try{return q0(df,ud,Sf)}catch(Mf){return GT(Mf)?Mf:new b_(Mf)}}),_N=Gb(function(df,Sf){return Y0(Sf,function(Mf){Mf=i0(Mf),Sy(df,Mf,HT(df[Mf],df))}),df});function yN(df){var Sf=df==null?0:df.length,Mf=c_();return df=Sf?X_(df,function(Th){if(typeof Th[1]!="function")throw new ub(gd);return[Mf(Th[0]),Th[1]]}):[],T_(function(Th){for(var lm=-1;++lmsh)return[];var Mf=Mh,Th=b0(df,Mh);Sf=c_(Sf),df-=Mh;for(var lm=Bg(Th,Sf);++Mf0||Sf<0)?new d_(Mf):(df<0?Mf=Mf.takeRight(-df):df&&(Mf=Mf.drop(df)),Sf!==ud&&(Sf=C_(Sf),Mf=Sf<0?Mf.dropRight(-Sf):Mf.take(Sf-df)),Mf)},d_.prototype.takeRightWhile=function(df){return this.reverse().takeWhile(df).reverse()},d_.prototype.toArray=function(){return this.take(Mh)},pb(d_.prototype,function(df,Sf){var Mf=/^(?:filter|find|map|reject)|While$/.test(Sf),Th=/^(?:head|last)$/.test(Sf),lm=gm[Th?"take"+(Sf=="last"?"Right":""):Sf],Dm=Th||/^find/.test(Sf);lm&&(gm.prototype[Sf]=function(){var zm=this.__wrapped__,Km=Th?[1]:arguments,rg=zm instanceof d_,Dg=Km[0],Ng=rg||x_(zm),Og=function(I_){var M_=lm.apply(gm,vb([I_],Km));return Th&&Zg?M_[0]:M_};Ng&&Mf&&typeof Dg=="function"&&Dg.length!=1&&(rg=Ng=!1);var Zg=this.__chain__,o_=!!this.__actions__.length,h_=Dm&&!Zg,w_=rg&&!o_;if(!Dm&&Ng){zm=w_?zm:new d_(this);var m_=df.apply(zm,Km);return m_.__actions__.push({func:Qx,args:[Og],thisArg:ud}),new H_(m_,Zg)}return h_&&w_?df.apply(this,Km):(m_=this.thru(Og),h_?Th?m_.value()[0]:m_.value():m_)})}),Y0(["pop","push","shift","sort","splice","unshift"],function(df){var Sf=N1[df],Mf=/^(?:push|sort|unshift)$/.test(df)?"tap":"thru",Th=/^(?:pop|shift)$/.test(df);gm.prototype[df]=function(){var lm=arguments;if(Th&&!this.__chain__){var Dm=this.value();return Sf.apply(x_(Dm)?Dm:[],lm)}return this[Mf](function(zm){return Sf.apply(x_(zm)?zm:[],lm)})}}),pb(d_.prototype,function(df,Sf){var Mf=gm[Sf];if(Mf){var Th=Mf.name+"";U_.call(Dv,Th)||(Dv[Th]=[]),Dv[Th].push({name:Sf,func:Mf})}}),Dv[W1(ud,zd).name]=[{name:"wrapper",func:ud}],d_.prototype.clone=T0,d_.prototype.reverse=KE,d_.prototype.value=mT,gm.prototype.at=UA,gm.prototype.chain=jA,gm.prototype.commit=HA,gm.prototype.next=qA,gm.prototype.plant=VA,gm.prototype.reverse=zA,gm.prototype.toJSON=gm.prototype.valueOf=gm.prototype.value=WA,gm.prototype.first=gm.prototype.head,xv&&(gm.prototype[xv]=GA),gm},Zb=gS();Jb?((Jb.exports=Zb)._=Zb,UE._=Zb):j_._=Zb}).call(commonjsGlobal)})(lodash,lodash.exports);var lodashExports=lodash.exports;const _=getDefaultExportFromCjs(lodashExports);var queryString={},strictUriEncode=Ra=>encodeURIComponent(Ra).replace(/[!'()*]/g,ed=>`%${ed.charCodeAt(0).toString(16).toUpperCase()}`),token="%[a-f0-9]{2}",singleMatcher=new RegExp("("+token+")|([^%]+?)","gi"),multiMatcher=new RegExp("("+token+")+","gi");function decodeComponents(Ra,ed){try{return[decodeURIComponent(Ra.join(""))]}catch{}if(Ra.length===1)return Ra;ed=ed||1;var ud=Ra.slice(0,ed),dd=Ra.slice(ed);return Array.prototype.concat.call([],decodeComponents(ud),decodeComponents(dd))}function decode(Ra){try{return decodeURIComponent(Ra)}catch{for(var ed=Ra.match(singleMatcher)||[],ud=1;ud{if(!(typeof Ra=="string"&&typeof ed=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(ed==="")return[Ra];const ud=Ra.indexOf(ed);return ud===-1?[Ra]:[Ra.slice(0,ud),Ra.slice(ud+ed.length)]},filterObj=function(Ra,ed){for(var ud={},dd=Object.keys(Ra),hd=Array.isArray(ed),md=0;mdqd==null,gd=Symbol("encodeFragmentIdentifier");function yd(qd){switch(qd.arrayFormat){case"index":return Wd=>(Xd,Jd)=>{const Zd=Xd.length;return Jd===void 0||qd.skipNull&&Jd===null||qd.skipEmptyString&&Jd===""?Xd:Jd===null?[...Xd,[wd(Wd,qd),"[",Zd,"]"].join("")]:[...Xd,[wd(Wd,qd),"[",wd(Zd,qd),"]=",wd(Jd,qd)].join("")]};case"bracket":return Wd=>(Xd,Jd)=>Jd===void 0||qd.skipNull&&Jd===null||qd.skipEmptyString&&Jd===""?Xd:Jd===null?[...Xd,[wd(Wd,qd),"[]"].join("")]:[...Xd,[wd(Wd,qd),"[]=",wd(Jd,qd)].join("")];case"colon-list-separator":return Wd=>(Xd,Jd)=>Jd===void 0||qd.skipNull&&Jd===null||qd.skipEmptyString&&Jd===""?Xd:Jd===null?[...Xd,[wd(Wd,qd),":list="].join("")]:[...Xd,[wd(Wd,qd),":list=",wd(Jd,qd)].join("")];case"comma":case"separator":case"bracket-separator":{const Wd=qd.arrayFormat==="bracket-separator"?"[]=":"=";return Xd=>(Jd,Zd)=>Zd===void 0||qd.skipNull&&Zd===null||qd.skipEmptyString&&Zd===""?Jd:(Zd=Zd===null?"":Zd,Jd.length===0?[[wd(Xd,qd),Wd,wd(Zd,qd)].join("")]:[[Jd,wd(Zd,qd)].join(qd.arrayFormatSeparator)])}default:return Wd=>(Xd,Jd)=>Jd===void 0||qd.skipNull&&Jd===null||qd.skipEmptyString&&Jd===""?Xd:Jd===null?[...Xd,wd(Wd,qd)]:[...Xd,[wd(Wd,qd),"=",wd(Jd,qd)].join("")]}}function vd(qd){let Wd;switch(qd.arrayFormat){case"index":return(Xd,Jd,Zd)=>{if(Wd=/\[(\d*)\]$/.exec(Xd),Xd=Xd.replace(/\[\d*\]$/,""),!Wd){Zd[Xd]=Jd;return}Zd[Xd]===void 0&&(Zd[Xd]={}),Zd[Xd][Wd[1]]=Jd};case"bracket":return(Xd,Jd,Zd)=>{if(Wd=/(\[\])$/.exec(Xd),Xd=Xd.replace(/\[\]$/,""),!Wd){Zd[Xd]=Jd;return}if(Zd[Xd]===void 0){Zd[Xd]=[Jd];return}Zd[Xd]=[].concat(Zd[Xd],Jd)};case"colon-list-separator":return(Xd,Jd,Zd)=>{if(Wd=/(:list)$/.exec(Xd),Xd=Xd.replace(/:list$/,""),!Wd){Zd[Xd]=Jd;return}if(Zd[Xd]===void 0){Zd[Xd]=[Jd];return}Zd[Xd]=[].concat(Zd[Xd],Jd)};case"comma":case"separator":return(Xd,Jd,Zd)=>{const mf=typeof Jd=="string"&&Jd.includes(qd.arrayFormatSeparator),xf=typeof Jd=="string"&&!mf&&Nd(Jd,qd).includes(qd.arrayFormatSeparator);Jd=xf?Nd(Jd,qd):Jd;const _f=mf||xf?Jd.split(qd.arrayFormatSeparator).map(vf=>Nd(vf,qd)):Jd===null?Jd:Nd(Jd,qd);Zd[Xd]=_f};case"bracket-separator":return(Xd,Jd,Zd)=>{const mf=/(\[\])$/.test(Xd);if(Xd=Xd.replace(/\[\]$/,""),!mf){Zd[Xd]=Jd&&Nd(Jd,qd);return}const xf=Jd===null?[]:Jd.split(qd.arrayFormatSeparator).map(_f=>Nd(_f,qd));if(Zd[Xd]===void 0){Zd[Xd]=xf;return}Zd[Xd]=[].concat(Zd[Xd],xf)};default:return(Xd,Jd,Zd)=>{if(Zd[Xd]===void 0){Zd[Xd]=Jd;return}Zd[Xd]=[].concat(Zd[Xd],Jd)}}}function Cd(qd){if(typeof qd!="string"||qd.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function wd(qd,Wd){return Wd.encode?Wd.strict?ed(qd):encodeURIComponent(qd):qd}function Nd(qd,Wd){return Wd.decode?ud(qd):qd}function Ld(qd){return Array.isArray(qd)?qd.sort():typeof qd=="object"?Ld(Object.keys(qd)).sort((Wd,Xd)=>Number(Wd)-Number(Xd)).map(Wd=>qd[Wd]):qd}function Ud(qd){const Wd=qd.indexOf("#");return Wd!==-1&&(qd=qd.slice(0,Wd)),qd}function jd(qd){let Wd="";const Xd=qd.indexOf("#");return Xd!==-1&&(Wd=qd.slice(Xd)),Wd}function Gd(qd){qd=Ud(qd);const Wd=qd.indexOf("?");return Wd===-1?"":qd.slice(Wd+1)}function Yd(qd,Wd){return Wd.parseNumbers&&!Number.isNaN(Number(qd))&&typeof qd=="string"&&qd.trim()!==""?qd=Number(qd):Wd.parseBooleans&&qd!==null&&(qd.toLowerCase()==="true"||qd.toLowerCase()==="false")&&(qd=qd.toLowerCase()==="true"),qd}function zd(qd,Wd){Wd=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},Wd),Cd(Wd.arrayFormatSeparator);const Xd=vd(Wd),Jd=Object.create(null);if(typeof qd!="string"||(qd=qd.trim().replace(/^[?#&]/,""),!qd))return Jd;for(const Zd of qd.split("&")){if(Zd==="")continue;let[mf,xf]=dd(Wd.decode?Zd.replace(/\+/g," "):Zd,"=");xf=xf===void 0?null:["comma","separator","bracket-separator"].includes(Wd.arrayFormat)?xf:Nd(xf,Wd),Xd(Nd(mf,Wd),xf,Jd)}for(const Zd of Object.keys(Jd)){const mf=Jd[Zd];if(typeof mf=="object"&&mf!==null)for(const xf of Object.keys(mf))mf[xf]=Yd(mf[xf],Wd);else Jd[Zd]=Yd(mf,Wd)}return Wd.sort===!1?Jd:(Wd.sort===!0?Object.keys(Jd).sort():Object.keys(Jd).sort(Wd.sort)).reduce((Zd,mf)=>{const xf=Jd[mf];return xf&&typeof xf=="object"&&!Array.isArray(xf)?Zd[mf]=Ld(xf):Zd[mf]=xf,Zd},Object.create(null))}Ra.extract=Gd,Ra.parse=zd,Ra.stringify=(qd,Wd)=>{if(!qd)return"";Wd=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},Wd),Cd(Wd.arrayFormatSeparator);const Xd=xf=>Wd.skipNull&&md(qd[xf])||Wd.skipEmptyString&&qd[xf]==="",Jd=yd(Wd),Zd={};for(const xf of Object.keys(qd))Xd(xf)||(Zd[xf]=qd[xf]);const mf=Object.keys(Zd);return Wd.sort!==!1&&mf.sort(Wd.sort),mf.map(xf=>{const _f=qd[xf];return _f===void 0?"":_f===null?wd(xf,Wd):Array.isArray(_f)?_f.length===0&&Wd.arrayFormat==="bracket-separator"?wd(xf,Wd)+"[]":_f.reduce(Jd(xf),[]).join("&"):wd(xf,Wd)+"="+wd(_f,Wd)}).filter(xf=>xf.length>0).join("&")},Ra.parseUrl=(qd,Wd)=>{Wd=Object.assign({decode:!0},Wd);const[Xd,Jd]=dd(qd,"#");return Object.assign({url:Xd.split("?")[0]||"",query:zd(Gd(qd),Wd)},Wd&&Wd.parseFragmentIdentifier&&Jd?{fragmentIdentifier:Nd(Jd,Wd)}:{})},Ra.stringifyUrl=(qd,Wd)=>{Wd=Object.assign({encode:!0,strict:!0,[gd]:!0},Wd);const Xd=Ud(qd.url).split("?")[0]||"",Jd=Ra.extract(qd.url),Zd=Ra.parse(Jd,{sort:!1}),mf=Object.assign(Zd,qd.query);let xf=Ra.stringify(mf,Wd);xf&&(xf=`?${xf}`);let _f=jd(qd.url);return qd.fragmentIdentifier&&(_f=`#${Wd[gd]?wd(qd.fragmentIdentifier,Wd):qd.fragmentIdentifier}`),`${Xd}${xf}${_f}`},Ra.pick=(qd,Wd,Xd)=>{Xd=Object.assign({parseFragmentIdentifier:!0,[gd]:!1},Xd);const{url:Jd,query:Zd,fragmentIdentifier:mf}=Ra.parseUrl(qd,Xd);return Ra.stringifyUrl({url:Jd,query:hd(Zd,Wd),fragmentIdentifier:mf},Xd)},Ra.exclude=(qd,Wd,Xd)=>{const Jd=Array.isArray(Wd)?Zd=>!Wd.includes(Zd):(Zd,mf)=>!Wd(Zd,mf);return Ra.pick(qd,Jd,Xd)}})(queryString);const Encoder=TextEncoder;var xml$2={exports:{}},XML_CHARACTER_MAP={"&":"&",'"':""","'":"'","<":"<",">":">"};function escapeForXML$1(Ra){return Ra&&Ra.replace?Ra.replace(/([&"<>'])/g,function(ed,ud){return XML_CHARACTER_MAP[ud]}):Ra}var escapeForXML_1=escapeForXML$1,define_process_default$4={version:"v20.18.3",versions:{node:"20.18.3",acorn:"8.14.0",ada:"2.9.2",ares:"1.34.4",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.15+quic",simdutf:"5.6.4",tz:"2024b",undici:"6.21.1",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.25",zlib:"1.3.0.1-motley-82a5fec"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.18.3/node-v20.18.3.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.18.3/node-v20.18.3-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule internal/util","NativeModule internal/util/types","NativeModule internal/validators","NativeModule internal/linkedlist","NativeModule internal/priority_queue","Internal Binding icu","NativeModule internal/util/inspect","NativeModule internal/util/debuglog","NativeModule internal/timers","NativeModule internal/events/abort_listener","NativeModule events","Internal Binding buffer","NativeModule internal/buffer","NativeModule buffer","Internal Binding messaging","NativeModule internal/worker/js_transferable","NativeModule internal/querystring","NativeModule internal/constants","NativeModule path","NativeModule querystring","Internal Binding url","NativeModule internal/url","NativeModule internal/fs/utils","Internal Binding process_methods","NativeModule internal/process/per_thread","Internal Binding credentials","NativeModule internal/process/promises","NativeModule internal/fixed_queue","NativeModule async_hooks","NativeModule internal/process/task_queues","NativeModule timers","Internal Binding trace_events","Internal Binding contextify","NativeModule internal/vm","NativeModule internal/process/execution","NativeModule internal/process/warning","NativeModule internal/source_map/source_map_cache","Internal Binding fs","Internal Binding blob","Internal Binding encoding_binding","NativeModule internal/encoding","NativeModule internal/streams/utils","NativeModule util","NativeModule internal/webstreams/util","NativeModule internal/webstreams/queuingstrategies","NativeModule internal/blob","Internal Binding permission","NativeModule internal/process/permission","NativeModule fs","NativeModule internal/modules/helpers","NativeModule internal/console/constructor","NativeModule internal/console/global","NativeModule internal/util/inspector","Internal Binding inspector","NativeModule internal/webidl","Internal Binding performance","NativeModule internal/perf/utils","NativeModule internal/event_target","Internal Binding wasm_web_api","Internal Binding mksnapshot","NativeModule internal/v8/startup_snapshot","NativeModule internal/process/signal","NativeModule url","NativeModule internal/modules/package_json_reader","NativeModule internal/modules/cjs/loader","NativeModule internal/process/pre_execution","NativeModule internal/modules/esm/utils","NativeModule internal/inspector_async_hook","Internal Binding worker","NativeModule internal/modules/run_main","NativeModule internal/net","NativeModule internal/dns/utils","NativeModule internal/modules/esm/assert","NativeModule internal/modules/esm/loader","NativeModule internal/modules/esm/module_map","NativeModule internal/modules/esm/translators","NativeModule internal/modules/esm/package_config","NativeModule internal/modules/esm/formats","NativeModule internal/modules/esm/get_format","NativeModule internal/modules/esm/resolve","NativeModule internal/modules/esm/module_job","NativeModule internal/modules/esm/load","Internal Binding fs_dir","NativeModule internal/fs/dir","NativeModule string_decoder","Internal Binding fs_event_wrap","Internal Binding uv","NativeModule internal/fs/watchers","NativeModule internal/fs/recursive_watch","NativeModule internal/readline/utils","NativeModule internal/readline/callbacks","NativeModule internal/readline/interface","NativeModule internal/fs/promises","NativeModule internal/perf/performance_entry","NativeModule internal/perf/observe","NativeModule internal/perf/resource_timing","NativeModule internal/perf/nodetiming","NativeModule internal/perf/usertiming","NativeModule internal/perf/event_loop_utilization","NativeModule internal/histogram","NativeModule internal/perf/timerify","NativeModule internal/perf/performance","NativeModule internal/perf/event_loop_delay","NativeModule perf_hooks","NativeModule internal/modules/esm/initialize_import_meta","NativeModule internal/streams/destroy","NativeModule internal/abort_controller","NativeModule internal/streams/end-of-stream","NativeModule internal/streams/legacy","NativeModule internal/streams/add-abort-signal","NativeModule internal/streams/state","NativeModule internal/streams/from","NativeModule internal/streams/readable","NativeModule internal/streams/writable","NativeModule internal/streams/duplex","NativeModule internal/streams/pipeline","NativeModule internal/streams/compose","NativeModule internal/streams/operators","NativeModule stream/promises","NativeModule internal/streams/transform","NativeModule internal/streams/passthrough","NativeModule internal/streams/duplexpair","NativeModule stream","NativeModule internal/fs/streams","NativeModule fs/promises","NativeModule internal/util/parse_args/utils","NativeModule internal/util/parse_args/parse_args","NativeModule internal/mime","NativeModule internal/source_map/source_map","NativeModule module","Internal Binding crypto","NativeModule internal/crypto/random","NativeModule internal/crypto/hashnames","NativeModule internal/crypto/util","NativeModule internal/crypto/pbkdf2","NativeModule internal/crypto/scrypt","NativeModule internal/crypto/keys","NativeModule internal/crypto/hkdf","NativeModule internal/crypto/keygen","NativeModule internal/crypto/diffiehellman","NativeModule internal/streams/lazy_transform","NativeModule internal/crypto/cipher","NativeModule internal/crypto/sig","NativeModule internal/crypto/hash","NativeModule internal/crypto/x509","NativeModule internal/crypto/certificate","NativeModule crypto","NativeModule internal/crypto/webcrypto","Internal Binding stream_wrap","Internal Binding tcp_wrap","Internal Binding pipe_wrap","NativeModule internal/stream_base_commons","NativeModule diagnostics_channel","NativeModule net","Internal Binding tty_wrap","NativeModule internal/tty","NativeModule tty","NativeModule internal/deps/cjs-module-lexer/dist/lexer","Internal Binding udp_wrap","NativeModule internal/dgram","NativeModule dgram","Internal Binding process_wrap","NativeModule internal/socket_list","Internal Binding spawn_sync","NativeModule internal/child_process","NativeModule child_process","NativeModule _http_agent","Internal Binding http_parser","NativeModule internal/freelist","NativeModule _http_incoming","NativeModule _http_common","NativeModule internal/http","NativeModule _http_outgoing","NativeModule _http_client","NativeModule _http_server","NativeModule http","Internal Binding cares_wrap","NativeModule internal/tls/secure-context","NativeModule _tls_common","Internal Binding js_stream","NativeModule internal/js_stream_socket","Internal Binding tls_wrap","NativeModule _tls_wrap","NativeModule internal/tls/secure-pair","NativeModule tls","NativeModule https","Internal Binding block_list","NativeModule internal/socketaddress","NativeModule internal/blocklist","Internal Binding os","NativeModule os","NativeModule internal/dns/callback_resolver","NativeModule dns","NativeModule internal/dns/promises","NativeModule internal/util/colors","NativeModule internal/assert/assertion_error","NativeModule internal/assert/utils","NativeModule internal/assert/calltracker","NativeModule assert","Internal Binding serdes","Internal Binding profiler","Internal Binding heap_utils","Internal Binding internal_only_v8","NativeModule internal/heap_utils","NativeModule internal/promise_hooks","Internal Binding v8","NativeModule v8","NativeModule internal/worker/io","NativeModule internal/error_serdes","NativeModule internal/worker","NativeModule worker_threads","NativeModule internal/file","NativeModule internal/readline/emitKeypressEvents","NativeModule internal/readline/promises","NativeModule readline/promises","NativeModule readline","Internal Binding zlib","NativeModule zlib","NativeModule process","Internal Binding report","NativeModule internal/process/report","NativeModule constants","NativeModule internal/crypto/webidl"],_events:{newListener:[null,null],removeListener:[null,null]},_eventsCount:3,domain:null,_exiting:!1,config:{target_defaults:{cflags:[],default_configuration:"Release",defines:["NODE_OPENSSL_CONF_NAME=nodejs_conf","NODE_OPENSSL_HAS_QUIC","ICU_NO_USER_DATA_OVERRIDE"],include_dirs:[],libraries:[]},variables:{asan:0,clang:0,coverage:!1,dcheck_always_on:0,debug_nghttp2:!1,debug_node:!1,enable_lto:!1,enable_pgo_generate:!1,enable_pgo_use:!1,error_on_warn:!1,force_dynamic_crt:0,gas_version:"2.35",host_arch:"x64",icu_data_in:"../../deps/icu-tmp/icudt75l.dat",icu_endianness:"l",icu_gyp_path:"tools/icu/icu-generic.gyp",icu_path:"deps/icu-small",icu_small:!1,icu_ver_major:"75",is_debug:0,libdir:"lib",llvm_version:"0.0",napi_build_version:"9",node_builtin_shareable_builtins:["deps/cjs-module-lexer/lexer.js","deps/cjs-module-lexer/dist/lexer.js","deps/undici/undici.js"],node_byteorder:"little",node_debug_lib:!1,node_enable_d8:!1,node_enable_v8_vtunejit:!1,node_fipsinstall:!1,node_install_corepack:!0,node_install_npm:!0,node_library_files:["lib/_http_agent.js","lib/_http_client.js","lib/_http_common.js","lib/_http_incoming.js","lib/_http_outgoing.js","lib/_http_server.js","lib/_stream_duplex.js","lib/_stream_passthrough.js","lib/_stream_readable.js","lib/_stream_transform.js","lib/_stream_wrap.js","lib/_stream_writable.js","lib/_tls_common.js","lib/_tls_wrap.js","lib/assert.js","lib/assert/strict.js","lib/async_hooks.js","lib/buffer.js","lib/child_process.js","lib/cluster.js","lib/console.js","lib/constants.js","lib/crypto.js","lib/dgram.js","lib/diagnostics_channel.js","lib/dns.js","lib/dns/promises.js","lib/domain.js","lib/events.js","lib/fs.js","lib/fs/promises.js","lib/http.js","lib/http2.js","lib/https.js","lib/inspector.js","lib/inspector/promises.js","lib/internal/abort_controller.js","lib/internal/assert.js","lib/internal/assert/assertion_error.js","lib/internal/assert/calltracker.js","lib/internal/assert/utils.js","lib/internal/async_hooks.js","lib/internal/blob.js","lib/internal/blocklist.js","lib/internal/bootstrap/node.js","lib/internal/bootstrap/realm.js","lib/internal/bootstrap/shadow_realm.js","lib/internal/bootstrap/switches/does_not_own_process_state.js","lib/internal/bootstrap/switches/does_own_process_state.js","lib/internal/bootstrap/switches/is_main_thread.js","lib/internal/bootstrap/switches/is_not_main_thread.js","lib/internal/bootstrap/web/exposed-wildcard.js","lib/internal/bootstrap/web/exposed-window-or-worker.js","lib/internal/buffer.js","lib/internal/child_process.js","lib/internal/child_process/serialization.js","lib/internal/cli_table.js","lib/internal/cluster/child.js","lib/internal/cluster/primary.js","lib/internal/cluster/round_robin_handle.js","lib/internal/cluster/shared_handle.js","lib/internal/cluster/utils.js","lib/internal/cluster/worker.js","lib/internal/console/constructor.js","lib/internal/console/global.js","lib/internal/constants.js","lib/internal/crypto/aes.js","lib/internal/crypto/certificate.js","lib/internal/crypto/cfrg.js","lib/internal/crypto/cipher.js","lib/internal/crypto/diffiehellman.js","lib/internal/crypto/ec.js","lib/internal/crypto/hash.js","lib/internal/crypto/hashnames.js","lib/internal/crypto/hkdf.js","lib/internal/crypto/keygen.js","lib/internal/crypto/keys.js","lib/internal/crypto/mac.js","lib/internal/crypto/pbkdf2.js","lib/internal/crypto/random.js","lib/internal/crypto/rsa.js","lib/internal/crypto/scrypt.js","lib/internal/crypto/sig.js","lib/internal/crypto/util.js","lib/internal/crypto/webcrypto.js","lib/internal/crypto/webidl.js","lib/internal/crypto/x509.js","lib/internal/debugger/inspect.js","lib/internal/debugger/inspect_client.js","lib/internal/debugger/inspect_repl.js","lib/internal/dgram.js","lib/internal/dns/callback_resolver.js","lib/internal/dns/promises.js","lib/internal/dns/utils.js","lib/internal/encoding.js","lib/internal/error_serdes.js","lib/internal/errors.js","lib/internal/event_target.js","lib/internal/events/abort_listener.js","lib/internal/events/symbols.js","lib/internal/file.js","lib/internal/fixed_queue.js","lib/internal/freelist.js","lib/internal/freeze_intrinsics.js","lib/internal/fs/cp/cp-sync.js","lib/internal/fs/cp/cp.js","lib/internal/fs/dir.js","lib/internal/fs/promises.js","lib/internal/fs/read/context.js","lib/internal/fs/recursive_watch.js","lib/internal/fs/rimraf.js","lib/internal/fs/streams.js","lib/internal/fs/sync_write_stream.js","lib/internal/fs/utils.js","lib/internal/fs/watchers.js","lib/internal/heap_utils.js","lib/internal/histogram.js","lib/internal/http.js","lib/internal/http2/compat.js","lib/internal/http2/core.js","lib/internal/http2/util.js","lib/internal/inspector_async_hook.js","lib/internal/inspector_network_tracking.js","lib/internal/js_stream_socket.js","lib/internal/legacy/processbinding.js","lib/internal/linkedlist.js","lib/internal/main/check_syntax.js","lib/internal/main/embedding.js","lib/internal/main/eval_stdin.js","lib/internal/main/eval_string.js","lib/internal/main/inspect.js","lib/internal/main/mksnapshot.js","lib/internal/main/print_help.js","lib/internal/main/prof_process.js","lib/internal/main/repl.js","lib/internal/main/run_main_module.js","lib/internal/main/test_runner.js","lib/internal/main/watch_mode.js","lib/internal/main/worker_thread.js","lib/internal/mime.js","lib/internal/modules/cjs/loader.js","lib/internal/modules/esm/assert.js","lib/internal/modules/esm/create_dynamic_module.js","lib/internal/modules/esm/fetch_module.js","lib/internal/modules/esm/formats.js","lib/internal/modules/esm/get_format.js","lib/internal/modules/esm/hooks.js","lib/internal/modules/esm/initialize_import_meta.js","lib/internal/modules/esm/load.js","lib/internal/modules/esm/loader.js","lib/internal/modules/esm/module_job.js","lib/internal/modules/esm/module_map.js","lib/internal/modules/esm/package_config.js","lib/internal/modules/esm/resolve.js","lib/internal/modules/esm/shared_constants.js","lib/internal/modules/esm/translators.js","lib/internal/modules/esm/utils.js","lib/internal/modules/esm/worker.js","lib/internal/modules/helpers.js","lib/internal/modules/package_json_reader.js","lib/internal/modules/run_main.js","lib/internal/navigator.js","lib/internal/net.js","lib/internal/options.js","lib/internal/per_context/domexception.js","lib/internal/per_context/messageport.js","lib/internal/per_context/primordials.js","lib/internal/perf/event_loop_delay.js","lib/internal/perf/event_loop_utilization.js","lib/internal/perf/nodetiming.js","lib/internal/perf/observe.js","lib/internal/perf/performance.js","lib/internal/perf/performance_entry.js","lib/internal/perf/resource_timing.js","lib/internal/perf/timerify.js","lib/internal/perf/usertiming.js","lib/internal/perf/utils.js","lib/internal/policy/manifest.js","lib/internal/policy/sri.js","lib/internal/priority_queue.js","lib/internal/process/execution.js","lib/internal/process/per_thread.js","lib/internal/process/permission.js","lib/internal/process/policy.js","lib/internal/process/pre_execution.js","lib/internal/process/promises.js","lib/internal/process/report.js","lib/internal/process/signal.js","lib/internal/process/task_queues.js","lib/internal/process/warning.js","lib/internal/process/worker_thread_only.js","lib/internal/promise_hooks.js","lib/internal/querystring.js","lib/internal/readline/callbacks.js","lib/internal/readline/emitKeypressEvents.js","lib/internal/readline/interface.js","lib/internal/readline/promises.js","lib/internal/readline/utils.js","lib/internal/repl.js","lib/internal/repl/await.js","lib/internal/repl/history.js","lib/internal/repl/utils.js","lib/internal/socket_list.js","lib/internal/socketaddress.js","lib/internal/source_map/prepare_stack_trace.js","lib/internal/source_map/source_map.js","lib/internal/source_map/source_map_cache.js","lib/internal/stream_base_commons.js","lib/internal/streams/add-abort-signal.js","lib/internal/streams/compose.js","lib/internal/streams/destroy.js","lib/internal/streams/duplex.js","lib/internal/streams/duplexify.js","lib/internal/streams/duplexpair.js","lib/internal/streams/end-of-stream.js","lib/internal/streams/from.js","lib/internal/streams/lazy_transform.js","lib/internal/streams/legacy.js","lib/internal/streams/operators.js","lib/internal/streams/passthrough.js","lib/internal/streams/pipeline.js","lib/internal/streams/readable.js","lib/internal/streams/state.js","lib/internal/streams/transform.js","lib/internal/streams/utils.js","lib/internal/streams/writable.js","lib/internal/test/binding.js","lib/internal/test/transfer.js","lib/internal/test_runner/coverage.js","lib/internal/test_runner/harness.js","lib/internal/test_runner/mock/loader.js","lib/internal/test_runner/mock/mock.js","lib/internal/test_runner/mock/mock_timers.js","lib/internal/test_runner/reporter/dot.js","lib/internal/test_runner/reporter/junit.js","lib/internal/test_runner/reporter/lcov.js","lib/internal/test_runner/reporter/spec.js","lib/internal/test_runner/reporter/tap.js","lib/internal/test_runner/reporter/utils.js","lib/internal/test_runner/reporter/v8-serializer.js","lib/internal/test_runner/runner.js","lib/internal/test_runner/test.js","lib/internal/test_runner/tests_stream.js","lib/internal/test_runner/utils.js","lib/internal/timers.js","lib/internal/tls/secure-context.js","lib/internal/tls/secure-pair.js","lib/internal/trace_events_async_hooks.js","lib/internal/tty.js","lib/internal/url.js","lib/internal/util.js","lib/internal/util/colors.js","lib/internal/util/comparisons.js","lib/internal/util/debuglog.js","lib/internal/util/embedding.js","lib/internal/util/inspect.js","lib/internal/util/inspector.js","lib/internal/util/iterable_weak_map.js","lib/internal/util/parse_args/parse_args.js","lib/internal/util/parse_args/utils.js","lib/internal/util/types.js","lib/internal/v8/startup_snapshot.js","lib/internal/v8_prof_polyfill.js","lib/internal/v8_prof_processor.js","lib/internal/validators.js","lib/internal/vm.js","lib/internal/vm/module.js","lib/internal/wasm_web_api.js","lib/internal/watch_mode/files_watcher.js","lib/internal/watchdog.js","lib/internal/webidl.js","lib/internal/webstreams/adapters.js","lib/internal/webstreams/compression.js","lib/internal/webstreams/encoding.js","lib/internal/webstreams/queuingstrategies.js","lib/internal/webstreams/readablestream.js","lib/internal/webstreams/transfer.js","lib/internal/webstreams/transformstream.js","lib/internal/webstreams/util.js","lib/internal/webstreams/writablestream.js","lib/internal/worker.js","lib/internal/worker/io.js","lib/internal/worker/js_transferable.js","lib/module.js","lib/net.js","lib/os.js","lib/path.js","lib/path/posix.js","lib/path/win32.js","lib/perf_hooks.js","lib/process.js","lib/punycode.js","lib/querystring.js","lib/readline.js","lib/readline/promises.js","lib/repl.js","lib/sea.js","lib/stream.js","lib/stream/consumers.js","lib/stream/promises.js","lib/stream/web.js","lib/string_decoder.js","lib/sys.js","lib/test.js","lib/test/reporters.js","lib/timers.js","lib/timers/promises.js","lib/tls.js","lib/trace_events.js","lib/tty.js","lib/url.js","lib/util.js","lib/util/types.js","lib/v8.js","lib/vm.js","lib/wasi.js","lib/worker_threads.js","lib/zlib.js"],node_module_version:115,node_no_browser_globals:!1,node_prefix:"/",node_release_urlbase:"https://nodejs.org/download/release/",node_section_ordering_info:"",node_shared:!1,node_shared_ada:!1,node_shared_brotli:!1,node_shared_cares:!1,node_shared_http_parser:!1,node_shared_libuv:!1,node_shared_nghttp2:!1,node_shared_nghttp3:!1,node_shared_ngtcp2:!1,node_shared_openssl:!1,node_shared_simdjson:!1,node_shared_simdutf:!1,node_shared_uvwasi:!1,node_shared_zlib:!1,node_tag:"",node_target_type:"executable",node_use_bundled_v8:!0,node_use_node_code_cache:!0,node_use_node_snapshot:!0,node_use_openssl:!0,node_use_v8_platform:!0,node_with_ltcg:!1,node_without_node_options:!1,node_write_snapshot_as_array_literals:!1,openssl_is_fips:!1,openssl_quic:!0,ossfuzz:!1,shlib_suffix:"so.115",single_executable_application:!0,target_arch:"x64",ubsan:0,use_prefix_to_find_headers:!1,v8_enable_31bit_smis_on_64bit_arch:0,v8_enable_extensible_ro_snapshot:0,v8_enable_gdbjit:0,v8_enable_hugepage:0,v8_enable_i18n_support:1,v8_enable_inspector:1,v8_enable_javascript_promise_hooks:1,v8_enable_lite_mode:0,v8_enable_maglev:0,v8_enable_object_print:1,v8_enable_pointer_compression:0,v8_enable_sandbox:0,v8_enable_shared_ro_heap:1,v8_enable_short_builtin_calls:1,v8_enable_v8_checks:0,v8_enable_webassembly:1,v8_no_strict_aliasing:1,v8_optimized_debug:1,v8_promise_internal_field_count:1,v8_random_seed:0,v8_trace_maps:0,v8_use_siphash:1,want_separate_host_toolset:0}},allowedNodeEnvironmentFlags:{},features:{inspector:!0,debug:!1,uv:!0,ipv6:!0,tls_alpn:!0,tls_sni:!0,tls_ocsp:!0,tls:!0,cached_builtins:!0},sourceMapsEnabled:!1,stdout:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:1,_isStdio:!0},stdin:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:2,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,fd:0},stderr:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:2,_isStdio:!0},env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_31bae965-5b37-417e-995d-88fe848eb99b",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v20.18.3 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_31bae965-5b37-417e-995d-88fe848eb99b",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/md/md/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"doocs",GRADLE_HOME:"/usr/share/gradle-8.12.1",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/28.0.13004108",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43716716",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/md/md",SYSTEMD_EXEC_PID:"834",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250223.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.12/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.6/x64",JOURNAL_STREAM:"8:4711",GITHUB_WORKFLOW:"Build and Deploy",_:"/opt/hostedtoolcache/node/20.18.3/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.3/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"13672707484",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"389519be8d7a34a99cf277513a533323efcd33fe",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",GITHUB_WORKFLOW_REF:"doocs/md/.github/workflows/build.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.3/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_17b3fd3d-f363-46e4-8b41-c0150e556773",INVOCATION_ID:"f649072f604740d6b111000a163ba948",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",npm_package_name:"md",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"505",GITHUB_TRIGGERING_ACTOR:"yanglbme",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub-Actions-1000003917",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"doocs/md",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"218952803",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"1.6.0",npm_lifecycle_event:"build:only",GITHUB_REF_PROTECTED:"true",GITHUB_WORKSPACE:"/home/runner/work/md/md",ACCEPT_EULA:"Y",GITHUB_JOB:"build-and-deploy",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"389519be8d7a34a99cf277513a533323efcd33fe",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"yanglbme",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.3/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_31bae965-5b37-417e-995d-88fe848eb99b",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/md/md",GITHUB_ACTOR_ID:"21008209",RUNNER_WORKSPACE:"/home/runner/work/md",npm_execpath:"/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_31bae965-5b37-417e-995d-88fe848eb99b",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.3/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_31bae965-5b37-417e-995d-88fe848eb99b",INIT_CWD:"/home/runner/work/md/md",EDITOR:"vi",NODE_ENV:"production",LAUNCH_EDITOR:"code"},title:"node",argv:["/opt/hostedtoolcache/node/20.18.3/x64/bin/node","/home/runner/work/md/md/node_modules/.bin/vite","build"],execArgv:[],pid:2188,ppid:2187,execPath:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",debugPort:9229,argv0:"node",_preload_modules:[],report:{directory:"",filename:"",compact:!1,excludeNetwork:!1,signal:"SIGUSR2",reportOnFatalError:!1,reportOnSignal:!1,reportOnUncaughtException:!1}},escapeForXML=escapeForXML_1,Stream=streamBrowserify.Stream,DEFAULT_INDENT=" ";function xml$1(Ra,ed){typeof ed!="object"&&(ed={indent:ed});var ud=ed.stream?new Stream:null,dd="",hd=!1,md=ed.indent?ed.indent===!0?DEFAULT_INDENT:ed.indent:"",gd=!0;function yd(Ld){gd?define_process_default$4.nextTick(Ld):Ld()}function vd(Ld,Ud){if(Ud!==void 0&&(dd+=Ud),Ld&&!hd&&(ud=ud||new Stream,hd=!0),Ld&&hd){var jd=dd;yd(function(){ud.emit("data",jd)}),dd=""}}function Cd(Ld,Ud){format(vd,resolve(Ld,md,md?1:0),Ud)}function wd(){if(ud){var Ld=dd;yd(function(){ud.emit("data",Ld),ud.emit("end"),ud.readable=!1,ud.emit("close")})}}function Nd(Ld){var Ud=Ld.encoding||"UTF-8",jd={version:"1.0",encoding:Ud};Ld.standalone&&(jd.standalone=Ld.standalone),Cd({"?xml":{_attr:jd}}),dd=dd.replace("/>","?>")}return yd(function(){gd=!1}),ed.declaration&&Nd(ed.declaration),Ra&&Ra.forEach?Ra.forEach(function(Ld,Ud){var jd;Ud+1===Ra.length&&(jd=wd),Cd(Ld,jd)}):Cd(Ra,wd),ud?(ud.readable=!0,ud):dd}function element(){var Ra=Array.prototype.slice.call(arguments),ed={_elem:resolve(Ra)};return ed.push=function(ud){if(!this.append)throw new Error("not assigned to a parent!");var dd=this,hd=this._elem.indent;format(this.append,resolve(ud,hd,this._elem.icount+(hd?1:0)),function(){dd.append(!0)})},ed.close=function(ud){ud!==void 0&&this.push(ud),this.end&&this.end()},ed}function create_indent(Ra,ed){return new Array(ed||0).join(Ra||"")}function resolve(Ra,ed,ud){ud=ud||0;var dd=create_indent(ed,ud),hd,md=Ra,gd=!1;if(typeof Ra=="object"){var yd=Object.keys(Ra);if(hd=yd[0],md=Ra[hd],md&&md._elem)return md._elem.name=hd,md._elem.icount=ud,md._elem.indent=ed,md._elem.indents=dd,md._elem.interrupt=md,md._elem}var vd=[],Cd=[],wd;function Nd(Ld){var Ud=Object.keys(Ld);Ud.forEach(function(jd){vd.push(attribute(jd,Ld[jd]))})}switch(typeof md){case"object":if(md===null)break;md._attr&&Nd(md._attr),md._cdata&&Cd.push(("/g,"]]]]>")+"]]>"),md.forEach&&(wd=!1,Cd.push(""),md.forEach(function(Ld){if(typeof Ld=="object"){var Ud=Object.keys(Ld)[0];Ud=="_attr"?Nd(Ld._attr):Cd.push(resolve(Ld,ed,ud+1))}else Cd.pop(),wd=!0,Cd.push(escapeForXML(Ld))}),wd||Cd.push(""));break;default:Cd.push(escapeForXML(md))}return{name:hd,interrupt:gd,attributes:vd,content:Cd,icount:ud,indents:dd,indent:ed}}function format(Ra,ed,ud){if(typeof ed!="object")return Ra(!1,ed);var dd=ed.interrupt?1:ed.content.length;function hd(){for(;ed.content.length;){var gd=ed.content.shift();if(gd!==void 0){if(md(gd))return;format(Ra,gd)}}Ra(!1,(dd>1?ed.indents:"")+(ed.name?"":"")+(ed.indent&&!ud?` +}`;var w_=LC(function(){return k_(Dm,o_+"return "+Og).apply(ud,zm)});if(w_.source=Og,GT(w_))throw w_;return w_}function uN(df){return W_(df).toLowerCase()}function cN(df){return W_(df).toUpperCase()}function dN(df,Sf,Mf){if(df=W_(df),df&&(Mf||Sf===ud))return e_(df);if(!df||!(Sf=Z0(Sf)))return df;var Th=Eb(df),lm=Eb(Sf),Dm=L_(Th,lm),zm=x0(Th,lm)+1;return Ay(Th,Dm,zm).join("")}function pN(df,Sf,Mf){if(df=W_(df),df&&(Mf||Sf===ud))return df.slice(0,mS(df)+1);if(!df||!(Sf=Z0(Sf)))return df;var Th=Eb(df),lm=x0(Th,Eb(Sf))+1;return Ay(Th,0,lm).join("")}function fN(df,Sf,Mf){if(df=W_(df),df&&(Mf||Sf===ud))return df.replace(P_,"");if(!df||!(Sf=Z0(Sf)))return df;var Th=Eb(df),lm=L_(Th,Eb(Sf));return Ay(Th,lm).join("")}function hN(df,Sf){var Mf=vf,Th=gf;if(g0(Sf)){var lm="separator"in Sf?Sf.separator:lm;Mf="length"in Sf?C_(Sf.length):Mf,Th="omission"in Sf?Z0(Sf.omission):Th}df=W_(df);var Dm=df.length;if(sE(df)){var zm=Eb(df);Dm=zm.length}if(Mf>=Dm)return df;var Km=Mf-oE(Th);if(Km<1)return Th;var ig=zm?Ay(zm,0,Km).join(""):df.slice(0,Km);if(lm===ud)return ig+Th;if(zm&&(Km+=ig.length-Km),VT(lm)){if(df.slice(Km).search(lm)){var Dg,Ng=ig;for(lm.global||(lm=GE(lm.source,W_(Lm.exec(lm))+"g")),lm.lastIndex=0;Dg=lm.exec(Ng);)var Og=Dg.index;ig=ig.slice(0,Og===ud?Km:Og)}}else if(df.indexOf(Z0(lm),Km)!=Km){var Zg=ig.lastIndexOf(lm);Zg>-1&&(ig=ig.slice(0,Zg))}return ig+Th}function mN(df){return df=W_(df),df&&Kg.test(df)?df.replace(vg,nx):df}var gN=IE(function(df,Sf,Mf){return df+(Mf?" ":"")+Sf.toUpperCase()}),YT=qx("toUpperCase");function PC(df,Sf,Mf){return df=W_(df),Sf=Mf?ud:Sf,Sf===ud?ex(df)?sx(df):fS(df):df.match(Sf)||[]}var LC=T_(function(df,Sf){try{return q0(df,ud,Sf)}catch(Mf){return GT(Mf)?Mf:new b_(Mf)}}),_N=Gb(function(df,Sf){return Y0(Sf,function(Mf){Mf=i0(Mf),Sy(df,Mf,HT(df[Mf],df))}),df});function yN(df){var Sf=df==null?0:df.length,Mf=c_();return df=Sf?X_(df,function(Th){if(typeof Th[1]!="function")throw new ub(gd);return[Mf(Th[0]),Th[1]]}):[],T_(function(Th){for(var lm=-1;++lmoh)return[];var Mf=Mh,Th=b0(df,Mh);Sf=c_(Sf),df-=Mh;for(var lm=Bg(Th,Sf);++Mf0||Sf<0)?new d_(Mf):(df<0?Mf=Mf.takeRight(-df):df&&(Mf=Mf.drop(df)),Sf!==ud&&(Sf=C_(Sf),Mf=Sf<0?Mf.dropRight(-Sf):Mf.take(Sf-df)),Mf)},d_.prototype.takeRightWhile=function(df){return this.reverse().takeWhile(df).reverse()},d_.prototype.toArray=function(){return this.take(Mh)},pb(d_.prototype,function(df,Sf){var Mf=/^(?:filter|find|map|reject)|While$/.test(Sf),Th=/^(?:head|last)$/.test(Sf),lm=gm[Th?"take"+(Sf=="last"?"Right":""):Sf],Dm=Th||/^find/.test(Sf);lm&&(gm.prototype[Sf]=function(){var zm=this.__wrapped__,Km=Th?[1]:arguments,ig=zm instanceof d_,Dg=Km[0],Ng=ig||x_(zm),Og=function(I_){var M_=lm.apply(gm,vb([I_],Km));return Th&&Zg?M_[0]:M_};Ng&&Mf&&typeof Dg=="function"&&Dg.length!=1&&(ig=Ng=!1);var Zg=this.__chain__,o_=!!this.__actions__.length,h_=Dm&&!Zg,w_=ig&&!o_;if(!Dm&&Ng){zm=w_?zm:new d_(this);var m_=df.apply(zm,Km);return m_.__actions__.push({func:Qx,args:[Og],thisArg:ud}),new H_(m_,Zg)}return h_&&w_?df.apply(this,Km):(m_=this.thru(Og),h_?Th?m_.value()[0]:m_.value():m_)})}),Y0(["pop","push","shift","sort","splice","unshift"],function(df){var Sf=N1[df],Mf=/^(?:push|sort|unshift)$/.test(df)?"tap":"thru",Th=/^(?:pop|shift)$/.test(df);gm.prototype[df]=function(){var lm=arguments;if(Th&&!this.__chain__){var Dm=this.value();return Sf.apply(x_(Dm)?Dm:[],lm)}return this[Mf](function(zm){return Sf.apply(x_(zm)?zm:[],lm)})}}),pb(d_.prototype,function(df,Sf){var Mf=gm[Sf];if(Mf){var Th=Mf.name+"";U_.call(Dv,Th)||(Dv[Th]=[]),Dv[Th].push({name:Sf,func:Mf})}}),Dv[W1(ud,zd).name]=[{name:"wrapper",func:ud}],d_.prototype.clone=T0,d_.prototype.reverse=KE,d_.prototype.value=mT,gm.prototype.at=UA,gm.prototype.chain=jA,gm.prototype.commit=HA,gm.prototype.next=qA,gm.prototype.plant=VA,gm.prototype.reverse=zA,gm.prototype.toJSON=gm.prototype.valueOf=gm.prototype.value=WA,gm.prototype.first=gm.prototype.head,xv&&(gm.prototype[xv]=GA),gm},Zb=gS();Jb?((Jb.exports=Zb)._=Zb,UE._=Zb):j_._=Zb}).call(commonjsGlobal)})(lodash,lodash.exports);var lodashExports=lodash.exports;const _=getDefaultExportFromCjs(lodashExports);var queryString={},strictUriEncode=Ra=>encodeURIComponent(Ra).replace(/[!'()*]/g,ed=>`%${ed.charCodeAt(0).toString(16).toUpperCase()}`),token="%[a-f0-9]{2}",singleMatcher=new RegExp("("+token+")|([^%]+?)","gi"),multiMatcher=new RegExp("("+token+")+","gi");function decodeComponents(Ra,ed){try{return[decodeURIComponent(Ra.join(""))]}catch{}if(Ra.length===1)return Ra;ed=ed||1;var ud=Ra.slice(0,ed),dd=Ra.slice(ed);return Array.prototype.concat.call([],decodeComponents(ud),decodeComponents(dd))}function decode(Ra){try{return decodeURIComponent(Ra)}catch{for(var ed=Ra.match(singleMatcher)||[],ud=1;ud{if(!(typeof Ra=="string"&&typeof ed=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(ed==="")return[Ra];const ud=Ra.indexOf(ed);return ud===-1?[Ra]:[Ra.slice(0,ud),Ra.slice(ud+ed.length)]},filterObj=function(Ra,ed){for(var ud={},dd=Object.keys(Ra),hd=Array.isArray(ed),md=0;mdqd==null,gd=Symbol("encodeFragmentIdentifier");function yd(qd){switch(qd.arrayFormat){case"index":return Wd=>(Xd,Jd)=>{const Zd=Xd.length;return Jd===void 0||qd.skipNull&&Jd===null||qd.skipEmptyString&&Jd===""?Xd:Jd===null?[...Xd,[wd(Wd,qd),"[",Zd,"]"].join("")]:[...Xd,[wd(Wd,qd),"[",wd(Zd,qd),"]=",wd(Jd,qd)].join("")]};case"bracket":return Wd=>(Xd,Jd)=>Jd===void 0||qd.skipNull&&Jd===null||qd.skipEmptyString&&Jd===""?Xd:Jd===null?[...Xd,[wd(Wd,qd),"[]"].join("")]:[...Xd,[wd(Wd,qd),"[]=",wd(Jd,qd)].join("")];case"colon-list-separator":return Wd=>(Xd,Jd)=>Jd===void 0||qd.skipNull&&Jd===null||qd.skipEmptyString&&Jd===""?Xd:Jd===null?[...Xd,[wd(Wd,qd),":list="].join("")]:[...Xd,[wd(Wd,qd),":list=",wd(Jd,qd)].join("")];case"comma":case"separator":case"bracket-separator":{const Wd=qd.arrayFormat==="bracket-separator"?"[]=":"=";return Xd=>(Jd,Zd)=>Zd===void 0||qd.skipNull&&Zd===null||qd.skipEmptyString&&Zd===""?Jd:(Zd=Zd===null?"":Zd,Jd.length===0?[[wd(Xd,qd),Wd,wd(Zd,qd)].join("")]:[[Jd,wd(Zd,qd)].join(qd.arrayFormatSeparator)])}default:return Wd=>(Xd,Jd)=>Jd===void 0||qd.skipNull&&Jd===null||qd.skipEmptyString&&Jd===""?Xd:Jd===null?[...Xd,wd(Wd,qd)]:[...Xd,[wd(Wd,qd),"=",wd(Jd,qd)].join("")]}}function vd(qd){let Wd;switch(qd.arrayFormat){case"index":return(Xd,Jd,Zd)=>{if(Wd=/\[(\d*)\]$/.exec(Xd),Xd=Xd.replace(/\[\d*\]$/,""),!Wd){Zd[Xd]=Jd;return}Zd[Xd]===void 0&&(Zd[Xd]={}),Zd[Xd][Wd[1]]=Jd};case"bracket":return(Xd,Jd,Zd)=>{if(Wd=/(\[\])$/.exec(Xd),Xd=Xd.replace(/\[\]$/,""),!Wd){Zd[Xd]=Jd;return}if(Zd[Xd]===void 0){Zd[Xd]=[Jd];return}Zd[Xd]=[].concat(Zd[Xd],Jd)};case"colon-list-separator":return(Xd,Jd,Zd)=>{if(Wd=/(:list)$/.exec(Xd),Xd=Xd.replace(/:list$/,""),!Wd){Zd[Xd]=Jd;return}if(Zd[Xd]===void 0){Zd[Xd]=[Jd];return}Zd[Xd]=[].concat(Zd[Xd],Jd)};case"comma":case"separator":return(Xd,Jd,Zd)=>{const mf=typeof Jd=="string"&&Jd.includes(qd.arrayFormatSeparator),xf=typeof Jd=="string"&&!mf&&Nd(Jd,qd).includes(qd.arrayFormatSeparator);Jd=xf?Nd(Jd,qd):Jd;const _f=mf||xf?Jd.split(qd.arrayFormatSeparator).map(vf=>Nd(vf,qd)):Jd===null?Jd:Nd(Jd,qd);Zd[Xd]=_f};case"bracket-separator":return(Xd,Jd,Zd)=>{const mf=/(\[\])$/.test(Xd);if(Xd=Xd.replace(/\[\]$/,""),!mf){Zd[Xd]=Jd&&Nd(Jd,qd);return}const xf=Jd===null?[]:Jd.split(qd.arrayFormatSeparator).map(_f=>Nd(_f,qd));if(Zd[Xd]===void 0){Zd[Xd]=xf;return}Zd[Xd]=[].concat(Zd[Xd],xf)};default:return(Xd,Jd,Zd)=>{if(Zd[Xd]===void 0){Zd[Xd]=Jd;return}Zd[Xd]=[].concat(Zd[Xd],Jd)}}}function Cd(qd){if(typeof qd!="string"||qd.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function wd(qd,Wd){return Wd.encode?Wd.strict?ed(qd):encodeURIComponent(qd):qd}function Nd(qd,Wd){return Wd.decode?ud(qd):qd}function Ld(qd){return Array.isArray(qd)?qd.sort():typeof qd=="object"?Ld(Object.keys(qd)).sort((Wd,Xd)=>Number(Wd)-Number(Xd)).map(Wd=>qd[Wd]):qd}function Ud(qd){const Wd=qd.indexOf("#");return Wd!==-1&&(qd=qd.slice(0,Wd)),qd}function jd(qd){let Wd="";const Xd=qd.indexOf("#");return Xd!==-1&&(Wd=qd.slice(Xd)),Wd}function Gd(qd){qd=Ud(qd);const Wd=qd.indexOf("?");return Wd===-1?"":qd.slice(Wd+1)}function Yd(qd,Wd){return Wd.parseNumbers&&!Number.isNaN(Number(qd))&&typeof qd=="string"&&qd.trim()!==""?qd=Number(qd):Wd.parseBooleans&&qd!==null&&(qd.toLowerCase()==="true"||qd.toLowerCase()==="false")&&(qd=qd.toLowerCase()==="true"),qd}function zd(qd,Wd){Wd=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},Wd),Cd(Wd.arrayFormatSeparator);const Xd=vd(Wd),Jd=Object.create(null);if(typeof qd!="string"||(qd=qd.trim().replace(/^[?#&]/,""),!qd))return Jd;for(const Zd of qd.split("&")){if(Zd==="")continue;let[mf,xf]=dd(Wd.decode?Zd.replace(/\+/g," "):Zd,"=");xf=xf===void 0?null:["comma","separator","bracket-separator"].includes(Wd.arrayFormat)?xf:Nd(xf,Wd),Xd(Nd(mf,Wd),xf,Jd)}for(const Zd of Object.keys(Jd)){const mf=Jd[Zd];if(typeof mf=="object"&&mf!==null)for(const xf of Object.keys(mf))mf[xf]=Yd(mf[xf],Wd);else Jd[Zd]=Yd(mf,Wd)}return Wd.sort===!1?Jd:(Wd.sort===!0?Object.keys(Jd).sort():Object.keys(Jd).sort(Wd.sort)).reduce((Zd,mf)=>{const xf=Jd[mf];return xf&&typeof xf=="object"&&!Array.isArray(xf)?Zd[mf]=Ld(xf):Zd[mf]=xf,Zd},Object.create(null))}Ra.extract=Gd,Ra.parse=zd,Ra.stringify=(qd,Wd)=>{if(!qd)return"";Wd=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},Wd),Cd(Wd.arrayFormatSeparator);const Xd=xf=>Wd.skipNull&&md(qd[xf])||Wd.skipEmptyString&&qd[xf]==="",Jd=yd(Wd),Zd={};for(const xf of Object.keys(qd))Xd(xf)||(Zd[xf]=qd[xf]);const mf=Object.keys(Zd);return Wd.sort!==!1&&mf.sort(Wd.sort),mf.map(xf=>{const _f=qd[xf];return _f===void 0?"":_f===null?wd(xf,Wd):Array.isArray(_f)?_f.length===0&&Wd.arrayFormat==="bracket-separator"?wd(xf,Wd)+"[]":_f.reduce(Jd(xf),[]).join("&"):wd(xf,Wd)+"="+wd(_f,Wd)}).filter(xf=>xf.length>0).join("&")},Ra.parseUrl=(qd,Wd)=>{Wd=Object.assign({decode:!0},Wd);const[Xd,Jd]=dd(qd,"#");return Object.assign({url:Xd.split("?")[0]||"",query:zd(Gd(qd),Wd)},Wd&&Wd.parseFragmentIdentifier&&Jd?{fragmentIdentifier:Nd(Jd,Wd)}:{})},Ra.stringifyUrl=(qd,Wd)=>{Wd=Object.assign({encode:!0,strict:!0,[gd]:!0},Wd);const Xd=Ud(qd.url).split("?")[0]||"",Jd=Ra.extract(qd.url),Zd=Ra.parse(Jd,{sort:!1}),mf=Object.assign(Zd,qd.query);let xf=Ra.stringify(mf,Wd);xf&&(xf=`?${xf}`);let _f=jd(qd.url);return qd.fragmentIdentifier&&(_f=`#${Wd[gd]?wd(qd.fragmentIdentifier,Wd):qd.fragmentIdentifier}`),`${Xd}${xf}${_f}`},Ra.pick=(qd,Wd,Xd)=>{Xd=Object.assign({parseFragmentIdentifier:!0,[gd]:!1},Xd);const{url:Jd,query:Zd,fragmentIdentifier:mf}=Ra.parseUrl(qd,Xd);return Ra.stringifyUrl({url:Jd,query:hd(Zd,Wd),fragmentIdentifier:mf},Xd)},Ra.exclude=(qd,Wd,Xd)=>{const Jd=Array.isArray(Wd)?Zd=>!Wd.includes(Zd):(Zd,mf)=>!Wd(Zd,mf);return Ra.pick(qd,Jd,Xd)}})(queryString);const Encoder=TextEncoder;var xml$2={exports:{}},XML_CHARACTER_MAP={"&":"&",'"':""","'":"'","<":"<",">":">"};function escapeForXML$1(Ra){return Ra&&Ra.replace?Ra.replace(/([&"<>'])/g,function(ed,ud){return XML_CHARACTER_MAP[ud]}):Ra}var escapeForXML_1=escapeForXML$1,define_process_default$4={version:"v20.18.3",versions:{node:"20.18.3",acorn:"8.14.0",ada:"2.9.2",ares:"1.34.4",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.15+quic",simdutf:"5.6.4",tz:"2024b",undici:"6.21.1",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.25",zlib:"1.3.0.1-motley-82a5fec"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.18.3/node-v20.18.3.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.18.3/node-v20.18.3-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule internal/util","NativeModule internal/util/types","NativeModule internal/validators","NativeModule internal/linkedlist","NativeModule internal/priority_queue","Internal Binding icu","NativeModule internal/util/inspect","NativeModule internal/util/debuglog","NativeModule internal/timers","NativeModule internal/events/abort_listener","NativeModule events","Internal Binding buffer","NativeModule internal/buffer","NativeModule buffer","Internal Binding messaging","NativeModule internal/worker/js_transferable","NativeModule internal/querystring","NativeModule internal/constants","NativeModule path","NativeModule querystring","Internal Binding url","NativeModule internal/url","NativeModule internal/fs/utils","Internal Binding process_methods","NativeModule internal/process/per_thread","Internal Binding credentials","NativeModule internal/process/promises","NativeModule internal/fixed_queue","NativeModule async_hooks","NativeModule internal/process/task_queues","NativeModule timers","Internal Binding trace_events","Internal Binding contextify","NativeModule internal/vm","NativeModule internal/process/execution","NativeModule internal/process/warning","NativeModule internal/source_map/source_map_cache","Internal Binding fs","Internal Binding blob","Internal Binding encoding_binding","NativeModule internal/encoding","NativeModule internal/streams/utils","NativeModule util","NativeModule internal/webstreams/util","NativeModule internal/webstreams/queuingstrategies","NativeModule internal/blob","Internal Binding permission","NativeModule internal/process/permission","NativeModule fs","NativeModule internal/modules/helpers","NativeModule internal/console/constructor","NativeModule internal/console/global","NativeModule internal/util/inspector","Internal Binding inspector","NativeModule internal/webidl","Internal Binding performance","NativeModule internal/perf/utils","NativeModule internal/event_target","Internal Binding wasm_web_api","Internal Binding mksnapshot","NativeModule internal/v8/startup_snapshot","NativeModule internal/process/signal","NativeModule url","NativeModule internal/modules/package_json_reader","NativeModule internal/modules/cjs/loader","NativeModule internal/process/pre_execution","NativeModule internal/modules/esm/utils","NativeModule internal/inspector_async_hook","Internal Binding worker","NativeModule internal/modules/run_main","NativeModule internal/net","NativeModule internal/dns/utils","NativeModule internal/modules/esm/assert","NativeModule internal/modules/esm/loader","NativeModule internal/modules/esm/module_map","NativeModule internal/modules/esm/translators","NativeModule internal/modules/esm/package_config","NativeModule internal/modules/esm/formats","NativeModule internal/modules/esm/get_format","NativeModule internal/modules/esm/resolve","NativeModule internal/modules/esm/module_job","NativeModule internal/modules/esm/load","Internal Binding fs_dir","NativeModule internal/fs/dir","NativeModule string_decoder","Internal Binding fs_event_wrap","Internal Binding uv","NativeModule internal/fs/watchers","NativeModule internal/fs/recursive_watch","NativeModule internal/readline/utils","NativeModule internal/readline/callbacks","NativeModule internal/readline/interface","NativeModule internal/fs/promises","NativeModule internal/perf/performance_entry","NativeModule internal/perf/observe","NativeModule internal/perf/resource_timing","NativeModule internal/perf/nodetiming","NativeModule internal/perf/usertiming","NativeModule internal/perf/event_loop_utilization","NativeModule internal/histogram","NativeModule internal/perf/timerify","NativeModule internal/perf/performance","NativeModule internal/perf/event_loop_delay","NativeModule perf_hooks","NativeModule internal/modules/esm/initialize_import_meta","NativeModule internal/streams/destroy","NativeModule internal/abort_controller","NativeModule internal/streams/end-of-stream","NativeModule internal/streams/legacy","NativeModule internal/streams/add-abort-signal","NativeModule internal/streams/state","NativeModule internal/streams/from","NativeModule internal/streams/readable","NativeModule internal/streams/writable","NativeModule internal/streams/duplex","NativeModule internal/streams/pipeline","NativeModule internal/streams/compose","NativeModule internal/streams/operators","NativeModule stream/promises","NativeModule internal/streams/transform","NativeModule internal/streams/passthrough","NativeModule internal/streams/duplexpair","NativeModule stream","NativeModule internal/fs/streams","NativeModule fs/promises","NativeModule internal/util/parse_args/utils","NativeModule internal/util/parse_args/parse_args","NativeModule internal/mime","NativeModule internal/source_map/source_map","NativeModule module","Internal Binding crypto","NativeModule internal/crypto/random","NativeModule internal/crypto/hashnames","NativeModule internal/crypto/util","NativeModule internal/crypto/pbkdf2","NativeModule internal/crypto/scrypt","NativeModule internal/crypto/keys","NativeModule internal/crypto/hkdf","NativeModule internal/crypto/keygen","NativeModule internal/crypto/diffiehellman","NativeModule internal/streams/lazy_transform","NativeModule internal/crypto/cipher","NativeModule internal/crypto/sig","NativeModule internal/crypto/hash","NativeModule internal/crypto/x509","NativeModule internal/crypto/certificate","NativeModule crypto","NativeModule internal/crypto/webcrypto","Internal Binding stream_wrap","Internal Binding tcp_wrap","Internal Binding pipe_wrap","NativeModule internal/stream_base_commons","NativeModule diagnostics_channel","NativeModule net","Internal Binding tty_wrap","NativeModule internal/tty","NativeModule tty","NativeModule internal/deps/cjs-module-lexer/dist/lexer","Internal Binding udp_wrap","NativeModule internal/dgram","NativeModule dgram","Internal Binding process_wrap","NativeModule internal/socket_list","Internal Binding spawn_sync","NativeModule internal/child_process","NativeModule child_process","NativeModule _http_agent","Internal Binding http_parser","NativeModule internal/freelist","NativeModule _http_incoming","NativeModule _http_common","NativeModule internal/http","NativeModule _http_outgoing","NativeModule _http_client","NativeModule _http_server","NativeModule http","Internal Binding cares_wrap","NativeModule internal/tls/secure-context","NativeModule _tls_common","Internal Binding js_stream","NativeModule internal/js_stream_socket","Internal Binding tls_wrap","NativeModule _tls_wrap","NativeModule internal/tls/secure-pair","NativeModule tls","NativeModule https","Internal Binding block_list","NativeModule internal/socketaddress","NativeModule internal/blocklist","Internal Binding os","NativeModule os","NativeModule internal/dns/callback_resolver","NativeModule dns","NativeModule internal/dns/promises","NativeModule internal/util/colors","NativeModule internal/assert/assertion_error","NativeModule internal/assert/utils","NativeModule internal/assert/calltracker","NativeModule assert","Internal Binding serdes","Internal Binding profiler","Internal Binding heap_utils","Internal Binding internal_only_v8","NativeModule internal/heap_utils","NativeModule internal/promise_hooks","Internal Binding v8","NativeModule v8","NativeModule internal/worker/io","NativeModule internal/error_serdes","NativeModule internal/worker","NativeModule worker_threads","NativeModule internal/file","NativeModule internal/readline/emitKeypressEvents","NativeModule internal/readline/promises","NativeModule readline/promises","NativeModule readline","Internal Binding zlib","NativeModule zlib","NativeModule process","Internal Binding report","NativeModule internal/process/report","NativeModule constants","NativeModule internal/crypto/webidl"],_events:{newListener:[null,null],removeListener:[null,null]},_eventsCount:3,domain:null,_exiting:!1,config:{target_defaults:{cflags:[],default_configuration:"Release",defines:["NODE_OPENSSL_CONF_NAME=nodejs_conf","NODE_OPENSSL_HAS_QUIC","ICU_NO_USER_DATA_OVERRIDE"],include_dirs:[],libraries:[]},variables:{asan:0,clang:0,coverage:!1,dcheck_always_on:0,debug_nghttp2:!1,debug_node:!1,enable_lto:!1,enable_pgo_generate:!1,enable_pgo_use:!1,error_on_warn:!1,force_dynamic_crt:0,gas_version:"2.35",host_arch:"x64",icu_data_in:"../../deps/icu-tmp/icudt75l.dat",icu_endianness:"l",icu_gyp_path:"tools/icu/icu-generic.gyp",icu_path:"deps/icu-small",icu_small:!1,icu_ver_major:"75",is_debug:0,libdir:"lib",llvm_version:"0.0",napi_build_version:"9",node_builtin_shareable_builtins:["deps/cjs-module-lexer/lexer.js","deps/cjs-module-lexer/dist/lexer.js","deps/undici/undici.js"],node_byteorder:"little",node_debug_lib:!1,node_enable_d8:!1,node_enable_v8_vtunejit:!1,node_fipsinstall:!1,node_install_corepack:!0,node_install_npm:!0,node_library_files:["lib/_http_agent.js","lib/_http_client.js","lib/_http_common.js","lib/_http_incoming.js","lib/_http_outgoing.js","lib/_http_server.js","lib/_stream_duplex.js","lib/_stream_passthrough.js","lib/_stream_readable.js","lib/_stream_transform.js","lib/_stream_wrap.js","lib/_stream_writable.js","lib/_tls_common.js","lib/_tls_wrap.js","lib/assert.js","lib/assert/strict.js","lib/async_hooks.js","lib/buffer.js","lib/child_process.js","lib/cluster.js","lib/console.js","lib/constants.js","lib/crypto.js","lib/dgram.js","lib/diagnostics_channel.js","lib/dns.js","lib/dns/promises.js","lib/domain.js","lib/events.js","lib/fs.js","lib/fs/promises.js","lib/http.js","lib/http2.js","lib/https.js","lib/inspector.js","lib/inspector/promises.js","lib/internal/abort_controller.js","lib/internal/assert.js","lib/internal/assert/assertion_error.js","lib/internal/assert/calltracker.js","lib/internal/assert/utils.js","lib/internal/async_hooks.js","lib/internal/blob.js","lib/internal/blocklist.js","lib/internal/bootstrap/node.js","lib/internal/bootstrap/realm.js","lib/internal/bootstrap/shadow_realm.js","lib/internal/bootstrap/switches/does_not_own_process_state.js","lib/internal/bootstrap/switches/does_own_process_state.js","lib/internal/bootstrap/switches/is_main_thread.js","lib/internal/bootstrap/switches/is_not_main_thread.js","lib/internal/bootstrap/web/exposed-wildcard.js","lib/internal/bootstrap/web/exposed-window-or-worker.js","lib/internal/buffer.js","lib/internal/child_process.js","lib/internal/child_process/serialization.js","lib/internal/cli_table.js","lib/internal/cluster/child.js","lib/internal/cluster/primary.js","lib/internal/cluster/round_robin_handle.js","lib/internal/cluster/shared_handle.js","lib/internal/cluster/utils.js","lib/internal/cluster/worker.js","lib/internal/console/constructor.js","lib/internal/console/global.js","lib/internal/constants.js","lib/internal/crypto/aes.js","lib/internal/crypto/certificate.js","lib/internal/crypto/cfrg.js","lib/internal/crypto/cipher.js","lib/internal/crypto/diffiehellman.js","lib/internal/crypto/ec.js","lib/internal/crypto/hash.js","lib/internal/crypto/hashnames.js","lib/internal/crypto/hkdf.js","lib/internal/crypto/keygen.js","lib/internal/crypto/keys.js","lib/internal/crypto/mac.js","lib/internal/crypto/pbkdf2.js","lib/internal/crypto/random.js","lib/internal/crypto/rsa.js","lib/internal/crypto/scrypt.js","lib/internal/crypto/sig.js","lib/internal/crypto/util.js","lib/internal/crypto/webcrypto.js","lib/internal/crypto/webidl.js","lib/internal/crypto/x509.js","lib/internal/debugger/inspect.js","lib/internal/debugger/inspect_client.js","lib/internal/debugger/inspect_repl.js","lib/internal/dgram.js","lib/internal/dns/callback_resolver.js","lib/internal/dns/promises.js","lib/internal/dns/utils.js","lib/internal/encoding.js","lib/internal/error_serdes.js","lib/internal/errors.js","lib/internal/event_target.js","lib/internal/events/abort_listener.js","lib/internal/events/symbols.js","lib/internal/file.js","lib/internal/fixed_queue.js","lib/internal/freelist.js","lib/internal/freeze_intrinsics.js","lib/internal/fs/cp/cp-sync.js","lib/internal/fs/cp/cp.js","lib/internal/fs/dir.js","lib/internal/fs/promises.js","lib/internal/fs/read/context.js","lib/internal/fs/recursive_watch.js","lib/internal/fs/rimraf.js","lib/internal/fs/streams.js","lib/internal/fs/sync_write_stream.js","lib/internal/fs/utils.js","lib/internal/fs/watchers.js","lib/internal/heap_utils.js","lib/internal/histogram.js","lib/internal/http.js","lib/internal/http2/compat.js","lib/internal/http2/core.js","lib/internal/http2/util.js","lib/internal/inspector_async_hook.js","lib/internal/inspector_network_tracking.js","lib/internal/js_stream_socket.js","lib/internal/legacy/processbinding.js","lib/internal/linkedlist.js","lib/internal/main/check_syntax.js","lib/internal/main/embedding.js","lib/internal/main/eval_stdin.js","lib/internal/main/eval_string.js","lib/internal/main/inspect.js","lib/internal/main/mksnapshot.js","lib/internal/main/print_help.js","lib/internal/main/prof_process.js","lib/internal/main/repl.js","lib/internal/main/run_main_module.js","lib/internal/main/test_runner.js","lib/internal/main/watch_mode.js","lib/internal/main/worker_thread.js","lib/internal/mime.js","lib/internal/modules/cjs/loader.js","lib/internal/modules/esm/assert.js","lib/internal/modules/esm/create_dynamic_module.js","lib/internal/modules/esm/fetch_module.js","lib/internal/modules/esm/formats.js","lib/internal/modules/esm/get_format.js","lib/internal/modules/esm/hooks.js","lib/internal/modules/esm/initialize_import_meta.js","lib/internal/modules/esm/load.js","lib/internal/modules/esm/loader.js","lib/internal/modules/esm/module_job.js","lib/internal/modules/esm/module_map.js","lib/internal/modules/esm/package_config.js","lib/internal/modules/esm/resolve.js","lib/internal/modules/esm/shared_constants.js","lib/internal/modules/esm/translators.js","lib/internal/modules/esm/utils.js","lib/internal/modules/esm/worker.js","lib/internal/modules/helpers.js","lib/internal/modules/package_json_reader.js","lib/internal/modules/run_main.js","lib/internal/navigator.js","lib/internal/net.js","lib/internal/options.js","lib/internal/per_context/domexception.js","lib/internal/per_context/messageport.js","lib/internal/per_context/primordials.js","lib/internal/perf/event_loop_delay.js","lib/internal/perf/event_loop_utilization.js","lib/internal/perf/nodetiming.js","lib/internal/perf/observe.js","lib/internal/perf/performance.js","lib/internal/perf/performance_entry.js","lib/internal/perf/resource_timing.js","lib/internal/perf/timerify.js","lib/internal/perf/usertiming.js","lib/internal/perf/utils.js","lib/internal/policy/manifest.js","lib/internal/policy/sri.js","lib/internal/priority_queue.js","lib/internal/process/execution.js","lib/internal/process/per_thread.js","lib/internal/process/permission.js","lib/internal/process/policy.js","lib/internal/process/pre_execution.js","lib/internal/process/promises.js","lib/internal/process/report.js","lib/internal/process/signal.js","lib/internal/process/task_queues.js","lib/internal/process/warning.js","lib/internal/process/worker_thread_only.js","lib/internal/promise_hooks.js","lib/internal/querystring.js","lib/internal/readline/callbacks.js","lib/internal/readline/emitKeypressEvents.js","lib/internal/readline/interface.js","lib/internal/readline/promises.js","lib/internal/readline/utils.js","lib/internal/repl.js","lib/internal/repl/await.js","lib/internal/repl/history.js","lib/internal/repl/utils.js","lib/internal/socket_list.js","lib/internal/socketaddress.js","lib/internal/source_map/prepare_stack_trace.js","lib/internal/source_map/source_map.js","lib/internal/source_map/source_map_cache.js","lib/internal/stream_base_commons.js","lib/internal/streams/add-abort-signal.js","lib/internal/streams/compose.js","lib/internal/streams/destroy.js","lib/internal/streams/duplex.js","lib/internal/streams/duplexify.js","lib/internal/streams/duplexpair.js","lib/internal/streams/end-of-stream.js","lib/internal/streams/from.js","lib/internal/streams/lazy_transform.js","lib/internal/streams/legacy.js","lib/internal/streams/operators.js","lib/internal/streams/passthrough.js","lib/internal/streams/pipeline.js","lib/internal/streams/readable.js","lib/internal/streams/state.js","lib/internal/streams/transform.js","lib/internal/streams/utils.js","lib/internal/streams/writable.js","lib/internal/test/binding.js","lib/internal/test/transfer.js","lib/internal/test_runner/coverage.js","lib/internal/test_runner/harness.js","lib/internal/test_runner/mock/loader.js","lib/internal/test_runner/mock/mock.js","lib/internal/test_runner/mock/mock_timers.js","lib/internal/test_runner/reporter/dot.js","lib/internal/test_runner/reporter/junit.js","lib/internal/test_runner/reporter/lcov.js","lib/internal/test_runner/reporter/spec.js","lib/internal/test_runner/reporter/tap.js","lib/internal/test_runner/reporter/utils.js","lib/internal/test_runner/reporter/v8-serializer.js","lib/internal/test_runner/runner.js","lib/internal/test_runner/test.js","lib/internal/test_runner/tests_stream.js","lib/internal/test_runner/utils.js","lib/internal/timers.js","lib/internal/tls/secure-context.js","lib/internal/tls/secure-pair.js","lib/internal/trace_events_async_hooks.js","lib/internal/tty.js","lib/internal/url.js","lib/internal/util.js","lib/internal/util/colors.js","lib/internal/util/comparisons.js","lib/internal/util/debuglog.js","lib/internal/util/embedding.js","lib/internal/util/inspect.js","lib/internal/util/inspector.js","lib/internal/util/iterable_weak_map.js","lib/internal/util/parse_args/parse_args.js","lib/internal/util/parse_args/utils.js","lib/internal/util/types.js","lib/internal/v8/startup_snapshot.js","lib/internal/v8_prof_polyfill.js","lib/internal/v8_prof_processor.js","lib/internal/validators.js","lib/internal/vm.js","lib/internal/vm/module.js","lib/internal/wasm_web_api.js","lib/internal/watch_mode/files_watcher.js","lib/internal/watchdog.js","lib/internal/webidl.js","lib/internal/webstreams/adapters.js","lib/internal/webstreams/compression.js","lib/internal/webstreams/encoding.js","lib/internal/webstreams/queuingstrategies.js","lib/internal/webstreams/readablestream.js","lib/internal/webstreams/transfer.js","lib/internal/webstreams/transformstream.js","lib/internal/webstreams/util.js","lib/internal/webstreams/writablestream.js","lib/internal/worker.js","lib/internal/worker/io.js","lib/internal/worker/js_transferable.js","lib/module.js","lib/net.js","lib/os.js","lib/path.js","lib/path/posix.js","lib/path/win32.js","lib/perf_hooks.js","lib/process.js","lib/punycode.js","lib/querystring.js","lib/readline.js","lib/readline/promises.js","lib/repl.js","lib/sea.js","lib/stream.js","lib/stream/consumers.js","lib/stream/promises.js","lib/stream/web.js","lib/string_decoder.js","lib/sys.js","lib/test.js","lib/test/reporters.js","lib/timers.js","lib/timers/promises.js","lib/tls.js","lib/trace_events.js","lib/tty.js","lib/url.js","lib/util.js","lib/util/types.js","lib/v8.js","lib/vm.js","lib/wasi.js","lib/worker_threads.js","lib/zlib.js"],node_module_version:115,node_no_browser_globals:!1,node_prefix:"/",node_release_urlbase:"https://nodejs.org/download/release/",node_section_ordering_info:"",node_shared:!1,node_shared_ada:!1,node_shared_brotli:!1,node_shared_cares:!1,node_shared_http_parser:!1,node_shared_libuv:!1,node_shared_nghttp2:!1,node_shared_nghttp3:!1,node_shared_ngtcp2:!1,node_shared_openssl:!1,node_shared_simdjson:!1,node_shared_simdutf:!1,node_shared_uvwasi:!1,node_shared_zlib:!1,node_tag:"",node_target_type:"executable",node_use_bundled_v8:!0,node_use_node_code_cache:!0,node_use_node_snapshot:!0,node_use_openssl:!0,node_use_v8_platform:!0,node_with_ltcg:!1,node_without_node_options:!1,node_write_snapshot_as_array_literals:!1,openssl_is_fips:!1,openssl_quic:!0,ossfuzz:!1,shlib_suffix:"so.115",single_executable_application:!0,target_arch:"x64",ubsan:0,use_prefix_to_find_headers:!1,v8_enable_31bit_smis_on_64bit_arch:0,v8_enable_extensible_ro_snapshot:0,v8_enable_gdbjit:0,v8_enable_hugepage:0,v8_enable_i18n_support:1,v8_enable_inspector:1,v8_enable_javascript_promise_hooks:1,v8_enable_lite_mode:0,v8_enable_maglev:0,v8_enable_object_print:1,v8_enable_pointer_compression:0,v8_enable_sandbox:0,v8_enable_shared_ro_heap:1,v8_enable_short_builtin_calls:1,v8_enable_v8_checks:0,v8_enable_webassembly:1,v8_no_strict_aliasing:1,v8_optimized_debug:1,v8_promise_internal_field_count:1,v8_random_seed:0,v8_trace_maps:0,v8_use_siphash:1,want_separate_host_toolset:0}},allowedNodeEnvironmentFlags:{},features:{inspector:!0,debug:!1,uv:!0,ipv6:!0,tls_alpn:!0,tls_sni:!0,tls_ocsp:!0,tls:!0,cached_builtins:!0},sourceMapsEnabled:!1,stdout:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:1,_isStdio:!0},stdin:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:2,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,fd:0},stderr:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:2,_isStdio:!0},env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_7d0927af-a53f-46dd-8cfd-0e9ad29a5452",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v20.18.3 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_7d0927af-a53f-46dd-8cfd-0e9ad29a5452",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/md/md/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"doocs",GRADLE_HOME:"/usr/share/gradle-8.13",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/28.0.13004108",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43716716",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/md/md",SYSTEMD_EXEC_PID:"830",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250302.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.12/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.6/x64",JOURNAL_STREAM:"8:7073",GITHUB_WORKFLOW:"Build and Deploy",_:"/opt/hostedtoolcache/node/20.18.3/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.3/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"13738114923",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"b0ab984ebd1ab95b558bace366604e15551deff3",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",GITHUB_WORKFLOW_REF:"doocs/md/.github/workflows/build.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.3/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_fdf857ee-5fee-4fd4-98a2-63d82b9097a4",INVOCATION_ID:"f51a27b48d5b436ea3bda1f4cbbbb859",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",npm_package_name:"md",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"506",GITHUB_TRIGGERING_ACTOR:"yanglbme",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub-Actions-1000004055",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"doocs/md",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"218952803",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"1.6.0",npm_lifecycle_event:"build:only",GITHUB_REF_PROTECTED:"true",GITHUB_WORKSPACE:"/home/runner/work/md/md",ACCEPT_EULA:"Y",GITHUB_JOB:"build-and-deploy",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"b0ab984ebd1ab95b558bace366604e15551deff3",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"yanglbme",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.3/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_7d0927af-a53f-46dd-8cfd-0e9ad29a5452",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/md/md",GITHUB_ACTOR_ID:"21008209",RUNNER_WORKSPACE:"/home/runner/work/md",npm_execpath:"/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_7d0927af-a53f-46dd-8cfd-0e9ad29a5452",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.3/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_7d0927af-a53f-46dd-8cfd-0e9ad29a5452",INIT_CWD:"/home/runner/work/md/md",EDITOR:"vi",NODE_ENV:"production",LAUNCH_EDITOR:"code"},title:"node",argv:["/opt/hostedtoolcache/node/20.18.3/x64/bin/node","/home/runner/work/md/md/node_modules/.bin/vite","build"],execArgv:[],pid:2179,ppid:2178,execPath:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",debugPort:9229,argv0:"node",_preload_modules:[],report:{directory:"",filename:"",compact:!1,excludeNetwork:!1,signal:"SIGUSR2",reportOnFatalError:!1,reportOnSignal:!1,reportOnUncaughtException:!1}},escapeForXML=escapeForXML_1,Stream=streamBrowserify.Stream,DEFAULT_INDENT=" ";function xml$1(Ra,ed){typeof ed!="object"&&(ed={indent:ed});var ud=ed.stream?new Stream:null,dd="",hd=!1,md=ed.indent?ed.indent===!0?DEFAULT_INDENT:ed.indent:"",gd=!0;function yd(Ld){gd?define_process_default$4.nextTick(Ld):Ld()}function vd(Ld,Ud){if(Ud!==void 0&&(dd+=Ud),Ld&&!hd&&(ud=ud||new Stream,hd=!0),Ld&&hd){var jd=dd;yd(function(){ud.emit("data",jd)}),dd=""}}function Cd(Ld,Ud){format(vd,resolve(Ld,md,md?1:0),Ud)}function wd(){if(ud){var Ld=dd;yd(function(){ud.emit("data",Ld),ud.emit("end"),ud.readable=!1,ud.emit("close")})}}function Nd(Ld){var Ud=Ld.encoding||"UTF-8",jd={version:"1.0",encoding:Ud};Ld.standalone&&(jd.standalone=Ld.standalone),Cd({"?xml":{_attr:jd}}),dd=dd.replace("/>","?>")}return yd(function(){gd=!1}),ed.declaration&&Nd(ed.declaration),Ra&&Ra.forEach?Ra.forEach(function(Ld,Ud){var jd;Ud+1===Ra.length&&(jd=wd),Cd(Ld,jd)}):Cd(Ra,wd),ud?(ud.readable=!0,ud):dd}function element(){var Ra=Array.prototype.slice.call(arguments),ed={_elem:resolve(Ra)};return ed.push=function(ud){if(!this.append)throw new Error("not assigned to a parent!");var dd=this,hd=this._elem.indent;format(this.append,resolve(ud,hd,this._elem.icount+(hd?1:0)),function(){dd.append(!0)})},ed.close=function(ud){ud!==void 0&&this.push(ud),this.end&&this.end()},ed}function create_indent(Ra,ed){return new Array(ed||0).join(Ra||"")}function resolve(Ra,ed,ud){ud=ud||0;var dd=create_indent(ed,ud),hd,md=Ra,gd=!1;if(typeof Ra=="object"){var yd=Object.keys(Ra);if(hd=yd[0],md=Ra[hd],md&&md._elem)return md._elem.name=hd,md._elem.icount=ud,md._elem.indent=ed,md._elem.indents=dd,md._elem.interrupt=md,md._elem}var vd=[],Cd=[],wd;function Nd(Ld){var Ud=Object.keys(Ld);Ud.forEach(function(jd){vd.push(attribute(jd,Ld[jd]))})}switch(typeof md){case"object":if(md===null)break;md._attr&&Nd(md._attr),md._cdata&&Cd.push(("/g,"]]]]>")+"]]>"),md.forEach&&(wd=!1,Cd.push(""),md.forEach(function(Ld){if(typeof Ld=="object"){var Ud=Object.keys(Ld)[0];Ud=="_attr"?Nd(Ld._attr):Cd.push(resolve(Ld,ed,ud+1))}else Cd.pop(),wd=!0,Cd.push(escapeForXML(Ld))}),wd||Cd.push(""));break;default:Cd.push(escapeForXML(md))}return{name:hd,interrupt:gd,attributes:vd,content:Cd,icount:ud,indents:dd,indent:ed}}function format(Ra,ed,ud){if(typeof ed!="object")return Ra(!1,ed);var dd=ed.interrupt?1:ed.content.length;function hd(){for(;ed.content.length;){var gd=ed.content.shift();if(gd!==void 0){if(md(gd))return;format(Ra,gd)}}Ra(!1,(dd>1?ed.indents:"")+(ed.name?"":"")+(ed.indent&&!ud?` `:"")),ud&&ud()}function md(gd){return gd.interrupt?(gd.interrupt.append=Ra,gd.interrupt.end=hd,gd.interrupt=!1,Ra(!0),!0):!1}if(Ra(!1,ed.indents+(ed.name?"<"+ed.name:"")+(ed.attributes.length?" "+ed.attributes.join(" "):"")+(dd?ed.name?">":"":ed.name?"/>":"")+(ed.indent&&dd>1?` `:"")),!dd)return Ra(!1,ed.indent?` `:"");md(ed)||hd()}function attribute(Ra,ed){return Ra+'="'+escapeForXML(ed)+'"'}xml$2.exports=xml$1;xml$2.exports.element=xml$2.exports.Element=element;var xmlExports=xml$2.exports;const Xml=getDefaultExportFromCjs(xmlExports);var xml2js={},defaults={},hasRequiredDefaults;function requireDefaults(){return hasRequiredDefaults||(hasRequiredDefaults=1,(function(){defaults.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:` -`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(commonjsGlobal)),defaults}var builder={},lib$2={},Utility={},hasRequiredUtility;function requireUtility(){return hasRequiredUtility||(hasRequiredUtility=1,(function(){var Ra,ed,ud,dd,hd,md,gd,yd=[].slice,vd={}.hasOwnProperty;Ra=function(){var Cd,wd,Nd,Ld,Ud,jd;if(jd=arguments[0],Ud=2<=arguments.length?yd.call(arguments,1):[],hd(Object.assign))Object.assign.apply(null,arguments);else for(Cd=0,Nd=Ud.length;Cd":"attribute: {"+ud+"}, parent: <"+this.parent.name+">"},ed.prototype.isEqualNode=function(ud){return!(ud.namespaceURI!==this.namespaceURI||ud.prefix!==this.prefix||ud.localName!==this.localName||ud.value!==this.value)},ed}()}).call(commonjsGlobal)),XMLAttribute.exports}var XMLNamedNodeMap={exports:{}},hasRequiredXMLNamedNodeMap;function requireXMLNamedNodeMap(){return hasRequiredXMLNamedNodeMap||(hasRequiredXMLNamedNodeMap=1,(function(){XMLNamedNodeMap.exports=function(){function Ra(ed){this.nodes=ed}return Object.defineProperty(Ra.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),Ra.prototype.clone=function(){return this.nodes=null},Ra.prototype.getNamedItem=function(ed){return this.nodes[ed]},Ra.prototype.setNamedItem=function(ed){var ud;return ud=this.nodes[ed.nodeName],this.nodes[ed.nodeName]=ed,ud||null},Ra.prototype.removeNamedItem=function(ed){var ud;return ud=this.nodes[ed],delete this.nodes[ed],ud||null},Ra.prototype.item=function(ed){return this.nodes[Object.keys(this.nodes)[ed]]||null},Ra.prototype.getNamedItemNS=function(ed,ud){throw new Error("This DOM method is not implemented.")},Ra.prototype.setNamedItemNS=function(ed){throw new Error("This DOM method is not implemented.")},Ra.prototype.removeNamedItemNS=function(ed,ud){throw new Error("This DOM method is not implemented.")},Ra}()}).call(commonjsGlobal)),XMLNamedNodeMap.exports}var hasRequiredXMLElement;function requireXMLElement(){return hasRequiredXMLElement||(hasRequiredXMLElement=1,(function(){var Ra,ed,ud,dd,hd,md,gd,yd,vd=function(wd,Nd){for(var Ld in Nd)Cd.call(Nd,Ld)&&(wd[Ld]=Nd[Ld]);function Ud(){this.constructor=wd}return Ud.prototype=Nd.prototype,wd.prototype=new Ud,wd.__super__=Nd.prototype,wd},Cd={}.hasOwnProperty;yd=requireUtility(),gd=yd.isObject,md=yd.isFunction,hd=yd.getValue,dd=requireXMLNode(),Ra=requireNodeType(),ed=requireXMLAttribute(),ud=requireXMLNamedNodeMap(),XMLElement.exports=function(wd){vd(Nd,wd);function Nd(Ld,Ud,jd){var Gd,Yd,zd,qd;if(Nd.__super__.constructor.call(this,Ld),Ud==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(Ud),this.type=Ra.Element,this.attribs={},this.schemaTypeInfo=null,jd!=null&&this.attribute(jd),Ld.type===Ra.Document&&(this.isRoot=!0,this.documentObject=Ld,Ld.rootObject=this,Ld.children)){for(qd=Ld.children,Yd=0,zd=qd.length;Yd=Gd;Ud=0<=Gd?++jd:--jd)if(!this.attribs[Ud].isEqualNode(Ld.attribs[Ud]))return!1;return!0},Nd}(dd)}).call(commonjsGlobal)),XMLElement.exports}var XMLCData={exports:{}},XMLCharacterData={exports:{}},hasRequiredXMLCharacterData;function requireXMLCharacterData(){return hasRequiredXMLCharacterData||(hasRequiredXMLCharacterData=1,(function(){var Ra,ed=function(dd,hd){for(var md in hd)ud.call(hd,md)&&(dd[md]=hd[md]);function gd(){this.constructor=dd}return gd.prototype=hd.prototype,dd.prototype=new gd,dd.__super__=hd.prototype,dd},ud={}.hasOwnProperty;Ra=requireXMLNode(),XMLCharacterData.exports=function(dd){ed(hd,dd);function hd(md){hd.__super__.constructor.call(this,md),this.value=""}return Object.defineProperty(hd.prototype,"data",{get:function(){return this.value},set:function(md){return this.value=md||""}}),Object.defineProperty(hd.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(hd.prototype,"textContent",{get:function(){return this.value},set:function(md){return this.value=md||""}}),hd.prototype.clone=function(){return Object.create(this)},hd.prototype.substringData=function(md,gd){throw new Error("This DOM method is not implemented."+this.debugInfo())},hd.prototype.appendData=function(md){throw new Error("This DOM method is not implemented."+this.debugInfo())},hd.prototype.insertData=function(md,gd){throw new Error("This DOM method is not implemented."+this.debugInfo())},hd.prototype.deleteData=function(md,gd){throw new Error("This DOM method is not implemented."+this.debugInfo())},hd.prototype.replaceData=function(md,gd,yd){throw new Error("This DOM method is not implemented."+this.debugInfo())},hd.prototype.isEqualNode=function(md){return!(!hd.__super__.isEqualNode.apply(this,arguments).isEqualNode(md)||md.data!==this.data)},hd}(Ra)}).call(commonjsGlobal)),XMLCharacterData.exports}var hasRequiredXMLCData;function requireXMLCData(){return hasRequiredXMLCData||(hasRequiredXMLCData=1,(function(){var Ra,ed,ud=function(hd,md){for(var gd in md)dd.call(md,gd)&&(hd[gd]=md[gd]);function yd(){this.constructor=hd}return yd.prototype=md.prototype,hd.prototype=new yd,hd.__super__=md.prototype,hd},dd={}.hasOwnProperty;Ra=requireNodeType(),ed=requireXMLCharacterData(),XMLCData.exports=function(hd){ud(md,hd);function md(gd,yd){if(md.__super__.constructor.call(this,gd),yd==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=Ra.CData,this.value=this.stringify.cdata(yd)}return md.prototype.clone=function(){return Object.create(this)},md.prototype.toString=function(gd){return this.options.writer.cdata(this,this.options.writer.filterOptions(gd))},md}(ed)}).call(commonjsGlobal)),XMLCData.exports}var XMLComment={exports:{}},hasRequiredXMLComment;function requireXMLComment(){return hasRequiredXMLComment||(hasRequiredXMLComment=1,(function(){var Ra,ed,ud=function(hd,md){for(var gd in md)dd.call(md,gd)&&(hd[gd]=md[gd]);function yd(){this.constructor=hd}return yd.prototype=md.prototype,hd.prototype=new yd,hd.__super__=md.prototype,hd},dd={}.hasOwnProperty;Ra=requireNodeType(),ed=requireXMLCharacterData(),XMLComment.exports=function(hd){ud(md,hd);function md(gd,yd){if(md.__super__.constructor.call(this,gd),yd==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=Ra.Comment,this.value=this.stringify.comment(yd)}return md.prototype.clone=function(){return Object.create(this)},md.prototype.toString=function(gd){return this.options.writer.comment(this,this.options.writer.filterOptions(gd))},md}(ed)}).call(commonjsGlobal)),XMLComment.exports}var XMLDeclaration={exports:{}},hasRequiredXMLDeclaration;function requireXMLDeclaration(){return hasRequiredXMLDeclaration||(hasRequiredXMLDeclaration=1,(function(){var Ra,ed,ud,dd=function(md,gd){for(var yd in gd)hd.call(gd,yd)&&(md[yd]=gd[yd]);function vd(){this.constructor=md}return vd.prototype=gd.prototype,md.prototype=new vd,md.__super__=gd.prototype,md},hd={}.hasOwnProperty;ud=requireUtility().isObject,ed=requireXMLNode(),Ra=requireNodeType(),XMLDeclaration.exports=function(md){dd(gd,md);function gd(yd,vd,Cd,wd){var Nd;gd.__super__.constructor.call(this,yd),ud(vd)&&(Nd=vd,vd=Nd.version,Cd=Nd.encoding,wd=Nd.standalone),vd||(vd="1.0"),this.type=Ra.Declaration,this.version=this.stringify.xmlVersion(vd),Cd!=null&&(this.encoding=this.stringify.xmlEncoding(Cd)),wd!=null&&(this.standalone=this.stringify.xmlStandalone(wd))}return gd.prototype.toString=function(yd){return this.options.writer.declaration(this,this.options.writer.filterOptions(yd))},gd}(ed)}).call(commonjsGlobal)),XMLDeclaration.exports}var XMLDocType={exports:{}},XMLDTDAttList={exports:{}},hasRequiredXMLDTDAttList;function requireXMLDTDAttList(){return hasRequiredXMLDTDAttList||(hasRequiredXMLDTDAttList=1,(function(){var Ra,ed,ud=function(hd,md){for(var gd in md)dd.call(md,gd)&&(hd[gd]=md[gd]);function yd(){this.constructor=hd}return yd.prototype=md.prototype,hd.prototype=new yd,hd.__super__=md.prototype,hd},dd={}.hasOwnProperty;ed=requireXMLNode(),Ra=requireNodeType(),XMLDTDAttList.exports=function(hd){ud(md,hd);function md(gd,yd,vd,Cd,wd,Nd){if(md.__super__.constructor.call(this,gd),yd==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(vd==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(yd));if(!Cd)throw new Error("Missing DTD attribute type. "+this.debugInfo(yd));if(!wd)throw new Error("Missing DTD attribute default. "+this.debugInfo(yd));if(wd.indexOf("#")!==0&&(wd="#"+wd),!wd.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(yd));if(Nd&&!wd.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(yd));this.elementName=this.stringify.name(yd),this.type=Ra.AttributeDeclaration,this.attributeName=this.stringify.name(vd),this.attributeType=this.stringify.dtdAttType(Cd),Nd&&(this.defaultValue=this.stringify.dtdAttDefault(Nd)),this.defaultValueType=wd}return md.prototype.toString=function(gd){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(gd))},md}(ed)}).call(commonjsGlobal)),XMLDTDAttList.exports}var XMLDTDEntity={exports:{}},hasRequiredXMLDTDEntity;function requireXMLDTDEntity(){return hasRequiredXMLDTDEntity||(hasRequiredXMLDTDEntity=1,(function(){var Ra,ed,ud,dd=function(md,gd){for(var yd in gd)hd.call(gd,yd)&&(md[yd]=gd[yd]);function vd(){this.constructor=md}return vd.prototype=gd.prototype,md.prototype=new vd,md.__super__=gd.prototype,md},hd={}.hasOwnProperty;ud=requireUtility().isObject,ed=requireXMLNode(),Ra=requireNodeType(),XMLDTDEntity.exports=function(md){dd(gd,md);function gd(yd,vd,Cd,wd){if(gd.__super__.constructor.call(this,yd),Cd==null)throw new Error("Missing DTD entity name. "+this.debugInfo(Cd));if(wd==null)throw new Error("Missing DTD entity value. "+this.debugInfo(Cd));if(this.pe=!!vd,this.name=this.stringify.name(Cd),this.type=Ra.EntityDeclaration,!ud(wd))this.value=this.stringify.dtdEntityValue(wd),this.internal=!0;else{if(!wd.pubID&&!wd.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(Cd));if(wd.pubID&&!wd.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(Cd));if(this.internal=!1,wd.pubID!=null&&(this.pubID=this.stringify.dtdPubID(wd.pubID)),wd.sysID!=null&&(this.sysID=this.stringify.dtdSysID(wd.sysID)),wd.nData!=null&&(this.nData=this.stringify.dtdNData(wd.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(Cd))}}return Object.defineProperty(gd.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(gd.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(gd.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(gd.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(gd.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(gd.prototype,"xmlVersion",{get:function(){return null}}),gd.prototype.toString=function(yd){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(yd))},gd}(ed)}).call(commonjsGlobal)),XMLDTDEntity.exports}var XMLDTDElement={exports:{}},hasRequiredXMLDTDElement;function requireXMLDTDElement(){return hasRequiredXMLDTDElement||(hasRequiredXMLDTDElement=1,(function(){var Ra,ed,ud=function(hd,md){for(var gd in md)dd.call(md,gd)&&(hd[gd]=md[gd]);function yd(){this.constructor=hd}return yd.prototype=md.prototype,hd.prototype=new yd,hd.__super__=md.prototype,hd},dd={}.hasOwnProperty;ed=requireXMLNode(),Ra=requireNodeType(),XMLDTDElement.exports=function(hd){ud(md,hd);function md(gd,yd,vd){if(md.__super__.constructor.call(this,gd),yd==null)throw new Error("Missing DTD element name. "+this.debugInfo());vd||(vd="(#PCDATA)"),Array.isArray(vd)&&(vd="("+vd.join(",")+")"),this.name=this.stringify.name(yd),this.type=Ra.ElementDeclaration,this.value=this.stringify.dtdElementValue(vd)}return md.prototype.toString=function(gd){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(gd))},md}(ed)}).call(commonjsGlobal)),XMLDTDElement.exports}var XMLDTDNotation={exports:{}},hasRequiredXMLDTDNotation;function requireXMLDTDNotation(){return hasRequiredXMLDTDNotation||(hasRequiredXMLDTDNotation=1,(function(){var Ra,ed,ud=function(hd,md){for(var gd in md)dd.call(md,gd)&&(hd[gd]=md[gd]);function yd(){this.constructor=hd}return yd.prototype=md.prototype,hd.prototype=new yd,hd.__super__=md.prototype,hd},dd={}.hasOwnProperty;ed=requireXMLNode(),Ra=requireNodeType(),XMLDTDNotation.exports=function(hd){ud(md,hd);function md(gd,yd,vd){if(md.__super__.constructor.call(this,gd),yd==null)throw new Error("Missing DTD notation name. "+this.debugInfo(yd));if(!vd.pubID&&!vd.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(yd));this.name=this.stringify.name(yd),this.type=Ra.NotationDeclaration,vd.pubID!=null&&(this.pubID=this.stringify.dtdPubID(vd.pubID)),vd.sysID!=null&&(this.sysID=this.stringify.dtdSysID(vd.sysID))}return Object.defineProperty(md.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(md.prototype,"systemId",{get:function(){return this.sysID}}),md.prototype.toString=function(gd){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(gd))},md}(ed)}).call(commonjsGlobal)),XMLDTDNotation.exports}var hasRequiredXMLDocType;function requireXMLDocType(){return hasRequiredXMLDocType||(hasRequiredXMLDocType=1,(function(){var Ra,ed,ud,dd,hd,md,gd,yd,vd=function(wd,Nd){for(var Ld in Nd)Cd.call(Nd,Ld)&&(wd[Ld]=Nd[Ld]);function Ud(){this.constructor=wd}return Ud.prototype=Nd.prototype,wd.prototype=new Ud,wd.__super__=Nd.prototype,wd},Cd={}.hasOwnProperty;yd=requireUtility().isObject,gd=requireXMLNode(),Ra=requireNodeType(),ed=requireXMLDTDAttList(),dd=requireXMLDTDEntity(),ud=requireXMLDTDElement(),hd=requireXMLDTDNotation(),md=requireXMLNamedNodeMap(),XMLDocType.exports=function(wd){vd(Nd,wd);function Nd(Ld,Ud,jd){var Gd,Yd,zd,qd,Wd,Xd;if(Nd.__super__.constructor.call(this,Ld),this.type=Ra.DocType,Ld.children){for(qd=Ld.children,Yd=0,zd=qd.length;Yd":(Jd=this.parent)!=null&&Jd.name?"node: <"+Wd+">, parent: <"+this.parent.name+">":"node: <"+Wd+">"},qd.prototype.ele=function(Wd,Xd,Jd){return this.element(Wd,Xd,Jd)},qd.prototype.nod=function(Wd,Xd,Jd){return this.node(Wd,Xd,Jd)},qd.prototype.txt=function(Wd){return this.text(Wd)},qd.prototype.dat=function(Wd){return this.cdata(Wd)},qd.prototype.com=function(Wd){return this.comment(Wd)},qd.prototype.ins=function(Wd,Xd){return this.instruction(Wd,Xd)},qd.prototype.doc=function(){return this.document()},qd.prototype.dec=function(Wd,Xd,Jd){return this.declaration(Wd,Xd,Jd)},qd.prototype.e=function(Wd,Xd,Jd){return this.element(Wd,Xd,Jd)},qd.prototype.n=function(Wd,Xd,Jd){return this.node(Wd,Xd,Jd)},qd.prototype.t=function(Wd){return this.text(Wd)},qd.prototype.d=function(Wd){return this.cdata(Wd)},qd.prototype.c=function(Wd){return this.comment(Wd)},qd.prototype.r=function(Wd){return this.raw(Wd)},qd.prototype.i=function(Wd,Xd){return this.instruction(Wd,Xd)},qd.prototype.u=function(){return this.up()},qd.prototype.importXMLBuilder=function(Wd){return this.importDocument(Wd)},qd.prototype.replaceChild=function(Wd,Xd){throw new Error("This DOM method is not implemented."+this.debugInfo())},qd.prototype.removeChild=function(Wd){throw new Error("This DOM method is not implemented."+this.debugInfo())},qd.prototype.appendChild=function(Wd){throw new Error("This DOM method is not implemented."+this.debugInfo())},qd.prototype.hasChildNodes=function(){return this.children.length!==0},qd.prototype.cloneNode=function(Wd){throw new Error("This DOM method is not implemented."+this.debugInfo())},qd.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},qd.prototype.isSupported=function(Wd,Xd){return!0},qd.prototype.hasAttributes=function(){return this.attribs.length!==0},qd.prototype.compareDocumentPosition=function(Wd){var Xd,Jd;return Xd=this,Xd===Wd?0:this.document()!==Wd.document()?(Jd=Ra.Disconnected|Ra.ImplementationSpecific,Math.random()<.5?Jd|=Ra.Preceding:Jd|=Ra.Following,Jd):Xd.isAncestor(Wd)?Ra.Contains|Ra.Preceding:Xd.isDescendant(Wd)?Ra.Contains|Ra.Following:Xd.isPreceding(Wd)?Ra.Preceding:Ra.Following},qd.prototype.isSameNode=function(Wd){throw new Error("This DOM method is not implemented."+this.debugInfo())},qd.prototype.lookupPrefix=function(Wd){throw new Error("This DOM method is not implemented."+this.debugInfo())},qd.prototype.isDefaultNamespace=function(Wd){throw new Error("This DOM method is not implemented."+this.debugInfo())},qd.prototype.lookupNamespaceURI=function(Wd){throw new Error("This DOM method is not implemented."+this.debugInfo())},qd.prototype.isEqualNode=function(Wd){var Xd,Jd,Zd;if(Wd.nodeType!==this.nodeType||Wd.children.length!==this.children.length)return!1;for(Xd=Jd=0,Zd=this.children.length-1;0<=Zd?Jd<=Zd:Jd>=Zd;Xd=0<=Zd?++Jd:--Jd)if(!this.children[Xd].isEqualNode(Wd.children[Xd]))return!1;return!0},qd.prototype.getFeature=function(Wd,Xd){throw new Error("This DOM method is not implemented."+this.debugInfo())},qd.prototype.setUserData=function(Wd,Xd,Jd){throw new Error("This DOM method is not implemented."+this.debugInfo())},qd.prototype.getUserData=function(Wd){throw new Error("This DOM method is not implemented."+this.debugInfo())},qd.prototype.contains=function(Wd){return Wd?Wd===this||this.isDescendant(Wd):!1},qd.prototype.isDescendant=function(Wd){var Xd,Jd,Zd,mf,xf;for(xf=this.children,Zd=0,mf=xf.length;ZdJd},qd.prototype.treePosition=function(Wd){var Xd,Jd;return Jd=0,Xd=!1,this.foreachTreeNode(this.document(),function(Zd){if(Jd++,!Xd&&Zd===Wd)return Xd=!0}),Xd?Jd:-1},qd.prototype.foreachTreeNode=function(Wd,Xd){var Jd,Zd,mf,xf,_f;for(Wd||(Wd=this.document()),xf=Wd.children,Zd=0,mf=xf.length;Zd","]]]]>"),this.assertLegalChar(dd))},ud.prototype.comment=function(dd){if(this.options.noValidation)return dd;if(dd=""+dd||"",dd.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+dd);return this.assertLegalChar(dd)},ud.prototype.raw=function(dd){return this.options.noValidation?dd:""+dd||""},ud.prototype.attValue=function(dd){return this.options.noValidation?dd:this.assertLegalChar(this.attEscape(dd=""+dd||""))},ud.prototype.insTarget=function(dd){return this.options.noValidation?dd:this.assertLegalChar(""+dd||"")},ud.prototype.insValue=function(dd){if(this.options.noValidation)return dd;if(dd=""+dd||"",dd.match(/\?>/))throw new Error("Invalid processing instruction value: "+dd);return this.assertLegalChar(dd)},ud.prototype.xmlVersion=function(dd){if(this.options.noValidation)return dd;if(dd=""+dd||"",!dd.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+dd);return dd},ud.prototype.xmlEncoding=function(dd){if(this.options.noValidation)return dd;if(dd=""+dd||"",!dd.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+dd);return this.assertLegalChar(dd)},ud.prototype.xmlStandalone=function(dd){return this.options.noValidation?dd:dd?"yes":"no"},ud.prototype.dtdPubID=function(dd){return this.options.noValidation?dd:this.assertLegalChar(""+dd||"")},ud.prototype.dtdSysID=function(dd){return this.options.noValidation?dd:this.assertLegalChar(""+dd||"")},ud.prototype.dtdElementValue=function(dd){return this.options.noValidation?dd:this.assertLegalChar(""+dd||"")},ud.prototype.dtdAttType=function(dd){return this.options.noValidation?dd:this.assertLegalChar(""+dd||"")},ud.prototype.dtdAttDefault=function(dd){return this.options.noValidation?dd:this.assertLegalChar(""+dd||"")},ud.prototype.dtdEntityValue=function(dd){return this.options.noValidation?dd:this.assertLegalChar(""+dd||"")},ud.prototype.dtdNData=function(dd){return this.options.noValidation?dd:this.assertLegalChar(""+dd||"")},ud.prototype.convertAttKey="@",ud.prototype.convertPIKey="?",ud.prototype.convertTextKey="#text",ud.prototype.convertCDataKey="#cdata",ud.prototype.convertCommentKey="#comment",ud.prototype.convertRawKey="#raw",ud.prototype.assertLegalChar=function(dd){var hd,md;if(this.options.noValidation)return dd;if(hd="",this.options.version==="1.0"){if(hd=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,md=dd.match(hd))throw new Error("Invalid character in string: "+dd+" at index "+md.index)}else if(this.options.version==="1.1"&&(hd=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,md=dd.match(hd)))throw new Error("Invalid character in string: "+dd+" at index "+md.index);return dd},ud.prototype.assertLegalName=function(dd){var hd;if(this.options.noValidation)return dd;if(this.assertLegalChar(dd),hd=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!dd.match(hd))throw new Error("Invalid character in name");return dd},ud.prototype.textEscape=function(dd){var hd;return this.options.noValidation?dd:(hd=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,dd.replace(hd,"&").replace(//g,">").replace(/\r/g," "))},ud.prototype.attEscape=function(dd){var hd;return this.options.noValidation?dd:(hd=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,dd.replace(hd,"&").replace(/0)?new Array(vd).join(gd.indent):""},hd.prototype.endline=function(md,gd,yd){return!gd.pretty||gd.suppressPrettyCount?"":gd.newline},hd.prototype.attribute=function(md,gd,yd){var vd;return this.openAttribute(md,gd,yd),vd=" "+md.name+'="'+md.value+'"',this.closeAttribute(md,gd,yd),vd},hd.prototype.cdata=function(md,gd,yd){var vd;return this.openNode(md,gd,yd),gd.state=ed.OpenTag,vd=this.indent(md,gd,yd)+""+this.endline(md,gd,yd),gd.state=ed.None,this.closeNode(md,gd,yd),vd},hd.prototype.comment=function(md,gd,yd){var vd;return this.openNode(md,gd,yd),gd.state=ed.OpenTag,vd=this.indent(md,gd,yd)+""+this.endline(md,gd,yd),gd.state=ed.None,this.closeNode(md,gd,yd),vd},hd.prototype.declaration=function(md,gd,yd){var vd;return this.openNode(md,gd,yd),gd.state=ed.OpenTag,vd=this.indent(md,gd,yd)+"",vd+=this.endline(md,gd,yd),gd.state=ed.None,this.closeNode(md,gd,yd),vd},hd.prototype.docType=function(md,gd,yd){var vd,Cd,wd,Nd,Ld;if(yd||(yd=0),this.openNode(md,gd,yd),gd.state=ed.OpenTag,Nd=this.indent(md,gd,yd),Nd+="0){for(Nd+=" [",Nd+=this.endline(md,gd,yd),gd.state=ed.InsideTag,Ld=md.children,Cd=0,wd=Ld.length;Cd",Nd+=this.endline(md,gd,yd),gd.state=ed.None,this.closeNode(md,gd,yd),Nd},hd.prototype.element=function(md,gd,yd){var vd,Cd,wd,Nd,Ld,Ud,jd,Gd,Yd,zd,qd,Wd,Xd,Jd;yd||(yd=0),zd=!1,qd="",this.openNode(md,gd,yd),gd.state=ed.OpenTag,qd+=this.indent(md,gd,yd)+"<"+md.name,Wd=md.attribs;for(Yd in Wd)dd.call(Wd,Yd)&&(vd=Wd[Yd],qd+=this.attribute(vd,gd,yd));if(wd=md.children.length,Nd=wd===0?null:md.children[0],wd===0||md.children.every(function(Zd){return(Zd.type===Ra.Text||Zd.type===Ra.Raw)&&Zd.value===""}))gd.allowEmpty?(qd+=">",gd.state=ed.CloseTag,qd+=""+this.endline(md,gd,yd)):(gd.state=ed.CloseTag,qd+=gd.spaceBeforeSlash+"/>"+this.endline(md,gd,yd));else if(gd.pretty&&wd===1&&(Nd.type===Ra.Text||Nd.type===Ra.Raw)&&Nd.value!=null)qd+=">",gd.state=ed.InsideTag,gd.suppressPrettyCount++,zd=!0,qd+=this.writeChildNode(Nd,gd,yd+1),gd.suppressPrettyCount--,zd=!1,gd.state=ed.CloseTag,qd+=""+this.endline(md,gd,yd);else{if(gd.dontPrettyTextNodes){for(Xd=md.children,Ld=0,jd=Xd.length;Ld"+this.endline(md,gd,yd),gd.state=ed.InsideTag,Jd=md.children,Ud=0,Gd=Jd.length;Ud",zd&&gd.suppressPrettyCount--,qd+=this.endline(md,gd,yd),gd.state=ed.None}return this.closeNode(md,gd,yd),qd},hd.prototype.writeChildNode=function(md,gd,yd){switch(md.type){case Ra.CData:return this.cdata(md,gd,yd);case Ra.Comment:return this.comment(md,gd,yd);case Ra.Element:return this.element(md,gd,yd);case Ra.Raw:return this.raw(md,gd,yd);case Ra.Text:return this.text(md,gd,yd);case Ra.ProcessingInstruction:return this.processingInstruction(md,gd,yd);case Ra.Dummy:return"";case Ra.Declaration:return this.declaration(md,gd,yd);case Ra.DocType:return this.docType(md,gd,yd);case Ra.AttributeDeclaration:return this.dtdAttList(md,gd,yd);case Ra.ElementDeclaration:return this.dtdElement(md,gd,yd);case Ra.EntityDeclaration:return this.dtdEntity(md,gd,yd);case Ra.NotationDeclaration:return this.dtdNotation(md,gd,yd);default:throw new Error("Unknown XML node type: "+md.constructor.name)}},hd.prototype.processingInstruction=function(md,gd,yd){var vd;return this.openNode(md,gd,yd),gd.state=ed.OpenTag,vd=this.indent(md,gd,yd)+"",vd+=this.endline(md,gd,yd),gd.state=ed.None,this.closeNode(md,gd,yd),vd},hd.prototype.raw=function(md,gd,yd){var vd;return this.openNode(md,gd,yd),gd.state=ed.OpenTag,vd=this.indent(md,gd,yd),gd.state=ed.InsideTag,vd+=md.value,gd.state=ed.CloseTag,vd+=this.endline(md,gd,yd),gd.state=ed.None,this.closeNode(md,gd,yd),vd},hd.prototype.text=function(md,gd,yd){var vd;return this.openNode(md,gd,yd),gd.state=ed.OpenTag,vd=this.indent(md,gd,yd),gd.state=ed.InsideTag,vd+=md.value,gd.state=ed.CloseTag,vd+=this.endline(md,gd,yd),gd.state=ed.None,this.closeNode(md,gd,yd),vd},hd.prototype.dtdAttList=function(md,gd,yd){var vd;return this.openNode(md,gd,yd),gd.state=ed.OpenTag,vd=this.indent(md,gd,yd)+""+this.endline(md,gd,yd),gd.state=ed.None,this.closeNode(md,gd,yd),vd},hd.prototype.dtdElement=function(md,gd,yd){var vd;return this.openNode(md,gd,yd),gd.state=ed.OpenTag,vd=this.indent(md,gd,yd)+""+this.endline(md,gd,yd),gd.state=ed.None,this.closeNode(md,gd,yd),vd},hd.prototype.dtdEntity=function(md,gd,yd){var vd;return this.openNode(md,gd,yd),gd.state=ed.OpenTag,vd=this.indent(md,gd,yd)+""+this.endline(md,gd,yd),gd.state=ed.None,this.closeNode(md,gd,yd),vd},hd.prototype.dtdNotation=function(md,gd,yd){var vd;return this.openNode(md,gd,yd),gd.state=ed.OpenTag,vd=this.indent(md,gd,yd)+""+this.endline(md,gd,yd),gd.state=ed.None,this.closeNode(md,gd,yd),vd},hd.prototype.openNode=function(md,gd,yd){},hd.prototype.closeNode=function(md,gd,yd){},hd.prototype.openAttribute=function(md,gd,yd){},hd.prototype.closeAttribute=function(md,gd,yd){},hd}()}).call(commonjsGlobal)),XMLWriterBase.exports}var hasRequiredXMLStringWriter;function requireXMLStringWriter(){return hasRequiredXMLStringWriter||(hasRequiredXMLStringWriter=1,(function(){var Ra,ed=function(dd,hd){for(var md in hd)ud.call(hd,md)&&(dd[md]=hd[md]);function gd(){this.constructor=dd}return gd.prototype=hd.prototype,dd.prototype=new gd,dd.__super__=hd.prototype,dd},ud={}.hasOwnProperty;Ra=requireXMLWriterBase(),XMLStringWriter.exports=function(dd){ed(hd,dd);function hd(md){hd.__super__.constructor.call(this,md)}return hd.prototype.document=function(md,gd){var yd,vd,Cd,wd,Nd;for(gd=this.filterOptions(gd),wd="",Nd=md.children,vd=0,Cd=Nd.length;vd=0;)this.up();return this.onEnd()},xf.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},xf.prototype.openNode=function(_f){var vf,gf,Af,Df;if(!_f.isOpen){if(!this.root&&this.currentLevel===0&&_f.type===Ra.Element&&(this.root=_f),gf="",_f.type===Ra.Element){this.writerOptions.state=ed.OpenTag,gf=this.writer.indent(_f,this.writerOptions,this.currentLevel)+"<"+_f.name,Df=_f.attribs;for(Af in Df)mf.call(Df,Af)&&(vf=Df[Af],gf+=this.writer.attribute(vf,this.writerOptions,this.currentLevel));gf+=(_f.children?">":"/>")+this.writer.endline(_f,this.writerOptions,this.currentLevel),this.writerOptions.state=ed.InsideTag}else this.writerOptions.state=ed.OpenTag,gf=this.writer.indent(_f,this.writerOptions,this.currentLevel)+""),gf+=this.writer.endline(_f,this.writerOptions,this.currentLevel);return this.onData(gf,this.currentLevel),_f.isOpen=!0}},xf.prototype.closeNode=function(_f){var vf;if(!_f.isClosed)return vf="",this.writerOptions.state=ed.CloseTag,_f.type===Ra.Element?vf=this.writer.indent(_f,this.writerOptions,this.currentLevel)+""+this.writer.endline(_f,this.writerOptions,this.currentLevel):vf=this.writer.indent(_f,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(_f,this.writerOptions,this.currentLevel),this.writerOptions.state=ed.None,this.onData(vf,this.currentLevel),_f.isClosed=!0},xf.prototype.onData=function(_f,vf){return this.documentStarted=!0,this.onDataCallback(_f,vf+1)},xf.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},xf.prototype.debugInfo=function(_f){return _f==null?"":"node: <"+_f+">"},xf.prototype.ele=function(){return this.element.apply(this,arguments)},xf.prototype.nod=function(_f,vf,gf){return this.node(_f,vf,gf)},xf.prototype.txt=function(_f){return this.text(_f)},xf.prototype.dat=function(_f){return this.cdata(_f)},xf.prototype.com=function(_f){return this.comment(_f)},xf.prototype.ins=function(_f,vf){return this.instruction(_f,vf)},xf.prototype.dec=function(_f,vf,gf){return this.declaration(_f,vf,gf)},xf.prototype.dtd=function(_f,vf,gf){return this.doctype(_f,vf,gf)},xf.prototype.e=function(_f,vf,gf){return this.element(_f,vf,gf)},xf.prototype.n=function(_f,vf,gf){return this.node(_f,vf,gf)},xf.prototype.t=function(_f){return this.text(_f)},xf.prototype.d=function(_f){return this.cdata(_f)},xf.prototype.c=function(_f){return this.comment(_f)},xf.prototype.r=function(_f){return this.raw(_f)},xf.prototype.i=function(_f,vf){return this.instruction(_f,vf)},xf.prototype.att=function(){return this.currentNode&&this.currentNode.type===Ra.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},xf.prototype.a=function(){return this.currentNode&&this.currentNode.type===Ra.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},xf.prototype.ent=function(_f,vf){return this.entity(_f,vf)},xf.prototype.pent=function(_f,vf){return this.pEntity(_f,vf)},xf.prototype.not=function(_f,vf){return this.notation(_f,vf)},xf}()}).call(commonjsGlobal)),XMLDocumentCB.exports}var XMLStreamWriter={exports:{}},hasRequiredXMLStreamWriter;function requireXMLStreamWriter(){return hasRequiredXMLStreamWriter||(hasRequiredXMLStreamWriter=1,(function(){var Ra,ed,ud,dd=function(md,gd){for(var yd in gd)hd.call(gd,yd)&&(md[yd]=gd[yd]);function vd(){this.constructor=md}return vd.prototype=gd.prototype,md.prototype=new vd,md.__super__=gd.prototype,md},hd={}.hasOwnProperty;Ra=requireNodeType(),ud=requireXMLWriterBase(),ed=requireWriterState(),XMLStreamWriter.exports=function(md){dd(gd,md);function gd(yd,vd){this.stream=yd,gd.__super__.constructor.call(this,vd)}return gd.prototype.endline=function(yd,vd,Cd){return yd.isLastRootNode&&vd.state===ed.CloseTag?"":gd.__super__.endline.call(this,yd,vd,Cd)},gd.prototype.document=function(yd,vd){var Cd,wd,Nd,Ld,Ud,jd,Gd,Yd,zd;for(Gd=yd.children,wd=Nd=0,Ud=Gd.length;Nd0){for(this.stream.write(" ["),this.stream.write(this.endline(yd,vd,Cd)),vd.state=ed.InsideTag,Ud=yd.children,Nd=0,Ld=Ud.length;Nd"),this.stream.write(this.endline(yd,vd,Cd)),vd.state=ed.None,this.closeNode(yd,vd,Cd)},gd.prototype.element=function(yd,vd,Cd){var wd,Nd,Ld,Ud,jd,Gd,Yd,zd,qd;Cd||(Cd=0),this.openNode(yd,vd,Cd),vd.state=ed.OpenTag,this.stream.write(this.indent(yd,vd,Cd)+"<"+yd.name),zd=yd.attribs;for(Yd in zd)hd.call(zd,Yd)&&(wd=zd[Yd],this.attribute(wd,vd,Cd));if(Ld=yd.children.length,Ud=Ld===0?null:yd.children[0],Ld===0||yd.children.every(function(Wd){return(Wd.type===Ra.Text||Wd.type===Ra.Raw)&&Wd.value===""}))vd.allowEmpty?(this.stream.write(">"),vd.state=ed.CloseTag,this.stream.write("")):(vd.state=ed.CloseTag,this.stream.write(vd.spaceBeforeSlash+"/>"));else if(vd.pretty&&Ld===1&&(Ud.type===Ra.Text||Ud.type===Ra.Raw)&&Ud.value!=null)this.stream.write(">"),vd.state=ed.InsideTag,vd.suppressPrettyCount++,this.writeChildNode(Ud,vd,Cd+1),vd.suppressPrettyCount--,vd.state=ed.CloseTag,this.stream.write("");else{for(this.stream.write(">"+this.endline(yd,vd,Cd)),vd.state=ed.InsideTag,qd=yd.children,jd=0,Gd=qd.length;jd")}return this.stream.write(this.endline(yd,vd,Cd)),vd.state=ed.None,this.closeNode(yd,vd,Cd)},gd.prototype.processingInstruction=function(yd,vd,Cd){return this.stream.write(gd.__super__.processingInstruction.call(this,yd,vd,Cd))},gd.prototype.raw=function(yd,vd,Cd){return this.stream.write(gd.__super__.raw.call(this,yd,vd,Cd))},gd.prototype.text=function(yd,vd,Cd){return this.stream.write(gd.__super__.text.call(this,yd,vd,Cd))},gd.prototype.dtdAttList=function(yd,vd,Cd){return this.stream.write(gd.__super__.dtdAttList.call(this,yd,vd,Cd))},gd.prototype.dtdElement=function(yd,vd,Cd){return this.stream.write(gd.__super__.dtdElement.call(this,yd,vd,Cd))},gd.prototype.dtdEntity=function(yd,vd,Cd){return this.stream.write(gd.__super__.dtdEntity.call(this,yd,vd,Cd))},gd.prototype.dtdNotation=function(yd,vd,Cd){return this.stream.write(gd.__super__.dtdNotation.call(this,yd,vd,Cd))},gd}(ud)}).call(commonjsGlobal)),XMLStreamWriter.exports}var hasRequiredLib;function requireLib(){return hasRequiredLib||(hasRequiredLib=1,(function(){var Ra,ed,ud,dd,hd,md,gd,yd,vd,Cd;Cd=requireUtility(),yd=Cd.assign,vd=Cd.isFunction,ud=requireXMLDOMImplementation(),dd=requireXMLDocument(),hd=requireXMLDocumentCB(),gd=requireXMLStringWriter(),md=requireXMLStreamWriter(),Ra=requireNodeType(),ed=requireWriterState(),lib$2.create=function(wd,Nd,Ld,Ud){var jd,Gd;if(wd==null)throw new Error("Root element needs a name.");return Ud=yd({},Nd,Ld,Ud),jd=new dd(Ud),Gd=jd.element(wd),Ud.headless||(jd.declaration(Ud),(Ud.pubID!=null||Ud.sysID!=null)&&jd.dtd(Ud)),Gd},lib$2.begin=function(wd,Nd,Ld){var Ud;return vd(wd)&&(Ud=[wd,Nd],Nd=Ud[0],Ld=Ud[1],wd={}),Nd?new hd(wd,Nd,Ld):new dd(wd)},lib$2.stringWriter=function(wd){return new gd(wd)},lib$2.streamWriter=function(wd,Nd){return new md(wd,Nd)},lib$2.implementation=new ud,lib$2.nodeType=Ra,lib$2.writerState=ed}).call(commonjsGlobal)),lib$2}var hasRequiredBuilder;function requireBuilder(){return hasRequiredBuilder||(hasRequiredBuilder=1,(function(){var Ra,ed,ud,dd,hd,md={}.hasOwnProperty;Ra=requireLib(),ed=requireDefaults().defaults,dd=function(gd){return typeof gd=="string"&&(gd.indexOf("&")>=0||gd.indexOf(">")>=0||gd.indexOf("<")>=0)},hd=function(gd){return""},ud=function(gd){return gd.replace("]]>","]]]]>")},builder.Builder=function(){function gd(yd){var vd,Cd,wd;this.options={},Cd=ed["0.2"];for(vd in Cd)md.call(Cd,vd)&&(wd=Cd[vd],this.options[vd]=wd);for(vd in yd)md.call(yd,vd)&&(wd=yd[vd],this.options[vd]=wd)}return gd.prototype.buildObject=function(yd){var vd,Cd,wd,Nd,Ld;return vd=this.options.attrkey,Cd=this.options.charkey,Object.keys(yd).length===1&&this.options.rootName===ed["0.2"].rootName?(Ld=Object.keys(yd)[0],yd=yd[Ld]):Ld=this.options.rootName,wd=function(Ud){return function(jd,Gd){var Yd,zd,qd,Wd,Xd,Jd;if(typeof Gd!="object")Ud.options.cdata&&dd(Gd)?jd.raw(hd(Gd)):jd.txt(Gd);else if(Array.isArray(Gd)){for(Wd in Gd)if(md.call(Gd,Wd)){zd=Gd[Wd];for(Xd in zd)qd=zd[Xd],jd=wd(jd.ele(Xd),qd).up()}}else for(Xd in Gd)if(md.call(Gd,Xd))if(zd=Gd[Xd],Xd===vd){if(typeof zd=="object")for(Yd in zd)Jd=zd[Yd],jd=jd.att(Yd,Jd)}else if(Xd===Cd)Ud.options.cdata&&dd(zd)?jd=jd.raw(hd(zd)):jd=jd.txt(zd);else if(Array.isArray(zd))for(Wd in zd)md.call(zd,Wd)&&(qd=zd[Wd],typeof qd=="string"?Ud.options.cdata&&dd(qd)?jd=jd.ele(Xd).raw(hd(qd)).up():jd=jd.ele(Xd,qd).up():jd=wd(jd.ele(Xd),qd).up());else typeof zd=="object"?jd=wd(jd.ele(Xd),zd).up():typeof zd=="string"&&Ud.options.cdata&&dd(zd)?jd=jd.ele(Xd).raw(hd(zd)).up():(zd==null&&(zd=""),jd=jd.ele(Xd,zd.toString()).up());return jd}}(this),Nd=Ra.create(Ld,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),wd(Nd,yd).end(this.options.renderOpts)},gd}()}).call(commonjsGlobal)),builder}var parser={},sax={},hasRequiredSax;function requireSax(){return hasRequiredSax||(hasRequiredSax=1,function(Ra){(function(ed){ed.parser=function(kf,Rf){return new dd(kf,Rf)},ed.SAXParser=dd,ed.SAXStream=wd,ed.createStream=Cd,ed.MAX_BUFFER_LENGTH=64*1024;var ud=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];ed.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function dd(kf,Rf){if(!(this instanceof dd))return new dd(kf,Rf);var _h=this;md(_h),_h.q=_h.c="",_h.bufferCheckPosition=ed.MAX_BUFFER_LENGTH,_h.opt=Rf||{},_h.opt.lowercase=_h.opt.lowercase||_h.opt.lowercasetags,_h.looseCase=_h.opt.lowercase?"toLowerCase":"toUpperCase",_h.tags=[],_h.closed=_h.closedRoot=_h.sawRoot=!1,_h.tag=_h.error=null,_h.strict=!!kf,_h.noscript=!!(kf||_h.opt.noscript),_h.state=_f.BEGIN,_h.strictEntities=_h.opt.strictEntities,_h.ENTITIES=_h.strictEntities?Object.create(ed.XML_ENTITIES):Object.create(ed.ENTITIES),_h.attribList=[],_h.opt.xmlns&&(_h.ns=Object.create(Gd)),_h.opt.unquotedAttributeValues===void 0&&(_h.opt.unquotedAttributeValues=!kf),_h.trackPosition=_h.opt.position!==!1,_h.trackPosition&&(_h.position=_h.line=_h.column=0),gf(_h,"onready")}Object.create||(Object.create=function(kf){function Rf(){}Rf.prototype=kf;var _h=new Rf;return _h}),Object.keys||(Object.keys=function(kf){var Rf=[];for(var _h in kf)kf.hasOwnProperty(_h)&&Rf.push(_h);return Rf});function hd(kf){for(var Rf=Math.max(ed.MAX_BUFFER_LENGTH,10),_h=0,Ph=0,sm=ud.length;PhRf)switch(ud[Ph]){case"textNode":Df(kf);break;case"cdata":Af(kf,"oncdata",kf.cdata),kf.cdata="";break;case"script":Af(kf,"onscript",kf.script),kf.script="";break;default:Cf(kf,"Max buffer length exceeded: "+ud[Ph])}_h=Math.max(_h,th)}var oh=ed.MAX_BUFFER_LENGTH-_h;kf.bufferCheckPosition=oh+kf.position}function md(kf){for(var Rf=0,_h=ud.length;Rf<_h;Rf++)kf[ud[Rf]]=""}function gd(kf){Df(kf),kf.cdata!==""&&(Af(kf,"oncdata",kf.cdata),kf.cdata=""),kf.script!==""&&(Af(kf,"onscript",kf.script),kf.script="")}dd.prototype={end:function(){If(this)},write:Eh,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){gd(this)}};var yd;try{yd=streamBrowserify.Stream}catch{yd=function(){}}yd||(yd=function(){});var vd=ed.EVENTS.filter(function(kf){return kf!=="error"&&kf!=="end"});function Cd(kf,Rf){return new wd(kf,Rf)}function wd(kf,Rf){if(!(this instanceof wd))return new wd(kf,Rf);yd.apply(this),this._parser=new dd(kf,Rf),this.writable=!0,this.readable=!0;var _h=this;this._parser.onend=function(){_h.emit("end")},this._parser.onerror=function(Ph){_h.emit("error",Ph),_h._parser.error=null},this._decoder=null,vd.forEach(function(Ph){Object.defineProperty(_h,"on"+Ph,{get:function(){return _h._parser["on"+Ph]},set:function(sm){if(!sm)return _h.removeAllListeners(Ph),_h._parser["on"+Ph]=sm,sm;_h.on(Ph,sm)},enumerable:!0,configurable:!1})})}wd.prototype=Object.create(yd.prototype,{constructor:{value:wd}}),wd.prototype.write=function(kf){if(typeof Buffer$4=="function"&&typeof Buffer$4.isBuffer=="function"&&Buffer$4.isBuffer(kf)){if(!this._decoder){var Rf=requireString_decoder().StringDecoder;this._decoder=new Rf("utf8")}kf=this._decoder.write(kf)}return this._parser.write(kf.toString()),this.emit("data",kf),!0},wd.prototype.end=function(kf){return kf&&kf.length&&this.write(kf),this._parser.end(),!0},wd.prototype.on=function(kf,Rf){var _h=this;return!_h._parser["on"+kf]&&vd.indexOf(kf)!==-1&&(_h._parser["on"+kf]=function(){var Ph=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);Ph.splice(0,0,kf),_h.emit.apply(_h,Ph)}),yd.prototype.on.call(_h,kf,Rf)};var Nd="[CDATA[",Ld="DOCTYPE",Ud="http://www.w3.org/XML/1998/namespace",jd="http://www.w3.org/2000/xmlns/",Gd={xml:Ud,xmlns:jd},Yd=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,zd=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,qd=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Wd=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function Xd(kf){return kf===" "||kf===` -`||kf==="\r"||kf===" "}function Jd(kf){return kf==='"'||kf==="'"}function Zd(kf){return kf===">"||Xd(kf)}function mf(kf,Rf){return kf.test(Rf)}function xf(kf,Rf){return!mf(kf,Rf)}var _f=0;ed.STATE={BEGIN:_f++,BEGIN_WHITESPACE:_f++,TEXT:_f++,TEXT_ENTITY:_f++,OPEN_WAKA:_f++,SGML_DECL:_f++,SGML_DECL_QUOTED:_f++,DOCTYPE:_f++,DOCTYPE_QUOTED:_f++,DOCTYPE_DTD:_f++,DOCTYPE_DTD_QUOTED:_f++,COMMENT_STARTING:_f++,COMMENT:_f++,COMMENT_ENDING:_f++,COMMENT_ENDED:_f++,CDATA:_f++,CDATA_ENDING:_f++,CDATA_ENDING_2:_f++,PROC_INST:_f++,PROC_INST_BODY:_f++,PROC_INST_ENDING:_f++,OPEN_TAG:_f++,OPEN_TAG_SLASH:_f++,ATTRIB:_f++,ATTRIB_NAME:_f++,ATTRIB_NAME_SAW_WHITE:_f++,ATTRIB_VALUE:_f++,ATTRIB_VALUE_QUOTED:_f++,ATTRIB_VALUE_CLOSED:_f++,ATTRIB_VALUE_UNQUOTED:_f++,ATTRIB_VALUE_ENTITY_Q:_f++,ATTRIB_VALUE_ENTITY_U:_f++,CLOSE_TAG:_f++,CLOSE_TAG_SAW_WHITE:_f++,SCRIPT:_f++,SCRIPT_ENDING:_f++},ed.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},ed.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(ed.ENTITIES).forEach(function(kf){var Rf=ed.ENTITIES[kf],_h=typeof Rf=="number"?String.fromCharCode(Rf):Rf;ed.ENTITIES[kf]=_h});for(var vf in ed.STATE)ed.STATE[ed.STATE[vf]]=vf;_f=ed.STATE;function gf(kf,Rf,_h){kf[Rf]&&kf[Rf](_h)}function Af(kf,Rf,_h){kf.textNode&&Df(kf),gf(kf,Rf,_h)}function Df(kf){kf.textNode=Of(kf.opt,kf.textNode),kf.textNode&&gf(kf,"ontext",kf.textNode),kf.textNode=""}function Of(kf,Rf){return kf.trim&&(Rf=Rf.trim()),kf.normalize&&(Rf=Rf.replace(/\s+/g," ")),Rf}function Cf(kf,Rf){return Df(kf),kf.trackPosition&&(Rf+=` -Line: `+kf.line+` -Column: `+kf.column+` -Char: `+kf.c),Rf=new Error(Rf),kf.error=Rf,gf(kf,"onerror",Rf),kf}function If(kf){return kf.sawRoot&&!kf.closedRoot&&Ff(kf,"Unclosed root tag"),kf.state!==_f.BEGIN&&kf.state!==_f.BEGIN_WHITESPACE&&kf.state!==_f.TEXT&&Cf(kf,"Unexpected end"),Df(kf),kf.c="",kf.closed=!0,gf(kf,"onend"),dd.call(kf,kf.strict,kf.opt),kf}function Ff(kf,Rf){if(typeof kf!="object"||!(kf instanceof dd))throw new Error("bad call to strictFail");kf.strict&&Cf(kf,Rf)}function sh(kf){kf.strict||(kf.tagName=kf.tagName[kf.looseCase]());var Rf=kf.tags[kf.tags.length-1]||kf,_h=kf.tag={name:kf.tagName,attributes:{}};kf.opt.xmlns&&(_h.ns=Rf.ns),kf.attribList.length=0,Af(kf,"onopentagstart",_h)}function Sh(kf,Rf){var _h=kf.indexOf(":"),Ph=_h<0?["",kf]:kf.split(":"),sm=Ph[0],th=Ph[1];return Rf&&kf==="xmlns"&&(sm="xmlns",th=""),{prefix:sm,local:th}}function yh(kf){if(kf.strict||(kf.attribName=kf.attribName[kf.looseCase]()),kf.attribList.indexOf(kf.attribName)!==-1||kf.tag.attributes.hasOwnProperty(kf.attribName)){kf.attribName=kf.attribValue="";return}if(kf.opt.xmlns){var Rf=Sh(kf.attribName,!0),_h=Rf.prefix,Ph=Rf.local;if(_h==="xmlns")if(Ph==="xml"&&kf.attribValue!==Ud)Ff(kf,"xml: prefix must be bound to "+Ud+` -Actual: `+kf.attribValue);else if(Ph==="xmlns"&&kf.attribValue!==jd)Ff(kf,"xmlns: prefix must be bound to "+jd+` -Actual: `+kf.attribValue);else{var sm=kf.tag,th=kf.tags[kf.tags.length-1]||kf;sm.ns===th.ns&&(sm.ns=Object.create(th.ns)),sm.ns[Ph]=kf.attribValue}kf.attribList.push([kf.attribName,kf.attribValue])}else kf.tag.attributes[kf.attribName]=kf.attribValue,Af(kf,"onattribute",{name:kf.attribName,value:kf.attribValue});kf.attribName=kf.attribValue=""}function Mh(kf,Rf){if(kf.opt.xmlns){var _h=kf.tag,Ph=Sh(kf.tagName);_h.prefix=Ph.prefix,_h.local=Ph.local,_h.uri=_h.ns[Ph.prefix]||"",_h.prefix&&!_h.uri&&(Ff(kf,"Unbound namespace prefix: "+JSON.stringify(kf.tagName)),_h.uri=Ph.prefix);var sm=kf.tags[kf.tags.length-1]||kf;_h.ns&&sm.ns!==_h.ns&&Object.keys(_h.ns).forEach(function(zh){Af(kf,"onopennamespace",{prefix:zh,uri:_h.ns[zh]})});for(var th=0,oh=kf.attribList.length;th",kf.tagName="",kf.state=_f.SCRIPT;return}Af(kf,"onscript",kf.script),kf.script=""}var Rf=kf.tags.length,_h=kf.tagName;kf.strict||(_h=_h[kf.looseCase]());for(var Ph=_h;Rf--;){var sm=kf.tags[Rf];if(sm.name!==Ph)Ff(kf,"Unexpected close tag");else break}if(Rf<0){Ff(kf,"Unmatched closing tag: "+kf.tagName),kf.textNode+="",kf.state=_f.TEXT;return}kf.tagName=_h;for(var th=kf.tags.length;th-- >Rf;){var oh=kf.tag=kf.tags.pop();kf.tagName=kf.tag.name,Af(kf,"onclosetag",kf.tagName);var Zh={};for(var Sm in oh.ns)Zh[Sm]=oh.ns[Sm];var $h=kf.tags[kf.tags.length-1]||kf;kf.opt.xmlns&&oh.ns!==$h.ns&&Object.keys(oh.ns).forEach(function(Vf){var nh=oh.ns[Vf];Af(kf,"onclosenamespace",{prefix:Vf,uri:nh})})}Rf===0&&(kf.closedRoot=!0),kf.tagName=kf.attribValue=kf.attribName="",kf.attribList.length=0,kf.state=_f.TEXT}function rh(kf){var Rf=kf.entity,_h=Rf.toLowerCase(),Ph,sm="";return kf.ENTITIES[Rf]?kf.ENTITIES[Rf]:kf.ENTITIES[_h]?kf.ENTITIES[_h]:(Rf=_h,Rf.charAt(0)==="#"&&(Rf.charAt(1)==="x"?(Rf=Rf.slice(2),Ph=parseInt(Rf,16),sm=Ph.toString(16)):(Rf=Rf.slice(1),Ph=parseInt(Rf,10),sm=Ph.toString(10))),Rf=Rf.replace(/^0+/,""),isNaN(Ph)||sm.toLowerCase()!==Rf?(Ff(kf,"Invalid character entity"),"&"+kf.entity+";"):String.fromCodePoint(Ph))}function mh(kf,Rf){Rf==="<"?(kf.state=_f.OPEN_WAKA,kf.startTagPosition=kf.position):Xd(Rf)||(Ff(kf,"Non-whitespace before first tag."),kf.textNode=Rf,kf.state=_f.TEXT)}function xh(kf,Rf){var _h="";return Rf"?(Af(Rf,"onsgmldeclaration",Rf.sgmlDecl),Rf.sgmlDecl="",Rf.state=_f.TEXT):(Jd(Ph)&&(Rf.state=_f.SGML_DECL_QUOTED),Rf.sgmlDecl+=Ph);continue;case _f.SGML_DECL_QUOTED:Ph===Rf.q&&(Rf.state=_f.SGML_DECL,Rf.q=""),Rf.sgmlDecl+=Ph;continue;case _f.DOCTYPE:Ph===">"?(Rf.state=_f.TEXT,Af(Rf,"ondoctype",Rf.doctype),Rf.doctype=!0):(Rf.doctype+=Ph,Ph==="["?Rf.state=_f.DOCTYPE_DTD:Jd(Ph)&&(Rf.state=_f.DOCTYPE_QUOTED,Rf.q=Ph));continue;case _f.DOCTYPE_QUOTED:Rf.doctype+=Ph,Ph===Rf.q&&(Rf.q="",Rf.state=_f.DOCTYPE);continue;case _f.DOCTYPE_DTD:Ph==="]"?(Rf.doctype+=Ph,Rf.state=_f.DOCTYPE):Ph==="<"?(Rf.state=_f.OPEN_WAKA,Rf.startTagPosition=Rf.position):Jd(Ph)?(Rf.doctype+=Ph,Rf.state=_f.DOCTYPE_DTD_QUOTED,Rf.q=Ph):Rf.doctype+=Ph;continue;case _f.DOCTYPE_DTD_QUOTED:Rf.doctype+=Ph,Ph===Rf.q&&(Rf.state=_f.DOCTYPE_DTD,Rf.q="");continue;case _f.COMMENT:Ph==="-"?Rf.state=_f.COMMENT_ENDING:Rf.comment+=Ph;continue;case _f.COMMENT_ENDING:Ph==="-"?(Rf.state=_f.COMMENT_ENDED,Rf.comment=Of(Rf.opt,Rf.comment),Rf.comment&&Af(Rf,"oncomment",Rf.comment),Rf.comment=""):(Rf.comment+="-"+Ph,Rf.state=_f.COMMENT);continue;case _f.COMMENT_ENDED:Ph!==">"?(Ff(Rf,"Malformed comment"),Rf.comment+="--"+Ph,Rf.state=_f.COMMENT):Rf.doctype&&Rf.doctype!==!0?Rf.state=_f.DOCTYPE_DTD:Rf.state=_f.TEXT;continue;case _f.CDATA:Ph==="]"?Rf.state=_f.CDATA_ENDING:Rf.cdata+=Ph;continue;case _f.CDATA_ENDING:Ph==="]"?Rf.state=_f.CDATA_ENDING_2:(Rf.cdata+="]"+Ph,Rf.state=_f.CDATA);continue;case _f.CDATA_ENDING_2:Ph===">"?(Rf.cdata&&Af(Rf,"oncdata",Rf.cdata),Af(Rf,"onclosecdata"),Rf.cdata="",Rf.state=_f.TEXT):Ph==="]"?Rf.cdata+="]":(Rf.cdata+="]]"+Ph,Rf.state=_f.CDATA);continue;case _f.PROC_INST:Ph==="?"?Rf.state=_f.PROC_INST_ENDING:Xd(Ph)?Rf.state=_f.PROC_INST_BODY:Rf.procInstName+=Ph;continue;case _f.PROC_INST_BODY:if(!Rf.procInstBody&&Xd(Ph))continue;Ph==="?"?Rf.state=_f.PROC_INST_ENDING:Rf.procInstBody+=Ph;continue;case _f.PROC_INST_ENDING:Ph===">"?(Af(Rf,"onprocessinginstruction",{name:Rf.procInstName,body:Rf.procInstBody}),Rf.procInstName=Rf.procInstBody="",Rf.state=_f.TEXT):(Rf.procInstBody+="?"+Ph,Rf.state=_f.PROC_INST_BODY);continue;case _f.OPEN_TAG:mf(zd,Ph)?Rf.tagName+=Ph:(sh(Rf),Ph===">"?Mh(Rf):Ph==="/"?Rf.state=_f.OPEN_TAG_SLASH:(Xd(Ph)||Ff(Rf,"Invalid character in tag name"),Rf.state=_f.ATTRIB));continue;case _f.OPEN_TAG_SLASH:Ph===">"?(Mh(Rf,!0),lh(Rf)):(Ff(Rf,"Forward-slash in opening tag not followed by >"),Rf.state=_f.ATTRIB);continue;case _f.ATTRIB:if(Xd(Ph))continue;Ph===">"?Mh(Rf):Ph==="/"?Rf.state=_f.OPEN_TAG_SLASH:mf(Yd,Ph)?(Rf.attribName=Ph,Rf.attribValue="",Rf.state=_f.ATTRIB_NAME):Ff(Rf,"Invalid attribute name");continue;case _f.ATTRIB_NAME:Ph==="="?Rf.state=_f.ATTRIB_VALUE:Ph===">"?(Ff(Rf,"Attribute without value"),Rf.attribValue=Rf.attribName,yh(Rf),Mh(Rf)):Xd(Ph)?Rf.state=_f.ATTRIB_NAME_SAW_WHITE:mf(zd,Ph)?Rf.attribName+=Ph:Ff(Rf,"Invalid attribute name");continue;case _f.ATTRIB_NAME_SAW_WHITE:if(Ph==="=")Rf.state=_f.ATTRIB_VALUE;else{if(Xd(Ph))continue;Ff(Rf,"Attribute without value"),Rf.tag.attributes[Rf.attribName]="",Rf.attribValue="",Af(Rf,"onattribute",{name:Rf.attribName,value:""}),Rf.attribName="",Ph===">"?Mh(Rf):mf(Yd,Ph)?(Rf.attribName=Ph,Rf.state=_f.ATTRIB_NAME):(Ff(Rf,"Invalid attribute name"),Rf.state=_f.ATTRIB)}continue;case _f.ATTRIB_VALUE:if(Xd(Ph))continue;Jd(Ph)?(Rf.q=Ph,Rf.state=_f.ATTRIB_VALUE_QUOTED):(Rf.opt.unquotedAttributeValues||Cf(Rf,"Unquoted attribute value"),Rf.state=_f.ATTRIB_VALUE_UNQUOTED,Rf.attribValue=Ph);continue;case _f.ATTRIB_VALUE_QUOTED:if(Ph!==Rf.q){Ph==="&"?Rf.state=_f.ATTRIB_VALUE_ENTITY_Q:Rf.attribValue+=Ph;continue}yh(Rf),Rf.q="",Rf.state=_f.ATTRIB_VALUE_CLOSED;continue;case _f.ATTRIB_VALUE_CLOSED:Xd(Ph)?Rf.state=_f.ATTRIB:Ph===">"?Mh(Rf):Ph==="/"?Rf.state=_f.OPEN_TAG_SLASH:mf(Yd,Ph)?(Ff(Rf,"No whitespace between attributes"),Rf.attribName=Ph,Rf.attribValue="",Rf.state=_f.ATTRIB_NAME):Ff(Rf,"Invalid attribute name");continue;case _f.ATTRIB_VALUE_UNQUOTED:if(!Zd(Ph)){Ph==="&"?Rf.state=_f.ATTRIB_VALUE_ENTITY_U:Rf.attribValue+=Ph;continue}yh(Rf),Ph===">"?Mh(Rf):Rf.state=_f.ATTRIB;continue;case _f.CLOSE_TAG:if(Rf.tagName)Ph===">"?lh(Rf):mf(zd,Ph)?Rf.tagName+=Ph:Rf.script?(Rf.script+=""?lh(Rf):Ff(Rf,"Invalid characters in closing tag");continue;case _f.TEXT_ENTITY:case _f.ATTRIB_VALUE_ENTITY_Q:case _f.ATTRIB_VALUE_ENTITY_U:var oh,Zh;switch(Rf.state){case _f.TEXT_ENTITY:oh=_f.TEXT,Zh="textNode";break;case _f.ATTRIB_VALUE_ENTITY_Q:oh=_f.ATTRIB_VALUE_QUOTED,Zh="attribValue";break;case _f.ATTRIB_VALUE_ENTITY_U:oh=_f.ATTRIB_VALUE_UNQUOTED,Zh="attribValue";break}if(Ph===";"){var Sm=rh(Rf);Rf.opt.unparsedEntities&&!Object.values(ed.XML_ENTITIES).includes(Sm)?(Rf.entity="",Rf.state=oh,Rf.write(Sm)):(Rf[Zh]+=Sm,Rf.entity="",Rf.state=oh)}else mf(Rf.entity.length?Wd:qd,Ph)?Rf.entity+=Ph:(Ff(Rf,"Invalid character in entity name"),Rf[Zh]+="&"+Rf.entity+Ph,Rf.entity="",Rf.state=oh);continue;default:throw new Error(Rf,"Unknown state: "+Rf.state)}return Rf.position>=Rf.bufferCheckPosition&&hd(Rf),Rf}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||function(){var kf=String.fromCharCode,Rf=Math.floor,_h=function(){var Ph=16384,sm=[],th,oh,Zh=-1,Sm=arguments.length;if(!Sm)return"";for(var $h="";++Zh1114111||Rf(Vf)!==Vf)throw RangeError("Invalid code point: "+Vf);Vf<=65535?sm.push(Vf):(Vf-=65536,th=(Vf>>10)+55296,oh=Vf%1024+56320,sm.push(th,oh)),(Zh+1===Sm||sm.length>Ph)&&($h+=kf.apply(null,sm),sm.length=0)}return $h};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:_h,configurable:!0,writable:!0}):String.fromCodePoint=_h}()})(Ra)}(sax)),sax}var bom={},hasRequiredBom;function requireBom(){return hasRequiredBom||(hasRequiredBom=1,(function(){bom.stripBOM=function(Ra){return Ra[0]==="\uFEFF"?Ra.substring(1):Ra}}).call(commonjsGlobal)),bom}var processors={},hasRequiredProcessors;function requireProcessors(){return hasRequiredProcessors||(hasRequiredProcessors=1,(function(){var Ra;Ra=new RegExp(/(?!xmlns)^.*:/),processors.normalize=function(ed){return ed.toLowerCase()},processors.firstCharLowerCase=function(ed){return ed.charAt(0).toLowerCase()+ed.slice(1)},processors.stripPrefix=function(ed){return ed.replace(Ra,"")},processors.parseNumbers=function(ed){return isNaN(ed)||(ed=ed%1===0?parseInt(ed,10):parseFloat(ed)),ed},processors.parseBooleans=function(ed){return/^(?:true|false)$/i.test(ed)&&(ed=ed.toLowerCase()==="true"),ed}}).call(commonjsGlobal)),processors}var main={},setImmediate$1={},hasRequiredSetImmediate;function requireSetImmediate(){if(hasRequiredSetImmediate)return setImmediate$1;hasRequiredSetImmediate=1;var Ra={version:"v20.18.3",versions:{node:"20.18.3",acorn:"8.14.0",ada:"2.9.2",ares:"1.34.4",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.15+quic",simdutf:"5.6.4",tz:"2024b",undici:"6.21.1",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.25",zlib:"1.3.0.1-motley-82a5fec"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.18.3/node-v20.18.3.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.18.3/node-v20.18.3-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule internal/util","NativeModule internal/util/types","NativeModule internal/validators","NativeModule internal/linkedlist","NativeModule internal/priority_queue","Internal Binding icu","NativeModule internal/util/inspect","NativeModule internal/util/debuglog","NativeModule internal/timers","NativeModule internal/events/abort_listener","NativeModule events","Internal Binding buffer","NativeModule internal/buffer","NativeModule buffer","Internal Binding messaging","NativeModule internal/worker/js_transferable","NativeModule internal/querystring","NativeModule internal/constants","NativeModule path","NativeModule querystring","Internal Binding url","NativeModule internal/url","NativeModule internal/fs/utils","Internal Binding process_methods","NativeModule internal/process/per_thread","Internal Binding credentials","NativeModule internal/process/promises","NativeModule internal/fixed_queue","NativeModule async_hooks","NativeModule internal/process/task_queues","NativeModule timers","Internal Binding trace_events","Internal Binding contextify","NativeModule internal/vm","NativeModule internal/process/execution","NativeModule internal/process/warning","NativeModule internal/source_map/source_map_cache","Internal Binding fs","Internal Binding blob","Internal Binding encoding_binding","NativeModule internal/encoding","NativeModule internal/streams/utils","NativeModule util","NativeModule internal/webstreams/util","NativeModule internal/webstreams/queuingstrategies","NativeModule internal/blob","Internal Binding permission","NativeModule internal/process/permission","NativeModule fs","NativeModule internal/modules/helpers","NativeModule internal/console/constructor","NativeModule internal/console/global","NativeModule internal/util/inspector","Internal Binding inspector","NativeModule internal/webidl","Internal Binding performance","NativeModule internal/perf/utils","NativeModule internal/event_target","Internal Binding wasm_web_api","Internal Binding mksnapshot","NativeModule internal/v8/startup_snapshot","NativeModule internal/process/signal","NativeModule url","NativeModule internal/modules/package_json_reader","NativeModule internal/modules/cjs/loader","NativeModule internal/process/pre_execution","NativeModule internal/modules/esm/utils","NativeModule internal/inspector_async_hook","Internal Binding worker","NativeModule internal/modules/run_main","NativeModule internal/net","NativeModule internal/dns/utils","NativeModule internal/modules/esm/assert","NativeModule internal/modules/esm/loader","NativeModule internal/modules/esm/module_map","NativeModule internal/modules/esm/translators","NativeModule internal/modules/esm/package_config","NativeModule internal/modules/esm/formats","NativeModule internal/modules/esm/get_format","NativeModule internal/modules/esm/resolve","NativeModule internal/modules/esm/module_job","NativeModule internal/modules/esm/load","Internal Binding fs_dir","NativeModule internal/fs/dir","NativeModule string_decoder","Internal Binding fs_event_wrap","Internal Binding uv","NativeModule internal/fs/watchers","NativeModule internal/fs/recursive_watch","NativeModule internal/readline/utils","NativeModule internal/readline/callbacks","NativeModule internal/readline/interface","NativeModule internal/fs/promises","NativeModule internal/perf/performance_entry","NativeModule internal/perf/observe","NativeModule internal/perf/resource_timing","NativeModule internal/perf/nodetiming","NativeModule internal/perf/usertiming","NativeModule internal/perf/event_loop_utilization","NativeModule internal/histogram","NativeModule internal/perf/timerify","NativeModule internal/perf/performance","NativeModule internal/perf/event_loop_delay","NativeModule perf_hooks","NativeModule internal/modules/esm/initialize_import_meta","NativeModule internal/streams/destroy","NativeModule internal/abort_controller","NativeModule internal/streams/end-of-stream","NativeModule internal/streams/legacy","NativeModule internal/streams/add-abort-signal","NativeModule internal/streams/state","NativeModule internal/streams/from","NativeModule internal/streams/readable","NativeModule internal/streams/writable","NativeModule internal/streams/duplex","NativeModule internal/streams/pipeline","NativeModule internal/streams/compose","NativeModule internal/streams/operators","NativeModule stream/promises","NativeModule internal/streams/transform","NativeModule internal/streams/passthrough","NativeModule internal/streams/duplexpair","NativeModule stream","NativeModule internal/fs/streams","NativeModule fs/promises","NativeModule internal/util/parse_args/utils","NativeModule internal/util/parse_args/parse_args","NativeModule internal/mime","NativeModule internal/source_map/source_map","NativeModule module","Internal Binding crypto","NativeModule internal/crypto/random","NativeModule internal/crypto/hashnames","NativeModule internal/crypto/util","NativeModule internal/crypto/pbkdf2","NativeModule internal/crypto/scrypt","NativeModule internal/crypto/keys","NativeModule internal/crypto/hkdf","NativeModule internal/crypto/keygen","NativeModule internal/crypto/diffiehellman","NativeModule internal/streams/lazy_transform","NativeModule internal/crypto/cipher","NativeModule internal/crypto/sig","NativeModule internal/crypto/hash","NativeModule internal/crypto/x509","NativeModule internal/crypto/certificate","NativeModule crypto","NativeModule internal/crypto/webcrypto","Internal Binding stream_wrap","Internal Binding tcp_wrap","Internal Binding pipe_wrap","NativeModule internal/stream_base_commons","NativeModule diagnostics_channel","NativeModule net","Internal Binding tty_wrap","NativeModule internal/tty","NativeModule tty","NativeModule internal/deps/cjs-module-lexer/dist/lexer","Internal Binding udp_wrap","NativeModule internal/dgram","NativeModule dgram","Internal Binding process_wrap","NativeModule internal/socket_list","Internal Binding spawn_sync","NativeModule internal/child_process","NativeModule child_process","NativeModule _http_agent","Internal Binding http_parser","NativeModule internal/freelist","NativeModule _http_incoming","NativeModule _http_common","NativeModule internal/http","NativeModule _http_outgoing","NativeModule _http_client","NativeModule _http_server","NativeModule http","Internal Binding cares_wrap","NativeModule internal/tls/secure-context","NativeModule _tls_common","Internal Binding js_stream","NativeModule internal/js_stream_socket","Internal Binding tls_wrap","NativeModule _tls_wrap","NativeModule internal/tls/secure-pair","NativeModule tls","NativeModule https","Internal Binding block_list","NativeModule internal/socketaddress","NativeModule internal/blocklist","Internal Binding os","NativeModule os","NativeModule internal/dns/callback_resolver","NativeModule dns","NativeModule internal/dns/promises","NativeModule internal/util/colors","NativeModule internal/assert/assertion_error","NativeModule internal/assert/utils","NativeModule internal/assert/calltracker","NativeModule assert","Internal Binding serdes","Internal Binding profiler","Internal Binding heap_utils","Internal Binding internal_only_v8","NativeModule internal/heap_utils","NativeModule internal/promise_hooks","Internal Binding v8","NativeModule v8","NativeModule internal/worker/io","NativeModule internal/error_serdes","NativeModule internal/worker","NativeModule worker_threads","NativeModule internal/file","NativeModule internal/readline/emitKeypressEvents","NativeModule internal/readline/promises","NativeModule readline/promises","NativeModule readline","Internal Binding zlib","NativeModule zlib","NativeModule process","Internal Binding report","NativeModule internal/process/report","NativeModule constants","NativeModule internal/crypto/webidl"],_events:{newListener:[null,null],removeListener:[null,null]},_eventsCount:3,domain:null,_exiting:!1,config:{target_defaults:{cflags:[],default_configuration:"Release",defines:["NODE_OPENSSL_CONF_NAME=nodejs_conf","NODE_OPENSSL_HAS_QUIC","ICU_NO_USER_DATA_OVERRIDE"],include_dirs:[],libraries:[]},variables:{asan:0,clang:0,coverage:!1,dcheck_always_on:0,debug_nghttp2:!1,debug_node:!1,enable_lto:!1,enable_pgo_generate:!1,enable_pgo_use:!1,error_on_warn:!1,force_dynamic_crt:0,gas_version:"2.35",host_arch:"x64",icu_data_in:"../../deps/icu-tmp/icudt75l.dat",icu_endianness:"l",icu_gyp_path:"tools/icu/icu-generic.gyp",icu_path:"deps/icu-small",icu_small:!1,icu_ver_major:"75",is_debug:0,libdir:"lib",llvm_version:"0.0",napi_build_version:"9",node_builtin_shareable_builtins:["deps/cjs-module-lexer/lexer.js","deps/cjs-module-lexer/dist/lexer.js","deps/undici/undici.js"],node_byteorder:"little",node_debug_lib:!1,node_enable_d8:!1,node_enable_v8_vtunejit:!1,node_fipsinstall:!1,node_install_corepack:!0,node_install_npm:!0,node_library_files:["lib/_http_agent.js","lib/_http_client.js","lib/_http_common.js","lib/_http_incoming.js","lib/_http_outgoing.js","lib/_http_server.js","lib/_stream_duplex.js","lib/_stream_passthrough.js","lib/_stream_readable.js","lib/_stream_transform.js","lib/_stream_wrap.js","lib/_stream_writable.js","lib/_tls_common.js","lib/_tls_wrap.js","lib/assert.js","lib/assert/strict.js","lib/async_hooks.js","lib/buffer.js","lib/child_process.js","lib/cluster.js","lib/console.js","lib/constants.js","lib/crypto.js","lib/dgram.js","lib/diagnostics_channel.js","lib/dns.js","lib/dns/promises.js","lib/domain.js","lib/events.js","lib/fs.js","lib/fs/promises.js","lib/http.js","lib/http2.js","lib/https.js","lib/inspector.js","lib/inspector/promises.js","lib/internal/abort_controller.js","lib/internal/assert.js","lib/internal/assert/assertion_error.js","lib/internal/assert/calltracker.js","lib/internal/assert/utils.js","lib/internal/async_hooks.js","lib/internal/blob.js","lib/internal/blocklist.js","lib/internal/bootstrap/node.js","lib/internal/bootstrap/realm.js","lib/internal/bootstrap/shadow_realm.js","lib/internal/bootstrap/switches/does_not_own_process_state.js","lib/internal/bootstrap/switches/does_own_process_state.js","lib/internal/bootstrap/switches/is_main_thread.js","lib/internal/bootstrap/switches/is_not_main_thread.js","lib/internal/bootstrap/web/exposed-wildcard.js","lib/internal/bootstrap/web/exposed-window-or-worker.js","lib/internal/buffer.js","lib/internal/child_process.js","lib/internal/child_process/serialization.js","lib/internal/cli_table.js","lib/internal/cluster/child.js","lib/internal/cluster/primary.js","lib/internal/cluster/round_robin_handle.js","lib/internal/cluster/shared_handle.js","lib/internal/cluster/utils.js","lib/internal/cluster/worker.js","lib/internal/console/constructor.js","lib/internal/console/global.js","lib/internal/constants.js","lib/internal/crypto/aes.js","lib/internal/crypto/certificate.js","lib/internal/crypto/cfrg.js","lib/internal/crypto/cipher.js","lib/internal/crypto/diffiehellman.js","lib/internal/crypto/ec.js","lib/internal/crypto/hash.js","lib/internal/crypto/hashnames.js","lib/internal/crypto/hkdf.js","lib/internal/crypto/keygen.js","lib/internal/crypto/keys.js","lib/internal/crypto/mac.js","lib/internal/crypto/pbkdf2.js","lib/internal/crypto/random.js","lib/internal/crypto/rsa.js","lib/internal/crypto/scrypt.js","lib/internal/crypto/sig.js","lib/internal/crypto/util.js","lib/internal/crypto/webcrypto.js","lib/internal/crypto/webidl.js","lib/internal/crypto/x509.js","lib/internal/debugger/inspect.js","lib/internal/debugger/inspect_client.js","lib/internal/debugger/inspect_repl.js","lib/internal/dgram.js","lib/internal/dns/callback_resolver.js","lib/internal/dns/promises.js","lib/internal/dns/utils.js","lib/internal/encoding.js","lib/internal/error_serdes.js","lib/internal/errors.js","lib/internal/event_target.js","lib/internal/events/abort_listener.js","lib/internal/events/symbols.js","lib/internal/file.js","lib/internal/fixed_queue.js","lib/internal/freelist.js","lib/internal/freeze_intrinsics.js","lib/internal/fs/cp/cp-sync.js","lib/internal/fs/cp/cp.js","lib/internal/fs/dir.js","lib/internal/fs/promises.js","lib/internal/fs/read/context.js","lib/internal/fs/recursive_watch.js","lib/internal/fs/rimraf.js","lib/internal/fs/streams.js","lib/internal/fs/sync_write_stream.js","lib/internal/fs/utils.js","lib/internal/fs/watchers.js","lib/internal/heap_utils.js","lib/internal/histogram.js","lib/internal/http.js","lib/internal/http2/compat.js","lib/internal/http2/core.js","lib/internal/http2/util.js","lib/internal/inspector_async_hook.js","lib/internal/inspector_network_tracking.js","lib/internal/js_stream_socket.js","lib/internal/legacy/processbinding.js","lib/internal/linkedlist.js","lib/internal/main/check_syntax.js","lib/internal/main/embedding.js","lib/internal/main/eval_stdin.js","lib/internal/main/eval_string.js","lib/internal/main/inspect.js","lib/internal/main/mksnapshot.js","lib/internal/main/print_help.js","lib/internal/main/prof_process.js","lib/internal/main/repl.js","lib/internal/main/run_main_module.js","lib/internal/main/test_runner.js","lib/internal/main/watch_mode.js","lib/internal/main/worker_thread.js","lib/internal/mime.js","lib/internal/modules/cjs/loader.js","lib/internal/modules/esm/assert.js","lib/internal/modules/esm/create_dynamic_module.js","lib/internal/modules/esm/fetch_module.js","lib/internal/modules/esm/formats.js","lib/internal/modules/esm/get_format.js","lib/internal/modules/esm/hooks.js","lib/internal/modules/esm/initialize_import_meta.js","lib/internal/modules/esm/load.js","lib/internal/modules/esm/loader.js","lib/internal/modules/esm/module_job.js","lib/internal/modules/esm/module_map.js","lib/internal/modules/esm/package_config.js","lib/internal/modules/esm/resolve.js","lib/internal/modules/esm/shared_constants.js","lib/internal/modules/esm/translators.js","lib/internal/modules/esm/utils.js","lib/internal/modules/esm/worker.js","lib/internal/modules/helpers.js","lib/internal/modules/package_json_reader.js","lib/internal/modules/run_main.js","lib/internal/navigator.js","lib/internal/net.js","lib/internal/options.js","lib/internal/per_context/domexception.js","lib/internal/per_context/messageport.js","lib/internal/per_context/primordials.js","lib/internal/perf/event_loop_delay.js","lib/internal/perf/event_loop_utilization.js","lib/internal/perf/nodetiming.js","lib/internal/perf/observe.js","lib/internal/perf/performance.js","lib/internal/perf/performance_entry.js","lib/internal/perf/resource_timing.js","lib/internal/perf/timerify.js","lib/internal/perf/usertiming.js","lib/internal/perf/utils.js","lib/internal/policy/manifest.js","lib/internal/policy/sri.js","lib/internal/priority_queue.js","lib/internal/process/execution.js","lib/internal/process/per_thread.js","lib/internal/process/permission.js","lib/internal/process/policy.js","lib/internal/process/pre_execution.js","lib/internal/process/promises.js","lib/internal/process/report.js","lib/internal/process/signal.js","lib/internal/process/task_queues.js","lib/internal/process/warning.js","lib/internal/process/worker_thread_only.js","lib/internal/promise_hooks.js","lib/internal/querystring.js","lib/internal/readline/callbacks.js","lib/internal/readline/emitKeypressEvents.js","lib/internal/readline/interface.js","lib/internal/readline/promises.js","lib/internal/readline/utils.js","lib/internal/repl.js","lib/internal/repl/await.js","lib/internal/repl/history.js","lib/internal/repl/utils.js","lib/internal/socket_list.js","lib/internal/socketaddress.js","lib/internal/source_map/prepare_stack_trace.js","lib/internal/source_map/source_map.js","lib/internal/source_map/source_map_cache.js","lib/internal/stream_base_commons.js","lib/internal/streams/add-abort-signal.js","lib/internal/streams/compose.js","lib/internal/streams/destroy.js","lib/internal/streams/duplex.js","lib/internal/streams/duplexify.js","lib/internal/streams/duplexpair.js","lib/internal/streams/end-of-stream.js","lib/internal/streams/from.js","lib/internal/streams/lazy_transform.js","lib/internal/streams/legacy.js","lib/internal/streams/operators.js","lib/internal/streams/passthrough.js","lib/internal/streams/pipeline.js","lib/internal/streams/readable.js","lib/internal/streams/state.js","lib/internal/streams/transform.js","lib/internal/streams/utils.js","lib/internal/streams/writable.js","lib/internal/test/binding.js","lib/internal/test/transfer.js","lib/internal/test_runner/coverage.js","lib/internal/test_runner/harness.js","lib/internal/test_runner/mock/loader.js","lib/internal/test_runner/mock/mock.js","lib/internal/test_runner/mock/mock_timers.js","lib/internal/test_runner/reporter/dot.js","lib/internal/test_runner/reporter/junit.js","lib/internal/test_runner/reporter/lcov.js","lib/internal/test_runner/reporter/spec.js","lib/internal/test_runner/reporter/tap.js","lib/internal/test_runner/reporter/utils.js","lib/internal/test_runner/reporter/v8-serializer.js","lib/internal/test_runner/runner.js","lib/internal/test_runner/test.js","lib/internal/test_runner/tests_stream.js","lib/internal/test_runner/utils.js","lib/internal/timers.js","lib/internal/tls/secure-context.js","lib/internal/tls/secure-pair.js","lib/internal/trace_events_async_hooks.js","lib/internal/tty.js","lib/internal/url.js","lib/internal/util.js","lib/internal/util/colors.js","lib/internal/util/comparisons.js","lib/internal/util/debuglog.js","lib/internal/util/embedding.js","lib/internal/util/inspect.js","lib/internal/util/inspector.js","lib/internal/util/iterable_weak_map.js","lib/internal/util/parse_args/parse_args.js","lib/internal/util/parse_args/utils.js","lib/internal/util/types.js","lib/internal/v8/startup_snapshot.js","lib/internal/v8_prof_polyfill.js","lib/internal/v8_prof_processor.js","lib/internal/validators.js","lib/internal/vm.js","lib/internal/vm/module.js","lib/internal/wasm_web_api.js","lib/internal/watch_mode/files_watcher.js","lib/internal/watchdog.js","lib/internal/webidl.js","lib/internal/webstreams/adapters.js","lib/internal/webstreams/compression.js","lib/internal/webstreams/encoding.js","lib/internal/webstreams/queuingstrategies.js","lib/internal/webstreams/readablestream.js","lib/internal/webstreams/transfer.js","lib/internal/webstreams/transformstream.js","lib/internal/webstreams/util.js","lib/internal/webstreams/writablestream.js","lib/internal/worker.js","lib/internal/worker/io.js","lib/internal/worker/js_transferable.js","lib/module.js","lib/net.js","lib/os.js","lib/path.js","lib/path/posix.js","lib/path/win32.js","lib/perf_hooks.js","lib/process.js","lib/punycode.js","lib/querystring.js","lib/readline.js","lib/readline/promises.js","lib/repl.js","lib/sea.js","lib/stream.js","lib/stream/consumers.js","lib/stream/promises.js","lib/stream/web.js","lib/string_decoder.js","lib/sys.js","lib/test.js","lib/test/reporters.js","lib/timers.js","lib/timers/promises.js","lib/tls.js","lib/trace_events.js","lib/tty.js","lib/url.js","lib/util.js","lib/util/types.js","lib/v8.js","lib/vm.js","lib/wasi.js","lib/worker_threads.js","lib/zlib.js"],node_module_version:115,node_no_browser_globals:!1,node_prefix:"/",node_release_urlbase:"https://nodejs.org/download/release/",node_section_ordering_info:"",node_shared:!1,node_shared_ada:!1,node_shared_brotli:!1,node_shared_cares:!1,node_shared_http_parser:!1,node_shared_libuv:!1,node_shared_nghttp2:!1,node_shared_nghttp3:!1,node_shared_ngtcp2:!1,node_shared_openssl:!1,node_shared_simdjson:!1,node_shared_simdutf:!1,node_shared_uvwasi:!1,node_shared_zlib:!1,node_tag:"",node_target_type:"executable",node_use_bundled_v8:!0,node_use_node_code_cache:!0,node_use_node_snapshot:!0,node_use_openssl:!0,node_use_v8_platform:!0,node_with_ltcg:!1,node_without_node_options:!1,node_write_snapshot_as_array_literals:!1,openssl_is_fips:!1,openssl_quic:!0,ossfuzz:!1,shlib_suffix:"so.115",single_executable_application:!0,target_arch:"x64",ubsan:0,use_prefix_to_find_headers:!1,v8_enable_31bit_smis_on_64bit_arch:0,v8_enable_extensible_ro_snapshot:0,v8_enable_gdbjit:0,v8_enable_hugepage:0,v8_enable_i18n_support:1,v8_enable_inspector:1,v8_enable_javascript_promise_hooks:1,v8_enable_lite_mode:0,v8_enable_maglev:0,v8_enable_object_print:1,v8_enable_pointer_compression:0,v8_enable_sandbox:0,v8_enable_shared_ro_heap:1,v8_enable_short_builtin_calls:1,v8_enable_v8_checks:0,v8_enable_webassembly:1,v8_no_strict_aliasing:1,v8_optimized_debug:1,v8_promise_internal_field_count:1,v8_random_seed:0,v8_trace_maps:0,v8_use_siphash:1,want_separate_host_toolset:0}},allowedNodeEnvironmentFlags:{},features:{inspector:!0,debug:!1,uv:!0,ipv6:!0,tls_alpn:!0,tls_sni:!0,tls_ocsp:!0,tls:!0,cached_builtins:!0},sourceMapsEnabled:!1,stdout:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:1,_isStdio:!0},stdin:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:2,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,fd:0},stderr:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:2,_isStdio:!0},env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_31bae965-5b37-417e-995d-88fe848eb99b",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v20.18.3 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_31bae965-5b37-417e-995d-88fe848eb99b",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/md/md/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"doocs",GRADLE_HOME:"/usr/share/gradle-8.12.1",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/28.0.13004108",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43716716",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/md/md",SYSTEMD_EXEC_PID:"834",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250223.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.12/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.6/x64",JOURNAL_STREAM:"8:4711",GITHUB_WORKFLOW:"Build and Deploy",_:"/opt/hostedtoolcache/node/20.18.3/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.3/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"13672707484",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"389519be8d7a34a99cf277513a533323efcd33fe",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",GITHUB_WORKFLOW_REF:"doocs/md/.github/workflows/build.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.3/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_17b3fd3d-f363-46e4-8b41-c0150e556773",INVOCATION_ID:"f649072f604740d6b111000a163ba948",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",npm_package_name:"md",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"505",GITHUB_TRIGGERING_ACTOR:"yanglbme",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub-Actions-1000003917",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"doocs/md",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"218952803",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"1.6.0",npm_lifecycle_event:"build:only",GITHUB_REF_PROTECTED:"true",GITHUB_WORKSPACE:"/home/runner/work/md/md",ACCEPT_EULA:"Y",GITHUB_JOB:"build-and-deploy",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"389519be8d7a34a99cf277513a533323efcd33fe",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"yanglbme",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.3/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_31bae965-5b37-417e-995d-88fe848eb99b",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/md/md",GITHUB_ACTOR_ID:"21008209",RUNNER_WORKSPACE:"/home/runner/work/md",npm_execpath:"/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_31bae965-5b37-417e-995d-88fe848eb99b",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.3/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_31bae965-5b37-417e-995d-88fe848eb99b",INIT_CWD:"/home/runner/work/md/md",EDITOR:"vi",NODE_ENV:"production",LAUNCH_EDITOR:"code"},title:"node",argv:["/opt/hostedtoolcache/node/20.18.3/x64/bin/node","/home/runner/work/md/md/node_modules/.bin/vite","build"],execArgv:[],pid:2188,ppid:2187,execPath:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",debugPort:9229,argv0:"node",_preload_modules:[],report:{directory:"",filename:"",compact:!1,excludeNetwork:!1,signal:"SIGUSR2",reportOnFatalError:!1,reportOnSignal:!1,reportOnUncaughtException:!1}};return function(ed,ud){if(ed.setImmediate)return;var dd=1,hd={},md=!1,gd=ed.document,yd;function vd(Wd){typeof Wd!="function"&&(Wd=new Function(""+Wd));for(var Xd=new Array(arguments.length-1),Jd=0;Jd"u"?commonjsGlobal:self),setImmediate$1}var hasRequiredMain;function requireMain(){if(hasRequiredMain)return main;hasRequiredMain=1;var Ra=typeof commonjsGlobal<"u"&&commonjsGlobal||typeof self<"u"&&self||window,ed=Function.prototype.apply;main.setTimeout=function(){return new ud(ed.call(setTimeout,Ra,arguments),clearTimeout)},main.setInterval=function(){return new ud(ed.call(setInterval,Ra,arguments),clearInterval)},main.clearTimeout=main.clearInterval=function(dd){dd&&dd.close()};function ud(dd,hd){this._id=dd,this._clearFn=hd}return ud.prototype.unref=ud.prototype.ref=function(){},ud.prototype.close=function(){this._clearFn.call(Ra,this._id)},main.enroll=function(dd,hd){clearTimeout(dd._idleTimeoutId),dd._idleTimeout=hd},main.unenroll=function(dd){clearTimeout(dd._idleTimeoutId),dd._idleTimeout=-1},main._unrefActive=main.active=function(dd){clearTimeout(dd._idleTimeoutId);var hd=dd._idleTimeout;hd>=0&&(dd._idleTimeoutId=setTimeout(function(){dd._onTimeout&&dd._onTimeout()},hd))},requireSetImmediate(),main.setImmediate=typeof self<"u"&&self.setImmediate||typeof commonjsGlobal<"u"&&commonjsGlobal.setImmediate||commonjsGlobal&&commonjsGlobal.setImmediate,main.clearImmediate=typeof self<"u"&&self.clearImmediate||typeof commonjsGlobal<"u"&&commonjsGlobal.clearImmediate||commonjsGlobal&&commonjsGlobal.clearImmediate,main}var hasRequiredParser;function requireParser(){return hasRequiredParser||(hasRequiredParser=1,function(Ra){(function(){var ed,ud,dd,hd,md,gd,yd,vd,Cd=function(Ld,Ud){return function(){return Ld.apply(Ud,arguments)}},wd=function(Ld,Ud){for(var jd in Ud)Nd.call(Ud,jd)&&(Ld[jd]=Ud[jd]);function Gd(){this.constructor=Ld}return Gd.prototype=Ud.prototype,Ld.prototype=new Gd,Ld.__super__=Ud.prototype,Ld},Nd={}.hasOwnProperty;yd=requireSax(),dd=eventsExports,ed=requireBom(),gd=requireProcessors(),vd=requireMain().setImmediate,ud=requireDefaults().defaults,hd=function(Ld){return typeof Ld=="object"&&Ld!=null&&Object.keys(Ld).length===0},md=function(Ld,Ud,jd){var Gd,Yd,zd;for(Gd=0,Yd=Ld.length;Gd0&&(Zd[qd.options.childkey]=xf),xf=Zd;else if(gf){gf[qd.options.childkey]=gf[qd.options.childkey]||[],_f=Object.create(null);for(Jd in xf)Nd.call(xf,Jd)&&(_f[Jd]=xf[Jd]);gf[qd.options.childkey].push(_f),delete xf["#name"],Object.keys(xf).length===1&&Gd in xf&&!qd.EXPLICIT_CHARKEY&&(xf=xf[Gd])}}return zd.length>0?qd.assignOrPush(gf,mf,xf):(qd.options.explicitRoot&&(vf=xf,xf=Object.create(null),xf[mf]=vf),qd.resultObject=xf,qd.saxParser.ended=!0,qd.emit("end",qd.resultObject))}}(this),Yd=function(qd){return function(Wd){var Xd,Jd;if(Jd=zd[zd.length-1],Jd)return Jd[Gd]+=Wd,qd.options.explicitChildren&&qd.options.preserveChildrenOrder&&qd.options.charsAsChildren&&(qd.options.includeWhiteChars||Wd.replace(/\\n/g,"").trim()!=="")&&(Jd[qd.options.childkey]=Jd[qd.options.childkey]||[],Xd={"#name":"__text__"},Xd[Gd]=Wd,qd.options.normalize&&(Xd[Gd]=Xd[Gd].replace(/\s{2,}/g," ").trim()),Jd[qd.options.childkey].push(Xd)),Jd}}(this),this.saxParser.ontext=Yd,this.saxParser.oncdata=function(qd){return function(Wd){var Xd;if(Xd=Yd(Wd),Xd)return Xd.cdata=!0}}()},Ud.prototype.parseString=function(jd,Gd){var Yd;Gd!=null&&typeof Gd=="function"&&(this.on("end",function(zd){return this.reset(),Gd(null,zd)}),this.on("error",function(zd){return this.reset(),Gd(zd)}));try{return jd=jd.toString(),jd.trim()===""?(this.emit("end",null),!0):(jd=ed.stripBOM(jd),this.options.async?(this.remaining=jd,vd(this.processAsync),this.saxParser):this.saxParser.write(jd).close())}catch(zd){if(Yd=zd,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw Yd}else return this.emit("error",Yd),this.saxParser.errThrown=!0}},Ud.prototype.parseStringPromise=function(jd){return new Promise(function(Gd){return function(Yd,zd){return Gd.parseString(jd,function(qd,Wd){return qd?zd(qd):Yd(Wd)})}}(this))},Ud}(dd),Ra.parseString=function(Ld,Ud,jd){var Gd,Yd,zd;return jd!=null?(typeof jd=="function"&&(Gd=jd),typeof Ud=="object"&&(Yd=Ud)):(typeof Ud=="function"&&(Gd=Ud),Yd={}),zd=new Ra.Parser(Yd),zd.parseString(Ld,Gd)},Ra.parseStringPromise=function(Ld,Ud){var jd,Gd;return typeof Ud=="object"&&(jd=Ud),Gd=new Ra.Parser(jd),Gd.parseStringPromise(Ld)}}).call(commonjsGlobal)}(parser)),parser}(function(){var Ra,ed,ud,dd,hd=function(gd,yd){for(var vd in yd)md.call(yd,vd)&&(gd[vd]=yd[vd]);function Cd(){this.constructor=gd}return Cd.prototype=yd.prototype,gd.prototype=new Cd,gd.__super__=yd.prototype,gd},md={}.hasOwnProperty;ed=requireDefaults(),Ra=requireBuilder(),ud=requireParser(),dd=requireProcessors(),xml2js.defaults=ed.defaults,xml2js.processors=dd,xml2js.ValidationError=function(gd){hd(yd,gd);function yd(vd){this.message=vd}return yd}(Error),xml2js.Builder=Ra.Builder,xml2js.Parser=ud.Parser,xml2js.parseString=ud.parseString,xml2js.parseStringPromise=ud.parseStringPromise}).call(commonjsGlobal);class ExtendableError extends Error{constructor(ed,ud){super(ed,ud),this.name=this.constructor.name}}class AnonymousRequestError extends ExtendableError{}class InvalidArgumentError extends ExtendableError{}class InvalidEndpointError extends ExtendableError{}class InvalidBucketNameError extends ExtendableError{}class InvalidObjectNameError extends ExtendableError{}class AccessKeyRequiredError extends ExtendableError{}class SecretKeyRequiredError extends ExtendableError{}class ExpiresParamError extends ExtendableError{}class InvalidDateError extends ExtendableError{}class InvalidPrefixError extends ExtendableError{}class InvalidBucketPolicyError extends ExtendableError{}class InvalidXMLError extends ExtendableError{}class S3Error extends ExtendableError{}class IsValidBucketNameError extends ExtendableError{}var ipaddr$1={exports:{}};(function(Ra){(function(ed){const ud="(0?\\d+|0x[a-f0-9]+)",dd={fourOctet:new RegExp(`^${ud}\\.${ud}\\.${ud}\\.${ud}$`,"i"),threeOctet:new RegExp(`^${ud}\\.${ud}\\.${ud}$`,"i"),twoOctet:new RegExp(`^${ud}\\.${ud}$`,"i"),longValue:new RegExp(`^${ud}$`,"i")},hd=new RegExp("^0[0-7]+$","i"),md=new RegExp("^0x[a-f0-9]+$","i"),gd="%[0-9a-z]{1,}",yd="(?:[0-9a-f]+::?)+",vd={zoneIndex:new RegExp(gd,"i"),native:new RegExp(`^(::)?(${yd})?([0-9a-f]+)?(::)?(${gd})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${ud}\\.${ud}\\.${ud}\\.${ud}(${gd})?)$`,"i"),transitional:new RegExp(`^((?:${yd})|(?:::)(?:${yd})?)${ud}\\.${ud}\\.${ud}\\.${ud}(${gd})?$`,"i")};function Cd(jd,Gd){if(jd.indexOf("::")!==jd.lastIndexOf("::"))return null;let Yd=0,zd=-1,qd=(jd.match(vd.zoneIndex)||[])[0],Wd,Xd;for(qd&&(qd=qd.substring(1),jd=jd.replace(/%.+$/,""));(zd=jd.indexOf(":",zd+1))>=0;)Yd++;if(jd.substr(0,2)==="::"&&Yd--,jd.substr(-2,2)==="::"&&Yd--,Yd>Gd)return null;for(Xd=Gd-Yd,Wd=":";Xd--;)Wd+="0:";return jd=jd.replace("::",Wd),jd[0]===":"&&(jd=jd.slice(1)),jd[jd.length-1]===":"&&(jd=jd.slice(0,-1)),Gd=function(){const Jd=jd.split(":"),Zd=[];for(let mf=0;mf0;){if(Wd=Yd-zd,Wd<0&&(Wd=0),jd[qd]>>Wd!==Gd[qd]>>Wd)return!1;zd-=Yd,qd+=1}return!0}function Nd(jd){if(md.test(jd))return parseInt(jd,16);if(jd[0]==="0"&&!isNaN(parseInt(jd[1],10))){if(hd.test(jd))return parseInt(jd,8);throw new Error(`ipaddr: cannot parse ${jd} as octal`)}return parseInt(jd,10)}function Ld(jd,Gd){for(;jd.length=0;qd-=1)if(Wd=this.octets[qd],Wd in zd){if(Xd=zd[Wd],Yd&&Xd!==0)return null;Xd!==8&&(Yd=!0),Gd+=Xd}else return null;return 32-Gd},jd.prototype.range=function(){return Ud.subnetMatch(this,this.SpecialRanges)},jd.prototype.toByteArray=function(){return this.octets.slice(0)},jd.prototype.toIPv4MappedAddress=function(){return Ud.IPv6.parse(`::ffff:${this.toString()}`)},jd.prototype.toNormalizedString=function(){return this.toString()},jd.prototype.toString=function(){return this.octets.join(".")},jd}(),Ud.IPv4.broadcastAddressFromCIDR=function(jd){try{const Gd=this.parseCIDR(jd),Yd=Gd[0].toByteArray(),zd=this.subnetMaskFromPrefixLength(Gd[1]).toByteArray(),qd=[];let Wd=0;for(;Wd<4;)qd.push(parseInt(Yd[Wd],10)|parseInt(zd[Wd],10)^255),Wd++;return new this(qd)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},Ud.IPv4.isIPv4=function(jd){return this.parser(jd)!==null},Ud.IPv4.isValid=function(jd){try{return new this(this.parser(jd)),!0}catch{return!1}},Ud.IPv4.isValidCIDR=function(jd){try{return this.parseCIDR(jd),!0}catch{return!1}},Ud.IPv4.isValidFourPartDecimal=function(jd){return!!(Ud.IPv4.isValid(jd)&&jd.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},Ud.IPv4.networkAddressFromCIDR=function(jd){let Gd,Yd,zd,qd,Wd;try{for(Gd=this.parseCIDR(jd),zd=Gd[0].toByteArray(),Wd=this.subnetMaskFromPrefixLength(Gd[1]).toByteArray(),qd=[],Yd=0;Yd<4;)qd.push(parseInt(zd[Yd],10)&parseInt(Wd[Yd],10)),Yd++;return new this(qd)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},Ud.IPv4.parse=function(jd){const Gd=this.parser(jd);if(Gd===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(Gd)},Ud.IPv4.parseCIDR=function(jd){let Gd;if(Gd=jd.match(/^(.+)\/(\d+)$/)){const Yd=parseInt(Gd[2]);if(Yd>=0&&Yd<=32){const zd=[this.parse(Gd[1]),Yd];return Object.defineProperty(zd,"toString",{value:function(){return this.join("/")}}),zd}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},Ud.IPv4.parser=function(jd){let Gd,Yd,zd;if(Gd=jd.match(dd.fourOctet))return function(){const qd=Gd.slice(1,6),Wd=[];for(let Xd=0;Xd4294967295||zd<0)throw new Error("ipaddr: address outside defined range");return function(){const qd=[];let Wd;for(Wd=0;Wd<=24;Wd+=8)qd.push(zd>>Wd&255);return qd}().reverse()}else return(Gd=jd.match(dd.twoOctet))?function(){const qd=Gd.slice(1,4),Wd=[];if(zd=Nd(qd[1]),zd>16777215||zd<0)throw new Error("ipaddr: address outside defined range");return Wd.push(Nd(qd[0])),Wd.push(zd>>16&255),Wd.push(zd>>8&255),Wd.push(zd&255),Wd}():(Gd=jd.match(dd.threeOctet))?function(){const qd=Gd.slice(1,5),Wd=[];if(zd=Nd(qd[2]),zd>65535||zd<0)throw new Error("ipaddr: address outside defined range");return Wd.push(Nd(qd[0])),Wd.push(Nd(qd[1])),Wd.push(zd>>8&255),Wd.push(zd&255),Wd}():null},Ud.IPv4.subnetMaskFromPrefixLength=function(jd){if(jd=parseInt(jd),jd<0||jd>32)throw new Error("ipaddr: invalid IPv4 prefix length");const Gd=[0,0,0,0];let Yd=0;const zd=Math.floor(jd/8);for(;Yd=0;Xd-=1)if(qd=this.parts[Xd],qd in zd){if(Wd=zd[qd],Yd&&Wd!==0)return null;Wd!==16&&(Yd=!0),Gd+=Wd}else return null;return 128-Gd},jd.prototype.range=function(){return Ud.subnetMatch(this,this.SpecialRanges)},jd.prototype.toByteArray=function(){let Gd;const Yd=[],zd=this.parts;for(let qd=0;qd>8),Yd.push(Gd&255);return Yd},jd.prototype.toFixedLengthString=function(){const Gd=(function(){const zd=[];for(let qd=0;qd>8,Yd&255,zd>>8,zd&255])},jd.prototype.toNormalizedString=function(){const Gd=(function(){const zd=[];for(let qd=0;qdqd&&(zd=Wd.index,qd=Wd[0].length);return qd<0?Yd:`${Yd.substring(0,zd)}::${Yd.substring(zd+qd)}`},jd.prototype.toString=function(){return this.toRFC5952String()},jd}(),Ud.IPv6.broadcastAddressFromCIDR=function(jd){try{const Gd=this.parseCIDR(jd),Yd=Gd[0].toByteArray(),zd=this.subnetMaskFromPrefixLength(Gd[1]).toByteArray(),qd=[];let Wd=0;for(;Wd<16;)qd.push(parseInt(Yd[Wd],10)|parseInt(zd[Wd],10)^255),Wd++;return new this(qd)}catch(Gd){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${Gd})`)}},Ud.IPv6.isIPv6=function(jd){return this.parser(jd)!==null},Ud.IPv6.isValid=function(jd){if(typeof jd=="string"&&jd.indexOf(":")===-1)return!1;try{const Gd=this.parser(jd);return new this(Gd.parts,Gd.zoneId),!0}catch{return!1}},Ud.IPv6.isValidCIDR=function(jd){if(typeof jd=="string"&&jd.indexOf(":")===-1)return!1;try{return this.parseCIDR(jd),!0}catch{return!1}},Ud.IPv6.networkAddressFromCIDR=function(jd){let Gd,Yd,zd,qd,Wd;try{for(Gd=this.parseCIDR(jd),zd=Gd[0].toByteArray(),Wd=this.subnetMaskFromPrefixLength(Gd[1]).toByteArray(),qd=[],Yd=0;Yd<16;)qd.push(parseInt(zd[Yd],10)&parseInt(Wd[Yd],10)),Yd++;return new this(qd)}catch(Xd){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${Xd})`)}},Ud.IPv6.parse=function(jd){const Gd=this.parser(jd);if(Gd.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(Gd.parts,Gd.zoneId)},Ud.IPv6.parseCIDR=function(jd){let Gd,Yd,zd;if((Yd=jd.match(/^(.+)\/(\d+)$/))&&(Gd=parseInt(Yd[2]),Gd>=0&&Gd<=128))return zd=[this.parse(Yd[1]),Gd],Object.defineProperty(zd,"toString",{value:function(){return this.join("/")}}),zd;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},Ud.IPv6.parser=function(jd){let Gd,Yd,zd,qd,Wd,Xd;if(zd=jd.match(vd.deprecatedTransitional))return this.parser(`::ffff:${zd[1]}`);if(vd.native.test(jd))return Cd(jd,8);if((zd=jd.match(vd.transitional))&&(Xd=zd[6]||"",Gd=zd[1],zd[1].endsWith("::")||(Gd=Gd.slice(0,-1)),Gd=Cd(Gd+Xd,6),Gd.parts)){for(Wd=[parseInt(zd[2]),parseInt(zd[3]),parseInt(zd[4]),parseInt(zd[5])],Yd=0;Yd128)throw new Error("ipaddr: invalid IPv6 prefix length");const Gd=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];let Yd=0;const zd=Math.floor(jd/8);for(;Yd":"attribute: {"+ud+"}, parent: <"+this.parent.name+">"},ed.prototype.isEqualNode=function(ud){return!(ud.namespaceURI!==this.namespaceURI||ud.prefix!==this.prefix||ud.localName!==this.localName||ud.value!==this.value)},ed}()}).call(commonjsGlobal)),XMLAttribute.exports}var XMLNamedNodeMap={exports:{}},hasRequiredXMLNamedNodeMap;function requireXMLNamedNodeMap(){return hasRequiredXMLNamedNodeMap||(hasRequiredXMLNamedNodeMap=1,(function(){XMLNamedNodeMap.exports=function(){function Ra(ed){this.nodes=ed}return Object.defineProperty(Ra.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),Ra.prototype.clone=function(){return this.nodes=null},Ra.prototype.getNamedItem=function(ed){return this.nodes[ed]},Ra.prototype.setNamedItem=function(ed){var ud;return ud=this.nodes[ed.nodeName],this.nodes[ed.nodeName]=ed,ud||null},Ra.prototype.removeNamedItem=function(ed){var ud;return ud=this.nodes[ed],delete this.nodes[ed],ud||null},Ra.prototype.item=function(ed){return this.nodes[Object.keys(this.nodes)[ed]]||null},Ra.prototype.getNamedItemNS=function(ed,ud){throw new Error("This DOM method is not implemented.")},Ra.prototype.setNamedItemNS=function(ed){throw new Error("This DOM method is not implemented.")},Ra.prototype.removeNamedItemNS=function(ed,ud){throw new Error("This DOM method is not implemented.")},Ra}()}).call(commonjsGlobal)),XMLNamedNodeMap.exports}var hasRequiredXMLElement;function requireXMLElement(){return hasRequiredXMLElement||(hasRequiredXMLElement=1,(function(){var Ra,ed,ud,dd,hd,md,gd,yd,vd=function(wd,Nd){for(var Ld in Nd)Cd.call(Nd,Ld)&&(wd[Ld]=Nd[Ld]);function Ud(){this.constructor=wd}return Ud.prototype=Nd.prototype,wd.prototype=new Ud,wd.__super__=Nd.prototype,wd},Cd={}.hasOwnProperty;yd=requireUtility(),gd=yd.isObject,md=yd.isFunction,hd=yd.getValue,dd=requireXMLNode(),Ra=requireNodeType(),ed=requireXMLAttribute(),ud=requireXMLNamedNodeMap(),XMLElement.exports=function(wd){vd(Nd,wd);function Nd(Ld,Ud,jd){var Gd,Yd,zd,qd;if(Nd.__super__.constructor.call(this,Ld),Ud==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(Ud),this.type=Ra.Element,this.attribs={},this.schemaTypeInfo=null,jd!=null&&this.attribute(jd),Ld.type===Ra.Document&&(this.isRoot=!0,this.documentObject=Ld,Ld.rootObject=this,Ld.children)){for(qd=Ld.children,Yd=0,zd=qd.length;Yd=Gd;Ud=0<=Gd?++jd:--jd)if(!this.attribs[Ud].isEqualNode(Ld.attribs[Ud]))return!1;return!0},Nd}(dd)}).call(commonjsGlobal)),XMLElement.exports}var XMLCData={exports:{}},XMLCharacterData={exports:{}},hasRequiredXMLCharacterData;function requireXMLCharacterData(){return hasRequiredXMLCharacterData||(hasRequiredXMLCharacterData=1,(function(){var Ra,ed=function(dd,hd){for(var md in hd)ud.call(hd,md)&&(dd[md]=hd[md]);function gd(){this.constructor=dd}return gd.prototype=hd.prototype,dd.prototype=new gd,dd.__super__=hd.prototype,dd},ud={}.hasOwnProperty;Ra=requireXMLNode(),XMLCharacterData.exports=function(dd){ed(hd,dd);function hd(md){hd.__super__.constructor.call(this,md),this.value=""}return Object.defineProperty(hd.prototype,"data",{get:function(){return this.value},set:function(md){return this.value=md||""}}),Object.defineProperty(hd.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(hd.prototype,"textContent",{get:function(){return this.value},set:function(md){return this.value=md||""}}),hd.prototype.clone=function(){return Object.create(this)},hd.prototype.substringData=function(md,gd){throw new Error("This DOM method is not implemented."+this.debugInfo())},hd.prototype.appendData=function(md){throw new Error("This DOM method is not implemented."+this.debugInfo())},hd.prototype.insertData=function(md,gd){throw new Error("This DOM method is not implemented."+this.debugInfo())},hd.prototype.deleteData=function(md,gd){throw new Error("This DOM method is not implemented."+this.debugInfo())},hd.prototype.replaceData=function(md,gd,yd){throw new Error("This DOM method is not implemented."+this.debugInfo())},hd.prototype.isEqualNode=function(md){return!(!hd.__super__.isEqualNode.apply(this,arguments).isEqualNode(md)||md.data!==this.data)},hd}(Ra)}).call(commonjsGlobal)),XMLCharacterData.exports}var hasRequiredXMLCData;function requireXMLCData(){return hasRequiredXMLCData||(hasRequiredXMLCData=1,(function(){var Ra,ed,ud=function(hd,md){for(var gd in md)dd.call(md,gd)&&(hd[gd]=md[gd]);function yd(){this.constructor=hd}return yd.prototype=md.prototype,hd.prototype=new yd,hd.__super__=md.prototype,hd},dd={}.hasOwnProperty;Ra=requireNodeType(),ed=requireXMLCharacterData(),XMLCData.exports=function(hd){ud(md,hd);function md(gd,yd){if(md.__super__.constructor.call(this,gd),yd==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=Ra.CData,this.value=this.stringify.cdata(yd)}return md.prototype.clone=function(){return Object.create(this)},md.prototype.toString=function(gd){return this.options.writer.cdata(this,this.options.writer.filterOptions(gd))},md}(ed)}).call(commonjsGlobal)),XMLCData.exports}var XMLComment={exports:{}},hasRequiredXMLComment;function requireXMLComment(){return hasRequiredXMLComment||(hasRequiredXMLComment=1,(function(){var Ra,ed,ud=function(hd,md){for(var gd in md)dd.call(md,gd)&&(hd[gd]=md[gd]);function yd(){this.constructor=hd}return yd.prototype=md.prototype,hd.prototype=new yd,hd.__super__=md.prototype,hd},dd={}.hasOwnProperty;Ra=requireNodeType(),ed=requireXMLCharacterData(),XMLComment.exports=function(hd){ud(md,hd);function md(gd,yd){if(md.__super__.constructor.call(this,gd),yd==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=Ra.Comment,this.value=this.stringify.comment(yd)}return md.prototype.clone=function(){return Object.create(this)},md.prototype.toString=function(gd){return this.options.writer.comment(this,this.options.writer.filterOptions(gd))},md}(ed)}).call(commonjsGlobal)),XMLComment.exports}var XMLDeclaration={exports:{}},hasRequiredXMLDeclaration;function requireXMLDeclaration(){return hasRequiredXMLDeclaration||(hasRequiredXMLDeclaration=1,(function(){var Ra,ed,ud,dd=function(md,gd){for(var yd in gd)hd.call(gd,yd)&&(md[yd]=gd[yd]);function vd(){this.constructor=md}return vd.prototype=gd.prototype,md.prototype=new vd,md.__super__=gd.prototype,md},hd={}.hasOwnProperty;ud=requireUtility().isObject,ed=requireXMLNode(),Ra=requireNodeType(),XMLDeclaration.exports=function(md){dd(gd,md);function gd(yd,vd,Cd,wd){var Nd;gd.__super__.constructor.call(this,yd),ud(vd)&&(Nd=vd,vd=Nd.version,Cd=Nd.encoding,wd=Nd.standalone),vd||(vd="1.0"),this.type=Ra.Declaration,this.version=this.stringify.xmlVersion(vd),Cd!=null&&(this.encoding=this.stringify.xmlEncoding(Cd)),wd!=null&&(this.standalone=this.stringify.xmlStandalone(wd))}return gd.prototype.toString=function(yd){return this.options.writer.declaration(this,this.options.writer.filterOptions(yd))},gd}(ed)}).call(commonjsGlobal)),XMLDeclaration.exports}var XMLDocType={exports:{}},XMLDTDAttList={exports:{}},hasRequiredXMLDTDAttList;function requireXMLDTDAttList(){return hasRequiredXMLDTDAttList||(hasRequiredXMLDTDAttList=1,(function(){var Ra,ed,ud=function(hd,md){for(var gd in md)dd.call(md,gd)&&(hd[gd]=md[gd]);function yd(){this.constructor=hd}return yd.prototype=md.prototype,hd.prototype=new yd,hd.__super__=md.prototype,hd},dd={}.hasOwnProperty;ed=requireXMLNode(),Ra=requireNodeType(),XMLDTDAttList.exports=function(hd){ud(md,hd);function md(gd,yd,vd,Cd,wd,Nd){if(md.__super__.constructor.call(this,gd),yd==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(vd==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(yd));if(!Cd)throw new Error("Missing DTD attribute type. "+this.debugInfo(yd));if(!wd)throw new Error("Missing DTD attribute default. "+this.debugInfo(yd));if(wd.indexOf("#")!==0&&(wd="#"+wd),!wd.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(yd));if(Nd&&!wd.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(yd));this.elementName=this.stringify.name(yd),this.type=Ra.AttributeDeclaration,this.attributeName=this.stringify.name(vd),this.attributeType=this.stringify.dtdAttType(Cd),Nd&&(this.defaultValue=this.stringify.dtdAttDefault(Nd)),this.defaultValueType=wd}return md.prototype.toString=function(gd){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(gd))},md}(ed)}).call(commonjsGlobal)),XMLDTDAttList.exports}var XMLDTDEntity={exports:{}},hasRequiredXMLDTDEntity;function requireXMLDTDEntity(){return hasRequiredXMLDTDEntity||(hasRequiredXMLDTDEntity=1,(function(){var Ra,ed,ud,dd=function(md,gd){for(var yd in gd)hd.call(gd,yd)&&(md[yd]=gd[yd]);function vd(){this.constructor=md}return vd.prototype=gd.prototype,md.prototype=new vd,md.__super__=gd.prototype,md},hd={}.hasOwnProperty;ud=requireUtility().isObject,ed=requireXMLNode(),Ra=requireNodeType(),XMLDTDEntity.exports=function(md){dd(gd,md);function gd(yd,vd,Cd,wd){if(gd.__super__.constructor.call(this,yd),Cd==null)throw new Error("Missing DTD entity name. "+this.debugInfo(Cd));if(wd==null)throw new Error("Missing DTD entity value. "+this.debugInfo(Cd));if(this.pe=!!vd,this.name=this.stringify.name(Cd),this.type=Ra.EntityDeclaration,!ud(wd))this.value=this.stringify.dtdEntityValue(wd),this.internal=!0;else{if(!wd.pubID&&!wd.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(Cd));if(wd.pubID&&!wd.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(Cd));if(this.internal=!1,wd.pubID!=null&&(this.pubID=this.stringify.dtdPubID(wd.pubID)),wd.sysID!=null&&(this.sysID=this.stringify.dtdSysID(wd.sysID)),wd.nData!=null&&(this.nData=this.stringify.dtdNData(wd.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(Cd))}}return Object.defineProperty(gd.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(gd.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(gd.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(gd.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(gd.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(gd.prototype,"xmlVersion",{get:function(){return null}}),gd.prototype.toString=function(yd){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(yd))},gd}(ed)}).call(commonjsGlobal)),XMLDTDEntity.exports}var XMLDTDElement={exports:{}},hasRequiredXMLDTDElement;function requireXMLDTDElement(){return hasRequiredXMLDTDElement||(hasRequiredXMLDTDElement=1,(function(){var Ra,ed,ud=function(hd,md){for(var gd in md)dd.call(md,gd)&&(hd[gd]=md[gd]);function yd(){this.constructor=hd}return yd.prototype=md.prototype,hd.prototype=new yd,hd.__super__=md.prototype,hd},dd={}.hasOwnProperty;ed=requireXMLNode(),Ra=requireNodeType(),XMLDTDElement.exports=function(hd){ud(md,hd);function md(gd,yd,vd){if(md.__super__.constructor.call(this,gd),yd==null)throw new Error("Missing DTD element name. "+this.debugInfo());vd||(vd="(#PCDATA)"),Array.isArray(vd)&&(vd="("+vd.join(",")+")"),this.name=this.stringify.name(yd),this.type=Ra.ElementDeclaration,this.value=this.stringify.dtdElementValue(vd)}return md.prototype.toString=function(gd){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(gd))},md}(ed)}).call(commonjsGlobal)),XMLDTDElement.exports}var XMLDTDNotation={exports:{}},hasRequiredXMLDTDNotation;function requireXMLDTDNotation(){return hasRequiredXMLDTDNotation||(hasRequiredXMLDTDNotation=1,(function(){var Ra,ed,ud=function(hd,md){for(var gd in md)dd.call(md,gd)&&(hd[gd]=md[gd]);function yd(){this.constructor=hd}return yd.prototype=md.prototype,hd.prototype=new yd,hd.__super__=md.prototype,hd},dd={}.hasOwnProperty;ed=requireXMLNode(),Ra=requireNodeType(),XMLDTDNotation.exports=function(hd){ud(md,hd);function md(gd,yd,vd){if(md.__super__.constructor.call(this,gd),yd==null)throw new Error("Missing DTD notation name. "+this.debugInfo(yd));if(!vd.pubID&&!vd.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(yd));this.name=this.stringify.name(yd),this.type=Ra.NotationDeclaration,vd.pubID!=null&&(this.pubID=this.stringify.dtdPubID(vd.pubID)),vd.sysID!=null&&(this.sysID=this.stringify.dtdSysID(vd.sysID))}return Object.defineProperty(md.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(md.prototype,"systemId",{get:function(){return this.sysID}}),md.prototype.toString=function(gd){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(gd))},md}(ed)}).call(commonjsGlobal)),XMLDTDNotation.exports}var hasRequiredXMLDocType;function requireXMLDocType(){return hasRequiredXMLDocType||(hasRequiredXMLDocType=1,(function(){var Ra,ed,ud,dd,hd,md,gd,yd,vd=function(wd,Nd){for(var Ld in Nd)Cd.call(Nd,Ld)&&(wd[Ld]=Nd[Ld]);function Ud(){this.constructor=wd}return Ud.prototype=Nd.prototype,wd.prototype=new Ud,wd.__super__=Nd.prototype,wd},Cd={}.hasOwnProperty;yd=requireUtility().isObject,gd=requireXMLNode(),Ra=requireNodeType(),ed=requireXMLDTDAttList(),dd=requireXMLDTDEntity(),ud=requireXMLDTDElement(),hd=requireXMLDTDNotation(),md=requireXMLNamedNodeMap(),XMLDocType.exports=function(wd){vd(Nd,wd);function Nd(Ld,Ud,jd){var Gd,Yd,zd,qd,Wd,Xd;if(Nd.__super__.constructor.call(this,Ld),this.type=Ra.DocType,Ld.children){for(qd=Ld.children,Yd=0,zd=qd.length;Yd":(Jd=this.parent)!=null&&Jd.name?"node: <"+Wd+">, parent: <"+this.parent.name+">":"node: <"+Wd+">"},qd.prototype.ele=function(Wd,Xd,Jd){return this.element(Wd,Xd,Jd)},qd.prototype.nod=function(Wd,Xd,Jd){return this.node(Wd,Xd,Jd)},qd.prototype.txt=function(Wd){return this.text(Wd)},qd.prototype.dat=function(Wd){return this.cdata(Wd)},qd.prototype.com=function(Wd){return this.comment(Wd)},qd.prototype.ins=function(Wd,Xd){return this.instruction(Wd,Xd)},qd.prototype.doc=function(){return this.document()},qd.prototype.dec=function(Wd,Xd,Jd){return this.declaration(Wd,Xd,Jd)},qd.prototype.e=function(Wd,Xd,Jd){return this.element(Wd,Xd,Jd)},qd.prototype.n=function(Wd,Xd,Jd){return this.node(Wd,Xd,Jd)},qd.prototype.t=function(Wd){return this.text(Wd)},qd.prototype.d=function(Wd){return this.cdata(Wd)},qd.prototype.c=function(Wd){return this.comment(Wd)},qd.prototype.r=function(Wd){return this.raw(Wd)},qd.prototype.i=function(Wd,Xd){return this.instruction(Wd,Xd)},qd.prototype.u=function(){return this.up()},qd.prototype.importXMLBuilder=function(Wd){return this.importDocument(Wd)},qd.prototype.replaceChild=function(Wd,Xd){throw new Error("This DOM method is not implemented."+this.debugInfo())},qd.prototype.removeChild=function(Wd){throw new Error("This DOM method is not implemented."+this.debugInfo())},qd.prototype.appendChild=function(Wd){throw new Error("This DOM method is not implemented."+this.debugInfo())},qd.prototype.hasChildNodes=function(){return this.children.length!==0},qd.prototype.cloneNode=function(Wd){throw new Error("This DOM method is not implemented."+this.debugInfo())},qd.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},qd.prototype.isSupported=function(Wd,Xd){return!0},qd.prototype.hasAttributes=function(){return this.attribs.length!==0},qd.prototype.compareDocumentPosition=function(Wd){var Xd,Jd;return Xd=this,Xd===Wd?0:this.document()!==Wd.document()?(Jd=Ra.Disconnected|Ra.ImplementationSpecific,Math.random()<.5?Jd|=Ra.Preceding:Jd|=Ra.Following,Jd):Xd.isAncestor(Wd)?Ra.Contains|Ra.Preceding:Xd.isDescendant(Wd)?Ra.Contains|Ra.Following:Xd.isPreceding(Wd)?Ra.Preceding:Ra.Following},qd.prototype.isSameNode=function(Wd){throw new Error("This DOM method is not implemented."+this.debugInfo())},qd.prototype.lookupPrefix=function(Wd){throw new Error("This DOM method is not implemented."+this.debugInfo())},qd.prototype.isDefaultNamespace=function(Wd){throw new Error("This DOM method is not implemented."+this.debugInfo())},qd.prototype.lookupNamespaceURI=function(Wd){throw new Error("This DOM method is not implemented."+this.debugInfo())},qd.prototype.isEqualNode=function(Wd){var Xd,Jd,Zd;if(Wd.nodeType!==this.nodeType||Wd.children.length!==this.children.length)return!1;for(Xd=Jd=0,Zd=this.children.length-1;0<=Zd?Jd<=Zd:Jd>=Zd;Xd=0<=Zd?++Jd:--Jd)if(!this.children[Xd].isEqualNode(Wd.children[Xd]))return!1;return!0},qd.prototype.getFeature=function(Wd,Xd){throw new Error("This DOM method is not implemented."+this.debugInfo())},qd.prototype.setUserData=function(Wd,Xd,Jd){throw new Error("This DOM method is not implemented."+this.debugInfo())},qd.prototype.getUserData=function(Wd){throw new Error("This DOM method is not implemented."+this.debugInfo())},qd.prototype.contains=function(Wd){return Wd?Wd===this||this.isDescendant(Wd):!1},qd.prototype.isDescendant=function(Wd){var Xd,Jd,Zd,mf,xf;for(xf=this.children,Zd=0,mf=xf.length;ZdJd},qd.prototype.treePosition=function(Wd){var Xd,Jd;return Jd=0,Xd=!1,this.foreachTreeNode(this.document(),function(Zd){if(Jd++,!Xd&&Zd===Wd)return Xd=!0}),Xd?Jd:-1},qd.prototype.foreachTreeNode=function(Wd,Xd){var Jd,Zd,mf,xf,_f;for(Wd||(Wd=this.document()),xf=Wd.children,Zd=0,mf=xf.length;Zd","]]]]>"),this.assertLegalChar(dd))},ud.prototype.comment=function(dd){if(this.options.noValidation)return dd;if(dd=""+dd||"",dd.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+dd);return this.assertLegalChar(dd)},ud.prototype.raw=function(dd){return this.options.noValidation?dd:""+dd||""},ud.prototype.attValue=function(dd){return this.options.noValidation?dd:this.assertLegalChar(this.attEscape(dd=""+dd||""))},ud.prototype.insTarget=function(dd){return this.options.noValidation?dd:this.assertLegalChar(""+dd||"")},ud.prototype.insValue=function(dd){if(this.options.noValidation)return dd;if(dd=""+dd||"",dd.match(/\?>/))throw new Error("Invalid processing instruction value: "+dd);return this.assertLegalChar(dd)},ud.prototype.xmlVersion=function(dd){if(this.options.noValidation)return dd;if(dd=""+dd||"",!dd.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+dd);return dd},ud.prototype.xmlEncoding=function(dd){if(this.options.noValidation)return dd;if(dd=""+dd||"",!dd.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+dd);return this.assertLegalChar(dd)},ud.prototype.xmlStandalone=function(dd){return this.options.noValidation?dd:dd?"yes":"no"},ud.prototype.dtdPubID=function(dd){return this.options.noValidation?dd:this.assertLegalChar(""+dd||"")},ud.prototype.dtdSysID=function(dd){return this.options.noValidation?dd:this.assertLegalChar(""+dd||"")},ud.prototype.dtdElementValue=function(dd){return this.options.noValidation?dd:this.assertLegalChar(""+dd||"")},ud.prototype.dtdAttType=function(dd){return this.options.noValidation?dd:this.assertLegalChar(""+dd||"")},ud.prototype.dtdAttDefault=function(dd){return this.options.noValidation?dd:this.assertLegalChar(""+dd||"")},ud.prototype.dtdEntityValue=function(dd){return this.options.noValidation?dd:this.assertLegalChar(""+dd||"")},ud.prototype.dtdNData=function(dd){return this.options.noValidation?dd:this.assertLegalChar(""+dd||"")},ud.prototype.convertAttKey="@",ud.prototype.convertPIKey="?",ud.prototype.convertTextKey="#text",ud.prototype.convertCDataKey="#cdata",ud.prototype.convertCommentKey="#comment",ud.prototype.convertRawKey="#raw",ud.prototype.assertLegalChar=function(dd){var hd,md;if(this.options.noValidation)return dd;if(hd="",this.options.version==="1.0"){if(hd=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,md=dd.match(hd))throw new Error("Invalid character in string: "+dd+" at index "+md.index)}else if(this.options.version==="1.1"&&(hd=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,md=dd.match(hd)))throw new Error("Invalid character in string: "+dd+" at index "+md.index);return dd},ud.prototype.assertLegalName=function(dd){var hd;if(this.options.noValidation)return dd;if(this.assertLegalChar(dd),hd=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!dd.match(hd))throw new Error("Invalid character in name");return dd},ud.prototype.textEscape=function(dd){var hd;return this.options.noValidation?dd:(hd=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,dd.replace(hd,"&").replace(//g,">").replace(/\r/g," "))},ud.prototype.attEscape=function(dd){var hd;return this.options.noValidation?dd:(hd=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,dd.replace(hd,"&").replace(/0)?new Array(vd).join(gd.indent):""},hd.prototype.endline=function(md,gd,yd){return!gd.pretty||gd.suppressPrettyCount?"":gd.newline},hd.prototype.attribute=function(md,gd,yd){var vd;return this.openAttribute(md,gd,yd),vd=" "+md.name+'="'+md.value+'"',this.closeAttribute(md,gd,yd),vd},hd.prototype.cdata=function(md,gd,yd){var vd;return this.openNode(md,gd,yd),gd.state=ed.OpenTag,vd=this.indent(md,gd,yd)+""+this.endline(md,gd,yd),gd.state=ed.None,this.closeNode(md,gd,yd),vd},hd.prototype.comment=function(md,gd,yd){var vd;return this.openNode(md,gd,yd),gd.state=ed.OpenTag,vd=this.indent(md,gd,yd)+""+this.endline(md,gd,yd),gd.state=ed.None,this.closeNode(md,gd,yd),vd},hd.prototype.declaration=function(md,gd,yd){var vd;return this.openNode(md,gd,yd),gd.state=ed.OpenTag,vd=this.indent(md,gd,yd)+"",vd+=this.endline(md,gd,yd),gd.state=ed.None,this.closeNode(md,gd,yd),vd},hd.prototype.docType=function(md,gd,yd){var vd,Cd,wd,Nd,Ld;if(yd||(yd=0),this.openNode(md,gd,yd),gd.state=ed.OpenTag,Nd=this.indent(md,gd,yd),Nd+="0){for(Nd+=" [",Nd+=this.endline(md,gd,yd),gd.state=ed.InsideTag,Ld=md.children,Cd=0,wd=Ld.length;Cd",Nd+=this.endline(md,gd,yd),gd.state=ed.None,this.closeNode(md,gd,yd),Nd},hd.prototype.element=function(md,gd,yd){var vd,Cd,wd,Nd,Ld,Ud,jd,Gd,Yd,zd,qd,Wd,Xd,Jd;yd||(yd=0),zd=!1,qd="",this.openNode(md,gd,yd),gd.state=ed.OpenTag,qd+=this.indent(md,gd,yd)+"<"+md.name,Wd=md.attribs;for(Yd in Wd)dd.call(Wd,Yd)&&(vd=Wd[Yd],qd+=this.attribute(vd,gd,yd));if(wd=md.children.length,Nd=wd===0?null:md.children[0],wd===0||md.children.every(function(Zd){return(Zd.type===Ra.Text||Zd.type===Ra.Raw)&&Zd.value===""}))gd.allowEmpty?(qd+=">",gd.state=ed.CloseTag,qd+=""+this.endline(md,gd,yd)):(gd.state=ed.CloseTag,qd+=gd.spaceBeforeSlash+"/>"+this.endline(md,gd,yd));else if(gd.pretty&&wd===1&&(Nd.type===Ra.Text||Nd.type===Ra.Raw)&&Nd.value!=null)qd+=">",gd.state=ed.InsideTag,gd.suppressPrettyCount++,zd=!0,qd+=this.writeChildNode(Nd,gd,yd+1),gd.suppressPrettyCount--,zd=!1,gd.state=ed.CloseTag,qd+=""+this.endline(md,gd,yd);else{if(gd.dontPrettyTextNodes){for(Xd=md.children,Ld=0,jd=Xd.length;Ld"+this.endline(md,gd,yd),gd.state=ed.InsideTag,Jd=md.children,Ud=0,Gd=Jd.length;Ud",zd&&gd.suppressPrettyCount--,qd+=this.endline(md,gd,yd),gd.state=ed.None}return this.closeNode(md,gd,yd),qd},hd.prototype.writeChildNode=function(md,gd,yd){switch(md.type){case Ra.CData:return this.cdata(md,gd,yd);case Ra.Comment:return this.comment(md,gd,yd);case Ra.Element:return this.element(md,gd,yd);case Ra.Raw:return this.raw(md,gd,yd);case Ra.Text:return this.text(md,gd,yd);case Ra.ProcessingInstruction:return this.processingInstruction(md,gd,yd);case Ra.Dummy:return"";case Ra.Declaration:return this.declaration(md,gd,yd);case Ra.DocType:return this.docType(md,gd,yd);case Ra.AttributeDeclaration:return this.dtdAttList(md,gd,yd);case Ra.ElementDeclaration:return this.dtdElement(md,gd,yd);case Ra.EntityDeclaration:return this.dtdEntity(md,gd,yd);case Ra.NotationDeclaration:return this.dtdNotation(md,gd,yd);default:throw new Error("Unknown XML node type: "+md.constructor.name)}},hd.prototype.processingInstruction=function(md,gd,yd){var vd;return this.openNode(md,gd,yd),gd.state=ed.OpenTag,vd=this.indent(md,gd,yd)+"",vd+=this.endline(md,gd,yd),gd.state=ed.None,this.closeNode(md,gd,yd),vd},hd.prototype.raw=function(md,gd,yd){var vd;return this.openNode(md,gd,yd),gd.state=ed.OpenTag,vd=this.indent(md,gd,yd),gd.state=ed.InsideTag,vd+=md.value,gd.state=ed.CloseTag,vd+=this.endline(md,gd,yd),gd.state=ed.None,this.closeNode(md,gd,yd),vd},hd.prototype.text=function(md,gd,yd){var vd;return this.openNode(md,gd,yd),gd.state=ed.OpenTag,vd=this.indent(md,gd,yd),gd.state=ed.InsideTag,vd+=md.value,gd.state=ed.CloseTag,vd+=this.endline(md,gd,yd),gd.state=ed.None,this.closeNode(md,gd,yd),vd},hd.prototype.dtdAttList=function(md,gd,yd){var vd;return this.openNode(md,gd,yd),gd.state=ed.OpenTag,vd=this.indent(md,gd,yd)+""+this.endline(md,gd,yd),gd.state=ed.None,this.closeNode(md,gd,yd),vd},hd.prototype.dtdElement=function(md,gd,yd){var vd;return this.openNode(md,gd,yd),gd.state=ed.OpenTag,vd=this.indent(md,gd,yd)+""+this.endline(md,gd,yd),gd.state=ed.None,this.closeNode(md,gd,yd),vd},hd.prototype.dtdEntity=function(md,gd,yd){var vd;return this.openNode(md,gd,yd),gd.state=ed.OpenTag,vd=this.indent(md,gd,yd)+""+this.endline(md,gd,yd),gd.state=ed.None,this.closeNode(md,gd,yd),vd},hd.prototype.dtdNotation=function(md,gd,yd){var vd;return this.openNode(md,gd,yd),gd.state=ed.OpenTag,vd=this.indent(md,gd,yd)+""+this.endline(md,gd,yd),gd.state=ed.None,this.closeNode(md,gd,yd),vd},hd.prototype.openNode=function(md,gd,yd){},hd.prototype.closeNode=function(md,gd,yd){},hd.prototype.openAttribute=function(md,gd,yd){},hd.prototype.closeAttribute=function(md,gd,yd){},hd}()}).call(commonjsGlobal)),XMLWriterBase.exports}var hasRequiredXMLStringWriter;function requireXMLStringWriter(){return hasRequiredXMLStringWriter||(hasRequiredXMLStringWriter=1,(function(){var Ra,ed=function(dd,hd){for(var md in hd)ud.call(hd,md)&&(dd[md]=hd[md]);function gd(){this.constructor=dd}return gd.prototype=hd.prototype,dd.prototype=new gd,dd.__super__=hd.prototype,dd},ud={}.hasOwnProperty;Ra=requireXMLWriterBase(),XMLStringWriter.exports=function(dd){ed(hd,dd);function hd(md){hd.__super__.constructor.call(this,md)}return hd.prototype.document=function(md,gd){var yd,vd,Cd,wd,Nd;for(gd=this.filterOptions(gd),wd="",Nd=md.children,vd=0,Cd=Nd.length;vd=0;)this.up();return this.onEnd()},xf.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},xf.prototype.openNode=function(_f){var vf,gf,Af,Df;if(!_f.isOpen){if(!this.root&&this.currentLevel===0&&_f.type===Ra.Element&&(this.root=_f),gf="",_f.type===Ra.Element){this.writerOptions.state=ed.OpenTag,gf=this.writer.indent(_f,this.writerOptions,this.currentLevel)+"<"+_f.name,Df=_f.attribs;for(Af in Df)mf.call(Df,Af)&&(vf=Df[Af],gf+=this.writer.attribute(vf,this.writerOptions,this.currentLevel));gf+=(_f.children?">":"/>")+this.writer.endline(_f,this.writerOptions,this.currentLevel),this.writerOptions.state=ed.InsideTag}else this.writerOptions.state=ed.OpenTag,gf=this.writer.indent(_f,this.writerOptions,this.currentLevel)+""),gf+=this.writer.endline(_f,this.writerOptions,this.currentLevel);return this.onData(gf,this.currentLevel),_f.isOpen=!0}},xf.prototype.closeNode=function(_f){var vf;if(!_f.isClosed)return vf="",this.writerOptions.state=ed.CloseTag,_f.type===Ra.Element?vf=this.writer.indent(_f,this.writerOptions,this.currentLevel)+""+this.writer.endline(_f,this.writerOptions,this.currentLevel):vf=this.writer.indent(_f,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(_f,this.writerOptions,this.currentLevel),this.writerOptions.state=ed.None,this.onData(vf,this.currentLevel),_f.isClosed=!0},xf.prototype.onData=function(_f,vf){return this.documentStarted=!0,this.onDataCallback(_f,vf+1)},xf.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},xf.prototype.debugInfo=function(_f){return _f==null?"":"node: <"+_f+">"},xf.prototype.ele=function(){return this.element.apply(this,arguments)},xf.prototype.nod=function(_f,vf,gf){return this.node(_f,vf,gf)},xf.prototype.txt=function(_f){return this.text(_f)},xf.prototype.dat=function(_f){return this.cdata(_f)},xf.prototype.com=function(_f){return this.comment(_f)},xf.prototype.ins=function(_f,vf){return this.instruction(_f,vf)},xf.prototype.dec=function(_f,vf,gf){return this.declaration(_f,vf,gf)},xf.prototype.dtd=function(_f,vf,gf){return this.doctype(_f,vf,gf)},xf.prototype.e=function(_f,vf,gf){return this.element(_f,vf,gf)},xf.prototype.n=function(_f,vf,gf){return this.node(_f,vf,gf)},xf.prototype.t=function(_f){return this.text(_f)},xf.prototype.d=function(_f){return this.cdata(_f)},xf.prototype.c=function(_f){return this.comment(_f)},xf.prototype.r=function(_f){return this.raw(_f)},xf.prototype.i=function(_f,vf){return this.instruction(_f,vf)},xf.prototype.att=function(){return this.currentNode&&this.currentNode.type===Ra.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},xf.prototype.a=function(){return this.currentNode&&this.currentNode.type===Ra.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},xf.prototype.ent=function(_f,vf){return this.entity(_f,vf)},xf.prototype.pent=function(_f,vf){return this.pEntity(_f,vf)},xf.prototype.not=function(_f,vf){return this.notation(_f,vf)},xf}()}).call(commonjsGlobal)),XMLDocumentCB.exports}var XMLStreamWriter={exports:{}},hasRequiredXMLStreamWriter;function requireXMLStreamWriter(){return hasRequiredXMLStreamWriter||(hasRequiredXMLStreamWriter=1,(function(){var Ra,ed,ud,dd=function(md,gd){for(var yd in gd)hd.call(gd,yd)&&(md[yd]=gd[yd]);function vd(){this.constructor=md}return vd.prototype=gd.prototype,md.prototype=new vd,md.__super__=gd.prototype,md},hd={}.hasOwnProperty;Ra=requireNodeType(),ud=requireXMLWriterBase(),ed=requireWriterState(),XMLStreamWriter.exports=function(md){dd(gd,md);function gd(yd,vd){this.stream=yd,gd.__super__.constructor.call(this,vd)}return gd.prototype.endline=function(yd,vd,Cd){return yd.isLastRootNode&&vd.state===ed.CloseTag?"":gd.__super__.endline.call(this,yd,vd,Cd)},gd.prototype.document=function(yd,vd){var Cd,wd,Nd,Ld,Ud,jd,Gd,Yd,zd;for(Gd=yd.children,wd=Nd=0,Ud=Gd.length;Nd0){for(this.stream.write(" ["),this.stream.write(this.endline(yd,vd,Cd)),vd.state=ed.InsideTag,Ud=yd.children,Nd=0,Ld=Ud.length;Nd"),this.stream.write(this.endline(yd,vd,Cd)),vd.state=ed.None,this.closeNode(yd,vd,Cd)},gd.prototype.element=function(yd,vd,Cd){var wd,Nd,Ld,Ud,jd,Gd,Yd,zd,qd;Cd||(Cd=0),this.openNode(yd,vd,Cd),vd.state=ed.OpenTag,this.stream.write(this.indent(yd,vd,Cd)+"<"+yd.name),zd=yd.attribs;for(Yd in zd)hd.call(zd,Yd)&&(wd=zd[Yd],this.attribute(wd,vd,Cd));if(Ld=yd.children.length,Ud=Ld===0?null:yd.children[0],Ld===0||yd.children.every(function(Wd){return(Wd.type===Ra.Text||Wd.type===Ra.Raw)&&Wd.value===""}))vd.allowEmpty?(this.stream.write(">"),vd.state=ed.CloseTag,this.stream.write("")):(vd.state=ed.CloseTag,this.stream.write(vd.spaceBeforeSlash+"/>"));else if(vd.pretty&&Ld===1&&(Ud.type===Ra.Text||Ud.type===Ra.Raw)&&Ud.value!=null)this.stream.write(">"),vd.state=ed.InsideTag,vd.suppressPrettyCount++,this.writeChildNode(Ud,vd,Cd+1),vd.suppressPrettyCount--,vd.state=ed.CloseTag,this.stream.write("");else{for(this.stream.write(">"+this.endline(yd,vd,Cd)),vd.state=ed.InsideTag,qd=yd.children,jd=0,Gd=qd.length;jd")}return this.stream.write(this.endline(yd,vd,Cd)),vd.state=ed.None,this.closeNode(yd,vd,Cd)},gd.prototype.processingInstruction=function(yd,vd,Cd){return this.stream.write(gd.__super__.processingInstruction.call(this,yd,vd,Cd))},gd.prototype.raw=function(yd,vd,Cd){return this.stream.write(gd.__super__.raw.call(this,yd,vd,Cd))},gd.prototype.text=function(yd,vd,Cd){return this.stream.write(gd.__super__.text.call(this,yd,vd,Cd))},gd.prototype.dtdAttList=function(yd,vd,Cd){return this.stream.write(gd.__super__.dtdAttList.call(this,yd,vd,Cd))},gd.prototype.dtdElement=function(yd,vd,Cd){return this.stream.write(gd.__super__.dtdElement.call(this,yd,vd,Cd))},gd.prototype.dtdEntity=function(yd,vd,Cd){return this.stream.write(gd.__super__.dtdEntity.call(this,yd,vd,Cd))},gd.prototype.dtdNotation=function(yd,vd,Cd){return this.stream.write(gd.__super__.dtdNotation.call(this,yd,vd,Cd))},gd}(ud)}).call(commonjsGlobal)),XMLStreamWriter.exports}var hasRequiredLib;function requireLib(){return hasRequiredLib||(hasRequiredLib=1,(function(){var Ra,ed,ud,dd,hd,md,gd,yd,vd,Cd;Cd=requireUtility(),yd=Cd.assign,vd=Cd.isFunction,ud=requireXMLDOMImplementation(),dd=requireXMLDocument(),hd=requireXMLDocumentCB(),gd=requireXMLStringWriter(),md=requireXMLStreamWriter(),Ra=requireNodeType(),ed=requireWriterState(),lib$2.create=function(wd,Nd,Ld,Ud){var jd,Gd;if(wd==null)throw new Error("Root element needs a name.");return Ud=yd({},Nd,Ld,Ud),jd=new dd(Ud),Gd=jd.element(wd),Ud.headless||(jd.declaration(Ud),(Ud.pubID!=null||Ud.sysID!=null)&&jd.dtd(Ud)),Gd},lib$2.begin=function(wd,Nd,Ld){var Ud;return vd(wd)&&(Ud=[wd,Nd],Nd=Ud[0],Ld=Ud[1],wd={}),Nd?new hd(wd,Nd,Ld):new dd(wd)},lib$2.stringWriter=function(wd){return new gd(wd)},lib$2.streamWriter=function(wd,Nd){return new md(wd,Nd)},lib$2.implementation=new ud,lib$2.nodeType=Ra,lib$2.writerState=ed}).call(commonjsGlobal)),lib$2}var hasRequiredBuilder;function requireBuilder(){return hasRequiredBuilder||(hasRequiredBuilder=1,(function(){var Ra,ed,ud,dd,hd,md={}.hasOwnProperty;Ra=requireLib(),ed=requireDefaults().defaults,dd=function(gd){return typeof gd=="string"&&(gd.indexOf("&")>=0||gd.indexOf(">")>=0||gd.indexOf("<")>=0)},hd=function(gd){return""},ud=function(gd){return gd.replace("]]>","]]]]>")},builder.Builder=function(){function gd(yd){var vd,Cd,wd;this.options={},Cd=ed["0.2"];for(vd in Cd)md.call(Cd,vd)&&(wd=Cd[vd],this.options[vd]=wd);for(vd in yd)md.call(yd,vd)&&(wd=yd[vd],this.options[vd]=wd)}return gd.prototype.buildObject=function(yd){var vd,Cd,wd,Nd,Ld;return vd=this.options.attrkey,Cd=this.options.charkey,Object.keys(yd).length===1&&this.options.rootName===ed["0.2"].rootName?(Ld=Object.keys(yd)[0],yd=yd[Ld]):Ld=this.options.rootName,wd=function(Ud){return function(jd,Gd){var Yd,zd,qd,Wd,Xd,Jd;if(typeof Gd!="object")Ud.options.cdata&&dd(Gd)?jd.raw(hd(Gd)):jd.txt(Gd);else if(Array.isArray(Gd)){for(Wd in Gd)if(md.call(Gd,Wd)){zd=Gd[Wd];for(Xd in zd)qd=zd[Xd],jd=wd(jd.ele(Xd),qd).up()}}else for(Xd in Gd)if(md.call(Gd,Xd))if(zd=Gd[Xd],Xd===vd){if(typeof zd=="object")for(Yd in zd)Jd=zd[Yd],jd=jd.att(Yd,Jd)}else if(Xd===Cd)Ud.options.cdata&&dd(zd)?jd=jd.raw(hd(zd)):jd=jd.txt(zd);else if(Array.isArray(zd))for(Wd in zd)md.call(zd,Wd)&&(qd=zd[Wd],typeof qd=="string"?Ud.options.cdata&&dd(qd)?jd=jd.ele(Xd).raw(hd(qd)).up():jd=jd.ele(Xd,qd).up():jd=wd(jd.ele(Xd),qd).up());else typeof zd=="object"?jd=wd(jd.ele(Xd),zd).up():typeof zd=="string"&&Ud.options.cdata&&dd(zd)?jd=jd.ele(Xd).raw(hd(zd)).up():(zd==null&&(zd=""),jd=jd.ele(Xd,zd.toString()).up());return jd}}(this),Nd=Ra.create(Ld,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),wd(Nd,yd).end(this.options.renderOpts)},gd}()}).call(commonjsGlobal)),builder}var parser={},sax={},hasRequiredSax;function requireSax(){return hasRequiredSax||(hasRequiredSax=1,function(Ra){(function(ed){ed.parser=function(Of,Rf){return new dd(Of,Rf)},ed.SAXParser=dd,ed.SAXStream=wd,ed.createStream=Cd,ed.MAX_BUFFER_LENGTH=64*1024;var ud=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];ed.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function dd(Of,Rf){if(!(this instanceof dd))return new dd(Of,Rf);var yh=this;md(yh),yh.q=yh.c="",yh.bufferCheckPosition=ed.MAX_BUFFER_LENGTH,yh.opt=Rf||{},yh.opt.lowercase=yh.opt.lowercase||yh.opt.lowercasetags,yh.looseCase=yh.opt.lowercase?"toLowerCase":"toUpperCase",yh.tags=[],yh.closed=yh.closedRoot=yh.sawRoot=!1,yh.tag=yh.error=null,yh.strict=!!Of,yh.noscript=!!(Of||yh.opt.noscript),yh.state=_f.BEGIN,yh.strictEntities=yh.opt.strictEntities,yh.ENTITIES=yh.strictEntities?Object.create(ed.XML_ENTITIES):Object.create(ed.ENTITIES),yh.attribList=[],yh.opt.xmlns&&(yh.ns=Object.create(Gd)),yh.opt.unquotedAttributeValues===void 0&&(yh.opt.unquotedAttributeValues=!Of),yh.trackPosition=yh.opt.position!==!1,yh.trackPosition&&(yh.position=yh.line=yh.column=0),gf(yh,"onready")}Object.create||(Object.create=function(Of){function Rf(){}Rf.prototype=Of;var yh=new Rf;return yh}),Object.keys||(Object.keys=function(Of){var Rf=[];for(var yh in Of)Of.hasOwnProperty(yh)&&Rf.push(yh);return Rf});function hd(Of){for(var Rf=Math.max(ed.MAX_BUFFER_LENGTH,10),yh=0,Ph=0,sm=ud.length;PhRf)switch(ud[Ph]){case"textNode":Df(Of);break;case"cdata":Af(Of,"oncdata",Of.cdata),Of.cdata="";break;case"script":Af(Of,"onscript",Of.script),Of.script="";break;default:Cf(Of,"Max buffer length exceeded: "+ud[Ph])}yh=Math.max(yh,th)}var sh=ed.MAX_BUFFER_LENGTH-yh;Of.bufferCheckPosition=sh+Of.position}function md(Of){for(var Rf=0,yh=ud.length;Rf"||Xd(Of)}function mf(Of,Rf){return Of.test(Rf)}function xf(Of,Rf){return!mf(Of,Rf)}var _f=0;ed.STATE={BEGIN:_f++,BEGIN_WHITESPACE:_f++,TEXT:_f++,TEXT_ENTITY:_f++,OPEN_WAKA:_f++,SGML_DECL:_f++,SGML_DECL_QUOTED:_f++,DOCTYPE:_f++,DOCTYPE_QUOTED:_f++,DOCTYPE_DTD:_f++,DOCTYPE_DTD_QUOTED:_f++,COMMENT_STARTING:_f++,COMMENT:_f++,COMMENT_ENDING:_f++,COMMENT_ENDED:_f++,CDATA:_f++,CDATA_ENDING:_f++,CDATA_ENDING_2:_f++,PROC_INST:_f++,PROC_INST_BODY:_f++,PROC_INST_ENDING:_f++,OPEN_TAG:_f++,OPEN_TAG_SLASH:_f++,ATTRIB:_f++,ATTRIB_NAME:_f++,ATTRIB_NAME_SAW_WHITE:_f++,ATTRIB_VALUE:_f++,ATTRIB_VALUE_QUOTED:_f++,ATTRIB_VALUE_CLOSED:_f++,ATTRIB_VALUE_UNQUOTED:_f++,ATTRIB_VALUE_ENTITY_Q:_f++,ATTRIB_VALUE_ENTITY_U:_f++,CLOSE_TAG:_f++,CLOSE_TAG_SAW_WHITE:_f++,SCRIPT:_f++,SCRIPT_ENDING:_f++},ed.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},ed.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(ed.ENTITIES).forEach(function(Of){var Rf=ed.ENTITIES[Of],yh=typeof Rf=="number"?String.fromCharCode(Rf):Rf;ed.ENTITIES[Of]=yh});for(var vf in ed.STATE)ed.STATE[ed.STATE[vf]]=vf;_f=ed.STATE;function gf(Of,Rf,yh){Of[Rf]&&Of[Rf](yh)}function Af(Of,Rf,yh){Of.textNode&&Df(Of),gf(Of,Rf,yh)}function Df(Of){Of.textNode=kf(Of.opt,Of.textNode),Of.textNode&&gf(Of,"ontext",Of.textNode),Of.textNode=""}function kf(Of,Rf){return Of.trim&&(Rf=Rf.trim()),Of.normalize&&(Rf=Rf.replace(/\s+/g," ")),Rf}function Cf(Of,Rf){return Df(Of),Of.trackPosition&&(Rf+=` +Line: `+Of.line+` +Column: `+Of.column+` +Char: `+Of.c),Rf=new Error(Rf),Of.error=Rf,gf(Of,"onerror",Rf),Of}function If(Of){return Of.sawRoot&&!Of.closedRoot&&Ff(Of,"Unclosed root tag"),Of.state!==_f.BEGIN&&Of.state!==_f.BEGIN_WHITESPACE&&Of.state!==_f.TEXT&&Cf(Of,"Unexpected end"),Df(Of),Of.c="",Of.closed=!0,gf(Of,"onend"),dd.call(Of,Of.strict,Of.opt),Of}function Ff(Of,Rf){if(typeof Of!="object"||!(Of instanceof dd))throw new Error("bad call to strictFail");Of.strict&&Cf(Of,Rf)}function oh(Of){Of.strict||(Of.tagName=Of.tagName[Of.looseCase]());var Rf=Of.tags[Of.tags.length-1]||Of,yh=Of.tag={name:Of.tagName,attributes:{}};Of.opt.xmlns&&(yh.ns=Rf.ns),Of.attribList.length=0,Af(Of,"onopentagstart",yh)}function Eh(Of,Rf){var yh=Of.indexOf(":"),Ph=yh<0?["",Of]:Of.split(":"),sm=Ph[0],th=Ph[1];return Rf&&Of==="xmlns"&&(sm="xmlns",th=""),{prefix:sm,local:th}}function _h(Of){if(Of.strict||(Of.attribName=Of.attribName[Of.looseCase]()),Of.attribList.indexOf(Of.attribName)!==-1||Of.tag.attributes.hasOwnProperty(Of.attribName)){Of.attribName=Of.attribValue="";return}if(Of.opt.xmlns){var Rf=Eh(Of.attribName,!0),yh=Rf.prefix,Ph=Rf.local;if(yh==="xmlns")if(Ph==="xml"&&Of.attribValue!==Ud)Ff(Of,"xml: prefix must be bound to "+Ud+` +Actual: `+Of.attribValue);else if(Ph==="xmlns"&&Of.attribValue!==jd)Ff(Of,"xmlns: prefix must be bound to "+jd+` +Actual: `+Of.attribValue);else{var sm=Of.tag,th=Of.tags[Of.tags.length-1]||Of;sm.ns===th.ns&&(sm.ns=Object.create(th.ns)),sm.ns[Ph]=Of.attribValue}Of.attribList.push([Of.attribName,Of.attribValue])}else Of.tag.attributes[Of.attribName]=Of.attribValue,Af(Of,"onattribute",{name:Of.attribName,value:Of.attribValue});Of.attribName=Of.attribValue=""}function Mh(Of,Rf){if(Of.opt.xmlns){var yh=Of.tag,Ph=Eh(Of.tagName);yh.prefix=Ph.prefix,yh.local=Ph.local,yh.uri=yh.ns[Ph.prefix]||"",yh.prefix&&!yh.uri&&(Ff(Of,"Unbound namespace prefix: "+JSON.stringify(Of.tagName)),yh.uri=Ph.prefix);var sm=Of.tags[Of.tags.length-1]||Of;yh.ns&&sm.ns!==yh.ns&&Object.keys(yh.ns).forEach(function(zh){Af(Of,"onopennamespace",{prefix:zh,uri:yh.ns[zh]})});for(var th=0,sh=Of.attribList.length;th",Of.tagName="",Of.state=_f.SCRIPT;return}Af(Of,"onscript",Of.script),Of.script=""}var Rf=Of.tags.length,yh=Of.tagName;Of.strict||(yh=yh[Of.looseCase]());for(var Ph=yh;Rf--;){var sm=Of.tags[Rf];if(sm.name!==Ph)Ff(Of,"Unexpected close tag");else break}if(Rf<0){Ff(Of,"Unmatched closing tag: "+Of.tagName),Of.textNode+="",Of.state=_f.TEXT;return}Of.tagName=yh;for(var th=Of.tags.length;th-- >Rf;){var sh=Of.tag=Of.tags.pop();Of.tagName=Of.tag.name,Af(Of,"onclosetag",Of.tagName);var Zh={};for(var Sm in sh.ns)Zh[Sm]=sh.ns[Sm];var $h=Of.tags[Of.tags.length-1]||Of;Of.opt.xmlns&&sh.ns!==$h.ns&&Object.keys(sh.ns).forEach(function(Vf){var nh=sh.ns[Vf];Af(Of,"onclosenamespace",{prefix:Vf,uri:nh})})}Rf===0&&(Of.closedRoot=!0),Of.tagName=Of.attribValue=Of.attribName="",Of.attribList.length=0,Of.state=_f.TEXT}function rh(Of){var Rf=Of.entity,yh=Rf.toLowerCase(),Ph,sm="";return Of.ENTITIES[Rf]?Of.ENTITIES[Rf]:Of.ENTITIES[yh]?Of.ENTITIES[yh]:(Rf=yh,Rf.charAt(0)==="#"&&(Rf.charAt(1)==="x"?(Rf=Rf.slice(2),Ph=parseInt(Rf,16),sm=Ph.toString(16)):(Rf=Rf.slice(1),Ph=parseInt(Rf,10),sm=Ph.toString(10))),Rf=Rf.replace(/^0+/,""),isNaN(Ph)||sm.toLowerCase()!==Rf?(Ff(Of,"Invalid character entity"),"&"+Of.entity+";"):String.fromCodePoint(Ph))}function mh(Of,Rf){Rf==="<"?(Of.state=_f.OPEN_WAKA,Of.startTagPosition=Of.position):Xd(Rf)||(Ff(Of,"Non-whitespace before first tag."),Of.textNode=Rf,Of.state=_f.TEXT)}function xh(Of,Rf){var yh="";return Rf"?(Af(Rf,"onsgmldeclaration",Rf.sgmlDecl),Rf.sgmlDecl="",Rf.state=_f.TEXT):(Jd(Ph)&&(Rf.state=_f.SGML_DECL_QUOTED),Rf.sgmlDecl+=Ph);continue;case _f.SGML_DECL_QUOTED:Ph===Rf.q&&(Rf.state=_f.SGML_DECL,Rf.q=""),Rf.sgmlDecl+=Ph;continue;case _f.DOCTYPE:Ph===">"?(Rf.state=_f.TEXT,Af(Rf,"ondoctype",Rf.doctype),Rf.doctype=!0):(Rf.doctype+=Ph,Ph==="["?Rf.state=_f.DOCTYPE_DTD:Jd(Ph)&&(Rf.state=_f.DOCTYPE_QUOTED,Rf.q=Ph));continue;case _f.DOCTYPE_QUOTED:Rf.doctype+=Ph,Ph===Rf.q&&(Rf.q="",Rf.state=_f.DOCTYPE);continue;case _f.DOCTYPE_DTD:Ph==="]"?(Rf.doctype+=Ph,Rf.state=_f.DOCTYPE):Ph==="<"?(Rf.state=_f.OPEN_WAKA,Rf.startTagPosition=Rf.position):Jd(Ph)?(Rf.doctype+=Ph,Rf.state=_f.DOCTYPE_DTD_QUOTED,Rf.q=Ph):Rf.doctype+=Ph;continue;case _f.DOCTYPE_DTD_QUOTED:Rf.doctype+=Ph,Ph===Rf.q&&(Rf.state=_f.DOCTYPE_DTD,Rf.q="");continue;case _f.COMMENT:Ph==="-"?Rf.state=_f.COMMENT_ENDING:Rf.comment+=Ph;continue;case _f.COMMENT_ENDING:Ph==="-"?(Rf.state=_f.COMMENT_ENDED,Rf.comment=kf(Rf.opt,Rf.comment),Rf.comment&&Af(Rf,"oncomment",Rf.comment),Rf.comment=""):(Rf.comment+="-"+Ph,Rf.state=_f.COMMENT);continue;case _f.COMMENT_ENDED:Ph!==">"?(Ff(Rf,"Malformed comment"),Rf.comment+="--"+Ph,Rf.state=_f.COMMENT):Rf.doctype&&Rf.doctype!==!0?Rf.state=_f.DOCTYPE_DTD:Rf.state=_f.TEXT;continue;case _f.CDATA:Ph==="]"?Rf.state=_f.CDATA_ENDING:Rf.cdata+=Ph;continue;case _f.CDATA_ENDING:Ph==="]"?Rf.state=_f.CDATA_ENDING_2:(Rf.cdata+="]"+Ph,Rf.state=_f.CDATA);continue;case _f.CDATA_ENDING_2:Ph===">"?(Rf.cdata&&Af(Rf,"oncdata",Rf.cdata),Af(Rf,"onclosecdata"),Rf.cdata="",Rf.state=_f.TEXT):Ph==="]"?Rf.cdata+="]":(Rf.cdata+="]]"+Ph,Rf.state=_f.CDATA);continue;case _f.PROC_INST:Ph==="?"?Rf.state=_f.PROC_INST_ENDING:Xd(Ph)?Rf.state=_f.PROC_INST_BODY:Rf.procInstName+=Ph;continue;case _f.PROC_INST_BODY:if(!Rf.procInstBody&&Xd(Ph))continue;Ph==="?"?Rf.state=_f.PROC_INST_ENDING:Rf.procInstBody+=Ph;continue;case _f.PROC_INST_ENDING:Ph===">"?(Af(Rf,"onprocessinginstruction",{name:Rf.procInstName,body:Rf.procInstBody}),Rf.procInstName=Rf.procInstBody="",Rf.state=_f.TEXT):(Rf.procInstBody+="?"+Ph,Rf.state=_f.PROC_INST_BODY);continue;case _f.OPEN_TAG:mf(zd,Ph)?Rf.tagName+=Ph:(oh(Rf),Ph===">"?Mh(Rf):Ph==="/"?Rf.state=_f.OPEN_TAG_SLASH:(Xd(Ph)||Ff(Rf,"Invalid character in tag name"),Rf.state=_f.ATTRIB));continue;case _f.OPEN_TAG_SLASH:Ph===">"?(Mh(Rf,!0),lh(Rf)):(Ff(Rf,"Forward-slash in opening tag not followed by >"),Rf.state=_f.ATTRIB);continue;case _f.ATTRIB:if(Xd(Ph))continue;Ph===">"?Mh(Rf):Ph==="/"?Rf.state=_f.OPEN_TAG_SLASH:mf(Yd,Ph)?(Rf.attribName=Ph,Rf.attribValue="",Rf.state=_f.ATTRIB_NAME):Ff(Rf,"Invalid attribute name");continue;case _f.ATTRIB_NAME:Ph==="="?Rf.state=_f.ATTRIB_VALUE:Ph===">"?(Ff(Rf,"Attribute without value"),Rf.attribValue=Rf.attribName,_h(Rf),Mh(Rf)):Xd(Ph)?Rf.state=_f.ATTRIB_NAME_SAW_WHITE:mf(zd,Ph)?Rf.attribName+=Ph:Ff(Rf,"Invalid attribute name");continue;case _f.ATTRIB_NAME_SAW_WHITE:if(Ph==="=")Rf.state=_f.ATTRIB_VALUE;else{if(Xd(Ph))continue;Ff(Rf,"Attribute without value"),Rf.tag.attributes[Rf.attribName]="",Rf.attribValue="",Af(Rf,"onattribute",{name:Rf.attribName,value:""}),Rf.attribName="",Ph===">"?Mh(Rf):mf(Yd,Ph)?(Rf.attribName=Ph,Rf.state=_f.ATTRIB_NAME):(Ff(Rf,"Invalid attribute name"),Rf.state=_f.ATTRIB)}continue;case _f.ATTRIB_VALUE:if(Xd(Ph))continue;Jd(Ph)?(Rf.q=Ph,Rf.state=_f.ATTRIB_VALUE_QUOTED):(Rf.opt.unquotedAttributeValues||Cf(Rf,"Unquoted attribute value"),Rf.state=_f.ATTRIB_VALUE_UNQUOTED,Rf.attribValue=Ph);continue;case _f.ATTRIB_VALUE_QUOTED:if(Ph!==Rf.q){Ph==="&"?Rf.state=_f.ATTRIB_VALUE_ENTITY_Q:Rf.attribValue+=Ph;continue}_h(Rf),Rf.q="",Rf.state=_f.ATTRIB_VALUE_CLOSED;continue;case _f.ATTRIB_VALUE_CLOSED:Xd(Ph)?Rf.state=_f.ATTRIB:Ph===">"?Mh(Rf):Ph==="/"?Rf.state=_f.OPEN_TAG_SLASH:mf(Yd,Ph)?(Ff(Rf,"No whitespace between attributes"),Rf.attribName=Ph,Rf.attribValue="",Rf.state=_f.ATTRIB_NAME):Ff(Rf,"Invalid attribute name");continue;case _f.ATTRIB_VALUE_UNQUOTED:if(!Zd(Ph)){Ph==="&"?Rf.state=_f.ATTRIB_VALUE_ENTITY_U:Rf.attribValue+=Ph;continue}_h(Rf),Ph===">"?Mh(Rf):Rf.state=_f.ATTRIB;continue;case _f.CLOSE_TAG:if(Rf.tagName)Ph===">"?lh(Rf):mf(zd,Ph)?Rf.tagName+=Ph:Rf.script?(Rf.script+=""?lh(Rf):Ff(Rf,"Invalid characters in closing tag");continue;case _f.TEXT_ENTITY:case _f.ATTRIB_VALUE_ENTITY_Q:case _f.ATTRIB_VALUE_ENTITY_U:var sh,Zh;switch(Rf.state){case _f.TEXT_ENTITY:sh=_f.TEXT,Zh="textNode";break;case _f.ATTRIB_VALUE_ENTITY_Q:sh=_f.ATTRIB_VALUE_QUOTED,Zh="attribValue";break;case _f.ATTRIB_VALUE_ENTITY_U:sh=_f.ATTRIB_VALUE_UNQUOTED,Zh="attribValue";break}if(Ph===";"){var Sm=rh(Rf);Rf.opt.unparsedEntities&&!Object.values(ed.XML_ENTITIES).includes(Sm)?(Rf.entity="",Rf.state=sh,Rf.write(Sm)):(Rf[Zh]+=Sm,Rf.entity="",Rf.state=sh)}else mf(Rf.entity.length?Wd:qd,Ph)?Rf.entity+=Ph:(Ff(Rf,"Invalid character in entity name"),Rf[Zh]+="&"+Rf.entity+Ph,Rf.entity="",Rf.state=sh);continue;default:throw new Error(Rf,"Unknown state: "+Rf.state)}return Rf.position>=Rf.bufferCheckPosition&&hd(Rf),Rf}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||function(){var Of=String.fromCharCode,Rf=Math.floor,yh=function(){var Ph=16384,sm=[],th,sh,Zh=-1,Sm=arguments.length;if(!Sm)return"";for(var $h="";++Zh1114111||Rf(Vf)!==Vf)throw RangeError("Invalid code point: "+Vf);Vf<=65535?sm.push(Vf):(Vf-=65536,th=(Vf>>10)+55296,sh=Vf%1024+56320,sm.push(th,sh)),(Zh+1===Sm||sm.length>Ph)&&($h+=Of.apply(null,sm),sm.length=0)}return $h};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:yh,configurable:!0,writable:!0}):String.fromCodePoint=yh}()})(Ra)}(sax)),sax}var bom={},hasRequiredBom;function requireBom(){return hasRequiredBom||(hasRequiredBom=1,(function(){bom.stripBOM=function(Ra){return Ra[0]==="\uFEFF"?Ra.substring(1):Ra}}).call(commonjsGlobal)),bom}var processors={},hasRequiredProcessors;function requireProcessors(){return hasRequiredProcessors||(hasRequiredProcessors=1,(function(){var Ra;Ra=new RegExp(/(?!xmlns)^.*:/),processors.normalize=function(ed){return ed.toLowerCase()},processors.firstCharLowerCase=function(ed){return ed.charAt(0).toLowerCase()+ed.slice(1)},processors.stripPrefix=function(ed){return ed.replace(Ra,"")},processors.parseNumbers=function(ed){return isNaN(ed)||(ed=ed%1===0?parseInt(ed,10):parseFloat(ed)),ed},processors.parseBooleans=function(ed){return/^(?:true|false)$/i.test(ed)&&(ed=ed.toLowerCase()==="true"),ed}}).call(commonjsGlobal)),processors}var main={},setImmediate$1={},hasRequiredSetImmediate;function requireSetImmediate(){if(hasRequiredSetImmediate)return setImmediate$1;hasRequiredSetImmediate=1;var Ra={version:"v20.18.3",versions:{node:"20.18.3",acorn:"8.14.0",ada:"2.9.2",ares:"1.34.4",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.15+quic",simdutf:"5.6.4",tz:"2024b",undici:"6.21.1",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.25",zlib:"1.3.0.1-motley-82a5fec"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.18.3/node-v20.18.3.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.18.3/node-v20.18.3-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule internal/util","NativeModule internal/util/types","NativeModule internal/validators","NativeModule internal/linkedlist","NativeModule internal/priority_queue","Internal Binding icu","NativeModule internal/util/inspect","NativeModule internal/util/debuglog","NativeModule internal/timers","NativeModule internal/events/abort_listener","NativeModule events","Internal Binding buffer","NativeModule internal/buffer","NativeModule buffer","Internal Binding messaging","NativeModule internal/worker/js_transferable","NativeModule internal/querystring","NativeModule internal/constants","NativeModule path","NativeModule querystring","Internal Binding url","NativeModule internal/url","NativeModule internal/fs/utils","Internal Binding process_methods","NativeModule internal/process/per_thread","Internal Binding credentials","NativeModule internal/process/promises","NativeModule internal/fixed_queue","NativeModule async_hooks","NativeModule internal/process/task_queues","NativeModule timers","Internal Binding trace_events","Internal Binding contextify","NativeModule internal/vm","NativeModule internal/process/execution","NativeModule internal/process/warning","NativeModule internal/source_map/source_map_cache","Internal Binding fs","Internal Binding blob","Internal Binding encoding_binding","NativeModule internal/encoding","NativeModule internal/streams/utils","NativeModule util","NativeModule internal/webstreams/util","NativeModule internal/webstreams/queuingstrategies","NativeModule internal/blob","Internal Binding permission","NativeModule internal/process/permission","NativeModule fs","NativeModule internal/modules/helpers","NativeModule internal/console/constructor","NativeModule internal/console/global","NativeModule internal/util/inspector","Internal Binding inspector","NativeModule internal/webidl","Internal Binding performance","NativeModule internal/perf/utils","NativeModule internal/event_target","Internal Binding wasm_web_api","Internal Binding mksnapshot","NativeModule internal/v8/startup_snapshot","NativeModule internal/process/signal","NativeModule url","NativeModule internal/modules/package_json_reader","NativeModule internal/modules/cjs/loader","NativeModule internal/process/pre_execution","NativeModule internal/modules/esm/utils","NativeModule internal/inspector_async_hook","Internal Binding worker","NativeModule internal/modules/run_main","NativeModule internal/net","NativeModule internal/dns/utils","NativeModule internal/modules/esm/assert","NativeModule internal/modules/esm/loader","NativeModule internal/modules/esm/module_map","NativeModule internal/modules/esm/translators","NativeModule internal/modules/esm/package_config","NativeModule internal/modules/esm/formats","NativeModule internal/modules/esm/get_format","NativeModule internal/modules/esm/resolve","NativeModule internal/modules/esm/module_job","NativeModule internal/modules/esm/load","Internal Binding fs_dir","NativeModule internal/fs/dir","NativeModule string_decoder","Internal Binding fs_event_wrap","Internal Binding uv","NativeModule internal/fs/watchers","NativeModule internal/fs/recursive_watch","NativeModule internal/readline/utils","NativeModule internal/readline/callbacks","NativeModule internal/readline/interface","NativeModule internal/fs/promises","NativeModule internal/perf/performance_entry","NativeModule internal/perf/observe","NativeModule internal/perf/resource_timing","NativeModule internal/perf/nodetiming","NativeModule internal/perf/usertiming","NativeModule internal/perf/event_loop_utilization","NativeModule internal/histogram","NativeModule internal/perf/timerify","NativeModule internal/perf/performance","NativeModule internal/perf/event_loop_delay","NativeModule perf_hooks","NativeModule internal/modules/esm/initialize_import_meta","NativeModule internal/streams/destroy","NativeModule internal/abort_controller","NativeModule internal/streams/end-of-stream","NativeModule internal/streams/legacy","NativeModule internal/streams/add-abort-signal","NativeModule internal/streams/state","NativeModule internal/streams/from","NativeModule internal/streams/readable","NativeModule internal/streams/writable","NativeModule internal/streams/duplex","NativeModule internal/streams/pipeline","NativeModule internal/streams/compose","NativeModule internal/streams/operators","NativeModule stream/promises","NativeModule internal/streams/transform","NativeModule internal/streams/passthrough","NativeModule internal/streams/duplexpair","NativeModule stream","NativeModule internal/fs/streams","NativeModule fs/promises","NativeModule internal/util/parse_args/utils","NativeModule internal/util/parse_args/parse_args","NativeModule internal/mime","NativeModule internal/source_map/source_map","NativeModule module","Internal Binding crypto","NativeModule internal/crypto/random","NativeModule internal/crypto/hashnames","NativeModule internal/crypto/util","NativeModule internal/crypto/pbkdf2","NativeModule internal/crypto/scrypt","NativeModule internal/crypto/keys","NativeModule internal/crypto/hkdf","NativeModule internal/crypto/keygen","NativeModule internal/crypto/diffiehellman","NativeModule internal/streams/lazy_transform","NativeModule internal/crypto/cipher","NativeModule internal/crypto/sig","NativeModule internal/crypto/hash","NativeModule internal/crypto/x509","NativeModule internal/crypto/certificate","NativeModule crypto","NativeModule internal/crypto/webcrypto","Internal Binding stream_wrap","Internal Binding tcp_wrap","Internal Binding pipe_wrap","NativeModule internal/stream_base_commons","NativeModule diagnostics_channel","NativeModule net","Internal Binding tty_wrap","NativeModule internal/tty","NativeModule tty","NativeModule internal/deps/cjs-module-lexer/dist/lexer","Internal Binding udp_wrap","NativeModule internal/dgram","NativeModule dgram","Internal Binding process_wrap","NativeModule internal/socket_list","Internal Binding spawn_sync","NativeModule internal/child_process","NativeModule child_process","NativeModule _http_agent","Internal Binding http_parser","NativeModule internal/freelist","NativeModule _http_incoming","NativeModule _http_common","NativeModule internal/http","NativeModule _http_outgoing","NativeModule _http_client","NativeModule _http_server","NativeModule http","Internal Binding cares_wrap","NativeModule internal/tls/secure-context","NativeModule _tls_common","Internal Binding js_stream","NativeModule internal/js_stream_socket","Internal Binding tls_wrap","NativeModule _tls_wrap","NativeModule internal/tls/secure-pair","NativeModule tls","NativeModule https","Internal Binding block_list","NativeModule internal/socketaddress","NativeModule internal/blocklist","Internal Binding os","NativeModule os","NativeModule internal/dns/callback_resolver","NativeModule dns","NativeModule internal/dns/promises","NativeModule internal/util/colors","NativeModule internal/assert/assertion_error","NativeModule internal/assert/utils","NativeModule internal/assert/calltracker","NativeModule assert","Internal Binding serdes","Internal Binding profiler","Internal Binding heap_utils","Internal Binding internal_only_v8","NativeModule internal/heap_utils","NativeModule internal/promise_hooks","Internal Binding v8","NativeModule v8","NativeModule internal/worker/io","NativeModule internal/error_serdes","NativeModule internal/worker","NativeModule worker_threads","NativeModule internal/file","NativeModule internal/readline/emitKeypressEvents","NativeModule internal/readline/promises","NativeModule readline/promises","NativeModule readline","Internal Binding zlib","NativeModule zlib","NativeModule process","Internal Binding report","NativeModule internal/process/report","NativeModule constants","NativeModule internal/crypto/webidl"],_events:{newListener:[null,null],removeListener:[null,null]},_eventsCount:3,domain:null,_exiting:!1,config:{target_defaults:{cflags:[],default_configuration:"Release",defines:["NODE_OPENSSL_CONF_NAME=nodejs_conf","NODE_OPENSSL_HAS_QUIC","ICU_NO_USER_DATA_OVERRIDE"],include_dirs:[],libraries:[]},variables:{asan:0,clang:0,coverage:!1,dcheck_always_on:0,debug_nghttp2:!1,debug_node:!1,enable_lto:!1,enable_pgo_generate:!1,enable_pgo_use:!1,error_on_warn:!1,force_dynamic_crt:0,gas_version:"2.35",host_arch:"x64",icu_data_in:"../../deps/icu-tmp/icudt75l.dat",icu_endianness:"l",icu_gyp_path:"tools/icu/icu-generic.gyp",icu_path:"deps/icu-small",icu_small:!1,icu_ver_major:"75",is_debug:0,libdir:"lib",llvm_version:"0.0",napi_build_version:"9",node_builtin_shareable_builtins:["deps/cjs-module-lexer/lexer.js","deps/cjs-module-lexer/dist/lexer.js","deps/undici/undici.js"],node_byteorder:"little",node_debug_lib:!1,node_enable_d8:!1,node_enable_v8_vtunejit:!1,node_fipsinstall:!1,node_install_corepack:!0,node_install_npm:!0,node_library_files:["lib/_http_agent.js","lib/_http_client.js","lib/_http_common.js","lib/_http_incoming.js","lib/_http_outgoing.js","lib/_http_server.js","lib/_stream_duplex.js","lib/_stream_passthrough.js","lib/_stream_readable.js","lib/_stream_transform.js","lib/_stream_wrap.js","lib/_stream_writable.js","lib/_tls_common.js","lib/_tls_wrap.js","lib/assert.js","lib/assert/strict.js","lib/async_hooks.js","lib/buffer.js","lib/child_process.js","lib/cluster.js","lib/console.js","lib/constants.js","lib/crypto.js","lib/dgram.js","lib/diagnostics_channel.js","lib/dns.js","lib/dns/promises.js","lib/domain.js","lib/events.js","lib/fs.js","lib/fs/promises.js","lib/http.js","lib/http2.js","lib/https.js","lib/inspector.js","lib/inspector/promises.js","lib/internal/abort_controller.js","lib/internal/assert.js","lib/internal/assert/assertion_error.js","lib/internal/assert/calltracker.js","lib/internal/assert/utils.js","lib/internal/async_hooks.js","lib/internal/blob.js","lib/internal/blocklist.js","lib/internal/bootstrap/node.js","lib/internal/bootstrap/realm.js","lib/internal/bootstrap/shadow_realm.js","lib/internal/bootstrap/switches/does_not_own_process_state.js","lib/internal/bootstrap/switches/does_own_process_state.js","lib/internal/bootstrap/switches/is_main_thread.js","lib/internal/bootstrap/switches/is_not_main_thread.js","lib/internal/bootstrap/web/exposed-wildcard.js","lib/internal/bootstrap/web/exposed-window-or-worker.js","lib/internal/buffer.js","lib/internal/child_process.js","lib/internal/child_process/serialization.js","lib/internal/cli_table.js","lib/internal/cluster/child.js","lib/internal/cluster/primary.js","lib/internal/cluster/round_robin_handle.js","lib/internal/cluster/shared_handle.js","lib/internal/cluster/utils.js","lib/internal/cluster/worker.js","lib/internal/console/constructor.js","lib/internal/console/global.js","lib/internal/constants.js","lib/internal/crypto/aes.js","lib/internal/crypto/certificate.js","lib/internal/crypto/cfrg.js","lib/internal/crypto/cipher.js","lib/internal/crypto/diffiehellman.js","lib/internal/crypto/ec.js","lib/internal/crypto/hash.js","lib/internal/crypto/hashnames.js","lib/internal/crypto/hkdf.js","lib/internal/crypto/keygen.js","lib/internal/crypto/keys.js","lib/internal/crypto/mac.js","lib/internal/crypto/pbkdf2.js","lib/internal/crypto/random.js","lib/internal/crypto/rsa.js","lib/internal/crypto/scrypt.js","lib/internal/crypto/sig.js","lib/internal/crypto/util.js","lib/internal/crypto/webcrypto.js","lib/internal/crypto/webidl.js","lib/internal/crypto/x509.js","lib/internal/debugger/inspect.js","lib/internal/debugger/inspect_client.js","lib/internal/debugger/inspect_repl.js","lib/internal/dgram.js","lib/internal/dns/callback_resolver.js","lib/internal/dns/promises.js","lib/internal/dns/utils.js","lib/internal/encoding.js","lib/internal/error_serdes.js","lib/internal/errors.js","lib/internal/event_target.js","lib/internal/events/abort_listener.js","lib/internal/events/symbols.js","lib/internal/file.js","lib/internal/fixed_queue.js","lib/internal/freelist.js","lib/internal/freeze_intrinsics.js","lib/internal/fs/cp/cp-sync.js","lib/internal/fs/cp/cp.js","lib/internal/fs/dir.js","lib/internal/fs/promises.js","lib/internal/fs/read/context.js","lib/internal/fs/recursive_watch.js","lib/internal/fs/rimraf.js","lib/internal/fs/streams.js","lib/internal/fs/sync_write_stream.js","lib/internal/fs/utils.js","lib/internal/fs/watchers.js","lib/internal/heap_utils.js","lib/internal/histogram.js","lib/internal/http.js","lib/internal/http2/compat.js","lib/internal/http2/core.js","lib/internal/http2/util.js","lib/internal/inspector_async_hook.js","lib/internal/inspector_network_tracking.js","lib/internal/js_stream_socket.js","lib/internal/legacy/processbinding.js","lib/internal/linkedlist.js","lib/internal/main/check_syntax.js","lib/internal/main/embedding.js","lib/internal/main/eval_stdin.js","lib/internal/main/eval_string.js","lib/internal/main/inspect.js","lib/internal/main/mksnapshot.js","lib/internal/main/print_help.js","lib/internal/main/prof_process.js","lib/internal/main/repl.js","lib/internal/main/run_main_module.js","lib/internal/main/test_runner.js","lib/internal/main/watch_mode.js","lib/internal/main/worker_thread.js","lib/internal/mime.js","lib/internal/modules/cjs/loader.js","lib/internal/modules/esm/assert.js","lib/internal/modules/esm/create_dynamic_module.js","lib/internal/modules/esm/fetch_module.js","lib/internal/modules/esm/formats.js","lib/internal/modules/esm/get_format.js","lib/internal/modules/esm/hooks.js","lib/internal/modules/esm/initialize_import_meta.js","lib/internal/modules/esm/load.js","lib/internal/modules/esm/loader.js","lib/internal/modules/esm/module_job.js","lib/internal/modules/esm/module_map.js","lib/internal/modules/esm/package_config.js","lib/internal/modules/esm/resolve.js","lib/internal/modules/esm/shared_constants.js","lib/internal/modules/esm/translators.js","lib/internal/modules/esm/utils.js","lib/internal/modules/esm/worker.js","lib/internal/modules/helpers.js","lib/internal/modules/package_json_reader.js","lib/internal/modules/run_main.js","lib/internal/navigator.js","lib/internal/net.js","lib/internal/options.js","lib/internal/per_context/domexception.js","lib/internal/per_context/messageport.js","lib/internal/per_context/primordials.js","lib/internal/perf/event_loop_delay.js","lib/internal/perf/event_loop_utilization.js","lib/internal/perf/nodetiming.js","lib/internal/perf/observe.js","lib/internal/perf/performance.js","lib/internal/perf/performance_entry.js","lib/internal/perf/resource_timing.js","lib/internal/perf/timerify.js","lib/internal/perf/usertiming.js","lib/internal/perf/utils.js","lib/internal/policy/manifest.js","lib/internal/policy/sri.js","lib/internal/priority_queue.js","lib/internal/process/execution.js","lib/internal/process/per_thread.js","lib/internal/process/permission.js","lib/internal/process/policy.js","lib/internal/process/pre_execution.js","lib/internal/process/promises.js","lib/internal/process/report.js","lib/internal/process/signal.js","lib/internal/process/task_queues.js","lib/internal/process/warning.js","lib/internal/process/worker_thread_only.js","lib/internal/promise_hooks.js","lib/internal/querystring.js","lib/internal/readline/callbacks.js","lib/internal/readline/emitKeypressEvents.js","lib/internal/readline/interface.js","lib/internal/readline/promises.js","lib/internal/readline/utils.js","lib/internal/repl.js","lib/internal/repl/await.js","lib/internal/repl/history.js","lib/internal/repl/utils.js","lib/internal/socket_list.js","lib/internal/socketaddress.js","lib/internal/source_map/prepare_stack_trace.js","lib/internal/source_map/source_map.js","lib/internal/source_map/source_map_cache.js","lib/internal/stream_base_commons.js","lib/internal/streams/add-abort-signal.js","lib/internal/streams/compose.js","lib/internal/streams/destroy.js","lib/internal/streams/duplex.js","lib/internal/streams/duplexify.js","lib/internal/streams/duplexpair.js","lib/internal/streams/end-of-stream.js","lib/internal/streams/from.js","lib/internal/streams/lazy_transform.js","lib/internal/streams/legacy.js","lib/internal/streams/operators.js","lib/internal/streams/passthrough.js","lib/internal/streams/pipeline.js","lib/internal/streams/readable.js","lib/internal/streams/state.js","lib/internal/streams/transform.js","lib/internal/streams/utils.js","lib/internal/streams/writable.js","lib/internal/test/binding.js","lib/internal/test/transfer.js","lib/internal/test_runner/coverage.js","lib/internal/test_runner/harness.js","lib/internal/test_runner/mock/loader.js","lib/internal/test_runner/mock/mock.js","lib/internal/test_runner/mock/mock_timers.js","lib/internal/test_runner/reporter/dot.js","lib/internal/test_runner/reporter/junit.js","lib/internal/test_runner/reporter/lcov.js","lib/internal/test_runner/reporter/spec.js","lib/internal/test_runner/reporter/tap.js","lib/internal/test_runner/reporter/utils.js","lib/internal/test_runner/reporter/v8-serializer.js","lib/internal/test_runner/runner.js","lib/internal/test_runner/test.js","lib/internal/test_runner/tests_stream.js","lib/internal/test_runner/utils.js","lib/internal/timers.js","lib/internal/tls/secure-context.js","lib/internal/tls/secure-pair.js","lib/internal/trace_events_async_hooks.js","lib/internal/tty.js","lib/internal/url.js","lib/internal/util.js","lib/internal/util/colors.js","lib/internal/util/comparisons.js","lib/internal/util/debuglog.js","lib/internal/util/embedding.js","lib/internal/util/inspect.js","lib/internal/util/inspector.js","lib/internal/util/iterable_weak_map.js","lib/internal/util/parse_args/parse_args.js","lib/internal/util/parse_args/utils.js","lib/internal/util/types.js","lib/internal/v8/startup_snapshot.js","lib/internal/v8_prof_polyfill.js","lib/internal/v8_prof_processor.js","lib/internal/validators.js","lib/internal/vm.js","lib/internal/vm/module.js","lib/internal/wasm_web_api.js","lib/internal/watch_mode/files_watcher.js","lib/internal/watchdog.js","lib/internal/webidl.js","lib/internal/webstreams/adapters.js","lib/internal/webstreams/compression.js","lib/internal/webstreams/encoding.js","lib/internal/webstreams/queuingstrategies.js","lib/internal/webstreams/readablestream.js","lib/internal/webstreams/transfer.js","lib/internal/webstreams/transformstream.js","lib/internal/webstreams/util.js","lib/internal/webstreams/writablestream.js","lib/internal/worker.js","lib/internal/worker/io.js","lib/internal/worker/js_transferable.js","lib/module.js","lib/net.js","lib/os.js","lib/path.js","lib/path/posix.js","lib/path/win32.js","lib/perf_hooks.js","lib/process.js","lib/punycode.js","lib/querystring.js","lib/readline.js","lib/readline/promises.js","lib/repl.js","lib/sea.js","lib/stream.js","lib/stream/consumers.js","lib/stream/promises.js","lib/stream/web.js","lib/string_decoder.js","lib/sys.js","lib/test.js","lib/test/reporters.js","lib/timers.js","lib/timers/promises.js","lib/tls.js","lib/trace_events.js","lib/tty.js","lib/url.js","lib/util.js","lib/util/types.js","lib/v8.js","lib/vm.js","lib/wasi.js","lib/worker_threads.js","lib/zlib.js"],node_module_version:115,node_no_browser_globals:!1,node_prefix:"/",node_release_urlbase:"https://nodejs.org/download/release/",node_section_ordering_info:"",node_shared:!1,node_shared_ada:!1,node_shared_brotli:!1,node_shared_cares:!1,node_shared_http_parser:!1,node_shared_libuv:!1,node_shared_nghttp2:!1,node_shared_nghttp3:!1,node_shared_ngtcp2:!1,node_shared_openssl:!1,node_shared_simdjson:!1,node_shared_simdutf:!1,node_shared_uvwasi:!1,node_shared_zlib:!1,node_tag:"",node_target_type:"executable",node_use_bundled_v8:!0,node_use_node_code_cache:!0,node_use_node_snapshot:!0,node_use_openssl:!0,node_use_v8_platform:!0,node_with_ltcg:!1,node_without_node_options:!1,node_write_snapshot_as_array_literals:!1,openssl_is_fips:!1,openssl_quic:!0,ossfuzz:!1,shlib_suffix:"so.115",single_executable_application:!0,target_arch:"x64",ubsan:0,use_prefix_to_find_headers:!1,v8_enable_31bit_smis_on_64bit_arch:0,v8_enable_extensible_ro_snapshot:0,v8_enable_gdbjit:0,v8_enable_hugepage:0,v8_enable_i18n_support:1,v8_enable_inspector:1,v8_enable_javascript_promise_hooks:1,v8_enable_lite_mode:0,v8_enable_maglev:0,v8_enable_object_print:1,v8_enable_pointer_compression:0,v8_enable_sandbox:0,v8_enable_shared_ro_heap:1,v8_enable_short_builtin_calls:1,v8_enable_v8_checks:0,v8_enable_webassembly:1,v8_no_strict_aliasing:1,v8_optimized_debug:1,v8_promise_internal_field_count:1,v8_random_seed:0,v8_trace_maps:0,v8_use_siphash:1,want_separate_host_toolset:0}},allowedNodeEnvironmentFlags:{},features:{inspector:!0,debug:!1,uv:!0,ipv6:!0,tls_alpn:!0,tls_sni:!0,tls_ocsp:!0,tls:!0,cached_builtins:!0},sourceMapsEnabled:!1,stdout:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:1,_isStdio:!0},stdin:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:2,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,fd:0},stderr:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:2,_isStdio:!0},env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_7d0927af-a53f-46dd-8cfd-0e9ad29a5452",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v20.18.3 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_7d0927af-a53f-46dd-8cfd-0e9ad29a5452",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/md/md/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"doocs",GRADLE_HOME:"/usr/share/gradle-8.13",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/28.0.13004108",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43716716",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/md/md",SYSTEMD_EXEC_PID:"830",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250302.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.12/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.6/x64",JOURNAL_STREAM:"8:7073",GITHUB_WORKFLOW:"Build and Deploy",_:"/opt/hostedtoolcache/node/20.18.3/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.3/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"13738114923",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"b0ab984ebd1ab95b558bace366604e15551deff3",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",GITHUB_WORKFLOW_REF:"doocs/md/.github/workflows/build.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.3/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_fdf857ee-5fee-4fd4-98a2-63d82b9097a4",INVOCATION_ID:"f51a27b48d5b436ea3bda1f4cbbbb859",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",npm_package_name:"md",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"506",GITHUB_TRIGGERING_ACTOR:"yanglbme",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub-Actions-1000004055",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"doocs/md",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"218952803",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"1.6.0",npm_lifecycle_event:"build:only",GITHUB_REF_PROTECTED:"true",GITHUB_WORKSPACE:"/home/runner/work/md/md",ACCEPT_EULA:"Y",GITHUB_JOB:"build-and-deploy",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"b0ab984ebd1ab95b558bace366604e15551deff3",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"yanglbme",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.3/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_7d0927af-a53f-46dd-8cfd-0e9ad29a5452",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/md/md",GITHUB_ACTOR_ID:"21008209",RUNNER_WORKSPACE:"/home/runner/work/md",npm_execpath:"/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_7d0927af-a53f-46dd-8cfd-0e9ad29a5452",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.3/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_7d0927af-a53f-46dd-8cfd-0e9ad29a5452",INIT_CWD:"/home/runner/work/md/md",EDITOR:"vi",NODE_ENV:"production",LAUNCH_EDITOR:"code"},title:"node",argv:["/opt/hostedtoolcache/node/20.18.3/x64/bin/node","/home/runner/work/md/md/node_modules/.bin/vite","build"],execArgv:[],pid:2179,ppid:2178,execPath:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",debugPort:9229,argv0:"node",_preload_modules:[],report:{directory:"",filename:"",compact:!1,excludeNetwork:!1,signal:"SIGUSR2",reportOnFatalError:!1,reportOnSignal:!1,reportOnUncaughtException:!1}};return function(ed,ud){if(ed.setImmediate)return;var dd=1,hd={},md=!1,gd=ed.document,yd;function vd(Wd){typeof Wd!="function"&&(Wd=new Function(""+Wd));for(var Xd=new Array(arguments.length-1),Jd=0;Jd"u"?commonjsGlobal:self),setImmediate$1}var hasRequiredMain;function requireMain(){if(hasRequiredMain)return main;hasRequiredMain=1;var Ra=typeof commonjsGlobal<"u"&&commonjsGlobal||typeof self<"u"&&self||window,ed=Function.prototype.apply;main.setTimeout=function(){return new ud(ed.call(setTimeout,Ra,arguments),clearTimeout)},main.setInterval=function(){return new ud(ed.call(setInterval,Ra,arguments),clearInterval)},main.clearTimeout=main.clearInterval=function(dd){dd&&dd.close()};function ud(dd,hd){this._id=dd,this._clearFn=hd}return ud.prototype.unref=ud.prototype.ref=function(){},ud.prototype.close=function(){this._clearFn.call(Ra,this._id)},main.enroll=function(dd,hd){clearTimeout(dd._idleTimeoutId),dd._idleTimeout=hd},main.unenroll=function(dd){clearTimeout(dd._idleTimeoutId),dd._idleTimeout=-1},main._unrefActive=main.active=function(dd){clearTimeout(dd._idleTimeoutId);var hd=dd._idleTimeout;hd>=0&&(dd._idleTimeoutId=setTimeout(function(){dd._onTimeout&&dd._onTimeout()},hd))},requireSetImmediate(),main.setImmediate=typeof self<"u"&&self.setImmediate||typeof commonjsGlobal<"u"&&commonjsGlobal.setImmediate||commonjsGlobal&&commonjsGlobal.setImmediate,main.clearImmediate=typeof self<"u"&&self.clearImmediate||typeof commonjsGlobal<"u"&&commonjsGlobal.clearImmediate||commonjsGlobal&&commonjsGlobal.clearImmediate,main}var hasRequiredParser;function requireParser(){return hasRequiredParser||(hasRequiredParser=1,function(Ra){(function(){var ed,ud,dd,hd,md,gd,yd,vd,Cd=function(Ld,Ud){return function(){return Ld.apply(Ud,arguments)}},wd=function(Ld,Ud){for(var jd in Ud)Nd.call(Ud,jd)&&(Ld[jd]=Ud[jd]);function Gd(){this.constructor=Ld}return Gd.prototype=Ud.prototype,Ld.prototype=new Gd,Ld.__super__=Ud.prototype,Ld},Nd={}.hasOwnProperty;yd=requireSax(),dd=eventsExports,ed=requireBom(),gd=requireProcessors(),vd=requireMain().setImmediate,ud=requireDefaults().defaults,hd=function(Ld){return typeof Ld=="object"&&Ld!=null&&Object.keys(Ld).length===0},md=function(Ld,Ud,jd){var Gd,Yd,zd;for(Gd=0,Yd=Ld.length;Gd0&&(Zd[qd.options.childkey]=xf),xf=Zd;else if(gf){gf[qd.options.childkey]=gf[qd.options.childkey]||[],_f=Object.create(null);for(Jd in xf)Nd.call(xf,Jd)&&(_f[Jd]=xf[Jd]);gf[qd.options.childkey].push(_f),delete xf["#name"],Object.keys(xf).length===1&&Gd in xf&&!qd.EXPLICIT_CHARKEY&&(xf=xf[Gd])}}return zd.length>0?qd.assignOrPush(gf,mf,xf):(qd.options.explicitRoot&&(vf=xf,xf=Object.create(null),xf[mf]=vf),qd.resultObject=xf,qd.saxParser.ended=!0,qd.emit("end",qd.resultObject))}}(this),Yd=function(qd){return function(Wd){var Xd,Jd;if(Jd=zd[zd.length-1],Jd)return Jd[Gd]+=Wd,qd.options.explicitChildren&&qd.options.preserveChildrenOrder&&qd.options.charsAsChildren&&(qd.options.includeWhiteChars||Wd.replace(/\\n/g,"").trim()!=="")&&(Jd[qd.options.childkey]=Jd[qd.options.childkey]||[],Xd={"#name":"__text__"},Xd[Gd]=Wd,qd.options.normalize&&(Xd[Gd]=Xd[Gd].replace(/\s{2,}/g," ").trim()),Jd[qd.options.childkey].push(Xd)),Jd}}(this),this.saxParser.ontext=Yd,this.saxParser.oncdata=function(qd){return function(Wd){var Xd;if(Xd=Yd(Wd),Xd)return Xd.cdata=!0}}()},Ud.prototype.parseString=function(jd,Gd){var Yd;Gd!=null&&typeof Gd=="function"&&(this.on("end",function(zd){return this.reset(),Gd(null,zd)}),this.on("error",function(zd){return this.reset(),Gd(zd)}));try{return jd=jd.toString(),jd.trim()===""?(this.emit("end",null),!0):(jd=ed.stripBOM(jd),this.options.async?(this.remaining=jd,vd(this.processAsync),this.saxParser):this.saxParser.write(jd).close())}catch(zd){if(Yd=zd,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw Yd}else return this.emit("error",Yd),this.saxParser.errThrown=!0}},Ud.prototype.parseStringPromise=function(jd){return new Promise(function(Gd){return function(Yd,zd){return Gd.parseString(jd,function(qd,Wd){return qd?zd(qd):Yd(Wd)})}}(this))},Ud}(dd),Ra.parseString=function(Ld,Ud,jd){var Gd,Yd,zd;return jd!=null?(typeof jd=="function"&&(Gd=jd),typeof Ud=="object"&&(Yd=Ud)):(typeof Ud=="function"&&(Gd=Ud),Yd={}),zd=new Ra.Parser(Yd),zd.parseString(Ld,Gd)},Ra.parseStringPromise=function(Ld,Ud){var jd,Gd;return typeof Ud=="object"&&(jd=Ud),Gd=new Ra.Parser(jd),Gd.parseStringPromise(Ld)}}).call(commonjsGlobal)}(parser)),parser}(function(){var Ra,ed,ud,dd,hd=function(gd,yd){for(var vd in yd)md.call(yd,vd)&&(gd[vd]=yd[vd]);function Cd(){this.constructor=gd}return Cd.prototype=yd.prototype,gd.prototype=new Cd,gd.__super__=yd.prototype,gd},md={}.hasOwnProperty;ed=requireDefaults(),Ra=requireBuilder(),ud=requireParser(),dd=requireProcessors(),xml2js.defaults=ed.defaults,xml2js.processors=dd,xml2js.ValidationError=function(gd){hd(yd,gd);function yd(vd){this.message=vd}return yd}(Error),xml2js.Builder=Ra.Builder,xml2js.Parser=ud.Parser,xml2js.parseString=ud.parseString,xml2js.parseStringPromise=ud.parseStringPromise}).call(commonjsGlobal);class ExtendableError extends Error{constructor(ed,ud){super(ed,ud),this.name=this.constructor.name}}class AnonymousRequestError extends ExtendableError{}class InvalidArgumentError extends ExtendableError{}class InvalidEndpointError extends ExtendableError{}class InvalidBucketNameError extends ExtendableError{}class InvalidObjectNameError extends ExtendableError{}class AccessKeyRequiredError extends ExtendableError{}class SecretKeyRequiredError extends ExtendableError{}class ExpiresParamError extends ExtendableError{}class InvalidDateError extends ExtendableError{}class InvalidPrefixError extends ExtendableError{}class InvalidBucketPolicyError extends ExtendableError{}class InvalidXMLError extends ExtendableError{}class S3Error extends ExtendableError{}class IsValidBucketNameError extends ExtendableError{}var ipaddr$1={exports:{}};(function(Ra){(function(ed){const ud="(0?\\d+|0x[a-f0-9]+)",dd={fourOctet:new RegExp(`^${ud}\\.${ud}\\.${ud}\\.${ud}$`,"i"),threeOctet:new RegExp(`^${ud}\\.${ud}\\.${ud}$`,"i"),twoOctet:new RegExp(`^${ud}\\.${ud}$`,"i"),longValue:new RegExp(`^${ud}$`,"i")},hd=new RegExp("^0[0-7]+$","i"),md=new RegExp("^0x[a-f0-9]+$","i"),gd="%[0-9a-z]{1,}",yd="(?:[0-9a-f]+::?)+",vd={zoneIndex:new RegExp(gd,"i"),native:new RegExp(`^(::)?(${yd})?([0-9a-f]+)?(::)?(${gd})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${ud}\\.${ud}\\.${ud}\\.${ud}(${gd})?)$`,"i"),transitional:new RegExp(`^((?:${yd})|(?:::)(?:${yd})?)${ud}\\.${ud}\\.${ud}\\.${ud}(${gd})?$`,"i")};function Cd(jd,Gd){if(jd.indexOf("::")!==jd.lastIndexOf("::"))return null;let Yd=0,zd=-1,qd=(jd.match(vd.zoneIndex)||[])[0],Wd,Xd;for(qd&&(qd=qd.substring(1),jd=jd.replace(/%.+$/,""));(zd=jd.indexOf(":",zd+1))>=0;)Yd++;if(jd.substr(0,2)==="::"&&Yd--,jd.substr(-2,2)==="::"&&Yd--,Yd>Gd)return null;for(Xd=Gd-Yd,Wd=":";Xd--;)Wd+="0:";return jd=jd.replace("::",Wd),jd[0]===":"&&(jd=jd.slice(1)),jd[jd.length-1]===":"&&(jd=jd.slice(0,-1)),Gd=function(){const Jd=jd.split(":"),Zd=[];for(let mf=0;mf0;){if(Wd=Yd-zd,Wd<0&&(Wd=0),jd[qd]>>Wd!==Gd[qd]>>Wd)return!1;zd-=Yd,qd+=1}return!0}function Nd(jd){if(md.test(jd))return parseInt(jd,16);if(jd[0]==="0"&&!isNaN(parseInt(jd[1],10))){if(hd.test(jd))return parseInt(jd,8);throw new Error(`ipaddr: cannot parse ${jd} as octal`)}return parseInt(jd,10)}function Ld(jd,Gd){for(;jd.length=0;qd-=1)if(Wd=this.octets[qd],Wd in zd){if(Xd=zd[Wd],Yd&&Xd!==0)return null;Xd!==8&&(Yd=!0),Gd+=Xd}else return null;return 32-Gd},jd.prototype.range=function(){return Ud.subnetMatch(this,this.SpecialRanges)},jd.prototype.toByteArray=function(){return this.octets.slice(0)},jd.prototype.toIPv4MappedAddress=function(){return Ud.IPv6.parse(`::ffff:${this.toString()}`)},jd.prototype.toNormalizedString=function(){return this.toString()},jd.prototype.toString=function(){return this.octets.join(".")},jd}(),Ud.IPv4.broadcastAddressFromCIDR=function(jd){try{const Gd=this.parseCIDR(jd),Yd=Gd[0].toByteArray(),zd=this.subnetMaskFromPrefixLength(Gd[1]).toByteArray(),qd=[];let Wd=0;for(;Wd<4;)qd.push(parseInt(Yd[Wd],10)|parseInt(zd[Wd],10)^255),Wd++;return new this(qd)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},Ud.IPv4.isIPv4=function(jd){return this.parser(jd)!==null},Ud.IPv4.isValid=function(jd){try{return new this(this.parser(jd)),!0}catch{return!1}},Ud.IPv4.isValidCIDR=function(jd){try{return this.parseCIDR(jd),!0}catch{return!1}},Ud.IPv4.isValidFourPartDecimal=function(jd){return!!(Ud.IPv4.isValid(jd)&&jd.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},Ud.IPv4.networkAddressFromCIDR=function(jd){let Gd,Yd,zd,qd,Wd;try{for(Gd=this.parseCIDR(jd),zd=Gd[0].toByteArray(),Wd=this.subnetMaskFromPrefixLength(Gd[1]).toByteArray(),qd=[],Yd=0;Yd<4;)qd.push(parseInt(zd[Yd],10)&parseInt(Wd[Yd],10)),Yd++;return new this(qd)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},Ud.IPv4.parse=function(jd){const Gd=this.parser(jd);if(Gd===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(Gd)},Ud.IPv4.parseCIDR=function(jd){let Gd;if(Gd=jd.match(/^(.+)\/(\d+)$/)){const Yd=parseInt(Gd[2]);if(Yd>=0&&Yd<=32){const zd=[this.parse(Gd[1]),Yd];return Object.defineProperty(zd,"toString",{value:function(){return this.join("/")}}),zd}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},Ud.IPv4.parser=function(jd){let Gd,Yd,zd;if(Gd=jd.match(dd.fourOctet))return function(){const qd=Gd.slice(1,6),Wd=[];for(let Xd=0;Xd4294967295||zd<0)throw new Error("ipaddr: address outside defined range");return function(){const qd=[];let Wd;for(Wd=0;Wd<=24;Wd+=8)qd.push(zd>>Wd&255);return qd}().reverse()}else return(Gd=jd.match(dd.twoOctet))?function(){const qd=Gd.slice(1,4),Wd=[];if(zd=Nd(qd[1]),zd>16777215||zd<0)throw new Error("ipaddr: address outside defined range");return Wd.push(Nd(qd[0])),Wd.push(zd>>16&255),Wd.push(zd>>8&255),Wd.push(zd&255),Wd}():(Gd=jd.match(dd.threeOctet))?function(){const qd=Gd.slice(1,5),Wd=[];if(zd=Nd(qd[2]),zd>65535||zd<0)throw new Error("ipaddr: address outside defined range");return Wd.push(Nd(qd[0])),Wd.push(Nd(qd[1])),Wd.push(zd>>8&255),Wd.push(zd&255),Wd}():null},Ud.IPv4.subnetMaskFromPrefixLength=function(jd){if(jd=parseInt(jd),jd<0||jd>32)throw new Error("ipaddr: invalid IPv4 prefix length");const Gd=[0,0,0,0];let Yd=0;const zd=Math.floor(jd/8);for(;Yd=0;Xd-=1)if(qd=this.parts[Xd],qd in zd){if(Wd=zd[qd],Yd&&Wd!==0)return null;Wd!==16&&(Yd=!0),Gd+=Wd}else return null;return 128-Gd},jd.prototype.range=function(){return Ud.subnetMatch(this,this.SpecialRanges)},jd.prototype.toByteArray=function(){let Gd;const Yd=[],zd=this.parts;for(let qd=0;qd>8),Yd.push(Gd&255);return Yd},jd.prototype.toFixedLengthString=function(){const Gd=(function(){const zd=[];for(let qd=0;qd>8,Yd&255,zd>>8,zd&255])},jd.prototype.toNormalizedString=function(){const Gd=(function(){const zd=[];for(let qd=0;qdqd&&(zd=Wd.index,qd=Wd[0].length);return qd<0?Yd:`${Yd.substring(0,zd)}::${Yd.substring(zd+qd)}`},jd.prototype.toString=function(){return this.toRFC5952String()},jd}(),Ud.IPv6.broadcastAddressFromCIDR=function(jd){try{const Gd=this.parseCIDR(jd),Yd=Gd[0].toByteArray(),zd=this.subnetMaskFromPrefixLength(Gd[1]).toByteArray(),qd=[];let Wd=0;for(;Wd<16;)qd.push(parseInt(Yd[Wd],10)|parseInt(zd[Wd],10)^255),Wd++;return new this(qd)}catch(Gd){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${Gd})`)}},Ud.IPv6.isIPv6=function(jd){return this.parser(jd)!==null},Ud.IPv6.isValid=function(jd){if(typeof jd=="string"&&jd.indexOf(":")===-1)return!1;try{const Gd=this.parser(jd);return new this(Gd.parts,Gd.zoneId),!0}catch{return!1}},Ud.IPv6.isValidCIDR=function(jd){if(typeof jd=="string"&&jd.indexOf(":")===-1)return!1;try{return this.parseCIDR(jd),!0}catch{return!1}},Ud.IPv6.networkAddressFromCIDR=function(jd){let Gd,Yd,zd,qd,Wd;try{for(Gd=this.parseCIDR(jd),zd=Gd[0].toByteArray(),Wd=this.subnetMaskFromPrefixLength(Gd[1]).toByteArray(),qd=[],Yd=0;Yd<16;)qd.push(parseInt(zd[Yd],10)&parseInt(Wd[Yd],10)),Yd++;return new this(qd)}catch(Xd){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${Xd})`)}},Ud.IPv6.parse=function(jd){const Gd=this.parser(jd);if(Gd.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(Gd.parts,Gd.zoneId)},Ud.IPv6.parseCIDR=function(jd){let Gd,Yd,zd;if((Yd=jd.match(/^(.+)\/(\d+)$/))&&(Gd=parseInt(Yd[2]),Gd>=0&&Gd<=128))return zd=[this.parse(Yd[1]),Gd],Object.defineProperty(zd,"toString",{value:function(){return this.join("/")}}),zd;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},Ud.IPv6.parser=function(jd){let Gd,Yd,zd,qd,Wd,Xd;if(zd=jd.match(vd.deprecatedTransitional))return this.parser(`::ffff:${zd[1]}`);if(vd.native.test(jd))return Cd(jd,8);if((zd=jd.match(vd.transitional))&&(Xd=zd[6]||"",Gd=zd[1],zd[1].endsWith("::")||(Gd=Gd.slice(0,-1)),Gd=Cd(Gd+Xd,6),Gd.parts)){for(Wd=[parseInt(zd[2]),parseInt(zd[3]),parseInt(zd[4]),parseInt(zd[5])],Yd=0;Yd128)throw new Error("ipaddr: invalid IPv6 prefix length");const Gd=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];let Yd=0;const zd=Math.floor(jd/8);for(;Yd{if(!isNumber(gd))throw new TypeError('statusCode should be of type "number"')}),!isString(hd))throw new TypeError('region should be of type "string"');ed.headers||(ed.headers={}),(ed.method==="POST"||ed.method==="PUT"||ed.method==="DELETE")&&(ed.headers["content-length"]=ud.length.toString());const md=this.enableSHA256?toSha256(ud):"";return this.makeRequestStreamAsync(ed,ud,md,dd,hd)}async makeRequestAsyncOmit(ed,ud="",dd=[200],hd=""){const md=await this.makeRequestAsync(ed,ud,dd,hd);return await drainResponse(md),md}async makeRequestStreamAsync(ed,ud,dd,hd,md){if(!isObject(ed))throw new TypeError('options should be of type "object"');if(!(Buffer$4.isBuffer(ud)||typeof ud=="string"||isReadableStream(ud)))throw new InvalidArgumentError(`stream should be a Buffer, string or readable Stream, got ${typeof ud} instead`);if(!isString(dd))throw new TypeError('sha256sum should be of type "string"');if(hd.forEach(vd=>{if(!isNumber(vd))throw new TypeError('statusCode should be of type "number"')}),!isString(md))throw new TypeError('region should be of type "string"');if(!this.enableSHA256&&dd.length!==0)throw new InvalidArgumentError("sha256sum expected to be empty for anonymous or https requests");if(this.enableSHA256&&dd.length!==64)throw new InvalidArgumentError(`Invalid sha256sum : ${dd}`);await this.checkAndRefreshCreds(),md=md||await this.getBucketRegionAsync(ed.bucketName);const gd=this.getRequestOptions({...ed,region:md});if(!this.anonymous){this.enableSHA256||(dd="UNSIGNED-PAYLOAD");const vd=new Date;gd.headers["x-amz-date"]=makeDateLong(vd),gd.headers["x-amz-content-sha256"]=dd,this.sessionToken&&(gd.headers["x-amz-security-token"]=this.sessionToken),gd.headers.authorization=signV4(gd,this.accessKey,this.secretKey,md,vd,dd)}const yd=await request$1(this.transport,gd,ud);if(!yd.statusCode)throw new Error("BUG: response doesn't have a statusCode");if(!hd.includes(yd.statusCode)){delete this.regionMap[ed.bucketName];const vd=await parseResponseError(yd);throw this.logHTTP(gd,yd,vd),vd}return this.logHTTP(gd,yd),yd}async getBucketRegionAsync(ed){if(!isValidBucketName(ed))throw new InvalidBucketNameError(`Invalid bucket name : ${ed}`);if(this.region)return this.region;const ud=this.regionMap[ed];if(ud)return ud;const dd=async Cd=>{const wd=await readAsString(Cd),Nd=parseBucketRegion(wd)||DEFAULT_REGION;return this.regionMap[ed]=Nd,Nd},hd="GET",md="location",gd=this.pathStyle&&!isBrowser_1;let yd;try{const Cd=await this.makeRequestAsync({method:hd,bucketName:ed,query:md,pathStyle:gd},"",[200],DEFAULT_REGION);return dd(Cd)}catch(Cd){if(Cd.name!=="AuthorizationHeaderMalformed"||(yd=Cd.Region,!yd))throw Cd}const vd=await this.makeRequestAsync({method:hd,bucketName:ed,query:md,pathStyle:gd},"",[200],yd);return await dd(vd)}makeRequest(ed,ud="",dd=[200],hd="",md,gd){let yd;md?yd=this.makeRequestAsync(ed,ud,dd,hd):yd=this.makeRequestAsyncOmit(ed,ud,dd,hd),yd.then(vd=>gd(null,vd),vd=>{gd(vd)})}makeRequestStream(ed,ud,dd,hd,md,gd,yd){(async()=>{const Cd=await this.makeRequestStreamAsync(ed,ud,dd,hd,md);return gd||await drainResponse(Cd),Cd})().then(Cd=>yd(null,Cd),Cd=>yd(Cd))}getBucketRegion(ed,ud){return this.getBucketRegionAsync(ed).then(dd=>ud(null,dd),dd=>ud(dd))}async removeBucket(ed){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);await this.makeRequestAsyncOmit({method:"DELETE",bucketName:ed},"",[204]),delete this.regionMap[ed]}async statObject(ed,ud,dd={}){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidObjectName(ud))throw new InvalidObjectNameError(`Invalid object name: ${ud}`);if(!isObject(dd))throw new InvalidArgumentError('statOpts should be of type "object"');const hd=queryString.stringify(dd),gd=await this.makeRequestAsyncOmit({method:"HEAD",bucketName:ed,objectName:ud,query:hd});return{size:parseInt(gd.headers["content-length"]),metaData:extractMetadata(gd.headers),lastModified:new Date(gd.headers["last-modified"]),versionId:getVersionId(gd.headers),etag:sanitizeETag(gd.headers.etag)}}async removeObject(ed,ud,dd={}){if(!isValidBucketName(ed))throw new InvalidBucketNameError(`Invalid bucket name: ${ed}`);if(!isValidObjectName(ud))throw new InvalidObjectNameError(`Invalid object name: ${ud}`);if(!isObject(dd))throw new InvalidArgumentError('removeOpts should be of type "object"');const hd="DELETE",md={};dd.governanceBypass&&(md["X-Amz-Bypass-Governance-Retention"]=!0),dd.forceDelete&&(md["x-minio-force-delete"]=!0);const gd={};dd.versionId&&(gd.versionId=`${dd.versionId}`);const yd=queryString.stringify(gd);await this.makeRequestAsyncOmit({method:hd,bucketName:ed,objectName:ud,headers:md,query:yd},"",[200,204])}async initiateNewMultipartUpload(ed,ud,dd){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidObjectName(ud))throw new InvalidObjectNameError(`Invalid object name: ${ud}`);if(!isObject(dd))throw new InvalidObjectNameError('contentType should be of type "object"');const gd=await this.makeRequestAsync({method:"POST",bucketName:ed,objectName:ud,query:"uploads",headers:dd}),yd=await readAsBuffer(gd);return parseInitiateMultipart(yd.toString())}async abortMultipartUpload(ed,ud,dd){const hd="DELETE",md=`uploadId=${dd}`,gd={method:hd,bucketName:ed,objectName:ud,query:md};await this.makeRequestAsyncOmit(gd,"",[204])}async listParts(ed,ud,dd){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidObjectName(ud))throw new InvalidObjectNameError(`Invalid object name: ${ud}`);if(!isString(dd))throw new TypeError('uploadId should be of type "string"');if(!dd)throw new InvalidArgumentError("uploadId cannot be empty");const hd=[];let md=0,gd;do gd=await this.listPartsQuery(ed,ud,dd,md),md=gd.marker,hd.push(...gd.parts);while(gd.isTruncated);return hd}async listPartsQuery(ed,ud,dd,hd){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidObjectName(ud))throw new InvalidObjectNameError(`Invalid object name: ${ud}`);if(!isString(dd))throw new TypeError('uploadId should be of type "string"');if(!isNumber(hd))throw new TypeError('marker should be of type "number"');if(!dd)throw new InvalidArgumentError("uploadId cannot be empty");let md=`uploadId=${uriEscape(dd)}`;hd&&(md+=`&part-number-marker=${hd}`);const yd=await this.makeRequestAsync({method:"GET",bucketName:ed,objectName:ud,query:md});return parseListParts(await readAsString(yd))}async listBuckets(){const ud=await this.makeRequestAsync({method:"GET"},"",[200],DEFAULT_REGION),dd=await readAsString(ud);return parseListBucket(dd)}async removeBucketReplication(ed){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);await this.makeRequestAsyncOmit({method:"DELETE",bucketName:ed,query:"replication"},"",[200,204],"")}async setBucketReplication(ed,ud){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(isObject(ud)){if(_.isEmpty(ud.role))throw new InvalidArgumentError("Role cannot be empty");if(ud.role&&!isString(ud.role))throw new InvalidArgumentError("Invalid value for role",ud.role);if(_.isEmpty(ud.rules))throw new InvalidArgumentError("Minimum one replication rule must be specified")}else throw new InvalidArgumentError('replicationConfig should be of type "object"');const dd="PUT",hd="replication",md={},gd={ReplicationConfiguration:{Role:ud.role,Rule:ud.rules}},vd=new xml2js.Builder({renderOpts:{pretty:!1},headless:!0}).buildObject(gd);md["Content-MD5"]=toMd5(vd),await this.makeRequestAsyncOmit({method:dd,bucketName:ed,query:hd,headers:md},vd)}async getBucketReplication(ed){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);const hd=await this.makeRequestAsync({method:"GET",bucketName:ed,query:"replication"},"",[200,204]),md=await readAsString(hd);return parseReplicationConfig(md)}}class CopyConditions{constructor(){Ig(this,"modified","");Ig(this,"unmodified","");Ig(this,"matchETag","");Ig(this,"matchETagExcept","")}setModified(ed){if(!(ed instanceof Date))throw new TypeError("date must be of type Date");this.modified=ed.toUTCString()}setUnmodified(ed){if(!(ed instanceof Date))throw new TypeError("date must be of type Date");this.unmodified=ed.toUTCString()}setMatchETag(ed){this.matchETag=ed}setMatchETagExcept(ed){this.matchETagExcept=ed}}class PostPolicy{constructor(){Ig(this,"policy",{conditions:[]});Ig(this,"formData",{})}setExpires(ed){if(!ed)throw new InvalidDateError("Invalid date: cannot be null");this.policy.expiration=ed.toISOString()}setKey(ed){if(!isValidObjectName(ed))throw new InvalidObjectNameError(`Invalid object name : ${ed}`);this.policy.conditions.push(["eq","$key",ed]),this.formData.key=ed}setKeyStartsWith(ed){if(!isValidPrefix(ed))throw new InvalidPrefixError(`Invalid prefix : ${ed}`);this.policy.conditions.push(["starts-with","$key",ed]),this.formData.key=ed}setBucket(ed){if(!isValidBucketName(ed))throw new InvalidBucketNameError(`Invalid bucket name : ${ed}`);this.policy.conditions.push(["eq","$bucket",ed]),this.formData.bucket=ed}setContentType(ed){if(!ed)throw new Error("content-type cannot be null");this.policy.conditions.push(["eq","$Content-Type",ed]),this.formData["Content-Type"]=ed}setContentTypeStartsWith(ed){if(!ed)throw new Error("content-type cannot be null");this.policy.conditions.push(["starts-with","$Content-Type",ed]),this.formData["Content-Type"]=ed}setContentDisposition(ed){if(!ed)throw new Error("content-disposition cannot be null");this.policy.conditions.push(["eq","$Content-Disposition",ed]),this.formData["Content-Disposition"]=ed}setContentLengthRange(ed,ud){if(ed>ud)throw new Error("min cannot be more than max");if(ed<0)throw new Error("min should be > 0");if(ud<0)throw new Error("max should be > 0");this.policy.conditions.push(["content-length-range",ed,ud])}setUserMetaData(ed){if(!isObject(ed))throw new TypeError('metadata should be of type "object"');Object.entries(ed).forEach(([ud,dd])=>{const hd=`x-amz-meta-${ud}`;this.policy.conditions.push(["eq",`$${hd}`,dd]),this.formData[hd]=dd.toString()})}}var jsonStream={exports:{}},util=util$6,TransformStream$1=streamBrowserify.Transform;jsonStream.exports=function(Ra){return new JSONStream(Ra)};var JSONStream=jsonStream.exports.JSONStream=function(Ra){Ra=Ra||{},TransformStream$1.call(this,Ra),this._writableState.objectMode=!1,this._readableState.objectMode=!0,this._async=Ra.async||!1};util.inherits(JSONStream,TransformStream$1);JSONStream.prototype._transform=function(Ra,ed,ud){Buffer$4.isBuffer(Ra)||(Ra=new Buffer$4(Ra)),this._buffer&&(Ra=Buffer$4.concat([this._buffer,Ra]));for(var dd=0,hd=0;++dd<=Ra.length;)if(Ra[dd]===10||dd===Ra.length){var md;try{md=JSON.parse(Ra.slice(hd,dd))}catch{}md&&(this.push(md),md=null),Ra[dd]===10&&(hd=++dd)}return this._buffer=Ra.slice(hd),this._async?void setImmediate(ud):void ud()};var jsonStreamExports=jsonStream.exports;const JSONParser=getDefaultExportFromCjs(jsonStreamExports);var through2$1={exports:{}};const{Transform}=readableBrowserExports;function inherits(Ra,ed){Ra.super_=ed,Ra.prototype=Object.create(ed.prototype,{constructor:{value:Ra,enumerable:!1,writable:!0,configurable:!0}})}function through2(Ra){return(ed,ud,dd)=>(typeof ed=="function"&&(dd=ud,ud=ed,ed={}),typeof ud!="function"&&(ud=(hd,md,gd)=>gd(null,hd)),typeof dd!="function"&&(dd=null),Ra(ed,ud,dd))}const make=through2((Ra,ed,ud)=>{const dd=new Transform(Ra);return dd._transform=ed,ud&&(dd._flush=ud),dd}),ctor=through2((Ra,ed,ud)=>{function dd(hd){if(!(this instanceof dd))return new dd(hd);this.options=Object.assign({},Ra,hd),Transform.call(this,this.options),this._transform=ed,ud&&(this._flush=ud)}return inherits(dd,Transform),dd}),obj=through2(function(Ra,ed,ud){const dd=new Transform(Object.assign({objectMode:!0,highWaterMark:16},Ra));return dd._transform=ed,ud&&(dd._flush=ud),dd});through2$1.exports=make;through2$1.exports.ctor=ctor;through2$1.exports.obj=obj;var through2Exports=through2$1.exports;const Through2=getDefaultExportFromCjs(through2Exports);var Buffer=buffer.Buffer,CRC_TABLE=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];typeof Int32Array<"u"&&(CRC_TABLE=new Int32Array(CRC_TABLE));function ensureBuffer(Ra){if(Buffer.isBuffer(Ra))return Ra;var ed=typeof Buffer.alloc=="function"&&typeof Buffer.from=="function";if(typeof Ra=="number")return ed?Buffer.alloc(Ra):new Buffer(Ra);if(typeof Ra=="string")return ed?Buffer.from(Ra):new Buffer(Ra);throw new Error("input must be buffer, number, or string, received "+typeof Ra)}function bufferizeInt(Ra){var ed=ensureBuffer(4);return ed.writeInt32BE(Ra,0),ed}function _crc32(Ra,ed){Ra=ensureBuffer(Ra),Buffer.isBuffer(ed)&&(ed=ed.readUInt32BE(0));for(var ud=~~ed^-1,dd=0;dd>>8;return ud^-1}function crc32(){return bufferizeInt(_crc32.apply(null,arguments))}crc32.signed=function(){return _crc32.apply(null,arguments)};crc32.unsigned=function(){return _crc32.apply(null,arguments)>>>0};var bufferCrc32=crc32;const crc32$1=getDefaultExportFromCjs(bufferCrc32),fxpWithoutNumParser=new fxp$2.XMLParser({numberParseOptions:{skipLike:/./}});function parseCopyObject(Ra){var ed={etag:"",lastModified:""},ud=parseXml(Ra);if(!ud.CopyObjectResult)throw new InvalidXMLError('Missing tag: "CopyObjectResult"');return ud=ud.CopyObjectResult,ud.ETag&&(ed.etag=ud.ETag.replace(/^"/g,"").replace(/"$/g,"").replace(/^"/g,"").replace(/"$/g,"").replace(/^"/g,"").replace(/"$/g,"")),ud.LastModified&&(ed.lastModified=new Date(ud.LastModified)),ed}function parseListMultipart(Ra){var ed={uploads:[],prefixes:[],isTruncated:!1},ud=parseXml(Ra);if(!ud.ListMultipartUploadsResult)throw new InvalidXMLError('Missing tag: "ListMultipartUploadsResult"');return ud=ud.ListMultipartUploadsResult,ud.IsTruncated&&(ed.isTruncated=ud.IsTruncated),ud.NextKeyMarker&&(ed.nextKeyMarker=ud.NextKeyMarker),ud.NextUploadIdMarker&&(ed.nextUploadIdMarker=ud.nextUploadIdMarker||""),ud.CommonPrefixes&&toArray(ud.CommonPrefixes).forEach(dd=>{ed.prefixes.push({prefix:sanitizeObjectKey(toArray(dd.Prefix)[0])})}),ud.Upload&&toArray(ud.Upload).forEach(dd=>{var hd=dd.Key,md=dd.UploadId,gd={id:dd.Initiator.ID,displayName:dd.Initiator.DisplayName},yd={id:dd.Owner.ID,displayName:dd.Owner.DisplayName},vd=dd.StorageClass,Cd=new Date(dd.Initiated);ed.uploads.push({key:hd,uploadId:md,initiator:gd,owner:yd,storageClass:vd,initiated:Cd})}),ed}function parseBucketNotification(Ra){var ed={TopicConfiguration:[],QueueConfiguration:[],CloudFunctionConfiguration:[]},ud=function(md){var gd=[];return md&&toArray(md).forEach(yd=>{gd.push(yd)}),gd},dd=function(md){var gd=[];return md&&(md=toArray(md),md[0].S3Key&&(md[0].S3Key=toArray(md[0].S3Key),md[0].S3Key[0].FilterRule&&toArray(md[0].S3Key[0].FilterRule).forEach(yd=>{var vd=toArray(yd.Name)[0],Cd=toArray(yd.Value)[0];gd.push({Name:vd,Value:Cd})}))),gd},hd=parseXml(Ra);return hd=hd.NotificationConfiguration,hd.TopicConfiguration&&toArray(hd.TopicConfiguration).forEach(md=>{var gd=toArray(md.Id)[0],yd=toArray(md.Topic)[0],vd=ud(md.Event),Cd=dd(md.Filter);ed.TopicConfiguration.push({Id:gd,Topic:yd,Event:vd,Filter:Cd})}),hd.QueueConfiguration&&toArray(hd.QueueConfiguration).forEach(md=>{var gd=toArray(md.Id)[0],yd=toArray(md.Queue)[0],vd=ud(md.Event),Cd=dd(md.Filter);ed.QueueConfiguration.push({Id:gd,Queue:yd,Event:vd,Filter:Cd})}),hd.CloudFunctionConfiguration&&toArray(hd.CloudFunctionConfiguration).forEach(md=>{var gd=toArray(md.Id)[0],yd=toArray(md.CloudFunction)[0],vd=ud(md.Event),Cd=dd(md.Filter);ed.CloudFunctionConfiguration.push({Id:gd,CloudFunction:yd,Event:vd,Filter:Cd})}),ed}function parseCompleteMultipart(Ra){var ed=parseXml(Ra).CompleteMultipartUploadResult;if(ed.Location){var ud=toArray(ed.Location)[0],dd=toArray(ed.Bucket)[0],hd=ed.Key,md=ed.ETag.replace(/^"/g,"").replace(/"$/g,"").replace(/^"/g,"").replace(/"$/g,"").replace(/^"/g,"").replace(/"$/g,"");return{location:ud,bucket:dd,key:hd,etag:md}}if(ed.Code&&ed.Message){var gd=toArray(ed.Code)[0],yd=toArray(ed.Message)[0];return{errCode:gd,errMessage:yd}}}const formatObjInfo=(Ra,ed={})=>{let{Key:ud,LastModified:dd,ETag:hd,Size:md,VersionId:gd,IsLatest:yd}=Ra;isObject(ed)||(ed={});const vd=sanitizeObjectKey(toArray(ud)[0]),Cd=new Date(toArray(dd)[0]),wd=sanitizeETag(toArray(hd)[0]),Nd=sanitizeSize(md);return{name:vd,lastModified:Cd,etag:wd,size:Nd,versionId:gd,isLatest:yd,isDeleteMarker:ed.IsDeleteMarker?ed.IsDeleteMarker:!1}};function parseListObjects(Ra){var ed={objects:[],isTruncated:!1};let ud=!1,dd,hd;const md=fxpWithoutNumParser.parse(Ra),gd=Cd=>{Cd&&toArray(Cd).forEach(wd=>{ed.objects.push({prefix:sanitizeObjectKey(toArray(wd.Prefix)[0]),size:0})})},yd=md.ListBucketResult,vd=md.ListVersionsResult;return yd&&(yd.IsTruncated&&(ud=yd.IsTruncated),yd.Contents&&toArray(yd.Contents).forEach(Cd=>{const wd=sanitizeObjectKey(toArray(Cd.Key)[0]),Nd=new Date(toArray(Cd.LastModified)[0]),Ld=sanitizeETag(toArray(Cd.ETag)[0]),Ud=sanitizeSize(Cd.Size);ed.objects.push({name:wd,lastModified:Nd,etag:Ld,size:Ud})}),yd.NextMarker&&(dd=yd.NextMarker),gd(yd.CommonPrefixes)),vd&&(vd.IsTruncated&&(ud=vd.IsTruncated),vd.Version&&toArray(vd.Version).forEach(Cd=>{ed.objects.push(formatObjInfo(Cd))}),vd.DeleteMarker&&toArray(vd.DeleteMarker).forEach(Cd=>{ed.objects.push(formatObjInfo(Cd,{IsDeleteMarker:!0}))}),vd.NextKeyMarker&&(hd=vd.NextKeyMarker),vd.NextVersionIdMarker&&(ed.versionIdMarker=vd.NextVersionIdMarker),gd(vd.CommonPrefixes)),ed.isTruncated=ud,ud&&(ed.nextMarker=hd||dd),ed}function parseListObjectsV2(Ra){var ed={objects:[],isTruncated:!1},ud=parseXml(Ra);if(!ud.ListBucketResult)throw new InvalidXMLError('Missing tag: "ListBucketResult"');return ud=ud.ListBucketResult,ud.IsTruncated&&(ed.isTruncated=ud.IsTruncated),ud.NextContinuationToken&&(ed.nextContinuationToken=ud.NextContinuationToken),ud.Contents&&toArray(ud.Contents).forEach(dd=>{var hd=sanitizeObjectKey(toArray(dd.Key)[0]),md=new Date(dd.LastModified),gd=sanitizeETag(dd.ETag),yd=dd.Size;ed.objects.push({name:hd,lastModified:md,etag:gd,size:yd})}),ud.CommonPrefixes&&toArray(ud.CommonPrefixes).forEach(dd=>{ed.objects.push({prefix:sanitizeObjectKey(toArray(dd.Prefix)[0]),size:0})}),ed}function parseBucketVersioningConfig(Ra){var ed=parseXml(Ra);return ed.VersioningConfiguration}function parseTagging(Ra){const ed=parseXml(Ra);let ud=[];if(ed.Tagging&&ed.Tagging.TagSet&&ed.Tagging.TagSet.Tag){const dd=ed.Tagging.TagSet.Tag;isObject(dd)?ud.push(dd):ud=dd}return ud}function parseLifecycleConfig(Ra){return parseXml(Ra).LifecycleConfiguration}function parseObjectLockConfig(Ra){const ed=parseXml(Ra);let ud={};if(ed.ObjectLockConfiguration){ud={objectLockEnabled:ed.ObjectLockConfiguration.ObjectLockEnabled};let dd;if(ed.ObjectLockConfiguration&&ed.ObjectLockConfiguration.Rule&&ed.ObjectLockConfiguration.Rule.DefaultRetention&&(dd=ed.ObjectLockConfiguration.Rule.DefaultRetention||{},ud.mode=dd.Mode),dd){const hd=dd.Years;hd?(ud.validity=hd,ud.unit=RETENTION_VALIDITY_UNITS.YEARS):(ud.validity=dd.Days,ud.unit=RETENTION_VALIDITY_UNITS.DAYS)}return ud}}function parseObjectRetentionConfig(Ra){const ud=parseXml(Ra).Retention;return{mode:ud.Mode,retainUntilDate:ud.RetainUntilDate}}function parseBucketEncryptionConfig(Ra){return parseXml(Ra)}function parseObjectLegalHoldConfig(Ra){return parseXml(Ra).LegalHold}function uploadPartParser(Ra){return parseXml(Ra).CopyPartResult}function removeObjectsParser(Ra){const ed=parseXml(Ra);return ed.DeleteResult&&ed.DeleteResult.Error?toArray(ed.DeleteResult.Error):[]}function parseSelectObjectContentResponse(Ra){function ed(md){const gd=Buffer$4.from(md.read(1)).readUInt8(),vd=(Buffer$4.from(md.read(gd)).toString()||"").split(":");return vd.length>=1?vd[1]:""}function ud(md){const gd=Buffer$4.from(md.read(2)).readUInt16BE();return Buffer$4.from(md.read(gd)).toString()}const dd=new SelectResults({}),hd=readableStream(Ra);for(;hd._readableState.length;){let md;const gd=Buffer$4.from(hd.read(4));md=crc32$1(gd);const yd=Buffer$4.from(hd.read(4));md=crc32$1(yd,md);const vd=md.readInt32BE(),Cd=Buffer$4.from(hd.read(4));md=crc32$1(Cd,md);const wd=gd.readInt32BE(),Nd=yd.readInt32BE(),Ld=Cd.readInt32BE();if(Ld!==vd)throw new Error(`Header Checksum Mismatch, Prelude CRC of ${Ld} does not equal expected CRC of ${vd}`);const Ud={};if(Nd>0){const zd=Buffer$4.from(hd.read(Nd));md=crc32$1(zd,md);const qd=readableStream(zd);for(;qd._readableState.length;){let Wd=ed(qd);qd.read(1),Ud[Wd]=ud(qd)}}let jd;const Gd=wd-Nd-16;if(Gd>0){const zd=Buffer$4.from(hd.read(Gd));md=crc32$1(zd,md);const qd=Buffer$4.from(hd.read(4)).readInt32BE(),Wd=md.readInt32BE();if(qd!==Wd)throw new Error(`Message Checksum Mismatch, Message CRC of ${qd} does not equal expected CRC of ${Wd}`);jd=readableStream(zd)}const Yd=Ud["message-type"];switch(Yd){case"error":{const zd=Ud["error-code"]+':"'+Ud["error-message"]+'"';throw new Error(zd)}case"event":{const zd=Ud["content-type"];switch(Ud["event-type"]){case"End":return dd.setResponse(Ra),dd;case"Records":{const Wd=jd.read(Gd);dd.setRecords(Wd);break}case"Progress":switch(zd){case"text/xml":{const Wd=jd.read(Gd);dd.setProgress(Wd.toString());break}default:{const Wd=`Unexpected content-type ${zd} sent for event-type Progress`;throw new Error(Wd)}}break;case"Stats":switch(zd){case"text/xml":{const Wd=jd.read(Gd);dd.setStats(Wd.toString());break}default:{const Wd=`Unexpected content-type ${zd} sent for event-type Stats`;throw new Error(Wd)}}break;default:{const Wd=`Un implemented event detected ${Yd}.`;console.warn(Wd)}}}}}}function getConcater(Ra,ed){var ud=!1,dd=[];if(Ra&&!isFunction(Ra))throw new TypeError('parser should be of type "function"');return Ra&&(ud=!0),Through2({objectMode:ud},function(hd,md,gd){dd.push(hd),gd()},function(hd){dd.length&&(Ra?this.push(Ra(Buffer$4.concat(dd).toString())):this.push(Buffer$4.concat(dd))),hd()})}function getCopyObjectTransformer(){return getConcater(parseCopyObject)}function getListMultipartTransformer(){return getConcater(parseListMultipart)}function getListObjectsTransformer(){return getConcater(parseListObjects)}function getListObjectsV2Transformer(){return getConcater(parseListObjectsV2)}function getCompleteMultipartTransformer(){return getConcater(parseCompleteMultipart)}function getBucketNotificationTransformer(){return getConcater(parseBucketNotification)}function getNotificationTransformer(){return new JSONParser}function bucketVersioningTransformer(){return getConcater(parseBucketVersioningConfig)}function getTagsTransformer(){return getConcater(parseTagging)}function lifecycleTransformer(){return getConcater(parseLifecycleConfig)}function objectLockTransformer(){return getConcater(parseObjectLockConfig)}function objectRetentionTransformer(){return getConcater(parseObjectRetentionConfig)}function bucketEncryptionTransformer(){return getConcater(parseBucketEncryptionConfig)}function objectLegalHoldTransformer(){return getConcater(parseObjectLegalHoldConfig)}function uploadPartTransformer(){return getConcater(uploadPartParser)}function selectObjectContentTransformer(){return getConcater()}function removeObjectsTransformer(){return getConcater(removeObjectsParser)}var define_process_default$1={version:"v20.18.3",versions:{node:"20.18.3",acorn:"8.14.0",ada:"2.9.2",ares:"1.34.4",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.15+quic",simdutf:"5.6.4",tz:"2024b",undici:"6.21.1",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.25",zlib:"1.3.0.1-motley-82a5fec"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.18.3/node-v20.18.3.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.18.3/node-v20.18.3-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule internal/util","NativeModule internal/util/types","NativeModule internal/validators","NativeModule internal/linkedlist","NativeModule internal/priority_queue","Internal Binding icu","NativeModule internal/util/inspect","NativeModule internal/util/debuglog","NativeModule internal/timers","NativeModule internal/events/abort_listener","NativeModule events","Internal Binding buffer","NativeModule internal/buffer","NativeModule buffer","Internal Binding messaging","NativeModule internal/worker/js_transferable","NativeModule internal/querystring","NativeModule internal/constants","NativeModule path","NativeModule querystring","Internal Binding url","NativeModule internal/url","NativeModule internal/fs/utils","Internal Binding process_methods","NativeModule internal/process/per_thread","Internal Binding credentials","NativeModule internal/process/promises","NativeModule internal/fixed_queue","NativeModule async_hooks","NativeModule internal/process/task_queues","NativeModule timers","Internal Binding trace_events","Internal Binding contextify","NativeModule internal/vm","NativeModule internal/process/execution","NativeModule internal/process/warning","NativeModule internal/source_map/source_map_cache","Internal Binding fs","Internal Binding blob","Internal Binding encoding_binding","NativeModule internal/encoding","NativeModule internal/streams/utils","NativeModule util","NativeModule internal/webstreams/util","NativeModule internal/webstreams/queuingstrategies","NativeModule internal/blob","Internal Binding permission","NativeModule internal/process/permission","NativeModule fs","NativeModule internal/modules/helpers","NativeModule internal/console/constructor","NativeModule internal/console/global","NativeModule internal/util/inspector","Internal Binding inspector","NativeModule internal/webidl","Internal Binding performance","NativeModule internal/perf/utils","NativeModule internal/event_target","Internal Binding wasm_web_api","Internal Binding mksnapshot","NativeModule internal/v8/startup_snapshot","NativeModule internal/process/signal","NativeModule url","NativeModule internal/modules/package_json_reader","NativeModule internal/modules/cjs/loader","NativeModule internal/process/pre_execution","NativeModule internal/modules/esm/utils","NativeModule internal/inspector_async_hook","Internal Binding worker","NativeModule internal/modules/run_main","NativeModule internal/net","NativeModule internal/dns/utils","NativeModule internal/modules/esm/assert","NativeModule internal/modules/esm/loader","NativeModule internal/modules/esm/module_map","NativeModule internal/modules/esm/translators","NativeModule internal/modules/esm/package_config","NativeModule internal/modules/esm/formats","NativeModule internal/modules/esm/get_format","NativeModule internal/modules/esm/resolve","NativeModule internal/modules/esm/module_job","NativeModule internal/modules/esm/load","Internal Binding fs_dir","NativeModule internal/fs/dir","NativeModule string_decoder","Internal Binding fs_event_wrap","Internal Binding uv","NativeModule internal/fs/watchers","NativeModule internal/fs/recursive_watch","NativeModule internal/readline/utils","NativeModule internal/readline/callbacks","NativeModule internal/readline/interface","NativeModule internal/fs/promises","NativeModule internal/perf/performance_entry","NativeModule internal/perf/observe","NativeModule internal/perf/resource_timing","NativeModule internal/perf/nodetiming","NativeModule internal/perf/usertiming","NativeModule internal/perf/event_loop_utilization","NativeModule internal/histogram","NativeModule internal/perf/timerify","NativeModule internal/perf/performance","NativeModule internal/perf/event_loop_delay","NativeModule perf_hooks","NativeModule internal/modules/esm/initialize_import_meta","NativeModule internal/streams/destroy","NativeModule internal/abort_controller","NativeModule internal/streams/end-of-stream","NativeModule internal/streams/legacy","NativeModule internal/streams/add-abort-signal","NativeModule internal/streams/state","NativeModule internal/streams/from","NativeModule internal/streams/readable","NativeModule internal/streams/writable","NativeModule internal/streams/duplex","NativeModule internal/streams/pipeline","NativeModule internal/streams/compose","NativeModule internal/streams/operators","NativeModule stream/promises","NativeModule internal/streams/transform","NativeModule internal/streams/passthrough","NativeModule internal/streams/duplexpair","NativeModule stream","NativeModule internal/fs/streams","NativeModule fs/promises","NativeModule internal/util/parse_args/utils","NativeModule internal/util/parse_args/parse_args","NativeModule internal/mime","NativeModule internal/source_map/source_map","NativeModule module","Internal Binding crypto","NativeModule internal/crypto/random","NativeModule internal/crypto/hashnames","NativeModule internal/crypto/util","NativeModule internal/crypto/pbkdf2","NativeModule internal/crypto/scrypt","NativeModule internal/crypto/keys","NativeModule internal/crypto/hkdf","NativeModule internal/crypto/keygen","NativeModule internal/crypto/diffiehellman","NativeModule internal/streams/lazy_transform","NativeModule internal/crypto/cipher","NativeModule internal/crypto/sig","NativeModule internal/crypto/hash","NativeModule internal/crypto/x509","NativeModule internal/crypto/certificate","NativeModule crypto","NativeModule internal/crypto/webcrypto","Internal Binding stream_wrap","Internal Binding tcp_wrap","Internal Binding pipe_wrap","NativeModule internal/stream_base_commons","NativeModule diagnostics_channel","NativeModule net","Internal Binding tty_wrap","NativeModule internal/tty","NativeModule tty","NativeModule internal/deps/cjs-module-lexer/dist/lexer","Internal Binding udp_wrap","NativeModule internal/dgram","NativeModule dgram","Internal Binding process_wrap","NativeModule internal/socket_list","Internal Binding spawn_sync","NativeModule internal/child_process","NativeModule child_process","NativeModule _http_agent","Internal Binding http_parser","NativeModule internal/freelist","NativeModule _http_incoming","NativeModule _http_common","NativeModule internal/http","NativeModule _http_outgoing","NativeModule _http_client","NativeModule _http_server","NativeModule http","Internal Binding cares_wrap","NativeModule internal/tls/secure-context","NativeModule _tls_common","Internal Binding js_stream","NativeModule internal/js_stream_socket","Internal Binding tls_wrap","NativeModule _tls_wrap","NativeModule internal/tls/secure-pair","NativeModule tls","NativeModule https","Internal Binding block_list","NativeModule internal/socketaddress","NativeModule internal/blocklist","Internal Binding os","NativeModule os","NativeModule internal/dns/callback_resolver","NativeModule dns","NativeModule internal/dns/promises","NativeModule internal/util/colors","NativeModule internal/assert/assertion_error","NativeModule internal/assert/utils","NativeModule internal/assert/calltracker","NativeModule assert","Internal Binding serdes","Internal Binding profiler","Internal Binding heap_utils","Internal Binding internal_only_v8","NativeModule internal/heap_utils","NativeModule internal/promise_hooks","Internal Binding v8","NativeModule v8","NativeModule internal/worker/io","NativeModule internal/error_serdes","NativeModule internal/worker","NativeModule worker_threads","NativeModule internal/file","NativeModule internal/readline/emitKeypressEvents","NativeModule internal/readline/promises","NativeModule readline/promises","NativeModule readline","Internal Binding zlib","NativeModule zlib","NativeModule process","Internal Binding report","NativeModule internal/process/report","NativeModule constants","NativeModule internal/crypto/webidl"],_events:{newListener:[null,null],removeListener:[null,null]},_eventsCount:3,domain:null,_exiting:!1,config:{target_defaults:{cflags:[],default_configuration:"Release",defines:["NODE_OPENSSL_CONF_NAME=nodejs_conf","NODE_OPENSSL_HAS_QUIC","ICU_NO_USER_DATA_OVERRIDE"],include_dirs:[],libraries:[]},variables:{asan:0,clang:0,coverage:!1,dcheck_always_on:0,debug_nghttp2:!1,debug_node:!1,enable_lto:!1,enable_pgo_generate:!1,enable_pgo_use:!1,error_on_warn:!1,force_dynamic_crt:0,gas_version:"2.35",host_arch:"x64",icu_data_in:"../../deps/icu-tmp/icudt75l.dat",icu_endianness:"l",icu_gyp_path:"tools/icu/icu-generic.gyp",icu_path:"deps/icu-small",icu_small:!1,icu_ver_major:"75",is_debug:0,libdir:"lib",llvm_version:"0.0",napi_build_version:"9",node_builtin_shareable_builtins:["deps/cjs-module-lexer/lexer.js","deps/cjs-module-lexer/dist/lexer.js","deps/undici/undici.js"],node_byteorder:"little",node_debug_lib:!1,node_enable_d8:!1,node_enable_v8_vtunejit:!1,node_fipsinstall:!1,node_install_corepack:!0,node_install_npm:!0,node_library_files:["lib/_http_agent.js","lib/_http_client.js","lib/_http_common.js","lib/_http_incoming.js","lib/_http_outgoing.js","lib/_http_server.js","lib/_stream_duplex.js","lib/_stream_passthrough.js","lib/_stream_readable.js","lib/_stream_transform.js","lib/_stream_wrap.js","lib/_stream_writable.js","lib/_tls_common.js","lib/_tls_wrap.js","lib/assert.js","lib/assert/strict.js","lib/async_hooks.js","lib/buffer.js","lib/child_process.js","lib/cluster.js","lib/console.js","lib/constants.js","lib/crypto.js","lib/dgram.js","lib/diagnostics_channel.js","lib/dns.js","lib/dns/promises.js","lib/domain.js","lib/events.js","lib/fs.js","lib/fs/promises.js","lib/http.js","lib/http2.js","lib/https.js","lib/inspector.js","lib/inspector/promises.js","lib/internal/abort_controller.js","lib/internal/assert.js","lib/internal/assert/assertion_error.js","lib/internal/assert/calltracker.js","lib/internal/assert/utils.js","lib/internal/async_hooks.js","lib/internal/blob.js","lib/internal/blocklist.js","lib/internal/bootstrap/node.js","lib/internal/bootstrap/realm.js","lib/internal/bootstrap/shadow_realm.js","lib/internal/bootstrap/switches/does_not_own_process_state.js","lib/internal/bootstrap/switches/does_own_process_state.js","lib/internal/bootstrap/switches/is_main_thread.js","lib/internal/bootstrap/switches/is_not_main_thread.js","lib/internal/bootstrap/web/exposed-wildcard.js","lib/internal/bootstrap/web/exposed-window-or-worker.js","lib/internal/buffer.js","lib/internal/child_process.js","lib/internal/child_process/serialization.js","lib/internal/cli_table.js","lib/internal/cluster/child.js","lib/internal/cluster/primary.js","lib/internal/cluster/round_robin_handle.js","lib/internal/cluster/shared_handle.js","lib/internal/cluster/utils.js","lib/internal/cluster/worker.js","lib/internal/console/constructor.js","lib/internal/console/global.js","lib/internal/constants.js","lib/internal/crypto/aes.js","lib/internal/crypto/certificate.js","lib/internal/crypto/cfrg.js","lib/internal/crypto/cipher.js","lib/internal/crypto/diffiehellman.js","lib/internal/crypto/ec.js","lib/internal/crypto/hash.js","lib/internal/crypto/hashnames.js","lib/internal/crypto/hkdf.js","lib/internal/crypto/keygen.js","lib/internal/crypto/keys.js","lib/internal/crypto/mac.js","lib/internal/crypto/pbkdf2.js","lib/internal/crypto/random.js","lib/internal/crypto/rsa.js","lib/internal/crypto/scrypt.js","lib/internal/crypto/sig.js","lib/internal/crypto/util.js","lib/internal/crypto/webcrypto.js","lib/internal/crypto/webidl.js","lib/internal/crypto/x509.js","lib/internal/debugger/inspect.js","lib/internal/debugger/inspect_client.js","lib/internal/debugger/inspect_repl.js","lib/internal/dgram.js","lib/internal/dns/callback_resolver.js","lib/internal/dns/promises.js","lib/internal/dns/utils.js","lib/internal/encoding.js","lib/internal/error_serdes.js","lib/internal/errors.js","lib/internal/event_target.js","lib/internal/events/abort_listener.js","lib/internal/events/symbols.js","lib/internal/file.js","lib/internal/fixed_queue.js","lib/internal/freelist.js","lib/internal/freeze_intrinsics.js","lib/internal/fs/cp/cp-sync.js","lib/internal/fs/cp/cp.js","lib/internal/fs/dir.js","lib/internal/fs/promises.js","lib/internal/fs/read/context.js","lib/internal/fs/recursive_watch.js","lib/internal/fs/rimraf.js","lib/internal/fs/streams.js","lib/internal/fs/sync_write_stream.js","lib/internal/fs/utils.js","lib/internal/fs/watchers.js","lib/internal/heap_utils.js","lib/internal/histogram.js","lib/internal/http.js","lib/internal/http2/compat.js","lib/internal/http2/core.js","lib/internal/http2/util.js","lib/internal/inspector_async_hook.js","lib/internal/inspector_network_tracking.js","lib/internal/js_stream_socket.js","lib/internal/legacy/processbinding.js","lib/internal/linkedlist.js","lib/internal/main/check_syntax.js","lib/internal/main/embedding.js","lib/internal/main/eval_stdin.js","lib/internal/main/eval_string.js","lib/internal/main/inspect.js","lib/internal/main/mksnapshot.js","lib/internal/main/print_help.js","lib/internal/main/prof_process.js","lib/internal/main/repl.js","lib/internal/main/run_main_module.js","lib/internal/main/test_runner.js","lib/internal/main/watch_mode.js","lib/internal/main/worker_thread.js","lib/internal/mime.js","lib/internal/modules/cjs/loader.js","lib/internal/modules/esm/assert.js","lib/internal/modules/esm/create_dynamic_module.js","lib/internal/modules/esm/fetch_module.js","lib/internal/modules/esm/formats.js","lib/internal/modules/esm/get_format.js","lib/internal/modules/esm/hooks.js","lib/internal/modules/esm/initialize_import_meta.js","lib/internal/modules/esm/load.js","lib/internal/modules/esm/loader.js","lib/internal/modules/esm/module_job.js","lib/internal/modules/esm/module_map.js","lib/internal/modules/esm/package_config.js","lib/internal/modules/esm/resolve.js","lib/internal/modules/esm/shared_constants.js","lib/internal/modules/esm/translators.js","lib/internal/modules/esm/utils.js","lib/internal/modules/esm/worker.js","lib/internal/modules/helpers.js","lib/internal/modules/package_json_reader.js","lib/internal/modules/run_main.js","lib/internal/navigator.js","lib/internal/net.js","lib/internal/options.js","lib/internal/per_context/domexception.js","lib/internal/per_context/messageport.js","lib/internal/per_context/primordials.js","lib/internal/perf/event_loop_delay.js","lib/internal/perf/event_loop_utilization.js","lib/internal/perf/nodetiming.js","lib/internal/perf/observe.js","lib/internal/perf/performance.js","lib/internal/perf/performance_entry.js","lib/internal/perf/resource_timing.js","lib/internal/perf/timerify.js","lib/internal/perf/usertiming.js","lib/internal/perf/utils.js","lib/internal/policy/manifest.js","lib/internal/policy/sri.js","lib/internal/priority_queue.js","lib/internal/process/execution.js","lib/internal/process/per_thread.js","lib/internal/process/permission.js","lib/internal/process/policy.js","lib/internal/process/pre_execution.js","lib/internal/process/promises.js","lib/internal/process/report.js","lib/internal/process/signal.js","lib/internal/process/task_queues.js","lib/internal/process/warning.js","lib/internal/process/worker_thread_only.js","lib/internal/promise_hooks.js","lib/internal/querystring.js","lib/internal/readline/callbacks.js","lib/internal/readline/emitKeypressEvents.js","lib/internal/readline/interface.js","lib/internal/readline/promises.js","lib/internal/readline/utils.js","lib/internal/repl.js","lib/internal/repl/await.js","lib/internal/repl/history.js","lib/internal/repl/utils.js","lib/internal/socket_list.js","lib/internal/socketaddress.js","lib/internal/source_map/prepare_stack_trace.js","lib/internal/source_map/source_map.js","lib/internal/source_map/source_map_cache.js","lib/internal/stream_base_commons.js","lib/internal/streams/add-abort-signal.js","lib/internal/streams/compose.js","lib/internal/streams/destroy.js","lib/internal/streams/duplex.js","lib/internal/streams/duplexify.js","lib/internal/streams/duplexpair.js","lib/internal/streams/end-of-stream.js","lib/internal/streams/from.js","lib/internal/streams/lazy_transform.js","lib/internal/streams/legacy.js","lib/internal/streams/operators.js","lib/internal/streams/passthrough.js","lib/internal/streams/pipeline.js","lib/internal/streams/readable.js","lib/internal/streams/state.js","lib/internal/streams/transform.js","lib/internal/streams/utils.js","lib/internal/streams/writable.js","lib/internal/test/binding.js","lib/internal/test/transfer.js","lib/internal/test_runner/coverage.js","lib/internal/test_runner/harness.js","lib/internal/test_runner/mock/loader.js","lib/internal/test_runner/mock/mock.js","lib/internal/test_runner/mock/mock_timers.js","lib/internal/test_runner/reporter/dot.js","lib/internal/test_runner/reporter/junit.js","lib/internal/test_runner/reporter/lcov.js","lib/internal/test_runner/reporter/spec.js","lib/internal/test_runner/reporter/tap.js","lib/internal/test_runner/reporter/utils.js","lib/internal/test_runner/reporter/v8-serializer.js","lib/internal/test_runner/runner.js","lib/internal/test_runner/test.js","lib/internal/test_runner/tests_stream.js","lib/internal/test_runner/utils.js","lib/internal/timers.js","lib/internal/tls/secure-context.js","lib/internal/tls/secure-pair.js","lib/internal/trace_events_async_hooks.js","lib/internal/tty.js","lib/internal/url.js","lib/internal/util.js","lib/internal/util/colors.js","lib/internal/util/comparisons.js","lib/internal/util/debuglog.js","lib/internal/util/embedding.js","lib/internal/util/inspect.js","lib/internal/util/inspector.js","lib/internal/util/iterable_weak_map.js","lib/internal/util/parse_args/parse_args.js","lib/internal/util/parse_args/utils.js","lib/internal/util/types.js","lib/internal/v8/startup_snapshot.js","lib/internal/v8_prof_polyfill.js","lib/internal/v8_prof_processor.js","lib/internal/validators.js","lib/internal/vm.js","lib/internal/vm/module.js","lib/internal/wasm_web_api.js","lib/internal/watch_mode/files_watcher.js","lib/internal/watchdog.js","lib/internal/webidl.js","lib/internal/webstreams/adapters.js","lib/internal/webstreams/compression.js","lib/internal/webstreams/encoding.js","lib/internal/webstreams/queuingstrategies.js","lib/internal/webstreams/readablestream.js","lib/internal/webstreams/transfer.js","lib/internal/webstreams/transformstream.js","lib/internal/webstreams/util.js","lib/internal/webstreams/writablestream.js","lib/internal/worker.js","lib/internal/worker/io.js","lib/internal/worker/js_transferable.js","lib/module.js","lib/net.js","lib/os.js","lib/path.js","lib/path/posix.js","lib/path/win32.js","lib/perf_hooks.js","lib/process.js","lib/punycode.js","lib/querystring.js","lib/readline.js","lib/readline/promises.js","lib/repl.js","lib/sea.js","lib/stream.js","lib/stream/consumers.js","lib/stream/promises.js","lib/stream/web.js","lib/string_decoder.js","lib/sys.js","lib/test.js","lib/test/reporters.js","lib/timers.js","lib/timers/promises.js","lib/tls.js","lib/trace_events.js","lib/tty.js","lib/url.js","lib/util.js","lib/util/types.js","lib/v8.js","lib/vm.js","lib/wasi.js","lib/worker_threads.js","lib/zlib.js"],node_module_version:115,node_no_browser_globals:!1,node_prefix:"/",node_release_urlbase:"https://nodejs.org/download/release/",node_section_ordering_info:"",node_shared:!1,node_shared_ada:!1,node_shared_brotli:!1,node_shared_cares:!1,node_shared_http_parser:!1,node_shared_libuv:!1,node_shared_nghttp2:!1,node_shared_nghttp3:!1,node_shared_ngtcp2:!1,node_shared_openssl:!1,node_shared_simdjson:!1,node_shared_simdutf:!1,node_shared_uvwasi:!1,node_shared_zlib:!1,node_tag:"",node_target_type:"executable",node_use_bundled_v8:!0,node_use_node_code_cache:!0,node_use_node_snapshot:!0,node_use_openssl:!0,node_use_v8_platform:!0,node_with_ltcg:!1,node_without_node_options:!1,node_write_snapshot_as_array_literals:!1,openssl_is_fips:!1,openssl_quic:!0,ossfuzz:!1,shlib_suffix:"so.115",single_executable_application:!0,target_arch:"x64",ubsan:0,use_prefix_to_find_headers:!1,v8_enable_31bit_smis_on_64bit_arch:0,v8_enable_extensible_ro_snapshot:0,v8_enable_gdbjit:0,v8_enable_hugepage:0,v8_enable_i18n_support:1,v8_enable_inspector:1,v8_enable_javascript_promise_hooks:1,v8_enable_lite_mode:0,v8_enable_maglev:0,v8_enable_object_print:1,v8_enable_pointer_compression:0,v8_enable_sandbox:0,v8_enable_shared_ro_heap:1,v8_enable_short_builtin_calls:1,v8_enable_v8_checks:0,v8_enable_webassembly:1,v8_no_strict_aliasing:1,v8_optimized_debug:1,v8_promise_internal_field_count:1,v8_random_seed:0,v8_trace_maps:0,v8_use_siphash:1,want_separate_host_toolset:0}},allowedNodeEnvironmentFlags:{},features:{inspector:!0,debug:!1,uv:!0,ipv6:!0,tls_alpn:!0,tls_sni:!0,tls_ocsp:!0,tls:!0,cached_builtins:!0},sourceMapsEnabled:!1,stdout:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:1,_isStdio:!0},stdin:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:2,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,fd:0},stderr:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:2,_isStdio:!0},env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_31bae965-5b37-417e-995d-88fe848eb99b",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v20.18.3 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_31bae965-5b37-417e-995d-88fe848eb99b",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/md/md/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"doocs",GRADLE_HOME:"/usr/share/gradle-8.12.1",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/28.0.13004108",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43716716",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/md/md",SYSTEMD_EXEC_PID:"834",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250223.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.12/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.6/x64",JOURNAL_STREAM:"8:4711",GITHUB_WORKFLOW:"Build and Deploy",_:"/opt/hostedtoolcache/node/20.18.3/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.3/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"13672707484",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"389519be8d7a34a99cf277513a533323efcd33fe",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",GITHUB_WORKFLOW_REF:"doocs/md/.github/workflows/build.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.3/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_17b3fd3d-f363-46e4-8b41-c0150e556773",INVOCATION_ID:"f649072f604740d6b111000a163ba948",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",npm_package_name:"md",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"505",GITHUB_TRIGGERING_ACTOR:"yanglbme",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub-Actions-1000003917",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"doocs/md",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"218952803",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"1.6.0",npm_lifecycle_event:"build:only",GITHUB_REF_PROTECTED:"true",GITHUB_WORKSPACE:"/home/runner/work/md/md",ACCEPT_EULA:"Y",GITHUB_JOB:"build-and-deploy",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"389519be8d7a34a99cf277513a533323efcd33fe",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"yanglbme",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.3/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_31bae965-5b37-417e-995d-88fe848eb99b",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/md/md",GITHUB_ACTOR_ID:"21008209",RUNNER_WORKSPACE:"/home/runner/work/md",npm_execpath:"/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_31bae965-5b37-417e-995d-88fe848eb99b",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.3/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_31bae965-5b37-417e-995d-88fe848eb99b",INIT_CWD:"/home/runner/work/md/md",EDITOR:"vi",NODE_ENV:"production",LAUNCH_EDITOR:"code"},title:"node",argv:["/opt/hostedtoolcache/node/20.18.3/x64/bin/node","/home/runner/work/md/md/node_modules/.bin/vite","build"],execArgv:[],pid:2188,ppid:2187,execPath:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",debugPort:9229,argv0:"node",_preload_modules:[],report:{directory:"",filename:"",compact:!1,excludeNetwork:!1,signal:"SIGUSR2",reportOnFatalError:!1,reportOnSignal:!1,reportOnUncaughtException:!1}};class NotificationConfig{add(ed){let ud="";ed instanceof TopicConfig&&(ud="TopicConfiguration"),ed instanceof QueueConfig&&(ud="QueueConfiguration"),ed instanceof CloudFunctionConfig&&(ud="CloudFunctionConfiguration"),this[ud]||(this[ud]=[]),this[ud].push(ed)}}class TargetConfig{setId(ed){this.Id=ed}addEvent(ed){this.Event||(this.Event=[]),this.Event.push(ed)}addFilterSuffix(ed){this.Filter||(this.Filter={S3Key:{FilterRule:[]}}),this.Filter.S3Key.FilterRule.push({Name:"suffix",Value:ed})}addFilterPrefix(ed){this.Filter||(this.Filter={S3Key:{FilterRule:[]}}),this.Filter.S3Key.FilterRule.push({Name:"prefix",Value:ed})}}class TopicConfig extends TargetConfig{constructor(ed){super(),this.Topic=ed}}class QueueConfig extends TargetConfig{constructor(ed){super(),this.Queue=ed}}class CloudFunctionConfig extends TargetConfig{constructor(ed){super(),this.CloudFunction=ed}}class NotificationPoller extends eventsExports.EventEmitter{constructor(ed,ud,dd,hd,md){super(),this.client=ed,this.bucketName=ud,this.prefix=dd,this.suffix=hd,this.events=md,this.ending=!1}start(){this.ending=!1,define_process_default$1.nextTick(()=>{this.checkForChanges()})}stop(){this.ending=!0}checkForChanges(){if(this.ending)return;let ed="GET";var ud=[];if(this.prefix){var dd=uriEscape(this.prefix);ud.push(`prefix=${dd}`)}if(this.suffix){var hd=uriEscape(this.suffix);ud.push(`suffix=${hd}`)}this.events&&this.events.forEach(yd=>ud.push("events="+uriEscape(yd))),ud.sort();var md="";ud.length>0&&(md=`${ud.join("&")}`);const gd=this.client.region||DEFAULT_REGION;this.client.makeRequest({method:ed,bucketName:this.bucketName,query:md},"",[200],gd,!0,(yd,vd)=>{if(yd)return this.emit("error",yd);let Cd=getNotificationTransformer();pipesetup(vd,Cd).on("data",wd=>{let Nd=wd.Records;Nd||(Nd=[]),Nd.forEach(Ld=>{this.emit("notification",Ld)}),this.ending&&vd.destroy()}).on("error",wd=>this.emit("error",wd)).on("end",()=>{define_process_default$1.nextTick(()=>{this.checkForChanges()})})})}}var define_process_default={version:"v20.18.3",versions:{node:"20.18.3",acorn:"8.14.0",ada:"2.9.2",ares:"1.34.4",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.15+quic",simdutf:"5.6.4",tz:"2024b",undici:"6.21.1",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.25",zlib:"1.3.0.1-motley-82a5fec"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.18.3/node-v20.18.3.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.18.3/node-v20.18.3-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule internal/util","NativeModule internal/util/types","NativeModule internal/validators","NativeModule internal/linkedlist","NativeModule internal/priority_queue","Internal Binding icu","NativeModule internal/util/inspect","NativeModule internal/util/debuglog","NativeModule internal/timers","NativeModule internal/events/abort_listener","NativeModule events","Internal Binding buffer","NativeModule internal/buffer","NativeModule buffer","Internal Binding messaging","NativeModule internal/worker/js_transferable","NativeModule internal/querystring","NativeModule internal/constants","NativeModule path","NativeModule querystring","Internal Binding url","NativeModule internal/url","NativeModule internal/fs/utils","Internal Binding process_methods","NativeModule internal/process/per_thread","Internal Binding credentials","NativeModule internal/process/promises","NativeModule internal/fixed_queue","NativeModule async_hooks","NativeModule internal/process/task_queues","NativeModule timers","Internal Binding trace_events","Internal Binding contextify","NativeModule internal/vm","NativeModule internal/process/execution","NativeModule internal/process/warning","NativeModule internal/source_map/source_map_cache","Internal Binding fs","Internal Binding blob","Internal Binding encoding_binding","NativeModule internal/encoding","NativeModule internal/streams/utils","NativeModule util","NativeModule internal/webstreams/util","NativeModule internal/webstreams/queuingstrategies","NativeModule internal/blob","Internal Binding permission","NativeModule internal/process/permission","NativeModule fs","NativeModule internal/modules/helpers","NativeModule internal/console/constructor","NativeModule internal/console/global","NativeModule internal/util/inspector","Internal Binding inspector","NativeModule internal/webidl","Internal Binding performance","NativeModule internal/perf/utils","NativeModule internal/event_target","Internal Binding wasm_web_api","Internal Binding mksnapshot","NativeModule internal/v8/startup_snapshot","NativeModule internal/process/signal","NativeModule url","NativeModule internal/modules/package_json_reader","NativeModule internal/modules/cjs/loader","NativeModule internal/process/pre_execution","NativeModule internal/modules/esm/utils","NativeModule internal/inspector_async_hook","Internal Binding worker","NativeModule internal/modules/run_main","NativeModule internal/net","NativeModule internal/dns/utils","NativeModule internal/modules/esm/assert","NativeModule internal/modules/esm/loader","NativeModule internal/modules/esm/module_map","NativeModule internal/modules/esm/translators","NativeModule internal/modules/esm/package_config","NativeModule internal/modules/esm/formats","NativeModule internal/modules/esm/get_format","NativeModule internal/modules/esm/resolve","NativeModule internal/modules/esm/module_job","NativeModule internal/modules/esm/load","Internal Binding fs_dir","NativeModule internal/fs/dir","NativeModule string_decoder","Internal Binding fs_event_wrap","Internal Binding uv","NativeModule internal/fs/watchers","NativeModule internal/fs/recursive_watch","NativeModule internal/readline/utils","NativeModule internal/readline/callbacks","NativeModule internal/readline/interface","NativeModule internal/fs/promises","NativeModule internal/perf/performance_entry","NativeModule internal/perf/observe","NativeModule internal/perf/resource_timing","NativeModule internal/perf/nodetiming","NativeModule internal/perf/usertiming","NativeModule internal/perf/event_loop_utilization","NativeModule internal/histogram","NativeModule internal/perf/timerify","NativeModule internal/perf/performance","NativeModule internal/perf/event_loop_delay","NativeModule perf_hooks","NativeModule internal/modules/esm/initialize_import_meta","NativeModule internal/streams/destroy","NativeModule internal/abort_controller","NativeModule internal/streams/end-of-stream","NativeModule internal/streams/legacy","NativeModule internal/streams/add-abort-signal","NativeModule internal/streams/state","NativeModule internal/streams/from","NativeModule internal/streams/readable","NativeModule internal/streams/writable","NativeModule internal/streams/duplex","NativeModule internal/streams/pipeline","NativeModule internal/streams/compose","NativeModule internal/streams/operators","NativeModule stream/promises","NativeModule internal/streams/transform","NativeModule internal/streams/passthrough","NativeModule internal/streams/duplexpair","NativeModule stream","NativeModule internal/fs/streams","NativeModule fs/promises","NativeModule internal/util/parse_args/utils","NativeModule internal/util/parse_args/parse_args","NativeModule internal/mime","NativeModule internal/source_map/source_map","NativeModule module","Internal Binding crypto","NativeModule internal/crypto/random","NativeModule internal/crypto/hashnames","NativeModule internal/crypto/util","NativeModule internal/crypto/pbkdf2","NativeModule internal/crypto/scrypt","NativeModule internal/crypto/keys","NativeModule internal/crypto/hkdf","NativeModule internal/crypto/keygen","NativeModule internal/crypto/diffiehellman","NativeModule internal/streams/lazy_transform","NativeModule internal/crypto/cipher","NativeModule internal/crypto/sig","NativeModule internal/crypto/hash","NativeModule internal/crypto/x509","NativeModule internal/crypto/certificate","NativeModule crypto","NativeModule internal/crypto/webcrypto","Internal Binding stream_wrap","Internal Binding tcp_wrap","Internal Binding pipe_wrap","NativeModule internal/stream_base_commons","NativeModule diagnostics_channel","NativeModule net","Internal Binding tty_wrap","NativeModule internal/tty","NativeModule tty","NativeModule internal/deps/cjs-module-lexer/dist/lexer","Internal Binding udp_wrap","NativeModule internal/dgram","NativeModule dgram","Internal Binding process_wrap","NativeModule internal/socket_list","Internal Binding spawn_sync","NativeModule internal/child_process","NativeModule child_process","NativeModule _http_agent","Internal Binding http_parser","NativeModule internal/freelist","NativeModule _http_incoming","NativeModule _http_common","NativeModule internal/http","NativeModule _http_outgoing","NativeModule _http_client","NativeModule _http_server","NativeModule http","Internal Binding cares_wrap","NativeModule internal/tls/secure-context","NativeModule _tls_common","Internal Binding js_stream","NativeModule internal/js_stream_socket","Internal Binding tls_wrap","NativeModule _tls_wrap","NativeModule internal/tls/secure-pair","NativeModule tls","NativeModule https","Internal Binding block_list","NativeModule internal/socketaddress","NativeModule internal/blocklist","Internal Binding os","NativeModule os","NativeModule internal/dns/callback_resolver","NativeModule dns","NativeModule internal/dns/promises","NativeModule internal/util/colors","NativeModule internal/assert/assertion_error","NativeModule internal/assert/utils","NativeModule internal/assert/calltracker","NativeModule assert","Internal Binding serdes","Internal Binding profiler","Internal Binding heap_utils","Internal Binding internal_only_v8","NativeModule internal/heap_utils","NativeModule internal/promise_hooks","Internal Binding v8","NativeModule v8","NativeModule internal/worker/io","NativeModule internal/error_serdes","NativeModule internal/worker","NativeModule worker_threads","NativeModule internal/file","NativeModule internal/readline/emitKeypressEvents","NativeModule internal/readline/promises","NativeModule readline/promises","NativeModule readline","Internal Binding zlib","NativeModule zlib","NativeModule process","Internal Binding report","NativeModule internal/process/report","NativeModule constants","NativeModule internal/crypto/webidl"],_events:{newListener:[null,null],removeListener:[null,null]},_eventsCount:3,domain:null,_exiting:!1,config:{target_defaults:{cflags:[],default_configuration:"Release",defines:["NODE_OPENSSL_CONF_NAME=nodejs_conf","NODE_OPENSSL_HAS_QUIC","ICU_NO_USER_DATA_OVERRIDE"],include_dirs:[],libraries:[]},variables:{asan:0,clang:0,coverage:!1,dcheck_always_on:0,debug_nghttp2:!1,debug_node:!1,enable_lto:!1,enable_pgo_generate:!1,enable_pgo_use:!1,error_on_warn:!1,force_dynamic_crt:0,gas_version:"2.35",host_arch:"x64",icu_data_in:"../../deps/icu-tmp/icudt75l.dat",icu_endianness:"l",icu_gyp_path:"tools/icu/icu-generic.gyp",icu_path:"deps/icu-small",icu_small:!1,icu_ver_major:"75",is_debug:0,libdir:"lib",llvm_version:"0.0",napi_build_version:"9",node_builtin_shareable_builtins:["deps/cjs-module-lexer/lexer.js","deps/cjs-module-lexer/dist/lexer.js","deps/undici/undici.js"],node_byteorder:"little",node_debug_lib:!1,node_enable_d8:!1,node_enable_v8_vtunejit:!1,node_fipsinstall:!1,node_install_corepack:!0,node_install_npm:!0,node_library_files:["lib/_http_agent.js","lib/_http_client.js","lib/_http_common.js","lib/_http_incoming.js","lib/_http_outgoing.js","lib/_http_server.js","lib/_stream_duplex.js","lib/_stream_passthrough.js","lib/_stream_readable.js","lib/_stream_transform.js","lib/_stream_wrap.js","lib/_stream_writable.js","lib/_tls_common.js","lib/_tls_wrap.js","lib/assert.js","lib/assert/strict.js","lib/async_hooks.js","lib/buffer.js","lib/child_process.js","lib/cluster.js","lib/console.js","lib/constants.js","lib/crypto.js","lib/dgram.js","lib/diagnostics_channel.js","lib/dns.js","lib/dns/promises.js","lib/domain.js","lib/events.js","lib/fs.js","lib/fs/promises.js","lib/http.js","lib/http2.js","lib/https.js","lib/inspector.js","lib/inspector/promises.js","lib/internal/abort_controller.js","lib/internal/assert.js","lib/internal/assert/assertion_error.js","lib/internal/assert/calltracker.js","lib/internal/assert/utils.js","lib/internal/async_hooks.js","lib/internal/blob.js","lib/internal/blocklist.js","lib/internal/bootstrap/node.js","lib/internal/bootstrap/realm.js","lib/internal/bootstrap/shadow_realm.js","lib/internal/bootstrap/switches/does_not_own_process_state.js","lib/internal/bootstrap/switches/does_own_process_state.js","lib/internal/bootstrap/switches/is_main_thread.js","lib/internal/bootstrap/switches/is_not_main_thread.js","lib/internal/bootstrap/web/exposed-wildcard.js","lib/internal/bootstrap/web/exposed-window-or-worker.js","lib/internal/buffer.js","lib/internal/child_process.js","lib/internal/child_process/serialization.js","lib/internal/cli_table.js","lib/internal/cluster/child.js","lib/internal/cluster/primary.js","lib/internal/cluster/round_robin_handle.js","lib/internal/cluster/shared_handle.js","lib/internal/cluster/utils.js","lib/internal/cluster/worker.js","lib/internal/console/constructor.js","lib/internal/console/global.js","lib/internal/constants.js","lib/internal/crypto/aes.js","lib/internal/crypto/certificate.js","lib/internal/crypto/cfrg.js","lib/internal/crypto/cipher.js","lib/internal/crypto/diffiehellman.js","lib/internal/crypto/ec.js","lib/internal/crypto/hash.js","lib/internal/crypto/hashnames.js","lib/internal/crypto/hkdf.js","lib/internal/crypto/keygen.js","lib/internal/crypto/keys.js","lib/internal/crypto/mac.js","lib/internal/crypto/pbkdf2.js","lib/internal/crypto/random.js","lib/internal/crypto/rsa.js","lib/internal/crypto/scrypt.js","lib/internal/crypto/sig.js","lib/internal/crypto/util.js","lib/internal/crypto/webcrypto.js","lib/internal/crypto/webidl.js","lib/internal/crypto/x509.js","lib/internal/debugger/inspect.js","lib/internal/debugger/inspect_client.js","lib/internal/debugger/inspect_repl.js","lib/internal/dgram.js","lib/internal/dns/callback_resolver.js","lib/internal/dns/promises.js","lib/internal/dns/utils.js","lib/internal/encoding.js","lib/internal/error_serdes.js","lib/internal/errors.js","lib/internal/event_target.js","lib/internal/events/abort_listener.js","lib/internal/events/symbols.js","lib/internal/file.js","lib/internal/fixed_queue.js","lib/internal/freelist.js","lib/internal/freeze_intrinsics.js","lib/internal/fs/cp/cp-sync.js","lib/internal/fs/cp/cp.js","lib/internal/fs/dir.js","lib/internal/fs/promises.js","lib/internal/fs/read/context.js","lib/internal/fs/recursive_watch.js","lib/internal/fs/rimraf.js","lib/internal/fs/streams.js","lib/internal/fs/sync_write_stream.js","lib/internal/fs/utils.js","lib/internal/fs/watchers.js","lib/internal/heap_utils.js","lib/internal/histogram.js","lib/internal/http.js","lib/internal/http2/compat.js","lib/internal/http2/core.js","lib/internal/http2/util.js","lib/internal/inspector_async_hook.js","lib/internal/inspector_network_tracking.js","lib/internal/js_stream_socket.js","lib/internal/legacy/processbinding.js","lib/internal/linkedlist.js","lib/internal/main/check_syntax.js","lib/internal/main/embedding.js","lib/internal/main/eval_stdin.js","lib/internal/main/eval_string.js","lib/internal/main/inspect.js","lib/internal/main/mksnapshot.js","lib/internal/main/print_help.js","lib/internal/main/prof_process.js","lib/internal/main/repl.js","lib/internal/main/run_main_module.js","lib/internal/main/test_runner.js","lib/internal/main/watch_mode.js","lib/internal/main/worker_thread.js","lib/internal/mime.js","lib/internal/modules/cjs/loader.js","lib/internal/modules/esm/assert.js","lib/internal/modules/esm/create_dynamic_module.js","lib/internal/modules/esm/fetch_module.js","lib/internal/modules/esm/formats.js","lib/internal/modules/esm/get_format.js","lib/internal/modules/esm/hooks.js","lib/internal/modules/esm/initialize_import_meta.js","lib/internal/modules/esm/load.js","lib/internal/modules/esm/loader.js","lib/internal/modules/esm/module_job.js","lib/internal/modules/esm/module_map.js","lib/internal/modules/esm/package_config.js","lib/internal/modules/esm/resolve.js","lib/internal/modules/esm/shared_constants.js","lib/internal/modules/esm/translators.js","lib/internal/modules/esm/utils.js","lib/internal/modules/esm/worker.js","lib/internal/modules/helpers.js","lib/internal/modules/package_json_reader.js","lib/internal/modules/run_main.js","lib/internal/navigator.js","lib/internal/net.js","lib/internal/options.js","lib/internal/per_context/domexception.js","lib/internal/per_context/messageport.js","lib/internal/per_context/primordials.js","lib/internal/perf/event_loop_delay.js","lib/internal/perf/event_loop_utilization.js","lib/internal/perf/nodetiming.js","lib/internal/perf/observe.js","lib/internal/perf/performance.js","lib/internal/perf/performance_entry.js","lib/internal/perf/resource_timing.js","lib/internal/perf/timerify.js","lib/internal/perf/usertiming.js","lib/internal/perf/utils.js","lib/internal/policy/manifest.js","lib/internal/policy/sri.js","lib/internal/priority_queue.js","lib/internal/process/execution.js","lib/internal/process/per_thread.js","lib/internal/process/permission.js","lib/internal/process/policy.js","lib/internal/process/pre_execution.js","lib/internal/process/promises.js","lib/internal/process/report.js","lib/internal/process/signal.js","lib/internal/process/task_queues.js","lib/internal/process/warning.js","lib/internal/process/worker_thread_only.js","lib/internal/promise_hooks.js","lib/internal/querystring.js","lib/internal/readline/callbacks.js","lib/internal/readline/emitKeypressEvents.js","lib/internal/readline/interface.js","lib/internal/readline/promises.js","lib/internal/readline/utils.js","lib/internal/repl.js","lib/internal/repl/await.js","lib/internal/repl/history.js","lib/internal/repl/utils.js","lib/internal/socket_list.js","lib/internal/socketaddress.js","lib/internal/source_map/prepare_stack_trace.js","lib/internal/source_map/source_map.js","lib/internal/source_map/source_map_cache.js","lib/internal/stream_base_commons.js","lib/internal/streams/add-abort-signal.js","lib/internal/streams/compose.js","lib/internal/streams/destroy.js","lib/internal/streams/duplex.js","lib/internal/streams/duplexify.js","lib/internal/streams/duplexpair.js","lib/internal/streams/end-of-stream.js","lib/internal/streams/from.js","lib/internal/streams/lazy_transform.js","lib/internal/streams/legacy.js","lib/internal/streams/operators.js","lib/internal/streams/passthrough.js","lib/internal/streams/pipeline.js","lib/internal/streams/readable.js","lib/internal/streams/state.js","lib/internal/streams/transform.js","lib/internal/streams/utils.js","lib/internal/streams/writable.js","lib/internal/test/binding.js","lib/internal/test/transfer.js","lib/internal/test_runner/coverage.js","lib/internal/test_runner/harness.js","lib/internal/test_runner/mock/loader.js","lib/internal/test_runner/mock/mock.js","lib/internal/test_runner/mock/mock_timers.js","lib/internal/test_runner/reporter/dot.js","lib/internal/test_runner/reporter/junit.js","lib/internal/test_runner/reporter/lcov.js","lib/internal/test_runner/reporter/spec.js","lib/internal/test_runner/reporter/tap.js","lib/internal/test_runner/reporter/utils.js","lib/internal/test_runner/reporter/v8-serializer.js","lib/internal/test_runner/runner.js","lib/internal/test_runner/test.js","lib/internal/test_runner/tests_stream.js","lib/internal/test_runner/utils.js","lib/internal/timers.js","lib/internal/tls/secure-context.js","lib/internal/tls/secure-pair.js","lib/internal/trace_events_async_hooks.js","lib/internal/tty.js","lib/internal/url.js","lib/internal/util.js","lib/internal/util/colors.js","lib/internal/util/comparisons.js","lib/internal/util/debuglog.js","lib/internal/util/embedding.js","lib/internal/util/inspect.js","lib/internal/util/inspector.js","lib/internal/util/iterable_weak_map.js","lib/internal/util/parse_args/parse_args.js","lib/internal/util/parse_args/utils.js","lib/internal/util/types.js","lib/internal/v8/startup_snapshot.js","lib/internal/v8_prof_polyfill.js","lib/internal/v8_prof_processor.js","lib/internal/validators.js","lib/internal/vm.js","lib/internal/vm/module.js","lib/internal/wasm_web_api.js","lib/internal/watch_mode/files_watcher.js","lib/internal/watchdog.js","lib/internal/webidl.js","lib/internal/webstreams/adapters.js","lib/internal/webstreams/compression.js","lib/internal/webstreams/encoding.js","lib/internal/webstreams/queuingstrategies.js","lib/internal/webstreams/readablestream.js","lib/internal/webstreams/transfer.js","lib/internal/webstreams/transformstream.js","lib/internal/webstreams/util.js","lib/internal/webstreams/writablestream.js","lib/internal/worker.js","lib/internal/worker/io.js","lib/internal/worker/js_transferable.js","lib/module.js","lib/net.js","lib/os.js","lib/path.js","lib/path/posix.js","lib/path/win32.js","lib/perf_hooks.js","lib/process.js","lib/punycode.js","lib/querystring.js","lib/readline.js","lib/readline/promises.js","lib/repl.js","lib/sea.js","lib/stream.js","lib/stream/consumers.js","lib/stream/promises.js","lib/stream/web.js","lib/string_decoder.js","lib/sys.js","lib/test.js","lib/test/reporters.js","lib/timers.js","lib/timers/promises.js","lib/tls.js","lib/trace_events.js","lib/tty.js","lib/url.js","lib/util.js","lib/util/types.js","lib/v8.js","lib/vm.js","lib/wasi.js","lib/worker_threads.js","lib/zlib.js"],node_module_version:115,node_no_browser_globals:!1,node_prefix:"/",node_release_urlbase:"https://nodejs.org/download/release/",node_section_ordering_info:"",node_shared:!1,node_shared_ada:!1,node_shared_brotli:!1,node_shared_cares:!1,node_shared_http_parser:!1,node_shared_libuv:!1,node_shared_nghttp2:!1,node_shared_nghttp3:!1,node_shared_ngtcp2:!1,node_shared_openssl:!1,node_shared_simdjson:!1,node_shared_simdutf:!1,node_shared_uvwasi:!1,node_shared_zlib:!1,node_tag:"",node_target_type:"executable",node_use_bundled_v8:!0,node_use_node_code_cache:!0,node_use_node_snapshot:!0,node_use_openssl:!0,node_use_v8_platform:!0,node_with_ltcg:!1,node_without_node_options:!1,node_write_snapshot_as_array_literals:!1,openssl_is_fips:!1,openssl_quic:!0,ossfuzz:!1,shlib_suffix:"so.115",single_executable_application:!0,target_arch:"x64",ubsan:0,use_prefix_to_find_headers:!1,v8_enable_31bit_smis_on_64bit_arch:0,v8_enable_extensible_ro_snapshot:0,v8_enable_gdbjit:0,v8_enable_hugepage:0,v8_enable_i18n_support:1,v8_enable_inspector:1,v8_enable_javascript_promise_hooks:1,v8_enable_lite_mode:0,v8_enable_maglev:0,v8_enable_object_print:1,v8_enable_pointer_compression:0,v8_enable_sandbox:0,v8_enable_shared_ro_heap:1,v8_enable_short_builtin_calls:1,v8_enable_v8_checks:0,v8_enable_webassembly:1,v8_no_strict_aliasing:1,v8_optimized_debug:1,v8_promise_internal_field_count:1,v8_random_seed:0,v8_trace_maps:0,v8_use_siphash:1,want_separate_host_toolset:0}},allowedNodeEnvironmentFlags:{},features:{inspector:!0,debug:!1,uv:!0,ipv6:!0,tls_alpn:!0,tls_sni:!0,tls_ocsp:!0,tls:!0,cached_builtins:!0},sourceMapsEnabled:!1,stdout:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:1,_isStdio:!0},stdin:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:2,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,fd:0},stderr:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:2,_isStdio:!0},env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_31bae965-5b37-417e-995d-88fe848eb99b",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v20.18.3 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_31bae965-5b37-417e-995d-88fe848eb99b",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/md/md/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"doocs",GRADLE_HOME:"/usr/share/gradle-8.12.1",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/28.0.13004108",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43716716",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/md/md",SYSTEMD_EXEC_PID:"834",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250223.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.12/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.6/x64",JOURNAL_STREAM:"8:4711",GITHUB_WORKFLOW:"Build and Deploy",_:"/opt/hostedtoolcache/node/20.18.3/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.3/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"13672707484",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"389519be8d7a34a99cf277513a533323efcd33fe",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",GITHUB_WORKFLOW_REF:"doocs/md/.github/workflows/build.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.3/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_17b3fd3d-f363-46e4-8b41-c0150e556773",INVOCATION_ID:"f649072f604740d6b111000a163ba948",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",npm_package_name:"md",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"505",GITHUB_TRIGGERING_ACTOR:"yanglbme",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub-Actions-1000003917",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"doocs/md",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"218952803",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"1.6.0",npm_lifecycle_event:"build:only",GITHUB_REF_PROTECTED:"true",GITHUB_WORKSPACE:"/home/runner/work/md/md",ACCEPT_EULA:"Y",GITHUB_JOB:"build-and-deploy",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"389519be8d7a34a99cf277513a533323efcd33fe",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"yanglbme",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.3/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_31bae965-5b37-417e-995d-88fe848eb99b",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/md/md",GITHUB_ACTOR_ID:"21008209",RUNNER_WORKSPACE:"/home/runner/work/md",npm_execpath:"/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_31bae965-5b37-417e-995d-88fe848eb99b",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.3/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_31bae965-5b37-417e-995d-88fe848eb99b",INIT_CWD:"/home/runner/work/md/md",EDITOR:"vi",NODE_ENV:"production",LAUNCH_EDITOR:"code"},title:"node",argv:["/opt/hostedtoolcache/node/20.18.3/x64/bin/node","/home/runner/work/md/md/node_modules/.bin/vite","build"],execArgv:[],pid:2188,ppid:2187,execPath:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",debugPort:9229,argv0:"node",_preload_modules:[],report:{directory:"",filename:"",compact:!1,excludeNetwork:!1,signal:"SIGUSR2",reportOnFatalError:!1,reportOnSignal:!1,reportOnUncaughtException:!1}};class ObjectUploader extends streamBrowserify.Transform{constructor(ed,ud,dd,hd,md,gd){super(),this.emptyStream=!0,this.client=ed,this.bucketName=ud,this.objectName=dd,this.partSize=hd,this.metaData=md,this.callback=gd,this.partNumber=1,this.oldParts=null,this.etags=[],this.id=null,this.on("error",yd=>{gd(yd)})}_transform(ed,ud,dd){this.emptyStream=!1;let hd="PUT",md={"Content-Length":ed.length},gd="";if(this.client.enableSHA256||(gd=(void 0)("md5").update(ed).digest(),md["Content-MD5"]=gd.toString("base64")),this.partNumber==1&&ed.length{if(Nd)return dd(Nd);let Ud={etag:sanitizeETag(Ld.headers.etag),versionId:getVersionId(Ld.headers)};Ld.on("data",()=>{}),define_process_default.nextTick(()=>{this.callback(null,Ud)}),dd()});return}if(this.id===null){this.once("ready",()=>{this._transform(ed,ud,dd)}),this.client.findUploadId(this.bucketName,this.objectName,(wd,Nd)=>{if(wd)return this.emit("error",wd);if(!Nd){this.client.initiateNewMultipartUpload(this.bucketName,this.objectName,this.metaData).then(Ld=>{this.id=Ld,this.emit("ready")},Ld=>dd(Ld));return}this.id=Nd,this.client.listParts(this.bucketName,this.objectName,Nd).then(Ld=>{Ld||(Ld=[]),this.oldParts=Ld.reduce(function(Ud,jd){return Ud[jd.part]||(Ud[jd.part]=jd),Ud},{}),this.emit("ready")},Ld=>this.emit("error",Ld))});return}let yd=this.partNumber++;if(this.oldParts){let wd=this.oldParts[yd];if(gd||(gd=(void 0)("md5").update(ed).digest()),wd&&gd.toString("hex")===wd.etag){this.etags.push({part:yd,etag:wd.etag}),dd();return}}let vd=queryString.stringify({partNumber:yd,uploadId:this.id}),Cd={method:hd,query:vd,headers:md,bucketName:this.bucketName,objectName:this.objectName};this.client.makeRequest(Cd,ed,[200],"",!0,(wd,Nd)=>{if(wd)return dd(wd);let Ld=Nd.headers.etag;Ld&&(Ld=Ld.replace(/^"/,"").replace(/"$/,"")),this.etags.push({part:yd,etag:Ld}),Nd.on("data",()=>{}),dd()})}_flush(ed){if(this.emptyStream){let ud="PUT",dd=Object.assign({},this.metaData,{"Content-Length":0}),hd={method:ud,headers:dd,query:"",bucketName:this.bucketName,objectName:this.objectName};this.client.makeRequest(hd,"",[200],"",!0,(md,gd)=>{if(md)return ed(md);let yd={etag:sanitizeETag(gd.headers.etag),versionId:getVersionId(gd.headers)};gd.on("data",()=>{}),define_process_default.nextTick(()=>{this.callback(null,yd)}),ed()});return}this.id!==null&&this.client.completeMultipartUpload(this.bucketName,this.objectName,this.id,this.etags,(ud,dd)=>{if(ud)return ed(ud);define_process_default.nextTick(()=>{this.callback(null,dd)}),ed()})}}function promisify(Ra){return function(){if(typeof arguments[arguments.length-1]=="function")return Ra.apply(this,arguments);let ud=[...arguments];return new Promise((dd,hd)=>{ud.push((md,gd)=>{if(md)return hd(md);dd(gd)}),Ra.apply(this,ud)})}}class Client extends TypedClient{setAppInfo(ed,ud){if(!isString(ed))throw new TypeError(`Invalid appName: ${ed}`);if(ed.trim()==="")throw new InvalidArgumentError("Input appName cannot be empty.");if(!isString(ud))throw new TypeError(`Invalid appVersion: ${ud}`);if(ud.trim()==="")throw new InvalidArgumentError("Input appVersion cannot be empty.");this.userAgent=`${this.userAgent} ${ed}/${ud}`}calculatePartSize(ed){if(!isNumber(ed))throw new TypeError('size should be of type "number"');if(ed>this.maxObjectSize)throw new TypeError(`size should not be more than ${this.maxObjectSize}`);if(this.overRidePartSize)return this.partSize;for(var ud=this.partSize;;){if(ud*1e4>ed)return ud;ud+=16*1024*1024}}makeBucket(ed,ud,dd={},hd){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(isObject(ud)&&(hd=dd,dd=ud,ud=""),isFunction(ud)&&(hd=ud,ud="",dd={}),isFunction(dd)&&(hd=dd,dd={}),!isString(ud))throw new TypeError('region should be of type "string"');if(!isObject(dd))throw new TypeError('makeOpts should be of type "object"');if(!isFunction(hd))throw new TypeError('callback should be of type "function"');var md="";if(ud&&this.region&&ud!==this.region)throw new InvalidArgumentError(`Configured region ${this.region}, requested ${ud}`);if(ud&&ud!==DEFAULT_REGION){var gd=[];gd.push({_attr:{xmlns:"http://s3.amazonaws.com/doc/2006-03-01/"}}),gd.push({LocationConstraint:ud});var yd={CreateBucketConfiguration:gd};md=Xml(yd)}var vd="PUT",Cd={};dd.ObjectLocking&&(Cd["x-amz-bucket-object-lock-enabled"]=!0),ud||(ud=DEFAULT_REGION);const wd=Nd=>{if(Nd&&(ud===""||ud===DEFAULT_REGION))if(Nd.code==="AuthorizationHeaderMalformed"&&Nd.region!=="")this.makeRequest({method:vd,bucketName:ed,headers:Cd},md,[200],Nd.region,!1,hd);else return hd&&hd(Nd);return hd&&hd(Nd)};this.makeRequest({method:vd,bucketName:ed,headers:Cd},md,[200],ud,!1,wd)}listIncompleteUploads(ed,ud,dd){if(ud===void 0&&(ud=""),dd===void 0&&(dd=!1),!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidPrefix(ud))throw new InvalidPrefixError(`Invalid prefix : ${ud}`);if(!isBoolean(dd))throw new TypeError('recursive should be of type "boolean"');var hd=dd?"":"/",md="",gd="",yd=[],vd=!1,Cd=streamBrowserify.Readable({objectMode:!0});return Cd._read=()=>{if(yd.length)return Cd.push(yd.shift());if(vd)return Cd.push(null);this.listIncompleteUploadsQuery(ed,ud,md,gd,hd).on("error",wd=>Cd.emit("error",wd)).on("data",wd=>{wd.prefixes.forEach(Nd=>yd.push(Nd)),index.eachSeries(wd.uploads,(Nd,Ld)=>{this.listParts(ed,Nd.key,Nd.uploadId).then(Ud=>{Nd.size=Ud.reduce((jd,Gd)=>jd+Gd.size,0),yd.push(Nd),Ld()},Ld)},Nd=>{if(Nd){Cd.emit("error",Nd);return}wd.isTruncated?(md=wd.nextKeyMarker,gd=wd.nextUploadIdMarker):vd=!0,Cd._read()})})},Cd}bucketExists(ed,ud){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isFunction(ud))throw new TypeError('callback should be of type "function"');var dd="HEAD";this.makeRequest({method:dd,bucketName:ed},"",[200],"",!1,hd=>{if(hd)return hd.code=="NoSuchBucket"||hd.code=="NotFound"?ud(null,!1):ud(hd);ud(null,!0)})}removeIncompleteUpload(ed,ud,dd){if(!isValidBucketName(ed))throw new IsValidBucketNameError("Invalid bucket name: "+ed);if(!isValidObjectName(ud))throw new InvalidObjectNameError(`Invalid object name: ${ud}`);if(!isFunction(dd))throw new TypeError('callback should be of type "function"');var hd;index.during(md=>{this.findUploadId(ed,ud,(gd,yd)=>{if(gd)return md(gd);hd=yd,md(null,yd)})},md=>{var gd="DELETE",yd=`uploadId=${hd}`;this.makeRequest({method:gd,bucketName:ed,objectName:ud,query:yd},"",[204],"",!1,vd=>md(vd))},dd)}fGetObject(ed,ud,dd,hd={},md){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidObjectName(ud))throw new InvalidObjectNameError(`Invalid object name: ${ud}`);if(!isString(dd))throw new TypeError('filePath should be of type "string"');if(isFunction(hd)&&(md=hd,hd={}),!isFunction(md))throw new TypeError('callback should be of type "function"');var gd,yd,vd,Cd=wd=>{if(wd)return md(wd);(void 0)(gd,dd,md)};index.waterfall([wd=>this.statObject(ed,ud,hd,wd),(wd,Nd)=>{vd=wd,(void 0)(pathBrowserify.dirname(dd),{recursive:!0},Ld=>Nd(Ld))},wd=>{gd=`${dd}.${vd.etag}.part.minio`,(void 0)(gd,(Nd,Ld)=>{var Ud=0;if(Nd)yd=(void 0)(gd,{flags:"w"});else{if(vd.size===Ld.size)return Cd();Ud=Ld.size,yd=(void 0)(gd,{flags:"a"})}this.getPartialObject(ed,ud,Ud,0,hd,wd)})},(wd,Nd)=>{pipesetup(wd,yd).on("error",Ld=>Nd(Ld)).on("finish",Nd)},wd=>(void 0)(gd,wd),(wd,Nd)=>{if(wd.size===vd.size)return Nd();Nd(new Error("Size mismatch between downloaded file and the object"))}],Cd)}getObject(ed,ud,dd={},hd){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidObjectName(ud))throw new InvalidObjectNameError(`Invalid object name: ${ud}`);if(isFunction(dd)&&(hd=dd,dd={}),!isFunction(hd))throw new TypeError('callback should be of type "function"');this.getPartialObject(ed,ud,0,0,dd,hd)}getPartialObject(ed,ud,dd,hd,md={},gd){if(isFunction(hd)&&(gd=hd,hd=0),!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidObjectName(ud))throw new InvalidObjectNameError(`Invalid object name: ${ud}`);if(!isNumber(dd))throw new TypeError('offset should be of type "number"');if(!isNumber(hd))throw new TypeError('length should be of type "number"');if(isFunction(md)&&(gd=md,md={}),!isFunction(gd))throw new TypeError('callback should be of type "function"');var yd="";(dd||hd)&&(dd?yd=`bytes=${+dd}-`:(yd="bytes=0-",dd=0),hd&&(yd+=`${+hd+dd-1}`));var vd={};yd!==""&&(vd.range=yd);var Cd=[200];yd&&Cd.push(206);var wd="GET",Nd=queryString.stringify(md);this.makeRequest({method:wd,bucketName:ed,objectName:ud,headers:vd,query:Nd},"",Cd,"",!0,gd)}fPutObject(ed,ud,dd,hd,md){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidObjectName(ud))throw new InvalidObjectNameError(`Invalid object name: ${ud}`);if(!isString(dd))throw new TypeError('filePath should be of type "string"');if(isFunction(hd)&&(md=hd,hd={}),!isObject(hd))throw new TypeError('metaData should be of type "object"');hd=insertContentType(hd,dd),(void 0)(dd,(gd,yd)=>gd?md(gd):this.putObject(ed,ud,(void 0)(dd),yd.size,hd,md))}putObject(ed,ud,dd,hd,md,gd){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidObjectName(ud))throw new InvalidObjectNameError(`Invalid object name: ${ud}`);if(isFunction(hd)?(gd=hd,md={}):isFunction(md)&&(gd=md,md={}),isObject(hd)&&(md=hd),md=prependXAMZMeta(md),typeof dd=="string"||dd instanceof Buffer$4)hd=dd.length,dd=readableStream(dd);else if(!isReadableStream(dd))throw new TypeError('third argument should be of type "stream.Readable" or "Buffer" or "string"');if(!isFunction(gd))throw new TypeError('callback should be of type "function"');if(isNumber(hd)&&hd<0)throw new InvalidArgumentError(`size cannot be negative, given size: ${hd}`);isNumber(hd)||(hd=this.maxObjectSize),hd=this.calculatePartSize(hd);let yd=new BlockStream2({size:hd,zeroPadding:!1}),vd=new ObjectUploader(this,ed,ud,hd,md,gd);pipesetup(dd,yd,vd)}copyObjectV1(ed,ud,dd,hd,md){var gd=ed,yd=ud,vd=dd,Cd,wd;if(typeof hd=="function"&&md===void 0?(Cd=null,wd=hd):(Cd=hd,wd=md),!isValidBucketName(gd))throw new InvalidBucketNameError("Invalid bucket name: "+gd);if(!isValidObjectName(yd))throw new InvalidObjectNameError(`Invalid object name: ${yd}`);if(!isString(vd))throw new TypeError('srcObject should be of type "string"');if(vd==="")throw new InvalidPrefixError("Empty source prefix");if(Cd!==null&&!(Cd instanceof CopyConditions))throw new TypeError('conditions should be of type "CopyConditions"');var Nd={};Nd["x-amz-copy-source"]=uriResourceEscape(vd),Cd!==null&&(Cd.modified!==""&&(Nd["x-amz-copy-source-if-modified-since"]=Cd.modified),Cd.unmodified!==""&&(Nd["x-amz-copy-source-if-unmodified-since"]=Cd.unmodified),Cd.matchETag!==""&&(Nd["x-amz-copy-source-if-match"]=Cd.matchETag),Cd.matchEtagExcept!==""&&(Nd["x-amz-copy-source-if-none-match"]=Cd.matchETagExcept));var Ld="PUT";this.makeRequest({method:Ld,bucketName:gd,objectName:yd,headers:Nd},"",[200],"",!0,(Ud,jd)=>{if(Ud)return wd(Ud);var Gd=getCopyObjectTransformer();pipesetup(jd,Gd).on("error",Yd=>wd(Yd)).on("data",Yd=>wd(null,Yd))})}copyObjectV2(ed,ud,dd){if(!(ed instanceof CopySourceOptions))throw new InvalidArgumentError("sourceConfig should of type CopySourceOptions ");if(!(ud instanceof CopyDestinationOptions))throw new InvalidArgumentError("destConfig should of type CopyDestinationOptions ");if(!ud.validate()||!ud.validate())return!1;if(!isFunction(dd))throw new TypeError('callback should be of type "function"');const hd=Object.assign({},ed.getHeaders(),ud.getHeaders()),md=ud.Bucket,gd=ud.Object;this.makeRequest({method:"PUT",bucketName:md,objectName:gd,headers:hd},"",[200],"",!0,(vd,Cd)=>{if(vd)return dd(vd);const wd=getCopyObjectTransformer();pipesetup(Cd,wd).on("error",Nd=>dd(Nd)).on("data",Nd=>{const Ld=Cd.headers,Ud={Bucket:ud.Bucket,Key:ud.Object,LastModified:Nd.LastModified,MetaData:extractMetadata(Ld),VersionId:getVersionId(Ld),SourceVersionId:getSourceVersionId(Ld),Etag:sanitizeETag(Ld.etag),Size:+Ld["content-length"]};return dd(null,Ud)})})}copyObject(...ed){return ed[0]instanceof CopySourceOptions&&ed[1]instanceof CopyDestinationOptions?this.copyObjectV2(...arguments):this.copyObjectV1(...arguments)}listObjectsQuery(ed,ud,dd,hd={}){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isString(ud))throw new TypeError('prefix should be of type "string"');if(!isString(dd))throw new TypeError('marker should be of type "string"');let{Delimiter:md,MaxKeys:gd,IncludeVersion:yd}=hd;if(!isObject(hd))throw new TypeError('listQueryOpts should be of type "object"');if(!isString(md))throw new TypeError('Delimiter should be of type "string"');if(!isNumber(gd))throw new TypeError('MaxKeys should be of type "number"');const vd=[];vd.push(`prefix=${uriEscape(ud)}`),vd.push(`delimiter=${uriEscape(md)}`),vd.push("encoding-type=url"),yd&&vd.push("versions"),dd&&(dd=uriEscape(dd),yd?vd.push(`key-marker=${dd}`):vd.push(`marker=${dd}`)),gd&&(gd>=1e3&&(gd=1e3),vd.push(`max-keys=${gd}`)),vd.sort();var Cd="";vd.length>0&&(Cd=`${vd.join("&")}`);var wd="GET",Nd=getListObjectsTransformer();return this.makeRequest({method:wd,bucketName:ed,query:Cd},"",[200],"",!0,(Ld,Ud)=>{if(Ld)return Nd.emit("error",Ld);pipesetup(Ud,Nd)}),Nd}listObjects(ed,ud,dd,hd={}){if(ud===void 0&&(ud=""),dd===void 0&&(dd=!1),!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidPrefix(ud))throw new InvalidPrefixError(`Invalid prefix : ${ud}`);if(!isString(ud))throw new TypeError('prefix should be of type "string"');if(!isBoolean(dd))throw new TypeError('recursive should be of type "boolean"');if(!isObject(hd))throw new TypeError('listOpts should be of type "object"');var md="";const gd={Delimiter:dd?"":"/",MaxKeys:1e3,IncludeVersion:hd.IncludeVersion};var yd=[],vd=!1,Cd=streamBrowserify.Readable({objectMode:!0});return Cd._read=()=>{if(yd.length){Cd.push(yd.shift());return}if(vd)return Cd.push(null);this.listObjectsQuery(ed,ud,md,gd).on("error",wd=>Cd.emit("error",wd)).on("data",wd=>{wd.isTruncated?md=wd.nextMarker||wd.versionIdMarker:vd=!0,yd=wd.objects,Cd._read()})},Cd}listObjectsV2Query(ed,ud,dd,hd,md,gd){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isString(ud))throw new TypeError('prefix should be of type "string"');if(!isString(dd))throw new TypeError('continuationToken should be of type "string"');if(!isString(hd))throw new TypeError('delimiter should be of type "string"');if(!isNumber(md))throw new TypeError('maxKeys should be of type "number"');if(!isString(gd))throw new TypeError('startAfter should be of type "string"');var yd=[];yd.push("list-type=2"),yd.push("encoding-type=url"),yd.push(`prefix=${uriEscape(ud)}`),yd.push(`delimiter=${uriEscape(hd)}`),dd&&(dd=uriEscape(dd),yd.push(`continuation-token=${dd}`)),gd&&(gd=uriEscape(gd),yd.push(`start-after=${gd}`)),md&&(md>=1e3&&(md=1e3),yd.push(`max-keys=${md}`)),yd.sort();var vd="";yd.length>0&&(vd=`${yd.join("&")}`);var Cd="GET",wd=getListObjectsV2Transformer();return this.makeRequest({method:Cd,bucketName:ed,query:vd},"",[200],"",!0,(Nd,Ld)=>{if(Nd)return wd.emit("error",Nd);pipesetup(Ld,wd)}),wd}listObjectsV2(ed,ud,dd,hd){if(ud===void 0&&(ud=""),dd===void 0&&(dd=!1),hd===void 0&&(hd=""),!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidPrefix(ud))throw new InvalidPrefixError(`Invalid prefix : ${ud}`);if(!isString(ud))throw new TypeError('prefix should be of type "string"');if(!isBoolean(dd))throw new TypeError('recursive should be of type "boolean"');if(!isString(hd))throw new TypeError('startAfter should be of type "string"');var md=dd?"":"/",gd="",yd=[],vd=!1,Cd=streamBrowserify.Readable({objectMode:!0});return Cd._read=()=>{if(yd.length){Cd.push(yd.shift());return}if(vd)return Cd.push(null);this.listObjectsV2Query(ed,ud,gd,md,1e3,hd).on("error",wd=>Cd.emit("error",wd)).on("data",wd=>{wd.isTruncated?gd=wd.nextContinuationToken:vd=!0,yd=wd.objects,Cd._read()})},Cd}removeObjects(ed,ud,dd){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!Array.isArray(ud))throw new InvalidArgumentError("objectsList should be a list");if(!isFunction(dd))throw new TypeError('callback should be of type "function"');const hd=1e3,md="delete",gd="POST";let yd=ud.reduce((wd,Nd)=>(wd.list.push(Nd),wd.list.length===hd&&(wd.listOfList.push(wd.list),wd.list=[]),wd),{listOfList:[],list:[]});yd.list.length>0&&yd.listOfList.push(yd.list);const vd=new Encoder,Cd=[];index.eachSeries(yd.listOfList,(wd,Nd)=>{var Ld=[];wd.forEach(function(qd){isObject(qd)?Ld.push({Key:qd.name,VersionId:qd.versionId}):Ld.push({Key:qd})});let Ud={Delete:{Quiet:!0,Object:Ld}},Gd=new xml2js.Builder({headless:!0}).buildObject(Ud);Gd=Buffer$4.from(vd.encode(Gd));const Yd={};Yd["Content-MD5"]=toMd5(Gd);let zd;this.makeRequest({method:gd,bucketName:ed,query:md,headers:Yd},Gd,[200],"",!0,(qd,Wd)=>{if(qd)return Nd(qd);pipesetup(Wd,removeObjectsTransformer()).on("data",Xd=>{zd=Xd}).on("error",Xd=>Nd(Xd,null)).on("end",()=>(Cd.push(zd),Nd(null,zd)))})},()=>{dd(null,_.flatten(Cd))})}getBucketPolicy(ed,ud){if(!isValidBucketName(ed))throw new InvalidBucketNameError(`Invalid bucket name: ${ed}`);if(!isFunction(ud))throw new TypeError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:ed,query:"policy"},"",[200],"",!0,(md,gd)=>{if(md)return ud(md);let yd=Buffer$4.from("");pipesetup(gd,getConcater()).on("data",vd=>yd=vd).on("error",ud).on("end",()=>{ud(null,yd.toString())})})}setBucketPolicy(ed,ud,dd){if(!isValidBucketName(ed))throw new InvalidBucketNameError(`Invalid bucket name: ${ed}`);if(!isString(ud))throw new InvalidBucketPolicyError(`Invalid bucket policy: ${ud} - must be "string"`);if(!isFunction(dd))throw new TypeError('callback should be of type "function"');let hd="DELETE",md="policy";ud&&(hd="PUT"),this.makeRequest({method:hd,bucketName:ed,query:md},ud,[204],"",!1,dd)}presignedUrl(ed,ud,dd,hd,md,gd,yd){if(this.anonymous)throw new AnonymousRequestError("Presigned "+ed+" url cannot be generated for anonymous requests");if(isFunction(gd)&&(yd=gd,gd=new Date),isFunction(md)&&(yd=md,md={},gd=new Date),isFunction(hd)&&(yd=hd,md={},hd=24*60*60*7,gd=new Date),!isNumber(hd))throw new TypeError('expires should be of type "number"');if(!isObject(md))throw new TypeError('reqParams should be of type "object"');if(!isValidDate(gd))throw new TypeError('requestDate should be of type "Date" and valid');if(!isFunction(yd))throw new TypeError('callback should be of type "function"');var vd=queryString.stringify(md);this.getBucketRegion(ud,(Cd,wd)=>{if(Cd)return yd(Cd);var Nd,Ld=this.getRequestOptions({method:ed,region:wd,bucketName:ud,objectName:dd,query:vd});this.checkAndRefreshCreds();try{Nd=presignSignatureV4(Ld,this.accessKey,this.secretKey,this.sessionToken,wd,gd,hd)}catch(Ud){return yd(Ud)}yd(null,Nd)})}presignedGetObject(ed,ud,dd,hd,md,gd){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidObjectName(ud))throw new InvalidObjectNameError(`Invalid object name: ${ud}`);isFunction(hd)&&(gd=hd,hd={},md=new Date);var yd=["response-content-type","response-content-language","response-expires","response-cache-control","response-content-disposition","response-content-encoding"];return yd.forEach(vd=>{if(hd!==void 0&&hd[vd]!==void 0&&!isString(hd[vd]))throw new TypeError(`response header ${vd} should be of type "string"`)}),this.presignedUrl("GET",ed,ud,dd,hd,md,gd)}presignedPutObject(ed,ud,dd,hd){if(!isValidBucketName(ed))throw new InvalidBucketNameError(`Invalid bucket name: ${ed}`);if(!isValidObjectName(ud))throw new InvalidObjectNameError(`Invalid object name: ${ud}`);return this.presignedUrl("PUT",ed,ud,dd,hd)}newPostPolicy(){return new PostPolicy}presignedPostPolicy(ed,ud){if(this.anonymous)throw new AnonymousRequestError("Presigned POST policy cannot be generated for anonymous requests");if(!isObject(ed))throw new TypeError('postPolicy should be of type "object"');if(!isFunction(ud))throw new TypeError('cb should be of type "function"');this.getBucketRegion(ed.formData.bucket,(dd,hd)=>{if(dd)return ud(dd);var md=new Date,gd=makeDateLong(md);if(this.checkAndRefreshCreds(),!ed.policy.expiration){var yd=new Date;yd.setSeconds(24*60*60*7),ed.setExpires(yd)}ed.policy.conditions.push(["eq","$x-amz-date",gd]),ed.formData["x-amz-date"]=gd,ed.policy.conditions.push(["eq","$x-amz-algorithm","AWS4-HMAC-SHA256"]),ed.formData["x-amz-algorithm"]="AWS4-HMAC-SHA256",ed.policy.conditions.push(["eq","$x-amz-credential",this.accessKey+"/"+getScope(hd,md)]),ed.formData["x-amz-credential"]=this.accessKey+"/"+getScope(hd,md),this.sessionToken&&(ed.policy.conditions.push(["eq","$x-amz-security-token",this.sessionToken]),ed.formData["x-amz-security-token"]=this.sessionToken);var vd=Buffer$4.from(JSON.stringify(ed.policy)).toString("base64");ed.formData.policy=vd;var Cd=postPresignSignatureV4(hd,md,this.secretKey,vd);ed.formData["x-amz-signature"]=Cd;var wd={};wd.region=hd,wd.bucketName=ed.formData.bucket;var Nd=this.getRequestOptions(wd),Ld=this.port==80||this.port===443?"":`:${this.port.toString()}`,Ud=`${Nd.protocol}//${Nd.host}${Ld}${Nd.path}`;ud(null,{postURL:Ud,formData:ed.formData})})}completeMultipartUpload(ed,ud,dd,hd,md){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidObjectName(ud))throw new InvalidObjectNameError(`Invalid object name: ${ud}`);if(!isString(dd))throw new TypeError('uploadId should be of type "string"');if(!isObject(hd))throw new TypeError('etags should be of type "Array"');if(!isFunction(md))throw new TypeError('cb should be of type "function"');if(!dd)throw new InvalidArgumentError("uploadId cannot be empty");var gd="POST",yd=`uploadId=${uriEscape(dd)}`,vd=[];hd.forEach(Nd=>{vd.push({Part:[{PartNumber:Nd.part},{ETag:Nd.etag}]})});var Cd={CompleteMultipartUpload:vd},wd=Xml(Cd);this.makeRequest({method:gd,bucketName:ed,objectName:ud,query:yd},wd,[200],"",!0,(Nd,Ld)=>{if(Nd)return md(Nd);var Ud=getCompleteMultipartTransformer();pipesetup(Ld,Ud).on("error",jd=>md(jd)).on("data",jd=>{if(jd.errCode)md(new S3Error(jd.errMessage));else{const Gd={etag:jd.etag,versionId:getVersionId(Ld.headers)};md(null,Gd)}})})}listIncompleteUploadsQuery(ed,ud,dd,hd,md){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isString(ud))throw new TypeError('prefix should be of type "string"');if(!isString(dd))throw new TypeError('keyMarker should be of type "string"');if(!isString(hd))throw new TypeError('uploadIdMarker should be of type "string"');if(!isString(md))throw new TypeError('delimiter should be of type "string"');var gd=[];gd.push(`prefix=${uriEscape(ud)}`),gd.push(`delimiter=${uriEscape(md)}`),dd&&(dd=uriEscape(dd),gd.push(`key-marker=${dd}`)),hd&&gd.push(`upload-id-marker=${hd}`);var yd=1e3;gd.push(`max-uploads=${yd}`),gd.sort(),gd.unshift("uploads");var vd="";gd.length>0&&(vd=`${gd.join("&")}`);var Cd="GET",wd=getListMultipartTransformer();return this.makeRequest({method:Cd,bucketName:ed,query:vd},"",[200],"",!0,(Nd,Ld)=>{if(Nd)return wd.emit("error",Nd);pipesetup(Ld,wd)}),wd}findUploadId(ed,ud,dd){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidObjectName(ud))throw new InvalidObjectNameError(`Invalid object name: ${ud}`);if(!isFunction(dd))throw new TypeError('cb should be of type "function"');var hd,md=(gd,yd)=>{this.listIncompleteUploadsQuery(ed,ud,gd,yd,"").on("error",vd=>dd(vd)).on("data",vd=>{if(vd.uploads.forEach(Cd=>{if(Cd.key===ud&&(!hd||Cd.initiated.getTime()>hd.initiated.getTime())){hd=Cd;return}}),vd.isTruncated){md(vd.nextKeyMarker,vd.nextUploadIdMarker);return}if(hd)return dd(null,hd.uploadId);dd(null,void 0)})};md("","")}setBucketNotification(ed,ud,dd){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isObject(ud))throw new TypeError('notification config should be of type "Object"');if(!isFunction(dd))throw new TypeError('callback should be of type "function"');var hd="PUT",md="notification",gd=new xml2js.Builder({rootName:"NotificationConfiguration",renderOpts:{pretty:!1},headless:!0}),yd=gd.buildObject(ud);this.makeRequest({method:hd,bucketName:ed,query:md},yd,[200],"",!1,dd)}removeAllBucketNotification(ed,ud){this.setBucketNotification(ed,new NotificationConfig,ud)}getBucketNotification(ed,ud){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isFunction(ud))throw new TypeError('callback should be of type "function"');var dd="GET",hd="notification";this.makeRequest({method:dd,bucketName:ed,query:hd},"",[200],"",!0,(md,gd)=>{if(md)return ud(md);var yd=getBucketNotificationTransformer(),vd;pipesetup(gd,yd).on("data",Cd=>vd=Cd).on("error",Cd=>ud(Cd)).on("end",()=>ud(null,vd))})}listenBucketNotification(ed,ud,dd,hd){if(!isValidBucketName(ed))throw new InvalidBucketNameError(`Invalid bucket name: ${ed}`);if(!isString(ud))throw new TypeError("prefix must be of type string");if(!isString(dd))throw new TypeError("suffix must be of type string");if(!Array.isArray(hd))throw new TypeError("events must be of type Array");let md=new NotificationPoller(this,ed,ud,dd,hd);return md.start(),md}getBucketVersioning(ed,ud){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isFunction(ud))throw new InvalidArgumentError('callback should be of type "function"');var dd="GET",hd="versioning";this.makeRequest({method:dd,bucketName:ed,query:hd},"",[200],"",!0,(md,gd)=>{if(md)return ud(md);let yd=Buffer$4.from("");pipesetup(gd,bucketVersioningTransformer()).on("data",vd=>{yd=vd}).on("error",ud).on("end",()=>{ud(null,yd)})})}setBucketVersioning(ed,ud,dd){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!Object.keys(ud).length)throw new InvalidArgumentError('versionConfig should be of type "object"');if(!isFunction(dd))throw new TypeError('callback should be of type "function"');var hd="PUT",md="versioning",gd=new xml2js.Builder({rootName:"VersioningConfiguration",renderOpts:{pretty:!1},headless:!0}),yd=gd.buildObject(ud);this.makeRequest({method:hd,bucketName:ed,query:md},yd,[200],"",!1,dd)}setTagging(ed){const{bucketName:ud,objectName:dd,tags:hd,putOpts:md={},cb:gd}=ed,yd="PUT";let vd="tagging";md&&md.versionId&&(vd=`${vd}&versionId=${md.versionId}`);const Cd=[];for(const[Yd,zd]of Object.entries(hd))Cd.push({Key:Yd,Value:zd});const wd={Tagging:{TagSet:{Tag:Cd}}},Nd=new Encoder,Ld={};let jd=new xml2js.Builder({headless:!0,renderOpts:{pretty:!1}}).buildObject(wd);jd=Buffer$4.from(Nd.encode(jd)),Ld["Content-MD5"]=toMd5(jd);const Gd={method:yd,bucketName:ud,query:vd,headers:Ld};dd&&(Gd.objectName=dd),Ld["Content-MD5"]=toMd5(jd),this.makeRequest(Gd,jd,[200],"",!1,gd)}setBucketTagging(ed,ud,dd){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isObject(ud))throw new InvalidArgumentError('tags should be of type "object"');if(Object.keys(ud).length>10)throw new InvalidArgumentError('maximum tags allowed is 10"');if(!isFunction(dd))throw new InvalidArgumentError('callback should be of type "function"');return this.setTagging({bucketName:ed,tags:ud,cb:dd})}setObjectTagging(ed,ud,dd,hd={},md){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidObjectName(ud))throw new InvalidBucketNameError("Invalid object name: "+ud);if(isFunction(hd)&&(md=hd,hd={}),!isObject(dd))throw new InvalidArgumentError('tags should be of type "object"');if(Object.keys(dd).length>10)throw new InvalidArgumentError('Maximum tags allowed is 10"');if(!isFunction(md))throw new TypeError('callback should be of type "function"');return this.setTagging({bucketName:ed,objectName:ud,tags:dd,putOpts:hd,cb:md})}removeTagging({bucketName:ed,objectName:ud,removeOpts:dd,cb:hd}){const md="DELETE";let gd="tagging";dd&&Object.keys(dd).length&&dd.versionId&&(gd=`${gd}&versionId=${dd.versionId}`);const yd={method:md,bucketName:ed,objectName:ud,query:gd};ud&&(yd.objectName=ud),this.makeRequest(yd,"",[200,204],"",!0,hd)}removeBucketTagging(ed,ud){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isFunction(ud))throw new TypeError('callback should be of type "function"');return this.removeTagging({bucketName:ed,cb:ud})}removeObjectTagging(ed,ud,dd,hd){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidObjectName(ud))throw new InvalidBucketNameError("Invalid object name: "+ud);if(isFunction(dd)&&(hd=dd,dd={}),dd&&Object.keys(dd).length&&!isObject(dd))throw new InvalidArgumentError('removeOpts should be of type "object"');if(!isFunction(hd))throw new TypeError('callback should be of type "function"');return this.removeTagging({bucketName:ed,objectName:ud,removeOpts:dd,cb:hd})}getBucketTagging(ed,ud){if(!isValidBucketName(ed))throw new InvalidBucketNameError(`Invalid bucket name: ${ed}`);const md={method:"GET",bucketName:ed,query:"tagging"};this.makeRequest(md,"",[200],"",!0,(gd,yd)=>{var vd=getTagsTransformer();if(gd)return ud(gd);let Cd;pipesetup(yd,vd).on("data",wd=>Cd=wd).on("error",wd=>ud(wd)).on("end",()=>ud(null,Cd))})}getObjectTagging(ed,ud,dd={},hd=()=>!1){const md="GET";let gd="tagging";if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidObjectName(ud))throw new InvalidBucketNameError("Invalid object name: "+ud);if(isFunction(dd)&&(hd=dd,dd={}),!isObject(dd))throw new InvalidArgumentError('getOpts should be of type "object"');if(!isFunction(hd))throw new TypeError('callback should be of type "function"');dd&&dd.versionId&&(gd=`${gd}&versionId=${dd.versionId}`);const yd={method:md,bucketName:ed,query:gd};ud&&(yd.objectName=ud),this.makeRequest(yd,"",[200],"",!0,(vd,Cd)=>{const wd=getTagsTransformer();if(vd)return hd(vd);let Nd;pipesetup(Cd,wd).on("data",Ld=>Nd=Ld).on("error",Ld=>hd(Ld)).on("end",()=>hd(null,Nd))})}applyBucketLifecycle(ed,ud,dd){const hd="PUT",md="lifecycle",gd=new Encoder,yd={};let Cd=new xml2js.Builder({rootName:"LifecycleConfiguration",headless:!0,renderOpts:{pretty:!1}}).buildObject(ud);Cd=Buffer$4.from(gd.encode(Cd));const wd={method:hd,bucketName:ed,query:md,headers:yd};yd["Content-MD5"]=toMd5(Cd),this.makeRequest(wd,Cd,[200],"",!1,dd)}removeBucketLifecycle(ed,ud){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);this.makeRequest({method:"DELETE",bucketName:ed,query:"lifecycle"},"",[204],"",!1,ud)}setBucketLifecycle(ed,ud=null,dd){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);_.isEmpty(ud)?this.removeBucketLifecycle(ed,dd):this.applyBucketLifecycle(ed,ud,dd)}getBucketLifecycle(ed,ud){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);const md={method:"GET",bucketName:ed,query:"lifecycle"};this.makeRequest(md,"",[200],"",!0,(gd,yd)=>{const vd=lifecycleTransformer();if(gd)return ud(gd);let Cd;pipesetup(yd,vd).on("data",wd=>Cd=wd).on("error",wd=>ud(wd)).on("end",()=>ud(null,Cd))})}setObjectLockConfig(ed,ud={},dd){const hd=[RETENTION_MODES.COMPLIANCE,RETENTION_MODES.GOVERNANCE],md=[RETENTION_VALIDITY_UNITS.DAYS,RETENTION_VALIDITY_UNITS.YEARS];if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(ud.mode&&!hd.includes(ud.mode))throw new TypeError(`lockConfigOpts.mode should be one of ${hd}`);if(ud.unit&&!md.includes(ud.unit))throw new TypeError(`lockConfigOpts.unit should be one of ${md}`);if(ud.validity&&!isNumber(ud.validity))throw new TypeError("lockConfigOpts.validity should be a number");const gd="PUT",yd="object-lock";let vd={ObjectLockEnabled:"Enabled"};const Cd=Object.keys(ud);if(Cd.length>0){if(_.difference(Cd,["unit","mode","validity"]).length!==0)throw new TypeError("lockConfigOpts.mode,lockConfigOpts.unit,lockConfigOpts.validity all the properties should be specified.");vd.Rule={DefaultRetention:{}},ud.mode&&(vd.Rule.DefaultRetention.Mode=ud.mode),ud.unit===RETENTION_VALIDITY_UNITS.DAYS?vd.Rule.DefaultRetention.Days=ud.validity:ud.unit===RETENTION_VALIDITY_UNITS.YEARS&&(vd.Rule.DefaultRetention.Years=ud.validity)}const Nd=new xml2js.Builder({rootName:"ObjectLockConfiguration",renderOpts:{pretty:!1},headless:!0}).buildObject(vd),Ld={};Ld["Content-MD5"]=toMd5(Nd),this.makeRequest({method:gd,bucketName:ed,query:yd,headers:Ld},Nd,[200],"",!1,dd)}getObjectLockConfig(ed,ud){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isFunction(ud))throw new InvalidArgumentError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:ed,query:"object-lock"},"",[200],"",!0,(md,gd)=>{if(md)return ud(md);let yd=Buffer$4.from("");pipesetup(gd,objectLockTransformer()).on("data",vd=>{yd=vd}).on("error",ud).on("end",()=>{ud(null,yd)})})}putObjectRetention(ed,ud,dd={},hd){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidObjectName(ud))throw new InvalidObjectNameError(`Invalid object name: ${ud}`);if(isObject(dd)){if(dd.governanceBypass&&!isBoolean(dd.governanceBypass))throw new InvalidArgumentError("Invalid value for governanceBypass",dd.governanceBypass);if(dd.mode&&![RETENTION_MODES.COMPLIANCE,RETENTION_MODES.GOVERNANCE].includes(dd.mode))throw new InvalidArgumentError("Invalid object retention mode ",dd.mode);if(dd.retainUntilDate&&!isString(dd.retainUntilDate))throw new InvalidArgumentError("Invalid value for retainUntilDate",dd.retainUntilDate);if(dd.versionId&&!isString(dd.versionId))throw new InvalidArgumentError("Invalid value for versionId",dd.versionId)}else throw new InvalidArgumentError('retentionOpts should be of type "object"');if(!isFunction(hd))throw new TypeError('callback should be of type "function"');const md="PUT";let gd="retention";const yd={};dd.governanceBypass&&(yd["X-Amz-Bypass-Governance-Retention"]=!0);const vd=new xml2js.Builder({rootName:"Retention",renderOpts:{pretty:!1},headless:!0}),Cd={};dd.mode&&(Cd.Mode=dd.mode),dd.retainUntilDate&&(Cd.RetainUntilDate=dd.retainUntilDate),dd.versionId&&(gd+=`&versionId=${dd.versionId}`);let wd=vd.buildObject(Cd);yd["Content-MD5"]=toMd5(wd),this.makeRequest({method:md,bucketName:ed,objectName:ud,query:gd,headers:yd},wd,[200,204],"",!1,hd)}getObjectRetention(ed,ud,dd,hd){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidObjectName(ud))throw new InvalidObjectNameError(`Invalid object name: ${ud}`);if(isObject(dd)){if(dd.versionId&&!isString(dd.versionId))throw new InvalidArgumentError('VersionID should be of type "string"')}else throw new InvalidArgumentError('callback should be of type "object"');if(hd&&!isFunction(hd))throw new InvalidArgumentError('callback should be of type "function"');const md="GET";let gd="retention";dd.versionId&&(gd+=`&versionId=${dd.versionId}`),this.makeRequest({method:md,bucketName:ed,objectName:ud,query:gd},"",[200],"",!0,(yd,vd)=>{if(yd)return hd(yd);let Cd=Buffer$4.from("");pipesetup(vd,objectRetentionTransformer()).on("data",wd=>{Cd=wd}).on("error",hd).on("end",()=>{hd(null,Cd)})})}setBucketEncryption(ed,ud,dd){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(isFunction(ud)&&(dd=ud,ud=null),!_.isEmpty(ud)&&ud.Rule.length>1)throw new InvalidArgumentError("Invalid Rule length. Only one rule is allowed.: "+ud.Rule);if(dd&&!isFunction(dd))throw new TypeError('callback should be of type "function"');let hd=ud;_.isEmpty(ud)&&(hd={Rule:[{ApplyServerSideEncryptionByDefault:{SSEAlgorithm:"AES256"}}]});let md="PUT",gd="encryption",vd=new xml2js.Builder({rootName:"ServerSideEncryptionConfiguration",renderOpts:{pretty:!1},headless:!0}).buildObject(hd);const Cd={};Cd["Content-MD5"]=toMd5(vd),this.makeRequest({method:md,bucketName:ed,query:gd,headers:Cd},vd,[200],"",!1,dd)}getBucketEncryption(ed,ud){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isFunction(ud))throw new InvalidArgumentError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:ed,query:"encryption"},"",[200],"",!0,(md,gd)=>{if(md)return ud(md);let yd=Buffer$4.from("");pipesetup(gd,bucketEncryptionTransformer()).on("data",vd=>{yd=vd}).on("error",ud).on("end",()=>{ud(null,yd)})})}removeBucketEncryption(ed,ud){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isFunction(ud))throw new InvalidArgumentError('callback should be of type "function"');this.makeRequest({method:"DELETE",bucketName:ed,query:"encryption"},"",[204],"",!1,ud)}getObjectLegalHold(ed,ud,dd={},hd){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidObjectName(ud))throw new InvalidObjectNameError(`Invalid object name: ${ud}`);if(isFunction(dd)&&(hd=dd,dd={}),isObject(dd)){if(Object.keys(dd).length>0&&dd.versionId&&!isString(dd.versionId))throw new TypeError("versionId should be of type string.:",dd.versionId)}else throw new TypeError('getOpts should be of type "Object"');if(!isFunction(hd))throw new InvalidArgumentError('callback should be of type "function"');const md="GET";let gd="legal-hold";dd.versionId&&(gd+=`&versionId=${dd.versionId}`),this.makeRequest({method:md,bucketName:ed,objectName:ud,query:gd},"",[200],"",!0,(yd,vd)=>{if(yd)return hd(yd);let Cd=Buffer$4.from("");pipesetup(vd,objectLegalHoldTransformer()).on("data",wd=>{Cd=wd}).on("error",hd).on("end",()=>{hd(null,Cd)})})}setObjectLegalHold(ed,ud,dd={},hd){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidObjectName(ud))throw new InvalidObjectNameError(`Invalid object name: ${ud}`);const md={status:LEGAL_HOLD_STATUS.ENABLED};if(isFunction(dd)&&(hd=dd,dd=md),isObject(dd)){if(![LEGAL_HOLD_STATUS.ENABLED,LEGAL_HOLD_STATUS.DISABLED].includes(dd.status))throw new TypeError("Invalid status: "+dd.status);if(dd.versionId&&!dd.versionId.length)throw new TypeError("versionId should be of type string.:"+dd.versionId)}else throw new TypeError('setOpts should be of type "Object"');if(!isFunction(hd))throw new InvalidArgumentError('callback should be of type "function"');_.isEmpty(dd)&&(dd={defaultOpts:md});const gd="PUT";let yd="legal-hold";dd.versionId&&(yd+=`&versionId=${dd.versionId}`);let vd={Status:dd.status};const wd=new xml2js.Builder({rootName:"LegalHold",renderOpts:{pretty:!1},headless:!0}).buildObject(vd),Nd={};Nd["Content-MD5"]=toMd5(wd),this.makeRequest({method:gd,bucketName:ed,objectName:ud,query:yd,headers:Nd},wd,[200],"",!1,hd)}uploadPartCopy(ed,ud){const{bucketName:dd,objectName:hd,uploadID:md,partNumber:gd,headers:yd}=ed,vd="PUT";let Cd=`uploadId=${md}&partNumber=${gd}`;const wd={method:vd,bucketName:dd,objectName:hd,query:Cd,headers:yd};return this.makeRequest(wd,"",[200],"",!0,(Nd,Ld)=>{let Ud=Buffer$4.from("");if(Nd)return ud(Nd);pipesetup(Ld,uploadPartTransformer()).on("data",jd=>{Ud=jd}).on("error",ud).on("end",()=>{let jd={etag:sanitizeETag(Ud.ETag),key:hd,part:gd};ud(null,jd)})})}composeObject(ed={},ud=[],dd){const hd=this,md=ud.length;if(!Array.isArray(ud))throw new InvalidArgumentError("sourceConfig should an array of CopySourceOptions ");if(!(ed instanceof CopyDestinationOptions))throw new InvalidArgumentError("destConfig should of type CopyDestinationOptions ");if(md<1||md>PART_CONSTRAINTS.MAX_PARTS_COUNT)throw new InvalidArgumentError(`"There must be as least one and up to ${PART_CONSTRAINTS.MAX_PARTS_COUNT} source objects.`);if(!isFunction(dd))throw new TypeError('callback should be of type "function"');for(let Nd=0;Nd{let Ld={};return _.isEmpty(Nd.VersionID)||(Ld={versionId:Nd.VersionID}),Ld},yd=[];let vd=0,Cd=0;const wd=ud.map(Nd=>hd.statObject(Nd.Bucket,Nd.Object,gd(Nd)));return Promise.all(wd).then(Nd=>{const Ld=Nd.map((zd,qd)=>{const Wd=ud[qd];let Xd=zd.size;if(Wd.MatchRange){const Jd=Wd.Start,Zd=Wd.End;if(Zd>=Xd||Jd<0)throw new InvalidArgumentError(`CopySrcOptions ${qd} has invalid segment-to-copy [${Jd}, ${Zd}] (size is ${Xd})`);Xd=Zd-Jd+1}if(XdPART_CONSTRAINTS.MAX_MULTIPART_PUT_OBJECT_SIZE)throw new InvalidArgumentError(`Cannot compose an object of size ${vd} (> 5TiB)`);if(yd[qd]=Xd,Cd+=partsRequired(Xd),Cd>PART_CONSTRAINTS.MAX_PARTS_COUNT)throw new InvalidArgumentError(`Your proposed compose object requires more than ${PART_CONSTRAINTS.MAX_PARTS_COUNT} parts`);return zd});if(Cd===1&&vd<=PART_CONSTRAINTS.MAX_PART_SIZE||vd===0)return this.copyObject(ud[0],ed,dd);for(let zd=0;zdcalculateEvenSplits(yd[qd],ud[qd]));function jd(zd){const qd=[];return Ud.forEach((Wd,Xd)=>{const{startIndex:Jd,endIndex:Zd,objInfo:mf}=Wd;let xf=Xd+1;const _f=Array.from(Jd),vf=ud[Xd].getHeaders();_f.forEach((gf,Af)=>{let Df=Zd[Af];const Of=`${mf.Bucket}/${mf.Object}`;vf["x-amz-copy-source"]=`${Of}`,vf["x-amz-copy-source-range"]=`bytes=${gf}-${Df}`;const Cf={bucketName:ed.Bucket,objectName:ed.Object,uploadID:zd,partNumber:xf,headers:vf,sourceObj:Of};qd.push(Cf)})}),qd}const Gd=zd=>{const qd=jd(zd);index.map(qd,hd.uploadPartCopy.bind(hd),(Wd,Xd)=>{if(Wd){this.abortMultipartUpload(ed.Bucket,ed.Object,zd).then(()=>dd(),Zd=>dd(Zd));return}const Jd=Xd.map(Zd=>({etag:Zd.etag,part:Zd.part}));return hd.completeMultipartUpload(ed.Bucket,ed.Object,zd,Jd,dd)})},Yd=ed.getHeaders();hd.initiateNewMultipartUpload(ed.Bucket,ed.Object,Yd).then(zd=>{Gd(zd)},zd=>{dd(zd,null)})}).catch(Nd=>{dd(Nd,null)})}selectObjectContent(ed,ud,dd={},hd){if(!isValidBucketName(ed))throw new InvalidBucketNameError(`Invalid bucket name: ${ed}`);if(!isValidObjectName(ud))throw new InvalidObjectNameError(`Invalid object name: ${ud}`);if(_.isEmpty(dd))throw new TypeError("valid select configuration is required");if(!isString(dd.expression))throw new TypeError('sqlExpression should be of type "string"');if(_.isEmpty(dd.inputSerialization))throw new TypeError("inputSerialization is required");if(!isObject(dd.inputSerialization))throw new TypeError('inputSerialization should be of type "object"');if(_.isEmpty(dd.outputSerialization))throw new TypeError("outputSerialization is required");if(!isObject(dd.outputSerialization))throw new TypeError('outputSerialization should be of type "object"');if(!isFunction(hd))throw new TypeError('callback should be of type "function"');const md="POST";let gd="select";gd+="&select-type=2";const yd=[{Expression:dd.expression},{ExpressionType:dd.expressionType||"SQL"},{InputSerialization:[dd.inputSerialization]},{OutputSerialization:[dd.outputSerialization]}];dd.requestProgress&&yd.push({RequestProgress:dd.requestProgress}),dd.scanRange&&yd.push({ScanRange:dd.scanRange});const Cd=new xml2js.Builder({rootName:"SelectObjectContentRequest",renderOpts:{pretty:!1},headless:!0}).buildObject(yd);this.makeRequest({method:md,bucketName:ed,objectName:ud,query:gd},Cd,[200],"",!0,(wd,Nd)=>{if(wd)return hd(wd);let Ld;pipesetup(Nd,selectObjectContentTransformer()).on("data",Ud=>{Ld=parseSelectObjectContentResponse(Ud)}).on("error",hd).on("end",()=>{hd(null,Ld)})})}}Client.prototype.makeBucket=promisify(Client.prototype.makeBucket);Client.prototype.bucketExists=promisify(Client.prototype.bucketExists);Client.prototype.getObject=promisify(Client.prototype.getObject);Client.prototype.getPartialObject=promisify(Client.prototype.getPartialObject);Client.prototype.fGetObject=promisify(Client.prototype.fGetObject);Client.prototype.putObject=promisify(Client.prototype.putObject);Client.prototype.fPutObject=promisify(Client.prototype.fPutObject);Client.prototype.copyObject=promisify(Client.prototype.copyObject);Client.prototype.removeObjects=promisify(Client.prototype.removeObjects);Client.prototype.presignedUrl=promisify(Client.prototype.presignedUrl);Client.prototype.presignedGetObject=promisify(Client.prototype.presignedGetObject);Client.prototype.presignedPutObject=promisify(Client.prototype.presignedPutObject);Client.prototype.presignedPostPolicy=promisify(Client.prototype.presignedPostPolicy);Client.prototype.getBucketNotification=promisify(Client.prototype.getBucketNotification);Client.prototype.setBucketNotification=promisify(Client.prototype.setBucketNotification);Client.prototype.removeAllBucketNotification=promisify(Client.prototype.removeAllBucketNotification);Client.prototype.getBucketPolicy=promisify(Client.prototype.getBucketPolicy);Client.prototype.setBucketPolicy=promisify(Client.prototype.setBucketPolicy);Client.prototype.removeIncompleteUpload=promisify(Client.prototype.removeIncompleteUpload);Client.prototype.getBucketVersioning=promisify(Client.prototype.getBucketVersioning);Client.prototype.setBucketVersioning=promisify(Client.prototype.setBucketVersioning);Client.prototype.setBucketTagging=promisify(Client.prototype.setBucketTagging);Client.prototype.removeBucketTagging=promisify(Client.prototype.removeBucketTagging);Client.prototype.getBucketTagging=promisify(Client.prototype.getBucketTagging);Client.prototype.setObjectTagging=promisify(Client.prototype.setObjectTagging);Client.prototype.removeObjectTagging=promisify(Client.prototype.removeObjectTagging);Client.prototype.getObjectTagging=promisify(Client.prototype.getObjectTagging);Client.prototype.setBucketLifecycle=promisify(Client.prototype.setBucketLifecycle);Client.prototype.getBucketLifecycle=promisify(Client.prototype.getBucketLifecycle);Client.prototype.removeBucketLifecycle=promisify(Client.prototype.removeBucketLifecycle);Client.prototype.setObjectLockConfig=promisify(Client.prototype.setObjectLockConfig);Client.prototype.getObjectLockConfig=promisify(Client.prototype.getObjectLockConfig);Client.prototype.putObjectRetention=promisify(Client.prototype.putObjectRetention);Client.prototype.getObjectRetention=promisify(Client.prototype.getObjectRetention);Client.prototype.setBucketEncryption=promisify(Client.prototype.setBucketEncryption);Client.prototype.getBucketEncryption=promisify(Client.prototype.getBucketEncryption);Client.prototype.removeBucketEncryption=promisify(Client.prototype.removeBucketEncryption);Client.prototype.setObjectLegalHold=promisify(Client.prototype.setObjectLegalHold);Client.prototype.getObjectLegalHold=promisify(Client.prototype.getObjectLegalHold);Client.prototype.composeObject=promisify(Client.prototype.composeObject);Client.prototype.selectObjectContent=promisify(Client.prototype.selectObjectContent);Client.prototype.removeObject=callbackify(Client.prototype.removeObject);Client.prototype.statObject=callbackify(Client.prototype.statObject);Client.prototype.removeBucket=callbackify(Client.prototype.removeBucket);Client.prototype.listBuckets=callbackify(Client.prototype.listBuckets);Client.prototype.removeBucketReplication=callbackify(Client.prototype.removeBucketReplication);Client.prototype.setBucketReplication=callbackify(Client.prototype.setBucketReplication);Client.prototype.getBucketReplication=callbackify(Client.prototype.getBucketReplication);var __extends$3=function(){var Ra=function(ed,ud){return Ra=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(dd,hd){dd.__proto__=hd}||function(dd,hd){for(var md in hd)hd.hasOwnProperty(md)&&(dd[md]=hd[md])},Ra(ed,ud)};return function(ed,ud){Ra(ed,ud);function dd(){this.constructor=ed}ed.prototype=ud===null?Object.create(ud):(dd.prototype=ud.prototype,new dd)}}(),QiniuErrorName;(function(Ra){Ra.InvalidFile="InvalidFile",Ra.InvalidToken="InvalidToken",Ra.InvalidMetadata="InvalidMetadata",Ra.InvalidChunkSize="InvalidChunkSize",Ra.InvalidCustomVars="InvalidCustomVars",Ra.NotAvailableUploadHost="NotAvailableUploadHost",Ra.ReadCacheFailed="ReadCacheFailed",Ra.InvalidCacheData="InvalidCacheData",Ra.WriteCacheFailed="WriteCacheFailed",Ra.RemoveCacheFailed="RemoveCacheFailed",Ra.GetCanvasContextFailed="GetCanvasContextFailed",Ra.UnsupportedFileType="UnsupportedFileType",Ra.FileReaderReadFailed="FileReaderReadFailed",Ra.NotAvailableXMLHttpRequest="NotAvailableXMLHttpRequest",Ra.InvalidProgressEventTarget="InvalidProgressEventTarget",Ra.RequestError="RequestError"})(QiniuErrorName||(QiniuErrorName={}));var QiniuError=function(){function Ra(ed,ud){this.name=ed,this.message=ud,this.stack=new Error().stack}return Ra}(),QiniuRequestError=function(Ra){__extends$3(ed,Ra);function ed(ud,dd,hd,md){var gd=Ra.call(this,QiniuErrorName.RequestError,hd)||this;return gd.code=ud,gd.reqId=dd,gd.isRequestError=!0,gd.data=md,gd}return ed}(QiniuError),QiniuNetworkError=function(Ra){__extends$3(ed,Ra);function ed(ud,dd){return dd===void 0&&(dd=""),Ra.call(this,0,dd,ud)||this}return ed}(QiniuRequestError),Pool=function(){function Ra(ed,ud){this.runTask=ed,this.limit=ud,this.aborted=!1,this.queue=[],this.processing=[]}return Ra.prototype.enqueue=function(ed){var ud=this;return new Promise(function(dd,hd){ud.queue.push({task:ed,resolve:dd,reject:hd}),ud.check()})},Ra.prototype.run=function(ed){var ud=this;this.queue=this.queue.filter(function(dd){return dd!==ed}),this.processing.push(ed),this.runTask(ed.task).then(function(){ud.processing=ud.processing.filter(function(dd){return dd!==ed}),ed.resolve(),ud.check()},function(dd){return ed.reject(dd)})},Ra.prototype.check=function(){var ed=this;if(!this.aborted){var ud=this.processing.length,dd=this.limit-ud;this.queue.slice(0,dd).forEach(function(hd){ed.run(hd)})}},Ra.prototype.abort=function(){this.queue=[],this.aborted=!0},Ra}(),__extends$2=function(){var Ra=function(ed,ud){return Ra=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(dd,hd){dd.__proto__=hd}||function(dd,hd){for(var md in hd)hd.hasOwnProperty(md)&&(dd[md]=hd[md])},Ra(ed,ud)};return function(ed,ud){Ra(ed,ud);function dd(){this.constructor=ed}ed.prototype=ud===null?Object.create(ud):(dd.prototype=ud.prototype,new dd)}}(),__assign$6=function(){return __assign$6=Object.assign||function(Ra){for(var ed,ud=1,dd=arguments.length;ud"u")return"";var ed=Ra+"",ud="",dd,hd,md=0;dd=hd=0,md=ed.length;for(var gd=0;gd127&&yd<2048)vd=String.fromCharCode(yd>>6|192,yd&63|128);else if((yd&63488^55296)>0)vd=String.fromCharCode(yd>>12|224,yd>>6&63|128,yd&63|128);else{if((yd&64512^55296)>0)throw new RangeError("Unmatched trail surrogate at "+gd);var Cd=ed.charCodeAt(++gd);if((Cd&64512^56320)>0)throw new RangeError("Unmatched lead surrogate at "+(gd-1));yd=((yd&1023)<<10)+(Cd&1023)+65536,vd=String.fromCharCode(yd>>18|240,yd>>12&63|128,yd>>6&63|128,yd&63|128)}vd!==null&&(hd>dd&&(ud+=ed.slice(dd,hd)),ud+=vd,dd=hd=gd+1)}return hd>dd&&(ud+=ed.slice(dd,md)),ud}function utf8Decode(Ra){var ed=[],ud=0,dd=0,hd=0;for(Ra+="";ud>10&1023)),ed.push(String.fromCharCode(56320|dd&1023))):ed.push(String.fromCharCode(dd)),ud+=hd}return ed.join("")}function base64Encode(Ra){var ed="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",ud,dd,hd,md,gd,yd,vd,Cd,wd=0,Nd=0,Ld="",Ud=[];if(!Ra)return Ra;Ra=utf8Encode(Ra+"");do ud=Ra.charCodeAt(wd++),dd=Ra.charCodeAt(wd++),hd=Ra.charCodeAt(wd++),Cd=ud<<16|dd<<8|hd,md=Cd>>18&63,gd=Cd>>12&63,yd=Cd>>6&63,vd=Cd&63,Ud[Nd++]=ed.charAt(md)+ed.charAt(gd)+ed.charAt(yd)+ed.charAt(vd);while(wd>16&255,dd=Cd>>8&255,hd=Cd&255,yd===64?Ud[Nd++]=String.fromCharCode(ud):vd===64?Ud[Nd++]=String.fromCharCode(ud,dd):Ud[Nd++]=String.fromCharCode(ud,dd,hd);while(wd>>25)+Xd|0,Zd+=(Wd&Xd|~Wd&Jd)+qd[1]-389564586|0,Zd=(Zd<<12|Zd>>>20)+Wd|0,Jd+=(Zd&Wd|~Zd&Xd)+qd[2]+606105819|0,Jd=(Jd<<17|Jd>>>15)+Zd|0,Xd+=(Jd&Zd|~Jd&Wd)+qd[3]-1044525330|0,Xd=(Xd<<22|Xd>>>10)+Jd|0,Wd+=(Xd&Jd|~Xd&Zd)+qd[4]-176418897|0,Wd=(Wd<<7|Wd>>>25)+Xd|0,Zd+=(Wd&Xd|~Wd&Jd)+qd[5]+1200080426|0,Zd=(Zd<<12|Zd>>>20)+Wd|0,Jd+=(Zd&Wd|~Zd&Xd)+qd[6]-1473231341|0,Jd=(Jd<<17|Jd>>>15)+Zd|0,Xd+=(Jd&Zd|~Jd&Wd)+qd[7]-45705983|0,Xd=(Xd<<22|Xd>>>10)+Jd|0,Wd+=(Xd&Jd|~Xd&Zd)+qd[8]+1770035416|0,Wd=(Wd<<7|Wd>>>25)+Xd|0,Zd+=(Wd&Xd|~Wd&Jd)+qd[9]-1958414417|0,Zd=(Zd<<12|Zd>>>20)+Wd|0,Jd+=(Zd&Wd|~Zd&Xd)+qd[10]-42063|0,Jd=(Jd<<17|Jd>>>15)+Zd|0,Xd+=(Jd&Zd|~Jd&Wd)+qd[11]-1990404162|0,Xd=(Xd<<22|Xd>>>10)+Jd|0,Wd+=(Xd&Jd|~Xd&Zd)+qd[12]+1804603682|0,Wd=(Wd<<7|Wd>>>25)+Xd|0,Zd+=(Wd&Xd|~Wd&Jd)+qd[13]-40341101|0,Zd=(Zd<<12|Zd>>>20)+Wd|0,Jd+=(Zd&Wd|~Zd&Xd)+qd[14]-1502002290|0,Jd=(Jd<<17|Jd>>>15)+Zd|0,Xd+=(Jd&Zd|~Jd&Wd)+qd[15]+1236535329|0,Xd=(Xd<<22|Xd>>>10)+Jd|0,Wd+=(Xd&Zd|Jd&~Zd)+qd[1]-165796510|0,Wd=(Wd<<5|Wd>>>27)+Xd|0,Zd+=(Wd&Jd|Xd&~Jd)+qd[6]-1069501632|0,Zd=(Zd<<9|Zd>>>23)+Wd|0,Jd+=(Zd&Xd|Wd&~Xd)+qd[11]+643717713|0,Jd=(Jd<<14|Jd>>>18)+Zd|0,Xd+=(Jd&Wd|Zd&~Wd)+qd[0]-373897302|0,Xd=(Xd<<20|Xd>>>12)+Jd|0,Wd+=(Xd&Zd|Jd&~Zd)+qd[5]-701558691|0,Wd=(Wd<<5|Wd>>>27)+Xd|0,Zd+=(Wd&Jd|Xd&~Jd)+qd[10]+38016083|0,Zd=(Zd<<9|Zd>>>23)+Wd|0,Jd+=(Zd&Xd|Wd&~Xd)+qd[15]-660478335|0,Jd=(Jd<<14|Jd>>>18)+Zd|0,Xd+=(Jd&Wd|Zd&~Wd)+qd[4]-405537848|0,Xd=(Xd<<20|Xd>>>12)+Jd|0,Wd+=(Xd&Zd|Jd&~Zd)+qd[9]+568446438|0,Wd=(Wd<<5|Wd>>>27)+Xd|0,Zd+=(Wd&Jd|Xd&~Jd)+qd[14]-1019803690|0,Zd=(Zd<<9|Zd>>>23)+Wd|0,Jd+=(Zd&Xd|Wd&~Xd)+qd[3]-187363961|0,Jd=(Jd<<14|Jd>>>18)+Zd|0,Xd+=(Jd&Wd|Zd&~Wd)+qd[8]+1163531501|0,Xd=(Xd<<20|Xd>>>12)+Jd|0,Wd+=(Xd&Zd|Jd&~Zd)+qd[13]-1444681467|0,Wd=(Wd<<5|Wd>>>27)+Xd|0,Zd+=(Wd&Jd|Xd&~Jd)+qd[2]-51403784|0,Zd=(Zd<<9|Zd>>>23)+Wd|0,Jd+=(Zd&Xd|Wd&~Xd)+qd[7]+1735328473|0,Jd=(Jd<<14|Jd>>>18)+Zd|0,Xd+=(Jd&Wd|Zd&~Wd)+qd[12]-1926607734|0,Xd=(Xd<<20|Xd>>>12)+Jd|0,Wd+=(Xd^Jd^Zd)+qd[5]-378558|0,Wd=(Wd<<4|Wd>>>28)+Xd|0,Zd+=(Wd^Xd^Jd)+qd[8]-2022574463|0,Zd=(Zd<<11|Zd>>>21)+Wd|0,Jd+=(Zd^Wd^Xd)+qd[11]+1839030562|0,Jd=(Jd<<16|Jd>>>16)+Zd|0,Xd+=(Jd^Zd^Wd)+qd[14]-35309556|0,Xd=(Xd<<23|Xd>>>9)+Jd|0,Wd+=(Xd^Jd^Zd)+qd[1]-1530992060|0,Wd=(Wd<<4|Wd>>>28)+Xd|0,Zd+=(Wd^Xd^Jd)+qd[4]+1272893353|0,Zd=(Zd<<11|Zd>>>21)+Wd|0,Jd+=(Zd^Wd^Xd)+qd[7]-155497632|0,Jd=(Jd<<16|Jd>>>16)+Zd|0,Xd+=(Jd^Zd^Wd)+qd[10]-1094730640|0,Xd=(Xd<<23|Xd>>>9)+Jd|0,Wd+=(Xd^Jd^Zd)+qd[13]+681279174|0,Wd=(Wd<<4|Wd>>>28)+Xd|0,Zd+=(Wd^Xd^Jd)+qd[0]-358537222|0,Zd=(Zd<<11|Zd>>>21)+Wd|0,Jd+=(Zd^Wd^Xd)+qd[3]-722521979|0,Jd=(Jd<<16|Jd>>>16)+Zd|0,Xd+=(Jd^Zd^Wd)+qd[6]+76029189|0,Xd=(Xd<<23|Xd>>>9)+Jd|0,Wd+=(Xd^Jd^Zd)+qd[9]-640364487|0,Wd=(Wd<<4|Wd>>>28)+Xd|0,Zd+=(Wd^Xd^Jd)+qd[12]-421815835|0,Zd=(Zd<<11|Zd>>>21)+Wd|0,Jd+=(Zd^Wd^Xd)+qd[15]+530742520|0,Jd=(Jd<<16|Jd>>>16)+Zd|0,Xd+=(Jd^Zd^Wd)+qd[2]-995338651|0,Xd=(Xd<<23|Xd>>>9)+Jd|0,Wd+=(Jd^(Xd|~Zd))+qd[0]-198630844|0,Wd=(Wd<<6|Wd>>>26)+Xd|0,Zd+=(Xd^(Wd|~Jd))+qd[7]+1126891415|0,Zd=(Zd<<10|Zd>>>22)+Wd|0,Jd+=(Wd^(Zd|~Xd))+qd[14]-1416354905|0,Jd=(Jd<<15|Jd>>>17)+Zd|0,Xd+=(Zd^(Jd|~Wd))+qd[5]-57434055|0,Xd=(Xd<<21|Xd>>>11)+Jd|0,Wd+=(Jd^(Xd|~Zd))+qd[12]+1700485571|0,Wd=(Wd<<6|Wd>>>26)+Xd|0,Zd+=(Xd^(Wd|~Jd))+qd[3]-1894986606|0,Zd=(Zd<<10|Zd>>>22)+Wd|0,Jd+=(Wd^(Zd|~Xd))+qd[10]-1051523|0,Jd=(Jd<<15|Jd>>>17)+Zd|0,Xd+=(Zd^(Jd|~Wd))+qd[1]-2054922799|0,Xd=(Xd<<21|Xd>>>11)+Jd|0,Wd+=(Jd^(Xd|~Zd))+qd[8]+1873313359|0,Wd=(Wd<<6|Wd>>>26)+Xd|0,Zd+=(Xd^(Wd|~Jd))+qd[15]-30611744|0,Zd=(Zd<<10|Zd>>>22)+Wd|0,Jd+=(Wd^(Zd|~Xd))+qd[6]-1560198380|0,Jd=(Jd<<15|Jd>>>17)+Zd|0,Xd+=(Zd^(Jd|~Wd))+qd[13]+1309151649|0,Xd=(Xd<<21|Xd>>>11)+Jd|0,Wd+=(Jd^(Xd|~Zd))+qd[4]-145523070|0,Wd=(Wd<<6|Wd>>>26)+Xd|0,Zd+=(Xd^(Wd|~Jd))+qd[11]-1120210379|0,Zd=(Zd<<10|Zd>>>22)+Wd|0,Jd+=(Wd^(Zd|~Xd))+qd[2]+718787259|0,Jd=(Jd<<15|Jd>>>17)+Zd|0,Xd+=(Zd^(Jd|~Wd))+qd[9]-343485551|0,Xd=(Xd<<21|Xd>>>11)+Jd|0,zd[0]=Wd+zd[0]|0,zd[1]=Xd+zd[1]|0,zd[2]=Jd+zd[2]|0,zd[3]=Zd+zd[3]|0}function md(zd){var qd=[],Wd;for(Wd=0;Wd<64;Wd+=4)qd[Wd>>2]=zd.charCodeAt(Wd)+(zd.charCodeAt(Wd+1)<<8)+(zd.charCodeAt(Wd+2)<<16)+(zd.charCodeAt(Wd+3)<<24);return qd}function gd(zd){var qd=[],Wd;for(Wd=0;Wd<64;Wd+=4)qd[Wd>>2]=zd[Wd]+(zd[Wd+1]<<8)+(zd[Wd+2]<<16)+(zd[Wd+3]<<24);return qd}function yd(zd){var qd=zd.length,Wd=[1732584193,-271733879,-1732584194,271733878],Xd,Jd,Zd,mf,xf,_f;for(Xd=64;Xd<=qd;Xd+=64)hd(Wd,md(zd.substring(Xd-64,Xd)));for(zd=zd.substring(Xd-64),Jd=zd.length,Zd=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],Xd=0;Xd>2]|=zd.charCodeAt(Xd)<<(Xd%4<<3);if(Zd[Xd>>2]|=128<<(Xd%4<<3),Xd>55)for(hd(Wd,Zd),Xd=0;Xd<16;Xd+=1)Zd[Xd]=0;return mf=qd*8,mf=mf.toString(16).match(/(.*?)(.{0,8})$/),xf=parseInt(mf[2],16),_f=parseInt(mf[1],16)||0,Zd[14]=xf,Zd[15]=_f,hd(Wd,Zd),Wd}function vd(zd){var qd=zd.length,Wd=[1732584193,-271733879,-1732584194,271733878],Xd,Jd,Zd,mf,xf,_f;for(Xd=64;Xd<=qd;Xd+=64)hd(Wd,gd(zd.subarray(Xd-64,Xd)));for(zd=Xd-64>2]|=zd[Xd]<<(Xd%4<<3);if(Zd[Xd>>2]|=128<<(Xd%4<<3),Xd>55)for(hd(Wd,Zd),Xd=0;Xd<16;Xd+=1)Zd[Xd]=0;return mf=qd*8,mf=mf.toString(16).match(/(.*?)(.{0,8})$/),xf=parseInt(mf[2],16),_f=parseInt(mf[1],16)||0,Zd[14]=xf,Zd[15]=_f,hd(Wd,Zd),Wd}function Cd(zd){var qd="",Wd;for(Wd=0;Wd<4;Wd+=1)qd+=dd[zd>>Wd*8+4&15]+dd[zd>>Wd*8&15];return qd}function wd(zd){var qd;for(qd=0;qdZd?new ArrayBuffer(0):(mf=Zd-Jd,xf=new ArrayBuffer(mf),_f=new Uint8Array(xf),vf=new Uint8Array(this,Jd,mf),_f.set(vf),xf)}}();function Nd(zd){return/[\u0080-\uFFFF]/.test(zd)&&(zd=unescape(encodeURIComponent(zd))),zd}function Ld(zd,qd){var Wd=zd.length,Xd=new ArrayBuffer(Wd),Jd=new Uint8Array(Xd),Zd;for(Zd=0;Zd>2]|=qd.charCodeAt(Xd)<<(Xd%4<<3);return this._finish(Jd,Wd),Zd=wd(this._hash),zd&&(Zd=Gd(Zd)),this.reset(),Zd},Yd.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},Yd.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},Yd.prototype.setState=function(zd){return this._buff=zd.buff,this._length=zd.length,this._hash=zd.hash,this},Yd.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},Yd.prototype._finish=function(zd,qd){var Wd=qd,Xd,Jd,Zd;if(zd[Wd>>2]|=128<<(Wd%4<<3),Wd>55)for(hd(this._hash,zd),Wd=0;Wd<16;Wd+=1)zd[Wd]=0;Xd=this._length*8,Xd=Xd.toString(16).match(/(.*?)(.{0,8})$/),Jd=parseInt(Xd[2],16),Zd=parseInt(Xd[1],16)||0,zd[14]=Jd,zd[15]=Zd,hd(this._hash,zd)},Yd.hash=function(zd,qd){return Yd.hashBinary(Nd(zd),qd)},Yd.hashBinary=function(zd,qd){var Wd=yd(zd),Xd=wd(Wd);return qd?Gd(Xd):Xd},Yd.ArrayBuffer=function(){this.reset()},Yd.ArrayBuffer.prototype.append=function(zd){var qd=jd(this._buff.buffer,zd),Wd=qd.length,Xd;for(this._length+=zd.byteLength,Xd=64;Xd<=Wd;Xd+=64)hd(this._hash,gd(qd.subarray(Xd-64,Xd)));return this._buff=Xd-64>2]|=qd[Jd]<<(Jd%4<<3);return this._finish(Xd,Wd),Zd=wd(this._hash),zd&&(Zd=Gd(Zd)),this.reset(),Zd},Yd.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},Yd.ArrayBuffer.prototype.getState=function(){var zd=Yd.prototype.getState.call(this);return zd.buff=Ud(zd.buff),zd},Yd.ArrayBuffer.prototype.setState=function(zd){return zd.buff=Ld(zd.buff,!0),Yd.prototype.setState.call(this,zd)},Yd.ArrayBuffer.prototype.destroy=Yd.prototype.destroy,Yd.ArrayBuffer.prototype._finish=Yd.prototype._finish,Yd.ArrayBuffer.hash=function(zd,qd){var Wd=vd(new Uint8Array(zd)),Xd=wd(Wd);return qd?Gd(Xd):Xd},Yd})})(sparkMd5);var sparkMd5Exports=sparkMd5.exports;const SparkMD5=getDefaultExportFromCjs(sparkMd5Exports);var __assign$5=function(){return __assign$5=Object.assign||function(Ra){for(var ed,ud=1,dd=arguments.length;ud0&&md[md.length-1])&&(Cd[0]===6||Cd[0]===2)){ud=0;continue}if(Cd[0]===3&&(!md||Cd[1]>md[0]&&Cd[1]Ra.size)ud=Ra.size;else for(;Ra.size>ud*1e4;)ud*=2;for(var dd=[],hd=Math.ceil(Ra.size/ud),md=0;md3?ed[1]:ed[0];if(!ud)throw new QiniuError(QiniuErrorName.InvalidToken,"missing assess key field.");var dd=null;try{dd=JSON.parse(urlSafeBase64Decode(ed[ed.length-1]))}catch{throw new QiniuError(QiniuErrorName.InvalidToken,"token parse failed.")}if(dd==null)throw new QiniuError(QiniuErrorName.InvalidToken,"putPolicy is null.");if(dd.scope==null)throw new QiniuError(QiniuErrorName.InvalidToken,"scope field is null.");var hd=dd.scope.split(":")[0];if(!hd)throw new QiniuError(QiniuErrorName.InvalidToken,"resolve bucketName failed.");return{assessKey:ud,bucketName:hd,scope:dd.scope}}function createObjectURL(Ra){var ed=window.URL||window.webkitURL||window.mozURL;return ed.createObjectURL(Ra)}var _a,region={z0:"z0",z1:"z1",z2:"z2",na0:"na0",as0:"as0",cnEast2:"cn-east-2"},regionUphostMap=(_a={},_a[region.z0]={srcUphost:["up.qiniup.com"],cdnUphost:["upload.qiniup.com"]},_a[region.z1]={srcUphost:["up-z1.qiniup.com"],cdnUphost:["upload-z1.qiniup.com"]},_a[region.z2]={srcUphost:["up-z2.qiniup.com"],cdnUphost:["upload-z2.qiniup.com"]},_a[region.na0]={srcUphost:["up-na0.qiniup.com"],cdnUphost:["upload-na0.qiniup.com"]},_a[region.as0]={srcUphost:["up-as0.qiniup.com"],cdnUphost:["upload-as0.qiniup.com"]},_a[region.cnEast2]={srcUphost:["up-cn-east-2.qiniup.com"],cdnUphost:["upload-cn-east-2.qiniup.com"]},_a),stringifyPrimitive=function(Ra){switch(typeof Ra){case"string":return Ra;case"boolean":return Ra?"true":"false";case"number":return isFinite(Ra)?Ra:"";default:return""}},encode=function(Ra,ed,ud,dd){return ed=ed||"&",ud=ud||"=",Ra===null&&(Ra=void 0),typeof Ra=="object"?Object.keys(Ra).map(function(hd){var md=encodeURIComponent(stringifyPrimitive(hd))+ud;return Array.isArray(Ra[hd])?Ra[hd].map(function(gd){return md+encodeURIComponent(stringifyPrimitive(gd))}).join(ed):md+encodeURIComponent(stringifyPrimitive(Ra[hd]))}).filter(Boolean).join(ed):dd?encodeURIComponent(stringifyPrimitive(dd))+ud+encodeURIComponent(stringifyPrimitive(Ra)):""},stringify;stringify=encode;var __assign$4=function(){return __assign$4=Object.assign||function(Ra){for(var ed,ud=1,dd=arguments.length;ud0&&md[md.length-1])&&(Cd[0]===6||Cd[0]===2)){ud=0;continue}if(Cd[0]===3&&(!md||Cd[1]>md[0]&&Cd[1]0?[2,dd+"://"+ud.uphost[0]]:(hd=getPutPolicy(ed),[4,getUpHosts(hd.assessKey,hd.bucketName,dd)]);case 1:return md=yd.sent(),gd=md.data.up.acc.main,[2,dd+"://"+gd[0]]}})})}var __assign$3=function(){return __assign$3=Object.assign||function(Ra){for(var ed,ud=1,dd=arguments.length;ud0&&md[md.length-1])&&(Cd[0]===6||Cd[0]===2)){ud=0;continue}if(Cd[0]===3&&(!md||Cd[1]>md[0]&&Cd[1]0)&&!(hd=dd.next()).done;)md.push(hd.value)}catch(yd){gd={error:yd}}finally{try{hd&&!hd.done&&(ud=dd.return)&&ud.call(dd)}finally{if(gd)throw gd.error}}return md},__spread$3=function(){for(var Ra=[],ed=0;ed1e4*GB)return this.handleError(new QiniuError(QiniuErrorName.InvalidFile,"file size exceed maximum value 10000G")),[2];if(this.putExtra.customVars&&!isCustomVarsValid(this.putExtra.customVars))return this.handleError(new QiniuError(QiniuErrorName.InvalidCustomVars,"customVars key should start width x:")),[2];if(this.putExtra.metadata&&!isMetaDataValid(this.putExtra.metadata))return this.handleError(new QiniuError(QiniuErrorName.InvalidMetadata,"metadata key should start with x-qn-meta-")),[2];md.label=1;case 1:return md.trys.push([1,4,,5]),this.uploadAt=new Date().getTime(),[4,this.checkAndUpdateUploadHost()];case 2:return md.sent(),[4,this.run()];case 3:return ed=md.sent(),this.onComplete(ed.data),this.checkAndUnfreezeHost(),this.sendLog(ed.reqId,200),[2];case 4:return ud=md.sent(),this.aborted?(this.logger.warn("upload is aborted."),this.sendLog("",-2),[2]):(this.clear(),this.logger.error(ud),ud instanceof QiniuRequestError&&(this.sendLog(ud.reqId,ud.code),this.checkAndFreezeHost(ud),dd=++this.retryCount<=this.config.retryCount,hd=RETRY_CODE_LIST.includes(ud.code),hd&&dd)?(this.logger.warn("error auto retry: "+this.retryCount+"/"+this.config.retryCount+"."),this.putFile(),[2]):(this.onError(ud),[3,5]));case 5:return[2]}})})},Ra.prototype.clear=function(){this.xhrList.forEach(function(ed){ed.onreadystatechange=null,ed.abort()}),this.xhrList=[],this.logger.info("cleanup uploading xhr.")},Ra.prototype.stop=function(){this.logger.info("aborted."),this.clear(),this.aborted=!0},Ra.prototype.addXhr=function(ed){this.xhrList.push(ed)},Ra.prototype.sendLog=function(ed,ud){var dd,hd;this.logger.report({code:ud,reqId:ed,remoteIp:"",upType:"jssdk-h5",size:this.file.size,time:Math.floor(this.uploadAt/1e3),port:getPortFromUrl((dd=this.uploadHost)===null||dd===void 0?void 0:dd.getUrl()),host:getDomainFromUrl((hd=this.uploadHost)===null||hd===void 0?void 0:hd.getUrl()),bytesSent:this.progress?this.progress.total.loaded:0,duration:Math.floor((new Date().getTime()-this.uploadAt)/1e3)})},Ra.prototype.getProgressInfoItem=function(ed,ud,dd){return __assign$3({size:ud,loaded:ed,percent:ed/ud*100},dd==null?{}:{fromCache:dd})},Ra}(),__extends$1=function(){var Ra=function(ed,ud){return Ra=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(dd,hd){dd.__proto__=hd}||function(dd,hd){for(var md in hd)hd.hasOwnProperty(md)&&(dd[md]=hd[md])},Ra(ed,ud)};return function(ed,ud){Ra(ed,ud);function dd(){this.constructor=ed}ed.prototype=ud===null?Object.create(ud):(dd.prototype=ud.prototype,new dd)}}(),__assign$2=function(){return __assign$2=Object.assign||function(Ra){for(var ed,ud=1,dd=arguments.length;ud0&&md[md.length-1])&&(Cd[0]===6||Cd[0]===2)){ud=0;continue}if(Cd[0]===3&&(!md||Cd[1]>md[0]&&Cd[1]1024)throw new QiniuError(QiniuErrorName.InvalidChunkSize,"chunkSize maximum value is 1024");return[4,this.initBeforeUploadChunks()];case 1:vd.sent(),ud=new Pool(function(Cd){return __awaiter$4(yd,void 0,void 0,function(){return __generator$4(this,function(wd){switch(wd.label){case 0:if(this.aborted)throw ud.abort(),new Error("pool is aborted");return[4,this.uploadChunk(Cd)];case 1:return wd.sent(),[2]}})})},this.config.concurrentRequestLimit),dd=null,hd=this.getLocalKey(),md=this.chunks.map(function(Cd,wd){return ud.enqueue({chunk:Cd,index:wd})}),vd.label=2;case 2:return vd.trys.push([2,5,,6]),[4,Promise.all(md)];case 3:return vd.sent(),[4,this.mkFileReq()];case 4:return dd=vd.sent(),[3,6];case 5:throw gd=vd.sent(),gd instanceof QiniuRequestError&&(gd.code===612||gd.code===400)&&removeLocalFileInfo(hd,this.logger),gd;case 6:return removeLocalFileInfo(hd,this.logger),[2,dd]}})})},ed.prototype.uploadChunk=function(ud){return __awaiter$4(this,void 0,void 0,function(){var dd,hd,md,gd,yd,vd,Cd,wd,Nd,Ld=this;return __generator$4(this,function(Ud){switch(Ud.label){case 0:return dd=ud.index,hd=ud.chunk,md=this.cachedUploadedList[dd],this.logger.info("upload part "+dd+", cache:",md),gd=this.config.checkByMD5,yd=function(){Ld.usedCacheList[dd]=!0,Ld.updateChunkProgress(hd.size,dd),Ld.uploadedList[dd]=md,Ld.updateLocalCache()},md&&!gd?(yd(),[2]):[4,computeMd5(hd)];case 1:return vd=Ud.sent(),this.logger.info("computed part md5.",vd),md&&vd===md.md5?(yd(),[2]):(this.usedCacheList[dd]=!1,Cd=function(jd){Ld.updateChunkProgress(jd.loaded,dd)},wd={body:hd,md5:this.config.checkByServer?vd:void 0,onProgress:Cd,onCreate:function(jd){return Ld.addXhr(jd)}},this.logger.info("part "+dd+" start uploading."),[4,uploadChunk(this.token,this.key,ud.index+1,this.getUploadInfo(),wd)]);case 2:return Nd=Ud.sent(),this.logger.info("part "+dd+" upload completed."),Cd({loaded:hd.size,total:hd.size}),this.uploadedList[dd]={etag:Nd.data.etag,md5:Nd.data.md5,size:hd.size},this.updateLocalCache(),[2]}})})},ed.prototype.mkFileReq=function(){return __awaiter$4(this,void 0,void 0,function(){var ud,dd,hd=this;return __generator$4(this,function(md){switch(md.label){case 0:return ud=__assign$2(__assign$2(__assign$2({parts:this.uploadedList.map(function(gd,yd){return{etag:gd.etag,partNumber:yd+1}}),fname:this.putExtra.fname},this.putExtra.mimeType&&{mimeType:this.putExtra.mimeType}),this.putExtra.customVars&&{customVars:this.putExtra.customVars}),this.putExtra.metadata&&{metadata:this.putExtra.metadata}),this.logger.info("parts upload completed, make file.",ud),[4,uploadComplete(this.token,this.key,this.getUploadInfo(),{onCreate:function(gd){return hd.addXhr(gd)},body:JSON.stringify(ud)})];case 1:return dd=md.sent(),this.logger.info("finish Resume Progress."),this.updateMkFileProgress(1),[2,dd]}})})},ed.prototype.initBeforeUploadChunks=function(){return __awaiter$4(this,void 0,void 0,function(){var ud,dd,hd;return __generator$4(this,function(md){switch(md.label){case 0:return this.uploadedList=[],this.usedCacheList=[],ud=getLocalFileInfo(this.getLocalKey(),this.logger),ud?[3,2]:(this.logger.info("init upload parts from api."),[4,initUploadParts(this.token,this.bucketName,this.key,this.uploadHost.getUrl())]);case 1:return dd=md.sent(),this.logger.info("initd upload parts of id: "+dd.data.uploadId+"."),this.uploadId=dd.data.uploadId,this.cachedUploadedList=[],[3,3];case 2:hd=["resume upload parts from local cache,","total "+ud.data.length+" part,","id is "+ud.id+"."],this.logger.info(hd.join(" ")),this.cachedUploadedList=ud.data,this.uploadId=ud.id,md.label=3;case 3:return this.chunks=getChunks(this.file,this.config.chunkSize),this.loaded={mkFileProgress:0,chunks:this.chunks.map(function(gd){return 0})},this.notifyResumeProgress(),[2]}})})},ed.prototype.getUploadInfo=function(){return{id:this.uploadId,url:this.uploadHost.getUrl()}},ed.prototype.getLocalKey=function(){return createLocalKey(this.file.name,this.key,this.file.size)},ed.prototype.updateLocalCache=function(){setLocalFileInfo(this.getLocalKey(),{id:this.uploadId,data:this.uploadedList},this.logger)},ed.prototype.updateChunkProgress=function(ud,dd){this.loaded.chunks[dd]=ud,this.notifyResumeProgress()},ed.prototype.updateMkFileProgress=function(ud){this.loaded.mkFileProgress=ud,this.notifyResumeProgress()},ed.prototype.notifyResumeProgress=function(){var ud=this;this.progress={total:this.getProgressInfoItem(sum(this.loaded.chunks)+this.loaded.mkFileProgress,this.file.size+1),chunks:this.chunks.map(function(dd,hd){var md=ud.usedCacheList[hd];return ud.getProgressInfoItem(ud.loaded.chunks[hd],dd.size,md)}),uploadInfo:{id:this.uploadId,url:this.uploadHost.getUrl()}},this.onData(this.progress)},ed}(Base),__awaiter$3=function(Ra,ed,ud,dd){function hd(md){return md instanceof ud?md:new ud(function(gd){gd(md)})}return new(ud||(ud=Promise))(function(md,gd){function yd(wd){try{Cd(dd.next(wd))}catch(Nd){gd(Nd)}}function vd(wd){try{Cd(dd.throw(wd))}catch(Nd){gd(Nd)}}function Cd(wd){wd.done?md(wd.value):hd(wd.value).then(yd,vd)}Cd((dd=dd.apply(Ra,ed||[])).next())})},__generator$3=function(Ra,ed){var ud={label:0,sent:function(){if(md[0]&1)throw md[1];return md[1]},trys:[],ops:[]},dd,hd,md,gd;return gd={next:yd(0),throw:yd(1),return:yd(2)},typeof Symbol=="function"&&(gd[Symbol.iterator]=function(){return this}),gd;function yd(Cd){return function(wd){return vd([Cd,wd])}}function vd(Cd){if(dd)throw new TypeError("Generator is already executing.");for(;ud;)try{if(dd=1,hd&&(md=Cd[0]&2?hd.return:Cd[0]?hd.throw||((md=hd.return)&&md.call(hd),0):hd.next)&&!(md=md.call(hd,Cd[1])).done)return md;switch(hd=0,md&&(Cd=[Cd[0]&2,md.value]),Cd[0]){case 0:case 1:md=Cd;break;case 4:return ud.label++,{value:Cd[1],done:!1};case 5:ud.label++,hd=Cd[1],Cd=[0];continue;case 7:Cd=ud.ops.pop(),ud.trys.pop();continue;default:if(md=ud.trys,!(md=md.length>0&&md[md.length-1])&&(Cd[0]===6||Cd[0]===2)){ud=0;continue}if(Cd[0]===3&&(!md||Cd[1]>md[0]&&Cd[1]>>1^3988292384:dd>>>=1;ed[ud]=dd}return ed},Ra.prototype.append=function(ed){for(var ud=this.crc,dd=0;dd>>8^this.table[(ud^ed[dd])&255];this.crc=ud},Ra.prototype.compute=function(){return(this.crc^-1)>>>0},Ra.prototype.readAsUint8Array=function(ed){return __awaiter$3(this,void 0,void 0,function(){var ud;return __generator$3(this,function(dd){switch(dd.label){case 0:return typeof ed.arrayBuffer!="function"?[3,2]:(ud=Uint8Array.bind,[4,ed.arrayBuffer()]);case 1:return[2,new(ud.apply(Uint8Array,[void 0,dd.sent()]))];case 2:return[2,new Promise(function(hd,md){var gd=new FileReader;gd.onload=function(){if(gd.result==null){md();return}if(typeof gd.result=="string"){md();return}hd(new Uint8Array(gd.result))},gd.readAsArrayBuffer(ed)})]}})})},Ra.prototype.file=function(ed){return __awaiter$3(this,void 0,void 0,function(){var ud,dd,hd,md,gd,yd;return __generator$3(this,function(vd){switch(vd.label){case 0:return ed.size<=MB?(ud=this.append,[4,this.readAsUint8Array(ed)]):[3,2];case 1:return ud.apply(this,[vd.sent()]),[2,this.compute()];case 2:dd=Math.ceil(ed.size/MB),hd=0,vd.label=3;case 3:return hd0&&md[md.length-1])&&(Cd[0]===6||Cd[0]===2)){ud=0;continue}if(Cd[0]===3&&(!md||Cd[1]>md[0]&&Cd[1]0&&reportV3(Ra,ed,ud-1)};var hd=[ed.code||"",ed.reqId||"",ed.host||"",ed.remoteIp||"",ed.port||"",ed.duration||"",ed.time||"",ed.bytesSent||"",ed.upType||"",ed.size||""].join(",");dd.send(hd)}var __read$2=function(Ra,ed){var ud=typeof Symbol=="function"&&Ra[Symbol.iterator];if(!ud)return Ra;var dd=ud.call(Ra),hd,md=[],gd;try{for(;(ed===void 0||ed-- >0)&&!(hd=dd.next()).done;)md.push(hd.value)}catch(yd){gd={error:yd}}finally{try{hd&&!hd.done&&(ud=dd.return)&&ud.call(dd)}finally{if(gd)throw gd.error}}return md},__spread$2=function(){for(var Ra=[],ed=0;ed0&&md[md.length-1])&&(Cd[0]===6||Cd[0]===2)){ud=0;continue}if(Cd[0]===3&&(!md||Cd[1]>md[0]&&Cd[1]0)&&!(hd=dd.next()).done;)md.push(hd.value)}catch(yd){gd={error:yd}}finally{try{hd&&!hd.done&&(ud=dd.return)&&ud.call(dd)}finally{if(gd)throw gd.error}}return md},__spread$1=function(){for(var Ra=[],ed=0;ed=ed},Ra.prototype.freeze=function(ed){ed===void 0&&(ed=20);var ud=new Date().getTime()+ed*1e3;unfreezeTimeMap.set(this.host,ud)},Ra.prototype.unfreeze=function(){unfreezeTimeMap.delete(this.host)},Ra.prototype.getUrl=function(){return this.protocol+"://"+this.host},Ra.prototype.getUnfreezeTime=function(){return unfreezeTimeMap.get(this.host)},Ra}(),HostPool=function(){function Ra(ed){ed===void 0&&(ed=[]),this.initHosts=ed,this.cachedHostsMap=new Map}return Ra.prototype.register=function(ed,ud,dd,hd){this.cachedHostsMap.set(ed+"@"+ud,dd.map(function(md){return new Host(md,hd)}))},Ra.prototype.refresh=function(ed,ud,dd){var hd,md,gd,yd;return __awaiter$1(this,void 0,void 0,function(){var vd,Cd,wd;return __generator$1(this,function(Nd){switch(Nd.label){case 0:return vd=this.cachedHostsMap.get(ed+"@"+ud)||[],vd.length>0?[2]:this.initHosts.length>0?(this.register(ed,ud,this.initHosts,dd),[2]):[4,getUpHosts(ed,ud,dd)];case 1:return Cd=Nd.sent(),(Cd==null?void 0:Cd.data)!=null&&(wd=__spread$1(((md=(hd=Cd.data.up)===null||hd===void 0?void 0:hd.acc)===null||md===void 0?void 0:md.main)||[],((yd=(gd=Cd.data.up)===null||gd===void 0?void 0:gd.acc)===null||yd===void 0?void 0:yd.backup)||[]),this.register(ed,ud,wd,dd)),[2]}})})},Ra.prototype.getUp=function(ed,ud,dd){return __awaiter$1(this,void 0,void 0,function(){var hd,md,gd;return __generator$1(this,function(yd){switch(yd.label){case 0:return[4,this.refresh(ed,ud,dd)];case 1:return yd.sent(),hd=this.cachedHostsMap.get(ed+"@"+ud)||[],hd.length===0?[2,null]:(md=hd.filter(function(vd){return!vd.isFrozen()}),md.length>0?[2,md[0]]:(gd=hd.slice().sort(function(vd,Cd){return(vd.getUnfreezeTime()||0)-(Cd.getUnfreezeTime()||0)}),[2,gd[0]]))}})})},Ra}();function createUploadManager(Ra,ed,ud,dd){return Ra.config&&Ra.config.forceDirect?(dd.info("ues forceDirect mode."),new Direct(Ra,ed,ud,dd)):Ra.file.size>4*MB?(dd.info("file size over 4M, use Resume."),new Resume(Ra,ed,ud,dd)):(dd.info("file size less or equal than 4M, use Direct."),new Direct(Ra,ed,ud,dd))}function upload(Ra,ed,ud,dd,hd){var md=new Logger(ud,hd==null?void 0:hd.disableStatisticsReport,hd==null?void 0:hd.debugLogLevel,Ra.name),gd={file:Ra,key:ed,token:ud,putExtra:dd,config:normalizeUploadConfig(hd,md)},yd=new HostPool(gd.config.uphost);return new Observable(function(vd){var Cd=createUploadManager(gd,{onData:function(wd){return vd.next(wd)},onError:function(wd){return vd.error(wd)},onComplete:function(wd){return vd.complete(wd)}},yd,md);return Cd.putFile(),Cd.stop.bind(Cd)})}var __assign$1=function(){return __assign$1=Object.assign||function(Ra){for(var ed,ud=1,dd=arguments.length;ud0)&&!(hd=dd.next()).done;)md.push(hd.value)}catch(yd){gd={error:yd}}finally{try{hd&&!hd.done&&(ud=dd.return)&&ud.call(dd)}finally{if(gd)throw gd.error}}return md},__spread=function(){for(var Ra=[],ed=0;ed0&&md[md.length-1])&&(Cd[0]===6||Cd[0]===2)){ud=0;continue}if(Cd[0]===3&&(!md||Cd[1]>md[0]&&Cd[1]this.file.size&&this.config.noCompressIfLarger?[2,{dist:this.file,width:ed.width,height:ed.height}]:[2,{dist:gd,width:md.width,height:md.height}]}})})},Ra.prototype.clear=function(ed,ud,dd){this.outputType===defaultType?(ed.fillStyle="#fff",ed.fillRect(0,0,ud,dd)):ed.clearRect(0,0,ud,dd)},Ra.prototype.getOriginImage=function(){var ed=this;return new Promise(function(ud,dd){var hd=createObjectURL(ed.file),md=new Image;md.onload=function(){ud(md)},md.onerror=function(){dd("image load error")},md.src=hd})},Ra.prototype.getCanvas=function(ed){var ud=this;return new Promise(function(dd,hd){var md=document.createElement("canvas"),gd=md.getContext("2d");if(!gd){hd(new QiniuError(QiniuErrorName.GetCanvasContextFailed,"context is null"));return}var yd=ed.width,vd=ed.height;md.height=vd,md.width=yd,ud.clear(gd,yd,vd),gd.drawImage(ed,0,0),dd(md)})},Ra.prototype.doScale=function(ed,ud){return __awaiter(this,void 0,void 0,function(){var dd,hd,md,gd,yd,vd,Cd,wd,Nd,Ld,Ud,jd,Gd,Yd,zd,qd;return __generator(this,function(Wd){if(ud===1)return[2,ed];if(dd=ed.getContext("2d"),hd=Math.min(maxSteps,Math.ceil(1/ud/scaleFactor)),md=Math.pow(ud,1/hd),gd=document.createElement("canvas"),yd=gd.getContext("2d"),vd=ed.width,Cd=ed.height,wd=vd,Nd=Cd,gd.width=vd,gd.height=Cd,!yd||!dd)throw new QiniuError(QiniuErrorName.GetCanvasContextFailed,"mctx or sctx can't be null");for(jd=0;jd{if(!isNumber(gd))throw new TypeError('statusCode should be of type "number"')}),!isString(hd))throw new TypeError('region should be of type "string"');ed.headers||(ed.headers={}),(ed.method==="POST"||ed.method==="PUT"||ed.method==="DELETE")&&(ed.headers["content-length"]=ud.length.toString());const md=this.enableSHA256?toSha256(ud):"";return this.makeRequestStreamAsync(ed,ud,md,dd,hd)}async makeRequestAsyncOmit(ed,ud="",dd=[200],hd=""){const md=await this.makeRequestAsync(ed,ud,dd,hd);return await drainResponse(md),md}async makeRequestStreamAsync(ed,ud,dd,hd,md){if(!isObject(ed))throw new TypeError('options should be of type "object"');if(!(Buffer$4.isBuffer(ud)||typeof ud=="string"||isReadableStream(ud)))throw new InvalidArgumentError(`stream should be a Buffer, string or readable Stream, got ${typeof ud} instead`);if(!isString(dd))throw new TypeError('sha256sum should be of type "string"');if(hd.forEach(vd=>{if(!isNumber(vd))throw new TypeError('statusCode should be of type "number"')}),!isString(md))throw new TypeError('region should be of type "string"');if(!this.enableSHA256&&dd.length!==0)throw new InvalidArgumentError("sha256sum expected to be empty for anonymous or https requests");if(this.enableSHA256&&dd.length!==64)throw new InvalidArgumentError(`Invalid sha256sum : ${dd}`);await this.checkAndRefreshCreds(),md=md||await this.getBucketRegionAsync(ed.bucketName);const gd=this.getRequestOptions({...ed,region:md});if(!this.anonymous){this.enableSHA256||(dd="UNSIGNED-PAYLOAD");const vd=new Date;gd.headers["x-amz-date"]=makeDateLong(vd),gd.headers["x-amz-content-sha256"]=dd,this.sessionToken&&(gd.headers["x-amz-security-token"]=this.sessionToken),gd.headers.authorization=signV4(gd,this.accessKey,this.secretKey,md,vd,dd)}const yd=await request$1(this.transport,gd,ud);if(!yd.statusCode)throw new Error("BUG: response doesn't have a statusCode");if(!hd.includes(yd.statusCode)){delete this.regionMap[ed.bucketName];const vd=await parseResponseError(yd);throw this.logHTTP(gd,yd,vd),vd}return this.logHTTP(gd,yd),yd}async getBucketRegionAsync(ed){if(!isValidBucketName(ed))throw new InvalidBucketNameError(`Invalid bucket name : ${ed}`);if(this.region)return this.region;const ud=this.regionMap[ed];if(ud)return ud;const dd=async Cd=>{const wd=await readAsString(Cd),Nd=parseBucketRegion(wd)||DEFAULT_REGION;return this.regionMap[ed]=Nd,Nd},hd="GET",md="location",gd=this.pathStyle&&!isBrowser_1;let yd;try{const Cd=await this.makeRequestAsync({method:hd,bucketName:ed,query:md,pathStyle:gd},"",[200],DEFAULT_REGION);return dd(Cd)}catch(Cd){if(Cd.name!=="AuthorizationHeaderMalformed"||(yd=Cd.Region,!yd))throw Cd}const vd=await this.makeRequestAsync({method:hd,bucketName:ed,query:md,pathStyle:gd},"",[200],yd);return await dd(vd)}makeRequest(ed,ud="",dd=[200],hd="",md,gd){let yd;md?yd=this.makeRequestAsync(ed,ud,dd,hd):yd=this.makeRequestAsyncOmit(ed,ud,dd,hd),yd.then(vd=>gd(null,vd),vd=>{gd(vd)})}makeRequestStream(ed,ud,dd,hd,md,gd,yd){(async()=>{const Cd=await this.makeRequestStreamAsync(ed,ud,dd,hd,md);return gd||await drainResponse(Cd),Cd})().then(Cd=>yd(null,Cd),Cd=>yd(Cd))}getBucketRegion(ed,ud){return this.getBucketRegionAsync(ed).then(dd=>ud(null,dd),dd=>ud(dd))}async removeBucket(ed){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);await this.makeRequestAsyncOmit({method:"DELETE",bucketName:ed},"",[204]),delete this.regionMap[ed]}async statObject(ed,ud,dd={}){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidObjectName(ud))throw new InvalidObjectNameError(`Invalid object name: ${ud}`);if(!isObject(dd))throw new InvalidArgumentError('statOpts should be of type "object"');const hd=queryString.stringify(dd),gd=await this.makeRequestAsyncOmit({method:"HEAD",bucketName:ed,objectName:ud,query:hd});return{size:parseInt(gd.headers["content-length"]),metaData:extractMetadata(gd.headers),lastModified:new Date(gd.headers["last-modified"]),versionId:getVersionId(gd.headers),etag:sanitizeETag(gd.headers.etag)}}async removeObject(ed,ud,dd={}){if(!isValidBucketName(ed))throw new InvalidBucketNameError(`Invalid bucket name: ${ed}`);if(!isValidObjectName(ud))throw new InvalidObjectNameError(`Invalid object name: ${ud}`);if(!isObject(dd))throw new InvalidArgumentError('removeOpts should be of type "object"');const hd="DELETE",md={};dd.governanceBypass&&(md["X-Amz-Bypass-Governance-Retention"]=!0),dd.forceDelete&&(md["x-minio-force-delete"]=!0);const gd={};dd.versionId&&(gd.versionId=`${dd.versionId}`);const yd=queryString.stringify(gd);await this.makeRequestAsyncOmit({method:hd,bucketName:ed,objectName:ud,headers:md,query:yd},"",[200,204])}async initiateNewMultipartUpload(ed,ud,dd){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidObjectName(ud))throw new InvalidObjectNameError(`Invalid object name: ${ud}`);if(!isObject(dd))throw new InvalidObjectNameError('contentType should be of type "object"');const gd=await this.makeRequestAsync({method:"POST",bucketName:ed,objectName:ud,query:"uploads",headers:dd}),yd=await readAsBuffer(gd);return parseInitiateMultipart(yd.toString())}async abortMultipartUpload(ed,ud,dd){const hd="DELETE",md=`uploadId=${dd}`,gd={method:hd,bucketName:ed,objectName:ud,query:md};await this.makeRequestAsyncOmit(gd,"",[204])}async listParts(ed,ud,dd){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidObjectName(ud))throw new InvalidObjectNameError(`Invalid object name: ${ud}`);if(!isString(dd))throw new TypeError('uploadId should be of type "string"');if(!dd)throw new InvalidArgumentError("uploadId cannot be empty");const hd=[];let md=0,gd;do gd=await this.listPartsQuery(ed,ud,dd,md),md=gd.marker,hd.push(...gd.parts);while(gd.isTruncated);return hd}async listPartsQuery(ed,ud,dd,hd){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidObjectName(ud))throw new InvalidObjectNameError(`Invalid object name: ${ud}`);if(!isString(dd))throw new TypeError('uploadId should be of type "string"');if(!isNumber(hd))throw new TypeError('marker should be of type "number"');if(!dd)throw new InvalidArgumentError("uploadId cannot be empty");let md=`uploadId=${uriEscape(dd)}`;hd&&(md+=`&part-number-marker=${hd}`);const yd=await this.makeRequestAsync({method:"GET",bucketName:ed,objectName:ud,query:md});return parseListParts(await readAsString(yd))}async listBuckets(){const ud=await this.makeRequestAsync({method:"GET"},"",[200],DEFAULT_REGION),dd=await readAsString(ud);return parseListBucket(dd)}async removeBucketReplication(ed){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);await this.makeRequestAsyncOmit({method:"DELETE",bucketName:ed,query:"replication"},"",[200,204],"")}async setBucketReplication(ed,ud){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(isObject(ud)){if(_.isEmpty(ud.role))throw new InvalidArgumentError("Role cannot be empty");if(ud.role&&!isString(ud.role))throw new InvalidArgumentError("Invalid value for role",ud.role);if(_.isEmpty(ud.rules))throw new InvalidArgumentError("Minimum one replication rule must be specified")}else throw new InvalidArgumentError('replicationConfig should be of type "object"');const dd="PUT",hd="replication",md={},gd={ReplicationConfiguration:{Role:ud.role,Rule:ud.rules}},vd=new xml2js.Builder({renderOpts:{pretty:!1},headless:!0}).buildObject(gd);md["Content-MD5"]=toMd5(vd),await this.makeRequestAsyncOmit({method:dd,bucketName:ed,query:hd,headers:md},vd)}async getBucketReplication(ed){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);const hd=await this.makeRequestAsync({method:"GET",bucketName:ed,query:"replication"},"",[200,204]),md=await readAsString(hd);return parseReplicationConfig(md)}}class CopyConditions{constructor(){Ig(this,"modified","");Ig(this,"unmodified","");Ig(this,"matchETag","");Ig(this,"matchETagExcept","")}setModified(ed){if(!(ed instanceof Date))throw new TypeError("date must be of type Date");this.modified=ed.toUTCString()}setUnmodified(ed){if(!(ed instanceof Date))throw new TypeError("date must be of type Date");this.unmodified=ed.toUTCString()}setMatchETag(ed){this.matchETag=ed}setMatchETagExcept(ed){this.matchETagExcept=ed}}class PostPolicy{constructor(){Ig(this,"policy",{conditions:[]});Ig(this,"formData",{})}setExpires(ed){if(!ed)throw new InvalidDateError("Invalid date: cannot be null");this.policy.expiration=ed.toISOString()}setKey(ed){if(!isValidObjectName(ed))throw new InvalidObjectNameError(`Invalid object name : ${ed}`);this.policy.conditions.push(["eq","$key",ed]),this.formData.key=ed}setKeyStartsWith(ed){if(!isValidPrefix(ed))throw new InvalidPrefixError(`Invalid prefix : ${ed}`);this.policy.conditions.push(["starts-with","$key",ed]),this.formData.key=ed}setBucket(ed){if(!isValidBucketName(ed))throw new InvalidBucketNameError(`Invalid bucket name : ${ed}`);this.policy.conditions.push(["eq","$bucket",ed]),this.formData.bucket=ed}setContentType(ed){if(!ed)throw new Error("content-type cannot be null");this.policy.conditions.push(["eq","$Content-Type",ed]),this.formData["Content-Type"]=ed}setContentTypeStartsWith(ed){if(!ed)throw new Error("content-type cannot be null");this.policy.conditions.push(["starts-with","$Content-Type",ed]),this.formData["Content-Type"]=ed}setContentDisposition(ed){if(!ed)throw new Error("content-disposition cannot be null");this.policy.conditions.push(["eq","$Content-Disposition",ed]),this.formData["Content-Disposition"]=ed}setContentLengthRange(ed,ud){if(ed>ud)throw new Error("min cannot be more than max");if(ed<0)throw new Error("min should be > 0");if(ud<0)throw new Error("max should be > 0");this.policy.conditions.push(["content-length-range",ed,ud])}setUserMetaData(ed){if(!isObject(ed))throw new TypeError('metadata should be of type "object"');Object.entries(ed).forEach(([ud,dd])=>{const hd=`x-amz-meta-${ud}`;this.policy.conditions.push(["eq",`$${hd}`,dd]),this.formData[hd]=dd.toString()})}}var jsonStream={exports:{}},util=util$6,TransformStream$1=streamBrowserify.Transform;jsonStream.exports=function(Ra){return new JSONStream(Ra)};var JSONStream=jsonStream.exports.JSONStream=function(Ra){Ra=Ra||{},TransformStream$1.call(this,Ra),this._writableState.objectMode=!1,this._readableState.objectMode=!0,this._async=Ra.async||!1};util.inherits(JSONStream,TransformStream$1);JSONStream.prototype._transform=function(Ra,ed,ud){Buffer$4.isBuffer(Ra)||(Ra=new Buffer$4(Ra)),this._buffer&&(Ra=Buffer$4.concat([this._buffer,Ra]));for(var dd=0,hd=0;++dd<=Ra.length;)if(Ra[dd]===10||dd===Ra.length){var md;try{md=JSON.parse(Ra.slice(hd,dd))}catch{}md&&(this.push(md),md=null),Ra[dd]===10&&(hd=++dd)}return this._buffer=Ra.slice(hd),this._async?void setImmediate(ud):void ud()};var jsonStreamExports=jsonStream.exports;const JSONParser=getDefaultExportFromCjs(jsonStreamExports);var through2$1={exports:{}};const{Transform}=readableBrowserExports;function inherits(Ra,ed){Ra.super_=ed,Ra.prototype=Object.create(ed.prototype,{constructor:{value:Ra,enumerable:!1,writable:!0,configurable:!0}})}function through2(Ra){return(ed,ud,dd)=>(typeof ed=="function"&&(dd=ud,ud=ed,ed={}),typeof ud!="function"&&(ud=(hd,md,gd)=>gd(null,hd)),typeof dd!="function"&&(dd=null),Ra(ed,ud,dd))}const make=through2((Ra,ed,ud)=>{const dd=new Transform(Ra);return dd._transform=ed,ud&&(dd._flush=ud),dd}),ctor=through2((Ra,ed,ud)=>{function dd(hd){if(!(this instanceof dd))return new dd(hd);this.options=Object.assign({},Ra,hd),Transform.call(this,this.options),this._transform=ed,ud&&(this._flush=ud)}return inherits(dd,Transform),dd}),obj=through2(function(Ra,ed,ud){const dd=new Transform(Object.assign({objectMode:!0,highWaterMark:16},Ra));return dd._transform=ed,ud&&(dd._flush=ud),dd});through2$1.exports=make;through2$1.exports.ctor=ctor;through2$1.exports.obj=obj;var through2Exports=through2$1.exports;const Through2=getDefaultExportFromCjs(through2Exports);var Buffer=buffer.Buffer,CRC_TABLE=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];typeof Int32Array<"u"&&(CRC_TABLE=new Int32Array(CRC_TABLE));function ensureBuffer(Ra){if(Buffer.isBuffer(Ra))return Ra;var ed=typeof Buffer.alloc=="function"&&typeof Buffer.from=="function";if(typeof Ra=="number")return ed?Buffer.alloc(Ra):new Buffer(Ra);if(typeof Ra=="string")return ed?Buffer.from(Ra):new Buffer(Ra);throw new Error("input must be buffer, number, or string, received "+typeof Ra)}function bufferizeInt(Ra){var ed=ensureBuffer(4);return ed.writeInt32BE(Ra,0),ed}function _crc32(Ra,ed){Ra=ensureBuffer(Ra),Buffer.isBuffer(ed)&&(ed=ed.readUInt32BE(0));for(var ud=~~ed^-1,dd=0;dd>>8;return ud^-1}function crc32(){return bufferizeInt(_crc32.apply(null,arguments))}crc32.signed=function(){return _crc32.apply(null,arguments)};crc32.unsigned=function(){return _crc32.apply(null,arguments)>>>0};var bufferCrc32=crc32;const crc32$1=getDefaultExportFromCjs(bufferCrc32),fxpWithoutNumParser=new fxp$2.XMLParser({numberParseOptions:{skipLike:/./}});function parseCopyObject(Ra){var ed={etag:"",lastModified:""},ud=parseXml(Ra);if(!ud.CopyObjectResult)throw new InvalidXMLError('Missing tag: "CopyObjectResult"');return ud=ud.CopyObjectResult,ud.ETag&&(ed.etag=ud.ETag.replace(/^"/g,"").replace(/"$/g,"").replace(/^"/g,"").replace(/"$/g,"").replace(/^"/g,"").replace(/"$/g,"")),ud.LastModified&&(ed.lastModified=new Date(ud.LastModified)),ed}function parseListMultipart(Ra){var ed={uploads:[],prefixes:[],isTruncated:!1},ud=parseXml(Ra);if(!ud.ListMultipartUploadsResult)throw new InvalidXMLError('Missing tag: "ListMultipartUploadsResult"');return ud=ud.ListMultipartUploadsResult,ud.IsTruncated&&(ed.isTruncated=ud.IsTruncated),ud.NextKeyMarker&&(ed.nextKeyMarker=ud.NextKeyMarker),ud.NextUploadIdMarker&&(ed.nextUploadIdMarker=ud.nextUploadIdMarker||""),ud.CommonPrefixes&&toArray(ud.CommonPrefixes).forEach(dd=>{ed.prefixes.push({prefix:sanitizeObjectKey(toArray(dd.Prefix)[0])})}),ud.Upload&&toArray(ud.Upload).forEach(dd=>{var hd=dd.Key,md=dd.UploadId,gd={id:dd.Initiator.ID,displayName:dd.Initiator.DisplayName},yd={id:dd.Owner.ID,displayName:dd.Owner.DisplayName},vd=dd.StorageClass,Cd=new Date(dd.Initiated);ed.uploads.push({key:hd,uploadId:md,initiator:gd,owner:yd,storageClass:vd,initiated:Cd})}),ed}function parseBucketNotification(Ra){var ed={TopicConfiguration:[],QueueConfiguration:[],CloudFunctionConfiguration:[]},ud=function(md){var gd=[];return md&&toArray(md).forEach(yd=>{gd.push(yd)}),gd},dd=function(md){var gd=[];return md&&(md=toArray(md),md[0].S3Key&&(md[0].S3Key=toArray(md[0].S3Key),md[0].S3Key[0].FilterRule&&toArray(md[0].S3Key[0].FilterRule).forEach(yd=>{var vd=toArray(yd.Name)[0],Cd=toArray(yd.Value)[0];gd.push({Name:vd,Value:Cd})}))),gd},hd=parseXml(Ra);return hd=hd.NotificationConfiguration,hd.TopicConfiguration&&toArray(hd.TopicConfiguration).forEach(md=>{var gd=toArray(md.Id)[0],yd=toArray(md.Topic)[0],vd=ud(md.Event),Cd=dd(md.Filter);ed.TopicConfiguration.push({Id:gd,Topic:yd,Event:vd,Filter:Cd})}),hd.QueueConfiguration&&toArray(hd.QueueConfiguration).forEach(md=>{var gd=toArray(md.Id)[0],yd=toArray(md.Queue)[0],vd=ud(md.Event),Cd=dd(md.Filter);ed.QueueConfiguration.push({Id:gd,Queue:yd,Event:vd,Filter:Cd})}),hd.CloudFunctionConfiguration&&toArray(hd.CloudFunctionConfiguration).forEach(md=>{var gd=toArray(md.Id)[0],yd=toArray(md.CloudFunction)[0],vd=ud(md.Event),Cd=dd(md.Filter);ed.CloudFunctionConfiguration.push({Id:gd,CloudFunction:yd,Event:vd,Filter:Cd})}),ed}function parseCompleteMultipart(Ra){var ed=parseXml(Ra).CompleteMultipartUploadResult;if(ed.Location){var ud=toArray(ed.Location)[0],dd=toArray(ed.Bucket)[0],hd=ed.Key,md=ed.ETag.replace(/^"/g,"").replace(/"$/g,"").replace(/^"/g,"").replace(/"$/g,"").replace(/^"/g,"").replace(/"$/g,"");return{location:ud,bucket:dd,key:hd,etag:md}}if(ed.Code&&ed.Message){var gd=toArray(ed.Code)[0],yd=toArray(ed.Message)[0];return{errCode:gd,errMessage:yd}}}const formatObjInfo=(Ra,ed={})=>{let{Key:ud,LastModified:dd,ETag:hd,Size:md,VersionId:gd,IsLatest:yd}=Ra;isObject(ed)||(ed={});const vd=sanitizeObjectKey(toArray(ud)[0]),Cd=new Date(toArray(dd)[0]),wd=sanitizeETag(toArray(hd)[0]),Nd=sanitizeSize(md);return{name:vd,lastModified:Cd,etag:wd,size:Nd,versionId:gd,isLatest:yd,isDeleteMarker:ed.IsDeleteMarker?ed.IsDeleteMarker:!1}};function parseListObjects(Ra){var ed={objects:[],isTruncated:!1};let ud=!1,dd,hd;const md=fxpWithoutNumParser.parse(Ra),gd=Cd=>{Cd&&toArray(Cd).forEach(wd=>{ed.objects.push({prefix:sanitizeObjectKey(toArray(wd.Prefix)[0]),size:0})})},yd=md.ListBucketResult,vd=md.ListVersionsResult;return yd&&(yd.IsTruncated&&(ud=yd.IsTruncated),yd.Contents&&toArray(yd.Contents).forEach(Cd=>{const wd=sanitizeObjectKey(toArray(Cd.Key)[0]),Nd=new Date(toArray(Cd.LastModified)[0]),Ld=sanitizeETag(toArray(Cd.ETag)[0]),Ud=sanitizeSize(Cd.Size);ed.objects.push({name:wd,lastModified:Nd,etag:Ld,size:Ud})}),yd.NextMarker&&(dd=yd.NextMarker),gd(yd.CommonPrefixes)),vd&&(vd.IsTruncated&&(ud=vd.IsTruncated),vd.Version&&toArray(vd.Version).forEach(Cd=>{ed.objects.push(formatObjInfo(Cd))}),vd.DeleteMarker&&toArray(vd.DeleteMarker).forEach(Cd=>{ed.objects.push(formatObjInfo(Cd,{IsDeleteMarker:!0}))}),vd.NextKeyMarker&&(hd=vd.NextKeyMarker),vd.NextVersionIdMarker&&(ed.versionIdMarker=vd.NextVersionIdMarker),gd(vd.CommonPrefixes)),ed.isTruncated=ud,ud&&(ed.nextMarker=hd||dd),ed}function parseListObjectsV2(Ra){var ed={objects:[],isTruncated:!1},ud=parseXml(Ra);if(!ud.ListBucketResult)throw new InvalidXMLError('Missing tag: "ListBucketResult"');return ud=ud.ListBucketResult,ud.IsTruncated&&(ed.isTruncated=ud.IsTruncated),ud.NextContinuationToken&&(ed.nextContinuationToken=ud.NextContinuationToken),ud.Contents&&toArray(ud.Contents).forEach(dd=>{var hd=sanitizeObjectKey(toArray(dd.Key)[0]),md=new Date(dd.LastModified),gd=sanitizeETag(dd.ETag),yd=dd.Size;ed.objects.push({name:hd,lastModified:md,etag:gd,size:yd})}),ud.CommonPrefixes&&toArray(ud.CommonPrefixes).forEach(dd=>{ed.objects.push({prefix:sanitizeObjectKey(toArray(dd.Prefix)[0]),size:0})}),ed}function parseBucketVersioningConfig(Ra){var ed=parseXml(Ra);return ed.VersioningConfiguration}function parseTagging(Ra){const ed=parseXml(Ra);let ud=[];if(ed.Tagging&&ed.Tagging.TagSet&&ed.Tagging.TagSet.Tag){const dd=ed.Tagging.TagSet.Tag;isObject(dd)?ud.push(dd):ud=dd}return ud}function parseLifecycleConfig(Ra){return parseXml(Ra).LifecycleConfiguration}function parseObjectLockConfig(Ra){const ed=parseXml(Ra);let ud={};if(ed.ObjectLockConfiguration){ud={objectLockEnabled:ed.ObjectLockConfiguration.ObjectLockEnabled};let dd;if(ed.ObjectLockConfiguration&&ed.ObjectLockConfiguration.Rule&&ed.ObjectLockConfiguration.Rule.DefaultRetention&&(dd=ed.ObjectLockConfiguration.Rule.DefaultRetention||{},ud.mode=dd.Mode),dd){const hd=dd.Years;hd?(ud.validity=hd,ud.unit=RETENTION_VALIDITY_UNITS.YEARS):(ud.validity=dd.Days,ud.unit=RETENTION_VALIDITY_UNITS.DAYS)}return ud}}function parseObjectRetentionConfig(Ra){const ud=parseXml(Ra).Retention;return{mode:ud.Mode,retainUntilDate:ud.RetainUntilDate}}function parseBucketEncryptionConfig(Ra){return parseXml(Ra)}function parseObjectLegalHoldConfig(Ra){return parseXml(Ra).LegalHold}function uploadPartParser(Ra){return parseXml(Ra).CopyPartResult}function removeObjectsParser(Ra){const ed=parseXml(Ra);return ed.DeleteResult&&ed.DeleteResult.Error?toArray(ed.DeleteResult.Error):[]}function parseSelectObjectContentResponse(Ra){function ed(md){const gd=Buffer$4.from(md.read(1)).readUInt8(),vd=(Buffer$4.from(md.read(gd)).toString()||"").split(":");return vd.length>=1?vd[1]:""}function ud(md){const gd=Buffer$4.from(md.read(2)).readUInt16BE();return Buffer$4.from(md.read(gd)).toString()}const dd=new SelectResults({}),hd=readableStream(Ra);for(;hd._readableState.length;){let md;const gd=Buffer$4.from(hd.read(4));md=crc32$1(gd);const yd=Buffer$4.from(hd.read(4));md=crc32$1(yd,md);const vd=md.readInt32BE(),Cd=Buffer$4.from(hd.read(4));md=crc32$1(Cd,md);const wd=gd.readInt32BE(),Nd=yd.readInt32BE(),Ld=Cd.readInt32BE();if(Ld!==vd)throw new Error(`Header Checksum Mismatch, Prelude CRC of ${Ld} does not equal expected CRC of ${vd}`);const Ud={};if(Nd>0){const zd=Buffer$4.from(hd.read(Nd));md=crc32$1(zd,md);const qd=readableStream(zd);for(;qd._readableState.length;){let Wd=ed(qd);qd.read(1),Ud[Wd]=ud(qd)}}let jd;const Gd=wd-Nd-16;if(Gd>0){const zd=Buffer$4.from(hd.read(Gd));md=crc32$1(zd,md);const qd=Buffer$4.from(hd.read(4)).readInt32BE(),Wd=md.readInt32BE();if(qd!==Wd)throw new Error(`Message Checksum Mismatch, Message CRC of ${qd} does not equal expected CRC of ${Wd}`);jd=readableStream(zd)}const Yd=Ud["message-type"];switch(Yd){case"error":{const zd=Ud["error-code"]+':"'+Ud["error-message"]+'"';throw new Error(zd)}case"event":{const zd=Ud["content-type"];switch(Ud["event-type"]){case"End":return dd.setResponse(Ra),dd;case"Records":{const Wd=jd.read(Gd);dd.setRecords(Wd);break}case"Progress":switch(zd){case"text/xml":{const Wd=jd.read(Gd);dd.setProgress(Wd.toString());break}default:{const Wd=`Unexpected content-type ${zd} sent for event-type Progress`;throw new Error(Wd)}}break;case"Stats":switch(zd){case"text/xml":{const Wd=jd.read(Gd);dd.setStats(Wd.toString());break}default:{const Wd=`Unexpected content-type ${zd} sent for event-type Stats`;throw new Error(Wd)}}break;default:{const Wd=`Un implemented event detected ${Yd}.`;console.warn(Wd)}}}}}}function getConcater(Ra,ed){var ud=!1,dd=[];if(Ra&&!isFunction(Ra))throw new TypeError('parser should be of type "function"');return Ra&&(ud=!0),Through2({objectMode:ud},function(hd,md,gd){dd.push(hd),gd()},function(hd){dd.length&&(Ra?this.push(Ra(Buffer$4.concat(dd).toString())):this.push(Buffer$4.concat(dd))),hd()})}function getCopyObjectTransformer(){return getConcater(parseCopyObject)}function getListMultipartTransformer(){return getConcater(parseListMultipart)}function getListObjectsTransformer(){return getConcater(parseListObjects)}function getListObjectsV2Transformer(){return getConcater(parseListObjectsV2)}function getCompleteMultipartTransformer(){return getConcater(parseCompleteMultipart)}function getBucketNotificationTransformer(){return getConcater(parseBucketNotification)}function getNotificationTransformer(){return new JSONParser}function bucketVersioningTransformer(){return getConcater(parseBucketVersioningConfig)}function getTagsTransformer(){return getConcater(parseTagging)}function lifecycleTransformer(){return getConcater(parseLifecycleConfig)}function objectLockTransformer(){return getConcater(parseObjectLockConfig)}function objectRetentionTransformer(){return getConcater(parseObjectRetentionConfig)}function bucketEncryptionTransformer(){return getConcater(parseBucketEncryptionConfig)}function objectLegalHoldTransformer(){return getConcater(parseObjectLegalHoldConfig)}function uploadPartTransformer(){return getConcater(uploadPartParser)}function selectObjectContentTransformer(){return getConcater()}function removeObjectsTransformer(){return getConcater(removeObjectsParser)}var define_process_default$1={version:"v20.18.3",versions:{node:"20.18.3",acorn:"8.14.0",ada:"2.9.2",ares:"1.34.4",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.15+quic",simdutf:"5.6.4",tz:"2024b",undici:"6.21.1",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.25",zlib:"1.3.0.1-motley-82a5fec"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.18.3/node-v20.18.3.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.18.3/node-v20.18.3-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule internal/util","NativeModule internal/util/types","NativeModule internal/validators","NativeModule internal/linkedlist","NativeModule internal/priority_queue","Internal Binding icu","NativeModule internal/util/inspect","NativeModule internal/util/debuglog","NativeModule internal/timers","NativeModule internal/events/abort_listener","NativeModule events","Internal Binding buffer","NativeModule internal/buffer","NativeModule buffer","Internal Binding messaging","NativeModule internal/worker/js_transferable","NativeModule internal/querystring","NativeModule internal/constants","NativeModule path","NativeModule querystring","Internal Binding url","NativeModule internal/url","NativeModule internal/fs/utils","Internal Binding process_methods","NativeModule internal/process/per_thread","Internal Binding credentials","NativeModule internal/process/promises","NativeModule internal/fixed_queue","NativeModule async_hooks","NativeModule internal/process/task_queues","NativeModule timers","Internal Binding trace_events","Internal Binding contextify","NativeModule internal/vm","NativeModule internal/process/execution","NativeModule internal/process/warning","NativeModule internal/source_map/source_map_cache","Internal Binding fs","Internal Binding blob","Internal Binding encoding_binding","NativeModule internal/encoding","NativeModule internal/streams/utils","NativeModule util","NativeModule internal/webstreams/util","NativeModule internal/webstreams/queuingstrategies","NativeModule internal/blob","Internal Binding permission","NativeModule internal/process/permission","NativeModule fs","NativeModule internal/modules/helpers","NativeModule internal/console/constructor","NativeModule internal/console/global","NativeModule internal/util/inspector","Internal Binding inspector","NativeModule internal/webidl","Internal Binding performance","NativeModule internal/perf/utils","NativeModule internal/event_target","Internal Binding wasm_web_api","Internal Binding mksnapshot","NativeModule internal/v8/startup_snapshot","NativeModule internal/process/signal","NativeModule url","NativeModule internal/modules/package_json_reader","NativeModule internal/modules/cjs/loader","NativeModule internal/process/pre_execution","NativeModule internal/modules/esm/utils","NativeModule internal/inspector_async_hook","Internal Binding worker","NativeModule internal/modules/run_main","NativeModule internal/net","NativeModule internal/dns/utils","NativeModule internal/modules/esm/assert","NativeModule internal/modules/esm/loader","NativeModule internal/modules/esm/module_map","NativeModule internal/modules/esm/translators","NativeModule internal/modules/esm/package_config","NativeModule internal/modules/esm/formats","NativeModule internal/modules/esm/get_format","NativeModule internal/modules/esm/resolve","NativeModule internal/modules/esm/module_job","NativeModule internal/modules/esm/load","Internal Binding fs_dir","NativeModule internal/fs/dir","NativeModule string_decoder","Internal Binding fs_event_wrap","Internal Binding uv","NativeModule internal/fs/watchers","NativeModule internal/fs/recursive_watch","NativeModule internal/readline/utils","NativeModule internal/readline/callbacks","NativeModule internal/readline/interface","NativeModule internal/fs/promises","NativeModule internal/perf/performance_entry","NativeModule internal/perf/observe","NativeModule internal/perf/resource_timing","NativeModule internal/perf/nodetiming","NativeModule internal/perf/usertiming","NativeModule internal/perf/event_loop_utilization","NativeModule internal/histogram","NativeModule internal/perf/timerify","NativeModule internal/perf/performance","NativeModule internal/perf/event_loop_delay","NativeModule perf_hooks","NativeModule internal/modules/esm/initialize_import_meta","NativeModule internal/streams/destroy","NativeModule internal/abort_controller","NativeModule internal/streams/end-of-stream","NativeModule internal/streams/legacy","NativeModule internal/streams/add-abort-signal","NativeModule internal/streams/state","NativeModule internal/streams/from","NativeModule internal/streams/readable","NativeModule internal/streams/writable","NativeModule internal/streams/duplex","NativeModule internal/streams/pipeline","NativeModule internal/streams/compose","NativeModule internal/streams/operators","NativeModule stream/promises","NativeModule internal/streams/transform","NativeModule internal/streams/passthrough","NativeModule internal/streams/duplexpair","NativeModule stream","NativeModule internal/fs/streams","NativeModule fs/promises","NativeModule internal/util/parse_args/utils","NativeModule internal/util/parse_args/parse_args","NativeModule internal/mime","NativeModule internal/source_map/source_map","NativeModule module","Internal Binding crypto","NativeModule internal/crypto/random","NativeModule internal/crypto/hashnames","NativeModule internal/crypto/util","NativeModule internal/crypto/pbkdf2","NativeModule internal/crypto/scrypt","NativeModule internal/crypto/keys","NativeModule internal/crypto/hkdf","NativeModule internal/crypto/keygen","NativeModule internal/crypto/diffiehellman","NativeModule internal/streams/lazy_transform","NativeModule internal/crypto/cipher","NativeModule internal/crypto/sig","NativeModule internal/crypto/hash","NativeModule internal/crypto/x509","NativeModule internal/crypto/certificate","NativeModule crypto","NativeModule internal/crypto/webcrypto","Internal Binding stream_wrap","Internal Binding tcp_wrap","Internal Binding pipe_wrap","NativeModule internal/stream_base_commons","NativeModule diagnostics_channel","NativeModule net","Internal Binding tty_wrap","NativeModule internal/tty","NativeModule tty","NativeModule internal/deps/cjs-module-lexer/dist/lexer","Internal Binding udp_wrap","NativeModule internal/dgram","NativeModule dgram","Internal Binding process_wrap","NativeModule internal/socket_list","Internal Binding spawn_sync","NativeModule internal/child_process","NativeModule child_process","NativeModule _http_agent","Internal Binding http_parser","NativeModule internal/freelist","NativeModule _http_incoming","NativeModule _http_common","NativeModule internal/http","NativeModule _http_outgoing","NativeModule _http_client","NativeModule _http_server","NativeModule http","Internal Binding cares_wrap","NativeModule internal/tls/secure-context","NativeModule _tls_common","Internal Binding js_stream","NativeModule internal/js_stream_socket","Internal Binding tls_wrap","NativeModule _tls_wrap","NativeModule internal/tls/secure-pair","NativeModule tls","NativeModule https","Internal Binding block_list","NativeModule internal/socketaddress","NativeModule internal/blocklist","Internal Binding os","NativeModule os","NativeModule internal/dns/callback_resolver","NativeModule dns","NativeModule internal/dns/promises","NativeModule internal/util/colors","NativeModule internal/assert/assertion_error","NativeModule internal/assert/utils","NativeModule internal/assert/calltracker","NativeModule assert","Internal Binding serdes","Internal Binding profiler","Internal Binding heap_utils","Internal Binding internal_only_v8","NativeModule internal/heap_utils","NativeModule internal/promise_hooks","Internal Binding v8","NativeModule v8","NativeModule internal/worker/io","NativeModule internal/error_serdes","NativeModule internal/worker","NativeModule worker_threads","NativeModule internal/file","NativeModule internal/readline/emitKeypressEvents","NativeModule internal/readline/promises","NativeModule readline/promises","NativeModule readline","Internal Binding zlib","NativeModule zlib","NativeModule process","Internal Binding report","NativeModule internal/process/report","NativeModule constants","NativeModule internal/crypto/webidl"],_events:{newListener:[null,null],removeListener:[null,null]},_eventsCount:3,domain:null,_exiting:!1,config:{target_defaults:{cflags:[],default_configuration:"Release",defines:["NODE_OPENSSL_CONF_NAME=nodejs_conf","NODE_OPENSSL_HAS_QUIC","ICU_NO_USER_DATA_OVERRIDE"],include_dirs:[],libraries:[]},variables:{asan:0,clang:0,coverage:!1,dcheck_always_on:0,debug_nghttp2:!1,debug_node:!1,enable_lto:!1,enable_pgo_generate:!1,enable_pgo_use:!1,error_on_warn:!1,force_dynamic_crt:0,gas_version:"2.35",host_arch:"x64",icu_data_in:"../../deps/icu-tmp/icudt75l.dat",icu_endianness:"l",icu_gyp_path:"tools/icu/icu-generic.gyp",icu_path:"deps/icu-small",icu_small:!1,icu_ver_major:"75",is_debug:0,libdir:"lib",llvm_version:"0.0",napi_build_version:"9",node_builtin_shareable_builtins:["deps/cjs-module-lexer/lexer.js","deps/cjs-module-lexer/dist/lexer.js","deps/undici/undici.js"],node_byteorder:"little",node_debug_lib:!1,node_enable_d8:!1,node_enable_v8_vtunejit:!1,node_fipsinstall:!1,node_install_corepack:!0,node_install_npm:!0,node_library_files:["lib/_http_agent.js","lib/_http_client.js","lib/_http_common.js","lib/_http_incoming.js","lib/_http_outgoing.js","lib/_http_server.js","lib/_stream_duplex.js","lib/_stream_passthrough.js","lib/_stream_readable.js","lib/_stream_transform.js","lib/_stream_wrap.js","lib/_stream_writable.js","lib/_tls_common.js","lib/_tls_wrap.js","lib/assert.js","lib/assert/strict.js","lib/async_hooks.js","lib/buffer.js","lib/child_process.js","lib/cluster.js","lib/console.js","lib/constants.js","lib/crypto.js","lib/dgram.js","lib/diagnostics_channel.js","lib/dns.js","lib/dns/promises.js","lib/domain.js","lib/events.js","lib/fs.js","lib/fs/promises.js","lib/http.js","lib/http2.js","lib/https.js","lib/inspector.js","lib/inspector/promises.js","lib/internal/abort_controller.js","lib/internal/assert.js","lib/internal/assert/assertion_error.js","lib/internal/assert/calltracker.js","lib/internal/assert/utils.js","lib/internal/async_hooks.js","lib/internal/blob.js","lib/internal/blocklist.js","lib/internal/bootstrap/node.js","lib/internal/bootstrap/realm.js","lib/internal/bootstrap/shadow_realm.js","lib/internal/bootstrap/switches/does_not_own_process_state.js","lib/internal/bootstrap/switches/does_own_process_state.js","lib/internal/bootstrap/switches/is_main_thread.js","lib/internal/bootstrap/switches/is_not_main_thread.js","lib/internal/bootstrap/web/exposed-wildcard.js","lib/internal/bootstrap/web/exposed-window-or-worker.js","lib/internal/buffer.js","lib/internal/child_process.js","lib/internal/child_process/serialization.js","lib/internal/cli_table.js","lib/internal/cluster/child.js","lib/internal/cluster/primary.js","lib/internal/cluster/round_robin_handle.js","lib/internal/cluster/shared_handle.js","lib/internal/cluster/utils.js","lib/internal/cluster/worker.js","lib/internal/console/constructor.js","lib/internal/console/global.js","lib/internal/constants.js","lib/internal/crypto/aes.js","lib/internal/crypto/certificate.js","lib/internal/crypto/cfrg.js","lib/internal/crypto/cipher.js","lib/internal/crypto/diffiehellman.js","lib/internal/crypto/ec.js","lib/internal/crypto/hash.js","lib/internal/crypto/hashnames.js","lib/internal/crypto/hkdf.js","lib/internal/crypto/keygen.js","lib/internal/crypto/keys.js","lib/internal/crypto/mac.js","lib/internal/crypto/pbkdf2.js","lib/internal/crypto/random.js","lib/internal/crypto/rsa.js","lib/internal/crypto/scrypt.js","lib/internal/crypto/sig.js","lib/internal/crypto/util.js","lib/internal/crypto/webcrypto.js","lib/internal/crypto/webidl.js","lib/internal/crypto/x509.js","lib/internal/debugger/inspect.js","lib/internal/debugger/inspect_client.js","lib/internal/debugger/inspect_repl.js","lib/internal/dgram.js","lib/internal/dns/callback_resolver.js","lib/internal/dns/promises.js","lib/internal/dns/utils.js","lib/internal/encoding.js","lib/internal/error_serdes.js","lib/internal/errors.js","lib/internal/event_target.js","lib/internal/events/abort_listener.js","lib/internal/events/symbols.js","lib/internal/file.js","lib/internal/fixed_queue.js","lib/internal/freelist.js","lib/internal/freeze_intrinsics.js","lib/internal/fs/cp/cp-sync.js","lib/internal/fs/cp/cp.js","lib/internal/fs/dir.js","lib/internal/fs/promises.js","lib/internal/fs/read/context.js","lib/internal/fs/recursive_watch.js","lib/internal/fs/rimraf.js","lib/internal/fs/streams.js","lib/internal/fs/sync_write_stream.js","lib/internal/fs/utils.js","lib/internal/fs/watchers.js","lib/internal/heap_utils.js","lib/internal/histogram.js","lib/internal/http.js","lib/internal/http2/compat.js","lib/internal/http2/core.js","lib/internal/http2/util.js","lib/internal/inspector_async_hook.js","lib/internal/inspector_network_tracking.js","lib/internal/js_stream_socket.js","lib/internal/legacy/processbinding.js","lib/internal/linkedlist.js","lib/internal/main/check_syntax.js","lib/internal/main/embedding.js","lib/internal/main/eval_stdin.js","lib/internal/main/eval_string.js","lib/internal/main/inspect.js","lib/internal/main/mksnapshot.js","lib/internal/main/print_help.js","lib/internal/main/prof_process.js","lib/internal/main/repl.js","lib/internal/main/run_main_module.js","lib/internal/main/test_runner.js","lib/internal/main/watch_mode.js","lib/internal/main/worker_thread.js","lib/internal/mime.js","lib/internal/modules/cjs/loader.js","lib/internal/modules/esm/assert.js","lib/internal/modules/esm/create_dynamic_module.js","lib/internal/modules/esm/fetch_module.js","lib/internal/modules/esm/formats.js","lib/internal/modules/esm/get_format.js","lib/internal/modules/esm/hooks.js","lib/internal/modules/esm/initialize_import_meta.js","lib/internal/modules/esm/load.js","lib/internal/modules/esm/loader.js","lib/internal/modules/esm/module_job.js","lib/internal/modules/esm/module_map.js","lib/internal/modules/esm/package_config.js","lib/internal/modules/esm/resolve.js","lib/internal/modules/esm/shared_constants.js","lib/internal/modules/esm/translators.js","lib/internal/modules/esm/utils.js","lib/internal/modules/esm/worker.js","lib/internal/modules/helpers.js","lib/internal/modules/package_json_reader.js","lib/internal/modules/run_main.js","lib/internal/navigator.js","lib/internal/net.js","lib/internal/options.js","lib/internal/per_context/domexception.js","lib/internal/per_context/messageport.js","lib/internal/per_context/primordials.js","lib/internal/perf/event_loop_delay.js","lib/internal/perf/event_loop_utilization.js","lib/internal/perf/nodetiming.js","lib/internal/perf/observe.js","lib/internal/perf/performance.js","lib/internal/perf/performance_entry.js","lib/internal/perf/resource_timing.js","lib/internal/perf/timerify.js","lib/internal/perf/usertiming.js","lib/internal/perf/utils.js","lib/internal/policy/manifest.js","lib/internal/policy/sri.js","lib/internal/priority_queue.js","lib/internal/process/execution.js","lib/internal/process/per_thread.js","lib/internal/process/permission.js","lib/internal/process/policy.js","lib/internal/process/pre_execution.js","lib/internal/process/promises.js","lib/internal/process/report.js","lib/internal/process/signal.js","lib/internal/process/task_queues.js","lib/internal/process/warning.js","lib/internal/process/worker_thread_only.js","lib/internal/promise_hooks.js","lib/internal/querystring.js","lib/internal/readline/callbacks.js","lib/internal/readline/emitKeypressEvents.js","lib/internal/readline/interface.js","lib/internal/readline/promises.js","lib/internal/readline/utils.js","lib/internal/repl.js","lib/internal/repl/await.js","lib/internal/repl/history.js","lib/internal/repl/utils.js","lib/internal/socket_list.js","lib/internal/socketaddress.js","lib/internal/source_map/prepare_stack_trace.js","lib/internal/source_map/source_map.js","lib/internal/source_map/source_map_cache.js","lib/internal/stream_base_commons.js","lib/internal/streams/add-abort-signal.js","lib/internal/streams/compose.js","lib/internal/streams/destroy.js","lib/internal/streams/duplex.js","lib/internal/streams/duplexify.js","lib/internal/streams/duplexpair.js","lib/internal/streams/end-of-stream.js","lib/internal/streams/from.js","lib/internal/streams/lazy_transform.js","lib/internal/streams/legacy.js","lib/internal/streams/operators.js","lib/internal/streams/passthrough.js","lib/internal/streams/pipeline.js","lib/internal/streams/readable.js","lib/internal/streams/state.js","lib/internal/streams/transform.js","lib/internal/streams/utils.js","lib/internal/streams/writable.js","lib/internal/test/binding.js","lib/internal/test/transfer.js","lib/internal/test_runner/coverage.js","lib/internal/test_runner/harness.js","lib/internal/test_runner/mock/loader.js","lib/internal/test_runner/mock/mock.js","lib/internal/test_runner/mock/mock_timers.js","lib/internal/test_runner/reporter/dot.js","lib/internal/test_runner/reporter/junit.js","lib/internal/test_runner/reporter/lcov.js","lib/internal/test_runner/reporter/spec.js","lib/internal/test_runner/reporter/tap.js","lib/internal/test_runner/reporter/utils.js","lib/internal/test_runner/reporter/v8-serializer.js","lib/internal/test_runner/runner.js","lib/internal/test_runner/test.js","lib/internal/test_runner/tests_stream.js","lib/internal/test_runner/utils.js","lib/internal/timers.js","lib/internal/tls/secure-context.js","lib/internal/tls/secure-pair.js","lib/internal/trace_events_async_hooks.js","lib/internal/tty.js","lib/internal/url.js","lib/internal/util.js","lib/internal/util/colors.js","lib/internal/util/comparisons.js","lib/internal/util/debuglog.js","lib/internal/util/embedding.js","lib/internal/util/inspect.js","lib/internal/util/inspector.js","lib/internal/util/iterable_weak_map.js","lib/internal/util/parse_args/parse_args.js","lib/internal/util/parse_args/utils.js","lib/internal/util/types.js","lib/internal/v8/startup_snapshot.js","lib/internal/v8_prof_polyfill.js","lib/internal/v8_prof_processor.js","lib/internal/validators.js","lib/internal/vm.js","lib/internal/vm/module.js","lib/internal/wasm_web_api.js","lib/internal/watch_mode/files_watcher.js","lib/internal/watchdog.js","lib/internal/webidl.js","lib/internal/webstreams/adapters.js","lib/internal/webstreams/compression.js","lib/internal/webstreams/encoding.js","lib/internal/webstreams/queuingstrategies.js","lib/internal/webstreams/readablestream.js","lib/internal/webstreams/transfer.js","lib/internal/webstreams/transformstream.js","lib/internal/webstreams/util.js","lib/internal/webstreams/writablestream.js","lib/internal/worker.js","lib/internal/worker/io.js","lib/internal/worker/js_transferable.js","lib/module.js","lib/net.js","lib/os.js","lib/path.js","lib/path/posix.js","lib/path/win32.js","lib/perf_hooks.js","lib/process.js","lib/punycode.js","lib/querystring.js","lib/readline.js","lib/readline/promises.js","lib/repl.js","lib/sea.js","lib/stream.js","lib/stream/consumers.js","lib/stream/promises.js","lib/stream/web.js","lib/string_decoder.js","lib/sys.js","lib/test.js","lib/test/reporters.js","lib/timers.js","lib/timers/promises.js","lib/tls.js","lib/trace_events.js","lib/tty.js","lib/url.js","lib/util.js","lib/util/types.js","lib/v8.js","lib/vm.js","lib/wasi.js","lib/worker_threads.js","lib/zlib.js"],node_module_version:115,node_no_browser_globals:!1,node_prefix:"/",node_release_urlbase:"https://nodejs.org/download/release/",node_section_ordering_info:"",node_shared:!1,node_shared_ada:!1,node_shared_brotli:!1,node_shared_cares:!1,node_shared_http_parser:!1,node_shared_libuv:!1,node_shared_nghttp2:!1,node_shared_nghttp3:!1,node_shared_ngtcp2:!1,node_shared_openssl:!1,node_shared_simdjson:!1,node_shared_simdutf:!1,node_shared_uvwasi:!1,node_shared_zlib:!1,node_tag:"",node_target_type:"executable",node_use_bundled_v8:!0,node_use_node_code_cache:!0,node_use_node_snapshot:!0,node_use_openssl:!0,node_use_v8_platform:!0,node_with_ltcg:!1,node_without_node_options:!1,node_write_snapshot_as_array_literals:!1,openssl_is_fips:!1,openssl_quic:!0,ossfuzz:!1,shlib_suffix:"so.115",single_executable_application:!0,target_arch:"x64",ubsan:0,use_prefix_to_find_headers:!1,v8_enable_31bit_smis_on_64bit_arch:0,v8_enable_extensible_ro_snapshot:0,v8_enable_gdbjit:0,v8_enable_hugepage:0,v8_enable_i18n_support:1,v8_enable_inspector:1,v8_enable_javascript_promise_hooks:1,v8_enable_lite_mode:0,v8_enable_maglev:0,v8_enable_object_print:1,v8_enable_pointer_compression:0,v8_enable_sandbox:0,v8_enable_shared_ro_heap:1,v8_enable_short_builtin_calls:1,v8_enable_v8_checks:0,v8_enable_webassembly:1,v8_no_strict_aliasing:1,v8_optimized_debug:1,v8_promise_internal_field_count:1,v8_random_seed:0,v8_trace_maps:0,v8_use_siphash:1,want_separate_host_toolset:0}},allowedNodeEnvironmentFlags:{},features:{inspector:!0,debug:!1,uv:!0,ipv6:!0,tls_alpn:!0,tls_sni:!0,tls_ocsp:!0,tls:!0,cached_builtins:!0},sourceMapsEnabled:!1,stdout:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:1,_isStdio:!0},stdin:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:2,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,fd:0},stderr:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:2,_isStdio:!0},env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_7d0927af-a53f-46dd-8cfd-0e9ad29a5452",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v20.18.3 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_7d0927af-a53f-46dd-8cfd-0e9ad29a5452",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/md/md/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"doocs",GRADLE_HOME:"/usr/share/gradle-8.13",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/28.0.13004108",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43716716",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/md/md",SYSTEMD_EXEC_PID:"830",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250302.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.12/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.6/x64",JOURNAL_STREAM:"8:7073",GITHUB_WORKFLOW:"Build and Deploy",_:"/opt/hostedtoolcache/node/20.18.3/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.3/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"13738114923",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"b0ab984ebd1ab95b558bace366604e15551deff3",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",GITHUB_WORKFLOW_REF:"doocs/md/.github/workflows/build.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.3/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_fdf857ee-5fee-4fd4-98a2-63d82b9097a4",INVOCATION_ID:"f51a27b48d5b436ea3bda1f4cbbbb859",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",npm_package_name:"md",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"506",GITHUB_TRIGGERING_ACTOR:"yanglbme",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub-Actions-1000004055",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"doocs/md",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"218952803",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"1.6.0",npm_lifecycle_event:"build:only",GITHUB_REF_PROTECTED:"true",GITHUB_WORKSPACE:"/home/runner/work/md/md",ACCEPT_EULA:"Y",GITHUB_JOB:"build-and-deploy",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"b0ab984ebd1ab95b558bace366604e15551deff3",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"yanglbme",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.3/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_7d0927af-a53f-46dd-8cfd-0e9ad29a5452",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/md/md",GITHUB_ACTOR_ID:"21008209",RUNNER_WORKSPACE:"/home/runner/work/md",npm_execpath:"/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_7d0927af-a53f-46dd-8cfd-0e9ad29a5452",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.3/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_7d0927af-a53f-46dd-8cfd-0e9ad29a5452",INIT_CWD:"/home/runner/work/md/md",EDITOR:"vi",NODE_ENV:"production",LAUNCH_EDITOR:"code"},title:"node",argv:["/opt/hostedtoolcache/node/20.18.3/x64/bin/node","/home/runner/work/md/md/node_modules/.bin/vite","build"],execArgv:[],pid:2179,ppid:2178,execPath:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",debugPort:9229,argv0:"node",_preload_modules:[],report:{directory:"",filename:"",compact:!1,excludeNetwork:!1,signal:"SIGUSR2",reportOnFatalError:!1,reportOnSignal:!1,reportOnUncaughtException:!1}};class NotificationConfig{add(ed){let ud="";ed instanceof TopicConfig&&(ud="TopicConfiguration"),ed instanceof QueueConfig&&(ud="QueueConfiguration"),ed instanceof CloudFunctionConfig&&(ud="CloudFunctionConfiguration"),this[ud]||(this[ud]=[]),this[ud].push(ed)}}class TargetConfig{setId(ed){this.Id=ed}addEvent(ed){this.Event||(this.Event=[]),this.Event.push(ed)}addFilterSuffix(ed){this.Filter||(this.Filter={S3Key:{FilterRule:[]}}),this.Filter.S3Key.FilterRule.push({Name:"suffix",Value:ed})}addFilterPrefix(ed){this.Filter||(this.Filter={S3Key:{FilterRule:[]}}),this.Filter.S3Key.FilterRule.push({Name:"prefix",Value:ed})}}class TopicConfig extends TargetConfig{constructor(ed){super(),this.Topic=ed}}class QueueConfig extends TargetConfig{constructor(ed){super(),this.Queue=ed}}class CloudFunctionConfig extends TargetConfig{constructor(ed){super(),this.CloudFunction=ed}}class NotificationPoller extends eventsExports.EventEmitter{constructor(ed,ud,dd,hd,md){super(),this.client=ed,this.bucketName=ud,this.prefix=dd,this.suffix=hd,this.events=md,this.ending=!1}start(){this.ending=!1,define_process_default$1.nextTick(()=>{this.checkForChanges()})}stop(){this.ending=!0}checkForChanges(){if(this.ending)return;let ed="GET";var ud=[];if(this.prefix){var dd=uriEscape(this.prefix);ud.push(`prefix=${dd}`)}if(this.suffix){var hd=uriEscape(this.suffix);ud.push(`suffix=${hd}`)}this.events&&this.events.forEach(yd=>ud.push("events="+uriEscape(yd))),ud.sort();var md="";ud.length>0&&(md=`${ud.join("&")}`);const gd=this.client.region||DEFAULT_REGION;this.client.makeRequest({method:ed,bucketName:this.bucketName,query:md},"",[200],gd,!0,(yd,vd)=>{if(yd)return this.emit("error",yd);let Cd=getNotificationTransformer();pipesetup(vd,Cd).on("data",wd=>{let Nd=wd.Records;Nd||(Nd=[]),Nd.forEach(Ld=>{this.emit("notification",Ld)}),this.ending&&vd.destroy()}).on("error",wd=>this.emit("error",wd)).on("end",()=>{define_process_default$1.nextTick(()=>{this.checkForChanges()})})})}}var define_process_default={version:"v20.18.3",versions:{node:"20.18.3",acorn:"8.14.0",ada:"2.9.2",ares:"1.34.4",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.4.1",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.15+quic",simdutf:"5.6.4",tz:"2024b",undici:"6.21.1",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.25",zlib:"1.3.0.1-motley-82a5fec"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.18.3/node-v20.18.3.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.18.3/node-v20.18.3-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule internal/util","NativeModule internal/util/types","NativeModule internal/validators","NativeModule internal/linkedlist","NativeModule internal/priority_queue","Internal Binding icu","NativeModule internal/util/inspect","NativeModule internal/util/debuglog","NativeModule internal/timers","NativeModule internal/events/abort_listener","NativeModule events","Internal Binding buffer","NativeModule internal/buffer","NativeModule buffer","Internal Binding messaging","NativeModule internal/worker/js_transferable","NativeModule internal/querystring","NativeModule internal/constants","NativeModule path","NativeModule querystring","Internal Binding url","NativeModule internal/url","NativeModule internal/fs/utils","Internal Binding process_methods","NativeModule internal/process/per_thread","Internal Binding credentials","NativeModule internal/process/promises","NativeModule internal/fixed_queue","NativeModule async_hooks","NativeModule internal/process/task_queues","NativeModule timers","Internal Binding trace_events","Internal Binding contextify","NativeModule internal/vm","NativeModule internal/process/execution","NativeModule internal/process/warning","NativeModule internal/source_map/source_map_cache","Internal Binding fs","Internal Binding blob","Internal Binding encoding_binding","NativeModule internal/encoding","NativeModule internal/streams/utils","NativeModule util","NativeModule internal/webstreams/util","NativeModule internal/webstreams/queuingstrategies","NativeModule internal/blob","Internal Binding permission","NativeModule internal/process/permission","NativeModule fs","NativeModule internal/modules/helpers","NativeModule internal/console/constructor","NativeModule internal/console/global","NativeModule internal/util/inspector","Internal Binding inspector","NativeModule internal/webidl","Internal Binding performance","NativeModule internal/perf/utils","NativeModule internal/event_target","Internal Binding wasm_web_api","Internal Binding mksnapshot","NativeModule internal/v8/startup_snapshot","NativeModule internal/process/signal","NativeModule url","NativeModule internal/modules/package_json_reader","NativeModule internal/modules/cjs/loader","NativeModule internal/process/pre_execution","NativeModule internal/modules/esm/utils","NativeModule internal/inspector_async_hook","Internal Binding worker","NativeModule internal/modules/run_main","NativeModule internal/net","NativeModule internal/dns/utils","NativeModule internal/modules/esm/assert","NativeModule internal/modules/esm/loader","NativeModule internal/modules/esm/module_map","NativeModule internal/modules/esm/translators","NativeModule internal/modules/esm/package_config","NativeModule internal/modules/esm/formats","NativeModule internal/modules/esm/get_format","NativeModule internal/modules/esm/resolve","NativeModule internal/modules/esm/module_job","NativeModule internal/modules/esm/load","Internal Binding fs_dir","NativeModule internal/fs/dir","NativeModule string_decoder","Internal Binding fs_event_wrap","Internal Binding uv","NativeModule internal/fs/watchers","NativeModule internal/fs/recursive_watch","NativeModule internal/readline/utils","NativeModule internal/readline/callbacks","NativeModule internal/readline/interface","NativeModule internal/fs/promises","NativeModule internal/perf/performance_entry","NativeModule internal/perf/observe","NativeModule internal/perf/resource_timing","NativeModule internal/perf/nodetiming","NativeModule internal/perf/usertiming","NativeModule internal/perf/event_loop_utilization","NativeModule internal/histogram","NativeModule internal/perf/timerify","NativeModule internal/perf/performance","NativeModule internal/perf/event_loop_delay","NativeModule perf_hooks","NativeModule internal/modules/esm/initialize_import_meta","NativeModule internal/streams/destroy","NativeModule internal/abort_controller","NativeModule internal/streams/end-of-stream","NativeModule internal/streams/legacy","NativeModule internal/streams/add-abort-signal","NativeModule internal/streams/state","NativeModule internal/streams/from","NativeModule internal/streams/readable","NativeModule internal/streams/writable","NativeModule internal/streams/duplex","NativeModule internal/streams/pipeline","NativeModule internal/streams/compose","NativeModule internal/streams/operators","NativeModule stream/promises","NativeModule internal/streams/transform","NativeModule internal/streams/passthrough","NativeModule internal/streams/duplexpair","NativeModule stream","NativeModule internal/fs/streams","NativeModule fs/promises","NativeModule internal/util/parse_args/utils","NativeModule internal/util/parse_args/parse_args","NativeModule internal/mime","NativeModule internal/source_map/source_map","NativeModule module","Internal Binding crypto","NativeModule internal/crypto/random","NativeModule internal/crypto/hashnames","NativeModule internal/crypto/util","NativeModule internal/crypto/pbkdf2","NativeModule internal/crypto/scrypt","NativeModule internal/crypto/keys","NativeModule internal/crypto/hkdf","NativeModule internal/crypto/keygen","NativeModule internal/crypto/diffiehellman","NativeModule internal/streams/lazy_transform","NativeModule internal/crypto/cipher","NativeModule internal/crypto/sig","NativeModule internal/crypto/hash","NativeModule internal/crypto/x509","NativeModule internal/crypto/certificate","NativeModule crypto","NativeModule internal/crypto/webcrypto","Internal Binding stream_wrap","Internal Binding tcp_wrap","Internal Binding pipe_wrap","NativeModule internal/stream_base_commons","NativeModule diagnostics_channel","NativeModule net","Internal Binding tty_wrap","NativeModule internal/tty","NativeModule tty","NativeModule internal/deps/cjs-module-lexer/dist/lexer","Internal Binding udp_wrap","NativeModule internal/dgram","NativeModule dgram","Internal Binding process_wrap","NativeModule internal/socket_list","Internal Binding spawn_sync","NativeModule internal/child_process","NativeModule child_process","NativeModule _http_agent","Internal Binding http_parser","NativeModule internal/freelist","NativeModule _http_incoming","NativeModule _http_common","NativeModule internal/http","NativeModule _http_outgoing","NativeModule _http_client","NativeModule _http_server","NativeModule http","Internal Binding cares_wrap","NativeModule internal/tls/secure-context","NativeModule _tls_common","Internal Binding js_stream","NativeModule internal/js_stream_socket","Internal Binding tls_wrap","NativeModule _tls_wrap","NativeModule internal/tls/secure-pair","NativeModule tls","NativeModule https","Internal Binding block_list","NativeModule internal/socketaddress","NativeModule internal/blocklist","Internal Binding os","NativeModule os","NativeModule internal/dns/callback_resolver","NativeModule dns","NativeModule internal/dns/promises","NativeModule internal/util/colors","NativeModule internal/assert/assertion_error","NativeModule internal/assert/utils","NativeModule internal/assert/calltracker","NativeModule assert","Internal Binding serdes","Internal Binding profiler","Internal Binding heap_utils","Internal Binding internal_only_v8","NativeModule internal/heap_utils","NativeModule internal/promise_hooks","Internal Binding v8","NativeModule v8","NativeModule internal/worker/io","NativeModule internal/error_serdes","NativeModule internal/worker","NativeModule worker_threads","NativeModule internal/file","NativeModule internal/readline/emitKeypressEvents","NativeModule internal/readline/promises","NativeModule readline/promises","NativeModule readline","Internal Binding zlib","NativeModule zlib","NativeModule process","Internal Binding report","NativeModule internal/process/report","NativeModule constants","NativeModule internal/crypto/webidl"],_events:{newListener:[null,null],removeListener:[null,null]},_eventsCount:3,domain:null,_exiting:!1,config:{target_defaults:{cflags:[],default_configuration:"Release",defines:["NODE_OPENSSL_CONF_NAME=nodejs_conf","NODE_OPENSSL_HAS_QUIC","ICU_NO_USER_DATA_OVERRIDE"],include_dirs:[],libraries:[]},variables:{asan:0,clang:0,coverage:!1,dcheck_always_on:0,debug_nghttp2:!1,debug_node:!1,enable_lto:!1,enable_pgo_generate:!1,enable_pgo_use:!1,error_on_warn:!1,force_dynamic_crt:0,gas_version:"2.35",host_arch:"x64",icu_data_in:"../../deps/icu-tmp/icudt75l.dat",icu_endianness:"l",icu_gyp_path:"tools/icu/icu-generic.gyp",icu_path:"deps/icu-small",icu_small:!1,icu_ver_major:"75",is_debug:0,libdir:"lib",llvm_version:"0.0",napi_build_version:"9",node_builtin_shareable_builtins:["deps/cjs-module-lexer/lexer.js","deps/cjs-module-lexer/dist/lexer.js","deps/undici/undici.js"],node_byteorder:"little",node_debug_lib:!1,node_enable_d8:!1,node_enable_v8_vtunejit:!1,node_fipsinstall:!1,node_install_corepack:!0,node_install_npm:!0,node_library_files:["lib/_http_agent.js","lib/_http_client.js","lib/_http_common.js","lib/_http_incoming.js","lib/_http_outgoing.js","lib/_http_server.js","lib/_stream_duplex.js","lib/_stream_passthrough.js","lib/_stream_readable.js","lib/_stream_transform.js","lib/_stream_wrap.js","lib/_stream_writable.js","lib/_tls_common.js","lib/_tls_wrap.js","lib/assert.js","lib/assert/strict.js","lib/async_hooks.js","lib/buffer.js","lib/child_process.js","lib/cluster.js","lib/console.js","lib/constants.js","lib/crypto.js","lib/dgram.js","lib/diagnostics_channel.js","lib/dns.js","lib/dns/promises.js","lib/domain.js","lib/events.js","lib/fs.js","lib/fs/promises.js","lib/http.js","lib/http2.js","lib/https.js","lib/inspector.js","lib/inspector/promises.js","lib/internal/abort_controller.js","lib/internal/assert.js","lib/internal/assert/assertion_error.js","lib/internal/assert/calltracker.js","lib/internal/assert/utils.js","lib/internal/async_hooks.js","lib/internal/blob.js","lib/internal/blocklist.js","lib/internal/bootstrap/node.js","lib/internal/bootstrap/realm.js","lib/internal/bootstrap/shadow_realm.js","lib/internal/bootstrap/switches/does_not_own_process_state.js","lib/internal/bootstrap/switches/does_own_process_state.js","lib/internal/bootstrap/switches/is_main_thread.js","lib/internal/bootstrap/switches/is_not_main_thread.js","lib/internal/bootstrap/web/exposed-wildcard.js","lib/internal/bootstrap/web/exposed-window-or-worker.js","lib/internal/buffer.js","lib/internal/child_process.js","lib/internal/child_process/serialization.js","lib/internal/cli_table.js","lib/internal/cluster/child.js","lib/internal/cluster/primary.js","lib/internal/cluster/round_robin_handle.js","lib/internal/cluster/shared_handle.js","lib/internal/cluster/utils.js","lib/internal/cluster/worker.js","lib/internal/console/constructor.js","lib/internal/console/global.js","lib/internal/constants.js","lib/internal/crypto/aes.js","lib/internal/crypto/certificate.js","lib/internal/crypto/cfrg.js","lib/internal/crypto/cipher.js","lib/internal/crypto/diffiehellman.js","lib/internal/crypto/ec.js","lib/internal/crypto/hash.js","lib/internal/crypto/hashnames.js","lib/internal/crypto/hkdf.js","lib/internal/crypto/keygen.js","lib/internal/crypto/keys.js","lib/internal/crypto/mac.js","lib/internal/crypto/pbkdf2.js","lib/internal/crypto/random.js","lib/internal/crypto/rsa.js","lib/internal/crypto/scrypt.js","lib/internal/crypto/sig.js","lib/internal/crypto/util.js","lib/internal/crypto/webcrypto.js","lib/internal/crypto/webidl.js","lib/internal/crypto/x509.js","lib/internal/debugger/inspect.js","lib/internal/debugger/inspect_client.js","lib/internal/debugger/inspect_repl.js","lib/internal/dgram.js","lib/internal/dns/callback_resolver.js","lib/internal/dns/promises.js","lib/internal/dns/utils.js","lib/internal/encoding.js","lib/internal/error_serdes.js","lib/internal/errors.js","lib/internal/event_target.js","lib/internal/events/abort_listener.js","lib/internal/events/symbols.js","lib/internal/file.js","lib/internal/fixed_queue.js","lib/internal/freelist.js","lib/internal/freeze_intrinsics.js","lib/internal/fs/cp/cp-sync.js","lib/internal/fs/cp/cp.js","lib/internal/fs/dir.js","lib/internal/fs/promises.js","lib/internal/fs/read/context.js","lib/internal/fs/recursive_watch.js","lib/internal/fs/rimraf.js","lib/internal/fs/streams.js","lib/internal/fs/sync_write_stream.js","lib/internal/fs/utils.js","lib/internal/fs/watchers.js","lib/internal/heap_utils.js","lib/internal/histogram.js","lib/internal/http.js","lib/internal/http2/compat.js","lib/internal/http2/core.js","lib/internal/http2/util.js","lib/internal/inspector_async_hook.js","lib/internal/inspector_network_tracking.js","lib/internal/js_stream_socket.js","lib/internal/legacy/processbinding.js","lib/internal/linkedlist.js","lib/internal/main/check_syntax.js","lib/internal/main/embedding.js","lib/internal/main/eval_stdin.js","lib/internal/main/eval_string.js","lib/internal/main/inspect.js","lib/internal/main/mksnapshot.js","lib/internal/main/print_help.js","lib/internal/main/prof_process.js","lib/internal/main/repl.js","lib/internal/main/run_main_module.js","lib/internal/main/test_runner.js","lib/internal/main/watch_mode.js","lib/internal/main/worker_thread.js","lib/internal/mime.js","lib/internal/modules/cjs/loader.js","lib/internal/modules/esm/assert.js","lib/internal/modules/esm/create_dynamic_module.js","lib/internal/modules/esm/fetch_module.js","lib/internal/modules/esm/formats.js","lib/internal/modules/esm/get_format.js","lib/internal/modules/esm/hooks.js","lib/internal/modules/esm/initialize_import_meta.js","lib/internal/modules/esm/load.js","lib/internal/modules/esm/loader.js","lib/internal/modules/esm/module_job.js","lib/internal/modules/esm/module_map.js","lib/internal/modules/esm/package_config.js","lib/internal/modules/esm/resolve.js","lib/internal/modules/esm/shared_constants.js","lib/internal/modules/esm/translators.js","lib/internal/modules/esm/utils.js","lib/internal/modules/esm/worker.js","lib/internal/modules/helpers.js","lib/internal/modules/package_json_reader.js","lib/internal/modules/run_main.js","lib/internal/navigator.js","lib/internal/net.js","lib/internal/options.js","lib/internal/per_context/domexception.js","lib/internal/per_context/messageport.js","lib/internal/per_context/primordials.js","lib/internal/perf/event_loop_delay.js","lib/internal/perf/event_loop_utilization.js","lib/internal/perf/nodetiming.js","lib/internal/perf/observe.js","lib/internal/perf/performance.js","lib/internal/perf/performance_entry.js","lib/internal/perf/resource_timing.js","lib/internal/perf/timerify.js","lib/internal/perf/usertiming.js","lib/internal/perf/utils.js","lib/internal/policy/manifest.js","lib/internal/policy/sri.js","lib/internal/priority_queue.js","lib/internal/process/execution.js","lib/internal/process/per_thread.js","lib/internal/process/permission.js","lib/internal/process/policy.js","lib/internal/process/pre_execution.js","lib/internal/process/promises.js","lib/internal/process/report.js","lib/internal/process/signal.js","lib/internal/process/task_queues.js","lib/internal/process/warning.js","lib/internal/process/worker_thread_only.js","lib/internal/promise_hooks.js","lib/internal/querystring.js","lib/internal/readline/callbacks.js","lib/internal/readline/emitKeypressEvents.js","lib/internal/readline/interface.js","lib/internal/readline/promises.js","lib/internal/readline/utils.js","lib/internal/repl.js","lib/internal/repl/await.js","lib/internal/repl/history.js","lib/internal/repl/utils.js","lib/internal/socket_list.js","lib/internal/socketaddress.js","lib/internal/source_map/prepare_stack_trace.js","lib/internal/source_map/source_map.js","lib/internal/source_map/source_map_cache.js","lib/internal/stream_base_commons.js","lib/internal/streams/add-abort-signal.js","lib/internal/streams/compose.js","lib/internal/streams/destroy.js","lib/internal/streams/duplex.js","lib/internal/streams/duplexify.js","lib/internal/streams/duplexpair.js","lib/internal/streams/end-of-stream.js","lib/internal/streams/from.js","lib/internal/streams/lazy_transform.js","lib/internal/streams/legacy.js","lib/internal/streams/operators.js","lib/internal/streams/passthrough.js","lib/internal/streams/pipeline.js","lib/internal/streams/readable.js","lib/internal/streams/state.js","lib/internal/streams/transform.js","lib/internal/streams/utils.js","lib/internal/streams/writable.js","lib/internal/test/binding.js","lib/internal/test/transfer.js","lib/internal/test_runner/coverage.js","lib/internal/test_runner/harness.js","lib/internal/test_runner/mock/loader.js","lib/internal/test_runner/mock/mock.js","lib/internal/test_runner/mock/mock_timers.js","lib/internal/test_runner/reporter/dot.js","lib/internal/test_runner/reporter/junit.js","lib/internal/test_runner/reporter/lcov.js","lib/internal/test_runner/reporter/spec.js","lib/internal/test_runner/reporter/tap.js","lib/internal/test_runner/reporter/utils.js","lib/internal/test_runner/reporter/v8-serializer.js","lib/internal/test_runner/runner.js","lib/internal/test_runner/test.js","lib/internal/test_runner/tests_stream.js","lib/internal/test_runner/utils.js","lib/internal/timers.js","lib/internal/tls/secure-context.js","lib/internal/tls/secure-pair.js","lib/internal/trace_events_async_hooks.js","lib/internal/tty.js","lib/internal/url.js","lib/internal/util.js","lib/internal/util/colors.js","lib/internal/util/comparisons.js","lib/internal/util/debuglog.js","lib/internal/util/embedding.js","lib/internal/util/inspect.js","lib/internal/util/inspector.js","lib/internal/util/iterable_weak_map.js","lib/internal/util/parse_args/parse_args.js","lib/internal/util/parse_args/utils.js","lib/internal/util/types.js","lib/internal/v8/startup_snapshot.js","lib/internal/v8_prof_polyfill.js","lib/internal/v8_prof_processor.js","lib/internal/validators.js","lib/internal/vm.js","lib/internal/vm/module.js","lib/internal/wasm_web_api.js","lib/internal/watch_mode/files_watcher.js","lib/internal/watchdog.js","lib/internal/webidl.js","lib/internal/webstreams/adapters.js","lib/internal/webstreams/compression.js","lib/internal/webstreams/encoding.js","lib/internal/webstreams/queuingstrategies.js","lib/internal/webstreams/readablestream.js","lib/internal/webstreams/transfer.js","lib/internal/webstreams/transformstream.js","lib/internal/webstreams/util.js","lib/internal/webstreams/writablestream.js","lib/internal/worker.js","lib/internal/worker/io.js","lib/internal/worker/js_transferable.js","lib/module.js","lib/net.js","lib/os.js","lib/path.js","lib/path/posix.js","lib/path/win32.js","lib/perf_hooks.js","lib/process.js","lib/punycode.js","lib/querystring.js","lib/readline.js","lib/readline/promises.js","lib/repl.js","lib/sea.js","lib/stream.js","lib/stream/consumers.js","lib/stream/promises.js","lib/stream/web.js","lib/string_decoder.js","lib/sys.js","lib/test.js","lib/test/reporters.js","lib/timers.js","lib/timers/promises.js","lib/tls.js","lib/trace_events.js","lib/tty.js","lib/url.js","lib/util.js","lib/util/types.js","lib/v8.js","lib/vm.js","lib/wasi.js","lib/worker_threads.js","lib/zlib.js"],node_module_version:115,node_no_browser_globals:!1,node_prefix:"/",node_release_urlbase:"https://nodejs.org/download/release/",node_section_ordering_info:"",node_shared:!1,node_shared_ada:!1,node_shared_brotli:!1,node_shared_cares:!1,node_shared_http_parser:!1,node_shared_libuv:!1,node_shared_nghttp2:!1,node_shared_nghttp3:!1,node_shared_ngtcp2:!1,node_shared_openssl:!1,node_shared_simdjson:!1,node_shared_simdutf:!1,node_shared_uvwasi:!1,node_shared_zlib:!1,node_tag:"",node_target_type:"executable",node_use_bundled_v8:!0,node_use_node_code_cache:!0,node_use_node_snapshot:!0,node_use_openssl:!0,node_use_v8_platform:!0,node_with_ltcg:!1,node_without_node_options:!1,node_write_snapshot_as_array_literals:!1,openssl_is_fips:!1,openssl_quic:!0,ossfuzz:!1,shlib_suffix:"so.115",single_executable_application:!0,target_arch:"x64",ubsan:0,use_prefix_to_find_headers:!1,v8_enable_31bit_smis_on_64bit_arch:0,v8_enable_extensible_ro_snapshot:0,v8_enable_gdbjit:0,v8_enable_hugepage:0,v8_enable_i18n_support:1,v8_enable_inspector:1,v8_enable_javascript_promise_hooks:1,v8_enable_lite_mode:0,v8_enable_maglev:0,v8_enable_object_print:1,v8_enable_pointer_compression:0,v8_enable_sandbox:0,v8_enable_shared_ro_heap:1,v8_enable_short_builtin_calls:1,v8_enable_v8_checks:0,v8_enable_webassembly:1,v8_no_strict_aliasing:1,v8_optimized_debug:1,v8_promise_internal_field_count:1,v8_random_seed:0,v8_trace_maps:0,v8_use_siphash:1,want_separate_host_toolset:0}},allowedNodeEnvironmentFlags:{},features:{inspector:!0,debug:!1,uv:!0,ipv6:!0,tls_alpn:!0,tls_sni:!0,tls_ocsp:!0,tls:!0,cached_builtins:!0},sourceMapsEnabled:!1,stdout:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:1,_isStdio:!0},stdin:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:2,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,fd:0},stderr:{connecting:!1,_hadError:!1,_parent:null,_host:null,_closeAfterHandlingError:!1,_events:{},_readableState:{highWaterMark:16384,buffer:[],bufferIndex:0,length:0,pipes:[],awaitDrainWriters:null,readable:!1},_writableState:{highWaterMark:16384,length:0,corked:0,writelen:0,bufferedIndex:0,pendingcb:0},allowHalfOpen:!1,_eventsCount:1,_sockname:null,_pendingData:null,_pendingEncoding:"",server:null,_server:null,_type:"pipe",fd:2,_isStdio:!0},env:{GITHUB_STATE:"/home/runner/work/_temp/_runner_file_commands/save_state_7d0927af-a53f-46dd-8cfd-0e9ad29a5452",STATS_TRP:"true",DEPLOYMENT_BASEPATH:"/opt/runner",DOTNET_NOLOGO:"1",USER:"runner",npm_config_user_agent:"npm/10.8.2 node/v20.18.3 linux x64 workspaces/false ci/github-actions",CI:"true",RUNNER_ENVIRONMENT:"github-hosted",GITHUB_ENV:"/home/runner/work/_temp/_runner_file_commands/set_env_7d0927af-a53f-46dd-8cfd-0e9ad29a5452",PIPX_HOME:"/opt/pipx",npm_node_execpath:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",JAVA_HOME_8_X64:"/usr/lib/jvm/temurin-8-jdk-amd64",SHLVL:"1",npm_config_noproxy:"",HOME:"/home/runner",RUNNER_TEMP:"/home/runner/work/_temp",GITHUB_EVENT_PATH:"/home/runner/work/_temp/_github_workflow/event.json",npm_package_json:"/home/runner/work/md/md/package.json",JAVA_HOME_11_X64:"/usr/lib/jvm/temurin-11-jdk-amd64",PIPX_BIN_DIR:"/opt/pipx_bin",GITHUB_REPOSITORY_OWNER:"doocs",GRADLE_HOME:"/usr/share/gradle-8.13",ANDROID_NDK_LATEST_HOME:"/usr/local/lib/android/sdk/ndk/28.0.13004108",JAVA_HOME_21_X64:"/usr/lib/jvm/temurin-21-jdk-amd64",STATS_RDCL:"true",GITHUB_RETENTION_DAYS:"90",GITHUB_REPOSITORY_OWNER_ID:"43716716",POWERSHELL_DISTRIBUTION_CHANNEL:"GitHub-Actions-ubuntu24",AZURE_EXTENSION_DIR:"/opt/az/azcliextensions",GITHUB_HEAD_REF:"",npm_config_userconfig:"/home/runner/.npmrc",npm_config_local_prefix:"/home/runner/work/md/md",SYSTEMD_EXEC_PID:"830",GITHUB_GRAPHQL_URL:"https://api.github.com/graphql",COLOR:"0",NVM_DIR:"/home/runner/.nvm",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"1",GOROOT_1_21_X64:"/opt/hostedtoolcache/go/1.21.13/x64",JAVA_HOME_17_X64:"/usr/lib/jvm/temurin-17-jdk-amd64",ImageVersion:"20250302.1.0",RUNNER_OS:"Linux",GITHUB_API_URL:"https://api.github.com",GOROOT_1_22_X64:"/opt/hostedtoolcache/go/1.22.12/x64",SWIFT_PATH:"/usr/share/swift/usr/bin",RUNNER_USER:"runner",STATS_V3PS:"true",CHROMEWEBDRIVER:"/usr/local/share/chromedriver-linux64",GOROOT_1_23_X64:"/opt/hostedtoolcache/go/1.23.6/x64",JOURNAL_STREAM:"8:7073",GITHUB_WORKFLOW:"Build and Deploy",_:"/opt/hostedtoolcache/node/20.18.3/x64/bin/npm",npm_config_prefix:"/opt/hostedtoolcache/node/20.18.3/x64",npm_config_npm_version:"10.8.2",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure",ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE:"/opt/actionarchivecache",STATS_D:"true",GITHUB_RUN_ID:"13738114923",STATS_VMFE:"true",npm_config_cache:"/home/runner/.npm",GITHUB_REF_TYPE:"branch",BOOTSTRAP_HASKELL_NONINTERACTIVE:"1",GITHUB_WORKFLOW_SHA:"b0ab984ebd1ab95b558bace366604e15551deff3",GITHUB_BASE_REF:"",ImageOS:"ubuntu24",GITHUB_WORKFLOW_REF:"doocs/md/.github/workflows/build.yml@refs/heads/main",PERFLOG_LOCATION_SETTING:"RUNNER_PERFLOG",GITHUB_ACTION_REPOSITORY:"",npm_config_node_gyp:"/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/md/md/node_modules/.bin:/home/runner/work/md/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/20.18.3/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",ANT_HOME:"/usr/share/ant",DOTNET_MULTILEVEL_LOOKUP:"0",RUNNER_TRACKING_ID:"github_fdf857ee-5fee-4fd4-98a2-63d82b9097a4",INVOCATION_ID:"f51a27b48d5b436ea3bda1f4cbbbb859",RUNNER_TOOL_CACHE:"/opt/hostedtoolcache",NODE:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",npm_package_name:"md",GITHUB_ACTION:"__run_2",GITHUB_RUN_NUMBER:"506",GITHUB_TRIGGERING_ACTOR:"yanglbme",RUNNER_ARCH:"X64",XDG_RUNTIME_DIR:"/run/user/1001",AGENT_TOOLSDIRECTORY:"/opt/hostedtoolcache",LANG:"C.UTF-8",VCPKG_INSTALLATION_ROOT:"/usr/local/share/vcpkg",CONDA:"/usr/share/miniconda",RUNNER_NAME:"GitHub-Actions-1000004055",XDG_CONFIG_HOME:"/home/runner/.config",STATS_VMD:"true",GITHUB_REF_NAME:"main",GITHUB_REPOSITORY:"doocs/md",STATS_D_D:"true",npm_lifecycle_script:"vite build",STATS_UE:"true",ANDROID_NDK_ROOT:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_ACTION_REF:"",DEBIAN_FRONTEND:"noninteractive",GITHUB_REPOSITORY_ID:"218952803",GITHUB_ACTIONS:"true",STATS_PIP:"false",npm_package_version:"1.6.0",npm_lifecycle_event:"build:only",GITHUB_REF_PROTECTED:"true",GITHUB_WORKSPACE:"/home/runner/work/md/md",ACCEPT_EULA:"Y",GITHUB_JOB:"build-and-deploy",RUNNER_PERFLOG:"/home/runner/perflog",GITHUB_SHA:"b0ab984ebd1ab95b558bace366604e15551deff3",GITHUB_RUN_ATTEMPT:"1",STATS_D_TC:"true",GITHUB_REF:"refs/heads/main",GITHUB_ACTOR:"yanglbme",ANDROID_SDK_ROOT:"/usr/local/lib/android/sdk",npm_config_globalconfig:"/opt/hostedtoolcache/node/20.18.3/x64/etc/npmrc",npm_config_init_module:"/home/runner/.npm-init.js",GITHUB_PATH:"/home/runner/work/_temp/_runner_file_commands/add_path_7d0927af-a53f-46dd-8cfd-0e9ad29a5452",JAVA_HOME:"/usr/lib/jvm/temurin-17-jdk-amd64",PWD:"/home/runner/work/md/md",GITHUB_ACTOR_ID:"21008209",RUNNER_WORKSPACE:"/home/runner/work/md",npm_execpath:"/opt/hostedtoolcache/node/20.18.3/x64/lib/node_modules/npm/bin/npm-cli.js",HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS:"3650",GITHUB_EVENT_NAME:"push",HOMEBREW_NO_AUTO_UPDATE:"1",ANDROID_HOME:"/usr/local/lib/android/sdk",GITHUB_SERVER_URL:"https://github.com",GECKOWEBDRIVER:"/usr/local/share/gecko_driver",GHCUP_INSTALL_BASE_PREFIX:"/usr/local",GITHUB_OUTPUT:"/home/runner/work/_temp/_runner_file_commands/set_output_7d0927af-a53f-46dd-8cfd-0e9ad29a5452",npm_config_global_prefix:"/opt/hostedtoolcache/node/20.18.3/x64",EDGEWEBDRIVER:"/usr/local/share/edge_driver",STATS_EXT:"true",npm_command:"run-script",ANDROID_NDK:"/usr/local/lib/android/sdk/ndk/27.2.12479018",SGX_AESM_ADDR:"1",CHROME_BIN:"/usr/bin/google-chrome",SELENIUM_JAR_PATH:"/usr/share/java/selenium-server.jar",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",STATS_EXTP:"https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data",ANDROID_NDK_HOME:"/usr/local/lib/android/sdk/ndk/27.2.12479018",GITHUB_STEP_SUMMARY:"/home/runner/work/_temp/_runner_file_commands/step_summary_7d0927af-a53f-46dd-8cfd-0e9ad29a5452",INIT_CWD:"/home/runner/work/md/md",EDITOR:"vi",NODE_ENV:"production",LAUNCH_EDITOR:"code"},title:"node",argv:["/opt/hostedtoolcache/node/20.18.3/x64/bin/node","/home/runner/work/md/md/node_modules/.bin/vite","build"],execArgv:[],pid:2179,ppid:2178,execPath:"/opt/hostedtoolcache/node/20.18.3/x64/bin/node",debugPort:9229,argv0:"node",_preload_modules:[],report:{directory:"",filename:"",compact:!1,excludeNetwork:!1,signal:"SIGUSR2",reportOnFatalError:!1,reportOnSignal:!1,reportOnUncaughtException:!1}};class ObjectUploader extends streamBrowserify.Transform{constructor(ed,ud,dd,hd,md,gd){super(),this.emptyStream=!0,this.client=ed,this.bucketName=ud,this.objectName=dd,this.partSize=hd,this.metaData=md,this.callback=gd,this.partNumber=1,this.oldParts=null,this.etags=[],this.id=null,this.on("error",yd=>{gd(yd)})}_transform(ed,ud,dd){this.emptyStream=!1;let hd="PUT",md={"Content-Length":ed.length},gd="";if(this.client.enableSHA256||(gd=(void 0)("md5").update(ed).digest(),md["Content-MD5"]=gd.toString("base64")),this.partNumber==1&&ed.length{if(Nd)return dd(Nd);let Ud={etag:sanitizeETag(Ld.headers.etag),versionId:getVersionId(Ld.headers)};Ld.on("data",()=>{}),define_process_default.nextTick(()=>{this.callback(null,Ud)}),dd()});return}if(this.id===null){this.once("ready",()=>{this._transform(ed,ud,dd)}),this.client.findUploadId(this.bucketName,this.objectName,(wd,Nd)=>{if(wd)return this.emit("error",wd);if(!Nd){this.client.initiateNewMultipartUpload(this.bucketName,this.objectName,this.metaData).then(Ld=>{this.id=Ld,this.emit("ready")},Ld=>dd(Ld));return}this.id=Nd,this.client.listParts(this.bucketName,this.objectName,Nd).then(Ld=>{Ld||(Ld=[]),this.oldParts=Ld.reduce(function(Ud,jd){return Ud[jd.part]||(Ud[jd.part]=jd),Ud},{}),this.emit("ready")},Ld=>this.emit("error",Ld))});return}let yd=this.partNumber++;if(this.oldParts){let wd=this.oldParts[yd];if(gd||(gd=(void 0)("md5").update(ed).digest()),wd&&gd.toString("hex")===wd.etag){this.etags.push({part:yd,etag:wd.etag}),dd();return}}let vd=queryString.stringify({partNumber:yd,uploadId:this.id}),Cd={method:hd,query:vd,headers:md,bucketName:this.bucketName,objectName:this.objectName};this.client.makeRequest(Cd,ed,[200],"",!0,(wd,Nd)=>{if(wd)return dd(wd);let Ld=Nd.headers.etag;Ld&&(Ld=Ld.replace(/^"/,"").replace(/"$/,"")),this.etags.push({part:yd,etag:Ld}),Nd.on("data",()=>{}),dd()})}_flush(ed){if(this.emptyStream){let ud="PUT",dd=Object.assign({},this.metaData,{"Content-Length":0}),hd={method:ud,headers:dd,query:"",bucketName:this.bucketName,objectName:this.objectName};this.client.makeRequest(hd,"",[200],"",!0,(md,gd)=>{if(md)return ed(md);let yd={etag:sanitizeETag(gd.headers.etag),versionId:getVersionId(gd.headers)};gd.on("data",()=>{}),define_process_default.nextTick(()=>{this.callback(null,yd)}),ed()});return}this.id!==null&&this.client.completeMultipartUpload(this.bucketName,this.objectName,this.id,this.etags,(ud,dd)=>{if(ud)return ed(ud);define_process_default.nextTick(()=>{this.callback(null,dd)}),ed()})}}function promisify(Ra){return function(){if(typeof arguments[arguments.length-1]=="function")return Ra.apply(this,arguments);let ud=[...arguments];return new Promise((dd,hd)=>{ud.push((md,gd)=>{if(md)return hd(md);dd(gd)}),Ra.apply(this,ud)})}}class Client extends TypedClient{setAppInfo(ed,ud){if(!isString(ed))throw new TypeError(`Invalid appName: ${ed}`);if(ed.trim()==="")throw new InvalidArgumentError("Input appName cannot be empty.");if(!isString(ud))throw new TypeError(`Invalid appVersion: ${ud}`);if(ud.trim()==="")throw new InvalidArgumentError("Input appVersion cannot be empty.");this.userAgent=`${this.userAgent} ${ed}/${ud}`}calculatePartSize(ed){if(!isNumber(ed))throw new TypeError('size should be of type "number"');if(ed>this.maxObjectSize)throw new TypeError(`size should not be more than ${this.maxObjectSize}`);if(this.overRidePartSize)return this.partSize;for(var ud=this.partSize;;){if(ud*1e4>ed)return ud;ud+=16*1024*1024}}makeBucket(ed,ud,dd={},hd){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(isObject(ud)&&(hd=dd,dd=ud,ud=""),isFunction(ud)&&(hd=ud,ud="",dd={}),isFunction(dd)&&(hd=dd,dd={}),!isString(ud))throw new TypeError('region should be of type "string"');if(!isObject(dd))throw new TypeError('makeOpts should be of type "object"');if(!isFunction(hd))throw new TypeError('callback should be of type "function"');var md="";if(ud&&this.region&&ud!==this.region)throw new InvalidArgumentError(`Configured region ${this.region}, requested ${ud}`);if(ud&&ud!==DEFAULT_REGION){var gd=[];gd.push({_attr:{xmlns:"http://s3.amazonaws.com/doc/2006-03-01/"}}),gd.push({LocationConstraint:ud});var yd={CreateBucketConfiguration:gd};md=Xml(yd)}var vd="PUT",Cd={};dd.ObjectLocking&&(Cd["x-amz-bucket-object-lock-enabled"]=!0),ud||(ud=DEFAULT_REGION);const wd=Nd=>{if(Nd&&(ud===""||ud===DEFAULT_REGION))if(Nd.code==="AuthorizationHeaderMalformed"&&Nd.region!=="")this.makeRequest({method:vd,bucketName:ed,headers:Cd},md,[200],Nd.region,!1,hd);else return hd&&hd(Nd);return hd&&hd(Nd)};this.makeRequest({method:vd,bucketName:ed,headers:Cd},md,[200],ud,!1,wd)}listIncompleteUploads(ed,ud,dd){if(ud===void 0&&(ud=""),dd===void 0&&(dd=!1),!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidPrefix(ud))throw new InvalidPrefixError(`Invalid prefix : ${ud}`);if(!isBoolean(dd))throw new TypeError('recursive should be of type "boolean"');var hd=dd?"":"/",md="",gd="",yd=[],vd=!1,Cd=streamBrowserify.Readable({objectMode:!0});return Cd._read=()=>{if(yd.length)return Cd.push(yd.shift());if(vd)return Cd.push(null);this.listIncompleteUploadsQuery(ed,ud,md,gd,hd).on("error",wd=>Cd.emit("error",wd)).on("data",wd=>{wd.prefixes.forEach(Nd=>yd.push(Nd)),index.eachSeries(wd.uploads,(Nd,Ld)=>{this.listParts(ed,Nd.key,Nd.uploadId).then(Ud=>{Nd.size=Ud.reduce((jd,Gd)=>jd+Gd.size,0),yd.push(Nd),Ld()},Ld)},Nd=>{if(Nd){Cd.emit("error",Nd);return}wd.isTruncated?(md=wd.nextKeyMarker,gd=wd.nextUploadIdMarker):vd=!0,Cd._read()})})},Cd}bucketExists(ed,ud){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isFunction(ud))throw new TypeError('callback should be of type "function"');var dd="HEAD";this.makeRequest({method:dd,bucketName:ed},"",[200],"",!1,hd=>{if(hd)return hd.code=="NoSuchBucket"||hd.code=="NotFound"?ud(null,!1):ud(hd);ud(null,!0)})}removeIncompleteUpload(ed,ud,dd){if(!isValidBucketName(ed))throw new IsValidBucketNameError("Invalid bucket name: "+ed);if(!isValidObjectName(ud))throw new InvalidObjectNameError(`Invalid object name: ${ud}`);if(!isFunction(dd))throw new TypeError('callback should be of type "function"');var hd;index.during(md=>{this.findUploadId(ed,ud,(gd,yd)=>{if(gd)return md(gd);hd=yd,md(null,yd)})},md=>{var gd="DELETE",yd=`uploadId=${hd}`;this.makeRequest({method:gd,bucketName:ed,objectName:ud,query:yd},"",[204],"",!1,vd=>md(vd))},dd)}fGetObject(ed,ud,dd,hd={},md){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidObjectName(ud))throw new InvalidObjectNameError(`Invalid object name: ${ud}`);if(!isString(dd))throw new TypeError('filePath should be of type "string"');if(isFunction(hd)&&(md=hd,hd={}),!isFunction(md))throw new TypeError('callback should be of type "function"');var gd,yd,vd,Cd=wd=>{if(wd)return md(wd);(void 0)(gd,dd,md)};index.waterfall([wd=>this.statObject(ed,ud,hd,wd),(wd,Nd)=>{vd=wd,(void 0)(pathBrowserify.dirname(dd),{recursive:!0},Ld=>Nd(Ld))},wd=>{gd=`${dd}.${vd.etag}.part.minio`,(void 0)(gd,(Nd,Ld)=>{var Ud=0;if(Nd)yd=(void 0)(gd,{flags:"w"});else{if(vd.size===Ld.size)return Cd();Ud=Ld.size,yd=(void 0)(gd,{flags:"a"})}this.getPartialObject(ed,ud,Ud,0,hd,wd)})},(wd,Nd)=>{pipesetup(wd,yd).on("error",Ld=>Nd(Ld)).on("finish",Nd)},wd=>(void 0)(gd,wd),(wd,Nd)=>{if(wd.size===vd.size)return Nd();Nd(new Error("Size mismatch between downloaded file and the object"))}],Cd)}getObject(ed,ud,dd={},hd){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidObjectName(ud))throw new InvalidObjectNameError(`Invalid object name: ${ud}`);if(isFunction(dd)&&(hd=dd,dd={}),!isFunction(hd))throw new TypeError('callback should be of type "function"');this.getPartialObject(ed,ud,0,0,dd,hd)}getPartialObject(ed,ud,dd,hd,md={},gd){if(isFunction(hd)&&(gd=hd,hd=0),!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidObjectName(ud))throw new InvalidObjectNameError(`Invalid object name: ${ud}`);if(!isNumber(dd))throw new TypeError('offset should be of type "number"');if(!isNumber(hd))throw new TypeError('length should be of type "number"');if(isFunction(md)&&(gd=md,md={}),!isFunction(gd))throw new TypeError('callback should be of type "function"');var yd="";(dd||hd)&&(dd?yd=`bytes=${+dd}-`:(yd="bytes=0-",dd=0),hd&&(yd+=`${+hd+dd-1}`));var vd={};yd!==""&&(vd.range=yd);var Cd=[200];yd&&Cd.push(206);var wd="GET",Nd=queryString.stringify(md);this.makeRequest({method:wd,bucketName:ed,objectName:ud,headers:vd,query:Nd},"",Cd,"",!0,gd)}fPutObject(ed,ud,dd,hd,md){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidObjectName(ud))throw new InvalidObjectNameError(`Invalid object name: ${ud}`);if(!isString(dd))throw new TypeError('filePath should be of type "string"');if(isFunction(hd)&&(md=hd,hd={}),!isObject(hd))throw new TypeError('metaData should be of type "object"');hd=insertContentType(hd,dd),(void 0)(dd,(gd,yd)=>gd?md(gd):this.putObject(ed,ud,(void 0)(dd),yd.size,hd,md))}putObject(ed,ud,dd,hd,md,gd){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidObjectName(ud))throw new InvalidObjectNameError(`Invalid object name: ${ud}`);if(isFunction(hd)?(gd=hd,md={}):isFunction(md)&&(gd=md,md={}),isObject(hd)&&(md=hd),md=prependXAMZMeta(md),typeof dd=="string"||dd instanceof Buffer$4)hd=dd.length,dd=readableStream(dd);else if(!isReadableStream(dd))throw new TypeError('third argument should be of type "stream.Readable" or "Buffer" or "string"');if(!isFunction(gd))throw new TypeError('callback should be of type "function"');if(isNumber(hd)&&hd<0)throw new InvalidArgumentError(`size cannot be negative, given size: ${hd}`);isNumber(hd)||(hd=this.maxObjectSize),hd=this.calculatePartSize(hd);let yd=new BlockStream2({size:hd,zeroPadding:!1}),vd=new ObjectUploader(this,ed,ud,hd,md,gd);pipesetup(dd,yd,vd)}copyObjectV1(ed,ud,dd,hd,md){var gd=ed,yd=ud,vd=dd,Cd,wd;if(typeof hd=="function"&&md===void 0?(Cd=null,wd=hd):(Cd=hd,wd=md),!isValidBucketName(gd))throw new InvalidBucketNameError("Invalid bucket name: "+gd);if(!isValidObjectName(yd))throw new InvalidObjectNameError(`Invalid object name: ${yd}`);if(!isString(vd))throw new TypeError('srcObject should be of type "string"');if(vd==="")throw new InvalidPrefixError("Empty source prefix");if(Cd!==null&&!(Cd instanceof CopyConditions))throw new TypeError('conditions should be of type "CopyConditions"');var Nd={};Nd["x-amz-copy-source"]=uriResourceEscape(vd),Cd!==null&&(Cd.modified!==""&&(Nd["x-amz-copy-source-if-modified-since"]=Cd.modified),Cd.unmodified!==""&&(Nd["x-amz-copy-source-if-unmodified-since"]=Cd.unmodified),Cd.matchETag!==""&&(Nd["x-amz-copy-source-if-match"]=Cd.matchETag),Cd.matchEtagExcept!==""&&(Nd["x-amz-copy-source-if-none-match"]=Cd.matchETagExcept));var Ld="PUT";this.makeRequest({method:Ld,bucketName:gd,objectName:yd,headers:Nd},"",[200],"",!0,(Ud,jd)=>{if(Ud)return wd(Ud);var Gd=getCopyObjectTransformer();pipesetup(jd,Gd).on("error",Yd=>wd(Yd)).on("data",Yd=>wd(null,Yd))})}copyObjectV2(ed,ud,dd){if(!(ed instanceof CopySourceOptions))throw new InvalidArgumentError("sourceConfig should of type CopySourceOptions ");if(!(ud instanceof CopyDestinationOptions))throw new InvalidArgumentError("destConfig should of type CopyDestinationOptions ");if(!ud.validate()||!ud.validate())return!1;if(!isFunction(dd))throw new TypeError('callback should be of type "function"');const hd=Object.assign({},ed.getHeaders(),ud.getHeaders()),md=ud.Bucket,gd=ud.Object;this.makeRequest({method:"PUT",bucketName:md,objectName:gd,headers:hd},"",[200],"",!0,(vd,Cd)=>{if(vd)return dd(vd);const wd=getCopyObjectTransformer();pipesetup(Cd,wd).on("error",Nd=>dd(Nd)).on("data",Nd=>{const Ld=Cd.headers,Ud={Bucket:ud.Bucket,Key:ud.Object,LastModified:Nd.LastModified,MetaData:extractMetadata(Ld),VersionId:getVersionId(Ld),SourceVersionId:getSourceVersionId(Ld),Etag:sanitizeETag(Ld.etag),Size:+Ld["content-length"]};return dd(null,Ud)})})}copyObject(...ed){return ed[0]instanceof CopySourceOptions&&ed[1]instanceof CopyDestinationOptions?this.copyObjectV2(...arguments):this.copyObjectV1(...arguments)}listObjectsQuery(ed,ud,dd,hd={}){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isString(ud))throw new TypeError('prefix should be of type "string"');if(!isString(dd))throw new TypeError('marker should be of type "string"');let{Delimiter:md,MaxKeys:gd,IncludeVersion:yd}=hd;if(!isObject(hd))throw new TypeError('listQueryOpts should be of type "object"');if(!isString(md))throw new TypeError('Delimiter should be of type "string"');if(!isNumber(gd))throw new TypeError('MaxKeys should be of type "number"');const vd=[];vd.push(`prefix=${uriEscape(ud)}`),vd.push(`delimiter=${uriEscape(md)}`),vd.push("encoding-type=url"),yd&&vd.push("versions"),dd&&(dd=uriEscape(dd),yd?vd.push(`key-marker=${dd}`):vd.push(`marker=${dd}`)),gd&&(gd>=1e3&&(gd=1e3),vd.push(`max-keys=${gd}`)),vd.sort();var Cd="";vd.length>0&&(Cd=`${vd.join("&")}`);var wd="GET",Nd=getListObjectsTransformer();return this.makeRequest({method:wd,bucketName:ed,query:Cd},"",[200],"",!0,(Ld,Ud)=>{if(Ld)return Nd.emit("error",Ld);pipesetup(Ud,Nd)}),Nd}listObjects(ed,ud,dd,hd={}){if(ud===void 0&&(ud=""),dd===void 0&&(dd=!1),!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidPrefix(ud))throw new InvalidPrefixError(`Invalid prefix : ${ud}`);if(!isString(ud))throw new TypeError('prefix should be of type "string"');if(!isBoolean(dd))throw new TypeError('recursive should be of type "boolean"');if(!isObject(hd))throw new TypeError('listOpts should be of type "object"');var md="";const gd={Delimiter:dd?"":"/",MaxKeys:1e3,IncludeVersion:hd.IncludeVersion};var yd=[],vd=!1,Cd=streamBrowserify.Readable({objectMode:!0});return Cd._read=()=>{if(yd.length){Cd.push(yd.shift());return}if(vd)return Cd.push(null);this.listObjectsQuery(ed,ud,md,gd).on("error",wd=>Cd.emit("error",wd)).on("data",wd=>{wd.isTruncated?md=wd.nextMarker||wd.versionIdMarker:vd=!0,yd=wd.objects,Cd._read()})},Cd}listObjectsV2Query(ed,ud,dd,hd,md,gd){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isString(ud))throw new TypeError('prefix should be of type "string"');if(!isString(dd))throw new TypeError('continuationToken should be of type "string"');if(!isString(hd))throw new TypeError('delimiter should be of type "string"');if(!isNumber(md))throw new TypeError('maxKeys should be of type "number"');if(!isString(gd))throw new TypeError('startAfter should be of type "string"');var yd=[];yd.push("list-type=2"),yd.push("encoding-type=url"),yd.push(`prefix=${uriEscape(ud)}`),yd.push(`delimiter=${uriEscape(hd)}`),dd&&(dd=uriEscape(dd),yd.push(`continuation-token=${dd}`)),gd&&(gd=uriEscape(gd),yd.push(`start-after=${gd}`)),md&&(md>=1e3&&(md=1e3),yd.push(`max-keys=${md}`)),yd.sort();var vd="";yd.length>0&&(vd=`${yd.join("&")}`);var Cd="GET",wd=getListObjectsV2Transformer();return this.makeRequest({method:Cd,bucketName:ed,query:vd},"",[200],"",!0,(Nd,Ld)=>{if(Nd)return wd.emit("error",Nd);pipesetup(Ld,wd)}),wd}listObjectsV2(ed,ud,dd,hd){if(ud===void 0&&(ud=""),dd===void 0&&(dd=!1),hd===void 0&&(hd=""),!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidPrefix(ud))throw new InvalidPrefixError(`Invalid prefix : ${ud}`);if(!isString(ud))throw new TypeError('prefix should be of type "string"');if(!isBoolean(dd))throw new TypeError('recursive should be of type "boolean"');if(!isString(hd))throw new TypeError('startAfter should be of type "string"');var md=dd?"":"/",gd="",yd=[],vd=!1,Cd=streamBrowserify.Readable({objectMode:!0});return Cd._read=()=>{if(yd.length){Cd.push(yd.shift());return}if(vd)return Cd.push(null);this.listObjectsV2Query(ed,ud,gd,md,1e3,hd).on("error",wd=>Cd.emit("error",wd)).on("data",wd=>{wd.isTruncated?gd=wd.nextContinuationToken:vd=!0,yd=wd.objects,Cd._read()})},Cd}removeObjects(ed,ud,dd){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!Array.isArray(ud))throw new InvalidArgumentError("objectsList should be a list");if(!isFunction(dd))throw new TypeError('callback should be of type "function"');const hd=1e3,md="delete",gd="POST";let yd=ud.reduce((wd,Nd)=>(wd.list.push(Nd),wd.list.length===hd&&(wd.listOfList.push(wd.list),wd.list=[]),wd),{listOfList:[],list:[]});yd.list.length>0&&yd.listOfList.push(yd.list);const vd=new Encoder,Cd=[];index.eachSeries(yd.listOfList,(wd,Nd)=>{var Ld=[];wd.forEach(function(qd){isObject(qd)?Ld.push({Key:qd.name,VersionId:qd.versionId}):Ld.push({Key:qd})});let Ud={Delete:{Quiet:!0,Object:Ld}},Gd=new xml2js.Builder({headless:!0}).buildObject(Ud);Gd=Buffer$4.from(vd.encode(Gd));const Yd={};Yd["Content-MD5"]=toMd5(Gd);let zd;this.makeRequest({method:gd,bucketName:ed,query:md,headers:Yd},Gd,[200],"",!0,(qd,Wd)=>{if(qd)return Nd(qd);pipesetup(Wd,removeObjectsTransformer()).on("data",Xd=>{zd=Xd}).on("error",Xd=>Nd(Xd,null)).on("end",()=>(Cd.push(zd),Nd(null,zd)))})},()=>{dd(null,_.flatten(Cd))})}getBucketPolicy(ed,ud){if(!isValidBucketName(ed))throw new InvalidBucketNameError(`Invalid bucket name: ${ed}`);if(!isFunction(ud))throw new TypeError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:ed,query:"policy"},"",[200],"",!0,(md,gd)=>{if(md)return ud(md);let yd=Buffer$4.from("");pipesetup(gd,getConcater()).on("data",vd=>yd=vd).on("error",ud).on("end",()=>{ud(null,yd.toString())})})}setBucketPolicy(ed,ud,dd){if(!isValidBucketName(ed))throw new InvalidBucketNameError(`Invalid bucket name: ${ed}`);if(!isString(ud))throw new InvalidBucketPolicyError(`Invalid bucket policy: ${ud} - must be "string"`);if(!isFunction(dd))throw new TypeError('callback should be of type "function"');let hd="DELETE",md="policy";ud&&(hd="PUT"),this.makeRequest({method:hd,bucketName:ed,query:md},ud,[204],"",!1,dd)}presignedUrl(ed,ud,dd,hd,md,gd,yd){if(this.anonymous)throw new AnonymousRequestError("Presigned "+ed+" url cannot be generated for anonymous requests");if(isFunction(gd)&&(yd=gd,gd=new Date),isFunction(md)&&(yd=md,md={},gd=new Date),isFunction(hd)&&(yd=hd,md={},hd=24*60*60*7,gd=new Date),!isNumber(hd))throw new TypeError('expires should be of type "number"');if(!isObject(md))throw new TypeError('reqParams should be of type "object"');if(!isValidDate(gd))throw new TypeError('requestDate should be of type "Date" and valid');if(!isFunction(yd))throw new TypeError('callback should be of type "function"');var vd=queryString.stringify(md);this.getBucketRegion(ud,(Cd,wd)=>{if(Cd)return yd(Cd);var Nd,Ld=this.getRequestOptions({method:ed,region:wd,bucketName:ud,objectName:dd,query:vd});this.checkAndRefreshCreds();try{Nd=presignSignatureV4(Ld,this.accessKey,this.secretKey,this.sessionToken,wd,gd,hd)}catch(Ud){return yd(Ud)}yd(null,Nd)})}presignedGetObject(ed,ud,dd,hd,md,gd){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidObjectName(ud))throw new InvalidObjectNameError(`Invalid object name: ${ud}`);isFunction(hd)&&(gd=hd,hd={},md=new Date);var yd=["response-content-type","response-content-language","response-expires","response-cache-control","response-content-disposition","response-content-encoding"];return yd.forEach(vd=>{if(hd!==void 0&&hd[vd]!==void 0&&!isString(hd[vd]))throw new TypeError(`response header ${vd} should be of type "string"`)}),this.presignedUrl("GET",ed,ud,dd,hd,md,gd)}presignedPutObject(ed,ud,dd,hd){if(!isValidBucketName(ed))throw new InvalidBucketNameError(`Invalid bucket name: ${ed}`);if(!isValidObjectName(ud))throw new InvalidObjectNameError(`Invalid object name: ${ud}`);return this.presignedUrl("PUT",ed,ud,dd,hd)}newPostPolicy(){return new PostPolicy}presignedPostPolicy(ed,ud){if(this.anonymous)throw new AnonymousRequestError("Presigned POST policy cannot be generated for anonymous requests");if(!isObject(ed))throw new TypeError('postPolicy should be of type "object"');if(!isFunction(ud))throw new TypeError('cb should be of type "function"');this.getBucketRegion(ed.formData.bucket,(dd,hd)=>{if(dd)return ud(dd);var md=new Date,gd=makeDateLong(md);if(this.checkAndRefreshCreds(),!ed.policy.expiration){var yd=new Date;yd.setSeconds(24*60*60*7),ed.setExpires(yd)}ed.policy.conditions.push(["eq","$x-amz-date",gd]),ed.formData["x-amz-date"]=gd,ed.policy.conditions.push(["eq","$x-amz-algorithm","AWS4-HMAC-SHA256"]),ed.formData["x-amz-algorithm"]="AWS4-HMAC-SHA256",ed.policy.conditions.push(["eq","$x-amz-credential",this.accessKey+"/"+getScope(hd,md)]),ed.formData["x-amz-credential"]=this.accessKey+"/"+getScope(hd,md),this.sessionToken&&(ed.policy.conditions.push(["eq","$x-amz-security-token",this.sessionToken]),ed.formData["x-amz-security-token"]=this.sessionToken);var vd=Buffer$4.from(JSON.stringify(ed.policy)).toString("base64");ed.formData.policy=vd;var Cd=postPresignSignatureV4(hd,md,this.secretKey,vd);ed.formData["x-amz-signature"]=Cd;var wd={};wd.region=hd,wd.bucketName=ed.formData.bucket;var Nd=this.getRequestOptions(wd),Ld=this.port==80||this.port===443?"":`:${this.port.toString()}`,Ud=`${Nd.protocol}//${Nd.host}${Ld}${Nd.path}`;ud(null,{postURL:Ud,formData:ed.formData})})}completeMultipartUpload(ed,ud,dd,hd,md){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidObjectName(ud))throw new InvalidObjectNameError(`Invalid object name: ${ud}`);if(!isString(dd))throw new TypeError('uploadId should be of type "string"');if(!isObject(hd))throw new TypeError('etags should be of type "Array"');if(!isFunction(md))throw new TypeError('cb should be of type "function"');if(!dd)throw new InvalidArgumentError("uploadId cannot be empty");var gd="POST",yd=`uploadId=${uriEscape(dd)}`,vd=[];hd.forEach(Nd=>{vd.push({Part:[{PartNumber:Nd.part},{ETag:Nd.etag}]})});var Cd={CompleteMultipartUpload:vd},wd=Xml(Cd);this.makeRequest({method:gd,bucketName:ed,objectName:ud,query:yd},wd,[200],"",!0,(Nd,Ld)=>{if(Nd)return md(Nd);var Ud=getCompleteMultipartTransformer();pipesetup(Ld,Ud).on("error",jd=>md(jd)).on("data",jd=>{if(jd.errCode)md(new S3Error(jd.errMessage));else{const Gd={etag:jd.etag,versionId:getVersionId(Ld.headers)};md(null,Gd)}})})}listIncompleteUploadsQuery(ed,ud,dd,hd,md){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isString(ud))throw new TypeError('prefix should be of type "string"');if(!isString(dd))throw new TypeError('keyMarker should be of type "string"');if(!isString(hd))throw new TypeError('uploadIdMarker should be of type "string"');if(!isString(md))throw new TypeError('delimiter should be of type "string"');var gd=[];gd.push(`prefix=${uriEscape(ud)}`),gd.push(`delimiter=${uriEscape(md)}`),dd&&(dd=uriEscape(dd),gd.push(`key-marker=${dd}`)),hd&&gd.push(`upload-id-marker=${hd}`);var yd=1e3;gd.push(`max-uploads=${yd}`),gd.sort(),gd.unshift("uploads");var vd="";gd.length>0&&(vd=`${gd.join("&")}`);var Cd="GET",wd=getListMultipartTransformer();return this.makeRequest({method:Cd,bucketName:ed,query:vd},"",[200],"",!0,(Nd,Ld)=>{if(Nd)return wd.emit("error",Nd);pipesetup(Ld,wd)}),wd}findUploadId(ed,ud,dd){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidObjectName(ud))throw new InvalidObjectNameError(`Invalid object name: ${ud}`);if(!isFunction(dd))throw new TypeError('cb should be of type "function"');var hd,md=(gd,yd)=>{this.listIncompleteUploadsQuery(ed,ud,gd,yd,"").on("error",vd=>dd(vd)).on("data",vd=>{if(vd.uploads.forEach(Cd=>{if(Cd.key===ud&&(!hd||Cd.initiated.getTime()>hd.initiated.getTime())){hd=Cd;return}}),vd.isTruncated){md(vd.nextKeyMarker,vd.nextUploadIdMarker);return}if(hd)return dd(null,hd.uploadId);dd(null,void 0)})};md("","")}setBucketNotification(ed,ud,dd){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isObject(ud))throw new TypeError('notification config should be of type "Object"');if(!isFunction(dd))throw new TypeError('callback should be of type "function"');var hd="PUT",md="notification",gd=new xml2js.Builder({rootName:"NotificationConfiguration",renderOpts:{pretty:!1},headless:!0}),yd=gd.buildObject(ud);this.makeRequest({method:hd,bucketName:ed,query:md},yd,[200],"",!1,dd)}removeAllBucketNotification(ed,ud){this.setBucketNotification(ed,new NotificationConfig,ud)}getBucketNotification(ed,ud){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isFunction(ud))throw new TypeError('callback should be of type "function"');var dd="GET",hd="notification";this.makeRequest({method:dd,bucketName:ed,query:hd},"",[200],"",!0,(md,gd)=>{if(md)return ud(md);var yd=getBucketNotificationTransformer(),vd;pipesetup(gd,yd).on("data",Cd=>vd=Cd).on("error",Cd=>ud(Cd)).on("end",()=>ud(null,vd))})}listenBucketNotification(ed,ud,dd,hd){if(!isValidBucketName(ed))throw new InvalidBucketNameError(`Invalid bucket name: ${ed}`);if(!isString(ud))throw new TypeError("prefix must be of type string");if(!isString(dd))throw new TypeError("suffix must be of type string");if(!Array.isArray(hd))throw new TypeError("events must be of type Array");let md=new NotificationPoller(this,ed,ud,dd,hd);return md.start(),md}getBucketVersioning(ed,ud){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isFunction(ud))throw new InvalidArgumentError('callback should be of type "function"');var dd="GET",hd="versioning";this.makeRequest({method:dd,bucketName:ed,query:hd},"",[200],"",!0,(md,gd)=>{if(md)return ud(md);let yd=Buffer$4.from("");pipesetup(gd,bucketVersioningTransformer()).on("data",vd=>{yd=vd}).on("error",ud).on("end",()=>{ud(null,yd)})})}setBucketVersioning(ed,ud,dd){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!Object.keys(ud).length)throw new InvalidArgumentError('versionConfig should be of type "object"');if(!isFunction(dd))throw new TypeError('callback should be of type "function"');var hd="PUT",md="versioning",gd=new xml2js.Builder({rootName:"VersioningConfiguration",renderOpts:{pretty:!1},headless:!0}),yd=gd.buildObject(ud);this.makeRequest({method:hd,bucketName:ed,query:md},yd,[200],"",!1,dd)}setTagging(ed){const{bucketName:ud,objectName:dd,tags:hd,putOpts:md={},cb:gd}=ed,yd="PUT";let vd="tagging";md&&md.versionId&&(vd=`${vd}&versionId=${md.versionId}`);const Cd=[];for(const[Yd,zd]of Object.entries(hd))Cd.push({Key:Yd,Value:zd});const wd={Tagging:{TagSet:{Tag:Cd}}},Nd=new Encoder,Ld={};let jd=new xml2js.Builder({headless:!0,renderOpts:{pretty:!1}}).buildObject(wd);jd=Buffer$4.from(Nd.encode(jd)),Ld["Content-MD5"]=toMd5(jd);const Gd={method:yd,bucketName:ud,query:vd,headers:Ld};dd&&(Gd.objectName=dd),Ld["Content-MD5"]=toMd5(jd),this.makeRequest(Gd,jd,[200],"",!1,gd)}setBucketTagging(ed,ud,dd){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isObject(ud))throw new InvalidArgumentError('tags should be of type "object"');if(Object.keys(ud).length>10)throw new InvalidArgumentError('maximum tags allowed is 10"');if(!isFunction(dd))throw new InvalidArgumentError('callback should be of type "function"');return this.setTagging({bucketName:ed,tags:ud,cb:dd})}setObjectTagging(ed,ud,dd,hd={},md){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidObjectName(ud))throw new InvalidBucketNameError("Invalid object name: "+ud);if(isFunction(hd)&&(md=hd,hd={}),!isObject(dd))throw new InvalidArgumentError('tags should be of type "object"');if(Object.keys(dd).length>10)throw new InvalidArgumentError('Maximum tags allowed is 10"');if(!isFunction(md))throw new TypeError('callback should be of type "function"');return this.setTagging({bucketName:ed,objectName:ud,tags:dd,putOpts:hd,cb:md})}removeTagging({bucketName:ed,objectName:ud,removeOpts:dd,cb:hd}){const md="DELETE";let gd="tagging";dd&&Object.keys(dd).length&&dd.versionId&&(gd=`${gd}&versionId=${dd.versionId}`);const yd={method:md,bucketName:ed,objectName:ud,query:gd};ud&&(yd.objectName=ud),this.makeRequest(yd,"",[200,204],"",!0,hd)}removeBucketTagging(ed,ud){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isFunction(ud))throw new TypeError('callback should be of type "function"');return this.removeTagging({bucketName:ed,cb:ud})}removeObjectTagging(ed,ud,dd,hd){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidObjectName(ud))throw new InvalidBucketNameError("Invalid object name: "+ud);if(isFunction(dd)&&(hd=dd,dd={}),dd&&Object.keys(dd).length&&!isObject(dd))throw new InvalidArgumentError('removeOpts should be of type "object"');if(!isFunction(hd))throw new TypeError('callback should be of type "function"');return this.removeTagging({bucketName:ed,objectName:ud,removeOpts:dd,cb:hd})}getBucketTagging(ed,ud){if(!isValidBucketName(ed))throw new InvalidBucketNameError(`Invalid bucket name: ${ed}`);const md={method:"GET",bucketName:ed,query:"tagging"};this.makeRequest(md,"",[200],"",!0,(gd,yd)=>{var vd=getTagsTransformer();if(gd)return ud(gd);let Cd;pipesetup(yd,vd).on("data",wd=>Cd=wd).on("error",wd=>ud(wd)).on("end",()=>ud(null,Cd))})}getObjectTagging(ed,ud,dd={},hd=()=>!1){const md="GET";let gd="tagging";if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidObjectName(ud))throw new InvalidBucketNameError("Invalid object name: "+ud);if(isFunction(dd)&&(hd=dd,dd={}),!isObject(dd))throw new InvalidArgumentError('getOpts should be of type "object"');if(!isFunction(hd))throw new TypeError('callback should be of type "function"');dd&&dd.versionId&&(gd=`${gd}&versionId=${dd.versionId}`);const yd={method:md,bucketName:ed,query:gd};ud&&(yd.objectName=ud),this.makeRequest(yd,"",[200],"",!0,(vd,Cd)=>{const wd=getTagsTransformer();if(vd)return hd(vd);let Nd;pipesetup(Cd,wd).on("data",Ld=>Nd=Ld).on("error",Ld=>hd(Ld)).on("end",()=>hd(null,Nd))})}applyBucketLifecycle(ed,ud,dd){const hd="PUT",md="lifecycle",gd=new Encoder,yd={};let Cd=new xml2js.Builder({rootName:"LifecycleConfiguration",headless:!0,renderOpts:{pretty:!1}}).buildObject(ud);Cd=Buffer$4.from(gd.encode(Cd));const wd={method:hd,bucketName:ed,query:md,headers:yd};yd["Content-MD5"]=toMd5(Cd),this.makeRequest(wd,Cd,[200],"",!1,dd)}removeBucketLifecycle(ed,ud){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);this.makeRequest({method:"DELETE",bucketName:ed,query:"lifecycle"},"",[204],"",!1,ud)}setBucketLifecycle(ed,ud=null,dd){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);_.isEmpty(ud)?this.removeBucketLifecycle(ed,dd):this.applyBucketLifecycle(ed,ud,dd)}getBucketLifecycle(ed,ud){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);const md={method:"GET",bucketName:ed,query:"lifecycle"};this.makeRequest(md,"",[200],"",!0,(gd,yd)=>{const vd=lifecycleTransformer();if(gd)return ud(gd);let Cd;pipesetup(yd,vd).on("data",wd=>Cd=wd).on("error",wd=>ud(wd)).on("end",()=>ud(null,Cd))})}setObjectLockConfig(ed,ud={},dd){const hd=[RETENTION_MODES.COMPLIANCE,RETENTION_MODES.GOVERNANCE],md=[RETENTION_VALIDITY_UNITS.DAYS,RETENTION_VALIDITY_UNITS.YEARS];if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(ud.mode&&!hd.includes(ud.mode))throw new TypeError(`lockConfigOpts.mode should be one of ${hd}`);if(ud.unit&&!md.includes(ud.unit))throw new TypeError(`lockConfigOpts.unit should be one of ${md}`);if(ud.validity&&!isNumber(ud.validity))throw new TypeError("lockConfigOpts.validity should be a number");const gd="PUT",yd="object-lock";let vd={ObjectLockEnabled:"Enabled"};const Cd=Object.keys(ud);if(Cd.length>0){if(_.difference(Cd,["unit","mode","validity"]).length!==0)throw new TypeError("lockConfigOpts.mode,lockConfigOpts.unit,lockConfigOpts.validity all the properties should be specified.");vd.Rule={DefaultRetention:{}},ud.mode&&(vd.Rule.DefaultRetention.Mode=ud.mode),ud.unit===RETENTION_VALIDITY_UNITS.DAYS?vd.Rule.DefaultRetention.Days=ud.validity:ud.unit===RETENTION_VALIDITY_UNITS.YEARS&&(vd.Rule.DefaultRetention.Years=ud.validity)}const Nd=new xml2js.Builder({rootName:"ObjectLockConfiguration",renderOpts:{pretty:!1},headless:!0}).buildObject(vd),Ld={};Ld["Content-MD5"]=toMd5(Nd),this.makeRequest({method:gd,bucketName:ed,query:yd,headers:Ld},Nd,[200],"",!1,dd)}getObjectLockConfig(ed,ud){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isFunction(ud))throw new InvalidArgumentError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:ed,query:"object-lock"},"",[200],"",!0,(md,gd)=>{if(md)return ud(md);let yd=Buffer$4.from("");pipesetup(gd,objectLockTransformer()).on("data",vd=>{yd=vd}).on("error",ud).on("end",()=>{ud(null,yd)})})}putObjectRetention(ed,ud,dd={},hd){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidObjectName(ud))throw new InvalidObjectNameError(`Invalid object name: ${ud}`);if(isObject(dd)){if(dd.governanceBypass&&!isBoolean(dd.governanceBypass))throw new InvalidArgumentError("Invalid value for governanceBypass",dd.governanceBypass);if(dd.mode&&![RETENTION_MODES.COMPLIANCE,RETENTION_MODES.GOVERNANCE].includes(dd.mode))throw new InvalidArgumentError("Invalid object retention mode ",dd.mode);if(dd.retainUntilDate&&!isString(dd.retainUntilDate))throw new InvalidArgumentError("Invalid value for retainUntilDate",dd.retainUntilDate);if(dd.versionId&&!isString(dd.versionId))throw new InvalidArgumentError("Invalid value for versionId",dd.versionId)}else throw new InvalidArgumentError('retentionOpts should be of type "object"');if(!isFunction(hd))throw new TypeError('callback should be of type "function"');const md="PUT";let gd="retention";const yd={};dd.governanceBypass&&(yd["X-Amz-Bypass-Governance-Retention"]=!0);const vd=new xml2js.Builder({rootName:"Retention",renderOpts:{pretty:!1},headless:!0}),Cd={};dd.mode&&(Cd.Mode=dd.mode),dd.retainUntilDate&&(Cd.RetainUntilDate=dd.retainUntilDate),dd.versionId&&(gd+=`&versionId=${dd.versionId}`);let wd=vd.buildObject(Cd);yd["Content-MD5"]=toMd5(wd),this.makeRequest({method:md,bucketName:ed,objectName:ud,query:gd,headers:yd},wd,[200,204],"",!1,hd)}getObjectRetention(ed,ud,dd,hd){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidObjectName(ud))throw new InvalidObjectNameError(`Invalid object name: ${ud}`);if(isObject(dd)){if(dd.versionId&&!isString(dd.versionId))throw new InvalidArgumentError('VersionID should be of type "string"')}else throw new InvalidArgumentError('callback should be of type "object"');if(hd&&!isFunction(hd))throw new InvalidArgumentError('callback should be of type "function"');const md="GET";let gd="retention";dd.versionId&&(gd+=`&versionId=${dd.versionId}`),this.makeRequest({method:md,bucketName:ed,objectName:ud,query:gd},"",[200],"",!0,(yd,vd)=>{if(yd)return hd(yd);let Cd=Buffer$4.from("");pipesetup(vd,objectRetentionTransformer()).on("data",wd=>{Cd=wd}).on("error",hd).on("end",()=>{hd(null,Cd)})})}setBucketEncryption(ed,ud,dd){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(isFunction(ud)&&(dd=ud,ud=null),!_.isEmpty(ud)&&ud.Rule.length>1)throw new InvalidArgumentError("Invalid Rule length. Only one rule is allowed.: "+ud.Rule);if(dd&&!isFunction(dd))throw new TypeError('callback should be of type "function"');let hd=ud;_.isEmpty(ud)&&(hd={Rule:[{ApplyServerSideEncryptionByDefault:{SSEAlgorithm:"AES256"}}]});let md="PUT",gd="encryption",vd=new xml2js.Builder({rootName:"ServerSideEncryptionConfiguration",renderOpts:{pretty:!1},headless:!0}).buildObject(hd);const Cd={};Cd["Content-MD5"]=toMd5(vd),this.makeRequest({method:md,bucketName:ed,query:gd,headers:Cd},vd,[200],"",!1,dd)}getBucketEncryption(ed,ud){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isFunction(ud))throw new InvalidArgumentError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:ed,query:"encryption"},"",[200],"",!0,(md,gd)=>{if(md)return ud(md);let yd=Buffer$4.from("");pipesetup(gd,bucketEncryptionTransformer()).on("data",vd=>{yd=vd}).on("error",ud).on("end",()=>{ud(null,yd)})})}removeBucketEncryption(ed,ud){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isFunction(ud))throw new InvalidArgumentError('callback should be of type "function"');this.makeRequest({method:"DELETE",bucketName:ed,query:"encryption"},"",[204],"",!1,ud)}getObjectLegalHold(ed,ud,dd={},hd){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidObjectName(ud))throw new InvalidObjectNameError(`Invalid object name: ${ud}`);if(isFunction(dd)&&(hd=dd,dd={}),isObject(dd)){if(Object.keys(dd).length>0&&dd.versionId&&!isString(dd.versionId))throw new TypeError("versionId should be of type string.:",dd.versionId)}else throw new TypeError('getOpts should be of type "Object"');if(!isFunction(hd))throw new InvalidArgumentError('callback should be of type "function"');const md="GET";let gd="legal-hold";dd.versionId&&(gd+=`&versionId=${dd.versionId}`),this.makeRequest({method:md,bucketName:ed,objectName:ud,query:gd},"",[200],"",!0,(yd,vd)=>{if(yd)return hd(yd);let Cd=Buffer$4.from("");pipesetup(vd,objectLegalHoldTransformer()).on("data",wd=>{Cd=wd}).on("error",hd).on("end",()=>{hd(null,Cd)})})}setObjectLegalHold(ed,ud,dd={},hd){if(!isValidBucketName(ed))throw new InvalidBucketNameError("Invalid bucket name: "+ed);if(!isValidObjectName(ud))throw new InvalidObjectNameError(`Invalid object name: ${ud}`);const md={status:LEGAL_HOLD_STATUS.ENABLED};if(isFunction(dd)&&(hd=dd,dd=md),isObject(dd)){if(![LEGAL_HOLD_STATUS.ENABLED,LEGAL_HOLD_STATUS.DISABLED].includes(dd.status))throw new TypeError("Invalid status: "+dd.status);if(dd.versionId&&!dd.versionId.length)throw new TypeError("versionId should be of type string.:"+dd.versionId)}else throw new TypeError('setOpts should be of type "Object"');if(!isFunction(hd))throw new InvalidArgumentError('callback should be of type "function"');_.isEmpty(dd)&&(dd={defaultOpts:md});const gd="PUT";let yd="legal-hold";dd.versionId&&(yd+=`&versionId=${dd.versionId}`);let vd={Status:dd.status};const wd=new xml2js.Builder({rootName:"LegalHold",renderOpts:{pretty:!1},headless:!0}).buildObject(vd),Nd={};Nd["Content-MD5"]=toMd5(wd),this.makeRequest({method:gd,bucketName:ed,objectName:ud,query:yd,headers:Nd},wd,[200],"",!1,hd)}uploadPartCopy(ed,ud){const{bucketName:dd,objectName:hd,uploadID:md,partNumber:gd,headers:yd}=ed,vd="PUT";let Cd=`uploadId=${md}&partNumber=${gd}`;const wd={method:vd,bucketName:dd,objectName:hd,query:Cd,headers:yd};return this.makeRequest(wd,"",[200],"",!0,(Nd,Ld)=>{let Ud=Buffer$4.from("");if(Nd)return ud(Nd);pipesetup(Ld,uploadPartTransformer()).on("data",jd=>{Ud=jd}).on("error",ud).on("end",()=>{let jd={etag:sanitizeETag(Ud.ETag),key:hd,part:gd};ud(null,jd)})})}composeObject(ed={},ud=[],dd){const hd=this,md=ud.length;if(!Array.isArray(ud))throw new InvalidArgumentError("sourceConfig should an array of CopySourceOptions ");if(!(ed instanceof CopyDestinationOptions))throw new InvalidArgumentError("destConfig should of type CopyDestinationOptions ");if(md<1||md>PART_CONSTRAINTS.MAX_PARTS_COUNT)throw new InvalidArgumentError(`"There must be as least one and up to ${PART_CONSTRAINTS.MAX_PARTS_COUNT} source objects.`);if(!isFunction(dd))throw new TypeError('callback should be of type "function"');for(let Nd=0;Nd{let Ld={};return _.isEmpty(Nd.VersionID)||(Ld={versionId:Nd.VersionID}),Ld},yd=[];let vd=0,Cd=0;const wd=ud.map(Nd=>hd.statObject(Nd.Bucket,Nd.Object,gd(Nd)));return Promise.all(wd).then(Nd=>{const Ld=Nd.map((zd,qd)=>{const Wd=ud[qd];let Xd=zd.size;if(Wd.MatchRange){const Jd=Wd.Start,Zd=Wd.End;if(Zd>=Xd||Jd<0)throw new InvalidArgumentError(`CopySrcOptions ${qd} has invalid segment-to-copy [${Jd}, ${Zd}] (size is ${Xd})`);Xd=Zd-Jd+1}if(XdPART_CONSTRAINTS.MAX_MULTIPART_PUT_OBJECT_SIZE)throw new InvalidArgumentError(`Cannot compose an object of size ${vd} (> 5TiB)`);if(yd[qd]=Xd,Cd+=partsRequired(Xd),Cd>PART_CONSTRAINTS.MAX_PARTS_COUNT)throw new InvalidArgumentError(`Your proposed compose object requires more than ${PART_CONSTRAINTS.MAX_PARTS_COUNT} parts`);return zd});if(Cd===1&&vd<=PART_CONSTRAINTS.MAX_PART_SIZE||vd===0)return this.copyObject(ud[0],ed,dd);for(let zd=0;zdcalculateEvenSplits(yd[qd],ud[qd]));function jd(zd){const qd=[];return Ud.forEach((Wd,Xd)=>{const{startIndex:Jd,endIndex:Zd,objInfo:mf}=Wd;let xf=Xd+1;const _f=Array.from(Jd),vf=ud[Xd].getHeaders();_f.forEach((gf,Af)=>{let Df=Zd[Af];const kf=`${mf.Bucket}/${mf.Object}`;vf["x-amz-copy-source"]=`${kf}`,vf["x-amz-copy-source-range"]=`bytes=${gf}-${Df}`;const Cf={bucketName:ed.Bucket,objectName:ed.Object,uploadID:zd,partNumber:xf,headers:vf,sourceObj:kf};qd.push(Cf)})}),qd}const Gd=zd=>{const qd=jd(zd);index.map(qd,hd.uploadPartCopy.bind(hd),(Wd,Xd)=>{if(Wd){this.abortMultipartUpload(ed.Bucket,ed.Object,zd).then(()=>dd(),Zd=>dd(Zd));return}const Jd=Xd.map(Zd=>({etag:Zd.etag,part:Zd.part}));return hd.completeMultipartUpload(ed.Bucket,ed.Object,zd,Jd,dd)})},Yd=ed.getHeaders();hd.initiateNewMultipartUpload(ed.Bucket,ed.Object,Yd).then(zd=>{Gd(zd)},zd=>{dd(zd,null)})}).catch(Nd=>{dd(Nd,null)})}selectObjectContent(ed,ud,dd={},hd){if(!isValidBucketName(ed))throw new InvalidBucketNameError(`Invalid bucket name: ${ed}`);if(!isValidObjectName(ud))throw new InvalidObjectNameError(`Invalid object name: ${ud}`);if(_.isEmpty(dd))throw new TypeError("valid select configuration is required");if(!isString(dd.expression))throw new TypeError('sqlExpression should be of type "string"');if(_.isEmpty(dd.inputSerialization))throw new TypeError("inputSerialization is required");if(!isObject(dd.inputSerialization))throw new TypeError('inputSerialization should be of type "object"');if(_.isEmpty(dd.outputSerialization))throw new TypeError("outputSerialization is required");if(!isObject(dd.outputSerialization))throw new TypeError('outputSerialization should be of type "object"');if(!isFunction(hd))throw new TypeError('callback should be of type "function"');const md="POST";let gd="select";gd+="&select-type=2";const yd=[{Expression:dd.expression},{ExpressionType:dd.expressionType||"SQL"},{InputSerialization:[dd.inputSerialization]},{OutputSerialization:[dd.outputSerialization]}];dd.requestProgress&&yd.push({RequestProgress:dd.requestProgress}),dd.scanRange&&yd.push({ScanRange:dd.scanRange});const Cd=new xml2js.Builder({rootName:"SelectObjectContentRequest",renderOpts:{pretty:!1},headless:!0}).buildObject(yd);this.makeRequest({method:md,bucketName:ed,objectName:ud,query:gd},Cd,[200],"",!0,(wd,Nd)=>{if(wd)return hd(wd);let Ld;pipesetup(Nd,selectObjectContentTransformer()).on("data",Ud=>{Ld=parseSelectObjectContentResponse(Ud)}).on("error",hd).on("end",()=>{hd(null,Ld)})})}}Client.prototype.makeBucket=promisify(Client.prototype.makeBucket);Client.prototype.bucketExists=promisify(Client.prototype.bucketExists);Client.prototype.getObject=promisify(Client.prototype.getObject);Client.prototype.getPartialObject=promisify(Client.prototype.getPartialObject);Client.prototype.fGetObject=promisify(Client.prototype.fGetObject);Client.prototype.putObject=promisify(Client.prototype.putObject);Client.prototype.fPutObject=promisify(Client.prototype.fPutObject);Client.prototype.copyObject=promisify(Client.prototype.copyObject);Client.prototype.removeObjects=promisify(Client.prototype.removeObjects);Client.prototype.presignedUrl=promisify(Client.prototype.presignedUrl);Client.prototype.presignedGetObject=promisify(Client.prototype.presignedGetObject);Client.prototype.presignedPutObject=promisify(Client.prototype.presignedPutObject);Client.prototype.presignedPostPolicy=promisify(Client.prototype.presignedPostPolicy);Client.prototype.getBucketNotification=promisify(Client.prototype.getBucketNotification);Client.prototype.setBucketNotification=promisify(Client.prototype.setBucketNotification);Client.prototype.removeAllBucketNotification=promisify(Client.prototype.removeAllBucketNotification);Client.prototype.getBucketPolicy=promisify(Client.prototype.getBucketPolicy);Client.prototype.setBucketPolicy=promisify(Client.prototype.setBucketPolicy);Client.prototype.removeIncompleteUpload=promisify(Client.prototype.removeIncompleteUpload);Client.prototype.getBucketVersioning=promisify(Client.prototype.getBucketVersioning);Client.prototype.setBucketVersioning=promisify(Client.prototype.setBucketVersioning);Client.prototype.setBucketTagging=promisify(Client.prototype.setBucketTagging);Client.prototype.removeBucketTagging=promisify(Client.prototype.removeBucketTagging);Client.prototype.getBucketTagging=promisify(Client.prototype.getBucketTagging);Client.prototype.setObjectTagging=promisify(Client.prototype.setObjectTagging);Client.prototype.removeObjectTagging=promisify(Client.prototype.removeObjectTagging);Client.prototype.getObjectTagging=promisify(Client.prototype.getObjectTagging);Client.prototype.setBucketLifecycle=promisify(Client.prototype.setBucketLifecycle);Client.prototype.getBucketLifecycle=promisify(Client.prototype.getBucketLifecycle);Client.prototype.removeBucketLifecycle=promisify(Client.prototype.removeBucketLifecycle);Client.prototype.setObjectLockConfig=promisify(Client.prototype.setObjectLockConfig);Client.prototype.getObjectLockConfig=promisify(Client.prototype.getObjectLockConfig);Client.prototype.putObjectRetention=promisify(Client.prototype.putObjectRetention);Client.prototype.getObjectRetention=promisify(Client.prototype.getObjectRetention);Client.prototype.setBucketEncryption=promisify(Client.prototype.setBucketEncryption);Client.prototype.getBucketEncryption=promisify(Client.prototype.getBucketEncryption);Client.prototype.removeBucketEncryption=promisify(Client.prototype.removeBucketEncryption);Client.prototype.setObjectLegalHold=promisify(Client.prototype.setObjectLegalHold);Client.prototype.getObjectLegalHold=promisify(Client.prototype.getObjectLegalHold);Client.prototype.composeObject=promisify(Client.prototype.composeObject);Client.prototype.selectObjectContent=promisify(Client.prototype.selectObjectContent);Client.prototype.removeObject=callbackify(Client.prototype.removeObject);Client.prototype.statObject=callbackify(Client.prototype.statObject);Client.prototype.removeBucket=callbackify(Client.prototype.removeBucket);Client.prototype.listBuckets=callbackify(Client.prototype.listBuckets);Client.prototype.removeBucketReplication=callbackify(Client.prototype.removeBucketReplication);Client.prototype.setBucketReplication=callbackify(Client.prototype.setBucketReplication);Client.prototype.getBucketReplication=callbackify(Client.prototype.getBucketReplication);var __extends$3=function(){var Ra=function(ed,ud){return Ra=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(dd,hd){dd.__proto__=hd}||function(dd,hd){for(var md in hd)hd.hasOwnProperty(md)&&(dd[md]=hd[md])},Ra(ed,ud)};return function(ed,ud){Ra(ed,ud);function dd(){this.constructor=ed}ed.prototype=ud===null?Object.create(ud):(dd.prototype=ud.prototype,new dd)}}(),QiniuErrorName;(function(Ra){Ra.InvalidFile="InvalidFile",Ra.InvalidToken="InvalidToken",Ra.InvalidMetadata="InvalidMetadata",Ra.InvalidChunkSize="InvalidChunkSize",Ra.InvalidCustomVars="InvalidCustomVars",Ra.NotAvailableUploadHost="NotAvailableUploadHost",Ra.ReadCacheFailed="ReadCacheFailed",Ra.InvalidCacheData="InvalidCacheData",Ra.WriteCacheFailed="WriteCacheFailed",Ra.RemoveCacheFailed="RemoveCacheFailed",Ra.GetCanvasContextFailed="GetCanvasContextFailed",Ra.UnsupportedFileType="UnsupportedFileType",Ra.FileReaderReadFailed="FileReaderReadFailed",Ra.NotAvailableXMLHttpRequest="NotAvailableXMLHttpRequest",Ra.InvalidProgressEventTarget="InvalidProgressEventTarget",Ra.RequestError="RequestError"})(QiniuErrorName||(QiniuErrorName={}));var QiniuError=function(){function Ra(ed,ud){this.name=ed,this.message=ud,this.stack=new Error().stack}return Ra}(),QiniuRequestError=function(Ra){__extends$3(ed,Ra);function ed(ud,dd,hd,md){var gd=Ra.call(this,QiniuErrorName.RequestError,hd)||this;return gd.code=ud,gd.reqId=dd,gd.isRequestError=!0,gd.data=md,gd}return ed}(QiniuError),QiniuNetworkError=function(Ra){__extends$3(ed,Ra);function ed(ud,dd){return dd===void 0&&(dd=""),Ra.call(this,0,dd,ud)||this}return ed}(QiniuRequestError),Pool=function(){function Ra(ed,ud){this.runTask=ed,this.limit=ud,this.aborted=!1,this.queue=[],this.processing=[]}return Ra.prototype.enqueue=function(ed){var ud=this;return new Promise(function(dd,hd){ud.queue.push({task:ed,resolve:dd,reject:hd}),ud.check()})},Ra.prototype.run=function(ed){var ud=this;this.queue=this.queue.filter(function(dd){return dd!==ed}),this.processing.push(ed),this.runTask(ed.task).then(function(){ud.processing=ud.processing.filter(function(dd){return dd!==ed}),ed.resolve(),ud.check()},function(dd){return ed.reject(dd)})},Ra.prototype.check=function(){var ed=this;if(!this.aborted){var ud=this.processing.length,dd=this.limit-ud;this.queue.slice(0,dd).forEach(function(hd){ed.run(hd)})}},Ra.prototype.abort=function(){this.queue=[],this.aborted=!0},Ra}(),__extends$2=function(){var Ra=function(ed,ud){return Ra=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(dd,hd){dd.__proto__=hd}||function(dd,hd){for(var md in hd)hd.hasOwnProperty(md)&&(dd[md]=hd[md])},Ra(ed,ud)};return function(ed,ud){Ra(ed,ud);function dd(){this.constructor=ed}ed.prototype=ud===null?Object.create(ud):(dd.prototype=ud.prototype,new dd)}}(),__assign$6=function(){return __assign$6=Object.assign||function(Ra){for(var ed,ud=1,dd=arguments.length;ud"u")return"";var ed=Ra+"",ud="",dd,hd,md=0;dd=hd=0,md=ed.length;for(var gd=0;gd127&&yd<2048)vd=String.fromCharCode(yd>>6|192,yd&63|128);else if((yd&63488^55296)>0)vd=String.fromCharCode(yd>>12|224,yd>>6&63|128,yd&63|128);else{if((yd&64512^55296)>0)throw new RangeError("Unmatched trail surrogate at "+gd);var Cd=ed.charCodeAt(++gd);if((Cd&64512^56320)>0)throw new RangeError("Unmatched lead surrogate at "+(gd-1));yd=((yd&1023)<<10)+(Cd&1023)+65536,vd=String.fromCharCode(yd>>18|240,yd>>12&63|128,yd>>6&63|128,yd&63|128)}vd!==null&&(hd>dd&&(ud+=ed.slice(dd,hd)),ud+=vd,dd=hd=gd+1)}return hd>dd&&(ud+=ed.slice(dd,md)),ud}function utf8Decode(Ra){var ed=[],ud=0,dd=0,hd=0;for(Ra+="";ud>10&1023)),ed.push(String.fromCharCode(56320|dd&1023))):ed.push(String.fromCharCode(dd)),ud+=hd}return ed.join("")}function base64Encode(Ra){var ed="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",ud,dd,hd,md,gd,yd,vd,Cd,wd=0,Nd=0,Ld="",Ud=[];if(!Ra)return Ra;Ra=utf8Encode(Ra+"");do ud=Ra.charCodeAt(wd++),dd=Ra.charCodeAt(wd++),hd=Ra.charCodeAt(wd++),Cd=ud<<16|dd<<8|hd,md=Cd>>18&63,gd=Cd>>12&63,yd=Cd>>6&63,vd=Cd&63,Ud[Nd++]=ed.charAt(md)+ed.charAt(gd)+ed.charAt(yd)+ed.charAt(vd);while(wd>16&255,dd=Cd>>8&255,hd=Cd&255,yd===64?Ud[Nd++]=String.fromCharCode(ud):vd===64?Ud[Nd++]=String.fromCharCode(ud,dd):Ud[Nd++]=String.fromCharCode(ud,dd,hd);while(wd>>25)+Xd|0,Zd+=(Wd&Xd|~Wd&Jd)+qd[1]-389564586|0,Zd=(Zd<<12|Zd>>>20)+Wd|0,Jd+=(Zd&Wd|~Zd&Xd)+qd[2]+606105819|0,Jd=(Jd<<17|Jd>>>15)+Zd|0,Xd+=(Jd&Zd|~Jd&Wd)+qd[3]-1044525330|0,Xd=(Xd<<22|Xd>>>10)+Jd|0,Wd+=(Xd&Jd|~Xd&Zd)+qd[4]-176418897|0,Wd=(Wd<<7|Wd>>>25)+Xd|0,Zd+=(Wd&Xd|~Wd&Jd)+qd[5]+1200080426|0,Zd=(Zd<<12|Zd>>>20)+Wd|0,Jd+=(Zd&Wd|~Zd&Xd)+qd[6]-1473231341|0,Jd=(Jd<<17|Jd>>>15)+Zd|0,Xd+=(Jd&Zd|~Jd&Wd)+qd[7]-45705983|0,Xd=(Xd<<22|Xd>>>10)+Jd|0,Wd+=(Xd&Jd|~Xd&Zd)+qd[8]+1770035416|0,Wd=(Wd<<7|Wd>>>25)+Xd|0,Zd+=(Wd&Xd|~Wd&Jd)+qd[9]-1958414417|0,Zd=(Zd<<12|Zd>>>20)+Wd|0,Jd+=(Zd&Wd|~Zd&Xd)+qd[10]-42063|0,Jd=(Jd<<17|Jd>>>15)+Zd|0,Xd+=(Jd&Zd|~Jd&Wd)+qd[11]-1990404162|0,Xd=(Xd<<22|Xd>>>10)+Jd|0,Wd+=(Xd&Jd|~Xd&Zd)+qd[12]+1804603682|0,Wd=(Wd<<7|Wd>>>25)+Xd|0,Zd+=(Wd&Xd|~Wd&Jd)+qd[13]-40341101|0,Zd=(Zd<<12|Zd>>>20)+Wd|0,Jd+=(Zd&Wd|~Zd&Xd)+qd[14]-1502002290|0,Jd=(Jd<<17|Jd>>>15)+Zd|0,Xd+=(Jd&Zd|~Jd&Wd)+qd[15]+1236535329|0,Xd=(Xd<<22|Xd>>>10)+Jd|0,Wd+=(Xd&Zd|Jd&~Zd)+qd[1]-165796510|0,Wd=(Wd<<5|Wd>>>27)+Xd|0,Zd+=(Wd&Jd|Xd&~Jd)+qd[6]-1069501632|0,Zd=(Zd<<9|Zd>>>23)+Wd|0,Jd+=(Zd&Xd|Wd&~Xd)+qd[11]+643717713|0,Jd=(Jd<<14|Jd>>>18)+Zd|0,Xd+=(Jd&Wd|Zd&~Wd)+qd[0]-373897302|0,Xd=(Xd<<20|Xd>>>12)+Jd|0,Wd+=(Xd&Zd|Jd&~Zd)+qd[5]-701558691|0,Wd=(Wd<<5|Wd>>>27)+Xd|0,Zd+=(Wd&Jd|Xd&~Jd)+qd[10]+38016083|0,Zd=(Zd<<9|Zd>>>23)+Wd|0,Jd+=(Zd&Xd|Wd&~Xd)+qd[15]-660478335|0,Jd=(Jd<<14|Jd>>>18)+Zd|0,Xd+=(Jd&Wd|Zd&~Wd)+qd[4]-405537848|0,Xd=(Xd<<20|Xd>>>12)+Jd|0,Wd+=(Xd&Zd|Jd&~Zd)+qd[9]+568446438|0,Wd=(Wd<<5|Wd>>>27)+Xd|0,Zd+=(Wd&Jd|Xd&~Jd)+qd[14]-1019803690|0,Zd=(Zd<<9|Zd>>>23)+Wd|0,Jd+=(Zd&Xd|Wd&~Xd)+qd[3]-187363961|0,Jd=(Jd<<14|Jd>>>18)+Zd|0,Xd+=(Jd&Wd|Zd&~Wd)+qd[8]+1163531501|0,Xd=(Xd<<20|Xd>>>12)+Jd|0,Wd+=(Xd&Zd|Jd&~Zd)+qd[13]-1444681467|0,Wd=(Wd<<5|Wd>>>27)+Xd|0,Zd+=(Wd&Jd|Xd&~Jd)+qd[2]-51403784|0,Zd=(Zd<<9|Zd>>>23)+Wd|0,Jd+=(Zd&Xd|Wd&~Xd)+qd[7]+1735328473|0,Jd=(Jd<<14|Jd>>>18)+Zd|0,Xd+=(Jd&Wd|Zd&~Wd)+qd[12]-1926607734|0,Xd=(Xd<<20|Xd>>>12)+Jd|0,Wd+=(Xd^Jd^Zd)+qd[5]-378558|0,Wd=(Wd<<4|Wd>>>28)+Xd|0,Zd+=(Wd^Xd^Jd)+qd[8]-2022574463|0,Zd=(Zd<<11|Zd>>>21)+Wd|0,Jd+=(Zd^Wd^Xd)+qd[11]+1839030562|0,Jd=(Jd<<16|Jd>>>16)+Zd|0,Xd+=(Jd^Zd^Wd)+qd[14]-35309556|0,Xd=(Xd<<23|Xd>>>9)+Jd|0,Wd+=(Xd^Jd^Zd)+qd[1]-1530992060|0,Wd=(Wd<<4|Wd>>>28)+Xd|0,Zd+=(Wd^Xd^Jd)+qd[4]+1272893353|0,Zd=(Zd<<11|Zd>>>21)+Wd|0,Jd+=(Zd^Wd^Xd)+qd[7]-155497632|0,Jd=(Jd<<16|Jd>>>16)+Zd|0,Xd+=(Jd^Zd^Wd)+qd[10]-1094730640|0,Xd=(Xd<<23|Xd>>>9)+Jd|0,Wd+=(Xd^Jd^Zd)+qd[13]+681279174|0,Wd=(Wd<<4|Wd>>>28)+Xd|0,Zd+=(Wd^Xd^Jd)+qd[0]-358537222|0,Zd=(Zd<<11|Zd>>>21)+Wd|0,Jd+=(Zd^Wd^Xd)+qd[3]-722521979|0,Jd=(Jd<<16|Jd>>>16)+Zd|0,Xd+=(Jd^Zd^Wd)+qd[6]+76029189|0,Xd=(Xd<<23|Xd>>>9)+Jd|0,Wd+=(Xd^Jd^Zd)+qd[9]-640364487|0,Wd=(Wd<<4|Wd>>>28)+Xd|0,Zd+=(Wd^Xd^Jd)+qd[12]-421815835|0,Zd=(Zd<<11|Zd>>>21)+Wd|0,Jd+=(Zd^Wd^Xd)+qd[15]+530742520|0,Jd=(Jd<<16|Jd>>>16)+Zd|0,Xd+=(Jd^Zd^Wd)+qd[2]-995338651|0,Xd=(Xd<<23|Xd>>>9)+Jd|0,Wd+=(Jd^(Xd|~Zd))+qd[0]-198630844|0,Wd=(Wd<<6|Wd>>>26)+Xd|0,Zd+=(Xd^(Wd|~Jd))+qd[7]+1126891415|0,Zd=(Zd<<10|Zd>>>22)+Wd|0,Jd+=(Wd^(Zd|~Xd))+qd[14]-1416354905|0,Jd=(Jd<<15|Jd>>>17)+Zd|0,Xd+=(Zd^(Jd|~Wd))+qd[5]-57434055|0,Xd=(Xd<<21|Xd>>>11)+Jd|0,Wd+=(Jd^(Xd|~Zd))+qd[12]+1700485571|0,Wd=(Wd<<6|Wd>>>26)+Xd|0,Zd+=(Xd^(Wd|~Jd))+qd[3]-1894986606|0,Zd=(Zd<<10|Zd>>>22)+Wd|0,Jd+=(Wd^(Zd|~Xd))+qd[10]-1051523|0,Jd=(Jd<<15|Jd>>>17)+Zd|0,Xd+=(Zd^(Jd|~Wd))+qd[1]-2054922799|0,Xd=(Xd<<21|Xd>>>11)+Jd|0,Wd+=(Jd^(Xd|~Zd))+qd[8]+1873313359|0,Wd=(Wd<<6|Wd>>>26)+Xd|0,Zd+=(Xd^(Wd|~Jd))+qd[15]-30611744|0,Zd=(Zd<<10|Zd>>>22)+Wd|0,Jd+=(Wd^(Zd|~Xd))+qd[6]-1560198380|0,Jd=(Jd<<15|Jd>>>17)+Zd|0,Xd+=(Zd^(Jd|~Wd))+qd[13]+1309151649|0,Xd=(Xd<<21|Xd>>>11)+Jd|0,Wd+=(Jd^(Xd|~Zd))+qd[4]-145523070|0,Wd=(Wd<<6|Wd>>>26)+Xd|0,Zd+=(Xd^(Wd|~Jd))+qd[11]-1120210379|0,Zd=(Zd<<10|Zd>>>22)+Wd|0,Jd+=(Wd^(Zd|~Xd))+qd[2]+718787259|0,Jd=(Jd<<15|Jd>>>17)+Zd|0,Xd+=(Zd^(Jd|~Wd))+qd[9]-343485551|0,Xd=(Xd<<21|Xd>>>11)+Jd|0,zd[0]=Wd+zd[0]|0,zd[1]=Xd+zd[1]|0,zd[2]=Jd+zd[2]|0,zd[3]=Zd+zd[3]|0}function md(zd){var qd=[],Wd;for(Wd=0;Wd<64;Wd+=4)qd[Wd>>2]=zd.charCodeAt(Wd)+(zd.charCodeAt(Wd+1)<<8)+(zd.charCodeAt(Wd+2)<<16)+(zd.charCodeAt(Wd+3)<<24);return qd}function gd(zd){var qd=[],Wd;for(Wd=0;Wd<64;Wd+=4)qd[Wd>>2]=zd[Wd]+(zd[Wd+1]<<8)+(zd[Wd+2]<<16)+(zd[Wd+3]<<24);return qd}function yd(zd){var qd=zd.length,Wd=[1732584193,-271733879,-1732584194,271733878],Xd,Jd,Zd,mf,xf,_f;for(Xd=64;Xd<=qd;Xd+=64)hd(Wd,md(zd.substring(Xd-64,Xd)));for(zd=zd.substring(Xd-64),Jd=zd.length,Zd=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],Xd=0;Xd>2]|=zd.charCodeAt(Xd)<<(Xd%4<<3);if(Zd[Xd>>2]|=128<<(Xd%4<<3),Xd>55)for(hd(Wd,Zd),Xd=0;Xd<16;Xd+=1)Zd[Xd]=0;return mf=qd*8,mf=mf.toString(16).match(/(.*?)(.{0,8})$/),xf=parseInt(mf[2],16),_f=parseInt(mf[1],16)||0,Zd[14]=xf,Zd[15]=_f,hd(Wd,Zd),Wd}function vd(zd){var qd=zd.length,Wd=[1732584193,-271733879,-1732584194,271733878],Xd,Jd,Zd,mf,xf,_f;for(Xd=64;Xd<=qd;Xd+=64)hd(Wd,gd(zd.subarray(Xd-64,Xd)));for(zd=Xd-64>2]|=zd[Xd]<<(Xd%4<<3);if(Zd[Xd>>2]|=128<<(Xd%4<<3),Xd>55)for(hd(Wd,Zd),Xd=0;Xd<16;Xd+=1)Zd[Xd]=0;return mf=qd*8,mf=mf.toString(16).match(/(.*?)(.{0,8})$/),xf=parseInt(mf[2],16),_f=parseInt(mf[1],16)||0,Zd[14]=xf,Zd[15]=_f,hd(Wd,Zd),Wd}function Cd(zd){var qd="",Wd;for(Wd=0;Wd<4;Wd+=1)qd+=dd[zd>>Wd*8+4&15]+dd[zd>>Wd*8&15];return qd}function wd(zd){var qd;for(qd=0;qdZd?new ArrayBuffer(0):(mf=Zd-Jd,xf=new ArrayBuffer(mf),_f=new Uint8Array(xf),vf=new Uint8Array(this,Jd,mf),_f.set(vf),xf)}}();function Nd(zd){return/[\u0080-\uFFFF]/.test(zd)&&(zd=unescape(encodeURIComponent(zd))),zd}function Ld(zd,qd){var Wd=zd.length,Xd=new ArrayBuffer(Wd),Jd=new Uint8Array(Xd),Zd;for(Zd=0;Zd>2]|=qd.charCodeAt(Xd)<<(Xd%4<<3);return this._finish(Jd,Wd),Zd=wd(this._hash),zd&&(Zd=Gd(Zd)),this.reset(),Zd},Yd.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},Yd.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},Yd.prototype.setState=function(zd){return this._buff=zd.buff,this._length=zd.length,this._hash=zd.hash,this},Yd.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},Yd.prototype._finish=function(zd,qd){var Wd=qd,Xd,Jd,Zd;if(zd[Wd>>2]|=128<<(Wd%4<<3),Wd>55)for(hd(this._hash,zd),Wd=0;Wd<16;Wd+=1)zd[Wd]=0;Xd=this._length*8,Xd=Xd.toString(16).match(/(.*?)(.{0,8})$/),Jd=parseInt(Xd[2],16),Zd=parseInt(Xd[1],16)||0,zd[14]=Jd,zd[15]=Zd,hd(this._hash,zd)},Yd.hash=function(zd,qd){return Yd.hashBinary(Nd(zd),qd)},Yd.hashBinary=function(zd,qd){var Wd=yd(zd),Xd=wd(Wd);return qd?Gd(Xd):Xd},Yd.ArrayBuffer=function(){this.reset()},Yd.ArrayBuffer.prototype.append=function(zd){var qd=jd(this._buff.buffer,zd),Wd=qd.length,Xd;for(this._length+=zd.byteLength,Xd=64;Xd<=Wd;Xd+=64)hd(this._hash,gd(qd.subarray(Xd-64,Xd)));return this._buff=Xd-64>2]|=qd[Jd]<<(Jd%4<<3);return this._finish(Xd,Wd),Zd=wd(this._hash),zd&&(Zd=Gd(Zd)),this.reset(),Zd},Yd.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},Yd.ArrayBuffer.prototype.getState=function(){var zd=Yd.prototype.getState.call(this);return zd.buff=Ud(zd.buff),zd},Yd.ArrayBuffer.prototype.setState=function(zd){return zd.buff=Ld(zd.buff,!0),Yd.prototype.setState.call(this,zd)},Yd.ArrayBuffer.prototype.destroy=Yd.prototype.destroy,Yd.ArrayBuffer.prototype._finish=Yd.prototype._finish,Yd.ArrayBuffer.hash=function(zd,qd){var Wd=vd(new Uint8Array(zd)),Xd=wd(Wd);return qd?Gd(Xd):Xd},Yd})})(sparkMd5);var sparkMd5Exports=sparkMd5.exports;const SparkMD5=getDefaultExportFromCjs(sparkMd5Exports);var __assign$5=function(){return __assign$5=Object.assign||function(Ra){for(var ed,ud=1,dd=arguments.length;ud0&&md[md.length-1])&&(Cd[0]===6||Cd[0]===2)){ud=0;continue}if(Cd[0]===3&&(!md||Cd[1]>md[0]&&Cd[1]Ra.size)ud=Ra.size;else for(;Ra.size>ud*1e4;)ud*=2;for(var dd=[],hd=Math.ceil(Ra.size/ud),md=0;md3?ed[1]:ed[0];if(!ud)throw new QiniuError(QiniuErrorName.InvalidToken,"missing assess key field.");var dd=null;try{dd=JSON.parse(urlSafeBase64Decode(ed[ed.length-1]))}catch{throw new QiniuError(QiniuErrorName.InvalidToken,"token parse failed.")}if(dd==null)throw new QiniuError(QiniuErrorName.InvalidToken,"putPolicy is null.");if(dd.scope==null)throw new QiniuError(QiniuErrorName.InvalidToken,"scope field is null.");var hd=dd.scope.split(":")[0];if(!hd)throw new QiniuError(QiniuErrorName.InvalidToken,"resolve bucketName failed.");return{assessKey:ud,bucketName:hd,scope:dd.scope}}function createObjectURL(Ra){var ed=window.URL||window.webkitURL||window.mozURL;return ed.createObjectURL(Ra)}var _a,region={z0:"z0",z1:"z1",z2:"z2",na0:"na0",as0:"as0",cnEast2:"cn-east-2"},regionUphostMap=(_a={},_a[region.z0]={srcUphost:["up.qiniup.com"],cdnUphost:["upload.qiniup.com"]},_a[region.z1]={srcUphost:["up-z1.qiniup.com"],cdnUphost:["upload-z1.qiniup.com"]},_a[region.z2]={srcUphost:["up-z2.qiniup.com"],cdnUphost:["upload-z2.qiniup.com"]},_a[region.na0]={srcUphost:["up-na0.qiniup.com"],cdnUphost:["upload-na0.qiniup.com"]},_a[region.as0]={srcUphost:["up-as0.qiniup.com"],cdnUphost:["upload-as0.qiniup.com"]},_a[region.cnEast2]={srcUphost:["up-cn-east-2.qiniup.com"],cdnUphost:["upload-cn-east-2.qiniup.com"]},_a),stringifyPrimitive=function(Ra){switch(typeof Ra){case"string":return Ra;case"boolean":return Ra?"true":"false";case"number":return isFinite(Ra)?Ra:"";default:return""}},encode=function(Ra,ed,ud,dd){return ed=ed||"&",ud=ud||"=",Ra===null&&(Ra=void 0),typeof Ra=="object"?Object.keys(Ra).map(function(hd){var md=encodeURIComponent(stringifyPrimitive(hd))+ud;return Array.isArray(Ra[hd])?Ra[hd].map(function(gd){return md+encodeURIComponent(stringifyPrimitive(gd))}).join(ed):md+encodeURIComponent(stringifyPrimitive(Ra[hd]))}).filter(Boolean).join(ed):dd?encodeURIComponent(stringifyPrimitive(dd))+ud+encodeURIComponent(stringifyPrimitive(Ra)):""},stringify;stringify=encode;var __assign$4=function(){return __assign$4=Object.assign||function(Ra){for(var ed,ud=1,dd=arguments.length;ud0&&md[md.length-1])&&(Cd[0]===6||Cd[0]===2)){ud=0;continue}if(Cd[0]===3&&(!md||Cd[1]>md[0]&&Cd[1]0?[2,dd+"://"+ud.uphost[0]]:(hd=getPutPolicy(ed),[4,getUpHosts(hd.assessKey,hd.bucketName,dd)]);case 1:return md=yd.sent(),gd=md.data.up.acc.main,[2,dd+"://"+gd[0]]}})})}var __assign$3=function(){return __assign$3=Object.assign||function(Ra){for(var ed,ud=1,dd=arguments.length;ud0&&md[md.length-1])&&(Cd[0]===6||Cd[0]===2)){ud=0;continue}if(Cd[0]===3&&(!md||Cd[1]>md[0]&&Cd[1]0)&&!(hd=dd.next()).done;)md.push(hd.value)}catch(yd){gd={error:yd}}finally{try{hd&&!hd.done&&(ud=dd.return)&&ud.call(dd)}finally{if(gd)throw gd.error}}return md},__spread$3=function(){for(var Ra=[],ed=0;ed1e4*GB)return this.handleError(new QiniuError(QiniuErrorName.InvalidFile,"file size exceed maximum value 10000G")),[2];if(this.putExtra.customVars&&!isCustomVarsValid(this.putExtra.customVars))return this.handleError(new QiniuError(QiniuErrorName.InvalidCustomVars,"customVars key should start width x:")),[2];if(this.putExtra.metadata&&!isMetaDataValid(this.putExtra.metadata))return this.handleError(new QiniuError(QiniuErrorName.InvalidMetadata,"metadata key should start with x-qn-meta-")),[2];md.label=1;case 1:return md.trys.push([1,4,,5]),this.uploadAt=new Date().getTime(),[4,this.checkAndUpdateUploadHost()];case 2:return md.sent(),[4,this.run()];case 3:return ed=md.sent(),this.onComplete(ed.data),this.checkAndUnfreezeHost(),this.sendLog(ed.reqId,200),[2];case 4:return ud=md.sent(),this.aborted?(this.logger.warn("upload is aborted."),this.sendLog("",-2),[2]):(this.clear(),this.logger.error(ud),ud instanceof QiniuRequestError&&(this.sendLog(ud.reqId,ud.code),this.checkAndFreezeHost(ud),dd=++this.retryCount<=this.config.retryCount,hd=RETRY_CODE_LIST.includes(ud.code),hd&&dd)?(this.logger.warn("error auto retry: "+this.retryCount+"/"+this.config.retryCount+"."),this.putFile(),[2]):(this.onError(ud),[3,5]));case 5:return[2]}})})},Ra.prototype.clear=function(){this.xhrList.forEach(function(ed){ed.onreadystatechange=null,ed.abort()}),this.xhrList=[],this.logger.info("cleanup uploading xhr.")},Ra.prototype.stop=function(){this.logger.info("aborted."),this.clear(),this.aborted=!0},Ra.prototype.addXhr=function(ed){this.xhrList.push(ed)},Ra.prototype.sendLog=function(ed,ud){var dd,hd;this.logger.report({code:ud,reqId:ed,remoteIp:"",upType:"jssdk-h5",size:this.file.size,time:Math.floor(this.uploadAt/1e3),port:getPortFromUrl((dd=this.uploadHost)===null||dd===void 0?void 0:dd.getUrl()),host:getDomainFromUrl((hd=this.uploadHost)===null||hd===void 0?void 0:hd.getUrl()),bytesSent:this.progress?this.progress.total.loaded:0,duration:Math.floor((new Date().getTime()-this.uploadAt)/1e3)})},Ra.prototype.getProgressInfoItem=function(ed,ud,dd){return __assign$3({size:ud,loaded:ed,percent:ed/ud*100},dd==null?{}:{fromCache:dd})},Ra}(),__extends$1=function(){var Ra=function(ed,ud){return Ra=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(dd,hd){dd.__proto__=hd}||function(dd,hd){for(var md in hd)hd.hasOwnProperty(md)&&(dd[md]=hd[md])},Ra(ed,ud)};return function(ed,ud){Ra(ed,ud);function dd(){this.constructor=ed}ed.prototype=ud===null?Object.create(ud):(dd.prototype=ud.prototype,new dd)}}(),__assign$2=function(){return __assign$2=Object.assign||function(Ra){for(var ed,ud=1,dd=arguments.length;ud0&&md[md.length-1])&&(Cd[0]===6||Cd[0]===2)){ud=0;continue}if(Cd[0]===3&&(!md||Cd[1]>md[0]&&Cd[1]1024)throw new QiniuError(QiniuErrorName.InvalidChunkSize,"chunkSize maximum value is 1024");return[4,this.initBeforeUploadChunks()];case 1:vd.sent(),ud=new Pool(function(Cd){return __awaiter$4(yd,void 0,void 0,function(){return __generator$4(this,function(wd){switch(wd.label){case 0:if(this.aborted)throw ud.abort(),new Error("pool is aborted");return[4,this.uploadChunk(Cd)];case 1:return wd.sent(),[2]}})})},this.config.concurrentRequestLimit),dd=null,hd=this.getLocalKey(),md=this.chunks.map(function(Cd,wd){return ud.enqueue({chunk:Cd,index:wd})}),vd.label=2;case 2:return vd.trys.push([2,5,,6]),[4,Promise.all(md)];case 3:return vd.sent(),[4,this.mkFileReq()];case 4:return dd=vd.sent(),[3,6];case 5:throw gd=vd.sent(),gd instanceof QiniuRequestError&&(gd.code===612||gd.code===400)&&removeLocalFileInfo(hd,this.logger),gd;case 6:return removeLocalFileInfo(hd,this.logger),[2,dd]}})})},ed.prototype.uploadChunk=function(ud){return __awaiter$4(this,void 0,void 0,function(){var dd,hd,md,gd,yd,vd,Cd,wd,Nd,Ld=this;return __generator$4(this,function(Ud){switch(Ud.label){case 0:return dd=ud.index,hd=ud.chunk,md=this.cachedUploadedList[dd],this.logger.info("upload part "+dd+", cache:",md),gd=this.config.checkByMD5,yd=function(){Ld.usedCacheList[dd]=!0,Ld.updateChunkProgress(hd.size,dd),Ld.uploadedList[dd]=md,Ld.updateLocalCache()},md&&!gd?(yd(),[2]):[4,computeMd5(hd)];case 1:return vd=Ud.sent(),this.logger.info("computed part md5.",vd),md&&vd===md.md5?(yd(),[2]):(this.usedCacheList[dd]=!1,Cd=function(jd){Ld.updateChunkProgress(jd.loaded,dd)},wd={body:hd,md5:this.config.checkByServer?vd:void 0,onProgress:Cd,onCreate:function(jd){return Ld.addXhr(jd)}},this.logger.info("part "+dd+" start uploading."),[4,uploadChunk(this.token,this.key,ud.index+1,this.getUploadInfo(),wd)]);case 2:return Nd=Ud.sent(),this.logger.info("part "+dd+" upload completed."),Cd({loaded:hd.size,total:hd.size}),this.uploadedList[dd]={etag:Nd.data.etag,md5:Nd.data.md5,size:hd.size},this.updateLocalCache(),[2]}})})},ed.prototype.mkFileReq=function(){return __awaiter$4(this,void 0,void 0,function(){var ud,dd,hd=this;return __generator$4(this,function(md){switch(md.label){case 0:return ud=__assign$2(__assign$2(__assign$2({parts:this.uploadedList.map(function(gd,yd){return{etag:gd.etag,partNumber:yd+1}}),fname:this.putExtra.fname},this.putExtra.mimeType&&{mimeType:this.putExtra.mimeType}),this.putExtra.customVars&&{customVars:this.putExtra.customVars}),this.putExtra.metadata&&{metadata:this.putExtra.metadata}),this.logger.info("parts upload completed, make file.",ud),[4,uploadComplete(this.token,this.key,this.getUploadInfo(),{onCreate:function(gd){return hd.addXhr(gd)},body:JSON.stringify(ud)})];case 1:return dd=md.sent(),this.logger.info("finish Resume Progress."),this.updateMkFileProgress(1),[2,dd]}})})},ed.prototype.initBeforeUploadChunks=function(){return __awaiter$4(this,void 0,void 0,function(){var ud,dd,hd;return __generator$4(this,function(md){switch(md.label){case 0:return this.uploadedList=[],this.usedCacheList=[],ud=getLocalFileInfo(this.getLocalKey(),this.logger),ud?[3,2]:(this.logger.info("init upload parts from api."),[4,initUploadParts(this.token,this.bucketName,this.key,this.uploadHost.getUrl())]);case 1:return dd=md.sent(),this.logger.info("initd upload parts of id: "+dd.data.uploadId+"."),this.uploadId=dd.data.uploadId,this.cachedUploadedList=[],[3,3];case 2:hd=["resume upload parts from local cache,","total "+ud.data.length+" part,","id is "+ud.id+"."],this.logger.info(hd.join(" ")),this.cachedUploadedList=ud.data,this.uploadId=ud.id,md.label=3;case 3:return this.chunks=getChunks(this.file,this.config.chunkSize),this.loaded={mkFileProgress:0,chunks:this.chunks.map(function(gd){return 0})},this.notifyResumeProgress(),[2]}})})},ed.prototype.getUploadInfo=function(){return{id:this.uploadId,url:this.uploadHost.getUrl()}},ed.prototype.getLocalKey=function(){return createLocalKey(this.file.name,this.key,this.file.size)},ed.prototype.updateLocalCache=function(){setLocalFileInfo(this.getLocalKey(),{id:this.uploadId,data:this.uploadedList},this.logger)},ed.prototype.updateChunkProgress=function(ud,dd){this.loaded.chunks[dd]=ud,this.notifyResumeProgress()},ed.prototype.updateMkFileProgress=function(ud){this.loaded.mkFileProgress=ud,this.notifyResumeProgress()},ed.prototype.notifyResumeProgress=function(){var ud=this;this.progress={total:this.getProgressInfoItem(sum(this.loaded.chunks)+this.loaded.mkFileProgress,this.file.size+1),chunks:this.chunks.map(function(dd,hd){var md=ud.usedCacheList[hd];return ud.getProgressInfoItem(ud.loaded.chunks[hd],dd.size,md)}),uploadInfo:{id:this.uploadId,url:this.uploadHost.getUrl()}},this.onData(this.progress)},ed}(Base),__awaiter$3=function(Ra,ed,ud,dd){function hd(md){return md instanceof ud?md:new ud(function(gd){gd(md)})}return new(ud||(ud=Promise))(function(md,gd){function yd(wd){try{Cd(dd.next(wd))}catch(Nd){gd(Nd)}}function vd(wd){try{Cd(dd.throw(wd))}catch(Nd){gd(Nd)}}function Cd(wd){wd.done?md(wd.value):hd(wd.value).then(yd,vd)}Cd((dd=dd.apply(Ra,ed||[])).next())})},__generator$3=function(Ra,ed){var ud={label:0,sent:function(){if(md[0]&1)throw md[1];return md[1]},trys:[],ops:[]},dd,hd,md,gd;return gd={next:yd(0),throw:yd(1),return:yd(2)},typeof Symbol=="function"&&(gd[Symbol.iterator]=function(){return this}),gd;function yd(Cd){return function(wd){return vd([Cd,wd])}}function vd(Cd){if(dd)throw new TypeError("Generator is already executing.");for(;ud;)try{if(dd=1,hd&&(md=Cd[0]&2?hd.return:Cd[0]?hd.throw||((md=hd.return)&&md.call(hd),0):hd.next)&&!(md=md.call(hd,Cd[1])).done)return md;switch(hd=0,md&&(Cd=[Cd[0]&2,md.value]),Cd[0]){case 0:case 1:md=Cd;break;case 4:return ud.label++,{value:Cd[1],done:!1};case 5:ud.label++,hd=Cd[1],Cd=[0];continue;case 7:Cd=ud.ops.pop(),ud.trys.pop();continue;default:if(md=ud.trys,!(md=md.length>0&&md[md.length-1])&&(Cd[0]===6||Cd[0]===2)){ud=0;continue}if(Cd[0]===3&&(!md||Cd[1]>md[0]&&Cd[1]>>1^3988292384:dd>>>=1;ed[ud]=dd}return ed},Ra.prototype.append=function(ed){for(var ud=this.crc,dd=0;dd>>8^this.table[(ud^ed[dd])&255];this.crc=ud},Ra.prototype.compute=function(){return(this.crc^-1)>>>0},Ra.prototype.readAsUint8Array=function(ed){return __awaiter$3(this,void 0,void 0,function(){var ud;return __generator$3(this,function(dd){switch(dd.label){case 0:return typeof ed.arrayBuffer!="function"?[3,2]:(ud=Uint8Array.bind,[4,ed.arrayBuffer()]);case 1:return[2,new(ud.apply(Uint8Array,[void 0,dd.sent()]))];case 2:return[2,new Promise(function(hd,md){var gd=new FileReader;gd.onload=function(){if(gd.result==null){md();return}if(typeof gd.result=="string"){md();return}hd(new Uint8Array(gd.result))},gd.readAsArrayBuffer(ed)})]}})})},Ra.prototype.file=function(ed){return __awaiter$3(this,void 0,void 0,function(){var ud,dd,hd,md,gd,yd;return __generator$3(this,function(vd){switch(vd.label){case 0:return ed.size<=MB?(ud=this.append,[4,this.readAsUint8Array(ed)]):[3,2];case 1:return ud.apply(this,[vd.sent()]),[2,this.compute()];case 2:dd=Math.ceil(ed.size/MB),hd=0,vd.label=3;case 3:return hd0&&md[md.length-1])&&(Cd[0]===6||Cd[0]===2)){ud=0;continue}if(Cd[0]===3&&(!md||Cd[1]>md[0]&&Cd[1]0&&reportV3(Ra,ed,ud-1)};var hd=[ed.code||"",ed.reqId||"",ed.host||"",ed.remoteIp||"",ed.port||"",ed.duration||"",ed.time||"",ed.bytesSent||"",ed.upType||"",ed.size||""].join(",");dd.send(hd)}var __read$2=function(Ra,ed){var ud=typeof Symbol=="function"&&Ra[Symbol.iterator];if(!ud)return Ra;var dd=ud.call(Ra),hd,md=[],gd;try{for(;(ed===void 0||ed-- >0)&&!(hd=dd.next()).done;)md.push(hd.value)}catch(yd){gd={error:yd}}finally{try{hd&&!hd.done&&(ud=dd.return)&&ud.call(dd)}finally{if(gd)throw gd.error}}return md},__spread$2=function(){for(var Ra=[],ed=0;ed0&&md[md.length-1])&&(Cd[0]===6||Cd[0]===2)){ud=0;continue}if(Cd[0]===3&&(!md||Cd[1]>md[0]&&Cd[1]0)&&!(hd=dd.next()).done;)md.push(hd.value)}catch(yd){gd={error:yd}}finally{try{hd&&!hd.done&&(ud=dd.return)&&ud.call(dd)}finally{if(gd)throw gd.error}}return md},__spread$1=function(){for(var Ra=[],ed=0;ed=ed},Ra.prototype.freeze=function(ed){ed===void 0&&(ed=20);var ud=new Date().getTime()+ed*1e3;unfreezeTimeMap.set(this.host,ud)},Ra.prototype.unfreeze=function(){unfreezeTimeMap.delete(this.host)},Ra.prototype.getUrl=function(){return this.protocol+"://"+this.host},Ra.prototype.getUnfreezeTime=function(){return unfreezeTimeMap.get(this.host)},Ra}(),HostPool=function(){function Ra(ed){ed===void 0&&(ed=[]),this.initHosts=ed,this.cachedHostsMap=new Map}return Ra.prototype.register=function(ed,ud,dd,hd){this.cachedHostsMap.set(ed+"@"+ud,dd.map(function(md){return new Host(md,hd)}))},Ra.prototype.refresh=function(ed,ud,dd){var hd,md,gd,yd;return __awaiter$1(this,void 0,void 0,function(){var vd,Cd,wd;return __generator$1(this,function(Nd){switch(Nd.label){case 0:return vd=this.cachedHostsMap.get(ed+"@"+ud)||[],vd.length>0?[2]:this.initHosts.length>0?(this.register(ed,ud,this.initHosts,dd),[2]):[4,getUpHosts(ed,ud,dd)];case 1:return Cd=Nd.sent(),(Cd==null?void 0:Cd.data)!=null&&(wd=__spread$1(((md=(hd=Cd.data.up)===null||hd===void 0?void 0:hd.acc)===null||md===void 0?void 0:md.main)||[],((yd=(gd=Cd.data.up)===null||gd===void 0?void 0:gd.acc)===null||yd===void 0?void 0:yd.backup)||[]),this.register(ed,ud,wd,dd)),[2]}})})},Ra.prototype.getUp=function(ed,ud,dd){return __awaiter$1(this,void 0,void 0,function(){var hd,md,gd;return __generator$1(this,function(yd){switch(yd.label){case 0:return[4,this.refresh(ed,ud,dd)];case 1:return yd.sent(),hd=this.cachedHostsMap.get(ed+"@"+ud)||[],hd.length===0?[2,null]:(md=hd.filter(function(vd){return!vd.isFrozen()}),md.length>0?[2,md[0]]:(gd=hd.slice().sort(function(vd,Cd){return(vd.getUnfreezeTime()||0)-(Cd.getUnfreezeTime()||0)}),[2,gd[0]]))}})})},Ra}();function createUploadManager(Ra,ed,ud,dd){return Ra.config&&Ra.config.forceDirect?(dd.info("ues forceDirect mode."),new Direct(Ra,ed,ud,dd)):Ra.file.size>4*MB?(dd.info("file size over 4M, use Resume."),new Resume(Ra,ed,ud,dd)):(dd.info("file size less or equal than 4M, use Direct."),new Direct(Ra,ed,ud,dd))}function upload(Ra,ed,ud,dd,hd){var md=new Logger(ud,hd==null?void 0:hd.disableStatisticsReport,hd==null?void 0:hd.debugLogLevel,Ra.name),gd={file:Ra,key:ed,token:ud,putExtra:dd,config:normalizeUploadConfig(hd,md)},yd=new HostPool(gd.config.uphost);return new Observable(function(vd){var Cd=createUploadManager(gd,{onData:function(wd){return vd.next(wd)},onError:function(wd){return vd.error(wd)},onComplete:function(wd){return vd.complete(wd)}},yd,md);return Cd.putFile(),Cd.stop.bind(Cd)})}var __assign$1=function(){return __assign$1=Object.assign||function(Ra){for(var ed,ud=1,dd=arguments.length;ud0)&&!(hd=dd.next()).done;)md.push(hd.value)}catch(yd){gd={error:yd}}finally{try{hd&&!hd.done&&(ud=dd.return)&&ud.call(dd)}finally{if(gd)throw gd.error}}return md},__spread=function(){for(var Ra=[],ed=0;ed0&&md[md.length-1])&&(Cd[0]===6||Cd[0]===2)){ud=0;continue}if(Cd[0]===3&&(!md||Cd[1]>md[0]&&Cd[1]this.file.size&&this.config.noCompressIfLarger?[2,{dist:this.file,width:ed.width,height:ed.height}]:[2,{dist:gd,width:md.width,height:md.height}]}})})},Ra.prototype.clear=function(ed,ud,dd){this.outputType===defaultType?(ed.fillStyle="#fff",ed.fillRect(0,0,ud,dd)):ed.clearRect(0,0,ud,dd)},Ra.prototype.getOriginImage=function(){var ed=this;return new Promise(function(ud,dd){var hd=createObjectURL(ed.file),md=new Image;md.onload=function(){ud(md)},md.onerror=function(){dd("image load error")},md.src=hd})},Ra.prototype.getCanvas=function(ed){var ud=this;return new Promise(function(dd,hd){var md=document.createElement("canvas"),gd=md.getContext("2d");if(!gd){hd(new QiniuError(QiniuErrorName.GetCanvasContextFailed,"context is null"));return}var yd=ed.width,vd=ed.height;md.height=vd,md.width=yd,ud.clear(gd,yd,vd),gd.drawImage(ed,0,0),dd(md)})},Ra.prototype.doScale=function(ed,ud){return __awaiter(this,void 0,void 0,function(){var dd,hd,md,gd,yd,vd,Cd,wd,Nd,Ld,Ud,jd,Gd,Yd,zd,qd;return __generator(this,function(Wd){if(ud===1)return[2,ed];if(dd=ed.getContext("2d"),hd=Math.min(maxSteps,Math.ceil(1/ud/scaleFactor)),md=Math.pow(ud,1/hd),gd=document.createElement("canvas"),yd=gd.getContext("2d"),vd=ed.width,Cd=ed.height,wd=vd,Nd=Cd,gd.width=vd,gd.height=Cd,!yd||!dd)throw new QiniuError(QiniuErrorName.GetCanvasContextFailed,"mctx or sctx can't be null");for(jd=0;jd>>31);for(qd=0;qd<80;qd++)zd=(Nd<<5|Nd>>>27)+Gd+Yd[qd],qd<20?zd+=(Ld&Ud|~Ld&jd)+1518500249|0:qd<40?zd+=(Ld^Ud^jd)+1859775393|0:qd<60?zd+=(Ld&Ud|Ld&jd|Ud&jd)+2400959708|0:zd+=(Ld^Ud^jd)+3395469782|0,Gd=jd,jd=Ud,Ud=Ld<<30|Ld>>>2,Ld=Nd,Nd=zd;this.current[0]+=Nd,this.current[1]+=Ld,this.current[2]+=Ud,this.current[3]+=jd,this.current[4]+=Gd,this.currentLen+=64},dd.prototype.doPadding=function(){var wd=(this.inLen+this.currentLen)*8,Nd=0,Ld=wd&4294967295,Ud=this.inLen<=55?55-this.inLen:119-this.inLen,jd=new Uint8Array(new ArrayBuffer(Ud+1+8));return jd[0]=128,jd[jd.length-1]=Ld&255,jd[jd.length-2]=Ld>>>8&255,jd[jd.length-3]=Ld>>>16&255,jd[jd.length-4]=Ld>>>24&255,jd[jd.length-5]=Nd&255,jd[jd.length-6]=Nd>>>8&255,jd[jd.length-7]=Nd>>>16&255,jd[jd.length-8]=Nd>>>24&255,jd},dd.prototype.getDigest=function(){var wd=new Uint8Array(new ArrayBuffer(20));return wd[3]=this.current[0]&255,wd[2]=this.current[0]>>>8&255,wd[1]=this.current[0]>>>16&255,wd[0]=this.current[0]>>>24&255,wd[7]=this.current[1]&255,wd[6]=this.current[1]>>>8&255,wd[5]=this.current[1]>>>16&255,wd[4]=this.current[1]>>>24&255,wd[11]=this.current[2]&255,wd[10]=this.current[2]>>>8&255,wd[9]=this.current[2]>>>16&255,wd[8]=this.current[2]>>>24&255,wd[15]=this.current[3]&255,wd[14]=this.current[3]>>>8&255,wd[13]=this.current[3]>>>16&255,wd[12]=this.current[3]>>>24&255,wd[19]=this.current[4]&255,wd[18]=this.current[4]>>>8&255,wd[17]=this.current[4]>>>16&255,wd[16]=this.current[4]>>>24&255,wd.buffer},dd.prototype.reset=function(){this.currentLen=0,this.inLen=0,this.current=new Uint32Array(new ArrayBuffer(20)),this.current[0]=1732584193,this.current[1]=4023233417,this.current[2]=2562383102,this.current[3]=271733878,this.current[4]=3285377520},dd.prototype.blockLen=64,dd.prototype.digestLen=20;var hd=function(wd){var Nd=new ArrayBuffer(wd.length),Ld=new Uint8Array(Nd),Ud;for(Ud=0;Ud255)throw"For more than one byte, use an array buffer";if(wd<0)throw"Input value must be positive";return md(wd)}else throw"Unsupported type"},yd=function(wd){var Nd=function(jd){for(var Gd=jd.length,Yd=0;Gd>0;){var zd=this.blockLen-this.inLen;zd>Gd&&(zd=Gd);var qd=jd.subarray(Yd,Yd+zd);this.inbuf.set(qd,this.inLen),Yd+=zd,Gd-=zd,this.inLen+=zd,this.inLen===this.blockLen&&(this.processBlock(this.inbuf),this.inLen=0)}},Ld=function(){var jd=this.doPadding();this.update(jd);var Gd=this.getDigest();return this.reset(),Gd},Ud=function(){if(!wd)throw"Unsupported algorithm: "+wd.toString();wd.prototype.update=Nd,wd.prototype.finalize=Ld;var jd=new wd;return jd.inbuf=new Uint8Array(new ArrayBuffer(jd.blockLen)),jd.reset(),jd}();return{update:function(jd){Ud.update(gd(jd))},finalize:function(){return Ud.finalize()},digest:function(jd){return Ud.update(gd(jd)),Ud.finalize()},reset:function(){Ud.reset()},digestLength:function(){return Ud.digestLen}}},vd=function(wd){var Nd=!1,Ld,Ud,jd,Gd=function(){var Wd,Xd;if(!Nd){if(Ld===void 0)throw"MAC key is not defined";for(Ld.byteLength>64?Xd=new Uint8Array(wd.digest(Ld)):Xd=new Uint8Array(Ld),Ud=new Uint8Array(new ArrayBuffer(64)),Wd=0;Wdmf[0]?1:Zd[0]"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");getRandomValues=crypto.getRandomValues.bind(crypto)}return getRandomValues(rnds8)}const randomUUID=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),native={randomUUID};function v4(Ra,ed,ud){var hd;if(native.randomUUID&&!ed&&!Ra)return native.randomUUID();Ra=Ra||{};const dd=Ra.random??((hd=Ra.rng)==null?void 0:hd.call(Ra))??rng();if(dd.length<16)throw new Error("Random bytes length must be >= 16");if(dd[6]=dd[6]&15|64,dd[8]=dd[8]&63|128,ed){if(ud=ud||0,ud<0||ud+16>ed.length)throw new RangeError(`UUID byte range ${ud}:${ud+15} is out of buffer bounds`);for(let md=0;md<16;++md)ed[ud+md]=dd[md];return ed}return unsafeStringify(dd)}function getConfig(Ra,ed){if(Ra){const hd=ed==="github"?githubConfig:giteeConfig,{username:md,repoList:gd,branch:yd,accessTokenList:vd}=hd,Cd=Math.floor(Math.random()*vd.length),wd=vd[Cd].replace("doocsmd",""),Nd=Math.floor(Math.random()*gd.length),Ld=gd[Nd];return{username:md,repo:Ld,branch:yd,accessToken:wd}}const ud=JSON.parse(localStorage.getItem(`${ed}Config`)),dd=ud.repo.replace(`https://${ed}.com/`,"").replace(`http://${ed}.com/`,"").replace(`${ed}.com/`,"").split("/");return{username:dd[0],repo:dd[1],branch:ud.branch||"master",accessToken:ud.accessToken}}function getDir(){const Ra=new Date,ed=Ra.getFullYear(),ud=(Ra.getMonth()+1).toString().padStart(2,"0"),dd=Ra.getDate().toString().padStart(2,"0");return`${ed}/${ud}/${dd}`}function getDateFilename(Ra){const ed=new Date().getTime(),ud=Ra.split(".")[1];return`${ed}-${v4()}.${ud}`}async function ghFileUpload(Ra,ed){var Ud;const ud=localStorage.getItem("imgHost")==="default",{username:dd,repo:hd,branch:md,accessToken:gd}=getConfig(ud,"github"),yd=getDir(),vd=`https://api.github.com/repos/${dd}/${hd}/contents/${yd}/`,Cd=getDateFilename(ed),wd=await service({url:vd+Cd,method:"put",headers:{Authorization:`token ${gd}`},data:{content:Ra,branch:md,message:`Upload by ${window.location.href}`}}),Nd=`raw.githubusercontent.com/${dd}/${hd}/${md}/`,Ld=`fastly.jsdelivr.net/gh/${dd}/${hd}@${md}/`;return wd.content=((Ud=wd.data)==null?void 0:Ud.content)||wd.content,ud?wd.content.download_url.replace(Nd,Ld):wd.content.download_url}async function giteeUpload(Ra,ed){var Nd;const ud=localStorage.getItem("imgHost")==="default",{username:dd,repo:hd,branch:md,accessToken:gd}=getConfig(ud,"gitee"),yd=getDir(),vd=getDateFilename(ed),Cd=`https://gitee.com/api/v5/repos/${dd}/${hd}/contents/${yd}/${vd}`,wd=await service({url:Cd,method:"POST",data:{content:Ra,branch:md,access_token:gd,message:`Upload by ${window.location.href}`}});return wd.content=((Nd=wd.data)==null?void 0:Nd.content)||wd.content,encodeURI(wd.content.download_url)}function getQiniuToken(Ra,ed,ud){const dd=JSON.stringify(ud),hd=base64encode(utf16to8(dd)),gd=CryptoJS.HmacSHA1(hd,ed).toString(CryptoJS.enc.Base64);return`${Ra}:${safe64(gd)}:${hd}`}async function qiniuUpload(Ra){const{accessKey:ed,secretKey:ud,bucket:dd,region:hd,path:md,domain:gd}=JSON.parse(localStorage.getItem("qiniuConfig")),yd=getQiniuToken(ed,ud,{scope:dd,deadline:Math.trunc(new Date().getTime()/1e3)+3600}),Cd=(md?`${md}/`:"")+getDateFilename(Ra.name),wd=upload(Ra,Cd,yd,{},{region:hd});return new Promise((Nd,Ld)=>{wd.subscribe({next:Ud=>{console.log(Ud)},error:Ud=>{Ld(Ud.message)},complete:Ud=>{Nd(`${gd}/${Ud.key}`)}})})}async function aliOSSFileUpload(Ra){const ed=getDateFilename(Ra.name),{region:ud,bucket:dd,accessKeyId:hd,accessKeySecret:md,useSSL:gd,cdnHost:yd,path:vd}=JSON.parse(localStorage.getItem("aliOSSConfig")),Cd=vd?`${vd}/${ed}`:ed,wd=gd===void 0||gd,Nd=wd?"https":"http",Ld=new OSS({region:ud,bucket:dd,accessKeyId:hd,accessKeySecret:md,secure:wd});try{return await Ld.put(Cd,Ra),yd?`${yd}/${Cd}`:`${Nd}://${dd}.${ud}.aliyuncs.com/${Cd}`}catch(Ud){return Promise.reject(Ud)}}async function txCOSFileUpload(Ra){const ed=getDateFilename(Ra.name),{secretId:ud,secretKey:dd,bucket:hd,region:md,path:gd,cdnHost:yd}=JSON.parse(localStorage.getItem("txCOSConfig")),vd=new COS({SecretId:ud,SecretKey:dd});return new Promise((Cd,wd)=>{vd.putObject({Bucket:hd,Region:md,Key:`${gd}/${ed}`,Body:Ra},(Nd,Ld)=>{Nd?wd(Nd):Cd(yd?gd===""?`${yd}/${ed}`:`${yd}/${gd}/${ed}`:`https://${Ld.Location}`)})})}async function minioFileUpload(Ra,ed){const ud=getDateFilename(ed),{endpoint:dd,port:hd,useSSL:md,bucket:gd,accessKey:yd,secretKey:vd}=JSON.parse(localStorage.getItem("minioConfig")),Cd=Buffer$1(Ra,"base64"),wd={endPoint:dd,useSSL:md,accessKey:yd,secretKey:vd},Nd=Number(hd||0),Ld=Nd>0&&Nd!==80&&Nd!==443;return Ld&&(wd.port=Nd),new Promise((Ud,jd)=>{const Gd=new Client(wd);try{Gd.putObject(gd,ud,Cd,Yd=>{Yd&&jd(Yd);const qd=`${`${md?"https://":"http://"}${dd}${Ld?`:${hd}`:""}`}/${gd}/${ud}`;Ud(qd)})}catch(Yd){jd(Yd)}})}async function getMpToken(Ra,ed,ud){const dd=localStorage.getItem(`mpToken:${Ra}`);if(dd){const yd=JSON.parse(dd);if(yd.expire&&yd.expire>new Date().getTime())return yd.access_token}const hd={method:"POST",data:{grant_type:"client_credential",appid:Ra,secret:ed}};let md="https://api.weixin.qq.com/cgi-bin/stable_token";ud&&(md=`${ud}/cgi-bin/stable_token`);const gd=await service(md,hd);if(gd.access_token){const yd={...gd,expire:new Date().getTime()+gd.expires_in*1e3};return localStorage.setItem(`mpToken:${Ra}`,JSON.stringify(yd)),gd.access_token}return""}async function mpFileUpload(Ra){const{appID:ed,appsecret:ud,proxyOrigin:dd}=JSON.parse(localStorage.getItem("mpConfig")),hd=await getMpToken(ed,ud,dd);if(!hd)throw new Error("获取 access_token 失败");const md=new FormData;md.append("media",Ra,Ra.name);const gd={method:"POST",data:md};let yd=`https://api.weixin.qq.com/cgi-bin/material/add_material?access_token=${hd}&type=image`;dd&&(yd=`${dd}/cgi-bin/material/add_material?access_token=${hd}&type=image`);const vd=await service(yd,gd);if(!vd.url)throw new Error("上传失败,未获取到URL");let Cd=vd.url;return dd&&window.location.href.startsWith("http")&&(Cd=`https://wsrv.nl?url=${encodeURIComponent(Cd)}`),Cd}async function r2Upload(Ra){const{accountId:ed,accessKey:ud,secretKey:dd,bucket:hd,path:md,domain:gd}=JSON.parse(localStorage.getItem("r2Config")),vd=(md?`${md}/`:"")+getDateFilename(Ra.name),Cd=new S3Client({region:"auto",endpoint:`https://${ed}.r2.cloudflarestorage.com`,credentials:{accessKeyId:ud,secretAccessKey:dd}}),wd=await getSignedUrl(Cd,new PutObjectCommand({Bucket:hd,Key:vd,ContentType:Ra.type}),{expiresIn:300});return await service(wd,{method:"PUT",headers:{"Content-Type":Ra.type},data:Ra}).catch(Nd=>{console.log(Nd)}),`${gd}/${vd}`}async function formCustomUpload(content,file){const str=` +`)}),jd}function Nd(Ud,jd,Gd){Ud===void 0&&(Ud=""),jd===void 0&&(jd="");var Yd="";Ud&&(Yd+="/"+Ud),jd&&(jd.charAt(0)!=="/"&&(Yd+="/"),Yd+=jd);var zd=""+Yd,qd="?";if(Gd){var Wd=function(Zd,mf){return Zd[0]>mf[0]?1:Zd[0]"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");getRandomValues=crypto.getRandomValues.bind(crypto)}return getRandomValues(rnds8)}const randomUUID=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),native={randomUUID};function v4(Ra,ed,ud){var hd;if(native.randomUUID&&!ed&&!Ra)return native.randomUUID();Ra=Ra||{};const dd=Ra.random??((hd=Ra.rng)==null?void 0:hd.call(Ra))??rng();if(dd.length<16)throw new Error("Random bytes length must be >= 16");if(dd[6]=dd[6]&15|64,dd[8]=dd[8]&63|128,ed){if(ud=ud||0,ud<0||ud+16>ed.length)throw new RangeError(`UUID byte range ${ud}:${ud+15} is out of buffer bounds`);for(let md=0;md<16;++md)ed[ud+md]=dd[md];return ed}return unsafeStringify(dd)}function getConfig(Ra,ed){if(Ra){const hd=ed==="github"?githubConfig:giteeConfig,{username:md,repoList:gd,branch:yd,accessTokenList:vd}=hd,Cd=Math.floor(Math.random()*vd.length),wd=vd[Cd].replace("doocsmd",""),Nd=Math.floor(Math.random()*gd.length),Ld=gd[Nd];return{username:md,repo:Ld,branch:yd,accessToken:wd}}const ud=JSON.parse(localStorage.getItem(`${ed}Config`)),dd=ud.repo.replace(`https://${ed}.com/`,"").replace(`http://${ed}.com/`,"").replace(`${ed}.com/`,"").split("/");return{username:dd[0],repo:dd[1],branch:ud.branch||"master",accessToken:ud.accessToken}}function getDir(){const Ra=new Date,ed=Ra.getFullYear(),ud=(Ra.getMonth()+1).toString().padStart(2,"0"),dd=Ra.getDate().toString().padStart(2,"0");return`${ed}/${ud}/${dd}`}function getDateFilename(Ra){const ed=new Date().getTime(),ud=Ra.split(".")[1];return`${ed}-${v4()}.${ud}`}async function ghFileUpload(Ra,ed){var Ud;const ud=localStorage.getItem("imgHost")==="default",{username:dd,repo:hd,branch:md,accessToken:gd}=getConfig(ud,"github"),yd=getDir(),vd=`https://api.github.com/repos/${dd}/${hd}/contents/${yd}/`,Cd=getDateFilename(ed),wd=await service({url:vd+Cd,method:"put",headers:{Authorization:`token ${gd}`},data:{content:Ra,branch:md,message:`Upload by ${window.location.href}`}}),Nd=`raw.githubusercontent.com/${dd}/${hd}/${md}/`,Ld=`fastly.jsdelivr.net/gh/${dd}/${hd}@${md}/`;return wd.content=((Ud=wd.data)==null?void 0:Ud.content)||wd.content,ud?wd.content.download_url.replace(Nd,Ld):wd.content.download_url}async function giteeUpload(Ra,ed){var Nd;const ud=localStorage.getItem("imgHost")==="default",{username:dd,repo:hd,branch:md,accessToken:gd}=getConfig(ud,"gitee"),yd=getDir(),vd=getDateFilename(ed),Cd=`https://gitee.com/api/v5/repos/${dd}/${hd}/contents/${yd}/${vd}`,wd=await service({url:Cd,method:"POST",data:{content:Ra,branch:md,access_token:gd,message:`Upload by ${window.location.href}`}});return wd.content=((Nd=wd.data)==null?void 0:Nd.content)||wd.content,encodeURI(wd.content.download_url)}function getQiniuToken(Ra,ed,ud){const dd=JSON.stringify(ud),hd=base64encode(utf16to8(dd)),gd=CryptoJS.HmacSHA1(hd,ed).toString(CryptoJS.enc.Base64);return`${Ra}:${safe64(gd)}:${hd}`}async function qiniuUpload(Ra){const{accessKey:ed,secretKey:ud,bucket:dd,region:hd,path:md,domain:gd}=JSON.parse(localStorage.getItem("qiniuConfig")),yd=getQiniuToken(ed,ud,{scope:dd,deadline:Math.trunc(new Date().getTime()/1e3)+3600}),Cd=(md?`${md}/`:"")+getDateFilename(Ra.name),wd=upload(Ra,Cd,yd,{},{region:hd});return new Promise((Nd,Ld)=>{wd.subscribe({next:Ud=>{console.log(Ud)},error:Ud=>{Ld(Ud.message)},complete:Ud=>{Nd(`${gd}/${Ud.key}`)}})})}async function aliOSSFileUpload(Ra){const ed=getDateFilename(Ra.name),{region:ud,bucket:dd,accessKeyId:hd,accessKeySecret:md,useSSL:gd,cdnHost:yd,path:vd}=JSON.parse(localStorage.getItem("aliOSSConfig")),Cd=vd?`${vd}/${ed}`:ed,wd=gd===void 0||gd,Nd=wd?"https":"http",Ld=new OSS({region:ud,bucket:dd,accessKeyId:hd,accessKeySecret:md,secure:wd});try{return await Ld.put(Cd,Ra),yd?`${yd}/${Cd}`:`${Nd}://${dd}.${ud}.aliyuncs.com/${Cd}`}catch(Ud){return Promise.reject(Ud)}}async function txCOSFileUpload(Ra){const ed=getDateFilename(Ra.name),{secretId:ud,secretKey:dd,bucket:hd,region:md,path:gd,cdnHost:yd}=JSON.parse(localStorage.getItem("txCOSConfig")),vd=new COS({SecretId:ud,SecretKey:dd});return new Promise((Cd,wd)=>{vd.putObject({Bucket:hd,Region:md,Key:`${gd}/${ed}`,Body:Ra},(Nd,Ld)=>{Nd?wd(Nd):Cd(yd?gd===""?`${yd}/${ed}`:`${yd}/${gd}/${ed}`:`https://${Ld.Location}`)})})}async function minioFileUpload(Ra,ed){const ud=getDateFilename(ed),{endpoint:dd,port:hd,useSSL:md,bucket:gd,accessKey:yd,secretKey:vd}=JSON.parse(localStorage.getItem("minioConfig")),Cd=Buffer$1(Ra,"base64"),wd={endPoint:dd,useSSL:md,accessKey:yd,secretKey:vd},Nd=Number(hd||0),Ld=Nd>0&&Nd!==80&&Nd!==443;return Ld&&(wd.port=Nd),new Promise((Ud,jd)=>{const Gd=new Client(wd);try{Gd.putObject(gd,ud,Cd,Yd=>{Yd&&jd(Yd);const qd=`${`${md?"https://":"http://"}${dd}${Ld?`:${hd}`:""}`}/${gd}/${ud}`;Ud(qd)})}catch(Yd){jd(Yd)}})}async function getMpToken(Ra,ed,ud){const dd=localStorage.getItem(`mpToken:${Ra}`);if(dd){const yd=JSON.parse(dd);if(yd.expire&&yd.expire>new Date().getTime())return yd.access_token}const hd={method:"POST",data:{grant_type:"client_credential",appid:Ra,secret:ed}};let md="https://api.weixin.qq.com/cgi-bin/stable_token";ud&&(md=`${ud}/cgi-bin/stable_token`);const gd=await service(md,hd);if(gd.access_token){const yd={...gd,expire:new Date().getTime()+gd.expires_in*1e3};return localStorage.setItem(`mpToken:${Ra}`,JSON.stringify(yd)),gd.access_token}return""}async function mpFileUpload(Ra){const{appID:ed,appsecret:ud,proxyOrigin:dd}=JSON.parse(localStorage.getItem("mpConfig")),hd=await getMpToken(ed,ud,dd);if(!hd)throw new Error("获取 access_token 失败");const md=new FormData;md.append("media",Ra,Ra.name);const gd={method:"POST",data:md};let yd=`https://api.weixin.qq.com/cgi-bin/material/add_material?access_token=${hd}&type=image`;dd&&(yd=`${dd}/cgi-bin/material/add_material?access_token=${hd}&type=image`);const vd=await service(yd,gd);if(!vd.url)throw new Error("上传失败,未获取到URL");let Cd=vd.url;return dd&&window.location.href.startsWith("http")&&(Cd=`https://wsrv.nl?url=${encodeURIComponent(Cd)}`),Cd}async function r2Upload(Ra){const{accountId:ed,accessKey:ud,secretKey:dd,bucket:hd,path:md,domain:gd}=JSON.parse(localStorage.getItem("r2Config")),vd=(md?`${md}/`:"")+getDateFilename(Ra.name),Cd=new S3Client({region:"auto",endpoint:`https://${ed}.r2.cloudflarestorage.com`,credentials:{accessKeyId:ud,secretAccessKey:dd}}),wd=await getSignedUrl(Cd,new PutObjectCommand({Bucket:hd,Key:vd,ContentType:Ra.type}),{expiresIn:300});return await service(wd,{method:"PUT",headers:{"Content-Type":Ra.type},data:Ra}).catch(Nd=>{console.log(Nd)}),`${gd}/${vd}`}async function formCustomUpload(content,file){const str=` async (CUSTOM_ARG) => { ${localStorage.getItem("formCustomConfig")} } - `;return new Promise((resolve,reject)=>{const exportObj={content,file,util:{axios:service,CryptoJS,OSS,COS,Buffer:Buffer$1,uuidv4:v4,qiniu,tokenTools,getDir,getDateFilename},okCb:resolve,errCb:reject};eval(str)(exportObj).catch(Ra=>{console.error(Ra),reject(Ra)})})}function fileUpload(Ra,ed){const ud=localStorage.getItem("imgHost");switch(ud||localStorage.setItem("imgHost","default"),ud){case"aliOSS":return aliOSSFileUpload(ed);case"minio":return minioFileUpload(Ra,ed.name);case"txCOS":return txCOSFileUpload(ed);case"qiniu":return qiniuUpload(ed);case"gitee":return giteeUpload(Ra,ed.name);case"github":return ghFileUpload(Ra,ed.name);case"mp":return mpFileUpload(ed);case"r2":return r2Upload(ed);case"formCustom":return formCustomUpload(Ra,ed);default:return ghFileUpload(Ra,ed.name)}}const fileApi={fileUpload},_hoisted_1={class:"container-main flex flex-1 flex-col"},_hoisted_2={class:"container-main-section border-radius-10 relative flex flex-1 overflow-hidden border-1"},_hoisted_3={class:"preview border-x-1 shadow-xl"},_hoisted_4=["innerHTML"],_hoisted_5={key:0,class:"loading-mask"},_hoisted_6={class:"h-[30px] flex select-none items-center justify-end px-4 text-[12px]"},_sfc_main$1=defineComponent({__name:"CodemirrorEditor",setup(Ra){const ed=useStore(),ud=useDisplayStore(),{isDark:dd,output:hd,editor:md,readingTime:gd}=storeToRefs(ed),{editorRefresh:yd,exportEditorContent2HTML:vd,exportEditorContent2MD:Cd,formatContent:wd,importMarkdownContent:Nd,resetStyleConfirm:Ld}=ed,{toggleShowInsertFormDialog:Ud,toggleShowUploadImgDialog:jd}=ud,Gd=ref$1(!1),Yd=ref$1(),zd=ref$1(null);function qd(){const Ff=yh=>{let Mh,lh;clearTimeout(Yd.value),yh==="preview"?(Mh=zd.value,lh=document.querySelector(".CodeMirror-scroll"),md.value.off("scroll",sh),Yd.value=setTimeout(()=>{md.value.on("scroll",sh)},300)):(Mh=document.querySelector(".CodeMirror-scroll"),lh=zd.value,lh.removeEventListener("scroll",Sh,!1),Yd.value=setTimeout(()=>{lh.addEventListener("scroll",Sh,!1)},300));const mh=Mh.scrollTop/(Mh.scrollHeight-Mh.offsetHeight)*(lh.scrollHeight-lh.offsetHeight);lh.scrollTo(0,mh)};function sh(){Ff("editor")}function Sh(){Ff("preview")}zd.value.addEventListener("scroll",Sh,!1),md.value.on("scroll",sh)}onMounted(()=>{setTimeout(()=>{qd()},300)});function Wd(){yd()}const Xd=ref$1(!1),Jd=ref$1(!1);function Zd(){Jd.value=!0,Xd.value=!0}function mf(){Xd.value=!1,setTimeout(()=>{Jd.value=!1},800)}function xf(Ff){const sh=checkImage(Ff);if(!sh.ok)return Ke.error(sh.msg),!1;const Sh=localStorage.getItem("imgHost")||"default";localStorage.setItem("imgHost",Sh);const yh=localStorage.getItem(`${Sh}Config`);return Sh==="default"||yh?!0:(Ke.error(`请先配置 ${Sh} 图床参数`),!1)}function _f(Ff){if(!Ff){Ke.error("上传图片未知异常");return}jd(!1);const sh=md.value.getCursor(),Sh=`![](${Ff})`;toRaw(ed.editor).replaceSelection(` -${Sh} -`,sh),Ke.success("图片上传成功")}function vf(Ff,sh){Gd.value=!0,toBase64$2(Ff).then(Sh=>fileApi.fileUpload(Sh,Ff)).then(Sh=>{sh?sh(Sh):_f(Sh)}).catch(Sh=>{Ke.error(Sh.message)}).finally(()=>{Gd.value=!1})}const gf=ref$1();watch(dd,()=>{var sh,Sh;const Ff=dd.value?"darcula":"xq-light";(Sh=(sh=toRaw(md.value))==null?void 0:sh.setOption)==null||Sh.call(sh,"theme",Ff)});function Af(){const Ff=document.querySelector("#editor");Ff.value||(Ff.value=ed.posts[ed.currentPostIndex].content),md.value=CodeMirror.fromTextArea(Ff,{mode:"text/x-markdown",theme:dd.value?"darcula":"xq-light",lineNumbers:!1,lineWrapping:!0,styleActiveLine:!0,autoCloseBrackets:!0,extraKeys:{[`${shiftKey}-${altKey}-F`]:function(Sh){formatDoc(Sh.getValue()).then(yh=>{Sh.setValue(yh)})},[`${ctrlKey}-B`]:function(Sh){const yh=Sh.getSelection();Sh.replaceSelection(`**${yh}**`)},[`${ctrlKey}-I`]:function(Sh){const yh=Sh.getSelection();Sh.replaceSelection(`*${yh}*`)},[`${ctrlKey}-D`]:function(Sh){const yh=Sh.getSelection();Sh.replaceSelection(`~~${yh}~~`)},[`${ctrlKey}-K`]:function(Sh){const yh=Sh.getSelection();Sh.replaceSelection(`[${yh}]()`)},[`${ctrlKey}-E`]:function(Sh){const yh=Sh.getSelection();Sh.replaceSelection(`\`${yh}\``)},[`${ctrlKey}-L`]:function(Sh){const yh=Sh.getSelection();Sh.replaceSelection(`\`${yh}\``)}}}),md.value.on("change",sh=>{clearTimeout(gf.value),gf.value=setTimeout(()=>{Wd(),ed.posts[ed.currentPostIndex].content=sh.getValue()},300)}),md.value.on("paste",(sh,Sh)=>{if(!(!(Sh.clipboardData&&Sh.clipboardData.items)||Gd.value))for(let yh=0,Mh=Sh.clipboardData.items.length;yh{const rh=[...Mh.str.matchAll(/!\[(.*?)\]\((.*?)\)/g)||[]].filter(Eh=>Eh),mh=Mh.path.match(/.+?\//)[0];(await Promise.all(rh.map(Eh=>new Promise(kf=>{let[,,Rf]=Eh;Rf=Rf.replace(/^.\//,"");const{file:_h}=lh.find(Ph=>Ph.path===`${mh}${Rf}`)||{};vf(_h,Ph=>{kf({matchStr:Rf,url:Ph})})})))).forEach(Eh=>{Mh.str=Mh.str.replace(`](./${Eh.matchStr})`,`](${Eh.url})`).replace(`](${Eh.matchStr})`,`](${Eh.url})`)}),md.value.setValue(Mh.str)};Ff.ondragover=Mh=>Mh.preventDefault(),Ff.ondrop=async Mh=>{Mh.preventDefault();for(const lh of Mh.dataTransfer.items)lh.getAsFileSystemHandle().then(async rh=>{if(rh.kind==="directory"){const mh=await yh(rh),xh=await Sh({list:mh});sh({md:xh,list:mh})}else{const mh=await rh.getFile();console.log("file",mh)}})};async function Sh({list:Mh}){return new Promise(lh=>{const{path:rh,file:mh}=Mh.find(Eh=>Eh.path.match(/\.md$/)),xh=new FileReader;xh.readAsText(mh,"UTF-8"),xh.onload=Eh=>{lh({str:Eh.target.result,file:mh,path:rh})}})}async function yh(Mh){const lh=[];let rh="";try{const mh=[Mh];for(const xh of mh){rh+=`${xh.name}/`;for await(const[,Eh]of xh)Eh.kind==="file"?lh.push({path:rh+Eh.name,file:await Eh.getFile()}):(lh.push({path:`${rh+Eh.name}/`}),mh.push(Eh))}}catch(mh){console.error(mh)}return lh}}return onMounted(()=>{Af(),Wd(),If()}),(Ff,sh)=>{var om,zh;const Sh=__unplugin_components_0,yh=_sfc_main$C,Mh=_sfc_main$I,lh=_sfc_main$J,rh=_sfc_main$K,mh=_sfc_main$L,xh=_sfc_main$M,Eh=_sfc_main$N,kf=_sfc_main$O,Rf=__unplugin_components_9,_h=_sfc_main$R,Ph=_sfc_main$S,sm=_sfc_main$15,th=__unplugin_components_13$1,oh=_sfc_main$1j,Zh=_sfc_main$1k,Sm=_sfc_main$1l,$h=_sfc_main$1m,Vf=_sfc_main$1n,nh=_sfc_main$1p,Lh=_sfc_main$1q,Ih=_sfc_main$1r;return openBlock(),createElementBlock("div",{ref_key:"container",ref:Df,class:"container flex flex-col"},[createVNode(Sh,{onAddFormat:Of,onFormatContent:unref(wd),onStartCopy:Zd,onEndCopy:mf},null,8,["onFormatContent"]),createBaseVNode("main",_hoisted_1,[createBaseVNode("div",_hoisted_2,[createVNode(yh),createBaseVNode("div",{ref_key:"codeMirrorWrapper",ref:Cf,class:normalizeClass(["codeMirror-wrapper flex-1",{"order-1 border-l":!unref(ed).isEditOnLeft,"border-r":unref(ed).isEditOnLeft}])},[createVNode(Eh,null,{default:withCtx(()=>[createVNode(Mh,null,{default:withCtx(()=>sh[9]||(sh[9]=[createBaseVNode("textarea",{id:"editor",type:"textarea",placeholder:"Your markdown text here."},null,-1)])),_:1}),createVNode(xh,{class:"w-64"},{default:withCtx(()=>[createVNode(lh,{inset:"",onClick:sh[0]||(sh[0]=Om=>unref(jd)())},{default:withCtx(()=>sh[10]||(sh[10]=[createTextVNode(" 上传图片 ")])),_:1}),createVNode(lh,{inset:"",onClick:sh[1]||(sh[1]=Om=>unref(Ud)())},{default:withCtx(()=>sh[11]||(sh[11]=[createTextVNode(" 插入表格 ")])),_:1}),createVNode(lh,{inset:"",onClick:sh[2]||(sh[2]=Om=>unref(Ld)())},{default:withCtx(()=>sh[12]||(sh[12]=[createTextVNode(" 恢复默认样式 ")])),_:1}),createVNode(rh),createVNode(lh,{inset:"",onClick:sh[3]||(sh[3]=Om=>unref(Nd)())},{default:withCtx(()=>sh[13]||(sh[13]=[createTextVNode(" 导入 .md 文档 ")])),_:1}),createVNode(lh,{inset:"",onClick:sh[4]||(sh[4]=Om=>unref(Cd)())},{default:withCtx(()=>sh[14]||(sh[14]=[createTextVNode(" 导出 .md 文档 ")])),_:1}),createVNode(lh,{inset:"",onClick:sh[5]||(sh[5]=Om=>unref(vd)())},{default:withCtx(()=>sh[15]||(sh[15]=[createTextVNode(" 导出 .html ")])),_:1}),createVNode(lh,{inset:"",onClick:sh[6]||(sh[6]=Om=>unref(wd)())},{default:withCtx(()=>[sh[16]||(sh[16]=createTextVNode(" 格式化 ")),createVNode(mh,null,{default:withCtx(()=>[createTextVNode(toDisplayString(unref(altSign))+" + "+toDisplayString(unref(shiftSign))+" + F",1)]),_:1})]),_:1})]),_:1})]),_:1})],2),createBaseVNode("div",{id:"preview",ref_key:"preview",ref:zd,class:"preview-wrapper flex-1 p-5"},[createBaseVNode("div",{id:"output-wrapper",class:normalizeClass({output_night:!unref(Xd)})},[createBaseVNode("div",_hoisted_3,[createBaseVNode("section",{id:"output",innerHTML:unref(hd)},null,8,_hoisted_4),unref(Jd)?(openBlock(),createElementBlock("div",_hoisted_5,sh[17]||(sh[17]=[createBaseVNode("div",{class:"loading-mask-box"},[createBaseVNode("div",{class:"loading__img"}),createBaseVNode("span",null,"正在生成")],-1)]))):createCommentVNode("",!0)])],2),createVNode(kf,{target:"preview",right:40,bottom:40})],512),createVNode(Rf,{class:"order-2 flex-1"}),createVNode(_h,{class:"order-2"})]),createBaseVNode("footer",_hoisted_6," 字数 "+toDisplayString((om=unref(gd))==null?void 0:om.words)+", 阅读大约需 "+toDisplayString(Math.ceil(((zh=unref(gd))==null?void 0:zh.minutes)??0))+" 分钟 ",1),createVNode(Ph,{onUploadImage:vf}),createVNode(sm),createVNode(th),createVNode(Ih,{open:unref(ed).isOpenConfirmDialog,"onUpdate:open":sh[8]||(sh[8]=Om=>unref(ed).isOpenConfirmDialog=Om)},{default:withCtx(()=>[createVNode(Lh,null,{default:withCtx(()=>[createVNode(Sm,null,{default:withCtx(()=>[createVNode(oh,null,{default:withCtx(()=>sh[18]||(sh[18]=[createTextVNode("提示")])),_:1}),createVNode(Zh,null,{default:withCtx(()=>sh[19]||(sh[19]=[createTextVNode(" 此操作将丢失本地自定义样式,是否继续? ")])),_:1})]),_:1}),createVNode(nh,null,{default:withCtx(()=>[createVNode($h,null,{default:withCtx(()=>sh[20]||(sh[20]=[createTextVNode("取消")])),_:1}),createVNode(Vf,{onClick:sh[7]||(sh[7]=Om=>unref(ed).resetStyle())},{default:withCtx(()=>sh[21]||(sh[21]=[createTextVNode(" 确认 ")])),_:1})]),_:1})]),_:1})]),_:1},8,["open"])])],512)}}}),CodemirrorEditor=_export_sfc(_sfc_main$1,[["__scopeId","data-v-74776407"]]),_sfc_main=defineComponent({__name:"App",setup(Ra){return(ed,ud)=>(openBlock(),createBlock(CodemirrorEditor))}});var css={exports:{}};(function(Ra,ed){(function(ud){ud(requireCodemirror())})(function(ud){ud.defineMode("css",function(vf,gf){var Af=gf.inline;gf.propertyKeywords||(gf=ud.resolveMode("text/css"));var Df=vf.indentUnit,Of=gf.tokenHooks,Cf=gf.documentTypes||{},If=gf.mediaTypes||{},Ff=gf.mediaFeatures||{},sh=gf.mediaValueKeywords||{},Sh=gf.propertyKeywords||{},yh=gf.nonStandardPropertyKeywords||{},Mh=gf.fontProperties||{},lh=gf.counterDescriptors||{},rh=gf.colorKeywords||{},mh=gf.valueKeywords||{},xh=gf.allowNested,Eh=gf.lineComment,kf=gf.supportsAtComponent===!0,Rf=vf.highlightNonStandardPropertyKeywords!==!1,_h,Ph;function sm(zh,Om){return _h=Om,zh}function th(zh,Om){var Im=zh.next();if(Of[Im]){var Zm=Of[Im](zh,Om);if(Zm!==!1)return Zm}if(Im=="@")return zh.eatWhile(/[\w\\\-]/),sm("def",zh.current());if(Im=="="||(Im=="~"||Im=="|")&&zh.eat("="))return sm(null,"compare");if(Im=='"'||Im=="'")return Om.tokenize=oh(Im),Om.tokenize(zh,Om);if(Im=="#")return zh.eatWhile(/[\w\\\-]/),sm("atom","hash");if(Im=="!")return zh.match(/^\s*\w*/),sm("keyword","important");if(/\d/.test(Im)||Im=="."&&zh.eat(/\d/))return zh.eatWhile(/[\w.%]/),sm("number","unit");if(Im==="-"){if(/[\d.]/.test(zh.peek()))return zh.eatWhile(/[\w.%]/),sm("number","unit");if(zh.match(/^-[\w\\\-]*/))return zh.eatWhile(/[\w\\\-]/),zh.match(/^\s*:/,!1)?sm("variable-2","variable-definition"):sm("variable-2","variable");if(zh.match(/^\w+-/))return sm("meta","meta")}else return/[,+>*\/]/.test(Im)?sm(null,"select-op"):Im=="."&&zh.match(/^-?[_a-z][_a-z0-9-]*/i)?sm("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(Im)?sm(null,Im):zh.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(zh.current())&&(Om.tokenize=Zh),sm("variable callee","variable")):/[\w\\\-]/.test(Im)?(zh.eatWhile(/[\w\\\-]/),sm("property","word")):sm(null,null)}function oh(zh){return function(Om,Im){for(var Zm=!1,Lm;(Lm=Om.next())!=null;){if(Lm==zh&&!Zm){zh==")"&&Om.backUp(1);break}Zm=!Zm&&Lm=="\\"}return(Lm==zh||!Zm&&zh!=")")&&(Im.tokenize=null),sm("string","string")}}function Zh(zh,Om){return zh.next(),zh.match(/^\s*[\"\')]/,!1)?Om.tokenize=null:Om.tokenize=oh(")"),sm(null,"(")}function Sm(zh,Om,Im){this.type=zh,this.indent=Om,this.prev=Im}function $h(zh,Om,Im,Zm){return zh.context=new Sm(Im,Om.indentation()+(Zm===!1?0:Df),zh.context),Im}function Vf(zh){return zh.context.prev&&(zh.context=zh.context.prev),zh.context.type}function nh(zh,Om,Im){return om[Im.context.type](zh,Om,Im)}function Lh(zh,Om,Im,Zm){for(var Lm=Zm||1;Lm>0;Lm--)Im.context=Im.context.prev;return nh(zh,Om,Im)}function Ih(zh){var Om=zh.current().toLowerCase();mh.hasOwnProperty(Om)?Ph="atom":rh.hasOwnProperty(Om)?Ph="keyword":Ph="variable"}var om={};return om.top=function(zh,Om,Im){if(zh=="{")return $h(Im,Om,"block");if(zh=="}"&&Im.context.prev)return Vf(Im);if(kf&&/@component/i.test(zh))return $h(Im,Om,"atComponentBlock");if(/^@(-moz-)?document$/i.test(zh))return $h(Im,Om,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(zh))return $h(Im,Om,"atBlock");if(/^@(font-face|counter-style)/i.test(zh))return Im.stateArg=zh,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(zh))return"keyframes";if(zh&&zh.charAt(0)=="@")return $h(Im,Om,"at");if(zh=="hash")Ph="builtin";else if(zh=="word")Ph="tag";else{if(zh=="variable-definition")return"maybeprop";if(zh=="interpolation")return $h(Im,Om,"interpolation");if(zh==":")return"pseudo";if(xh&&zh=="(")return $h(Im,Om,"parens")}return Im.context.type},om.block=function(zh,Om,Im){if(zh=="word"){var Zm=Om.current().toLowerCase();return Sh.hasOwnProperty(Zm)?(Ph="property","maybeprop"):yh.hasOwnProperty(Zm)?(Ph=Rf?"string-2":"property","maybeprop"):xh?(Ph=Om.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(Ph+=" error","maybeprop")}else return zh=="meta"?"block":!xh&&(zh=="hash"||zh=="qualifier")?(Ph="error","block"):om.top(zh,Om,Im)},om.maybeprop=function(zh,Om,Im){return zh==":"?$h(Im,Om,"prop"):nh(zh,Om,Im)},om.prop=function(zh,Om,Im){if(zh==";")return Vf(Im);if(zh=="{"&&xh)return $h(Im,Om,"propBlock");if(zh=="}"||zh=="{")return Lh(zh,Om,Im);if(zh=="(")return $h(Im,Om,"parens");if(zh=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(Om.current()))Ph+=" error";else if(zh=="word")Ih(Om);else if(zh=="interpolation")return $h(Im,Om,"interpolation");return"prop"},om.propBlock=function(zh,Om,Im){return zh=="}"?Vf(Im):zh=="word"?(Ph="property","maybeprop"):Im.context.type},om.parens=function(zh,Om,Im){return zh=="{"||zh=="}"?Lh(zh,Om,Im):zh==")"?Vf(Im):zh=="("?$h(Im,Om,"parens"):zh=="interpolation"?$h(Im,Om,"interpolation"):(zh=="word"&&Ih(Om),"parens")},om.pseudo=function(zh,Om,Im){return zh=="meta"?"pseudo":zh=="word"?(Ph="variable-3",Im.context.type):nh(zh,Om,Im)},om.documentTypes=function(zh,Om,Im){return zh=="word"&&Cf.hasOwnProperty(Om.current())?(Ph="tag",Im.context.type):om.atBlock(zh,Om,Im)},om.atBlock=function(zh,Om,Im){if(zh=="(")return $h(Im,Om,"atBlock_parens");if(zh=="}"||zh==";")return Lh(zh,Om,Im);if(zh=="{")return Vf(Im)&&$h(Im,Om,xh?"block":"top");if(zh=="interpolation")return $h(Im,Om,"interpolation");if(zh=="word"){var Zm=Om.current().toLowerCase();Zm=="only"||Zm=="not"||Zm=="and"||Zm=="or"?Ph="keyword":If.hasOwnProperty(Zm)?Ph="attribute":Ff.hasOwnProperty(Zm)?Ph="property":sh.hasOwnProperty(Zm)?Ph="keyword":Sh.hasOwnProperty(Zm)?Ph="property":yh.hasOwnProperty(Zm)?Ph=Rf?"string-2":"property":mh.hasOwnProperty(Zm)?Ph="atom":rh.hasOwnProperty(Zm)?Ph="keyword":Ph="error"}return Im.context.type},om.atComponentBlock=function(zh,Om,Im){return zh=="}"?Lh(zh,Om,Im):zh=="{"?Vf(Im)&&$h(Im,Om,xh?"block":"top",!1):(zh=="word"&&(Ph="error"),Im.context.type)},om.atBlock_parens=function(zh,Om,Im){return zh==")"?Vf(Im):zh=="{"||zh=="}"?Lh(zh,Om,Im,2):om.atBlock(zh,Om,Im)},om.restricted_atBlock_before=function(zh,Om,Im){return zh=="{"?$h(Im,Om,"restricted_atBlock"):zh=="word"&&Im.stateArg=="@counter-style"?(Ph="variable","restricted_atBlock_before"):nh(zh,Om,Im)},om.restricted_atBlock=function(zh,Om,Im){return zh=="}"?(Im.stateArg=null,Vf(Im)):zh=="word"?(Im.stateArg=="@font-face"&&!Mh.hasOwnProperty(Om.current().toLowerCase())||Im.stateArg=="@counter-style"&&!lh.hasOwnProperty(Om.current().toLowerCase())?Ph="error":Ph="property","maybeprop"):"restricted_atBlock"},om.keyframes=function(zh,Om,Im){return zh=="word"?(Ph="variable","keyframes"):zh=="{"?$h(Im,Om,"top"):nh(zh,Om,Im)},om.at=function(zh,Om,Im){return zh==";"?Vf(Im):zh=="{"||zh=="}"?Lh(zh,Om,Im):(zh=="word"?Ph="tag":zh=="hash"&&(Ph="builtin"),"at")},om.interpolation=function(zh,Om,Im){return zh=="}"?Vf(Im):zh=="{"||zh==";"?Lh(zh,Om,Im):(zh=="word"?Ph="variable":zh!="variable"&&zh!="("&&zh!=")"&&(Ph="error"),"interpolation")},{startState:function(zh){return{tokenize:null,state:Af?"block":"top",stateArg:null,context:new Sm(Af?"block":"top",zh||0,null)}},token:function(zh,Om){if(!Om.tokenize&&zh.eatSpace())return null;var Im=(Om.tokenize||th)(zh,Om);return Im&&typeof Im=="object"&&(_h=Im[1],Im=Im[0]),Ph=Im,_h!="comment"&&(Om.state=om[Om.state](_h,zh,Om)),Ph},indent:function(zh,Om){var Im=zh.context,Zm=Om&&Om.charAt(0),Lm=Im.indent;return Im.type=="prop"&&(Zm=="}"||Zm==")")&&(Im=Im.prev),Im.prev&&(Zm=="}"&&(Im.type=="block"||Im.type=="top"||Im.type=="interpolation"||Im.type=="restricted_atBlock")?(Im=Im.prev,Lm=Im.indent):(Zm==")"&&(Im.type=="parens"||Im.type=="atBlock_parens")||Zm=="{"&&(Im.type=="at"||Im.type=="atBlock"))&&(Lm=Math.max(0,Im.indent-Df))),Lm},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:Eh,fold:"brace"}});function dd(vf){for(var gf={},Af=0;Af!?|~^@]/,jd=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function Gd(Hh){for(var Mm=!1,pg,Rg=!1;(pg=Hh.next())!=null;){if(!Mm){if(pg=="/"&&!Rg)return;pg=="["?Rg=!0:Rg&&pg=="]"&&(Rg=!1)}Mm=!Mm&&pg=="\\"}}var Yd,zd;function qd(Hh,Mm,pg){return Yd=Hh,zd=pg,Mm}function Wd(Hh,Mm){var pg=Hh.next();if(pg=='"'||pg=="'")return Mm.tokenize=Xd(pg),Mm.tokenize(Hh,Mm);if(pg=="."&&Hh.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return qd("number","number");if(pg=="."&&Hh.match(".."))return qd("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(pg))return qd(pg);if(pg=="="&&Hh.eat(">"))return qd("=>","operator");if(pg=="0"&&Hh.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return qd("number","number");if(/\d/.test(pg))return Hh.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),qd("number","number");if(pg=="/")return Hh.eat("*")?(Mm.tokenize=Jd,Jd(Hh,Mm)):Hh.eat("/")?(Hh.skipToEnd(),qd("comment","comment")):s_(Hh,Mm,1)?(Gd(Hh),Hh.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),qd("regexp","string-2")):(Hh.eat("="),qd("operator","operator",Hh.current()));if(pg=="`")return Mm.tokenize=Zd,Zd(Hh,Mm);if(pg=="#"&&Hh.peek()=="!")return Hh.skipToEnd(),qd("meta","meta");if(pg=="#"&&Hh.eatWhile(Nd))return qd("variable","property");if(pg=="<"&&Hh.match("!--")||pg=="-"&&Hh.match("->")&&!/\S/.test(Hh.string.slice(0,Hh.start)))return Hh.skipToEnd(),qd("comment","comment");if(Ud.test(pg))return(pg!=">"||!Mm.lexical||Mm.lexical.type!=">")&&(Hh.eat("=")?(pg=="!"||pg=="=")&&Hh.eat("="):/[<>*+\-|&?]/.test(pg)&&(Hh.eat(pg),pg==">"&&Hh.eat(pg))),pg=="?"&&Hh.eat(".")?qd("."):qd("operator","operator",Hh.current());if(Nd.test(pg)){Hh.eatWhile(Nd);var Rg=Hh.current();if(Mm.lastType!="."){if(Ld.propertyIsEnumerable(Rg)){var og=Ld[Rg];return qd(og.type,og.style,Rg)}if(Rg=="async"&&Hh.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return qd("async","keyword",Rg)}return qd("variable","variable",Rg)}}function Xd(Hh){return function(Mm,pg){var Rg=!1,og;if(yd&&Mm.peek()=="@"&&Mm.match(jd))return pg.tokenize=Wd,qd("jsonld-keyword","meta");for(;(og=Mm.next())!=null&&!(og==Hh&&!Rg);)Rg=!Rg&&og=="\\";return Rg||(pg.tokenize=Wd),qd("string","string")}}function Jd(Hh,Mm){for(var pg=!1,Rg;Rg=Hh.next();){if(Rg=="/"&&pg){Mm.tokenize=Wd;break}pg=Rg=="*"}return qd("comment","comment")}function Zd(Hh,Mm){for(var pg=!1,Rg;(Rg=Hh.next())!=null;){if(!pg&&(Rg=="`"||Rg=="$"&&Hh.eat("{"))){Mm.tokenize=Wd;break}pg=!pg&&Rg=="\\"}return qd("quasi","string-2",Hh.current())}var mf="([{}])";function xf(Hh,Mm){Mm.fatArrowAt&&(Mm.fatArrowAt=null);var pg=Hh.string.indexOf("=>",Hh.start);if(!(pg<0)){if(wd){var Rg=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(Hh.string.slice(Hh.start,pg));Rg&&(pg=Rg.index)}for(var og=0,Fg=!1,y_=pg-1;y_>=0;--y_){var Y_=Hh.string.charAt(y_),s0=mf.indexOf(Y_);if(s0>=0&&s0<3){if(!og){++y_;break}if(--og==0){Y_=="("&&(Fg=!0);break}}else if(s0>=3&&s0<6)++og;else if(Nd.test(Y_))Fg=!0;else if(/["'\/`]/.test(Y_))for(;;--y_){if(y_==0)return;var L0=Hh.string.charAt(y_-1);if(L0==Y_&&Hh.string.charAt(y_-2)!="\\"){y_--;break}}else if(Fg&&!og){++y_;break}}Fg&&!og&&(Mm.fatArrowAt=y_)}}var _f={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function vf(Hh,Mm,pg,Rg,og,Fg){this.indented=Hh,this.column=Mm,this.type=pg,this.prev=og,this.info=Fg,Rg!=null&&(this.align=Rg)}function gf(Hh,Mm){if(!Cd)return!1;for(var pg=Hh.localVars;pg;pg=pg.next)if(pg.name==Mm)return!0;for(var Rg=Hh.context;Rg;Rg=Rg.prev)for(var pg=Rg.vars;pg;pg=pg.next)if(pg.name==Mm)return!0}function Af(Hh,Mm,pg,Rg,og){var Fg=Hh.cc;for(Df.state=Hh,Df.stream=og,Df.marked=null,Df.cc=Fg,Df.style=Mm,Hh.lexical.hasOwnProperty("align")||(Hh.lexical.align=!0);;){var y_=Fg.length?Fg.pop():vd?sm:_h;if(y_(pg,Rg)){for(;Fg.length&&Fg[Fg.length-1].lex;)Fg.pop()();return Df.marked?Df.marked:pg=="variable"&&gf(Hh,Rg)?"variable-2":Mm}}}var Df={state:null,marked:null,cc:null};function Of(){for(var Hh=arguments.length-1;Hh>=0;Hh--)Df.cc.push(arguments[Hh])}function Cf(){return Of.apply(null,arguments),!0}function If(Hh,Mm){for(var pg=Mm;pg;pg=pg.next)if(pg.name==Hh)return!0;return!1}function Ff(Hh){var Mm=Df.state;if(Df.marked="def",!!Cd){if(Mm.context){if(Mm.lexical.info=="var"&&Mm.context&&Mm.context.block){var pg=sh(Hh,Mm.context);if(pg!=null){Mm.context=pg;return}}else if(!If(Hh,Mm.localVars)){Mm.localVars=new Mh(Hh,Mm.localVars);return}}hd.globalVars&&!If(Hh,Mm.globalVars)&&(Mm.globalVars=new Mh(Hh,Mm.globalVars))}}function sh(Hh,Mm){if(Mm)if(Mm.block){var pg=sh(Hh,Mm.prev);return pg?pg==Mm.prev?Mm:new yh(pg,Mm.vars,!0):null}else return If(Hh,Mm.vars)?Mm:new yh(Mm.prev,new Mh(Hh,Mm.vars),!1);else return null}function Sh(Hh){return Hh=="public"||Hh=="private"||Hh=="protected"||Hh=="abstract"||Hh=="readonly"}function yh(Hh,Mm,pg){this.prev=Hh,this.vars=Mm,this.block=pg}function Mh(Hh,Mm){this.name=Hh,this.next=Mm}var lh=new Mh("this",new Mh("arguments",null));function rh(){Df.state.context=new yh(Df.state.context,Df.state.localVars,!1),Df.state.localVars=lh}function mh(){Df.state.context=new yh(Df.state.context,Df.state.localVars,!0),Df.state.localVars=null}rh.lex=mh.lex=!0;function xh(){Df.state.localVars=Df.state.context.vars,Df.state.context=Df.state.context.prev}xh.lex=!0;function Eh(Hh,Mm){var pg=function(){var Rg=Df.state,og=Rg.indented;if(Rg.lexical.type=="stat")og=Rg.lexical.indented;else for(var Fg=Rg.lexical;Fg&&Fg.type==")"&&Fg.align;Fg=Fg.prev)og=Fg.indented;Rg.lexical=new vf(og,Df.stream.column(),Hh,null,Rg.lexical,Mm)};return pg.lex=!0,pg}function kf(){var Hh=Df.state;Hh.lexical.prev&&(Hh.lexical.type==")"&&(Hh.indented=Hh.lexical.indented),Hh.lexical=Hh.lexical.prev)}kf.lex=!0;function Rf(Hh){function Mm(pg){return pg==Hh?Cf():Hh==";"||pg=="}"||pg==")"||pg=="]"?Of():Cf(Mm)}return Mm}function _h(Hh,Mm){return Hh=="var"?Cf(Eh("vardef",Mm),O_,Rf(";"),kf):Hh=="keyword a"?Cf(Eh("form"),oh,_h,kf):Hh=="keyword b"?Cf(Eh("form"),_h,kf):Hh=="keyword d"?Df.stream.match(/^\s*$/,!1)?Cf():Cf(Eh("stat"),Sm,Rf(";"),kf):Hh=="debugger"?Cf(Rf(";")):Hh=="{"?Cf(Eh("}"),mh,$f,kf,xh):Hh==";"?Cf():Hh=="if"?(Df.state.lexical.info=="else"&&Df.state.cc[Df.state.cc.length-1]==kf&&Df.state.cc.pop()(),Cf(Eh("form"),oh,_h,kf,Pg)):Hh=="function"?Cf(ih):Hh=="for"?Cf(Eh("form"),mh,$0,_h,xh,kf):Hh=="class"||wd&&Mm=="interface"?(Df.marked="keyword",Cf(Eh("form",Hh=="class"?Hh:Mm),Pm,kf)):Hh=="variable"?wd&&Mm=="declare"?(Df.marked="keyword",Cf(_h)):wd&&(Mm=="module"||Mm=="enum"||Mm=="type")&&Df.stream.match(/^\s*\w/,!1)?(Df.marked="keyword",Mm=="enum"?Cf(Mg):Mm=="type"?Cf(Qh,Rf("operator"),Ym,Rf(";")):Cf(Eh("form"),S_,Rf("{"),Eh("}"),$f,kf,kf)):wd&&Mm=="namespace"?(Df.marked="keyword",Cf(Eh("form"),sm,_h,kf)):wd&&Mm=="abstract"?(Df.marked="keyword",Cf(_h)):Cf(Eh("stat"),Zm):Hh=="switch"?Cf(Eh("form"),oh,Rf("{"),Eh("}","switch"),mh,$f,kf,kf,xh):Hh=="case"?Cf(sm,Rf(":")):Hh=="default"?Cf(Rf(":")):Hh=="catch"?Cf(Eh("form"),rh,Ph,_h,kf,xh):Hh=="export"?Cf(Eh("stat"),lg,kf):Hh=="import"?Cf(Eh("stat"),zg,kf):Hh=="async"?Cf(_h):Mm=="@"?Cf(sm,_h):Of(Eh("stat"),sm,Rf(";"),kf)}function Ph(Hh){if(Hh=="(")return Cf(hm,Rf(")"))}function sm(Hh,Mm){return Zh(Hh,Mm,!1)}function th(Hh,Mm){return Zh(Hh,Mm,!0)}function oh(Hh){return Hh!="("?Of():Cf(Eh(")"),Sm,Rf(")"),kf)}function Zh(Hh,Mm,pg){if(Df.state.fatArrowAt==Df.stream.start){var Rg=pg?om:Ih;if(Hh=="(")return Cf(rh,Eh(")"),jh(hm,")"),kf,Rf("=>"),Rg,xh);if(Hh=="variable")return Of(rh,S_,Rf("=>"),Rg,xh)}var og=pg?Vf:$h;return _f.hasOwnProperty(Hh)?Cf(og):Hh=="function"?Cf(ih,og):Hh=="class"||wd&&Mm=="interface"?(Df.marked="keyword",Cf(Eh("form"),Fm,kf)):Hh=="keyword c"||Hh=="async"?Cf(pg?th:sm):Hh=="("?Cf(Eh(")"),Sm,Rf(")"),kf,og):Hh=="operator"||Hh=="spread"?Cf(pg?th:sm):Hh=="["?Cf(Eh("]"),f_,kf,og):Hh=="{"?Pf(Wm,"}",null,og):Hh=="quasi"?Of(nh,og):Hh=="new"?Cf(zh(pg)):Cf()}function Sm(Hh){return Hh.match(/[;\}\)\],]/)?Of():Of(sm)}function $h(Hh,Mm){return Hh==","?Cf(Sm):Vf(Hh,Mm,!1)}function Vf(Hh,Mm,pg){var Rg=pg==!1?$h:Vf,og=pg==!1?sm:th;if(Hh=="=>")return Cf(rh,pg?om:Ih,xh);if(Hh=="operator")return/\+\+|--/.test(Mm)||wd&&Mm=="!"?Cf(Rg):wd&&Mm=="<"&&Df.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?Cf(Eh(">"),jh(Ym,">"),kf,Rg):Mm=="?"?Cf(sm,Rf(":"),og):Cf(og);if(Hh=="quasi")return Of(nh,Rg);if(Hh!=";"){if(Hh=="(")return Pf(th,")","call",Rg);if(Hh==".")return Cf(Lm,Rg);if(Hh=="[")return Cf(Eh("]"),Sm,Rf("]"),kf,Rg);if(wd&&Mm=="as")return Df.marked="keyword",Cf(Ym,Rg);if(Hh=="regexp")return Df.state.lastType=Df.marked="operator",Df.stream.backUp(Df.stream.pos-Df.stream.start-1),Cf(og)}}function nh(Hh,Mm){return Hh!="quasi"?Of():Mm.slice(Mm.length-2)!="${"?Cf(nh):Cf(Sm,Lh)}function Lh(Hh){if(Hh=="}")return Df.marked="string-2",Df.state.tokenize=Zd,Cf(nh)}function Ih(Hh){return xf(Df.stream,Df.state),Of(Hh=="{"?_h:sm)}function om(Hh){return xf(Df.stream,Df.state),Of(Hh=="{"?_h:th)}function zh(Hh){return function(Mm){return Mm=="."?Cf(Hh?Im:Om):Mm=="variable"&&wd?Cf(l_,Hh?Vf:$h):Of(Hh?th:sm)}}function Om(Hh,Mm){if(Mm=="target")return Df.marked="keyword",Cf($h)}function Im(Hh,Mm){if(Mm=="target")return Df.marked="keyword",Cf(Vf)}function Zm(Hh){return Hh==":"?Cf(kf,_h):Of($h,Rf(";"),kf)}function Lm(Hh){if(Hh=="variable")return Df.marked="property",Cf()}function Wm(Hh,Mm){if(Hh=="async")return Df.marked="property",Cf(Wm);if(Hh=="variable"||Df.style=="keyword"){if(Df.marked="property",Mm=="get"||Mm=="set")return Cf(ig);var pg;return wd&&Df.state.fatArrowAt==Df.stream.start&&(pg=Df.stream.match(/^\s*:\s*/,!1))&&(Df.state.fatArrowAt=Df.stream.pos+pg[0].length),Cf(yg)}else{if(Hh=="number"||Hh=="string")return Df.marked=yd?"property":Df.style+" property",Cf(yg);if(Hh=="jsonld-keyword")return Cf(yg);if(wd&&Sh(Mm))return Df.marked="keyword",Cf(Wm);if(Hh=="[")return Cf(sm,Nh,Rf("]"),yg);if(Hh=="spread")return Cf(th,yg);if(Mm=="*")return Df.marked="keyword",Cf(Wm);if(Hh==":")return Of(yg)}}function ig(Hh){return Hh!="variable"?Of(yg):(Df.marked="property",Cf(ih))}function yg(Hh){if(Hh==":")return Cf(th);if(Hh=="(")return Of(ih)}function jh(Hh,Mm,pg){function Rg(og,Fg){if(pg?pg.indexOf(og)>-1:og==","){var y_=Df.state.lexical;return y_.info=="call"&&(y_.pos=(y_.pos||0)+1),Cf(function(Y_,s0){return Y_==Mm||s0==Mm?Of():Of(Hh)},Rg)}return og==Mm||Fg==Mm?Cf():pg&&pg.indexOf(";")>-1?Of(Hh):Cf(Rf(Mm))}return function(og,Fg){return og==Mm||Fg==Mm?Cf():Of(Hh,Rg)}}function Pf(Hh,Mm,pg){for(var Rg=3;Rg"),Ym);if(Hh=="quasi")return Of(vg,p_)}function Ag(Hh){if(Hh=="=>")return Cf(Ym)}function sg(Hh){return Hh.match(/[\}\)\]]/)?Cf():Hh==","||Hh==";"?Cf(sg):Of(mg,sg)}function mg(Hh,Mm){if(Hh=="variable"||Df.style=="keyword")return Df.marked="property",Cf(mg);if(Mm=="?"||Hh=="number"||Hh=="string")return Cf(mg);if(Hh==":")return Cf(Ym);if(Hh=="[")return Cf(Rf("variable"),Wh,Rf("]"),mg);if(Hh=="(")return Of(mm,mg);if(!Hh.match(/[;\}\)\],]/))return Cf()}function vg(Hh,Mm){return Hh!="quasi"?Of():Mm.slice(Mm.length-2)!="${"?Cf(vg):Cf(Ym,kg)}function kg(Hh){if(Hh=="}")return Df.marked="string-2",Df.state.tokenize=Zd,Cf(vg)}function Kg(Hh,Mm){return Hh=="variable"&&Df.stream.match(/^\s*[?:]/,!1)||Mm=="?"?Cf(Kg):Hh==":"?Cf(Ym):Hh=="spread"?Cf(Kg):Of(Ym)}function p_(Hh,Mm){if(Mm=="<")return Cf(Eh(">"),jh(Ym,">"),kf,p_);if(Mm=="|"||Hh=="."||Mm=="&")return Cf(Ym);if(Hh=="[")return Cf(Ym,Rf("]"),p_);if(Mm=="extends"||Mm=="implements")return Df.marked="keyword",Cf(Ym);if(Mm=="?")return Cf(Ym,Rf(":"),Ym)}function l_(Hh,Mm){if(Mm=="<")return Cf(Eh(">"),jh(Ym,">"),kf,p_)}function v_(){return Of(Ym,r_)}function r_(Hh,Mm){if(Mm=="=")return Cf(Ym)}function O_(Hh,Mm){return Mm=="enum"?(Df.marked="keyword",Cf(Mg)):Of(S_,Nh,R_,P_)}function S_(Hh,Mm){if(wd&&Sh(Mm))return Df.marked="keyword",Cf(S_);if(Hh=="variable")return Ff(Mm),Cf();if(Hh=="spread")return Cf(S_);if(Hh=="[")return Pf(t0,"]");if(Hh=="{")return Pf(Q_,"}")}function Q_(Hh,Mm){return Hh=="variable"&&!Df.stream.match(/^\s*:/,!1)?(Ff(Mm),Cf(R_)):(Hh=="variable"&&(Df.marked="property"),Hh=="spread"?Cf(S_):Hh=="}"?Of():Hh=="["?Cf(sm,Rf("]"),Rf(":"),Q_):Cf(Rf(":"),S_,R_))}function t0(){return Of(S_,R_)}function R_(Hh,Mm){if(Mm=="=")return Cf(th)}function P_(Hh){if(Hh==",")return Cf(O_)}function Pg(Hh,Mm){if(Hh=="keyword b"&&Mm=="else")return Cf(Eh("form","else"),_h,kf)}function $0(Hh,Mm){if(Mm=="await")return Cf($0);if(Hh=="(")return Cf(Eh(")"),z0,kf)}function z0(Hh){return Hh=="var"?Cf(O_,c0):Hh=="variable"?Cf(c0):Of(c0)}function c0(Hh,Mm){return Hh==")"?Cf():Hh==";"?Cf(c0):Mm=="in"||Mm=="of"?(Df.marked="keyword",Cf(sm,c0)):Of(sm,c0)}function ih(Hh,Mm){if(Mm=="*")return Df.marked="keyword",Cf(ih);if(Hh=="variable")return Ff(Mm),Cf(ih);if(Hh=="(")return Cf(rh,Eh(")"),jh(hm,")"),kf,_m,_h,xh);if(wd&&Mm=="<")return Cf(Eh(">"),jh(v_,">"),kf,ih)}function mm(Hh,Mm){if(Mm=="*")return Df.marked="keyword",Cf(mm);if(Hh=="variable")return Ff(Mm),Cf(mm);if(Hh=="(")return Cf(rh,Eh(")"),jh(hm,")"),kf,_m,xh);if(wd&&Mm=="<")return Cf(Eh(">"),jh(v_,">"),kf,mm)}function Qh(Hh,Mm){if(Hh=="keyword"||Hh=="variable")return Df.marked="type",Cf(Qh);if(Mm=="<")return Cf(Eh(">"),jh(v_,">"),kf)}function hm(Hh,Mm){return Mm=="@"&&Cf(sm,hm),Hh=="spread"?Cf(hm):wd&&Sh(Mm)?(Df.marked="keyword",Cf(hm)):wd&&Hh=="this"?Cf(Nh,R_):Of(S_,Nh,R_)}function Fm(Hh,Mm){return Hh=="variable"?Pm(Hh,Mm):Vm(Hh,Mm)}function Pm(Hh,Mm){if(Hh=="variable")return Ff(Mm),Cf(Vm)}function Vm(Hh,Mm){if(Mm=="<")return Cf(Eh(">"),jh(v_,">"),kf,Vm);if(Mm=="extends"||Mm=="implements"||wd&&Hh==",")return Mm=="implements"&&(Df.marked="keyword"),Cf(wd?Ym:sm,Vm);if(Hh=="{")return Cf(Eh("}"),Gm,kf)}function Gm(Hh,Mm){if(Hh=="async"||Hh=="variable"&&(Mm=="static"||Mm=="get"||Mm=="set"||wd&&Sh(Mm))&&Df.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return Df.marked="keyword",Cf(Gm);if(Hh=="variable"||Df.style=="keyword")return Df.marked="property",Cf(Tm,Gm);if(Hh=="number"||Hh=="string")return Cf(Tm,Gm);if(Hh=="[")return Cf(sm,Nh,Rf("]"),Tm,Gm);if(Mm=="*")return Df.marked="keyword",Cf(Gm);if(wd&&Hh=="(")return Of(mm,Gm);if(Hh==";"||Hh==",")return Cf(Gm);if(Hh=="}")return Cf();if(Mm=="@")return Cf(sm,Gm)}function Tm(Hh,Mm){if(Mm=="!"||Mm=="?")return Cf(Tm);if(Hh==":")return Cf(Ym,R_);if(Mm=="=")return Cf(th);var pg=Df.state.lexical.prev,Rg=pg&&pg.info=="interface";return Of(Rg?mm:ih)}function lg(Hh,Mm){return Mm=="*"?(Df.marked="keyword",Cf(A_,Rf(";"))):Mm=="default"?(Df.marked="keyword",Cf(sm,Rf(";"))):Hh=="{"?Cf(jh(fg,"}"),A_,Rf(";")):Of(_h)}function fg(Hh,Mm){if(Mm=="as")return Df.marked="keyword",Cf(Rf("variable"));if(Hh=="variable")return Of(th,fg)}function zg(Hh){return Hh=="string"?Cf():Hh=="("?Of(sm):Hh=="."?Of($h):Of(Tg,Xg,A_)}function Tg(Hh,Mm){return Hh=="{"?Pf(Tg,"}"):(Hh=="variable"&&Ff(Mm),Mm=="*"&&(Df.marked="keyword"),Cf(D_))}function Xg(Hh){if(Hh==",")return Cf(Tg,Xg)}function D_(Hh,Mm){if(Mm=="as")return Df.marked="keyword",Cf(Tg)}function A_(Hh,Mm){if(Mm=="from")return Df.marked="keyword",Cf(sm)}function f_(Hh){return Hh=="]"?Cf():Of(jh(th,"]"))}function Mg(){return Of(Eh("form"),S_,Rf("{"),Eh("}"),jh(V_,"}"),kf,kf)}function V_(){return Of(S_,R_)}function g_(Hh,Mm){return Hh.lastType=="operator"||Hh.lastType==","||Ud.test(Mm.charAt(0))||/[,.]/.test(Mm.charAt(0))}function s_(Hh,Mm,pg){return Mm.tokenize==Wd&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(Mm.lastType)||Mm.lastType=="quasi"&&/\{\s*$/.test(Hh.string.slice(0,Hh.pos-(pg||0)))}return{startState:function(Hh){var Mm={tokenize:Wd,lastType:"sof",cc:[],lexical:new vf((Hh||0)-md,0,"block",!1),localVars:hd.localVars,context:hd.localVars&&new yh(null,null,!1),indented:Hh||0};return hd.globalVars&&typeof hd.globalVars=="object"&&(Mm.globalVars=hd.globalVars),Mm},token:function(Hh,Mm){if(Hh.sol()&&(Mm.lexical.hasOwnProperty("align")||(Mm.lexical.align=!1),Mm.indented=Hh.indentation(),xf(Hh,Mm)),Mm.tokenize!=Jd&&Hh.eatSpace())return null;var pg=Mm.tokenize(Hh,Mm);return Yd=="comment"?pg:(Mm.lastType=Yd=="operator"&&(zd=="++"||zd=="--")?"incdec":Yd,Af(Mm,pg,Yd,zd,Hh))},indent:function(Hh,Mm){if(Hh.tokenize==Jd||Hh.tokenize==Zd)return ud.Pass;if(Hh.tokenize!=Wd)return 0;var pg=Mm&&Mm.charAt(0),Rg=Hh.lexical,og;if(!/^\s*else\b/.test(Mm))for(var Fg=Hh.cc.length-1;Fg>=0;--Fg){var y_=Hh.cc[Fg];if(y_==kf)Rg=Rg.prev;else if(y_!=Pg&&y_!=xh)break}for(;(Rg.type=="stat"||Rg.type=="form")&&(pg=="}"||(og=Hh.cc[Hh.cc.length-1])&&(og==$h||og==Vf)&&!/^[,\.=+\-*:?[\(]/.test(Mm));)Rg=Rg.prev;gd&&Rg.type==")"&&Rg.prev.type=="stat"&&(Rg=Rg.prev);var Y_=Rg.type,s0=pg==Y_;return Y_=="vardef"?Rg.indented+(Hh.lastType=="operator"||Hh.lastType==","?Rg.info.length+1:0):Y_=="form"&&pg=="{"?Rg.indented:Y_=="form"?Rg.indented+md:Y_=="stat"?Rg.indented+(g_(Hh,Mm)?gd||md:0):Rg.info=="switch"&&!s0&&hd.doubleIndentSwitch!=!1?Rg.indented+(/^(?:case|default)\b/.test(Mm)?md:2*md):Rg.align?Rg.column+(s0?0:1):Rg.indented+(s0?0:md)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:vd?null:"/*",blockCommentEnd:vd?null:"*/",blockCommentContinue:vd?null:" * ",lineComment:vd?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:vd?"json":"javascript",jsonldMode:yd,jsonMode:vd,expressionAllowed:s_,skipExpression:function(Hh){Af(Hh,"atom","atom","true",new ud.StringStream("",2,null))}}}),ud.registerHelper("wordChars","javascript",/[\w$]/),ud.defineMIME("text/javascript","javascript"),ud.defineMIME("text/ecmascript","javascript"),ud.defineMIME("application/javascript","javascript"),ud.defineMIME("application/x-javascript","javascript"),ud.defineMIME("application/ecmascript","javascript"),ud.defineMIME("application/json",{name:"javascript",json:!0}),ud.defineMIME("application/x-json",{name:"javascript",json:!0}),ud.defineMIME("application/manifest+json",{name:"javascript",json:!0}),ud.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),ud.defineMIME("text/typescript",{name:"javascript",typescript:!0}),ud.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var xml={exports:{}},hasRequiredXml;function requireXml(){return hasRequiredXml||(hasRequiredXml=1,function(Ra,ed){(function(ud){ud(requireCodemirror())})(function(ud){var dd={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},hd={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ud.defineMode("xml",function(md,gd){var yd=md.indentUnit,vd={},Cd=gd.htmlMode?dd:hd;for(var wd in Cd)vd[wd]=Cd[wd];for(var wd in gd)vd[wd]=gd[wd];var Nd,Ld;function Ud(Cf,If){function Ff(yh){return If.tokenize=yh,yh(Cf,If)}var sh=Cf.next();if(sh=="<")return Cf.eat("!")?Cf.eat("[")?Cf.match("CDATA[")?Ff(Yd("atom","]]>")):null:Cf.match("--")?Ff(Yd("comment","-->")):Cf.match("DOCTYPE",!0,!0)?(Cf.eatWhile(/[\w\._\-]/),Ff(zd(1))):null:Cf.eat("?")?(Cf.eatWhile(/[\w\._\-]/),If.tokenize=Yd("meta","?>"),"meta"):(Nd=Cf.eat("/")?"closeTag":"openTag",If.tokenize=jd,"tag bracket");if(sh=="&"){var Sh;return Cf.eat("#")?Cf.eat("x")?Sh=Cf.eatWhile(/[a-fA-F\d]/)&&Cf.eat(";"):Sh=Cf.eatWhile(/[\d]/)&&Cf.eat(";"):Sh=Cf.eatWhile(/[\w\.\-:]/)&&Cf.eat(";"),Sh?"atom":"error"}else return Cf.eatWhile(/[^&<]/),null}Ud.isInText=!0;function jd(Cf,If){var Ff=Cf.next();if(Ff==">"||Ff=="/"&&Cf.eat(">"))return If.tokenize=Ud,Nd=Ff==">"?"endTag":"selfcloseTag","tag bracket";if(Ff=="=")return Nd="equals",null;if(Ff=="<"){If.tokenize=Ud,If.state=Zd,If.tagName=If.tagStart=null;var sh=If.tokenize(Cf,If);return sh?sh+" tag error":"tag error"}else return/[\'\"]/.test(Ff)?(If.tokenize=Gd(Ff),If.stringStartCol=Cf.column(),If.tokenize(Cf,If)):(Cf.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Gd(Cf){var If=function(Ff,sh){for(;!Ff.eol();)if(Ff.next()==Cf){sh.tokenize=jd;break}return"string"};return If.isInAttribute=!0,If}function Yd(Cf,If){return function(Ff,sh){for(;!Ff.eol();){if(Ff.match(If)){sh.tokenize=Ud;break}Ff.next()}return Cf}}function zd(Cf){return function(If,Ff){for(var sh;(sh=If.next())!=null;){if(sh=="<")return Ff.tokenize=zd(Cf+1),Ff.tokenize(If,Ff);if(sh==">")if(Cf==1){Ff.tokenize=Ud;break}else return Ff.tokenize=zd(Cf-1),Ff.tokenize(If,Ff)}return"meta"}}function qd(Cf){return Cf&&Cf.toLowerCase()}function Wd(Cf,If,Ff){this.prev=Cf.context,this.tagName=If||"",this.indent=Cf.indented,this.startOfLine=Ff,(vd.doNotIndent.hasOwnProperty(If)||Cf.context&&Cf.context.noIndent)&&(this.noIndent=!0)}function Xd(Cf){Cf.context&&(Cf.context=Cf.context.prev)}function Jd(Cf,If){for(var Ff;;){if(!Cf.context||(Ff=Cf.context.tagName,!vd.contextGrabbers.hasOwnProperty(qd(Ff))||!vd.contextGrabbers[qd(Ff)].hasOwnProperty(qd(If))))return;Xd(Cf)}}function Zd(Cf,If,Ff){return Cf=="openTag"?(Ff.tagStart=If.column(),mf):Cf=="closeTag"?xf:Zd}function mf(Cf,If,Ff){return Cf=="word"?(Ff.tagName=If.current(),Ld="tag",gf):vd.allowMissingTagName&&Cf=="endTag"?(Ld="tag bracket",gf(Cf,If,Ff)):(Ld="error",mf)}function xf(Cf,If,Ff){if(Cf=="word"){var sh=If.current();return Ff.context&&Ff.context.tagName!=sh&&vd.implicitlyClosed.hasOwnProperty(qd(Ff.context.tagName))&&Xd(Ff),Ff.context&&Ff.context.tagName==sh||vd.matchClosing===!1?(Ld="tag",_f):(Ld="tag error",vf)}else return vd.allowMissingTagName&&Cf=="endTag"?(Ld="tag bracket",_f(Cf,If,Ff)):(Ld="error",vf)}function _f(Cf,If,Ff){return Cf!="endTag"?(Ld="error",_f):(Xd(Ff),Zd)}function vf(Cf,If,Ff){return Ld="error",_f(Cf,If,Ff)}function gf(Cf,If,Ff){if(Cf=="word")return Ld="attribute",Af;if(Cf=="endTag"||Cf=="selfcloseTag"){var sh=Ff.tagName,Sh=Ff.tagStart;return Ff.tagName=Ff.tagStart=null,Cf=="selfcloseTag"||vd.autoSelfClosers.hasOwnProperty(qd(sh))?Jd(Ff,sh):(Jd(Ff,sh),Ff.context=new Wd(Ff,sh,Sh==Ff.indented)),Zd}return Ld="error",gf}function Af(Cf,If,Ff){return Cf=="equals"?Df:(vd.allowMissing||(Ld="error"),gf(Cf,If,Ff))}function Df(Cf,If,Ff){return Cf=="string"?Of:Cf=="word"&&vd.allowUnquoted?(Ld="string",gf):(Ld="error",gf(Cf,If,Ff))}function Of(Cf,If,Ff){return Cf=="string"?Of:gf(Cf,If,Ff)}return{startState:function(Cf){var If={tokenize:Ud,state:Zd,indented:Cf||0,tagName:null,tagStart:null,context:null};return Cf!=null&&(If.baseIndent=Cf),If},token:function(Cf,If){if(!If.tagName&&Cf.sol()&&(If.indented=Cf.indentation()),Cf.eatSpace())return null;Nd=null;var Ff=If.tokenize(Cf,If);return(Ff||Nd)&&Ff!="comment"&&(Ld=null,If.state=If.state(Nd||Ff,Cf,If),Ld&&(Ff=Ld=="error"?Ff+" error":Ld)),Ff},indent:function(Cf,If,Ff){var sh=Cf.context;if(Cf.tokenize.isInAttribute)return Cf.tagStart==Cf.indented?Cf.stringStartCol+1:Cf.indented+yd;if(sh&&sh.noIndent)return ud.Pass;if(Cf.tokenize!=jd&&Cf.tokenize!=Ud)return Ff?Ff.match(/^(\s*)/)[0].length:0;if(Cf.tagName)return vd.multilineTagIndentPastTag!==!1?Cf.tagStart+Cf.tagName.length+2:Cf.tagStart+yd*(vd.multilineTagIndentFactor||1);if(vd.alignCDATA&&/$/,blockCommentStart:"",configuration:vd.htmlMode?"html":"xml",helperType:vd.htmlMode?"html":"xml",skipAttribute:function(Cf){Cf.state==Df&&(Cf.state=gf)},xmlCurrentTag:function(Cf){return Cf.tagName?{name:Cf.tagName,close:Cf.type=="closeTag"}:null},xmlCurrentContext:function(Cf){for(var If=[],Ff=Cf.context;Ff;Ff=Ff.prev)If.push(Ff.tagName);return If.reverse()}}}),ud.defineMIME("text/xml","xml"),ud.defineMIME("application/xml","xml"),ud.mimeModes.hasOwnProperty("text/html")||ud.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),xml.exports}var meta={exports:{}},hasRequiredMeta;function requireMeta(){return hasRequiredMeta||(hasRequiredMeta=1,function(Ra,ed){(function(ud){ud(requireCodemirror())})(function(ud){ud.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var dd=0;dd-1&&md.substring(vd+1,md.length);if(Cd)return ud.findModeByExtension(Cd)},ud.findModeByName=function(md){md=md.toLowerCase();for(var gd=0;gd` "'(~:]+/,Yd=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,zd=/^\s*\[[^\]]+?\]:.*$/,qd=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,Wd=" ";function Xd(lh,rh,mh){return rh.f=rh.inline=mh,mh(lh,rh)}function Jd(lh,rh,mh){return rh.f=rh.block=mh,mh(lh,rh)}function Zd(lh){return!lh||!/\S/.test(lh.string)}function mf(lh){if(lh.linkTitle=!1,lh.linkHref=!1,lh.linkText=!1,lh.em=!1,lh.strong=!1,lh.strikethrough=!1,lh.quote=0,lh.indentedCode=!1,lh.f==_f){var rh=gd;if(!rh){var mh=ud.innerMode(md,lh.htmlState);rh=mh.mode.name=="xml"&&mh.state.tagStart===null&&!mh.state.context&&mh.state.tokenize.isInText}rh&&(lh.f=Df,lh.block=xf,lh.htmlState=null)}return lh.trailingSpace=0,lh.trailingSpaceNewLine=!1,lh.prevLine=lh.thisLine,lh.thisLine={stream:null},null}function xf(lh,rh){var mh=lh.column()===rh.indentation,xh=Zd(rh.prevLine.stream),Eh=rh.indentedCode,kf=rh.prevLine.hr,Rf=rh.list!==!1,_h=(rh.listStack[rh.listStack.length-1]||0)+3;rh.indentedCode=!1;var Ph=rh.indentation;if(rh.indentationDiff===null&&(rh.indentationDiff=rh.indentation,Rf)){for(rh.list=null;Ph=4&&(Eh||rh.prevLine.fencedCodeEnd||rh.prevLine.header||xh))return lh.skipToEnd(),rh.indentedCode=!0,vd.code;if(lh.eatSpace())return null;if(mh&&rh.indentation<=_h&&(oh=lh.match(Ud))&&oh[1].length<=6)return rh.quote=0,rh.header=oh[1].length,rh.thisLine.header=!0,hd.highlightFormatting&&(rh.formatting="header"),rh.f=rh.inline,gf(rh);if(rh.indentation<=_h&&lh.eat(">"))return rh.quote=mh?1:rh.quote+1,hd.highlightFormatting&&(rh.formatting="quote"),lh.eatSpace(),gf(rh);if(!th&&!rh.setext&&mh&&rh.indentation<=_h&&(oh=lh.match(Nd))){var Zh=oh[1]?"ol":"ul";return rh.indentation=Ph+lh.current().length,rh.list=!0,rh.quote=0,rh.listStack.push(rh.indentation),rh.em=!1,rh.strong=!1,rh.code=!1,rh.strikethrough=!1,hd.taskLists&&lh.match(Ld,!1)&&(rh.taskList=!0),rh.f=rh.inline,hd.highlightFormatting&&(rh.formatting=["list","list-"+Zh]),gf(rh)}else{if(mh&&rh.indentation<=_h&&(oh=lh.match(Yd,!0)))return rh.quote=0,rh.fencedEndRE=new RegExp(oh[1]+"+ *$"),rh.localMode=hd.fencedCodeBlockHighlighting&&yd(oh[2]||hd.fencedCodeBlockDefaultMode),rh.localMode&&(rh.localState=ud.startState(rh.localMode)),rh.f=rh.block=vf,hd.highlightFormatting&&(rh.formatting="code-block"),rh.code=-1,gf(rh);if(rh.setext||(!sm||!Rf)&&!rh.quote&&rh.list===!1&&!rh.code&&!th&&!zd.test(lh.string)&&(oh=lh.lookAhead(1))&&(oh=oh.match(jd)))return rh.setext?(rh.header=rh.setext,rh.setext=0,lh.skipToEnd(),hd.highlightFormatting&&(rh.formatting="header")):(rh.header=oh[0].charAt(0)=="="?1:2,rh.setext=rh.header),rh.thisLine.header=!0,rh.f=rh.inline,gf(rh);if(th)return lh.skipToEnd(),rh.hr=!0,rh.thisLine.hr=!0,vd.hr;if(lh.peek()==="[")return Xd(lh,rh,sh)}return Xd(lh,rh,rh.inline)}function _f(lh,rh){var mh=md.token(lh,rh.htmlState);if(!gd){var xh=ud.innerMode(md,rh.htmlState);(xh.mode.name=="xml"&&xh.state.tagStart===null&&!xh.state.context&&xh.state.tokenize.isInText||rh.md_inside&&lh.current().indexOf(">")>-1)&&(rh.f=Df,rh.block=xf,rh.htmlState=null)}return mh}function vf(lh,rh){var mh=rh.listStack[rh.listStack.length-1]||0,xh=rh.indentation=lh.quote?rh.push(vd.formatting+"-"+lh.formatting[mh]+"-"+lh.quote):rh.push("error"))}if(lh.taskOpen)return rh.push("meta"),rh.length?rh.join(" "):null;if(lh.taskClosed)return rh.push("property"),rh.length?rh.join(" "):null;if(lh.linkHref?rh.push(vd.linkHref,"url"):(lh.strong&&rh.push(vd.strong),lh.em&&rh.push(vd.em),lh.strikethrough&&rh.push(vd.strikethrough),lh.emoji&&rh.push(vd.emoji),lh.linkText&&rh.push(vd.linkText),lh.code&&rh.push(vd.code),lh.image&&rh.push(vd.image),lh.imageAltText&&rh.push(vd.imageAltText,"link"),lh.imageMarker&&rh.push(vd.imageMarker)),lh.header&&rh.push(vd.header,vd.header+"-"+lh.header),lh.quote&&(rh.push(vd.quote),!hd.maxBlockquoteDepth||hd.maxBlockquoteDepth>=lh.quote?rh.push(vd.quote+"-"+lh.quote):rh.push(vd.quote+"-"+hd.maxBlockquoteDepth)),lh.list!==!1){var xh=(lh.listStack.length-1)%3;xh?xh===1?rh.push(vd.list2):rh.push(vd.list3):rh.push(vd.list1)}return lh.trailingSpaceNewLine?rh.push("trailing-space-new-line"):lh.trailingSpace&&rh.push("trailing-space-"+(lh.trailingSpace%2?"a":"b")),rh.length?rh.join(" "):null}function Af(lh,rh){if(lh.match(Gd,!0))return gf(rh)}function Df(lh,rh){var mh=rh.text(lh,rh);if(typeof mh<"u")return mh;if(rh.list)return rh.list=null,gf(rh);if(rh.taskList){var xh=lh.match(Ld,!0)[1]===" ";return xh?rh.taskOpen=!0:rh.taskClosed=!0,hd.highlightFormatting&&(rh.formatting="task"),rh.taskList=!1,gf(rh)}if(rh.taskOpen=!1,rh.taskClosed=!1,rh.header&&lh.match(/^#+$/,!0))return hd.highlightFormatting&&(rh.formatting="header"),gf(rh);var Eh=lh.next();if(rh.linkTitle){rh.linkTitle=!1;var kf=Eh;Eh==="("&&(kf=")"),kf=(kf+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Rf="^\\s*(?:[^"+kf+"\\\\]+|\\\\\\\\|\\\\.)"+kf;if(lh.match(new RegExp(Rf),!0))return vd.linkHref}if(Eh==="`"){var _h=rh.formatting;hd.highlightFormatting&&(rh.formatting="code"),lh.eatWhile("`");var Ph=lh.current().length;if(rh.code==0&&(!rh.quote||Ph==1))return rh.code=Ph,gf(rh);if(Ph==rh.code){var sm=gf(rh);return rh.code=0,sm}else return rh.formatting=_h,gf(rh)}else if(rh.code)return gf(rh);if(Eh==="\\"&&(lh.next(),hd.highlightFormatting)){var th=gf(rh),oh=vd.formatting+"-escape";return th?th+" "+oh:oh}if(Eh==="!"&&lh.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return rh.imageMarker=!0,rh.image=!0,hd.highlightFormatting&&(rh.formatting="image"),gf(rh);if(Eh==="["&&rh.imageMarker&&lh.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return rh.imageMarker=!1,rh.imageAltText=!0,hd.highlightFormatting&&(rh.formatting="image"),gf(rh);if(Eh==="]"&&rh.imageAltText){hd.highlightFormatting&&(rh.formatting="image");var th=gf(rh);return rh.imageAltText=!1,rh.image=!1,rh.inline=rh.f=Cf,th}if(Eh==="["&&!rh.image)return rh.linkText&&lh.match(/^.*?\]/)||(rh.linkText=!0,hd.highlightFormatting&&(rh.formatting="link")),gf(rh);if(Eh==="]"&&rh.linkText){hd.highlightFormatting&&(rh.formatting="link");var th=gf(rh);return rh.linkText=!1,rh.inline=rh.f=lh.match(/\(.*?\)| ?\[.*?\]/,!1)?Cf:Df,th}if(Eh==="<"&&lh.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){rh.f=rh.inline=Of,hd.highlightFormatting&&(rh.formatting="link");var th=gf(rh);return th?th+=" ":th="",th+vd.linkInline}if(Eh==="<"&&lh.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){rh.f=rh.inline=Of,hd.highlightFormatting&&(rh.formatting="link");var th=gf(rh);return th?th+=" ":th="",th+vd.linkEmail}if(hd.xml&&Eh==="<"&&lh.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Zh=lh.string.indexOf(">",lh.pos);if(Zh!=-1){var Sm=lh.string.substring(lh.start,Zh);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Sm)&&(rh.md_inside=!0)}return lh.backUp(1),rh.htmlState=ud.startState(md),Jd(lh,rh,_f)}if(hd.xml&&Eh==="<"&&lh.match(/^\/\w*?>/))return rh.md_inside=!1,"tag";if(Eh==="*"||Eh==="_"){for(var $h=1,Vf=lh.pos==1?" ":lh.string.charAt(lh.pos-2);$h<3&&lh.eat(Eh);)$h++;var nh=lh.peek()||" ",Lh=!/\s/.test(nh)&&(!qd.test(nh)||/\s/.test(Vf)||qd.test(Vf)),Ih=!/\s/.test(Vf)&&(!qd.test(Vf)||/\s/.test(nh)||qd.test(nh)),om=null,zh=null;if($h%2&&(!rh.em&&Lh&&(Eh==="*"||!Ih||qd.test(Vf))?om=!0:rh.em==Eh&&Ih&&(Eh==="*"||!Lh||qd.test(nh))&&(om=!1)),$h>1&&(!rh.strong&&Lh&&(Eh==="*"||!Ih||qd.test(Vf))?zh=!0:rh.strong==Eh&&Ih&&(Eh==="*"||!Lh||qd.test(nh))&&(zh=!1)),zh!=null||om!=null){hd.highlightFormatting&&(rh.formatting=om==null?"strong":zh==null?"em":"strong em"),om===!0&&(rh.em=Eh),zh===!0&&(rh.strong=Eh);var sm=gf(rh);return om===!1&&(rh.em=!1),zh===!1&&(rh.strong=!1),sm}}else if(Eh===" "&&(lh.eat("*")||lh.eat("_"))){if(lh.peek()===" ")return gf(rh);lh.backUp(1)}if(hd.strikethrough){if(Eh==="~"&&lh.eatWhile(Eh)){if(rh.strikethrough){hd.highlightFormatting&&(rh.formatting="strikethrough");var sm=gf(rh);return rh.strikethrough=!1,sm}else if(lh.match(/^[^\s]/,!1))return rh.strikethrough=!0,hd.highlightFormatting&&(rh.formatting="strikethrough"),gf(rh)}else if(Eh===" "&&lh.match("~~",!0)){if(lh.peek()===" ")return gf(rh);lh.backUp(2)}}if(hd.emoji&&Eh===":"&&lh.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){rh.emoji=!0,hd.highlightFormatting&&(rh.formatting="emoji");var Om=gf(rh);return rh.emoji=!1,Om}return Eh===" "&&(lh.match(/^ +$/,!1)?rh.trailingSpace++:rh.trailingSpace&&(rh.trailingSpaceNewLine=!0)),gf(rh)}function Of(lh,rh){var mh=lh.next();if(mh===">"){rh.f=rh.inline=Df,hd.highlightFormatting&&(rh.formatting="link");var xh=gf(rh);return xh?xh+=" ":xh="",xh+vd.linkInline}return lh.match(/^[^>]+/,!0),vd.linkInline}function Cf(lh,rh){if(lh.eatSpace())return null;var mh=lh.next();return mh==="("||mh==="["?(rh.f=rh.inline=Ff(mh==="("?")":"]"),hd.highlightFormatting&&(rh.formatting="link-string"),rh.linkHref=!0,gf(rh)):"error"}var If={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Ff(lh){return function(rh,mh){var xh=rh.next();if(xh===lh){mh.f=mh.inline=Df,hd.highlightFormatting&&(mh.formatting="link-string");var Eh=gf(mh);return mh.linkHref=!1,Eh}return rh.match(If[lh]),mh.linkHref=!0,gf(mh)}}function sh(lh,rh){return lh.match(/^([^\]\\]|\\.)*\]:/,!1)?(rh.f=Sh,lh.next(),hd.highlightFormatting&&(rh.formatting="link"),rh.linkText=!0,gf(rh)):Xd(lh,rh,Df)}function Sh(lh,rh){if(lh.match("]:",!0)){rh.f=rh.inline=yh,hd.highlightFormatting&&(rh.formatting="link");var mh=gf(rh);return rh.linkText=!1,mh}return lh.match(/^([^\]\\]|\\.)+/,!0),vd.linkText}function yh(lh,rh){return lh.eatSpace()?null:(lh.match(/^[^\s]+/,!0),lh.peek()===void 0?rh.linkTitle=!0:lh.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),rh.f=rh.inline=Df,vd.linkHref+" url")}var Mh={startState:function(){return{f:xf,prevLine:{stream:null},thisLine:{stream:null},block:xf,htmlState:null,indentation:0,inline:Df,text:Af,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(lh){return{f:lh.f,prevLine:lh.prevLine,thisLine:lh.thisLine,block:lh.block,htmlState:lh.htmlState&&ud.copyState(md,lh.htmlState),indentation:lh.indentation,localMode:lh.localMode,localState:lh.localMode?ud.copyState(lh.localMode,lh.localState):null,inline:lh.inline,text:lh.text,formatting:!1,linkText:lh.linkText,linkTitle:lh.linkTitle,linkHref:lh.linkHref,code:lh.code,em:lh.em,strong:lh.strong,strikethrough:lh.strikethrough,emoji:lh.emoji,header:lh.header,setext:lh.setext,hr:lh.hr,taskList:lh.taskList,list:lh.list,listStack:lh.listStack.slice(0),quote:lh.quote,indentedCode:lh.indentedCode,trailingSpace:lh.trailingSpace,trailingSpaceNewLine:lh.trailingSpaceNewLine,md_inside:lh.md_inside,fencedEndRE:lh.fencedEndRE}},token:function(lh,rh){if(rh.formatting=!1,lh!=rh.thisLine.stream){if(rh.header=0,rh.hr=!1,lh.match(/^\s*$/,!0))return mf(rh),null;if(rh.prevLine=rh.thisLine,rh.thisLine={stream:lh},rh.taskList=!1,rh.trailingSpace=0,rh.trailingSpaceNewLine=!1,!rh.localState&&(rh.f=rh.block,rh.f!=_f)){var mh=lh.match(/^\s*/,!0)[0].replace(/\t/g,Wd).length;if(rh.indentation=mh,rh.indentationDiff=null,mh>0)return null}}return rh.f(lh,rh)},innerMode:function(lh){return lh.block==_f?{state:lh.htmlState,mode:md}:lh.localState?{state:lh.localState,mode:lh.localMode}:{state:lh,mode:Mh}},indent:function(lh,rh,mh){return lh.block==_f&&md.indent?md.indent(lh.htmlState,rh,mh):lh.localState&&lh.localMode.indent?lh.localMode.indent(lh.localState,rh,mh):ud.Pass},blankLine:mf,getType:gf,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Mh},"xml"),ud.defineMIME("text/markdown","markdown"),ud.defineMIME("text/x-markdown","markdown")})})();(function(Ra,ed){(function(ud){ud(requireCodemirror())})(function(ud){var dd={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},hd=ud.Pos;ud.defineOption("autoCloseBrackets",!1,function(zd,qd,Wd){Wd&&Wd!=ud.Init&&(zd.removeKeyMap(gd),zd.state.closeBrackets=null),qd&&(yd(md(qd,"pairs")),zd.state.closeBrackets=qd,zd.addKeyMap(gd))});function md(zd,qd){return qd=="pairs"&&typeof zd=="string"?zd:typeof zd=="object"&&zd[qd]!=null?zd[qd]:dd[qd]}var gd={Backspace:wd,Enter:Nd};function yd(zd){for(var qd=0;qd=0;Jd--){var mf=Xd[Jd].head;zd.replaceRange("",hd(mf.line,mf.ch-1),hd(mf.line,mf.ch+1),"+delete")}}function Nd(zd){var qd=Cd(zd),Wd=qd&&md(qd,"explode");if(!Wd||zd.getOption("disableInput"))return ud.Pass;for(var Xd=zd.listSelections(),Jd=0;Jd0?{line:mf.head.line,ch:mf.head.ch+qd}:{line:mf.head.line-1};Wd.push({anchor:xf,head:xf})}zd.setSelections(Wd,Jd)}function Ud(zd){var qd=ud.cmpPos(zd.anchor,zd.head)>0;return{anchor:new hd(zd.anchor.line,zd.anchor.ch+(qd?-1:1)),head:new hd(zd.head.line,zd.head.ch+(qd?1:-1))}}function jd(zd,qd){var Wd=Cd(zd);if(!Wd||zd.getOption("disableInput"))return ud.Pass;var Xd=md(Wd,"pairs"),Jd=Xd.indexOf(qd);if(Jd==-1)return ud.Pass;for(var Zd=md(Wd,"closeBefore"),mf=md(Wd,"triples"),xf=Xd.charAt(Jd+1)==qd,_f=zd.listSelections(),vf=Jd%2==0,gf,Af=0;Af<_f.length;Af++){var Df=_f[Af],Of=Df.head,Cf,If=zd.getRange(Of,hd(Of.line,Of.ch+1));if(vf&&!Df.empty())Cf="surround";else if((xf||!vf)&&If==qd)xf&&Yd(zd,Of)?Cf="both":mf.indexOf(qd)>=0&&zd.getRange(Of,hd(Of.line,Of.ch+3))==qd+qd+qd?Cf="skipThree":Cf="skip";else if(xf&&Of.ch>1&&mf.indexOf(qd)>=0&&zd.getRange(hd(Of.line,Of.ch-2),Of)==qd+qd){if(Of.ch>2&&/\bstring/.test(zd.getTokenTypeAt(hd(Of.line,Of.ch-2))))return ud.Pass;Cf="addFour"}else if(xf){var Ff=Of.ch==0?" ":zd.getRange(hd(Of.line,Of.ch-1),Of);if(!ud.isWordChar(If)&&Ff!=qd&&!ud.isWordChar(Ff))Cf="both";else return ud.Pass}else if(vf&&(If.length===0||/\s/.test(If)||Zd.indexOf(If)>-1))Cf="both";else return ud.Pass;if(!gf)gf=Cf;else if(gf!=Cf)return ud.Pass}var sh=Jd%2?Xd.charAt(Jd-1):qd,Sh=Jd%2?qd:Xd.charAt(Jd+1);zd.operation(function(){if(gf=="skip")Ld(zd,1);else if(gf=="skipThree")Ld(zd,3);else if(gf=="surround"){for(var yh=zd.getSelections(),Mh=0;Mh",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function gd(Ld){return Ld&&Ld.bracketRegex||/[(){}[\]]/}function yd(Ld,Ud,jd){var Gd=Ld.getLineHandle(Ud.line),Yd=Ud.ch-1,zd=jd&&jd.afterCursor;zd==null&&(zd=/(^| )cm-fat-cursor($| )/.test(Ld.getWrapperElement().className));var qd=gd(jd),Wd=!zd&&Yd>=0&&qd.test(Gd.text.charAt(Yd))&&md[Gd.text.charAt(Yd)]||qd.test(Gd.text.charAt(Yd+1))&&md[Gd.text.charAt(++Yd)];if(!Wd)return null;var Xd=Wd.charAt(1)==">"?1:-1;if(jd&&jd.strict&&Xd>0!=(Yd==Ud.ch))return null;var Jd=Ld.getTokenTypeAt(hd(Ud.line,Yd+1)),Zd=vd(Ld,hd(Ud.line,Yd+(Xd>0?1:0)),Xd,Jd,jd);return Zd==null?null:{from:hd(Ud.line,Yd),to:Zd&&Zd.pos,match:Zd&&Zd.ch==Wd.charAt(0),forward:Xd>0}}function vd(Ld,Ud,jd,Gd,Yd){for(var zd=Yd&&Yd.maxScanLineLength||1e4,qd=Yd&&Yd.maxScanLines||1e3,Wd=[],Xd=gd(Yd),Jd=jd>0?Math.min(Ud.line+qd,Ld.lastLine()+1):Math.max(Ld.firstLine()-1,Ud.line-qd),Zd=Ud.line;Zd!=Jd;Zd+=jd){var mf=Ld.getLine(Zd);if(mf){var xf=jd>0?0:mf.length-1,_f=jd>0?mf.length:-1;if(!(mf.length>zd))for(Zd==Ud.line&&(xf=Ud.ch-(jd<0?1:0));xf!=_f;xf+=jd){var vf=mf.charAt(xf);if(Xd.test(vf)&&(Gd===void 0||(Ld.getTokenTypeAt(hd(Zd,xf+1))||"")==(Gd||""))){var gf=md[vf];if(gf&&gf.charAt(1)==">"==jd>0)Wd.push(vf);else if(Wd.length)Wd.pop();else return{pos:hd(Zd,xf),ch:vf}}}}}return Zd-jd==(jd>0?Ld.lastLine():Ld.firstLine())?!1:null}function Cd(Ld,Ud,jd){for(var Gd=Ld.state.matchBrackets.maxHighlightLineLength||1e3,Yd=jd&&jd.highlightNonMatching,zd=[],qd=Ld.listSelections(),Wd=0;Wd1)){if(this.somethingSelected()){if(!zd.hint.supportsSelection)return;for(var Wd=0;Wdmf.clientHeight+1:!1,_h;setTimeout(function(){_h=Xd.getScrollInfo()});var Ph=kf.bottom-Eh;if(Ph>0){var sm=kf.bottom-kf.top,th=kf.top-(Cf.bottom-Cf.top)-2;Eh-kf.topth&&(mf.style.height=(sm=th)+"px"),mf.style.top=(Ff=Cf.top-sm)+yh+"px",sh=!1):mf.style.height=Eh-kf.top-2+"px"}var oh=kf.right-xh;if(Rf&&(oh+=Xd.display.nativeBarWidth),oh>0&&(kf.right-kf.left>xh&&(mf.style.width=xh-5+"px",oh-=kf.right-kf.left-xh),mf.style.left=(If=Math.max(Cf.left-oh-Sh,0))+"px"),Rf)for(var Zh=mf.firstChild;Zh;Zh=Zh.nextSibling)Zh.style.paddingRight=Xd.display.nativeBarWidth+"px";if(Xd.addKeyMap(this.keyMap=wd(zd,{moveFocus:function(Vf,nh){Wd.changeActive(Wd.selectedHint+Vf,nh)},setFocus:function(Vf){Wd.changeActive(Vf)},menuSize:function(){return Wd.screenAmount()},length:_f.length,close:function(){zd.close()},pick:function(){Wd.pick()},data:qd})),zd.options.closeOnUnfocus){var Sm;Xd.on("blur",this.onBlur=function(){Sm=setTimeout(function(){zd.close()},100)}),Xd.on("focus",this.onFocus=function(){clearTimeout(Sm)})}Xd.on("scroll",this.onScroll=function(){var Vf=Xd.getScrollInfo(),nh=Xd.getWrapperElement().getBoundingClientRect();_h||(_h=Xd.getScrollInfo());var Lh=Ff+_h.top-Vf.top,Ih=Lh-(Zd.pageYOffset||(Jd.documentElement||Jd.body).scrollTop);if(sh||(Ih+=mf.offsetHeight),Ih<=nh.top||Ih>=nh.bottom)return zd.close();mf.style.top=Lh+"px",mf.style.left=If+_h.left-Vf.left+"px"}),ud.on(mf,"dblclick",function(Vf){var nh=Nd(mf,Vf.target||Vf.srcElement);nh&&nh.hintId!=null&&(Wd.changeActive(nh.hintId),Wd.pick())}),ud.on(mf,"click",function(Vf){var nh=Nd(mf,Vf.target||Vf.srcElement);nh&&nh.hintId!=null&&(Wd.changeActive(nh.hintId),zd.options.completeOnSingleClick&&Wd.pick())}),ud.on(mf,"mousedown",function(){setTimeout(function(){Xd.focus()},20)});var $h=this.getSelectedHintRange();return($h.from!==0||$h.to!==0)&&this.scrollToActive(),ud.signal(qd,"select",_f[this.selectedHint],mf.childNodes[this.selectedHint]),!0}Ld.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var zd=this.completion.cm.getInputField();zd.removeAttribute("aria-activedescendant"),zd.removeAttribute("aria-owns");var qd=this.completion.cm;this.completion.options.closeOnUnfocus&&(qd.off("blur",this.onBlur),qd.off("focus",this.onFocus)),qd.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var zd=this;this.keyMap={Enter:function(){zd.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(zd,qd){if(zd>=this.data.list.length?zd=qd?this.data.list.length-1:0:zd<0&&(zd=qd?0:this.data.list.length-1),this.selectedHint!=zd){var Wd=this.hints.childNodes[this.selectedHint];Wd&&(Wd.className=Wd.className.replace(" "+hd,""),Wd.removeAttribute("aria-selected")),Wd=this.hints.childNodes[this.selectedHint=zd],Wd.className+=" "+hd,Wd.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",Wd.id),this.scrollToActive(),ud.signal(this.data,"select",this.data.list[this.selectedHint],Wd)}},scrollToActive:function(){var zd=this.getSelectedHintRange(),qd=this.hints.childNodes[zd.from],Wd=this.hints.childNodes[zd.to],Xd=this.hints.firstChild;qd.offsetTopthis.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=Wd.offsetTop+Wd.offsetHeight-this.hints.clientHeight+Xd.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var zd=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-zd),to:Math.min(this.data.list.length-1,this.selectedHint+zd)}}};function Ud(zd,qd){if(!zd.somethingSelected())return qd;for(var Wd=[],Xd=0;Xd0?mf(Af):vf(gf+1)})}vf(0)};return Jd.async=!0,Jd.supportsSelection=!0,Jd}else return(Xd=zd.getHelper(zd.getCursor(),"hintWords"))?function(Zd){return ud.hint.fromList(Zd,{words:Xd})}:ud.hint.anyword?function(Zd,mf){return ud.hint.anyword(Zd,mf)}:function(){}}ud.registerHelper("hint","auto",{resolve:Gd}),ud.registerHelper("hint","fromList",function(zd,qd){var Wd=zd.getCursor(),Xd=zd.getTokenAt(Wd),Jd,Zd=ud.Pos(Wd.line,Xd.start),mf=Wd;Xd.start,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};ud.defineOption("hintOptions",null)})})();(function(Ra,ed){(function(ud){ud(requireCodemirror(),cssExports)})(function(ud){var dd={active:1,after:1,before:1,checked:1,default:1,disabled:1,empty:1,enabled:1,"first-child":1,"first-letter":1,"first-line":1,"first-of-type":1,focus:1,hover:1,"in-range":1,indeterminate:1,invalid:1,lang:1,"last-child":1,"last-of-type":1,link:1,not:1,"nth-child":1,"nth-last-child":1,"nth-last-of-type":1,"nth-of-type":1,"only-of-type":1,"only-child":1,optional:1,"out-of-range":1,placeholder:1,"read-only":1,"read-write":1,required:1,root:1,selection:1,target:1,valid:1,visited:1};ud.registerHelper("hint","css",function(hd){var md=hd.getCursor(),gd=hd.getTokenAt(md),yd=ud.innerMode(hd.getMode(),gd.state);if(yd.mode.name!="css")return;if(gd.type=="keyword"&&"!important".indexOf(gd.string)==0)return{list:["!important"],from:ud.Pos(md.line,gd.start),to:ud.Pos(md.line,gd.end)};var vd=gd.start,Cd=md.ch,wd=gd.string.slice(0,Cd-vd);/[^\w$_-]/.test(wd)&&(wd="",vd=Cd=md.ch);var Nd=ud.resolveMode("text/css"),Ld=[];function Ud(Gd){for(var Yd in Gd)(!wd||Yd.lastIndexOf(wd,0)==0)&&Ld.push(Yd)}var jd=yd.state.state;if(jd=="pseudo"||gd.type=="variable-3"?Ud(dd):jd=="block"||jd=="maybeprop"?Ud(Nd.propertyKeywords):jd=="prop"||jd=="parens"||jd=="at"||jd=="params"?(Ud(Nd.valueKeywords),Ud(Nd.colorKeywords)):(jd=="media"||jd=="media_parens")&&(Ud(Nd.mediaTypes),Ud(Nd.mediaFeatures)),Ld.length)return{list:Ld,from:ud.Pos(md.line,vd),to:ud.Pos(md.line,Cd)}})})})();const app=createApp(_sfc_main);app.use(createPinia());app.mount("#app");export{withPath as $,rgba$1 as A,setupGraphViewbox2 as B,cleanAndMerge as C,getConfig$2 as D,defaultConfig_default as E,random as F,selectSvgElement as G,version$1 as H,getThemeVariables3 as I,JSON_SCHEMA as J,line$1 as K,hasKatex as L,calculateMathMLDimensions as M,parseFontSize as N,renderKatex as O,parseGenericTypes as P,curveBasis as Q,generateId as R,lineBreakRegex as S,setupGraphViewbox as T,isDark as U,lighten as V,darken as W,__export as X,commonDb_exports as Y,ZERO_WIDTH_SPACE as Z,__name as _,getAccTitle as a,hue as a$,halfPi as a0,epsilon as a1,tau as a2,cos as a3,sin as a4,min$3 as a5,abs$3 as a6,constant$3 as a7,pi as a8,sqrt as a9,baseRest as aA,isArrayLikeObject as aB,constant$2 as aC,isFunction$2 as aD,isEmpty$1 as aE,computeDimensionOfText as aF,array$1 as aG,commonjsGlobal as aH,getDefaultExportFromCjs as aI,getIconSVG as aJ,registerIconPacks as aK,unknownIcon as aL,isObject$5 as aM,isIterateeCall as aN,keysIn as aO,eq as aP,isArrayLike$1 as aQ,isArray$2 as aR,identity as aS,isIndex$2 as aT,assignValue as aU,Rgb as aV,rgbConvert as aW,define$1 as aX,extend$1 as aY,Color as aZ,nogamma as a_,atan2 as aa,asin as ab,acos as ac,max$4 as ad,insertCluster as ae,insertNode as af,positionNode as ag,getLineFunctionsWithOffset as ah,evaluate as ai,createText as aj,getSubGraphTitleMargins as ak,replaceIconSubstring as al,decodeEntities as am,getStylesFromArray as an,Utils$1 as ao,Color$1 as ap,global$1 as aq,markers_default as ar,clear2 as as,clear as at,clear$1 as au,updateNodeBounds as av,setNodeElem as aw,insertEdge as ax,positionEdgeLabel as ay,insertEdgeLabel as az,setAccTitle as b,dayjs2 as b0,constant$4 as b1,interpolateNumber as b2,interpolateRgb as b3,interpolateString as b4,color as b5,setToString as b6,overRest as b7,baseFor as b8,baseAssignValue as b9,isPrototype as bA,__vitePreload as bB,baseUnary as ba,merge$4 as bb,isObjectLike$2 as bc,baseGetTag as bd,Symbol$1 as be,arrayLikeKeys as bf,baseKeys as bg,memoize$2 as bh,isArguments$1 as bi,copyObject as bj,getPrototype as bk,cloneArrayBuffer as bl,cloneTypedArray as bm,getTag$2 as bn,nodeUtil as bo,copyArray as bp,isBuffer$1 as bq,cloneBuffer as br,initCloneObject as bs,Stack as bt,MapCache as bu,Uint8Array$1 as bv,isTypedArray$2 as bw,isLength as bx,Set$1 as by,createAssigner as bz,getConfig2 as c,select as d,configureSvgSize as e,assignWithDepth_default as f,getAccDescription as g,calculateTextWidth as h,sanitizeText as i,sanitizeUrl_1 as j,common_default as k,log$1 as l,calculateTextHeight as m,getDiagramTitle as n,setDiagramTitle as o,setConfig2 as p,getRegisteredLayoutAlgorithm as q,render$1 as r,setAccDescription as s,defaultConfig2 as t,utils_default as u,clear$2 as v,wrapLabel as w,load as x,isValidShape as y,getEdgeId as z}; + `;return new Promise((resolve,reject)=>{const exportObj={content,file,util:{axios:service,CryptoJS,OSS,COS,Buffer:Buffer$1,uuidv4:v4,qiniu,tokenTools,getDir,getDateFilename},okCb:resolve,errCb:reject};eval(str)(exportObj).catch(Ra=>{console.error(Ra),reject(Ra)})})}function fileUpload(Ra,ed){const ud=localStorage.getItem("imgHost");switch(ud||localStorage.setItem("imgHost","default"),ud){case"aliOSS":return aliOSSFileUpload(ed);case"minio":return minioFileUpload(Ra,ed.name);case"txCOS":return txCOSFileUpload(ed);case"qiniu":return qiniuUpload(ed);case"gitee":return giteeUpload(Ra,ed.name);case"github":return ghFileUpload(Ra,ed.name);case"mp":return mpFileUpload(ed);case"r2":return r2Upload(ed);case"formCustom":return formCustomUpload(Ra,ed);default:return ghFileUpload(Ra,ed.name)}}const fileApi={fileUpload},_hoisted_1={class:"container-main flex flex-1 flex-col"},_hoisted_2={class:"container-main-section border-radius-10 relative flex flex-1 overflow-hidden border-1"},_hoisted_3={class:"preview border-x-1 shadow-xl"},_hoisted_4=["innerHTML"],_hoisted_5={key:0,class:"loading-mask"},_hoisted_6={class:"h-[30px] flex select-none items-center justify-end px-4 text-[12px]"},_sfc_main$1=defineComponent({__name:"CodemirrorEditor",setup(Ra){const ed=useStore(),ud=useDisplayStore(),{isDark:dd,output:hd,editor:md,readingTime:gd}=storeToRefs(ed),{editorRefresh:yd,exportEditorContent2HTML:vd,exportEditorContent2MD:Cd,formatContent:wd,importMarkdownContent:Nd,importDefaultContent:Ld,resetStyleConfirm:Ud}=ed,{toggleShowInsertFormDialog:jd,toggleShowUploadImgDialog:Gd}=ud,Yd=ref$1(!1),zd=ref$1(),qd=ref$1(null);function Wd(){const oh=Mh=>{let lh,rh;clearTimeout(zd.value),Mh==="preview"?(lh=qd.value,rh=document.querySelector(".CodeMirror-scroll"),md.value.off("scroll",Eh),zd.value=setTimeout(()=>{md.value.on("scroll",Eh)},300)):(lh=document.querySelector(".CodeMirror-scroll"),rh=qd.value,rh.removeEventListener("scroll",_h,!1),zd.value=setTimeout(()=>{rh.addEventListener("scroll",_h,!1)},300));const xh=lh.scrollTop/(lh.scrollHeight-lh.offsetHeight)*(rh.scrollHeight-rh.offsetHeight);rh.scrollTo(0,xh)};function Eh(){oh("editor")}function _h(){oh("preview")}qd.value.addEventListener("scroll",_h,!1),md.value.on("scroll",Eh)}onMounted(()=>{setTimeout(()=>{Wd()},300)});function Xd(){yd()}const Jd=ref$1(!1),Zd=ref$1(!1);function mf(){Zd.value=!0,Jd.value=!0}function xf(){Jd.value=!1,setTimeout(()=>{Zd.value=!1},800)}function _f(oh){const Eh=checkImage(oh);if(!Eh.ok)return Ke.error(Eh.msg),!1;const _h=localStorage.getItem("imgHost")||"default";localStorage.setItem("imgHost",_h);const Mh=localStorage.getItem(`${_h}Config`);return _h==="default"||Mh?!0:(Ke.error(`请先配置 ${_h} 图床参数`),!1)}function vf(oh){if(!oh){Ke.error("上传图片未知异常");return}Gd(!1);const Eh=md.value.getCursor(),_h=`![](${oh})`;toRaw(ed.editor).replaceSelection(` +${_h} +`,Eh),Ke.success("图片上传成功")}function gf(oh,Eh){Yd.value=!0,toBase64$2(oh).then(_h=>fileApi.fileUpload(_h,oh)).then(_h=>{Eh?Eh(_h):vf(_h)}).catch(_h=>{Ke.error(_h.message)}).finally(()=>{Yd.value=!1})}const Af=ref$1();watch(dd,()=>{var Eh,_h;const oh=dd.value?"darcula":"xq-light";(_h=(Eh=toRaw(md.value))==null?void 0:Eh.setOption)==null||_h.call(Eh,"theme",oh)});function Df(){const oh=document.querySelector("#editor");oh.value||(oh.value=ed.posts[ed.currentPostIndex].content),md.value=CodeMirror.fromTextArea(oh,{mode:"text/x-markdown",theme:dd.value?"darcula":"xq-light",lineNumbers:!1,lineWrapping:!0,styleActiveLine:!0,autoCloseBrackets:!0,extraKeys:{[`${shiftKey}-${altKey}-F`]:function(_h){formatDoc(_h.getValue()).then(Mh=>{_h.setValue(Mh)})},[`${ctrlKey}-B`]:function(_h){const Mh=_h.getSelection();_h.replaceSelection(`**${Mh}**`)},[`${ctrlKey}-I`]:function(_h){const Mh=_h.getSelection();_h.replaceSelection(`*${Mh}*`)},[`${ctrlKey}-D`]:function(_h){const Mh=_h.getSelection();_h.replaceSelection(`~~${Mh}~~`)},[`${ctrlKey}-K`]:function(_h){const Mh=_h.getSelection();_h.replaceSelection(`[${Mh}]()`)},[`${ctrlKey}-E`]:function(_h){const Mh=_h.getSelection();_h.replaceSelection(`\`${Mh}\``)},[`${ctrlKey}-L`]:function(_h){const Mh=_h.getSelection();_h.replaceSelection(`\`${Mh}\``)}}}),md.value.on("change",Eh=>{clearTimeout(Af.value),Af.value=setTimeout(()=>{Xd(),ed.posts[ed.currentPostIndex].content=Eh.getValue()},300)}),md.value.on("paste",(Eh,_h)=>{if(!(!(_h.clipboardData&&_h.clipboardData.items)||Yd.value))for(let Mh=0,lh=_h.clipboardData.items.length;Mh{const mh=[...lh.str.matchAll(/!\[(.*?)\]\((.*?)\)/g)||[]].filter(Of=>Of),xh=lh.path.match(/.+?\//)[0];(await Promise.all(mh.map(Of=>new Promise(Rf=>{let[,,yh]=Of;yh=yh.replace(/^.\//,"");const{file:Ph}=rh.find(sm=>sm.path===`${xh}${yh}`)||{};gf(Ph,sm=>{Rf({matchStr:yh,url:sm})})})))).forEach(Of=>{lh.str=lh.str.replace(`](./${Of.matchStr})`,`](${Of.url})`).replace(`](${Of.matchStr})`,`](${Of.url})`)}),md.value.setValue(lh.str)};oh.ondragover=lh=>lh.preventDefault(),oh.ondrop=async lh=>{lh.preventDefault();for(const rh of lh.dataTransfer.items)rh.getAsFileSystemHandle().then(async mh=>{if(mh.kind==="directory"){const xh=await Mh(mh),Sh=await _h({list:xh});Eh({md:Sh,list:xh})}else{const xh=await mh.getFile();console.log("file",xh)}})};async function _h({list:lh}){return new Promise(rh=>{const{path:mh,file:xh}=lh.find(Of=>Of.path.match(/\.md$/)),Sh=new FileReader;Sh.readAsText(xh,"UTF-8"),Sh.onload=Of=>{rh({str:Of.target.result,file:xh,path:mh})}})}async function Mh(lh){const rh=[];let mh="";try{const xh=[lh];for(const Sh of xh){mh+=`${Sh.name}/`;for await(const[,Of]of Sh)Of.kind==="file"?rh.push({path:mh+Of.name,file:await Of.getFile()}):(rh.push({path:`${mh+Of.name}/`}),xh.push(Of))}}catch(xh){console.error(xh)}return rh}}return onMounted(()=>{Df(),Xd(),Ff()}),(oh,Eh)=>{var zh,Mm;const _h=__unplugin_components_0,Mh=_sfc_main$C,lh=_sfc_main$I,rh=_sfc_main$J,mh=_sfc_main$K,xh=_sfc_main$L,Sh=_sfc_main$M,Of=_sfc_main$N,Rf=_sfc_main$O,yh=__unplugin_components_9,Ph=_sfc_main$R,sm=_sfc_main$S,th=_sfc_main$15,sh=__unplugin_components_13$1,Zh=_sfc_main$1j,Sm=_sfc_main$1k,$h=_sfc_main$1l,Vf=_sfc_main$1m,nh=_sfc_main$1n,Lh=_sfc_main$1p,Ih=_sfc_main$1q,om=_sfc_main$1r;return openBlock(),createElementBlock("div",{ref_key:"container",ref:kf,class:"container flex flex-col"},[createVNode(_h,{onAddFormat:Cf,onFormatContent:unref(wd),onStartCopy:mf,onEndCopy:xf},null,8,["onFormatContent"]),createBaseVNode("main",_hoisted_1,[createBaseVNode("div",_hoisted_2,[createVNode(Mh),createBaseVNode("div",{ref_key:"codeMirrorWrapper",ref:If,class:normalizeClass(["codeMirror-wrapper flex-1",{"order-1 border-l":!unref(ed).isEditOnLeft,"border-r":unref(ed).isEditOnLeft}])},[createVNode(Of,null,{default:withCtx(()=>[createVNode(lh,null,{default:withCtx(()=>Eh[10]||(Eh[10]=[createBaseVNode("textarea",{id:"editor",type:"textarea",placeholder:"Your markdown text here."},null,-1)])),_:1}),createVNode(Sh,{class:"w-64"},{default:withCtx(()=>[createVNode(rh,{inset:"",onClick:Eh[0]||(Eh[0]=Nm=>unref(Gd)())},{default:withCtx(()=>Eh[11]||(Eh[11]=[createTextVNode(" 上传图片 ")])),_:1}),createVNode(rh,{inset:"",onClick:Eh[1]||(Eh[1]=Nm=>unref(jd)())},{default:withCtx(()=>Eh[12]||(Eh[12]=[createTextVNode(" 插入表格 ")])),_:1}),createVNode(rh,{inset:"",onClick:Eh[2]||(Eh[2]=Nm=>unref(Ud)())},{default:withCtx(()=>Eh[13]||(Eh[13]=[createTextVNode(" 恢复默认样式 ")])),_:1}),createVNode(rh,{inset:"",onClick:Eh[3]||(Eh[3]=Nm=>unref(Ld)())},{default:withCtx(()=>Eh[14]||(Eh[14]=[createTextVNode(" 导入默认文档 ")])),_:1}),createVNode(mh),createVNode(rh,{inset:"",onClick:Eh[4]||(Eh[4]=Nm=>unref(Nd)())},{default:withCtx(()=>Eh[15]||(Eh[15]=[createTextVNode(" 导入 .md 文档 ")])),_:1}),createVNode(rh,{inset:"",onClick:Eh[5]||(Eh[5]=Nm=>unref(Cd)())},{default:withCtx(()=>Eh[16]||(Eh[16]=[createTextVNode(" 导出 .md 文档 ")])),_:1}),createVNode(rh,{inset:"",onClick:Eh[6]||(Eh[6]=Nm=>unref(vd)())},{default:withCtx(()=>Eh[17]||(Eh[17]=[createTextVNode(" 导出 .html ")])),_:1}),createVNode(rh,{inset:"",onClick:Eh[7]||(Eh[7]=Nm=>unref(wd)())},{default:withCtx(()=>[Eh[18]||(Eh[18]=createTextVNode(" 格式化 ")),createVNode(xh,null,{default:withCtx(()=>[createTextVNode(toDisplayString(unref(altSign))+" + "+toDisplayString(unref(shiftSign))+" + F",1)]),_:1})]),_:1})]),_:1})]),_:1})],2),createBaseVNode("div",{id:"preview",ref_key:"preview",ref:qd,class:"preview-wrapper flex-1 p-5"},[createBaseVNode("div",{id:"output-wrapper",class:normalizeClass({output_night:!unref(Jd)})},[createBaseVNode("div",_hoisted_3,[createBaseVNode("section",{id:"output",innerHTML:unref(hd)},null,8,_hoisted_4),unref(Zd)?(openBlock(),createElementBlock("div",_hoisted_5,Eh[19]||(Eh[19]=[createBaseVNode("div",{class:"loading-mask-box"},[createBaseVNode("div",{class:"loading__img"}),createBaseVNode("span",null,"正在生成")],-1)]))):createCommentVNode("",!0)])],2),createVNode(Rf,{target:"preview",right:40,bottom:40})],512),createVNode(yh,{class:"order-2 flex-1"}),createVNode(Ph,{class:"order-2"})]),createBaseVNode("footer",_hoisted_6," 字数 "+toDisplayString((zh=unref(gd))==null?void 0:zh.words)+", 阅读大约需 "+toDisplayString(Math.ceil(((Mm=unref(gd))==null?void 0:Mm.minutes)??0))+" 分钟 ",1),createVNode(sm,{onUploadImage:gf}),createVNode(th),createVNode(sh),createVNode(om,{open:unref(ed).isOpenConfirmDialog,"onUpdate:open":Eh[9]||(Eh[9]=Nm=>unref(ed).isOpenConfirmDialog=Nm)},{default:withCtx(()=>[createVNode(Ih,null,{default:withCtx(()=>[createVNode($h,null,{default:withCtx(()=>[createVNode(Zh,null,{default:withCtx(()=>Eh[20]||(Eh[20]=[createTextVNode("提示")])),_:1}),createVNode(Sm,null,{default:withCtx(()=>Eh[21]||(Eh[21]=[createTextVNode(" 此操作将丢失本地自定义样式,是否继续? ")])),_:1})]),_:1}),createVNode(Lh,null,{default:withCtx(()=>[createVNode(Vf,null,{default:withCtx(()=>Eh[22]||(Eh[22]=[createTextVNode("取消")])),_:1}),createVNode(nh,{onClick:Eh[8]||(Eh[8]=Nm=>unref(ed).resetStyle())},{default:withCtx(()=>Eh[23]||(Eh[23]=[createTextVNode(" 确认 ")])),_:1})]),_:1})]),_:1})]),_:1},8,["open"])])],512)}}}),CodemirrorEditor=_export_sfc(_sfc_main$1,[["__scopeId","data-v-ea1f7a08"]]),_sfc_main=defineComponent({__name:"App",setup(Ra){return(ed,ud)=>(openBlock(),createBlock(CodemirrorEditor))}});var css={exports:{}};(function(Ra,ed){(function(ud){ud(requireCodemirror())})(function(ud){ud.defineMode("css",function(vf,gf){var Af=gf.inline;gf.propertyKeywords||(gf=ud.resolveMode("text/css"));var Df=vf.indentUnit,kf=gf.tokenHooks,Cf=gf.documentTypes||{},If=gf.mediaTypes||{},Ff=gf.mediaFeatures||{},oh=gf.mediaValueKeywords||{},Eh=gf.propertyKeywords||{},_h=gf.nonStandardPropertyKeywords||{},Mh=gf.fontProperties||{},lh=gf.counterDescriptors||{},rh=gf.colorKeywords||{},mh=gf.valueKeywords||{},xh=gf.allowNested,Sh=gf.lineComment,Of=gf.supportsAtComponent===!0,Rf=vf.highlightNonStandardPropertyKeywords!==!1,yh,Ph;function sm(zh,Mm){return yh=Mm,zh}function th(zh,Mm){var Nm=zh.next();if(kf[Nm]){var Zm=kf[Nm](zh,Mm);if(Zm!==!1)return Zm}if(Nm=="@")return zh.eatWhile(/[\w\\\-]/),sm("def",zh.current());if(Nm=="="||(Nm=="~"||Nm=="|")&&zh.eat("="))return sm(null,"compare");if(Nm=='"'||Nm=="'")return Mm.tokenize=sh(Nm),Mm.tokenize(zh,Mm);if(Nm=="#")return zh.eatWhile(/[\w\\\-]/),sm("atom","hash");if(Nm=="!")return zh.match(/^\s*\w*/),sm("keyword","important");if(/\d/.test(Nm)||Nm=="."&&zh.eat(/\d/))return zh.eatWhile(/[\w.%]/),sm("number","unit");if(Nm==="-"){if(/[\d.]/.test(zh.peek()))return zh.eatWhile(/[\w.%]/),sm("number","unit");if(zh.match(/^-[\w\\\-]*/))return zh.eatWhile(/[\w\\\-]/),zh.match(/^\s*:/,!1)?sm("variable-2","variable-definition"):sm("variable-2","variable");if(zh.match(/^\w+-/))return sm("meta","meta")}else return/[,+>*\/]/.test(Nm)?sm(null,"select-op"):Nm=="."&&zh.match(/^-?[_a-z][_a-z0-9-]*/i)?sm("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(Nm)?sm(null,Nm):zh.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(zh.current())&&(Mm.tokenize=Zh),sm("variable callee","variable")):/[\w\\\-]/.test(Nm)?(zh.eatWhile(/[\w\\\-]/),sm("property","word")):sm(null,null)}function sh(zh){return function(Mm,Nm){for(var Zm=!1,Ym;(Ym=Mm.next())!=null;){if(Ym==zh&&!Zm){zh==")"&&Mm.backUp(1);break}Zm=!Zm&&Ym=="\\"}return(Ym==zh||!Zm&&zh!=")")&&(Nm.tokenize=null),sm("string","string")}}function Zh(zh,Mm){return zh.next(),zh.match(/^\s*[\"\')]/,!1)?Mm.tokenize=null:Mm.tokenize=sh(")"),sm(null,"(")}function Sm(zh,Mm,Nm){this.type=zh,this.indent=Mm,this.prev=Nm}function $h(zh,Mm,Nm,Zm){return zh.context=new Sm(Nm,Mm.indentation()+(Zm===!1?0:Df),zh.context),Nm}function Vf(zh){return zh.context.prev&&(zh.context=zh.context.prev),zh.context.type}function nh(zh,Mm,Nm){return om[Nm.context.type](zh,Mm,Nm)}function Lh(zh,Mm,Nm,Zm){for(var Ym=Zm||1;Ym>0;Ym--)Nm.context=Nm.context.prev;return nh(zh,Mm,Nm)}function Ih(zh){var Mm=zh.current().toLowerCase();mh.hasOwnProperty(Mm)?Ph="atom":rh.hasOwnProperty(Mm)?Ph="keyword":Ph="variable"}var om={};return om.top=function(zh,Mm,Nm){if(zh=="{")return $h(Nm,Mm,"block");if(zh=="}"&&Nm.context.prev)return Vf(Nm);if(Of&&/@component/i.test(zh))return $h(Nm,Mm,"atComponentBlock");if(/^@(-moz-)?document$/i.test(zh))return $h(Nm,Mm,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(zh))return $h(Nm,Mm,"atBlock");if(/^@(font-face|counter-style)/i.test(zh))return Nm.stateArg=zh,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(zh))return"keyframes";if(zh&&zh.charAt(0)=="@")return $h(Nm,Mm,"at");if(zh=="hash")Ph="builtin";else if(zh=="word")Ph="tag";else{if(zh=="variable-definition")return"maybeprop";if(zh=="interpolation")return $h(Nm,Mm,"interpolation");if(zh==":")return"pseudo";if(xh&&zh=="(")return $h(Nm,Mm,"parens")}return Nm.context.type},om.block=function(zh,Mm,Nm){if(zh=="word"){var Zm=Mm.current().toLowerCase();return Eh.hasOwnProperty(Zm)?(Ph="property","maybeprop"):_h.hasOwnProperty(Zm)?(Ph=Rf?"string-2":"property","maybeprop"):xh?(Ph=Mm.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(Ph+=" error","maybeprop")}else return zh=="meta"?"block":!xh&&(zh=="hash"||zh=="qualifier")?(Ph="error","block"):om.top(zh,Mm,Nm)},om.maybeprop=function(zh,Mm,Nm){return zh==":"?$h(Nm,Mm,"prop"):nh(zh,Mm,Nm)},om.prop=function(zh,Mm,Nm){if(zh==";")return Vf(Nm);if(zh=="{"&&xh)return $h(Nm,Mm,"propBlock");if(zh=="}"||zh=="{")return Lh(zh,Mm,Nm);if(zh=="(")return $h(Nm,Mm,"parens");if(zh=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(Mm.current()))Ph+=" error";else if(zh=="word")Ih(Mm);else if(zh=="interpolation")return $h(Nm,Mm,"interpolation");return"prop"},om.propBlock=function(zh,Mm,Nm){return zh=="}"?Vf(Nm):zh=="word"?(Ph="property","maybeprop"):Nm.context.type},om.parens=function(zh,Mm,Nm){return zh=="{"||zh=="}"?Lh(zh,Mm,Nm):zh==")"?Vf(Nm):zh=="("?$h(Nm,Mm,"parens"):zh=="interpolation"?$h(Nm,Mm,"interpolation"):(zh=="word"&&Ih(Mm),"parens")},om.pseudo=function(zh,Mm,Nm){return zh=="meta"?"pseudo":zh=="word"?(Ph="variable-3",Nm.context.type):nh(zh,Mm,Nm)},om.documentTypes=function(zh,Mm,Nm){return zh=="word"&&Cf.hasOwnProperty(Mm.current())?(Ph="tag",Nm.context.type):om.atBlock(zh,Mm,Nm)},om.atBlock=function(zh,Mm,Nm){if(zh=="(")return $h(Nm,Mm,"atBlock_parens");if(zh=="}"||zh==";")return Lh(zh,Mm,Nm);if(zh=="{")return Vf(Nm)&&$h(Nm,Mm,xh?"block":"top");if(zh=="interpolation")return $h(Nm,Mm,"interpolation");if(zh=="word"){var Zm=Mm.current().toLowerCase();Zm=="only"||Zm=="not"||Zm=="and"||Zm=="or"?Ph="keyword":If.hasOwnProperty(Zm)?Ph="attribute":Ff.hasOwnProperty(Zm)?Ph="property":oh.hasOwnProperty(Zm)?Ph="keyword":Eh.hasOwnProperty(Zm)?Ph="property":_h.hasOwnProperty(Zm)?Ph=Rf?"string-2":"property":mh.hasOwnProperty(Zm)?Ph="atom":rh.hasOwnProperty(Zm)?Ph="keyword":Ph="error"}return Nm.context.type},om.atComponentBlock=function(zh,Mm,Nm){return zh=="}"?Lh(zh,Mm,Nm):zh=="{"?Vf(Nm)&&$h(Nm,Mm,xh?"block":"top",!1):(zh=="word"&&(Ph="error"),Nm.context.type)},om.atBlock_parens=function(zh,Mm,Nm){return zh==")"?Vf(Nm):zh=="{"||zh=="}"?Lh(zh,Mm,Nm,2):om.atBlock(zh,Mm,Nm)},om.restricted_atBlock_before=function(zh,Mm,Nm){return zh=="{"?$h(Nm,Mm,"restricted_atBlock"):zh=="word"&&Nm.stateArg=="@counter-style"?(Ph="variable","restricted_atBlock_before"):nh(zh,Mm,Nm)},om.restricted_atBlock=function(zh,Mm,Nm){return zh=="}"?(Nm.stateArg=null,Vf(Nm)):zh=="word"?(Nm.stateArg=="@font-face"&&!Mh.hasOwnProperty(Mm.current().toLowerCase())||Nm.stateArg=="@counter-style"&&!lh.hasOwnProperty(Mm.current().toLowerCase())?Ph="error":Ph="property","maybeprop"):"restricted_atBlock"},om.keyframes=function(zh,Mm,Nm){return zh=="word"?(Ph="variable","keyframes"):zh=="{"?$h(Nm,Mm,"top"):nh(zh,Mm,Nm)},om.at=function(zh,Mm,Nm){return zh==";"?Vf(Nm):zh=="{"||zh=="}"?Lh(zh,Mm,Nm):(zh=="word"?Ph="tag":zh=="hash"&&(Ph="builtin"),"at")},om.interpolation=function(zh,Mm,Nm){return zh=="}"?Vf(Nm):zh=="{"||zh==";"?Lh(zh,Mm,Nm):(zh=="word"?Ph="variable":zh!="variable"&&zh!="("&&zh!=")"&&(Ph="error"),"interpolation")},{startState:function(zh){return{tokenize:null,state:Af?"block":"top",stateArg:null,context:new Sm(Af?"block":"top",zh||0,null)}},token:function(zh,Mm){if(!Mm.tokenize&&zh.eatSpace())return null;var Nm=(Mm.tokenize||th)(zh,Mm);return Nm&&typeof Nm=="object"&&(yh=Nm[1],Nm=Nm[0]),Ph=Nm,yh!="comment"&&(Mm.state=om[Mm.state](yh,zh,Mm)),Ph},indent:function(zh,Mm){var Nm=zh.context,Zm=Mm&&Mm.charAt(0),Ym=Nm.indent;return Nm.type=="prop"&&(Zm=="}"||Zm==")")&&(Nm=Nm.prev),Nm.prev&&(Zm=="}"&&(Nm.type=="block"||Nm.type=="top"||Nm.type=="interpolation"||Nm.type=="restricted_atBlock")?(Nm=Nm.prev,Ym=Nm.indent):(Zm==")"&&(Nm.type=="parens"||Nm.type=="atBlock_parens")||Zm=="{"&&(Nm.type=="at"||Nm.type=="atBlock"))&&(Ym=Math.max(0,Nm.indent-Df))),Ym},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:Sh,fold:"brace"}});function dd(vf){for(var gf={},Af=0;Af!?|~^@]/,jd=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function Gd(Hh){for(var $m=!1,fg,Rg=!1;(fg=Hh.next())!=null;){if(!$m){if(fg=="/"&&!Rg)return;fg=="["?Rg=!0:Rg&&fg=="]"&&(Rg=!1)}$m=!$m&&fg=="\\"}}var Yd,zd;function qd(Hh,$m,fg){return Yd=Hh,zd=fg,$m}function Wd(Hh,$m){var fg=Hh.next();if(fg=='"'||fg=="'")return $m.tokenize=Xd(fg),$m.tokenize(Hh,$m);if(fg=="."&&Hh.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return qd("number","number");if(fg=="."&&Hh.match(".."))return qd("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(fg))return qd(fg);if(fg=="="&&Hh.eat(">"))return qd("=>","operator");if(fg=="0"&&Hh.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return qd("number","number");if(/\d/.test(fg))return Hh.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),qd("number","number");if(fg=="/")return Hh.eat("*")?($m.tokenize=Jd,Jd(Hh,$m)):Hh.eat("/")?(Hh.skipToEnd(),qd("comment","comment")):s_(Hh,$m,1)?(Gd(Hh),Hh.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),qd("regexp","string-2")):(Hh.eat("="),qd("operator","operator",Hh.current()));if(fg=="`")return $m.tokenize=Zd,Zd(Hh,$m);if(fg=="#"&&Hh.peek()=="!")return Hh.skipToEnd(),qd("meta","meta");if(fg=="#"&&Hh.eatWhile(Nd))return qd("variable","property");if(fg=="<"&&Hh.match("!--")||fg=="-"&&Hh.match("->")&&!/\S/.test(Hh.string.slice(0,Hh.start)))return Hh.skipToEnd(),qd("comment","comment");if(Ud.test(fg))return(fg!=">"||!$m.lexical||$m.lexical.type!=">")&&(Hh.eat("=")?(fg=="!"||fg=="=")&&Hh.eat("="):/[<>*+\-|&?]/.test(fg)&&(Hh.eat(fg),fg==">"&&Hh.eat(fg))),fg=="?"&&Hh.eat(".")?qd("."):qd("operator","operator",Hh.current());if(Nd.test(fg)){Hh.eatWhile(Nd);var Rg=Hh.current();if($m.lastType!="."){if(Ld.propertyIsEnumerable(Rg)){var og=Ld[Rg];return qd(og.type,og.style,Rg)}if(Rg=="async"&&Hh.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return qd("async","keyword",Rg)}return qd("variable","variable",Rg)}}function Xd(Hh){return function($m,fg){var Rg=!1,og;if(yd&&$m.peek()=="@"&&$m.match(jd))return fg.tokenize=Wd,qd("jsonld-keyword","meta");for(;(og=$m.next())!=null&&!(og==Hh&&!Rg);)Rg=!Rg&&og=="\\";return Rg||(fg.tokenize=Wd),qd("string","string")}}function Jd(Hh,$m){for(var fg=!1,Rg;Rg=Hh.next();){if(Rg=="/"&&fg){$m.tokenize=Wd;break}fg=Rg=="*"}return qd("comment","comment")}function Zd(Hh,$m){for(var fg=!1,Rg;(Rg=Hh.next())!=null;){if(!fg&&(Rg=="`"||Rg=="$"&&Hh.eat("{"))){$m.tokenize=Wd;break}fg=!fg&&Rg=="\\"}return qd("quasi","string-2",Hh.current())}var mf="([{}])";function xf(Hh,$m){$m.fatArrowAt&&($m.fatArrowAt=null);var fg=Hh.string.indexOf("=>",Hh.start);if(!(fg<0)){if(wd){var Rg=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(Hh.string.slice(Hh.start,fg));Rg&&(fg=Rg.index)}for(var og=0,Fg=!1,y_=fg-1;y_>=0;--y_){var Y_=Hh.string.charAt(y_),s0=mf.indexOf(Y_);if(s0>=0&&s0<3){if(!og){++y_;break}if(--og==0){Y_=="("&&(Fg=!0);break}}else if(s0>=3&&s0<6)++og;else if(Nd.test(Y_))Fg=!0;else if(/["'\/`]/.test(Y_))for(;;--y_){if(y_==0)return;var L0=Hh.string.charAt(y_-1);if(L0==Y_&&Hh.string.charAt(y_-2)!="\\"){y_--;break}}else if(Fg&&!og){++y_;break}}Fg&&!og&&($m.fatArrowAt=y_)}}var _f={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function vf(Hh,$m,fg,Rg,og,Fg){this.indented=Hh,this.column=$m,this.type=fg,this.prev=og,this.info=Fg,Rg!=null&&(this.align=Rg)}function gf(Hh,$m){if(!Cd)return!1;for(var fg=Hh.localVars;fg;fg=fg.next)if(fg.name==$m)return!0;for(var Rg=Hh.context;Rg;Rg=Rg.prev)for(var fg=Rg.vars;fg;fg=fg.next)if(fg.name==$m)return!0}function Af(Hh,$m,fg,Rg,og){var Fg=Hh.cc;for(Df.state=Hh,Df.stream=og,Df.marked=null,Df.cc=Fg,Df.style=$m,Hh.lexical.hasOwnProperty("align")||(Hh.lexical.align=!0);;){var y_=Fg.length?Fg.pop():vd?sm:yh;if(y_(fg,Rg)){for(;Fg.length&&Fg[Fg.length-1].lex;)Fg.pop()();return Df.marked?Df.marked:fg=="variable"&&gf(Hh,Rg)?"variable-2":$m}}}var Df={state:null,marked:null,cc:null};function kf(){for(var Hh=arguments.length-1;Hh>=0;Hh--)Df.cc.push(arguments[Hh])}function Cf(){return kf.apply(null,arguments),!0}function If(Hh,$m){for(var fg=$m;fg;fg=fg.next)if(fg.name==Hh)return!0;return!1}function Ff(Hh){var $m=Df.state;if(Df.marked="def",!!Cd){if($m.context){if($m.lexical.info=="var"&&$m.context&&$m.context.block){var fg=oh(Hh,$m.context);if(fg!=null){$m.context=fg;return}}else if(!If(Hh,$m.localVars)){$m.localVars=new Mh(Hh,$m.localVars);return}}hd.globalVars&&!If(Hh,$m.globalVars)&&($m.globalVars=new Mh(Hh,$m.globalVars))}}function oh(Hh,$m){if($m)if($m.block){var fg=oh(Hh,$m.prev);return fg?fg==$m.prev?$m:new _h(fg,$m.vars,!0):null}else return If(Hh,$m.vars)?$m:new _h($m.prev,new Mh(Hh,$m.vars),!1);else return null}function Eh(Hh){return Hh=="public"||Hh=="private"||Hh=="protected"||Hh=="abstract"||Hh=="readonly"}function _h(Hh,$m,fg){this.prev=Hh,this.vars=$m,this.block=fg}function Mh(Hh,$m){this.name=Hh,this.next=$m}var lh=new Mh("this",new Mh("arguments",null));function rh(){Df.state.context=new _h(Df.state.context,Df.state.localVars,!1),Df.state.localVars=lh}function mh(){Df.state.context=new _h(Df.state.context,Df.state.localVars,!0),Df.state.localVars=null}rh.lex=mh.lex=!0;function xh(){Df.state.localVars=Df.state.context.vars,Df.state.context=Df.state.context.prev}xh.lex=!0;function Sh(Hh,$m){var fg=function(){var Rg=Df.state,og=Rg.indented;if(Rg.lexical.type=="stat")og=Rg.lexical.indented;else for(var Fg=Rg.lexical;Fg&&Fg.type==")"&&Fg.align;Fg=Fg.prev)og=Fg.indented;Rg.lexical=new vf(og,Df.stream.column(),Hh,null,Rg.lexical,$m)};return fg.lex=!0,fg}function Of(){var Hh=Df.state;Hh.lexical.prev&&(Hh.lexical.type==")"&&(Hh.indented=Hh.lexical.indented),Hh.lexical=Hh.lexical.prev)}Of.lex=!0;function Rf(Hh){function $m(fg){return fg==Hh?Cf():Hh==";"||fg=="}"||fg==")"||fg=="]"?kf():Cf($m)}return $m}function yh(Hh,$m){return Hh=="var"?Cf(Sh("vardef",$m),O_,Rf(";"),Of):Hh=="keyword a"?Cf(Sh("form"),sh,yh,Of):Hh=="keyword b"?Cf(Sh("form"),yh,Of):Hh=="keyword d"?Df.stream.match(/^\s*$/,!1)?Cf():Cf(Sh("stat"),Sm,Rf(";"),Of):Hh=="debugger"?Cf(Rf(";")):Hh=="{"?Cf(Sh("}"),mh,$f,Of,xh):Hh==";"?Cf():Hh=="if"?(Df.state.lexical.info=="else"&&Df.state.cc[Df.state.cc.length-1]==Of&&Df.state.cc.pop()(),Cf(Sh("form"),sh,yh,Of,Pg)):Hh=="function"?Cf(ih):Hh=="for"?Cf(Sh("form"),mh,$0,yh,xh,Of):Hh=="class"||wd&&$m=="interface"?(Df.marked="keyword",Cf(Sh("form",Hh=="class"?Hh:$m),Pm,Of)):Hh=="variable"?wd&&$m=="declare"?(Df.marked="keyword",Cf(yh)):wd&&($m=="module"||$m=="enum"||$m=="type")&&Df.stream.match(/^\s*\w/,!1)?(Df.marked="keyword",$m=="enum"?Cf(Mg):$m=="type"?Cf(Qh,Rf("operator"),Wm,Rf(";")):Cf(Sh("form"),S_,Rf("{"),Sh("}"),$f,Of,Of)):wd&&$m=="namespace"?(Df.marked="keyword",Cf(Sh("form"),sm,yh,Of)):wd&&$m=="abstract"?(Df.marked="keyword",Cf(yh)):Cf(Sh("stat"),Zm):Hh=="switch"?Cf(Sh("form"),sh,Rf("{"),Sh("}","switch"),mh,$f,Of,Of,xh):Hh=="case"?Cf(sm,Rf(":")):Hh=="default"?Cf(Rf(":")):Hh=="catch"?Cf(Sh("form"),rh,Ph,yh,Of,xh):Hh=="export"?Cf(Sh("stat"),lg,Of):Hh=="import"?Cf(Sh("stat"),zg,Of):Hh=="async"?Cf(yh):$m=="@"?Cf(sm,yh):kf(Sh("stat"),sm,Rf(";"),Of)}function Ph(Hh){if(Hh=="(")return Cf(hm,Rf(")"))}function sm(Hh,$m){return Zh(Hh,$m,!1)}function th(Hh,$m){return Zh(Hh,$m,!0)}function sh(Hh){return Hh!="("?kf():Cf(Sh(")"),Sm,Rf(")"),Of)}function Zh(Hh,$m,fg){if(Df.state.fatArrowAt==Df.stream.start){var Rg=fg?om:Ih;if(Hh=="(")return Cf(rh,Sh(")"),jh(hm,")"),Of,Rf("=>"),Rg,xh);if(Hh=="variable")return kf(rh,S_,Rf("=>"),Rg,xh)}var og=fg?Vf:$h;return _f.hasOwnProperty(Hh)?Cf(og):Hh=="function"?Cf(ih,og):Hh=="class"||wd&&$m=="interface"?(Df.marked="keyword",Cf(Sh("form"),Lm,Of)):Hh=="keyword c"||Hh=="async"?Cf(fg?th:sm):Hh=="("?Cf(Sh(")"),Sm,Rf(")"),Of,og):Hh=="operator"||Hh=="spread"?Cf(fg?th:sm):Hh=="["?Cf(Sh("]"),f_,Of,og):Hh=="{"?Pf(jm,"}",null,og):Hh=="quasi"?kf(nh,og):Hh=="new"?Cf(zh(fg)):Cf()}function Sm(Hh){return Hh.match(/[;\}\)\],]/)?kf():kf(sm)}function $h(Hh,$m){return Hh==","?Cf(Sm):Vf(Hh,$m,!1)}function Vf(Hh,$m,fg){var Rg=fg==!1?$h:Vf,og=fg==!1?sm:th;if(Hh=="=>")return Cf(rh,fg?om:Ih,xh);if(Hh=="operator")return/\+\+|--/.test($m)||wd&&$m=="!"?Cf(Rg):wd&&$m=="<"&&Df.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?Cf(Sh(">"),jh(Wm,">"),Of,Rg):$m=="?"?Cf(sm,Rf(":"),og):Cf(og);if(Hh=="quasi")return kf(nh,Rg);if(Hh!=";"){if(Hh=="(")return Pf(th,")","call",Rg);if(Hh==".")return Cf(Ym,Rg);if(Hh=="[")return Cf(Sh("]"),Sm,Rf("]"),Of,Rg);if(wd&&$m=="as")return Df.marked="keyword",Cf(Wm,Rg);if(Hh=="regexp")return Df.state.lastType=Df.marked="operator",Df.stream.backUp(Df.stream.pos-Df.stream.start-1),Cf(og)}}function nh(Hh,$m){return Hh!="quasi"?kf():$m.slice($m.length-2)!="${"?Cf(nh):Cf(Sm,Lh)}function Lh(Hh){if(Hh=="}")return Df.marked="string-2",Df.state.tokenize=Zd,Cf(nh)}function Ih(Hh){return xf(Df.stream,Df.state),kf(Hh=="{"?yh:sm)}function om(Hh){return xf(Df.stream,Df.state),kf(Hh=="{"?yh:th)}function zh(Hh){return function($m){return $m=="."?Cf(Hh?Nm:Mm):$m=="variable"&&wd?Cf(l_,Hh?Vf:$h):kf(Hh?th:sm)}}function Mm(Hh,$m){if($m=="target")return Df.marked="keyword",Cf($h)}function Nm(Hh,$m){if($m=="target")return Df.marked="keyword",Cf(Vf)}function Zm(Hh){return Hh==":"?Cf(Of,yh):kf($h,Rf(";"),Of)}function Ym(Hh){if(Hh=="variable")return Df.marked="property",Cf()}function jm(Hh,$m){if(Hh=="async")return Df.marked="property",Cf(jm);if(Hh=="variable"||Df.style=="keyword"){if(Df.marked="property",$m=="get"||$m=="set")return Cf(rg);var fg;return wd&&Df.state.fatArrowAt==Df.stream.start&&(fg=Df.stream.match(/^\s*:\s*/,!1))&&(Df.state.fatArrowAt=Df.stream.pos+fg[0].length),Cf(pg)}else{if(Hh=="number"||Hh=="string")return Df.marked=yd?"property":Df.style+" property",Cf(pg);if(Hh=="jsonld-keyword")return Cf(pg);if(wd&&Eh($m))return Df.marked="keyword",Cf(jm);if(Hh=="[")return Cf(sm,Nh,Rf("]"),pg);if(Hh=="spread")return Cf(th,pg);if($m=="*")return Df.marked="keyword",Cf(jm);if(Hh==":")return kf(pg)}}function rg(Hh){return Hh!="variable"?kf(pg):(Df.marked="property",Cf(ih))}function pg(Hh){if(Hh==":")return Cf(th);if(Hh=="(")return kf(ih)}function jh(Hh,$m,fg){function Rg(og,Fg){if(fg?fg.indexOf(og)>-1:og==","){var y_=Df.state.lexical;return y_.info=="call"&&(y_.pos=(y_.pos||0)+1),Cf(function(Y_,s0){return Y_==$m||s0==$m?kf():kf(Hh)},Rg)}return og==$m||Fg==$m?Cf():fg&&fg.indexOf(";")>-1?kf(Hh):Cf(Rf($m))}return function(og,Fg){return og==$m||Fg==$m?Cf():kf(Hh,Rg)}}function Pf(Hh,$m,fg){for(var Rg=3;Rg"),Wm);if(Hh=="quasi")return kf(vg,p_)}function Ag(Hh){if(Hh=="=>")return Cf(Wm)}function sg(Hh){return Hh.match(/[\}\)\]]/)?Cf():Hh==","||Hh==";"?Cf(sg):kf(yg,sg)}function yg(Hh,$m){if(Hh=="variable"||Df.style=="keyword")return Df.marked="property",Cf(yg);if($m=="?"||Hh=="number"||Hh=="string")return Cf(yg);if(Hh==":")return Cf(Wm);if(Hh=="[")return Cf(Rf("variable"),Wh,Rf("]"),yg);if(Hh=="(")return kf(mm,yg);if(!Hh.match(/[;\}\)\],]/))return Cf()}function vg(Hh,$m){return Hh!="quasi"?kf():$m.slice($m.length-2)!="${"?Cf(vg):Cf(Wm,kg)}function kg(Hh){if(Hh=="}")return Df.marked="string-2",Df.state.tokenize=Zd,Cf(vg)}function Kg(Hh,$m){return Hh=="variable"&&Df.stream.match(/^\s*[?:]/,!1)||$m=="?"?Cf(Kg):Hh==":"?Cf(Wm):Hh=="spread"?Cf(Kg):kf(Wm)}function p_(Hh,$m){if($m=="<")return Cf(Sh(">"),jh(Wm,">"),Of,p_);if($m=="|"||Hh=="."||$m=="&")return Cf(Wm);if(Hh=="[")return Cf(Wm,Rf("]"),p_);if($m=="extends"||$m=="implements")return Df.marked="keyword",Cf(Wm);if($m=="?")return Cf(Wm,Rf(":"),Wm)}function l_(Hh,$m){if($m=="<")return Cf(Sh(">"),jh(Wm,">"),Of,p_)}function v_(){return kf(Wm,r_)}function r_(Hh,$m){if($m=="=")return Cf(Wm)}function O_(Hh,$m){return $m=="enum"?(Df.marked="keyword",Cf(Mg)):kf(S_,Nh,R_,P_)}function S_(Hh,$m){if(wd&&Eh($m))return Df.marked="keyword",Cf(S_);if(Hh=="variable")return Ff($m),Cf();if(Hh=="spread")return Cf(S_);if(Hh=="[")return Pf(t0,"]");if(Hh=="{")return Pf(Q_,"}")}function Q_(Hh,$m){return Hh=="variable"&&!Df.stream.match(/^\s*:/,!1)?(Ff($m),Cf(R_)):(Hh=="variable"&&(Df.marked="property"),Hh=="spread"?Cf(S_):Hh=="}"?kf():Hh=="["?Cf(sm,Rf("]"),Rf(":"),Q_):Cf(Rf(":"),S_,R_))}function t0(){return kf(S_,R_)}function R_(Hh,$m){if($m=="=")return Cf(th)}function P_(Hh){if(Hh==",")return Cf(O_)}function Pg(Hh,$m){if(Hh=="keyword b"&&$m=="else")return Cf(Sh("form","else"),yh,Of)}function $0(Hh,$m){if($m=="await")return Cf($0);if(Hh=="(")return Cf(Sh(")"),z0,Of)}function z0(Hh){return Hh=="var"?Cf(O_,c0):Hh=="variable"?Cf(c0):kf(c0)}function c0(Hh,$m){return Hh==")"?Cf():Hh==";"?Cf(c0):$m=="in"||$m=="of"?(Df.marked="keyword",Cf(sm,c0)):kf(sm,c0)}function ih(Hh,$m){if($m=="*")return Df.marked="keyword",Cf(ih);if(Hh=="variable")return Ff($m),Cf(ih);if(Hh=="(")return Cf(rh,Sh(")"),jh(hm,")"),Of,_m,yh,xh);if(wd&&$m=="<")return Cf(Sh(">"),jh(v_,">"),Of,ih)}function mm(Hh,$m){if($m=="*")return Df.marked="keyword",Cf(mm);if(Hh=="variable")return Ff($m),Cf(mm);if(Hh=="(")return Cf(rh,Sh(")"),jh(hm,")"),Of,_m,xh);if(wd&&$m=="<")return Cf(Sh(">"),jh(v_,">"),Of,mm)}function Qh(Hh,$m){if(Hh=="keyword"||Hh=="variable")return Df.marked="type",Cf(Qh);if($m=="<")return Cf(Sh(">"),jh(v_,">"),Of)}function hm(Hh,$m){return $m=="@"&&Cf(sm,hm),Hh=="spread"?Cf(hm):wd&&Eh($m)?(Df.marked="keyword",Cf(hm)):wd&&Hh=="this"?Cf(Nh,R_):kf(S_,Nh,R_)}function Lm(Hh,$m){return Hh=="variable"?Pm(Hh,$m):Vm(Hh,$m)}function Pm(Hh,$m){if(Hh=="variable")return Ff($m),Cf(Vm)}function Vm(Hh,$m){if($m=="<")return Cf(Sh(">"),jh(v_,">"),Of,Vm);if($m=="extends"||$m=="implements"||wd&&Hh==",")return $m=="implements"&&(Df.marked="keyword"),Cf(wd?Wm:sm,Vm);if(Hh=="{")return Cf(Sh("}"),Gm,Of)}function Gm(Hh,$m){if(Hh=="async"||Hh=="variable"&&($m=="static"||$m=="get"||$m=="set"||wd&&Eh($m))&&Df.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return Df.marked="keyword",Cf(Gm);if(Hh=="variable"||Df.style=="keyword")return Df.marked="property",Cf(Tm,Gm);if(Hh=="number"||Hh=="string")return Cf(Tm,Gm);if(Hh=="[")return Cf(sm,Nh,Rf("]"),Tm,Gm);if($m=="*")return Df.marked="keyword",Cf(Gm);if(wd&&Hh=="(")return kf(mm,Gm);if(Hh==";"||Hh==",")return Cf(Gm);if(Hh=="}")return Cf();if($m=="@")return Cf(sm,Gm)}function Tm(Hh,$m){if($m=="!"||$m=="?")return Cf(Tm);if(Hh==":")return Cf(Wm,R_);if($m=="=")return Cf(th);var fg=Df.state.lexical.prev,Rg=fg&&fg.info=="interface";return kf(Rg?mm:ih)}function lg(Hh,$m){return $m=="*"?(Df.marked="keyword",Cf(A_,Rf(";"))):$m=="default"?(Df.marked="keyword",Cf(sm,Rf(";"))):Hh=="{"?Cf(jh(hg,"}"),A_,Rf(";")):kf(yh)}function hg(Hh,$m){if($m=="as")return Df.marked="keyword",Cf(Rf("variable"));if(Hh=="variable")return kf(th,hg)}function zg(Hh){return Hh=="string"?Cf():Hh=="("?kf(sm):Hh=="."?kf($h):kf(Tg,Xg,A_)}function Tg(Hh,$m){return Hh=="{"?Pf(Tg,"}"):(Hh=="variable"&&Ff($m),$m=="*"&&(Df.marked="keyword"),Cf(D_))}function Xg(Hh){if(Hh==",")return Cf(Tg,Xg)}function D_(Hh,$m){if($m=="as")return Df.marked="keyword",Cf(Tg)}function A_(Hh,$m){if($m=="from")return Df.marked="keyword",Cf(sm)}function f_(Hh){return Hh=="]"?Cf():kf(jh(th,"]"))}function Mg(){return kf(Sh("form"),S_,Rf("{"),Sh("}"),jh(V_,"}"),Of,Of)}function V_(){return kf(S_,R_)}function g_(Hh,$m){return Hh.lastType=="operator"||Hh.lastType==","||Ud.test($m.charAt(0))||/[,.]/.test($m.charAt(0))}function s_(Hh,$m,fg){return $m.tokenize==Wd&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test($m.lastType)||$m.lastType=="quasi"&&/\{\s*$/.test(Hh.string.slice(0,Hh.pos-(fg||0)))}return{startState:function(Hh){var $m={tokenize:Wd,lastType:"sof",cc:[],lexical:new vf((Hh||0)-md,0,"block",!1),localVars:hd.localVars,context:hd.localVars&&new _h(null,null,!1),indented:Hh||0};return hd.globalVars&&typeof hd.globalVars=="object"&&($m.globalVars=hd.globalVars),$m},token:function(Hh,$m){if(Hh.sol()&&($m.lexical.hasOwnProperty("align")||($m.lexical.align=!1),$m.indented=Hh.indentation(),xf(Hh,$m)),$m.tokenize!=Jd&&Hh.eatSpace())return null;var fg=$m.tokenize(Hh,$m);return Yd=="comment"?fg:($m.lastType=Yd=="operator"&&(zd=="++"||zd=="--")?"incdec":Yd,Af($m,fg,Yd,zd,Hh))},indent:function(Hh,$m){if(Hh.tokenize==Jd||Hh.tokenize==Zd)return ud.Pass;if(Hh.tokenize!=Wd)return 0;var fg=$m&&$m.charAt(0),Rg=Hh.lexical,og;if(!/^\s*else\b/.test($m))for(var Fg=Hh.cc.length-1;Fg>=0;--Fg){var y_=Hh.cc[Fg];if(y_==Of)Rg=Rg.prev;else if(y_!=Pg&&y_!=xh)break}for(;(Rg.type=="stat"||Rg.type=="form")&&(fg=="}"||(og=Hh.cc[Hh.cc.length-1])&&(og==$h||og==Vf)&&!/^[,\.=+\-*:?[\(]/.test($m));)Rg=Rg.prev;gd&&Rg.type==")"&&Rg.prev.type=="stat"&&(Rg=Rg.prev);var Y_=Rg.type,s0=fg==Y_;return Y_=="vardef"?Rg.indented+(Hh.lastType=="operator"||Hh.lastType==","?Rg.info.length+1:0):Y_=="form"&&fg=="{"?Rg.indented:Y_=="form"?Rg.indented+md:Y_=="stat"?Rg.indented+(g_(Hh,$m)?gd||md:0):Rg.info=="switch"&&!s0&&hd.doubleIndentSwitch!=!1?Rg.indented+(/^(?:case|default)\b/.test($m)?md:2*md):Rg.align?Rg.column+(s0?0:1):Rg.indented+(s0?0:md)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:vd?null:"/*",blockCommentEnd:vd?null:"*/",blockCommentContinue:vd?null:" * ",lineComment:vd?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:vd?"json":"javascript",jsonldMode:yd,jsonMode:vd,expressionAllowed:s_,skipExpression:function(Hh){Af(Hh,"atom","atom","true",new ud.StringStream("",2,null))}}}),ud.registerHelper("wordChars","javascript",/[\w$]/),ud.defineMIME("text/javascript","javascript"),ud.defineMIME("text/ecmascript","javascript"),ud.defineMIME("application/javascript","javascript"),ud.defineMIME("application/x-javascript","javascript"),ud.defineMIME("application/ecmascript","javascript"),ud.defineMIME("application/json",{name:"javascript",json:!0}),ud.defineMIME("application/x-json",{name:"javascript",json:!0}),ud.defineMIME("application/manifest+json",{name:"javascript",json:!0}),ud.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),ud.defineMIME("text/typescript",{name:"javascript",typescript:!0}),ud.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var xml={exports:{}},hasRequiredXml;function requireXml(){return hasRequiredXml||(hasRequiredXml=1,function(Ra,ed){(function(ud){ud(requireCodemirror())})(function(ud){var dd={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},hd={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ud.defineMode("xml",function(md,gd){var yd=md.indentUnit,vd={},Cd=gd.htmlMode?dd:hd;for(var wd in Cd)vd[wd]=Cd[wd];for(var wd in gd)vd[wd]=gd[wd];var Nd,Ld;function Ud(Cf,If){function Ff(_h){return If.tokenize=_h,_h(Cf,If)}var oh=Cf.next();if(oh=="<")return Cf.eat("!")?Cf.eat("[")?Cf.match("CDATA[")?Ff(Yd("atom","]]>")):null:Cf.match("--")?Ff(Yd("comment","-->")):Cf.match("DOCTYPE",!0,!0)?(Cf.eatWhile(/[\w\._\-]/),Ff(zd(1))):null:Cf.eat("?")?(Cf.eatWhile(/[\w\._\-]/),If.tokenize=Yd("meta","?>"),"meta"):(Nd=Cf.eat("/")?"closeTag":"openTag",If.tokenize=jd,"tag bracket");if(oh=="&"){var Eh;return Cf.eat("#")?Cf.eat("x")?Eh=Cf.eatWhile(/[a-fA-F\d]/)&&Cf.eat(";"):Eh=Cf.eatWhile(/[\d]/)&&Cf.eat(";"):Eh=Cf.eatWhile(/[\w\.\-:]/)&&Cf.eat(";"),Eh?"atom":"error"}else return Cf.eatWhile(/[^&<]/),null}Ud.isInText=!0;function jd(Cf,If){var Ff=Cf.next();if(Ff==">"||Ff=="/"&&Cf.eat(">"))return If.tokenize=Ud,Nd=Ff==">"?"endTag":"selfcloseTag","tag bracket";if(Ff=="=")return Nd="equals",null;if(Ff=="<"){If.tokenize=Ud,If.state=Zd,If.tagName=If.tagStart=null;var oh=If.tokenize(Cf,If);return oh?oh+" tag error":"tag error"}else return/[\'\"]/.test(Ff)?(If.tokenize=Gd(Ff),If.stringStartCol=Cf.column(),If.tokenize(Cf,If)):(Cf.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Gd(Cf){var If=function(Ff,oh){for(;!Ff.eol();)if(Ff.next()==Cf){oh.tokenize=jd;break}return"string"};return If.isInAttribute=!0,If}function Yd(Cf,If){return function(Ff,oh){for(;!Ff.eol();){if(Ff.match(If)){oh.tokenize=Ud;break}Ff.next()}return Cf}}function zd(Cf){return function(If,Ff){for(var oh;(oh=If.next())!=null;){if(oh=="<")return Ff.tokenize=zd(Cf+1),Ff.tokenize(If,Ff);if(oh==">")if(Cf==1){Ff.tokenize=Ud;break}else return Ff.tokenize=zd(Cf-1),Ff.tokenize(If,Ff)}return"meta"}}function qd(Cf){return Cf&&Cf.toLowerCase()}function Wd(Cf,If,Ff){this.prev=Cf.context,this.tagName=If||"",this.indent=Cf.indented,this.startOfLine=Ff,(vd.doNotIndent.hasOwnProperty(If)||Cf.context&&Cf.context.noIndent)&&(this.noIndent=!0)}function Xd(Cf){Cf.context&&(Cf.context=Cf.context.prev)}function Jd(Cf,If){for(var Ff;;){if(!Cf.context||(Ff=Cf.context.tagName,!vd.contextGrabbers.hasOwnProperty(qd(Ff))||!vd.contextGrabbers[qd(Ff)].hasOwnProperty(qd(If))))return;Xd(Cf)}}function Zd(Cf,If,Ff){return Cf=="openTag"?(Ff.tagStart=If.column(),mf):Cf=="closeTag"?xf:Zd}function mf(Cf,If,Ff){return Cf=="word"?(Ff.tagName=If.current(),Ld="tag",gf):vd.allowMissingTagName&&Cf=="endTag"?(Ld="tag bracket",gf(Cf,If,Ff)):(Ld="error",mf)}function xf(Cf,If,Ff){if(Cf=="word"){var oh=If.current();return Ff.context&&Ff.context.tagName!=oh&&vd.implicitlyClosed.hasOwnProperty(qd(Ff.context.tagName))&&Xd(Ff),Ff.context&&Ff.context.tagName==oh||vd.matchClosing===!1?(Ld="tag",_f):(Ld="tag error",vf)}else return vd.allowMissingTagName&&Cf=="endTag"?(Ld="tag bracket",_f(Cf,If,Ff)):(Ld="error",vf)}function _f(Cf,If,Ff){return Cf!="endTag"?(Ld="error",_f):(Xd(Ff),Zd)}function vf(Cf,If,Ff){return Ld="error",_f(Cf,If,Ff)}function gf(Cf,If,Ff){if(Cf=="word")return Ld="attribute",Af;if(Cf=="endTag"||Cf=="selfcloseTag"){var oh=Ff.tagName,Eh=Ff.tagStart;return Ff.tagName=Ff.tagStart=null,Cf=="selfcloseTag"||vd.autoSelfClosers.hasOwnProperty(qd(oh))?Jd(Ff,oh):(Jd(Ff,oh),Ff.context=new Wd(Ff,oh,Eh==Ff.indented)),Zd}return Ld="error",gf}function Af(Cf,If,Ff){return Cf=="equals"?Df:(vd.allowMissing||(Ld="error"),gf(Cf,If,Ff))}function Df(Cf,If,Ff){return Cf=="string"?kf:Cf=="word"&&vd.allowUnquoted?(Ld="string",gf):(Ld="error",gf(Cf,If,Ff))}function kf(Cf,If,Ff){return Cf=="string"?kf:gf(Cf,If,Ff)}return{startState:function(Cf){var If={tokenize:Ud,state:Zd,indented:Cf||0,tagName:null,tagStart:null,context:null};return Cf!=null&&(If.baseIndent=Cf),If},token:function(Cf,If){if(!If.tagName&&Cf.sol()&&(If.indented=Cf.indentation()),Cf.eatSpace())return null;Nd=null;var Ff=If.tokenize(Cf,If);return(Ff||Nd)&&Ff!="comment"&&(Ld=null,If.state=If.state(Nd||Ff,Cf,If),Ld&&(Ff=Ld=="error"?Ff+" error":Ld)),Ff},indent:function(Cf,If,Ff){var oh=Cf.context;if(Cf.tokenize.isInAttribute)return Cf.tagStart==Cf.indented?Cf.stringStartCol+1:Cf.indented+yd;if(oh&&oh.noIndent)return ud.Pass;if(Cf.tokenize!=jd&&Cf.tokenize!=Ud)return Ff?Ff.match(/^(\s*)/)[0].length:0;if(Cf.tagName)return vd.multilineTagIndentPastTag!==!1?Cf.tagStart+Cf.tagName.length+2:Cf.tagStart+yd*(vd.multilineTagIndentFactor||1);if(vd.alignCDATA&&/$/,blockCommentStart:"",configuration:vd.htmlMode?"html":"xml",helperType:vd.htmlMode?"html":"xml",skipAttribute:function(Cf){Cf.state==Df&&(Cf.state=gf)},xmlCurrentTag:function(Cf){return Cf.tagName?{name:Cf.tagName,close:Cf.type=="closeTag"}:null},xmlCurrentContext:function(Cf){for(var If=[],Ff=Cf.context;Ff;Ff=Ff.prev)If.push(Ff.tagName);return If.reverse()}}}),ud.defineMIME("text/xml","xml"),ud.defineMIME("application/xml","xml"),ud.mimeModes.hasOwnProperty("text/html")||ud.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),xml.exports}var meta={exports:{}},hasRequiredMeta;function requireMeta(){return hasRequiredMeta||(hasRequiredMeta=1,function(Ra,ed){(function(ud){ud(requireCodemirror())})(function(ud){ud.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var dd=0;dd-1&&md.substring(vd+1,md.length);if(Cd)return ud.findModeByExtension(Cd)},ud.findModeByName=function(md){md=md.toLowerCase();for(var gd=0;gd` "'(~:]+/,Yd=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,zd=/^\s*\[[^\]]+?\]:.*$/,qd=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,Wd=" ";function Xd(lh,rh,mh){return rh.f=rh.inline=mh,mh(lh,rh)}function Jd(lh,rh,mh){return rh.f=rh.block=mh,mh(lh,rh)}function Zd(lh){return!lh||!/\S/.test(lh.string)}function mf(lh){if(lh.linkTitle=!1,lh.linkHref=!1,lh.linkText=!1,lh.em=!1,lh.strong=!1,lh.strikethrough=!1,lh.quote=0,lh.indentedCode=!1,lh.f==_f){var rh=gd;if(!rh){var mh=ud.innerMode(md,lh.htmlState);rh=mh.mode.name=="xml"&&mh.state.tagStart===null&&!mh.state.context&&mh.state.tokenize.isInText}rh&&(lh.f=Df,lh.block=xf,lh.htmlState=null)}return lh.trailingSpace=0,lh.trailingSpaceNewLine=!1,lh.prevLine=lh.thisLine,lh.thisLine={stream:null},null}function xf(lh,rh){var mh=lh.column()===rh.indentation,xh=Zd(rh.prevLine.stream),Sh=rh.indentedCode,Of=rh.prevLine.hr,Rf=rh.list!==!1,yh=(rh.listStack[rh.listStack.length-1]||0)+3;rh.indentedCode=!1;var Ph=rh.indentation;if(rh.indentationDiff===null&&(rh.indentationDiff=rh.indentation,Rf)){for(rh.list=null;Ph=4&&(Sh||rh.prevLine.fencedCodeEnd||rh.prevLine.header||xh))return lh.skipToEnd(),rh.indentedCode=!0,vd.code;if(lh.eatSpace())return null;if(mh&&rh.indentation<=yh&&(sh=lh.match(Ud))&&sh[1].length<=6)return rh.quote=0,rh.header=sh[1].length,rh.thisLine.header=!0,hd.highlightFormatting&&(rh.formatting="header"),rh.f=rh.inline,gf(rh);if(rh.indentation<=yh&&lh.eat(">"))return rh.quote=mh?1:rh.quote+1,hd.highlightFormatting&&(rh.formatting="quote"),lh.eatSpace(),gf(rh);if(!th&&!rh.setext&&mh&&rh.indentation<=yh&&(sh=lh.match(Nd))){var Zh=sh[1]?"ol":"ul";return rh.indentation=Ph+lh.current().length,rh.list=!0,rh.quote=0,rh.listStack.push(rh.indentation),rh.em=!1,rh.strong=!1,rh.code=!1,rh.strikethrough=!1,hd.taskLists&&lh.match(Ld,!1)&&(rh.taskList=!0),rh.f=rh.inline,hd.highlightFormatting&&(rh.formatting=["list","list-"+Zh]),gf(rh)}else{if(mh&&rh.indentation<=yh&&(sh=lh.match(Yd,!0)))return rh.quote=0,rh.fencedEndRE=new RegExp(sh[1]+"+ *$"),rh.localMode=hd.fencedCodeBlockHighlighting&&yd(sh[2]||hd.fencedCodeBlockDefaultMode),rh.localMode&&(rh.localState=ud.startState(rh.localMode)),rh.f=rh.block=vf,hd.highlightFormatting&&(rh.formatting="code-block"),rh.code=-1,gf(rh);if(rh.setext||(!sm||!Rf)&&!rh.quote&&rh.list===!1&&!rh.code&&!th&&!zd.test(lh.string)&&(sh=lh.lookAhead(1))&&(sh=sh.match(jd)))return rh.setext?(rh.header=rh.setext,rh.setext=0,lh.skipToEnd(),hd.highlightFormatting&&(rh.formatting="header")):(rh.header=sh[0].charAt(0)=="="?1:2,rh.setext=rh.header),rh.thisLine.header=!0,rh.f=rh.inline,gf(rh);if(th)return lh.skipToEnd(),rh.hr=!0,rh.thisLine.hr=!0,vd.hr;if(lh.peek()==="[")return Xd(lh,rh,oh)}return Xd(lh,rh,rh.inline)}function _f(lh,rh){var mh=md.token(lh,rh.htmlState);if(!gd){var xh=ud.innerMode(md,rh.htmlState);(xh.mode.name=="xml"&&xh.state.tagStart===null&&!xh.state.context&&xh.state.tokenize.isInText||rh.md_inside&&lh.current().indexOf(">")>-1)&&(rh.f=Df,rh.block=xf,rh.htmlState=null)}return mh}function vf(lh,rh){var mh=rh.listStack[rh.listStack.length-1]||0,xh=rh.indentation=lh.quote?rh.push(vd.formatting+"-"+lh.formatting[mh]+"-"+lh.quote):rh.push("error"))}if(lh.taskOpen)return rh.push("meta"),rh.length?rh.join(" "):null;if(lh.taskClosed)return rh.push("property"),rh.length?rh.join(" "):null;if(lh.linkHref?rh.push(vd.linkHref,"url"):(lh.strong&&rh.push(vd.strong),lh.em&&rh.push(vd.em),lh.strikethrough&&rh.push(vd.strikethrough),lh.emoji&&rh.push(vd.emoji),lh.linkText&&rh.push(vd.linkText),lh.code&&rh.push(vd.code),lh.image&&rh.push(vd.image),lh.imageAltText&&rh.push(vd.imageAltText,"link"),lh.imageMarker&&rh.push(vd.imageMarker)),lh.header&&rh.push(vd.header,vd.header+"-"+lh.header),lh.quote&&(rh.push(vd.quote),!hd.maxBlockquoteDepth||hd.maxBlockquoteDepth>=lh.quote?rh.push(vd.quote+"-"+lh.quote):rh.push(vd.quote+"-"+hd.maxBlockquoteDepth)),lh.list!==!1){var xh=(lh.listStack.length-1)%3;xh?xh===1?rh.push(vd.list2):rh.push(vd.list3):rh.push(vd.list1)}return lh.trailingSpaceNewLine?rh.push("trailing-space-new-line"):lh.trailingSpace&&rh.push("trailing-space-"+(lh.trailingSpace%2?"a":"b")),rh.length?rh.join(" "):null}function Af(lh,rh){if(lh.match(Gd,!0))return gf(rh)}function Df(lh,rh){var mh=rh.text(lh,rh);if(typeof mh<"u")return mh;if(rh.list)return rh.list=null,gf(rh);if(rh.taskList){var xh=lh.match(Ld,!0)[1]===" ";return xh?rh.taskOpen=!0:rh.taskClosed=!0,hd.highlightFormatting&&(rh.formatting="task"),rh.taskList=!1,gf(rh)}if(rh.taskOpen=!1,rh.taskClosed=!1,rh.header&&lh.match(/^#+$/,!0))return hd.highlightFormatting&&(rh.formatting="header"),gf(rh);var Sh=lh.next();if(rh.linkTitle){rh.linkTitle=!1;var Of=Sh;Sh==="("&&(Of=")"),Of=(Of+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Rf="^\\s*(?:[^"+Of+"\\\\]+|\\\\\\\\|\\\\.)"+Of;if(lh.match(new RegExp(Rf),!0))return vd.linkHref}if(Sh==="`"){var yh=rh.formatting;hd.highlightFormatting&&(rh.formatting="code"),lh.eatWhile("`");var Ph=lh.current().length;if(rh.code==0&&(!rh.quote||Ph==1))return rh.code=Ph,gf(rh);if(Ph==rh.code){var sm=gf(rh);return rh.code=0,sm}else return rh.formatting=yh,gf(rh)}else if(rh.code)return gf(rh);if(Sh==="\\"&&(lh.next(),hd.highlightFormatting)){var th=gf(rh),sh=vd.formatting+"-escape";return th?th+" "+sh:sh}if(Sh==="!"&&lh.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return rh.imageMarker=!0,rh.image=!0,hd.highlightFormatting&&(rh.formatting="image"),gf(rh);if(Sh==="["&&rh.imageMarker&&lh.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return rh.imageMarker=!1,rh.imageAltText=!0,hd.highlightFormatting&&(rh.formatting="image"),gf(rh);if(Sh==="]"&&rh.imageAltText){hd.highlightFormatting&&(rh.formatting="image");var th=gf(rh);return rh.imageAltText=!1,rh.image=!1,rh.inline=rh.f=Cf,th}if(Sh==="["&&!rh.image)return rh.linkText&&lh.match(/^.*?\]/)||(rh.linkText=!0,hd.highlightFormatting&&(rh.formatting="link")),gf(rh);if(Sh==="]"&&rh.linkText){hd.highlightFormatting&&(rh.formatting="link");var th=gf(rh);return rh.linkText=!1,rh.inline=rh.f=lh.match(/\(.*?\)| ?\[.*?\]/,!1)?Cf:Df,th}if(Sh==="<"&&lh.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){rh.f=rh.inline=kf,hd.highlightFormatting&&(rh.formatting="link");var th=gf(rh);return th?th+=" ":th="",th+vd.linkInline}if(Sh==="<"&&lh.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){rh.f=rh.inline=kf,hd.highlightFormatting&&(rh.formatting="link");var th=gf(rh);return th?th+=" ":th="",th+vd.linkEmail}if(hd.xml&&Sh==="<"&&lh.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Zh=lh.string.indexOf(">",lh.pos);if(Zh!=-1){var Sm=lh.string.substring(lh.start,Zh);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Sm)&&(rh.md_inside=!0)}return lh.backUp(1),rh.htmlState=ud.startState(md),Jd(lh,rh,_f)}if(hd.xml&&Sh==="<"&&lh.match(/^\/\w*?>/))return rh.md_inside=!1,"tag";if(Sh==="*"||Sh==="_"){for(var $h=1,Vf=lh.pos==1?" ":lh.string.charAt(lh.pos-2);$h<3&&lh.eat(Sh);)$h++;var nh=lh.peek()||" ",Lh=!/\s/.test(nh)&&(!qd.test(nh)||/\s/.test(Vf)||qd.test(Vf)),Ih=!/\s/.test(Vf)&&(!qd.test(Vf)||/\s/.test(nh)||qd.test(nh)),om=null,zh=null;if($h%2&&(!rh.em&&Lh&&(Sh==="*"||!Ih||qd.test(Vf))?om=!0:rh.em==Sh&&Ih&&(Sh==="*"||!Lh||qd.test(nh))&&(om=!1)),$h>1&&(!rh.strong&&Lh&&(Sh==="*"||!Ih||qd.test(Vf))?zh=!0:rh.strong==Sh&&Ih&&(Sh==="*"||!Lh||qd.test(nh))&&(zh=!1)),zh!=null||om!=null){hd.highlightFormatting&&(rh.formatting=om==null?"strong":zh==null?"em":"strong em"),om===!0&&(rh.em=Sh),zh===!0&&(rh.strong=Sh);var sm=gf(rh);return om===!1&&(rh.em=!1),zh===!1&&(rh.strong=!1),sm}}else if(Sh===" "&&(lh.eat("*")||lh.eat("_"))){if(lh.peek()===" ")return gf(rh);lh.backUp(1)}if(hd.strikethrough){if(Sh==="~"&&lh.eatWhile(Sh)){if(rh.strikethrough){hd.highlightFormatting&&(rh.formatting="strikethrough");var sm=gf(rh);return rh.strikethrough=!1,sm}else if(lh.match(/^[^\s]/,!1))return rh.strikethrough=!0,hd.highlightFormatting&&(rh.formatting="strikethrough"),gf(rh)}else if(Sh===" "&&lh.match("~~",!0)){if(lh.peek()===" ")return gf(rh);lh.backUp(2)}}if(hd.emoji&&Sh===":"&&lh.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){rh.emoji=!0,hd.highlightFormatting&&(rh.formatting="emoji");var Mm=gf(rh);return rh.emoji=!1,Mm}return Sh===" "&&(lh.match(/^ +$/,!1)?rh.trailingSpace++:rh.trailingSpace&&(rh.trailingSpaceNewLine=!0)),gf(rh)}function kf(lh,rh){var mh=lh.next();if(mh===">"){rh.f=rh.inline=Df,hd.highlightFormatting&&(rh.formatting="link");var xh=gf(rh);return xh?xh+=" ":xh="",xh+vd.linkInline}return lh.match(/^[^>]+/,!0),vd.linkInline}function Cf(lh,rh){if(lh.eatSpace())return null;var mh=lh.next();return mh==="("||mh==="["?(rh.f=rh.inline=Ff(mh==="("?")":"]"),hd.highlightFormatting&&(rh.formatting="link-string"),rh.linkHref=!0,gf(rh)):"error"}var If={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Ff(lh){return function(rh,mh){var xh=rh.next();if(xh===lh){mh.f=mh.inline=Df,hd.highlightFormatting&&(mh.formatting="link-string");var Sh=gf(mh);return mh.linkHref=!1,Sh}return rh.match(If[lh]),mh.linkHref=!0,gf(mh)}}function oh(lh,rh){return lh.match(/^([^\]\\]|\\.)*\]:/,!1)?(rh.f=Eh,lh.next(),hd.highlightFormatting&&(rh.formatting="link"),rh.linkText=!0,gf(rh)):Xd(lh,rh,Df)}function Eh(lh,rh){if(lh.match("]:",!0)){rh.f=rh.inline=_h,hd.highlightFormatting&&(rh.formatting="link");var mh=gf(rh);return rh.linkText=!1,mh}return lh.match(/^([^\]\\]|\\.)+/,!0),vd.linkText}function _h(lh,rh){return lh.eatSpace()?null:(lh.match(/^[^\s]+/,!0),lh.peek()===void 0?rh.linkTitle=!0:lh.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),rh.f=rh.inline=Df,vd.linkHref+" url")}var Mh={startState:function(){return{f:xf,prevLine:{stream:null},thisLine:{stream:null},block:xf,htmlState:null,indentation:0,inline:Df,text:Af,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(lh){return{f:lh.f,prevLine:lh.prevLine,thisLine:lh.thisLine,block:lh.block,htmlState:lh.htmlState&&ud.copyState(md,lh.htmlState),indentation:lh.indentation,localMode:lh.localMode,localState:lh.localMode?ud.copyState(lh.localMode,lh.localState):null,inline:lh.inline,text:lh.text,formatting:!1,linkText:lh.linkText,linkTitle:lh.linkTitle,linkHref:lh.linkHref,code:lh.code,em:lh.em,strong:lh.strong,strikethrough:lh.strikethrough,emoji:lh.emoji,header:lh.header,setext:lh.setext,hr:lh.hr,taskList:lh.taskList,list:lh.list,listStack:lh.listStack.slice(0),quote:lh.quote,indentedCode:lh.indentedCode,trailingSpace:lh.trailingSpace,trailingSpaceNewLine:lh.trailingSpaceNewLine,md_inside:lh.md_inside,fencedEndRE:lh.fencedEndRE}},token:function(lh,rh){if(rh.formatting=!1,lh!=rh.thisLine.stream){if(rh.header=0,rh.hr=!1,lh.match(/^\s*$/,!0))return mf(rh),null;if(rh.prevLine=rh.thisLine,rh.thisLine={stream:lh},rh.taskList=!1,rh.trailingSpace=0,rh.trailingSpaceNewLine=!1,!rh.localState&&(rh.f=rh.block,rh.f!=_f)){var mh=lh.match(/^\s*/,!0)[0].replace(/\t/g,Wd).length;if(rh.indentation=mh,rh.indentationDiff=null,mh>0)return null}}return rh.f(lh,rh)},innerMode:function(lh){return lh.block==_f?{state:lh.htmlState,mode:md}:lh.localState?{state:lh.localState,mode:lh.localMode}:{state:lh,mode:Mh}},indent:function(lh,rh,mh){return lh.block==_f&&md.indent?md.indent(lh.htmlState,rh,mh):lh.localState&&lh.localMode.indent?lh.localMode.indent(lh.localState,rh,mh):ud.Pass},blankLine:mf,getType:gf,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Mh},"xml"),ud.defineMIME("text/markdown","markdown"),ud.defineMIME("text/x-markdown","markdown")})})();(function(Ra,ed){(function(ud){ud(requireCodemirror())})(function(ud){var dd={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},hd=ud.Pos;ud.defineOption("autoCloseBrackets",!1,function(zd,qd,Wd){Wd&&Wd!=ud.Init&&(zd.removeKeyMap(gd),zd.state.closeBrackets=null),qd&&(yd(md(qd,"pairs")),zd.state.closeBrackets=qd,zd.addKeyMap(gd))});function md(zd,qd){return qd=="pairs"&&typeof zd=="string"?zd:typeof zd=="object"&&zd[qd]!=null?zd[qd]:dd[qd]}var gd={Backspace:wd,Enter:Nd};function yd(zd){for(var qd=0;qd=0;Jd--){var mf=Xd[Jd].head;zd.replaceRange("",hd(mf.line,mf.ch-1),hd(mf.line,mf.ch+1),"+delete")}}function Nd(zd){var qd=Cd(zd),Wd=qd&&md(qd,"explode");if(!Wd||zd.getOption("disableInput"))return ud.Pass;for(var Xd=zd.listSelections(),Jd=0;Jd0?{line:mf.head.line,ch:mf.head.ch+qd}:{line:mf.head.line-1};Wd.push({anchor:xf,head:xf})}zd.setSelections(Wd,Jd)}function Ud(zd){var qd=ud.cmpPos(zd.anchor,zd.head)>0;return{anchor:new hd(zd.anchor.line,zd.anchor.ch+(qd?-1:1)),head:new hd(zd.head.line,zd.head.ch+(qd?1:-1))}}function jd(zd,qd){var Wd=Cd(zd);if(!Wd||zd.getOption("disableInput"))return ud.Pass;var Xd=md(Wd,"pairs"),Jd=Xd.indexOf(qd);if(Jd==-1)return ud.Pass;for(var Zd=md(Wd,"closeBefore"),mf=md(Wd,"triples"),xf=Xd.charAt(Jd+1)==qd,_f=zd.listSelections(),vf=Jd%2==0,gf,Af=0;Af<_f.length;Af++){var Df=_f[Af],kf=Df.head,Cf,If=zd.getRange(kf,hd(kf.line,kf.ch+1));if(vf&&!Df.empty())Cf="surround";else if((xf||!vf)&&If==qd)xf&&Yd(zd,kf)?Cf="both":mf.indexOf(qd)>=0&&zd.getRange(kf,hd(kf.line,kf.ch+3))==qd+qd+qd?Cf="skipThree":Cf="skip";else if(xf&&kf.ch>1&&mf.indexOf(qd)>=0&&zd.getRange(hd(kf.line,kf.ch-2),kf)==qd+qd){if(kf.ch>2&&/\bstring/.test(zd.getTokenTypeAt(hd(kf.line,kf.ch-2))))return ud.Pass;Cf="addFour"}else if(xf){var Ff=kf.ch==0?" ":zd.getRange(hd(kf.line,kf.ch-1),kf);if(!ud.isWordChar(If)&&Ff!=qd&&!ud.isWordChar(Ff))Cf="both";else return ud.Pass}else if(vf&&(If.length===0||/\s/.test(If)||Zd.indexOf(If)>-1))Cf="both";else return ud.Pass;if(!gf)gf=Cf;else if(gf!=Cf)return ud.Pass}var oh=Jd%2?Xd.charAt(Jd-1):qd,Eh=Jd%2?qd:Xd.charAt(Jd+1);zd.operation(function(){if(gf=="skip")Ld(zd,1);else if(gf=="skipThree")Ld(zd,3);else if(gf=="surround"){for(var _h=zd.getSelections(),Mh=0;Mh<_h.length;Mh++)_h[Mh]=oh+_h[Mh]+Eh;zd.replaceSelections(_h,"around"),_h=zd.listSelections().slice();for(var Mh=0;Mh<_h.length;Mh++)_h[Mh]=Ud(_h[Mh]);zd.setSelections(_h)}else gf=="both"?(zd.replaceSelection(oh+Eh,null),zd.triggerElectric(oh+Eh),Ld(zd,-1)):gf=="addFour"&&(zd.replaceSelection(oh+oh+oh+oh,"before"),Ld(zd,1))})}function Gd(zd,qd){var Wd=zd.getRange(hd(qd.line,qd.ch-1),hd(qd.line,qd.ch+1));return Wd.length==2?Wd:null}function Yd(zd,qd){var Wd=zd.getTokenAt(hd(qd.line,qd.ch+1));return/\bstring/.test(Wd.type)&&Wd.start==qd.ch&&(qd.ch==0||!/\bstring/.test(zd.getTokenTypeAt(qd)))}})})();(function(Ra,ed){(function(ud){ud(requireCodemirror())})(function(ud){var dd=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),hd=ud.Pos,md={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function gd(Ld){return Ld&&Ld.bracketRegex||/[(){}[\]]/}function yd(Ld,Ud,jd){var Gd=Ld.getLineHandle(Ud.line),Yd=Ud.ch-1,zd=jd&&jd.afterCursor;zd==null&&(zd=/(^| )cm-fat-cursor($| )/.test(Ld.getWrapperElement().className));var qd=gd(jd),Wd=!zd&&Yd>=0&&qd.test(Gd.text.charAt(Yd))&&md[Gd.text.charAt(Yd)]||qd.test(Gd.text.charAt(Yd+1))&&md[Gd.text.charAt(++Yd)];if(!Wd)return null;var Xd=Wd.charAt(1)==">"?1:-1;if(jd&&jd.strict&&Xd>0!=(Yd==Ud.ch))return null;var Jd=Ld.getTokenTypeAt(hd(Ud.line,Yd+1)),Zd=vd(Ld,hd(Ud.line,Yd+(Xd>0?1:0)),Xd,Jd,jd);return Zd==null?null:{from:hd(Ud.line,Yd),to:Zd&&Zd.pos,match:Zd&&Zd.ch==Wd.charAt(0),forward:Xd>0}}function vd(Ld,Ud,jd,Gd,Yd){for(var zd=Yd&&Yd.maxScanLineLength||1e4,qd=Yd&&Yd.maxScanLines||1e3,Wd=[],Xd=gd(Yd),Jd=jd>0?Math.min(Ud.line+qd,Ld.lastLine()+1):Math.max(Ld.firstLine()-1,Ud.line-qd),Zd=Ud.line;Zd!=Jd;Zd+=jd){var mf=Ld.getLine(Zd);if(mf){var xf=jd>0?0:mf.length-1,_f=jd>0?mf.length:-1;if(!(mf.length>zd))for(Zd==Ud.line&&(xf=Ud.ch-(jd<0?1:0));xf!=_f;xf+=jd){var vf=mf.charAt(xf);if(Xd.test(vf)&&(Gd===void 0||(Ld.getTokenTypeAt(hd(Zd,xf+1))||"")==(Gd||""))){var gf=md[vf];if(gf&&gf.charAt(1)==">"==jd>0)Wd.push(vf);else if(Wd.length)Wd.pop();else return{pos:hd(Zd,xf),ch:vf}}}}}return Zd-jd==(jd>0?Ld.lastLine():Ld.firstLine())?!1:null}function Cd(Ld,Ud,jd){for(var Gd=Ld.state.matchBrackets.maxHighlightLineLength||1e3,Yd=jd&&jd.highlightNonMatching,zd=[],qd=Ld.listSelections(),Wd=0;Wd1)){if(this.somethingSelected()){if(!zd.hint.supportsSelection)return;for(var Wd=0;Wdmf.clientHeight+1:!1,yh;setTimeout(function(){yh=Xd.getScrollInfo()});var Ph=Of.bottom-Sh;if(Ph>0){var sm=Of.bottom-Of.top,th=Of.top-(Cf.bottom-Cf.top)-2;Sh-Of.topth&&(mf.style.height=(sm=th)+"px"),mf.style.top=(Ff=Cf.top-sm)+_h+"px",oh=!1):mf.style.height=Sh-Of.top-2+"px"}var sh=Of.right-xh;if(Rf&&(sh+=Xd.display.nativeBarWidth),sh>0&&(Of.right-Of.left>xh&&(mf.style.width=xh-5+"px",sh-=Of.right-Of.left-xh),mf.style.left=(If=Math.max(Cf.left-sh-Eh,0))+"px"),Rf)for(var Zh=mf.firstChild;Zh;Zh=Zh.nextSibling)Zh.style.paddingRight=Xd.display.nativeBarWidth+"px";if(Xd.addKeyMap(this.keyMap=wd(zd,{moveFocus:function(Vf,nh){Wd.changeActive(Wd.selectedHint+Vf,nh)},setFocus:function(Vf){Wd.changeActive(Vf)},menuSize:function(){return Wd.screenAmount()},length:_f.length,close:function(){zd.close()},pick:function(){Wd.pick()},data:qd})),zd.options.closeOnUnfocus){var Sm;Xd.on("blur",this.onBlur=function(){Sm=setTimeout(function(){zd.close()},100)}),Xd.on("focus",this.onFocus=function(){clearTimeout(Sm)})}Xd.on("scroll",this.onScroll=function(){var Vf=Xd.getScrollInfo(),nh=Xd.getWrapperElement().getBoundingClientRect();yh||(yh=Xd.getScrollInfo());var Lh=Ff+yh.top-Vf.top,Ih=Lh-(Zd.pageYOffset||(Jd.documentElement||Jd.body).scrollTop);if(oh||(Ih+=mf.offsetHeight),Ih<=nh.top||Ih>=nh.bottom)return zd.close();mf.style.top=Lh+"px",mf.style.left=If+yh.left-Vf.left+"px"}),ud.on(mf,"dblclick",function(Vf){var nh=Nd(mf,Vf.target||Vf.srcElement);nh&&nh.hintId!=null&&(Wd.changeActive(nh.hintId),Wd.pick())}),ud.on(mf,"click",function(Vf){var nh=Nd(mf,Vf.target||Vf.srcElement);nh&&nh.hintId!=null&&(Wd.changeActive(nh.hintId),zd.options.completeOnSingleClick&&Wd.pick())}),ud.on(mf,"mousedown",function(){setTimeout(function(){Xd.focus()},20)});var $h=this.getSelectedHintRange();return($h.from!==0||$h.to!==0)&&this.scrollToActive(),ud.signal(qd,"select",_f[this.selectedHint],mf.childNodes[this.selectedHint]),!0}Ld.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var zd=this.completion.cm.getInputField();zd.removeAttribute("aria-activedescendant"),zd.removeAttribute("aria-owns");var qd=this.completion.cm;this.completion.options.closeOnUnfocus&&(qd.off("blur",this.onBlur),qd.off("focus",this.onFocus)),qd.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var zd=this;this.keyMap={Enter:function(){zd.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(zd,qd){if(zd>=this.data.list.length?zd=qd?this.data.list.length-1:0:zd<0&&(zd=qd?0:this.data.list.length-1),this.selectedHint!=zd){var Wd=this.hints.childNodes[this.selectedHint];Wd&&(Wd.className=Wd.className.replace(" "+hd,""),Wd.removeAttribute("aria-selected")),Wd=this.hints.childNodes[this.selectedHint=zd],Wd.className+=" "+hd,Wd.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",Wd.id),this.scrollToActive(),ud.signal(this.data,"select",this.data.list[this.selectedHint],Wd)}},scrollToActive:function(){var zd=this.getSelectedHintRange(),qd=this.hints.childNodes[zd.from],Wd=this.hints.childNodes[zd.to],Xd=this.hints.firstChild;qd.offsetTopthis.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=Wd.offsetTop+Wd.offsetHeight-this.hints.clientHeight+Xd.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var zd=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-zd),to:Math.min(this.data.list.length-1,this.selectedHint+zd)}}};function Ud(zd,qd){if(!zd.somethingSelected())return qd;for(var Wd=[],Xd=0;Xd0?mf(Af):vf(gf+1)})}vf(0)};return Jd.async=!0,Jd.supportsSelection=!0,Jd}else return(Xd=zd.getHelper(zd.getCursor(),"hintWords"))?function(Zd){return ud.hint.fromList(Zd,{words:Xd})}:ud.hint.anyword?function(Zd,mf){return ud.hint.anyword(Zd,mf)}:function(){}}ud.registerHelper("hint","auto",{resolve:Gd}),ud.registerHelper("hint","fromList",function(zd,qd){var Wd=zd.getCursor(),Xd=zd.getTokenAt(Wd),Jd,Zd=ud.Pos(Wd.line,Xd.start),mf=Wd;Xd.start,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};ud.defineOption("hintOptions",null)})})();(function(Ra,ed){(function(ud){ud(requireCodemirror(),cssExports)})(function(ud){var dd={active:1,after:1,before:1,checked:1,default:1,disabled:1,empty:1,enabled:1,"first-child":1,"first-letter":1,"first-line":1,"first-of-type":1,focus:1,hover:1,"in-range":1,indeterminate:1,invalid:1,lang:1,"last-child":1,"last-of-type":1,link:1,not:1,"nth-child":1,"nth-last-child":1,"nth-last-of-type":1,"nth-of-type":1,"only-of-type":1,"only-child":1,optional:1,"out-of-range":1,placeholder:1,"read-only":1,"read-write":1,required:1,root:1,selection:1,target:1,valid:1,visited:1};ud.registerHelper("hint","css",function(hd){var md=hd.getCursor(),gd=hd.getTokenAt(md),yd=ud.innerMode(hd.getMode(),gd.state);if(yd.mode.name!="css")return;if(gd.type=="keyword"&&"!important".indexOf(gd.string)==0)return{list:["!important"],from:ud.Pos(md.line,gd.start),to:ud.Pos(md.line,gd.end)};var vd=gd.start,Cd=md.ch,wd=gd.string.slice(0,Cd-vd);/[^\w$_-]/.test(wd)&&(wd="",vd=Cd=md.ch);var Nd=ud.resolveMode("text/css"),Ld=[];function Ud(Gd){for(var Yd in Gd)(!wd||Yd.lastIndexOf(wd,0)==0)&&Ld.push(Yd)}var jd=yd.state.state;if(jd=="pseudo"||gd.type=="variable-3"?Ud(dd):jd=="block"||jd=="maybeprop"?Ud(Nd.propertyKeywords):jd=="prop"||jd=="parens"||jd=="at"||jd=="params"?(Ud(Nd.valueKeywords),Ud(Nd.colorKeywords)):(jd=="media"||jd=="media_parens")&&(Ud(Nd.mediaTypes),Ud(Nd.mediaFeatures)),Ld.length)return{list:Ld,from:ud.Pos(md.line,vd),to:ud.Pos(md.line,Cd)}})})})();const app=createApp(_sfc_main);app.use(createPinia());app.mount("#app");export{withPath as $,rgba$1 as A,setupGraphViewbox2 as B,cleanAndMerge as C,getConfig$2 as D,defaultConfig_default as E,random as F,selectSvgElement as G,version$1 as H,getThemeVariables3 as I,JSON_SCHEMA as J,line$1 as K,hasKatex as L,calculateMathMLDimensions as M,parseFontSize as N,renderKatex as O,parseGenericTypes as P,curveBasis as Q,generateId as R,lineBreakRegex as S,setupGraphViewbox as T,isDark as U,lighten as V,darken as W,__export as X,commonDb_exports as Y,ZERO_WIDTH_SPACE as Z,__name as _,getAccTitle as a,hue as a$,halfPi as a0,epsilon as a1,tau as a2,cos as a3,sin as a4,min$3 as a5,abs$3 as a6,constant$3 as a7,pi as a8,sqrt as a9,baseRest as aA,isArrayLikeObject as aB,constant$2 as aC,isFunction$2 as aD,isEmpty$1 as aE,computeDimensionOfText as aF,array$1 as aG,commonjsGlobal as aH,getDefaultExportFromCjs as aI,getIconSVG as aJ,registerIconPacks as aK,unknownIcon as aL,isObject$5 as aM,isIterateeCall as aN,keysIn as aO,eq as aP,isArrayLike$1 as aQ,isArray$2 as aR,identity as aS,isIndex$2 as aT,assignValue as aU,Rgb as aV,rgbConvert as aW,define$1 as aX,extend$1 as aY,Color as aZ,nogamma as a_,atan2 as aa,asin as ab,acos as ac,max$4 as ad,insertCluster as ae,insertNode as af,positionNode as ag,getLineFunctionsWithOffset as ah,evaluate as ai,createText as aj,getSubGraphTitleMargins as ak,replaceIconSubstring as al,decodeEntities as am,getStylesFromArray as an,Utils$1 as ao,Color$1 as ap,global$1 as aq,markers_default as ar,clear2 as as,clear as at,clear$1 as au,updateNodeBounds as av,setNodeElem as aw,insertEdge as ax,positionEdgeLabel as ay,insertEdgeLabel as az,setAccTitle as b,dayjs2 as b0,constant$4 as b1,interpolateNumber as b2,interpolateRgb as b3,interpolateString as b4,color as b5,setToString as b6,overRest as b7,baseFor as b8,baseAssignValue as b9,isPrototype as bA,__vitePreload as bB,baseUnary as ba,merge$4 as bb,isObjectLike$2 as bc,baseGetTag as bd,Symbol$1 as be,arrayLikeKeys as bf,baseKeys as bg,memoize$2 as bh,isArguments$1 as bi,copyObject as bj,getPrototype as bk,cloneArrayBuffer as bl,cloneTypedArray as bm,getTag$2 as bn,nodeUtil as bo,copyArray as bp,isBuffer$1 as bq,cloneBuffer as br,initCloneObject as bs,Stack as bt,MapCache as bu,Uint8Array$1 as bv,isTypedArray$2 as bw,isLength as bx,Set$1 as by,createAssigner as bz,getConfig2 as c,select as d,configureSvgSize as e,assignWithDepth_default as f,getAccDescription as g,calculateTextWidth as h,sanitizeText as i,sanitizeUrl_1 as j,common_default as k,log$1 as l,calculateTextHeight as m,getDiagramTitle as n,setDiagramTitle as o,setConfig2 as p,getRegisteredLayoutAlgorithm as q,render$1 as r,setAccDescription as s,defaultConfig2 as t,utils_default as u,clear$2 as v,wrapLabel as w,load as x,isValidShape as y,getEdgeId as z}; diff --git a/static/js/md-infoDiagram-A4XQUW5V-DI_2FOHH.js b/static/js/md-infoDiagram-A4XQUW5V-CKkfwt6-.js similarity index 61% rename from static/js/md-infoDiagram-A4XQUW5V-DI_2FOHH.js rename to static/js/md-infoDiagram-A4XQUW5V-CKkfwt6-.js index b33d7391a..bed7d1b9f 100644 --- a/static/js/md-infoDiagram-A4XQUW5V-DI_2FOHH.js +++ b/static/js/md-infoDiagram-A4XQUW5V-CKkfwt6-.js @@ -1,2 +1,2 @@ -import{_ as e,l as s,G as n,e as i,H as p}from"./md-index-Pj6M4nIk.js";import{p as g}from"./md-gitGraph-YCYPL57B-Hx73xtpL.js";import"./md-_baseUniq-B_2Z1DXv.js";import"./md-_basePickBy-DCcDoZXV.js";import"./md-clone-CnShQSdt.js";var v={parse:e(async r=>{const a=await g("info",r);s.debug(a)},"parse")},d={version:p},m=e(()=>d.version,"getVersion"),c={getVersion:m},l=e((r,a,o)=>{s.debug(`rendering info diagram +import{_ as e,l as s,G as n,e as i,H as p}from"./md-index-1F_vrIf8.js";import{p as g}from"./md-gitGraph-YCYPL57B-Da34XlYK.js";import"./md-_baseUniq-CaouebKG.js";import"./md-_basePickBy-BEC9IKhF.js";import"./md-clone-Cc6Gk5Be.js";var v={parse:e(async r=>{const a=await g("info",r);s.debug(a)},"parse")},d={version:p},m=e(()=>d.version,"getVersion"),c={getVersion:m},l=e((r,a,o)=>{s.debug(`rendering info diagram `+r);const t=n(a);i(t,100,400,!0),t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${o}`)},"draw"),f={draw:l},S={parser:v,db:c,renderer:f};export{S as diagram}; diff --git a/static/js/md-journeyDiagram-G5WM74LC-DeRpwxJo.js b/static/js/md-journeyDiagram-G5WM74LC-CnGpahky.js similarity index 99% rename from static/js/md-journeyDiagram-G5WM74LC-DeRpwxJo.js rename to static/js/md-journeyDiagram-G5WM74LC-CnGpahky.js index db487ac23..c1600ced4 100644 --- a/static/js/md-journeyDiagram-G5WM74LC-DeRpwxJo.js +++ b/static/js/md-journeyDiagram-G5WM74LC-CnGpahky.js @@ -1,4 +1,4 @@ -import{a as ft,g as at,f as gt,d as mt}from"./md-chunk-ASOPGD6M-WtHLfW0h.js";import{_ as i,g as xt,s as kt,a as _t,b as vt,n as bt,o as wt,c as A,d as W,e as Tt,v as St}from"./md-index-Pj6M4nIk.js";import{d as tt}from"./md-arc-JYr3KmYy.js";var H=function(){var t=i(function(g,r,a,l){for(a=a||{},l=g.length;l--;a[g[l]]=r);return a},"o"),e=[6,8,10,11,12,14,16,17,18],n=[1,9],c=[1,10],s=[1,11],u=[1,12],h=[1,13],p=[1,14],d={trace:i(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:i(function(r,a,l,y,f,o,S){var _=o.length-1;switch(f){case 1:return o[_-1];case 2:this.$=[];break;case 3:o[_-1].push(o[_]),this.$=o[_-1];break;case 4:case 5:this.$=o[_];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(o[_].substr(6)),this.$=o[_].substr(6);break;case 9:this.$=o[_].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=o[_].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(o[_].substr(8)),this.$=o[_].substr(8);break;case 13:y.addTask(o[_-1],o[_]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:n,12:c,14:s,16:u,17:h,18:p},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:n,12:c,14:s,16:u,17:h,18:p},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:i(function(r,a){if(a.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=a,l}},"parseError"),parse:i(function(r){var a=this,l=[0],y=[],f=[null],o=[],S=this.table,_="",B=0,J=0,ut=2,K=1,yt=o.slice.call(arguments,1),k=Object.create(this.lexer),E={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(E.yy[O]=this.yy[O]);k.setInput(r,E.yy),E.yy.lexer=k,E.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var Y=k.yylloc;o.push(Y);var dt=k.options&&k.options.ranges;typeof E.yy.parseError=="function"?this.parseError=E.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(b){l.length=l.length-2*b,f.length=f.length-b,o.length=o.length-b}i(pt,"popStack");function Q(){var b;return b=y.pop()||k.lex()||K,typeof b!="number"&&(b instanceof Array&&(y=b,b=y.pop()),b=a.symbols_[b]||b),b}i(Q,"lex");for(var v,P,w,q,C={},N,M,D,j;;){if(P=l[l.length-1],this.defaultActions[P]?w=this.defaultActions[P]:((v===null||typeof v>"u")&&(v=Q()),w=S[P]&&S[P][v]),typeof w>"u"||!w.length||!w[0]){var G="";j=[];for(N in S[P])this.terminals_[N]&&N>ut&&j.push("'"+this.terminals_[N]+"'");k.showPosition?G="Parse error on line "+(B+1)+`: +import{a as ft,g as at,f as gt,d as mt}from"./md-chunk-ASOPGD6M-CJv05LUp.js";import{_ as i,g as xt,s as kt,a as _t,b as vt,n as bt,o as wt,c as A,d as W,e as Tt,v as St}from"./md-index-1F_vrIf8.js";import{d as tt}from"./md-arc-iggqmto5.js";var H=function(){var t=i(function(g,r,a,l){for(a=a||{},l=g.length;l--;a[g[l]]=r);return a},"o"),e=[6,8,10,11,12,14,16,17,18],n=[1,9],c=[1,10],s=[1,11],u=[1,12],h=[1,13],p=[1,14],d={trace:i(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:i(function(r,a,l,y,f,o,S){var _=o.length-1;switch(f){case 1:return o[_-1];case 2:this.$=[];break;case 3:o[_-1].push(o[_]),this.$=o[_-1];break;case 4:case 5:this.$=o[_];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(o[_].substr(6)),this.$=o[_].substr(6);break;case 9:this.$=o[_].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=o[_].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(o[_].substr(8)),this.$=o[_].substr(8);break;case 13:y.addTask(o[_-1],o[_]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:n,12:c,14:s,16:u,17:h,18:p},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:n,12:c,14:s,16:u,17:h,18:p},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:i(function(r,a){if(a.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=a,l}},"parseError"),parse:i(function(r){var a=this,l=[0],y=[],f=[null],o=[],S=this.table,_="",B=0,J=0,ut=2,K=1,yt=o.slice.call(arguments,1),k=Object.create(this.lexer),E={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(E.yy[O]=this.yy[O]);k.setInput(r,E.yy),E.yy.lexer=k,E.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var Y=k.yylloc;o.push(Y);var dt=k.options&&k.options.ranges;typeof E.yy.parseError=="function"?this.parseError=E.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(b){l.length=l.length-2*b,f.length=f.length-b,o.length=o.length-b}i(pt,"popStack");function Q(){var b;return b=y.pop()||k.lex()||K,typeof b!="number"&&(b instanceof Array&&(y=b,b=y.pop()),b=a.symbols_[b]||b),b}i(Q,"lex");for(var v,P,w,q,C={},N,M,D,j;;){if(P=l[l.length-1],this.defaultActions[P]?w=this.defaultActions[P]:((v===null||typeof v>"u")&&(v=Q()),w=S[P]&&S[P][v]),typeof w>"u"||!w.length||!w[0]){var G="";j=[];for(N in S[P])this.terminals_[N]&&N>ut&&j.push("'"+this.terminals_[N]+"'");k.showPosition?G="Parse error on line "+(B+1)+`: `+k.showPosition()+` Expecting `+j.join(", ")+", got '"+(this.terminals_[v]||v)+"'":G="Parse error on line "+(B+1)+": Unexpected "+(v==K?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(G,{text:k.match,token:this.terminals_[v]||v,line:k.yylineno,loc:Y,expected:j})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+v);switch(w[0]){case 1:l.push(v),f.push(k.yytext),o.push(k.yylloc),l.push(w[1]),v=null,J=k.yyleng,_=k.yytext,B=k.yylineno,Y=k.yylloc;break;case 2:if(M=this.productions_[w[1]][1],C.$=f[f.length-M],C._$={first_line:o[o.length-(M||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(M||1)].first_column,last_column:o[o.length-1].last_column},dt&&(C._$.range=[o[o.length-(M||1)].range[0],o[o.length-1].range[1]]),q=this.performAction.apply(C,[_,J,B,E.yy,w[1],f,o].concat(yt)),typeof q<"u")return q;M&&(l=l.slice(0,-1*M*2),f=f.slice(0,-1*M),o=o.slice(0,-1*M)),l.push(this.productions_[w[1]][0]),f.push(C.$),o.push(C._$),D=S[l[l.length-2]][l[l.length-1]],l.push(D);break;case 3:return!0}}return!0},"parse")},x=function(){var g={EOF:1,parseError:i(function(a,l){if(this.yy.parser)this.yy.parser.parseError(a,l);else throw new Error(a)},"parseError"),setInput:i(function(r,a){return this.yy=a||this.yy||{},this._input=r,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:i(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var a=r.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),r},"input"),unput:i(function(r){var a=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var y=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),l.length-1&&(this.yylineno-=l.length-1);var f=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:l?(l.length===y.length?this.yylloc.first_column:0)+y[y.length-l.length].length-l[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:i(function(){return this._more=!0,this},"more"),reject:i(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). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:i(function(r){this.unput(this.match.slice(r))},"less"),pastInput:i(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var r=this.pastInput(),a=new Array(r.length+1).join("-");return r+this.upcomingInput()+` diff --git a/static/js/md-kanban-definition-QRCXZQQD-BEauhUEA.js b/static/js/md-kanban-definition-QRCXZQQD-D1PtRX2Y.js similarity index 99% rename from static/js/md-kanban-definition-QRCXZQQD-BEauhUEA.js rename to static/js/md-kanban-definition-QRCXZQQD-D1PtRX2Y.js index c405a5350..d634e310e 100644 --- a/static/js/md-kanban-definition-QRCXZQQD-BEauhUEA.js +++ b/static/js/md-kanban-definition-QRCXZQQD-D1PtRX2Y.js @@ -1,4 +1,4 @@ -import{_ as c,l as te,c as W,G as fe,ae as ye,af as be,ag as me,T as Ee,E as Y,i as F,x as _e,J as ke,U as Se,V as le,W as ce}from"./md-index-Pj6M4nIk.js";var $=function(){var t=c(function(E,s,n,a){for(n=n||{},a=E.length;a--;n[E[a]]=s);return n},"o"),g=[1,4],d=[1,13],r=[1,12],p=[1,15],_=[1,16],f=[1,20],h=[1,19],L=[6,7,8],C=[1,26],w=[1,24],N=[1,25],i=[6,7,11],U=[1,31],x=[6,7,11,24],P=[1,6,13,16,17,20,23],M=[1,35],j=[1,36],A=[1,6,7,11,13,16,17,20,23],H=[1,38],V={trace:c(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:c(function(s,n,a,o,u,e,B){var l=e.length-1;switch(u){case 6:case 7:return o;case 8:o.getLogger().trace("Stop NL ");break;case 9:o.getLogger().trace("Stop EOF ");break;case 11:o.getLogger().trace("Stop NL2 ");break;case 12:o.getLogger().trace("Stop EOF2 ");break;case 15:o.getLogger().info("Node: ",e[l-1].id),o.addNode(e[l-2].length,e[l-1].id,e[l-1].descr,e[l-1].type,e[l]);break;case 16:o.getLogger().info("Node: ",e[l].id),o.addNode(e[l-1].length,e[l].id,e[l].descr,e[l].type);break;case 17:o.getLogger().trace("Icon: ",e[l]),o.decorateNode({icon:e[l]});break;case 18:case 23:o.decorateNode({class:e[l]});break;case 19:o.getLogger().trace("SPACELIST");break;case 20:o.getLogger().trace("Node: ",e[l-1].id),o.addNode(0,e[l-1].id,e[l-1].descr,e[l-1].type,e[l]);break;case 21:o.getLogger().trace("Node: ",e[l].id),o.addNode(0,e[l].id,e[l].descr,e[l].type);break;case 22:o.decorateNode({icon:e[l]});break;case 27:o.getLogger().trace("node found ..",e[l-2]),this.$={id:e[l-1],descr:e[l-1],type:o.getType(e[l-2],e[l])};break;case 28:this.$={id:e[l],descr:e[l],type:0};break;case 29:o.getLogger().trace("node found ..",e[l-3]),this.$={id:e[l-3],descr:e[l-1],type:o.getType(e[l-2],e[l])};break;case 30:this.$=e[l-1]+e[l];break;case 31:this.$=e[l];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:g},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:g},{6:d,7:[1,10],9:9,12:11,13:r,14:14,16:p,17:_,18:17,19:18,20:f,23:h},t(L,[2,3]),{1:[2,2]},t(L,[2,4]),t(L,[2,5]),{1:[2,6],6:d,12:21,13:r,14:14,16:p,17:_,18:17,19:18,20:f,23:h},{6:d,9:22,12:11,13:r,14:14,16:p,17:_,18:17,19:18,20:f,23:h},{6:C,7:w,10:23,11:N},t(i,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:f,23:h}),t(i,[2,19]),t(i,[2,21],{15:30,24:U}),t(i,[2,22]),t(i,[2,23]),t(x,[2,25]),t(x,[2,26]),t(x,[2,28],{20:[1,32]}),{21:[1,33]},{6:C,7:w,10:34,11:N},{1:[2,7],6:d,12:21,13:r,14:14,16:p,17:_,18:17,19:18,20:f,23:h},t(P,[2,14],{7:M,11:j}),t(A,[2,8]),t(A,[2,9]),t(A,[2,10]),t(i,[2,16],{15:37,24:U}),t(i,[2,17]),t(i,[2,18]),t(i,[2,20],{24:H}),t(x,[2,31]),{21:[1,39]},{22:[1,40]},t(P,[2,13],{7:M,11:j}),t(A,[2,11]),t(A,[2,12]),t(i,[2,15],{24:H}),t(x,[2,30]),{22:[1,41]},t(x,[2,27]),t(x,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:c(function(s,n){if(n.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=n,a}},"parseError"),parse:c(function(s){var n=this,a=[0],o=[],u=[null],e=[],B=this.table,l="",z=0,ie=0,ue=2,re=1,ge=e.slice.call(arguments,1),b=Object.create(this.lexer),T={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(T.yy[J]=this.yy[J]);b.setInput(s,T.yy),T.yy.lexer=b,T.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var q=b.yylloc;e.push(q);var de=b.options&&b.options.ranges;typeof T.yy.parseError=="function"?this.parseError=T.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){a.length=a.length-2*S,u.length=u.length-S,e.length=e.length-S}c(pe,"popStack");function ae(){var S;return S=o.pop()||b.lex()||re,typeof S!="number"&&(S instanceof Array&&(o=S,S=o.pop()),S=n.symbols_[S]||S),S}c(ae,"lex");for(var k,R,v,Q,G={},X,I,oe,K;;){if(R=a[a.length-1],this.defaultActions[R]?v=this.defaultActions[R]:((k===null||typeof k>"u")&&(k=ae()),v=B[R]&&B[R][k]),typeof v>"u"||!v.length||!v[0]){var Z="";K=[];for(X in B[R])this.terminals_[X]&&X>ue&&K.push("'"+this.terminals_[X]+"'");b.showPosition?Z="Parse error on line "+(z+1)+`: +import{_ as c,l as te,c as W,G as fe,ae as ye,af as be,ag as me,T as Ee,E as Y,i as F,x as _e,J as ke,U as Se,V as le,W as ce}from"./md-index-1F_vrIf8.js";var $=function(){var t=c(function(E,s,n,a){for(n=n||{},a=E.length;a--;n[E[a]]=s);return n},"o"),g=[1,4],d=[1,13],r=[1,12],p=[1,15],_=[1,16],f=[1,20],h=[1,19],L=[6,7,8],C=[1,26],w=[1,24],N=[1,25],i=[6,7,11],U=[1,31],x=[6,7,11,24],P=[1,6,13,16,17,20,23],M=[1,35],j=[1,36],A=[1,6,7,11,13,16,17,20,23],H=[1,38],V={trace:c(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:c(function(s,n,a,o,u,e,B){var l=e.length-1;switch(u){case 6:case 7:return o;case 8:o.getLogger().trace("Stop NL ");break;case 9:o.getLogger().trace("Stop EOF ");break;case 11:o.getLogger().trace("Stop NL2 ");break;case 12:o.getLogger().trace("Stop EOF2 ");break;case 15:o.getLogger().info("Node: ",e[l-1].id),o.addNode(e[l-2].length,e[l-1].id,e[l-1].descr,e[l-1].type,e[l]);break;case 16:o.getLogger().info("Node: ",e[l].id),o.addNode(e[l-1].length,e[l].id,e[l].descr,e[l].type);break;case 17:o.getLogger().trace("Icon: ",e[l]),o.decorateNode({icon:e[l]});break;case 18:case 23:o.decorateNode({class:e[l]});break;case 19:o.getLogger().trace("SPACELIST");break;case 20:o.getLogger().trace("Node: ",e[l-1].id),o.addNode(0,e[l-1].id,e[l-1].descr,e[l-1].type,e[l]);break;case 21:o.getLogger().trace("Node: ",e[l].id),o.addNode(0,e[l].id,e[l].descr,e[l].type);break;case 22:o.decorateNode({icon:e[l]});break;case 27:o.getLogger().trace("node found ..",e[l-2]),this.$={id:e[l-1],descr:e[l-1],type:o.getType(e[l-2],e[l])};break;case 28:this.$={id:e[l],descr:e[l],type:0};break;case 29:o.getLogger().trace("node found ..",e[l-3]),this.$={id:e[l-3],descr:e[l-1],type:o.getType(e[l-2],e[l])};break;case 30:this.$=e[l-1]+e[l];break;case 31:this.$=e[l];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:g},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:g},{6:d,7:[1,10],9:9,12:11,13:r,14:14,16:p,17:_,18:17,19:18,20:f,23:h},t(L,[2,3]),{1:[2,2]},t(L,[2,4]),t(L,[2,5]),{1:[2,6],6:d,12:21,13:r,14:14,16:p,17:_,18:17,19:18,20:f,23:h},{6:d,9:22,12:11,13:r,14:14,16:p,17:_,18:17,19:18,20:f,23:h},{6:C,7:w,10:23,11:N},t(i,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:f,23:h}),t(i,[2,19]),t(i,[2,21],{15:30,24:U}),t(i,[2,22]),t(i,[2,23]),t(x,[2,25]),t(x,[2,26]),t(x,[2,28],{20:[1,32]}),{21:[1,33]},{6:C,7:w,10:34,11:N},{1:[2,7],6:d,12:21,13:r,14:14,16:p,17:_,18:17,19:18,20:f,23:h},t(P,[2,14],{7:M,11:j}),t(A,[2,8]),t(A,[2,9]),t(A,[2,10]),t(i,[2,16],{15:37,24:U}),t(i,[2,17]),t(i,[2,18]),t(i,[2,20],{24:H}),t(x,[2,31]),{21:[1,39]},{22:[1,40]},t(P,[2,13],{7:M,11:j}),t(A,[2,11]),t(A,[2,12]),t(i,[2,15],{24:H}),t(x,[2,30]),{22:[1,41]},t(x,[2,27]),t(x,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:c(function(s,n){if(n.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=n,a}},"parseError"),parse:c(function(s){var n=this,a=[0],o=[],u=[null],e=[],B=this.table,l="",z=0,ie=0,ue=2,re=1,ge=e.slice.call(arguments,1),b=Object.create(this.lexer),T={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(T.yy[J]=this.yy[J]);b.setInput(s,T.yy),T.yy.lexer=b,T.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var q=b.yylloc;e.push(q);var de=b.options&&b.options.ranges;typeof T.yy.parseError=="function"?this.parseError=T.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){a.length=a.length-2*S,u.length=u.length-S,e.length=e.length-S}c(pe,"popStack");function ae(){var S;return S=o.pop()||b.lex()||re,typeof S!="number"&&(S instanceof Array&&(o=S,S=o.pop()),S=n.symbols_[S]||S),S}c(ae,"lex");for(var k,R,v,Q,G={},X,I,oe,K;;){if(R=a[a.length-1],this.defaultActions[R]?v=this.defaultActions[R]:((k===null||typeof k>"u")&&(k=ae()),v=B[R]&&B[R][k]),typeof v>"u"||!v.length||!v[0]){var Z="";K=[];for(X in B[R])this.terminals_[X]&&X>ue&&K.push("'"+this.terminals_[X]+"'");b.showPosition?Z="Parse error on line "+(z+1)+`: `+b.showPosition()+` Expecting `+K.join(", ")+", got '"+(this.terminals_[k]||k)+"'":Z="Parse error on line "+(z+1)+": Unexpected "+(k==re?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(Z,{text:b.match,token:this.terminals_[k]||k,line:b.yylineno,loc:q,expected:K})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+k);switch(v[0]){case 1:a.push(k),u.push(b.yytext),e.push(b.yylloc),a.push(v[1]),k=null,ie=b.yyleng,l=b.yytext,z=b.yylineno,q=b.yylloc;break;case 2:if(I=this.productions_[v[1]][1],G.$=u[u.length-I],G._$={first_line:e[e.length-(I||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(I||1)].first_column,last_column:e[e.length-1].last_column},de&&(G._$.range=[e[e.length-(I||1)].range[0],e[e.length-1].range[1]]),Q=this.performAction.apply(G,[l,ie,z,T.yy,v[1],u,e].concat(ge)),typeof Q<"u")return Q;I&&(a=a.slice(0,-1*I*2),u=u.slice(0,-1*I),e=e.slice(0,-1*I)),a.push(this.productions_[v[1]][0]),u.push(G.$),e.push(G._$),oe=B[a[a.length-2]][a[a.length-1]],a.push(oe);break;case 3:return!0}}return!0},"parse")},m=function(){var E={EOF:1,parseError:c(function(n,a){if(this.yy.parser)this.yy.parser.parseError(n,a);else throw new Error(n)},"parseError"),setInput:c(function(s,n){return this.yy=n||this.yy||{},this._input=s,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:c(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var n=s.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:c(function(s){var n=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var o=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),a.length-1&&(this.yylineno-=a.length-1);var u=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:a?(a.length===o.length?this.yylloc.first_column:0)+o[o.length-a.length].length-a[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:c(function(){return this._more=!0,this},"more"),reject:c(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). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:c(function(s){this.unput(this.match.slice(s))},"less"),pastInput:c(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:c(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:c(function(){var s=this.pastInput(),n=new Array(s.length+1).join("-");return s+this.upcomingInput()+` diff --git a/static/js/md-layout-InKKBTOk.js b/static/js/md-layout-FhzIEdmV.js similarity index 98% rename from static/js/md-layout-InKKBTOk.js rename to static/js/md-layout-FhzIEdmV.js index 9d453c10f..d7fa42078 100644 --- a/static/js/md-layout-InKKBTOk.js +++ b/static/js/md-layout-FhzIEdmV.js @@ -1 +1 @@ -import{G as g}from"./md-graph-Dk7IDouC.js";import{b as Te,p as ce,q as le,g as z,e as ee,l as j,o as Ie,s as Me,c as Se,u as Fe,d as f,i as m,f as _,v as x,r as M}from"./md-_baseUniq-B_2Z1DXv.js";import{f as O,b as he,a as je,c as Ve,d as Ae,t as V,m as w,e as P,h as ve,g as U,l as T,i as Be}from"./md-_basePickBy-DCcDoZXV.js";import{b6 as Ge,b7 as Ye,b8 as De,aO as qe,b9 as $e,aS as pe,aR as we,ba as We,aN as q,aA as ze,aU as Ue,aC as Xe,bb as $}from"./md-index-Pj6M4nIk.js";function He(e){return Ge(Ye(e,void 0,O),e+"")}var Je=1,Ze=4;function Ke(e){return Te(e,Je|Ze)}function Qe(e,n){return e==null?e:De(e,ce(n),qe)}function en(e,n){return e&&le(e,ce(n))}function nn(e,n){return e>n}function S(e,n){var r={};return n=z(n),le(e,function(t,a,i){$e(r,a,n(t,a,i))}),r}function y(e){return e&&e.length?he(e,pe,nn):void 0}function X(e,n){return e&&e.length?he(e,z(n),je):void 0}function rn(e,n){var r=e.length;for(e.sort(n);r--;)e[r]=e[r].value;return e}function tn(e,n){if(e!==n){var r=e!==void 0,t=e===null,a=e===e,i=ee(e),o=n!==void 0,u=n===null,d=n===n,s=ee(n);if(!u&&!s&&!i&&e>n||i&&o&&d&&!u&&!s||t&&o&&d||!r&&d||!a)return 1;if(!t&&!i&&!s&&e=u)return d;var s=r[t];return d*(s=="desc"?-1:1)}}return e.index-n.index}function on(e,n,r){n.length?n=j(n,function(i){return we(i)?function(o){return Ie(o,i.length===1?i[0]:i)}:i}):n=[pe];var t=-1;n=j(n,We(z));var a=Ve(e,function(i,o,u){var d=j(n,function(s){return s(i)});return{criteria:d,index:++t,value:i}});return rn(a,function(i,o){return an(i,o,r)})}function un(e,n){return Ae(e,n,function(r,t){return Me(e,t)})}var I=He(function(e,n){return e==null?{}:un(e,n)}),dn=Math.ceil,sn=Math.max;function fn(e,n,r,t){for(var a=-1,i=sn(dn((n-e)/(r||1)),0),o=Array(i);i--;)o[++a]=e,e+=r;return o}function cn(e){return function(n,r,t){return t&&typeof t!="number"&&q(n,r,t)&&(r=t=void 0),n=V(n),r===void 0?(r=n,n=0):r=V(r),t=t===void 0?n1&&q(e,n[0],n[1])?n=[]:r>2&&q(n[0],n[1],n[2])&&(n=[n[0]]),on(e,Se(n),[])}),ln=0;function H(e){var n=++ln;return Fe(e)+n}function hn(e,n,r){for(var t=-1,a=e.length,i=n.length,o={};++t0;--u)if(o=n[u].dequeue(),o){t=t.concat(A(e,n,r,o,!0));break}}}return t}function A(e,n,r,t,a){var i=a?[]:void 0;return f(e.inEdges(t.v),function(o){var u=e.edge(o),d=e.node(o.v);a&&i.push({v:o.v,w:o.w}),d.out-=u,W(n,r,d)}),f(e.outEdges(t.v),function(o){var u=e.edge(o),d=o.w,s=e.node(d);s.in-=u,W(n,r,s)}),e.removeNode(t.v),i}function yn(e,n){var r=new g,t=0,a=0;f(e.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),f(e.edges(),function(u){var d=r.edge(u.v,u.w)||0,s=n(u),c=d+s;r.setEdge(u.v,u.w,c),a=Math.max(a,r.node(u.v).out+=s),t=Math.max(t,r.node(u.w).in+=s)});var i=E(a+t+3).map(function(){return new pn}),o=t+1;return f(r.nodes(),function(u){W(i,o,r.node(u))}),{graph:r,buckets:i,zeroIdx:o}}function W(e,n,r){r.out?r.in?e[r.out-r.in+n].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}function kn(e){var n=e.graph().acyclicer==="greedy"?mn(e,r(e)):xn(e);f(n,function(t){var a=e.edge(t);e.removeEdge(t),a.forwardName=t.name,a.reversed=!0,e.setEdge(t.w,t.v,a,H("rev"))});function r(t){return function(a){return t.edge(a).weight}}}function xn(e){var n=[],r={},t={};function a(i){Object.prototype.hasOwnProperty.call(t,i)||(t[i]=!0,r[i]=!0,f(e.outEdges(i),function(o){Object.prototype.hasOwnProperty.call(r,o.w)?n.push(o):a(o.w)}),delete r[i])}return f(e.nodes(),a),n}function En(e){f(e.edges(),function(n){var r=e.edge(n);if(r.reversed){e.removeEdge(n);var t=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(n.w,n.v,r,t)}})}function L(e,n,r,t){var a;do a=H(t);while(e.hasNode(a));return r.dummy=n,e.setNode(a,r),a}function On(e){var n=new g().setGraph(e.graph());return f(e.nodes(),function(r){n.setNode(r,e.node(r))}),f(e.edges(),function(r){var t=n.edge(r.v,r.w)||{weight:0,minlen:1},a=e.edge(r);n.setEdge(r.v,r.w,{weight:t.weight+a.weight,minlen:Math.max(t.minlen,a.minlen)})}),n}function be(e){var n=new g({multigraph:e.isMultigraph()}).setGraph(e.graph());return f(e.nodes(),function(r){e.children(r).length||n.setNode(r,e.node(r))}),f(e.edges(),function(r){n.setEdge(r,e.edge(r))}),n}function re(e,n){var r=e.x,t=e.y,a=n.x-r,i=n.y-t,o=e.width/2,u=e.height/2;if(!a&&!i)throw new Error("Not possible to find intersection inside of the rectangle");var d,s;return Math.abs(i)*o>Math.abs(a)*u?(i<0&&(u=-u),d=u*a/i,s=u):(a<0&&(o=-o),d=o,s=o*i/a),{x:r+d,y:t+s}}function F(e){var n=w(E(me(e)+1),function(){return[]});return f(e.nodes(),function(r){var t=e.node(r),a=t.rank;m(a)||(n[a][t.order]=r)}),n}function Ln(e){var n=P(w(e.nodes(),function(r){return e.node(r).rank}));f(e.nodes(),function(r){var t=e.node(r);ve(t,"rank")&&(t.rank-=n)})}function Nn(e){var n=P(w(e.nodes(),function(i){return e.node(i).rank})),r=[];f(e.nodes(),function(i){var o=e.node(i).rank-n;r[o]||(r[o]=[]),r[o].push(i)});var t=0,a=e.graph().nodeRankFactor;f(r,function(i,o){m(i)&&o%a!==0?--t:t&&f(i,function(u){e.node(u).rank+=t})})}function te(e,n,r,t){var a={width:0,height:0};return arguments.length>=4&&(a.rank=r,a.order=t),L(e,"border",a,n)}function me(e){return y(w(e.nodes(),function(n){var r=e.node(n).rank;if(!m(r))return r}))}function Pn(e,n){var r={lhs:[],rhs:[]};return f(e,function(t){n(t)?r.lhs.push(t):r.rhs.push(t)}),r}function Cn(e,n){return n()}function _n(e){function n(r){var t=e.children(r),a=e.node(r);if(t.length&&f(t,n),Object.prototype.hasOwnProperty.call(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var i=a.minRank,o=a.maxRank+1;io.lim&&(u=o,d=!0);var s=_(n.edges(),function(c){return d===oe(e,e.node(c.v),u)&&d!==oe(e,e.node(c.w),u)});return X(s,function(c){return C(n,c)})}function Pe(e,n,r,t){var a=r.v,i=r.w;e.removeEdge(a,i),e.setEdge(t.v,t.w,{}),K(e),Z(e,n),$n(e,n)}function $n(e,n){var r=U(e.nodes(),function(a){return!n.node(a).parent}),t=Dn(e,r);t=t.slice(1),f(t,function(a){var i=e.node(a).parent,o=n.edge(a,i),u=!1;o||(o=n.edge(i,a),u=!0),n.node(a).rank=n.node(i).rank+(u?o.minlen:-o.minlen)})}function Wn(e,n,r){return e.hasEdge(n,r)}function oe(e,n,r){return r.low<=n.lim&&n.lim<=r.lim}function zn(e){switch(e.graph().ranker){case"network-simplex":ue(e);break;case"tight-tree":Xn(e);break;case"longest-path":Un(e);break;default:ue(e)}}var Un=J;function Xn(e){J(e),ye(e)}function ue(e){k(e)}function Hn(e){var n=L(e,"root",{},"_root"),r=Jn(e),t=y(x(r))-1,a=2*t+1;e.graph().nestingRoot=n,f(e.edges(),function(o){e.edge(o).minlen*=a});var i=Zn(e)+1;f(e.children(),function(o){Ce(e,n,a,i,t,r,o)}),e.graph().nodeRankFactor=a}function Ce(e,n,r,t,a,i,o){var u=e.children(o);if(!u.length){o!==n&&e.setEdge(n,o,{weight:0,minlen:r});return}var d=te(e,"_bt"),s=te(e,"_bb"),c=e.node(o);e.setParent(d,o),c.borderTop=d,e.setParent(s,o),c.borderBottom=s,f(u,function(l){Ce(e,n,r,t,a,i,l);var h=e.node(l),v=h.borderTop?h.borderTop:l,p=h.borderBottom?h.borderBottom:l,b=h.borderTop?t:2*t,N=v!==p?1:a-i[o]+1;e.setEdge(d,v,{weight:b,minlen:N,nestingEdge:!0}),e.setEdge(p,s,{weight:b,minlen:N,nestingEdge:!0})}),e.parent(o)||e.setEdge(n,d,{weight:0,minlen:a+i[o]})}function Jn(e){var n={};function r(t,a){var i=e.children(t);i&&i.length&&f(i,function(o){r(o,a+1)}),n[t]=a}return f(e.children(),function(t){r(t,1)}),n}function Zn(e){return M(e.edges(),function(n,r){return n+e.edge(r).weight},0)}function Kn(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,f(e.edges(),function(r){var t=e.edge(r);t.nestingEdge&&e.removeEdge(r)})}function Qn(e,n,r){var t={},a;f(r,function(i){for(var o=e.parent(i),u,d;o;){if(u=e.parent(o),u?(d=t[u],t[u]=o):(d=a,a=o),d&&d!==o){n.setEdge(d,o);return}o=u}})}function er(e,n,r){var t=nr(e),a=new g({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(i){return e.node(i)});return f(e.nodes(),function(i){var o=e.node(i),u=e.parent(i);(o.rank===n||o.minRank<=n&&n<=o.maxRank)&&(a.setNode(i),a.setParent(i,u||t),f(e[r](i),function(d){var s=d.v===i?d.w:d.v,c=a.edge(s,i),l=m(c)?0:c.weight;a.setEdge(s,i,{weight:e.edge(d).weight+l})}),Object.prototype.hasOwnProperty.call(o,"minRank")&&a.setNode(i,{borderLeft:o.borderLeft[n],borderRight:o.borderRight[n]}))}),a}function nr(e){for(var n;e.hasNode(n=H("_root")););return n}function rr(e,n){for(var r=0,t=1;t0;)c%2&&(l+=u[c+1]),c=c-1>>1,u[c]+=s.weight;d+=s.weight*l})),d}function ar(e){var n={},r=_(e.nodes(),function(u){return!e.children(u).length}),t=y(w(r,function(u){return e.node(u).rank})),a=w(E(t+1),function(){return[]});function i(u){if(!ve(n,u)){n[u]=!0;var d=e.node(u);a[d.rank].push(u),f(e.successors(u),i)}}var o=R(r,function(u){return e.node(u).rank});return f(o,i),a}function ir(e,n){return w(n,function(r){var t=e.inEdges(r);if(t.length){var a=M(t,function(i,o){var u=e.edge(o),d=e.node(o.v);return{sum:i.sum+u.weight*d.order,weight:i.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:a.sum/a.weight,weight:a.weight}}else return{v:r}})}function or(e,n){var r={};f(e,function(a,i){var o=r[a.v]={indegree:0,in:[],out:[],vs:[a.v],i};m(a.barycenter)||(o.barycenter=a.barycenter,o.weight=a.weight)}),f(n.edges(),function(a){var i=r[a.v],o=r[a.w];!m(i)&&!m(o)&&(o.indegree++,i.out.push(r[a.w]))});var t=_(r,function(a){return!a.indegree});return ur(t)}function ur(e){var n=[];function r(i){return function(o){o.merged||(m(o.barycenter)||m(i.barycenter)||o.barycenter>=i.barycenter)&&dr(i,o)}}function t(i){return function(o){o.in.push(i),--o.indegree===0&&e.push(o)}}for(;e.length;){var a=e.pop();n.push(a),f(a.in.reverse(),r(a)),f(a.out,t(a))}return w(_(n,function(i){return!i.merged}),function(i){return I(i,["vs","i","barycenter","weight"])})}function dr(e,n){var r=0,t=0;e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=r/t,e.weight=t,e.i=Math.min(n.i,e.i),n.merged=!0}function sr(e,n){var r=Pn(e,function(c){return Object.prototype.hasOwnProperty.call(c,"barycenter")}),t=r.lhs,a=R(r.rhs,function(c){return-c.i}),i=[],o=0,u=0,d=0;t.sort(fr(!!n)),d=de(i,a,d),f(t,function(c){d+=c.vs.length,i.push(c.vs),o+=c.barycenter*c.weight,u+=c.weight,d=de(i,a,d)});var s={vs:O(i)};return u&&(s.barycenter=o/u,s.weight=u),s}function de(e,n,r){for(var t;n.length&&(t=T(n)).i<=r;)n.pop(),e.push(t.vs),r++;return r}function fr(e){return function(n,r){return n.barycenterr.barycenter?1:e?r.i-n.i:n.i-r.i}}function _e(e,n,r,t){var a=e.children(n),i=e.node(n),o=i?i.borderLeft:void 0,u=i?i.borderRight:void 0,d={};o&&(a=_(a,function(p){return p!==o&&p!==u}));var s=ir(e,a);f(s,function(p){if(e.children(p.v).length){var b=_e(e,p.v,r,t);d[p.v]=b,Object.prototype.hasOwnProperty.call(b,"barycenter")&&lr(p,b)}});var c=or(s,r);cr(c,d);var l=sr(c,t);if(o&&(l.vs=O([o,l.vs,u]),e.predecessors(o).length)){var h=e.node(e.predecessors(o)[0]),v=e.node(e.predecessors(u)[0]);Object.prototype.hasOwnProperty.call(l,"barycenter")||(l.barycenter=0,l.weight=0),l.barycenter=(l.barycenter*l.weight+h.order+v.order)/(l.weight+2),l.weight+=2}return l}function cr(e,n){f(e,function(r){r.vs=O(r.vs.map(function(t){return n[t]?n[t].vs:t}))})}function lr(e,n){m(e.barycenter)?(e.barycenter=n.barycenter,e.weight=n.weight):(e.barycenter=(e.barycenter*e.weight+n.barycenter*n.weight)/(e.weight+n.weight),e.weight+=n.weight)}function hr(e){var n=me(e),r=se(e,E(1,n+1),"inEdges"),t=se(e,E(n-1,-1,-1),"outEdges"),a=ar(e);fe(e,a);for(var i=Number.POSITIVE_INFINITY,o,u=0,d=0;d<4;++u,++d){vr(u%2?r:t,u%4>=2),a=F(e);var s=rr(e,a);so||u>n[d].lim));for(s=d,d=t;(d=e.parent(d))!==s;)i.push(d);return{path:a.concat(i.reverse()),lca:s}}function br(e){var n={},r=0;function t(a){var i=r;f(e.children(a),t),n[a]={low:i,lim:r++}}return f(e.children(),t),n}function mr(e,n){var r={};function t(a,i){var o=0,u=0,d=a.length,s=T(i);return f(i,function(c,l){var h=yr(e,c),v=h?e.node(h).order:d;(h||c===s)&&(f(i.slice(u,l+1),function(p){f(e.predecessors(p),function(b){var N=e.node(b),Q=N.order;(Qs)&&Re(r,h,c)})})}function a(i,o){var u=-1,d,s=0;return f(o,function(c,l){if(e.node(c).dummy==="border"){var h=e.predecessors(c);h.length&&(d=e.node(h[0]).order,t(o,s,l,u,d),s=l,u=d)}t(o,s,o.length,d,i.length)}),o}return M(n,a),r}function yr(e,n){if(e.node(n).dummy)return U(e.predecessors(n),function(r){return e.node(r).dummy})}function Re(e,n,r){if(n>r){var t=n;n=r,r=t}var a=e[n];a||(e[n]=a={}),a[r]=!0}function kr(e,n,r){if(n>r){var t=n;n=r,r=t}return!!e[n]&&Object.prototype.hasOwnProperty.call(e[n],r)}function xr(e,n,r,t){var a={},i={},o={};return f(n,function(u){f(u,function(d,s){a[d]=d,i[d]=d,o[d]=s})}),f(n,function(u){var d=-1;f(u,function(s){var c=t(s);if(c.length){c=R(c,function(b){return o[b]});for(var l=(c.length-1)/2,h=Math.floor(l),v=Math.ceil(l);h<=v;++h){var p=c[h];i[s]===s&&d{var t=r(" buildLayoutGraph",()=>qr(e));r(" runLayout",()=>Mr(t,r)),r(" updateInputGraph",()=>Sr(e,t))})}function Mr(e,n){n(" makeSpaceForEdgeLabels",()=>$r(e)),n(" removeSelfEdges",()=>Qr(e)),n(" acyclic",()=>kn(e)),n(" nestingGraph.run",()=>Hn(e)),n(" rank",()=>zn(be(e))),n(" injectEdgeLabelProxies",()=>Wr(e)),n(" removeEmptyRanks",()=>Nn(e)),n(" nestingGraph.cleanup",()=>Kn(e)),n(" normalizeRanks",()=>Ln(e)),n(" assignRankMinMax",()=>zr(e)),n(" removeEdgeLabelProxies",()=>Ur(e)),n(" normalize.run",()=>Sn(e)),n(" parentDummyChains",()=>pr(e)),n(" addBorderSegments",()=>_n(e)),n(" order",()=>hr(e)),n(" insertSelfEdges",()=>et(e)),n(" adjustCoordinateSystem",()=>Rn(e)),n(" position",()=>Tr(e)),n(" positionSelfEdges",()=>nt(e)),n(" removeBorderNodes",()=>Kr(e)),n(" normalize.undo",()=>jn(e)),n(" fixupEdgeLabelCoords",()=>Jr(e)),n(" undoCoordinateSystem",()=>Tn(e)),n(" translateGraph",()=>Xr(e)),n(" assignNodeIntersects",()=>Hr(e)),n(" reversePoints",()=>Zr(e)),n(" acyclic.undo",()=>En(e))}function Sr(e,n){f(e.nodes(),function(r){var t=e.node(r),a=n.node(r);t&&(t.x=a.x,t.y=a.y,n.children(r).length&&(t.width=a.width,t.height=a.height))}),f(e.edges(),function(r){var t=e.edge(r),a=n.edge(r);t.points=a.points,Object.prototype.hasOwnProperty.call(a,"x")&&(t.x=a.x,t.y=a.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height}var Fr=["nodesep","edgesep","ranksep","marginx","marginy"],jr={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Vr=["acyclicer","ranker","rankdir","align"],Ar=["width","height"],Br={width:0,height:0},Gr=["minlen","weight","width","height","labeloffset"],Yr={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Dr=["labelpos"];function qr(e){var n=new g({multigraph:!0,compound:!0}),r=D(e.graph());return n.setGraph($({},jr,Y(r,Fr),I(r,Vr))),f(e.nodes(),function(t){var a=D(e.node(t));n.setNode(t,Be(Y(a,Ar),Br)),n.setParent(t,e.parent(t))}),f(e.edges(),function(t){var a=D(e.edge(t));n.setEdge(t,$({},Yr,Y(a,Gr),I(a,Dr)))}),n}function $r(e){var n=e.graph();n.ranksep/=2,f(e.edges(),function(r){var t=e.edge(r);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(n.rankdir==="TB"||n.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function Wr(e){f(e.edges(),function(n){var r=e.edge(n);if(r.width&&r.height){var t=e.node(n.v),a=e.node(n.w),i={rank:(a.rank-t.rank)/2+t.rank,e:n};L(e,"edge-proxy",i,"_ep")}})}function zr(e){var n=0;f(e.nodes(),function(r){var t=e.node(r);t.borderTop&&(t.minRank=e.node(t.borderTop).rank,t.maxRank=e.node(t.borderBottom).rank,n=y(n,t.maxRank))}),e.graph().maxRank=n}function Ur(e){f(e.nodes(),function(n){var r=e.node(n);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(n))})}function Xr(e){var n=Number.POSITIVE_INFINITY,r=0,t=Number.POSITIVE_INFINITY,a=0,i=e.graph(),o=i.marginx||0,u=i.marginy||0;function d(s){var c=s.x,l=s.y,h=s.width,v=s.height;n=Math.min(n,c-h/2),r=Math.max(r,c+h/2),t=Math.min(t,l-v/2),a=Math.max(a,l+v/2)}f(e.nodes(),function(s){d(e.node(s))}),f(e.edges(),function(s){var c=e.edge(s);Object.prototype.hasOwnProperty.call(c,"x")&&d(c)}),n-=o,t-=u,f(e.nodes(),function(s){var c=e.node(s);c.x-=n,c.y-=t}),f(e.edges(),function(s){var c=e.edge(s);f(c.points,function(l){l.x-=n,l.y-=t}),Object.prototype.hasOwnProperty.call(c,"x")&&(c.x-=n),Object.prototype.hasOwnProperty.call(c,"y")&&(c.y-=t)}),i.width=r-n+o,i.height=a-t+u}function Hr(e){f(e.edges(),function(n){var r=e.edge(n),t=e.node(n.v),a=e.node(n.w),i,o;r.points?(i=r.points[0],o=r.points[r.points.length-1]):(r.points=[],i=a,o=t),r.points.unshift(re(t,i)),r.points.push(re(a,o))})}function Jr(e){f(e.edges(),function(n){var r=e.edge(n);if(Object.prototype.hasOwnProperty.call(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function Zr(e){f(e.edges(),function(n){var r=e.edge(n);r.reversed&&r.points.reverse()})}function Kr(e){f(e.nodes(),function(n){if(e.children(n).length){var r=e.node(n),t=e.node(r.borderTop),a=e.node(r.borderBottom),i=e.node(T(r.borderLeft)),o=e.node(T(r.borderRight));r.width=Math.abs(o.x-i.x),r.height=Math.abs(a.y-t.y),r.x=i.x+r.width/2,r.y=t.y+r.height/2}}),f(e.nodes(),function(n){e.node(n).dummy==="border"&&e.removeNode(n)})}function Qr(e){f(e.edges(),function(n){if(n.v===n.w){var r=e.node(n.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:n,label:e.edge(n)}),e.removeEdge(n)}})}function et(e){var n=F(e);f(n,function(r){var t=0;f(r,function(a,i){var o=e.node(a);o.order=i+t,f(o.selfEdges,function(u){L(e,"selfedge",{width:u.label.width,height:u.label.height,rank:o.rank,order:i+ ++t,e:u.e,label:u.label},"_se")}),delete o.selfEdges})})}function nt(e){f(e.nodes(),function(n){var r=e.node(n);if(r.dummy==="selfedge"){var t=e.node(r.e.v),a=t.x+t.width/2,i=t.y,o=r.x-a,u=t.height/2;e.setEdge(r.e,r.label),e.removeNode(n),r.label.points=[{x:a+2*o/3,y:i-u},{x:a+5*o/6,y:i-u},{x:a+o,y:i},{x:a+5*o/6,y:i+u},{x:a+2*o/3,y:i+u}],r.label.x=r.x,r.label.y=r.y}})}function Y(e,n){return S(I(e,n),Number)}function D(e){var n={};return f(e,function(r,t){n[t.toLowerCase()]=r}),n}export{ot as l}; +import{G as g}from"./md-graph-tF8klDvC.js";import{b as Te,p as ce,q as le,g as z,e as ee,l as j,o as Ie,s as Me,c as Se,u as Fe,d as f,i as m,f as _,v as x,r as M}from"./md-_baseUniq-CaouebKG.js";import{f as O,b as he,a as je,c as Ve,d as Ae,t as V,m as w,e as P,h as ve,g as U,l as T,i as Be}from"./md-_basePickBy-BEC9IKhF.js";import{b6 as Ge,b7 as Ye,b8 as De,aO as qe,b9 as $e,aS as pe,aR as we,ba as We,aN as q,aA as ze,aU as Ue,aC as Xe,bb as $}from"./md-index-1F_vrIf8.js";function He(e){return Ge(Ye(e,void 0,O),e+"")}var Je=1,Ze=4;function Ke(e){return Te(e,Je|Ze)}function Qe(e,n){return e==null?e:De(e,ce(n),qe)}function en(e,n){return e&&le(e,ce(n))}function nn(e,n){return e>n}function S(e,n){var r={};return n=z(n),le(e,function(t,a,i){$e(r,a,n(t,a,i))}),r}function y(e){return e&&e.length?he(e,pe,nn):void 0}function X(e,n){return e&&e.length?he(e,z(n),je):void 0}function rn(e,n){var r=e.length;for(e.sort(n);r--;)e[r]=e[r].value;return e}function tn(e,n){if(e!==n){var r=e!==void 0,t=e===null,a=e===e,i=ee(e),o=n!==void 0,u=n===null,d=n===n,s=ee(n);if(!u&&!s&&!i&&e>n||i&&o&&d&&!u&&!s||t&&o&&d||!r&&d||!a)return 1;if(!t&&!i&&!s&&e=u)return d;var s=r[t];return d*(s=="desc"?-1:1)}}return e.index-n.index}function on(e,n,r){n.length?n=j(n,function(i){return we(i)?function(o){return Ie(o,i.length===1?i[0]:i)}:i}):n=[pe];var t=-1;n=j(n,We(z));var a=Ve(e,function(i,o,u){var d=j(n,function(s){return s(i)});return{criteria:d,index:++t,value:i}});return rn(a,function(i,o){return an(i,o,r)})}function un(e,n){return Ae(e,n,function(r,t){return Me(e,t)})}var I=He(function(e,n){return e==null?{}:un(e,n)}),dn=Math.ceil,sn=Math.max;function fn(e,n,r,t){for(var a=-1,i=sn(dn((n-e)/(r||1)),0),o=Array(i);i--;)o[++a]=e,e+=r;return o}function cn(e){return function(n,r,t){return t&&typeof t!="number"&&q(n,r,t)&&(r=t=void 0),n=V(n),r===void 0?(r=n,n=0):r=V(r),t=t===void 0?n1&&q(e,n[0],n[1])?n=[]:r>2&&q(n[0],n[1],n[2])&&(n=[n[0]]),on(e,Se(n),[])}),ln=0;function H(e){var n=++ln;return Fe(e)+n}function hn(e,n,r){for(var t=-1,a=e.length,i=n.length,o={};++t0;--u)if(o=n[u].dequeue(),o){t=t.concat(A(e,n,r,o,!0));break}}}return t}function A(e,n,r,t,a){var i=a?[]:void 0;return f(e.inEdges(t.v),function(o){var u=e.edge(o),d=e.node(o.v);a&&i.push({v:o.v,w:o.w}),d.out-=u,W(n,r,d)}),f(e.outEdges(t.v),function(o){var u=e.edge(o),d=o.w,s=e.node(d);s.in-=u,W(n,r,s)}),e.removeNode(t.v),i}function yn(e,n){var r=new g,t=0,a=0;f(e.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),f(e.edges(),function(u){var d=r.edge(u.v,u.w)||0,s=n(u),c=d+s;r.setEdge(u.v,u.w,c),a=Math.max(a,r.node(u.v).out+=s),t=Math.max(t,r.node(u.w).in+=s)});var i=E(a+t+3).map(function(){return new pn}),o=t+1;return f(r.nodes(),function(u){W(i,o,r.node(u))}),{graph:r,buckets:i,zeroIdx:o}}function W(e,n,r){r.out?r.in?e[r.out-r.in+n].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}function kn(e){var n=e.graph().acyclicer==="greedy"?mn(e,r(e)):xn(e);f(n,function(t){var a=e.edge(t);e.removeEdge(t),a.forwardName=t.name,a.reversed=!0,e.setEdge(t.w,t.v,a,H("rev"))});function r(t){return function(a){return t.edge(a).weight}}}function xn(e){var n=[],r={},t={};function a(i){Object.prototype.hasOwnProperty.call(t,i)||(t[i]=!0,r[i]=!0,f(e.outEdges(i),function(o){Object.prototype.hasOwnProperty.call(r,o.w)?n.push(o):a(o.w)}),delete r[i])}return f(e.nodes(),a),n}function En(e){f(e.edges(),function(n){var r=e.edge(n);if(r.reversed){e.removeEdge(n);var t=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(n.w,n.v,r,t)}})}function L(e,n,r,t){var a;do a=H(t);while(e.hasNode(a));return r.dummy=n,e.setNode(a,r),a}function On(e){var n=new g().setGraph(e.graph());return f(e.nodes(),function(r){n.setNode(r,e.node(r))}),f(e.edges(),function(r){var t=n.edge(r.v,r.w)||{weight:0,minlen:1},a=e.edge(r);n.setEdge(r.v,r.w,{weight:t.weight+a.weight,minlen:Math.max(t.minlen,a.minlen)})}),n}function be(e){var n=new g({multigraph:e.isMultigraph()}).setGraph(e.graph());return f(e.nodes(),function(r){e.children(r).length||n.setNode(r,e.node(r))}),f(e.edges(),function(r){n.setEdge(r,e.edge(r))}),n}function re(e,n){var r=e.x,t=e.y,a=n.x-r,i=n.y-t,o=e.width/2,u=e.height/2;if(!a&&!i)throw new Error("Not possible to find intersection inside of the rectangle");var d,s;return Math.abs(i)*o>Math.abs(a)*u?(i<0&&(u=-u),d=u*a/i,s=u):(a<0&&(o=-o),d=o,s=o*i/a),{x:r+d,y:t+s}}function F(e){var n=w(E(me(e)+1),function(){return[]});return f(e.nodes(),function(r){var t=e.node(r),a=t.rank;m(a)||(n[a][t.order]=r)}),n}function Ln(e){var n=P(w(e.nodes(),function(r){return e.node(r).rank}));f(e.nodes(),function(r){var t=e.node(r);ve(t,"rank")&&(t.rank-=n)})}function Nn(e){var n=P(w(e.nodes(),function(i){return e.node(i).rank})),r=[];f(e.nodes(),function(i){var o=e.node(i).rank-n;r[o]||(r[o]=[]),r[o].push(i)});var t=0,a=e.graph().nodeRankFactor;f(r,function(i,o){m(i)&&o%a!==0?--t:t&&f(i,function(u){e.node(u).rank+=t})})}function te(e,n,r,t){var a={width:0,height:0};return arguments.length>=4&&(a.rank=r,a.order=t),L(e,"border",a,n)}function me(e){return y(w(e.nodes(),function(n){var r=e.node(n).rank;if(!m(r))return r}))}function Pn(e,n){var r={lhs:[],rhs:[]};return f(e,function(t){n(t)?r.lhs.push(t):r.rhs.push(t)}),r}function Cn(e,n){return n()}function _n(e){function n(r){var t=e.children(r),a=e.node(r);if(t.length&&f(t,n),Object.prototype.hasOwnProperty.call(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var i=a.minRank,o=a.maxRank+1;io.lim&&(u=o,d=!0);var s=_(n.edges(),function(c){return d===oe(e,e.node(c.v),u)&&d!==oe(e,e.node(c.w),u)});return X(s,function(c){return C(n,c)})}function Pe(e,n,r,t){var a=r.v,i=r.w;e.removeEdge(a,i),e.setEdge(t.v,t.w,{}),K(e),Z(e,n),$n(e,n)}function $n(e,n){var r=U(e.nodes(),function(a){return!n.node(a).parent}),t=Dn(e,r);t=t.slice(1),f(t,function(a){var i=e.node(a).parent,o=n.edge(a,i),u=!1;o||(o=n.edge(i,a),u=!0),n.node(a).rank=n.node(i).rank+(u?o.minlen:-o.minlen)})}function Wn(e,n,r){return e.hasEdge(n,r)}function oe(e,n,r){return r.low<=n.lim&&n.lim<=r.lim}function zn(e){switch(e.graph().ranker){case"network-simplex":ue(e);break;case"tight-tree":Xn(e);break;case"longest-path":Un(e);break;default:ue(e)}}var Un=J;function Xn(e){J(e),ye(e)}function ue(e){k(e)}function Hn(e){var n=L(e,"root",{},"_root"),r=Jn(e),t=y(x(r))-1,a=2*t+1;e.graph().nestingRoot=n,f(e.edges(),function(o){e.edge(o).minlen*=a});var i=Zn(e)+1;f(e.children(),function(o){Ce(e,n,a,i,t,r,o)}),e.graph().nodeRankFactor=a}function Ce(e,n,r,t,a,i,o){var u=e.children(o);if(!u.length){o!==n&&e.setEdge(n,o,{weight:0,minlen:r});return}var d=te(e,"_bt"),s=te(e,"_bb"),c=e.node(o);e.setParent(d,o),c.borderTop=d,e.setParent(s,o),c.borderBottom=s,f(u,function(l){Ce(e,n,r,t,a,i,l);var h=e.node(l),v=h.borderTop?h.borderTop:l,p=h.borderBottom?h.borderBottom:l,b=h.borderTop?t:2*t,N=v!==p?1:a-i[o]+1;e.setEdge(d,v,{weight:b,minlen:N,nestingEdge:!0}),e.setEdge(p,s,{weight:b,minlen:N,nestingEdge:!0})}),e.parent(o)||e.setEdge(n,d,{weight:0,minlen:a+i[o]})}function Jn(e){var n={};function r(t,a){var i=e.children(t);i&&i.length&&f(i,function(o){r(o,a+1)}),n[t]=a}return f(e.children(),function(t){r(t,1)}),n}function Zn(e){return M(e.edges(),function(n,r){return n+e.edge(r).weight},0)}function Kn(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,f(e.edges(),function(r){var t=e.edge(r);t.nestingEdge&&e.removeEdge(r)})}function Qn(e,n,r){var t={},a;f(r,function(i){for(var o=e.parent(i),u,d;o;){if(u=e.parent(o),u?(d=t[u],t[u]=o):(d=a,a=o),d&&d!==o){n.setEdge(d,o);return}o=u}})}function er(e,n,r){var t=nr(e),a=new g({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(i){return e.node(i)});return f(e.nodes(),function(i){var o=e.node(i),u=e.parent(i);(o.rank===n||o.minRank<=n&&n<=o.maxRank)&&(a.setNode(i),a.setParent(i,u||t),f(e[r](i),function(d){var s=d.v===i?d.w:d.v,c=a.edge(s,i),l=m(c)?0:c.weight;a.setEdge(s,i,{weight:e.edge(d).weight+l})}),Object.prototype.hasOwnProperty.call(o,"minRank")&&a.setNode(i,{borderLeft:o.borderLeft[n],borderRight:o.borderRight[n]}))}),a}function nr(e){for(var n;e.hasNode(n=H("_root")););return n}function rr(e,n){for(var r=0,t=1;t0;)c%2&&(l+=u[c+1]),c=c-1>>1,u[c]+=s.weight;d+=s.weight*l})),d}function ar(e){var n={},r=_(e.nodes(),function(u){return!e.children(u).length}),t=y(w(r,function(u){return e.node(u).rank})),a=w(E(t+1),function(){return[]});function i(u){if(!ve(n,u)){n[u]=!0;var d=e.node(u);a[d.rank].push(u),f(e.successors(u),i)}}var o=R(r,function(u){return e.node(u).rank});return f(o,i),a}function ir(e,n){return w(n,function(r){var t=e.inEdges(r);if(t.length){var a=M(t,function(i,o){var u=e.edge(o),d=e.node(o.v);return{sum:i.sum+u.weight*d.order,weight:i.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:a.sum/a.weight,weight:a.weight}}else return{v:r}})}function or(e,n){var r={};f(e,function(a,i){var o=r[a.v]={indegree:0,in:[],out:[],vs:[a.v],i};m(a.barycenter)||(o.barycenter=a.barycenter,o.weight=a.weight)}),f(n.edges(),function(a){var i=r[a.v],o=r[a.w];!m(i)&&!m(o)&&(o.indegree++,i.out.push(r[a.w]))});var t=_(r,function(a){return!a.indegree});return ur(t)}function ur(e){var n=[];function r(i){return function(o){o.merged||(m(o.barycenter)||m(i.barycenter)||o.barycenter>=i.barycenter)&&dr(i,o)}}function t(i){return function(o){o.in.push(i),--o.indegree===0&&e.push(o)}}for(;e.length;){var a=e.pop();n.push(a),f(a.in.reverse(),r(a)),f(a.out,t(a))}return w(_(n,function(i){return!i.merged}),function(i){return I(i,["vs","i","barycenter","weight"])})}function dr(e,n){var r=0,t=0;e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=r/t,e.weight=t,e.i=Math.min(n.i,e.i),n.merged=!0}function sr(e,n){var r=Pn(e,function(c){return Object.prototype.hasOwnProperty.call(c,"barycenter")}),t=r.lhs,a=R(r.rhs,function(c){return-c.i}),i=[],o=0,u=0,d=0;t.sort(fr(!!n)),d=de(i,a,d),f(t,function(c){d+=c.vs.length,i.push(c.vs),o+=c.barycenter*c.weight,u+=c.weight,d=de(i,a,d)});var s={vs:O(i)};return u&&(s.barycenter=o/u,s.weight=u),s}function de(e,n,r){for(var t;n.length&&(t=T(n)).i<=r;)n.pop(),e.push(t.vs),r++;return r}function fr(e){return function(n,r){return n.barycenterr.barycenter?1:e?r.i-n.i:n.i-r.i}}function _e(e,n,r,t){var a=e.children(n),i=e.node(n),o=i?i.borderLeft:void 0,u=i?i.borderRight:void 0,d={};o&&(a=_(a,function(p){return p!==o&&p!==u}));var s=ir(e,a);f(s,function(p){if(e.children(p.v).length){var b=_e(e,p.v,r,t);d[p.v]=b,Object.prototype.hasOwnProperty.call(b,"barycenter")&&lr(p,b)}});var c=or(s,r);cr(c,d);var l=sr(c,t);if(o&&(l.vs=O([o,l.vs,u]),e.predecessors(o).length)){var h=e.node(e.predecessors(o)[0]),v=e.node(e.predecessors(u)[0]);Object.prototype.hasOwnProperty.call(l,"barycenter")||(l.barycenter=0,l.weight=0),l.barycenter=(l.barycenter*l.weight+h.order+v.order)/(l.weight+2),l.weight+=2}return l}function cr(e,n){f(e,function(r){r.vs=O(r.vs.map(function(t){return n[t]?n[t].vs:t}))})}function lr(e,n){m(e.barycenter)?(e.barycenter=n.barycenter,e.weight=n.weight):(e.barycenter=(e.barycenter*e.weight+n.barycenter*n.weight)/(e.weight+n.weight),e.weight+=n.weight)}function hr(e){var n=me(e),r=se(e,E(1,n+1),"inEdges"),t=se(e,E(n-1,-1,-1),"outEdges"),a=ar(e);fe(e,a);for(var i=Number.POSITIVE_INFINITY,o,u=0,d=0;d<4;++u,++d){vr(u%2?r:t,u%4>=2),a=F(e);var s=rr(e,a);so||u>n[d].lim));for(s=d,d=t;(d=e.parent(d))!==s;)i.push(d);return{path:a.concat(i.reverse()),lca:s}}function br(e){var n={},r=0;function t(a){var i=r;f(e.children(a),t),n[a]={low:i,lim:r++}}return f(e.children(),t),n}function mr(e,n){var r={};function t(a,i){var o=0,u=0,d=a.length,s=T(i);return f(i,function(c,l){var h=yr(e,c),v=h?e.node(h).order:d;(h||c===s)&&(f(i.slice(u,l+1),function(p){f(e.predecessors(p),function(b){var N=e.node(b),Q=N.order;(Qs)&&Re(r,h,c)})})}function a(i,o){var u=-1,d,s=0;return f(o,function(c,l){if(e.node(c).dummy==="border"){var h=e.predecessors(c);h.length&&(d=e.node(h[0]).order,t(o,s,l,u,d),s=l,u=d)}t(o,s,o.length,d,i.length)}),o}return M(n,a),r}function yr(e,n){if(e.node(n).dummy)return U(e.predecessors(n),function(r){return e.node(r).dummy})}function Re(e,n,r){if(n>r){var t=n;n=r,r=t}var a=e[n];a||(e[n]=a={}),a[r]=!0}function kr(e,n,r){if(n>r){var t=n;n=r,r=t}return!!e[n]&&Object.prototype.hasOwnProperty.call(e[n],r)}function xr(e,n,r,t){var a={},i={},o={};return f(n,function(u){f(u,function(d,s){a[d]=d,i[d]=d,o[d]=s})}),f(n,function(u){var d=-1;f(u,function(s){var c=t(s);if(c.length){c=R(c,function(b){return o[b]});for(var l=(c.length-1)/2,h=Math.floor(l),v=Math.ceil(l);h<=v;++h){var p=c[h];i[s]===s&&d{var t=r(" buildLayoutGraph",()=>qr(e));r(" runLayout",()=>Mr(t,r)),r(" updateInputGraph",()=>Sr(e,t))})}function Mr(e,n){n(" makeSpaceForEdgeLabels",()=>$r(e)),n(" removeSelfEdges",()=>Qr(e)),n(" acyclic",()=>kn(e)),n(" nestingGraph.run",()=>Hn(e)),n(" rank",()=>zn(be(e))),n(" injectEdgeLabelProxies",()=>Wr(e)),n(" removeEmptyRanks",()=>Nn(e)),n(" nestingGraph.cleanup",()=>Kn(e)),n(" normalizeRanks",()=>Ln(e)),n(" assignRankMinMax",()=>zr(e)),n(" removeEdgeLabelProxies",()=>Ur(e)),n(" normalize.run",()=>Sn(e)),n(" parentDummyChains",()=>pr(e)),n(" addBorderSegments",()=>_n(e)),n(" order",()=>hr(e)),n(" insertSelfEdges",()=>et(e)),n(" adjustCoordinateSystem",()=>Rn(e)),n(" position",()=>Tr(e)),n(" positionSelfEdges",()=>nt(e)),n(" removeBorderNodes",()=>Kr(e)),n(" normalize.undo",()=>jn(e)),n(" fixupEdgeLabelCoords",()=>Jr(e)),n(" undoCoordinateSystem",()=>Tn(e)),n(" translateGraph",()=>Xr(e)),n(" assignNodeIntersects",()=>Hr(e)),n(" reversePoints",()=>Zr(e)),n(" acyclic.undo",()=>En(e))}function Sr(e,n){f(e.nodes(),function(r){var t=e.node(r),a=n.node(r);t&&(t.x=a.x,t.y=a.y,n.children(r).length&&(t.width=a.width,t.height=a.height))}),f(e.edges(),function(r){var t=e.edge(r),a=n.edge(r);t.points=a.points,Object.prototype.hasOwnProperty.call(a,"x")&&(t.x=a.x,t.y=a.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height}var Fr=["nodesep","edgesep","ranksep","marginx","marginy"],jr={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Vr=["acyclicer","ranker","rankdir","align"],Ar=["width","height"],Br={width:0,height:0},Gr=["minlen","weight","width","height","labeloffset"],Yr={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Dr=["labelpos"];function qr(e){var n=new g({multigraph:!0,compound:!0}),r=D(e.graph());return n.setGraph($({},jr,Y(r,Fr),I(r,Vr))),f(e.nodes(),function(t){var a=D(e.node(t));n.setNode(t,Be(Y(a,Ar),Br)),n.setParent(t,e.parent(t))}),f(e.edges(),function(t){var a=D(e.edge(t));n.setEdge(t,$({},Yr,Y(a,Gr),I(a,Dr)))}),n}function $r(e){var n=e.graph();n.ranksep/=2,f(e.edges(),function(r){var t=e.edge(r);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(n.rankdir==="TB"||n.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function Wr(e){f(e.edges(),function(n){var r=e.edge(n);if(r.width&&r.height){var t=e.node(n.v),a=e.node(n.w),i={rank:(a.rank-t.rank)/2+t.rank,e:n};L(e,"edge-proxy",i,"_ep")}})}function zr(e){var n=0;f(e.nodes(),function(r){var t=e.node(r);t.borderTop&&(t.minRank=e.node(t.borderTop).rank,t.maxRank=e.node(t.borderBottom).rank,n=y(n,t.maxRank))}),e.graph().maxRank=n}function Ur(e){f(e.nodes(),function(n){var r=e.node(n);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(n))})}function Xr(e){var n=Number.POSITIVE_INFINITY,r=0,t=Number.POSITIVE_INFINITY,a=0,i=e.graph(),o=i.marginx||0,u=i.marginy||0;function d(s){var c=s.x,l=s.y,h=s.width,v=s.height;n=Math.min(n,c-h/2),r=Math.max(r,c+h/2),t=Math.min(t,l-v/2),a=Math.max(a,l+v/2)}f(e.nodes(),function(s){d(e.node(s))}),f(e.edges(),function(s){var c=e.edge(s);Object.prototype.hasOwnProperty.call(c,"x")&&d(c)}),n-=o,t-=u,f(e.nodes(),function(s){var c=e.node(s);c.x-=n,c.y-=t}),f(e.edges(),function(s){var c=e.edge(s);f(c.points,function(l){l.x-=n,l.y-=t}),Object.prototype.hasOwnProperty.call(c,"x")&&(c.x-=n),Object.prototype.hasOwnProperty.call(c,"y")&&(c.y-=t)}),i.width=r-n+o,i.height=a-t+u}function Hr(e){f(e.edges(),function(n){var r=e.edge(n),t=e.node(n.v),a=e.node(n.w),i,o;r.points?(i=r.points[0],o=r.points[r.points.length-1]):(r.points=[],i=a,o=t),r.points.unshift(re(t,i)),r.points.push(re(a,o))})}function Jr(e){f(e.edges(),function(n){var r=e.edge(n);if(Object.prototype.hasOwnProperty.call(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function Zr(e){f(e.edges(),function(n){var r=e.edge(n);r.reversed&&r.points.reverse()})}function Kr(e){f(e.nodes(),function(n){if(e.children(n).length){var r=e.node(n),t=e.node(r.borderTop),a=e.node(r.borderBottom),i=e.node(T(r.borderLeft)),o=e.node(T(r.borderRight));r.width=Math.abs(o.x-i.x),r.height=Math.abs(a.y-t.y),r.x=i.x+r.width/2,r.y=t.y+r.height/2}}),f(e.nodes(),function(n){e.node(n).dummy==="border"&&e.removeNode(n)})}function Qr(e){f(e.edges(),function(n){if(n.v===n.w){var r=e.node(n.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:n,label:e.edge(n)}),e.removeEdge(n)}})}function et(e){var n=F(e);f(n,function(r){var t=0;f(r,function(a,i){var o=e.node(a);o.order=i+t,f(o.selfEdges,function(u){L(e,"selfedge",{width:u.label.width,height:u.label.height,rank:o.rank,order:i+ ++t,e:u.e,label:u.label},"_se")}),delete o.selfEdges})})}function nt(e){f(e.nodes(),function(n){var r=e.node(n);if(r.dummy==="selfedge"){var t=e.node(r.e.v),a=t.x+t.width/2,i=t.y,o=r.x-a,u=t.height/2;e.setEdge(r.e,r.label),e.removeNode(n),r.label.points=[{x:a+2*o/3,y:i-u},{x:a+5*o/6,y:i-u},{x:a+o,y:i},{x:a+5*o/6,y:i+u},{x:a+2*o/3,y:i+u}],r.label.x=r.x,r.label.y=r.y}})}function Y(e,n){return S(I(e,n),Number)}function D(e){var n={};return f(e,function(r,t){n[t.toLowerCase()]=r}),n}export{ot as l}; diff --git a/static/js/md-linear-D6Y5aq77.js b/static/js/md-linear-Co1Vf5c0.js similarity index 99% rename from static/js/md-linear-D6Y5aq77.js rename to static/js/md-linear-Co1Vf5c0.js index cb2d99ea5..d5b539dae 100644 --- a/static/js/md-linear-D6Y5aq77.js +++ b/static/js/md-linear-Co1Vf5c0.js @@ -1 +1 @@ -import{b1 as un,b2 as I,b3 as U,b4 as fn,b5 as Y}from"./md-index-Pj6M4nIk.js";import{i as cn}from"./md-init-Gi6I4Gst.js";function F(n,t){return n==null||t==null?NaN:nt?1:n>=t?0:NaN}function hn(n,t){return n==null||t==null?NaN:tn?1:t>=n?0:NaN}function _(n){let t,e,r;n.length!==2?(t=F,e=(u,c)=>F(n(u),c),r=(u,c)=>n(u)-c):(t=n===F||n===hn?n:mn,e=n,r=n);function i(u,c,o=0,s=u.length){if(o>>1;e(u[h],c)<0?o=h+1:s=h}while(o>>1;e(u[h],c)<=0?o=h+1:s=h}while(oo&&r(u[h-1],c)>-r(u[h],c)?h-1:h}return{left:i,center:a,right:f}}function mn(){return 0}function ln(n){return n===null?NaN:+n}const sn=_(F),dn=sn.right;_(ln).center;const gn=Math.sqrt(50),yn=Math.sqrt(10),Mn=Math.sqrt(2);function R(n,t,e){const r=(t-n)/Math.max(0,e),i=Math.floor(Math.log10(r)),f=r/Math.pow(10,i),a=f>=gn?10:f>=yn?5:f>=Mn?2:1;let u,c,o;return i<0?(o=Math.pow(10,-i)/a,u=Math.round(n*o),c=Math.round(t*o),u/ot&&--c,o=-o):(o=Math.pow(10,i)*a,u=Math.round(n/o),c=Math.round(t/o),u*ot&&--c),c0))return[];if(n===t)return[n];const r=t=i))return[];const u=f-i+1,c=new Array(u);if(r)if(a<0)for(let o=0;o=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function E(n,t){if((e=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var e,r=n.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+n.slice(e+1)]}function v(n){return n=E(Math.abs(n)),n?n[1]:NaN}function jn(n,t){return function(e,r){for(var i=e.length,f=[],a=0,u=n[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),f.push(e.substring(i-=u,i+u)),!((c+=u+1)>r));)u=n[a=(a+1)%n.length];return f.reverse().join(t)}}function Pn(n){return function(t){return t.replace(/[0-9]/g,function(e){return n[+e]})}}var zn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function D(n){if(!(t=zn.exec(n)))throw new Error("invalid format: "+n);var t;return new B({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}D.prototype=B.prototype;function B(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}B.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function $n(n){n:for(var t=n.length,e=1,r=-1,i;e0&&(r=0);break}return r>0?n.slice(0,r)+n.slice(i+1):n}var nn;function Fn(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1],f=i-(nn=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return f===a?r:f>a?r+new Array(f-a+1).join("0"):f>0?r.slice(0,f)+"."+r.slice(f):"0."+new Array(1-f).join("0")+E(n,Math.max(0,t+f-1))[0]}function Z(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const H={"%":(n,t)=>(n*100).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:Sn,e:(n,t)=>n.toExponential(t),f:(n,t)=>n.toFixed(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>Z(n*100,t),r:Z,s:Fn,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function J(n){return n}var K=Array.prototype.map,Q=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Rn(n){var t=n.grouping===void 0||n.thousands===void 0?J:jn(K.call(n.grouping,Number),n.thousands+""),e=n.currency===void 0?"":n.currency[0]+"",r=n.currency===void 0?"":n.currency[1]+"",i=n.decimal===void 0?".":n.decimal+"",f=n.numerals===void 0?J:Pn(K.call(n.numerals,String)),a=n.percent===void 0?"%":n.percent+"",u=n.minus===void 0?"−":n.minus+"",c=n.nan===void 0?"NaN":n.nan+"";function o(h){h=D(h);var l=h.fill,p=h.align,y=h.sign,b=h.symbol,k=h.zero,S=h.width,T=h.comma,w=h.precision,G=h.trim,d=h.type;d==="n"?(T=!0,d="g"):H[d]||(w===void 0&&(w=12),G=!0,d="g"),(k||l==="0"&&p==="=")&&(k=!0,l="0",p="=");var en=b==="$"?e:b==="#"&&/[boxX]/.test(d)?"0"+d.toLowerCase():"",on=b==="$"?r:/[%p]/.test(d)?a:"",O=H[d],an=/[defgprs%]/.test(d);w=w===void 0?6:/[gprs]/.test(d)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function V(m){var N=en,g=on,x,X,j;if(d==="c")g=O(m)+g,m="";else{m=+m;var P=m<0||1/m<0;if(m=isNaN(m)?c:O(Math.abs(m),w),G&&(m=$n(m)),P&&+m==0&&y!=="+"&&(P=!1),N=(P?y==="("?y:u:y==="-"||y==="("?"":y)+N,g=(d==="s"?Q[8+nn/3]:"")+g+(P&&y==="("?")":""),an){for(x=-1,X=m.length;++xj||j>57){g=(j===46?i+m.slice(x+1):m.slice(x))+g,m=m.slice(0,x);break}}}T&&!k&&(m=t(m,1/0));var z=N.length+m.length+g.length,M=z>1)+N+m+g+M.slice(z);break;default:m=M+N+m+g;break}return f(m)}return V.toString=function(){return h+""},V}function s(h,l){var p=o((h=D(h),h.type="f",h)),y=Math.max(-8,Math.min(8,Math.floor(v(l)/3)))*3,b=Math.pow(10,-y),k=Q[8+y/3];return function(S){return p(b*S)+k}}return{format:o,formatPrefix:s}}var $,tn,rn;En({thousands:",",grouping:[3],currency:["$",""]});function En(n){return $=Rn(n),tn=$.format,rn=$.formatPrefix,$}function Dn(n){return Math.max(0,-v(Math.abs(n)))}function Tn(n,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(v(t)/3)))*3-v(Math.abs(n)))}function In(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,v(t)-v(n))+1}function Ln(n){return function(){return n}}function qn(n){return+n}var W=[0,1];function A(n){return n}function q(n,t){return(t-=n=+n)?function(e){return(e-n)/t}:Ln(isNaN(t)?NaN:.5)}function Cn(n,t){var e;return n>t&&(e=n,n=t,t=e),function(r){return Math.max(n,Math.min(t,r))}}function Bn(n,t,e){var r=n[0],i=n[1],f=t[0],a=t[1];return i2?Gn:Bn,c=o=null,h}function h(l){return l==null||isNaN(l=+l)?f:(c||(c=u(n.map(r),t,e)))(r(a(l)))}return h.invert=function(l){return a(i((o||(o=u(t,n.map(r),I)))(l)))},h.domain=function(l){return arguments.length?(n=Array.from(l,qn),s()):n.slice()},h.range=function(l){return arguments.length?(t=Array.from(l),s()):t.slice()},h.rangeRound=function(l){return t=Array.from(l),e=bn,s()},h.clamp=function(l){return arguments.length?(a=l?!0:A,s()):a!==A},h.interpolate=function(l){return arguments.length?(e=l,s()):e},h.unknown=function(l){return arguments.length?(f=l,h):f},function(l,p){return r=l,i=p,s()}}function Xn(){return Vn()(A,A)}function Un(n,t,e,r){var i=wn(n,t,e),f;switch(r=D(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(t));return r.precision==null&&!isNaN(f=Tn(i,a))&&(r.precision=f),rn(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(f=In(i,Math.max(Math.abs(n),Math.abs(t))))&&(r.precision=f-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(f=Dn(i))&&(r.precision=f-(r.type==="%")*2);break}}return tn(r)}function Yn(n){var t=n.domain;return n.ticks=function(e){var r=t();return pn(r[0],r[r.length-1],e??10)},n.tickFormat=function(e,r){var i=t();return Un(i[0],i[i.length-1],e??10,r)},n.nice=function(e){e==null&&(e=10);var r=t(),i=0,f=r.length-1,a=r[i],u=r[f],c,o,s=10;for(u0;){if(o=L(a,u,e),o===c)return r[i]=a,r[f]=u,t(r);if(o>0)a=Math.floor(a/o)*o,u=Math.ceil(u/o)*o;else if(o<0)a=Math.ceil(a*o)/o,u=Math.floor(u*o)/o;else break;c=o}return n},n}function Zn(){var n=Xn();return n.copy=function(){return On(n,Zn())},cn.apply(n,arguments),Yn(n)}export{On as a,_ as b,Xn as c,Zn as l,wn as t}; +import{b1 as un,b2 as I,b3 as U,b4 as fn,b5 as Y}from"./md-index-1F_vrIf8.js";import{i as cn}from"./md-init-Gi6I4Gst.js";function F(n,t){return n==null||t==null?NaN:nt?1:n>=t?0:NaN}function hn(n,t){return n==null||t==null?NaN:tn?1:t>=n?0:NaN}function _(n){let t,e,r;n.length!==2?(t=F,e=(u,c)=>F(n(u),c),r=(u,c)=>n(u)-c):(t=n===F||n===hn?n:mn,e=n,r=n);function i(u,c,o=0,s=u.length){if(o>>1;e(u[h],c)<0?o=h+1:s=h}while(o>>1;e(u[h],c)<=0?o=h+1:s=h}while(oo&&r(u[h-1],c)>-r(u[h],c)?h-1:h}return{left:i,center:a,right:f}}function mn(){return 0}function ln(n){return n===null?NaN:+n}const sn=_(F),dn=sn.right;_(ln).center;const gn=Math.sqrt(50),yn=Math.sqrt(10),Mn=Math.sqrt(2);function R(n,t,e){const r=(t-n)/Math.max(0,e),i=Math.floor(Math.log10(r)),f=r/Math.pow(10,i),a=f>=gn?10:f>=yn?5:f>=Mn?2:1;let u,c,o;return i<0?(o=Math.pow(10,-i)/a,u=Math.round(n*o),c=Math.round(t*o),u/ot&&--c,o=-o):(o=Math.pow(10,i)*a,u=Math.round(n/o),c=Math.round(t/o),u*ot&&--c),c0))return[];if(n===t)return[n];const r=t=i))return[];const u=f-i+1,c=new Array(u);if(r)if(a<0)for(let o=0;o=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function E(n,t){if((e=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var e,r=n.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+n.slice(e+1)]}function v(n){return n=E(Math.abs(n)),n?n[1]:NaN}function jn(n,t){return function(e,r){for(var i=e.length,f=[],a=0,u=n[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),f.push(e.substring(i-=u,i+u)),!((c+=u+1)>r));)u=n[a=(a+1)%n.length];return f.reverse().join(t)}}function Pn(n){return function(t){return t.replace(/[0-9]/g,function(e){return n[+e]})}}var zn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function D(n){if(!(t=zn.exec(n)))throw new Error("invalid format: "+n);var t;return new B({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}D.prototype=B.prototype;function B(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}B.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function $n(n){n:for(var t=n.length,e=1,r=-1,i;e0&&(r=0);break}return r>0?n.slice(0,r)+n.slice(i+1):n}var nn;function Fn(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1],f=i-(nn=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return f===a?r:f>a?r+new Array(f-a+1).join("0"):f>0?r.slice(0,f)+"."+r.slice(f):"0."+new Array(1-f).join("0")+E(n,Math.max(0,t+f-1))[0]}function Z(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const H={"%":(n,t)=>(n*100).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:Sn,e:(n,t)=>n.toExponential(t),f:(n,t)=>n.toFixed(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>Z(n*100,t),r:Z,s:Fn,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function J(n){return n}var K=Array.prototype.map,Q=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Rn(n){var t=n.grouping===void 0||n.thousands===void 0?J:jn(K.call(n.grouping,Number),n.thousands+""),e=n.currency===void 0?"":n.currency[0]+"",r=n.currency===void 0?"":n.currency[1]+"",i=n.decimal===void 0?".":n.decimal+"",f=n.numerals===void 0?J:Pn(K.call(n.numerals,String)),a=n.percent===void 0?"%":n.percent+"",u=n.minus===void 0?"−":n.minus+"",c=n.nan===void 0?"NaN":n.nan+"";function o(h){h=D(h);var l=h.fill,p=h.align,y=h.sign,b=h.symbol,k=h.zero,S=h.width,T=h.comma,w=h.precision,G=h.trim,d=h.type;d==="n"?(T=!0,d="g"):H[d]||(w===void 0&&(w=12),G=!0,d="g"),(k||l==="0"&&p==="=")&&(k=!0,l="0",p="=");var en=b==="$"?e:b==="#"&&/[boxX]/.test(d)?"0"+d.toLowerCase():"",on=b==="$"?r:/[%p]/.test(d)?a:"",O=H[d],an=/[defgprs%]/.test(d);w=w===void 0?6:/[gprs]/.test(d)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function V(m){var N=en,g=on,x,X,j;if(d==="c")g=O(m)+g,m="";else{m=+m;var P=m<0||1/m<0;if(m=isNaN(m)?c:O(Math.abs(m),w),G&&(m=$n(m)),P&&+m==0&&y!=="+"&&(P=!1),N=(P?y==="("?y:u:y==="-"||y==="("?"":y)+N,g=(d==="s"?Q[8+nn/3]:"")+g+(P&&y==="("?")":""),an){for(x=-1,X=m.length;++xj||j>57){g=(j===46?i+m.slice(x+1):m.slice(x))+g,m=m.slice(0,x);break}}}T&&!k&&(m=t(m,1/0));var z=N.length+m.length+g.length,M=z>1)+N+m+g+M.slice(z);break;default:m=M+N+m+g;break}return f(m)}return V.toString=function(){return h+""},V}function s(h,l){var p=o((h=D(h),h.type="f",h)),y=Math.max(-8,Math.min(8,Math.floor(v(l)/3)))*3,b=Math.pow(10,-y),k=Q[8+y/3];return function(S){return p(b*S)+k}}return{format:o,formatPrefix:s}}var $,tn,rn;En({thousands:",",grouping:[3],currency:["$",""]});function En(n){return $=Rn(n),tn=$.format,rn=$.formatPrefix,$}function Dn(n){return Math.max(0,-v(Math.abs(n)))}function Tn(n,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(v(t)/3)))*3-v(Math.abs(n)))}function In(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,v(t)-v(n))+1}function Ln(n){return function(){return n}}function qn(n){return+n}var W=[0,1];function A(n){return n}function q(n,t){return(t-=n=+n)?function(e){return(e-n)/t}:Ln(isNaN(t)?NaN:.5)}function Cn(n,t){var e;return n>t&&(e=n,n=t,t=e),function(r){return Math.max(n,Math.min(t,r))}}function Bn(n,t,e){var r=n[0],i=n[1],f=t[0],a=t[1];return i2?Gn:Bn,c=o=null,h}function h(l){return l==null||isNaN(l=+l)?f:(c||(c=u(n.map(r),t,e)))(r(a(l)))}return h.invert=function(l){return a(i((o||(o=u(t,n.map(r),I)))(l)))},h.domain=function(l){return arguments.length?(n=Array.from(l,qn),s()):n.slice()},h.range=function(l){return arguments.length?(t=Array.from(l),s()):t.slice()},h.rangeRound=function(l){return t=Array.from(l),e=bn,s()},h.clamp=function(l){return arguments.length?(a=l?!0:A,s()):a!==A},h.interpolate=function(l){return arguments.length?(e=l,s()):e},h.unknown=function(l){return arguments.length?(f=l,h):f},function(l,p){return r=l,i=p,s()}}function Xn(){return Vn()(A,A)}function Un(n,t,e,r){var i=wn(n,t,e),f;switch(r=D(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(t));return r.precision==null&&!isNaN(f=Tn(i,a))&&(r.precision=f),rn(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(f=In(i,Math.max(Math.abs(n),Math.abs(t))))&&(r.precision=f-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(f=Dn(i))&&(r.precision=f-(r.type==="%")*2);break}}return tn(r)}function Yn(n){var t=n.domain;return n.ticks=function(e){var r=t();return pn(r[0],r[r.length-1],e??10)},n.tickFormat=function(e,r){var i=t();return Un(i[0],i[i.length-1],e??10,r)},n.nice=function(e){e==null&&(e=10);var r=t(),i=0,f=r.length-1,a=r[i],u=r[f],c,o,s=10;for(u0;){if(o=L(a,u,e),o===c)return r[i]=a,r[f]=u,t(r);if(o>0)a=Math.floor(a/o)*o,u=Math.ceil(u/o)*o;else if(o<0)a=Math.ceil(a*o)/o,u=Math.floor(u*o)/o;else break;c=o}return n},n}function Zn(){var n=Xn();return n.copy=function(){return On(n,Zn())},cn.apply(n,arguments),Yn(n)}export{On as a,_ as b,Xn as c,Zn as l,wn as t}; diff --git a/static/js/md-mindmap-definition-GWI6TPTV-CtuHO1si.js b/static/js/md-mindmap-definition-GWI6TPTV-CVyrDhrY.js similarity index 99% rename from static/js/md-mindmap-definition-GWI6TPTV-CtuHO1si.js rename to static/js/md-mindmap-definition-GWI6TPTV-CVyrDhrY.js index b917f4a20..3ce51c7e2 100644 --- a/static/js/md-mindmap-definition-GWI6TPTV-CtuHO1si.js +++ b/static/js/md-mindmap-definition-GWI6TPTV-CVyrDhrY.js @@ -1,4 +1,4 @@ -import{aH as at,aI as Nt,_ as S,l as z,c as ot,G as Dt,T as mt,E as tt,i as et,U as Ot,V as At,W as It,d as Ct,aj as Rt,N as xt}from"./md-index-Pj6M4nIk.js";import{c as pt}from"./md-cytoscape.esm-Do9JCuQa.js";var dt={exports:{}},it={exports:{}},nt={exports:{}},ut;function Mt(){return ut||(ut=1,function(I,w){(function(m,y){I.exports=y()})(at,function(){return function(f){var m={};function y(r){if(m[r])return m[r].exports;var t=m[r]={i:r,l:!1,exports:{}};return f[r].call(t.exports,t,t.exports,y),t.l=!0,t.exports}return y.m=f,y.c=m,y.i=function(r){return r},y.d=function(r,t,e){y.o(r,t)||Object.defineProperty(r,t,{configurable:!1,enumerable:!0,get:e})},y.n=function(r){var t=r&&r.__esModule?function(){return r.default}:function(){return r};return y.d(t,"a",t),t},y.o=function(r,t){return Object.prototype.hasOwnProperty.call(r,t)},y.p="",y(y.s=26)}([function(f,m,y){function r(){}r.QUALITY=1,r.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,r.DEFAULT_INCREMENTAL=!1,r.DEFAULT_ANIMATION_ON_LAYOUT=!0,r.DEFAULT_ANIMATION_DURING_LAYOUT=!1,r.DEFAULT_ANIMATION_PERIOD=50,r.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,r.DEFAULT_GRAPH_MARGIN=15,r.NODE_DIMENSIONS_INCLUDE_LABELS=!1,r.SIMPLE_NODE_SIZE=40,r.SIMPLE_NODE_HALF_SIZE=r.SIMPLE_NODE_SIZE/2,r.EMPTY_COMPOUND_NODE_SIZE=40,r.MIN_EDGE_LENGTH=1,r.WORLD_BOUNDARY=1e6,r.INITIAL_WORLD_BOUNDARY=r.WORLD_BOUNDARY/1e3,r.WORLD_CENTER_X=1200,r.WORLD_CENTER_Y=900,f.exports=r},function(f,m,y){var r=y(2),t=y(8),e=y(9);function i(g,a,v){r.call(this,v),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=v,this.bendpoints=[],this.source=g,this.target=a}i.prototype=Object.create(r.prototype);for(var o in r)i[o]=r[o];i.prototype.getSource=function(){return this.source},i.prototype.getTarget=function(){return this.target},i.prototype.isInterGraph=function(){return this.isInterGraph},i.prototype.getLength=function(){return this.length},i.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},i.prototype.getBendpoints=function(){return this.bendpoints},i.prototype.getLca=function(){return this.lca},i.prototype.getSourceInLca=function(){return this.sourceInLca},i.prototype.getTargetInLca=function(){return this.targetInLca},i.prototype.getOtherEnd=function(g){if(this.source===g)return this.target;if(this.target===g)return this.source;throw"Node is not incident with this edge"},i.prototype.getOtherEndInGraph=function(g,a){for(var v=this.getOtherEnd(g),n=a.getGraphManager().getRoot();;){if(v.getOwner()==a)return v;if(v.getOwner()==n)break;v=v.getOwner().getParent()}return null},i.prototype.updateLength=function(){var g=new Array(4);this.isOverlapingSourceAndTarget=t.getIntersection(this.target.getRect(),this.source.getRect(),g),this.isOverlapingSourceAndTarget||(this.lengthX=g[0]-g[2],this.lengthY=g[1]-g[3],Math.abs(this.lengthX)<1&&(this.lengthX=e.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=e.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},i.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=e.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=e.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},f.exports=i},function(f,m,y){function r(t){this.vGraphObject=t}f.exports=r},function(f,m,y){var r=y(2),t=y(10),e=y(13),i=y(0),o=y(16),g=y(4);function a(n,c,l,E){l==null&&E==null&&(E=c),r.call(this,E),n.graphManager!=null&&(n=n.graphManager),this.estimatedSize=t.MIN_VALUE,this.inclusionTreeDepth=t.MAX_VALUE,this.vGraphObject=E,this.edges=[],this.graphManager=n,l!=null&&c!=null?this.rect=new e(c.x,c.y,l.width,l.height):this.rect=new e}a.prototype=Object.create(r.prototype);for(var v in r)a[v]=r[v];a.prototype.getEdges=function(){return this.edges},a.prototype.getChild=function(){return this.child},a.prototype.getOwner=function(){return this.owner},a.prototype.getWidth=function(){return this.rect.width},a.prototype.setWidth=function(n){this.rect.width=n},a.prototype.getHeight=function(){return this.rect.height},a.prototype.setHeight=function(n){this.rect.height=n},a.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},a.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},a.prototype.getCenter=function(){return new g(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},a.prototype.getLocation=function(){return new g(this.rect.x,this.rect.y)},a.prototype.getRect=function(){return this.rect},a.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},a.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},a.prototype.setRect=function(n,c){this.rect.x=n.x,this.rect.y=n.y,this.rect.width=c.width,this.rect.height=c.height},a.prototype.setCenter=function(n,c){this.rect.x=n-this.rect.width/2,this.rect.y=c-this.rect.height/2},a.prototype.setLocation=function(n,c){this.rect.x=n,this.rect.y=c},a.prototype.moveBy=function(n,c){this.rect.x+=n,this.rect.y+=c},a.prototype.getEdgeListToNode=function(n){var c=[],l=this;return l.edges.forEach(function(E){if(E.target==n){if(E.source!=l)throw"Incorrect edge source!";c.push(E)}}),c},a.prototype.getEdgesBetween=function(n){var c=[],l=this;return l.edges.forEach(function(E){if(!(E.source==l||E.target==l))throw"Incorrect edge source and/or target";(E.target==n||E.source==n)&&c.push(E)}),c},a.prototype.getNeighborsList=function(){var n=new Set,c=this;return c.edges.forEach(function(l){if(l.source==c)n.add(l.target);else{if(l.target!=c)throw"Incorrect incidency!";n.add(l.source)}}),n},a.prototype.withChildren=function(){var n=new Set,c,l;if(n.add(this),this.child!=null)for(var E=this.child.getNodes(),T=0;Tc&&(this.rect.x-=(this.labelWidth-c)/2,this.setWidth(this.labelWidth)),this.labelHeight>l&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-l)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-l),this.setHeight(this.labelHeight))}}},a.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==t.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},a.prototype.transform=function(n){var c=this.rect.x;c>i.WORLD_BOUNDARY?c=i.WORLD_BOUNDARY:c<-i.WORLD_BOUNDARY&&(c=-i.WORLD_BOUNDARY);var l=this.rect.y;l>i.WORLD_BOUNDARY?l=i.WORLD_BOUNDARY:l<-i.WORLD_BOUNDARY&&(l=-i.WORLD_BOUNDARY);var E=new g(c,l),T=n.inverseTransformPoint(E);this.setLocation(T.x,T.y)},a.prototype.getLeft=function(){return this.rect.x},a.prototype.getRight=function(){return this.rect.x+this.rect.width},a.prototype.getTop=function(){return this.rect.y},a.prototype.getBottom=function(){return this.rect.y+this.rect.height},a.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},f.exports=a},function(f,m,y){function r(t,e){t==null&&e==null?(this.x=0,this.y=0):(this.x=t,this.y=e)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.setX=function(t){this.x=t},r.prototype.setY=function(t){this.y=t},r.prototype.getDifference=function(t){return new DimensionD(this.x-t.x,this.y-t.y)},r.prototype.getCopy=function(){return new r(this.x,this.y)},r.prototype.translate=function(t){return this.x+=t.width,this.y+=t.height,this},f.exports=r},function(f,m,y){var r=y(2),t=y(10),e=y(0),i=y(6),o=y(3),g=y(1),a=y(13),v=y(12),n=y(11);function c(E,T,D){r.call(this,D),this.estimatedSize=t.MIN_VALUE,this.margin=e.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=E,T!=null&&T instanceof i?this.graphManager=T:T!=null&&T instanceof Layout&&(this.graphManager=T.graphManager)}c.prototype=Object.create(r.prototype);for(var l in r)c[l]=r[l];c.prototype.getNodes=function(){return this.nodes},c.prototype.getEdges=function(){return this.edges},c.prototype.getGraphManager=function(){return this.graphManager},c.prototype.getParent=function(){return this.parent},c.prototype.getLeft=function(){return this.left},c.prototype.getRight=function(){return this.right},c.prototype.getTop=function(){return this.top},c.prototype.getBottom=function(){return this.bottom},c.prototype.isConnected=function(){return this.isConnected},c.prototype.add=function(E,T,D){if(T==null&&D==null){var L=E;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(L)>-1)throw"Node already in graph!";return L.owner=this,this.getNodes().push(L),L}else{var O=E;if(!(this.getNodes().indexOf(T)>-1&&this.getNodes().indexOf(D)>-1))throw"Source or target not in graph!";if(!(T.owner==D.owner&&T.owner==this))throw"Both owners must be this graph!";return T.owner!=D.owner?null:(O.source=T,O.target=D,O.isInterGraph=!1,this.getEdges().push(O),T.edges.push(O),D!=T&&D.edges.push(O),O)}},c.prototype.remove=function(E){var T=E;if(E instanceof o){if(T==null)throw"Node is null!";if(!(T.owner!=null&&T.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var D=T.edges.slice(),L,O=D.length,d=0;d-1&&h>-1))throw"Source and/or target doesn't know this edge!";L.source.edges.splice(s,1),L.target!=L.source&&L.target.edges.splice(h,1);var N=L.source.owner.getEdges().indexOf(L);if(N==-1)throw"Not in owner's edge list!";L.source.owner.getEdges().splice(N,1)}},c.prototype.updateLeftTop=function(){for(var E=t.MAX_VALUE,T=t.MAX_VALUE,D,L,O,d=this.getNodes(),N=d.length,s=0;sD&&(E=D),T>L&&(T=L)}return E==t.MAX_VALUE?null:(d[0].getParent().paddingLeft!=null?O=d[0].getParent().paddingLeft:O=this.margin,this.left=T-O,this.top=E-O,new v(this.left,this.top))},c.prototype.updateBounds=function(E){for(var T=t.MAX_VALUE,D=-t.MAX_VALUE,L=t.MAX_VALUE,O=-t.MAX_VALUE,d,N,s,h,u,p=this.nodes,A=p.length,C=0;Cd&&(T=d),Ds&&(L=s),Od&&(T=d),Ds&&(L=s),O=this.nodes.length){var A=0;D.forEach(function(C){C.owner==E&&A++}),A==this.nodes.length&&(this.isConnected=!0)}},f.exports=c},function(f,m,y){var r,t=y(1);function e(i){r=y(5),this.layout=i,this.graphs=[],this.edges=[]}e.prototype.addRoot=function(){var i=this.layout.newGraph(),o=this.layout.newNode(null),g=this.add(i,o);return this.setRootGraph(g),this.rootGraph},e.prototype.add=function(i,o,g,a,v){if(g==null&&a==null&&v==null){if(i==null)throw"Graph is null!";if(o==null)throw"Parent node is null!";if(this.graphs.indexOf(i)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(i),i.parent!=null)throw"Already has a parent!";if(o.child!=null)throw"Already has a child!";return i.parent=o,o.child=i,i}else{v=g,a=o,g=i;var n=a.getOwner(),c=v.getOwner();if(!(n!=null&&n.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(c!=null&&c.getGraphManager()==this))throw"Target not in this graph mgr!";if(n==c)return g.isInterGraph=!1,n.add(g,a,v);if(g.isInterGraph=!0,g.source=a,g.target=v,this.edges.indexOf(g)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(g),!(g.source!=null&&g.target!=null))throw"Edge source and/or target is null!";if(!(g.source.edges.indexOf(g)==-1&&g.target.edges.indexOf(g)==-1))throw"Edge already in source and/or target incidency list!";return g.source.edges.push(g),g.target.edges.push(g),g}},e.prototype.remove=function(i){if(i instanceof r){var o=i;if(o.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(o==this.rootGraph||o.parent!=null&&o.parent.graphManager==this))throw"Invalid parent node!";var g=[];g=g.concat(o.getEdges());for(var a,v=g.length,n=0;n=i.getRight()?o[0]+=Math.min(i.getX()-e.getX(),e.getRight()-i.getRight()):i.getX()<=e.getX()&&i.getRight()>=e.getRight()&&(o[0]+=Math.min(e.getX()-i.getX(),i.getRight()-e.getRight())),e.getY()<=i.getY()&&e.getBottom()>=i.getBottom()?o[1]+=Math.min(i.getY()-e.getY(),e.getBottom()-i.getBottom()):i.getY()<=e.getY()&&i.getBottom()>=e.getBottom()&&(o[1]+=Math.min(e.getY()-i.getY(),i.getBottom()-e.getBottom()));var v=Math.abs((i.getCenterY()-e.getCenterY())/(i.getCenterX()-e.getCenterX()));i.getCenterY()===e.getCenterY()&&i.getCenterX()===e.getCenterX()&&(v=1);var n=v*o[0],c=o[1]/v;o[0]n)return o[0]=g,o[1]=l,o[2]=v,o[3]=p,!1;if(av)return o[0]=c,o[1]=a,o[2]=h,o[3]=n,!1;if(gv?(o[0]=T,o[1]=D,x=!0):(o[0]=E,o[1]=l,x=!0):U===M&&(g>v?(o[0]=c,o[1]=l,x=!0):(o[0]=L,o[1]=D,x=!0)),-X===M?v>g?(o[2]=u,o[3]=p,_=!0):(o[2]=h,o[3]=s,_=!0):X===M&&(v>g?(o[2]=N,o[3]=s,_=!0):(o[2]=A,o[3]=p,_=!0)),x&&_)return!1;if(g>v?a>n?(G=this.getCardinalDirection(U,M,4),F=this.getCardinalDirection(X,M,2)):(G=this.getCardinalDirection(-U,M,3),F=this.getCardinalDirection(-X,M,1)):a>n?(G=this.getCardinalDirection(-U,M,1),F=this.getCardinalDirection(-X,M,3)):(G=this.getCardinalDirection(U,M,2),F=this.getCardinalDirection(X,M,4)),!x)switch(G){case 1:Y=l,b=g+-d/M,o[0]=b,o[1]=Y;break;case 2:b=L,Y=a+O*M,o[0]=b,o[1]=Y;break;case 3:Y=D,b=g+d/M,o[0]=b,o[1]=Y;break;case 4:b=T,Y=a+-O*M,o[0]=b,o[1]=Y;break}if(!_)switch(F){case 1:H=s,k=v+-R/M,o[2]=k,o[3]=H;break;case 2:k=A,H=n+C*M,o[2]=k,o[3]=H;break;case 3:H=p,k=v+R/M,o[2]=k,o[3]=H;break;case 4:k=u,H=n+-C*M,o[2]=k,o[3]=H;break}}return!1},t.getCardinalDirection=function(e,i,o){return e>i?o:1+o%4},t.getIntersection=function(e,i,o,g){if(g==null)return this.getIntersection2(e,i,o);var a=e.x,v=e.y,n=i.x,c=i.y,l=o.x,E=o.y,T=g.x,D=g.y,L=void 0,O=void 0,d=void 0,N=void 0,s=void 0,h=void 0,u=void 0,p=void 0,A=void 0;return d=c-v,s=a-n,u=n*v-a*c,N=D-E,h=l-T,p=T*E-l*D,A=d*h-N*s,A===0?null:(L=(s*p-h*u)/A,O=(N*u-d*p)/A,new r(L,O))},t.angleOfVector=function(e,i,o,g){var a=void 0;return e!==o?(a=Math.atan((g-i)/(o-e)),o0?1:t<0?-1:0},r.floor=function(t){return t<0?Math.ceil(t):Math.floor(t)},r.ceil=function(t){return t<0?Math.floor(t):Math.ceil(t)},f.exports=r},function(f,m,y){function r(){}r.MAX_VALUE=2147483647,r.MIN_VALUE=-2147483648,f.exports=r},function(f,m,y){var r=function(){function a(v,n){for(var c=0;c"u"?"undefined":r(e);return e==null||i!="object"&&i!="function"},f.exports=t},function(f,m,y){function r(l){if(Array.isArray(l)){for(var E=0,T=Array(l.length);E0&&E;){for(d.push(s[0]);d.length>0&&E;){var h=d[0];d.splice(0,1),O.add(h);for(var u=h.getEdges(),L=0;L-1&&s.splice(R,1)}O=new Set,N=new Map}}return l},c.prototype.createDummyNodesForBendpoints=function(l){for(var E=[],T=l.source,D=this.graphManager.calcLowestCommonAncestor(l.source,l.target),L=0;L0){for(var D=this.edgeToDummyNodes.get(T),L=0;L=0&&E.splice(p,1);var A=N.getNeighborsList();A.forEach(function(x){if(T.indexOf(x)<0){var _=D.get(x),U=_-1;U==1&&h.push(x),D.set(x,U)}})}T=T.concat(h),(E.length==1||E.length==2)&&(L=!0,O=E[0])}return O},c.prototype.setGraphManager=function(l){this.graphManager=l},f.exports=c},function(f,m,y){function r(){}r.seed=1,r.x=0,r.nextDouble=function(){return r.x=Math.sin(r.seed++)*1e4,r.x-Math.floor(r.x)},f.exports=r},function(f,m,y){var r=y(4);function t(e,i){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}t.prototype.getWorldOrgX=function(){return this.lworldOrgX},t.prototype.setWorldOrgX=function(e){this.lworldOrgX=e},t.prototype.getWorldOrgY=function(){return this.lworldOrgY},t.prototype.setWorldOrgY=function(e){this.lworldOrgY=e},t.prototype.getWorldExtX=function(){return this.lworldExtX},t.prototype.setWorldExtX=function(e){this.lworldExtX=e},t.prototype.getWorldExtY=function(){return this.lworldExtY},t.prototype.setWorldExtY=function(e){this.lworldExtY=e},t.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},t.prototype.setDeviceOrgX=function(e){this.ldeviceOrgX=e},t.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},t.prototype.setDeviceOrgY=function(e){this.ldeviceOrgY=e},t.prototype.getDeviceExtX=function(){return this.ldeviceExtX},t.prototype.setDeviceExtX=function(e){this.ldeviceExtX=e},t.prototype.getDeviceExtY=function(){return this.ldeviceExtY},t.prototype.setDeviceExtY=function(e){this.ldeviceExtY=e},t.prototype.transformX=function(e){var i=0,o=this.lworldExtX;return o!=0&&(i=this.ldeviceOrgX+(e-this.lworldOrgX)*this.ldeviceExtX/o),i},t.prototype.transformY=function(e){var i=0,o=this.lworldExtY;return o!=0&&(i=this.ldeviceOrgY+(e-this.lworldOrgY)*this.ldeviceExtY/o),i},t.prototype.inverseTransformX=function(e){var i=0,o=this.ldeviceExtX;return o!=0&&(i=this.lworldOrgX+(e-this.ldeviceOrgX)*this.lworldExtX/o),i},t.prototype.inverseTransformY=function(e){var i=0,o=this.ldeviceExtY;return o!=0&&(i=this.lworldOrgY+(e-this.ldeviceOrgY)*this.lworldExtY/o),i},t.prototype.inverseTransformPoint=function(e){var i=new r(this.inverseTransformX(e.x),this.inverseTransformY(e.y));return i},f.exports=t},function(f,m,y){function r(n){if(Array.isArray(n)){for(var c=0,l=Array(n.length);ce.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*e.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(n-e.ADAPTATION_LOWER_NODE_LIMIT)/(e.ADAPTATION_UPPER_NODE_LIMIT-e.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-e.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=e.MAX_NODE_DISPLACEMENT_INCREMENTAL):(n>e.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(e.COOLING_ADAPTATION_FACTOR,1-(n-e.ADAPTATION_LOWER_NODE_LIMIT)/(e.ADAPTATION_UPPER_NODE_LIMIT-e.ADAPTATION_LOWER_NODE_LIMIT)*(1-e.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=e.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},a.prototype.calcSpringForces=function(){for(var n=this.getAllEdges(),c,l=0;l0&&arguments[0]!==void 0?arguments[0]:!0,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l,E,T,D,L=this.getAllNodes(),O;if(this.useFRGridVariant)for(this.totalIterations%e.GRID_CALCULATION_CHECK_PERIOD==1&&n&&this.updateGrid(),O=new Set,l=0;ld||O>d)&&(n.gravitationForceX=-this.gravityConstant*T,n.gravitationForceY=-this.gravityConstant*D)):(d=c.getEstimatedSize()*this.compoundGravityRangeFactor,(L>d||O>d)&&(n.gravitationForceX=-this.gravityConstant*T*this.compoundGravityConstant,n.gravitationForceY=-this.gravityConstant*D*this.compoundGravityConstant))},a.prototype.isConverged=function(){var n,c=!1;return this.totalIterations>this.maxIterations/3&&(c=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),n=this.totalDisplacement=L.length||d>=L[0].length)){for(var N=0;Na}}]),o}();f.exports=i},function(f,m,y){var r=function(){function i(o,g){for(var a=0;a2&&arguments[2]!==void 0?arguments[2]:1,v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;t(this,i),this.sequence1=o,this.sequence2=g,this.match_score=a,this.mismatch_penalty=v,this.gap_penalty=n,this.iMax=o.length+1,this.jMax=g.length+1,this.grid=new Array(this.iMax);for(var c=0;c=0;o--){var g=this.listeners[o];g.event===e&&g.callback===i&&this.listeners.splice(o,1)}},t.emit=function(e,i){for(var o=0;og.coolingFactor*g.maxNodeDisplacement&&(this.displacementX=g.coolingFactor*g.maxNodeDisplacement*e.sign(this.displacementX)),Math.abs(this.displacementY)>g.coolingFactor*g.maxNodeDisplacement&&(this.displacementY=g.coolingFactor*g.maxNodeDisplacement*e.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),g.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},i.prototype.propogateDisplacementToChildren=function(g,a){for(var v=this.getChild().getNodes(),n,c=0;c0)this.positionNodesRadially(s);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var h=new Set(this.getAllNodes()),u=this.nodesWithGravity.filter(function(p){return h.has(p)});this.graphManager.setAllNodesToApplyGravitation(u),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},d.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%v.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var s=new Set(this.getAllNodes()),h=this.nodesWithGravity.filter(function(A){return s.has(A)});this.graphManager.setAllNodesToApplyGravitation(h),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=v.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=v.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var u=!this.isTreeGrowing&&!this.isGrowthFinished,p=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(u,p),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},d.prototype.getPositionsData=function(){for(var s=this.graphManager.getAllNodes(),h={},u=0;u1){var x;for(x=0;xp&&(p=Math.floor(R.y)),C=Math.floor(R.x+a.DEFAULT_COMPONENT_SEPERATION)}this.transform(new l(n.WORLD_CENTER_X-R.x/2,n.WORLD_CENTER_Y-R.y/2))},d.radialLayout=function(s,h,u){var p=Math.max(this.maxDiagonalInTree(s),a.DEFAULT_RADIAL_SEPARATION);d.branchRadialLayout(h,null,0,359,0,p);var A=L.calculateBounds(s),C=new O;C.setDeviceOrgX(A.getMinX()),C.setDeviceOrgY(A.getMinY()),C.setWorldOrgX(u.x),C.setWorldOrgY(u.y);for(var R=0;R1;){var H=k[0];k.splice(0,1);var P=M.indexOf(H);P>=0&&M.splice(P,1),b--,G--}h!=null?Y=(M.indexOf(k[0])+1)%b:Y=0;for(var B=Math.abs(p-u)/G,$=Y;F!=G;$=++$%b){var K=M[$].getOtherEnd(s);if(K!=h){var Q=(u+F*B)%360,J=(Q+B)%360;d.branchRadialLayout(K,s,Q,J,A+C,C),F++}}},d.maxDiagonalInTree=function(s){for(var h=T.MIN_VALUE,u=0;uh&&(h=A)}return h},d.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},d.prototype.groupZeroDegreeMembers=function(){var s=this,h={};this.memberGroups={},this.idToDummyNode={};for(var u=[],p=this.graphManager.getAllNodes(),A=0;A"u"&&(h[x]=[]),h[x]=h[x].concat(C)}Object.keys(h).forEach(function(_){if(h[_].length>1){var U="DummyCompound_"+_;s.memberGroups[U]=h[_];var X=h[_][0].getParent(),M=new o(s.graphManager);M.id=U,M.paddingLeft=X.paddingLeft||0,M.paddingRight=X.paddingRight||0,M.paddingBottom=X.paddingBottom||0,M.paddingTop=X.paddingTop||0,s.idToDummyNode[U]=M;var G=s.getGraphManager().add(s.newGraph(),M),F=X.getChild();F.add(M);for(var b=0;b=0;s--){var h=this.compoundOrder[s],u=h.id,p=h.paddingLeft,A=h.paddingTop;this.adjustLocations(this.tiledMemberPack[u],h.rect.x,h.rect.y,p,A)}},d.prototype.repopulateZeroDegreeMembers=function(){var s=this,h=this.tiledZeroDegreePack;Object.keys(h).forEach(function(u){var p=s.idToDummyNode[u],A=p.paddingLeft,C=p.paddingTop;s.adjustLocations(h[u],p.rect.x,p.rect.y,A,C)})},d.prototype.getToBeTiled=function(s){var h=s.id;if(this.toBeTiled[h]!=null)return this.toBeTiled[h];var u=s.getChild();if(u==null)return this.toBeTiled[h]=!1,!1;for(var p=u.getNodes(),A=0;A0)return this.toBeTiled[h]=!1,!1;if(C.getChild()==null){this.toBeTiled[C.id]=!1;continue}if(!this.getToBeTiled(C))return this.toBeTiled[h]=!1,!1}return this.toBeTiled[h]=!0,!0},d.prototype.getNodeDegree=function(s){s.id;for(var h=s.getEdges(),u=0,p=0;p_&&(_=X.rect.height)}u+=_+s.verticalPadding}},d.prototype.tileCompoundMembers=function(s,h){var u=this;this.tiledMemberPack=[],Object.keys(s).forEach(function(p){var A=h[p];u.tiledMemberPack[p]=u.tileNodes(s[p],A.paddingLeft+A.paddingRight),A.rect.width=u.tiledMemberPack[p].width,A.rect.height=u.tiledMemberPack[p].height})},d.prototype.tileNodes=function(s,h){var u=a.TILING_PADDING_VERTICAL,p=a.TILING_PADDING_HORIZONTAL,A={rows:[],rowWidth:[],rowHeight:[],width:0,height:h,verticalPadding:u,horizontalPadding:p};s.sort(function(x,_){return x.rect.width*x.rect.height>_.rect.width*_.rect.height?-1:x.rect.width*x.rect.height<_.rect.width*_.rect.height?1:0});for(var C=0;C0&&(R+=s.horizontalPadding),s.rowWidth[u]=R,s.width0&&(x+=s.verticalPadding);var _=0;x>s.rowHeight[u]&&(_=s.rowHeight[u],s.rowHeight[u]=x,_=s.rowHeight[u]-_),s.height+=_,s.rows[u].push(h)},d.prototype.getShortestRowIndex=function(s){for(var h=-1,u=Number.MAX_VALUE,p=0;pu&&(h=p,u=s.rowWidth[p]);return h},d.prototype.canAddHorizontal=function(s,h,u){var p=this.getShortestRowIndex(s);if(p<0)return!0;var A=s.rowWidth[p];if(A+s.horizontalPadding+h<=s.width)return!0;var C=0;s.rowHeight[p]0&&(C=u+s.verticalPadding-s.rowHeight[p]);var R;s.width-A>=h+s.horizontalPadding?R=(s.height+C)/(A+h+s.horizontalPadding):R=(s.height+C)/s.width,C=u+s.verticalPadding;var x;return s.widthC&&h!=u){p.splice(-1,1),s.rows[u].push(A),s.rowWidth[h]=s.rowWidth[h]-C,s.rowWidth[u]=s.rowWidth[u]+C,s.width=s.rowWidth[instance.getLongestRowIndex(s)];for(var R=Number.MIN_VALUE,x=0;xR&&(R=p[x].height);h>0&&(R+=s.verticalPadding);var _=s.rowHeight[h]+s.rowHeight[u];s.rowHeight[h]=R,s.rowHeight[u]0)for(var F=A;F<=C;F++)G[0]+=this.grid[F][R-1].length+this.grid[F][R].length-1;if(C0)for(var F=R;F<=x;F++)G[3]+=this.grid[A-1][F].length+this.grid[A][F].length-1;for(var b=T.MAX_VALUE,Y,k,H=0;H0){var x;x=O.getGraphManager().add(O.newGraph(),u),this.processChildrenList(x,h,O)}}},l.prototype.stop=function(){return this.stopped=!0,this};var T=function(L){L("layout","cose-bilkent",l)};typeof cytoscape<"u"&&T(cytoscape),m.exports=T}])})})(dt);var St=dt.exports;const Gt=Nt(St);var st=function(){var I=S(function(O,d,N,s){for(N=N||{},s=O.length;s--;N[O[s]]=d);return N},"o"),w=[1,4],f=[1,13],m=[1,12],y=[1,15],r=[1,16],t=[1,20],e=[1,19],i=[6,7,8],o=[1,26],g=[1,24],a=[1,25],v=[6,7,11],n=[1,6,13,15,16,19,22],c=[1,33],l=[1,34],E=[1,6,7,11,13,15,16,19,22],T={trace:S(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:S(function(d,N,s,h,u,p,A){var C=p.length-1;switch(u){case 6:case 7:return h;case 8:h.getLogger().trace("Stop NL ");break;case 9:h.getLogger().trace("Stop EOF ");break;case 11:h.getLogger().trace("Stop NL2 ");break;case 12:h.getLogger().trace("Stop EOF2 ");break;case 15:h.getLogger().info("Node: ",p[C].id),h.addNode(p[C-1].length,p[C].id,p[C].descr,p[C].type);break;case 16:h.getLogger().trace("Icon: ",p[C]),h.decorateNode({icon:p[C]});break;case 17:case 21:h.decorateNode({class:p[C]});break;case 18:h.getLogger().trace("SPACELIST");break;case 19:h.getLogger().trace("Node: ",p[C].id),h.addNode(0,p[C].id,p[C].descr,p[C].type);break;case 20:h.decorateNode({icon:p[C]});break;case 25:h.getLogger().trace("node found ..",p[C-2]),this.$={id:p[C-1],descr:p[C-1],type:h.getType(p[C-2],p[C])};break;case 26:this.$={id:p[C],descr:p[C],type:h.nodeType.DEFAULT};break;case 27:h.getLogger().trace("node found ..",p[C-3]),this.$={id:p[C-3],descr:p[C-1],type:h.getType(p[C-2],p[C])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:w},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:w},{6:f,7:[1,10],9:9,12:11,13:m,14:14,15:y,16:r,17:17,18:18,19:t,22:e},I(i,[2,3]),{1:[2,2]},I(i,[2,4]),I(i,[2,5]),{1:[2,6],6:f,12:21,13:m,14:14,15:y,16:r,17:17,18:18,19:t,22:e},{6:f,9:22,12:11,13:m,14:14,15:y,16:r,17:17,18:18,19:t,22:e},{6:o,7:g,10:23,11:a},I(v,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:t,22:e}),I(v,[2,18]),I(v,[2,19]),I(v,[2,20]),I(v,[2,21]),I(v,[2,23]),I(v,[2,24]),I(v,[2,26],{19:[1,30]}),{20:[1,31]},{6:o,7:g,10:32,11:a},{1:[2,7],6:f,12:21,13:m,14:14,15:y,16:r,17:17,18:18,19:t,22:e},I(n,[2,14],{7:c,11:l}),I(E,[2,8]),I(E,[2,9]),I(E,[2,10]),I(v,[2,15]),I(v,[2,16]),I(v,[2,17]),{20:[1,35]},{21:[1,36]},I(n,[2,13],{7:c,11:l}),I(E,[2,11]),I(E,[2,12]),{21:[1,37]},I(v,[2,25]),I(v,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:S(function(d,N){if(N.recoverable)this.trace(d);else{var s=new Error(d);throw s.hash=N,s}},"parseError"),parse:S(function(d){var N=this,s=[0],h=[],u=[null],p=[],A=this.table,C="",R=0,x=0,_=2,U=1,X=p.slice.call(arguments,1),M=Object.create(this.lexer),G={yy:{}};for(var F in this.yy)Object.prototype.hasOwnProperty.call(this.yy,F)&&(G.yy[F]=this.yy[F]);M.setInput(d,G.yy),G.yy.lexer=M,G.yy.parser=this,typeof M.yylloc>"u"&&(M.yylloc={});var b=M.yylloc;p.push(b);var Y=M.options&&M.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function k(V){s.length=s.length-2*V,u.length=u.length-V,p.length=p.length-V}S(k,"popStack");function H(){var V;return V=h.pop()||M.lex()||U,typeof V!="number"&&(V instanceof Array&&(h=V,V=h.pop()),V=N.symbols_[V]||V),V}S(H,"lex");for(var P,B,$,K,Q={},J,j,gt,q;;){if(B=s[s.length-1],this.defaultActions[B]?$=this.defaultActions[B]:((P===null||typeof P>"u")&&(P=H()),$=A[B]&&A[B][P]),typeof $>"u"||!$.length||!$[0]){var rt="";q=[];for(J in A[B])this.terminals_[J]&&J>_&&q.push("'"+this.terminals_[J]+"'");M.showPosition?rt="Parse error on line "+(R+1)+`: +import{aH as at,aI as Nt,_ as S,l as z,c as ot,G as Dt,T as mt,E as tt,i as et,U as Ot,V as At,W as It,d as Ct,aj as Rt,N as xt}from"./md-index-1F_vrIf8.js";import{c as pt}from"./md-cytoscape.esm-CrenbRtv.js";var dt={exports:{}},it={exports:{}},nt={exports:{}},ut;function Mt(){return ut||(ut=1,function(I,w){(function(m,y){I.exports=y()})(at,function(){return function(f){var m={};function y(r){if(m[r])return m[r].exports;var t=m[r]={i:r,l:!1,exports:{}};return f[r].call(t.exports,t,t.exports,y),t.l=!0,t.exports}return y.m=f,y.c=m,y.i=function(r){return r},y.d=function(r,t,e){y.o(r,t)||Object.defineProperty(r,t,{configurable:!1,enumerable:!0,get:e})},y.n=function(r){var t=r&&r.__esModule?function(){return r.default}:function(){return r};return y.d(t,"a",t),t},y.o=function(r,t){return Object.prototype.hasOwnProperty.call(r,t)},y.p="",y(y.s=26)}([function(f,m,y){function r(){}r.QUALITY=1,r.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,r.DEFAULT_INCREMENTAL=!1,r.DEFAULT_ANIMATION_ON_LAYOUT=!0,r.DEFAULT_ANIMATION_DURING_LAYOUT=!1,r.DEFAULT_ANIMATION_PERIOD=50,r.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,r.DEFAULT_GRAPH_MARGIN=15,r.NODE_DIMENSIONS_INCLUDE_LABELS=!1,r.SIMPLE_NODE_SIZE=40,r.SIMPLE_NODE_HALF_SIZE=r.SIMPLE_NODE_SIZE/2,r.EMPTY_COMPOUND_NODE_SIZE=40,r.MIN_EDGE_LENGTH=1,r.WORLD_BOUNDARY=1e6,r.INITIAL_WORLD_BOUNDARY=r.WORLD_BOUNDARY/1e3,r.WORLD_CENTER_X=1200,r.WORLD_CENTER_Y=900,f.exports=r},function(f,m,y){var r=y(2),t=y(8),e=y(9);function i(g,a,v){r.call(this,v),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=v,this.bendpoints=[],this.source=g,this.target=a}i.prototype=Object.create(r.prototype);for(var o in r)i[o]=r[o];i.prototype.getSource=function(){return this.source},i.prototype.getTarget=function(){return this.target},i.prototype.isInterGraph=function(){return this.isInterGraph},i.prototype.getLength=function(){return this.length},i.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},i.prototype.getBendpoints=function(){return this.bendpoints},i.prototype.getLca=function(){return this.lca},i.prototype.getSourceInLca=function(){return this.sourceInLca},i.prototype.getTargetInLca=function(){return this.targetInLca},i.prototype.getOtherEnd=function(g){if(this.source===g)return this.target;if(this.target===g)return this.source;throw"Node is not incident with this edge"},i.prototype.getOtherEndInGraph=function(g,a){for(var v=this.getOtherEnd(g),n=a.getGraphManager().getRoot();;){if(v.getOwner()==a)return v;if(v.getOwner()==n)break;v=v.getOwner().getParent()}return null},i.prototype.updateLength=function(){var g=new Array(4);this.isOverlapingSourceAndTarget=t.getIntersection(this.target.getRect(),this.source.getRect(),g),this.isOverlapingSourceAndTarget||(this.lengthX=g[0]-g[2],this.lengthY=g[1]-g[3],Math.abs(this.lengthX)<1&&(this.lengthX=e.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=e.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},i.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=e.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=e.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},f.exports=i},function(f,m,y){function r(t){this.vGraphObject=t}f.exports=r},function(f,m,y){var r=y(2),t=y(10),e=y(13),i=y(0),o=y(16),g=y(4);function a(n,c,l,E){l==null&&E==null&&(E=c),r.call(this,E),n.graphManager!=null&&(n=n.graphManager),this.estimatedSize=t.MIN_VALUE,this.inclusionTreeDepth=t.MAX_VALUE,this.vGraphObject=E,this.edges=[],this.graphManager=n,l!=null&&c!=null?this.rect=new e(c.x,c.y,l.width,l.height):this.rect=new e}a.prototype=Object.create(r.prototype);for(var v in r)a[v]=r[v];a.prototype.getEdges=function(){return this.edges},a.prototype.getChild=function(){return this.child},a.prototype.getOwner=function(){return this.owner},a.prototype.getWidth=function(){return this.rect.width},a.prototype.setWidth=function(n){this.rect.width=n},a.prototype.getHeight=function(){return this.rect.height},a.prototype.setHeight=function(n){this.rect.height=n},a.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},a.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},a.prototype.getCenter=function(){return new g(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},a.prototype.getLocation=function(){return new g(this.rect.x,this.rect.y)},a.prototype.getRect=function(){return this.rect},a.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},a.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},a.prototype.setRect=function(n,c){this.rect.x=n.x,this.rect.y=n.y,this.rect.width=c.width,this.rect.height=c.height},a.prototype.setCenter=function(n,c){this.rect.x=n-this.rect.width/2,this.rect.y=c-this.rect.height/2},a.prototype.setLocation=function(n,c){this.rect.x=n,this.rect.y=c},a.prototype.moveBy=function(n,c){this.rect.x+=n,this.rect.y+=c},a.prototype.getEdgeListToNode=function(n){var c=[],l=this;return l.edges.forEach(function(E){if(E.target==n){if(E.source!=l)throw"Incorrect edge source!";c.push(E)}}),c},a.prototype.getEdgesBetween=function(n){var c=[],l=this;return l.edges.forEach(function(E){if(!(E.source==l||E.target==l))throw"Incorrect edge source and/or target";(E.target==n||E.source==n)&&c.push(E)}),c},a.prototype.getNeighborsList=function(){var n=new Set,c=this;return c.edges.forEach(function(l){if(l.source==c)n.add(l.target);else{if(l.target!=c)throw"Incorrect incidency!";n.add(l.source)}}),n},a.prototype.withChildren=function(){var n=new Set,c,l;if(n.add(this),this.child!=null)for(var E=this.child.getNodes(),T=0;Tc&&(this.rect.x-=(this.labelWidth-c)/2,this.setWidth(this.labelWidth)),this.labelHeight>l&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-l)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-l),this.setHeight(this.labelHeight))}}},a.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==t.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},a.prototype.transform=function(n){var c=this.rect.x;c>i.WORLD_BOUNDARY?c=i.WORLD_BOUNDARY:c<-i.WORLD_BOUNDARY&&(c=-i.WORLD_BOUNDARY);var l=this.rect.y;l>i.WORLD_BOUNDARY?l=i.WORLD_BOUNDARY:l<-i.WORLD_BOUNDARY&&(l=-i.WORLD_BOUNDARY);var E=new g(c,l),T=n.inverseTransformPoint(E);this.setLocation(T.x,T.y)},a.prototype.getLeft=function(){return this.rect.x},a.prototype.getRight=function(){return this.rect.x+this.rect.width},a.prototype.getTop=function(){return this.rect.y},a.prototype.getBottom=function(){return this.rect.y+this.rect.height},a.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},f.exports=a},function(f,m,y){function r(t,e){t==null&&e==null?(this.x=0,this.y=0):(this.x=t,this.y=e)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.setX=function(t){this.x=t},r.prototype.setY=function(t){this.y=t},r.prototype.getDifference=function(t){return new DimensionD(this.x-t.x,this.y-t.y)},r.prototype.getCopy=function(){return new r(this.x,this.y)},r.prototype.translate=function(t){return this.x+=t.width,this.y+=t.height,this},f.exports=r},function(f,m,y){var r=y(2),t=y(10),e=y(0),i=y(6),o=y(3),g=y(1),a=y(13),v=y(12),n=y(11);function c(E,T,D){r.call(this,D),this.estimatedSize=t.MIN_VALUE,this.margin=e.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=E,T!=null&&T instanceof i?this.graphManager=T:T!=null&&T instanceof Layout&&(this.graphManager=T.graphManager)}c.prototype=Object.create(r.prototype);for(var l in r)c[l]=r[l];c.prototype.getNodes=function(){return this.nodes},c.prototype.getEdges=function(){return this.edges},c.prototype.getGraphManager=function(){return this.graphManager},c.prototype.getParent=function(){return this.parent},c.prototype.getLeft=function(){return this.left},c.prototype.getRight=function(){return this.right},c.prototype.getTop=function(){return this.top},c.prototype.getBottom=function(){return this.bottom},c.prototype.isConnected=function(){return this.isConnected},c.prototype.add=function(E,T,D){if(T==null&&D==null){var L=E;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(L)>-1)throw"Node already in graph!";return L.owner=this,this.getNodes().push(L),L}else{var O=E;if(!(this.getNodes().indexOf(T)>-1&&this.getNodes().indexOf(D)>-1))throw"Source or target not in graph!";if(!(T.owner==D.owner&&T.owner==this))throw"Both owners must be this graph!";return T.owner!=D.owner?null:(O.source=T,O.target=D,O.isInterGraph=!1,this.getEdges().push(O),T.edges.push(O),D!=T&&D.edges.push(O),O)}},c.prototype.remove=function(E){var T=E;if(E instanceof o){if(T==null)throw"Node is null!";if(!(T.owner!=null&&T.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var D=T.edges.slice(),L,O=D.length,d=0;d-1&&h>-1))throw"Source and/or target doesn't know this edge!";L.source.edges.splice(s,1),L.target!=L.source&&L.target.edges.splice(h,1);var N=L.source.owner.getEdges().indexOf(L);if(N==-1)throw"Not in owner's edge list!";L.source.owner.getEdges().splice(N,1)}},c.prototype.updateLeftTop=function(){for(var E=t.MAX_VALUE,T=t.MAX_VALUE,D,L,O,d=this.getNodes(),N=d.length,s=0;sD&&(E=D),T>L&&(T=L)}return E==t.MAX_VALUE?null:(d[0].getParent().paddingLeft!=null?O=d[0].getParent().paddingLeft:O=this.margin,this.left=T-O,this.top=E-O,new v(this.left,this.top))},c.prototype.updateBounds=function(E){for(var T=t.MAX_VALUE,D=-t.MAX_VALUE,L=t.MAX_VALUE,O=-t.MAX_VALUE,d,N,s,h,u,p=this.nodes,A=p.length,C=0;Cd&&(T=d),Ds&&(L=s),Od&&(T=d),Ds&&(L=s),O=this.nodes.length){var A=0;D.forEach(function(C){C.owner==E&&A++}),A==this.nodes.length&&(this.isConnected=!0)}},f.exports=c},function(f,m,y){var r,t=y(1);function e(i){r=y(5),this.layout=i,this.graphs=[],this.edges=[]}e.prototype.addRoot=function(){var i=this.layout.newGraph(),o=this.layout.newNode(null),g=this.add(i,o);return this.setRootGraph(g),this.rootGraph},e.prototype.add=function(i,o,g,a,v){if(g==null&&a==null&&v==null){if(i==null)throw"Graph is null!";if(o==null)throw"Parent node is null!";if(this.graphs.indexOf(i)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(i),i.parent!=null)throw"Already has a parent!";if(o.child!=null)throw"Already has a child!";return i.parent=o,o.child=i,i}else{v=g,a=o,g=i;var n=a.getOwner(),c=v.getOwner();if(!(n!=null&&n.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(c!=null&&c.getGraphManager()==this))throw"Target not in this graph mgr!";if(n==c)return g.isInterGraph=!1,n.add(g,a,v);if(g.isInterGraph=!0,g.source=a,g.target=v,this.edges.indexOf(g)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(g),!(g.source!=null&&g.target!=null))throw"Edge source and/or target is null!";if(!(g.source.edges.indexOf(g)==-1&&g.target.edges.indexOf(g)==-1))throw"Edge already in source and/or target incidency list!";return g.source.edges.push(g),g.target.edges.push(g),g}},e.prototype.remove=function(i){if(i instanceof r){var o=i;if(o.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(o==this.rootGraph||o.parent!=null&&o.parent.graphManager==this))throw"Invalid parent node!";var g=[];g=g.concat(o.getEdges());for(var a,v=g.length,n=0;n=i.getRight()?o[0]+=Math.min(i.getX()-e.getX(),e.getRight()-i.getRight()):i.getX()<=e.getX()&&i.getRight()>=e.getRight()&&(o[0]+=Math.min(e.getX()-i.getX(),i.getRight()-e.getRight())),e.getY()<=i.getY()&&e.getBottom()>=i.getBottom()?o[1]+=Math.min(i.getY()-e.getY(),e.getBottom()-i.getBottom()):i.getY()<=e.getY()&&i.getBottom()>=e.getBottom()&&(o[1]+=Math.min(e.getY()-i.getY(),i.getBottom()-e.getBottom()));var v=Math.abs((i.getCenterY()-e.getCenterY())/(i.getCenterX()-e.getCenterX()));i.getCenterY()===e.getCenterY()&&i.getCenterX()===e.getCenterX()&&(v=1);var n=v*o[0],c=o[1]/v;o[0]n)return o[0]=g,o[1]=l,o[2]=v,o[3]=p,!1;if(av)return o[0]=c,o[1]=a,o[2]=h,o[3]=n,!1;if(gv?(o[0]=T,o[1]=D,x=!0):(o[0]=E,o[1]=l,x=!0):U===M&&(g>v?(o[0]=c,o[1]=l,x=!0):(o[0]=L,o[1]=D,x=!0)),-X===M?v>g?(o[2]=u,o[3]=p,_=!0):(o[2]=h,o[3]=s,_=!0):X===M&&(v>g?(o[2]=N,o[3]=s,_=!0):(o[2]=A,o[3]=p,_=!0)),x&&_)return!1;if(g>v?a>n?(G=this.getCardinalDirection(U,M,4),F=this.getCardinalDirection(X,M,2)):(G=this.getCardinalDirection(-U,M,3),F=this.getCardinalDirection(-X,M,1)):a>n?(G=this.getCardinalDirection(-U,M,1),F=this.getCardinalDirection(-X,M,3)):(G=this.getCardinalDirection(U,M,2),F=this.getCardinalDirection(X,M,4)),!x)switch(G){case 1:Y=l,b=g+-d/M,o[0]=b,o[1]=Y;break;case 2:b=L,Y=a+O*M,o[0]=b,o[1]=Y;break;case 3:Y=D,b=g+d/M,o[0]=b,o[1]=Y;break;case 4:b=T,Y=a+-O*M,o[0]=b,o[1]=Y;break}if(!_)switch(F){case 1:H=s,k=v+-R/M,o[2]=k,o[3]=H;break;case 2:k=A,H=n+C*M,o[2]=k,o[3]=H;break;case 3:H=p,k=v+R/M,o[2]=k,o[3]=H;break;case 4:k=u,H=n+-C*M,o[2]=k,o[3]=H;break}}return!1},t.getCardinalDirection=function(e,i,o){return e>i?o:1+o%4},t.getIntersection=function(e,i,o,g){if(g==null)return this.getIntersection2(e,i,o);var a=e.x,v=e.y,n=i.x,c=i.y,l=o.x,E=o.y,T=g.x,D=g.y,L=void 0,O=void 0,d=void 0,N=void 0,s=void 0,h=void 0,u=void 0,p=void 0,A=void 0;return d=c-v,s=a-n,u=n*v-a*c,N=D-E,h=l-T,p=T*E-l*D,A=d*h-N*s,A===0?null:(L=(s*p-h*u)/A,O=(N*u-d*p)/A,new r(L,O))},t.angleOfVector=function(e,i,o,g){var a=void 0;return e!==o?(a=Math.atan((g-i)/(o-e)),o0?1:t<0?-1:0},r.floor=function(t){return t<0?Math.ceil(t):Math.floor(t)},r.ceil=function(t){return t<0?Math.floor(t):Math.ceil(t)},f.exports=r},function(f,m,y){function r(){}r.MAX_VALUE=2147483647,r.MIN_VALUE=-2147483648,f.exports=r},function(f,m,y){var r=function(){function a(v,n){for(var c=0;c"u"?"undefined":r(e);return e==null||i!="object"&&i!="function"},f.exports=t},function(f,m,y){function r(l){if(Array.isArray(l)){for(var E=0,T=Array(l.length);E0&&E;){for(d.push(s[0]);d.length>0&&E;){var h=d[0];d.splice(0,1),O.add(h);for(var u=h.getEdges(),L=0;L-1&&s.splice(R,1)}O=new Set,N=new Map}}return l},c.prototype.createDummyNodesForBendpoints=function(l){for(var E=[],T=l.source,D=this.graphManager.calcLowestCommonAncestor(l.source,l.target),L=0;L0){for(var D=this.edgeToDummyNodes.get(T),L=0;L=0&&E.splice(p,1);var A=N.getNeighborsList();A.forEach(function(x){if(T.indexOf(x)<0){var _=D.get(x),U=_-1;U==1&&h.push(x),D.set(x,U)}})}T=T.concat(h),(E.length==1||E.length==2)&&(L=!0,O=E[0])}return O},c.prototype.setGraphManager=function(l){this.graphManager=l},f.exports=c},function(f,m,y){function r(){}r.seed=1,r.x=0,r.nextDouble=function(){return r.x=Math.sin(r.seed++)*1e4,r.x-Math.floor(r.x)},f.exports=r},function(f,m,y){var r=y(4);function t(e,i){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}t.prototype.getWorldOrgX=function(){return this.lworldOrgX},t.prototype.setWorldOrgX=function(e){this.lworldOrgX=e},t.prototype.getWorldOrgY=function(){return this.lworldOrgY},t.prototype.setWorldOrgY=function(e){this.lworldOrgY=e},t.prototype.getWorldExtX=function(){return this.lworldExtX},t.prototype.setWorldExtX=function(e){this.lworldExtX=e},t.prototype.getWorldExtY=function(){return this.lworldExtY},t.prototype.setWorldExtY=function(e){this.lworldExtY=e},t.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},t.prototype.setDeviceOrgX=function(e){this.ldeviceOrgX=e},t.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},t.prototype.setDeviceOrgY=function(e){this.ldeviceOrgY=e},t.prototype.getDeviceExtX=function(){return this.ldeviceExtX},t.prototype.setDeviceExtX=function(e){this.ldeviceExtX=e},t.prototype.getDeviceExtY=function(){return this.ldeviceExtY},t.prototype.setDeviceExtY=function(e){this.ldeviceExtY=e},t.prototype.transformX=function(e){var i=0,o=this.lworldExtX;return o!=0&&(i=this.ldeviceOrgX+(e-this.lworldOrgX)*this.ldeviceExtX/o),i},t.prototype.transformY=function(e){var i=0,o=this.lworldExtY;return o!=0&&(i=this.ldeviceOrgY+(e-this.lworldOrgY)*this.ldeviceExtY/o),i},t.prototype.inverseTransformX=function(e){var i=0,o=this.ldeviceExtX;return o!=0&&(i=this.lworldOrgX+(e-this.ldeviceOrgX)*this.lworldExtX/o),i},t.prototype.inverseTransformY=function(e){var i=0,o=this.ldeviceExtY;return o!=0&&(i=this.lworldOrgY+(e-this.ldeviceOrgY)*this.lworldExtY/o),i},t.prototype.inverseTransformPoint=function(e){var i=new r(this.inverseTransformX(e.x),this.inverseTransformY(e.y));return i},f.exports=t},function(f,m,y){function r(n){if(Array.isArray(n)){for(var c=0,l=Array(n.length);ce.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*e.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(n-e.ADAPTATION_LOWER_NODE_LIMIT)/(e.ADAPTATION_UPPER_NODE_LIMIT-e.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-e.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=e.MAX_NODE_DISPLACEMENT_INCREMENTAL):(n>e.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(e.COOLING_ADAPTATION_FACTOR,1-(n-e.ADAPTATION_LOWER_NODE_LIMIT)/(e.ADAPTATION_UPPER_NODE_LIMIT-e.ADAPTATION_LOWER_NODE_LIMIT)*(1-e.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=e.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},a.prototype.calcSpringForces=function(){for(var n=this.getAllEdges(),c,l=0;l0&&arguments[0]!==void 0?arguments[0]:!0,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l,E,T,D,L=this.getAllNodes(),O;if(this.useFRGridVariant)for(this.totalIterations%e.GRID_CALCULATION_CHECK_PERIOD==1&&n&&this.updateGrid(),O=new Set,l=0;ld||O>d)&&(n.gravitationForceX=-this.gravityConstant*T,n.gravitationForceY=-this.gravityConstant*D)):(d=c.getEstimatedSize()*this.compoundGravityRangeFactor,(L>d||O>d)&&(n.gravitationForceX=-this.gravityConstant*T*this.compoundGravityConstant,n.gravitationForceY=-this.gravityConstant*D*this.compoundGravityConstant))},a.prototype.isConverged=function(){var n,c=!1;return this.totalIterations>this.maxIterations/3&&(c=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),n=this.totalDisplacement=L.length||d>=L[0].length)){for(var N=0;Na}}]),o}();f.exports=i},function(f,m,y){var r=function(){function i(o,g){for(var a=0;a2&&arguments[2]!==void 0?arguments[2]:1,v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;t(this,i),this.sequence1=o,this.sequence2=g,this.match_score=a,this.mismatch_penalty=v,this.gap_penalty=n,this.iMax=o.length+1,this.jMax=g.length+1,this.grid=new Array(this.iMax);for(var c=0;c=0;o--){var g=this.listeners[o];g.event===e&&g.callback===i&&this.listeners.splice(o,1)}},t.emit=function(e,i){for(var o=0;og.coolingFactor*g.maxNodeDisplacement&&(this.displacementX=g.coolingFactor*g.maxNodeDisplacement*e.sign(this.displacementX)),Math.abs(this.displacementY)>g.coolingFactor*g.maxNodeDisplacement&&(this.displacementY=g.coolingFactor*g.maxNodeDisplacement*e.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),g.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},i.prototype.propogateDisplacementToChildren=function(g,a){for(var v=this.getChild().getNodes(),n,c=0;c0)this.positionNodesRadially(s);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var h=new Set(this.getAllNodes()),u=this.nodesWithGravity.filter(function(p){return h.has(p)});this.graphManager.setAllNodesToApplyGravitation(u),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},d.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%v.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var s=new Set(this.getAllNodes()),h=this.nodesWithGravity.filter(function(A){return s.has(A)});this.graphManager.setAllNodesToApplyGravitation(h),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=v.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=v.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var u=!this.isTreeGrowing&&!this.isGrowthFinished,p=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(u,p),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},d.prototype.getPositionsData=function(){for(var s=this.graphManager.getAllNodes(),h={},u=0;u1){var x;for(x=0;xp&&(p=Math.floor(R.y)),C=Math.floor(R.x+a.DEFAULT_COMPONENT_SEPERATION)}this.transform(new l(n.WORLD_CENTER_X-R.x/2,n.WORLD_CENTER_Y-R.y/2))},d.radialLayout=function(s,h,u){var p=Math.max(this.maxDiagonalInTree(s),a.DEFAULT_RADIAL_SEPARATION);d.branchRadialLayout(h,null,0,359,0,p);var A=L.calculateBounds(s),C=new O;C.setDeviceOrgX(A.getMinX()),C.setDeviceOrgY(A.getMinY()),C.setWorldOrgX(u.x),C.setWorldOrgY(u.y);for(var R=0;R1;){var H=k[0];k.splice(0,1);var P=M.indexOf(H);P>=0&&M.splice(P,1),b--,G--}h!=null?Y=(M.indexOf(k[0])+1)%b:Y=0;for(var B=Math.abs(p-u)/G,$=Y;F!=G;$=++$%b){var K=M[$].getOtherEnd(s);if(K!=h){var Q=(u+F*B)%360,J=(Q+B)%360;d.branchRadialLayout(K,s,Q,J,A+C,C),F++}}},d.maxDiagonalInTree=function(s){for(var h=T.MIN_VALUE,u=0;uh&&(h=A)}return h},d.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},d.prototype.groupZeroDegreeMembers=function(){var s=this,h={};this.memberGroups={},this.idToDummyNode={};for(var u=[],p=this.graphManager.getAllNodes(),A=0;A"u"&&(h[x]=[]),h[x]=h[x].concat(C)}Object.keys(h).forEach(function(_){if(h[_].length>1){var U="DummyCompound_"+_;s.memberGroups[U]=h[_];var X=h[_][0].getParent(),M=new o(s.graphManager);M.id=U,M.paddingLeft=X.paddingLeft||0,M.paddingRight=X.paddingRight||0,M.paddingBottom=X.paddingBottom||0,M.paddingTop=X.paddingTop||0,s.idToDummyNode[U]=M;var G=s.getGraphManager().add(s.newGraph(),M),F=X.getChild();F.add(M);for(var b=0;b=0;s--){var h=this.compoundOrder[s],u=h.id,p=h.paddingLeft,A=h.paddingTop;this.adjustLocations(this.tiledMemberPack[u],h.rect.x,h.rect.y,p,A)}},d.prototype.repopulateZeroDegreeMembers=function(){var s=this,h=this.tiledZeroDegreePack;Object.keys(h).forEach(function(u){var p=s.idToDummyNode[u],A=p.paddingLeft,C=p.paddingTop;s.adjustLocations(h[u],p.rect.x,p.rect.y,A,C)})},d.prototype.getToBeTiled=function(s){var h=s.id;if(this.toBeTiled[h]!=null)return this.toBeTiled[h];var u=s.getChild();if(u==null)return this.toBeTiled[h]=!1,!1;for(var p=u.getNodes(),A=0;A0)return this.toBeTiled[h]=!1,!1;if(C.getChild()==null){this.toBeTiled[C.id]=!1;continue}if(!this.getToBeTiled(C))return this.toBeTiled[h]=!1,!1}return this.toBeTiled[h]=!0,!0},d.prototype.getNodeDegree=function(s){s.id;for(var h=s.getEdges(),u=0,p=0;p_&&(_=X.rect.height)}u+=_+s.verticalPadding}},d.prototype.tileCompoundMembers=function(s,h){var u=this;this.tiledMemberPack=[],Object.keys(s).forEach(function(p){var A=h[p];u.tiledMemberPack[p]=u.tileNodes(s[p],A.paddingLeft+A.paddingRight),A.rect.width=u.tiledMemberPack[p].width,A.rect.height=u.tiledMemberPack[p].height})},d.prototype.tileNodes=function(s,h){var u=a.TILING_PADDING_VERTICAL,p=a.TILING_PADDING_HORIZONTAL,A={rows:[],rowWidth:[],rowHeight:[],width:0,height:h,verticalPadding:u,horizontalPadding:p};s.sort(function(x,_){return x.rect.width*x.rect.height>_.rect.width*_.rect.height?-1:x.rect.width*x.rect.height<_.rect.width*_.rect.height?1:0});for(var C=0;C0&&(R+=s.horizontalPadding),s.rowWidth[u]=R,s.width0&&(x+=s.verticalPadding);var _=0;x>s.rowHeight[u]&&(_=s.rowHeight[u],s.rowHeight[u]=x,_=s.rowHeight[u]-_),s.height+=_,s.rows[u].push(h)},d.prototype.getShortestRowIndex=function(s){for(var h=-1,u=Number.MAX_VALUE,p=0;pu&&(h=p,u=s.rowWidth[p]);return h},d.prototype.canAddHorizontal=function(s,h,u){var p=this.getShortestRowIndex(s);if(p<0)return!0;var A=s.rowWidth[p];if(A+s.horizontalPadding+h<=s.width)return!0;var C=0;s.rowHeight[p]0&&(C=u+s.verticalPadding-s.rowHeight[p]);var R;s.width-A>=h+s.horizontalPadding?R=(s.height+C)/(A+h+s.horizontalPadding):R=(s.height+C)/s.width,C=u+s.verticalPadding;var x;return s.widthC&&h!=u){p.splice(-1,1),s.rows[u].push(A),s.rowWidth[h]=s.rowWidth[h]-C,s.rowWidth[u]=s.rowWidth[u]+C,s.width=s.rowWidth[instance.getLongestRowIndex(s)];for(var R=Number.MIN_VALUE,x=0;xR&&(R=p[x].height);h>0&&(R+=s.verticalPadding);var _=s.rowHeight[h]+s.rowHeight[u];s.rowHeight[h]=R,s.rowHeight[u]0)for(var F=A;F<=C;F++)G[0]+=this.grid[F][R-1].length+this.grid[F][R].length-1;if(C0)for(var F=R;F<=x;F++)G[3]+=this.grid[A-1][F].length+this.grid[A][F].length-1;for(var b=T.MAX_VALUE,Y,k,H=0;H0){var x;x=O.getGraphManager().add(O.newGraph(),u),this.processChildrenList(x,h,O)}}},l.prototype.stop=function(){return this.stopped=!0,this};var T=function(L){L("layout","cose-bilkent",l)};typeof cytoscape<"u"&&T(cytoscape),m.exports=T}])})})(dt);var St=dt.exports;const Gt=Nt(St);var st=function(){var I=S(function(O,d,N,s){for(N=N||{},s=O.length;s--;N[O[s]]=d);return N},"o"),w=[1,4],f=[1,13],m=[1,12],y=[1,15],r=[1,16],t=[1,20],e=[1,19],i=[6,7,8],o=[1,26],g=[1,24],a=[1,25],v=[6,7,11],n=[1,6,13,15,16,19,22],c=[1,33],l=[1,34],E=[1,6,7,11,13,15,16,19,22],T={trace:S(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:S(function(d,N,s,h,u,p,A){var C=p.length-1;switch(u){case 6:case 7:return h;case 8:h.getLogger().trace("Stop NL ");break;case 9:h.getLogger().trace("Stop EOF ");break;case 11:h.getLogger().trace("Stop NL2 ");break;case 12:h.getLogger().trace("Stop EOF2 ");break;case 15:h.getLogger().info("Node: ",p[C].id),h.addNode(p[C-1].length,p[C].id,p[C].descr,p[C].type);break;case 16:h.getLogger().trace("Icon: ",p[C]),h.decorateNode({icon:p[C]});break;case 17:case 21:h.decorateNode({class:p[C]});break;case 18:h.getLogger().trace("SPACELIST");break;case 19:h.getLogger().trace("Node: ",p[C].id),h.addNode(0,p[C].id,p[C].descr,p[C].type);break;case 20:h.decorateNode({icon:p[C]});break;case 25:h.getLogger().trace("node found ..",p[C-2]),this.$={id:p[C-1],descr:p[C-1],type:h.getType(p[C-2],p[C])};break;case 26:this.$={id:p[C],descr:p[C],type:h.nodeType.DEFAULT};break;case 27:h.getLogger().trace("node found ..",p[C-3]),this.$={id:p[C-3],descr:p[C-1],type:h.getType(p[C-2],p[C])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:w},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:w},{6:f,7:[1,10],9:9,12:11,13:m,14:14,15:y,16:r,17:17,18:18,19:t,22:e},I(i,[2,3]),{1:[2,2]},I(i,[2,4]),I(i,[2,5]),{1:[2,6],6:f,12:21,13:m,14:14,15:y,16:r,17:17,18:18,19:t,22:e},{6:f,9:22,12:11,13:m,14:14,15:y,16:r,17:17,18:18,19:t,22:e},{6:o,7:g,10:23,11:a},I(v,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:t,22:e}),I(v,[2,18]),I(v,[2,19]),I(v,[2,20]),I(v,[2,21]),I(v,[2,23]),I(v,[2,24]),I(v,[2,26],{19:[1,30]}),{20:[1,31]},{6:o,7:g,10:32,11:a},{1:[2,7],6:f,12:21,13:m,14:14,15:y,16:r,17:17,18:18,19:t,22:e},I(n,[2,14],{7:c,11:l}),I(E,[2,8]),I(E,[2,9]),I(E,[2,10]),I(v,[2,15]),I(v,[2,16]),I(v,[2,17]),{20:[1,35]},{21:[1,36]},I(n,[2,13],{7:c,11:l}),I(E,[2,11]),I(E,[2,12]),{21:[1,37]},I(v,[2,25]),I(v,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:S(function(d,N){if(N.recoverable)this.trace(d);else{var s=new Error(d);throw s.hash=N,s}},"parseError"),parse:S(function(d){var N=this,s=[0],h=[],u=[null],p=[],A=this.table,C="",R=0,x=0,_=2,U=1,X=p.slice.call(arguments,1),M=Object.create(this.lexer),G={yy:{}};for(var F in this.yy)Object.prototype.hasOwnProperty.call(this.yy,F)&&(G.yy[F]=this.yy[F]);M.setInput(d,G.yy),G.yy.lexer=M,G.yy.parser=this,typeof M.yylloc>"u"&&(M.yylloc={});var b=M.yylloc;p.push(b);var Y=M.options&&M.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function k(V){s.length=s.length-2*V,u.length=u.length-V,p.length=p.length-V}S(k,"popStack");function H(){var V;return V=h.pop()||M.lex()||U,typeof V!="number"&&(V instanceof Array&&(h=V,V=h.pop()),V=N.symbols_[V]||V),V}S(H,"lex");for(var P,B,$,K,Q={},J,j,gt,q;;){if(B=s[s.length-1],this.defaultActions[B]?$=this.defaultActions[B]:((P===null||typeof P>"u")&&(P=H()),$=A[B]&&A[B][P]),typeof $>"u"||!$.length||!$[0]){var rt="";q=[];for(J in A[B])this.terminals_[J]&&J>_&&q.push("'"+this.terminals_[J]+"'");M.showPosition?rt="Parse error on line "+(R+1)+`: `+M.showPosition()+` Expecting `+q.join(", ")+", got '"+(this.terminals_[P]||P)+"'":rt="Parse error on line "+(R+1)+": Unexpected "+(P==U?"end of input":"'"+(this.terminals_[P]||P)+"'"),this.parseError(rt,{text:M.match,token:this.terminals_[P]||P,line:M.yylineno,loc:b,expected:q})}if($[0]instanceof Array&&$.length>1)throw new Error("Parse Error: multiple actions possible at state: "+B+", token: "+P);switch($[0]){case 1:s.push(P),u.push(M.yytext),p.push(M.yylloc),s.push($[1]),P=null,x=M.yyleng,C=M.yytext,R=M.yylineno,b=M.yylloc;break;case 2:if(j=this.productions_[$[1]][1],Q.$=u[u.length-j],Q._$={first_line:p[p.length-(j||1)].first_line,last_line:p[p.length-1].last_line,first_column:p[p.length-(j||1)].first_column,last_column:p[p.length-1].last_column},Y&&(Q._$.range=[p[p.length-(j||1)].range[0],p[p.length-1].range[1]]),K=this.performAction.apply(Q,[C,x,R,G.yy,$[1],u,p].concat(X)),typeof K<"u")return K;j&&(s=s.slice(0,-1*j*2),u=u.slice(0,-1*j),p=p.slice(0,-1*j)),s.push(this.productions_[$[1]][0]),u.push(Q.$),p.push(Q._$),gt=A[s[s.length-2]][s[s.length-1]],s.push(gt);break;case 3:return!0}}return!0},"parse")},D=function(){var O={EOF:1,parseError:S(function(N,s){if(this.yy.parser)this.yy.parser.parseError(N,s);else throw new Error(N)},"parseError"),setInput:S(function(d,N){return this.yy=N||this.yy||{},this._input=d,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:S(function(){var d=this._input[0];this.yytext+=d,this.yyleng++,this.offset++,this.match+=d,this.matched+=d;var N=d.match(/(?:\r\n?|\n).*/g);return N?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),d},"input"),unput:S(function(d){var N=d.length,s=d.split(/(?:\r\n?|\n)/g);this._input=d+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-N),this.offset-=N;var h=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),s.length-1&&(this.yylineno-=s.length-1);var u=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:s?(s.length===h.length?this.yylloc.first_column:0)+h[h.length-s.length].length-s[0].length:this.yylloc.first_column-N},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-N]),this.yyleng=this.yytext.length,this},"unput"),more:S(function(){return this._more=!0,this},"more"),reject:S(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). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:S(function(d){this.unput(this.match.slice(d))},"less"),pastInput:S(function(){var d=this.matched.substr(0,this.matched.length-this.match.length);return(d.length>20?"...":"")+d.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:S(function(){var d=this.match;return d.length<20&&(d+=this._input.substr(0,20-d.length)),(d.substr(0,20)+(d.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:S(function(){var d=this.pastInput(),N=new Array(d.length+1).join("-");return d+this.upcomingInput()+` diff --git a/static/js/md-pieDiagram-YF2LJOPJ-CEpnORvl.js b/static/js/md-pieDiagram-YF2LJOPJ-BBXxsIEF.js similarity index 93% rename from static/js/md-pieDiagram-YF2LJOPJ-CEpnORvl.js rename to static/js/md-pieDiagram-YF2LJOPJ-BBXxsIEF.js index 7eb7a40b5..cd4d094a5 100644 --- a/static/js/md-pieDiagram-YF2LJOPJ-CEpnORvl.js +++ b/static/js/md-pieDiagram-YF2LJOPJ-BBXxsIEF.js @@ -1,4 +1,4 @@ -import{p as V}from"./md-chunk-TMUBEWPD-CnSBa8lL.js";import{a7 as y,a2 as G,aG as U,_ as u,g as j,s as Z,a as q,b as H,n as J,o as K,l as z,c as Q,C as X,G as Y,N as tt,e as et,v as at,E as rt}from"./md-index-Pj6M4nIk.js";import{p as nt}from"./md-gitGraph-YCYPL57B-Hx73xtpL.js";import{d as P}from"./md-arc-JYr3KmYy.js";import{o as it}from"./md-ordinal-CxVaQH2l.js";import"./md-_baseUniq-B_2Z1DXv.js";import"./md-_basePickBy-DCcDoZXV.js";import"./md-clone-CnShQSdt.js";import"./md-init-Gi6I4Gst.js";function st(t,a){return at?1:a>=t?0:NaN}function ot(t){return t}function lt(){var t=ot,a=st,m=null,o=y(0),p=y(G),x=y(0);function i(e){var r,l=(e=U(e)).length,g,A,h=0,c=new Array(l),n=new Array(l),v=+o.apply(this,arguments),w=Math.min(G,Math.max(-G,p.apply(this,arguments)-v)),f,T=Math.min(Math.abs(w)/l,x.apply(this,arguments)),$=T*(w<0?-1:1),d;for(r=0;r0&&(h+=d);for(a!=null?c.sort(function(S,C){return a(n[S],n[C])}):m!=null&&c.sort(function(S,C){return m(e[S],e[C])}),r=0,A=h?(w-l*$)/h:0;r0?d*A:0)+$,n[g]={data:e[g],index:r,value:d,startAngle:v,endAngle:f,padAngle:T};return n}return i.value=function(e){return arguments.length?(t=typeof e=="function"?e:y(+e),i):t},i.sortValues=function(e){return arguments.length?(a=e,m=null,i):a},i.sort=function(e){return arguments.length?(m=e,a=null,i):m},i.startAngle=function(e){return arguments.length?(o=typeof e=="function"?e:y(+e),i):o},i.endAngle=function(e){return arguments.length?(p=typeof e=="function"?e:y(+e),i):p},i.padAngle=function(e){return arguments.length?(x=typeof e=="function"?e:y(+e),i):x},i}var ct=rt.pie,F={sections:new Map,showData:!1},b=F.sections,N=F.showData,ut=structuredClone(ct),pt=u(()=>structuredClone(ut),"getConfig"),gt=u(()=>{b=new Map,N=F.showData,at()},"clear"),dt=u(({label:t,value:a})=>{b.has(t)||(b.set(t,a),z.debug(`added new section: ${t}, with value: ${a}`))},"addSection"),ft=u(()=>b,"getSections"),mt=u(t=>{N=t},"setShowData"),ht=u(()=>N,"getShowData"),R={getConfig:pt,clear:gt,setDiagramTitle:K,getDiagramTitle:J,setAccTitle:H,getAccTitle:q,setAccDescription:Z,getAccDescription:j,addSection:dt,getSections:ft,setShowData:mt,getShowData:ht},vt=u((t,a)=>{V(t,a),a.setShowData(t.showData),t.sections.map(a.addSection)},"populateDb"),St={parse:u(async t=>{const a=await nt("pie",t);z.debug(a),vt(a,R)},"parse")},yt=u(t=>` +import{p as V}from"./md-chunk-TMUBEWPD-BMgjwLeC.js";import{a7 as y,a2 as G,aG as U,_ as u,g as j,s as Z,a as q,b as H,n as J,o as K,l as z,c as Q,C as X,G as Y,N as tt,e as et,v as at,E as rt}from"./md-index-1F_vrIf8.js";import{p as nt}from"./md-gitGraph-YCYPL57B-Da34XlYK.js";import{d as P}from"./md-arc-iggqmto5.js";import{o as it}from"./md-ordinal-CxVaQH2l.js";import"./md-_baseUniq-CaouebKG.js";import"./md-_basePickBy-BEC9IKhF.js";import"./md-clone-Cc6Gk5Be.js";import"./md-init-Gi6I4Gst.js";function st(t,a){return at?1:a>=t?0:NaN}function ot(t){return t}function lt(){var t=ot,a=st,m=null,o=y(0),p=y(G),x=y(0);function i(e){var r,l=(e=U(e)).length,g,A,h=0,c=new Array(l),n=new Array(l),v=+o.apply(this,arguments),w=Math.min(G,Math.max(-G,p.apply(this,arguments)-v)),f,T=Math.min(Math.abs(w)/l,x.apply(this,arguments)),$=T*(w<0?-1:1),d;for(r=0;r0&&(h+=d);for(a!=null?c.sort(function(S,C){return a(n[S],n[C])}):m!=null&&c.sort(function(S,C){return m(e[S],e[C])}),r=0,A=h?(w-l*$)/h:0;r0?d*A:0)+$,n[g]={data:e[g],index:r,value:d,startAngle:v,endAngle:f,padAngle:T};return n}return i.value=function(e){return arguments.length?(t=typeof e=="function"?e:y(+e),i):t},i.sortValues=function(e){return arguments.length?(a=e,m=null,i):a},i.sort=function(e){return arguments.length?(m=e,a=null,i):m},i.startAngle=function(e){return arguments.length?(o=typeof e=="function"?e:y(+e),i):o},i.endAngle=function(e){return arguments.length?(p=typeof e=="function"?e:y(+e),i):p},i.padAngle=function(e){return arguments.length?(x=typeof e=="function"?e:y(+e),i):x},i}var ct=rt.pie,F={sections:new Map,showData:!1},b=F.sections,N=F.showData,ut=structuredClone(ct),pt=u(()=>structuredClone(ut),"getConfig"),gt=u(()=>{b=new Map,N=F.showData,at()},"clear"),dt=u(({label:t,value:a})=>{b.has(t)||(b.set(t,a),z.debug(`added new section: ${t}, with value: ${a}`))},"addSection"),ft=u(()=>b,"getSections"),mt=u(t=>{N=t},"setShowData"),ht=u(()=>N,"getShowData"),R={getConfig:pt,clear:gt,setDiagramTitle:K,getDiagramTitle:J,setAccTitle:H,getAccTitle:q,setAccDescription:Z,getAccDescription:j,addSection:dt,getSections:ft,setShowData:mt,getShowData:ht},vt=u((t,a)=>{V(t,a),a.setShowData(t.showData),t.sections.map(a.addSection)},"populateDb"),St={parse:u(async t=>{const a=await nt("pie",t);z.debug(a),vt(a,R)},"parse")},yt=u(t=>` .pieCircle{ stroke: ${t.pieStrokeColor}; stroke-width : ${t.pieStrokeWidth}; diff --git a/static/js/md-quadrantDiagram-OS5C2QUG-DQuklVfT.js b/static/js/md-quadrantDiagram-OS5C2QUG-Q3DlY2O7.js similarity index 99% rename from static/js/md-quadrantDiagram-OS5C2QUG-DQuklVfT.js rename to static/js/md-quadrantDiagram-OS5C2QUG-Q3DlY2O7.js index 3ebc02425..5cdbe3cd0 100644 --- a/static/js/md-quadrantDiagram-OS5C2QUG-DQuklVfT.js +++ b/static/js/md-quadrantDiagram-OS5C2QUG-Q3DlY2O7.js @@ -1,4 +1,4 @@ -import{_ as o,s as _e,g as Ae,n as ie,o as ke,a as Fe,b as Pe,c as wt,l as At,d as zt,e as ve,v as Ce,E as D,I as Le,i as Ee}from"./md-index-Pj6M4nIk.js";import{l as ee}from"./md-linear-D6Y5aq77.js";import"./md-init-Gi6I4Gst.js";var Vt=function(){var t=o(function(j,r,l,g){for(l=l||{},g=j.length;g--;l[j[g]]=r);return l},"o"),n=[1,3],u=[1,4],c=[1,5],h=[1,6],p=[1,7],y=[1,4,5,10,12,13,14,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],S=[1,4,5,10,12,13,14,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],a=[55,56,57],A=[2,36],d=[1,37],T=[1,36],q=[1,38],m=[1,35],b=[1,43],x=[1,41],O=[1,14],Y=[1,23],G=[1,18],yt=[1,19],Tt=[1,20],dt=[1,21],Ft=[1,22],ut=[1,24],xt=[1,25],ft=[1,26],gt=[1,27],i=[1,28],Bt=[1,29],W=[1,32],U=[1,33],k=[1,34],F=[1,39],P=[1,40],v=[1,42],C=[1,44],H=[1,62],X=[1,61],L=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],Rt=[1,65],Nt=[1,66],Wt=[1,67],Ut=[1,68],Qt=[1,69],Ot=[1,70],Ht=[1,71],Xt=[1,72],Mt=[1,73],Yt=[1,74],jt=[1,75],Gt=[1,76],I=[4,5,6,7,8,9,10,11,12,13,14,15,18],J=[1,90],$=[1,91],tt=[1,92],et=[1,99],it=[1,93],at=[1,96],nt=[1,94],st=[1,95],rt=[1,97],ot=[1,98],Pt=[1,102],Kt=[10,55,56,57],R=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],vt={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:o(function(r,l,g,f,_,e,pt){var s=e.length-1;switch(_){case 23:this.$=e[s];break;case 24:this.$=e[s-1]+""+e[s];break;case 26:this.$=e[s-1]+e[s];break;case 27:this.$=[e[s].trim()];break;case 28:e[s-2].push(e[s].trim()),this.$=e[s-2];break;case 29:this.$=e[s-4],f.addClass(e[s-2],e[s]);break;case 37:this.$=[];break;case 42:this.$=e[s].trim(),f.setDiagramTitle(this.$);break;case 43:this.$=e[s].trim(),f.setAccTitle(this.$);break;case 44:case 45:this.$=e[s].trim(),f.setAccDescription(this.$);break;case 46:f.addSection(e[s].substr(8)),this.$=e[s].substr(8);break;case 47:f.addPoint(e[s-3],"",e[s-1],e[s],[]);break;case 48:f.addPoint(e[s-4],e[s-3],e[s-1],e[s],[]);break;case 49:f.addPoint(e[s-4],"",e[s-2],e[s-1],e[s]);break;case 50:f.addPoint(e[s-5],e[s-4],e[s-2],e[s-1],e[s]);break;case 51:f.setXAxisLeftText(e[s-2]),f.setXAxisRightText(e[s]);break;case 52:e[s-1].text+=" ⟶ ",f.setXAxisLeftText(e[s-1]);break;case 53:f.setXAxisLeftText(e[s]);break;case 54:f.setYAxisBottomText(e[s-2]),f.setYAxisTopText(e[s]);break;case 55:e[s-1].text+=" ⟶ ",f.setYAxisBottomText(e[s-1]);break;case 56:f.setYAxisBottomText(e[s]);break;case 57:f.setQuadrant1Text(e[s]);break;case 58:f.setQuadrant2Text(e[s]);break;case 59:f.setQuadrant3Text(e[s]);break;case 60:f.setQuadrant4Text(e[s]);break;case 64:this.$={text:e[s],type:"text"};break;case 65:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 66:this.$={text:e[s],type:"text"};break;case 67:this.$={text:e[s],type:"markdown"};break;case 68:this.$=e[s];break;case 69:this.$=e[s-1]+""+e[s];break}},"anonymous"),table:[{18:n,26:1,27:2,28:u,55:c,56:h,57:p},{1:[3]},{18:n,26:8,27:2,28:u,55:c,56:h,57:p},{18:n,26:9,27:2,28:u,55:c,56:h,57:p},t(y,[2,33],{29:10}),t(S,[2,61]),t(S,[2,62]),t(S,[2,63]),{1:[2,30]},{1:[2,31]},t(a,A,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:d,5:T,10:q,12:m,13:b,14:x,18:O,25:Y,35:G,37:yt,39:Tt,41:dt,42:Ft,48:ut,50:xt,51:ft,52:gt,53:i,54:Bt,60:W,61:U,63:k,64:F,65:P,66:v,67:C}),t(y,[2,34]),{27:45,55:c,56:h,57:p},t(a,[2,37]),t(a,A,{24:13,32:15,33:16,34:17,43:30,58:31,31:46,4:d,5:T,10:q,12:m,13:b,14:x,18:O,25:Y,35:G,37:yt,39:Tt,41:dt,42:Ft,48:ut,50:xt,51:ft,52:gt,53:i,54:Bt,60:W,61:U,63:k,64:F,65:P,66:v,67:C}),t(a,[2,39]),t(a,[2,40]),t(a,[2,41]),{36:[1,47]},{38:[1,48]},{40:[1,49]},t(a,[2,45]),t(a,[2,46]),{18:[1,50]},{4:d,5:T,10:q,12:m,13:b,14:x,43:51,58:31,60:W,61:U,63:k,64:F,65:P,66:v,67:C},{4:d,5:T,10:q,12:m,13:b,14:x,43:52,58:31,60:W,61:U,63:k,64:F,65:P,66:v,67:C},{4:d,5:T,10:q,12:m,13:b,14:x,43:53,58:31,60:W,61:U,63:k,64:F,65:P,66:v,67:C},{4:d,5:T,10:q,12:m,13:b,14:x,43:54,58:31,60:W,61:U,63:k,64:F,65:P,66:v,67:C},{4:d,5:T,10:q,12:m,13:b,14:x,43:55,58:31,60:W,61:U,63:k,64:F,65:P,66:v,67:C},{4:d,5:T,10:q,12:m,13:b,14:x,43:56,58:31,60:W,61:U,63:k,64:F,65:P,66:v,67:C},{4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,44:[1,57],47:[1,58],58:60,59:59,63:k,64:F,65:P,66:v,67:C},t(L,[2,64]),t(L,[2,66]),t(L,[2,67]),t(L,[2,70]),t(L,[2,71]),t(L,[2,72]),t(L,[2,73]),t(L,[2,74]),t(L,[2,75]),t(L,[2,76]),t(L,[2,77]),t(L,[2,78]),t(L,[2,79]),t(L,[2,80]),t(y,[2,35]),t(a,[2,38]),t(a,[2,42]),t(a,[2,43]),t(a,[2,44]),{3:64,4:Rt,5:Nt,6:Wt,7:Ut,8:Qt,9:Ot,10:Ht,11:Xt,12:Mt,13:Yt,14:jt,15:Gt,21:63},t(a,[2,53],{59:59,58:60,4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,49:[1,77],63:k,64:F,65:P,66:v,67:C}),t(a,[2,56],{59:59,58:60,4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,49:[1,78],63:k,64:F,65:P,66:v,67:C}),t(a,[2,57],{59:59,58:60,4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,63:k,64:F,65:P,66:v,67:C}),t(a,[2,58],{59:59,58:60,4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,63:k,64:F,65:P,66:v,67:C}),t(a,[2,59],{59:59,58:60,4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,63:k,64:F,65:P,66:v,67:C}),t(a,[2,60],{59:59,58:60,4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,63:k,64:F,65:P,66:v,67:C}),{45:[1,79]},{44:[1,80]},t(L,[2,65]),t(L,[2,81]),t(L,[2,82]),t(L,[2,83]),{3:82,4:Rt,5:Nt,6:Wt,7:Ut,8:Qt,9:Ot,10:Ht,11:Xt,12:Mt,13:Yt,14:jt,15:Gt,18:[1,81]},t(I,[2,23]),t(I,[2,1]),t(I,[2,2]),t(I,[2,3]),t(I,[2,4]),t(I,[2,5]),t(I,[2,6]),t(I,[2,7]),t(I,[2,8]),t(I,[2,9]),t(I,[2,10]),t(I,[2,11]),t(I,[2,12]),t(a,[2,52],{58:31,43:83,4:d,5:T,10:q,12:m,13:b,14:x,60:W,61:U,63:k,64:F,65:P,66:v,67:C}),t(a,[2,55],{58:31,43:84,4:d,5:T,10:q,12:m,13:b,14:x,60:W,61:U,63:k,64:F,65:P,66:v,67:C}),{46:[1,85]},{45:[1,86]},{4:J,5:$,6:tt,8:et,11:it,13:at,16:89,17:nt,18:st,19:rt,20:ot,22:88,23:87},t(I,[2,24]),t(a,[2,51],{59:59,58:60,4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,63:k,64:F,65:P,66:v,67:C}),t(a,[2,54],{59:59,58:60,4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,63:k,64:F,65:P,66:v,67:C}),t(a,[2,47],{22:88,16:89,23:100,4:J,5:$,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot}),{46:[1,101]},t(a,[2,29],{10:Pt}),t(Kt,[2,27],{16:103,4:J,5:$,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot}),t(R,[2,25]),t(R,[2,13]),t(R,[2,14]),t(R,[2,15]),t(R,[2,16]),t(R,[2,17]),t(R,[2,18]),t(R,[2,19]),t(R,[2,20]),t(R,[2,21]),t(R,[2,22]),t(a,[2,49],{10:Pt}),t(a,[2,48],{22:88,16:89,23:104,4:J,5:$,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot}),{4:J,5:$,6:tt,8:et,11:it,13:at,16:89,17:nt,18:st,19:rt,20:ot,22:105},t(R,[2,26]),t(a,[2,50],{10:Pt}),t(Kt,[2,28],{16:103,4:J,5:$,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot})],defaultActions:{8:[2,30],9:[2,31]},parseError:o(function(r,l){if(l.recoverable)this.trace(r);else{var g=new Error(r);throw g.hash=l,g}},"parseError"),parse:o(function(r){var l=this,g=[0],f=[],_=[null],e=[],pt=this.table,s="",mt=0,Zt=0,qe=2,Jt=1,me=e.slice.call(arguments,1),E=Object.create(this.lexer),K={yy:{}};for(var Ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ct)&&(K.yy[Ct]=this.yy[Ct]);E.setInput(r,K.yy),K.yy.lexer=E,K.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var Lt=E.yylloc;e.push(Lt);var be=E.options&&E.options.ranges;typeof K.yy.parseError=="function"?this.parseError=K.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Se(B){g.length=g.length-2*B,_.length=_.length-B,e.length=e.length-B}o(Se,"popStack");function $t(){var B;return B=f.pop()||E.lex()||Jt,typeof B!="number"&&(B instanceof Array&&(f=B,B=f.pop()),B=l.symbols_[B]||B),B}o($t,"lex");for(var w,Z,N,Et,lt={},bt,M,te,St;;){if(Z=g[g.length-1],this.defaultActions[Z]?N=this.defaultActions[Z]:((w===null||typeof w>"u")&&(w=$t()),N=pt[Z]&&pt[Z][w]),typeof N>"u"||!N.length||!N[0]){var Dt="";St=[];for(bt in pt[Z])this.terminals_[bt]&&bt>qe&&St.push("'"+this.terminals_[bt]+"'");E.showPosition?Dt="Parse error on line "+(mt+1)+`: +import{_ as o,s as _e,g as Ae,n as ie,o as ke,a as Fe,b as Pe,c as wt,l as At,d as zt,e as ve,v as Ce,E as D,I as Le,i as Ee}from"./md-index-1F_vrIf8.js";import{l as ee}from"./md-linear-Co1Vf5c0.js";import"./md-init-Gi6I4Gst.js";var Vt=function(){var t=o(function(j,r,l,g){for(l=l||{},g=j.length;g--;l[j[g]]=r);return l},"o"),n=[1,3],u=[1,4],c=[1,5],h=[1,6],p=[1,7],y=[1,4,5,10,12,13,14,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],S=[1,4,5,10,12,13,14,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],a=[55,56,57],A=[2,36],d=[1,37],T=[1,36],q=[1,38],m=[1,35],b=[1,43],x=[1,41],O=[1,14],Y=[1,23],G=[1,18],yt=[1,19],Tt=[1,20],dt=[1,21],Ft=[1,22],ut=[1,24],xt=[1,25],ft=[1,26],gt=[1,27],i=[1,28],Bt=[1,29],W=[1,32],U=[1,33],k=[1,34],F=[1,39],P=[1,40],v=[1,42],C=[1,44],H=[1,62],X=[1,61],L=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],Rt=[1,65],Nt=[1,66],Wt=[1,67],Ut=[1,68],Qt=[1,69],Ot=[1,70],Ht=[1,71],Xt=[1,72],Mt=[1,73],Yt=[1,74],jt=[1,75],Gt=[1,76],I=[4,5,6,7,8,9,10,11,12,13,14,15,18],J=[1,90],$=[1,91],tt=[1,92],et=[1,99],it=[1,93],at=[1,96],nt=[1,94],st=[1,95],rt=[1,97],ot=[1,98],Pt=[1,102],Kt=[10,55,56,57],R=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],vt={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:o(function(r,l,g,f,_,e,pt){var s=e.length-1;switch(_){case 23:this.$=e[s];break;case 24:this.$=e[s-1]+""+e[s];break;case 26:this.$=e[s-1]+e[s];break;case 27:this.$=[e[s].trim()];break;case 28:e[s-2].push(e[s].trim()),this.$=e[s-2];break;case 29:this.$=e[s-4],f.addClass(e[s-2],e[s]);break;case 37:this.$=[];break;case 42:this.$=e[s].trim(),f.setDiagramTitle(this.$);break;case 43:this.$=e[s].trim(),f.setAccTitle(this.$);break;case 44:case 45:this.$=e[s].trim(),f.setAccDescription(this.$);break;case 46:f.addSection(e[s].substr(8)),this.$=e[s].substr(8);break;case 47:f.addPoint(e[s-3],"",e[s-1],e[s],[]);break;case 48:f.addPoint(e[s-4],e[s-3],e[s-1],e[s],[]);break;case 49:f.addPoint(e[s-4],"",e[s-2],e[s-1],e[s]);break;case 50:f.addPoint(e[s-5],e[s-4],e[s-2],e[s-1],e[s]);break;case 51:f.setXAxisLeftText(e[s-2]),f.setXAxisRightText(e[s]);break;case 52:e[s-1].text+=" ⟶ ",f.setXAxisLeftText(e[s-1]);break;case 53:f.setXAxisLeftText(e[s]);break;case 54:f.setYAxisBottomText(e[s-2]),f.setYAxisTopText(e[s]);break;case 55:e[s-1].text+=" ⟶ ",f.setYAxisBottomText(e[s-1]);break;case 56:f.setYAxisBottomText(e[s]);break;case 57:f.setQuadrant1Text(e[s]);break;case 58:f.setQuadrant2Text(e[s]);break;case 59:f.setQuadrant3Text(e[s]);break;case 60:f.setQuadrant4Text(e[s]);break;case 64:this.$={text:e[s],type:"text"};break;case 65:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 66:this.$={text:e[s],type:"text"};break;case 67:this.$={text:e[s],type:"markdown"};break;case 68:this.$=e[s];break;case 69:this.$=e[s-1]+""+e[s];break}},"anonymous"),table:[{18:n,26:1,27:2,28:u,55:c,56:h,57:p},{1:[3]},{18:n,26:8,27:2,28:u,55:c,56:h,57:p},{18:n,26:9,27:2,28:u,55:c,56:h,57:p},t(y,[2,33],{29:10}),t(S,[2,61]),t(S,[2,62]),t(S,[2,63]),{1:[2,30]},{1:[2,31]},t(a,A,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:d,5:T,10:q,12:m,13:b,14:x,18:O,25:Y,35:G,37:yt,39:Tt,41:dt,42:Ft,48:ut,50:xt,51:ft,52:gt,53:i,54:Bt,60:W,61:U,63:k,64:F,65:P,66:v,67:C}),t(y,[2,34]),{27:45,55:c,56:h,57:p},t(a,[2,37]),t(a,A,{24:13,32:15,33:16,34:17,43:30,58:31,31:46,4:d,5:T,10:q,12:m,13:b,14:x,18:O,25:Y,35:G,37:yt,39:Tt,41:dt,42:Ft,48:ut,50:xt,51:ft,52:gt,53:i,54:Bt,60:W,61:U,63:k,64:F,65:P,66:v,67:C}),t(a,[2,39]),t(a,[2,40]),t(a,[2,41]),{36:[1,47]},{38:[1,48]},{40:[1,49]},t(a,[2,45]),t(a,[2,46]),{18:[1,50]},{4:d,5:T,10:q,12:m,13:b,14:x,43:51,58:31,60:W,61:U,63:k,64:F,65:P,66:v,67:C},{4:d,5:T,10:q,12:m,13:b,14:x,43:52,58:31,60:W,61:U,63:k,64:F,65:P,66:v,67:C},{4:d,5:T,10:q,12:m,13:b,14:x,43:53,58:31,60:W,61:U,63:k,64:F,65:P,66:v,67:C},{4:d,5:T,10:q,12:m,13:b,14:x,43:54,58:31,60:W,61:U,63:k,64:F,65:P,66:v,67:C},{4:d,5:T,10:q,12:m,13:b,14:x,43:55,58:31,60:W,61:U,63:k,64:F,65:P,66:v,67:C},{4:d,5:T,10:q,12:m,13:b,14:x,43:56,58:31,60:W,61:U,63:k,64:F,65:P,66:v,67:C},{4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,44:[1,57],47:[1,58],58:60,59:59,63:k,64:F,65:P,66:v,67:C},t(L,[2,64]),t(L,[2,66]),t(L,[2,67]),t(L,[2,70]),t(L,[2,71]),t(L,[2,72]),t(L,[2,73]),t(L,[2,74]),t(L,[2,75]),t(L,[2,76]),t(L,[2,77]),t(L,[2,78]),t(L,[2,79]),t(L,[2,80]),t(y,[2,35]),t(a,[2,38]),t(a,[2,42]),t(a,[2,43]),t(a,[2,44]),{3:64,4:Rt,5:Nt,6:Wt,7:Ut,8:Qt,9:Ot,10:Ht,11:Xt,12:Mt,13:Yt,14:jt,15:Gt,21:63},t(a,[2,53],{59:59,58:60,4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,49:[1,77],63:k,64:F,65:P,66:v,67:C}),t(a,[2,56],{59:59,58:60,4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,49:[1,78],63:k,64:F,65:P,66:v,67:C}),t(a,[2,57],{59:59,58:60,4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,63:k,64:F,65:P,66:v,67:C}),t(a,[2,58],{59:59,58:60,4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,63:k,64:F,65:P,66:v,67:C}),t(a,[2,59],{59:59,58:60,4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,63:k,64:F,65:P,66:v,67:C}),t(a,[2,60],{59:59,58:60,4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,63:k,64:F,65:P,66:v,67:C}),{45:[1,79]},{44:[1,80]},t(L,[2,65]),t(L,[2,81]),t(L,[2,82]),t(L,[2,83]),{3:82,4:Rt,5:Nt,6:Wt,7:Ut,8:Qt,9:Ot,10:Ht,11:Xt,12:Mt,13:Yt,14:jt,15:Gt,18:[1,81]},t(I,[2,23]),t(I,[2,1]),t(I,[2,2]),t(I,[2,3]),t(I,[2,4]),t(I,[2,5]),t(I,[2,6]),t(I,[2,7]),t(I,[2,8]),t(I,[2,9]),t(I,[2,10]),t(I,[2,11]),t(I,[2,12]),t(a,[2,52],{58:31,43:83,4:d,5:T,10:q,12:m,13:b,14:x,60:W,61:U,63:k,64:F,65:P,66:v,67:C}),t(a,[2,55],{58:31,43:84,4:d,5:T,10:q,12:m,13:b,14:x,60:W,61:U,63:k,64:F,65:P,66:v,67:C}),{46:[1,85]},{45:[1,86]},{4:J,5:$,6:tt,8:et,11:it,13:at,16:89,17:nt,18:st,19:rt,20:ot,22:88,23:87},t(I,[2,24]),t(a,[2,51],{59:59,58:60,4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,63:k,64:F,65:P,66:v,67:C}),t(a,[2,54],{59:59,58:60,4:d,5:T,8:H,10:q,12:m,13:b,14:x,18:X,63:k,64:F,65:P,66:v,67:C}),t(a,[2,47],{22:88,16:89,23:100,4:J,5:$,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot}),{46:[1,101]},t(a,[2,29],{10:Pt}),t(Kt,[2,27],{16:103,4:J,5:$,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot}),t(R,[2,25]),t(R,[2,13]),t(R,[2,14]),t(R,[2,15]),t(R,[2,16]),t(R,[2,17]),t(R,[2,18]),t(R,[2,19]),t(R,[2,20]),t(R,[2,21]),t(R,[2,22]),t(a,[2,49],{10:Pt}),t(a,[2,48],{22:88,16:89,23:104,4:J,5:$,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot}),{4:J,5:$,6:tt,8:et,11:it,13:at,16:89,17:nt,18:st,19:rt,20:ot,22:105},t(R,[2,26]),t(a,[2,50],{10:Pt}),t(Kt,[2,28],{16:103,4:J,5:$,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot})],defaultActions:{8:[2,30],9:[2,31]},parseError:o(function(r,l){if(l.recoverable)this.trace(r);else{var g=new Error(r);throw g.hash=l,g}},"parseError"),parse:o(function(r){var l=this,g=[0],f=[],_=[null],e=[],pt=this.table,s="",mt=0,Zt=0,qe=2,Jt=1,me=e.slice.call(arguments,1),E=Object.create(this.lexer),K={yy:{}};for(var Ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ct)&&(K.yy[Ct]=this.yy[Ct]);E.setInput(r,K.yy),K.yy.lexer=E,K.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var Lt=E.yylloc;e.push(Lt);var be=E.options&&E.options.ranges;typeof K.yy.parseError=="function"?this.parseError=K.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Se(B){g.length=g.length-2*B,_.length=_.length-B,e.length=e.length-B}o(Se,"popStack");function $t(){var B;return B=f.pop()||E.lex()||Jt,typeof B!="number"&&(B instanceof Array&&(f=B,B=f.pop()),B=l.symbols_[B]||B),B}o($t,"lex");for(var w,Z,N,Et,lt={},bt,M,te,St;;){if(Z=g[g.length-1],this.defaultActions[Z]?N=this.defaultActions[Z]:((w===null||typeof w>"u")&&(w=$t()),N=pt[Z]&&pt[Z][w]),typeof N>"u"||!N.length||!N[0]){var Dt="";St=[];for(bt in pt[Z])this.terminals_[bt]&&bt>qe&&St.push("'"+this.terminals_[bt]+"'");E.showPosition?Dt="Parse error on line "+(mt+1)+`: `+E.showPosition()+` Expecting `+St.join(", ")+", got '"+(this.terminals_[w]||w)+"'":Dt="Parse error on line "+(mt+1)+": Unexpected "+(w==Jt?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(Dt,{text:E.match,token:this.terminals_[w]||w,line:E.yylineno,loc:Lt,expected:St})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Z+", token: "+w);switch(N[0]){case 1:g.push(w),_.push(E.yytext),e.push(E.yylloc),g.push(N[1]),w=null,Zt=E.yyleng,s=E.yytext,mt=E.yylineno,Lt=E.yylloc;break;case 2:if(M=this.productions_[N[1]][1],lt.$=_[_.length-M],lt._$={first_line:e[e.length-(M||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(M||1)].first_column,last_column:e[e.length-1].last_column},be&&(lt._$.range=[e[e.length-(M||1)].range[0],e[e.length-1].range[1]]),Et=this.performAction.apply(lt,[s,Zt,mt,K.yy,N[1],_,e].concat(me)),typeof Et<"u")return Et;M&&(g=g.slice(0,-1*M*2),_=_.slice(0,-1*M),e=e.slice(0,-1*M)),g.push(this.productions_[N[1]][0]),_.push(lt.$),e.push(lt._$),te=pt[g[g.length-2]][g[g.length-1]],g.push(te);break;case 3:return!0}}return!0},"parse")},Te=function(){var j={EOF:1,parseError:o(function(l,g){if(this.yy.parser)this.yy.parser.parseError(l,g);else throw new Error(l)},"parseError"),setInput:o(function(r,l){return this.yy=l||this.yy||{},this._input=r,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:o(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var l=r.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),r},"input"),unput:o(function(r){var l=r.length,g=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var f=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),g.length-1&&(this.yylineno-=g.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:g?(g.length===f.length?this.yylloc.first_column:0)+f[f.length-g.length].length-g[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(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). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(r){this.unput(this.match.slice(r))},"less"),pastInput:o(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var r=this.pastInput(),l=new Array(r.length+1).join("-");return r+this.upcomingInput()+` diff --git a/static/js/md-requirementDiagram-MIRIMTAZ-Cuj6en5F.js b/static/js/md-requirementDiagram-MIRIMTAZ-B1wB8i9j.js similarity index 99% rename from static/js/md-requirementDiagram-MIRIMTAZ-Cuj6en5F.js rename to static/js/md-requirementDiagram-MIRIMTAZ-B1wB8i9j.js index bdc923d15..58d12e628 100644 --- a/static/js/md-requirementDiagram-MIRIMTAZ-Cuj6en5F.js +++ b/static/js/md-requirementDiagram-MIRIMTAZ-B1wB8i9j.js @@ -1,4 +1,4 @@ -import{_ as r,g as Fe,s as De,a as Pe,b as Ye,c as ve,d as ce,e as Ue,v as Be,l as xe,K as Qe,k as Te}from"./md-index-Pj6M4nIk.js";import{G as He}from"./md-graph-Dk7IDouC.js";import{l as We}from"./md-layout-InKKBTOk.js";import"./md-_baseUniq-B_2Z1DXv.js";import"./md-_basePickBy-DCcDoZXV.js";var he=function(){var e=r(function($,i,a,l){for(a=a||{},l=$.length;l--;a[$[l]]=i);return a},"o"),t=[1,3],c=[1,4],d=[1,5],u=[1,6],p=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],y=[1,18],h=[2,7],o=[1,22],g=[1,23],R=[1,24],I=[1,25],b=[1,26],w=[1,27],q=[1,20],v=[1,28],A=[1,29],F=[62,63],pe=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],fe=[1,47],ye=[1,48],_e=[1,49],ge=[1,50],Ee=[1,51],Re=[1,52],me=[1,53],O=[53,54],D=[1,64],P=[1,60],Y=[1,61],U=[1,62],B=[1,63],Q=[1,65],j=[1,69],X=[1,70],J=[1,67],Z=[1,68],S=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],ne={trace:r(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:r(function(i,a,l,n,f,s,K){var E=s.length-1;switch(f){case 4:this.$=s[E].trim(),n.setAccTitle(this.$);break;case 5:case 6:this.$=s[E].trim(),n.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:n.addRequirement(s[E-3],s[E-4]);break;case 14:n.setNewReqId(s[E-2]);break;case 15:n.setNewReqText(s[E-2]);break;case 16:n.setNewReqRisk(s[E-2]);break;case 17:n.setNewReqVerifyMethod(s[E-2]);break;case 20:this.$=n.RequirementType.REQUIREMENT;break;case 21:this.$=n.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=n.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=n.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=n.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=n.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=n.RiskLevel.LOW_RISK;break;case 27:this.$=n.RiskLevel.MED_RISK;break;case 28:this.$=n.RiskLevel.HIGH_RISK;break;case 29:this.$=n.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=n.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=n.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=n.VerifyType.VERIFY_TEST;break;case 33:n.addElement(s[E-3]);break;case 34:n.setNewElementType(s[E-2]);break;case 35:n.setNewElementDocRef(s[E-2]);break;case 38:n.addRelationship(s[E-2],s[E],s[E-4]);break;case 39:n.addRelationship(s[E-2],s[E-4],s[E]);break;case 40:this.$=n.Relationships.CONTAINS;break;case 41:this.$=n.Relationships.COPIES;break;case 42:this.$=n.Relationships.DERIVES;break;case 43:this.$=n.Relationships.SATISFIES;break;case 44:this.$=n.Relationships.VERIFIES;break;case 45:this.$=n.Relationships.REFINES;break;case 46:this.$=n.Relationships.TRACES;break}},"anonymous"),table:[{3:1,4:2,6:t,9:c,11:d,13:u},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:c,11:d,13:u},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(p,[2,6]),{3:12,4:2,6:t,9:c,11:d,13:u},{1:[2,2]},{4:17,5:y,7:13,8:h,9:c,11:d,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:I,35:b,36:w,44:q,62:v,63:A},e(p,[2,4]),e(p,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:y,7:31,8:h,9:c,11:d,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:I,35:b,36:w,44:q,62:v,63:A},{4:17,5:y,7:32,8:h,9:c,11:d,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:I,35:b,36:w,44:q,62:v,63:A},{4:17,5:y,7:33,8:h,9:c,11:d,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:I,35:b,36:w,44:q,62:v,63:A},{4:17,5:y,7:34,8:h,9:c,11:d,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:I,35:b,36:w,44:q,62:v,63:A},{4:17,5:y,7:35,8:h,9:c,11:d,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:I,35:b,36:w,44:q,62:v,63:A},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},e(F,[2,20]),e(F,[2,21]),e(F,[2,22]),e(F,[2,23]),e(F,[2,24]),e(F,[2,25]),e(pe,[2,49]),e(pe,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:fe,56:ye,57:_e,58:ge,59:Ee,60:Re,61:me},{52:54,55:fe,56:ye,57:_e,58:ge,59:Ee,60:Re,61:me},{5:[1,55]},{5:[1,56]},{53:[1,57]},e(O,[2,40]),e(O,[2,41]),e(O,[2,42]),e(O,[2,43]),e(O,[2,44]),e(O,[2,45]),e(O,[2,46]),{54:[1,58]},{5:D,20:59,21:P,24:Y,26:U,28:B,30:Q},{5:j,30:X,46:66,47:J,49:Z},{23:71,62:v,63:A},{23:72,62:v,63:A},e(S,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:D,20:77,21:P,24:Y,26:U,28:B,30:Q},e(S,[2,19]),e(S,[2,33]),{22:[1,78]},{22:[1,79]},{5:j,30:X,46:80,47:J,49:Z},e(S,[2,37]),e(S,[2,38]),e(S,[2,39]),{23:81,62:v,63:A},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},e(S,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},e(S,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:D,20:106,21:P,24:Y,26:U,28:B,30:Q},{5:D,20:107,21:P,24:Y,26:U,28:B,30:Q},{5:D,20:108,21:P,24:Y,26:U,28:B,30:Q},{5:D,20:109,21:P,24:Y,26:U,28:B,30:Q},{5:j,30:X,46:110,47:J,49:Z},{5:j,30:X,46:111,47:J,49:Z},e(S,[2,14]),e(S,[2,15]),e(S,[2,16]),e(S,[2,17]),e(S,[2,34]),e(S,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:r(function(i,a){if(a.recoverable)this.trace(i);else{var l=new Error(i);throw l.hash=a,l}},"parseError"),parse:r(function(i){var a=this,l=[0],n=[],f=[null],s=[],K=this.table,E="",te=0,Ie=0,Le=2,be=1,Oe=s.slice.call(arguments,1),m=Object.create(this.lexer),C={yy:{}};for(var se in this.yy)Object.prototype.hasOwnProperty.call(this.yy,se)&&(C.yy[se]=this.yy[se]);m.setInput(i,C.yy),C.yy.lexer=m,C.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var ae=m.yylloc;s.push(ae);var Ce=m.options&&m.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Me(N){l.length=l.length-2*N,f.length=f.length-N,s.length=s.length-N}r(Me,"popStack");function Se(){var N;return N=n.pop()||m.lex()||be,typeof N!="number"&&(N instanceof Array&&(n=N,N=n.pop()),N=a.symbols_[N]||N),N}r(Se,"lex");for(var k,M,x,le,H={},ie,V,ke,re;;){if(M=l[l.length-1],this.defaultActions[M]?x=this.defaultActions[M]:((k===null||typeof k>"u")&&(k=Se()),x=K[M]&&K[M][k]),typeof x>"u"||!x.length||!x[0]){var oe="";re=[];for(ie in K[M])this.terminals_[ie]&&ie>Le&&re.push("'"+this.terminals_[ie]+"'");m.showPosition?oe="Parse error on line "+(te+1)+`: +import{_ as r,g as Fe,s as De,a as Pe,b as Ye,c as ve,d as ce,e as Ue,v as Be,l as xe,K as Qe,k as Te}from"./md-index-1F_vrIf8.js";import{G as He}from"./md-graph-tF8klDvC.js";import{l as We}from"./md-layout-FhzIEdmV.js";import"./md-_baseUniq-CaouebKG.js";import"./md-_basePickBy-BEC9IKhF.js";var he=function(){var e=r(function($,i,a,l){for(a=a||{},l=$.length;l--;a[$[l]]=i);return a},"o"),t=[1,3],c=[1,4],d=[1,5],u=[1,6],p=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],y=[1,18],h=[2,7],o=[1,22],g=[1,23],R=[1,24],I=[1,25],b=[1,26],w=[1,27],q=[1,20],v=[1,28],A=[1,29],F=[62,63],pe=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],fe=[1,47],ye=[1,48],_e=[1,49],ge=[1,50],Ee=[1,51],Re=[1,52],me=[1,53],O=[53,54],D=[1,64],P=[1,60],Y=[1,61],U=[1,62],B=[1,63],Q=[1,65],j=[1,69],X=[1,70],J=[1,67],Z=[1,68],S=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],ne={trace:r(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:r(function(i,a,l,n,f,s,K){var E=s.length-1;switch(f){case 4:this.$=s[E].trim(),n.setAccTitle(this.$);break;case 5:case 6:this.$=s[E].trim(),n.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:n.addRequirement(s[E-3],s[E-4]);break;case 14:n.setNewReqId(s[E-2]);break;case 15:n.setNewReqText(s[E-2]);break;case 16:n.setNewReqRisk(s[E-2]);break;case 17:n.setNewReqVerifyMethod(s[E-2]);break;case 20:this.$=n.RequirementType.REQUIREMENT;break;case 21:this.$=n.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=n.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=n.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=n.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=n.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=n.RiskLevel.LOW_RISK;break;case 27:this.$=n.RiskLevel.MED_RISK;break;case 28:this.$=n.RiskLevel.HIGH_RISK;break;case 29:this.$=n.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=n.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=n.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=n.VerifyType.VERIFY_TEST;break;case 33:n.addElement(s[E-3]);break;case 34:n.setNewElementType(s[E-2]);break;case 35:n.setNewElementDocRef(s[E-2]);break;case 38:n.addRelationship(s[E-2],s[E],s[E-4]);break;case 39:n.addRelationship(s[E-2],s[E-4],s[E]);break;case 40:this.$=n.Relationships.CONTAINS;break;case 41:this.$=n.Relationships.COPIES;break;case 42:this.$=n.Relationships.DERIVES;break;case 43:this.$=n.Relationships.SATISFIES;break;case 44:this.$=n.Relationships.VERIFIES;break;case 45:this.$=n.Relationships.REFINES;break;case 46:this.$=n.Relationships.TRACES;break}},"anonymous"),table:[{3:1,4:2,6:t,9:c,11:d,13:u},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:c,11:d,13:u},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(p,[2,6]),{3:12,4:2,6:t,9:c,11:d,13:u},{1:[2,2]},{4:17,5:y,7:13,8:h,9:c,11:d,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:I,35:b,36:w,44:q,62:v,63:A},e(p,[2,4]),e(p,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:y,7:31,8:h,9:c,11:d,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:I,35:b,36:w,44:q,62:v,63:A},{4:17,5:y,7:32,8:h,9:c,11:d,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:I,35:b,36:w,44:q,62:v,63:A},{4:17,5:y,7:33,8:h,9:c,11:d,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:I,35:b,36:w,44:q,62:v,63:A},{4:17,5:y,7:34,8:h,9:c,11:d,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:I,35:b,36:w,44:q,62:v,63:A},{4:17,5:y,7:35,8:h,9:c,11:d,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:g,33:R,34:I,35:b,36:w,44:q,62:v,63:A},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},e(F,[2,20]),e(F,[2,21]),e(F,[2,22]),e(F,[2,23]),e(F,[2,24]),e(F,[2,25]),e(pe,[2,49]),e(pe,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:fe,56:ye,57:_e,58:ge,59:Ee,60:Re,61:me},{52:54,55:fe,56:ye,57:_e,58:ge,59:Ee,60:Re,61:me},{5:[1,55]},{5:[1,56]},{53:[1,57]},e(O,[2,40]),e(O,[2,41]),e(O,[2,42]),e(O,[2,43]),e(O,[2,44]),e(O,[2,45]),e(O,[2,46]),{54:[1,58]},{5:D,20:59,21:P,24:Y,26:U,28:B,30:Q},{5:j,30:X,46:66,47:J,49:Z},{23:71,62:v,63:A},{23:72,62:v,63:A},e(S,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:D,20:77,21:P,24:Y,26:U,28:B,30:Q},e(S,[2,19]),e(S,[2,33]),{22:[1,78]},{22:[1,79]},{5:j,30:X,46:80,47:J,49:Z},e(S,[2,37]),e(S,[2,38]),e(S,[2,39]),{23:81,62:v,63:A},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},e(S,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},e(S,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:D,20:106,21:P,24:Y,26:U,28:B,30:Q},{5:D,20:107,21:P,24:Y,26:U,28:B,30:Q},{5:D,20:108,21:P,24:Y,26:U,28:B,30:Q},{5:D,20:109,21:P,24:Y,26:U,28:B,30:Q},{5:j,30:X,46:110,47:J,49:Z},{5:j,30:X,46:111,47:J,49:Z},e(S,[2,14]),e(S,[2,15]),e(S,[2,16]),e(S,[2,17]),e(S,[2,34]),e(S,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:r(function(i,a){if(a.recoverable)this.trace(i);else{var l=new Error(i);throw l.hash=a,l}},"parseError"),parse:r(function(i){var a=this,l=[0],n=[],f=[null],s=[],K=this.table,E="",te=0,Ie=0,Le=2,be=1,Oe=s.slice.call(arguments,1),m=Object.create(this.lexer),C={yy:{}};for(var se in this.yy)Object.prototype.hasOwnProperty.call(this.yy,se)&&(C.yy[se]=this.yy[se]);m.setInput(i,C.yy),C.yy.lexer=m,C.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var ae=m.yylloc;s.push(ae);var Ce=m.options&&m.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Me(N){l.length=l.length-2*N,f.length=f.length-N,s.length=s.length-N}r(Me,"popStack");function Se(){var N;return N=n.pop()||m.lex()||be,typeof N!="number"&&(N instanceof Array&&(n=N,N=n.pop()),N=a.symbols_[N]||N),N}r(Se,"lex");for(var k,M,x,le,H={},ie,V,ke,re;;){if(M=l[l.length-1],this.defaultActions[M]?x=this.defaultActions[M]:((k===null||typeof k>"u")&&(k=Se()),x=K[M]&&K[M][k]),typeof x>"u"||!x.length||!x[0]){var oe="";re=[];for(ie in K[M])this.terminals_[ie]&&ie>Le&&re.push("'"+this.terminals_[ie]+"'");m.showPosition?oe="Parse error on line "+(te+1)+`: `+m.showPosition()+` Expecting `+re.join(", ")+", got '"+(this.terminals_[k]||k)+"'":oe="Parse error on line "+(te+1)+": Unexpected "+(k==be?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(oe,{text:m.match,token:this.terminals_[k]||k,line:m.yylineno,loc:ae,expected:re})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+k);switch(x[0]){case 1:l.push(k),f.push(m.yytext),s.push(m.yylloc),l.push(x[1]),k=null,Ie=m.yyleng,E=m.yytext,te=m.yylineno,ae=m.yylloc;break;case 2:if(V=this.productions_[x[1]][1],H.$=f[f.length-V],H._$={first_line:s[s.length-(V||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(V||1)].first_column,last_column:s[s.length-1].last_column},Ce&&(H._$.range=[s[s.length-(V||1)].range[0],s[s.length-1].range[1]]),le=this.performAction.apply(H,[E,Ie,te,C.yy,x[1],f,s].concat(Oe)),typeof le<"u")return le;V&&(l=l.slice(0,-1*V*2),f=f.slice(0,-1*V),s=s.slice(0,-1*V)),l.push(this.productions_[x[1]][0]),f.push(H.$),s.push(H._$),ke=K[l[l.length-2]][l[l.length-1]],l.push(ke);break;case 3:return!0}}return!0},"parse")},$e=function(){var $={EOF:1,parseError:r(function(a,l){if(this.yy.parser)this.yy.parser.parseError(a,l);else throw new Error(a)},"parseError"),setInput:r(function(i,a){return this.yy=a||this.yy||{},this._input=i,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:r(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var a=i.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),i},"input"),unput:r(function(i){var a=i.length,l=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var n=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),l.length-1&&(this.yylineno-=l.length-1);var f=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:l?(l.length===n.length?this.yylloc.first_column:0)+n[n.length-l.length].length-l[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:r(function(){return this._more=!0,this},"more"),reject:r(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). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:r(function(i){this.unput(this.match.slice(i))},"less"),pastInput:r(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:r(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:r(function(){var i=this.pastInput(),a=new Array(i.length+1).join("-");return i+this.upcomingInput()+` diff --git a/static/js/md-sankeyDiagram-Y46BX6SQ-DVAwfI-F.js b/static/js/md-sankeyDiagram-Y46BX6SQ-BNc1s3Kf.js similarity index 99% rename from static/js/md-sankeyDiagram-Y46BX6SQ-DVAwfI-F.js rename to static/js/md-sankeyDiagram-Y46BX6SQ-BNc1s3Kf.js index 74d8e4c2f..5b2799ea9 100644 --- a/static/js/md-sankeyDiagram-Y46BX6SQ-DVAwfI-F.js +++ b/static/js/md-sankeyDiagram-Y46BX6SQ-BNc1s3Kf.js @@ -1,4 +1,4 @@ -import{_ as m,o as _t,n as xt,s as vt,g as bt,b as wt,a as St,c as lt,t as Lt,d as X,T as Et,v as At,k as Tt}from"./md-index-Pj6M4nIk.js";import{o as Mt}from"./md-ordinal-CxVaQH2l.js";import"./md-init-Gi6I4Gst.js";function Nt(t){for(var e=t.length/6|0,i=new Array(e),a=0;a=a)&&(i=a);else{let a=-1;for(let h of t)(h=e(h,++a,t))!=null&&(i=h)&&(i=h)}return i}function pt(t,e){let i;if(e===void 0)for(const a of t)a!=null&&(i>a||i===void 0&&a>=a)&&(i=a);else{let a=-1;for(let h of t)(h=e(h,++a,t))!=null&&(i>h||i===void 0&&h>=h)&&(i=h)}return i}function nt(t,e){let i=0;if(e===void 0)for(let a of t)(a=+a)&&(i+=a);else{let a=-1;for(let h of t)(h=+e(h,++a,t))&&(i+=h)}return i}function Pt(t){return t.target.depth}function Ct(t){return t.depth}function Ot(t,e){return e-1-t.height}function mt(t,e){return t.sourceLinks.length?t.depth:e-1}function Dt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?pt(t.sourceLinks,Pt)-1:0}function q(t){return function(){return t}}function ut(t,e){return Q(t.source,e.source)||t.index-e.index}function ht(t,e){return Q(t.target,e.target)||t.index-e.index}function Q(t,e){return t.y0-e.y0}function it(t){return t.value}function zt(t){return t.index}function $t(t){return t.nodes}function jt(t){return t.links}function ft(t,e){const i=t.get(e);if(!i)throw new Error("missing: "+e);return i}function yt({nodes:t}){for(const e of t){let i=e.y0,a=i;for(const h of e.sourceLinks)h.y0=i+h.width/2,i+=h.width;for(const h of e.targetLinks)h.y1=a+h.width/2,a+=h.width}}function Bt(){let t=0,e=0,i=1,a=1,h=24,d=8,p,_=zt,s=mt,o,l,x=$t,v=jt,y=6;function b(){const n={nodes:x.apply(null,arguments),links:v.apply(null,arguments)};return M(n),T(n),N(n),C(n),S(n),yt(n),n}b.update=function(n){return yt(n),n},b.nodeId=function(n){return arguments.length?(_=typeof n=="function"?n:q(n),b):_},b.nodeAlign=function(n){return arguments.length?(s=typeof n=="function"?n:q(n),b):s},b.nodeSort=function(n){return arguments.length?(o=n,b):o},b.nodeWidth=function(n){return arguments.length?(h=+n,b):h},b.nodePadding=function(n){return arguments.length?(d=p=+n,b):d},b.nodes=function(n){return arguments.length?(x=typeof n=="function"?n:q(n),b):x},b.links=function(n){return arguments.length?(v=typeof n=="function"?n:q(n),b):v},b.linkSort=function(n){return arguments.length?(l=n,b):l},b.size=function(n){return arguments.length?(t=e=0,i=+n[0],a=+n[1],b):[i-t,a-e]},b.extent=function(n){return arguments.length?(t=+n[0][0],i=+n[1][0],e=+n[0][1],a=+n[1][1],b):[[t,e],[i,a]]},b.iterations=function(n){return arguments.length?(y=+n,b):y};function M({nodes:n,links:f}){for(const[c,r]of n.entries())r.index=c,r.sourceLinks=[],r.targetLinks=[];const u=new Map(n.map((c,r)=>[_(c,r,n),c]));for(const[c,r]of f.entries()){r.index=c;let{source:k,target:w}=r;typeof k!="object"&&(k=r.source=ft(u,k)),typeof w!="object"&&(w=r.target=ft(u,w)),k.sourceLinks.push(r),w.targetLinks.push(r)}if(l!=null)for(const{sourceLinks:c,targetLinks:r}of n)c.sort(l),r.sort(l)}function T({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 N({nodes:n}){const f=n.length;let u=new Set(n),c=new Set,r=0;for(;u.size;){for(const k of u){k.depth=r;for(const{target:w}of k.sourceLinks)c.add(w)}if(++r>f)throw new Error("circular link");u=c,c=new Set}}function C({nodes:n}){const f=n.length;let u=new Set(n),c=new Set,r=0;for(;u.size;){for(const k of u){k.height=r;for(const{source:w}of k.targetLinks)c.add(w)}if(++r>f)throw new Error("circular link");u=c,c=new Set}}function z({nodes:n}){const f=ct(n,r=>r.depth)+1,u=(i-t-h)/(f-1),c=new Array(f);for(const r of n){const k=Math.max(0,Math.min(f-1,Math.floor(s.call(null,r,f))));r.layer=k,r.x0=t+k*u,r.x1=r.x0+h,c[k]?c[k].push(r):c[k]=[r]}if(o)for(const r of c)r.sort(o);return c}function R(n){const f=pt(n,u=>(a-e-(u.length-1)*p)/nt(u,it));for(const u of n){let c=e;for(const r of u){r.y0=c,r.y1=c+r.value*f,c=r.y1+p;for(const k of r.sourceLinks)k.width=k.value*f}c=(a-c+p)/(u.length+1);for(let r=0;ru.length)-1)),R(f);for(let u=0;u0))continue;let G=(L/V-w.y0)*f;w.y0+=G,w.y1+=G,E(w)}o===void 0&&k.sort(Q),O(k,u)}}function B(n,f,u){for(let c=n.length,r=c-2;r>=0;--r){const k=n[r];for(const w of k){let L=0,V=0;for(const{target:Y,value:et}of w.sourceLinks){let H=et*(Y.layer-w.layer);L+=I(w,Y)*H,V+=H}if(!(V>0))continue;let G=(L/V-w.y0)*f;w.y0+=G,w.y1+=G,E(w)}o===void 0&&k.sort(Q),O(k,u)}}function O(n,f){const u=n.length>>1,c=n[u];g(n,c.y0-p,u-1,f),D(n,c.y1+p,u+1,f),g(n,a,n.length-1,f),D(n,e,0,f)}function D(n,f,u,c){for(;u1e-6&&(r.y0+=k,r.y1+=k),f=r.y1+p}}function g(n,f,u,c){for(;u>=0;--u){const r=n[u],k=(r.y1-f)*c;k>1e-6&&(r.y0-=k,r.y1-=k),f=r.y0-p}}function E({sourceLinks:n,targetLinks:f}){if(l===void 0){for(const{source:{sourceLinks:u}}of f)u.sort(ht);for(const{target:{targetLinks:u}}of n)u.sort(ut)}}function A(n){if(l===void 0)for(const{sourceLinks:f,targetLinks:u}of n)f.sort(ht),u.sort(ut)}function $(n,f){let u=n.y0-(n.sourceLinks.length-1)*p/2;for(const{target:c,width:r}of n.sourceLinks){if(c===f)break;u+=r+p}for(const{source:c,width:r}of f.targetLinks){if(c===n)break;u-=r}return u}function I(n,f){let u=f.y0-(f.targetLinks.length-1)*p/2;for(const{source:c,width:r}of f.targetLinks){if(c===n)break;u+=r+p}for(const{target:c,width:r}of n.sourceLinks){if(c===f)break;u-=r}return u}return b}var st=Math.PI,rt=2*st,F=1e-6,Rt=rt-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,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,i,a){this._+="Q"+ +t+","+ +e+","+(this._x1=+i)+","+(this._y1=+a)},bezierCurveTo:function(t,e,i,a,h,d){this._+="C"+ +t+","+ +e+","+ +i+","+ +a+","+(this._x1=+h)+","+(this._y1=+d)},arcTo:function(t,e,i,a,h){t=+t,e=+e,i=+i,a=+a,h=+h;var d=this._x1,p=this._y1,_=i-t,s=a-e,o=d-t,l=p-e,x=o*o+l*l;if(h<0)throw new Error("negative radius: "+h);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(x>F)if(!(Math.abs(l*_-s*o)>F)||!h)this._+="L"+(this._x1=t)+","+(this._y1=e);else{var v=i-d,y=a-p,b=_*_+s*s,M=v*v+y*y,T=Math.sqrt(b),N=Math.sqrt(x),C=h*Math.tan((st-Math.acos((b+x-M)/(2*T*N)))/2),z=C/N,R=C/T;Math.abs(z-1)>F&&(this._+="L"+(t+z*o)+","+(e+z*l)),this._+="A"+h+","+h+",0,0,"+ +(l*v>o*y)+","+(this._x1=t+R*_)+","+(this._y1=e+R*s)}},arc:function(t,e,i,a,h,d){t=+t,e=+e,i=+i,d=!!d;var p=i*Math.cos(a),_=i*Math.sin(a),s=t+p,o=e+_,l=1^d,x=d?a-h:h-a;if(i<0)throw new Error("negative radius: "+i);this._x1===null?this._+="M"+s+","+o:(Math.abs(this._x1-s)>F||Math.abs(this._y1-o)>F)&&(this._+="L"+s+","+o),i&&(x<0&&(x=x%rt+rt),x>Rt?this._+="A"+i+","+i+",0,1,"+l+","+(t-p)+","+(e-_)+"A"+i+","+i+",0,1,"+l+","+(this._x1=s)+","+(this._y1=o):x>F&&(this._+="A"+i+","+i+",0,"+ +(x>=st)+","+l+","+(this._x1=t+i*Math.cos(h))+","+(this._y1=e+i*Math.sin(h))))},rect:function(t,e,i,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +i+"v"+ +a+"h"+-i+"Z"},toString:function(){return this._}};function dt(t){return function(){return t}}function Vt(t){return t[0]}function Ft(t){return t[1]}var Wt=Array.prototype.slice;function Ut(t){return t.source}function Gt(t){return t.target}function Yt(t){var e=Ut,i=Gt,a=Vt,h=Ft,d=null;function p(){var _,s=Wt.call(arguments),o=e.apply(this,s),l=i.apply(this,s);if(d||(d=_=kt()),t(d,+a.apply(this,(s[0]=o,s)),+h.apply(this,s),+a.apply(this,(s[0]=l,s)),+h.apply(this,s)),_)return d=null,_+""||null}return p.source=function(_){return arguments.length?(e=_,p):e},p.target=function(_){return arguments.length?(i=_,p):i},p.x=function(_){return arguments.length?(a=typeof _=="function"?_:dt(+_),p):a},p.y=function(_){return arguments.length?(h=typeof _=="function"?_:dt(+_),p):h},p.context=function(_){return arguments.length?(d=_??null,p):d},p}function Ht(t,e,i,a,h){t.moveTo(e,i),t.bezierCurveTo(e=(e+a)/2,i,e,h,a,h)}function Xt(){return Yt(Ht)}function qt(t){return[t.source.x1,t.y0]}function Qt(t){return[t.target.x0,t.y1]}function Kt(){return Xt().source(qt).target(Qt)}var at=function(){var t=m(function(_,s,o,l){for(o=o||{},l=_.length;l--;o[_[l]]=s);return o},"o"),e=[1,9],i=[1,10],a=[1,5,10,12],h={trace:m(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:m(function(s,o,l,x,v,y,b){var M=y.length-1;switch(v){case 7:const T=x.findOrCreateNode(y[M-4].trim().replaceAll('""','"')),N=x.findOrCreateNode(y[M-2].trim().replaceAll('""','"')),C=parseFloat(y[M].trim());x.addLink(T,N,C);break;case 8:case 9:case 11:this.$=y[M];break;case 10:this.$=y[M-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:e,20:i},{1:[2,6],7:11,10:[1,12]},t(i,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(i,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:e,20:i},{15:18,16:7,17:8,18:e,20:i},{18:[1,19]},t(i,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:e,20:i},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:m(function(s,o){if(o.recoverable)this.trace(s);else{var l=new Error(s);throw l.hash=o,l}},"parseError"),parse:m(function(s){var o=this,l=[0],x=[],v=[null],y=[],b=this.table,M="",T=0,N=0,C=2,z=1,R=y.slice.call(arguments,1),S=Object.create(this.lexer),P={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(P.yy[B]=this.yy[B]);S.setInput(s,P.yy),P.yy.lexer=S,P.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var O=S.yylloc;y.push(O);var D=S.options&&S.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function g(L){l.length=l.length-2*L,v.length=v.length-L,y.length=y.length-L}m(g,"popStack");function E(){var L;return L=x.pop()||S.lex()||z,typeof L!="number"&&(L instanceof Array&&(x=L,L=x.pop()),L=o.symbols_[L]||L),L}m(E,"lex");for(var A,$,I,n,f={},u,c,r,k;;){if($=l[l.length-1],this.defaultActions[$]?I=this.defaultActions[$]:((A===null||typeof A>"u")&&(A=E()),I=b[$]&&b[$][A]),typeof I>"u"||!I.length||!I[0]){var w="";k=[];for(u in b[$])this.terminals_[u]&&u>C&&k.push("'"+this.terminals_[u]+"'");S.showPosition?w="Parse error on line "+(T+1)+`: +import{_ as m,o as _t,n as xt,s as vt,g as bt,b as wt,a as St,c as lt,t as Lt,d as X,T as Et,v as At,k as Tt}from"./md-index-1F_vrIf8.js";import{o as Mt}from"./md-ordinal-CxVaQH2l.js";import"./md-init-Gi6I4Gst.js";function Nt(t){for(var e=t.length/6|0,i=new Array(e),a=0;a=a)&&(i=a);else{let a=-1;for(let h of t)(h=e(h,++a,t))!=null&&(i=h)&&(i=h)}return i}function pt(t,e){let i;if(e===void 0)for(const a of t)a!=null&&(i>a||i===void 0&&a>=a)&&(i=a);else{let a=-1;for(let h of t)(h=e(h,++a,t))!=null&&(i>h||i===void 0&&h>=h)&&(i=h)}return i}function nt(t,e){let i=0;if(e===void 0)for(let a of t)(a=+a)&&(i+=a);else{let a=-1;for(let h of t)(h=+e(h,++a,t))&&(i+=h)}return i}function Pt(t){return t.target.depth}function Ct(t){return t.depth}function Ot(t,e){return e-1-t.height}function mt(t,e){return t.sourceLinks.length?t.depth:e-1}function Dt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?pt(t.sourceLinks,Pt)-1:0}function q(t){return function(){return t}}function ut(t,e){return Q(t.source,e.source)||t.index-e.index}function ht(t,e){return Q(t.target,e.target)||t.index-e.index}function Q(t,e){return t.y0-e.y0}function it(t){return t.value}function zt(t){return t.index}function $t(t){return t.nodes}function jt(t){return t.links}function ft(t,e){const i=t.get(e);if(!i)throw new Error("missing: "+e);return i}function yt({nodes:t}){for(const e of t){let i=e.y0,a=i;for(const h of e.sourceLinks)h.y0=i+h.width/2,i+=h.width;for(const h of e.targetLinks)h.y1=a+h.width/2,a+=h.width}}function Bt(){let t=0,e=0,i=1,a=1,h=24,d=8,p,_=zt,s=mt,o,l,x=$t,v=jt,y=6;function b(){const n={nodes:x.apply(null,arguments),links:v.apply(null,arguments)};return M(n),T(n),N(n),C(n),S(n),yt(n),n}b.update=function(n){return yt(n),n},b.nodeId=function(n){return arguments.length?(_=typeof n=="function"?n:q(n),b):_},b.nodeAlign=function(n){return arguments.length?(s=typeof n=="function"?n:q(n),b):s},b.nodeSort=function(n){return arguments.length?(o=n,b):o},b.nodeWidth=function(n){return arguments.length?(h=+n,b):h},b.nodePadding=function(n){return arguments.length?(d=p=+n,b):d},b.nodes=function(n){return arguments.length?(x=typeof n=="function"?n:q(n),b):x},b.links=function(n){return arguments.length?(v=typeof n=="function"?n:q(n),b):v},b.linkSort=function(n){return arguments.length?(l=n,b):l},b.size=function(n){return arguments.length?(t=e=0,i=+n[0],a=+n[1],b):[i-t,a-e]},b.extent=function(n){return arguments.length?(t=+n[0][0],i=+n[1][0],e=+n[0][1],a=+n[1][1],b):[[t,e],[i,a]]},b.iterations=function(n){return arguments.length?(y=+n,b):y};function M({nodes:n,links:f}){for(const[c,r]of n.entries())r.index=c,r.sourceLinks=[],r.targetLinks=[];const u=new Map(n.map((c,r)=>[_(c,r,n),c]));for(const[c,r]of f.entries()){r.index=c;let{source:k,target:w}=r;typeof k!="object"&&(k=r.source=ft(u,k)),typeof w!="object"&&(w=r.target=ft(u,w)),k.sourceLinks.push(r),w.targetLinks.push(r)}if(l!=null)for(const{sourceLinks:c,targetLinks:r}of n)c.sort(l),r.sort(l)}function T({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 N({nodes:n}){const f=n.length;let u=new Set(n),c=new Set,r=0;for(;u.size;){for(const k of u){k.depth=r;for(const{target:w}of k.sourceLinks)c.add(w)}if(++r>f)throw new Error("circular link");u=c,c=new Set}}function C({nodes:n}){const f=n.length;let u=new Set(n),c=new Set,r=0;for(;u.size;){for(const k of u){k.height=r;for(const{source:w}of k.targetLinks)c.add(w)}if(++r>f)throw new Error("circular link");u=c,c=new Set}}function z({nodes:n}){const f=ct(n,r=>r.depth)+1,u=(i-t-h)/(f-1),c=new Array(f);for(const r of n){const k=Math.max(0,Math.min(f-1,Math.floor(s.call(null,r,f))));r.layer=k,r.x0=t+k*u,r.x1=r.x0+h,c[k]?c[k].push(r):c[k]=[r]}if(o)for(const r of c)r.sort(o);return c}function R(n){const f=pt(n,u=>(a-e-(u.length-1)*p)/nt(u,it));for(const u of n){let c=e;for(const r of u){r.y0=c,r.y1=c+r.value*f,c=r.y1+p;for(const k of r.sourceLinks)k.width=k.value*f}c=(a-c+p)/(u.length+1);for(let r=0;ru.length)-1)),R(f);for(let u=0;u0))continue;let G=(L/V-w.y0)*f;w.y0+=G,w.y1+=G,E(w)}o===void 0&&k.sort(Q),O(k,u)}}function B(n,f,u){for(let c=n.length,r=c-2;r>=0;--r){const k=n[r];for(const w of k){let L=0,V=0;for(const{target:Y,value:et}of w.sourceLinks){let H=et*(Y.layer-w.layer);L+=I(w,Y)*H,V+=H}if(!(V>0))continue;let G=(L/V-w.y0)*f;w.y0+=G,w.y1+=G,E(w)}o===void 0&&k.sort(Q),O(k,u)}}function O(n,f){const u=n.length>>1,c=n[u];g(n,c.y0-p,u-1,f),D(n,c.y1+p,u+1,f),g(n,a,n.length-1,f),D(n,e,0,f)}function D(n,f,u,c){for(;u1e-6&&(r.y0+=k,r.y1+=k),f=r.y1+p}}function g(n,f,u,c){for(;u>=0;--u){const r=n[u],k=(r.y1-f)*c;k>1e-6&&(r.y0-=k,r.y1-=k),f=r.y0-p}}function E({sourceLinks:n,targetLinks:f}){if(l===void 0){for(const{source:{sourceLinks:u}}of f)u.sort(ht);for(const{target:{targetLinks:u}}of n)u.sort(ut)}}function A(n){if(l===void 0)for(const{sourceLinks:f,targetLinks:u}of n)f.sort(ht),u.sort(ut)}function $(n,f){let u=n.y0-(n.sourceLinks.length-1)*p/2;for(const{target:c,width:r}of n.sourceLinks){if(c===f)break;u+=r+p}for(const{source:c,width:r}of f.targetLinks){if(c===n)break;u-=r}return u}function I(n,f){let u=f.y0-(f.targetLinks.length-1)*p/2;for(const{source:c,width:r}of f.targetLinks){if(c===n)break;u+=r+p}for(const{target:c,width:r}of n.sourceLinks){if(c===f)break;u-=r}return u}return b}var st=Math.PI,rt=2*st,F=1e-6,Rt=rt-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,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,i,a){this._+="Q"+ +t+","+ +e+","+(this._x1=+i)+","+(this._y1=+a)},bezierCurveTo:function(t,e,i,a,h,d){this._+="C"+ +t+","+ +e+","+ +i+","+ +a+","+(this._x1=+h)+","+(this._y1=+d)},arcTo:function(t,e,i,a,h){t=+t,e=+e,i=+i,a=+a,h=+h;var d=this._x1,p=this._y1,_=i-t,s=a-e,o=d-t,l=p-e,x=o*o+l*l;if(h<0)throw new Error("negative radius: "+h);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(x>F)if(!(Math.abs(l*_-s*o)>F)||!h)this._+="L"+(this._x1=t)+","+(this._y1=e);else{var v=i-d,y=a-p,b=_*_+s*s,M=v*v+y*y,T=Math.sqrt(b),N=Math.sqrt(x),C=h*Math.tan((st-Math.acos((b+x-M)/(2*T*N)))/2),z=C/N,R=C/T;Math.abs(z-1)>F&&(this._+="L"+(t+z*o)+","+(e+z*l)),this._+="A"+h+","+h+",0,0,"+ +(l*v>o*y)+","+(this._x1=t+R*_)+","+(this._y1=e+R*s)}},arc:function(t,e,i,a,h,d){t=+t,e=+e,i=+i,d=!!d;var p=i*Math.cos(a),_=i*Math.sin(a),s=t+p,o=e+_,l=1^d,x=d?a-h:h-a;if(i<0)throw new Error("negative radius: "+i);this._x1===null?this._+="M"+s+","+o:(Math.abs(this._x1-s)>F||Math.abs(this._y1-o)>F)&&(this._+="L"+s+","+o),i&&(x<0&&(x=x%rt+rt),x>Rt?this._+="A"+i+","+i+",0,1,"+l+","+(t-p)+","+(e-_)+"A"+i+","+i+",0,1,"+l+","+(this._x1=s)+","+(this._y1=o):x>F&&(this._+="A"+i+","+i+",0,"+ +(x>=st)+","+l+","+(this._x1=t+i*Math.cos(h))+","+(this._y1=e+i*Math.sin(h))))},rect:function(t,e,i,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +i+"v"+ +a+"h"+-i+"Z"},toString:function(){return this._}};function dt(t){return function(){return t}}function Vt(t){return t[0]}function Ft(t){return t[1]}var Wt=Array.prototype.slice;function Ut(t){return t.source}function Gt(t){return t.target}function Yt(t){var e=Ut,i=Gt,a=Vt,h=Ft,d=null;function p(){var _,s=Wt.call(arguments),o=e.apply(this,s),l=i.apply(this,s);if(d||(d=_=kt()),t(d,+a.apply(this,(s[0]=o,s)),+h.apply(this,s),+a.apply(this,(s[0]=l,s)),+h.apply(this,s)),_)return d=null,_+""||null}return p.source=function(_){return arguments.length?(e=_,p):e},p.target=function(_){return arguments.length?(i=_,p):i},p.x=function(_){return arguments.length?(a=typeof _=="function"?_:dt(+_),p):a},p.y=function(_){return arguments.length?(h=typeof _=="function"?_:dt(+_),p):h},p.context=function(_){return arguments.length?(d=_??null,p):d},p}function Ht(t,e,i,a,h){t.moveTo(e,i),t.bezierCurveTo(e=(e+a)/2,i,e,h,a,h)}function Xt(){return Yt(Ht)}function qt(t){return[t.source.x1,t.y0]}function Qt(t){return[t.target.x0,t.y1]}function Kt(){return Xt().source(qt).target(Qt)}var at=function(){var t=m(function(_,s,o,l){for(o=o||{},l=_.length;l--;o[_[l]]=s);return o},"o"),e=[1,9],i=[1,10],a=[1,5,10,12],h={trace:m(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:m(function(s,o,l,x,v,y,b){var M=y.length-1;switch(v){case 7:const T=x.findOrCreateNode(y[M-4].trim().replaceAll('""','"')),N=x.findOrCreateNode(y[M-2].trim().replaceAll('""','"')),C=parseFloat(y[M].trim());x.addLink(T,N,C);break;case 8:case 9:case 11:this.$=y[M];break;case 10:this.$=y[M-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:e,20:i},{1:[2,6],7:11,10:[1,12]},t(i,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(i,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:e,20:i},{15:18,16:7,17:8,18:e,20:i},{18:[1,19]},t(i,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:e,20:i},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:m(function(s,o){if(o.recoverable)this.trace(s);else{var l=new Error(s);throw l.hash=o,l}},"parseError"),parse:m(function(s){var o=this,l=[0],x=[],v=[null],y=[],b=this.table,M="",T=0,N=0,C=2,z=1,R=y.slice.call(arguments,1),S=Object.create(this.lexer),P={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(P.yy[B]=this.yy[B]);S.setInput(s,P.yy),P.yy.lexer=S,P.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var O=S.yylloc;y.push(O);var D=S.options&&S.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function g(L){l.length=l.length-2*L,v.length=v.length-L,y.length=y.length-L}m(g,"popStack");function E(){var L;return L=x.pop()||S.lex()||z,typeof L!="number"&&(L instanceof Array&&(x=L,L=x.pop()),L=o.symbols_[L]||L),L}m(E,"lex");for(var A,$,I,n,f={},u,c,r,k;;){if($=l[l.length-1],this.defaultActions[$]?I=this.defaultActions[$]:((A===null||typeof A>"u")&&(A=E()),I=b[$]&&b[$][A]),typeof I>"u"||!I.length||!I[0]){var w="";k=[];for(u in b[$])this.terminals_[u]&&u>C&&k.push("'"+this.terminals_[u]+"'");S.showPosition?w="Parse error on line "+(T+1)+`: `+S.showPosition()+` Expecting `+k.join(", ")+", got '"+(this.terminals_[A]||A)+"'":w="Parse error on line "+(T+1)+": Unexpected "+(A==z?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(w,{text:S.match,token:this.terminals_[A]||A,line:S.yylineno,loc:O,expected:k})}if(I[0]instanceof Array&&I.length>1)throw new Error("Parse Error: multiple actions possible at state: "+$+", token: "+A);switch(I[0]){case 1:l.push(A),v.push(S.yytext),y.push(S.yylloc),l.push(I[1]),A=null,N=S.yyleng,M=S.yytext,T=S.yylineno,O=S.yylloc;break;case 2:if(c=this.productions_[I[1]][1],f.$=v[v.length-c],f._$={first_line:y[y.length-(c||1)].first_line,last_line:y[y.length-1].last_line,first_column:y[y.length-(c||1)].first_column,last_column:y[y.length-1].last_column},D&&(f._$.range=[y[y.length-(c||1)].range[0],y[y.length-1].range[1]]),n=this.performAction.apply(f,[M,N,T,P.yy,I[1],v,y].concat(R)),typeof n<"u")return n;c&&(l=l.slice(0,-1*c*2),v=v.slice(0,-1*c),y=y.slice(0,-1*c)),l.push(this.productions_[I[1]][0]),v.push(f.$),y.push(f._$),r=b[l[l.length-2]][l[l.length-1]],l.push(r);break;case 3:return!0}}return!0},"parse")},d=function(){var _={EOF:1,parseError:m(function(o,l){if(this.yy.parser)this.yy.parser.parseError(o,l);else throw new Error(o)},"parseError"),setInput:m(function(s,o){return this.yy=o||this.yy||{},this._input=s,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:m(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var o=s.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:m(function(s){var o=s.length,l=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;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),l.length-1&&(this.yylineno-=l.length-1);var v=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:l?(l.length===x.length?this.yylloc.first_column:0)+x[x.length-l.length].length-l[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[v[0],v[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},"unput"),more:m(function(){return this._more=!0,this},"more"),reject:m(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). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:m(function(s){this.unput(this.match.slice(s))},"less"),pastInput:m(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:m(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:m(function(){var s=this.pastInput(),o=new Array(s.length+1).join("-");return s+this.upcomingInput()+` diff --git a/static/js/md-sequenceDiagram-G6AWOVSC-D4E-_IXF.js b/static/js/md-sequenceDiagram-G6AWOVSC-CNX-iFIZ.js similarity index 99% rename from static/js/md-sequenceDiagram-G6AWOVSC-D4E-_IXF.js rename to static/js/md-sequenceDiagram-G6AWOVSC-CNX-iFIZ.js index 35212de33..62cd8d470 100644 --- a/static/js/md-sequenceDiagram-G6AWOVSC-D4E-_IXF.js +++ b/static/js/md-sequenceDiagram-G6AWOVSC-CNX-iFIZ.js @@ -1,4 +1,4 @@ -import{a as Se,b as Kt,g as St,d as Me,c as Re,e as De}from"./md-chunk-ASOPGD6M-WtHLfW0h.js";import{I as Ce}from"./md-chunk-KFBOBJHC-Bi4-jCiM.js";import{_ as d,g as Oe,s as Be,b as se,o as Ve,n as Ye,a as Fe,c as at,d as kt,l as J,j as ae,e as We,f as qe,k as _,i as Mt,v as ze,u as F,L as lt,M as wt,N as ie,Z as He,O as ne,D as Ft}from"./md-index-Pj6M4nIk.js";var Wt=function(){var t=d(function(pt,I,L,A){for(L=L||{},A=pt.length;A--;L[pt[A]]=I);return L},"o"),e=[1,2],o=[1,3],r=[1,4],a=[2,4],i=[1,9],c=[1,11],h=[1,13],p=[1,14],s=[1,16],f=[1,17],E=[1,18],g=[1,24],T=[1,25],m=[1,26],w=[1,27],k=[1,28],V=[1,29],M=[1,30],Y=[1,31],C=[1,32],z=[1,33],H=[1,34],Z=[1,35],et=[1,36],K=[1,37],U=[1,38],q=[1,39],R=[1,41],Q=[1,42],G=[1,43],j=[1,44],rt=[1,45],S=[1,46],y=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],P=[4,5,16,50,52,53],$=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],it=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],N=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],Jt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],ot=[68,69,70],dt=[1,122],Ct={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,BIDIRECTIONAL_SOLID_ARROW:74,DOTTED_ARROW:75,BIDIRECTIONAL_DOTTED_ARROW:76,SOLID_CROSS:77,DOTTED_CROSS:78,SOLID_POINT:79,DOTTED_POINT:80,TXT:81,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"BIDIRECTIONAL_SOLID_ARROW",75:"DOTTED_ARROW",76:"BIDIRECTIONAL_DOTTED_ARROW",77:"SOLID_CROSS",78:"DOTTED_CROSS",79:"SOLID_POINT",80:"DOTTED_POINT",81:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:d(function(I,L,A,b,D,l,mt){var u=l.length-1;switch(D){case 3:return b.apply(l[u]),l[u];case 4:case 9:this.$=[];break;case 5:case 10:l[u-1].push(l[u]),this.$=l[u-1];break;case 6:case 7:case 11:case 12:this.$=l[u];break;case 8:case 13:this.$=[];break;case 15:l[u].type="createParticipant",this.$=l[u];break;case 16:l[u-1].unshift({type:"boxStart",boxData:b.parseBoxData(l[u-2])}),l[u-1].push({type:"boxEnd",boxText:l[u-2]}),this.$=l[u-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(l[u-2]),sequenceIndexStep:Number(l[u-1]),sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(l[u-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:b.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:l[u-1].actor};break;case 23:this.$={type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:l[u-1].actor};break;case 29:b.setDiagramTitle(l[u].substring(6)),this.$=l[u].substring(6);break;case 30:b.setDiagramTitle(l[u].substring(7)),this.$=l[u].substring(7);break;case 31:this.$=l[u].trim(),b.setAccTitle(this.$);break;case 32:case 33:this.$=l[u].trim(),b.setAccDescription(this.$);break;case 34:l[u-1].unshift({type:"loopStart",loopText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.LOOP_START}),l[u-1].push({type:"loopEnd",loopText:l[u-2],signalType:b.LINETYPE.LOOP_END}),this.$=l[u-1];break;case 35:l[u-1].unshift({type:"rectStart",color:b.parseMessage(l[u-2]),signalType:b.LINETYPE.RECT_START}),l[u-1].push({type:"rectEnd",color:b.parseMessage(l[u-2]),signalType:b.LINETYPE.RECT_END}),this.$=l[u-1];break;case 36:l[u-1].unshift({type:"optStart",optText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.OPT_START}),l[u-1].push({type:"optEnd",optText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.OPT_END}),this.$=l[u-1];break;case 37:l[u-1].unshift({type:"altStart",altText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.ALT_START}),l[u-1].push({type:"altEnd",signalType:b.LINETYPE.ALT_END}),this.$=l[u-1];break;case 38:l[u-1].unshift({type:"parStart",parText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.PAR_START}),l[u-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=l[u-1];break;case 39:l[u-1].unshift({type:"parStart",parText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.PAR_OVER_START}),l[u-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=l[u-1];break;case 40:l[u-1].unshift({type:"criticalStart",criticalText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.CRITICAL_START}),l[u-1].push({type:"criticalEnd",signalType:b.LINETYPE.CRITICAL_END}),this.$=l[u-1];break;case 41:l[u-1].unshift({type:"breakStart",breakText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.BREAK_START}),l[u-1].push({type:"breakEnd",optText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.BREAK_END}),this.$=l[u-1];break;case 43:this.$=l[u-3].concat([{type:"option",optionText:b.parseMessage(l[u-1]),signalType:b.LINETYPE.CRITICAL_OPTION},l[u]]);break;case 45:this.$=l[u-3].concat([{type:"and",parText:b.parseMessage(l[u-1]),signalType:b.LINETYPE.PAR_AND},l[u]]);break;case 47:this.$=l[u-3].concat([{type:"else",altText:b.parseMessage(l[u-1]),signalType:b.LINETYPE.ALT_ELSE},l[u]]);break;case 48:l[u-3].draw="participant",l[u-3].type="addParticipant",l[u-3].description=b.parseMessage(l[u-1]),this.$=l[u-3];break;case 49:l[u-1].draw="participant",l[u-1].type="addParticipant",this.$=l[u-1];break;case 50:l[u-3].draw="actor",l[u-3].type="addParticipant",l[u-3].description=b.parseMessage(l[u-1]),this.$=l[u-3];break;case 51:l[u-1].draw="actor",l[u-1].type="addParticipant",this.$=l[u-1];break;case 52:l[u-1].type="destroyParticipant",this.$=l[u-1];break;case 53:this.$=[l[u-1],{type:"addNote",placement:l[u-2],actor:l[u-1].actor,text:l[u]}];break;case 54:l[u-2]=[].concat(l[u-1],l[u-1]).slice(0,2),l[u-2][0]=l[u-2][0].actor,l[u-2][1]=l[u-2][1].actor,this.$=[l[u-1],{type:"addNote",placement:b.PLACEMENT.OVER,actor:l[u-2].slice(0,2),text:l[u]}];break;case 55:this.$=[l[u-1],{type:"addLinks",actor:l[u-1].actor,text:l[u]}];break;case 56:this.$=[l[u-1],{type:"addALink",actor:l[u-1].actor,text:l[u]}];break;case 57:this.$=[l[u-1],{type:"addProperties",actor:l[u-1].actor,text:l[u]}];break;case 58:this.$=[l[u-1],{type:"addDetails",actor:l[u-1].actor,text:l[u]}];break;case 61:this.$=[l[u-2],l[u]];break;case 62:this.$=l[u];break;case 63:this.$=b.PLACEMENT.LEFTOF;break;case 64:this.$=b.PLACEMENT.RIGHTOF;break;case 65:this.$=[l[u-4],l[u-1],{type:"addMessage",from:l[u-4].actor,to:l[u-1].actor,signalType:l[u-3],msg:l[u],activate:!0},{type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:l[u-1].actor}];break;case 66:this.$=[l[u-4],l[u-1],{type:"addMessage",from:l[u-4].actor,to:l[u-1].actor,signalType:l[u-3],msg:l[u]},{type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:l[u-4].actor}];break;case 67:this.$=[l[u-3],l[u-1],{type:"addMessage",from:l[u-3].actor,to:l[u-1].actor,signalType:l[u-2],msg:l[u]}];break;case 68:this.$={type:"addParticipant",actor:l[u]};break;case 69:this.$=b.LINETYPE.SOLID_OPEN;break;case 70:this.$=b.LINETYPE.DOTTED_OPEN;break;case 71:this.$=b.LINETYPE.SOLID;break;case 72:this.$=b.LINETYPE.BIDIRECTIONAL_SOLID;break;case 73:this.$=b.LINETYPE.DOTTED;break;case 74:this.$=b.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 75:this.$=b.LINETYPE.SOLID_CROSS;break;case 76:this.$=b.LINETYPE.DOTTED_CROSS;break;case 77:this.$=b.LINETYPE.SOLID_POINT;break;case 78:this.$=b.LINETYPE.DOTTED_POINT;break;case 79:this.$=b.parseMessage(l[u].trim().substring(1));break}},"anonymous"),table:[{3:1,4:e,5:o,6:r},{1:[3]},{3:5,4:e,5:o,6:r},{3:6,4:e,5:o,6:r},t([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:i,5:c,8:8,9:10,12:12,13:h,14:p,17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Z,46:et,50:K,52:U,53:q,54:R,59:Q,60:G,61:j,62:rt,70:S},t(y,[2,5]),{9:47,12:12,13:h,14:p,17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Z,46:et,50:K,52:U,53:q,54:R,59:Q,60:G,61:j,62:rt,70:S},t(y,[2,7]),t(y,[2,8]),t(y,[2,14]),{12:48,50:K,52:U,53:q},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:S},{22:55,70:S},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},t(y,[2,29]),t(y,[2,30]),{32:[1,61]},{34:[1,62]},t(y,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:S},{22:72,70:S},{22:73,70:S},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82],79:[1,83],80:[1,84]},{55:85,57:[1,86],65:[1,87],66:[1,88]},{22:89,70:S},{22:90,70:S},{22:91,70:S},{22:92,70:S},t([5,51,64,71,72,73,74,75,76,77,78,79,80,81],[2,68]),t(y,[2,6]),t(y,[2,15]),t(P,[2,9],{10:93}),t(y,[2,17]),{5:[1,95],19:[1,94]},{5:[1,96]},t(y,[2,21]),{5:[1,97]},{5:[1,98]},t(y,[2,24]),t(y,[2,25]),t(y,[2,26]),t(y,[2,27]),t(y,[2,28]),t(y,[2,31]),t(y,[2,32]),t($,a,{7:99}),t($,a,{7:100}),t($,a,{7:101}),t(it,a,{40:102,7:103}),t(N,a,{42:104,7:105}),t(N,a,{7:105,42:106}),t(Jt,a,{45:107,7:108}),t($,a,{7:109}),{5:[1,111],51:[1,110]},{5:[1,113],51:[1,112]},{5:[1,114]},{22:117,68:[1,115],69:[1,116],70:S},t(ot,[2,69]),t(ot,[2,70]),t(ot,[2,71]),t(ot,[2,72]),t(ot,[2,73]),t(ot,[2,74]),t(ot,[2,75]),t(ot,[2,76]),t(ot,[2,77]),t(ot,[2,78]),{22:118,70:S},{22:120,58:119,70:S},{70:[2,63]},{70:[2,64]},{56:121,81:dt},{56:123,81:dt},{56:124,81:dt},{56:125,81:dt},{4:[1,128],5:[1,130],11:127,12:129,16:[1,126],50:K,52:U,53:q},{5:[1,131]},t(y,[2,19]),t(y,[2,20]),t(y,[2,22]),t(y,[2,23]),{4:i,5:c,8:8,9:10,12:12,13:h,14:p,16:[1,132],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Z,46:et,50:K,52:U,53:q,54:R,59:Q,60:G,61:j,62:rt,70:S},{4:i,5:c,8:8,9:10,12:12,13:h,14:p,16:[1,133],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Z,46:et,50:K,52:U,53:q,54:R,59:Q,60:G,61:j,62:rt,70:S},{4:i,5:c,8:8,9:10,12:12,13:h,14:p,16:[1,134],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Z,46:et,50:K,52:U,53:q,54:R,59:Q,60:G,61:j,62:rt,70:S},{16:[1,135]},{4:i,5:c,8:8,9:10,12:12,13:h,14:p,16:[2,46],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Z,46:et,49:[1,136],50:K,52:U,53:q,54:R,59:Q,60:G,61:j,62:rt,70:S},{16:[1,137]},{4:i,5:c,8:8,9:10,12:12,13:h,14:p,16:[2,44],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Z,46:et,48:[1,138],50:K,52:U,53:q,54:R,59:Q,60:G,61:j,62:rt,70:S},{16:[1,139]},{16:[1,140]},{4:i,5:c,8:8,9:10,12:12,13:h,14:p,16:[2,42],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Z,46:et,47:[1,141],50:K,52:U,53:q,54:R,59:Q,60:G,61:j,62:rt,70:S},{4:i,5:c,8:8,9:10,12:12,13:h,14:p,16:[1,142],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Z,46:et,50:K,52:U,53:q,54:R,59:Q,60:G,61:j,62:rt,70:S},{15:[1,143]},t(y,[2,49]),{15:[1,144]},t(y,[2,51]),t(y,[2,52]),{22:145,70:S},{22:146,70:S},{56:147,81:dt},{56:148,81:dt},{56:149,81:dt},{64:[1,150],81:[2,62]},{5:[2,55]},{5:[2,79]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(y,[2,16]),t(P,[2,10]),{12:151,50:K,52:U,53:q},t(P,[2,12]),t(P,[2,13]),t(y,[2,18]),t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),{15:[1,152]},t(y,[2,38]),{15:[1,153]},t(y,[2,39]),t(y,[2,40]),{15:[1,154]},t(y,[2,41]),{5:[1,155]},{5:[1,156]},{56:157,81:dt},{56:158,81:dt},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:159,70:S},t(P,[2,11]),t(it,a,{7:103,40:160}),t(N,a,{7:105,42:161}),t(Jt,a,{7:108,45:162}),t(y,[2,48]),t(y,[2,50]),{5:[2,65]},{5:[2,66]},{81:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],87:[2,63],88:[2,64],121:[2,55],122:[2,79],123:[2,56],124:[2,57],125:[2,58],147:[2,67],148:[2,53],149:[2,54],157:[2,65],158:[2,66],159:[2,61],160:[2,47],161:[2,45],162:[2,43]},parseError:d(function(I,L){if(L.recoverable)this.trace(I);else{var A=new Error(I);throw A.hash=L,A}},"parseError"),parse:d(function(I){var L=this,A=[0],b=[],D=[null],l=[],mt=this.table,u="",Lt=0,Zt=0,Pe=2,Qt=1,Ae=l.slice.call(arguments,1),W=Object.create(this.lexer),ut={yy:{}};for(var Ot in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ot)&&(ut.yy[Ot]=this.yy[Ot]);W.setInput(I,ut.yy),ut.yy.lexer=W,ut.yy.parser=this,typeof W.yylloc>"u"&&(W.yylloc={});var Bt=W.yylloc;l.push(Bt);var ke=W.options&&W.options.ranges;typeof ut.yy.parseError=="function"?this.parseError=ut.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ne(tt){A.length=A.length-2*tt,D.length=D.length-tt,l.length=l.length-tt}d(Ne,"popStack");function jt(){var tt;return tt=b.pop()||W.lex()||Qt,typeof tt!="number"&&(tt instanceof Array&&(b=tt,tt=b.pop()),tt=L.symbols_[tt]||tt),tt}d(jt,"lex");for(var X,gt,st,Vt,yt={},Pt,ht,$t,At;;){if(gt=A[A.length-1],this.defaultActions[gt]?st=this.defaultActions[gt]:((X===null||typeof X>"u")&&(X=jt()),st=mt[gt]&&mt[gt][X]),typeof st>"u"||!st.length||!st[0]){var Yt="";At=[];for(Pt in mt[gt])this.terminals_[Pt]&&Pt>Pe&&At.push("'"+this.terminals_[Pt]+"'");W.showPosition?Yt="Parse error on line "+(Lt+1)+`: +import{a as Se,b as Kt,g as St,d as Me,c as Re,e as De}from"./md-chunk-ASOPGD6M-CJv05LUp.js";import{I as Ce}from"./md-chunk-KFBOBJHC-Cw-7g_Wb.js";import{_ as d,g as Oe,s as Be,b as se,o as Ve,n as Ye,a as Fe,c as at,d as kt,l as J,j as ae,e as We,f as qe,k as _,i as Mt,v as ze,u as F,L as lt,M as wt,N as ie,Z as He,O as ne,D as Ft}from"./md-index-1F_vrIf8.js";var Wt=function(){var t=d(function(pt,I,L,A){for(L=L||{},A=pt.length;A--;L[pt[A]]=I);return L},"o"),e=[1,2],o=[1,3],r=[1,4],a=[2,4],i=[1,9],c=[1,11],h=[1,13],p=[1,14],s=[1,16],f=[1,17],E=[1,18],g=[1,24],T=[1,25],m=[1,26],w=[1,27],k=[1,28],V=[1,29],M=[1,30],Y=[1,31],C=[1,32],z=[1,33],H=[1,34],Z=[1,35],et=[1,36],K=[1,37],U=[1,38],q=[1,39],R=[1,41],Q=[1,42],G=[1,43],j=[1,44],rt=[1,45],S=[1,46],y=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],P=[4,5,16,50,52,53],$=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],it=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],N=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],Jt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],ot=[68,69,70],dt=[1,122],Ct={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,BIDIRECTIONAL_SOLID_ARROW:74,DOTTED_ARROW:75,BIDIRECTIONAL_DOTTED_ARROW:76,SOLID_CROSS:77,DOTTED_CROSS:78,SOLID_POINT:79,DOTTED_POINT:80,TXT:81,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"BIDIRECTIONAL_SOLID_ARROW",75:"DOTTED_ARROW",76:"BIDIRECTIONAL_DOTTED_ARROW",77:"SOLID_CROSS",78:"DOTTED_CROSS",79:"SOLID_POINT",80:"DOTTED_POINT",81:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:d(function(I,L,A,b,D,l,mt){var u=l.length-1;switch(D){case 3:return b.apply(l[u]),l[u];case 4:case 9:this.$=[];break;case 5:case 10:l[u-1].push(l[u]),this.$=l[u-1];break;case 6:case 7:case 11:case 12:this.$=l[u];break;case 8:case 13:this.$=[];break;case 15:l[u].type="createParticipant",this.$=l[u];break;case 16:l[u-1].unshift({type:"boxStart",boxData:b.parseBoxData(l[u-2])}),l[u-1].push({type:"boxEnd",boxText:l[u-2]}),this.$=l[u-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(l[u-2]),sequenceIndexStep:Number(l[u-1]),sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(l[u-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:b.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:b.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:l[u-1].actor};break;case 23:this.$={type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:l[u-1].actor};break;case 29:b.setDiagramTitle(l[u].substring(6)),this.$=l[u].substring(6);break;case 30:b.setDiagramTitle(l[u].substring(7)),this.$=l[u].substring(7);break;case 31:this.$=l[u].trim(),b.setAccTitle(this.$);break;case 32:case 33:this.$=l[u].trim(),b.setAccDescription(this.$);break;case 34:l[u-1].unshift({type:"loopStart",loopText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.LOOP_START}),l[u-1].push({type:"loopEnd",loopText:l[u-2],signalType:b.LINETYPE.LOOP_END}),this.$=l[u-1];break;case 35:l[u-1].unshift({type:"rectStart",color:b.parseMessage(l[u-2]),signalType:b.LINETYPE.RECT_START}),l[u-1].push({type:"rectEnd",color:b.parseMessage(l[u-2]),signalType:b.LINETYPE.RECT_END}),this.$=l[u-1];break;case 36:l[u-1].unshift({type:"optStart",optText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.OPT_START}),l[u-1].push({type:"optEnd",optText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.OPT_END}),this.$=l[u-1];break;case 37:l[u-1].unshift({type:"altStart",altText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.ALT_START}),l[u-1].push({type:"altEnd",signalType:b.LINETYPE.ALT_END}),this.$=l[u-1];break;case 38:l[u-1].unshift({type:"parStart",parText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.PAR_START}),l[u-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=l[u-1];break;case 39:l[u-1].unshift({type:"parStart",parText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.PAR_OVER_START}),l[u-1].push({type:"parEnd",signalType:b.LINETYPE.PAR_END}),this.$=l[u-1];break;case 40:l[u-1].unshift({type:"criticalStart",criticalText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.CRITICAL_START}),l[u-1].push({type:"criticalEnd",signalType:b.LINETYPE.CRITICAL_END}),this.$=l[u-1];break;case 41:l[u-1].unshift({type:"breakStart",breakText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.BREAK_START}),l[u-1].push({type:"breakEnd",optText:b.parseMessage(l[u-2]),signalType:b.LINETYPE.BREAK_END}),this.$=l[u-1];break;case 43:this.$=l[u-3].concat([{type:"option",optionText:b.parseMessage(l[u-1]),signalType:b.LINETYPE.CRITICAL_OPTION},l[u]]);break;case 45:this.$=l[u-3].concat([{type:"and",parText:b.parseMessage(l[u-1]),signalType:b.LINETYPE.PAR_AND},l[u]]);break;case 47:this.$=l[u-3].concat([{type:"else",altText:b.parseMessage(l[u-1]),signalType:b.LINETYPE.ALT_ELSE},l[u]]);break;case 48:l[u-3].draw="participant",l[u-3].type="addParticipant",l[u-3].description=b.parseMessage(l[u-1]),this.$=l[u-3];break;case 49:l[u-1].draw="participant",l[u-1].type="addParticipant",this.$=l[u-1];break;case 50:l[u-3].draw="actor",l[u-3].type="addParticipant",l[u-3].description=b.parseMessage(l[u-1]),this.$=l[u-3];break;case 51:l[u-1].draw="actor",l[u-1].type="addParticipant",this.$=l[u-1];break;case 52:l[u-1].type="destroyParticipant",this.$=l[u-1];break;case 53:this.$=[l[u-1],{type:"addNote",placement:l[u-2],actor:l[u-1].actor,text:l[u]}];break;case 54:l[u-2]=[].concat(l[u-1],l[u-1]).slice(0,2),l[u-2][0]=l[u-2][0].actor,l[u-2][1]=l[u-2][1].actor,this.$=[l[u-1],{type:"addNote",placement:b.PLACEMENT.OVER,actor:l[u-2].slice(0,2),text:l[u]}];break;case 55:this.$=[l[u-1],{type:"addLinks",actor:l[u-1].actor,text:l[u]}];break;case 56:this.$=[l[u-1],{type:"addALink",actor:l[u-1].actor,text:l[u]}];break;case 57:this.$=[l[u-1],{type:"addProperties",actor:l[u-1].actor,text:l[u]}];break;case 58:this.$=[l[u-1],{type:"addDetails",actor:l[u-1].actor,text:l[u]}];break;case 61:this.$=[l[u-2],l[u]];break;case 62:this.$=l[u];break;case 63:this.$=b.PLACEMENT.LEFTOF;break;case 64:this.$=b.PLACEMENT.RIGHTOF;break;case 65:this.$=[l[u-4],l[u-1],{type:"addMessage",from:l[u-4].actor,to:l[u-1].actor,signalType:l[u-3],msg:l[u],activate:!0},{type:"activeStart",signalType:b.LINETYPE.ACTIVE_START,actor:l[u-1].actor}];break;case 66:this.$=[l[u-4],l[u-1],{type:"addMessage",from:l[u-4].actor,to:l[u-1].actor,signalType:l[u-3],msg:l[u]},{type:"activeEnd",signalType:b.LINETYPE.ACTIVE_END,actor:l[u-4].actor}];break;case 67:this.$=[l[u-3],l[u-1],{type:"addMessage",from:l[u-3].actor,to:l[u-1].actor,signalType:l[u-2],msg:l[u]}];break;case 68:this.$={type:"addParticipant",actor:l[u]};break;case 69:this.$=b.LINETYPE.SOLID_OPEN;break;case 70:this.$=b.LINETYPE.DOTTED_OPEN;break;case 71:this.$=b.LINETYPE.SOLID;break;case 72:this.$=b.LINETYPE.BIDIRECTIONAL_SOLID;break;case 73:this.$=b.LINETYPE.DOTTED;break;case 74:this.$=b.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 75:this.$=b.LINETYPE.SOLID_CROSS;break;case 76:this.$=b.LINETYPE.DOTTED_CROSS;break;case 77:this.$=b.LINETYPE.SOLID_POINT;break;case 78:this.$=b.LINETYPE.DOTTED_POINT;break;case 79:this.$=b.parseMessage(l[u].trim().substring(1));break}},"anonymous"),table:[{3:1,4:e,5:o,6:r},{1:[3]},{3:5,4:e,5:o,6:r},{3:6,4:e,5:o,6:r},t([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:i,5:c,8:8,9:10,12:12,13:h,14:p,17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Z,46:et,50:K,52:U,53:q,54:R,59:Q,60:G,61:j,62:rt,70:S},t(y,[2,5]),{9:47,12:12,13:h,14:p,17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Z,46:et,50:K,52:U,53:q,54:R,59:Q,60:G,61:j,62:rt,70:S},t(y,[2,7]),t(y,[2,8]),t(y,[2,14]),{12:48,50:K,52:U,53:q},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:S},{22:55,70:S},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},t(y,[2,29]),t(y,[2,30]),{32:[1,61]},{34:[1,62]},t(y,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:S},{22:72,70:S},{22:73,70:S},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82],79:[1,83],80:[1,84]},{55:85,57:[1,86],65:[1,87],66:[1,88]},{22:89,70:S},{22:90,70:S},{22:91,70:S},{22:92,70:S},t([5,51,64,71,72,73,74,75,76,77,78,79,80,81],[2,68]),t(y,[2,6]),t(y,[2,15]),t(P,[2,9],{10:93}),t(y,[2,17]),{5:[1,95],19:[1,94]},{5:[1,96]},t(y,[2,21]),{5:[1,97]},{5:[1,98]},t(y,[2,24]),t(y,[2,25]),t(y,[2,26]),t(y,[2,27]),t(y,[2,28]),t(y,[2,31]),t(y,[2,32]),t($,a,{7:99}),t($,a,{7:100}),t($,a,{7:101}),t(it,a,{40:102,7:103}),t(N,a,{42:104,7:105}),t(N,a,{7:105,42:106}),t(Jt,a,{45:107,7:108}),t($,a,{7:109}),{5:[1,111],51:[1,110]},{5:[1,113],51:[1,112]},{5:[1,114]},{22:117,68:[1,115],69:[1,116],70:S},t(ot,[2,69]),t(ot,[2,70]),t(ot,[2,71]),t(ot,[2,72]),t(ot,[2,73]),t(ot,[2,74]),t(ot,[2,75]),t(ot,[2,76]),t(ot,[2,77]),t(ot,[2,78]),{22:118,70:S},{22:120,58:119,70:S},{70:[2,63]},{70:[2,64]},{56:121,81:dt},{56:123,81:dt},{56:124,81:dt},{56:125,81:dt},{4:[1,128],5:[1,130],11:127,12:129,16:[1,126],50:K,52:U,53:q},{5:[1,131]},t(y,[2,19]),t(y,[2,20]),t(y,[2,22]),t(y,[2,23]),{4:i,5:c,8:8,9:10,12:12,13:h,14:p,16:[1,132],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Z,46:et,50:K,52:U,53:q,54:R,59:Q,60:G,61:j,62:rt,70:S},{4:i,5:c,8:8,9:10,12:12,13:h,14:p,16:[1,133],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Z,46:et,50:K,52:U,53:q,54:R,59:Q,60:G,61:j,62:rt,70:S},{4:i,5:c,8:8,9:10,12:12,13:h,14:p,16:[1,134],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Z,46:et,50:K,52:U,53:q,54:R,59:Q,60:G,61:j,62:rt,70:S},{16:[1,135]},{4:i,5:c,8:8,9:10,12:12,13:h,14:p,16:[2,46],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Z,46:et,49:[1,136],50:K,52:U,53:q,54:R,59:Q,60:G,61:j,62:rt,70:S},{16:[1,137]},{4:i,5:c,8:8,9:10,12:12,13:h,14:p,16:[2,44],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Z,46:et,48:[1,138],50:K,52:U,53:q,54:R,59:Q,60:G,61:j,62:rt,70:S},{16:[1,139]},{16:[1,140]},{4:i,5:c,8:8,9:10,12:12,13:h,14:p,16:[2,42],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Z,46:et,47:[1,141],50:K,52:U,53:q,54:R,59:Q,60:G,61:j,62:rt,70:S},{4:i,5:c,8:8,9:10,12:12,13:h,14:p,16:[1,142],17:15,18:s,21:f,22:40,23:E,24:19,25:20,26:21,27:22,28:23,29:g,30:T,31:m,33:w,35:k,36:V,37:M,38:Y,39:C,41:z,43:H,44:Z,46:et,50:K,52:U,53:q,54:R,59:Q,60:G,61:j,62:rt,70:S},{15:[1,143]},t(y,[2,49]),{15:[1,144]},t(y,[2,51]),t(y,[2,52]),{22:145,70:S},{22:146,70:S},{56:147,81:dt},{56:148,81:dt},{56:149,81:dt},{64:[1,150],81:[2,62]},{5:[2,55]},{5:[2,79]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(y,[2,16]),t(P,[2,10]),{12:151,50:K,52:U,53:q},t(P,[2,12]),t(P,[2,13]),t(y,[2,18]),t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),{15:[1,152]},t(y,[2,38]),{15:[1,153]},t(y,[2,39]),t(y,[2,40]),{15:[1,154]},t(y,[2,41]),{5:[1,155]},{5:[1,156]},{56:157,81:dt},{56:158,81:dt},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:159,70:S},t(P,[2,11]),t(it,a,{7:103,40:160}),t(N,a,{7:105,42:161}),t(Jt,a,{7:108,45:162}),t(y,[2,48]),t(y,[2,50]),{5:[2,65]},{5:[2,66]},{81:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],87:[2,63],88:[2,64],121:[2,55],122:[2,79],123:[2,56],124:[2,57],125:[2,58],147:[2,67],148:[2,53],149:[2,54],157:[2,65],158:[2,66],159:[2,61],160:[2,47],161:[2,45],162:[2,43]},parseError:d(function(I,L){if(L.recoverable)this.trace(I);else{var A=new Error(I);throw A.hash=L,A}},"parseError"),parse:d(function(I){var L=this,A=[0],b=[],D=[null],l=[],mt=this.table,u="",Lt=0,Zt=0,Pe=2,Qt=1,Ae=l.slice.call(arguments,1),W=Object.create(this.lexer),ut={yy:{}};for(var Ot in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ot)&&(ut.yy[Ot]=this.yy[Ot]);W.setInput(I,ut.yy),ut.yy.lexer=W,ut.yy.parser=this,typeof W.yylloc>"u"&&(W.yylloc={});var Bt=W.yylloc;l.push(Bt);var ke=W.options&&W.options.ranges;typeof ut.yy.parseError=="function"?this.parseError=ut.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ne(tt){A.length=A.length-2*tt,D.length=D.length-tt,l.length=l.length-tt}d(Ne,"popStack");function jt(){var tt;return tt=b.pop()||W.lex()||Qt,typeof tt!="number"&&(tt instanceof Array&&(b=tt,tt=b.pop()),tt=L.symbols_[tt]||tt),tt}d(jt,"lex");for(var X,gt,st,Vt,yt={},Pt,ht,$t,At;;){if(gt=A[A.length-1],this.defaultActions[gt]?st=this.defaultActions[gt]:((X===null||typeof X>"u")&&(X=jt()),st=mt[gt]&&mt[gt][X]),typeof st>"u"||!st.length||!st[0]){var Yt="";At=[];for(Pt in mt[gt])this.terminals_[Pt]&&Pt>Pe&&At.push("'"+this.terminals_[Pt]+"'");W.showPosition?Yt="Parse error on line "+(Lt+1)+`: `+W.showPosition()+` Expecting `+At.join(", ")+", got '"+(this.terminals_[X]||X)+"'":Yt="Parse error on line "+(Lt+1)+": Unexpected "+(X==Qt?"end of input":"'"+(this.terminals_[X]||X)+"'"),this.parseError(Yt,{text:W.match,token:this.terminals_[X]||X,line:W.yylineno,loc:Bt,expected:At})}if(st[0]instanceof Array&&st.length>1)throw new Error("Parse Error: multiple actions possible at state: "+gt+", token: "+X);switch(st[0]){case 1:A.push(X),D.push(W.yytext),l.push(W.yylloc),A.push(st[1]),X=null,Zt=W.yyleng,u=W.yytext,Lt=W.yylineno,Bt=W.yylloc;break;case 2:if(ht=this.productions_[st[1]][1],yt.$=D[D.length-ht],yt._$={first_line:l[l.length-(ht||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(ht||1)].first_column,last_column:l[l.length-1].last_column},ke&&(yt._$.range=[l[l.length-(ht||1)].range[0],l[l.length-1].range[1]]),Vt=this.performAction.apply(yt,[u,Zt,Lt,ut.yy,st[1],D,l].concat(Ae)),typeof Vt<"u")return Vt;ht&&(A=A.slice(0,-1*ht*2),D=D.slice(0,-1*ht),l=l.slice(0,-1*ht)),A.push(this.productions_[st[1]][0]),D.push(yt.$),l.push(yt._$),$t=mt[A[A.length-2]][A[A.length-1]],A.push($t);break;case 3:return!0}}return!0},"parse")},Le=function(){var pt={EOF:1,parseError:d(function(L,A){if(this.yy.parser)this.yy.parser.parseError(L,A);else throw new Error(L)},"parseError"),setInput:d(function(I,L){return this.yy=L||this.yy||{},this._input=I,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 I=this._input[0];this.yytext+=I,this.yyleng++,this.offset++,this.match+=I,this.matched+=I;var L=I.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),I},"input"),unput:d(function(I){var L=I.length,A=I.split(/(?:\r\n?|\n)/g);this._input=I+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-L),this.offset-=L;var b=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),A.length-1&&(this.yylineno-=A.length-1);var D=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:A?(A.length===b.length?this.yylloc.first_column:0)+b[b.length-A.length].length-A[0].length:this.yylloc.first_column-L},this.options.ranges&&(this.yylloc.range=[D[0],D[0]+this.yyleng-L]),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). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:d(function(I){this.unput(this.match.slice(I))},"less"),pastInput:d(function(){var I=this.matched.substr(0,this.matched.length-this.match.length);return(I.length>20?"...":"")+I.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var I=this.match;return I.length<20&&(I+=this._input.substr(0,20-I.length)),(I.substr(0,20)+(I.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var I=this.pastInput(),L=new Array(I.length+1).join("-");return I+this.upcomingInput()+` diff --git a/static/js/md-stateDiagram-MAYHULR4-3EjsInh5.js b/static/js/md-stateDiagram-MAYHULR4-B-IB3ZQa.js similarity index 96% rename from static/js/md-stateDiagram-MAYHULR4-3EjsInh5.js rename to static/js/md-stateDiagram-MAYHULR4-B-IB3ZQa.js index c6972d8cc..144eb7898 100644 --- a/static/js/md-stateDiagram-MAYHULR4-3EjsInh5.js +++ b/static/js/md-stateDiagram-MAYHULR4-B-IB3ZQa.js @@ -1 +1 @@ -import{s as W,a as N,b as P}from"./md-chunk-7U56Z5CX-CX_-p2zN.js";import{_ as u,c as t,d as H,l as S,e as C,k as z,K as U,Q as F,u as O}from"./md-index-Pj6M4nIk.js";import{G as J}from"./md-graph-Dk7IDouC.js";import{l as X}from"./md-layout-InKKBTOk.js";import"./md-chunk-5HRBRIJM-aORRBbXN.js";import"./md-_baseUniq-B_2Z1DXv.js";import"./md-_basePickBy-DCcDoZXV.js";var L={},D=u((e,i)=>{L[e]=i},"set"),Y=u(e=>L[e],"get"),G=u(()=>Object.keys(L),"keys"),I=u(()=>G().length,"size"),$={get:Y,set:D,keys:G,size:I},q=u(e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),"drawStartState"),K=u(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),Q=u((e,i)=>{const d=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),o=d.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",o.width+2*t().state.padding).attr("height",o.height+2*t().state.padding).attr("rx",t().state.radius),d},"drawSimpleState"),Z=u((e,i)=>{const d=u(function(l,B,m){const k=l.append("tspan").attr("x",2*t().state.padding).text(B);m||k.attr("dy",t().state.textHeight)},"addTspan"),n=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),g=n.height,p=e.append("text").attr("x",t().state.padding).attr("y",g+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let a=!0,s=!0;i.descriptions.forEach(function(l){a||(d(p,l,s),s=!1),a=!1});const y=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+g+t().state.dividerMargin/2).attr("y2",t().state.padding+g+t().state.dividerMargin/2).attr("class","descr-divider"),x=p.node().getBBox(),c=Math.max(x.width,n.width);return y.attr("x2",c+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c+2*t().state.padding).attr("height",x.height+g+2*t().state.padding).attr("rx",t().state.radius),e},"drawDescrState"),j=u((e,i,d)=>{const o=t().state.padding,n=2*t().state.padding,g=e.node().getBBox(),p=g.width,a=g.x,s=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),x=s.node().getBBox().width+n;let c=Math.max(x,p);c===p&&(c=c+n);let l;const B=e.node().getBBox();i.doc,l=a-o,x>p&&(l=(p-c)/2+o),Math.abs(a-B.x)p&&(l=a-(x-p)/2);const m=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",l).attr("y",m).attr("class",d?"alt-composit":"composit").attr("width",c).attr("height",B.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),s.attr("x",l+o),x<=p&&s.attr("x",a+(c-n)/2-x/2+o),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",c).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",c).attr("height",B.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},"addTitleAndBox"),V=u(e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),"drawEndState"),tt=u((e,i)=>{let d=t().state.forkWidth,o=t().state.forkHeight;if(i.parentId){let n=d;d=o,o=n}return e.append("rect").style("stroke","black").style("fill","black").attr("width",d).attr("height",o).attr("x",t().state.padding).attr("y",t().state.padding)},"drawForkJoinState"),et=u((e,i,d,o)=>{let n=0;const g=o.append("text");g.style("text-anchor","start"),g.attr("class","noteText");let p=e.replace(/\r\n/g,"
");p=p.replace(/\n/g,"
");const a=p.split(z.lineBreakRegex);let s=1.25*t().state.noteMargin;for(const y of a){const x=y.trim();if(x.length>0){const c=g.append("tspan");if(c.text(x),s===0){const l=c.node().getBBox();s+=l.height}n+=s,c.attr("x",i+t().state.noteMargin),c.attr("y",d+n+1.25*t().state.noteMargin)}}return{textWidth:g.node().getBBox().width,textHeight:n}},"_drawLongText"),at=u((e,i)=>{i.attr("class","state-note");const d=i.append("rect").attr("x",0).attr("y",t().state.padding),o=i.append("g"),{textWidth:n,textHeight:g}=et(e,0,0,o);return d.attr("height",g+2*t().state.noteMargin),d.attr("width",n+t().state.noteMargin*2),d},"drawNote"),_=u(function(e,i){const d=i.id,o={id:d,label:i.id,width:0,height:0},n=e.append("g").attr("id",d).attr("class","stateGroup");i.type==="start"&&q(n),i.type==="end"&&V(n),(i.type==="fork"||i.type==="join")&&tt(n,i),i.type==="note"&&at(i.note.text,n),i.type==="divider"&&K(n),i.type==="default"&&i.descriptions.length===0&&Q(n,i),i.type==="default"&&i.descriptions.length>0&&Z(n,i);const g=n.node().getBBox();return o.width=g.width+2*t().state.padding,o.height=g.height+2*t().state.padding,$.set(d,o),o},"drawState"),A=0,it=u(function(e,i,d){const o=u(function(s){switch(s){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}},"getRelationType");i.points=i.points.filter(s=>!Number.isNaN(s.y));const n=i.points,g=U().x(function(s){return s.x}).y(function(s){return s.y}).curve(F),p=e.append("path").attr("d",g(n)).attr("id","edge"+A).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),p.attr("marker-end","url("+a+"#"+o(N.relationType.DEPENDENCY)+"End)"),d.title!==void 0){const s=e.append("g").attr("class","stateLabel"),{x:y,y:x}=O.calcLabelPosition(i.points),c=z.getRows(d.title);let l=0;const B=[];let m=0,k=0;for(let f=0;f<=c.length;f++){const h=s.append("text").attr("text-anchor","middle").text(c[f]).attr("x",y).attr("y",x+l),w=h.node().getBBox();m=Math.max(m,w.width),k=Math.min(k,w.x),S.info(w.x,y,x+l),l===0&&(l=h.node().getBBox().height,S.info("Title height",l,x)),B.push(h)}let E=l*c.length;if(c.length>1){const f=(c.length-1)*l*.5;B.forEach((h,w)=>h.attr("y",x+w*l-f)),E=l*c.length}const r=s.node().getBBox();s.insert("rect",":first-child").attr("class","box").attr("x",y-m/2-t().state.padding/2).attr("y",x-E/2-t().state.padding/2-3.5).attr("width",m+t().state.padding).attr("height",E+t().state.padding),S.info(r)}A++},"drawEdge"),b,T={},rt=u(function(){},"setConf"),nt=u(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),st=u(function(e,i,d,o){b=t().state;const n=t().securityLevel;let g;n==="sandbox"&&(g=H("#i"+i));const p=n==="sandbox"?H(g.nodes()[0].contentDocument.body):H("body"),a=n==="sandbox"?g.nodes()[0].contentDocument:document;S.debug("Rendering diagram "+e);const s=p.select(`[id='${i}']`);nt(s);const y=o.db.getRootDoc();R(y,s,void 0,!1,p,a,o);const x=b.padding,c=s.node().getBBox(),l=c.width+x*2,B=c.height+x*2,m=l*1.75;C(s,B,m,b.useMaxWidth),s.attr("viewBox",`${c.x-b.padding} ${c.y-b.padding} `+l+" "+B)},"draw"),dt=u(e=>e?e.length*b.fontSizeFactor:1,"getLabelWidth"),R=u((e,i,d,o,n,g,p)=>{const a=new J({compound:!0,multigraph:!0});let s,y=!0;for(s=0;s{const w=h.parentElement;let v=0,M=0;w&&(w.parentElement&&(v=w.parentElement.getBBox().width),M=parseInt(w.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),h.setAttribute("x1",0-M+8),h.setAttribute("x2",v-M-8)})):S.debug("No Node "+r+": "+JSON.stringify(a.node(r)))});let k=m.getBBox();a.edges().forEach(function(r){r!==void 0&&a.edge(r)!==void 0&&(S.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(a.edge(r))),it(i,a.edge(r),a.edge(r).relation))}),k=m.getBBox();const E={id:d||"root",label:d||"root",width:0,height:0};return E.width=k.width+2*b.padding,E.height=k.height+2*b.padding,S.debug("Doc rendered",E,a),E},"renderDoc"),ot={setConf:rt,draw:st},ft={parser:P,db:N,renderer:ot,styles:W,init:u(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,N.clear()},"init")};export{ft as diagram}; +import{s as W,a as N,b as P}from"./md-chunk-7U56Z5CX-5vmlRDfv.js";import{_ as u,c as t,d as H,l as S,e as C,k as z,K as U,Q as F,u as O}from"./md-index-1F_vrIf8.js";import{G as J}from"./md-graph-tF8klDvC.js";import{l as X}from"./md-layout-FhzIEdmV.js";import"./md-chunk-5HRBRIJM-DZZLUrKF.js";import"./md-_baseUniq-CaouebKG.js";import"./md-_basePickBy-BEC9IKhF.js";var L={},D=u((e,i)=>{L[e]=i},"set"),Y=u(e=>L[e],"get"),G=u(()=>Object.keys(L),"keys"),I=u(()=>G().length,"size"),$={get:Y,set:D,keys:G,size:I},q=u(e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),"drawStartState"),K=u(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),Q=u((e,i)=>{const d=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),o=d.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",o.width+2*t().state.padding).attr("height",o.height+2*t().state.padding).attr("rx",t().state.radius),d},"drawSimpleState"),Z=u((e,i)=>{const d=u(function(l,B,m){const k=l.append("tspan").attr("x",2*t().state.padding).text(B);m||k.attr("dy",t().state.textHeight)},"addTspan"),n=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.descriptions[0]).node().getBBox(),g=n.height,p=e.append("text").attr("x",t().state.padding).attr("y",g+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description");let a=!0,s=!0;i.descriptions.forEach(function(l){a||(d(p,l,s),s=!1),a=!1});const y=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+g+t().state.dividerMargin/2).attr("y2",t().state.padding+g+t().state.dividerMargin/2).attr("class","descr-divider"),x=p.node().getBBox(),c=Math.max(x.width,n.width);return y.attr("x2",c+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c+2*t().state.padding).attr("height",x.height+g+2*t().state.padding).attr("rx",t().state.radius),e},"drawDescrState"),j=u((e,i,d)=>{const o=t().state.padding,n=2*t().state.padding,g=e.node().getBBox(),p=g.width,a=g.x,s=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(i.id),x=s.node().getBBox().width+n;let c=Math.max(x,p);c===p&&(c=c+n);let l;const B=e.node().getBBox();i.doc,l=a-o,x>p&&(l=(p-c)/2+o),Math.abs(a-B.x)p&&(l=a-(x-p)/2);const m=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",l).attr("y",m).attr("class",d?"alt-composit":"composit").attr("width",c).attr("height",B.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),s.attr("x",l+o),x<=p&&s.attr("x",a+(c-n)/2-x/2+o),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",c).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",l).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",c).attr("height",B.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},"addTitleAndBox"),V=u(e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),"drawEndState"),tt=u((e,i)=>{let d=t().state.forkWidth,o=t().state.forkHeight;if(i.parentId){let n=d;d=o,o=n}return e.append("rect").style("stroke","black").style("fill","black").attr("width",d).attr("height",o).attr("x",t().state.padding).attr("y",t().state.padding)},"drawForkJoinState"),et=u((e,i,d,o)=>{let n=0;const g=o.append("text");g.style("text-anchor","start"),g.attr("class","noteText");let p=e.replace(/\r\n/g,"
");p=p.replace(/\n/g,"
");const a=p.split(z.lineBreakRegex);let s=1.25*t().state.noteMargin;for(const y of a){const x=y.trim();if(x.length>0){const c=g.append("tspan");if(c.text(x),s===0){const l=c.node().getBBox();s+=l.height}n+=s,c.attr("x",i+t().state.noteMargin),c.attr("y",d+n+1.25*t().state.noteMargin)}}return{textWidth:g.node().getBBox().width,textHeight:n}},"_drawLongText"),at=u((e,i)=>{i.attr("class","state-note");const d=i.append("rect").attr("x",0).attr("y",t().state.padding),o=i.append("g"),{textWidth:n,textHeight:g}=et(e,0,0,o);return d.attr("height",g+2*t().state.noteMargin),d.attr("width",n+t().state.noteMargin*2),d},"drawNote"),_=u(function(e,i){const d=i.id,o={id:d,label:i.id,width:0,height:0},n=e.append("g").attr("id",d).attr("class","stateGroup");i.type==="start"&&q(n),i.type==="end"&&V(n),(i.type==="fork"||i.type==="join")&&tt(n,i),i.type==="note"&&at(i.note.text,n),i.type==="divider"&&K(n),i.type==="default"&&i.descriptions.length===0&&Q(n,i),i.type==="default"&&i.descriptions.length>0&&Z(n,i);const g=n.node().getBBox();return o.width=g.width+2*t().state.padding,o.height=g.height+2*t().state.padding,$.set(d,o),o},"drawState"),A=0,it=u(function(e,i,d){const o=u(function(s){switch(s){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}},"getRelationType");i.points=i.points.filter(s=>!Number.isNaN(s.y));const n=i.points,g=U().x(function(s){return s.x}).y(function(s){return s.y}).curve(F),p=e.append("path").attr("d",g(n)).attr("id","edge"+A).attr("class","transition");let a="";if(t().state.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),p.attr("marker-end","url("+a+"#"+o(N.relationType.DEPENDENCY)+"End)"),d.title!==void 0){const s=e.append("g").attr("class","stateLabel"),{x:y,y:x}=O.calcLabelPosition(i.points),c=z.getRows(d.title);let l=0;const B=[];let m=0,k=0;for(let f=0;f<=c.length;f++){const h=s.append("text").attr("text-anchor","middle").text(c[f]).attr("x",y).attr("y",x+l),w=h.node().getBBox();m=Math.max(m,w.width),k=Math.min(k,w.x),S.info(w.x,y,x+l),l===0&&(l=h.node().getBBox().height,S.info("Title height",l,x)),B.push(h)}let E=l*c.length;if(c.length>1){const f=(c.length-1)*l*.5;B.forEach((h,w)=>h.attr("y",x+w*l-f)),E=l*c.length}const r=s.node().getBBox();s.insert("rect",":first-child").attr("class","box").attr("x",y-m/2-t().state.padding/2).attr("y",x-E/2-t().state.padding/2-3.5).attr("width",m+t().state.padding).attr("height",E+t().state.padding),S.info(r)}A++},"drawEdge"),b,T={},rt=u(function(){},"setConf"),nt=u(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),st=u(function(e,i,d,o){b=t().state;const n=t().securityLevel;let g;n==="sandbox"&&(g=H("#i"+i));const p=n==="sandbox"?H(g.nodes()[0].contentDocument.body):H("body"),a=n==="sandbox"?g.nodes()[0].contentDocument:document;S.debug("Rendering diagram "+e);const s=p.select(`[id='${i}']`);nt(s);const y=o.db.getRootDoc();R(y,s,void 0,!1,p,a,o);const x=b.padding,c=s.node().getBBox(),l=c.width+x*2,B=c.height+x*2,m=l*1.75;C(s,B,m,b.useMaxWidth),s.attr("viewBox",`${c.x-b.padding} ${c.y-b.padding} `+l+" "+B)},"draw"),dt=u(e=>e?e.length*b.fontSizeFactor:1,"getLabelWidth"),R=u((e,i,d,o,n,g,p)=>{const a=new J({compound:!0,multigraph:!0});let s,y=!0;for(s=0;s{const w=h.parentElement;let v=0,M=0;w&&(w.parentElement&&(v=w.parentElement.getBBox().width),M=parseInt(w.getAttribute("data-x-shift"),10),Number.isNaN(M)&&(M=0)),h.setAttribute("x1",0-M+8),h.setAttribute("x2",v-M-8)})):S.debug("No Node "+r+": "+JSON.stringify(a.node(r)))});let k=m.getBBox();a.edges().forEach(function(r){r!==void 0&&a.edge(r)!==void 0&&(S.debug("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(a.edge(r))),it(i,a.edge(r),a.edge(r).relation))}),k=m.getBBox();const E={id:d||"root",label:d||"root",width:0,height:0};return E.width=k.width+2*b.padding,E.height=k.height+2*b.padding,S.debug("Doc rendered",E,a),E},"renderDoc"),ot={setConf:rt,draw:st},ft={parser:P,db:N,renderer:ot,styles:W,init:u(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,N.clear()},"init")};export{ft as diagram}; diff --git a/static/js/md-stateDiagram-v2-4JROLMXI-CKG0ax-F.js b/static/js/md-stateDiagram-v2-4JROLMXI-CKG0ax-F.js new file mode 100644 index 000000000..5fed8aec0 --- /dev/null +++ b/static/js/md-stateDiagram-v2-4JROLMXI-CKG0ax-F.js @@ -0,0 +1 @@ +import{s as t,c as r,a as e,b as s}from"./md-chunk-7U56Z5CX-5vmlRDfv.js";import{_ as i}from"./md-index-1F_vrIf8.js";import"./md-chunk-5HRBRIJM-DZZLUrKF.js";var _={parser:s,db:e,renderer:r,styles:t,init:i(a=>{a.state||(a.state={}),a.state.arrowMarkerAbsolute=a.arrowMarkerAbsolute,e.clear()},"init")};export{_ as diagram}; diff --git a/static/js/md-stateDiagram-v2-4JROLMXI-CrYqH-If.js b/static/js/md-stateDiagram-v2-4JROLMXI-CrYqH-If.js deleted file mode 100644 index 82a019ea8..000000000 --- a/static/js/md-stateDiagram-v2-4JROLMXI-CrYqH-If.js +++ /dev/null @@ -1 +0,0 @@ -import{s as t,c as r,a as e,b as s}from"./md-chunk-7U56Z5CX-CX_-p2zN.js";import{_ as i}from"./md-index-Pj6M4nIk.js";import"./md-chunk-5HRBRIJM-aORRBbXN.js";var _={parser:s,db:e,renderer:r,styles:t,init:i(a=>{a.state||(a.state={}),a.state.arrowMarkerAbsolute=a.arrowMarkerAbsolute,e.clear()},"init")};export{_ as diagram}; diff --git a/static/js/md-timeline-definition-U7ZMHBDA-BmkDcRCw.js b/static/js/md-timeline-definition-U7ZMHBDA-Mo7FFo8w.js similarity index 99% rename from static/js/md-timeline-definition-U7ZMHBDA-BmkDcRCw.js rename to static/js/md-timeline-definition-U7ZMHBDA-Mo7FFo8w.js index 16d4430d2..506352e79 100644 --- a/static/js/md-timeline-definition-U7ZMHBDA-BmkDcRCw.js +++ b/static/js/md-timeline-definition-U7ZMHBDA-Mo7FFo8w.js @@ -1,4 +1,4 @@ -import{_ as s,c as xt,l as T,d as U,T as kt,U as vt,V as _t,W as bt,X as wt,Y as St,v as Et}from"./md-index-Pj6M4nIk.js";import{d as nt}from"./md-arc-JYr3KmYy.js";var X=function(){var n=s(function(f,i,a,d){for(a=a||{},d=f.length;d--;a[f[d]]=i);return a},"o"),t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],l=[1,10],r=[1,11],h=[1,12],c=[1,13],g=[1,16],m=[1,17],p={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:s(function(i,a,d,u,y,o,S){var k=o.length-1;switch(y){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:u.getCommonDb().setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),u.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),u.getCommonDb().setAccDescription(this.$);break;case 12:u.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 15:u.addTask(o[k],0,""),this.$=o[k];break;case 16:u.addEvent(o[k].substr(2)),this.$=o[k];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:l,14:r,16:h,17:c,18:14,19:15,20:g,21:m},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:l,14:r,16:h,17:c,18:14,19:15,20:g,21:m},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:s(function(i,a){if(a.recoverable)this.trace(i);else{var d=new Error(i);throw d.hash=a,d}},"parseError"),parse:s(function(i){var a=this,d=[0],u=[],y=[null],o=[],S=this.table,k="",M=0,P=0,B=2,J=1,O=o.slice.call(arguments,1),v=Object.create(this.lexer),E={yy:{}};for(var b in this.yy)Object.prototype.hasOwnProperty.call(this.yy,b)&&(E.yy[b]=this.yy[b]);v.setInput(i,E.yy),E.yy.lexer=v,E.yy.parser=this,typeof v.yylloc>"u"&&(v.yylloc={});var L=v.yylloc;o.push(L);var A=v.options&&v.options.ranges;typeof E.yy.parseError=="function"?this.parseError=E.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function R(I){d.length=d.length-2*I,y.length=y.length-I,o.length=o.length-I}s(R,"popStack");function F(){var I;return I=u.pop()||v.lex()||J,typeof I!="number"&&(I instanceof Array&&(u=I,I=u.pop()),I=a.symbols_[I]||I),I}s(F,"lex");for(var w,C,N,K,V={},j,$,et,G;;){if(C=d[d.length-1],this.defaultActions[C]?N=this.defaultActions[C]:((w===null||typeof w>"u")&&(w=F()),N=S[C]&&S[C][w]),typeof N>"u"||!N.length||!N[0]){var Q="";G=[];for(j in S[C])this.terminals_[j]&&j>B&&G.push("'"+this.terminals_[j]+"'");v.showPosition?Q="Parse error on line "+(M+1)+`: +import{_ as s,c as xt,l as T,d as U,T as kt,U as vt,V as _t,W as bt,X as wt,Y as St,v as Et}from"./md-index-1F_vrIf8.js";import{d as nt}from"./md-arc-iggqmto5.js";var X=function(){var n=s(function(f,i,a,d){for(a=a||{},d=f.length;d--;a[f[d]]=i);return a},"o"),t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],l=[1,10],r=[1,11],h=[1,12],c=[1,13],g=[1,16],m=[1,17],p={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:s(function(i,a,d,u,y,o,S){var k=o.length-1;switch(y){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:u.getCommonDb().setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),u.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),u.getCommonDb().setAccDescription(this.$);break;case 12:u.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 15:u.addTask(o[k],0,""),this.$=o[k];break;case 16:u.addEvent(o[k].substr(2)),this.$=o[k];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:l,14:r,16:h,17:c,18:14,19:15,20:g,21:m},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:l,14:r,16:h,17:c,18:14,19:15,20:g,21:m},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:s(function(i,a){if(a.recoverable)this.trace(i);else{var d=new Error(i);throw d.hash=a,d}},"parseError"),parse:s(function(i){var a=this,d=[0],u=[],y=[null],o=[],S=this.table,k="",M=0,P=0,B=2,J=1,O=o.slice.call(arguments,1),v=Object.create(this.lexer),E={yy:{}};for(var b in this.yy)Object.prototype.hasOwnProperty.call(this.yy,b)&&(E.yy[b]=this.yy[b]);v.setInput(i,E.yy),E.yy.lexer=v,E.yy.parser=this,typeof v.yylloc>"u"&&(v.yylloc={});var L=v.yylloc;o.push(L);var A=v.options&&v.options.ranges;typeof E.yy.parseError=="function"?this.parseError=E.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function R(I){d.length=d.length-2*I,y.length=y.length-I,o.length=o.length-I}s(R,"popStack");function F(){var I;return I=u.pop()||v.lex()||J,typeof I!="number"&&(I instanceof Array&&(u=I,I=u.pop()),I=a.symbols_[I]||I),I}s(F,"lex");for(var w,C,N,K,V={},j,$,et,G;;){if(C=d[d.length-1],this.defaultActions[C]?N=this.defaultActions[C]:((w===null||typeof w>"u")&&(w=F()),N=S[C]&&S[C][w]),typeof N>"u"||!N.length||!N[0]){var Q="";G=[];for(j in S[C])this.terminals_[j]&&j>B&&G.push("'"+this.terminals_[j]+"'");v.showPosition?Q="Parse error on line "+(M+1)+`: `+v.showPosition()+` Expecting `+G.join(", ")+", got '"+(this.terminals_[w]||w)+"'":Q="Parse error on line "+(M+1)+": Unexpected "+(w==J?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(Q,{text:v.match,token:this.terminals_[w]||w,line:v.yylineno,loc:L,expected:G})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+w);switch(N[0]){case 1:d.push(w),y.push(v.yytext),o.push(v.yylloc),d.push(N[1]),w=null,P=v.yyleng,k=v.yytext,M=v.yylineno,L=v.yylloc;break;case 2:if($=this.productions_[N[1]][1],V.$=y[y.length-$],V._$={first_line:o[o.length-($||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-($||1)].first_column,last_column:o[o.length-1].last_column},A&&(V._$.range=[o[o.length-($||1)].range[0],o[o.length-1].range[1]]),K=this.performAction.apply(V,[k,P,M,E.yy,N[1],y,o].concat(O)),typeof K<"u")return K;$&&(d=d.slice(0,-1*$*2),y=y.slice(0,-1*$),o=o.slice(0,-1*$)),d.push(this.productions_[N[1]][0]),y.push(V.$),o.push(V._$),et=S[d[d.length-2]][d[d.length-1]],d.push(et);break;case 3:return!0}}return!0},"parse")},x=function(){var f={EOF:1,parseError:s(function(a,d){if(this.yy.parser)this.yy.parser.parseError(a,d);else throw new Error(a)},"parseError"),setInput:s(function(i,a){return this.yy=a||this.yy||{},this._input=i,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:s(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var a=i.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),i},"input"),unput:s(function(i){var a=i.length,d=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var u=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),d.length-1&&(this.yylineno-=d.length-1);var y=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:d?(d.length===u.length?this.yylloc.first_column:0)+u[u.length-d.length].length-d[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(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). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(i){this.unput(this.match.slice(i))},"less"),pastInput:s(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var i=this.pastInput(),a=new Array(i.length+1).join("-");return i+this.upcomingInput()+` diff --git a/static/js/md-xychartDiagram-6QU3TZC5-CHuQLkx8.js b/static/js/md-xychartDiagram-6QU3TZC5-DhlBqjGC.js similarity index 99% rename from static/js/md-xychartDiagram-6QU3TZC5-CHuQLkx8.js rename to static/js/md-xychartDiagram-6QU3TZC5-DhlBqjGC.js index c83d4ea6b..48c1cb836 100644 --- a/static/js/md-xychartDiagram-6QU3TZC5-CHuQLkx8.js +++ b/static/js/md-xychartDiagram-6QU3TZC5-DhlBqjGC.js @@ -1,4 +1,4 @@ -import{_ as a,s as ui,g as gi,n as Ft,o as xi,a as di,b as pi,l as Xt,G as fi,e as mi,v as yi,D as At,C as Nt,E as bi,I as Ai,i as wi,aF as Ci,K as Bt}from"./md-index-Pj6M4nIk.js";import{i as Si}from"./md-init-Gi6I4Gst.js";import{o as _i}from"./md-ordinal-CxVaQH2l.js";import{l as Wt}from"./md-linear-D6Y5aq77.js";function ki(e,t,i){e=+e,t=+t,i=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+i;for(var s=-1,n=Math.max(0,Math.ceil((t-e)/i))|0,o=new Array(n);++s"u"&&(T.yylloc={});var gt=T.yylloc;r.push(gt);var li=T.options&&T.options.ranges;typeof W.yy.parseError=="function"?this.parseError=W.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ci(L){g.length=g.length-2*L,A.length=A.length-L,r.length=r.length-L}a(ci,"popStack");function Mt(){var L;return L=x.pop()||T.lex()||It,typeof L!="number"&&(L instanceof Array&&(x=L,L=x.pop()),L=c.symbols_[L]||L),L}a(Mt,"lex");for(var P,O,M,xt,z={},at,V,Vt,rt;;){if(O=g[g.length-1],this.defaultActions[O]?M=this.defaultActions[O]:((P===null||typeof P>"u")&&(P=Mt()),M=Z[O]&&Z[O][P]),typeof M>"u"||!M.length||!M[0]){var dt="";rt=[];for(at in Z[O])this.terminals_[at]&&at>oi&&rt.push("'"+this.terminals_[at]+"'");T.showPosition?dt="Parse error on line "+(nt+1)+`: +import{_ as a,s as ui,g as gi,n as Ft,o as xi,a as di,b as pi,l as Xt,G as fi,e as mi,v as yi,D as At,C as Nt,E as bi,I as Ai,i as wi,aF as Ci,K as Bt}from"./md-index-1F_vrIf8.js";import{i as Si}from"./md-init-Gi6I4Gst.js";import{o as _i}from"./md-ordinal-CxVaQH2l.js";import{l as Wt}from"./md-linear-Co1Vf5c0.js";function ki(e,t,i){e=+e,t=+t,i=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+i;for(var s=-1,n=Math.max(0,Math.ceil((t-e)/i))|0,o=new Array(n);++s"u"&&(T.yylloc={});var gt=T.yylloc;r.push(gt);var li=T.options&&T.options.ranges;typeof W.yy.parseError=="function"?this.parseError=W.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ci(L){g.length=g.length-2*L,A.length=A.length-L,r.length=r.length-L}a(ci,"popStack");function Mt(){var L;return L=x.pop()||T.lex()||It,typeof L!="number"&&(L instanceof Array&&(x=L,L=x.pop()),L=c.symbols_[L]||L),L}a(Mt,"lex");for(var P,O,M,xt,z={},at,V,Vt,rt;;){if(O=g[g.length-1],this.defaultActions[O]?M=this.defaultActions[O]:((P===null||typeof P>"u")&&(P=Mt()),M=Z[O]&&Z[O][P]),typeof M>"u"||!M.length||!M[0]){var dt="";rt=[];for(at in Z[O])this.terminals_[at]&&at>oi&&rt.push("'"+this.terminals_[at]+"'");T.showPosition?dt="Parse error on line "+(nt+1)+`: `+T.showPosition()+` Expecting `+rt.join(", ")+", got '"+(this.terminals_[P]||P)+"'":dt="Parse error on line "+(nt+1)+": Unexpected "+(P==It?"end of input":"'"+(this.terminals_[P]||P)+"'"),this.parseError(dt,{text:T.match,token:this.terminals_[P]||P,line:T.yylineno,loc:gt,expected:rt})}if(M[0]instanceof Array&&M.length>1)throw new Error("Parse Error: multiple actions possible at state: "+O+", token: "+P);switch(M[0]){case 1:g.push(P),A.push(T.yytext),r.push(T.yylloc),g.push(M[1]),P=null,Et=T.yyleng,d=T.yytext,nt=T.yylineno,gt=T.yylloc;break;case 2:if(V=this.productions_[M[1]][1],z.$=A[A.length-V],z._$={first_line:r[r.length-(V||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(V||1)].first_column,last_column:r[r.length-1].last_column},li&&(z._$.range=[r[r.length-(V||1)].range[0],r[r.length-1].range[1]]),xt=this.performAction.apply(z,[d,Et,nt,W.yy,M[1],A,r].concat(hi)),typeof xt<"u")return xt;V&&(g=g.slice(0,-1*V*2),A=A.slice(0,-1*V),r=r.slice(0,-1*V)),g.push(this.productions_[M[1]][0]),A.push(z.$),r.push(z._$),Vt=Z[g[g.length-2]][g[g.length-1]],g.push(Vt);break;case 3:return!0}}return!0},"parse")},ri=function(){var B={EOF:1,parseError:a(function(c,g){if(this.yy.parser)this.yy.parser.parseError(c,g);else throw new Error(c)},"parseError"),setInput:a(function(h,c){return this.yy=c||this.yy||{},this._input=h,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:a(function(){var h=this._input[0];this.yytext+=h,this.yyleng++,this.offset++,this.match+=h,this.matched+=h;var c=h.match(/(?:\r\n?|\n).*/g);return c?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),h},"input"),unput:a(function(h){var c=h.length,g=h.split(/(?:\r\n?|\n)/g);this._input=h+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;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),g.length-1&&(this.yylineno-=g.length-1);var A=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:g?(g.length===x.length?this.yylloc.first_column:0)+x[x.length-g.length].length-g[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[A[0],A[0]+this.yyleng-c]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(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). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:a(function(h){this.unput(this.match.slice(h))},"less"),pastInput:a(function(){var h=this.matched.substr(0,this.matched.length-this.match.length);return(h.length>20?"...":"")+h.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a(function(){var h=this.match;return h.length<20&&(h+=this._input.substr(0,20-h.length)),(h.substr(0,20)+(h.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var h=this.pastInput(),c=new Array(h.length+1).join("-");return h+this.upcomingInput()+`