UNPKG

graph-explorer

Version:

Graph Explorer can be used to explore and RDF graphs in SPARQL endpoints or on the web.

587 lines 1.19 MB
(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(`.graph-explorer{--ge-font-sans:"Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--ge-font-mono:"SFMono-Regular", "JetBrains Mono", "Fira Code", ui-monospace, Menlo, Consolas, monospace;--ge-bg:#f1f5f9;--ge-surface:#fff;--ge-surface-2:#f8fafc;--ge-surface-3:#f1f5f9;--ge-border:#e5e9f0;--ge-border-strong:#cbd5e1;--ge-text:#0f172a;--ge-text-muted:#475569;--ge-text-subtle:#94a3b8;--ge-accent:#4f46e5;--ge-accent-hover:#4338ca;--ge-accent-fg:#fff;--ge-accent-soft:#eef2ff;--ge-accent-soft-border:#c7d2fe;--ge-success:#16a34a;--ge-success-hover:#15803d;--ge-danger:#dc2626;--ge-danger-hover:#b91c1c;--ge-warning:#f59e0b;--ge-canvas:#fbfcfe;--ge-canvas-dot:#dbe2ee;--ge-radius-sm:6px;--ge-radius:8px;--ge-radius-lg:12px;--ge-radius-pill:999px;--ge-shadow-xs:0 1px 2px #0f172a0f;--ge-shadow-sm:0 1px 3px #0f172a14, 0 1px 2px #0f172a0f;--ge-shadow-md:0 6px 16px #0f172a1a, 0 2px 6px #0f172a0f;--ge-shadow-lg:0 16px 40px #0f172a29, 0 6px 12px #0f172a14;--ge-ring:0 0 0 3px #4f46e547;--ge-transition:.18s cubic-bezier(.4, 0, .2, 1)}.graph-explorer-spinner__arrow{animation-name:graph-explorer-spinner-rotation;animation-duration:1.5s;animation-timing-function:cubic-bezier(.645,.045,.355,1);animation-iteration-count:infinite}.graph-explorer-spinner[data-error=true] .graph-explorer-spinner__arrow{animation-iteration-count:1}@keyframes graph-explorer-spinner-rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.clearfix:before,.clearfix:after{content:"";display:table}.clearfix:after{clear:both}.graph-explorer-label{max-width:100%;margin-bottom:5px;font-weight:700;display:inline-block}.graph-explorer-btn{text-align:center;white-space:nowrap;vertical-align:middle;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:var(--ge-radius-sm);text-transform:none;transition:background-color var(--ge-transition), border-color var(--ge-transition), box-shadow var(--ge-transition), color var(--ge-transition);background-image:none;border:1px solid #0000;justify-content:center;align-items:center;gap:6px;margin-bottom:0;padding:7px 13px;font-size:13px;font-weight:500;line-height:1.4;display:inline-flex}.graph-explorer-btn:focus-visible{box-shadow:var(--ge-ring);outline:none}.graph-explorer-btn[disabled]{cursor:not-allowed;opacity:.55;box-shadow:none}.graph-explorer-btn-default{background-color:var(--ge-surface);border-color:var(--ge-border-strong);color:var(--ge-text-muted);box-shadow:var(--ge-shadow-xs)}.graph-explorer-btn-default:hover{background-color:var(--ge-surface-3);border-color:var(--ge-border-strong);color:var(--ge-text)}.graph-explorer-btn-default.active{background-color:var(--ge-accent-soft);border-color:var(--ge-accent-soft-border);color:var(--ge-accent-hover)}.graph-explorer-btn-default.active:hover{background-color:var(--ge-accent-soft);border-color:var(--ge-accent)}.graph-explorer-btn-default[disabled],.graph-explorer-btn-default[disabled]:hover,.graph-explorer-btn-default[disabled].active,.graph-explorer-btn-default[disabled].active:hover{background-color:var(--ge-surface-3);color:var(--ge-text-subtle)}.graph-explorer-btn-primary{color:var(--ge-accent-fg);background-color:var(--ge-accent);border-color:var(--ge-accent);box-shadow:var(--ge-shadow-xs)}.graph-explorer-btn-primary:hover,.graph-explorer-btn-primary:focus,.graph-explorer-btn-primary:active{background-color:var(--ge-accent-hover);border-color:var(--ge-accent-hover)}.graph-explorer-btn-primary.active{border-color:var(--ge-accent-hover)}.graph-explorer-btn-primary[disabled],.graph-explorer-btn-primary[disabled]:hover,.graph-explorer-btn-primary[disabled]:focus,.graph-explorer-btn-primary[disabled]:active,.graph-explorer-btn-primary[disabled].active{background-color:var(--ge-accent)}.graph-explorer-btn-success{background-color:var(--ge-success);border-color:var(--ge-success);color:#fff;box-shadow:var(--ge-shadow-xs)}.graph-explorer-btn-success:hover{background-color:var(--ge-success-hover);border-color:var(--ge-success-hover)}.graph-explorer-btn-danger{background-color:var(--ge-danger);border-color:var(--ge-danger);color:#fff;box-shadow:var(--ge-shadow-xs)}.graph-explorer-btn-danger:hover{background-color:var(--ge-danger-hover);border-color:var(--ge-danger-hover)}.graph-explorer-btn-group{vertical-align:middle;display:inline-block;position:relative}.graph-explorer-btn-group>.graph-explorer-btn,.graph-explorer-btn-group>.graph-explorer-btn-group{float:left;position:relative}.graph-explorer-btn-group>.graph-explorer-btn:hover,.graph-explorer-btn-group>.graph-explorer-btn:focus,.graph-explorer-btn-group>.graph-explorer-btn.active,.graph-explorer-btn-group>.graph-explorer-btn.active:hover{z-index:2}.graph-explorer-btn-group .graph-explorer-btn+.graph-explorer-btn,.graph-explorer-btn-group .graph-explorer-btn+.graph-explorer-btn-group,.graph-explorer-btn-group .graph-explorer-btn-group+.graph-explorer-btn,.graph-explorer-btn-group .graph-explorer-btn-group+.graph-explorer-btn-group{margin-left:-1px}.graph-explorer-btn-group>.graph-explorer-btn:first-child{margin-left:0}.graph-explorer-btn-group-sm>.graph-explorer-btn{padding:5px 10px;font-size:12px;line-height:1.5}.graph-explorer-btn-group-xs>.graph-explorer-btn{padding:1px 5px;font-size:12px;line-height:1.5}.graph-explorer-form-control{width:100%;height:36px;color:var(--ge-text);background:var(--ge-surface);border:1px solid var(--ge-border-strong);border-radius:var(--ge-radius-sm);transition:border-color var(--ge-transition), box-shadow var(--ge-transition);margin:0;padding:7px 12px;font-size:14px;line-height:1.5;display:block}.graph-explorer-form-control::placeholder{color:var(--ge-text-subtle)}.graph-explorer-form-control:focus{border-color:var(--ge-accent);box-shadow:var(--ge-ring);outline:0}.graph-explorer-form-control:disabled{background-color:var(--ge-surface-3);cursor:not-allowed;opacity:.6}.graph-explorer-input-group{align-items:stretch;display:flex;position:relative}.graph-explorer-input-group .graph-explorer-form-control{z-index:2;flex:auto;width:1%;margin-bottom:0;position:relative}.graph-explorer-input-group .graph-explorer-form-control:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.graph-explorer-input-group-btn{white-space:nowrap;align-items:stretch;font-size:0;display:flex;position:relative}.graph-explorer-input-group-btn>.graph-explorer-btn{z-index:2;height:100%;margin-left:-1px}.graph-explorer-input-group-btn:last-child>.graph-explorer-btn{border-top-left-radius:0;border-bottom-left-radius:0}.graph-explorer-list-group{margin:0;padding:0}.graph-explorer-list-group-item:last-child{margin-bottom:0}.graph-explorer-list-group-item{background-color:var(--ge-surface);border:1px solid var(--ge-border);margin-bottom:-1px;padding:10px 14px;display:block;position:relative}.graph-explorer-list-group-item:first-child{border-top-left-radius:var(--ge-radius-sm);border-top-right-radius:var(--ge-radius-sm)}.graph-explorer-list-group-item:last-child{border-bottom-left-radius:var(--ge-radius-sm);border-bottom-right-radius:var(--ge-radius-sm)}.graph-explorer-badge{min-width:10px;color:var(--ge-text-muted);text-align:center;white-space:nowrap;vertical-align:middle;background-color:var(--ge-surface-3);border:1px solid var(--ge-border);border-radius:var(--ge-radius-pill);padding:3px 8px;font-size:11px;font-weight:600;line-height:1;display:inline-block}.graph-explorer-overlayed-element{cursor:move;outline:none}.graph-explorer-overlayed-element,.graph-explorer-exported-element{box-sizing:border-box;color:var(--ge-text,#0f172a);font-family:var(--ge-font-sans,"Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:14px;line-height:1.5}.graph-explorer-overlayed-element img,.graph-explorer-exported-element img{vertical-align:middle}.graph-explorer-exported-element *,.graph-explorer-exported-element :before,.graph-explorer-exported-element :after{box-sizing:inherit}.graph-explorer-overlayed-element--blurred{filter:grayscale();opacity:.5}.graph-explorer-link__wrap{stroke-width:12px;stroke-linejoin:round;stroke-linecap:round;stroke:#0000;fill:none}.graph-explorer-link:hover .graph-explorer-link__wrap{stroke:#8c8c8c70}.graph-explorer-link__vertex{cursor:all-scroll}.graph-explorer-link:not(:hover) .graph-explorer-link__vertex{fill:#0000}.graph-explorer-link__vertex-tools{opacity:0;cursor:pointer}.graph-explorer-link__vertex-tools>circle{fill:gray}.graph-explorer-link__vertex-tools>path{stroke:#fff}.graph-explorer-link__vertex-tools:hover>circle{fill:#000}.graph-explorer-link:hover .graph-explorer-link__vertex-tools{opacity:.8}.graph-explorer-link--blurred{opacity:.5}.graph-explorer-paper-area{cursor:default;background-color:var(--ge-canvas);flex:auto;width:0;display:flex;position:relative}.graph-explorer-paper-area__area{background-image:radial-gradient(var(--ge-canvas-dot) 1px, transparent 1px);background-attachment:local;flex:auto;overflow:hidden}.graph-explorer-paper-area__widgets{position:absolute;top:0;left:0}.graph-explorer-paper-area__watermark{cursor:pointer;opacity:.3;background-size:cover;width:8%;min-width:50px;max-width:130px;transition:opacity .3s;position:absolute;top:15px;right:25px}.graph-explorer-paper-area__watermark:hover{opacity:.5}.graph-explorer-paper-area--hide-scrollbars{overflow:hidden}.graph-explorer-paper{position:relative}.graph-explorer-exported-watermark{opacity:.3;transition:opacity .3s}.graph-explorer-paper-area--animated .graph-explorer-overlayed-element{transition:transform .5s ease-in-out}.graph-explorer-paper-area--animated .graph-explorer-link-layer,.graph-explorer-paper-area--animated .graph-explorer-paper-area__widgets{opacity:0;transition:none}.graph-explorer-link-layer,.graph-explorer-paper-area__widgets{transition:opacity .5s ease-in-out}.graph-explorer-loading-widget{z-index:10;background:#ffffffe6;justify-content:center;align-items:center;margin:auto;display:flex;position:absolute;inset:0}.graph-explorer-authoring-state__item-error{cursor:help;align-self:flex-end;align-items:center;margin:0 5px;display:flex}.graph-explorer-authoring-state__item-error-icon{background:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20style='fill:%20white'%20viewBox='0%200%20576%20512'%3e%3crect%20style='fill:%20white'%20width='160'%20height='340'%20x='207.9998'%20y='136'%20ry='0'%20/%3e%3cpath%20style='fill:%20red'%20d='M569.517%20440.013C587.975%20472.007%20564.806%20512%20527.94%20512H48.054c-36.937%200-59.999-40.055-41.577-71.987L246.423%2023.985c18.467-32.009%2064.72-31.951%2083.154%200l239.94%20416.028zM288%20354c-25.405%200-46%2020.595-46%2046s20.595%2046%2046%2046%2046-20.595%2046-46-20.595-46-46-46zm-43.673-165.346l7.418%20136c.347%206.364%205.609%2011.346%2011.982%2011.346h48.546c6.373%200%2011.635-4.982%2011.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884%200-12.356%205.78-11.981%2012.654z'/%3e%3c/svg%3e");width:17px;height:15px}.graph-explorer-authoring-state__state-label{margin-right:5px;font-weight:700}.graph-explorer-authoring-state__state-cancel{color:#3f87a6;cursor:pointer}.graph-explorer-authoring-state__state-cancel:hover{text-decoration:underline}.graph-explorer-authoring-state__state-indicator{position:absolute}.graph-explorer-authoring-state__state-indicator-container{position:relative}.graph-explorer-authoring-state__state-indicator-body{white-space:nowrap;background:#ffffffb3;border-radius:5px;align-items:center;display:flex;position:absolute;bottom:0}.graph-explorer-authoring-tools{margin:10px}.graph-explorer-authoring-tools__create-entity{white-space:normal;flex-wrap:wrap;justify-content:center;align-items:center;width:100%;display:flex}.graph-explorer-authoring-tools__type-label{color:#000;word-wrap:break-word;background:#ffd221;border:1px dashed #000;padding:0 .5em}.graph-explorer-class-tree{flex-direction:column;flex:auto;display:flex}.graph-explorer-class-tree__filter{flex-shrink:0;margin:10px 0}.graph-explorer-class-tree__filter-group{margin-left:10px;margin-right:10px}.graph-explorer-class-tree__only-creatable{margin-top:5px;display:block}.graph-explorer-class-tree__tree{border-top:1px solid var(--ge-border);padding:6px 8px;overflow:auto}.graph-explorer-class-tree__spinner{align-self:center;margin:auto}.graph-explorer-class-leaf{margin:1px 0}.graph-explorer-class-leaf__row{white-space:nowrap;-webkit-user-select:none;user-select:none;align-items:center;display:flex}.graph-explorer-class-leaf__row>*{flex-shrink:0}.graph-explorer-class-leaf__body{border-radius:var(--ge-radius-sm);transition:background var(--ge-transition), border-color var(--ge-transition);border:1px solid #0000;align-items:center;padding:4px 6px;font-size:14px;text-decoration:none;display:flex}.graph-explorer-class-leaf__body:hover{background:var(--ge-surface-3);cursor:pointer;border-color:#0000}.graph-explorer-class-leaf__body--selected{background-color:var(--ge-accent-soft);border-color:var(--ge-accent-soft-border)}.graph-explorer-class-leaf__body--selected:hover{background-color:var(--ge-accent-soft)}.graph-explorer-class-leaf__icon-container{height:18px}.graph-explorer-class-leaf__icon{height:100%;display:block}.graph-explorer-class-leaf__label{color:var(--ge-text);margin-left:7px}.graph-explorer-class-leaf__highlighted-term{font-weight:700}.graph-explorer-class-leaf__count{margin-left:5px}.graph-explorer-class-leaf__children{margin-left:20px}.graph-explorer-class-leaf__no-toggle{width:22px;height:22px;display:inline-block}.graph-explorer-class-leaf__toggle{border-radius:var(--ge-radius-sm);width:12px;height:12px;margin:5px;display:inline-block}.graph-explorer-class-leaf__toggle:hover:not(:empty){background:var(--ge-surface-3);cursor:pointer}.graph-explorer-class-leaf__toggle-icon{height:100%;display:block}.graph-explorer-class-leaf__create{margin-left:5px}.graph-explorer-class-leaf__create>button{cursor:move}.graph-explorer-connections-menu{flex-direction:column;height:100%;display:flex}.graph-explorer-connections-menu__sort-switch{display:none}.graph-explorer-connections-menu__sort-switch:checked+.graph-explorer-connections-menu__sort-switch-label{color:var(--ge-accent);opacity:1}.graph-explorer-connections-menu__sort-switch-label{cursor:pointer;opacity:.4;text-align:center;margin:0;display:block}.graph-explorer-connections-menu__sort-switch-label:hover{opacity:1}.graph-explorer-connections-menu__search-line-input{flex:100%}.graph-explorer-connections-menu_bread-crumbs{text-overflow:ellipsis;flex-grow:0;height:27px;min-height:27px;padding:10px 10px 0;overflow:hidden}.graph-explorer-connections-menu__title-label{background:var(--ge-surface);color:var(--ge-text);border-radius:var(--ge-radius-sm);padding-left:6px;padding-right:6px;font-weight:600;position:absolute;top:-11px;left:10px}.graph-explorer-connections-menu_search-line{flex:none;align-items:center;padding:10px;display:flex}.graph-explorer-connections-menu_search-line-sort-switches{flex:0 0 20px;margin-left:10px}.graph-explorer-connections-menu_links-list{border-top:1px solid var(--ge-border);flex-grow:1;margin:0;padding:5px;overflow:hidden auto}.ocm_links-list-empty{align-items:center;display:flex}.graph-explorer-connections-menu_links-list__empty{color:#cbcbcb;text-align:center;width:100%;font-size:x-large;position:relative}.graph-explorer-connections-menu__loading,.graph-explorer-connections-menu__error{color:#cbcbcb;justify-content:center;align-items:center;width:100%;height:100%;font-size:x-large;display:flex;position:relative}.graph-explorer-connections-menu__loading-objects{color:#cbcbcb;background-color:#f5f5f5;border:1px solid gray;flex-grow:1;justify-content:center;align-items:center;margin-bottom:5px;font-size:x-large;display:flex;position:relative;box-shadow:inset 0 0 23px -8px gray}.graph-explorer-connections-menu__move-to-filter{-webkit-user-select:none;user-select:none;cursor:pointer;padding:5px 10px;display:flex}.graph-explorer-connections-menu__move-to-filter:hover{background-color:#e6e6e6}.link-in-popup-menu{background:#f7f7f7;align-items:center;margin-bottom:4px;padding:0 5px 0 0;display:flex;overflow:hidden}.link-in-popup-menu__link-title{text-overflow:ellipsis;white-space:nowrap;flex-grow:1;margin:5px 0 5px 5px;overflow:hidden}.link-in-popup-menu__count{flex-shrink:0;margin-left:10px}.link-in-popup-menu__navigate-button{float:right;opacity:.5;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAGrSURBVHic7dYxSgNRGEXhGwOuRQyCi1AR3IHoUiwFW21cj5sRC3tFgrExzUBIMmPmP76cD145MxcODyYRyrTgm+dJDpO8F3xbHRdJPpK8JZkVb9l7yxiL32OUQt0YRim0KoZRCqyLYZQRbRrDKCOYZbsYy/Oa5Khgb/MmSZ6yfRBvyg4ZBcgoQEYBMgqQUYCMAmQUIKMAGQXIKEBGATIKkFGAjAJkFKChUY7Hn9w+owAZBcgoQEYBMgqQUYCMAjRJ8hijoBgFyChARgEyCpBRgIwCZBQgowANjXI6/uT2DYkyT3I5/uT2GQXIKEBGATIKkFGAsFEOdvViuEWSlyTfPZ6dJjn72zm6SvKZfjfkuWBv04wBYgwQY4AYA8QYIH1jzJPcFext2pAYtwV7m2YMEGOAGAPEGCDGADEGiDFAjAFiDBBjgBgDxBggxgAxBogxQIwBMiTGTcHephkDxBggxgAxBogxQIwBYgwQY4AYA8QYIMYAMQaIMUCMAWIMkJMkX+kX47pg7164jzcDZ9MoxhjRuijGKLAqijEKdaMYA2AZxRggD/HXVv/FDxh8HInEGLhOAAAAAElFTkSuQmCC);background-size:cover;width:16px;min-width:16px;height:16px;margin-left:10px}.link-in-popup-menu__navigate-button:hover{opacity:1}.link-in-popup-menu__filter-button{opacity:.4;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAuxJREFUeF7t3V1u4jAYhWFu+FkDIHHBGlgZILbBjtN8M/labEywYzs+js8rHYFUqGo/6twNXTHGWIVdLpduv993x+ORm3Fy53L3A8Nf8sX+gSuw4e7NCFJuBAEbQcBGELARBGxOkNPp9PZCbp4Nd2/2eDy67Xb79mIu7+TO5e775+/d7/dut9u9vYnLM7lrufP++eeIMs+8MDSi5F0QhkaUPJuEoREl7aIwNKKkWRIMjShxS4qhEWXasmBoRAlbVgyNKH6bBUMjyvhmxdCI4l4RDI0o5opiaET5PwgMrXUUKAytVRRIDK01FGgMrRWUKjC0paNUhaEtFaVKDG1pKFVjaEtBWQSGVjvKojC0WlEWiaHVhrJoDK0WlCYwNHSUpjA0VJQmMTQ0lKYxNBQUSIyu697mkXEwa16VRoHCcCHoPDMOZ827UihwvxkuCFlAxgGtBTU3ChyGFIkhGYe0FtxcKJAYUiSGZBzU2qRyo8BiSIggUi4UaAwJFURKjQKPISGDSKlQqsCQEEHsn+N2u3Xr9dr+3t6T98r36J/jVwOIJJ8r1T9M2vDeOqoFJOajP5wfXYGaHp4gIDlAfg9SYP8iyPBIEIAIAhZBwCIIWAQBiyBgKcQLSGjG4a1NiiAEwYkgYCGCuCKIf8bhrSWLIP4Zh7eWLIL4ZxzeWrKaBZmAYhzeWrKaBpEFZBzeWrKaB5F5ZhzeWrIIMswj4/DWkkWQl33JOLy1ZBHEsZIRZGQlIkjCpYgggfvU2NdCIojnvuXzGp8I8mW+hbx2LIIkXIqaAaklgoDVDIjrn5gciy0GxPl3AlFzXV6OxTYVZPTvBCLmurwci20KSDX/je011+XlWGyhIFViSK7Ly7HYQkCqxZBcl5djsfmCVI0huS4vx2LzAakeQ3JdXo7F9g1kERiS6/JyLLYxkMVg1NQnEGIUygVCjILZIMQo3CsIMQBSEGKAdDgcus1mQwyUzudzd71eiYHS8/kkBpu71eoHWjSksuGbaS0AAAAASUVORK5CYII=);background-size:20px 20px;width:20px;height:20px;margin-left:10px}.link-in-popup-menu__filter-button:hover{opacity:1}.link-in-popup-menu:hover{background-color:#e2e2e2}.link-in-popup-menu_direction{background:#dbdbdb59;align-items:center;min-height:30px;padding:5px 0 5px 10px;display:flex}.link-in-popup-menu_direction__in-direction{opacity:.5;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAbCAYAAAAOEM1uAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAZEQAAGREBkIelaAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAG2SURBVFiFzde9axRRFMbhJ3Hjx0YRgkWElGIRGyVgaaG9XQpBrNIETJHKjxBSJCA2NiIWdhYKgoqCIELq/AU2tiJpAiliDMHEWEyKZfdO5szHrr4wzcx77vnNnXPnnktcK9jBwYCuLcwNBeHGsIGovyltDweNbYOHg9Eo4D9Tq0bsGj40BXKoO5isEjiht4ifHuE/qVpJvO/O049PvIxN/MBMH8ZP6pzeGVxK+C4kfAsl8vTMYBnI1x1Bv3E54bmWSHCAx2KfvBbgKGbxJAfOIcS7HMjnKCqpWoBRtfE5B/IVRsoAtnAGd3GlQchd/NE7Y7dwCtPYiw72xuD216KFk/zN3Ii+SYOajhqHZUU9aK1GjS3M4xumFK+yMuPexLHEsy9YbChPJR3HW+na+yjbBvNU+zdzHbcxfoTnUw7cS8XNSS3AFx1B6zif8FzKgXsmVj6VAduyFrwzcCUHcL/L9yiaJAUYXRRjON1172zC9xX3ZS+ziTk8KAFYWWX7wRGcqJAnudVV1RTu1YhP6WL3jWjXO4HvzbLE9N8fmqKAv/SpNyvQdmorSmlHVvhX1TsJltFPPPwL/+nTC6wUIf8AAAAASUVORK5CYII=) 0 0/contain no-repeat;flex-shrink:0;width:22px;height:15px;margin:0 14px 0 0}.link-in-popup-menu_direction__out-direction{opacity:.5;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAbCAYAAAAOEM1uAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAZEQAAGREBkIelaAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAGCSURBVFiFzdi9ShxRFAfwn+uiaAoRVBQbbfMEFqIoFja+QCoLLQQr8R0sbdIJgTQiSgT1AcTKzkdIQhpTaOlX0GyK2WJ2c8d1Pt0/XBjOnTnnP+eerxnYxj0aJa9nfEOvlLirgFx8zaQhV8Ng2jfKiVT2amWxKAr1gOwElwXpH8NWXiXtMbKZV2EMHwP6F2P7dR1O8T2PeBW/8EMHp5TpwWGtJewF06JEuWmzu4ueqgnC55juw6ZsHE8B218F8qJsgkS1b0Grh74EbDdwioGqCYbQj6MEkhcYIlxm3opZrGEyh47eJqH22JvDOZbJ5sEJ4Rgqeh1nLTMr6Mv4bBpMZSV4hj9FMknA96wxeC3qCOvyxWAd88L17wobdHkWV0VwxP+e3ksgd6LiOrgtyvhn7DRlo3gM2K68kwziNqb7QTSC9eN3m9136cWvjVuf8FOHaSZPJ8mLfRw0r/8m3RQiuIQPBZEY67CfSCyOsttV0hG/CV3/0VQTTbxVIrW9rv6z8A+8NRQ5z9bcwQAAAABJRU5ErkJggg==) 0 0/contain no-repeat;flex-shrink:0;width:22px;height:15px;margin:0 8px 0 6px}.graph-explorer-connections-menu_links-list__loading{text-align:center;color:#cbcbcb;width:100%;font-size:x-large;position:relative}.graph-explorer-connections-menu_links-list__hr{margin-top:10px;margin-bottom:10px}.graph-explorer-connections-menu_objects-panel{flex-direction:column;flex-grow:1;padding:0 10px 10px;display:flex;position:relative}.graph-explorer-connections-menu_objects-panel__select-all{white-space:nowrap;margin-bottom:5px;display:flex}.graph-explorer-connections-menu_objects-panel__select-all input{margin-right:5px}.graph-explorer-connections-menu_objects-panel__select-all input:disabled{opacity:.3}.graph-explorer-connections-menu_objects-panel_bottom-panel{white-space:nowrap;justify-content:space-between;height:25px;display:flex}.graph-explorer-connections-menu_objects-panel_bottom-panel__count-label{float:left;align-items:center;max-width:60%;height:25px;padding:0 5px;font-size:larger;display:flex}.graph-explorer-connections-menu_objects-panel_bottom-panel__extra-elements{color:gray;cursor:help}.graph-explorer-btn.graph-explorer-connections-menu_objects-panel_bottom-panel__add-button{height:25px;padding-top:1px;padding-bottom:2px}.graph-explorer-connections-menu_objects-panel_objects-list{border:1px solid gray;flex-grow:1;height:0;margin-bottom:5px;padding:5px;overflow:hidden scroll}.graph-explorer-connections-menu__link{color:var(--ge-accent);cursor:pointer;text-decoration:none}.graph-explorer-connections-menu__link:hover{text-decoration:underline}.graph-explorer-dialog{background:var(--ge-surface);border:1px solid var(--ge-border);border-radius:var(--ge-radius-lg);box-shadow:var(--ge-shadow-lg);position:absolute}.graph-explorer-dialog__caption{background:var(--ge-surface);color:var(--ge-text);border-radius:var(--ge-radius-sm);padding-left:6px;padding-right:6px;font-weight:600;position:absolute;top:-11px;left:10px}.graph-explorer-dialog__close-button{cursor:pointer;opacity:.5;background:url("data:image/svg+xml,%3csvg%20aria-hidden='true'%20focusable='false'%20data-prefix='far'%20data-icon='times-circle'%20class='svg-inline--fa%20fa-times-circle%20fa-w-16'%20role='img'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20512%20512'%3e%3cpath%20fill='currentColor'%20d='M256%208C119%208%208%20119%208%20256s111%20248%20248%20248%20248-111%20248-248S393%208%20256%208zm0%20448c-110.5%200-200-89.5-200-200S145.5%2056%20256%2056s200%2089.5%20200%20200-89.5%20200-200%20200zm101.8-262.2L295.6%20256l62.2%2062.2c4.7%204.7%204.7%2012.3%200%2017l-22.6%2022.6c-4.7%204.7-12.3%204.7-17%200L256%20295.6l-62.2%2062.2c-4.7%204.7-12.3%204.7-17%200l-22.6-22.6c-4.7-4.7-4.7-12.3%200-17l62.2-62.2-62.2-62.2c-4.7-4.7-4.7-12.3%200-17l22.6-22.6c4.7-4.7%2012.3-4.7%2017%200l62.2%2062.2%2062.2-62.2c4.7-4.7%2012.3-4.7%2017%200l22.6%2022.6c4.7%204.7%204.7%2012.3%200%2017z'%3e%3c/path%3e%3c/svg%3e") 0 0/contain;border:0;outline:none;width:20px;height:20px;padding:0;transition:all .3s;display:block;position:absolute;top:-22px;right:-22px}.graph-explorer-dialog__close-button:hover{opacity:1}.graph-explorer-dialog__bottom-right-handle{cursor:nwse-resize;border-top:0 solid #0000;border-bottom:10px solid #00000061;border-left:10px solid #0000;border-right:0 solid #0000;width:0;height:0;position:absolute;bottom:0;right:0}.graph-explorer-dialog__bottom-right-handle:before{content:"";border-top:0 solid #0000;border-bottom:5px solid #00000061;border-left:5px solid #0000;border-right:0 solid #0000;width:0;height:0;position:absolute;bottom:-10px;right:0}.graph-explorer-dialog__bottom-right-handle:hover{border-color:#0000 #0000 #00000080}.graph-explorer-dialog__bottom-handle,.graph-explorer-dialog__right-handle{opacity:0;background-color:#000;position:absolute}.graph-explorer-dialog__bottom-handle:hover,.graph-explorer-dialog__right-handle:hover{opacity:.1}.graph-explorer-dialog__bottom-handle{cursor:ns-resize;width:100%;height:5px;bottom:0}.graph-explorer-dialog__right-handle{cursor:ew-resize;width:5px;height:100%;top:0;right:0}.graph-explorer-edit-form{flex-direction:column;height:100%;display:flex}.graph-explorer-edit-form__body{flex-direction:column;flex:100%;padding:10px;display:flex;position:relative;overflow:auto}.graph-explorer-edit-form__controls{text-align:right;border-top:1px solid #ccc;flex:none;padding:10px}.graph-explorer-edit-form__apply-button{margin-right:5px}.graph-explorer-edit-form__form-row{margin-bottom:10px;display:block}.graph-explorer-edit-form__element-selector{flex-direction:column;flex-grow:1;display:flex}.graph-explorer-edit-form__search{flex-shrink:0;position:relative}.graph-explorer-edit-form__search-icon{opacity:.6;margin-top:-7px;position:absolute;top:50%;left:10px}.graph-explorer-edit-form__search-input{padding-left:33px}.graph-explorer-edit-form__existing-elements-list{flex:1 1 0;margin-top:7px;padding-right:10px;overflow-y:scroll}.graph-explorer-edit-form__separator{text-align:center;margin:7px 0;overflow:hidden}.graph-explorer-edit-form__separator-text{color:#555;font-size:13px;display:inline-block;position:relative}.graph-explorer-edit-form__separator-text:before,.graph-explorer-edit-form__separator-text:after{content:"";border-top:1px solid;width:500px;margin:0 10px;position:absolute;top:50%}.graph-explorer-edit-form__separator-text:before{left:100%}.graph-explorer-edit-form__separator-text:after{right:100%}.graph-explorer-edit-form__progress{position:absolute;bottom:0;left:0;right:0}.graph-explorer-edit-form__control-row{padding-bottom:18px;position:relative}.graph-explorer-edit-form__control-error{color:red;position:absolute;bottom:0;left:0}.graph-explorer-halo{pointer-events:none;border:1.5px dashed var(--ge-accent);border-radius:var(--ge-radius);position:absolute;box-shadow:0 0 0 4px #4f46e51f}.graph-explorer-halo__navigate{cursor:pointer;pointer-events:auto;opacity:.5;background-color:#0000;background-position:50%;background-repeat:no-repeat;background-size:contain;border:0;outline:none;width:20px;height:20px;padding:0;transition:opacity .3s;position:absolute}.graph-explorer-halo__navigate:hover{opacity:1}.graph-explorer-halo__navigate[disabled]{cursor:not-allowed;opacity:.2}.graph-explorer-halo__navigate{margin-top:-10px;top:50%;right:-22px}.graph-explorer-halo__navigate--open{background-image:url("data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20xmlns:svg='http://www.w3.org/2000/svg'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20110%20110'%20version='1.1'%20width='500'%20height='500'%3e%3cpath%20d='M%2055.105965,54.648825%20M%2082.182422,8.0521107%20A%2053.892377,53.892377%200%201%200%2028.029508,101.24554%2053.892377,53.892377%200%201%200%2082.182422,8.0521107%20Z%20M%2055.105965,54.648825%20M%2076.692536,17.499824%20A%2042.965432,42.965432%200%200%201%2033.519393,91.797827%2042.965432,42.965432%200%200%201%2076.692536,17.499824%20Z'%20style='stroke-width:1.06812763;fill:%23000000'%20/%3e%3cpath%20style='fill:%23000000;stroke:none;stroke-width:0.25893259px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1'%20d='M%2025.29481,56.552597%20C%2078.882863,29.834905%2079.035536,29.834905%2079.035536,29.834905%20L%2052.165174,84.18632%2049.56974,59.3007%20Z'%20/%3e%3c/svg%3e")}.graph-explorer-halo__navigate--closed{background-image:url("data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20xmlns:svg='http://www.w3.org/2000/svg'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20110%20110'%20version='1.1'%20width='500'%20height='500'%3e%3cpath%20d='M%2055.105965,54.648825%20M%2082.182422,8.0521107%20A%2053.892377,53.892377%200%201%200%2028.029508,101.24554%2053.892377,53.892377%200%201%200%2082.182422,8.0521107%20Z%20M%2055.105965,54.648825%20M%2076.692536,17.499824%20A%2042.965432,42.965432%200%200%201%2033.519393,91.797827%2042.965432,42.965432%200%200%201%2076.692536,17.499824%20Z'%20style='stroke-width:1.06812763'%20/%3e%3cpath%20d='M%2070.749364,31.224635%2078.426933,38.910146%2063.054265,54.266973%2078.41107,69.639662%2070.725571,77.317242%2055.368766,61.944553%2039.996098,77.301379%2032.318529,69.615869%2047.691197,54.259042%2032.334392,38.886353%20l%207.685499,-7.67758%2015.356805,15.372689%20z'%20style='stroke-width:1.17913187'%20/%3e%3c/svg%3e")}.graph-explorer-halo__folow{cursor:pointer;pointer-events:auto;opacity:.5;background-color:#0000;background-position:50%;background-repeat:no-repeat;background-size:contain;border:0;outline:none;width:20px;height:20px;padding:0;transition:opacity .3s;position:absolute}.graph-explorer-halo__folow:hover{opacity:1}.graph-explorer-halo__folow[disabled]{cursor:not-allowed;opacity:.2}.graph-explorer-halo__folow{background-image:url("data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='512px'%20height='512px'%20viewBox='0%200%20512%20512'%20enable-background='new%200%200%20512%20512'%20xml:space='preserve'%3e%3cpath%20fill='%23010101'%20d='M459.654,233.373l-90.531,90.5c-49.969,50-131.031,50-181,0c-7.875-7.844-14.031-16.688-19.438-25.813%20l42.063-42.063c2-2.016,4.469-3.172,6.828-4.531c2.906,9.938,7.984,19.344,15.797,27.156c24.953,24.969,65.563,24.938,90.5,0%20l90.5-90.5c24.969-24.969,24.969-65.563,0-90.516c-24.938-24.953-65.531-24.953-90.5,0l-32.188,32.219%20c-26.109-10.172-54.25-12.906-81.641-8.891l68.578-68.578c50-49.984,131.031-49.984,181.031,0%20C509.623,102.342,509.623,183.389,459.654,233.373z%20M220.326,382.186l-32.203,32.219c-24.953,24.938-65.563,24.938-90.516,0%20c-24.953-24.969-24.953-65.563,0-90.531l90.516-90.5c24.969-24.969,65.547-24.969,90.5,0c7.797,7.797,12.875,17.203,15.813,27.125%20c2.375-1.375,4.813-2.5,6.813-4.5l42.063-42.047c-5.375-9.156-11.563-17.969-19.438-25.828c-49.969-49.984-131.031-49.984-181.016,0%20l-90.5,90.5c-49.984,50-49.984,131.031,0,181.031c49.984,49.969,131.031,49.969,181.016,0l68.594-68.594%20C274.561,395.092,246.42,392.342,220.326,382.186z'/%3e%3c/svg%3e");margin-top:-10px;top:50%;left:-22px}.graph-explorer-halo__remove{cursor:pointer;pointer-events:auto;opacity:.5;background-color:#0000;background-position:50%;background-repeat:no-repeat;background-size:contain;border:0;outline:none;width:20px;height:20px;padding:0;transition:opacity .3s;position:absolute}.graph-explorer-halo__remove:hover{opacity:1}.graph-explorer-halo__remove[disabled]{cursor:not-allowed;opacity:.2}.graph-explorer-halo__remove{background-image:url("data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20xmlns:svg='http://www.w3.org/2000/svg'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20110%20110'%20version='1.1'%20width='500'%20height='500'%3e%3cpath%20d='M%2082.182422,8.0521107%20C%2056.44775,-6.9018137%2023.463185,1.8377258%208.5092706,27.57238%20-6.4446434,53.307034%202.2948357,86.291616%2028.029508,101.24554%2053.76418,116.19946%2086.748746,107.45993%20101.70266,81.725271%20116.65657,55.990616%20107.91709,23.006035%2082.182422,8.0521107%20Z%20M%2071.75602,28.578553%2082.28685,38.846984%2065.453479,56.373296%2083.064738,73.314301%2072.796937,83.844485%2055.169736,66.657039%2039.010998,83.228711%2028.480167,72.96028%2044.639378,56.389069%2028.415211,40.568631%2038.683013,30.038446%2054.938893,45.85871%20Z'%20style='fill:%23000000;stroke-width:1.06812763'%20/%3e%3c/svg%3e");top:-22px;right:-22px}.graph-explorer-halo__expand{cursor:pointer;pointer-events:auto;opacity:.5;background-color:#0000;background-position:50%;background-repeat:no-repeat;background-size:contain;border:0;outline:none;width:20px;height:20px;padding:0;transition:opacity .3s;position:absolute}.graph-explorer-halo__expand:hover{opacity:1}.graph-explorer-halo__expand[disabled]{cursor:not-allowed;opacity:.2}.graph-explorer-halo__expand{margin-left:-10px;bottom:-22px;left:50%}.graph-explorer-halo__expand--open{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIMDxQ3d8lonQAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAAEOSURBVEjH7dXNK0RhFAbwXxRyZyIlKwtlMbvZkUIW9rOThezEniIf/4E/UYgkGwskaTI2V51uF/NxZ6LuU+/ivec5z/Pe9+McSpQoUeK/YTgz38AEbgv2WcUkHvKCS2ilY7tA0/VU8w2NPMICHoP5TgGmy0HvBfXviNN4D+TdHkzn8BG05n9LmMJdSNjvwrSOZtjiWruJFdwE86MOTGshr4m1TlddxWsQOW5zwTFnsdtzquAyCJ39wJ3Fc+Cu9HozR3ERBE9zODOZF7FV1FtM8BSET0JsKC0MX7FG0VVuHFeZbR/Bffi22a8SO5Y58/inh/2u70lahVph7A2quVRxnZoeDLqzJTgvG3yJP4dPo59Rw97b1k8AAAAASUVORK5CYII=)}.graph-explorer-halo__expand--closed{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIMDx0nu7zDsAAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAAD+SURBVEjH7ZQxa8JQFIU/HFSqXQri1KHQwc2txaLi4N5NHMRNdFeoqPkH/YlFRRBxcVAREakuEQ7RiDWJWHgHAuHl3Pu9e/PuAyOjO1QM+L419BEYAjugdctKlzb08DSChkaBvgCn8v4VFPQBGAjIAsLARNbKQbR3LoCufAs5Kv/0CxoBfiRx74QnCczEU/EKjTv+qXXG+wwsxJvzMjIrSdS5cKMa835NpSNJ0P5DbEritkDh0sAnYCzBzSu6lbahO2Btb+asEsBGoHUP5+MF+JVcr27GN8fJrPkwEVnJt7Q7caSMmKo+3gFFabnrjJeAjwBuvbxbtUZGRkb/R3tcflA+OTpkkAAAAABJRU5ErkJggg==)}.graph-explorer-halo__add-to-filter{cursor:pointer;pointer-events:auto;opacity:.5;background-color:#0000;background-position:50%;background-repeat:no-repeat;background-size:contain;border:0;outline:none;width:20px;height:20px;padding:0;transition:opacity .3s;position:absolute}.graph-explorer-halo__add-to-filter:hover{opacity:1}.graph-explorer-halo__add-to-filter[disabled]{cursor:not-allowed;opacity:.2}.graph-explorer-halo__add-to-filter{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAuxJREFUeF7t3V1u4jAYhWFu+FkDIHHBGlgZILbBjtN8M/labEywYzs+js8rHYFUqGo/6twNXTHGWIVdLpduv993x+ORm3Fy53L3A8Nf8sX+gSuw4e7NCFJuBAEbQcBGELARBGxOkNPp9PZCbp4Nd2/2eDy67Xb79mIu7+TO5e775+/d7/dut9u9vYnLM7lrufP++eeIMs+8MDSi5F0QhkaUPJuEoREl7aIwNKKkWRIMjShxS4qhEWXasmBoRAlbVgyNKH6bBUMjyvhmxdCI4l4RDI0o5opiaET5PwgMrXUUKAytVRRIDK01FGgMrRWUKjC0paNUhaEtFaVKDG1pKFVjaEtBWQSGVjvKojC0WlEWiaHVhrJoDK0WlCYwNHSUpjA0VJQmMTQ0lKYxNBQUSIyu697mkXEwa16VRoHCcCHoPDMOZ827UihwvxkuCFlAxgGtBTU3ChyGFIkhGYe0FtxcKJAYUiSGZBzU2qRyo8BiSIggUi4UaAwJFURKjQKPISGDSKlQqsCQEEHsn+N2u3Xr9dr+3t6T98r36J/jVwOIJJ8r1T9M2vDeOqoFJOajP5wfXYGaHp4gIDlAfg9SYP8iyPBIEIAIAhZBwCIIWAQBiyBgKcQLSGjG4a1NiiAEwYkgYCGCuCKIf8bhrSWLIP4Zh7eWLIL4ZxzeWrKaBZmAYhzeWrKaBpEFZBzeWrKaB5F5ZhzeWrIIMswj4/DWkkWQl33JOLy1ZBHEsZIRZGQlIkjCpYgggfvU2NdCIojnvuXzGp8I8mW+hbx2LIIkXIqaAaklgoDVDIjrn5gciy0GxPl3AlFzXV6OxTYVZPTvBCLmurwci20KSDX/je011+XlWGyhIFViSK7Ly7HYQkCqxZBcl5djsfmCVI0huS4vx2LzAakeQ3JdXo7F9g1kERiS6/JyLLYxkMVg1NQnEGIUygVCjILZIMQo3CsIMQBSEGKAdDgcus1mQwyUzudzd71eiYHS8/kkBpu71eoHWjSksuGbaS0AAAAASUVORK5CYII=);bottom:-22px;right:-22px}.graph-explorer-halo__revert{cursor:pointer;pointer-events:auto;opacity:.5;background-color:#0000;background-position:50%;background-repeat:no-repeat;background-size:contain;border:0;outline:none;width:20px;height:20px;padding:0;transition:opacity .3s;position:absolute}.graph-explorer-halo__revert:hover{opacity:1}.graph-explorer-halo__revert[disabled]{cursor:not-allowed;opacity:.2}.graph-explorer-halo__revert{background-image:url("data:image/svg+xml,%3csvg%20aria-hidden='true'%20data-prefix='fas'%20data-icon='undo'%20class='svg-inline--fa%20fa-undo%20fa-w-16'%20role='img'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20512%20512'%3e%3cpath%20fill='currentColor'%20d='M212.333%20224.333H12c-6.627%200-12-5.373-12-12V12C0%205.373%205.373%200%2012%200h48c6.627%200%2012%205.373%2012%2012v78.112C117.773%2039.279%20184.26%207.47%20258.175%208.007c136.906.994%20246.448%20111.623%20246.157%20248.532C504.041%20393.258%20393.12%20504%20256.333%20504c-64.089%200-122.496-24.313-166.51-64.215-5.099-4.622-5.334-12.554-.467-17.42l33.967-33.967c4.474-4.474%2011.662-4.717%2016.401-.525C170.76%20415.336%20211.58%20432%20256.333%20432c97.268%200%20176-78.716%20176-176%200-97.267-78.716-176-176-176-58.496%200-110.28%2028.476-142.274%2072.333h98.274c6.627%200%2012%205.373%2012%2012v48c0%206.627-5.373%2012-12%2012z'%3e%3c/path%3e%3c/svg%3e");margin-left:-10px;top:-22px;left:50%}.graph-explorer-halo__establish-connection{cursor:pointer;pointer-events:auto;opacity:.5;background-color:#0000;background-position:50%;background-repeat:no-repeat;background-size:contain;border:0;outline:none;width:20px;height:20px;padding:0;transition:opacity .3s;position:absolute}.graph-explorer-halo__establish-connection:hover{opacity:1}.graph-explorer-halo__establish-connection[disabled]{cursor:not-allowed;opacity:.2}.graph-explorer-halo__establish-connection{background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20384%20512'%3e%3cpath%20d='M256%20144V32c0-17.673%2014.327-32%2032-32s32%2014.327%2032%2032v112h-64zm112%2016H16c-8.837%200-16%207.163-16%2016v32c0%208.837%207.163%2016%2016%2016h16v32c0%2077.406%2054.969%20141.971%20128%20156.796V512h64v-99.204c73.031-14.825%20128-79.39%20128-156.796v-32h16c8.837%200%2016-7.163%2016-16v-32c0-8.837-7.163-16-16-16zm-240-16V32c0-17.673-14.327-32-32-32S64%2014.327%2064%2032v112h64z'/%3e%3c/svg%3e");bottom:-22px;left:-22px}.graph-explorer-halo__establish-connection-spinner{width:20px;height:20px;position:absolute;bottom:-22px;left:-22px}.graph-explorer-halo-link__button{cursor:pointer;opacity:.8;background:0 0;border:0;outline:none;padding:0;transition:opacity .3s;position:absolute}.graph-explorer-halo-link__button:hover{opacity:1}.graph-explorer-halo-link__button[disabled]{cursor:not-allowed;opacity:.5}.graph-explorer-halo-link__edit{background-color:#ccc;background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20576%20512'%3e%3cpath%20d='M402.6%2083.2l90.2%2090.2c3.8%203.8%203.8%2010%200%2013.8L274.4%20405.6l-92.8%2010.3c-12.4%201.4-22.9-9.1-21.5-21.5l10.3-92.8L388.8%2083.2c3.8-3.8%2010-3.8%2013.8%200zm162-22.9l-48.8-48.8c-15.2-15.2-39.9-15.2-55.2%200l-35.4%2035.4c-3.8%203.8-3.8%2010%200%2013.8l90.2%2090.2c3.8%203.8%2010%203.8%2013.8%200l35.4-35.4c15.2-15.3%2015.2-40%200-55.2zM384%20346.2V448H64V128h229.8c3.2%200%206.2-1.3%208.5-3.5l40-40c7.6-7.6%202.2-20.5-8.5-20.5H48C21.5%2064%200%2085.5%200%20112v352c0%2026.5%2021.5%2048%2048%2048h352c26.5%200%2048-21.5%2048-48V306.2c0-10.7-12.9-16-20.5-8.5l-40%2040c-2.2%202.3-3.5%205.3-3.5%208.5z'/%3e%3c/svg%3e");background-position:50%;background-repeat:no-repeat;background-size:60%;border-radius:10px;width:20px;height:20px}.graph-explorer-halo-link__delete{background-color:#ccc;background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20448%20512'%3e%3cpath%20d='M0%2084V56c0-13.3%2010.7-24%2024-24h112l9.4-18.7c4-8.2%2012.3-13.3%2021.4-13.3h114.3c9.1%200%2017.4%205.1%2021.5%2013.3L312%2032h112c13.3%200%2024%2010.7%2024%2024v28c0%206.6-5.4%2012-12%2012H12C5.4%2096%200%2090.6%200%2084zm416%2056v324c0%2026.5-21.5%2048-48%2048H80c-26.5%200-48-21.5-48-48V140c0-6.6%205.4-12%2012-12h360c6.6%200%2012%205.4%2012%2012zm-272%2068c0-8.8-7.2-16-16-16s-16%207.2-16%2016v224c0%208.8%207.2%2016%2016%2016s16-7.2%2016-16V208zm96%200c0-8.8-7.2-16-16-16s-16%207.2-16%2016v224c0%208.8%207.2%2016%2016%2016s16-7.2%2016-16V208zm96%200c0-8.8-7.2-16-16-16s-16%207.2-16%2016v224c0%208.8%207.2%2016%2016%2016s16-7.2%2016-16V208z'/%3e%3c/svg%3e");background-position:50%;background-repeat:no-repeat;background-size:60%;border-radius:10px;width:20px;height:20px}.graph-explorer-halo-link__spinner{position:absolute}.graph-explorer-halo-link__edit-label-button{cursor:pointer;opacity:.5;background:url("data:image/svg+xml,%3csvg%20aria-hidden='true'%20data-prefix='fas'%20data-icon='pen-square'%20class='svg-inline--fa%20fa-pen-square%20fa-w-14'%20role='img'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20448%20512'%3e%3cpath%20fill='currentColor'%20d='M400%20480H48c-26.5%200-48-21.5-48-48V80c0-26.5%2021.5-48%2048-48h352c26.5%200%2048%2021.5%2048%2048v352c0%2026.5-21.5%2048-48%2048zM238.1%20177.9L102.4%20313.6l-6.3%2057.1c-.8%207.6%205.6%2014.1%2013.3%2013.3l57.1-6.3L302.2%20242c2.3-2.3%202.3-6.1%200-8.5L246.7%20178c-2.5-2.4-6.3-2.4-8.6-.1zM345%20165.1L314.9%20135c-9.4-9.4-24.6-9.4-33.9%200l-23.1%2023.1c-2.3%202.3-2.3%206.1%200%208.5l55.5%2055.5c2.3%202.3%206.1%202.3%208.5%200L345%20199c9.3-9.3%209.3-24.5%200-33.9z'%3e%3c/path%3e%3c/svg%3e") 0 0/cover no-repeat;border:0;outline:none;margin-left:5px;padding:0;transition:opacity .3s;position:absolute}.graph-explorer-halo-link__edit-label-button:hover{opacity:1}.graph-explorer-instances-search{flex-direction:column;flex:auto;display:flex}.graph-explorer-instances-search__criteria{flex-shrink:0;margin:10px 0}.graph-explorer-instances-search__criterions{margin-bottom:10px;padding-left:15px}.graph-explorer-instances-search__criterions:empty{margin-bottom:0}.graph-explorer-instances-search__criterion{width:100%;display:block;position:relative}.graph-explorer-instances-search__criterion-class,.graph-explorer-instances-search__criterion-element,.graph-explorer-instances-search__criterion-link-type{border-radius:var(--ge-radius-pill);word-wrap:break-word;border:1px solid #0000;padding:2px 10px;font-size:12px;font-weight:500;display:inline-block}.graph-explorer-instances-search__criterion-class{color:#92400e;background:#fef3c7;border-color:#fcd34d}.graph-explorer-instances-search__criterion-element{color:#9a3412;background:#ffedd5;border-color:#fdba74}.graph-explorer-instances-search__criterion-link-type{color:#166534;background:#dcfce7;border-color:#86efac}.graph-explorer-instances-search__link-direction{opacity:.5;height:1em}.graph-explorer-instances-search__criterion-remove{float:right;margin:0 10px 4px 4px}.graph-explorer-instances-search__text-criteria{margin:0 10px}.graph-explorer-instances-search__rest{border-top:1px solid var(--ge-border);padding:10px 10px 0}.graph-explorer-instances-search__results{outline:none;margin:0 10px;padding-top:10px;padding-left:0}.graph-explorer-instances-search[data-state=finished] .graph-explorer-instances-search__results:empty:before{content:"No items correspond to the specified criteria.";font-style:italic}.graph-explorer-instances-search__rest-end{margin:5px 0 10px}.graph-explorer-instances-search__load-more{width:100%}.link-types-toolbox{flex-direction:column;flex:auto;margin-bottom:0;display:flex}.link-types-toolbox__heading{padding:10px}.link-types-toolbox__searching-box{align-items:center;display:flex}.link-types-toolbox__clearSearch{-webkit-appearance:none;cursor:pointer;background:0 0;border:0;margin-left:-25px;padding:0}.link-types-toolbox__switch-all{margin-top:5px}.link-types-toolbox__rest{border-top:1px solid #ddd;flex-direction:column;flex:auto;display:flex}.link-types-toolbox .panel-heading{flex-shrink:0}.link-types-toolbox ul{margin-bottom:0}.link-types-toolbox .links-heading{margin-left:.4em}.link-types-toolbox .links-heading span{word-wrap:break-word;background:#ff835c;border:1px dashed #000;padding:0 .5em;line-height:1.3}.link-types-toolbox__heading .link-types-toolbox-controls{padding:5px 15px;font-size:14px;font-style:italic}.link-types-toolbox__heading .link-types-toolbox-controls>span{padding-left:.3em}.graph-explorer-list-group .linkInToolBox{word-break:break-word;padding:0 0 0 5px}.linkInToolBox>div{display:inline}.linkInToolBox__new-tag{white-space:normal;word-wrap:normal;background:orange;border-radius:2px;margin-left:.5em;padding:0 5px}.linkInToolBox .graph-explorer-badge{white-space:normal;word-wrap:normal;margin-left:.5em;display:none}.linkInToolBox .link-title{color:#000;font-size:16px;display:inline}.linkInToolBox .graph-explorer-btn-group{float:left;margin-top:2px;margin-bottom:2px;margin-right:6px}.linkInToolBox .graph-explorer-btn.graph-explorer-btn-default{border-color:#c3c3c3}.linkInToolBox__filter-button{float:right;cursor:pointer;opacity:.4;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAuxJREFUeF7t3V1u4jAYhWFu+FkDIHHBGlgZILbBjtN8M/labEywYzs+js8rHYFUqGo/6twNXTHGWIVdLpduv993x+ORm3Fy53L3A8Nf8sX+gSuw4e7NCFJuBAEbQcBGELARBGxOkNPp9PZCbp4Nd2/2eDy67Xb79mIu7+TO5e775+/d7/dut9u9vYnLM7lrufP++eeIMs+8MDSi5F0QhkaUPJuEoREl7aIwNKKkWRIMjShxS4qhEWXasmBoRAlbVgyNKH6bBUMjyvhmxdCI4l4RDI0o5opiaET5PwgMrXUUKAytVRRIDK01FGgMrRWUKjC0paNUhaEtFaVKDG1pKFVjaEtBWQSGVjvKojC0WlEWiaHVhrJoDK0WlCYwNHSUpjA0VJQmMTQ0lKYxNBQUSIyu697mkXEwa16VRoHCcCHoPDMOZ827UihwvxkuCFlAxgGtBTU3ChyGFIkhGYe0FtxcKJAYUiSGZBzU2qRyo8BiSIggUi4UaAwJFURKjQKPISGDSKlQqsCQEEHsn+N2u3Xr9dr+3t6T98r36J/jVwOIJJ8r1T9M2vDeOqoFJOajP5wfXYGaHp4gIDlAfg9SYP8iyPBIEIAIAhZBwCIIWAQBiyBgKcQLSGjG4a1NiiAEwYkgYCGCuCKIf8bhrSWLIP4Zh7eWLIL4ZxzeWrKaBZmAYhzeWrKaBpEFZBzeWrKaB5F5ZhzeWrIIMswj4/DWkkWQl33JOLy1ZBHEsZIRZGQlIkjCpYgggfvU2NdCIojnvuXzGp8I8mW+hbx2LIIkXIqaAaklgoDVDIjrn5gciy0GxPl3AlFzXV6OxTYVZPTvBCLmurwci20KSDX/je011+XlWGyhIFViSK7Ly7HYQkCqxZBcl5djsfmCVI0huS4vx2LzAakeQ3JdXo7F9g1kERiS6/JyLLYxkMVg1NQnEGIUygVCjILZIMQo3CsIMQBSEGKAdDgcus1mQwyUzudzd71eiYHS8/kkBpu71eoHWjSksuGbaS0AAAAASUVORK5CYII=);background-size:20px 20px;width:20px;height:20px;margin:3px;transition:opacity .2s;display:none}.linkInToolBox:hover .linkInToolBox__filter-button{opacity:1;transition:opacity .2s}.connected-links .linkInToolBox .graph-explorer-badge,.connected-links .linkInToolBox__filter-button{display:inline}.graph-explorer-list-element-view{background:var(--ge-text-subtle);border-radius:var(--ge-radius-sm);opacity:1;cursor:move;-webkit-user-select:none;user-select:none;box-shadow:var(--ge-shadow-xs);transition:box-shadow var(--ge-transition), transform var(--ge-transition);margin:0 0 4px;padding:2px 2px 2px 6px;display:block;position:relative}.graph-explorer-list-element-view:hover{box-shadow:var(--ge-shadow-sm)}.graph-explorer-list-element-view--disabled{opacity:.4;cursor:default;box-shadow:none}.graph-explorer-list-element-view__label{background:var(--ge-surface);border-radius:0 var(--ge-radius-sm) var(--ge-radius-sm) 0;font-family:var(--ge-font-mono);color:var(--ge-text);overflow-wrap:break-word;min-height:1.4em;padding:3px 8px;font-size:13px}.graph-explorer-text-highlight{color:var(--ge-accent-hover);font-weight:700}.graph-explorer-navigator{display:block;position:absolute;bottom:25px;right:25px;overflow:hidden}.graph-explorer .graph-explorer-navigator{box-sizing:content-box}.graph-explorer-navigator{background:var(--ge-surface);border:1px solid var(--ge-border);border-radius:var(--ge-radius);box-shadow:var(--ge-shadow-md);transition:width .3s,height .3s}.graph-explorer-navigator--collapsed{width:26px;height:26px}.graph-explorer-navigator>canvas{transition:opacity .3s}.graph-explorer-navigator--expanded>canvas{opacity:1}.graph-explorer-navigator--collapsed>canvas{opacity:0}.graph-explorer-navigator__toggle{opacity:.5;background:0 0;border:none;outline:none;padding:4px;transition:opacity .3s;position:absolute}.graph-explorer-navigator__toggle:hover{opacity:1}.graph-explorer-navigator--expanded .graph-explorer-navigator__toggle{top:5px;left:5px}.graph-explorer-navigator--collapsed .graph-explorer-navigator__toggle{top:0;left:0}.graph-explorer-navigator__toggle-icon{background-repeat:no-repeat;background-size:18px 18px;width:18px;height:18px}.graph-explorer-navigator--expanded .graph-explorer-navigator__toggle-icon{background-image:url("data:image/svg+xml,%3csvg%20aria-hidden='true'%20focusable='false'%20data-prefix='far'%20data-icon='minus-square'%20class='svg-inline--fa%20fa-minus-square%20fa-w-14'%20role='img'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20448%20512'%3e%3cpath%20fill='currentColor'%20d='M108%20284c-6.6%200-12-5.4-12-12v-32c0-6.6%205.4-12%2012-12h232c6.6%200%2012%205.4%2012%2012v32c0%206.6-5.4%2012-12%2012H108zM448%2080v352c0%2026.5-21.5%2048-48%2048H48c-26.5%200-48-21.5-48-48V80c0-26.5%2021.5-48%2048-48h352c26.5%200%2048%2021.5%2048%2048zm-48%20346V86c0-3.3-2.7-6-6-6H54c-3.3%200-6%202.7-6%206v340c0%203.3%202.7%206%206%206h340c3.3%200%206-2.7%206-6z'%3e%3c/path%3e%3c/svg%3e")}.graph-explorer-navigator--collapsed .graph-explorer-navigator__toggle-icon{background-image:url("data:image/svg+xml,%3csvg%20aria-hidden='true'%20focusable='false'%20data-prefix='far'%20data-icon='plus-square'%20class='svg-inline--fa%20fa-plus-square%20fa-w-14'%20role='img'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20448%20512'%3e%3cpath%20fill='currentColor'%20d='M352%20240v32c0%206.6-5.4%2012-12%2012h-88v88c0%206.6-5.4%2012-12%2012h-32c-6.6%200-12-5.4-12-12v-88h-88c-6.6%200-12-5.4-12-12v-32c0-6.6%205.4-12%2012-12h88v-88c0-6.6%205.4-12%2012-12h32c6.6%200%2012%205.4%2012%2012v88h88c6.6%200%2012%205.4%2012%2012zm96-160v352c0%2026.5-21.5%2048-48%2048H48c-26.5%200-48-21.5-48-48V80c0-26.5%2021.5-48%2048-48h352c26.5%200%2048%2021.5%2048%2048zm-48%20346V86c0-3.3-2.7-6-6-6H54c-3.3%200-6%202.7-6%206v340c0%203.3%202.7%206%206%206h340c3.3%200%206-2.7%206-6z'%3e%3c/path%3e%3c/svg%3e")}@keyframes graph-explorer-progress-bar-stripes{0%{background-position:40px 0}to{background-position:0 0}}.graph-explorer-progress-bar{background-color:var(--ge-surface-3);background-repeat:repeat-x;flex-shrink:0;width:100%;overflow:hidden}.graph-explorer-progress-bar__bar{float:left;color:#fff;text-align:center;background-color:var(--ge-accent);background-image:linear-gradient(45deg,#ffffff26 25%,#0000 25% 50%,#ffffff26 50% 75%,#0000 75%,#0000);background-repeat:repeat-x;background-size:40px 40px;height:100%;font-size:12px;line-height:20px;transition:width .6s;animation:2s linear infinite graph-explorer-progress-bar-stripes}.graph-explorer-progress-bar--error .graph-explorer-progress-bar__bar{background-color:var(--ge-danger)}.graph-explorer-progress-bar--loading,.graph-explorer-progress-bar--error{transition:height .3s .3s}.graph-explorer-progress-bar--completed{transition:height .2s}.graph-explorer-search-results{outline:none;margin:0;padding:0}.graph-explorer-accordion{flex:auto;width:100%;height:100%;display:flex}.graph-explorer-accordion--scrollable{overflow:auto}.graph-explorer-accordion--vertical{flex-direction:column}.graph-explorer-accordion--vertical:not(.graph-explorer-accordion--resizing)>.graph-explorer-accordion-item{transition:height .3s ease-in-out}.graph-explorer-accordion-item{flex:auto;display:flex;position:relative}.graph-explorer-accordion-item--resizing>.graph-explorer-accordion-item__handle,.graph-explorer-accordion-item__handle:hover{background:#0000001a}.graph-explorer-accordion-item--vertical{border-top:1px solid var(--ge-border)}.graph-explorer-accordion-item--vertical:first-child{border-top-width:0}.graph-explorer-accordion-item--horizontal{border-right:1px solid var(--ge-border)}.graph-explorer-accordion-item--horizontal:last-child{border-right-width:0}.graph-explorer-accordion-item__handle{z-index:2;position:absolute}.graph-explorer-accordion-item__handle-vertical{cursor:ns-resize;width:100%;height:5px;bottom:-2.5px;left:0}.graph-explorer-accordion-item__handle-horizontal{cursor:ew-resize;width:5px;height:100%;top:0;right:-2.5px}.graph-explorer-accordion-item__handle-btn{background:var(--ge-surface);border:2px solid var(--ge-accent);box-shadow:var(--ge-shadow-sm);cursor:pointer;z-index:20;border-radius:10px;width:20px;height:20px;margin-top:-10px;transition:all .3s;position:absolute;top:50%}.graph-explorer-accordion-item__handle-btn:before{content:"";background-position:0 0;background-repeat:no-repeat;background-size:cover;width:8px;height:8px;margin-top:-4px;margin-left:-4px;transition:background .3s;position:absolute;top:50%;left:50%}.graph-explorer-accordion-item__handle-btn:hover{background:var(--ge-accent)}.graph-explorer-accordion-item__handle-btn-left{margin-left:-10px;left:100%}.graph-explorer-accordion-item__handle-btn-left:before{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAACXSURBVHjaYvz//z8DIbBlyxYmIDUTiI/6+PgsQJZjJGQAVPMcIE4E4n9AnAA0ZDFRBqBphoELQGwKNOQPiMNEoubLQOwG04zTADyanYGaXyOrZaJEM4YBpGpGMYAczXgDkVgANwBoCyiOU4B4PpK8LhDvBbpOlCgXkGMIhhdINQRrGJBiCO2SMg6XgPh9yEmZkdLsDBBgAMUxZ3KEE1BeAAAAAElFTkSuQmCC)}.graph-explorer-accordion-item__handle-btn-left:hover:before{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAACXSURBVHjaYvz//z8DIfD+/XsmIDUTiI8KCgouQJZjJGQAVPMcIE4E4n9AnAA0ZDFRBqBphoELQGwKNOQPiMNEoubLQOwG04zTADyanYGaXyOrZaJEM4YBpGpGMYAczXgDkVgANwBoCyiOU4B4PpK8LhDvBbpOlCgXkGMIhhdINQRrGJBiCO2SMg6XgPh9yEmZkdLsDBBgAKQBZhCkUF/8AAAAAElFTkSuQmCC)}.graph-explorer-accordion-item__handle-btn-right{margin-right:-10px;right:100%}.graph-explorer-accordion-item__handle-btn-right:before{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAACdSURBVHjaYvz//z8DMtiyZUsCkLIG4nQfH59/DAQAI7IBQM2xQGoBEDMB8XwgTiFkCNwAoGYWIHUaiA2Q5AkawgRjABX9AVJuQHwZST4RiOcADWciaADUkNdAypkUQzAESTUEq6mkGILTb8QawsRAIcBpANAWUSC1F4h18UUrEyWasRpAimYMA0jVTJOk3AfE/4jVjJEbycnOAAEGABIyZ3LVo9KqAAAAAElFTkSuQmCC)}.graph-explorer-accordion-item__handle-btn-right:hover:before{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAACeSURBVHjaYvz//z8DMnj//n0CkLIG4nRBQcF/DAQAC5rmWCA1F4iZgJgZyE8hZAgjzAVAxSDDTgOxAZL8fCDGawgTjAFU9AdIuQHxZST5RCCeAzSciaABUENeAylnUgzBECTVEKymkmIITr8RawgTA4UApwFAW0SB1F4g1sUXrUyUaMZqACmaMQwgVTNNknIfEP8jVjOKC8jNzgABBgBosmVE6sxD1QAAAABJRU5ErkJggg==)}.graph-explorer-accordion-item--collapsed .graph-explorer-accordion-item__handle-btn:before{transform:rotate(180deg)}.graph-explorer-accordion-item__inner{flex-direction:column;flex:auto;display:flex;overflow:hidden}.graph-explorer-accordion-item__body{background:var(--ge-surface);flex-direction:column;flex:1 1 0;display:flex}.graph-explorer-accordion-item__header{letter-spacing:.06em;text-transform:uppercase;color:var(--ge-text-muted);background:var(--ge-surface-2);border-bottom:1px solid var(--ge-border);cursor:pointer;transition:background var(--ge-transition), color var(--ge-transition);-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;flex-shrink:0;padding:11px 12px 11px 24px;font-size:11px;font-weight:600;position:relative}.graph-explorer-accordion-item__header:hover{background:var(--ge-surface-3);color:var(--ge-text)}.graph-explorer-accordion-item__header:before{border-top:5px solid var(--ge-text-subtle);content:"";border-left:4px solid #0000;border-right:4px solid #0000;margin-top:-2px;transition:transform .15s;position:absolute;top:50%;left:9px}.graph-explorer-accordion-item--collapsed .graph-explorer-accordion-item__header:before{transform:rotate(-90deg)}.graph-explorer-accordion-item--collapsed .graph-explorer-accordion-item__body{display:none}.graph-explorer-drag-resizable-column.graph-explorer-drag-resizable-column--docked-bottom .graph-explorer-drag-resizable-column__handle,.graph-explorer-drag-resizable-column.graph-explorer-drag-resizable-column--docked-top .graph-explorer-drag-resizable-column__handle{width:100%;height:8px;top:initial;cursor:ns-resize;left:0}.graph-explorer-drag-resizable-column.graph-explorer-drag-resizable-column--docked-bottom .graph-explorer-drag-resizable-column__handle-btn,.graph-explorer-drag-resizable-column.graph-explorer-drag-resizable-column--docked-top .graph-explorer-drag-resizable-column__handle-btn{width:40px;height:100%;margin-top:0;margin-left:-20px;top:0;left:50%}.graph-explorer-drag-resizable-column{flex-direction:column;display:flex;position:relative}.graph-explorer-drag-resizable-column__handle{width:8px;height:100%;top:0;left:initial;z-index:2;cursor:ew-resize;background:#fff url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAHElEQVQIW2PcvHnzf19fX0YGKIAzMARgKjFUAABdvQgFy9518AAAAABJRU5ErkJggg==);transition:all .3s;position:absolute}.graph-explorer-drag-resizable-column__handle-btn{cursor:pointer;z-index:1;background:#eee;width:100%;height:40px;margin-top:-20px;transition:all .3s;position:absolute;top:50%;left:0}.graph-explorer-drag-resizable-column__handle-btn:before{content:"";background-position:0 0;background-repeat:no-repeat;background-size:cover;width:6px;height:6px;margin-top:-3px;margin-left:-3px;transition:all .3s;position:absolute;top:50%;left:50%}.graph-explorer-drag-resizable-column__handle-btn:hover{background:#b3b3b3;transform:scale(1.2)}.graph-explorer-drag-resizable-column--closed .graph-explorer-drag-resizable-column__handle-btn:before{transform:rotate(180deg)}.graph-explorer-drag-resizable-column--docked-left{margin-right:8px}.graph-explorer-drag-resizable-column--docked-left .graph-explorer-drag-resizable-column__handle{right:-8px}.graph-explorer-drag-resizable-column--docked-left .graph-explorer-drag-resizable-column__handle-btn:before{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAACXSURBVHjaYvz//z8DIbBlyxYmIDUTiI/6+PgsQJZjJGQAVPMcIE4E4n9AnAA0ZDFRBqBphoELQGwKNOQPiMNEoubLQOwG04zTADyanYGaXyOrZaJEM4YBpGpGMYAczXgDkVgANwBoCyiOU4B4PpK8LhDvBbpOlCgXkGMIhhdINQRrGJBiCO2SMg6XgPh9yEmZkdLsDBBgAMUxZ3KEE1BeAAAAAElFTkSuQmCC)}.graph-explorer-drag-resizable-column--docked-left .graph-explorer-drag-resizable-column__handle-btn:hover:before{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAACXSURBVHjaYvz//z8DIfD+/XsmIDUTiI8KCgouQJZjJGQAVPMcIE4E4n9AnAA0ZDFRBqBphoELQGwKNOQPiMNEoubLQOwG04zTADyanYGaXyOrZaJEM4YBpGpGMYAczXgDkVgANwBoCyiOU4B4PpK8LhDvBbpOlCgXkGMIhhdINQRrGJBiCO2SMg6XgPh9yEmZkdLsDBBgAKQBZhCkUF/8AAAAAElFTkSuQmCC)}.graph-explorer-drag-resizable-column--docked-right{margin-left:8px}.graph-explorer-drag-resizable-column--docked-right .graph-explorer-drag-resizable-column__handle{left:-8px}.graph-explorer-drag-resizable-column--docked-right .graph-explorer-drag-resizable-column__handle-btn:before{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAACdSURBVHjaYvz//z8DMtiyZUsCkLIG4nQfH59/DAQAI7IBQM2xQGoBEDMB8XwgTiFkCNwAoGYWIHUaiA2Q5AkawgRjABX9AVJuQHwZST4RiOcADWciaADUkNdAypkUQzAESTUEq6mkGILTb8QawsRAIcBpANAWUSC1F4h18UUrEyWasRpAimYMA0jVTJOk3AfE/4jVjJEbycnOAAEGABIyZ3LVo9KqAAAAAElFTkSuQmCC)}.graph-explorer-drag-resizable-column--docked-right .graph-explorer-drag-resizable-column__handle-btn:hover:before{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAACeSURBVHjaYvz//z8DMnj//n0CkLIG4nRBQcF/DAQAC5rmWCA1F4iZgJgZyE8hZAgjzAVAxSDDTgOxAZL8fCDGawgTjAFU9AdIuQHxZST5RCCeAzSciaABUENeAylnUgzBECTVEKymkmIITr8RawgTA4UApwFAW0SB1F4g1sUXrUyUaMZqACmaMQwgVTNNknIfEP8jVjOKC8jNzgABBgBosmVE6sxD1QAAAABJRU5ErkJggg==)}.graph-explorer-drag-resizable-column--docked-top{margin-bottom:8px}.graph-explorer-drag-resizable-column--docked-top .graph-explorer-drag-resizable-column__handle{bottom:-8px}.graph-explorer-drag-resizable-column--docked-top .graph-explorer-drag-resizable-column__handle-btn:before{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA30lEQVQ4T7WTzw2CMBSH37Ou4BiemICYeODABiYSmcAJOoELiPHgBiXhYGKYgBNjuIJQ80ghBfsaEmKPbb/v90v/ICwcuJAHr0BKuaIAKWXLBbECgoMgyAisqirlJE6BBScm+c5JfgQOuG/vlIwEHpiVDAIGrg25tQ5x1KQTcLAQYkfrTdO8AMApQR8cRdGbBEVRbDgJ5nl+BYDUqlhTcg/384wkQ6XUERFvAECPxgkzklZrferOQCl1QMSzEGI/TZ6+QNPkqbW+xHH8GG6hLMt1GIafOX/D3vvfzzSnzRcwRIO9lTALYQAAAABJRU5ErkJggg==)}.graph-explorer-drag-resizable-column--docked-top .graph-explorer-drag-resizable-column__handle-btn:hover:before{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA1ElEQVQ4T7WTQQrCMBBF88Usu2jBY3gKwVsIij2BB/ECVlx4C8FT9BhCZ9FlpV9SmlJrphSKWSZ57w+ZCczMhZm8GRWQXLgAALUWpAocXBRF5sAkSVJNEhR4GMDBCUjeNMmPYAj70jXJl0CDxySdQIHzFl5rkkagwdbajTuvquppjAlKMAZHUfRygrIsV6pERC4k016fc5fsYb8fkgDIICJ7kldjjBuaIKxIagDH5g1EZEfyZK3dDpOHE9hW8gBwjuP43u/CEsB7yt8g2d3972eaUs0Hvw2bpYUKd8YAAAAASUVORK5CYII=)}.graph-explorer-drag-resizable-column--docked-bottom{margin-top:8px}.graph-explorer-drag-resizable-column--docked-bottom .graph-explorer-drag-resizable-column__handle{top:-8px}.graph-explorer-drag-resizable-column--docked-bottom .graph-explorer-drag-resizable-column__handle-btn:before{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA60lEQVQ4T62TzQ2CQBBGv3FtwTI8UQEx8cCBDkw0UoEVbAU2IMaDHSwJBxNDBZwswxZc1ixhCbI/IUGOy7w3s7MzhJkfzeTRC6qqWsZx/JkiHMa2AiHEjohOjLFtkiTvkKQsy5WU8qGUOqdpeichxJ6IrgAWAF6MsY1P0sFPAGsAjVLqSEVRXABkg6xOyQg24TlxzhdRFOUADj6JB77VdZ21PQhJ9H8ppSnb5GhhznnTv4JP0hH6zhasD37mwCMZPkqf2RxagxSQWLBVgbE6JE7YKxg1FqZhrgEL7oKupJM1vun83zJNWSJXzBeWo4O9On9s3QAAAABJRU5ErkJggg==)}.graph-explorer-drag-resizable-column--docked-bottom .graph-explorer-drag-resizable-column__handle-btn:hover:before{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA5klEQVQ4T62TQQrCMBBF5xez7KIFj+EpBG8hKPYEHsQLWHHhLQRP4TGEZtFlpF8S2hJtUgo1q5DMf/NnJoHMXJiplx5AcgHgPQXoxzqA1npL8qiU2qRp+hqD1HW9NMbcAZyyLLtBa70jeRGRRESeSql1DNKKHyKyEpEGwMECziQLL2sQ8iN24QBKkEyqqioB7GOQkJjkNc/zwvVgDGLvjTGdbZejFwONP4Wgk9aVrXkgdmX4HY846UP8zN3h4CHFICHxwIFn86ucmDgK8Btr967bQBN6YKN/wZbTzjsoHnUw5U/8BfABHFmbpQyQ0q0AAAAASUVORK5CYII=)}.introjs-tooltiptext{color:#333;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857}.graph-explorer-toolbar{background:var(--ge-surface);border:1px solid var(--ge-border);border-radius:var(--ge-radius-lg);box-shadow:var(--ge-shadow-md);align-items:center;padding:6px;display:inline-flex}.graph-explorer-toolbar .graph-explorer-btn-group{flex-wrap:wrap;align-items:center;gap:2px;display:inline-flex}.graph-explorer-toolbar .graph-explorer-btn-group>.graph-explorer-btn,.graph-explorer-toolbar .graph-explorer-btn-group>.graph-explorer-btn-group{float:none;margin-left:0}.graph-explorer-toolbar .graph-explorer-btn-default{box-shadow:none;color:var(--ge-text-muted);background:0 0;border-color:#0000}.graph-explorer-toolbar .graph-explorer-btn-default:hover{background:var(--ge-surface-3);color:var(--ge-text);border-color:#0000}.graph-explorer-toolbar .graph-explorer-btn-default.active{background:var(--ge-accent-soft);color:var(--ge-accent-hover);border-color:#0000}.graph-explorer-toolbar__language-selector{border-left:1px solid var(--ge-border);color:var(--ge-text-muted);align-items:center;margin-left:8px;padding-left:10px;font-size:13px;display:inline-flex}.graph-explorer-toolbar__language-selector>label{margin-bottom:0;margin-right:8px;font-weight:500}.graph-explorer-toolbar__language-selector>label>span{vertical-align:middle}.graph-explorer-toolbar__language-selector>select{background:var(--ge-surface);border:1px solid var(--ge-border-strong);border-radius:var(--ge-radius-sm);height:32px;color:var(--ge-text);cursor:pointer;transition:border-color var(--ge-transition), box-shadow var(--ge-transition);padding:0 10px}.graph-explorer-toolbar__language-selector>select:focus{border-color:var(--ge-accent);box-shadow:var(--ge-ring);outline:none}.graph-explorer-toolbar__toggle{line-height:1}.graph-explorer-toolbar__toggle:after{content:"";background-position:50%;background-repeat:no-repeat;width:14px;height:14px;margin:2px 0;display:block}.graph-explorer-toolbar__toggle-left:after{background-image:url("data:image/svg+xml,%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20width='12'%20height='12'%20viewBox='0%200%20469.333%20469.333'%3e%3cpath%20fill='%23333'%20d='M448,0H21.333C9.552,0,0,9.552,0,21.333V448c0,11.781,9.552,21.333,21.333,21.333H448c11.781,0,21.333-9.552,21.333-21.333V21.333C469.333,9.552,459.781,0,448,0z%20M138.667,426.667h-96v-384h96V426.667zM426.667,426.667H181.333v-384h245.333V426.667z'/%3e%3c/svg%3e")}.graph-explorer-toolbar__toggle-right:after{background-image:url("data:image/svg+xml,%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20width='12'%20height='12'%20viewBox='0%200%20469.333%20469.333'%3e%3cpath%20fill='%23333'%20d='M448,0H21.333C9.552,0,0,9.552,0,21.333V448c0,11.781,9.552,21.333,21.333,21.333H448c11.781,0,21.333-9.552,21.333-21.333V21.333C469.333,9.552,459.781,0,448,0z%20M288,426.667H42.667v-384H288V426.667zM426.667,426.667h-96v-384h96V426.667z'/%3e%3c/svg%3e")}.graph-explorer-toolbar__toggle-left.active:after{background-image:url("data:image/svg+xml,%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20width='12'%20height='12'%20viewBox='0%200%20469.333%20469.333'%3e%3cpath%20fill='%23333'%20d='m%2030.5,235.66084%200,-205.208259%2059.6835,0%2059.68352,0%200,205.208259%200,205.20828%20-59.68352,0%20-59.6835,0%200,-205.20828%20z'/%3e%3cpath%20fill='%23333'%20d='M448,0H21.333C9.552,0,0,9.552,0,21.333V448c0,11.781,9.552,21.333,21.333,21.333H448c11.781,0,21.333-9.552,21.333-21.333V21.333C469.333,9.552,459.781,0,448,0z%20M138.667,426.667h-96v-384h96V426.667zM426.667,426.667H181.333v-384h245.333V426.667z'/%3e%3c/svg%3e")}.graph-explorer-toolbar__toggle-right.active:after{background-image:url("data:image/svg+xml,%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20width='12'%20height='12'%20viewBox='0%200%20469.333%20469.333'%3e%3cpath%20fill='%23333'%20d='m%20318.9149,233.50816%200,-205.208262%2059.6835,0%2059.68351,0%200,205.208262%200,205.20828%20-59.68351,0%20-59.6835,0%200,-205.20828%20z'/%3e%3cpath%20fill='%23333'%20d='M448,0H21.333C9.552,0,0,9.552,0,21.333V448c0,11.781,9.552,21.333,21.333,21.333H448c11.781,0,21.333-9.552,21.333-21.333V21.333C469.333,9.552,459.781,0,448,0z%20M288,426.667H42.667v-384H288V426.667zM426.667,426.667h-96v-384h96V426.667z'/%3e%3c/svg%3e")}.graph-explorer-toolbar__layout-group{align-items:center;height:32px;margin-left:5px;display:inline-flex}.graph-explorer-toolbar__layout-group>label{margin-bottom:0;margin-right:5px}.graph-explorer-toolbar__layout-group .btn-group,.graph-explorer-toolbar__layout-group button{height:100%}.graph-explorer-toolbar .graph-explorer-toolbar__undo,.graph-explorer-toolbar .graph-explorer-toolbar__redo{display:none}.graph-explorer{box-sizing:border-box;height:100%;white-space:initial;color:var(--ge-text);background:var(--ge-bg);font-family:var(--ge-font-sans);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizelegibility;flex-direction:column;font-size:14px;line-height:1.5;display:flex}.graph-explorer *,.graph-explorer :before,.graph-explorer :after{box-sizing:inherit}.graph-explorer__toolbar-widget{position:absolute;top:10px;left:10px}.graph-explorer__workspace{flex-direction:column;flex:auto;display:flex;overflow:hidden}.graph-explorer__main-panel{flex:auto;width:0;display:flex;overflow:hidden}.graph-explorer--unselectable{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.graph-explorer--horizontal-resizing *{cursor:ew-resize!important}.graph-explorer--vertical-resizing *{cursor:ns-resize!important}.graph-explorer h4{letter-spacing:-.01em;margin-top:10px;margin-bottom:10px;font-size:18px;font-weight:600;line-height:1.2}.graph-explorer select{color:inherit;font:inherit;line-height:inherit;text-transform:none;margin:0}.graph-explorer hr{border:0;border-top:1px solid var(--ge-border);height:0}.graph-explorer ::-webkit-scrollbar{width:10px;height:10px}.graph-explorer ::-webkit-scrollbar-thumb{background:var(--ge-border-strong);border-radius:var(--ge-radius-pill);background-clip:content-box;border:3px solid #0000}.graph-explorer ::-webkit-scrollbar-thumb:hover{background:var(--ge-text-subtle);background-clip:content-box;border:3px solid #0000}.graph-explorer ::-webkit-scrollbar-track{background:0 0}.graph-explorer-scrollable{flex:1 1 0;overflow-y:scroll}.graph-explorer-scrollable>*{position:relative}.jstree-icon.jstree-themeicon.jstree-themeicon-custom{background-size:contain!important}.graph-explorer-default-template,.graph-explorer-group-template__wrap{float:left;border-radius:var(--ge-radius-lg);max-width:450px;box-shadow:var(--ge-shadow-md);border-style:solid;border-width:1px;overflow:hidden}.graph-explorer-default-template__thumbnail{text-align:center}.graph-explorer-default-template__thumbnail>img{max-width:200px}.graph-explorer-default-template[data-expanded=true] .graph-explorer-default-template__thumbnail>img,[data-expanded=true].graph-explorer-group-template__wrap .graph-explorer-default-template__thumbnail>img{max-width:350px}.graph-explorer-default-template_type-line,.graph-explorer-group-template__type-line{color:#fff;align-items:baseline;height:18px;margin-top:-3px;margin-bottom:2px;padding:0 7px;display:flex;overflow:hidden}div.graph-explorer-default-template_type-line__icon,div.graph-explorer-group-template__type-line-icon{margin-right:4px;position:inherit!important}.graph-explorer-default-template_type-line_text-container,.graph-explorer-group-template__type-line-text-container{text-overflow:ellipsis;flex-grow:1;width:0;overflow:hidden}.graph-explorer-default-template_type-line_text-container__text,.graph-explorer-group-template__type-line-text{white-space:nowrap;font-size:12px;display:inline}.graph-explorer-default-template_body,.graph-explorer-group-template__body{background:#fff;border-top-style:solid;border-top-width:1px;border-bottom-right-radius:12px;border-bottom-left-radius:12px;flex-direction:column;padding:7px 10px 8px;display:flex;overflow:hidden}.graph-explorer-default-template_body__label,.graph-explorer-group-template__label{letter-spacing:-.01em;color:var(--ge-text);text-overflow:ellipsis;white-space:nowrap;word-wrap:break-word;margin-bottom:0;font-size:18px;font-weight:600;overflow:hidden}.graph-explorer-default-template_body_expander{width:100%;display:flex;overflow:hidden}.graph-explorer-default-template_body_expander__iri_label{color:#b6b6b6;margin-right:15px;font-size:12px;font-weight:100}.graph-explorer-default-template_body_expander_iri{white-space:nowrap;text-overflow:ellipsis;width:100%;font-size:12px;overflow:hidden}.graph-explorer-default-template_body_expander_iri__link{color:#b6b6b6}.graph-explorer-default-template_body_expander__hr{margin:5px 0}.graph-explorer-default-template_body_expander_property-table{max-height:200px;margin-bottom:5px;font-size:15px;font-weight:100;overflow:hidden scroll}.graph-explorer-default-template_body_expander_property-table_row{white-space:nowrap}.graph-explorer-default-template_body_expander_property-table_row__key,.graph-explorer-default-template_body_expander_property-table_row_key{text-overflow:ellipsis;vertical-align:top;width:50%;display:inline-block;overflow:hidden}.graph-explorer-default-template_body_expander_property-table_row_key_values{text-overflow:ellipsis;width:50%;display:inline-block;overflow:hidden}.graph-explorer-default-template_body_expander_property-table_row_key_values__value{text-overflow:ellipsis;width:100%;white-space:initial;padding-right:10px;overflow:hidden}.graph-explorer-group-template{overflow:hidden}.graph-explorer-group-template__wrap{max-width:none}.graph-explorer-group-template__body{overflow:visible}.graph-explorer-group-template__embedded-layer{margin-top:7px}.graph-explorer-group-template .graph-explorer-paper__canvas{border-color:#fff}.graph-explorer-standard-template{float:left;min-width:180px;max-width:400px}.graph-explorer-standard-template__main{border-radius:var(--ge-radius);box-shadow:var(--ge-shadow-md);border:1px solid;overflow:hidden}.graph-explorer-standard-template__body{border-radius:0 var(--ge-radius) var(--ge-radius) 0;background:var(--ge-surface);border-left:1px solid;margin-left:8px;padding:4px 0}.graph-explorer-standard-template__body-horizontal{justify-content:space-between;align-items:center;display:flex;overflow:hidden}.graph-explorer-standard-template__body-content{flex-grow:1;min-width:0;margin-right:12px}.graph-explorer-standard-template__label{letter-spacing:-.01em;white-space:nowrap;text-overflow:ellipsis;font-size:18px;font-weight:600;overflow:hidden}.graph-explorer-standard-template__thumbnail{flex-shrink:0;justify-content:center;align-items:center;width:50px;height:50px;margin:5px 10px;font-size:26px;display:flex}.graph-explorer-standard-template__thumbnail-image{max-width:100%;max-height:100%}.graph-explorer-standard-template__thumbnail-icon{max-width:26px;max-height:26px}.graph-explorer-standard-template__photo{border-bottom:1px solid}.graph-explorer-standard-template__photo-image{border-radius:2px 2px 0 0;width:100%}.graph-explorer-standard-template__type{white-space:nowrap;text-overflow:ellipsis;color:#999;font-size:11px;font-style:italic;display:flex;overflow:hidden}.graph-explorer-standard-template__type-value{text-overflow:ellipsis;flex-grow:1;width:0;overflow:hidden}.graph-explorer-standard-template__iri{width:100%;display:flex;overflow:hidden}.graph-explorer-standard-template__iri-key{color:#b6b6b6;margin-right:4px;font-size:12px}.graph-explorer-standard-template__iri-value{white-space:nowrap;text-overflow:ellipsis;width:100%;font-size:12px;overflow:hidden}.graph-explorer-standard-template__iri-value a{color:#b6b6b6}.graph-explorer-standard-template__hr{margin:5px 0}.graph-explorer-standard-template__properties{max-height:200px;font-size:15px;overflow:hidden scroll}.graph-explorer-standard-template__propertites-row{white-space:nowrap}.graph-explorer-standard-template__properties-key{text-overflow:ellipsis;vertical-align:top;width:50%;display:inline-block;overflow:hidden}.graph-explorer-standard-template__properties-values{text-overflow:ellipsis;width:50%;display:inline-block;overflow:hidden}.graph-explorer-standard-template__properties-value{text-overflow:ellipsis;width:100%;white-space:initial;padding-right:10px;overflow:hidden}.graph-explorer-standard-template__pinned-props{border-top:1px solid;margin:0 5px}.graph-explorer-standard-template__dropdown{border-radius:var(--ge-radius);background-color:var(--ge-surface);box-shadow:var(--ge-shadow-md);border:1px solid;margin-top:6px}.graph-explorer-standard-template__dropdown-content{width:100%;padding:9px}.graph-explorer-standard-template__actions{justify-content:space-between;display:flex}.graph-explorer-standard-template__actions button{min-width:60px;padding:5px}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
(function(nt,Yv){typeof exports=="object"&&typeof module<"u"?Yv(exports):typeof define=="function"&&define.amd?define(["exports"],Yv):(nt=typeof globalThis<"u"?globalThis:nt||self,Yv(nt.GraphExplorer={}))})(this,function(nt){Object.defineProperty(nt,Symbol.toStringTag,{value:"Module"});var Yv=Object.create,yb=Object.defineProperty,Cx=Object.getOwnPropertyDescriptor,xx=Object.getOwnPropertyNames,Lx=Object.getPrototypeOf,Ox=Object.prototype.hasOwnProperty,m2=(i,a,s)=>()=>{if(s)throw s[0];try{return i&&(a=i(i=0)),a}catch(f){throw s=[f],f}},Bn=(i,a)=>()=>(a||(i((a={exports:{}}).exports,a),i=null),a.exports),Dx=(i,a)=>{let s={};for(var f in i)yb(s,f,{get:i[f],enumerable:!0});return a||yb(s,Symbol.toStringTag,{value:"Module"}),s},Mx=(i,a,s,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(var h=xx(a),m=0,v=h.length,w;m<v;m++)w=h[m],!Ox.call(i,w)&&w!==s&&yb(i,w,{get:(E=>a[E]).bind(null,w),enumerable:!(f=Cx(a,w))||f.enumerable});return i},F_=(i,a,s)=>(s=i!=null?Yv(Lx(i)):{},Mx(a||!i||!i.__esModule?yb(s,"default",{value:i,enumerable:!0}):s,i));function Rx(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function W_(){throw new Error("setTimeout has not been defined")}function eE(){throw new Error("clearTimeout has not been defined")}function y2(i){if(uf===setTimeout)return setTimeout(i,0);if((uf===W_||!uf)&&setTimeout)return uf=setTimeout,setTimeout(i,0);try{return uf(i,0)}catch{try{return uf.call(null,i,0)}catch{return uf.call(this,i,0)}}}function Nx(i){if(cf===clearTimeout)return clearTimeout(i);if((cf===eE||!cf)&&clearTimeout)return cf=clearTimeout,clearTimeout(i);try{return cf(i)}catch{try{return cf.call(null,i)}catch{return cf.call(this,i)}}}function kx(){!vm||!bm||(vm=!1,bm.length?ff=bm.concat(ff):Vv=-1,ff.length&&v2())}function v2(){if(!vm){var i=y2(kx);vm=!0;for(var a=ff.length;a;){for(bm=ff,ff=[];++Vv<a;)bm&&bm[Vv].run();Vv=-1,a=ff.length}bm=null,vm=!1,Nx(i)}}function b2(i,a){this.fun=i,this.array=a}function Ah(){}var tE,ca,uf,cf,ff,vm,bm,Vv,_2,Ki,hf=m2((()=>{tE={exports:{}},ca=tE.exports={},(function(){try{typeof setTimeout=="function"?uf=setTimeout:uf=W_}catch{uf=W_}try{typeof clearTimeout=="function"?cf=clearTimeout:cf=eE}catch{cf=eE}})(),ff=[],vm=!1,Vv=-1,ca.nextTick=function(i){var a=new Array(arguments.length-1);if(arguments.length>1)for(var s=1;s<arguments.length;s++)a[s-1]=arguments[s];ff.push(new b2(i,a)),ff.length===1&&!vm&&y2(v2)},b2.prototype.run=function(){this.fun.apply(null,this.array)},ca.title="browser",ca.browser=!0,ca.env={},ca.argv=[],ca.version="",ca.versions={},ca.on=Ah,ca.addListener=Ah,ca.once=Ah,ca.off=Ah,ca.removeListener=Ah,ca.removeAllListeners=Ah,ca.emit=Ah,ca.prependListener=Ah,ca.prependOnceListener=Ah,ca.listeners=function(i){return[]},ca.binding=function(i){throw new Error("process.binding is not supported")},ca.cwd=function(){return"/"},ca.chdir=function(i){throw new Error("process.chdir is not supported")},ca.umask=function(){return 0},_2=tE.exports,Ki=Rx(_2)})),zx=Bn((i=>{hf();var a=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),_=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),D=Symbol.iterator;function B(F){return F===null||typeof F!="object"?null:(F=D&&F[D]||F["@@iterator"],typeof F=="function"?F:null)}var G={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},P=Object.assign,te={};function pe(F,ze,He){this.props=F,this.context=ze,this.refs=te,this.updater=He||G}pe.prototype.isReactComponent={},pe.prototype.setState=function(F,ze){if(typeof F!="object"&&typeof F!="function"&&F!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,F,ze,"setState")},pe.prototype.forceUpdate=function(F){this.updater.enqueueForceUpdate(this,F,"forceUpdate")};function Te(){}Te.prototype=pe.prototype;function Se(F,ze,He){this.props=F,this.context=ze,this.refs=te,this.updater=He||G}var Fe=Se.prototype=new Te;Fe.constructor=Se,P(Fe,pe.prototype),Fe.isPureReactComponent=!0;var Re=Array.isArray;function Je(){}var Be={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function re(F,ze,He){var Ie=He.ref;return{$$typeof:a,type:F,key:ze,ref:Ie!==void 0?Ie:null,props:He}}function me(F,ze){return re(F.type,ze,F.props)}function ne(F){return typeof F=="object"&&F!==null&&F.$$typeof===a}function ue(F){var ze={"=":"=0",":":"=2"};return"$"+F.replace(/[=:]/g,function(He){return ze[He]})}var Z=/\/+/g;function K(F,ze){return typeof F=="object"&&F!==null&&F.key!=null?ue(""+F.key):ze.toString(36)}function $(F){switch(F.status){case"fulfilled":return F.value;case"rejected":throw F.reason;default:switch(typeof F.status=="string"?F.then(Je,Je):(F.status="pending",F.then(function(ze){F.status==="pending"&&(F.status="fulfilled",F.value=ze)},function(ze){F.status==="pending"&&(F.status="rejected",F.reason=ze)})),F.status){case"fulfilled":return F.value;case"rejected":throw F.reason}}throw F}function X(F,ze,He,Ie,at){var st=typeof F;(st==="undefined"||st==="boolean")&&(F=null);var At=!1;if(F===null)At=!0;else switch(st){case"bigint":case"string":case"number":At=!0;break;case"object":switch(F.$$typeof){case a:case s:At=!0;break;case L:return At=F._init,X(At(F._payload),ze,He,Ie,at)}}if(At)return at=at(F),At=Ie===""?"."+K(F,0):Ie,Re(at)?(He="",At!=null&&(He=At.replace(Z,"$&/")+"/"),X(at,ze,He,"",function(En){return En})):at!=null&&(ne(at)&&(at=me(at,He+(at.key==null||F&&F.key===at.key?"":(""+at.key).replace(Z,"$&/")+"/")+At)),ze.push(at)),1;At=0;var Jt=Ie===""?".":Ie+":";if(Re(F))for(var ht=0;ht<F.length;ht++)Ie=F[ht],st=Jt+K(Ie,ht),At+=X(Ie,ze,He,st,at);else if(ht=B(F),typeof ht=="function")for(F=ht.call(F),ht=0;!(Ie=F.next()).done;)Ie=Ie.value,st=Jt+K(Ie,ht++),At+=X(Ie,ze,He,st,at);else if(st==="object"){if(typeof F.then=="function")return X($(F),ze,He,Ie,at);throw ze=String(F),Error("Objects are not valid as a React child (found: "+(ze==="[object Object]"?"object with keys {"+Object.keys(F).join(", ")+"}":ze)+"). If you meant to render a collection of children, use an array instead.")}return At}function ee(F,ze,He){if(F==null)return F;var Ie=[],at=0;return X(F,Ie,"","",function(st){return ze.call(He,st,at++)}),Ie}function ye(F){if(F._status===-1){var ze=F._result;ze=ze(),ze.then(function(He){(F._status===0||F._status===-1)&&(F._status=1,F._result=He)},function(He){(F._status===0||F._status===-1)&&(F._status=2,F._result=He)}),F._status===-1&&(F._status=0,F._result=ze)}if(F._status===1)return F._result.default;throw F._result}var Me=typeof reportError=="function"?reportError:function(F){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var ze=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof F=="object"&&F!==null&&typeof F.message=="string"?String(F.message):String(F),error:F});if(!window.dispatchEvent(ze))return}else if(typeof Ki=="object"&&typeof Ki.emit=="function"){Ki.emit("uncaughtException",F);return}console.error(F)},et={map:ee,forEach:function(F,ze,He){ee(F,function(){ze.apply(this,arguments)},He)},count:function(F){var ze=0;return ee(F,function(){ze++}),ze},toArray:function(F){return ee(F,function(ze){return ze})||[]},only:function(F){if(!ne(F))throw Error("React.Children.only expected to receive a single React element child.");return F}};i.Activity=x,i.Children=et,i.Component=pe,i.Fragment=f,i.Profiler=m,i.PureComponent=Se,i.StrictMode=h,i.Suspense=S,i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Be,i.__COMPILER_RUNTIME={__proto__:null,c:function(F){return Be.H.useMemoCache(F)}},i.cache=function(F){return function(){return F.apply(null,arguments)}},i.cacheSignal=function(){return null},i.cloneElement=function(F,ze,He){if(F==null)throw Error("The argument must be a React element, but you passed "+F+".");var Ie=P({},F.props),at=F.key;if(ze!=null)for(st in ze.key!==void 0&&(at=""+ze.key),ze)!W.call(ze,st)||st==="key"||st==="__self"||st==="__source"||st==="ref"&&ze.ref===void 0||(Ie[st]=ze[st]);var st=arguments.length-2;if(st===1)Ie.children=He;else if(1<st){for(var At=Array(st),Jt=0;Jt<st;Jt++)At[Jt]=arguments[Jt+2];Ie.children=At}return re(F.type,at,Ie)},i.createContext=function(F){return F={$$typeof:w,_currentValue:F,_currentValue2:F,_threadCount:0,Provider:null,Consumer:null},F.Provider=F,F.Consumer={$$typeof:v,_context:F},F},i.createElement=function(F,ze,He){var Ie,at={},st=null;if(ze!=null)for(Ie in ze.key!==void 0&&(st=""+ze.key),ze)W.call(ze,Ie)&&Ie!=="key"&&Ie!=="__self"&&Ie!=="__source"&&(at[Ie]=ze[Ie]);var At=arguments.length-2;if(At===1)at.children=He;else if(1<At){for(var Jt=Array(At),ht=0;ht<At;ht++)Jt[ht]=arguments[ht+2];at.children=Jt}if(F&&F.defaultProps)for(Ie in At=F.defaultProps,At)at[Ie]===void 0&&(at[Ie]=At[Ie]);return re(F,st,at)},i.createRef=function(){return{current:null}},i.forwardRef=function(F){return{$$typeof:E,render:F}},i.isValidElement=ne,i.lazy=function(F){return{$$typeof:L,_payload:{_status:-1,_result:F},_init:ye}},i.memo=function(F,ze){return{$$typeof:_,type:F,compare:ze===void 0?null:ze}},i.startTransition=function(F){var ze=Be.T,He={};Be.T=He;try{var Ie=F(),at=Be.S;at!==null&&at(He,Ie),typeof Ie=="object"&&Ie!==null&&typeof Ie.then=="function"&&Ie.then(Je,Me)}catch(st){Me(st)}finally{ze!==null&&He.types!==null&&(ze.types=He.types),Be.T=ze}},i.unstable_useCacheRefresh=function(){return Be.H.useCacheRefresh()},i.use=function(F){return Be.H.use(F)},i.useActionState=function(F,ze,He){return Be.H.useActionState(F,ze,He)},i.useCallback=function(F,ze){return Be.H.useCallback(F,ze)},i.useContext=function(F){return Be.H.useContext(F)},i.useDebugValue=function(){},i.useDeferredValue=function(F,ze){return Be.H.useDeferredValue(F,ze)},i.useEffect=function(F,ze){return Be.H.useEffect(F,ze)},i.useEffectEvent=function(F){return Be.H.useEffectEvent(F)},i.useId=function(){return Be.H.useId()},i.useImperativeHandle=function(F,ze,He){return Be.H.useImperativeHandle(F,ze,He)},i.useInsertionEffect=function(F,ze){return Be.H.useInsertionEffect(F,ze)},i.useLayoutEffect=function(F,ze){return Be.H.useLayoutEffect(F,ze)},i.useMemo=function(F,ze){return Be.H.useMemo(F,ze)},i.useOptimistic=function(F,ze){return Be.H.useOptimistic(F,ze)},i.useReducer=function(F,ze,He){return Be.H.useReducer(F,ze,He)},i.useRef=function(F){return Be.H.useRef(F)},i.useState=function(F){return Be.H.useState(F)},i.useSyncExternalStore=function(F,ze,He){return Be.H.useSyncExternalStore(F,ze,He)},i.useTransition=function(){return Be.H.useTransition()},i.version="19.2.7"})),Ux=Bn(((i,a)=>{hf(),Ki.env.NODE_ENV!=="production"&&(function(){function s(I,ge){Object.defineProperty(m.prototype,I,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",ge[0],ge[1])}})}function f(I){return I===null||typeof I!="object"?null:(I=tt&&I[tt]||I["@@iterator"],typeof I=="function"?I:null)}function h(I,ge){I=(I=I.constructor)&&(I.displayName||I.name)||"ReactClass";var Xe=I+"."+ge;Sr[Xe]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",ge,I),Sr[Xe]=!0)}function m(I,ge,Xe){this.props=I,this.context=ge,this.refs=Ai,this.updater=Xe||Ml}function v(){}function w(I,ge,Xe){this.props=I,this.context=ge,this.refs=Ai,this.updater=Xe||Ml}function E(){}function S(I){return""+I}function _(I){try{S(I);var ge=!1}catch{ge=!0}if(ge){ge=console;var Xe=ge.error,Ze=typeof Symbol=="function"&&Symbol.toStringTag&&I[Symbol.toStringTag]||I.constructor.name||"Object";return Xe.call(ge,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Ze),S(I)}}function L(I){if(I==null)return null;if(typeof I=="function")return I.$$typeof===ho?null:I.displayName||I.name||null;if(typeof I=="string")return I;switch(I){case et:return"Fragment";case ze:return"Profiler";case F:return"StrictMode";case st:return"Suspense";case At:return"SuspenseList";case En:return"Activity"}if(typeof I=="object")switch(typeof I.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),I.$$typeof){case Me:return"Portal";case Ie:return I.displayName||"Context";case He:return(I._context.displayName||"Context")+".Consumer";case at:var ge=I.render;return I=I.displayName,I||(I=ge.displayName||ge.name||"",I=I!==""?"ForwardRef("+I+")":"ForwardRef"),I;case Jt:return ge=I.displayName||null,ge!==null?ge:L(I.type)||"Memo";case ht:ge=I._payload,I=I._init;try{return L(I(ge))}catch{}}return null}function x(I){if(I===et)return"<>";if(typeof I=="object"&&I!==null&&I.$$typeof===ht)return"<...>";try{var ge=L(I);return ge?"<"+ge+">":"<...>"}catch{return"<...>"}}function D(){var I=kt.A;return I===null?null:I.getOwner()}function B(){return Error("react-stack-top-frame")}function G(I){if(nn.call(I,"key")){var ge=Object.getOwnPropertyDescriptor(I,"key").get;if(ge&&ge.isReactWarning)return!1}return I.key!==void 0}function P(I,ge){function Xe(){La||(La=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",ge))}Xe.isReactWarning=!0,Object.defineProperty(I,"key",{get:Xe,configurable:!0})}function te(){var I=L(this.type);return Cn[I]||(Cn[I]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),I=this.props.ref,I!==void 0?I:null}function pe(I,ge,Xe,Ze,ut,Mt){var bt=Xe.ref;return I={$$typeof:ye,type:I,key:ge,props:Xe,_owner:Ze},(bt!==void 0?bt:null)!==null?Object.defineProperty(I,"ref",{enumerable:!1,get:te}):Object.defineProperty(I,"ref",{enumerable:!1,value:null}),I._store={},Object.defineProperty(I._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(I,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(I,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ut}),Object.defineProperty(I,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Mt}),Object.freeze&&(Object.freeze(I.props),Object.freeze(I)),I}function Te(I,ge){return ge=pe(I.type,ge,I.props,I._owner,I._debugStack,I._debugTask),I._store&&(ge._store.validated=I._store.validated),ge}function Se(I){Fe(I)?I._store&&(I._store.validated=1):typeof I=="object"&&I!==null&&I.$$typeof===ht&&(I._payload.status==="fulfilled"?Fe(I._payload.value)&&I._payload.value._store&&(I._payload.value._store.validated=1):I._store&&(I._store.validated=1))}function Fe(I){return typeof I=="object"&&I!==null&&I.$$typeof===ye}function Re(I){var ge={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(Xe){return ge[Xe]})}function Je(I,ge){return typeof I=="object"&&I!==null&&I.key!=null?(_(I.key),Re(""+I.key)):ge.toString(36)}function Be(I){switch(I.status){case"fulfilled":return I.value;case"rejected":throw I.reason;default:switch(typeof I.status=="string"?I.then(E,E):(I.status="pending",I.then(function(ge){I.status==="pending"&&(I.status="fulfilled",I.value=ge)},function(ge){I.status==="pending"&&(I.status="rejected",I.reason=ge)})),I.status){case"fulfilled":return I.value;case"rejected":throw I.reason}}throw I}function W(I,ge,Xe,Ze,ut){var Mt=typeof I;(Mt==="undefined"||Mt==="boolean")&&(I=null);var bt=!1;if(I===null)bt=!0;else switch(Mt){case"bigint":case"string":case"number":bt=!0;break;case"object":switch(I.$$typeof){case ye:case Me:bt=!0;break;case ht:return bt=I._init,W(bt(I._payload),ge,Xe,Ze,ut)}}if(bt){bt=I,ut=ut(bt);var Ct=Ze===""?"."+Je(bt,0):Ze;return qa(ut)?(Xe="",Ct!=null&&(Xe=Ct.replace(ha,"$&/")+"/"),W(ut,ge,Xe,"",function(sr){return sr})):ut!=null&&(Fe(ut)&&(ut.key!=null&&(bt&&bt.key===ut.key||_(ut.key)),Xe=Te(ut,Xe+(ut.key==null||bt&&bt.key===ut.key?"":(""+ut.key).replace(ha,"$&/")+"/")+Ct),Ze!==""&&bt!=null&&Fe(bt)&&bt.key==null&&bt._store&&!bt._store.validated&&(Xe._store.validated=2),ut=Xe),ge.push(ut)),1}if(bt=0,Ct=Ze===""?".":Ze+":",qa(I))for(var xt=0;xt<I.length;xt++)Ze=I[xt],Mt=Ct+Je(Ze,xt),bt+=W(Ze,ge,Xe,Mt,ut);else if(xt=f(I),typeof xt=="function")for(xt===I.entries&&(ji||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ji=!0),I=xt.call(I),xt=0;!(Ze=I.next()).done;)Ze=Ze.value,Mt=Ct+Je(Ze,xt++),bt+=W(Ze,ge,Xe,Mt,ut);else if(Mt==="object"){if(typeof I.then=="function")return W(Be(I),ge,Xe,Ze,ut);throw ge=String(I),Error("Objects are not valid as a React child (found: "+(ge==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":ge)+"). If you meant to render a collection of children, use an array instead.")}return bt}function re(I,ge,Xe){if(I==null)return I;var Ze=[],ut=0;return W(I,Ze,"","",function(Mt){return ge.call(Xe,Mt,ut++)}),Ze}function me(I){if(I._status===-1){var ge=I._ioInfo;ge!=null&&(ge.start=ge.end=performance.now()),ge=I._result;var Xe=ge();if(Xe.then(function(ut){if(I._status===0||I._status===-1){I._status=1,I._result=ut;var Mt=I._ioInfo;Mt!=null&&(Mt.end=performance.now()),Xe.status===void 0&&(Xe.status="fulfilled",Xe.value=ut)}},function(ut){if(I._status===0||I._status===-1){I._status=2,I._result=ut;var Mt=I._ioInfo;Mt!=null&&(Mt.end=performance.now()),Xe.status===void 0&&(Xe.status="rejected",Xe.reason=ut)}}),ge=I._ioInfo,ge!=null){ge.value=Xe;var Ze=Xe.displayName;typeof Ze=="string"&&(ge.name=Ze)}I._status===-1&&(I._status=0,I._result=Xe)}if(I._status===1)return ge=I._result,ge===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s

Your code should look like: 
  const MyComponent = lazy(() => import('./MyComponent'))

Did you accidentally put curly braces around the import?`,ge),"default"in ge||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s

Your code should look like: 
  const MyComponent = lazy(() => import('./MyComponent'))`,ge),ge.default;throw I._result}function ne(){var I=kt.H;return I===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),I}function ue(){kt.asyncTransitions--}function Z(I){if(k===null)try{var ge=("require"+Math.random()).slice(0,7);k=(a&&a[ge]).call(a,"timers").setImmediate}catch{k=function(Ze){R===!1&&(R=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var ut=new MessageChannel;ut.port1.onmessage=Ze,ut.port2.postMessage(void 0)}}return k(I)}function K(I){return 1<I.length&&typeof AggregateError=="function"?new AggregateError(I):I[0]}function $(I,ge){ge!==J-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),J=ge}function X(I,ge,Xe){var Ze=kt.actQueue;if(Ze!==null)if(Ze.length!==0)try{ee(Ze),Z(function(){return X(I,ge,Xe)});return}catch(ut){kt.thrownErrors.push(ut)}else kt.actQueue=null;0<kt.thrownErrors.length?(Ze=K(kt.thrownErrors),kt.thrownErrors.length=0,Xe(Ze)):ge(I)}function ee(I){if(!Ae){Ae=!0;var ge=0;try{for(;ge<I.length;ge++){var Xe=I[ge];do{kt.didUsePromise=!1;var Ze=Xe(!1);if(Ze!==null){if(kt.didUsePromise){I[ge]=Xe,I.splice(0,ge);return}Xe=Ze}else break}while(!0)}I.length=0}catch(ut){I.splice(0,ge+1),kt.thrownErrors.push(ut)}finally{Ae=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var ye=Symbol.for("react.transitional.element"),Me=Symbol.for("react.portal"),et=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),ze=Symbol.for("react.profiler"),He=Symbol.for("react.consumer"),Ie=Symbol.for("react.context"),at=Symbol.for("react.forward_ref"),st=Symbol.for("react.suspense"),At=Symbol.for("react.suspense_list"),Jt=Symbol.for("react.memo"),ht=Symbol.for("react.lazy"),En=Symbol.for("react.activity"),tt=Symbol.iterator,Sr={},Ml={isMounted:function(){return!1},enqueueForceUpdate:function(I){h(I,"forceUpdate")},enqueueReplaceState:function(I){h(I,"replaceState")},enqueueSetState:function(I){h(I,"setState")}},Kn=Object.assign,Ai={};Object.freeze(Ai),m.prototype.isReactComponent={},m.prototype.setState=function(I,ge){if(typeof I!="object"&&typeof I!="function"&&I!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,I,ge,"setState")},m.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};var Dt={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(pt in Dt)Dt.hasOwnProperty(pt)&&s(pt,Dt[pt]);v.prototype=m.prototype,Dt=w.prototype=new v,Dt.constructor=w,Kn(Dt,m.prototype),Dt.isPureReactComponent=!0;var qa=Array.isArray,ho=Symbol.for("react.client.reference"),kt={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},nn=Object.prototype.hasOwnProperty,fa=console.createTask?console.createTask:function(){return null};Dt={react_stack_bottom_frame:function(I){return I()}};var La,lr,Cn={},Rl=Dt.react_stack_bottom_frame.bind(Dt,B)(),Po=fa(x(B)),ji=!1,ha=/\/+/g,Y=typeof reportError=="function"?reportError:function(I){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var ge=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof I=="object"&&I!==null&&typeof I.message=="string"?String(I.message):String(I),error:I});if(!window.dispatchEvent(ge))return}else if(typeof Ki=="object"&&typeof Ki.emit=="function"){Ki.emit("uncaughtException",I);return}console.error(I)},R=!1,k=null,J=0,ve=!1,Ae=!1,Ge=typeof queueMicrotask=="function"?function(I){queueMicrotask(function(){return queueMicrotask(I)})}:Z;Dt=Object.freeze({__proto__:null,c:function(I){return ne().useMemoCache(I)}});var pt={map:re,forEach:function(I,ge,Xe){re(I,function(){ge.apply(this,arguments)},Xe)},count:function(I){var ge=0;return re(I,function(){ge++}),ge},toArray:function(I){return re(I,function(ge){return ge})||[]},only:function(I){if(!Fe(I))throw Error("React.Children.only expected to receive a single React element child.");return I}};i.Activity=En,i.Children=pt,i.Component=m,i.Fragment=et,i.Profiler=ze,i.PureComponent=w,i.StrictMode=F,i.Suspense=st,i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=kt,i.__COMPILER_RUNTIME=Dt,i.act=function(I){var ge=kt.actQueue,Xe=J;J++;var Ze=kt.actQueue=ge!==null?ge:[],ut=!1;try{var Mt=I()}catch(xt){kt.thrownErrors.push(xt)}if(0<kt.thrownErrors.length)throw $(ge,Xe),I=K(kt.thrownErrors),kt.thrownErrors.length=0,I;if(Mt!==null&&typeof Mt=="object"&&typeof Mt.then=="function"){var bt=Mt;return Ge(function(){ut||ve||(ve=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(xt,sr){ut=!0,bt.then(function(or){if($(ge,Xe),Xe===0){try{ee(Ze),Z(function(){return X(or,xt,sr)})}catch(Zo){kt.thrownErrors.push(Zo)}if(0<kt.thrownErrors.length){var nc=K(kt.thrownErrors);kt.thrownErrors.length=0,sr(nc)}}else xt(or)},function(or){$(ge,Xe),0<kt.thrownErrors.length&&(or=K(kt.thrownErrors),kt.thrownErrors.length=0),sr(or)})}}}var Ct=Mt;if($(ge,Xe),Xe===0&&(ee(Ze),Ze.length!==0&&Ge(function(){ut||ve||(ve=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),kt.actQueue=null),0<kt.thrownErrors.length)throw I=K(kt.thrownErrors),kt.thrownErrors.length=0,I;return{then:function(xt,sr){ut=!0,Xe===0?(kt.actQueue=Ze,Z(function(){return X(Ct,xt,sr)})):xt(Ct)}}},i.cache=function(I){return function(){return I.apply(null,arguments)}},i.cacheSignal=function(){return null},i.captureOwnerStack=function(){var I=kt.getCurrentStack;return I===null?null:I()},i.cloneElement=function(I,ge,Xe){if(I==null)throw Error("The argument must be a React element, but you passed "+I+".");var Ze=Kn({},I.props),ut=I.key,Mt=I._owner;if(ge!=null){var bt;e:{if(nn.call(ge,"ref")&&(bt=Object.getOwnPropertyDescriptor(ge,"ref").get)&&bt.isReactWarning){bt=!1;break e}bt=ge.ref!==void 0}bt&&(Mt=D()),G(ge)&&(_(ge.key),ut=""+ge.key);for(Ct in ge)!nn.call(ge,Ct)||Ct==="key"||Ct==="__self"||Ct==="__source"||Ct==="ref"&&ge.ref===void 0||(Ze[Ct]=ge[Ct])}var Ct=arguments.length-2;if(Ct===1)Ze.children=Xe;else if(1<Ct){bt=Array(Ct);for(var xt=0;xt<Ct;xt++)bt[xt]=arguments[xt+2];Ze.children=bt}for(Ze=pe(I.type,ut,Ze,Mt,I._debugStack,I._debugTask),ut=2;ut<arguments.length;ut++)Se(arguments[ut]);return Ze},i.createContext=function(I){return I={$$typeof:Ie,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null},I.Provider=I,I.Consumer={$$typeof:He,_context:I},I._currentRenderer=null,I._currentRenderer2=null,I},i.createElement=function(I,ge,Xe){for(var Ze=2;Ze<arguments.length;Ze++)Se(arguments[Ze]);Ze={};var ut=null;if(ge!=null)for(xt in lr||!("__self"in ge)||"key"in ge||(lr=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),G(ge)&&(_(ge.key),ut=""+ge.key),ge)nn.call(ge,xt)&&xt!=="key"&&xt!=="__self"&&xt!=="__source"&&(Ze[xt]=ge[xt]);var Mt=arguments.length-2;if(Mt===1)Ze.children=Xe;else if(1<Mt){for(var bt=Array(Mt),Ct=0;Ct<Mt;Ct++)bt[Ct]=arguments[Ct+2];Object.freeze&&Object.freeze(bt),Ze.children=bt}if(I&&I.defaultProps)for(xt in Mt=I.defaultProps,Mt)Ze[xt]===void 0&&(Ze[xt]=Mt[xt]);ut&&P(Ze,typeof I=="function"?I.displayName||I.name||"Unknown":I);var xt=1e4>kt.recentlyCreatedOwnerStacks++;return pe(I,ut,Ze,D(),xt?Error("react-stack-top-frame"):Rl,xt?fa(x(I)):Po)},i.createRef=function(){var I={current:null};return Object.seal(I),I},i.forwardRef=function(I){I!=null&&I.$$typeof===Jt?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof I!="function"?console.error("forwardRef requires a render function but was given %s.",I===null?"null":typeof I):I.length!==0&&I.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",I.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),I!=null&&I.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var ge={$$typeof:at,render:I},Xe;return Object.defineProperty(ge,"displayName",{enumerable:!1,configurable:!0,get:function(){return Xe},set:function(Ze){Xe=Ze,I.name||I.displayName||(Object.defineProperty(I,"name",{value:Ze}),I.displayName=Ze)}}),ge},i.isValidElement=Fe,i.lazy=function(I){I={_status:-1,_result:I};var ge={$$typeof:ht,_payload:I,_init:me},Xe={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return I._ioInfo=Xe,ge._debugInfo=[{awaited:Xe}],ge},i.memo=function(I,ge){I??console.error("memo: The first argument must be a component. Instead received: %s",I===null?"null":typeof I),ge={$$typeof:Jt,type:I,compare:ge===void 0?null:ge};var Xe;return Object.defineProperty(ge,"displayName",{enumerable:!1,configurable:!0,get:function(){return Xe},set:function(Ze){Xe=Ze,I.name||I.displayName||(Object.defineProperty(I,"name",{value:Ze}),I.displayName=Ze)}}),ge},i.startTransition=function(I){var ge=kt.T,Xe={};Xe._updatedFibers=new Set,kt.T=Xe;try{var Ze=I(),ut=kt.S;ut!==null&&ut(Xe,Ze),typeof Ze=="object"&&Ze!==null&&typeof Ze.then=="function"&&(kt.asyncTransitions++,Ze.then(ue,ue),Ze.then(E,Y))}catch(Mt){Y(Mt)}finally{ge===null&&Xe._updatedFibers&&(I=Xe._updatedFibers.size,Xe._updatedFibers.clear(),10<I&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),ge!==null&&Xe.types!==null&&(ge.types!==null&&ge.types!==Xe.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),ge.types=Xe.types),kt.T=ge}},i.unstable_useCacheRefresh=function(){return ne().useCacheRefresh()},i.use=function(I){return ne().use(I)},i.useActionState=function(I,ge,Xe){return ne().useActionState(I,ge,Xe)},i.useCallback=function(I,ge){return ne().useCallback(I,ge)},i.useContext=function(I){var ge=ne();return I.$$typeof===He&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),ge.useContext(I)},i.useDebugValue=function(I,ge){return ne().useDebugValue(I,ge)},i.useDeferredValue=function(I,ge){return ne().useDeferredValue(I,ge)},i.useEffect=function(I,ge){return I??console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),ne().useEffect(I,ge)},i.useEffectEvent=function(I){return ne().useEffectEvent(I)},i.useId=function(){return ne().useId()},i.useImperativeHandle=function(I,ge,Xe){return ne().useImperativeHandle(I,ge,Xe)},i.useInsertionEffect=function(I,ge){return I??console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),ne().useInsertionEffect(I,ge)},i.useLayoutEffect=function(I,ge){return I??console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),ne().useLayoutEffect(I,ge)},i.useMemo=function(I,ge){return ne().useMemo(I,ge)},i.useOptimistic=function(I,ge){return ne().useOptimistic(I,ge)},i.useReducer=function(I,ge,Xe){return ne().useReducer(I,ge,Xe)},i.useRef=function(I){return ne().useRef(I)},i.useState=function(I){return ne().useState(I)},i.useSyncExternalStore=function(I,ge,Xe){return ne().useSyncExternalStore(I,ge,Xe)},i.useTransition=function(){return ne().useTransition()},i.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),$v=Bn(((i,a)=>{hf(),Ki.env.NODE_ENV==="production"?a.exports=zx():a.exports=Ux()})),N=F_($v());function E2(){function i(){return Math.floor((1+Math.random())*4294967296).toString(16).substring(1)}return i()+i()+i()+i()}function vb(i,a=2166136261){let s,f,h=a&2147483647;for(s=0,f=i.length;s<f;s++)h^=i.charCodeAt(s),h+=(h<<1)+(h<<4)+(h<<7)+(h<<8)+(h<<24);return h>>>0}function S2(i){let a=i.indexOf("#");if(a<0&&(a=i.lastIndexOf("/")),a<0&&(a=i.lastIndexOf(":")),!(a<0))return i.substring(a+1)}function Xv(i){return i&&i.type==="uri"}function E0(i){return i&&i.type==="string"}function Er(i,a){return i.linkTypeId===a.linkTypeId&&i.sourceId===a.sourceId&&i.targetId===a.targetId}function _m(i){const{linkTypeId:a,sourceId:s,targetId:f}=i;let h=vb(a);return h=h*31+vb(s),h=h*31+vb(f),h}function Bx(i,a){return i.id===a.id&&T2(i.types,a.types)&&w2(i.label.values,a.label.values)&&i.image===a.image&&qx(i.properties,a.properties)&&(!i.sources&&!a.sources||i.sources&&a.sources&&T2(i.sources,a.sources))}function T2(i,a){if(i.length!==a.length)return!1;for(let s=0;s<i.length;s++)if(i[s]!==a[s])return!1;return!0}function w2(i,a){if(i.length!==a.length)return!1;for(let s=0;s<i.length;s++){const f=i[s],h=a[s];if(f.value!==h.value||f.language!==h.language)return!1}return!0}function Hx(i,a){if(!Xv(i)||!Xv(a)||i.values.length!==a.values.length)return!1;for(let s=0;s<i.values.length;s++){const f=i.values[s],h=a.values[s];if(f.value!==h.value)return!1}return!0}function Ix(i,a){return!E0(i)||!E0(a)?!1:w2(i.values,a.values)}function qx(i,a){if(Object.keys(i).length!==Object.keys(a).length)return!1;for(const s in i.properties)if(s in i.properties){const f=i[s],h=a[s];if(!h||!Hx(f,h)&&!Ix(f,h))return!1}return!0}function Gx(i,a){if(i&&i[a])return nE(i[a]).join(", ")}function nE(i){return Xv(i)?i.values.map(({value:a})=>a):E0(i)?i.values.map(({value:a})=>a):[]}var jx="graph-explorer-default-template",Yx=class extends N.Component{render(){const i=this.props,a=i.imgUrl?N.createElement("div",{className:`${jx}__thumbnail`},N.createElement("img",{src:i.imgUrl})):void 0,s=i.isExpanded?N.createElement("div",null,N.createElement("div",{className:"graph-explorer-default-template_body_expander"},N.createElement("div",{className:"graph-explorer-default-template_body_expander__iri_label"},"IRI:"),N.createElement("div",{className:"graph-explorer-default-template_body_expander_iri"},N.createElement("a",{className:"graph-explorer-default-template_body_expander_iri__link",href:i.iri,title:i.iri},i.iri))),N.createElement("hr",{className:"graph-explorer-default-template_body_expander__hr"}),this.renderPropertyTable()):null;return N.createElement("div",{className:"graph-explorer-default-template",style:{backgroundColor:i.color,borderColor:i.color},"data-expanded":this.props.isExpanded},N.createElement("div",{className:"graph-explorer-default-template_type-line",title:i.label},N.createElement("div",{className:"graph-explorer-default-template_type-line__icon","aria-hidden":"true"},N.createElement("img",{src:i.iconUrl})),N.createElement("div",{title:i.types,className:"graph-explorer-default-template_type-line_text-container"},N.createElement("div",{className:"graph-explorer-default-template_type-line_text-container__text"},i.types))),a,N.createElement("div",{className:"graph-explorer-default-template_body",style:{borderColor:i.color}},N.createElement("span",{className:"graph-explorer-default-template_body__label",title:i.label},i.label),s))}renderPropertyTable(){const{propsAsList:i}=this.props;return i&&i.length>0?N.createElement("div",{className:"graph-explorer-default-template_body_expander_property-table"},i.map(a=>{const s=nE(a.property).map((f,h)=>N.createElement("div",{className:"graph-explorer-default-template_body_expander_property-table_row_key_values__value",key:h,title:f},f));return N.createElement("div",{key:a.id,className:"graph-explorer-default-template_body_expander_property-table_row"},N.createElement("div",{title:a.name+" ("+a.id+")",className:"graph-explorer-default-template_body_expander_property-table_row__key"},a.name),N.createElement("div",{className:"graph-explorer-default-template_body_expander_property-table_row_key_values"},s))})):N.createElement("div",null,"no properties")}},A2="https://graph-explorer.org/context/v1.json",iE="http://graph-explorer.org/NewEntity",aE="http://graph-explorer.org/NewLink",C2="http://graph-explorer.org/data/",Qv={forElement(){return`${C2}e_${E2()}`},forLink(){return`${C2}l_${E2()}`}},x2={PinnedProperties:"graph-explorer:pinnedProperties",CustomLabel:"graph-explorer:customLabel"},lo=class{constructor(){this.listeners=new Map}on(i,a){let s=this.listeners.get(i);s||(s=[],this.listeners.set(i,s)),s.push(a)}onAny(i){let a=this.anyListeners;a||(a=[],this.anyListeners=a),a.push(i)}off(i,a){const s=this.listeners.get(i);if(!s)return;const f=s.indexOf(a);f>=0&&s.splice(f,1)}offAny(i){const a=this.anyListeners;if(!a)return;const s=a.indexOf(i);s>=0&&a.splice(s,1)}trigger(i,a){const s=this.listeners.get(i);if(s)for(const f of s)f(a,i);if(this.anyListeners)for(const f of this.anyListeners)f({[i]:a},i)}},Hn=class{constructor(){this.unsubscribeByKey=new Map,this.onDispose=[]}listen(i,a,s){i.on(a,s),this.onDispose.push(()=>i.off(a,s))}listenAny(i,a){i.onAny(a),this.onDispose.push(()=>i.offAny(a))}listenOnce(i,a,s){let f=!1;const h=(m,v)=>{f=!0,i.off(a,h),s(m,v)};i.on(a,h),this.onDispose.push(()=>{f||i.off(a,h)})}stopListening(){for(const i of this.onDispose)i();this.onDispose.length=0,this.unsubscribeByKey.forEach(i=>{for(const a of i)a()}),this.unsubscribeByKey.clear()}},Zu={equals(i,a){return i.x===a.x&&i.y===a.y},length({x:i,y:a}){return Math.sqrt(i*i+a*a)},normalize({x:i,y:a}){if(i===0&&a===0)return{x:i,y:a};const s=1/Math.sqrt(i*i+a*a);return{x:i*s,y:a*s}},dot({x:i,y:a},{x:s,y:f}){return i*s+a*f},cross2D({x:i,y:a},{x:s,y:f}){return i*f-a*s}},rE={center({x:i,y:a,width:s,height:f}){return{x:i+s/2,y:a+f/2}}};function Ju(i){const{x:a,y:s}=i.position,{width:f,height:h}=i.size;return{x:a,y:s,width:f,height:h}}function L2(i,a){const s=i.width===0||i.height===0||a.x>i.x&&a.x<i.x+i.width&&a.y>i.y&&a.y<i.y+i.height,f=i.width/2,h=i.height/2,m={x:i.x+f,y:i.y+h};if(s)return m;const v=Zu.normalize({x:a.x-m.x,y:a.y-m.y}),w={x:Math.abs(v.x),y:v.y};return Zu.cross2D({x:f,y:-h},w)>0&&Zu.cross2D({x:f,y:h},w)<0?{x:m.x+f*Math.sign(v.x),y:m.y+f*v.y/Math.abs(v.x)}:{x:m.x+h*v.x/Math.abs(v.y),y:m.y+h*Math.sign(v.y)}}function bb(i,a){if(i===a)return!0;if(i.length!==a.length)return!1;for(let s=0;s<i.length;s++){const f=i[s],h=a[s];if(!(f.x===h.x&&f.y===h.y))return!1}return!0}function S0(i,a,s){const f=Ju(i),h=Ju(a),m=L2(f,s.length>0?s[0]:rE.center(h)),v=L2(h,s.length>0?s[s.length-1]:rE.center(f));return[m,...s,v]}function Pv(i){let a;return i.reduce((s,f)=>{const h=a?Zu.length({x:f.x-a.x,y:f.y-a.y}):0;return a=f,s+h},0)}function T0(i,a){if(i.length===0)throw new Error("Cannot compute a point for empty polyline");if(a<0)return i[0];let s=0;for(let f=1;f<i.length;f++){const h=i[f-1],m=i[f],v={x:m.x-h.x,y:m.y-h.y},w=Zu.length(v),E=s+w;if(a<E){const S=(a-s)/w;return{x:h.x+S*v.x,y:h.y+S*v.y}}else s=E}return i[i.length-1]}function O2(i,a){let s=1/0,f=0;for(let h=0;h<i.length-1;h++){const m=i[h],v=i[h+1],w={x:a.x-m.x,y:a.y-m.y},E={x:v.x-m.x,y:v.y-m.y},S=Zu.length(E),_=Zu.dot(w,E)/S;if(_<0||_>S)continue;const L=Math.abs(Zu.cross2D(w,E))/S;L<s&&(s=L,f=h)}return f}function D2(i,a){for(let s=i.length-1;s>=0;s--){const f=i[s],{x:h,y:m,width:v,height:w}=Ju(f);if(!f.temporary&&a.x>=h&&a.x<=h+v&&a.y>=m&&a.y<=m+w)return f}}function lE(i){const a=new Map;for(const s of i){const f=s.group;if(typeof f=="string"){let h=a.get(f);h||(h=[],a.set(f,h)),h.push(s)}}return a}var Ku=(function(i){return i.in="in",i.out="out",i})({}),fl=class{constructor(i){this.source=new lo,this.events=this.source,this.links=[];const{id:a,data:s,position:f={x:0,y:0},size:h={width:0,height:0},expanded:m=!1,group:v,elementState:w,temporary:E=!1}=i;this.id=a,this._data=s,this._position=f,this._size=h,this._expanded=m,this._group=v,this._elementState=w,this._temporary=E}get iri(){return this._data.id}get data(){return this._data}setData(i){const a=this._data;a!==i&&(this._data=i,this.source.trigger("changeData",{source:this,previous:a}),Vx(this,a.id,i.id))}get position(){return this._position}setPosition(i){const a=this._position;a.x===i.x&&a.y===i.y||(this._position=i,this.source.trigger("changePosition",{source:this,previous:a}))}get size(){return this._size}setSize(i){const a=this._size;a.width===i.width&&a.height===i.height||(this._size=i,this.source.trigger("changeSize",{source:this,previous:a}))}get isExpanded(){return this._expanded}setExpanded(i){const a=this._expanded;a!==i&&(this._expanded=i,this.source.trigger("changeExpanded",{source:this,previous:a}))}get group(){return this._group}setGroup(i){const a=this._group;a!==i&&(this._group=i,this.source.trigger("changeGroup",{source:this,previous:a}))}get elementState(){return this._elementState}setElementState(i){const a=this._elementState;a!==i&&(this._elementState=i,this.source.trigger("changeElementState",{source:this,previous:a}))}get temporary(){return this._temporary}focus(){this.source.trigger("requestedFocus",{source:this})}requestGroupContent(){this.source.trigger("requestedGroupContent",{source:this})}addToFilter(i,a){this.source.trigger("requestedAddToFilter",{source:this,linkType:i,direction:a})}redraw(){this.source.trigger("requestedRedraw",{source:this})}};function Vx(i,a,s){if(a!==s)for(const f of i.links){let h=f.data;h.sourceId===a&&(h={...h,sourceId:s}),h.targetId===a&&(h={...h,targetId:s}),f.setData(h)}}var M2=class{constructor(i){this.source=new lo,this.events=this.source;const{id:a,label:s=[],count:f}=i;this.id=a,this._label=s,this._count=f}get label(){return this._label}setLabel(i){const a=this._label;a!==i&&(this._label=i,this.source.trigger("changeLabel",{source:this,previous:a}))}get count(){return this._count}setCount(i){const a=this._count;a!==i&&(this._count=i,this.source.trigger("changeCount",{source:this,previous:a}))}},$x=class{constructor(i){this.source=new lo,this.events=this.source;const{id:a,label:s=[]}=i;this.id=a,this._label=s}get label(){return this._label}setLabel(i){const a=this._label;a!==i&&(this._label=i,this.source.trigger("changeLabel",{source:this,previous:a}))}},Jr=class{constructor(i){this.source=new lo,this.events=this.source;const{id:a=Qv.forLink(),typeId:s,sourceId:f,targetId:h,data:m,vertices:v=[],linkState:w}=i;this.id=a,this._typeId=s,this._sourceId=f,this._targetId=h,this._data=m,this._vertices=v,this._linkState=w}get typeId(){return this._typeId}get sourceId(){return this._sourceId}get targetId(){return this._targetId}get data(){return this._data}setData(i){const a=this._data;a!==i&&(this._data=i,this._typeId=i.linkTypeId,this.source.trigger("changeData",{source:this,previous:a}))}get labelBounds(){return this._labelBounds}setLabelBounds(i){const a=this._labelBounds;a!==i&&(this._labelBounds=i,this.source.trigger("changeLabelBounds",{source:this,previous:a}))}get layoutOnly(){return this._layoutOnly}setLayoutOnly(i){const a=this._layoutOnly;a!==i&&(this._layoutOnly=i,this.source.trigger("changeLayoutOnly",{source:this,previous:a}))}get vertices(){return this._vertices}setVertices(i){const a=this._vertices;bb(this._vertices,i)||(this._vertices=i,this.source.trigger("changeVertices",{source:this,previous:a}))}get linkState(){return this._linkState}setLinkState(i){const a=this._linkState;a!==i&&(this._linkState=i,this.source.trigger("changeLinkState",{source:this,previous:a}))}};function sE(i,a){return`graph-explorer-${a?"mstart":"mend"}-${i}`}var oE=class{constructor(i){this.source=new lo,this.events=this.source,this._isNew=!1,this._visible=!0,this._showLabel=!0;const{id:a,index:s,label:f=[]}=i;this.id=a,this._index=s,this._label=f}get index(){return this._index}setIndex(i){if(typeof this._index=="number")throw new Error("Cannot set index for link type more than once.");this._index=i}get label(){return this._label}setLabel(i){const a=this._label;a!==i&&(this._label=i,this.source.trigger("changeLabel",{source:this,previous:a}))}get visible(){return this._visible}get showLabel(){return this._showLabel}setVisibility(i){if(this._visible===i.visible&&this._showLabel===i.showLabel)return;const a=!!i.preventLoading||this._visible===i.visible;this._visible=i.visible,this._showLabel=i.showLabel,this.source.trigger("changeVisibility",{source:this,preventLoading:a})}get isNew(){return this._isNew}setIsNew(i){const a=this._isNew;a!==i&&(this._isNew=i,this.source.trigger("changeIsNew",{source:this,previous:a}))}},w0=class{constructor(i,a){this.link=i,this.vertexIndex=a}createAt(i){const a=[...this.link.vertices];a.splice(this.vertexIndex,0,i),this.link.setVertices(a)}moveTo(i){const a=[...this.link.vertices];a.splice(this.vertexIndex,1,i),this.link.setVertices(a)}remove(){const i=[...this.link.vertices];i.splice(this.vertexIndex,1),this.link.setVertices(i)}};function Zv(i,a,s){i.prototype=a.prototype=s,s.constructor=i}function _b(i,a){var s=Object.create(i.prototype);for(var f in a)s[f]=a[f];return s}function Em(){}var Jv=.7,Eb=1/Jv,A0="\\s*([+-]?\\d+)\\s*",Kv="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",df="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Xx=/^#([0-9a-f]{3,8})$/,Qx=new RegExp(`^rgb\\(${A0},${A0},${A0}\\)$`),Px=new RegExp(`^rgb\\(${df},${df},${df}\\)$`),Zx=new RegExp(`^rgba\\(${A0},${A0},${A0},${Kv}\\)$`),Jx=new RegExp(`^rgba\\(${df},${df},${df},${Kv}\\)$`),Kx=new RegExp(`^hsl\\(${Kv},${df},${df}\\)$`),Fx=new RegExp(`^hsla\\(${Kv},${df},${df},${Kv}\\)$`),R2={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Zv(Em,uE,{copy(i){return Object.assign(new this.constructor,this,i)},displayable(){return this.rgb().displayable()},hex:N2,formatHex:N2,formatHex8:Wx,formatHsl:e3,formatRgb:k2,toString:k2});function N2(){return this.rgb().formatHex()}function Wx(){return this.rgb().formatHex8()}function e3(){return q2(this).formatHsl()}function k2(){return this.rgb().formatRgb()}function uE(i){var a,s;return i=(i+"").trim().toLowerCase(),(a=Xx.exec(i))?(s=a[1].length,a=parseInt(a[1],16),s===6?z2(a):s===3?new hl(a>>8&15|a>>4&240,a>>4&15|a&240,(a&15)<<4|a&15,1):s===8?Sb(a>>24&255,a>>16&255,a>>8&255,(a&255)/255):s===4?Sb(a>>12&15|a>>8&240,a>>8&15|a>>4&240,a>>4&15|a&240,((a&15)<<4|a&15)/255):null):(a=Qx.exec(i))?new hl(a[1],a[2],a[3],1):(a=Px.exec(i))?new hl(a[1]*255/100,a[2]*255/100,a[3]*255/100,1):(a=Zx.exec(i))?Sb(a[1],a[2],a[3],a[4]):(a=Jx.exec(i))?Sb(a[1]*255/100,a[2]*255/100,a[3]*255/100,a[4]):(a=Kx.exec(i))?I2(a[1],a[2]/100,a[3]/100,1):(a=Fx.exec(i))?I2(a[1],a[2]/100,a[3]/100,a[4]):R2.hasOwnProperty(i)?z2(R2[i]):i==="transparent"?new hl(NaN,NaN,NaN,0):null}function z2(i){return new hl(i>>16&255,i>>8&255,i&255,1)}function Sb(i,a,s,f){return f<=0&&(i=a=s=NaN),new hl(i,a,s,f)}function U2(i){return i instanceof Em||(i=uE(i)),i?(i=i.rgb(),new hl(i.r,i.g,i.b,i.opacity)):new hl}function t3(i,a,s,f){return arguments.length===1?U2(i):new hl(i,a,s,f??1)}function hl(i,a,s,f){this.r=+i,this.g=+a,this.b=+s,this.opacity=+f}Zv(hl,t3,_b(Em,{brighter(i){return i=i==null?Eb:Math.pow(Eb,i),new hl(this.r*i,this.g*i,this.b*i,this.opacity)},darker(i){return i=i==null?Jv:Math.pow(Jv,i),new hl(this.r*i,this.g*i,this.b*i,this.opacity)},rgb(){return this},clamp(){return new hl(Sm(this.r),Sm(this.g),Sm(this.b),Tb(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:B2,formatHex:B2,formatHex8:n3,formatRgb:H2,toString:H2}));function B2(){return`#${Tm(this.r)}${Tm(this.g)}${Tm(this.b)}`}function n3(){return`#${Tm(this.r)}${Tm(this.g)}${Tm(this.b)}${Tm((isNaN(this.opacity)?1:this.opacity)*255)}`}function H2(){const i=Tb(this.opacity);return`${i===1?"rgb(":"rgba("}${Sm(this.r)}, ${Sm(this.g)}, ${Sm(this.b)}${i===1?")":`, ${i})`}`}function Tb(i){return isNaN(i)?1:Math.max(0,Math.min(1,i))}function Sm(i){return Math.max(0,Math.min(255,Math.round(i)||0))}function Tm(i){return i=Sm(i),(i<16?"0":"")+i.toString(16)}function I2(i,a,s,f){return f<=0?i=a=s=NaN:s<=0||s>=1?i=a=NaN:a<=0&&(i=NaN),new Fu(i,a,s,f)}function q2(i){if(i instanceof Fu)return new Fu(i.h,i.s,i.l,i.opacity);if(i instanceof Em||(i=uE(i)),!i)return new Fu;if(i instanceof Fu)return i;i=i.rgb();var a=i.r/255,s=i.g/255,f=i.b/255,h=Math.min(a,s,f),m=Math.max(a,s,f),v=NaN,w=m-h,E=(m+h)/2;return w?(a===m?v=(s-f)/w+(s<f)*6:s===m?v=(f-a)/w+2:v=(a-s)/w+4,w/=E<.5?m+h:2-m-h,v*=60):w=E>0&&E<1?0:v,new Fu(v,w,E,i.opacity)}function i3(i,a,s,f){return arguments.length===1?q2(i):new Fu(i,a,s,f??1)}function Fu(i,a,s,f){this.h=+i,this.s=+a,this.l=+s,this.opacity=+f}Zv(Fu,i3,_b(Em,{brighter(i){return i=i==null?Eb:Math.pow(Eb,i),new Fu(this.h,this.s,this.l*i,this.opacity)},darker(i){return i=i==null?Jv:Math.pow(Jv,i),new Fu(this.h,this.s,this.l*i,this.opacity)},rgb(){var i=this.h%360+(this.h<0)*360,a=isNaN(i)||isNaN(this.s)?0:this.s,s=this.l,f=s+(s<.5?s:1-s)*a,h=2*s-f;return new hl(cE(i>=240?i-240:i+120,h,f),cE(i,h,f),cE(i<120?i+240:i-120,h,f),this.opacity)},clamp(){return new Fu(G2(this.h),wb(this.s),wb(this.l),Tb(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const i=Tb(this.opacity);return`${i===1?"hsl(":"hsla("}${G2(this.h)}, ${wb(this.s)*100}%, ${wb(this.l)*100}%${i===1?")":`, ${i})`}`}}));function G2(i){return i=(i||0)%360,i<0?i+360:i}function wb(i){return Math.max(0,Math.min(1,i||0))}function cE(i,a,s){return(i<60?a+(s-a)*i/60:i<180?s:i<240?a+(s-a)*(240-i)/60:a)*255}var a3=Math.PI/180,r3=180/Math.PI,Ab=18,j2=.96422,Y2=1,V2=.82521,$2=4/29,C0=6/29,X2=3*C0*C0,l3=C0*C0*C0;function Q2(i){if(i instanceof pf)return new pf(i.l,i.a,i.b,i.opacity);if(i instanceof Ch)return P2(i);i instanceof hl||(i=U2(i));var a=pE(i.r),s=pE(i.g),f=pE(i.b),h=fE((.2225045*a+.7168786*s+.0606169*f)/Y2),m,v;return a===s&&s===f?m=v=h:(m=fE((.4360747*a+.3850649*s+.1430804*f)/j2),v=fE((.0139322*a+.0971045*s+.7141733*f)/V2)),new pf(116*h-16,500*(m-h),200*(h-v),i.opacity)}function s3(i,a,s,f){return arguments.length===1?Q2(i):new pf(i,a,s,f??1)}function pf(i,a,s,f){this.l=+i,this.a=+a,this.b=+s,this.opacity=+f}Zv(pf,s3,_b(Em,{brighter(i){return new pf(this.l+Ab*(i??1),this.a,this.b,this.opacity)},darker(i){return new pf(this.l-Ab*(i??1),this.a,this.b,this.opacity)},rgb(){var i=(this.l+16)/116,a=isNaN(this.a)?i:i+this.a/500,s=isNaN(this.b)?i:i-this.b/200;return a=j2*hE(a),i=Y2*hE(i),s=V2*hE(s),new hl(dE(3.1338561*a-1.6168667*i-.4906146*s),dE(-.9787684*a+1.9161415*i+.033454*s),dE(.0719453*a-.2289914*i+1.4052427*s),this.opacity)}}));function fE(i){return i>l3?Math.pow(i,1/3):i/X2+$2}function hE(i){return i>C0?i*i*i:X2*(i-$2)}function dE(i){return 255*(i<=.0031308?12.92*i:1.055*Math.pow(i,1/2.4)-.055)}function pE(i){return(i/=255)<=.04045?i/12.92:Math.pow((i+.055)/1.055,2.4)}function o3(i){if(i instanceof Ch)return new Ch(i.h,i.c,i.l,i.opacity);if(i instanceof pf||(i=Q2(i)),i.a===0&&i.b===0)return new Ch(NaN,0<i.l&&i.l<100?0:NaN,i.l,i.opacity);var a=Math.atan2(i.b,i.a)*r3;return new Ch(a<0?a+360:a,Math.sqrt(i.a*i.a+i.b*i.b),i.l,i.opacity)}function wm(i,a,s,f){return arguments.length===1?o3(i):new Ch(i,a,s,f??1)}function Ch(i,a,s,f){this.h=+i,this.c=+a,this.l=+s,this.opacity=+f}function P2(i){if(isNaN(i.h))return new pf(i.l,0,0,i.opacity);var a=i.h*a3;return new pf(i.l,Math.cos(a)*i.c,Math.sin(a)*i.c,i.opacity)}Zv(Ch,wm,_b(Em,{brighter(i){return new Ch(this.h,this.c,this.l+Ab*(i??1),this.opacity)},darker(i){return new Ch(this.h,this.c,this.l-Ab*(i??1),this.opacity)},rgb(){return P2(this).rgb()}}));var gE=class{constructor(i=0){this.waitingTime=i,this.useAnimationFrame=i===0,this.runSynchronously=this.runSynchronously.bind(this)}schedule(){typeof this.scheduled>"u"&&(this.useAnimationFrame?this.scheduled=requestAnimationFrame(this.runSynchronously):this.scheduled=Number(setTimeout(this.runSynchronously,this.waitingTime)))}runSynchronously(){this.cancelScheduledTimeout()&&this.run()}dispose(){this.cancelScheduledTimeout()}cancelScheduledTimeout(){return typeof this.scheduled<"u"?(this.useAnimationFrame?cancelAnimationFrame(this.scheduled):clearTimeout(this.scheduled),this.scheduled=void 0,!0):!1}},Cb=class extends gE{constructor(i,a=200){super(a),this.onFetch=i,this.fetchingQueue=Object.create(null)}push(i){this.fetchingQueue[i]=!0,this.schedule()}clear(){this.fetchingQueue=Object.create(null)}run(){const{fetchingQueue:i,onFetch:a}=this;this.fetchingQueue=Object.create(null),a(Object.keys(i))}},us=class extends gE{call(i){this.callback=i,this.schedule()}run(){const i=this.callback;i()}},ii=class{static{this.NEVER_SIGNAL={aborted:!1,addEventListener:()=>{},removeEventListener:()=>{}}}constructor(){this.source=new lo,this.aborted=!1,this.signal=new class{constructor(i){this.parent=i}get aborted(){return this.parent.aborted}addEventListener(i,a){i==="abort"&&(this.parent.source?this.parent.source.on("abort",a):a())}removeEventListener(i,a){i==="abort"&&this.parent.source&&this.parent.source.off("abort",a)}}(this)}abort(){this.aborted||(this.aborted=!0,this.source.trigger("abort",void 0),this.source=void 0)}},ar={throwIfAborted(i){if(i.aborted)throw new mE},mapCancelledToNull(i,a){const s=h=>i.aborted?null:h,f=h=>i.aborted?null:Promise.reject(h);return a.then(s,f)}},mE=class g2 extends Error{constructor(a="Operation was cancelled"){super(a),this.name=g2.name,Object.setPrototypeOf(this,g2.prototype)}};function Z2(i){return new Promise(a=>setTimeout(a,i))}function J2(i,a,s){return new Promise(f=>{let h,m;const v=w=>{if(s&&s.signal.aborted)return;m=m||w;let E=w-m;E>i&&(E=i),a(E/i),E<i?h=requestAnimationFrame(v):f()};s.signal.addEventListener("abort",()=>{cancelAnimationFrame(h),f()}),h=requestAnimationFrame(v)})}function K2(i){return i<0?0:i>1?1:i*i*(3-2*i)}var xb=class{constructor(i){this.subscribe=i,this.observedKeys=new Map}observe(i){if(i.length===0&&this.observedKeys.size===0)return;const a=new Map;for(const s of i){if(a.has(s))continue;let f=this.observedKeys.get(s);f||(f=this.subscribe(s)),a.set(s,f)}this.observedKeys.forEach((s,f)=>{a.has(f)||s()}),this.observedKeys=a}stopListening(){this.observe([])}};function F2(i,a,s){return new xb(f=>{const h=i.getClass(f);if(h)return h.events.on(a,s),()=>h.events.off(a,s)})}function W2(i,a,s){return new xb(f=>{const h=i.getProperty(f);if(h)return h.events.on(a,s),()=>h.events.off(a,s)})}function u3(i,a,s){return new xb(f=>{const h=i.createLinkType(f);if(h)return h.events.on(a,s),()=>h.events.off(a,s)})}function c3(i,a){return{title:i,invoke:a}}function f3(i,a){const s={title:i,invoke:()=>(a(),f)},f={title:"Skipped effect: "+i,invoke:()=>s};return s}var Wu={create:c3,effect:f3},eT=class{constructor(){this.source=new lo,this.events=this.source,this.undoStack=[],this.redoStack=[],this.storeBatch=()=>{},this.discardBatch=()=>{}}reset(){this.source.trigger("historyChanged",{hasChanges:!1})}undo(){throw new Error("Undo is unsupported")}redo(){throw new Error("Redo is unsupported")}execute(i){i.invoke(),this.source.trigger("historyChanged",{hasChanges:!0})}registerToUndo(i){this.source.trigger("historyChanged",{hasChanges:!0})}startBatch(i){return{history:this,store:this.storeBatch,discard:this.discardBatch}}},yE=class mb{constructor(a,s){this.elementState=a,this.linkState=s,this.title="Move elements and links"}static capture(a){return mb.captureElementsAndLinks(a.elements,a.links)}static captureElementsAndLinks(a,s){return new mb(a.map(f=>({element:f,position:f.position})),s.map(f=>({link:f,vertices:f.vertices})))}hasChanges(){return this.elementState.length>0||this.linkState.length>0}filterOutUnchanged(){return new mb(this.elementState.filter(({element:a,position:s})=>!Zu.equals(a.position,s)),this.linkState.filter(({link:a,vertices:s})=>!bb(a.vertices,s)))}invoke(){const a=mb.captureElementsAndLinks(this.elementState.map(s=>s.element),this.linkState.map(s=>s.link));for(const{element:s,position:f}of[...this.elementState].reverse())s.setPosition(f);for(const{link:s,vertices:f}of this.linkState)s.setVertices(f);return a}};function tT(i){const a=i.vertices;return Wu.create("Change link vertices",()=>{const s=tT(i);return i.setVertices(a),s})}function Lb(i,a){const s=a?"Expand element":"Collapse element";return Wu.create(s,()=>(i.setExpanded(a),Lb(i,!a)))}function vE(i){const{linkType:a,visible:s,showLabel:f,preventLoading:h}=i;return Wu.create("Change link type visibility",()=>{const m=a.visible,v=a.showLabel;return a.setVisibility({visible:s,showLabel:f,preventLoading:h}),vE({linkType:a,visible:m,showLabel:v,preventLoading:h})})}function Ob(i,a,s){const f=i.elements.filter(m=>m.iri===a),h=f.length>0?f[0].data:void 0;return Wu.create("Set element data",()=>{for(const m of i.elements.filter(v=>v.iri===a))m.setData(s);return Ob(i,s.id,h)})}function Db(i,a,s){if(!Er(a,s))throw new Error("Cannot change typeId, sourceId or targetId when changing link data");return Wu.create("Set link data",()=>{for(const f of i.links)Er(f.data,a)&&f.setData(s);return Db(i,s,a)})}var Fv,h3=m2((()=>{Fv=globalThis||self})),p3=Bn(((i,a)=>{h3(),(function(){var s,f="4.18.1",h=200,m="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",v="Expected a function",w="Invalid `variable` option passed into `_.template`",E="Invalid `imports` option passed into `_.template`",S="__lodash_hash_undefined__",_=500,L="__lodash_placeholder__",x=1,D=2,B=4,G=1,P=2,te=1,pe=2,Te=4,Se=8,Fe=16,Re=32,Je=64,Be=128,W=256,re=512,me=30,ne="...",ue=800,Z=16,K=1,$=2,X=3,ee=1/0,ye=9007199254740991,Me=17976931348623157e292,et=NaN,F=4294967295,ze=F-1,He=F>>>1,Ie=[["ary",Be],["bind",te],["bindKey",pe],["curry",Se],["curryRight",Fe],["flip",re],["partial",Re],["partialRight",Je],["rearg",W]],at="[object Arguments]",st="[object Array]",At="[object AsyncFunction]",Jt="[object Boolean]",ht="[object Date]",En="[object DOMException]",tt="[object Error]",Sr="[object Function]",Ml="[object GeneratorFunction]",Kn="[object Map]",Ai="[object Number]",Dt="[object Null]",qa="[object Object]",ho="[object Promise]",kt="[object Proxy]",nn="[object RegExp]",fa="[object Set]",La="[object String]",lr="[object Symbol]",Cn="[object Undefined]",Rl="[object WeakMap]",Po="[object WeakSet]",ji="[object ArrayBuffer]",ha="[object DataView]",Y="[object Float32Array]",R="[object Float64Array]",k="[object Int8Array]",J="[object Int16Array]",ve="[object Int32Array]",Ae="[object Uint8Array]",Ge="[object Uint8ClampedArray]",pt="[object Uint16Array]",I="[object Uint32Array]",ge=/\b__p \+= '';/g,Xe=/\b(__p \+=) '' \+/g,Ze=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ut=/&(?:amp|lt|gt|quot|#39);/g,Mt=/[&<>"']/g,bt=RegExp(ut.source),Ct=RegExp(Mt.source),xt=/<%-([\s\S]+?)%>/g,sr=/<%([\s\S]+?)%>/g,or=/<%=([\s\S]+?)%>/g,nc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Zo=/^\w*$/,gp=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ic=/[\\^$.*+?()[\]{}|]/g,ds=RegExp(ic.source),ur=/^\s+/,mp=/\s/,Nm=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,yp=/\{\n\/\* \[wrapped with (.+)\] \*/,km=/,? & /,Nl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,In=/[()=,{}\[\]\/\s]/,cr=/\\(\\)?/g,Jo=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Rh=/\w*$/,zm=/^[-+]0x[0-9a-f]+$/i,B0=/^0b[01]+$/i,Um=/^\[object .+?Constructor\]$/,ps=/^0o[0-7]+$/i,vp=/^(?:0|[1-9]\d*)$/,ac=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,gs=/($^)/,bf=/['\n\r\u2028\u2029\\]/g,ms="\\ud800-\\udfff",xn="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ko="\\u2700-\\u27bf",po="a-z\\xdf-\\xf6\\xf8-\\xff",Fo="\\xac\\xb1\\xd7\\xf7",ys="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",bp="\\u2000-\\u206f",_p=" \\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",rc="A-Z\\xc0-\\xd6\\xd8-\\xde",lc="\\ufe0e\\ufe0f",sc=Fo+ys+bp+_p,_f="['’]",go="["+ms+"]",Tr="["+sc+"]",oc="["+xn+"]",Ep="\\d+",Sp="["+Ko+"]",Tp="["+po+"]",Ef="[^"+ms+sc+Ep+Ko+po+rc+"]",Bm="\\ud83c[\\udffb-\\udfff]",Kr="(?:"+oc+"|"+Bm+")",Sf="[^"+ms+"]",uc="(?:\\ud83c[\\udde6-\\uddff]){2}",mo="[\\ud800-\\udbff][\\udc00-\\udfff]",kl="["+rc+"]",wp="\\u200d",Ap="(?:"+Tp+"|"+Ef+")",vs="(?:"+kl+"|"+Ef+")",Hm="(?:"+_f+"(?:d|ll|m|re|s|t|ve))?",Im="(?:"+_f+"(?:D|LL|M|RE|S|T|VE))?",qm=Kr+"?",Cp="["+lc+"]?",y1="(?:"+wp+"(?:"+[Sf,uc,mo].join("|")+")"+Cp+qm+")*",Nh="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",dl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",pl=Cp+qm+y1,xp="(?:"+[Sp,uc,mo].join("|")+")"+pl,Lp="(?:"+[Sf+oc+"?",oc,uc,mo,go].join("|")+")",bs=RegExp(_f,"g"),cc=RegExp(oc,"g"),fc=RegExp(Bm+"(?="+Bm+")|"+Lp+pl,"g"),Tf=RegExp([kl+"?"+Tp+"+"+Hm+"(?="+[Tr,kl,"$"].join("|")+")",vs+"+"+Im+"(?="+[Tr,kl+Ap,"$"].join("|")+")",kl+"?"+Ap+"+"+Hm,kl+"+"+Im,dl,Nh,Ep,xp].join("|"),"g"),Gm=RegExp("["+wp+ms+xn+lc+"]"),da=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,yo=["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"],kh=-1,Nn={};Nn[Y]=Nn[R]=Nn[k]=Nn[J]=Nn[ve]=Nn[Ae]=Nn[Ge]=Nn[pt]=Nn[I]=!0,Nn[at]=Nn[st]=Nn[ji]=Nn[Jt]=Nn[ha]=Nn[ht]=Nn[tt]=Nn[Sr]=Nn[Kn]=Nn[Ai]=Nn[qa]=Nn[nn]=Nn[fa]=Nn[La]=Nn[Rl]=!1;var dn={};dn[at]=dn[st]=dn[ji]=dn[ha]=dn[Jt]=dn[ht]=dn[Y]=dn[R]=dn[k]=dn[J]=dn[ve]=dn[Kn]=dn[Ai]=dn[qa]=dn[nn]=dn[fa]=dn[La]=dn[lr]=dn[Ae]=dn[Ge]=dn[pt]=dn[I]=!0,dn[tt]=dn[Sr]=dn[Rl]=!1;var jm={À:"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"},Op={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ym={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Dp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},zh=parseFloat,H0=parseInt,pa=typeof Fv=="object"&&Fv&&Fv.Object===Object&&Fv,Wo=typeof self=="object"&&self&&self.Object===Object&&self,Ci=pa||Wo||Function("return this")(),eu=typeof i=="object"&&i&&!i.nodeType&&i,hc=eu&&typeof a=="object"&&a&&!a.nodeType&&a,Mp=hc&&hc.exports===eu,Uh=Mp&&pa.process,Ga=(function(){try{var _e=hc&&hc.require&&hc.require("util").types;return _e||Uh&&Uh.binding&&Uh.binding("util")}catch{}})(),Bh=Ga&&Ga.isArrayBuffer,dc=Ga&&Ga.isDate,Vm=Ga&&Ga.isMap,Hh=Ga&&Ga.isRegExp,$m=Ga&&Ga.isSet,Xm=Ga&&Ga.isTypedArray;function ja(_e,qe,Ne){switch(Ne.length){case 0:return _e.call(qe);case 1:return _e.call(qe,Ne[0]);case 2:return _e.call(qe,Ne[0],Ne[1]);case 3:return _e.call(qe,Ne[0],Ne[1],Ne[2])}return _e.apply(qe,Ne)}function I0(_e,qe,Ne,lt){for(var Lt=-1,cn=_e==null?0:_e.length;++Lt<cn;){var Fn=_e[Lt];qe(lt,Fn,Ne(Fn),_e)}return lt}function Fi(_e,qe){for(var Ne=-1,lt=_e==null?0:_e.length;++Ne<lt&&qe(_e[Ne],Ne,_e)!==!1;);return _e}function pc(_e,qe){for(var Ne=_e==null?0:_e.length;Ne--&&qe(_e[Ne],Ne,_e)!==!1;);return _e}function gl(_e,qe){for(var Ne=-1,lt=_e==null?0:_e.length;++Ne<lt;)if(!qe(_e[Ne],Ne,_e))return!1;return!0}function _s(_e,qe){for(var Ne=-1,lt=_e==null?0:_e.length,Lt=0,cn=[];++Ne<lt;){var Fn=_e[Ne];qe(Fn,Ne,_e)&&(cn[Lt++]=Fn)}return cn}function wf(_e,qe){return!!(_e!=null&&_e.length)&&gc(_e,qe,0)>-1}function Fr(_e,qe,Ne){for(var lt=-1,Lt=_e==null?0:_e.length;++lt<Lt;)if(Ne(qe,_e[lt]))return!0;return!1}function ri(_e,qe){for(var Ne=-1,lt=_e==null?0:_e.length,Lt=Array(lt);++Ne<lt;)Lt[Ne]=qe(_e[Ne],Ne,_e);return Lt}function Yi(_e,qe){for(var Ne=-1,lt=qe.length,Lt=_e.length;++Ne<lt;)_e[Lt+Ne]=qe[Ne];return _e}function ml(_e,qe,Ne,lt){var Lt=-1,cn=_e==null?0:_e.length;for(lt&&cn&&(Ne=_e[++Lt]);++Lt<cn;)Ne=qe(Ne,_e[Lt],Lt,_e);return Ne}function Rp(_e,qe,Ne,lt){var Lt=_e==null?0:_e.length;for(lt&&Lt&&(Ne=_e[--Lt]);Lt--;)Ne=qe(Ne,_e[Lt],Lt,_e);return Ne}function Af(_e,qe){for(var Ne=-1,lt=_e==null?0:_e.length;++Ne<lt;)if(qe(_e[Ne],Ne,_e))return!0;return!1}var Ih=mc("length");function wr(_e){return _e.split("")}function v1(_e){return _e.match(Nl)||[]}function Np(_e,qe,Ne){var lt;return Ne(_e,function(Lt,cn,Fn){if(qe(Lt,cn,Fn))return lt=cn,!1}),lt}function Cf(_e,qe,Ne,lt){for(var Lt=_e.length,cn=Ne+(lt?1:-1);lt?cn--:++cn<Lt;)if(qe(_e[cn],cn,_e))return cn;return-1}function gc(_e,qe,Ne){return qe===qe?qp(_e,qe,Ne):Cf(_e,Qm,Ne)}function kp(_e,qe,Ne,lt){for(var Lt=Ne-1,cn=_e.length;++Lt<cn;)if(lt(_e[Lt],qe))return Lt;return-1}function Qm(_e){return _e!==_e}function tu(_e,qe){var Ne=_e==null?0:_e.length;return Ne?Wi(_e,qe)/Ne:et}function mc(_e){return function(qe){return qe==null?s:qe[_e]}}function xf(_e){return function(qe){return _e==null?s:_e[qe]}}function qh(_e,qe,Ne,lt,Lt){return Lt(_e,function(cn,Fn,fn){Ne=lt?(lt=!1,cn):qe(Ne,cn,Fn,fn)}),Ne}function zp(_e,qe){var Ne=_e.length;for(_e.sort(qe);Ne--;)_e[Ne]=_e[Ne].value;return _e}function Wi(_e,qe){for(var Ne,lt=-1,Lt=_e.length;++lt<Lt;){var cn=qe(_e[lt]);cn!==s&&(Ne=Ne===s?cn:Ne+cn)}return Ne}function nu(_e,qe){for(var Ne=-1,lt=Array(_e);++Ne<_e;)lt[Ne]=qe(Ne);return lt}function iu(_e,qe){return ri(qe,function(Ne){return[Ne,_e[Ne]]})}function au(_e){return _e&&_e.slice(0,Ss(_e)+1).replace(ur,"")}function ga(_e){return function(qe){return _e(qe)}}function Gh(_e,qe){return ri(qe,function(Ne){return _e[Ne]})}function yc(_e,qe){return _e.has(qe)}function jh(_e,qe){for(var Ne=-1,lt=_e.length;++Ne<lt&&gc(qe,_e[Ne],0)>-1;);return Ne}function Up(_e,qe){for(var Ne=_e.length;Ne--&&gc(qe,_e[Ne],0)>-1;);return Ne}function Bp(_e,qe){for(var Ne=_e.length,lt=0;Ne--;)_e[Ne]===qe&&++lt;return lt}var Es=xf(jm),Pm=xf(Op);function Zm(_e){return"\\"+Dp[_e]}function Hp(_e,qe){return _e==null?s:_e[qe]}function yl(_e){return Gm.test(_e)}function Jm(_e){return da.test(_e)}function q0(_e){for(var qe,Ne=[];!(qe=_e.next()).done;)Ne.push(qe.value);return Ne}function Oa(_e){var qe=-1,Ne=Array(_e.size);return _e.forEach(function(lt,Lt){Ne[++qe]=[Lt,lt]}),Ne}function ma(_e,qe){return function(Ne){return _e(qe(Ne))}}function Da(_e,qe){for(var Ne=-1,lt=_e.length,Lt=0,cn=[];++Ne<lt;){var Fn=_e[Ne];(Fn===qe||Fn===L)&&(_e[Ne]=L,cn[Lt++]=Ne)}return cn}function Lf(_e){var qe=-1,Ne=Array(_e.size);return _e.forEach(function(lt){Ne[++qe]=lt}),Ne}function Ip(_e){var qe=-1,Ne=Array(_e.size);return _e.forEach(function(lt){Ne[++qe]=[lt,lt]}),Ne}function qp(_e,qe,Ne){for(var lt=Ne-1,Lt=_e.length;++lt<Lt;)if(_e[lt]===qe)return lt;return-1}function Gp(_e,qe,Ne){for(var lt=Ne+1;lt--;)if(_e[lt]===qe)return lt;return lt}function vc(_e){return yl(_e)?Df(_e):Ih(_e)}function bi(_e){return yl(_e)?vo(_e):wr(_e)}function Ss(_e){for(var qe=_e.length;qe--&&mp.test(_e.charAt(qe)););return qe}var Of=xf(Ym);function Df(_e){for(var qe=fc.lastIndex=0;fc.test(_e);)++qe;return qe}function vo(_e){return _e.match(fc)||[]}function ru(_e){return _e.match(Tf)||[]}var Ar=(function _e(qe){qe=qe==null?Ci:Ar.defaults(Ci.Object(),qe,Ar.pick(Ci,yo));var Ne=qe.Array,lt=qe.Date,Lt=qe.Error,cn=qe.Function,Fn=qe.Math,fn=qe.Object,Yh=qe.RegExp,jp=qe.String,ya=qe.TypeError,bo=Ne.prototype,Ma=cn.prototype,mn=fn.prototype,va=qe["__core-js_shared__"],Ts=Ma.toString,pn=mn.hasOwnProperty,ws=0,_o=(function(){var c=/[^.]+$/.exec(va&&va.keys&&va.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""})(),fr=mn.toString,bc=Ts.call(fn),As=Ci._,_c=Yh("^"+Ts.call(pn).replace(ic,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Wr=Mp?qe.Buffer:s,zl=qe.Symbol,Gn=qe.Uint8Array,Ya=Wr?Wr.allocUnsafe:s,Ni=ma(fn.getPrototypeOf,fn),vl=fn.create,Cr=mn.propertyIsEnumerable,ea=bo.splice,Mf=zl?zl.isConcatSpreadable:s,lu=zl?zl.iterator:s,Cs=zl?zl.toStringTag:s,xr=(function(){try{var c=Na(fn,"defineProperty");return c({},"",{}),c}catch{}})(),el=qe.clearTimeout!==Ci.clearTimeout&&qe.clearTimeout,hr=lt&&lt.now!==Ci.Date.now&&lt.now,xs=qe.setTimeout!==Ci.setTimeout&&qe.setTimeout,Ec=Fn.ceil,Eo=Fn.floor,Lr=fn.getOwnPropertySymbols,Or=Wr?Wr.isBuffer:s,bl=qe.isFinite,Ul=bo.join,Bl=ma(fn.keys,fn),jn=Fn.max,ba=Fn.min,Ls=lt.now,Yp=qe.parseInt,Vp=Fn.random,yn=bo.reverse,qn=Na(qe,"DataView"),Yt=Na(qe,"Map"),tl=Na(qe,"Promise"),ki=Na(qe,"Set"),su=Na(qe,"WeakMap"),dr=Na(fn,"create"),Rf=su&&new su,Os={},Sc=rl(qn),Ds=rl(Yt),$p=rl(tl),Nf=rl(ki),Vh=rl(su),_l=zl?zl.prototype:s,Vi=_l?_l.valueOf:s,Va=_l?_l.toString:s;function j(c){if(Li(c)&&!Nt(c)&&!(c instanceof Zt)){if(c instanceof zi)return c;if(pn.call(c,"__wrapped__"))return Qn(c)}return new zi(c)}var Hl=(function(){function c(){}return function(p){if(!di(p))return{};if(vl)return vl(p);c.prototype=p;var T=new c;return c.prototype=s,T}})();function Ms(){}function zi(c,p){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!p,this.__index__=0,this.__values__=s}j.templateSettings={escape:xt,evaluate:sr,interpolate:or,variable:"",imports:{_:j}},j.prototype=Ms.prototype,j.prototype.constructor=j,zi.prototype=Hl(Ms.prototype),zi.prototype.constructor=zi;function Zt(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=F,this.__views__=[]}function Tc(){var c=new Zt(this.__wrapped__);return c.__actions__=Ra(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=Ra(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=Ra(this.__views__),c}function _a(){if(this.__filtered__){var c=new Zt(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}function $h(){var c=this.__wrapped__.value(),p=this.__dir__,T=Nt(c),M=p<0,H=T?c.length:0,Q=Ff(0,H,this.__views__),le=Q.start,ce=Q.end,we=ce-le,Pe=M?ce:le-1,$e=this.__iteratees__,We=$e.length,ct=0,ft=ba(we,this.__takeCount__);if(!T||!M&&H==we&&ft==we)return $f(c,this.__actions__);var Tt=[];e:for(;we--&&ct<ft;){Pe+=p;for(var zt=-1,vt=c[Pe];++zt<We;){var Jn=$e[zt],on=Jn.iteratee,sa=Jn.type,ns=on(vt);if(sa==$)vt=ns;else if(!ns){if(sa==K)continue e;break e}}Tt[ct++]=vt}return Tt}Zt.prototype=Hl(Ms.prototype),Zt.prototype.constructor=Zt;function Rs(c){var p=-1,T=c==null?0:c.length;for(this.clear();++p<T;){var M=c[p];this.set(M[0],M[1])}}function Km(){this.__data__=dr?dr(null):{},this.size=0}function ou(c){var p=this.has(c)&&delete this.__data__[c];return this.size-=p?1:0,p}function Fm(c){var p=this.__data__;if(dr){var T=p[c];return T===S?s:T}return pn.call(p,c)?p[c]:s}function Ui(c){var p=this.__data__;return dr?p[c]!==s:pn.call(p,c)}function Ns(c,p){var T=this.__data__;return this.size+=this.has(c)?0:1,T[c]=dr&&p===s?S:p,this}Rs.prototype.clear=Km,Rs.prototype.delete=ou,Rs.prototype.get=Fm,Rs.prototype.has=Ui,Rs.prototype.set=Ns;function li(c){var p=-1,T=c==null?0:c.length;for(this.clear();++p<T;){var M=c[p];this.set(M[0],M[1])}}function uu(){this.__data__=[],this.size=0}function Vt(c){var p=this.__data__,T=Us(p,c);return T<0?!1:(T==p.length-1?p.pop():ea.call(p,T,1),--this.size,!0)}function Ke(c){var p=this.__data__,T=Us(p,c);return T<0?s:p[T][1]}function Il(c){return Us(this.__data__,c)>-1}function Xp(c,p){var T=this.__data__,M=Us(T,c);return M<0?(++this.size,T.push([c,p])):T[M][1]=p,this}li.prototype.clear=uu,li.prototype.delete=Vt,li.prototype.get=Ke,li.prototype.has=Il,li.prototype.set=Xp;function Ln(c){var p=-1,T=c==null?0:c.length;for(this.clear();++p<T;){var M=c[p];this.set(M[0],M[1])}}function Wm(){this.size=0,this.__data__={hash:new Rs,map:new(Yt||li),string:new Rs}}function Qp(c){var p=gd(this,c).delete(c);return this.size-=p?1:0,p}function cu(c){return gd(this,c).get(c)}function Xh(c){return gd(this,c).has(c)}function Pp(c,p){var T=gd(this,c),M=T.size;return T.set(c,p),this.size+=T.size==M?0:1,this}Ln.prototype.clear=Wm,Ln.prototype.delete=Qp,Ln.prototype.get=cu,Ln.prototype.has=Xh,Ln.prototype.set=Pp;function ks(c){var p=-1,T=c==null?0:c.length;for(this.__data__=new Ln;++p<T;)this.add(c[p])}function fu(c){return this.__data__.set(c,S),this}function Qh(c){return this.__data__.has(c)}ks.prototype.add=ks.prototype.push=fu,ks.prototype.has=Qh;function Yn(c){var p=this.__data__=new li(c);this.size=p.size}function vn(){this.__data__=new li,this.size=0}function Ph(c){var p=this.__data__,T=p.delete(c);return this.size=p.size,T}function kf(c){return this.__data__.get(c)}function Dr(c){return this.__data__.has(c)}function nl(c,p){var T=this.__data__;if(T instanceof li){var M=T.__data__;if(!Yt||M.length<h-1)return M.push([c,p]),this.size=++T.size,this;T=this.__data__=new Ln(M)}return T.set(c,p),this.size=T.size,this}Yn.prototype.clear=vn,Yn.prototype.delete=Ph,Yn.prototype.get=kf,Yn.prototype.has=Dr,Yn.prototype.set=nl;function il(c,p){var T=Nt(c),M=!T&&ll(c),H=!T&&!M&&Yr(c),Q=!T&&!M&&!H&&Mu(c),le=T||M||H||Q,ce=le?nu(c.length,jp):[],we=ce.length;for(var Pe in c)(p||pn.call(c,Pe))&&!(le&&(Pe=="length"||H&&(Pe=="offset"||Pe=="parent")||Q&&(Pe=="buffer"||Pe=="byteLength"||Pe=="byteOffset")||Zl(Pe,we)))&&ce.push(Pe);return ce}function Zh(c){var p=c.length;return p?c[Mc(0,p-1)]:s}function ql(c,p){return Ic(Ra(c),jl(p,0,c.length))}function wc(c){return Ic(Ra(c))}function zs(c,p,T){(T!==s&&!Cl(c[p],T)||T===s&&!(p in c))&&Ea(c,p,T)}function Gl(c,p,T){var M=c[p];(!(pn.call(c,p)&&Cl(M,T))||T===s&&!(p in c))&&Ea(c,p,T)}function Us(c,p){for(var T=c.length;T--;)if(Cl(c[T][0],p))return T;return-1}function ey(c,p,T,M){return El(c,function(H,Q,le){p(M,H,T(H),le)}),M}function So(c,p){return c&&al(p,Ce(p),c)}function ty(c,p){return c&&al(p,Ht(p),c)}function Ea(c,p,T){p=="__proto__"&&xr?xr(c,p,{configurable:!0,enumerable:!0,value:T,writable:!0}):c[p]=T}function zf(c,p){for(var T=-1,M=p.length,H=Ne(M),Q=c==null;++T<M;)H[T]=Q?s:Za(c,p[T]);return H}function jl(c,p,T){return c===c&&(T!==s&&(c=c<=T?c:T),p!==s&&(c=c>=p?c:p)),c}function Bi(c,p,T,M,H,Q){var le,ce=p&x,we=p&D,Pe=p&B;if(T&&(le=H?T(c,M,H,Q):T(c)),le!==s)return le;if(!di(c))return c;var $e=Nt(c);if($e){if(le=Xa(c),!ce)return Ra(c,le)}else{var We=Ta(c),ct=We==Sr||We==Ml;if(Yr(c))return ag(c,ce);if(We==qa||We==at||ct&&!H){if(le=we||ct?{}:Wf(c),!ce)return we?cg(c,ty(le,c)):qs(c,So(le,c))}else{if(!dn[We])return H?c:{};le=wl(c,We,ce)}}Q||(Q=new Yn);var ft=Q.get(c);if(ft)return ft;Q.set(c,le),Ug(c)?c.forEach(function(zt){le.add(Bi(zt,p,T,zt,c,Q))}):Nd(c)&&c.forEach(function(zt,vt){le.set(vt,Bi(zt,p,T,vt,c,Q))});var Tt=$e?s:(Pe?we?Nc:Jf:we?Ht:Ce)(c);return Fi(Tt||c,function(zt,vt){Tt&&(vt=zt,zt=c[vt]),Gl(le,vt,Bi(zt,p,T,vt,c,Q))}),le}function Bs(c){var p=Ce(c);return function(T){return Ac(T,c,p)}}function Ac(c,p,T){var M=T.length;if(c==null)return!M;for(c=fn(c);M--;){var H=T[M],Q=p[H],le=c[H];if(le===s&&!(H in c)||!Q(le))return!1}return!0}function Jh(c,p,T){if(typeof c!="function")throw new ya(v);return ei(function(){c.apply(s,T)},p)}function hu(c,p,T,M){var H=-1,Q=wf,le=!0,ce=c.length,we=[],Pe=p.length;if(!ce)return we;T&&(p=ri(p,ga(T))),M?(Q=Fr,le=!1):p.length>=h&&(Q=yc,le=!1,p=new ks(p));e:for(;++H<ce;){var $e=c[H],We=T==null?$e:T($e);if($e=M||$e!==0?$e:0,le&&We===We){for(var ct=Pe;ct--;)if(p[ct]===We)continue e;we.push($e)}else Q(p,We,M)||we.push($e)}return we}var El=Ql(_i),Cc=Ql(Mr,!0);function ny(c,p){var T=!0;return El(c,function(M,H,Q){return T=!!p(M,H,Q),T}),T}function Uf(c,p,T){for(var M=-1,H=c.length;++M<H;){var Q=c[M],le=p(Q);if(le!=null&&(ce===s?le===le&&!qi(le):T(le,ce)))var ce=le,we=Q}return we}function du(c,p,T,M){var H=c.length;for(T=Qt(T),T<0&&(T=-T>H?0:H+T),M=M===s||M>H?H:Qt(M),M<0&&(M+=H),M=T>M?0:Aa(M);T<M;)c[T++]=p;return c}function Bf(c,p){var T=[];return El(c,function(M,H,Q){p(M,H,Q)&&T.push(M)}),T}function ta(c,p,T,M,H){var Q=-1,le=c.length;for(T||(T=Oo),H||(H=[]);++Q<le;){var ce=c[Q];p>0&&T(ce)?p>1?ta(ce,p-1,T,M,H):Yi(H,ce):M||(H[H.length]=ce)}return H}var Hs=bu(),xc=bu(!0);function _i(c,p){return c&&Hs(c,p,Ce)}function Mr(c,p){return c&&xc(c,p,Ce)}function Rr(c,p){return _s(p,function(T){return Wl(c[T])})}function Nr(c,p){p=Lo(p,c);for(var T=0,M=p.length;c!=null&&T<M;)c=c[Hi(p[T++])];return T&&T==M?c:s}function Kh(c,p,T){var M=p(c);return Nt(c)?M:Yi(M,T(c))}function Vn(c){return c==null?c===s?Cn:Dt:Cs&&Cs in fn(c)?dy(c):my(c)}function $n(c,p){return c>p}function oi(c,p){return c!=null&&pn.call(c,p)}function Zp(c,p){return c!=null&&p in fn(c)}function Yl(c,p,T){return c>=ba(p,T)&&c<jn(p,T)}function Rt(c,p,T){for(var M=T?Fr:wf,H=c[0].length,Q=c.length,le=Q,ce=Ne(Q),we=1/0,Pe=[];le--;){var $e=c[le];le&&p&&($e=ri($e,ga(p))),we=ba($e.length,we),ce[le]=!T&&(p||H>=120&&$e.length>=120)?new ks(le&&$e):s}$e=c[0];var We=-1,ct=ce[0];e:for(;++We<H&&Pe.length<we;){var ft=$e[We],Tt=p?p(ft):ft;if(ft=T||ft!==0?ft:0,!(ct?yc(ct,Tt):M(Pe,Tt,T))){for(le=Q;--le;){var zt=ce[le];if(!(zt?yc(zt,Tt):M(c[le],Tt,T)))continue e}ct&&ct.push(Tt),Pe.push(ft)}}return Pe}function kn(c,p,T,M){return _i(c,function(H,Q,le){p(M,T(H),Q,le)}),M}function si(c,p,T){p=Lo(p,c),c=Vs(c,p);var M=c==null?c:c[Hi(Si(p))];return M==null?s:ja(M,c,T)}function Lc(c){return Li(c)&&Vn(c)==at}function To(c){return Li(c)&&Vn(c)==ji}function wo(c){return Li(c)&&Vn(c)==ht}function Vl(c,p,T,M,H){return c===p?!0:c==null||p==null||!Li(c)&&!Li(p)?c!==c&&p!==p:Oc(c,p,T,M,Vl,H)}function Oc(c,p,T,M,H,Q){var le=Nt(c),ce=Nt(p),we=le?st:Ta(c),Pe=ce?st:Ta(p);we=we==at?qa:we,Pe=Pe==at?qa:Pe;var $e=we==qa,We=Pe==qa,ct=we==Pe;if(ct&&Yr(c)){if(!Yr(p))return!1;le=!0,$e=!1}if(ct&&!$e)return Q||(Q=new Yn),le||Mu(c)?xi(c,p,T,M,H,Q):na(c,p,we,T,M,H,Q);if(!(T&G)){var ft=$e&&pn.call(c,"__wrapped__"),Tt=We&&pn.call(p,"__wrapped__");if(ft||Tt){var zt=ft?c.value():c,vt=Tt?p.value():p;return Q||(Q=new Yn),H(zt,vt,T,M,Q)}}return ct?(Q||(Q=new Yn),hy(c,p,T,M,H,Q)):!1}function Ao(c){return Li(c)&&Ta(c)==Kn}function Fh(c,p,T,M){var H=T.length,Q=H,le=!M;if(c==null)return!Q;for(c=fn(c);H--;){var ce=T[H];if(le&&ce[2]?ce[1]!==c[ce[0]]:!(ce[0]in c))return!1}for(;++H<Q;){ce=T[H];var we=ce[0],Pe=c[we],$e=ce[1];if(le&&ce[2]){if(Pe===s&&!(we in c))return!1}else{var We=new Yn;if(M)var ct=M(Pe,$e,we,c,p,We);if(!(ct===s?Vl($e,Pe,3,M,We):ct))return!1}}return!0}function ui(c){return!di(c)||Ys(c)?!1:(Wl(c)?_c:Um).test(rl(c))}function Jp(c){return Li(c)&&Vn(c)==nn}function Wh(c){return Li(c)&&Ta(c)==fa}function iy(c){return Li(c)&&Fc(c.length)&&!!Nn[Vn(c)]}function Hf(c){return typeof c=="function"?c:c==null?d:typeof c=="object"?Nt(c)?Ei(c[0],c[1]):Sa(c):Un(c)}function Kp(c){if(!Bc(c))return Bl(c);var p=[];for(var T in fn(c))pn.call(c,T)&&T!="constructor"&&p.push(T);return p}function ed(c){if(!di(c))return yd(c);var p=Bc(c),T=[];for(var M in c)M=="constructor"&&(p||!pn.call(c,M))||T.push(M);return T}function If(c,p){return c<p}function td(c,p){var T=-1,M=Xi(c)?Ne(c.length):[];return El(c,function(H,Q,le){M[++T]=p(H,Q,le)}),M}function Sa(c){var p=zc(c);return p.length==1&&p[0][2]?Jl(p[0][0],p[0][1]):function(T){return T===c||Fh(T,c,p)}}function Ei(c,p){return Uc(c)&&Do(p)?Jl(Hi(c),p):function(T){var M=Za(T,c);return M===s&&M===p?Wc(T,c):Vl(p,M,3)}}function pu(c,p,T,M,H){c!==p&&Hs(p,function(Q,le){if(H||(H=new Yn),di(Q))$l(c,p,le,T,pu,M,H);else{var ce=M?M(mg(c,le),Q,le+"",c,p,H):s;ce===s&&(ce=Q),zs(c,le,ce)}},Ht)}function $l(c,p,T,M,H,Q,le){var ce=mg(c,T),we=mg(p,T),Pe=le.get(we);if(Pe){zs(c,T,Pe);return}var $e=Q?Q(ce,we,T+"",c,p,le):s,We=$e===s;if(We){var ct=Nt(we),ft=!ct&&Yr(we),Tt=!ct&&!ft&&Mu(we);$e=we,ct||ft||Tt?Nt(ce)?$e=ce:Zn(ce)?$e=Ra(ce):ft?(We=!1,$e=ag(we,!0)):Tt?(We=!1,$e=sg(we,!0)):$e=[]:uh(we)||ll(we)?($e=ce,ll(ce)?$e=kd(ce):(!di(ce)||Wl(ce))&&($e=Wf(we))):We=!1}We&&(le.set(we,$e),H($e,we,M,Q,le),le.delete(we)),zs(c,T,$e)}function Dc(c,p){var T=c.length;if(T)return p+=p<0?T:0,Zl(p,T)?c[p]:s}function qf(c,p,T){p.length?p=ri(p,function(H){return Nt(H)?function(Q){return Nr(Q,H.length===1?H[0]:H)}:H}):p=[d];var M=-1;return p=ri(p,ga(Et())),zp(td(c,function(H,Q,le){return{criteria:ri(p,function(ce){return ce(H)}),index:++M,value:H}}),function(H,Q){return og(H,Q,T)})}function Co(c,p){return nd(c,p,function(T,M){return Wc(c,M)})}function nd(c,p,T){for(var M=-1,H=p.length,Q={};++M<H;){var le=p[M],ce=Nr(c,le);T(ce,le)&&Rc(Q,Lo(le,c),ce)}return Q}function Fp(c){return function(p){return Nr(p,c)}}function xo(c,p,T,M){var H=M?kp:gc,Q=-1,le=p.length,ce=c;for(c===p&&(p=Ra(p)),T&&(ce=ri(c,ga(T)));++Q<le;)for(var we=0,Pe=p[Q],$e=T?T(Pe):Pe;(we=H(ce,$e,we,M))>-1;)ce!==c&&ea.call(ce,we,1),ea.call(c,we,1);return c}function id(c,p){for(var T=c?p.length:0,M=T-1;T--;){var H=p[T];if(T==M||H!==Q){var Q=H;Zl(H)?ea.call(c,H,1):sd(c,H)}}return c}function Mc(c,p){return c+Eo(Vp()*(p-c+1))}function ay(c,p,T,M){for(var H=-1,Q=jn(Ec((p-c)/(T||1)),0),le=Ne(Q);Q--;)le[M?Q:++H]=c,c+=T;return le}function ad(c,p){var T="";if(!c||p<1||p>ye)return T;do p%2&&(T+=c),p=Eo(p/2),p&&(c+=c);while(p);return T}function $t(c,p){return vd(Mo(c,p,d),c+"")}function Wp(c){return Zh(ku(c))}function eg(c,p){var T=ku(c);return Ic(T,jl(p,0,T.length))}function Rc(c,p,T,M){if(!di(c))return c;p=Lo(p,c);for(var H=-1,Q=p.length,le=Q-1,ce=c;ce!=null&&++H<Q;){var we=Hi(p[H]),Pe=T;if(we==="__proto__"||we==="constructor"||we==="prototype")return c;if(H!=le){var $e=ce[we];Pe=M?M($e,we,ce):s,Pe===s&&(Pe=di($e)?$e:Zl(p[H+1])?[]:{})}Gl(ce,we,Pe),ce=ce[we]}return c}var gu=Rf?function(c,p){return Rf.set(c,p),c}:d,ry=xr?function(c,p){return xr(c,"toString",{configurable:!0,enumerable:!1,value:bh(p),writable:!0})}:d;function ly(c){return Ic(ku(c))}function kr(c,p,T){var M=-1,H=c.length;p<0&&(p=-p>H?0:H+p),T=T>H?H:T,T<0&&(T+=H),H=p>T?0:T-p>>>0,p>>>=0;for(var Q=Ne(H);++M<H;)Q[M]=c[M+p];return Q}function Gf(c,p){var T;return El(c,function(M,H,Q){return T=p(M,H,Q),!T}),!!T}function jf(c,p,T){var M=0,H=c==null?M:c.length;if(typeof p=="number"&&p===p&&H<=He){for(;M<H;){var Q=M+H>>>1,le=c[Q];le!==null&&!qi(le)&&(T?le<=p:le<p)?M=Q+1:H=Q}return H}return Yf(c,p,d,T)}function Yf(c,p,T,M){var H=0,Q=c==null?0:c.length;if(Q===0)return 0;p=T(p);for(var le=p!==p,ce=p===null,we=qi(p),Pe=p===s;H<Q;){var $e=Eo((H+Q)/2),We=T(c[$e]),ct=We!==s,ft=We===null,Tt=We===We,zt=qi(We);if(le)var vt=M||Tt;else Pe?vt=Tt&&(M||ct):ce?vt=Tt&&ct&&(M||!ft):we?vt=Tt&&ct&&!ft&&(M||!zt):ft||zt?vt=!1:vt=M?We<=p:We<p;vt?H=$e+1:Q=$e}return ba(Q,ze)}function rd(c,p){for(var T=-1,M=c.length,H=0,Q=[];++T<M;){var le=c[T],ce=p?p(le):le;if(!T||!Cl(ce,we)){var we=ce;Q[H++]=le===0?0:le}}return Q}function ld(c){return typeof c=="number"?c:qi(c)?et:+c}function zr(c){if(typeof c=="string")return c;if(Nt(c))return ri(c,zr)+"";if(qi(c))return Va?Va.call(c):"";var p=c+"";return p=="0"&&1/c==-1/0?"-0":p}function ci(c,p,T){var M=-1,H=wf,Q=c.length,le=!0,ce=[],we=ce;if(T)le=!1,H=Fr;else if(Q>=h){var Pe=p?null:uy(c);if(Pe)return Lf(Pe);le=!1,H=yc,we=new ks}else we=p?[]:ce;e:for(;++M<Q;){var $e=c[M],We=p?p($e):$e;if($e=T||$e!==0?$e:0,le&&We===We){for(var ct=we.length;ct--;)if(we[ct]===We)continue e;p&&we.push(We),ce.push($e)}else H(we,We,T)||(we!==ce&&we.push(We),ce.push($e))}return ce}function sd(c,p){p=Lo(p,c);var T=-1,M=p.length;if(!M)return!0;for(;++T<M;){var H=Hi(p[T]);if(H==="__proto__"&&!pn.call(c,"__proto__")||(H==="constructor"||H==="prototype")&&T<M-1)return!1}var Q=Vs(c,p);return Q==null||delete Q[Hi(Si(p))]}function mu(c,p,T,M){return Rc(c,p,T(Nr(c,p)),M)}function Vf(c,p,T,M){for(var H=c.length,Q=M?H:-1;(M?Q--:++Q<H)&&p(c[Q],Q,c););return T?kr(c,M?0:Q,M?Q+1:H):kr(c,M?Q+1:0,M?H:Q)}function $f(c,p){var T=c;return T instanceof Zt&&(T=T.value()),ml(p,function(M,H){return H.func.apply(H.thisArg,Yi([M],H.args))},T)}function Is(c,p,T){var M=c.length;if(M<2)return M?ci(c[0]):[];for(var H=-1,Q=Ne(M);++H<M;)for(var le=c[H],ce=-1;++ce<M;)ce!=H&&(Q[H]=hu(Q[H]||le,c[ce],p,T));return ci(ta(Q,1),p,T)}function tg(c,p,T){for(var M=-1,H=c.length,Q=p.length,le={};++M<H;){var ce=M<Q?p[M]:s;T(le,c[M],ce)}return le}function yu(c){return Zn(c)?c:[]}function ng(c){return typeof c=="function"?c:d}function Lo(c,p){return Nt(c)?c:Uc(c,p)?[c]:vg(wn(c))}var od=$t;function Xl(c,p,T){var M=c.length;return T=T===s?M:T,!p&&T>=M?c:kr(c,p,T)}var ig=el||function(c){return Ci.clearTimeout(c)};function ag(c,p){if(p)return c.slice();var T=c.length,M=Ya?Ya(T):new c.constructor(T);return c.copy(M),M}function Xf(c){var p=new c.constructor(c.byteLength);return new Gn(p).set(new Gn(c)),p}function rg(c,p){var T=p?Xf(c.buffer):c.buffer;return new c.constructor(T,c.byteOffset,c.byteLength)}function lg(c){var p=new c.constructor(c.source,Rh.exec(c));return p.lastIndex=c.lastIndex,p}function ud(c){return Vi?fn(Vi.call(c)):{}}function sg(c,p){var T=p?Xf(c.buffer):c.buffer;return new c.constructor(T,c.byteOffset,c.length)}function cd(c,p){if(c!==p){var T=c!==s,M=c===null,H=c===c,Q=qi(c),le=p!==s,ce=p===null,we=p===p,Pe=qi(p);if(!ce&&!Pe&&!Q&&c>p||Q&&le&&we&&!ce&&!Pe||M&&le&&we||!T&&we||!H)return 1;if(!M&&!Q&&!Pe&&c<p||Pe&&T&&H&&!M&&!Q||ce&&T&&H||!le&&H||!we)return-1}return 0}function og(c,p,T){for(var M=-1,H=c.criteria,Q=p.criteria,le=H.length,ce=T.length;++M<le;){var we=cd(H[M],Q[M]);if(we)return M>=ce?we:we*(T[M]=="desc"?-1:1)}return c.index-p.index}function Qf(c,p,T,M){for(var H=-1,Q=c.length,le=T.length,ce=-1,we=p.length,Pe=jn(Q-le,0),$e=Ne(we+Pe),We=!M;++ce<we;)$e[ce]=p[ce];for(;++H<le;)(We||H<Q)&&($e[T[H]]=c[H]);for(;Pe--;)$e[ce++]=c[H++];return $e}function ug(c,p,T,M){for(var H=-1,Q=c.length,le=-1,ce=T.length,we=-1,Pe=p.length,$e=jn(Q-ce,0),We=Ne($e+Pe),ct=!M;++H<$e;)We[H]=c[H];for(var ft=H;++we<Pe;)We[ft+we]=p[we];for(;++le<ce;)(ct||H<Q)&&(We[ft+T[le]]=c[H++]);return We}function Ra(c,p){var T=-1,M=c.length;for(p||(p=Ne(M));++T<M;)p[T]=c[T];return p}function al(c,p,T,M){var H=!T;T||(T={});for(var Q=-1,le=p.length;++Q<le;){var ce=p[Q],we=M?M(T[ce],c[ce],ce,T,c):s;we===s&&(we=c[ce]),H?Ea(T,ce,we):Gl(T,ce,we)}return T}function qs(c,p){return al(c,md(c),p)}function cg(c,p){return al(c,pg(c),p)}function fg(c,p){return function(T,M){var H=Nt(T)?I0:ey,Q=p?p():{};return H(T,c,Et(M,2),Q)}}function vu(c){return $t(function(p,T){var M=-1,H=T.length,Q=H>1?T[H-1]:s,le=H>2?T[2]:s;for(Q=c.length>3&&typeof Q=="function"?(H--,Q):s,le&&Tn(T[0],T[1],le)&&(Q=H<3?s:Q,H=1),p=fn(p);++M<H;){var ce=T[M];ce&&c(p,ce,M,Q)}return p})}function Ql(c,p){return function(T,M){if(T==null)return T;if(!Xi(T))return c(T,M);for(var H=T.length,Q=p?H:-1,le=fn(T);(p?Q--:++Q<H)&&M(le[Q],Q,le)!==!1;);return T}}function bu(c){return function(p,T,M){for(var H=-1,Q=fn(p),le=M(p),ce=le.length;ce--;){var we=le[c?ce:++H];if(T(Q[we],we,Q)===!1)break}return p}}function hg(c,p,T){var M=p&te,H=Sn(c);function Q(){return(this&&this!==Ci&&this instanceof Q?H:c).apply(M?T:this,arguments)}return Q}function _u(c){return function(p){p=wn(p);var T=yl(p)?bi(p):s,M=T?T[0]:p.charAt(0),H=T?Xl(T,1).join(""):p.slice(1);return M[c]()+H}}function Pl(c){return function(p){return ml(la(Yd(p).replace(bs,"")),c,"")}}function Sn(c){return function(){var p=arguments;switch(p.length){case 0:return new c;case 1:return new c(p[0]);case 2:return new c(p[0],p[1]);case 3:return new c(p[0],p[1],p[2]);case 4:return new c(p[0],p[1],p[2],p[3]);case 5:return new c(p[0],p[1],p[2],p[3],p[4]);case 6:return new c(p[0],p[1],p[2],p[3],p[4],p[5]);case 7:return new c(p[0],p[1],p[2],p[3],p[4],p[5],p[6])}var T=Hl(c.prototype),M=c.apply(T,p);return di(M)?M:T}}function fd(c,p,T){var M=Sn(c);function H(){for(var Q=arguments.length,le=Ne(Q),ce=Q,we=js(H);ce--;)le[ce]=arguments[ce];var Pe=Q<3&&le[0]!==we&&le[Q-1]!==we?[]:Da(le,we);return Q-=Pe.length,Q<T?oy(c,p,Ur,H.placeholder,s,le,Pe,s,s,T-Q):ja(this&&this!==Ci&&this instanceof H?M:c,this,le)}return H}function sy(c){return function(p,T,M){var H=fn(p);if(!Xi(p)){var Q=Et(T,3);p=Ce(p),T=function(ce){return Q(H[ce],ce,H)}}var le=c(p,T,M);return le>-1?H[Q?p[le]:le]:s}}function hd(c){return Tl(function(p){var T=p.length,M=T,H=zi.prototype.thru;for(c&&p.reverse();M--;){var Q=p[M];if(typeof Q!="function")throw new ya(v);if(H&&!le&&Kf(Q)=="wrapper")var le=new zi([],!0)}for(M=le?M:T;++M<T;){Q=p[M];var ce=Kf(Q),we=ce=="wrapper"?kc(Q):s;we&&Hr(we[0])&&we[1]==(Be|Se|Re|W)&&!we[4].length&&we[9]==1?le=le[Kf(we[0])].apply(le,we[3]):le=Q.length==1&&Hr(Q)?le[ce]():le.thru(Q)}return function(){var Pe=arguments,$e=Pe[0];if(le&&Pe.length==1&&Nt($e))return le.plant($e).value();for(var We=0,ct=T?p[We].apply(this,Pe):$e;++We<T;)ct=p[We].call(this,ct);return ct}})}function Ur(c,p,T,M,H,Q,le,ce,we,Pe){var $e=p&Be,We=p&te,ct=p&pe,ft=p&(Se|Fe),Tt=p&re,zt=ct?s:Sn(c);function vt(){for(var Jn=arguments.length,on=Ne(Jn),sa=Jn;sa--;)on[sa]=arguments[sa];if(ft)var ns=js(vt),no=Bp(on,ns);if(M&&(on=Qf(on,M,H,ft)),Q&&(on=ug(on,Q,le,ft)),Jn-=no,ft&&Jn<Pe){var oa=Da(on,ns);return oy(c,p,Ur,vt.placeholder,T,on,oa,ce,we,Pe-Jn)}var is=We?T:this,qo=ct?is[c]:c;return Jn=on.length,ce?on=yy(on,ce):Tt&&Jn>1&&on.reverse(),$e&&we<Jn&&(on.length=we),this&&this!==Ci&&this instanceof vt&&(qo=zt||Sn(qo)),qo.apply(is,on)}return vt}function dd(c,p){return function(T,M){return kn(T,c,p(M),{})}}function Eu(c,p){return function(T,M){var H;if(T===s&&M===s)return p;if(T!==s&&(H=T),M!==s){if(H===s)return M;typeof T=="string"||typeof M=="string"?(T=zr(T),M=zr(M)):(T=ld(T),M=ld(M)),H=c(T,M)}return H}}function Su(c){return Tl(function(p){return p=ri(p,ga(Et())),$t(function(T){var M=this;return c(p,function(H){return ja(H,M,T)})})})}function Gs(c,p){p=p===s?" ":zr(p);var T=p.length;if(T<2)return T?ad(p,c):p;var M=ad(p,Ec(c/vc(p)));return yl(p)?Xl(bi(M),0,c).join(""):M.slice(0,c)}function Tu(c,p,T,M){var H=p&te,Q=Sn(c);function le(){for(var ce=-1,we=arguments.length,Pe=-1,$e=M.length,We=Ne($e+we),ct=this&&this!==Ci&&this instanceof le?Q:c;++Pe<$e;)We[Pe]=M[Pe];for(;we--;)We[Pe++]=arguments[++ce];return ja(ct,H?T:this,We)}return le}function pd(c){return function(p,T,M){return M&&typeof M!="number"&&Tn(p,T,M)&&(T=M=s),p=Vr(p),T===s?(T=p,p=0):T=Vr(T),M=M===s?p<T?1:-1:Vr(M),ay(p,T,M,c)}}function Pf(c){return function(p,T){return typeof p=="string"&&typeof T=="string"||(p=mr(p),T=mr(T)),c(p,T)}}function oy(c,p,T,M,H,Q,le,ce,we,Pe){var $e=p&Se,We=$e?le:s,ct=$e?s:le,ft=$e?Q:s,Tt=$e?s:Q;p|=$e?Re:Je,p&=~($e?Je:Re),p&Te||(p&=~(te|pe));var zt=[c,p,H,ft,We,Tt,ct,ce,we,Pe],vt=T.apply(s,zt);return Hr(c)&&Hc(vt,zt),vt.placeholder=M,ti(vt,c,p)}function Zf(c){var p=Fn[c];return function(T,M){if(T=mr(T),M=M==null?0:ba(Qt(M),292),M&&bl(T)){var H=(wn(T)+"e").split("e");return H=(wn(p(H[0]+"e"+(+H[1]+M)))+"e").split("e"),+(H[0]+"e"+(+H[1]-M))}return p(T)}}var uy=ki&&1/Lf(new ki([,-0]))[1]==ee?function(c){return new ki(c)}:Qe;function dg(c){return function(p){var T=Ta(p);return T==Kn?Oa(p):T==fa?Ip(p):iu(p,c(p))}}function Br(c,p,T,M,H,Q,le,ce){var we=p&pe;if(!we&&typeof c!="function")throw new ya(v);var Pe=M?M.length:0;if(Pe||(p&=~(Re|Je),M=H=s),le=le===s?le:jn(Qt(le),0),ce=ce===s?ce:Qt(ce),Pe-=H?H.length:0,p&Je){var $e=M,We=H;M=H=s}var ct=we?s:kc(c),ft=[c,p,T,M,H,$e,We,Q,le,ce];if(ct&&G0(ft,ct),c=ft[0],p=ft[1],T=ft[2],M=ft[3],H=ft[4],ce=ft[9]=ft[9]===s?we?0:c.length:jn(ft[9]-Pe,0),!ce&&p&(Se|Fe)&&(p&=~(Se|Fe)),!p||p==te)var Tt=hg(c,p,T);else p==Se||p==Fe?Tt=fd(c,p,ce):(p==Re||p==(te|Re))&&!H.length?Tt=Tu(c,p,T,M):Tt=Ur.apply(s,ft);return ti((ct?gu:Hc)(Tt,ft),c,p)}function Sl(c,p,T,M){return c===s||Cl(c,mn[T])&&!pn.call(M,T)?p:c}function cy(c,p,T,M,H,Q){return di(c)&&di(p)&&(Q.set(p,c),pu(c,p,s,cy,Q),Q.delete(p)),c}function fy(c){return uh(c)?s:c}function xi(c,p,T,M,H,Q){var le=T&G,ce=c.length,we=p.length;if(ce!=we&&!(le&&we>ce))return!1;var Pe=Q.get(c),$e=Q.get(p);if(Pe&&$e)return Pe==p&&$e==c;var We=-1,ct=!0,ft=T&P?new ks:s;for(Q.set(c,p),Q.set(p,c);++We<ce;){var Tt=c[We],zt=p[We];if(M)var vt=le?M(zt,Tt,We,p,c,Q):M(Tt,zt,We,c,p,Q);if(vt!==s){if(vt)continue;ct=!1;break}if(ft){if(!Af(p,function(Jn,on){if(!yc(ft,on)&&(Tt===Jn||H(Tt,Jn,T,M,Q)))return ft.push(on)})){ct=!1;break}}else if(!(Tt===zt||H(Tt,zt,T,M,Q))){ct=!1;break}}return Q.delete(c),Q.delete(p),ct}function na(c,p,T,M,H,Q,le){switch(T){case ha:if(c.byteLength!=p.byteLength||c.byteOffset!=p.byteOffset)return!1;c=c.buffer,p=p.buffer;case ji:return!(c.byteLength!=p.byteLength||!Q(new Gn(c),new Gn(p)));case Jt:case ht:case Ai:return Cl(+c,+p);case tt:return c.name==p.name&&c.message==p.message;case nn:case La:return c==p+"";case Kn:var ce=Oa;case fa:var we=M&G;if(ce||(ce=Lf),c.size!=p.size&&!we)return!1;var Pe=le.get(c);if(Pe)return Pe==p;M|=P,le.set(c,p);var $e=xi(ce(c),ce(p),M,H,Q,le);return le.delete(c),$e;case lr:if(Vi)return Vi.call(c)==Vi.call(p)}return!1}function hy(c,p,T,M,H,Q){var le=T&G,ce=Jf(c),we=ce.length;if(we!=Jf(p).length&&!le)return!1;for(var Pe=we;Pe--;){var $e=ce[Pe];if(!(le?$e in p:pn.call(p,$e)))return!1}var We=Q.get(c),ct=Q.get(p);if(We&&ct)return We==p&&ct==c;var ft=!0;Q.set(c,p),Q.set(p,c);for(var Tt=le;++Pe<we;){$e=ce[Pe];var zt=c[$e],vt=p[$e];if(M)var Jn=le?M(vt,zt,$e,p,c,Q):M(zt,vt,$e,c,p,Q);if(!(Jn===s?zt===vt||H(zt,vt,T,M,Q):Jn)){ft=!1;break}Tt||(Tt=$e=="constructor")}if(ft&&!Tt){var on=c.constructor,sa=p.constructor;on!=sa&&"constructor"in c&&"constructor"in p&&!(typeof on=="function"&&on instanceof on&&typeof sa=="function"&&sa instanceof sa)&&(ft=!1)}return Q.delete(c),Q.delete(p),ft}function Tl(c){return vd(Mo(c,s,_d),c+"")}function Jf(c){return Kh(c,Ce,md)}function Nc(c){return Kh(c,Ht,pg)}var kc=Rf?function(c){return Rf.get(c)}:Qe;function Kf(c){for(var p=c.name+"",T=Os[p],M=pn.call(Os,p)?T.length:0;M--;){var H=T[M],Q=H.func;if(Q==null||Q==c)return H.name}return p}function js(c){return(pn.call(j,"placeholder")?j:c).placeholder}function Et(){var c=j.iteratee||b;return c=c===b?Hf:c,arguments.length?c(arguments[0],arguments[1]):c}function gd(c,p){var T=c.__data__;return gy(p)?T[typeof p=="string"?"string":"hash"]:T.map}function zc(c){for(var p=Ce(c),T=p.length;T--;){var M=p[T],H=c[M];p[T]=[M,H,Do(H)]}return p}function Na(c,p){var T=Hp(c,p);return ui(T)?T:s}function dy(c){var p=pn.call(c,Cs),T=c[Cs];try{c[Cs]=s;var M=!0}catch{}var H=fr.call(c);return M&&(p?c[Cs]=T:delete c[Cs]),H}var md=Lr?function(c){return c==null?[]:(c=fn(c),_s(Lr(c),function(p){return Cr.call(c,p)}))}:Ve,pg=Lr?function(c){for(var p=[];c;)Yi(p,md(c)),c=Ni(c);return p}:Ve,Ta=Vn;(qn&&Ta(new qn(new ArrayBuffer(1)))!=ha||Yt&&Ta(new Yt)!=Kn||tl&&Ta(tl.resolve())!=ho||ki&&Ta(new ki)!=fa||su&&Ta(new su)!=Rl)&&(Ta=function(c){var p=Vn(c),T=p==qa?c.constructor:s,M=T?rl(T):"";if(M)switch(M){case Sc:return ha;case Ds:return Kn;case $p:return ho;case Nf:return fa;case Vh:return Rl}return p});function Ff(c,p,T){for(var M=-1,H=T.length;++M<H;){var Q=T[M],le=Q.size;switch(Q.type){case"drop":c+=le;break;case"dropRight":p-=le;break;case"take":p=ba(p,c+le);break;case"takeRight":c=jn(c,p-le);break}}return{start:c,end:p}}function $a(c){var p=c.match(yp);return p?p[1].split(km):[]}function gg(c,p,T){p=Lo(p,c);for(var M=-1,H=p.length,Q=!1;++M<H;){var le=Hi(p[M]);if(!(Q=c!=null&&T(c,le)))break;c=c[le]}return Q||++M!=H?Q:(H=c==null?0:c.length,!!H&&Fc(H)&&Zl(le,H)&&(Nt(c)||ll(c)))}function Xa(c){var p=c.length,T=new c.constructor(p);return p&&typeof c[0]=="string"&&pn.call(c,"index")&&(T.index=c.index,T.input=c.input),T}function Wf(c){return typeof c.constructor=="function"&&!Bc(c)?Hl(Ni(c)):{}}function wl(c,p,T){var M=c.constructor;switch(p){case ji:return Xf(c);case Jt:case ht:return new M(+c);case ha:return rg(c,T);case Y:case R:case k:case J:case ve:case Ae:case Ge:case pt:case I:return sg(c,T);case Kn:return new M;case Ai:case La:return new M(c);case nn:return lg(c);case fa:return new M;case lr:return ud(c)}}function py(c,p){var T=p.length;if(!T)return c;var M=T-1;return p[M]=(T>1?"& ":"")+p[M],p=p.join(T>2?", ":" "),c.replace(Nm,`{
/* [wrapped with `+p+`] */
`)}function Oo(c){return Nt(c)||ll(c)||!!(Mf&&c&&c[Mf])}function Zl(c,p){var T=typeof c;return p=p??ye,!!p&&(T=="number"||T!="symbol"&&vp.test(c))&&c>-1&&c%1==0&&c<p}function Tn(c,p,T){if(!di(T))return!1;var M=typeof p;return(M=="number"?Xi(T)&&Zl(p,T.length):M=="string"&&p in T)?Cl(T[p],c):!1}function Uc(c,p){if(Nt(c))return!1;var T=typeof c;return T=="number"||T=="symbol"||T=="boolean"||c==null||qi(c)?!0:Zo.test(c)||!nc.test(c)||p!=null&&c in fn(p)}function gy(c){var p=typeof c;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?c!=="__proto__":c===null}function Hr(c){var p=Kf(c),T=j[p];if(typeof T!="function"||!(p in Zt.prototype))return!1;if(c===T)return!0;var M=kc(T);return!!M&&c===M[0]}function Ys(c){return!!_o&&_o in c}var wu=va?Wl:yt;function Bc(c){var p=c&&c.constructor;return c===(typeof p=="function"&&p.prototype||mn)}function Do(c){return c===c&&!di(c)}function Jl(c,p){return function(T){return T==null?!1:T[c]===p&&(p!==s||c in fn(T))}}function Wn(c){var p=Pc(c,function(M){return T.size===_&&T.clear(),M}),T=p.cache;return p}function G0(c,p){var T=c[1],M=p[1],H=T|M,Q=H<(te|pe|Be),le=M==Be&&T==Se||M==Be&&T==W&&c[7].length<=p[8]||M==(Be|W)&&p[7].length<=p[8]&&T==Se;if(!(Q||le))return c;M&te&&(c[2]=p[2],H|=T&te?0:Te);var ce=p[3];if(ce){var we=c[3];c[3]=we?Qf(we,ce,p[4]):ce,c[4]=we?Da(c[3],L):p[4]}return ce=p[5],ce&&(we=c[5],c[5]=we?ug(we,ce,p[6]):ce,c[6]=we?Da(c[5],L):p[6]),ce=p[7],ce&&(c[7]=ce),M&Be&&(c[8]=c[8]==null?p[8]:ba(c[8],p[8])),c[9]==null&&(c[9]=p[9]),c[0]=p[0],c[1]=H,c}function yd(c){var p=[];if(c!=null)for(var T in fn(c))p.push(T);return p}function my(c){return fr.call(c)}function Mo(c,p,T){return p=jn(p===s?c.length-1:p,0),function(){for(var M=arguments,H=-1,Q=jn(M.length-p,0),le=Ne(Q);++H<Q;)le[H]=M[p+H];H=-1;for(var ce=Ne(p+1);++H<p;)ce[H]=M[H];return ce[p]=T(le),ja(c,this,ce)}}function Vs(c,p){return p.length<2?c:Nr(c,kr(p,0,-1))}function yy(c,p){for(var T=c.length,M=ba(p.length,T),H=Ra(c);M--;){var Q=p[M];c[M]=Zl(Q,T)?H[Q]:s}return c}function mg(c,p){if(!(p==="constructor"&&typeof c[p]=="function")&&p!="__proto__")return c[p]}var Hc=yg(gu),ei=xs||function(c,p){return Ci.setTimeout(c,p)},vd=yg(ry);function ti(c,p,T){var M=p+"";return vd(c,py(M,Kl($a(M),T)))}function yg(c){var p=0,T=0;return function(){var M=Ls(),H=Z-(M-T);if(T=M,H>0){if(++p>=ue)return arguments[0]}else p=0;return c.apply(s,arguments)}}function Ic(c,p){var T=-1,M=c.length,H=M-1;for(p=p===s?M:p;++T<p;){var Q=Mc(T,H),le=c[Q];c[Q]=c[T],c[T]=le}return c.length=p,c}var vg=Wn(function(c){var p=[];return c.charCodeAt(0)===46&&p.push(""),c.replace(gp,function(T,M,H,Q){p.push(H?Q.replace(cr,"$1"):M||T)}),p});function Hi(c){if(typeof c=="string"||qi(c))return c;var p=c+"";return p=="0"&&1/c==-1/0?"-0":p}function rl(c){if(c!=null){try{return Ts.call(c)}catch{}try{return c+""}catch{}}return""}function Kl(c,p){return Fi(Ie,function(T){var M="_."+T[0];p&T[1]&&!wf(c,M)&&c.push(M)}),c.sort()}function Qn(c){if(c instanceof Zt)return c.clone();var p=new zi(c.__wrapped__,c.__chain__);return p.__actions__=Ra(c.__actions__),p.__index__=c.__index__,p.__values__=c.__values__,p}function Au(c,p,T){(T?Tn(c,p,T):p===s)?p=1:p=jn(Qt(p),0);var M=c==null?0:c.length;if(!M||p<1)return[];for(var H=0,Q=0,le=Ne(Ec(M/p));H<M;)le[Q++]=kr(c,H,H+=p);return le}function vy(c){for(var p=-1,T=c==null?0:c.length,M=0,H=[];++p<T;){var Q=c[p];Q&&(H[M++]=Q)}return H}function ia(){var c=arguments.length;if(!c)return[];for(var p=Ne(c-1),T=arguments[0],M=c;M--;)p[M-1]=arguments[M];return Yi(Nt(T)?Ra(T):[T],ta(p,1))}var j0=$t(function(c,p){return Zn(c)?hu(c,ta(p,1,Zn,!0)):[]}),by=$t(function(c,p){var T=Si(p);return Zn(T)&&(T=s),Zn(c)?hu(c,ta(p,1,Zn,!0),Et(T,2)):[]}),bd=$t(function(c,p){var T=Si(p);return Zn(T)&&(T=s),Zn(c)?hu(c,ta(p,1,Zn,!0),s,T):[]});function Pn(c,p,T){var M=c==null?0:c.length;return M?(p=T||p===s?1:Qt(p),kr(c,p<0?0:p,M)):[]}function Qa(c,p,T){var M=c==null?0:c.length;return M?(p=T||p===s?1:Qt(p),p=M-p,kr(c,0,p<0?0:p)):[]}function $s(c,p){return c&&c.length?Vf(c,Et(p,3),!0,!0):[]}function Y0(c,p){return c&&c.length?Vf(c,Et(p,3),!0):[]}function V0(c,p,T,M){var H=c==null?0:c.length;return H?(T&&typeof T!="number"&&Tn(c,p,T)&&(T=0,M=H),du(c,p,T,M)):[]}function bg(c,p,T){var M=c==null?0:c.length;if(!M)return-1;var H=T==null?0:Qt(T);return H<0&&(H=jn(M+H,0)),Cf(c,Et(p,3),H)}function _y(c,p,T){var M=c==null?0:c.length;if(!M)return-1;var H=M-1;return T!==s&&(H=Qt(T),H=T<0?jn(M+H,0):ba(H,M-1)),Cf(c,Et(p,3),H,!0)}function _d(c){return c!=null&&c.length?ta(c,1):[]}function aa(c){return c!=null&&c.length?ta(c,ee):[]}function Ir(c,p){return c!=null&&c.length?(p=p===s?1:Qt(p),ta(c,p)):[]}function Ey(c){for(var p=-1,T=c==null?0:c.length,M={};++p<T;){var H=c[p];Ea(M,H[0],H[1])}return M}function ka(c){return c&&c.length?c[0]:s}function Sy(c,p,T){var M=c==null?0:c.length;if(!M)return-1;var H=T==null?0:Qt(T);return H<0&&(H=jn(M+H,0)),gc(c,p,H)}function Xs(c){return c!=null&&c.length?kr(c,0,-1):[]}var Cu=$t(function(c){var p=ri(c,yu);return p.length&&p[0]===c[0]?Rt(p):[]}),Ro=$t(function(c){var p=Si(c),T=ri(c,yu);return p===Si(T)?p=s:T.pop(),T.length&&T[0]===c[0]?Rt(T,Et(p,2)):[]}),_g=$t(function(c){var p=Si(c),T=ri(c,yu);return p=typeof p=="function"?p:s,p&&T.pop(),T.length&&T[0]===c[0]?Rt(T,s,p):[]});function qc(c,p){return c==null?"":Ul.call(c,p)}function Si(c){var p=c==null?0:c.length;return p?c[p-1]:s}function Ty(c,p,T){var M=c==null?0:c.length;if(!M)return-1;var H=M;return T!==s&&(H=Qt(T),H=H<0?jn(M+H,0):ba(H,M-1)),p===p?Gp(c,p,H):Cf(c,Qm,H,!0)}function rn(c,p){return c&&c.length?Dc(c,Qt(p)):s}var Gc=$t(eh);function eh(c,p){return c&&c.length&&p&&p.length?xo(c,p):c}function jc(c,p,T){return c&&c.length&&p&&p.length?xo(c,p,Et(T,2)):c}function $0(c,p,T){return c&&c.length&&p&&p.length?xo(c,p,s,T):c}var X0=Tl(function(c,p){var T=c==null?0:c.length,M=zf(c,p);return id(c,ri(p,function(H){return Zl(H,T)?+H:H}).sort(cd)),M});function Yc(c,p){var T=[];if(!(c&&c.length))return T;var M=-1,H=[],Q=c.length;for(p=Et(p,3);++M<Q;){var le=c[M];p(le,M,c)&&(T.push(le),H.push(M))}return id(c,H),T}function Ed(c){return c==null?c:yn.call(c)}function Sd(c,p,T){var M=c==null?0:c.length;return M?(T&&typeof T!="number"&&Tn(c,p,T)?(p=0,T=M):(p=p==null?0:Qt(p),T=T===s?M:Qt(T)),kr(c,p,T)):[]}function wy(c,p){return jf(c,p)}function Td(c,p,T){return Yf(c,p,Et(T,2))}function b1(c,p){var T=c==null?0:c.length;if(T){var M=jf(c,p);if(M<T&&Cl(c[M],p))return M}return-1}function On(c,p){return jf(c,p,!0)}function ln(c,p,T){return Yf(c,p,Et(T,2),!0)}function Pt(c,p){if(c!=null&&c.length){var T=jf(c,p,!0)-1;if(Cl(c[T],p))return T}return-1}function sn(c){return c&&c.length?rd(c):[]}function Dn(c,p){return c&&c.length?rd(c,Et(p,2)):[]}function qr(c){var p=c==null?0:c.length;return p?kr(c,1,p):[]}function No(c,p,T){return c&&c.length?(p=T||p===s?1:Qt(p),kr(c,0,p<0?0:p)):[]}function Vc(c,p,T){var M=c==null?0:c.length;return M?(p=T||p===s?1:Qt(p),p=M-p,kr(c,p<0?0:p,M)):[]}function wd(c,p){return c&&c.length?Vf(c,Et(p,3),!1,!0):[]}function Qs(c,p){return c&&c.length?Vf(c,Et(p,3)):[]}var fi=$t(function(c){return ci(ta(c,1,Zn,!0))}),ko=$t(function(c){var p=Si(c);return Zn(p)&&(p=s),ci(ta(c,1,Zn,!0),Et(p,2))}),xu=$t(function(c){var p=Si(c);return p=typeof p=="function"?p:s,ci(ta(c,1,Zn,!0),s,p)});function Ay(c){return c&&c.length?ci(c):[]}function Pa(c,p){return c&&c.length?ci(c,Et(p,2)):[]}function $c(c,p){return p=typeof p=="function"?p:s,c&&c.length?ci(c,s,p):[]}function jt(c){if(!(c&&c.length))return[];var p=0;return c=_s(c,function(T){if(Zn(T))return p=jn(T.length,p),!0}),nu(p,function(T){return ri(c,mc(T))})}function za(c,p){if(!(c&&c.length))return[];var T=jt(c);return p==null?T:ri(T,function(M){return ja(p,s,M)})}var Ad=$t(function(c,p){return Zn(c)?hu(c,p):[]}),Cd=$t(function(c){return Is(_s(c,Zn))}),Eg=$t(function(c){var p=Si(c);return Zn(p)&&(p=s),Is(_s(c,Zn),Et(p,2))}),Lu=$t(function(c){var p=Si(c);return p=typeof p=="function"?p:s,Is(_s(c,Zn),s,p)}),Xc=$t(jt);function Ou(c,p){return tg(c||[],p||[],Gl)}function $i(c,p){return tg(c||[],p||[],Rc)}var Ps=$t(function(c){var p=c.length,T=p>1?c[p-1]:s;return T=typeof T=="function"?(c.pop(),T):s,za(c,T)});function hi(c){var p=j(c);return p.__chain__=!0,p}function zo(c,p){return p(c),c}function pr(c,p){return p(c)}var Sg=Tl(function(c){var p=c.length,T=p?c[0]:0,M=this.__wrapped__,H=function(Q){return zf(Q,c)};return p>1||this.__actions__.length||!(M instanceof Zt)||!Zl(T)?this.thru(H):(M=M.slice(T,+T+(p?1:0)),M.__actions__.push({func:pr,args:[H],thisArg:s}),new zi(M,this.__chain__).thru(function(Q){return p&&!Q.length&&Q.push(s),Q}))});function Uo(){return hi(this)}function th(){return new zi(this.value(),this.__chain__)}function zn(){this.__values__===s&&(this.__values__=Hg(this.value()));var c=this.__index__>=this.__values__.length;return{done:c,value:c?s:this.__values__[this.__index__++]}}function gr(){return this}function wa(c){for(var p,T=this;T instanceof Ms;){var M=Qn(T);M.__index__=0,M.__values__=s,p?H.__wrapped__=M:p=M;var H=M;T=T.__wrapped__}return H.__wrapped__=c,p}function Gr(){var c=this.__wrapped__;if(c instanceof Zt){var p=c;return this.__actions__.length&&(p=new Zt(this)),p=p.reverse(),p.__actions__.push({func:pr,args:[Ed],thisArg:s}),new zi(p,this.__chain__)}return this.thru(Ed)}function Cy(){return $f(this.__wrapped__,this.__actions__)}var Tg=fg(function(c,p,T){pn.call(c,T)?++c[T]:Ea(c,T,1)});function Q0(c,p,T){var M=Nt(c)?gl:ny;return T&&Tn(c,p,T)&&(p=s),M(c,Et(p,3))}function ra(c,p){return(Nt(c)?_s:Bf)(c,Et(p,3))}var xd=sy(bg),Ld=sy(_y);function Qc(c,p){return ta(ih(c,p),1)}function wg(c,p){return ta(ih(c,p),ee)}function xy(c,p,T){return T=T===s?1:Qt(T),ta(ih(c,p),T)}function Ly(c,p){return(Nt(c)?Fi:El)(c,Et(p,3))}function Ag(c,p){return(Nt(c)?pc:Cc)(c,Et(p,3))}var Cg=fg(function(c,p,T){pn.call(c,T)?c[T].push(p):Ea(c,T,[p])});function nh(c,p,T,M){c=Xi(c)?c:ku(c),T=T&&!M?Qt(T):0;var H=c.length;return T<0&&(T=jn(H+T,0)),ch(c)?T<=H&&c.indexOf(p,T)>-1:!!H&&gc(c,p,T)>-1}var P0=$t(function(c,p,T){var M=-1,H=typeof p=="function",Q=Xi(c)?Ne(c.length):[];return El(c,function(le){Q[++M]=H?ja(p,le,T):si(le,p,T)}),Q}),Z0=fg(function(c,p,T){Ea(c,T,p)});function ih(c,p){return(Nt(c)?ri:td)(c,Et(p,3))}function J0(c,p,T,M){return c==null?[]:(Nt(p)||(p=p==null?[]:[p]),T=M?s:T,Nt(T)||(T=T==null?[]:[T]),qf(c,p,T))}var ah=fg(function(c,p,T){c[T?0:1].push(p)},function(){return[[],[]]});function Zs(c,p,T){var M=Nt(c)?ml:qh,H=arguments.length<3;return M(c,Et(p,4),T,H,El)}function xg(c,p,T){var M=Nt(c)?Rp:qh,H=arguments.length<3;return M(c,Et(p,4),T,H,Cc)}function K0(c,p){return(Nt(c)?_s:Bf)(c,Zc(Et(p,3)))}function F0(c){return(Nt(c)?Zh:Wp)(c)}function W0(c,p,T){return(T?Tn(c,p,T):p===s)?p=1:p=Qt(p),(Nt(c)?ql:eg)(c,p)}function Oy(c){return(Nt(c)?wc:ly)(c)}function ev(c){if(c==null)return 0;if(Xi(c))return ch(c)?vc(c):c.length;var p=Ta(c);return p==Kn||p==fa?c.size:Kp(c).length}function Dy(c,p,T){var M=Nt(c)?Af:Gf;return T&&Tn(c,p,T)&&(p=s),M(c,Et(p,3))}var Fl=$t(function(c,p){if(c==null)return[];var T=p.length;return T>1&&Tn(c,p[0],p[1])?p=[]:T>2&&Tn(p[0],p[1],p[2])&&(p=[p[0]]),qf(c,ta(p,1),[])}),Od=hr||function(){return Ci.Date.now()};function tv(c,p){if(typeof p!="function")throw new ya(v);return c=Qt(c),function(){if(--c<1)return p.apply(this,arguments)}}function Mn(c,p,T){return p=T?s:p,p=c&&p==null?c.length:p,Br(c,Be,s,s,s,s,p)}function Dd(c,p){var T;if(typeof p!="function")throw new ya(v);return c=Qt(c),function(){return--c>0&&(T=p.apply(this,arguments)),c<=1&&(p=s),T}}var My=$t(function(c,p,T){var M=te;if(T.length){var H=Da(T,js(My));M|=Re}return Br(c,M,p,T,H)}),Ry=$t(function(c,p,T){var M=te|pe;if(T.length){var H=Da(T,js(Ry));M|=Re}return Br(p,M,c,T,H)});function nv(c,p,T){p=T?s:p;var M=Br(c,Se,s,s,s,s,s,p);return M.placeholder=nv.placeholder,M}function iv(c,p,T){p=T?s:p;var M=Br(c,Fe,s,s,s,s,s,p);return M.placeholder=iv.placeholder,M}function av(c,p,T){var M,H,Q,le,ce,we,Pe=0,$e=!1,We=!1,ct=!0;if(typeof c!="function")throw new ya(v);p=mr(p)||0,di(T)&&($e=!!T.leading,We="maxWait"in T,Q=We?jn(mr(T.maxWait)||0,p):Q,ct="trailing"in T?!!T.trailing:ct);function ft(oa){var is=M,qo=H;return M=H=s,Pe=oa,le=c.apply(qo,is),le}function Tt(oa){return Pe=oa,ce=ei(Jn,p),$e?ft(oa):le}function zt(oa){var is=oa-we,qo=oa-Pe,Pg=p-is;return We?ba(Pg,Q-qo):Pg}function vt(oa){var is=oa-we,qo=oa-Pe;return we===s||is>=p||is<0||We&&qo>=Q}function Jn(){var oa=Od();if(vt(oa))return on(oa);ce=ei(Jn,zt(oa))}function on(oa){return ce=s,ct&&M?ft(oa):(M=H=s,le)}function sa(){ce!==s&&ig(ce),Pe=0,M=we=H=ce=s}function ns(){return ce===s?le:on(Od())}function no(){var oa=Od(),is=vt(oa);if(M=arguments,H=this,we=oa,is){if(ce===s)return Tt(we);if(We)return ig(ce),ce=ei(Jn,p),ft(we)}return ce===s&&(ce=ei(Jn,p)),le}return no.cancel=sa,no.flush=ns,no}var Lg=$t(function(c,p){return Jh(c,1,p)}),Du=$t(function(c,p,T){return Jh(c,mr(p)||0,T)});function Ny(c){return Br(c,re)}function Pc(c,p){if(typeof c!="function"||p!=null&&typeof p!="function")throw new ya(v);var T=function(){var M=arguments,H=p?p.apply(this,M):M[0],Q=T.cache;if(Q.has(H))return Q.get(H);var le=c.apply(this,M);return T.cache=Q.set(H,le)||Q,le};return T.cache=new(Pc.Cache||Ln),T}Pc.Cache=Ln;function Zc(c){if(typeof c!="function")throw new ya(v);return function(){var p=arguments;switch(p.length){case 0:return!c.call(this);case 1:return!c.call(this,p[0]);case 2:return!c.call(this,p[0],p[1]);case 3:return!c.call(this,p[0],p[1],p[2])}return!c.apply(this,p)}}function Js(c){return Dd(2,c)}var Al=od(function(c,p){p=p.length==1&&Nt(p[0])?ri(p[0],ga(Et())):ri(ta(p,1),ga(Et()));var T=p.length;return $t(function(M){for(var H=-1,Q=ba(M.length,T);++H<Q;)M[H]=p[H].call(this,M[H]);return ja(c,this,M)})}),Jc=$t(function(c,p){return Br(c,Re,s,p,Da(p,js(Jc)))}),jr=$t(function(c,p){return Br(c,Je,s,p,Da(p,js(jr)))}),ky=Tl(function(c,p){return Br(c,W,s,s,s,p)});function zy(c,p){if(typeof c!="function")throw new ya(v);return p=p===s?p:Qt(p),$t(c,p)}function Og(c,p){if(typeof c!="function")throw new ya(v);return p=p==null?0:jn(Qt(p),0),$t(function(T){var M=T[p],H=Xl(T,0,p);return M&&Yi(H,M),ja(c,this,H)})}function Uy(c,p,T){var M=!0,H=!0;if(typeof c!="function")throw new ya(v);return di(T)&&(M="leading"in T?!!T.leading:M,H="trailing"in T?!!T.trailing:H),av(c,p,{leading:M,maxWait:p,trailing:H})}function _1(c){return Mn(c,1)}function By(c,p){return Jc(ng(p),c)}function rv(){if(!arguments.length)return[];var c=arguments[0];return Nt(c)?c:[c]}function Hy(c){return Bi(c,B)}function E1(c,p){return p=typeof p=="function"?p:s,Bi(c,B,p)}function Kc(c){return Bi(c,5)}function rh(c,p){return p=typeof p=="function"?p:s,Bi(c,5,p)}function lh(c,p){return p==null||Ac(c,p,Ce(p))}function Cl(c,p){return c===p||c!==c&&p!==p}var Md=Pf($n),Xt=Pf(function(c,p){return c>=p}),ll=Lc((function(){return arguments})())?Lc:function(c){return Li(c)&&pn.call(c,"callee")&&!Cr.call(c,"callee")},Nt=Ne.isArray,Iy=Bh?ga(Bh):To;function Xi(c){return c!=null&&Fc(c.length)&&!Wl(c)}function Zn(c){return Li(c)&&Xi(c)}function sh(c){return c===!0||c===!1||Li(c)&&Vn(c)==Jt}var Yr=Or||yt,qy=dc?ga(dc):wo;function Dg(c){return Li(c)&&c.nodeType===1&&!uh(c)}function lv(c){if(c==null)return!0;if(Xi(c)&&(Nt(c)||typeof c=="string"||typeof c.splice=="function"||Yr(c)||Mu(c)||ll(c)))return!c.length;var p=Ta(c);if(p==Kn||p==fa)return!c.size;if(Bc(c))return!Kp(c).length;for(var T in c)if(pn.call(c,T))return!1;return!0}function sv(c,p){return Vl(c,p)}function ov(c,p,T){T=typeof T=="function"?T:s;var M=T?T(c,p):s;return M===s?Vl(c,p,s,T):!!M}function Rd(c){if(!Li(c))return!1;var p=Vn(c);return p==tt||p==En||typeof c.message=="string"&&typeof c.name=="string"&&!uh(c)}function Xn(c){return typeof c=="number"&&bl(c)}function Wl(c){if(!di(c))return!1;var p=Vn(c);return p==Sr||p==Ml||p==At||p==kt}function Ii(c){return typeof c=="number"&&c==Qt(c)}function Fc(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=ye}function di(c){var p=typeof c;return c!=null&&(p=="object"||p=="function")}function Li(c){return c!=null&&typeof c=="object"}var Nd=Vm?ga(Vm):Ao;function Mg(c,p){return c===p||Fh(c,p,zc(p))}function oh(c,p,T){return T=typeof T=="function"?T:s,Fh(c,p,zc(p),T)}function Gy(c){return uv(c)&&c!=+c}function Rg(c){if(wu(c))throw new Lt(m);return ui(c)}function Ng(c){return c===null}function kg(c){return c==null}function uv(c){return typeof c=="number"||Li(c)&&Vn(c)==Ai}function uh(c){if(!Li(c)||Vn(c)!=qa)return!1;var p=Ni(c);if(p===null)return!0;var T=pn.call(p,"constructor")&&p.constructor;return typeof T=="function"&&T instanceof T&&Ts.call(T)==bc}var jy=Hh?ga(Hh):Jp;function zg(c){return Ii(c)&&c>=-9007199254740991&&c<=ye}var Ug=$m?ga($m):Wh;function ch(c){return typeof c=="string"||!Nt(c)&&Li(c)&&Vn(c)==La}function qi(c){return typeof c=="symbol"||Li(c)&&Vn(c)==lr}var Mu=Xm?ga(Xm):iy;function fh(c){return c===s}function Yy(c){return Li(c)&&Ta(c)==Rl}function cv(c){return Li(c)&&Vn(c)==Po}var Bg=Pf(If),Vy=Pf(function(c,p){return c<=p});function Hg(c){if(!c)return[];if(Xi(c))return ch(c)?bi(c):Ra(c);if(lu&&c[lu])return q0(c[lu]());var p=Ta(c);return(p==Kn?Oa:p==fa?Lf:ku)(c)}function Vr(c){return c?(c=mr(c),c===ee||c===-1/0?(c<0?-1:1)*Me:c===c?c:0):c===0?c:0}function Qt(c){var p=Vr(c),T=p%1;return p===p?T?p-T:p:0}function Aa(c){return c?jl(Qt(c),0,F):0}function mr(c){if(typeof c=="number")return c;if(qi(c))return et;if(di(c)){var p=typeof c.valueOf=="function"?c.valueOf():c;c=di(p)?p+"":p}if(typeof c!="string")return c===0?c:+c;c=au(c);var T=B0.test(c);return T||ps.test(c)?H0(c.slice(2),T?2:8):zm.test(c)?et:+c}function kd(c){return al(c,Ht(c))}function zd(c){return c?jl(Qt(c),-9007199254740991,ye):c===0?c:0}function wn(c){return c==null?"":zr(c)}var pi=vu(function(c,p){if(Bc(p)||Xi(p)){al(p,Ce(p),c);return}for(var T in p)pn.call(p,T)&&Gl(c,T,p[T])}),yr=vu(function(c,p){al(p,Ht(p),c)}),$y=vu(function(c,p,T,M){al(p,Ht(p),c,M)}),Bt=vu(function(c,p,T,M){al(p,Ce(p),c,M)}),Bo=Tl(zf);function Ks(c,p){var T=Hl(c);return p==null?T:So(T,p)}var hh=$t(function(c,p){c=fn(c);var T=-1,M=p.length,H=M>2?p[2]:s;for(H&&Tn(p[0],p[1],H)&&(M=1);++T<M;)for(var Q=p[T],le=Ht(Q),ce=-1,we=le.length;++ce<we;){var Pe=le[ce],$e=c[Pe];($e===s||Cl($e,mn[Pe])&&!pn.call(c,Pe))&&(c[Pe]=Q[Pe])}return c}),es=$t(function(c){return c.push(s,cy),ja(sl,s,c)});function Ud(c,p){return Np(c,Et(p,3),_i)}function Xy(c,p){return Np(c,Et(p,3),Mr)}function Qy(c,p){return c==null?c:Hs(c,Et(p,3),Ht)}function Fs(c,p){return c==null?c:xc(c,Et(p,3),Ht)}function Bd(c,p){return c&&_i(c,Et(p,3))}function Py(c,p){return c&&Mr(c,Et(p,3))}function Zy(c){return c==null?[]:Rr(c,Ce(c))}function Ig(c){return c==null?[]:Rr(c,Ht(c))}function Za(c,p,T){var M=c==null?s:Nr(c,p);return M===s?T:M}function Ru(c,p){return c!=null&&gg(c,p,oi)}function Wc(c,p){return c!=null&&gg(c,p,Zp)}var Jy=dd(function(c,p,T){p!=null&&typeof p.toString!="function"&&(p=fr.call(p)),c[p]=T},bh(d)),S1=dd(function(c,p,T){p!=null&&typeof p.toString!="function"&&(p=fr.call(p)),pn.call(c,p)?c[p].push(T):c[p]=[T]},Et),gi=$t(si);function Ce(c){return Xi(c)?il(c):Kp(c)}function Ht(c){return Xi(c)?il(c,!0):ed(c)}function qg(c,p){var T={};return p=Et(p,3),_i(c,function(M,H,Q){Ea(T,p(M,H,Q),M)}),T}function Hd(c,p){var T={};return p=Et(p,3),_i(c,function(M,H,Q){Ea(T,H,p(M,H,Q))}),T}var Id=vu(function(c,p,T){pu(c,p,T)}),sl=vu(function(c,p,T,M){pu(c,p,T,M)}),Ho=Tl(function(c,p){var T={};if(c==null)return T;var M=!1;p=ri(p,function(Q){return Q=Lo(Q,c),M||(M=Q.length>1),Q}),al(c,Nc(c),T),M&&(T=Bi(T,7,fy));for(var H=p.length;H--;)sd(T,p[H]);return T});function dh(c,p){return ph(c,Zc(Et(p)))}var Nu=Tl(function(c,p){return c==null?{}:Co(c,p)});function ph(c,p){if(c==null)return{};var T=ri(Nc(c),function(M){return[M]});return p=Et(p),nd(c,T,function(M,H){return p(M,H[0])})}function qd(c,p,T){p=Lo(p,c);var M=-1,H=p.length;for(H||(H=1,c=s);++M<H;){var Q=c==null?s:c[Hi(p[M])];Q===s&&(M=H,Q=T),c=Wl(Q)?Q.call(c):Q}return c}function Gg(c,p,T){return c==null?c:Rc(c,p,T)}function fv(c,p,T,M){return M=typeof M=="function"?M:s,c==null?c:Rc(c,p,T,M)}var gh=dg(Ce),mh=dg(Ht);function Gd(c,p,T){var M=Nt(c),H=M||Yr(c)||Mu(c);if(p=Et(p,4),T==null){var Q=c&&c.constructor;H?T=M?new Q:[]:di(c)?T=Wl(Q)?Hl(Ni(c)):{}:T={}}return(H?Fi:_i)(c,function(le,ce,we){return p(T,le,ce,we)}),T}function hv(c,p){return c==null?!0:sd(c,p)}function yh(c,p,T){return c==null?c:mu(c,p,ng(T))}function Ky(c,p,T,M){return M=typeof M=="function"?M:s,c==null?c:mu(c,p,ng(T),M)}function ku(c){return c==null?[]:Gh(c,Ce(c))}function jg(c){return c==null?[]:Gh(c,Ht(c))}function Yg(c,p,T){return T===s&&(T=p,p=s),T!==s&&(T=mr(T),T=T===T?T:0),p!==s&&(p=mr(p),p=p===p?p:0),jl(mr(c),p,T)}function $r(c,p,T){return p=Vr(p),T===s?(T=p,p=0):T=Vr(T),c=mr(c),Yl(c,p,T)}function xl(c,p,T){if(T&&typeof T!="boolean"&&Tn(c,p,T)&&(p=T=s),T===s&&(typeof p=="boolean"?(T=p,p=s):typeof c=="boolean"&&(T=c,c=s)),c===s&&p===s?(c=0,p=1):(c=Vr(c),p===s?(p=c,c=0):p=Vr(p)),c>p){var M=c;c=p,p=M}if(T||c%1||p%1){var H=Vp();return ba(c+H*(p-c+zh("1e-"+((H+"").length-1))),p)}return Mc(c,p)}var Ll=Pl(function(c,p,T){return p=p.toLowerCase(),c+(T?jd(p):p)});function jd(c){return vr(wn(c).toLowerCase())}function Yd(c){return c=wn(c),c&&c.replace(ac,Es).replace(cc,"")}function T1(c,p,T){c=wn(c),p=zr(p);var M=c.length;T=T===s?M:jl(Qt(T),0,M);var H=T;return T-=p.length,T>=0&&c.slice(T,H)==p}function w1(c){return c=wn(c),c&&Ct.test(c)?c.replace(Mt,Pm):c}function Qi(c){return c=wn(c),c&&ds.test(c)?c.replace(ic,"\\$&"):c}var Fy=Pl(function(c,p,T){return c+(T?"-":"")+p.toLowerCase()}),vh=Pl(function(c,p,T){return c+(T?" ":"")+p.toLowerCase()}),Vd=_u("toLowerCase");function ef(c,p,T){c=wn(c),p=Qt(p);var M=p?vc(c):0;if(!p||M>=p)return c;var H=(p-M)/2;return Gs(Eo(H),T)+c+Gs(Ec(H),T)}function Wy(c,p,T){c=wn(c),p=Qt(p);var M=p?vc(c):0;return p&&M<p?c+Gs(p-M,T):c}function Ws(c,p,T){c=wn(c),p=Qt(p);var M=p?vc(c):0;return p&&M<p?Gs(p-M,T)+c:c}function zu(c,p,T){return T||p==null?p=0:p&&(p=+p),Yp(wn(c).replace(ur,""),p||0)}function Uu(c,p,T){return(T?Tn(c,p,T):p===s)?p=1:p=Qt(p),ad(wn(c),p)}function eo(){var c=arguments,p=wn(c[0]);return c.length<3?p:p.replace(c[1],c[2])}var Pi=Pl(function(c,p,T){return c+(T?"_":"")+p.toLowerCase()});function Ua(c,p,T){return T&&typeof T!="number"&&Tn(c,p,T)&&(p=T=s),T=T===s?F:T>>>0,T?(c=wn(c),c&&(typeof p=="string"||p!=null&&!jy(p))&&(p=zr(p),!p&&yl(c))?Xl(bi(c),0,T):c.split(p,T)):[]}var to=Pl(function(c,p,T){return c+(T?" ":"")+vr(p)});function Ja(c,p,T){return c=wn(c),T=T==null?0:jl(Qt(T),0,c.length),p=zr(p),c.slice(T,T+p.length)==p}function $d(c,p,T){var M=j.templateSettings;T&&Tn(c,p,T)&&(p=s),c=wn(c),p=Bt({},p,M,Sl);var H=Bt({},p.imports,M.imports,Sl),Q=Ce(H),le=Gh(H,Q);Fi(Q,function(vt){if(In.test(vt))throw new Lt(E)});var ce,we,Pe=0,$e=p.interpolate||gs,We="__p += '",ct=Yh((p.escape||gs).source+"|"+$e.source+"|"+($e===or?Jo:gs).source+"|"+(p.evaluate||gs).source+"|$","g"),ft="//# sourceURL="+(pn.call(p,"sourceURL")?(p.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++kh+"]")+`
`;c.replace(ct,function(vt,Jn,on,sa,ns,no){return on||(on=sa),We+=c.slice(Pe,no).replace(bf,Zm),Jn&&(ce=!0,We+=`' +
__e(`+Jn+`) +
'`),ns&&(we=!0,We+=`';
`+ns+`;
__p += '`),on&&(We+=`' +
((__t = (`+on+`)) == null ? '' : __t) +
'`),Pe=no+vt.length,vt}),We+=`';
`;var Tt=pn.call(p,"variable")&&p.variable;if(!Tt)We=`with (obj) {
`+We+`
}
`;else if(In.test(Tt))throw new Lt(w);We=(we?We.replace(ge,""):We).replace(Xe,"$1").replace(Ze,"$1;"),We="function("+(Tt||"obj")+`) {
`+(Tt?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(ce?", __e = _.escape":"")+(we?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+We+`return __p
}`;var zt=Ca(function(){return cn(Q,ft+"return "+We).apply(s,le)});if(zt.source=We,Rd(zt))throw zt;return zt}function A1(c){return wn(c).toLowerCase()}function Xd(c){return wn(c).toUpperCase()}function tf(c,p,T){if(c=wn(c),c&&(T||p===s))return au(c);if(!c||!(p=zr(p)))return c;var M=bi(c),H=bi(p);return Xl(M,jh(M,H),Up(M,H)+1).join("")}function Qd(c,p,T){if(c=wn(c),c&&(T||p===s))return c.slice(0,Ss(c)+1);if(!c||!(p=zr(p)))return c;var M=bi(c);return Xl(M,0,Up(M,bi(p))+1).join("")}function ol(c,p,T){if(c=wn(c),c&&(T||p===s))return c.replace(ur,"");if(!c||!(p=zr(p)))return c;var M=bi(c);return Xl(M,jh(M,bi(p))).join("")}function Xr(c,p){var T=me,M=ne;if(di(p)){var H="separator"in p?p.separator:H;T="length"in p?Qt(p.length):T,M="omission"in p?zr(p.omission):M}c=wn(c);var Q=c.length;if(yl(c)){var le=bi(c);Q=le.length}if(T>=Q)return c;var ce=T-vc(M);if(ce<1)return M;var we=le?Xl(le,0,ce).join(""):c.slice(0,ce);if(H===s)return we+M;if(le&&(ce+=we.length-ce),jy(H)){if(c.slice(ce).search(H)){var Pe,$e=we;for(H.global||(H=Yh(H.source,wn(Rh.exec(H))+"g")),H.lastIndex=0;Pe=H.exec($e);)var We=Pe.index;we=we.slice(0,We===s?ce:We)}}else if(c.indexOf(zr(H),ce)!=ce){var ct=we.lastIndexOf(H);ct>-1&&(we=we.slice(0,ct))}return we+M}function ul(c){return c=wn(c),c&&bt.test(c)?c.replace(ut,Of):c}var Pd=Pl(function(c,p,T){return c+(T?" ":"")+p.toUpperCase()}),vr=_u("toUpperCase");function la(c,p,T){return c=wn(c),p=T?s:p,p===s?Jm(c)?ru(c):v1(c):c.match(p)||[]}var Ca=$t(function(c,p){try{return ja(c,s,p)}catch(T){return Rd(T)?T:new Lt(T)}}),ts=Tl(function(c,p){return Fi(p,function(T){T=Hi(T),Ea(c,T,My(c[T],c))}),c});function Vg(c){var p=c==null?0:c.length,T=Et();return c=p?ri(c,function(M){if(typeof M[1]!="function")throw new ya(v);return[T(M[0]),M[1]]}):[],$t(function(M){for(var H=-1;++H<p;){var Q=c[H];if(ja(Q[0],this,M))return ja(Q[1],this,M)}})}function C1(c){return Bs(Bi(c,x))}function bh(c){return function(){return c}}function n(c,p){return c==null||c!==c?p:c}var l=hd(),o=hd(!0);function d(c){return c}function b(c){return Hf(typeof c=="function"?c:Bi(c,x))}function A(c){return Sa(Bi(c,x))}function z(c,p){return Ei(c,Bi(p,x))}var V=$t(function(c,p){return function(T){return si(T,c,p)}}),oe=$t(function(c,p){return function(T){return si(c,T,p)}});function Le(c,p,T){var M=Ce(p),H=Rr(p,M);T==null&&!(di(p)&&(H.length||!M.length))&&(T=p,p=c,c=this,H=Rr(p,Ce(p)));var Q=!(di(T)&&"chain"in T)||!!T.chain,le=Wl(c);return Fi(H,function(ce){var we=p[ce];c[ce]=we,le&&(c.prototype[ce]=function(){var Pe=this.__chain__;if(Q||Pe){var $e=c(this.__wrapped__);return($e.__actions__=Ra(this.__actions__)).push({func:we,args:arguments,thisArg:c}),$e.__chain__=Pe,$e}return we.apply(c,Yi([this.value()],arguments))})}),c}function je(){return Ci._===this&&(Ci._=As),this}function Qe(){}function Oe(c){return c=Qt(c),$t(function(p){return Dc(p,c)})}var Ue=Su(ri),dt=Su(gl),St=Su(Af);function Un(c){return Uc(c)?mc(Hi(c)):Fp(c)}function Ee(c){return function(p){return c==null?s:Nr(c,p)}}var he=pd(),xe=pd(!0);function Ve(){return[]}function yt(){return!1}function An(){return{}}function gt(){return""}function It(){return!0}function Ft(c,p){if(c=Qt(c),c<1||c>ye)return[];var T=F,M=ba(c,F);p=Et(p),c-=F;for(var H=nu(M,p);++T<c;)p(T);return H}function bn(c){return Nt(c)?ri(c,Hi):qi(c)?[c]:Ra(vg(wn(c)))}function Io(c){var p=++ws;return wn(c)+p}var x1=Eu(function(c,p){return c+p},0),sS=Zf("ceil"),oS=Eu(function(c,p){return c/p},1),Wb=Zf("floor");function $g(c){return c&&c.length?Uf(c,d,$n):s}function L1(c,p){return c&&c.length?Uf(c,Et(p,2),$n):s}function e_(c){return tu(c,d)}function t_(c,p){return tu(c,Et(p,2))}function n_(c){return c&&c.length?Uf(c,d,If):s}function dv(c,p){return c&&c.length?Uf(c,Et(p,2),If):s}var Xg=Eu(function(c,p){return c*p},1),uS=Zf("round"),pv=Eu(function(c,p){return c-p},0);function i_(c){return c&&c.length?Wi(c,d):0}function Qg(c,p){return c&&c.length?Wi(c,Et(p,2)):0}return j.after=tv,j.ary=Mn,j.assign=pi,j.assignIn=yr,j.assignInWith=$y,j.assignWith=Bt,j.at=Bo,j.before=Dd,j.bind=My,j.bindAll=ts,j.bindKey=Ry,j.castArray=rv,j.chain=hi,j.chunk=Au,j.compact=vy,j.concat=ia,j.cond=Vg,j.conforms=C1,j.constant=bh,j.countBy=Tg,j.create=Ks,j.curry=nv,j.curryRight=iv,j.debounce=av,j.defaults=hh,j.defaultsDeep=es,j.defer=Lg,j.delay=Du,j.difference=j0,j.differenceBy=by,j.differenceWith=bd,j.drop=Pn,j.dropRight=Qa,j.dropRightWhile=$s,j.dropWhile=Y0,j.fill=V0,j.filter=ra,j.flatMap=Qc,j.flatMapDeep=wg,j.flatMapDepth=xy,j.flatten=_d,j.flattenDeep=aa,j.flattenDepth=Ir,j.flip=Ny,j.flow=l,j.flowRight=o,j.fromPairs=Ey,j.functions=Zy,j.functionsIn=Ig,j.groupBy=Cg,j.initial=Xs,j.intersection=Cu,j.intersectionBy=Ro,j.intersectionWith=_g,j.invert=Jy,j.invertBy=S1,j.invokeMap=P0,j.iteratee=b,j.keyBy=Z0,j.keys=Ce,j.keysIn=Ht,j.map=ih,j.mapKeys=qg,j.mapValues=Hd,j.matches=A,j.matchesProperty=z,j.memoize=Pc,j.merge=Id,j.mergeWith=sl,j.method=V,j.methodOf=oe,j.mixin=Le,j.negate=Zc,j.nthArg=Oe,j.omit=Ho,j.omitBy=dh,j.once=Js,j.orderBy=J0,j.over=Ue,j.overArgs=Al,j.overEvery=dt,j.overSome=St,j.partial=Jc,j.partialRight=jr,j.partition=ah,j.pick=Nu,j.pickBy=ph,j.property=Un,j.propertyOf=Ee,j.pull=Gc,j.pullAll=eh,j.pullAllBy=jc,j.pullAllWith=$0,j.pullAt=X0,j.range=he,j.rangeRight=xe,j.rearg=ky,j.reject=K0,j.remove=Yc,j.rest=zy,j.reverse=Ed,j.sampleSize=W0,j.set=Gg,j.setWith=fv,j.shuffle=Oy,j.slice=Sd,j.sortBy=Fl,j.sortedUniq=sn,j.sortedUniqBy=Dn,j.split=Ua,j.spread=Og,j.tail=qr,j.take=No,j.takeRight=Vc,j.takeRightWhile=wd,j.takeWhile=Qs,j.tap=zo,j.throttle=Uy,j.thru=pr,j.toArray=Hg,j.toPairs=gh,j.toPairsIn=mh,j.toPath=bn,j.toPlainObject=kd,j.transform=Gd,j.unary=_1,j.union=fi,j.unionBy=ko,j.unionWith=xu,j.uniq=Ay,j.uniqBy=Pa,j.uniqWith=$c,j.unset=hv,j.unzip=jt,j.unzipWith=za,j.update=yh,j.updateWith=Ky,j.values=ku,j.valuesIn=jg,j.without=Ad,j.words=la,j.wrap=By,j.xor=Cd,j.xorBy=Eg,j.xorWith=Lu,j.zip=Xc,j.zipObject=Ou,j.zipObjectDeep=$i,j.zipWith=Ps,j.entries=gh,j.entriesIn=mh,j.extend=yr,j.extendWith=$y,Le(j,j),j.add=x1,j.attempt=Ca,j.camelCase=Ll,j.capitalize=jd,j.ceil=sS,j.clamp=Yg,j.clone=Hy,j.cloneDeep=Kc,j.cloneDeepWith=rh,j.cloneWith=E1,j.conformsTo=lh,j.deburr=Yd,j.defaultTo=n,j.divide=oS,j.endsWith=T1,j.eq=Cl,j.escape=w1,j.escapeRegExp=Qi,j.every=Q0,j.find=xd,j.findIndex=bg,j.findKey=Ud,j.findLast=Ld,j.findLastIndex=_y,j.findLastKey=Xy,j.floor=Wb,j.forEach=Ly,j.forEachRight=Ag,j.forIn=Qy,j.forInRight=Fs,j.forOwn=Bd,j.forOwnRight=Py,j.get=Za,j.gt=Md,j.gte=Xt,j.has=Ru,j.hasIn=Wc,j.head=ka,j.identity=d,j.includes=nh,j.indexOf=Sy,j.inRange=$r,j.invoke=gi,j.isArguments=ll,j.isArray=Nt,j.isArrayBuffer=Iy,j.isArrayLike=Xi,j.isArrayLikeObject=Zn,j.isBoolean=sh,j.isBuffer=Yr,j.isDate=qy,j.isElement=Dg,j.isEmpty=lv,j.isEqual=sv,j.isEqualWith=ov,j.isError=Rd,j.isFinite=Xn,j.isFunction=Wl,j.isInteger=Ii,j.isLength=Fc,j.isMap=Nd,j.isMatch=Mg,j.isMatchWith=oh,j.isNaN=Gy,j.isNative=Rg,j.isNil=kg,j.isNull=Ng,j.isNumber=uv,j.isObject=di,j.isObjectLike=Li,j.isPlainObject=uh,j.isRegExp=jy,j.isSafeInteger=zg,j.isSet=Ug,j.isString=ch,j.isSymbol=qi,j.isTypedArray=Mu,j.isUndefined=fh,j.isWeakMap=Yy,j.isWeakSet=cv,j.join=qc,j.kebabCase=Fy,j.last=Si,j.lastIndexOf=Ty,j.lowerCase=vh,j.lowerFirst=Vd,j.lt=Bg,j.lte=Vy,j.max=$g,j.maxBy=L1,j.mean=e_,j.meanBy=t_,j.min=n_,j.minBy=dv,j.stubArray=Ve,j.stubFalse=yt,j.stubObject=An,j.stubString=gt,j.stubTrue=It,j.multiply=Xg,j.nth=rn,j.noConflict=je,j.noop=Qe,j.now=Od,j.pad=ef,j.padEnd=Wy,j.padStart=Ws,j.parseInt=zu,j.random=xl,j.reduce=Zs,j.reduceRight=xg,j.repeat=Uu,j.replace=eo,j.result=qd,j.round=uS,j.runInContext=_e,j.sample=F0,j.size=ev,j.snakeCase=Pi,j.some=Dy,j.sortedIndex=wy,j.sortedIndexBy=Td,j.sortedIndexOf=b1,j.sortedLastIndex=On,j.sortedLastIndexBy=ln,j.sortedLastIndexOf=Pt,j.startCase=to,j.startsWith=Ja,j.subtract=pv,j.sum=i_,j.sumBy=Qg,j.template=$d,j.times=Ft,j.toFinite=Vr,j.toInteger=Qt,j.toLength=Aa,j.toLower=A1,j.toNumber=mr,j.toSafeInteger=zd,j.toString=wn,j.toUpper=Xd,j.trim=tf,j.trimEnd=Qd,j.trimStart=ol,j.truncate=Xr,j.unescape=ul,j.uniqueId=Io,j.upperCase=Pd,j.upperFirst=vr,j.each=Ly,j.eachRight=Ag,j.first=ka,Le(j,(function(){var c={};return _i(j,function(p,T){pn.call(j.prototype,T)||(c[T]=p)}),c})(),{chain:!1}),j.VERSION=f,Fi(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){j[c].placeholder=j}),Fi(["drop","take"],function(c,p){Zt.prototype[c]=function(T){T=T===s?1:jn(Qt(T),0);var M=this.__filtered__&&!p?new Zt(this):this.clone();return M.__filtered__?M.__takeCount__=ba(T,M.__takeCount__):M.__views__.push({size:ba(T,F),type:c+(M.__dir__<0?"Right":"")}),M},Zt.prototype[c+"Right"]=function(T){return this.reverse()[c](T).reverse()}}),Fi(["filter","map","takeWhile"],function(c,p){var T=p+1,M=T==K||T==X;Zt.prototype[c]=function(H){var Q=this.clone();return Q.__iteratees__.push({iteratee:Et(H,3),type:T}),Q.__filtered__=Q.__filtered__||M,Q}}),Fi(["head","last"],function(c,p){var T="take"+(p?"Right":"");Zt.prototype[c]=function(){return this[T](1).value()[0]}}),Fi(["initial","tail"],function(c,p){var T="drop"+(p?"":"Right");Zt.prototype[c]=function(){return this.__filtered__?new Zt(this):this[T](1)}}),Zt.prototype.compact=function(){return this.filter(d)},Zt.prototype.find=function(c){return this.filter(c).head()},Zt.prototype.findLast=function(c){return this.reverse().find(c)},Zt.prototype.invokeMap=$t(function(c,p){return typeof c=="function"?new Zt(this):this.map(function(T){return si(T,c,p)})}),Zt.prototype.reject=function(c){return this.filter(Zc(Et(c)))},Zt.prototype.slice=function(c,p){c=Qt(c);var T=this;return T.__filtered__&&(c>0||p<0)?new Zt(T):(c<0?T=T.takeRight(-c):c&&(T=T.drop(c)),p!==s&&(p=Qt(p),T=p<0?T.dropRight(-p):T.take(p-c)),T)},Zt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},Zt.prototype.toArray=function(){return this.take(F)},_i(Zt.prototype,function(c,p){var T=/^(?:filter|find|map|reject)|While$/.test(p),M=/^(?:head|last)$/.test(p),H=j[M?"take"+(p=="last"?"Right":""):p],Q=M||/^find/.test(p);H&&(j.prototype[p]=function(){var le=this.__wrapped__,ce=M?[1]:arguments,we=le instanceof Zt,Pe=ce[0],$e=we||Nt(le),We=function(Jn){var on=H.apply(j,Yi([Jn],ce));return M&&ct?on[0]:on};$e&&T&&typeof Pe=="function"&&Pe.length!=1&&(we=$e=!1);var ct=this.__chain__,ft=!!this.__actions__.length,Tt=Q&&!ct,zt=we&&!ft;if(!Q&&$e){le=zt?le:new Zt(this);var vt=c.apply(le,ce);return vt.__actions__.push({func:pr,args:[We],thisArg:s}),new zi(vt,ct)}return Tt&&zt?c.apply(this,ce):(vt=this.thru(We),Tt?M?vt.value()[0]:vt.value():vt)})}),Fi(["pop","push","shift","sort","splice","unshift"],function(c){var p=bo[c],T=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",M=/^(?:pop|shift)$/.test(c);j.prototype[c]=function(){var H=arguments;if(M&&!this.__chain__){var Q=this.value();return p.apply(Nt(Q)?Q:[],H)}return this[T](function(le){return p.apply(Nt(le)?le:[],H)})}}),_i(Zt.prototype,function(c,p){var T=j[p];if(T){var M=T.name+"";pn.call(Os,M)||(Os[M]=[]),Os[M].push({name:p,func:T})}}),Os[Ur(s,pe).name]=[{name:"wrapper",func:s}],Zt.prototype.clone=Tc,Zt.prototype.reverse=_a,Zt.prototype.value=$h,j.prototype.at=Sg,j.prototype.chain=Uo,j.prototype.commit=th,j.prototype.next=zn,j.prototype.plant=wa,j.prototype.reverse=Gr,j.prototype.toJSON=j.prototype.valueOf=j.prototype.value=Cy,j.prototype.first=j.prototype.head,lu&&(j.prototype[lu]=gr),j})();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Ci._=Ar,define(function(){return Ar})):hc?((hc.exports=Ar)._=Ar,eu._=Ar):Ci._=Ar}).call(i)})),so=p3(),g3="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCAyNiAyNiI+CiAgICA8dGV4dCB4PSIzIiB5PSIyMiIgY2xhc3M9InRleHQiIGZpbGw9IiNlYWFjNzciCiAgICAgICAgc3R5bGU9ImZvbnQtZmFtaWx5OiAnSGVsdmV0aWNhIE5ldWUnLCAnSGVsdmV0aWNhJywgJ0FyaWFsJywgc2Fucy1zZXJpZjsgZm9udC1zaXplOiAyNnB4OyBmb250LXdlaWdodDogYm9sZDsiPgogICAgICAgIEMKICAgIDwvdGV4dD4KPC9zdmc+Cg==",m3="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCAyNiAyNiI+CiAgICA8dGV4dCB4PSIwIiB5PSIyMCIgY2xhc3M9InRleHQiIGZpbGw9IiMzNGM3ZjMiCiAgICAgICAgc3R5bGU9ImZvbnQtZmFtaWx5OiAnSGVsdmV0aWNhIE5ldWUnLCAnSGVsdmV0aWNhJywgJ0FyaWFsJywgc2Fucy1zZXJpZjsgZm9udC1zaXplOiAxOHB4OyBmb250LXdlaWdodDogYm9sZDsiPgogICAgICAgIE9QCiAgICA8L3RleHQ+Cjwvc3ZnPgo=",y3="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCAyNiAyNiI+CiAgICA8dGV4dCB4PSIwIiB5PSIyMCIgY2xhc3M9InRleHQiIGZpbGw9IiMzNGM3ZjMiCiAgICAgICAgc3R5bGU9ImZvbnQtZmFtaWx5OiAnSGVsdmV0aWNhIE5ldWUnLCAnSGVsdmV0aWNhJywgJ0FyaWFsJywgc2Fucy1zZXJpZjsgZm9udC1zaXplOiAxOHB4OyBmb250LXdlaWdodDogYm9sZDsiPgogICAgICAgIERQCiAgICA8L3RleHQ+Cjwvc3ZnPgo=",v3="data:image/svg+xml,%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20x='0px'%20y='0px'%20viewBox='0%200%20350%20350'%3e%3cpath%20fill='%23eb7777'%20d='M175,171.173c38.914,0,70.463-38.318,70.463-85.586C245.463,38.318,235.105,0,175,0s-70.465,38.318-70.465,85.587%20C104.535,132.855,136.084,171.173,175,171.173z'/%3e%3cpath%20fill='%23eb7777'%20d='M41.909,301.853C41.897,298.971,41.885,301.041,41.909,301.853L41.909,301.853z'/%3e%3cpath%20fill='%23eb7777'%20d='M308.085,304.104C308.123,303.315,308.098,298.63,308.085,304.104L308.085,304.104z'/%3e%3cpath%20fill='%23eb7777'%20d='M307.935,298.397c-1.305-82.342-12.059-105.805-94.352-120.657c0,0-11.584,14.761-38.584,14.761%20s-38.586-14.761-38.586-14.761c-81.395,14.69-92.803,37.805-94.303,117.982c-0.123,6.547-0.18,6.891-0.202,6.131%20c0.005,1.424,0.011,4.058,0.011,8.651c0,0,19.592,39.496,133.08,39.496c113.486,0,133.08-39.496,133.08-39.496%20c0-2.951,0.002-5.003,0.005-6.399C308.062,304.575,308.018,303.664,307.935,298.397z'/%3e%3c/svg%3e",b3="data:image/svg+xml,%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20x='0px'%20y='0px'%20viewBox='0%200%20512%20512'%3e%3cpath%20fill='%2377ca98'%20d='M472.928,34.752c-4.416-3.008-10.016-3.552-14.944-1.6c-1.024,0.416-106.88,42.048-195.168,0.384%20C186.72-2.432,102.912,14.4,64,25.76V16c0-8.832-7.168-16-16-16c-8.832,0-16,7.168-16,16v32v256v192c0,8.832,7.168,16,16,16%20c8.832,0,16-7.168,16-16V315.328c28.384-9.184,112.608-31.136,185.184,3.136c34.592,16.352,70.784,21.792,103.648,21.792%20c63.2,0,114.016-20.128,117.184-21.408c6.016-2.464,9.984-8.32,9.984-14.848V48C480,42.688,477.344,37.728,472.928,34.752z'/%3e%3c/svg%3e",_3="data:image/svg+xml,%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20x='0px'%20y='0px'%20viewBox='0%200%20512%20512'%3e%3cpath%20fill='%2377ca98'%20d='M155,0H15C6.716,0,0,6.716,0,15v35h170V15C170,6.716,163.284,0,155,0z'/%3e%3cpath%20fill='%2377ca98'%20d='M504.464,142.989c-4.662-2.674-10.397-2.651-15.036,0.063L341,229.852V156c0-5.374-2.875-10.337-7.536-13.011%20c-4.662-2.674-10.397-2.651-15.036,0.063L170,229.852V80H0v417c0,8.284,6.716,15,15,15h482c8.284,0,15-6.716,15-15V156%20C512,150.626,509.125,145.663,504.464,142.989z%20M230,406.5c0,8.284-6.716,15-15,15h-60c-8.284,0-15-6.716-15-15v-60%20c0-8.284,6.716-15,15-15h60c8.284,0,15,6.716,15,15V406.5z%20M401,406.5c0,8.284-6.716,15-15,15h-60c-8.284,0-15-6.716-15-15v-60%20c0-8.284,6.716-15,15-15h60c8.284,0,15,6.716,15,15V406.5z'/%3e%3c/svg%3e",E3="data:image/svg+xml,%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20x='0px'%20y='0px'%20width='47.825px'%20height='47.825px'%20viewBox='0%200%2047.825%2047.825'%3e%3cpath%20fill='%23bebc71'%20d='M36.439,12.646c0-6.919-5.608-12.527-12.528-12.527S11.384,5.727,11.384,12.646c0,9.913,12.527,24.582,12.527,24.582%20S36.439,22.508,36.439,12.646z%20M17.733,11.898c0-3.413,2.767-6.179,6.179-6.179s6.179,2.766,6.179,6.179%20c0,3.413-2.767,6.179-6.179,6.179S17.733,15.311,17.733,11.898z'/%3e%3ccircle%20fill='%23bebc71'%20cx='23.911'%20cy='11.898'%20r='3.038'/%3e%3cpath%20fill='%23bebc71'%20d='M30.994,32.87c-1.021,1.476-1.979,2.761-2.777,3.793c7.916,0.476,13.104,2.185,15.034,3.456%20c-2.261,1.491-8.979,3.587-19.338,3.587c-10.358,0-17.077-2.097-19.338-3.587c1.93-1.271,7.114-2.979,15.022-3.455%20c-0.8-1.032-1.759-2.316-2.781-3.792C7.075,33.831,0,36.713,0,40.118c0,4.19,10.707,7.588,23.913,7.588%20c13.207,0,23.912-3.396,23.912-7.588C47.827,36.711,40.744,33.828,30.994,32.87z'/%3e%3c/svg%3e",S3="data:image/svg+xml,%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20x='0px'%20y='0px'%20width='97.473px'%20height='97.473px'%20viewBox='0%200%2097.473%2097.473'%3e%3crect%20fill='%23b4b1fb'%20x='41.569'%20y='47.753'%20width='14.333'%20height='14.333'/%3e%3crect%20fill='%23b4b1fb'%20x='41.569'%20y='67.754'%20width='14.333'%20height='14.332'/%3e%3crect%20fill='%23b4b1fb'%20x='18.569'%20y='67.754'%20width='14.333'%20height='14.332'/%3e%3crect%20fill='%23b4b1fb'%20x='18.569'%20y='47.753'%20width='14.333'%20height='14.333'/%3e%3cpath%20fill='%23b4b1fb'%20d='M95.472,14.466H84.427V2.701c0-1.104-0.896-2-2-2H65.811c-1.104,0-2,0.896-2,2v11.765H33.662V2.701c0-1.104-0.896-2-2-2%20H15.045c-1.104,0-2,0.896-2,2v11.765H2c-1.104,0-2,0.896-2,2v78.305c0,1.104,0.896,2,2,2h93.473c1.104,0,2-0.896,2-2V16.466%20C97.472,15.362,96.576,14.466,95.472,14.466z%20M69.645,8.037c0-0.828,0.672-1.5,1.5-1.5h5.947c0.829,0,1.5,0.672,1.5,1.5v20.34%20c0,0.828-0.671,1.5-1.5,1.5h-5.947c-0.828,0-1.5-0.672-1.5-1.5V8.037z%20M18.88,8.037c0-0.828,0.671-1.5,1.5-1.5h5.947%20c0.829,0,1.5,0.672,1.5,1.5v20.34c0,0.828-0.671,1.5-1.5,1.5H20.38c-0.829,0-1.5-0.672-1.5-1.5V8.037z%20M87.068,84.902%20c0,0.828-0.67,1.5-1.5,1.5H11.903c-0.829,0-1.5-0.672-1.5-1.5v-40c0-0.828,0.671-1.5,1.5-1.5h73.666c0.83,0,1.5,0.672,1.5,1.5%20V84.902z'/%3e%3crect%20fill='%23b4b1fb'%20x='64.568'%20y='47.753'%20width='14.334'%20height='14.333'/%3e%3crect%20fill='%23b4b1fb'%20x='64.568'%20y='67.754'%20width='14.334'%20height='14.332'/%3e%3c/svg%3e",T3="data:image/svg+xml,%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20x='0px'%20y='0px'%20width='50px'%20height='50px'%20viewBox='0%200%2050%2050'%3e%3cpath%20fill='%2353ccb2'%20d='M26.12,14.488c0.879-1.468,2.27-3.569,4.027-5.585h0.002c1.488-1.711,4.402-3.907,4.402-3.907%20c0.438-0.331,0.391-0.792-0.107-1.024l-3.522-1.646c-0.498-0.233-1.175-0.063-1.505,0.376c0,0-2.605,3.737-5.671,11.692%20c-9.48-4.288-18.491,1.718-18.491,12.162c0,10.909,8.393,27.48,19.743,22.478c11.954,5.173,19.749-11.568,19.749-22.478%20C44.747,16.022,36.647,9.846,26.12,14.488z'/%3e%3cpath%20fill='%2353ccb2'%20d='M23.997,10.955c0.548-0.046,1.032-0.531,1.076-1.078c0,0,0.352-4.266-2.621-7.242c-2.982-2.977-7.24-2.622-7.24-2.622%20c-0.548,0.046-1.032,0.531-1.077,1.078c0,0-0.358,4.268,2.619,7.245C19.729,11.31,23.997,10.955,23.997,10.955z'/%3e%3c/svg%3e",w3=i=>i.indexOf("http://www.w3.org/2002/07/owl#Class")!==-1||i.indexOf("http://www.w3.org/2000/01/rdf-schema#Class")!==-1?{color:"#eaac77",icon:g3}:i.indexOf("http://www.w3.org/2002/07/owl#ObjectProperty")!==-1?{color:"#34c7f3",icon:m3}:i.indexOf("http://www.w3.org/2002/07/owl#DatatypeProperty")!==-1?{color:"#34c7f3",icon:y3}:i.indexOf("http://xmlns.com/foaf/0.1/Person")!==-1||i.indexOf("http://www.wikidata.org/entity/Q5")!==-1?{color:"#eb7777",icon:v3}:i.indexOf("http://www.wikidata.org/entity/Q6256")!==-1?{color:"#77ca98",icon:b3}:i.indexOf("http://schema.org/Organization")!==-1||i.indexOf("http://dbpedia.org/ontology/Organisation")!==-1||i.indexOf("http://xmlns.com/foaf/0.1/Organization")!==-1||i.indexOf("http://www.wikidata.org/entity/Q43229")!==-1?{color:"#77ca98",icon:_3}:i.indexOf("http://www.wikidata.org/entity/Q618123")!==-1?{color:"#bebc71",icon:E3}:i.indexOf("http://www.wikidata.org/entity/Q1190554")!==-1?{color:"#b4b1fb",icon:S3}:i.indexOf("http://www.wikidata.org/entity/Q488383")!==-1?{color:"#53ccb2",icon:T3}:void 0,A3={renderLink:i=>({properties:[{position:.5,attrs:{text:{text:[{value:i.typeId,language:""}],fill:"gray","font-size":12,"font-weight":"lighter"}}}]})},C3={markerTarget:{fill:"#f8a485",stroke:"#cf8e76"},renderLink:()=>({connection:{stroke:"#f8a485","stroke-width":2}})},x3={markerTarget:{fill:"#34c7f3",stroke:"#38b5db"},renderLink:()=>({connection:{stroke:"#34c7f3","stroke-width":2}})},L3={markerTarget:{fill:"#34c7f3",stroke:"#38b5db"},renderLink:()=>({connection:{stroke:"#34c7f3","stroke-width":2}})},O3={markerTarget:{fill:"#8cd965",stroke:"#5b9a3b"},renderLink:()=>({connection:{stroke:"#8cd965","stroke-width":2}})},D3=i=>i==="http://www.w3.org/2000/01/rdf-schema#subClassOf"?C3:i==="http://www.w3.org/2000/01/rdf-schema#domain"?x3:i==="http://www.w3.org/2000/01/rdf-schema#range"?L3:i==="http://www.w3.org/1999/02/22-rdf-syntax-ns#type"?O3:i==="http://graph-explorer.org/NewLink"?{markerTarget:{fill:"none"}}:void 0;function oo(i){return i&&i.type==="bnode"}function vi(i){return i&&i.type==="uri"}function nT(i){return i&&i.type==="literal"}function M3(i){const a=i;return a.blankTrgProp!==void 0||a.blankTrg!==void 0||a.blankSrcProp!==void 0||a.blankSrc!==void 0}var zR=3,iT="sparql-blank:",R3="?blankTrgProp ?blankTrg ?blankSrc ?blankSrcProp ?listHead",N3=`
    OPTIONAL {
        FILTER (ISBLANK(?inst)).
        {
            ?inst ?blankTrgProp ?blankTrg.
            ?blankSrc ?blankSrcProp ?inst.
            FILTER NOT EXISTS { ?inst rdf:first _:smth1 }.
            BIND("blankNode" as ?blankType)
        } UNION {
            ?inst rdf:rest*/rdf:first ?blankTrg.
            ?blankSrc ?blankSrcProp ?inst.
            _:smth2 rdf:first ?blankTrg.
            BIND(?blankSrcProp as ?blankTrgProp)
            BIND("listHead" as ?blankType)
            FILTER NOT EXISTS { _:smth3 rdf:rest ?inst }.
        } UNION {
            ?listHead rdf:rest* ?inst.
            FILTER NOT EXISTS { _:smth4 rdf:rest ?listHead }.

            ?listHead rdf:rest*/rdf:first ?blankTrg.
            ?blankSrc ?blankSrcProp ?listHead.
            _:smth5 rdf:first ?blankTrg.
            BIND(?blankSrcProp as ?blankTrgProp)
            BIND("listHead" as ?blankType)
        }
    }
`;function ec(i){return i.startsWith(iT)}var k3=class{constructor(i){this.queryFunction=i,this.queryDictionary={}}executeQuery(i){const a=this.queryDictionary[i];return a||(this.queryDictionary[i]=this.queryFunction(i).then(s=>(delete this.queryDictionary[i],s)),this.queryDictionary[i])}};function z3(i,a,s){const f=[],h=[];for(const m of i.results.bindings)M3(m)?h.push(m):f.push(m);return U3(h,m=>a(m),s).then(m=>(i.results.bindings=f.concat(m),i))}function U3(i,a,s){const f={};for(const m of i)m.newInst&&(m.inst=m.newInst),f[m.inst.value]||(f[m.inst.value]=[]),f[m.inst.value].push(m);const h=[];for(const m of i)oo(m.blankTrg)&&h.push([m]);return oT(h,new k3(a),s).then(m=>{const v=aT(m),w=Object.keys(f).map(E=>f[E]);for(const E of w){for(const S of E){S.label||(S.label=sT(S));const _=v[S.blankTrg.value];_&&(S.blankTrg.value=_)}rT(E,lT(E))}return i})}function aT(i){const a={},s=Object.keys(i);for(const f of s)a[f]=lT(i[f]),rT(i[f],a[f]);return a}function rT(i,a){for(const s of i)s.inst.value=a}function lT(i){const a={};for(const f of i){const{inst:h,...m}=f,v=JSON.stringify(m);a[v]=m}const s=Object.keys(a).sort().map(f=>a[f]);return iT+encodeURI(JSON.stringify(s))}function uo(i){if(ec(i))try{const a=i.substring(13,i.length);return JSON.parse(decodeURI(a)).map(s=>(s.inst={type:"uri",value:i},s))}catch{return}}function sT(i){return i.blankType.value==="listHead"?{type:"literal",value:"RDFList","xml:lang":""}:{type:"literal",value:i.class?S2(i.class.value)||i.class.value:"anonymous","xml:lang":""}}function oT(i,a,s,f){if(f=f||1,f>3)return Promise.resolve({});const h=i.map(m=>({query:B3(m,s),chain:m})).map(m=>a.executeQuery(m.query).then(v=>({response:v,chain:m.chain})));return Promise.all(h).then(m=>{const v=[],w={};for(const E of m){const S=E.response.results.bindings;if(S.length>0){const _=[];for(const L of S)oo(L.blankTrg)&&_.push(E.chain.concat([L]));v.push(oT(_,a,s,f+1).then(L=>{const x=aT(L),D={};for(const B of S){B.label=sT(B);const G=x[B.blankTrg.value];G&&(B.blankTrg.value=G),D[B.inst.value]||(D[B.inst.value]=[]),D[B.inst.value].push(B)}return Object.keys(D).forEach(B=>{const G=D[B],P=G[0].inst.value;w[P]=G}),!0}))}}return Promise.all(v).then(()=>w)})}function B3(i,a){function s(h,m,v){const w=m===0||h.blankType.value!=="listHead",E=m>0?"?inst"+(m-1):"<"+h.blankSrc.value+">",S=w?m>0?"?blankTrgProp"+(m-1):"<"+h.blankSrcProp.value+">":"?anyType"+m,_=m===v?"":m.toString(),L=w?"<"+h.blankTrgProp.value+">":"?anyType0"+m;return`
        # ======================
        ${E} ${S} ?blankSrc${m}.
        ${m===0&&h.blankType.value==="listHead"?`
            ?blankSrc${m} rdf:rest*/rdf:first ?inst${_}.
            `:`?blankSrc${m} ${L} ?inst${_}.`}
        BIND (<${h.blankTrgProp.value}> as ?blankSrcProp${m}).
        FILTER (ISBLANK(?inst${_})).
        {
            ?inst${_} ?blankTrgProp${_} ?blankTrg${_}.
            BIND("blankNode" as ?blankType${_}).
            FILTER NOT EXISTS { ?inst${_} rdf:first _:smth1${m} }.
        } UNION {
            ?inst${_} rdf:rest*/rdf:first ?blankTrg${_}.
            ?blankSrc${m} ?blankSrcProp${m} ?inst${_}.
            _:smth2${m} rdf:first ?blankTrg${_}.
            BIND(?blankSrcProp${m} as ?blankTrgProp${_})
            BIND("listHead" as ?blankType${_})
            FILTER NOT EXISTS { _:smth3${m} rdf:rest ?inst${_} }.
        }
        OPTIONAL {
            ?inst${_} rdf:type ?class${_}.
        }
    `}const f=i.map((h,m)=>s(h,m,i.length-1)).join(`
`);return`${a.defaultPrefix}
    SELECT ?inst ?class ?label ?blankTrgProp ?blankTrg ?blankType
        WHERE {
           ${f}
        }
    `}function H3(i){return{head:void 0,results:{bindings:$3(i.filter(a=>ec(a)))}}}function I3(i){return{head:void 0,results:{bindings:X3(i)}}}function q3(i){return{head:void 0,results:{bindings:Q3(i.elementId)}}}function G3(i){const a={head:void 0,results:{bindings:[]}};return i.limit===0&&(i.limit=100),i.elementTypeId?a.results.bindings=[]:i.refElementId&&i.refElementLinkId?a.results.bindings=Y3(i.refElementId,i.refElementLinkId,i.linkDirection):i.refElementId&&(a.results.bindings=V3(i.refElementId)),i.text&&a.results.bindings.length!==0&&(a.results.bindings=a.results.bindings.filter(s=>s.inst.value.toLowerCase().indexOf(i.text)!==-1)),a}function j3(i){const a=[];for(const s of i){const f=uo(s);if(f)for(const h of f)vi(h.inst)&&h.class&&a.push({inst:h.inst,class:h.class})}return{head:void 0,results:{bindings:a}}}function Y3(i,a,s){const f=(uo(i)||[]).concat(uo(a)||[]);let h=[];if(f.length>0)for(const m of f)s==="in"?m.inst.value===i&&(vi(m.blankSrc)||oo(m.blankSrc))&&a===m.blankSrcProp.value?vi(m.blankSrc)?h.push({inst:m.blankSrc}):h=h.concat(uo(m.blankSrc.value)||[{inst:m.blankSrc}]):m.blankTrg.value===i&&a===m.blankTrgProp.value&&h.push(m):m.inst.value===i&&(vi(m.blankTrg)||oo(m.blankTrg))&&a===m.blankTrgProp.value?vi(m.blankTrg)?h.push({inst:m.blankTrg}):h=h.concat(uo(m.blankTrg.value)||[{inst:m.blankTrg}]):m.blankSrc.value===i&&a===m.blankSrcProp.value&&h.push(m);return h}function V3(i){const a=uo(i);let s=[];if(a)for(const f of a)(f.inst.value===i||i===f.blankSrc.value||i===f.blankTrg.value)&&(s.push(f),vi(f.blankSrc)?s.push({inst:f.blankSrc}):oo(f.blankSrc)&&(s=s.concat(uo(f.blankSrc.value)||[{inst:f.blankSrc}])),vi(f.blankTrg)?s.push({inst:f.blankTrg}):oo(f.blankTrg)&&(s=s.concat(uo(f.blankTrg.value)||[{inst:f.blankTrg}])));return s}function $3(i){let a=[];for(const s of i)uo(s)&&(a=a.concat(uo(s)));return a.filter(s=>i.indexOf(s.inst.value)!==-1)}function X3(i){let a=[];for(const f of i)uo(f)&&(a=a.concat(uo(f)));const s=[];for(const f of a)i.indexOf(f.inst.value)!==-1&&((vi(f.blankSrc)||oo(f.blankSrc))&&vi(f.blankSrcProp)&&i.indexOf(f.blankSrc.value)!==-1&&s.push({source:f.blankSrc,type:f.blankSrcProp,target:f.inst}),(vi(f.blankTrg)||oo(f.blankTrg))&&vi(f.blankTrgProp)&&i.indexOf(f.blankTrg.value)!==-1&&s.push({source:f.inst,type:f.blankTrgProp,target:f.blankTrg}));return s}function Q3(i){const a=uo(i),s={};for(const f of a)i===f.inst.value&&(vi(f.blankTrg)||oo(f.blankTrg))&&vi(f.blankTrgProp)&&((vi(f.blankSrc)||oo(f.blankSrc))&&vi(f.blankSrcProp)&&(s[f.blankSrcProp.value]||(s[f.blankSrcProp.value]={link:f.blankSrcProp,inCount:{type:"literal",value:"1","xml:lang":""},outCount:{type:"literal",value:"0","xml:lang":""}})),s[f.blankTrgProp.value]?s[f.blankTrgProp.value].outCount.value=(+s[f.blankTrgProp.value].outCount.value+1).toString():s[f.blankTrgProp.value]={link:f.blankTrgProp,inCount:{type:"literal",value:"0","xml:lang":""},outCount:{type:"literal",value:"1","xml:lang":""}});return Object.keys(s).map(f=>s[f])}var P3=class{constructor(i=20){this.gap=i}route(i){const a=new Map;for(const s of i.links){if(a.has(s.id))continue;const{sourceId:f,targetId:h}=s;!f||!h||(f===h?this.routeFeedbackSiblingLinks(i,f,a):this.routeNormalSiblingLinks(i,f,h,a))}return a}routeFeedbackSiblingLinks(i,a,s){const f=i.getElement(a),{x:h,y:m}=f.position,{width:v,height:w}=f.size;let E=0;for(const S of f.links){if(s.has(S.id)||uT(S))continue;const{sourceId:_,targetId:L}=S;if(_===L){const x=this.gap*(E+1),D=[{x:h-x,y:m+w/2},{x:h-x,y:m-x},{x:h+v/2,y:m-x}];s.set(S.id,{linkId:S.id,vertices:D}),E++}}}routeNormalSiblingLinks(i,a,s,f){const h=i.getElement(a),m=i.getElement(s),v=cT(h),w=cT(m),E={x:(v.x+w.x)/2,y:(v.y+w.y)/2},S=Zu.normalize({x:w.x-v.x,y:w.y-v.y}),_=h.links.filter(x=>(x.sourceId===s||x.targetId===s)&&!f.has(x.id)&&!uT(x));if(_.length<=1)return;const L=_.length%2?0:1;_.forEach((x,D)=>{const B=D+L,G=this.gap*Math.ceil(B/2)-(L?this.gap/2:0),P=B%2?{x:-S.y,y:S.x}:{x:S.y,y:-S.x},te={x:E.x+P.x*G,y:E.y+P.y*G};f.set(x.id,{linkId:x.id,vertices:[te],labelTextAnchor:this.getLabelAlignment(S,D,_.length)})})}getLabelAlignment(i,a,s){const f=Math.atan2(i.y,i.x),h=Math.abs(f),m=h<Math.PI*1/8||h>Math.PI*7/8,v=f<0,w=f>0,E=s-2,S=s-1;if(!m){if(v&&a===S||w&&a===E)return"end";if(v&&a===E||w&&a===S)return"start"}return"middle"}};function uT(i){const a=i.vertices;return a&&a.length>0}function cT(i){const{x:a,y:s}=i.position,{width:f,height:h}=i.size;return{x:a+f/2,y:s+h/2}}var Wv=(function(i){return i.JumpToEntity="jumpToEntity",i.OpenEntityIri="openEntityIri",i.OpenOtherIri="openOtherIri",i})({}),Am=(function(i){return i[i.Element=1]="Element",i[i.ElementSize=2]="ElementSize",i[i.PaperArea=3]="PaperArea",i[i.Link=4]="Link",i[i.Editor=5]="Editor",i[i.FirstToUpdate=1]="FirstToUpdate",i[i.LastToUpdate=5]="LastToUpdate",i})({}),cs=(function(i){return i[i.Viewport=1]="Viewport",i[i.OverElements=2]="OverElements",i[i.OverLinks=3]="OverLinks",i})({}),fT=class{constructor(i,a={}){this.model=i,this.options=a,this.listener=new Hn,this.source=new lo,this.events=this.source,this.disposed=!1,this.colorSeed=195935983,this._language="en",this.linkTemplates=new Map,this.routings=new Map,this.resolveTypeStyle=a.typeStyleResolver||w3,this.resolveLinkTemplate=a.linkTemplateResolver||D3,this.resolveElementTemplate=a.elementTemplateResolver||qT,this.initRouting()}initRouting(){this.router=this.options.linkRouter||new P3,this.updateRoutings(),this.listener.listen(this.model.events,"changeCells",()=>this.updateRoutings()),this.listener.listen(this.model.events,"linkEvent",({key:i,data:a})=>{a.changeVertices&&this.updateRoutings()}),this.listener.listen(this.model.events,"elementEvent",({key:i,data:a})=>{(a.changePosition||a.changeSize)&&this.updateRoutings()})}updateRoutings(){const i=this.routings,a=this.router.route(this.model);i.forEach((s,f)=>{const h=a.get(f);h&&Z3(s,h)&&a.set(f,s)}),this.routings=a,this.source.trigger("updateRoutings",{source:this,previous:i})}getRoutings(){return this.routings}getRouting(i){return this.routings.get(i)}getLanguage(){return this._language}setLanguage(i){if(!i)throw new Error("Cannot set empty language.");const a=this._language;a!==i&&(this._language=i,this.source.trigger("changeLanguage",{source:this,previous:a}))}getLinkTemplates(){return this.linkTemplates}performSyncUpdate(){for(let i=1;i<=5;i++)this.source.trigger("syncUpdate",{layer:i})}onIriClick(i,a,s,f){f.persist(),f.preventDefault();const{onIriClick:h}=this.options;h&&h({iri:i,element:a,clickIntent:s,originalEvent:f})}setPaperWidget(i){const{key:a,widget:s,attachment:f}=i,h={[a]:s?{element:s,attachment:f}:void 0};this.source.trigger("updateWidgets",{widgets:h})}setHandlerForNextDropOnPaper(i){this.dropOnPaperHandler=i}_tryHandleDropOnPaper(i){const{dropOnPaperHandler:a}=this;return a?(this.dropOnPaperHandler=void 0,a(i),!0):!1}selectLabel(i,a){const s=typeof a>"u"?this.getLanguage():a,{selectLabelLanguage:f=F3}=this.options;return f(i,s)}formatLabel(i,a,s){return W3(this.selectLabel(i,s),a)}getElementTypeString(i){return i.types.map(a=>{const s=this.model.createClass(a);return this.formatLabel(s.label,s.id)}).sort().join(", ")}getTypeStyle(i){i.sort();const a=this.resolveTypeStyle(i),s=a?a.icon:void 0;let f;return a&&a.color?f=wm(a.color):f={h:J3(i,this.colorSeed),c:40,l:75},{icon:s,color:f}}formatIri(i){return ec(i)?"(blank node)":`<${i}>`}getElementTemplate(i){return this.resolveElementTemplate(i)||IT}createLinkTemplate(i){const a=this.linkTemplates.get(i.id);if(a)return a;let s={};const f=this.resolveLinkTemplate(i.id);return f&&(s=(0,so.cloneDeep)(f)),K3(s),this.linkTemplates.set(i.id,s),this.source.trigger("changeLinkTemplates",{}),s}dispose(){this.disposed||(this.source.trigger("dispose",{}),this.listener.stopListening(),this.disposed=!0)}get highlighter(){return this._highlighter}setHighlighter(i){const a=this._highlighter;a!==i&&(this._highlighter=i,this.source.trigger("changeHighlight",{source:this,previous:a}))}_setElementDecorator(i){this._elementDecorator=i}_decorateElement(i){return this._elementDecorator(i)}};function Z3(i,a){return i.linkId===a.linkId&&i.labelTextAnchor===a.labelTextAnchor&&bb(i.vertices,a.vertices)}function J3(i,a){let s=a;for(const f of i)s=vb(f,s);return 360*((s===void 0?0:s)/2147483647)}function K3(i){(0,so.defaultsDeep)(i,{markerTarget:{d:"M0,0 L0,8 L9,4 z",width:9,height:8,fill:"black"}}),i.renderLink||(i.renderLink=()=>({}))}function F3(i,a){if(i.length===0)return;let s,f;for(const h of i){if(h.language===a)return h;h.language===""?s=h:h.language==="en"&&(f=h)}return s!==void 0?s:f!==void 0?f:i[0]}function W3(i,a){return i?i.value:S2(a)||a}var eL=class extends N.Component{constructor(i,a){super(i,a),this.listener=new Hn,this.redrawBatch={requests:new Map,forAll:0},this.delatedRedraw=new us,this.sizeRequests=new Map,this.delayedUpdateSizes=new us,this.onMount=h=>{this.layer=h},this.requestRedraw=(h,m)=>{if((this.redrawBatch.forAll|m)===this.redrawBatch.forAll)return;const v=this.redrawBatch.requests.get(h.id);this.redrawBatch.requests.set(h.id,v|m),this.delatedRedraw.call(this.redrawElements)},this.redrawElements=()=>{const h=this.props;this.setState(m=>({elementStates:bE(h.view,h.group,this.redrawBatch,m.elementStates)}))},this.requestSizeUpdate=(h,m)=>{this.sizeRequests.set(h.id,{element:h,node:m}),this.delayedUpdateSizes.call(this.recomputeQueuedSizes)},this.recomputeQueuedSizes=()=>{const h=this.sizeRequests;this.sizeRequests=new Map,h.forEach(({element:m,node:v})=>{const{clientWidth:w,clientHeight:E}=v;m.setSize({width:w,height:E})})};const{view:s,group:f}=this.props;this.state={elementStates:bE(s,f,this.redrawBatch,new Map)}}render(){const{view:i,style:a}=this.props,{elementStates:s}=this.state,f=[];for(const{id:h}of i.model.elements){const m=s.get(h);m&&f.push(m)}return N.createElement("div",{className:"graph-explorer-element-layer",ref:this.onMount,style:a},f.map(h=>{const m=N.createElement(tL,{key:h.element.id,state:h,view:i,onInvalidate:this.requestRedraw,onResize:this.requestSizeUpdate}),v=i._decorateElement(h.element);return v?N.createElement("div",{key:h.element.id},m,v):m}))}componentDidMount(){const{view:i}=this.props;this.listener.listen(i.model.events,"changeCells",a=>{a.updateAll?this.requestRedrawAll(0):a.changedElement&&this.requestRedraw(a.changedElement,0)}),this.listener.listen(i.events,"changeLanguage",()=>{this.requestRedrawAll(3)}),this.listener.listen(i.events,"changeHighlight",()=>{this.requestRedrawAll(5)}),this.listener.listen(i.model.events,"elementEvent",({data:a})=>{const s=a.changeData||a.changeExpanded||a.changeElementState;s&&this.requestRedraw(s.source,3);const f=a.changePosition||a.requestedRedraw;f&&this.requestRedraw(f.source,1)}),this.listener.listen(i.events,"syncUpdate",({layer:a})=>{a===Am.Element?this.delatedRedraw.runSynchronously():a===Am.ElementSize&&this.delayedUpdateSizes.runSynchronously()})}componentDidUpdate(i){this.props.group!==i.group&&this.setState(a=>({elementStates:bE(i.view,i.group,this.redrawBatch,a.elementStates)}))}componentWillUnmount(){this.listener.stopListening(),this.delatedRedraw.dispose(),this.delayedUpdateSizes.dispose()}requestRedrawAll(i){this.redrawBatch.forAll|=i,this.delatedRedraw.call(this.redrawElements)}};function bE(i,a,s,f){const h=new Map;for(const m of i.model.elements){if(m.group!==a)continue;const v=m.id;if(f.has(v)){let w=f.get(v);const E=(s.requests.get(v)||0)|s.forAll;E&1&&(w={element:m,templateProps:(E&3)===3?dT(w.element,i):w.templateProps,blurred:(E&5)===5?pT(w.element,i):w.blurred}),h.set(v,w),s.requests.delete(v)}else h.set(m.id,{element:m,templateProps:dT(m,i),blurred:pT(m,i)})}return s.forAll=0,h}var hT=N.createContext(null),tL=class extends N.Component{constructor(...i){super(...i),this.element=null,this.listener=new Hn,this.disposed=!1,this.rerenderTemplate=()=>{this.disposed||this.props.onInvalidate(this.props.state.element,3)},this.onMount=a=>{if(this.element=a,!a)return;const{state:s,onResize:f}=this.props;f(s.element,a)},this.onLoadOrErrorEvent=()=>{const{state:a,onResize:s}=this.props;this.element&&s(a.element,this.element)},this.onClick=a=>{if(a.target instanceof HTMLElement&&a.target.localName==="a"){const s=a.target,{view:f,state:h}=this.props,m=a.target.getAttribute("data-iri-click-intent")===Wv.OpenEntityIri?Wv.OpenEntityIri:Wv.OpenOtherIri;f.onIriClick(decodeURI(s.href),h.element,m,a)}},this.onDoubleClick=a=>{a.preventDefault(),a.stopPropagation();const{view:s,state:{element:f}}=this.props;s.model.history.execute(Lb(f,!f.isExpanded))}}render(){const{state:{element:i,blurred:a}}=this.props;if(i.temporary)return N.createElement("div",null);const{x:s=0,y:f=0}=i.position,h=`translate(${s}px,${f}px)`,m=`graph-explorer-overlayed-element ${a?"graph-explorer-overlayed-element--blurred":""}`;return N.createElement(hT.Provider,{value:{graphExplorerElement:{element:i}}},N.createElement("div",{className:m,"data-element-id":i.id,style:{position:"absolute",transform:h},tabIndex:0,ref:this.onMount,onLoad:this.onLoadOrErrorEvent,onError:this.onLoadOrErrorEvent,onClick:this.onClick,onDoubleClick:this.onDoubleClick},N.createElement(nL,this.props)))}componentDidMount(){const{state:i,view:a}=this.props;this.listener.listen(i.element.events,"requestedFocus",()=>{this.element&&this.element.focus()}),this.typesObserver=F2(a.model,"changeLabel",this.rerenderTemplate),this.propertiesObserver=W2(a.model,"changeLabel",this.rerenderTemplate),this.observeTypes()}componentWillUnmount(){this.listener.stopListening(),this.typesObserver.stopListening(),this.propertiesObserver.stopListening(),this.disposed=!0}shouldComponentUpdate(i){return this.props.state!==i.state}componentDidUpdate(){this.observeTypes(),this.element&&this.props.onResize(this.props.state.element,this.element)}observeTypes(){const{state:{element:i}}=this.props;this.typesObserver.observe(i.data.types),this.propertiesObserver.observe(Object.keys(i.data.properties))}},nL=class extends N.Component{render(){const{state:i,view:a}=this.props,{element:s,templateProps:f}=i,h=a.getElementTemplate(s.data.types);return this.cachedTemplateClass=h,this.cachedTemplateProps=f,N.createElement(h,f)}shouldComponentUpdate(i){const a=i.view.getElementTemplate(i.state.element.data.types);return!(this.cachedTemplateClass===a&&this.cachedTemplateProps===i.state.templateProps)}};function dT(i,a){const s=i.data.types.length>0?a.getElementTypeString(i.data):"Thing",f=a.formatLabel(i.data.label.values,i.iri),{color:h,icon:m}=aL(i,a),v=iL(i,a);return{elementId:i.id,data:i.data,iri:i.iri,types:s,label:f,color:h,iconUrl:m,imgUrl:i.data.image,isExpanded:i.isExpanded,props:i.data.properties,propsAsList:v}}function iL(i,a){if(!i.data.properties)return[];const s=Object.keys(i.data.properties).map(f=>{const h=a.model.createProperty(f);return{id:f,name:a.formatLabel(h.label,f),property:i.data.properties[f]}});return s.sort((f,h)=>{const m=(f.name||f.id).toLowerCase(),v=(h.name||h.id).toLowerCase();return m.localeCompare(v)}),s}function aL(i,a){const{color:{h:s,c:f,l:h},icon:m}=a.getTypeStyle(i.data.types);return{icon:m,color:wm(s,f,h).toString()}}function pT(i,a){return a.highlighter&&!a.highlighter(i)}var rL="graph-explorer-link-layer",gT=class extends N.Component{constructor(...i){super(...i),this.listener=new Hn,this.delayedUpdate=new us,this.updateState=1,this.scheduledToUpdate=new Set,this.scheduleUpdateAll=()=>{this.updateState!==2&&(this.updateState=2,this.scheduledToUpdate=new Set),this.delayedUpdate.call(this.performUpdate)},this.performUpdate=()=>{this.forceUpdate()},this.getLinks=()=>{const{view:a,links:s,group:f}=this.props;if(!f)return s;const h=lL(lE(a.model.elements),f);return s.filter(m=>{const{sourceId:v,targetId:w}=m,E=a.model.getElement(v),S=a.model.getElement(w);if(!E||!S)return!1;const _=E.group,L=S.group;return h[_]||h[L]})}}componentDidMount(){const{view:i}=this.props,a=f=>{for(const h of f.links)this.scheduleUpdateLink(h.id)};this.listener.listen(i.events,"changeLanguage",this.scheduleUpdateAll),this.listener.listen(i.events,"changeHighlight",this.scheduleUpdateAll);const s=(f,h)=>{f.forEach((m,v)=>{h.get(v)!==m&&this.scheduleUpdateLink(v)})};this.listener.listen(i.events,"updateRoutings",({previous:f})=>{const h=i.getRoutings();s(h,f),s(f,h)}),this.listener.listen(i.model.events,"changeCells",f=>{if(f.updateAll)this.scheduleUpdateAll();else if(f.changedElement&&a(f.changedElement),f.changedLinks)for(const h of f.changedLinks)this.scheduleUpdateLink(h.id)}),this.listener.listen(i.model.events,"elementEvent",({data:f})=>{const h=f.changePosition||f.changeSize;h&&a(h.source)}),this.listener.listen(i.model.events,"linkEvent",({data:f})=>{const h=f.changeData||f.changeLayoutOnly||f.changeVertices||f.changeLinkState;h&&this.scheduleUpdateLink(h.source.id)}),this.listener.listen(i.model.events,"linkTypeEvent",({data:f})=>{const h=f.changeLabel||f.changeVisibility;if(!h)return;const m=h.source.id;for(const v of i.model.linksOfType(m))this.scheduleUpdateLink(v.id)}),this.listener.listen(i.events,"syncUpdate",({layer:f})=>{f===Am.Link&&this.delayedUpdate.runSynchronously()})}shouldComponentUpdate(){return!1}componentWillUnmount(){this.listener.stopListening(),this.delayedUpdate.dispose()}scheduleUpdateLink(i){this.updateState===1&&this.scheduledToUpdate.add(i),this.delayedUpdate.call(this.performUpdate)}popShouldUpdatePredicate(){const{updateState:i,scheduledToUpdate:a}=this;return this.scheduledToUpdate=new Set,this.updateState=1,i===2?()=>!0:s=>a.has(s.id)}render(){const{view:i}=this.props,a=this.popShouldUpdatePredicate();return N.createElement("g",{className:rL},this.getLinks().map(s=>N.createElement(sL,{key:s.id,view:i,model:s,shouldUpdate:a(s),route:i.getRouting(s.id)})))}};function lL(i,a){const s={};function f(h){s[h]=!0;const m=i.get(h);if(m)for(const v of m)v.group===h&&f(v.id)}return f(a),s}var fp="graph-explorer-link",mT=100,_E=new Map,sL=class extends N.Component{constructor(i,a){super(i,a),this.onRemoveLinkVertex=s=>{this.props.view.model.history.registerToUndo(tT(s.link)),s.remove()},this.onBoundsUpdate=s=>{const{model:f}=this.props;f.setLabelBounds(s)},this.grabLinkTemplate(this.props)}componentDidUpdate(i){this.linkType.id!==i.model.typeId&&this.grabLinkTemplate(i)}shouldComponentUpdate(i,a){return i.shouldUpdate}grabLinkTemplate(i){this.linkType=i.view.model.getLinkType(i.model.typeId),this.template=i.view.createLinkTemplate(this.linkType)}render(){const{view:i,model:a,route:s}=this.props,f=i.model.getElement(a.sourceId),h=i.model.getElement(a.targetId);if(!(f&&h))return null;const m=a.vertices||[],v=S0(f,h,s?s.vertices:m),w="M"+v.map(({x:B,y:G})=>`${B},${G}`).join(" L"),{index:E,showLabel:S}=this.linkType,_=this.template.renderLink(a),L=uL(a,_),x=i.highlighter&&!i.highlighter(a),D=`${fp} ${x?`${fp}--blurred`:""}`;return N.createElement("g",{className:D,"data-link-id":a.id,"data-source-id":f.id,"data-target-id":h.id},N.createElement("path",{className:`${fp}__connection`,d:w,...L,markerStart:`url(#${sE(E,!0)})`,markerEnd:`url(#${sE(E,!1)})`}),N.createElement("path",{className:`${fp}__wrap`,d:w}),S?this.renderLabels(v,_):void 0,this.renderVertices(m,L.stroke))}renderVertices(i,a){const s=[],f=`${fp}__vertex`,h=10;let m=0;for(const{x:v,y:w}of i)s.push(N.createElement("circle",{key:m*2,"data-vertex":m,className:f,cx:v,cy:w,r:h,fill:a})),s.push(N.createElement(hL,{key:m*2+1,className:`${fp}__vertex-tools`,model:this.props.model,vertexIndex:m,vertexRadius:h,x:v,y:w,onRemove:this.onRemoveLinkVertex})),m++;return N.createElement("g",{className:`${fp}__vertices`},s)}renderLabels(i,a){const{view:s,model:f,route:h}=this.props,m=oL(f,a,s);let v="middle";h&&h.labelTextAnchor&&(v=h.labelTextAnchor);const w=Pv(i);return _E.clear(),N.createElement("g",{className:`${fp}__labels`},m.map((E,S)=>{const{x:_,y:L}=T0(i,w*E.offset),x=Math.round(E.offset*mT)/mT,D=_E.get(x)||0;return _E.set(x,D+1),N.createElement(fL,{key:S,x:_,y:L,line:D,label:E,textAnchor:v,onBoundsUpdate:S===0?this.onBoundsUpdate:void 0})}))}};function oL(i,a,s){const f=[],h=a.label||{},m=h.attrs&&h.attrs.text?h.attrs.text.text:void 0;let v,w=h.title;if(m&&m.length>0)v=s.selectLabel(m);else{const E=s.model.getLinkType(i.typeId);v=s.selectLabel(E.label)||{value:s.formatLabel(E.label,E.id),language:""},w===void 0&&(w=`${v.value} ${s.formatIri(i.typeId)}`)}if(f.push({offset:h.position||.5,text:v,title:w,attributes:{text:yT(h),rect:vT(h)}}),a.properties)for(const E of a.properties)E.attrs&&E.attrs.text&&E.attrs.text.text&&f.push({offset:E.position||.5,text:s.selectLabel(E.attrs.text.text),title:E.title,attributes:{text:yT(E),rect:vT(E)}});return f}function uL(i,a){const s=a.connection||{},f=i.layoutOnly?"5,5":void 0,{fill:h="none",stroke:m="black","stroke-width":v,"stroke-dasharray":w=f}=s;return{fill:h,stroke:m,strokeWidth:v,strokeDasharray:w}}function yT(i){const{fill:a="black",stroke:s="none","stroke-width":f=0,"font-family":h='"Helvetica Neue", "Helvetica", "Arial", sans-serif',"font-size":m="inherit","font-weight":v="bold"}=i.attrs?i.attrs.text:{};return{fill:a,stroke:s,strokeWidth:f,fontFamily:h,fontSize:m,fontWeight:v}}function vT(i){const{fill:a="white",stroke:s="none","stroke-width":f=0}=i.attrs&&i.attrs.rect?i.attrs.rect:{};return{fill:a,stroke:s,strokeWidth:f}}var cL=2,fL=class extends N.Component{constructor(i){super(i),this.shouldUpdateBounds=!0,this.onTextMount=a=>{this.text=a},this.state={width:0,height:0}}render(){const{x:i,y:a,label:s,line:f,textAnchor:h}=this.props,{width:m,height:v}=this.state,{x:w,y:E}=this.getLabelRectangle(m,v),S=f===0?void 0:`translate(0, ${f*(v+cL)}px)`;return N.createElement("g",{style:S?{transform:S}:void 0},s.title?N.createElement("title",null,s.title):void 0,N.createElement("rect",{x:w,y:E,width:m,height:v,style:s.attributes.rect}),N.createElement("text",{ref:this.onTextMount,x:i,y:a,dy:"0.6ex",textAnchor:h,style:s.attributes.text},s.text.value))}getLabelRectangle(i,a){const{x:s,y:f,textAnchor:h}=this.props;let m=0;return h==="middle"?m=-i/2:h==="end"&&(m=-i),{x:s+m,y:f-a/2,width:i,height:a}}componentDidMount(){this.recomputeBounds(this.props)}componentWillUnmount(){const{onBoundsUpdate:i}=this.props;i(void 0)}componentDidUpdate(i){this.shouldUpdateBounds=!0}UNSAFE_componentWillReceiveProps(){this.recomputeBounds(this.props)}recomputeBounds(i){if(this.shouldUpdateBounds){const{onBoundsUpdate:a}=this.props;this.shouldUpdateBounds=!1;const s=this.text.getBBox();a&&a(this.getLabelRectangle(s.width,s.height)),this.setState({width:s.width,height:s.height})}}},hL=class extends N.Component{constructor(...i){super(...i),this.onRemoveVertex=a=>{if(a.button!==0)return;a.preventDefault(),a.stopPropagation();const{onRemove:s,model:f,vertexIndex:h}=this.props;s(new w0(f,h))}}render(){const{className:i,vertexRadius:a,x:s,y:f}=this.props,h=`translate(${s+2*a},${f-2*a})scale(${a})`;return N.createElement("g",{className:i,transform:h,onMouseDown:this.onRemoveVertex},N.createElement("title",null,"Remove vertex"),N.createElement("circle",{r:1}),N.createElement("path",{d:"M-0.5,-0.5 L0.5,0.5 M0.5,-0.5 L-0.5,0.5",strokeWidth:2/a}))}},bT=class extends N.Component{constructor(...i){super(...i),this.listener=new Hn,this.delayedUpdate=new us}render(){const{view:i}=this.props,a=[];return i.getLinkTemplates().forEach((s,f)=>{const h=i.model.getLinkType(f);if(!h)return;const m=h.index;s.markerSource&&a.push(N.createElement(_T,{key:m*2,linkTypeIndex:m,style:s.markerSource,isStartMarker:!0})),s.markerTarget&&a.push(N.createElement(_T,{key:m*2+1,linkTypeIndex:m,style:s.markerTarget,isStartMarker:!1}))}),N.createElement("defs",null,a)}componentDidMount(){const{view:i}=this.props;this.listener.listen(i.events,"syncUpdate",({layer:a})=>{a===Am.Link&&this.delayedUpdate.runSynchronously()}),this.listener.listen(i.events,"changeLinkTemplates",()=>{this.delayedUpdate.call(()=>this.forceUpdate())})}shouldComponentUpdate(){return!1}componentWillUnmount(){this.listener.stopListening(),this.delayedUpdate.dispose()}},dL="http://www.w3.org/2000/svg",_T=class extends N.Component{constructor(...i){super(...i),this.onMarkerMount=a=>{if(!a)return;const{linkTypeIndex:s,isStartMarker:f,style:h}=this.props;a.setAttribute("id",sE(s,f)),a.setAttribute("markerWidth",h.width.toString()),a.setAttribute("markerHeight",h.height.toString()),a.setAttribute("orient","auto");const m=f?0:h.width-1;a.setAttribute("refX",m.toString()),a.setAttribute("refY",(h.height/2).toString()),a.setAttribute("markerUnits","userSpaceOnUse");const v=document.createElementNS(dL,"path");v.setAttribute("d",h.d),h.fill!==void 0&&v.setAttribute("fill",h.fill),h.stroke!==void 0&&v.setAttribute("stroke",h.stroke),h.strokeWidth!==void 0&&v.setAttribute("stroke-width",h.strokeWidth),a.appendChild(v)}}render(){return N.createElement("marker",{ref:this.onMarkerMount})}shouldComponentUpdate(){return!1}},ET="graph-explorer-paper",EE=class extends N.Component{constructor(...i){super(...i),this.onMouseDown=a=>{const{view:s,onPointerDown:f}=this.props,h=a.target instanceof Element?pL(a.target,a.currentTarget,s.model):void 0;f&&f(a,h)}}render(){const{view:i,group:a,paperTransform:s,linkLayerWidgets:f,elementLayerWidgets:h}=this.props,{width:m,height:v,originX:w,originY:E,scale:S,paddingX:_,paddingY:L}=s,x=m*S,D=v*S,B={width:x+_,height:D+L,marginLeft:_,marginTop:L,paddingRight:_,paddingBottom:L},G={position:"absolute",left:0,top:0,transform:`scale(${S},${S})translate(${w}px,${E}px)`};return N.createElement("div",{className:ET,style:B,onMouseDown:this.onMouseDown},N.createElement(Mb,{className:`${ET}__canvas`,style:{overflow:"visible"},paperTransform:s},N.createElement(bT,{view:i}),N.createElement(gT,{view:i,links:i.model.links,group:a})),f,N.createElement(eL,{view:i,group:a,style:G}),h)}};function pL(i,a,s){let f=i,h;for(;;){if(f instanceof Element){if(f.hasAttribute("data-element-id"))return s.getElement(f.getAttribute("data-element-id"));if(f.hasAttribute("data-link-id")){const m=s.getLinkById(f.getAttribute("data-link-id"));return typeof h=="number"?new w0(m,h):m}else f.hasAttribute("data-vertex")&&(h=Number(f.getAttribute("data-vertex")))}if(!f||f===a)break;f=f.parentNode}}var Mb=class _x extends N.Component{static{this.SVG_STYLE={position:"absolute",top:0,left:0}}render(){const{paperTransform:a,style:s,children:f,...h}=this.props,{width:m,height:v,originX:w,originY:E,scale:S}=a,_=m*S,L=v*S;let x=_x.SVG_STYLE;return s&&(x={...x,...s}),N.createElement("svg",{width:_,height:L,style:x,...h},N.createElement("g",{transform:`scale(${S},${S})translate(${w},${E})`},f))}};function ST(i){return{x:i.width*i.scale+i.paddingX*2,y:i.height*i.scale+i.paddingY*2}}function TT(i){return{x:-i.paddingX,y:-i.paddingY}}function Rb(i,a){return{x:(i.x+a.originX)*a.scale,y:(i.y+a.originY)*a.scale}}function wT(i,a){return{x:i.x/a.scale-a.originX,y:i.y/a.scale-a.originY}}var SE="http://www.w3.org/2000/svg",gL=2,Nb=100;function mL(i){return AT(i).then(a=>new XMLSerializer().serializeToString(a))}function AT(i){const{contentBox:a,watermarkSvg:s}=i,{svgClone:f,imageBounds:h}=_L(i,gL),m=a.width+2*Nb,v=a.height+2*Nb;i.preserveDimensions?(f.setAttribute("width",m.toString()),f.setAttribute("height",v.toString())):(f.setAttribute("width","100%"),f.setAttribute("height","100%"));const w={x:a.x-Nb,y:a.y-Nb,width:m,height:v};f.setAttribute("viewBox",`${w.x} ${w.y} ${w.width} ${w.height}`),yL(f,w,s);const E=[];return TE(f.querySelectorAll("img"),S=>E.push(S)),Promise.all(E.map(S=>{const _=S.getAttribute("export-key");if(S.removeAttribute("export-key"),_){const{width:L,height:x}=h[_];return S.setAttribute("width",L.toString()),S.setAttribute("height",x.toString()),i.convertImagesToDataUris?EL(S).then(D=>{D&&D!=="data:image/svg+xml,"&&(S.src=D)}).catch(D=>{console.warn("Failed to export image: "+S.src,D)}):Promise.resolve()}else return Promise.resolve()})).then(()=>{const S=bL(f),_=vL(i.paper.closest(".graph-explorer")),L=document.createElementNS("http://www.w3.org/2000/svg","defs");return L.innerHTML=`<style>${_}
${S}</style>`,f.insertBefore(L,f.firstChild),i.elementsToRemoveSelector&&TE(f.querySelectorAll(i.elementsToRemoveSelector),x=>x.remove()),f})}function yL(i,a,s){const f="graph-explorer-exported-watermark",v=document.createElementNS(SE,"image");v.setAttributeNS("http://www.w3.org/1999/xlink","href",s),v.setAttribute("class",f);const w=Math.min(a.width*.2,120),E=a.x+a.width-w-20,S=a.y+20;v.setAttribute("x",E.toString()),v.setAttribute("y",S.toString()),v.setAttribute("width",w.toString()),v.setAttribute("opacity","0.3"),i.insertBefore(v,i.firstChild)}function CT(i){for(let a=0;a<document.styleSheets.length;a++){let s;try{const f=document.styleSheets[a];if(s=f.cssRules||f.rules,!s)continue}catch{continue}for(let f=0;f<s.length;f++){const h=s[f];h instanceof CSSStyleRule&&i(h)}}}function vL(i){if(!i)return"";const a=getComputedStyle(i),s=new Map;return CT(f=>{for(let h=0;h<f.style.length;h++){const m=f.style.item(h);if(!m.startsWith("--")||s.has(m))continue;const v=a.getPropertyValue(m).trim();v&&s.set(m,v)}}),s.size===0?"":`svg { ${Array.from(s,([f,h])=>`${f}: ${h};`).join(" ")} }`}function bL(i){const a=new Set;CT(f=>{try{i.querySelector(f.selectorText)&&a.add(f)}catch{}});const s=[];return a.forEach(f=>s.push(f.cssText)),s.join(`
`)}function _L(i,a){const{model:s,paper:f,getOverlayedElement:h}=i,m=f.cloneNode(!0);m.removeAttribute("class"),m.removeAttribute("style");function v(){let S=m.firstChild;for(;S;){if(S instanceof SVGGElement)return S;S=S.nextSibling}}const w=v();w.removeAttribute("transform");const E={};for(const S of s.elements){const _=S.id,L=h(_);if(!L)continue;const x=document.createElementNS(SE,"g"),D=L.firstChild.cloneNode(!0);x.setAttribute("class","graph-explorer-exported-element");const B=document.createElementNS(SE,"foreignObject");B.appendChild(D);const{x:G,y:P,width:te,height:pe}=Ju(S);B.setAttribute("transform",`translate(${G},${P})`),B.setAttribute("width",(te+a).toString()),B.setAttribute("height",(pe+a).toString()),x.appendChild(B),w.appendChild(x);const Te=D.querySelectorAll("img");TE(L.querySelectorAll("img"),(Se,Fe)=>{const Re=(0,so.uniqueId)("export-key-");Te[Fe].setAttribute("export-key",Re),E[Re]={width:Se.clientWidth,height:Se.clientHeight}})}return{svgClone:m,imageBounds:E}}function EL(i){const a=i.src;return!a||a.startsWith("data:")?Promise.resolve(a):SL(i.src).then(s=>{const f=document.createElement("canvas");f.width=s.width,f.height=s.height,f.getContext("2d").drawImage(s,0,0);const h=a.match(/\.([a-zA-Z0-9]+)[^.a-zA-Z0-9]?[^.]*$/),m=h?h[1].toLowerCase():"png";try{const v="image/"+(m==="jpg"?"jpeg":m),w=f.toDataURL(v);return Promise.resolve(w)}catch{return m!=="svg"?Promise.reject("Failed to convert image to data URI"):fetch(a).then(w=>w.text()).then(w=>w.length>0?"data:image/svg+xml,"+encodeURIComponent(w):"")}})}function SL(i){const a=new Image;a.crossOrigin="anonymous";const s=new Promise((f,h)=>{a.onload=()=>f(a),a.onerror=m=>h(m)});return a.src=i,s}function TE(i,a){for(let s=0;s<i.length;s++)a(i[s],s)}var xT=4096;async function TL(i){const{paper:a,mimeType:s="image/png"}=i,f=await AT({...i,convertImagesToDataUris:!0,mockImages:!1,preserveDimensions:!0}),h={width:Number(f.getAttribute("width")),height:Number(f.getAttribute("height"))},{innerSize:m,outerSize:v,offset:w}=AL(h,typeof i.width=="number"||typeof i.height=="number"?{width:i.width,height:i.height}:CL(h));f.setAttribute("width",m.width.toString()),f.setAttribute("height",m.height.toString());const E=new XMLSerializer().serializeToString(f),{canvas:S,context:_}=x(v.width,v.height,i.backgroundColor),L=await wL("data:image/svg+xml,"+encodeURIComponent(E));return _.drawImage(L,w.x,w.y,m.width,m.height),S.toDataURL(s,i.quality);function x(D,B,G){const P=document.createElement("canvas");P.width=D,P.height=B;const te=P.getContext("2d");return G&&(te.fillStyle=G,te.fillRect(0,0,D,B)),{canvas:P,context:te}}}function wL(i){return new Promise((a,s)=>{const f=new Image;f.onload=function(){a(f)},f.onerror=function(h){s(h)},f.src=i})}function AL(i,a){const s=LT(i.width,i.height,a.width,a.height),f={width:Math.floor(s.width),height:Math.floor(s.height)},h={width:typeof a.width=="number"?a.width:f.width,height:typeof a.height=="number"?a.height:f.height};return{innerSize:f,outerSize:h,offset:{x:Math.round((h.width-f.width)/2),y:Math.round((h.height-f.height)/2)}}}function CL(i){const a=Math.min(xT/i.width,xT/i.height),s=Math.min(2,a);return{width:Math.floor(i.width*s),height:Math.floor(i.height*s)}}function LT(i,a,s,f){if(!(typeof s=="number"||typeof f=="number"))return{width:i,height:a};const h=i/a;return s=typeof s=="number"?s:f*h,f=typeof f=="number"?f:s/h,f*h<=s?{width:f*h,height:f}:{width:s,height:s/h}}function xL(i){const a=";base64,";if(i.indexOf(a)===-1){const s=i.split(","),f=s[0].split(":")[1],h=decodeURIComponent(s[1]);return new Blob([h],{type:f})}else{const s=i.split(a),f=s[0].split(":")[1],h=window.atob(s[1]),m=h.length,v=new Uint8Array(m);for(let w=0;w<m;++w)v[w]=h.charCodeAt(w);return new Blob([v],{type:f})}}var kb=N.createContext(null),Cm="graph-explorer-paper-area",OT=500,DT=0,LL=1,OL=24,MT=class extends N.Component{get zoomOptions(){const{min:i=.2,max:a=2,step:s=.1,maxFit:f=1,fitPadding:h=20,requireCtrl:m=!0}=this.props.zoomOptions||{};return{min:i,max:a,step:s,maxFit:f,fitPadding:h,requireCtrl:m}}constructor(i,a){super(i,a),this.listener=new Hn,this.source=new lo,this.events=this.source,this.widgets={},this.pageSize={x:1500,y:800},this.cssAnimations=0,this.delayedPaperAdjust=new us,this.onOuterMount=s=>{this.outer=s},this.onAreaMount=s=>{this.area=s},this.onWidgetsMouseDown=s=>{s.stopPropagation()},this.adjustPaper=s=>{const{clientWidth:f,clientHeight:h}=this.area,m={...this.computeAdjustedBox(),paddingX:Math.ceil(f),paddingY:Math.ceil(h)},v=this.state;m.paperWidth===v.paperWidth&&m.paperHeight===v.paperHeight&&m.originX===v.originX&&m.originY===v.originY&&m.paddingX===v.paddingX&&m.paddingY===v.paddingY?s&&s():(this.scrollBeforeUpdate={left:this.area.scrollLeft,top:this.area.scrollTop},this.setState(m,s))},this.onPaperPointerDown=(s,f)=>{if(this.movingState)return;const h=yE.capture(this.props.view.model),m=this.props.view.model.history.startBatch(h.title);f&&s.button===DT?f instanceof fl?(s.preventDefault(),this.startMoving(s,f),this.listenToPointerMove(s,f,m,h)):(s.preventDefault(),this.listenToPointerMove(s,f,m,h)):(s.preventDefault(),this.listenToPointerMove(s,void 0,m,h))},this.onAreaPointerDown=s=>{s.target===this.area&&this.onPaperPointerDown(s,void 0)},this.onPointerMove=s=>{if(!this.movingState||this.scrollBeforeUpdate)return;const{origin:f,target:h,panning:m}=this.movingState,v=s.pageX-f.pageX,w=s.pageY-f.pageY;if(Math.abs(v)>=1&&Math.abs(w)>=1&&(this.movingState.pointerMoved=!0),typeof h>"u")m&&(this.area.scrollLeft=this.panningScrollOrigin.scrollLeft-v,this.area.scrollTop=this.panningScrollOrigin.scrollTop-w),this.source.trigger("pointerMove",{source:this,sourceEvent:s,target:h,panning:m});else if(h instanceof fl){const{x:E,y:S}=this.pageToPaperCoords(s.pageX,s.pageY),{pointerX:_,pointerY:L,elementX:x,elementY:D}=this.movingElementOrigin;h.setPosition({x:x+E-_,y:D+S-L}),this.source.trigger("pointerMove",{source:this,sourceEvent:s,target:h,panning:m}),this.props.view.performSyncUpdate()}else if(h instanceof Jr){const E=this.pageToPaperCoords(s.pageX,s.pageY),S=this.generateLinkVertex(h,E);S.createAt(E),this.movingState.target=S}else if(h instanceof w0){const E=this.pageToPaperCoords(s.pageX,s.pageY);h.moveTo(E),this.source.trigger("pointerMove",{source:this,sourceEvent:s,target:h,panning:m}),this.props.view.performSyncUpdate()}},this.stopListeningToPointerMove=s=>{const f=this.movingState;if(this.movingState=void 0,f&&(document.removeEventListener("mousemove",this.onPointerMove),document.removeEventListener("mouseup",this.stopListeningToPointerMove)),s&&f){const{pointerMoved:h,target:m,batch:v,restoreGeometry:w}=f;this.source.trigger("pointerUp",{source:this,sourceEvent:s,target:m,panning:f.panning,triggerAsClick:!h});const E=w.filterOutUnchanged();E.hasChanges()&&v.history.registerToUndo(E),v.store()}},this.onWheel=s=>{if(this.shouldStartZooming(s)){s.preventDefault();const f=Math.max(-1,Math.min(1,s.deltaY||s.deltaX)),h=this.pageToPaperCoords(s.pageX,s.pageY);this.zoomBy(-f*.1,{pivot:h})}},this.onDragOver=s=>{s.preventDefault&&s.preventDefault(),s.dataTransfer.dropEffect="move";const{x:f,y:h}=RT(this.area,s);return!1},this.onDragDrop=s=>{if(this.props.onDragDrop){const{x:f,y:h}=RT(this.area,s),m=this.clientToPaperCoords(f,h);this.props.onDragDrop(s,m)}},this.onScroll=()=>{this.source.trigger("scroll",{source:this})},this.applyViewportState=s=>{const f=s.scale.x,h=s.center;this.setState({scale:f},()=>{const{originX:m,originY:v,paddingX:w,paddingY:E}=this.state,S=(h.x+m)*f,_=(h.y+v)*f,{clientWidth:L,clientHeight:x}=this.area;this.area.scrollLeft=S-L/2+w,this.area.scrollTop=_-x/2+E,this.props.onZoom&&this.props.onZoom(f,f)})},this.state={paperWidth:this.pageSize.x,paperHeight:this.pageSize.y,originX:0,originY:0,scale:1,paddingX:0,paddingY:0,renderedWidgets:[]}}render(){const{view:i,watermarkSvg:a,watermarkUrl:s}=this.props,{paperWidth:f,paperHeight:h,originX:m,originY:v,scale:w,paddingX:E,paddingY:S,renderedWidgets:_}=this.state,L={width:f,height:h,originX:m,originY:v,scale:w,paddingX:E,paddingY:S},x={paperArea:this,paperTransform:L};let D=`${Cm}__area`;this.props.hideScrollBars&&(D+=` ${Cm}--hide-scrollbars`);let B=Cm;this.isAnimatingGraph()&&(B+=` ${Cm}--animated`);const G=OL*w,P={backgroundSize:`${G}px ${G}px`,backgroundPosition:`${E+m*w}px ${S+v*w}px`};return N.createElement(kb.Provider,{value:{paperArea:{paperArea:this,view:i}}},N.createElement("div",{className:B,ref:this.onOuterMount},N.createElement("div",{className:D,ref:this.onAreaMount,style:P,onMouseDown:this.onAreaPointerDown},N.createElement(EE,{view:i,paperTransform:L,onPointerDown:this.onPaperPointerDown,linkLayerWidgets:N.createElement("div",{className:`${Cm}__widgets`,onMouseDown:this.onWidgetsMouseDown},_.filter(te=>te.attachment===cs.OverLinks).map(te=>N.cloneElement(te.element,x))),elementLayerWidgets:N.createElement("div",{className:`${Cm}__widgets`,onMouseDown:this.onWidgetsMouseDown},_.filter(te=>te.attachment===cs.OverElements).map(te=>N.cloneElement(te.element,x)))}),a?N.createElement("a",{href:s,target:"_blank",rel:"noopener noreferrer"},N.createElement("img",{className:`${Cm}__watermark`,src:a,draggable:!1})):null),_.filter(te=>te.attachment===cs.Viewport).map(te=>N.cloneElement(te.element,x))))}componentDidMount(){this.adjustPaper(()=>this.centerTo());const{view:i}=this.props,a=()=>this.delayedPaperAdjust.call(this.adjustPaper);this.listener.listen(i.model.events,"changeCells",a),this.listener.listen(i.model.events,"elementEvent",({data:s})=>{(s.changePosition||s.changeSize)&&a()}),this.listener.listen(i.model.events,"linkEvent",({data:s})=>{s.changeVertices&&a()}),this.listener.listen(i.events,"syncUpdate",({layer:s})=>{s===Am.PaperArea&&this.delayedPaperAdjust.runSynchronously()}),this.listener.listen(i.events,"updateWidgets",({widgets:s})=>{this.updateWidgets(s)}),this.area.addEventListener("dragover",this.onDragOver),this.area.addEventListener("drop",this.onDragDrop),this.area.addEventListener("scroll",this.onScroll),this.area.addEventListener("wheel",this.onWheel,{passive:!1})}componentDidUpdate(i,a){if(this.scrollBeforeUpdate){const{scale:s,originX:f,originY:h,paddingX:m,paddingY:v}=this.state,w=(f-a.originX)*s+(m-a.paddingX),E=(h-a.originY)*s+(v-a.paddingY),S=this.scrollBeforeUpdate.left+w,_=this.scrollBeforeUpdate.top+E;this.area.scrollLeft=S,this.area.scrollTop=_,this.scrollBeforeUpdate=void 0}}componentWillUnmount(){this.stopListeningToPointerMove(),this.listener.stopListening(),this.area.removeEventListener("dragover",this.onDragOver),this.area.removeEventListener("drop",this.onDragDrop),this.area.removeEventListener("scroll",this.onScroll),this.area.removeEventListener("wheel",this.onWheel)}updateWidgets(i){this.widgets={...this.widgets,...i};const a=Object.keys(this.widgets).filter(s=>this.widgets[s]).map(s=>{const f=this.widgets[s],h=N.cloneElement(f.element,{key:s});return{...f,element:h}});this.setState({renderedWidgets:a})}pageToPaperCoords(i,a){const{left:s,top:f}=this.area.getBoundingClientRect();return this.clientToPaperCoords(i-(s+window.pageXOffset),a-(f+window.pageYOffset))}clientToPaperCoords(i,a){const{x:s,y:f}=this.clientToScrollablePaneCoords(i,a);return this.scrollablePaneToPaperCoords(s,f)}clientToScrollablePaneCoords(i,a){const{paddingX:s,paddingY:f}=this.state;return{x:i+this.area.scrollLeft-s,y:a+this.area.scrollTop-f}}scrollablePaneToPaperCoords(i,a){const{scale:s,originX:f,originY:h}=this.state;return{x:i/s-f,y:a/s-h}}paperToScrollablePaneCoords(i,a){const{scale:s,originX:f,originY:h}=this.state;return{x:(i+f)*s,y:(a+h)*s}}getContentFittingBox(){const{elements:i,links:a}=this.props.view.model;return x0(i,a)}getPaperSize(){const{paperWidth:i,paperHeight:a,scale:s}=this.state;return{width:i/s,height:a/s}}getAreaMetrics(){const{clientWidth:i,clientHeight:a,offsetWidth:s,offsetHeight:f}=this.area;return{clientWidth:i,clientHeight:a,offsetWidth:s,offsetHeight:f}}computeAdjustedBox(){const i=this.getContentFittingBox(),a=i.x,s=i.y,f=i.x+i.width,h=i.y+i.height,{x:m,y:v}=this.pageSize,w={left:Math.floor(a/m),top:Math.floor(s/v),right:Math.ceil(f/m),bottom:Math.ceil(h/v)},E=-w.left*m,S=-w.top*v;return{paperWidth:Math.max(w.right-w.left,1)*m,paperHeight:Math.max(w.bottom-w.top,1)*v,originX:E,originY:S}}shouldStartZooming(i){return!!i.ctrlKey&&!!this.zoomOptions.requireCtrl||!this.zoomOptions.requireCtrl}shouldStartPanning(i){if(i.button===LL)return!0;const a=i.ctrlKey||i.shiftKey||i.altKey;return i.button===DT&&!a}startMoving(i,a){const{x:s,y:f}=this.pageToPaperCoords(i.pageX,i.pageY),{x:h,y:m}=a.position;this.movingElementOrigin={pointerX:s,pointerY:f,elementX:h,elementY:m}}startPanning(i){const{scrollLeft:a,scrollTop:s}=this.area;this.panningScrollOrigin={scrollLeft:a,scrollTop:s},this.clearTextSelectionInArea()}clearTextSelectionInArea(){if(document.getSelection){const i=document.getSelection();i.removeAllRanges&&i.removeAllRanges()}}generateLinkVertex(i,a){const s=i.vertices,f=s?[...s]:[],h=this.props.view.model;return new w0(i,O2(S0(h.getElement(i.sourceId),h.getElement(i.targetId),f),a))}listenToPointerMove(i,a,s,f){if(this.movingState)return;const h=a===void 0&&this.shouldStartPanning(i);h&&this.startPanning(i);const{pageX:m,pageY:v}=i;this.movingState={origin:{pageX:m,pageY:v},target:a,panning:h,pointerMoved:!1,batch:s,restoreGeometry:f},document.addEventListener("mousemove",this.onPointerMove),document.addEventListener("mouseup",this.stopListeningToPointerMove),this.source.trigger("pointerDown",{source:this,sourceEvent:i,target:a,panning:h})}centerTo(i,a={}){const{paperWidth:s,paperHeight:f}=this.state,h={center:i||{x:s/2,y:f/2}};return this.setViewportState(h,a)}centerContent(i={}){const a=this.getContentFittingBox();return this.centerTo({x:a.x+a.width/2,y:a.y+a.height/2},i)}getScale(){return this.state.scale}setScale(i,a){let s=i;const{min:f,max:h}=this.zoomOptions;s=Math.max(s,f),s=Math.min(s,h);let m;if(a&&a.pivot){const{x:v,y:w}=a.pivot,E=this.clientToPaperCoords(this.area.clientWidth/2,this.area.clientHeight/2),S=this.state.scale,_=s/S;m={center:{x:v-(v-E.x)/_,y:w-(w-E.y)/_},scale:{x:s,y:s}}}else m={scale:{x:s,y:s}};return this.setViewportState(m,a)}zoomBy(i,a){return this.setScale(this.getScale()+i,a)}zoomIn(i){return this.zoomBy(this.zoomOptions.step,i)}zoomOut(i){return this.zoomBy(-this.zoomOptions.step,i)}zoomToFit(i={}){if(i.elements&&i.elements.size===0)return;if(this.props.view.model.elements.length===0)return this.centerTo();let a;if(i.elements){const f=[];i.elements.forEach(h=>f.push(h)),a=f}else a=this.props.view.model.elements;const s=x0(a,[]);return this.zoomToFitRect(s,i)}zoomToFitRect(i,a={}){const{clientWidth:s,clientHeight:f}=this.area;if(i.width===0)return;const{width:h}=LT(i.width,i.height,s,f);let m=h/i.width;const{min:v,maxFit:w}=this.zoomOptions;m=Math.max(m,v),m=Math.min(m,w);const E={center:{x:i.x+i.width/2,y:i.y+i.height/2},scale:{x:m,y:m}};return this.setViewportState(E,a)}makeToSVGOptions(){const i=this.area.querySelector(".graph-explorer-paper__canvas");if(!i)throw new Error("Cannot find SVG canvas to export");return{model:this.props.view.model,paper:i,contentBox:this.getContentFittingBox(),getOverlayedElement:a=>this.area.querySelector(`[data-element-id='${a}']`),preserveDimensions:!0,convertImagesToDataUris:!0,elementsToRemoveSelector:".graph-explorer-link__vertex-tools",watermarkSvg:this.props.watermarkSvg}}exportSVG(){return mL(this.makeToSVGOptions())}exportPNG(i){return TL({...i,...this.makeToSVGOptions()})}isAnimatingGraph(){return this.cssAnimations>0}animateGraph(i,a){return this.changeGraphAnimationCount(1),i(),Z2(typeof a=="number"?a:OT).then(()=>this.onGraphAnimationEnd())}onGraphAnimationEnd(){this.changeGraphAnimationCount(-1)}changeGraphAnimationCount(i){const a=this.cssAnimations+i;if(a<0)return;const s=this.isAnimatingGraph();this.cssAnimations=a,s!==this.isAnimatingGraph()&&(this.forceUpdate(),this.source.trigger("changeAnimatingGraph",{source:this,previous:s}))}get viewportState(){const{clientWidth:i,clientHeight:a}=this.area,{originX:s,originY:f,paddingX:h,paddingY:m,scale:v}=this.state,w=this.area.scrollLeft+i/2-h,E=this.area.scrollTop+a/2-m;return{center:{x:w/v-s,y:E/v-f},scale:{x:v,y:v}}}setViewportState(i,a){this.viewportAnimation&&this.viewportAnimation.cancellation.abort();const s=this.viewportState,f={...s,...i};if(a&&(a.animate||a.duration>0)){const h={from:s,to:f,cancellation:new ii},m=J2(typeof a.duration=="number"?a.duration:OT,v=>{const w=K2(v),E={center:{x:s.center.x+(f.center.x-s.center.x)*w,y:s.center.y+(f.center.y-s.center.y)*w},scale:{x:s.scale.x+(f.scale.x-s.scale.x)*w,y:s.scale.y+(f.scale.y-s.scale.y)*w}};this.applyViewportState(E)},h.cancellation);return this.viewportAnimation=h,m.then(()=>{this.viewportAnimation=void 0})}else return this.applyViewportState(f),Promise.resolve()}};function RT(i,a){const s=(a.target instanceof SVGElement&&a.target.ownerSVGElement!==null?a.target.ownerSVGElement:a.target).getBoundingClientRect(),f=i.getBoundingClientRect();return{x:a.offsetX+(s.left-f.left),y:a.offsetY+(s.top-f.top)}}function x0(i,a){let s=1/0,f=1/0,h=-1/0,m=-1/0;for(const v of i){const{x:w,y:E}=v.position,S=v.size;s=Math.min(s,w),f=Math.min(f,E),h=Math.max(h,w+S.width),m=Math.max(m,E+S.height)}for(const v of a){const w=v.vertices||[];for(const{x:E,y:S}of w)s=Math.min(s,E),f=Math.min(f,S),h=Math.max(h,E),m=Math.max(m,S)}return{x:Number.isFinite(s)?s:0,y:Number.isFinite(f)?f:0,width:Number.isFinite(s)&&Number.isFinite(h)?h-s:0,height:Number.isFinite(f)&&Number.isFinite(m)?m-f:0}}var DL=class extends N.Component{constructor(i){super(i),this.listener=new Hn,this.nestedElementListener=new Hn,this.layerOffsetLeft=0,this.layerOffsetTop=0,this.isApplyingParentMove=!1,this.isNestedElementMoving=!1,this.previousPositions=[],this.moveNestedElements=(a,s)=>{this.isApplyingParentMove=!0;try{for(const f of this.getNestedElements()){const{x:h,y:m}=f.position,v={x:h+a,y:m+s};f.setPosition(v)}}finally{this.isApplyingParentMove=!1,this.recomputeSelfBounds()}},this.recomputeSelfBounds=()=>{if(this.isApplyingParentMove)return;const{element:a}=this.props.context.graphExplorerElement,{x:s,y:f,width:h,height:m}=this.getContentFittingBox();if(this.isNestedElementMoving){const v={x:s-this.layerOffsetLeft,y:f-this.layerOffsetTop};a.setPosition(v)}this.setState({offsetX:s,offsetY:f,paperWidth:h,paperHeight:m},()=>a.redraw())},this.onPaperPointerDown=(a,s)=>{a.button===0&&s&&s instanceof fl&&(a.preventDefault(),this.isNestedElementMoving=!0)},this.onLayerInit=a=>{if(!a)return;const{left:s,top:f}=this.calculateOffset(a);this.layerOffsetLeft=s,this.layerOffsetTop=f},this.state={paperWidth:0,paperHeight:0,offsetX:0,offsetY:0}}componentDidMount(){const{element:i}=this.props.context.graphExplorerElement,{paperArea:a,view:s}=this.props.context.paperArea;this.listener.listen(s.model.events,"changeGroupContent",({group:h})=>{if(h===i.id){this.listenNestedElements(this.getNestedElements());const{offsetX:m,offsetY:v}=this.getOffset();this.moveNestedElements(m,v)}}),this.listener.listen(i.events,"changePosition",()=>{if(this.isNestedElementMoving)return;const{offsetX:h,offsetY:m}=this.getOffset(),{x:v,y:w}=this.getContentFittingBox(),E=h-v,S=m-w;this.moveNestedElements(E,S),this.setState({offsetX:h,offsetY:m})}),this.listener.listen(a.events,"pointerUp",h=>{this.isNestedElementMoving=!1});const f=this.getNestedElements();if(this.listenNestedElements(f),f.length>0){const{x:h,y:m,width:v,height:w}=this.getContentFittingBox();this.setState({offsetX:h,offsetY:m,paperWidth:v,paperHeight:w},()=>i.redraw())}else i.requestGroupContent()}listenNestedElements(i){const a=new Hn;for(const s of i)a.listen(s.events,"changePosition",this.recomputeSelfBounds),a.listen(s.events,"changeSize",this.recomputeSelfBounds);this.nestedElementListener.stopListening(),this.nestedElementListener=a}componentWillUnmount(){this.listener.stopListening(),this.nestedElementListener.stopListening(),this.removeElements(),this.setState({paperWidth:0,paperHeight:0,offsetX:0,offsetY:0})}getNestedElements(){const{element:i}=this.props.context.graphExplorerElement,{view:a}=this.props.context.paperArea;return a.model.elements.filter(s=>s.group===i.id)}getContentFittingBox(){return x0(this.getNestedElements(),[])}removeElements(){const{view:i}=this.props.context.paperArea,a=i.model.history.startBatch();for(const s of this.getNestedElements())i.model.removeElement(s.id);a.discard()}getOffset(){const{element:i}=this.props.context.graphExplorerElement,{x:a,y:s}=i.position;return{offsetX:a+this.layerOffsetLeft,offsetY:s+this.layerOffsetTop}}calculateOffset(i){const{paperArea:a}=this.props.context.paperArea,s=a.getScale(),f=kT(i),{left:h,top:m}=i.getBoundingClientRect(),{left:v,top:w}=f.getBoundingClientRect();return{left:(h-v)/s,top:(m-w)/s}}render(){const{element:i}=this.props.context.graphExplorerElement,{view:a}=this.props.context.paperArea,{paperWidth:s,paperHeight:f,offsetX:h,offsetY:m}=this.state,v={width:s,height:f,originX:-h,originY:-m,scale:1,paddingX:0,paddingY:0};return N.createElement("div",{className:"graph-explorer-embedded-layer",ref:this.onLayerInit},N.createElement(EE,{view:a,paperTransform:v,onPointerDown:this.onPaperPointerDown,group:i.id}))}};function NT(){const i=N.useContext(hT),a=N.useContext(kb);return N.createElement(DL,{context:{...i,...a}})}function kT(i){const a=i.parentElement;if(a)return a.hasAttribute("data-element-id")?a:kT(a);throw new Error("Cannot find parent diagram element for EmbeddedLayer")}var xh="graph-explorer-group-template",ML=class extends N.Component{render(){const{label:i,iconUrl:a,types:s,color:f,isExpanded:h}=this.props;return N.createElement("div",{className:xh},N.createElement("div",{className:`${xh}__wrap`,style:{backgroundColor:f,borderColor:f}},N.createElement("div",{className:`${xh}__type-line`,title:i},N.createElement("div",{className:`${xh}__type-line-icon`},N.createElement("img",{src:a})),N.createElement("div",{title:s,className:`${xh}__type-line-text-container`},N.createElement("div",{className:`${xh}__type-line-text`},s))),N.createElement("div",{className:`${xh}__body`,style:{borderColor:f}},N.createElement("span",{className:`${xh}__label`,title:i},i),h?N.createElement("div",{className:`${xh}__embedded-layer`},N.createElement(NT,null)):null)))}},Lh=(function(i){return i.searchUpdateCriteria="search:updateCriteria",i.searchQueryItem="search:queryItems",i.connectionsLoadLinks="connections:loadLinks",i.connectionsExpandLink="connections:expandLink",i.connectionsLoadElements="connections:loadElements",i.editorChangeSelection="editor:changeSelection",i.editorToggleDialog="editor:toggleDialog",i.editorAddElements="editor:addElements",i})({}),e1=(0,N.createContext)(null);function zb(i){const a=[];for(const s in i)Object.prototype.hasOwnProperty.call(i,s)&&a.push(i[s]);return a}function RL(i){for(const a in i)if(Object.prototype.hasOwnProperty.call(i,a))return!1;return!0}function L0(i){const a=new Map;return i.forEach((s,f)=>a.set(f,s)),a}function wE(i){const a=new Set;return i.forEach(s=>a.add(s)),a}function AE(i,a){let s=i.get(a);return s||(s=[],i.set(a,s)),s}function Ub(i,a){let s=i.get(a);return s||(s=new Set,i.set(a,s)),s}var CE=class{constructor(){this.mapping=new Map,this.ordered=[]}reorder(i){this.ordered.sort(i)}get items(){return this.ordered}get(i){return this.mapping.get(i)}push(i,a){if(this.mapping.has(i)){const s=this.mapping.get(i);if(s===a)return;const f=this.ordered.indexOf(s);this.ordered.splice(f,1)}this.mapping.set(i,a),this.ordered.push(a)}delete(i){if(!this.mapping.has(i))return;const a=this.mapping.get(i),s=this.ordered.indexOf(a);return this.ordered.splice(s,1),this.mapping.delete(i),a}},xm=class Ex{constructor(a,s){this.hashCode=a,this.equals=s,this.map=new Map,this._size=0}get size(){return this._size}has(a){const s=this.map.get(this.hashCode(a));return s?!!s.find(f=>this.equals(f.key,a)):!1}get(a){const s=this.map.get(this.hashCode(a));if(!s)return;const f=s.find(h=>this.equals(h.key,a));return f?f.value:void 0}set(a,s){const f=this.hashCode(a);let h=this.map.get(f);if(h){const m=h.findIndex(v=>this.equals(v.key,a));m>=0?h.splice(m,1):this._size++,h.push({key:a,value:s})}else h=[{key:a,value:s}],this.map.set(f,h),this._size++;return this}delete(a){const s=this.map.get(this.hashCode(a));if(!s)return!1;const f=s.findIndex(h=>this.equals(h.key,a));return f>=0?(s.splice(f,1),this._size--,!0):!1}clear(){this.map.clear(),this._size=0}forEach(a){this.map.forEach(s=>{for(const{key:f,value:h}of s)a(h,f,this)})}clone(){const a=new Ex(this.hashCode,this.equals);return a._size=this.size,this.map.forEach((s,f)=>a.map.set(f,[...s])),a}},zT=(function(i){return i[i.ToStart=-1]="ToStart",i[i.ToEnd=1]="ToEnd",i})({});function UT(i,a,s){const f=new Map,h=s*i.length;i.forEach((m,v)=>{f.set(m,v)});for(const m of a)f.set(m,h+f.get(m));return(m,v)=>{const w=f.get(m),E=f.get(v);return w>E?1:w<E?-1:0}}var t1=(function(i){return i.ChangeElement="changeElement",i.ChangeLink="changeLink",i})({}),Ri={empty:{elements:new Map,links:new xm(_m,Er)},isEmpty(i){return i.elements.size===0&&i.links.size===0},clone(i){return{elements:L0(i.elements),links:i.links.clone()}},has(i,a){return a.type==="changeElement"?i.elements.get(a.after.id)===a:i.links.get(a.after)===a},discard(i,a){if(!this.has(i,a))return i;const s=this.clone(i);return a.type==="changeElement"?(s.elements.delete(a.after.id),a.before||i.links.forEach(f=>{Bb(f.after,a.after.id)&&s.links.delete(f.after)})):s.links.delete(a.after),s},addElement(i,a){const s={type:"changeElement",after:a,deleted:!1},f=this.clone(i);return f.elements.set(s.after.id,s),f},addLink(i,a){const s={type:"changeLink",after:a,deleted:!1},f=this.clone(i);return f.links.set(s.after,s),f},changeElement(i,a,s){const f=this.clone(i);f.elements.delete(a.id);const h=i.elements.get(a.id);if(h&&!h.before)f.elements.set(s.id,{type:"changeElement",after:s,deleted:!1}),a.id!==s.id&&i.links.forEach(m=>{if(!m.before&&Bb(m.after,a.id)){const v=NL(m.after,a.id,s.id);f.links.delete(m.after),f.links.set(v,{type:"changeLink",after:v,deleted:!1})}});else{const m=s.id!==a.id,v=h?h.before:void 0;f.elements.set(a.id,{type:"changeElement",before:v||a,after:m?{...s,id:a.id}:s,newIri:m?s.id:void 0,deleted:!1})}return f},changeLink(i,a,s){if(!Er(a,s))throw new Error("Cannot move link to another element or change its type");const f=this.clone(i),h=i.links.get(a);return f.links.set(a,{type:"changeLink",before:h?h.before:void 0,after:s,deleted:!1}),f},deleteElement(i,a){const s=this.clone(i);return s.elements.delete(a.id),i.links.forEach(f=>{Bb(f.after,a.id)&&s.links.delete(f.after)}),this.isNewElement(i,a.id)||s.elements.set(a.id,{type:"changeElement",before:a,after:a,deleted:!0}),s},deleteLink(i,a){const s=this.clone(i);return s.links.delete(a),this.isNewLink(i,a)||s.links.set(a,{type:"changeLink",before:a,after:a,deleted:!0}),s},deleteNewLinksConnectedToElements(i,a){const s=this.clone(i);return i.links.forEach(f=>{if(!f.before){const h=f.after;(a.has(h.sourceId)||a.has(h.targetId))&&s.links.delete(h)}}),s},isNewElement(i,a){const s=i.elements.get(a);return s&&s.type==="changeElement"&&!s.before},isDeletedElement(i,a){const s=i.elements.get(a);return s&&s.deleted},isElementWithModifiedIri(i,a){const s=i.elements.get(a);return s&&s.type==="changeElement"&&s.before&&!!s.newIri},isNewLink(i,a){const s=i.links.get(a);return s&&!s.before},isDeletedLink(i,a){const s=i.links.get(a);return s&&s.deleted||this.isDeletedElement(i,a.sourceId)||this.isDeletedElement(i,a.targetId)},isUncertainLink(i,a){return!this.isDeletedLink(i,a)&&(this.isElementWithModifiedIri(i,a.sourceId)||this.isElementWithModifiedIri(i,a.targetId))}};function Bb(i,a){return i.sourceId===a||i.targetId===a}function NL(i,a,s){return{...i,sourceId:i.sourceId===a?s:i.sourceId,targetId:i.targetId===a?s:i.targetId}}var kL=class extends N.Component{constructor(i){super(i),this.queryCancellation=new ii,this.onChangeAuthoringState=a=>{const{source:s,previous:f}=a,h=this.props.templateProps.data.id;s.authoringState.elements.get(h)!==f.elements.get(h)&&this.queryAllowedActions()},this.onEdit=()=>{const{editor:a}=this.props.context.workspace,{elementId:s}=this.props.templateProps,f=a.model.getElement(s);a.showEditEntityForm(f)},this.onDelete=()=>{const{editor:a}=this.props.context.workspace,{data:s}=this.props.templateProps;a.deleteEntity(s.id)},this.state={}}componentDidMount(){const{editor:i}=this.props.context.workspace;i.events.on("changeAuthoringState",this.onChangeAuthoringState),this.queryAllowedActions()}componentDidUpdate(i){this.props.templateProps.data===i.templateProps.data&&this.props.templateProps.isExpanded===i.templateProps.isExpanded||this.queryAllowedActions()}componentWillUnmount(){const{editor:i}=this.props.context.workspace;i.events.off("changeAuthoringState",this.onChangeAuthoringState),this.queryCancellation.abort()}queryAllowedActions(){const{isExpanded:i,data:a}=this.props.templateProps;if(!i)return;this.queryCancellation.abort(),this.queryCancellation=new ii;const{editor:s}=this.props.context.workspace;!s.metadataApi||Ri.isDeletedElement(s.authoringState,a.id)?this.setState({canEdit:!1,canDelete:!1}):(this.queryCanEdit(a),this.queryCanDelete(a))}queryCanEdit(i){const{editor:a}=this.props.context.workspace,s=this.queryCancellation.signal;this.setState({canEdit:void 0}),ar.mapCancelledToNull(s,a.metadataApi.canEditElement(i,s)).then(f=>{f!==null&&this.setState({canEdit:f})})}queryCanDelete(i){const{editor:a}=this.props.context.workspace,s=this.queryCancellation.signal;this.setState({canDelete:void 0}),ar.mapCancelledToNull(s,a.metadataApi.canDeleteElement(i,s)).then(f=>{f!==null&&this.setState({canDelete:f})})}render(){const{children:i}=this.props,{view:a}=this.props.context.paperArea,{editor:s}=this.props.context.workspace,{canEdit:f,canDelete:h}=this.state,m=this.props.templateProps.iri,v=s.authoringState.elements.get(m);return i({editor:s,view:a,canEdit:f,canDelete:h,editedIri:v&&v.type===t1.ChangeElement?v.newIri:void 0,onEdit:this.onEdit,onDelete:this.onDelete})}};function BT(i){const a=N.useContext(kb),s=N.useContext(e1);return N.createElement(kL,{...i,context:{...a,...s}})}var HT="graph-explorer-spinner",O0=class extends N.Component{render(){const{position:i={x:0,y:0},size:a=50,statusText:s,errorOccured:f}=this.props,h=5,m="m3.47,-19.7 a20,20 0 1,1 -6.95,0 m0,0 l-6,5 m6,-5 l-8,-0"+(f?"M-8,-8L8,8M-8,8L8,-8":"");return N.createElement("g",{className:HT,"data-error":f,transform:`translate(${i.x},${i.y})`},N.createElement("g",{className:`${HT}__arrow`},N.createElement("path",{d:m,transform:`scale(0.02)scale(${a})`,fill:"none",stroke:f?"red":"black",strokeWidth:"3",strokeLinecap:"round"})),N.createElement("text",{style:{dominantBaseline:"middle"},x:a/2+h},s))}},fs=class extends N.Component{render(){const{width:i,height:a}=this.props,s=Math.min(i,a);return N.createElement("svg",{width:i,height:a},N.createElement(O0,{size:s,position:{x:i/2,y:a/2}}))}},zL="http://xmlns.com/foaf/0.1/name",ai="graph-explorer-standard-template",IT=class extends N.Component{render(){return N.createElement(BT,{templateProps:this.props},i=>this.renderTemplate(i))}renderTemplate(i){const{color:a,types:s,isExpanded:f,iri:h,propsAsList:m}=this.props,v=this.getLabel(),{editor:w}=i,E=Ri.isNewElement(w.authoringState,h)?"white":a,S=this.findPinnedProperties(i);return N.createElement("div",{className:ai},N.createElement("div",{className:`${ai}__main`,style:{backgroundColor:E,borderColor:a}},N.createElement("div",{className:`${ai}__body`,style:{borderLeftColor:a}},N.createElement("div",{className:`${ai}__body-horizontal`},this.renderThumbnail(),N.createElement("div",{className:`${ai}__body-content`},N.createElement("div",{title:s,className:`${ai}__type`},N.createElement("div",{className:`${ai}__type-value`},this.getTypesLabel())),N.createElement("div",{className:`${ai}__label`,title:v},v))),S?N.createElement("div",{className:`${ai}__pinned-props`,style:{borderColor:a}},this.renderProperties(S)):null)),f?N.createElement("div",{className:`${ai}__dropdown`,style:{borderColor:a}},this.renderPhoto(),N.createElement("div",{className:`${ai}__dropdown-content`},this.renderIri(i),this.renderProperties(m),w.inAuthoringMode?N.createElement("hr",{className:`${ai}__hr`}):null,w.inAuthoringMode?this.renderActions(i):null)):null)}findPinnedProperties(i){const{isExpanded:a,propsAsList:s,elementId:f}=this.props;if(a)return;const h=i.view.model.getElement(f).elementState;if(!h)return;const m=h[x2.PinnedProperties];if(!m)return;const v=s.filter(w=>!!m[w.id]);return v.length===0?void 0:v}renderProperties(i){return i.length?N.createElement("div",{className:`${ai}__properties`},i.map(({name:a,id:s,property:f})=>{const h=nE(f);return N.createElement("div",{key:s,className:`${ai}__properties-row`},N.createElement("div",{className:`${ai}__properties-key`,title:`${a} (${s})`},a),N.createElement("div",{className:`${ai}__properties-values`},h.map((m,v)=>N.createElement("div",{className:`${ai}__properties-value`,key:v,title:m},m))))})):N.createElement("div",null,"no properties")}renderPhoto(){const{color:i,imgUrl:a}=this.props;return a?N.createElement("div",{className:`${ai}__photo`,style:{borderColor:i}},N.createElement("img",{src:a,className:`${ai}__photo-image`})):null}renderIri(i){const{iri:a}=this.props,s=i.editedIri===void 0?a:i.editedIri;return N.createElement("div",null,N.createElement("div",{className:`${ai}__iri`},N.createElement("div",{className:`${ai}__iri-key`},"IRI",i.editedIri?" (edited)":"",":"),N.createElement("div",{className:`${ai}__iri-value`},ec(s)?N.createElement("span",null,"(blank node)"):N.createElement("a",{href:s,title:s,"data-iri-click-intent":"openEntityIri"},s))),N.createElement("hr",{className:`${ai}__hr`}))}renderThumbnail(){const{color:i,imgUrl:a,iconUrl:s}=this.props;if(a)return N.createElement("div",{className:`${ai}__thumbnail`,"aria-hidden":"true"},N.createElement("img",{src:a,className:`${ai}__thumbnail-image`}));if(s)return N.createElement("div",{className:`${ai}__thumbnail`,"aria-hidden":"true"},N.createElement("img",{src:s,className:`${ai}__thumbnail-icon`}));const f=this.getTypesLabel();return N.createElement("div",{className:`${ai}__thumbnail`,"aria-hidden":"true",style:{color:i}},f.length>0?f.charAt(0).toUpperCase():"✳")}getTypesLabel(){return this.props.types}getLabel(){const{label:i,props:a}=this.props;return Gx(a,zL)||i}renderActions(i){const{canEdit:a,canDelete:s,onEdit:f,onDelete:h}=i,m=15,v=12;return N.createElement("div",{className:`${ai}__actions`},N.createElement("button",{type:"button",className:"graph-explorer-btn graph-explorer-btn-default",title:s?"Delete entity":"Deletion is unavailable for the selected element",disabled:!s,onClick:h},N.createElement("span",{className:"fa fa-trash"})," ",a===void 0?N.createElement(fs,{width:m,height:v}):"Delete"),N.createElement("button",{type:"button",className:"graph-explorer-btn graph-explorer-btn-default",title:a?"Edit entity":"Editing is unavailable for the selected element",disabled:!a,onClick:f},N.createElement("span",{className:"fa fa-edit"})," ",a===void 0?N.createElement(fs,{width:m,height:v}):"Edit"))}},qT=i=>{},UL=class{constructor(i,a,s,f){this.allClasses=i,this.allLinkTypes=a,this.allElements=s,this.allLinks=f}simulateNetwork(i){const s=(0,so.cloneDeep)(i),f=-Math.log(Math.random())*200;return new Promise(h=>{setTimeout(()=>h(s),f)})}classTree(){return this.simulateNetwork(this.allClasses)}classInfo(i){const a=i.classIds||[];return this.simulateNetwork(this.allClasses.filter(s=>a.indexOf(s.id)))}linkTypes(){return this.simulateNetwork(this.allLinkTypes)}linkTypesInfo(i){const a=(0,so.keyBy)(i.linkTypeIds),s=this.allLinkTypes.filter(f=>a[f.id]);return this.simulateNetwork(s)}elementInfo(i){const a=i.elementIds.map(s=>this.allElements[s]).filter(s=>s!==void 0);return this.simulateNetwork((0,so.keyBy)(a,s=>s.id))}linksInfo(i){const a=(0,so.keyBy)(i.elementIds),s=(0,so.keyBy)(i.linkTypeIds),f=this.allLinks.filter(h=>s[h.linkTypeId]&&a[h.sourceId]&&a[h.targetId]);return this.simulateNetwork(f)}linkTypesOf(i){const a={};for(const s of this.allLinks)if(s.sourceId===i.elementId||s.targetId===i.elementId){const f=a[s.linkTypeId],h=s.sourceId===i.elementId;f?h?f.outCount++:f.inCount++:a[s.linkTypeId]=h?{id:s.linkTypeId,inCount:0,outCount:1}:{id:s.linkTypeId,inCount:1,outCount:0}}return this.simulateNetwork((0,so.map)(a))}linkElements(i){return this.filter({refElementId:i.elementId,refElementLinkId:i.linkId,linkDirection:i.direction,limit:i.limit,offset:i.offset,languageCode:""})}filter(i){if(i.limit===void 0&&(i.limit=100),i.offset>0)return Promise.resolve({});let a={};if(i.elementTypeId)(0,so.each)(this.allElements,s=>{s.types.indexOf(i.elementTypeId)>=0&&(a[s.id]=s)});else if(i.refElementId){const s=i.refElementLinkId?this.allLinks.filter(h=>h.linkTypeId===i.refElementLinkId):this.allLinks,f=i.refElementId;for(const h of s){let m;if(h.sourceId===f&&i.linkDirection!=="in"?m=h.targetId:h.targetId===f&&i.linkDirection!=="out"&&(m=h.sourceId),m!==void 0){const v=this.allElements[m];v&&(a[v.id]=v)}}}else if(i.text)a=this.allElements;else return Promise.reject(new Error("This type of filter is not implemented"));if(i.text){const s={},f=i.text.toLowerCase();return(0,so.each)(a,h=>{(h.id.toLowerCase().indexOf(f)>=0||h.label.values.some(m=>m.value.toLowerCase().indexOf(f)>=0))&&(s[h.id]=h)}),this.simulateNetwork(s)}else return this.simulateNetwork(a)}},GT="http://www.w3.org/2000/01/rdf-schema#label",BL="http://www.w3.org/1999/02/22-rdf-syntax-ns#type",D0=new Map;function HL(i){const a=qL(i.results.bindings),s=[];a.forEach(m=>{s.push(m),m.parents.forEach(v=>{a.get(v).children.push(m)}),m.parents=void 0});const f=GL(s),h=new Set;for(const m of f)for(const v of m.children)h.add(v.id);return f.filter(m=>!h.has(m.id))}function IL(i){const a=[],s=f=>{for(const h of f)a.push(h),s(h.children)};return s(i),a}function qL(i){const a=new Map;for(const f of i){if(!vi(f.class))continue;const h=f.class.value;let m=a.get(h);if(m||(m=s(h),a.set(h,m)),f.label&&QT(m.label,Oh(f.label)),f.parent){const v=f.parent.value;m.parents.add(v)}f.instcount&&(m.count=M0(f.instcount))}for(const f of i)if(f.parent){const h=f.parent.value;a.has(h)||a.set(h,s(h))}function s(f){return{id:f,children:[],label:{values:[]},count:void 0,parents:new Set}}return a}function GL(i){const a=new Set;function s(f,h){if(a.has(h.id))return f;if(!h.children)return;a.add(h.id),h.children=h.children.reduce(s,[]),a.delete(h.id);let m;return h.children.forEach(({count:v})=>{v!==void 0&&(m=m===void 0?v:m+v)}),m!==void 0&&(h.count=h.count===void 0?m:h.count+m),f.push(h),f}return i.reduce(s,[])}function jL(i){const a={};for(const f of i.results.bindings){if(!f.class)continue;const h=f.class.value,m=a[h];if(m){QT(m.label,Oh(f.label));const v=M0(f.instcount);v!==void 0&&(m.count=Math.max(m.count,v))}else{const v=Oh(f.label);a[h]={id:h,children:[],label:{values:v?[v]:[]},count:M0(f.instcount)}}}const s=[];for(const f in a){if(!Object.prototype.hasOwnProperty.call(a,f))continue;const h=a[f];s.push(h)}return s}function YL(i){const a={};for(const s of i.results.bindings){const f=s.property.value;if(a[f]){if(s.label){const h=a[f].label;h.values.length===1&&!h.values[0].language&&(h.values=[]),h.values.push(Oh(s.label))}}else a[f]=WL(s)}return a}function jT(i){const a=i.results.bindings,s=[],f={};for(const h of a){const m=h.link.value;if(f[m]){if(h.label){const v=f[m].label;v.values.length===1&&!v.values[0].language&&(v.values=[]),v.values.push(Oh(h.label))}}else f[m]=eO(h),s.push(f[m])}return s}function VL(i){const a={},s={head:{vars:["inst","class","label","blankType","propType","propValue"]},results:{bindings:[]}};for(const h of i){const m=h.subject.value;a[m]||(a[m]=f(h)),h.predicate.value===GT&&nT(h.object)?(a[m].label&&(a[m]=f(h)),a[m].label=h.object):h.predicate.value===BL&&vi(h.object)&&vi(h.predicate)?(a[m].class&&(a[m]=f(h)),a[m].class=h.object):!oo(h.object)&&vi(h.predicate)&&(a[m].propType&&(a[m]=f(h)),a[m].propType=h.predicate,a[m].propValue=h.object)}function f(h){const m={inst:h.subject};return s.results.bindings.push(m),m}return s}function $L(i,a=D0,s=D0,f=!0){const h={};for(const m of i.results.bindings){if(!vi(m.inst))continue;const v=m.inst.value;let w=h[v];w||(w=ZT(v),h[v]=w),XT(w,m)}if(!f||s.size>0)for(const m in h){if(!Object.hasOwnProperty.call(h,m))continue;const v=h[m];v.properties=XL(v,a.get(v.id),s,f)}return h}function XL(i,a,s,f){const h={};for(const m in i.properties){if(!Object.hasOwnProperty.call(i.properties,m))continue;const v=s.get(m);if(v&&v.length>0)for(const w of v)xE(w,a)&&(h[w.id]=i.properties[m]);else f&&(h[m]=i.properties[m])}return h}function QL(i,a){const s=i.results.bindings;for(const f of s){const h=a[f.inst.value];h&&(h.image=f.image.value)}}function PL(i){const a=new Map;for(const s of i.results.bindings)if(vi(s.inst)&&vi(s.class)){const f=s.inst.value,h=s.class.value;Ub(a,f).add(h)}return a}function ZL(i,a=D0,s=D0,f=!0){const h=i.results.bindings,m=new xm(_m,Er);for(const w of h){const E={sourceId:w.source.value,linkTypeId:w.type.value,targetId:w.target.value,properties:{}};if(m.has(E))w.propType&&LE(m.get(E).properties,w.propType,w.propValue);else{w.propType&&LE(E.properties,w.propType,w.propValue);const S=s.get(E.linkTypeId);if(S&&S.length>0){for(const _ of S)if(xE(_,a.get(E.sourceId))){const L=hp(_)?{...E,linkTypeId:_.id}:E;m.set(L,L)}}else f&&m.set(E,E)}}const v=[];return m.forEach(w=>v.push(w)),v}function JL(i){return i.results.bindings.filter(a=>!oo(a.link)).map(a=>PT(a))}function KL(i,a=D0,s=!0){const f=[];for(const h of i.results.bindings){if(!vi(h.link))continue;const m=a.get(h.link.value);if(m&&m.length>0)for(const v of m){const w=hp(v)?v.id:h.link.value;f.push(w)}else s&&f.push(h.link.value)}return f}function FL(i){for(const a of i.results.bindings)if(vi(a.link))return PT(a)}function YT(i,a,s=D0,f=!0){const h={},m=new Map,v=new Map,w=new Map;for(const E of i.results.bindings){if(!vi(E.inst)&&!oo(E.inst))continue;const S=E.inst.value;let _=h[S];_||(_=ZT(S),h[S]=_),XT(_,E),vi(E.classAll)&&Ub(m,S).add(E.classAll.value),!f&&E.link&&E.direction&&Ub(E.direction.value==="out"?v:w,_.id).add(E.link.value)}if(!f)for(const E of Object.keys(h)){const S=h[E],_=m.get(S.id);VT(a,v.get(S.id),s)&&VT(_,w.get(S.id),s)||delete h[E]}return h}function VT(i,a,s){if(!a)return!0;let f=!1;return a.forEach(h=>{const m=s.get(h);if(m)for(const v of m)xE(v,i)&&(f=!0)}),f}function hp(i){return!/[?$][a-zA-Z]+\b/.test(i.path)}function $T(i){return!/[?$][a-zA-Z]+\b/.test(i.path)}function xE(i,a){if(!i.domain||i.domain.length===0)return!0;if(a){for(const s of i.domain)if(a.has(s))return!0;return!1}else return!1}function LE(i,a,s){let f=i[a.value];if(vi(s))f||(f={type:"uri",values:[]}),Xv(f)&&f.values.every(({value:h})=>h!==s.value)&&(f.values=[...f.values,s]);else if(nT(s)){f||(f={type:"string",values:[]});const h=Oh(s);E0(f)&&f.values.every(m=>!OE(m,h))&&(f.values=[...f.values,h])}i[a.value]=f}function XT(i,a){if(i){if(a.label){const s=Oh(a.label);i.label.values.every(f=>!OE(f,s))&&i.label.values.push(s)}a.class&&i.types.indexOf(a.class.value)<0&&i.types.push(a.class.value),a.propType&&a.propType.value!==GT&&LE(i.properties,a.propType,a.propValue)}}function QT(i,a){if(a){for(const s of i.values)if(OE(s,a))return;i.values.push(a)}}function OE(i,a){return i.language===a.language&&i.value===a.value}function Oh(i){if(i)return{value:i.value,language:i["xml:lang"],datatype:i.datatype?{value:i.datatype}:void 0}}function M0(i){return i?+i.value:void 0}function WL(i){const a=Oh(i.label);return{id:i.property.value,label:{values:a?[a]:[]}}}function PT(i){return{id:i.link.value,inCount:M0(i.inCount),outCount:M0(i.outCount)}}function ZT(i){return{id:i,label:{values:[]},types:[],properties:{}}}function eO(i){if(!i)return;const a=Oh(i.label);return{id:i.link.value,label:{values:a?[a]:[]},count:M0(i.instcount)}}function DE(i,a){return a?{head:{vars:i.head.vars},results:{bindings:[...a.results.bindings,...i.results.bindings]}}:i}var ME={linkConfigurations:[],openWorldLinks:!1,propertyConfigurations:[],openWorldProperties:!1,linksInfoQuery:`SELECT ?source ?type ?target
            WHERE {
                \${linkConfigurations}
                VALUES (?source) {\${ids}}
                VALUES (?target) {\${ids}}
            }`,defaultPrefix:"",schemaLabelProperty:"rdfs:label",dataLabelProperty:"rdfs:label",fullTextSearch:{prefix:"",queryPattern:"",elementFirst:!1},classTreeQuery:"",classInfoQuery:`SELECT ?class ?label ?instcount WHERE {
    VALUES(?class) {\${ids}}
    OPTIONAL { ?class \${schemaLabelProperty} ?label }
    BIND("" as ?instcount)
}`,linkTypesQuery:`SELECT DISTINCT ?link ?instcount ?label WHERE {
    \${linkTypesPattern}
    OPTIONAL { ?link \${schemaLabelProperty} ?label }
}`,linkTypesPattern:"",linkTypesInfoQuery:`SELECT ?link ?label WHERE {
    VALUES(?link) {\${ids}}
    OPTIONAL { ?link \${schemaLabelProperty} ?label }
}`,propertyInfoQuery:`SELECT ?property ?label WHERE {
    VALUES(?property) {\${ids}}
    OPTIONAL { ?property \${schemaLabelProperty} ?label }
}`,elementInfoQuery:"",imageQueryPattern:"",linkTypesOfQuery:"",linkTypesStatisticsQuery:"",filterRefElementLinkPattern:"",filterTypePattern:"",filterAdditionalRestriction:"",filterElementInfoPattern:""},tO={defaultPrefix:`PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
 PREFIX rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
 PREFIX wdt: <http://www.wikidata.org/prop/direct/>
 PREFIX wd: <http://www.wikidata.org/entity/>
 PREFIX owl:  <http://www.w3.org/2002/07/owl#>

`,schemaLabelProperty:"rdfs:label",dataLabelProperty:"rdfs:label",fullTextSearch:{prefix:`PREFIX bds: <http://www.bigdata.com/rdf/search#>
`,queryPattern:`
              ?inst rdfs:label ?searchLabel.
              SERVICE bds:search {
                     ?searchLabel bds:search "\${text}*" ;
                                  bds:minRelevance '0.5' ;
                                  bds:matchAllTerms 'true' .
              }
              BIND(IF(STRLEN(?strInst) > 33,
                            0-<http://www.w3.org/2001/XMLSchema#integer>(SUBSTR(?strInst, 33)),
                            -10000) as ?score)
            `},classTreeQuery:`
            SELECT distinct ?class ?label ?parent WHERE {
              ?class rdfs:label ?label.
              { ?class wdt:P279 wd:Q35120. }
                UNION
              { ?parent wdt:P279 wd:Q35120.
                ?class wdt:P279 ?parent. }
                UNION
              { ?parent wdt:P279/wdt:P279 wd:Q35120.
                ?class wdt:P279 ?parent. }
            }
        `,linkTypesPattern:`?link wdt:P279* wd:Q18616576.
    BIND(0 as ?instcount)
`,elementInfoQuery:`
        CONSTRUCT {
            ?inst rdf:type ?class .
            ?inst rdfs:label ?label .
            ?inst ?propType ?propValue.
        } WHERE {
            VALUES (?inst) {\${ids}}
            OPTIONAL {
                ?inst wdt:P31 ?class
            }
            OPTIONAL {?inst rdfs:label ?label}
            OPTIONAL {
                \${propertyConfigurations}
                FILTER (isLiteral(?propValue))
            }
        }
    `,imageQueryPattern:` { ?inst ?linkType ?fullImage } union { ?inst wdt:P163/wdt:P18 ?fullImage }
                BIND(CONCAT("https://commons.wikimedia.org/w/thumb.php?f=",
                    STRAFTER(STR(?fullImage), "Special:FilePath/"), "&w=200") AS ?image)`,linkTypesOfQuery:`
        SELECT DISTINCT ?link
        WHERE {
            \${linkConfigurations}
            ?claim <http://wikiba.se/ontology#directClaim> ?link .
        }
    `,linkTypesStatisticsQuery:`
        SELECT (\${linkId} as ?link) (COUNT(?outObject) AS ?outCount) (COUNT(?inObject) AS ?inCount)
        WHERE {
            {
                {
                    SELECT DISTINCT ?outObject WHERE {
                        \${linkConfigurationOut}
                        FILTER(ISIRI(?outObject))
                        ?outObject ?someprop ?someobj.
                    }
                    LIMIT 101
                }
            } UNION {
                {
                    SELECT DISTINCT ?inObject WHERE {
                        \${linkConfigurationIn}
                        FILTER(ISIRI(?inObject))
                        ?inObject ?someprop ?someobj.
                    }
                    LIMIT 101
                }
            }
        }
    `,filterRefElementLinkPattern:"?claim <http://wikiba.se/ontology#directClaim> ?link .",filterTypePattern:"?inst wdt:P31 ?instType. ?instType wdt:P279* ?class",filterAdditionalRestriction:`FILTER ISIRI(?inst)
                        BIND(STR(?inst) as ?strInst)
                        FILTER exists {?inst ?someprop ?someobj}
`,filterElementInfoPattern:`OPTIONAL {?inst wdt:P31 ?foundClass}
                BIND (coalesce(?foundClass, owl:Thing) as ?class)
                OPTIONAL {?inst rdfs:label ?label}
`},nO={...ME,...tO},JT={defaultPrefix:`PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
 PREFIX rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
 PREFIX owl:  <http://www.w3.org/2002/07/owl#>
`,schemaLabelProperty:"rdfs:label",dataLabelProperty:"rdfs:label",fullTextSearch:{prefix:"",queryPattern:` OPTIONAL {?inst \${dataLabelProperty} ?search1}
        FILTER regex(COALESCE(str(?search1), str(?extractedLabel)), "\${text}", "i")
        BIND(0 as ?score)
`,extractLabel:!0},classTreeQuery:`
            SELECT ?class ?label ?parent
            WHERE {
                {
                    ?class a rdfs:Class
                } UNION {
                    ?class a owl:Class
                }
                FILTER ISIRI(?class)
                OPTIONAL {?class rdfs:label ?label}
                OPTIONAL {?class rdfs:subClassOf ?parent. FILTER ISIRI(?parent)}
            }
        `,linkTypesPattern:`{  ?link a rdf:Property
                    } UNION {
                    ?link a owl:ObjectProperty
                }
                BIND('' as ?instcount)
    `,elementInfoQuery:`
        CONSTRUCT {
            ?inst rdf:type ?class .
            ?inst rdfs:label ?label .
            ?inst ?propType ?propValue.
        } WHERE {
            VALUES (?inst) {\${ids}}
            OPTIONAL { ?inst a ?class }
            OPTIONAL {?inst \${dataLabelProperty} ?label}
            OPTIONAL {
                \${propertyConfigurations}
                FILTER (isLiteral(?propValue))
            }
        }
    `,imageQueryPattern:"{ ?inst ?linkType ?image } UNION { [] ?linkType ?inst. BIND(?inst as ?image) }",linkTypesOfQuery:`
        SELECT DISTINCT ?link
        WHERE {
            \${linkConfigurations}
        }
    `,linkTypesStatisticsQuery:`
        SELECT ?link ?outCount ?inCount
        WHERE {
            {
                SELECT (\${linkId} as ?link) (count(?outObject) as ?outCount) WHERE {
                    \${linkConfigurationOut}
                    \${navigateElementFilterOut}
                } LIMIT 101
            } {
                SELECT (\${linkId} as ?link) (count(?inObject) as ?inCount) WHERE {
                    \${linkConfigurationIn}
                    \${navigateElementFilterIn}
                } LIMIT 101
            }
        }
    `,filterRefElementLinkPattern:"",filterTypePattern:"?inst a ?instType. ?instType rdfs:subClassOf* ?class",filterElementInfoPattern:`OPTIONAL {?inst rdf:type ?foundClass}
                BIND (coalesce(?foundClass, owl:Thing) as ?class)
                OPTIONAL {?inst \${dataLabelProperty} ?label}`,filterAdditionalRestriction:""},Hb={...ME,...JT},iO={classTreeQuery:`
        SELECT ?class ?instcount ?label ?parent
        WHERE {
            {SELECT ?class (count(?inst) as ?instcount)
                WHERE {
                    ?inst rdf:type ?class.
                    FILTER ISIRI(?class)
                } GROUP BY ?class } UNION
            {
                ?class rdf:type rdfs:Class
            } UNION {
                ?class rdf:type owl:Class
            }
            OPTIONAL {?class rdfs:label ?label}
            OPTIONAL {?class rdfs:subClassOf ?parent. FILTER ISIRI(?parent)}
        }
    `},KT={...Hb,...iO},aO={fullTextSearch:{prefix:`PREFIX dbo: <http://dbpedia.org/ontology/>
`,queryPattern:`
              ?inst rdfs:label ?searchLabel.
              ?searchLabel bif:contains "\${text}".
              ?inst dbo:wikiPageID ?origScore .
              BIND(0-?origScore as ?score)
        `},classTreeQuery:`
        SELECT distinct ?class ?label ?parent WHERE {
            ?class rdfs:label ?label.
            OPTIONAL {?class rdfs:subClassOf ?parent}
            ?root rdfs:subClassOf owl:Thing.
            ?class rdfs:subClassOf? | rdfs:subClassOf/rdfs:subClassOf ?root
        }
    `,elementInfoQuery:`
        CONSTRUCT {
            ?inst rdf:type ?class .
            ?inst rdfs:label ?label .
            ?inst ?propType ?propValue.
        } WHERE {
            VALUES (?inst) {\${ids}}
            ?inst a ?class .
            ?inst rdfs:label ?label .
            FILTER (!contains(str(?class), 'http://dbpedia.org/class/yago'))
            OPTIONAL {
                \${propertyConfigurations}
                FILTER (isLiteral(?propValue))
            }
        }
    `,filterTypePattern:"?inst a ?instType. ?instType rdfs:subClassOf* ?class",filterElementInfoPattern:`
        OPTIONAL {?inst rdf:type ?foundClass. FILTER (!contains(str(?foundClass), 'http://dbpedia.org/class/yago'))}
        BIND (coalesce(?foundClass, owl:Thing) as ?class)
        OPTIONAL {?inst \${dataLabelProperty} ?label}`,imageQueryPattern:` { ?inst ?linkType ?fullImage } UNION { [] ?linkType ?inst. BIND(?inst as ?fullImage) }
            BIND(CONCAT("https://commons.wikimedia.org/w/thumb.php?f=",
            STRAFTER(STR(?fullImage), "Special:FilePath/"), "&w=200") AS ?image)
    `},rO={...Hb,...aO},lO={fullTextSearch:{prefix:`PREFIX ql: <http://qlever.cs.uni-freiburg.de/builtin-functions/>
`,queryPatternPerWord:`
              ?inst \${dataLabelProperty} ?searchLabel .
              ?searchLabel ql:has-word "\${word}" .
        `}},sO={...Hb,...lO},rr={},Ib={};Ib.byteLength=cO,Ib.toByteArray=hO,Ib.fromByteArray=gO;for(var gf=[],Xo=[],oO=typeof Uint8Array<"u"?Uint8Array:Array,RE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",R0=0,uO=RE.length;R0<uO;++R0)gf[R0]=RE[R0],Xo[RE.charCodeAt(R0)]=R0;Xo[45]=62,Xo[95]=63;function FT(i){var a=i.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var s=i.indexOf("=");s===-1&&(s=a);var f=s===a?0:4-s%4;return[s,f]}function cO(i){var a=FT(i),s=a[0],f=a[1];return(s+f)*3/4-f}function fO(i,a,s){return(a+s)*3/4-s}function hO(i){var a,s=FT(i),f=s[0],h=s[1],m=new oO(fO(i,f,h)),v=0,w=h>0?f-4:f,E;for(E=0;E<w;E+=4)a=Xo[i.charCodeAt(E)]<<18|Xo[i.charCodeAt(E+1)]<<12|Xo[i.charCodeAt(E+2)]<<6|Xo[i.charCodeAt(E+3)],m[v++]=a>>16&255,m[v++]=a>>8&255,m[v++]=a&255;return h===2&&(a=Xo[i.charCodeAt(E)]<<2|Xo[i.charCodeAt(E+1)]>>4,m[v++]=a&255),h===1&&(a=Xo[i.charCodeAt(E)]<<10|Xo[i.charCodeAt(E+1)]<<4|Xo[i.charCodeAt(E+2)]>>2,m[v++]=a>>8&255,m[v++]=a&255),m}function dO(i){return gf[i>>18&63]+gf[i>>12&63]+gf[i>>6&63]+gf[i&63]}function pO(i,a,s){for(var f,h=[],m=a;m<s;m+=3)f=(i[m]<<16&16711680)+(i[m+1]<<8&65280)+(i[m+2]&255),h.push(dO(f));return h.join("")}function gO(i){for(var a,s=i.length,f=s%3,h=[],m=16383,v=0,w=s-f;v<w;v+=m)h.push(pO(i,v,v+m>w?w:v+m));return f===1?(a=i[s-1],h.push(gf[a>>2]+gf[a<<4&63]+"==")):f===2&&(a=(i[s-2]<<8)+i[s-1],h.push(gf[a>>10]+gf[a>>4&63]+gf[a<<2&63]+"=")),h.join("")}var NE={};NE.read=function(i,a,s,f,h){var m,v,w=h*8-f-1,E=(1<<w)-1,S=E>>1,_=-7,L=s?h-1:0,x=s?-1:1,D=i[a+L];for(L+=x,m=D&(1<<-_)-1,D>>=-_,_+=w;_>0;m=m*256+i[a+L],L+=x,_-=8);for(v=m&(1<<-_)-1,m>>=-_,_+=f;_>0;v=v*256+i[a+L],L+=x,_-=8);if(m===0)m=1-S;else{if(m===E)return v?NaN:(D?-1:1)*(1/0);v=v+Math.pow(2,f),m=m-S}return(D?-1:1)*v*Math.pow(2,m-f)},NE.write=function(i,a,s,f,h,m){var v,w,E,S=m*8-h-1,_=(1<<S)-1,L=_>>1,x=h===23?Math.pow(2,-24)-Math.pow(2,-77):0,D=f?0:m-1,B=f?1:-1,G=a<0||a===0&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===1/0?(w=isNaN(a)?1:0,v=_):(v=Math.floor(Math.log(a)/Math.LN2),a*(E=Math.pow(2,-v))<1&&(v--,E*=2),v+L>=1?a+=x/E:a+=x*Math.pow(2,1-L),a*E>=2&&(v++,E/=2),v+L>=_?(w=0,v=_):v+L>=1?(w=(a*E-1)*Math.pow(2,h),v=v+L):(w=a*Math.pow(2,L-1)*Math.pow(2,h),v=0));h>=8;i[s+D]=w&255,D+=B,w/=256,h-=8);for(v=v<<h|w,S+=h;S>0;i[s+D]=v&255,D+=B,v/=256,S-=8);i[s+D-B]|=G*128},(function(i){const a=Ib,s=NE,f=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;i.Buffer=_,i.SlowBuffer=Fe,i.INSPECT_MAX_BYTES=50;const h=2147483647;i.kMaxLength=h;const{Uint8Array:m,ArrayBuffer:v,SharedArrayBuffer:w}=globalThis;_.TYPED_ARRAY_SUPPORT=E(),!_.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 E(){try{const Y=new m(1),R={foo:function(){return 42}};return Object.setPrototypeOf(R,m.prototype),Object.setPrototypeOf(Y,R),Y.foo()===42}catch{return!1}}Object.defineProperty(_.prototype,"parent",{enumerable:!0,get:function(){if(_.isBuffer(this))return this.buffer}}),Object.defineProperty(_.prototype,"offset",{enumerable:!0,get:function(){if(_.isBuffer(this))return this.byteOffset}});function S(Y){if(Y>h)throw new RangeError('The value "'+Y+'" is invalid for option "size"');const R=new m(Y);return Object.setPrototypeOf(R,_.prototype),R}function _(Y,R,k){if(typeof Y=="number"){if(typeof R=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return B(Y)}return L(Y,R,k)}_.poolSize=8192;function L(Y,R,k){if(typeof Y=="string")return G(Y,R);if(v.isView(Y))return te(Y);if(Y==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Y);if(Cn(Y,v)||Y&&Cn(Y.buffer,v)||typeof w<"u"&&(Cn(Y,w)||Y&&Cn(Y.buffer,w)))return pe(Y,R,k);if(typeof Y=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const J=Y.valueOf&&Y.valueOf();if(J!=null&&J!==Y)return _.from(J,R,k);const ve=Te(Y);if(ve)return ve;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Y[Symbol.toPrimitive]=="function")return _.from(Y[Symbol.toPrimitive]("string"),R,k);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Y)}_.from=function(Y,R,k){return L(Y,R,k)},Object.setPrototypeOf(_.prototype,m.prototype),Object.setPrototypeOf(_,m);function x(Y){if(typeof Y!="number")throw new TypeError('"size" argument must be of type number');if(Y<0)throw new RangeError('The value "'+Y+'" is invalid for option "size"')}function D(Y,R,k){return x(Y),Y<=0?S(Y):R!==void 0?typeof k=="string"?S(Y).fill(R,k):S(Y).fill(R):S(Y)}_.alloc=function(Y,R,k){return D(Y,R,k)};function B(Y){return x(Y),S(Y<0?0:Se(Y)|0)}_.allocUnsafe=function(Y){return B(Y)},_.allocUnsafeSlow=function(Y){return B(Y)};function G(Y,R){if((typeof R!="string"||R==="")&&(R="utf8"),!_.isEncoding(R))throw new TypeError("Unknown encoding: "+R);const k=Re(Y,R)|0;let J=S(k);const ve=J.write(Y,R);return ve!==k&&(J=J.slice(0,ve)),J}function P(Y){const R=Y.length<0?0:Se(Y.length)|0,k=S(R);for(let J=0;J<R;J+=1)k[J]=Y[J]&255;return k}function te(Y){if(Cn(Y,m)){const R=new m(Y);return pe(R.buffer,R.byteOffset,R.byteLength)}return P(Y)}function pe(Y,R,k){if(R<0||Y.byteLength<R)throw new RangeError('"offset" is outside of buffer bounds');if(Y.byteLength<R+(k||0))throw new RangeError('"length" is outside of buffer bounds');let J;return R===void 0&&k===void 0?J=new m(Y):k===void 0?J=new m(Y,R):J=new m(Y,R,k),Object.setPrototypeOf(J,_.prototype),J}function Te(Y){if(_.isBuffer(Y)){const R=Se(Y.length)|0,k=S(R);return k.length===0||Y.copy(k,0,0,R),k}if(Y.length!==void 0)return typeof Y.length!="number"||Rl(Y.length)?S(0):P(Y);if(Y.type==="Buffer"&&Array.isArray(Y.data))return P(Y.data)}function Se(Y){if(Y>=h)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h.toString(16)+" bytes");return Y|0}function Fe(Y){return+Y!=Y&&(Y=0),_.alloc(+Y)}_.isBuffer=function(R){return R!=null&&R._isBuffer===!0&&R!==_.prototype},_.compare=function(R,k){if(Cn(R,m)&&(R=_.from(R,R.offset,R.byteLength)),Cn(k,m)&&(k=_.from(k,k.offset,k.byteLength)),!_.isBuffer(R)||!_.isBuffer(k))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(R===k)return 0;let J=R.length,ve=k.length;for(let Ae=0,Ge=Math.min(J,ve);Ae<Ge;++Ae)if(R[Ae]!==k[Ae]){J=R[Ae],ve=k[Ae];break}return J<ve?-1:ve<J?1:0},_.isEncoding=function(R){switch(String(R).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},_.concat=function(R,k){if(!Array.isArray(R))throw new TypeError('"list" argument must be an Array of Buffers');if(R.length===0)return _.alloc(0);let J;if(k===void 0)for(k=0,J=0;J<R.length;++J)k+=R[J].length;const ve=_.allocUnsafe(k);let Ae=0;for(J=0;J<R.length;++J){let Ge=R[J];if(Cn(Ge,m))Ae+Ge.length>ve.length?(_.isBuffer(Ge)||(Ge=_.from(Ge)),Ge.copy(ve,Ae)):m.prototype.set.call(ve,Ge,Ae);else if(_.isBuffer(Ge))Ge.copy(ve,Ae);else throw new TypeError('"list" argument must be an Array of Buffers');Ae+=Ge.length}return ve};function Re(Y,R){if(_.isBuffer(Y))return Y.length;if(v.isView(Y)||Cn(Y,v))return Y.byteLength;if(typeof Y!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Y);const k=Y.length,J=arguments.length>2&&arguments[2]===!0;if(!J&&k===0)return 0;let ve=!1;for(;;)switch(R){case"ascii":case"latin1":case"binary":return k;case"utf8":case"utf-8":return kt(Y).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k*2;case"hex":return k>>>1;case"base64":return La(Y).length;default:if(ve)return J?-1:kt(Y).length;R=(""+R).toLowerCase(),ve=!0}}_.byteLength=Re;function Je(Y,R,k){let J=!1;if((R===void 0||R<0)&&(R=0),R>this.length||((k===void 0||k>this.length)&&(k=this.length),k<=0)||(k>>>=0,R>>>=0,k<=R))return"";for(Y||(Y="utf8");;)switch(Y){case"hex":return F(this,R,k);case"utf8":case"utf-8":return X(this,R,k);case"ascii":return Me(this,R,k);case"latin1":case"binary":return et(this,R,k);case"base64":return $(this,R,k);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ze(this,R,k);default:if(J)throw new TypeError("Unknown encoding: "+Y);Y=(Y+"").toLowerCase(),J=!0}}_.prototype._isBuffer=!0;function Be(Y,R,k){const J=Y[R];Y[R]=Y[k],Y[k]=J}_.prototype.swap16=function(){const R=this.length;if(R%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let k=0;k<R;k+=2)Be(this,k,k+1);return this},_.prototype.swap32=function(){const R=this.length;if(R%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let k=0;k<R;k+=4)Be(this,k,k+3),Be(this,k+1,k+2);return this},_.prototype.swap64=function(){const R=this.length;if(R%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let k=0;k<R;k+=8)Be(this,k,k+7),Be(this,k+1,k+6),Be(this,k+2,k+5),Be(this,k+3,k+4);return this},_.prototype.toString=function(){const R=this.length;return R===0?"":arguments.length===0?X(this,0,R):Je.apply(this,arguments)},_.prototype.toLocaleString=_.prototype.toString,_.prototype.equals=function(R){if(!_.isBuffer(R))throw new TypeError("Argument must be a Buffer");return this===R?!0:_.compare(this,R)===0},_.prototype.inspect=function(){let R="";const k=i.INSPECT_MAX_BYTES;return R=this.toString("hex",0,k).replace(/(.{2})/g,"$1 ").trim(),this.length>k&&(R+=" ... "),"<Buffer "+R+">"},f&&(_.prototype[f]=_.prototype.inspect),_.prototype.compare=function(R,k,J,ve,Ae){if(Cn(R,m)&&(R=_.from(R,R.offset,R.byteLength)),!_.isBuffer(R))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof R);if(k===void 0&&(k=0),J===void 0&&(J=R?R.length:0),ve===void 0&&(ve=0),Ae===void 0&&(Ae=this.length),k<0||J>R.length||ve<0||Ae>this.length)throw new RangeError("out of range index");if(ve>=Ae&&k>=J)return 0;if(ve>=Ae)return-1;if(k>=J)return 1;if(k>>>=0,J>>>=0,ve>>>=0,Ae>>>=0,this===R)return 0;let Ge=Ae-ve,pt=J-k;const I=Math.min(Ge,pt),ge=this.slice(ve,Ae),Xe=R.slice(k,J);for(let Ze=0;Ze<I;++Ze)if(ge[Ze]!==Xe[Ze]){Ge=ge[Ze],pt=Xe[Ze];break}return Ge<pt?-1:pt<Ge?1:0};function W(Y,R,k,J,ve){if(Y.length===0)return-1;if(typeof k=="string"?(J=k,k=0):k>2147483647?k=2147483647:k<-2147483648&&(k=-2147483648),k=+k,Rl(k)&&(k=ve?0:Y.length-1),k<0&&(k=Y.length+k),k>=Y.length){if(ve)return-1;k=Y.length-1}else if(k<0)if(ve)k=0;else return-1;if(typeof R=="string"&&(R=_.from(R,J)),_.isBuffer(R))return R.length===0?-1:re(Y,R,k,J,ve);if(typeof R=="number")return R=R&255,typeof m.prototype.indexOf=="function"?ve?m.prototype.indexOf.call(Y,R,k):m.prototype.lastIndexOf.call(Y,R,k):re(Y,[R],k,J,ve);throw new TypeError("val must be string, number or Buffer")}function re(Y,R,k,J,ve){let Ae=1,Ge=Y.length,pt=R.length;if(J!==void 0&&(J=String(J).toLowerCase(),J==="ucs2"||J==="ucs-2"||J==="utf16le"||J==="utf-16le")){if(Y.length<2||R.length<2)return-1;Ae=2,Ge/=2,pt/=2,k/=2}function I(Xe,Ze){return Ae===1?Xe[Ze]:Xe.readUInt16BE(Ze*Ae)}let ge;if(ve){let Xe=-1;for(ge=k;ge<Ge;ge++)if(I(Y,ge)===I(R,Xe===-1?0:ge-Xe)){if(Xe===-1&&(Xe=ge),ge-Xe+1===pt)return Xe*Ae}else Xe!==-1&&(ge-=ge-Xe),Xe=-1}else for(k+pt>Ge&&(k=Ge-pt),ge=k;ge>=0;ge--){let Xe=!0;for(let Ze=0;Ze<pt;Ze++)if(I(Y,ge+Ze)!==I(R,Ze)){Xe=!1;break}if(Xe)return ge}return-1}_.prototype.includes=function(R,k,J){return this.indexOf(R,k,J)!==-1},_.prototype.indexOf=function(R,k,J){return W(this,R,k,J,!0)},_.prototype.lastIndexOf=function(R,k,J){return W(this,R,k,J,!1)};function me(Y,R,k,J){k=Number(k)||0;const ve=Y.length-k;J?(J=Number(J),J>ve&&(J=ve)):J=ve;const Ae=R.length;J>Ae/2&&(J=Ae/2);let Ge;for(Ge=0;Ge<J;++Ge){const pt=parseInt(R.substr(Ge*2,2),16);if(Rl(pt))return Ge;Y[k+Ge]=pt}return Ge}function ne(Y,R,k,J){return lr(kt(R,Y.length-k),Y,k,J)}function ue(Y,R,k,J){return lr(nn(R),Y,k,J)}function Z(Y,R,k,J){return lr(La(R),Y,k,J)}function K(Y,R,k,J){return lr(fa(R,Y.length-k),Y,k,J)}_.prototype.write=function(R,k,J,ve){if(k===void 0)ve="utf8",J=this.length,k=0;else if(J===void 0&&typeof k=="string")ve=k,J=this.length,k=0;else if(isFinite(k))k=k>>>0,isFinite(J)?(J=J>>>0,ve===void 0&&(ve="utf8")):(ve=J,J=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Ae=this.length-k;if((J===void 0||J>Ae)&&(J=Ae),R.length>0&&(J<0||k<0)||k>this.length)throw new RangeError("Attempt to write outside buffer bounds");ve||(ve="utf8");let Ge=!1;for(;;)switch(ve){case"hex":return me(this,R,k,J);case"utf8":case"utf-8":return ne(this,R,k,J);case"ascii":case"latin1":case"binary":return ue(this,R,k,J);case"base64":return Z(this,R,k,J);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,R,k,J);default:if(Ge)throw new TypeError("Unknown encoding: "+ve);ve=(""+ve).toLowerCase(),Ge=!0}},_.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function $(Y,R,k){return R===0&&k===Y.length?a.fromByteArray(Y):a.fromByteArray(Y.slice(R,k))}function X(Y,R,k){k=Math.min(Y.length,k);const J=[];let ve=R;for(;ve<k;){const Ae=Y[ve];let Ge=null,pt=Ae>239?4:Ae>223?3:Ae>191?2:1;if(ve+pt<=k){let I,ge,Xe,Ze;switch(pt){case 1:Ae<128&&(Ge=Ae);break;case 2:I=Y[ve+1],(I&192)===128&&(Ze=(Ae&31)<<6|I&63,Ze>127&&(Ge=Ze));break;case 3:I=Y[ve+1],ge=Y[ve+2],(I&192)===128&&(ge&192)===128&&(Ze=(Ae&15)<<12|(I&63)<<6|ge&63,Ze>2047&&(Ze<55296||Ze>57343)&&(Ge=Ze));break;case 4:I=Y[ve+1],ge=Y[ve+2],Xe=Y[ve+3],(I&192)===128&&(ge&192)===128&&(Xe&192)===128&&(Ze=(Ae&15)<<18|(I&63)<<12|(ge&63)<<6|Xe&63,Ze>65535&&Ze<1114112&&(Ge=Ze))}}Ge===null?(Ge=65533,pt=1):Ge>65535&&(Ge-=65536,J.push(Ge>>>10&1023|55296),Ge=56320|Ge&1023),J.push(Ge),ve+=pt}return ye(J)}const ee=4096;function ye(Y){const R=Y.length;if(R<=ee)return String.fromCharCode.apply(String,Y);let k="",J=0;for(;J<R;)k+=String.fromCharCode.apply(String,Y.slice(J,J+=ee));return k}function Me(Y,R,k){let J="";k=Math.min(Y.length,k);for(let ve=R;ve<k;++ve)J+=String.fromCharCode(Y[ve]&127);return J}function et(Y,R,k){let J="";k=Math.min(Y.length,k);for(let ve=R;ve<k;++ve)J+=String.fromCharCode(Y[ve]);return J}function F(Y,R,k){const J=Y.length;(!R||R<0)&&(R=0),(!k||k<0||k>J)&&(k=J);let ve="";for(let Ae=R;Ae<k;++Ae)ve+=Po[Y[Ae]];return ve}function ze(Y,R,k){const J=Y.slice(R,k);let ve="";for(let Ae=0;Ae<J.length-1;Ae+=2)ve+=String.fromCharCode(J[Ae]+J[Ae+1]*256);return ve}_.prototype.slice=function(R,k){const J=this.length;R=~~R,k=k===void 0?J:~~k,R<0?(R+=J,R<0&&(R=0)):R>J&&(R=J),k<0?(k+=J,k<0&&(k=0)):k>J&&(k=J),k<R&&(k=R);const ve=this.subarray(R,k);return Object.setPrototypeOf(ve,_.prototype),ve};function He(Y,R,k){if(Y%1!==0||Y<0)throw new RangeError("offset is not uint");if(Y+R>k)throw new RangeError("Trying to access beyond buffer length")}_.prototype.readUintLE=_.prototype.readUIntLE=function(R,k,J){R=R>>>0,k=k>>>0,J||He(R,k,this.length);let ve=this[R],Ae=1,Ge=0;for(;++Ge<k&&(Ae*=256);)ve+=this[R+Ge]*Ae;return ve},_.prototype.readUintBE=_.prototype.readUIntBE=function(R,k,J){R=R>>>0,k=k>>>0,J||He(R,k,this.length);let ve=this[R+--k],Ae=1;for(;k>0&&(Ae*=256);)ve+=this[R+--k]*Ae;return ve},_.prototype.readUint8=_.prototype.readUInt8=function(R,k){return R=R>>>0,k||He(R,1,this.length),this[R]},_.prototype.readUint16LE=_.prototype.readUInt16LE=function(R,k){return R=R>>>0,k||He(R,2,this.length),this[R]|this[R+1]<<8},_.prototype.readUint16BE=_.prototype.readUInt16BE=function(R,k){return R=R>>>0,k||He(R,2,this.length),this[R]<<8|this[R+1]},_.prototype.readUint32LE=_.prototype.readUInt32LE=function(R,k){return R=R>>>0,k||He(R,4,this.length),(this[R]|this[R+1]<<8|this[R+2]<<16)+this[R+3]*16777216},_.prototype.readUint32BE=_.prototype.readUInt32BE=function(R,k){return R=R>>>0,k||He(R,4,this.length),this[R]*16777216+(this[R+1]<<16|this[R+2]<<8|this[R+3])},_.prototype.readBigUInt64LE=ji(function(R){R=R>>>0,Ai(R,"offset");const k=this[R],J=this[R+7];(k===void 0||J===void 0)&&Dt(R,this.length-8);const ve=k+this[++R]*2**8+this[++R]*2**16+this[++R]*2**24,Ae=this[++R]+this[++R]*2**8+this[++R]*2**16+J*2**24;return BigInt(ve)+(BigInt(Ae)<<BigInt(32))}),_.prototype.readBigUInt64BE=ji(function(R){R=R>>>0,Ai(R,"offset");const k=this[R],J=this[R+7];(k===void 0||J===void 0)&&Dt(R,this.length-8);const ve=k*2**24+this[++R]*2**16+this[++R]*2**8+this[++R],Ae=this[++R]*2**24+this[++R]*2**16+this[++R]*2**8+J;return(BigInt(ve)<<BigInt(32))+BigInt(Ae)}),_.prototype.readIntLE=function(R,k,J){R=R>>>0,k=k>>>0,J||He(R,k,this.length);let ve=this[R],Ae=1,Ge=0;for(;++Ge<k&&(Ae*=256);)ve+=this[R+Ge]*Ae;return Ae*=128,ve>=Ae&&(ve-=Math.pow(2,8*k)),ve},_.prototype.readIntBE=function(R,k,J){R=R>>>0,k=k>>>0,J||He(R,k,this.length);let ve=k,Ae=1,Ge=this[R+--ve];for(;ve>0&&(Ae*=256);)Ge+=this[R+--ve]*Ae;return Ae*=128,Ge>=Ae&&(Ge-=Math.pow(2,8*k)),Ge},_.prototype.readInt8=function(R,k){return R=R>>>0,k||He(R,1,this.length),this[R]&128?(255-this[R]+1)*-1:this[R]},_.prototype.readInt16LE=function(R,k){R=R>>>0,k||He(R,2,this.length);const J=this[R]|this[R+1]<<8;return J&32768?J|4294901760:J},_.prototype.readInt16BE=function(R,k){R=R>>>0,k||He(R,2,this.length);const J=this[R+1]|this[R]<<8;return J&32768?J|4294901760:J},_.prototype.readInt32LE=function(R,k){return R=R>>>0,k||He(R,4,this.length),this[R]|this[R+1]<<8|this[R+2]<<16|this[R+3]<<24},_.prototype.readInt32BE=function(R,k){return R=R>>>0,k||He(R,4,this.length),this[R]<<24|this[R+1]<<16|this[R+2]<<8|this[R+3]},_.prototype.readBigInt64LE=ji(function(R){R=R>>>0,Ai(R,"offset");const k=this[R],J=this[R+7];(k===void 0||J===void 0)&&Dt(R,this.length-8);const ve=this[R+4]+this[R+5]*2**8+this[R+6]*2**16+(J<<24);return(BigInt(ve)<<BigInt(32))+BigInt(k+this[++R]*2**8+this[++R]*2**16+this[++R]*2**24)}),_.prototype.readBigInt64BE=ji(function(R){R=R>>>0,Ai(R,"offset");const k=this[R],J=this[R+7];(k===void 0||J===void 0)&&Dt(R,this.length-8);const ve=(k<<24)+this[++R]*2**16+this[++R]*2**8+this[++R];return(BigInt(ve)<<BigInt(32))+BigInt(this[++R]*2**24+this[++R]*2**16+this[++R]*2**8+J)}),_.prototype.readFloatLE=function(R,k){return R=R>>>0,k||He(R,4,this.length),s.read(this,R,!0,23,4)},_.prototype.readFloatBE=function(R,k){return R=R>>>0,k||He(R,4,this.length),s.read(this,R,!1,23,4)},_.prototype.readDoubleLE=function(R,k){return R=R>>>0,k||He(R,8,this.length),s.read(this,R,!0,52,8)},_.prototype.readDoubleBE=function(R,k){return R=R>>>0,k||He(R,8,this.length),s.read(this,R,!1,52,8)};function Ie(Y,R,k,J,ve,Ae){if(!_.isBuffer(Y))throw new TypeError('"buffer" argument must be a Buffer instance');if(R>ve||R<Ae)throw new RangeError('"value" argument is out of bounds');if(k+J>Y.length)throw new RangeError("Index out of range")}_.prototype.writeUintLE=_.prototype.writeUIntLE=function(R,k,J,ve){if(R=+R,k=k>>>0,J=J>>>0,!ve){const pt=Math.pow(2,8*J)-1;Ie(this,R,k,J,pt,0)}let Ae=1,Ge=0;for(this[k]=R&255;++Ge<J&&(Ae*=256);)this[k+Ge]=R/Ae&255;return k+J},_.prototype.writeUintBE=_.prototype.writeUIntBE=function(R,k,J,ve){if(R=+R,k=k>>>0,J=J>>>0,!ve){const pt=Math.pow(2,8*J)-1;Ie(this,R,k,J,pt,0)}let Ae=J-1,Ge=1;for(this[k+Ae]=R&255;--Ae>=0&&(Ge*=256);)this[k+Ae]=R/Ge&255;return k+J},_.prototype.writeUint8=_.prototype.writeUInt8=function(R,k,J){return R=+R,k=k>>>0,J||Ie(this,R,k,1,255,0),this[k]=R&255,k+1},_.prototype.writeUint16LE=_.prototype.writeUInt16LE=function(R,k,J){return R=+R,k=k>>>0,J||Ie(this,R,k,2,65535,0),this[k]=R&255,this[k+1]=R>>>8,k+2},_.prototype.writeUint16BE=_.prototype.writeUInt16BE=function(R,k,J){return R=+R,k=k>>>0,J||Ie(this,R,k,2,65535,0),this[k]=R>>>8,this[k+1]=R&255,k+2},_.prototype.writeUint32LE=_.prototype.writeUInt32LE=function(R,k,J){return R=+R,k=k>>>0,J||Ie(this,R,k,4,4294967295,0),this[k+3]=R>>>24,this[k+2]=R>>>16,this[k+1]=R>>>8,this[k]=R&255,k+4},_.prototype.writeUint32BE=_.prototype.writeUInt32BE=function(R,k,J){return R=+R,k=k>>>0,J||Ie(this,R,k,4,4294967295,0),this[k]=R>>>24,this[k+1]=R>>>16,this[k+2]=R>>>8,this[k+3]=R&255,k+4};function at(Y,R,k,J,ve){Kn(R,J,ve,Y,k,7);let Ae=Number(R&BigInt(4294967295));Y[k++]=Ae,Ae=Ae>>8,Y[k++]=Ae,Ae=Ae>>8,Y[k++]=Ae,Ae=Ae>>8,Y[k++]=Ae;let Ge=Number(R>>BigInt(32)&BigInt(4294967295));return Y[k++]=Ge,Ge=Ge>>8,Y[k++]=Ge,Ge=Ge>>8,Y[k++]=Ge,Ge=Ge>>8,Y[k++]=Ge,k}function st(Y,R,k,J,ve){Kn(R,J,ve,Y,k,7);let Ae=Number(R&BigInt(4294967295));Y[k+7]=Ae,Ae=Ae>>8,Y[k+6]=Ae,Ae=Ae>>8,Y[k+5]=Ae,Ae=Ae>>8,Y[k+4]=Ae;let Ge=Number(R>>BigInt(32)&BigInt(4294967295));return Y[k+3]=Ge,Ge=Ge>>8,Y[k+2]=Ge,Ge=Ge>>8,Y[k+1]=Ge,Ge=Ge>>8,Y[k]=Ge,k+8}_.prototype.writeBigUInt64LE=ji(function(R,k=0){return at(this,R,k,BigInt(0),BigInt("0xffffffffffffffff"))}),_.prototype.writeBigUInt64BE=ji(function(R,k=0){return st(this,R,k,BigInt(0),BigInt("0xffffffffffffffff"))}),_.prototype.writeIntLE=function(R,k,J,ve){if(R=+R,k=k>>>0,!ve){const I=Math.pow(2,8*J-1);Ie(this,R,k,J,I-1,-I)}let Ae=0,Ge=1,pt=0;for(this[k]=R&255;++Ae<J&&(Ge*=256);)R<0&&pt===0&&this[k+Ae-1]!==0&&(pt=1),this[k+Ae]=(R/Ge>>0)-pt&255;return k+J},_.prototype.writeIntBE=function(R,k,J,ve){if(R=+R,k=k>>>0,!ve){const I=Math.pow(2,8*J-1);Ie(this,R,k,J,I-1,-I)}let Ae=J-1,Ge=1,pt=0;for(this[k+Ae]=R&255;--Ae>=0&&(Ge*=256);)R<0&&pt===0&&this[k+Ae+1]!==0&&(pt=1),this[k+Ae]=(R/Ge>>0)-pt&255;return k+J},_.prototype.writeInt8=function(R,k,J){return R=+R,k=k>>>0,J||Ie(this,R,k,1,127,-128),R<0&&(R=255+R+1),this[k]=R&255,k+1},_.prototype.writeInt16LE=function(R,k,J){return R=+R,k=k>>>0,J||Ie(this,R,k,2,32767,-32768),this[k]=R&255,this[k+1]=R>>>8,k+2},_.prototype.writeInt16BE=function(R,k,J){return R=+R,k=k>>>0,J||Ie(this,R,k,2,32767,-32768),this[k]=R>>>8,this[k+1]=R&255,k+2},_.prototype.writeInt32LE=function(R,k,J){return R=+R,k=k>>>0,J||Ie(this,R,k,4,2147483647,-2147483648),this[k]=R&255,this[k+1]=R>>>8,this[k+2]=R>>>16,this[k+3]=R>>>24,k+4},_.prototype.writeInt32BE=function(R,k,J){return R=+R,k=k>>>0,J||Ie(this,R,k,4,2147483647,-2147483648),R<0&&(R=4294967295+R+1),this[k]=R>>>24,this[k+1]=R>>>16,this[k+2]=R>>>8,this[k+3]=R&255,k+4},_.prototype.writeBigInt64LE=ji(function(R,k=0){return at(this,R,k,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),_.prototype.writeBigInt64BE=ji(function(R,k=0){return st(this,R,k,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function At(Y,R,k,J,ve,Ae){if(k+J>Y.length)throw new RangeError("Index out of range");if(k<0)throw new RangeError("Index out of range")}function Jt(Y,R,k,J,ve){return R=+R,k=k>>>0,ve||At(Y,R,k,4),s.write(Y,R,k,J,23,4),k+4}_.prototype.writeFloatLE=function(R,k,J){return Jt(this,R,k,!0,J)},_.prototype.writeFloatBE=function(R,k,J){return Jt(this,R,k,!1,J)};function ht(Y,R,k,J,ve){return R=+R,k=k>>>0,ve||At(Y,R,k,8),s.write(Y,R,k,J,52,8),k+8}_.prototype.writeDoubleLE=function(R,k,J){return ht(this,R,k,!0,J)},_.prototype.writeDoubleBE=function(R,k,J){return ht(this,R,k,!1,J)},_.prototype.copy=function(R,k,J,ve){if(!_.isBuffer(R))throw new TypeError("argument should be a Buffer");if(J||(J=0),!ve&&ve!==0&&(ve=this.length),k>=R.length&&(k=R.length),k||(k=0),ve>0&&ve<J&&(ve=J),ve===J||R.length===0||this.length===0)return 0;if(k<0)throw new RangeError("targetStart out of bounds");if(J<0||J>=this.length)throw new RangeError("Index out of range");if(ve<0)throw new RangeError("sourceEnd out of bounds");ve>this.length&&(ve=this.length),R.length-k<ve-J&&(ve=R.length-k+J);const Ae=ve-J;return this===R&&typeof m.prototype.copyWithin=="function"?this.copyWithin(k,J,ve):m.prototype.set.call(R,this.subarray(J,ve),k),Ae},_.prototype.fill=function(R,k,J,ve){if(typeof R=="string"){if(typeof k=="string"?(ve=k,k=0,J=this.length):typeof J=="string"&&(ve=J,J=this.length),ve!==void 0&&typeof ve!="string")throw new TypeError("encoding must be a string");if(typeof ve=="string"&&!_.isEncoding(ve))throw new TypeError("Unknown encoding: "+ve);if(R.length===1){const Ge=R.charCodeAt(0);(ve==="utf8"&&Ge<128||ve==="latin1")&&(R=Ge)}}else typeof R=="number"?R=R&255:typeof R=="boolean"&&(R=Number(R));if(k<0||this.length<k||this.length<J)throw new RangeError("Out of range index");if(J<=k)return this;k=k>>>0,J=J===void 0?this.length:J>>>0,R||(R=0);let Ae;if(typeof R=="number")for(Ae=k;Ae<J;++Ae)this[Ae]=R;else{const Ge=_.isBuffer(R)?R:_.from(R,ve),pt=Ge.length;if(pt===0)throw new TypeError('The value "'+R+'" is invalid for argument "value"');for(Ae=0;Ae<J-k;++Ae)this[Ae+k]=Ge[Ae%pt]}return this};const En={};function tt(Y,R,k){En[Y]=class extends k{constructor(){super(),Object.defineProperty(this,"message",{value:R.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${Y}]`,this.stack,delete this.name}get code(){return Y}set code(ve){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:ve,writable:!0})}toString(){return`${this.name} [${Y}]: ${this.message}`}}}tt("ERR_BUFFER_OUT_OF_BOUNDS",function(Y){return Y?`${Y} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),tt("ERR_INVALID_ARG_TYPE",function(Y,R){return`The "${Y}" argument must be of type number. Received type ${typeof R}`},TypeError),tt("ERR_OUT_OF_RANGE",function(Y,R,k){let J=`The value of "${Y}" is out of range.`,ve=k;return Number.isInteger(k)&&Math.abs(k)>2**32?ve=Sr(String(k)):typeof k=="bigint"&&(ve=String(k),(k>BigInt(2)**BigInt(32)||k<-(BigInt(2)**BigInt(32)))&&(ve=Sr(ve)),ve+="n"),J+=` It must be ${R}. Received ${ve}`,J},RangeError);function Sr(Y){let R="",k=Y.length;const J=Y[0]==="-"?1:0;for(;k>=J+4;k-=3)R=`_${Y.slice(k-3,k)}${R}`;return`${Y.slice(0,k)}${R}`}function Ml(Y,R,k){Ai(R,"offset"),(Y[R]===void 0||Y[R+k]===void 0)&&Dt(R,Y.length-(k+1))}function Kn(Y,R,k,J,ve,Ae){if(Y>k||Y<R){const Ge=typeof R=="bigint"?"n":"";let pt;throw Ae>3?R===0||R===BigInt(0)?pt=`>= 0${Ge} and < 2${Ge} ** ${(Ae+1)*8}${Ge}`:pt=`>= -(2${Ge} ** ${(Ae+1)*8-1}${Ge}) and < 2 ** ${(Ae+1)*8-1}${Ge}`:pt=`>= ${R}${Ge} and <= ${k}${Ge}`,new En.ERR_OUT_OF_RANGE("value",pt,Y)}Ml(J,ve,Ae)}function Ai(Y,R){if(typeof Y!="number")throw new En.ERR_INVALID_ARG_TYPE(R,"number",Y)}function Dt(Y,R,k){throw Math.floor(Y)!==Y?(Ai(Y,k),new En.ERR_OUT_OF_RANGE(k||"offset","an integer",Y)):R<0?new En.ERR_BUFFER_OUT_OF_BOUNDS:new En.ERR_OUT_OF_RANGE(k||"offset",`>= ${k?1:0} and <= ${R}`,Y)}const qa=/[^+/0-9A-Za-z-_]/g;function ho(Y){if(Y=Y.split("=")[0],Y=Y.trim().replace(qa,""),Y.length<2)return"";for(;Y.length%4!==0;)Y=Y+"=";return Y}function kt(Y,R){R=R||1/0;let k;const J=Y.length;let ve=null;const Ae=[];for(let Ge=0;Ge<J;++Ge){if(k=Y.charCodeAt(Ge),k>55295&&k<57344){if(!ve){if(k>56319){(R-=3)>-1&&Ae.push(239,191,189);continue}else if(Ge+1===J){(R-=3)>-1&&Ae.push(239,191,189);continue}ve=k;continue}if(k<56320){(R-=3)>-1&&Ae.push(239,191,189),ve=k;continue}k=(ve-55296<<10|k-56320)+65536}else ve&&(R-=3)>-1&&Ae.push(239,191,189);if(ve=null,k<128){if((R-=1)<0)break;Ae.push(k)}else if(k<2048){if((R-=2)<0)break;Ae.push(k>>6|192,k&63|128)}else if(k<65536){if((R-=3)<0)break;Ae.push(k>>12|224,k>>6&63|128,k&63|128)}else if(k<1114112){if((R-=4)<0)break;Ae.push(k>>18|240,k>>12&63|128,k>>6&63|128,k&63|128)}else throw new Error("Invalid code point")}return Ae}function nn(Y){const R=[];for(let k=0;k<Y.length;++k)R.push(Y.charCodeAt(k)&255);return R}function fa(Y,R){let k,J,ve;const Ae=[];for(let Ge=0;Ge<Y.length&&!((R-=2)<0);++Ge)k=Y.charCodeAt(Ge),J=k>>8,ve=k%256,Ae.push(ve),Ae.push(J);return Ae}function La(Y){return a.toByteArray(ho(Y))}function lr(Y,R,k,J){let ve;for(ve=0;ve<J&&!(ve+k>=R.length||ve>=Y.length);++ve)R[ve+k]=Y[ve];return ve}function Cn(Y,R){return Y instanceof R||Y!=null&&Y.constructor!=null&&Y.constructor.name!=null&&Y.constructor.name===R.name}function Rl(Y){return Y!==Y}const Po=(function(){const Y="0123456789abcdef",R=new Array(256);for(let k=0;k<16;++k){const J=k*16;for(let ve=0;ve<16;++ve)R[J+ve]=Y[k]+Y[ve]}return R})();function ji(Y){return typeof BigInt>"u"?ha:Y}function ha(){throw new Error("BigInt not supported")}})(rr);var UR=rr.Buffer,BR=rr.Blob,HR=rr.BlobOptions,mO=rr.Buffer,IR=rr.File,qR=rr.FileOptions,GR=rr.INSPECT_MAX_BYTES,jR=rr.SlowBuffer,YR=rr.TranscodeEncoding,VR=rr.atob,$R=rr.btoa,XR=rr.constants,QR=rr.isAscii,PR=rr.isUtf8,ZR=rr.kMaxLength,JR=rr.kStringMaxLength,KR=rr.resolveObjectURL,FR=rr.transcode,Lm="http://www.w3.org/1999/02/22-rdf-syntax-ns#",n1="http://www.w3.org/2001/XMLSchema#",qb="http://www.w3.org/2000/10/swap/",hs={xsd:{decimal:`${n1}decimal`,boolean:`${n1}boolean`,double:`${n1}double`,integer:`${n1}integer`,string:`${n1}string`},rdf:{type:`${Lm}type`,nil:`${Lm}nil`,first:`${Lm}first`,rest:`${Lm}rest`,langString:`${Lm}langString`,dirLangString:`${Lm}dirLangString`,reifies:`${Lm}reifies`},owl:{sameAs:"http://www.w3.org/2002/07/owl#sameAs"},r:{forSome:`${qb}reify#forSome`,forAll:`${qb}reify#forAll`},log:{implies:`${qb}log#implies`,isImpliedBy:`${qb}log#isImpliedBy`}},{xsd:Gb}=hs,yO=/\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{8})|\\([^])/g,WT={"\\":"\\","'":"'",'"':'"',n:`
`,r:"\r",t:"	",f:"\f",b:"\b",_:"_","~":"~",".":".","-":"-","!":"!",$:"$","&":"&","(":"(",")":")","*":"*","+":"+",",":",",";":";","=":"=","/":"/","?":"?","#":"#","@":"@","%":"%"},vO=/[\x00-\x20<>\\"\{\}\|\^\`]/;function ew(i){return i>=55296&&i<=57343}var bO={_iri:!0,_unescapedIri:!0,_simpleQuotedString:!0,_langcode:!0,_dircode:!0,_blank:!0,_newline:!0,_comment:!0,_whitespace:!0,_endOfFile:!0},_O=/$0^/,EO=class{constructor(i){if(this._iri=/^<((?:[^ <>{}\\]|\\[uU])+)>[ \t]*/,this._unescapedIri=/^<([^\x00-\x20<>\\"\{\}\|\^\`]*)>[ \t]*/,this._simpleQuotedString=/^"([^"\\\r\n]*)"(?=[^"])/,this._simpleApostropheString=/^'([^'\\\r\n]*)'(?=[^'])/,this._langcode=/^@([a-z]+(?:-[a-z0-9]+)*)(?=[^a-z0-9])/i,this._dircode=/^--(ltr)|(rtl)/,this._prefix=/^((?:[A-Za-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])(?:\.?[\-0-9A-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])*)?:(?=[#\s<])/,this._prefixed=/^((?:[A-Za-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])(?:\.?[\-0-9A-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])*)?:((?:(?:[0-: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]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])(?:(?:[\.\-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]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])*(?:[\-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]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~]))?)?)(?:[ \t]+|(?=\.?[,;!\^\s#()\[\]\{\}"'<>]))/,this._variable=/^\?(?:(?:[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])(?:[\-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])*)(?=[.,;!\^\s#()\[\]\{\}"'<>])/,this._blank=/^_:((?:[0-9A-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])(?:\.?[\-0-9A-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])*)(?:[ \t]+|(?=\.?[,;:\s#()\[\]\{\}"'<>]))/,this._number=/^[\-+]?(?:(\d+\.\d*|\.?\d+)[eE][\-+]?|\d*(\.)?)\d+(?=\.?[,;:\s#()\[\]\{\}"'<>])/,this._boolean=/^(?:true|false)(?=[.,;\s#()\[\]\{\}"'<>])/,this._atKeyword=/^@[a-z]+(?=[\s#<:])/i,this._keyword=/^(?:PREFIX|BASE|VERSION|GRAPH)(?=[\s#<])/i,this._shortPredicates=/^a(?=[\s#()\[\]\{\}"'<>])/,this._newline=/^[ \t]*(?:#[^\n\r]*)?(?:\r\n|\n|\r)[ \t]*/,this._comment=/#([^\n\r]*)/,this._whitespace=/^[ \t]+/,this._endOfFile=/^(?:#[^\n\r]*)?$/,i=i||{},this._isImpliedBy=i.isImpliedBy,this._lineMode=!!i.lineMode){this._n3Mode=!1;for(const a in this)!(a in bO)&&this[a]instanceof RegExp&&(this[a]=_O)}else this._n3Mode=i.n3!==!1;this.comments=!!i.comments,this._literalClosingPos=0}_tokenizeToEnd(i,a){let s=this._input,f=s.length;for(;;){let v,w;for(;v=this._newline.exec(s);)this.comments&&(w=this._comment.exec(v[0]))&&h("comment",w[1],"",this._line,v[0].length),s=s.substr(v[0].length,s.length),f=s.length,this._line++;if(!v&&(v=this._whitespace.exec(s))&&(s=s.substr(v[0].length,s.length)),this._endOfFile.test(s))return a&&(this.comments&&(w=this._comment.exec(s))&&h("comment",w[1],"",this._line,s.length),s=null,h("eof","","",this._line,0)),this._input=s;const E=this._line,S=s[0];let _="",L="",x="",D=null,B=0,G=!1;switch(S){case"^":if(s.length<3)break;if(s[1]==="^"){if(this._previousMarker="^^",s=s.substr(2),s[0]!=="<"){G=!0;break}}else{this._n3Mode&&(B=1,_="^");break}case"<":if(D=this._unescapedIri.exec(s))_="IRI",L=D[1];else if(D=this._iri.exec(s)){if(L=this._unescape(D[1]),L===null||vO.test(L))return m(this);_="IRI"}else s.length>2&&s[1]==="<"&&s[2]==="("?(_="<<(",B=3):!this._lineMode&&s.length>(a?1:2)&&s[1]==="<"?(_="<<",B=2):this._n3Mode&&s.length>1&&s[1]==="="&&(B=2,this._isImpliedBy?(_="abbreviation",L="<"):(_="inverse",L=">"));break;case">":s.length>1&&s[1]===">"&&(_=">>",B=2);break;case"_":((D=this._blank.exec(s))||a&&(D=this._blank.exec(`${s} `)))&&(_="blank",x="_",L=D[1]);break;case'"':if(D=this._simpleQuotedString.exec(s))L=D[1];else if({value:L,matchLength:B}=this._parseLiteral(s),L===null)return m(this);(D!==null||B!==0)&&(_="literal",this._literalClosingPos=0);break;case"'":if(!this._lineMode){if(D=this._simpleApostropheString.exec(s))L=D[1];else if({value:L,matchLength:B}=this._parseLiteral(s),L===null)return m(this);(D!==null||B!==0)&&(_="literal",this._literalClosingPos=0)}break;case"?":this._n3Mode&&(D=this._variable.exec(s))&&(_="var",L=D[0]);break;case"@":this._previousMarker==="literal"&&(D=this._langcode.exec(s))&&D[1]!=="version"?(_="langcode",L=D[1]):(D=this._atKeyword.exec(s))&&(_=D[0]);break;case".":if(s.length===1?a:s[1]<"0"||s[1]>"9"){_=".",B=1;break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"+":case"-":if(s[1]==="-"){this._previousMarker==="langcode"&&(D=this._dircode.exec(s))&&(_="dircode",B=2,L=D[1]||D[2],B=L.length+2);break}(D=this._number.exec(s)||a&&(D=this._number.exec(`${s} `)))&&(_="literal",L=D[0],x=typeof D[1]=="string"?Gb.double:typeof D[2]=="string"?Gb.decimal:Gb.integer);break;case"B":case"b":case"p":case"P":case"G":case"g":case"V":case"v":(D=this._keyword.exec(s))?_=D[0].toUpperCase():G=!0;break;case"f":case"t":(D=this._boolean.exec(s))?(_="literal",L=D[0],x=Gb.boolean):G=!0;break;case"a":(D=this._shortPredicates.exec(s))?(_="abbreviation",L="a"):G=!0;break;case"=":this._n3Mode&&s.length>1&&(_="abbreviation",s[1]!==">"?(B=1,L="="):(B=2,L=">"));break;case"!":if(!this._n3Mode)break;case")":if(!a&&(s.length===1||s.length===2&&s[1]===">"))break;if(s.length>2&&s[1]===">"&&s[2]===">"){_=")>>",B=3;break}case",":case";":case"[":case"]":case"(":case"}":case"~":this._lineMode||(B=1,_=S);break;case"{":!this._lineMode&&s.length>=2&&(s[1]==="|"?(_="{|",B=2):(_=S,B=1));break;case"|":s.length>=2&&s[1]==="}"&&(_="|}",B=2);break;default:G=!0}if(G&&((this._previousMarker==="@prefix"||this._previousMarker==="PREFIX")&&(D=this._prefix.exec(s))?(_="prefix",L=D[1]||""):((D=this._prefixed.exec(s))||a&&(D=this._prefixed.exec(`${s} `)))&&(_="prefixed",x=D[1]||"",L=this._unescape(D[2]))),this._previousMarker==="^^")switch(_){case"prefixed":_="type";break;case"IRI":_="typeIRI";break;default:_=""}if(!_)return a||!/^'''|^"""/.test(s)&&/\n|\r/.test(s)?m(this):this._input=s;const P=B||D[0].length,te=h(_,L,x,E,P);this.previousToken=te,this._previousMarker=_,s=s.substr(P,s.length)}function h(v,w,E,S,_){const L=s?f-s.length:f,x={type:v,value:w,prefix:E,line:S,start:L,end:L+_};return i(null,x),x}function m(v){i(v._syntaxError(/^\S*/.exec(s)[0]))}}_unescape(i){let a=!1;const s=i.replace(yO,(f,h,m,v)=>{if(typeof h=="string"){const w=Number.parseInt(h,16);return ew(w)?(a=!0,""):String.fromCharCode(w)}if(typeof m=="string"){let w=Number.parseInt(m,16);return ew(w)?(a=!0,""):w<=65535?String.fromCharCode(Number.parseInt(m,16)):String.fromCharCode(55296+((w-=65536)>>10),56320+(w&1023))}return v in WT?WT[v]:(a=!0,"")});return a?null:s}_parseLiteral(i){if(i.length>=3){const a=i.match(/^(?:"""|"|'''|'|)/)[0],s=a.length;let f=Math.max(this._literalClosingPos,s);for(;(f=i.indexOf(a,f))>0;){let h=0;for(;i[f-h-1]==="\\";)h++;if(h%2===0){const m=i.substring(s,f),v=m.split(/\r\n|\r|\n/).length-1,w=f+s;if(s===1&&v!==0||s===3&&this._lineMode)break;return this._line+=v,{value:this._unescape(m),matchLength:w}}f++}this._literalClosingPos=i.length-s+1}return{value:"",matchLength:0}}_syntaxError(i){this._input=null;const a=new Error(`Unexpected "${i}" on line ${this._line}.`);return a.context={token:void 0,line:this._line,previousToken:this.previousToken},a}_readStartingBom(i){return i.startsWith("\uFEFF")?i.substr(1):i}tokenize(i,a){if(this._line=1,typeof i=="string")if(this._input=this._readStartingBom(i),typeof a=="function")queueMicrotask(()=>this._tokenizeToEnd(a,!0));else{const s=[];let f;if(this._tokenizeToEnd((h,m)=>h?f=h:s.push(m),!0),f)throw f;return s}else this._pendingBuffer=null,typeof i.setEncoding=="function"&&i.setEncoding("utf8"),i.on("data",s=>{this._input!==null&&s.length!==0&&(this._pendingBuffer&&(s=mO.concat([this._pendingBuffer,s]),this._pendingBuffer=null),s[s.length-1]&128?this._pendingBuffer=s:(typeof this._input>"u"?this._input=this._readStartingBom(typeof s=="string"?s:s.toString()):this._input+=s,this._tokenizeToEnd(a,!1)))}),i.on("end",()=>{typeof this._input=="string"&&this._tokenizeToEnd(a,!0)}),i.on("error",a)}},{rdf:tw,xsd:N0}=hs,i1,SO=0,TO={namedNode:aw,blankNode:rw,variable:sw,literal:lw,defaultGraph:xO,quad:kE,triple:kE,fromTerm:a1,fromQuad:ow},Om=class Sx{constructor(a){this.id=a}get value(){return this.id}equals(a){return a instanceof Sx?this.id===a.id:!!a&&this.termType===a.termType&&this.value===a.value}hashCode(){return 0}toJSON(){return{termType:this.termType,value:this.value}}},nw=class extends Om{get termType(){return"NamedNode"}},jb=class Tx extends Om{get termType(){return"Literal"}get value(){return this.id.substring(1,this.id.lastIndexOf('"'))}get language(){const a=this.id;let s=a.lastIndexOf('"')+1;const f=a.lastIndexOf("--");return s<a.length&&a[s++]==="@"?(f>s?a.substr(0,f):a).substr(s).toLowerCase():""}get direction(){const a=this.id,s=a.lastIndexOf('"'),f=a.lastIndexOf("--");return f>s&&f+2<a.length?a.substr(f+2).toLowerCase():""}get datatype(){return new nw(this.datatypeString)}get datatypeString(){const a=this.id,s=a.lastIndexOf('"')+1,f=s<a.length?a[s]:"";return f==="^"?a.substr(s+2):f!=="@"?N0.string:a.indexOf("--",s)>0?tw.dirLangString:tw.langString}equals(a){return a instanceof Tx?this.id===a.id:!!a&&!!a.datatype&&this.termType===a.termType&&this.value===a.value&&this.language===a.language&&(this.direction===a.direction||this.direction===""&&!a.direction)&&this.datatype.value===a.datatype.value}toJSON(){return{termType:this.termType,value:this.value,language:this.language,direction:this.direction,datatype:{termType:"NamedNode",value:this.datatypeString}}}},wO=class extends Om{constructor(i){super(`_:${i}`)}get termType(){return"BlankNode"}get value(){return this.id.substr(2)}},AO=class extends Om{constructor(i){super(`?${i}`)}get termType(){return"Variable"}get value(){return this.id.substr(1)}},CO=class extends Om{constructor(){return super(""),i1||this}get termType(){return"DefaultGraph"}equals(i){return this===i||!!i&&this.termType===i.termType}};i1=new CO;var iw=class extends Om{constructor(i,a,s,f){super(""),this._subject=i,this._predicate=a,this._object=s,this._graph=f||i1}get termType(){return"Quad"}get subject(){return this._subject}get predicate(){return this._predicate}get object(){return this._object}get graph(){return this._graph}toJSON(){return{termType:this.termType,subject:this._subject.toJSON(),predicate:this._predicate.toJSON(),object:this._object.toJSON(),graph:this._graph.toJSON()}}equals(i){return!!i&&this._subject.equals(i.subject)&&this._predicate.equals(i.predicate)&&this._object.equals(i.object)&&this._graph.equals(i.graph)}};function aw(i){return new nw(i)}function rw(i){return new wO(i||`n3-${SO++}`)}function lw(i,a){if(typeof a=="string")return new jb(`"${i}"@${a.toLowerCase()}`);if(a!==void 0&&!("termType"in a))return new jb(`"${i}"@${a.language.toLowerCase()}${a.direction?`--${a.direction.toLowerCase()}`:""}`);let s=a?a.value:"";return s===""&&(typeof i=="boolean"?s=N0.boolean:typeof i=="number"&&(Number.isFinite(i)?s=Number.isInteger(i)?N0.integer:N0.double:(s=N0.double,Number.isNaN(i)||(i=i>0?"INF":"-INF")))),s===""||s===N0.string?new jb(`"${i}"`):new jb(`"${i}"^^${s}`)}function sw(i){return new AO(i)}function xO(){return i1}function kE(i,a,s,f){return new iw(i,a,s,f)}function a1(i){if(i instanceof Om)return i;switch(i.termType){case"NamedNode":return aw(i.value);case"BlankNode":return rw(i.value);case"Variable":return sw(i.value);case"DefaultGraph":return i1;case"Literal":return lw(i.value,i.language||i.datatype);case"Quad":return ow(i);default:throw new Error(`Unexpected termType: ${i.termType}`)}}function ow(i){if(i instanceof iw)return i;if(i.termType!=="Quad")throw new Error(`Unexpected termType: ${i.termType}`);return kE(a1(i.subject),a1(i.predicate),a1(i.object),a1(i.graph))}var uw=0,zE=class wx{constructor(a){this._contextStack=[],this._graph=null,a=a||{},this._setBase(a.baseIRI),a.factory&&cw(this,a.factory);const s=typeof a.format=="string"?a.format.match(/\w*$/)[0].toLowerCase():"",f=/turtle/.test(s),h=/trig/.test(s),m=/triple/.test(s),v=/quad/.test(s),w=this._n3Mode=/n3/.test(s),E=m||v;(this._supportsNamedGraphs=!(f||w))||(this._readPredicateOrNamedGraph=this._readPredicate),this._supportsQuads=!(f||h||m||w),this._isImpliedBy=a.isImpliedBy,E&&(this._resolveRelativeIRI=S=>null),this._blankNodePrefix=typeof a.blankNodePrefix!="string"?"":a.blankNodePrefix.replace(/^(?!_:)/,"_:"),this._lexer=a.lexer||new EO({lineMode:E,n3:w,isImpliedBy:this._isImpliedBy}),this._explicitQuantifiers=!!a.explicitQuantifiers,this._parseUnsupportedVersions=!!a.parseUnsupportedVersions,this._version=a.version}static _resetBlankNodePrefix(){uw=0}_setBase(a){if(!a)this._base="",this._basePath="";else{const s=a.indexOf("#");s>=0&&(a=a.substr(0,s)),this._base=a,this._basePath=a.indexOf("/")<0?a:a.replace(/[^\/?]*(?:\?.*)?$/,""),a=a.match(/^(?:([a-z][a-z0-9+.-]*:))?(?:\/\/[^\/]*)?/i),this._baseRoot=a[0],this._baseScheme=a[1]}}_saveContext(a,s,f,h,m){const v=this._n3Mode;this._contextStack.push({type:a,subject:f,predicate:h,object:m,graph:s,inverse:v?this._inversePredicate:!1,blankPrefix:v?this._prefixes._:"",quantified:v?this._quantified:null}),v&&(this._inversePredicate=!1,this._prefixes._=this._graph?`${this._graph.value}.`:".",this._quantified=Object.create(this._quantified))}_restoreContext(a,s){const f=this._contextStack.pop();if(!f||f.type!==a)return this._error(`Unexpected ${s.type}`,s);this._subject=f.subject,this._predicate=f.predicate,this._object=f.object,this._graph=f.graph,this._n3Mode&&(this._inversePredicate=f.inverse,this._prefixes._=f.blankPrefix,this._quantified=f.quantified)}_readBeforeTopContext(a){return this._version&&!this._isValidVersion(this._version)?this._error(`Detected unsupported version as media type parameter: "${this._version}"`,a):this._readInTopContext(a)}_readInTopContext(a){switch(a.type){case"eof":return this._graph!==null?this._error("Unclosed graph",a):(delete this._prefixes._,this._callback(null,null,this._prefixes));case"PREFIX":this._sparqlStyle=!0;case"@prefix":return this._readPrefix;case"BASE":this._sparqlStyle=!0;case"@base":return this._readBaseIRI;case"VERSION":this._sparqlStyle=!0;case"@version":return this._readVersion;case"{":if(this._supportsNamedGraphs)return this._graph="",this._subject=null,this._readSubject;case"GRAPH":if(this._supportsNamedGraphs)return this._readNamedGraphLabel;default:return this._readSubject(a)}}_readEntity(a,s){let f;switch(a.type){case"IRI":case"typeIRI":const h=this._resolveIRI(a.value);if(h===null)return this._error("Invalid IRI",a);f=this._factory.namedNode(h);break;case"type":case"prefixed":const m=this._prefixes[a.prefix];if(m===void 0)return this._error(`Undefined prefix "${a.prefix}:"`,a);f=this._factory.namedNode(m+a.value);break;case"blank":f=this._factory.blankNode(this._prefixes[a.prefix]+a.value);break;case"var":f=this._factory.variable(a.value.substr(1));break;default:return this._error(`Expected entity but got ${a.type}`,a)}return!s&&this._n3Mode&&f.id in this._quantified&&(f=this._quantified[f.id]),f}_readSubject(a){switch(this._predicate=null,a.type){case"[":return this._saveContext("blank",this._graph,this._subject=this._factory.blankNode(),null,null),this._readBlankNodeHead;case"(":const s=this._contextStack;return(s.length&&s[s.length-1]).type==="<<"?this._error("Unexpected list in reified triple",a):(this._saveContext("list",this._graph,this.RDF_NIL,null,null),this._subject=null,this._readListItem);case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._graph=this._factory.blankNode(),null,null),this._readSubject):this._error("Unexpected graph",a);case"}":return this._readPunctuation(a);case"@forSome":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORSOME,this._quantifier="blankNode",this._readQuantifierList):this._error('Unexpected "@forSome"',a);case"@forAll":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORALL,this._quantifier="variable",this._readQuantifierList):this._error('Unexpected "@forAll"',a);case"literal":if(!this._n3Mode)return this._error("Unexpected literal",a);if(a.prefix.length===0)return this._literalValue=a.value,this._completeSubjectLiteral;this._subject=this._factory.literal(a.value,this._factory.namedNode(a.prefix));break;case"<<(":return this._n3Mode?(this._saveContext("<<(",this._graph,null,null,null),this._graph=null,this._readSubject):this._error("Disallowed triple term as subject",a);case"<<":return this._saveContext("<<",this._graph,null,null,null),this._graph=null,this._readSubject;default:if((this._subject=this._readEntity(a))===void 0)return;if(this._n3Mode)return this._getPathReader(this._readPredicateOrNamedGraph)}return this._readPredicateOrNamedGraph}_readPredicate(a){const s=a.type;switch(s){case"inverse":this._inversePredicate=!0;case"abbreviation":this._predicate=this.ABBREVIATIONS[a.value];break;case".":case"]":case"}":case"|}":return this._predicate===null?this._error(`Unexpected ${s}`,a):(this._subject=null,s==="]"?this._readBlankNodeTail(a):this._readPunctuation(a));case";":return this._predicate!==null?this._readPredicate:this._error("Expected predicate but got ;",a);case"[":if(this._n3Mode)return this._saveContext("blank",this._graph,this._subject,this._subject=this._factory.blankNode(),null),this._readBlankNodeHead;case"blank":if(!this._n3Mode)return this._error("Disallowed blank node as predicate",a);default:if((this._predicate=this._readEntity(a))===void 0)return}return this._validAnnotation=!0,this._readObject}_readObject(a){switch(a.type){case"literal":if(a.prefix.length===0)return this._literalValue=a.value,this._readDataTypeOrLang;this._object=this._factory.literal(a.value,this._factory.namedNode(a.prefix));break;case"[":return this._saveContext("blank",this._graph,this._subject,this._predicate,this._subject=this._factory.blankNode()),this._readBlankNodeHead;case"(":const s=this._contextStack;return(s.length&&s[s.length-1]).type==="<<"?this._error("Unexpected list in reified triple",a):(this._saveContext("list",this._graph,this._subject,this._predicate,this.RDF_NIL),this._subject=null,this._readListItem);case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph=this._factory.blankNode()),this._readSubject):this._error("Unexpected graph",a);case"<<(":return this._saveContext("<<(",this._graph,this._subject,this._predicate,null),this._graph=null,this._readSubject;case"<<":return this._saveContext("<<",this._graph,this._subject,this._predicate,null),this._graph=null,this._readSubject;default:if((this._object=this._readEntity(a))===void 0)return;if(this._n3Mode)return this._getPathReader(this._getContextEndReader())}return this._getContextEndReader()}_readPredicateOrNamedGraph(a){return a.type==="{"?this._readGraph(a):this._readPredicate(a)}_readGraph(a){return a.type!=="{"?this._error(`Expected graph but got ${a.type}`,a):(this._graph=this._subject,this._subject=null,this._readSubject)}_readBlankNodeHead(a){if(a.type==="]")return this._subject=null,this._readBlankNodeTail(a);{const s=this._contextStack;return(s.length>1&&s[s.length-2]).type==="<<"?this._error("Unexpected compound blank node expression in reified triple",a):(this._predicate=null,this._readPredicate(a))}}_readBlankNodeTail(a){if(a.type!=="]")return this._readBlankNodePunctuation(a);this._subject!==null&&this._emit(this._subject,this._predicate,this._object,this._graph);const s=this._predicate===null;return this._restoreContext("blank",a),this._object!==null?this._getContextEndReader():this._predicate!==null?this._readObject:s?this._readPredicateOrNamedGraph:this._readPredicateAfterBlank}_readPredicateAfterBlank(a){switch(a.type){case".":case"}":return this._subject=null,this._readPunctuation(a);default:return this._readPredicate(a)}}_readListItem(a){let s=null,f=null,h=this._readListItem;const m=this._subject,v=this._contextStack,w=v[v.length-1];switch(a.type){case"[":this._saveContext("blank",this._graph,f=this._factory.blankNode(),this.RDF_FIRST,this._subject=s=this._factory.blankNode()),h=this._readBlankNodeHead;break;case"(":this._saveContext("list",this._graph,f=this._factory.blankNode(),this.RDF_FIRST,this.RDF_NIL),this._subject=null;break;case")":if(this._restoreContext("list",a),v.length!==0&&v[v.length-1].type==="list"&&this._emit(this._subject,this._predicate,this._object,this._graph),this._predicate===null){if(h=this._readPredicate,this._subject===this.RDF_NIL)return h}else if(h=this._getContextEndReader(),this._object===this.RDF_NIL)return h;f=this.RDF_NIL;break;case"literal":a.prefix.length===0?(this._literalValue=a.value,h=this._readListItemDataTypeOrLang):(s=this._factory.literal(a.value,this._factory.namedNode(a.prefix)),h=this._getContextEndReader());break;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph=this._factory.blankNode()),this._readSubject):this._error("Unexpected graph",a);case"<<":this._saveContext("<<",this._graph,null,null,null),this._graph=null,h=this._readSubject;break;default:if((s=this._readEntity(a))===void 0)return}if(f===null&&(this._subject=f=this._factory.blankNode()),a.type==="<<"&&(v[v.length-1].subject=this._subject),m===null?w.predicate===null?w.subject=f:w.object=f:this._emit(m,this.RDF_REST,f,this._graph),s!==null){if(this._n3Mode&&(a.type==="IRI"||a.type==="prefixed"))return this._saveContext("item",this._graph,f,this.RDF_FIRST,s),this._subject=s,this._predicate=null,this._getPathReader(this._readListItem);this._emit(f,this.RDF_FIRST,s,this._graph)}return h}_readDataTypeOrLang(a){return this._completeObjectLiteral(a,!1)}_readListItemDataTypeOrLang(a){return this._completeObjectLiteral(a,!0)}_completeLiteral(a,s){let f=this._factory.literal(this._literalValue),h;switch(a.type){case"type":case"typeIRI":const m=this._readEntity(a);if(m===void 0)return;if(m.value===hs.rdf.langString||m.value===hs.rdf.dirLangString)return this._error("Detected illegal (directional) languaged-tagged string with explicit datatype",a);f=this._factory.literal(this._literalValue,m),a=null;break;case"langcode":if(a.value.split("-").some(v=>v.length>8))return this._error("Detected language tag with subtag longer than 8 characters",a);f=this._factory.literal(this._literalValue,a.value),this._literalLanguage=a.value,a=null,h=this._readDirCode.bind(this,s);break}return{token:a,literal:f,readCb:h}}_readDirCode(a,s,f){if(f.type==="dircode"){const h=this._factory.literal(this._literalValue,{language:this._literalLanguage,direction:f.value});a==="subject"?this._subject=h:this._object=h,this._literalLanguage=void 0,f=null}return a==="subject"?f===null?this._readPredicateOrNamedGraph:this._readPredicateOrNamedGraph(f):this._completeObjectLiteralPost(f,s)}_completeSubjectLiteral(a){const s=this._completeLiteral(a,"subject");return this._subject=s.literal,s.readCb?s.readCb.bind(this,!1):this._readPredicateOrNamedGraph}_completeObjectLiteral(a,s){const f=this._completeLiteral(a,"object");if(f)return this._object=f.literal,f.readCb?f.readCb.bind(this,s):this._completeObjectLiteralPost(f.token,s)}_completeObjectLiteralPost(a,s){return s&&this._emit(this._subject,this.RDF_FIRST,this._object,this._graph),a===null?this._getContextEndReader():(this._readCallback=this._getContextEndReader(),this._readCallback(a))}_readFormulaTail(a){return a.type!=="}"?this._readPunctuation(a):(this._subject!==null&&this._emit(this._subject,this._predicate,this._object,this._graph),this._restoreContext("formula",a),this._object===null?this._readPredicate:this._getContextEndReader())}_readPunctuation(a){let s,f=this._graph,h=!1;const m=this._subject,v=this._inversePredicate;switch(a.type){case"}":if(this._graph===null)return this._error("Unexpected graph closing",a);if(this._n3Mode)return this._readFormulaTail(a);this._graph=null;case".":this._subject=null,this._tripleTerm=null,s=this._contextStack.length?this._readSubject:this._readInTopContext,v&&(this._inversePredicate=!1);break;case";":s=this._readPredicate;break;case",":s=this._readObject;break;case"~":s=this._readReifierInAnnotation,h=!0;break;case"{|":this._subject=this._readTripleTerm(),this._validAnnotation=!1,h=!0,s=this._readPredicate;break;case"|}":if(!this._annotation)return this._error("Unexpected annotation syntax closing",a);if(!this._validAnnotation)return this._error("Annotation block can not be empty",a);this._subject=null,this._annotation=!1,s=this._readPunctuation;break;default:if(this._supportsQuads&&this._graph===null&&(f=this._readEntity(a))!==void 0){s=this._readQuadPunctuation;break}return this._error(`Expected punctuation to follow "${this._object.id}"`,a)}if(m!==null&&(!h||h&&!this._annotation)){const w=this._predicate,E=this._object;v?this._emit(E,w,m,f):this._emit(m,w,E,f)}return h&&(this._annotation=!0),s}_readBlankNodePunctuation(a){let s;switch(a.type){case";":s=this._readPredicate;break;case",":s=this._readObject;break;default:return this._error(`Expected punctuation to follow "${this._object.id}"`,a)}return this._emit(this._subject,this._predicate,this._object,this._graph),s}_readQuadPunctuation(a){return a.type!=="."?this._error("Expected dot to follow quad",a):this._readInTopContext}_readPrefix(a){return a.type!=="prefix"?this._error("Expected prefix to follow @prefix",a):(this._prefix=a.value,this._readPrefixIRI)}_readPrefixIRI(a){if(a.type!=="IRI")return this._error(`Expected IRI to follow prefix "${this._prefix}:"`,a);const s=this._readEntity(a);return this._prefixes[this._prefix]=s.value,this._prefixCallback(this._prefix,s),this._readDeclarationPunctuation}_readBaseIRI(a){const s=a.type==="IRI"&&this._resolveIRI(a.value);return s?(this._setBase(s),this._readDeclarationPunctuation):this._error("Expected valid IRI to follow base declaration",a)}_isValidVersion(a){return this._parseUnsupportedVersions||wx.SUPPORTED_VERSIONS.includes(a)}_readVersion(a){return a.type!=="literal"?this._error("Expected literal to follow version declaration",a):a.end-a.start!==a.value.length+2?this._error("Version declarations must use single quotes",a):(this._versionCallback(a.value),this._isValidVersion(a.value)?this._readDeclarationPunctuation:this._error(`Detected unsupported version: "${a.value}"`,a))}_readNamedGraphLabel(a){switch(a.type){case"IRI":case"blank":case"prefixed":return this._readSubject(a),this._readGraph;case"[":return this._readNamedGraphBlankLabel;default:return this._error("Invalid graph label",a)}}_readNamedGraphBlankLabel(a){return a.type!=="]"?this._error("Invalid graph label",a):(this._subject=this._factory.blankNode(),this._readGraph)}_readDeclarationPunctuation(a){return this._sparqlStyle?(this._sparqlStyle=!1,this._readInTopContext(a)):a.type!=="."?this._error("Expected declaration to end with a dot",a):this._readInTopContext}_readQuantifierList(a){let s;switch(a.type){case"IRI":case"prefixed":if((s=this._readEntity(a,!0))!==void 0)break;default:return this._error(`Unexpected ${a.type}`,a)}return this._explicitQuantifiers?(this._subject===null?this._emit(this._graph||this.DEFAULTGRAPH,this._predicate,this._subject=this._factory.blankNode(),this.QUANTIFIERS_GRAPH):this._emit(this._subject,this.RDF_REST,this._subject=this._factory.blankNode(),this.QUANTIFIERS_GRAPH),this._emit(this._subject,this.RDF_FIRST,s,this.QUANTIFIERS_GRAPH)):this._quantified[s.id]=this._factory[this._quantifier](this._factory.blankNode().value),this._readQuantifierPunctuation}_readQuantifierPunctuation(a){return a.type===","?this._readQuantifierList:(this._explicitQuantifiers&&(this._emit(this._subject,this.RDF_REST,this.RDF_NIL,this.QUANTIFIERS_GRAPH),this._subject=null),this._readCallback=this._getContextEndReader(),this._readCallback(a))}_getPathReader(a){return this._afterPath=a,this._readPath}_readPath(a){switch(a.type){case"!":return this._readForwardPath;case"^":return this._readBackwardPath;default:const s=this._contextStack,f=s.length&&s[s.length-1];if(f&&f.type==="item"){const h=this._subject;this._restoreContext("item",a),this._emit(this._subject,this.RDF_FIRST,h,this._graph)}return this._afterPath(a)}}_readForwardPath(a){let s,f;const h=this._factory.blankNode();if((f=this._readEntity(a))!==void 0)return this._predicate===null?(s=this._subject,this._subject=h):(s=this._object,this._object=h),this._emit(s,f,h,this._graph),this._readPath}_readBackwardPath(a){const s=this._factory.blankNode();let f,h;if((f=this._readEntity(a))!==void 0)return this._predicate===null?(h=this._subject,this._subject=s):(h=this._object,this._object=s),this._emit(s,f,h,this._graph),this._readPath}_readTripleTermTail(a){if(a.type!==")>>")return this._error(`Expected )>> but got ${a.type}`,a);const s=this._factory.quad(this._subject,this._predicate,this._object,this._graph||this.DEFAULTGRAPH);return this._restoreContext("<<(",a),this._subject===null?(this._subject=s,this._readPredicate):(this._object=s,this._getContextEndReader())}_readReifiedTripleTailOrReifier(a){return a.type==="~"?this._readReifier:this._readReifiedTripleTail(a)}_readReifiedTripleTail(a){if(a.type!==">>")return this._error(`Expected >> but got ${a.type}`,a);this._tripleTerm=null;const s=this._readTripleTerm();this._restoreContext("<<",a);const f=this._contextStack,h=f.length&&f[f.length-1];return h&&h.type==="list"?(this._emit(this._subject,this.RDF_FIRST,s,this._graph),this._getContextEndReader()):this._subject===null?(this._subject=s,this._readPredicateOrReifierTripleEnd):(this._object=s,this._getContextEndReader())}_readPredicateOrReifierTripleEnd(a){return a.type==="."?(this._subject=null,this._readPunctuation(a)):this._readPredicate(a)}_readReifier(a){return this._reifier=this._readEntity(a),this._readReifiedTripleTail}_readReifierInAnnotation(a){return a.type==="IRI"||a.type==="typeIRI"||a.type==="type"||a.type==="prefixed"||a.type==="blank"||a.type==="var"?(this._reifier=this._readEntity(a),this._readPunctuation):(this._readTripleTerm(),this._subject=null,this._readPunctuation(a))}_readTripleTerm(){const a=this._contextStack,s=a.length&&a[a.length-1],f=s?s.graph:void 0,h=this._reifier||this._factory.blankNode();return this._reifier=null,this._tripleTerm=this._tripleTerm||this._factory.quad(this._subject,this._predicate,this._object),this._emit(h,this.RDF_REIFIES,this._tripleTerm,f||this.DEFAULTGRAPH),h}_getContextEndReader(){const a=this._contextStack;if(!a.length)return this._readPunctuation;switch(a[a.length-1].type){case"blank":return this._readBlankNodeTail;case"list":return this._readListItem;case"formula":return this._readFormulaTail;case"<<(":return this._readTripleTermTail;case"<<":return this._readReifiedTripleTailOrReifier}}_emit(a,s,f,h){this._callback(null,this._factory.quad(a,s,f,h||this.DEFAULTGRAPH))}_error(a,s){const f=new Error(`${a} on line ${s.line}.`);f.context={token:s,line:s.line,previousToken:this._lexer.previousToken},this._callback(f),this._callback=r1}_resolveIRI(a){return/^[a-z][a-z0-9+.-]*:/i.test(a)?a:this._resolveRelativeIRI(a)}_resolveRelativeIRI(a){if(!a.length)return this._base;switch(a[0]){case"#":return this._base+a;case"?":return this._base.replace(/(?:\?.*)?$/,a);case"/":return(a[1]==="/"?this._baseScheme:this._baseRoot)+this._removeDotSegments(a);default:return/^[^/:]*:/.test(a)?null:this._removeDotSegments(this._basePath+a)}}_removeDotSegments(a){if(!/(^|\/)\.\.?($|[/#?])/.test(a))return a;const s=a.length;let f="",h=-1,m=-1,v=0,w="/";for(;h<s;){switch(w){case":":if(m<0&&a[++h]==="/"&&a[++h]==="/")for(;(m=h+1)<s&&a[m]!=="/";)h=m;break;case"?":case"#":h=s;break;case"/":if(a[h+1]===".")switch(w=a[++h+1],w){case"/":f+=a.substring(v,h-1),v=h+1;break;case void 0:case"?":case"#":return f+a.substring(v,h)+a.substr(h+1);case".":if(w=a[++h+1],w===void 0||w==="/"||w==="?"||w==="#"){if(f+=a.substring(v,h-2),(v=f.lastIndexOf("/"))>=m&&(f=f.substr(0,v)),w!=="/")return`${f}/${a.substr(h+1)}`;v=h+1}}}w=a[++h]}return f+a.substring(v)}parse(a,s,f,h){let m,v,w,E;if(s&&(s.onQuad||s.onPrefix||s.onComment||s.onVersion)?(m=s.onQuad,v=s.onPrefix,w=s.onComment,E=s.onVersion):(m=s,v=f,E=h),this._readCallback=this._readBeforeTopContext,this._sparqlStyle=!1,this._prefixes=Object.create(null),this._prefixes._=this._blankNodePrefix?this._blankNodePrefix.substr(2):`b${uw++}_`,this._prefixCallback=v||r1,this._versionCallback=E||r1,this._inversePredicate=!1,this._quantified=Object.create(null),!m){const _=[];let L;if(this._callback=(x,D)=>{x?L=x:D&&_.push(D)},this._lexer.tokenize(a).every(x=>this._readCallback=this._readCallback(x)),L)throw L;return _}let S=(_,L)=>{_!==null?(this._callback(_),this._callback=r1):this._readCallback&&(this._readCallback=this._readCallback(L))};w&&(this._lexer.comments=!0,S=(_,L)=>{_!==null?(this._callback(_),this._callback=r1):this._readCallback&&(L.type==="comment"?w(L.value):this._readCallback=this._readCallback(L))}),this._callback=m,this._lexer.tokenize(a,S)}};function r1(){}function cw(i,a){i._factory=a,i.DEFAULTGRAPH=a.defaultGraph(),i.RDF_FIRST=a.namedNode(hs.rdf.first),i.RDF_REST=a.namedNode(hs.rdf.rest),i.RDF_NIL=a.namedNode(hs.rdf.nil),i.RDF_REIFIES=a.namedNode(hs.rdf.reifies),i.N3_FORALL=a.namedNode(hs.r.forAll),i.N3_FORSOME=a.namedNode(hs.r.forSome),i.ABBREVIATIONS={a:a.namedNode(hs.rdf.type),"=":a.namedNode(hs.owl.sameAs),">":a.namedNode(hs.log.implies),"<":a.namedNode(hs.log.isImpliedBy)},i.QUANTIFIERS_GRAPH=a.namedNode("urn:n3:quantifiers")}zE.SUPPORTED_VERSIONS=["1.2","1.2-basic","1.1"],cw(zE.prototype,TO);function LO(i){return!!i&&i.termType==="Literal"}function fw(i){return new Promise((a,s)=>{const f=[];new zE().parse(i,(h,m,v)=>{h?s(h):m?f.push({subject:UE(m.subject),predicate:UE(m.predicate),object:UE(m.object)}):a(f)})})}function UE(i){if(LO(i)){const a=i;return{type:"literal",value:a.value,datatype:a.datatype.value,"xml:lang":a.language}}else return{type:"uri",value:i.value}}var OO=(function(i){return i[i.GET=1]="GET",i[i.POST=2]="POST",i})({}),DO=class{constructor(i,a=KT){this.linkByPredicate=new Map,this.linkById=new Map,this.propertyByPredicate=new Map;const{queryFunction:s=RO}=i;this.options={...i,queryFunction:s},this.settings=a;for(const f of a.linkConfigurations){this.linkById.set(f.id,f);const h=hp(f)?f.path:f.id;AE(this.linkByPredicate,h).push(f)}this.openWorldLinks=a.linkConfigurations.length===0||!!a.openWorldLinks;for(const f of a.propertyConfigurations){const h=$T(f)?f.path:f.id;AE(this.propertyByPredicate,h).push(f)}this.openWorldProperties=a.propertyConfigurations.length===0||!!a.openWorldProperties}async classTree(){const{defaultPrefix:i,schemaLabelProperty:a,classTreeQuery:s}=this.settings;if(!s)return[];const f=i+co(s,{schemaLabelProperty:a}),h=HL(await this.executeSparqlQuery(f));return this.options.prepareLabels&&await Dm(IL(h),this.options.prepareLabels),h}async propertyInfo(i){const{defaultPrefix:a,schemaLabelProperty:s,propertyInfoQuery:f}=this.settings;let h;if(f){const m=a+co(f,{ids:i.propertyIds.map(Ia).map(v=>` ( ${v} )`).join(" "),schemaLabelProperty:s});h=YL(await this.executeSparqlQuery(m))}else{h={};for(const m of i.propertyIds)h[m]={id:m,label:{values:[]}}}return this.options.prepareLabels&&await Dm(zb(h),this.options.prepareLabels),h}async classInfo(i){const{defaultPrefix:a,schemaLabelProperty:s,classInfoQuery:f}=this.settings;let h;if(f){const m=a+co(f,{ids:i.classIds.map(Ia).map(v=>` ( ${v} )`).join(" "),schemaLabelProperty:s});h=jL(await this.executeSparqlQuery(m))}else h=i.classIds.map(m=>({id:m,label:{values:[]},children:[]}));return this.options.prepareLabels&&await Dm(h,this.options.prepareLabels),h}async linkTypesInfo(i){const{defaultPrefix:a,schemaLabelProperty:s,linkTypesInfoQuery:f}=this.settings;let h;if(f){const m=a+co(f,{ids:i.linkTypeIds.map(Ia).map(v=>` ( ${v} )`).join(" "),schemaLabelProperty:s});h=jT(await this.executeSparqlQuery(m))}else h=i.linkTypeIds.map(m=>({id:m,label:{values:[]}}));return this.options.prepareLabels&&await Dm(h,this.options.prepareLabels),h}async linkTypes(){const{defaultPrefix:i,schemaLabelProperty:a,linkTypesQuery:s,linkTypesPattern:f}=this.settings;if(!s)return[];const h=i+co(s,{linkTypesPattern:f,schemaLabelProperty:a}),m=jT(await this.executeSparqlQuery(h));return this.options.prepareLabels&&await Dm(m,this.options.prepareLabels),m}async elementInfo(i){const a=i.elementIds.filter(v=>!ec(v)),s=this.options.acceptBlankNodes?H3(i.elementIds):void 0;let f;if(a.length>0){const v=a.map(Ia).map(L=>` (${L})`).join(" "),{defaultPrefix:w,dataLabelProperty:E,elementInfoQuery:S}=this.settings,_=w+co(S,{ids:v,dataLabelProperty:E,propertyConfigurations:this.formatPropertyInfo()});f=await this.executeSparqlConstruct(_)}else f=[];const h=this.queryManyElementTypes(this.settings.propertyConfigurations.length>0?i.elementIds:[]),m=$L(DE(VL(f),s),await h,this.propertyByPredicate,this.openWorldProperties);return this.options.prepareLabels&&await Dm(zb(m),this.options.prepareLabels),this.options.prepareImages?await MO(this.options.prepareImages,m):this.options.imagePropertyUris&&this.options.imagePropertyUris.length&&await this.attachImages(m,this.options.imagePropertyUris),m}async attachImages(i,a){const s=Object.keys(i).filter(m=>!ec(m)).map(Ia).map(m=>` ( ${m} )`).join(" "),f=a.map(Ia).map(m=>` ( ${m} )`).join(" "),h=this.settings.defaultPrefix+`
            SELECT ?inst ?linkType ?image
            WHERE {{
                VALUES (?inst) {${s}}
                VALUES (?linkType) {${f}}
                ${this.settings.imageQueryPattern}
            }}
        `;try{QL(await this.executeSparqlQuery(h),i)}catch(m){console.error(m)}}async linksInfo(i){const a=i.elementIds.filter(v=>!ec(v)),s=this.options.acceptBlankNodes?I3(i.elementIds):void 0,f=this.formatLinkLinks();let h,m;if(a.length>0){const v=a.map(Ia).map(E=>` ( ${E} )`).join(" "),w=this.settings.defaultPrefix+co(this.settings.linksInfoQuery,{ids:v,linkConfigurations:f});h=this.executeSparqlQuery(w),m=this.queryManyElementTypes(i.elementIds)}else h=Promise.resolve({head:{vars:[]},results:{bindings:[]}}),m=this.queryManyElementTypes([]);return ZL(DE(await h,s),await m,this.linkByPredicate,this.openWorldLinks)}async linkTypesOf(i){if(this.options.acceptBlankNodes&&ec(i.elementId))return Promise.resolve(JL(q3(i)));const{defaultPrefix:a,linkTypesOfQuery:s,linkTypesStatisticsQuery:f,filterTypePattern:h}=this.settings,m=Ia(i.elementId),v=this.formatLinkUnion(i.elementId,void 0,void 0,"?outObject","?inObject",!1);v.usePredicatePart&&(v.unionParts.push(`{ ${m} ?link ?outObject }`),v.unionParts.push(`{ ?inObject ?link ${m} }`));const w=a+co(s,{elementIri:m,linkConfigurations:v.unionParts.join(`
UNION
`)}),E=KL(await this.executeSparqlQuery(w),this.linkByPredicate,this.openWorldLinks),S=this.options.acceptBlankNodes?"FILTER (IsIri(?outObject) || IsBlank(?outObject))":"FILTER IsIri(?outObject)",_=this.options.acceptBlankNodes?"FILTER (IsIri(?inObject) || IsBlank(?inObject))":"FILTER IsIri(?inObject)",L=[];return await Promise.all(E.map(async x=>{const D=this.linkById.get(x);let B,G;if(!D||hp(D)){const pe=Ia(D&&hp(D)?D.path:x);B=`${m} ${pe} ?outObject`,G=`?inObject ${pe} ${m}`}else B=this.formatLinkPath(D.path,m,"?outObject"),G=this.formatLinkPath(D.path,"?inObject",m);if(D&&D.domain?.length>0){const pe=D.domain.map(Ia).join(", "),Te=h.replace(/[?$]inst\b/g,m),Se=h.replace(/[?$]inst\b/g,"?inObject");B+=` { ${Te} FILTER(?class IN (${pe})) }`,G+=` { ${Se} FILTER(?class IN (${pe})) }`}const P=a+co(f,{linkId:Ia(x),elementIri:m,linkConfigurationOut:B,linkConfigurationIn:G,navigateElementFilterOut:S,navigateElementFilterIn:_}),te=FL(await this.executeSparqlQuery(P));te&&L.push(te)})),L}linkElements(i){return this.filter({refElementId:i.elementId,refElementLinkId:i.linkId,linkDirection:i.direction,limit:i.limit,offset:i.offset,languageCode:""})}async filter(i){const a={...i};a.limit===void 0&&(a.limit=100);const s=this.querySingleElementTypes(a.refElementId&&this.settings.linkConfigurations.length>0?a.refElementId:void 0),f=this.options.acceptBlankNodes?G3(a):void 0;if(f&&f.results.bindings.length>0)return YT(f,await s,this.linkByPredicate,this.openWorldLinks);const h=this.createFilterQuery(a),m=await this.executeSparqlQuery(h);let v;this.options.acceptBlankNodes?v=await z3(m,E=>this.executeSparqlQuery(E),this.settings):v=m;const w=YT(v,await s,this.linkByPredicate,this.openWorldLinks);return this.options.prepareLabels&&await Dm(zb(w),this.options.prepareLabels),w}createFilterQuery(i){if(!i.refElementId&&i.refElementLinkId)throw new Error("Cannot execute refElementLink filter without refElement");let a="?inst ?class ?label ?blankType",s="?inst",f="",h="";i.refElementId&&(a+=" ?link ?direction",s+=" ?link ?direction",f=this.createRefQueryPart({elementId:i.refElementId,linkId:i.refElementLinkId,direction:i.linkDirection}),this.settings.linkConfigurations.length>0&&(a+=" ?classAll",h=this.settings.filterTypePattern.replace(/[?$]class\b/g,"?classAll")));let m="";if(i.elementTypeId){const L=Ia(i.elementTypeId);m=this.settings.filterTypePattern.replace(/[?$]class\b/g,L),m+=" ."}const{defaultPrefix:v,fullTextSearch:w,dataLabelProperty:E}=this.settings;let S="";i.text&&(s+=" ?score",this.settings.fullTextSearch.extractLabel&&(S+=NO("?inst","?extractedLabel")),w.queryPatternPerWord?S=i.text.trim().split(/\s+/).filter(Boolean).map(L=>co(w.queryPatternPerWord,{word:kO(L),dataLabelProperty:E})).join(`
`)+`
BIND(0 as ?score)`:S=co(w.queryPattern,{text:i.text,dataLabelProperty:E}));const _=this.options.acceptBlankNodes;return _&&(a+=` ${R3}`),`${v}
            ${w.prefix}

        SELECT ${a}
        WHERE {
            {
                SELECT DISTINCT ${s} WHERE {
                    ${w.elementFirst?"":S}
                    ${m}
                    ${f}
                    ${w.elementFirst?S:""}
                    ${this.settings.filterAdditionalRestriction}
                }
                ${S?"ORDER BY DESC(?score)":""}
                LIMIT ${i.limit} OFFSET ${i.offset}
            }
            ${h}
            ${co(this.settings.filterElementInfoPattern,{dataLabelProperty:E})}
            ${_?N3:""}
        } ${S?"ORDER BY DESC(?score)":""}
        `}executeSparqlQuery(i){const a=this.options.queryMethod?this.options.queryMethod:1;return hw(this.options.endpointUrl,i,a,this.options.queryFunction)}executeSparqlConstruct(i){const a=this.options.queryMethod?this.options.queryMethod:1;return dw(this.options.endpointUrl,i,a,this.options.queryFunction)}createRefQueryPart(i){const{elementId:a,linkId:s,direction:f}=i,{unionParts:h,usePredicatePart:m}=this.formatLinkUnion(a,s,f,"?inst","?inst",!0);if(m){const w=Ia(i.elementId);let E;if(s){const x=this.linkById.get(s);E=x&&hp(x)?Ia(x.path):Ia(s)}const S=E||"?link",_=E?`BIND(${E} as ?link)`:"",L=this.options.acceptBlankNodes?"FILTER(isIri(?inst) || isBlank(?inst))":"FILTER(isIri(?inst))";(!f||f==="out")&&h.push(`{ ${w} ${S} ?inst BIND("out" as ?direction) ${_} ${L} }`),(!f||f==="in")&&h.push(`{ ?inst ${S} ${w} BIND("in" as ?direction) ${_} ${L} }`)}let v=h.length===0?"FILTER(false)":h.join(`
UNION
`);return!s&&this.settings.filterRefElementLinkPattern.length>0&&(v+=`
${this.settings.filterRefElementLinkPattern}`),v}formatLinkUnion(i,a,s,f,h,m){const{linkConfigurations:v}=this.settings,w=Ia(i),E=[];let S=!1;for(const _ of v)if(!(a&&_.id!==a))if(hp(_))S=!0;else{const L=Ia(_.id);if(!s||s==="out"){const x=this.formatLinkPath(_.path,w,f),D=m?'BIND("out" as ?direction) ':"";E.push(`{ ${x} BIND(${L} as ?link) ${D}}`)}if(!s||s==="in"){const x=this.formatLinkPath(_.path,h,w),D=m?'BIND("in" as ?direction) ':"";E.push(`{ ${x} BIND(${L} as ?link) ${D}}`)}}return{unionParts:E,usePredicatePart:this.openWorldLinks||S}}formatLinkLinks(){const i=[];let a=!1;for(const s of this.settings.linkConfigurations)if(hp(s))a=!0;else{const f=Ia(s.id);i.push(`{ ${this.formatLinkPath(s.path,"?source","?target")} BIND(${f} as ?type) }`)}return(this.openWorldLinks||a)&&i.push("{ ?source ?type ?target }"),i.join(`
UNION
`)}formatLinkPath(i,a,s){return i.replace(/[?$]source\b/g,a).replace(/[?$]target\b/g,s)}formatPropertyInfo(){const i=[];let a=!1;for(const s of this.settings.propertyConfigurations)if($T(s))a=!0;else{const f=Ia(s.id),h=this.formatPropertyPath(s.path,"?inst","?propValue");i.push(`{ ${h} BIND(${f} as ?propType) }`)}return(this.openWorldProperties||a)&&i.push("{ ?inst ?propType ?propValue }"),i.join(`
UNION
`)}formatPropertyPath(i,a,s){return i.replace(/[?$]inst\b/g,a).replace(/[?$]value\b/g,s)}async querySingleElementTypes(i){return(await this.queryManyElementTypes(i?[i]:[])).get(i)}async queryManyElementTypes(i){if(i.length===0)return new Map;const{filterTypePattern:a}=this.settings,s=i.filter(m=>!ec(m)).map(m=>`(${Ia(m)})`).join(" "),f=co(this.settings.defaultPrefix+"SELECT ?inst ?class { VALUES(?inst) { ${ids} } ${filterTypePattern} }",{ids:s,filterTypePattern:a});let h=await this.executeSparqlQuery(f);if(this.options.acceptBlankNodes&&i.find(ec)){const m=j3(i);h=DE(h,m)}return PL(h)}};async function Dm(i,a){const s=new Set;for(const h of i)ec(h.id)||s.add(h.id);const f=await a(s);for(const h of i)f.has(h.id)&&(h.label={values:f.get(h.id)})}function MO(i,a){return i(a).then(s=>{for(const f in s)Object.prototype.hasOwnProperty.call(s,f)&&a[f]&&(a[f].image=s[f])})}function co(i,a){let s=i;for(const f in a){if(!Object.prototype.hasOwnProperty.call(a,f))continue;const h=a[f];h&&(s=s.replace(new RegExp("\\${"+f+"}","g"),h))}return s}function hw(i,a,s,f){let h;return s===1?h=f({url:pw(i,{query:a}),headers:{Accept:"application/sparql-results+json"},method:"GET"}):h=f({url:i,body:a,headers:{Accept:"application/sparql-results+json","Content-Type":"application/sparql-query; charset=UTF-8"},method:"POST"}),h.then(m=>{if(m.ok)return m.json();{const v=new Error(m.statusText);throw v.response=m,v}})}function dw(i,a,s,f){let h;return s===1?h=f({url:pw(i,{query:a}),headers:{Accept:"text/turtle"},method:"GET"}):h=f({url:i,body:a,headers:{Accept:"text/turtle","Content-Type":"application/sparql-query; charset=UTF-8"},method:"POST"}),h.then(m=>{if(m.ok)return m.text();{const v=new Error(m.statusText);throw v.response=m,v}}).then(fw)}function pw(i,a={}){return i+((i.indexOf("?")<0?"?":"&")+Object.keys(a).map(s=>`${s}=${encodeURIComponent(a[s])}`).join("&"))}function RO(i){return fetch(i.url,{method:i.method,body:i.body,credentials:"same-origin",mode:"cors",cache:"default",headers:i.headers})}function NO(i,a){return`
        BIND ( str( ${i} ) as ?uriStr)
        BIND ( strafter(?uriStr, "#") as ?label3)
        BIND ( strafter(strafter(?uriStr, "//"), "/") as ?label6)
        BIND ( strafter(?label6, "/") as ?label5)
        BIND ( strafter(?label5, "/") as ?label4)
        BIND (if (?label3 != "", ?label3,
            if (?label4 != "", ?label4,
            if (?label5 != "", ?label5, ?label6))) as ${a})
    `}function Ia(i){if(typeof i!="string")throw new Error(`Cannot escape IRI of type "${typeof i}"`);return`<${i}>`}function kO(i){return i.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r")}var zO="http://graph-explorer.org/property/DataProvider";function UO(i){const a=i.filter(v=>v.response).map(({useInStats:v,response:w})=>({useInStats:v,classes:IO(w)})),s={},f={},h={};for(const{useInStats:v,classes:w}of a)for(const E of w){const S=h[E.id]||[];E.children.map(_=>_.id).forEach(_=>{S.indexOf(_)===-1&&S.push(_)}),E.children=[],v||delete E.count,s[E.id]?(f[E.id]=Ew(s[E.id],E),s[E.id]=f[E.id]):(f[E.id]=E,s[E.id]=E,h[E.id]=S)}const m=Object.keys(s).map(v=>s[v]);for(const v of m)v.children=(h[v.id]||[]).map(w=>(delete f[w],s[w]));return Object.keys(f).map(v=>f[v])}function gw(i){const a={},s=i.filter(f=>f.response).map(f=>f.response);for(const f of s){const h=Object.keys(f);for(const m of h){const v=f[m];a[m]?a[m].label=Vb(a[m].label,v.label):a[m]=v}}return a}function mw(i){const a=i.filter(f=>f.response).map(f=>f.response),s={};for(const f of a)for(const h of f)s[h.id]?s[h.id]=Ew(s[h.id],h):s[h.id]=h;return Object.keys(s).map(f=>s[f])}function BE(i){const a=i.filter(h=>h.response).map(h=>h.response),s=(h,m)=>({id:h.id,label:Vb(h.label,m.label),count:h.count+m.count}),f={};for(const h of a)for(const m of h)f[m.id]?f[m.id]=s(f[m.id],m):f[m.id]=m;return Object.keys(f).map(h=>f[h])}function BO(i){return BE(i)}function Yb(i){const a=(f,h)=>{const m=f.types;for(const w of h.types)m.indexOf(w)===-1&&m.push(w);const v=[];for(const w of f.sources)v.indexOf(w)===-1&&v.push(w);for(const w of h.sources)v.indexOf(w)===-1&&v.push(w);return{id:f.id,label:Vb(f.label,h.label),types:m,image:f.image||h.image,properties:HO(f.properties,h.properties),sources:v}},s={};for(const f of i){if(!f.response)continue;const h=Object.keys(f.response).map(m=>f.response[m]);for(const m of h)m.sources=[f.dataSourceName],m.properties[zO]={type:"string",values:[{value:f.dataSourceName,language:""}]},s[m.id]?s[m.id]=a(s[m.id],m):s[m.id]=m}return s}function HO(i,a){const s=Object.keys(i),f=Object.keys(a),h={};function m(v){let w=1;for(;h[v+"_"+w];)w++;return v+"_"+w}for(const v of s){const w=i[v];h[v]?h[m(v)]=w:h[v]=w}for(const v of f){const w=a[v];h[v]?h[m(v)]=w:h[v]=w}return h}function yw(i){const a=i.filter(h=>h.response).map(h=>h.response),s=[];function f(h,m){return h.sourceId===m.sourceId&&h.targetId===m.targetId&&h.linkTypeId===m.linkTypeId}for(const h of a)for(const m of h)s.some(v=>f(v,m))||s.push(m);return s}function vw(i){const a=i.filter(h=>h.response).map(h=>h.response),s={},f=(h,m)=>({id:h.id,inCount:h.inCount+m.inCount,outCount:h.outCount+m.outCount});for(const h of a)for(const m of h)s[m.id]?s[m.id]=f(m,s[m.id]):s[m.id]=m;return Object.keys(s).map(h=>s[h])}function bw(i){return Yb(i)}function _w(i){return Yb(i)}function IO(i){let a=i;function s(f){let h=f.children||[];for(const m of h){const v=s(m);h=h.concat(v)}return h}for(const f of i){const h=s(f);a=a.concat(h)}return a}function Vb(i,a){function s(h,m){return h.language===m.language&&h.value===m.value}const f=i.values;for(const h of a.values)f.some(m=>s(m,h))||f.push(h);return{values:f}}function qO(i,a){if(!(i===void 0&&a===void 0))return(i||0)+(a||0)}function Ew(i,a){const s={};for(const f of i.children.concat(a.children))s[f.id]||(s[f.id]=f);return{id:i.id,label:Vb(i.label,a.label),count:qO(i.count,a.count),children:Object.keys(s).map(f=>s[f])}}function GO(i){const a=i;return a.name!==void 0&&a.dataProvider!==void 0}var jO=class{constructor(i,a){this.mergeMode="fetchAll";let s=1;this.dataProviders=i.map(f=>GO(f)?f:{name:"dataProvider_"+s++,dataProvider:f}),a&&a.mergeMode&&(this.mergeMode=a.mergeMode)}classTree(){return this.fetchSequentially("classTree",UO,void 0)}propertyInfo(i){if(this.mergeMode==="fetchAll")return this.fetchSequentially("propertyInfo",gw,i);{let a=i.propertyIds;return this.queueProcessResults((s,f)=>(a=a.filter(h=>!s||!s[h]),a.length>0?f.dataProvider.propertyInfo({propertyIds:a}):void 0)).then(gw)}}classInfo(i){if(this.mergeMode==="fetchAll")return this.fetchSequentially("classInfo",mw,i);{let a=i.classIds;return this.queueProcessResults((s,f)=>(a=a.filter(h=>!s||s.map(m=>m.id).indexOf(h)===-1),a.length>0?f.dataProvider.classInfo({classIds:a}):void 0)).then(mw)}}linkTypesInfo(i){if(this.mergeMode==="fetchAll")return this.fetchSequentially("linkTypesInfo",BE,i);{let a=i.linkTypeIds;return this.queueProcessResults((s,f)=>(a=a.filter(h=>!s||s.map(m=>m.id).indexOf(h)===-1),a.length>0?f.dataProvider.linkTypesInfo({linkTypeIds:a}):void 0)).then(BE)}}linkTypes(){return this.fetchSequentially("linkTypes",BO,void 0)}elementInfo(i){if(this.mergeMode==="fetchAll")return this.fetchSequentially("elementInfo",Yb,i);{let a=i.elementIds;return this.queueProcessResults((s,f)=>(a=a.filter(h=>!s||!s[h]),a.length>0?f.dataProvider.elementInfo({elementIds:a}):void 0)).then(Yb)}}linksInfo(i){if(this.mergeMode==="fetchAll")return this.fetchSequentially("linksInfo",yw,i);{let a=i.elementIds;return this.queueProcessResults((s,f)=>(a=a.filter(h=>{if(s){for(const m of s)if(m.sourceId===h)return!1}return!0}),a.length>0?f.dataProvider.linksInfo({elementIds:a,linkTypeIds:i.linkTypeIds}):void 0)).then(yw)}}linkTypesOf(i){return this.mergeMode==="fetchAll"?this.fetchSequentially("linkTypesOf",vw,i):this.queueProcessResults((a,s)=>{if(!a||a&&a.length===0)return s.dataProvider.linkTypesOf(i)}).then(vw)}linkElements(i){return this.mergeMode==="fetchAll"?this.fetchSequentially("linkElements",bw,i):this.queueProcessResults((a,s)=>{if(!a||a&&Object.keys(a).length===0)return s.dataProvider.linkElements(i)}).then(bw)}filter(i){return this.mergeMode==="fetchAll"?this.fetchSequentially("filter",_w,i):this.queueProcessResults((a,s)=>{if(!a||a&&Object.keys(a).length===0)return s.dataProvider.filter(i)}).then(_w)}processResults(i,a,s){return i.then(f=>({dataSourceName:a,useInStats:s,response:f})).catch(f=>(console.error(f),{dataSourceName:a,useInStats:s,response:void 0}))}queueProcessResults(i){let a=0;const s=[],f=h=>{if(this.dataProviders.length>a){const m=this.dataProviders[a++],v=i(h,m);return v?v.then(w=>(s.push({dataSourceName:m.name,response:w}),f(w))).catch(w=>(console.error(w),f(h))):Promise.resolve(s)}else return Promise.resolve(s)};return f()}fetchSequentially(i,a,s){const f=this.dataProviders.map(h=>{const m=h.dataProvider[i];return this.processResults(m.call(h.dataProvider,s),h.name,h.useInStats)});return Promise.all(f).then(a)}},YO=["id","type","size","angle","isExpanded","position","iri","group","typeId","source","target","vertices"];function HE(){return{"@context":A2,"@type":"Diagram",layoutData:Sw(),linkTypeOptions:[]}}function Sw(){return{"@type":"Layout",elements:[],links:[]}}function VO(i){const a=[],s=[];for(const f of i.layoutData.cells){const h=(0,so.pick)(f,YO);switch((h.type==="GraphExplorer.Element"||h.type==="element")&&(h.type="Element"),h.type==="link"&&(h.type="Link"),h.iri||(h.iri=h.id),h["@id"]=h.id,delete h.id,h["@type"]=h.type,delete h.type,h["@type"]){case"Element":a.push(h);break;case"Link":h.source["@id"]=h.source.id,delete h.source.id,h.target["@id"]=h.target.id,delete h.target.id,h.property=h.typeId,delete h.typeId,s.push(h);break}}return{...HE(),layoutData:{"@type":"Layout",elements:a,links:s},linkTypeOptions:i.linkTypeOptions}}function IE(i){const a={...HE(),linkTypeOptions:i.linkTypeOptions};return i.layoutData&&(a.layoutData=i.layoutData),a}function Tw(i,a){return{"@type":"Layout",elements:i.map(s=>({"@type":"Element","@id":s.id,iri:s.iri,position:s.position,size:s.size,isExpanded:s.isExpanded,group:s.group,elementState:s.elementState})),links:a.map(s=>({"@type":"Link","@id":s.id,property:s.typeId,source:{"@id":s.sourceId},target:{"@id":s.targetId},vertices:[...s.vertices],linkState:s.linkState}))}}var ww=Bn((i=>{Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function S(_,L,x){this.source=_,this.target=L,this.type=x}return S})();i.PowerEdge=a;var s=(function(){function S(_,L,x,D){var B=this;if(this.linkAccessor=x,this.modules=new Array(_),this.roots=[],D)this.initModulesFromGroup(D);else{this.roots.push(new v);for(var G=0;G<_;++G)this.roots[0].add(this.modules[G]=new h(G))}this.R=L.length,L.forEach(function(P){var te=B.modules[x.getSourceIndex(P)],pe=B.modules[x.getTargetIndex(P)],Te=x.getType(P);te.outgoing.add(Te,pe),pe.incoming.add(Te,te)})}return S.prototype.initModulesFromGroup=function(_){var L=new v;this.roots.push(L);for(var x=0;x<_.leaves.length;++x){var D=_.leaves[x],B=new h(D.id);this.modules[D.id]=B,L.add(B)}if(_.groups)for(var G=0;G<_.groups.length;++G){var P=_.groups[G],te={};for(var pe in P)pe!=="leaves"&&pe!=="groups"&&P.hasOwnProperty(pe)&&(te[pe]=P[pe]);L.add(new h(-1-G,new w,new w,this.initModulesFromGroup(P),te))}return L},S.prototype.merge=function(_,L,x){x===void 0&&(x=0);var D=_.incoming.intersection(L.incoming),B=_.outgoing.intersection(L.outgoing),G=new v;G.add(_),G.add(L);var P=new h(this.modules.length,B,D,G);this.modules.push(P);var te=function(pe,Te,Se){pe.forAll(function(Fe,Re){Fe.forAll(function(Je){var Be=Je[Te];Be.add(Re,P),Be.remove(Re,_),Be.remove(Re,L),_[Se].remove(Re,Je),L[Se].remove(Re,Je)})})};return te(B,"incoming","outgoing"),te(D,"outgoing","incoming"),this.R-=D.count()+B.count(),this.roots[x].remove(_),this.roots[x].remove(L),this.roots[x].add(P),P},S.prototype.rootMerges=function(_){_===void 0&&(_=0);for(var L=this.roots[_].modules(),x=L.length,D=new Array(x*(x-1)),B=0,G=0,P=x-1;G<P;++G)for(var te=G+1;te<x;++te){var pe=L[G],Te=L[te];D[B]={id:B,nEdges:this.nEdges(pe,Te),a:pe,b:Te},B++}return D},S.prototype.greedyMerge=function(){for(var _=0;_<this.roots.length;++_)if(!(this.roots[_].modules().length<2)){var L=this.rootMerges(_).sort(function(x,D){return x.nEdges==D.nEdges?x.id-D.id:x.nEdges-D.nEdges})[0];if(!(L.nEdges>=this.R))return this.merge(L.a,L.b,_),!0}},S.prototype.nEdges=function(_,L){var x=_.incoming.intersection(L.incoming),D=_.outgoing.intersection(L.outgoing);return this.R-x.count()-D.count()},S.prototype.getGroupHierarchy=function(_){var L=this,x=[];return f(this.roots[0],{},x),this.allEdges().forEach(function(D){var B=L.modules[D.source],G=L.modules[D.target];_.push(new a(typeof B.gid>"u"?D.source:x[B.gid],typeof G.gid>"u"?D.target:x[G.gid],D.type))}),x},S.prototype.allEdges=function(){var _=[];return S.getEdges(this.roots[0],_),_},S.getEdges=function(_,L){_.forAll(function(x){x.getEdges(L),S.getEdges(x.children,L)})},S})();i.Configuration=s;function f(S,_,L){S.forAll(function(x){if(x.isLeaf())_.leaves||(_.leaves=[]),_.leaves.push(x.id);else{var D=_;if(x.gid=L.length,!x.isIsland()||x.isPredefined()){if(D={id:x.gid},x.isPredefined())for(var B in x.definition)D[B]=x.definition[B];_.groups||(_.groups=[]),_.groups.push(x.gid),L.push(D)}f(x.children,D,L)}})}var h=(function(){function S(_,L,x,D,B){L===void 0&&(L=new w),x===void 0&&(x=new w),D===void 0&&(D=new v),this.id=_,this.outgoing=L,this.incoming=x,this.children=D,this.definition=B}return S.prototype.getEdges=function(_){var L=this;this.outgoing.forAll(function(x,D){x.forAll(function(B){_.push(new a(L.id,B.id,D))})})},S.prototype.isLeaf=function(){return this.children.count()===0},S.prototype.isIsland=function(){return this.outgoing.count()===0&&this.incoming.count()===0},S.prototype.isPredefined=function(){return typeof this.definition<"u"},S})();i.Module=h;function m(S,_){var L={};for(var x in S)x in _&&(L[x]=S[x]);return L}var v=(function(){function S(){this.table={}}return S.prototype.count=function(){return Object.keys(this.table).length},S.prototype.intersection=function(_){var L=new S;return L.table=m(this.table,_.table),L},S.prototype.intersectionCount=function(_){return this.intersection(_).count()},S.prototype.contains=function(_){return _ in this.table},S.prototype.add=function(_){this.table[_.id]=_},S.prototype.remove=function(_){delete this.table[_.id]},S.prototype.forAll=function(_){for(var L in this.table)_(this.table[L])},S.prototype.modules=function(){var _=[];return this.forAll(function(L){L.isPredefined()||_.push(L)}),_},S})();i.ModuleSet=v;var w=(function(){function S(){this.sets={},this.n=0}return S.prototype.count=function(){return this.n},S.prototype.contains=function(_){var L=!1;return this.forAllModules(function(x){!L&&x.id==_&&(L=!0)}),L},S.prototype.add=function(_,L){(_ in this.sets?this.sets[_]:this.sets[_]=new v).add(L),++this.n},S.prototype.remove=function(_,L){var x=this.sets[_];x.remove(L),x.count()===0&&delete this.sets[_],--this.n},S.prototype.forAll=function(_){for(var L in this.sets)_(this.sets[L],Number(L))},S.prototype.forAllModules=function(_){this.forAll(function(L,x){return L.forAll(_)})},S.prototype.intersection=function(_){var L=new S;return this.forAll(function(x,D){if(D in _.sets){var B=x.intersection(_.sets[D]),G=B.count();G>0&&(L.sets[D]=B,L.n+=G)}}),L},S})();i.LinkSets=w;function E(S,_,L,x){for(var D=S.length,B=new s(D,_,L,x);B.greedyMerge(););var G=[],P=B.getGroupHierarchy(G);return G.forEach(function(te){var pe=function(Te){var Se=te[Te];typeof Se=="number"&&(te[Te]=S[Se])};pe("source"),pe("target")}),{groups:P,powerEdges:G}}i.getGroups=E})),qE=Bn((i=>{Object.defineProperty(i,"__esModule",{value:!0});function a(S,_){var L={};for(var x in S)L[x]={};for(var x in _)L[x]={};return Object.keys(L).length}function s(S,_){var L=0;for(var x in S)typeof _[x]<"u"&&++L;return L}function f(S,_){var L={},x=function(D,B){typeof L[D]>"u"&&(L[D]={}),L[D][B]={}};return S.forEach(function(D){var B=_.getSourceIndex(D),G=_.getTargetIndex(D);x(B,G),x(G,B)}),L}function h(S,_,L,x){var D=f(S,x);S.forEach(function(B){var G=D[x.getSourceIndex(B)],P=D[x.getTargetIndex(B)];x.setLength(B,1+_*L(G,P))})}function m(S,_,L){L===void 0&&(L=1),h(S,L,function(x,D){return Math.sqrt(a(x,D)-s(x,D))},_)}i.symmetricDiffLinkLengths=m;function v(S,_,L){L===void 0&&(L=1),h(S,L,function(x,D){return Math.min(Object.keys(x).length,Object.keys(D).length)<1.1?0:s(x,D)/a(x,D)},_)}i.jaccardLinkLengths=v;function w(S,_,L,x){var D=E(S,_,x),B={};D.forEach(function(P,te){return P.forEach(function(pe){return B[pe]=te})});var G=[];return _.forEach(function(P){var te=x.getSourceIndex(P),pe=x.getTargetIndex(P);B[te]!==B[pe]&&G.push({axis:L,left:te,right:pe,gap:x.getMinSeparation(P)})}),G}i.generateDirectedEdgeConstraints=w;function E(S,_,L){var x=[],D=0,B=[],G=[];function P(re){re.index=re.lowlink=D++,B.push(re),re.onStack=!0;for(var me=0,ne=re.out;me<ne.length;me++){var ue=ne[me];typeof ue.index>"u"?(P(ue),re.lowlink=Math.min(re.lowlink,ue.lowlink)):ue.onStack&&(re.lowlink=Math.min(re.lowlink,ue.index))}if(re.lowlink===re.index){for(var Z=[];B.length&&(ue=B.pop(),ue.onStack=!1,Z.push(ue),ue!==re););G.push(Z.map(function(K){return K.id}))}}for(var te=0;te<S;te++)x.push({id:te,out:[]});for(var pe=0,Te=_;pe<Te.length;pe++){var Se=Te[pe],Fe=x[L.getSourceIndex(Se)],Re=x[L.getTargetIndex(Se)];Fe.out.push(Re)}for(var Je=0,Be=x;Je<Be.length;Je++){var W=Be[Je];typeof W.index>"u"&&P(W)}return G}i.stronglyConnectedComponents=E})),GE=Bn((i=>{Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function h(){this.locks={}}return h.prototype.add=function(m,v){this.locks[m]=v},h.prototype.clear=function(){this.locks={}},h.prototype.isEmpty=function(){for(var m in this.locks)return!1;return!0},h.prototype.apply=function(m){for(var v in this.locks)m(Number(v),this.locks[v])},h})();i.Locks=a;var s=(function(){function h(m,v,w){w===void 0&&(w=null),this.D=v,this.G=w,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new f,this.project=null,this.x=m,this.k=m.length;var E=this.n=m[0].length;this.H=new Array(this.k),this.g=new Array(this.k),this.Hd=new Array(this.k),this.a=new Array(this.k),this.b=new Array(this.k),this.c=new Array(this.k),this.d=new Array(this.k),this.e=new Array(this.k),this.ia=new Array(this.k),this.ib=new Array(this.k),this.xtmp=new Array(this.k),this.locks=new a,this.minD=Number.MAX_VALUE;for(var S=E,_;S--;)for(_=E;--_>S;){var L=v[S][_];L>0&&L<this.minD&&(this.minD=L)}for(this.minD===Number.MAX_VALUE&&(this.minD=1),S=this.k;S--;){for(this.g[S]=new Array(E),this.H[S]=new Array(E),_=E;_--;)this.H[S][_]=new Array(E);this.Hd[S]=new Array(E),this.a[S]=new Array(E),this.b[S]=new Array(E),this.c[S]=new Array(E),this.d[S]=new Array(E),this.e[S]=new Array(E),this.ia[S]=new Array(E),this.ib[S]=new Array(E),this.xtmp[S]=new Array(E)}}return h.createSquareMatrix=function(m,v){for(var w=new Array(m),E=0;E<m;++E){w[E]=new Array(m);for(var S=0;S<m;++S)w[E][S]=v(E,S)}return w},h.prototype.offsetDir=function(){for(var m=this,v=new Array(this.k),w=0,E=0;E<this.k;++E){var S=v[E]=this.random.getNextBetween(.01,1)-.5;w+=S*S}return w=Math.sqrt(w),v.map(function(_){return _*=m.minD/w})},h.prototype.computeDerivatives=function(m){var v=this,w=this.n;if(!(w<1)){for(var E,S=new Array(this.k),_=new Array(this.k),L=new Array(this.k),x=0,D=0;D<w;++D){for(E=0;E<this.k;++E)L[E]=this.g[E][D]=0;for(var B=0;B<w;++B)if(D!==B){for(var G=w;G--;){var P=0;for(E=0;E<this.k;++E){var te=S[E]=m[E][D]-m[E][B];P+=_[E]=te*te}if(P>1e-9)break;var pe=this.offsetDir();for(E=0;E<this.k;++E)m[E][B]+=pe[E]}var Te=Math.sqrt(P),Se=this.D[D][B],Fe=this.G!=null?this.G[D][B]:1;if(Fe>1&&Te>Se||!isFinite(Se)){for(E=0;E<this.k;++E)this.H[E][D][B]=0;continue}Fe>1&&(Fe=1);var Re=Se*Se,Je=2*Fe*(Te-Se)/(Re*Te),Be=Te*Te*Te,W=2*-Fe/(Re*Be);for(isFinite(Je)||console.log(Je),E=0;E<this.k;++E)this.g[E][D]+=S[E]*Je,L[E]-=this.H[E][D][B]=W*(Be+Se*(_[E]-P)+Te*P)}for(E=0;E<this.k;++E)x=Math.max(x,this.H[E][D][D]=L[E])}for(var re=this.snapGridSize/2,me=this.snapGridSize,ne=this.snapStrength/(re*re),ue=this.numGridSnapNodes,D=0;D<ue;++D)for(E=0;E<this.k;++E){var Z=this.x[E][D],K=Z/me,$=K%1,X=K-$,te=Math.abs($)<=.5?Z-X*me:Z>0?Z-(X+1)*me:Z-(X-1)*me;-re<te&&te<=re&&(this.scaleSnapByMaxH?(this.g[E][D]+=x*ne*te,this.H[E][D][D]+=x*ne):(this.g[E][D]+=ne*te,this.H[E][D][D]+=ne))}this.locks.isEmpty()||this.locks.apply(function(ee,ye){for(E=0;E<v.k;++E)v.H[E][ee][ee]+=x,v.g[E][ee]-=x*(ye[E]-m[E][ee])})}},h.dotProd=function(m,v){for(var w=0,E=m.length;E--;)w+=m[E]*v[E];return w},h.rightMultiply=function(m,v,w){for(var E=m.length;E--;)w[E]=h.dotProd(m[E],v)},h.prototype.computeStepSize=function(m){for(var v=0,w=0,E=0;E<this.k;++E)v+=h.dotProd(this.g[E],m[E]),h.rightMultiply(this.H[E],m[E],this.Hd[E]),w+=h.dotProd(m[E],this.Hd[E]);return w===0||!isFinite(w)?0:1*v/w},h.prototype.reduceStress=function(){this.computeDerivatives(this.x);for(var m=this.computeStepSize(this.g),v=0;v<this.k;++v)this.takeDescentStep(this.x[v],this.g[v],m);return this.computeStress()},h.copy=function(m,v){for(var w=m.length,E=v[0].length,S=0;S<w;++S)for(var _=0;_<E;++_)v[S][_]=m[S][_]},h.prototype.stepAndProject=function(m,v,w,E){h.copy(m,v),this.takeDescentStep(v[0],w[0],E),this.project&&this.project[0](m[0],m[1],v[0]),this.takeDescentStep(v[1],w[1],E),this.project&&this.project[1](v[0],m[1],v[1]);for(var S=2;S<this.k;S++)this.takeDescentStep(v[S],w[S],E)},h.mApply=function(m,v,w){for(var E=m;E-- >0;)for(var S=v;S-- >0;)w(E,S)},h.prototype.matrixApply=function(m){h.mApply(this.k,this.n,m)},h.prototype.computeNextPosition=function(m,v){var w=this;this.computeDerivatives(m);var E=this.computeStepSize(this.g);if(this.stepAndProject(m,v,this.g,E),this.project){this.matrixApply(function(_,L){return w.e[_][L]=m[_][L]-v[_][L]});var S=this.computeStepSize(this.e);S=Math.max(.2,Math.min(S,1)),this.stepAndProject(m,v,this.e,S)}},h.prototype.run=function(m){for(var v=Number.MAX_VALUE,w=!1;!w&&m-- >0;){var E=this.rungeKutta();w=Math.abs(v/E-1)<this.threshold,v=E}return v},h.prototype.rungeKutta=function(){var m=this;this.computeNextPosition(this.x,this.a),h.mid(this.x,this.a,this.ia),this.computeNextPosition(this.ia,this.b),h.mid(this.x,this.b,this.ib),this.computeNextPosition(this.ib,this.c),this.computeNextPosition(this.c,this.d);var v=0;return this.matrixApply(function(w,E){var S=(m.a[w][E]+2*m.b[w][E]+2*m.c[w][E]+m.d[w][E])/6,_=m.x[w][E]-S;v+=_*_,m.x[w][E]=S}),v},h.mid=function(m,v,w){h.mApply(m.length,m[0].length,function(E,S){return w[E][S]=m[E][S]+(v[E][S]-m[E][S])/2})},h.prototype.takeDescentStep=function(m,v,w){for(var E=0;E<this.n;++E)m[E]=m[E]-w*v[E]},h.prototype.computeStress=function(){for(var m=0,v=0,w=this.n-1;v<w;++v)for(var E=v+1,S=this.n;E<S;++E){for(var _=0,L=0;L<this.k;++L){var x=this.x[L][v]-this.x[L][E];_+=x*x}_=Math.sqrt(_);var D=this.D[v][E];if(isFinite(D)){var B=D-_,G=D*D;m+=B*B/G}}return m},h.zeroDistance=1e-10,h})();i.Descent=s;var f=(function(){function h(m){m===void 0&&(m=1),this.seed=m,this.a=214013,this.c=2531011,this.m=2147483648,this.range=32767}return h.prototype.getNext=function(){return this.seed=(this.seed*this.a+this.c)%this.m,(this.seed>>16)/this.range},h.prototype.getNextBetween=function(m,v){return m+this.getNext()*(v-m)},h})();i.PseudoRandom=f})),jE=Bn((i=>{Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function E(S){this.scale=S,this.AB=0,this.AD=0,this.A2=0}return E.prototype.addVariable=function(S){var _=this.scale/S.scale,L=S.offset/S.scale,x=S.weight;this.AB+=x*_*L,this.AD+=x*_*S.desiredPosition,this.A2+=x*_*_},E.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},E})();i.PositionStats=a;var s=(function(){function E(S,_,L,x){x===void 0&&(x=!1),this.left=S,this.right=_,this.gap=L,this.equality=x,this.active=!1,this.unsatisfiable=!1,this.left=S,this.right=_,this.gap=L,this.equality=x}return E.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},E})();i.Constraint=s;var f=(function(){function E(S,_,L){_===void 0&&(_=1),L===void 0&&(L=1),this.desiredPosition=S,this.weight=_,this.scale=L,this.offset=0}return E.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},E.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},E.prototype.visitNeighbours=function(S,_){var L=function(x,D){return x.active&&S!==D&&_(x,D)};this.cOut.forEach(function(x){return L(x,x.right)}),this.cIn.forEach(function(x){return L(x,x.left)})},E})();i.Variable=f;var h=(function(){function E(S){this.vars=[],S.offset=0,this.ps=new a(S.scale),this.addVariable(S)}return E.prototype.addVariable=function(S){S.block=this,this.vars.push(S),this.ps.addVariable(S),this.posn=this.ps.getPosn()},E.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var S=0,_=this.vars.length;S<_;++S)this.ps.addVariable(this.vars[S]);this.posn=this.ps.getPosn()},E.prototype.compute_lm=function(S,_,L){var x=this,D=S.dfdv();return S.visitNeighbours(_,function(B,G){var P=x.compute_lm(G,S,L);G===B.right?(D+=P*B.left.scale,B.lm=P):(D+=P*B.right.scale,B.lm=-P),L(B)}),D/S.scale},E.prototype.populateSplitBlock=function(S,_){var L=this;S.visitNeighbours(_,function(x,D){D.offset=S.offset+(D===x.right?x.gap:-x.gap),L.addVariable(D),L.populateSplitBlock(D,S)})},E.prototype.traverse=function(S,_,L,x){var D=this;L===void 0&&(L=this.vars[0]),x===void 0&&(x=null),L.visitNeighbours(x,function(B,G){_.push(S(B)),D.traverse(S,_,G,L)})},E.prototype.findMinLM=function(){var S=null;return this.compute_lm(this.vars[0],null,function(_){!_.equality&&(S===null||_.lm<S.lm)&&(S=_)}),S},E.prototype.findMinLMBetween=function(S,_){this.compute_lm(S,null,function(){});var L=null;return this.findPath(S,null,_,function(x,D){!x.equality&&x.right===D&&(L===null||x.lm<L.lm)&&(L=x)}),L},E.prototype.findPath=function(S,_,L,x){var D=this,B=!1;return S.visitNeighbours(_,function(G,P){!B&&(P===L||D.findPath(P,S,L,x))&&(B=!0,x(G,P))}),B},E.prototype.isActiveDirectedPathBetween=function(S,_){if(S===_)return!0;for(var L=S.cOut.length;L--;){var x=S.cOut[L];if(x.active&&this.isActiveDirectedPathBetween(x.right,_))return!0}return!1},E.split=function(S){return S.active=!1,[E.createSplitBlock(S.left),E.createSplitBlock(S.right)]},E.createSplitBlock=function(S){var _=new E(S);return _.populateSplitBlock(S,null),_},E.prototype.splitBetween=function(S,_){var L=this.findMinLMBetween(S,_);if(L!==null){var x=E.split(L);return{constraint:L,lb:x[0],rb:x[1]}}return null},E.prototype.mergeAcross=function(S,_,L){_.active=!0;for(var x=0,D=S.vars.length;x<D;++x){var B=S.vars[x];B.offset+=L,this.addVariable(B)}this.posn=this.ps.getPosn()},E.prototype.cost=function(){for(var S=0,_=this.vars.length;_--;){var L=this.vars[_],x=L.position()-L.desiredPosition;S+=x*x*L.weight}return S},E})();i.Block=h;var m=(function(){function E(S){this.vs=S;var _=S.length;for(this.list=new Array(_);_--;){var L=new h(S[_]);this.list[_]=L,L.blockInd=_}}return E.prototype.cost=function(){for(var S=0,_=this.list.length;_--;)S+=this.list[_].cost();return S},E.prototype.insert=function(S){S.blockInd=this.list.length,this.list.push(S)},E.prototype.remove=function(S){var _=this.list.length-1,L=this.list[_];this.list.length=_,S!==L&&(this.list[S.blockInd]=L,L.blockInd=S.blockInd)},E.prototype.merge=function(S){var _=S.left.block,L=S.right.block,x=S.right.offset-S.left.offset-S.gap;_.vars.length<L.vars.length?(L.mergeAcross(_,S,x),this.remove(_)):(_.mergeAcross(L,S,-x),this.remove(L))},E.prototype.forEach=function(S){this.list.forEach(S)},E.prototype.updateBlockPositions=function(){this.list.forEach(function(S){return S.updateWeightedPosition()})},E.prototype.split=function(S){var _=this;this.updateBlockPositions(),this.list.forEach(function(L){var x=L.findMinLM();x!==null&&x.lm<v.LAGRANGIAN_TOLERANCE&&(L=x.left.block,h.split(x).forEach(function(D){return _.insert(D)}),_.remove(L),S.push(x))})},E})();i.Blocks=m;var v=(function(){function E(S,_){this.vs=S,this.cs=_,this.vs=S,S.forEach(function(L){L.cIn=[],L.cOut=[]}),this.cs=_,_.forEach(function(L){L.left.cOut.push(L),L.right.cIn.push(L)}),this.inactive=_.map(function(L){return L.active=!1,L}),this.bs=null}return E.prototype.cost=function(){return this.bs.cost()},E.prototype.setStartingPositions=function(S){this.inactive=this.cs.map(function(_){return _.active=!1,_}),this.bs=new m(this.vs),this.bs.forEach(function(_,L){return _.posn=S[L]})},E.prototype.setDesiredPositions=function(S){this.vs.forEach(function(_,L){return _.desiredPosition=S[L]})},E.prototype.mostViolated=function(){for(var S=Number.MAX_VALUE,_=null,L=this.inactive,x=L.length,D=x,B=0;B<x;++B){var G=L[B];if(!G.unsatisfiable){var P=G.slack();if((G.equality||P<S)&&(S=P,_=G,D=B,G.equality))break}}return D!==x&&(S<E.ZERO_UPPERBOUND&&!_.active||_.equality)&&(L[D]=L[x-1],L.length=x-1),_},E.prototype.satisfy=function(){this.bs==null&&(this.bs=new m(this.vs)),this.bs.split(this.inactive);for(var S=null;(S=this.mostViolated())&&(S.equality||S.slack()<E.ZERO_UPPERBOUND&&!S.active);){var _=S.left.block;if(_!==S.right.block)this.bs.merge(S);else{if(_.isActiveDirectedPathBetween(S.right,S.left)){S.unsatisfiable=!0;continue}var L=_.splitBetween(S.left,S.right);if(L!==null)this.bs.insert(L.lb),this.bs.insert(L.rb),this.bs.remove(_),this.inactive.push(L.constraint);else{S.unsatisfiable=!0;continue}S.slack()>=0?this.inactive.push(S):this.bs.merge(S)}}},E.prototype.solve=function(){this.satisfy();for(var S=Number.MAX_VALUE,_=this.bs.cost();Math.abs(S-_)>1e-4;)this.satisfy(),S=_,_=this.bs.cost();return _},E.LAGRANGIAN_TOLERANCE=-1e-4,E.ZERO_UPPERBOUND=-1e-10,E})();i.Solver=v;function w(E,S,_){for(var L=E.map(function(Je){return new f(Je.desiredCenter)}),x=[],D=E.length,B=0;B<D-1;B++){var G=E[B],P=E[B+1];x.push(new s(L[B],L[B+1],(G.size+P.size)/2))}var te=L[0],pe=L[D-1],Te=E[0].size/2,Se=E[D-1].size/2,Fe=null,Re=null;return S&&(Fe=new f(S,te.weight*1e3),L.push(Fe),x.push(new s(Fe,te,Te))),_&&(Re=new f(_,pe.weight*1e3),L.push(Re),x.push(new s(pe,Re,Se))),new v(L,x).solve(),{newCenters:L.slice(0,E.length).map(function(Je){return Je.position()}),lowerBound:Fe?Fe.position():te.position()-Te,upperBound:Re?Re.position():pe.position()+Se}}i.removeOverlapInOneDimension=w})),Aw=Bn((i=>{var a=i&&i.__extends||(function(){var v=function(w,E){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,_){S.__proto__=_}||function(S,_){for(var L in _)_.hasOwnProperty(L)&&(S[L]=_[L])},v(w,E)};return function(w,E){v(w,E);function S(){this.constructor=w}w.prototype=E===null?Object.create(E):(S.prototype=E.prototype,new S)}})();Object.defineProperty(i,"__esModule",{value:!0});var s=(function(){function v(){this.findIter=function(w){for(var E=this._root,S=this.iterator();E!==null;){var _=this._comparator(w,E.data);if(_===0)return S._cursor=E,S;S._ancestors.push(E),E=E.get_child(_>0)}return null}}return v.prototype.clear=function(){this._root=null,this.size=0},v.prototype.find=function(w){for(var E=this._root;E!==null;){var S=this._comparator(w,E.data);if(S===0)return E.data;E=E.get_child(S>0)}return null},v.prototype.lowerBound=function(w){return this._bound(w,this._comparator)},v.prototype.upperBound=function(w){var E=this._comparator;function S(_,L){return E(L,_)}return this._bound(w,S)},v.prototype.min=function(){var w=this._root;if(w===null)return null;for(;w.left!==null;)w=w.left;return w.data},v.prototype.max=function(){var w=this._root;if(w===null)return null;for(;w.right!==null;)w=w.right;return w.data},v.prototype.iterator=function(){return new f(this)},v.prototype.each=function(w){for(var E=this.iterator(),S;(S=E.next())!==null;)w(S)},v.prototype.reach=function(w){for(var E=this.iterator(),S;(S=E.prev())!==null;)w(S)},v.prototype._bound=function(w,E){for(var S=this._root,_=this.iterator();S!==null;){var L=this._comparator(w,S.data);if(L===0)return _._cursor=S,_;_._ancestors.push(S),S=S.get_child(L>0)}for(var x=_._ancestors.length-1;x>=0;--x)if(S=_._ancestors[x],E(w,S.data)>0)return _._cursor=S,_._ancestors.length=x,_;return _._ancestors.length=0,_},v})();i.TreeBase=s;var f=(function(){function v(w){this._tree=w,this._ancestors=[],this._cursor=null}return v.prototype.data=function(){return this._cursor!==null?this._cursor.data:null},v.prototype.next=function(){if(this._cursor===null){var w=this._tree._root;w!==null&&this._minNode(w)}else if(this._cursor.right===null){var E;do if(E=this._cursor,this._ancestors.length)this._cursor=this._ancestors.pop();else{this._cursor=null;break}while(this._cursor.right===E)}else this._ancestors.push(this._cursor),this._minNode(this._cursor.right);return this._cursor!==null?this._cursor.data:null},v.prototype.prev=function(){if(this._cursor===null){var w=this._tree._root;w!==null&&this._maxNode(w)}else if(this._cursor.left===null){var E;do if(E=this._cursor,this._ancestors.length)this._cursor=this._ancestors.pop();else{this._cursor=null;break}while(this._cursor.left===E)}else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left);return this._cursor!==null?this._cursor.data:null},v.prototype._minNode=function(w){for(;w.left!==null;)this._ancestors.push(w),w=w.left;this._cursor=w},v.prototype._maxNode=function(w){for(;w.right!==null;)this._ancestors.push(w),w=w.right;this._cursor=w},v})();i.Iterator=f;var h=(function(){function v(w){this.data=w,this.left=null,this.right=null,this.red=!0}return v.prototype.get_child=function(w){return w?this.right:this.left},v.prototype.set_child=function(w,E){w?this.right=E:this.left=E},v})(),m=(function(v){a(w,v);function w(E){var S=v.call(this)||this;return S._root=null,S._comparator=E,S.size=0,S}return w.prototype.insert=function(E){var S=!1;if(this._root===null)this._root=new h(E),S=!0,this.size++;else{var _=new h(void 0),L=!1,x=!1,D=null,B=_,G=null,P=this._root;for(B.right=this._root;;){if(P===null?(P=new h(E),G.set_child(L,P),S=!0,this.size++):w.is_red(P.left)&&w.is_red(P.right)&&(P.red=!0,P.left.red=!1,P.right.red=!1),w.is_red(P)&&w.is_red(G)){var te=B.right===D;P===G.get_child(x)?B.set_child(te,w.single_rotate(D,!x)):B.set_child(te,w.double_rotate(D,!x))}var pe=this._comparator(P.data,E);if(pe===0)break;x=L,L=pe<0,D!==null&&(B=D),D=G,G=P,P=P.get_child(L)}this._root=_.right}return this._root.red=!1,S},w.prototype.remove=function(E){if(this._root===null)return!1;var S=new h(void 0),_=S;_.right=this._root;for(var L=null,x=null,D=null,B=!0;_.get_child(B)!==null;){var G=B;x=L,L=_,_=_.get_child(B);var P=this._comparator(E,_.data);if(B=P>0,P===0&&(D=_),!w.is_red(_)&&!w.is_red(_.get_child(B))){if(w.is_red(_.get_child(!B))){var te=w.single_rotate(_,B);L.set_child(G,te),L=te}else if(!w.is_red(_.get_child(!B))){var pe=L.get_child(!G);if(pe!==null)if(!w.is_red(pe.get_child(!G))&&!w.is_red(pe.get_child(G)))L.red=!1,pe.red=!0,_.red=!0;else{var Te=x.right===L;w.is_red(pe.get_child(G))?x.set_child(Te,w.double_rotate(L,G)):w.is_red(pe.get_child(!G))&&x.set_child(Te,w.single_rotate(L,G));var Se=x.get_child(Te);Se.red=!0,_.red=!0,Se.left.red=!1,Se.right.red=!1}}}}return D!==null&&(D.data=_.data,L.set_child(L.right===_,_.get_child(_.left===null)),this.size--),this._root=S.right,this._root!==null&&(this._root.red=!1),D!==null},w.is_red=function(E){return E!==null&&E.red},w.single_rotate=function(E,S){var _=E.get_child(!S);return E.set_child(!S,_.get_child(S)),_.set_child(S,E),E.red=!0,_.red=!1,_},w.double_rotate=function(E,S){return E.set_child(!S,w.single_rotate(E.get_child(!S),!S)),w.single_rotate(E,S)},w})(s);i.RBTree=m})),l1=Bn((i=>{var a=i&&i.__extends||(function(){var W=function(re,me){return W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ne,ue){ne.__proto__=ue}||function(ne,ue){for(var Z in ue)ue.hasOwnProperty(Z)&&(ne[Z]=ue[Z])},W(re,me)};return function(re,me){W(re,me);function ne(){this.constructor=re}re.prototype=me===null?Object.create(me):(ne.prototype=me.prototype,new ne)}})();Object.defineProperty(i,"__esModule",{value:!0});var s=jE(),f=Aw();function h(W){return W.bounds=typeof W.leaves<"u"?W.leaves.reduce(function(re,me){return me.bounds.union(re)},m.empty()):m.empty(),typeof W.groups<"u"&&(W.bounds=W.groups.reduce(function(re,me){return h(me).union(re)},W.bounds)),W.bounds=W.bounds.inflate(W.padding),W.bounds}i.computeGroupBounds=h;var m=(function(){function W(re,me,ne,ue){this.x=re,this.X=me,this.y=ne,this.Y=ue}return W.empty=function(){return new W(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},W.prototype.cx=function(){return(this.x+this.X)/2},W.prototype.cy=function(){return(this.y+this.Y)/2},W.prototype.overlapX=function(re){var me=this.cx(),ne=re.cx();return me<=ne&&re.x<this.X?this.X-re.x:ne<=me&&this.x<re.X?re.X-this.x:0},W.prototype.overlapY=function(re){var me=this.cy(),ne=re.cy();return me<=ne&&re.y<this.Y?this.Y-re.y:ne<=me&&this.y<re.Y?re.Y-this.y:0},W.prototype.setXCentre=function(re){var me=re-this.cx();this.x+=me,this.X+=me},W.prototype.setYCentre=function(re){var me=re-this.cy();this.y+=me,this.Y+=me},W.prototype.width=function(){return this.X-this.x},W.prototype.height=function(){return this.Y-this.y},W.prototype.union=function(re){return new W(Math.min(this.x,re.x),Math.max(this.X,re.X),Math.min(this.y,re.y),Math.max(this.Y,re.Y))},W.prototype.lineIntersections=function(re,me,ne,ue){for(var Z=[[this.x,this.y,this.X,this.y],[this.X,this.y,this.X,this.Y],[this.X,this.Y,this.x,this.Y],[this.x,this.Y,this.x,this.y]],K=[],$=0;$<4;++$){var X=W.lineIntersection(re,me,ne,ue,Z[$][0],Z[$][1],Z[$][2],Z[$][3]);X!==null&&K.push({x:X.x,y:X.y})}return K},W.prototype.rayIntersection=function(re,me){var ne=this.lineIntersections(this.cx(),this.cy(),re,me);return ne.length>0?ne[0]:null},W.prototype.vertices=function(){return[{x:this.x,y:this.y},{x:this.X,y:this.y},{x:this.X,y:this.Y},{x:this.x,y:this.Y}]},W.lineIntersection=function(re,me,ne,ue,Z,K,$,X){var ee=ne-re,ye=$-Z,Me=ue-me,et=X-K,F=et*ee-ye*Me;if(F==0)return null;var ze=re-Z,He=me-K,Ie=(ye*He-et*ze)/F,at=(ee*He-Me*ze)/F;return Ie>=0&&Ie<=1&&at>=0&&at<=1?{x:re+Ie*ee,y:me+Ie*Me}:null},W.prototype.inflate=function(re){return new W(this.x-re,this.X+re,this.y-re,this.Y+re)},W})();i.Rectangle=m;function v(W,re,me){var ne=W.rayIntersection(re.cx(),re.cy())||{x:W.cx(),y:W.cy()},ue=re.rayIntersection(W.cx(),W.cy())||{x:re.cx(),y:re.cy()},Z=ue.x-ne.x,K=ue.y-ne.y,$=Math.sqrt(Z*Z+K*K),X=$-me;return{sourceIntersection:ne,targetIntersection:ue,arrowStart:{x:ne.x+X*Z/$,y:ne.y+X*K/$}}}i.makeEdgeBetween=v;function w(W,re,me){var ne=re.rayIntersection(W.x,W.y);ne||(ne={x:re.cx(),y:re.cy()});var ue=ne.x-W.x,Z=ne.y-W.y,K=Math.sqrt(ue*ue+Z*Z);return{x:ne.x-me*ue/K,y:ne.y-me*Z/K}}i.makeEdgeTo=w;var E=(function(){function W(re,me,ne){this.v=re,this.r=me,this.pos=ne,this.prev=L(),this.next=L()}return W})(),S=(function(){function W(re,me,ne){this.isOpen=re,this.v=me,this.pos=ne}return W})();function _(W,re){return W.pos>re.pos?1:W.pos<re.pos||W.isOpen?-1:re.isOpen?1:0}function L(){return new f.RBTree(function(W,re){return W.pos-re.pos})}var x={getCentre:function(W){return W.cx()},getOpen:function(W){return W.y},getClose:function(W){return W.Y},getSize:function(W){return W.width()},makeRect:function(W,re,me,ne){return new m(me-ne/2,me+ne/2,W,re)},findNeighbours:P},D={getCentre:function(W){return W.cy()},getOpen:function(W){return W.x},getClose:function(W){return W.X},getSize:function(W){return W.height()},makeRect:function(W,re,me,ne){return new m(W,re,me-ne/2,me+ne/2)},findNeighbours:te};function B(W,re,me,ne){ne===void 0&&(ne=!1);var ue=W.padding,Z=typeof W.groups<"u"?W.groups.length:0,K=typeof W.leaves<"u"?W.leaves.length:0,$=Z?W.groups.reduce(function(ht,En){return ht.concat(B(En,re,me,!0))},[]):[],X=(ne?2:0)+K+Z,ee=new Array(X),ye=new Array(X),Me=0,et=function(ht,En){ye[Me]=ht,ee[Me++]=En};if(ne){var F=W.bounds,ze=re.getCentre(F),He=re.getSize(F)/2,Ie=re.getOpen(F),at=re.getClose(F),st=ze-He+ue/2,At=ze+He-ue/2;W.minVar.desiredPosition=st,et(re.makeRect(Ie,at,st,ue),W.minVar),W.maxVar.desiredPosition=At,et(re.makeRect(Ie,at,At,ue),W.maxVar)}K&&W.leaves.forEach(function(ht){return et(ht.bounds,ht.variable)}),Z&&W.groups.forEach(function(ht){var En=ht.bounds;et(re.makeRect(re.getOpen(En),re.getClose(En),re.getCentre(En),re.getSize(En)),ht.minVar)});var Jt=G(ye,ee,re,me);return Z&&(ee.forEach(function(ht){ht.cOut=[],ht.cIn=[]}),Jt.forEach(function(ht){ht.left.cOut.push(ht),ht.right.cIn.push(ht)}),W.groups.forEach(function(ht){var En=(ht.padding-re.getSize(ht.bounds))/2;ht.minVar.cIn.forEach(function(tt){return tt.gap+=En}),ht.minVar.cOut.forEach(function(tt){tt.left=ht.maxVar,tt.gap+=En})})),$.concat(Jt)}function G(W,re,me,ne){var ue,Z=W.length,K=2*Z;console.assert(re.length>=Z);var $=new Array(K);for(ue=0;ue<Z;++ue){var X=W[ue],ee=new E(re[ue],X,me.getCentre(X));$[ue]=new S(!0,ee,me.getOpen(X)),$[ue+Z]=new S(!1,ee,me.getClose(X))}$.sort(_);var ye=new Array,Me=L();for(ue=0;ue<K;++ue){var et=$[ue],ee=et.v;if(et.isOpen)Me.insert(ee),me.findNeighbours(ee,Me);else{Me.remove(ee);var F=function(Ie,at){var st=(me.getSize(Ie.r)+me.getSize(at.r))/2+ne;ye.push(new s.Constraint(Ie.v,at.v,st))},ze=function(Ie,at,st){for(var At,Jt=ee[Ie].iterator();(At=Jt[Ie]())!==null;)st(At,ee),At[at].remove(ee)};ze("prev","next",function(Ie,at){return F(Ie,at)}),ze("next","prev",function(Ie,at){return F(at,Ie)})}}return console.assert(Me.size===0),ye}function P(W,re){var me=function(ne,ue){for(var Z=re.findIter(W),K;(K=Z[ne]())!==null;){var $=K.r.overlapX(W.r);if(($<=0||$<=K.r.overlapY(W.r))&&(W[ne].insert(K),K[ue].insert(W)),$<=0)break}};me("next","prev"),me("prev","next")}function te(W,re){var me=function(ne,ue){var Z=re.findIter(W)[ne]();Z!==null&&Z.r.overlapX(W.r)>0&&(W[ne].insert(Z),Z[ue].insert(W))};me("next","prev"),me("prev","next")}function pe(W,re){return G(W,re,x,1e-6)}i.generateXConstraints=pe;function Te(W,re){return G(W,re,D,1e-6)}i.generateYConstraints=Te;function Se(W){return B(W,x,1e-6)}i.generateXGroupConstraints=Se;function Fe(W){return B(W,D,1e-6)}i.generateYGroupConstraints=Fe;function Re(W){var re=W.map(function(ue){return new s.Variable(ue.cx())}),me=pe(W,re),ne=new s.Solver(re,me);ne.solve(),re.forEach(function(ue,Z){return W[Z].setXCentre(ue.position())}),re=W.map(function(ue){return new s.Variable(ue.cy())}),me=Te(W,re),ne=new s.Solver(re,me),ne.solve(),re.forEach(function(ue,Z){return W[Z].setYCentre(ue.position())})}i.removeOverlaps=Re;var Je=(function(W){a(re,W);function re(me,ne){var ue=W.call(this,0,ne)||this;return ue.index=me,ue}return re})(s.Variable);i.IndexedVariable=Je;var Be=(function(){function W(re,me,ne,ue,Z){var K=this;if(ne===void 0&&(ne=null),ue===void 0&&(ue=null),Z===void 0&&(Z=!1),this.nodes=re,this.groups=me,this.rootGroup=ne,this.avoidOverlaps=Z,this.variables=re.map(function(X,ee){return X.variable=new Je(ee,1)}),ue&&this.createConstraints(ue),Z&&ne&&typeof ne.groups<"u"){re.forEach(function(X){if(!X.width||!X.height){X.bounds=new m(X.x,X.x,X.y,X.y);return}var ee=X.width/2,ye=X.height/2;X.bounds=new m(X.x-ee,X.x+ee,X.y-ye,X.y+ye)}),h(ne);var $=re.length;me.forEach(function(X){K.variables[$]=X.minVar=new Je($++,typeof X.stiffness<"u"?X.stiffness:.01),K.variables[$]=X.maxVar=new Je($++,typeof X.stiffness<"u"?X.stiffness:.01)})}}return W.prototype.createSeparation=function(re){return new s.Constraint(this.nodes[re.left].variable,this.nodes[re.right].variable,re.gap,typeof re.equality<"u"?re.equality:!1)},W.prototype.makeFeasible=function(re){var me=this;if(this.avoidOverlaps){var ne="x",ue="width";re.axis==="x"&&(ne="y",ue="height");var Z=re.offsets.map(function($){return me.nodes[$.node]}).sort(function($,X){return $[ne]-X[ne]}),K=null;Z.forEach(function($){if(K){var X=K[ne]+K[ue];X>$[ne]&&($[ne]=X)}K=$})}},W.prototype.createAlignment=function(re){var me=this,ne=this.nodes[re.offsets[0].node].variable;this.makeFeasible(re);var ue=re.axis==="x"?this.xConstraints:this.yConstraints;re.offsets.slice(1).forEach(function(Z){var K=me.nodes[Z.node].variable;ue.push(new s.Constraint(ne,K,Z.offset,!0))})},W.prototype.createConstraints=function(re){var me=this,ne=function(ue){return typeof ue.type>"u"||ue.type==="separation"};this.xConstraints=re.filter(function(ue){return ue.axis==="x"&&ne(ue)}).map(function(ue){return me.createSeparation(ue)}),this.yConstraints=re.filter(function(ue){return ue.axis==="y"&&ne(ue)}).map(function(ue){return me.createSeparation(ue)}),re.filter(function(ue){return ue.type==="alignment"}).forEach(function(ue){return me.createAlignment(ue)})},W.prototype.setupVariablesAndBounds=function(re,me,ne,ue){this.nodes.forEach(function(Z,K){Z.fixed?(Z.variable.weight=Z.fixedWeight?Z.fixedWeight:1e3,ne[K]=ue(Z)):Z.variable.weight=1;var $=(Z.width||0)/2,X=(Z.height||0)/2,ee=re[K],ye=me[K];Z.bounds=new m(ee-$,ee+$,ye-X,ye+X)})},W.prototype.xProject=function(re,me,ne){!this.rootGroup&&!(this.avoidOverlaps||this.xConstraints)||this.project(re,me,re,ne,function(ue){return ue.px},this.xConstraints,Se,function(ue){return ue.bounds.setXCentre(ne[ue.variable.index]=ue.variable.position())},function(ue){var Z=ne[ue.minVar.index]=ue.minVar.position(),K=ne[ue.maxVar.index]=ue.maxVar.position(),$=ue.padding/2;ue.bounds.x=Z-$,ue.bounds.X=K+$})},W.prototype.yProject=function(re,me,ne){!this.rootGroup&&!this.yConstraints||this.project(re,me,me,ne,function(ue){return ue.py},this.yConstraints,Fe,function(ue){return ue.bounds.setYCentre(ne[ue.variable.index]=ue.variable.position())},function(ue){var Z=ne[ue.minVar.index]=ue.minVar.position(),K=ne[ue.maxVar.index]=ue.maxVar.position(),$=ue.padding/2;ue.bounds.y=Z-$,ue.bounds.Y=K+$})},W.prototype.projectFunctions=function(){var re=this;return[function(me,ne,ue){return re.xProject(me,ne,ue)},function(me,ne,ue){return re.yProject(me,ne,ue)}]},W.prototype.project=function(re,me,ne,ue,Z,K,$,X,ee){this.setupVariablesAndBounds(re,me,ue,Z),this.rootGroup&&this.avoidOverlaps&&(h(this.rootGroup),K=K.concat($(this.rootGroup))),this.solve(this.variables,K,ne,ue),this.nodes.forEach(X),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(ee),h(this.rootGroup))},W.prototype.solve=function(re,me,ne,ue){var Z=new s.Solver(re,me);Z.setStartingPositions(ne),Z.setDesiredPositions(ue),Z.solve()},W})();i.Projection=Be})),Cw=Bn((i=>{Object.defineProperty(i,"__esModule",{value:!0});var a=(function(){function f(h){this.elem=h,this.subheaps=[]}return f.prototype.toString=function(h){for(var m="",v=!1,w=0;w<this.subheaps.length;++w){var E=this.subheaps[w];if(!E.elem){v=!1;continue}v&&(m=m+","),m=m+E.toString(h),v=!0}return m!==""&&(m="("+m+")"),(this.elem?h(this.elem):"")+m},f.prototype.forEach=function(h){this.empty()||(h(this.elem,this),this.subheaps.forEach(function(m){return m.forEach(h)}))},f.prototype.count=function(){return this.empty()?0:1+this.subheaps.reduce(function(h,m){return h+m.count()},0)},f.prototype.min=function(){return this.elem},f.prototype.empty=function(){return this.elem==null},f.prototype.contains=function(h){if(this===h)return!0;for(var m=0;m<this.subheaps.length;m++)if(this.subheaps[m].contains(h))return!0;return!1},f.prototype.isHeap=function(h){var m=this;return this.subheaps.every(function(v){return h(m.elem,v.elem)&&v.isHeap(h)})},f.prototype.insert=function(h,m){return this.merge(new f(h),m)},f.prototype.merge=function(h,m){return this.empty()?h:h.empty()?this:m(this.elem,h.elem)?(this.subheaps.push(h),this):(h.subheaps.push(this),h)},f.prototype.removeMin=function(h){return this.empty()?null:this.mergePairs(h)},f.prototype.mergePairs=function(h){if(this.subheaps.length==0)return new f(null);if(this.subheaps.length==1)return this.subheaps[0];var m=this.subheaps.pop().merge(this.subheaps.pop(),h),v=this.mergePairs(h);return m.merge(v,h)},f.prototype.decreaseKey=function(h,m,v,w){var E=h.removeMin(w);h.elem=E.elem,h.subheaps=E.subheaps,v!==null&&E.elem!==null&&v(h.elem,h);var S=new f(m);return v!==null&&v(m,S),this.merge(S,w)},f})();i.PairingHeap=a;var s=(function(){function f(h){this.lessThan=h}return f.prototype.top=function(){return this.empty()?null:this.root.elem},f.prototype.push=function(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];for(var v,w=0,E;E=h[w];++w)v=new a(E),this.root=this.empty()?v:this.root.merge(v,this.lessThan);return v},f.prototype.empty=function(){return!this.root||!this.root.elem},f.prototype.isHeap=function(){return this.root.isHeap(this.lessThan)},f.prototype.forEach=function(h){this.root.forEach(h)},f.prototype.pop=function(){if(this.empty())return null;var h=this.root.min();return this.root=this.root.removeMin(this.lessThan),h},f.prototype.reduceKey=function(h,m,v){v===void 0&&(v=null),this.root=this.root.decreaseKey(h,m,v,this.lessThan)},f.prototype.toString=function(h){return this.root.toString(h)},f.prototype.count=function(){return this.root.count()},f})();i.PriorityQueue=s})),$b=Bn((i=>{Object.defineProperty(i,"__esModule",{value:!0});var a=Cw(),s=(function(){function v(w,E){this.id=w,this.distance=E}return v})(),f=(function(){function v(w){this.id=w,this.neighbours=[]}return v})(),h=(function(){function v(w,E,S){this.node=w,this.prev=E,this.d=S}return v})(),m=(function(){function v(w,E,S,_,L){this.n=w,this.es=E,this.neighbours=new Array(this.n);for(var x=this.n;x--;)this.neighbours[x]=new f(x);for(x=this.es.length;x--;){var D=this.es[x],B=S(D),G=_(D),P=L(D);this.neighbours[B].neighbours.push(new s(G,P)),this.neighbours[G].neighbours.push(new s(B,P))}}return v.prototype.DistanceMatrix=function(){for(var w=new Array(this.n),E=0;E<this.n;++E)w[E]=this.dijkstraNeighbours(E);return w},v.prototype.DistancesFromNode=function(w){return this.dijkstraNeighbours(w)},v.prototype.PathFromNodeToNode=function(w,E){return this.dijkstraNeighbours(w,E)},v.prototype.PathFromNodeToNodeWithPrevCost=function(w,E,S){var _=new a.PriorityQueue(function(Fe,Re){return Fe.d<=Re.d}),L=this.neighbours[w],x=new h(L,null,0),D={};for(_.push(x);!_.empty()&&(x=_.pop(),L=x.node,L.id!==E);)for(var B=L.neighbours.length;B--;){var G=L.neighbours[B],P=this.neighbours[G.id];if(!(x.prev&&P.id===x.prev.node.id)){var te=P.id+","+L.id;if(!(te in D&&D[te]<=x.d)){var pe=x.prev?S(x.prev.node.id,L.id,P.id):0,Te=x.d+G.distance+pe;D[te]=Te,_.push(new h(P,x,Te))}}}for(var Se=[];x.prev;)x=x.prev,Se.push(x.node.id);return Se},v.prototype.dijkstraNeighbours=function(w,E){E===void 0&&(E=-1);for(var S=new a.PriorityQueue(function(pe,Te){return pe.d<=Te.d}),_=this.neighbours.length,L=new Array(_);_--;){var x=this.neighbours[_];x.d=_===w?0:Number.POSITIVE_INFINITY,x.q=S.push(x)}for(;!S.empty();){var D=S.pop();if(L[D.id]=D.d,D.id===E){for(var B=[],G=D;typeof G.prev<"u";)B.push(G.prev.id),G=G.prev;return B}for(_=D.neighbours.length;_--;){var P=D.neighbours[_],G=this.neighbours[P.id],te=D.d+P.distance;D.d!==Number.MAX_VALUE&&G.d>te&&(G.d=te,G.prev=D,S.reduceKey(G.q,G,function(Te,Se){return Te.q=Se}))}}return L},v})();i.Calculator=m})),xw=Bn((i=>{var a=i&&i.__extends||(function(){var Z=function(K,$){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(X,ee){X.__proto__=ee}||function(X,ee){for(var ye in ee)ee.hasOwnProperty(ye)&&(X[ye]=ee[ye])},Z(K,$)};return function(K,$){Z(K,$);function X(){this.constructor=K}K.prototype=$===null?Object.create($):(X.prototype=$.prototype,new X)}})();Object.defineProperty(i,"__esModule",{value:!0});var s=l1(),f=(function(){function Z(){}return Z})();i.Point=f;var h=(function(){function Z(K,$,X,ee){this.x1=K,this.y1=$,this.x2=X,this.y2=ee}return Z})();i.LineSegment=h;var m=(function(Z){a(K,Z);function K(){return Z!==null&&Z.apply(this,arguments)||this}return K})(f);i.PolyPoint=m;function v(Z,K,$){return(K.x-Z.x)*($.y-Z.y)-($.x-Z.x)*(K.y-Z.y)}i.isLeft=v;function w(Z,K,$){return v(Z,K,$)>0}function E(Z,K,$){return v(Z,K,$)<0}function S(Z){var K=Z.slice(0).sort(function(at,st){return at.x!==st.x?st.x-at.x:st.y-at.y}),$=Z.length,X,ee=0,ye=K[0].x;for(X=1;X<$&&K[X].x===ye;++X);var Me=X-1,et=[];if(et.push(K[ee]),Me===$-1)K[Me].y!==K[ee].y&&et.push(K[Me]);else{var F,ze=$-1,He=K[$-1].x;for(X=$-2;X>=0&&K[X].x===He;X--);for(F=X+1,X=Me;++X<=F;)if(!(v(K[ee],K[F],K[X])>=0&&X<F)){for(;et.length>1&&!(v(et[et.length-2],et[et.length-1],K[X])>0);)et.length-=1;X!=ee&&et.push(K[X])}ze!=F&&et.push(K[ze]);var Ie=et.length;for(X=F;--X>=Me;)if(!(v(K[ze],K[Me],K[X])>=0&&X>Me)){for(;et.length>Ie&&!(v(et[et.length-2],et[et.length-1],K[X])>0);)et.length-=1;X!=ee&&et.push(K[X])}}return et}i.ConvexHull=S;function _(Z,K,$){K.slice(0).sort(function(X,ee){return Math.atan2(X.y-Z.y,X.x-Z.x)-Math.atan2(ee.y-Z.y,ee.x-Z.x)}).forEach($)}i.clockwiseRadialSweep=_;function L(Z,K){var $=K.slice(0);return $.push(K[0]),{rtan:x(Z,$),ltan:D(Z,$)}}function x(Z,K){var $=K.length-1,X,ee,ye,Me,et;if(E(Z,K[1],K[0])&&!w(Z,K[$-1],K[0]))return 0;for(X=0,ee=$;;){if(ee-X===1)return w(Z,K[X],K[ee])?X:ee;if(ye=Math.floor((X+ee)/2),et=E(Z,K[ye+1],K[ye]),et&&!w(Z,K[ye-1],K[ye]))return ye;Me=w(Z,K[X+1],K[X]),Me?et||w(Z,K[X],K[ye])?ee=ye:X=ye:et&&E(Z,K[X],K[ye])?ee=ye:X=ye}}function D(Z,K){var $=K.length-1,X,ee,ye,Me,et;if(w(Z,K[$-1],K[0])&&!E(Z,K[1],K[0]))return 0;for(X=0,ee=$;;){if(ee-X===1)return E(Z,K[X],K[ee])?X:ee;if(ye=Math.floor((X+ee)/2),et=E(Z,K[ye+1],K[ye]),w(Z,K[ye-1],K[ye])&&!et)return ye;Me=E(Z,K[X+1],K[X]),Me?et?E(Z,K[X],K[ye])?ee=ye:X=ye:ee=ye:et?X=ye:w(Z,K[X],K[ye])?ee=ye:X=ye}}function B(Z,K,$,X,ee,ye){for(var Me=$(K[0],Z),et=X(Z[Me],K),F=!1;!F;){for(F=!0;Me===Z.length-1&&(Me=0),!ee(K[et],Z[Me],Z[Me+1]);)++Me;for(;et===0&&(et=K.length-1),!ye(Z[Me],K[et],K[et-1]);)--et,F=!1}return{t1:Me,t2:et}}i.tangent_PolyPolyC=B;function G(Z,K){var $=P(K,Z);return{t1:$.t2,t2:$.t1}}i.LRtangent_PolyPolyC=G;function P(Z,K){return B(Z,K,x,D,w,E)}i.RLtangent_PolyPolyC=P;function te(Z,K){return B(Z,K,D,D,E,E)}i.LLtangent_PolyPolyC=te;function pe(Z,K){return B(Z,K,x,x,w,w)}i.RRtangent_PolyPolyC=pe;var Te=(function(){function Z(K,$){this.t1=K,this.t2=$}return Z})();i.BiTangent=Te;var Se=(function(){function Z(){}return Z})();i.BiTangents=Se;var Fe=(function(Z){a(K,Z);function K(){return Z!==null&&Z.apply(this,arguments)||this}return K})(f);i.TVGPoint=Fe;var Re=(function(){function Z(K,$,X,ee){this.id=K,this.polyid=$,this.polyvertid=X,this.p=ee,ee.vv=this}return Z})();i.VisibilityVertex=Re;var Je=(function(){function Z(K,$){this.source=K,this.target=$}return Z.prototype.length=function(){var K=this.source.p.x-this.target.p.x,$=this.source.p.y-this.target.p.y;return Math.sqrt(K*K+$*$)},Z})();i.VisibilityEdge=Je;var Be=(function(){function Z(K,$){if(this.P=K,this.V=[],this.E=[],$)this.V=$.V.slice(0),this.E=$.E.slice(0);else{for(var X=K.length,ee=0;ee<X;ee++){for(var ye=K[ee],Me=0;Me<ye.length;++Me){var et=ye[Me],F=new Re(this.V.length,ee,Me,et);this.V.push(F),Me>0&&this.E.push(new Je(ye[Me-1].vv,F))}ye.length>1&&this.E.push(new Je(ye[0].vv,ye[ye.length-1].vv))}for(var ee=0;ee<X-1;ee++)for(var ze=K[ee],Me=ee+1;Me<X;Me++){var He=K[Me],Ie=re(ze,He);for(var at in Ie){var st=Ie[at],At=ze[st.t1],Jt=He[st.t2];this.addEdgeIfVisible(At,Jt,ee,Me)}}}}return Z.prototype.addEdgeIfVisible=function(K,$,X,ee){this.intersectsPolys(new h(K.x,K.y,$.x,$.y),X,ee)||this.E.push(new Je(K.vv,$.vv))},Z.prototype.addPoint=function(K,$){var X=this.P.length;this.V.push(new Re(this.V.length,X,0,K));for(var ee=0;ee<X;++ee)if(ee!==$){var ye=this.P[ee],Me=L(K,ye);this.addEdgeIfVisible(K,ye[Me.ltan],$,ee),this.addEdgeIfVisible(K,ye[Me.rtan],$,ee)}return K.vv},Z.prototype.intersectsPolys=function(K,$,X){for(var ee=0,ye=this.P.length;ee<ye;++ee)if(ee!=$&&ee!=X&&W(K,this.P[ee]).length>0)return!0;return!1},Z})();i.TangentVisibilityGraph=Be;function W(Z,K){for(var $=[],X=1,ee=K.length;X<ee;++X){var ye=s.Rectangle.lineIntersection(Z.x1,Z.y1,Z.x2,Z.y2,K[X-1].x,K[X-1].y,K[X].x,K[X].y);ye&&$.push(ye)}return $}function re(Z,K){for(var $=Z.length-1,X=K.length-1,ee=new Se,ye=0;ye<$;++ye)for(var Me=0;Me<X;++Me){var et=Z[ye==0?$-1:ye-1],F=Z[ye],ze=Z[ye+1],He=K[Me==0?X-1:Me-1],Ie=K[Me],at=K[Me+1],st=v(et,F,Ie),At=v(F,He,Ie),Jt=v(F,Ie,at),ht=v(He,Ie,F),En=v(Ie,et,F),tt=v(Ie,F,ze);st>=0&&At>=0&&Jt<0&&ht>=0&&En>=0&&tt<0?ee.ll=new Te(ye,Me):st<=0&&At<=0&&Jt>0&&ht<=0&&En<=0&&tt>0?ee.rr=new Te(ye,Me):st<=0&&At>0&&Jt<=0&&ht>=0&&En<0&&tt>=0?ee.rl=new Te(ye,Me):st>=0&&At<0&&Jt>=0&&ht<=0&&En>0&&tt<=0&&(ee.lr=new Te(ye,Me))}return ee}i.tangents=re;function me(Z,K){for(var $=1,X=K.length;$<X;++$)if(E(K[$-1],K[$],Z))return!1;return!0}function ne(Z,K){return!Z.every(function($){return!me($,K)})}function ue(Z,K){if(ne(Z,K)||ne(K,Z))return!0;for(var $=1,X=Z.length;$<X;++$){var ee=Z[$],ye=Z[$-1];if(W(new h(ye.x,ye.y,ee.x,ee.y),K).length>0)return!0}return!1}i.polysOverlap=ue})),Lw=Bn((i=>{Object.defineProperty(i,"__esModule",{value:!0});var a={PADDING:10,GOLDEN_SECTION:(1+Math.sqrt(5))/2,FLOAT_EPSILON:1e-4,MAX_INERATIONS:100};function s(h,m,v,G,B,S){B===void 0&&(B=1),S===void 0&&(S=!0);var _=0,L=0,x=m,D=v,B=typeof B<"u"?B:1,G=typeof G<"u"?G:0,P=0,te=0,pe=0,Te=0,Se=[];if(h.length==0)return;Fe(h),Je(h,B),S&&Re(h);function Fe(ne){ne.forEach(function(Z){ue(Z)});function ue(Z){var K=Number.MAX_VALUE,$=Number.MAX_VALUE,X=0,ee=0;Z.array.forEach(function(ye){var Me=typeof ye.width<"u"?ye.width:G,et=typeof ye.height<"u"?ye.height:G;Me/=2,et/=2,X=Math.max(ye.x+Me,X),K=Math.min(ye.x-Me,K),ee=Math.max(ye.y+et,ee),$=Math.min(ye.y-et,$)}),Z.width=X-K,Z.height=ee-$}}function Re(ne){ne.forEach(function(ue){var Z={x:0,y:0};ue.array.forEach(function(X){Z.x+=X.x,Z.y+=X.y}),Z.x/=ue.array.length,Z.y/=ue.array.length;var K={x:Z.x-ue.width/2,y:Z.y-ue.height/2},$={x:ue.x-K.x+x/2-P/2,y:ue.y-K.y+D/2-te/2};ue.array.forEach(function(X){X.x+=$.x,X.y+=$.y})})}function Je(ne,ue){var Z=Number.POSITIVE_INFINITY,K=0;ne.sort(function(at,st){return st.height-at.height}),pe=ne.reduce(function(at,st){return at.width<st.width?at.width:st.width});for(var $=He=pe,X=Ie=re(ne),ee=0,ye=Number.MAX_VALUE,Me=Number.MAX_VALUE,et=-1,F=Number.MAX_VALUE,ze=Number.MAX_VALUE;F>pe||ze>a.FLOAT_EPSILON;){if(et!=1)var He=X-(X-$)/a.GOLDEN_SECTION,ye=Be(ne,He);if(et!=0)var Ie=$+(X-$)/a.GOLDEN_SECTION,Me=Be(ne,Ie);if(F=Math.abs(He-Ie),ze=Math.abs(ye-Me),ye<Z&&(Z=ye,K=He),Me<Z&&(Z=Me,K=Ie),ye>Me?($=He,He=Ie,ye=Me,et=1):(X=Ie,Ie=He,Me=ye,et=0),ee++>100)break}Be(ne,K)}function Be(ne,ue){Se=[],P=0,te=0,Te=L;for(var Z=0;Z<ne.length;Z++){var K=ne[Z];W(K,ue)}return Math.abs(me()-B)}function W(ne,ue){for(var Z=void 0,K=0;K<Se.length;K++)if(Se[K].space_left>=ne.height&&Se[K].x+Se[K].width+ne.width+a.PADDING-ue<=a.FLOAT_EPSILON){Z=Se[K];break}Se.push(ne),Z!==void 0?(ne.x=Z.x+Z.width+a.PADDING,ne.y=Z.bottom,ne.space_left=ne.height,ne.bottom=ne.y,Z.space_left-=ne.height+a.PADDING,Z.bottom+=ne.height+a.PADDING):(ne.y=Te,Te+=ne.height+a.PADDING,ne.x=_,ne.bottom=ne.y,ne.space_left=ne.height),ne.y+ne.height-te>-a.FLOAT_EPSILON&&(te=ne.y+ne.height-L),ne.x+ne.width-P>-a.FLOAT_EPSILON&&(P=ne.x+ne.width-_)}function re(ne){var ue=0;return ne.forEach(function(Z){return ue+=Z.width+a.PADDING}),ue}function me(){return P/te}}i.applyPacking=s;function f(h,m){for(var v={},w={},E=[],S=0,_=0;_<m.length;_++){var L=m[_],x=L.source,D=L.target;w[x.index]?w[x.index].push(D):w[x.index]=[D],w[D.index]?w[D.index].push(x):w[D.index]=[x]}for(var _=0;_<h.length;_++){var B=h[_];v[B.index]||G(B,!0)}function G(P,te){if(v[P.index]===void 0){te&&(S++,E.push({array:[]})),v[P.index]=S,E[S-1].array.push(P);var pe=w[P.index];if(pe)for(var Te=0;Te<pe.length;Te++)G(pe[Te],!1)}}return E}i.separateGraphs=f})),s1=Bn((i=>{Object.defineProperty(i,"__esModule",{value:!0});var a=ww(),s=qE(),f=GE(),h=l1(),m=$b(),v=xw(),w=Lw(),E;(function(L){L[L.start=0]="start",L[L.tick=1]="tick",L[L.end=2]="end"})(E=i.EventType||(i.EventType={}));function S(L){return typeof L.leaves<"u"||typeof L.groups<"u"}var _=(function(){function L(){var x=this;this._canvasSize=[1,1],this._linkDistance=20,this._defaultNodeSize=10,this._linkLengthCalculator=null,this._linkType=null,this._avoidOverlaps=!1,this._handleDisconnected=!0,this._running=!1,this._nodes=[],this._groups=[],this._rootGroup=null,this._links=[],this._constraints=[],this._distanceMatrix=null,this._descent=null,this._directedLinkConstraints=null,this._threshold=.01,this._visibilityGraph=null,this._groupCompactness=1e-6,this.event=null,this.linkAccessor={getSourceIndex:L.getSourceIndex,getTargetIndex:L.getTargetIndex,setLength:L.setLinkLength,getType:function(D){return typeof x._linkType=="function"?x._linkType(D):0}}}return L.prototype.on=function(x,D){return this.event||(this.event={}),typeof x=="string"?this.event[E[x]]=D:this.event[x]=D,this},L.prototype.trigger=function(x){this.event&&typeof this.event[x.type]<"u"&&this.event[x.type](x)},L.prototype.kick=function(){for(;!this.tick(););},L.prototype.tick=function(){if(this._alpha<this._threshold)return this._running=!1,this.trigger({type:E.end,alpha:this._alpha=0,stress:this._lastStress}),!0;var x=this._nodes.length;this._links.length;var D,B;for(this._descent.locks.clear(),B=0;B<x;++B)if(D=this._nodes[B],D.fixed){(typeof D.px>"u"||typeof D.py>"u")&&(D.px=D.x,D.py=D.y);var G=[D.px,D.py];this._descent.locks.add(B,G)}var P=this._descent.rungeKutta();return P===0?this._alpha=0:typeof this._lastStress<"u"&&(this._alpha=P),this._lastStress=P,this.updateNodePositions(),this.trigger({type:E.tick,alpha:this._alpha,stress:this._lastStress}),!1},L.prototype.updateNodePositions=function(){for(var x=this._descent.x[0],D=this._descent.x[1],B,G=this._nodes.length;G--;)B=this._nodes[G],B.x=x[G],B.y=D[G]},L.prototype.nodes=function(x){if(!x){if(this._nodes.length===0&&this._links.length>0){var D=0;this._links.forEach(function(G){D=Math.max(D,G.source,G.target)}),this._nodes=new Array(++D);for(var B=0;B<D;++B)this._nodes[B]={}}return this._nodes}return this._nodes=x,this},L.prototype.groups=function(x){var D=this;return x?(this._groups=x,this._rootGroup={},this._groups.forEach(function(B){typeof B.padding>"u"&&(B.padding=1),typeof B.leaves<"u"&&B.leaves.forEach(function(G,P){typeof G=="number"&&((B.leaves[P]=D._nodes[G]).parent=B)}),typeof B.groups<"u"&&B.groups.forEach(function(G,P){typeof G=="number"&&((B.groups[P]=D._groups[G]).parent=B)})}),this._rootGroup.leaves=this._nodes.filter(function(B){return typeof B.parent>"u"}),this._rootGroup.groups=this._groups.filter(function(B){return typeof B.parent>"u"}),this):this._groups},L.prototype.powerGraphGroups=function(x){var D=a.getGroups(this._nodes,this._links,this.linkAccessor,this._rootGroup);return this.groups(D.groups),x(D),this},L.prototype.avoidOverlaps=function(x){return arguments.length?(this._avoidOverlaps=x,this):this._avoidOverlaps},L.prototype.handleDisconnected=function(x){return arguments.length?(this._handleDisconnected=x,this):this._handleDisconnected},L.prototype.flowLayout=function(x,D){return arguments.length||(x="y"),this._directedLinkConstraints={axis:x,getMinSeparation:typeof D=="number"?function(){return D}:D},this},L.prototype.links=function(x){return arguments.length?(this._links=x,this):this._links},L.prototype.constraints=function(x){return arguments.length?(this._constraints=x,this):this._constraints},L.prototype.distanceMatrix=function(x){return arguments.length?(this._distanceMatrix=x,this):this._distanceMatrix},L.prototype.size=function(x){return x?(this._canvasSize=x,this):this._canvasSize},L.prototype.defaultNodeSize=function(x){return x?(this._defaultNodeSize=x,this):this._defaultNodeSize},L.prototype.groupCompactness=function(x){return x?(this._groupCompactness=x,this):this._groupCompactness},L.prototype.linkDistance=function(x){return x?(this._linkDistance=typeof x=="function"?x:+x,this._linkLengthCalculator=null,this):this._linkDistance},L.prototype.linkType=function(x){return this._linkType=x,this},L.prototype.convergenceThreshold=function(x){return x?(this._threshold=typeof x=="function"?x:+x,this):this._threshold},L.prototype.alpha=function(x){return arguments.length?(x=+x,this._alpha?x>0?this._alpha=x:this._alpha=0:x>0&&(this._running||(this._running=!0,this.trigger({type:E.start,alpha:this._alpha=x}),this.kick())),this):this._alpha},L.prototype.getLinkLength=function(x){return typeof this._linkDistance=="function"?+this._linkDistance(x):this._linkDistance},L.setLinkLength=function(x,D){x.length=D},L.prototype.getLinkType=function(x){return typeof this._linkType=="function"?this._linkType(x):0},L.prototype.symmetricDiffLinkLengths=function(x,D){var B=this;return D===void 0&&(D=1),this.linkDistance(function(G){return x*G.length}),this._linkLengthCalculator=function(){return s.symmetricDiffLinkLengths(B._links,B.linkAccessor,D)},this},L.prototype.jaccardLinkLengths=function(x,D){var B=this;return D===void 0&&(D=1),this.linkDistance(function(G){return x*G.length}),this._linkLengthCalculator=function(){return s.jaccardLinkLengths(B._links,B.linkAccessor,D)},this},L.prototype.start=function(x,D,B,G,P,te){var pe=this;x===void 0&&(x=0),D===void 0&&(D=0),B===void 0&&(B=0),G===void 0&&(G=0),P===void 0&&(P=!0),te===void 0&&(te=!0);var Te,Se=this.nodes().length,Fe=Se+2*this._groups.length;this._links.length;var Re=this._canvasSize[0],Je=this._canvasSize[1],Be=new Array(Fe),W=new Array(Fe),re=null,me=this._avoidOverlaps;this._nodes.forEach(function(ye,Me){ye.index=Me,typeof ye.x>"u"&&(ye.x=Re/2,ye.y=Je/2),Be[Me]=ye.x,W[Me]=ye.y}),this._linkLengthCalculator&&this._linkLengthCalculator();var ne;this._distanceMatrix?ne=this._distanceMatrix:(ne=new m.Calculator(Fe,this._links,L.getSourceIndex,L.getTargetIndex,function(ye){return pe.getLinkLength(ye)}).DistanceMatrix(),re=f.Descent.createSquareMatrix(Fe,function(){return 2}),this._links.forEach(function(ye){typeof ye.source=="number"&&(ye.source=pe._nodes[ye.source]),typeof ye.target=="number"&&(ye.target=pe._nodes[ye.target])}),this._links.forEach(function(ye){var Me=L.getSourceIndex(ye),et=L.getTargetIndex(ye);re[Me][et]=re[et][Me]=ye.weight||1}));var ue=f.Descent.createSquareMatrix(Fe,function(ye,Me){return ne[ye][Me]});if(this._rootGroup&&typeof this._rootGroup.groups<"u"){var Te=Se,Z=function(Me,et,F,ze){re[Me][et]=re[et][Me]=F,ue[Me][et]=ue[et][Me]=ze};this._groups.forEach(function(Me){Z(Te,Te+1,pe._groupCompactness,.1),Be[Te]=0,W[Te++]=0,Be[Te]=0,W[Te++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var K=this._constraints||[];this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,K=K.concat(s.generateDirectedEdgeConstraints(Se,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new f.Descent([Be,W],ue),this._descent.locks.clear();for(var Te=0;Te<Se;++Te){var $=this._nodes[Te];if($.fixed){$.px=$.x,$.py=$.y;var X=[$.x,$.y];this._descent.locks.add(Te,X)}}if(this._descent.threshold=this._threshold,this.initialLayout(x,Be,W),K.length>0&&(this._descent.project=new h.Projection(this._nodes,this._groups,this._rootGroup,K).projectFunctions()),this._descent.run(D),this.separateOverlappingComponents(Re,Je,te),this.avoidOverlaps(me),me&&(this._nodes.forEach(function(ye,Me){ye.x=Be[Me],ye.y=W[Me]}),this._descent.project=new h.Projection(this._nodes,this._groups,this._rootGroup,K,!0).projectFunctions(),this._nodes.forEach(function(ye,Me){Be[Me]=ye.x,W[Me]=ye.y})),this._descent.G=re,this._descent.run(B),G){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=Se,this._descent.scaleSnapByMaxH=Se!=Fe;var ee=f.Descent.createSquareMatrix(Fe,function(ye,Me){return ye>=Se||Me>=Se?re[ye][Me]:0});this._descent.G=ee,this._descent.run(G)}return this.updateNodePositions(),this.separateOverlappingComponents(Re,Je,te),P?this.resume():this},L.prototype.initialLayout=function(x,D,B){if(this._groups.length>0&&x>0){var G=this._nodes.length,P=this._links.map(function(pe){return{source:pe.source.index,target:pe.target.index}}),te=this._nodes.map(function(pe){return{index:pe.index}});this._groups.forEach(function(pe,Te){te.push({index:pe.index=G+Te})}),this._groups.forEach(function(pe,Te){typeof pe.leaves<"u"&&pe.leaves.forEach(function(Se){return P.push({source:pe.index,target:Se.index})}),typeof pe.groups<"u"&&pe.groups.forEach(function(Se){return P.push({source:pe.index,target:Se.index})})}),new L().size(this.size()).nodes(te).links(P).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(x,0,0,0,!1),this._nodes.forEach(function(pe){D[pe.index]=te[pe.index].x,B[pe.index]=te[pe.index].y})}else this._descent.run(x)},L.prototype.separateOverlappingComponents=function(x,D,B){var G=this;if(B===void 0&&(B=!0),!this._distanceMatrix&&this._handleDisconnected){var P=this._descent.x[0],te=this._descent.x[1];this._nodes.forEach(function(Te,Se){Te.x=P[Se],Te.y=te[Se]});var pe=w.separateGraphs(this._nodes,this._links);w.applyPacking(pe,x,D,this._defaultNodeSize,1,B),this._nodes.forEach(function(Te,Se){G._descent.x[0][Se]=Te.x,G._descent.x[1][Se]=Te.y,Te.bounds&&(Te.bounds.setXCentre(Te.x),Te.bounds.setYCentre(Te.y))})}},L.prototype.resume=function(){return this.alpha(.1)},L.prototype.stop=function(){return this.alpha(0)},L.prototype.prepareEdgeRouting=function(x){x===void 0&&(x=0),this._visibilityGraph=new v.TangentVisibilityGraph(this._nodes.map(function(D){return D.bounds.inflate(-x).vertices()}))},L.prototype.routeEdge=function(x,D,B){D===void 0&&(D=5);var G=[],P=new v.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),te={x:x.source.x,y:x.source.y},pe={x:x.target.x,y:x.target.y},Te=P.addPoint(te,x.source.index),Se=P.addPoint(pe,x.target.index);P.addEdgeIfVisible(te,pe,x.source.index,x.target.index),typeof B<"u"&&B(P);var Fe=function(Z){return Z.source.id},Re=function(Z){return Z.target.id},Je=function(Z){return Z.length()},Be=new m.Calculator(P.V.length,P.E,Fe,Re,Je).PathFromNodeToNode(Te.id,Se.id);if(Be.length===1||Be.length===P.V.length){var W=h.makeEdgeBetween(x.source.innerBounds,x.target.innerBounds,D);G=[W.sourceIntersection,W.arrowStart]}else{for(var re=Be.length-2,me=P.V[Be[re]].p,ne=P.V[Be[0]].p,G=[x.source.innerBounds.rayIntersection(me.x,me.y)],ue=re;ue>=0;--ue)G.push(P.V[Be[ue]].p);G.push(h.makeEdgeTo(ne,x.target.innerBounds,D))}return G},L.getSourceIndex=function(x){return typeof x.source=="number"?x.source:x.source.index},L.getTargetIndex=function(x){return typeof x.target=="number"?x.target:x.target.index},L.linkId=function(x){return L.getSourceIndex(x)+"-"+L.getTargetIndex(x)},L.dragStart=function(x){S(x)?L.storeOffset(x,L.dragOrigin(x)):(L.stopNode(x),x.fixed|=2)},L.stopNode=function(x){x.px=x.x,x.py=x.y},L.storeOffset=function(x,D){typeof x.leaves<"u"&&x.leaves.forEach(function(B){B.fixed|=2,L.stopNode(B),B._dragGroupOffsetX=B.x-D.x,B._dragGroupOffsetY=B.y-D.y}),typeof x.groups<"u"&&x.groups.forEach(function(B){return L.storeOffset(B,D)})},L.dragOrigin=function(x){return S(x)?{x:x.bounds.cx(),y:x.bounds.cy()}:x},L.drag=function(x,D){S(x)?(typeof x.leaves<"u"&&x.leaves.forEach(function(B){x.bounds.setXCentre(D.x),x.bounds.setYCentre(D.y),B.px=B._dragGroupOffsetX+D.x,B.py=B._dragGroupOffsetY+D.y}),typeof x.groups<"u"&&x.groups.forEach(function(B){return L.drag(B,D)})):(x.px=D.x,x.py=D.y)},L.dragEnd=function(x){S(x)?(typeof x.leaves<"u"&&x.leaves.forEach(function(D){L.dragEnd(D),delete D._dragGroupOffsetX,delete D._dragGroupOffsetY}),typeof x.groups<"u"&&x.groups.forEach(L.dragEnd)):x.fixed&=-7},L.mouseOver=function(x){x.fixed|=4,x.px=x.x,x.py=x.y},L.mouseOut=function(x){x.fixed&=-5},L})();i.Layout=_})),$O=Bn((i=>{var a=i&&i.__extends||(function(){var m=function(v,w){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,S){E.__proto__=S}||function(E,S){for(var _ in S)S.hasOwnProperty(_)&&(E[_]=S[_])},m(v,w)};return function(v,w){m(v,w);function E(){this.constructor=v}v.prototype=w===null?Object.create(w):(E.prototype=w.prototype,new E)}})();Object.defineProperty(i,"__esModule",{value:!0});var s=s1(),f=(function(m){a(v,m);function v(w){var E=m.call(this)||this,S=w;return S.trigger&&(E.trigger=S.trigger),S.kick&&(E.kick=S.kick),S.drag&&(E.drag=S.drag),S.on&&(E.on=S.on),E.dragstart=E.dragStart=s.Layout.dragStart,E.dragend=E.dragEnd=s.Layout.dragEnd,E}return v.prototype.trigger=function(w){},v.prototype.kick=function(){},v.prototype.drag=function(){},v.prototype.on=function(w,E){return this},v})(s.Layout);i.LayoutAdaptor=f;function h(m){return new f(m)}i.adaptor=h})),XO=Bn((i=>{var a=i&&i.__extends||(function(){var m=function(v,w){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,S){E.__proto__=S}||function(E,S){for(var _ in S)S.hasOwnProperty(_)&&(E[_]=S[_])},m(v,w)};return function(v,w){m(v,w);function E(){this.constructor=v}v.prototype=w===null?Object.create(w):(E.prototype=w.prototype,new E)}})();Object.defineProperty(i,"__esModule",{value:!0});var s=s1(),f=(function(m){a(v,m);function v(){var w=m.call(this)||this;w.event=d3.dispatch(s.EventType[s.EventType.start],s.EventType[s.EventType.tick],s.EventType[s.EventType.end]);var E=w;return w.drag=function(){if(!S)var S=d3.behavior.drag().origin(s.Layout.dragOrigin).on("dragstart.d3adaptor",s.Layout.dragStart).on("drag.d3adaptor",function(_){s.Layout.drag(_,d3.event),E.resume()}).on("dragend.d3adaptor",s.Layout.dragEnd);if(!arguments.length)return S;this.call(S)},w}return v.prototype.trigger=function(w){var E={type:s.EventType[w.type],alpha:w.alpha,stress:w.stress};this.event[E.type](E)},v.prototype.kick=function(){var w=this;d3.timer(function(){return m.prototype.tick.call(w)})},v.prototype.on=function(w,E){return typeof w=="string"?this.event.on(w,E):this.event.on(s.EventType[w],E),this},v})(s.Layout);i.D3StyleLayoutAdaptor=f;function h(){return new f}i.d3adaptor=h})),QO=Bn((i=>{var a=i&&i.__extends||(function(){var h=function(m,v){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,E){w.__proto__=E}||function(w,E){for(var S in E)E.hasOwnProperty(S)&&(w[S]=E[S])},h(m,v)};return function(m,v){h(m,v);function w(){this.constructor=m}m.prototype=v===null?Object.create(v):(w.prototype=v.prototype,new w)}})();Object.defineProperty(i,"__esModule",{value:!0});var s=s1(),f=(function(h){a(m,h);function m(v){var w=h.call(this)||this;w.d3Context=v,w.event=v.dispatch(s.EventType[s.EventType.start],s.EventType[s.EventType.tick],s.EventType[s.EventType.end]);var E=w;return w.drag=function(){if(!S)var S=v.drag().subject(s.Layout.dragOrigin).on("start.d3adaptor",s.Layout.dragStart).on("drag.d3adaptor",function(_){s.Layout.drag(_,v.event),E.resume()}).on("end.d3adaptor",s.Layout.dragEnd);if(!arguments.length)return S;arguments[0].call(S)},w}return m.prototype.trigger=function(v){var w={type:s.EventType[v.type],alpha:v.alpha,stress:v.stress};this.event.call(w.type,w)},m.prototype.kick=function(){var v=this,w=this.d3Context.timer(function(){return h.prototype.tick.call(v)&&w.stop()})},m.prototype.on=function(v,w){return typeof v=="string"?this.event.on(v,w):this.event.on(s.EventType[v],w),this},m})(s.Layout);i.D3StyleLayoutAdaptor=f})),PO=Bn((i=>{Object.defineProperty(i,"__esModule",{value:!0});var a=XO(),s=QO();function f(m){return!m||h(m)?new a.D3StyleLayoutAdaptor:new s.D3StyleLayoutAdaptor(m)}i.d3adaptor=f;function h(m){return m.version&&m.version.match(/^3\./)!==null}})),Ow=Bn((i=>{Object.defineProperty(i,"__esModule",{value:!0});var a=l1(),s=jE(),f=$b(),h=(function(){function E(S,_,L){this.id=S,this.rect=_,this.children=L,this.leaf=typeof L>"u"||L.length===0}return E})();i.NodeWrapper=h;var m=(function(){function E(S,_,L,x,D){x===void 0&&(x=null),D===void 0&&(D=null),this.id=S,this.x=_,this.y=L,this.node=x,this.line=D}return E})();i.Vert=m;var v=(function(){function E(S,_){this.s=S,this.t=_;var L=E.findMatch(S,_),x=_.slice(0).reverse(),D=E.findMatch(S,x);L.length>=D.length?(this.length=L.length,this.si=L.si,this.ti=L.ti,this.reversed=!1):(this.length=D.length,this.si=D.si,this.ti=_.length-D.ti-D.length,this.reversed=!0)}return E.findMatch=function(S,_){for(var L=S.length,x=_.length,D={length:0,si:-1,ti:-1},B=new Array(L),G=0;G<L;G++){B[G]=new Array(x);for(var P=0;P<x;P++)if(S[G]===_[P]){var te=B[G][P]=G===0||P===0?1:B[G-1][P-1]+1;te>D.length&&(D.length=te,D.si=G-te+1,D.ti=P-te+1)}else B[G][P]=0}return D},E.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},E})();i.LongestCommonSubsequence=v;var w=(function(){function E(S,_,L){var x=this;L===void 0&&(L=12),this.originalnodes=S,this.groupPadding=L,this.leaves=null,this.nodes=S.map(function(Re,Je){return new h(Je,_.getBounds(Re),_.getChildren(Re))}),this.leaves=this.nodes.filter(function(Re){return Re.leaf}),this.groups=this.nodes.filter(function(Re){return!Re.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(Re){return Re.children.forEach(function(Je){return x.nodes[Je].parent=Re})}),this.root={children:[]},this.nodes.forEach(function(Re){typeof Re.parent>"u"&&(Re.parent=x.root,x.root.children.push(Re.id)),Re.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(Re,Je){return x.getDepth(Re)-x.getDepth(Je)}),this.backToFront.slice(0).reverse().filter(function(Re){return!Re.leaf}).forEach(function(Re){var Je=a.Rectangle.empty();Re.children.forEach(function(Be){return Je=Je.union(x.nodes[Be].rect)}),Re.rect=Je.inflate(x.groupPadding)});var D=this.midPoints(this.cols.map(function(Re){return Re.pos})),B=this.midPoints(this.rows.map(function(Re){return Re.pos})),G=D[0],P=D[D.length-1],te=B[0],pe=B[B.length-1],Te=this.rows.map(function(Re){return{x1:G,x2:P,y1:Re.pos,y2:Re.pos}}).concat(B.map(function(Re){return{x1:G,x2:P,y1:Re,y2:Re}})),Se=this.cols.map(function(Re){return{x1:Re.pos,x2:Re.pos,y1:te,y2:pe}}).concat(D.map(function(Re){return{x1:Re,x2:Re,y1:te,y2:pe}})),Fe=Te.concat(Se);Fe.forEach(function(Re){return Re.verts=[]}),this.verts=[],this.edges=[],Te.forEach(function(Re){return Se.forEach(function(Je){var Be=new m(x.verts.length,Je.x1,Re.y1);Re.verts.push(Be),Je.verts.push(Be),x.verts.push(Be);for(var W=x.backToFront.length;W-- >0;){var re=x.backToFront[W],me=re.rect,ne=Math.abs(Be.x-me.cx()),ue=Math.abs(Be.y-me.cy());if(ne<me.width()/2&&ue<me.height()/2){Be.node=re;break}}})}),Fe.forEach(function(Re,Je){x.nodes.forEach(function(ue,Z){ue.rect.lineIntersections(Re.x1,Re.y1,Re.x2,Re.y2).forEach(function(K,$){var X=new m(x.verts.length,K.x,K.y,ue,Re);x.verts.push(X),Re.verts.push(X),ue.ports.push(X)})});var Be=Math.abs(Re.y1-Re.y2)<.1,W=function(ue,Z){return Be?Z.x-ue.x:Z.y-ue.y};Re.verts.sort(W);for(var re=1;re<Re.verts.length;re++){var me=Re.verts[re-1],ne=Re.verts[re];me.node&&me.node===ne.node&&me.node.leaf||x.edges.push({source:me.id,target:ne.id,length:Math.abs(W(me,ne))})}})}return E.prototype.avg=function(S){return S.reduce(function(_,L){return _+L})/S.length},E.prototype.getGridLines=function(S){for(var _=[],L=this.leaves.slice(0,this.leaves.length);L.length>0;){var x=L.filter(function(B){return B.rect["overlap"+S.toUpperCase()](L[0].rect)}),D={nodes:x,pos:this.avg(x.map(function(B){return B.rect["c"+S]()}))};_.push(D),D.nodes.forEach(function(B){return L.splice(L.indexOf(B),1)})}return _.sort(function(B,G){return B.pos-G.pos}),_},E.prototype.getDepth=function(S){for(var _=0;S.parent!==this.root;)_++,S=S.parent;return _},E.prototype.midPoints=function(S){for(var _=S[1]-S[0],L=[S[0]-_/2],x=1;x<S.length;x++)L.push((S[x]+S[x-1])/2);return L.push(S[S.length-1]+_/2),L},E.prototype.findLineage=function(S){var _=[S];do S=S.parent,_.push(S);while(S!==this.root);return _.reverse()},E.prototype.findAncestorPathBetween=function(S,_){for(var L=this.findLineage(S),x=this.findLineage(_),D=0;L[D]===x[D];)D++;return{commonAncestor:L[D-1],lineages:L.slice(D).concat(x.slice(D))}},E.prototype.siblingObstacles=function(S,_){var L=this,x=this.findAncestorPathBetween(S,_),D={};x.lineages.forEach(function(G){return D[G.id]={}});var B=x.commonAncestor.children.filter(function(G){return!(G in D)});return x.lineages.filter(function(G){return G.parent!==x.commonAncestor}).forEach(function(G){return B=B.concat(G.parent.children.filter(function(P){return P!==G.id}))}),B.map(function(G){return L.nodes[G]})},E.getSegmentSets=function(S,_,L){for(var x=[],D=0;D<S.length;D++)for(var B=S[D],G=0;G<B.length;G++){var P=B[G];P.edgeid=D,P.i=G;var te=P[1][_]-P[0][_];Math.abs(te)<.1&&x.push(P)}x.sort(function(Fe,Re){return Fe[0][_]-Re[0][_]});for(var pe=[],Te=null,Se=0;Se<x.length;Se++){var P=x[Se];(!Te||Math.abs(P[0][_]-Te.pos)>.1)&&(Te={pos:P[0][_],segments:[]},pe.push(Te)),Te.segments.push(P)}return pe},E.nudgeSegs=function(S,_,L,x,D,B){var G=x.length;if(!(G<=1)){for(var P=x.map(function(re){return new s.Variable(re[0][S])}),te=[],pe=0;pe<G;pe++)for(var Te=0;Te<G;Te++)if(pe!==Te){var Se=x[pe],Fe=x[Te],Re=Se.edgeid,Je=Fe.edgeid,Be=-1,W=-1;S=="x"?D(Re,Je)&&(Se[0][_]<Se[1][_]?(Be=Te,W=pe):(Be=pe,W=Te)):D(Re,Je)&&(Se[0][_]<Se[1][_]?(Be=pe,W=Te):(Be=Te,W=pe)),Be>=0&&te.push(new s.Constraint(P[Be],P[W],B))}new s.Solver(P,te).solve(),P.forEach(function(re,me){var ne=x[me],ue=re.position();ne[0][S]=ne[1][S]=ue;var Z=L[ne.edgeid];ne.i>0&&(Z[ne.i-1][1][S]=ue),ne.i<Z.length-1&&(Z[ne.i+1][0][S]=ue)})}},E.nudgeSegments=function(S,_,L,x,D){for(var B=E.getSegmentSets(S,_,L),G=0;G<B.length;G++){for(var P=B[G],te=[],pe=0;pe<P.segments.length;pe++){var Te=P.segments[pe];te.push({type:0,s:Te,pos:Math.min(Te[0][L],Te[1][L])}),te.push({type:1,s:Te,pos:Math.max(Te[0][L],Te[1][L])})}te.sort(function(Re,Je){return Re.pos-Je.pos+Re.type-Je.type});var Se=[],Fe=0;te.forEach(function(Re){Re.type===0?(Se.push(Re.s),Fe++):Fe--,Fe==0&&(E.nudgeSegs(_,L,S,Se,x,D),Se=[])})}},E.prototype.routeEdges=function(S,_,L,x){var D=this,B=S.map(function(te){return D.route(L(te),x(te))}),G=E.orderEdges(B),P=B.map(function(te){return E.makeSegments(te)});return E.nudgeSegments(P,"x","y",G,_),E.nudgeSegments(P,"y","x",G,_),E.unreverseEdges(P,B),P},E.unreverseEdges=function(S,_){S.forEach(function(L,x){_[x].reversed&&(L.reverse(),L.forEach(function(D){D.reverse()}))})},E.angleBetween2Lines=function(S,_){var L=Math.atan2(S[0].y-S[1].y,S[0].x-S[1].x),x=Math.atan2(_[0].y-_[1].y,_[0].x-_[1].x),D=L-x;return(D>Math.PI||D<-Math.PI)&&(D=x-L),D},E.isLeft=function(S,_,L){return(_.x-S.x)*(L.y-S.y)-(_.y-S.y)*(L.x-S.x)<=0},E.getOrder=function(S){for(var _={},L=0;L<S.length;L++){var x=S[L];typeof _[x.l]>"u"&&(_[x.l]={}),_[x.l][x.r]=!0}return function(D,B){return typeof _[D]<"u"&&_[D][B]}},E.orderEdges=function(S){for(var _=[],L=0;L<S.length-1;L++)for(var x=L+1;x<S.length;x++){var D=S[L],B=S[x],G=new v(D,B),P,te,pe;if(G.length!==0){if(G.reversed&&(B.reverse(),B.reversed=!0,G=new v(D,B)),(G.si<=0||G.ti<=0)&&(G.si+G.length>=D.length||G.ti+G.length>=B.length)){_.push({l:L,r:x});continue}G.si+G.length>=D.length||G.ti+G.length>=B.length?(P=D[G.si+1],pe=D[G.si-1],te=B[G.ti-1]):(P=D[G.si+G.length-2],te=D[G.si+G.length],pe=B[G.ti+G.length]),E.isLeft(P,te,pe)?_.push({l:x,r:L}):_.push({l:L,r:x})}}return E.getOrder(_)},E.makeSegments=function(S){function _(te){return{x:te.x,y:te.y}}for(var L=function(te,pe,Te){return Math.abs((pe.x-te.x)*(Te.y-te.y)-(pe.y-te.y)*(Te.x-te.x))<.001},x=[],D=_(S[0]),B=1;B<S.length;B++){var G=_(S[B]),P=B<S.length-1?S[B+1]:null;(!P||!L(D,G,P))&&(x.push([D,G]),D=G)}return x},E.prototype.route=function(S,_){var L=this,x=this.nodes[S],D=this.nodes[_];this.obstacles=this.siblingObstacles(x,D);var B={};this.obstacles.forEach(function(Be){return B[Be.id]=Be}),this.passableEdges=this.edges.filter(function(Be){var W=L.verts[Be.source],re=L.verts[Be.target];return!(W.node&&W.node.id in B||re.node&&re.node.id in B)});for(var G=1;G<x.ports.length;G++){var P=x.ports[0].id,te=x.ports[G].id;this.passableEdges.push({source:P,target:te,length:0})}for(var G=1;G<D.ports.length;G++){var P=D.ports[0].id,te=D.ports[G].id;this.passableEdges.push({source:P,target:te,length:0})}var pe=function(Be){return Be.source},Te=function(Be){return Be.target},Se=function(Be){return Be.length},Fe=new f.Calculator(this.verts.length,this.passableEdges,pe,Te,Se),Re=function(Be,W,re){var me=L.verts[Be],ne=L.verts[W],ue=L.verts[re],Z=Math.abs(ue.x-me.x),K=Math.abs(ue.y-me.y);return me.node===x&&me.node===ne.node||ne.node===D&&ne.node===ue.node?0:Z>1&&K>1?1e3:0},Je=Fe.PathFromNodeToNodeWithPrevCost(x.ports[0].id,D.ports[0].id,Re).reverse().map(function(Be){return L.verts[Be]});return Je.push(this.nodes[D.id].ports[0]),Je.filter(function(Be,W){return!(W<Je.length-1&&Je[W+1].node===x&&Be.node===x||W>0&&Be.node===D&&Je[W-1].node===D)})},E.getRoutePath=function(S,_,L,x){var D={routepath:"M "+S[0][0].x+" "+S[0][0].y+" ",arrowpath:""};if(S.length>1)for(var B=0;B<S.length;B++){var G=S[B],P=G[1].x,te=G[1].y,pe=P-G[0].x,Te=te-G[0].y;if(B<S.length-1){Math.abs(pe)>0?P-=pe/Math.abs(pe)*_:te-=Te/Math.abs(Te)*_,D.routepath+="L "+P+" "+te+" ";var Se=S[B+1],Fe=Se[0].x,Re=Se[0].y,Je=Se[1].x,Be=Se[1].y;pe=Je-Fe,Te=Be-Re;var W=E.angleBetween2Lines(G,Se)<0?1:0,re,me;Math.abs(pe)>0?(re=Fe+pe/Math.abs(pe)*_,me=Re):(re=Fe,me=Re+Te/Math.abs(Te)*_);var ne=Math.abs(re-P),ue=Math.abs(me-te);D.routepath+="A "+ne+" "+ue+" 0 0 "+W+" "+re+" "+me+" "}else{var Z=[P,te],K,$;Math.abs(pe)>0?(P-=pe/Math.abs(pe)*x,K=[P,te+L],$=[P,te-L]):(te-=Te/Math.abs(Te)*x,K=[P+L,te],$=[P-L,te]),D.routepath+="L "+P+" "+te+" ",x>0&&(D.arrowpath="M "+Z[0]+" "+Z[1]+" L "+K[0]+" "+K[1]+" L "+$[0]+" "+$[1])}}else{var G=S[0],P=G[1].x,te=G[1].y,pe=P-G[0].x,Te=te-G[0].y,Z=[P,te],K,$;Math.abs(pe)>0?(P-=pe/Math.abs(pe)*x,K=[P,te+L],$=[P,te-L]):(te-=Te/Math.abs(Te)*x,K=[P+L,te],$=[P-L,te]),D.routepath+="L "+P+" "+te+" ",x>0&&(D.arrowpath="M "+Z[0]+" "+Z[1]+" L "+K[0]+" "+K[1]+" L "+$[0]+" "+$[1])}return D},E})();i.GridRouter=w})),ZO=Bn((i=>{Object.defineProperty(i,"__esModule",{value:!0});var a=$b(),s=GE(),f=l1(),h=qE(),m=(function(){function S(_,L){this.source=_,this.target=L}return S.prototype.actualLength=function(_){var L=this;return Math.sqrt(_.reduce(function(x,D){var B=D[L.target]-D[L.source];return x+B*B},0))},S})();i.Link3D=m;var v=(function(){function S(_,L,x){_===void 0&&(_=0),L===void 0&&(L=0),x===void 0&&(x=0),this.x=_,this.y=L,this.z=x}return S})();i.Node3D=v;var w=(function(){function S(_,L,x){var D=this;x===void 0&&(x=1),this.nodes=_,this.links=L,this.idealLinkLength=x,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(S.k);for(var B=0;B<S.k;++B)this.result[B]=new Array(_.length);_.forEach(function(G,P){for(var te=0,pe=S.dims;te<pe.length;te++){var Te=pe[te];typeof G[Te]>"u"&&(G[Te]=Math.random())}D.result[0][P]=G.x,D.result[1][P]=G.y,D.result[2][P]=G.z})}return S.prototype.linkLength=function(_){return _.actualLength(this.result)},S.prototype.start=function(_){var L=this;_===void 0&&(_=100);var x=this.nodes.length,D=new E;this.useJaccardLinkLengths&&h.jaccardLinkLengths(this.links,D,1.5),this.links.forEach(function(Te){return Te.length*=L.idealLinkLength});var B=new a.Calculator(x,this.links,function(Te){return Te.source},function(Te){return Te.target},function(Te){return Te.length}).DistanceMatrix(),G=s.Descent.createSquareMatrix(x,function(Te,Se){return B[Te][Se]}),P=s.Descent.createSquareMatrix(x,function(){return 2});this.links.forEach(function(Te){var Se=Te.source,Fe=Te.target;return P[Se][Fe]=P[Fe][Se]=1}),this.descent=new s.Descent(this.result,G),this.descent.threshold=.001,this.descent.G=P,this.constraints&&(this.descent.project=new f.Projection(this.nodes,null,null,this.constraints).projectFunctions());for(var te=0;te<this.nodes.length;te++){var pe=this.nodes[te];pe.fixed&&this.descent.locks.add(te,[pe.x,pe.y,pe.z])}return this.descent.run(_),this},S.prototype.tick=function(){this.descent.locks.clear();for(var _=0;_<this.nodes.length;_++){var L=this.nodes[_];L.fixed&&this.descent.locks.add(_,[L.x,L.y,L.z])}return this.descent.rungeKutta()},S.dims=["x","y","z"],S.k=S.dims.length,S})();i.Layout3D=w;var E=(function(){function S(){}return S.prototype.getSourceIndex=function(_){return _.source},S.prototype.getTargetIndex=function(_){return _.target},S.prototype.getLength=function(_){return _.length},S.prototype.setLength=function(_,L){_.length=L},S})()})),JO=Bn((i=>{Object.defineProperty(i,"__esModule",{value:!0});var a=s1(),s=Ow();function f(v,w,E,S){return v.cola.start(0,0,0,10,!1),h(v.cola.nodes(),v.cola.groups(),E,S).routeEdges(v.powerGraph.powerEdges,w,function(_){return _.source.routerNode.id},function(_){return _.target.routerNode.id})}i.gridify=f;function h(v,w,E,S){v.forEach(function(L){L.routerNode={name:L.name,bounds:L.bounds.inflate(-E)}}),w.forEach(function(L){L.routerNode={bounds:L.bounds.inflate(-S),children:(typeof L.groups<"u"?L.groups.map(function(x){return v.length+x.id}):[]).concat(typeof L.leaves<"u"?L.leaves.map(function(x){return x.index}):[])}});var _=v.concat(w).map(function(L,x){return L.routerNode.id=x,L.routerNode});return new s.GridRouter(_,{getChildren:function(L){return L.children},getBounds:function(L){return L.bounds}},E-S)}function m(v,w,E){var S;v.nodes.forEach(function(D,B){return D.index=B}),new a.Layout().avoidOverlaps(!1).nodes(v.nodes).links(v.links).powerGraphGroups(function(D){S=D,S.groups.forEach(function(B){return B.padding=E})});var _=v.nodes.length,L=[],x=v.nodes.slice(0);return x.forEach(function(D,B){return D.index=B}),S.groups.forEach(function(D){var B=D.index=D.id+_;x.push(D),typeof D.leaves<"u"&&D.leaves.forEach(function(G){return L.push({source:B,target:G.index})}),typeof D.groups<"u"&&D.groups.forEach(function(G){return L.push({source:B,target:G.id+_})})}),S.powerEdges.forEach(function(D){L.push({source:D.source.index,target:D.target.index})}),new a.Layout().size(w).nodes(x).links(L).avoidOverlaps(!1).linkDistance(30).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(100,0,0,0,!1),{cola:new a.Layout().convergenceThreshold(.001).size(w).avoidOverlaps(!0).nodes(v.nodes).links(v.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups(function(D){S=D,S.groups.forEach(function(B){B.padding=E})}).start(50,0,100,0,!1),powerGraph:S}}i.powerGraphGridLayout=m})),KO=Bn((i=>{function a(s){for(var f in s)i.hasOwnProperty(f)||(i[f]=s[f])}Object.defineProperty(i,"__esModule",{value:!0}),a($O()),a(PO()),a(GE()),a(xw()),a(Ow()),a(Lw()),a(s1()),a(ZO()),a(qE()),a(ww()),a(Cw()),a(Aw()),a(l1()),a($b()),a(jE()),a(JO())})),YE=F_(KO());function VE(i){new YE.Layout().nodes(i.nodes).links(i.links).avoidOverlaps(i.avoidOvelaps).convergenceThreshold(1e-9).jaccardLinkLengths(i.preferredLinkLength).handleDisconnected(!0).start(30,0,10,void 0,!1)}function $E(i){const a=[];for(const s of i)a.push(new YE.Rectangle(s.x,s.x+s.width,s.y,s.y+s.height));YE.removeOverlaps(a);for(let s=0;s<a.length;s++){const f=i[s],h=a[s];f.x=h.x,f.y=h.y}}function FO(i,a){let s=1/0,f=1/0;i.forEach(v=>{s=Math.min(s,v.x),f=Math.min(f,v.y)});const{x:h,y:m}=a;i.forEach((v,w)=>{i.set(w,{x:v.x-s+h,y:v.y-f+m})})}function WO(i){return a=>{const s=Math.floor(a/i.rows);return{x:(a-s*i.rows)*i.cellSize.x,y:s*i.cellSize.y,width:i.cellSize.x,height:i.cellSize.y}}}function XE(i,a,s){if(a)for(const f of i)f.x-=a.x,f.y-=a.y,f.width+=2*a.x,f.height+=2*a.y;if(s(),a)for(const f of i)f.x+=a.x,f.y+=a.y,f.width-=2*a.x,f.height-=2*a.y}function QE(i,a,s){const f=new Map,h={x:1/0,y:1/0};for(const v of i){f.set(v.id,{width:v.width,height:v.height});const w=Math.max(v.width,v.height),E=v.width?w/v.width:1,S=v.height?w/v.height:1;h.x=Math.min(1+(E-1),h.x),h.y=Math.min(1+(S-1),h.y),v.height=w,v.width=w}XE(i,a,()=>s());const m=Mw(i);for(const v of i){const w=f.get(v.id);v.x=(v.x-m.x)/h.x+m.x,v.y=(v.y-m.y)/h.y+m.y,v.height=w.height,v.width=w.width}}function PE(i){const a=lE(i.model.elements),{layoutFunction:s,model:f,fixedElements:h,selectedElements:m}=i;if(m&&m.size<=1)return{positions:new Map,nestedLayouts:[],keepAveragePosition:!1};return v(i.group);function v(w){const E=w?a.get(w):f.elements.filter(G=>G.group===void 0),S=m?E.filter(G=>m.has(G)):E,_=[];for(const G of S)a.has(G.id)&&_.push(v(G.id));const L=[],x={};for(const G of S){const{x:P,y:te,width:pe,height:Te}=Ju(G),Se={id:G.id,x:P,y:te,width:pe,height:Te,fixed:h&&h.has(G)?1:0};x[G.id]=Se,L.push(Se)}const D=[];for(const G of f.links){if(!f.isSourceAndTargetVisible(G))continue;const P=f.sourceOf(G),te=f.targetOf(G),pe=x[P.id],Te=x[te.id];pe&&Te&&D.push({source:pe,target:Te})}s(L,D,w);const B=new Map;for(const G of L)B.set(G.id,{x:G.x,y:G.y});return{positions:B,group:w,nestedLayouts:_,keepAveragePosition:!!m}}}function Xb(i,a){const{positions:s,group:f,nestedLayouts:h,keepAveragePosition:m}=a,v=i.elements.filter(({id:E})=>s.has(E));for(const E of h)Xb(i,E);f&&FO(s,x0(v,[]));const w=m?ZE(v):void 0;for(const E of v)E.setPosition(s.get(E.id));if(m){const E=ZE(v),S={x:w.x-E.x,y:w.y-E.y};s.forEach((_,L)=>{i.getElement(L).setPosition({x:_.x+S.x,y:_.y+S.y})})}}function ZE(i){let a=0,s=0;for(const f of i)a+=f.position.x+f.size.width/2,s+=f.position.y+f.size.height/2;return{x:a/i.length,y:s/i.length}}function eD(i){const{model:a,elements:s,targetElement:f,prefferedLinksLength:h}=i,m=Ju(f),v={x:m.x+m.width/2,y:m.y+m.height/2};let w=0;if(f.links.length>0){const L=ZE(f.links.map(D=>{const B=a.sourceOf(D);return B!==f?B:a.targetOf(D)})),x={x:v.x-L.x,y:v.y-L.y};(x.x!==0||x.y!==0)&&(w=Math.atan2(x.y,x.x))}const E=Math.min(Math.PI/s.length,Math.PI/6),S=[].concat(s),_=(L,x)=>{if(x){const D=x.size;x.setPosition({x:v.x+h*Math.cos(L)-D.width/2,y:v.y+h*Math.sin(L)-D.height/2})}};if(S.length%2===0)for(let L=E/2;S.length>0;L+=E)_(w-L,S.pop()),_(w+L,S.pop());else{_(w,S.pop());for(let L=E;S.length>0;L+=E)_(w-L,S.pop()),_(w+L,S.pop())}return new Promise(L=>{const x=new Hn;x.listen(a.events,"changeCells",()=>{x.stopListening(),Dw({model:a,padding:{x:15,y:15}}),L(!0)})})}function Dw(i){const{padding:a,model:s,group:f,fixedElements:h,selectedElements:m}=i;return PE({model:s,group:f,fixedElements:h,selectedElements:m,layoutFunction:v=>{XE(v,a,()=>$E(v))}})}function JE(i){const{model:a,group:s,fixedElements:f,selectedElements:h}=i;return PE({model:a,group:s,fixedElements:f,selectedElements:h,layoutFunction:(m,v)=>{f&&f.size>0?QE(m,{x:50,y:50},()=>VE({nodes:m,links:v,preferredLinkLength:200,avoidOvelaps:!0})):(VE({nodes:m,links:v,preferredLinkLength:200}),QE(m,{x:50,y:50},()=>$E(m)))}})}function Mw(i){let a=1/0,s=1/0,f=-1/0,h=-1/0;for(const m of i){const{x:v,y:w,width:E,height:S}=m;a=Math.min(a,v),s=Math.min(s,w),f=Math.max(f,v+E),h=Math.max(h,w+S)}return{x:Number.isFinite(a)?a:0,y:Number.isFinite(s)?s:0,width:Number.isFinite(a)&&Number.isFinite(f)?f-a:0,height:Number.isFinite(s)&&Number.isFinite(h)?h-s:0}}var Rw=150,Nw=class{constructor(i){this.dataProvider=i}createGraph(i){return this.dataProvider.elementInfo({elementIds:i.elementIds}).then(a=>({preloadedElements:a,diagram:zw(i.elementIds,i.links)}))}getGraphFromRDFGraph(i){const{elementIds:a,links:s}=kw(i);return this.createGraph({elementIds:a,links:s})}getGraphFromTurtleGraph(i){return fw(i).then(a=>this.getGraphFromRDFGraph(a))}};function kw(i){const a={},s=[];for(const{subject:f,predicate:h,object:m}of i)f.type==="uri"&&!a[f.value]&&(a[f.value]=!0),m.type==="uri"&&!a[m.value]&&(a[m.value]=!0),f.type==="uri"&&m.type==="uri"&&s.push({linkTypeId:h.value,sourceId:f.value,targetId:m.value});return{elementIds:Object.keys(a),links:s}}function zw(i,a){const s=WO({rows:Math.ceil(Math.sqrt(i.length)),cellSize:{x:Rw,y:Rw}}),f=i.map((v,w)=>{const{x:E,y:S}=s(w);return{"@type":"Element","@id":Qv.forElement(),iri:v,position:{x:E,y:S}}}),h=(0,so.keyBy)(f,"iri"),m=[];return a.forEach((v,w)=>{const E=h[v.sourceId],S=h[v.targetId];!E||!S||m.push({"@type":"Link","@id":Qv.forLink(),property:v.linkTypeId,source:{"@id":E["@id"]},target:{"@id":S["@id"]}})}),IE({layoutData:{"@type":"Layout",elements:f,links:m},linkTypeOptions:[]})}var tD=`PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
 PREFIX rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
 PREFIX owl:  <http://www.w3.org/2002/07/owl#>

`,nD=class{constructor(i){this.dataProvider=i,this.graphBuilder=new Nw(i)}getGraphFromConstruct(i){const a=tD+i;return this.dataProvider.executeSparqlConstruct(a).then(s=>this.graphBuilder.getGraphFromRDFGraph(s))}},Uw=class Ax{constructor(){this.source=new lo,this.events=this.source,this.elements=new CE,this.links=new CE,this.classesById=new Map,this.propertiesById=new Map,this.linkTypes=new Map,this.onElementEvent=(a,s)=>{this.source.trigger("elementEvent",{key:s,data:a})},this.onLinkEvent=(a,s)=>{this.source.trigger("linkEvent",{key:s,data:a})},this.onLinkTypeEvent=(a,s)=>{this.source.trigger("linkTypeEvent",{key:s,data:a})},this.onClassEvent=(a,s)=>{this.source.trigger("classEvent",{key:s,data:a})}}static{this.nextLinkTypeIndex=0}getElements(){return this.elements.items}getLinks(){return this.links.items}getLink(a){return this.links.get(a)}findLink(a,s,f){const h=this.getElement(s);if(!h)return;const m=Hw(h.links,a,s,f);return m>=0?h.links[m]:void 0}sourceOf(a){return this.getElement(a.sourceId)}targetOf(a){return this.getElement(a.targetId)}reorderElements(a){this.elements.reorder(a)}getElement(a){return this.elements.get(a)}addElement(a){if(this.getElement(a.id))throw new Error(`Element '${a.id}' already exists.`);a.events.onAny(this.onElementEvent),this.elements.push(a.id,a),this.source.trigger("changeCells",{updateAll:!1,changedElement:a})}removeElement(a){const s=this.elements.get(a);if(s){const f={silent:!0},h=[...s.links];for(const m of h)this.removeLink(m.id,f);this.elements.delete(a),s.events.offAny(this.onElementEvent),this.source.trigger("changeCells",{updateAll:!1,changedElement:s,changedLinks:h})}}addLink(a){if(this.getLink(a.id))throw new Error(`Link '${a.id}' already exists.`);if(!this.getLinkType(a.typeId))throw new Error(`Link type '${a.typeId}' not found.`);this.registerLink(a)}registerLink(a){this.sourceOf(a).links.push(a),a.sourceId!==a.targetId&&this.targetOf(a).links.push(a),a.events.onAny(this.onLinkEvent),this.links.push(a.id,a),this.source.trigger("changeCells",{updateAll:!1,changedLinks:[a]})}removeLink(a,s){const f=this.links.delete(a);if(f){const{typeId:h,sourceId:m,targetId:v}=f;f.events.offAny(this.onLinkEvent),this.removeLinkReferences(h,m,v),s&&s.silent||this.source.trigger("changeCells",{updateAll:!1,changedLinks:[f]})}}removeLinkReferences(a,s,f){const h=this.getElement(s);h&&Bw(h.links,a,s,f);const m=this.getElement(f);m&&Bw(m.links,a,s,f)}getLinkTypes(){const a=[];return this.linkTypes.forEach(s=>a.push(s)),a}getLinkType(a){return this.linkTypes.get(a)}addLinkType(a){if(this.getLinkType(a.id))throw new Error(`Link type '${a.id}' already exists.`);a.setIndex(Ax.nextLinkTypeIndex++),a.events.onAny(this.onLinkTypeEvent),this.linkTypes.set(a.id,a)}getProperty(a){return this.propertiesById.get(a)}addProperty(a){if(this.getProperty(a.id))throw new Error(`Property '${a.id}' already exists.`);this.propertiesById.set(a.id,a)}getClass(a){return this.classesById.get(a)}getClasses(){const a=[];return this.classesById.forEach(s=>a.push(s)),a}addClass(a){if(this.getClass(a.id))throw new Error(`Class '${a.id}' already exists.`);a.events.onAny(this.onClassEvent),this.classesById.set(a.id,a)}};function Bw(i,a,s,f){if(i)for(;;){const h=Hw(i,a,s,f);if(h<0)break;i.splice(h,1)}}function Hw(i,a,s,f){for(let h=0;h<i.length;h++){const m=i[h];if(m.sourceId===s&&m.targetId===f&&m.typeId===a)return h}return-1}var Iw=class{constructor(i){this.history=i,this.source=new lo,this.events=this.source,this.graph=new Uw,this.graphListener=new Hn}get elements(){return this.graph.getElements()}get links(){return this.graph.getLinks()}getElement(i){return this.graph.getElement(i)}getLinkById(i){return this.graph.getLink(i)}linksOfType(i){return this.graph.getLinks().filter(a=>a.typeId===i)}findLink(i,a,s){return this.graph.findLink(i,a,s)}sourceOf(i){return this.getElement(i.sourceId)}targetOf(i){return this.getElement(i.targetId)}isSourceAndTargetVisible(i){return!!(this.sourceOf(i)&&this.targetOf(i))}resetGraph(){this.graphListener&&(this.graphListener.stopListening(),this.graphListener=new Hn),this.graph=new Uw}subscribeGraph(){this.graphListener.listen(this.graph.events,"changeCells",i=>{this.source.trigger("changeCells",i)}),this.graphListener.listen(this.graph.events,"elementEvent",i=>{this.source.trigger("elementEvent",i)}),this.graphListener.listen(this.graph.events,"linkEvent",i=>{this.source.trigger("linkEvent",i)}),this.graphListener.listen(this.graph.events,"linkTypeEvent",i=>{this.source.trigger("linkTypeEvent",i)}),this.graphListener.listen(this.graph.events,"classEvent",i=>{this.source.trigger("classEvent",i)}),this.source.trigger("changeCells",{updateAll:!0})}reorderElements(i){this.graph.reorderElements(i)}createElement(i,a){const s=typeof i=="string"?i:i.id,f=this.elements.filter(v=>v.iri===s&&v.group===a);if(f.length>0)return f[0];let h=typeof i=="string"?KE(s):i;h={...h,id:h.id};const m=new fl({id:Qv.forElement(),data:h,group:a});return this.addElement(m),m}addElement(i){this.history.execute(qw(this.graph,i,[]))}removeElement(i){const a=this.getElement(i);a&&this.history.execute(Gw(this.graph,a))}addLink(i){const{typeId:a,sourceId:s,targetId:f,data:h}=i;if(h&&h.linkTypeId!==a)throw new Error("linkTypeId must match linkType.id");const m=this.findLink(a,s,f);if(m)return i.data&&(m.setLayoutOnly(!1),m.setData(h)),m;const v=this.createLinkType(i.typeId),w=this.getElement(s),E=this.getElement(f);if(v.visible&&w&&E)return i.data||i.setData({linkTypeId:a,sourceId:w.iri,targetId:E.iri}),this.graph.addLink(i),i}removeLink(i){this.graph.removeLink(i)}getClass(i){return this.graph.getClass(i)}createClass(i){const a=this.graph.getClass(i);if(a)return a;const s=new M2({id:i});return this.addClass(s),s}addClass(i){this.graph.addClass(i)}getLinkType(i){return this.graph.getLinkType(i)}createLinkType(i){const a=this.graph.getLinkType(i);if(a)return a;const s=new oE({id:i});return this.graph.addLinkType(s),s}getProperty(i){return this.graph.getProperty(i)}createProperty(i){const a=this.graph.getProperty(i);if(a)return a;const s=new $x({id:i});return this.graph.addProperty(s),s}triggerChangeGroupContent(i){this.source.trigger("changeGroupContent",{group:i})}createTemporaryElement(){const i=new fl({id:Qv.forElement(),data:KE(""),temporary:!0});return this.graph.addElement(i),i}};function KE(i){return{id:i,types:[],label:{values:[]},properties:{}}}function qw(i,a,s){return Wu.create("Add element",()=>{i.addElement(a);for(const f of s)i.getLink(f.id)||i.findLink(f.typeId,f.sourceId,f.targetId)||i.addLink(f);return Gw(i,a)})}function Gw(i,a){return Wu.create("Remove element",()=>{const s=[...a.links];return i.removeElement(a.id),qw(i,a,s)})}var iD=class{constructor(i,a){this.graph=i,this.dataProvider=a,this.classQueue=new Cb(s=>{this.dataProvider.classInfo({classIds:s}).then(this.onClassesLoaded)}),this.linkTypeQueue=new Cb(s=>{this.dataProvider.linkTypesInfo({linkTypeIds:s}).then(this.onLinkTypesLoaded)}),this.propertyTypeQueue=new Cb(s=>{this.dataProvider.propertyInfo({propertyIds:s}).then(this.onPropertyTypesLoaded)}),this.onElementInfoLoaded=s=>{for(const f of this.graph.getElements()){const h=s[f.iri];h&&f.setData(h)}},this.onClassesLoaded=s=>{for(const{id:f,label:h,count:m}of s){const v=this.graph.getClass(f);v&&(v.setLabel(h.values),typeof m=="number"&&v.setCount(m))}},this.onLinkTypesLoaded=s=>{for(const{id:f,label:h}of s){const m=this.graph.getLinkType(f);m&&m.setLabel(h.values)}},this.onPropertyTypesLoaded=s=>{for(const f in s){if(!Object.prototype.hasOwnProperty.call(s,f))continue;const{id:h,label:m}=s[f],v=this.graph.getProperty(h);v&&v.setLabel(m.values)}}}fetchElementData(i){return i.length===0?Promise.resolve():this.dataProvider.elementInfo({elementIds:[...i]}).then(this.onElementInfoLoaded)}fetchClass(i){this.classQueue.push(i.id)}fetchLinkType(i){this.linkTypeQueue.push(i.id)}fetchPropertyType(i){this.dataProvider.propertyInfo&&this.propertyTypeQueue.push(i.id)}},jw=class extends Iw{constructor(i,a){super(i),this.groupByProperties=a,this.linkSettings={},this.onLinkTypeVisibilityChanged=s=>{if(s.source.visible)s.preventLoading||this.requestLinksOfType([s.source.id]);else for(const f of this.linksOfType(s.source.id))this.graph.removeLink(f.id)}}get asyncSource(){return this.source}get dataProvider(){return this._dataProvider}subscribeGraph(){super.subscribeGraph(),this.graphListener.listen(this.graph.events,"linkTypeEvent",i=>{i.key==="changeVisibility"&&this.onLinkTypeVisibilityChanged(i.data[i.key],i.key)})}setDataProvider(i){this._dataProvider=i,this.fetcher=new iD(this.graph,i)}createNewDiagram(i){return this.resetGraph(),this.setDataProvider(i),this.asyncSource.trigger("loadingStart",{source:this}),this.dataProvider.linkTypes().then(a=>{const s=this.initLinkTypes(a);return this.loadAndRenderLayout({allLinkTypes:s,markLinksAsLayoutOnly:!1})}).catch(a=>(console.error(a),this.asyncSource.trigger("loadingError",{source:this,error:a}),Promise.reject(a)))}importLayout(i){return this.resetGraph(),this.setDataProvider(i.dataProvider),this.asyncSource.trigger("loadingStart",{source:this}),this.dataProvider.linkTypes().then(a=>{const s=this.initLinkTypes(a),f=i.diagram?i.diagram:HE();this.setLinkSettings(f.linkTypeOptions);const h=this.loadAndRenderLayout({layoutData:f.layoutData,preloadedElements:i.preloadedElements||{},markLinksAsLayoutOnly:i.validateLinks||!1,allLinkTypes:s,hideUnusedLinkTypes:i.hideUnusedLinkTypes}),m=i.validateLinks?this.requestLinksOfType():Promise.resolve();return Promise.all([h,m])}).then(()=>{this.asyncSource.trigger("loadingSuccess",{source:this})}).catch(a=>(console.error(a),this.asyncSource.trigger("loadingError",{source:this,error:a}),Promise.reject(a)))}exportLayout(){return IE({layoutData:Tw(this.graph.getElements(),this.graph.getLinks()),linkTypeOptions:this.graph.getLinkTypes().filter(i=>(!i.visible||!i.showLabel)&&i.id!=="http://graph-explorer.org/NewLink").map(({id:i,visible:a,showLabel:s})=>({"@type":"LinkTypeOptions",property:i,visible:a,showLabel:s}))})}initLinkTypes(i){const a=[];for(const{id:s,label:f}of i){const h=new oE({id:s,label:f.values});this.graph.addLinkType(h),a.push(h)}return a}setLinkSettings(i){if(i)for(const a of i){const{visible:s=!0,showLabel:f=!0}=a,h=a.property;this.linkSettings[h]={"@type":"LinkTypeOptions",property:h,visible:s,showLabel:f};const m=this.getLinkType(h);m&&m.setVisibility({visible:s,showLabel:f})}}loadAndRenderLayout(i){const{layoutData:a=Sw(),preloadedElements:s={},markLinksAsLayoutOnly:f,hideUnusedLinkTypes:h}=i,m=[],v={};for(const E of a.elements){const{"@id":S,iri:_,position:L,size:x,isExpanded:D,group:B,elementState:G}=E,P=s[_],te=new fl({id:S,data:P||KE(_),position:L,size:x,expanded:D,group:B,elementState:G});this.graph.addElement(te),P||m.push(te.iri)}for(const E of a.links){const{"@id":S,property:_,source:L,target:x,vertices:D,linkState:B}=E,G=this.createLinkType(_);v[G.id]=G;const P=this.addLink(new Jr({id:S,typeId:G.id,sourceId:L["@id"],targetId:x["@id"],vertices:D,linkState:B}));P&&P.setLayoutOnly(f)}this.subscribeGraph();const w=this.requestElementData(m);return h&&i.allLinkTypes&&this.hideUnusedLinkTypes(i.allLinkTypes,v),w}hideUnusedLinkTypes(i,a){for(const s of i)a[s.id]||s.setVisibility({visible:!1,showLabel:s.showLabel})}requestElementData(i){return this.fetcher.fetchElementData(i)}requestLinksOfType(i){const a=i||this.graph.getLinkTypes().filter(s=>s.visible).map(s=>s.id);return this.dataProvider.linksInfo({elementIds:this.graph.getElements().map(s=>s.iri),linkTypeIds:a}).then(s=>this.onLinkInfoLoaded(s))}createClass(i){if(this.graph.getClass(i))return super.getClass(i);const a=super.createClass(i);return this.fetcher.fetchClass(a),a}createLinkType(i){if(this.graph.getLinkType(i))return super.createLinkType(i);const a=super.createLinkType(i),s=this.linkSettings[a.id];if(s){const{visible:f,showLabel:h}=s;a.setVisibility({visible:f,showLabel:h,preventLoading:!0})}return this.fetcher.fetchLinkType(a),a}createProperty(i){if(this.graph.getProperty(i))return super.createProperty(i);const a=super.createProperty(i);return this.fetcher.fetchPropertyType(a),a}onLinkInfoLoaded(i){let a;const s=()=>{a=!1};for(const f of i)this.createLinkType(f.linkTypeId),a=!0,this.asyncSource.trigger("createLoadedLink",{source:this,model:f,cancel:s}),a&&this.createLinks(f)}createLinks(i){const a=this.graph.getElements().filter(h=>h.iri===i.sourceId),s=this.graph.getElements().filter(h=>h.iri===i.targetId),f=i.linkTypeId;for(const h of a)for(const m of s)this.addLink(new Jr({typeId:f,sourceId:h.id,targetId:m.id,data:i}))}loadEmbeddedElements(i){const a=this.groupByProperties.map(s=>this.dataProvider.linkElements({elementId:i,linkId:s.linkType,offset:0,direction:s.linkDirection}));return Promise.all(a).then(s=>s.reduce((f,h)=>Object.assign(f,h),{}))}};function FE(i,a){return Wu.effect("Fetch element data",()=>{i.requestElementData(a)})}function WE(i){return Wu.effect("Restore links between elements",()=>{i.requestLinksOfType()})}var o1=class extends N.Component{constructor(...i){super(...i),this.isHoldingMouse=!1,this.onHandleMouseDown=a=>{a.target===a.currentTarget&&(this.isHoldingMouse||a.button===0&&(this.isHoldingMouse=!0,this.originPageX=a.pageX,this.originPageY=a.pageY,document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp),this.props.onBeginDragHandle(a)))},this.onMouseMove=a=>{this.isHoldingMouse&&(a.preventDefault(),this.props.onDragHandle(a,a.pageX-this.originPageX,a.pageY-this.originPageY))},this.onMouseUp=a=>{this.removeListeners(),this.props.onEndDragHandle&&this.props.onEndDragHandle(a)}}render(){const{onBeginDragHandle:i,onDragHandle:a,onEndDragHandle:s,...f}=this.props;return N.createElement("div",{...f,onMouseDown:this.onHandleMouseDown},this.props.children)}componentWillUnmount(){this.removeListeners()}removeListeners(){this.isHoldingMouse&&(this.isHoldingMouse=!1,document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp))}},aD=300,rD=300,lD=250,sD=250,oD=800,uD=800,cD=40,Yw=20,Qb=20,u1="graph-explorer-dialog",fD=class extends N.Component{static{this.defaultProps={size:{width:aD,height:rD}}}constructor(i){super(i),this.unsubscribeFromTarget=void 0,this.handler=new Hn,this.updateAll=()=>this.forceUpdate(),this.onStartDragging=a=>{this.preventSelection();const{size:s}=this.props;this.startSize={x:this.state.width||s.width,y:this.state.height||s.height}},this.onDragHandleBottom=(a,s,f)=>{const h=this.calculateHeight(this.startSize.y+f);this.setState({height:h})},this.onDragHandleRight=(a,s)=>{const f=this.calculateWidth(this.startSize.x+s);this.setState({width:f})},this.onDragHandleBottomRight=(a,s,f)=>{const h=this.calculateWidth(this.startSize.x+s),m=this.calculateHeight(this.startSize.y+f);this.setState({width:h,height:m})},this.preventSelection=()=>{const a=()=>{document.body.classList.remove("graph-explorer--unselectable"),document.removeEventListener("mouseup",a)};document.addEventListener("mouseup",a),document.body.classList.add("graph-explorer--unselectable")},this.state={}}componentDidMount(){this.listenToTarget(this.props.target),this.focusOn()}componentDidUpdate(i){i.target!==this.props.target&&this.listenToTarget(i.target)}componentWillUnmount(){this.listenToTarget(void 0)}listenToTarget(i){if(this.unsubscribeFromTarget&&(this.unsubscribeFromTarget(),this.unsubscribeFromTarget=void 0),i){const{view:a}=this.props;i instanceof fl?this.listenToElement(i):i instanceof Jr&&this.listenToLink(i),this.handler.listen(a.events,"changeLanguage",this.updateAll),this.unsubscribeFromTarget=()=>{this.handler.stopListening()}}}listenToElement(i){this.handler.listen(i.events,"changePosition",this.updateAll),this.handler.listen(i.events,"changeSize",this.updateAll)}listenToLink(i){const{view:a}=this.props,s=a.model.getElement(i.sourceId),f=a.model.getElement(i.targetId);this.listenToElement(s),this.listenToElement(f),this.handler.listen(i.events,"changeVertices",this.updateAll),this.handler.listen(i.events,"changeLabelBounds",this.updateAll)}calculatePositionForElement(i){const{paperArea:a,size:s}=this.props,f=Ju(i),{y:h}=a.paperToScrollablePaneCoords(f.x,f.y),{x:m,y:v}=a.paperToScrollablePaneCoords(f.x+f.width,f.y+f.height);return{x:m+cD,y:(h+v)/2-s.height/2}}calculatePositionForLink(i){const{view:a,paperArea:s}=this.props,f=a.model.getElement(i.sourceId),h=a.model.getElement(i.targetId);if(!f||!h)throw new Error("Source and target are not specified");const m=a.getRouting(i.id),v=i.vertices||[],w=S0(f,h,m?m.vertices:v),E=T0(w,Pv(w)/2),{x:S,y:_}=s.paperToScrollablePaneCoords(E.x,E.y);return{y:_+Yw,x:S+Yw}}calculatePosition(){const{target:i,paperArea:a,offset:s={x:0,y:0},calculatePosition:f}=this.props;if(f){const h=f(),{x:m,y:v}=a.paperToScrollablePaneCoords(h.x,h.y);return{x:m+s.x,y:v+s.y}}if(i instanceof fl)return this.calculatePositionForElement(i);if(i instanceof Jr)return this.calculatePositionForLink(i);throw new Error("Unknown target type")}getViewPortScrollablePoints(){const{paperArea:i}=this.props,a=i.getAreaMetrics();return{min:i.clientToScrollablePaneCoords(0,0),max:i.clientToScrollablePaneCoords(a.clientWidth,a.clientHeight)}}getDialogScrollablePoints(){const{size:i}=this.props,{x:a,y:s}=this.calculatePosition(),f={x:a-Qb,y:s-Qb};return{min:f,max:{x:f.x+i.width+Qb*2,y:f.y+i.height+Qb*2}}}focusOn(){const{paperArea:i}=this.props,{min:a,max:s}=this.getViewPortScrollablePoints(),{min:f,max:h}=this.getDialogScrollablePoints();let m=0;f.x<a.x?m=f.x-a.x:h.x>s.x&&(m=h.x-s.x);let v=0;f.y<a.y?v=f.y-a.y:h.y>s.y&&(v=h.y-s.y);const w={x:a.x+(s.x-a.x)/2,y:a.y+(s.y-a.y)/2},E={x:w.x+m,y:w.y+v},S=i.scrollablePaneToPaperCoords(E.x,E.y);i.centerTo(S)}calculateHeight(i){const{size:a}=this.props,s=Math.min(a.height,sD),f=Math.max(a.height,uD);return Math.max(s,Math.min(f,i))}calculateWidth(i){const{size:a}=this.props,s=Math.min(a.width,lD),f=Math.max(a.width,oD);return Math.max(s,Math.min(f,i))}render(){const{size:i,caption:a}=this.props,{x:s,y:f}=this.calculatePosition(),h={top:f,left:s,width:this.state.width||i.width,height:this.state.height||i.height};return N.createElement("div",{className:u1,style:h},N.createElement("button",{className:`${u1}__close-button`,onClick:()=>this.props.onClose()}),a?N.createElement("div",{className:"graph-explorer-dialog__caption"},a):null,this.props.children,N.createElement(o1,{className:`${u1}__bottom-handle`,onBeginDragHandle:this.onStartDragging,onDragHandle:this.onDragHandleBottom}),N.createElement(o1,{className:`${u1}__right-handle`,onBeginDragHandle:this.onStartDragging,onDragHandle:this.onDragHandleRight}),N.createElement(o1,{className:`${u1}__bottom-right-handle`,onBeginDragHandle:this.onStartDragging,onDragHandle:this.onDragHandleBottomRight}))}},wi=(function(i){return i.none="none",i.loading="loading",i.error="error",i.completed="completed",i})({}),eS="graph-explorer-progress-bar",k0=class extends N.Component{render(){const{state:i,percent:a=100,height:s=20}=this.props,f=`${eS} ${eS}--${i}`,h=i==="loading"||i==="error";return N.createElement("div",{className:f,style:{height:h?s:0}},N.createElement("div",{className:`${eS}__bar`,role:"progressbar",style:{width:`${a}%`},"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":a}))}},tS="graph-explorer-list-element-view",nS=class extends N.Component{constructor(...i){super(...i),this.onClick=a=>{const{disabled:s,model:f,onClick:h}=this.props;!s&&h&&(a.persist(),h(a,f))}}render(){const{className:i,view:a,model:s,highlightText:f,disabled:h,selected:m,onDragStart:v}=this.props,{h:w,c:E,l:S}=a.getTypeStyle(s.types).color,_=m&&!h?wm(w,E,S*1.2):wm("white");let L=`${tS}`;L+=h?` ${tS}--disabled`:"",L+=i?` ${i}`:"";const x=a.formatLabel(s.label.values,s.id),D=s.types.length>0?`
Classes: ${a.getElementTypeString(s)}`:"";return N.createElement("li",{className:L,draggable:!h&&!!v,title:`${x} ${a.formatIri(s.id)}${D}`,style:{background:wm(w,E,S).toString()},onClick:this.onClick,onDragStart:v},N.createElement("div",{className:`${tS}__label`,style:{background:_.toString()}},c1(x,f)))}};function Vw(i,a){try{i.dataTransfer.setData("application/x-graph-explorer-elements",JSON.stringify(a))}catch{i.dataTransfer.setData("text",JSON.stringify(a))}return!1}var hD={className:"graph-explorer-text-highlight"};function c1(i,a,s=hD){if(!a)return N.createElement("span",null,i);const f=i.toLowerCase().indexOf(a.toLowerCase());if(f<0)return N.createElement("span",null,i);const h=f+a.length,m=i.substring(0,f),v=i.substring(f,h),w=i.substring(h);return N.createElement("span",null,m,N.createElement("span",s,v),w)}var dD="graph-explorer-search-results",iS=class extends N.Component{static{this.defaultProps={useDragAndDrop:!0}}constructor(i){super(i),this.listener=new Hn,this.delayedChangeCells=new us,this.startSelection=0,this.endSelection=0,this.onRootMount=a=>{this.root=a},this.renderResultItem=a=>{const{useDragAndDrop:s}=this.props,f=this.canBeSelected(a);return N.createElement(nS,{key:a.id,model:a,view:this.props.view,highlightText:this.props.highlightText,disabled:!f,selected:this.props.selection.has(a.id),onClick:f?this.onItemClick:void 0,onDragStart:s?h=>{const{selection:m}=this.props,v=[];return m.forEach(w=>v.push(w)),m.has(a.id)||v.push(a.id),Vw(h,v)}:void 0})},this.onChangeCells=()=>{const{items:a,selection:s}=this.props;if(s.size===0)a&&a.length>0&&this.forceUpdate();else{const f=wE(s);for(const h of this.props.view.model.elements)h.group===void 0&&s.has(h.iri)&&f.delete(h.iri);this.updateSelection(f)}},this.addKeyListener=()=>{document.addEventListener("keydown",this.onKeyUp)},this.removeKeyListener=()=>{document.removeEventListener("keydown",this.onKeyUp)},this.onKeyUp=a=>{const{items:s}=this.props,f=a.keyCode===38||a.which===38,h=a.keyCode===40||a.which===40;if(f||h)if(a.shiftKey){f?this.endSelection=this.getNextIndex(this.endSelection,0):h&&(this.endSelection=this.getNextIndex(this.endSelection,1));const m=Math.min(this.startSelection,this.endSelection),v=Math.max(this.startSelection,this.endSelection),w=this.selectRange(m,v);this.updateSelection(w),this.focusOn(this.endSelection)}else{const m=Math.min(this.startSelection,this.endSelection),v=Math.max(this.startSelection,this.endSelection);f?this.startSelection=this.getNextIndex(m,0):h&&(this.startSelection=this.getNextIndex(v,1)),this.endSelection=this.startSelection;const w=s[this.startSelection],E=new Set;E.add(w.id),this.updateSelection(E),this.focusOn(this.startSelection)}a.preventDefault()},this.onItemClick=(a,s)=>{a.preventDefault();const{items:f,selection:h,onSelectionChanged:m}=this.props,v=f.indexOf(s);let w;if(a.shiftKey&&this.startSelection!==-1){const E=Math.min(this.startSelection,v),S=Math.max(this.startSelection,v);w=this.selectRange(E,S)}else this.endSelection=this.startSelection=v,a.ctrlKey||a.metaKey?(w=wE(h),h.has(s.id)?w.delete(s.id):w.add(s.id)):(w=new Set,w.add(s.id));m(w)},this.state={selection:i.selection||{}}}render(){const i=this.props.items||[];return N.createElement("ul",{className:dD,ref:this.onRootMount,tabIndex:-1,onFocus:this.addKeyListener,onBlur:this.removeKeyListener},i.map(this.renderResultItem))}componentDidMount(){this.listener.listen(this.props.view.model.events,"changeCells",()=>{this.delayedChangeCells.call(this.onChangeCells)})}UNSAFE_componentWillReceiveProps(i){this.setState({selection:i.selection||{}})}componentWillUnmount(){this.removeKeyListener(),this.listener.stopListening(),this.delayedChangeCells.dispose()}updateSelection(i){const{onSelectionChanged:a}=this.props;a(i)}selectRange(i,a){const{items:s}=this.props,f=new Set;for(let h=i;h<=a;h++){const m=s[h];this.canBeSelected(m)&&f.add(m.id)}return f}getNextIndex(i,a){const{items:s}=this.props;if(s.length===0)return i;const f=a===0?-1:1;for(let h=1;h<s.length;h++){let m=i+h*f;if(m<0&&(m+=s.length),m>=s.length&&(m-=s.length),this.canBeSelected(s[m]))return m}return i}canBeSelected(i){const a=this.props.view.model.elements.findIndex(s=>s.iri===i.id&&s.group===void 0)>=0;return!this.props.useDragAndDrop||!a}focusOn(i){const a=this.root.parentElement,s=a.getBoundingClientRect(),f=this.root.children.item(i),h=f.getBoundingClientRect(),m=h.top-s.top,v=h.bottom-s.top;m<0?a.scrollTop+=m:v>s.height&&(a.scrollTop+=v-s.height),f.focus()}},z0=100,Mm=new oE({id:"allRelatedElements",label:[{value:"All",language:""}]}),pD=class extends N.Component{constructor(...i){super(...i),this.handler=new Hn,this.linkTypesListener=new Hn,this.loadingState=wi.none,this.updateAll=()=>this.forceUpdate(),this.addSelectedElements=a=>{const{onClose:s,onAddElements:f}=this.props,h=a.map(v=>v.model.id),m=this.linkDataChunk?this.linkDataChunk.link:void 0;f(h,this.linkDataChunk&&m!==Mm?m:void 0),s()},this.onExpandLink=a=>{this.objects&&this.linkDataChunk&&this.linkDataChunk.link===a.link&&this.linkDataChunk.direction===a.direction||this.loadObjects(a),this.updateAll(),this.context.workspace.triggerWorkspaceEvent(Lh.connectionsExpandLink)},this.onMoveToFilter=a=>{const{view:s,target:f}=this.props,{link:h,direction:m}=a;h===Mm?f.addToFilter():s.model.getElement(f.id).addToFilter(h,m)}}static{this.contextType=e1}componentDidMount(){const{view:i}=this.props;this.handler.listen(i.events,"changeLanguage",this.updateAll),this.loadLinks()}componentWillUnmount(){this.handler.stopListening(),this.linkTypesListener.stopListening()}resubscribeOnLinkTypeEvents(i){this.linkTypesListener.stopListening();for(const a of i)this.linkTypesListener.listen(a.events,"changeLabel",this.updateAll),this.linkTypesListener.listen(a.events,"changeVisibility",this.updateAll)}loadLinks(){const{view:i,editor:a,target:s}=this.props;this.loadingState=wi.loading,this.links=[],this.countMap={},a.model.dataProvider.linkTypesOf({elementId:s.iri}).then(f=>{this.loadingState=wi.completed;const h={},m=[];for(const{id:v,inCount:w,outCount:E}of f)h[v]={inCount:w,outCount:E},m.push(i.model.createLinkType(v));h[Mm.id]=Object.keys(h).map(v=>h[v]).reduce((v,w)=>({inCount:v.inCount+w.inCount,outCount:v.outCount+w.outCount}),{inCount:0,outCount:0}),this.countMap=h,this.links=m,this.resubscribeOnLinkTypeEvents(this.links),this.updateAll(),this.context.workspace.triggerWorkspaceEvent(Lh.connectionsLoadLinks)}).catch(f=>{console.error(f),this.loadingState=wi.error,this.updateAll()}),this.updateAll()}loadObjects(i){const{view:a,editor:s,target:f}=this.props,{link:h,direction:m}=i,v=i.offset||0;this.loadingState=wi.loading,this.linkDataChunk=i,this.objects=[],s.model.dataProvider.linkElements({elementId:f.iri,linkId:h===Mm?void 0:h.id,limit:v+z0,offset:v,direction:m}).then(w=>{this.loadingState=wi.completed,this.objects=Object.keys(w).map(E=>({model:w[E],presentOnDiagram:a.model.elements.findIndex(S=>S.iri===E&&S.group===void 0)>=0})),this.updateAll(),this.context.workspace.triggerWorkspaceEvent(Lh.connectionsLoadElements)}).catch(w=>{console.error(w),this.loadingState=wi.error,this.updateAll()})}render(){const i={links:this.links||[],countMap:this.countMap||{}};let a=null;this.linkDataChunk&&this.objects&&(a={linkDataChunk:this.linkDataChunk,objects:this.objects});const{view:s,target:f,suggestProperties:h}=this.props;return N.createElement(gD,{target:f,connectionsData:i,objectsData:a,state:this.loadingState,view:s,onExpandLink:this.onExpandLink,onPressAddSelected:this.addSelectedElements,onMoveToFilter:this.onMoveToFilter,propertySuggestionCall:h})}},gD=class extends N.Component{constructor(i){super(i),this.onChangeFilter=a=>{const s=a.currentTarget.value;this.setState({filterKey:s})},this.getTitle=()=>this.props.objectsData&&this.state.panel==="objects"?"Objects":this.props.connectionsData&&this.state.panel==="connections"?"Connections":"Error",this.onExpandLink=a=>{this.setState({filterKey:"",panel:"objects"}),this.props.onExpandLink(a)},this.onCollapseLink=()=>{this.setState({filterKey:"",panel:"connections"})},this.getBreadCrumbs=()=>{if(this.props.objectsData&&this.state.panel==="objects"){const{link:a,direction:s}=this.props.objectsData.linkDataChunk,f=this.props.view.formatLabel(a.label,a.id);return N.createElement("span",{className:"graph-explorer-connections-menu_bread-crumbs"},N.createElement("a",{className:"graph-explorer-connections-menu__link",onClick:this.onCollapseLink},"Connections")," / ",f," ",s?`(${s})`:null)}else return null},this.getBody=()=>this.props.state==="error"?N.createElement("label",{className:"graph-explorer-label graph-explorer-connections-menu__error"},"Error"):this.props.objectsData&&this.state.panel==="objects"?N.createElement(yD,{data:this.props.objectsData,onMoveToFilter:this.props.onMoveToFilter,view:this.props.view,filterKey:this.state.filterKey,loading:this.props.state===wi.loading,onPressAddSelected:this.props.onPressAddSelected}):this.props.connectionsData&&this.state.panel==="connections"?this.props.state===wi.loading?N.createElement("label",{className:"graph-explorer-label graph-explorer-connections-menu__loading"},"Loading..."):N.createElement(mD,{id:this.props.target.id,data:this.props.connectionsData,view:this.props.view,filterKey:this.state.filterKey,onExpandLink:this.onExpandLink,onMoveToFilter:this.props.onMoveToFilter,propertySuggestionCall:this.props.propertySuggestionCall,sortMode:this.state.sortMode}):N.createElement("div",null),this.onSortChange=a=>{const s=a.target.value;this.state.sortMode!==s&&this.setState({sortMode:s})},this.renderSortSwitch=(a,s,f)=>N.createElement("div",null,N.createElement("input",{type:"radio",name:"sort",id:a,value:a,className:"graph-explorer-connections-menu__sort-switch",onChange:this.onSortChange,checked:this.state.sortMode===a}),N.createElement("label",{htmlFor:a,className:"graph-explorer-connections-menu__sort-switch-label",title:f},N.createElement("i",{className:`fa ${s}`}))),this.renderSortSwitches=()=>this.state.panel!=="connections"||!this.props.propertySuggestionCall?null:N.createElement("div",{className:"graph-explorer-connections-menu_search-line-sort-switches"},this.renderSortSwitch("alphabet","fa-sort-alpha-asc","Sort alphabetically"),this.renderSortSwitch("smart","fa-lightbulb-o","Smart sort")),this.state={filterKey:"",panel:"connections",sortMode:"alphabet"}}render(){return N.createElement("div",{className:"graph-explorer-connections-menu"},N.createElement("label",{className:"graph-explorer-label graph-explorer-connections-menu__title-label"},this.getTitle()),this.getBreadCrumbs(),N.createElement("div",{className:"graph-explorer-connections-menu_search-line"},N.createElement("input",{type:"text",className:"search-input graph-explorer-form-control graph-explorer-connections-menu__search-line-input",value:this.state.filterKey,onChange:this.onChangeFilter,placeholder:"Search for..."}),this.renderSortSwitches()),N.createElement(k0,{state:this.props.state,height:10}),this.getBody())}},mD=class extends N.Component{constructor(i){super(i),this.updateScores=a=>{if(a.propertySuggestionCall&&(a.filterKey||a.sortMode==="smart")){const{id:s,data:f,view:h,filterKey:m}=a,v=h.getLanguage(),w=m.trim(),E=f.links.map(S=>S.id);a.propertySuggestionCall({elementId:s,token:w,properties:E,lang:v}).then(S=>this.setState({scores:S}))}},this.compareLinks=(a,s)=>{const{view:f}=this.props,h=f.formatLabel(a.label,a.id),m=f.formatLabel(s.label,s.id);return h.localeCompare(m)},this.compareLinksByWeight=(a,s)=>{const{view:f}=this.props,h=f.formatLabel(a.label,a.id),m=f.formatLabel(s.label,s.id),v=this.state.scores[a.id]?this.state.scores[a.id].score:0,w=this.state.scores[s.id]?this.state.scores[s.id].score:0;return v>w?-1:v<w?1:h.localeCompare(m)},this.getLinks=()=>{const{view:a,data:s,filterKey:f}=this.props;return(s.links||[]).filter(h=>{const m=a.formatLabel(h.label,h.id).toLowerCase();return!f||m.indexOf(f.toLowerCase())>=0}).sort(this.compareLinks)},this.getProbableLinks=()=>{const a=this.isSmartMode();return(this.props.data.links||[]).filter(s=>this.state.scores[s.id]&&(this.state.scores[s.id].score>0||a)).sort(this.compareLinksByWeight)},this.getViews=(a,s)=>{const{view:f}=this.props,h=this.props.data.countMap||{},m=[],v=(w,E)=>{const S=E==="in"?h[w.id].inCount:h[w.id].outCount;if(S===0)return;const _=s?"-probable":"";m.push(N.createElement($w,{key:`${E}-${w.id}-${_}`,link:w,onExpandLink:this.props.onExpandLink,view:f,count:S,direction:E,filterKey:s?"":this.props.filterKey,onMoveToFilter:this.props.onMoveToFilter,probability:this.state.scores[w.id]&&s?this.state.scores[w.id].score:0}))};for(const w of a)v(w,"in"),v(w,"out");return m},this.state={scores:{}},this.updateScores(i)}componentDidUpdate(i){this.updateScores(i)}isSmartMode(){return this.props.sortMode==="smart"&&!this.props.filterKey}render(){const{view:i}=this.props,a=this.isSmartMode(),s=a?[]:this.getLinks(),f=this.getProbableLinks().filter(E=>s.indexOf(E)===-1),h=this.getViews(s),m=this.getViews(f,!0);let v;if(h.length===0&&m.length===0)v=N.createElement("label",{className:"graph-explorer-label graph-explorer-connections-menu_links-list__empty"},"List empty");else if(v=h,h.length>1||a&&m.length>1){const E=(this.props.data.countMap||{})[Mm.id];v=[N.createElement($w,{key:Mm.id,link:Mm,onExpandLink:this.props.onExpandLink,view:i,count:E.inCount+E.outCount,onMoveToFilter:this.props.onMoveToFilter}),N.createElement("hr",{key:"graph-explorer-hr-line",className:"graph-explorer-connections-menu_links-list__hr"})].concat(v)}let w=null;return m.length!==0&&(w=[a?null:N.createElement("li",{key:"probable-links"},N.createElement("span",{className:"graph-explorer-label"},"Probably, you‘re looking for..")),m]),N.createElement("ul",{className:"graph-explorer-connections-menu_links-list "+(h.length===0&&m.length===0?"ocm_links-list-empty":"")},v,w)}},$w=class extends N.Component{constructor(...i){super(...i),this.onExpandLink=(a,s)=>{this.props.onExpandLink({link:this.props.link,direction:s,expectedCount:a})},this.onMoveToFilter=a=>{a.stopPropagation(),this.props.onMoveToFilter({link:this.props.link,direction:this.props.direction,expectedCount:this.props.count})}}render(){const{view:i,link:a}=this.props,s=i.formatLabel(a.label,a.id),f=Math.round(this.props.probability*100),h=c1(s+(f>0?" ("+f+"%)":""),this.props.filterKey),m=this.props.direction==="in"?"source":this.props.direction==="out"?"target":"all connected";return N.createElement("li",{"data-linktypeid":this.props.link.id,className:"link-in-popup-menu",title:`${m} of "${s}" ${i.formatIri(a.id)}`,onClick:()=>this.onExpandLink(this.props.count,this.props.direction)},this.props.direction==="in"||this.props.direction==="out"?N.createElement("div",{className:"link-in-popup-menu_direction"},this.props.direction==="in"&&N.createElement("div",{className:"link-in-popup-menu_direction__in-direction"}),this.props.direction==="out"&&N.createElement("div",{className:"link-in-popup-menu_direction__out-direction"})):null,N.createElement("div",{className:"link-in-popup-menu__link-title"},h),N.createElement("span",{className:"graph-explorer-badge link-in-popup-menu__count"},this.props.count<=z0?this.props.count:"100+"),N.createElement("div",{className:"link-in-popup-menu__filter-button",onClick:this.onMoveToFilter,title:"Set as filter in the Instances panel"}),N.createElement("div",{className:"link-in-popup-menu__navigate-button",title:`Navigate to ${m} "${s}" elements`}))}},yD=class extends N.Component{constructor(i){super(i),this.onSelectAll=()=>{const a=this.props.data.objects;if(a.length===0)return;const s=Xw(a,this.state.selection)?new Set:vD(this.props.data.objects);this.updateSelection(s)},this.updateSelection=a=>{this.setState({selection:a})},this.counter=a=>{const s=`${a} of ${this.props.data.objects.length}`,f=Math.min(z0,this.props.data.linkDataChunk.expectedCount)-this.props.data.objects.length,h=Math.abs(f)>z0?`${z0}+`:Math.abs(f).toString(),m=f===0?"":f<0?` (${h})`:` (${h})`,v=f===0?"":f>0?"Unavailable nodes":"Extra nodes";return N.createElement("div",{className:"graph-explorer-label graph-explorer-connections-menu_objects-panel_bottom-panel__count-label"},N.createElement("span",null,s),N.createElement("span",{className:"graph-explorer-connections-menu_objects-panel_bottom-panel__extra-elements",title:v},m))},this.state={selection:new Set}}componentDidUpdate(i){this.props.data.objects.length<i.data.objects.length&&this.setState({selection:new Set})}getFilteredObjects(){if(!this.props.filterKey)return this.props.data.objects;const i=this.props.filterKey.toLowerCase();return this.props.data.objects.filter(a=>{const s=this.props.view.formatLabel(a.model.label.values,a.model.id).toLowerCase();return s&&s.indexOf(i)>=0})}getItems(i){const a={},s=[];for(const f of i)a[f.model.id]||(a[f.model.id]=!0,s.push(f.model));return s}render(){const{onPressAddSelected:i,filterKey:a}=this.props,{selection:s}=this.state,f=this.getFilteredObjects(),h=Xw(f,s),m=f.filter(w=>!w.presentOnDiagram),v=m.filter(w=>s.has(w.model.id));return N.createElement("div",{className:"graph-explorer-connections-menu_objects-panel"},N.createElement("div",{className:"graph-explorer-connections-menu_objects-panel__select-all"},N.createElement("label",null,N.createElement("input",{type:"checkbox",checked:h&&m.length>0,onChange:this.onSelectAll,disabled:m.length===0}),"Select All")),this.props.loading?N.createElement("label",{className:"graph-explorer-label graph-explorer-connections-menu__loading-objects"},"Loading..."):f.length===0?N.createElement("label",{className:"graph-explorer-label graph-explorer-connections-menu__loading-objects"},"No available nodes"):N.createElement("div",{className:"graph-explorer-connections-menu_objects-panel_objects-list"},N.createElement(iS,{view:this.props.view,items:this.getItems(f),selection:this.state.selection,onSelectionChanged:this.updateSelection,highlightText:a}),this.props.data.linkDataChunk.expectedCount>z0?N.createElement("div",{className:"graph-explorer-connections-menu__move-to-filter",onClick:()=>this.props.onMoveToFilter(this.props.data.linkDataChunk)},"The list was truncated, for more data click here to use the filter panel"):null),N.createElement("div",{className:"graph-explorer-connections-menu_objects-panel_bottom-panel"},this.counter(v.length),N.createElement("button",{className:"graph-explorer-btn graph-explorer-btn-primary pull-right graph-explorer-connections-menu_objects-panel_bottom-panel__add-button",disabled:this.props.loading||m.length===0,onClick:()=>i(v.length>0?v:m)},v.length>0?"Add selected":"Add all")))}};function vD(i){const a=new Set;for(const s of i)s.presentOnDiagram||a.add(s.model.id);return a}function Xw(i,a){let s=!0;for(const f of i)f.presentOnDiagram||(s=s&&a.has(f.model.id));return s}var dp="graph-explorer-edit-form",bD=class extends N.Component{constructor(i){super(i),this.renderProperty=(a,s)=>{const{view:f}=this.props,h=f.model.getProperty(a),m=f.formatLabel(h.label,a);let v=[];return E0(s)&&(v=s.values.map(({value:w,language:E})=>({value:w,language:E}))),N.createElement("div",{key:a,className:`${dp}__form-row`},N.createElement("label",null,m,v.map((w,E)=>N.createElement("input",{key:E,className:"graph-explorer-form-control",defaultValue:w.value,lang:w.language,onChange:this.onChangeProp,"data-iri":a}))))},this.onChangeIri=a=>{const s=a.target.value;this.setState(f=>({elementModel:{...f.elementModel,id:s}}))},this.onChangeLabel=a=>{const s=a.target,f=s.value.length>0?[{value:s.value,language:""}]:[];this.setState({elementModel:{...this.state.elementModel,label:{values:f}}})},this.onChangeProp=a=>{const s=a.target,f=[];s.parentElement.querySelectorAll('[data-iri="'+s.dataset.iri+'"]').forEach(h=>{const m=h;f.push({value:m.value,language:m.lang})}),this.setState({elementModel:{...this.state.elementModel,properties:{...this.state.elementModel.properties,[s.dataset.iri]:{type:"string",values:f}}}})},this.state={elementModel:i.entity}}componentDidUpdate(i){this.props.entity!==i.entity&&this.setState({elementModel:i.entity})}renderProperties(){const{properties:i}=this.props.entity,a=Object.keys(i);return N.createElement("div",null,a.map(s=>this.renderProperty(s,i[s])))}renderType(){const{view:i}=this.props,{elementModel:a}=this.state,s=i.getElementTypeString(a);return N.createElement("label",null,"Type",N.createElement("input",{className:"graph-explorer-form-control",value:s,disabled:!0}))}renderIri(){const{elementModel:i}=this.state;return N.createElement("label",null,"IRI",N.createElement("input",{className:"graph-explorer-form-control",defaultValue:i.id,onChange:this.onChangeIri}))}renderLabel(){const{view:i}=this.props,a=i.selectLabel(this.state.elementModel.label.values),s=a?a.value:"";return N.createElement("label",null,"Label",N.createElement("input",{className:"graph-explorer-form-control",value:s,onChange:this.onChangeLabel}))}render(){return N.createElement("div",{className:dp},N.createElement("div",{className:`${dp}__body`},N.createElement("div",{className:`${dp}__form-row`},this.renderIri()),N.createElement("div",{className:`${dp}__form-row`},this.renderType()),N.createElement("div",{className:`${dp}__form-row`},this.renderLabel()),this.renderProperties()),N.createElement("div",{className:`${dp}__controls`},N.createElement("button",{className:`graph-explorer-btn graph-explorer-btn-success ${dp}__apply-button`,onClick:()=>this.props.onApply(this.state.elementModel)},"Apply"),N.createElement("button",{className:"graph-explorer-btn graph-explorer-btn-danger",onClick:this.props.onCancel},"Cancel")))}},WR="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAbCAYAAAAOEM1uAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAZEQAAGREBkIelaAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAG2SURBVFiFzde9axRRFMbhJ3Hjx0YRgkWElGIRGyVgaaG9XQpBrNIETJHKjxBSJCA2NiIWdhYKgoqCIELq/AU2tiJpAiliDMHEWEyKZfdO5szHrr4wzcx77vnNnXPnnktcK9jBwYCuLcwNBeHGsIGovyltDweNbYOHg9Eo4D9Tq0bsGj40BXKoO5isEjiht4ifHuE/qVpJvO/O049PvIxN/MBMH8ZP6pzeGVxK+C4kfAsl8vTMYBnI1x1Bv3E54bmWSHCAx2KfvBbgKGbxJAfOIcS7HMjnKCqpWoBRtfE5B/IVRsoAtnAGd3GlQchd/NE7Y7dwCtPYiw72xuD216KFk/zN3Ii+SYOajhqHZUU9aK1GjS3M4xumFK+yMuPexLHEsy9YbChPJR3HW+na+yjbBvNU+zdzHbcxfoTnUw7cS8XNSS3AFx1B6zif8FzKgXsmVj6VAduyFrwzcCUHcL/L9yiaJAUYXRRjON1172zC9xX3ZS+ziTk8KAFYWWX7wRGcqJAnudVV1RTu1YhP6WL3jWjXO4HvzbLE9N8fmqKAv/SpNyvQdmorSmlHVvhX1TsJltFPPPwL/+nTC6wUIf8AAAAASUVORK5CYII=",eN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAbCAYAAAAOEM1uAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAZEQAAGREBkIelaAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAGCSURBVFiFzdi9ShxRFAfwn+uiaAoRVBQbbfMEFqIoFja+QCoLLQQr8R0sbdIJgTQiSgT1AcTKzkdIQhpTaOlX0GyK2WJ2c8d1Pt0/XBjOnTnnP+eerxnYxj0aJa9nfEOvlLirgFx8zaQhV8Ng2jfKiVT2amWxKAr1gOwElwXpH8NWXiXtMbKZV2EMHwP6F2P7dR1O8T2PeBW/8EMHp5TpwWGtJewF06JEuWmzu4ueqgnC55juw6ZsHE8B218F8qJsgkS1b0Grh74EbDdwioGqCYbQj6MEkhcYIlxm3opZrGEyh47eJqH22JvDOZbJ5sEJ4Rgqeh1nLTMr6Mv4bBpMZSV4hj9FMknA96wxeC3qCOvyxWAd88L17wobdHkWV0VwxP+e3ksgd6LiOrgtyvhn7DRlo3gM2K68kwziNqb7QTSC9eN3m9136cWvjVuf8FOHaSZPJ8mLfRw0r/8m3RQiuIQPBZEY67CfSCyOsttV0hG/CV3/0VQTTbxVIrW9rv6z8A+8NRQ5z9bcwQAAAABJRU5ErkJggg==",Dl="graph-explorer-instances-search",_D=class extends N.Component{static{this.contextType=e1}constructor(i){super(i),this.listener=new Hn,this.onSelectionChanged=a=>{this.setState({selection:a})},this.state={resultId:0,selection:new Set}}render(){const a=`${Dl} ${this.props.className||""}`,s=this.state.quering?wi.loading:this.state.error?wi.error:this.state.items?wi.completed:wi.none,f=this.state.inputText===void 0?this.props.criteria.text:this.state.inputText;return N.createElement("div",{className:a},N.createElement(k0,{state:s}),N.createElement("div",{className:`${Dl}__criteria`},this.renderCriteria(),N.createElement("div",{className:`${Dl}__text-criteria graph-explorer-input-group`},N.createElement("input",{type:"text",className:"graph-explorer-form-control",placeholder:"Search for...",value:f||"",onChange:h=>this.setState({inputText:h.currentTarget.value}),onKeyUp:h=>{h.keyCode===13&&this.submitCriteriaUpdate()}}),N.createElement("span",{className:"graph-explorer-input-group-btn"},N.createElement("button",{className:"graph-explorer-btn graph-explorer-btn-default",type:"button",title:"Search",onClick:()=>this.submitCriteriaUpdate()},N.createElement("span",{className:"fa fa-search","aria-hidden":"true"}))))),N.createElement("div",{className:`${Dl}__rest graph-explorer-scrollable`,key:this.state.resultId},N.createElement(iS,{view:this.props.view,items:this.state.items,highlightText:this.props.criteria.text,selection:this.state.selection,onSelectionChanged:this.onSelectionChanged}),N.createElement("div",{className:`${Dl}__rest-end`},N.createElement("button",{type:"button",className:`${Dl}__load-more graph-explorer-btn graph-explorer-btn-primary`,disabled:this.state.quering,style:{display:this.state.moreItemsAvailable?void 0:"none"},onClick:()=>this.queryItems(!0)},N.createElement("span",{className:"fa fa-chevron-down","aria-hidden":"true"})," Show more"))))}renderCriteria(){const{criteria:i={},view:a}=this.props,s=[];if(i.elementType){const f=i.elementType,h=a.formatLabel(f.label,f.id);s.push(N.createElement("div",{key:"hasType",className:`${Dl}__criterion`},this.renderRemoveCriterionButtons(()=>this.props.onCriteriaChanged({...this.props.criteria,elementType:void 0})),"Has type"," ",N.createElement("span",{className:`${Dl}__criterion-class`,title:f.id},h)))}else if(i.refElement){const f=i.refElement,h=a.formatLabel(f.data.label.values,f.iri),m=i.refElementLink,v=m?a.formatLabel(m.label,m.id):void 0;s.push(N.createElement("div",{key:"hasLinkedElement",className:`${Dl}__criterion`},this.renderRemoveCriterionButtons(()=>this.props.onCriteriaChanged({...this.props.criteria,refElement:void 0,refElementLink:void 0})),"Connected to"," ",N.createElement("span",{className:`${Dl}__criterion-element`,title:f?f.iri:void 0},h),m&&N.createElement("span",null," through ",N.createElement("span",{className:`${Dl}__criterion-link-type`,title:m?m.id:void 0},v),i.linkDirection==="in"&&N.createElement("span",null," as ",N.createElement("img",{className:`${Dl}__link-direction`,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAbCAYAAAAOEM1uAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAZEQAAGREBkIelaAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAG2SURBVFiFzde9axRRFMbhJ3Hjx0YRgkWElGIRGyVgaaG9XQpBrNIETJHKjxBSJCA2NiIWdhYKgoqCIELq/AU2tiJpAiliDMHEWEyKZfdO5szHrr4wzcx77vnNnXPnnktcK9jBwYCuLcwNBeHGsIGovyltDweNbYOHg9Eo4D9Tq0bsGj40BXKoO5isEjiht4ifHuE/qVpJvO/O049PvIxN/MBMH8ZP6pzeGVxK+C4kfAsl8vTMYBnI1x1Bv3E54bmWSHCAx2KfvBbgKGbxJAfOIcS7HMjnKCqpWoBRtfE5B/IVRsoAtnAGd3GlQchd/NE7Y7dwCtPYiw72xuD216KFk/zN3Ii+SYOajhqHZUU9aK1GjS3M4xumFK+yMuPexLHEsy9YbChPJR3HW+na+yjbBvNU+zdzHbcxfoTnUw7cS8XNSS3AFx1B6zif8FzKgXsmVj6VAduyFrwzcCUHcL/L9yiaJAUYXRRjON1172zC9xX3ZS+ziTk8KAFYWWX7wRGcqJAnudVV1RTu1YhP6WL3jWjXO4HvzbLE9N8fmqKAv/SpNyvQdmorSmlHVvhX1TsJltFPPPwL/+nTC6wUIf8AAAAASUVORK5CYII="})," source"),i.linkDirection==="out"&&N.createElement("span",null," as ",N.createElement("img",{className:`${Dl}__link-direction`,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAbCAYAAAAOEM1uAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAZEQAAGREBkIelaAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAGCSURBVFiFzdi9ShxRFAfwn+uiaAoRVBQbbfMEFqIoFja+QCoLLQQr8R0sbdIJgTQiSgT1AcTKzkdIQhpTaOlX0GyK2WJ2c8d1Pt0/XBjOnTnnP+eerxnYxj0aJa9nfEOvlLirgFx8zaQhV8Ng2jfKiVT2amWxKAr1gOwElwXpH8NWXiXtMbKZV2EMHwP6F2P7dR1O8T2PeBW/8EMHp5TpwWGtJewF06JEuWmzu4ueqgnC55juw6ZsHE8B218F8qJsgkS1b0Grh74EbDdwioGqCYbQj6MEkhcYIlxm3opZrGEyh47eJqH22JvDOZbJ5sEJ4Rgqeh1nLTMr6Mv4bBpMZSV4hj9FMknA96wxeC3qCOvyxWAd88L17wobdHkWV0VwxP+e3ksgd6LiOrgtyvhn7DRlo3gM2K68kwziNqb7QTSC9eN3m9136cWvjVuf8FOHaSZPJ8mLfRw0r/8m3RQiuIQPBZEY67CfSCyOsttV0hG/CV3/0VQTTbxVIrW9rv6z8A+8NRQ5z9bcwQAAAABJRU5ErkJggg=="})," target"))))}return N.createElement("div",{className:`${Dl}__criterions`},s)}renderRemoveCriterionButtons(i){return N.createElement("div",{className:`${Dl}__criterion-remove ontoidia-btn-group graph-explorer-btn-group-xs`},N.createElement("button",{type:"button",className:"graph-explorer-btn graph-explorer-btn-default",title:"Remove criteria",onClick:i},N.createElement("span",{className:"fa fa-times","aria-hidden":"true"})))}submitCriteriaUpdate(){let i=this.state.inputText===void 0?this.props.criteria.text:this.state.inputText;i=i===""?void 0:i,this.props.onCriteriaChanged({...this.props.criteria,text:i})}componentDidMount(){this.listener.listen(this.props.view.events,"changeLanguage",()=>this.forceUpdate()),this.queryItems(!1)}componentDidUpdate(i){const a=this.currentRequest?this.currentRequest.languageCode!==i.view.getLanguage():!1;(this.props.criteria!==i.criteria||a)&&this.setState({inputText:void 0},()=>this.queryItems(!1))}componentWillUnmount(){this.listener.stopListening(),this.currentRequest=void 0}queryItems(i){let a;if(i){if(!this.currentRequest)throw new Error("Cannot request more items without initial request.");const{offset:s,limit:f}=this.currentRequest;a={...this.currentRequest,offset:s+f}}else a=Qw(this.props.criteria,this.props.view.getLanguage());if(!(a.text||a.elementTypeId||a.refElementId||a.refElementLinkId)){this.setState({quering:!1,error:void 0,items:void 0,selection:new Set,moreItemsAvailable:!1});return}this.currentRequest=a,this.setState({quering:!0,error:void 0,moreItemsAvailable:!1}),this.props.model.dataProvider.filter(a).then(s=>{this.currentRequest===a&&(this.processFilterData(s),this.context.workspace.triggerWorkspaceEvent(Lh.searchQueryItem))}).catch(s=>{this.currentRequest===a&&(console.error(s),this.setState({quering:!1,error:s}))})}processFilterData(i){const a=this.currentRequest.offset>0,s={};a&&this.state.items.forEach(m=>s[m.id]=!0);const f=a?[...this.state.items]:[];for(const m in i)Object.prototype.hasOwnProperty.call(i,m)&&(s[m]||f.push(i[m]));const h=Object.keys(i).length>=this.currentRequest.limit;a?this.setState({quering:!1,items:f,error:void 0,moreItemsAvailable:h}):this.setState({quering:!1,resultId:this.state.resultId+1,items:f,selection:new Set,error:void 0,moreItemsAvailable:h})}};function Qw(i,a){const{text:s,elementType:f,refElement:h,refElementLink:m,linkDirection:v}=i;return{text:s,elementTypeId:f?f.id:void 0,refElementId:h?h.iri:void 0,refElementLinkId:m?m.id:void 0,linkDirection:v,offset:0,limit:100,languageCode:a||"en"}}var mf="graph-explorer-edit-form",ED=class extends N.Component{constructor(i){super(i),this.cancellation=new ii,this.filterCancellation=new ii,this.loadingItemCancellation=new ii,this.onElementTypeChange=async a=>{this.setState({isLoading:!0}),this.loadingItemCancellation.abort(),this.loadingItemCancellation=new ii;const s=this.loadingItemCancellation.signal,{onChange:f,metadataApi:h}=this.props,m=a.target.value,v=await ar.mapCancelledToNull(s,h.generateNewElement([m],s));v!==null&&(this.setState({isLoading:!1}),f({value:v,isNew:!0,loading:!1}))},this.renderPossibleElementType=a=>{const{view:s}=this.props,f=s.model.createClass(a),h=s.formatLabel(f.label,f.id);return N.createElement("option",{key:a,value:a},h)},this.state={searchString:"",existingElements:[]}}componentDidMount(){this.fetchPossibleElementTypes()}componentDidUpdate(i,a){const{searchString:s}=this.state;s!==a.searchString&&this.searchExistingElements()}componentWillUnmount(){this.cancellation.abort(),this.filterCancellation.abort(),this.loadingItemCancellation.abort()}async fetchPossibleElementTypes(){const{view:i,metadataApi:a,source:s}=this.props;if(!a)return;const f=await ar.mapCancelledToNull(this.cancellation.signal,a.typesOfElementsDraggedFrom(s,this.cancellation.signal));f!==null&&(f.sort(SD(i)),this.setState({elementTypes:f}))}searchExistingElements(){const{editor:i,view:a}=this.props,{searchString:s}=this.state;if(this.setState({existingElements:[]}),s.length>0){this.setState({isLoading:!0}),this.filterCancellation.abort(),this.filterCancellation=new ii;const f=this.filterCancellation.signal,h=Qw({text:s},a.getLanguage());i.model.dataProvider.filter(h).then(m=>{if(f.aborted)return;const v=Object.keys(m).map(w=>m[w]);this.setState({existingElements:v,isLoading:!1})})}}renderElementTypeSelector(){const{elementValue:i}=this.props,{elementTypes:a,isLoading:s}=this.state,f=i.value.types.length?i.value.types[0]:"";return s?N.createElement(fs,{width:20,height:20}):N.createElement("div",{className:`${mf}__control-row`},N.createElement("label",null,"Entity Type"),a?N.createElement("select",{className:"graph-explorer-form-control",value:f,onChange:this.onElementTypeChange},N.createElement("option",{value:iE,disabled:!0},"Select entity type"),a.map(this.renderPossibleElementType)):N.createElement("div",null,N.createElement(fs,{width:20,height:20})),i.error?N.createElement("span",{className:`${mf}__control-error`},i.error):"")}renderExistingElementsList(){const{view:i,editor:a,elementValue:s}=this.props,{elementTypes:f,isLoading:h,existingElements:m}=this.state;return h?N.createElement(fs,{width:20,height:20}):m.length>0?m.map(v=>{const w=!a.temporaryState.elements.has(v.id)&&!!a.model.elements.find(({iri:S,group:_})=>S===v.id&&_===void 0),E=!!f.find(S=>v.types.indexOf(S)>=0);return N.createElement(nS,{key:v.id,view:i,model:v,disabled:w||!E,selected:v.id===s.value.id,onClick:(S,_)=>this.onSelectExistingItem(_)})}):N.createElement("span",null,"No results")}async onSelectExistingItem(i){const{editor:a,onChange:s}=this.props;this.loadingItemCancellation.abort(),this.loadingItemCancellation=new ii;const f=this.loadingItemCancellation.signal;s({value:i,isNew:!1,loading:!0});const h=await a.model.dataProvider.elementInfo({elementIds:[i.id]});if(f.aborted)return;const m=h[i.id];s({value:m,isNew:!1,loading:!1})}render(){const{searchString:i}=this.state;return N.createElement("div",{className:`${mf}__form-row ${mf}__element-selector`},N.createElement("div",{className:`${mf}__search`},N.createElement("i",{className:`fa fa-search ${mf}__search-icon`}),N.createElement("input",{value:i,onChange:a=>this.setState({searchString:a.target.value}),className:`graph-explorer-form-control ${mf}__search-input`,placeholder:"Search for...",autoFocus:!0})),i.length>0?N.createElement("div",{className:`${mf}__existing-elements-list`},this.renderExistingElementsList()):N.createElement("div",null,N.createElement("div",{className:`${mf}__separator`},N.createElement("i",{className:`${mf}__separator-text`},"or create new entity")),this.renderElementTypeSelector()))}};function SD(i){return(a,s)=>{const f=i.model.createClass(a),h=i.model.createClass(s),m=i.formatLabel(f.label,f.id),v=i.formatLabel(h.label,h.id);return m.localeCompare(v)}}function TD(i){const a=i.types.indexOf("http://graph-explorer.org/NewEntity")<0?void 0:"Required.";return Promise.resolve({error:a,allowChange:!0})}var Pw="graph-explorer-edit-form",Zw=class extends N.Component{constructor(i){super(i),this.listener=new Hn,this.cancellation=new ii,this.updateAll=()=>this.forceUpdate(),this.onChangeType=a=>{const{link:s,direction:f}=this.props.linkValue.value,h=parseInt(a.currentTarget.value,10),{fatLinkType:m,direction:v}=this.state.fatLinkTypes[h],w={...s,linkTypeId:m.id};f!==v&&(w.sourceId=s.targetId,w.targetId=s.sourceId),this.props.onChange({link:w,direction:v})},this.renderPossibleLinkType=({fatLinkType:a,direction:s},f)=>{const{view:h,source:m,target:v}=this.props,w=h.formatLabel(a.label,a.id);let[E,S]=[m,v].map(_=>h.formatLabel(_.label.values,_.id));return s===Ku.in&&([E,S]=[S,E]),N.createElement("option",{key:f,value:f},w," [",E," → ",S,"]")},this.state={fatLinkTypes:[]}}componentDidMount(){this.fetchPossibleLinkTypes()}componentDidUpdate(i){const{source:a,target:s}=this.props;(i.source!==a||i.target!==s)&&(this.setState({fatLinkTypes:void 0}),this.fetchPossibleLinkTypes())}componentWillUnmount(){this.listener.stopListening(),this.cancellation.abort()}async fetchPossibleLinkTypes(){const{view:i,metadataApi:a,source:s,target:f}=this.props;if(!a)return;const h=await ar.mapCancelledToNull(this.cancellation.signal,a.possibleLinkTypes(s,f,this.cancellation.signal));if(h===null)return;const m=[];h.forEach(({linkTypeIri:v,direction:w})=>{const E=i.model.createLinkType(v);m.push({fatLinkType:E,direction:w})}),m.sort(wD(i)),this.setState({fatLinkTypes:m}),this.listenToLinkLabels(m)}listenToLinkLabels(i){i.forEach(({fatLinkType:a})=>this.listener.listen(a.events,"changeLabel",this.updateAll))}render(){const{linkValue:i,disabled:a}=this.props,{fatLinkTypes:s}=this.state,f=(s||[]).findIndex(({fatLinkType:h,direction:m})=>h.id===i.value.link.linkTypeId&&m===i.value.direction);return N.createElement("div",{className:`${Pw}__control-row`},N.createElement("label",null,"Link Type"),s?N.createElement("select",{className:"graph-explorer-form-control",value:f,onChange:this.onChangeType,disabled:a},N.createElement("option",{value:-1,disabled:!0},"Select link type"),s.map(this.renderPossibleLinkType)):N.createElement("div",null,N.createElement(fs,{width:20,height:20})),i.error?N.createElement("span",{className:`${Pw}__control-error`},i.error):"")}};function wD(i){return(a,s)=>{const f=i.formatLabel(a.fatLinkType.label,a.fatLinkType.id),h=i.formatLabel(s.fatLinkType.label,s.fatLinkType.id),m=f.localeCompare(h);return m!==0?m:a.direction===Ku.out&&s.direction===Ku.in?-1:a.direction===Ku.in&&s.direction===Ku.out?1:0}}function Jw(i,a,s){return a.linkTypeId==="http://graph-explorer.org/NewLink"?Promise.resolve({error:"Required.",allowChange:!0}):Er(a,s)?Promise.resolve({error:void 0,allowChange:!0}):i.model.links.find(({data:{linkTypeId:f,sourceId:h,targetId:m}})=>f===a.linkTypeId&&h===a.sourceId&&m===a.targetId&&!i.temporaryState.links.has(a))?Promise.resolve({error:"The link already exists.",allowChange:!1}):i.model.dataProvider.linksInfo({elementIds:[a.sourceId,a.targetId],linkTypeIds:[a.linkTypeId]}).then(f=>f.some(h=>Er(h,a))?{error:"The link already exists.",allowChange:!1}:{error:void 0,allowChange:!0})}var f1="graph-explorer-edit-form",AD=class extends N.Component{constructor(i){super(i),this.validationCancellation=new ii;const{target:a,link:s}=this.props;this.state={elementValue:{value:a.value,isNew:a.isNew,loading:!1,validated:!0,allowChange:!0},linkValue:{value:{link:s,direction:Ku.out},validated:!0,allowChange:!0}}}componentDidMount(){this.validate()}componentWillUnmount(){this.validationCancellation.abort()}setElementOrLink({elementValue:i,linkValue:a}){this.setState(s=>({elementValue:i||s.elementValue,linkValue:a||s.linkValue}),()=>{(i&&!i.validated||a&&!a.validated)&&this.validate(),i&&i.validated&&i.allowChange&&this.props.onChangeElement(i.value),a&&a.validated&&a.allowChange&&this.props.onChangeLink(a.value.link)})}validate(){const{editor:i,link:a}=this.props,{elementValue:s,linkValue:f}=this.state;this.setState({isValidating:!0}),this.validationCancellation.abort(),this.validationCancellation=new ii;const h=this.validationCancellation.signal,m=TD(s.value),v=Jw(i,f.value.link,a);Promise.all([m,v]).then(([w,E])=>{h.aborted||(this.setState({isValidating:!1}),this.setElementOrLink({elementValue:{...s,...w,validated:!0},linkValue:{...f,...E,validated:!0}}))})}render(){const{editor:i,view:a,metadataApi:s,source:f,link:h}=this.props,{elementValue:m,linkValue:v,isValidating:w}=this.state,E=!m.error&&!v.error;return N.createElement("div",{className:f1},N.createElement("div",{className:`${f1}__body`},N.createElement(ED,{editor:i,view:a,metadataApi:s,source:f,elementValue:m,onChange:S=>{this.setElementOrLink({elementValue:{value:S.value,isNew:S.isNew,loading:S.loading,error:void 0,validated:!1,allowChange:!1},linkValue:{value:{link:{...h,targetId:S.value.id},direction:Ku.out},validated:!1,allowChange:!1}})}}),m.loading?N.createElement("div",{style:{display:"flex"}},N.createElement(fs,{width:20,height:20})," Loading entity..."):N.createElement(Zw,{editor:i,view:a,metadataApi:s,linkValue:v,source:f,target:m.value,onChange:S=>this.setElementOrLink({linkValue:{value:S,error:void 0,validated:!1,allowChange:!1}}),disabled:m.error!==void 0}),w?N.createElement("div",{className:`${f1}__progress`},N.createElement(k0,{state:wi.loading,height:10})):null),N.createElement("div",{className:`${f1}__controls`},N.createElement("button",{className:`graph-explorer-btn graph-explorer-btn-success ${f1}__apply-button`,onClick:()=>this.props.onApply(m.value,m.isNew,v.value.link),disabled:m.loading||!E||w},"Apply"),N.createElement("button",{className:"graph-explorer-btn graph-explorer-btn-danger",onClick:this.props.onCancel},"Cancel")))}},h1="graph-explorer-edit-form",CD=class extends N.Component{constructor(i){super(i),this.validationCancellation=new ii,this.state={linkValue:{value:{link:i.link,direction:Ku.out},validated:!0,allowChange:!0}}}componentDidMount(){this.validate()}componentDidUpdate(i,a){const{linkValue:s}=this.state;Er(s.value.link,a.linkValue.value.link)||this.validate(),s!==a.linkValue&&s.validated&&s.allowChange&&this.props.onChange(s.value.link)}componentWillUnmount(){this.validationCancellation.abort()}validate(){const{editor:i,link:a}=this.props,{linkValue:{value:s}}=this.state;this.setState({isValidating:!0}),this.validationCancellation.abort(),this.validationCancellation=new ii;const f=this.validationCancellation.signal;Jw(i,s.link,a).then(h=>{f.aborted||this.setState(({linkValue:m})=>({linkValue:{...m,...h,validated:!0},isValidating:!1}))})}render(){const{editor:i,view:a,metadataApi:s,source:f,target:h}=this.props,{linkValue:m,isValidating:v}=this.state,w=!m.error;return N.createElement("div",{className:h1},N.createElement("div",{className:`${h1}__body`},N.createElement(Zw,{editor:i,view:a,metadataApi:s,linkValue:m,source:f,target:h,onChange:E=>this.setState({linkValue:{value:E,error:void 0,validated:!1,allowChange:!1}})}),v?N.createElement("div",{className:`${h1}__progress`},N.createElement(k0,{state:wi.loading,height:10})):null),N.createElement("div",{className:`${h1}__controls`},N.createElement("button",{className:`graph-explorer-btn graph-explorer-btn-success ${h1}__apply-button`,onClick:()=>this.props.onApply(m.value.link),disabled:!w||v},"Apply"),N.createElement("button",{className:"graph-explorer-btn graph-explorer-btn-danger",onClick:this.props.onCancel},"Cancel")))}},d1="graph-explorer-edit-form",xD=class extends N.Component{constructor(i){super(i);const a=this.computeLabel();this.state={label:a}}componentDidUpdate(i){if(this.props.link.typeId!==i.link.typeId){const a=this.computeLabel();this.setState({label:a})}}computeLabel(){const{view:i,link:a}=this.props,s=i.model.getLinkType(a.typeId),{label:f={}}=i.createLinkTemplate(s).renderLink(a),h=f.attrs&&f.attrs.text?f.attrs.text.text:void 0;return h&&h.length>0?i.selectLabel(h).value:i.formatLabel(s.label,s.id)}render(){const{onApply:i,onCancel:a}=this.props,{label:s}=this.state;return N.createElement("div",{className:d1},N.createElement("div",{className:`${d1}__body`},N.createElement("div",{className:`${d1}__form-row`},N.createElement("label",null,"Link Label"),N.createElement("input",{className:"graph-explorer-form-control",value:s,onChange:f=>this.setState({label:f.target.value})}))),N.createElement("div",{className:`${d1}__controls`},N.createElement("button",{className:`graph-explorer-btn graph-explorer-btn-success ${d1}__apply-button`,onClick:()=>i(s)},"Apply"),N.createElement("button",{className:"graph-explorer-btn graph-explorer-btn-danger",onClick:()=>a()},"Cancel")))}},Qo="graph-explorer-halo",LD=class extends N.Component{constructor(i){super(i),this.listener=new Hn,this.targetListener=new Hn,this.queryDebouncer=new us,this.queryCancellation=new ii,this.onElementEvent=a=>{(a.changePosition||a.changeSize||a.changeExpanded)&&this.forceUpdate(),a.changeData&&this.queryAllowedActions()},this.onEstablishNewLink=a=>{const s=this.props.paperArea.pageToPaperCoords(a.pageX,a.pageY);this.props.onEstablishNewLink(s)},this.state={}}componentDidMount(){const{editor:i,target:a}=this.props;this.listener.listen(i.events,"changeAuthoringState",()=>{this.queryAllowedActions()}),this.listenToElement(a),this.queryAllowedActions()}componentDidUpdate(i){i.target!==this.props.target&&(this.listenToElement(this.props.target),this.queryAllowedActions())}componentWillUnmount(){this.listener.stopListening(),this.listenToElement(void 0),this.queryDebouncer.dispose(),this.queryCancellation.abort()}listenToElement(i){this.targetListener.stopListening(),i&&this.targetListener.listenAny(i.events,this.onElementEvent)}queryAllowedActions(){this.queryDebouncer.call(()=>{this.queryCancellation.abort(),this.queryCancellation=new ii,this.canLink(this.props.target)})}canLink(i){const{metadataApi:a,editor:s}=this.props;if(!a){this.setState({canLink:!1});return}const f=s.authoringState.elements.get(i.iri);if(f&&f.deleted)this.setState({canLink:!1});else{this.setState({canLink:void 0});const h=this.queryCancellation.signal;ar.mapCancelledToNull(h,a.canLinkElement(i.data,h)).then(m=>{m!==null&&this.props.target.iri===i.iri&&this.setState({canLink:m})})}}render(){const{paperArea:i,editor:a,target:s,navigationMenuOpened:f,onToggleNavigationMenu:h,onAddToFilter:m,onExpand:v,onFollowLink:w}=this.props;if(!s)return N.createElement("div",{className:Qo,style:{display:"none"}});const E=Ju(s),{x:S,y:_}=i.paperToScrollablePaneCoords(E.x,E.y),{x:L,y:x}=i.paperToScrollablePaneCoords(E.x+E.width,E.y+E.height),D=5,B={left:S-D,top:_-D,width:L-S+D*2,height:x-_+D*2};return N.createElement("div",{className:Qo,style:B},this.renderRemoveOrDeleteButton(),h&&N.createElement("div",{className:`${Qo}__navigate ${Qo}__navigate--${f?"closed":"open"}`,role:"button",title:"Open a dialog to navigate to connected elements",onClick:h}),w&&N.createElement("a",{className:`${Qo}__folow`,href:s.iri,role:"button",title:"Jump to resource",onClick:G=>w(s,G)}),m&&N.createElement("div",{className:`${Qo}__add-to-filter`,role:"button",title:"Search for connected elements",onClick:m}),v&&N.createElement("div",{className:`${Qo}__expand ${Qo}__expand--${s.isExpanded?"closed":"open"}`,role:"button",title:"Expand an element to reveal additional properties",onClick:v}),a.inAuthoringMode?this.renderEstablishNewLinkButton():null)}renderRemoveOrDeleteButton(){const{editor:i,target:a,onRemove:s}=this.props;if(!s)return null;const f=Ri.isNewElement(i.authoringState,a.iri);return N.createElement("div",{className:f?`${Qo}__delete`:`${Qo}__remove`,role:"button",title:f?"Delete new element":"Remove an element from the diagram",onClick:s})}renderEstablishNewLinkButton(){const{onEstablishNewLink:i}=this.props,{canLink:a}=this.state;if(!i)return null;if(a===void 0)return N.createElement("div",{className:`${Qo}__establish-connection-spinner`},N.createElement(fs,{width:20,height:20}));const s=a?"Establish connection":"Establishing connection is unavailable for the selected element";return N.createElement("button",{className:`${Qo}__establish-connection`,title:s,onMouseDown:this.onEstablishNewLink,disabled:!a})}},yf="graph-explorer-halo-link",vf=20,OD=class extends N.Component{constructor(i){super(i),this.listener=new Hn,this.targetListener=new Hn,this.queryDebouncer=new us,this.queryCancellation=new ii,this.updateAll=()=>this.forceUpdate(),this.onSourceMove=a=>{const s=this.props.paperArea.pageToPaperCoords(a.pageX,a.pageY);this.props.onSourceMove(s)},this.onTargetMove=a=>{const s=this.props.paperArea.pageToPaperCoords(a.pageX,a.pageY);this.props.onTargetMove(s)},this.state={}}componentDidMount(){const{target:i,editor:a}=this.props;this.listener.listen(a.events,"changeAuthoringState",()=>{this.queryAllowedActions()}),this.listenToTarget(i),this.queryAllowedActions()}componentDidUpdate(i){i.target!==this.props.target&&(this.listenToTarget(this.props.target),this.queryAllowedActions())}componentWillUnmount(){this.listener.stopListening(),this.listenToTarget(void 0),this.queryDebouncer.dispose(),this.queryCancellation.abort()}queryAllowedActions(){this.queryDebouncer.call(()=>{this.queryCancellation.abort(),this.queryCancellation=new ii,this.queryCanDelete(this.props.target),this.queryCanEdit(this.props.target)})}queryCanDelete(i){const{metadataApi:a,editor:s,view:f}=this.props;if(!a){this.setState({canDelete:!1});return}if(aS(s.authoringState,i))this.setState({canDelete:!1});else{this.setState({canDelete:void 0});const h=f.model.getElement(i.sourceId),m=f.model.getElement(i.targetId),v=this.queryCancellation.signal;ar.mapCancelledToNull(v,a.canDeleteLink(i.data,h.data,m.data,v)).then(w=>{w!==null&&this.props.target.id===i.id&&this.setState({canDelete:w})})}}queryCanEdit(i){const{metadataApi:a,editor:s,view:f}=this.props;if(!a){this.setState({canEdit:!1});return}if(Pb(s.authoringState,i))this.setState({canEdit:!1});else{this.setState({canEdit:void 0});const h=f.model.getElement(i.sourceId),m=f.model.getElement(i.targetId),v=this.queryCancellation.signal;ar.mapCancelledToNull(v,a.canEditLink(i.data,h.data,m.data,v)).then(w=>{w!==null&&this.props.target.id===i.id&&this.setState({canEdit:w})})}}listenToTarget(i){const{view:a}=this.props;if(this.targetListener.stopListening(),i){const s=a.model.getElement(i.sourceId),f=a.model.getElement(i.targetId),h=m=>{this.targetListener.listen(m.events,"changePosition",this.updateAll),this.targetListener.listen(m.events,"changeSize",this.updateAll)};h(s),h(f),this.targetListener.listen(i.events,"changeVertices",this.updateAll),this.targetListener.listen(i.events,"changeLabelBounds",this.updateAll)}}paperToScrollablePaneCoords(i){return this.props.paperArea.paperToScrollablePaneCoords(i.x,i.y)}computePolyline(){const{view:i,target:a}=this.props,s=i.model.getElement(a.sourceId),f=i.model.getElement(a.targetId);if(!(s&&f))return;const h=i.getRouting(a.id),m=a.vertices||[];return S0(s,f,h?h.vertices:m)}calculateDegree(i,a){const s=a.x-i.x,f=a.y-i.y,h=Math.sqrt(s*s+f*f),m={x:s/h,y:f/h};return Math.atan2(m.y,m.x)*(180/Math.PI)}renderSourceButton(i){const{editor:a,target:s}=this.props,f=T0(i,0),{x:h,y:m}=this.paperToScrollablePaneCoords(f),v={top:m-vf/2,left:h-vf/2};return N.createElement("button",{className:`${yf}__button`,style:v,disabled:Pb(a.authoringState,s),onMouseDown:this.onSourceMove},N.createElement("svg",{width:vf,height:vf},N.createElement("g",{transform:`scale(${vf})`},N.createElement("circle",{r:.5,cx:.5,cy:.5,fill:"#198AD3"}))))}getButtonPosition(i,a){const s=T0(i,Pv(i)-25*a),{x:f,y:h}=this.paperToScrollablePaneCoords(s);return{top:h-vf/2,left:f-vf/2}}renderTargetButton(i){const{editor:a,target:s}=this.props,f=this.getButtonPosition(i,0),{length:h}=i,m=this.calculateDegree(i[h-1],i[h-2]);return N.createElement("button",{className:`${yf}__button`,style:f,disabled:Pb(a.authoringState,s),onMouseDown:this.onTargetMove},N.createElement("svg",{width:vf,height:vf,style:{transform:`rotate(${m}deg)`}},N.createElement("g",{transform:`scale(${vf})`},N.createElement("polygon",{points:"0,0.5 1,1 1,0",fill:"#198AD3"}))))}renderEditButton(i){const{canEdit:a}=this.state,s=this.getButtonPosition(i,1);if(a===void 0)return N.createElement("div",{className:`${yf}__spinner`,style:s},N.createElement(fs,{width:20,height:20}));const f=a?"Edit link":"Editing is unavailable for the selected link";return N.createElement("button",{className:`${yf}__button ${yf}__edit`,style:s,title:f,onClick:this.props.onEdit,disabled:!a})}renderDeleteButton(i){const{canDelete:a}=this.state,s=this.getButtonPosition(i,2);if(a===void 0)return N.createElement("div",{className:`${yf}__spinner`,style:s},N.createElement(fs,{width:20,height:20}));const f=a?"Delete link":"Deletion is unavailable for the selected link";return N.createElement("button",{className:`${yf}__button ${yf}__delete`,style:s,title:f,onClick:this.props.onDelete,disabled:!a})}renderEditLabelButton(){const{view:i,target:a,paperArea:s,onEditLabel:f}=this.props,h=i.model.getLinkType(a.typeId);if(!i.createLinkTemplate(h).setLinkLabel||!a.labelBounds)return null;const{x:m,y:v,width:w,height:E}=a.labelBounds,{x:S,y:_}=s.paperToScrollablePaneCoords(m+w,v+E/2),L={width:15,height:17},x={width:L.width,height:L.height,top:_-L.height/2,left:S};return N.createElement("button",{className:`${yf}__edit-label-button`,style:x,onClick:()=>f(),title:"Edit Link Label"})}render(){const{editor:i,target:a,metadataApi:s}=this.props,f=this.computePolyline();if(!f)return null;const h=!!s,m=Kw(i.authoringState,a)||aS(i.authoringState,a)?null:this.renderDeleteButton(f);return N.createElement("div",{className:`${yf}`},h?this.renderTargetButton(f):null,h?this.renderSourceButton(f):null,!h||Pb(i.authoringState,a)?null:this.renderEditButton(f),h?m:null,this.renderEditLabelButton())}};function Pb(i,a){return Kw(i,a)||aS(i,a)}function Kw(i,a){const s=i.links.get(a.data);return s&&s.deleted}function aS(i,a){const s=i.elements.get(a.data.sourceId),f=i.elements.get(a.data.targetId);return s&&s.deleted||f&&f.deleted}var Dh="graph-explorer-authoring-state",DD=5,MD=class extends N.Component{constructor(...i){super(...i),this.listener=new Hn,this.delayedUpdate=new us,this.scheduleUpdate=()=>{this.delayedUpdate.call(this.performUpdate)},this.performUpdate=()=>{this.forceUpdate()}}componentDidMount(){this.listenEvents()}componentDidUpdate(i){this.props.view!==i.view&&(this.listener.stopListening(),this.listenEvents())}componentWillUnmount(){this.listener.stopListening()}listenEvents(){const{editor:i,view:a}=this.props;this.listener.listen(i.model.events,"elementEvent",({data:s})=>{(s.changeSize||s.changePosition)&&this.scheduleUpdate()}),this.listener.listen(i.model.events,"linkEvent",({data:s})=>{(s.changeVertices||s.changeLabelBounds)&&this.scheduleUpdate()}),this.listener.listen(i.model.events,"changeCells",this.scheduleUpdate),this.listener.listen(i.events,"changeAuthoringState",this.scheduleUpdate),this.listener.listen(i.events,"changeTemporaryState",this.scheduleUpdate),this.listener.listen(i.events,"changeValidationState",this.scheduleUpdate),this.listener.listen(a.events,"syncUpdate",({layer:s})=>{s===Am.Editor&&this.delayedUpdate.runSynchronously()})}calculateLinkPath(i){return"M"+this.calculatePolyline(i).map(({x:a,y:s})=>`${a},${s}`).join(" L")}calculatePolyline(i){const{editor:a,view:s}=this.props,f=a.model.getElement(i.sourceId),h=a.model.getElement(i.targetId),m=s.getRouting(i.id),v=i.vertices||[];return S0(f,h,m?m.vertices:v)}renderLinkStateLabels(){const{editor:i}=this.props;return i.model.links.map(a=>{let s=null;const f=i.authoringState.links.get(a.data);if(f){const m=()=>i.discardChange(f);let v,w;f.deleted?(v="Delete",w="Revert deletion of the link"):f.before?(v="Change",w="Revert all changes in properties of the link"):(v="New",w="Revert creation of the link"),v&&w&&(s=N.createElement("span",null,N.createElement("span",{className:`${Dh}__state-label`},v),"[",N.createElement("span",{className:`${Dh}__state-cancel`,onClick:m,title:w},"cancel"),"]"))}const h=this.renderLinkErrors(a.data);if(s||h){const m=this.getLinkStateLabelPosition(a);if(!m)return null;const v={left:m.x,top:m.y};return N.createElement("div",{className:`${Dh}__state-indicator`,key:a.id,style:v},N.createElement("div",{className:`${Dh}__state-indicator-container`},N.createElement("div",{className:`${Dh}__state-indicator-body`},s,h)))}else return null})}renderLinkStateHighlighting(){const{editor:i}=this.props;return i.model.links.map(a=>{if(i.temporaryState.links.has(a.data)){const m=this.calculateLinkPath(a);return N.createElement("path",{key:a.id,d:m,fill:"none",stroke:"grey",strokeWidth:5,strokeOpacity:.5,strokeDasharray:"8 8"})}const s=i.authoringState.links.get(a.data),f=Ri.isDeletedLink(i.authoringState,a.data),h=Ri.isUncertainLink(i.authoringState,a.data);if(s||f||h){const m=this.calculateLinkPath(a);let v;return f?v="red":h?v="blue":s&&s.type===t1.ChangeLink&&(v=s.before?"blue":"green"),N.createElement("path",{key:a.id,d:m,fill:"none",stroke:v,strokeWidth:5,strokeOpacity:.5})}return null})}getLinkStateLabelPosition(i){if(i.labelBounds){const{x:a,y:s}=i.labelBounds;return{x:a,y:s-DD/2}}else{const a=this.calculatePolyline(i);return T0(a,Pv(a)/2)}}renderLinkErrors(i){const{editor:a}=this.props,{validationState:s}=a,f=s.links.get(i);if(!f)return null;const h=f.errors.map(m=>m.message).join(`
`);return this.renderErrorIcon(h,f)}renderErrorIcon(i,a){return N.createElement("div",{className:`${Dh}__item-error`,title:i},a.loading?N.createElement(fs,{width:15,height:17}):N.createElement("div",{className:`${Dh}__item-error-icon`}),!a.loading&&a.errors.length>0?a.errors.length:void 0)}render(){const{editor:i,paperTransform:a}=this.props,{scale:s,originX:f,originY:h}=a;if(!i.inAuthoringMode)return null;const m={position:"absolute",left:0,top:0,transform:`scale(${s},${s})translate(${f}px,${h}px)`};return N.createElement("div",{className:`${Dh}`},N.createElement(Mb,{paperTransform:a,style:{overflow:"visible",pointerEvents:"none"}},this.renderLinkStateHighlighting()),N.createElement("div",{className:`${Dh}__validation-layer`,style:m},this.renderLinkStateLabels()))}},Rm="graph-explorer-authoring-state",RD=class extends N.Component{constructor(i){super(i),this.listener=new Hn;const{model:a,editor:s}=i;this.state={state:s.authoringState.elements.get(a.iri),validation:s.validationState.elements.get(a.iri),isTemporary:s.temporaryState.elements.has(a.iri)}}componentDidMount(){const{model:i,editor:a}=this.props;this.listener.listen(i.events,"changeSize",()=>this.forceUpdate()),this.listener.listen(a.events,"changeAuthoringState",s=>{const f=a.authoringState.elements.get(i.iri);f!==s.previous.elements.get(i.iri)&&this.setState({state:f})}),this.listener.listen(a.events,"changeValidationState",s=>{const f=a.validationState.elements.get(i.iri);f!==s.previous.elements.get(i.iri)&&this.setState({validation:f})}),this.listener.listen(a.events,"changeTemporaryState",s=>{const f=a.temporaryState.elements.has(i.iri);f!==s.previous.elements.has(i.iri)&&this.setState({isTemporary:f})}),this.listener.listen(i.events,"changeData",s=>{s.previous.id!==i.iri&&this.setState({isTemporary:a.temporaryState.elements.has(i.iri),validation:a.validationState.elements.get(i.iri),state:a.authoringState.elements.get(i.iri)})})}componentWillUnmount(){this.listener.stopListening()}shouldComponentUpdate(i,a){return this.state.state!==a.state||this.state.validation!==a.validation||this.state.isTemporary!==a.isTemporary||this.props.position!==i.position}renderElementOutlines(){const{model:i}=this.props,{state:a,isTemporary:s}=this.state,{width:f,height:h}=i.size;if(s)return[N.createElement("rect",{key:`${i.id}-opacity`,x:0,y:0,width:f,height:h,fill:"rgba(255, 255, 255, 0.5)"}),N.createElement("rect",{key:`${i.id}-stripes`,x:0,y:0,width:f,height:h,fill:"url(#stripe-pattern)"})];if(a&&a.deleted){const m=f,v=h;return N.createElement("g",{key:i.id},N.createElement("rect",{x:0,y:0,width:f,height:h,fill:"white",fillOpacity:.5}),N.createElement("line",{x1:0,y1:0,x2:m,y2:v,stroke:"red"}),N.createElement("line",{x1:m,y1:0,x2:0,y2:v,stroke:"red"}))}return null}renderErrorIcon(i,a){return N.createElement("div",{className:`${Rm}__item-error`,title:i},a.loading?N.createElement(fs,{width:15,height:17}):N.createElement("div",{className:`${Rm}__item-error-icon`}),!a.loading&&a.errors.length>0?a.errors.length:void 0)}renderElementErrors(){const{view:i}=this.props,{validation:a}=this.state;if(!a)return null;const s=a.errors.map(f=>{if(f.propertyType){const{id:h,label:m}=i.model.createProperty(f.propertyType);return`${i.formatLabel(m,h)}: ${f.message}`}else return f.message}).join(`
`);return this.renderErrorIcon(s,a)}renderElementState(){const{model:i,editor:a}=this.props,{state:s}=this.state;if(s){const f=()=>a.discardChange(s);let h,m,v;s.deleted?(m="Delete",v="Revert deletion of the element"):s.before?(m="Change",v="Revert all changes in properties of the element"):(m="New",v="Revert creation of the element"),m&&v&&(h=N.createElement("span",null,N.createElement("span",{className:`${Rm}__state-label`},m),"[",N.createElement("span",{className:`${Rm}__state-cancel`,onClick:f,title:v},"cancel"),"]"));const w=this.renderElementErrors();if(h||w)return N.createElement("div",{className:`${Rm}__state-indicator`,key:i.id,style:{left:0,top:0}},N.createElement("div",{className:`${Rm}__state-indicator-container`},N.createElement("div",{className:`${Rm}__state-indicator-body`},h,w)))}return null}render(){const{position:i,size:a}=this.props.model,s=`translate(${i.x}px,${i.y}px)`,f=this.renderElementOutlines(),h=this.renderElementState();return!f&&!h?null:N.createElement("div",{style:{position:"absolute",transform:s}},f?N.createElement("svg",{width:a.width,height:a.height,style:{position:"absolute",pointerEvents:"none",overflow:"visible"}},N.createElement("defs",null,N.createElement("pattern",{id:"stripe-pattern",patternUnits:"userSpaceOnUse",width:13,height:13,patternTransform:"rotate(45)"},N.createElement("line",{x1:0,y:0,x2:0,y2:13,stroke:"#ddd",strokeWidth:10,strokeOpacity:.2}))),this.renderElementOutlines()):null,h)}},pp={empty:{elements:new Map,links:new xm(_m,Er)},addElement(i,a){const s=L0(i.elements);return s.set(a.id,a),{...i,elements:s}},deleteElement(i,a){const s=L0(i.elements);return s.delete(a.id),{...i,elements:s}},addLink(i,a){const s=i.links.clone();return s.set(a,a),{...i,links:s}},deleteLink(i,a){const s=i.links.clone();return s.delete(a),{...i,links:s}}},rS=(function(i){return i[i.establishLink=0]="establishLink",i[i.moveLinkSource=1]="moveLinkSource",i[i.moveLinkTarget=2]="moveLinkTarget",i})({}),ND=class extends N.Component{constructor(i){super(i),this.listener=new Hn,this.cancellation=new ii,this.canDropOnElementCancellation=new ii,this.beginCreatingLink=a=>{const{editor:s}=this.props,{sourceId:f,point:h}=a,m=this.createTemporaryElement(h),v=new Jr({typeId:aE,sourceId:f,targetId:m.id}),w=s.createNewLink({link:v,temporary:!0});s.model.createLinkType(w.typeId).setVisibility({visible:!0,showLabel:!1}),this.temporaryElement=m,this.temporaryLink=w},this.onMouseMove=a=>{const{view:s,paperArea:f}=this.props,{targetElement:h,waitingForMetadata:m}=this.state;if(a.preventDefault(),a.stopPropagation(),m)return;const v=f.pageToPaperCoords(a.pageX,a.pageY);this.temporaryElement.setPosition(v);const w=D2(s.model.elements,v);w!==h&&this.queryCanDropOnElement(w),this.setState({targetElement:w})},this.onMouseUp=a=>{if(this.state.waitingForMetadata)return;this.setState({waitingForMetadata:!0});const s=this.props.paperArea.pageToPaperCoords(a.pageX,a.pageY);this.executeEditOperation(s)},this.createNewElement=async a=>{const{editor:s,metadataApi:f}=this.props;if(!f)return;const h=await ar.mapCancelledToNull(this.cancellation.signal,f.typesOfElementsDraggedFrom(a,this.cancellation.signal));if(h===null)return;const m=h.length===1?h[0]:iE,v=await ar.mapCancelledToNull(this.cancellation.signal,f.generateNewElement([m],this.cancellation.signal));if(v!==null)return s.createNewEntity({elementModel:v,temporary:!0})},this.state={}}componentDidMount(){const{mode:i,target:a,point:s}=this.props;if(i===0)this.beginCreatingLink({sourceId:a.id,point:s});else if(i===1||i===2)this.beginMovingLink(a,s);else throw new Error("Unknown edit mode");this.forceUpdate(),this.queryCanLinkFrom(),this.queryCanDropOnCanvas(),document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp)}componentWillUnmount(){this.listener.stopListening(),this.cancellation.abort(),this.canDropOnElementCancellation.abort(),document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp)}beginMovingLink(i,a){const{editor:s,mode:f}=this.props;if(!(f===1||f===2))throw new Error("Unexpected edit mode for moving link");this.oldLink=i,s.model.removeLink(i.id);const{id:h,typeId:m,sourceId:v,targetId:w,...E}=i,S=this.createTemporaryElement(a),_=new Jr({typeId:m,sourceId:f===1?S.id:v,targetId:f===2?S.id:w,...E}),L=s.createNewLink({link:_,temporary:!0});this.temporaryElement=S,this.temporaryLink=L}createTemporaryElement(i){const a=this.props.view.model.createTemporaryElement();return a.setPosition(i),a}queryCanLinkFrom(){const{editor:i,metadataApi:a}=this.props;if(!a){this.setState({canLinkFrom:!1});return}this.setState({canLinkFrom:void 0});const s=i.model.getElement(this.temporaryLink.sourceId);ar.mapCancelledToNull(this.cancellation.signal,a.canLinkElement(s.data,this.cancellation.signal)).then(f=>{f!==null&&this.setState({canLinkFrom:f})},f=>{console.error("Error calling canLinkElement:",f),this.setState({canLinkFrom:!1})})}queryCanDropOnCanvas(){const{mode:i,editor:a,metadataApi:s}=this.props;if(!s||i!==0){this.setState({canDropOnCanvas:!1});return}this.setState({canDropOnCanvas:void 0});const f=a.model.getElement(this.temporaryLink.sourceId);ar.mapCancelledToNull(this.cancellation.signal,s.canDropOnCanvas(f.data,this.cancellation.signal)).then(h=>{h!==null&&this.setState({canDropOnCanvas:h})},h=>{console.error("Error calling canDropOnCanvas:",h),this.setState({canDropOnCanvas:!1})})}queryCanDropOnElement(i){const{mode:a,editor:s,metadataApi:f}=this.props;if(this.canDropOnElementCancellation.abort(),this.canDropOnElementCancellation=new ii,!(f&&i)){this.setState({canDropOnElement:!1});return}this.setState({canDropOnElement:void 0});let h,m;a===0||a===2?(h=s.model.getElement(this.temporaryLink.sourceId).data,m=i.data):a===1&&(h=i.data,m=s.model.getElement(this.temporaryLink.targetId).data);const v=this.canDropOnElementCancellation.signal;ar.mapCancelledToNull(v,f.canDropOnElement(h,m,v)).then(w=>{w!==null&&this.setState({canDropOnElement:w})})}async executeEditOperation(i){const{view:a,editor:s,mode:f}=this.props;try{const{targetElement:h,canLinkFrom:m,canDropOnCanvas:v,canDropOnElement:w}=this.state;if(this.oldLink&&s.model.addLink(this.oldLink),m&&(h?w:v)){let E,S=h;switch(f){case 0:{if(!S){const L=s.model.getElement(this.temporaryLink.sourceId);S=await this.createNewElement(L.data),S.setPosition(i),a.performSyncUpdate(),kD(S,i)}const _=s.model.getElement(this.temporaryLink.sourceId);E=await this.createNewLink(_,S);break}case 1:E=s.moveLinkSource({link:this.oldLink,newSource:h});break;case 2:E=s.moveLinkTarget({link:this.oldLink,newTarget:h});break;default:throw new Error("Unknown edit mode")}if(h){const _=E||this.oldLink;s.setSelection([_]),s.showEditLinkForm(_)}else if(S&&E){s.setSelection([S]);const _=s.model.getElement(E.sourceId);s.showEditElementTypeForm({link:E,source:_,target:S,targetIsNew:!0})}}}finally{this.cleanupAndFinish()}}async createNewLink(i,a){const{editor:s,metadataApi:f}=this.props;if(!f)return;const h=await ar.mapCancelledToNull(this.cancellation.signal,f.possibleLinkTypes(i.data,a.data,this.cancellation.signal));if(h===null)return;const m={linkTypeIri:aE,direction:Ku.out},{linkTypeIri:v,direction:w}=h.length===1?h[0]:m,E={linkTypeId:v,sourceId:i.iri,targetId:a.iri};let[S,_]=[i.id,a.id];w===Ku.in&&(E.sourceId=a.iri,E.targetId=i.iri,[S,_]=[_,S]);const L=new Jr({typeId:v,sourceId:S,targetId:_,data:E});return s.model.findLink(L.typeId,L.sourceId,L.targetId)||s.createNewLink({link:L,temporary:!0})}cleanupAndFinish(){const{editor:i,onFinishEditing:a}=this.props,s=i.model.history.startBatch();i.model.removeElement(this.temporaryElement.id),i.model.removeLink(this.temporaryLink.id),i.setTemporaryState(pp.deleteLink(i.temporaryState,this.temporaryLink.data)),s.discard(),a()}render(){const{view:i,paperTransform:a}=this.props,{waitingForMetadata:s}=this.state;return this.temporaryLink?N.createElement(Mb,{paperTransform:a,style:{overflow:"visible"}},N.createElement(bT,{view:i}),this.renderHighlight(),this.renderCanDropIndicator(),s?null:N.createElement(gT,{view:i,links:[this.temporaryLink]})):null}renderHighlight(){const{targetElement:i,canLinkFrom:a,canDropOnElement:s,waitingForMetadata:f}=this.state;if(!i)return null;const{x:h,y:m,width:v,height:w}=Ju(i);if(a===void 0||s===void 0||f)return N.createElement("g",{transform:`translate(${h},${m})`},N.createElement("rect",{width:v,height:w,fill:"white",fillOpacity:.5}),N.createElement(O0,{size:30,position:{x:v/2,y:w/2}}));const E=a&&s?"#5cb85c":"#c9302c";return N.createElement("rect",{x:h,y:m,width:v,height:w,fill:"transparent",stroke:E,strokeWidth:3})}renderCanDropIndicator(){const{targetElement:i,canLinkFrom:a,canDropOnCanvas:s,waitingForMetadata:f}=this.state;if(i)return null;const{x:h,y:m}=this.temporaryElement.position;let v;return a===void 0||s===void 0?v=N.createElement(O0,{size:1.2,position:{x:.5,y:-.5}}):a&&s?v=N.createElement("path",{d:"M0.5,0 L0.5,-1 M0,-0.5 L1,-0.5",strokeWidth:.2,stroke:"#5cb85c"}):v=N.createElement("g",null,N.createElement("circle",{cx:"0.5",cy:"-0.5",r:"0.5",fill:"none",strokeWidth:.2,stroke:"#c9302c"}),N.createElement("path",{d:"M0.5,0 L0.5,-1",strokeWidth:.2,stroke:"#c9302c",transform:"rotate(-45 0.5 -0.5)"})),N.createElement("g",{transform:`translate(${h} ${m})scale(40)`},N.createElement("rect",{x:-.5,y:-.5,width:1,height:1,fill:"rgba(0, 0, 0, 0.1)",rx:.25,ry:.25}),f?N.createElement(O0,{size:.8}):N.createElement("g",{transform:"translate(0.5, -0.5)scale(0.25)"},v))}};function kD(i,a){i.setPosition({x:a.x-i.size.width/2,y:a.y-i.size.height/2})}var zD=Fw(),UD={loading:!1,errors:[]},BD={loading:!1,errors:[]};function Fw(){return{elements:new Map,links:new xm(_m,Er)}}function HD(i,a,s){const f=L0(i.elements);return s.length>0?f.set(a,{loading:!1,errors:s}):f.delete(a),{...i,elements:f}}function ID(i,a,s){const f=i.links.clone();return s.length>0?f.set(a,{loading:!1,errors:s}):f.delete(a),{...i,links:f}}var p1={empty:zD,emptyElement:UD,emptyLink:BD,createMutable:Fw,setElementErrors:HD,setLinkErrors:ID};function qD(i,a){const s=a.authoringState,f=new xm(_m,Er);i.links.forEach((m,v)=>f.set(v,!0)),s.links.forEach((m,v)=>f.set(v,!0));const h=new Set;f.forEach((m,v)=>{s.links.get(v)!==i.links.get(v)&&h.add(v.sourceId)});for(const m of a.model.elements){const v=s.elements.get(m.iri),w=i.elements.get(m.iri);if(v!==w&&(h.add(m.iri),(v||w).deleted))for(const E of m.links)E.data.sourceId!==m.iri&&h.add(E.data.sourceId)}return h}function GD(i,a,s,f){const h=s.validationState,m=p1.createMutable();for(const v of s.model.elements){if(m.elements.has(v.iri))continue;const w=v.links.reduce((E,S)=>(S.sourceId===v.id&&E.push(S.data),E),[]);if(i.has(v.iri)){const E={target:v.data,outboundLinks:w,state:s.authoringState,model:s.model,cancellation:f},S=ar.mapCancelledToNull(f,a.validate(E)),_={loading:!0,errors:[]},L={loading:!0,errors:[]};m.elements.set(v.iri,_),w.forEach(x=>m.links.set(x,L)),jD(S,_,L,E,s)}else{m.elements.set(v.iri,h.elements.get(v.iri));for(const E of w)m.links.set(E,h.links.get(E))}}s.setValidationState(m)}async function jD(i,a,s,f,h){let m;try{if(m=await i,m===null)return}catch(S){console.error("Failed to validate element",f.target,S),m=[{type:"element",target:f.target.id,message:"Failed to validate element"}]}const v=[],w=new xm(_m,Er);f.outboundLinks.forEach(S=>w.set(S,[]));for(const S of m)S.type==="element"&&S.target===f.target.id?v.push(S):S.type==="link"&&w.has(S.target)&&w.get(S.target).push(S);let E=h.validationState;E.elements.get(f.target.id)===a&&(E=p1.setElementErrors(E,f.target.id,v)),w.forEach((S,_)=>{E.links.get(_)===s&&(E=p1.setLinkErrors(E,_,S))}),h.setValidationState(E)}var Ww=class{constructor(i){this.listener=new Hn,this.source=new lo,this.events=this.source,this._authoringState=Ri.empty,this._validationState=p1.empty,this._temporaryState=pp.empty,this._selection=[],this.cancellation=new ii,this.onKeyUp=h=>{h.keyCode===46&&document.activeElement.localName!=="input"&&this.removeSelectedElements()};const{model:a,view:s,...f}=i;this.model=a,this.view=s,this.options=f,this.listener.listen(this.events,"changeValidationState",h=>{for(const m of this.model.elements){const v=h.previous.elements.get(m.iri);this.validationState.elements.get(m.iri)!==v&&m.redraw()}}),this.listener.listen(this.events,"changeAuthoringState",h=>{this.options.validationApi&&GD(qD(h.previous,this),this.options.validationApi,this,this.cancellation.signal)}),this.view._setElementDecorator(h=>N.createElement(RD,{model:h,view:this.view,editor:this,position:h.position}))}_initializePaperComponents(i){this.listener.listen(i.events,"pointerUp",a=>this.onPaperPointerUp(a)),this.listener.listen(this.model.events,"changeCells",()=>this.onCellsChanged()),this.listener.listen(this.model.events,"elementEvent",a=>{a.key==="requestedGroupContent"&&this.loadGroupContent(a.data.requestedGroupContent.source)}),this.listener.listen(this.model.events,"loadingStart",()=>this.setSpinner({})),this.listener.listen(this.model.events,"loadingSuccess",()=>{this.setSpinner(void 0);const a=N.createElement(MD,{view:this.view,editor:this});this.view.setPaperWidget({key:"states",widget:a,attachment:cs.OverLinks})}),this.listener.listen(this.model.events,"loadingError",({error:a})=>{const s=a?a.message:void 0;this.setSpinner({statusText:s,errorOccured:!0})}),this.options.disableHalo||(this.configureHalo(),document.addEventListener("keyup",this.onKeyUp),this.listener.listen(this.view.events,"dispose",()=>{document.removeEventListener("keyup",this.onKeyUp)}))}get inAuthoringMode(){return!!this._metadataApi}get metadataApi(){return this._metadataApi}setMetadataApi(i){const a=this._metadataApi;i!==a&&(this._metadataApi=i,!!i!=!!a&&this.source.trigger("changeMode",{source:this}))}get authoringState(){return this._authoringState}setAuthoringState(i){this._authoringState!==i&&this.model.history.execute(this.updateAuthoringState(i))}updateAuthoringState(i){const a=this._authoringState;return Wu.create("Create or delete entities and links",()=>(this._authoringState=i,this.source.trigger("changeAuthoringState",{source:this,previous:a}),this.updateAuthoringState(a)))}get validationState(){return this._validationState}setValidationState(i){const a=this._validationState;i!==a&&(this._validationState=i,this.source.trigger("changeValidationState",{source:this,previous:a}))}get temporaryState(){return this._temporaryState}setTemporaryState(i){const a=this._temporaryState;i!==a&&(this._temporaryState=i,this.source.trigger("changeTemporaryState",{source:this,previous:a}))}get selection(){return this._selection}setSelection(i){const a=this._selection;a!==i&&(this._selection=i,this.source.trigger("changeSelection",{source:this,previous:a}))}cancelSelection(){this.setSelection([])}removeSelectedElements(){const i=this.selection;i.length!==0&&(this.cancelSelection(),this.removeItems(i))}removeItems(i){const a=this.model.history.startBatch(),s=new Set;for(const f of i)if(f instanceof fl){const h=this.authoringState.elements.get(f.iri);h&&this.discardChange(h),this.model.removeElement(f.id),s.add(f.iri)}else f instanceof Jr&&Ri.isNewLink(this.authoringState,f.data)&&this.deleteLink(f.data);if(s.size>0){const f=Ri.deleteNewLinksConnectedToElements(this.authoringState,s);this.setAuthoringState(f)}a.store()}onPaperPointerUp(i){if(this.options.disableHalo)return;const{sourceEvent:a,target:s,triggerAsClick:f}=i;a.ctrlKey||a.shiftKey||a.metaKey||this.dialogTarget&&this.dialogType===1||(s instanceof fl?(this.setSelection([s]),s.focus()):s instanceof Jr?this.setSelection([s]):s instanceof w0?this.setSelection([s.link]):!s&&f&&(this.setSelection([]),this.hideDialog(),document.activeElement&&document.activeElement.blur()))}onCellsChanged(){if(this.selection.length===0)return;const i=this.selection.filter(a=>a instanceof fl?this.model.getElement(a.id):a instanceof Jr?this.model.getLinkById(a.id):!1);i.length<this.selection.length&&this.setSelection(i)}setSpinner(i){const a=i?N.createElement(eA,{spinnerProps:i}):void 0;this.view.setPaperWidget({key:eA.Key,widget:a,attachment:cs.Viewport})}configureHalo(){this.options.disableHalo||(this.listener.listen(this.events,"changeSelection",()=>{const i=this.selection.length===1?this.selection[0]:void 0;this.dialogTarget&&i!==this.dialogTarget&&this.hideDialog(),this.bringSelectedElementsToFront(),this.renderDefaultHalo()}),this.listener.listen(this.events,"toggleDialog",({isOpened:i})=>{this.renderDefaultHalo()}),this.renderDefaultHalo())}bringSelectedElementsToFront(){this.selection.length!==0&&this.model.reorderElements(UT(this.model.elements,this.selection.filter(i=>i instanceof fl),zT.ToEnd))}renderDefaultHalo(){const i=this.selection.length===1?this.selection[0]:void 0;let a;i instanceof fl?a=N.createElement(LD,{editor:this,metadataApi:this.metadataApi,target:i,onRemove:()=>this.removeSelectedElements(),onExpand:()=>{this.model.history.execute(Lb(i,!i.isExpanded))},navigationMenuOpened:this.dialogType===0,onToggleNavigationMenu:()=>{this.dialogTarget&&this.dialogType===0?this.hideDialog():this.showConnectionsMenu(i),this.renderDefaultHalo()},onAddToFilter:()=>i.addToFilter(),onEstablishNewLink:s=>this.startEditing({target:i,mode:rS.establishLink,point:s}),onFollowLink:(s,f)=>this.view.onIriClick(s.iri,s,Wv.JumpToEntity,f)}):i instanceof Jr&&(a=N.createElement(OD,{view:this.view,editor:this,metadataApi:this.metadataApi,target:i,onEdit:()=>this.showEditLinkForm(i),onDelete:()=>this.deleteLink(i.data),onSourceMove:s=>this.startEditing({target:i,mode:rS.moveLinkSource,point:s}),onTargetMove:s=>this.startEditing({target:i,mode:rS.moveLinkTarget,point:s}),onEditLabel:()=>this.showEditLinkLabelForm(i)})),this.view.setPaperWidget({key:"halo",widget:a,attachment:cs.OverElements})}showConnectionsMenu(i){const s=()=>this.hideDialog(),f=N.createElement(pD,{view:this.view,editor:this,target:i,onAddElements:(h,m)=>this.onAddElementsInConnectionMenu(h,i,m),onClose:s,suggestProperties:this.options.suggestProperties});this.showDialog({target:i,dialogType:0,content:f,onClose:s})}showEditEntityForm(i){const{propertyEditor:a}=this.options,s=1,f=E=>{this.hideDialog(),this.changeEntityData(i.data.id,E)},h=Ri.isElementWithModifiedIri(this.authoringState,i.data.id);let m;if(h){const E=this.authoringState.elements.get(i.data.id);m={...i.data,id:E.newIri}}else m=i.data;const v=()=>this.hideDialog(),w=a?a({elementData:i.data,onSubmit:f,onCancel:v}):N.createElement(bD,{view:this.view,entity:m,onApply:f,onCancel:v});this.showDialog({target:i,dialogType:s,content:w,onClose:v})}showEditElementTypeForm({link:i,source:a,target:s,targetIsNew:f}){const m=()=>{this.removeTemporaryElement(s),this.removeTemporaryLink(i),this.hideDialog()},v=N.createElement(AD,{editor:this,view:this.view,metadataApi:this.metadataApi,link:i.data,source:a.data,target:{value:s.data,isNew:f},onChangeElement:w=>{const E=s.data;this.setTemporaryState(pp.deleteElement(this.temporaryState,E)),s.setData(w),this.setTemporaryState(pp.addElement(this.temporaryState,w))},onChangeLink:w=>{this.removeTemporaryLink(i);const E=Zb(new Jr({typeId:w.linkTypeId,sourceId:a.id,targetId:s.id,data:{...w,sourceId:a.iri,targetId:s.iri}}),w);i=this.createNewLink({link:E,temporary:!0})},onApply:(w,E,S)=>{this.removeTemporaryElement(s),this.removeTemporaryLink(i);const _=this.model.history.startBatch(E?"Create new entity":"Link to entity");this.model.addElement(s),E?(s.setExpanded(!0),this.setAuthoringState(Ri.addElement(this._authoringState,s.data))):this.model.requestLinksOfType();const L=Zb(new Jr({typeId:i.typeId,sourceId:a.id,targetId:s.id,data:{...i.data,sourceId:a.iri,targetId:s.iri}}),S);this.createNewLink({link:L}),_.store(),this.hideDialog(),E&&this.showEditEntityForm(s)},onCancel:m});this.showDialog({target:s,dialogType:3,content:v,caption:"Establish New Connection",onClose:m})}showEditLinkForm(i){const s=this.model.getElement(i.sourceId).data,f=this.model.getElement(i.targetId).data,h=()=>{this.temporaryState.links.has(i.data)&&this.removeTemporaryLink(i),this.hideDialog()},m=N.createElement(CD,{editor:this,view:this.view,metadataApi:this.metadataApi,link:i.data,source:s,target:f,onChange:w=>{if(this.temporaryState.links.has(i.data)){this.removeTemporaryLink(i);const E=Zb(i,w);this.showEditLinkForm(this.createNewLink({link:E,temporary:!0}))}},onApply:w=>{if(this.temporaryState.links.has(i.data)){this.removeTemporaryLink(i);const E=Zb(i,w);this.createNewLink({link:E})}else this.changeLink(i.data,w);this.hideDialog()},onCancel:h}),v=this.temporaryState.links.has(i.data)?"Establish New Connection":"Edit Connection";this.showDialog({target:i,dialogType:2,content:m,size:{width:300,height:160},caption:v,onClose:h})}showEditLinkLabelForm(i){const a=this.view.model.getLinkType(i.typeId),s=this.view.createLinkTemplate(a),f={width:300,height:145},h=()=>this.hideDialog();this.showDialog({target:i,dialogType:4,content:N.createElement(xD,{view:this.view,link:i,onApply:m=>{s.setLinkLabel(i,m),this.hideDialog()},onCancel:h}),size:f,caption:"Edit Link Label",offset:{x:25,y:-f.height/2},calculatePosition:()=>{const{x:m,y:v,width:w,height:E}=i.labelBounds;return{x:m+w,y:v+E/2}},onClose:h})}showDialog(i){const{target:a,dialogType:s,content:f,size:h,caption:m,offset:v,calculatePosition:w,onClose:E}=i;this.dialogTarget=a,this.dialogType=s;const S=N.createElement(fD,{view:this.view,target:a,size:h,caption:m,offset:v,calculatePosition:w,onClose:E},f);this.view.setPaperWidget({key:"dialog",widget:S,attachment:cs.OverElements}),this.source.trigger("toggleDialog",{isOpened:!0})}hideDialog(){if(this.dialogTarget){const i=this.dialogTarget instanceof fl&&this.temporaryState.elements.has(this.dialogTarget.iri),a=this.dialogTarget instanceof Jr&&this.temporaryState.links.has(this.dialogTarget.data);(i||a)&&this.resetTemporaryState(),this.dialogType=void 0,this.dialogTarget=void 0,this.view.setPaperWidget({key:"dialog",widget:void 0,attachment:cs.OverElements}),this.source.trigger("toggleDialog",{isOpened:!1})}}onDragDrop(i,a){const s=this.model.history.startBatch("Drag and drop onto diagram"),f=YD(this.view,i,a),h=f.map(m=>m.iri);s.history.execute(FE(this.model,h)),s.history.execute(WE(this.model)),s.store(),f.length>0&&f[f.length-1].focus(),this.setSelection(f),this.source.trigger("addElements",{elements:f})}onAddElementsInConnectionMenu(i,a,s){const f=this.view.model.history.startBatch(),h=i.map(m=>this.model.createElement(m));this.view.performSyncUpdate(),eD({model:this.model,elements:h,targetElement:a,prefferedLinksLength:300}).then(()=>{this.source.trigger("addElements",{elements:h})}),s&&!s.visible&&f.history.execute(vE({linkType:s,visible:!0,showLabel:!0,preventLoading:!0})),f.history.execute(FE(this.model,i)),f.history.execute(WE(this.model)),f.store()}loadGroupContent(i){return this.model.loadEmbeddedElements(i.iri).then(a=>{const s=this.model.history.startBatch(),f=Object.keys(a);return f.map(h=>this.model.createElement(a[h],i.id)),s.discard(),Promise.all([this.model.requestElementData(f),this.model.requestLinksOfType()]).then(()=>{this.view.performSyncUpdate(),Xb(this.model,JE({model:this.model,group:i.id})),this.model.triggerChangeGroupContent(i.id)})})}createNewEntity({elementModel:i,temporary:a}){const s=this.model.history.startBatch("Create new entity"),f=this.model.createElement(i);return f.setExpanded(!0),a?(this.setTemporaryState(pp.addElement(this.temporaryState,f.data)),s.discard()):(this.setAuthoringState(Ri.addElement(this._authoringState,f.data)),s.store()),f}changeEntityData(i,a){const s=this.model.elements.filter(w=>w.iri===i);if(s.length===0)return;const f=s[0].data,h=this.model.history.startBatch("Edit entity"),m=Ri.changeElement(this._authoringState,f,a),v=m.elements.get(i)||m.elements.get(a.id);this.model.history.execute(Ob(this.model,i,v.after)),this.setAuthoringState(m),h.store()}deleteEntity(i){const a=this.authoringState,s=this.model.elements.filter(w=>w.iri===i);if(s.length===0)return;const f=this.model.history.startBatch("Delete entity"),h=s[0].data,m=a.elements.get(i),v=new Set;for(const w of s)for(const E of w.links)E.data&&Ri.isNewLink(a,E.data)&&v.add(E.id);v.forEach(w=>this.model.removeLink(w)),m&&this.discardChange(m),this.setAuthoringState(Ri.deleteElement(a,h)),f.store()}createNewLink(i){const{link:a,temporary:s}=i;if(this.model.findLink(a.typeId,a.sourceId,a.targetId))throw Error("The link already exists");const f=this.model.history.startBatch("Create new link"),h=this.model.addLink(a);return s||this.model.createLinks(a.data),this.model.links.filter(m=>Er(m.data,a.data)).length>0?s?(this.setTemporaryState(pp.addLink(this.temporaryState,a.data)),f.discard()):(this.setAuthoringState(Ri.addLink(this._authoringState,a.data)),f.store()):f.discard(),h}changeLink(i,a){const s=this.model.history.startBatch("Change link");if(Er(i,a))this.model.history.execute(Db(this.model,i,a)),this.setAuthoringState(Ri.changeLink(this._authoringState,i,a));else{let f=this._authoringState;f=Ri.deleteLink(f,i),f=Ri.addLink(f,a),Ri.isNewLink(this._authoringState,i)&&this.model.links.filter(h=>Er(h.data,i)).forEach(h=>this.model.removeLink(h.id)),this.model.createLinks(a),this.setAuthoringState(f)}s.store()}moveLinkSource(i){const{link:a,newSource:s}=i,f=this.model.history.startBatch("Move link to another element");this.changeLink(a.data,{...a.data,sourceId:s.iri});const h=this.model.findLink(a.typeId,s.id,a.targetId);return h.setVertices(a.vertices),f.store(),h}moveLinkTarget(i){const{link:a,newTarget:s}=i,f=this.model.history.startBatch("Move link to another element");this.changeLink(a.data,{...a.data,targetId:s.iri});const h=this.model.findLink(a.typeId,a.sourceId,s.id);return h.setVertices(a.vertices),f.store(),h}deleteLink(i){const a=this.authoringState;if(Ri.isDeletedLink(a,i))return;const s=this.model.history.startBatch("Delete link"),f=Ri.deleteLink(a,i);Ri.isNewLink(a,i)&&this.model.links.filter(({data:h})=>Er(h,i)).forEach(h=>this.model.removeLink(h.id)),this.setAuthoringState(f),s.store()}startEditing(i){const{target:a,mode:s,point:f}=i,h=()=>{this.view.setPaperWidget({key:"editLayer",widget:void 0,attachment:cs.OverElements})},m=N.createElement(ND,{view:this.view,editor:this,metadataApi:this.metadataApi,mode:s,target:a,point:f,onFinishEditing:h});this.view.setPaperWidget({key:"editLayer",widget:m,attachment:cs.OverElements})}resetTemporaryState(){this.temporaryState.elements.size&&this.model.elements.forEach(i=>{this.temporaryState.elements.has(i.iri)&&this.removeTemporaryElement(i)}),this.temporaryState.links.size&&this.model.links.forEach(i=>{this.temporaryState.links.get(i.data)&&this.removeTemporaryLink(i)})}removeTemporaryElement(i){const a=this.model.history.startBatch();this.model.removeElement(i.id),a.discard(),this.setTemporaryState(pp.deleteElement(this.temporaryState,i.data))}removeTemporaryLink(i){this.model.removeLink(i.id),this.setTemporaryState(pp.deleteLink(this.temporaryState,i.data))}discardChange(i){const a=Ri.discard(this._authoringState,i);if(a===this._authoringState)return;const s=this.model.history.startBatch("Discard change");i.type===t1.ChangeElement?i.deleted||(i.before?this.model.history.execute(Ob(this.model,i.after.id,i.before)):this.model.elements.filter(f=>f.iri===i.after.id).forEach(f=>this.model.removeElement(f.id))):i.type===t1.ChangeLink&&(i.deleted||(i.before?this.model.history.execute(Db(this.model,i.after,i.before)):this.model.links.filter(({data:f})=>Er(f,i.after)).forEach(f=>this.model.removeLink(f.id)))),this.setAuthoringState(a),s.store()}},eA=class extends N.Component{static{this.Key="loadingWidget"}render(){const{spinnerProps:i,paperArea:a}=this.props,s=a.getAreaMetrics(),f=s.clientWidth,h=s.clientHeight,m={x:i.statusText?f/3:f/2,y:h/2};return N.createElement("div",{className:"graph-explorer-loading-widget"},N.createElement("svg",{width:f,height:h},N.createElement(O0,{position:m,...i})))}};function YD(i,a,s){const f=a.map(w=>i.model.createElement(w));for(const w of f)w.setPosition(s);i.performSyncUpdate();let{x:h,y:m}=s,v=!0;for(const w of f){let{width:E,height:S}=Ju(w);E===0&&(E=100),S===0&&(S=50),v&&(v=!1,h-=E/2,m-=S/2),w.setPosition({x:h,y:m}),m+=S+20}return f}function Zb(i,a){if(!(a.sourceId===i.data.sourceId||a.sourceId===i.data.targetId))throw new Error("New link source IRI is unrelated to original link");if(!(a.targetId===i.data.sourceId||a.targetId===i.data.targetId))throw new Error("New link target IRI is unrelated to original link");const s=a.sourceId===i.data.sourceId?i.sourceId:i.targetId,f=a.targetId===i.data.targetId?i.targetId:i.sourceId;return new Jr({typeId:a.linkTypeId,sourceId:s,targetId:f,data:a})}var tA="graph-explorer-toolbar",VD=4e3,nA=class extends N.Component{constructor(...i){super(...i),this.state={},this.onClearAllClick=()=>{this.state.clearAllArmed?(this.clearClearAllTimeout(),this.setState({clearAllArmed:!1}),this.props.onClearAll()):(this.clearClearAllTimeout(),this.clearAllTimeout=setTimeout(()=>{this.setState({clearAllArmed:!1})},VD),this.setState({clearAllArmed:!0}))},this.onChangeLanguage=a=>{const s=a.currentTarget.value;this.props.onChangeLanguage(s)},this.onExportSVG=()=>{this.props.onExportSVG()},this.onExportPNG=()=>{this.props.onExportPNG()}}componentWillUnmount(){this.clearClearAllTimeout()}clearClearAllTimeout(){this.clearAllTimeout!==void 0&&(clearTimeout(this.clearAllTimeout),this.clearAllTimeout=void 0)}renderSaveDiagramButton(){return this.props.onSaveDiagram?N.createElement("button",{type:"button",className:"saveDiagramButton graph-explorer-btn graph-explorer-btn-primary",disabled:this.props.canSaveDiagram===!1,onClick:this.props.onSaveDiagram},N.createElement("span",{className:"fa fa-floppy-o","aria-hidden":"true"})," Save diagram"):null}renderPersistAuthoredChangesButton(){return this.props.onPersistChanges?N.createElement("button",{type:"button",className:"saveDiagramButton graph-explorer-btn graph-explorer-btn-success",disabled:this.props.canPersistChanges===!1,onClick:this.props.onPersistChanges},N.createElement("span",{className:"fa fa-floppy-o","aria-hidden":"true"})," Save data"):null}renderLanguages(){const{selectedLanguage:i,languages:a}=this.props;return a.length<=1?null:N.createElement("span",{className:`graph-explorer-btn-group ${tA}__language-selector`},N.createElement("label",{className:"graph-explorer-label"},N.createElement("span",null,"Data Language")),N.createElement("select",{value:i,onChange:this.onChangeLanguage},a.map(({code:s,label:f})=>N.createElement("option",{key:s,value:s},f))))}render(){return N.createElement("div",{className:tA},N.createElement("div",{className:"graph-explorer-btn-group graph-explorer-btn-group-sm"},this.renderSaveDiagramButton(),this.renderPersistAuthoredChangesButton(),this.props.onClearAll?N.createElement("button",{type:"button",className:this.state.clearAllArmed?"graph-explorer-btn graph-explorer-btn-danger":"graph-explorer-btn graph-explorer-btn-default",title:this.state.clearAllArmed?"Click again to confirm":"Clear All",onClick:this.onClearAllClick,onBlur:()=>this.setState({clearAllArmed:!1})},N.createElement("span",{className:"fa fa-trash","aria-hidden":"true"})," ",this.state.clearAllArmed?"Are you sure?":"Clear All"):null,N.createElement("button",{type:"button",className:"graph-explorer-btn graph-explorer-btn-default",title:"Force layout",onClick:this.props.onForceLayout},N.createElement("span",{className:"fa fa-sitemap","aria-hidden":"true"})," Layout"),N.createElement("button",{type:"button",className:"graph-explorer-btn graph-explorer-btn-default",title:"Zoom In",onClick:this.props.onZoomIn},N.createElement("span",{className:"fa fa-search-plus","aria-hidden":"true"})),N.createElement("button",{type:"button",className:"graph-explorer-btn graph-explorer-btn-default",title:"Zoom Out",onClick:this.props.onZoomOut},N.createElement("span",{className:"fa fa-search-minus","aria-hidden":"true"})),N.createElement("button",{type:"button",className:"graph-explorer-btn graph-explorer-btn-default",title:"Fit to Screen",onClick:this.props.onZoomToFit},N.createElement("span",{className:"fa fa-arrows-alt","aria-hidden":"true"})),N.createElement("button",{type:"button",className:"graph-explorer-btn graph-explorer-btn-default",title:"Export diagram as PNG",onClick:this.onExportPNG},N.createElement("span",{className:"fa fa-picture-o","aria-hidden":"true"})," PNG"),N.createElement("button",{type:"button",className:"graph-explorer-btn graph-explorer-btn-default",title:"Export diagram as SVG",onClick:this.onExportSVG},N.createElement("span",{className:"fa fa-picture-o","aria-hidden":"true"})," SVG"),N.createElement("button",{type:"button",className:"graph-explorer-btn graph-explorer-btn-default",title:"Print diagram",onClick:this.props.onPrint},N.createElement("span",{className:"fa fa-print","aria-hidden":"true"})),this.renderLanguages()))}},$D=Bn((i=>{function a($,X){var ee=$.length;$.push(X);e:for(;0<ee;){var ye=ee-1>>>1,Me=$[ye];if(0<h(Me,X))$[ye]=X,$[ee]=Me,ee=ye;else break e}}function s($){return $.length===0?null:$[0]}function f($){if($.length===0)return null;var X=$[0],ee=$.pop();if(ee!==X){$[0]=ee;e:for(var ye=0,Me=$.length,et=Me>>>1;ye<et;){var F=2*(ye+1)-1,ze=$[F],He=F+1,Ie=$[He];if(0>h(ze,ee))He<Me&&0>h(Ie,ze)?($[ye]=Ie,$[He]=ee,ye=He):($[ye]=ze,$[F]=ee,ye=F);else if(He<Me&&0>h(Ie,ee))$[ye]=Ie,$[He]=ee,ye=He;else break e}}return X}function h($,X){var ee=$.sortIndex-X.sortIndex;return ee!==0?ee:$.id-X.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;i.unstable_now=function(){return m.now()}}else{var v=Date,w=v.now();i.unstable_now=function(){return v.now()-w}}var E=[],S=[],_=1,L=null,x=3,D=!1,B=!1,G=!1,P=!1,te=typeof setTimeout=="function"?setTimeout:null,pe=typeof clearTimeout=="function"?clearTimeout:null,Te=typeof setImmediate<"u"?setImmediate:null;function Se($){for(var X=s(S);X!==null;){if(X.callback===null)f(S);else if(X.startTime<=$)f(S),X.sortIndex=X.expirationTime,a(E,X);else break;X=s(S)}}function Fe($){if(G=!1,Se($),!B)if(s(E)!==null)B=!0,Re||(Re=!0,ne());else{var X=s(S);X!==null&&K(Fe,X.startTime-$)}}var Re=!1,Je=-1,Be=5,W=-1;function re(){return P?!0:!(i.unstable_now()-W<Be)}function me(){if(P=!1,Re){var $=i.unstable_now();W=$;var X=!0;try{e:{B=!1,G&&(G=!1,pe(Je),Je=-1),D=!0;var ee=x;try{t:{for(Se($),L=s(E);L!==null&&!(L.expirationTime>$&&re());){var ye=L.callback;if(typeof ye=="function"){L.callback=null,x=L.priorityLevel;var Me=ye(L.expirationTime<=$);if($=i.unstable_now(),typeof Me=="function"){L.callback=Me,Se($),X=!0;break t}L===s(E)&&f(E),Se($)}else f(E);L=s(E)}if(L!==null)X=!0;else{var et=s(S);et!==null&&K(Fe,et.startTime-$),X=!1}}break e}finally{L=null,x=ee,D=!1}X=void 0}}finally{X?ne():Re=!1}}}var ne;if(typeof Te=="function")ne=function(){Te(me)};else if(typeof MessageChannel<"u"){var ue=new MessageChannel,Z=ue.port2;ue.port1.onmessage=me,ne=function(){Z.postMessage(null)}}else ne=function(){te(me,0)};function K($,X){Je=te(function(){$(i.unstable_now())},X)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function($){$.callback=null},i.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Be=0<$?Math.floor(1e3/$):5},i.unstable_getCurrentPriorityLevel=function(){return x},i.unstable_next=function($){switch(x){case 1:case 2:case 3:var X=3;break;default:X=x}var ee=x;x=X;try{return $()}finally{x=ee}},i.unstable_requestPaint=function(){P=!0},i.unstable_runWithPriority=function($,X){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var ee=x;x=$;try{return X()}finally{x=ee}},i.unstable_scheduleCallback=function($,X,ee){var ye=i.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?ye+ee:ye):ee=ye,$){case 1:var Me=-1;break;case 2:Me=250;break;case 5:Me=1073741823;break;case 4:Me=1e4;break;default:Me=5e3}return Me=ee+Me,$={id:_++,callback:X,priorityLevel:$,startTime:ee,expirationTime:Me,sortIndex:-1},ee>ye?($.sortIndex=ee,a(S,$),s(E)===null&&$===s(S)&&(G?(pe(Je),Je=-1):G=!0,K(Fe,ee-ye))):($.sortIndex=Me,a(E,$),B||D||(B=!0,Re||(Re=!0,ne()))),$},i.unstable_shouldYield=re,i.unstable_wrapCallback=function($){var X=x;return function(){var ee=x;x=X;try{return $.apply(this,arguments)}finally{x=ee}}}})),XD=Bn((i=>{hf(),Ki.env.NODE_ENV!=="production"&&(function(){function a(){if(Fe=!1,W){var $=i.unstable_now();ne=$;var X=!0;try{e:{Te=!1,Se&&(Se=!1,Je(re),re=-1),pe=!0;var ee=te;try{t:{for(v($),P=f(D);P!==null&&!(P.expirationTime>$&&E());){var ye=P.callback;if(typeof ye=="function"){P.callback=null,te=P.priorityLevel;var Me=ye(P.expirationTime<=$);if($=i.unstable_now(),typeof Me=="function"){P.callback=Me,v($),X=!0;break t}P===f(D)&&h(D),v($)}else h(D);P=f(D)}if(P!==null)X=!0;else{var et=f(B);et!==null&&S(w,et.startTime-$),X=!1}}break e}finally{P=null,te=ee,pe=!1}X=void 0}}finally{X?ue():W=!1}}}function s($,X){var ee=$.length;$.push(X);e:for(;0<ee;){var ye=ee-1>>>1,Me=$[ye];if(0<m(Me,X))$[ye]=X,$[ee]=Me,ee=ye;else break e}}function f($){return $.length===0?null:$[0]}function h($){if($.length===0)return null;var X=$[0],ee=$.pop();if(ee!==X){$[0]=ee;e:for(var ye=0,Me=$.length,et=Me>>>1;ye<et;){var F=2*(ye+1)-1,ze=$[F],He=F+1,Ie=$[He];if(0>m(ze,ee))He<Me&&0>m(Ie,ze)?($[ye]=Ie,$[He]=ee,ye=He):($[ye]=ze,$[F]=ee,ye=F);else if(He<Me&&0>m(Ie,ee))$[ye]=Ie,$[He]=ee,ye=He;else break e}}return X}function m($,X){var ee=$.sortIndex-X.sortIndex;return ee!==0?ee:$.id-X.id}function v($){for(var X=f(B);X!==null;){if(X.callback===null)h(B);else if(X.startTime<=$)h(B),X.sortIndex=X.expirationTime,s(D,X);else break;X=f(B)}}function w($){if(Se=!1,v($),!Te)if(f(D)!==null)Te=!0,W||(W=!0,ue());else{var X=f(B);X!==null&&S(w,X.startTime-$)}}function E(){return Fe?!0:!(i.unstable_now()-ne<me)}function S($,X){re=Re(function(){$(i.unstable_now())},X)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var _=performance;i.unstable_now=function(){return _.now()}}else{var L=Date,x=L.now();i.unstable_now=function(){return L.now()-x}}var D=[],B=[],G=1,P=null,te=3,pe=!1,Te=!1,Se=!1,Fe=!1,Re=typeof setTimeout=="function"?setTimeout:null,Je=typeof clearTimeout=="function"?clearTimeout:null,Be=typeof setImmediate<"u"?setImmediate:null,W=!1,re=-1,me=5,ne=-1;if(typeof Be=="function")var ue=function(){Be(a)};else if(typeof MessageChannel<"u"){var Z=new MessageChannel,K=Z.port2;Z.port1.onmessage=a,ue=function(){K.postMessage(null)}}else ue=function(){Re(a,0)};i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function($){$.callback=null},i.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):me=0<$?Math.floor(1e3/$):5},i.unstable_getCurrentPriorityLevel=function(){return te},i.unstable_next=function($){switch(te){case 1:case 2:case 3:var X=3;break;default:X=te}var ee=te;te=X;try{return $()}finally{te=ee}},i.unstable_requestPaint=function(){Fe=!0},i.unstable_runWithPriority=function($,X){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var ee=te;te=$;try{return X()}finally{te=ee}},i.unstable_scheduleCallback=function($,X,ee){var ye=i.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?ye+ee:ye):ee=ye,$){case 1:var Me=-1;break;case 2:Me=250;break;case 5:Me=1073741823;break;case 4:Me=1e4;break;default:Me=5e3}return Me=ee+Me,$={id:G++,callback:X,priorityLevel:$,startTime:ee,expirationTime:Me,sortIndex:-1},ee>ye?($.sortIndex=ee,s(B,$),f(D)===null&&$===f(B)&&(Se?(Je(re),re=-1):Se=!0,S(w,ee-ye))):($.sortIndex=Me,s(D,$),Te||pe||(Te=!0,W||(W=!0,ue()))),$},i.unstable_shouldYield=E,i.unstable_wrapCallback=function($){var X=te;return function(){var ee=te;te=X;try{return $.apply(this,arguments)}finally{te=ee}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),iA=Bn(((i,a)=>{hf(),Ki.env.NODE_ENV==="production"?a.exports=$D():a.exports=XD()})),QD=Bn((i=>{var a=$v();function s(S){var _="https://react.dev/errors/"+S;if(1<arguments.length){_+="?args[]="+encodeURIComponent(arguments[1]);for(var L=2;L<arguments.length;L++)_+="&args[]="+encodeURIComponent(arguments[L])}return"Minified React error #"+S+"; visit "+_+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(){}var h={d:{f,r:function(){throw Error(s(522))},D:f,C:f,L:f,m:f,X:f,S:f,M:f},p:0,findDOMNode:null},m=Symbol.for("react.portal");function v(S,_,L){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:x==null?null:""+x,children:S,containerInfo:_,implementation:L}}var w=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function E(S,_){if(S==="font")return"";if(typeof _=="string")return _==="use-credentials"?_:""}i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=h,i.createPortal=function(S,_){var L=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_||_.nodeType!==1&&_.nodeType!==9&&_.nodeType!==11)throw Error(s(299));return v(S,_,null,L)},i.flushSync=function(S){var _=w.T,L=h.p;try{if(w.T=null,h.p=2,S)return S()}finally{w.T=_,h.p=L,h.d.f()}},i.preconnect=function(S,_){typeof S=="string"&&(_?(_=_.crossOrigin,_=typeof _=="string"?_==="use-credentials"?_:"":void 0):_=null,h.d.C(S,_))},i.prefetchDNS=function(S){typeof S=="string"&&h.d.D(S)},i.preinit=function(S,_){if(typeof S=="string"&&_&&typeof _.as=="string"){var L=_.as,x=E(L,_.crossOrigin),D=typeof _.integrity=="string"?_.integrity:void 0,B=typeof _.fetchPriority=="string"?_.fetchPriority:void 0;L==="style"?h.d.S(S,typeof _.precedence=="string"?_.precedence:void 0,{crossOrigin:x,integrity:D,fetchPriority:B}):L==="script"&&h.d.X(S,{crossOrigin:x,integrity:D,fetchPriority:B,nonce:typeof _.nonce=="string"?_.nonce:void 0})}},i.preinitModule=function(S,_){if(typeof S=="string")if(typeof _=="object"&&_!==null){if(_.as==null||_.as==="script"){var L=E(_.as,_.crossOrigin);h.d.M(S,{crossOrigin:L,integrity:typeof _.integrity=="string"?_.integrity:void 0,nonce:typeof _.nonce=="string"?_.nonce:void 0})}}else _??h.d.M(S)},i.preload=function(S,_){if(typeof S=="string"&&typeof _=="object"&&_!==null&&typeof _.as=="string"){var L=_.as,x=E(L,_.crossOrigin);h.d.L(S,L,{crossOrigin:x,integrity:typeof _.integrity=="string"?_.integrity:void 0,nonce:typeof _.nonce=="string"?_.nonce:void 0,type:typeof _.type=="string"?_.type:void 0,fetchPriority:typeof _.fetchPriority=="string"?_.fetchPriority:void 0,referrerPolicy:typeof _.referrerPolicy=="string"?_.referrerPolicy:void 0,imageSrcSet:typeof _.imageSrcSet=="string"?_.imageSrcSet:void 0,imageSizes:typeof _.imageSizes=="string"?_.imageSizes:void 0,media:typeof _.media=="string"?_.media:void 0})}},i.preloadModule=function(S,_){if(typeof S=="string")if(_){var L=E(_.as,_.crossOrigin);h.d.m(S,{as:typeof _.as=="string"&&_.as!=="script"?_.as:void 0,crossOrigin:L,integrity:typeof _.integrity=="string"?_.integrity:void 0})}else h.d.m(S)},i.requestFormReset=function(S){h.d.r(S)},i.unstable_batchedUpdates=function(S,_){return S(_)},i.useFormState=function(S,_,L){return w.H.useFormState(S,_,L)},i.useFormStatus=function(){return w.H.useHostTransitionStatus()},i.version="19.2.7"})),PD=Bn((i=>{hf(),Ki.env.NODE_ENV!=="production"&&(function(){function a(){}function s(x){return""+x}function f(x,D,B){var G=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{s(G);var P=!1}catch{P=!0}return P&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&G[Symbol.toStringTag]||G.constructor.name||"Object"),s(G)),{$$typeof:_,key:G==null?null:""+G,children:x,containerInfo:D,implementation:B}}function h(x,D){if(x==="font")return"";if(typeof D=="string")return D==="use-credentials"?D:""}function m(x){return x===null?"`null`":x===void 0?"`undefined`":x===""?"an empty string":'something with type "'+typeof x+'"'}function v(x){return x===null?"`null`":x===void 0?"`undefined`":x===""?"an empty string":typeof x=="string"?JSON.stringify(x):typeof x=="number"?"`"+x+"`":'something with type "'+typeof x+'"'}function w(){var x=L.H;return x===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),x}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var E=$v(),S={d:{f:a,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},_=Symbol.for("react.portal"),L=E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=S,i.createPortal=function(x,D){var B=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!D||D.nodeType!==1&&D.nodeType!==9&&D.nodeType!==11)throw Error("Target container is not a DOM element.");return f(x,D,null,B)},i.flushSync=function(x){var D=L.T,B=S.p;try{if(L.T=null,S.p=2,x)return x()}finally{L.T=D,S.p=B,S.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},i.preconnect=function(x,D){typeof x=="string"&&x?D!=null&&typeof D!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",v(D)):D!=null&&typeof D.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",m(D.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",m(x)),typeof x=="string"&&(D?(D=D.crossOrigin,D=typeof D=="string"?D==="use-credentials"?D:"":void 0):D=null,S.d.C(x,D))},i.prefetchDNS=function(x){if(typeof x!="string"||!x)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",m(x));else if(1<arguments.length){var D=arguments[1];typeof D=="object"&&D.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",v(D)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",v(D))}typeof x=="string"&&S.d.D(x)},i.preinit=function(x,D){if(typeof x=="string"&&x?D==null||typeof D!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",v(D)):D.as!=="style"&&D.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',v(D.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",m(x)),typeof x=="string"&&D&&typeof D.as=="string"){var B=D.as,G=h(B,D.crossOrigin),P=typeof D.integrity=="string"?D.integrity:void 0,te=typeof D.fetchPriority=="string"?D.fetchPriority:void 0;B==="style"?S.d.S(x,typeof D.precedence=="string"?D.precedence:void 0,{crossOrigin:G,integrity:P,fetchPriority:te}):B==="script"&&S.d.X(x,{crossOrigin:G,integrity:P,fetchPriority:te,nonce:typeof D.nonce=="string"?D.nonce:void 0})}},i.preinitModule=function(x,D){var B="";typeof x=="string"&&x||(B+=" The `href` argument encountered was "+m(x)+"."),D!==void 0&&typeof D!="object"?B+=" The `options` argument encountered was "+m(D)+".":D&&"as"in D&&D.as!=="script"&&(B+=" The `as` option encountered was "+v(D.as)+"."),B?console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",B):(B=D&&typeof D.as=="string"?D.as:"script",B)==="script"||(B=v(B),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',B,x)),typeof x=="string"&&(typeof D=="object"&&D!==null?(D.as==null||D.as==="script")&&(B=h(D.as,D.crossOrigin),S.d.M(x,{crossOrigin:B,integrity:typeof D.integrity=="string"?D.integrity:void 0,nonce:typeof D.nonce=="string"?D.nonce:void 0})):D??S.d.M(x))},i.preload=function(x,D){var B="";if(typeof x=="string"&&x||(B+=" The `href` argument encountered was "+m(x)+"."),D==null||typeof D!="object"?B+=" The `options` argument encountered was "+m(D)+".":typeof D.as=="string"&&D.as||(B+=" The `as` option encountered was "+m(D.as)+"."),B&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',B),typeof x=="string"&&typeof D=="object"&&D!==null&&typeof D.as=="string"){B=D.as;var G=h(B,D.crossOrigin);S.d.L(x,B,{crossOrigin:G,integrity:typeof D.integrity=="string"?D.integrity:void 0,nonce:typeof D.nonce=="string"?D.nonce:void 0,type:typeof D.type=="string"?D.type:void 0,fetchPriority:typeof D.fetchPriority=="string"?D.fetchPriority:void 0,referrerPolicy:typeof D.referrerPolicy=="string"?D.referrerPolicy:void 0,imageSrcSet:typeof D.imageSrcSet=="string"?D.imageSrcSet:void 0,imageSizes:typeof D.imageSizes=="string"?D.imageSizes:void 0,media:typeof D.media=="string"?D.media:void 0})}},i.preloadModule=function(x,D){var B="";typeof x=="string"&&x||(B+=" The `href` argument encountered was "+m(x)+"."),D!==void 0&&typeof D!="object"?B+=" The `options` argument encountered was "+m(D)+".":D&&"as"in D&&typeof D.as!="string"&&(B+=" The `as` option encountered was "+m(D.as)+"."),B&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',B),typeof x=="string"&&(D?(B=h(D.as,D.crossOrigin),S.d.m(x,{as:typeof D.as=="string"&&D.as!=="script"?D.as:void 0,crossOrigin:B,integrity:typeof D.integrity=="string"?D.integrity:void 0})):S.d.m(x))},i.requestFormReset=function(x){S.d.r(x)},i.unstable_batchedUpdates=function(x,D){return x(D)},i.useFormState=function(x,D,B){return w().useFormState(x,D,B)},i.useFormStatus=function(){return w().useHostTransitionStatus()},i.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),aA=Bn(((i,a)=>{hf();function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(Ki.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(f){console.error(f)}}}Ki.env.NODE_ENV==="production"?(s(),a.exports=QD()):a.exports=PD()})),ZD=Bn((i=>{hf();var a=iA(),s=$v(),f=aA();function h(n){var l="https://react.dev/errors/"+n;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)l+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+n+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function m(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function v(n){var l=n,o=n;if(n.alternate)for(;l.return;)l=l.return;else{n=l;do l=n,(l.flags&4098)!==0&&(o=l.return),n=l.return;while(n)}return l.tag===3?o:null}function w(n){if(n.tag===13){var l=n.memoizedState;if(l===null&&(n=n.alternate,n!==null&&(l=n.memoizedState)),l!==null)return l.dehydrated}return null}function E(n){if(n.tag===31){var l=n.memoizedState;if(l===null&&(n=n.alternate,n!==null&&(l=n.memoizedState)),l!==null)return l.dehydrated}return null}function S(n){if(v(n)!==n)throw Error(h(188))}function _(n){var l=n.alternate;if(!l){if(l=v(n),l===null)throw Error(h(188));return l!==n?null:n}for(var o=n,d=l;;){var b=o.return;if(b===null)break;var A=b.alternate;if(A===null){if(d=b.return,d!==null){o=d;continue}break}if(b.child===A.child){for(A=b.child;A;){if(A===o)return S(b),n;if(A===d)return S(b),l;A=A.sibling}throw Error(h(188))}if(o.return!==d.return)o=b,d=A;else{for(var z=!1,V=b.child;V;){if(V===o){z=!0,o=b,d=A;break}if(V===d){z=!0,d=b,o=A;break}V=V.sibling}if(!z){for(V=A.child;V;){if(V===o){z=!0,o=A,d=b;break}if(V===d){z=!0,d=A,o=b;break}V=V.sibling}if(!z)throw Error(h(189))}}if(o.alternate!==d)throw Error(h(190))}if(o.tag!==3)throw Error(h(188));return o.stateNode.current===o?n:l}function L(n){var l=n.tag;if(l===5||l===26||l===27||l===6)return n;for(n=n.child;n!==null;){if(l=L(n),l!==null)return l;n=n.sibling}return null}var x=Object.assign,D=Symbol.for("react.element"),B=Symbol.for("react.transitional.element"),G=Symbol.for("react.portal"),P=Symbol.for("react.fragment"),te=Symbol.for("react.strict_mode"),pe=Symbol.for("react.profiler"),Te=Symbol.for("react.consumer"),Se=Symbol.for("react.context"),Fe=Symbol.for("react.forward_ref"),Re=Symbol.for("react.suspense"),Je=Symbol.for("react.suspense_list"),Be=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),re=Symbol.for("react.activity"),me=Symbol.for("react.memo_cache_sentinel"),ne=Symbol.iterator;function ue(n){return n===null||typeof n!="object"?null:(n=ne&&n[ne]||n["@@iterator"],typeof n=="function"?n:null)}var Z=Symbol.for("react.client.reference");function K(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===Z?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case P:return"Fragment";case pe:return"Profiler";case te:return"StrictMode";case Re:return"Suspense";case Je:return"SuspenseList";case re:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case G:return"Portal";case Se:return n.displayName||"Context";case Te:return(n._context.displayName||"Context")+".Consumer";case Fe:var l=n.render;return n=n.displayName,n||(n=l.displayName||l.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case Be:return l=n.displayName||null,l!==null?l:K(n.type)||"Memo";case W:l=n._payload,n=n._init;try{return K(n(l))}catch{}}return null}var $=Array.isArray,X=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ye={pending:!1,data:null,method:null,action:null},Me=[],et=-1;function F(n){return{current:n}}function ze(n){0>et||(n.current=Me[et],Me[et]=null,et--)}function He(n,l){et++,Me[et]=n.current,n.current=l}var Ie=F(null),at=F(null),st=F(null),At=F(null);function Jt(n,l){switch(He(st,l),He(at,n),He(Ie,null),l.nodeType){case 9:case 11:n=(n=l.documentElement)&&(n=n.namespaceURI)?Gy(n):0;break;default:if(n=l.tagName,l=l.namespaceURI)l=Gy(l),n=Rg(l,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}ze(Ie),He(Ie,n)}function ht(){ze(Ie),ze(at),ze(st)}function En(n){n.memoizedState!==null&&He(At,n);var l=Ie.current,o=Rg(l,n.type);l!==o&&(He(at,n),He(Ie,o))}function tt(n){at.current===n&&(ze(Ie),ze(at)),At.current===n&&(ze(At),yh._currentValue=ye)}var Sr,Ml;function Kn(n){if(Sr===void 0)try{throw Error()}catch(o){var l=o.stack.trim().match(/\n( *(at )?)/);Sr=l&&l[1]||"",Ml=-1<o.stack.indexOf(`
    at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Sr+n+Ml}var Ai=!1;function Dt(n,l){if(!n||Ai)return"";Ai=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var d={DetermineComponentFrameRoot:function(){try{if(l){var Qe=function(){throw Error()};if(Object.defineProperty(Qe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Qe,[])}catch(Ue){var Oe=Ue}Reflect.construct(n,[],Qe)}else{try{Qe.call()}catch(Ue){Oe=Ue}n.call(Qe.prototype)}}else{try{throw Error()}catch(Ue){Oe=Ue}(Qe=n())&&typeof Qe.catch=="function"&&Qe.catch(function(){})}}catch(Ue){if(Ue&&Oe&&typeof Ue.stack=="string")return[Ue.stack,Oe.stack]}return[null,null]}};d.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var b=Object.getOwnPropertyDescriptor(d.DetermineComponentFrameRoot,"name");b&&b.configurable&&Object.defineProperty(d.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var A=d.DetermineComponentFrameRoot(),z=A[0],V=A[1];if(z&&V){var oe=z.split(`
`),Le=V.split(`
`);for(b=d=0;d<oe.length&&!oe[d].includes("DetermineComponentFrameRoot");)d++;for(;b<Le.length&&!Le[b].includes("DetermineComponentFrameRoot");)b++;if(d===oe.length||b===Le.length)for(d=oe.length-1,b=Le.length-1;1<=d&&0<=b&&oe[d]!==Le[b];)b--;for(;1<=d&&0<=b;d--,b--)if(oe[d]!==Le[b]){if(d!==1||b!==1)do if(d--,b--,0>b||oe[d]!==Le[b]){var je=`
`+oe[d].replace(" at new "," at ");return n.displayName&&je.includes("<anonymous>")&&(je=je.replace("<anonymous>",n.displayName)),je}while(1<=d&&0<=b);break}}}finally{Ai=!1,Error.prepareStackTrace=o}return(o=n?n.displayName||n.name:"")?Kn(o):""}function qa(n,l){switch(n.tag){case 26:case 27:case 5:return Kn(n.type);case 16:return Kn("Lazy");case 13:return n.child!==l&&l!==null?Kn("Suspense Fallback"):Kn("Suspense");case 19:return Kn("SuspenseList");case 0:case 15:return Dt(n.type,!1);case 11:return Dt(n.type.render,!1);case 1:return Dt(n.type,!0);case 31:return Kn("Activity");default:return""}}function ho(n){try{var l="",o=null;do l+=qa(n,o),o=n,n=n.return;while(n);return l}catch(d){return`
Error generating stack: `+d.message+`
`+d.stack}}var kt=Object.prototype.hasOwnProperty,nn=a.unstable_scheduleCallback,fa=a.unstable_cancelCallback,La=a.unstable_shouldYield,lr=a.unstable_requestPaint,Cn=a.unstable_now,Rl=a.unstable_getCurrentPriorityLevel,Po=a.unstable_ImmediatePriority,ji=a.unstable_UserBlockingPriority,ha=a.unstable_NormalPriority,Y=a.unstable_LowPriority,R=a.unstable_IdlePriority,k=a.log,J=a.unstable_setDisableYieldValue,ve=null,Ae=null;function Ge(n){if(typeof k=="function"&&J(n),Ae&&typeof Ae.setStrictMode=="function")try{Ae.setStrictMode(ve,n)}catch{}}var pt=Math.clz32?Math.clz32:Xe,I=Math.log,ge=Math.LN2;function Xe(n){return n>>>=0,n===0?32:31-(I(n)/ge|0)|0}var Ze=256,ut=262144,Mt=4194304;function bt(n){var l=n&42;if(l!==0)return l;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function Ct(n,l,o){var d=n.pendingLanes;if(d===0)return 0;var b=0,A=n.suspendedLanes,z=n.pingedLanes;n=n.warmLanes;var V=d&134217727;return V!==0?(d=V&~A,d!==0?b=bt(d):(z&=V,z!==0?b=bt(z):o||(o=V&~n,o!==0&&(b=bt(o))))):(V=d&~A,V!==0?b=bt(V):z!==0?b=bt(z):o||(o=d&~n,o!==0&&(b=bt(o)))),b===0?0:l!==0&&l!==b&&(l&A)===0&&(A=b&-b,o=l&-l,A>=o||A===32&&(o&4194048)!==0)?l:b}function xt(n,l){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&l)===0}function sr(n,l){switch(n){case 1:case 2:case 4:case 8:case 64:return l+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function or(){var n=Mt;return Mt<<=1,(Mt&62914560)===0&&(Mt=4194304),n}function nc(n){for(var l=[],o=0;31>o;o++)l.push(n);return l}function Zo(n,l){n.pendingLanes|=l,l!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function gp(n,l,o,d,b,A){var z=n.pendingLanes;n.pendingLanes=o,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=o,n.entangledLanes&=o,n.errorRecoveryDisabledLanes&=o,n.shellSuspendCounter=0;var V=n.entanglements,oe=n.expirationTimes,Le=n.hiddenUpdates;for(o=z&~o;0<o;){var je=31-pt(o),Qe=1<<je;V[je]=0,oe[je]=-1;var Oe=Le[je];if(Oe!==null)for(Le[je]=null,je=0;je<Oe.length;je++){var Ue=Oe[je];Ue!==null&&(Ue.lane&=-536870913)}o&=~Qe}d!==0&&ic(n,d,0),A!==0&&b===0&&n.tag!==0&&(n.suspendedLanes|=A&~(z&~l))}function ic(n,l,o){n.pendingLanes|=l,n.suspendedLanes&=~l;var d=31-pt(l);n.entangledLanes|=l,n.entanglements[d]=n.entanglements[d]|1073741824|o&261930}function ds(n,l){var o=n.entangledLanes|=l;for(n=n.entanglements;o;){var d=31-pt(o),b=1<<d;b&l|n[d]&l&&(n[d]|=l),o&=~b}}function ur(n,l){var o=l&-l;return o=(o&42)!==0?1:mp(o),(o&(n.suspendedLanes|l))!==0?0:o}function mp(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function Nm(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function yp(){var n=ee.p;return n!==0?n:(n=window.event,n===void 0?32:ef(n.type))}function km(n,l){var o=ee.p;try{return ee.p=n,l()}finally{ee.p=o}}var Nl=Math.random().toString(36).slice(2),In="__reactFiber$"+Nl,cr="__reactProps$"+Nl,Jo="__reactContainer$"+Nl,Rh="__reactEvents$"+Nl,zm="__reactListeners$"+Nl,B0="__reactHandles$"+Nl,Um="__reactResources$"+Nl,ps="__reactMarker$"+Nl;function vp(n){delete n[In],delete n[cr],delete n[Rh],delete n[zm],delete n[B0]}function ac(n){var l=n[In];if(l)return l;for(var o=n.parentNode;o;){if(l=o[Jo]||o[In]){if(o=l.alternate,l.child!==null||o!==null&&o.child!==null)for(n=zd(n);n!==null;){if(o=n[In])return o;n=zd(n)}return l}n=o,o=n.parentNode}return null}function gs(n){if(n=n[In]||n[Jo]){var l=n.tag;if(l===5||l===6||l===13||l===31||l===26||l===27||l===3)return n}return null}function bf(n){var l=n.tag;if(l===5||l===26||l===27||l===6)return n.stateNode;throw Error(h(33))}function ms(n){var l=n[Um];return l||(l=n[Um]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function xn(n){n[ps]=!0}var Ko=new Set,po={};function Fo(n,l){ys(n,l),ys(n+"Capture",l)}function ys(n,l){for(po[n]=l,n=0;n<l.length;n++)Ko.add(l[n])}var bp=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),_p={},rc={};function lc(n){return kt.call(rc,n)?!0:kt.call(_p,n)?!1:bp.test(n)?rc[n]=!0:(_p[n]=!0,!1)}function sc(n,l,o){if(lc(l))if(o===null)n.removeAttribute(l);else{switch(typeof o){case"undefined":case"function":case"symbol":n.removeAttribute(l);return;case"boolean":var d=l.toLowerCase().slice(0,5);if(d!=="data-"&&d!=="aria-"){n.removeAttribute(l);return}}n.setAttribute(l,""+o)}}function _f(n,l,o){if(o===null)n.removeAttribute(l);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(l);return}n.setAttribute(l,""+o)}}function go(n,l,o,d){if(d===null)n.removeAttribute(o);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(o);return}n.setAttributeNS(l,o,""+d)}}function Tr(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function oc(n){var l=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function Ep(n,l,o){var d=Object.getOwnPropertyDescriptor(n.constructor.prototype,l);if(!n.hasOwnProperty(l)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var b=d.get,A=d.set;return Object.defineProperty(n,l,{configurable:!0,get:function(){return b.call(this)},set:function(z){o=""+z,A.call(this,z)}}),Object.defineProperty(n,l,{enumerable:d.enumerable}),{getValue:function(){return o},setValue:function(z){o=""+z},stopTracking:function(){n._valueTracker=null,delete n[l]}}}}function Sp(n){if(!n._valueTracker){var l=oc(n)?"checked":"value";n._valueTracker=Ep(n,l,""+n[l])}}function Tp(n){if(!n)return!1;var l=n._valueTracker;if(!l)return!0;var o=l.getValue(),d="";return n&&(d=oc(n)?n.checked?"true":"false":n.value),n=d,n!==o?(l.setValue(n),!0):!1}function Ef(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var Bm=/[\n"\\]/g;function Kr(n){return n.replace(Bm,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function Sf(n,l,o,d,b,A,z,V){n.name="",z!=null&&typeof z!="function"&&typeof z!="symbol"&&typeof z!="boolean"?n.type=z:n.removeAttribute("type"),l!=null?z==="number"?(l===0&&n.value===""||n.value!=l)&&(n.value=""+Tr(l)):n.value!==""+Tr(l)&&(n.value=""+Tr(l)):z!=="submit"&&z!=="reset"||n.removeAttribute("value"),l!=null?mo(n,z,Tr(l)):o!=null?mo(n,z,Tr(o)):d!=null&&n.removeAttribute("value"),b==null&&A!=null&&(n.defaultChecked=!!A),b!=null&&(n.checked=b&&typeof b!="function"&&typeof b!="symbol"),V!=null&&typeof V!="function"&&typeof V!="symbol"&&typeof V!="boolean"?n.name=""+Tr(V):n.removeAttribute("name")}function uc(n,l,o,d,b,A,z,V){if(A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"&&(n.type=A),l!=null||o!=null){if(!(A!=="submit"&&A!=="reset"||l!=null)){Sp(n);return}o=o!=null?""+Tr(o):"",l=l!=null?""+Tr(l):o,V||l===n.value||(n.value=l),n.defaultValue=l}d=d??b,d=typeof d!="function"&&typeof d!="symbol"&&!!d,n.checked=V?n.checked:!!d,n.defaultChecked=!!d,z!=null&&typeof z!="function"&&typeof z!="symbol"&&typeof z!="boolean"&&(n.name=z),Sp(n)}function mo(n,l,o){l==="number"&&Ef(n.ownerDocument)===n||n.defaultValue===""+o||(n.defaultValue=""+o)}function kl(n,l,o,d){if(n=n.options,l){l={};for(var b=0;b<o.length;b++)l["$"+o[b]]=!0;for(o=0;o<n.length;o++)b=l.hasOwnProperty("$"+n[o].value),n[o].selected!==b&&(n[o].selected=b),b&&d&&(n[o].defaultSelected=!0)}else{for(o=""+Tr(o),l=null,b=0;b<n.length;b++){if(n[b].value===o){n[b].selected=!0,d&&(n[b].defaultSelected=!0);return}l!==null||n[b].disabled||(l=n[b])}l!==null&&(l.selected=!0)}}function wp(n,l,o){if(l!=null&&(l=""+Tr(l),l!==n.value&&(n.value=l),o==null)){n.defaultValue!==l&&(n.defaultValue=l);return}n.defaultValue=o!=null?""+Tr(o):""}function Ap(n,l,o,d){if(l==null){if(d!=null){if(o!=null)throw Error(h(92));if($(d)){if(1<d.length)throw Error(h(93));d=d[0]}o=d}o??="",l=o}o=Tr(l),n.defaultValue=o,d=n.textContent,d===o&&d!==""&&d!==null&&(n.value=d),Sp(n)}function vs(n,l){if(l){var o=n.firstChild;if(o&&o===n.lastChild&&o.nodeType===3){o.nodeValue=l;return}}n.textContent=l}var Hm=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Im(n,l,o){var d=l.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?d?n.setProperty(l,""):l==="float"?n.cssFloat="":n[l]="":d?n.setProperty(l,o):typeof o!="number"||o===0||Hm.has(l)?l==="float"?n.cssFloat=o:n[l]=(""+o).trim():n[l]=o+"px"}function qm(n,l,o){if(l!=null&&typeof l!="object")throw Error(h(62));if(n=n.style,o!=null){for(var d in o)!o.hasOwnProperty(d)||l!=null&&l.hasOwnProperty(d)||(d.indexOf("--")===0?n.setProperty(d,""):d==="float"?n.cssFloat="":n[d]="");for(var b in l)d=l[b],l.hasOwnProperty(b)&&o[b]!==d&&Im(n,b,d)}else for(var A in l)l.hasOwnProperty(A)&&Im(n,A,l[A])}function Cp(n){if(n.indexOf("-")===-1)return!1;switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var y1=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Nh=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function dl(n){return Nh.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function pl(){}var xp=null;function Lp(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var bs=null,cc=null;function fc(n){var l=gs(n);if(l&&(n=l.stateNode)){var o=n[cr]||null;e:switch(n=l.stateNode,l.type){case"input":if(Sf(n,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),l=o.name,o.type==="radio"&&l!=null){for(o=n;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+Kr(""+l)+'"][type="radio"]'),l=0;l<o.length;l++){var d=o[l];if(d!==n&&d.form===n.form){var b=d[cr]||null;if(!b)throw Error(h(90));Sf(d,b.value,b.defaultValue,b.defaultValue,b.checked,b.defaultChecked,b.type,b.name)}}for(l=0;l<o.length;l++)d=o[l],d.form===n.form&&Tp(d)}break e;case"textarea":wp(n,o.value,o.defaultValue);break e;case"select":l=o.value,l!=null&&kl(n,!!o.multiple,l,!1)}}}var Tf=!1;function Gm(n,l,o){if(Tf)return n(l,o);Tf=!0;try{return n(l)}finally{if(Tf=!1,(bs!==null||cc!==null)&&(xd(),bs&&(l=bs,n=cc,cc=bs=null,fc(l),n)))for(l=0;l<n.length;l++)fc(n[l])}}function da(n,l){var o=n.stateNode;if(o===null)return null;var d=o[cr]||null;if(d===null)return null;o=d[l];e:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(n=n.type,d=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!d;break e;default:n=!1}if(n)return null;if(o&&typeof o!="function")throw Error(h(231,l,typeof o));return o}var yo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),kh=!1;if(yo)try{var Nn={};Object.defineProperty(Nn,"passive",{get:function(){kh=!0}}),window.addEventListener("test",Nn,Nn),window.removeEventListener("test",Nn,Nn)}catch{kh=!1}var dn=null,jm=null,Op=null;function Ym(){if(Op)return Op;var n,l=jm,o=l.length,d,b="value"in dn?dn.value:dn.textContent,A=b.length;for(n=0;n<o&&l[n]===b[n];n++);var z=o-n;for(d=1;d<=z&&l[o-d]===b[A-d];d++);return Op=b.slice(n,1<d?1-d:void 0)}function Dp(n){var l=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&l===13&&(n=13)):n=l,n===10&&(n=13),32<=n||n===13?n:0}function zh(){return!0}function H0(){return!1}function pa(n){function l(o,d,b,A,z){this._reactName=o,this._targetInst=b,this.type=d,this.nativeEvent=A,this.target=z,this.currentTarget=null;for(var V in n)n.hasOwnProperty(V)&&(o=n[V],this[V]=o?o(A):A[V]);return this.isDefaultPrevented=(A.defaultPrevented!=null?A.defaultPrevented:A.returnValue===!1)?zh:H0,this.isPropagationStopped=H0,this}return x(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=zh)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=zh)},persist:function(){},isPersistent:zh}),l}var Wo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ci=pa(Wo),eu=x({},Wo,{view:0,detail:0}),hc=pa(eu),Mp,Uh,Ga,Bh=x({},eu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_s,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==Ga&&(Ga&&n.type==="mousemove"?(Mp=n.screenX-Ga.screenX,Uh=n.screenY-Ga.screenY):Uh=Mp=0,Ga=n),Mp)},movementY:function(n){return"movementY"in n?n.movementY:Uh}}),dc=pa(Bh),Vm=pa(x({},Bh,{dataTransfer:0})),Hh=pa(x({},eu,{relatedTarget:0})),$m=pa(x({},Wo,{animationName:0,elapsedTime:0,pseudoElement:0})),Xm=pa(x({},Wo,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}})),ja=pa(x({},Wo,{data:0})),I0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Fi={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},pc={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gl(n){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(n):(n=pc[n])?!!l[n]:!1}function _s(){return gl}var wf=pa(x({},eu,{key:function(n){if(n.key){var l=I0[n.key]||n.key;if(l!=="Unidentified")return l}return n.type==="keypress"?(n=Dp(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?Fi[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_s,charCode:function(n){return n.type==="keypress"?Dp(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Dp(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}})),Fr=pa(x({},Bh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),ri=pa(x({},eu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_s})),Yi=pa(x({},Wo,{propertyName:0,elapsedTime:0,pseudoElement:0})),ml=pa(x({},Bh,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0})),Rp=pa(x({},Wo,{newState:0,oldState:0})),Af=[9,13,27,32],Ih=yo&&"CompositionEvent"in window,wr=null;yo&&"documentMode"in document&&(wr=document.documentMode);var v1=yo&&"TextEvent"in window&&!wr,Np=yo&&(!Ih||wr&&8<wr&&11>=wr),Cf=" ",gc=!1;function kp(n,l){switch(n){case"keyup":return Af.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qm(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var tu=!1;function mc(n,l){switch(n){case"compositionend":return Qm(l);case"keypress":return l.which!==32?null:(gc=!0,Cf);case"textInput":return n=l.data,n===Cf&&gc?null:n;default:return null}}function xf(n,l){if(tu)return n==="compositionend"||!Ih&&kp(n,l)?(n=Ym(),Op=jm=dn=null,tu=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return Np&&l.locale!=="ko"?null:l.data;default:return null}}var qh={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function zp(n){var l=n&&n.nodeName&&n.nodeName.toLowerCase();return l==="input"?!!qh[n.type]:l==="textarea"}function Wi(n,l,o,d){bs?cc?cc.push(d):cc=[d]:bs=d,l=Yr(l,"onChange"),0<l.length&&(o=new Ci("onChange","change",null,o,d),n.push({event:o,listeners:l}))}var nu=null,iu=null;function au(n){Md(n,0)}function ga(n){if(Tp(bf(n)))return n}function Gh(n,l){if(n==="change")return l}var yc=!1;if(yo){var jh;if(yo){var Up="oninput"in document;if(!Up){var Bp=document.createElement("div");Bp.setAttribute("oninput","return;"),Up=typeof Bp.oninput=="function"}jh=Up}else jh=!1;yc=jh&&(!document.documentMode||9<document.documentMode)}function Es(){nu&&(nu.detachEvent("onpropertychange",Pm),iu=nu=null)}function Pm(n){if(n.propertyName==="value"&&ga(iu)){var l=[];Wi(l,iu,n,Lp(n)),Gm(au,l)}}function Zm(n,l,o){n==="focusin"?(Es(),nu=l,iu=o,nu.attachEvent("onpropertychange",Pm)):n==="focusout"&&Es()}function Hp(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return ga(iu)}function yl(n,l){if(n==="click")return ga(l)}function Jm(n,l){if(n==="input"||n==="change")return ga(l)}function q0(n,l){return n===l&&(n!==0||1/n===1/l)||n!==n&&l!==l}var Oa=typeof Object.is=="function"?Object.is:q0;function ma(n,l){if(Oa(n,l))return!0;if(typeof n!="object"||n===null||typeof l!="object"||l===null)return!1;var o=Object.keys(n),d=Object.keys(l);if(o.length!==d.length)return!1;for(d=0;d<o.length;d++){var b=o[d];if(!kt.call(l,b)||!Oa(n[b],l[b]))return!1}return!0}function Da(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Lf(n,l){var o=Da(n);n=0;for(var d;o;){if(o.nodeType===3){if(d=n+o.textContent.length,n<=l&&d>=l)return{node:o,offset:l-n};n=d}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Da(o)}}function Ip(n,l){return n&&l?n===l?!0:n&&n.nodeType===3?!1:l&&l.nodeType===3?Ip(n,l.parentNode):"contains"in n?n.contains(l):n.compareDocumentPosition?!!(n.compareDocumentPosition(l)&16):!1:!1}function qp(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var l=Ef(n.document);l instanceof n.HTMLIFrameElement;){try{var o=typeof l.contentWindow.location.href=="string"}catch{o=!1}if(o)n=l.contentWindow;else break;l=Ef(n.document)}return l}function Gp(n){var l=n&&n.nodeName&&n.nodeName.toLowerCase();return l&&(l==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||l==="textarea"||n.contentEditable==="true")}var vc=yo&&"documentMode"in document&&11>=document.documentMode,bi=null,Ss=null,Of=null,Df=!1;function vo(n,l,o){var d=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Df||bi==null||bi!==Ef(d)||(d=bi,"selectionStart"in d&&Gp(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Of&&ma(Of,d)||(Of=d,d=Yr(Ss,"onSelect"),0<d.length&&(l=new Ci("onSelect","select",null,l,o),n.push({event:l,listeners:d}),l.target=bi)))}function ru(n,l){var o={};return o[n.toLowerCase()]=l.toLowerCase(),o["Webkit"+n]="webkit"+l,o["Moz"+n]="moz"+l,o}var Ar={animationend:ru("Animation","AnimationEnd"),animationiteration:ru("Animation","AnimationIteration"),animationstart:ru("Animation","AnimationStart"),transitionrun:ru("Transition","TransitionRun"),transitionstart:ru("Transition","TransitionStart"),transitioncancel:ru("Transition","TransitionCancel"),transitionend:ru("Transition","TransitionEnd")},_e={},qe={};yo&&(qe=document.createElement("div").style,"AnimationEvent"in window||(delete Ar.animationend.animation,delete Ar.animationiteration.animation,delete Ar.animationstart.animation),"TransitionEvent"in window||delete Ar.transitionend.transition);function Ne(n){if(_e[n])return _e[n];if(!Ar[n])return n;var l=Ar[n],o;for(o in l)if(l.hasOwnProperty(o)&&o in qe)return _e[n]=l[o];return n}var lt=Ne("animationend"),Lt=Ne("animationiteration"),cn=Ne("animationstart"),Fn=Ne("transitionrun"),fn=Ne("transitionstart"),Yh=Ne("transitioncancel"),jp=Ne("transitionend"),ya=new Map,bo="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");bo.push("scrollEnd");function Ma(n,l){ya.set(n,l),Fo(l,[n])}var mn=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(l))return}else if(typeof Ki=="object"&&typeof Ki.emit=="function"){Ki.emit("uncaughtException",n);return}console.error(n)},va=[],Ts=0,pn=0;function ws(){for(var n=Ts,l=pn=Ts=0;l<n;){var o=va[l];va[l++]=null;var d=va[l];va[l++]=null;var b=va[l];va[l++]=null;var A=va[l];if(va[l++]=null,d!==null&&b!==null){var z=d.pending;z===null?b.next=b:(b.next=z.next,z.next=b),d.pending=b}A!==0&&As(o,b,A)}}function _o(n,l,o,d){va[Ts++]=n,va[Ts++]=l,va[Ts++]=o,va[Ts++]=d,pn|=d,n.lanes|=d,n=n.alternate,n!==null&&(n.lanes|=d)}function fr(n,l,o,d){return _o(n,l,o,d),_c(n)}function bc(n,l){return _o(n,null,null,l),_c(n)}function As(n,l,o){n.lanes|=o;var d=n.alternate;d!==null&&(d.lanes|=o);for(var b=!1,A=n.return;A!==null;)A.childLanes|=o,d=A.alternate,d!==null&&(d.childLanes|=o),A.tag===22&&(n=A.stateNode,n===null||n._visibility&1||(b=!0)),n=A,A=A.return;return n.tag===3?(A=n.stateNode,b&&l!==null&&(b=31-pt(o),n=A.hiddenUpdates,d=n[b],d===null?n[b]=[l]:d.push(l),l.lane=o|536870912),A):null}function _c(n){if(50<th)throw th=0,zn=null,Error(h(185));for(var l=n.return;l!==null;)n=l,l=n.return;return n.tag===3?n.stateNode:null}var Wr={};function zl(n,l,o,d){this.tag=n,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Gn(n,l,o,d){return new zl(n,l,o,d)}function Ya(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Ni(n,l){var o=n.alternate;return o===null?(o=Gn(n.tag,l,n.key,n.mode),o.elementType=n.elementType,o.type=n.type,o.stateNode=n.stateNode,o.alternate=n,n.alternate=o):(o.pendingProps=l,o.type=n.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=n.flags&65011712,o.childLanes=n.childLanes,o.lanes=n.lanes,o.child=n.child,o.memoizedProps=n.memoizedProps,o.memoizedState=n.memoizedState,o.updateQueue=n.updateQueue,l=n.dependencies,o.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},o.sibling=n.sibling,o.index=n.index,o.ref=n.ref,o.refCleanup=n.refCleanup,o}function vl(n,l){n.flags&=65011714;var o=n.alternate;return o===null?(n.childLanes=0,n.lanes=l,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=o.childLanes,n.lanes=o.lanes,n.child=o.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=o.memoizedProps,n.memoizedState=o.memoizedState,n.updateQueue=o.updateQueue,n.type=o.type,l=o.dependencies,n.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),n}function Cr(n,l,o,d,b,A){var z=0;if(d=n,typeof n=="function")Ya(n)&&(z=1);else if(typeof n=="string")z=Nu(n,o,Ie.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case re:return n=Gn(31,o,l,b),n.elementType=re,n.lanes=A,n;case P:return ea(o.children,b,A,l);case te:z=8,b|=24;break;case pe:return n=Gn(12,o,l,b|2),n.elementType=pe,n.lanes=A,n;case Re:return n=Gn(13,o,l,b),n.elementType=Re,n.lanes=A,n;case Je:return n=Gn(19,o,l,b),n.elementType=Je,n.lanes=A,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case Se:z=10;break e;case Te:z=9;break e;case Fe:z=11;break e;case Be:z=14;break e;case W:z=16,d=null;break e}z=29,o=Error(h(130,n===null?"null":typeof n,"")),d=null}return l=Gn(z,o,l,b),l.elementType=n,l.type=d,l.lanes=A,l}function ea(n,l,o,d){return n=Gn(7,n,d,l),n.lanes=o,n}function Mf(n,l,o){return n=Gn(6,n,null,l),n.lanes=o,n}function lu(n){var l=Gn(18,null,null,0);return l.stateNode=n,l}function Cs(n,l,o){return l=Gn(4,n.children!==null?n.children:[],n.key,l),l.lanes=o,l.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},l}var xr=new WeakMap;function el(n,l){if(typeof n=="object"&&n!==null){var o=xr.get(n);return o!==void 0?o:(l={value:n,source:l,stack:ho(l)},xr.set(n,l),l)}return{value:n,source:l,stack:ho(l)}}var hr=[],xs=0,Ec=null,Eo=0,Lr=[],Or=0,bl=null,Ul=1,Bl="";function jn(n,l){hr[xs++]=Eo,hr[xs++]=Ec,Ec=n,Eo=l}function ba(n,l,o){Lr[Or++]=Ul,Lr[Or++]=Bl,Lr[Or++]=bl,bl=n;var d=Ul;n=Bl;var b=32-pt(d)-1;d&=~(1<<b),o+=1;var A=32-pt(l)+b;if(30<A){var z=b-b%5;A=(d&(1<<z)-1).toString(32),d>>=z,b-=z,Ul=1<<32-pt(l)+b|o<<b|d,Bl=A+n}else Ul=1<<A|o<<b|d,Bl=n}function Ls(n){n.return!==null&&(jn(n,1),ba(n,1,0))}function Yp(n){for(;n===Ec;)Ec=hr[--xs],hr[xs]=null,Eo=hr[--xs],hr[xs]=null;for(;n===bl;)bl=Lr[--Or],Lr[Or]=null,Bl=Lr[--Or],Lr[Or]=null,Ul=Lr[--Or],Lr[Or]=null}function Vp(n,l){Lr[Or++]=Ul,Lr[Or++]=Bl,Lr[Or++]=bl,Ul=l.id,Bl=l.overflow,bl=n}var yn=null,qn=null,Yt=!1,tl=null,ki=!1,su=Error(h(519));function dr(n){throw Nf(el(Error(h(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML","")),n)),su}function Rf(n){var l=n.stateNode,o=n.type,d=n.memoizedProps;switch(l[In]=n,l[cr]=d,o){case"dialog":Xt("cancel",l),Xt("close",l);break;case"iframe":case"object":case"embed":Xt("load",l);break;case"video":case"audio":for(o=0;o<lh.length;o++)Xt(lh[o],l);break;case"source":Xt("error",l);break;case"img":case"image":case"link":Xt("error",l),Xt("load",l);break;case"details":Xt("toggle",l);break;case"input":Xt("invalid",l),uc(l,d.value,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name,!0);break;case"select":Xt("invalid",l);break;case"textarea":Xt("invalid",l),Ap(l,d.value,d.defaultValue,d.children)}o=d.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||l.textContent===""+o||d.suppressHydrationWarning===!0||Rd(l.textContent,o)?(d.popover!=null&&(Xt("beforetoggle",l),Xt("toggle",l)),d.onScroll!=null&&Xt("scroll",l),d.onScrollEnd!=null&&Xt("scrollend",l),d.onClick!=null&&(l.onclick=pl),l=!0):l=!1,l||dr(n,!0)}function Os(n){for(yn=n.return;yn;)switch(yn.tag){case 5:case 31:case 13:ki=!1;return;case 27:case 3:ki=!0;return;default:yn=yn.return}}function Sc(n){if(n!==yn)return!1;if(!Yt)return Os(n),Yt=!0,!1;var l=n.tag,o;if((o=l!==3&&l!==27)&&((o=l===5)&&(o=n.type,o=!(o!=="form"&&o!=="button")||Ng(n.type,n.memoizedProps)),o=!o),o&&qn&&dr(n),Os(n),l===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(h(317));qn=kd(n)}else if(l===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(h(317));qn=kd(n)}else l===27?(l=qn,qi(n.type)?(n=mr,mr=null,qn=n):qn=l):qn=yn?Aa(n.stateNode.nextSibling):null;return!0}function Ds(){qn=yn=null,Yt=!1}function $p(){var n=tl;return n!==null&&(za===null?za=n:za.push.apply(za,n),tl=null),n}function Nf(n){tl===null?tl=[n]:tl.push(n)}var Vh=F(null),_l=null,Vi=null;function Va(n,l,o){He(Vh,l._currentValue),l._currentValue=o}function j(n){n._currentValue=Vh.current,ze(Vh)}function Hl(n,l,o){for(;n!==null;){var d=n.alternate;if((n.childLanes&l)!==l?(n.childLanes|=l,d!==null&&(d.childLanes|=l)):d!==null&&(d.childLanes&l)!==l&&(d.childLanes|=l),n===o)break;n=n.return}}function Ms(n,l,o,d){var b=n.child;for(b!==null&&(b.return=n);b!==null;){var A=b.dependencies;if(A!==null){var z=b.child;A=A.firstContext;e:for(;A!==null;){var V=A;A=b;for(var oe=0;oe<l.length;oe++)if(V.context===l[oe]){A.lanes|=o,V=A.alternate,V!==null&&(V.lanes|=o),Hl(A.return,o,n),d||(z=null);break e}A=V.next}}else if(b.tag===18){if(z=b.return,z===null)throw Error(h(341));z.lanes|=o,A=z.alternate,A!==null&&(A.lanes|=o),Hl(z,o,n),z=null}else z=b.child;if(z!==null)z.return=b;else for(z=b;z!==null;){if(z===n){z=null;break}if(b=z.sibling,b!==null){b.return=z.return,z=b;break}z=z.return}b=z}}function zi(n,l,o,d){n=null;for(var b=l,A=!1;b!==null;){if(!A){if((b.flags&524288)!==0)A=!0;else if((b.flags&262144)!==0)break}if(b.tag===10){var z=b.alternate;if(z===null)throw Error(h(387));if(z=z.memoizedProps,z!==null){var V=b.type;Oa(b.pendingProps.value,z.value)||(n!==null?n.push(V):n=[V])}}else if(b===At.current){if(z=b.alternate,z===null)throw Error(h(387));z.memoizedState.memoizedState!==b.memoizedState.memoizedState&&(n!==null?n.push(yh):n=[yh])}b=b.return}n!==null&&Ms(l,n,o,d),l.flags|=262144}function Zt(n){for(n=n.firstContext;n!==null;){if(!Oa(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function Tc(n){_l=n,Vi=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function _a(n){return Rs(_l,n)}function $h(n,l){return _l===null&&Tc(n),Rs(n,l)}function Rs(n,l){var o=l._currentValue;if(l={context:l,memoizedValue:o,next:null},Vi===null){if(n===null)throw Error(h(308));Vi=l,n.dependencies={lanes:0,firstContext:l},n.flags|=524288}else Vi=Vi.next=l;return o}var Km=typeof AbortController<"u"?AbortController:function(){var n=[],l=this.signal={aborted:!1,addEventListener:function(o,d){n.push(d)}};this.abort=function(){l.aborted=!0,n.forEach(function(o){return o()})}},ou=a.unstable_scheduleCallback,Fm=a.unstable_NormalPriority,Ui={$$typeof:Se,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ns(){return{controller:new Km,data:new Map,refCount:0}}function li(n){n.refCount--,n.refCount===0&&ou(Fm,function(){n.controller.abort()})}var uu=null,Vt=0,Ke=0,Il=null;function Xp(n,l){if(uu===null){var o=uu=[];Vt=0,Ke=By(),Il={status:"pending",value:void 0,then:function(d){o.push(d)}}}return Vt++,l.then(Ln,Ln),l}function Ln(){if(--Vt===0&&uu!==null){Il!==null&&(Il.status="fulfilled");var n=uu;uu=null,Ke=0,Il=null;for(var l=0;l<n.length;l++)(0,n[l])()}}function Wm(n,l){var o=[],d={status:"pending",value:null,reason:null,then:function(b){o.push(b)}};return n.then(function(){d.status="fulfilled",d.value=l;for(var b=0;b<o.length;b++)(0,o[b])(l)},function(b){for(d.status="rejected",d.reason=b,b=0;b<o.length;b++)(0,o[b])(void 0)}),d}var Qp=X.S;X.S=function(n,l){Eg=Cn(),typeof l=="object"&&l!==null&&typeof l.then=="function"&&Xp(n,l),Qp!==null&&Qp(n,l)};var cu=F(null);function Xh(){var n=cu.current;return n!==null?n:ln.pooledCache}function Pp(n,l){l===null?He(cu,cu.current):He(cu,l.pool)}function ks(){var n=Xh();return n===null?null:{parent:Ui._currentValue,pool:n}}var fu=Error(h(460)),Qh=Error(h(474)),Yn=Error(h(542)),vn={then:function(){}};function Ph(n){return n=n.status,n==="fulfilled"||n==="rejected"}function kf(n,l,o){switch(o=n[o],o===void 0?n.push(l):o!==l&&(l.then(pl,pl),l=o),l.status){case"fulfilled":return l.value;case"rejected":throw n=l.reason,Zh(n),n;default:if(typeof l.status=="string")l.then(pl,pl);else{if(n=ln,n!==null&&100<n.shellSuspendCounter)throw Error(h(482));n=l,n.status="pending",n.then(function(d){if(l.status==="pending"){var b=l;b.status="fulfilled",b.value=d}},function(d){if(l.status==="pending"){var b=l;b.status="rejected",b.reason=d}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw n=l.reason,Zh(n),n}throw nl=l,fu}}function Dr(n){try{var l=n._init;return l(n._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(nl=o,fu):o}}var nl=null;function il(){if(nl===null)throw Error(h(459));var n=nl;return nl=null,n}function Zh(n){if(n===fu||n===Yn)throw Error(h(483))}var ql=null,wc=0;function zs(n){var l=wc;return wc+=1,ql===null&&(ql=[]),kf(ql,n,l)}function Gl(n,l){l=l.props.ref,n.ref=l!==void 0?l:null}function Us(n,l){throw l.$$typeof===D?Error(h(525)):(n=Object.prototype.toString.call(l),Error(h(31,n==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":n)))}function ey(n){function l(Ee,he){if(n){var xe=Ee.deletions;xe===null?(Ee.deletions=[he],Ee.flags|=16):xe.push(he)}}function o(Ee,he){if(!n)return null;for(;he!==null;)l(Ee,he),he=he.sibling;return null}function d(Ee){for(var he=new Map;Ee!==null;)Ee.key!==null?he.set(Ee.key,Ee):he.set(Ee.index,Ee),Ee=Ee.sibling;return he}function b(Ee,he){return Ee=Ni(Ee,he),Ee.index=0,Ee.sibling=null,Ee}function A(Ee,he,xe){return Ee.index=xe,n?(xe=Ee.alternate,xe!==null?(xe=xe.index,xe<he?(Ee.flags|=67108866,he):xe):(Ee.flags|=67108866,he)):(Ee.flags|=1048576,he)}function z(Ee){return n&&Ee.alternate===null&&(Ee.flags|=67108866),Ee}function V(Ee,he,xe,Ve){return he===null||he.tag!==6?(he=Mf(xe,Ee.mode,Ve),he.return=Ee,he):(he=b(he,xe),he.return=Ee,he)}function oe(Ee,he,xe,Ve){var yt=xe.type;return yt===P?je(Ee,he,xe.props.children,Ve,xe.key):he!==null&&(he.elementType===yt||typeof yt=="object"&&yt!==null&&yt.$$typeof===W&&Dr(yt)===he.type)?(he=b(he,xe.props),Gl(he,xe),he.return=Ee,he):(he=Cr(xe.type,xe.key,xe.props,null,Ee.mode,Ve),Gl(he,xe),he.return=Ee,he)}function Le(Ee,he,xe,Ve){return he===null||he.tag!==4||he.stateNode.containerInfo!==xe.containerInfo||he.stateNode.implementation!==xe.implementation?(he=Cs(xe,Ee.mode,Ve),he.return=Ee,he):(he=b(he,xe.children||[]),he.return=Ee,he)}function je(Ee,he,xe,Ve,yt){return he===null||he.tag!==7?(he=ea(xe,Ee.mode,Ve,yt),he.return=Ee,he):(he=b(he,xe),he.return=Ee,he)}function Qe(Ee,he,xe){if(typeof he=="string"&&he!==""||typeof he=="number"||typeof he=="bigint")return he=Mf(""+he,Ee.mode,xe),he.return=Ee,he;if(typeof he=="object"&&he!==null){switch(he.$$typeof){case B:return xe=Cr(he.type,he.key,he.props,null,Ee.mode,xe),Gl(xe,he),xe.return=Ee,xe;case G:return he=Cs(he,Ee.mode,xe),he.return=Ee,he;case W:return he=Dr(he),Qe(Ee,he,xe)}if($(he)||ue(he))return he=ea(he,Ee.mode,xe,null),he.return=Ee,he;if(typeof he.then=="function")return Qe(Ee,zs(he),xe);if(he.$$typeof===Se)return Qe(Ee,$h(Ee,he),xe);Us(Ee,he)}return null}function Oe(Ee,he,xe,Ve){var yt=he!==null?he.key:null;if(typeof xe=="string"&&xe!==""||typeof xe=="number"||typeof xe=="bigint")return yt!==null?null:V(Ee,he,""+xe,Ve);if(typeof xe=="object"&&xe!==null){switch(xe.$$typeof){case B:return xe.key===yt?oe(Ee,he,xe,Ve):null;case G:return xe.key===yt?Le(Ee,he,xe,Ve):null;case W:return xe=Dr(xe),Oe(Ee,he,xe,Ve)}if($(xe)||ue(xe))return yt!==null?null:je(Ee,he,xe,Ve,null);if(typeof xe.then=="function")return Oe(Ee,he,zs(xe),Ve);if(xe.$$typeof===Se)return Oe(Ee,he,$h(Ee,xe),Ve);Us(Ee,xe)}return null}function Ue(Ee,he,xe,Ve,yt){if(typeof Ve=="string"&&Ve!==""||typeof Ve=="number"||typeof Ve=="bigint")return Ee=Ee.get(xe)||null,V(he,Ee,""+Ve,yt);if(typeof Ve=="object"&&Ve!==null){switch(Ve.$$typeof){case B:return Ee=Ee.get(Ve.key===null?xe:Ve.key)||null,oe(he,Ee,Ve,yt);case G:return Ee=Ee.get(Ve.key===null?xe:Ve.key)||null,Le(he,Ee,Ve,yt);case W:return Ve=Dr(Ve),Ue(Ee,he,xe,Ve,yt)}if($(Ve)||ue(Ve))return Ee=Ee.get(xe)||null,je(he,Ee,Ve,yt,null);if(typeof Ve.then=="function")return Ue(Ee,he,xe,zs(Ve),yt);if(Ve.$$typeof===Se)return Ue(Ee,he,xe,$h(he,Ve),yt);Us(he,Ve)}return null}function dt(Ee,he,xe,Ve){for(var yt=null,An=null,gt=he,It=he=0,Ft=null;gt!==null&&It<xe.length;It++){gt.index>It?(Ft=gt,gt=null):Ft=gt.sibling;var bn=Oe(Ee,gt,xe[It],Ve);if(bn===null){gt===null&&(gt=Ft);break}n&&gt&&bn.alternate===null&&l(Ee,gt),he=A(bn,he,It),An===null?yt=bn:An.sibling=bn,An=bn,gt=Ft}if(It===xe.length)return o(Ee,gt),Yt&&jn(Ee,It),yt;if(gt===null){for(;It<xe.length;It++)gt=Qe(Ee,xe[It],Ve),gt!==null&&(he=A(gt,he,It),An===null?yt=gt:An.sibling=gt,An=gt);return Yt&&jn(Ee,It),yt}for(gt=d(gt);It<xe.length;It++)Ft=Ue(gt,Ee,It,xe[It],Ve),Ft!==null&&(n&&Ft.alternate!==null&&gt.delete(Ft.key===null?It:Ft.key),he=A(Ft,he,It),An===null?yt=Ft:An.sibling=Ft,An=Ft);return n&&gt.forEach(function(Io){return l(Ee,Io)}),Yt&&jn(Ee,It),yt}function St(Ee,he,xe,Ve){if(xe==null)throw Error(h(151));for(var yt=null,An=null,gt=he,It=he=0,Ft=null,bn=xe.next();gt!==null&&!bn.done;It++,bn=xe.next()){gt.index>It?(Ft=gt,gt=null):Ft=gt.sibling;var Io=Oe(Ee,gt,bn.value,Ve);if(Io===null){gt===null&&(gt=Ft);break}n&&gt&&Io.alternate===null&&l(Ee,gt),he=A(Io,he,It),An===null?yt=Io:An.sibling=Io,An=Io,gt=Ft}if(bn.done)return o(Ee,gt),Yt&&jn(Ee,It),yt;if(gt===null){for(;!bn.done;It++,bn=xe.next())bn=Qe(Ee,bn.value,Ve),bn!==null&&(he=A(bn,he,It),An===null?yt=bn:An.sibling=bn,An=bn);return Yt&&jn(Ee,It),yt}for(gt=d(gt);!bn.done;It++,bn=xe.next())bn=Ue(gt,Ee,It,bn.value,Ve),bn!==null&&(n&&bn.alternate!==null&&gt.delete(bn.key===null?It:bn.key),he=A(bn,he,It),An===null?yt=bn:An.sibling=bn,An=bn);return n&&gt.forEach(function(x1){return l(Ee,x1)}),Yt&&jn(Ee,It),yt}function Un(Ee,he,xe,Ve){if(typeof xe=="object"&&xe!==null&&xe.type===P&&xe.key===null&&(xe=xe.props.children),typeof xe=="object"&&xe!==null){switch(xe.$$typeof){case B:e:{for(var yt=xe.key;he!==null;){if(he.key===yt){if(yt=xe.type,yt===P){if(he.tag===7){o(Ee,he.sibling),Ve=b(he,xe.props.children),Ve.return=Ee,Ee=Ve;break e}}else if(he.elementType===yt||typeof yt=="object"&&yt!==null&&yt.$$typeof===W&&Dr(yt)===he.type){o(Ee,he.sibling),Ve=b(he,xe.props),Gl(Ve,xe),Ve.return=Ee,Ee=Ve;break e}o(Ee,he);break}else l(Ee,he);he=he.sibling}xe.type===P?(Ve=ea(xe.props.children,Ee.mode,Ve,xe.key),Ve.return=Ee,Ee=Ve):(Ve=Cr(xe.type,xe.key,xe.props,null,Ee.mode,Ve),Gl(Ve,xe),Ve.return=Ee,Ee=Ve)}return z(Ee);case G:e:{for(yt=xe.key;he!==null;){if(he.key===yt)if(he.tag===4&&he.stateNode.containerInfo===xe.containerInfo&&he.stateNode.implementation===xe.implementation){o(Ee,he.sibling),Ve=b(he,xe.children||[]),Ve.return=Ee,Ee=Ve;break e}else{o(Ee,he);break}else l(Ee,he);he=he.sibling}Ve=Cs(xe,Ee.mode,Ve),Ve.return=Ee,Ee=Ve}return z(Ee);case W:return xe=Dr(xe),Un(Ee,he,xe,Ve)}if($(xe))return dt(Ee,he,xe,Ve);if(ue(xe)){if(yt=ue(xe),typeof yt!="function")throw Error(h(150));return xe=yt.call(xe),St(Ee,he,xe,Ve)}if(typeof xe.then=="function")return Un(Ee,he,zs(xe),Ve);if(xe.$$typeof===Se)return Un(Ee,he,$h(Ee,xe),Ve);Us(Ee,xe)}return typeof xe=="string"&&xe!==""||typeof xe=="number"||typeof xe=="bigint"?(xe=""+xe,he!==null&&he.tag===6?(o(Ee,he.sibling),Ve=b(he,xe),Ve.return=Ee,Ee=Ve):(o(Ee,he),Ve=Mf(xe,Ee.mode,Ve),Ve.return=Ee,Ee=Ve),z(Ee)):o(Ee,he)}return function(Ee,he,xe,Ve){try{wc=0;var yt=Un(Ee,he,xe,Ve);return ql=null,yt}catch(gt){if(gt===fu||gt===Yn)throw gt;var An=Gn(29,gt,null,Ee.mode);return An.lanes=Ve,An.return=Ee,An}}}var So=ey(!0),ty=ey(!1),Ea=!1;function zf(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function jl(n,l){n=n.updateQueue,l.updateQueue===n&&(l.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function Bi(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Bs(n,l,o){var d=n.updateQueue;if(d===null)return null;if(d=d.shared,(On&2)!==0){var b=d.pending;return b===null?l.next=l:(l.next=b.next,b.next=l),d.pending=l,l=_c(n),As(n,null,o),l}return _o(n,d,l,o),_c(n)}function Ac(n,l,o){if(l=l.updateQueue,l!==null&&(l=l.shared,(o&4194048)!==0)){var d=l.lanes;d&=n.pendingLanes,o|=d,l.lanes=o,ds(n,o)}}function Jh(n,l){var o=n.updateQueue,d=n.alternate;if(d!==null&&(d=d.updateQueue,o===d)){var b=null,A=null;if(o=o.firstBaseUpdate,o!==null){do{var z={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};A===null?b=A=z:A=A.next=z,o=o.next}while(o!==null);A===null?b=A=l:A=A.next=l}else b=A=l;o={baseState:d.baseState,firstBaseUpdate:b,lastBaseUpdate:A,shared:d.shared,callbacks:d.callbacks},n.updateQueue=o;return}n=o.lastBaseUpdate,n===null?o.firstBaseUpdate=l:n.next=l,o.lastBaseUpdate=l}var hu=!1;function El(){if(hu){var n=Il;if(n!==null)throw n}}function Cc(n,l,o,d){hu=!1;var b=n.updateQueue;Ea=!1;var A=b.firstBaseUpdate,z=b.lastBaseUpdate,V=b.shared.pending;if(V!==null){b.shared.pending=null;var oe=V,Le=oe.next;oe.next=null,z===null?A=Le:z.next=Le,z=oe;var je=n.alternate;je!==null&&(je=je.updateQueue,V=je.lastBaseUpdate,V!==z&&(V===null?je.firstBaseUpdate=Le:V.next=Le,je.lastBaseUpdate=oe))}if(A!==null){var Qe=b.baseState;z=0,je=Le=oe=null,V=A;do{var Oe=V.lane&-536870913,Ue=Oe!==V.lane;if(Ue?(sn&Oe)===Oe:(d&Oe)===Oe){Oe!==0&&Oe===Ke&&(hu=!0),je!==null&&(je=je.next={lane:0,tag:V.tag,payload:V.payload,callback:null,next:null});e:{var dt=n,St=V;Oe=l;var Un=o;switch(St.tag){case 1:if(dt=St.payload,typeof dt=="function"){Qe=dt.call(Un,Qe,Oe);break e}Qe=dt;break e;case 3:dt.flags=dt.flags&-65537|128;case 0:if(dt=St.payload,Oe=typeof dt=="function"?dt.call(Un,Qe,Oe):dt,Oe==null)break e;Qe=x({},Qe,Oe);break e;case 2:Ea=!0}}Oe=V.callback,Oe!==null&&(n.flags|=64,Ue&&(n.flags|=8192),Ue=b.callbacks,Ue===null?b.callbacks=[Oe]:Ue.push(Oe))}else Ue={lane:Oe,tag:V.tag,payload:V.payload,callback:V.callback,next:null},je===null?(Le=je=Ue,oe=Qe):je=je.next=Ue,z|=Oe;if(V=V.next,V===null){if(V=b.shared.pending,V===null)break;Ue=V,V=Ue.next,Ue.next=null,b.lastBaseUpdate=Ue,b.shared.pending=null}}while(!0);je===null&&(oe=Qe),b.baseState=oe,b.firstBaseUpdate=Le,b.lastBaseUpdate=je,A===null&&(b.shared.lanes=0),ko|=z,n.lanes=z,n.memoizedState=Qe}}function ny(n,l){if(typeof n!="function")throw Error(h(191,n));n.call(l)}function Uf(n,l){var o=n.callbacks;if(o!==null)for(n.callbacks=null,n=0;n<o.length;n++)ny(o[n],l)}var du=F(null),Bf=F(0);function ta(n,l){n=Qs,He(Bf,n),He(du,l),Qs=n|l.baseLanes}function Hs(){He(Bf,Qs),He(du,du.current)}function xc(){Qs=Bf.current,ze(du),ze(Bf)}var _i=F(null),Mr=null;function Rr(n){var l=n.alternate;He(oi,oi.current&1),He(_i,n),Mr===null&&(l===null||du.current!==null||l.memoizedState!==null)&&(Mr=n)}function Nr(n){He(oi,oi.current),He(_i,n),Mr===null&&(Mr=n)}function Kh(n){n.tag===22?(He(oi,oi.current),He(_i,n),Mr===null&&(Mr=n)):Vn(n)}function Vn(){He(oi,oi.current),He(_i,_i.current)}function $n(n){ze(_i),Mr===n&&(Mr=null),ze(oi)}var oi=F(0);function Zp(n){for(var l=n;l!==null;){if(l.tag===13){var o=l.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||Hg(o)||Vr(o)))return l}else if(l.tag===19&&(l.memoizedProps.revealOrder==="forwards"||l.memoizedProps.revealOrder==="backwards"||l.memoizedProps.revealOrder==="unstable_legacy-backwards"||l.memoizedProps.revealOrder==="together")){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===n)break;for(;l.sibling===null;){if(l.return===null||l.return===n)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var Yl=0,Rt=null,kn=null,si=null,Lc=!1,To=!1,wo=!1,Vl=0,Oc=0,Ao=null,Fh=0;function ui(){throw Error(h(321))}function Jp(n,l){if(l===null)return!1;for(var o=0;o<l.length&&o<n.length;o++)if(!Oa(n[o],l[o]))return!1;return!0}function Wh(n,l,o,d,b,A){return Yl=A,Rt=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,X.H=n===null||n.memoizedState===null?sy:hd,wo=!1,A=o(d,b),wo=!1,To&&(A=Hf(l,o,d,b)),iy(n),A}function iy(n){X.H=fd;var l=kn!==null&&kn.next!==null;if(Yl=0,si=kn=Rt=null,Lc=!1,Oc=0,Ao=null,l)throw Error(h(300));n===null||xi||(n=n.dependencies,n!==null&&Zt(n)&&(xi=!0))}function Hf(n,l,o,d){Rt=n;var b=0;do{if(To&&(Ao=null),Oc=0,To=!1,25<=b)throw Error(h(301));if(b+=1,si=kn=null,n.updateQueue!=null){var A=n.updateQueue;A.lastEffect=null,A.events=null,A.stores=null,A.memoCache!=null&&(A.memoCache.index=0)}X.H=Ur,A=l(o,d)}while(To);return A}function Kp(){var n=X.H,l=n.useState()[0];return l=typeof l.then=="function"?$l(l):l,n=n.useState()[0],(kn!==null?kn.memoizedState:null)!==n&&(Rt.flags|=1024),l}function ed(){var n=Vl!==0;return Vl=0,n}function If(n,l,o){l.updateQueue=n.updateQueue,l.flags&=-2053,n.lanes&=~o}function td(n){if(Lc){for(n=n.memoizedState;n!==null;){var l=n.queue;l!==null&&(l.pending=null),n=n.next}Lc=!1}Yl=0,si=kn=Rt=null,To=!1,Oc=Vl=0,Ao=null}function Sa(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return si===null?Rt.memoizedState=si=n:si=si.next=n,si}function Ei(){if(kn===null){var n=Rt.alternate;n=n!==null?n.memoizedState:null}else n=kn.next;var l=si===null?Rt.memoizedState:si.next;if(l!==null)si=l,kn=n;else{if(n===null)throw Rt.alternate===null?Error(h(467)):Error(h(310));kn=n,n={memoizedState:kn.memoizedState,baseState:kn.baseState,baseQueue:kn.baseQueue,queue:kn.queue,next:null},si===null?Rt.memoizedState=si=n:si=si.next=n}return si}function pu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function $l(n){var l=Oc;return Oc+=1,Ao===null&&(Ao=[]),n=kf(Ao,n,l),l=Rt,(si===null?l.memoizedState:si.next)===null&&(l=l.alternate,X.H=l===null||l.memoizedState===null?sy:hd),n}function Dc(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return $l(n);if(n.$$typeof===Se)return _a(n)}throw Error(h(438,String(n)))}function qf(n){var l=null,o=Rt.updateQueue;if(o!==null&&(l=o.memoCache),l==null){var d=Rt.alternate;d!==null&&(d=d.updateQueue,d!==null&&(d=d.memoCache,d!=null&&(l={data:d.data.map(function(b){return b.slice()}),index:0})))}if(l??={data:[],index:0},o===null&&(o=pu(),Rt.updateQueue=o),o.memoCache=l,o=l.data[l.index],o===void 0)for(o=l.data[l.index]=Array(n),d=0;d<n;d++)o[d]=me;return l.index++,o}function Co(n,l){return typeof l=="function"?l(n):l}function nd(n){return Fp(Ei(),kn,n)}function Fp(n,l,o){var d=n.queue;if(d===null)throw Error(h(311));d.lastRenderedReducer=o;var b=n.baseQueue,A=d.pending;if(A!==null){if(b!==null){var z=b.next;b.next=A.next,A.next=z}l.baseQueue=b=A,d.pending=null}if(A=n.baseState,b===null)n.memoizedState=A;else{l=b.next;var V=z=null,oe=null,Le=l,je=!1;do{var Qe=Le.lane&-536870913;if(Qe!==Le.lane?(sn&Qe)===Qe:(Yl&Qe)===Qe){var Oe=Le.revertLane;if(Oe===0)oe!==null&&(oe=oe.next={lane:0,revertLane:0,gesture:null,action:Le.action,hasEagerState:Le.hasEagerState,eagerState:Le.eagerState,next:null}),Qe===Ke&&(je=!0);else if((Yl&Oe)===Oe){Le=Le.next,Oe===Ke&&(je=!0);continue}else Qe={lane:0,revertLane:Le.revertLane,gesture:null,action:Le.action,hasEagerState:Le.hasEagerState,eagerState:Le.eagerState,next:null},oe===null?(V=oe=Qe,z=A):oe=oe.next=Qe,Rt.lanes|=Oe,ko|=Oe;Qe=Le.action,wo&&o(A,Qe),A=Le.hasEagerState?Le.eagerState:o(A,Qe)}else Oe={lane:Qe,revertLane:Le.revertLane,gesture:Le.gesture,action:Le.action,hasEagerState:Le.hasEagerState,eagerState:Le.eagerState,next:null},oe===null?(V=oe=Oe,z=A):oe=oe.next=Oe,Rt.lanes|=Qe,ko|=Qe;Le=Le.next}while(Le!==null&&Le!==l);if(oe===null?z=A:oe.next=V,!Oa(A,n.memoizedState)&&(xi=!0,je&&(o=Il,o!==null)))throw o;n.memoizedState=A,n.baseState=z,n.baseQueue=oe,d.lastRenderedState=A}return b===null&&(d.lanes=0),[n.memoizedState,d.dispatch]}function xo(n){var l=Ei(),o=l.queue;if(o===null)throw Error(h(311));o.lastRenderedReducer=n;var d=o.dispatch,b=o.pending,A=l.memoizedState;if(b!==null){o.pending=null;var z=b=b.next;do A=n(A,z.action),z=z.next;while(z!==b);Oa(A,l.memoizedState)||(xi=!0),l.memoizedState=A,l.baseQueue===null&&(l.baseState=A),o.lastRenderedState=A}return[A,d]}function id(n,l,o){var d=Rt,b=Ei(),A=Yt;if(A){if(o===void 0)throw Error(h(407));o=o()}else o=l();var z=!Oa((kn||b).memoizedState,o);if(z&&(b.memoizedState=o,xi=!0),b=b.queue,yu(ad.bind(null,d,b,n),[n]),b.getSnapshot!==l||z||si!==null&&si.memoizedState.tag&1){if(d.flags|=2048,mu(9,{destroy:void 0},ay.bind(null,d,b,o,l),null),ln===null)throw Error(h(349));A||(Yl&127)!==0||Mc(d,l,o)}return o}function Mc(n,l,o){n.flags|=16384,n={getSnapshot:l,value:o},l=Rt.updateQueue,l===null?(l=pu(),Rt.updateQueue=l,l.stores=[n]):(o=l.stores,o===null?l.stores=[n]:o.push(n))}function ay(n,l,o,d){l.value=o,l.getSnapshot=d,$t(l)&&Wp(n)}function ad(n,l,o){return o(function(){$t(l)&&Wp(n)})}function $t(n){var l=n.getSnapshot;n=n.value;try{var o=l();return!Oa(n,o)}catch{return!0}}function Wp(n){var l=bc(n,2);l!==null&&Gr(l,n,2)}function eg(n){var l=Sa();if(typeof n=="function"){var o=n;if(n=o(),wo){Ge(!0);try{o()}finally{Ge(!1)}}}return l.memoizedState=l.baseState=n,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Co,lastRenderedState:n},l}function Rc(n,l,o,d){return n.baseState=o,Fp(n,kn,typeof d=="function"?d:Co)}function gu(n,l,o,d,b){if(_u(n))throw Error(h(485));if(n=l.action,n!==null){var A={payload:b,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(z){A.listeners.push(z)}};X.T!==null?o(!0):A.isTransition=!1,d(A),o=l.pending,o===null?(A.next=l.pending=A,ry(l,A)):(A.next=o.next,l.pending=o.next=A)}}function ry(n,l){var o=l.action,d=l.payload,b=n.state;if(l.isTransition){var A=X.T,z={};X.T=z;try{var V=o(b,d),oe=X.S;oe!==null&&oe(z,V),ly(n,l,V)}catch(Le){Gf(n,l,Le)}finally{A!==null&&z.types!==null&&(A.types=z.types),X.T=A}}else try{A=o(b,d),ly(n,l,A)}catch(Le){Gf(n,l,Le)}}function ly(n,l,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(d){kr(n,l,d)},function(d){return Gf(n,l,d)}):kr(n,l,o)}function kr(n,l,o){l.status="fulfilled",l.value=o,jf(l),n.state=o,l=n.pending,l!==null&&(o=l.next,o===l?n.pending=null:(o=o.next,l.next=o,ry(n,o)))}function Gf(n,l,o){var d=n.pending;if(n.pending=null,d!==null){d=d.next;do l.status="rejected",l.reason=o,jf(l),l=l.next;while(l!==d)}n.action=null}function jf(n){n=n.listeners;for(var l=0;l<n.length;l++)(0,n[l])()}function Yf(n,l){return l}function rd(n,l){if(Yt){var o=ln.formState;if(o!==null){e:{var d=Rt;if(Yt){if(qn){t:{for(var b=qn,A=ki;b.nodeType!==8;){if(!A){b=null;break t}if(b=Aa(b.nextSibling),b===null){b=null;break t}}A=b.data,b=A==="F!"||A==="F"?b:null}if(b){qn=Aa(b.nextSibling),d=b.data==="F!";break e}}dr(d)}d=!1}d&&(l=o[0])}}return o=Sa(),o.memoizedState=o.baseState=l,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yf,lastRenderedState:l},o.queue=d,o=Ql.bind(null,Rt,d),d.dispatch=o,d=eg(!1),A=hg.bind(null,Rt,!1,d.queue),d=Sa(),b={state:l,dispatch:null,action:n,pending:null},d.queue=b,o=gu.bind(null,Rt,b,A,o),b.dispatch=o,d.memoizedState=n,[l,o,!1]}function ld(n){return zr(Ei(),kn,n)}function zr(n,l,o){if(l=Fp(n,l,Yf)[0],n=nd(Co)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var d=$l(l)}catch(z){throw z===fu?Yn:z}else d=l;l=Ei();var b=l.queue,A=b.dispatch;return o!==l.memoizedState&&(Rt.flags|=2048,mu(9,{destroy:void 0},ci.bind(null,b,o),null)),[d,A,n]}function ci(n,l){n.action=l}function sd(n){var l=Ei(),o=kn;if(o!==null)return zr(l,o,n);Ei(),l=l.memoizedState,o=Ei();var d=o.queue.dispatch;return o.memoizedState=n,[l,d,!1]}function mu(n,l,o,d){return n={tag:n,create:o,deps:d,inst:l,next:null},l=Rt.updateQueue,l===null&&(l=pu(),Rt.updateQueue=l),o=l.lastEffect,o===null?l.lastEffect=n.next=n:(d=o.next,o.next=n,n.next=d,l.lastEffect=n),n}function Vf(){return Ei().memoizedState}function $f(n,l,o,d){var b=Sa();Rt.flags|=n,b.memoizedState=mu(1|l,{destroy:void 0},o,d===void 0?null:d)}function Is(n,l,o,d){var b=Ei();d=d===void 0?null:d;var A=b.memoizedState.inst;kn!==null&&d!==null&&Jp(d,kn.memoizedState.deps)?b.memoizedState=mu(l,A,o,d):(Rt.flags|=n,b.memoizedState=mu(1|l,A,o,d))}function tg(n,l){$f(8390656,8,n,l)}function yu(n,l){Is(2048,8,n,l)}function ng(n){Rt.flags|=4;var l=Rt.updateQueue;if(l===null)l=pu(),Rt.updateQueue=l,l.events=[n];else{var o=l.events;o===null?l.events=[n]:o.push(n)}}function Lo(n){var l=Ei().memoizedState;return ng({ref:l,nextImpl:n}),function(){if((On&2)!==0)throw Error(h(440));return l.impl.apply(void 0,arguments)}}function od(n,l){return Is(4,2,n,l)}function Xl(n,l){return Is(4,4,n,l)}function ig(n,l){if(typeof l=="function"){n=n();var o=l(n);return function(){typeof o=="function"?o():l(null)}}if(l!=null)return n=n(),l.current=n,function(){l.current=null}}function ag(n,l,o){o=o!=null?o.concat([n]):null,Is(4,4,ig.bind(null,l,n),o)}function Xf(){}function rg(n,l){var o=Ei();l=l===void 0?null:l;var d=o.memoizedState;return l!==null&&Jp(l,d[1])?d[0]:(o.memoizedState=[n,l],n)}function lg(n,l){var o=Ei();l=l===void 0?null:l;var d=o.memoizedState;if(l!==null&&Jp(l,d[1]))return d[0];if(d=n(),wo){Ge(!0);try{n()}finally{Ge(!1)}}return o.memoizedState=[d,l],d}function ud(n,l,o){return o===void 0||(Yl&1073741824)!==0&&(sn&261930)===0?n.memoizedState=l:(n.memoizedState=o,n=wa(),Rt.lanes|=n,ko|=n,o)}function sg(n,l,o,d){return Oa(o,l)?o:du.current!==null?(n=ud(n,o,d),Oa(n,l)||(xi=!0),n):(Yl&42)===0||(Yl&1073741824)!==0&&(sn&261930)===0?(xi=!0,n.memoizedState=o):(n=wa(),Rt.lanes|=n,ko|=n,l)}function cd(n,l,o,d,b){var A=ee.p;ee.p=A!==0&&8>A?A:8;var z=X.T,V={};X.T=V,hg(n,!1,l,o);try{var oe=b(),Le=X.S;Le!==null&&Le(V,oe),oe!==null&&typeof oe=="object"&&typeof oe.then=="function"?bu(n,l,Wm(oe,d),gr(n)):bu(n,l,d,gr(n))}catch(je){bu(n,l,{then:function(){},status:"rejected",reason:je},gr())}finally{ee.p=A,z!==null&&V.types!==null&&(z.types=V.types),X.T=z}}function og(){}function Qf(n,l,o,d){if(n.tag!==5)throw Error(h(476));var b=ug(n).queue;cd(n,b,l,ye,o===null?og:function(){return Ra(n),o(d)})}function ug(n){var l=n.memoizedState;if(l!==null)return l;l={memoizedState:ye,baseState:ye,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Co,lastRenderedState:ye},next:null};var o={};return l.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Co,lastRenderedState:o},next:null},n.memoizedState=l,n=n.alternate,n!==null&&(n.memoizedState=l),l}function Ra(n){var l=ug(n);l.next===null&&(l=n.alternate.memoizedState),bu(n,l.next.queue,{},gr())}function al(){return _a(yh)}function qs(){return Ei().memoizedState}function cg(){return Ei().memoizedState}function fg(n){for(var l=n.return;l!==null;){switch(l.tag){case 24:case 3:var o=gr();n=Bi(o);var d=Bs(l,n,o);d!==null&&(Gr(d,l,o),Ac(d,l,o)),l={cache:Ns()},n.payload=l;return}l=l.return}}function vu(n,l,o){var d=gr();o={lane:d,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},_u(n)?Pl(l,o):(o=fr(n,l,o,d),o!==null&&(Gr(o,n,d),Sn(o,l,d)))}function Ql(n,l,o){bu(n,l,o,gr())}function bu(n,l,o,d){var b={lane:d,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(_u(n))Pl(l,b);else{var A=n.alternate;if(n.lanes===0&&(A===null||A.lanes===0)&&(A=l.lastRenderedReducer,A!==null))try{var z=l.lastRenderedState,V=A(z,o);if(b.hasEagerState=!0,b.eagerState=V,Oa(V,z))return _o(n,l,b,0),ln===null&&ws(),!1}catch{}if(o=fr(n,l,b,d),o!==null)return Gr(o,n,d),Sn(o,l,d),!0}return!1}function hg(n,l,o,d){if(d={lane:2,revertLane:By(),gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},_u(n)){if(l)throw Error(h(479))}else l=fr(n,o,d,2),l!==null&&Gr(l,n,2)}function _u(n){var l=n.alternate;return n===Rt||l!==null&&l===Rt}function Pl(n,l){To=Lc=!0;var o=n.pending;o===null?l.next=l:(l.next=o.next,o.next=l),n.pending=l}function Sn(n,l,o){if((o&4194048)!==0){var d=l.lanes;d&=n.pendingLanes,o|=d,l.lanes=o,ds(n,o)}}var fd={readContext:_a,use:Dc,useCallback:ui,useContext:ui,useEffect:ui,useImperativeHandle:ui,useLayoutEffect:ui,useInsertionEffect:ui,useMemo:ui,useReducer:ui,useRef:ui,useState:ui,useDebugValue:ui,useDeferredValue:ui,useTransition:ui,useSyncExternalStore:ui,useId:ui,useHostTransitionStatus:ui,useFormState:ui,useActionState:ui,useOptimistic:ui,useMemoCache:ui,useCacheRefresh:ui};fd.useEffectEvent=ui;var sy={readContext:_a,use:Dc,useCallback:function(n,l){return Sa().memoizedState=[n,l===void 0?null:l],n},useContext:_a,useEffect:tg,useImperativeHandle:function(n,l,o){o=o!=null?o.concat([n]):null,$f(4194308,4,ig.bind(null,l,n),o)},useLayoutEffect:function(n,l){return $f(4194308,4,n,l)},useInsertionEffect:function(n,l){$f(4,2,n,l)},useMemo:function(n,l){var o=Sa();l=l===void 0?null:l;var d=n();if(wo){Ge(!0);try{n()}finally{Ge(!1)}}return o.memoizedState=[d,l],d},useReducer:function(n,l,o){var d=Sa();if(o!==void 0){var b=o(l);if(wo){Ge(!0);try{o(l)}finally{Ge(!1)}}}else b=l;return d.memoizedState=d.baseState=b,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:b},d.queue=n,n=n.dispatch=vu.bind(null,Rt,n),[d.memoizedState,n]},useRef:function(n){var l=Sa();return n={current:n},l.memoizedState=n},useState:function(n){n=eg(n);var l=n.queue,o=Ql.bind(null,Rt,l);return l.dispatch=o,[n.memoizedState,o]},useDebugValue:Xf,useDeferredValue:function(n,l){return ud(Sa(),n,l)},useTransition:function(){var n=eg(!1);return n=cd.bind(null,Rt,n.queue,!0,!1),Sa().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,l,o){var d=Rt,b=Sa();if(Yt){if(o===void 0)throw Error(h(407));o=o()}else{if(o=l(),ln===null)throw Error(h(349));(sn&127)!==0||Mc(d,l,o)}b.memoizedState=o;var A={value:o,getSnapshot:l};return b.queue=A,tg(ad.bind(null,d,A,n),[n]),d.flags|=2048,mu(9,{destroy:void 0},ay.bind(null,d,A,o,l),null),o},useId:function(){var n=Sa(),l=ln.identifierPrefix;if(Yt){var o=Bl,d=Ul;o=(d&~(1<<32-pt(d)-1)).toString(32)+o,l="_"+l+"R_"+o,o=Vl++,0<o&&(l+="H"+o.toString(32)),l+="_"}else o=Fh++,l="_"+l+"r_"+o.toString(32)+"_";return n.memoizedState=l},useHostTransitionStatus:al,useFormState:rd,useActionState:rd,useOptimistic:function(n){var l=Sa();l.memoizedState=l.baseState=n;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=o,l=hg.bind(null,Rt,!0,o),o.dispatch=l,[n,l]},useMemoCache:qf,useCacheRefresh:function(){return Sa().memoizedState=fg.bind(null,Rt)},useEffectEvent:function(n){var l=Sa(),o={impl:n};return l.memoizedState=o,function(){if((On&2)!==0)throw Error(h(440));return o.impl.apply(void 0,arguments)}}},hd={readContext:_a,use:Dc,useCallback:rg,useContext:_a,useEffect:yu,useImperativeHandle:ag,useInsertionEffect:od,useLayoutEffect:Xl,useMemo:lg,useReducer:nd,useRef:Vf,useState:function(){return nd(Co)},useDebugValue:Xf,useDeferredValue:function(n,l){return sg(Ei(),kn.memoizedState,n,l)},useTransition:function(){var n=nd(Co)[0],l=Ei().memoizedState;return[typeof n=="boolean"?n:$l(n),l]},useSyncExternalStore:id,useId:qs,useHostTransitionStatus:al,useFormState:ld,useActionState:ld,useOptimistic:function(n,l){return Rc(Ei(),kn,n,l)},useMemoCache:qf,useCacheRefresh:cg};hd.useEffectEvent=Lo;var Ur={readContext:_a,use:Dc,useCallback:rg,useContext:_a,useEffect:yu,useImperativeHandle:ag,useInsertionEffect:od,useLayoutEffect:Xl,useMemo:lg,useReducer:xo,useRef:Vf,useState:function(){return xo(Co)},useDebugValue:Xf,useDeferredValue:function(n,l){var o=Ei();return kn===null?ud(o,n,l):sg(o,kn.memoizedState,n,l)},useTransition:function(){var n=xo(Co)[0],l=Ei().memoizedState;return[typeof n=="boolean"?n:$l(n),l]},useSyncExternalStore:id,useId:qs,useHostTransitionStatus:al,useFormState:sd,useActionState:sd,useOptimistic:function(n,l){var o=Ei();return kn!==null?Rc(o,kn,n,l):(o.baseState=n,[n,o.queue.dispatch])},useMemoCache:qf,useCacheRefresh:cg};Ur.useEffectEvent=Lo;function dd(n,l,o,d){l=n.memoizedState,o=o(d,l),o=o==null?l:x({},l,o),n.memoizedState=o,n.lanes===0&&(n.updateQueue.baseState=o)}var Eu={enqueueSetState:function(n,l,o){n=n._reactInternals;var d=gr(),b=Bi(d);b.payload=l,o!=null&&(b.callback=o),l=Bs(n,b,d),l!==null&&(Gr(l,n,d),Ac(l,n,d))},enqueueReplaceState:function(n,l,o){n=n._reactInternals;var d=gr(),b=Bi(d);b.tag=1,b.payload=l,o!=null&&(b.callback=o),l=Bs(n,b,d),l!==null&&(Gr(l,n,d),Ac(l,n,d))},enqueueForceUpdate:function(n,l){n=n._reactInternals;var o=gr(),d=Bi(o);d.tag=2,l!=null&&(d.callback=l),l=Bs(n,d,o),l!==null&&(Gr(l,n,o),Ac(l,n,o))}};function Su(n,l,o,d,b,A,z){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(d,A,z):l.prototype&&l.prototype.isPureReactComponent?!ma(o,d)||!ma(b,A):!0}function Gs(n,l,o,d){n=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(o,d),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(o,d),l.state!==n&&Eu.enqueueReplaceState(l,l.state,null)}function Tu(n,l){var o=l;if("ref"in l){o={};for(var d in l)d!=="ref"&&(o[d]=l[d])}if(n=n.defaultProps){o===l&&(o=x({},o));for(var b in n)o[b]===void 0&&(o[b]=n[b])}return o}function pd(n){mn(n)}function Pf(n){console.error(n)}function oy(n){mn(n)}function Zf(n,l){try{var o=n.onUncaughtError;o(l.value,{componentStack:l.stack})}catch(d){setTimeout(function(){throw d})}}function uy(n,l,o){try{var d=n.onCaughtError;d(o.value,{componentStack:o.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(b){setTimeout(function(){throw b})}}function dg(n,l,o){return o=Bi(o),o.tag=3,o.payload={element:null},o.callback=function(){Zf(n,l)},o}function Br(n){return n=Bi(n),n.tag=3,n}function Sl(n,l,o,d){var b=o.type.getDerivedStateFromError;if(typeof b=="function"){var A=d.value;n.payload=function(){return b(A)},n.callback=function(){uy(l,o,d)}}var z=o.stateNode;z!==null&&typeof z.componentDidCatch=="function"&&(n.callback=function(){uy(l,o,d),typeof b!="function"&&(Ou===null?Ou=new Set([this]):Ou.add(this));var V=d.stack;this.componentDidCatch(d.value,{componentStack:V!==null?V:""})})}function cy(n,l,o,d,b){if(o.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){if(l=o.alternate,l!==null&&zi(l,o,b,!0),o=_i.current,o!==null){switch(o.tag){case 31:case 13:return Mr===null?Cg():o.alternate===null&&fi===0&&(fi=3),o.flags&=-257,o.flags|=65536,o.lanes=b,d===vn?o.flags|=16384:(l=o.updateQueue,l===null?o.updateQueue=new Set([d]):l.add(d),Dd(n,d,b)),!1;case 22:return o.flags|=65536,d===vn?o.flags|=16384:(l=o.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([d])},o.updateQueue=l):(o=l.retryQueue,o===null?l.retryQueue=new Set([d]):o.add(d)),Dd(n,d,b)),!1}throw Error(h(435,o.tag))}return Dd(n,d,b),Cg(),!1}if(Yt)return l=_i.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=b,d!==su&&(n=Error(h(422),{cause:d}),Nf(el(n,o)))):(d!==su&&(l=Error(h(423),{cause:d}),Nf(el(l,o))),n=n.current.alternate,n.flags|=65536,b&=-b,n.lanes|=b,d=el(d,o),b=dg(n.stateNode,d,b),Jh(n,b),fi!==4&&(fi=2)),!1;var A=Error(h(520),{cause:d});if(A=el(A,o),jt===null?jt=[A]:jt.push(A),fi!==4&&(fi=2),l===null)return!0;d=el(d,o),o=l;do{switch(o.tag){case 3:return o.flags|=65536,n=b&-b,o.lanes|=n,n=dg(o.stateNode,d,n),Jh(o,n),!1;case 1:if(l=o.type,A=o.stateNode,(o.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||A!==null&&typeof A.componentDidCatch=="function"&&(Ou===null||!Ou.has(A))))return o.flags|=65536,b&=-b,o.lanes|=b,b=Br(b),Sl(b,n,o,d),Jh(o,b),!1}o=o.return}while(o!==null);return!1}var fy=Error(h(461)),xi=!1;function na(n,l,o,d){l.child=n===null?ty(l,null,o,d):So(l,n.child,o,d)}function hy(n,l,o,d,b){o=o.render;var A=l.ref;if("ref"in d){var z={};for(var V in d)V!=="ref"&&(z[V]=d[V])}else z=d;return Tc(l),d=Wh(n,l,o,z,A,b),V=ed(),n!==null&&!xi?(If(n,l,b),Tn(n,l,b)):(Yt&&V&&Ls(l),l.flags|=1,na(n,l,d,b),l.child)}function Tl(n,l,o,d,b){if(n===null){var A=o.type;return typeof A=="function"&&!Ya(A)&&A.defaultProps===void 0&&o.compare===null?(l.tag=15,l.type=A,Jf(n,l,A,d,b)):(n=Cr(o.type,null,d,l,l.mode,b),n.ref=l.ref,n.return=l,l.child=n)}if(A=n.child,!Uc(n,b)){var z=A.memoizedProps;if(o=o.compare,o=o!==null?o:ma,o(z,d)&&n.ref===l.ref)return Tn(n,l,b)}return l.flags|=1,n=Ni(A,d),n.ref=l.ref,n.return=l,l.child=n}function Jf(n,l,o,d,b){if(n!==null){var A=n.memoizedProps;if(ma(A,d)&&n.ref===l.ref)if(xi=!1,l.pendingProps=d=A,Uc(n,b))(n.flags&131072)!==0&&(xi=!0);else return l.lanes=n.lanes,Tn(n,l,b)}return Na(n,l,o,d,b)}function Nc(n,l,o,d){var b=d.children,A=n!==null?n.memoizedState:null;if(n===null&&l.stateNode===null&&(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),d.mode==="hidden"){if((l.flags&128)!==0){if(A=A!==null?A.baseLanes|o:o,n!==null){for(d=l.child=n.child,b=0;d!==null;)b=b|d.lanes|d.childLanes,d=d.sibling;d=b&~A}else d=0,l.child=null;return Kf(n,l,A,o,d)}if((o&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},n!==null&&Pp(l,A!==null?A.cachePool:null),A!==null?ta(l,A):Hs(),Kh(l);else return d=l.lanes=536870912,Kf(n,l,A!==null?A.baseLanes|o:o,o,d)}else A!==null?(Pp(l,A.cachePool),ta(l,A),Vn(l),l.memoizedState=null):(n!==null&&Pp(l,null),Hs(),Vn(l));return na(n,l,b,o),l.child}function kc(n,l){return n!==null&&n.tag===22||l.stateNode!==null||(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.sibling}function Kf(n,l,o,d,b){var A=Xh();return A=A===null?null:{parent:Ui._currentValue,pool:A},l.memoizedState={baseLanes:o,cachePool:A},n!==null&&Pp(l,null),Hs(),Kh(l),n!==null&&zi(n,l,d,!0),l.childLanes=b,null}function js(n,l){return l=Wf({mode:l.mode,children:l.children},n.mode),l.ref=n.ref,n.child=l,l.return=n,l}function Et(n,l,o){return So(l,n.child,null,o),n=js(l,l.pendingProps),n.flags|=2,$n(l),l.memoizedState=null,n}function gd(n,l,o){var d=l.pendingProps,b=(l.flags&128)!==0;if(l.flags&=-129,n===null){if(Yt){if(d.mode==="hidden")return n=js(l,d),l.lanes=536870912,kc(null,n);if(Nr(l),(n=qn)?(n=Vy(n,ki),n=n!==null&&n.data==="&"?n:null,n!==null&&(l.memoizedState={dehydrated:n,treeContext:bl!==null?{id:Ul,overflow:Bl}:null,retryLane:536870912,hydrationErrors:null},o=lu(n),o.return=l,l.child=o,yn=l,qn=null)):n=null,n===null)throw dr(l);return l.lanes=536870912,null}return js(l,d)}var A=n.memoizedState;if(A!==null){var z=A.dehydrated;if(Nr(l),b)if(l.flags&256)l.flags&=-257,l=Et(n,l,o);else if(l.memoizedState!==null)l.child=n.child,l.flags|=128,l=null;else throw Error(h(558));else if(xi||zi(n,l,o,!1),b=(o&n.childLanes)!==0,xi||b){if(d=ln,d!==null&&(z=ur(d,o),z!==0&&z!==A.retryLane))throw A.retryLane=z,bc(n,z),Gr(d,n,z),fy;Cg(),l=Et(n,l,o)}else n=A.treeContext,qn=Aa(z.nextSibling),yn=l,Yt=!0,tl=null,ki=!1,n!==null&&Vp(l,n),l=js(l,d),l.flags|=4096;return l}return n=Ni(n.child,{mode:d.mode,children:d.children}),n.ref=l.ref,l.child=n,n.return=l,n}function zc(n,l){var o=l.ref;if(o===null)n!==null&&n.ref!==null&&(l.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(h(284));(n===null||n.ref!==o)&&(l.flags|=4194816)}}function Na(n,l,o,d,b){return Tc(l),o=Wh(n,l,o,d,void 0,b),d=ed(),n!==null&&!xi?(If(n,l,b),Tn(n,l,b)):(Yt&&d&&Ls(l),l.flags|=1,na(n,l,o,b),l.child)}function dy(n,l,o,d,b,A){return Tc(l),l.updateQueue=null,o=Hf(l,d,o,b),iy(n),d=ed(),n!==null&&!xi?(If(n,l,A),Tn(n,l,A)):(Yt&&d&&Ls(l),l.flags|=1,na(n,l,o,A),l.child)}function md(n,l,o,d,b){if(Tc(l),l.stateNode===null){var A=Wr,z=o.contextType;typeof z=="object"&&z!==null&&(A=_a(z)),A=new o(d,A),l.memoizedState=A.state!==null&&A.state!==void 0?A.state:null,A.updater=Eu,l.stateNode=A,A._reactInternals=l,A=l.stateNode,A.props=d,A.state=l.memoizedState,A.refs={},zf(l),z=o.contextType,A.context=typeof z=="object"&&z!==null?_a(z):Wr,A.state=l.memoizedState,z=o.getDerivedStateFromProps,typeof z=="function"&&(dd(l,o,z,d),A.state=l.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof A.getSnapshotBeforeUpdate=="function"||typeof A.UNSAFE_componentWillMount!="function"&&typeof A.componentWillMount!="function"||(z=A.state,typeof A.componentWillMount=="function"&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount=="function"&&A.UNSAFE_componentWillMount(),z!==A.state&&Eu.enqueueReplaceState(A,A.state,null),Cc(l,d,A,b),El(),A.state=l.memoizedState),typeof A.componentDidMount=="function"&&(l.flags|=4194308),d=!0}else if(n===null){A=l.stateNode;var V=l.memoizedProps,oe=Tu(o,V);A.props=oe;var Le=A.context,je=o.contextType;z=Wr,typeof je=="object"&&je!==null&&(z=_a(je));var Qe=o.getDerivedStateFromProps;je=typeof Qe=="function"||typeof A.getSnapshotBeforeUpdate=="function",V=l.pendingProps!==V,je||typeof A.UNSAFE_componentWillReceiveProps!="function"&&typeof A.componentWillReceiveProps!="function"||(V||Le!==z)&&Gs(l,A,d,z),Ea=!1;var Oe=l.memoizedState;A.state=Oe,Cc(l,d,A,b),El(),Le=l.memoizedState,V||Oe!==Le||Ea?(typeof Qe=="function"&&(dd(l,o,Qe,d),Le=l.memoizedState),(oe=Ea||Su(l,o,oe,d,Oe,Le,z))?(je||typeof A.UNSAFE_componentWillMount!="function"&&typeof A.componentWillMount!="function"||(typeof A.componentWillMount=="function"&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount=="function"&&A.UNSAFE_componentWillMount()),typeof A.componentDidMount=="function"&&(l.flags|=4194308)):(typeof A.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=d,l.memoizedState=Le),A.props=d,A.state=Le,A.context=z,d=oe):(typeof A.componentDidMount=="function"&&(l.flags|=4194308),d=!1)}else{A=l.stateNode,jl(n,l),z=l.memoizedProps,je=Tu(o,z),A.props=je,Qe=l.pendingProps,Oe=A.context,Le=o.contextType,oe=Wr,typeof Le=="object"&&Le!==null&&(oe=_a(Le)),V=o.getDerivedStateFromProps,(Le=typeof V=="function"||typeof A.getSnapshotBeforeUpdate=="function")||typeof A.UNSAFE_componentWillReceiveProps!="function"&&typeof A.componentWillReceiveProps!="function"||(z!==Qe||Oe!==oe)&&Gs(l,A,d,oe),Ea=!1,Oe=l.memoizedState,A.state=Oe,Cc(l,d,A,b),El();var Ue=l.memoizedState;z!==Qe||Oe!==Ue||Ea||n!==null&&n.dependencies!==null&&Zt(n.dependencies)?(typeof V=="function"&&(dd(l,o,V,d),Ue=l.memoizedState),(je=Ea||Su(l,o,je,d,Oe,Ue,oe)||n!==null&&n.dependencies!==null&&Zt(n.dependencies))?(Le||typeof A.UNSAFE_componentWillUpdate!="function"&&typeof A.componentWillUpdate!="function"||(typeof A.componentWillUpdate=="function"&&A.componentWillUpdate(d,Ue,oe),typeof A.UNSAFE_componentWillUpdate=="function"&&A.UNSAFE_componentWillUpdate(d,Ue,oe)),typeof A.componentDidUpdate=="function"&&(l.flags|=4),typeof A.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof A.componentDidUpdate!="function"||z===n.memoizedProps&&Oe===n.memoizedState||(l.flags|=4),typeof A.getSnapshotBeforeUpdate!="function"||z===n.memoizedProps&&Oe===n.memoizedState||(l.flags|=1024),l.memoizedProps=d,l.memoizedState=Ue),A.props=d,A.state=Ue,A.context=oe,d=je):(typeof A.componentDidUpdate!="function"||z===n.memoizedProps&&Oe===n.memoizedState||(l.flags|=4),typeof A.getSnapshotBeforeUpdate!="function"||z===n.memoizedProps&&Oe===n.memoizedState||(l.flags|=1024),d=!1)}return A=d,zc(n,l),d=(l.flags&128)!==0,A||d?(A=l.stateNode,o=d&&typeof o.getDerivedStateFromError!="function"?null:A.render(),l.flags|=1,n!==null&&d?(l.child=So(l,n.child,null,b),l.child=So(l,null,o,b)):na(n,l,o,b),l.memoizedState=A.state,n=l.child):n=Tn(n,l,b),n}function pg(n,l,o,d){return Ds(),l.flags|=256,na(n,l,o,d),l.child}var Ta={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ff(n){return{baseLanes:n,cachePool:ks()}}function $a(n,l,o){return n=n!==null?n.childLanes&~o:0,l&&(n|=Pa),n}function gg(n,l,o){var d=l.pendingProps,b=!1,A=(l.flags&128)!==0,z;if((z=A)||(z=n!==null&&n.memoizedState===null?!1:(oi.current&2)!==0),z&&(b=!0,l.flags&=-129),z=(l.flags&32)!==0,l.flags&=-33,n===null){if(Yt){if(b?Rr(l):Vn(l),(n=qn)?(n=Vy(n,ki),n=n!==null&&n.data!=="&"?n:null,n!==null&&(l.memoizedState={dehydrated:n,treeContext:bl!==null?{id:Ul,overflow:Bl}:null,retryLane:536870912,hydrationErrors:null},o=lu(n),o.return=l,l.child=o,yn=l,qn=null)):n=null,n===null)throw dr(l);return Vr(n)?l.lanes=32:l.lanes=536870912,null}var V=d.children;return d=d.fallback,b?(Vn(l),b=l.mode,V=Wf({mode:"hidden",children:V},b),d=ea(d,b,o,null),V.return=l,d.return=l,V.sibling=d,l.child=V,d=l.child,d.memoizedState=Ff(o),d.childLanes=$a(n,z,o),l.memoizedState=Ta,kc(null,d)):(Rr(l),Xa(l,V))}var oe=n.memoizedState;if(oe!==null&&(V=oe.dehydrated,V!==null)){if(A)l.flags&256?(Rr(l),l.flags&=-257,l=wl(n,l,o)):l.memoizedState!==null?(Vn(l),l.child=n.child,l.flags|=128,l=null):(Vn(l),V=d.fallback,b=l.mode,d=Wf({mode:"visible",children:d.children},b),V=ea(V,b,o,null),V.flags|=2,d.return=l,V.return=l,d.sibling=V,l.child=d,So(l,n.child,null,o),d=l.child,d.memoizedState=Ff(o),d.childLanes=$a(n,z,o),l.memoizedState=Ta,l=kc(null,d));else if(Rr(l),Vr(V)){if(z=V.nextSibling&&V.nextSibling.dataset,z)var Le=z.dgst;z=Le,d=Error(h(419)),d.stack="",d.digest=z,Nf({value:d,source:null,stack:null}),l=wl(n,l,o)}else if(xi||zi(n,l,o,!1),z=(o&n.childLanes)!==0,xi||z){if(z=ln,z!==null&&(d=ur(z,o),d!==0&&d!==oe.retryLane))throw oe.retryLane=d,bc(n,d),Gr(z,n,d),fy;Hg(V)||Cg(),l=wl(n,l,o)}else Hg(V)?(l.flags|=192,l.child=n.child,l=null):(n=oe.treeContext,qn=Aa(V.nextSibling),yn=l,Yt=!0,tl=null,ki=!1,n!==null&&Vp(l,n),l=Xa(l,d.children),l.flags|=4096);return l}return b?(Vn(l),V=d.fallback,b=l.mode,oe=n.child,Le=oe.sibling,d=Ni(oe,{mode:"hidden",children:d.children}),d.subtreeFlags=oe.subtreeFlags&65011712,Le!==null?V=Ni(Le,V):(V=ea(V,b,o,null),V.flags|=2),V.return=l,d.return=l,d.sibling=V,l.child=d,kc(null,d),d=l.child,V=n.child.memoizedState,V===null?V=Ff(o):(b=V.cachePool,b!==null?(oe=Ui._currentValue,b=b.parent!==oe?{parent:oe,pool:oe}:b):b=ks(),V={baseLanes:V.baseLanes|o,cachePool:b}),d.memoizedState=V,d.childLanes=$a(n,z,o),l.memoizedState=Ta,kc(n.child,d)):(Rr(l),o=n.child,n=o.sibling,o=Ni(o,{mode:"visible",children:d.children}),o.return=l,o.sibling=null,n!==null&&(z=l.deletions,z===null?(l.deletions=[n],l.flags|=16):z.push(n)),l.child=o,l.memoizedState=null,o)}function Xa(n,l){return l=Wf({mode:"visible",children:l},n.mode),l.return=n,n.child=l}function Wf(n,l){return n=Gn(22,n,null,l),n.lanes=0,n}function wl(n,l,o){return So(l,n.child,null,o),n=Xa(l,l.pendingProps.children),n.flags|=2,l.memoizedState=null,n}function py(n,l,o){n.lanes|=l;var d=n.alternate;d!==null&&(d.lanes|=l),Hl(n.return,l,o)}function Oo(n,l,o,d,b,A){var z=n.memoizedState;z===null?n.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:d,tail:o,tailMode:b,treeForkCount:A}:(z.isBackwards=l,z.rendering=null,z.renderingStartTime=0,z.last=d,z.tail=o,z.tailMode=b,z.treeForkCount=A)}function Zl(n,l,o){var d=l.pendingProps,b=d.revealOrder,A=d.tail;d=d.children;var z=oi.current,V=(z&2)!==0;if(V?(z=z&1|2,l.flags|=128):z&=1,He(oi,z),na(n,l,d,o),d=Yt?Eo:0,!V&&n!==null&&(n.flags&128)!==0)e:for(n=l.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&py(n,o,l);else if(n.tag===19)py(n,o,l);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===l)break e;for(;n.sibling===null;){if(n.return===null||n.return===l)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(b){case"forwards":for(o=l.child,b=null;o!==null;)n=o.alternate,n!==null&&Zp(n)===null&&(b=o),o=o.sibling;o=b,o===null?(b=l.child,l.child=null):(b=o.sibling,o.sibling=null),Oo(l,!1,b,o,A,d);break;case"backwards":case"unstable_legacy-backwards":for(o=null,b=l.child,l.child=null;b!==null;){if(n=b.alternate,n!==null&&Zp(n)===null){l.child=b;break}n=b.sibling,b.sibling=o,o=b,b=n}Oo(l,!0,o,null,A,d);break;case"together":Oo(l,!1,null,null,void 0,d);break;default:l.memoizedState=null}return l.child}function Tn(n,l,o){if(n!==null&&(l.dependencies=n.dependencies),ko|=l.lanes,(o&l.childLanes)===0)if(n!==null){if(zi(n,l,o,!1),(o&l.childLanes)===0)return null}else return null;if(n!==null&&l.child!==n.child)throw Error(h(153));if(l.child!==null){for(n=l.child,o=Ni(n,n.pendingProps),l.child=o,o.return=l;n.sibling!==null;)n=n.sibling,o=o.sibling=Ni(n,n.pendingProps),o.return=l;o.sibling=null}return l.child}function Uc(n,l){return(n.lanes&l)!==0?!0:(n=n.dependencies,!!(n!==null&&Zt(n)))}function gy(n,l,o){switch(l.tag){case 3:Jt(l,l.stateNode.containerInfo),Va(l,Ui,n.memoizedState.cache),Ds();break;case 27:case 5:En(l);break;case 4:Jt(l,l.stateNode.containerInfo);break;case 10:Va(l,l.type,l.memoizedProps.value);break;case 31:if(l.memoizedState!==null)return l.flags|=128,Nr(l),null;break;case 13:var d=l.memoizedState;if(d!==null)return d.dehydrated!==null?(Rr(l),l.flags|=128,null):(o&l.child.childLanes)!==0?gg(n,l,o):(Rr(l),n=Tn(n,l,o),n!==null?n.sibling:null);Rr(l);break;case 19:var b=(n.flags&128)!==0;if(d=(o&l.childLanes)!==0,d||(zi(n,l,o,!1),d=(o&l.childLanes)!==0),b){if(d)return Zl(n,l,o);l.flags|=128}if(b=l.memoizedState,b!==null&&(b.rendering=null,b.tail=null,b.lastEffect=null),He(oi,oi.current),d)break;return null;case 22:return l.lanes=0,Nc(n,l,o,l.pendingProps);case 24:Va(l,Ui,n.memoizedState.cache)}return Tn(n,l,o)}function Hr(n,l,o){if(n!==null)if(n.memoizedProps!==l.pendingProps)xi=!0;else{if(!Uc(n,o)&&(l.flags&128)===0)return xi=!1,gy(n,l,o);xi=(n.flags&131072)!==0}else xi=!1,Yt&&(l.flags&1048576)!==0&&ba(l,Eo,l.index);switch(l.lanes=0,l.tag){case 16:e:{var d=l.pendingProps;if(n=Dr(l.elementType),l.type=n,typeof n=="function")Ya(n)?(d=Tu(n,d),l.tag=1,l=md(null,l,n,d,o)):(l.tag=0,l=Na(null,l,n,d,o));else{if(n!=null){var b=n.$$typeof;if(b===Fe){l.tag=11,l=hy(null,l,n,d,o);break e}else if(b===Be){l.tag=14,l=Tl(null,l,n,d,o);break e}}throw l=K(n)||n,Error(h(306,l,""))}}return l;case 0:return Na(n,l,l.type,l.pendingProps,o);case 1:return d=l.type,b=Tu(d,l.pendingProps),md(n,l,d,b,o);case 3:e:{if(Jt(l,l.stateNode.containerInfo),n===null)throw Error(h(387));d=l.pendingProps;var A=l.memoizedState;b=A.element,jl(n,l),Cc(l,d,null,o);var z=l.memoizedState;if(d=z.cache,Va(l,Ui,d),d!==A.cache&&Ms(l,[Ui],o,!0),El(),d=z.element,A.isDehydrated)if(A={element:d,isDehydrated:!1,cache:z.cache},l.updateQueue.baseState=A,l.memoizedState=A,l.flags&256){l=pg(n,l,d,o);break e}else if(d!==b){b=el(Error(h(424)),l),Nf(b),l=pg(n,l,d,o);break e}else for(n=l.stateNode.containerInfo,n.nodeType===9?n=n.body:n=n.nodeName==="HTML"?n.ownerDocument.body:n,qn=Aa(n.firstChild),yn=l,Yt=!0,tl=null,ki=!0,o=ty(l,null,d,o),l.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(Ds(),d===b){l=Tn(n,l,o);break e}na(n,l,d,o)}l=l.child}return l;case 26:return zc(n,l),n===null?(o=Za(l.type,null,l.pendingProps,null))?l.memoizedState=o:Yt||(o=l.type,n=l.pendingProps,d=oh(st.current).createElement(o),d[In]=l,d[cr]=n,Ii(d,o,n),xn(d),l.stateNode=d):l.memoizedState=Za(l.type,n.memoizedProps,l.pendingProps,n.memoizedState),null;case 27:return En(l),n===null&&Yt&&(d=l.stateNode=wn(l.type,l.pendingProps,st.current),yn=l,ki=!0,b=qn,qi(l.type)?(mr=b,qn=Aa(d.firstChild)):qn=b),na(n,l,l.pendingProps.children,o),zc(n,l),n===null&&(l.flags|=4194304),l.child;case 5:return n===null&&Yt&&((b=d=qn)&&(d=cv(d,l.type,l.pendingProps,ki),d!==null?(l.stateNode=d,yn=l,qn=Aa(d.firstChild),ki=!1,b=!0):b=!1),b||dr(l)),En(l),b=l.type,A=l.pendingProps,z=n!==null?n.memoizedProps:null,d=A.children,Ng(b,A)?d=null:z!==null&&Ng(b,z)&&(l.flags|=32),l.memoizedState!==null&&(b=Wh(n,l,Kp,null,null,o),yh._currentValue=b),zc(n,l),na(n,l,d,o),l.child;case 6:return n===null&&Yt&&((n=o=qn)&&(o=Bg(o,l.pendingProps,ki),o!==null?(l.stateNode=o,yn=l,qn=null,n=!0):n=!1),n||dr(l)),null;case 13:return gg(n,l,o);case 4:return Jt(l,l.stateNode.containerInfo),d=l.pendingProps,n===null?l.child=So(l,null,d,o):na(n,l,d,o),l.child;case 11:return hy(n,l,l.type,l.pendingProps,o);case 7:return na(n,l,l.pendingProps,o),l.child;case 8:return na(n,l,l.pendingProps.children,o),l.child;case 12:return na(n,l,l.pendingProps.children,o),l.child;case 10:return d=l.pendingProps,Va(l,l.type,d.value),na(n,l,d.children,o),l.child;case 9:return b=l.type._context,d=l.pendingProps.children,Tc(l),b=_a(b),d=d(b),l.flags|=1,na(n,l,d,o),l.child;case 14:return Tl(n,l,l.type,l.pendingProps,o);case 15:return Jf(n,l,l.type,l.pendingProps,o);case 19:return Zl(n,l,o);case 31:return gd(n,l,o);case 22:return Nc(n,l,o,l.pendingProps);case 24:return Tc(l),d=_a(Ui),n===null?(b=Xh(),b===null&&(b=ln,A=Ns(),b.pooledCache=A,A.refCount++,A!==null&&(b.pooledCacheLanes|=o),b=A),l.memoizedState={parent:d,cache:b},zf(l),Va(l,Ui,b)):((n.lanes&o)!==0&&(jl(n,l),Cc(l,null,null,o),El()),b=n.memoizedState,A=l.memoizedState,b.parent!==d?(b={parent:d,cache:d},l.memoizedState=b,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=b),Va(l,Ui,d)):(d=A.cache,Va(l,Ui,d),d!==b.cache&&Ms(l,[Ui],o,!0))),na(n,l,l.pendingProps.children,o),l.child;case 29:throw l.pendingProps}throw Error(h(156,l.tag))}function Ys(n){n.flags|=4}function wu(n,l,o,d,b){if((l=(n.mode&32)!==0)&&(l=!1),l){if(n.flags|=16777216,(b&335544128)===b)if(n.stateNode.complete)n.flags|=8192;else if(xy())n.flags|=8192;else throw nl=vn,Qh}else n.flags&=-16777217}function Bc(n,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!ph(l))if(xy())n.flags|=8192;else throw nl=vn,Qh}function Do(n,l){l!==null&&(n.flags|=4),n.flags&16384&&(l=n.tag!==22?or():536870912,n.lanes|=l,$c|=l)}function Jl(n,l){if(!Yt)switch(n.tailMode){case"hidden":l=n.tail;for(var o=null;l!==null;)l.alternate!==null&&(o=l),l=l.sibling;o===null?n.tail=null:o.sibling=null;break;case"collapsed":o=n.tail;for(var d=null;o!==null;)o.alternate!==null&&(d=o),o=o.sibling;d===null?l||n.tail===null?n.tail=null:n.tail.sibling=null:d.sibling=null}}function Wn(n){var l=n.alternate!==null&&n.alternate.child===n.child,o=0,d=0;if(l)for(var b=n.child;b!==null;)o|=b.lanes|b.childLanes,d|=b.subtreeFlags&65011712,d|=b.flags&65011712,b.return=n,b=b.sibling;else for(b=n.child;b!==null;)o|=b.lanes|b.childLanes,d|=b.subtreeFlags,d|=b.flags,b.return=n,b=b.sibling;return n.subtreeFlags|=d,n.childLanes=o,l}function G0(n,l,o){var d=l.pendingProps;switch(Yp(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Wn(l),null;case 1:return Wn(l),null;case 3:return o=l.stateNode,d=null,n!==null&&(d=n.memoizedState.cache),l.memoizedState.cache!==d&&(l.flags|=2048),j(Ui),ht(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(n===null||n.child===null)&&(Sc(l)?Ys(l):n===null||n.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,$p())),Wn(l),null;case 26:var b=l.type,A=l.memoizedState;return n===null?(Ys(l),A!==null?(Wn(l),Bc(l,A)):(Wn(l),wu(l,b,null,d,o))):A?A!==n.memoizedState?(Ys(l),Wn(l),Bc(l,A)):(Wn(l),l.flags&=-16777217):(n=n.memoizedProps,n!==d&&Ys(l),Wn(l),wu(l,b,n,d,o)),null;case 27:if(tt(l),o=st.current,b=l.type,n!==null&&l.stateNode!=null)n.memoizedProps!==d&&Ys(l);else{if(!d){if(l.stateNode===null)throw Error(h(166));return Wn(l),null}n=Ie.current,Sc(l)?Rf(l,n):(n=wn(b,d,o),l.stateNode=n,Ys(l))}return Wn(l),null;case 5:if(tt(l),b=l.type,n!==null&&l.stateNode!=null)n.memoizedProps!==d&&Ys(l);else{if(!d){if(l.stateNode===null)throw Error(h(166));return Wn(l),null}if(A=Ie.current,Sc(l))Rf(l,A);else{var z=oh(st.current);switch(A){case 1:A=z.createElementNS("http://www.w3.org/2000/svg",b);break;case 2:A=z.createElementNS("http://www.w3.org/1998/Math/MathML",b);break;default:switch(b){case"svg":A=z.createElementNS("http://www.w3.org/2000/svg",b);break;case"math":A=z.createElementNS("http://www.w3.org/1998/Math/MathML",b);break;case"script":A=z.createElement("div"),A.innerHTML="<script><\/script>",A=A.removeChild(A.firstChild);break;case"select":A=typeof d.is=="string"?z.createElement("select",{is:d.is}):z.createElement("select"),d.multiple?A.multiple=!0:d.size&&(A.size=d.size);break;default:A=typeof d.is=="string"?z.createElement(b,{is:d.is}):z.createElement(b)}}A[In]=l,A[cr]=d;e:for(z=l.child;z!==null;){if(z.tag===5||z.tag===6)A.appendChild(z.stateNode);else if(z.tag!==4&&z.tag!==27&&z.child!==null){z.child.return=z,z=z.child;continue}if(z===l)break e;for(;z.sibling===null;){if(z.return===null||z.return===l)break e;z=z.return}z.sibling.return=z.return,z=z.sibling}l.stateNode=A;e:switch(Ii(A,b,d),b){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}d&&Ys(l)}}return Wn(l),wu(l,l.type,n===null?null:n.memoizedProps,l.pendingProps,o),null;case 6:if(n&&l.stateNode!=null)n.memoizedProps!==d&&Ys(l);else{if(typeof d!="string"&&l.stateNode===null)throw Error(h(166));if(n=st.current,Sc(l)){if(n=l.stateNode,o=l.memoizedProps,d=null,b=yn,b!==null)switch(b.tag){case 27:case 5:d=b.memoizedProps}n[In]=l,n=!!(n.nodeValue===o||d!==null&&d.suppressHydrationWarning===!0||Rd(n.nodeValue,o)),n||dr(l,!0)}else n=oh(n).createTextNode(d),n[In]=l,l.stateNode=n}return Wn(l),null;case 31:if(o=l.memoizedState,n===null||n.memoizedState!==null){if(d=Sc(l),o!==null){if(n===null){if(!d)throw Error(h(318));if(n=l.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(h(557));n[In]=l}else Ds(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;Wn(l),n=!1}else o=$p(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=o),n=!0;if(!n)return l.flags&256?($n(l),l):($n(l),null);if((l.flags&128)!==0)throw Error(h(558))}return Wn(l),null;case 13:if(d=l.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(b=Sc(l),d!==null&&d.dehydrated!==null){if(n===null){if(!b)throw Error(h(318));if(b=l.memoizedState,b=b!==null?b.dehydrated:null,!b)throw Error(h(317));b[In]=l}else Ds(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;Wn(l),b=!1}else b=$p(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=b),b=!0;if(!b)return l.flags&256?($n(l),l):($n(l),null)}return $n(l),(l.flags&128)!==0?(l.lanes=o,l):(o=d!==null,n=n!==null&&n.memoizedState!==null,o&&(d=l.child,b=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(b=d.alternate.memoizedState.cachePool.pool),A=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(A=d.memoizedState.cachePool.pool),A!==b&&(d.flags|=2048)),o!==n&&o&&(l.child.flags|=8192),Do(l,l.updateQueue),Wn(l),null);case 4:return ht(),n===null&&Iy(l.stateNode.containerInfo),Wn(l),null;case 10:return j(l.type),Wn(l),null;case 19:if(ze(oi),d=l.memoizedState,d===null)return Wn(l),null;if(b=(l.flags&128)!==0,A=d.rendering,A===null)if(b)Jl(d,!1);else{if(fi!==0||n!==null&&(n.flags&128)!==0)for(n=l.child;n!==null;){if(A=Zp(n),A!==null){for(l.flags|=128,Jl(d,!1),n=A.updateQueue,l.updateQueue=n,Do(l,n),l.subtreeFlags=0,n=o,o=l.child;o!==null;)vl(o,n),o=o.sibling;return He(oi,oi.current&1|2),Yt&&jn(l,d.treeForkCount),l.child}n=n.sibling}d.tail!==null&&Cn()>Lu&&(l.flags|=128,b=!0,Jl(d,!1),l.lanes=4194304)}else{if(!b)if(n=Zp(A),n!==null){if(l.flags|=128,b=!0,n=n.updateQueue,l.updateQueue=n,Do(l,n),Jl(d,!0),d.tail===null&&d.tailMode==="hidden"&&!A.alternate&&!Yt)return Wn(l),null}else 2*Cn()-d.renderingStartTime>Lu&&o!==536870912&&(l.flags|=128,b=!0,Jl(d,!1),l.lanes=4194304);d.isBackwards?(A.sibling=l.child,l.child=A):(n=d.last,n!==null?n.sibling=A:l.child=A,d.last=A)}return d.tail!==null?(n=d.tail,d.rendering=n,d.tail=n.sibling,d.renderingStartTime=Cn(),n.sibling=null,o=oi.current,He(oi,b?o&1|2:o&1),Yt&&jn(l,d.treeForkCount),n):(Wn(l),null);case 22:case 23:return $n(l),xc(),d=l.memoizedState!==null,n!==null?n.memoizedState!==null!==d&&(l.flags|=8192):d&&(l.flags|=8192),d?(o&536870912)!==0&&(l.flags&128)===0&&(Wn(l),l.subtreeFlags&6&&(l.flags|=8192)):Wn(l),o=l.updateQueue,o!==null&&Do(l,o.retryQueue),o=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),d=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(d=l.memoizedState.cachePool.pool),d!==o&&(l.flags|=2048),n!==null&&ze(cu),null;case 24:return o=null,n!==null&&(o=n.memoizedState.cache),l.memoizedState.cache!==o&&(l.flags|=2048),j(Ui),Wn(l),null;case 25:return null;case 30:return null}throw Error(h(156,l.tag))}function yd(n,l){switch(Yp(l),l.tag){case 1:return n=l.flags,n&65536?(l.flags=n&-65537|128,l):null;case 3:return j(Ui),ht(),n=l.flags,(n&65536)!==0&&(n&128)===0?(l.flags=n&-65537|128,l):null;case 26:case 27:case 5:return tt(l),null;case 31:if(l.memoizedState!==null){if($n(l),l.alternate===null)throw Error(h(340));Ds()}return n=l.flags,n&65536?(l.flags=n&-65537|128,l):null;case 13:if($n(l),n=l.memoizedState,n!==null&&n.dehydrated!==null){if(l.alternate===null)throw Error(h(340));Ds()}return n=l.flags,n&65536?(l.flags=n&-65537|128,l):null;case 19:return ze(oi),null;case 4:return ht(),null;case 10:return j(l.type),null;case 22:case 23:return $n(l),xc(),n!==null&&ze(cu),n=l.flags,n&65536?(l.flags=n&-65537|128,l):null;case 24:return j(Ui),null;case 25:return null;default:return null}}function my(n,l){switch(Yp(l),l.tag){case 3:j(Ui),ht();break;case 26:case 27:case 5:tt(l);break;case 4:ht();break;case 31:l.memoizedState!==null&&$n(l);break;case 13:$n(l);break;case 19:ze(oi);break;case 10:j(l.type);break;case 22:case 23:$n(l),xc(),n!==null&&ze(cu);break;case 24:j(Ui)}}function Mo(n,l){try{var o=l.updateQueue,d=o!==null?o.lastEffect:null;if(d!==null){var b=d.next;o=b;do{if((o.tag&n)===n){d=void 0;var A=o.create,z=o.inst;d=A(),z.destroy=d}o=o.next}while(o!==b)}}catch(V){Mn(l,l.return,V)}}function Vs(n,l,o){try{var d=l.updateQueue,b=d!==null?d.lastEffect:null;if(b!==null){var A=b.next;d=A;do{if((d.tag&n)===n){var z=d.inst,V=z.destroy;if(V!==void 0){z.destroy=void 0,b=l;var oe=o,Le=V;try{Le()}catch(je){Mn(b,oe,je)}}}d=d.next}while(d!==A)}}catch(je){Mn(l,l.return,je)}}function yy(n){var l=n.updateQueue;if(l!==null){var o=n.stateNode;try{Uf(l,o)}catch(d){Mn(n,n.return,d)}}}function mg(n,l,o){o.props=Tu(n.type,n.memoizedProps),o.state=n.memoizedState;try{o.componentWillUnmount()}catch(d){Mn(n,l,d)}}function Hc(n,l){try{var o=n.ref;if(o!==null){switch(n.tag){case 26:case 27:case 5:var d=n.stateNode;break;case 30:d=n.stateNode;break;default:d=n.stateNode}typeof o=="function"?n.refCleanup=o(d):o.current=d}}catch(b){Mn(n,l,b)}}function ei(n,l){var o=n.ref,d=n.refCleanup;if(o!==null)if(typeof d=="function")try{d()}catch(b){Mn(n,l,b)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(b){Mn(n,l,b)}else o.current=null}function vd(n){var l=n.type,o=n.memoizedProps,d=n.stateNode;try{e:switch(l){case"button":case"input":case"select":case"textarea":o.autoFocus&&d.focus();break e;case"img":o.src?d.src=o.src:o.srcSet&&(d.srcset=o.srcSet)}}catch(b){Mn(n,n.return,b)}}function ti(n,l,o){try{var d=n.stateNode;Fc(d,n.type,o,l),d[cr]=l}catch(b){Mn(n,n.return,b)}}function yg(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&qi(n.type)||n.tag===4}function Ic(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||yg(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&qi(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function vg(n,l,o){var d=n.tag;if(d===5||d===6)n=n.stateNode,l?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(n,l):(l=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,l.appendChild(n),o=o._reactRootContainer,o!=null||l.onclick!==null||(l.onclick=pl));else if(d!==4&&(d===27&&qi(n.type)&&(o=n.stateNode,l=null),n=n.child,n!==null))for(vg(n,l,o),n=n.sibling;n!==null;)vg(n,l,o),n=n.sibling}function Hi(n,l,o){var d=n.tag;if(d===5||d===6)n=n.stateNode,l?o.insertBefore(n,l):o.appendChild(n);else if(d!==4&&(d===27&&qi(n.type)&&(o=n.stateNode),n=n.child,n!==null))for(Hi(n,l,o),n=n.sibling;n!==null;)Hi(n,l,o),n=n.sibling}function rl(n){var l=n.stateNode,o=n.memoizedProps;try{for(var d=n.type,b=l.attributes;b.length;)l.removeAttributeNode(b[0]);Ii(l,d,o),l[In]=n,l[cr]=o}catch(A){Mn(n,n.return,A)}}var Kl=!1,Qn=!1,Au=!1,vy=typeof WeakSet=="function"?WeakSet:Set,ia=null;function j0(n,l){if(n=n.containerInfo,Nd=Yd,n=qp(n),Gp(n)){if("selectionStart"in n)var o={start:n.selectionStart,end:n.selectionEnd};else e:{o=(o=n.ownerDocument)&&o.defaultView||window;var d=o.getSelection&&o.getSelection();if(d&&d.rangeCount!==0){o=d.anchorNode;var b=d.anchorOffset,A=d.focusNode;d=d.focusOffset;try{o.nodeType,A.nodeType}catch{o=null;break e}var z=0,V=-1,oe=-1,Le=0,je=0,Qe=n,Oe=null;t:for(;;){for(var Ue;Qe!==o||b!==0&&Qe.nodeType!==3||(V=z+b),Qe!==A||d!==0&&Qe.nodeType!==3||(oe=z+d),Qe.nodeType===3&&(z+=Qe.nodeValue.length),(Ue=Qe.firstChild)!==null;)Oe=Qe,Qe=Ue;for(;;){if(Qe===n)break t;if(Oe===o&&++Le===b&&(V=z),Oe===A&&++je===d&&(oe=z),(Ue=Qe.nextSibling)!==null)break;Qe=Oe,Oe=Qe.parentNode}Qe=Ue}o=V===-1||oe===-1?null:{start:V,end:oe}}else o=null}o=o||{start:0,end:0}}else o=null;for(Mg={focusedElem:n,selectionRange:o},Yd=!1,ia=l;ia!==null;)if(l=ia,n=l.child,(l.subtreeFlags&1028)!==0&&n!==null)n.return=l,ia=n;else for(;ia!==null;){switch(l=ia,A=l.alternate,n=l.flags,l.tag){case 0:if((n&4)!==0&&(n=l.updateQueue,n=n!==null?n.events:null,n!==null))for(o=0;o<n.length;o++)b=n[o],b.ref.impl=b.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&A!==null){n=void 0,o=l,b=A.memoizedProps,A=A.memoizedState,d=o.stateNode;try{var dt=Tu(o.type,b);n=d.getSnapshotBeforeUpdate(dt,A),d.__reactInternalSnapshotBeforeUpdate=n}catch(St){Mn(o,o.return,St)}}break;case 3:if((n&1024)!==0){if(n=l.stateNode.containerInfo,o=n.nodeType,o===9)Yy(n);else if(o===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":Yy(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(h(163))}if(n=l.sibling,n!==null){n.return=l.return,ia=n;break}ia=l.return}}function by(n,l,o){var d=o.flags;switch(o.tag){case 0:case 11:case 15:Xs(n,o),d&4&&Mo(5,o);break;case 1:if(Xs(n,o),d&4)if(n=o.stateNode,l===null)try{n.componentDidMount()}catch(z){Mn(o,o.return,z)}else{var b=Tu(o.type,l.memoizedProps);l=l.memoizedState;try{n.componentDidUpdate(b,l,n.__reactInternalSnapshotBeforeUpdate)}catch(z){Mn(o,o.return,z)}}d&64&&yy(o),d&512&&Hc(o,o.return);break;case 3:if(Xs(n,o),d&64&&(n=o.updateQueue,n!==null)){if(l=null,o.child!==null)switch(o.child.tag){case 27:case 5:l=o.child.stateNode;break;case 1:l=o.child.stateNode}try{Uf(n,l)}catch(z){Mn(o,o.return,z)}}break;case 27:l===null&&d&4&&rl(o);case 26:case 5:Xs(n,o),l===null&&d&4&&vd(o),d&512&&Hc(o,o.return);break;case 12:Xs(n,o);break;case 31:Xs(n,o),d&4&&V0(n,o);break;case 13:Xs(n,o),d&4&&bg(n,o),d&64&&(n=o.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(o=nv.bind(null,o),Qt(n,o))));break;case 22:if(d=o.memoizedState!==null||Kl,!d){l=l!==null&&l.memoizedState!==null||Qn,b=Kl;var A=Qn;Kl=d,(Qn=l)&&!A?Ro(n,o,(o.subtreeFlags&8772)!==0):Xs(n,o),Kl=b,Qn=A}break;case 30:break;default:Xs(n,o)}}function bd(n){var l=n.alternate;l!==null&&(n.alternate=null,bd(l)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(l=n.stateNode,l!==null&&vp(l)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var Pn=null,Qa=!1;function $s(n,l,o){for(o=o.child;o!==null;)Y0(n,l,o),o=o.sibling}function Y0(n,l,o){if(Ae&&typeof Ae.onCommitFiberUnmount=="function")try{Ae.onCommitFiberUnmount(ve,o)}catch{}switch(o.tag){case 26:Qn||ei(o,l),$s(n,l,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:Qn||ei(o,l);var d=Pn,b=Qa;qi(o.type)&&(Pn=o.stateNode,Qa=!1),$s(n,l,o),pi(o.stateNode),Pn=d,Qa=b;break;case 5:Qn||ei(o,l);case 6:if(d=Pn,b=Qa,Pn=null,$s(n,l,o),Pn=d,Qa=b,Pn!==null)if(Qa)try{(Pn.nodeType===9?Pn.body:Pn.nodeName==="HTML"?Pn.ownerDocument.body:Pn).removeChild(o.stateNode)}catch(A){Mn(o,l,A)}else try{Pn.removeChild(o.stateNode)}catch(A){Mn(o,l,A)}break;case 18:Pn!==null&&(Qa?(n=Pn,Mu(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,o.stateNode),vr(n)):Mu(Pn,o.stateNode));break;case 4:d=Pn,b=Qa,Pn=o.stateNode.containerInfo,Qa=!0,$s(n,l,o),Pn=d,Qa=b;break;case 0:case 11:case 14:case 15:Vs(2,o,l),Qn||Vs(4,o,l),$s(n,l,o);break;case 1:Qn||(ei(o,l),d=o.stateNode,typeof d.componentWillUnmount=="function"&&mg(o,l,d)),$s(n,l,o);break;case 21:$s(n,l,o);break;case 22:Qn=(d=Qn)||o.memoizedState!==null,$s(n,l,o),Qn=d;break;default:$s(n,l,o)}}function V0(n,l){if(l.memoizedState===null&&(n=l.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{vr(n)}catch(o){Mn(l,l.return,o)}}}function bg(n,l){if(l.memoizedState===null&&(n=l.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{vr(n)}catch(o){Mn(l,l.return,o)}}function _y(n){switch(n.tag){case 31:case 13:case 19:var l=n.stateNode;return l===null&&(l=n.stateNode=new vy),l;case 22:return n=n.stateNode,l=n._retryCache,l===null&&(l=n._retryCache=new vy),l;default:throw Error(h(435,n.tag))}}function _d(n,l){var o=_y(n);l.forEach(function(d){if(!o.has(d)){o.add(d);var b=iv.bind(null,n,d);d.then(b,b)}})}function aa(n,l){var o=l.deletions;if(o!==null)for(var d=0;d<o.length;d++){var b=o[d],A=n,z=l,V=z;e:for(;V!==null;){switch(V.tag){case 27:if(qi(V.type)){Pn=V.stateNode,Qa=!1;break e}break;case 5:Pn=V.stateNode,Qa=!1;break e;case 3:case 4:Pn=V.stateNode.containerInfo,Qa=!0;break e}V=V.return}if(Pn===null)throw Error(h(160));Y0(A,z,b),Pn=null,Qa=!1,A=b.alternate,A!==null&&(A.return=null),b.return=null}if(l.subtreeFlags&13886)for(l=l.child;l!==null;)Ey(l,n),l=l.sibling}var Ir=null;function Ey(n,l){var o=n.alternate,d=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:aa(l,n),ka(n),d&4&&(Vs(3,n,n.return),Mo(3,n),Vs(5,n,n.return));break;case 1:aa(l,n),ka(n),d&512&&(Qn||o===null||ei(o,o.return)),d&64&&Kl&&(n=n.updateQueue,n!==null&&(d=n.callbacks,d!==null&&(o=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=o===null?d:o.concat(d))));break;case 26:var b=Ir;if(aa(l,n),ka(n),d&512&&(Qn||o===null||ei(o,o.return)),d&4){var A=o!==null?o.memoizedState:null;if(d=n.memoizedState,o===null)if(d===null)if(n.stateNode===null){e:{d=n.type,o=n.memoizedProps,b=b.ownerDocument||b;t:switch(d){case"title":A=b.getElementsByTagName("title")[0],(!A||A[ps]||A[In]||A.namespaceURI==="http://www.w3.org/2000/svg"||A.hasAttribute("itemprop"))&&(A=b.createElement(d),b.head.insertBefore(A,b.querySelector("head > title"))),Ii(A,d,o),A[In]=n,xn(A),d=A;break e;case"link":var z=Ho("link","href",b).get(d+(o.href||""));if(z){for(var V=0;V<z.length;V++)if(A=z[V],A.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&A.getAttribute("rel")===(o.rel==null?null:o.rel)&&A.getAttribute("title")===(o.title==null?null:o.title)&&A.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){z.splice(V,1);break t}}A=b.createElement(d),Ii(A,d,o),b.head.appendChild(A);break;case"meta":if(z=Ho("meta","content",b).get(d+(o.content||""))){for(V=0;V<z.length;V++)if(A=z[V],A.getAttribute("content")===(o.content==null?null:""+o.content)&&A.getAttribute("name")===(o.name==null?null:o.name)&&A.getAttribute("property")===(o.property==null?null:o.property)&&A.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&A.getAttribute("charset")===(o.charSet==null?null:o.charSet)){z.splice(V,1);break t}}A=b.createElement(d),Ii(A,d,o),b.head.appendChild(A);break;default:throw Error(h(468,d))}A[In]=n,xn(A),d=A}n.stateNode=d}else dh(b,n.type,n.stateNode);else n.stateNode=Ht(b,d,n.memoizedProps);else A!==d?(A===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):A.count--,d===null?dh(b,n.type,n.stateNode):Ht(b,d,n.memoizedProps)):d===null&&n.stateNode!==null&&ti(n,n.memoizedProps,o.memoizedProps)}break;case 27:aa(l,n),ka(n),d&512&&(Qn||o===null||ei(o,o.return)),o!==null&&d&4&&ti(n,n.memoizedProps,o.memoizedProps);break;case 5:if(aa(l,n),ka(n),d&512&&(Qn||o===null||ei(o,o.return)),n.flags&32){b=n.stateNode;try{vs(b,"")}catch(dt){Mn(n,n.return,dt)}}d&4&&n.stateNode!=null&&(b=n.memoizedProps,ti(n,b,o!==null?o.memoizedProps:b)),d&1024&&(Au=!0);break;case 6:if(aa(l,n),ka(n),d&4){if(n.stateNode===null)throw Error(h(162));d=n.memoizedProps,o=n.stateNode;try{o.nodeValue=d}catch(dt){Mn(n,n.return,dt)}}break;case 3:if(sl=null,b=Ir,Ir=Bt(l.containerInfo),aa(l,n),Ir=b,ka(n),d&4&&o!==null&&o.memoizedState.isDehydrated)try{vr(l.containerInfo)}catch(dt){Mn(n,n.return,dt)}Au&&(Au=!1,Sy(n));break;case 4:d=Ir,Ir=Bt(n.stateNode.containerInfo),aa(l,n),ka(n),Ir=d;break;case 12:aa(l,n),ka(n);break;case 31:aa(l,n),ka(n),d&4&&(d=n.updateQueue,d!==null&&(n.updateQueue=null,_d(n,d)));break;case 13:aa(l,n),ka(n),n.child.flags&8192&&n.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(Cd=Cn()),d&4&&(d=n.updateQueue,d!==null&&(n.updateQueue=null,_d(n,d)));break;case 22:b=n.memoizedState!==null;var oe=o!==null&&o.memoizedState!==null,Le=Kl,je=Qn;if(Kl=Le||b,Qn=je||oe,aa(l,n),Qn=je,Kl=Le,ka(n),d&8192)e:for(l=n.stateNode,l._visibility=b?l._visibility&-2:l._visibility|1,b&&(o===null||oe||Kl||Qn||Cu(n)),o=null,l=n;;){if(l.tag===5||l.tag===26){if(o===null){oe=o=l;try{if(A=oe.stateNode,b)z=A.style,typeof z.setProperty=="function"?z.setProperty("display","none","important"):z.display="none";else{V=oe.stateNode;var Qe=oe.memoizedProps.style,Oe=Qe!=null&&Qe.hasOwnProperty("display")?Qe.display:null;V.style.display=Oe==null||typeof Oe=="boolean"?"":(""+Oe).trim()}}catch(dt){Mn(oe,oe.return,dt)}}}else if(l.tag===6){if(o===null){oe=l;try{oe.stateNode.nodeValue=b?"":oe.memoizedProps}catch(dt){Mn(oe,oe.return,dt)}}}else if(l.tag===18){if(o===null){oe=l;try{var Ue=oe.stateNode;b?fh(Ue,!0):fh(oe.stateNode,!1)}catch(dt){Mn(oe,oe.return,dt)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===n)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===n)break e;for(;l.sibling===null;){if(l.return===null||l.return===n)break e;o===l&&(o=null),l=l.return}o===l&&(o=null),l.sibling.return=l.return,l=l.sibling}d&4&&(d=n.updateQueue,d!==null&&(o=d.retryQueue,o!==null&&(d.retryQueue=null,_d(n,o))));break;case 19:aa(l,n),ka(n),d&4&&(d=n.updateQueue,d!==null&&(n.updateQueue=null,_d(n,d)));break;case 30:break;case 21:break;default:aa(l,n),ka(n)}}function ka(n){var l=n.flags;if(l&2){try{for(var o,d=n.return;d!==null;){if(yg(d)){o=d;break}d=d.return}if(o==null)throw Error(h(160));switch(o.tag){case 27:var b=o.stateNode;Hi(n,Ic(n),b);break;case 5:var A=o.stateNode;o.flags&32&&(vs(A,""),o.flags&=-33),Hi(n,Ic(n),A);break;case 3:case 4:var z=o.stateNode.containerInfo;vg(n,Ic(n),z);break;default:throw Error(h(161))}}catch(V){Mn(n,n.return,V)}n.flags&=-3}l&4096&&(n.flags&=-4097)}function Sy(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var l=n;Sy(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),n=n.sibling}}function Xs(n,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)by(n,l.alternate,l),l=l.sibling}function Cu(n){for(n=n.child;n!==null;){var l=n;switch(l.tag){case 0:case 11:case 14:case 15:Vs(4,l,l.return),Cu(l);break;case 1:ei(l,l.return);var o=l.stateNode;typeof o.componentWillUnmount=="function"&&mg(l,l.return,o),Cu(l);break;case 27:pi(l.stateNode);case 26:case 5:ei(l,l.return),Cu(l);break;case 22:l.memoizedState===null&&Cu(l);break;case 30:Cu(l);break;default:Cu(l)}n=n.sibling}}function Ro(n,l,o){for(o=o&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var d=l.alternate,b=n,A=l,z=A.flags;switch(A.tag){case 0:case 11:case 15:Ro(b,A,o),Mo(4,A);break;case 1:if(Ro(b,A,o),d=A,b=d.stateNode,typeof b.componentDidMount=="function")try{b.componentDidMount()}catch(Le){Mn(d,d.return,Le)}if(d=A,b=d.updateQueue,b!==null){var V=d.stateNode;try{var oe=b.shared.hiddenCallbacks;if(oe!==null)for(b.shared.hiddenCallbacks=null,b=0;b<oe.length;b++)ny(oe[b],V)}catch(Le){Mn(d,d.return,Le)}}o&&z&64&&yy(A),Hc(A,A.return);break;case 27:rl(A);case 26:case 5:Ro(b,A,o),o&&d===null&&z&4&&vd(A),Hc(A,A.return);break;case 12:Ro(b,A,o);break;case 31:Ro(b,A,o),o&&z&4&&V0(b,A);break;case 13:Ro(b,A,o),o&&z&4&&bg(b,A);break;case 22:A.memoizedState===null&&Ro(b,A,o),Hc(A,A.return);break;case 30:break;default:Ro(b,A,o)}l=l.sibling}}function _g(n,l){var o=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),n=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(n=l.memoizedState.cachePool.pool),n!==o&&(n!=null&&n.refCount++,o!=null&&li(o))}function qc(n,l){n=null,l.alternate!==null&&(n=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==n&&(l.refCount++,n!=null&&li(n))}function Si(n,l,o,d){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)Ty(n,l,o,d),l=l.sibling}function Ty(n,l,o,d){var b=l.flags;switch(l.tag){case 0:case 11:case 15:Si(n,l,o,d),b&2048&&Mo(9,l);break;case 1:Si(n,l,o,d);break;case 3:Si(n,l,o,d),b&2048&&(n=null,l.alternate!==null&&(n=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==n&&(l.refCount++,n!=null&&li(n)));break;case 12:if(b&2048){Si(n,l,o,d),n=l.stateNode;try{var A=l.memoizedProps,z=A.id,V=A.onPostCommit;typeof V=="function"&&V(z,l.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(oe){Mn(l,l.return,oe)}}else Si(n,l,o,d);break;case 31:Si(n,l,o,d);break;case 13:Si(n,l,o,d);break;case 23:break;case 22:A=l.stateNode,z=l.alternate,l.memoizedState!==null?A._visibility&2?Si(n,l,o,d):Gc(n,l):A._visibility&2?Si(n,l,o,d):(A._visibility|=2,rn(n,l,o,d,(l.subtreeFlags&10256)!==0||!1)),b&2048&&_g(z,l);break;case 24:Si(n,l,o,d),b&2048&&qc(l.alternate,l);break;default:Si(n,l,o,d)}}function rn(n,l,o,d,b){for(b=b&&((l.subtreeFlags&10256)!==0||!1),l=l.child;l!==null;){var A=n,z=l,V=o,oe=d,Le=z.flags;switch(z.tag){case 0:case 11:case 15:rn(A,z,V,oe,b),Mo(8,z);break;case 23:break;case 22:var je=z.stateNode;z.memoizedState!==null?je._visibility&2?rn(A,z,V,oe,b):Gc(A,z):(je._visibility|=2,rn(A,z,V,oe,b)),b&&Le&2048&&_g(z.alternate,z);break;case 24:rn(A,z,V,oe,b),b&&Le&2048&&qc(z.alternate,z);break;default:rn(A,z,V,oe,b)}l=l.sibling}}function Gc(n,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var o=n,d=l,b=d.flags;switch(d.tag){case 22:Gc(o,d),b&2048&&_g(d.alternate,d);break;case 24:Gc(o,d),b&2048&&qc(d.alternate,d);break;default:Gc(o,d)}l=l.sibling}}var eh=8192;function jc(n,l,o){if(n.subtreeFlags&eh)for(n=n.child;n!==null;)$0(n,l,o),n=n.sibling}function $0(n,l,o){switch(n.tag){case 26:jc(n,l,o),n.flags&eh&&n.memoizedState!==null&&qd(o,Ir,n.memoizedState,n.memoizedProps);break;case 5:jc(n,l,o);break;case 3:case 4:var d=Ir;Ir=Bt(n.stateNode.containerInfo),jc(n,l,o),Ir=d;break;case 22:n.memoizedState===null&&(d=n.alternate,d!==null&&d.memoizedState!==null?(d=eh,eh=16777216,jc(n,l,o),eh=d):jc(n,l,o));break;default:jc(n,l,o)}}function X0(n){var l=n.alternate;if(l!==null&&(n=l.child,n!==null)){l.child=null;do l=n.sibling,n.sibling=null,n=l;while(n!==null)}}function Yc(n){var l=n.deletions;if((n.flags&16)!==0){if(l!==null)for(var o=0;o<l.length;o++){var d=l[o];ia=d,wy(d,n)}X0(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Ed(n),n=n.sibling}function Ed(n){switch(n.tag){case 0:case 11:case 15:Yc(n),n.flags&2048&&Vs(9,n,n.return);break;case 3:Yc(n);break;case 12:Yc(n);break;case 22:var l=n.stateNode;n.memoizedState!==null&&l._visibility&2&&(n.return===null||n.return.tag!==13)?(l._visibility&=-3,Sd(n)):Yc(n);break;default:Yc(n)}}function Sd(n){var l=n.deletions;if((n.flags&16)!==0){if(l!==null)for(var o=0;o<l.length;o++){var d=l[o];ia=d,wy(d,n)}X0(n)}for(n=n.child;n!==null;){switch(l=n,l.tag){case 0:case 11:case 15:Vs(8,l,l.return),Sd(l);break;case 22:o=l.stateNode,o._visibility&2&&(o._visibility&=-3,Sd(l));break;default:Sd(l)}n=n.sibling}}function wy(n,l){for(;ia!==null;){var o=ia;switch(o.tag){case 0:case 11:case 15:Vs(8,o,l);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var d=o.memoizedState.cachePool.pool;d!=null&&d.refCount++}break;case 24:li(o.memoizedState.cache)}if(d=o.child,d!==null)d.return=o,ia=d;else e:for(o=n;ia!==null;){d=ia;var b=d.sibling,A=d.return;if(bd(d),d===o){ia=null;break e}if(b!==null){b.return=A,ia=b;break e}ia=A}}}var Td={getCacheForType:function(n){var l=_a(Ui),o=l.data.get(n);return o===void 0&&(o=n(),l.data.set(n,o)),o},cacheSignal:function(){return _a(Ui).controller.signal}},b1=typeof WeakMap=="function"?WeakMap:Map,On=0,ln=null,Pt=null,sn=0,Dn=0,qr=null,No=!1,Vc=!1,wd=!1,Qs=0,fi=0,ko=0,xu=0,Ay=0,Pa=0,$c=0,jt=null,za=null,Ad=!1,Cd=0,Eg=0,Lu=1/0,Xc=null,Ou=null,$i=0,Ps=null,hi=null,zo=0,pr=0,Sg=null,Uo=null,th=0,zn=null;function gr(){return(On&2)!==0&&sn!==0?sn&-sn:X.T!==null?By():yp()}function wa(){if(Pa===0)if((sn&536870912)===0||Yt){var n=ut;ut<<=1,(ut&3932160)===0&&(ut=262144),Pa=n}else Pa=536870912;return n=_i.current,n!==null&&(n.flags|=32),Pa}function Gr(n,l,o){(n===ln&&(Dn===2||Dn===9)||n.cancelPendingCommit!==null)&&(Qc(n,0),ra(n,sn,Pa,!1)),Zo(n,o),((On&2)===0||n!==ln)&&(n===ln&&((On&2)===0&&(xu|=o),fi===4&&ra(n,sn,Pa,!1)),Al(n))}function Cy(n,l,o){if((On&6)!==0)throw Error(h(327));var d=!o&&(l&127)===0&&(l&n.expiredLanes)===0||xt(n,l),b=d?Z0(n,l):nh(n,l,!0),A=d;do{if(b===0){Vc&&!d&&ra(n,l,0,!1);break}else{if(o=n.current.alternate,A&&!Q0(o)){b=nh(n,l,!1),A=!1;continue}if(b===2){if(A=l,n.errorRecoveryDisabledLanes&A)var z=0;else z=n.pendingLanes&-536870913,z=z!==0?z:z&536870912?536870912:0;if(z!==0){l=z;e:{var V=n;b=jt;var oe=V.current.memoizedState.isDehydrated;if(oe&&(Qc(V,z).flags|=256),z=nh(V,z,!1),z!==2){if(wd&&!oe){V.errorRecoveryDisabledLanes|=A,xu|=A,b=4;break e}A=za,za=b,A!==null&&(za===null?za=A:za.push.apply(za,A))}b=z}if(A=!1,b!==2)continue}}if(b===1){Qc(n,0),ra(n,l,0,!0);break}e:{switch(d=n,A=b,A){case 0:case 1:throw Error(h(345));case 4:if((l&4194048)!==l)break;case 6:ra(d,l,Pa,!No);break e;case 2:za=null;break;case 3:case 5:break;default:throw Error(h(329))}if((l&62914560)===l&&(b=Cd+300-Cn(),10<b)){if(ra(d,l,Pa,!No),Ct(d,0,!0)!==0)break e;zo=l,d.timeoutHandle=uh(Tg.bind(null,d,o,za,Xc,Ad,l,Pa,xu,$c,No,A,"Throttled",-0,0),b);break e}Tg(d,o,za,Xc,Ad,l,Pa,xu,$c,No,A,null,-0,0)}}break}while(!0);Al(n)}function Tg(n,l,o,d,b,A,z,V,oe,Le,je,Qe,Oe,Ue){if(n.timeoutHandle=-1,Qe=l.subtreeFlags,Qe&8192||(Qe&16785408)===16785408){Qe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:pl},$0(l,A,Qe);var dt=(A&62914560)===A?Cd-Cn():(A&4194048)===A?Eg-Cn():0;if(dt=fv(Qe,dt),dt!==null){zo=A,n.cancelPendingCommit=dt(F0.bind(null,n,l,A,o,d,b,z,V,oe,je,Qe,null,Oe,Ue)),ra(n,A,z,!Le);return}}F0(n,l,A,o,d,b,z,V,oe)}function Q0(n){for(var l=n;;){var o=l.tag;if((o===0||o===11||o===15)&&l.flags&16384&&(o=l.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var d=0;d<o.length;d++){var b=o[d],A=b.getSnapshot;b=b.value;try{if(!Oa(A(),b))return!1}catch{return!1}}if(o=l.child,l.subtreeFlags&16384&&o!==null)o.return=l,l=o;else{if(l===n)break;for(;l.sibling===null;){if(l.return===null||l.return===n)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function ra(n,l,o,d){l&=~Ay,l&=~xu,n.suspendedLanes|=l,n.pingedLanes&=~l,d&&(n.warmLanes|=l),d=n.expirationTimes;for(var b=l;0<b;){var A=31-pt(b),z=1<<A;d[A]=-1,b&=~z}o!==0&&ic(n,o,l)}function xd(){return(On&6)===0?(Jc(0,!1),!1):!0}function Ld(){if(Pt!==null){if(Dn===0)var n=Pt.return;else n=Pt,Vi=_l=null,td(n),ql=null,wc=0,n=Pt;for(;n!==null;)my(n.alternate,n),n=n.return;Pt=null}}function Qc(n,l){var o=n.timeoutHandle;o!==-1&&(n.timeoutHandle=-1,jy(o)),o=n.cancelPendingCommit,o!==null&&(n.cancelPendingCommit=null,o()),zo=0,Ld(),ln=n,Pt=o=Ni(n.current,null),sn=l,Dn=0,qr=null,No=!1,Vc=xt(n,l),wd=!1,$c=Pa=Ay=xu=ko=fi=0,za=jt=null,Ad=!1,(l&8)!==0&&(l|=l&32);var d=n.entangledLanes;if(d!==0)for(n=n.entanglements,d&=l;0<d;){var b=31-pt(d),A=1<<b;l|=n[b],d&=~A}return Qs=l,ws(),o}function wg(n,l){Rt=null,X.H=fd,l===fu||l===Yn?(l=il(),Dn=3):l===Qh?(l=il(),Dn=4):Dn=l===fy?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,qr=l,Pt===null&&(fi=1,Zf(n,el(l,n.current)))}function xy(){var n=_i.current;return n===null?!0:(sn&4194048)===sn?Mr===null:(sn&62914560)===sn||(sn&536870912)!==0?n===Mr:!1}function Ly(){var n=X.H;return X.H=fd,n===null?fd:n}function Ag(){var n=X.A;return X.A=Td,n}function Cg(){fi=4,No||(sn&4194048)!==sn&&_i.current!==null||(Vc=!0),(ko&134217727)===0&&(xu&134217727)===0||ln===null||ra(ln,sn,Pa,!1)}function nh(n,l,o){var d=On;On|=2;var b=Ly(),A=Ag();(ln!==n||sn!==l)&&(Xc=null,Qc(n,l)),l=!1;var z=fi;e:do try{if(Dn!==0&&Pt!==null){var V=Pt,oe=qr;switch(Dn){case 8:Ld(),z=6;break e;case 3:case 2:case 9:case 6:_i.current===null&&(l=!0);var Le=Dn;if(Dn=0,qr=null,Zs(n,V,oe,Le),o&&Vc){z=0;break e}break;default:Le=Dn,Dn=0,qr=null,Zs(n,V,oe,Le)}}P0(),z=fi;break}catch(je){wg(n,je)}while(!0);return l&&n.shellSuspendCounter++,Vi=_l=null,On=d,X.H=b,X.A=A,Pt===null&&(ln=null,sn=0,ws()),z}function P0(){for(;Pt!==null;)J0(Pt)}function Z0(n,l){var o=On;On|=2;var d=Ly(),b=Ag();ln!==n||sn!==l?(Xc=null,Lu=Cn()+500,Qc(n,l)):Vc=xt(n,l);e:do try{if(Dn!==0&&Pt!==null){l=Pt;var A=qr;t:switch(Dn){case 1:Dn=0,qr=null,Zs(n,l,A,1);break;case 2:case 9:if(Ph(A)){Dn=0,qr=null,ah(l);break}l=function(){Dn!==2&&Dn!==9||ln!==n||(Dn=7),Al(n)},A.then(l,l);break e;case 3:Dn=7;break e;case 4:Dn=5;break e;case 7:Ph(A)?(Dn=0,qr=null,ah(l)):(Dn=0,qr=null,Zs(n,l,A,7));break;case 5:var z=null;switch(Pt.tag){case 26:z=Pt.memoizedState;case 5:case 27:var V=Pt;if(z?ph(z):V.stateNode.complete){Dn=0,qr=null;var oe=V.sibling;if(oe!==null)Pt=oe;else{var Le=V.return;Le!==null?(Pt=Le,xg(Le)):Pt=null}break t}}Dn=0,qr=null,Zs(n,l,A,5);break;case 6:Dn=0,qr=null,Zs(n,l,A,6);break;case 8:Ld(),fi=6;break e;default:throw Error(h(462))}}ih();break}catch(je){wg(n,je)}while(!0);return Vi=_l=null,X.H=d,X.A=b,On=o,Pt!==null?0:(ln=null,sn=0,ws(),fi)}function ih(){for(;Pt!==null&&!La();)J0(Pt)}function J0(n){var l=Hr(n.alternate,n,Qs);n.memoizedProps=n.pendingProps,l===null?xg(n):Pt=l}function ah(n){var l=n,o=l.alternate;switch(l.tag){case 15:case 0:l=dy(o,l,l.pendingProps,l.type,void 0,sn);break;case 11:l=dy(o,l,l.pendingProps,l.type.render,l.ref,sn);break;case 5:td(l);default:my(o,l),l=Pt=vl(l,Qs),l=Hr(o,l,Qs)}n.memoizedProps=n.pendingProps,l===null?xg(n):Pt=l}function Zs(n,l,o,d){Vi=_l=null,td(l),ql=null,wc=0;var b=l.return;try{if(cy(n,b,l,o,sn)){fi=1,Zf(n,el(o,n.current)),Pt=null;return}}catch(A){if(b!==null)throw Pt=b,A;fi=1,Zf(n,el(o,n.current)),Pt=null;return}l.flags&32768?(Yt||d===1?n=!0:Vc||(sn&536870912)!==0?n=!1:(No=n=!0,(d===2||d===9||d===3||d===6)&&(d=_i.current,d!==null&&d.tag===13&&(d.flags|=16384))),K0(l,n)):xg(l)}function xg(n){var l=n;do{if((l.flags&32768)!==0){K0(l,No);return}n=l.return;var o=G0(l.alternate,l,Qs);if(o!==null){Pt=o;return}if(l=l.sibling,l!==null){Pt=l;return}Pt=l=n}while(l!==null);fi===0&&(fi=5)}function K0(n,l){do{var o=yd(n.alternate,n);if(o!==null){o.flags&=32767,Pt=o;return}if(o=n.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!l&&(n=n.sibling,n!==null)){Pt=n;return}Pt=n=o}while(n!==null);fi=6,Pt=null}function F0(n,l,o,d,b,A,z,V,oe){n.cancelPendingCommit=null;do Fl();while($i!==0);if((On&6)!==0)throw Error(h(327));if(l!==null){if(l===n.current)throw Error(h(177));if(A=l.lanes|l.childLanes,A|=pn,gp(n,o,A,z,V,oe),n===ln&&(Pt=ln=null,sn=0),hi=l,Ps=n,zo=o,pr=A,Sg=b,Uo=d,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,av(ha,function(){return Od(),null})):(n.callbackNode=null,n.callbackPriority=0),d=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||d){d=X.T,X.T=null,b=ee.p,ee.p=2,z=On,On|=4;try{j0(n,l,o)}finally{On=z,ee.p=b,X.T=d}}$i=1,W0(),Oy(),ev()}}function W0(){if($i===1){$i=0;var n=Ps,l=hi,o=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||o){o=X.T,X.T=null;var d=ee.p;ee.p=2;var b=On;On|=4;try{Ey(l,n);var A=Mg,z=qp(n.containerInfo),V=A.focusedElem,oe=A.selectionRange;if(z!==V&&V&&V.ownerDocument&&Ip(V.ownerDocument.documentElement,V)){if(oe!==null&&Gp(V)){var Le=oe.start,je=oe.end;if(je===void 0&&(je=Le),"selectionStart"in V)V.selectionStart=Le,V.selectionEnd=Math.min(je,V.value.length);else{var Qe=V.ownerDocument||document,Oe=Qe&&Qe.defaultView||window;if(Oe.getSelection){var Ue=Oe.getSelection(),dt=V.textContent.length,St=Math.min(oe.start,dt),Un=oe.end===void 0?St:Math.min(oe.end,dt);!Ue.extend&&St>Un&&(z=Un,Un=St,St=z);var Ee=Lf(V,St),he=Lf(V,Un);if(Ee&&he&&(Ue.rangeCount!==1||Ue.anchorNode!==Ee.node||Ue.anchorOffset!==Ee.offset||Ue.focusNode!==he.node||Ue.focusOffset!==he.offset)){var xe=Qe.createRange();xe.setStart(Ee.node,Ee.offset),Ue.removeAllRanges(),St>Un?(Ue.addRange(xe),Ue.extend(he.node,he.offset)):(xe.setEnd(he.node,he.offset),Ue.addRange(xe))}}}}for(Qe=[],Ue=V;Ue=Ue.parentNode;)Ue.nodeType===1&&Qe.push({element:Ue,left:Ue.scrollLeft,top:Ue.scrollTop});for(typeof V.focus=="function"&&V.focus(),V=0;V<Qe.length;V++){var Ve=Qe[V];Ve.element.scrollLeft=Ve.left,Ve.element.scrollTop=Ve.top}}Yd=!!Nd,Mg=Nd=null}finally{On=b,ee.p=d,X.T=o}}n.current=l,$i=2}}function Oy(){if($i===2){$i=0;var n=Ps,l=hi,o=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||o){o=X.T,X.T=null;var d=ee.p;ee.p=2;var b=On;On|=4;try{by(n,l.alternate,l)}finally{On=b,ee.p=d,X.T=o}}$i=3}}function ev(){if($i===4||$i===3){$i=0,lr();var n=Ps,l=hi,o=zo,d=Uo;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?$i=5:($i=0,hi=Ps=null,Dy(n,n.pendingLanes));var b=n.pendingLanes;if(b===0&&(Ou=null),Nm(o),l=l.stateNode,Ae&&typeof Ae.onCommitFiberRoot=="function")try{Ae.onCommitFiberRoot(ve,l,void 0,(l.current.flags&128)===128)}catch{}if(d!==null){l=X.T,b=ee.p,ee.p=2,X.T=null;try{for(var A=n.onRecoverableError,z=0;z<d.length;z++){var V=d[z];A(V.value,{componentStack:V.stack})}}finally{X.T=l,ee.p=b}}(zo&3)!==0&&Fl(),Al(n),b=n.pendingLanes,(o&261930)!==0&&(b&42)!==0?n===zn?th++:(th=0,zn=n):th=0,Jc(0,!1)}}function Dy(n,l){(n.pooledCacheLanes&=l)===0&&(l=n.pooledCache,l!=null&&(n.pooledCache=null,li(l)))}function Fl(){return W0(),Oy(),ev(),Od()}function Od(){if($i!==5)return!1;var n=Ps,l=pr;pr=0;var o=Nm(zo),d=X.T,b=ee.p;try{ee.p=32>o?32:o,X.T=null,o=Sg,Sg=null;var A=Ps,z=zo;if($i=0,hi=Ps=null,zo=0,(On&6)!==0)throw Error(h(331));var V=On;if(On|=4,Ed(A.current),Ty(A,A.current,z,o),On=V,Jc(0,!1),Ae&&typeof Ae.onPostCommitFiberRoot=="function")try{Ae.onPostCommitFiberRoot(ve,A)}catch{}return!0}finally{ee.p=b,X.T=d,Dy(n,l)}}function tv(n,l,o){l=el(o,l),l=dg(n.stateNode,l,2),n=Bs(n,l,2),n!==null&&(Zo(n,2),Al(n))}function Mn(n,l,o){if(n.tag===3)tv(n,n,o);else for(;l!==null;){if(l.tag===3){tv(l,n,o);break}else if(l.tag===1){var d=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Ou===null||!Ou.has(d))){n=el(o,n),o=Br(2),d=Bs(l,o,2),d!==null&&(Sl(o,d,l,n),Zo(d,2),Al(d));break}}l=l.return}}function Dd(n,l,o){var d=n.pingCache;if(d===null){d=n.pingCache=new b1;var b=new Set;d.set(l,b)}else b=d.get(l),b===void 0&&(b=new Set,d.set(l,b));b.has(o)||(wd=!0,b.add(o),n=My.bind(null,n,l,o),l.then(n,n))}function My(n,l,o){var d=n.pingCache;d!==null&&d.delete(l),n.pingedLanes|=n.suspendedLanes&o,n.warmLanes&=~o,ln===n&&(sn&o)===o&&(fi===4||fi===3&&(sn&62914560)===sn&&300>Cn()-Cd?(On&2)===0&&Qc(n,0):Ay|=o,$c===sn&&($c=0)),Al(n)}function Ry(n,l){l===0&&(l=or()),n=bc(n,l),n!==null&&(Zo(n,l),Al(n))}function nv(n){var l=n.memoizedState,o=0;l!==null&&(o=l.retryLane),Ry(n,o)}function iv(n,l){var o=0;switch(n.tag){case 31:case 13:var d=n.stateNode,b=n.memoizedState;b!==null&&(o=b.retryLane);break;case 19:d=n.stateNode;break;case 22:d=n.stateNode._retryCache;break;default:throw Error(h(314))}d!==null&&d.delete(l),Ry(n,o)}function av(n,l){return nn(n,l)}var Lg=null,Du=null,Ny=!1,Pc=!1,Zc=!1,Js=0;function Al(n){n!==Du&&n.next===null&&(Du===null?Lg=Du=n:Du=Du.next=n),Pc=!0,Ny||(Ny=!0,_1())}function Jc(n,l){if(!Zc&&Pc){Zc=!0;do for(var o=!1,d=Lg;d!==null;){if(!l)if(n!==0){var b=d.pendingLanes;if(b===0)var A=0;else{var z=d.suspendedLanes,V=d.pingedLanes;A=(1<<31-pt(42|n)+1)-1,A&=b&~(z&~V),A=A&201326741?A&201326741|1:A?A|2:0}A!==0&&(o=!0,Uy(d,A))}else A=sn,A=Ct(d,d===ln?A:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),(A&3)===0||xt(d,A)||(o=!0,Uy(d,A));d=d.next}while(o);Zc=!1}}function jr(){ky()}function ky(){Pc=Ny=!1;var n=0;Js!==0&&uv()&&(n=Js);for(var l=Cn(),o=null,d=Lg;d!==null;){var b=d.next,A=zy(d,l);A===0?(d.next=null,o===null?Lg=b:o.next=b,b===null&&(Du=o)):(o=d,(n!==0||(A&3)!==0)&&(Pc=!0)),d=b}$i!==0&&$i!==5||Jc(n,!1),Js!==0&&(Js=0)}function zy(n,l){for(var o=n.suspendedLanes,d=n.pingedLanes,b=n.expirationTimes,A=n.pendingLanes&-62914561;0<A;){var z=31-pt(A),V=1<<z,oe=b[z];oe===-1?((V&o)===0||(V&d)!==0)&&(b[z]=sr(V,l)):oe<=l&&(n.expiredLanes|=V),A&=~V}if(l=ln,o=sn,o=Ct(n,n===l?o:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),d=n.callbackNode,o===0||n===l&&(Dn===2||Dn===9)||n.cancelPendingCommit!==null)return d!==null&&d!==null&&fa(d),n.callbackNode=null,n.callbackPriority=0;if((o&3)===0||xt(n,o)){if(l=o&-o,l===n.callbackPriority)return l;switch(d!==null&&fa(d),Nm(o)){case 2:case 8:o=ji;break;case 32:o=ha;break;case 268435456:o=R;break;default:o=ha}return d=Og.bind(null,n),o=nn(o,d),n.callbackPriority=l,n.callbackNode=o,l}return d!==null&&d!==null&&fa(d),n.callbackPriority=2,n.callbackNode=null,2}function Og(n,l){if($i!==0&&$i!==5)return n.callbackNode=null,n.callbackPriority=0,null;var o=n.callbackNode;if(Fl()&&n.callbackNode!==o)return null;var d=sn;return d=Ct(n,n===ln?d:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),d===0?null:(Cy(n,d,l),zy(n,Cn()),n.callbackNode!=null&&n.callbackNode===o?Og.bind(null,n):null)}function Uy(n,l){if(Fl())return null;Cy(n,l,!0)}function _1(){Ug(function(){(On&6)!==0?nn(Po,jr):ky()})}function By(){if(Js===0){var n=Ke;n===0&&(n=Ze,Ze<<=1,(Ze&261888)===0&&(Ze=256)),Js=n}return Js}function rv(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:dl(""+n)}function Hy(n,l){var o=l.ownerDocument.createElement("input");return o.name=l.name,o.value=l.value,n.id&&o.setAttribute("form",n.id),l.parentNode.insertBefore(o,l),n=new FormData(n),o.parentNode.removeChild(o),n}function E1(n,l,o,d,b){if(l==="submit"&&o&&o.stateNode===b){var A=rv((b[cr]||null).action),z=d.submitter;z&&(l=(l=z[cr]||null)?rv(l.formAction):z.getAttribute("formAction"),l!==null&&(A=l,z=null));var V=new Ci("action","action",null,d,b);n.push({event:V,listeners:[{instance:null,listener:function(){if(d.defaultPrevented){if(Js!==0){var oe=z?Hy(b,z):new FormData(b);Qf(o,{pending:!0,data:oe,method:b.method,action:A},null,oe)}}else typeof A=="function"&&(V.preventDefault(),oe=z?Hy(b,z):new FormData(b),Qf(o,{pending:!0,data:oe,method:b.method,action:A},A,oe))},currentTarget:b}]})}}for(var Kc=0;Kc<bo.length;Kc++){var rh=bo[Kc];Ma(rh.toLowerCase(),"on"+(rh[0].toUpperCase()+rh.slice(1)))}Ma(lt,"onAnimationEnd"),Ma(Lt,"onAnimationIteration"),Ma(cn,"onAnimationStart"),Ma("dblclick","onDoubleClick"),Ma("focusin","onFocus"),Ma("focusout","onBlur"),Ma(Fn,"onTransitionRun"),Ma(fn,"onTransitionStart"),Ma(Yh,"onTransitionCancel"),Ma(jp,"onTransitionEnd"),ys("onMouseEnter",["mouseout","mouseover"]),ys("onMouseLeave",["mouseout","mouseover"]),ys("onPointerEnter",["pointerout","pointerover"]),ys("onPointerLeave",["pointerout","pointerover"]),Fo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Fo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Fo("onBeforeInput",["compositionend","keypress","textInput","paste"]),Fo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Fo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Fo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lh="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Cl=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(lh));function Md(n,l){l=(l&4)!==0;for(var o=0;o<n.length;o++){var d=n[o],b=d.event;d=d.listeners;e:{var A=void 0;if(l)for(var z=d.length-1;0<=z;z--){var V=d[z],oe=V.instance,Le=V.currentTarget;if(V=V.listener,oe!==A&&b.isPropagationStopped())break e;A=V,b.currentTarget=Le;try{A(b)}catch(je){mn(je)}b.currentTarget=null,A=oe}else for(z=0;z<d.length;z++){if(V=d[z],oe=V.instance,Le=V.currentTarget,V=V.listener,oe!==A&&b.isPropagationStopped())break e;A=V,b.currentTarget=Le;try{A(b)}catch(je){mn(je)}b.currentTarget=null,A=oe}}}}function Xt(n,l){var o=l[Rh];o===void 0&&(o=l[Rh]=new Set);var d=n+"__bubble";o.has(d)||(Xi(l,n,2,!1),o.add(d))}function ll(n,l,o){var d=0;l&&(d|=4),Xi(o,n,d,l)}var Nt="_reactListening"+Math.random().toString(36).slice(2);function Iy(n){if(!n[Nt]){n[Nt]=!0,Ko.forEach(function(o){o!=="selectionchange"&&(Cl.has(o)||ll(o,!1,n),ll(o,!0,n))});var l=n.nodeType===9?n:n.ownerDocument;l===null||l[Nt]||(l[Nt]=!0,ll("selectionchange",!1,l))}}function Xi(n,l,o,d){switch(ef(l)){case 2:var b=T1;break;case 8:b=w1;break;default:b=Qi}o=b.bind(null,l,o,n),b=void 0,!kh||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(b=!0),d?b!==void 0?n.addEventListener(l,o,{capture:!0,passive:b}):n.addEventListener(l,o,!0):b!==void 0?n.addEventListener(l,o,{passive:b}):n.addEventListener(l,o,!1)}function Zn(n,l,o,d,b){var A=d;if((l&1)===0&&(l&2)===0&&d!==null)e:for(;;){if(d===null)return;var z=d.tag;if(z===3||z===4){var V=d.stateNode.containerInfo;if(V===b)break;if(z===4)for(z=d.return;z!==null;){var oe=z.tag;if((oe===3||oe===4)&&z.stateNode.containerInfo===b)return;z=z.return}for(;V!==null;){if(z=ac(V),z===null)return;if(oe=z.tag,oe===5||oe===6||oe===26||oe===27){d=A=z;continue e}V=V.parentNode}}d=d.return}Gm(function(){var Le=A,je=Lp(o),Qe=[];e:{var Oe=ya.get(n);if(Oe!==void 0){var Ue=Ci,dt=n;switch(n){case"keypress":if(Dp(o)===0)break e;case"keydown":case"keyup":Ue=wf;break;case"focusin":dt="focus",Ue=Hh;break;case"focusout":dt="blur",Ue=Hh;break;case"beforeblur":case"afterblur":Ue=Hh;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ue=dc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ue=Vm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ue=ri;break;case lt:case Lt:case cn:Ue=$m;break;case jp:Ue=Yi;break;case"scroll":case"scrollend":Ue=hc;break;case"wheel":Ue=ml;break;case"copy":case"cut":case"paste":Ue=Xm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ue=Fr;break;case"toggle":case"beforetoggle":Ue=Rp}var St=(l&4)!==0,Un=!St&&(n==="scroll"||n==="scrollend"),Ee=St?Oe!==null?Oe+"Capture":null:Oe;St=[];for(var he=Le,xe;he!==null;){var Ve=he;if(xe=Ve.stateNode,Ve=Ve.tag,Ve!==5&&Ve!==26&&Ve!==27||xe===null||Ee===null||(Ve=da(he,Ee),Ve!=null&&St.push(sh(he,Ve,xe))),Un)break;he=he.return}0<St.length&&(Oe=new Ue(Oe,dt,null,o,je),Qe.push({event:Oe,listeners:St}))}}if((l&7)===0){e:{if(Oe=n==="mouseover"||n==="pointerover",Ue=n==="mouseout"||n==="pointerout",Oe&&o!==xp&&(dt=o.relatedTarget||o.fromElement)&&(ac(dt)||dt[Jo]))break e;if((Ue||Oe)&&(Oe=je.window===je?je:(Oe=je.ownerDocument)?Oe.defaultView||Oe.parentWindow:window,Ue?(dt=o.relatedTarget||o.toElement,Ue=Le,dt=dt?ac(dt):null,dt!==null&&(Un=v(dt),St=dt.tag,dt!==Un||St!==5&&St!==27&&St!==6)&&(dt=null)):(Ue=null,dt=Le),Ue!==dt)){if(St=dc,Ve="onMouseLeave",Ee="onMouseEnter",he="mouse",(n==="pointerout"||n==="pointerover")&&(St=Fr,Ve="onPointerLeave",Ee="onPointerEnter",he="pointer"),Un=Ue==null?Oe:bf(Ue),xe=dt==null?Oe:bf(dt),Oe=new St(Ve,he+"leave",Ue,o,je),Oe.target=Un,Oe.relatedTarget=xe,Ve=null,ac(je)===Le&&(St=new St(Ee,he+"enter",dt,o,je),St.target=xe,St.relatedTarget=Un,Ve=St),Un=Ve,Ue&&dt)t:{for(St=qy,Ee=Ue,he=dt,xe=0,Ve=Ee;Ve;Ve=St(Ve))xe++;Ve=0;for(var yt=he;yt;yt=St(yt))Ve++;for(;0<xe-Ve;)Ee=St(Ee),xe--;for(;0<Ve-xe;)he=St(he),Ve--;for(;xe--;){if(Ee===he||he!==null&&Ee===he.alternate){St=Ee;break t}Ee=St(Ee),he=St(he)}St=null}else St=null;Ue!==null&&Dg(Qe,Oe,Ue,St,!1),dt!==null&&Un!==null&&Dg(Qe,Un,dt,St,!0)}}e:{if(Oe=Le?bf(Le):window,Ue=Oe.nodeName&&Oe.nodeName.toLowerCase(),Ue==="select"||Ue==="input"&&Oe.type==="file")var An=Gh;else if(zp(Oe))if(yc)An=Jm;else{An=Hp;var gt=Zm}else Ue=Oe.nodeName,!Ue||Ue.toLowerCase()!=="input"||Oe.type!=="checkbox"&&Oe.type!=="radio"?Le&&Cp(Le.elementType)&&(An=Gh):An=yl;if(An&&(An=An(n,Le))){Wi(Qe,An,o,je);break e}gt&&gt(n,Oe,Le),n==="focusout"&&Le&&Oe.type==="number"&&Le.memoizedProps.value!=null&&mo(Oe,"number",Oe.value)}switch(gt=Le?bf(Le):window,n){case"focusin":(zp(gt)||gt.contentEditable==="true")&&(bi=gt,Ss=Le,Of=null);break;case"focusout":Of=Ss=bi=null;break;case"mousedown":Df=!0;break;case"contextmenu":case"mouseup":case"dragend":Df=!1,vo(Qe,o,je);break;case"selectionchange":if(vc)break;case"keydown":case"keyup":vo(Qe,o,je)}var It;if(Ih)e:{switch(n){case"compositionstart":var Ft="onCompositionStart";break e;case"compositionend":Ft="onCompositionEnd";break e;case"compositionupdate":Ft="onCompositionUpdate";break e}Ft=void 0}else tu?kp(n,o)&&(Ft="onCompositionEnd"):n==="keydown"&&o.keyCode===229&&(Ft="onCompositionStart");Ft&&(Np&&o.locale!=="ko"&&(tu||Ft!=="onCompositionStart"?Ft==="onCompositionEnd"&&tu&&(It=Ym()):(dn=je,jm="value"in dn?dn.value:dn.textContent,tu=!0)),gt=Yr(Le,Ft),0<gt.length&&(Ft=new ja(Ft,n,null,o,je),Qe.push({event:Ft,listeners:gt}),It?Ft.data=It:(It=Qm(o),It!==null&&(Ft.data=It)))),(It=v1?mc(n,o):xf(n,o))&&(Ft=Yr(Le,"onBeforeInput"),0<Ft.length&&(gt=new ja("onBeforeInput","beforeinput",null,o,je),Qe.push({event:gt,listeners:Ft}),gt.data=It)),E1(Qe,n,Le,o,je)}Md(Qe,l)})}function sh(n,l,o){return{instance:n,listener:l,currentTarget:o}}function Yr(n,l){for(var o=l+"Capture",d=[];n!==null;){var b=n,A=b.stateNode;if(b=b.tag,b!==5&&b!==26&&b!==27||A===null||(b=da(n,o),b!=null&&d.unshift(sh(n,b,A)),b=da(n,l),b!=null&&d.push(sh(n,b,A))),n.tag===3)return d;n=n.return}return[]}function qy(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function Dg(n,l,o,d,b){for(var A=l._reactName,z=[];o!==null&&o!==d;){var V=o,oe=V.alternate,Le=V.stateNode;if(V=V.tag,oe!==null&&oe===d)break;V!==5&&V!==26&&V!==27||Le===null||(oe=Le,b?(Le=da(o,A),Le!=null&&z.unshift(sh(o,Le,oe))):b||(Le=da(o,A),Le!=null&&z.push(sh(o,Le,oe)))),o=o.return}z.length!==0&&n.push({event:l,listeners:z})}var lv=/\r\n?/g,sv=/\u0000|\uFFFD/g;function ov(n){return(typeof n=="string"?n:""+n).replace(lv,`
`).replace(sv,"")}function Rd(n,l){return l=ov(l),ov(n)===l}function Xn(n,l,o,d,b,A){switch(o){case"children":typeof d=="string"?l==="body"||l==="textarea"&&d===""||vs(n,d):(typeof d=="number"||typeof d=="bigint")&&l!=="body"&&vs(n,""+d);break;case"className":_f(n,"class",d);break;case"tabIndex":_f(n,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":_f(n,o,d);break;case"style":qm(n,d,A);break;case"data":if(l!=="object"){_f(n,"data",d);break}case"src":case"href":if(d===""&&(l!=="a"||o!=="href")){n.removeAttribute(o);break}if(d==null||typeof d=="function"||typeof d=="symbol"||typeof d=="boolean"){n.removeAttribute(o);break}d=dl(""+d),n.setAttribute(o,d);break;case"action":case"formAction":if(typeof d=="function"){n.setAttribute(o,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof A=="function"&&(o==="formAction"?(l!=="input"&&Xn(n,l,"name",b.name,b,null),Xn(n,l,"formEncType",b.formEncType,b,null),Xn(n,l,"formMethod",b.formMethod,b,null),Xn(n,l,"formTarget",b.formTarget,b,null)):(Xn(n,l,"encType",b.encType,b,null),Xn(n,l,"method",b.method,b,null),Xn(n,l,"target",b.target,b,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){n.removeAttribute(o);break}d=dl(""+d),n.setAttribute(o,d);break;case"onClick":d!=null&&(n.onclick=pl);break;case"onScroll":d!=null&&Xt("scroll",n);break;case"onScrollEnd":d!=null&&Xt("scrollend",n);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(h(61));if(o=d.__html,o!=null){if(b.children!=null)throw Error(h(60));n.innerHTML=o}}break;case"multiple":n.multiple=d&&typeof d!="function"&&typeof d!="symbol";break;case"muted":n.muted=d&&typeof d!="function"&&typeof d!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(d==null||typeof d=="function"||typeof d=="boolean"||typeof d=="symbol"){n.removeAttribute("xlink:href");break}o=dl(""+d),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":d!=null&&typeof d!="function"&&typeof d!="symbol"?n.setAttribute(o,""+d):n.removeAttribute(o);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":d&&typeof d!="function"&&typeof d!="symbol"?n.setAttribute(o,""):n.removeAttribute(o);break;case"capture":case"download":d===!0?n.setAttribute(o,""):d!==!1&&d!=null&&typeof d!="function"&&typeof d!="symbol"?n.setAttribute(o,d):n.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":d!=null&&typeof d!="function"&&typeof d!="symbol"&&!isNaN(d)&&1<=d?n.setAttribute(o,d):n.removeAttribute(o);break;case"rowSpan":case"start":d==null||typeof d=="function"||typeof d=="symbol"||isNaN(d)?n.removeAttribute(o):n.setAttribute(o,d);break;case"popover":Xt("beforetoggle",n),Xt("toggle",n),sc(n,"popover",d);break;case"xlinkActuate":go(n,"http://www.w3.org/1999/xlink","xlink:actuate",d);break;case"xlinkArcrole":go(n,"http://www.w3.org/1999/xlink","xlink:arcrole",d);break;case"xlinkRole":go(n,"http://www.w3.org/1999/xlink","xlink:role",d);break;case"xlinkShow":go(n,"http://www.w3.org/1999/xlink","xlink:show",d);break;case"xlinkTitle":go(n,"http://www.w3.org/1999/xlink","xlink:title",d);break;case"xlinkType":go(n,"http://www.w3.org/1999/xlink","xlink:type",d);break;case"xmlBase":go(n,"http://www.w3.org/XML/1998/namespace","xml:base",d);break;case"xmlLang":go(n,"http://www.w3.org/XML/1998/namespace","xml:lang",d);break;case"xmlSpace":go(n,"http://www.w3.org/XML/1998/namespace","xml:space",d);break;case"is":sc(n,"is",d);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=y1.get(o)||o,sc(n,o,d))}}function Wl(n,l,o,d,b,A){switch(o){case"style":qm(n,d,A);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(h(61));if(o=d.__html,o!=null){if(b.children!=null)throw Error(h(60));n.innerHTML=o}}break;case"children":typeof d=="string"?vs(n,d):(typeof d=="number"||typeof d=="bigint")&&vs(n,""+d);break;case"onScroll":d!=null&&Xt("scroll",n);break;case"onScrollEnd":d!=null&&Xt("scrollend",n);break;case"onClick":d!=null&&(n.onclick=pl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!po.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(b=o.endsWith("Capture"),l=o.slice(2,b?o.length-7:void 0),A=n[cr]||null,A=A!=null?A[o]:null,typeof A=="function"&&n.removeEventListener(l,A,b),typeof d=="function")){typeof A!="function"&&A!==null&&(o in n?n[o]=null:n.hasAttribute(o)&&n.removeAttribute(o)),n.addEventListener(l,d,b);break e}o in n?n[o]=d:d===!0?n.setAttribute(o,""):sc(n,o,d)}}}function Ii(n,l,o){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Xt("error",n),Xt("load",n);var d=!1,b=!1,A;for(A in o)if(o.hasOwnProperty(A)){var z=o[A];if(z!=null)switch(A){case"src":d=!0;break;case"srcSet":b=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(h(137,l));default:Xn(n,l,A,z,o,null)}}b&&Xn(n,l,"srcSet",o.srcSet,o,null),d&&Xn(n,l,"src",o.src,o,null);return;case"input":Xt("invalid",n);var V=A=z=b=null,oe=null,Le=null;for(d in o)if(o.hasOwnProperty(d)){var je=o[d];if(je!=null)switch(d){case"name":b=je;break;case"type":z=je;break;case"checked":oe=je;break;case"defaultChecked":Le=je;break;case"value":A=je;break;case"defaultValue":V=je;break;case"children":case"dangerouslySetInnerHTML":if(je!=null)throw Error(h(137,l));break;default:Xn(n,l,d,je,o,null)}}uc(n,A,V,oe,Le,z,b,!1);return;case"select":Xt("invalid",n),d=z=A=null;for(b in o)if(o.hasOwnProperty(b)&&(V=o[b],V!=null))switch(b){case"value":A=V;break;case"defaultValue":z=V;break;case"multiple":d=V;default:Xn(n,l,b,V,o,null)}l=A,o=z,n.multiple=!!d,l!=null?kl(n,!!d,l,!1):o!=null&&kl(n,!!d,o,!0);return;case"textarea":Xt("invalid",n),A=b=d=null;for(z in o)if(o.hasOwnProperty(z)&&(V=o[z],V!=null))switch(z){case"value":d=V;break;case"defaultValue":b=V;break;case"children":A=V;break;case"dangerouslySetInnerHTML":if(V!=null)throw Error(h(91));break;default:Xn(n,l,z,V,o,null)}Ap(n,d,b,A);return;case"option":for(oe in o)o.hasOwnProperty(oe)&&(d=o[oe],d!=null)&&(oe==="selected"?n.selected=d&&typeof d!="function"&&typeof d!="symbol":Xn(n,l,oe,d,o,null));return;case"dialog":Xt("beforetoggle",n),Xt("toggle",n),Xt("cancel",n),Xt("close",n);break;case"iframe":case"object":Xt("load",n);break;case"video":case"audio":for(d=0;d<lh.length;d++)Xt(lh[d],n);break;case"image":Xt("error",n),Xt("load",n);break;case"details":Xt("toggle",n);break;case"embed":case"source":case"link":Xt("error",n),Xt("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Le in o)if(o.hasOwnProperty(Le)&&(d=o[Le],d!=null))switch(Le){case"children":case"dangerouslySetInnerHTML":throw Error(h(137,l));default:Xn(n,l,Le,d,o,null)}return;default:if(Cp(l)){for(je in o)o.hasOwnProperty(je)&&(d=o[je],d!==void 0&&Wl(n,l,je,d,o,void 0));return}}for(V in o)o.hasOwnProperty(V)&&(d=o[V],d!=null&&Xn(n,l,V,d,o,null))}function Fc(n,l,o,d){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var b=null,A=null,z=null,V=null,oe=null,Le=null,je=null;for(Ue in o){var Qe=o[Ue];if(o.hasOwnProperty(Ue)&&Qe!=null)switch(Ue){case"checked":break;case"value":break;case"defaultValue":oe=Qe;default:d.hasOwnProperty(Ue)||Xn(n,l,Ue,null,d,Qe)}}for(var Oe in d){var Ue=d[Oe];if(Qe=o[Oe],d.hasOwnProperty(Oe)&&(Ue!=null||Qe!=null))switch(Oe){case"type":A=Ue;break;case"name":b=Ue;break;case"checked":Le=Ue;break;case"defaultChecked":je=Ue;break;case"value":z=Ue;break;case"defaultValue":V=Ue;break;case"children":case"dangerouslySetInnerHTML":if(Ue!=null)throw Error(h(137,l));break;default:Ue!==Qe&&Xn(n,l,Oe,Ue,d,Qe)}}Sf(n,z,V,oe,Le,je,A,b);return;case"select":Ue=z=V=Oe=null;for(A in o)if(oe=o[A],o.hasOwnProperty(A)&&oe!=null)switch(A){case"value":break;case"multiple":Ue=oe;default:d.hasOwnProperty(A)||Xn(n,l,A,null,d,oe)}for(b in d)if(A=d[b],oe=o[b],d.hasOwnProperty(b)&&(A!=null||oe!=null))switch(b){case"value":Oe=A;break;case"defaultValue":V=A;break;case"multiple":z=A;default:A!==oe&&Xn(n,l,b,A,d,oe)}l=V,o=z,d=Ue,Oe!=null?kl(n,!!o,Oe,!1):!!d!=!!o&&(l!=null?kl(n,!!o,l,!0):kl(n,!!o,o?[]:"",!1));return;case"textarea":Ue=Oe=null;for(V in o)if(b=o[V],o.hasOwnProperty(V)&&b!=null&&!d.hasOwnProperty(V))switch(V){case"value":break;case"children":break;default:Xn(n,l,V,null,d,b)}for(z in d)if(b=d[z],A=o[z],d.hasOwnProperty(z)&&(b!=null||A!=null))switch(z){case"value":Oe=b;break;case"defaultValue":Ue=b;break;case"children":break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(h(91));break;default:b!==A&&Xn(n,l,z,b,d,A)}wp(n,Oe,Ue);return;case"option":for(var dt in o)Oe=o[dt],o.hasOwnProperty(dt)&&Oe!=null&&!d.hasOwnProperty(dt)&&(dt==="selected"?n.selected=!1:Xn(n,l,dt,null,d,Oe));for(oe in d)Oe=d[oe],Ue=o[oe],d.hasOwnProperty(oe)&&Oe!==Ue&&(Oe!=null||Ue!=null)&&(oe==="selected"?n.selected=Oe&&typeof Oe!="function"&&typeof Oe!="symbol":Xn(n,l,oe,Oe,d,Ue));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var St in o)Oe=o[St],o.hasOwnProperty(St)&&Oe!=null&&!d.hasOwnProperty(St)&&Xn(n,l,St,null,d,Oe);for(Le in d)if(Oe=d[Le],Ue=o[Le],d.hasOwnProperty(Le)&&Oe!==Ue&&(Oe!=null||Ue!=null))switch(Le){case"children":case"dangerouslySetInnerHTML":if(Oe!=null)throw Error(h(137,l));break;default:Xn(n,l,Le,Oe,d,Ue)}return;default:if(Cp(l)){for(var Un in o)Oe=o[Un],o.hasOwnProperty(Un)&&Oe!==void 0&&!d.hasOwnProperty(Un)&&Wl(n,l,Un,void 0,d,Oe);for(je in d)Oe=d[je],Ue=o[je],!d.hasOwnProperty(je)||Oe===Ue||Oe===void 0&&Ue===void 0||Wl(n,l,je,Oe,d,Ue);return}}for(var Ee in o)Oe=o[Ee],o.hasOwnProperty(Ee)&&Oe!=null&&!d.hasOwnProperty(Ee)&&Xn(n,l,Ee,null,d,Oe);for(Qe in d)Oe=d[Qe],Ue=o[Qe],!d.hasOwnProperty(Qe)||Oe===Ue||Oe==null&&Ue==null||Xn(n,l,Qe,Oe,d,Ue)}function di(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Li(){if(typeof performance.getEntriesByType=="function"){for(var n=0,l=0,o=performance.getEntriesByType("resource"),d=0;d<o.length;d++){var b=o[d],A=b.transferSize,z=b.initiatorType,V=b.duration;if(A&&V&&di(z)){for(z=0,V=b.responseEnd,d+=1;d<o.length;d++){var oe=o[d],Le=oe.startTime;if(Le>V)break;var je=oe.transferSize,Qe=oe.initiatorType;je&&di(Qe)&&(oe=oe.responseEnd,z+=je*(oe<V?1:(V-Le)/(oe-Le)))}if(--d,l+=8*(A+z)/(b.duration/1e3),n++,10<n)break}}if(0<n)return l/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var Nd=null,Mg=null;function oh(n){return n.nodeType===9?n:n.ownerDocument}function Gy(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Rg(n,l){if(n===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&l==="foreignObject"?0:n}function Ng(n,l){return n==="textarea"||n==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var kg=null;function uv(){var n=window.event;return n&&n.type==="popstate"?n===kg?!1:(kg=n,!0):(kg=null,!1)}var uh=typeof setTimeout=="function"?setTimeout:void 0,jy=typeof clearTimeout=="function"?clearTimeout:void 0,zg=typeof Promise=="function"?Promise:void 0,Ug=typeof queueMicrotask=="function"?queueMicrotask:typeof zg<"u"?function(n){return zg.resolve(null).then(n).catch(ch)}:uh;function ch(n){setTimeout(function(){throw n})}function qi(n){return n==="head"}function Mu(n,l){var o=l,d=0;do{var b=o.nextSibling;if(n.removeChild(o),b&&b.nodeType===8)if(o=b.data,o==="/$"||o==="/&"){if(d===0){n.removeChild(b),vr(l);return}d--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")d++;else if(o==="html")pi(n.ownerDocument.documentElement);else if(o==="head"){o=n.ownerDocument.head,pi(o);for(var A=o.firstChild;A;){var z=A.nextSibling,V=A.nodeName;A[ps]||V==="SCRIPT"||V==="STYLE"||V==="LINK"&&A.rel.toLowerCase()==="stylesheet"||o.removeChild(A),A=z}}else o==="body"&&pi(n.ownerDocument.body);o=b}while(o);vr(l)}function fh(n,l){var o=n;n=0;do{var d=o.nextSibling;if(o.nodeType===1?l?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(l?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),d&&d.nodeType===8)if(o=d.data,o==="/$"){if(n===0)break;n--}else o!=="$"&&o!=="$?"&&o!=="$~"&&o!=="$!"||n++;o=d}while(o)}function Yy(n){var l=n.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var o=l;switch(l=l.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":Yy(o),vp(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}n.removeChild(o)}}function cv(n,l,o,d){for(;n.nodeType===1;){var b=o;if(n.nodeName.toLowerCase()!==l.toLowerCase()){if(!d&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(d){if(!n[ps])switch(l){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(A=n.getAttribute("rel"),A==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(A!==b.rel||n.getAttribute("href")!==(b.href==null||b.href===""?null:b.href)||n.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin)||n.getAttribute("title")!==(b.title==null?null:b.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(A=n.getAttribute("src"),(A!==(b.src==null?null:b.src)||n.getAttribute("type")!==(b.type==null?null:b.type)||n.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin))&&A&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(l==="input"&&n.type==="hidden"){var A=b.name==null?null:""+b.name;if(b.type==="hidden"&&n.getAttribute("name")===A)return n}else return n;if(n=Aa(n.nextSibling),n===null)break}return null}function Bg(n,l,o){if(l==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!o||(n=Aa(n.nextSibling),n===null))return null;return n}function Vy(n,l){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!l||(n=Aa(n.nextSibling),n===null))return null;return n}function Hg(n){return n.data==="$?"||n.data==="$~"}function Vr(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function Qt(n,l){var o=n.ownerDocument;if(n.data==="$~")n._reactRetry=l;else if(n.data!=="$?"||o.readyState!=="loading")l();else{var d=function(){l(),o.removeEventListener("DOMContentLoaded",d)};o.addEventListener("DOMContentLoaded",d),n._reactRetry=d}}function Aa(n){for(;n!=null;n=n.nextSibling){var l=n.nodeType;if(l===1||l===3)break;if(l===8){if(l=n.data,l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"||l==="F!"||l==="F")break;if(l==="/$"||l==="/&")return null}}return n}var mr=null;function kd(n){n=n.nextSibling;for(var l=0;n;){if(n.nodeType===8){var o=n.data;if(o==="/$"||o==="/&"){if(l===0)return Aa(n.nextSibling);l--}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||l++}n=n.nextSibling}return null}function zd(n){n=n.previousSibling;for(var l=0;n;){if(n.nodeType===8){var o=n.data;if(o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"){if(l===0)return n;l--}else o!=="/$"&&o!=="/&"||l++}n=n.previousSibling}return null}function wn(n,l,o){switch(l=oh(o),n){case"html":if(n=l.documentElement,!n)throw Error(h(452));return n;case"head":if(n=l.head,!n)throw Error(h(453));return n;case"body":if(n=l.body,!n)throw Error(h(454));return n;default:throw Error(h(451))}}function pi(n){for(var l=n.attributes;l.length;)n.removeAttributeNode(l[0]);vp(n)}var yr=new Map,$y=new Set;function Bt(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var Bo=ee.d;ee.d={f:Ks,r:hh,D:Xy,C:Qy,L:Fs,m:Bd,X:Zy,S:Py,M:Ig};function Ks(){var n=Bo.f(),l=xd();return n||l}function hh(n){var l=gs(n);l!==null&&l.tag===5&&l.type==="form"?Ra(l):Bo.r(n)}var es=typeof document>"u"?null:document;function Ud(n,l,o){var d=es;if(d&&typeof l=="string"&&l){var b=Kr(l);b='link[rel="'+n+'"][href="'+b+'"]',typeof o=="string"&&(b+='[crossorigin="'+o+'"]'),$y.has(b)||($y.add(b),n={rel:n,crossOrigin:o,href:l},d.querySelector(b)===null&&(l=d.createElement("link"),Ii(l,"link",n),xn(l),d.head.appendChild(l)))}}function Xy(n){Bo.D(n),Ud("dns-prefetch",n,null)}function Qy(n,l){Bo.C(n,l),Ud("preconnect",n,l)}function Fs(n,l,o){Bo.L(n,l,o);var d=es;if(d&&n&&l){var b='link[rel="preload"][as="'+Kr(l)+'"]';l==="image"&&o&&o.imageSrcSet?(b+='[imagesrcset="'+Kr(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(b+='[imagesizes="'+Kr(o.imageSizes)+'"]')):b+='[href="'+Kr(n)+'"]';var A=b;switch(l){case"style":A=Ru(n);break;case"script":A=gi(n)}yr.has(A)||(n=x({rel:"preload",href:l==="image"&&o&&o.imageSrcSet?void 0:n,as:l},o),yr.set(A,n),d.querySelector(b)!==null||l==="style"&&d.querySelector(Wc(A))||l==="script"&&d.querySelector(Ce(A))||(l=d.createElement("link"),Ii(l,"link",n),xn(l),d.head.appendChild(l)))}}function Bd(n,l){Bo.m(n,l);var o=es;if(o&&n){var d=l&&typeof l.as=="string"?l.as:"script",b='link[rel="modulepreload"][as="'+Kr(d)+'"][href="'+Kr(n)+'"]',A=b;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":A=gi(n)}if(!yr.has(A)&&(n=x({rel:"modulepreload",href:n},l),yr.set(A,n),o.querySelector(b)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(Ce(A)))return}d=o.createElement("link"),Ii(d,"link",n),xn(d),o.head.appendChild(d)}}}function Py(n,l,o){Bo.S(n,l,o);var d=es;if(d&&n){var b=ms(d).hoistableStyles,A=Ru(n);l=l||"default";var z=b.get(A);if(!z){var V={loading:0,preload:null};if(z=d.querySelector(Wc(A)))V.loading=5;else{n=x({rel:"stylesheet",href:n,"data-precedence":l},o),(o=yr.get(A))&&Hd(n,o);var oe=z=d.createElement("link");xn(oe),Ii(oe,"link",n),oe._p=new Promise(function(Le,je){oe.onload=Le,oe.onerror=je}),oe.addEventListener("load",function(){V.loading|=1}),oe.addEventListener("error",function(){V.loading|=2}),V.loading|=4,qg(z,l,d)}z={type:"stylesheet",instance:z,count:1,state:V},b.set(A,z)}}}function Zy(n,l){Bo.X(n,l);var o=es;if(o&&n){var d=ms(o).hoistableScripts,b=gi(n),A=d.get(b);A||(A=o.querySelector(Ce(b)),A||(n=x({src:n,async:!0},l),(l=yr.get(b))&&Id(n,l),A=o.createElement("script"),xn(A),Ii(A,"link",n),o.head.appendChild(A)),A={type:"script",instance:A,count:1,state:null},d.set(b,A))}}function Ig(n,l){Bo.M(n,l);var o=es;if(o&&n){var d=ms(o).hoistableScripts,b=gi(n),A=d.get(b);A||(A=o.querySelector(Ce(b)),A||(n=x({src:n,async:!0,type:"module"},l),(l=yr.get(b))&&Id(n,l),A=o.createElement("script"),xn(A),Ii(A,"link",n),o.head.appendChild(A)),A={type:"script",instance:A,count:1,state:null},d.set(b,A))}}function Za(n,l,o,d){var b=(b=st.current)?Bt(b):null;if(!b)throw Error(h(446));switch(n){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(l=Ru(o.href),o=ms(b).hoistableStyles,d=o.get(l),d||(d={type:"style",instance:null,count:0,state:null},o.set(l,d)),d):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){n=Ru(o.href);var A=ms(b).hoistableStyles,z=A.get(n);if(z||(b=b.ownerDocument||b,z={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},A.set(n,z),(A=b.querySelector(Wc(n)))&&!A._p&&(z.instance=A,z.state.loading=5),yr.has(n)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},yr.set(n,o),A||S1(b,n,o,z.state))),l&&d===null)throw Error(h(528,""));return z}if(l&&d!==null)throw Error(h(529,""));return null;case"script":return l=o.async,o=o.src,typeof o=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=gi(o),o=ms(b).hoistableScripts,d=o.get(l),d||(d={type:"script",instance:null,count:0,state:null},o.set(l,d)),d):{type:"void",instance:null,count:0,state:null};default:throw Error(h(444,n))}}function Ru(n){return'href="'+Kr(n)+'"'}function Wc(n){return'link[rel="stylesheet"]['+n+"]"}function Jy(n){return x({},n,{"data-precedence":n.precedence,precedence:null})}function S1(n,l,o,d){n.querySelector('link[rel="preload"][as="style"]['+l+"]")?d.loading=1:(l=n.createElement("link"),d.preload=l,l.addEventListener("load",function(){return d.loading|=1}),l.addEventListener("error",function(){return d.loading|=2}),Ii(l,"link",o),xn(l),n.head.appendChild(l))}function gi(n){return'[src="'+Kr(n)+'"]'}function Ce(n){return"script[async]"+n}function Ht(n,l,o){if(l.count++,l.instance===null)switch(l.type){case"style":var d=n.querySelector('style[data-href~="'+Kr(o.href)+'"]');if(d)return l.instance=d,xn(d),d;var b=x({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return d=(n.ownerDocument||n).createElement("style"),xn(d),Ii(d,"style",b),qg(d,o.precedence,n),l.instance=d;case"stylesheet":b=Ru(o.href);var A=n.querySelector(Wc(b));if(A)return l.state.loading|=4,l.instance=A,xn(A),A;d=Jy(o),(b=yr.get(b))&&Hd(d,b),A=(n.ownerDocument||n).createElement("link"),xn(A);var z=A;return z._p=new Promise(function(V,oe){z.onload=V,z.onerror=oe}),Ii(A,"link",d),l.state.loading|=4,qg(A,o.precedence,n),l.instance=A;case"script":return A=gi(o.src),(b=n.querySelector(Ce(A)))?(l.instance=b,xn(b),b):(d=o,(b=yr.get(A))&&(d=x({},o),Id(d,b)),n=n.ownerDocument||n,b=n.createElement("script"),xn(b),Ii(b,"link",d),n.head.appendChild(b),l.instance=b);case"void":return null;default:throw Error(h(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(d=l.instance,l.state.loading|=4,qg(d,o.precedence,n));return l.instance}function qg(n,l,o){for(var d=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),b=d.length?d[d.length-1]:null,A=b,z=0;z<d.length;z++){var V=d[z];if(V.dataset.precedence===l)A=V;else if(A!==b)break}A?A.parentNode.insertBefore(n,A.nextSibling):(l=o.nodeType===9?o.head:o,l.insertBefore(n,l.firstChild))}function Hd(n,l){n.crossOrigin??=l.crossOrigin,n.referrerPolicy??=l.referrerPolicy,n.title??=l.title}function Id(n,l){n.crossOrigin??=l.crossOrigin,n.referrerPolicy??=l.referrerPolicy,n.integrity??=l.integrity}var sl=null;function Ho(n,l,o){if(sl===null){var d=new Map,b=sl=new Map;b.set(o,d)}else b=sl,d=b.get(o),d||(d=new Map,b.set(o,d));if(d.has(n))return d;for(d.set(n,null),o=o.getElementsByTagName(n),b=0;b<o.length;b++){var A=o[b];if(!(A[ps]||A[In]||n==="link"&&A.getAttribute("rel")==="stylesheet")&&A.namespaceURI!=="http://www.w3.org/2000/svg"){var z=A.getAttribute(l)||"";z=n+z;var V=d.get(z);V?V.push(A):d.set(z,[A])}}return d}function dh(n,l,o){n=n.ownerDocument||n,n.head.insertBefore(o,l==="title"?n.querySelector("head > title"):null)}function Nu(n,l,o){if(o===1||l.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;return l.rel==="stylesheet"?(n=l.disabled,typeof l.precedence=="string"&&n==null):!0;case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function ph(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function qd(n,l,o,d){if(o.type==="stylesheet"&&(typeof d.media!="string"||matchMedia(d.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var b=Ru(d.href),A=l.querySelector(Wc(b));if(A){l=A._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(n.count++,n=gh.bind(n),l.then(n,n)),o.state.loading|=4,o.instance=A,xn(A);return}A=l.ownerDocument||l,d=Jy(d),(b=yr.get(b))&&Hd(d,b),A=A.createElement("link"),xn(A);var z=A;z._p=new Promise(function(V,oe){z.onload=V,z.onerror=oe}),Ii(A,"link",d),o.instance=A}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(o,l),(l=o.state.preload)&&(o.state.loading&3)===0&&(n.count++,o=gh.bind(n),l.addEventListener("load",o),l.addEventListener("error",o))}}var Gg=0;function fv(n,l){return n.stylesheets&&n.count===0&&Gd(n,n.stylesheets),0<n.count||0<n.imgCount?function(o){var d=setTimeout(function(){if(n.stylesheets&&Gd(n,n.stylesheets),n.unsuspend){var A=n.unsuspend;n.unsuspend=null,A()}},6e4+l);0<n.imgBytes&&Gg===0&&(Gg=62500*Li());var b=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&Gd(n,n.stylesheets),n.unsuspend)){var A=n.unsuspend;n.unsuspend=null,A()}},(n.imgBytes>Gg?50:800)+l);return n.unsuspend=o,function(){n.unsuspend=null,clearTimeout(d),clearTimeout(b)}}:null}function gh(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Gd(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var mh=null;function Gd(n,l){n.stylesheets=null,n.unsuspend!==null&&(n.count++,mh=new Map,l.forEach(hv,n),mh=null,gh.call(n))}function hv(n,l){if(!(l.state.loading&4)){var o=mh.get(n);if(o)var d=o.get(null);else{o=new Map,mh.set(n,o);for(var b=n.querySelectorAll("link[data-precedence],style[data-precedence]"),A=0;A<b.length;A++){var z=b[A];(z.nodeName==="LINK"||z.getAttribute("media")!=="not all")&&(o.set(z.dataset.precedence,z),d=z)}d&&o.set(null,d)}b=l.instance,z=b.getAttribute("data-precedence"),A=o.get(z)||d,A===d&&o.set(null,b),o.set(z,b),this.count++,d=gh.bind(this),b.addEventListener("load",d),b.addEventListener("error",d),A?A.parentNode.insertBefore(b,A.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(b,n.firstChild)),l.state.loading|=4}}var yh={$$typeof:Se,Provider:null,Consumer:null,_currentValue:ye,_currentValue2:ye,_threadCount:0};function Ky(n,l,o,d,b,A,z,V,oe){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=nc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nc(0),this.hiddenUpdates=nc(null),this.identifierPrefix=d,this.onUncaughtError=b,this.onCaughtError=A,this.onRecoverableError=z,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=oe,this.incompleteTransitions=new Map}function ku(n,l,o,d,b,A,z,V,oe,Le,je,Qe){return n=new Ky(n,l,o,z,oe,Le,je,Qe,V),l=1,A===!0&&(l|=24),A=Gn(3,null,null,l),n.current=A,A.stateNode=n,l=Ns(),l.refCount++,n.pooledCache=l,l.refCount++,A.memoizedState={element:d,isDehydrated:o,cache:l},zf(A),n}function jg(n){return n?(n=Wr,n):Wr}function Yg(n,l,o,d,b,A){b=jg(b),d.context===null?d.context=b:d.pendingContext=b,d=Bi(l),d.payload={element:o},A=A===void 0?null:A,A!==null&&(d.callback=A),o=Bs(n,d,l),o!==null&&(Gr(o,n,l),Ac(o,n,l))}function $r(n,l){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var o=n.retryLane;n.retryLane=o!==0&&o<l?o:l}}function xl(n,l){$r(n,l),(n=n.alternate)&&$r(n,l)}function Ll(n){if(n.tag===13||n.tag===31){var l=bc(n,67108864);l!==null&&Gr(l,n,67108864),xl(n,67108864)}}function jd(n){if(n.tag===13||n.tag===31){var l=gr();l=mp(l);var o=bc(n,l);o!==null&&Gr(o,n,l),xl(n,l)}}var Yd=!0;function T1(n,l,o,d){var b=X.T;X.T=null;var A=ee.p;try{ee.p=2,Qi(n,l,o,d)}finally{ee.p=A,X.T=b}}function w1(n,l,o,d){var b=X.T;X.T=null;var A=ee.p;try{ee.p=8,Qi(n,l,o,d)}finally{ee.p=A,X.T=b}}function Qi(n,l,o,d){if(Yd){var b=Fy(d);if(b===null)Zn(n,l,d,vh,o),Ja(n,d);else if(A1(b,n,l,o,d))d.stopPropagation();else if(Ja(n,d),l&4&&-1<to.indexOf(n)){for(;b!==null;){var A=gs(b);if(A!==null)switch(A.tag){case 3:if(A=A.stateNode,A.current.memoizedState.isDehydrated){var z=bt(A.pendingLanes);if(z!==0){var V=A;for(V.pendingLanes|=2,V.entangledLanes|=2;z;){var oe=1<<31-pt(z);V.entanglements[1]|=oe,z&=~oe}Al(A),(On&6)===0&&(Lu=Cn()+500,Jc(0,!1))}}break;case 31:case 13:V=bc(A,2),V!==null&&Gr(V,A,2),xd(),xl(A,2)}if(A=Fy(d),A===null&&Zn(n,l,d,vh,o),A===b)break;b=A}b!==null&&d.stopPropagation()}else Zn(n,l,d,null,o)}}function Fy(n){return n=Lp(n),Vd(n)}var vh=null;function Vd(n){if(vh=null,n=ac(n),n!==null){var l=v(n);if(l===null)n=null;else{var o=l.tag;if(o===13){if(n=w(l),n!==null)return n;n=null}else if(o===31){if(n=E(l),n!==null)return n;n=null}else if(o===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;n=null}else l!==n&&(n=null)}}return vh=n,null}function ef(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Rl()){case Po:return 2;case ji:return 8;case ha:case Y:return 32;case R:return 268435456;default:return 32}default:return 32}}var Wy=!1,Ws=null,zu=null,Uu=null,eo=new Map,Pi=new Map,Ua=[],to="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Ja(n,l){switch(n){case"focusin":case"focusout":Ws=null;break;case"dragenter":case"dragleave":zu=null;break;case"mouseover":case"mouseout":Uu=null;break;case"pointerover":case"pointerout":eo.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pi.delete(l.pointerId)}}function $d(n,l,o,d,b,A){return n===null||n.nativeEvent!==A?(n={blockedOn:l,domEventName:o,eventSystemFlags:d,nativeEvent:A,targetContainers:[b]},l!==null&&(l=gs(l),l!==null&&Ll(l)),n):(n.eventSystemFlags|=d,l=n.targetContainers,b!==null&&l.indexOf(b)===-1&&l.push(b),n)}function A1(n,l,o,d,b){switch(l){case"focusin":return Ws=$d(Ws,n,l,o,d,b),!0;case"dragenter":return zu=$d(zu,n,l,o,d,b),!0;case"mouseover":return Uu=$d(Uu,n,l,o,d,b),!0;case"pointerover":var A=b.pointerId;return eo.set(A,$d(eo.get(A)||null,n,l,o,d,b)),!0;case"gotpointercapture":return A=b.pointerId,Pi.set(A,$d(Pi.get(A)||null,n,l,o,d,b)),!0}return!1}function Xd(n){var l=ac(n.target);if(l!==null){var o=v(l);if(o!==null){if(l=o.tag,l===13){if(l=w(o),l!==null){n.blockedOn=l,km(n.priority,function(){jd(o)});return}}else if(l===31){if(l=E(o),l!==null){n.blockedOn=l,km(n.priority,function(){jd(o)});return}}else if(l===3&&o.stateNode.current.memoizedState.isDehydrated){n.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}n.blockedOn=null}function tf(n){if(n.blockedOn!==null)return!1;for(var l=n.targetContainers;0<l.length;){var o=Fy(n.nativeEvent);if(o===null){o=n.nativeEvent;var d=new o.constructor(o.type,o);xp=d,o.target.dispatchEvent(d),xp=null}else return l=gs(o),l!==null&&Ll(l),n.blockedOn=o,!1;l.shift()}return!0}function Qd(n,l,o){tf(n)&&o.delete(l)}function ol(){Wy=!1,Ws!==null&&tf(Ws)&&(Ws=null),zu!==null&&tf(zu)&&(zu=null),Uu!==null&&tf(Uu)&&(Uu=null),eo.forEach(Qd),Pi.forEach(Qd)}function Xr(n,l){n.blockedOn===l&&(n.blockedOn=null,Wy||(Wy=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,ol)))}var ul=null;function Pd(n){ul!==n&&(ul=n,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){ul===n&&(ul=null);for(var l=0;l<n.length;l+=3){var o=n[l],d=n[l+1],b=n[l+2];if(typeof d!="function"){if(Vd(d||o)===null)continue;break}var A=gs(o);A!==null&&(n.splice(l,3),l-=3,Qf(A,{pending:!0,data:b,method:o.method,action:d},d,b))}}))}function vr(n){function l(oe){return Xr(oe,n)}Ws!==null&&Xr(Ws,n),zu!==null&&Xr(zu,n),Uu!==null&&Xr(Uu,n),eo.forEach(l),Pi.forEach(l);for(var o=0;o<Ua.length;o++){var d=Ua[o];d.blockedOn===n&&(d.blockedOn=null)}for(;0<Ua.length&&(o=Ua[0],o.blockedOn===null);)Xd(o),o.blockedOn===null&&Ua.shift();if(o=(n.ownerDocument||n).$$reactFormReplay,o!=null)for(d=0;d<o.length;d+=3){var b=o[d],A=o[d+1],z=b[cr]||null;if(typeof A=="function")z||Pd(o);else if(z){var V=null;if(A&&A.hasAttribute("formAction")){if(b=A,z=A[cr]||null)V=z.formAction;else if(Vd(b)!==null)continue}else V=z.action;typeof V=="function"?o[d+1]=V:(o.splice(d,3),d-=3),Pd(o)}}}function la(){function n(A){A.canIntercept&&A.info==="react-transition"&&A.intercept({handler:function(){return new Promise(function(z){return b=z})},focusReset:"manual",scroll:"manual"})}function l(){b!==null&&(b(),b=null),d||setTimeout(o,20)}function o(){if(!d&&!navigation.transition){var A=navigation.currentEntry;A&&A.url!=null&&navigation.navigate(A.url,{state:A.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var d=!1,b=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",l),navigation.addEventListener("navigateerror",l),setTimeout(o,100),function(){d=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",l),navigation.removeEventListener("navigateerror",l),b!==null&&(b(),b=null)}}}function Ca(n){this._internalRoot=n}ts.prototype.render=Ca.prototype.render=function(n){var l=this._internalRoot;if(l===null)throw Error(h(409));var o=l.current;Yg(o,gr(),n,l,null,null)},ts.prototype.unmount=Ca.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var l=n.containerInfo;Yg(n.current,2,null,n,null,null),xd(),l[Jo]=null}};function ts(n){this._internalRoot=n}ts.prototype.unstable_scheduleHydration=function(n){if(n){var l=yp();n={blockedOn:null,target:n,priority:l};for(var o=0;o<Ua.length&&l!==0&&l<Ua[o].priority;o++);Ua.splice(o,0,n),o===0&&Xd(n)}};var Vg=s.version;if(Vg!=="19.2.7")throw Error(h(527,Vg,"19.2.7"));ee.findDOMNode=function(n){var l=n._reactInternals;if(l===void 0)throw typeof n.render=="function"?Error(h(188)):(n=Object.keys(n).join(","),Error(h(268,n)));return n=_(l),n=n!==null?L(n):null,n=n===null?null:n.stateNode,n};var C1={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:X,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var bh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bh.isDisabled&&bh.supportsFiber)try{ve=bh.inject(C1),Ae=bh}catch{}}i.createRoot=function(n,l){if(!m(n))throw Error(h(299));var o=!1,d="",b=pd,A=Pf,z=oy;return l!=null&&(l.unstable_strictMode===!0&&(o=!0),l.identifierPrefix!==void 0&&(d=l.identifierPrefix),l.onUncaughtError!==void 0&&(b=l.onUncaughtError),l.onCaughtError!==void 0&&(A=l.onCaughtError),l.onRecoverableError!==void 0&&(z=l.onRecoverableError)),l=ku(n,1,!1,null,null,o,d,null,b,A,z,la),n[Jo]=l.current,Iy(n),new Ca(l)},i.hydrateRoot=function(n,l,o){if(!m(n))throw Error(h(299));var d=!1,b="",A=pd,z=Pf,V=oy,oe=null;return o!=null&&(o.unstable_strictMode===!0&&(d=!0),o.identifierPrefix!==void 0&&(b=o.identifierPrefix),o.onUncaughtError!==void 0&&(A=o.onUncaughtError),o.onCaughtError!==void 0&&(z=o.onCaughtError),o.onRecoverableError!==void 0&&(V=o.onRecoverableError),o.formState!==void 0&&(oe=o.formState)),l=ku(n,1,!0,l,o??null,d,b,oe,A,z,V,la),l.context=jg(null),o=l.current,d=gr(),d=mp(d),b=Bi(d),b.callback=null,Bs(o,b,d),o=d,l.current.lanes=o,Zo(l,o),Al(l),n[Jo]=l.current,Iy(n),new ts(l)},i.version="19.2.7"})),JD=Bn((i=>{hf(),Ki.env.NODE_ENV!=="production"&&(function(){function a(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function s(e,t,r,u){if(r>=t.length)return u;var g=t[r],y=gi(e)?e.slice():Bt({},e);return y[g]=s(e[g],t,r+1,u),y}function f(e,t,r){if(t.length!==r.length)console.warn("copyWithRename() expects paths of the same length");else{for(var u=0;u<r.length-1;u++)if(t[u]!==r[u]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return h(e,t,r,0)}}function h(e,t,r,u){var g=t[u],y=gi(e)?e.slice():Bt({},e);return u+1===t.length?(y[r[u]]=y[g],gi(y)?y.splice(g,1):delete y[g]):y[g]=h(e[g],t,r,u+1),y}function m(e,t,r){var u=t[r],g=gi(e)?e.slice():Bt({},e);return r+1===t.length?(gi(g)?g.splice(u,1):delete g[u],g):(g[u]=m(e[u],t,r+1),g)}function v(){return!1}function w(){return null}function E(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function S(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function _(){}function L(){}function x(e){var t=[];return e.forEach(function(r){t.push(r)}),t.sort().join(", ")}function D(e,t,r,u){return new Up(e,t,r,u)}function B(e,t){e.context===Kg&&(oh(e.current,2,t,e,null,null),rl())}function G(e,t){if(Iu!==null){var r=t.staleFamilies;t=t.updatedFamilies,qc(),jh(e.current,t,r),rl()}}function P(e){Iu=e}function te(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function pe(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function Te(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Se(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Fe(e){if(pe(e)!==e)throw Error("Unable to find node on an unmounted component.")}function Re(e){var t=e.alternate;if(!t){if(t=pe(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var r=e,u=t;;){var g=r.return;if(g===null)break;var y=g.alternate;if(y===null){if(u=g.return,u!==null){r=u;continue}break}if(g.child===y.child){for(y=g.child;y;){if(y===r)return Fe(g),e;if(y===u)return Fe(g),t;y=y.sibling}throw Error("Unable to find node on an unmounted component.")}if(r.return!==u.return)r=g,u=y;else{for(var C=!1,O=g.child;O;){if(O===r){C=!0,r=g,u=y;break}if(O===u){C=!0,u=g,r=y;break}O=O.sibling}if(!C){for(O=y.child;O;){if(O===r){C=!0,r=y,u=g;break}if(O===u){C=!0,u=y,r=g;break}O=O.sibling}if(!C)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(r.alternate!==u)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(r.tag!==3)throw Error("Unable to find node on an unmounted component.");return r.stateNode.current===r?e:t}function Je(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Je(e),t!==null)return t;e=e.sibling}return null}function Be(e){return e===null||typeof e!="object"?null:(e=Jy&&e[Jy]||e["@@iterator"],typeof e=="function"?e:null)}function W(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===S1?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case es:return"Fragment";case Xy:return"Profiler";case Ud:return"StrictMode";case Py:return"Suspense";case Zy:return"SuspenseList";case Ru:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case hh:return"Portal";case Fs:return e.displayName||"Context";case Qy:return(e._context.displayName||"Context")+".Consumer";case Bd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ig:return t=e.displayName||null,t!==null?t:W(e.type)||"Memo";case Za:t=e._payload,e=e._init;try{return W(e(t))}catch{}}return null}function re(e){return typeof e.tag=="number"?me(e):typeof e.name=="string"?e.name:null}function me(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return t.displayName||"Context";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return W(t);case 8:return t===Ud?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var r=t.length-1;0<=r;r--)if(typeof t[r].name=="string")return t[r].name}if(e.return!==null)return me(e.return)}return null}function ne(e){return{current:e}}function ue(e,t){0>sl?console.error("Unexpected pop."):(t!==Id[sl]&&console.error("Unexpected Fiber popped."),e.current=Hd[sl],Hd[sl]=null,Id[sl]=null,sl--)}function Z(e,t,r){sl++,Hd[sl]=e.current,Id[sl]=r,e.current=t}function K(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function $(e,t){Z(Nu,t,e),Z(dh,e,e),Z(Ho,null,e);var r=t.nodeType;switch(r){case 9:case 11:r=r===9?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?P0(t):op;break;default:if(r=t.tagName,t=t.namespaceURI)t=P0(t),t=Z0(t,r);else switch(r){case"svg":t=Gv;break;case"math":t=$_;break;default:t=op}}r=r.toLowerCase(),r=Tp(null,r),r={context:t,ancestorInfo:r},ue(Ho,e),Z(Ho,r,e)}function X(e){ue(Ho,e),ue(dh,e),ue(Nu,e)}function ee(){return K(Ho.current)}function ye(e){e.memoizedState!==null&&Z(ph,e,e);var t=K(Ho.current),r=e.type,u=Z0(t.context,r);r=Tp(t.ancestorInfo,r),u={context:u,ancestorInfo:r},t!==u&&(Z(dh,e,e),Z(Ho,u,e))}function Me(e){dh.current===e&&(ue(Ho,e),ue(dh,e)),ph.current===e&&(ue(ph,e),db._currentValue=_0)}function et(){}function F(){if(qd===0){Gg=console.log,fv=console.info,gh=console.warn,mh=console.error,Gd=console.group,hv=console.groupCollapsed,yh=console.groupEnd;var e={configurable:!0,enumerable:!0,value:et,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}qd++}function ze(){if(qd--,qd===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Bt({},e,{value:Gg}),info:Bt({},e,{value:fv}),warn:Bt({},e,{value:gh}),error:Bt({},e,{value:mh}),group:Bt({},e,{value:Gd}),groupCollapsed:Bt({},e,{value:hv}),groupEnd:Bt({},e,{value:yh})})}0>qd&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function He(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
`)&&(e=e.slice(29)),t=e.indexOf(`
`),t!==-1&&(e=e.slice(t+1)),t=e.indexOf("react_stack_bottom_frame"),t!==-1&&(t=e.lastIndexOf(`
`,t)),t!==-1)e=e.slice(0,t);else return"";return e}function Ie(e){if(Ky===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Ky=t&&t[1]||"",ku=-1<r.stack.indexOf(`
    at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Ky+e+ku}function at(e,t){if(!e||jg)return"";var r=Yg.get(e);if(r!==void 0)return r;jg=!0,r=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var u=null;u=Ce.H,Ce.H=null,F();try{var g={DetermineComponentFrameRoot:function(){try{if(t){var ae=function(){throw Error()};if(Object.defineProperty(ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ae,[])}catch(it){var De=it}Reflect.construct(e,[],ae)}else{try{ae.call()}catch(it){De=it}e.call(ae.prototype)}}else{try{throw Error()}catch(it){De=it}(ae=e())&&typeof ae.catch=="function"&&ae.catch(function(){})}}catch(it){if(it&&De&&typeof it.stack=="string")return[it.stack,De.stack]}return[null,null]}};g.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var y=Object.getOwnPropertyDescriptor(g.DetermineComponentFrameRoot,"name");y&&y.configurable&&Object.defineProperty(g.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var C=g.DetermineComponentFrameRoot(),O=C[0],U=C[1];if(O&&U){var q=O.split(`
`),de=U.split(`
`);for(C=y=0;y<q.length&&!q[y].includes("DetermineComponentFrameRoot");)y++;for(;C<de.length&&!de[C].includes("DetermineComponentFrameRoot");)C++;if(y===q.length||C===de.length)for(y=q.length-1,C=de.length-1;1<=y&&0<=C&&q[y]!==de[C];)C--;for(;1<=y&&0<=C;y--,C--)if(q[y]!==de[C]){if(y!==1||C!==1)do if(y--,C--,0>C||q[y]!==de[C]){var be=`
`+q[y].replace(" at new "," at ");return e.displayName&&be.includes("<anonymous>")&&(be=be.replace("<anonymous>",e.displayName)),typeof e=="function"&&Yg.set(e,be),be}while(1<=y&&0<=C);break}}}finally{jg=!1,Ce.H=u,ze(),Error.prepareStackTrace=r}return q=(q=e?e.displayName||e.name:"")?Ie(q):"",typeof e=="function"&&Yg.set(e,q),q}function st(e,t){switch(e.tag){case 26:case 27:case 5:return Ie(e.type);case 16:return Ie("Lazy");case 13:return e.child!==t&&t!==null?Ie("Suspense Fallback"):Ie("Suspense");case 19:return Ie("SuspenseList");case 0:case 15:return at(e.type,!1);case 11:return at(e.type.render,!1);case 1:return at(e.type,!0);case 31:return Ie("Activity");default:return""}}function At(e){try{var t="",r=null;do{t+=st(e,r);var u=e._debugInfo;if(u)for(var g=u.length-1;0<=g;g--){var y=u[g];if(typeof y.name=="string"){var C=t;e:{var O=y.name,U=y.env,q=y.debugLocation;if(q!=null){var de=He(q),be=de.lastIndexOf(`
`),ae=be===-1?de:de.slice(be+1);if(ae.indexOf(O)!==-1){var De=`
`+ae;break e}}De=Ie(O+(U?" ["+U+"]":""))}t=C+De}}r=e,e=e.return}while(e);return t}catch(it){return`
Error generating stack: `+it.message+`
`+it.stack}}function Jt(e){return(e=e?e.displayName||e.name:"")?Ie(e):""}function ht(){if($r===null)return null;var e=$r._debugOwner;return e!=null?re(e):null}function En(){if($r===null)return"";var e=$r;try{var t="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=Ie(e.type);break;case 13:t+=Ie("Suspense");break;case 19:t+=Ie("SuspenseList");break;case 31:t+=Ie("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||t!==""||(t+=Jt(e.type));break;case 11:e._debugOwner||t!==""||(t+=Jt(e.type.render))}for(;e;)if(typeof e.tag=="number"){var r=e;e=r._debugOwner;var u=r._debugStack;if(e&&u){var g=He(u);g!==""&&(t+=`
`+g)}}else if(e.debugStack!=null){var y=e.debugStack;(e=e.owner)&&y&&(t+=`
`+He(y))}else break;var C=t}catch(O){C=`
Error generating stack: `+O.message+`
`+O.stack}return C}function tt(e,t,r,u,g,y,C){var O=$r;Sr(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,r,u,g,y,C)):t(r,u,g,y,C)}finally{Sr(O)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function Sr(e){Ce.getCurrentStack=e===null?null:En,xl=!1,$r=e}function Ml(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function Kn(e){try{return Ai(e),!1}catch{return!0}}function Ai(e){return""+e}function Dt(e,t){if(Kn(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,Ml(e)),Ai(e)}function qa(e,t){if(Kn(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,Ml(e)),Ai(e)}function ho(e){if(Kn(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",Ml(e)),Ai(e)}function kt(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{eo=t.inject(e),Pi=t}catch(r){console.error("React instrumentation encountered an error: %o.",r)}return!!t.checkDCE}function nn(e){if(typeof zu=="function"&&Uu(e),Pi&&typeof Pi.setStrictMode=="function")try{Pi.setStrictMode(eo,e)}catch(t){Ua||(Ua=!0,console.error("React instrumentation encountered an error: %o",t))}}function fa(e){return e>>>=0,e===0?32:31-($d(e)/A1|0)|0}function La(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),e}}function lr(e,t,r){var u=e.pendingLanes;if(u===0)return 0;var g=0,y=e.suspendedLanes,C=e.pingedLanes;e=e.warmLanes;var O=u&134217727;return O!==0?(u=O&~y,u!==0?g=La(u):(C&=O,C!==0?g=La(C):r||(r=O&~e,r!==0&&(g=La(r))))):(O=u&~y,O!==0?g=La(O):C!==0?g=La(C):r||(r=u&~e,r!==0&&(g=La(r)))),g===0?0:t!==0&&t!==g&&(t&y)===0&&(y=g&-g,r=t&-t,y>=r||y===32&&(r&4194048)!==0)?t:g}function Cn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Rl(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function Po(){var e=Qd;return Qd<<=1,(Qd&62914560)===0&&(Qd=4194304),e}function ji(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function ha(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Y(e,t,r,u,g,y){var C=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var O=e.entanglements,U=e.expirationTimes,q=e.hiddenUpdates;for(r=C&~r;0<r;){var de=31-Ja(r),be=1<<de;O[de]=0,U[de]=-1;var ae=q[de];if(ae!==null)for(q[de]=null,de=0;de<ae.length;de++){var De=ae[de];De!==null&&(De.lane&=-536870913)}r&=~be}u!==0&&R(e,u,0),y!==0&&g===0&&e.tag!==0&&(e.suspendedLanes|=y&~(C&~t))}function R(e,t,r){e.pendingLanes|=t,e.suspendedLanes&=~t;var u=31-Ja(t);e.entangledLanes|=t,e.entanglements[u]=e.entanglements[u]|1073741824|r&261930}function k(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var u=31-Ja(r),g=1<<u;g&t|e[u]&t&&(e[u]|=t),r&=~g}}function J(e,t){var r=t&-t;return r=(r&42)!==0?1:ve(r),(r&(e.suspendedLanes|t))!==0?0:r}function ve(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ae(e,t,r){if(to)for(e=e.pendingUpdatersLaneMap;0<r;){var u=31-Ja(r),g=1<<u;e[u].add(t),r&=~g}}function Ge(e,t){if(to)for(var r=e.pendingUpdatersLaneMap,u=e.memoizedUpdaters;0<t;){var g=31-Ja(t);e=1<<g,g=r[g],0<g.size&&(g.forEach(function(y){var C=y.alternate;C!==null&&u.has(C)||u.add(y)}),g.clear()),t&=~e}}function pt(e){return e&=-e,ol!==0&&ol<e?Xr!==0&&Xr<e?(e&134217727)!==0?ul:Pd:Xr:ol}function I(){var e=Ht.p;return e!==0?e:(e=window.event,e===void 0?ul:qi(e.type))}function ge(e,t){var r=Ht.p;try{return Ht.p=e,t()}finally{Ht.p=r}}function Xe(e){delete e[la],delete e[Ca],delete e[Vg],delete e[C1],delete e[bh]}function Ze(e){var t=e[la];if(t)return t;for(var r=e.parentNode;r;){if(t=r[ts]||r[la]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Uy(e);e!==null;){if(r=e[la])return r;e=Uy(e)}return t}e=r,r=e.parentNode}return null}function ut(e){if(e=e[la]||e[ts]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Mt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function bt(e){var t=e[n];return t||(t=e[n]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ct(e){e[l]=!0}function xt(e,t){sr(e,t),sr(e+"Capture",t)}function sr(e,t){d[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),d[e]=t;var r=e.toLowerCase();for(b[r]=e,e==="onDoubleClick"&&(b.ondblclick=e),e=0;e<t.length;e++)o.add(t[e])}function or(e,t){A[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||console.error(e==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function nc(e){return Ll.call(oe,e)?!0:Ll.call(V,e)?!1:z.test(e)?oe[e]=!0:(V[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function Zo(e,t,r){if(nc(t)){if(!e.hasAttribute(t)){switch(typeof r){case"symbol":case"object":return r;case"function":return r;case"boolean":if(r===!1)return r}return r===void 0?void 0:null}return e=e.getAttribute(t),e===""&&r===!0?!0:(Dt(r,t),e===""+r?r:e)}}function gp(e,t,r){if(nc(t))if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var u=t.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){e.removeAttribute(t);return}}Dt(r,t),e.setAttribute(t,""+r)}}function ic(e,t,r){if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}Dt(r,t),e.setAttribute(t,""+r)}}function ds(e,t,r,u){if(u===null)e.removeAttribute(r);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}Dt(u,r),e.setAttributeNS(t,r,""+u)}}function ur(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return ho(e),e;default:return""}}function mp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Nm(e,t,r){var u=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var g=u.get,y=u.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return g.call(this)},set:function(C){ho(C),r=""+C,y.call(this,C)}}),Object.defineProperty(e,t,{enumerable:u.enumerable}),{getValue:function(){return r},setValue:function(C){ho(C),r=""+C},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yp(e){if(!e._valueTracker){var t=mp(e)?"checked":"value";e._valueTracker=Nm(e,t,""+e[t])}}function km(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),u="";return e&&(u=mp(e)?e.checked?"true":"false":e.value),e=u,e!==r?(t.setValue(e),!0):!1}function Nl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function In(e){return e.replace(Le,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function cr(e,t){t.checked===void 0||t.defaultChecked===void 0||Qe||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",ht()||"A component",t.type),Qe=!0),t.value===void 0||t.defaultValue===void 0||je||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",ht()||"A component",t.type),je=!0)}function Jo(e,t,r,u,g,y,C,O){e.name="",C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?(Dt(C,"type"),e.type=C):e.removeAttribute("type"),t!=null?C==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+ur(t)):e.value!==""+ur(t)&&(e.value=""+ur(t)):C!=="submit"&&C!=="reset"||e.removeAttribute("value"),t!=null?zm(e,C,ur(t)):r!=null?zm(e,C,ur(r)):u!=null&&e.removeAttribute("value"),g==null&&y!=null&&(e.defaultChecked=!!y),g!=null&&(e.checked=g&&typeof g!="function"&&typeof g!="symbol"),O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?(Dt(O,"name"),e.name=""+ur(O)):e.removeAttribute("name")}function Rh(e,t,r,u,g,y,C,O){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(Dt(y,"type"),e.type=y),t!=null||r!=null){if(!(y!=="submit"&&y!=="reset"||t!=null)){yp(e);return}r=r!=null?""+ur(r):"",t=t!=null?""+ur(t):r,O||t===e.value||(e.value=t),e.defaultValue=t}u=u??g,u=typeof u!="function"&&typeof u!="symbol"&&!!u,e.checked=O?e.checked:!!u,e.defaultChecked=!!u,C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(Dt(C,"name"),e.name=C),yp(e)}function zm(e,t,r){t==="number"&&Nl(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function B0(e,t){t.value??(typeof t.children=="object"&&t.children!==null?yr.Children.forEach(t.children,function(r){r==null||typeof r=="string"||typeof r=="number"||typeof r=="bigint"||Ue||(Ue=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||dt||(dt=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||Oe||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Oe=!0)}function Um(){var e=ht();return e?`

Check the render method of \``+e+"`.":""}function ps(e,t,r,u){if(e=e.options,t){t={};for(var g=0;g<r.length;g++)t["$"+r[g]]=!0;for(r=0;r<e.length;r++)g=t.hasOwnProperty("$"+e[r].value),e[r].selected!==g&&(e[r].selected=g),g&&u&&(e[r].defaultSelected=!0)}else{for(r=""+ur(r),t=null,g=0;g<e.length;g++){if(e[g].value===r){e[g].selected=!0,u&&(e[g].defaultSelected=!0);return}t!==null||e[g].disabled||(t=e[g])}t!==null&&(t.selected=!0)}}function vp(e,t){for(e=0;e<Un.length;e++){var r=Un[e];if(t[r]!=null){var u=gi(t[r]);t.multiple&&!u?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",r,Um()):!t.multiple&&u&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",r,Um())}}t.value===void 0||t.defaultValue===void 0||St||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),St=!0)}function ac(e,t){t.value===void 0||t.defaultValue===void 0||Ee||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",ht()||"A component"),Ee=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function gs(e,t,r){if(t!=null&&(t=""+ur(t),t!==e.value&&(e.value=t),r==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=r!=null?""+ur(r):""}function bf(e,t,r,u){if(t==null){if(u!=null){if(r!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(gi(u)){if(1<u.length)throw Error("<textarea> can only have at most one child.");u=u[0]}r=u}r??="",t=r}r=ur(t),e.defaultValue=r,u=e.textContent,u===r&&u!==""&&u!==null&&(e.value=u),yp(e)}function ms(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?ms(e.children[0],t):e}function xn(e){return"  "+"  ".repeat(e)}function Ko(e){return"+ "+"  ".repeat(e)}function po(e){return"- "+"  ".repeat(e)}function Fo(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function ys(e,t){return he.test(e)?(e=JSON.stringify(e),e.length>t-2?8>t?'{"..."}':"{"+e.slice(0,t-7)+'..."}':"{"+e+"}"):e.length>t?5>t?'{"..."}':e.slice(0,t-3)+"...":e}function bp(e,t,r){var u=120-2*r;if(t===null)return Ko(r)+ys(e,u)+`
`;if(typeof t=="string"){for(var g=0;g<t.length&&g<e.length&&t.charCodeAt(g)===e.charCodeAt(g);g++);return g>u-8&&10<g&&(e="..."+e.slice(g-8),t="..."+t.slice(g-8)),Ko(r)+ys(e,u)+`
`+po(r)+ys(t,u)+`
`}return xn(r)+ys(e,u)+`
`}function _p(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,r){return r})}function rc(e,t){switch(typeof e){case"string":return e=JSON.stringify(e),e.length>t?5>t?'"..."':e.slice(0,t-4)+'..."':e;case"object":if(e===null)return"null";if(gi(e))return"[...]";if(e.$$typeof===Ks)return(t=W(e.type))?"<"+t+">":"<...>";var r=_p(e);if(r==="Object"){r="",t-=2;for(var u in e)if(e.hasOwnProperty(u)){var g=JSON.stringify(u);if(g!=='"'+u+'"'&&(u=g),t-=u.length-2,g=rc(e[u],15>t?t:15),t-=g.length,0>t){r+=r===""?"...":", ...";break}r+=(r===""?"":",")+u+":"+g}return"{"+r+"}"}return r;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function lc(e,t){return typeof e!="string"||he.test(e)?"{"+rc(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function sc(e,t,r){var u=120-r.length-e.length,g=[],y;for(y in t)if(t.hasOwnProperty(y)&&y!=="children"){var C=lc(t[y],120-r.length-y.length-1);u-=y.length+C.length+2,g.push(y+"="+C)}return g.length===0?r+"<"+e+`>
`:0<u?r+"<"+e+" "+g.join(" ")+`>
`:r+"<"+e+`
`+r+"  "+g.join(`
`+r+"  ")+`
`+r+`>
`}function _f(e,t,r){var u="",g=Bt({},t),y;for(y in e)if(e.hasOwnProperty(y)){delete g[y];var C=120-2*r-y.length-2,O=rc(e[y],C);t.hasOwnProperty(y)?(C=rc(t[y],C),u+=Ko(r)+y+": "+O+`
`,u+=po(r)+y+": "+C+`
`):u+=Ko(r)+y+": "+O+`
`}for(var U in g)g.hasOwnProperty(U)&&(e=rc(g[U],120-2*r-U.length-2),u+=po(r)+U+": "+e+`
`);return u}function go(e,t,r,u){var g="",y=new Map;for(q in r)r.hasOwnProperty(q)&&y.set(q.toLowerCase(),q);if(y.size===1&&y.has("children"))g+=sc(e,t,xn(u));else{for(var C in t)if(t.hasOwnProperty(C)&&C!=="children"){var O=120-2*(u+1)-C.length-1,U=y.get(C.toLowerCase());if(U!==void 0){y.delete(C.toLowerCase());var q=t[C];U=r[U];var de=lc(q,O);O=lc(U,O),typeof q=="object"&&q!==null&&typeof U=="object"&&U!==null&&_p(q)==="Object"&&_p(U)==="Object"&&(2<Object.keys(q).length||2<Object.keys(U).length||-1<de.indexOf("...")||-1<O.indexOf("..."))?g+=xn(u+1)+C+`={{
`+_f(q,U,u+2)+xn(u+1)+`}}
`:(g+=Ko(u+1)+C+"="+de+`
`,g+=po(u+1)+C+"="+O+`
`)}else g+=xn(u+1)+C+"="+lc(t[C],O)+`
`}y.forEach(function(be){if(be!=="children"){var ae=120-2*(u+1)-be.length-1;g+=po(u+1)+be+"="+lc(r[be],ae)+`
`}}),g=g===""?xn(u)+"<"+e+`>
`:xn(u)+"<"+e+`
`+g+xn(u)+`>
`}return e=r.children,t=t.children,typeof e=="string"||typeof e=="number"||typeof e=="bigint"?(y="",(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(y=""+t),g+=bp(y,""+e,u+1)):(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(g=e==null?g+bp(""+t,null,u+1):g+bp(""+t,void 0,u+1)),g}function Tr(e,t){var r=Fo(e);if(r===null){for(r="",e=e.child;e;)r+=Tr(e,t),e=e.sibling;return r}return xn(t)+"<"+r+`>
`}function oc(e,t){var r=ms(e,t);if(r!==e&&(e.children.length!==1||e.children[0]!==r))return xn(t)+`...
`+oc(r,t+1);r="";var u=e.fiber._debugInfo;if(u)for(var g=0;g<u.length;g++){var y=u[g].name;typeof y=="string"&&(r+=xn(t)+"<"+y+`>
`,t++)}if(u="",g=e.fiber.pendingProps,e.fiber.tag===6)u=bp(g,e.serverProps,t),t++;else if(y=Fo(e.fiber),y!==null)if(e.serverProps===void 0){u=t;var C=120-2*u-y.length-2,O="";for(q in g)if(g.hasOwnProperty(q)&&q!=="children"){var U=lc(g[q],15);if(C-=q.length+U.length+2,0>C){O+=" ...";break}O+=" "+q+"="+U}u=xn(u)+"<"+y+O+`>
`,t++}else e.serverProps===null?(u=sc(y,g,Ko(t)),t++):typeof e.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(u=go(y,g,e.serverProps,t),t++);var q="";for(g=e.fiber.child,y=0;g&&y<e.children.length;)C=e.children[y],C.fiber===g?(q+=oc(C,t),y++):q+=Tr(g,t),g=g.sibling;for(g&&0<e.children.length&&(q+=xn(t)+`...
`),g=e.serverTail,e.serverProps===null&&t--,e=0;e<g.length;e++)y=g[e],q=typeof y=="string"?q+(po(t)+ys(y,120-2*t)+`
`):q+sc(y.type,y.props,po(t));return r+u+q}function Ep(e){try{return`

`+oc(e,0)}catch{return""}}function Sp(e,t,r){for(var u=t,g=null,y=0;u;)u===e&&(y=0),g={fiber:u,children:g!==null?[g]:[],serverProps:u===t?r:u===e?null:void 0,serverTail:[],distanceFromLeaf:y},y++,u=u.return;return g!==null?Ep(g).replaceAll(/^[+-]/gm,">"):""}function Tp(e,t){var r=Bt({},e||gt),u={tag:t};return Ve.indexOf(t)!==-1&&(r.aTagInScope=null,r.buttonTagInScope=null,r.nobrTagInScope=null),yt.indexOf(t)!==-1&&(r.pTagInButtonScope=null),xe.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(r.listItemTagAutoclosing=null,r.dlItemTagAutoclosing=null),r.current=u,t==="form"&&(r.formTag=u),t==="a"&&(r.aTagInScope=u),t==="button"&&(r.buttonTagInScope=u),t==="nobr"&&(r.nobrTagInScope=u),t==="p"&&(r.pTagInButtonScope=u),t==="li"&&(r.listItemTagAutoclosing=u),(t==="dd"||t==="dt")&&(r.dlItemTagAutoclosing=u),t==="#document"||t==="html"?r.containerTagInScope=null:r.containerTagInScope||(r.containerTagInScope=u),e!==null||t!=="#document"&&t!=="html"&&t!=="body"?r.implicitRootScope===!0&&(r.implicitRootScope=!1):r.implicitRootScope=!0,r}function Ef(e,t,r){switch(t){case"select":return e==="hr"||e==="option"||e==="optgroup"||e==="script"||e==="template"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":if(r)break;return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":if(!r)return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return An.indexOf(t)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null;case"head":return r||t===null;case"html":return r&&t==="#document"||t===null;case"body":return r&&(t==="#document"||t==="html")||t===null}return!0}function Bm(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null}function Kr(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function Sf(e,t){t=t||gt;var r=t.current;if(t=(r=Ef(e,r&&r.tag,t.implicitRootScope)?null:r)?null:Bm(e,t),t=r||t,!t)return!0;var u=t.tag;if(t=String(!!r)+"|"+e+"|"+u,It[t])return!1;It[t]=!0;var g=(t=$r)?Kr(t.return,u):null,y=t!==null&&g!==null?Sp(g,t,null):"",C="<"+e+">";return r?(r="",u==="table"&&e==="tr"&&(r+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
This will cause a hydration error.%s`,C,u,r,y)):console.error(`In HTML, %s cannot be a descendant of <%s>.
This will cause a hydration error.%s`,C,u,y),t&&(e=t.return,g===null||e===null||g===e&&e._debugOwner===t._debugOwner||tt(g,function(){console.error(`<%s> cannot contain a nested %s.
See this log for the ancestor stack trace.`,u,C)})),!1}function uc(e,t,r){if(r||Ef("#text",t,!1))return!0;if(r="#text|"+t,It[r])return!1;It[r]=!0;var u=(r=$r)?Kr(r,t):null;return r=r!==null&&u!==null?Sp(u,r,r.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
This will cause a hydration error.%s`,t,r):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
This will cause a hydration error.%s`,t,r),!1}function mo(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}function kl(e){return e.replace(oS,function(t,r){return r.toUpperCase()})}function wp(e,t,r){var u=t.indexOf("--")===0;u||(-1<t.indexOf("-")?$g.hasOwnProperty(t)&&$g[t]||($g[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,kl(t.replace(sS,"ms-")))):x1.test(t)?$g.hasOwnProperty(t)&&$g[t]||($g[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!Wb.test(r)||L1.hasOwnProperty(r)&&L1[r]||(L1[r]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,r.replace(Wb,""))),typeof r=="number"&&(isNaN(r)?e_||(e_=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(r)||t_||(t_=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),r==null||typeof r=="boolean"||r===""?u?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":u?e.setProperty(t,r):typeof r!="number"||r===0||n_.has(t)?t==="float"?e.cssFloat=r:(qa(r,t),e[t]=(""+r).trim()):e[t]=r+"px"}function Ap(e,t,r){if(t!=null&&typeof t!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,r!=null){if(t){var u={};if(r){for(var g in r)if(r.hasOwnProperty(g)&&!t.hasOwnProperty(g))for(var y=Ft[g]||[g],C=0;C<y.length;C++)u[y[C]]=g}for(var O in t)if(t.hasOwnProperty(O)&&(!r||r[O]!==t[O]))for(g=Ft[O]||[O],y=0;y<g.length;y++)u[g[y]]=O;O={};for(var U in t)for(g=Ft[U]||[U],y=0;y<g.length;y++)O[g[y]]=U;U={};for(var q in u)if(g=u[q],(y=O[q])&&g!==y&&(C=g+","+y,!U[C])){U[C]=!0,C=console;var de=t[g];C.error.call(C,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",de==null||typeof de=="boolean"||de===""?"Removing":"Updating",g,y)}}for(var be in r)!r.hasOwnProperty(be)||t!=null&&t.hasOwnProperty(be)||(be.indexOf("--")===0?e.setProperty(be,""):be==="float"?e.cssFloat="":e[be]="");for(var ae in t)q=t[ae],t.hasOwnProperty(ae)&&r[ae]!==q&&wp(e,ae,q)}else for(u in t)t.hasOwnProperty(u)&&wp(e,u,t[u])}function vs(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Hm(e){return uS.get(e)||e}function Im(e,t){if(Ll.call(Qg,t)&&Qg[t])return!0;if(p.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=i_.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Qg[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Qg[t]=!0}if(c.test(t)){if(e=t.toLowerCase(),e=i_.hasOwnProperty(e)?e:null,e==null)return Qg[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Qg[t]=!0)}return!0}function qm(e,t){var r=[],u;for(u in t)Im(e,u)||r.push(u);t=r.map(function(g){return"`"+g+"`"}).join(", "),r.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<r.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}function Cp(e,t,r,u){if(Ll.call(M,t)&&M[t])return!0;var g=t.toLowerCase();if(g==="onfocusin"||g==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),M[t]=!0;if(typeof r=="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(u!=null){if(e=u.possibleRegistrationNames,u.registrationNameDependencies.hasOwnProperty(t))return!0;if(u=e.hasOwnProperty(g)?e[g]:null,u!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,u),M[t]=!0;if(H.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),M[t]=!0}else if(H.test(t))return Q.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),M[t]=!0;if(le.test(t)||ce.test(t))return!0;if(g==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),M[t]=!0;if(g==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),M[t]=!0;if(g==="is"&&r!==null&&r!==void 0&&typeof r!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof r),M[t]=!0;if(typeof r=="number"&&isNaN(r))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),M[t]=!0;if(pv.hasOwnProperty(g)){if(g=pv[g],g!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,g),M[t]=!0}else if(t!==g)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,g),M[t]=!0;switch(t){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof r){case"boolean":switch(t){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return g=t.toLowerCase().slice(0,5),g==="data-"||g==="aria-"?!0:(r?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',r,t,t,r,t):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',r,t,t,r,t,t,t),M[t]=!0)}case"function":case"symbol":return M[t]=!0,!1;case"string":if(r==="false"||r==="true"){switch(t){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",r,t,r==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,r),M[t]=!0}}return!0}function y1(e,t,r){var u=[],g;for(g in t)Cp(e,g,t[g],r)||u.push(g);t=u.map(function(y){return"`"+y+"`"}).join(", "),u.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e):1<u.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e)}function Nh(e){return we.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function dl(){}function pl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function xp(e){var t=ut(e);if(t&&(e=t.stateNode)){var r=e[Ca]||null;e:switch(e=t.stateNode,t.type){case"input":if(Jo(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(Dt(t,"name"),r=r.querySelectorAll('input[name="'+In(""+t)+'"][type="radio"]'),t=0;t<r.length;t++){var u=r[t];if(u!==e&&u.form===e.form){var g=u[Ca]||null;if(!g)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Jo(u,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name)}}for(t=0;t<r.length;t++)u=r[t],u.form===e.form&&km(u)}break e;case"textarea":gs(e,r.value,r.defaultValue);break e;case"select":t=r.value,t!=null&&ps(e,!!r.multiple,t,!1)}}}function Lp(e,t,r){if(ct)return e(t,r);ct=!0;try{return e(t)}finally{if(ct=!1,($e!==null||We!==null)&&(rl(),$e&&(t=$e,e=We,We=$e=null,xp(t),e)))for(t=0;t<e.length;t++)xp(e[t])}}function bs(e,t){var r=e.stateNode;if(r===null)return null;var u=r[Ca]||null;if(u===null)return null;r=u[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(e=e.type,u=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!u;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof r+"` type.");return r}function cc(){if(on)return on;var e,t=Jn,r=t.length,u,g="value"in vt?vt.value:vt.textContent,y=g.length;for(e=0;e<r&&t[e]===g[e];e++);var C=r-e;for(u=1;u<=C&&t[r-u]===g[y-u];u++);return on=g.slice(e,1<u?1-u:void 0)}function fc(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Tf(){return!0}function Gm(){return!1}function da(e){function t(r,u,g,y,C){this._reactName=r,this._targetInst=g,this.type=u,this.nativeEvent=y,this.target=C,this.currentTarget=null;for(var O in e)e.hasOwnProperty(O)&&(r=e[O],this[O]=r?r(y):y[O]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?Tf:Gm,this.isPropagationStopped=Gm,this}return Bt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Tf)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Tf)},persist:function(){},isPersistent:Tf}),t}function yo(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=HM[e])?!!t[e]:!1}function kh(){return yo}function Nn(e,t){switch(e){case"keyup":return VM.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==mA;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dn(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}function jm(e,t){switch(e){case"compositionend":return dn(t);case"keypress":return t.which!==vA?null:(_A=!0,bA);case"textInput":return e=t.data,e===bA&&_A?null:e;default:return null}}function Op(e,t){if(gv)return e==="compositionend"||!fS&&Nn(e,t)?(e=cc(),on=Jn=vt=null,gv=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return yA&&t.locale!=="ko"?null:t.data;default:return null}}function Ym(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!XM[e.type]:t==="textarea"}function Dp(e){if(!ft)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t=typeof t[e]=="function"),t}function zh(e,t,r,u){$e?We?We.push(u):We=[u]:$e=u,t=Xc(t,"onChange"),0<t.length&&(r=new ns("onChange","change",null,r,u),e.push({event:r,listeners:t}))}function H0(e){$c(e,0)}function pa(e){if(km(Mt(e)))return e}function Wo(e,t){if(e==="change")return t}function Ci(){D1&&(D1.detachEvent("onpropertychange",eu),M1=D1=null)}function eu(e){if(e.propertyName==="value"&&pa(M1)){var t=[];zh(t,M1,e,pl(e)),Lp(H0,t)}}function hc(e,t,r){e==="focusin"?(Ci(),D1=t,M1=r,D1.attachEvent("onpropertychange",eu)):e==="focusout"&&Ci()}function Mp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return pa(M1)}function Uh(e,t){if(e==="click")return pa(t)}function Ga(e,t){if(e==="input"||e==="change")return pa(t)}function Bh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function dc(e,t){if(as(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),u=Object.keys(t);if(r.length!==u.length)return!1;for(u=0;u<r.length;u++){var g=r[u];if(!Ll.call(t,g)||!as(e[g],t[g]))return!1}return!0}function Vm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Hh(e,t){var r=Vm(e);e=0;for(var u;r;){if(r.nodeType===3){if(u=e+r.textContent.length,e<=t&&u>=t)return{node:r,offset:t-e};e=u}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Vm(r)}}function $m(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$m(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Nl(e.document);t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Nl(e.document)}return t}function ja(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function I0(e,t,r){var u=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;dS||mv==null||mv!==Nl(u)||(u=mv,"selectionStart"in u&&ja(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),R1&&dc(R1,u)||(R1=u,u=Xc(hS,"onSelect"),0<u.length&&(t=new ns("onSelect","select",null,t,r),e.push({event:t,listeners:u}),t.target=mv)))}function Fi(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}function pc(e){if(pS[e])return pS[e];if(!yv[e])return e;var t=yv[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in SA)return pS[e]=t[r];return e}function gl(e,t){xA.set(e,t),xt(t,[e])}function _s(e){for(var t=r_,r=0;r<e.length;r++){var u=e[r];if(typeof u=="object"&&u!==null)if(gi(u)&&u.length===2&&typeof u[0]=="string"){if(t!==r_&&t!==bS)return yS;t=bS}else return yS;else{if(typeof u=="function"||typeof u=="string"&&50<u.length||t!==r_&&t!==vS)return yS;t=vS}}return t}function wf(e,t,r,u){for(var g in e)Ll.call(e,g)&&g[0]!=="_"&&Fr(g,e[g],t,r,u)}function Fr(e,t,r,u,g){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===Ks){var y=W(t.type)||"…",C=t.key;t=t.props;var O=Object.keys(t),U=O.length;if(C==null&&U===0){t="<"+y+" />";break}if(3>u||U===1&&O[0]==="children"&&C==null){t="<"+y+" … />";break}r.push([g+"  ".repeat(u)+e,"<"+y]),C!==null&&Fr("key",C,r,u+1,g),e=!1;for(var q in t)q==="children"?t.children!=null&&(!gi(t.children)||0<t.children.length)&&(e=!0):Ll.call(t,q)&&q[0]!=="_"&&Fr(q,t[q],r,u+1,g);r.push(["",e?">…</"+y+">":"/>"]);return}if(y=Object.prototype.toString.call(t),y=y.slice(8,y.length-1),y==="Array"){if(q=_s(t),q===vS||q===r_){t=JSON.stringify(t);break}else if(q===bS){for(r.push([g+"  ".repeat(u)+e,""]),e=0;e<t.length;e++)y=t[e],Fr(y[0],y[1],r,u+1,g);return}}if(y==="Promise"){if(t.status==="fulfilled"){if(y=r.length,Fr(e,t.value,r,u,g),r.length>y){r=r[y],r[1]="Promise<"+(r[1]||"Object")+">";return}}else if(t.status==="rejected"&&(y=r.length,Fr(e,t.reason,r,u,g),r.length>y)){r=r[y],r[1]="Rejected Promise<"+r[1]+">";return}r.push(["  ".repeat(u)+e,"Promise"]);return}y==="Object"&&(q=Object.getPrototypeOf(t))&&typeof q.constructor=="function"&&(y=q.constructor.name),r.push([g+"  ".repeat(u)+e,y==="Object"?3>u?"":"…":y]),3>u&&wf(t,r,u+1,g);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===WM?"…":JSON.stringify(t);break;case"undefined":t="undefined";break;case"boolean":t=t?"true":"false";break;default:t=String(t)}r.push([g+"  ".repeat(u)+e,t])}function ri(e,t,r,u){var g=!0;for(C in e)C in t||(r.push([l_+"  ".repeat(u)+C,"…"]),g=!1);for(var y in t)if(y in e){var C=e[y],O=t[y];if(C!==O){if(u===0&&y==="children")g="  ".repeat(u)+y,r.push([l_+g,"…"],[s_+g,"…"]);else{if(!(3<=u)){if(typeof C=="object"&&typeof O=="object"&&C!==null&&O!==null&&C.$$typeof===O.$$typeof)if(O.$$typeof===Ks){if(C.type===O.type&&C.key===O.key){C=W(O.type)||"…",g="  ".repeat(u)+y,C="<"+C+" … />",r.push([l_+g,C],[s_+g,C]),g=!1;continue}}else{var U=Object.prototype.toString.call(C),q=Object.prototype.toString.call(O);if(U===q&&(q==="[object Object]"||q==="[object Array]")){U=[DA+"  ".repeat(u)+y,q==="[object Array]"?"Array":""],r.push(U),q=r.length,ri(C,O,r,u+1)?q===r.length&&(U[1]="Referentially unequal but deeply equal objects. Consider memoization."):g=!1;continue}}else if(typeof C=="function"&&typeof O=="function"&&C.name===O.name&&C.length===O.length&&(U=Function.prototype.toString.call(C),q=Function.prototype.toString.call(O),U===q)){C=O.name===""?"() => {}":O.name+"() {}",r.push([DA+"  ".repeat(u)+y,C+" Referentially unequal function closure. Consider memoization."]);continue}}Fr(y,C,r,u,l_),Fr(y,O,r,u,s_)}g=!1}}else r.push([s_+"  ".repeat(u)+y,"…"]),g=!1;return g}function Yi(e){hn=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function ml(e,t,r,u){Oi&&(Jg.start=t,Jg.end=r,Zd.color="warning",Zd.tooltipText=u,Zd.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,u,Jg)):performance.measure(u,Jg))}function Rp(e,t,r){ml(e,t,r,"Reconnect")}function Af(e,t,r,u,g){var y=me(e);if(y!==null&&Oi){var C=e.alternate,O=e.actualDuration;if(C===null||C.child!==e.child)for(var U=e.child;U!==null;U=U.sibling)O-=U.actualDuration;u=.5>O?u?"tertiary-light":"primary-light":10>O?u?"tertiary":"primary":100>O?u?"tertiary-dark":"primary-dark":"error";var q=e.memoizedProps;O=e._debugTask,q!==null&&C!==null&&C.memoizedProps!==q?(U=[eR],q=ri(C.memoizedProps,q,U,0),1<U.length&&(q&&!Zg&&(C.lanes&g)===0&&100<e.actualDuration?(Zg=!0,U[0]=tR,Zd.color="warning",Zd.tooltipText=MA):(Zd.color=u,Zd.tooltipText=y),Zd.properties=U,Jg.start=t,Jg.end=r,O!=null?O.run(performance.measure.bind(performance,"​"+y,Jg)):performance.measure("​"+y,Jg))):O!=null?O.run(console.timeStamp.bind(console,y,t,r,Bu,void 0,u)):console.timeStamp(y,t,r,Bu,void 0,u)}}function Ih(e,t,r,u){if(Oi){var g=me(e);if(g!==null){for(var y=null,C=[],O=0;O<u.length;O++){var U=u[O];y==null&&U.source!==null&&(y=U.source._debugTask),U=U.value,C.push(["Error",typeof U=="object"&&U!==null&&typeof U.message=="string"?String(U.message):String(U)])}e.key!==null&&Fr("key",e.key,C,0,""),e.memoizedProps!==null&&wf(e.memoizedProps,C,0,""),y??=e._debugTask,e={start:t,end:r,detail:{devtools:{color:"error",track:Bu,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:C}}},y?y.run(performance.measure.bind(performance,"​"+g,e)):performance.measure("​"+g,e)}}}function wr(e,t,r,u,g){if(g!==null){if(Oi){var y=me(e);if(y!==null){u=[];for(var C=0;C<g.length;C++){var O=g[C].value;u.push(["Error",typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O)])}e.key!==null&&Fr("key",e.key,u,0,""),e.memoizedProps!==null&&wf(e.memoizedProps,u,0,""),t={start:t,end:r,detail:{devtools:{color:"error",track:Bu,tooltipText:"A lifecycle or effect errored",properties:u}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,"​"+y,t)):performance.measure("​"+y,t)}}}else y=me(e),y!==null&&Oi&&(g=1>u?"secondary-light":100>u?"secondary":500>u?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,y,t,r,Bu,void 0,g)):console.timeStamp(y,t,r,Bu,void 0,g))}function v1(e,t,r,u){if(Oi&&!(t<=e)){var g=(r&738197653)===r?"tertiary-dark":"primary-dark";r=(r&536870912)===r?"Prepared":(r&201326741)===r?"Hydrated":"Render",u?u.run(console.timeStamp.bind(console,r,e,t,hn,un,g)):console.timeStamp(r,e,t,hn,un,g)}}function Np(e,t,r,u){!Oi||t<=e||(r=(r&738197653)===r?"tertiary-dark":"primary-dark",u?u.run(console.timeStamp.bind(console,"Prewarm",e,t,hn,un,r)):console.timeStamp("Prewarm",e,t,hn,un,r))}function Cf(e,t,r,u){!Oi||t<=e||(r=(r&738197653)===r?"tertiary-dark":"primary-dark",u?u.run(console.timeStamp.bind(console,"Suspended",e,t,hn,un,r)):console.timeStamp("Suspended",e,t,hn,un,r))}function gc(e,t,r,u,g,y){if(Oi&&!(t<=e)){r=[];for(var C=0;C<u.length;C++){var O=u[C].value;r.push(["Recoverable Error",typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O)])}e={start:e,end:t,detail:{devtools:{color:"primary-dark",track:hn,trackGroup:un,tooltipText:g?"Hydration Failed":"Recovered after Error",properties:r}}},y?y.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function kp(e,t,r,u){!Oi||t<=e||(u?u.run(console.timeStamp.bind(console,"Errored",e,t,hn,un,"error")):console.timeStamp("Errored",e,t,hn,un,"error"))}function Qm(e,t,r,u){!Oi||t<=e||(u?u.run(console.timeStamp.bind(console,r,e,t,hn,un,"secondary-light")):console.timeStamp(r,e,t,hn,un,"secondary-light"))}function tu(e,t,r,u,g){if(Oi&&!(t<=e)){for(var y=[],C=0;C<r.length;C++){var O=r[C].value;y.push(["Error",typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O)])}e={start:e,end:t,detail:{devtools:{color:"error",track:hn,trackGroup:un,tooltipText:u?"Remaining Effects Errored":"Commit Errored",properties:y}}},g?g.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function mc(e,t,r){!Oi||t<=e||(r?r.run(console.timeStamp.bind(console,"Animating",e,t,hn,un,"secondary-dark")):console.timeStamp("Animating",e,t,hn,un,"secondary-dark"))}function xf(){for(var e=vv,t=_S=vv=0;t<e;){var r=Hu[t];Hu[t++]=null;var u=Hu[t];Hu[t++]=null;var g=Hu[t];Hu[t++]=null;var y=Hu[t];if(Hu[t++]=null,u!==null&&g!==null){var C=u.pending;C===null?g.next=g:(g.next=C.next,C.next=g),u.pending=g}y!==0&&nu(r,g,y)}}function qh(e,t,r,u){Hu[vv++]=e,Hu[vv++]=t,Hu[vv++]=r,Hu[vv++]=u,_S|=u,e.lanes|=u,e=e.alternate,e!==null&&(e.lanes|=u)}function zp(e,t,r,u){return qh(e,t,r,u),iu(e)}function Wi(e,t){return qh(e,null,null,t),iu(e)}function nu(e,t,r){e.lanes|=r;var u=e.alternate;u!==null&&(u.lanes|=r);for(var g=!1,y=e.return;y!==null;)y.childLanes|=r,u=y.alternate,u!==null&&(u.childLanes|=r),y.tag===22&&(e=y.stateNode,e===null||e._visibility&N1||(g=!0)),e=y,y=y.return;return e.tag===3?(y=e.stateNode,g&&t!==null&&(g=31-Ja(r),e=y.hiddenUpdates,u=e[g],u===null?e[g]=[t]:u.push(t),t.lane=r|536870912),y):null}function iu(e){if(lb>mR)throw p0=lb=0,sb=WS=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");p0>yR&&(p0=0,sb=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),e.alternate===null&&(e.flags&4098)!==0&&wy(e);for(var t=e,r=t.return;r!==null;)t.alternate===null&&(t.flags&4098)!==0&&wy(e),t=r,r=t.return;return t.tag===3?t.stateNode:null}function au(e){if(Iu===null)return e;var t=Iu(e);return t===void 0?e:t.current}function ga(e){if(Iu===null)return e;var t=Iu(e);return t===void 0?e!=null&&typeof e.render=="function"&&(t=au(e.render),e.render!==t)?(t={$$typeof:Bd,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function Gh(e,t){if(Iu===null)return!1;var r=e.elementType;t=t.type;var u=!1,g=typeof t=="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t=="function"&&(u=!0);break;case 0:(typeof t=="function"||g===Za)&&(u=!0);break;case 11:(g===Bd||g===Za)&&(u=!0);break;case 14:case 15:(g===Ig||g===Za)&&(u=!0);break;default:return!1}return!!(u&&(e=Iu(r),e!==void 0&&e===Iu(t)))}function yc(e){Iu!==null&&typeof WeakSet=="function"&&(bv===null&&(bv=new WeakSet),bv.add(e))}function jh(e,t,r){do{var u=e,g=u.alternate,y=u.child,C=u.sibling,O=u.tag;u=u.type;var U=null;switch(O){case 0:case 15:case 1:U=u;break;case 11:U=u.render}if(Iu===null)throw Error("Expected resolveFamily to be set during hot reload.");var q=!1;if(u=!1,U!==null&&(U=Iu(U),U!==void 0&&(r.has(U)?u=!0:t.has(U)&&(O===1?u=!0:q=!0))),bv!==null&&(bv.has(e)||g!==null&&bv.has(g))&&(u=!0),u&&(e._debugNeedsRemount=!0),(u||q)&&(g=Wi(e,2),g!==null&&ti(g,e,2)),y===null||u||jh(y,t,r),C===null)break;e=C}while(!0)}function Up(e,t,r,u){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,RA||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function Bp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Es(e,t){var r=e.alternate;switch(r===null?(r=D(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r._debugOwner=e._debugOwner,r._debugStack=e._debugStack,r._debugTask=e._debugTask,r._debugHookTypes=e._debugHookTypes,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null,r.actualDuration=-0,r.actualStartTime=-1.1),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r.selfBaseDuration=e.selfBaseDuration,r.treeBaseDuration=e.treeBaseDuration,r._debugInfo=e._debugInfo,r._debugNeedsRemount=e._debugNeedsRemount,r.tag){case 0:case 15:r.type=au(e.type);break;case 1:r.type=au(e.type);break;case 11:r.type=ga(e.type)}return r}function Pm(e,t){e.flags&=65011714;var r=e.alternate;return r===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,t=r.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=r.selfBaseDuration,e.treeBaseDuration=r.treeBaseDuration),e}function Zm(e,t,r,u,g,y){var C=0,O=e;if(typeof e=="function")Bp(e)&&(C=1),O=au(O);else if(typeof e=="string")C=ee(),C=ov(e,r,C)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Ru:return t=D(31,r,t,g),t.elementType=Ru,t.lanes=y,t;case es:return yl(r.children,g,y,t);case Ud:C=8,g|=Ol,g|=nf;break;case Xy:return e=r,u=g,typeof e.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=D(12,e,t,u|Wt),t.elementType=Xy,t.lanes=y,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case Py:return t=D(13,r,t,g),t.elementType=Py,t.lanes=y,t;case Zy:return t=D(19,r,t,g),t.elementType=Zy,t.lanes=y,t;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Fs:C=10;break e;case Qy:C=9;break e;case Bd:C=11,O=ga(O);break e;case Ig:C=14;break e;case Za:C=16,O=null;break e}O="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(O+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?r="null":gi(e)?r="array":e!==void 0&&e.$$typeof===Ks?(r="<"+(W(e.type)||"Unknown")+" />",O=" Did you accidentally export a JSX literal instead of a component?"):r=typeof e,(C=u?re(u):null)&&(O+=`

Check the render method of \``+C+"`."),C=29,r=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(r+"."+O)),O=null}return t=D(C,r,t,g),t.elementType=e,t.type=O,t.lanes=y,t._debugOwner=u,t}function Hp(e,t,r){return t=Zm(e.type,e.key,e.props,e._owner,t,r),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function yl(e,t,r,u){return e=D(7,e,u,t),e.lanes=r,e}function Jm(e,t,r){return e=D(6,e,null,t),e.lanes=r,e}function q0(e){var t=D(18,null,null,Ut);return t.stateNode=e,t}function Oa(e,t,r){return t=D(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ma(e,t){if(typeof e=="object"&&e!==null){var r=ES.get(e);return r!==void 0?r:(t={value:e,source:t,stack:At(t)},ES.set(e,t),t)}return{value:e,source:t,stack:At(t)}}function Da(e,t){bi(),_v[Ev++]=k1,_v[Ev++]=o_,o_=e,k1=t}function Lf(e,t,r){bi(),qu[Gu++]=Kd,qu[Gu++]=Fd,qu[Gu++]=e0,e0=e;var u=Kd;e=Fd;var g=32-Ja(u)-1;u&=~(1<<g),r+=1;var y=32-Ja(t)+g;if(30<y){var C=g-g%5;y=(u&(1<<C)-1).toString(32),u>>=C,g-=C,Kd=1<<32-Ja(t)+g|r<<g|u,Fd=y+e}else Kd=1<<y|r<<g|u,Fd=e}function Ip(e){bi(),e.return!==null&&(Da(e,1),Lf(e,1,0))}function qp(e){for(;e===o_;)o_=_v[--Ev],_v[Ev]=null,k1=_v[--Ev],_v[Ev]=null;for(;e===e0;)e0=qu[--Gu],qu[Gu]=null,Fd=qu[--Gu],qu[Gu]=null,Kd=qu[--Gu],qu[Gu]=null}function Gp(){return bi(),e0!==null?{id:Kd,overflow:Fd}:null}function vc(e,t){bi(),qu[Gu++]=Kd,qu[Gu++]=Fd,qu[Gu++]=e0,Kd=t.id,Fd=t.overflow,e0=e}function bi(){gn||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Ss(e,t){if(e.return===null){if(Go===null)Go={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(Go.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Go.distanceFromLeaf>t&&(Go.distanceFromLeaf=t)}return Go}var r=Ss(e.return,t+1).children;return 0<r.length&&r[r.length-1].fiber===e?(r=r[r.length-1],r.distanceFromLeaf>t&&(r.distanceFromLeaf=t),r):(t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},r.push(t),t)}function Of(){gn&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Df(e,t){_h||(e=Ss(e,0),e.serverProps=null,t!==null&&(t=ky(t),e.serverTail.push(t)))}function vo(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,r="",u=Go;throw u!==null&&(Go=null,r=Ep(u)),lt(ma(Error("Hydration failed because the server rendered "+(t?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:

- A server/client branch \`if (typeof window !== 'undefined')\`.
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
- Date formatting in a user's locale which doesn't match the server.
- External changing data without sending a snapshot of it along with the HTML.
- Invalid HTML tag nesting.

It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.

https://react.dev/link/hydration-mismatch`+r),e)),SS}function ru(e){var t=e.stateNode,r=e.type,u=e.memoizedProps;switch(t[la]=e,t[Ca]=u,Ps(r,u),r){case"dialog":jt("cancel",t),jt("close",t);break;case"iframe":case"object":case"embed":jt("load",t);break;case"video":case"audio":for(r=0;r<ob.length;r++)jt(ob[r],t);break;case"source":jt("error",t);break;case"img":case"image":case"link":jt("error",t),jt("load",t);break;case"details":jt("toggle",t);break;case"input":or("input",u),jt("invalid",t),cr(t,u),Rh(t,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"option":B0(t,u);break;case"select":or("select",u),jt("invalid",t),vp(t,u);break;case"textarea":or("textarea",u),jt("invalid",t),ac(t,u),bf(t,u.value,u.defaultValue,u.children)}r=u.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||t.textContent===""+r||u.suppressHydrationWarning===!0||th(t.textContent,r)?(u.popover!=null&&(jt("beforetoggle",t),jt("toggle",t)),u.onScroll!=null&&jt("scroll",t),u.onScrollEnd!=null&&jt("scrollend",t),u.onClick!=null&&(t.onclick=dl),t=!0):t=!1,t||vo(e,!0)}function Ar(e){for(cl=e.return;cl;)switch(cl.tag){case 5:case 31:case 13:ju=!1;return;case 27:case 3:ju=!0;return;default:cl=cl.return}}function _e(e){if(e!==cl)return!1;if(!gn)return Ar(e),gn=!0,!1;var t=e.tag,r;if((r=t!==3&&t!==27)&&((r=t===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||ih(e.type,e.memoizedProps)),r=!r),r&&Di){for(r=Di;r;){var u=Ss(e,0),g=ky(r);u.serverTail.push(g),r=g.type==="Suspense"?Og(r):jr(r.nextSibling)}vo(e)}if(Ar(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Di=Og(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Di=Og(e)}else t===27?(t=Di,Fl(e.type)?(e=f2,f2=null,Di=e):Di=t):Di=cl?jr(e.stateNode.nextSibling):null;return!0}function qe(){Di=cl=null,_h=gn=!1}function Ne(){var e=Fg;return e!==null&&(os===null?os=e:os.push.apply(os,e),Fg=null),e}function lt(e){Fg===null?Fg=[e]:Fg.push(e)}function Lt(){var e=Go;if(e!==null){Go=null;for(var t=Ep(e);0<e.children.length;)e=e.children[0];tt(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:

- A server/client branch \`if (typeof window !== 'undefined')\`.
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
- Date formatting in a user's locale which doesn't match the server.
- External changing data without sending a snapshot of it along with the HTML.
- Invalid HTML tag nesting.

It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.

%s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function cn(){Sv=u_=null,Tv=!1}function Fn(e,t,r){Z(TS,t._currentValue,e),t._currentValue=r,Z(wS,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==NA&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=NA}function fn(e,t){e._currentValue=TS.current;var r=wS.current;ue(wS,t),e._currentRenderer=r,ue(TS,t)}function Yh(e,t,r){for(;e!==null;){var u=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,u!==null&&(u.childLanes|=t)):u!==null&&(u.childLanes&t)!==t&&(u.childLanes|=t),e===r)break;e=e.return}e!==r&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function jp(e,t,r,u){var g=e.child;for(g!==null&&(g.return=e);g!==null;){var y=g.dependencies;if(y!==null){var C=g.child;y=y.firstContext;e:for(;y!==null;){var O=y;y=g;for(var U=0;U<t.length;U++)if(O.context===t[U]){y.lanes|=r,O=y.alternate,O!==null&&(O.lanes|=r),Yh(y.return,r,e),u||(C=null);break e}y=O.next}}else if(g.tag===18){if(C=g.return,C===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");C.lanes|=r,y=C.alternate,y!==null&&(y.lanes|=r),Yh(C,r,e),C=null}else C=g.child;if(C!==null)C.return=g;else for(C=g;C!==null;){if(C===e){C=null;break}if(g=C.sibling,g!==null){g.return=C.return,C=g;break}C=C.return}g=C}}function ya(e,t,r,u){e=null;for(var g=t,y=!1;g!==null;){if(!y){if((g.flags&524288)!==0)y=!0;else if((g.flags&262144)!==0)break}if(g.tag===10){var C=g.alternate;if(C===null)throw Error("Should have a current fiber. This is a bug in React.");if(C=C.memoizedProps,C!==null){var O=g.type;as(g.pendingProps.value,C.value)||(e!==null?e.push(O):e=[O])}}else if(g===ph.current){if(C=g.alternate,C===null)throw Error("Should have a current fiber. This is a bug in React.");C.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(e!==null?e.push(db):e=[db])}g=g.return}e!==null&&jp(t,e,r,u),t.flags|=262144}function bo(e){for(e=e.firstContext;e!==null;){if(!as(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ma(e){u_=e,Sv=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function mn(e){return Tv&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),Ts(u_,e)}function va(e,t){return u_===null&&Ma(e),Ts(e,t)}function Ts(e,t){var r=t._currentValue;if(t={context:t,memoizedValue:r,next:null},Sv===null){if(e===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Sv=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else Sv=Sv.next=t;return r}function pn(){return{controller:new aR,data:new Map,refCount:0}}function ws(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++}function _o(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),e.refCount===0&&rR(lR,function(){e.controller.abort()})}function fr(e,t,r){(e&127)!==0?0>Eh&&(Eh=Fa(),U1=c_(t),AS=t,r!=null&&(CS=me(r)),(Rn&(_r|Vo))!==Zr&&(ua=!0,tm=z1),e=Zs(),t=ah(),e!==wv||t!==B1?wv=-1.1:t!==null&&(tm=z1),n0=e,B1=t):(e&4194048)!==0&&0>Yu&&(Yu=Fa(),H1=c_(t),kA=t,r!=null&&(zA=me(r)),0>tp)&&(e=Zs(),t=ah(),(e!==im||t!==i0)&&(im=-1.1),nm=e,i0=t)}function bc(e){if(0>Eh){Eh=Fa(),U1=e._debugTask!=null?e._debugTask:null,(Rn&(_r|Vo))!==Zr&&(tm=z1);var t=Zs(),r=ah();t!==wv||r!==B1?wv=-1.1:r!==null&&(tm=z1),n0=t,B1=r}0>Yu&&(Yu=Fa(),H1=e._debugTask!=null?e._debugTask:null,0>tp)&&(e=Zs(),t=ah(),(e!==im||t!==i0)&&(im=-1.1),nm=e,i0=t)}function As(){var e=t0;return t0=0,e}function _c(e){var t=t0;return t0=e,t}function Wr(e){var t=t0;return t0+=e,t}function zl(){Ot=wt=-1.1}function Gn(){var e=wt;return wt=-1.1,e}function Ya(e){0<=e&&(wt=e)}function Ni(){var e=Zi;return Zi=-0,e}function vl(e){0<=e&&(Zi=e)}function Cr(){var e=Gi;return Gi=null,e}function ea(){var e=ua;return ua=!1,e}function Mf(e){rs=Fa(),0>e.actualStartTime&&(e.actualStartTime=rs)}function lu(e){if(0<=rs){var t=Fa()-rs;e.actualDuration+=t,e.selfBaseDuration=t,rs=-1}}function Cs(e){if(0<=rs){var t=Fa()-rs;e.actualDuration+=t,rs=-1}}function xr(){if(0<=rs){var e=Fa(),t=e-rs;rs=-1,t0+=t,Zi+=t,Ot=e}}function el(e){Gi===null&&(Gi=[]),Gi.push(e),ep===null&&(ep=[]),ep.push(e)}function hr(){rs=Fa(),0>wt&&(wt=rs)}function xs(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function Ec(e,t){if(q1===null){var r=q1=[];LS=0,a0=fi(),Av={status:"pending",value:void 0,then:function(u){r.push(u)}}}return LS++,t.then(Eo,Eo),t}function Eo(){if(--LS===0&&(-1<Yu||(tp=-1.1),q1!==null)){Av!==null&&(Av.status="fulfilled");var e=q1;q1=null,a0=0,Av=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Lr(e,t){var r=[],u={status:"pending",value:null,reason:null,then:function(g){r.push(g)}};return e.then(function(){u.status="fulfilled",u.value=t;for(var g=0;g<r.length;g++)(0,r[g])(t)},function(g){for(u.status="rejected",u.reason=g,g=0;g<r.length;g++)(0,r[g])(void 0)}),u}function Or(){var e=r0.current;return e!==null?e:yi.pooledCache}function bl(e,t){t===null?Z(r0,r0.current,e):Z(r0,t.pool,e)}function Ul(){var e=Or();return e===null?null:{parent:Ka._currentValue,pool:e}}function Bl(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function jn(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ba(e,t,r){Ce.actQueue!==null&&(Ce.didUsePromise=!0);var u=e.thenables;if(r=u[r],r===void 0?u.push(t):r!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),t.then(dl,dl),t=r),t._debugInfo===void 0){e=performance.now(),u=t.displayName;var g={name:typeof u=="string"?u:"Promise",start:e,end:e,value:t};t._debugInfo=[{awaited:g}],t.status!=="fulfilled"&&t.status!=="rejected"&&(e=function(){g.end=performance.now()},t.then(e,e))}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Vp(e),e;default:if(typeof t.status=="string")t.then(dl,dl);else{if(e=yi,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=t,e.status="pending",e.then(function(y){if(t.status==="pending"){var C=t;C.status="fulfilled",C.value=y}},function(y){if(t.status==="pending"){var C=t;C.status="rejected",C.reason=y}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Vp(e),e}throw s0=t,Q1=!0,Cv}}function Ls(e){try{return cR(e)}catch(t){throw t!==null&&typeof t=="object"&&typeof t.then=="function"?(s0=t,Q1=!0,Cv):t}}function Yp(){if(s0===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=s0;return s0=null,Q1=!1,e}function Vp(e){if(e===Cv||e===v_)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function yn(e){var t=en;return e!=null&&(en=t===null?e:t.concat(e)),t}function qn(){var e=en;if(e!=null){for(var t=e.length-1;0<=t;t--)if(e[t].name!=null){var r=e[t].debugTask;if(r!=null)return r}}return null}function Yt(e,t,r){for(var u=Object.keys(e.props),g=0;g<u.length;g++){var y=u[g];if(y!=="children"&&y!=="key"){t===null&&(t=Hp(e,r.mode,0),t._debugInfo=en,t.return=r),tt(t,function(C){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",C)},y);break}}}function tl(e){var t=P1;return P1+=1,xv===null&&(xv=Bl()),ba(xv,e,t)}function ki(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function su(e,t){throw t.$$typeof===Bo?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
- Multiple copies of the "react" package is used.
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
- A compiler tries to "inline" JSX instead of using the runtime.`):(e=Object.prototype.toString.call(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead."))}function dr(e,t){var r=qn();r!==null?r.run(su.bind(null,e,t)):su(e,t)}function Rf(e,t){var r=me(e)||"Component";tC[r]||(tC[r]=!0,t=t.displayName||t.name||"Component",e.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
  root.render(%s)`,t,t,t):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
  <%s>{%s}</%s>`,t,t,r,t,r))}function Os(e,t){var r=qn();r!==null?r.run(Rf.bind(null,e,t)):Rf(e,t)}function Sc(e,t){var r=me(e)||"Component";nC[r]||(nC[r]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
  root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
  <%s>%s</%s>`,r,t,r))}function Ds(e,t){var r=qn();r!==null?r.run(Sc.bind(null,e,t)):Sc(e,t)}function $p(e){function t(ie,se){if(e){var fe=ie.deletions;fe===null?(ie.deletions=[se],ie.flags|=16):fe.push(se)}}function r(ie,se){if(!e)return null;for(;se!==null;)t(ie,se),se=se.sibling;return null}function u(ie){for(var se=new Map;ie!==null;)ie.key!==null?se.set(ie.key,ie):se.set(ie.index,ie),ie=ie.sibling;return se}function g(ie,se){return ie=Es(ie,se),ie.index=0,ie.sibling=null,ie}function y(ie,se,fe){return ie.index=fe,e?(fe=ie.alternate,fe!==null?(fe=fe.index,fe<se?(ie.flags|=67108866,se):fe):(ie.flags|=67108866,se)):(ie.flags|=1048576,se)}function C(ie){return e&&ie.alternate===null&&(ie.flags|=67108866),ie}function O(ie,se,fe,Ye){return se===null||se.tag!==6?(se=Jm(fe,ie.mode,Ye),se.return=ie,se._debugOwner=ie,se._debugTask=ie._debugTask,se._debugInfo=en,se):(se=g(se,fe),se.return=ie,se._debugInfo=en,se)}function U(ie,se,fe,Ye){var rt=fe.type;return rt===es?(se=de(ie,se,fe.props.children,Ye,fe.key),Yt(fe,se,ie),se):se!==null&&(se.elementType===rt||Gh(se,fe)||typeof rt=="object"&&rt!==null&&rt.$$typeof===Za&&Ls(rt)===se.type)?(se=g(se,fe.props),ki(se,fe),se.return=ie,se._debugOwner=fe._owner,se._debugInfo=en,se):(se=Hp(fe,ie.mode,Ye),ki(se,fe),se.return=ie,se._debugInfo=en,se)}function q(ie,se,fe,Ye){return se===null||se.tag!==4||se.stateNode.containerInfo!==fe.containerInfo||se.stateNode.implementation!==fe.implementation?(se=Oa(fe,ie.mode,Ye),se.return=ie,se._debugInfo=en,se):(se=g(se,fe.children||[]),se.return=ie,se._debugInfo=en,se)}function de(ie,se,fe,Ye,rt){return se===null||se.tag!==7?(se=yl(fe,ie.mode,Ye,rt),se.return=ie,se._debugOwner=ie,se._debugTask=ie._debugTask,se._debugInfo=en,se):(se=g(se,fe),se.return=ie,se._debugInfo=en,se)}function be(ie,se,fe){if(typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint")return se=Jm(""+se,ie.mode,fe),se.return=ie,se._debugOwner=ie,se._debugTask=ie._debugTask,se._debugInfo=en,se;if(typeof se=="object"&&se!==null){switch(se.$$typeof){case Ks:return fe=Hp(se,ie.mode,fe),ki(fe,se),fe.return=ie,ie=yn(se._debugInfo),fe._debugInfo=en,en=ie,fe;case hh:return se=Oa(se,ie.mode,fe),se.return=ie,se._debugInfo=en,se;case Za:var Ye=yn(se._debugInfo);return se=Ls(se),ie=be(ie,se,fe),en=Ye,ie}if(gi(se)||Be(se))return fe=yl(se,ie.mode,fe,null),fe.return=ie,fe._debugOwner=ie,fe._debugTask=ie._debugTask,ie=yn(se._debugInfo),fe._debugInfo=en,en=ie,fe;if(typeof se.then=="function")return Ye=yn(se._debugInfo),ie=be(ie,tl(se),fe),en=Ye,ie;if(se.$$typeof===Fs)return be(ie,va(ie,se),fe);dr(ie,se)}return typeof se=="function"&&Os(ie,se),typeof se=="symbol"&&Ds(ie,se),null}function ae(ie,se,fe,Ye){var rt=se!==null?se.key:null;if(typeof fe=="string"&&fe!==""||typeof fe=="number"||typeof fe=="bigint")return rt!==null?null:O(ie,se,""+fe,Ye);if(typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case Ks:return fe.key===rt?(rt=yn(fe._debugInfo),ie=U(ie,se,fe,Ye),en=rt,ie):null;case hh:return fe.key===rt?q(ie,se,fe,Ye):null;case Za:return rt=yn(fe._debugInfo),fe=Ls(fe),ie=ae(ie,se,fe,Ye),en=rt,ie}if(gi(fe)||Be(fe))return rt!==null?null:(rt=yn(fe._debugInfo),ie=de(ie,se,fe,Ye,null),en=rt,ie);if(typeof fe.then=="function")return rt=yn(fe._debugInfo),ie=ae(ie,se,tl(fe),Ye),en=rt,ie;if(fe.$$typeof===Fs)return ae(ie,se,va(ie,fe),Ye);dr(ie,fe)}return typeof fe=="function"&&Os(ie,fe),typeof fe=="symbol"&&Ds(ie,fe),null}function De(ie,se,fe,Ye,rt){if(typeof Ye=="string"&&Ye!==""||typeof Ye=="number"||typeof Ye=="bigint")return ie=ie.get(fe)||null,O(se,ie,""+Ye,rt);if(typeof Ye=="object"&&Ye!==null){switch(Ye.$$typeof){case Ks:return fe=ie.get(Ye.key===null?fe:Ye.key)||null,ie=yn(Ye._debugInfo),se=U(se,fe,Ye,rt),en=ie,se;case hh:return ie=ie.get(Ye.key===null?fe:Ye.key)||null,q(se,ie,Ye,rt);case Za:var Gt=yn(Ye._debugInfo);return Ye=Ls(Ye),se=De(ie,se,fe,Ye,rt),en=Gt,se}if(gi(Ye)||Be(Ye))return fe=ie.get(fe)||null,ie=yn(Ye._debugInfo),se=de(se,fe,Ye,rt,null),en=ie,se;if(typeof Ye.then=="function")return Gt=yn(Ye._debugInfo),se=De(ie,se,fe,tl(Ye),rt),en=Gt,se;if(Ye.$$typeof===Fs)return De(ie,se,fe,va(se,Ye),rt);dr(se,Ye)}return typeof Ye=="function"&&Os(se,Ye),typeof Ye=="symbol"&&Ds(se,Ye),null}function it(ie,se,fe,Ye){if(typeof fe!="object"||fe===null)return Ye;switch(fe.$$typeof){case Ks:case hh:L(ie,se,fe);var rt=fe.key;if(typeof rt!="string")break;if(Ye===null){Ye=new Set,Ye.add(rt);break}if(!Ye.has(rt)){Ye.add(rt);break}tt(se,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",rt)});break;case Za:fe=Ls(fe),it(ie,se,fe,Ye)}return Ye}function ot(ie,se,fe,Ye){for(var rt=null,Gt=null,_t=null,mt=se,Kt=se=0,Mi=null;mt!==null&&Kt<fe.length;Kt++){mt.index>Kt?(Mi=mt,mt=null):Mi=mt.sibling;var Ha=ae(ie,mt,fe[Kt],Ye);if(Ha===null){mt===null&&(mt=Mi);break}rt=it(ie,Ha,fe[Kt],rt),e&&mt&&Ha.alternate===null&&t(ie,mt),se=y(Ha,se,Kt),_t===null?Gt=Ha:_t.sibling=Ha,_t=Ha,mt=Mi}if(Kt===fe.length)return r(ie,mt),gn&&Da(ie,Kt),Gt;if(mt===null){for(;Kt<fe.length;Kt++)mt=be(ie,fe[Kt],Ye),mt!==null&&(rt=it(ie,mt,fe[Kt],rt),se=y(mt,se,Kt),_t===null?Gt=mt:_t.sibling=mt,_t=mt);return gn&&Da(ie,Kt),Gt}for(mt=u(mt);Kt<fe.length;Kt++)Mi=De(mt,ie,Kt,fe[Kt],Ye),Mi!==null&&(rt=it(ie,Mi,fe[Kt],rt),e&&Mi.alternate!==null&&mt.delete(Mi.key===null?Kt:Mi.key),se=y(Mi,se,Kt),_t===null?Gt=Mi:_t.sibling=Mi,_t=Mi);return e&&mt.forEach(function(cp){return t(ie,cp)}),gn&&Da(ie,Kt),Gt}function Ti(ie,se,fe,Ye){if(fe==null)throw Error("An iterable object provided no iterator.");for(var rt=null,Gt=null,_t=se,mt=se=0,Kt=null,Mi=null,Ha=fe.next();_t!==null&&!Ha.done;mt++,Ha=fe.next()){_t.index>mt?(Kt=_t,_t=null):Kt=_t.sibling;var cp=ae(ie,_t,Ha.value,Ye);if(cp===null){_t===null&&(_t=Kt);break}Mi=it(ie,cp,Ha.value,Mi),e&&_t&&cp.alternate===null&&t(ie,_t),se=y(cp,se,mt),Gt===null?rt=cp:Gt.sibling=cp,Gt=cp,_t=Kt}if(Ha.done)return r(ie,_t),gn&&Da(ie,mt),rt;if(_t===null){for(;!Ha.done;mt++,Ha=fe.next())_t=be(ie,Ha.value,Ye),_t!==null&&(Mi=it(ie,_t,Ha.value,Mi),se=y(_t,se,mt),Gt===null?rt=_t:Gt.sibling=_t,Gt=_t);return gn&&Da(ie,mt),rt}for(_t=u(_t);!Ha.done;mt++,Ha=fe.next())Kt=De(_t,ie,mt,Ha.value,Ye),Kt!==null&&(Mi=it(ie,Kt,Ha.value,Mi),e&&Kt.alternate!==null&&_t.delete(Kt.key===null?mt:Kt.key),se=y(Kt,se,mt),Gt===null?rt=Kt:Gt.sibling=Kt,Gt=Kt);return e&&_t.forEach(function(kR){return t(ie,kR)}),gn&&Da(ie,mt),rt}function _n(ie,se,fe,Ye){if(typeof fe=="object"&&fe!==null&&fe.type===es&&fe.key===null&&(Yt(fe,null,ie),fe=fe.props.children),typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case Ks:var rt=yn(fe._debugInfo);e:{for(var Gt=fe.key;se!==null;){if(se.key===Gt){if(Gt=fe.type,Gt===es){if(se.tag===7){r(ie,se.sibling),Ye=g(se,fe.props.children),Ye.return=ie,Ye._debugOwner=fe._owner,Ye._debugInfo=en,Yt(fe,Ye,ie),ie=Ye;break e}}else if(se.elementType===Gt||Gh(se,fe)||typeof Gt=="object"&&Gt!==null&&Gt.$$typeof===Za&&Ls(Gt)===se.type){r(ie,se.sibling),Ye=g(se,fe.props),ki(Ye,fe),Ye.return=ie,Ye._debugOwner=fe._owner,Ye._debugInfo=en,ie=Ye;break e}r(ie,se);break}else t(ie,se);se=se.sibling}fe.type===es?(Ye=yl(fe.props.children,ie.mode,Ye,fe.key),Ye.return=ie,Ye._debugOwner=ie,Ye._debugTask=ie._debugTask,Ye._debugInfo=en,Yt(fe,Ye,ie),ie=Ye):(Ye=Hp(fe,ie.mode,Ye),ki(Ye,fe),Ye.return=ie,Ye._debugInfo=en,ie=Ye)}return ie=C(ie),en=rt,ie;case hh:e:{for(rt=fe,fe=rt.key;se!==null;){if(se.key===fe)if(se.tag===4&&se.stateNode.containerInfo===rt.containerInfo&&se.stateNode.implementation===rt.implementation){r(ie,se.sibling),Ye=g(se,rt.children||[]),Ye.return=ie,ie=Ye;break e}else{r(ie,se);break}else t(ie,se);se=se.sibling}Ye=Oa(rt,ie.mode,Ye),Ye.return=ie,ie=Ye}return C(ie);case Za:return rt=yn(fe._debugInfo),fe=Ls(fe),ie=_n(ie,se,fe,Ye),en=rt,ie}if(gi(fe))return rt=yn(fe._debugInfo),ie=ot(ie,se,fe,Ye),en=rt,ie;if(Be(fe)){if(rt=yn(fe._debugInfo),Gt=Be(fe),typeof Gt!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var _t=Gt.call(fe);return _t===fe?(ie.tag!==0||Object.prototype.toString.call(ie.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(_t)!=="[object Generator]")&&(WA||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),WA=!0):fe.entries!==Gt||RS||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),RS=!0),ie=Ti(ie,se,_t,Ye),en=rt,ie}if(typeof fe.then=="function")return rt=yn(fe._debugInfo),ie=_n(ie,se,tl(fe),Ye),en=rt,ie;if(fe.$$typeof===Fs)return _n(ie,se,va(ie,fe),Ye);dr(ie,fe)}return typeof fe=="string"&&fe!==""||typeof fe=="number"||typeof fe=="bigint"?(rt=""+fe,se!==null&&se.tag===6?(r(ie,se.sibling),Ye=g(se,rt),Ye.return=ie,ie=Ye):(r(ie,se),Ye=Jm(rt,ie.mode,Ye),Ye.return=ie,Ye._debugOwner=ie,Ye._debugTask=ie._debugTask,Ye._debugInfo=en,ie=Ye),C(ie)):(typeof fe=="function"&&Os(ie,fe),typeof fe=="symbol"&&Ds(ie,fe),r(ie,se))}return function(ie,se,fe,Ye){var rt=en;en=null;try{P1=0;var Gt=_n(ie,se,fe,Ye);return xv=null,Gt}catch(Mi){if(Mi===Cv||Mi===v_)throw Mi;var _t=D(29,Mi,null,ie.mode);_t.lanes=Ye,_t.return=ie;var mt=_t._debugInfo=en;if(_t._debugOwner=ie._debugOwner,_t._debugTask=ie._debugTask,mt!=null){for(var Kt=mt.length-1;0<=Kt;Kt--)if(typeof mt[Kt].stack=="string"){_t._debugOwner=mt[Kt],_t._debugTask=mt[Kt].debugTask;break}}return _t}finally{en=rt}}}function Nf(e,t){var r=gi(e);return e=!r&&typeof Be(e)=="function",r||e?(r=r?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",r,t,r),!1):!0}function Vh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function _l(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Vi(e){return{lane:e,tag:aC,payload:null,callback:null,next:null}}function Va(e,t,r){var u=e.updateQueue;if(u===null)return null;if(u=u.shared,kS===u&&!sC){var g=me(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.

Please update the following component: %s`,g),sC=!0}return(Rn&_r)!==Zr?(g=u.pending,g===null?t.next=t:(t.next=g.next,g.next=t),u.pending=t,t=iu(e),nu(e,null,r),t):(qh(e,u,t,r),iu(e))}function j(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194048)!==0)){var u=t.lanes;u&=e.pendingLanes,r|=u,t.lanes=r,k(e,r)}}function Hl(e,t){var r=e.updateQueue,u=e.alternate;if(u!==null&&(u=u.updateQueue,r===u)){var g=null,y=null;if(r=r.firstBaseUpdate,r!==null){do{var C={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};y===null?g=y=C:y=y.next=C,r=r.next}while(r!==null);y===null?g=y=t:y=y.next=t}else g=y=t;r={baseState:u.baseState,firstBaseUpdate:g,lastBaseUpdate:y,shared:u.shared,callbacks:u.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Ms(){if(zS){var e=Av;if(e!==null)throw e}}function zi(e,t,r,u){zS=!1;var g=e.updateQueue;am=!1,kS=g.shared;var y=g.firstBaseUpdate,C=g.lastBaseUpdate,O=g.shared.pending;if(O!==null){g.shared.pending=null;var U=O,q=U.next;U.next=null,C===null?y=q:C.next=q,C=U;var de=e.alternate;de!==null&&(de=de.updateQueue,O=de.lastBaseUpdate,O!==C&&(O===null?de.firstBaseUpdate=q:O.next=q,de.lastBaseUpdate=U))}if(y!==null){var be=g.baseState;C=0,de=q=U=null,O=y;do{var ae=O.lane&-536870913,De=ae!==O.lane;if(De?(tn&ae)===ae:(u&ae)===ae){ae!==0&&ae===a0&&(zS=!0),de!==null&&(de=de.next={lane:0,tag:O.tag,payload:O.payload,callback:null,next:null});e:{ae=e;var it=O,ot=t,Ti=r;switch(it.tag){case rC:if(it=it.payload,typeof it=="function"){Tv=!0;var _n=it.call(Ti,be,ot);if(ae.mode&Ol){nn(!0);try{it.call(Ti,be,ot)}finally{nn(!1)}}Tv=!1,be=_n;break e}be=it;break e;case NS:ae.flags=ae.flags&-65537|128;case aC:if(_n=it.payload,typeof _n=="function"){if(Tv=!0,it=_n.call(Ti,be,ot),ae.mode&Ol){nn(!0);try{_n.call(Ti,be,ot)}finally{nn(!1)}}Tv=!1}else it=_n;if(it==null)break e;be=Bt({},be,it);break e;case lC:am=!0}}ae=O.callback,ae!==null&&(e.flags|=64,De&&(e.flags|=8192),De=g.callbacks,De===null?g.callbacks=[ae]:De.push(ae))}else De={lane:ae,tag:O.tag,payload:O.payload,callback:O.callback,next:null},de===null?(q=de=De,U=be):de=de.next=De,C|=ae;if(O=O.next,O===null){if(O=g.shared.pending,O===null)break;De=O,O=De.next,De.next=null,g.lastBaseUpdate=De,g.shared.pending=null}}while(!0);de===null&&(U=be),g.baseState=U,g.firstBaseUpdate=q,g.lastBaseUpdate=de,y===null&&(g.shared.lanes=0),sm|=C,e.lanes=C,e.memoizedState=be}kS=null}function Zt(e,t){if(typeof e!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function Tc(e,t){var r=e.shared.hiddenCallbacks;if(r!==null)for(e.shared.hiddenCallbacks=null,e=0;e<r.length;e++)Zt(r[e],t)}function _a(e,t){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)Zt(r[e],t)}function $h(e,t){var r=wh;Z(__,r,e),Z(Lv,t,e),wh=r|t.baseLanes}function Rs(e){Z(__,wh,e),Z(Lv,Lv.current,e)}function Km(e){wh=__.current,ue(Lv,e),ue(__,e)}function ou(e){var t=e.alternate;Z(Ba,Ba.current&Ov,e),Z(jo,e,e),Vu===null&&(t===null||Lv.current!==null||t.memoizedState!==null)&&(Vu=e)}function Fm(e){Z(Ba,Ba.current,e),Z(jo,e,e),Vu===null&&(Vu=e)}function Ui(e){e.tag===22?(Z(Ba,Ba.current,e),Z(jo,e,e),Vu===null&&(Vu=e)):Ns(e)}function Ns(e){Z(Ba,Ba.current,e),Z(jo,jo.current,e)}function li(e){ue(jo,e),Vu===e&&(Vu=null),ue(Ba,e)}function uu(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||Js(r)||Al(r)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Vt(){var e=ke;Xu===null?Xu=[e]:Xu.push(e)}function Ke(){var e=ke;if(Xu!==null&&(rp++,Xu[rp]!==e)){var t=me(qt);if(!oC.has(t)&&(oC.add(t),Xu!==null)){for(var r="",u=0;u<=rp;u++){var g=Xu[u],y=u===rp?e:g;for(g=u+1+". "+g;30>g.length;)g+=" ";g+=y+`
`,r+=g}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks

   Previous render            Next render
   ------------------------------------------------------
%s   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`,t,r)}}}function Il(e){e==null||gi(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",ke,typeof e)}function Xp(){var e=me(qt);cC.has(e)||(cC.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function Ln(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Wm(e,t){if(K1)return!1;if(t===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",ke),!1;e.length!==t.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.

Previous: %s
Incoming: %s`,ke,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var r=0;r<t.length&&r<e.length;r++)if(!as(e[r],t[r]))return!1;return!0}function Qp(e,t,r,u,g,y){ip=y,qt=t,Xu=e!==null?e._debugHookTypes:null,rp=-1,K1=e!==null&&e.type!==t.type,(Object.prototype.toString.call(r)==="[object AsyncFunction]"||Object.prototype.toString.call(r)==="[object AsyncGeneratorFunction]")&&(y=me(qt),US.has(y)||(US.add(y),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",y===null?"An unknown Component":"<"+y+">"))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ce.H=e!==null&&e.memoizedState!==null?HS:Xu!==null?fC:BS,u0=y=(t.mode&Ol)!==Ut;var C=OS(r,u,g);if(u0=!1,Mv&&(C=Xh(t,r,u,g)),y){nn(!0);try{C=Xh(t,r,u,g)}finally{nn(!1)}}return cu(e,t),C}function cu(e,t){t._debugHookTypes=Xu,t.dependencies===null?ap!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:ap}):t.dependencies._debugThenableState=ap,Ce.H=F1;var r=mi!==null&&mi.next!==null;if(ip=0,Xu=ke=Wa=mi=qt=null,rp=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),S_=!1,J1=0,ap=null,r)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||er||(e=e.dependencies,e!==null&&bo(e)&&(er=!0)),Q1?(Q1=!1,e=!0):e=!1,e&&(t=me(t)||"Unknown",uC.has(t)||US.has(t)||(uC.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function Xh(e,t,r,u){qt=e;var g=0;do{if(Mv&&(ap=null),J1=0,Mv=!1,g>=hR)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(g+=1,K1=!1,Wa=mi=null,e.updateQueue!=null){var y=e.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}rp=-1,Ce.H=hC,y=OS(t,r,u)}while(Mv);return y}function Pp(){var e=Ce.H,t=e.useState()[0];return t=typeof t.then=="function"?kf(t):t,e=e.useState()[0],(mi!==null?mi.memoizedState:null)!==e&&(qt.flags|=1024),t}function ks(){var e=T_!==0;return T_=0,e}function fu(e,t,r){t.updateQueue=e.updateQueue,t.flags=(t.mode&nf)!==Ut?t.flags&-402655237:t.flags&-2053,e.lanes&=~r}function Qh(e){if(S_){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}S_=!1}ip=0,Xu=Wa=mi=qt=null,rp=-1,ke=null,Mv=!1,J1=T_=0,ap=null}function Yn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Wa===null?qt.memoizedState=Wa=e:Wa=Wa.next=e,Wa}function vn(){if(mi===null){var e=qt.alternate;e=e!==null?e.memoizedState:null}else e=mi.next;var t=Wa===null?qt.memoizedState:Wa.next;if(t!==null)Wa=t,mi=e;else{if(e===null)throw qt.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");mi=e,e={memoizedState:mi.memoizedState,baseState:mi.baseState,baseQueue:mi.baseQueue,queue:mi.queue,next:null},Wa===null?qt.memoizedState=Wa=e:Wa=Wa.next=e}return Wa}function Ph(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function kf(e){var t=J1;return J1+=1,ap===null&&(ap=Bl()),e=ba(ap,e,t),t=qt,(Wa===null?t.memoizedState:Wa.next)===null&&(t=t.alternate,Ce.H=t!==null&&t.memoizedState!==null?HS:BS),e}function Dr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return kf(e);if(e.$$typeof===Fs)return mn(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function nl(e){var t=null,r=qt.updateQueue;if(r!==null&&(t=r.memoCache),t==null){var u=qt.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(t={data:u.data.map(function(g){return g.slice()}),index:0})))}if(t??={data:[],index:0},r===null&&(r=Ph(),qt.updateQueue=r),r.memoCache=t,r=t.data[t.index],r===void 0||K1)for(r=t.data[t.index]=Array(e),u=0;u<e;u++)r[u]=Wc;else r.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",r.length,e);return t.index++,r}function il(e,t){return typeof t=="function"?t(e):t}function Zh(e,t,r){var u=Yn();if(r!==void 0){var g=r(t);if(u0){nn(!0);try{r(t)}finally{nn(!1)}}}else g=t;return u.memoizedState=u.baseState=g,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:g},u.queue=e,e=e.dispatch=nd.bind(null,qt,e),[u.memoizedState,e]}function ql(e){return wc(vn(),mi,e)}function wc(e,t,r){var u=e.queue;if(u===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");u.lastRenderedReducer=r;var g=e.baseQueue,y=u.pending;if(y!==null){if(g!==null){var C=g.next;g.next=y.next,y.next=C}t.baseQueue!==g&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=g=y,u.pending=null}if(y=e.baseState,g===null)e.memoizedState=y;else{t=g.next;var O=C=null,U=null,q=t,de=!1;do{var be=q.lane&-536870913;if(be!==q.lane?(tn&be)===be:(ip&be)===be){var ae=q.revertLane;if(ae===0)U!==null&&(U=U.next={lane:0,revertLane:0,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null}),be===a0&&(de=!0);else if((ip&ae)===ae){q=q.next,ae===a0&&(de=!0);continue}else be={lane:0,revertLane:q.revertLane,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},U===null?(O=U=be,C=y):U=U.next=be,qt.lanes|=ae,sm|=ae;be=q.action,u0&&r(y,be),y=q.hasEagerState?q.eagerState:r(y,be)}else ae={lane:be,revertLane:q.revertLane,gesture:q.gesture,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},U===null?(O=U=ae,C=y):U=U.next=ae,qt.lanes|=be,sm|=be;q=q.next}while(q!==null&&q!==t);if(U===null?C=y:U.next=O,!as(y,e.memoizedState)&&(er=!0,de&&(r=Av,r!==null)))throw r;e.memoizedState=y,e.baseState=C,e.baseQueue=U,u.lastRenderedState=y}return g===null&&(u.lanes=0),[e.memoizedState,u.dispatch]}function zs(e){var t=vn(),r=t.queue;if(r===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");r.lastRenderedReducer=e;var u=r.dispatch,g=r.pending,y=t.memoizedState;if(g!==null){r.pending=null;var C=g=g.next;do y=e(y,C.action),C=C.next;while(C!==g);as(y,t.memoizedState)||(er=!0),t.memoizedState=y,t.baseQueue===null&&(t.baseState=y),r.lastRenderedState=y}return[y,u]}function Gl(e,t,r){var u=qt,g=Yn();if(gn){if(r===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var y=r();Dv||y===r()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Dv=!0)}else{if(y=t(),Dv||(r=t(),as(y,r)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Dv=!0)),yi===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(tn&127)!==0||ey(u,t,y)}return g.memoizedState=y,r={value:y,getSnapshot:t},g.queue=r,oi(ty.bind(null,u,r,e),[e]),u.flags|=2048,Nr($u|ss,{destroy:void 0},So.bind(null,u,r,y,t),null),y}function Us(e,t,r){var u=qt,g=vn(),y=gn;if(y){if(r===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");r=r()}else if(r=t(),!Dv){var C=t();as(r,C)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Dv=!0)}if((C=!as((mi||g).memoizedState,r))&&(g.memoizedState=r,er=!0),g=g.queue,$n(2048,ss,ty.bind(null,u,g,e),[e]),g.getSnapshot!==t||C||Wa!==null&&Wa.memoizedState.tag&$u){if(u.flags|=2048,Nr($u|ss,{destroy:void 0},So.bind(null,u,g,r,t),null),yi===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");y||(ip&127)!==0||ey(u,t,r)}return r}function ey(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=qt.updateQueue,t===null?(t=Ph(),qt.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function So(e,t,r,u){t.value=r,t.getSnapshot=u,Ea(t)&&zf(e)}function ty(e,t,r){return r(function(){Ea(t)&&(fr(2,"updateSyncExternalStore()",e),zf(e))})}function Ea(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!as(e,r)}catch{return!0}}function zf(e){var t=Wi(e,2);t!==null&&ti(t,e,2)}function jl(e){var t=Yn();if(typeof e=="function"){var r=e;if(e=r(),u0){nn(!0);try{r()}finally{nn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:il,lastRenderedState:e},t}function Bi(e){e=jl(e);var t=e.queue,r=Fp.bind(null,qt,t);return t.dispatch=r,[e.memoizedState,r]}function Bs(e){var t=Yn();t.memoizedState=t.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=r,t=id.bind(null,qt,!0,r),r.dispatch=t,[e,t]}function Ac(e,t){return Jh(vn(),mi,e,t)}function Jh(e,t,r,u){return e.baseState=r,wc(e,mi,typeof u=="function"?u:il)}function hu(e,t){var r=vn();return mi!==null?Jh(r,mi,e,t):(r.baseState=e,[e,r.queue.dispatch])}function El(e,t,r,u,g){if(Mc(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var y={payload:g,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(C){y.listeners.push(C)}};Ce.T!==null?r(!0):y.isTransition=!1,u(y),r=t.pending,r===null?(y.next=t.pending=y,Cc(t,y)):(y.next=r.next,t.pending=r.next=y)}}function Cc(e,t){var r=t.action,u=t.payload,g=e.state;if(t.isTransition){var y=Ce.T,C={};C._updatedFibers=new Set,Ce.T=C;try{var O=r(g,u),U=Ce.S;U!==null&&U(C,O),ny(e,t,O)}catch(q){du(e,t,q)}finally{y!==null&&C.types!==null&&(y.types!==null&&y.types!==C.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),y.types=C.types),Ce.T=y,y===null&&C._updatedFibers&&(e=C._updatedFibers.size,C._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{C=r(g,u),ny(e,t,C)}catch(q){du(e,t,q)}}function ny(e,t,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?(Ce.asyncTransitions++,r.then(Hf,Hf),r.then(function(u){Uf(e,t,u)},function(u){return du(e,t,u)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):Uf(e,t,r)}function Uf(e,t,r){t.status="fulfilled",t.value=r,Bf(t),e.state=r,t=e.pending,t!==null&&(r=t.next,r===t?e.pending=null:(r=r.next,t.next=r,Cc(e,r)))}function du(e,t,r){var u=e.pending;if(e.pending=null,u!==null){u=u.next;do t.status="rejected",t.reason=r,Bf(t),t=t.next;while(t!==u)}e.action=null}function Bf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ta(e,t){return t}function Hs(e,t){if(gn){var r=yi.formState;if(r!==null){e:{var u=qt;if(gn){if(Di){t:{for(var g=Di,y=ju;g.nodeType!==8;){if(!y){g=null;break t}if(g=jr(g.nextSibling),g===null){g=null;break t}}y=g.data,g=y===s2||y===KC?g:null}if(g){Di=jr(g.nextSibling),u=g.data===s2;break e}}vo(u)}u=!1}u&&(t=r[0])}}return r=Yn(),r.memoizedState=r.baseState=t,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ta,lastRenderedState:t},r.queue=u,r=Fp.bind(null,qt,u),u.dispatch=r,u=jl(!1),y=id.bind(null,qt,!1,u.queue),u=Yn(),g={state:t,dispatch:null,action:e,pending:null},u.queue=g,r=El.bind(null,qt,g,y,r),g.dispatch=r,u.memoizedState=e,[t,r,!1]}function xc(e){return _i(vn(),mi,e)}function _i(e,t,r){if(t=wc(e,t,ta)[0],e=ql(il)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var u=kf(t)}catch(C){throw C===Cv?v_:C}else u=t;t=vn();var g=t.queue,y=g.dispatch;return r!==t.memoizedState&&(qt.flags|=2048,Nr($u|ss,{destroy:void 0},Mr.bind(null,g,r),null)),[u,y,e]}function Mr(e,t){e.action=t}function Rr(e){var t=vn(),r=mi;if(r!==null)return _i(t,r,e);vn(),t=t.memoizedState,r=vn();var u=r.queue.dispatch;return r.memoizedState=e,[t,u,!1]}function Nr(e,t,r,u){return e={tag:e,create:r,deps:u,inst:t,next:null},t=qt.updateQueue,t===null&&(t=Ph(),qt.updateQueue=t),r=t.lastEffect,r===null?t.lastEffect=e.next=e:(u=r.next,r.next=e,e.next=u,t.lastEffect=e),e}function Kh(e){var t=Yn();return e={current:e},t.memoizedState=e}function Vn(e,t,r,u){var g=Yn();qt.flags|=e,g.memoizedState=Nr($u|t,{destroy:void 0},r,u===void 0?null:u)}function $n(e,t,r,u){var g=vn();u=u===void 0?null:u;var y=g.memoizedState.inst;mi!==null&&u!==null&&Wm(u,mi.memoizedState.deps)?g.memoizedState=Nr(t,y,r,u):(qt.flags|=e,g.memoizedState=Nr($u|t,y,r,u))}function oi(e,t){(qt.mode&nf)!==Ut?Vn(276826112,ss,e,t):Vn(8390656,ss,e,t)}function Zp(e){qt.flags|=4;var t=qt.updateQueue;if(t===null)t=Ph(),qt.updateQueue=t,t.events=[e];else{var r=t.events;r===null?t.events=[e]:r.push(e)}}function Yl(e){var t=Yn(),r={impl:e};return t.memoizedState=r,function(){if((Rn&_r)!==Zr)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return r.impl.apply(void 0,arguments)}}function Rt(e){var t=vn().memoizedState;return Zp({ref:t,nextImpl:e}),function(){if((Rn&_r)!==Zr)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function kn(e,t){var r=4194308;return(qt.mode&nf)!==Ut&&(r|=134217728),Vn(r,Yo,e,t)}function si(e,t){if(typeof t=="function"){e=e();var r=t(e);return function(){typeof r=="function"?r():t(null)}}if(t!=null)return t.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(t).join(", ")+"}"),e=e(),t.current=e,function(){t.current=null}}function Lc(e,t,r){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),r=r!=null?r.concat([e]):null;var u=4194308;(qt.mode&nf)!==Ut&&(u|=134217728),Vn(u,Yo,si.bind(null,t,e),r)}function To(e,t,r){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),r=r!=null?r.concat([e]):null,$n(4,Yo,si.bind(null,t,e),r)}function wo(e,t){return Yn().memoizedState=[e,t===void 0?null:t],e}function Vl(e,t){var r=vn();t=t===void 0?null:t;var u=r.memoizedState;return t!==null&&Wm(t,u[1])?u[0]:(r.memoizedState=[e,t],e)}function Oc(e,t){var r=Yn();t=t===void 0?null:t;var u=e();if(u0){nn(!0);try{e()}finally{nn(!1)}}return r.memoizedState=[u,t],u}function Ao(e,t){var r=vn();t=t===void 0?null:t;var u=r.memoizedState;if(t!==null&&Wm(t,u[1]))return u[0];if(u=e(),u0){nn(!0);try{e()}finally{nn(!1)}}return r.memoizedState=[u,t],u}function Fh(e,t){return Wh(Yn(),e,t)}function ui(e,t){return iy(vn(),mi.memoizedState,e,t)}function Jp(e,t){var r=vn();return mi===null?Wh(r,e,t):iy(r,mi.memoizedState,e,t)}function Wh(e,t,r){return r===void 0||(ip&1073741824)!==0&&(tn&261930)===0?e.memoizedState=t:(e.memoizedState=r,e=vd(),qt.lanes|=e,sm|=e,r)}function iy(e,t,r,u){return as(r,t)?r:Lv.current!==null?(e=Wh(e,r,u),as(e,t)||(er=!0),e):(ip&42)===0||(ip&1073741824)!==0&&(tn&261930)===0?(er=!0,e.memoizedState=r):(e=vd(),qt.lanes|=e,sm|=e,t)}function Hf(){Ce.asyncTransitions--}function Kp(e,t,r,u,g){var y=Ht.p;Ht.p=y!==0&&y<Xr?y:Xr;var C=Ce.T,O={};O._updatedFibers=new Set,Ce.T=O,id(e,!1,t,r);try{var U=g(),q=Ce.S;if(q!==null&&q(O,U),U!==null&&typeof U=="object"&&typeof U.then=="function"){Ce.asyncTransitions++,U.then(Hf,Hf);var de=Lr(U,u);xo(e,t,de,ei(e))}else xo(e,t,u,ei(e))}catch(be){xo(e,t,{then:function(){},status:"rejected",reason:be},ei(e))}finally{Ht.p=y,C!==null&&O.types!==null&&(C.types!==null&&C.types!==O.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),C.types=O.types),Ce.T=C,C===null&&O._updatedFibers&&(e=O._updatedFibers.size,O._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function ed(e,t,r,u){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var g=If(e).queue;bc(e),Kp(e,g,t,_0,r===null?_:function(){return td(e),r(u)})}function If(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:_0,baseState:_0,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:il,lastRenderedState:_0},next:null};var r={};return t.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:il,lastRenderedState:r},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function td(e){Ce.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=If(e);t.next===null&&(t=e.alternate.memoizedState),xo(e,t.next.queue,{},ei(e))}function Sa(){var e=jl(!1);return e=Kp.bind(null,qt,e.queue,!0,!1),Yn().memoizedState=e,[!1,e]}function Ei(){var e=ql(il)[0],t=vn().memoizedState;return[typeof e=="boolean"?e:kf(e),t]}function pu(){var e=zs(il)[0],t=vn().memoizedState;return[typeof e=="boolean"?e:kf(e),t]}function $l(){return mn(db)}function Dc(){var e=Yn(),t=yi.identifierPrefix;if(gn){var r=Fd,u=Kd;r=(u&~(1<<32-Ja(u)-1)).toString(32)+r,t="_"+t+"R_"+r,r=T_++,0<r&&(t+="H"+r.toString(32)),t+="_"}else r=fR++,t="_"+t+"r_"+r.toString(32)+"_";return e.memoizedState=t}function qf(){return Yn().memoizedState=Co.bind(null,qt)}function Co(e,t){for(var r=e.return;r!==null;){switch(r.tag){case 24:case 3:var u=ei(r),g=Vi(u),y=Va(r,g,u);y!==null&&(fr(u,"refresh()",e),ti(y,r,u),j(y,r,u)),e=pn(),t!=null&&y!==null&&console.error("The seed argument is not enabled outside experimental channels."),g.payload={cache:e};return}r=r.return}}function nd(e,t,r){var u=arguments;typeof u[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),u=ei(e);var g={lane:u,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};Mc(e)?ay(t,g):(g=zp(e,t,g,u),g!==null&&(fr(u,"dispatch()",e),ti(g,e,u),ad(g,t,u)))}function Fp(e,t,r){var u=arguments;typeof u[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),u=ei(e),xo(e,t,r,u)&&fr(u,"setState()",e)}function xo(e,t,r,u){var g={lane:u,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(Mc(e))ay(t,g);else{var y=e.alternate;if(e.lanes===0&&(y===null||y.lanes===0)&&(y=t.lastRenderedReducer,y!==null)){var C=Ce.H;Ce.H=rf;try{var O=t.lastRenderedState,U=y(O,r);if(g.hasEagerState=!0,g.eagerState=U,as(U,O))return qh(e,t,g,0),yi===null&&xf(),!1}catch{}finally{Ce.H=C}}if(r=zp(e,t,g,u),r!==null)return ti(r,e,u),ad(r,t,u),!0}return!1}function id(e,t,r,u){if(Ce.T===null&&a0===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),u={lane:2,revertLane:fi(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Mc(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=zp(e,r,u,2),t!==null&&(fr(2,"setOptimistic()",e),ti(t,e,2))}function Mc(e){var t=e.alternate;return e===qt||t!==null&&t===qt}function ay(e,t){Mv=S_=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function ad(e,t,r){if((r&4194048)!==0){var u=t.lanes;u&=e.pendingLanes,r|=u,t.lanes=r,k(e,r)}}function $t(e){if(e!==null&&typeof e!="function"){var t=String(e);TC.has(t)||(TC.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function Wp(e,t,r,u){var g=e.memoizedState,y=r(u,g);if(e.mode&Ol){nn(!0);try{y=r(u,g)}finally{nn(!1)}}y===void 0&&(t=W(t)||"Component",bC.has(t)||(bC.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),g=y==null?g:Bt({},g,y),e.memoizedState=g,e.lanes===0&&(e.updateQueue.baseState=g)}function eg(e,t,r,u,g,y,C){var O=e.stateNode;if(typeof O.shouldComponentUpdate=="function"){if(r=O.shouldComponentUpdate(u,y,C),e.mode&Ol){nn(!0);try{r=O.shouldComponentUpdate(u,y,C)}finally{nn(!1)}}return r===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",W(t)||"Component"),r}return t.prototype&&t.prototype.isPureReactComponent?!dc(r,u)||!dc(g,y):!0}function Rc(e,t,r,u){var g=t.state;typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,u),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,u),t.state!==g&&(e=me(e)||"Component",pC.has(e)||(pC.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),IS.enqueueReplaceState(t,t.state,null))}function gu(e,t){var r=t;if("ref"in t){r={};for(var u in t)u!=="ref"&&(r[u]=t[u])}if(e=e.defaultProps){r===t&&(r=Bt({},r));for(var g in e)r[g]===void 0&&(r[g]=e[g])}return r}function ry(e){mS(e),console.warn(`%s

%s
`,Rv?"An error occurred in the <"+Rv+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function ly(e){var t=Rv?"The above error occurred in the <"+Rv+"> component.":"The above error occurred in one of your React components.",r="React will try to recreate this component tree from scratch using the error boundary you provided, "+((qS||"Anonymous")+".");if(typeof e=="object"&&e!==null&&typeof e.environmentName=="string"){var u=e.environmentName;e=[`%o

%s

%s
`,e,t,r].slice(0),typeof e[0]=="string"?e.splice(0,1,rx+" "+e[0],lx,P_+u+P_,sx):e.splice(0,0,rx,lx,P_+u+P_,sx),e.unshift(console),u=RR.apply(console.error,e),u()}else console.error(`%o

%s

%s
`,e,t,r)}function kr(e){mS(e)}function Gf(e,t){try{Rv=t.source?me(t.source):null,qS=null;var r=t.value;if(Ce.actQueue!==null)Ce.thrownErrors.push(r);else{var u=e.onUncaughtError;u(r,{componentStack:t.stack})}}catch(g){setTimeout(function(){throw g})}}function jf(e,t,r){try{Rv=r.source?me(r.source):null,qS=me(t);var u=e.onCaughtError;u(r.value,{componentStack:r.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(g){setTimeout(function(){throw g})}}function Yf(e,t,r){return r=Vi(r),r.tag=NS,r.payload={element:null},r.callback=function(){tt(t.source,Gf,e,t)},r}function rd(e){return e=Vi(e),e.tag=NS,e}function ld(e,t,r,u){var g=r.type.getDerivedStateFromError;if(typeof g=="function"){var y=u.value;e.payload=function(){return g(y)},e.callback=function(){yc(r),tt(u.source,jf,t,r,u)}}var C=r.stateNode;C!==null&&typeof C.componentDidCatch=="function"&&(e.callback=function(){yc(r),tt(u.source,jf,t,r,u),typeof g!="function"&&(um===null?um=new Set([this]):um.add(this)),sR(this,u),typeof g=="function"||(r.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",me(r)||"Unknown")})}function zr(e,t,r,u,g){if(r.flags|=32768,to&&Td(e,g),u!==null&&typeof u=="object"&&typeof u.then=="function"){if(t=r.alternate,t!==null&&ya(t,r,g,!0),gn&&(_h=!0),r=jo.current,r!==null){switch(r.tag){case 31:case 13:return Vu===null?Pn():r.alternate===null&&Ji===sp&&(Ji=C_),r.flags&=-257,r.flags|=65536,r.lanes=g,u===b_?r.flags|=16384:(t=r.updateQueue,t===null?r.updateQueue=new Set([u]):t.add(u),Gc(e,u,g)),!1;case 22:return r.flags|=65536,u===b_?r.flags|=16384:(t=r.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([u])},r.updateQueue=t):(r=t.retryQueue,r===null?t.retryQueue=new Set([u]):r.add(u)),Gc(e,u,g)),!1}throw Error("Unexpected Suspense handler tag ("+r.tag+"). This is a bug in React.")}return Gc(e,u,g),Pn(),!1}if(gn)return _h=!0,t=jo.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=g,u!==SS&&lt(ma(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:u}),r))):(u!==SS&&lt(ma(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:u}),r)),e=e.current.alternate,e.flags|=65536,g&=-g,e.lanes|=g,u=ma(u,r),g=Yf(e.stateNode,u,g),Hl(e,g),Ji!==rm&&(Ji=c0)),!1;var y=ma(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:u}),r);if(ab===null?ab=[y]:ab.push(y),Ji!==rm&&(Ji=c0),t===null)return!0;u=ma(u,r),r=t;do{switch(r.tag){case 3:return r.flags|=65536,e=g&-g,r.lanes|=e,e=Yf(r.stateNode,u,e),Hl(r,e),!1;case 1:if(t=r.type,y=r.stateNode,(r.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(um===null||!um.has(y))))return r.flags|=65536,g&=-g,r.lanes|=g,g=rd(g),ld(g,e,r,u),Hl(r,g),!1}r=r.return}while(r!==null);return!1}function ci(e,t,r,u){t.child=e===null?iC(t,null,r,u):o0(t,e.child,r,u)}function sd(e,t,r,u,g){r=r.render;var y=t.ref;if("ref"in u){var C={};for(var O in u)O!=="ref"&&(C[O]=u[O])}else C=u;return Ma(t),u=Qp(e,t,r,C,y,g),O=ks(),e!==null&&!er?(fu(e,t,g),qs(e,t,g)):(gn&&O&&Ip(t),t.flags|=1,ci(e,t,u,g),t.child)}function mu(e,t,r,u,g){if(e===null){var y=r.type;return typeof y=="function"&&!Bp(y)&&y.defaultProps===void 0&&r.compare===null?(r=au(y),t.tag=15,t.type=r,rg(t,y),Vf(e,t,r,u,g)):(e=Zm(r.type,null,u,t,t.mode,g),e.ref=t.ref,e.return=t,t.child=e)}if(y=e.child,!cg(e,g)){var C=y.memoizedProps;if(r=r.compare,r=r!==null?r:dc,r(C,u)&&e.ref===t.ref)return qs(e,t,g)}return t.flags|=1,e=Es(y,u),e.ref=t.ref,e.return=t,t.child=e}function Vf(e,t,r,u,g){if(e!==null){var y=e.memoizedProps;if(dc(y,u)&&e.ref===t.ref&&t.type===e.type)if(er=!1,t.pendingProps=u=y,cg(e,g))(e.flags&131072)!==0&&(er=!0);else return t.lanes=e.lanes,qs(e,t,g)}return Xl(e,t,r,u,g)}function $f(e,t,r,u){var g=u.children,y=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:N1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((t.flags&128)!==0){if(y=y!==null?y.baseLanes|r:r,e!==null){for(u=t.child=e.child,g=0;u!==null;)g=g|u.lanes|u.childLanes,u=u.sibling;u=g&~y}else u=0,t.child=null;return tg(e,t,y,r,u)}if((r&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&bl(t,y!==null?y.cachePool:null),y!==null?$h(t,y):Rs(t),Ui(t);else return u=t.lanes=536870912,tg(e,t,y!==null?y.baseLanes|r:r,r,u)}else y!==null?(bl(t,y.cachePool),$h(t,y),Ns(t),t.memoizedState=null):(e!==null&&bl(t,null),Rs(t),Ns(t));return ci(e,t,g,r),t.child}function Is(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:N1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function tg(e,t,r,u,g){var y=Or();return y=y===null?null:{parent:Ka._currentValue,pool:y},t.memoizedState={baseLanes:r,cachePool:y},e!==null&&bl(t,null),Rs(t),Ui(t),e!==null&&ya(e,t,u,!0),t.childLanes=g,null}function yu(e,t){var r=t.hidden;return r!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
- <Activity %s>
+ <Activity %s>`,r===!0?"hidden":r===!1?"hidden={false}":"hidden={...}",r?'mode="hidden"':'mode="visible"'),t=og({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ng(e,t,r){return o0(t,e.child,null,r),e=yu(t,t.pendingProps),e.flags|=2,li(t),t.memoizedState=null,e}function Lo(e,t,r){var u=t.pendingProps,g=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(gn){if(u.mode==="hidden")return e=yu(t,u),t.lanes=536870912,Is(null,e);if(Fm(t),(e=Di)?(r=Zc(e,ju),r=r!==null&&r.data===m0?r:null,r!==null&&(u={dehydrated:r,treeContext:Gp(),retryLane:536870912,hydrationErrors:null},t.memoizedState=u,u=q0(r),u.return=t,t.child=u,cl=t,Di=null)):r=null,r===null)throw Df(t,e),vo(t);return t.lanes=536870912,null}return yu(t,u)}var y=e.memoizedState;if(y!==null){var C=y.dehydrated;if(Fm(t),g)if(t.flags&256)t.flags&=-257,t=ng(e,t,r);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(Of(),(r&536870912)!==0&&bd(t),er||ya(e,t,r,!1),g=(r&e.childLanes)!==0,er||g){if(u=yi,u!==null&&(C=J(u,r),C!==0&&C!==y.retryLane))throw y.retryLane=C,Wi(e,C),ti(u,e,C),GS;Pn(),t=ng(e,t,r)}else e=y.treeContext,Di=jr(C.nextSibling),cl=t,gn=!0,Fg=null,_h=!1,Go=null,ju=!1,e!==null&&vc(t,e),t=yu(t,u),t.flags|=4096;return t}return y=e.child,u={mode:u.mode,children:u.children},(r&536870912)!==0&&(r&e.lanes)!==0&&bd(t),e=Es(y,u),e.ref=t.ref,t.child=e,e.return=t,e}function od(e,t){var r=t.ref;if(r===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(e===null||e.ref!==r)&&(t.flags|=4194816)}}function Xl(e,t,r,u,g){if(r.prototype&&typeof r.prototype.render=="function"){var y=W(r)||"Unknown";wC[y]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",y,y),wC[y]=!0)}return t.mode&Ol&&af.recordLegacyContextWarning(t,null),e===null&&(rg(t,t.type),r.contextTypes&&(y=W(r)||"Unknown",CC[y]||(CC[y]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",y)))),Ma(t),r=Qp(e,t,r,u,void 0,g),u=ks(),e!==null&&!er?(fu(e,t,g),qs(e,t,g)):(gn&&u&&Ip(t),t.flags|=1,ci(e,t,r,g),t.child)}function ig(e,t,r,u,g,y){return Ma(t),rp=-1,K1=e!==null&&e.type!==t.type,t.updateQueue=null,r=Xh(t,u,r,g),cu(e,t),u=ks(),e!==null&&!er?(fu(e,t,y),qs(e,t,y)):(gn&&u&&Ip(t),t.flags|=1,ci(e,t,r,y),t.child)}function ag(e,t,r,u,g){switch(w(t)){case!1:var y=t.stateNode,C=new t.type(t.memoizedProps,y.context).state;y.updater.enqueueSetState(y,C,null);break;case!0:t.flags|=128,t.flags|=65536,y=Error("Simulated error coming from DevTools");var O=g&-g;if(t.lanes|=O,C=yi,C===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");O=rd(O),ld(O,C,t,ma(y,t)),Hl(t,O)}if(Ma(t),t.stateNode===null){if(C=Kg,y=r.contextType,"contextType"in r&&y!==null&&(y===void 0||y.$$typeof!==Fs)&&!SC.has(r)&&(SC.add(r),O=y===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof y!="object"?" However, it is set to a "+typeof y+".":y.$$typeof===Qy?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(y).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",W(r)||"Component",O)),typeof y=="object"&&y!==null&&(C=mn(y)),y=new r(u,C),t.mode&Ol){nn(!0);try{y=new r(u,C)}finally{nn(!1)}}if(C=t.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=IS,t.stateNode=y,y._reactInternals=t,y._reactInternalInstance=dC,typeof r.getDerivedStateFromProps=="function"&&C===null&&(C=W(r)||"Component",gC.has(C)||(gC.add(C),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",C,y.state===null?"null":"undefined",C))),typeof r.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"){var U=O=C=null;if(typeof y.componentWillMount=="function"&&y.componentWillMount.__suppressDeprecationWarning!==!0?C="componentWillMount":typeof y.UNSAFE_componentWillMount=="function"&&(C="UNSAFE_componentWillMount"),typeof y.componentWillReceiveProps=="function"&&y.componentWillReceiveProps.__suppressDeprecationWarning!==!0?O="componentWillReceiveProps":typeof y.UNSAFE_componentWillReceiveProps=="function"&&(O="UNSAFE_componentWillReceiveProps"),typeof y.componentWillUpdate=="function"&&y.componentWillUpdate.__suppressDeprecationWarning!==!0?U="componentWillUpdate":typeof y.UNSAFE_componentWillUpdate=="function"&&(U="UNSAFE_componentWillUpdate"),C!==null||O!==null||U!==null){y=W(r)||"Component";var q=typeof r.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";yC.has(y)||(yC.add(y),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.

%s uses %s but also contains the following legacy lifecycles:%s%s%s

The above lifecycles should be removed. Learn more about this warning here:
https://react.dev/link/unsafe-component-lifecycles`,y,q,C!==null?`
  `+C:"",O!==null?`
  `+O:"",U!==null?`
  `+U:""))}}y=t.stateNode,C=W(r)||"Component",y.render||(r.prototype&&typeof r.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",C):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",C)),!y.getInitialState||y.getInitialState.isReactClassApproved||y.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",C),y.getDefaultProps&&!y.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",C),y.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",C),r.childContextTypes&&!EC.has(r)&&(EC.add(r),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",C)),r.contextTypes&&!_C.has(r)&&(_C.add(r),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",C)),typeof y.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",C),r.prototype&&r.prototype.isPureReactComponent&&typeof y.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",W(r)||"A pure component"),typeof y.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",C),typeof y.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",C),typeof y.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",C),typeof y.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",C),O=y.props!==u,y.props!==void 0&&O&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",C),y.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",C,C),typeof y.getSnapshotBeforeUpdate!="function"||typeof y.componentDidUpdate=="function"||mC.has(r)||(mC.add(r),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",W(r))),typeof y.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",C),typeof y.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",C),typeof r.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",C),(O=y.state)&&(typeof O!="object"||gi(O))&&console.error("%s.state: must be set to an object or null",C),typeof y.getChildContext=="function"&&typeof r.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",C),y=t.stateNode,y.props=u,y.state=t.memoizedState,y.refs={},Vh(t),C=r.contextType,y.context=typeof C=="object"&&C!==null?mn(C):Kg,y.state===u&&(C=W(r)||"Component",vC.has(C)||(vC.add(C),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",C))),t.mode&Ol&&af.recordLegacyContextWarning(t,y),af.recordUnsafeLifecycleWarnings(t,y),y.state=t.memoizedState,C=r.getDerivedStateFromProps,typeof C=="function"&&(Wp(t,r,C,u),y.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(C=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),C!==y.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",me(t)||"Component"),IS.enqueueReplaceState(y,y.state,null)),zi(t,u,y,g),Ms(),y.state=t.memoizedState),typeof y.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&nf)!==Ut&&(t.flags|=134217728),y=!0}else if(e===null){y=t.stateNode;var de=t.memoizedProps;O=gu(r,de),y.props=O;var be=y.context;U=r.contextType,C=Kg,typeof U=="object"&&U!==null&&(C=mn(U)),q=r.getDerivedStateFromProps,U=typeof q=="function"||typeof y.getSnapshotBeforeUpdate=="function",de=t.pendingProps!==de,U||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(de||be!==C)&&Rc(t,y,u,C),am=!1;var ae=t.memoizedState;y.state=ae,zi(t,u,y,g),Ms(),be=t.memoizedState,de||ae!==be||am?(typeof q=="function"&&(Wp(t,r,q,u),be=t.memoizedState),(O=am||eg(t,r,O,u,ae,be,C))?(U||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&nf)!==Ut&&(t.flags|=134217728)):(typeof y.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&nf)!==Ut&&(t.flags|=134217728),t.memoizedProps=u,t.memoizedState=be),y.props=u,y.state=be,y.context=C,y=O):(typeof y.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&nf)!==Ut&&(t.flags|=134217728),y=!1)}else{y=t.stateNode,_l(e,t),C=t.memoizedProps,U=gu(r,C),y.props=U,q=t.pendingProps,ae=y.context,be=r.contextType,O=Kg,typeof be=="object"&&be!==null&&(O=mn(be)),de=r.getDerivedStateFromProps,(be=typeof de=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(C!==q||ae!==O)&&Rc(t,y,u,O),am=!1,ae=t.memoizedState,y.state=ae,zi(t,u,y,g),Ms();var De=t.memoizedState;C!==q||ae!==De||am||e!==null&&e.dependencies!==null&&bo(e.dependencies)?(typeof de=="function"&&(Wp(t,r,de,u),De=t.memoizedState),(U=am||eg(t,r,U,u,ae,De,O)||e!==null&&e.dependencies!==null&&bo(e.dependencies))?(be||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(u,De,O),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(u,De,O)),typeof y.componentDidUpdate=="function"&&(t.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof y.componentDidUpdate!="function"||C===e.memoizedProps&&ae===e.memoizedState||(t.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||C===e.memoizedProps&&ae===e.memoizedState||(t.flags|=1024),t.memoizedProps=u,t.memoizedState=De),y.props=u,y.state=De,y.context=O,y=U):(typeof y.componentDidUpdate!="function"||C===e.memoizedProps&&ae===e.memoizedState||(t.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||C===e.memoizedProps&&ae===e.memoizedState||(t.flags|=1024),y=!1)}if(O=y,od(e,t),C=(t.flags&128)!==0,O||C){if(O=t.stateNode,Sr(t),C&&typeof r.getDerivedStateFromError!="function")r=null,rs=-1;else if(r=YA(O),t.mode&Ol){nn(!0);try{YA(O)}finally{nn(!1)}}t.flags|=1,e!==null&&C?(t.child=o0(t,e.child,null,g),t.child=o0(t,null,r,g)):ci(e,t,r,g),t.memoizedState=O.state,e=t.child}else e=qs(e,t,g);return g=t.stateNode,y&&g.props!==u&&(Nv||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",me(t)||"a component"),Nv=!0),e}function Xf(e,t,r,u){return qe(),t.flags|=256,ci(e,t,r,u),t.child}function rg(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
  %s.childContextTypes = ...`,t.displayName||t.name||"Component"),typeof t.getDerivedStateFromProps=="function"&&(e=W(t)||"Unknown",xC[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),xC[e]=!0)),typeof t.contextType=="object"&&t.contextType!==null&&(t=W(t)||"Unknown",AC[t]||(console.error("%s: Function components do not support contextType.",t),AC[t]=!0))}function lg(e){return{baseLanes:e,cachePool:Ul()}}function ud(e,t,r){return e=e!==null?e.childLanes&~r:0,t&&(e|=ro),e}function sg(e,t,r){var u,g=t.pendingProps;v(t)&&(t.flags|=128);var y=!1,C=(t.flags&128)!==0;if((u=C)||(u=e!==null&&e.memoizedState===null?!1:(Ba.current&Z1)!==0),u&&(y=!0,t.flags&=-129),u=(t.flags&32)!==0,t.flags&=-33,e===null){if(gn){if(y?ou(t):Ns(t),(e=Di)?(r=Zc(e,ju),r=r!==null&&r.data!==m0?r:null,r!==null&&(u={dehydrated:r,treeContext:Gp(),retryLane:536870912,hydrationErrors:null},t.memoizedState=u,u=q0(r),u.return=t,t.child=u,cl=t,Di=null)):r=null,r===null)throw Df(t,e),vo(t);return Al(r)?t.lanes=32:t.lanes=536870912,null}var O=g.children;if(g=g.fallback,y){Ns(t);var U=t.mode;return O=og({mode:"hidden",children:O},U),g=yl(g,U,r,null),O.return=t,g.return=t,O.sibling=g,t.child=O,g=t.child,g.memoizedState=lg(r),g.childLanes=ud(e,u,r),t.memoizedState=jS,Is(null,g)}return ou(t),cd(t,O)}var q=e.memoizedState;if(q!==null){var de=q.dehydrated;if(de!==null){if(C)t.flags&256?(ou(t),t.flags&=-257,t=Qf(e,t,r)):t.memoizedState!==null?(Ns(t),t.child=e.child,t.flags|=128,t=null):(Ns(t),O=g.fallback,U=t.mode,g=og({mode:"visible",children:g.children},U),O=yl(O,U,r,null),O.flags|=2,g.return=t,O.return=t,g.sibling=O,t.child=g,o0(t,e.child,null,r),g=t.child,g.memoizedState=lg(r),g.childLanes=ud(e,u,r),t.memoizedState=jS,t=Is(null,g));else if(ou(t),Of(),(r&536870912)!==0&&bd(t),Al(de)){if(u=de.nextSibling&&de.nextSibling.dataset,u){O=u.dgst;var be=u.msg;U=u.stck;var ae=u.cstck}y=be,u=O,g=U,de=ae,O=y,U=de,O=Error(O||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),O.stack=g||"",O.digest=u,u=U===void 0?null:U,g={value:O,source:null,stack:u},typeof u=="string"&&ES.set(O,g),lt(g),t=Qf(e,t,r)}else if(er||ya(e,t,r,!1),u=(r&e.childLanes)!==0,er||u){if(u=yi,u!==null&&(g=J(u,r),g!==0&&g!==q.retryLane))throw q.retryLane=g,Wi(e,g),ti(u,e,g),GS;Js(de)||Pn(),t=Qf(e,t,r)}else Js(de)?(t.flags|=192,t.child=e.child,t=null):(e=q.treeContext,Di=jr(de.nextSibling),cl=t,gn=!0,Fg=null,_h=!1,Go=null,ju=!1,e!==null&&vc(t,e),t=cd(t,g.children),t.flags|=4096);return t}}return y?(Ns(t),O=g.fallback,U=t.mode,ae=e.child,de=ae.sibling,g=Es(ae,{mode:"hidden",children:g.children}),g.subtreeFlags=ae.subtreeFlags&65011712,de!==null?O=Es(de,O):(O=yl(O,U,r,null),O.flags|=2),O.return=t,g.return=t,g.sibling=O,t.child=g,Is(null,g),g=t.child,O=e.child.memoizedState,O===null?O=lg(r):(U=O.cachePool,U!==null?(ae=Ka._currentValue,U=U.parent!==ae?{parent:ae,pool:ae}:U):U=Ul(),O={baseLanes:O.baseLanes|r,cachePool:U}),g.memoizedState=O,g.childLanes=ud(e,u,r),t.memoizedState=jS,Is(e.child,g)):(q!==null&&(r&62914560)===r&&(r&e.lanes)!==0&&bd(t),ou(t),r=e.child,e=r.sibling,r=Es(r,{mode:"visible",children:g.children}),r.return=t,r.sibling=null,e!==null&&(u=t.deletions,u===null?(t.deletions=[e],t.flags|=16):u.push(e)),t.child=r,t.memoizedState=null,r)}function cd(e,t){return t=og({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function og(e,t){return e=D(22,e,null,t),e.lanes=0,e}function Qf(e,t,r){return o0(t,e.child,null,r),e=cd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ug(e,t,r){e.lanes|=t;var u=e.alternate;u!==null&&(u.lanes|=t),Yh(e.return,t,r)}function Ra(e,t,r,u,g,y){var C=e.memoizedState;C===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:u,tail:r,tailMode:g,treeForkCount:y}:(C.isBackwards=t,C.rendering=null,C.renderingStartTime=0,C.last=u,C.tail=r,C.tailMode=g,C.treeForkCount=y)}function al(e,t,r){var u=t.pendingProps,g=u.revealOrder,y=u.tail,C=u.children,O=Ba.current;if((u=(O&Z1)!==0)?(O=O&Ov|Z1,t.flags|=128):O&=Ov,Z(Ba,O,t),O=g??"null",g!=="forwards"&&g!=="unstable_legacy-backwards"&&g!=="together"&&g!=="independent"&&!LC[O])if(LC[O]=!0,g==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(g==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof g=="string")switch(g.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',g,g.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',g,g.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',g)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',g);O=y??"null",A_[O]||(y==null?(g==="forwards"||g==="backwards"||g==="unstable_legacy-backwards")&&(A_[O]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')):y!=="visible"&&y!=="collapsed"&&y!=="hidden"?(A_[O]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',y)):g!=="forwards"&&g!=="backwards"&&g!=="unstable_legacy-backwards"&&(A_[O]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',y)));e:if((g==="forwards"||g==="backwards"||g==="unstable_legacy-backwards")&&C!==void 0&&C!==null&&C!==!1)if(gi(C)){for(O=0;O<C.length;O++)if(!Nf(C[O],O))break e}else if(O=Be(C),typeof O=="function"){if(O=O.call(C))for(var U=O.next(),q=0;!U.done;U=O.next()){if(!Nf(U.value,q))break e;q++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',g);if(ci(e,t,C,r),gn?(bi(),C=k1):C=0,!u&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ug(e,r,t);else if(e.tag===19)ug(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(g){case"forwards":for(r=t.child,g=null;r!==null;)e=r.alternate,e!==null&&uu(e)===null&&(g=r),r=r.sibling;r=g,r===null?(g=t.child,t.child=null):(g=r.sibling,r.sibling=null),Ra(t,!1,g,r,y,C);break;case"backwards":case"unstable_legacy-backwards":for(r=null,g=t.child,t.child=null;g!==null;){if(e=g.alternate,e!==null&&uu(e)===null){t.child=g;break}e=g.sibling,g.sibling=r,r=g,g=e}Ra(t,!0,r,null,y,C);break;case"together":Ra(t,!1,null,null,void 0,C);break;default:t.memoizedState=null}return t.child}function qs(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),rs=-1,sm|=t.lanes,(r&t.childLanes)===0)if(e!==null){if(ya(e,t,r,!1),(r&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error("Resuming work not yet implemented.");if(t.child!==null){for(e=t.child,r=Es(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Es(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function cg(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&bo(e)))}function fg(e,t,r){switch(t.tag){case 3:$(t,t.stateNode.containerInfo),Fn(t,Ka,e.memoizedState.cache),qe();break;case 27:case 5:ye(t);break;case 4:$(t,t.stateNode.containerInfo);break;case 10:Fn(t,t.type,t.memoizedProps.value);break;case 12:(r&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var u=t.stateNode;u.effectDuration=-0,u.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,Fm(t),null;break;case 13:if(u=t.memoizedState,u!==null)return u.dehydrated!==null?(ou(t),t.flags|=128,null):(r&t.child.childLanes)!==0?sg(e,t,r):(ou(t),e=qs(e,t,r),e!==null?e.sibling:null);ou(t);break;case 19:var g=(e.flags&128)!==0;if(u=(r&t.childLanes)!==0,u||(ya(e,t,r,!1),u=(r&t.childLanes)!==0),g){if(u)return al(e,t,r);t.flags|=128}if(g=t.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),Z(Ba,Ba.current,t),u)break;return null;case 22:return t.lanes=0,$f(e,t,r,t.pendingProps);case 24:Fn(t,Ka,e.memoizedState.cache)}return qs(e,t,r)}function vu(e,t,r){if(t._debugNeedsRemount&&e!==null){r=Zm(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),r._debugStack=t._debugStack,r._debugTask=t._debugTask;var u=t.return;if(u===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,r.index=t.index,r.sibling=t.sibling,r.return=t.return,r.ref=t.ref,r._debugInfo=t._debugInfo,t===u.child)u.child=r;else{var g=u.child;if(g===null)throw Error("Expected parent to have a child.");for(;g.sibling!==t;)if(g=g.sibling,g===null)throw Error("Expected to find the previous sibling.");g.sibling=r}return t=u.deletions,t===null?(u.deletions=[e],u.flags|=16):t.push(e),r.flags|=2,r}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)er=!0;else{if(!cg(e,r)&&(t.flags&128)===0)return er=!1,fg(e,t,r);er=(e.flags&131072)!==0}else er=!1,(u=gn)&&(bi(),u=(t.flags&1048576)!==0),u&&(u=t.index,bi(),Lf(t,k1,u));switch(t.lanes=0,t.tag){case 16:e:if(u=t.pendingProps,e=Ls(t.elementType),t.type=e,typeof e=="function")Bp(e)?(u=gu(e,u),t.tag=1,t.type=e=au(e),t=ag(null,t,e,u,r)):(t.tag=0,rg(t,e),t.type=e=au(e),t=Xl(null,t,e,u,r));else{if(e!=null){if(g=e.$$typeof,g===Bd){t.tag=11,t.type=e=ga(e),t=sd(null,t,e,u,r);break e}else if(g===Ig){t.tag=14,t=mu(null,t,e,u,r);break e}}throw t="",e!==null&&typeof e=="object"&&e.$$typeof===Za&&(t=" Did you wrap a component in React.lazy() more than once?"),r=W(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+r+". Lazy element type must resolve to a class or function."+t)}return t;case 0:return Xl(e,t,t.type,t.pendingProps,r);case 1:return u=t.type,g=gu(u,t.pendingProps),ag(e,t,u,g,r);case 3:e:{if($(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");u=t.pendingProps;var y=t.memoizedState;g=y.element,_l(e,t),zi(t,u,null,r);var C=t.memoizedState;if(u=C.cache,Fn(t,Ka,u),u!==y.cache&&jp(t,[Ka],r,!0),Ms(),u=C.element,y.isDehydrated)if(y={element:u,isDehydrated:!1,cache:C.cache},t.updateQueue.baseState=y,t.memoizedState=y,t.flags&256){t=Xf(e,t,u,r);break e}else if(u!==g){g=ma(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),lt(g),t=Xf(e,t,u,r);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Di=jr(e.firstChild),cl=t,gn=!0,Fg=null,_h=!1,Go=null,ju=!0,r=iC(t,null,u,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(qe(),u===g){t=qs(e,t,r);break e}ci(e,t,u,r)}t=t.child}return t;case 26:return od(e,t),e===null?(r=Cl(t.type,null,t.pendingProps,null))?t.memoizedState=r:gn||(r=t.type,e=t.pendingProps,u=K(Nu.current),u=nh(u).createElement(r),u[la]=t,u[Ca]=e,wa(u,r,e),Ct(u),t.stateNode=u):t.memoizedState=Cl(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ye(t),e===null&&gn&&(u=K(Nu.current),g=ee(),u=t.stateNode=Hy(t.type,t.pendingProps,u,g,!1),_h||(g=xy(u,t.type,t.pendingProps,g),g!==null&&(Ss(t,0).serverProps=g)),cl=t,ju=!0,g=Di,Fl(t.type)?(f2=g,Di=jr(u.firstChild)):Di=g),ci(e,t,t.pendingProps.children,r),od(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&gn&&(y=ee(),u=Sf(t.type,y.ancestorInfo),g=Di,(C=!g)||(C=Ny(g,t.type,t.pendingProps,ju),C!==null?(t.stateNode=C,_h||(y=xy(C,t.type,t.pendingProps,y),y!==null&&(Ss(t,0).serverProps=y)),cl=t,Di=jr(C.firstChild),ju=!1,y=!0):y=!1,C=!y),C&&(u&&Df(t,g),vo(t))),ye(t),g=t.type,y=t.pendingProps,C=e!==null?e.memoizedProps:null,u=y.children,ih(g,y)?u=null:C!==null&&ih(g,C)&&(t.flags|=32),t.memoizedState!==null&&(g=Qp(e,t,Pp,null,null,r),db._currentValue=g),od(e,t),ci(e,t,u,r),t.child;case 6:return e===null&&gn&&(r=t.pendingProps,e=ee(),u=e.ancestorInfo.current,r=u!=null?uc(r,u.tag,e.ancestorInfo.implicitRootScope):!0,e=Di,(u=!e)||(u=Pc(e,t.pendingProps,ju),u!==null?(t.stateNode=u,cl=t,Di=null,u=!0):u=!1,u=!u),u&&(r&&Df(t,e),vo(t))),null;case 13:return sg(e,t,r);case 4:return $(t,t.stateNode.containerInfo),u=t.pendingProps,e===null?t.child=o0(t,null,u,r):ci(e,t,u,r),t.child;case 11:return sd(e,t,t.type,t.pendingProps,r);case 7:return ci(e,t,t.pendingProps,r),t.child;case 8:return ci(e,t,t.pendingProps.children,r),t.child;case 12:return t.flags|=4,t.flags|=2048,u=t.stateNode,u.effectDuration=-0,u.passiveEffectDuration=-0,ci(e,t,t.pendingProps.children,r),t.child;case 10:return u=t.type,g=t.pendingProps,y=g.value,"value"in g||OC||(OC=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Fn(t,u,y),ci(e,t,g.children,r),t.child;case 9:return g=t.type._context,u=t.pendingProps.children,typeof u!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Ma(t),g=mn(g),u=OS(u,g,void 0),t.flags|=1,ci(e,t,u,r),t.child;case 14:return mu(e,t,t.type,t.pendingProps,r);case 15:return Vf(e,t,t.type,t.pendingProps,r);case 19:return al(e,t,r);case 31:return Lo(e,t,r);case 22:return $f(e,t,r,t.pendingProps);case 24:return Ma(t),u=mn(Ka),e===null?(g=Or(),g===null&&(g=yi,y=pn(),g.pooledCache=y,ws(y),y!==null&&(g.pooledCacheLanes|=r),g=y),t.memoizedState={parent:u,cache:g},Vh(t),Fn(t,Ka,g)):((e.lanes&r)!==0&&(_l(e,t),zi(t,null,null,r),Ms()),g=e.memoizedState,y=t.memoizedState,g.parent!==u?(g={parent:u,cache:u},t.memoizedState=g,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=g),Fn(t,Ka,u)):(u=y.cache,Fn(t,Ka,u),u!==g.cache&&jp(t,[Ka],r,!0))),ci(e,t,t.pendingProps.children,r),t.child;case 29:throw t.pendingProps}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Ql(e){e.flags|=4}function bu(e,t,r,u,g){if((t=(e.mode&iR)!==Ut)&&(t=!1),t){if(e.flags|=16777216,(g&335544128)===g)if(e.stateNode.complete)e.flags|=8192;else if(ia())e.flags|=8192;else throw s0=b_,MS}else e.flags&=-16777217}function hg(e,t){if(t.type!=="stylesheet"||(t.state.loading&Qu)!==b0)e.flags&=-16777217;else if(e.flags|=16777216,!Rd(t))if(ia())e.flags|=8192;else throw s0=b_,MS}function _u(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Po():536870912,e.lanes|=t,d0|=t)}function Pl(e,t){if(!gn)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var u=null;r!==null;)r.alternate!==null&&(u=r),r=r.sibling;u===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:u.sibling=null}}function Sn(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,u=0;if(t)if((e.mode&Wt)!==Ut){for(var g=e.selfBaseDuration,y=e.child;y!==null;)r|=y.lanes|y.childLanes,u|=y.subtreeFlags&65011712,u|=y.flags&65011712,g+=y.treeBaseDuration,y=y.sibling;e.treeBaseDuration=g}else for(g=e.child;g!==null;)r|=g.lanes|g.childLanes,u|=g.subtreeFlags&65011712,u|=g.flags&65011712,g.return=e,g=g.sibling;else if((e.mode&Wt)!==Ut){g=e.actualDuration,y=e.selfBaseDuration;for(var C=e.child;C!==null;)r|=C.lanes|C.childLanes,u|=C.subtreeFlags,u|=C.flags,g+=C.actualDuration,y+=C.treeBaseDuration,C=C.sibling;e.actualDuration=g,e.treeBaseDuration=y}else for(g=e.child;g!==null;)r|=g.lanes|g.childLanes,u|=g.subtreeFlags,u|=g.flags,g.return=e,g=g.sibling;return e.subtreeFlags|=u,e.childLanes=r,t}function fd(e,t,r){var u=t.pendingProps;switch(qp(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Sn(t),null;case 1:return Sn(t),null;case 3:return r=t.stateNode,u=null,e!==null&&(u=e.memoizedState.cache),t.memoizedState.cache!==u&&(t.flags|=2048),fn(Ka,t),X(t),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(_e(t)?(Lt(),Ql(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ne())),Sn(t),null;case 26:var g=t.type,y=t.memoizedState;return e===null?(Ql(t),y!==null?(Sn(t),hg(t,y)):(Sn(t),bu(t,g,null,u,r))):y?y!==e.memoizedState?(Ql(t),Sn(t),hg(t,y)):(Sn(t),t.flags&=-16777217):(e=e.memoizedProps,e!==u&&Ql(t),Sn(t),bu(t,g,e,u,r)),null;case 27:if(Me(t),r=K(Nu.current),g=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==u&&Ql(t);else{if(!u){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Sn(t),null}e=ee(),_e(t)?ru(t,e):(e=Hy(g,u,r,e,!0),t.stateNode=e,Ql(t))}return Sn(t),null;case 5:if(Me(t),g=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==u&&Ql(t);else{if(!u){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Sn(t),null}var C=ee();if(_e(t))ru(t,C);else{switch(y=K(Nu.current),Sf(g,C.ancestorInfo),C=C.context,y=nh(y),C){case Gv:y=y.createElementNS(Xg,g);break;case $_:y=y.createElementNS(dv,g);break;default:switch(g){case"svg":y=y.createElementNS(Xg,g);break;case"math":y=y.createElementNS(dv,g);break;case"script":y=y.createElement("div"),y.innerHTML="<script><\/script>",y=y.removeChild(y.firstChild);break;case"select":y=typeof u.is=="string"?y.createElement("select",{is:u.is}):y.createElement("select"),u.multiple?y.multiple=!0:u.size&&(y.size=u.size);break;default:y=typeof u.is=="string"?y.createElement(g,{is:u.is}):y.createElement(g),g.indexOf("-")===-1&&(g!==g.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",g),Object.prototype.toString.call(y)!=="[object HTMLUnknownElement]"||Ll.call(WC,g)||(WC[g]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",g)))}}y[la]=t,y[Ca]=u;e:for(C=t.child;C!==null;){if(C.tag===5||C.tag===6)y.appendChild(C.stateNode);else if(C.tag!==4&&C.tag!==27&&C.child!==null){C.child.return=C,C=C.child;continue}if(C===t)break e;for(;C.sibling===null;){if(C.return===null||C.return===t)break e;C=C.return}C.sibling.return=C.return,C=C.sibling}t.stateNode=y;e:switch(wa(y,g,u),g){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&Ql(t)}}return Sn(t),bu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,r),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==u&&Ql(t);else{if(typeof u!="string"&&t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=K(Nu.current),r=ee(),_e(t)){if(e=t.stateNode,r=t.memoizedProps,g=!_h,u=null,y=cl,y!==null)switch(y.tag){case 3:g&&(g=zy(e,r,u),g!==null&&(Ss(t,0).serverProps=g));break;case 27:case 5:u=y.memoizedProps,g&&(g=zy(e,r,u),g!==null&&(Ss(t,0).serverProps=g))}e[la]=t,e=!!(e.nodeValue===r||u!==null&&u.suppressHydrationWarning===!0||th(e.nodeValue,r)),e||vo(t,!0)}else g=r.ancestorInfo.current,g!=null&&uc(u,g.tag,r.ancestorInfo.implicitRootScope),e=nh(e).createTextNode(u),e[la]=t,t.stateNode=e}return Sn(t),null;case 31:if(r=t.memoizedState,e===null||e.memoizedState!==null){if(u=_e(t),r!==null){if(e===null){if(!u)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");e[la]=t,Sn(t),(t.mode&Wt)!==Ut&&r!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else Lt(),qe(),(t.flags&128)===0&&(r=t.memoizedState=null),t.flags|=4,Sn(t),(t.mode&Wt)!==Ut&&r!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else r=Ne(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),e=!0;if(!e)return t.flags&256?(li(t),t):(li(t),null);if((t.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return Sn(t),null;case 13:if(u=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(g=u,y=_e(t),g!==null&&g.dehydrated!==null){if(e===null){if(!y)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(y=t.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");y[la]=t,Sn(t),(t.mode&Wt)!==Ut&&g!==null&&(g=t.child,g!==null&&(t.treeBaseDuration-=g.treeBaseDuration))}else Lt(),qe(),(t.flags&128)===0&&(g=t.memoizedState=null),t.flags|=4,Sn(t),(t.mode&Wt)!==Ut&&g!==null&&(g=t.child,g!==null&&(t.treeBaseDuration-=g.treeBaseDuration));g=!1}else g=Ne(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=g),g=!0;if(!g)return t.flags&256?(li(t),t):(li(t),null)}return li(t),(t.flags&128)!==0?(t.lanes=r,(t.mode&Wt)!==Ut&&xs(t),t):(r=u!==null,e=e!==null&&e.memoizedState!==null,r&&(u=t.child,g=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(g=u.alternate.memoizedState.cachePool.pool),y=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(y=u.memoizedState.cachePool.pool),y!==g&&(u.flags|=2048)),r!==e&&r&&(t.child.flags|=8192),_u(t,t.updateQueue),Sn(t),(t.mode&Wt)!==Ut&&r&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return X(t),e===null&&Ad(t.stateNode.containerInfo),Sn(t),null;case 10:return fn(t.type,t),Sn(t),null;case 19:if(ue(Ba,t),u=t.memoizedState,u===null)return Sn(t),null;if(g=(t.flags&128)!==0,y=u.rendering,y===null)if(g)Pl(u,!1);else{if(Ji!==sp||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(y=uu(e),y!==null){for(t.flags|=128,Pl(u,!1),e=y.updateQueue,t.updateQueue=e,_u(t,e),t.subtreeFlags=0,e=r,r=t.child;r!==null;)Pm(r,e),r=r.sibling;return Z(Ba,Ba.current&Ov|Z1,t),gn&&Da(t,u.treeForkCount),t.child}e=e.sibling}u.tail!==null&&Qi()>R_&&(t.flags|=128,g=!0,Pl(u,!1),t.lanes=4194304)}else{if(!g)if(e=uu(y),e!==null){if(t.flags|=128,g=!0,e=e.updateQueue,t.updateQueue=e,_u(t,e),Pl(u,!0),u.tail===null&&u.tailMode==="hidden"&&!y.alternate&&!gn)return Sn(t),null}else 2*Qi()-u.renderingStartTime>R_&&r!==536870912&&(t.flags|=128,g=!0,Pl(u,!1),t.lanes=4194304);u.isBackwards?(y.sibling=t.child,t.child=y):(e=u.last,e!==null?e.sibling=y:t.child=y,u.last=y)}return u.tail!==null?(e=u.tail,u.rendering=e,u.tail=e.sibling,u.renderingStartTime=Qi(),e.sibling=null,r=Ba.current,r=g?r&Ov|Z1:r&Ov,Z(Ba,r,t),gn&&Da(t,u.treeForkCount),e):(Sn(t),null);case 22:case 23:return li(t),Km(t),u=t.memoizedState!==null,e!==null?e.memoizedState!==null!==u&&(t.flags|=8192):u&&(t.flags|=8192),u?(r&536870912)!==0&&(t.flags&128)===0&&(Sn(t),t.subtreeFlags&6&&(t.flags|=8192)):Sn(t),r=t.updateQueue,r!==null&&_u(t,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),u=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(u=t.memoizedState.cachePool.pool),u!==r&&(t.flags|=2048),e!==null&&ue(r0,t),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),fn(Ka,t),Sn(t),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function sy(e,t){switch(qp(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Wt)!==Ut&&xs(t),t):null;case 3:return fn(Ka,t),X(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Me(t),null;case 31:if(t.memoizedState!==null){if(li(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");qe()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Wt)!==Ut&&xs(t),t):null;case 13:if(li(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");qe()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Wt)!==Ut&&xs(t),t):null;case 19:return ue(Ba,t),null;case 4:return X(t),null;case 10:return fn(t.type,t),null;case 22:case 23:return li(t),Km(t),e!==null&&ue(r0,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Wt)!==Ut&&xs(t),t):null;case 24:return fn(Ka,t),null;case 25:return null;default:return null}}function hd(e,t){switch(qp(t),t.tag){case 3:fn(Ka,t),X(t);break;case 26:case 27:case 5:Me(t);break;case 4:X(t);break;case 31:t.memoizedState!==null&&li(t);break;case 13:li(t);break;case 19:ue(Ba,t);break;case 10:fn(t.type,t);break;case 22:case 23:li(t),Km(t),e!==null&&ue(r0,t);break;case 24:fn(Ka,t)}}function Ur(e){return(e.mode&Wt)!==Ut}function dd(e,t){Ur(e)?(hr(),Su(t,e),xr()):Su(t,e)}function Eu(e,t,r){Ur(e)?(hr(),Gs(r,e,t),xr()):Gs(r,e,t)}function Su(e,t){try{var r=t.updateQueue,u=r!==null?r.lastEffect:null;if(u!==null){var g=u.next;r=g;do{if((r.tag&e)===e&&(u=void 0,(e&ls)!==E_&&(Hv=!0),u=tt(t,oR,r),(e&ls)!==E_&&(Hv=!1),u!==void 0&&typeof u!="function")){var y=void 0;y=(r.tag&Yo)!==0?"useLayoutEffect":(r.tag&ls)!==0?"useInsertionEffect":"useEffect";var C=void 0;C=u===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof u.then=="function"?`

It looks like you wrote `+y+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:

`+y+`(() => {
  async function fetchData() {
    // You can await here
    const response = await MyAPI.getData(someId);
    // ...
  }
  fetchData();
}, [someId]); // Or [] if effect doesn't need props or state

Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+u,tt(t,function(O,U){console.error("%s must not return anything besides a function, which is used for clean-up.%s",O,U)},y,C)}r=r.next}while(r!==g)}}catch(O){rn(t,t.return,O)}}function Gs(e,t,r){try{var u=t.updateQueue,g=u!==null?u.lastEffect:null;if(g!==null){var y=g.next;u=y;do{if((u.tag&e)===e){var C=u.inst,O=C.destroy;O!==void 0&&(C.destroy=void 0,(e&ls)!==E_&&(Hv=!0),g=t,tt(g,uR,g,r,O),(e&ls)!==E_&&(Hv=!1))}u=u.next}while(u!==y)}}catch(U){rn(t,t.return,U)}}function Tu(e,t){Ur(e)?(hr(),Su(t,e),xr()):Su(t,e)}function pd(e,t,r){Ur(e)?(hr(),Gs(r,e,t),xr()):Gs(r,e,t)}function Pf(e){var t=e.updateQueue;if(t!==null){var r=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||Nv||(r.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",me(e)||"instance"),r.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",me(e)||"instance"));try{tt(e,_a,t,r)}catch(u){rn(e,e.return,u)}}}function oy(e,t,r){return e.getSnapshotBeforeUpdate(t,r)}function Zf(e,t){var r=t.memoizedProps,u=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||Nv||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",me(e)||"instance"),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",me(e)||"instance"));try{var g=gu(e.type,r),y=tt(e,oy,t,g,u);r=DC,y!==void 0||r.has(e.type)||(r.add(e.type),tt(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",me(e))})),t.__reactInternalSnapshotBeforeUpdate=y}catch(C){rn(e,e.return,C)}}function uy(e,t,r){r.props=gu(e.type,e.memoizedProps),r.state=e.memoizedState,Ur(e)?(hr(),tt(e,ZA,e,t,r),xr()):tt(e,ZA,e,t,r)}function dg(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}if(typeof t=="function")if(Ur(e))try{hr(),e.refCleanup=t(r)}finally{xr()}else e.refCleanup=t(r);else typeof t=="string"?console.error("String refs are no longer supported."):t.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",me(e)),t.current=r}}function Br(e,t){try{tt(e,dg,e)}catch(r){rn(e,t,r)}}function Sl(e,t){var r=e.ref,u=e.refCleanup;if(r!==null)if(typeof u=="function")try{if(Ur(e))try{hr(),tt(e,u)}finally{xr(e)}else tt(e,u)}catch(g){rn(e,t,g)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{if(Ur(e))try{hr(),tt(e,r,null)}finally{xr(e)}else tt(e,r,null)}catch(g){rn(e,t,g)}else r.current=null}function cy(e,t,r,u){var g=e.memoizedProps,y=g.id,C=g.onCommit;g=g.onRender,t=t===null?"mount":"update",g_&&(t="nested-update"),typeof g=="function"&&g(y,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,r),typeof C=="function"&&C(y,t,u,r)}function fy(e,t,r,u){var g=e.memoizedProps;e=g.id,g=g.onPostCommit,t=t===null?"mount":"update",g_&&(t="nested-update"),typeof g=="function"&&g(e,t,u,r)}function xi(e){var t=e.type,r=e.memoizedProps,u=e.stateNode;try{tt(e,K0,u,t,r,e)}catch(g){rn(e,e.return,g)}}function na(e,t,r){try{tt(e,W0,e.stateNode,e.type,r,t,e)}catch(u){rn(e,e.return,u)}}function hy(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Fl(e.type)||e.tag===4}function Tl(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hy(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Fl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Jf(e,t,r){var u=e.tag;if(u===5||u===6)e=e.stateNode,t?(Dy(r),(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,t)):(Dy(r),t=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,t.appendChild(e),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=dl));else if(u!==4&&(u===27&&Fl(e.type)&&(r=e.stateNode,t=null),e=e.child,e!==null))for(Jf(e,t,r),e=e.sibling;e!==null;)Jf(e,t,r),e=e.sibling}function Nc(e,t,r){var u=e.tag;if(u===5||u===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(u!==4&&(u===27&&Fl(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(Nc(e,t,r),e=e.sibling;e!==null;)Nc(e,t,r),e=e.sibling}function kc(e){for(var t,r=e.return;r!==null;){if(hy(r)){t=r;break}r=r.return}if(t==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(t.tag){case 27:t=t.stateNode,r=Tl(e),Nc(e,r,t);break;case 5:r=t.stateNode,t.flags&32&&(Oy(r),t.flags&=-33),t=Tl(e),Nc(e,t,r);break;case 3:case 4:t=t.stateNode.containerInfo,r=Tl(e),Jf(e,r,t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Kf(e){var t=e.stateNode,r=e.memoizedProps;try{tt(e,E1,e.type,r,t,e)}catch(u){rn(e,e.return,u)}}function js(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3?e.memoizedState.isDehydrated&&(t.flags&256)===0:!1}function Et(e,t){if(e=e.containerInfo,o2=Z_,e=Xm(e),ja(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var u=r.getSelection&&r.getSelection();if(u&&u.rangeCount!==0){r=u.anchorNode;var g=u.anchorOffset,y=u.focusNode;u=u.focusOffset;try{r.nodeType,y.nodeType}catch{r=null;break e}var C=0,O=-1,U=-1,q=0,de=0,be=e,ae=null;t:for(;;){for(var De;be!==r||g!==0&&be.nodeType!==3||(O=C+g),be!==y||u!==0&&be.nodeType!==3||(U=C+u),be.nodeType===3&&(C+=be.nodeValue.length),(De=be.firstChild)!==null;)ae=be,be=De;for(;;){if(be===e)break t;if(ae===r&&++q===g&&(O=C),ae===y&&++de===u&&(U=C),(De=be.nextSibling)!==null)break;be=ae,ae=be.parentNode}be=De}r=O===-1||U===-1?null:{start:O,end:U}}else r=null}r=r||{start:0,end:0}}else r=null;for(u2={focusedElem:e,selectionRange:r},Z_=!1,Pr=t;Pr!==null;)if(t=Pr,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Pr=e;else for(;Pr!==null;){switch(e=t=Pr,r=e.alternate,g=e.flags,e.tag){case 0:if((g&4)!==0&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(r=0;r<e.length;r++)g=e[r],g.ref.impl=g.nextImpl;break;case 11:case 15:break;case 1:(g&1024)!==0&&r!==null&&Zf(e,r);break;case 3:if((g&1024)!==0){if(e=e.stateNode.containerInfo,r=e.nodeType,r===9)Du(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Du(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((g&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(e=t.sibling,e!==null){e.return=t.return,Pr=e;break}Pr=t.return}}function gd(e,t,r){var u=Gn(),g=Ni(),y=Cr(),C=ea(),O=r.flags;switch(r.tag){case 0:case 11:case 15:wl(e,r),O&4&&dd(r,Yo|$u);break;case 1:if(wl(e,r),O&4)if(e=r.stateNode,t===null)r.type.defaultProps||"ref"in r.memoizedProps||Nv||(e.props!==r.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",me(r)||"instance"),e.state!==r.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",me(r)||"instance")),Ur(r)?(hr(),tt(r,DS,r,e),xr()):tt(r,DS,r,e);else{var U=gu(r.type,t.memoizedProps);t=t.memoizedState,r.type.defaultProps||"ref"in r.memoizedProps||Nv||(e.props!==r.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",me(r)||"instance"),e.state!==r.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",me(r)||"instance")),Ur(r)?(hr(),tt(r,XA,r,e,U,t,e.__reactInternalSnapshotBeforeUpdate),xr()):tt(r,XA,r,e,U,t,e.__reactInternalSnapshotBeforeUpdate)}O&64&&Pf(r),O&512&&Br(r,r.return);break;case 3:if(t=As(),wl(e,r),O&64&&(O=r.updateQueue,O!==null)){if(U=null,r.child!==null)switch(r.child.tag){case 27:case 5:U=r.child.stateNode;break;case 1:U=r.child.stateNode}try{tt(r,_a,O,U)}catch(de){rn(r,r.return,de)}}e.effectDuration+=_c(t);break;case 27:t===null&&O&4&&Kf(r);case 26:case 5:if(wl(e,r),t===null){if(O&4)xi(r);else if(O&64){e=r.type,t=r.memoizedProps,U=r.stateNode;try{tt(r,F0,U,e,t,r)}catch(de){rn(r,r.return,de)}}}O&512&&Br(r,r.return);break;case 12:if(O&4){O=As(),wl(e,r),e=r.stateNode,e.effectDuration+=Wr(O);try{tt(r,cy,r,t,Wg,e.effectDuration)}catch(de){rn(r,r.return,de)}}else wl(e,r);break;case 31:wl(e,r),O&4&&md(e,r);break;case 13:wl(e,r),O&4&&pg(e,r),O&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(O=$0.bind(null,r),Jc(e,O))));break;case 22:if(O=r.memoizedState!==null||lp,!O){t=t!==null&&t.memoizedState!==null||tr,U=lp;var q=tr;lp=O,(tr=t)&&!q?(Tn(e,r,(r.subtreeFlags&8772)!==0),(r.mode&Wt)!==Ut&&0<=wt&&0<=Ot&&.05<Ot-wt&&Rp(r,wt,Ot)):wl(e,r),lp=U,tr=q}break;case 30:break;default:wl(e,r)}(r.mode&Wt)!==Ut&&0<=wt&&0<=Ot&&((ua||.05<Zi)&&wr(r,wt,Ot,Zi,Gi),r.alternate===null&&r.return!==null&&r.return.alternate!==null&&.05<Ot-wt&&(js(r.return.alternate,r.return)||ml(r,wt,Ot,"Mount"))),Ya(u),vl(g),Gi=y,ua=C}function zc(e){var t=e.alternate;t!==null&&(e.alternate=null,zc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Xe(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Na(e,t,r){for(r=r.child;r!==null;)dy(e,t,r),r=r.sibling}function dy(e,t,r){if(Pi&&typeof Pi.onCommitFiberUnmount=="function")try{Pi.onCommitFiberUnmount(eo,r)}catch(q){Ua||(Ua=!0,console.error("React instrumentation encountered an error: %o",q))}var u=Gn(),g=Ni(),y=Cr(),C=ea();switch(r.tag){case 26:tr||Sl(r,t),Na(e,t,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(e=r.stateNode,e.parentNode.removeChild(e));break;case 27:tr||Sl(r,t);var O=nr,U=io;Fl(r.type)&&(nr=r.stateNode,io=!1),Na(e,t,r),tt(r,Kc,r.stateNode),nr=O,io=U;break;case 5:tr||Sl(r,t);case 6:if(O=nr,U=io,nr=null,Na(e,t,r),nr=O,io=U,nr!==null)if(io)try{tt(r,tv,nr,r.stateNode)}catch(q){rn(r,t,q)}else try{tt(r,Od,nr,r.stateNode)}catch(q){rn(r,t,q)}break;case 18:nr!==null&&(io?(e=nr,Mn(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),Aa(e)):Mn(nr,r.stateNode));break;case 4:O=nr,U=io,nr=r.stateNode.containerInfo,io=!0,Na(e,t,r),nr=O,io=U;break;case 0:case 11:case 14:case 15:Gs(ls,r,t),tr||Eu(r,t,Yo),Na(e,t,r);break;case 1:tr||(Sl(r,t),O=r.stateNode,typeof O.componentWillUnmount=="function"&&uy(r,t,O)),Na(e,t,r);break;case 21:Na(e,t,r);break;case 22:tr=(O=tr)||r.memoizedState!==null,Na(e,t,r),tr=O;break;default:Na(e,t,r)}(r.mode&Wt)!==Ut&&0<=wt&&0<=Ot&&(ua||.05<Zi)&&wr(r,wt,Ot,Zi,Gi),Ya(u),vl(g),Gi=y,ua=C}function md(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{tt(t,By,e)}catch(r){rn(t,t.return,r)}}}function pg(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{tt(t,rv,e)}catch(r){rn(t,t.return,r)}}function Ta(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new MC),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new MC),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function Ff(e,t){var r=Ta(e);t.forEach(function(u){if(!r.has(u)){if(r.add(u),to)if(kv!==null&&zv!==null)Td(zv,kv);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var g=X0.bind(null,e,u);u.then(g,g)}})}function $a(e,t){var r=t.deletions;if(r!==null)for(var u=0;u<r.length;u++){var g=e,y=t,C=r[u],O=Gn(),U=y;e:for(;U!==null;){switch(U.tag){case 27:if(Fl(U.type)){nr=U.stateNode,io=!1;break e}break;case 5:nr=U.stateNode,io=!1;break e;case 3:case 4:nr=U.stateNode.containerInfo,io=!0;break e}U=U.return}if(nr===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");dy(g,y,C),nr=null,io=!1,(C.mode&Wt)!==Ut&&0<=wt&&0<=Ot&&.05<Ot-wt&&ml(C,wt,Ot,"Unmount"),Ya(O),g=C,y=g.alternate,y!==null&&(y.return=null),g.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)gg(t,e),t=t.sibling}function gg(e,t){var r=Gn(),u=Ni(),g=Cr(),y=ea(),C=e.alternate,O=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:$a(t,e),Xa(e),O&4&&(Gs(ls|$u,e,e.return),Su(ls|$u,e),Eu(e,e.return,Yo|$u));break;case 1:if($a(t,e),Xa(e),O&512&&(tr||C===null||Sl(C,C.return)),O&64&&lp&&(O=e.updateQueue,O!==null&&(C=O.callbacks,C!==null))){var U=O.shared.hiddenCallbacks;O.shared.hiddenCallbacks=U===null?C:U.concat(C)}break;case 26:if(U=lf,$a(t,e),Xa(e),O&512&&(tr||C===null||Sl(C,C.return)),O&4){var q=C!==null?C.memoizedState:null;if(O=e.memoizedState,C===null)if(O===null)if(e.stateNode===null){e:{O=e.type,C=e.memoizedProps,U=U.ownerDocument||U;t:switch(O){case"title":q=U.getElementsByTagName("title")[0],(!q||q[l]||q[la]||q.namespaceURI===Xg||q.hasAttribute("itemprop"))&&(q=U.createElement(O),U.head.insertBefore(q,U.querySelector("head > title"))),wa(q,O,C),q[la]=e,Ct(q),O=q;break e;case"link":var de=lv("link","href",U).get(O+(C.href||""));if(de){for(var be=0;be<de.length;be++)if(q=de[be],q.getAttribute("href")===(C.href==null||C.href===""?null:C.href)&&q.getAttribute("rel")===(C.rel==null?null:C.rel)&&q.getAttribute("title")===(C.title==null?null:C.title)&&q.getAttribute("crossorigin")===(C.crossOrigin==null?null:C.crossOrigin)){de.splice(be,1);break t}}q=U.createElement(O),wa(q,O,C),U.head.appendChild(q);break;case"meta":if(de=lv("meta","content",U).get(O+(C.content||""))){for(be=0;be<de.length;be++)if(q=de[be],Dt(C.content,"content"),q.getAttribute("content")===(C.content==null?null:""+C.content)&&q.getAttribute("name")===(C.name==null?null:C.name)&&q.getAttribute("property")===(C.property==null?null:C.property)&&q.getAttribute("http-equiv")===(C.httpEquiv==null?null:C.httpEquiv)&&q.getAttribute("charset")===(C.charSet==null?null:C.charSet)){de.splice(be,1);break t}}q=U.createElement(O),wa(q,O,C),U.head.appendChild(q);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+O+'". This is a bug in React.')}q[la]=e,Ct(q),O=q}e.stateNode=O}else sv(U,e.type,e.stateNode);else e.stateNode=sh(U,O,e.memoizedProps);else q!==O?(q===null?C.stateNode!==null&&(C=C.stateNode,C.parentNode.removeChild(C)):q.count--,O===null?sv(U,e.type,e.stateNode):sh(U,O,e.memoizedProps)):O===null&&e.stateNode!==null&&na(e,e.memoizedProps,C.memoizedProps)}break;case 27:$a(t,e),Xa(e),O&512&&(tr||C===null||Sl(C,C.return)),C!==null&&O&4&&na(e,e.memoizedProps,C.memoizedProps);break;case 5:if($a(t,e),Xa(e),O&512&&(tr||C===null||Sl(C,C.return)),e.flags&32){U=e.stateNode;try{tt(e,Oy,U)}catch(ot){rn(e,e.return,ot)}}O&4&&e.stateNode!=null&&(U=e.memoizedProps,na(e,U,C!==null?C.memoizedProps:U)),O&1024&&(YS=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if($a(t,e),Xa(e),O&4){if(e.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");O=e.memoizedProps,C=C!==null?C.memoizedProps:O,U=e.stateNode;try{tt(e,ev,U,C,O)}catch(ot){rn(e,e.return,ot)}}break;case 3:if(U=As(),X_=null,q=lf,lf=rh(t.containerInfo),$a(t,e),lf=q,Xa(e),O&4&&C!==null&&C.memoizedState.isDehydrated)try{tt(e,_1,t.containerInfo)}catch(ot){rn(e,e.return,ot)}YS&&(YS=!1,Wf(e)),t.effectDuration+=_c(U);break;case 4:O=lf,lf=rh(e.stateNode.containerInfo),$a(t,e),Xa(e),lf=O;break;case 12:O=As(),$a(t,e),Xa(e),e.stateNode.effectDuration+=Wr(O);break;case 31:$a(t,e),Xa(e),O&4&&(O=e.updateQueue,O!==null&&(e.updateQueue=null,Ff(e,O)));break;case 13:$a(t,e),Xa(e),e.child.flags&8192&&e.memoizedState!==null!=(C!==null&&C.memoizedState!==null)&&(M_=Qi()),O&4&&(O=e.updateQueue,O!==null&&(e.updateQueue=null,Ff(e,O)));break;case 22:U=e.memoizedState!==null;var ae=C!==null&&C.memoizedState!==null,De=lp,it=tr;if(lp=De||U,tr=it||ae,$a(t,e),tr=it,lp=De,ae&&!U&&!De&&!it&&(e.mode&Wt)!==Ut&&0<=wt&&0<=Ot&&.05<Ot-wt&&Rp(e,wt,Ot),Xa(e),O&8192)e:for(t=e.stateNode,t._visibility=U?t._visibility&~N1:t._visibility|N1,!U||C===null||ae||lp||tr||(Oo(e),(e.mode&Wt)!==Ut&&0<=wt&&0<=Ot&&.05<Ot-wt&&ml(e,wt,Ot,"Disconnect")),C=null,t=e;;){if(t.tag===5||t.tag===26){if(C===null){ae=C=t;try{q=ae.stateNode,U?tt(ae,Ry,q):tt(ae,av,ae.stateNode,ae.memoizedProps)}catch(ot){rn(ae,ae.return,ot)}}}else if(t.tag===6){if(C===null){ae=t;try{de=ae.stateNode,U?tt(ae,nv,de):tt(ae,Lg,de,ae.memoizedProps)}catch(ot){rn(ae,ae.return,ot)}}}else if(t.tag===18){if(C===null){ae=t;try{be=ae.stateNode,U?tt(ae,My,be):tt(ae,iv,ae.stateNode)}catch(ot){rn(ae,ae.return,ot)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;C===t&&(C=null),t=t.return}C===t&&(C=null),t.sibling.return=t.return,t=t.sibling}O&4&&(O=e.updateQueue,O!==null&&(C=O.retryQueue,C!==null&&(O.retryQueue=null,Ff(e,C))));break;case 19:$a(t,e),Xa(e),O&4&&(O=e.updateQueue,O!==null&&(e.updateQueue=null,Ff(e,O)));break;case 30:break;case 21:break;default:$a(t,e),Xa(e)}(e.mode&Wt)!==Ut&&0<=wt&&0<=Ot&&((ua||.05<Zi)&&wr(e,wt,Ot,Zi,Gi),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<Ot-wt&&(js(e.return.alternate,e.return)||ml(e,wt,Ot,"Mount"))),Ya(r),vl(u),Gi=g,ua=y}function Xa(e){var t=e.flags;if(t&2){try{tt(e,kc,e)}catch(r){rn(e,e.return,r)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Wf(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Wf(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function wl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)gd(e,t.alternate,t),t=t.sibling}function py(e){var t=Gn(),r=Ni(),u=Cr(),g=ea();switch(e.tag){case 0:case 11:case 14:case 15:Eu(e,e.return,Yo),Oo(e);break;case 1:Sl(e,e.return);var y=e.stateNode;typeof y.componentWillUnmount=="function"&&uy(e,e.return,y),Oo(e);break;case 27:tt(e,Kc,e.stateNode);case 26:case 5:Sl(e,e.return),Oo(e);break;case 22:e.memoizedState===null&&Oo(e);break;case 30:Oo(e);break;default:Oo(e)}(e.mode&Wt)!==Ut&&0<=wt&&0<=Ot&&(ua||.05<Zi)&&wr(e,wt,Ot,Zi,Gi),Ya(t),vl(r),Gi=u,ua=g}function Oo(e){for(e=e.child;e!==null;)py(e),e=e.sibling}function Zl(e,t,r,u){var g=Gn(),y=Ni(),C=Cr(),O=ea(),U=r.flags;switch(r.tag){case 0:case 11:case 15:Tn(e,r,u),dd(r,Yo);break;case 1:if(Tn(e,r,u),t=r.stateNode,typeof t.componentDidMount=="function"&&tt(r,DS,r,t),t=r.updateQueue,t!==null){e=r.stateNode;try{tt(r,Tc,t,e)}catch(q){rn(r,r.return,q)}}u&&U&64&&Pf(r),Br(r,r.return);break;case 27:Kf(r);case 26:case 5:Tn(e,r,u),u&&t===null&&U&4&&xi(r),Br(r,r.return);break;case 12:if(u&&U&4){U=As(),Tn(e,r,u),u=r.stateNode,u.effectDuration+=Wr(U);try{tt(r,cy,r,t,Wg,u.effectDuration)}catch(q){rn(r,r.return,q)}}else Tn(e,r,u);break;case 31:Tn(e,r,u),u&&U&4&&md(e,r);break;case 13:Tn(e,r,u),u&&U&4&&pg(e,r);break;case 22:r.memoizedState===null&&Tn(e,r,u),Br(r,r.return);break;case 30:break;default:Tn(e,r,u)}(r.mode&Wt)!==Ut&&0<=wt&&0<=Ot&&(ua||.05<Zi)&&wr(r,wt,Ot,Zi,Gi),Ya(g),vl(y),Gi=C,ua=O}function Tn(e,t,r){for(r=r&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;)Zl(e,t.alternate,t,r),t=t.sibling}function Uc(e,t){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==r&&(e!=null&&ws(e),r!=null&&_o(r))}function gy(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(ws(t),e!=null&&_o(e))}function Hr(e,t,r,u,g){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var y=t.sibling;Ys(e,t,r,u,y!==null?y.actualStartTime:g),t=y}}function Ys(e,t,r,u,g){var y=Gn(),C=Ni(),O=Cr(),U=ea(),q=Zg,de=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&Wt)!==Ut&&0<t.actualStartTime&&(t.flags&1)!==0&&Af(t,t.actualStartTime,g,br,r),Hr(e,t,r,u,g),de&2048&&Tu(t,ss|$u);break;case 1:(t.mode&Wt)!==Ut&&0<t.actualStartTime&&((t.flags&128)!==0?Ih(t,t.actualStartTime,g,[]):(t.flags&1)!==0&&Af(t,t.actualStartTime,g,br,r)),Hr(e,t,r,u,g);break;case 3:var be=As(),ae=br;br=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,Hr(e,t,r,u,g),br=ae,de&2048&&(r=null,t.alternate!==null&&(r=t.alternate.memoizedState.cache),u=t.memoizedState.cache,u!==r&&(ws(u),r!=null&&_o(r))),e.passiveEffectDuration+=_c(be);break;case 12:if(de&2048){de=As(),Hr(e,t,r,u,g),e=t.stateNode,e.passiveEffectDuration+=Wr(de);try{tt(t,fy,t,t.alternate,Wg,e.passiveEffectDuration)}catch(De){rn(t,t.return,De)}}else Hr(e,t,r,u,g);break;case 31:de=br,be=t.alternate!==null?t.alternate.memoizedState:null,ae=t.memoizedState,be!==null&&ae===null?(ae=t.deletions,ae!==null&&0<ae.length&&ae[0].tag===18?(br=!1,be=be.hydrationErrors,be!==null&&Ih(t,t.actualStartTime,g,be)):br=!0):br=!1,Hr(e,t,r,u,g),br=de;break;case 13:de=br,be=t.alternate!==null?t.alternate.memoizedState:null,ae=t.memoizedState,be===null||be.dehydrated===null||ae!==null&&ae.dehydrated!==null?br=!1:(ae=t.deletions,ae!==null&&0<ae.length&&ae[0].tag===18?(br=!1,be=be.hydrationErrors,be!==null&&Ih(t,t.actualStartTime,g,be)):br=!0),Hr(e,t,r,u,g),br=de;break;case 23:break;case 22:ae=t.stateNode,be=t.alternate,t.memoizedState!==null?ae._visibility&Jd?Hr(e,t,r,u,g):Do(e,t,r,u,g):ae._visibility&Jd?Hr(e,t,r,u,g):(ae._visibility|=Jd,wu(e,t,r,u,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),g),(t.mode&Wt)===Ut||br||(e=t.actualStartTime,0<=e&&.05<g-e&&Rp(t,e,g),0<=wt&&0<=Ot&&.05<Ot-wt&&Rp(t,wt,Ot))),de&2048&&Uc(be,t);break;case 24:Hr(e,t,r,u,g),de&2048&&gy(t.alternate,t);break;default:Hr(e,t,r,u,g)}(t.mode&Wt)!==Ut&&((e=!br&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)&&(r=t.actualStartTime,0<=r&&.05<g-r&&ml(t,r,g,"Mount")),0<=wt&&0<=Ot&&((ua||.05<Zi)&&wr(t,wt,Ot,Zi,Gi),e&&.05<Ot-wt&&ml(t,wt,Ot,"Mount"))),Ya(y),vl(C),Gi=O,ua=U,Zg=q}function wu(e,t,r,u,g,y){for(g=g&&((t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child)),t=t.child;t!==null;){var C=t.sibling;Bc(e,t,r,u,g,C!==null?C.actualStartTime:y),t=C}}function Bc(e,t,r,u,g,y){var C=Gn(),O=Ni(),U=Cr(),q=ea(),de=Zg;g&&(t.mode&Wt)!==Ut&&0<t.actualStartTime&&(t.flags&1)!==0&&Af(t,t.actualStartTime,y,br,r);var be=t.flags;switch(t.tag){case 0:case 11:case 15:wu(e,t,r,u,g,y),Tu(t,ss);break;case 23:break;case 22:var ae=t.stateNode;t.memoizedState!==null?ae._visibility&Jd?wu(e,t,r,u,g,y):Do(e,t,r,u,y):(ae._visibility|=Jd,wu(e,t,r,u,g,y)),g&&be&2048&&Uc(t.alternate,t);break;case 24:wu(e,t,r,u,g,y),g&&be&2048&&gy(t.alternate,t);break;default:wu(e,t,r,u,g,y)}(t.mode&Wt)!==Ut&&0<=wt&&0<=Ot&&(ua||.05<Zi)&&wr(t,wt,Ot,Zi,Gi),Ya(C),vl(O),Gi=U,ua=q,Zg=de}function Do(e,t,r,u,g){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var y=t.child;y!==null;){t=y.sibling;var C=e,O=r,U=u,q=t!==null?t.actualStartTime:g,de=Zg;(y.mode&Wt)!==Ut&&0<y.actualStartTime&&(y.flags&1)!==0&&Af(y,y.actualStartTime,q,br,O);var be=y.flags;switch(y.tag){case 22:Do(C,y,O,U,q),be&2048&&Uc(y.alternate,y);break;case 24:Do(C,y,O,U,q),be&2048&&gy(y.alternate,y);break;default:Do(C,y,O,U,q)}Zg=de,y=t}}function Jl(e,t,r){if(e.subtreeFlags&W1)for(e=e.child;e!==null;)Wn(e,t,r),e=e.sibling}function Wn(e,t,r){switch(e.tag){case 26:Jl(e,t,r),e.flags&W1&&e.memoizedState!==null&&Xn(r,lf,e.memoizedState,e.memoizedProps);break;case 5:Jl(e,t,r);break;case 3:case 4:var u=lf;lf=rh(e.stateNode.containerInfo),Jl(e,t,r),lf=u;break;case 22:e.memoizedState===null&&(u=e.alternate,u!==null&&u.memoizedState!==null?(u=W1,W1=16777216,Jl(e,t,r),W1=u):Jl(e,t,r));break;default:Jl(e,t,r)}}function G0(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function yd(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var u=t[r],g=Gn();Pr=u,yy(u,e),(u.mode&Wt)!==Ut&&0<=wt&&0<=Ot&&.05<Ot-wt&&ml(u,wt,Ot,"Unmount"),Ya(g)}G0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)my(e),e=e.sibling}function my(e){var t=Gn(),r=Ni(),u=Cr(),g=ea();switch(e.tag){case 0:case 11:case 15:yd(e),e.flags&2048&&pd(e,e.return,ss|$u);break;case 3:var y=As();yd(e),e.stateNode.passiveEffectDuration+=_c(y);break;case 12:y=As(),yd(e),e.stateNode.passiveEffectDuration+=Wr(y);break;case 22:y=e.stateNode,e.memoizedState!==null&&y._visibility&Jd&&(e.return===null||e.return.tag!==13)?(y._visibility&=~Jd,Mo(e),(e.mode&Wt)!==Ut&&0<=wt&&0<=Ot&&.05<Ot-wt&&ml(e,wt,Ot,"Disconnect")):yd(e);break;default:yd(e)}(e.mode&Wt)!==Ut&&0<=wt&&0<=Ot&&(ua||.05<Zi)&&wr(e,wt,Ot,Zi,Gi),Ya(t),vl(r),ua=g,Gi=u}function Mo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var u=t[r],g=Gn();Pr=u,yy(u,e),(u.mode&Wt)!==Ut&&0<=wt&&0<=Ot&&.05<Ot-wt&&ml(u,wt,Ot,"Unmount"),Ya(g)}G0(e)}for(e=e.child;e!==null;)Vs(e),e=e.sibling}function Vs(e){var t=Gn(),r=Ni(),u=Cr(),g=ea();switch(e.tag){case 0:case 11:case 15:pd(e,e.return,ss),Mo(e);break;case 22:var y=e.stateNode;y._visibility&Jd&&(y._visibility&=~Jd,Mo(e));break;default:Mo(e)}(e.mode&Wt)!==Ut&&0<=wt&&0<=Ot&&(ua||.05<Zi)&&wr(e,wt,Ot,Zi,Gi),Ya(t),vl(r),ua=g,Gi=u}function yy(e,t){for(;Pr!==null;){var r=Pr,u=r,g=t,y=Gn(),C=Ni(),O=Cr(),U=ea();switch(u.tag){case 0:case 11:case 15:pd(u,g,ss);break;case 23:case 22:u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(g=u.memoizedState.cachePool.pool,g!=null&&ws(g));break;case 24:_o(u.memoizedState.cache)}if((u.mode&Wt)!==Ut&&0<=wt&&0<=Ot&&(ua||.05<Zi)&&wr(u,wt,Ot,Zi,Gi),Ya(y),vl(C),ua=U,Gi=O,u=r.child,u!==null)u.return=r,Pr=u;else e:for(r=e;Pr!==null;){if(u=Pr,y=u.sibling,C=u.return,zc(u),u===r){Pr=null;break e}if(y!==null){y.return=C,Pr=y;break e}Pr=C}}}function mg(){pR.forEach(function(e){return e()})}function Hc(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||Ce.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function ei(e){if((Rn&_r)!==Zr&&tn!==0)return tn&-tn;var t=Ce.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),fi()):I()}function vd(){if(ro===0)if((tn&536870912)===0||gn){var e=tf;tf<<=1,(tf&3932160)===0&&(tf=262144),ro=e}else ro=536870912;return e=jo.current,e!==null&&(e.flags|=32),ro}function ti(e,t,r){if(Hv&&console.error("useInsertionEffect must not schedule updates."),e2&&(z_=!0),(e===yi&&(ni===f0||ni===h0)||e.cancelPendingCommit!==null)&&(Au(e,0),Hi(e,tn,ro,!1)),ha(e,r),(Rn&_r)!==Zr&&e===yi){if(xl)switch(t.tag){case 0:case 11:case 15:e=an&&me(an)||"Unknown",XC.has(e)||(XC.add(e),t=me(t)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:$C||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),$C=!0)}}else to&&Ae(e,t,r),On(t),e===yi&&((Rn&_r)===Zr&&(om|=r),Ji===rm&&Hi(e,tn,ro,!1)),ln(e)}function yg(e,t,r){if((Rn&(_r|Vo))!==Zr)throw Error("Should not already be working.");if(tn!==0&&an!==null){var u=an,g=Qi();switch(HA){case nb:case f0:var y=I1;Oi&&((u=u._debugTask)?u.run(console.timeStamp.bind(console,"Suspended",y,g,Bu,void 0,"primary-light")):console.timeStamp("Suspended",y,g,Bu,void 0,"primary-light"));break;case h0:y=I1,Oi&&((u=u._debugTask)?u.run(console.timeStamp.bind(console,"Action",y,g,Bu,void 0,"primary-light")):console.timeStamp("Action",y,g,Bu,void 0,"primary-light"));break;default:Oi&&(u=g-I1,3>u||console.timeStamp("Blocked",I1,g,Bu,void 0,5>u?"primary-light":10>u?"primary":100>u?"primary-dark":"error"))}}y=(r=!r&&(t&127)===0&&(t&e.expiredLanes)===0||Cn(e,t))?Y0(e,t):Qa(e,t,!0);var C=r;do{if(y===sp){Uv&&!r&&Hi(e,t,0,!1),t=ni,I1=Fa(),HA=t;break}else{if(u=Qi(),g=e.current.alternate,C&&!vg(g)){Yi(t),g=Qr,y=u,!Oi||y<=g||(xa?xa.run(console.timeStamp.bind(console,"Teared Render",g,y,hn,un,"error")):console.timeStamp("Teared Render",g,y,hn,un,"error")),Qn(t,u),y=Qa(e,t,!1),C=!1;continue}if(y===c0){if(C=t,e.errorRecoveryDisabledLanes&C)var O=0;else O=e.pendingLanes&-536870913,O=O!==0?O:O&536870912?536870912:0;if(O!==0){Yi(t),kp(Qr,u,t,xa),Qn(t,u),t=O;e:{u=e,y=C,C=ab;var U=u.current.memoizedState.isDehydrated;if(U&&(Au(u,O).flags|=256),O=Qa(u,O,!1),O!==c0){if(XS&&!U){u.errorRecoveryDisabledLanes|=y,om|=y,y=rm;break e}u=os,os=C,u!==null&&(os===null?os=u:os.push.apply(os,u))}y=O}if(C=!1,y!==c0)continue;u=Qi()}}if(y===tb){Yi(t),kp(Qr,u,t,xa),Qn(t,u),Au(e,0),Hi(e,t,0,!0);break}e:{switch(r=e,y){case sp:case tb:throw Error("Root did not complete. This is a bug in React.");case rm:if((t&4194048)!==t)break;case x_:Yi(t),Np(Qr,u,t,xa),Qn(t,u),g=t,(g&127)!==0?h_=u:(g&4194048)!==0&&(d_=u),Hi(r,t,ro,!lm);break e;case c0:os=null;break;case C_:case RC:break;default:throw Error("Unknown root exit status.")}if(Ce.actQueue!==null)ka(r,g,t,os,rb,D_,ro,om,d0,y,null,null,Qr,u);else{if((t&62914560)===t&&(C=M_+zC-Qi(),10<C)){if(Hi(r,t,ro,!lm),lr(r,0,!0)!==0)break e;sf=t,r.timeoutHandle=ex(Ic.bind(null,r,g,os,rb,D_,t,ro,om,d0,lm,y,"Throttled",Qr,u),C);break e}Ic(r,g,os,rb,D_,t,ro,om,d0,lm,y,null,Qr,u)}}}break}while(!0);ln(e)}function Ic(e,t,r,u,g,y,C,O,U,q,de,be,ae,De){e.timeoutHandle=v0;var it=t.subtreeFlags,ot=null;if((it&8192||(it&16785408)===16785408)&&(ot={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:dl},Wn(t,y,ot),it=(y&62914560)===y?M_-Qi():(y&4194048)===y?kC-Qi():0,it=Wl(ot,it),it!==null)){sf=y,e.cancelPendingCommit=it(ka.bind(null,e,t,y,r,u,g,C,O,U,de,ot,ot.waitingForViewTransition?"Waiting for the previous Animation":0<ot.count?0<ot.imgCount?"Suspended on CSS and Images":"Suspended on CSS":ot.imgCount===1?"Suspended on an Image":0<ot.imgCount?"Suspended on Images":null,ae,De)),Hi(e,y,C,!q);return}ka(e,t,y,r,u,g,C,O,U,de,ot,be,ae,De)}function vg(e){for(var t=e;;){var r=t.tag;if((r===0||r===11||r===15)&&t.flags&16384&&(r=t.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var u=0;u<r.length;u++){var g=r[u],y=g.getSnapshot;g=g.value;try{if(!as(y(),g))return!1}catch{return!1}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Hi(e,t,r,u){t&=~QS,t&=~om,e.suspendedLanes|=t,e.pingedLanes&=~t,u&&(e.warmLanes|=t),u=e.expirationTimes;for(var g=t;0<g;){var y=31-Ja(g),C=1<<y;u[y]=-1,g&=~C}r!==0&&R(e,r,t)}function rl(){return(Rn&(_r|Vo))===Zr?(Pt(0,!1),!1):!0}function Kl(){if(an!==null){if(ni===ao)var e=an.return;else e=an,cn(),Qh(e),xv=null,P1=0,e=an;for(;e!==null;)hd(e.alternate,e),e=e.return;an=null}}function Qn(e,t){(e&127)!==0&&(em=t),(e&4194048)!==0&&(Sh=t),(e&62914560)!==0&&(UA=t),(e&2080374784)!==0&&(BA=t)}function Au(e,t){Oi&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",un,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",un,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",un,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",un,"primary-light"));var r=Qr;if(Qr=Fa(),tn!==0&&0<r){if(Yi(tn),Ji===C_||Ji===rm)Np(r,Qr,t,xa);else{var u=Qr,g=xa;if(Oi&&!(u<=r)){var y=(t&738197653)===t?"tertiary-dark":"primary-dark",C=(t&536870912)===t?"Prewarm":(t&201326741)===t?"Interrupted Hydration":"Interrupted Render";g?g.run(console.timeStamp.bind(console,C,r,u,hn,un,y)):console.timeStamp(C,r,u,hn,un,y)}}Qn(tn,Qr)}if(r=xa,xa=null,(t&127)!==0){xa=U1,g=0<=Eh&&Eh<em?em:Eh,u=0<=n0&&n0<em?em:n0,y=0<=u?u:0<=g?g:Qr,0<=h_?(Yi(2),Cf(h_,y,t,r)):(p_&127)!==0&&(Yi(2),mc(em,y,np)),r=g;var O=u,U=B1,q=0<wv,de=tm===z1,be=tm===f_;if(g=Qr,u=U1,y=AS,C=CS,Oi){if(hn="Blocking",0<r?r>g&&(r=g):r=g,0<O?O>r&&(O=r):O=r,U!==null&&r>O){var ae=q?"secondary-light":"warning";u?u.run(console.timeStamp.bind(console,q?"Consecutive":"Event: "+U,O,r,hn,un,ae)):console.timeStamp(q?"Consecutive":"Event: "+U,O,r,hn,un,ae)}g>r&&(O=de?"error":(t&738197653)===t?"tertiary-light":"primary-light",de=be?"Promise Resolved":de?"Cascading Update":5<g-r?"Update Blocked":"Update",be=[],C!=null&&be.push(["Component name",C]),y!=null&&be.push(["Method name",y]),r={start:r,end:g,detail:{devtools:{properties:be,track:hn,trackGroup:un,color:O}}},u?u.run(performance.measure.bind(performance,de,r)):performance.measure(de,r))}Eh=-1.1,tm=0,CS=AS=null,h_=-1.1,wv=n0,n0=-1.1,em=Fa()}if((t&4194048)!==0&&(xa=H1,g=0<=tp&&tp<Sh?Sh:tp,r=0<=Yu&&Yu<Sh?Sh:Yu,u=0<=nm&&nm<Sh?Sh:nm,y=0<=u?u:0<=r?r:Qr,0<=d_?(Yi(256),Cf(d_,y,t,xa)):(p_&4194048)!==0&&(Yi(256),mc(Sh,y,np)),be=u,O=i0,U=0<im,q=xS===f_,y=Qr,u=H1,C=kA,de=zA,Oi&&(hn="Transition",0<r?r>y&&(r=y):r=y,0<g?g>r&&(g=r):g=r,0<be?be>g&&(be=g):be=g,g>be&&O!==null&&(ae=U?"secondary-light":"warning",u?u.run(console.timeStamp.bind(console,U?"Consecutive":"Event: "+O,be,g,hn,un,ae)):console.timeStamp(U?"Consecutive":"Event: "+O,be,g,hn,un,ae)),r>g&&(u?u.run(console.timeStamp.bind(console,"Action",g,r,hn,un,"primary-dark")):console.timeStamp("Action",g,r,hn,un,"primary-dark")),y>r&&(g=q?"Promise Resolved":5<y-r?"Update Blocked":"Update",be=[],de!=null&&be.push(["Component name",de]),C!=null&&be.push(["Method name",C]),r={start:r,end:y,detail:{devtools:{properties:be,track:hn,trackGroup:un,color:"primary-light"}}},u?u.run(performance.measure.bind(performance,g,r)):performance.measure(g,r))),Yu=tp=-1.1,xS=0,d_=-1.1,im=nm,nm=-1.1,Sh=Fa()),(t&62914560)!==0&&(p_&62914560)!==0&&(Yi(4194304),mc(UA,Qr,np)),(t&2080374784)!==0&&(p_&2080374784)!==0&&(Yi(268435456),mc(BA,Qr,np)),r=e.timeoutHandle,r!==v0&&(e.timeoutHandle=v0,xR(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),sf=0,Kl(),yi=e,an=r=Es(e.current,null),tn=t,ni=ao,$o=null,lm=!1,Uv=Cn(e,t),XS=!1,Ji=sp,d0=ro=QS=om=sm=0,os=ab=null,D_=!1,(t&8)!==0&&(t|=t&32),u=e.entangledLanes,u!==0)for(e=e.entanglements,u&=t;0<u;)g=31-Ja(u),y=1<<g,t|=e[g],u&=~y;return wh=t,xf(),e=OA(),1e3<e-LA&&(Ce.recentlyCreatedOwnerStacks=0,LA=e),af.discardPendingWarnings(),r}function vy(e,t){qt=null,Ce.H=F1,Ce.getCurrentStack=null,xl=!1,$r=null,t===Cv||t===v_?(t=Yp(),ni=nb):t===MS?(t=Yp(),ni=NC):ni=t===GS?$S:t!==null&&typeof t=="object"&&typeof t.then=="function"?ib:L_,$o=t;var r=an;r===null?(Ji=tb,Gf(e,ma(t,e.current))):r.mode&Wt&&lu(r)}function ia(){var e=jo.current;return e===null?!0:(tn&4194048)===tn?Vu===null:(tn&62914560)===tn||(tn&536870912)!==0?e===Vu:!1}function j0(){var e=Ce.H;return Ce.H=F1,e===null?F1:e}function by(){var e=Ce.A;return Ce.A=dR,e}function bd(e){xa===null&&(xa=e._debugTask==null?null:e._debugTask)}function Pn(){Ji=rm,lm||(tn&4194048)!==tn&&jo.current!==null||(Uv=!0),(sm&134217727)===0&&(om&134217727)===0||yi===null||Hi(yi,tn,ro,!1)}function Qa(e,t,r){var u=Rn;Rn|=_r;var g=j0(),y=by();if(yi!==e||tn!==t){if(to){var C=e.memoizedUpdaters;0<C.size&&(Td(e,tn),C.clear()),Ge(e,t)}rb=null,Au(e,t)}t=!1,C=Ji;e:do try{if(ni!==ao&&an!==null){var O=an,U=$o;switch(ni){case $S:Kl(),C=x_;break e;case nb:case f0:case h0:case ib:jo.current===null&&(t=!0);var q=ni;if(ni=ao,$o=null,aa(e,O,U,q),r&&Uv){C=sp;break e}break;default:q=ni,ni=ao,$o=null,aa(e,O,U,q)}}$s(),C=Ji;break}catch(de){vy(e,de)}while(!0);return t&&e.shellSuspendCounter++,cn(),Rn=u,Ce.H=g,Ce.A=y,an===null&&(yi=null,tn=0,xf()),C}function $s(){for(;an!==null;)bg(an)}function Y0(e,t){var r=Rn;Rn|=_r;var u=j0(),g=by();if(yi!==e||tn!==t){if(to){var y=e.memoizedUpdaters;0<y.size&&(Td(e,tn),y.clear()),Ge(e,t)}rb=null,R_=Qi()+UC,Au(e,t)}else Uv=Cn(e,t);e:do try{if(ni!==ao&&an!==null)t:switch(t=an,y=$o,ni){case L_:ni=ao,$o=null,aa(e,t,y,L_);break;case f0:case h0:if(jn(y)){ni=ao,$o=null,_y(t);break}t=function(){ni!==f0&&ni!==h0||yi!==e||(ni=O_),ln(e)},y.then(t,t);break e;case nb:ni=O_;break e;case NC:ni=VS;break e;case O_:jn(y)?(ni=ao,$o=null,_y(t)):(ni=ao,$o=null,aa(e,t,y,O_));break;case VS:var C=null;switch(an.tag){case 26:C=an.memoizedState;case 5:case 27:var O=an;if(C?Rd(C):O.stateNode.complete){ni=ao,$o=null;var U=O.sibling;if(U!==null)an=U;else{var q=O.return;q!==null?(an=q,Ir(q)):an=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}ni=ao,$o=null,aa(e,t,y,VS);break;case ib:ni=ao,$o=null,aa(e,t,y,ib);break;case $S:Kl(),Ji=x_;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}Ce.actQueue!==null?$s():V0();break}catch(de){vy(e,de)}while(!0);return cn(),Ce.H=u,Ce.A=g,Rn=r,an!==null?sp:(yi=null,tn=0,xf(),Ji)}function V0(){for(;an!==null&&!T1();)bg(an)}function bg(e){var t=e.alternate;(e.mode&Wt)!==Ut?(Mf(e),t=tt(e,vu,t,e,wh),lu(e)):t=tt(e,vu,t,e,wh),e.memoizedProps=e.pendingProps,t===null?Ir(e):an=t}function _y(e){var t=tt(e,_d,e);e.memoizedProps=e.pendingProps,t===null?Ir(e):an=t}function _d(e){var t=e.alternate,r=(e.mode&Wt)!==Ut;switch(r&&Mf(e),e.tag){case 15:case 0:t=ig(t,e,e.pendingProps,e.type,void 0,tn);break;case 11:t=ig(t,e,e.pendingProps,e.type.render,e.ref,tn);break;case 5:Qh(e);default:hd(t,e),e=an=Pm(e,wh),t=vu(t,e,wh)}return r&&lu(e),t}function aa(e,t,r,u){cn(),Qh(t),xv=null,P1=0;var g=t.return;try{if(zr(e,g,t,r,tn)){Ji=tb,Gf(e,ma(r,e.current)),an=null;return}}catch(y){if(g!==null)throw an=g,y;Ji=tb,Gf(e,ma(r,e.current)),an=null;return}t.flags&32768?(gn||u===L_?e=!0:Uv||(tn&536870912)!==0?e=!1:(lm=e=!0,(u===f0||u===h0||u===nb||u===ib)&&(u=jo.current,u!==null&&u.tag===13&&(u.flags|=16384))),Ey(t,e)):Ir(t)}function Ir(e){var t=e;do{if((t.flags&32768)!==0){Ey(t,lm);return}var r=t.alternate;if(e=t.return,Mf(t),r=tt(t,fd,r,t,wh),(t.mode&Wt)!==Ut&&Cs(t),r!==null){an=r;return}if(t=t.sibling,t!==null){an=t;return}an=t=e}while(t!==null);Ji===sp&&(Ji=RC)}function Ey(e,t){do{var r=sy(e.alternate,e);if(r!==null){r.flags&=32767,an=r;return}if((e.mode&Wt)!==Ut){Cs(e),r=e.actualDuration;for(var u=e.child;u!==null;)r+=u.actualDuration,u=u.sibling;e.actualDuration=r}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!t&&(e=e.sibling,e!==null)){an=e;return}an=e=r}while(e!==null);Ji=x_,an=null}function ka(e,t,r,u,g,y,C,O,U,q,de,be,ae,De){e.cancelPendingCommit=null;do qc();while(ir!==cm);if(af.flushLegacyContextWarning(),af.flushPendingUnsafeLifecycleWarnings(),(Rn&(_r|Vo))!==Zr)throw Error("Should not already be working.");if(Yi(r),q===c0?kp(ae,De,r,xa):u!==null?gc(ae,De,r,u,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,xa):v1(ae,De,r,xa),t!==null){if(r===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),t===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(y=t.lanes|t.childLanes,y|=_S,Y(e,r,y,C,O,U),e===yi&&(an=yi=null,tn=0),Bv=t,fm=e,sf=r,JS=y,FS=g,jC=u,KS=De,YC=be,of=N_,VC=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,b1(ef,function(){return fb=window.event,of===N_&&(of=ZS),Si(),null})):(e.callbackNode=null,e.callbackPriority=0),ep=null,Wg=Fa(),be!==null&&Qm(De,Wg,be,xa),u=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||u){u=Ce.T,Ce.T=null,g=Ht.p,Ht.p=ol,C=Rn,Rn|=Vo;try{Et(e,t,r)}finally{Rn=C,Ht.p=g,Ce.T=u}}ir=HC,Sy(),Xs(),Cu()}}function Sy(){if(ir===HC){ir=cm;var e=fm,t=Bv,r=sf,u=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||u){u=Ce.T,Ce.T=null;var g=Ht.p;Ht.p=ol;var y=Rn;Rn|=Vo;try{kv=r,zv=e,zl(),gg(t,e),zv=kv=null,r=u2;var C=Xm(e.containerInfo),O=r.focusedElem,U=r.selectionRange;if(C!==O&&O&&O.ownerDocument&&$m(O.ownerDocument.documentElement,O)){if(U!==null&&ja(O)){var q=U.start,de=U.end;if(de===void 0&&(de=q),"selectionStart"in O)O.selectionStart=q,O.selectionEnd=Math.min(de,O.value.length);else{var be=O.ownerDocument||document,ae=be&&be.defaultView||window;if(ae.getSelection){var De=ae.getSelection(),it=O.textContent.length,ot=Math.min(U.start,it),Ti=U.end===void 0?ot:Math.min(U.end,it);!De.extend&&ot>Ti&&(C=Ti,Ti=ot,ot=C);var _n=Hh(O,ot),ie=Hh(O,Ti);if(_n&&ie&&(De.rangeCount!==1||De.anchorNode!==_n.node||De.anchorOffset!==_n.offset||De.focusNode!==ie.node||De.focusOffset!==ie.offset)){var se=be.createRange();se.setStart(_n.node,_n.offset),De.removeAllRanges(),ot>Ti?(De.addRange(se),De.extend(ie.node,ie.offset)):(se.setEnd(ie.node,ie.offset),De.addRange(se))}}}}for(be=[],De=O;De=De.parentNode;)De.nodeType===1&&be.push({element:De,left:De.scrollLeft,top:De.scrollTop});for(typeof O.focus=="function"&&O.focus(),O=0;O<be.length;O++){var fe=be[O];fe.element.scrollLeft=fe.left,fe.element.scrollTop=fe.top}}Z_=!!o2,u2=o2=null}finally{Rn=y,Ht.p=g,Ce.T=u}}e.current=t,ir=IC}}function Xs(){if(ir===IC){ir=cm;var e=VC;if(e!==null){Wg=Fa();var t=Wd,r=Wg;!Oi||r<=t||(np?np.run(console.timeStamp.bind(console,e,t,r,hn,un,"secondary-light")):console.timeStamp(e,t,r,hn,un,"secondary-light"))}e=fm,t=Bv,r=sf;var u=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||u){u=Ce.T,Ce.T=null;var g=Ht.p;Ht.p=ol;var y=Rn;Rn|=Vo;try{kv=r,zv=e,zl(),gd(e,t.alternate,t),zv=kv=null}finally{Rn=y,Ht.p=g,Ce.T=u}}e=KS,t=YC,Wd=Fa(),e=t===null?e:Wg,t=Wd,r=of===PS,u=xa,ep!==null?tu(e,t,ep,!1,u):!Oi||t<=e||(u?u.run(console.timeStamp.bind(console,r?"Commit Interrupted View Transition":"Commit",e,t,hn,un,r?"error":"secondary-dark")):console.timeStamp(r?"Commit Interrupted View Transition":"Commit",e,t,hn,un,r?"error":"secondary-dark")),ir=qC}}function Cu(){if(ir===GC||ir===qC){if(ir===GC){var e=Wd;Wd=Fa();var t=Wd,r=of===PS;!Oi||t<=e||(np?np.run(console.timeStamp.bind(console,r?"Interrupted View Transition":"Starting Animation",e,t,hn,un,r?"error":"secondary-light")):console.timeStamp(r?"Interrupted View Transition":"Starting Animation",e,t,hn,un,r?" error":"secondary-light")),of!==PS&&(of=BC)}ir=cm,w1(),e=fm;var u=Bv;t=sf,r=jC;var g=u.actualDuration!==0||(u.subtreeFlags&10256)!==0||(u.flags&10256)!==0;g?ir=k_:(ir=cm,Bv=fm=null,_g(e,e.pendingLanes),p0=0,sb=null);var y=e.pendingLanes;if(y===0&&(um=null),g||Sd(e),y=pt(t),u=u.stateNode,Pi&&typeof Pi.onCommitFiberRoot=="function")try{var C=(u.current.flags&128)===128;switch(y){case ol:var O=vh;break;case Xr:O=Vd;break;case ul:O=ef;break;case Pd:O=Ws;break;default:O=ef}Pi.onCommitFiberRoot(eo,u,O,C)}catch(be){Ua||(Ua=!0,console.error("React instrumentation encountered an error: %o",be))}if(to&&e.memoizedUpdaters.clear(),mg(),r!==null){C=Ce.T,O=Ht.p,Ht.p=ol,Ce.T=null;try{var U=e.onRecoverableError;for(u=0;u<r.length;u++){var q=r[u],de=Ro(q.stack);tt(q.source,U,q.value,de)}}finally{Ce.T=C,Ht.p=O}}(sf&3)!==0&&qc(),ln(e),y=e.pendingLanes,(t&261930)!==0&&(y&42)!==0?(m_=!0,e===WS?lb++:(lb=0,WS=e)):lb=0,g||Qn(t,Wd),Pt(0,!1)}}function Ro(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function _g(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,_o(t)))}function qc(){return Sy(),Xs(),Cu(),Si()}function Si(){if(ir!==k_)return!1;var e=fm,t=JS;JS=0;var r=pt(sf),u=ul===0||ul>r?ul:r;r=Ce.T;var g=Ht.p;try{Ht.p=u,Ce.T=null;var y=FS;FS=null,u=fm;var C=sf;if(ir=cm,Bv=fm=null,sf=0,(Rn&(_r|Vo))!==Zr)throw Error("Cannot flush passive effects while already rendering.");Yi(C),e2=!0,z_=!1;var O=0;if(ep=null,O=Qi(),of===BC)mc(Wd,O,np);else{var U=Wd,q=O,de=of===ZS;!Oi||q<=U||(xa?xa.run(console.timeStamp.bind(console,de?"Waiting for Paint":"Waiting",U,q,hn,un,"secondary-light")):console.timeStamp(de?"Waiting for Paint":"Waiting",U,q,hn,un,"secondary-light"))}U=Rn,Rn|=Vo;var be=u.current;zl(),my(be);var ae=u.current;be=KS,zl(),Ys(u,ae,C,y,be),Sd(u),Rn=U;var De=Qi();if(ae=O,be=xa,ep!==null?tu(ae,De,ep,!0,be):!Oi||De<=ae||(be?be.run(console.timeStamp.bind(console,"Remaining Effects",ae,De,hn,un,"secondary-dark")):console.timeStamp("Remaining Effects",ae,De,hn,un,"secondary-dark")),Qn(C,De),Pt(0,!1),z_?u===sb?p0++:(p0=0,sb=u):p0=0,z_=e2=!1,Pi&&typeof Pi.onPostCommitFiberRoot=="function")try{Pi.onPostCommitFiberRoot(eo,u)}catch(ot){Ua||(Ua=!0,console.error("React instrumentation encountered an error: %o",ot))}var it=u.current.stateNode;return it.effectDuration=0,it.passiveEffectDuration=0,!0}finally{Ht.p=g,Ce.T=r,_g(e,t)}}function Ty(e,t,r){t=ma(r,t),el(t),t=Yf(e.stateNode,t,2),e=Va(e,t,2),e!==null&&(ha(e,2),ln(e))}function rn(e,t,r){if(Hv=!1,e.tag===3)Ty(e,e,r);else{for(;t!==null;){if(t.tag===3){Ty(t,e,r);return}if(t.tag===1){var u=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(um===null||!um.has(u))){e=ma(r,e),el(e),r=rd(2),u=Va(t,r,2),u!==null&&(ld(r,u,t,e),ha(u,2),ln(u));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.

Error message:

%s`,r)}}function Gc(e,t,r){var u=e.pingCache;if(u===null){u=e.pingCache=new gR;var g=new Set;u.set(t,g)}else g=u.get(t),g===void 0&&(g=new Set,u.set(t,g));g.has(r)||(XS=!0,g.add(r),u=eh.bind(null,e,t,r),to&&Td(e,r),t.then(u,u))}function eh(e,t,r){var u=e.pingCache;u!==null&&u.delete(t),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,(r&127)!==0?0>Eh&&(em=Eh=Fa(),U1=c_("Promise Resolved"),tm=f_):(r&4194048)!==0&&0>Yu&&(Sh=Yu=Fa(),H1=c_("Promise Resolved"),xS=f_),Hc()&&Ce.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).

When testing, code that resolves suspended data should be wrapped into act(...):

act(() => {
  /* finish loading suspended data */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),yi===e&&(tn&r)===r&&(Ji===rm||Ji===C_&&(tn&62914560)===tn&&Qi()-M_<zC?(Rn&_r)===Zr&&Au(e,0):QS|=r,d0===tn&&(d0=0)),ln(e)}function jc(e,t){t===0&&(t=Po()),e=Wi(e,t),e!==null&&(ha(e,t),ln(e))}function $0(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),jc(e,r)}function X0(e,t){var r=0;switch(e.tag){case 31:case 13:var u=e.stateNode,g=e.memoizedState;g!==null&&(r=g.retryLane);break;case 19:u=e.stateNode;break;case 22:u=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}u!==null&&u.delete(t),jc(e,r)}function Yc(e,t,r){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var u=e,g=t,y=g.type===Ud;y=r||y,g.tag!==22?g.flags&67108864?y&&tt(g,Ed,u,g):Yc(u,g,y):g.memoizedState===null&&(y&&g.flags&8192?tt(g,Ed,u,g):g.subtreeFlags&67108864&&tt(g,Yc,u,g,y)),t=t.sibling}}function Ed(e,t){nn(!0);try{py(t),Vs(t),Zl(e,t.alternate,t,!1),Bc(e,t,0,null,!1,0)}finally{nn(!1)}}function Sd(e){var t=!0;e.current.mode&(Ol|nf)||(t=!1),Yc(e,e.current,t)}function wy(e){if((Rn&_r)===Zr){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=me(e)||"ReactComponent",U_!==null){if(U_.has(t))return;U_.add(t)}else U_=new Set([t]);tt(e,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function Td(e,t){to&&e.memoizedUpdaters.forEach(function(r){Ae(e,r,t)})}function b1(e,t){var r=Ce.actQueue;return r!==null?(r.push(t),vR):jd(e,t)}function On(e){Hc()&&Ce.actQueue===null&&tt(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,me(e))})}function ln(e){e!==Iv&&e.next===null&&(Iv===null?B_=Iv=e:Iv=Iv.next=e),H_=!0,Ce.actQueue!==null?n2||(n2=!0,Qs()):t2||(t2=!0,Qs())}function Pt(e,t){if(!i2&&H_){i2=!0;do for(var r=!1,u=B_;u!==null;){if(!t)if(e!==0){var g=u.pendingLanes;if(g===0)var y=0;else{var C=u.suspendedLanes,O=u.pingedLanes;y=(1<<31-Ja(42|e)+1)-1,y&=g&~(C&~O),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(r=!0,Vc(u,y))}else y=tn,y=lr(u,u===yi?y:0,u.cancelPendingCommit!==null||u.timeoutHandle!==v0),(y&3)===0||Cn(u,y)||(r=!0,Vc(u,y));u=u.next}while(r);i2=!1}}function sn(){fb=window.event,Dn()}function Dn(){H_=n2=t2=!1;var e=0;hm!==0&&J0()&&(e=hm);for(var t=Qi(),r=null,u=B_;u!==null;){var g=u.next,y=qr(u,t);y===0?(u.next=null,r===null?B_=g:r.next=g,g===null&&(Iv=r)):(r=u,(e!==0||(y&3)!==0)&&(H_=!0)),u=g}ir!==cm&&ir!==k_||Pt(e,!1),hm!==0&&(hm=0)}function qr(e,t){for(var r=e.suspendedLanes,u=e.pingedLanes,g=e.expirationTimes,y=e.pendingLanes&-62914561;0<y;){var C=31-Ja(y),O=1<<C,U=g[C];U===-1?((O&r)===0||(O&u)!==0)&&(g[C]=Rl(O,t)):U<=t&&(e.expiredLanes|=O),y&=~O}if(t=yi,r=tn,r=lr(e,e===t?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==v0),u=e.callbackNode,r===0||e===t&&(ni===f0||ni===h0)||e.cancelPendingCommit!==null)return u!==null&&wd(u),e.callbackNode=null,e.callbackPriority=0;if((r&3)===0||Cn(e,r)){if(t=r&-r,t!==e.callbackPriority||Ce.actQueue!==null&&u!==a2)wd(u);else return t;switch(pt(r)){case ol:case Xr:r=Vd;break;case ul:r=ef;break;case Pd:r=Ws;break;default:r=ef}return u=No.bind(null,e),Ce.actQueue!==null?(Ce.actQueue.push(u),r=a2):r=jd(r,u),e.callbackPriority=t,e.callbackNode=r,t}return u!==null&&wd(u),e.callbackPriority=2,e.callbackNode=null,2}function No(e,t){if(m_=g_=!1,fb=window.event,ir!==cm&&ir!==k_)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(of===N_&&(of=ZS),qc()&&e.callbackNode!==r)return null;var u=tn;return u=lr(e,e===yi?u:0,e.cancelPendingCommit!==null||e.timeoutHandle!==v0),u===0?null:(yg(e,u,t),qr(e,Qi()),e.callbackNode!=null&&e.callbackNode===r?No.bind(null,e):null)}function Vc(e,t){if(qc())return null;g_=m_,m_=!1,yg(e,t,!0)}function wd(e){e!==a2&&e!==null&&Yd(e)}function Qs(){Ce.actQueue!==null&&Ce.actQueue.push(function(){return Dn(),null}),LR(function(){(Rn&(_r|Vo))!==Zr?jd(vh,sn):Dn()})}function fi(){if(hm===0){var e=a0;e===0&&(e=Xd,Xd<<=1,(Xd&261888)===0&&(Xd=256)),hm=e}return hm}function ko(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:(Dt(e,"action"),Nh(""+e))}function xu(e,t){var r=t.ownerDocument.createElement("input");return r.name=t.name,r.value=t.value,e.id&&r.setAttribute("form",e.id),t.parentNode.insertBefore(r,t),e=new FormData(e),r.parentNode.removeChild(r),e}function Ay(e,t,r,u,g){if(t==="submit"&&r&&r.stateNode===g){var y=ko((g[Ca]||null).action),C=u.submitter;C&&(t=(t=C[Ca]||null)?ko(t.formAction):C.getAttribute("formAction"),t!==null&&(y=t,C=null));var O=new ns("action","action",null,u,g);e.push({event:O,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(hm!==0){var U=C?xu(g,C):new FormData(g),q={pending:!0,data:U,method:g.method,action:y};Object.freeze(q),ed(r,q,null,U)}}else typeof y=="function"&&(O.preventDefault(),U=C?xu(g,C):new FormData(g),q={pending:!0,data:U,method:g.method,action:y},Object.freeze(q),ed(r,q,y,U))},currentTarget:g}]})}}function Pa(e,t,r){e.currentTarget=r;try{t(e)}catch(u){mS(u)}e.currentTarget=null}function $c(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var u=e[r];e:{var g=void 0,y=u.event;if(u=u.listeners,t)for(var C=u.length-1;0<=C;C--){var O=u[C],U=O.instance,q=O.currentTarget;if(O=O.listener,U!==g&&y.isPropagationStopped())break e;U!==null?tt(U,Pa,y,O,q):Pa(y,O,q),g=U}else for(C=0;C<u.length;C++){if(O=u[C],U=O.instance,q=O.currentTarget,O=O.listener,U!==g&&y.isPropagationStopped())break e;U!==null?tt(U,Pa,y,O,q):Pa(y,O,q),g=U}}}}function jt(e,t){r2.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var r=t[Vg];r===void 0&&(r=t[Vg]=new Set);var u=e+"__bubble";r.has(u)||(Cd(t,e,2,!1),r.add(u))}function za(e,t,r){r2.has(e)&&!t&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var u=0;t&&(u|=4),Cd(r,e,u,t)}function Ad(e){if(!e[I_]){e[I_]=!0,o.forEach(function(r){r!=="selectionchange"&&(r2.has(r)||za(r,!1,e),za(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[I_]||(t[I_]=!0,za("selectionchange",!1,t))}}function Cd(e,t,r,u){switch(qi(t)){case ol:var g=uh;break;case Xr:g=jy;break;default:g=zg}r=g.bind(null,t,r,e),g=void 0,!Tt||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(g=!0),u?g!==void 0?e.addEventListener(t,r,{capture:!0,passive:g}):e.addEventListener(t,r,!0):g!==void 0?e.addEventListener(t,r,{passive:g}):e.addEventListener(t,r,!1)}function Eg(e,t,r,u,g){var y=u;if((t&1)===0&&(t&2)===0&&u!==null)e:for(;;){if(u===null)return;var C=u.tag;if(C===3||C===4){var O=u.stateNode.containerInfo;if(O===g)break;if(C===4)for(C=u.return;C!==null;){var U=C.tag;if((U===3||U===4)&&C.stateNode.containerInfo===g)return;C=C.return}for(;O!==null;){if(C=Ze(O),C===null)return;if(U=C.tag,U===5||U===6||U===26||U===27){u=y=C;continue e}O=O.parentNode}}u=u.return}Lp(function(){var q=y,de=pl(r),be=[];e:{var ae=xA.get(e);if(ae!==void 0){var De=ns,it=e;switch(e){case"keypress":if(fc(r)===0)break e;case"keydown":case"keyup":De=IM;break;case"focusin":it="focus",De=cS;break;case"focusout":it="blur",De=cS;break;case"beforeblur":case"afterblur":De=cS;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":De=dA;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":De=RM;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":De=qM;break;case TA:case wA:case AA:De=NM;break;case CA:De=GM;break;case"scroll":case"scrollend":De=oa;break;case"wheel":De=jM;break;case"copy":case"cut":case"paste":De=kM;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":De=gA;break;case"toggle":case"beforetoggle":De=YM}var ot=(t&4)!==0,Ti=!ot&&(e==="scroll"||e==="scrollend"),_n=ot?ae!==null?ae+"Capture":null:ae;ot=[];for(var ie=q,se;ie!==null;){var fe=ie;if(se=fe.stateNode,fe=fe.tag,fe!==5&&fe!==26&&fe!==27||se===null||_n===null||(fe=bs(ie,_n),fe!=null&&ot.push(Lu(ie,fe,se))),Ti)break;ie=ie.return}0<ot.length&&(ae=new De(ae,it,null,r,de),be.push({event:ae,listeners:ot}))}}if((t&7)===0){e:{if(ae=e==="mouseover"||e==="pointerover",De=e==="mouseout"||e==="pointerout",ae&&r!==Pe&&(it=r.relatedTarget||r.fromElement)&&(Ze(it)||it[ts]))break e;if((De||ae)&&(ae=de.window===de?de:(ae=de.ownerDocument)?ae.defaultView||ae.parentWindow:window,De?(it=r.relatedTarget||r.toElement,De=q,it=it?Ze(it):null,it!==null&&(Ti=pe(it),ot=it.tag,it!==Ti||ot!==5&&ot!==27&&ot!==6)&&(it=null)):(De=null,it=q),De!==it)){if(ot=dA,fe="onMouseLeave",_n="onMouseEnter",ie="mouse",(e==="pointerout"||e==="pointerover")&&(ot=gA,fe="onPointerLeave",_n="onPointerEnter",ie="pointer"),Ti=De==null?ae:Mt(De),se=it==null?ae:Mt(it),ae=new ot(fe,ie+"leave",De,r,de),ae.target=Ti,ae.relatedTarget=se,fe=null,Ze(de)===q&&(ot=new ot(_n,ie+"enter",it,r,de),ot.target=se,ot.relatedTarget=Ti,fe=ot),Ti=fe,De&&it)t:{for(ot=Ou,_n=De,ie=it,se=0,fe=_n;fe;fe=ot(fe))se++;fe=0;for(var Ye=ie;Ye;Ye=ot(Ye))fe++;for(;0<se-fe;)_n=ot(_n),se--;for(;0<fe-se;)ie=ot(ie),fe--;for(;se--;){if(_n===ie||ie!==null&&_n===ie.alternate){ot=_n;break t}_n=ot(_n),ie=ot(ie)}ot=null}else ot=null;De!==null&&$i(be,ae,De,ot,!1),it!==null&&Ti!==null&&$i(be,Ti,it,ot,!0)}}e:{if(ae=q?Mt(q):window,De=ae.nodeName&&ae.nodeName.toLowerCase(),De==="select"||De==="input"&&ae.type==="file")var rt=Wo;else if(Ym(ae))if(EA)rt=Ga;else{rt=Mp;var Gt=hc}else De=ae.nodeName,!De||De.toLowerCase()!=="input"||ae.type!=="checkbox"&&ae.type!=="radio"?q&&vs(q.elementType)&&(rt=Wo):rt=Uh;if(rt&&(rt=rt(e,q))){zh(be,rt,r,de);break e}Gt&&Gt(e,ae,q),e==="focusout"&&q&&ae.type==="number"&&q.memoizedProps.value!=null&&zm(ae,"number",ae.value)}switch(Gt=q?Mt(q):window,e){case"focusin":(Ym(Gt)||Gt.contentEditable==="true")&&(mv=Gt,hS=q,R1=null);break;case"focusout":R1=hS=mv=null;break;case"mousedown":dS=!0;break;case"contextmenu":case"mouseup":case"dragend":dS=!1,I0(be,r,de);break;case"selectionchange":if(QM)break;case"keydown":case"keyup":I0(be,r,de)}var _t;if(fS)e:{switch(e){case"compositionstart":var mt="onCompositionStart";break e;case"compositionend":mt="onCompositionEnd";break e;case"compositionupdate":mt="onCompositionUpdate";break e}mt=void 0}else gv?Nn(e,r)&&(mt="onCompositionEnd"):e==="keydown"&&r.keyCode===mA&&(mt="onCompositionStart");mt&&(yA&&r.locale!=="ko"&&(gv||mt!=="onCompositionStart"?mt==="onCompositionEnd"&&gv&&(_t=cc()):(vt=de,Jn="value"in vt?vt.value:vt.textContent,gv=!0)),Gt=Xc(q,mt),0<Gt.length&&(mt=new pA(mt,e,null,r,de),be.push({event:mt,listeners:Gt}),_t?mt.data=_t:(_t=dn(r),_t!==null&&(mt.data=_t)))),(_t=$M?jm(e,r):Op(e,r))&&(mt=Xc(q,"onBeforeInput"),0<mt.length&&(Gt=new zM("onBeforeInput","beforeinput",null,r,de),be.push({event:Gt,listeners:mt}),Gt.data=_t)),Ay(be,e,q,r,de)}$c(be,t)})}function Lu(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Xc(e,t){for(var r=t+"Capture",u=[];e!==null;){var g=e,y=g.stateNode;if(g=g.tag,g!==5&&g!==26&&g!==27||y===null||(g=bs(e,r),g!=null&&u.unshift(Lu(e,g,y)),g=bs(e,t),g!=null&&u.push(Lu(e,g,y))),e.tag===3)return u;e=e.return}return[]}function Ou(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function $i(e,t,r,u,g){for(var y=t._reactName,C=[];r!==null&&r!==u;){var O=r,U=O.alternate,q=O.stateNode;if(O=O.tag,U!==null&&U===u)break;O!==5&&O!==26&&O!==27||q===null||(U=q,g?(q=bs(r,y),q!=null&&C.unshift(Lu(r,q,U))):g||(q=bs(r,y),q!=null&&C.push(Lu(r,q,U)))),r=r.return}C.length!==0&&e.push({event:t,listeners:C})}function Ps(e,t){qm(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||T||(T=!0,e==="select"&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var r={registrationNameDependencies:d,possibleRegistrationNames:b};vs(e)||typeof t.is=="string"||y1(e,t,r),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function hi(e,t,r,u){t!==r&&(r=Uo(r),Uo(t)!==r&&(u[e]=t))}function zo(e,t,r){t.forEach(function(u){r[Cy(u)]=u==="style"?Tg(e):e.getAttribute(u)})}function pr(e,t){t===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function Sg(e,t){return e=e.namespaceURI===dv||e.namespaceURI===Xg?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function Uo(e){return Kn(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",Ml(e)),Ai(e)),(typeof e=="string"?e:""+e).replace(bR,`
`).replace(_R,"")}function th(e,t){return t=Uo(t),Uo(e)===t}function zn(e,t,r,u,g,y){switch(r){case"children":typeof u=="string"?(uc(u,t,!1),t==="body"||t==="textarea"&&u===""||mo(e,u)):(typeof u=="number"||typeof u=="bigint")&&(uc(""+u,t,!1),t!=="body"&&mo(e,""+u));break;case"className":ic(e,"class",u);break;case"tabIndex":ic(e,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":ic(e,r,u);break;case"style":Ap(e,u,y);break;case"data":if(t!=="object"){ic(e,"data",u);break}case"src":case"href":if(u===""&&(t!=="a"||r!=="href")){console.error(r==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',r,r),e.removeAttribute(r);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(r);break}Dt(u,r),u=Nh(""+u),e.setAttribute(r,u);break;case"action":case"formAction":if(u!=null&&(t==="form"?r==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof u=="function"&&(g.encType==null&&g.method==null||j_||(j_=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),g.target==null||G_||(G_=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):t==="input"||t==="button"?r==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):t!=="input"||g.type==="submit"||g.type==="image"||q_?t!=="button"||g.type==null||g.type==="submit"||q_?typeof u=="function"&&(g.name==null||ZC||(ZC=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),g.formEncType==null&&g.formMethod==null||j_||(j_=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),g.formTarget==null||G_||(G_=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(q_=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(q_=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(r==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof u=="function"){e.setAttribute(r,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof y=="function"&&(r==="formAction"?(t!=="input"&&zn(e,t,"name",g.name,g,null),zn(e,t,"formEncType",g.formEncType,g,null),zn(e,t,"formMethod",g.formMethod,g,null),zn(e,t,"formTarget",g.formTarget,g,null)):(zn(e,t,"encType",g.encType,g,null),zn(e,t,"method",g.method,g,null),zn(e,t,"target",g.target,g,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(r);break}Dt(u,r),u=Nh(""+u),e.setAttribute(r,u);break;case"onClick":u!=null&&(typeof u!="function"&&pr(r,u),e.onclick=dl);break;case"onScroll":u!=null&&(typeof u!="function"&&pr(r,u),jt("scroll",e));break;case"onScrollEnd":u!=null&&(typeof u!="function"&&pr(r,u),jt("scrollend",e));break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(r=u.__html,r!=null){if(g.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=r}}break;case"multiple":e.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":e.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){e.removeAttribute("xlink:href");break}Dt(u,r),r=Nh(""+u),e.setAttributeNS(g0,"xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?(Dt(u,r),e.setAttribute(r,""+u)):e.removeAttribute(r);break;case"inert":u!==""||Y_[r]||(Y_[r]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",r));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":u&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":u===!0?e.setAttribute(r,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?(Dt(u,r),e.setAttribute(r,u)):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?(Dt(u,r),e.setAttribute(r,u)):e.removeAttribute(r);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?e.removeAttribute(r):(Dt(u,r),e.setAttribute(r,u));break;case"popover":jt("beforetoggle",e),jt("toggle",e),gp(e,"popover",u);break;case"xlinkActuate":ds(e,g0,"xlink:actuate",u);break;case"xlinkArcrole":ds(e,g0,"xlink:arcrole",u);break;case"xlinkRole":ds(e,g0,"xlink:role",u);break;case"xlinkShow":ds(e,g0,"xlink:show",u);break;case"xlinkTitle":ds(e,g0,"xlink:title",u);break;case"xlinkType":ds(e,g0,"xlink:type",u);break;case"xmlBase":ds(e,l2,"xml:base",u);break;case"xmlLang":ds(e,l2,"xml:lang",u);break;case"xmlSpace":ds(e,l2,"xml:space",u);break;case"is":y!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),gp(e,"is",u);break;case"innerText":case"textContent":break;case"popoverTarget":JC||u==null||typeof u!="object"||(JC=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",u));default:!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N"?(r=Hm(r),gp(e,r,u)):d.hasOwnProperty(r)&&u!=null&&typeof u!="function"&&pr(r,u)}}function gr(e,t,r,u,g,y){switch(r){case"style":Ap(e,u,y);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(r=u.__html,r!=null){if(g.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=r}}break;case"children":typeof u=="string"?mo(e,u):(typeof u=="number"||typeof u=="bigint")&&mo(e,""+u);break;case"onScroll":u!=null&&(typeof u!="function"&&pr(r,u),jt("scroll",e));break;case"onScrollEnd":u!=null&&(typeof u!="function"&&pr(r,u),jt("scrollend",e));break;case"onClick":u!=null&&(typeof u!="function"&&pr(r,u),e.onclick=dl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(d.hasOwnProperty(r))u!=null&&typeof u!="function"&&pr(r,u);else e:{if(r[0]==="o"&&r[1]==="n"&&(g=r.endsWith("Capture"),t=r.slice(2,g?r.length-7:void 0),y=e[Ca]||null,y=y!=null?y[r]:null,typeof y=="function"&&e.removeEventListener(t,y,g),typeof u=="function")){typeof y!="function"&&y!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(t,u,g);break e}r in e?e[r]=u:u===!0?e.setAttribute(r,""):gp(e,r,u)}}}function wa(e,t,r){switch(Ps(t,r),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":jt("error",e),jt("load",e);var u=!1,g=!1,y;for(y in r)if(r.hasOwnProperty(y)){var C=r[y];if(C!=null)switch(y){case"src":u=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:zn(e,t,y,C,r,null)}}g&&zn(e,t,"srcSet",r.srcSet,r,null),u&&zn(e,t,"src",r.src,r,null);return;case"input":or("input",r),jt("invalid",e);var O=y=C=g=null,U=null,q=null;for(u in r)if(r.hasOwnProperty(u)){var de=r[u];if(de!=null)switch(u){case"name":g=de;break;case"type":C=de;break;case"checked":U=de;break;case"defaultChecked":q=de;break;case"value":y=de;break;case"defaultValue":O=de;break;case"children":case"dangerouslySetInnerHTML":if(de!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:zn(e,t,u,de,r,null)}}cr(e,r),Rh(e,y,O,U,q,C,g,!1);return;case"select":or("select",r),jt("invalid",e),u=C=y=null;for(g in r)if(r.hasOwnProperty(g)&&(O=r[g],O!=null))switch(g){case"value":y=O;break;case"defaultValue":C=O;break;case"multiple":u=O;default:zn(e,t,g,O,r,null)}vp(e,r),t=y,r=C,e.multiple=!!u,t!=null?ps(e,!!u,t,!1):r!=null&&ps(e,!!u,r,!0);return;case"textarea":or("textarea",r),jt("invalid",e),y=g=u=null;for(C in r)if(r.hasOwnProperty(C)&&(O=r[C],O!=null))switch(C){case"value":u=O;break;case"defaultValue":g=O;break;case"children":y=O;break;case"dangerouslySetInnerHTML":if(O!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:zn(e,t,C,O,r,null)}ac(e,r),bf(e,u,g,y);return;case"option":B0(e,r);for(U in r)r.hasOwnProperty(U)&&(u=r[U],u!=null)&&(U==="selected"?e.selected=u&&typeof u!="function"&&typeof u!="symbol":zn(e,t,U,u,r,null));return;case"dialog":jt("beforetoggle",e),jt("toggle",e),jt("cancel",e),jt("close",e);break;case"iframe":case"object":jt("load",e);break;case"video":case"audio":for(u=0;u<ob.length;u++)jt(ob[u],e);break;case"image":jt("error",e),jt("load",e);break;case"details":jt("toggle",e);break;case"embed":case"source":case"link":jt("error",e),jt("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(q in r)if(r.hasOwnProperty(q)&&(u=r[q],u!=null))switch(q){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:zn(e,t,q,u,r,null)}return;default:if(vs(t)){for(de in r)r.hasOwnProperty(de)&&(u=r[de],u!==void 0&&gr(e,t,de,u,r,void 0));return}}for(O in r)r.hasOwnProperty(O)&&(u=r[O],u!=null&&zn(e,t,O,u,r,null))}function Gr(e,t,r,u){switch(Ps(t,u),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var g=null,y=null,C=null,O=null,U=null,q=null,de=null;for(De in r){var be=r[De];if(r.hasOwnProperty(De)&&be!=null)switch(De){case"checked":break;case"value":break;case"defaultValue":U=be;default:u.hasOwnProperty(De)||zn(e,t,De,null,u,be)}}for(var ae in u){var De=u[ae];if(be=r[ae],u.hasOwnProperty(ae)&&(De!=null||be!=null))switch(ae){case"type":y=De;break;case"name":g=De;break;case"checked":q=De;break;case"defaultChecked":de=De;break;case"value":C=De;break;case"defaultValue":O=De;break;case"children":case"dangerouslySetInnerHTML":if(De!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:De!==be&&zn(e,t,ae,De,u,be)}}t=r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null,u=u.type==="checkbox"||u.type==="radio"?u.checked!=null:u.value!=null,t||!u||PC||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),PC=!0),!t||u||QC||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),QC=!0),Jo(e,C,O,U,q,de,y,g);return;case"select":De=C=O=ae=null;for(y in r)if(U=r[y],r.hasOwnProperty(y)&&U!=null)switch(y){case"value":break;case"multiple":De=U;default:u.hasOwnProperty(y)||zn(e,t,y,null,u,U)}for(g in u)if(y=u[g],U=r[g],u.hasOwnProperty(g)&&(y!=null||U!=null))switch(g){case"value":ae=y;break;case"defaultValue":O=y;break;case"multiple":C=y;default:y!==U&&zn(e,t,g,y,u,U)}u=O,t=C,r=De,ae!=null?ps(e,!!t,ae,!1):!!r!=!!t&&(u!=null?ps(e,!!t,u,!0):ps(e,!!t,t?[]:"",!1));return;case"textarea":De=ae=null;for(O in r)if(g=r[O],r.hasOwnProperty(O)&&g!=null&&!u.hasOwnProperty(O))switch(O){case"value":break;case"children":break;default:zn(e,t,O,null,u,g)}for(C in u)if(g=u[C],y=r[C],u.hasOwnProperty(C)&&(g!=null||y!=null))switch(C){case"value":ae=g;break;case"defaultValue":De=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:g!==y&&zn(e,t,C,g,u,y)}gs(e,ae,De);return;case"option":for(var it in r)ae=r[it],r.hasOwnProperty(it)&&ae!=null&&!u.hasOwnProperty(it)&&(it==="selected"?e.selected=!1:zn(e,t,it,null,u,ae));for(U in u)ae=u[U],De=r[U],u.hasOwnProperty(U)&&ae!==De&&(ae!=null||De!=null)&&(U==="selected"?e.selected=ae&&typeof ae!="function"&&typeof ae!="symbol":zn(e,t,U,ae,u,De));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ot in r)ae=r[ot],r.hasOwnProperty(ot)&&ae!=null&&!u.hasOwnProperty(ot)&&zn(e,t,ot,null,u,ae);for(q in u)if(ae=u[q],De=r[q],u.hasOwnProperty(q)&&ae!==De&&(ae!=null||De!=null))switch(q){case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:zn(e,t,q,ae,u,De)}return;default:if(vs(t)){for(var Ti in r)ae=r[Ti],r.hasOwnProperty(Ti)&&ae!==void 0&&!u.hasOwnProperty(Ti)&&gr(e,t,Ti,void 0,u,ae);for(de in u)ae=u[de],De=r[de],!u.hasOwnProperty(de)||ae===De||ae===void 0&&De===void 0||gr(e,t,de,ae,u,De);return}}for(var _n in r)ae=r[_n],r.hasOwnProperty(_n)&&ae!=null&&!u.hasOwnProperty(_n)&&zn(e,t,_n,null,u,ae);for(be in u)ae=u[be],De=r[be],!u.hasOwnProperty(be)||ae===De||ae==null&&De==null||zn(e,t,be,ae,u,De)}function Cy(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function Tg(e){var t={};e=e.style;for(var r=0;r<e.length;r++){var u=e[r];t[u]=e.getPropertyValue(u)}return t}function Q0(e,t,r){if(t!=null&&typeof t!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var u,g=u="",y;for(y in t)if(t.hasOwnProperty(y)){var C=t[y];C!=null&&typeof C!="boolean"&&C!==""&&(y.indexOf("--")===0?(qa(C,y),u+=g+y+":"+(""+C).trim()):typeof C!="number"||C===0||n_.has(y)?(qa(C,y),u+=g+y.replace(bn,"-$1").toLowerCase().replace(Io,"-ms-")+":"+(""+C).trim()):u+=g+y.replace(bn,"-$1").toLowerCase().replace(Io,"-ms-")+":"+C+"px",g=";")}u=u||null,t=e.getAttribute("style"),t!==u&&(u=Uo(u),Uo(t)!==u&&(r.style=Tg(e)))}}function ra(e,t,r,u,g,y){if(g.delete(r),e=e.getAttribute(r),e===null)switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":return}else if(u!=null)switch(typeof u){case"function":case"symbol":case"boolean":break;default:if(Dt(u,t),e===""+u)return}hi(t,e,u,y)}function xd(e,t,r,u,g,y){if(g.delete(r),e=e.getAttribute(r),e===null){switch(typeof u){case"function":case"symbol":return}if(!u)return}else switch(typeof u){case"function":case"symbol":break;default:if(u)return}hi(t,e,u,y)}function Ld(e,t,r,u,g,y){if(g.delete(r),e=e.getAttribute(r),e===null)switch(typeof u){case"undefined":case"function":case"symbol":return}else if(u!=null)switch(typeof u){case"function":case"symbol":break;default:if(Dt(u,r),e===""+u)return}hi(t,e,u,y)}function Qc(e,t,r,u,g,y){if(g.delete(r),e=e.getAttribute(r),e===null)switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(u))return}else if(u!=null)switch(typeof u){case"function":case"symbol":case"boolean":break;default:if(!isNaN(u)&&(Dt(u,t),e===""+u))return}hi(t,e,u,y)}function wg(e,t,r,u,g,y){if(g.delete(r),e=e.getAttribute(r),e===null)switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":return}else if(u!=null)switch(typeof u){case"function":case"symbol":case"boolean":break;default:if(Dt(u,t),r=Nh(""+u),e===r)return}hi(t,e,u,y)}function xy(e,t,r,u){for(var g={},y=new Set,C=e.attributes,O=0;O<C.length;O++)switch(C[O].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:y.add(C[O].name)}if(vs(t)){for(var U in r)if(r.hasOwnProperty(U)){var q=r[U];if(q!=null){if(d.hasOwnProperty(U))typeof q!="function"&&pr(U,q);else if(r.suppressHydrationWarning!==!0)switch(U){case"children":typeof q!="string"&&typeof q!="number"||hi("children",e.textContent,q,g);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":C=e.innerHTML,q=q?q.__html:void 0,q!=null&&(q=Sg(e,q),hi(U,C,q,g));continue;case"style":y.delete(U),Q0(e,q,g);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":y.delete(U.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",U);continue;case"className":y.delete("class"),C=Zo(e,"class",q),hi("className",C,q,g);continue;default:u.context===op&&t!=="svg"&&t!=="math"?y.delete(U.toLowerCase()):y.delete(U),C=Zo(e,U,q),hi(U,C,q,g)}}}}else for(q in r)if(r.hasOwnProperty(q)&&(U=r[q],U!=null)){if(d.hasOwnProperty(q))typeof U!="function"&&pr(q,U);else if(r.suppressHydrationWarning!==!0)switch(q){case"children":typeof U!="string"&&typeof U!="number"||hi("children",e.textContent,U,g);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":C=e.innerHTML,U=U?U.__html:void 0,U!=null&&(U=Sg(e,U),C!==U&&(g[q]={__html:C}));continue;case"className":ra(e,q,"class",U,y,g);continue;case"tabIndex":ra(e,q,"tabindex",U,y,g);continue;case"style":y.delete(q),Q0(e,U,g);continue;case"multiple":y.delete(q),hi(q,e.multiple,U,g);continue;case"muted":y.delete(q),hi(q,e.muted,U,g);continue;case"autoFocus":y.delete("autofocus"),hi(q,e.autofocus,U,g);continue;case"data":if(t!=="object"){y.delete(q),C=e.getAttribute("data"),hi(q,C,U,g);continue}case"src":case"href":if(!(U!==""||t==="a"&&q==="href"||t==="object"&&q==="data")){console.error(q==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',q,q);continue}wg(e,q,q,U,y,g);continue;case"action":case"formAction":if(C=e.getAttribute(q),typeof U=="function"){y.delete(q.toLowerCase()),q==="formAction"?(y.delete("name"),y.delete("formenctype"),y.delete("formmethod"),y.delete("formtarget")):(y.delete("enctype"),y.delete("method"),y.delete("target"));continue}else if(C===ER){y.delete(q.toLowerCase()),hi(q,"function",U,g);continue}wg(e,q,q.toLowerCase(),U,y,g);continue;case"xlinkHref":wg(e,q,"xlink:href",U,y,g);continue;case"contentEditable":Ld(e,q,"contenteditable",U,y,g);continue;case"spellCheck":Ld(e,q,"spellcheck",U,y,g);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Ld(e,q,q,U,y,g);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":xd(e,q,q.toLowerCase(),U,y,g);continue;case"capture":case"download":e:{O=e;var de=C=q,be=g;if(y.delete(de),O=O.getAttribute(de),O===null)switch(typeof U){case"undefined":case"function":case"symbol":break e;default:if(U===!1)break e}else if(U!=null)switch(typeof U){case"function":case"symbol":break;case"boolean":if(U===!0&&O==="")break e;break;default:if(Dt(U,C),O===""+U)break e}hi(C,O,U,be)}continue;case"cols":case"rows":case"size":case"span":e:{if(O=e,de=C=q,be=g,y.delete(de),O=O.getAttribute(de),O===null)switch(typeof U){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(U)||1>U)break e}else if(U!=null)switch(typeof U){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(U)||1>U)&&(Dt(U,C),O===""+U))break e}hi(C,O,U,be)}continue;case"rowSpan":Qc(e,q,"rowspan",U,y,g);continue;case"start":Qc(e,q,q,U,y,g);continue;case"xHeight":ra(e,q,"x-height",U,y,g);continue;case"xlinkActuate":ra(e,q,"xlink:actuate",U,y,g);continue;case"xlinkArcrole":ra(e,q,"xlink:arcrole",U,y,g);continue;case"xlinkRole":ra(e,q,"xlink:role",U,y,g);continue;case"xlinkShow":ra(e,q,"xlink:show",U,y,g);continue;case"xlinkTitle":ra(e,q,"xlink:title",U,y,g);continue;case"xlinkType":ra(e,q,"xlink:type",U,y,g);continue;case"xmlBase":ra(e,q,"xml:base",U,y,g);continue;case"xmlLang":ra(e,q,"xml:lang",U,y,g);continue;case"xmlSpace":ra(e,q,"xml:space",U,y,g);continue;case"inert":U!==""||Y_[q]||(Y_[q]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",q)),xd(e,q,q,U,y,g);continue;default:if(!(2<q.length)||q[0]!=="o"&&q[0]!=="O"||q[1]!=="n"&&q[1]!=="N"){O=Hm(q),C=!1,u.context===op&&t!=="svg"&&t!=="math"?y.delete(O.toLowerCase()):(de=q.toLowerCase(),de=pv.hasOwnProperty(de)&&pv[de]||null,de!==null&&de!==q&&(C=!0,y.delete(de)),y.delete(O));e:if(de=e,be=O,O=U,nc(be))if(de.hasAttribute(be))de=de.getAttribute(be),Dt(O,be),O=de===""+O?O:de;else{switch(typeof O){case"function":case"symbol":break e;case"boolean":if(de=be.toLowerCase().slice(0,5),de!=="data-"&&de!=="aria-")break e}O=O===void 0?void 0:null}else O=void 0;C||hi(q,O,U,g)}}}return 0<y.size&&r.suppressHydrationWarning!==!0&&zo(e,y,g),Object.keys(g).length===0?null:g}function Ly(e,t){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+t+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+t+" "+e[e.length-1]}}function Ag(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Cg(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,r=performance.getEntriesByType("resource"),u=0;u<r.length;u++){var g=r[u],y=g.transferSize,C=g.initiatorType,O=g.duration;if(y&&O&&Ag(C)){for(C=0,O=g.responseEnd,u+=1;u<r.length;u++){var U=r[u],q=U.startTime;if(q>O)break;var de=U.transferSize,be=U.initiatorType;de&&Ag(be)&&(U=U.responseEnd,C+=de*(U<O?1:(O-q)/(U-q)))}if(--u,t+=8*(y+C)/(g.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}function nh(e){return e.nodeType===9?e:e.ownerDocument}function P0(e){switch(e){case Xg:return Gv;case dv:return $_;default:return op}}function Z0(e,t){if(e===op)switch(t){case"svg":return Gv;case"math":return $_;default:return op}return e===Gv&&t==="foreignObject"?op:e}function ih(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function J0(){var e=window.event;return e&&e.type==="popstate"?e===c2?!1:(c2=e,!0):(c2=null,!1)}function ah(){var e=window.event;return e&&e!==fb?e.type:null}function Zs(){var e=window.event;return e&&e!==fb?e.timeStamp:-1.1}function xg(e){setTimeout(function(){throw e})}function K0(e,t,r){switch(t){case"button":case"input":case"select":case"textarea":r.autoFocus&&e.focus();break;case"img":r.src?e.src=r.src:r.srcSet&&(e.srcset=r.srcSet)}}function F0(){}function W0(e,t,r,u){Gr(e,t,r,u),e[Ca]=u}function Oy(e){mo(e,"")}function ev(e,t,r){e.nodeValue=r}function Dy(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[Ca]||null;if(t!==null){var r=ut(e);r!==null&&(typeof t.children=="string"||typeof t.children=="number"?(e.__reactWarnedAboutChildrenConflict=!0,tt(r,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):t.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,tt(r,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function Fl(e){return e==="head"}function Od(e,t){e.removeChild(t)}function tv(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function Mn(e,t){var r=t,u=0;do{var g=r.nextSibling;if(e.removeChild(r),g&&g.nodeType===8)if(r=g.data,r===cb||r===V_){if(u===0){e.removeChild(g),Aa(t);return}u--}else if(r===ub||r===dm||r===y0||r===qv||r===m0)u++;else if(r===TR)Kc(e.ownerDocument.documentElement);else if(r===AR){r=e.ownerDocument.head,Kc(r);for(var y=r.firstChild;y;){var C=y.nextSibling,O=y.nodeName;y[l]||O==="SCRIPT"||O==="STYLE"||O==="LINK"&&y.rel.toLowerCase()==="stylesheet"||r.removeChild(y),y=C}}else r===wR&&Kc(e.ownerDocument.body);r=g}while(r);Aa(t)}function Dd(e,t){var r=e;e=0;do{var u=r.nextSibling;if(r.nodeType===1?t?(r._stashedDisplay=r.style.display,r.style.display="none"):(r.style.display=r._stashedDisplay||"",r.getAttribute("style")===""&&r.removeAttribute("style")):r.nodeType===3&&(t?(r._stashedText=r.nodeValue,r.nodeValue=""):r.nodeValue=r._stashedText||""),u&&u.nodeType===8)if(r=u.data,r===cb){if(e===0)break;e--}else r!==ub&&r!==dm&&r!==y0&&r!==qv||e++;r=u}while(r)}function My(e){Dd(e,!0)}function Ry(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none"}function nv(e){e.nodeValue=""}function iv(e){Dd(e,!1)}function av(e,t){t=t[CR],t=t!=null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t=="boolean"?"":(""+t).trim()}function Lg(e,t){e.nodeValue=t}function Du(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var r=t;switch(t=t.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":Du(r),Xe(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function Ny(e,t,r,u){for(;e.nodeType===1;){var g=r;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!u&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(u){if(!e[l])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(y=e.getAttribute("rel"),y==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(y!==g.rel||e.getAttribute("href")!==(g.href==null||g.href===""?null:g.href)||e.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin)||e.getAttribute("title")!==(g.title==null?null:g.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(y=e.getAttribute("src"),(y!==(g.src==null?null:g.src)||e.getAttribute("type")!==(g.type==null?null:g.type)||e.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&y&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){Dt(g.name,"name");var y=g.name==null?null:""+g.name;if(g.type==="hidden"&&e.getAttribute("name")===y)return e}else return e;if(e=jr(e.nextSibling),e===null)break}return null}function Pc(e,t,r){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=jr(e.nextSibling),e===null))return null;return e}function Zc(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=jr(e.nextSibling),e===null))return null;return e}function Js(e){return e.data===dm||e.data===y0}function Al(e){return e.data===qv||e.data===dm&&e.ownerDocument.readyState!==FC}function Jc(e,t){var r=e.ownerDocument;if(e.data===y0)e._reactRetry=t;else if(e.data!==dm||r.readyState!==FC)t();else{var u=function(){t(),r.removeEventListener("DOMContentLoaded",u)};r.addEventListener("DOMContentLoaded",u),e._reactRetry=u}}function jr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===ub||t===qv||t===dm||t===y0||t===m0||t===s2||t===KC)break;if(t===cb||t===V_)return null}}return e}function ky(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),r={},u=e.attributes,g=0;g<u.length;g++){var y=u[g];r[Cy(y.name)]=y.name.toLowerCase()==="style"?Tg(e):y.value}return{type:t,props:r}}return e.nodeType===8?e.data===m0?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function zy(e,t,r){return r===null||r[SR]!==!0?(e.nodeValue===t?e=null:(t=Uo(t),e=Uo(e.nodeValue)===t?null:e.nodeValue),e):null}function Og(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r===cb||r===V_){if(t===0)return jr(e.nextSibling);t--}else r!==ub&&r!==qv&&r!==dm&&r!==y0&&r!==m0||t++}e=e.nextSibling}return null}function Uy(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r===ub||r===qv||r===dm||r===y0||r===m0){if(t===0)return e;t--}else r!==cb&&r!==V_||t++}e=e.previousSibling}return null}function _1(e){Aa(e)}function By(e){Aa(e)}function rv(e){Aa(e)}function Hy(e,t,r,u,g){switch(g&&Sf(e,u.ancestorInfo),t=nh(r),e){case"html":if(e=t.documentElement,!e)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(e=t.head,!e)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(e=t.body,!e)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function E1(e,t,r,u){if(!r[ts]&&ut(r)){var g=r.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",g,g,g)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(g=r.attributes;g.length;)r.removeAttributeNode(g[0]);wa(r,e,t),r[la]=u,r[Ca]=t}function Kc(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Xe(e)}function rh(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function lh(e,t,r){var u=jv;if(u&&typeof t=="string"&&t){var g=In(t);g='link[rel="'+e+'"][href="'+g+'"]',typeof r=="string"&&(g+='[crossorigin="'+r+'"]'),ax.has(g)||(ax.add(g),e={rel:e,crossOrigin:r,href:t},u.querySelector(g)===null&&(t=u.createElement("link"),wa(t,"link",e),Ct(t),u.head.appendChild(t)))}}function Cl(e,t,r,u){var g=(g=Nu.current)?rh(g):null;if(!g)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(r=Xt(r.href),t=bt(g).hoistableStyles,u=t.get(r),u||(u={type:"style",instance:null,count:0,state:null},t.set(r,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=Xt(r.href);var y=bt(g).hoistableStyles,C=y.get(e);if(!C&&(g=g.ownerDocument||g,C={type:"stylesheet",instance:null,count:0,state:{loading:b0,preload:null}},y.set(e,C),(y=g.querySelector(ll(e)))&&!y._p&&(C.instance=y,C.state.loading=hb|Qu),!Pu.has(e))){var O={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy};Pu.set(e,O),y||Iy(g,e,O,C.state)}if(t&&u===null)throw r=`

  - `+Md(t)+`
  + `+Md(r),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+r);return C}if(t&&u!==null)throw r=`

  - `+Md(t)+`
  + `+Md(r),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+r);return null;case"script":return t=r.async,r=r.src,typeof r=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(r=Xi(r),t=bt(g).hoistableScripts,u=t.get(r),u||(u={type:"script",instance:null,count:0,state:null},t.set(r,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function Md(e){var t=0,r="<link";return typeof e.rel=="string"?(t++,r+=' rel="'+e.rel+'"'):Ll.call(e,"rel")&&(t++,r+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href=="string"?(t++,r+=' href="'+e.href+'"'):Ll.call(e,"href")&&(t++,r+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence=="string"?(t++,r+=' precedence="'+e.precedence+'"'):Ll.call(e,"precedence")&&(t++,r+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(r+=" ..."),r+" />"}function Xt(e){return'href="'+In(e)+'"'}function ll(e){return'link[rel="stylesheet"]['+e+"]"}function Nt(e){return Bt({},e,{"data-precedence":e.precedence,precedence:null})}function Iy(e,t,r,u){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?u.loading=hb:(t=e.createElement("link"),u.preload=t,t.addEventListener("load",function(){return u.loading|=hb}),t.addEventListener("error",function(){return u.loading|=nx}),wa(t,"link",r),Ct(t),e.head.appendChild(t))}function Xi(e){return'[src="'+In(e)+'"]'}function Zn(e){return"script[async]"+e}function sh(e,t,r){if(t.count++,t.instance===null)switch(t.type){case"style":var u=e.querySelector('style[data-href~="'+In(r.href)+'"]');if(u)return t.instance=u,Ct(u),u;var g=Bt({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return u=(e.ownerDocument||e).createElement("style"),Ct(u),wa(u,"style",g),Yr(u,r.precedence,e),t.instance=u;case"stylesheet":g=Xt(r.href);var y=e.querySelector(ll(g));if(y)return t.state.loading|=Qu,t.instance=y,Ct(y),y;u=Nt(r),(g=Pu.get(g))&&qy(u,g),y=(e.ownerDocument||e).createElement("link"),Ct(y);var C=y;return C._p=new Promise(function(O,U){C.onload=O,C.onerror=U}),wa(y,"link",u),t.state.loading|=Qu,Yr(y,r.precedence,e),t.instance=y;case"script":return y=Xi(r.src),(g=e.querySelector(Zn(y)))?(t.instance=g,Ct(g),g):(u=r,(g=Pu.get(y))&&(u=Bt({},r),Dg(u,g)),e=e.ownerDocument||e,g=e.createElement("script"),Ct(g),wa(g,"link",u),e.head.appendChild(g),t.instance=g);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+t.type+'". this is a bug in React.')}else t.type==="stylesheet"&&(t.state.loading&Qu)===b0&&(u=t.instance,t.state.loading|=Qu,Yr(u,r.precedence,e));return t.instance}function Yr(e,t,r){for(var u=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=u.length?u[u.length-1]:null,y=g,C=0;C<u.length;C++){var O=u[C];if(O.dataset.precedence===t)y=O;else if(y!==g)break}y?y.parentNode.insertBefore(e,y.nextSibling):(t=r.nodeType===9?r.head:r,t.insertBefore(e,t.firstChild))}function qy(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Dg(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}function lv(e,t,r){if(X_===null){var u=new Map,g=X_=new Map;g.set(r,u)}else g=X_,u=g.get(r),u||(u=new Map,g.set(r,u));if(u.has(e))return u;for(u.set(e,null),r=r.getElementsByTagName(e),g=0;g<r.length;g++){var y=r[g];if(!(y[l]||y[la]||e==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!==Xg){var C=y.getAttribute(t)||"";C=e+C;var O=u.get(C);O?O.push(y):u.set(C,[y])}}return u}function sv(e,t,r){e=e.ownerDocument||e,e.head.insertBefore(r,t==="title"?e.querySelector("head > title"):null)}function ov(e,t,r){var u=!r.ancestorInfo.containerTagInScope;if(r.context===Gv||t.itemProp!=null)return!u||t.itemProp==null||e!=="meta"&&e!=="title"&&e!=="style"&&e!=="link"&&e!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href===""){u&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags.  Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError){if(t.rel==="stylesheet"&&typeof t.precedence=="string"){e=t.href;var g=t.onError,y=t.disabled;r=[],t.onLoad&&r.push("`onLoad`"),g&&r.push("`onError`"),y!=null&&r.push("`disabled`"),g=Ly(r,"and"),g+=r.length===1?" prop":" props",y=r.length===1?"an "+g:"the "+g,r.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,y,g)}u&&(typeof t.rel!="string"||typeof t.href!="string"||t.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}return t.rel==="stylesheet"?(e=t.precedence,t=t.disabled,typeof e!="string"&&u&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof e=="string"&&t==null):!0;case"script":if(e=t.async&&typeof t.async!="function"&&typeof t.async!="symbol",!e||t.onLoad||t.onError||!t.src||typeof t.src!="string"){u&&(e?t.onLoad||t.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":u&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function Rd(e){return!(e.type==="stylesheet"&&(e.state.loading&ix)===b0)}function Xn(e,t,r,u){if(r.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(r.state.loading&Qu)===b0){if(r.instance===null){var g=Xt(u.href),y=t.querySelector(ll(g));if(y){t=y._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ii.bind(e),t.then(e,e)),r.state.loading|=Qu,r.instance=y,Ct(y);return}y=t.ownerDocument||t,u=Nt(u),(g=Pu.get(g))&&qy(u,g),y=y.createElement("link"),Ct(y);var C=y;C._p=new Promise(function(O,U){C.onload=O,C.onerror=U}),wa(y,"link",u),r.instance=y}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(r,t),(t=r.state.preload)&&(r.state.loading&ix)===b0&&(e.count++,r=Ii.bind(e),t.addEventListener("load",r),t.addEventListener("error",r))}}function Wl(e,t){return e.stylesheets&&e.count===0&&Fc(e,e.stylesheets),0<e.count||0<e.imgCount?function(r){var u=setTimeout(function(){if(e.stylesheets&&Fc(e,e.stylesheets),e.unsuspend){var y=e.unsuspend;e.unsuspend=null,y()}},OR+t);0<e.imgBytes&&h2===0&&(h2=125*Cg()*MR);var g=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Fc(e,e.stylesheets),e.unsuspend)){var y=e.unsuspend;e.unsuspend=null,y()}},(e.imgBytes>h2?50:DR)+t);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(u),clearTimeout(g)}}:null}function Ii(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Fc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function Fc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Q_=new Map,t.forEach(di,e),Q_=null,Ii.call(e))}function di(e,t){if(!(t.state.loading&Qu)){var r=Q_.get(e);if(r)var u=r.get(d2);else{r=new Map,Q_.set(e,r);for(var g=e.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<g.length;y++){var C=g[y];(C.nodeName==="LINK"||C.getAttribute("media")!=="not all")&&(r.set(C.dataset.precedence,C),u=C)}u&&r.set(d2,u)}g=t.instance,C=g.getAttribute("data-precedence"),y=r.get(C)||u,y===u&&r.set(d2,g),r.set(C,g),this.count++,u=Ii.bind(this),g.addEventListener("load",u),g.addEventListener("error",u),y?y.parentNode.insertBefore(g,y.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(g,e.firstChild)),t.state.loading|=Qu}}function Li(e,t,r,u,g,y,C,O,U){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=v0,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ji(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ji(0),this.hiddenUpdates=ji(null),this.identifierPrefix=u,this.onUncaughtError=g,this.onCaughtError=y,this.onRecoverableError=C,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=U,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],t=0;31>t;t++)e.push(new Set);this._debugRootType=r?"hydrateRoot()":"createRoot()"}function Nd(e,t,r,u,g,y,C,O,U,q,de,be){return e=new Li(e,t,r,C,U,q,de,be,O),t=nR,y===!0&&(t|=Ol|nf),t|=Wt,y=D(3,null,null,t),e.current=y,y.stateNode=e,t=pn(),ws(t),e.pooledCache=t,ws(t),y.memoizedState={element:u,isDehydrated:r,cache:t},Vh(y),e}function Mg(e){return e?(e=Kg,e):Kg}function oh(e,t,r,u,g,y){if(Pi&&typeof Pi.onScheduleFiberRoot=="function")try{Pi.onScheduleFiberRoot(eo,u,r)}catch(C){Ua||(Ua=!0,console.error("React instrumentation encountered an error: %o",C))}g=Mg(g),u.context===null?u.context=g:u.pendingContext=g,xl&&$r!==null&&!ox&&(ox=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.

Check the render method of %s.`,me($r)||"Unknown")),u=Vi(t),u.payload={element:r},y=y===void 0?null:y,y!==null&&(typeof y!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",y),u.callback=y),r=Va(e,u,t),r!==null&&(fr(t,"root.render()",null),ti(r,e,t),j(r,e,t))}function Gy(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Rg(e,t){Gy(e,t),(e=e.alternate)&&Gy(e,t)}function Ng(e){if(e.tag===13||e.tag===31){var t=Wi(e,67108864);t!==null&&ti(t,e,67108864),Rg(e,67108864)}}function kg(e){if(e.tag===13||e.tag===31){var t=ei(e);t=ve(t);var r=Wi(e,t);r!==null&&ti(r,e,t),Rg(e,t)}}function uv(){return $r}function uh(e,t,r,u){var g=Ce.T;Ce.T=null;var y=Ht.p;try{Ht.p=ol,zg(e,t,r,u)}finally{Ht.p=y,Ce.T=g}}function jy(e,t,r,u){var g=Ce.T;Ce.T=null;var y=Ht.p;try{Ht.p=Xr,zg(e,t,r,u)}finally{Ht.p=y,Ce.T=g}}function zg(e,t,r,u){if(Z_){var g=Ug(u);if(g===null)Eg(e,t,u,J_,r),Mu(e,u);else if(Yy(g,e,t,r,u))u.stopPropagation();else if(Mu(e,u),t&4&&-1<NR.indexOf(e)){for(;g!==null;){var y=ut(g);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var C=La(y.pendingLanes);if(C!==0){var O=y;for(O.pendingLanes|=2,O.entangledLanes|=2;C;){var U=1<<31-Ja(C);O.entanglements[1]|=U,C&=~U}ln(y),(Rn&(_r|Vo))===Zr&&(R_=Qi()+UC,Pt(0,!1))}}break;case 31:case 13:O=Wi(y,2),O!==null&&ti(O,y,2),rl(),Rg(y,2)}if(y=Ug(u),y===null&&Eg(e,t,u,J_,r),y===g)break;g=y}g!==null&&u.stopPropagation()}else Eg(e,t,u,null,r)}}function Ug(e){return e=pl(e),ch(e)}function ch(e){if(J_=null,e=Ze(e),e!==null){var t=pe(e);if(t===null)e=null;else{var r=t.tag;if(r===13){if(e=Te(t),e!==null)return e;e=null}else if(r===31){if(e=Se(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return J_=e,null}function qi(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return ol;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return Xr;case"message":switch(Fy()){case vh:return ol;case Vd:return Xr;case ef:case Wy:return ul;case Ws:return Pd;default:return ul}default:return ul}}function Mu(e,t){switch(e){case"focusin":case"focusout":pm=null;break;case"dragenter":case"dragleave":gm=null;break;case"mouseover":case"mouseout":mm=null;break;case"pointerover":case"pointerout":pb.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":gb.delete(t.pointerId)}}function fh(e,t,r,u,g,y){return e===null||e.nativeEvent!==y?(e={blockedOn:t,domEventName:r,eventSystemFlags:u,nativeEvent:y,targetContainers:[g]},t!==null&&(t=ut(t),t!==null&&Ng(t)),e):(e.eventSystemFlags|=u,t=e.targetContainers,g!==null&&t.indexOf(g)===-1&&t.push(g),e)}function Yy(e,t,r,u,g){switch(t){case"focusin":return pm=fh(pm,e,t,r,u,g),!0;case"dragenter":return gm=fh(gm,e,t,r,u,g),!0;case"mouseover":return mm=fh(mm,e,t,r,u,g),!0;case"pointerover":var y=g.pointerId;return pb.set(y,fh(pb.get(y)||null,e,t,r,u,g)),!0;case"gotpointercapture":return y=g.pointerId,gb.set(y,fh(gb.get(y)||null,e,t,r,u,g)),!0}return!1}function cv(e){var t=Ze(e.target);if(t!==null){var r=pe(t);if(r!==null){if(t=r.tag,t===13){if(t=Te(r),t!==null){e.blockedOn=t,ge(e.priority,function(){kg(r)});return}}else if(t===31){if(t=Se(r),t!==null){e.blockedOn=t,ge(e.priority,function(){kg(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Bg(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Ug(e.nativeEvent);if(r===null){r=e.nativeEvent;var u=new r.constructor(r.type,r),g=u;Pe!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Pe=g,r.target.dispatchEvent(u),Pe===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Pe=null}else return t=ut(r),t!==null&&Ng(t),e.blockedOn=r,!1;t.shift()}return!0}function Vy(e,t,r){Bg(e)&&r.delete(t)}function Hg(){p2=!1,pm!==null&&Bg(pm)&&(pm=null),gm!==null&&Bg(gm)&&(gm=null),mm!==null&&Bg(mm)&&(mm=null),pb.forEach(Vy),gb.forEach(Vy)}function Vr(e,t){e.blockedOn===t&&(e.blockedOn=null,p2||(p2=!0,pi.unstable_scheduleCallback(pi.unstable_NormalPriority,Hg)))}function Qt(e){K_!==e&&(K_=e,pi.unstable_scheduleCallback(pi.unstable_NormalPriority,function(){K_===e&&(K_=null);for(var t=0;t<e.length;t+=3){var r=e[t],u=e[t+1],g=e[t+2];if(typeof u!="function"){if(ch(u||r)===null)continue;break}var y=ut(r);y!==null&&(e.splice(t,3),t-=3,r={pending:!0,data:g,method:r.method,action:u},Object.freeze(r),ed(y,r,u,g))}}))}function Aa(e){function t(U){return Vr(U,e)}pm!==null&&Vr(pm,e),gm!==null&&Vr(gm,e),mm!==null&&Vr(mm,e),pb.forEach(t),gb.forEach(t);for(var r=0;r<ym.length;r++){var u=ym[r];u.blockedOn===e&&(u.blockedOn=null)}for(;0<ym.length&&(r=ym[0],r.blockedOn===null);)cv(r),r.blockedOn===null&&ym.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(u=0;u<r.length;u+=3){var g=r[u],y=r[u+1],C=g[Ca]||null;if(typeof y=="function")C||Qt(r);else if(C){var O=null;if(y&&y.hasAttribute("formAction")){if(g=y,C=y[Ca]||null)O=C.formAction;else if(ch(g)!==null)continue}else O=C.action;typeof O=="function"?r[u+1]=O:(r.splice(u,3),u-=3),Qt(r)}}}function mr(){function e(y){y.canIntercept&&y.info==="react-transition"&&y.intercept({handler:function(){return new Promise(function(C){return g=C})},focusReset:"manual",scroll:"manual"})}function t(){g!==null&&(g(),g=null),u||setTimeout(r,20)}function r(){if(!u&&!navigation.transition){var y=navigation.currentEntry;y&&y.url!=null&&navigation.navigate(y.url,{state:y.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,g=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(r,100),function(){u=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),g!==null&&(g(),g=null)}}}function kd(e){this._internalRoot=e}function zd(e){this._internalRoot=e}function wn(e){e[ts]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var pi=iA(),yr=$v(),$y=aA(),Bt=Object.assign,Bo=Symbol.for("react.element"),Ks=Symbol.for("react.transitional.element"),hh=Symbol.for("react.portal"),es=Symbol.for("react.fragment"),Ud=Symbol.for("react.strict_mode"),Xy=Symbol.for("react.profiler"),Qy=Symbol.for("react.consumer"),Fs=Symbol.for("react.context"),Bd=Symbol.for("react.forward_ref"),Py=Symbol.for("react.suspense"),Zy=Symbol.for("react.suspense_list"),Ig=Symbol.for("react.memo"),Za=Symbol.for("react.lazy"),Ru=Symbol.for("react.activity"),Wc=Symbol.for("react.memo_cache_sentinel"),Jy=Symbol.iterator,S1=Symbol.for("react.client.reference"),gi=Array.isArray,Ce=yr.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ht=$y.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,qg=Object.freeze({pending:!1,data:null,method:null,action:null}),Hd=[],Id=[],sl=-1,Ho=ne(null),dh=ne(null),Nu=ne(null),ph=ne(null),qd=0,Gg,fv,gh,mh,Gd,hv,yh;et.__reactDisabledLog=!0;var Ky,ku,jg=!1,Yg=new(typeof WeakMap=="function"?WeakMap:Map),$r=null,xl=!1,Ll=Object.prototype.hasOwnProperty,jd=pi.unstable_scheduleCallback,Yd=pi.unstable_cancelCallback,T1=pi.unstable_shouldYield,w1=pi.unstable_requestPaint,Qi=pi.unstable_now,Fy=pi.unstable_getCurrentPriorityLevel,vh=pi.unstable_ImmediatePriority,Vd=pi.unstable_UserBlockingPriority,ef=pi.unstable_NormalPriority,Wy=pi.unstable_LowPriority,Ws=pi.unstable_IdlePriority,zu=pi.log,Uu=pi.unstable_setDisableYieldValue,eo=null,Pi=null,Ua=!1,to=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",Ja=Math.clz32?Math.clz32:fa,$d=Math.log,A1=Math.LN2,Xd=256,tf=262144,Qd=4194304,ol=2,Xr=8,ul=32,Pd=268435456,vr=Math.random().toString(36).slice(2),la="__reactFiber$"+vr,Ca="__reactProps$"+vr,ts="__reactContainer$"+vr,Vg="__reactEvents$"+vr,C1="__reactListeners$"+vr,bh="__reactHandles$"+vr,n="__reactResources$"+vr,l="__reactMarker$"+vr,o=new Set,d={},b={},A={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},z=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),V={},oe={},Le=/[\n"\\]/g,je=!1,Qe=!1,Oe=!1,Ue=!1,dt=!1,St=!1,Un=["value","defaultValue"],Ee=!1,he=/["'&<>\n\t]|^\s|\s$/,xe="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),Ve="applet caption html table td th marquee object template foreignObject desc title".split(" "),yt=Ve.concat(["button"]),An="dd dt li option optgroup p rp rt".split(" "),gt={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},It={},Ft={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},bn=/([A-Z])/g,Io=/^ms-/,x1=/^(?:webkit|moz|o)[A-Z]/,sS=/^-ms-/,oS=/-(.)/g,Wb=/;\s*$/,$g={},L1={},e_=!1,t_=!1,n_=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),dv="http://www.w3.org/1998/Math/MathML",Xg="http://www.w3.org/2000/svg",uS=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),pv={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},i_={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},Qg={},c=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),p=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),T=!1,M={},H=/^on./,Q=/^on[^A-Z]/,le=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ce=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),we=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,Pe=null,$e=null,We=null,ct=!1,ft=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Tt=!1;if(ft)try{var zt={};Object.defineProperty(zt,"passive",{get:function(){Tt=!0}}),window.addEventListener("test",zt,zt),window.removeEventListener("test",zt,zt)}catch{Tt=!1}var vt=null,Jn=null,on=null,sa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ns=da(sa),no=Bt({},sa,{view:0,detail:0}),oa=da(no),is,qo,Pg,a_=Bt({},no,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kh,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Pg&&(Pg&&e.type==="mousemove"?(is=e.screenX-Pg.screenX,qo=e.screenY-Pg.screenY):qo=is=0,Pg=e),is)},movementY:function(e){return"movementY"in e?e.movementY:qo}}),dA=da(a_),RM=da(Bt({},a_,{dataTransfer:0})),cS=da(Bt({},no,{relatedTarget:0})),NM=da(Bt({},sa,{animationName:0,elapsedTime:0,pseudoElement:0})),kM=da(Bt({},sa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),pA=da(Bt({},sa,{data:0})),zM=pA,UM={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},BM={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},HM={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},IM=da(Bt({},no,{key:function(e){if(e.key){var t=UM[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=fc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?BM[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kh,charCode:function(e){return e.type==="keypress"?fc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?fc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}})),gA=da(Bt({},a_,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),qM=da(Bt({},no,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kh})),GM=da(Bt({},sa,{propertyName:0,elapsedTime:0,pseudoElement:0})),jM=da(Bt({},a_,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),YM=da(Bt({},sa,{newState:0,oldState:0})),VM=[9,13,27,32],mA=229,fS=ft&&"CompositionEvent"in window,O1=null;ft&&"documentMode"in document&&(O1=document.documentMode);var $M=ft&&"TextEvent"in window&&!O1,yA=ft&&(!fS||O1&&8<O1&&11>=O1),vA=32,bA=String.fromCharCode(vA),_A=!1,gv=!1,XM={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},D1=null,M1=null,EA=!1;ft&&(EA=Dp("input")&&(!document.documentMode||9<document.documentMode));var as=typeof Object.is=="function"?Object.is:Bh,QM=ft&&"documentMode"in document&&11>=document.documentMode,mv=null,hS=null,R1=null,dS=!1,yv={animationend:Fi("Animation","AnimationEnd"),animationiteration:Fi("Animation","AnimationIteration"),animationstart:Fi("Animation","AnimationStart"),transitionrun:Fi("Transition","TransitionRun"),transitionstart:Fi("Transition","TransitionStart"),transitioncancel:Fi("Transition","TransitionCancel"),transitionend:Fi("Transition","TransitionEnd")},pS={},SA={};ft&&(SA=document.createElement("div").style,"AnimationEvent"in window||(delete yv.animationend.animation,delete yv.animationiteration.animation,delete yv.animationstart.animation),"TransitionEvent"in window||delete yv.transitionend.transition);var TA=pc("animationend"),wA=pc("animationiteration"),AA=pc("animationstart"),PM=pc("transitionrun"),ZM=pc("transitionstart"),JM=pc("transitioncancel"),CA=pc("transitionend"),xA=new Map,gS="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");gS.push("scrollEnd");var LA=0;if(typeof performance=="object"&&typeof performance.now=="function")var KM=performance,OA=function(){return KM.now()};else{var FM=Date;OA=function(){return FM.now()}}var mS=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof Ki=="object"&&typeof Ki.emit=="function"){Ki.emit("uncaughtException",e);return}console.error(e)},WM="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",r_=0,yS=1,vS=2,bS=3,l_="– ",s_="+ ",DA="  ",Oi=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",Bu="Components ⚛",un="Scheduler ⚛",hn="Blocking",Zg=!1,Zd={color:"primary",properties:null,tooltipText:"",track:Bu},Jg={start:-0,end:-0,detail:{devtools:Zd}},eR=["Changed Props",""],MA="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",tR=["Changed Props",MA],N1=1,Jd=2,Hu=[],vv=0,_S=0,Kg={};Object.freeze(Kg);var Iu=null,bv=null,Ut=0,nR=1,Wt=2,Ol=8,nf=16,iR=32,RA=!1;try{Object.preventExtensions({})}catch{RA=!0}var ES=new WeakMap,_v=[],Ev=0,o_=null,k1=0,qu=[],Gu=0,e0=null,Kd=1,Fd="",cl=null,Di=null,gn=!1,_h=!1,Go=null,Fg=null,ju=!1,SS=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),TS=ne(null),wS=ne(null),NA={},u_=null,Sv=null,Tv=!1,aR=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(r,u){e.push(u)}};this.abort=function(){t.aborted=!0,e.forEach(function(r){return r()})}},rR=pi.unstable_scheduleCallback,lR=pi.unstable_NormalPriority,Ka={$$typeof:Fs,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Fa=pi.unstable_now,c_=console.createTask?console.createTask:function(){return null},z1=1,f_=2,Qr=-0,Wg=-0,Wd=-0,ep=null,rs=-1.1,t0=-0,Zi=-0,wt=-1.1,Ot=-1.1,Gi=null,ua=!1,em=-0,Eh=-1.1,U1=null,tm=0,AS=null,CS=null,n0=-1.1,B1=null,wv=-1.1,h_=-1.1,Sh=-0,tp=-1.1,Yu=-1.1,xS=0,H1=null,kA=null,zA=null,nm=-1.1,i0=null,im=-1.1,d_=-1.1,UA=-0,BA=-0,p_=0,np=null,HA=0,I1=-1.1,g_=!1,m_=!1,q1=null,LS=0,a0=0,Av=null,IA=Ce.S;Ce.S=function(e,t){if(kC=Qi(),typeof t=="object"&&t!==null&&typeof t.then=="function"){if(0>tp&&0>Yu){tp=Fa();var r=Zs(),u=ah();(r!==im||u!==i0)&&(im=-1.1),nm=r,i0=u}Ec(e,t)}IA!==null&&IA(e,t)};var r0=ne(null),af={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},G1=[],j1=[],Y1=[],V1=[],$1=[],X1=[],l0=new Set;af.recordUnsafeLifecycleWarnings=function(e,t){l0.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&G1.push(e),e.mode&Ol&&typeof t.UNSAFE_componentWillMount=="function"&&j1.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Y1.push(e),e.mode&Ol&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&V1.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&$1.push(e),e.mode&Ol&&typeof t.UNSAFE_componentWillUpdate=="function"&&X1.push(e))},af.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<G1.length&&(G1.forEach(function(O){e.add(me(O)||"Component"),l0.add(O.type)}),G1=[]);var t=new Set;0<j1.length&&(j1.forEach(function(O){t.add(me(O)||"Component"),l0.add(O.type)}),j1=[]);var r=new Set;0<Y1.length&&(Y1.forEach(function(O){r.add(me(O)||"Component"),l0.add(O.type)}),Y1=[]);var u=new Set;0<V1.length&&(V1.forEach(function(O){u.add(me(O)||"Component"),l0.add(O.type)}),V1=[]);var g=new Set;0<$1.length&&($1.forEach(function(O){g.add(me(O)||"Component"),l0.add(O.type)}),$1=[]);var y=new Set;if(0<X1.length&&(X1.forEach(function(O){y.add(me(O)||"Component"),l0.add(O.type)}),X1=[]),0<t.size){var C=x(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.

* Move code with side effects to componentDidMount, and set initial state in the constructor.

Please update the following components: %s`,C)}0<u.size&&(C=x(u),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.

* Move data fetching code or side effects to componentDidUpdate.
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state

Please update the following components: %s`,C)),0<y.size&&(C=x(y),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.

* Move data fetching code or side effects to componentDidUpdate.

Please update the following components: %s`,C)),0<e.size&&(C=x(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.

* Move code with side effects to componentDidMount, and set initial state in the constructor.
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.

Please update the following components: %s`,C)),0<r.size&&(C=x(r),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.

* Move data fetching code or side effects to componentDidUpdate.
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.

Please update the following components: %s`,C)),0<g.size&&(C=x(g),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.

* Move data fetching code or side effects to componentDidUpdate.
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.

Please update the following components: %s`,C))};var y_=new Map,qA=new Set;af.recordLegacyContextWarning=function(e,t){for(var r=null,u=e;u!==null;)u.mode&Ol&&(r=u),u=u.return;r===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!qA.has(e.type)&&(u=y_.get(r),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(u===void 0&&(u=[],y_.set(r,u)),u.push(e))},af.flushLegacyContextWarning=function(){y_.forEach(function(e){if(e.length!==0){var t=e[0],r=new Set;e.forEach(function(g){r.add(me(g)||"Component"),qA.add(g.type)});var u=x(r);tt(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.

The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.

Please update the following components: %s

Learn more about this warning here: https://react.dev/link/legacy-context`,u)})}})},af.discardPendingWarnings=function(){G1=[],j1=[],Y1=[],V1=[],$1=[],X1=[],y_=new Map};var GA={react_stack_bottom_frame:function(e,t,r){var u=xl;xl=!0;try{return e(t,r)}finally{xl=u}}},OS=GA.react_stack_bottom_frame.bind(GA),jA={react_stack_bottom_frame:function(e){var t=xl;xl=!0;try{return e.render()}finally{xl=t}}},YA=jA.react_stack_bottom_frame.bind(jA),VA={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(r){rn(e,e.return,r)}}},DS=VA.react_stack_bottom_frame.bind(VA),$A={react_stack_bottom_frame:function(e,t,r,u,g){try{t.componentDidUpdate(r,u,g)}catch(y){rn(e,e.return,y)}}},XA=$A.react_stack_bottom_frame.bind($A),QA={react_stack_bottom_frame:function(e,t){var r=t.stack;e.componentDidCatch(t.value,{componentStack:r!==null?r:""})}},sR=QA.react_stack_bottom_frame.bind(QA),PA={react_stack_bottom_frame:function(e,t,r){try{r.componentWillUnmount()}catch(u){rn(e,t,u)}}},ZA=PA.react_stack_bottom_frame.bind(PA),JA={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},oR=JA.react_stack_bottom_frame.bind(JA),KA={react_stack_bottom_frame:function(e,t,r){try{r()}catch(u){rn(e,t,u)}}},uR=KA.react_stack_bottom_frame.bind(KA),FA={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},cR=FA.react_stack_bottom_frame.bind(FA),Cv=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),MS=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),v_=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),b_={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},s0=null,Q1=!1,xv=null,P1=0,en=null,RS,WA=RS=!1,eC={},tC={},nC={};L=function(e,t,r){if(r!==null&&typeof r=="object"&&r._store&&(!r._store.validated&&r.key==null||r._store.validated===2)){if(typeof r._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");r._store.validated=1;var u=me(e),g=u||"null";if(!eC[g]){eC[g]=!0,r=r._owner,e=e._debugOwner;var y="";e&&typeof e.tag=="number"&&(g=me(e))&&(y=`

Check the render method of \``+g+"`."),y||u&&(y=`

Check the top-level render call using <`+u+">.");var C="";r!=null&&e!==r&&(u=null,typeof r.tag=="number"?u=me(r):typeof r.name=="string"&&(u=r.name),u&&(C=" It was passed a child from "+u+".")),tt(t,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',y,C)})}}};var o0=$p(!0),iC=$p(!1),aC=0,rC=1,lC=2,NS=3,am=!1,sC=!1,kS=null,zS=!1,Lv=ne(null),__=ne(0),jo=ne(null),Vu=null,Ov=1,Z1=2,Ba=ne(0),E_=0,$u=1,ls=2,Yo=4,ss=8,Dv,oC=new Set,uC=new Set,US=new Set,cC=new Set,ip=0,qt=null,mi=null,Wa=null,S_=!1,Mv=!1,u0=!1,T_=0,J1=0,ap=null,fR=0,hR=25,ke=null,Xu=null,rp=-1,K1=!1,F1={readContext:mn,use:Dr,useCallback:Ln,useContext:Ln,useEffect:Ln,useImperativeHandle:Ln,useLayoutEffect:Ln,useInsertionEffect:Ln,useMemo:Ln,useReducer:Ln,useRef:Ln,useState:Ln,useDebugValue:Ln,useDeferredValue:Ln,useTransition:Ln,useSyncExternalStore:Ln,useId:Ln,useHostTransitionStatus:Ln,useFormState:Ln,useActionState:Ln,useOptimistic:Ln,useMemoCache:Ln,useCacheRefresh:Ln};F1.useEffectEvent=Ln;var BS=null,fC=null,HS=null,hC=null,Th=null,rf=null,w_=null;BS={readContext:function(e){return mn(e)},use:Dr,useCallback:function(e,t){return ke="useCallback",Vt(),Il(t),wo(e,t)},useContext:function(e){return ke="useContext",Vt(),mn(e)},useEffect:function(e,t){return ke="useEffect",Vt(),Il(t),oi(e,t)},useImperativeHandle:function(e,t,r){return ke="useImperativeHandle",Vt(),Il(r),Lc(e,t,r)},useInsertionEffect:function(e,t){ke="useInsertionEffect",Vt(),Il(t),Vn(4,ls,e,t)},useLayoutEffect:function(e,t){return ke="useLayoutEffect",Vt(),Il(t),kn(e,t)},useMemo:function(e,t){ke="useMemo",Vt(),Il(t);var r=Ce.H;Ce.H=Th;try{return Oc(e,t)}finally{Ce.H=r}},useReducer:function(e,t,r){ke="useReducer",Vt();var u=Ce.H;Ce.H=Th;try{return Zh(e,t,r)}finally{Ce.H=u}},useRef:function(e){return ke="useRef",Vt(),Kh(e)},useState:function(e){ke="useState",Vt();var t=Ce.H;Ce.H=Th;try{return Bi(e)}finally{Ce.H=t}},useDebugValue:function(){ke="useDebugValue",Vt()},useDeferredValue:function(e,t){return ke="useDeferredValue",Vt(),Fh(e,t)},useTransition:function(){return ke="useTransition",Vt(),Sa()},useSyncExternalStore:function(e,t,r){return ke="useSyncExternalStore",Vt(),Gl(e,t,r)},useId:function(){return ke="useId",Vt(),Dc()},useFormState:function(e,t){return ke="useFormState",Vt(),Xp(),Hs(e,t)},useActionState:function(e,t){return ke="useActionState",Vt(),Hs(e,t)},useOptimistic:function(e){return ke="useOptimistic",Vt(),Bs(e)},useHostTransitionStatus:$l,useMemoCache:nl,useCacheRefresh:function(){return ke="useCacheRefresh",Vt(),qf()},useEffectEvent:function(e){return ke="useEffectEvent",Vt(),Yl(e)}},fC={readContext:function(e){return mn(e)},use:Dr,useCallback:function(e,t){return ke="useCallback",Ke(),wo(e,t)},useContext:function(e){return ke="useContext",Ke(),mn(e)},useEffect:function(e,t){return ke="useEffect",Ke(),oi(e,t)},useImperativeHandle:function(e,t,r){return ke="useImperativeHandle",Ke(),Lc(e,t,r)},useInsertionEffect:function(e,t){ke="useInsertionEffect",Ke(),Vn(4,ls,e,t)},useLayoutEffect:function(e,t){return ke="useLayoutEffect",Ke(),kn(e,t)},useMemo:function(e,t){ke="useMemo",Ke();var r=Ce.H;Ce.H=Th;try{return Oc(e,t)}finally{Ce.H=r}},useReducer:function(e,t,r){ke="useReducer",Ke();var u=Ce.H;Ce.H=Th;try{return Zh(e,t,r)}finally{Ce.H=u}},useRef:function(e){return ke="useRef",Ke(),Kh(e)},useState:function(e){ke="useState",Ke();var t=Ce.H;Ce.H=Th;try{return Bi(e)}finally{Ce.H=t}},useDebugValue:function(){ke="useDebugValue",Ke()},useDeferredValue:function(e,t){return ke="useDeferredValue",Ke(),Fh(e,t)},useTransition:function(){return ke="useTransition",Ke(),Sa()},useSyncExternalStore:function(e,t,r){return ke="useSyncExternalStore",Ke(),Gl(e,t,r)},useId:function(){return ke="useId",Ke(),Dc()},useActionState:function(e,t){return ke="useActionState",Ke(),Hs(e,t)},useFormState:function(e,t){return ke="useFormState",Ke(),Xp(),Hs(e,t)},useOptimistic:function(e){return ke="useOptimistic",Ke(),Bs(e)},useHostTransitionStatus:$l,useMemoCache:nl,useCacheRefresh:function(){return ke="useCacheRefresh",Ke(),qf()},useEffectEvent:function(e){return ke="useEffectEvent",Ke(),Yl(e)}},HS={readContext:function(e){return mn(e)},use:Dr,useCallback:function(e,t){return ke="useCallback",Ke(),Vl(e,t)},useContext:function(e){return ke="useContext",Ke(),mn(e)},useEffect:function(e,t){ke="useEffect",Ke(),$n(2048,ss,e,t)},useImperativeHandle:function(e,t,r){return ke="useImperativeHandle",Ke(),To(e,t,r)},useInsertionEffect:function(e,t){return ke="useInsertionEffect",Ke(),$n(4,ls,e,t)},useLayoutEffect:function(e,t){return ke="useLayoutEffect",Ke(),$n(4,Yo,e,t)},useMemo:function(e,t){ke="useMemo",Ke();var r=Ce.H;Ce.H=rf;try{return Ao(e,t)}finally{Ce.H=r}},useReducer:function(e,t,r){ke="useReducer",Ke();var u=Ce.H;Ce.H=rf;try{return ql(e,t,r)}finally{Ce.H=u}},useRef:function(){return ke="useRef",Ke(),vn().memoizedState},useState:function(){ke="useState",Ke();var e=Ce.H;Ce.H=rf;try{return ql(il)}finally{Ce.H=e}},useDebugValue:function(){ke="useDebugValue",Ke()},useDeferredValue:function(e,t){return ke="useDeferredValue",Ke(),ui(e,t)},useTransition:function(){return ke="useTransition",Ke(),Ei()},useSyncExternalStore:function(e,t,r){return ke="useSyncExternalStore",Ke(),Us(e,t,r)},useId:function(){return ke="useId",Ke(),vn().memoizedState},useFormState:function(e){return ke="useFormState",Ke(),Xp(),xc(e)},useActionState:function(e){return ke="useActionState",Ke(),xc(e)},useOptimistic:function(e,t){return ke="useOptimistic",Ke(),Ac(e,t)},useHostTransitionStatus:$l,useMemoCache:nl,useCacheRefresh:function(){return ke="useCacheRefresh",Ke(),vn().memoizedState},useEffectEvent:function(e){return ke="useEffectEvent",Ke(),Rt(e)}},hC={readContext:function(e){return mn(e)},use:Dr,useCallback:function(e,t){return ke="useCallback",Ke(),Vl(e,t)},useContext:function(e){return ke="useContext",Ke(),mn(e)},useEffect:function(e,t){ke="useEffect",Ke(),$n(2048,ss,e,t)},useImperativeHandle:function(e,t,r){return ke="useImperativeHandle",Ke(),To(e,t,r)},useInsertionEffect:function(e,t){return ke="useInsertionEffect",Ke(),$n(4,ls,e,t)},useLayoutEffect:function(e,t){return ke="useLayoutEffect",Ke(),$n(4,Yo,e,t)},useMemo:function(e,t){ke="useMemo",Ke();var r=Ce.H;Ce.H=w_;try{return Ao(e,t)}finally{Ce.H=r}},useReducer:function(e,t,r){ke="useReducer",Ke();var u=Ce.H;Ce.H=w_;try{return zs(e,t,r)}finally{Ce.H=u}},useRef:function(){return ke="useRef",Ke(),vn().memoizedState},useState:function(){ke="useState",Ke();var e=Ce.H;Ce.H=w_;try{return zs(il)}finally{Ce.H=e}},useDebugValue:function(){ke="useDebugValue",Ke()},useDeferredValue:function(e,t){return ke="useDeferredValue",Ke(),Jp(e,t)},useTransition:function(){return ke="useTransition",Ke(),pu()},useSyncExternalStore:function(e,t,r){return ke="useSyncExternalStore",Ke(),Us(e,t,r)},useId:function(){return ke="useId",Ke(),vn().memoizedState},useFormState:function(e){return ke="useFormState",Ke(),Xp(),Rr(e)},useActionState:function(e){return ke="useActionState",Ke(),Rr(e)},useOptimistic:function(e,t){return ke="useOptimistic",Ke(),hu(e,t)},useHostTransitionStatus:$l,useMemoCache:nl,useCacheRefresh:function(){return ke="useCacheRefresh",Ke(),vn().memoizedState},useEffectEvent:function(e){return ke="useEffectEvent",Ke(),Rt(e)}},Th={readContext:function(e){return S(),mn(e)},use:function(e){return E(),Dr(e)},useCallback:function(e,t){return ke="useCallback",E(),Vt(),wo(e,t)},useContext:function(e){return ke="useContext",E(),Vt(),mn(e)},useEffect:function(e,t){return ke="useEffect",E(),Vt(),oi(e,t)},useImperativeHandle:function(e,t,r){return ke="useImperativeHandle",E(),Vt(),Lc(e,t,r)},useInsertionEffect:function(e,t){ke="useInsertionEffect",E(),Vt(),Vn(4,ls,e,t)},useLayoutEffect:function(e,t){return ke="useLayoutEffect",E(),Vt(),kn(e,t)},useMemo:function(e,t){ke="useMemo",E(),Vt();var r=Ce.H;Ce.H=Th;try{return Oc(e,t)}finally{Ce.H=r}},useReducer:function(e,t,r){ke="useReducer",E(),Vt();var u=Ce.H;Ce.H=Th;try{return Zh(e,t,r)}finally{Ce.H=u}},useRef:function(e){return ke="useRef",E(),Vt(),Kh(e)},useState:function(e){ke="useState",E(),Vt();var t=Ce.H;Ce.H=Th;try{return Bi(e)}finally{Ce.H=t}},useDebugValue:function(){ke="useDebugValue",E(),Vt()},useDeferredValue:function(e,t){return ke="useDeferredValue",E(),Vt(),Fh(e,t)},useTransition:function(){return ke="useTransition",E(),Vt(),Sa()},useSyncExternalStore:function(e,t,r){return ke="useSyncExternalStore",E(),Vt(),Gl(e,t,r)},useId:function(){return ke="useId",E(),Vt(),Dc()},useFormState:function(e,t){return ke="useFormState",E(),Vt(),Hs(e,t)},useActionState:function(e,t){return ke="useActionState",E(),Vt(),Hs(e,t)},useOptimistic:function(e){return ke="useOptimistic",E(),Vt(),Bs(e)},useMemoCache:function(e){return E(),nl(e)},useHostTransitionStatus:$l,useCacheRefresh:function(){return ke="useCacheRefresh",Vt(),qf()},useEffectEvent:function(e){return ke="useEffectEvent",E(),Vt(),Yl(e)}},rf={readContext:function(e){return S(),mn(e)},use:function(e){return E(),Dr(e)},useCallback:function(e,t){return ke="useCallback",E(),Ke(),Vl(e,t)},useContext:function(e){return ke="useContext",E(),Ke(),mn(e)},useEffect:function(e,t){ke="useEffect",E(),Ke(),$n(2048,ss,e,t)},useImperativeHandle:function(e,t,r){return ke="useImperativeHandle",E(),Ke(),To(e,t,r)},useInsertionEffect:function(e,t){return ke="useInsertionEffect",E(),Ke(),$n(4,ls,e,t)},useLayoutEffect:function(e,t){return ke="useLayoutEffect",E(),Ke(),$n(4,Yo,e,t)},useMemo:function(e,t){ke="useMemo",E(),Ke();var r=Ce.H;Ce.H=rf;try{return Ao(e,t)}finally{Ce.H=r}},useReducer:function(e,t,r){ke="useReducer",E(),Ke();var u=Ce.H;Ce.H=rf;try{return ql(e,t,r)}finally{Ce.H=u}},useRef:function(){return ke="useRef",E(),Ke(),vn().memoizedState},useState:function(){ke="useState",E(),Ke();var e=Ce.H;Ce.H=rf;try{return ql(il)}finally{Ce.H=e}},useDebugValue:function(){ke="useDebugValue",E(),Ke()},useDeferredValue:function(e,t){return ke="useDeferredValue",E(),Ke(),ui(e,t)},useTransition:function(){return ke="useTransition",E(),Ke(),Ei()},useSyncExternalStore:function(e,t,r){return ke="useSyncExternalStore",E(),Ke(),Us(e,t,r)},useId:function(){return ke="useId",E(),Ke(),vn().memoizedState},useFormState:function(e){return ke="useFormState",E(),Ke(),xc(e)},useActionState:function(e){return ke="useActionState",E(),Ke(),xc(e)},useOptimistic:function(e,t){return ke="useOptimistic",E(),Ke(),Ac(e,t)},useMemoCache:function(e){return E(),nl(e)},useHostTransitionStatus:$l,useCacheRefresh:function(){return ke="useCacheRefresh",Ke(),vn().memoizedState},useEffectEvent:function(e){return ke="useEffectEvent",E(),Ke(),Rt(e)}},w_={readContext:function(e){return S(),mn(e)},use:function(e){return E(),Dr(e)},useCallback:function(e,t){return ke="useCallback",E(),Ke(),Vl(e,t)},useContext:function(e){return ke="useContext",E(),Ke(),mn(e)},useEffect:function(e,t){ke="useEffect",E(),Ke(),$n(2048,ss,e,t)},useImperativeHandle:function(e,t,r){return ke="useImperativeHandle",E(),Ke(),To(e,t,r)},useInsertionEffect:function(e,t){return ke="useInsertionEffect",E(),Ke(),$n(4,ls,e,t)},useLayoutEffect:function(e,t){return ke="useLayoutEffect",E(),Ke(),$n(4,Yo,e,t)},useMemo:function(e,t){ke="useMemo",E(),Ke();var r=Ce.H;Ce.H=rf;try{return Ao(e,t)}finally{Ce.H=r}},useReducer:function(e,t,r){ke="useReducer",E(),Ke();var u=Ce.H;Ce.H=rf;try{return zs(e,t,r)}finally{Ce.H=u}},useRef:function(){return ke="useRef",E(),Ke(),vn().memoizedState},useState:function(){ke="useState",E(),Ke();var e=Ce.H;Ce.H=rf;try{return zs(il)}finally{Ce.H=e}},useDebugValue:function(){ke="useDebugValue",E(),Ke()},useDeferredValue:function(e,t){return ke="useDeferredValue",E(),Ke(),Jp(e,t)},useTransition:function(){return ke="useTransition",E(),Ke(),pu()},useSyncExternalStore:function(e,t,r){return ke="useSyncExternalStore",E(),Ke(),Us(e,t,r)},useId:function(){return ke="useId",E(),Ke(),vn().memoizedState},useFormState:function(e){return ke="useFormState",E(),Ke(),Rr(e)},useActionState:function(e){return ke="useActionState",E(),Ke(),Rr(e)},useOptimistic:function(e,t){return ke="useOptimistic",E(),Ke(),hu(e,t)},useMemoCache:function(e){return E(),nl(e)},useHostTransitionStatus:$l,useCacheRefresh:function(){return ke="useCacheRefresh",Ke(),vn().memoizedState},useEffectEvent:function(e){return ke="useEffectEvent",E(),Ke(),Rt(e)}};var dC={},pC=new Set,gC=new Set,mC=new Set,yC=new Set,vC=new Set,bC=new Set,_C=new Set,EC=new Set,SC=new Set,TC=new Set;Object.freeze(dC);var IS={enqueueSetState:function(e,t,r){e=e._reactInternals;var u=ei(e),g=Vi(u);g.payload=t,r!=null&&($t(r),g.callback=r),t=Va(e,g,u),t!==null&&(fr(u,"this.setState()",e),ti(t,e,u),j(t,e,u))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var u=ei(e),g=Vi(u);g.tag=rC,g.payload=t,r!=null&&($t(r),g.callback=r),t=Va(e,g,u),t!==null&&(fr(u,"this.replaceState()",e),ti(t,e,u),j(t,e,u))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=ei(e),u=Vi(r);u.tag=lC,t!=null&&($t(t),u.callback=t),t=Va(e,u,r),t!==null&&(fr(r,"this.forceUpdate()",e),ti(t,e,r),j(t,e,r))}},Rv=null,qS=null,GS=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),er=!1,wC={},AC={},CC={},xC={},Nv=!1,LC={},A_={},jS={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},OC=!1,DC=null;DC=new Set;var lp=!1,tr=!1,YS=!1,MC=typeof WeakSet=="function"?WeakSet:Set,Pr=null,kv=null,zv=null,nr=null,io=!1,lf=null,br=!1,W1=8192,dR={getCacheForType:function(e){var t=mn(Ka),r=t.data.get(e);return r===void 0&&(r=e(),t.data.set(e,r)),r},cacheSignal:function(){return mn(Ka).controller.signal},getOwner:function(){return $r}};if(typeof Symbol=="function"&&Symbol.for){var eb=Symbol.for;eb("selector.component"),eb("selector.has_pseudo_class"),eb("selector.role"),eb("selector.test_id"),eb("selector.text")}var pR=[],gR=typeof WeakMap=="function"?WeakMap:Map,Zr=0,_r=2,Vo=4,sp=0,tb=1,c0=2,C_=3,rm=4,x_=6,RC=5,Rn=Zr,yi=null,an=null,tn=0,ao=0,L_=1,f0=2,nb=3,NC=4,VS=5,ib=6,O_=7,$S=8,h0=9,ni=ao,$o=null,lm=!1,Uv=!1,XS=!1,wh=0,Ji=sp,sm=0,om=0,QS=0,ro=0,d0=0,ab=null,os=null,D_=!1,M_=0,kC=0,zC=300,R_=1/0,UC=500,rb=null,xa=null,um=null,N_=0,PS=1,ZS=2,BC=3,cm=0,HC=1,IC=2,qC=3,GC=4,k_=5,ir=0,fm=null,Bv=null,sf=0,JS=0,KS=-0,FS=null,jC=null,YC=null,of=N_,VC=null,mR=50,lb=0,WS=null,e2=!1,z_=!1,yR=50,p0=0,sb=null,Hv=!1,U_=null,$C=!1,XC=new Set,vR={},B_=null,Iv=null,t2=!1,n2=!1,H_=!1,i2=!1,hm=0,a2={};(function(){for(var e=0;e<gS.length;e++){var t=gS[e],r=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),gl(r,"on"+t)}gl(TA,"onAnimationEnd"),gl(wA,"onAnimationIteration"),gl(AA,"onAnimationStart"),gl("dblclick","onDoubleClick"),gl("focusin","onFocus"),gl("focusout","onBlur"),gl(PM,"onTransitionRun"),gl(ZM,"onTransitionStart"),gl(JM,"onTransitionCancel"),gl(CA,"onTransitionEnd")})(),sr("onMouseEnter",["mouseout","mouseover"]),sr("onMouseLeave",["mouseout","mouseover"]),sr("onPointerEnter",["pointerout","pointerover"]),sr("onPointerLeave",["pointerout","pointerover"]),xt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),xt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),xt("onBeforeInput",["compositionend","keypress","textInput","paste"]),xt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),xt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),xt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ob="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),r2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ob)),I_="_reactListening"+Math.random().toString(36).slice(2),QC=!1,PC=!1,q_=!1,ZC=!1,G_=!1,j_=!1,JC=!1,Y_={},bR=/\r\n?/g,_R=/\u0000|\uFFFD/g,g0="http://www.w3.org/1999/xlink",l2="http://www.w3.org/XML/1998/namespace",ER="javascript:throw new Error('React form unexpectedly submitted.')",SR="suppressHydrationWarning",m0="&",V_="/&",ub="$",cb="/$",dm="$?",y0="$~",qv="$!",TR="html",wR="body",AR="head",s2="F!",KC="F",FC="loading",CR="style",op=0,Gv=1,$_=2,o2=null,u2=null,WC={dialog:!0,webview:!0},c2=null,fb=void 0,ex=typeof setTimeout=="function"?setTimeout:void 0,xR=typeof clearTimeout=="function"?clearTimeout:void 0,v0=-1,tx=typeof Promise=="function"?Promise:void 0,LR=typeof queueMicrotask=="function"?queueMicrotask:typeof tx<"u"?function(e){return tx.resolve(null).then(e).catch(xg)}:ex,f2=null,b0=0,hb=1,nx=2,ix=3,Qu=4,Pu=new Map,ax=new Set,up=Ht.d;Ht.d={f:function(){var e=up.f(),t=rl();return e||t},r:function(e){var t=ut(e);t!==null&&t.tag===5&&t.type==="form"?td(t):up.r(e)},D:function(e){up.D(e),lh("dns-prefetch",e,null)},C:function(e,t){up.C(e,t),lh("preconnect",e,t)},L:function(e,t,r){up.L(e,t,r);var u=jv;if(u&&e&&t){var g='link[rel="preload"][as="'+In(t)+'"]';t==="image"&&r&&r.imageSrcSet?(g+='[imagesrcset="'+In(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(g+='[imagesizes="'+In(r.imageSizes)+'"]')):g+='[href="'+In(e)+'"]';var y=g;switch(t){case"style":y=Xt(e);break;case"script":y=Xi(e)}Pu.has(y)||(e=Bt({rel:"preload",href:t==="image"&&r&&r.imageSrcSet?void 0:e,as:t},r),Pu.set(y,e),u.querySelector(g)!==null||t==="style"&&u.querySelector(ll(y))||t==="script"&&u.querySelector(Zn(y))||(t=u.createElement("link"),wa(t,"link",e),Ct(t),u.head.appendChild(t)))}},m:function(e,t){up.m(e,t);var r=jv;if(r&&e){var u=t&&typeof t.as=="string"?t.as:"script",g='link[rel="modulepreload"][as="'+In(u)+'"][href="'+In(e)+'"]',y=g;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=Xi(e)}if(!Pu.has(y)&&(e=Bt({rel:"modulepreload",href:e},t),Pu.set(y,e),r.querySelector(g)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(Zn(y)))return}u=r.createElement("link"),wa(u,"link",e),Ct(u),r.head.appendChild(u)}}},X:function(e,t){up.X(e,t);var r=jv;if(r&&e){var u=bt(r).hoistableScripts,g=Xi(e),y=u.get(g);y||(y=r.querySelector(Zn(g)),y||(e=Bt({src:e,async:!0},t),(t=Pu.get(g))&&Dg(e,t),y=r.createElement("script"),Ct(y),wa(y,"link",e),r.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},u.set(g,y))}},S:function(e,t,r){up.S(e,t,r);var u=jv;if(u&&e){var g=bt(u).hoistableStyles,y=Xt(e);t=t||"default";var C=g.get(y);if(!C){var O={loading:b0,preload:null};if(C=u.querySelector(ll(y)))O.loading=hb|Qu;else{e=Bt({rel:"stylesheet",href:e,"data-precedence":t},r),(r=Pu.get(y))&&qy(e,r);var U=C=u.createElement("link");Ct(U),wa(U,"link",e),U._p=new Promise(function(q,de){U.onload=q,U.onerror=de}),U.addEventListener("load",function(){O.loading|=hb}),U.addEventListener("error",function(){O.loading|=nx}),O.loading|=Qu,Yr(C,t,u)}C={type:"stylesheet",instance:C,count:1,state:O},g.set(y,C)}}},M:function(e,t){up.M(e,t);var r=jv;if(r&&e){var u=bt(r).hoistableScripts,g=Xi(e),y=u.get(g);y||(y=r.querySelector(Zn(g)),y||(e=Bt({src:e,async:!0,type:"module"},t),(t=Pu.get(g))&&Dg(e,t),y=r.createElement("script"),Ct(y),wa(y,"link",e),r.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},u.set(g,y))}}};var jv=typeof document>"u"?null:document,X_=null,OR=6e4,DR=800,MR=500,h2=0,d2=null,Q_=null,_0=qg,db={$$typeof:Fs,Provider:null,Consumer:null,_currentValue:_0,_currentValue2:_0,_threadCount:0},rx="%c%s%c",lx="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",sx="",P_=" ",RR=Function.prototype.bind,ox=!1,ux=null,cx=null,fx=null,hx=null,dx=null,px=null,gx=null,mx=null,yx=null,vx=null;ux=function(e,t,r,u){t=a(e,t),t!==null&&(r=s(t.memoizedState,r,0,u),t.memoizedState=r,t.baseState=r,e.memoizedProps=Bt({},e.memoizedProps),r=Wi(e,2),r!==null&&ti(r,e,2))},cx=function(e,t,r){t=a(e,t),t!==null&&(r=m(t.memoizedState,r,0),t.memoizedState=r,t.baseState=r,e.memoizedProps=Bt({},e.memoizedProps),r=Wi(e,2),r!==null&&ti(r,e,2))},fx=function(e,t,r,u){t=a(e,t),t!==null&&(r=f(t.memoizedState,r,u),t.memoizedState=r,t.baseState=r,e.memoizedProps=Bt({},e.memoizedProps),r=Wi(e,2),r!==null&&ti(r,e,2))},hx=function(e,t,r){e.pendingProps=s(e.memoizedProps,t,0,r),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Wi(e,2),t!==null&&ti(t,e,2)},dx=function(e,t){e.pendingProps=m(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Wi(e,2),t!==null&&ti(t,e,2)},px=function(e,t,r){e.pendingProps=f(e.memoizedProps,t,r),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Wi(e,2),t!==null&&ti(t,e,2)},gx=function(e){var t=Wi(e,2);t!==null&&ti(t,e,2)},mx=function(e){var t=Po(),r=Wi(e,t);r!==null&&ti(r,e,t)},yx=function(e){w=e},vx=function(e){v=e};var Z_=!0,J_=null,p2=!1,pm=null,gm=null,mm=null,pb=new Map,gb=new Map,ym=[],NR="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "),K_=null;if(zd.prototype.render=kd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error("Cannot update an unmounted root.");var r=arguments;typeof r[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):te(r[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof r[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),r=e;var u=t.current;oh(u,ei(u),r,t,null,null)},zd.prototype.unmount=kd.prototype.unmount=function(){var e=arguments;if(typeof e[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(Rn&(_r|Vo))!==Zr&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),oh(e.current,2,null,e,null,null),rl(),t[ts]=null}},zd.prototype.unstable_scheduleHydration=function(e){if(e){var t=I();e={blockedOn:null,target:e,priority:t};for(var r=0;r<ym.length&&t!==0&&t<ym[r].priority;r++);ym.splice(r,0,e),r===0&&cv(e)}},(function(){var e=yr.version;if(e!=="19.2.7")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
  - react:      `+(e+`
  - react-dom:  19.2.7
Learn more: https://react.dev/warnings/version-mismatch`))})(),typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),Ht.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error("Unable to find node on an unmounted component."):(e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e));return e=Re(t),e=e!==null?Je(e):null,e=e===null?null:e.stateNode,e},!(function(){var e={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:Ce,reconcilerVersion:"19.2.7"};return e.overrideHookState=ux,e.overrideHookStateDeletePath=cx,e.overrideHookStateRenamePath=fx,e.overrideProps=hx,e.overridePropsDeletePath=dx,e.overridePropsRenamePath=px,e.scheduleUpdate=gx,e.scheduleRetry=mx,e.setErrorHandler=yx,e.setSuspenseHandler=vx,e.scheduleRefresh=G,e.scheduleRoot=B,e.setRefreshHandler=P,e.getCurrentFiber=uv,kt(e)})()&&ft&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var bx=window.location.protocol;/^(https?|file):$/.test(bx)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(bx==="file:"?`
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}i.createRoot=function(e,t){if(!te(e))throw Error("Target container is not a DOM element.");wn(e);var r=!1,u="",g=ry,y=ly,C=kr;return t!=null&&(t.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===Ks&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:

  let root = createRoot(domContainer);
  root.render(<App />);`),t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(u=t.identifierPrefix),t.onUncaughtError!==void 0&&(g=t.onUncaughtError),t.onCaughtError!==void 0&&(y=t.onCaughtError),t.onRecoverableError!==void 0&&(C=t.onRecoverableError)),t=Nd(e,1,!1,null,null,r,u,null,g,y,C,mr),e[ts]=t.current,Ad(e),new kd(t)},i.hydrateRoot=function(e,t,r){if(!te(e))throw Error("Target container is not a DOM element.");wn(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var u=!1,g="",y=ry,C=ly,O=kr,U=null;return r!=null&&(r.unstable_strictMode===!0&&(u=!0),r.identifierPrefix!==void 0&&(g=r.identifierPrefix),r.onUncaughtError!==void 0&&(y=r.onUncaughtError),r.onCaughtError!==void 0&&(C=r.onCaughtError),r.onRecoverableError!==void 0&&(O=r.onRecoverableError),r.formState!==void 0&&(U=r.formState)),t=Nd(e,1,!0,t,r??null,u,g,U,y,C,O,mr),t.context=Mg(null),r=t.current,u=ei(r),u=ve(u),g=Vi(u),g.callback=null,Va(r,g,u),fr(u,"hydrateRoot()",null),r=u,t.current.lanes=r,ha(t,r),ln(t),e[ts]=t.current,Ad(e),new zd(t)},i.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),KD=Bn(((i,a)=>{hf();function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(Ki.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(f){console.error(f)}}}Ki.env.NODE_ENV==="production"?(s(),a.exports=ZD()):a.exports=JD()})),FD=Bn(((i,a)=>{(function(s,f){typeof i=="object"&&typeof i.nodeName!="string"?a.exports=s.document?f(s,!0):function(h){if(!h.document)throw new Error("FileSaver requires a window with a document");return f(h)}:f(s)})(window||i,function(s,f){"use strict";if(!(typeof s>"u"||typeof navigator<"u"&&/MSIE [1-9]\./.test(navigator.userAgent))){var h=s.document,m=function(){return s.URL||s.webkitURL||s},v=h.createElementNS("http://www.w3.org/1999/xhtml","a"),w="download"in v,E=function(Se){var Fe=new MouseEvent("click");Se.dispatchEvent(Fe)},S=/constructor/i.test(s.HTMLElement)||s.safari,_=/CriOS\/[\d]+/.test(navigator.userAgent),L=function(Se){(s.setImmediate||s.setTimeout)(function(){throw Se},0)},x="application/octet-stream",D=1e3*40,B=function(Se){var Fe=function(){typeof Se=="string"?m().revokeObjectURL(Se):Se.remove()};setTimeout(Fe,D)},G=function(Se,Fe,Re){Fe=[].concat(Fe);for(var Je=Fe.length;Je--;){var Be=Se["on"+Fe[Je]];if(typeof Be=="function")try{Be.call(Se,Re||Se)}catch(W){L(W)}}},P=function(Se){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(Se.type)?new Blob(["\uFEFF",Se],{type:Se.type}):Se},te=function(Se,Fe,Re){Re||(Se=P(Se));var Je=this,Be=Se.type===x,W,re=function(){G(Je,"writestart progress write writeend".split(" "))},me=function(){if((_||Be&&S)&&s.FileReader){var ne=new FileReader;ne.onloadend=function(){var ue=_?ne.result:ne.result.replace(/^data:[^;]*;/,"data:attachment/file;");s.open(ue,"_blank")||(s.location.href=ue),ue=void 0,Je.readyState=Je.DONE,re()},ne.readAsDataURL(Se),Je.readyState=Je.INIT;return}W||(W=m().createObjectURL(Se)),Be?s.location.href=W:s.open(W,"_blank")||(s.location.href=W),Je.readyState=Je.DONE,re(),B(W)};if(Je.readyState=Je.INIT,w){W=m().createObjectURL(Se),setTimeout(function(){v.href=W,v.download=Fe,E(v),re(),B(W),Je.readyState=Je.DONE});return}me()},pe=te.prototype,Te=function(Se,Fe,Re){return new te(Se,Fe||Se.name||"download",Re)};return typeof navigator<"u"&&navigator.msSaveOrOpenBlob&&(Te=function(Se,Fe,Re){return Fe=Fe||Se.name||"download",Re||(Se=P(Se)),navigator.msSaveOrOpenBlob(Se,Fe)}),pe.abort=function(){},pe.readyState=pe.INIT=0,pe.WRITING=1,pe.DONE=2,pe.error=pe.onwritestart=pe.onprogress=pe.onwrite=pe.onabort=pe.onerror=pe.onwriteend=null,typeof define=="function"&&define.amd&&define("file-saverjs",[],function(){return Te}),typeof f>"u"&&(s.saveAs=Te),Te}})})),WD=KD(),rA=F_(FD()),Jb="graph-explorer-navigator",lA=.25,eM=class extends N.Component{static{this.defaultProps={width:300,height:160,scalePadding:.2,expanded:!0}}constructor(i,a){super(i,a),this.delayedRedraw=new us,this.listener=new Hn,this.scheduleRedraw=()=>{this.state.expanded&&this.delayedRedraw.call(this.draw)},this.draw=()=>{const{paperTransform:s,width:f,height:h}=this.props;this.calculateTransform();const m=this.canvas.getContext("2d");m.fillStyle="#EEEEEE",m.clearRect(0,0,f,h),m.fillRect(0,0,f,h);const v=TT(s),w=ST(s),E={x:v.x+w.x,y:v.y+w.y},S=g1(v,s,this.transform),_=g1(E,s,this.transform);m.fillStyle="white",m.fillRect(S.x,S.y,_.x-S.x,_.y-S.y),m.save(),this.drawElements(m),this.drawViewport(m),m.restore()},this.onDragViewport=s=>{if(s.preventDefault(),this.isDraggingViewport){const f=tM(this.canvasFromPageCoords(s.pageX,s.pageY),this.props.paperTransform,this.transform);this.props.paperArea.centerTo(f)}},this.onMouseUp=()=>{this.stopDraggingViewport()},this.onWheel=s=>{s.preventDefault();const f=Math.max(-1,Math.min(1,s.deltaY||s.deltaX));this.props.paperArea.zoomBy(-f*.1)},this.onToggleClick=()=>{this.setState(s=>({expanded:!s.expanded}),this.scheduleRedraw)},this.state={expanded:this.props.expanded}}componentDidMount(){const{view:i,paperArea:a}=this.props;this.listener.listen(i.events,"changeHighlight",this.scheduleRedraw),this.listener.listen(i.model.events,"changeCells",this.scheduleRedraw),this.listener.listen(i.model.events,"elementEvent",this.scheduleRedraw),this.listener.listen(a.events,"pointerMove",this.scheduleRedraw),this.listener.listen(a.events,"scroll",this.scheduleRedraw)}shouldComponentUpdate(i,a){return a!==this.state}componentWillUnmount(){this.delayedRedraw.dispose(),this.listener.stopListening(),this.stopDraggingViewport()}drawElements(i){const{view:a,paperTransform:s}=this.props;a.model.elements.forEach(f=>{const{position:h,size:m}=f;i.fillStyle=this.chooseElementColor(f);const{x:v,y:w}=sA(h,s,this.transform),{x:E,y:S}=sA({x:h.x+m.width,y:h.y+m.height},s,this.transform);i.fillRect(v,w,E-v,S-w)})}chooseElementColor(i){const{view:a}=this.props;if(a.highlighter&&!a.highlighter(i))return"lightgray";const{color:{h:s,c:f,l:h}}=a.getTypeStyle(i.data.types);return wm(s,f,h).toString()}drawViewport(i){const{paperArea:a,paperTransform:s,width:f,height:h}=this.props;i.strokeStyle="#337ab7",i.lineWidth=2;const{clientWidth:m,clientHeight:v}=a.getAreaMetrics(),w=a.clientToScrollablePaneCoords(0,0),E=a.clientToScrollablePaneCoords(m,v),{x:S,y:_}=g1(w,s,this.transform),{x:L,y:x}=g1(E,s,this.transform);i.strokeRect(S,_,L-S,x-_),i.beginPath(),S<0&&(i.moveTo(0,_),i.lineTo(0,x)),_<0&&(i.moveTo(S,0),i.lineTo(L,0)),L>f&&(i.moveTo(f,_),i.lineTo(f,x)),x>h&&(i.moveTo(S,h),i.lineTo(L,h)),i.lineWidth=4,i.strokeStyle="#a0d2ff",i.setLineDash([5,5]),i.stroke()}calculateTransform(){const{paperArea:i,paperTransform:a,width:s,height:f,scalePadding:h}=this.props,m=i.getContentFittingBox(),v={x:Math.max(m.width,s/lA)*h,y:Math.max(m.height,f/lA)*h},w=Rb({x:m.x-v.x,y:m.y-v.y},a),E=Rb({x:m.x+m.width+v.x,y:m.y+m.height+v.y},a),S={x:E.x-w.x,y:E.y-w.y},_=Math.min(s/S.x,f/S.y),L={x:(s-S.x*_)/2,y:(f-S.y*_)/2};this.transform={scale:_,canvasOffset:L,paneOffset:w}}canvasFromPageCoords(i,a){const{top:s,left:f}=this.canvas.getBoundingClientRect();return{x:i-f-window.pageXOffset,y:a-s-window.pageYOffset}}render(){const{width:i,height:a}=this.props,{expanded:s}=this.state;return N.createElement("div",{className:`${Jb} ${Jb}--${s?"expanded":"collapsed"}`,style:s?{width:i,height:a}:void 0},N.createElement("canvas",{ref:f=>{this.canvas=f},width:i,height:a,onMouseDown:f=>{this.startDragginViewport(),this.onDragViewport(f)},onWheel:this.onWheel}),N.createElement("button",{className:`${Jb}__toggle`,title:s?"Collapse navigator":"Expand navigator",onClick:this.onToggleClick},N.createElement("div",{className:`${Jb}__toggle-icon`})))}startDragginViewport(){this.isDraggingViewport||(this.isDraggingViewport=!0,document.addEventListener("mousemove",this.onDragViewport),document.addEventListener("mouseup",this.onMouseUp))}stopDraggingViewport(){this.isDraggingViewport&&(this.isDraggingViewport=!1,document.removeEventListener("mousemove",this.onDragViewport),document.removeEventListener("mouseup",this.onMouseUp))}};function g1(i,a,s){return{x:s.canvasOffset.x+(i.x-s.paneOffset.x)*s.scale,y:s.canvasOffset.y+(i.y-s.paneOffset.y)*s.scale}}function sA(i,a,s){return g1(Rb(i,a),a,s)}function tM(i,a,s){return wT({x:s.paneOffset.x+(i.x-s.canvasOffset.x)/s.scale,y:s.paneOffset.y+(i.y-s.canvasOffset.y)/s.scale},a)}var lS={setDerived:(i,a)=>({...i,derived:a})},nM="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='128'%20height='128'%20viewbox='0%200%20128%20128'%3e%3cellipse%20stroke='%23000'%20ry='60'%20rx='60'%20cy='64'%20cx='64'%20stroke-width='5'%20fill='none'/%3e%3cline%20y2='63.4375'%20x2='104.5'%20y1='63.4375'%20x1='22.5'%20stroke-width='5'%20stroke='%23000'%20fill='none'/%3e%3cline%20y2='102.444349'%20x2='63.5'%20y1='29.4375'%20x1='63.5'%20stroke-width='5'%20stroke='%23000'%20fill='none'/%3e%3c/svg%3e",iM="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='128'%20height='128'%20viewbox='0%200%20128%20128'%3e%3cellipse%20stroke='%23000'%20ry='60'%20rx='60'%20cy='64'%20cx='64'%20stroke-width='5'%20fill='none'/%3e%3cline%20y2='63.4375'%20x2='104.5'%20y1='63.4375'%20x1='22.5'%20stroke-width='5'%20stroke='%23000'%20fill='none'/%3e%3c/svg%3e",aM="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20xmlns:svg='http://www.w3.org/2000/svg'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20width='128'%20height='128'%20viewbox='0%200%20128%20128'%20version='1.1'%20id='svg4507'%20sodipodi:docname='tree-leaf.svg'%20inkscape:version='0.92.1%20r15371'%3e%3cdefs%20id='defs4511'%20/%3e%3csodipodi:namedview%20pagecolor='%23ffffff'%20bordercolor='%23666666'%20borderopacity='1'%20objecttolerance='10'%20gridtolerance='10'%20guidetolerance='10'%20inkscape:pageopacity='0'%20inkscape:pageshadow='2'%20inkscape:window-width='1920'%20inkscape:window-height='1017'%20id='namedview4509'%20showgrid='false'%20inkscape:zoom='0.90509668'%20inkscape:cx='-272.6847'%20inkscape:cy='-5.8596487'%20inkscape:window-x='-8'%20inkscape:window-y='-8'%20inkscape:window-maximized='1'%20inkscape:current-layer='svg4507'%20/%3e%3cg%20id='g4505'%3e%3ccircle%20id='svg_1'%20cy='64'%20cx='64'%20stroke-opacity='null'%20style='fill:none;stroke:%231573b0;stroke-width:5'%20r='60'%20/%3e%3ccircle%20id='svg_3'%20cy='64'%20cx='64'%20stroke-opacity='null'%20style='fill:%231573b0;stroke:%231573b0;stroke-width:5.71026325'%20r='37'%20/%3e%3c/g%3e%3c/svg%3e",rM="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20xmlns:svg='http://www.w3.org/2000/svg'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20width='128'%20height='128'%20viewbox='0%200%20128%20128'%20version='1.1'%20id='svg5088'%20sodipodi:docname='tree-leaf-folder.svg'%20inkscape:version='0.92.1%20r15371'%3e%3cdefs%20id='defs5092'%20/%3e%3csodipodi:namedview%20pagecolor='%23ffffff'%20bordercolor='%23666666'%20borderopacity='1'%20objecttolerance='10'%20gridtolerance='10'%20guidetolerance='10'%20inkscape:pageopacity='0'%20inkscape:pageshadow='2'%20inkscape:window-width='1920'%20inkscape:window-height='1017'%20id='namedview5090'%20showgrid='false'%20inkscape:zoom='2.6074563'%20inkscape:cx='128.74614'%20inkscape:cy='30.905472'%20inkscape:window-x='-8'%20inkscape:window-y='-8'%20inkscape:window-maximized='1'%20inkscape:current-layer='svg5088'%20/%3e%3cg%20id='g5086'%3e%3ccircle%20id='svg_1'%20cy='64'%20cx='64'%20style='fill:none;stroke:%231573b0;stroke-width:5'%20r='60'%20/%3e%3ccircle%20id='svg_3'%20cy='64'%20cx='64'%20stroke-opacity='null'%20style='fill:%231573b0;stroke:%231573b0;stroke-width:5'%20r='37'%20/%3e%3cpath%20id='svg_5'%20d='m%20127.2258,86.546643%20c%20-0.0105,-5.971065%20-4.72314,-10.809034%20-10.54009,-10.817147%20v%20-0.0027%20H%2084.380152%20c%20-1.33102,-4.386353%20-5.300357,-7.593637%20-10.028771,-7.60175%20h%20-7.577587%20c%20-5.819586,0.0054%20-10.534822,4.846082%20-10.545365,10.817147%20v%2038.368417%20c%200.01054,5.96565%204.725778,10.80362%2010.545365,10.81444%20h%2049.914556%20c%205.81167,-0.0108%2010.52955,-4.84879%2010.54009,-10.81444%20V%2086.546643%20Z'%20inkscape:connector-curvature='0'%20style='fill:%230f5376'%20sodipodi:nodetypes='ccccccccccccc'%20/%3e%3c/g%3e%3c/svg%3e",fo="graph-explorer-class-leaf",lM=class extends N.Component{constructor(i){super(i),this.onClick=a=>{a.preventDefault();const{node:s,onSelect:f}=this.props;f(s)},this.toggle=()=>{this.setState(a=>({expanded:!a.expanded}))},this.onClickCreate=()=>{this.props.onClickCreate(this.props.node)},this.onDragCreate=a=>{a.dataTransfer.setData("text",""),this.props.onDragCreate(this.props.node)},this.state={expanded:!!this.props.searchText}}componentDidUpdate(i){this.props.searchText!==i.searchText&&this.setState({expanded:!!i.searchText})}render(){const{node:i,...a}=this.props,{view:s,selectedNode:f,searchText:h,creatableClasses:m}=a,{expanded:v}=this.state;let w;i.derived.length>0&&(w=v?iM:nM);let{icon:E}=s.getTypeStyle([i.model.id]);E||(E=i.derived.length===0?aM:rM);let S=`${fo}__body`;f&&f.model===i.model&&(S+=` ${fo}__body--selected`);const _=c1(i.label,h,{className:`${fo}__highlighted-term`});return N.createElement("div",{className:fo,role:"tree-item"},N.createElement("div",{className:`${fo}__row`},N.createElement("div",{className:`${fo}__toggle`,onClick:this.toggle,role:"button"},w?N.createElement("img",{className:`${fo}__toggle-icon`,src:w}):null),N.createElement("a",{className:S,href:i.model.id,onClick:this.onClick},N.createElement("div",{className:`${fo}__icon-container`},N.createElement("img",{className:`${fo}__icon`,src:E})),N.createElement("span",{className:`${fo}__label`},_),i.model.count?N.createElement("span",{className:`${fo}__count graph-explorer-badge`},i.model.count):null),m.get(i.model.id)?N.createElement("div",{className:`${fo}__create graph-explorer-btn-group graph-explorer-btn-group-xs`},N.createElement("button",{className:"graph-explorer-btn graph-explorer-btn-default",title:"Click or drag to create new entity of this type",draggable:!0,onClick:this.onClickCreate,onDragStart:this.onDragCreate},"+")):null),v&&i.derived.length>0?N.createElement(oA,{className:`${fo}__children`,nodes:i.derived,...a}):null)}},oA=class extends N.Component{render(){const{nodes:i,className:a,...s}=this.props;return N.createElement("div",{className:a,role:"tree"},i.map(f=>N.createElement(lM,{key:`node-${f.model.id}`,node:f,...s})))}},U0="graph-explorer-class-tree",sM=3,oM=class extends N.Component{constructor(i){super(i),this.listener=new Hn,this.delayedClassUpdate=new us,this.delayedSearch=new us(200),this.loadClassesOperation=new ii,this.refreshOperation=new ii,this.onSearchTextChange=a=>{const s=a.currentTarget.value;this.setState({requestedSearchText:s}),this.delayedSearch.call(this.performSearch)},this.performSearch=()=>{const{requestedSearchText:a}=this.state,s=uA(a);if(s===this.state.appliedSearchText)return;const f=s.length<sM?void 0:s;this.setState(h=>m1({...h,appliedSearchText:f}))},this.onShowOnlyCreatableChange=a=>{this.setState(s=>m1({...s,showOnlyConstructible:!s.showOnlyConstructible}))},this.onSelectNode=a=>{const{onClassSelected:s}=this.props;this.setState({selectedNode:a}),s(a.model.id)},this.onCreateInstance=a=>{const{onCreateInstance:s}=this.props;s(a.model.id)},this.onDragCreate=a=>{const{view:s,onCreateInstance:f}=this.props;s.setHandlerForNextDropOnPaper(h=>{f(a.model.id,h.paperPosition)})},this.refreshClassTree=()=>{const a=new ii,{editor:s}=this.props;this.refreshOperation.abort(),this.refreshOperation=a,this.setState((f,h)=>{if(!this.classTree)return{refreshingState:wi.none};let m=wi.none;if(s.inAuthoringMode){const w=cM(f.constructibleClasses,this.classTree);w.size>0&&(m=wi.loading,this.queryCreatableTypes(w,a.signal))}const v=uM(this.classTree,h.view);return m1({...f,roots:fM(v),refreshingState:m})})},this.state={refreshingState:wi.none,roots:[],filteredRoots:[],requestedSearchText:"",appliedSearchText:"",constructibleClasses:new Map,showOnlyConstructible:!1}}render(){const{view:i,editor:a}=this.props,{refreshingState:s,requestedSearchText:f,appliedSearchText:h,filteredRoots:m,selectedNode:v,constructibleClasses:w,showOnlyConstructible:E}=this.state,S=uA(f),_=h?S:void 0;return N.createElement("div",{className:U0},N.createElement("div",{className:`${U0}__filter`},N.createElement("div",{className:`${U0}__filter-group`},N.createElement("input",{type:"text",className:"search-input graph-explorer-form-control",placeholder:"Search for...",value:this.state.requestedSearchText,onChange:this.onSearchTextChange}),a.inAuthoringMode?N.createElement("label",{className:`${U0}__only-creatable`},N.createElement("input",{type:"checkbox",checked:E,onChange:this.onShowOnlyCreatableChange})," ","Show only constructible"):null)),N.createElement(k0,{state:s}),this.classTree?N.createElement(oA,{className:`${U0}__tree graph-explorer-scrollable`,view:i,nodes:m,searchText:_,selectedNode:v,onSelect:this.onSelectNode,creatableClasses:w,onClickCreate:this.onCreateInstance,onDragCreate:this.onDragCreate}):N.createElement("div",{className:`${U0}__spinner`},N.createElement(fs,{width:30,height:30})))}componentDidMount(){const{view:i,editor:a}=this.props;this.listener.listen(i.events,"changeLanguage",()=>this.refreshClassTree()),this.listener.listen(a.model.events,"loadingStart",()=>{this.initClassTree()}),this.listener.listen(a.model.events,"classEvent",({data:s})=>{(s.changeLabel||s.changeCount)&&this.delayedClassUpdate.call(this.refreshClassTree)}),this.initClassTree()}componentWillUnmount(){this.listener.stopListening(),this.delayedClassUpdate.dispose(),this.delayedSearch.dispose(),this.loadClassesOperation.abort(),this.refreshOperation.abort()}async initClassTree(){if(this.dataProvider!==this.props.editor.model.dataProvider){this.dataProvider=this.props.editor.model.dataProvider,this.classTree=void 0;const i=new ii;this.loadClassesOperation.abort(),this.loadClassesOperation=i;const a=await this.dataProvider.classTree();if(i.signal.aborted)return;this.setClassTree(a)}this.refreshClassTree()}setClassTree(i){const a=this.props.editor.model,s=new Set,f=(m,v)=>{if(!s.has(v.id)){s.add(v.id);const w=v.children.reduce(f,[]);m.push({...v,children:w}),s.delete(v.id)}return m};this.classTree=i.reduce(f,[]);const h=m=>{if(!a.getClass(m.id)){const{id:v,label:w,count:E,children:S}=m,_=new M2({id:v,label:w.values,count:E});a.addClass(_),S.forEach(h)}};this.classTree.forEach(h),this.refreshClassTree()}async queryCreatableTypes(i,a){try{const s=await ar.mapCancelledToNull(a,this.props.editor.metadataApi.filterConstructibleTypes(i,a));if(s===null)return;this.setState(f=>{const h=L0(f.constructibleClasses);return i.forEach(m=>{h.set(m,s.has(m))}),m1({...f,constructibleClasses:h,refreshingState:wi.completed})})}catch(s){if(console.error(s),a.aborted)return;this.setState(f=>m1({...f,refreshingState:wi.error}))}}};function uM(i,a){const s=f=>{const h=a.model.createClass(f.id);return{model:h,label:a.formatLabel(h.label,h.id),derived:f.children.map(s)}};return i.map(s)}function cM(i,a){const s=new Set,f=h=>{i.has(h.id)||s.add(h.id),h.children.forEach(f)};return a.forEach(f),s}function uA(i){return i.trim().toLowerCase()}function fM(i){function a(h){if(h.length===0)return h;const m=h.map(s);return m.sort(f),m}function s(h){return lS.setDerived(h,a(h.derived))}function f(h,m){return h.label.localeCompare(m.label)}return a(i)}function m1(i){let a=i.roots;return i.appliedSearchText&&(a=hM(a,i.appliedSearchText)),i.showOnlyConstructible&&(a=dM(a,i.constructibleClasses)),{...i,filteredRoots:a}}function hM(i,a){if(i.length===0)return i;function s(f,h){const m=h.derived.reduce(s,[]);return(m.length>0||h.label.toLowerCase().indexOf(a)>=0)&&f.push(lS.setDerived(h,m)),f}return i.reduce(s,[])}function dM(i,a){function s(f,h){const m=h.derived.reduce(s,[]);return(m.length>0||a.get(h.model.id))&&f.push(lS.setDerived(h,m)),f}return i.reduce(s,[])}var pM=class extends N.Component{constructor(...i){super(...i),this.onPressFilter=()=>{this.props.onPressFilter&&this.props.onPressFilter(this.props.link)},this.changeState=a=>{const s=this.props.view.model.history;Kb(s,a,[this.props.link])},this.isChecked=a=>{let s;return this.props.link.visible?this.props.link.showLabel?s="allVisible":s="withoutLabels":s="invisible",a===s},this.getText=()=>{const{link:a,view:s,filterKey:f}=this.props;return c1(s.formatLabel(a.label,a.id),f)}}render(){const i=this.props.link.isNew?N.createElement("span",{className:"linkInToolBox__new-tag"},"new"):"",a=this.props.count>0?N.createElement("span",{className:"graph-explorer-badge"},this.props.count):"",s=i||a?N.createElement("div",null,i,a):"";return N.createElement("li",{"data-linktypeid":this.props.link.id,className:"graph-explorer-list-group-item linkInToolBox clearfix"},N.createElement("span",{className:"graph-explorer-btn-group graph-explorer-btn-group-xs","data-toggle":"buttons"},N.createElement("label",{className:"graph-explorer-btn graph-explorer-btn-default"+(this.isChecked("invisible")?" active":""),id:"invisible",title:"Hide links and labels",onClick:()=>this.changeState("invisible")},N.createElement("span",{className:"fa fa-times","aria-hidden":"true"})),N.createElement("label",{className:"graph-explorer-btn graph-explorer-btn-default"+(this.isChecked("withoutLabels")?" active":""),id:"withoutLabels",title:"Show links without labels",onClick:()=>this.changeState("withoutLabels")},N.createElement("span",{className:"fa fa-arrows-h","aria-hidden":"true"})),N.createElement("label",{className:"graph-explorer-btn graph-explorer-btn-default"+(this.isChecked("allVisible")?" active":""),id:"allVisible",title:"Show links with labels",onClick:()=>this.changeState("allVisible")},N.createElement("span",{className:"fa fa-text-width","aria-hidden":"true"}))),N.createElement("div",{className:"link-title"},this.getText()),s,N.createElement("div",{className:"linkInToolBox__filter-button",onClick:this.onPressFilter}))}},gM=class extends N.Component{constructor(i){super(i),this.compareLinks=(a,s)=>{const{view:f}=this.props,h=f.formatLabel(a.label,a.id),m=f.formatLabel(s.label,s.id);return h.localeCompare(m)},this.onChangeInput=a=>{this.setState({filterKey:a.currentTarget.value})},this.onDropFilter=()=>{this.setState({filterKey:""})},this.getLinks=()=>{const{view:a,links:s=[]}=this.props;return s.filter(f=>{const h=a.formatLabel(f.label,f.id).toLowerCase();return!this.state.filterKey||h.indexOf(this.state.filterKey.toLowerCase())>=0}).sort(this.compareLinks)},this.getViews=a=>{const s=this.props.countMap||{},f=[];for(const h of a)f.push(N.createElement(pM,{key:h.id,view:this.props.view,link:h,onPressFilter:this.props.filterCallback,count:s[h.id]||0,filterKey:this.state.filterKey}));return f},this.state={filterKey:""}}render(){const i="link-types-toolbox",{view:a,dataState:s,selectedElement:f}=this.props,h=a.model.history,m=this.getLinks(),v=this.getViews(m);let w=null;if(f){const S=a.formatLabel(f.data.label.values,f.iri);w=N.createElement("h4",{className:"links-heading",style:{display:"block"}},"Connected to"," ",N.createElement("span",null,S))}let E=null;return this.state.filterKey&&(E=N.createElement("button",{type:"button",className:`${i}__clearSearch`,onClick:this.onDropFilter},N.createElement("span",{className:"fa fa-times","aria-hidden":"true"}))),N.createElement("div",{className:i},N.createElement("div",{className:`${i}__heading`},N.createElement("div",{className:`${i}__searching-box`},N.createElement("input",{className:"search-input graph-explorer-form-control",type:"text",value:this.state.filterKey,onChange:this.onChangeInput,placeholder:"Search for..."}),E),N.createElement("div",{className:`${i}__switch-all`},N.createElement("div",{className:"graph-explorer-btn-group graph-explorer-btn-group-xs"},N.createElement("label",{className:"graph-explorer-btn graph-explorer-btn-default",title:"Hide links and labels",onClick:()=>Kb(h,"invisible",m)},N.createElement("span",{className:"fa fa-times","aria-hidden":"true"})),N.createElement("label",{className:"graph-explorer-btn graph-explorer-btn-default",title:"Show links without labels",onClick:()=>Kb(h,"withoutLabels",m)},N.createElement("span",{className:"fa fa-arrows-h","aria-hidden":"true"})),N.createElement("label",{className:"graph-explorer-btn graph-explorer-btn-default",title:"Show links with labels",onClick:()=>Kb(h,"allVisible",m)},N.createElement("span",{className:"fa fa-text-width","aria-hidden":"true"}))),N.createElement("span",null," Switch all"))),N.createElement(k0,{state:s}),N.createElement("div",{className:`${i}__rest`},w,N.createElement("div",{className:"graph-explorer-scrollable"},N.createElement("ul",{className:"graph-explorer-list-group connected-links"},v))))}},mM=class extends N.Component{constructor(i,a){super(i,a),this.listener=new Hn,this.linkListener=new Hn,this.debounceSelection=new us(50),this.updateOnCurrentSelection=()=>{const{editor:h}=this.props,m=h.selection.length===1?h.selection[0]:null;m!==this.state.selectedElement&&m instanceof fl&&this.requestLinksOf(m)},this.onLinkChanged=()=>{this.forceUpdate()},this.onAddToFilter=h=>{const{selectedElement:m}=this.state;m.addToFilter(h)};const{view:s,editor:f}=this.props;this.listener.listen(s.events,"changeLanguage",()=>this.updateOnCurrentSelection()),this.listener.listen(f.model.events,"loadingSuccess",()=>this.updateOnCurrentSelection()),this.listener.listen(f.events,"changeSelection",()=>{this.debounceSelection.call(this.updateOnCurrentSelection)}),this.state={dataState:wi.none}}componentDidMount(){this.updateOnCurrentSelection()}componentWillUnmount(){this.listener.stopListening(),this.linkListener.stopListening(),this.debounceSelection.dispose()}requestLinksOf(i){if(i){const a={elementId:i.iri};this.currentRequest=a,this.setState({dataState:wi.loading,selectedElement:i}),this.props.editor.model.dataProvider.linkTypesOf(a).then(s=>{if(this.currentRequest!==a)return;const{linksOfElement:f,countMap:h}=this.computeStateFromRequestResult(s);this.subscribeOnLinksEvents(f),this.setState({dataState:wi.completed,linksOfElement:f,countMap:h})}).catch(s=>{this.currentRequest===a&&(console.error(s),this.setState({dataState:wi.error,linksOfElement:void 0,countMap:{}}))})}else this.currentRequest=null,this.setState({dataState:wi.completed,selectedElement:i,linksOfElement:void 0,countMap:{}})}computeStateFromRequestResult(i){const a=[],s={},f=this.props.editor.model;for(const h of i){const m=f.createLinkType(h.id);a.push(m),s[h.id]=h.inCount+h.outCount}return{linksOfElement:a,countMap:s}}subscribeOnLinksEvents(i){this.linkListener.stopListening();const a=this.linkListener;for(const s of i)a.listen(s.events,"changeLabel",this.onLinkChanged),a.listen(s.events,"changeVisibility",this.onLinkChanged)}render(){const{view:i}=this.props,{selectedElement:a,dataState:s,linksOfElement:f,countMap:h}=this.state;return N.createElement(gM,{view:i,dataState:s,links:f,countMap:h,filterCallback:this.onAddToFilter,selectedElement:a})}};function Kb(i,a,s){const f=i.startBatch(),{visible:h,showLabel:m}=a==="invisible"?{visible:!1,showLabel:!1}:a==="withoutLabels"?{visible:!0,showLabel:!1}:a==="allVisible"?{visible:!0,showLabel:!0}:void 0;for(const v of s)i.execute(vE({linkType:v,visible:h,showLabel:m}));f.store()}var Fb="graph-explorer-accordion",yM=class extends N.Component{static{this.defaultProps={direction:"vertical",animationDuration:300}}constructor(i){super(i),this.items=[],this.isScrollable=!1,this.updateSizes=()=>{const{children:s}=this.props,f=new Map;N.Children.forEach(s,(h,m)=>{if(typeof h!="object")return;const{defaultSize:v,defaultCollapsed:w,collapsedSize:E,minSize:S}=h.props;S!==void 0&&(this.isScrollable=!0),f.set(m,{defaultSize:v,defaultCollapsed:w,collapsedSize:E,minSize:S})}),this.defaultProps=f,this.setState(({collapsed:h})=>{const m=this.clientSize(this.element.parentElement);let v=m,w=N.Children.count(s);const E=[];this.defaultProps.forEach(({defaultSize:L,defaultCollapsed:x=!1},D)=>{let B=h[D]===void 0?x:h[D];const G=D===this.defaultProps.size-1,P=E.findIndex(pe=>!pe)<0;G&&P&&(B=!1);const te=B?this.sizeWhenCollapsed(D):L;te&&(v=v-te,w=w-1),E.push(B)});const S=[],_=[];return this.defaultProps.forEach(({defaultSize:L,minSize:x},D)=>{let B=v/w;const G=this.sizeWhenCollapsed(D);E[D]?B=G:L!==void 0?B=L:B<x&&(B=G+x),B<G&&(B=G,E[D]=!0);const P=`${100*B/m}%`;S.push(B),_.push(P)}),{sizes:S,percents:_,collapsed:E}})},this.onBeginDragHandle=s=>{this.originTotalSize=this.clientSize(this.element),this.originSizes=this.computeEffectiveItemSizes(),this.originCollapsed=[...this.state.collapsed],this.setState({resizing:!0},()=>{const{direction:f,onStartResize:h}=this.props;h&&h(f)})},this.onEndDragHandle=()=>{this.setState({resizing:!1})},this.sizeWhenCollapsed=s=>{const f=this.items[s],{collapsedSize:h}=this.defaultProps.get(s);return h!==void 0?h:(f.header?this.clientSize(f.header):0)+(this.offsetSize(f.element)-this.clientSize(f.element))},this.onDragHandle=(s,f,h)=>{const m=[...this.originSizes],v=[...this.originCollapsed];new cA(m,v,this.originTotalSize,this.sizeWhenCollapsed).distribute(s+1,this.isVertical?h:f);const w=m.map(E=>`${100*E/this.originTotalSize}%`);this.setState({sizes:m,percents:w,collapsed:v})};const a=N.Children.count(this.props.children);this.state={collapsed:[],resizing:!1,percents:N.Children.map(this.props.children,()=>`${100/a}%`)}}componentDidMount(){this.updateSizes()}componentDidUpdate(i,a){const{direction:s,children:f,onResize:h,animationDuration:m}=this.props;N.Children.count(f)!==N.Children.count(i.children)&&this.updateSizes();const{sizes:v,resizing:w}=this.state;v!==a.sizes&&h&&(w?h(s):setTimeout(()=>h(s),m))}get isVertical(){return this.props.direction==="vertical"}clientSize(i){const{clientWidth:a,clientHeight:s}=i;return this.isVertical?s:a}offsetSize(i){const{offsetWidth:a,offsetHeight:s}=i;return this.isVertical?s:a}render(){const{direction:i}=this.props,{resizing:a}=this.state,s=a?`${Fb}--resizing`:"",f=this.isScrollable?`${Fb}--scrollable`:"";return N.createElement("div",{className:`${Fb} ${Fb}--${i} ${s} ${f}`,ref:h=>{this.element=h}},this.renderItems())}renderItems(){const{sizes:i,percents:a,collapsed:s}=this.state,{children:f,direction:h}=this.props;return N.Children.map(f,(m,v)=>{if(typeof m!="object")throw new Error("Accordion should have only AccordionItem elements as children");const w=v===N.Children.count(f)-1,E=s[v]?i[v]:a[v],S={ref:_=>{this.items[v]=_},collapsed:s[v],size:E,direction:h,onChangeCollapsed:_=>this.onItemChangeCollapsed({itemIndex:v,itemCollapsed:_}),onBeginDragHandle:w?void 0:()=>this.onBeginDragHandle(v),onDragHandle:w?void 0:(_,L)=>this.onDragHandle(v,_,L),onEndDragHandle:this.onEndDragHandle};return N.cloneElement(m,S)})}computeEffectiveItemSizes(){const i=[];return this.items.forEach((a,s)=>{if(a)if(this.state.collapsed[s]){const f=this.sizeWhenCollapsed(s);i.push(f)}else i.push(this.offsetSize(a.element))}),i}onItemChangeCollapsed({itemIndex:i,itemCollapsed:a}){const s=this.clientSize(this.element),f=this.computeEffectiveItemSizes();if(f.length===1)return;const h=[...this.state.collapsed],m=f[i],v=this.sizeWhenCollapsed(i),w=new cA(f,h,s,this.sizeWhenCollapsed);if(a){const S=Math.max(m-v,0);f[i]=v,i===f.length-1?w.expand(S,i-1):w.expand(S,i+1)}else{const{defaultSize:S,minSize:_}=this.defaultProps.get(i),L=(S||s/f.length)-v;let x;i===f.length-1?x=w.collapseForward({shift:L,from:i-1,to:i}):x=w.collapseForward({shift:L,from:i+1,to:f.length}),x=Math.max(x,w.leftoverSize()),x<L&&(x+=w.collapseForward({shift:L-x,from:0,to:i})),x<_&&(x=_),f[i]=Math.round(v+x)}h[i]=a;const E=f.map(S=>`${100*S/s}%`);this.setState({sizes:f,percents:E,collapsed:h})}},cA=class{constructor(i,a,s,f){this.sizes=i,this.collapsed=a,this.totalSize=s,this.sizeWhenCollapsed=f}distribute(i,a){if(a>0){let s=this.collapseForward({shift:a,from:i,to:this.sizes.length});s=Math.max(s,this.leftoverSize()),this.expand(s,i-1)}else{let s=this.collapseBackward({shift:-a,from:0,to:i});s=Math.max(s,this.leftoverSize()),this.expand(s,i)}}collapseForward({shift:i,from:a,to:s}){if(i<=0)return 0;let f=i;for(let h=a;h<s;h++)f=this.collapse(f,h);return i-f}collapseBackward({shift:i,from:a,to:s}){if(i<=0)return 0;let f=i;for(let h=s-1;h>=a;h--)f=this.collapse(f,h);return i-f}collapse(i,a){if(this.collapsed[a])return i;const s=this.sizes[a],f=this.sizeWhenCollapsed(a),h=Math.round(Math.max(s-i,f));return this.sizes[a]=h,this.collapsed[a]=h<=f,i-(s-h)}expand(i,a){if(i<=0)return 0;const s=this.sizes[a],f=Math.round(s+i);return this.sizes[a]=f,this.collapsed[a]=f<=this.sizeWhenCollapsed(a),f-s}leftoverSize(){const i=this.sizes.reduce((a,s)=>a+s,0);return Math.max(this.totalSize-i,0)}},fA=(function(i){return i[i.Left=1]="Left",i[i.Right=2]="Right",i})({}),tc="graph-explorer-accordion-item",vM=class extends N.Component{static{this.defaultProps={direction:"vertical"}}constructor(i){super(i),this.state={resizing:!1}}get element(){return this._element}get header(){return this._header}get isVertical(){return this.props.direction==="vertical"}renderToggleButton(){const{collapsed:i,dockSide:a,onChangeCollapsed:s}=this.props;if(!a)return null;const f=a===1?"left":"right";return N.createElement("div",{className:`${tc}__handle-btn ${tc}__handle-btn-${f}`,onClick:()=>s(!i)})}render(){const{heading:i,bodyClassName:a,children:s,bodyRef:f,collapsed:h,size:m,direction:v,onBeginDragHandle:w,onDragHandle:E,onEndDragHandle:S,dockSide:_}=this.props,{resizing:L}=this.state,x=w&&E&&S,D=this.isVertical?{height:m}:{width:m},B=!(h&&_);return N.createElement("div",{className:`${tc} ${tc}--${h?"collapsed":"expanded"} ${tc}--${v}
                ${L?`${tc}--resizing`:""}`,ref:G=>{this._element=G},style:D},N.createElement("div",{className:`${tc}__inner`},i?N.createElement("div",{className:`${tc}__header`,ref:G=>{this._header=G},onClick:()=>this.props.onChangeCollapsed(!h)},i):null,N.createElement("div",{className:`${tc}__body`},s&&B?s:N.createElement("div",{ref:f,className:`${a||""}`}))),x?N.createElement(o1,{className:`${tc}__handle ${tc}__handle-${v}`,onBeginDragHandle:G=>{this.setState({resizing:!0}),w()},onDragHandle:(G,P,te)=>E(P,te),onEndDragHandle:G=>{this.setState({resizing:!1}),S()}}):null,this.renderToggleButton())}},bM=28,Mh=(function(i){return i.Row="row",i.Column="column",i.Component="component",i})({}),hA=class extends N.Component{renderAccordion({children:i,direction:a,animationDuration:s}){const{_onStartResize:f,_onResize:h}=this.props,m=i.map((v,w)=>{let E;a==="horizontal"&&!v.undocked&&(w===0?E=fA.Left:w===i.length-1&&(E=fA.Right));let S=v.collapsedSize;return S===void 0&&a==="horizontal"&&(S=bM),N.createElement(vM,{key:v.type==="component"?v.id:w,heading:v.type==="component"?v.heading:void 0,dockSide:E,defaultSize:v.defaultSize,defaultCollapsed:v.defaultCollapsed,collapsedSize:S,minSize:v.minSize},this.renderLayout(v))});return N.createElement(yM,{direction:a,onStartResize:f,onResize:h,animationDuration:s},m)}renderLayout(i){return i.type==="row"?this.renderAccordion({children:i.children,direction:"horizontal",animationDuration:i.animationDuration}):i.type==="column"?this.renderAccordion({children:i.children,direction:"vertical",animationDuration:i.animationDuration}):i.type==="component"?N.Children.only(i.content):null}render(){const{layout:i}=this.props;return this.renderLayout(i)}},_M=class extends N.Component{constructor(...i){super(...i),this.untilMouseUpClasses=[],this.cancellation=new ii,this.triggerWorkspaceEvent=a=>{const{onWorkspaceEvent:s}=this.props;s&&s(a)},this.onCreateInstance=async(a,s)=>{const{editor:f,view:h,model:m,metadataApi:v}=this.props;await SM();const w=m.history.startBatch(),E=this.cancellation.signal,S=await ar.mapCancelledToNull(E,v.generateNewElement([a],E));if(S===null)return;const _=f.createNewEntity({elementModel:S}),L=s||TM(this.paperArea);_.setPosition(L),h.performSyncUpdate(),wM(_,L),w.store(),f.setSelection([_]),f.showEditEntityForm(_)},this.onDocumentMouseUp=()=>{for(const a of this.untilMouseUpClasses)this.element.classList.remove(a);this.untilMouseUpClasses=[]},this.onDropOnPaper=(a,s)=>{a.preventDefault();const f={dragEvent:a,paperPosition:s};if(this.props.view._tryHandleDropOnPaper(f))return;const h=AM(a);h.length>0&&this.props.editor.onDragDrop(h,s)}}addToolbarWidgetToPaper(){const{hideToolbar:i,view:a,toolbar:s}=this.props;i||a.setPaperWidget({key:"toolbar",widget:N.createElement(EM,null,s),attachment:cs.Viewport})}getLeftPanelLayout(){const{view:i,editor:a,model:s,searchCriteria:f,onSearchCriteriaChanged:h}=this.props,m=N.createElement(oM,{view:i,editor:a,onClassSelected:w=>{const E=s.createClass(w);h({elementType:E})},onCreateInstance:this.onCreateInstance}),v=N.createElement(_D,{view:i,model:s,criteria:f||{},onCriteriaChanged:h});return{type:Mh.Column,children:[{id:"classes",type:Mh.Component,content:m,heading:"Classes"},{id:"instances",type:Mh.Component,content:v,heading:"Instances"}],defaultSize:275,defaultCollapsed:!this.props.isLeftPanelOpen}}getRightPanelLayout(){const{view:i,editor:a,elementsSearchPanel:s}=this.props,f={type:Mh.Column,children:[{id:"connections",type:Mh.Component,content:N.createElement(mM,{view:i,editor:a}),heading:"Connections"}],defaultSize:275,defaultCollapsed:!this.props.isRightPanelOpen};return s&&(f.children=[...f.children,{id:"search",type:Mh.Component,content:N.cloneElement(s,{view:i,editor:a}),heading:"Search in diagram"}]),f}render(){const i={id:"paper",type:Mh.Component,content:N.createElement("div",{className:"graph-explorer__main-panel",style:{flex:"1 1 0px",width:"100%"}},N.createElement(MT,{ref:s=>{this.paperArea=s},view:this.props.view,zoomOptions:this.props.zoomOptions,hideScrollBars:this.props.hideScrollBars,watermarkSvg:this.props.watermarkSvg,watermarkUrl:this.props.watermarkUrl,onDragDrop:this.onDropOnPaper,onZoom:this.props.onZoom}))},a=this.props.hidePanels?i:{type:Mh.Row,children:[this.getLeftPanelLayout(),i,this.getRightPanelLayout()]};return N.createElement(e1.Provider,{value:{workspace:{editor:this.props.editor,triggerWorkspaceEvent:this.triggerWorkspaceEvent}}},N.createElement("div",{ref:s=>{this.element=s},className:"graph-explorer"},N.createElement("div",{className:"graph-explorer__workspace"},N.createElement(hA,{layout:a,_onStartResize:s=>this.untilMouseUp({preventTextSelection:!0,verticalResizing:s==="vertical",horizontalResizing:s==="horizontal"})}))))}componentDidMount(){document.addEventListener("mouseup",this.onDocumentMouseUp),this.addToolbarWidgetToPaper()}componentWillUnmount(){document.removeEventListener("mouseup",this.onDocumentMouseUp),this.cancellation.abort()}preventTextSelection(){this.untilMouseUp({preventTextSelection:!0})}untilMouseUp(i){this.untilMouseUpClasses=[],i.preventTextSelection&&this.untilMouseUpClasses.push("graph-explorer--unselectable"),i.horizontalResizing&&this.untilMouseUpClasses.push("graph-explorer--horizontal-resizing"),i.verticalResizing&&this.untilMouseUpClasses.push("graph-explorer--vertical-resizing");for(const a of this.untilMouseUpClasses)this.element.classList.add(a)}},EM=class extends N.Component{render(){return N.createElement("div",{className:"graph-explorer__toolbar-widget"},this.props.children)}};function SM(){return Promise.resolve()}function TM(i){const a=i.getAreaMetrics();return i.clientToPaperCoords(a.clientWidth/2,a.clientHeight/2)}function wM(i,a){const s={x:a.x-i.size.width/2,y:a.y-i.size.height/2};i.setPosition(s)}function AM(i){const a=(s,f=!1)=>{try{const h=i.dataTransfer.getData(s);if(!h)return;let m;try{m=JSON.parse(h)}catch{m=[f?decodeURI(h):h]}return m.length===0?void 0:m}catch{return}};return a("application/x-graph-explorer-elements")||a("text/uri-list",!0)||a("text")||[]}var CM="https://graph-explorer.org/",xM=void 0,LM=class extends N.Component{static{this.defaultProps={hideTutorial:!0,collapseNavigator:!1,leftPanelInitiallyOpen:!0,rightPanelInitiallyOpen:!1,languages:[{code:"en",label:"English"},{code:"ru",label:"Russian"}],language:"en"}}constructor(i){super(i),this.listener=new Hn,this._watermarkSvg=xM,this._watermarkUrl=CM,this.zoomToFit=()=>{this.markup.paperArea.zoomToFit()},this.zoomToFitRect=P=>{this.markup.paperArea.zoomToFitRect(P)},this.clearAll=()=>{this.editor.removeItems([...this.model.elements])},this.forceLayout=()=>{const P=this.model.history.startBatch("Force layout");P.history.registerToUndo(yE.capture(this.model)),Xb(this.model,JE({model:this.model}));for(const te of this.model.links)te.setVertices([]);P.store()},this.exportSvg=P=>{this.markup.paperArea.exportSVG().then(te=>{P=P||"diagram.svg",(0,rA.default)(new Blob(['<?xml version="1.0" encoding="UTF-8"?>'+te],{type:"image/svg+xml"}),P)})},this.exportPng=P=>{P=P||"diagram.png",this.markup.paperArea.exportPNG({backgroundColor:"white"}).then(te=>{(0,rA.default)(xL(te),P)})},this.undo=()=>{this.model.history.undo()},this.redo=()=>{this.model.history.redo()},this.zoomBy=P=>{this.markup.paperArea.zoomBy(P)},this.zoomIn=()=>{this.markup.paperArea.zoomIn()},this.zoomOut=()=>{this.markup.paperArea.zoomOut()},this.print=()=>{this.markup.paperArea.exportSVG().then(P=>{const te=window.open("",void 0,"width=1280,height=720");te.document.write(P),te.document.close(),te.print()})},this.changeLanguage=P=>{const{onLanguageChange:te}=this.props;te?te(P):(this.view.setLanguage(P),this.forceUpdate())},this.centerTo=P=>{this.markup.paperArea.centerTo(P)};const{hideHalo:a,history:s,viewOptions:f={},metadataApi:h,validationApi:m,propertyEditor:v,elementTemplateResolver:w,linkTemplateResolver:E,typeStyleResolver:S,selectLabelLanguage:_}=this.props,{linkRouter:L,onIriClick:x,disableDefaultHalo:D,suggestProperties:B,groupBy:G}=f;this.model=new jw(s||new eT,G||[]),this.view=new fT(this.model,{elementTemplateResolver:w,linkTemplateResolver:E,typeStyleResolver:S,selectLabelLanguage:_,linkRouter:L,onIriClick:x}),this.editor=new Ww({model:this.model,view:this.view,disableHalo:a||D,suggestProperties:B,validationApi:m,propertyEditor:v}),this.editor.setMetadataApi(h),this.view.setLanguage(this.props.language),this.state={}}_getPaperArea(){return this.markup?this.markup.paperArea:void 0}_setWatermark(i,a){this._watermarkSvg=i,this._watermarkUrl=a,this.forceUpdate()}render(){const{hidePanels:i,hideToolbar:a,metadataApi:s,hideScrollBars:f,onWorkspaceEvent:h,_elementsSearchPanel:m}=this.props;return(0,N.createElement)(_M,{ref:v=>{this.markup=v},hidePanels:i,hideToolbar:a,hideScrollBars:f,model:this.model,view:this.view,editor:this.editor,metadataApi:s,leftPanelInitiallyOpen:this.props.leftPanelInitiallyOpen,rightPanelInitiallyOpen:this.props.rightPanelInitiallyOpen,searchCriteria:this.state.criteria,onSearchCriteriaChanged:v=>this.setState({criteria:v}),zoomOptions:this.props.zoomOptions,onZoom:this.props.onZoom,isLeftPanelOpen:this.props.leftPanelInitiallyOpen,isRightPanelOpen:this.props.rightPanelInitiallyOpen,toolbar:(0,N.createElement)(OM,{workspace:this}),onWorkspaceEvent:h,watermarkSvg:this._watermarkSvg,watermarkUrl:this._watermarkUrl,elementsSearchPanel:m})}componentDidMount(){const{onWorkspaceEvent:i}=this.props;this.editor._initializePaperComponents(this.markup.paperArea),this.updateNavigator(!this.props.hideNavigator),this.listener.listen(this.model.events,"loadingSuccess",()=>{this.view.performSyncUpdate(),this.markup.paperArea.centerContent()}),this.listener.listen(this.model.events,"elementEvent",({key:a,data:s})=>{if(!s.requestedAddToFilter)return;const{source:f,linkType:h,direction:m}=s.requestedAddToFilter;this.setState({criteria:{refElement:f,refElementLink:h,linkDirection:m}}),i&&i(Lh.searchUpdateCriteria)}),this.listener.listen(this.markup.paperArea.events,"pointerUp",a=>{this.props.onPointerUp&&this.props.onPointerUp(a)}),this.listener.listen(this.markup.paperArea.events,"pointerMove",a=>{this.props.onPointerMove&&this.props.onPointerMove(a)}),this.listener.listen(this.markup.paperArea.events,"pointerDown",a=>{this.props.onPointerDown&&this.props.onPointerDown(a)}),i&&(this.listener.listen(this.editor.events,"changeSelection",()=>i(Lh.editorChangeSelection)),this.listener.listen(this.editor.events,"toggleDialog",()=>i(Lh.editorToggleDialog)),this.listener.listen(this.editor.events,"addElements",()=>i(Lh.editorAddElements)))}componentDidUpdate(i){i.onLanguageChange&&i.language!==this.view.getLanguage()&&this.view.setLanguage(i.language),i.metadataApi!==this.editor.metadataApi&&this.editor.setMetadataApi(i.metadataApi),i.hideNavigator!==this.props.hideNavigator&&this.updateNavigator(!i.hideNavigator)}componentWillUnmount(){this.listener.stopListening(),this.view.dispose()}updateNavigator(i){if(i){const a=(0,N.createElement)(eM,{view:this.view,expanded:!this.props.collapseNavigator});this.view.setPaperWidget({key:"navigator",widget:a,attachment:cs.Viewport})}else this.view.setPaperWidget({key:"navigator",widget:void 0,attachment:cs.Viewport})}getModel(){return this.model}getDiagram(){return this.view}getEditor(){return this.editor}preventTextSelectionUntilMouseUp(){this.markup.preventTextSelection()}showWaitIndicatorWhile(i){this.editor.setSpinner({}),i&&i.then(()=>{this.editor.setSpinner(void 0)}).catch(a=>{console.error(a),this.editor.setSpinner({statusText:"Unknown error occured",errorOccured:!0})})}},OM=class extends N.Component{constructor(...i){super(...i),this.listener=new Hn}render(){const{workspace:i}=this.props,a=i.getDiagram(),s=i.getEditor(),{languages:f,onSaveDiagram:h,onPersistChanges:m,hidePanels:v,toolbar:w}=i.props,E=m?!Ri.isEmpty(s.authoringState):void 0,S=!E,_={onZoomIn:i.zoomIn,onZoomOut:i.zoomOut,onZoomToFit:i.zoomToFit,onPrint:i.print,onExportSVG:i.exportSvg,onExportPNG:i.exportPng,canSaveDiagram:S,onSaveDiagram:h?()=>h(i):void 0,canPersistChanges:E,onPersistChanges:m?()=>m(i):void 0,onForceLayout:()=>{i.forceLayout(),i.getDiagram().performSyncUpdate(),i.zoomToFit()},onClearAll:i.clearAll,languages:f,selectedLanguage:a.getLanguage(),onChangeLanguage:i.changeLanguage,hidePanels:v};return w?(0,N.cloneElement)(w,{..._,...w.props}):(0,N.createElement)(nA,_)}componentDidMount(){const{workspace:i}=this.props,a=i.getEditor(),s=i.getDiagram();this.listener.listen(a.events,"changeAuthoringState",()=>{this.forceUpdate()}),this.listener.listen(s.events,"changeLanguage",()=>{this.forceUpdate()})}componentWillUnmount(){this.listener.stopListening()}};function DM(i,a,s){(0,WD.createRoot)(a).render((0,N.createElement)(i,s))}var MM=Dx({BatchingScheduler:()=>gE,BufferingQueue:()=>Cb,Cancellation:()=>ii,CancellationToken:()=>ar,CancelledError:()=>mE,Debouncer:()=>us,HashMap:()=>xm,HtmlSpinner:()=>fs,KeyedObserver:()=>xb,LINK_SHOW_IRI:()=>A3,ListElementView:()=>nS,MoveDirection:()=>zT,OrderedMap:()=>CE,Paper:()=>EE,PaperArea:()=>MT,PaperAreaContext:()=>kb,SearchResults:()=>iS,Spinner:()=>O0,TemplateProperties:()=>x2,TransformedSvgCanvas:()=>Mb,WorkspaceContext:()=>e1,animateInterval:()=>J2,biasFreePadded:()=>QE,cloneMap:()=>L0,cloneSet:()=>wE,delay:()=>Z2,easeInOutBezier:()=>K2,getContentFittingBox:()=>x0,getContentFittingBoxForLayout:()=>Mw,getOrCreateArrayInMap:()=>AE,getOrCreateSetInMap:()=>Ub,groupForceLayout:()=>VE,groupRemoveOverlaps:()=>$E,highlightSubstring:()=>c1,isEmptyMap:()=>RL,makeMoveComparator:()=>UT,objectValues:()=>zb,observeElementTypes:()=>F2,observeLinkTypes:()=>u3,observeProperties:()=>W2,padded:()=>XE,paneFromPaperCoords:()=>Rb,paneTopLeft:()=>TT,paperFromPaneCoords:()=>wT,startDragElements:()=>Vw,totalPaneSize:()=>ST});nt.AsyncModel=jw,nt.AuthoredEntity=BT,nt.AuthoringKind=t1,nt.AuthoringState=Ri,nt.Cancellation=ii,nt.CancellationToken=ar,nt.CancelledError=mE,nt.Command=Wu,nt.CompositeDataProvider=jO,nt.DBPediaSettings=rO,nt.DIAGRAM_CONTEXT_URL_V1=A2,nt.DefaultElementTemplate=Yx,nt.DefaultElementTemplateBundle=qT,nt.DefaultToolbar=nA,nt.DemoDataProvider=UL,nt.DiagramModel=Iw,nt.DiagramView=fT,nt.DraggableHandle=o1,nt.EditorController=Ww,nt.Element=fl,nt.EmbeddedLayer=NT,nt.EventObserver=Hn,nt.EventSource=lo,nt.GraphBuilder=Nw,nt.GroupTemplate=ML,Object.defineProperty(nt,"InternalApi",{enumerable:!0,get:function(){return MM}}),nt.IriClickIntent=Wv,nt.Link=Jr,nt.LinkDirection=Ku,nt.LinkVertex=w0,nt.NonRememberingHistory=eT,nt.OWLRDFSSettings=Hb,nt.OWLRDFSSettingsOverride=JT,nt.OWLStatsSettings=KT,nt.PLACEHOLDER_ELEMENT_TYPE=iE,nt.PLACEHOLDER_LINK_TYPE=aE,nt.QLeverSettings=sO,nt.RDFSettings=ME,nt.Rect=rE,nt.RenderingLayer=Am,nt.RestoreGeometry=yE,nt.SparqlDataProvider=DO,nt.SparqlGraphBuilder=nD,nt.SparqlQueryMethod=OO,nt.StandardTemplate=IT,nt.ValidationState=p1,nt.Vector=Zu,nt.WidgetAttachment=cs,nt.WikidataSettings=nO,nt.Workspace=LM,nt.WorkspaceEventKey=Lh,nt.WorkspaceLayout=hA,nt.WorkspaceLayoutType=Mh,nt.applyLayout=Xb,nt.boundsOf=Ju,nt.calculateLayout=PE,nt.computeGrouping=lE,nt.computePolyline=S0,nt.computePolylineLength=Pv,nt.convertToSerializedDiagram=VO,nt.executeSparqlConstruct=dw,nt.executeSparqlQuery=hw,nt.findElementAtPoint=D2,nt.findNearestSegmentIndex=O2,nt.forceLayout=JE,nt.getContentFittingBox=x0,nt.getPointAlongPolyline=T0,nt.hashLink=_m,nt.isIriProperty=Xv,nt.isLinkConnectedToElement=Bb,nt.isLiteralProperty=E0,nt.isPolylineEqual=bb,nt.makeGraphItems=kw,nt.makeLayout=zw,nt.makeLayoutData=Tw,nt.makeSerializedDiagram=IE,nt.removeOverlaps=Dw,nt.renderTo=DM,nt.requestElementData=FE,nt.restoreLinksBetweenElements=WE,nt.sameElement=Bx,nt.sameLink=Er,nt.setElementData=Ob,nt.setElementExpanded=Lb,nt.setLinkData=Db});

//# sourceMappingURL=graph-explorer-full.min.js.map