
    (function () {
      try {
        let process = { env: { NODE_ENV: 'production' } };

        const randomComponentId = 'osc-component-66-468187-' + Math.floor(Math.random() * 1000000);
        const renderedWidgets = {};

        const currentScript = document.currentScript;
          currentScript.insertAdjacentHTML('afterend', `<div class="openstad" id="${randomComponentId}"></div>`);

          
          const allowedHosts = ["api.doemee1stroom.nl","doemee1stroom.nl","samen1nergie.nl","www.samen1nergie.nl","samen1nergie.stimmt.dev","www.samen1nergie.stimmt.dev","stimmt.dev","auth.doemee1stroom.nl","admin.doemee1stroom.nl"];
          const currentHostname = window.location.hostname;
          function stripWww(d) { return d && d.startsWith('www.') ? d.slice(4) : d; }
          var normalizedHost = stripWww(currentHostname);
          const domainAllowed = allowedHosts.some(function(host) {
            return normalizedHost === stripWww(host.split(':')[0]);
          });

          if (!domainAllowed) {
            try {
              fetch(currentScript.src.split('?')[0] + '/report-block', {
                method: 'POST',
                headers: { 'Content-Type': 'application/json' },
                body: JSON.stringify({ domain: currentHostname, referer: window.location.href }),
                credentials: 'omit',
              }).catch(function() {});
            } catch(e) {}
            var warningEl = document.getElementById(randomComponentId);
            if (warningEl) {
              warningEl.innerHTML = '<div style="border: 2px solid #f59e0b; background-color: #fffbeb; border-radius: 8px; padding: 16px 20px; font-family: sans-serif; color: #92400e; margin: 12px 0;">' +
                '<strong style="font-size: 16px;">OpenStad widget kan niet worden geladen</strong>' +
                '<p style="margin: 8px 0 0 0; font-size: 14px;">Deze website (<strong>' + currentHostname + '</strong>) staat niet in de lijst met toegestane websites voor dit project. ' +
                'Voeg dit domein toe in het OpenStad admin-panel onder Instellingen &gt; Toegestane websites.</p></div>';
            }
            console.error('OpenStad: widget kan niet laden op ' + currentHostname + ' (domein niet toegestaan)');
            currentScript.remove();
            return;
          }
          

          
          try {
            var reportLoadUrl = currentScript.src.split('?')[0] + '/report-load';
            var reportLoadBody = JSON.stringify({ url: window.location.href });
            fetch(reportLoadUrl, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: reportLoadBody, credentials: 'omit', keepalive: true }).catch(function(){});
          } catch (e) {}
          

          const redirectUri = new URL(encodeURI(window.location.href));
          redirectUri.searchParams.delete('openstadlogout');
          redirectUri.searchParams.delete('openstadlogintoken');
          redirectUri.hash = '';

          const config = JSON.parse(`{"projectId":"6","sorting":[{"label":"Titel","value":"title"}],"itemLink":"https://www.samen1nergie.nl/denk-mee-over-laadpalen?openstadResourceId=[id]","rawInput":"","applyText":"Toepassen","resetText":"Reset","displayMap":true,"displayTags":true,"displayType":"cardrow","displayVote":true,"displayTitle":true,"itemsPerPage":30,"resourceType":"resource","displayBanner":false,"displayBudget":true,"displaySearch":false,"documentsDesc":"","clickableImage":false,"defaultSorting":"title","displaySorting":false,"displaySummary":true,"documentsTitle":"","titleMaxLength":50,"displayArguments":true,"displayDocuments":false,"summaryMaxLength":140,"textActiveSearch":"Je ziet hier zoekresultaten voor [zoekterm]","displayLikeButton":false,"displayPagination":true,"displaySearchText":false,"displayTagFilters":true,"onlyIncludeTagIds":",33","searchPlaceholder":"Zoeken","displayDescription":false,"displayStatusLabel":false,"descriptionMaxLength":20,"onlyIncludeStatusIds":"","displayLocationFilter":true,"includeOrExcludeTagIds":"exclude","includeOrExcludeStatusIds":"include","resourceOverviewMapWidget":{"ctaButton":{"show":false},"datalayer":[{"id":12,"name":"Andere laadpalen laag Westervoort"},{"id":15,"name":"Bestaande Laadpalen Duiven"},{"id":21,"name":"Bestaande laadpalen"},{"id":24,"name":"Mogelijke nieuwe laadpalen"},{"id":27,"name":"Nieuwe locaties participatie"}],"countButton":{"show":false},"width":"","height":"","customUrl":"https://service.pdok.nl/hwh/luchtfotorgb/wmts/v1_0/Actueel_ortho25/EPSG:3857/{z}/{x}/{y}.jpeg","categorize":{},"clustering":{},"markerHref":"https://www.samen1nergie.nl/denk-mee-over-laadpalen?openstadResourceId=[id]","tilesVariant":"custom","customPolygon":[],"customPolygonUrl":[null,null,null,null],"autoZoomAndCenter":"markers","enableOnOffSwitching":false},"api":{"url":"https://api.doemee1stroom.nl"},"login":{"url":"https://api.doemee1stroom.nl/auth/project/6/login?useAuth=default&forceNewLogin=1&redirectUri=[[REDIRECT_URI]]","anonymous":{"url":"https://api.doemee1stroom.nl/auth/project/6/login?useAuth=anonymous&forceNewLogin=1&redirectUri=[[REDIRECT_URI]]"}},"logout":{"url":"https://api.doemee1stroom.nl/auth/project/6/logout?useAuth=default&redirectUri=[[REDIRECT_URI]]"},"imageUrl":"https://api.doemee1stroom.nl/api/project/6/upload","zipCodeApiUrl":"https://openstad-cdn.nl/api/postcode.php?postcode=","zipCodeAutofillApiUrl":"https://openstad-cdn.nl/api/autofill.php?query=","serverTime":"2026-08-08T03:43:06.593Z","gtmEnvironment":"prod","randomSortRotationMs":604800000,"map":{"areaId":"6","maxZoom":"19","minZoom":"12","customUrl":"https://service.pdok.nl/hwh/luchtfotorgb/wmts/v1_0/Actueel_ortho25/EPSG:3857/{z}/{x}/{y}.jpeg","tilesVariant":"custom","autoZoomAndCenter":"markers"},"auth":{"default":"openstad","provider":{"openstad":{"adapter":"openstad","clientId":"27826b01b2b2df7b525f83efaf08f05e"},"anonymous":{"adapter":"openstad","clientId":"aa8bc2a833419b816944530db057bb22"}}},"polls":{"canAddPolls":false,"requiredUserRole":"anonymous"},"users":{"canCreateNewUsers":true,"allowUseOfNicknames":false},"votes":{"isActive":true,"voteType":"likes","maxBudget":0,"minBudget":0,"isViewable":true,"voteValues":{"0":{"label":"voor","value":"yes"},"1":{"label":"tegen","value":"no"}},"mustConfirm":false,"maxResources":100,"minResources":1,"withExisting":"error","requiredUserRole":"anonymous"},"project":{"cssUrl":{"0":"https://openstad-cdn.nl/css/1stroom/variables.css","1":"https://openstad-cdn.nl/css/1stroom/custom.css"},"endDate":"2025-09-29T22:00:00.000Z","cssCustom":".resource-detail-comments-container .banner > button,\\n.openstad .banner > button { display: none; }\\n.openstad .banner { display: none !important;}\\n\\n@container resourceOverviewWithMapContainer (min-width: 800px) {\\n    .flexible-section .openstad .resourceOverviewWithMap-container .detail-container {\\n        grid-row: 1;\\nmin-height: 70vh;\\n    }\\nhtml    .openstad .resourceOverviewWithMap-container {\\n        grid-template-columns: 1fr 2fr;\\n    }\\n}\\n\\nhtml .openstad .map-container--buttons  .osc-map-legend.legend .legend-info {\\n    display: flex;\\n    align-items: center;\\n    margin-left: 0;\\n    height: 20px;\\n}\\n\\nhtml .openstad .osc-map-legend.legend .legend-label span { font-size: 15px; }\\n\\nhtml .openstad .osc-map-legend.legend .legend-icon {\\n    width: 30px;\\n    height: 40px;\\n    margin-right: 5px;\\n    display: block;\\n    position: relative;\\n    left: 0;\\n    top: -13px;\\n}\\n.openstad .map-wrapper {\\n    min-height: 70vh;\\n}\\n@container resourceOverviewWithMapContainer (max-width: 1000px) {\\n    .openstad .resourceOverviewWithMap-container {\\n        height: 100%;\\ngrid-template-rows: 70vh;\\n    }\\n}\\n\\n.openstad .osc .resource-card--link .osc-resource-overview-content-item-footer .icon>p {\\n    margin: 0;\\npadding: 0;\\n}\\n.openstad .button-group {\\n    margin: 0;\\njustify-content: flex-start;\\n}\\n\\n.openstad .button-group > button{\\n\\t\\twidth: fit-content;\\n}\\n\\n.flexible-section img[src=\\"https://img.doemee1stroom.nl/image/0df3799f8ebabad792bf7357907f1255\\"],\\n.flexible-section img[src=\\"https://img.doemee1stroom.nl/image/9c24315f8759792ebc01f2fe4e7144de\\"] {\\ncontent: url(\\"https://img.doemee1stroom.nl/image/dd48e7ee2954d3017ef53f0ce11f0dca\\");\\n}\\n\\n\\n\\n.osc-resource-form-item-content label.utrecht-form-label.utrecht-form-label--radio.--label-grid {\\n    display: flex;\\n    flex-direction: row-reverse;\\n    justify-content: flex-end;\\n}\\n\\n\\nbody .openstad .resourceOverviewWithMap-container .osc-carousel {\\n\\tdisplay: none; \\n}\\n\\nbody .openstad .resourceOverviewWithMap-container .resource-card--link {\\n    display: flex;\\n    flex-direction: column;\\n}\\n\\n.openstad .osc .osc-resource-form-item-content .form-container > .question:first-child{\\n\\tdisplay: none;\\n}\\n\\n\\n.openstad .osc .icon>i.big {\\n    font-size: 16px;\\n    font-weight: 400;\\n}\\n\\n.openstad .osc .resource-card--link .osc-resource-overview-content-item-footer .icon>p {\\n    margin: 0;\\n    font-weight: 400;\\n}\\n\\nbody .openstad .resourceOverviewWithMap-container .resource-card--link {\\n    gap: 1rem;\\n}\\n\\n.openstad .detail-container > .osc > .map-container--buttons { display: none; }\\n\\n\\n.openstad .osc-paginator {\\n    flex-wrap: wrap;\\n}\\n\\n.openstad .osc-resource-overview-content-item-footer .icon:nth-child(n + 2) {\\ndisplay: none;\\n}\\n\\n.openstad .osc-enquete-item-content { max-width: 768px; }\\n\\nhtml .openstad .map-container.osc-map {\\n    aspect-ratio: unset;\\n}\\n\\n.openstad .question-type-map .utrecht-form-field__label {\\n    order: 0;\\n}\\n\\nhtml .openstad .leaflet-container .leaflet-marker-pane [src=\\"https://img.doemee1stroom.nl/image/410a427c595ccf062408115eedf9e216\\"] {\\n    pointer-events: none;\\n}\\n.openstad .banner {  max-width: 768px; }\\n.openstad .banner > h6 { font-size: 0; }\\n.openstad .banner > h6:after {\\ncontent:'Weet u een betere plek voor deze laadpaal? Klik op aanmelden en geef uw suggestie door.';\\nfont-size: 18px;\\n    line-height: 1.3;\\n}\\n\\n.openstad .reaction-name { display: none; }\\n\\nhtml .openstad .comment-item {\\n    padding: 20px;\\n}\\nhtml .openstad .comment-item .comment-item-header .edit-delete-button-group {\\n    position: absolute;\\n    right: 0;\\n    top: 0;\\n}\\n\\n.banner + div + div {\\nopacity: 0.5;\\n}\\n\\n.osc-resources-filter osc-flex-columned > .form-element > label {\\n\\tmargin-bottom: 6px;\\n    display: block;\\n}","projectToggle":true,"projectHasEnded":false,"endDateNotificationSent":true},"widgets":{"beta":false,"deprecated":false},"comments":{"canLike":true,"canReply":false,"adminLabel":"Beheerder","canComment":false,"closedText":"De reactiemogelijkheid is gesloten, u kunt niet meer reageren","requiredUserRole":"member","maxCharactersError":"Tekst moet maximaal {maxCharacters} karakters bevatten","minCharactersError":"Tekst moet minimaal {minCharacters} karakters bevatten","descriptionMaxLength":500,"descriptionMinLength":30,"maxCharactersWarning":"Je hebt nog {maxCharacters} tekens over","minCharactersWarning":"Nog minimaal {minCharacters} tekens"},"resources":{"displayTheme":false,"modbreakTitle":"1Stroom","titleMaxLength":30000,"titleMinLength":5,"displayLocation":false,"displayModbreak":false,"minimumYesVotes":100,"showVoteButtons":true,"summaryMaxLength":30000,"summaryMinLength":5,"canAddNewResources":true,"descriptionMaxLength":30000,"descriptionMinLength":5,"displayNeighbourhood":false,"canEditAfterFirstLikeOrComment":false},"tagGroups":[{"type":"Plaats","label":"Plaats","multiple":false,"projectId":""}],"bannerText":"Concept plankaart Duiven ","displayVariant":"default","filterBehavior":"or","showActiveTags":true,"displayTagGroupName":false,"widgetId":"66"}`.replaceAll("[[REDIRECT_URI]]", encodeURIComponent(redirectUri.toString())));

          function insertCssLinks(urls) {
            const head = document.querySelector('head');
            const body = document.querySelector('body');
            const firstScript = body ? body.querySelector('script') : null;

            urls.forEach(urlObj => {
              const url = urlObj?.url;
              const loadFirst = urlObj?.loadFirst;

              const existingLinks = Array.from(document.querySelectorAll('link[rel="stylesheet"]')).map(link => link.href);
              if (!existingLinks.includes(url)) {
                const link = document.createElement('link');
                link.rel = 'stylesheet';
                link.href = url;

                if (loadFirst === true && head) {
                  head.insertBefore(link, head.firstChild);
                } else if (head) {
                  head.appendChild(link);
                } else if (firstScript) {
                  firstScript.parentNode.insertBefore(link, firstScript);
                } else if (body) {
                  body.appendChild(link);
                }
              }
            });
          }

          function normalizeCssUrls(cssUrls) {
            if (!cssUrls) return [];

            if (typeof cssUrls === 'string') {
              return [{ 'url': cssUrls, 'loadFirst': false }];
            }

            if (Array.isArray(cssUrls)) {
              return cssUrls.map(url => ({
                'url': url,
                'loadFirst': false
              }));
            }

            if (typeof cssUrls === 'object') {
              return Object.values(cssUrls).map(url => ({
                'url': url,
                'loadFirst': false
              }));
            }

            return [];
          }

          let customCssUrls = normalizeCssUrls(config.project?.cssUrl);

          let customCss = '';
          if (config.project?.cssCustom) {
            const customCssUrl = 'https://api.doemee1stroom.nl/api/project/' + config.projectId + '/css/' + randomComponentId;
            customCssUrls.push({url: customCssUrl, loadFirst: false});
          }

          customCssUrls.push({url: "https://api.doemee1stroom.nl/api/project/" + config.projectId + "/widget-css/resourcewithmap", loadFirst: true});

          insertCssLinks(customCssUrls);

          function renderWidget () {

            // Check if widget has already been rendered
            if (renderedWidgets[randomComponentId]) {
              return;
            }

            renderedWidgets[randomComponentId] = true;

            const React = window.OpenStadReact;
            const ReactDOM = window.OpenStadReactDOM;

            var OpenstadHeadlessResourceOverviewWithMap=(function(pr,E,ji,ul,L8){"use strict";var w8=pr=>{throw TypeError(pr)};var S8=(pr,E,ji)=>E.has(pr)||w8("Cannot "+ji);var Zr=(pr,E,ji)=>(S8(pr,E,"read from private field"),ji?ji.call(pr):E.get(pr)),O8=(pr,E,ji)=>E.has(pr)?w8("Cannot add the same private member more than once"):E instanceof WeakSet?E.add(pr):E.set(pr,ji),Rg=(pr,E,ji,ul)=>(S8(pr,E,"write to private field"),ul?ul.call(pr,ji):E.set(pr,ji),ji);var cr,Li;function jg(s){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const n in s)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(s,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>s[n]})}}return t.default=s,Object.freeze(t)}const ce=jg(E),Fg=jg(ul);var wo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bc(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function xc(s){if(Object.prototype.hasOwnProperty.call(s,"__esModule"))return s;var t=s.default;if(typeof t=="function"){var n=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(s).forEach(function(o){var u=Object.getOwnPropertyDescriptor(s,o);Object.defineProperty(n,o,u.get?u:{enumerable:!0,get:function(){return s[o]}})}),n}var ah={exports:{}},uh={};/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Bg;function N8(){if(Bg)return uh;Bg=1;var s=E;function t(x,_){return x===_&&(x!==0||1/x===1/_)||x!==x&&_!==_}var n=typeof Object.is=="function"?Object.is:t,o=s.useState,u=s.useEffect,d=s.useLayoutEffect,h=s.useDebugValue;function f(x,_){var S=_(),N=o({inst:{value:S,getSnapshot:_}}),w=N[0].inst,j=N[1];return d(function(){w.value=S,w.getSnapshot=_,v(w)&&j({inst:w})},[x,S,_]),u(function(){return v(w)&&j({inst:w}),x(function(){v(w)&&j({inst:w})})},[x]),h(S),S}function v(x){var _=x.getSnapshot;x=x.value;try{var S=_();return!n(x,S)}catch{return!0}}function p(x,_){return _()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:f;return uh.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:y,uh}var qg;function I8(){return qg||(qg=1,ah.exports=N8()),ah.exports}var zg=I8();const Ug=0,Vg=1,Hg=2,Gg=3;var Wg=Object.prototype.hasOwnProperty;function lh(s,t){var n,o;if(s===t)return!0;if(s&&t&&(n=s.constructor)===t.constructor){if(n===Date)return s.getTime()===t.getTime();if(n===RegExp)return s.toString()===t.toString();if(n===Array){if((o=s.length)===t.length)for(;o--&&lh(s[o],t[o]););return o===-1}if(!n||typeof s=="object"){o=0;for(n in s)if(Wg.call(s,n)&&++o&&!Wg.call(t,n)||!(n in t)||!lh(s[n],t[n]))return!1;return Object.keys(t).length===o}}return s!==s&&t!==t}const Ys=new WeakMap,Ks=()=>{},Tr=Ks(),ch=Object,en=s=>s===Tr,ws=s=>typeof s=="function",So=(s,t)=>({...s,...t}),Zg=s=>ws(s.then),dh={},Cc={},hh="undefined",ll=typeof window!=hh,fh=typeof document!=hh,T8=ll&&"Deno"in window,A8=()=>ll&&typeof window.requestAnimationFrame!=hh,Xg=(s,t)=>{const n=Ys.get(s);return[()=>!en(t)&&s.get(t)||dh,o=>{if(!en(t)){const u=s.get(t);t in Cc||(Cc[t]=u),n[5](t,So(u,o),u||dh)}},n[6],()=>!en(t)&&t in Cc?Cc[t]:!en(t)&&s.get(t)||dh]};let gh=!0;const P8=()=>gh,[mh,ph]=ll&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Ks,Ks],D8=()=>{const s=fh&&document.visibilityState;return en(s)||s!=="hidden"},M8=s=>(fh&&document.addEventListener("visibilitychange",s),mh("focus",s),()=>{fh&&document.removeEventListener("visibilitychange",s),ph("focus",s)}),k8=s=>{const t=()=>{gh=!0,s()},n=()=>{gh=!1};return mh("online",t),mh("offline",n),()=>{ph("online",t),ph("offline",n)}},R8={isOnline:P8,isVisible:D8},j8={initFocus:M8,initReconnect:k8},Yg=!E.useId,Ka=!ll||T8,F8=s=>A8()?window.requestAnimationFrame(s):setTimeout(s,1),vh=Ka?E.useEffect:E.useLayoutEffect,yh=typeof navigator<"u"&&navigator.connection,Kg=!Ka&&yh&&(["slow-2g","2g"].includes(yh.effectiveType)||yh.saveData),_c=new WeakMap,B8=s=>ch.prototype.toString.call(s),bh=(s,t)=>s===`[object ${t}]`;let q8=0;const xh=s=>{const t=typeof s,n=B8(s),o=bh(n,"Date"),u=bh(n,"RegExp"),d=bh(n,"Object");let h,f;if(ch(s)===s&&!o&&!u){if(h=_c.get(s),h)return h;if(h=++q8+"~",_c.set(s,h),Array.isArray(s)){for(h="@",f=0;f<s.length;f++)h+=xh(s[f])+",";_c.set(s,h)}if(d){h="#";const v=ch.keys(s).sort();for(;!en(f=v.pop());)en(s[f])||(h+=f+":"+xh(s[f])+",");_c.set(s,h)}}else h=o?s.toJSON():t=="symbol"?s.toString():t=="string"?JSON.stringify(s):""+s;return h},Ch=s=>{if(ws(s))try{s=s()}catch{s=""}const t=s;return s=typeof s=="string"?s:(Array.isArray(s)?s.length:s)?xh(s):"",[s,t]};let z8=0;const _h=()=>++z8;async function Jg(...s){const[t,n,o,u]=s,d=So({populateCache:!0,throwOnError:!0},typeof u=="boolean"?{revalidate:u}:u||{});let h=d.populateCache;const f=d.rollbackOnError;let v=d.optimisticData;const p=_=>typeof f=="function"?f(_):f!==!1,y=d.throwOnError;if(ws(n)){const _=n,S=[],N=t.keys();for(const w of N)!/^\$(inf|sub)\$/.test(w)&&_(t.get(w)._k)&&S.push(w);return Promise.all(S.map(x))}return x(n);async function x(_){const[S]=Ch(_);if(!S)return;const[N,w]=Xg(t,S),[j,U,M,D]=Ys.get(t),T=()=>{const ee=j[S];return(ws(d.revalidate)?d.revalidate(N().data,_):d.revalidate!==!1)&&(delete M[S],delete D[S],ee&&ee[0])?ee[0](Hg).then(()=>N().data):N().data};if(s.length<3)return T();let O=o,q,k=!1;const H=_h();U[S]=[H,0];const V=!en(v),Y=N(),R=Y.data,A=Y._c,X=en(A)?R:A;if(V&&(v=ws(v)?v(X,R):v,w({data:v,_c:X})),ws(O))try{O=O(X)}catch(ee){q=ee,k=!0}if(O&&Zg(O))if(O=await O.catch(ee=>{q=ee,k=!0}),H!==U[S][0]){if(k)throw q;return O}else k&&V&&p(q)&&(h=!0,w({data:X,_c:Tr}));if(h&&!k)if(ws(h)){const ee=h(O,X);w({data:ee,error:Tr,_c:Tr})}else w({data:O,error:Tr,_c:Tr});if(U[S][1]=_h(),Promise.resolve(T()).then(()=>{w({_c:Tr})}),k){if(y)throw q;return}return O}}const Qg=(s,t)=>{for(const n in s)s[n][0]&&s[n][0](t)},U8=(s,t)=>{if(!Ys.has(s)){const n=So(j8,t),o=Object.create(null),u=Jg.bind(Tr,s);let d=Ks;const h=Object.create(null),f=(y,x)=>{const _=h[y]||[];return h[y]=_,_.push(x),()=>{const S=_.indexOf(x);S>=0&&(_[S]=_[_.length-1],_.pop())}},v=(y,x,_)=>{s.set(y,x);const S=h[y];if(S)for(const N of S)N(x,_)},p=()=>{if(!Ys.has(s)&&(Ys.set(s,[o,Object.create(null),Object.create(null),Object.create(null),u,v,f]),!Ka)){const y=n.initFocus(setTimeout.bind(Tr,Qg.bind(Tr,o,Ug))),x=n.initReconnect(setTimeout.bind(Tr,Qg.bind(Tr,o,Vg)));d=()=>{y&&y(),x&&x(),Ys.delete(s)}}};return p(),[s,u,p,d]}return[s,Ys.get(s)[4]]},V8=(s,t,n,o,u)=>{const d=n.errorRetryCount,h=u.retryCount,f=~~((Math.random()+.5)*(1<<(h<8?h:8)))*n.errorRetryInterval;!en(d)&&h>d||setTimeout(o,f,u)},H8=lh,[$g,G8]=U8(new Map),W8=So({onLoadingSlow:Ks,onSuccess:Ks,onError:Ks,onErrorRetry:V8,onDiscarded:Ks,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Kg?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Kg?5e3:3e3,compare:H8,isPaused:()=>!1,cache:$g,mutate:G8,fallback:{}},R8),Z8=(s,t)=>{const n=So(s,t);if(t){const{use:o,fallback:u}=s,{use:d,fallback:h}=t;o&&d&&(n.use=o.concat(d)),u&&h&&(n.fallback=So(u,h))}return n},X8=E.createContext({}),Y8="$inf$",em=ll&&window.__SWR_DEVTOOLS_USE__,K8=em?window.__SWR_DEVTOOLS_USE__:[],J8=()=>{em&&(window.__SWR_DEVTOOLS_REACT__=E)},Q8=s=>ws(s[1])?[s[0],s[1],s[2]||{}]:[s[0],null,(s[1]===null?s[2]:s[1])||{}],tm=()=>{const s=E.useContext(X8);return E.useMemo(()=>So(W8,s),[s])},$8=s=>(t,n,o)=>s(t,n&&((...d)=>{const[h]=Ch(t),[,,,f]=Ys.get($g);if(h.startsWith(Y8))return n(...d);const v=f[h];return en(v)?n(...d):(delete f[h],v)}),o),e7=K8.concat($8),t7=s=>function(...n){const o=tm(),[u,d,h]=Q8(n),f=Z8(o,h);let v=s;const{use:p}=f,y=(p||[]).concat(e7);for(let x=y.length;x--;)v=y[x](v);return v(u,d||f.fetcher||null,f)},n7=(s,t,n)=>{const o=t[s]||(t[s]=[]);return o.push(n),()=>{const u=o.indexOf(n);u>=0&&(o[u]=o[o.length-1],o.pop())}};J8();const Eh=E.use||(s=>{switch(s.status){case"pending":throw s;case"fulfilled":return s.value;case"rejected":throw s.reason;default:throw s.status="pending",s.then(t=>{s.status="fulfilled",s.value=t},t=>{s.status="rejected",s.reason=t}),s}}),wh={dedupe:!0},Ec=Promise.resolve(Tr);Ec.status="fulfilled",Ec.value=Tr;const r7=()=>Ks,wc=t7((s,t,n)=>{const{cache:o,compare:u,suspense:d,fallbackData:h,revalidateOnMount:f,revalidateIfStale:v,refreshInterval:p,refreshWhenHidden:y,refreshWhenOffline:x,keepPreviousData:_,strictServerPrefetchWarning:S}=n,[N,w,j,U]=Ys.get(o),[M,D]=Ch(s),T=E.useRef(!1),O=E.useRef(!1),q=E.useRef(M),k=E.useRef(t),H=E.useRef(n),V=()=>H.current,Y=()=>V().isVisible()&&V().isOnline(),[R,A,X,ee]=Xg(o,M),ue=E.useRef({}).current,G=en(h)?en(n.fallback)?Tr:n.fallback[M]:h,K=(vt,Ye)=>{for(const Tt in ue){const Ve=Tt;if(Ve==="data"){if(!u(vt[Ve],Ye[Ve])&&(!en(vt[Ve])||!u(Ce,Ye[Ve])))return!1}else if(Ye[Ve]!==vt[Ve])return!1}return!0},B=!T.current,te=E.useMemo(()=>{const vt=R(),Ye=ee(),Tt=at=>{const ve=So(at);return delete ve._k,(()=>{if(!M||!t||V().isPaused())return!1;if(B&&!en(f))return f;const Be=en(G)?ve.data:G;return en(Be)||v})()?{isValidating:!0,isLoading:!0,...ve}:ve},Ve=Tt(vt),ye=vt===Ye?Ve:Tt(Ye);let Qe=Ve;return[()=>{const at=Tt(R());return K(at,Qe)?(Qe.data=at.data,Qe.isLoading=at.isLoading,Qe.isValidating=at.isValidating,Qe.error=at.error,Qe):(Qe=at,at)},()=>ye]},[o,M]),Q=zg.useSyncExternalStore(E.useCallback(vt=>X(M,(Ye,Tt)=>{K(Tt,Ye)||vt()}),[o,M]),te[0],te[1]),$=N[M]&&N[M].length>0,re=Q.data,le=en(re)?G&&Zg(G)?Eh(G):G:re,be=Q.error,ae=E.useRef(le),Ce=_?en(re)?en(ae.current)?le:ae.current:re:le,we=M&&en(le),Me=E.useRef(null);!Ka&&zg.useSyncExternalStore(r7,()=>(Me.current=!1,Me),()=>(Me.current=!0,Me));const Je=Me.current;S&&Je&&!d&&we&&console.warn(`Missing pre-initiated data for serialized key "${M}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);const rt=!M||!t||V().isPaused()||$&&!en(be)?!1:B&&!en(f)?f:d?en(le)?!1:v:en(le)||v,et=B&&rt,Le=en(Q.isValidating)?et:Q.isValidating,mt=en(Q.isLoading)?et:Q.isLoading,lt=E.useCallback(async vt=>{const Ye=k.current;if(!M||!Ye||O.current||V().isPaused())return!1;let Tt,Ve,ye=!0;const Qe=vt||{},at=!j[M]||!Qe.dedupe,ve=()=>Yg?!O.current&&M===q.current&&T.current:M===q.current,Xe={isValidating:!1,isLoading:!1},Be=()=>{A(Xe)},ut=()=>{const he=j[M];he&&he[1]===Ve&&delete j[M]},st={isValidating:!0};en(R().data)&&(st.isLoading=!0);try{if(at&&(A(st),n.loadingTimeout&&en(R().data)&&setTimeout(()=>{ye&&ve()&&V().onLoadingSlow(M,n)},n.loadingTimeout),j[M]=[Ye(D),_h()]),[Tt,Ve]=j[M],Tt=await Tt,at&&setTimeout(ut,n.dedupingInterval),!j[M]||j[M][1]!==Ve)return at&&ve()&&V().onDiscarded(M),!1;Xe.error=Tr;const he=w[M];if(!en(he)&&(Ve<=he[0]||Ve<=he[1]||he[1]===0))return Be(),at&&ve()&&V().onDiscarded(M),!1;const ht=R().data;Xe.data=u(ht,Tt)?ht:Tt,at&&ve()&&V().onSuccess(Tt,M,n)}catch(he){ut();const ht=V(),{shouldRetryOnError:kt}=ht;ht.isPaused()||(Xe.error=he,at&&ve()&&(ht.onError(he,M,ht),(kt===!0||ws(kt)&&kt(he))&&(!V().revalidateOnFocus||!V().revalidateOnReconnect||Y())&&ht.onErrorRetry(he,M,ht,Re=>{const Lt=N[M];Lt&&Lt[0]&&Lt[0](Gg,Re)},{retryCount:(Qe.retryCount||0)+1,dedupe:!0})))}return ye=!1,Be(),!0},[M,o]),De=E.useCallback((...vt)=>Jg(o,q.current,...vt),[]);if(vh(()=>{k.current=t,H.current=n,en(re)||(ae.current=re)}),vh(()=>{if(!M)return;const vt=lt.bind(Tr,wh);let Ye=0;V().revalidateOnFocus&&(Ye=Date.now()+V().focusThrottleInterval);const Ve=n7(M,N,(ye,Qe={})=>{if(ye==Ug){const at=Date.now();V().revalidateOnFocus&&at>Ye&&Y()&&(Ye=at+V().focusThrottleInterval,vt())}else if(ye==Vg)V().revalidateOnReconnect&&Y()&&vt();else{if(ye==Hg)return lt();if(ye==Gg)return lt(Qe)}});return O.current=!1,q.current=M,T.current=!0,A({_k:D}),rt&&(j[M]||(en(le)||Ka?vt():F8(vt))),()=>{O.current=!0,Ve()}},[M]),vh(()=>{let vt;function Ye(){const Ve=ws(p)?p(R().data):p;Ve&&vt!==-1&&(vt=setTimeout(Tt,Ve))}function Tt(){!R().error&&(y||V().isVisible())&&(x||V().isOnline())?lt(wh).then(Ye):Ye()}return Ye(),()=>{vt&&(clearTimeout(vt),vt=-1)}},[p,y,x,M]),E.useDebugValue(Ce),d){if(!Yg&&Ka&&we)throw new Error("Fallback data is required when using Suspense in SSR.");we&&(k.current=t,H.current=n,O.current=!1);const vt=U[M],Ye=!en(vt)&&we?De(vt):Ec;if(Eh(Ye),!en(be)&&we)throw be;const Tt=we?lt(wh):Ec;!en(Ce)&&we&&(Tt.status="fulfilled",Tt.value=!0),Eh(Tt)}return{mutate:De,get data(){return ue.data=!0,Ce},get error(){return ue.error=!0,be},get isValidating(){return ue.isValidating=!0,Le},get isLoading(){return ue.isLoading=!0,mt}}}),i7={fetch:async function({areaId:s}){let t=`/api/area/${s}`;return this.fetch(t)}},s7={fetch:async function({ids:s}={}){let t="/api/area";return s&&s.length>0&&(t+=`?ids=${s.join(",")}`),this.fetch(t)}},o7={fetch:async function({projectId:s,widgetToFetchId:t}){let n=`/api/project/${s}/choicesguide/widgets/${t}/count`;return this.fetch(n)}},a7={fetch:async function({projectId:s,choiceGuideId:t}){let n=`/api/project/${s}/choicesguide/${t}/result`;return this.fetch(n)}},nm={fetch:async function({projectId:s}){return[]},create:async function({projectId:s},t){delete t.id;const n=`/api/project/${s}/choicesguide`,o="POST",u=JSON.stringify(t);return await this.fetch(n,{method:o,body:u})}},Ja={fetch:async function({projectId:s,resourceId:t,sentiment:n,onlyIncludeTagIds:o,search:u,page:d,pageSize:h,sort:f,noPagination:v}){let p=`/api/project/${s}/resource/${t}/comment?includeUser=1&includeUserVote=1&includeVoteCount=1&includeRepliesOnComments=1`;if(n&&(p+=`&sentiment=${encodeURIComponent(n)}`),o=o||"",p+=`&onlyIncludeTagIds=${o}`,u&&(p+=`&search[text]=${encodeURIComponent(u)}`),v?p+="&noPagination=true":d!=null&&h&&(p+=`&page=${d}&pageSize=${h}`),f&&(p+=`&sort=${encodeURIComponent(f)}`),!s||!t)throw new Error(`No ${s?"projectId":"resourceId"} given`);return this.fetch(p)},create:async function({projectId:s,resourceId:t},n){let o=`/api/project/${s}/resource/${t}/comment`,u="post";delete n.id;let d=JSON.stringify(n);return await this.fetch(o,{method:u,body:d})},update:async function({projectId:s,resourceId:t},n){let o=`/api/project/${s}/resource/${t}/comment/${n.id}`,u="put",d=JSON.stringify(n);return await this.fetch(o,{method:u,body:d})},delete:async function({projectId:s,resourceId:t},n){let o=`/api/project/${s}/resource/${t}/comment/${n.id}`;return await this.fetch(o,{method:"delete"}),{id:n.id}},submitLike:async function({projectId:s,resourceId:t},n){let o=`/api/project/${s}/resource/${t}/comment/${n.id}/vote/yes`,u="post";return JSON.stringify({}),await this.fetch(o,{method:u})},submitDislike:async function({projectId:s,resourceId:t},n){let o=`/api/project/${s}/resource/${t}/comment/${n.id}/vote/no`,u="post";return JSON.stringify({}),await this.fetch(o,{method:u})}},u7={fetch:async function({projectId:s,sentiment:t}){let n=`/api/project/${s}/comment?sentiment=${t}`;return this.fetch(n)}},l7={fetch:async function({projectId:s}){let t=`/api/project/${s}/datalayer`;return this.fetch(t)}},c7={fetch:async function({projectId:s,widgetToFetchId:t}){let n=`/api/project/${s}/submission/widgets/${t}/count`;return this.fetch(n)}};function d7(){var s;return typeof window<"u"&&((s=window.crypto)!=null&&s.randomUUID)?window.crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`}function Sh({message:s,failureType:t,status:n,clientErrorId:o,url:u,method:d,responseBody:h}){const f=new Error(s);return f.name="OpenStadRequestError",f.failureType=t,f.status=n||null,f.clientErrorId=o||null,f.url=u,f.method=d,f.responseBody=h||null,f.referenceId=o||null,f}function Oh(s){if(typeof window>"u"||typeof document>"u"||typeof window.CustomEvent!="function"||typeof document.dispatchEvent!="function")return;let t=new window.CustomEvent("osc-error",{detail:s});document.dispatchEvent(t)}let rm=!1;function h7(){rm||typeof document>"u"||typeof document.addEventListener!="function"||(rm=!0,document.addEventListener("osc-error",s=>{const t=s.detail||{};console.error(`[osc-error] ${t.method||"?"} ${t.url||"?"} status=${t.status||"?"} message=${t.message||"?"} ref=${t.referenceId||"-"}`)}))}async function f7(s="",t={}){h7();let n=this,o;if(!t.suspense){const u=(t.method||"GET").toUpperCase(),d=d7(),h=this.apiUrl+s;t.headers=t.headers||{},t.headers["Content-Type"]=t.headers["Content-Type"]||"application/json",n.currentUserJWT&&(t.headers.Authorization="Bearer "+n.currentUserJWT);let f;try{f=await fetch(h,t)}catch(v){const p=Sh({message:(v==null?void 0:v.message)||"Network request failed",failureType:"network_error",status:null,clientErrorId:d,url:s,method:u,responseBody:null});throw Oh(p),p}if(!f.ok){let v=await f.text(),p;try{p=v?JSON.parse(v):{}}catch{p={}}let y=Sh({message:p.error||p.message||f.statusText||"Request failed",failureType:"http_error",status:f.status,clientErrorId:d,url:s,method:u,responseBody:v||null});throw Oh(y),y}try{o=await f.json()}catch{const p=Sh({message:"Invalid JSON response",failureType:"invalid_json",status:f.status,clientErrorId:d,url:s,method:u,responseBody:null});throw Oh(p),p}return o||{}}}const g7={fetch:async function({projectId:s}){let t=`/api/project/${s}/markers`;return this.fetch(t)}},m7={fetch:async function({projectId:s,resourceId:t}){let n=`/stats/project/${s}/vote/no-of-users`;t&&(n+=`?resourceId=${encodeURIComponent(t)}`);const o=await this.fetch(n);return{count:(o==null?void 0:o.count)||0}}},Sc={fetch:async function({projectId:s,resourceId:t},n){let o=`/api/project/${s}/resource/${t}?includeUser=1&includeVoteCount=1&includeUserVote=1&includeTags=1&includeStatus=1`,u={"Content-Type":"application/json"};return!t||t==="undefined"?[]:this.fetch(o,{headers:u})},update:async function({projectId:s,resourceId:t},n){let o=`/api/project/${s}/resource/${t}?includeGlobalTags=true`,u={"Content-Type":"application/json"},d=await this.fetch(o,{headers:u,method:"put",body:JSON.stringify(n)}),h=new window.CustomEvent("osc-api-update-data",{detail:{type:"resource",resource:d,data:n}});return window.dispatchEvent(h),d},delete:async function({projectId:s,resourceId:t},n){let o=`/api/project/${s}/resource/${t}`;return await this.fetch(o,{method:"delete"}),{id:n.id}},submitLike:async function({projectId:s,resourceId:t},n){let o=`/api/project/${s}/vote`,u={"Content-Type":"application/json"},d=await this.fetch(o,{headers:u,method:"POST",body:JSON.stringify({resourceId:t,opinion:n.opinion})}),h=new window.CustomEvent("osc-resource-submit-like",{detail:{type:"resource",resourceId:t,data:n}});return window.dispatchEvent(h),d}},p7={fetch:async function({projectId:s,search:t,tags:n,excludeTags:o,statuses:u,excludeStatuses:d,tagGroups:h,lat:f,lng:v,maxDistance:p},y){const x=new URLSearchParams;t&&x.append("search[text]",t),Array.isArray(h)&&h.length>0&&x.append("tagGroups",JSON.stringify(h)),f!=null&&v!=null&&p&&(x.append("lat",f),x.append("lng",v),x.append("maxDistance",p)),Array.isArray(n)&&n.length>0&&n.forEach(S=>x.append("tags",S)),Array.isArray(o)&&o.length>0&&o.forEach(S=>x.append("excludeTags",S)),Array.isArray(u)&&u.length>0&&u.forEach(S=>x.append("statuses",S)),Array.isArray(d)&&d.length>0&&d.forEach(S=>x.append("excludeStatuses",S));let _=`/api/project/${s}/resource/markers?${x.toString()}`;return this.fetch(_,y)}};function im(s,t){const n=localStorage.getItem("pseudoRandomSortSeed"),o=localStorage.getItem("pseudoRandomSortSeedTimestamp");if(t||!n||s&&(!o||Date.now()-Number(o)>s)){const d=new Uint32Array(1);crypto.getRandomValues(d),localStorage.setItem("pseudoRandomSortSeed",String(d[0])),localStorage.setItem("pseudoRandomSortSeedTimestamp",String(Date.now()))}return localStorage.getItem("pseudoRandomSortSeed")}const Oc={fetch:async function({projectId:s,page:t,pageSize:n,search:o,tags:u,excludeTags:d,sort:h,statuses:f,excludeStatuses:v,tagGroups:p,lat:y,lng:x,maxDistance:_,noPagination:S,projectIds:N,allowMultipleProjects:w,randomSortRotationMs:j},U){const M=new URLSearchParams;Array.isArray(u)&&u.length>0&&u.forEach(T=>M.append("tags",T)),Array.isArray(d)&&d.length>0&&d.forEach(T=>M.append("excludeTags",T)),Array.isArray(f)&&f.length>0&&f.forEach(T=>M.append("statuses",T)),Array.isArray(v)&&v.length>0&&v.forEach(T=>M.append("excludeStatuses",T)),Array.isArray(p)&&p.length>0&&M.append("tagGroups",JSON.stringify(p)),y!=null&&x!=null&&_&&(M.append("lat",y),M.append("lng",x),M.append("maxDistance",_)),o&&M.append("search[text]",o),h&&(Array.isArray(h)||(h=[h]),h.map(T=>M.append("sort",T)),h.includes("random")&&M.append("pseudoRandomSortSeed",im(j))),S?M.append("noPagination","true"):t>=0&&n?(M.append("page",t),M.append("pageSize",n)):n>=0&&(M.append("page",0),M.append("pageSize",n)),N&&N.length>0&&w&&N.forEach(T=>M.append("projectIds",T));let D=`/api/project/${s}/resource?includeUser=1&includeUserVote=1&includeVoteCount=1&includeTags=1&includeCommentsCount=1&${M.toString()}`;return this.fetch(D,U)},delete:async function({projectId:s,resourceId:t},n){let o=`/api/project/${s}/resource/${n.id}`;return await this.fetch(o,{method:"delete"}),{id:n.id}},create:async function({projectId:s,widgetId:t},n){delete n.id;let o=`/api/project/${s}/resource`,u="POST";t&&(n.widgetId=t);let d=JSON.stringify(n);return await this.fetch(o,{method:u,body:d})},fetchByIds:async function({projectId:s},t){if(!Array.isArray(t)||t.length===0)return[];const n=new URLSearchParams;t.forEach(d=>n.append("ids",d)),n.append("noPagination","true");let o=`/api/project/${s}/resource?includeTags=1&${n.toString()}`,u=await this.fetch(o);return(u==null?void 0:u.records)||u||[]},submitLike:async function({projectId:s},t){if(!Array.isArray(t))throw new Error("Resources is geen array");if(t.some(d=>!("resourceId"in d)||!("opinion"in d)))throw new Error("Ontbrekende velden resourceId of opinion");let n=`/api/project/${s}/vote?replaceAll=true`,o={"Content-Type":"application/json"};return await this.fetch(n,{headers:o,method:"POST",body:JSON.stringify(t)})}},v7={fetch:async function({projectId:s}){let t=`/api/project/${s}/status`;return this.fetch(t)}},sm={fetch:async function({projectId:s}){return[]},create:async function({projectId:s},t){delete t.id;let n=`/api/project/${s}/submission`,o="post",u=JSON.stringify(t);return await this.fetch(n,{method:o,body:u})}},Lc={fetch:async function({projectId:s,type:t,onlyIncludeIds:n=[]}){const o=new URLSearchParams;n.length>0&&n.forEach(d=>o.append("tags",d));let u=`/api/project/${s}/tag?type=${t}&${o.toString()}&includeGlobalTags=true`;return this.fetch(u)},create:async function({projectId:s,type:t},n){let o=`/api/project/${s}/tag`,u="post";delete n.id;let d=JSON.stringify(n);return await this.fetch(o,{method:u,body:d})},update:async function({projectId:s,type:t},n){let o=`/api/project/${s}/tag/${n.id}`,u="put",d=JSON.stringify(n);return await this.fetch(o,{method:u,body:d})},delete:async function({projectId:s,type:t},n){let o=`/api/project/${s}/tag/${n.id}`;return await this.fetch(o,{method:"delete"}),{id:n.id}}};function y7(s){if(!s)return null;try{const t=s.split(".")[1];if(!t)return null;const n=t.replace(/-/g,"+").replace(/_/g,"/"),o=n.padEnd(n.length+(4-n.length%4)%4,"="),u=JSON.parse(atob(o));return typeof u.exp=="number"?u.exp*1e3:null}catch{return null}}function b7(s,t){if(!s||!s.id||!t)return s;const n=y7(t),o=n?((n-Date.now())/(3600*1e3)).toFixed(2):null;return{...s,jwt:t,jwtExpiresAt:n,jwtExpiresInHours:o,jwtRemainingHours:o}}const cl={fetch:async function({projectId:s,userId:t}){let n=`/api/project/${s}/user/${t}`,o={"Content-Type":"application/json"};return t?this.fetch(n,{headers:o}):[]},fetchMe:async function({projectId:s}){let t=`/auth/project/${s}/me`,n={"Content-Type":"application/json"},u=await this.fetch(t,{headers:n});return u&&u.id&&(u=b7(u,this.currentUserJWT)),u},connectUser:async function({projectId:s,cmsUser:t}){let n=`/auth/project/${s}/connect-user?useAuth=oidc`,o={"Content-Type":"application/json"},u={access_token:t.access_token,iss:`${t.iss}`},d=await this.fetch(n,{headers:o,method:"POST",body:JSON.stringify(u)});return{jwt:d.jwt,expireOnClose:d.expireOnClose||!1}},update:async function({projectId:s,user:t}){let n=`/api/project/${s}/user/${t.id}`,o={"Content-Type":"application/json"},u={postcode:t.postalCode,name:t.name,fullName:t.name,nickName:t.nickName,address:t.address,city:t.city,emailNotificationConsent:t.emailNotificationConsent};return await this.fetch(n,{headers:o,method:"PUT",body:JSON.stringify(u)})},logout:function({url:s}){s=s||`${this.apiUrl}/auth/project/${this.projectId}/logout?useAuth=oidc`,document.location.href=s}},x7={fetch:async function({projectId:s,userId:t}){let n=`/api/project/${s}/user/${t}/activity?includeOtherProjects=1`,o={"Content-Type":"application/json"};return t?this.fetch(n,{headers:o}):[]}},om={fetch:async function({projectId:s,type:t}){let n=`/api/project/${s}/vote`;return t&&(n+=`&type=${t}`),s?this.fetch(n):[]},submitVote:async function({projectId:s,type:t},n){console.log(`[osc-vote] submitting: projectId=${s} resources=${(n==null?void 0:n.length)||0}`);let o=`/api/project/${s}/vote`,u={"Content-Type":"application/json"},d=n.map(v=>({resourceId:v.id,opinion:"selected"})),h=await this.fetch(o,{headers:u,method:"POST",body:JSON.stringify(d)}),f=new window.CustomEvent("osc-submit-user-vote",{detail:{type:"userVote",votes:d}});return window.dispatchEvent(f),h}},C7={fetch:async function({projectId:s,widgetId:t}){let n=`/api/project/${s}/widgets/${t}`;return this.fetch(n)}},_7={fetch:async function({projectId:s}){let t=`/api/project/${s}/widgets`;return this.fetch(t)}},Lh=typeof window<"u"?window:{};Lh.OpenStadAPI=null;function E7(s={config:{}}){return Lh.OpenStadAPI=Lh.OpenStadAPI||new w7(s)}function w7(s={}){var n;let t=this;if(t.apiUrl=s.apiUrl||((n=s.api)==null?void 0:n.url)||null,t.projectId=s.projectId||0,t.fetch=f7.bind(t),t.choiceGuideResults={fetch:a7.fetch.bind(t)},t.choiceGuideResultCount={fetch:o7.fetch.bind(t)},t.enqueteResultCount={fetch:c7.fetch.bind(t)},t.projectVotedUsersCount={fetch:m7.fetch.bind(t)},t.comments={fetch:Ja.fetch.bind(t),create:Ja.create.bind(t),update:Ja.update.bind(t),delete:Ja.delete.bind(t),submitLike:Ja.submitLike.bind(t),submitDislike:Ja.submitDislike.bind(t)},t.commentsByProject={fetch:u7.fetch.bind(t)},t.resource={fetch:Sc.fetch.bind(t),update:Sc.update.bind(t),delete:Sc.delete.bind(t),submitLike:Sc.submitLike.bind(t)},t.resources={fetch:Oc.fetch.bind(t),delete:Oc.delete.bind(t),create:Oc.create.bind(t),submitLike:Oc.submitLike.bind(t)},t.resourceMarkers={fetch:p7.fetch.bind(t)},t.choicesguide={fetch:nm.fetch.bind(t),create:nm.create.bind(t)},t.submissions={fetch:sm.fetch.bind(t),create:sm.create.bind(t)},t.statuses={fetch:v7.fetch.bind(t)},t.tags={fetch:Lc.fetch.bind(t),create:Lc.create.bind(t),update:Lc.update.bind(t),delete:Lc.delete.bind(t)},t.area={fetch:i7.fetch.bind(t)},t.datalayer={fetch:l7.fetch.bind(t)},t.markers={fetch:g7.fetch.bind(t)},t.widget={fetch:C7.fetch.bind(t)},t.widgets={fetch:_7.fetch.bind(t)},t.areas={fetch:s7.fetch.bind(t)},t.user={fetch:cl.fetch.bind(t),fetchMe:cl.fetchMe.bind(t),connectUser:cl.connectUser.bind(t),update:cl.update.bind(t),logout:cl.logout.bind(t)},t.userVote={fetch:om.fetch.bind(t),submitVote:om.submitVote.bind(t)},t.userActivity={fetch:x7.fetch.bind(t)},s.logMethods)return t}function S7({areaId:s}){let t=this;const{data:n,error:o,isLoading:u}=t.useSWR(s?{areaId:s}:null,"area.fetch");let d=n||null;if(o){const h=new window.CustomEvent("osc-error",{detail:new Error(o)});document.dispatchEvent(h)}return{data:d,error:o,isLoading:u}}function O7({ids:s}={}){let t=this;const{data:n,error:o,isLoading:u}=t.useSWR(s&&s.length>0?{ids:s}:null,"areas.fetch");let d=n||[];if(o){const h=new window.CustomEvent("osc-error",{detail:new Error(o)});document.dispatchEvent(h)}return{data:d,error:o,isLoading:u}}function L7({projectId:s,widgetToFetchId:t}){let n=this;if(!t)return{data:0,error:"No widgetId given",isLoading:!1};try{const{data:o,error:u,isLoading:d}=n.useSWR({projectId:s,widgetToFetchId:t},"choiceGuideResultCount.fetch");if(u){let h=new Error(u),f=new window.CustomEvent("osc-error",{detail:h});document.dispatchEvent(f)}return{data:(o==null?void 0:o.count)||0,error:u,isLoading:d}}catch{return{data:0,error:"Er ging iets mis bij het ophalen van de resultaten, waarschijnlijk ontbreken er een aantal rechten",isLoading:!1}}}function N7({projectId:s,choiceGuideId:t}){let n=this;if(!t)return{data:[],error:"No choiceGuideId given",isLoading:!1};try{const{data:o,error:u,isLoading:d}=n.useSWR({projectId:s,choiceGuideId:t},"choiceGuideResults.fetch");if(u){let h=new Error(h),f=new window.CustomEvent("osc-error",{detail:h});document.dispatchEvent(f)}return{data:o||[],error:u,isLoading:d}}catch{return{data:[],error:"Er ging iets mis bij het ophalen van de resultaten, waarschijnlijk ontbreken er een aantal rechten",isLoading:!1}}}function I7({projectId:s}){let t=this;const{data:n,error:o,isLoading:u}=t.useSWR({projectId:s},"choicesguide.fetch");let d=n||[];if(o){const f=new window.CustomEvent("osc-error",{detail:new Error(o)});document.dispatchEvent(f)}return{data:d,error:o,isLoading:u,create:function(f,v){return t.mutate({projectId:s},"choicesguide.create",{submittedData:f,projectId:s,widgetId:v},{action:"create"})}}}function T7(s){let t=this;const n=s.projectId,o=s.sentiment,{data:u,error:d,isLoading:h}=t.useSWR({projectId:n,sentiment:o},"commentsByProject.fetch");let f=u||[];if(d){let v=new Error(v),p=new window.CustomEvent("osc-error",{detail:v});document.dispatchEvent(p)}return{data:f,error:d,isLoading:h}}function A7(s){let t=this;const n=s.projectId,o=s.resourceId,u=s.sentiment||null,d=s.onlyIncludeTagIds||null,h=s.search||"",f=s.page??null,v=s.pageSize??null,p=s.sort||null,y=s.noPagination||!1,x=s.refreshKey||null,_={projectId:n,resourceId:o,sentiment:u,onlyIncludeTagIds:d,search:h,page:f,pageSize:v,sort:p,noPagination:y,refreshKey:x};let S=[],N,w,j=!1;if(o&&o!=="0"){const{data:M,error:D,isLoading:T}=t.useSWR(_,"comments.fetch");M&&Array.isArray(M.records)&&M.metadata!==void 0?(S=M.records,N=M.metadata):S=M,w=D,j=T}let U=S||[];return U.create=function(M){return t.mutate(_,"comments.create",M,{action:"create"})},U.map(async M=>{var D;M.update=function(T){return t.mutate(_,"comments.update",T,{action:"update"})},M.delete=function(T){return t.mutate(_,"comments.delete",M,{action:"delete"})},M.submitLike=function(){return t.mutate(_,"comments.submitLike",M,{action:"update"})},M.submitDislike=function(){return t.mutate(_,"comments.submitDislike",M,{action:"update"})},(D=M.replies)==null||D.map(async T=>{T.update=function(O){return t.mutate(_,"comments.update",O,{action:"update"})},T.delete=function(O){return t.mutate(_,"comments.delete",T,{action:"delete"})},T.submitLike=function(){return t.mutate(_,"comments.submitLike",T,{action:"update"})},T.submitDislike=function(){return t.mutate(_,"comments.submitDislike",T,{action:"update"})}})}),{data:U,metadata:N,error:w,isLoading:j}}class Nh{constructor(t){this.projectId=t.projectId}getData(){const t=window.localStorage.getItem("openstad");let n={};try{t&&(n=JSON.parse(t))}catch{n={}}let o=n;return this.projectId&&(n[this.projectId]=n[this.projectId]||{},o=n[this.projectId]||{}),{data:n,target:o}}get(t){let{data:n,target:o}=this.getData(),u=o[t];try{u=JSON.parse(u)}catch{}return u}set(t,n){if(typeof t!="string")return;typeof n>"u"&&(n="");let{data:o,target:u}=this.getData();u[t]=n,window.localStorage.setItem("openstad",JSON.stringify(o))}remove(t){if(typeof t!="string")return;let{data:n,target:o}=this.getData();delete o[t],window.localStorage.setItem("openstad",JSON.stringify(n))}destroy(){window.localStorage.setItem("openstad",JSON.stringify({}))}}function P7(s){let t=this;s.projectId;const{data:n,error:o,isLoading:u}=wc({type:"current-user",projectId:t.projectId},d);async function d(){const h=new Nh(s),f=new URLSearchParams(window.location.search);if(f.has("openstadlogout")){console.log("[osc-auth] logout detected, clearing session"),h.remove("cmsUser"),h.remove("openStadUser"),h.remove("expireOnClose");let S=window.location.href;return S=S.replace(new RegExp("[?&]openstadlogout=true"),""),history.replaceState(null,"",S),t.currentUser=null,{}}if(h.get("expireOnClose")&&!/(^|;\s*)openstad_active=1/.test(document.cookie))return h.remove("cmsUser"),h.remove("openStadUser"),h.remove("expireOnClose"),t.currentUser=null,{};let v={};try{v=globalOpenStadUser||s.openStadUser||{}}catch{}if(f.has("expireOnClose")){h.set("expireOnClose",!0),document.cookie="openstad_active=1; path=/; SameSite=Lax"+(location.protocol==="https:"?"; Secure":"");let S=window.location.href;S=S.replace(/[?&]expireOnClose=1/,""),history.replaceState(null,"",S)}let p;if(f.has("openstadlogintoken")){p=f.get("openstadlogintoken"),console.log("[osc-auth] login token received from URL"),h.set("openStadUser",{jwt:p});let S=window.location.href;S=S.replace(new RegExp(`[?&]openstadlogintoken=${p}`),""),history.replaceState(null,"",S)}let y={};try{y=globalCmsUser||s.cmsUser||{}}catch{}let x=h.get("cmsUser")||{};x&&y&&x.access_token!=y.access_token&&(h.remove("cmsUser"),h.remove("openStadUser")),h.set("cmsUser",y);let _=h.get("openStadUser")||{};if(!p&&_.jwt&&(p=_.jwt),!p&&v.jwt&&(p=v.jwt),!p&&y&&y.access_token&&y.iss){const S=await t.api.user.connectUser({projectId:t.projectId,cmsUser:y});p=S.jwt,S.expireOnClose&&(h.set("expireOnClose",!0),document.cookie="openstad_active=1; path=/; SameSite=Lax"+(location.protocol==="https:"?"; Secure":""))}if(p){t.api.currentUserJWT=p,t.refresh();try{let S=await t.api.user.fetchMe({projectId:t.projectId});return console.log(`[osc-auth] user authenticated: userId=${S==null?void 0:S.id} role=${S==null?void 0:S.role}`),h.set("openStadUser",{...S,jwt:p}),S}catch(S){return console.log(`[osc-auth] user fetch failed: ${S==null?void 0:S.message}`),h.remove("openStadUser"),{}}}else return{}}return n&&(n.logout=function(h){new Nh(s).destroy(),t.api.user.logout(h)}),{data:n,setUser:()=>console.log("setUser not (yet) implemented"),error:o,isLoading:u}}function D7({projectId:s,datalayerId:t}){let n=this;const{data:o,error:u,isLoading:d}=n.useSWR({projectId:s},"datalayer.fetch");let h=o||[];if(u){const f=new window.CustomEvent("osc-error",{detail:new Error(u)});document.dispatchEvent(f)}return{data:h,error:u,isLoading:d}}function M7({projectId:s,widgetToFetchId:t}){let n=this;if(!t)return{data:0,error:"No widgetId given",isLoading:!1};try{const{data:o,error:u,isLoading:d}=n.useSWR({projectId:s,widgetToFetchId:t},"enqueteResultCount.fetch");if(u){let h=new Error(u),f=new window.CustomEvent("osc-error",{detail:h});document.dispatchEvent(f)}return{data:(o==null?void 0:o.count)||0,error:u,isLoading:d}}catch{return{data:0,error:"Er ging iets mis bij het ophalen van de resultaten, waarschijnlijk ontbreken er een aantal rechten",isLoading:!1}}}function k7({projectId:s}){let t=this;const n=!!s,{data:o,error:u,isLoading:d}=wc(n?{type:"markers",projectId:s}:null,n?()=>t.api.markers.fetch({projectId:s}):null);let h=o||[];if(u){const f=new window.CustomEvent("osc-error",{detail:u});document.dispatchEvent(f)}return{data:h,error:u,isLoading:d}}function R7({projectId:s,resourceId:t}){let n=this;if(!s)return{data:0,error:"No projectId given",isLoading:!1};try{const{data:o,error:u,isLoading:d}=n.useSWR({projectId:s,resourceId:t},"projectVotedUsersCount.fetch");if(u){let h=new Error(u),f=new window.CustomEvent("osc-error",{detail:h});document.dispatchEvent(f)}return{data:(o==null?void 0:o.count)||0,error:u,isLoading:d}}catch{return{data:0,error:"Er ging iets mis bij het ophalen van het aantal gebruikers dat heeft gestemd",isLoading:!1}}}function j7(s){var p,y;let t=this;const n=s.projectId,o=s.resourceId,u=s.initialData,{data:d,error:h,isLoading:f}=t.useSWR(u?null:{projectId:n,resourceId:o},"resource.fetch");let v=u?{...u}:d||{};return v.update=function(x){return t.mutate({projectId:n,resourceId:o},"resource.update",x,{action:"update"})},v.delete=function(){t.mutate({projectId:n,resourceId:o},"resource.delete",v,{action:"delete"})},v.submitLike=function(x){return t.mutate({projectId:n,resourceId:o},"resource.submitLike",x,{action:"submitLike",revalidate:!0,populateCache:!1})},{data:v,error:h,isLoading:f,canEdit:((p=d==null?void 0:d.can)==null?void 0:p.edit)||!1,canDelete:((y=d==null?void 0:d.can)==null?void 0:y.delete)||!1}}function F7({projectId:s,page:t=0,pageSize:n=20,search:o="",tags:u=[],excludeTags:d=[],sort:h=void 0,statuses:f=[],excludeStatuses:v=[],tagGroups:p=[],lat:y=void 0,lng:x=void 0,maxDistance:_=void 0,projectIds:S=[],allowMultipleProjects:N=!1,fetchAll:w=!1,randomSortRotationMs:j=0,randomSortKey:U=void 0},M){let D=this;const T={metadata:{page:0,pageSize:0,pageCount:1,totalCount:0},records:[]};if(!s)return{data:T,allData:null,error:"No projectId given",isLoading:!1};const O={projectId:s,search:o,tags:u,excludeTags:d,sort:h,statuses:f,excludeStatuses:v,tagGroups:p,lat:y,lng:x,maxDistance:_,projectIds:S,allowMultipleProjects:N,randomSortRotationMs:j,randomSortKey:U},{data:q,error:k,isLoading:H,mutate:V}=D.useSWR({...O,page:t,pageSize:n},"resources.fetch",M),Y=w==="markers",{data:R,isLoading:A}=D.useSWR(w?Y?O:{...O,noPagination:!0}:null,Y?"resourceMarkers.fetch":"resources.fetch",M);function X(B){let te=B||[];return Array.isArray(te)&&(te={metadata:{page:0,pageSize:te.length,pageCount:1,totalCount:te.length},records:te}),te}let ee=X(q),ue=R?X(R):null;const G=function(B,te){return D.mutate({projectId:s},"resources.create",{submittedData:B,widgetId:te},{action:"create"})},K=function(B){return D.mutate({projectId:s},"resources.submitLike",B,{action:"update"})};return ee.records&&(ee.records.create=function(B){return D.mutate({projectId:s},"resources.create",B,{action:"create"})},ee.records.forEach(async B=>{B.update=function(te){return D.mutate({projectId:s},"resources.update",te,{action:"update"})},B.delete=function(){return D.mutate({projectId:s},"resources.delete",B,{action:"delete"})}})),{data:ee,allData:ue,error:k,isLoading:H||w&&A,submitVotes:K,create:G,revalidate:()=>V()}}function B7(s){let t=this;const n=s.projectId,{data:o,error:u,isLoading:d}=t.useSWR({projectId:n||t.projectId},"statuses.fetch");let h=o||[];if(u){let f=new window.CustomEvent("osc-error",{detail:new Error(u)});document.dispatchEvent(f)}return{data:h,error:u,isLoading:d}}function q7({projectId:s}){let t=this;const{data:n,error:o,isLoading:u}=t.useSWR({projectId:s},"submissions.fetch");let d=n||[];if(o){const f=new window.CustomEvent("osc-error",{detail:new Error(o)});document.dispatchEvent(f)}return{data:d,error:o,isLoading:u,create:function(f,v){return t.mutate({projectId:s},"submissions.create",{submittedData:f,widgetId:v},{action:"create"})}}}function z7(s){let t=this;const n=s.projectId,o=s.type,u=s.onlyIncludeIds,d=s.enabled!==!1,h=n||t.projectId,{data:f,error:v,isLoading:p}=t.useSWR(d&&h?{projectId:h,type:o,onlyIncludeIds:u}:null,"tags.fetch");let y=f||[];if(y.create=function(x){return t.mutate({projectId:n,type:o},"tags.create",x,{action:"create"})},y.map(async x=>{x.update=function(_){return t.mutate({projectId:n,type:o},"tags.update",_,{action:"update"})},x.delete=function(_){return t.mutate({projectId:n,type:o},"tags.delete",x,{action:"delete"})},x.submitLike=function(){return t.mutate({projectId:n,type:o},"tags.submitLike",x,{action:"update"})}}),v){let x=new window.CustomEvent("osc-error",{detail:new Error(v)});document.dispatchEvent(x)}return{data:y,error:v,isLoading:p}}function U7({projectId:s,userId:t}){let n=this;const{data:o,error:u,isLoading:d}=n.useSWR({projectId:s,userId:t},"userActivity.fetch");let h=o||[];if(u){const f=new window.CustomEvent("osc-error",{detail:new Error(u)});document.dispatchEvent(f)}return{data:h,error:u,isLoading:d}}function V7(s){let t=this;const n=s.projectId,o=s.type;if(!n)return{data:{},error:"No projectId given",isLoading:!1};const{data:u,error:d,isLoading:h}=t.useSWR({type:o,projectId:t.projectId},"userVote.fetch");let f=u||{};if(f.submitVote=function(v){return t.mutate({type:"user-vote",projectId:t.projectId},"userVote.submitVote",v,{action:"update"})},d){let v=new Error(v),p=new window.CustomEvent("osc-error",{detail:v});document.dispatchEvent(p)}return{data:f,error:d,isLoading:h}}function H7({projectId:s,widgetId:t}){let n=this;const{data:o,error:u,isLoading:d}=n.useSWR({projectId:s,widgetId:t},"widget.fetch");let h=o||[];if(u){const f=new window.CustomEvent("osc-error",{detail:new Error(u)});document.dispatchEvent(f)}return{data:h,error:u,isLoading:d}}function G7({projectId:s}={}){let t=this;const{data:n,error:o,isLoading:u}=t.useSWR(s?{projectId:s}:null,"widgets.fetch");let d=n||[];if(o){const h=new window.CustomEvent("osc-error",{detail:new Error(o)});document.dispatchEvent(h)}return{data:d,error:o,isLoading:u}}var Nc={exports:{}},am;function W7(){return am||(am=1,(function(s,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isPlainObject=t.clone=t.recursive=t.merge=t.main=void 0,s.exports=t=n,t.default=n;function n(){for(var p=[],y=0;y<arguments.length;y++)p[y]=arguments[y];return o.apply(void 0,p)}t.main=n,n.clone=d,n.isPlainObject=h,n.recursive=u;function o(){for(var p=[],y=0;y<arguments.length;y++)p[y]=arguments[y];return v(p[0]===!0,!1,p)}t.merge=o;function u(){for(var p=[],y=0;y<arguments.length;y++)p[y]=arguments[y];return v(p[0]===!0,!0,p)}t.recursive=u;function d(p){if(Array.isArray(p)){for(var y=[],x=0;x<p.length;++x)y.push(d(p[x]));return y}else if(h(p)){var y={};for(var x in p)y[x]=d(p[x]);return y}else return p}t.clone=d;function h(p){return p&&typeof p=="object"&&!Array.isArray(p)}t.isPlainObject=h;function f(p,y){if(!h(p))return y;for(var x in y)x==="__proto__"||x==="constructor"||x==="prototype"||(p[x]=h(p[x])&&h(y[x])?f(p[x],y[x]):y[x]);return p}function v(p,y,x){var _;(p||!h(_=x.shift()))&&(_={});for(var S=0;S<x.length;++S){var N=x[S];if(h(N)){for(var w in N)if(!(w==="__proto__"||w==="constructor"||w==="prototype")){var j=p?d(N[w]):N[w];_[w]=y?f(_[w],j):j}}}return _}})(Nc,Nc.exports)),Nc.exports}var Z7=W7();const dl=bc(Z7);function um(s,t,n){if(s==null)return t;let o;switch(n){case"create":if(Array.isArray(s))if(t.parentId){let u=s.findIndex(d=>d.id==t.parentId);u!=-1&&(o=[...s],o[u].replies=o[u].replies||[],o[u].replies.push(t))}else o=[...s],o.push(t);else o=dl.recursive({},s,t);break;case"update":if(Array.isArray(s))if(t.parentId){let u=s.findIndex(d=>d.id==t.parentId);if(u!=-1){let d=s[u].replies.findIndex(h=>h.id==t.id);d!=-1&&(o=[...s],o[u].replies[d]=dl.recursive({},o[u].replies[d],t))}}else{let u=s.findIndex(d=>d.id==t.id);u!=-1&&(o=[...s],o[u]=dl.recursive({},o[u],t))}else o=dl.recursive({},s,t);break;case"delete":if(Array.isArray(s))if(t.parentId){let u=s.findIndex(d=>d.id==t.parentId);if(u!=-1){let d=s[u].replies.findIndex(h=>h.id==t.id);d!=-1&&(o=[...s],o[u].replies.splice(d,1))}}else{let u=s.findIndex(d=>d.id==t.id);u!=-1&&(o=[...s],o.splice(u,1))}else o=void 0;break;case"submitLike":if(Array.isArray(s)){let u=s.findIndex(d=>d.id==t.id);u!=-1&&(o=[...s],o.splice(u,1))}else{let u={[t.opinion]:s[t.opinion]+1},d=s.userVote,h=d&&d.opinion===t.opinion;h?u[t.opinion]=s[t.opinion]-1:(d&&(u[d.opinion]=s[d.opinion]-1),u.userVote={opinion:t.opinion}),o=dl.recursive({},s,u),h&&(o.userVote=null)}break;default:return s}return o||s}const Ic=typeof window<"u"?window:{};Ic.OpenStadSWR=Ic.OpenStadSWR||{};function Qa(s={}){let t=this;t.api=new E7(s),t.projectId=s.projectId,t.useResource=j7.bind(t),t.useChoicesguide=I7.bind(t),t.useComments=A7.bind(t),t.useResources=F7.bind(t),t.useArea=S7.bind(t),t.useDatalayer=D7.bind(t),t.useMarkers=k7.bind(t),t.useAreas=O7.bind(t),t.useStatuses=B7.bind(t),t.useTags=z7.bind(t),t.useCurrentUser=P7.bind(t),t.useUserVote=V7.bind(t),t.useSubmissions=q7.bind(t),t.useCommentsByProject=T7.bind(t),t.useChoiceGuideResults=N7.bind(t),t.useEnqueteResultCount=M7.bind(t),t.useChoiceGuideResultCount=L7.bind(t),t.useProjectVotedUsersCount=R7.bind(t),t.useUserActivity=U7.bind(t),t.useWidget=H7.bind(t),t.useWidgets=G7.bind(t);const{data:n,error:o,isLoadingLcurrentUserIsLoading:u}=t.useCurrentUser({...s,projectId:t.projectId});t.currentUser=n,t.createKey=function(h,f){return{type:f.split(".")[0],...h}},t.useSWR=function(h,f,v={}){const p=f.split(".");let y=t.api;if(p.length>1)for(let _=0;_<p.length;_++){if(!y[p[_]])throw new Error(`uswSWF: fetcher ${f} not found`);y=y[p[_]]}else y=t.api[f];if(h===null)return wc(null,null);let x=t.createKey(h,f);return Ic.OpenStadSWR[JSON.stringify(x,null,2)]=!0,wc(x,()=>y(h,{...v,keepPreviousData:!0}))};const{mutate:d}=tm();t.mutate=async function(h,f,v,p){let y=f.split(".").reduce((S,N)=>S[N],t.api),x=t.createKey(h,f),_={optimisticData:S=>um(S,v,p.action),revalidate:!1,rollbackOnError:!0};return p.action!="fetch"&&p.revalidate!=!0&&(_.populateCache=(S,N)=>um(N,S,p.action)),v!=null&&v.parentId&&(_.revalidate=!0),await d(x,y(x,v,p),{..._,...p})},t.refresh=function(){d(h=>Object.keys(Ic.OpenStadSWR).indexOf(JSON.stringify(h,null,2))!=-1,async h=>h,{revalidate:!0,rollbackOnError:!0})}}function X7(s){if(Array.isArray(s))return s}function Y7(s,t){var n=s==null?null:typeof Symbol<"u"&&s[Symbol.iterator]||s["@@iterator"];if(n!=null){var o,u,d,h,f=[],v=!0,p=!1;try{if(d=(n=n.call(s)).next,t!==0)for(;!(v=(o=d.call(n)).done)&&(f.push(o.value),f.length!==t);v=!0);}catch(y){p=!0,u=y}finally{try{if(!v&&n.return!=null&&(h=n.return(),Object(h)!==h))return}finally{if(p)throw u}}return f}}function lm(s,t){(t==null||t>s.length)&&(t=s.length);for(var n=0,o=Array(t);n<t;n++)o[n]=s[n];return o}function K7(s,t){if(s){if(typeof s=="string")return lm(s,t);var n={}.toString.call(s).slice(8,-1);return n==="Object"&&s.constructor&&(n=s.constructor.name),n==="Map"||n==="Set"?Array.from(s):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lm(s,t):void 0}}function J7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cm(s,t){return X7(s)||Y7(s,t)||K7(s,t)||J7()}function hl(s){"@babel/helpers - typeof";return hl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hl(s)}function Q7(s,t){if(hl(s)!="object"||!s)return s;var n=s[Symbol.toPrimitive];if(n!==void 0){var o=n.call(s,t);if(hl(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(s)}function $7(s){var t=Q7(s,"string");return hl(t)=="symbol"?t:t+""}function ke(s,t,n){return(t=$7(t))in s?Object.defineProperty(s,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):s[t]=n,s}function e9(s,t){if(s==null)return{};var n={};for(var o in s)if({}.hasOwnProperty.call(s,o)){if(t.indexOf(o)!==-1)continue;n[o]=s[o]}return n}function Te(s,t){if(s==null)return{};var n,o,u=e9(s,t);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(s);for(o=0;o<d.length;o++)n=d[o],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(s,n)&&(u[n]=s[n])}return u}var Ih={exports:{}},fl={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var dm;function t9(){if(dm)return fl;dm=1;var s=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(o,u,d){var h=null;if(d!==void 0&&(h=""+d),u.key!==void 0&&(h=""+u.key),"key"in u){d={};for(var f in u)f!=="key"&&(d[f]=u[f])}else d=u;return u=d.ref,{$$typeof:s,type:o,key:h,ref:u!==void 0?u:null,props:d}}return fl.Fragment=t,fl.jsx=n,fl.jsxs=n,fl}var hm;function n9(){return hm||(hm=1,Ih.exports=t9()),Ih.exports}var se=n9();function fm(s){var t,n,o="";if(typeof s=="string"||typeof s=="number")o+=s;else if(typeof s=="object")if(Array.isArray(s)){var u=s.length;for(t=0;t<u;t++)s[t]&&(n=fm(s[t]))&&(o&&(o+=" "),o+=n)}else for(n in s)s[n]&&(o&&(o+=" "),o+=n);return o}function Ee(){for(var s,t,n=0,o="",u=arguments.length;n<u;n++)(s=arguments[n])&&(t=fm(s))&&(o&&(o+=" "),o+=t);return o}function gm(s){if(s==null)throw new TypeError("Cannot destructure "+s)}function Tc(){return Tc=Object.assign?Object.assign.bind():function(s){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(s[o]=n[o])}return s},Tc.apply(null,arguments)}var r9=["appearance","busy","disabled","children","className","hint","pressed","type"];function mm(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function Ac(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mm(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):mm(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var Ar=E.forwardRef(function(s,t){var n=s.appearance,o=s.busy,u=s.disabled,d=s.children,h=s.className,f=s.hint,v=s.pressed,p=s.type,y=Te(s,r9);return se.jsx("button",Ac(Ac({ref:t,className:Ee("utrecht-button",o&&"utrecht-button--busy",u&&"utrecht-button--disabled",p==="submit"&&"utrecht-button--submit",n==="primary-action-button"&&"utrecht-button--primary-action",n==="secondary-action-button"&&"utrecht-button--secondary-action",n==="subtle-button"&&"utrecht-button--subtle",f==="danger"&&"utrecht-button--danger",f==="warning"&&"utrecht-button--warning",f==="ready"&&"utrecht-button--ready",v===!0&&"utrecht-button--pressed",h),"aria-busy":o||void 0,"aria-pressed":typeof v=="boolean"?v:void 0,disabled:u,type:p||"button"},y),{},{children:d}))});Ar.displayName="Button";var pm=function(t){var n=Tc({},(gm(t),t));return se.jsx(Ar,Ac(Ac({},n),{},{appearance:"subtle-button"}))};pm.displayName="SubtleButton";var i9=["appearance","className","level"];function vm(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function ym(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vm(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):vm(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var Oo=E.forwardRef(function(s,t){var n=s.appearance,o=s.className,u=s.level,d=Te(s,i9),h=["utrecht-heading-1","utrecht-heading-2","utrecht-heading-3","utrecht-heading-4","utrecht-heading-5","utrecht-heading-6"],f=u===2?"h2":u===3?"h3":u===4?"h4":u===5?"h5":u===6?"h6":"h1",v=n&&h.indexOf(n)!==-1?n:h[u-1]||"utrecht-heading-1";return se.jsx(f,ym(ym({className:Ee(v,o)},d),{},{ref:t}))});Oo.displayName="Heading";var s9=["id","label","className","headingLevel","expanded","disabled","section","children","buttonRef","onActivate","onButtonBlur","onButtonFocus","icon","appearance"],o9=["children","group","headingLevel","heading"];function bm(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function Fi(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bm(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):bm(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var a9=function(){return se.jsxs("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"8",viewBox:"0 0 14 8",children:[se.jsx("defs",{children:se.jsx("clipPath",{id:"clippath",children:se.jsx("rect",{width:"14",height:"8",style:{fill:"none",strokeWidth:"0px"}})})}),se.jsx("g",{style:{clipPath:"url(#clippath)"},children:se.jsx("path",{d:"m7,8c-.26,0-.51-.1-.71-.29L.29,1.71C-.1,1.32-.1.68.29.29S1.32-.1,1.71.29l5.29,5.29L12.29.29c.39-.39,1.02-.39,1.41,0s.39,1.02,0,1.41l-6,6c-.2.2-.45.29-.71.29Z",style:{strokeWidth:"0px;"}})})]})},u9=function(t){return t.length>=1?t[0]:void 0},l9=function(t){return t.length>=1?t[t.length-1]:void 0},c9=function(t,n){var o=n?t.indexOf(n):-1;return o>=0&&o+1<=t.length-1?t[o+1]:void 0},d9=function(t,n){var o=n?t.indexOf(n):-1;return o>=0&&o-1<=t.length-1?t[o-1]:void 0},xm=E.forwardRef(function(s,t){var n=s.id,o=s.label,u=s.className,d=s.headingLevel,h=d===void 0?1:d,f=s.expanded,v=f===void 0?!1:f,p=s.disabled,y=s.section,x=s.children,_=s.buttonRef,S=s.onActivate,N=s.onButtonBlur,w=s.onButtonFocus,j=s.icon,U=s.appearance,M=Te(s,s9),D={className:Ee("utrecht-accordion__panel",{"utrecht-accordion__panel--expanded":v}),hidden:!v,"aria-hidden":!v},T=j||(j===null?null:se.jsx(a9,{}));U==="utrecht"&&(T=null);var O="utrecht-accordion",q=n||E.useId(),k="".concat(O).concat(q,"-button"),H="".concat(O).concat(q,"-panel");return se.jsxs("div",Fi(Fi({className:Ee("utrecht-accordion__section",u),id:n,ref:t},M),{},{children:[se.jsx(Oo,{level:h,className:Ee("utrecht-accordion__header"),children:se.jsxs(Ar,{className:Ee("utrecht-accordion__button",ke({},"utrecht-accordion__button--utrecht",U==="utrecht")),appearance:"subtle-button","aria-expanded":v===!0,"aria-controls":H,disabled:p,id:k,onClick:function(){return typeof S=="function"&&S(t)},onFocus:function(){return typeof w=="function"&&w(t)},onBlur:function(){return typeof N=="function"&&N(t)},ref:_,children:[T&&se.jsx("span",{className:"utrecht-accordion__button-icon",children:T}),se.jsx("span",{className:"utrecht-accordion__button-label",children:o})]})}),y?se.jsx("section",Fi(Fi({id:H,"aria-labelledby":k},D),{},{children:x})):se.jsx("div",Fi(Fi({id:H},D),{},{children:x}))]}))});xm.displayName="AccordionSection";var Cm=E.forwardRef(function(s,t){var n=s.children,o=s.group,u=s.headingLevel,d=s.heading,h=Te(s,o9),f=E.useId();return se.jsxs(se.Fragment,{children:[!!d&&typeof u=="number"&&se.jsx(Oo,{level:u,children:d}),se.jsx("div",Fi(Fi({className:Ee("utrecht-accordion"),role:o?"group":void 0,"aria-labelledby":o?f:void 0},h),{},{ref:t,children:n}))]})});Cm.displayName="Accordion";var h9=function(t,n){var o=t.map(function(d){return E.useRef(null)}),u=t.map(function(d){return E.useRef(null)});return{ref:n,refs:o,buttonRefs:u,activeElement:null,sections:t,focusNextSection:function(h){var f,v=o.indexOf(h),p=v>=0?u[v]:void 0,y=p?c9(u,p):void 0;y==null||(f=y.current)===null||f===void 0||f.focus()},focusFirstSection:function(){var h,f=u9(u);f==null||(h=f.current)===null||h===void 0||h.focus()},focusPreviousSection:function(h){var f,v=o.indexOf(h),p=v>=0?u[v]:void 0,y=p?d9(u,p):void 0;y==null||(f=y.current)===null||f===void 0||f.focus()},focusLastSection:function(){var h,f=l9(u);f==null||(h=f.current)===null||h===void 0||h.focus()}}},Th=function(t){var n=t.sections,o=t.icon,u=t.appearance,d=E.useRef(null),h=h9(n,d),f=h.refs,v=h.buttonRefs,p=h.focusNextSection,y=h.focusFirstSection,x=h.focusLastSection,_=h.focusPreviousSection,S=E.useState(null),N=cm(S,2),w=N[0],j=N[1],U=E.useState(n),M=cm(U,2),D=M[0],T=M[1],O=function(V){j(V)},q=function(V){j(null)},k=function(V){if(V.code==="End")x();else if(V.code==="Home")y();else if(V.code==="ArrowDown")w&&p(w);else if(V.code==="ArrowUp")w&&_(w);else return;V.preventDefault()};return se.jsx(Cm,{onKeyDown:k,ref:d,children:D.map(function(H,V){var Y=function(A){var X=f.indexOf(A);T(D.map(function(ee,ue){return ue===X?Fi(Fi({},ee),{},{expanded:!ee.expanded}):ee}))};return E.createElement(xm,Fi(Fi({},H),{},{icon:o,appearance:u,ref:f[V],buttonRef:v[V],key:V,onButtonFocus:O,onButtonBlur:q,onActivate:Y}),H.body)})})};Th.displayName="AccordionProvider";var f9=["children","className","icon","type"];function _m(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function Em(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_m(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):_m(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var g9=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=s.icon,d=s.type,h=Te(s,f9);return se.jsxs("div",Em(Em({},h),{},{ref:t,className:Ee("utrecht-alert",{"utrecht-alert--error":d==="error","utrecht-alert--info":d==="info","utrecht-alert--ok":d==="ok","utrecht-alert--warning":d==="warning"},o),children:[u&&se.jsx("div",{className:"utrecht-alert__icon",children:u}),se.jsx("div",{className:"utrecht-alert__message",children:n})]}))});g9.displayName="Alert";var m9=["children","className","icon","type"];function wm(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function Sm(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wm(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):wm(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var p9=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=s.icon,d=s.type,h=Te(s,m9);return se.jsxs("dialog",Sm(Sm({},h),{},{ref:t,className:Ee("utrecht-alert-dialog",{"utrecht-alert-dialog--error":d==="error","utrecht-alert-dialog--info":d==="info","utrecht-alert-dialog--warning":d==="warning",className:o}),children:[u&&se.jsx("div",{className:"utrecht-alert-dialog__icon",children:u}),se.jsx("div",{className:"utrecht-alert-dialog__message",children:n})]}))});p9.displayName="AlertDialog";var v9=["children","className"];function Om(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function Lm(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Om(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):Om(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var y9=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=Te(s,v9);return se.jsx("article",Lm(Lm({},u),{},{ref:t,className:Ee("utrecht-article",o),children:n}))});y9.displayName="Article";var b9=["children","className"];function Nm(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function Im(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Nm(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):Nm(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var x9=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=Te(s,b9);return se.jsx("div",Im(Im({},u),{},{ref:t,className:Ee("utrecht-backdrop",o),children:n}))});x9.displayName="Backdrop";var C9=["children","className","value"];function Tm(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function gl(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Tm(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):Tm(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var _9=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=s.value,d=Te(s,C9),h=gl({children:n,className:Ee("utrecht-badge-counter",o)},d);return typeof u<"u"?se.jsx("data",gl(gl({},h),{},{value:u,ref:t})):se.jsx("span",gl(gl({},h),{},{ref:t}))});_9.displayName="BadgeCounter";var E9=["children","className"];function Am(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function Pm(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Am(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):Am(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var w9=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=Te(s,E9);return se.jsx("div",Pm(Pm({},u),{},{ref:t,className:Ee("utrecht-badge-list",o),children:n}))});w9.displayName="BadgeList";var S9=["children","className","attribution"];function Dm(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function Mm(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Dm(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):Dm(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var O9=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=s.attribution,d=Te(s,S9);return se.jsxs("blockquote",Mm(Mm({},d),{},{ref:t,className:Ee("utrecht-blockquote",o),children:[n,u&&se.jsx("div",{className:"utrecht-blockquote__attribution",children:u})]}))});O9.displayName="Blockquote";var L9=["boxContent","children","className","external","href","placeholder","role"];function km(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function Rm(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?km(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):km(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var Pc=E.forwardRef(function(s,t){var n=s.boxContent,o=s.children,u=s.className,d=s.external,h=s.href,f=s.placeholder,v=s.role,p=Te(s,L9);return se.jsx("a",Rm(Rm({href:f?void 0:h,ref:t,role:v||(f?"link":void 0),className:Ee("utrecht-link","utrecht-link--html-a",{"utrecht-link--box-content":n,"utrecht-link--external":d,"utrecht-link--placeholder":f},u),"aria-disabled":f?"true":void 0,rel:d?"external noopener noreferrer":void 0},p),{},{children:o}))});Pc.displayName="Link";var N9=["appearance","children","className","headingLevel","label"],I9=["className","children"],T9=["className","children"],A9=["children","disabled","current","href","index","rel","role","Link","className"];function jm(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function qr(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jm(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):jm(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var Fm=function(t){var n=t.prop,o=t.type;return{itemScope:!0,itemType:o,itemProp:n}},Ah=function(t){return{itemProp:t}},P9=E.forwardRef(function(s,t){var n=s.appearance,o=s.children,u=s.className,d=s.headingLevel,h=d===void 0?2:d,f=s.label,v=Te(s,N9),p=f?E.useId():void 0;return se.jsxs("nav",qr(qr({},v),{},{ref:t,className:Ee("utrecht-breadcrumb-nav","utrecht-breadcrumb-nav--html-ol",{"utrecht-breadcrumb-nav--arrows":n==="arrows"},u),"aria-labelledby":p,children:[f&&se.jsx(Oo,{id:p,className:"utrecht-breadcrumb-nav__heading",level:h,"aria-hidden":"true",children:f}),se.jsx("ol",qr(qr({className:"utrecht-breadcrumb-nav__list utrecht-breadcrumb-nav__list--html-ol"},Fm({type:"https://schema.org/BreadcrumbList"})),{},{children:o}))]}))});P9.displayName="BreadcrumbNav";var Bm=E.forwardRef(function(s,t){var n=s.className,o=s.children,u=Te(s,I9);return se.jsx("li",qr(qr(qr({className:Ee("utrecht-breadcrumb-nav__item",n)},Fm({type:"https://schema.org/ListItem",prop:"itemListElement"})),{},{ref:t},u),{},{children:o}))});Bm.displayName="BreadcrumbNavItem";var D9=E.forwardRef(function(s,t){var n=s.className,o=s.children,u=Te(s,T9);return se.jsx("li",qr(qr({"aria-hidden":"true",hidden:!0,style:{display:"var(--_utrecht-breadcrumb-nav-separator-display, block)"},className:Ee("utrecht-breadcrumb-nav__separator","utrecht-breadcrumb-nav__separator--html-li",n),ref:t},u),{},{children:o}))});D9.displayName="BreadcrumbNavSeparator";var M9=E.forwardRef(function(s,t){var n=s.children,o=s.disabled,u=s.current,d=s.href,h=s.index,f=s.rel,v=s.role,p=s.Link,y=p===void 0?Pc:p,x=s.className,_=Te(s,A9),S=y,N=y||S;return se.jsx(Bm,{children:se.jsxs(N,qr(qr(qr({className:Ee("utrecht-breadcrumb-nav__link",x,{"utrecht-breadcrumb-nav__link--current":u,"utrecht-breadcrumb-nav__link--disabled":o}),href:o?void 0:d,rel:f,role:v||(o?"link":void 0),"aria-current":u&&"page","aria-disabled":o?"true":void 0},Ah("item")),_),{},{ref:t,children:[se.jsx("span",qr(qr({className:"utrecht-breadcrumb-nav__text"},Ah("name")),{},{children:n})),typeof h=="number"?se.jsx("meta",qr(qr({},Ah("position")),{},{content:String(h+1)})):null]}))})});M9.displayName="BreadcrumbNavLink";var k9=["children","className","direction"];function qm(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function zm(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qm(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):qm(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var R9=function(t){return Array.isArray(t)&&t.reduce(function(n,o){return E.isValidElement(o)?n+1:n},0)>=2},Um=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=s.direction,d=Te(s,k9);return se.jsx("p",zm(zm({role:R9(n)?"group":void 0},d),{},{ref:t,className:Ee("utrecht-button-group",{"utrecht-button-group--column":u==="column","utrecht-button-group--row":u==="row"},o),children:n}))});Um.displayName="ButtonGroup";var j9=["appearance","children","className","external","href","placeholder","role"];function Vm(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function Dc(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vm(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):Vm(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var F9=function(t){var n;t.key===" "&&typeof((n=t.target)===null||n===void 0?void 0:n.click)=="function"&&(t.preventDefault(),t.target.click())},Mc=E.forwardRef(function(s,t){var n=s.appearance,o=s.children,u=s.className,d=s.external,h=s.href,f=s.placeholder,v=s.role,p=Te(s,j9),y=p;return v==="button"&&(y=Dc(Dc({},p),{},{onKeyDown:F9})),se.jsx("a",Dc(Dc({href:f?void 0:h,ref:t,role:v||(f?"link":void 0),className:Ee("utrecht-button-link","utrecht-button-link--html-a",{"utrecht-button-link--external":d,"utrecht-button-link--primary-action":n==="primary-action-button","utrecht-button-link--secondary-action":n==="secondary-action-button","utrecht-button-link--subtle":n==="subtle-button","utrecht-button-link--placeholder":f},u),rel:d?"external noopener noreferrer":void 0,"aria-disabled":f?"true":void 0},y),{},{children:o}))});Mc.displayName="ButtonLink";var B9=["appearance","disabled","indeterminate","invalid","required","className"];function Hm(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function Gm(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Hm(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):Hm(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var Wm=E.forwardRef(function(s,t){var n=s.appearance,o=n===void 0?"custom":n,u=s.disabled,d=s.indeterminate,h=d===void 0?!1:d,f=s.invalid,v=s.required,p=s.className,y=Te(s,B9),x=E.useRef(null);return E.useImperativeHandle(t,function(){return x.current}),E.useEffect(function(){x.current&&(x.current.indeterminate=h)},[h]),se.jsx("input",Gm(Gm({},y),{},{ref:x,type:"checkbox",className:Ee("utrecht-checkbox","utrecht-checkbox--html-input",{"utrecht-checkbox--disabled":u,"utrecht-checkbox--custom":o==="custom","utrecht-checkbox--invalid":f,"utrecht-checkbox--indeterminate":h,"utrecht-checkbox--required":v},p),"aria-checked":h?"mixed":void 0,"aria-invalid":f||void 0,disabled:u,required:v}))});Wm.displayName="Checkbox";var q9=["children","className"];function Zm(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function Xm(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Zm(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):Zm(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var z9=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=Te(s,q9);return se.jsx("code",Xm(Xm({ref:t,className:Ee("utrecht-code",o)},u),{},{children:n}))});z9.displayName="Code";var U9=["children","className"];function Ym(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function Km(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ym(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):Ym(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var V9=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=Te(s,U9);return se.jsx("pre",Km(Km({ref:t,className:Ee("utrecht-code-block",o)},u),{},{children:se.jsx("code",{className:"utrecht-code-block__content",children:n})}))});V9.displayName="CodeBlock";var H9=["children","className","color","style"];function Jm(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function kc(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jm(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):Jm(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var G9=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=s.color,d=s.style,h=Te(s,H9);return se.jsx("data",kc(kc({ref:t,className:Ee("utrecht-color-sample",o),style:kc(kc({},d),{},{color:u}),value:u},h),{},{children:n}))});G9.displayName="ColorSample";var W9=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=s.rule;return se.jsx("div",{className:Ee("utrecht-column-layout",{"utrecht-column-layout--rule":u},o),ref:t,children:n})});W9.displayName="ColumnLayout";var Z9=["className"],X9=["className","position"];function Qm(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function Rc(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Qm(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):Qm(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var Y9=E.forwardRef(function(s,t){var n=s.className,o=Te(s,Z9);return se.jsx("div",Rc(Rc({className:Ee("utrecht-combobox",n)},o),{},{ref:t}))});Y9.displayName="Combobox";var K9=E.forwardRef(function(s,t){var n=s.className,o=s.position,u=Te(s,X9);return se.jsx("div",Rc(Rc({className:Ee("utrecht-combobox__popover",{"utrecht-search-bar__popover--block-end":!o||o==="block-end"},n)},u),{},{ref:t}))});K9.displayName="ComboboxPopover";var J9=["children","currency","amount","locale","className"];function $m(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function ep(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$m(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):$m(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var Q9=function(t,n,o){return new Intl.NumberFormat(t,{style:"currency",currency:n,minimumFractionDigits:Number.isInteger(o)?0:void 0,useGrouping:!1}).format(o).replace(/[\s]+/g,"").replace("-","−")},$9=function(t,n,o){var u=new Intl.NumberFormat(t,{style:"currency",currency:n}).format(o);return u=u.replace(/-/,"−"),(t==="nl"||t==="nl-NL")&&/\u2212/.test(u)&&(u=u.replace(/(.+)\u2212(.+)/,"− $1$2")),u=u.replace(/ /g," "),u},ex=E.forwardRef(function(s,t){var n=s.children,o=s.currency,u=o===void 0?"EUR":o,d=s.amount,h=s.locale,f=h===void 0?"nl-NL":h,v=s.className,p=Te(s,J9),y=typeof d=="string"?parseFloat(d):d,x=Q9(f,u,y),_=$9(f,u,y);return se.jsx("data",ep(ep({},p),{},{ref:t,value:"".concat(u," ").concat(d),className:Ee("utrecht-currency-data",y<0&&"utrecht-currency-data--negative",y>0&&"utrecht-currency-data--positive",v),"aria-label":x,children:n||_}))});ex.displayName="CurrencyData";var tx=["children","className","dateTime","value"];function tp(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function aa(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tp(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):tp(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var nx=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=s.dateTime,d=s.value,h=Te(s,tx),f=aa({children:n,className:Ee("utrecht-badge-data",o)},h);return typeof u<"u"?se.jsx("time",aa(aa({},f),{},{dateTime:u,ref:t})):typeof d<"u"?se.jsx("data",aa(aa({},f),{},{value:d,ref:t})):se.jsx("span",aa(aa({},f),{},{ref:t}))});nx.displayName="DataBadge";var rx=["children","className"];function np(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function rp(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?np(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):np(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var ix=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=Te(s,rx);return se.jsx("div",rp(rp({},u),{},{ref:t,className:Ee("utrecht-document",o),children:n}))});ix.displayName="Document";var sx=["appearance","children","className"],ox=["children","className"],ax=["children","className"],ux=["children","className"];function ip(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function Lo(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ip(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):ip(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var lx=E.forwardRef(function(s,t){var n=s.appearance,o=s.children,u=s.className,d=Te(s,sx);return se.jsx("dl",Lo(Lo({},d),{},{className:Ee("utrecht-data-list","utrecht-data-list--html-dl",n==="rows"&&"utrecht-data-list--rows",u),ref:t,children:o}))});lx.displayName="DataList";var cx=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=Te(s,ox);return se.jsx("div",Lo(Lo({},u),{},{className:Ee("utrecht-data-list__item",o),ref:t,children:n}))});cx.displayName="DataListItem";var dx=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=Te(s,ax);return se.jsx("dt",Lo(Lo({},u),{},{className:Ee("utrecht-data-list__item-key",o),ref:t,children:n}))});dx.displayName="DataListKey";var hx=E.forwardRef(function(s,t){var n=s.value,o=s.children,u=s.className,d=s.emptyDescription,h=s.multiline,f=s.notranslate,v=n===""||n===null;return se.jsx("dd",{className:Ee("utrecht-data-list__item-value","utrecht-data-list__item-value--html-dd",u,h&&"utrecht-data-list__item-value--multiline"),translate:typeof f=="boolean"?f?"no":"yes":void 0,ref:t,children:v?se.jsx("span",{"aria-label":d,children:"-"}):o})});hx.displayName="DataListValue";var fx=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=Te(s,ux);return se.jsx("dd",Lo(Lo({},u),{},{className:Ee("utrecht-data-list__actions","utrecht-data-list__actions--html-dd",o),ref:t,children:n}))});fx.displayName="DataListActions";var gx=["align","children","className","modal"];function sp(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function op(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sp(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):sp(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var mx=E.forwardRef(function(s,t){var n=s.align,o=s.children,u=s.className,d=s.modal,h=Te(s,gx),f=E.useRef(null);return E.useImperativeHandle(t,function(){return f.current}),E.useEffect(function(){d&&h.open&&f!==null&&f!==void 0&&f.current&&(f.current.close(),f.current.showModal())}),se.jsx("dialog",op(op({},h),{},{ref:f,className:Ee("utrecht-drawer",{"utrecht-drawer--block-end":n==="block-end","utrecht-drawer--block-start":n==="block-start","utrecht-drawer--inline-end":n==="inline-end","utrecht-drawer--inline-start":n==="inline-start"||!n},u),children:o}))});mx.displayName="Drawer";var px=["children","className"];function ap(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function up(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ap(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):ap(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var vx=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=Te(s,px);return se.jsx("em",up(up({ref:t,className:Ee("utrecht-emphasis","utrecht-emphasis--stressed",o)},u),{},{children:n}))});vx.displayName="Emphasis";var yx=["aria-describedby","aria-label","aria-labelledby","className","children","disabled","form","invalid","name","role"],bx=["className","children","disabled","invalid"];function lp(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function jc(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lp(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):lp(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var cp=E.forwardRef(function(s,t){var n=s["aria-describedby"],o=s["aria-label"],u=s["aria-labelledby"],d=s.className,h=s.children,f=s.disabled,v=s.form,p=s.invalid,y=s.name,x=s.role,_=Te(s,yx);return se.jsx("div",jc(jc({},_),{},{ref:t,className:Ee("utrecht-form-fieldset",f&&"utrecht-form-fieldset--disabled",p&&"utrecht-form-fieldset--invalid",d),children:se.jsx("fieldset",{"aria-describedby":n,"aria-label":o,"aria-labelledby":u,"aria-invalid":p||void 0,disabled:f,form:v,name:y,role:x,className:Ee("utrecht-form-fieldset__fieldset","utrecht-form-fieldset--html-fieldset"),children:h})}))});cp.displayName="Fieldset";var xx=E.forwardRef(function(s,t){var n=s.className,o=s.children,u=s.disabled,d=s.invalid,h=Te(s,bx);return se.jsx("fieldset",jc(jc({},h),{},{ref:t,"aria-invalid":d||void 0,disabled:u,className:Ee("utrecht-form-fieldset","utrecht-form-fieldset--html-fieldset",u&&"utrecht-form-fieldset--disabled",d&&"utrecht-form-fieldset--invalid",n),children:o}))});xx.displayName="Fieldset";var Cx=["className","children"];function dp(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function hp(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dp(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):dp(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var fp=E.forwardRef(function(s,t){var n=s.className,o=s.children,u=Te(s,Cx);return se.jsx("legend",hp(hp({},u),{},{ref:t,className:Ee("utrecht-form-fieldset__legend","utrecht-form-fieldset__legend--html-legend",n),children:o}))});fp.displayName="FieldsetLegend";var _x=["className","children"];function gp(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function mp(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gp(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):gp(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var Ex=E.forwardRef(function(s,t){var n=s.className,o=s.children,u=Te(s,_x);return se.jsx("figure",mp(mp({},u),{},{ref:t,className:Ee("utrecht-figure",n),children:o}))});Ex.displayName="Figure";var wx=["className","children"];function pp(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function vp(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pp(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):pp(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var Sx=E.forwardRef(function(s,t){var n=s.className,o=s.children,u=Te(s,wx);return se.jsx("figcaption",vp(vp({},u),{},{ref:t,className:Ee("utrecht-figure__caption",n),children:o}))});Sx.displayName="FigureCaption";var Ox=["className","children","description","input","invalid","label","type"];function yp(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function bp(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yp(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):yp(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var $a=E.forwardRef(function(s,t){var n=s.className,o=s.children,u=s.description,d=s.input,h=s.invalid,f=s.label,v=s.type,p=Te(s,Ox);return se.jsxs("div",bp(bp({},p),{},{ref:t,className:Ee("utrecht-form-field",{"utrecht-form-field--invalid":h,"utrecht-form-field--checkbox":v==="checkbox","utrecht-form-field--radio":v==="radio","utrecht-form-field--text":!v||v==="text"},n),children:[f&&se.jsx("div",{className:"utrecht-form-field__label",children:f}),d&&se.jsx("div",{className:"utrecht-form-field__input",children:d}),u&&se.jsx("div",{className:"utrecht-form-field__description",children:u}),o]}))});$a.displayName="FormField";var Lx=["invalid","valid","warning","className","children"];function xp(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function Cp(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xp(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):xp(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var ua=E.forwardRef(function(s,t){var n=s.invalid,o=s.valid,u=s.warning,d=s.className,h=s.children,f=Te(s,Lx);return se.jsx("div",Cp(Cp({},f),{},{ref:t,className:Ee("utrecht-form-field-description",n&&"utrecht-form-field-description--invalid",o&&"utrecht-form-field-description--valid",u&&"utrecht-form-field-description--warning",d),children:h}))});ua.displayName="FormFieldDescription";var Nx=["className","children"];function _p(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function Ep(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_p(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):_p(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var wp=E.forwardRef(function(s,t){var n=s.className,o=s.children,u=Te(s,Nx);return se.jsx("div",Ep(Ep({},u),{},{ref:t,className:Ee("utrecht-form-field-error-message",n),children:o}))});wp.displayName="FormFieldErrorMessage";var Ix=["children","className","type","disabled","checked"];function Sp(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function Op(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Sp(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):Sp(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var Ci=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=s.type,d=s.disabled,h=s.checked,f=Te(s,Ix);return se.jsx("label",Op(Op({},f),{},{ref:t,className:Ee("utrecht-form-label",u&&"utrecht-form-label--".concat(u),d&&"utrecht-form-label--disabled",h&&"utrecht-form-label--checked",o),children:n}))});Ci.displayName="FormLabel";var Tx=["dir","disabled","invalid","readOnly","required","inputRequired","className","type","inputMode"];function Lp(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function Np(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Lp(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):Lp(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var eu=E.forwardRef(function(s,t){var n=s.dir,o=s.disabled,u=s.invalid,d=s.readOnly,h=s.required,f=s.inputRequired,v=s.className,p=s.type,y=p===void 0?"text":p,x=s.inputMode,_=Te(s,Tx);return se.jsx("input",Np(Np({},_),{},{ref:t,type:y,className:Ee("utrecht-textbox","utrecht-textbox--html-input",o&&"utrecht-textbox--disabled",u&&"utrecht-textbox--invalid",d&&"utrecht-textbox--readonly",(h||f)&&"utrecht-textbox--required",v),dir:n??"auto",disabled:o,readOnly:d,"aria-required":h||void 0,required:f,"aria-invalid":u||void 0,inputMode:x||(y==="number"?"numeric":void 0)}))});eu.displayName="Textbox";var Ax=["name","invalid","disabled","label","errorMessage","description","readOnly","status","autoComplete","list","min","max","minLength","maxLength","step","placeholder","pattern","required","inputRequired","inputDir","type","value","onChange","onInput","onFocus","onBlur","defaultValue","size","children","inputRef"];function Ip(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function Tp(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ip(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):Ip(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var Px=E.forwardRef(function(s,t){var n=s.name,o=s.invalid,u=s.disabled,d=s.label,h=s.errorMessage,f=s.description,v=s.readOnly,p=s.status,y=s.autoComplete,x=s.list,_=s.min,S=s.max,N=s.minLength,w=s.maxLength,j=s.step,U=s.placeholder,M=s.pattern,D=s.required,T=s.inputRequired,O=s.inputDir,q=s.type,k=s.value,H=s.onChange,V=s.onInput,Y=s.onFocus,R=s.onBlur,A=s.defaultValue,X=s.size,ee=s.children,ue=s.inputRef,G=Te(s,Ax),K=E.useId(),B=E.useId(),te=E.useId(),Q=E.useId();return se.jsxs($a,Tp(Tp({invalid:o,ref:t},G),{},{children:[se.jsx("div",{className:"utrecht-form-field__label",children:se.jsx(Ci,{htmlFor:K,children:d})}),f&&se.jsx(ua,{className:"utrecht-form-field__description",id:B,children:f}),o&&h&&se.jsx(wp,{className:"utrecht-form-field__error-message",id:Q,children:h}),se.jsx("div",{className:"utrecht-form-field__input",children:se.jsx(eu,{ref:ue,id:K,name:n,type:q||"text",autoComplete:y,"aria-describedby":Ee(ke(ke(ke({},B,f),Q,o),te,p))||void 0,invalid:o,dir:O||"auto",disabled:u,min:_,max:S,minLength:N,maxLength:w,pattern:M,placeholder:U,readOnly:v,required:D,inputRequired:T,value:k,onFocus:Y,onBlur:R,onInput:V,onChange:H,defaultValue:A,list:x,size:X,step:j})}),p&&se.jsx("div",{className:"utrecht-form-field__status",id:te,children:p}),ee]}))});Px.displayName="FormFieldTextbox";var Dx=["checked","disabled","invalid","id","hidden","required","role","tabIndex","className"];function Ap(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function Mx(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ap(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):Ap(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var kx=E.forwardRef(function(s,t){var n=s.checked,o=s.disabled,u=s.invalid,d=s.id,h=s.hidden,f=s.required,v=s.role,p=s.tabIndex,y=s.className,x=Te(s,Dx);return se.jsxs("div",{className:Ee("utrecht-form-toggle","utrecht-form-toggle--html-checkbox",{"utrecht-form-toggle--disabled":o,"utrecht-form-toggle--invalid":u,"utrecht-form-toggle--required":f},y),hidden:h,children:[se.jsx("input",Mx({id:d,"aria-invalid":u||void 0,type:"checkbox",className:"utrecht-form-toggle__checkbox",defaultChecked:n||void 0,disabled:o||void 0,required:f,ref:t,role:v,tabIndex:p},x)),se.jsx("label",{htmlFor:d,className:Ee("utrecht-form-toggle__track","utrecht-form-toggle__track--html-label"),children:se.jsx("div",{className:"utrecht-form-toggle__thumb"})})]})});kx.displayName="FormToggle";var Rx=["children","className"];function Pp(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function Dp(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Pp(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):Pp(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var jx=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=Te(s,Rx);return se.jsx("div",Dp(Dp({},u),{},{ref:t,className:Ee("utrecht-html",o),children:n}))});jx.displayName="HTMLContent";var Fx=["children","className"];function Mp(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function kp(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Mp(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):Mp(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var Ph=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=Te(s,Fx);return se.jsx("h1",kp(kp({},u),{},{ref:t,className:Ee("utrecht-heading-1",o),children:n}))});Ph.displayName="Heading1";var Bx=["children","className"];function Rp(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function jp(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Rp(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):Rp(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var Fp=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=Te(s,Bx);return se.jsx("h2",jp(jp({},u),{},{ref:t,className:Ee("utrecht-heading-2",o),children:n}))});Fp.displayName="Heading2";var qx=["children","className"];function Bp(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function qp(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bp(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):Bp(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var zp=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=Te(s,qx);return se.jsx("h3",qp(qp({},u),{},{ref:t,className:Ee("utrecht-heading-3",o),children:n}))});zp.displayName="Heading3";var zx=["children","className"];function Up(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function Vp(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Up(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):Up(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var tu=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=Te(s,zx);return se.jsx("h4",Vp(Vp({},u),{},{ref:t,className:Ee("utrecht-heading-4",o),children:n}))});tu.displayName="Heading4";var Ux=["children","className"];function Hp(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function Gp(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Hp(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):Hp(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var Vx=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=Te(s,Ux);return se.jsx("h5",Gp(Gp({},u),{},{ref:t,className:Ee("utrecht-heading-5",o),children:n}))});Vx.displayName="Heading5";var Hx=["children","className"];function Wp(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function Zp(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Wp(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):Wp(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var Dh=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=Te(s,Hx);return se.jsx("h6",Zp(Zp({},u),{},{ref:t,className:Ee("utrecht-heading-6",o),children:n}))});Dh.displayName="Heading6";var Gx=["children","className"];function Xp(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function Yp(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xp(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):Xp(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var Wx=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=Te(s,Gx);return se.jsx("hgroup",Yp(Yp({},u),{},{ref:t,className:Ee("utrecht-heading-group",o),children:n}))});Wx.displayName="HeadingGroup";var Zx=["children","value","className"];function Kp(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function Jp(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Kp(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):Kp(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var Xx=function(t){return t.replace(/[\s+\W]+/g,"").toUpperCase()},Yx=function(t){return t.replace(/(.{4})(?!$)/g,"$1 ")},Kx=E.forwardRef(function(s,t){var n=s.children,o=s.value,u=s.className,d=Te(s,Zx),h=Xx(o),f=Yx(h);return se.jsx("data",Jp(Jp({},d),{},{ref:t,value:h,className:Ee("utrecht-iban-data",u),translate:"no",children:n||f}))});Kx.displayName="IBANData";var Jx=["children","className"];function Qp(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function $p(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Qp(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):Qp(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var Qx=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=Te(s,Jx);return se.jsx("span",$p($p({"aria-hidden":"true",ref:t,className:Ee("utrecht-icon",o)},u),{},{children:n}))});Qx.displayName="Icon";var $x=["component","currentChar","characters","onLinkClick","Link"];function e2(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function Fc(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?e2(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):e2(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var eC=E.forwardRef(function(s,t){var n=s.component,o=s.currentChar,u=s.characters,d=s.onLinkClick,h=s.Link,f=Te(s,$x),v=h||Mc,p=[];return n==="button"?p=u.map(function(y){var x=y.char,_=y.disabled,S=o===x;return E.createElement(Ar,Fc(Fc({},f),{},{className:Ee({"utrecht-index-char-nav__link--current":S}),ref:t,key:x,appearance:S?"primary-action-button":"secondary-action-button",disabled:_,onClick:function(){return typeof d=="function"&&d(x)},pressed:S}),x)}):p=u.map(function(y){var x=y.char,_=y.disabled,S=y.href,N=o===x,w=Ee("utrecht-button-link","utrecht-button-link--html-a","utrecht-index-char-nav__link",{"utrecht-index-char-nav__link--current":N,"utrecht-button-link--primary-action":N,"utrecht-button-link--secondary-action":!N,"utrecht-index-char-nav__link--disabled":_,"utrecht-button-link--placeholder":_});return se.jsx(v,Fc(Fc({ref:t,appearance:h?void 0:N?"primary-action-button":"secondary-action-button",href:S,className:Ee(h&&w,"utrecht-index-char-nav__link",{"utrecht-index-char-nav__link--disabled":_,"utrecht-index-char-nav__link--current":N}),"aria-current":N?"page":void 0,"aria-disabled":_,placeholder:h?void 0:_,onClick:function(){return typeof d=="function"&&d(x)}},f),{},{children:x}),x)}),se.jsx("div",{className:"utrecht-index-char-nav",role:"group",children:p})});eC.displayName="IndexCharNav";var tC=["className","photo"];function t2(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function n2(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?t2(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):t2(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var nC=E.forwardRef(function(s,t){var n=s.className,o=s.photo,u=Te(s,tC);return se.jsx("img",n2(n2({},u),{},{ref:t,className:Ee("utrecht-img",{"utrecht-img--photo":o},n)}))});nC.displayName="Image";var rC=["children","disabled","inline","className","pressed","type"];function r2(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function i2(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?r2(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):r2(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var iC=E.forwardRef(function(s,t){var n=s.children,o=s.disabled,u=s.inline,d=s.className,h=s.pressed,f=s.type,v=Te(s,rC);return se.jsx("button",i2(i2({ref:t,"aria-pressed":typeof h=="boolean"?h:void 0,className:Ee("utrecht-link-button","utrecht-link-button--html-button",{"utrecht-link-button--disabled":o,"utrecht-link-button--inline":u,"utrecht-link-button--pressed":h},d),disabled:o,type:f||"button"},v),{},{children:n}))});iC.displayName="LinkButton";var sC=["children","className","external"];function s2(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function o2(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?s2(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):s2(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var oC=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=s.external,d=Te(s,sC);return se.jsx("a",o2(o2({},d),{},{ref:t,className:Ee("utrecht-link-social",o),rel:u!==!1?"external noopener noreferrer":void 0,children:n}))});oC.displayName="LinkSocial";var aC=["className","icon","children"],uC=["children","icon","links","className"];function a2(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function ml(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?a2(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):a2(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var u2=E.forwardRef(function(s,t){var n=s.className,o=s.icon,u=s.children,d=Te(s,aC);return se.jsx("li",{className:Ee("utrecht-link-list__item",n),children:se.jsxs(Pc,ml(ml({className:"utrecht-link-list__link"},d),{},{ref:t,children:[o,se.jsx("span",{className:"utrecht-link-list__link-text",children:u})]}))})});u2.displayName="LinkListLink";var lC=E.forwardRef(function(s,t){var n=s.children,o=s.icon,u=s.links,d=s.className,h=Te(s,uC);return se.jsxs("ul",ml(ml({role:"list",ref:t,className:Ee("utrecht-link-list","utrecht-link-list--html-ul",d)},h),{},{children:[n,Array.isArray(u)&&u.map(function(f,v){return se.jsx(u2,ml({icon:typeof o=="function"?o():void 0},f),v)})]}))});lC.displayName="LinkList";var cC=["children","className","disabled","invalid","multiple","readOnly","required"],dC=["children","label"],hC=["active","className","disabled","selected"];function l2(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function nu(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?l2(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):l2(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var fC=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=s.disabled,d=s.invalid,h=s.multiple,f=s.readOnly,v=s.required,p=Te(s,cC);return se.jsx("div",nu(nu({className:Ee("utrecht-listbox","utrecht-listbox--html-div",{"utrecht-listbox--disabled":u,"utrecht-listbox--invalid":d,"utrecht-listbox--read-only":f},o),role:"listbox","aria-disabled":u||void 0,"aria-invalid":d||void 0,"aria-multiselectable":h||void 0,"aria-readonly":f||void 0,"aria-required":v||void 0,tabIndex:0},p),{},{ref:t,children:se.jsx("ul",{className:"utrecht-listbox__list",children:n})}))});fC.displayName="Listbox";var gC=E.forwardRef(function(s,t){var n=s.children,o=s.label,u=Te(s,dC),d=E.useId();return se.jsxs("li",nu(nu({className:"utrecht-listbox__group",role:"group","aria-labelledby":d},u),{},{ref:t,children:[o&&se.jsx("div",{id:d,className:"utrecht-listbox__group-label",children:o}),se.jsx("ul",{children:n})]}))});gC.displayName="ListboxOptionGroup";var mC=E.forwardRef(function(s,t){var n=s.active,o=s.className,u=s.disabled,d=s.selected,h=Te(s,hC);return se.jsx("li",nu(nu({className:Ee("utrecht-listbox__option","utrecht-listbox__option--html-li",{"utrecht-listbox__option--active":n,"utrecht-listbox__option--disabled":u,"utrecht-listbox__option--selected":d},o),"aria-disabled":u||void 0,"aria-selected":d?"true":"false",tabIndex:u?void 0:-1,role:"option"},h),{},{ref:t}))});mC.displayName="ListboxOption";var pC=["children","className"];function c2(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function d2(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?c2(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):c2(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var vC=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=Te(s,pC);return se.jsx("div",d2(d2({ref:t,className:Ee("utrecht-logo",o)},u),{},{children:n}))});vC.displayName="Logo";function h2(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function f2(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?h2(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):h2(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var yC=E.forwardRef(function(s,t){var n=Tc({},(gm(s),s));return se.jsxs("svg",f2(f2({width:"192",height:"100",viewBox:"0 0 192 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},n),{},{children:[se.jsxs("g",{clipPath:"url(#clip0_908_6292)",children:[se.jsx("path",{d:"M124.75 61.3114C126.41 60.4985 127.932 59.5127 129.264 58.3712C129.558 57.9561 129.887 57.6448 130.267 57.4373C132.844 54.8084 134.453 51.4013 134.453 47.2331C134.453 47.2331 134.453 44.2583 134.453 43.5147C134.349 43.5492 134.245 43.5665 134.124 43.5665C134.003 43.5665 133.882 43.5492 133.761 43.5147L133.484 45.0885C130.924 44.6043 131.201 42.0619 132.931 41.1971C133.917 40.6955 134.228 40.3323 133.934 39.9519C133.847 39.8481 133.744 39.7962 133.623 39.7962C133.259 39.7962 132.723 40.194 132.204 40.5745C131.979 40.7474 131.685 40.8339 131.374 40.8339C130.7 40.8339 129.973 40.4015 129.662 39.3811L128.763 39.8827C128.607 37.9629 129.8 37.0117 131.011 37.0117C131.582 37.0117 132.17 37.2192 132.619 37.6343C132.792 37.79 132.965 37.8591 133.138 37.8591C133.692 37.8591 134.072 37.1673 133.329 36.7695C132.619 36.389 131.945 35.213 132.602 34.4693L131.53 33.4662C132.014 33.1721 132.533 33.0338 133.017 33.0338C133.536 33.0338 134.038 33.2067 134.453 33.5526V19.9932C134.124 19.924 133.744 19.5954 133.744 19.1285C133.744 18.6096 134.055 18.2983 134.453 18.1426V17.0184C133.64 17.1914 133.034 17.693 132.792 18.3848L131.651 18.4021C131.599 17.5373 132.014 16.759 132.896 16.465V15.3408C132.152 15.4965 131.668 15.8597 131.374 16.1883C131.288 16.2748 131.219 16.3785 131.132 16.4823L130.267 16.4996C130.233 15.6694 130.648 14.9257 131.426 14.6663V14.1474H128.261H92.2871H89.122V14.6663C89.9176 14.9257 90.3327 15.6694 90.2808 16.4996L89.4161 16.4823C89.3469 16.3785 89.2604 16.292 89.1739 16.1883C88.8799 15.877 88.3783 15.5138 87.652 15.3408V16.465C88.5167 16.759 88.9318 17.5373 88.8972 18.4021L87.7557 18.3848C87.5136 17.693 86.9083 17.2087 86.0954 17.0184V18.1426C86.4932 18.2983 86.7872 18.6096 86.7872 19.1285C86.7872 19.5781 86.424 19.924 86.0954 19.9932V33.5353C86.5105 33.1894 86.9947 33.0338 87.5136 33.0338C88.0151 33.0338 88.534 33.1894 89.001 33.4662L87.9287 34.4693C88.5686 35.2303 87.8941 36.389 87.2023 36.7695C86.4586 37.1673 86.8564 37.8591 87.3925 37.8591C87.5655 37.8591 87.7384 37.79 87.9114 37.6343C88.3611 37.2192 88.9491 37.0117 89.5198 37.0117C90.7305 37.0117 91.9239 37.9456 91.7682 39.8827L90.8343 39.3638C90.523 40.3842 89.7966 40.8166 89.122 40.8166C88.8107 40.8166 88.5167 40.7301 88.2919 40.5572C87.773 40.1767 87.2369 39.7789 86.8737 39.7789C86.7526 39.7789 86.6315 39.8308 86.5624 39.9346C86.2856 40.315 86.5797 40.6955 87.5655 41.1798C89.3123 42.0446 89.589 44.587 87.012 45.0712L86.7353 43.4974C86.6142 43.532 86.4932 43.5492 86.3721 43.5492C86.2683 43.5492 86.1646 43.532 86.0608 43.5147V47.2331C86.0608 51.4186 87.6865 54.8257 90.2808 57.4546C90.6094 57.6448 90.9207 57.9388 91.1975 58.3193C92.5292 59.4954 94.0858 60.4812 95.7634 61.3114C95.7634 61.3114 124.75 61.3114 124.75 61.3114Z",fill:"white"}),se.jsx("path",{d:"M135.162 2.40404C135.162 2.21379 135.145 2.04084 135.127 1.85059H132.516C132.498 3.33798 132.118 4.77348 131.461 5.89766C131.011 6.65865 130.475 7.22939 129.87 7.5753H130.06C132.879 7.59259 135.162 5.27504 135.162 2.40404ZM132.516 12.3142C132.308 12.2796 132.118 12.2623 131.91 12.2623C131.755 12.2623 131.599 12.2796 131.443 12.2969C130.959 12.3488 130.475 12.5044 130.094 12.7811C129.662 13.0925 129.351 13.6113 129.333 14.1648H130.146C130.509 13.8707 130.942 13.6632 131.409 13.5594V14.6836C130.613 14.943 130.198 15.6867 130.25 16.5169L131.115 16.4996C131.184 16.3958 131.27 16.3094 131.357 16.2056C131.651 15.8943 132.152 15.5311 132.879 15.3581V16.4823C132.014 16.7763 131.599 17.5546 131.634 18.4194L132.775 18.4021C133.035 17.6757 133.674 17.1741 134.539 17.0185V18.1254C134.09 18.2637 133.726 18.575 133.726 19.1458C133.726 19.6473 134.176 20.0105 134.539 20.0105L134.505 20.9618C134.505 20.9618 134.505 20.9618 134.522 20.9618C134.764 20.9618 134.972 20.8926 135.196 20.7888C135.906 20.4083 136.182 19.5781 136.165 18.8172L137.203 18.3156C137.203 18.3502 137.22 18.3848 137.22 18.4367C137.306 19.0766 137.22 19.6992 137.012 20.2354L138.967 22.0859C139.347 21.152 139.849 20.27 140.454 19.4571C140.679 19.1804 140.904 18.9036 141.146 18.6615C140.299 18.0216 139.261 17.226 138.915 16.9666C137.825 16.1537 136.822 15.2544 135.784 14.3723C135.145 13.8361 134.487 13.3 133.796 12.833C133.398 12.5736 132.965 12.4007 132.516 12.3142ZM150.658 46.6451C150.814 46.7316 150.97 46.7662 151.125 46.7662C151.506 46.7662 151.869 46.5586 152.077 46.23C152.042 46.0398 151.973 45.8322 151.921 45.642C151.748 45.1231 151.488 44.6216 151.125 44.1373C150.658 43.5147 150.036 42.9439 149.206 42.477C149.084 42.4078 148.946 42.3213 148.79 42.2348C149.344 42.9093 149.673 43.3936 149.88 43.8087C150.105 44.2238 150.209 44.5524 150.364 44.8637C150.312 44.9156 150.278 44.9675 150.243 45.0194C149.863 45.5901 150.088 46.3511 150.658 46.6451ZM70.6335 43.7914C70.8411 43.3936 71.1697 42.892 71.7231 42.2175C71.5848 42.304 71.4291 42.3905 71.308 42.4597C70.4779 42.9266 69.8552 43.4974 69.3883 44.12C69.0251 44.6043 68.7829 45.1231 68.5927 45.6247C68.5235 45.8149 68.4716 46.0225 68.437 46.2127C68.6446 46.5413 69.0078 46.7489 69.3883 46.7489C69.5439 46.7489 69.6996 46.7143 69.8552 46.6278C70.426 46.3338 70.6508 45.5728 70.253 44.9848C70.2184 44.9329 70.1839 44.881 70.132 44.8291C70.3049 44.5351 70.4087 44.2065 70.6335 43.7914ZM142.287 13.1098C142.495 13.1098 142.72 13.0925 142.945 13.0752C142.27 12.833 141.734 12.4352 141.388 11.8818C140.904 11.1381 140.835 10.3425 141.025 9.63342C140.99 9.63342 140.956 9.65072 140.921 9.65072C140.108 9.82367 139.693 10.4463 139.849 11.2765C140.074 12.5217 140.852 13.1098 142.287 13.1098ZM152.163 48.0633C152.18 47.8904 152.198 47.7174 152.198 47.5272C151.869 47.7174 151.488 47.8212 151.108 47.8212C150.762 47.8212 150.451 47.7347 150.139 47.579C149.534 47.2677 149.119 46.697 148.998 46.0225C148.912 45.5901 148.963 45.1404 149.136 44.7426C149.136 44.7426 149.136 44.7253 149.119 44.7253C148.652 44.6389 148.133 44.5697 147.562 44.5005C146.611 44.3967 145.746 44.3448 144.951 44.3448C137.514 44.3448 136.909 48.4265 136.909 48.4265C135.75 52.7676 139.226 54.7219 139.226 54.7219C139.226 54.7219 140.022 58.6825 138.258 60.1872L136.424 59.5646L135.508 59.2533L134.989 59.0803C134.159 57.9043 132.81 57.0741 131.53 57.0741C130.285 57.0741 129.091 57.8697 128.503 59.9278L129.8 59.6511C129.8 60.9828 130.233 61.3287 130.907 61.3287C131.046 61.3287 131.201 61.3114 131.357 61.2941C131.547 61.2595 131.737 61.2249 131.945 61.1903C132.585 61.0693 133.052 60.9309 133.38 60.9309C133.692 60.9309 133.899 61.052 134.02 61.3806C134.193 61.8822 133.709 62.1935 133.086 62.3491C131.564 62.695 130.7 63.7673 130.976 65.2028C131.046 65.5314 131.149 65.86 131.34 66.2232C131.409 66.3789 131.495 66.5173 131.599 66.6729C131.599 66.6729 131.616 66.6729 131.616 66.6902L133.121 65.7736C133.346 65.9984 133.605 66.0849 133.865 66.0849C134.435 66.0849 134.989 65.6698 135.196 65.3066C135.214 65.272 135.231 65.2374 135.248 65.2028C135.421 64.8569 135.439 64.4591 135.439 64.0959C135.439 63.8884 135.421 63.6809 135.421 63.4906C135.421 63.2658 135.421 63.0755 135.473 62.9372C135.56 62.6604 135.784 62.4702 136.027 62.3664C136.113 62.3318 136.217 62.3145 136.303 62.3145C136.459 62.3145 136.615 62.3664 136.753 62.4702C137.116 62.7296 137.116 63.1274 137.064 63.5252C137.012 63.9403 136.943 64.3208 137.168 64.6667C137.185 64.7013 137.203 64.7186 137.22 64.7532C137.306 64.8569 137.41 64.9607 137.514 65.0472C137.583 65.0991 137.894 65.3239 137.894 65.4104L137.739 67.2437C138.707 67.1745 139.78 66.9669 140.299 66.0849C140.402 65.9119 140.489 65.6871 140.541 65.4623C140.731 64.7877 140.817 63.9576 140.921 62.7988C141.354 62.6258 141.734 62.401 142.063 62.107C142.478 61.7438 142.806 61.2941 142.997 60.7234C143.515 59.1668 143.965 56.0537 143.273 52.7676C143.273 52.7676 150.243 51.9028 151.748 51.1418C151.886 50.0868 152.025 49.0318 152.163 48.0633ZM146.023 7.93849C146.023 7.93849 145.072 8.50924 145.262 9.40858C145.574 10.0658 145.971 10.7403 146.473 11.3283L147.441 10.3598C148.583 9.30481 149.586 8.92432 150.416 8.92432C151.506 8.92432 152.267 9.61613 152.578 10.4117C153.062 11.6224 153.01 12.5909 152.838 13.2135C152.699 13.6805 152.319 14.061 151.454 14.1302C151.298 14.1475 151.125 14.1475 150.952 14.1475C149.171 14.1475 146.836 13.5075 146.836 13.5075C146.473 15.4446 146.248 15.8251 149.015 15.8251C149.655 15.8251 150.451 15.8078 151.437 15.7732L148.669 17.0358C148.358 17.0185 148.064 17.0012 147.77 17.0012C145.729 17.0012 144.103 17.6065 142.824 18.5923C142.53 18.8172 142.253 19.0593 141.993 19.3187C141.008 20.3218 140.299 21.5671 139.797 22.8815C139.659 23.262 139.538 23.6425 139.434 24.023C138.898 26.0293 138.828 28.122 139.105 29.7996C139.313 29.5402 139.52 29.298 139.762 29.0559L139.883 28.9348C140.714 28.122 142.115 26.7211 143.792 25.8563C144.415 25.3029 145.003 24.7494 145.574 24.1441C146.801 22.8469 147.891 21.4114 148.704 19.7857C148.202 21.5325 147.355 23.2101 146.352 24.7494C145.954 25.3547 145.539 25.9428 145.107 26.5135C144.726 26.6692 144.38 26.8421 144.034 27.0497C142.564 27.8798 141.319 29.1597 140.593 29.8861C140.16 30.3012 139.814 30.7681 139.486 31.2524C139.226 31.6329 139.001 32.0134 138.759 32.4112C138.586 32.7052 138.396 33.0165 138.223 33.3105C137.445 34.5731 136.407 35.8183 135.819 35.8183C135.612 35.8183 135.456 35.6627 135.387 35.3168C135.075 33.7429 134.09 33.0511 133.017 33.0511C132.516 33.0511 131.997 33.2067 131.53 33.4835L132.602 34.4866C131.962 35.2476 132.637 36.4064 133.329 36.7869C134.072 37.1846 133.674 37.8764 133.138 37.8764C132.965 37.8764 132.792 37.8073 132.619 37.6516C132.17 37.2365 131.582 37.029 131.011 37.029C129.8 37.029 128.607 37.9629 128.763 39.9L129.697 39.3811C130.008 40.4015 130.734 40.8339 131.409 40.8339C131.72 40.8339 132.014 40.7474 132.239 40.5745C132.758 40.194 133.294 39.7962 133.657 39.7962C133.778 39.7962 133.899 39.8481 133.968 39.9519C134.245 40.3324 133.951 40.7129 132.965 41.1971C131.219 42.0619 130.942 44.6043 133.519 45.0885L133.796 43.5147C133.917 43.5493 134.038 43.5666 134.159 43.5666C134.902 43.5666 135.421 42.9093 135.508 42.4251C135.629 41.716 135.594 41.2836 135.629 40.8339C135.646 40.4361 135.906 40.2632 136.165 40.2632C136.476 40.2632 136.788 40.488 136.822 40.8858C136.874 41.6295 136.857 42.598 138.171 42.8229L138.586 44.1546C139.832 43.7222 141.077 42.2867 138.811 39.8654C138.777 38.6374 140.074 37.9283 141.89 36.9079C142.201 36.735 142.53 36.5447 142.858 36.3545C143.031 36.2507 143.204 36.1469 143.377 36.0432C143.74 35.8183 145.141 34.7979 146.369 33.7429L147.441 34.3136C147.217 34.5039 146.974 34.7114 146.698 34.9536C145.591 35.8702 144.397 36.7696 143.948 37.029C143.861 37.0809 143.775 37.1328 143.688 37.1846C144.864 38.2742 146.127 39.2255 147.268 39.9865C147.735 40.2978 148.185 40.5918 148.6 40.8512C149.015 41.1106 149.413 41.3355 149.742 41.5257C150.658 42.0446 151.385 42.6845 151.938 43.4109C152.301 43.8779 152.578 44.3794 152.786 44.881C152.993 45.3653 153.132 45.8668 153.201 46.3684C153.235 46.5413 153.253 46.697 153.27 46.8699C153.304 47.3369 153.287 47.7866 153.235 48.219C153.166 48.6859 153.114 49.1529 153.045 49.6199C152.959 50.329 152.889 51.0208 152.838 51.7299C152.768 52.5601 152.734 53.3729 152.734 54.1858C152.734 56.6763 153.114 58.4577 154.844 60.1526C156.089 61.3806 157.836 61.6746 159.531 61.7957C160.413 61.8476 162.886 62.2108 164.564 62.4702C165.532 62.6086 166.259 63.4214 166.31 64.4072C166.38 65.739 166.362 67.4858 165.895 68.0738L163.612 67.7625C163.076 66.9669 161.796 66.3443 160.551 66.3443C159.583 66.3443 158.631 66.7248 158.095 67.7279C157.94 68.0219 157.801 68.3678 157.732 68.7829C157.715 68.904 157.697 69.0251 157.68 69.1634L158.407 68.8694L158.822 68.6965C158.839 68.8002 158.856 68.8867 158.874 68.9732C159.116 69.9763 159.635 70.3395 160.257 70.3395C160.551 70.3395 160.862 70.253 161.191 70.132C161.226 70.1147 161.26 70.0974 161.312 70.0801C161.9 69.8379 162.315 69.6477 162.627 69.6477C162.834 69.6477 162.99 69.7342 163.128 69.9763C163.318 70.3049 163.128 70.5816 162.8 70.8065C162.696 70.8756 162.557 70.9448 162.436 70.9967C160.69 71.7231 160.188 73.418 161.796 75.1821L163.007 74.1098C163.197 74.2309 163.388 74.2828 163.561 74.2828C164.149 74.2828 164.685 73.7466 164.823 73.3489C165.048 72.7435 164.806 72.0517 164.719 71.5502C164.702 71.4118 164.685 71.2734 164.702 71.1697C164.737 70.8929 164.927 70.6681 165.152 70.547C165.255 70.4952 165.359 70.4606 165.48 70.4606C165.584 70.4606 165.688 70.4779 165.792 70.5297C165.895 70.5816 165.982 70.6508 166.051 70.7373C166.207 70.9275 166.241 71.187 166.241 71.4464C166.241 71.5847 166.241 71.7404 166.259 71.8788C166.293 72.1209 166.362 72.3457 166.57 72.536C166.674 72.6225 166.777 72.6916 166.881 72.7608C166.95 72.7954 167.279 72.9511 167.296 73.0202L167.452 74.7152C168.663 74.4212 169.994 73.8331 169.666 71.9479C169.614 71.6366 169.51 71.2734 169.337 70.8756C169.285 70.7373 169.216 70.5816 169.13 70.426C170.185 69.9071 170.876 68.9213 171.049 67.7625C171.205 66.7075 171.032 62.9545 170.911 60.8098C170.859 59.9451 170.202 59.236 169.354 59.1149C168.386 58.9766 167.141 58.7863 166.224 58.5961C164.771 58.2848 163.37 57.6448 163.042 56.6071C162.765 55.7078 162.921 55.604 163.007 54.6874C163.076 53.9783 163.163 53.2519 163.215 52.5428C163.215 52.439 163.232 52.3179 163.232 52.2142C163.249 51.7991 163.232 51.3667 163.18 50.9516C163.267 51.0035 163.353 51.0554 163.439 51.1073C163.716 51.2629 164.01 51.3667 164.304 51.4532C164.633 51.5396 164.961 51.5742 165.307 51.5742C166.034 51.5742 166.743 51.384 167.383 50.9862C168.542 50.2771 169.216 49.0491 169.181 47.7001C169.13 45.2961 167.763 43.6012 166.449 41.9581C165.826 41.1798 165.169 40.367 164.685 39.5022C163.145 36.735 162.782 33.7256 163.612 30.5606C163.976 29.177 164.806 27.9317 165.688 26.6C166.016 26.0984 166.328 25.6315 166.639 25.1126C166.639 25.1126 167.331 25.4239 167.781 25.3201C167.902 25.2856 168.023 25.2337 168.161 25.1472C169.216 24.49 170.34 21.8092 170.288 18.5923C170.254 16.0326 169.648 13.9053 168.455 12.1585C168.715 12.8849 168.939 13.6459 169.078 14.4069C169.233 15.2371 169.285 16.1018 169.233 16.932C169.181 17.7795 169.008 18.5923 168.732 19.3533C168.853 18.5404 168.853 17.7276 168.749 16.932C168.645 16.1364 168.438 15.3754 168.144 14.649C167.884 14.0091 167.573 13.3865 167.21 12.7984C167.452 14.2858 167.452 15.7905 167.054 17.6584C166.812 18.8172 166.31 19.9241 165.878 20.8926C165.48 21.7746 165.186 22.4837 165.065 23.0718C164.927 23.7117 165.013 24.196 165.446 24.5938C165.377 24.7148 165.29 24.8359 165.221 24.9569C165.031 25.251 164.823 25.5623 164.616 25.8736C163.716 27.2399 162.782 28.6408 162.367 30.232C161.468 33.691 161.883 37.1155 163.561 40.1421C164.097 41.1106 164.788 41.9581 165.446 42.7883C166.674 44.3275 167.85 45.7803 167.902 47.752C167.919 48.6513 167.487 49.4296 166.726 49.8966C165.93 50.3809 164.979 50.4155 164.166 50.0177C164.149 50.0004 164.114 50.0004 164.097 49.9831C163.474 49.6545 162.921 49.0318 162.592 48.3054C162.575 48.2708 162.575 48.2363 162.557 48.2017C162.16 47.0429 161.675 45.9014 161.122 44.8118C159.496 41.5603 157.473 38.5164 156.193 35.0919C155.086 32.1517 155.587 28.5716 155.587 28.5716C156.712 29.0213 158.355 29.0732 158.355 29.0732C158.303 25.4066 166.172 16.8974 161.381 6.52029C161.053 7.05644 160.62 7.60989 160.015 8.18063L159.583 8.59571V7.09103C162.09 4.49675 160.932 2.02354 159.998 1.19337C159.289 1.4528 158.476 2.23109 157.87 3.18232L156.815 2.83642C157.075 2.40404 157.369 1.98895 157.697 1.60846C157.594 1.53928 157.49 1.48739 157.369 1.4701C157.317 1.4701 157.248 1.4528 157.161 1.4528C155.587 1.4528 149.672 2.81912 149.084 3.13043L148.617 4.72159C147.009 5.15397 145.522 6.01873 144.467 6.58947C144.553 7.03914 145.037 8.05956 146.023 7.93849ZM157.767 18.0908C158.199 16.8974 158.545 15.6694 158.822 14.4242C158.683 15.704 158.493 16.9666 158.199 18.2291C157.905 19.4917 157.507 20.7196 157.04 21.9303C156.573 23.141 156.037 24.317 155.484 25.4758C155.034 26.3924 154.567 27.2918 154.1 28.1911C153.668 28.0528 153.149 27.8279 152.578 27.4993C153.91 25.5796 155.19 23.6252 156.262 21.5671C156.833 20.4429 157.352 19.2841 157.767 18.0908ZM153.218 19.9759C152.941 20.8061 152.665 21.6536 152.319 22.4837C151.973 23.3139 151.54 24.1268 151.091 24.8878C150.814 25.3547 150.537 25.8217 150.261 26.2887C149.672 26.0811 149.084 25.9601 148.514 25.9255C149.015 25.3374 149.534 24.7321 150.018 24.1441C150.572 23.4696 151.073 22.7951 151.54 22.0859C151.99 21.3596 152.405 20.5986 152.803 19.8203C153.201 19.042 153.581 18.2464 153.979 17.4681C153.737 18.2983 153.477 19.1458 153.218 19.9759ZM152.872 5.01561C151.661 6.20898 151.264 6.93537 151.264 6.93537C149.655 7.00455 149.309 5.98414 149.309 4.98102C150.883 5.4134 152.872 5.01561 152.872 5.01561ZM131.426 8.68219H89.1567V11.2073C89.7274 11.2592 90.4538 11.4494 91.0937 11.8991C91.8201 12.4352 92.2698 13.2654 92.2871 14.1129V14.1475H128.244V14.1129C128.261 13.2654 128.711 12.4352 129.437 11.8991C130.094 11.4148 130.855 11.2419 131.426 11.19V8.68219ZM98.0118 13.2308L94.5355 11.5013L98.0118 9.77178L101.488 11.5013L98.0118 13.2308ZM110.274 13.0406C108.579 13.0406 107.196 12.3488 107.196 11.5013C107.196 10.6538 108.579 9.96203 110.274 9.96203C111.969 9.96203 113.353 10.6538 113.353 11.5013C113.353 12.3488 111.969 13.0406 110.274 13.0406ZM122.536 13.2308L119.06 11.5013L122.536 9.77178L126.013 11.5013L122.536 13.2308ZM86.4413 61.3806C86.5624 61.052 86.7699 60.9309 87.0812 60.9309C87.4099 60.9309 87.8768 61.052 88.5167 61.1903C88.7243 61.2249 88.9145 61.2595 89.1048 61.2941C89.2604 61.3114 89.4161 61.3287 89.5545 61.3287C90.229 61.3287 90.6613 61.0001 90.6613 59.6511L91.9585 59.9278C91.3704 57.8697 90.1771 57.0741 88.9318 57.0741C87.652 57.0741 86.303 57.9216 85.4728 59.0803L84.9539 59.2533L84.0719 59.5992L82.2386 60.2218C80.4572 58.7171 81.2701 54.7565 81.2701 54.7565C81.2701 54.7565 84.7464 52.8022 83.5876 48.4611C83.5876 48.4611 82.9823 44.3794 75.5454 44.3794C74.7498 44.3794 73.885 44.4313 72.9338 44.5351C72.363 44.6043 71.8442 44.6735 71.3772 44.7599C71.3772 44.7599 71.3772 44.7772 71.3599 44.7772C71.5329 45.175 71.5848 45.6247 71.4983 46.0571C71.3772 46.7316 70.9621 47.3023 70.3568 47.6136C70.0628 47.7693 69.7342 47.8558 69.3883 47.8558C69.0078 47.8558 68.6446 47.752 68.2987 47.5617C68.2987 47.752 68.316 47.9249 68.3333 48.0979C68.4716 49.0664 68.61 50.1041 68.6965 51.1937C70.2012 51.9547 77.1711 52.8195 77.1711 52.8195C76.4966 56.1056 76.929 59.2187 77.4478 60.7753C77.6381 61.346 77.9667 61.7957 78.3818 62.1589C78.7104 62.4529 79.0909 62.6777 79.5233 62.8507C79.6097 63.9922 79.6962 64.8396 79.9037 65.5141C79.9556 65.7563 80.0421 65.9638 80.1459 66.1368C80.6647 67.0188 81.737 67.2264 82.7056 67.2955L82.5499 65.4623C82.5499 65.3758 82.8785 65.1509 82.9304 65.0991C83.0342 65.0126 83.1379 64.9088 83.2244 64.805C83.2417 64.7704 83.259 64.7532 83.2763 64.7186C83.5011 64.3554 83.432 63.9749 83.3801 63.5771C83.3282 63.1793 83.3282 62.7815 83.6914 62.5221C83.8298 62.4183 83.9854 62.3664 84.1411 62.3664C84.2448 62.3664 84.3313 62.3837 84.4178 62.4183C84.6599 62.5048 84.8848 62.7123 84.9712 62.989C85.0231 63.1274 85.0231 63.3177 85.0231 63.5425C85.0231 63.7327 85.0058 63.9403 85.0058 64.1478C85.0058 64.511 85.0404 64.9088 85.1961 65.2547C85.2134 65.2893 85.2307 65.3239 85.248 65.3585C85.4555 65.7044 86.0089 66.1368 86.5797 66.1368C86.8391 66.1368 87.0985 66.0503 87.3234 65.8255L88.8281 66.7421C88.8281 66.7421 88.8454 66.7421 88.8454 66.7248C88.9491 66.5691 89.0183 66.4135 89.1048 66.2751C89.2777 65.9119 89.3988 65.5833 89.468 65.2547C89.7447 63.8019 88.8799 62.7469 87.358 62.401C86.7699 62.2108 86.2684 61.8994 86.4413 61.3806ZM143.066 69.3883C142.651 68.7483 142.149 68.2987 141.682 67.9528C141.509 67.849 141.336 67.7625 141.146 67.6587L140.662 67.4166C139.832 68.1257 138.707 68.2987 137.877 68.3505L136.615 68.437L136.718 67.1745L136.822 65.86C136.684 65.739 136.545 65.6006 136.407 65.4277C136.407 65.4104 136.39 65.4104 136.39 65.3931C136.338 65.5487 136.269 65.7044 136.182 65.8428C135.802 66.5 134.902 67.1572 133.917 67.1572C133.657 67.1572 133.415 67.1053 133.173 67.0188L132.602 67.3647C132.637 67.3993 132.689 67.4339 132.723 67.4685C134.574 69.1807 135.957 69.371 138.31 69.9071C139.901 70.2703 141.388 71.187 141.89 72.83C142.184 73.7812 142.132 74.8189 142.08 75.8048C142.08 75.8048 145.331 73.9542 143.602 70.3049C143.464 70.0455 143.273 69.7169 143.066 69.3883ZM120.876 68.1257C119.856 67.088 118.766 66.206 117.676 65.6871C116.777 65.2547 115.878 64.9607 115.03 64.7704C114.477 64.6494 113.941 64.5629 113.439 64.511C113.145 64.4764 112.868 64.4591 112.592 64.4418C111.865 64.4764 111.087 64.4937 110.274 64.4937C109.461 64.4937 108.683 64.4764 107.957 64.4418C107.68 64.4591 107.403 64.4764 107.092 64.511C106.59 64.5629 106.054 64.6494 105.501 64.7704C104.653 64.9607 103.754 65.2547 102.854 65.6871C101.765 66.2232 100.675 67.088 99.6548 68.1257C99.5857 68.1949 99.5338 68.2468 99.4819 68.316C97.2681 70.72 97.8561 73.0721 97.8561 73.0721C97.8561 73.0721 100.693 69.3018 104.93 69.3018C106.953 69.3018 108.7 69.9763 109.6 70.426L110.257 70.7719L110.914 70.426C111.813 69.9936 113.56 69.3018 115.584 69.3018C119.821 69.3018 122.657 73.0721 122.657 73.0721C122.657 73.0721 123.263 70.72 121.032 68.316C120.997 68.2641 120.945 68.1949 120.876 68.1257ZM98.8766 67.3647C100.554 65.6698 102.405 64.5975 104.082 64.0268C102.56 63.7846 101.263 63.4733 100.105 63.1101C99.9835 63.1101 99.8624 63.0928 99.7413 63.0928C99.3781 63.0928 99.0149 63.1101 98.6863 63.1447C97.7178 63.2658 96.8011 63.4387 95.9191 63.4387C93.6188 63.4387 91.5953 63.0928 89.9522 62.6431C90.1252 62.868 90.2809 63.1101 90.3846 63.3868C90.644 64.0268 90.6959 64.7532 90.5403 65.4968C90.6095 65.5141 90.6613 65.5314 90.7305 65.5487C91.0418 65.6179 91.3359 65.6871 91.578 65.7217C92.045 65.8082 92.3217 65.8255 92.3217 65.8255C92.3217 65.8255 91.9066 66.0503 91.3186 66.4481C90.6095 66.9323 89.6582 67.6587 88.8454 68.5408C85.0231 72.7435 89.2431 75.9258 89.2431 75.9258C89.2431 75.9258 88.3092 71.7923 90.2981 70.4779C93.4805 68.4024 95.1754 70.1838 98.7382 67.4685C98.7901 67.4685 98.8247 67.4166 98.8766 67.3647ZM87.9287 67.3993L87.358 67.0534C87.1331 67.1399 86.8737 67.1918 86.6143 67.1918C85.6112 67.1918 84.7118 66.5346 84.3486 65.8773C84.2621 65.7217 84.193 65.5833 84.1411 65.4277C84.1411 65.445 84.1238 65.445 84.1238 65.4623C83.9854 65.6352 83.847 65.7736 83.7087 65.8946L83.8125 67.2091L83.9162 68.4716L82.6537 68.3851C81.8235 68.3333 80.7166 68.1603 79.8692 67.4512L79.3849 67.6933C79.1946 67.7971 79.0217 67.8836 78.8487 67.9874C78.3645 68.3333 77.8802 68.7829 77.4651 69.4229C77.2403 69.7515 77.0673 70.0628 76.929 70.3741C75.1995 74.0234 78.451 75.874 78.451 75.874C78.3991 74.8881 78.3645 73.8504 78.6412 72.8992C79.1428 71.2561 80.6301 70.3568 82.2213 69.9763C84.5907 69.4229 85.9571 69.2499 87.8076 67.5377C87.8595 67.4685 87.8941 67.4339 87.9287 67.3993ZM129.212 66.4827C128.624 66.0849 128.209 65.86 128.209 65.86C128.209 65.86 128.503 65.8255 128.953 65.7563C129.195 65.7217 129.489 65.6525 129.8 65.5833C129.852 65.566 129.921 65.5487 129.991 65.5314C129.835 64.7877 129.887 64.0613 130.146 63.4214C130.25 63.162 130.406 62.9026 130.579 62.6777C128.936 63.1274 126.912 63.4733 124.612 63.4733C123.73 63.4733 122.813 63.2831 121.845 63.1793C121.516 63.1447 121.153 63.1274 120.79 63.1274C120.668 63.1274 120.565 63.1274 120.444 63.1274C119.285 63.4906 117.97 63.8019 116.466 64.0441C118.143 64.6148 119.994 65.6698 121.672 67.382C121.723 67.4339 121.758 67.4685 121.793 67.5204C125.355 70.2357 127.05 68.4543 130.233 70.5297C132.222 71.8269 131.288 75.9777 131.288 75.9777C131.288 75.9777 135.49 72.7954 131.686 68.5927C130.873 67.6933 129.904 66.9496 129.212 66.4827ZM170.738 71.8615C170.859 72.6052 170.79 73.2624 170.513 73.8504C169.925 75.0957 168.628 75.5453 167.711 75.7875L166.483 76.0988L166.362 74.8362L166.241 73.6602C166.138 73.591 166.016 73.5045 165.913 73.418C165.895 73.5218 165.861 73.6256 165.826 73.7293C165.532 74.5422 164.598 75.3724 163.543 75.3724C163.439 75.3724 163.336 75.3724 163.232 75.3551L162.488 76.0123L161.693 76.7214L160.966 75.9258C159.946 74.8189 159.531 73.5737 159.79 72.4322C159.877 72.069 160.015 71.7231 160.223 71.4118C159.583 71.4118 159.012 71.1697 158.58 70.72C158.424 70.547 158.268 70.3568 158.164 70.132L158.095 70.1492L156.418 70.8411L156.608 69.0424C156.608 68.9732 156.625 68.9213 156.625 68.8521C155.881 68.9732 154.982 69.2499 153.841 69.6823C153.685 69.7688 153.512 69.8379 153.356 69.8898C153.27 69.9244 153.201 69.959 153.114 69.9763C153.477 70.1838 153.841 70.3914 154.169 70.5989C155.812 71.6539 156.936 72.7954 157.525 73.9888C157.888 74.3693 158.286 74.7844 158.718 75.2513C160.499 77.1538 162.903 78.0359 165.377 78.0359C169.614 78.0359 173.99 75.4243 175.529 70.8238C175.512 70.8411 173.419 71.5502 170.738 71.8615ZM153.495 71.481C151.298 70.0974 148.877 69.3191 148.877 69.3191C149.309 69.3537 149.707 69.371 150.088 69.371C151.039 69.371 151.817 69.2499 152.457 69.0597C152.82 68.9559 153.149 68.8175 153.426 68.6792C155.449 67.6414 155.518 65.7909 155.518 65.7909C153.91 66.8805 152.492 67.261 151.177 67.261C149.482 67.261 147.943 66.6556 146.369 66.2059C145.902 66.0676 145.435 66.0157 144.986 66.0157C143.688 66.0157 142.564 66.5 141.924 66.8459C142.737 67.3474 143.429 67.9874 143.965 68.8002C144.173 69.1288 144.363 69.4574 144.519 69.7688C145.037 70.4779 145.366 71.1005 145.885 71.5156C147.078 72.5187 148.739 72.7262 150.243 72.83C154.809 73.1759 156.677 77.2922 156.677 77.2922C157.058 76.3409 156.988 75.4416 156.625 74.6287C156.054 73.3834 154.826 72.3284 153.495 71.481ZM78.5893 66.8459C77.9494 66.5 76.8425 66.0157 75.5281 66.0157C75.0784 66.0157 74.6287 66.0676 74.1444 66.2059C72.5533 66.6556 71.0313 67.261 69.3364 67.261C68.022 67.261 66.6038 66.8978 64.9953 65.7909C64.9953 65.7909 65.0818 67.6414 67.088 68.6792C67.3647 68.8175 67.6933 68.9559 68.0565 69.0597C68.6965 69.2499 69.4921 69.371 70.426 69.371C70.8065 69.371 71.2043 69.3537 71.6366 69.3191C71.6366 69.3191 69.2153 70.0974 67.0188 71.481C65.6871 72.3284 64.4592 73.3834 63.9057 74.6287C63.5425 75.4416 63.4733 76.3236 63.8538 77.2922C63.8538 77.2922 65.7044 73.1759 70.2876 72.83C71.7923 72.7089 73.4353 72.5014 74.646 71.5156C75.1649 71.0832 75.4935 70.4606 76.0123 69.7688C76.168 69.4401 76.3582 69.1288 76.5658 68.8002C77.0846 67.9874 77.7764 67.3301 78.5893 66.8459ZM51.4013 70.4433C51.3321 70.5989 51.2629 70.7546 51.1937 70.8929C51.0381 71.2907 50.917 71.6366 50.8651 71.9652C50.5192 73.8504 51.8683 74.4385 53.0789 74.7325L53.2346 73.0375C53.2519 72.9684 53.5805 72.8127 53.6497 72.7781C53.7534 72.7089 53.8745 72.6398 53.961 72.5533C54.1685 72.363 54.2377 72.1382 54.2723 71.8961C54.2896 71.7577 54.2896 71.6193 54.2896 71.4637C54.3069 71.2043 54.3415 70.9448 54.4798 70.7546C54.549 70.6681 54.6182 70.5989 54.7393 70.547C54.843 70.4952 54.9468 70.4779 55.0506 70.4779C55.1716 70.4779 55.2754 70.5124 55.3792 70.5643C55.604 70.6854 55.7943 70.9102 55.8289 71.187C55.8461 71.2907 55.8289 71.4291 55.8116 71.5675C55.7251 72.069 55.483 72.7608 55.7078 73.3662C55.8462 73.7639 56.3823 74.3001 56.9703 74.3001C57.1606 74.3001 57.3335 74.2482 57.5238 74.1271L58.7344 75.1994C60.3429 73.4353 59.8413 71.7404 58.0945 71.014C57.9562 70.9621 57.8351 70.8929 57.7313 70.8238C57.4027 70.5989 57.2125 70.3049 57.4027 69.9936C57.5411 69.7515 57.6967 69.665 57.9043 69.665C58.2156 69.665 58.6134 69.8552 59.2187 70.0974C59.2533 70.1147 59.2879 70.132 59.3398 70.1492C59.6684 70.2703 59.9797 70.3568 60.2737 70.3568C60.8963 70.3568 61.3979 69.9936 61.6573 68.9905C61.6746 68.904 61.6919 68.8002 61.7092 68.7138L62.1243 68.8867L62.8507 69.1807C62.8334 69.0596 62.8161 68.9213 62.7988 68.8002C62.7296 68.3851 62.5913 68.0392 62.4356 67.7452C61.8995 66.7594 60.9482 66.3616 59.9797 66.3616C58.7344 66.3616 57.4546 66.9842 56.9185 67.7798L54.6355 68.0911C54.1685 67.5031 54.1512 65.7736 54.2204 64.4245C54.2723 63.4387 54.9987 62.6431 55.9672 62.4875C57.6276 62.2454 60.1181 61.8822 61.0001 61.813C62.6777 61.6919 64.4246 61.3979 65.6871 60.1699C67.4166 58.4577 67.7971 56.6763 67.7971 54.2031C67.7971 53.3902 67.7625 52.5773 67.6933 51.7472C67.6415 51.0381 67.555 50.329 67.4858 49.6372C67.4339 49.1702 67.3647 48.7032 67.2956 48.2363C67.2264 47.8039 67.2264 47.3369 67.261 46.8872C67.2783 46.7143 67.2956 46.5586 67.3302 46.3857C67.4166 45.8841 67.555 45.3998 67.7452 44.8983C67.9528 44.3794 68.2468 43.8952 68.5927 43.4282C69.1461 42.7018 69.8725 42.0619 70.7892 41.543C71.1178 41.3528 71.5156 41.1279 71.9307 40.8685C72.3458 40.6091 72.7954 40.3324 73.2624 40.0038C74.4039 39.2428 75.6664 38.2915 76.8425 37.2019C76.756 37.15 76.6695 37.0982 76.5831 37.0463C76.1507 36.7869 74.9573 35.9048 73.8331 34.9709C73.5564 34.746 73.3143 34.5385 73.0894 34.3309L74.1617 33.7602C75.407 34.8152 76.7906 35.8529 77.1538 36.0605C77.3268 36.1642 77.4997 36.268 77.6727 36.3718C78.0013 36.562 78.3299 36.7523 78.6412 36.9252C80.4572 37.9629 81.7543 38.672 81.7197 39.8827C79.4714 42.304 80.6993 43.7395 81.9446 44.1719L82.3597 42.8402C83.6741 42.6153 83.6568 41.6468 83.7087 40.9031C83.7433 40.5053 84.0546 40.2805 84.3659 40.2805C84.6253 40.2805 84.8848 40.4534 84.9021 40.8512C84.9366 41.2836 84.9021 41.7333 85.0231 42.4424C85.1096 42.9266 85.6284 43.5839 86.3721 43.5839C86.4932 43.5839 86.6143 43.5666 86.7353 43.532L87.0121 45.1058C89.5718 44.6216 89.295 42.0792 87.5655 41.2144C86.5797 40.7129 86.2684 40.3497 86.5624 39.9692C86.6489 39.8481 86.7526 39.8135 86.8737 39.8135C87.2369 39.8135 87.7731 40.2113 88.2919 40.5918C88.5167 40.7647 88.8108 40.8512 89.1221 40.8512C89.7966 40.8512 90.523 40.4188 90.8343 39.3984L91.7682 39.9173C91.9239 37.9975 90.7305 37.0463 89.5199 37.0463C88.9491 37.0463 88.3611 37.2538 87.9114 37.6689C87.7385 37.8246 87.5655 37.8937 87.3926 37.8937C86.8391 37.8937 86.4586 37.2019 87.2023 36.8041C87.9114 36.4237 88.5859 35.2476 87.9287 34.5039L89.001 33.5008C88.5167 33.2067 87.9979 33.0684 87.5136 33.0684C86.4413 33.0684 85.4555 33.7602 85.1442 35.3341C85.075 35.6973 84.9193 35.8356 84.7118 35.8356C84.1238 35.8356 83.0861 34.5731 82.3078 33.3278C82.1175 33.0338 81.9446 32.7225 81.7716 32.4285C81.5468 32.0307 81.3047 31.6502 81.0452 31.2697C80.7166 30.7854 80.3707 30.3185 79.9383 29.9034C79.2119 29.177 77.9494 27.9144 76.4966 27.067C76.1507 26.8767 75.7875 26.6865 75.4243 26.5308C74.9919 25.9601 74.5595 25.372 74.179 24.7667C73.1586 23.2101 72.3112 21.5498 71.8269 19.803C72.6225 21.446 73.7294 22.8815 74.9573 24.1614C75.5281 24.7667 76.1161 25.3201 76.7387 25.8736C78.4164 26.7384 79.8173 28.1393 80.6474 28.9521L80.7685 29.0732C81.0106 29.3153 81.2355 29.5575 81.4257 29.8169C81.7024 28.122 81.6333 26.0293 81.0971 24.0403C80.9933 23.6598 80.8723 23.262 80.7339 22.8988C80.2324 21.5671 79.5233 20.3218 78.5374 19.336C78.278 19.0766 78.0013 18.8345 77.7073 18.6096C76.4274 17.6238 74.8017 17.0185 72.7608 17.0185C72.4668 17.0185 72.1728 17.0358 71.8615 17.0531L69.0943 15.7905C70.0801 15.8078 70.8757 15.8424 71.5156 15.8424C74.2828 15.8424 74.058 15.4619 73.6948 13.5248C73.6948 13.5248 71.3599 14.1648 69.5785 14.1648C69.4056 14.1648 69.2326 14.1648 69.077 14.1475C68.2122 14.0783 67.8317 13.6978 67.6933 13.2308C67.5204 12.6082 67.4685 11.6397 67.9528 10.429C68.2641 9.63342 69.0251 8.94161 70.1147 8.94161C70.9448 8.94161 71.948 9.3394 73.0894 10.3771L74.058 11.3456C74.5595 10.7576 74.9573 10.0831 75.2686 9.42588C75.4762 8.52653 74.5077 7.95579 74.5077 7.95579C75.4935 8.07686 75.9777 7.05644 76.1334 6.58947C75.0784 6.01873 73.5737 5.15397 71.9826 4.72159L71.5156 3.13043C70.9103 2.81912 64.9953 1.4528 63.4387 1.4528C63.3523 1.4528 63.3004 1.4528 63.2312 1.4701C63.1101 1.48739 62.9891 1.53928 62.9026 1.60846C63.2312 1.97166 63.5252 2.38674 63.7846 2.83642L62.7296 3.18232C62.1416 2.23109 61.3287 1.43551 60.6023 1.19337C59.6511 2.02354 58.5096 4.49675 61.0174 7.09103V8.59571L60.585 8.18063C59.9797 7.60989 59.5473 7.05644 59.2187 6.52029C54.428 16.8974 62.2973 25.4066 62.2454 29.0732C62.2454 29.0732 63.8884 29.0213 65.0126 28.5716C65.0126 28.5716 65.5142 32.1517 64.4073 35.0919C63.1274 38.5164 61.1039 41.5603 59.4781 44.8118C58.9247 45.9187 58.4404 47.0429 58.0426 48.2017C58.0253 48.2363 58.0253 48.2708 58.0081 48.3054C57.6794 49.0145 57.126 49.6372 56.5034 49.9831C56.4861 50.0004 56.4515 50.0004 56.4342 50.0177C55.6213 50.4327 54.6701 50.3809 53.8745 49.8966C53.0962 49.4296 52.6811 48.634 52.6984 47.752C52.7503 45.7803 53.9091 44.3275 55.1543 42.7883C55.8116 41.9581 56.5034 41.1106 57.0395 40.1421C58.7172 37.1155 59.1322 33.691 58.2329 30.232C57.8178 28.6408 56.8839 27.2399 55.9845 25.8736C55.777 25.5623 55.5867 25.2683 55.3792 24.9569C55.2927 24.8359 55.2235 24.7148 55.1543 24.5938C55.5867 24.196 55.6732 23.7117 55.5348 23.0718C55.4138 22.4837 55.1025 21.7746 54.722 20.8926C54.2896 19.9241 53.788 18.8172 53.5459 17.6584C53.1481 15.7905 53.1481 14.2858 53.3902 12.7984C53.027 13.3865 52.7157 14.0091 52.4563 14.649C52.1623 15.3754 51.9547 16.1364 51.851 16.932C51.7472 17.7276 51.7472 18.5404 51.8683 19.3533C51.5915 18.5923 51.4186 17.7622 51.3667 16.932C51.3148 16.0845 51.3667 15.2371 51.5224 14.4069C51.6607 13.6459 51.8683 12.8849 52.145 12.1585C50.9516 13.9053 50.3463 16.0326 50.3117 18.5923C50.2771 21.8092 51.384 24.5073 52.439 25.1472C52.5774 25.2337 52.6984 25.2856 52.8195 25.3201C53.2692 25.4239 53.961 25.1126 53.961 25.1126C54.2723 25.6315 54.5836 26.0984 54.9122 26.6C55.7943 27.9317 56.6244 29.1943 56.9876 30.5606C57.8005 33.7256 57.4546 36.735 55.9153 39.5022C55.4311 40.367 54.7911 41.1798 54.1512 41.9581C52.8368 43.6012 51.4705 45.2961 51.4186 47.7001C51.384 49.0491 52.0585 50.2771 53.2173 50.9862C53.8399 51.3667 54.5663 51.5742 55.2927 51.5742C55.6213 51.5742 55.9672 51.5223 56.2958 51.4532C56.5898 51.3667 56.8839 51.2629 57.1606 51.1073C57.2471 51.0554 57.3335 51.0035 57.42 50.9516C57.3681 51.3667 57.3508 51.7991 57.3681 52.2142C57.3681 52.3179 57.3854 52.439 57.3854 52.5428C57.4373 53.2519 57.5411 53.9783 57.593 54.6874C57.6794 55.604 57.8351 55.7078 57.5584 56.6071C57.2298 57.6448 55.8289 58.2675 54.3761 58.5961C53.4594 58.8036 52.2142 58.9939 51.2456 59.1149C50.3809 59.236 49.741 59.9451 49.6891 60.8098C49.568 62.9372 49.395 66.7075 49.5507 67.7625C49.6545 68.9386 50.3463 69.9244 51.4013 70.4433ZM71.2216 4.98102C71.2216 5.96684 70.8584 7.00455 69.2672 6.93537C69.2672 6.93537 68.8521 6.20898 67.6588 5.01561C67.6415 5.01561 69.6304 5.4134 71.2216 4.98102ZM67.7106 19.8203C68.1084 20.5986 68.5235 21.3596 68.9732 22.0859C69.4402 22.8123 69.9417 23.4869 70.4952 24.1441C70.9794 24.7321 71.4983 25.3374 71.9999 25.9255C71.4291 25.9601 70.8584 26.0811 70.253 26.2887C69.9763 25.8217 69.6996 25.3547 69.4229 24.8878C68.9732 24.1268 68.5581 23.3139 68.1949 22.4837C67.849 21.6536 67.555 20.8234 67.2956 19.9759C67.0188 19.1458 66.7767 18.2983 66.5346 17.4508C66.9324 18.2464 67.3129 19.042 67.7106 19.8203ZM65.0472 25.4758C64.4764 24.317 63.9403 23.141 63.4906 21.9303C63.0236 20.7196 62.6432 19.4744 62.3318 18.2291C62.0378 16.9666 61.8303 15.704 61.7092 14.4242C61.9859 15.6694 62.3318 16.8974 62.7642 18.0908C63.1966 19.2841 63.7155 20.4429 64.2862 21.5671C65.3585 23.6252 66.6383 25.5796 67.9701 27.4993C67.3993 27.8279 66.8805 28.0528 66.4481 28.1911C65.9638 27.2918 65.4969 26.3924 65.0472 25.4758ZM97.7524 5.11938H98.9457C99.2571 6.1225 99.7586 6.96996 100.381 7.59259H102.803C102.197 7.24669 101.644 6.67595 101.211 5.91496C100.554 4.79077 100.174 3.35527 100.156 1.86789H96.732C96.7147 3.35527 96.3342 4.79077 95.6769 5.91496C95.2273 6.67595 94.6911 7.24669 94.0858 7.59259H96.3515C96.9395 6.96996 97.4411 6.1225 97.7524 5.11938ZM90.7651 7.59259H91.0245C90.4192 7.24669 89.8658 6.67595 89.4334 5.91496C88.7762 4.79077 88.3957 3.35527 88.3784 1.86789H85.6976C85.6803 2.02354 85.6803 2.1792 85.6803 2.35215C85.6457 5.18856 87.9979 7.59259 90.7651 7.59259ZM109.686 5.11938H110.879C111.191 6.1225 111.692 6.96996 112.315 7.59259H114.892C114.287 7.24669 113.75 6.67595 113.301 5.91496C112.644 4.79077 112.263 3.35527 112.246 1.86789H108.51C108.493 3.35527 108.112 4.79077 107.455 5.91496C107.005 6.67595 106.469 7.24669 105.864 7.59259H108.285C108.873 6.96996 109.375 6.1225 109.686 5.11938ZM66.3616 70.6162C66.6902 70.4087 67.0361 70.2011 67.4166 69.9936C67.3302 69.959 67.261 69.9244 67.1745 69.9071C67.0015 69.8379 66.8459 69.7688 66.6902 69.6996C65.5487 69.2499 64.6494 68.9905 63.9057 68.8694C63.9057 68.9386 63.923 68.9905 63.923 69.0597L64.1132 70.8584L62.4356 70.1665L62.3664 70.1492C62.2454 70.3741 62.107 70.5643 61.9513 70.7373C61.519 71.187 60.9482 71.4291 60.3083 71.4291C60.5158 71.7404 60.6542 72.0863 60.7407 72.4495C61.0001 73.591 60.5677 74.8362 59.5646 75.9431L58.8382 76.7387L58.0426 76.0296L57.2989 75.3724C57.1952 75.3897 57.0914 75.3897 56.9876 75.3897C55.9326 75.3897 54.9987 74.5595 54.7047 73.7466C54.6701 73.6429 54.6355 73.5391 54.6182 73.4353C54.5144 73.5218 54.3934 73.6083 54.2896 73.6775L54.1685 74.8535L54.0475 76.1161L52.8195 75.8048C51.9029 75.5799 50.6057 75.113 50.0177 73.8677C49.741 73.2797 49.6718 72.6225 49.7928 71.8788C47.1121 71.5675 45.0021 70.8584 45.0021 70.8584C46.5413 75.4762 50.917 78.0704 55.1543 78.0704C57.6276 78.0704 60.0489 77.1884 61.813 75.2859C62.2454 74.8362 62.6259 74.4039 63.0064 74.0234C63.5944 72.8127 64.7186 71.6712 66.3616 70.6162ZM121.81 5.11938H123.003C123.315 6.1225 123.816 6.96996 124.439 7.59259H126.808C126.203 7.24669 125.649 6.67595 125.217 5.91496C124.56 4.79077 124.179 3.35527 124.162 1.86789H120.617C120.599 3.35527 120.219 4.79077 119.562 5.91496C119.112 6.67595 118.576 7.22939 117.97 7.59259H120.392C120.997 6.96996 121.499 6.1225 121.81 5.11938ZM80.0767 19.4398C80.682 20.2354 81.1836 21.1347 81.5641 22.0687L83.5184 20.2008C83.3109 19.6646 83.2417 19.042 83.3109 18.4021C83.3109 18.3675 83.3282 18.3329 83.3282 18.281L84.3659 18.7826C84.3313 19.5609 84.6253 20.3737 85.3344 20.7542C85.5593 20.8753 85.7495 20.9272 86.0089 20.9272C86.0089 20.9272 86.0089 20.9272 86.0262 20.9272L85.9917 19.9759C86.3376 19.9759 86.8045 19.6127 86.8045 19.1112C86.8045 18.5404 86.4413 18.2291 85.9917 18.0908V16.9839C86.8564 17.1395 87.4963 17.6584 87.7558 18.3675L88.8972 18.3848C88.9491 17.52 88.534 16.7417 87.652 16.4477V15.3235C88.3957 15.4792 88.8799 15.8424 89.174 16.171C89.2604 16.2575 89.3296 16.3612 89.4161 16.465L90.2809 16.4823C90.3154 15.6521 89.9004 14.9085 89.1221 14.649V13.5248C89.6063 13.6286 90.0214 13.8189 90.3846 14.1302H91.1975C91.1802 13.594 90.8689 13.0752 90.4365 12.7466C90.0733 12.4871 89.6063 12.3315 89.1394 12.2623C88.9664 12.245 88.7762 12.2277 88.6032 12.2277C88.413 12.2277 88.24 12.245 88.0498 12.2796C87.5828 12.3488 87.1158 12.539 86.718 12.7984C86.0262 13.2654 85.369 13.8016 84.7291 14.3377C83.6914 15.2025 82.6883 16.1191 81.5987 16.932C81.2528 17.1914 80.1978 17.987 79.3676 18.6269C79.627 18.9036 79.8519 19.1631 80.0767 19.4398ZM80.682 11.2765C80.8377 10.4463 80.4226 9.84096 79.6097 9.65072C79.5751 9.65072 79.5405 9.63342 79.506 9.63342C79.6962 10.3425 79.6097 11.1208 79.1428 11.8818C78.7969 12.4179 78.2607 12.833 77.5862 13.0752C77.811 13.1098 78.0359 13.1098 78.2434 13.1098C79.6789 13.1098 80.4572 12.5217 80.682 11.2765Z",fill:"white"}),se.jsx("path",{d:"M66.5691 89.1393C65.2201 89.1393 64.217 89.6582 63.5598 90.6959C62.9544 89.6582 62.0205 89.1393 60.7753 89.1393C59.53 89.1393 58.5961 89.6236 57.9734 90.5748V89.3988H55.8461V99.2051H57.9734V93.7053C57.9734 92.8578 58.181 92.2179 58.5788 91.7682C58.9766 91.3358 59.5127 91.111 60.1526 91.111C60.7407 91.111 61.1903 91.3012 61.5189 91.6644C61.8476 92.0449 62.0032 92.5638 62.0032 93.2383V99.1878H64.1305V93.688C64.1305 92.8232 64.3208 92.1833 64.7013 91.7509C65.0818 91.3185 65.6006 91.111 66.2578 91.111C66.8459 91.111 67.3128 91.3012 67.6587 91.6644C68.0046 92.0449 68.1776 92.5638 68.1776 93.2383V99.1878H70.3049V93.0999C70.3049 91.8893 69.959 90.9207 69.2845 90.1943C68.5754 89.5025 67.676 89.1393 66.5691 89.1393Z",fill:"#CC0000"}),se.jsx("path",{d:"M180.06 89.1393C178.676 89.1393 177.656 89.6409 177.016 90.644V85.4555H174.889V99.1878H177.016V93.9301C177.016 92.9789 177.241 92.2698 177.708 91.8028C178.158 91.3358 178.763 91.111 179.507 91.111C180.181 91.111 180.717 91.3012 181.115 91.699C181.513 92.0968 181.703 92.6502 181.703 93.3939V99.2051H183.83V93.1864C183.83 91.9238 183.484 90.938 182.793 90.2289C182.084 89.5025 181.184 89.1393 180.06 89.1393Z",fill:"#CC0000"}),se.jsx("path",{d:"M36.1988 94.1203H40.7993C40.5918 95.0716 40.1075 95.8326 39.3292 96.4033C38.5683 96.9741 37.5651 97.2508 36.3545 97.2508C34.8325 97.2508 33.6045 96.7838 32.6706 95.8499C31.7367 94.9159 31.2697 93.7572 31.2697 92.3389C31.2697 90.9207 31.7367 89.7447 32.6706 88.8107C33.6045 87.8768 34.7806 87.3925 36.2161 87.3925C37.0982 87.3925 37.911 87.6001 38.6374 87.9979C39.3638 88.3956 39.9 88.9318 40.2632 89.5717L41.8198 87.8941C41.2663 87.1677 40.5745 86.5451 39.727 86.0781C38.672 85.4901 37.496 85.196 36.2161 85.196C34.1753 85.196 32.4631 85.8878 31.0794 87.2715C29.6958 88.6551 29.004 90.3327 29.004 92.3216C29.004 94.3279 29.6958 96.0055 31.0794 97.3891C32.4631 98.7555 34.2099 99.4473 36.3372 99.4473C38.3434 99.4473 39.9692 98.8419 41.1971 97.6486C42.4424 96.4552 43.065 94.9159 43.065 93.0307V92.1141H36.1988V94.1203Z",fill:"#CC0000"}),se.jsx("path",{d:"M191.233 91.4396V89.3988H188.794V86.6488H186.667V89.3988H184.868V91.4396H186.667V96.1439C186.667 97.4237 187.013 98.3058 187.722 98.79C188.431 99.2743 189.59 99.4127 191.215 99.2051V97.3027C190.679 97.3373 190.23 97.3372 189.866 97.32C189.503 97.3027 189.226 97.1989 189.054 97.0259C188.863 96.853 188.777 96.559 188.777 96.1439V91.4396C188.777 91.4396 191.233 91.4396 191.233 91.4396Z",fill:"#CC0000"}),se.jsx("path",{d:"M49.4642 89.1393C47.9422 89.1393 46.697 89.6409 45.7285 90.6267C44.7772 91.6126 44.293 92.8405 44.293 94.3106C44.293 95.798 44.7772 97.0432 45.7631 98.0118C46.7489 98.9803 48.0287 99.4819 49.6372 99.4819C51.3321 99.4819 52.6638 98.8938 53.6151 97.7523L52.1796 96.3168C51.6088 97.1297 50.7787 97.5275 49.6545 97.5275C48.8416 97.5275 48.1498 97.32 47.5963 96.9222C47.0256 96.5244 46.6797 95.9536 46.524 95.21H54.3415C54.3933 94.8468 54.4279 94.5527 54.4279 94.3279C54.4279 92.8924 53.961 91.6644 53.0443 90.6613C52.0931 89.6409 50.8997 89.1393 49.4642 89.1393ZM46.4895 93.4804C46.6278 92.7367 46.9737 92.1487 47.4926 91.7163C48.0114 91.2839 48.6686 91.0764 49.4469 91.0764C50.1387 91.0764 50.7441 91.2839 51.2629 91.6817C51.7818 92.0795 52.1104 92.6849 52.2487 93.4804H46.4895Z",fill:"#CC0000"}),se.jsx("path",{d:"M76.9117 89.1393C75.3897 89.1393 74.1445 89.6409 73.1759 90.6267C72.2074 91.6126 71.7231 92.8405 71.7231 94.3106C71.7231 95.798 72.2074 97.0432 73.1932 98.0118C74.1791 98.9803 75.4589 99.4819 77.0674 99.4819C78.7623 99.4819 80.094 98.8938 81.0452 97.7523L79.6097 96.3168C79.039 97.1297 78.2088 97.5275 77.0846 97.5275C76.2718 97.5275 75.58 97.32 75.0265 96.9222C74.4558 96.5244 74.1099 95.9536 73.9542 95.21H81.7716C81.8235 94.8468 81.8581 94.5527 81.8581 94.3279C81.8581 92.8924 81.3911 91.6644 80.4745 90.6613C79.5233 89.6409 78.3472 89.1393 76.9117 89.1393ZM73.9196 93.4804C74.058 92.7367 74.4039 92.1487 74.9227 91.7163C75.4416 91.2839 76.0988 91.0764 76.8771 91.0764C77.5689 91.0764 78.1742 91.2839 78.6931 91.6817C79.212 92.0795 79.5406 92.6849 79.6789 93.4804H73.9196Z",fill:"#CC0000"}),se.jsx("path",{d:"M87.9806 89.1393C86.4586 89.1393 85.2133 89.6409 84.2448 90.6267C83.2763 91.6126 82.792 92.8405 82.792 94.3106C82.792 95.798 83.2763 97.0432 84.2621 98.0118C85.2479 98.9803 86.5278 99.4819 88.1362 99.4819C89.8311 99.4819 91.1629 98.8938 92.1141 97.7523L90.6786 96.3168C90.1079 97.1297 89.2777 97.5275 88.1535 97.5275C87.3406 97.5275 86.6488 97.32 86.0954 96.9222C85.5246 96.5244 85.1787 95.9536 85.0231 95.21H92.8405C92.8924 94.8468 92.927 94.5527 92.927 94.3279C92.927 92.8924 92.46 91.6644 91.5434 90.6613C90.6094 89.6409 89.4333 89.1393 87.9806 89.1393ZM85.0058 93.4804C85.1441 92.7367 85.49 92.1487 86.0089 91.7163C86.5278 91.2839 87.185 91.0764 87.9633 91.0764C88.6551 91.0764 89.2604 91.2839 89.7793 91.6817C90.2981 92.0795 90.6267 92.6849 90.7651 93.4804H85.0058Z",fill:"#CC0000"}),se.jsx("path",{d:"M116.777 89.1393C115.255 89.1393 114.01 89.6409 113.041 90.6267C112.073 91.6126 111.589 92.8405 111.589 94.3106C111.589 95.798 112.073 97.0432 113.059 98.0118C114.044 98.9803 115.324 99.4819 116.933 99.4819C118.628 99.4819 119.959 98.8938 120.911 97.7523L119.475 96.3168C118.904 97.1297 118.074 97.5275 116.95 97.5275C116.137 97.5275 115.445 97.32 114.892 96.9222C114.321 96.5244 113.975 95.9536 113.82 95.21H121.637C121.689 94.8468 121.723 94.5527 121.723 94.3279C121.723 92.8924 121.257 91.6644 120.34 90.6613C119.406 89.6409 118.213 89.1393 116.777 89.1393ZM113.802 93.4804C113.941 92.7367 114.287 92.1487 114.805 91.7163C115.324 91.2839 115.981 91.0764 116.76 91.0764C117.452 91.0764 118.057 91.2839 118.576 91.6817C119.095 92.0795 119.423 92.6849 119.562 93.4804H113.802Z",fill:"#CC0000"}),se.jsx("path",{d:"M158.199 89.1393C156.677 89.1393 155.432 89.6409 154.463 90.6267C153.495 91.6126 153.01 92.8405 153.01 94.3106C153.01 95.798 153.495 97.0432 154.481 98.0118C155.466 98.9803 156.746 99.4819 158.355 99.4819C160.05 99.4819 161.381 98.8938 162.333 97.7523L160.897 96.3168C160.326 97.1297 159.496 97.5275 158.372 97.5275C157.559 97.5275 156.867 97.32 156.314 96.9222C155.743 96.5244 155.397 95.9536 155.242 95.21H163.059C163.111 94.8468 163.145 94.5527 163.145 94.3279C163.145 92.8924 162.678 91.6644 161.762 90.6613C160.828 89.6409 159.652 89.1393 158.199 89.1393ZM155.224 93.4804C155.363 92.7367 155.708 92.1487 156.227 91.7163C156.746 91.2839 157.403 91.0764 158.182 91.0764C158.873 91.0764 159.479 91.2839 159.998 91.6817C160.517 92.0795 160.845 92.6849 160.984 93.4804H155.224Z",fill:"#CC0000"}),se.jsx("path",{d:"M108.337 86.6488H106.21V89.3988H104.411V91.4396H106.21V96.1439C106.21 97.4237 106.556 98.3058 107.265 98.79C107.974 99.2743 109.133 99.4127 110.758 99.2051V97.3027C110.222 97.3373 109.772 97.3372 109.409 97.32C109.046 97.3027 108.769 97.1989 108.596 97.0259C108.406 96.853 108.32 96.559 108.32 96.1439V91.4396H110.758V89.3988H108.32L108.337 86.6488C108.337 86.6488 108.32 86.6488 108.337 86.6488Z",fill:"#CC0000"}),se.jsx("path",{d:"M135.819 94.5181C135.819 95.3483 135.577 96.0228 135.075 96.5244C134.591 97.0259 133.847 97.2681 132.862 97.2681C131.876 97.2681 131.149 97.0259 130.648 96.5244C130.164 96.0228 129.904 95.3656 129.904 94.5181V85.4728H127.638V94.6565C127.638 96.1266 128.123 97.2854 129.091 98.1674C130.06 99.0322 131.305 99.4646 132.844 99.4646C134.384 99.4646 135.629 99.0322 136.597 98.1674C137.566 97.3027 138.05 96.1266 138.05 94.6565V85.4728H135.785V94.5181H135.819Z",fill:"#CC0000"}),se.jsx("path",{d:"M143.36 86.6488H141.232V89.3988H139.434V91.4396H141.232V96.1439C141.232 97.4237 141.578 98.3058 142.287 98.79C142.996 99.2743 144.155 99.4127 145.781 99.2051V97.3027C145.245 97.3373 144.795 97.3372 144.432 97.32C144.069 97.3027 143.792 97.1989 143.619 97.0259C143.429 96.853 143.342 96.559 143.342 96.1439V91.4396H145.781V89.3988H143.342V86.6488H143.36Z",fill:"#CC0000"}),se.jsx("path",{d:"M99.6029 89.1393C98.2193 89.1393 97.1989 89.6409 96.559 90.644V89.3815H94.4316V99.1878H96.559V93.9301C96.559 92.9789 96.7838 92.2698 97.2508 91.8028C97.7004 91.3358 98.3058 91.111 99.0495 91.111C99.724 91.111 100.26 91.3012 100.658 91.699C101.056 92.0968 101.246 92.6503 101.246 93.394V99.2051H103.373V93.1864C103.373 91.9239 103.027 90.938 102.336 90.2289C101.626 89.5025 100.727 89.1393 99.6029 89.1393Z",fill:"#CC0000"}),se.jsx("path",{d:"M149.655 91.0418V89.3987H147.528V99.2051H149.655V94.2587C149.655 93.2556 149.949 92.5292 150.555 92.0968C151.16 91.6644 151.869 91.4742 152.682 91.5261V89.2258C151.195 89.2258 150.191 89.8311 149.655 91.0418Z",fill:"#CC0000"}),se.jsx("path",{d:"M172.122 95.798C171.672 96.7319 170.807 97.3546 169.752 97.5102C169.735 97.5102 169.718 97.5102 169.7 97.5102C169.562 97.5275 169.406 97.5448 169.251 97.5448C167.521 97.5448 166.189 96.2131 166.189 94.3106C166.189 92.4081 167.521 91.0764 169.251 91.0764C169.406 91.0764 169.545 91.0937 169.683 91.111C169.7 91.111 169.718 91.111 169.735 91.111C170.79 91.2494 171.637 91.872 172.104 92.7713L173.522 91.3531C172.589 90.0041 171.032 89.1566 169.251 89.1566C166.38 89.1566 164.097 91.405 164.097 94.3279C164.097 97.2335 166.38 99.4819 169.251 99.4819C171.049 99.4819 172.606 98.5998 173.54 97.2508L172.122 95.798Z",fill:"#CC0000"}),se.jsx("path",{d:"M110.274 13.0405C111.974 13.0405 113.353 12.3514 113.353 11.5013C113.353 10.6512 111.974 9.96201 110.274 9.96201C108.574 9.96201 107.196 10.6512 107.196 11.5013C107.196 12.3514 108.574 13.0405 110.274 13.0405Z",fill:"#CC0000"}),se.jsx("path",{d:"M101.471 11.5013L98.0118 9.75447L94.5355 11.5013L98.0118 13.2308L101.471 11.5013Z",fill:"#CC0000"}),se.jsx("path",{d:"M126.013 11.5013L122.536 9.75447L119.077 11.5013L122.536 13.2308L126.013 11.5013Z",fill:"#CC0000"}),se.jsx("path",{d:"M175.183 69.8206C175.148 69.8379 173.125 70.4951 170.565 70.7892C171.395 70.0801 171.949 69.0769 172.122 67.9355C172.243 67.0707 172.208 64.6494 171.983 60.7753C171.914 59.3916 170.859 58.2502 169.493 58.0772C168.213 57.9043 167.158 57.7313 166.449 57.5756C164.979 57.247 164.183 56.7109 164.079 56.3304C163.941 55.9153 163.958 55.8634 164.01 55.4829C164.028 55.31 164.062 55.1024 164.097 54.8257C164.131 54.5144 164.149 54.2204 164.2 53.8918C164.252 53.494 164.287 53.0789 164.322 52.6638C164.322 52.6465 164.322 52.6119 164.322 52.5946C164.65 52.6638 164.996 52.6984 165.325 52.6984C166.241 52.6984 167.158 52.4563 167.954 51.9547C169.441 51.0381 170.306 49.4642 170.271 47.7174C170.202 44.9502 168.663 43.0131 167.296 41.3182C166.674 40.5399 166.068 39.7962 165.636 39.0179C164.235 36.4928 163.906 33.7602 164.667 30.8719C164.979 29.6785 165.757 28.4852 166.587 27.2399C166.76 26.9805 166.933 26.7038 167.106 26.4443C167.227 26.4616 167.348 26.4789 167.469 26.4789C167.988 26.4789 168.42 26.306 168.732 26.1157C170.721 24.8878 171.413 20.8753 171.378 18.6269C171.326 13.9226 169.475 10.5328 165.757 8.26709L164.477 7.48881L164.961 8.90702C166.086 12.1758 166.691 14.1993 165.982 17.4854C165.757 18.5404 165.307 19.5436 164.875 20.5121C164.2 22.0341 163.543 23.5041 164.114 24.6975C163.976 24.9051 163.837 25.1299 163.699 25.3374C162.748 26.7729 161.762 28.2603 161.312 30.0244C160.344 33.7602 160.793 37.4614 162.609 40.7301C163.18 41.7679 163.906 42.6672 164.598 43.532C165.757 44.9848 166.777 46.23 166.812 47.8385C166.829 48.513 166.397 48.8762 166.155 49.0318C165.671 49.3258 165.1 49.3431 164.598 49.0837C164.2 48.8762 163.82 48.4611 163.578 47.9768C163.197 46.8526 162.713 45.6766 162.056 44.3794C161.468 43.2034 160.828 42.0446 160.205 40.9204C159.064 38.845 157.974 36.8906 157.179 34.7633C156.573 33.1203 156.504 31.2351 156.539 30.0244C157.403 30.1801 158.164 30.2147 158.303 30.2147L159.427 30.2493L159.41 29.1251C159.392 28.2776 160.067 26.8075 160.828 25.0953C162.921 20.4602 166.086 13.4729 162.021 5.46528C161.987 5.41339 161.969 5.34421 161.935 5.29232C162.108 4.73888 162.16 4.23732 162.142 3.82223C162.125 2.28296 161.364 1.0723 160.672 0.449675L160.188 0.0172952L159.583 0.224837C159.185 0.363199 158.804 0.605331 158.424 0.899349C158.164 0.657217 157.836 0.484265 157.455 0.432379C157.352 0.415084 157.248 0.415084 157.109 0.415084C155.432 0.415084 149.327 1.7987 148.531 2.21378L148.116 2.42132L147.978 2.871L147.684 3.89142C146.335 4.34109 145.107 5.0156 144.19 5.51716C144.069 5.58634 143.948 5.65552 143.827 5.70741L143.135 6.0879L143.291 6.86619C143.308 6.98725 143.913 10.0312 145.677 12.0893L145.764 12.1758C145.331 12.2104 144.951 12.245 144.605 12.245C143.55 12.245 142.72 11.9337 142.322 11.311C141.699 10.3425 142.149 9.30481 142.876 8.76865C142.478 8.5957 142.097 8.49193 141.63 8.49193C141.354 8.49193 141.042 8.52652 140.696 8.613C139.313 8.92431 138.534 10.0831 138.794 11.484C139.088 13.1616 140.264 14.1993 142.305 14.1993C142.72 14.1993 143.152 14.1647 143.636 14.0783C144.328 13.9572 145.037 13.7497 145.746 13.5248C145.746 13.5594 145.729 13.5767 145.729 13.6113C145.556 14.5798 145.401 15.41 145.937 16.0845C144.449 16.3612 143.1 16.9839 141.959 17.9178C141.025 17.2087 139.762 16.2575 139.572 16.1018C138.828 15.5484 138.137 14.943 137.393 14.3204C137.099 14.061 136.788 13.8016 136.476 13.5421C135.836 13.006 135.145 12.4525 134.401 11.9337C133.847 11.5532 133.208 11.311 132.516 11.2246V8.16332C134.712 7.19479 136.251 4.96372 136.251 2.42132C136.251 1.85058 136.182 1.31443 136.027 0.795578H131.374C131.409 1.10689 131.426 1.4182 131.426 1.74681C131.426 4.51404 130.042 6.95266 128.33 6.95266C126.618 6.95266 125.234 4.51404 125.234 1.74681C125.234 1.4182 125.252 1.10689 125.286 0.795578H119.458C119.492 1.10689 119.51 1.4182 119.51 1.74681C119.51 4.51404 118.126 6.95266 116.414 6.95266C114.702 6.95266 113.318 4.51404 113.318 1.74681C113.318 1.4182 113.335 1.10689 113.37 0.795578H107.351C107.386 1.10689 107.403 1.4182 107.403 1.74681C107.403 4.51404 106.019 6.95266 104.307 6.95266C102.595 6.95266 101.211 4.51404 101.211 1.74681C101.211 1.4182 101.229 1.10689 101.263 0.795578H95.5732C95.6078 1.10689 95.6251 1.4182 95.6251 1.74681C95.6251 4.51404 94.2415 6.95266 92.5292 6.95266C90.817 6.95266 89.4334 4.51404 89.4334 1.74681C89.4334 1.4182 89.4507 1.10689 89.4853 0.795578H84.7637C84.6253 1.29714 84.5562 1.81599 84.5562 2.35214C84.5562 4.80806 85.9917 7.00455 88.0498 8.04226V11.2246C87.358 11.311 86.6835 11.5532 86.1127 11.951C85.369 12.4525 84.6772 13.0233 84.0373 13.5594C83.726 13.8188 83.432 14.0783 83.1207 14.3377C82.377 14.9603 81.6852 15.5657 80.9415 16.1191C80.7512 16.2575 79.4887 17.2087 78.5547 17.9351C77.4132 17.0012 76.0815 16.3785 74.5768 16.1018C75.113 15.41 74.9573 14.5798 74.7844 13.6286C74.7844 13.6113 74.7671 13.5767 74.7671 13.5421C75.4762 13.7843 76.1853 13.9745 76.8771 14.0956C77.3614 14.182 77.7937 14.2166 78.2088 14.2166C80.2497 14.2166 81.4257 13.1789 81.7197 11.5013C81.9792 10.1004 81.2009 8.94161 79.8173 8.63029C79.4714 8.56111 79.1601 8.50923 78.8833 8.50923C78.4164 8.50923 78.0359 8.613 77.6381 8.78595C78.3645 9.3221 78.8142 10.3598 78.1915 11.3283C77.7937 11.9683 76.9463 12.2623 75.9086 12.2623C75.5454 12.2623 75.1649 12.2277 74.7844 12.1585L74.8709 12.072C76.635 10.0139 77.2403 6.98725 77.2576 6.84889L77.4132 6.07061L76.7214 5.69011C76.6004 5.62093 76.4793 5.56905 76.3582 5.49987C75.4243 4.99831 74.2136 4.32379 72.8646 3.87412L72.5706 2.8537L72.4322 2.40403L72.0171 2.19649C71.2216 1.7814 65.1164 0.397789 63.4387 0.397789C63.3177 0.397789 63.1966 0.397789 63.0928 0.415084C62.7123 0.46697 62.3837 0.639922 62.1243 0.882054C61.7438 0.570741 61.346 0.345904 60.9655 0.207542L60.3602 0L59.8586 0.397789C59.1668 1.02042 58.4058 2.23108 58.3885 3.77035C58.3885 4.18543 58.4404 4.68699 58.5961 5.24044C58.5615 5.30962 58.5269 5.36151 58.5096 5.41339C54.4452 13.4211 57.6103 20.4083 59.703 25.0434C60.464 26.7383 61.1385 28.2084 61.1212 29.0732L61.1039 30.1974L62.2281 30.1628C62.3491 30.1628 63.1101 30.1282 63.9922 29.9725C64.0268 31.1832 63.9749 33.0857 63.3523 34.7114C62.5567 36.8387 61.4671 38.7931 60.3256 40.8685C59.703 41.9927 59.0631 43.1515 58.475 44.3275C57.8351 45.6247 57.3335 46.8008 56.953 47.9249C56.7109 48.4092 56.3477 48.8243 55.9326 49.0318C55.4311 49.2913 54.8603 49.274 54.3761 48.9799C54.1166 48.8243 53.7016 48.4611 53.7188 47.7866C53.7534 46.1954 54.7566 44.9329 55.9326 43.4801C56.6244 42.6153 57.3335 41.7333 57.9216 40.6783C59.7376 37.4095 60.1872 33.7083 59.2187 29.9725C58.769 28.2084 57.7832 26.7211 56.832 25.2856C56.6936 25.078 56.5553 24.8532 56.4169 24.6456C56.9876 23.4523 56.3477 21.9822 55.6559 20.4602C55.2235 19.4917 54.7739 18.4885 54.549 17.4335C53.8399 14.1302 54.4452 12.1239 55.5694 8.85513L56.0537 7.43693L54.7739 8.21521C51.0554 10.4809 49.2048 13.8707 49.1529 18.575C49.1183 20.8234 49.8274 24.8532 51.7991 26.0638C52.1104 26.2541 52.5255 26.427 53.0616 26.427C53.1827 26.427 53.2865 26.4097 53.4248 26.3924C53.5978 26.6519 53.7707 26.9286 53.9437 27.188C54.7739 28.4333 55.5521 29.6266 55.8634 30.82C56.6071 33.7083 56.2785 36.4582 54.8949 38.966C54.4625 39.7443 53.8745 40.488 53.2346 41.2663C51.8683 42.9612 50.329 44.881 50.2598 47.6655C50.2252 49.395 51.09 50.9862 52.5774 51.9028C53.3729 52.4044 54.2896 52.6465 55.2062 52.6465C55.5521 52.6465 55.8807 52.6119 56.2094 52.5427C56.2094 52.56 56.2094 52.5946 56.2094 52.6119C56.2439 53.027 56.2785 53.4421 56.3304 53.8399C56.365 54.1685 56.3996 54.4625 56.4342 54.7738C56.4515 55.0506 56.4861 55.2581 56.5207 55.4311C56.5726 55.7943 56.5898 55.8634 56.4515 56.2785C56.3304 56.659 55.5521 57.1952 54.082 57.5238C53.3729 57.6794 52.3179 57.8524 51.0381 58.0253C49.6718 58.2156 48.6168 59.3571 48.5476 60.7234C48.34 64.5975 48.2882 67.0188 48.4092 67.8836C48.5822 69.0251 49.1356 70.0282 49.9658 70.7373C47.4061 70.4433 45.3653 69.7687 45.348 69.7687L43.2899 69.0769L43.9817 71.1351C44.7945 73.5564 46.3338 75.5972 48.4611 77.0327C50.4328 78.3645 52.8022 79.0909 55.1543 79.0909C58.0253 79.0909 60.6369 78.0186 62.5221 76.0642C62.5394 76.6003 62.6432 77.1192 62.8507 77.6554L63.8019 80.0248L64.8569 77.7072C64.9261 77.5689 66.5346 74.179 70.3741 73.885C72.0171 73.7639 73.885 73.5218 75.3378 72.3111C75.3378 72.3111 75.3378 72.3111 75.3551 72.3111C75.3551 72.7089 75.3897 73.0894 75.4935 73.4699C76.0123 75.6145 77.8629 76.7041 77.9321 76.7387L79.6443 77.7245L79.5406 75.7529C79.506 74.9054 79.4541 73.9369 79.6962 73.1413C80.1286 71.7058 81.6333 71.1697 82.4807 70.9621C82.6883 70.9102 82.8958 70.8583 83.0861 70.8238C84.487 70.5124 85.6285 70.253 86.8045 69.5612C86.303 70.547 86.0954 71.5502 86.1992 72.5706C86.4413 75.113 88.5167 76.7041 88.6032 76.7733L90.9727 78.5547L90.3154 75.6664C90.0733 74.5595 89.8831 72.0344 90.9035 71.3772C92.166 70.547 93.1173 70.4433 94.2242 70.3222C95.1408 70.2184 96.1266 70.0974 97.2854 69.5958C96.3861 71.5847 96.7666 73.2105 96.8011 73.297L97.3546 75.4935L98.7209 73.6775C98.7382 73.6429 101.298 70.3395 104.93 70.3395C107.559 70.3395 109.686 71.6366 109.703 71.6539L110.274 71.9998L110.845 71.6539C110.862 71.6366 112.989 70.3395 115.618 70.3395C119.25 70.3395 121.81 73.6602 121.827 73.6775L123.194 75.4935L123.747 73.297C123.764 73.2105 124.162 71.5847 123.263 69.5958C124.422 70.0974 125.407 70.2184 126.324 70.3222C127.431 70.4433 128.399 70.5643 129.645 71.3772C130.665 72.0517 130.492 74.5595 130.233 75.6664L129.576 78.5547L131.945 76.7733C132.031 76.7041 134.107 75.113 134.349 72.5706C134.453 71.5502 134.245 70.547 133.744 69.5612C134.92 70.2357 136.061 70.4951 137.462 70.8238C137.652 70.8756 137.86 70.9102 138.067 70.9621C138.915 71.1524 140.42 71.7058 140.852 73.1413C141.094 73.9369 141.042 74.9054 141.008 75.7529L140.904 77.7245L142.616 76.7387C142.703 76.6868 144.553 75.6145 145.055 73.4699C145.141 73.0894 145.193 72.6916 145.193 72.3111C145.193 72.3111 145.193 72.3111 145.21 72.3111C146.663 73.5218 148.531 73.7466 150.174 73.885C154.014 74.179 155.622 77.5689 155.691 77.7072L156.746 80.0248L157.697 77.6554C157.905 77.1192 158.026 76.5831 158.026 76.0642C159.911 78.0186 162.523 79.0909 165.394 79.0909C167.746 79.0909 170.115 78.3645 172.087 77.0327C174.214 75.5972 175.771 73.5564 176.567 71.1351L177.258 69.0769L175.183 69.8206ZM142.287 13.1097C140.835 13.1097 140.074 12.5217 139.849 11.2765C139.693 10.4463 140.108 9.84096 140.921 9.65071C140.956 9.65071 140.99 9.63341 141.025 9.63341C140.835 10.3425 140.921 11.1208 141.388 11.8818C141.734 12.4179 142.27 12.833 142.945 13.0752C142.72 13.0924 142.495 13.1097 142.287 13.1097ZM79.1255 11.8818C79.6097 11.1381 79.6789 10.3425 79.4887 9.63341C79.5233 9.63341 79.5578 9.65071 79.5924 9.65071C80.4053 9.82366 80.8204 10.4463 80.6647 11.2765C80.4399 12.5217 79.6616 13.1097 78.2261 13.1097C78.0186 13.1097 77.7937 13.0924 77.5689 13.0752C78.2434 12.833 78.7796 12.4352 79.1255 11.8818ZM142.011 19.3014C142.27 19.042 142.547 18.7999 142.841 18.575C144.121 17.5892 145.746 16.9839 147.787 16.9839C148.081 16.9839 148.375 17.0012 148.687 17.0185L151.454 15.7559C150.468 15.7732 149.673 15.8078 149.033 15.8078C146.265 15.8078 146.49 15.4273 146.853 13.4902C146.853 13.4902 149.188 14.1302 150.97 14.1302C151.143 14.1302 151.316 14.1302 151.471 14.1129C152.336 14.0437 152.716 13.6632 152.855 13.1962C153.028 12.5736 153.08 11.6051 152.595 10.3944C152.284 9.59882 151.523 8.90702 150.434 8.90702C149.603 8.90702 148.6 9.30481 147.459 10.3425L146.49 11.311C145.989 10.723 145.591 10.0485 145.28 9.39128C145.072 8.49193 146.041 7.92119 146.041 7.92119C145.055 8.04226 144.57 7.02184 144.415 6.55487C145.47 5.98413 146.974 5.11937 148.566 4.68699L149.033 3.09584C149.638 2.78452 155.553 1.4182 157.109 1.4182C157.196 1.4182 157.248 1.4182 157.317 1.4355C157.438 1.45279 157.559 1.50468 157.646 1.57386C157.317 1.93706 157.023 2.35214 156.764 2.80182L157.819 3.14772C158.407 2.19649 159.219 1.40091 159.946 1.15878C160.897 1.98895 162.039 4.46216 159.531 7.05643V8.56111L159.963 8.14603C160.568 7.57529 161.001 7.02184 161.329 6.48569C166.12 16.8628 158.251 25.372 158.303 29.0386C158.303 29.0386 156.66 28.9867 155.536 28.537C155.536 28.537 155.034 32.1171 156.141 35.0573C157.421 38.4818 159.444 41.5257 161.07 44.7772C161.623 45.8841 162.108 47.0083 162.506 48.1671C162.523 48.2017 162.523 48.2363 162.54 48.2708C162.869 48.9799 163.422 49.6026 164.045 49.9485C164.062 49.9658 164.097 49.9658 164.114 49.9831C164.927 50.3981 165.878 50.3463 166.674 49.862C167.452 49.395 167.867 48.5995 167.85 47.7174C167.798 45.7457 166.639 44.293 165.394 42.7537C164.737 41.9235 164.045 41.076 163.509 40.1075C161.831 37.0809 161.416 33.6564 162.315 30.1974C162.73 28.6062 163.664 27.2053 164.564 25.839C164.771 25.5277 164.961 25.2337 165.169 24.9224C165.255 24.8013 165.325 24.6802 165.394 24.5592C164.961 24.1614 164.875 23.6771 165.013 23.0372C165.134 22.4491 165.446 21.74 165.826 20.858C166.259 19.8895 166.76 18.7826 167.002 17.6238C167.4 15.7559 167.4 14.2512 167.158 12.7638C167.521 13.3519 167.832 13.9745 168.092 14.6144C168.386 15.3408 168.593 16.1018 168.697 16.8974C168.801 17.693 168.801 18.5058 168.68 19.3187C168.957 18.5577 169.13 17.7276 169.181 16.8974C169.233 16.0499 169.181 15.2025 169.026 14.3723C168.887 13.6113 168.68 12.8503 168.403 12.1239C169.597 13.8707 170.202 15.998 170.236 18.5577C170.271 21.7746 169.164 24.4727 168.109 25.1126C167.971 25.1991 167.85 25.251 167.729 25.2856C167.279 25.3893 166.587 25.078 166.587 25.078C166.276 25.5969 165.965 26.0638 165.636 26.5654C164.754 27.8971 163.924 29.1597 163.561 30.526C162.748 33.691 163.094 36.7004 164.633 39.4676C165.117 40.3324 165.757 41.1452 166.397 41.9235C167.711 43.5666 169.078 45.2615 169.13 47.6655C169.164 49.0145 168.49 50.2425 167.331 50.9516C166.708 51.3321 165.982 51.5396 165.255 51.5396C164.927 51.5396 164.581 51.4877 164.252 51.4186C163.958 51.3321 163.664 51.2283 163.388 51.0727C163.301 51.0208 163.215 50.9689 163.128 50.917C163.18 51.3321 163.197 51.7645 163.18 52.1796C163.18 52.2833 163.163 52.4044 163.163 52.5082C163.111 53.2173 163.007 53.9437 162.955 54.6528C162.869 55.5694 162.713 55.6732 162.99 56.5725C163.318 57.6102 164.719 58.2329 166.172 58.5615C167.089 58.769 168.334 58.9593 169.303 59.0803C170.167 59.2014 170.807 59.9105 170.859 60.7753C170.98 62.9026 171.153 66.6729 170.997 67.7279C170.825 68.8867 170.15 69.8725 169.078 70.3914C169.147 70.547 169.216 70.7027 169.285 70.8411C169.441 71.2388 169.562 71.5847 169.614 71.9134C169.96 73.7985 168.611 74.3866 167.4 74.6806L167.244 72.9857C167.227 72.9165 166.899 72.7608 166.829 72.7262C166.726 72.657 166.604 72.5879 166.518 72.5014C166.31 72.3111 166.241 72.0863 166.207 71.8442C166.189 71.7058 166.189 71.5674 166.189 71.4118C166.172 71.1524 166.138 70.8929 165.999 70.7027C165.93 70.6162 165.861 70.547 165.74 70.4951C165.636 70.4433 165.532 70.426 165.428 70.426C165.307 70.426 165.204 70.4606 165.1 70.5124C164.875 70.6335 164.685 70.8583 164.65 71.1351C164.633 71.2388 164.65 71.3772 164.667 71.5156C164.754 72.0171 164.996 72.7089 164.771 73.3143C164.633 73.7121 164.097 74.2482 163.509 74.2482C163.318 74.2482 163.145 74.1963 162.955 74.0753L161.745 75.1476C160.136 73.3834 160.638 71.6885 162.384 70.9621C162.523 70.9102 162.644 70.8411 162.748 70.7719C163.076 70.547 163.267 70.253 163.076 69.9417C162.938 69.6996 162.782 69.6131 162.575 69.6131C162.263 69.6131 161.866 69.8033 161.26 70.0455C161.226 70.0628 161.191 70.0801 161.139 70.0974C160.811 70.2184 160.499 70.3049 160.205 70.3049C159.583 70.3049 159.081 69.9417 158.822 68.9386C158.804 68.8521 158.787 68.7483 158.77 68.6619L158.355 68.8348L157.628 69.1288C157.646 69.0078 157.663 68.8694 157.68 68.7483C157.749 68.3332 157.888 67.9874 158.043 67.6933C158.58 66.7075 159.531 66.3097 160.499 66.3097C161.745 66.3097 163.024 66.9323 163.561 67.7279L165.843 68.0392C166.31 67.4512 166.328 65.7217 166.259 64.3727C166.207 63.3868 165.48 62.5913 164.512 62.4356C162.851 62.1935 160.361 61.8303 159.479 61.7611C157.801 61.64 156.054 61.346 154.792 60.118C153.062 58.4058 152.682 56.6244 152.682 54.1512C152.682 53.3383 152.716 52.5255 152.786 51.6953C152.838 50.9862 152.924 50.2771 152.993 49.5853C153.045 49.1183 153.114 48.6513 153.183 48.1844C153.253 47.752 153.253 47.285 153.218 46.8353C153.201 46.6624 153.183 46.5067 153.149 46.3338C153.062 45.8322 152.924 45.348 152.734 44.8464C152.526 44.3275 152.232 43.8433 151.886 43.3763C151.333 42.6499 150.606 42.01 149.69 41.4911C149.361 41.3009 148.963 41.076 148.548 40.8166C148.133 40.5572 147.684 40.2805 147.217 39.9519C146.075 39.1909 144.813 38.2396 143.636 37.15C143.723 37.0982 143.809 37.0463 143.896 36.9944C144.328 36.735 145.522 35.8529 146.646 34.919C146.923 34.6941 147.165 34.4866 147.39 34.279L146.317 33.7083C145.072 34.7633 143.688 35.801 143.325 36.0086C143.152 36.1123 142.979 36.2161 142.806 36.3199C142.478 36.5101 142.149 36.7004 141.838 36.8733C140.022 37.911 138.725 38.6201 138.759 39.8308C141.008 42.2521 139.78 43.6876 138.534 44.12L138.119 42.7883C136.805 42.5634 136.822 41.5949 136.77 40.8512C136.736 40.4534 136.424 40.2286 136.113 40.2286C135.854 40.2286 135.594 40.4015 135.577 40.7993C135.542 41.2317 135.577 41.6814 135.456 42.3905C135.369 42.8747 134.851 43.532 134.107 43.532C133.986 43.532 133.865 43.5147 133.744 43.4801L133.467 45.0539C130.907 44.5697 131.184 42.0273 132.913 41.1625C133.899 40.661 134.211 40.2978 133.917 39.9173C133.83 39.8135 133.726 39.7616 133.605 39.7616C133.242 39.7616 132.706 40.1594 132.187 40.5399C131.962 40.7129 131.668 40.7993 131.357 40.7993C130.682 40.7993 129.956 40.3669 129.645 39.3465L128.763 39.8827C128.607 37.9629 129.8 37.0117 131.011 37.0117C131.582 37.0117 132.17 37.2192 132.619 37.6343C132.792 37.79 132.965 37.8591 133.138 37.8591C133.692 37.8591 134.072 37.1673 133.329 36.7695C132.619 36.3891 131.945 35.213 132.602 34.4693L131.53 33.4662C132.014 33.1722 132.533 33.0338 133.017 33.0338C134.09 33.0338 135.075 33.7256 135.387 35.2995C135.456 35.6627 135.612 35.801 135.819 35.801C136.407 35.801 137.445 34.5385 138.223 33.2932C138.413 32.9992 138.586 32.6879 138.759 32.3939C138.984 31.9961 139.226 31.6156 139.486 31.2351C139.814 30.7508 140.16 30.2839 140.593 29.8688C141.319 29.1424 142.581 27.8798 144.034 27.0324C144.38 26.8421 144.743 26.6519 145.107 26.4962C145.539 25.9255 145.971 25.3374 146.352 24.7321C147.372 23.1755 148.22 21.5152 148.704 19.7684C147.908 21.4114 146.802 22.8469 145.574 24.1268C145.003 24.7321 144.415 25.2855 143.792 25.839C142.115 26.7038 140.714 28.1047 139.883 28.9175L139.762 29.0386C139.52 29.2807 139.295 29.5229 139.105 29.7823C138.828 28.0874 138.898 25.9947 139.434 24.0057C139.538 23.6252 139.659 23.2274 139.797 22.8642C140.299 21.5498 141.025 20.3045 142.011 19.3014ZM148.479 12.4352C149.136 12.2104 149.794 12.0374 150.416 12.0374C150.935 12.0374 151.419 12.1585 151.869 12.4179C151.852 12.6255 151.817 12.7984 151.8 12.8849C151.8 12.9022 151.8 12.9022 151.8 12.9022C151.8 12.9022 151.713 12.9887 151.367 13.0233C151.246 13.0406 151.108 13.0406 150.952 13.0406C150.278 13.0406 149.517 12.9368 148.842 12.8157C148.168 12.712 147.147 12.4871 147.147 12.4871C147.044 11.9337 147.13 11.3456 147.338 11.3629C147.58 11.4148 147.753 12.0029 148.479 12.4352ZM147.77 11.5705L148.185 11.1381C149.223 10.2042 149.967 9.99661 150.399 9.99661C151.177 9.99661 151.488 10.6019 151.558 10.7922C151.627 10.9651 151.679 11.1381 151.731 11.2938C151.316 11.1035 150.866 11.0343 150.399 11.0343C149.569 11.0343 148.687 11.2938 147.77 11.5705ZM154.93 64.8915C153.65 65.7563 152.457 66.1714 151.194 66.1714C150.018 66.1714 148.877 65.8254 147.666 65.445C147.338 65.3412 147.009 65.2374 146.663 65.1509C146.127 64.9953 145.556 64.9261 144.986 64.9261C143.602 64.9261 142.409 65.3758 141.63 65.7736C141.717 65.4795 141.993 64.3727 141.993 63.5252C143.014 62.9545 143.723 62.1416 144.069 61.0866C144.588 59.5127 145.003 56.7282 144.588 53.7188C145.401 53.6151 146.559 53.4421 147.718 53.2519C148.981 53.0443 150.018 52.8368 150.779 52.6465C151.143 52.56 151.437 52.4736 151.696 52.3871C151.661 52.9924 151.644 53.5978 151.644 54.2031C151.644 55.7078 151.783 56.832 152.094 57.8178C152.474 58.9939 153.114 60.0143 154.065 60.9482C155.587 62.4529 157.628 62.7815 159.427 62.9026C160.067 62.9545 161.831 63.1793 164.373 63.5598C164.823 63.629 165.186 64.0095 165.204 64.4764C165.273 65.7217 165.221 66.4654 165.152 66.8805L164.149 66.7421C163.318 65.8427 161.9 65.2547 160.517 65.2547C158.77 65.2547 157.455 66.1714 156.867 67.7279C156.556 67.7625 156.21 67.8144 155.864 67.9009C156.521 66.8978 156.573 65.9638 156.591 65.8427L156.677 63.6809L154.93 64.8915ZM137.549 65.0818C137.445 64.9953 137.341 64.8915 137.255 64.7877C137.237 64.7532 137.22 64.7359 137.203 64.7013C136.978 64.3381 137.047 63.9576 137.099 63.5598C137.151 63.162 137.151 62.7642 136.788 62.5048C136.649 62.401 136.494 62.3491 136.338 62.3491C136.234 62.3491 136.148 62.3664 136.061 62.401C135.819 62.4875 135.594 62.695 135.508 62.9717C135.456 63.1101 135.456 63.3004 135.456 63.5252C135.456 63.7154 135.473 63.923 135.473 64.1305C135.473 64.4937 135.439 64.8915 135.283 65.2374C135.266 65.272 135.248 65.3066 135.231 65.3412C135.023 65.6871 134.47 66.1195 133.899 66.1195C133.64 66.1195 133.38 66.033 133.156 65.8082L131.651 66.7248C131.651 66.7248 131.634 66.7248 131.634 66.7075C131.53 66.5519 131.461 66.3962 131.374 66.2578C131.201 65.8946 131.08 65.566 131.011 65.2374C130.734 63.7846 131.599 62.7296 133.121 62.3837C133.744 62.2454 134.245 61.9167 134.055 61.4152C133.934 61.0866 133.726 60.9655 133.415 60.9655C133.086 60.9655 132.619 61.0866 131.98 61.2249C131.772 61.2595 131.582 61.2941 131.392 61.3287C131.236 61.346 131.08 61.3633 130.942 61.3633C130.267 61.3633 129.835 61.0347 129.835 59.6857L128.538 59.9624C129.126 57.9043 130.319 57.1087 131.564 57.1087C132.844 57.1087 134.193 57.9561 135.023 59.1149L135.542 59.2879L136.459 59.5992L138.292 60.2218C140.074 58.7171 139.261 54.7565 139.261 54.7565C139.261 54.7565 135.784 52.8022 136.943 48.4611C136.943 48.4611 137.549 44.3794 144.986 44.3794C145.781 44.3794 146.646 44.4313 147.597 44.5351C148.168 44.6043 148.687 44.6734 149.154 44.7599C149.154 44.7599 149.154 44.7772 149.171 44.7772C148.998 45.175 148.946 45.6247 149.033 46.0571C149.154 46.7316 149.569 47.3023 150.174 47.6136C150.468 47.7693 150.797 47.8558 151.143 47.8558C151.523 47.8558 151.886 47.752 152.232 47.5617C152.232 47.752 152.215 47.9249 152.198 48.0979C152.059 49.0664 151.921 50.1041 151.834 51.1937C150.33 51.9547 143.36 52.8195 143.36 52.8195C144.034 56.1056 143.602 59.2187 143.083 60.7753C142.893 61.346 142.564 61.7957 142.149 62.1589C141.82 62.4529 141.44 62.6777 141.008 62.8507C140.921 63.9922 140.835 64.8396 140.627 65.5141C140.575 65.7563 140.489 65.9638 140.385 66.1368C139.866 67.0188 138.794 67.2264 137.825 67.2955L137.981 65.4623C137.929 65.3585 137.618 65.1336 137.549 65.0818ZM140.022 39.5541C140.316 39.0871 141.302 38.551 142.322 37.9629C142.443 37.8937 142.581 37.8246 142.72 37.7381C142.91 37.911 143.1 38.084 143.291 38.2569C143.758 38.672 144.242 39.0698 144.726 39.4503L144.743 39.4676L147.13 41.9581C147.753 42.6153 148.185 43.1169 148.479 43.532L145.003 43.2898C143.291 43.2898 141.907 43.4974 140.783 43.826C140.938 43.5838 141.06 43.3071 141.129 43.0304C141.405 41.716 140.765 40.488 140.022 39.5541ZM149.897 43.7914C149.69 43.3936 149.361 42.892 148.808 42.2175C148.946 42.304 149.102 42.3905 149.223 42.4597C150.053 42.9266 150.676 43.4974 151.143 44.12C151.506 44.6043 151.748 45.1231 151.938 45.6247C152.007 45.8149 152.059 46.0225 152.094 46.2127C151.886 46.5413 151.523 46.7489 151.143 46.7489C150.987 46.7489 150.831 46.7143 150.676 46.6278C150.105 46.3338 149.88 45.5728 150.278 44.9848C150.312 44.9329 150.347 44.881 150.399 44.8291C150.226 44.5351 150.105 44.2065 149.897 43.7914ZM133.778 12.833C134.47 13.3 135.127 13.8361 135.767 14.3723C136.805 15.2371 137.808 16.1537 138.898 16.9666C139.244 17.226 140.299 18.0216 141.129 18.6615C140.887 18.9209 140.662 19.1804 140.437 19.4571C139.832 20.2527 139.33 21.152 138.949 22.0859L136.995 20.2354C137.203 19.6992 137.272 19.0766 137.203 18.4367C137.203 18.4021 137.185 18.3675 137.185 18.3156L136.148 18.8172C136.182 19.5954 135.888 20.4083 135.179 20.7888C134.954 20.9099 134.764 20.9618 134.505 20.9618C134.505 20.9618 134.505 20.9618 134.487 20.9618L134.522 20.0105C134.176 20.0105 133.709 19.6473 133.709 19.1458C133.709 18.575 134.072 18.2637 134.522 18.1253V17.0185C133.657 17.1741 133.017 17.693 132.758 18.4021L131.616 18.4194C131.564 17.5546 131.98 16.7763 132.862 16.4823V15.3581C132.118 15.5138 131.634 15.877 131.34 16.2056C131.253 16.2921 131.184 16.3958 131.097 16.4996L130.233 16.5169C130.198 15.6867 130.613 14.943 131.392 14.6836V13.5594C130.907 13.6632 130.492 13.8534 130.129 14.1648H129.316C129.333 13.6286 129.645 13.1097 130.077 12.7811C130.458 12.5044 130.942 12.3488 131.426 12.2969C131.582 12.2796 131.737 12.2623 131.893 12.2623C132.101 12.2623 132.308 12.2796 132.498 12.3142C132.965 12.4006 133.398 12.5736 133.778 12.833ZM131.461 5.91495C132.118 4.79076 132.498 3.35526 132.516 1.86788H135.127C135.145 2.05813 135.162 2.23108 135.162 2.42132C135.162 5.27503 132.879 7.59258 130.06 7.59258H129.87C130.475 7.22938 131.011 6.67594 131.461 5.91495ZM119.544 5.91495C120.202 4.79076 120.582 3.35526 120.599 1.86788H124.145C124.162 3.35526 124.543 4.79076 125.2 5.91495C125.65 6.67594 126.186 7.24668 126.791 7.59258H124.422C123.816 6.96996 123.315 6.12249 122.986 5.11937H121.793C121.481 6.12249 120.98 6.96996 120.357 7.59258H117.936C118.558 7.22938 119.112 6.67594 119.544 5.91495ZM107.455 5.91495C108.112 4.79076 108.493 3.35526 108.51 1.86788H112.246C112.263 3.35526 112.644 4.79076 113.301 5.91495C113.75 6.67594 114.287 7.22938 114.892 7.59258H112.315C111.71 6.96996 111.208 6.12249 110.879 5.11937H109.686C109.375 6.12249 108.873 6.96996 108.251 7.59258H105.829C106.452 7.22938 107.005 6.67594 107.455 5.91495ZM95.6597 5.91495C96.3169 4.79076 96.6974 3.35526 96.7147 1.86788H100.139C100.156 3.35526 100.537 4.79076 101.194 5.91495C101.644 6.67594 102.18 7.24668 102.785 7.59258H100.364C99.7586 6.96996 99.2571 6.12249 98.9284 5.11937H97.7351C97.4238 6.12249 96.9222 6.96996 96.2996 7.59258H94.0339C94.6738 7.22938 95.2273 6.67594 95.6597 5.91495ZM85.6457 2.33485C85.6457 2.17919 85.6457 2.02354 85.663 1.85058H88.3438C88.3611 3.33797 88.7416 4.77347 89.3988 5.89766C89.8485 6.65864 90.3846 7.22938 90.99 7.57529H90.7305C87.9979 7.59258 85.6457 5.18855 85.6457 2.33485ZM81.616 16.9493C82.7056 16.1364 83.7087 15.2371 84.7464 14.355C85.3863 13.8188 86.0435 13.2827 86.7353 12.8157C87.1331 12.539 87.5828 12.3661 88.0671 12.2969C88.24 12.2623 88.4303 12.245 88.6205 12.245C88.7935 12.245 88.9664 12.2623 89.1567 12.2796C89.6236 12.3488 90.0906 12.4871 90.4538 12.7638C90.8862 13.0752 91.1975 13.594 91.2148 14.1475H90.4019C90.0387 13.8534 89.6063 13.6459 89.1394 13.5421V14.6663C89.935 14.9257 90.35 15.6694 90.2982 16.4996L89.4334 16.4823C89.3642 16.3785 89.2777 16.2921 89.1913 16.1883C88.8972 15.877 88.3957 15.5138 87.6693 15.3408V16.465C88.534 16.759 88.9491 17.5373 88.9145 18.4021L87.7731 18.3848C87.5136 17.6584 86.8737 17.1568 86.0089 17.0012V18.1081C86.4586 18.2464 86.8218 18.5577 86.8218 19.1285C86.8218 19.63 86.3721 19.9932 86.0089 19.9932L86.0435 20.9445C86.0435 20.9445 86.0435 20.9445 86.0262 20.9445C85.7841 20.9445 85.5766 20.8753 85.3517 20.7715C84.6426 20.391 84.3659 19.5608 84.3832 18.7999L83.3455 18.2983C83.3455 18.3329 83.3282 18.3675 83.3282 18.4194C83.2417 19.0593 83.3282 19.6819 83.5357 20.2181L81.5814 22.0859C81.2009 21.152 80.6993 20.2699 80.094 19.4571C79.8692 19.1804 79.6443 18.9036 79.4022 18.6615C80.2151 18.0043 81.2701 17.2087 81.616 16.9493ZM49.4815 67.7798C49.3259 66.7248 49.4988 62.9717 49.6199 60.8271C49.6718 59.9624 50.329 59.2533 51.1765 59.1322C52.145 58.9939 53.3902 58.8036 54.3069 58.6134C55.7597 58.3021 57.1606 57.6621 57.4892 56.6244C57.7659 55.7251 57.6103 55.6213 57.5238 54.7046C57.4546 53.9955 57.3681 53.2691 57.3162 52.56C57.3162 52.4563 57.299 52.3352 57.299 52.2314C57.2817 51.8164 57.2989 51.384 57.3508 50.9689C57.2644 51.0208 57.1779 51.0727 57.0914 51.1245C56.8147 51.2802 56.5207 51.384 56.2266 51.4705C55.898 51.5569 55.5694 51.5915 55.2235 51.5915C54.4971 51.5915 53.788 51.4013 53.1481 51.0035C51.9893 50.2944 51.3148 49.0664 51.3494 47.7174C51.4013 45.3134 52.7676 43.6184 54.082 41.9754C54.7047 41.1971 55.3619 40.3842 55.8462 39.5195C57.3854 36.7523 57.7486 33.7429 56.9185 30.5779C56.5553 29.1943 55.7251 27.949 54.843 26.6173C54.5144 26.1157 54.2031 25.6487 53.8918 25.1299C53.8918 25.1299 53.2 25.4412 52.7503 25.3374C52.6293 25.3028 52.5082 25.251 52.3698 25.1645C51.3148 24.5073 50.1906 21.8265 50.2425 18.6096C50.2771 16.0499 50.8824 13.9226 52.0758 12.1758C51.8164 12.9022 51.5915 13.6632 51.4532 14.4242C51.2975 15.2543 51.2456 16.1191 51.2975 16.9493C51.3494 17.7967 51.5224 18.6096 51.7991 19.3706C51.678 18.5577 51.678 17.7449 51.7818 16.9493C51.8856 16.1537 52.0931 15.3927 52.3871 14.6663C52.6465 14.0264 52.9579 13.4038 53.3211 12.8157C53.0789 14.3031 53.0789 15.8078 53.4767 17.6757C53.7188 18.8344 54.2204 19.9413 54.6528 20.9099C55.0506 21.7919 55.3446 22.501 55.4657 23.0891C55.604 23.729 55.5175 24.2132 55.0852 24.611C55.1543 24.7321 55.2408 24.8532 55.31 24.9742C55.5003 25.2683 55.7078 25.5796 55.9153 25.8909C56.8147 27.2572 57.7486 28.6581 58.1637 30.2493C59.0631 33.7083 58.648 37.1327 56.9703 40.1594C56.4342 41.1279 55.7424 41.9754 55.0852 42.8056C53.8572 44.3448 52.6811 45.7976 52.6293 47.7693C52.612 48.6686 53.0443 49.4469 53.8053 49.9139C54.6009 50.3982 55.5521 50.4327 56.365 50.035C56.3823 50.0177 56.4169 50.0177 56.4342 50.0004C57.0568 49.6718 57.6103 49.0491 57.9389 48.3227C57.9562 48.2881 57.9562 48.2535 57.9735 48.219C58.3713 47.0602 58.8555 45.9187 59.409 44.8291C61.0347 41.5776 63.0582 38.5337 64.3381 35.1092C65.445 32.169 64.9434 28.5889 64.9434 28.5889C63.8192 29.0386 62.1762 29.0905 62.1762 29.0905C62.2281 25.4239 54.3588 16.9147 59.1495 6.53758C59.4781 7.07373 59.9105 7.62717 60.5159 8.19791L60.9482 8.613V7.10832C58.4404 4.51404 59.5992 2.04083 60.5331 1.21066C61.2423 1.47009 62.0551 2.24837 62.6605 3.19961L63.7155 2.8537C63.456 2.42132 63.162 2.00624 62.8334 1.62575C62.9372 1.55657 63.041 1.50468 63.162 1.48739C63.2139 1.48739 63.2831 1.47009 63.3696 1.47009C64.9434 1.47009 70.8584 2.83641 71.4464 3.14772L71.9653 4.72158C73.5737 5.15396 75.0611 6.01872 76.1161 6.58946C75.9432 7.03914 75.4589 8.05955 74.4904 7.95578C74.4904 7.95578 75.4416 8.52652 75.2513 9.42587C74.94 10.0831 74.5422 10.7576 74.0407 11.3456L73.0722 10.3771C71.9307 9.3221 70.9275 8.94161 70.0974 8.94161C69.0078 8.94161 68.2468 9.63341 67.9355 10.429C67.4512 11.6397 67.5031 12.6082 67.6761 13.2308C67.8144 13.6978 68.1949 14.0783 69.0597 14.1475C69.2153 14.1647 69.3883 14.1648 69.5612 14.1648C71.3426 14.1648 73.6775 13.5248 73.6775 13.5248C74.0407 15.4619 74.2655 15.8424 71.4983 15.8424C70.8584 15.8424 70.0628 15.8251 69.077 15.7905L71.8442 17.053C72.1555 17.0357 72.4495 17.0185 72.7435 17.0185C74.7844 17.0185 76.4101 17.6238 77.69 18.6096C77.984 18.8344 78.2607 19.0766 78.5201 19.336C79.506 20.3391 80.2151 21.5844 80.7166 22.8988C80.855 23.2793 80.9761 23.6598 81.0798 24.0403C81.616 26.0465 81.6852 28.1393 81.4084 29.8169C81.2009 29.5575 80.9933 29.3153 80.7512 29.0732L80.6301 28.9521C79.8 28.1393 78.3991 26.7383 76.7214 25.8736C76.0988 25.3201 75.5108 24.7667 74.94 24.1614C73.7121 22.8642 72.6225 21.4287 71.8096 19.803C72.3112 21.5498 73.1586 23.2274 74.1618 24.7667C74.5595 25.372 74.9746 25.9601 75.407 26.5308C75.7875 26.6865 76.1334 26.8594 76.4793 27.067C77.9494 27.8971 79.1946 29.177 79.921 29.9034C80.3534 30.3184 80.6993 30.7854 81.0279 31.2697C81.2874 31.6502 81.5122 32.0307 81.7543 32.4285C81.9273 32.7225 82.1175 33.0338 82.2905 33.3278C83.0688 34.5904 84.1065 35.8356 84.6945 35.8356C84.9021 35.8356 85.0577 35.68 85.1269 35.334C85.4382 33.7602 86.424 33.0684 87.4963 33.0684C87.9979 33.0684 88.5168 33.224 88.9837 33.5008L87.9114 34.5039C88.5513 35.2649 87.8768 36.4236 87.185 36.8041C86.4413 37.2019 86.8391 37.8937 87.3753 37.8937C87.5482 37.8937 87.7212 37.8246 87.8941 37.6689C88.3438 37.2538 88.9318 37.0463 89.5026 37.0463C90.7132 37.0463 91.9066 37.9802 91.7509 39.9173L90.817 39.3984C90.5057 40.4188 89.7793 40.8512 89.1048 40.8512C88.7935 40.8512 88.4995 40.7647 88.2746 40.5918C87.7558 40.2113 87.2196 39.8135 86.8564 39.8135C86.7353 39.8135 86.6143 39.8654 86.5451 39.9692C86.2684 40.3497 86.5624 40.7301 87.5482 41.2144C89.295 42.0792 89.5718 44.6216 86.9948 45.1058L86.718 43.532C86.597 43.5666 86.4759 43.5838 86.3549 43.5838C85.6112 43.5838 85.0923 42.9266 85.0058 42.4424C84.8848 41.7333 84.9194 41.3009 84.8848 40.8512C84.8675 40.4534 84.608 40.2805 84.3486 40.2805C84.0373 40.2805 83.726 40.5053 83.6914 40.9031C83.6395 41.6468 83.6568 42.6153 82.3424 42.8402L81.9273 44.1719C80.682 43.7395 79.4368 42.304 81.7025 39.8827C81.737 38.6547 80.4399 37.9456 78.6239 36.9252C78.3126 36.7523 77.984 36.562 77.6554 36.3718C77.4824 36.268 77.3095 36.1642 77.1365 36.0604C76.7733 35.8356 75.3724 34.8152 74.1445 33.7602L73.0722 34.3309C73.297 34.5212 73.5391 34.7287 73.8158 34.9708C74.9227 35.8875 76.1161 36.7868 76.5658 37.0463C76.6523 37.0982 76.7387 37.15 76.8252 37.2019C75.6491 38.2915 74.3866 39.2428 73.2451 40.0037C72.7781 40.3151 72.3285 40.6091 71.9134 40.8685C71.4983 41.1279 71.1005 41.3528 70.7719 41.543C69.8552 42.0619 69.1289 42.7018 68.5754 43.4282C68.2122 43.8952 67.9355 44.3967 67.7279 44.8983C67.5204 45.3825 67.382 45.8841 67.3129 46.3857C67.2783 46.5586 67.261 46.7143 67.2437 46.8872C67.2091 47.3542 67.2264 47.8039 67.2783 48.2363C67.3475 48.7032 67.3993 49.1702 67.4685 49.6372C67.555 50.3463 67.6242 51.0381 67.6761 51.7472C67.7452 52.5773 67.7798 53.3902 67.7798 54.2031C67.7798 56.6936 67.3993 58.475 65.6698 60.1699C64.4246 61.3979 62.6777 61.6919 60.9828 61.813C60.1008 61.8649 57.6276 62.2281 55.9499 62.4875C54.9814 62.6258 54.255 63.4387 54.2031 64.4245C54.1339 65.7563 54.1512 67.5031 54.6182 68.0911L56.9012 67.7798C57.4373 66.9842 58.7172 66.3616 59.9624 66.3616C60.9309 66.3616 61.8822 66.7421 62.4183 67.7452C62.574 68.0392 62.7123 68.3851 62.7815 68.8002C62.7988 68.9213 62.8161 69.0424 62.8334 69.1807L62.107 68.8867L61.6919 68.7137C61.6746 68.8175 61.6573 68.904 61.64 68.9905C61.3979 69.9936 60.8791 70.3568 60.2564 70.3568C59.9624 70.3568 59.6511 70.2703 59.3225 70.1492C59.2879 70.1319 59.2533 70.1147 59.2014 70.0974C58.6134 69.8552 58.1983 69.665 57.887 69.665C57.6794 69.665 57.5238 69.7515 57.3854 69.9936C57.1952 70.3222 57.3854 70.5989 57.714 70.8238C57.8178 70.8929 57.9562 70.9621 58.0772 71.014C59.824 71.7404 60.3256 73.4353 58.7172 75.1994L57.5065 74.1271C57.3162 74.2482 57.126 74.3001 56.953 74.3001C56.365 74.3001 55.8289 73.7639 55.6905 73.3661C55.4657 72.7608 55.7078 72.069 55.7943 71.5674C55.8116 71.4291 55.8289 71.2907 55.8116 71.187C55.777 70.9102 55.5867 70.6854 55.3619 70.5643C55.2581 70.5124 55.1543 70.4779 55.0333 70.4779C54.9295 70.4779 54.8257 70.4951 54.722 70.547C54.6182 70.5989 54.5317 70.6681 54.4625 70.7546C54.3069 70.9448 54.2723 71.2043 54.2723 71.4637C54.2723 71.602 54.2723 71.7577 54.255 71.8961C54.2204 72.1382 54.1512 72.363 53.9437 72.5533C53.8399 72.6397 53.7361 72.7089 53.6324 72.7781C53.5632 72.8127 53.2346 72.9684 53.2173 73.0375L53.0616 74.7325C51.851 74.4385 50.5192 73.8504 50.8478 71.9652C50.8997 71.6539 51.0035 71.2907 51.1765 70.8929C51.2283 70.7546 51.2975 70.5989 51.384 70.4433C50.3463 69.9244 49.6545 68.9386 49.4815 67.7798ZM70.1147 12.0374C70.7373 12.0374 71.3772 12.1931 72.0517 12.4352C72.7781 11.9856 72.9338 11.4148 73.2105 11.3802C73.4181 11.3629 73.5045 11.951 73.4008 12.5044C73.4008 12.5044 72.3803 12.7293 71.7058 12.833C71.0313 12.9541 70.2703 13.0579 69.5958 13.0579C69.4402 13.0579 69.3018 13.0579 69.1807 13.0406C68.8521 13.006 68.7484 12.9368 68.7484 12.9195C68.7484 12.9195 68.7484 12.9195 68.7484 12.9022C68.7138 12.7984 68.6792 12.6428 68.6792 12.4352C69.1116 12.1585 69.5958 12.0374 70.1147 12.0374ZM68.7829 11.2938C68.8175 11.1381 68.8867 10.9651 68.9559 10.7922C69.0251 10.6019 69.3364 9.99661 70.1147 9.99661C70.5644 9.99661 71.308 10.1869 72.3285 11.1381L72.7435 11.5705C71.8269 11.2765 70.9275 11.0343 70.0974 11.0343C69.6477 11.0343 69.2153 11.1208 68.7829 11.2938ZM82.2213 60.2218L84.0719 59.5992L84.9885 59.2879L85.5074 59.1149C86.3376 57.9388 87.6866 57.1087 88.9664 57.1087C90.2117 57.1087 91.405 57.9043 91.9931 59.9624L90.6959 59.6857C90.6959 61.0174 90.2636 61.3633 89.589 61.3633C89.4507 61.3633 89.295 61.346 89.1394 61.3287C88.9491 61.2941 88.7589 61.2595 88.5513 61.2249C87.9114 61.1039 87.4444 60.9655 87.1158 60.9655C86.8045 60.9655 86.597 61.0866 86.4759 61.4152C86.303 61.9167 86.7872 62.2281 87.4099 62.3837C88.9318 62.7296 89.7966 63.8019 89.5199 65.2374C89.4507 65.566 89.3469 65.8946 89.1567 66.2578C89.0875 66.4135 89.001 66.5519 88.8972 66.7075C88.8972 66.7075 88.8799 66.7075 88.8799 66.7248L87.3753 65.8082C87.1504 66.033 86.891 66.1195 86.6316 66.1195C86.0608 66.1195 85.5074 65.7044 85.2998 65.3412C85.2825 65.3066 85.2653 65.272 85.248 65.2374C85.075 64.8915 85.0577 64.4937 85.0577 64.1305C85.0577 63.923 85.075 63.7154 85.075 63.5252C85.075 63.3004 85.075 63.1101 85.0231 62.9717C84.9366 62.695 84.7118 62.5048 84.4697 62.401C84.3832 62.3664 84.2794 62.3491 84.193 62.3491C84.0373 62.3491 83.8816 62.401 83.7433 62.5048C83.3801 62.7642 83.3801 63.162 83.432 63.5598C83.4839 63.9749 83.553 64.3554 83.3282 64.7013C83.3109 64.7359 83.2936 64.7532 83.2763 64.7877C83.1898 64.8915 83.0861 64.9953 82.9823 65.0818C82.9131 65.1336 82.6018 65.3585 82.6018 65.445L82.7575 67.2782C81.7889 67.2091 80.7166 67.0015 80.1978 66.1195C80.094 65.9465 80.0075 65.7217 79.9556 65.4968C79.7654 64.8223 79.6789 63.9922 79.5751 62.8334C79.1428 62.6604 78.7623 62.4356 78.4337 62.1416C78.0186 61.7784 77.69 61.3287 77.4997 60.758C76.9809 59.2014 76.5312 56.0883 77.223 52.8022C77.223 52.8022 70.253 51.9374 68.7484 51.1764C68.6446 50.0868 68.5235 49.0318 68.3852 48.0806C68.3679 47.9076 68.3506 47.7347 68.3506 47.5444C68.6792 47.7347 69.0597 47.8385 69.4402 47.8385C69.7861 47.8385 70.0974 47.752 70.4087 47.5963C71.014 47.285 71.4291 46.7143 71.5502 46.0398C71.6367 45.6074 71.5848 45.1577 71.4118 44.7599C71.4118 44.7599 71.4118 44.7426 71.4291 44.7426C71.8961 44.6561 72.4149 44.587 72.9857 44.5178C73.9369 44.414 74.8017 44.3621 75.5972 44.3621C83.0342 44.3621 83.6395 48.4438 83.6395 48.4438C84.7983 52.7849 81.322 54.7392 81.322 54.7392C81.322 54.7392 80.4572 58.7171 82.2213 60.2218ZM63.9057 65.8427C63.9057 65.9638 63.9749 66.8978 64.6321 67.9009C64.2689 67.8144 63.9403 67.7625 63.629 67.7279C63.041 66.1714 61.7265 65.2547 59.9797 65.2547C58.5961 65.2547 57.1779 65.8427 56.3477 66.7421L55.3446 66.8805C55.2754 66.4481 55.2235 65.7044 55.2927 64.4764C55.31 64.0095 55.6732 63.629 56.1229 63.5598C58.6653 63.1793 60.4294 62.9372 61.0693 62.9026C62.868 62.7815 64.9088 62.4529 66.4308 60.9482C67.382 60.0143 68.0393 58.9766 68.4025 57.8178C68.7138 56.832 68.8521 55.7251 68.8521 54.2031C68.8521 53.5978 68.8348 52.9924 68.8002 52.3871C69.0597 52.4736 69.371 52.56 69.7169 52.6465C70.4779 52.8368 71.5156 53.0443 72.7781 53.2519C73.9369 53.4421 75.0957 53.6151 75.9086 53.7188C75.4935 56.7455 75.8913 59.5127 76.4274 61.0866C76.7733 62.1243 77.4824 62.9545 78.5028 63.5252C78.5028 64.6321 78.8487 65.739 78.8487 65.7736C78.0705 65.3758 76.8771 64.9261 75.4935 64.9261C74.9227 64.9261 74.352 65.0126 73.8158 65.1509C73.4699 65.2547 73.1413 65.3585 72.8127 65.445C71.6021 65.8082 70.4779 66.1714 69.2845 66.1714C68.022 66.1714 66.8286 65.7736 65.5488 64.8915L63.7673 63.6809L63.9057 65.8427ZM70.2703 45.0021C70.6508 45.5901 70.4433 46.3511 69.8725 46.6451C69.7169 46.7316 69.5612 46.7662 69.4056 46.7662C69.0251 46.7662 68.6619 46.5586 68.4543 46.23C68.4889 46.0398 68.5581 45.8322 68.61 45.642C68.7829 45.1231 69.0424 44.6216 69.4056 44.1373C69.8725 43.5147 70.4952 42.9439 71.3253 42.477C71.4464 42.4078 71.5848 42.3213 71.7404 42.2348C71.187 42.9093 70.8584 43.3936 70.6508 43.8087C70.426 44.2238 70.3222 44.5524 70.1666 44.8637C70.1839 44.8983 70.2357 44.9502 70.2703 45.0021ZM77.2403 38.2742C77.4305 38.1013 77.6208 37.9283 77.811 37.7554C77.9494 37.8246 78.0705 37.911 78.2088 37.9802C79.2292 38.551 80.1978 39.1044 80.5091 39.5714C79.7654 40.488 79.1082 41.7333 79.4368 43.0304C79.506 43.3071 79.627 43.5838 79.7827 43.826C78.6585 43.4974 77.2749 43.2898 75.5627 43.2898L72.0863 43.532C72.3803 43.1169 72.7954 42.6153 73.4354 41.9581L75.8221 39.4676L75.8394 39.4503C76.2891 39.0871 76.7733 38.6893 77.2403 38.2742ZM61.813 75.2686C60.0316 77.1711 57.6276 78.0531 55.1543 78.0531C50.917 78.0531 46.5413 75.4416 45.0021 70.8411C45.0021 70.8411 47.0948 71.5502 49.7928 71.8615C49.6718 72.6052 49.741 73.2624 50.0177 73.8504C50.6057 75.0957 51.9029 75.5453 52.8195 75.7875L54.0475 76.0988L54.1685 74.8362L54.2896 73.6602C54.3934 73.591 54.5144 73.5045 54.6182 73.418C54.6355 73.5218 54.6701 73.6256 54.7047 73.7293C54.9987 74.5422 55.9326 75.3724 56.9876 75.3724C57.0914 75.3724 57.1952 75.3724 57.299 75.3551L58.0426 76.0123L58.8382 76.7214L59.5646 75.9258C60.585 74.8189 61.0001 73.5737 60.7407 72.4322C60.6542 72.069 60.5159 71.7231 60.3083 71.4118C60.9482 71.4118 61.519 71.1697 61.9514 70.72C62.107 70.547 62.2627 70.3568 62.3664 70.132L62.4356 70.1492L64.1133 70.8411L63.923 69.0424C63.923 68.9732 63.9057 68.9213 63.9057 68.8521C64.6494 68.9732 65.5488 69.2499 66.6902 69.6823C66.8459 69.7688 67.0188 69.8379 67.1745 69.8898C67.261 69.9244 67.3302 69.959 67.4166 69.9763C67.0534 70.1838 66.6902 70.3914 66.3616 70.5989C64.7186 71.6539 63.5944 72.7954 63.0064 73.9888C62.6432 74.4039 62.2454 74.8189 61.813 75.2686ZM74.6287 71.5156C73.4354 72.5187 71.775 72.7262 70.2703 72.83C65.7044 73.1759 63.8365 77.2922 63.8365 77.2922C63.456 76.3409 63.5252 75.4416 63.8884 74.6287C64.4419 73.3834 65.6871 72.3111 67.0015 71.481C69.198 70.0974 71.6194 69.3191 71.6194 69.3191C71.187 69.3537 70.7892 69.371 70.4087 69.371C69.4575 69.371 68.6792 69.2499 68.0393 69.0596C67.6761 68.9559 67.3474 68.8175 67.0707 68.6792C65.0472 67.6414 64.978 65.7909 64.978 65.7909C66.5865 66.8805 68.0047 67.261 69.3191 67.261C71.014 67.261 72.5533 66.6556 74.1272 66.2059C74.5941 66.0676 75.0611 66.0157 75.5108 66.0157C76.8079 66.0157 77.9321 66.5 78.572 66.8459C77.7591 67.3474 77.0673 67.9873 76.5312 68.8002C76.3236 69.1288 76.1334 69.4574 75.9777 69.7687C75.4762 70.4779 75.1476 71.1005 74.6287 71.5156ZM82.2213 69.9417C80.6301 70.3049 79.1428 71.2215 78.6412 72.8646C78.3472 73.8158 78.3991 74.8535 78.451 75.8394C78.451 75.8394 75.1995 73.9888 76.929 70.3395C77.0673 70.0455 77.2576 69.7169 77.4651 69.3883C77.8802 68.7483 78.3818 68.2987 78.8487 67.9528C79.0217 67.849 79.1946 67.7625 79.3849 67.6587L79.8692 67.4166C80.6993 68.1257 81.8235 68.2987 82.6537 68.3505L83.9162 68.437L83.8125 67.1745L83.7087 65.86C83.8471 65.739 83.9854 65.6006 84.1238 65.4277C84.1238 65.4104 84.1411 65.4104 84.1411 65.3931C84.193 65.5487 84.2621 65.7044 84.3486 65.8427C84.7291 66.5 85.6285 67.1572 86.6143 67.1572C86.8737 67.1572 87.1158 67.1053 87.358 67.0188L87.9287 67.3647C87.8941 67.3993 87.8422 67.4339 87.8076 67.4685C85.9571 69.2153 84.5907 69.4056 82.2213 69.9417ZM131.288 75.9604C131.288 75.9604 132.222 71.8269 130.233 70.5124C127.05 68.437 125.355 70.2184 121.793 67.5031C121.758 67.4512 121.706 67.4166 121.672 67.3647C119.994 65.6698 118.143 64.5975 116.466 64.0268C115.307 64.217 114.027 64.3554 112.609 64.4245C112.886 64.4418 113.162 64.4591 113.456 64.4937C113.958 64.5456 114.494 64.6321 115.048 64.7532C115.895 64.9434 116.794 65.2374 117.694 65.6698C118.783 66.2059 119.873 67.0707 120.893 68.1084C120.963 68.1776 121.014 68.2295 121.066 68.2987C123.28 70.7027 122.692 73.0548 122.692 73.0548C122.692 73.0548 119.856 69.2845 115.618 69.2845C113.595 69.2845 111.848 69.959 110.949 70.4087L110.291 70.7546L109.634 70.4087C108.735 69.9763 106.988 69.2845 104.964 69.2845C100.727 69.2845 97.8907 73.0548 97.8907 73.0548C97.8907 73.0548 97.2854 70.7027 99.5165 68.2987C99.5684 68.2295 99.6376 68.1776 99.6894 68.1084C100.71 67.0707 101.799 66.1886 102.889 65.6698C103.788 65.2374 104.688 64.9434 105.535 64.7532C106.089 64.6321 106.625 64.5456 107.126 64.4937C107.42 64.4591 107.714 64.4418 107.991 64.4245C106.573 64.3554 105.293 64.217 104.117 64.0268C102.439 64.5975 100.589 65.6525 98.9111 67.3647C98.8593 67.4166 98.8247 67.4512 98.7901 67.5031C95.2273 70.2184 93.5324 68.437 90.35 70.5124C88.3611 71.8096 89.295 75.9604 89.295 75.9604C89.295 75.9604 85.0923 72.7781 88.8972 68.5754C89.6928 67.6933 90.6614 66.9669 91.3705 66.4827C91.9585 66.0849 92.3736 65.86 92.3736 65.86C92.3736 65.86 92.0277 65.8255 91.578 65.739C91.3359 65.7044 91.0418 65.6352 90.7305 65.566C90.6786 65.5487 90.6095 65.5314 90.5403 65.5141C90.6959 64.7704 90.6441 64.044 90.3846 63.4041C90.2809 63.1447 90.1252 62.8853 89.9522 62.6604C91.5953 63.1101 93.6188 63.456 95.9191 63.456C96.8011 63.456 97.7178 63.2658 98.6863 63.162C99.0149 63.1274 99.3781 63.1101 99.7413 63.1101C99.8624 63.1101 99.9835 63.1101 100.105 63.1274C99.2052 62.8507 98.4096 62.5394 97.6832 62.2281C97.0952 62.3145 96.5071 62.401 95.9191 62.401C94.1031 62.401 92.4773 62.1762 91.0764 61.8476C91.3359 61.5881 91.4915 61.2941 91.5953 60.9655L91.7509 61.0001L93.5151 61.3806L93.0135 59.6338C92.0796 56.3477 89.8658 56.0018 88.9491 56.0018C87.479 56.0018 85.8879 56.8493 84.8329 58.181L82.5845 58.942C82.0829 58.0253 82.1175 56.3996 82.2559 55.3792C82.6537 55.0851 83.2244 54.5836 83.7433 53.8399C84.5389 52.7157 85.3344 50.8305 84.6426 48.2017C84.5734 47.8558 84.2102 46.524 82.792 45.348L83.0515 44.5005L83.2763 43.7568C83.6222 43.6184 83.8989 43.4109 84.1065 43.1861C84.4178 43.826 85.0231 44.414 85.7841 44.6043L85.9052 45.2615L86.0954 46.403L87.2196 46.1954C88.7762 45.9014 89.8139 44.9329 90.0041 43.6184C90.0906 43.0304 89.9868 42.4251 89.7274 41.8716C90.3154 41.7333 90.8516 41.4047 91.2494 40.9031L92.7195 41.7333L92.8578 39.9692C92.9789 38.4299 92.4255 37.4614 91.9412 36.9425C91.3186 36.268 90.4192 35.8875 89.4853 35.8875C89.3815 35.8875 89.295 35.8875 89.1913 35.9048C89.2086 35.8183 89.2431 35.7318 89.2604 35.6454C89.3123 35.3513 89.3123 35.0573 89.2604 34.7633L89.762 34.2963L90.8689 33.2586L89.5718 32.4803C88.9145 32.0826 88.2054 31.875 87.4963 31.875C86.3203 31.875 84.9712 32.4803 84.2967 34.1061C84.02 33.7775 83.6568 33.3105 83.259 32.6706C83.1034 32.4112 82.9477 32.1517 82.792 31.8923C82.6191 31.5983 82.4288 31.287 82.2386 30.993V30.9757C82.8093 28.8311 82.792 25.8909 81.9446 23.1582L84.0719 21.1347C84.2794 21.3768 84.5389 21.5671 84.8156 21.7054C85.2134 21.913 85.5766 22.0168 85.9917 22.0168H86.0089L87.1331 21.9995V20.6159C87.1677 20.5813 87.2196 20.5467 87.2542 20.5121C87.5655 20.2181 87.7558 19.8549 87.8249 19.4398L88.8627 19.4571L89.9004 19.4744L89.9522 18.4367C89.9695 18.1253 89.935 17.8313 89.8831 17.5373H90.2636L91.3013 17.5546L91.3532 16.5169C91.3705 16.0499 91.3013 15.6003 91.1456 15.2025H91.1802H92.2871L92.2525 14.0956C92.2352 13.2308 91.7855 12.4006 91.0591 11.8818C90.4192 11.4148 89.6928 11.2419 89.1221 11.19V8.66488H131.392V11.1727C130.821 11.2246 130.06 11.3975 129.403 11.8818C128.676 12.4179 128.226 13.2481 128.209 14.0956L128.175 15.2025H129.281H129.316C129.16 15.6003 129.074 16.0499 129.109 16.5169L129.16 17.5546L130.198 17.5373H130.579C130.509 17.814 130.492 18.1253 130.509 18.4367L130.561 19.4744L131.599 19.4571L132.637 19.4398C132.706 19.8376 132.896 20.2181 133.207 20.5121C133.242 20.5467 133.294 20.5813 133.329 20.6159V21.9995L134.453 22.0168H134.47C134.885 22.0168 135.248 21.913 135.646 21.7054C135.923 21.5498 136.182 21.3595 136.39 21.1347L138.517 23.1582C137.67 25.8909 137.635 28.8311 138.223 30.9757V30.993C138.033 31.287 137.843 31.5983 137.67 31.8923C137.514 32.1517 137.358 32.4112 137.203 32.6706C136.822 33.2932 136.442 33.7948 136.165 34.1234C135.49 32.4976 134.141 31.8923 132.965 31.8923C132.256 31.8923 131.547 32.0998 130.89 32.4976L129.593 33.2759L130.7 34.3136L131.201 34.7806C131.149 35.0573 131.149 35.3513 131.201 35.6627C131.219 35.7491 131.236 35.8356 131.27 35.9221C131.167 35.9221 131.08 35.9048 130.976 35.9048C130.025 35.9048 129.126 36.2853 128.52 36.9598C128.036 37.4959 127.483 38.4472 127.604 39.9865L127.742 41.7506L129.212 40.9204C129.61 41.4047 130.146 41.7333 130.734 41.8889C130.475 42.4424 130.371 43.0304 130.458 43.6357C130.648 44.9675 131.686 45.936 133.242 46.2127L134.366 46.4203L134.557 45.2788L134.678 44.6216C135.456 44.414 136.061 43.8433 136.355 43.2034C136.563 43.4282 136.839 43.6184 137.185 43.7741L137.376 44.3967L137.41 44.5178L137.67 45.3653C136.251 46.5586 135.888 47.8731 135.819 48.219C135.127 50.8478 135.923 52.733 136.718 53.8572C137.237 54.6009 137.808 55.1024 138.206 55.3965C138.344 56.4169 138.379 58.0426 137.877 58.9593L135.629 58.1983C134.557 56.8665 132.983 56.0191 131.513 56.0191C130.596 56.0191 128.382 56.365 127.448 59.6511L126.947 61.3979L128.711 61.0174L128.866 60.9828C128.97 61.2941 129.126 61.6054 129.385 61.8649C127.984 62.1762 126.359 62.4183 124.543 62.4183C123.955 62.4183 123.367 62.3318 122.778 62.2453C122.052 62.5567 121.257 62.868 120.357 63.1447C120.478 63.1447 120.582 63.1447 120.703 63.1447C121.066 63.1447 121.429 63.162 121.758 63.1966C122.727 63.3176 123.643 63.4906 124.525 63.4906C126.826 63.4906 128.849 63.1447 130.492 62.695C130.319 62.9199 130.164 63.162 130.06 63.4387C129.8 64.0786 129.748 64.805 129.904 65.5487C129.835 65.566 129.783 65.5833 129.714 65.6006C129.403 65.6698 129.109 65.739 128.866 65.7736C128.399 65.86 128.123 65.8773 128.123 65.8773C128.123 65.8773 128.538 66.1022 129.126 66.5C129.835 66.9842 130.786 67.7106 131.599 68.5927C135.49 72.7781 131.288 75.9604 131.288 75.9604ZM142.08 75.8394C142.132 74.8535 142.166 73.8158 141.89 72.8646C141.388 71.2215 139.901 70.3222 138.31 69.9417C135.94 69.3883 134.574 69.2153 132.723 67.5031C132.689 67.4685 132.637 67.4339 132.602 67.3993L133.173 67.0534C133.398 67.1399 133.657 67.1918 133.917 67.1918C134.92 67.1918 135.819 66.5346 136.182 65.8773C136.269 65.7217 136.338 65.5833 136.39 65.4277C136.39 65.445 136.407 65.445 136.407 65.4623C136.545 65.6352 136.684 65.7736 136.822 65.8946L136.718 67.2091L136.615 68.4716L137.877 68.3851C138.707 68.3333 139.814 68.1603 140.662 67.4512L141.146 67.6933C141.336 67.7971 141.509 67.8836 141.682 67.9873C142.166 68.3333 142.651 68.7829 143.066 69.4229C143.291 69.7515 143.464 70.0628 143.602 70.3741C145.331 73.9888 142.08 75.8394 142.08 75.8394ZM156.66 77.3094C156.66 77.3094 154.809 73.1932 150.226 72.8473C148.721 72.7262 147.078 72.5187 145.868 71.5329C145.349 71.1005 145.02 70.4779 144.501 69.786C144.346 69.4574 144.155 69.1461 143.948 68.8175C143.412 68.0046 142.737 67.3474 141.907 66.8632C142.547 66.5173 143.654 66.033 144.968 66.033C145.418 66.033 145.868 66.0849 146.352 66.2232C147.943 66.6729 149.465 67.2782 151.16 67.2782C152.474 67.2782 153.893 66.915 155.501 65.8082C155.501 65.8082 155.415 67.6587 153.408 68.6964C153.132 68.8348 152.803 68.9732 152.44 69.0769C151.8 69.2672 151.004 69.3883 150.07 69.3883C149.69 69.3883 149.292 69.371 148.86 69.3364C148.86 69.3364 151.281 70.1147 153.477 71.4983C154.809 72.3457 156.037 73.4007 156.591 74.646C156.971 75.4589 157.058 76.3409 156.66 77.3094ZM165.377 78.0531C162.903 78.0531 160.482 77.1711 158.718 75.2686C158.285 74.8189 157.905 74.3866 157.525 74.0061C156.936 72.7954 155.812 71.6712 154.169 70.6162C153.841 70.4087 153.495 70.2011 153.114 69.9936C153.201 69.959 153.27 69.9244 153.356 69.9071C153.529 69.8379 153.685 69.7688 153.841 69.6996C154.982 69.2499 155.881 68.9905 156.625 68.8694C156.625 68.9386 156.608 68.9905 156.608 69.0596L156.418 70.8583L158.095 70.1665L158.164 70.1492C158.286 70.3741 158.424 70.5643 158.58 70.7373C159.012 71.187 159.583 71.4291 160.223 71.4291C160.015 71.7404 159.877 72.0863 159.79 72.4495C159.531 73.591 159.963 74.8362 160.966 75.9431L161.693 76.7387L162.488 76.0296L163.232 75.3724C163.336 75.3897 163.439 75.3897 163.543 75.3897C164.598 75.3897 165.532 74.5595 165.826 73.7466C165.861 73.6429 165.895 73.5391 165.913 73.4353C166.034 73.5218 166.138 73.6083 166.241 73.6775L166.362 74.8535L166.483 76.1161L167.711 75.8048C168.628 75.5799 169.925 75.113 170.513 73.8677C170.79 73.2797 170.859 72.6225 170.738 71.8788C173.419 71.5674 175.529 70.8583 175.529 70.8583C173.972 75.4589 169.597 78.0531 165.377 78.0531ZM71.2216 4.98101C69.6477 5.41339 67.6588 4.99831 67.6588 4.99831C68.8694 6.19167 69.2672 6.91807 69.2672 6.91807C70.8584 7.00455 71.2216 5.96684 71.2216 4.98101ZM149.309 4.98101C149.309 5.96684 149.673 7.00455 151.264 6.93537C151.264 6.93537 151.679 6.20897 152.872 5.0156C152.872 5.0156 150.883 5.41339 149.309 4.98101ZM150.261 26.2887C150.537 25.8217 150.814 25.3547 151.091 24.8878C151.54 24.1268 151.955 23.3139 152.319 22.4837C152.665 21.6536 152.959 20.8234 153.218 19.9759C153.495 19.1458 153.737 18.2983 153.979 17.4508C153.599 18.2464 153.218 19.0247 152.803 19.803C152.405 20.5813 151.99 21.3423 151.54 22.0686C151.073 22.795 150.572 23.4696 150.018 24.1268C149.534 24.7148 149.015 25.3201 148.514 25.9082C149.084 25.9774 149.673 26.0811 150.261 26.2887ZM68.2122 22.4837C68.5581 23.3139 68.9905 24.1268 69.4402 24.8878C69.7169 25.3547 69.9936 25.8217 70.2703 26.2887C70.8584 26.0811 71.4464 25.9601 72.0171 25.9255C71.5156 25.3374 70.9967 24.7321 70.5125 24.1441C69.959 23.4696 69.4575 22.795 68.9905 22.0859C68.5408 21.3595 68.1257 20.5986 67.7279 19.8203C67.3302 19.042 66.9497 18.2464 66.5519 17.4681C66.794 18.3156 67.0534 19.1458 67.3129 19.9932C67.5723 20.8234 67.8663 21.6536 68.2122 22.4837ZM67.9528 27.4993C66.6211 25.5796 65.3412 23.6252 64.2689 21.5671C63.6809 20.4429 63.162 19.2841 62.7469 18.0908C62.3145 16.8974 61.9686 15.6694 61.6919 14.4242C61.8303 15.704 62.0205 16.9666 62.3145 18.2291C62.6086 19.4917 63.0064 20.7196 63.4733 21.9303C63.9403 23.1409 64.4764 24.317 65.0299 25.4758C65.4796 26.3924 65.9465 27.2918 66.4135 28.1911C66.8632 28.0528 67.382 27.8279 67.9528 27.4993ZM154.083 28.1911C154.567 27.2918 155.034 26.3924 155.466 25.4758C156.037 24.317 156.573 23.1409 157.023 21.9303C157.49 20.7196 157.87 19.4744 158.182 18.2291C158.476 16.9666 158.683 15.704 158.804 14.4242C158.528 15.6694 158.182 16.8974 157.749 18.0908C157.317 19.2841 156.798 20.4429 156.227 21.5671C155.155 23.6252 153.875 25.5796 152.544 27.4993C153.149 27.8279 153.65 28.0528 154.083 28.1911Z",fill:"#CC0000"}),se.jsx("path",{d:"M128.469 14.1474H128.244H92.2871H92.1314L91.6298 15.2025H128.745L128.469 14.1474ZM133.38 20.5467V33.0511C133.761 33.1203 134.124 33.2759 134.435 33.5353V20.7542L133.38 20.5467ZM133.761 43.5147L133.484 45.0885C133.45 45.0885 133.415 45.0712 133.38 45.0712V47.2504C133.38 50.1733 132.516 52.8368 130.838 55.137C130.423 55.6905 129.973 56.2266 129.472 56.7455L88.3265 15.5657C88.1362 15.4792 87.9114 15.3927 87.652 15.3408V16.465C88.5167 16.759 88.9318 17.5373 88.8972 18.4021L87.7557 18.3848C87.5136 17.693 86.9083 17.2087 86.0954 17.0184V18.1426C86.4932 18.2983 86.7872 18.6096 86.7872 19.1285C86.7872 19.5781 86.424 19.924 86.0954 19.9932V33.4489C86.5105 33.103 87.012 32.9819 87.5309 32.9819C88.0324 32.9819 88.534 33.1721 89.001 33.4489L87.9287 34.452C88.5686 35.213 87.8941 36.3717 87.2023 36.7522C86.4586 37.15 86.8564 37.8418 87.3925 37.8418C87.5655 37.8418 87.7384 37.7727 87.9114 37.617C88.3611 37.2019 88.9491 36.9944 89.5198 36.9944C90.7305 36.9944 91.9239 37.9283 91.7682 39.8654L90.8343 39.3465C90.523 40.3669 89.7965 40.7993 89.122 40.7993C88.8107 40.7993 88.5167 40.7128 88.2919 40.5399C87.773 40.1594 87.2369 39.7616 86.8737 39.7616C86.7526 39.7616 86.6315 39.8135 86.5624 39.9173C86.2856 40.2978 86.5797 40.6782 87.5655 41.1625C89.2258 41.9927 89.5544 44.3794 87.3752 45.0193L87.012 45.0539L86.7353 43.4801C86.6142 43.5147 86.4932 43.532 86.3721 43.532C86.2683 43.532 86.1646 43.5147 86.0608 43.4974V47.2158C86.0608 50.8997 87.3233 53.9782 89.3815 56.4515C89.3988 56.4687 89.4161 56.486 89.4161 56.5033C89.4852 56.5898 89.5717 56.6763 89.6409 56.7628C89.6582 56.7801 89.6755 56.7974 89.6928 56.8146C89.7793 56.9184 89.8657 57.0049 89.9522 57.1087C89.9522 57.1087 89.9522 57.126 89.9695 57.126C90.056 57.2297 90.1598 57.3162 90.2462 57.42L90.2635 57.4373C90.3846 57.5065 90.4884 57.5929 90.5921 57.6794C90.7997 57.8524 91.0072 58.0599 91.1802 58.302C92.5119 59.4781 94.0685 60.4639 95.7461 61.2941C95.9363 61.3979 96.1266 61.5016 96.3341 61.5881C99.1014 62.9717 103.148 64.4764 110.222 64.4764C117.296 64.4764 121.343 62.9717 124.11 61.5881C124.318 61.4843 124.508 61.3806 124.698 61.2941C126.359 60.4812 127.881 59.4954 129.212 58.3539C129.247 58.302 129.281 58.2501 129.316 58.1983C129.333 58.181 129.351 58.1637 129.368 58.1291C129.385 58.1118 129.403 58.0772 129.437 58.0599C129.454 58.0253 129.489 58.008 129.506 57.9734C129.524 57.9561 129.524 57.9388 129.541 57.9388C129.575 57.9042 129.61 57.8697 129.645 57.8351L129.662 57.8178C129.697 57.7832 129.731 57.7486 129.766 57.714C129.766 57.714 129.766 57.714 129.783 57.6967C129.818 57.6621 129.869 57.6275 129.904 57.5929C129.991 57.5238 130.077 57.4719 130.163 57.42C130.181 57.4027 130.198 57.4027 130.215 57.3854C132.792 54.7565 134.401 51.3494 134.401 47.1812V43.5147C134.297 43.5492 134.193 43.5665 134.072 43.5665C134.003 43.5665 133.882 43.5492 133.761 43.5147Z",fill:"#CC0000"}),se.jsx("path",{d:"M11.9378 1H0V99.487H11.9378V1Z",fill:"#FFCC00"})]}),se.jsx("defs",{children:se.jsx("clipPath",{id:"clip0_908_6292",children:se.jsx("rect",{width:"192",height:"100",fill:"white"})})})]}))});yC.displayName="LogoImage";var bC=["children","className"];function g2(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function m2(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?g2(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):g2(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var xC=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=Te(s,bC);return se.jsx("mark",m2(m2({ref:t,className:Ee("utrecht-mark",o)},u),{},{children:n}))});xC.displayName="Mark";var CC=["children","className"];function p2(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function v2(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?p2(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):p2(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var _C=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=Te(s,CC);return se.jsx("pre",v2(v2({ref:t,className:Ee("utrecht-multiline-data","utrecht-multiline-data--html-pre",o)},u),{},{children:n}))});_C.displayName="MultilineData";var EC=["children","className","value"];function y2(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function b2(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?y2(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):y2(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var wC=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=s.value,d=Te(s,EC);return se.jsx("data",b2(b2({value:typeof u=="string"||typeof u=="number"?String(u):void 0},d),{},{ref:t,className:Ee("utrecht-number-data",o),children:n}))});wC.displayName="NumberData";var SC=["children","className"];function x2(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function C2(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?x2(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):x2(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var _2=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=Te(s,SC);return se.jsx("ol",C2(C2({},u),{},{ref:t,className:Ee("utrecht-ordered-list",o),children:n}))});_2.displayName="OrderedList";var OC=["children","className"];function E2(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function w2(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?E2(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):E2(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var S2=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=Te(s,OC);return se.jsx("li",w2(w2({},u),{},{ref:t,className:Ee("utrecht-ordered-list__item",o),children:n}))});S2.displayName="OrderedListItem";var LC=["children","className"];function O2(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function L2(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?O2(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):O2(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var NC=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=Te(s,LC);return se.jsx("div",L2(L2({},u),{},{ref:t,className:Ee("utrecht-page",o),children:n}))});NC.displayName="Page";var IC=["children","className"],TC=["children","className"];function N2(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function Bc(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?N2(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):N2(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var AC=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=Te(s,IC);return se.jsx("div",Bc(Bc({},u),{},{ref:t,className:Ee("utrecht-page-content",o),children:n}))});AC.displayName="PageContent";var PC=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=Te(s,TC);return se.jsx("main",Bc(Bc({},u),{},{ref:t,className:Ee("utrecht-page-content__main",o),children:n}))});PC.displayName="PageContentMain";var DC=["children","className"];function I2(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function T2(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?I2(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):I2(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var MC=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=Te(s,DC);return se.jsx("footer",T2(T2({},u),{},{ref:t,className:Ee("utrecht-page-footer",o),children:n}))});MC.displayName="PageFooter";var kC=["children","className"];function A2(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function P2(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?A2(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):A2(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var RC=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=Te(s,kC);return se.jsx("header",P2(P2({},u),{},{ref:t,className:Ee("utrecht-page-header",o),children:n}))});RC.displayName="PageHeader";var jC=["children","className","lead","small"];function D2(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function M2(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?D2(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):D2(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var Ln=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=s.lead,d=s.small,h=Te(s,jC);return se.jsx("p",M2(M2({},h),{},{ref:t,className:Ee("utrecht-paragraph",u&&"utrecht-paragraph--lead",d&&"utrecht-paragraph--small",o),children:u?se.jsx("b",{className:"utrecht-paragraph__b",children:n}):d?se.jsx("small",{className:"utrecht-paragraph__small",children:n}):n}))});Ln.displayName="Paragraph";var FC=["loading","className"];function k2(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function BC(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?k2(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):k2(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var qC=E.forwardRef(function(s,t){var n=s.loading,o=s.className,u=Te(s,FC);return se.jsx("span",BC({ref:t,className:Ee("utrecht-data-placeholder",{"utrecht-data-placeholder--loading":n},o)},u))});qC.displayName="DataPlaceholder";var zC=["children","className"];function R2(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function j2(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?R2(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):R2(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var UC=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=Te(s,zC);return se.jsx("p",j2(j2({},u),{},{ref:t,className:Ee("utrecht-pre-heading",o),children:n}))});UC.displayName="PreHeading";var VC=["children","className","dateTime","value"];function F2(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function la(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?F2(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):F2(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var HC=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=s.dateTime,d=s.value,h=Te(s,VC),f=la({children:se.jsx("bdi",{translate:"no",children:n}),className:Ee("utrecht-preserve-data",o)},h);return typeof u<"u"?se.jsx("time",la(la({},f),{},{dateTime:u,ref:t})):typeof d<"u"?se.jsx("data",la(la({},f),{},{value:d,ref:t})):se.jsx("bdi",la(la({translate:"no",ref:t},f),{},{children:n}))});HC.displayName="PreserveData";var GC=["disabled","required","className","invalid"];function B2(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function WC(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?B2(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):B2(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var q2=E.forwardRef(function(s,t){var n=s.disabled,o=s.required,u=s.className,d=s.invalid,h=Te(s,GC);return se.jsx("input",WC({type:"radio","aria-invalid":d||void 0,disabled:n,required:o,ref:t,className:Ee("utrecht-radio-button","utrecht-radio-button--html-input",n&&"utrecht-radio-button--disabled",d&&"utrecht-radio-button--invalid",u)},h))});q2.displayName="RadioButton";var ZC=["className","children"];function z2(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function U2(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?z2(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):z2(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var XC=E.forwardRef(function(s,t){var n=s.className,o=s.children,u=Te(s,ZC);return se.jsx("div",U2(U2({},u),{},{ref:t,className:Ee("utrecht-rich-text",n),children:o}))});XC.displayName="RichText";var YC=["busy","invalid","required","className","noscript","children"],KC=["disabled","invalid","value","children","className"];function V2(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function qc(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?V2(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):V2(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var H2=E.forwardRef(function(s,t){var n=s.busy,o=s.invalid,u=s.required,d=s.className,h=s.noscript,f=s.children,v=Te(s,YC);return se.jsx("select",qc(qc({"aria-busy":n||void 0,"aria-invalid":o||void 0,required:h?u:!1,"aria-required":h?void 0:u||void 0,className:Ee("utrecht-select","utrecht-select--html-select",n&&"utrecht-select--busy",o&&"utrecht-select--invalid",u&&"utrecht-select--required",d),ref:t},v),{},{children:f}))});H2.displayName="Select";var Mh=E.forwardRef(function(s,t){var n=s.disabled,o=s.invalid,u=s.value,d=s.children,h=s.className,f=Te(s,KC);return se.jsx("option",qc(qc({},f),{},{ref:t,disabled:n,value:u,className:Ee("utrecht-select__option",n&&"utrecht-select__option--disabled",o&&"utrecht-select__option--invalid",h),children:d}))});Mh.displayName="SelectOption";var JC=["className","children"];function G2(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function W2(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?G2(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):G2(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var QC=E.forwardRef(function(s,t){var n=s.className;s.children;var o=Te(s,JC);return se.jsx("hr",W2(W2({},o),{},{ref:t,className:Ee("utrecht-separator",n)}))});QC.displayName="Separator";var $C=["children","className"];function Z2(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function X2(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Z2(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):Z2(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var e_=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=Te(s,$C);return se.jsx("p",{children:se.jsx("a",X2(X2({ref:t},u),{},{className:Ee("utrecht-skip-link","utrecht-skip-link--visible-on-focus",o),children:n}))})});e_.displayName="SkipLink";var t_=["aside","children","className","type"];function Y2(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function ru(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Y2(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):Y2(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var n_=E.forwardRef(function(s,t){var n=s.aside,o=s.children,u=s.className,d=s.type,h=Te(s,t_),f=ru(ru({},h),{},{ref:t,className:Ee("utrecht-spotlight-section",{"utrecht-spotlight-section--info":d==="info","utrecht-spotlight-section--warning":d==="warning"},u)});return n?se.jsx("aside",ru(ru({},f),{},{children:o})):se.jsx("section",ru(ru({},f),{},{children:o}))});n_.displayName="SpotlightSection";var r_=["className","status"];function K2(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function J2(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?K2(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):K2(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var i_=E.forwardRef(function(s,t){var n=s.className,o=s.status,u=Te(s,r_);return se.jsx("span",J2(J2({className:Ee("utrecht-badge-status","utrecht-badge-status--".concat(o||"neutral"),n)},u),{},{ref:t}))});i_.displayName="StatusBadge";var s_=["children","className"];function Q2(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function $2(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Q2(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):Q2(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var e3=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=Te(s,s_);return se.jsx("strong",$2($2({ref:t,className:Ee("utrecht-emphasis","utrecht-emphasis--strong",o)},u),{},{children:n}))});e3.displayName="Strong";var o_=["children","className"];function t3(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function n3(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?t3(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):t3(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var a_=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=Te(s,o_);return se.jsx("div",n3(n3({},u),{},{ref:t,className:Ee("utrecht-surface",o),children:n}))});a_.displayName="Surface";var u_=["overflowInline","children","className"];function r3(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function i3(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?r3(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):r3(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var l_=E.forwardRef(function(s,t){var n=s.overflowInline,o=s.children,u=s.className,d=Te(s,u_);return se.jsx("div",i3(i3({ref:t,className:Ee("utrecht-table-container",{"utrecht-table-container--overflow-inline":n},u)},d),{},{children:o}))});l_.displayName="TableContainer";var c_=["busy","children","className"];function s3(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function o3(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?s3(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):s3(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var d_=E.forwardRef(function(s,t){var n=s.busy,o=s.children,u=s.className,d=Te(s,c_);return se.jsx("table",o3(o3({"aria-busy":n},d),{},{ref:t,className:Ee("utrecht-table",{"utrecht-table--busy":n},u),children:o}))});d_.displayName="Table";var h_=["children","className"];function a3(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function u3(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?a3(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):a3(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var f_=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=Te(s,h_);return se.jsx("tbody",u3(u3({},u),{},{ref:t,className:Ee("utrecht-table__body",o),children:n}))});f_.displayName="TableBody";var g_=["children","className"];function l3(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function c3(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?l3(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):l3(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var m_=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=Te(s,g_);return se.jsx("caption",c3(c3({},u),{},{ref:t,className:Ee("utrecht-table__caption",o),children:n}))});m_.displayName="TableCaption";var p_=["children","className","numericColumn","selected"];function d3(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function h3(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?d3(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):d3(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var v_=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=s.numericColumn,d=s.selected,h=Te(s,p_);return se.jsx("td",h3(h3({"aria-selected":d?!0:void 0},h),{},{ref:t,className:Ee("utrecht-table__cell",{"utrecht-table__cell--selected":d,"utrecht-table__cell--numeric-column":u},o),children:n}))});v_.displayName="TableCell";var y_=["children","className","sticky"];function f3(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function g3(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?f3(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):f3(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var b_=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=s.sticky,d=Te(s,y_);return se.jsx("tfoot",g3(g3({},d),{},{ref:t,className:Ee("utrecht-table__footer",{"utrecht-table__footer--sticky":u},o),children:n}))});b_.displayName="TableFooter";var x_=["children","className","sticky"];function m3(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function p3(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?m3(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):m3(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var C_=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=s.sticky,d=Te(s,x_);return se.jsx("thead",p3(p3({},d),{},{ref:t,className:Ee("utrecht-table__header",{"utrecht-table__header--sticky":u},o),children:n}))});C_.displayName="TableHeader";var __=["children","className","numericColumn","selected","sticky","scope"];function v3(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function y3(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?v3(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):v3(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var E_=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=s.numericColumn,d=s.selected,h=s.sticky,f=s.scope,v=Te(s,__);return se.jsx("th",y3(y3({"aria-selected":d?!0:void 0,scope:f},v),{},{ref:t,className:Ee("utrecht-table__header-cell",{"utrecht-table__header-cell--numeric-column":u,"utrecht-table__header-cell--selected":d,"utrecht-table__header-cell--sticky-inline":h&&f==="row","utrecht-table__header-cell--sticky-block":h&&f==="col"},o),children:n}))});E_.displayName="TableHeaderCell";var w_=["children","className","selected"];function b3(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function x3(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?b3(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):b3(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var S_=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=s.selected,d=Te(s,w_);return se.jsx("tr",x3(x3({"aria-selected":u?!0:void 0},d),{},{ref:t,className:Ee("utrecht-table__row",{"utrecht-table__row--selected":u},o),children:n}))});S_.displayName="TableRow";var O_=["dir","disabled","invalid","readOnly","required","className"];function C3(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function _3(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?C3(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):C3(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var E3=E.forwardRef(function(s,t){var n=s.dir,o=s.disabled,u=s.invalid,d=s.readOnly,h=s.required,f=s.className,v=Te(s,O_);return se.jsx("textarea",_3(_3({},v),{},{ref:t,className:Ee("utrecht-textarea","utrecht-textarea--html-textarea",o&&"utrecht-textarea--disabled",u&&"utrecht-textarea--invalid",d&&"utrecht-textarea--readonly",h&&"utrecht-textarea--required",f),dir:n??"auto",disabled:o,readOnly:d,required:h,"aria-invalid":u||void 0}))});E3.displayName="Textarea";var L_=["children","className"];function w3(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function S3(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?w3(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):w3(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var N_=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=Te(s,L_);return se.jsx("bdi",S3(S3({translate:"no"},u),{},{ref:t,className:Ee("utrecht-url-data",o),children:n}))});N_.displayName="URLData";var I_=["children","className"];function O3(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function L3(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?O3(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):O3(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var N3=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=Te(s,I_);return se.jsx("ul",L3(L3({role:"list"},u),{},{ref:t,className:Ee("utrecht-unordered-list",o),children:n}))});N3.displayName="UnorderedList";var T_=["children","className"];function I3(s,t){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);t&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(s,u).enumerable})),n.push.apply(n,o)}return n}function T3(s){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?I3(Object(n),!0).forEach(function(o){ke(s,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):I3(Object(n)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(n,o))})}return s}var A3=E.forwardRef(function(s,t){var n=s.children,o=s.className,u=Te(s,T_);return se.jsx("li",T3(T3({},u),{},{ref:t,className:Ee("utrecht-unordered-list__item",o),children:n}))});A3.displayName="UnorderedListItem";var pl={exports:{}};/* @preserve
 * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
 * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
 */var A_=pl.exports,P3;function D3(){return P3||(P3=1,(function(s,t){(function(n,o){o(t)})(A_,(function(n){var o="1.9.4";function u(l){var m,C,P,z;for(C=1,P=arguments.length;C<P;C++){z=arguments[C];for(m in z)l[m]=z[m]}return l}var d=Object.create||(function(){function l(){}return function(m){return l.prototype=m,new l}})();function h(l,m){var C=Array.prototype.slice;if(l.bind)return l.bind.apply(l,C.call(arguments,1));var P=C.call(arguments,2);return function(){return l.apply(m,P.length?P.concat(C.call(arguments)):arguments)}}var f=0;function v(l){return"_leaflet_id"in l||(l._leaflet_id=++f),l._leaflet_id}function p(l,m,C){var P,z,W,oe;return oe=function(){P=!1,z&&(W.apply(C,z),z=!1)},W=function(){P?z=arguments:(l.apply(C,arguments),setTimeout(oe,m),P=!0)},W}function y(l,m,C){var P=m[1],z=m[0],W=P-z;return l===P&&C?l:((l-z)%W+W)%W+z}function x(){return!1}function _(l,m){if(m===!1)return l;var C=Math.pow(10,m===void 0?6:m);return Math.round(l*C)/C}function S(l){return l.trim?l.trim():l.replace(/^\s+|\s+$/g,"")}function N(l){return S(l).split(/\s+/)}function w(l,m){Object.prototype.hasOwnProperty.call(l,"options")||(l.options=l.options?d(l.options):{});for(var C in m)l.options[C]=m[C];return l.options}function j(l,m,C){var P=[];for(var z in l)P.push(encodeURIComponent(C?z.toUpperCase():z)+"="+encodeURIComponent(l[z]));return(!m||m.indexOf("?")===-1?"?":"&")+P.join("&")}var U=/\{ *([\w_ -]+) *\}/g;function M(l,m){return l.replace(U,function(C,P){var z=m[P];if(z===void 0)throw new Error("No value provided for variable "+C);return typeof z=="function"&&(z=z(m)),z})}var D=Array.isArray||function(l){return Object.prototype.toString.call(l)==="[object Array]"};function T(l,m){for(var C=0;C<l.length;C++)if(l[C]===m)return C;return-1}var O="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function q(l){return window["webkit"+l]||window["moz"+l]||window["ms"+l]}var k=0;function H(l){var m=+new Date,C=Math.max(0,16-(m-k));return k=m+C,window.setTimeout(l,C)}var V=window.requestAnimationFrame||q("RequestAnimationFrame")||H,Y=window.cancelAnimationFrame||q("CancelAnimationFrame")||q("CancelRequestAnimationFrame")||function(l){window.clearTimeout(l)};function R(l,m,C){if(C&&V===H)l.call(m);else return V.call(window,h(l,m))}function A(l){l&&Y.call(window,l)}var X={__proto__:null,extend:u,create:d,bind:h,get lastId(){return f},stamp:v,throttle:p,wrapNum:y,falseFn:x,formatNum:_,trim:S,splitWords:N,setOptions:w,getParamString:j,template:M,isArray:D,indexOf:T,emptyImageUrl:O,requestFn:V,cancelFn:Y,requestAnimFrame:R,cancelAnimFrame:A};function ee(){}ee.extend=function(l){var m=function(){w(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},C=m.__super__=this.prototype,P=d(C);P.constructor=m,m.prototype=P;for(var z in this)Object.prototype.hasOwnProperty.call(this,z)&&z!=="prototype"&&z!=="__super__"&&(m[z]=this[z]);return l.statics&&u(m,l.statics),l.includes&&(ue(l.includes),u.apply(null,[P].concat(l.includes))),u(P,l),delete P.statics,delete P.includes,P.options&&(P.options=C.options?d(C.options):{},u(P.options,l.options)),P._initHooks=[],P.callInitHooks=function(){if(!this._initHooksCalled){C.callInitHooks&&C.callInitHooks.call(this),this._initHooksCalled=!0;for(var W=0,oe=P._initHooks.length;W<oe;W++)P._initHooks[W].call(this)}},m},ee.include=function(l){var m=this.prototype.options;return u(this.prototype,l),l.options&&(this.prototype.options=m,this.mergeOptions(l.options)),this},ee.mergeOptions=function(l){return u(this.prototype.options,l),this},ee.addInitHook=function(l){var m=Array.prototype.slice.call(arguments,1),C=typeof l=="function"?l:function(){this[l].apply(this,m)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(C),this};function ue(l){if(!(typeof L>"u"||!L||!L.Mixin)){l=D(l)?l:[l];for(var m=0;m<l.length;m++)l[m]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var G={on:function(l,m,C){if(typeof l=="object")for(var P in l)this._on(P,l[P],m);else{l=N(l);for(var z=0,W=l.length;z<W;z++)this._on(l[z],m,C)}return this},off:function(l,m,C){if(!arguments.length)delete this._events;else if(typeof l=="object")for(var P in l)this._off(P,l[P],m);else{l=N(l);for(var z=arguments.length===1,W=0,oe=l.length;W<oe;W++)z?this._off(l[W]):this._off(l[W],m,C)}return this},_on:function(l,m,C,P){if(typeof m!="function"){console.warn("wrong listener type: "+typeof m);return}if(this._listens(l,m,C)===!1){C===this&&(C=void 0);var z={fn:m,ctx:C};P&&(z.once=!0),this._events=this._events||{},this._events[l]=this._events[l]||[],this._events[l].push(z)}},_off:function(l,m,C){var P,z,W;if(this._events&&(P=this._events[l],!!P)){if(arguments.length===1){if(this._firingCount)for(z=0,W=P.length;z<W;z++)P[z].fn=x;delete this._events[l];return}if(typeof m!="function"){console.warn("wrong listener type: "+typeof m);return}var oe=this._listens(l,m,C);if(oe!==!1){var fe=P[oe];this._firingCount&&(fe.fn=x,this._events[l]=P=P.slice()),P.splice(oe,1)}}},fire:function(l,m,C){if(!this.listens(l,C))return this;var P=u({},m,{type:l,target:this,sourceTarget:m&&m.sourceTarget||this});if(this._events){var z=this._events[l];if(z){this._firingCount=this._firingCount+1||1;for(var W=0,oe=z.length;W<oe;W++){var fe=z[W],pe=fe.fn;fe.once&&this.off(l,pe,fe.ctx),pe.call(fe.ctx||this,P)}this._firingCount--}}return C&&this._propagateEvent(P),this},listens:function(l,m,C,P){typeof l!="string"&&console.warn('"string" type argument expected');var z=m;typeof m!="function"&&(P=!!m,z=void 0,C=void 0);var W=this._events&&this._events[l];if(W&&W.length&&this._listens(l,z,C)!==!1)return!0;if(P){for(var oe in this._eventParents)if(this._eventParents[oe].listens(l,m,C,P))return!0}return!1},_listens:function(l,m,C){if(!this._events)return!1;var P=this._events[l]||[];if(!m)return!!P.length;C===this&&(C=void 0);for(var z=0,W=P.length;z<W;z++)if(P[z].fn===m&&P[z].ctx===C)return z;return!1},once:function(l,m,C){if(typeof l=="object")for(var P in l)this._on(P,l[P],m,!0);else{l=N(l);for(var z=0,W=l.length;z<W;z++)this._on(l[z],m,C,!0)}return this},addEventParent:function(l){return this._eventParents=this._eventParents||{},this._eventParents[v(l)]=l,this},removeEventParent:function(l){return this._eventParents&&delete this._eventParents[v(l)],this},_propagateEvent:function(l){for(var m in this._eventParents)this._eventParents[m].fire(l.type,u({layer:l.target,propagatedFrom:l.target},l),!0)}};G.addEventListener=G.on,G.removeEventListener=G.clearAllEventListeners=G.off,G.addOneTimeEventListener=G.once,G.fireEvent=G.fire,G.hasEventListeners=G.listens;var K=ee.extend(G);function B(l,m,C){this.x=C?Math.round(l):l,this.y=C?Math.round(m):m}var te=Math.trunc||function(l){return l>0?Math.floor(l):Math.ceil(l)};B.prototype={clone:function(){return new B(this.x,this.y)},add:function(l){return this.clone()._add(Q(l))},_add:function(l){return this.x+=l.x,this.y+=l.y,this},subtract:function(l){return this.clone()._subtract(Q(l))},_subtract:function(l){return this.x-=l.x,this.y-=l.y,this},divideBy:function(l){return this.clone()._divideBy(l)},_divideBy:function(l){return this.x/=l,this.y/=l,this},multiplyBy:function(l){return this.clone()._multiplyBy(l)},_multiplyBy:function(l){return this.x*=l,this.y*=l,this},scaleBy:function(l){return new B(this.x*l.x,this.y*l.y)},unscaleBy:function(l){return new B(this.x/l.x,this.y/l.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=te(this.x),this.y=te(this.y),this},distanceTo:function(l){l=Q(l);var m=l.x-this.x,C=l.y-this.y;return Math.sqrt(m*m+C*C)},equals:function(l){return l=Q(l),l.x===this.x&&l.y===this.y},contains:function(l){return l=Q(l),Math.abs(l.x)<=Math.abs(this.x)&&Math.abs(l.y)<=Math.abs(this.y)},toString:function(){return"Point("+_(this.x)+", "+_(this.y)+")"}};function Q(l,m,C){return l instanceof B?l:D(l)?new B(l[0],l[1]):l==null?l:typeof l=="object"&&"x"in l&&"y"in l?new B(l.x,l.y):new B(l,m,C)}function $(l,m){if(l)for(var C=m?[l,m]:l,P=0,z=C.length;P<z;P++)this.extend(C[P])}$.prototype={extend:function(l){var m,C;if(!l)return this;if(l instanceof B||typeof l[0]=="number"||"x"in l)m=C=Q(l);else if(l=re(l),m=l.min,C=l.max,!m||!C)return this;return!this.min&&!this.max?(this.min=m.clone(),this.max=C.clone()):(this.min.x=Math.min(m.x,this.min.x),this.max.x=Math.max(C.x,this.max.x),this.min.y=Math.min(m.y,this.min.y),this.max.y=Math.max(C.y,this.max.y)),this},getCenter:function(l){return Q((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,l)},getBottomLeft:function(){return Q(this.min.x,this.max.y)},getTopRight:function(){return Q(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(l){var m,C;return typeof l[0]=="number"||l instanceof B?l=Q(l):l=re(l),l instanceof $?(m=l.min,C=l.max):m=C=l,m.x>=this.min.x&&C.x<=this.max.x&&m.y>=this.min.y&&C.y<=this.max.y},intersects:function(l){l=re(l);var m=this.min,C=this.max,P=l.min,z=l.max,W=z.x>=m.x&&P.x<=C.x,oe=z.y>=m.y&&P.y<=C.y;return W&&oe},overlaps:function(l){l=re(l);var m=this.min,C=this.max,P=l.min,z=l.max,W=z.x>m.x&&P.x<C.x,oe=z.y>m.y&&P.y<C.y;return W&&oe},isValid:function(){return!!(this.min&&this.max)},pad:function(l){var m=this.min,C=this.max,P=Math.abs(m.x-C.x)*l,z=Math.abs(m.y-C.y)*l;return re(Q(m.x-P,m.y-z),Q(C.x+P,C.y+z))},equals:function(l){return l?(l=re(l),this.min.equals(l.getTopLeft())&&this.max.equals(l.getBottomRight())):!1}};function re(l,m){return!l||l instanceof $?l:new $(l,m)}function le(l,m){if(l)for(var C=m?[l,m]:l,P=0,z=C.length;P<z;P++)this.extend(C[P])}le.prototype={extend:function(l){var m=this._southWest,C=this._northEast,P,z;if(l instanceof ae)P=l,z=l;else if(l instanceof le){if(P=l._southWest,z=l._northEast,!P||!z)return this}else return l?this.extend(Ce(l)||be(l)):this;return!m&&!C?(this._southWest=new ae(P.lat,P.lng),this._northEast=new ae(z.lat,z.lng)):(m.lat=Math.min(P.lat,m.lat),m.lng=Math.min(P.lng,m.lng),C.lat=Math.max(z.lat,C.lat),C.lng=Math.max(z.lng,C.lng)),this},pad:function(l){var m=this._southWest,C=this._northEast,P=Math.abs(m.lat-C.lat)*l,z=Math.abs(m.lng-C.lng)*l;return new le(new ae(m.lat-P,m.lng-z),new ae(C.lat+P,C.lng+z))},getCenter:function(){return new ae((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new ae(this.getNorth(),this.getWest())},getSouthEast:function(){return new ae(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(l){typeof l[0]=="number"||l instanceof ae||"lat"in l?l=Ce(l):l=be(l);var m=this._southWest,C=this._northEast,P,z;return l instanceof le?(P=l.getSouthWest(),z=l.getNorthEast()):P=z=l,P.lat>=m.lat&&z.lat<=C.lat&&P.lng>=m.lng&&z.lng<=C.lng},intersects:function(l){l=be(l);var m=this._southWest,C=this._northEast,P=l.getSouthWest(),z=l.getNorthEast(),W=z.lat>=m.lat&&P.lat<=C.lat,oe=z.lng>=m.lng&&P.lng<=C.lng;return W&&oe},overlaps:function(l){l=be(l);var m=this._southWest,C=this._northEast,P=l.getSouthWest(),z=l.getNorthEast(),W=z.lat>m.lat&&P.lat<C.lat,oe=z.lng>m.lng&&P.lng<C.lng;return W&&oe},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(l,m){return l?(l=be(l),this._southWest.equals(l.getSouthWest(),m)&&this._northEast.equals(l.getNorthEast(),m)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function be(l,m){return l instanceof le?l:new le(l,m)}function ae(l,m,C){if(isNaN(l)||isNaN(m))throw new Error("Invalid LatLng object: ("+l+", "+m+")");this.lat=+l,this.lng=+m,C!==void 0&&(this.alt=+C)}ae.prototype={equals:function(l,m){if(!l)return!1;l=Ce(l);var C=Math.max(Math.abs(this.lat-l.lat),Math.abs(this.lng-l.lng));return C<=(m===void 0?1e-9:m)},toString:function(l){return"LatLng("+_(this.lat,l)+", "+_(this.lng,l)+")"},distanceTo:function(l){return Me.distance(this,Ce(l))},wrap:function(){return Me.wrapLatLng(this)},toBounds:function(l){var m=180*l/40075017,C=m/Math.cos(Math.PI/180*this.lat);return be([this.lat-m,this.lng-C],[this.lat+m,this.lng+C])},clone:function(){return new ae(this.lat,this.lng,this.alt)}};function Ce(l,m,C){return l instanceof ae?l:D(l)&&typeof l[0]!="object"?l.length===3?new ae(l[0],l[1],l[2]):l.length===2?new ae(l[0],l[1]):null:l==null?l:typeof l=="object"&&"lat"in l?new ae(l.lat,"lng"in l?l.lng:l.lon,l.alt):m===void 0?null:new ae(l,m,C)}var we={latLngToPoint:function(l,m){var C=this.projection.project(l),P=this.scale(m);return this.transformation._transform(C,P)},pointToLatLng:function(l,m){var C=this.scale(m),P=this.transformation.untransform(l,C);return this.projection.unproject(P)},project:function(l){return this.projection.project(l)},unproject:function(l){return this.projection.unproject(l)},scale:function(l){return 256*Math.pow(2,l)},zoom:function(l){return Math.log(l/256)/Math.LN2},getProjectedBounds:function(l){if(this.infinite)return null;var m=this.projection.bounds,C=this.scale(l),P=this.transformation.transform(m.min,C),z=this.transformation.transform(m.max,C);return new $(P,z)},infinite:!1,wrapLatLng:function(l){var m=this.wrapLng?y(l.lng,this.wrapLng,!0):l.lng,C=this.wrapLat?y(l.lat,this.wrapLat,!0):l.lat,P=l.alt;return new ae(C,m,P)},wrapLatLngBounds:function(l){var m=l.getCenter(),C=this.wrapLatLng(m),P=m.lat-C.lat,z=m.lng-C.lng;if(P===0&&z===0)return l;var W=l.getSouthWest(),oe=l.getNorthEast(),fe=new ae(W.lat-P,W.lng-z),pe=new ae(oe.lat-P,oe.lng-z);return new le(fe,pe)}},Me=u({},we,{wrapLng:[-180,180],R:6371e3,distance:function(l,m){var C=Math.PI/180,P=l.lat*C,z=m.lat*C,W=Math.sin((m.lat-l.lat)*C/2),oe=Math.sin((m.lng-l.lng)*C/2),fe=W*W+Math.cos(P)*Math.cos(z)*oe*oe,pe=2*Math.atan2(Math.sqrt(fe),Math.sqrt(1-fe));return this.R*pe}}),Je=6378137,rt={R:Je,MAX_LATITUDE:85.0511287798,project:function(l){var m=Math.PI/180,C=this.MAX_LATITUDE,P=Math.max(Math.min(C,l.lat),-C),z=Math.sin(P*m);return new B(this.R*l.lng*m,this.R*Math.log((1+z)/(1-z))/2)},unproject:function(l){var m=180/Math.PI;return new ae((2*Math.atan(Math.exp(l.y/this.R))-Math.PI/2)*m,l.x*m/this.R)},bounds:(function(){var l=Je*Math.PI;return new $([-l,-l],[l,l])})()};function et(l,m,C,P){if(D(l)){this._a=l[0],this._b=l[1],this._c=l[2],this._d=l[3];return}this._a=l,this._b=m,this._c=C,this._d=P}et.prototype={transform:function(l,m){return this._transform(l.clone(),m)},_transform:function(l,m){return m=m||1,l.x=m*(this._a*l.x+this._b),l.y=m*(this._c*l.y+this._d),l},untransform:function(l,m){return m=m||1,new B((l.x/m-this._b)/this._a,(l.y/m-this._d)/this._c)}};function Le(l,m,C,P){return new et(l,m,C,P)}var mt=u({},Me,{code:"EPSG:3857",projection:rt,transformation:(function(){var l=.5/(Math.PI*rt.R);return Le(l,.5,-l,.5)})()}),lt=u({},mt,{code:"EPSG:900913"});function De(l){return document.createElementNS("http://www.w3.org/2000/svg",l)}function ct(l,m){var C="",P,z,W,oe,fe,pe;for(P=0,W=l.length;P<W;P++){for(fe=l[P],z=0,oe=fe.length;z<oe;z++)pe=fe[z],C+=(z?"L":"M")+pe.x+" "+pe.y;C+=m?We.svg?"z":"x":""}return C||"M0 0"}var vt=document.documentElement.style,Ye="ActiveXObject"in window,Tt=Ye&&!document.addEventListener,Ve="msLaunchUri"in navigator&&!("documentMode"in document),ye=bn("webkit"),Qe=bn("android"),at=bn("android 2")||bn("android 3"),ve=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),Xe=Qe&&bn("Google")&&ve<537&&!("AudioNode"in window),Be=!!window.opera,ut=!Ve&&bn("chrome"),st=bn("gecko")&&!ye&&!Be&&!Ye,he=!ut&&bn("safari"),ht=bn("phantom"),kt="OTransition"in vt,Re=navigator.platform.indexOf("Win")===0,Lt=Ye&&"transition"in vt,At="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!at,Wn="MozPerspective"in vt,Ht=!window.L_DISABLE_3D&&(Lt||At||Wn)&&!kt&&!ht,Nn=typeof orientation<"u"||bn("mobile"),Gt=Nn&&ye,hn=Nn&&At,vn=!window.PointerEvent&&window.MSPointerEvent,nr=!!(window.PointerEvent||vn),Ae="ontouchstart"in window||!!window.TouchEvent,He=!window.L_NO_TOUCH&&(Ae||nr),Se=Nn&&Be,fn=Nn&&st,Ge=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Nt=(function(){var l=!1;try{var m=Object.defineProperty({},"passive",{get:function(){l=!0}});window.addEventListener("testPassiveEventSupport",x,m),window.removeEventListener("testPassiveEventSupport",x,m)}catch{}return l})(),_t=(function(){return!!document.createElement("canvas").getContext})(),$t=!!(document.createElementNS&&De("svg").createSVGRect),It=!!$t&&(function(){var l=document.createElement("div");return l.innerHTML="<svg/>",(l.firstChild&&l.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"})(),nn=!$t&&(function(){try{var l=document.createElement("div");l.innerHTML='<v:shape adj="1"/>';var m=l.firstChild;return m.style.behavior="url(#default#VML)",m&&typeof m.adj=="object"}catch{return!1}})(),dn=navigator.platform.indexOf("Mac")===0,gn=navigator.platform.indexOf("Linux")===0;function bn(l){return navigator.userAgent.toLowerCase().indexOf(l)>=0}var We={ie:Ye,ielt9:Tt,edge:Ve,webkit:ye,android:Qe,android23:at,androidStock:Xe,opera:Be,chrome:ut,gecko:st,safari:he,phantom:ht,opera12:kt,win:Re,ie3d:Lt,webkit3d:At,gecko3d:Wn,any3d:Ht,mobile:Nn,mobileWebkit:Gt,mobileWebkit3d:hn,msPointer:vn,pointer:nr,touch:He,touchNative:Ae,mobileOpera:Se,mobileGecko:fn,retina:Ge,passiveEvents:Nt,canvas:_t,svg:$t,vml:nn,inlineSvg:It,mac:dn,linux:gn},xn=We.msPointer?"MSPointerDown":"pointerdown",rn=We.msPointer?"MSPointerMove":"pointermove",dr=We.msPointer?"MSPointerUp":"pointerup",Or=We.msPointer?"MSPointerCancel":"pointercancel",un={touchstart:xn,touchmove:rn,touchend:dr,touchcancel:Or},Rr={touchstart:bt,touchmove:Rt,touchend:Rt,touchcancel:Rt},ui={},Hi=!1;function ni(l,m,C){return m==="touchstart"&&Dt(),Rr[m]?(C=Rr[m].bind(this,C),l.addEventListener(un[m],C,!1),C):(console.warn("wrong event specified:",m),x)}function as(l,m,C){if(!un[m]){console.warn("wrong event specified:",m);return}l.removeEventListener(un[m],C,!1)}function ie(l){ui[l.pointerId]=l}function ze(l){ui[l.pointerId]&&(ui[l.pointerId]=l)}function qe(l){delete ui[l.pointerId]}function Dt(){Hi||(document.addEventListener(xn,ie,!0),document.addEventListener(rn,ze,!0),document.addEventListener(dr,qe,!0),document.addEventListener(Or,qe,!0),Hi=!0)}function Rt(l,m){if(m.pointerType!==(m.MSPOINTER_TYPE_MOUSE||"mouse")){m.touches=[];for(var C in ui)m.touches.push(ui[C]);m.changedTouches=[m],l(m)}}function bt(l,m){m.MSPOINTER_TYPE_TOUCH&&m.pointerType===m.MSPOINTER_TYPE_TOUCH&&rr(m),Rt(l,m)}function wn(l){var m={},C,P;for(P in l)C=l[P],m[P]=C&&C.bind?C.bind(l):C;return l=m,m.type="dblclick",m.detail=2,m.isTrusted=!1,m._simulated=!0,m}var In=200;function Mt(l,m){l.addEventListener("dblclick",m);var C=0,P;function z(W){if(W.detail!==1){P=W.detail;return}if(!(W.pointerType==="mouse"||W.sourceCapabilities&&!W.sourceCapabilities.firesTouchEvents)){var oe=qu(W);if(!(oe.some(function(pe){return pe instanceof HTMLLabelElement&&pe.attributes.for})&&!oe.some(function(pe){return pe instanceof HTMLInputElement||pe instanceof HTMLSelectElement}))){var fe=Date.now();fe-C<=In?(P++,P===2&&m(wn(W))):P=1,C=fe}}}return l.addEventListener("click",z),{dblclick:m,simDblclick:z}}function Ct(l,m){l.removeEventListener("dblclick",m.dblclick),l.removeEventListener("click",m.simDblclick)}var Wt=Bn(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),dt=Bn(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),je=dt==="webkitTransition"||dt==="OTransition"?dt+"End":"transitionend";function ot(l){return typeof l=="string"?document.getElementById(l):l}function tt(l,m){var C=l.style[m]||l.currentStyle&&l.currentStyle[m];if((!C||C==="auto")&&document.defaultView){var P=document.defaultView.getComputedStyle(l,null);C=P?P[m]:null}return C==="auto"?null:C}function Fe(l,m,C){var P=document.createElement(l);return P.className=m||"",C&&C.appendChild(P),P}function Et(l){var m=l.parentNode;m&&m.removeChild(l)}function pt(l){for(;l.firstChild;)l.removeChild(l.firstChild)}function xe(l){var m=l.parentNode;m&&m.lastChild!==l&&m.appendChild(l)}function nt(l){var m=l.parentNode;m&&m.firstChild!==l&&m.insertBefore(l,m.firstChild)}function xt(l,m){if(l.classList!==void 0)return l.classList.contains(m);var C=li(l);return C.length>0&&new RegExp("(^|\\s)"+m+"(\\s|$)").test(C)}function it(l,m){if(l.classList!==void 0)for(var C=N(m),P=0,z=C.length;P<z;P++)l.classList.add(C[P]);else if(!xt(l,m)){var W=li(l);kn(l,(W?W+" ":"")+m)}}function mn(l,m){l.classList!==void 0?l.classList.remove(m):kn(l,S((" "+li(l)+" ").replace(" "+m+" "," ")))}function kn(l,m){l.className.baseVal===void 0?l.className=m:l.className.baseVal=m}function li(l){return l.correspondingElement&&(l=l.correspondingElement),l.className.baseVal===void 0?l.className:l.className.baseVal}function Rn(l,m){"opacity"in l.style?l.style.opacity=m:"filter"in l.style&&Ps(l,m)}function Ps(l,m){var C=!1,P="DXImageTransform.Microsoft.Alpha";try{C=l.filters.item(P)}catch{if(m===1)return}m=Math.round(m*100),C?(C.Enabled=m!==100,C.Opacity=m):l.style.filter+=" progid:"+P+"(opacity="+m+")"}function Bn(l){for(var m=document.documentElement.style,C=0;C<l.length;C++)if(l[C]in m)return l[C];return!1}function vr(l,m,C){var P=m||new B(0,0);l.style[Wt]=(We.ie3d?"translate("+P.x+"px,"+P.y+"px)":"translate3d("+P.x+"px,"+P.y+"px,0)")+(C?" scale("+C+")":"")}function Bt(l,m){l._leaflet_pos=m,We.any3d?vr(l,m):(l.style.left=m.x+"px",l.style.top=m.y+"px")}function Pe(l){return l._leaflet_pos||new B(0,0)}var J,ge,Ne;if("onselectstart"in document)J=function(){Pt(window,"selectstart",rr)},ge=function(){jt(window,"selectstart",rr)};else{var Ke=Bn(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);J=function(){if(Ke){var l=document.documentElement.style;Ne=l[Ke],l[Ke]="none"}},ge=function(){Ke&&(document.documentElement.style[Ke]=Ne,Ne=void 0)}}function ft(){Pt(window,"dragstart",rr)}function yt(){jt(window,"dragstart",rr)}var ln,Pn;function yr(l){for(;l.tabIndex===-1;)l=l.parentNode;l.style&&(qn(),ln=l,Pn=l.style.outlineStyle,l.style.outlineStyle="none",Pt(window,"keydown",qn))}function qn(){ln&&(ln.style.outlineStyle=Pn,ln=void 0,Pn=void 0,jt(window,"keydown",qn))}function jn(l){do l=l.parentNode;while((!l.offsetWidth||!l.offsetHeight)&&l!==document.body);return l}function Zn(l){var m=l.getBoundingClientRect();return{x:m.width/l.offsetWidth||1,y:m.height/l.offsetHeight||1,boundingClientRect:m}}var Ds={__proto__:null,TRANSFORM:Wt,TRANSITION:dt,TRANSITION_END:je,get:ot,getStyle:tt,create:Fe,remove:Et,empty:pt,toFront:xe,toBack:nt,hasClass:xt,addClass:it,removeClass:mn,setClass:kn,getClass:li,setOpacity:Rn,testProp:Bn,setTransform:vr,setPosition:Bt,getPosition:Pe,get disableTextSelection(){return J},get enableTextSelection(){return ge},disableImageDrag:ft,enableImageDrag:yt,preventOutline:yr,restoreOutline:qn,getSizedParentNode:jn,getScale:Zn};function Pt(l,m,C,P){if(m&&typeof m=="object")for(var z in m)qo(l,z,m[z],C);else{m=N(m);for(var W=0,oe=m.length;W<oe;W++)qo(l,m[W],C,P)}return this}var Sn="_leaflet_events";function jt(l,m,C,P){if(arguments.length===1)On(l),delete l[Sn];else if(m&&typeof m=="object")for(var z in m)pn(l,z,m[z],C);else if(m=N(m),arguments.length===2)On(l,function(fe){return T(m,fe)!==-1});else for(var W=0,oe=m.length;W<oe;W++)pn(l,m[W],C,P);return this}function On(l,m){for(var C in l[Sn]){var P=C.split(/\d/)[0];(!m||m(P))&&pn(l,P,null,null,C)}}var Jl={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function qo(l,m,C,P){var z=m+v(C)+(P?"_"+v(P):"");if(l[Sn]&&l[Sn][z])return this;var W=function(fe){return C.call(P||l,fe||window.event)},oe=W;!We.touchNative&&We.pointer&&m.indexOf("touch")===0?W=ni(l,m,W):We.touch&&m==="dblclick"?W=Mt(l,W):"addEventListener"in l?m==="touchstart"||m==="touchmove"||m==="wheel"||m==="mousewheel"?l.addEventListener(Jl[m]||m,W,We.passiveEvents?{passive:!1}:!1):m==="mouseenter"||m==="mouseleave"?(W=function(fe){fe=fe||window.event,qt(l,fe)&&oe(fe)},l.addEventListener(Jl[m],W,!1)):l.addEventListener(m,oe,!1):l.attachEvent("on"+m,W),l[Sn]=l[Sn]||{},l[Sn][z]=W}function pn(l,m,C,P,z){z=z||m+v(C)+(P?"_"+v(P):"");var W=l[Sn]&&l[Sn][z];if(!W)return this;!We.touchNative&&We.pointer&&m.indexOf("touch")===0?as(l,m,W):We.touch&&m==="dblclick"?Ct(l,W):"removeEventListener"in l?l.removeEventListener(Jl[m]||m,W,!1):l.detachEvent("on"+m,W),l[Sn][z]=null}function Ni(l){return l.stopPropagation?l.stopPropagation():l.originalEvent?l.originalEvent._stopped=!0:l.cancelBubble=!0,this}function hr(l){return qo(l,"wheel",Ni),this}function uo(l){return Pt(l,"mousedown touchstart dblclick contextmenu",Ni),l._leaflet_disable_click=!0,this}function rr(l){return l.preventDefault?l.preventDefault():l.returnValue=!1,this}function Ms(l){return rr(l),Ni(l),this}function qu(l){if(l.composedPath)return l.composedPath();for(var m=[],C=l.target;C;)m.push(C),C=C.parentNode;return m}function ci(l,m){if(!m)return new B(l.clientX,l.clientY);var C=Zn(m),P=C.boundingClientRect;return new B((l.clientX-P.left)/C.x-m.clientLeft,(l.clientY-P.top)/C.y-m.clientTop)}var Aa=We.linux&&We.chrome?window.devicePixelRatio:We.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function zu(l){return We.edge?l.wheelDeltaY/2:l.deltaY&&l.deltaMode===0?-l.deltaY/Aa:l.deltaY&&l.deltaMode===1?-l.deltaY*20:l.deltaY&&l.deltaMode===2?-l.deltaY*60:l.deltaX||l.deltaZ?0:l.wheelDelta?(l.wheelDeltaY||l.wheelDelta)/2:l.detail&&Math.abs(l.detail)<32765?-l.detail*20:l.detail?l.detail/-32765*60:0}function qt(l,m){var C=m.relatedTarget;if(!C)return!0;try{for(;C&&C!==l;)C=C.parentNode}catch{return!1}return C!==l}var di={__proto__:null,on:Pt,off:jt,stopPropagation:Ni,disableScrollPropagation:hr,disableClickPropagation:uo,preventDefault:rr,stop:Ms,getPropagationPath:qu,getMousePosition:ci,getWheelDelta:zu,isExternalTarget:qt,addListener:Pt,removeListener:jt},zo=K.extend({run:function(l,m,C,P){this.stop(),this._el=l,this._inProgress=!0,this._duration=C||.25,this._easeOutPower=1/Math.max(P||.5,.2),this._startPos=Pe(l),this._offset=m.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=R(this._animate,this),this._step()},_step:function(l){var m=+new Date-this._startTime,C=this._duration*1e3;m<C?this._runFrame(this._easeOut(m/C),l):(this._runFrame(1),this._complete())},_runFrame:function(l,m){var C=this._startPos.add(this._offset.multiplyBy(l));m&&C._round(),Bt(this._el,C),this.fire("step")},_complete:function(){A(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(l){return 1-Math.pow(1-l,this._easeOutPower)}}),Yt=K.extend({options:{crs:mt,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(l,m){m=w(this,m),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(l),this._initLayout(),this._onResize=h(this._onResize,this),this._initEvents(),m.maxBounds&&this.setMaxBounds(m.maxBounds),m.zoom!==void 0&&(this._zoom=this._limitZoom(m.zoom)),m.center&&m.zoom!==void 0&&this.setView(Ce(m.center),m.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=dt&&We.any3d&&!We.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Pt(this._proxy,je,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(l,m,C){if(m=m===void 0?this._zoom:this._limitZoom(m),l=this._limitCenter(Ce(l),m,this.options.maxBounds),C=C||{},this._stop(),this._loaded&&!C.reset&&C!==!0){C.animate!==void 0&&(C.zoom=u({animate:C.animate},C.zoom),C.pan=u({animate:C.animate,duration:C.duration},C.pan));var P=this._zoom!==m?this._tryAnimatedZoom&&this._tryAnimatedZoom(l,m,C.zoom):this._tryAnimatedPan(l,C.pan);if(P)return clearTimeout(this._sizeTimer),this}return this._resetView(l,m,C.pan&&C.pan.noMoveStart),this},setZoom:function(l,m){return this._loaded?this.setView(this.getCenter(),l,{zoom:m}):(this._zoom=l,this)},zoomIn:function(l,m){return l=l||(We.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+l,m)},zoomOut:function(l,m){return l=l||(We.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-l,m)},setZoomAround:function(l,m,C){var P=this.getZoomScale(m),z=this.getSize().divideBy(2),W=l instanceof B?l:this.latLngToContainerPoint(l),oe=W.subtract(z).multiplyBy(1-1/P),fe=this.containerPointToLatLng(z.add(oe));return this.setView(fe,m,{zoom:C})},_getBoundsCenterZoom:function(l,m){m=m||{},l=l.getBounds?l.getBounds():be(l);var C=Q(m.paddingTopLeft||m.padding||[0,0]),P=Q(m.paddingBottomRight||m.padding||[0,0]),z=this.getBoundsZoom(l,!1,C.add(P));if(z=typeof m.maxZoom=="number"?Math.min(m.maxZoom,z):z,z===1/0)return{center:l.getCenter(),zoom:z};var W=P.subtract(C).divideBy(2),oe=this.project(l.getSouthWest(),z),fe=this.project(l.getNorthEast(),z),pe=this.unproject(oe.add(fe).divideBy(2).add(W),z);return{center:pe,zoom:z}},fitBounds:function(l,m){if(l=be(l),!l.isValid())throw new Error("Bounds are not valid.");var C=this._getBoundsCenterZoom(l,m);return this.setView(C.center,C.zoom,m)},fitWorld:function(l){return this.fitBounds([[-90,-180],[90,180]],l)},panTo:function(l,m){return this.setView(l,this._zoom,{pan:m})},panBy:function(l,m){if(l=Q(l).round(),m=m||{},!l.x&&!l.y)return this.fire("moveend");if(m.animate!==!0&&!this.getSize().contains(l))return this._resetView(this.unproject(this.project(this.getCenter()).add(l)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new zo,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),m.noMoveStart||this.fire("movestart"),m.animate!==!1){it(this._mapPane,"leaflet-pan-anim");var C=this._getMapPanePos().subtract(l).round();this._panAnim.run(this._mapPane,C,m.duration||.25,m.easeLinearity)}else this._rawPanBy(l),this.fire("move").fire("moveend");return this},flyTo:function(l,m,C){if(C=C||{},C.animate===!1||!We.any3d)return this.setView(l,m,C);this._stop();var P=this.project(this.getCenter()),z=this.project(l),W=this.getSize(),oe=this._zoom;l=Ce(l),m=m===void 0?oe:m;var fe=Math.max(W.x,W.y),pe=fe*this.getZoomScale(oe,m),Ie=z.distanceTo(P)||1,Ue=1.42,wt=Ue*Ue;function zt(Dn){var xo=Dn?-1:1,Xu=Dn?pe:fe,Ha=pe*pe-fe*fe+xo*wt*wt*Ie*Ie,Yu=2*Xu*wt*Ie,Co=Ha/Yu,Ku=Math.sqrt(Co*Co+1)-Co,Hs=Ku<1e-9?-18:Math.log(Ku);return Hs}function $n(Dn){return(Math.exp(Dn)-Math.exp(-Dn))/2}function Xn(Dn){return(Math.exp(Dn)+Math.exp(-Dn))/2}function Wr(Dn){return $n(Dn)/Xn(Dn)}var mr=zt(0);function xs(Dn){return fe*(Xn(mr)/Xn(mr+Ue*Dn))}function yi(Dn){return fe*(Xn(mr)*Wr(mr+Ue*Dn)-$n(mr))/wt}function ic(Dn){return 1-Math.pow(1-Dn,1.5)}var zn=Date.now(),Nr=(zt(1)-mr)/Ue,Zu=C.duration?1e3*C.duration:1e3*Nr*.8;function Va(){var Dn=(Date.now()-zn)/Zu,xo=ic(Dn)*Nr;Dn<=1?(this._flyToFrame=R(Va,this),this._move(this.unproject(P.add(z.subtract(P).multiplyBy(yi(xo)/Ie)),oe),this.getScaleZoom(fe/xs(xo),oe),{flyTo:!0})):this._move(l,m)._moveEnd(!0)}return this._moveStart(!0,C.noMoveStart),Va.call(this),this},flyToBounds:function(l,m){var C=this._getBoundsCenterZoom(l,m);return this.flyTo(C.center,C.zoom,m)},setMaxBounds:function(l){return l=be(l),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),l.isValid()?(this.options.maxBounds=l,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(l){var m=this.options.minZoom;return this.options.minZoom=l,this._loaded&&m!==l&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(l):this},setMaxZoom:function(l){var m=this.options.maxZoom;return this.options.maxZoom=l,this._loaded&&m!==l&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(l):this},panInsideBounds:function(l,m){this._enforcingBounds=!0;var C=this.getCenter(),P=this._limitCenter(C,this._zoom,be(l));return C.equals(P)||this.panTo(P,m),this._enforcingBounds=!1,this},panInside:function(l,m){m=m||{};var C=Q(m.paddingTopLeft||m.padding||[0,0]),P=Q(m.paddingBottomRight||m.padding||[0,0]),z=this.project(this.getCenter()),W=this.project(l),oe=this.getPixelBounds(),fe=re([oe.min.add(C),oe.max.subtract(P)]),pe=fe.getSize();if(!fe.contains(W)){this._enforcingBounds=!0;var Ie=W.subtract(fe.getCenter()),Ue=fe.extend(W).getSize().subtract(pe);z.x+=Ie.x<0?-Ue.x:Ue.x,z.y+=Ie.y<0?-Ue.y:Ue.y,this.panTo(this.unproject(z),m),this._enforcingBounds=!1}return this},invalidateSize:function(l){if(!this._loaded)return this;l=u({animate:!1,pan:!0},l===!0?{animate:!0}:l);var m=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var C=this.getSize(),P=m.divideBy(2).round(),z=C.divideBy(2).round(),W=P.subtract(z);return!W.x&&!W.y?this:(l.animate&&l.pan?this.panBy(W):(l.pan&&this._rawPanBy(W),this.fire("move"),l.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(h(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:m,newSize:C}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(l){if(l=this._locateOptions=u({timeout:1e4,watch:!1},l),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var m=h(this._handleGeolocationResponse,this),C=h(this._handleGeolocationError,this);return l.watch?this._locationWatchId=navigator.geolocation.watchPosition(m,C,l):navigator.geolocation.getCurrentPosition(m,C,l),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(l){if(this._container._leaflet_id){var m=l.code,C=l.message||(m===1?"permission denied":m===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:m,message:"Geolocation error: "+C+"."})}},_handleGeolocationResponse:function(l){if(this._container._leaflet_id){var m=l.coords.latitude,C=l.coords.longitude,P=new ae(m,C),z=P.toBounds(l.coords.accuracy*2),W=this._locateOptions;if(W.setView){var oe=this.getBoundsZoom(z);this.setView(P,W.maxZoom?Math.min(oe,W.maxZoom):oe)}var fe={latlng:P,bounds:z,timestamp:l.timestamp};for(var pe in l.coords)typeof l.coords[pe]=="number"&&(fe[pe]=l.coords[pe]);this.fire("locationfound",fe)}},addHandler:function(l,m){if(!m)return this;var C=this[l]=new m(this);return this._handlers.push(C),this.options[l]&&C.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Et(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(A(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var l;for(l in this._layers)this._layers[l].remove();for(l in this._panes)Et(this._panes[l]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(l,m){var C="leaflet-pane"+(l?" leaflet-"+l.replace("Pane","")+"-pane":""),P=Fe("div",C,m||this._mapPane);return l&&(this._panes[l]=P),P},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var l=this.getPixelBounds(),m=this.unproject(l.getBottomLeft()),C=this.unproject(l.getTopRight());return new le(m,C)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(l,m,C){l=be(l),C=Q(C||[0,0]);var P=this.getZoom()||0,z=this.getMinZoom(),W=this.getMaxZoom(),oe=l.getNorthWest(),fe=l.getSouthEast(),pe=this.getSize().subtract(C),Ie=re(this.project(fe,P),this.project(oe,P)).getSize(),Ue=We.any3d?this.options.zoomSnap:1,wt=pe.x/Ie.x,zt=pe.y/Ie.y,$n=m?Math.max(wt,zt):Math.min(wt,zt);return P=this.getScaleZoom($n,P),Ue&&(P=Math.round(P/(Ue/100))*(Ue/100),P=m?Math.ceil(P/Ue)*Ue:Math.floor(P/Ue)*Ue),Math.max(z,Math.min(W,P))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new B(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(l,m){var C=this._getTopLeftPoint(l,m);return new $(C,C.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(l){return this.options.crs.getProjectedBounds(l===void 0?this.getZoom():l)},getPane:function(l){return typeof l=="string"?this._panes[l]:l},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(l,m){var C=this.options.crs;return m=m===void 0?this._zoom:m,C.scale(l)/C.scale(m)},getScaleZoom:function(l,m){var C=this.options.crs;m=m===void 0?this._zoom:m;var P=C.zoom(l*C.scale(m));return isNaN(P)?1/0:P},project:function(l,m){return m=m===void 0?this._zoom:m,this.options.crs.latLngToPoint(Ce(l),m)},unproject:function(l,m){return m=m===void 0?this._zoom:m,this.options.crs.pointToLatLng(Q(l),m)},layerPointToLatLng:function(l){var m=Q(l).add(this.getPixelOrigin());return this.unproject(m)},latLngToLayerPoint:function(l){var m=this.project(Ce(l))._round();return m._subtract(this.getPixelOrigin())},wrapLatLng:function(l){return this.options.crs.wrapLatLng(Ce(l))},wrapLatLngBounds:function(l){return this.options.crs.wrapLatLngBounds(be(l))},distance:function(l,m){return this.options.crs.distance(Ce(l),Ce(m))},containerPointToLayerPoint:function(l){return Q(l).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(l){return Q(l).add(this._getMapPanePos())},containerPointToLatLng:function(l){var m=this.containerPointToLayerPoint(Q(l));return this.layerPointToLatLng(m)},latLngToContainerPoint:function(l){return this.layerPointToContainerPoint(this.latLngToLayerPoint(Ce(l)))},mouseEventToContainerPoint:function(l){return ci(l,this._container)},mouseEventToLayerPoint:function(l){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(l))},mouseEventToLatLng:function(l){return this.layerPointToLatLng(this.mouseEventToLayerPoint(l))},_initContainer:function(l){var m=this._container=ot(l);if(m){if(m._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Pt(m,"scroll",this._onScroll,this),this._containerId=v(m)},_initLayout:function(){var l=this._container;this._fadeAnimated=this.options.fadeAnimation&&We.any3d,it(l,"leaflet-container"+(We.touch?" leaflet-touch":"")+(We.retina?" leaflet-retina":"")+(We.ielt9?" leaflet-oldie":"")+(We.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var m=tt(l,"position");m!=="absolute"&&m!=="relative"&&m!=="fixed"&&m!=="sticky"&&(l.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var l=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Bt(this._mapPane,new B(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(it(l.markerPane,"leaflet-zoom-hide"),it(l.shadowPane,"leaflet-zoom-hide"))},_resetView:function(l,m,C){Bt(this._mapPane,new B(0,0));var P=!this._loaded;this._loaded=!0,m=this._limitZoom(m),this.fire("viewprereset");var z=this._zoom!==m;this._moveStart(z,C)._move(l,m)._moveEnd(z),this.fire("viewreset"),P&&this.fire("load")},_moveStart:function(l,m){return l&&this.fire("zoomstart"),m||this.fire("movestart"),this},_move:function(l,m,C,P){m===void 0&&(m=this._zoom);var z=this._zoom!==m;return this._zoom=m,this._lastCenter=l,this._pixelOrigin=this._getNewPixelOrigin(l),P?C&&C.pinch&&this.fire("zoom",C):((z||C&&C.pinch)&&this.fire("zoom",C),this.fire("move",C)),this},_moveEnd:function(l){return l&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return A(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(l){Bt(this._mapPane,this._getMapPanePos().subtract(l))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(l){this._targets={},this._targets[v(this._container)]=this;var m=l?jt:Pt;m(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&m(window,"resize",this._onResize,this),We.any3d&&this.options.transform3DLimit&&(l?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){A(this._resizeRequest),this._resizeRequest=R(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var l=this._getMapPanePos();Math.max(Math.abs(l.x),Math.abs(l.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(l,m){for(var C=[],P,z=m==="mouseout"||m==="mouseover",W=l.target||l.srcElement,oe=!1;W;){if(P=this._targets[v(W)],P&&(m==="click"||m==="preclick")&&this._draggableMoved(P)){oe=!0;break}if(P&&P.listens(m,!0)&&(z&&!qt(W,l)||(C.push(P),z))||W===this._container)break;W=W.parentNode}return!C.length&&!oe&&!z&&this.listens(m,!0)&&(C=[this]),C},_isClickDisabled:function(l){for(;l&&l!==this._container;){if(l._leaflet_disable_click)return!0;l=l.parentNode}},_handleDOMEvent:function(l){var m=l.target||l.srcElement;if(!(!this._loaded||m._leaflet_disable_events||l.type==="click"&&this._isClickDisabled(m))){var C=l.type;C==="mousedown"&&yr(m),this._fireDOMEvent(l,C)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(l,m,C){if(l.type==="click"){var P=u({},l);P.type="preclick",this._fireDOMEvent(P,P.type,C)}var z=this._findEventTargets(l,m);if(C){for(var W=[],oe=0;oe<C.length;oe++)C[oe].listens(m,!0)&&W.push(C[oe]);z=W.concat(z)}if(z.length){m==="contextmenu"&&rr(l);var fe=z[0],pe={originalEvent:l};if(l.type!=="keypress"&&l.type!=="keydown"&&l.type!=="keyup"){var Ie=fe.getLatLng&&(!fe._radius||fe._radius<=10);pe.containerPoint=Ie?this.latLngToContainerPoint(fe.getLatLng()):this.mouseEventToContainerPoint(l),pe.layerPoint=this.containerPointToLayerPoint(pe.containerPoint),pe.latlng=Ie?fe.getLatLng():this.layerPointToLatLng(pe.layerPoint)}for(oe=0;oe<z.length;oe++)if(z[oe].fire(m,pe,!0),pe.originalEvent._stopped||z[oe].options.bubblingMouseEvents===!1&&T(this._mouseEvents,m)!==-1)return}},_draggableMoved:function(l){return l=l.dragging&&l.dragging.enabled()?l:this,l.dragging&&l.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var l=0,m=this._handlers.length;l<m;l++)this._handlers[l].disable()},whenReady:function(l,m){return this._loaded?l.call(m||this,{target:this}):this.on("load",l,m),this},_getMapPanePos:function(){return Pe(this._mapPane)||new B(0,0)},_moved:function(){var l=this._getMapPanePos();return l&&!l.equals([0,0])},_getTopLeftPoint:function(l,m){var C=l&&m!==void 0?this._getNewPixelOrigin(l,m):this.getPixelOrigin();return C.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(l,m){var C=this.getSize()._divideBy(2);return this.project(l,m)._subtract(C)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(l,m,C){var P=this._getNewPixelOrigin(C,m);return this.project(l,m)._subtract(P)},_latLngBoundsToNewLayerBounds:function(l,m,C){var P=this._getNewPixelOrigin(C,m);return re([this.project(l.getSouthWest(),m)._subtract(P),this.project(l.getNorthWest(),m)._subtract(P),this.project(l.getSouthEast(),m)._subtract(P),this.project(l.getNorthEast(),m)._subtract(P)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(l){return this.latLngToLayerPoint(l).subtract(this._getCenterLayerPoint())},_limitCenter:function(l,m,C){if(!C)return l;var P=this.project(l,m),z=this.getSize().divideBy(2),W=new $(P.subtract(z),P.add(z)),oe=this._getBoundsOffset(W,C,m);return Math.abs(oe.x)<=1&&Math.abs(oe.y)<=1?l:this.unproject(P.add(oe),m)},_limitOffset:function(l,m){if(!m)return l;var C=this.getPixelBounds(),P=new $(C.min.add(l),C.max.add(l));return l.add(this._getBoundsOffset(P,m))},_getBoundsOffset:function(l,m,C){var P=re(this.project(m.getNorthEast(),C),this.project(m.getSouthWest(),C)),z=P.min.subtract(l.min),W=P.max.subtract(l.max),oe=this._rebound(z.x,-W.x),fe=this._rebound(z.y,-W.y);return new B(oe,fe)},_rebound:function(l,m){return l+m>0?Math.round(l-m)/2:Math.max(0,Math.ceil(l))-Math.max(0,Math.floor(m))},_limitZoom:function(l){var m=this.getMinZoom(),C=this.getMaxZoom(),P=We.any3d?this.options.zoomSnap:1;return P&&(l=Math.round(l/P)*P),Math.max(m,Math.min(C,l))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){mn(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(l,m){var C=this._getCenterOffset(l)._trunc();return(m&&m.animate)!==!0&&!this.getSize().contains(C)?!1:(this.panBy(C,m),!0)},_createAnimProxy:function(){var l=this._proxy=Fe("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(l),this.on("zoomanim",function(m){var C=Wt,P=this._proxy.style[C];vr(this._proxy,this.project(m.center,m.zoom),this.getZoomScale(m.zoom,1)),P===this._proxy.style[C]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Et(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var l=this.getCenter(),m=this.getZoom();vr(this._proxy,this.project(l,m),this.getZoomScale(m,1))},_catchTransitionEnd:function(l){this._animatingZoom&&l.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(l,m,C){if(this._animatingZoom)return!0;if(C=C||{},!this._zoomAnimated||C.animate===!1||this._nothingToAnimate()||Math.abs(m-this._zoom)>this.options.zoomAnimationThreshold)return!1;var P=this.getZoomScale(m),z=this._getCenterOffset(l)._divideBy(1-1/P);return C.animate!==!0&&!this.getSize().contains(z)?!1:(R(function(){this._moveStart(!0,C.noMoveStart||!1)._animateZoom(l,m,!0)},this),!0)},_animateZoom:function(l,m,C,P){this._mapPane&&(C&&(this._animatingZoom=!0,this._animateToCenter=l,this._animateToZoom=m,it(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:l,zoom:m,noUpdate:P}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(h(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&mn(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function ks(l,m){return new Yt(l,m)}var jr=ee.extend({options:{position:"topright"},initialize:function(l){w(this,l)},getPosition:function(){return this.options.position},setPosition:function(l){var m=this._map;return m&&m.removeControl(this),this.options.position=l,m&&m.addControl(this),this},getContainer:function(){return this._container},addTo:function(l){this.remove(),this._map=l;var m=this._container=this.onAdd(l),C=this.getPosition(),P=l._controlCorners[C];return it(m,"leaflet-control"),C.indexOf("bottom")!==-1?P.insertBefore(m,P.firstChild):P.appendChild(m),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Et(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(l){this._map&&l&&l.screenX>0&&l.screenY>0&&this._map.getContainer().focus()}}),ir=function(l){return new jr(l)};Yt.include({addControl:function(l){return l.addTo(this),this},removeControl:function(l){return l.remove(),this},_initControlPos:function(){var l=this._controlCorners={},m="leaflet-",C=this._controlContainer=Fe("div",m+"control-container",this._container);function P(z,W){var oe=m+z+" "+m+W;l[z+W]=Fe("div",oe,C)}P("top","left"),P("top","right"),P("bottom","left"),P("bottom","right")},_clearControlPos:function(){for(var l in this._controlCorners)Et(this._controlCorners[l]);Et(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Uo=jr.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(l,m,C,P){return C<P?-1:P<C?1:0}},initialize:function(l,m,C){w(this,C),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var P in l)this._addLayer(l[P],P);for(P in m)this._addLayer(m[P],P,!0)},onAdd:function(l){this._initLayout(),this._update(),this._map=l,l.on("zoomend",this._checkDisabledLayers,this);for(var m=0;m<this._layers.length;m++)this._layers[m].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(l){return jr.prototype.addTo.call(this,l),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var l=0;l<this._layers.length;l++)this._layers[l].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(l,m){return this._addLayer(l,m),this._map?this._update():this},addOverlay:function(l,m){return this._addLayer(l,m,!0),this._map?this._update():this},removeLayer:function(l){l.off("add remove",this._onLayerChange,this);var m=this._getLayer(v(l));return m&&this._layers.splice(this._layers.indexOf(m),1),this._map?this._update():this},expand:function(){it(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var l=this._map.getSize().y-(this._container.offsetTop+50);return l<this._section.clientHeight?(it(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=l+"px"):mn(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return mn(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var l="leaflet-control-layers",m=this._container=Fe("div",l),C=this.options.collapsed;m.setAttribute("aria-haspopup",!0),uo(m),hr(m);var P=this._section=Fe("section",l+"-list");C&&(this._map.on("click",this.collapse,this),Pt(m,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var z=this._layersLink=Fe("a",l+"-toggle",m);z.href="#",z.title="Layers",z.setAttribute("role","button"),Pt(z,{keydown:function(W){W.keyCode===13&&this._expandSafely()},click:function(W){rr(W),this._expandSafely()}},this),C||this.expand(),this._baseLayersList=Fe("div",l+"-base",P),this._separator=Fe("div",l+"-separator",P),this._overlaysList=Fe("div",l+"-overlays",P),m.appendChild(P)},_getLayer:function(l){for(var m=0;m<this._layers.length;m++)if(this._layers[m]&&v(this._layers[m].layer)===l)return this._layers[m]},_addLayer:function(l,m,C){this._map&&l.on("add remove",this._onLayerChange,this),this._layers.push({layer:l,name:m,overlay:C}),this.options.sortLayers&&this._layers.sort(h(function(P,z){return this.options.sortFunction(P.layer,z.layer,P.name,z.name)},this)),this.options.autoZIndex&&l.setZIndex&&(this._lastZIndex++,l.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;pt(this._baseLayersList),pt(this._overlaysList),this._layerControlInputs=[];var l,m,C,P,z=0;for(C=0;C<this._layers.length;C++)P=this._layers[C],this._addItem(P),m=m||P.overlay,l=l||!P.overlay,z+=P.overlay?0:1;return this.options.hideSingleBase&&(l=l&&z>1,this._baseLayersList.style.display=l?"":"none"),this._separator.style.display=m&&l?"":"none",this},_onLayerChange:function(l){this._handlingClick||this._update();var m=this._getLayer(v(l.target)),C=m.overlay?l.type==="add"?"overlayadd":"overlayremove":l.type==="add"?"baselayerchange":null;C&&this._map.fire(C,m)},_createRadioElement:function(l,m){var C='<input type="radio" class="leaflet-control-layers-selector" name="'+l+'"'+(m?' checked="checked"':"")+"/>",P=document.createElement("div");return P.innerHTML=C,P.firstChild},_addItem:function(l){var m=document.createElement("label"),C=this._map.hasLayer(l.layer),P;l.overlay?(P=document.createElement("input"),P.type="checkbox",P.className="leaflet-control-layers-selector",P.defaultChecked=C):P=this._createRadioElement("leaflet-base-layers_"+v(this),C),this._layerControlInputs.push(P),P.layerId=v(l.layer),Pt(P,"click",this._onInputClick,this);var z=document.createElement("span");z.innerHTML=" "+l.name;var W=document.createElement("span");m.appendChild(W),W.appendChild(P),W.appendChild(z);var oe=l.overlay?this._overlaysList:this._baseLayersList;return oe.appendChild(m),this._checkDisabledLayers(),m},_onInputClick:function(){if(!this._preventClick){var l=this._layerControlInputs,m,C,P=[],z=[];this._handlingClick=!0;for(var W=l.length-1;W>=0;W--)m=l[W],C=this._getLayer(m.layerId).layer,m.checked?P.push(C):m.checked||z.push(C);for(W=0;W<z.length;W++)this._map.hasLayer(z[W])&&this._map.removeLayer(z[W]);for(W=0;W<P.length;W++)this._map.hasLayer(P[W])||this._map.addLayer(P[W]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var l=this._layerControlInputs,m,C,P=this._map.getZoom(),z=l.length-1;z>=0;z--)m=l[z],C=this._getLayer(m.layerId).layer,m.disabled=C.options.minZoom!==void 0&&P<C.options.minZoom||C.options.maxZoom!==void 0&&P>C.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var l=this._section;this._preventClick=!0,Pt(l,"click",rr),this.expand();var m=this;setTimeout(function(){jt(l,"click",rr),m._preventClick=!1})}}),us=function(l,m,C){return new Uo(l,m,C)},lo=jr.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(l){var m="leaflet-control-zoom",C=Fe("div",m+" leaflet-bar"),P=this.options;return this._zoomInButton=this._createButton(P.zoomInText,P.zoomInTitle,m+"-in",C,this._zoomIn),this._zoomOutButton=this._createButton(P.zoomOutText,P.zoomOutTitle,m+"-out",C,this._zoomOut),this._updateDisabled(),l.on("zoomend zoomlevelschange",this._updateDisabled,this),C},onRemove:function(l){l.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(l){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(l.shiftKey?3:1))},_zoomOut:function(l){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(l.shiftKey?3:1))},_createButton:function(l,m,C,P,z){var W=Fe("a",C,P);return W.innerHTML=l,W.href="#",W.title=m,W.setAttribute("role","button"),W.setAttribute("aria-label",m),uo(W),Pt(W,"click",Ms),Pt(W,"click",z,this),Pt(W,"click",this._refocusOnMap,this),W},_updateDisabled:function(){var l=this._map,m="leaflet-disabled";mn(this._zoomInButton,m),mn(this._zoomOutButton,m),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||l._zoom===l.getMinZoom())&&(it(this._zoomOutButton,m),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||l._zoom===l.getMaxZoom())&&(it(this._zoomInButton,m),this._zoomInButton.setAttribute("aria-disabled","true"))}});Yt.mergeOptions({zoomControl:!0}),Yt.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new lo,this.addControl(this.zoomControl))});var co=function(l){return new lo(l)},ho=jr.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(l){var m="leaflet-control-scale",C=Fe("div",m),P=this.options;return this._addScales(P,m+"-line",C),l.on(P.updateWhenIdle?"moveend":"move",this._update,this),l.whenReady(this._update,this),C},onRemove:function(l){l.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(l,m,C){l.metric&&(this._mScale=Fe("div",m,C)),l.imperial&&(this._iScale=Fe("div",m,C))},_update:function(){var l=this._map,m=l.getSize().y/2,C=l.distance(l.containerPointToLatLng([0,m]),l.containerPointToLatLng([this.options.maxWidth,m]));this._updateScales(C)},_updateScales:function(l){this.options.metric&&l&&this._updateMetric(l),this.options.imperial&&l&&this._updateImperial(l)},_updateMetric:function(l){var m=this._getRoundNum(l),C=m<1e3?m+" m":m/1e3+" km";this._updateScale(this._mScale,C,m/l)},_updateImperial:function(l){var m=l*3.2808399,C,P,z;m>5280?(C=m/5280,P=this._getRoundNum(C),this._updateScale(this._iScale,P+" mi",P/C)):(z=this._getRoundNum(m),this._updateScale(this._iScale,z+" ft",z/m))},_updateScale:function(l,m,C){l.style.width=Math.round(this.options.maxWidth*C)+"px",l.innerHTML=m},_getRoundNum:function(l){var m=Math.pow(10,(Math.floor(l)+"").length-1),C=l/m;return C=C>=10?10:C>=5?5:C>=3?3:C>=2?2:1,m*C}}),Oe=function(l){return new ho(l)},Fr='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',En=jr.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(We.inlineSvg?Fr+" ":"")+"Leaflet</a>"},initialize:function(l){w(this,l),this._attributions={}},onAdd:function(l){l.attributionControl=this,this._container=Fe("div","leaflet-control-attribution"),uo(this._container);for(var m in l._layers)l._layers[m].getAttribution&&this.addAttribution(l._layers[m].getAttribution());return this._update(),l.on("layeradd",this._addAttribution,this),this._container},onRemove:function(l){l.off("layeradd",this._addAttribution,this)},_addAttribution:function(l){l.layer.getAttribution&&(this.addAttribution(l.layer.getAttribution()),l.layer.once("remove",function(){this.removeAttribution(l.layer.getAttribution())},this))},setPrefix:function(l){return this.options.prefix=l,this._update(),this},addAttribution:function(l){return l?(this._attributions[l]||(this._attributions[l]=0),this._attributions[l]++,this._update(),this):this},removeAttribution:function(l){return l?(this._attributions[l]&&(this._attributions[l]--,this._update()),this):this},_update:function(){if(this._map){var l=[];for(var m in this._attributions)this._attributions[m]&&l.push(m);var C=[];this.options.prefix&&C.push(this.options.prefix),l.length&&C.push(l.join(", ")),this._container.innerHTML=C.join(' <span aria-hidden="true">|</span> ')}}});Yt.mergeOptions({attributionControl:!0}),Yt.addInitHook(function(){this.options.attributionControl&&new En().addTo(this)});var Vo=function(l){return new En(l)};jr.Layers=Uo,jr.Zoom=lo,jr.Scale=ho,jr.Attribution=En,ir.layers=us,ir.zoom=co,ir.scale=Oe,ir.attribution=Vo;var ri=ee.extend({initialize:function(l){this._map=l},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});ri.addTo=function(l,m){return l.addHandler(m,this),this};var Pa={Events:G},ls=We.touch?"touchstart mousedown":"mousedown",br=K.extend({options:{clickTolerance:3},initialize:function(l,m,C,P){w(this,P),this._element=l,this._dragStartTarget=m||l,this._preventOutline=C},enable:function(){this._enabled||(Pt(this._dragStartTarget,ls,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(br._dragging===this&&this.finishDrag(!0),jt(this._dragStartTarget,ls,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(l){if(this._enabled&&(this._moved=!1,!xt(this._element,"leaflet-zoom-anim"))){if(l.touches&&l.touches.length!==1){br._dragging===this&&this.finishDrag();return}if(!(br._dragging||l.shiftKey||l.which!==1&&l.button!==1&&!l.touches)&&(br._dragging=this,this._preventOutline&&yr(this._element),ft(),J(),!this._moving)){this.fire("down");var m=l.touches?l.touches[0]:l,C=jn(this._element);this._startPoint=new B(m.clientX,m.clientY),this._startPos=Pe(this._element),this._parentScale=Zn(C);var P=l.type==="mousedown";Pt(document,P?"mousemove":"touchmove",this._onMove,this),Pt(document,P?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(l){if(this._enabled){if(l.touches&&l.touches.length>1){this._moved=!0;return}var m=l.touches&&l.touches.length===1?l.touches[0]:l,C=new B(m.clientX,m.clientY)._subtract(this._startPoint);!C.x&&!C.y||Math.abs(C.x)+Math.abs(C.y)<this.options.clickTolerance||(C.x/=this._parentScale.x,C.y/=this._parentScale.y,rr(l),this._moved||(this.fire("dragstart"),this._moved=!0,it(document.body,"leaflet-dragging"),this._lastTarget=l.target||l.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),it(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(C),this._moving=!0,this._lastEvent=l,this._updatePosition())}},_updatePosition:function(){var l={originalEvent:this._lastEvent};this.fire("predrag",l),Bt(this._element,this._newPos),this.fire("drag",l)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(l){mn(document.body,"leaflet-dragging"),this._lastTarget&&(mn(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),jt(document,"mousemove touchmove",this._onMove,this),jt(document,"mouseup touchend touchcancel",this._onUp,this),yt(),ge();var m=this._moved&&this._moving;this._moving=!1,br._dragging=!1,m&&this.fire("dragend",{noInertia:l,distance:this._newPos.distanceTo(this._startPos)})}});function fo(l,m,C){var P,z=[1,4,2,8],W,oe,fe,pe,Ie,Ue,wt,zt;for(W=0,Ue=l.length;W<Ue;W++)l[W]._code=hs(l[W],m);for(fe=0;fe<4;fe++){for(wt=z[fe],P=[],W=0,Ue=l.length,oe=Ue-1;W<Ue;oe=W++)pe=l[W],Ie=l[oe],pe._code&wt?Ie._code&wt||(zt=ds(Ie,pe,wt,m,C),zt._code=hs(zt,m),P.push(zt)):(Ie._code&wt&&(zt=ds(Ie,pe,wt,m,C),zt._code=hs(zt,m),P.push(zt)),P.push(pe));l=P}return l}function hi(l,m){var C,P,z,W,oe,fe,pe,Ie,Ue;if(!l||l.length===0)throw new Error("latlngs not passed");sr(l)||(console.warn("latlngs are not flat! Only the first ring will be used"),l=l[0]);var wt=Ce([0,0]),zt=be(l),$n=zt.getNorthWest().distanceTo(zt.getSouthWest())*zt.getNorthEast().distanceTo(zt.getNorthWest());$n<1700&&(wt=cs(l));var Xn=l.length,Wr=[];for(C=0;C<Xn;C++){var mr=Ce(l[C]);Wr.push(m.project(Ce([mr.lat-wt.lat,mr.lng-wt.lng])))}for(fe=pe=Ie=0,C=0,P=Xn-1;C<Xn;P=C++)z=Wr[C],W=Wr[P],oe=z.y*W.x-W.y*z.x,pe+=(z.x+W.x)*oe,Ie+=(z.y+W.y)*oe,fe+=oe*3;fe===0?Ue=Wr[0]:Ue=[pe/fe,Ie/fe];var xs=m.unproject(Q(Ue));return Ce([xs.lat+wt.lat,xs.lng+wt.lng])}function cs(l){for(var m=0,C=0,P=0,z=0;z<l.length;z++){var W=Ce(l[z]);m+=W.lat,C+=W.lng,P++}return Ce([m/P,C/P])}var go={__proto__:null,clipPolygon:fo,polygonCenter:hi,centroid:cs};function fi(l,m){if(!m||!l.length)return l.slice();var C=m*m;return l=Vr(l,C),l=$l(l,C),l}function Da(l,m,C){return Math.sqrt(js(l,m,C,!0))}function Ql(l,m,C){return js(l,m,C)}function $l(l,m){var C=l.length,P=typeof Uint8Array<"u"?Uint8Array:Array,z=new P(C);z[0]=z[C-1]=1,Ho(l,z,m,0,C-1);var W,oe=[];for(W=0;W<C;W++)z[W]&&oe.push(l[W]);return oe}function Ho(l,m,C,P,z){var W=0,oe,fe,pe;for(fe=P+1;fe<=z-1;fe++)pe=js(l[fe],l[P],l[z],!0),pe>W&&(oe=fe,W=pe);W>C&&(m[oe]=1,Ho(l,m,C,P,oe),Ho(l,m,C,oe,z))}function Vr(l,m){for(var C=[l[0]],P=1,z=0,W=l.length;P<W;P++)Gi(l[P],l[z])>m&&(C.push(l[P]),z=P);return z<W-1&&C.push(l[W-1]),C}var Rs;function Ma(l,m,C,P,z){var W=P?Rs:hs(l,C),oe=hs(m,C),fe,pe,Ie;for(Rs=oe;;){if(!(W|oe))return[l,m];if(W&oe)return!1;fe=W||oe,pe=ds(l,m,fe,C,z),Ie=hs(pe,C),fe===W?(l=pe,W=Ie):(m=pe,oe=Ie)}}function ds(l,m,C,P,z){var W=m.x-l.x,oe=m.y-l.y,fe=P.min,pe=P.max,Ie,Ue;return C&8?(Ie=l.x+W*(pe.y-l.y)/oe,Ue=pe.y):C&4?(Ie=l.x+W*(fe.y-l.y)/oe,Ue=fe.y):C&2?(Ie=pe.x,Ue=l.y+oe*(pe.x-l.x)/W):C&1&&(Ie=fe.x,Ue=l.y+oe*(fe.x-l.x)/W),new B(Ie,Ue,z)}function hs(l,m){var C=0;return l.x<m.min.x?C|=1:l.x>m.max.x&&(C|=2),l.y<m.min.y?C|=4:l.y>m.max.y&&(C|=8),C}function Gi(l,m){var C=m.x-l.x,P=m.y-l.y;return C*C+P*P}function js(l,m,C,P){var z=m.x,W=m.y,oe=C.x-z,fe=C.y-W,pe=oe*oe+fe*fe,Ie;return pe>0&&(Ie=((l.x-z)*oe+(l.y-W)*fe)/pe,Ie>1?(z=C.x,W=C.y):Ie>0&&(z+=oe*Ie,W+=fe*Ie)),oe=l.x-z,fe=l.y-W,P?oe*oe+fe*fe:new B(z,W)}function sr(l){return!D(l[0])||typeof l[0][0]!="object"&&typeof l[0][0]<"u"}function ka(l){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),sr(l)}function Fs(l,m){var C,P,z,W,oe,fe,pe,Ie;if(!l||l.length===0)throw new Error("latlngs not passed");sr(l)||(console.warn("latlngs are not flat! Only the first ring will be used"),l=l[0]);var Ue=Ce([0,0]),wt=be(l),zt=wt.getNorthWest().distanceTo(wt.getSouthWest())*wt.getNorthEast().distanceTo(wt.getNorthWest());zt<1700&&(Ue=cs(l));var $n=l.length,Xn=[];for(C=0;C<$n;C++){var Wr=Ce(l[C]);Xn.push(m.project(Ce([Wr.lat-Ue.lat,Wr.lng-Ue.lng])))}for(C=0,P=0;C<$n-1;C++)P+=Xn[C].distanceTo(Xn[C+1])/2;if(P===0)Ie=Xn[0];else for(C=0,W=0;C<$n-1;C++)if(oe=Xn[C],fe=Xn[C+1],z=oe.distanceTo(fe),W+=z,W>P){pe=(W-P)/z,Ie=[fe.x-pe*(fe.x-oe.x),fe.y-pe*(fe.y-oe.y)];break}var mr=m.unproject(Q(Ie));return Ce([mr.lat+Ue.lat,mr.lng+Ue.lng])}var ec={__proto__:null,simplify:fi,pointToSegmentDistance:Da,closestPointOnSegment:Ql,clipSegment:Ma,_getEdgeIntersection:ds,_getBitCode:hs,_sqClosestPointOnSegment:js,isFlat:sr,_flat:ka,polylineCenter:Fs},Go={project:function(l){return new B(l.lng,l.lat)},unproject:function(l){return new ae(l.y,l.x)},bounds:new $([-180,-90],[180,90])},Wo={R:6378137,R_MINOR:6356752314245179e-9,bounds:new $([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(l){var m=Math.PI/180,C=this.R,P=l.lat*m,z=this.R_MINOR/C,W=Math.sqrt(1-z*z),oe=W*Math.sin(P),fe=Math.tan(Math.PI/4-P/2)/Math.pow((1-oe)/(1+oe),W/2);return P=-C*Math.log(Math.max(fe,1e-10)),new B(l.lng*m*C,P)},unproject:function(l){for(var m=180/Math.PI,C=this.R,P=this.R_MINOR/C,z=Math.sqrt(1-P*P),W=Math.exp(-l.y/C),oe=Math.PI/2-2*Math.atan(W),fe=0,pe=.1,Ie;fe<15&&Math.abs(pe)>1e-7;fe++)Ie=z*Math.sin(oe),Ie=Math.pow((1-Ie)/(1+Ie),z/2),pe=Math.PI/2-2*Math.atan(W*Ie)-oe,oe+=pe;return new ae(oe*m,l.x*m/C)}},tc={__proto__:null,LonLat:Go,Mercator:Wo,SphericalMercator:rt},fr=u({},Me,{code:"EPSG:3395",projection:Wo,transformation:(function(){var l=.5/(Math.PI*Wo.R);return Le(l,.5,-l,.5)})()}),Ra=u({},Me,{code:"EPSG:4326",projection:Go,transformation:Le(1/180,1,-1/180,.5)}),ja=u({},we,{projection:Go,transformation:Le(1,0,-1,0),scale:function(l){return Math.pow(2,l)},zoom:function(l){return Math.log(l)/Math.LN2},distance:function(l,m){var C=m.lng-l.lng,P=m.lat-l.lat;return Math.sqrt(C*C+P*P)},infinite:!0});we.Earth=Me,we.EPSG3395=fr,we.EPSG3857=mt,we.EPSG900913=lt,we.EPSG4326=Ra,we.Simple=ja;var Hr=K.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(l){return l.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(l){return l&&l.removeLayer(this),this},getPane:function(l){return this._map.getPane(l?this.options[l]||l:this.options.pane)},addInteractiveTarget:function(l){return this._map._targets[v(l)]=this,this},removeInteractiveTarget:function(l){return delete this._map._targets[v(l)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(l){var m=l.target;if(m.hasLayer(this)){if(this._map=m,this._zoomAnimated=m._zoomAnimated,this.getEvents){var C=this.getEvents();m.on(C,this),this.once("remove",function(){m.off(C,this)},this)}this.onAdd(m),this.fire("add"),m.fire("layeradd",{layer:this})}}});Yt.include({addLayer:function(l){if(!l._layerAdd)throw new Error("The provided object is not a Layer.");var m=v(l);return this._layers[m]?this:(this._layers[m]=l,l._mapToAdd=this,l.beforeAdd&&l.beforeAdd(this),this.whenReady(l._layerAdd,l),this)},removeLayer:function(l){var m=v(l);return this._layers[m]?(this._loaded&&l.onRemove(this),delete this._layers[m],this._loaded&&(this.fire("layerremove",{layer:l}),l.fire("remove")),l._map=l._mapToAdd=null,this):this},hasLayer:function(l){return v(l)in this._layers},eachLayer:function(l,m){for(var C in this._layers)l.call(m,this._layers[C]);return this},_addLayers:function(l){l=l?D(l)?l:[l]:[];for(var m=0,C=l.length;m<C;m++)this.addLayer(l[m])},_addZoomLimit:function(l){(!isNaN(l.options.maxZoom)||!isNaN(l.options.minZoom))&&(this._zoomBoundLayers[v(l)]=l,this._updateZoomLevels())},_removeZoomLimit:function(l){var m=v(l);this._zoomBoundLayers[m]&&(delete this._zoomBoundLayers[m],this._updateZoomLevels())},_updateZoomLevels:function(){var l=1/0,m=-1/0,C=this._getZoomSpan();for(var P in this._zoomBoundLayers){var z=this._zoomBoundLayers[P].options;l=z.minZoom===void 0?l:Math.min(l,z.minZoom),m=z.maxZoom===void 0?m:Math.max(m,z.maxZoom)}this._layersMaxZoom=m===-1/0?void 0:m,this._layersMinZoom=l===1/0?void 0:l,C!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var fs=Hr.extend({initialize:function(l,m){w(this,m),this._layers={};var C,P;if(l)for(C=0,P=l.length;C<P;C++)this.addLayer(l[C])},addLayer:function(l){var m=this.getLayerId(l);return this._layers[m]=l,this._map&&this._map.addLayer(l),this},removeLayer:function(l){var m=l in this._layers?l:this.getLayerId(l);return this._map&&this._layers[m]&&this._map.removeLayer(this._layers[m]),delete this._layers[m],this},hasLayer:function(l){var m=typeof l=="number"?l:this.getLayerId(l);return m in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(l){var m=Array.prototype.slice.call(arguments,1),C,P;for(C in this._layers)P=this._layers[C],P[l]&&P[l].apply(P,m);return this},onAdd:function(l){this.eachLayer(l.addLayer,l)},onRemove:function(l){this.eachLayer(l.removeLayer,l)},eachLayer:function(l,m){for(var C in this._layers)l.call(m,this._layers[C]);return this},getLayer:function(l){return this._layers[l]},getLayers:function(){var l=[];return this.eachLayer(l.push,l),l},setZIndex:function(l){return this.invoke("setZIndex",l)},getLayerId:function(l){return v(l)}}),nc=function(l,m){return new fs(l,m)},Ii=fs.extend({addLayer:function(l){return this.hasLayer(l)?this:(l.addEventParent(this),fs.prototype.addLayer.call(this,l),this.fire("layeradd",{layer:l}))},removeLayer:function(l){return this.hasLayer(l)?(l in this._layers&&(l=this._layers[l]),l.removeEventParent(this),fs.prototype.removeLayer.call(this,l),this.fire("layerremove",{layer:l})):this},setStyle:function(l){return this.invoke("setStyle",l)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var l=new le;for(var m in this._layers){var C=this._layers[m];l.extend(C.getBounds?C.getBounds():C.getLatLng())}return l}}),Fa=function(l,m){return new Ii(l,m)},Bs=ee.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(l){w(this,l)},createIcon:function(l){return this._createIcon("icon",l)},createShadow:function(l){return this._createIcon("shadow",l)},_createIcon:function(l,m){var C=this._getIconUrl(l);if(!C){if(l==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var P=this._createImg(C,m&&m.tagName==="IMG"?m:null);return this._setIconStyles(P,l),(this.options.crossOrigin||this.options.crossOrigin==="")&&(P.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),P},_setIconStyles:function(l,m){var C=this.options,P=C[m+"Size"];typeof P=="number"&&(P=[P,P]);var z=Q(P),W=Q(m==="shadow"&&C.shadowAnchor||C.iconAnchor||z&&z.divideBy(2,!0));l.className="leaflet-marker-"+m+" "+(C.className||""),W&&(l.style.marginLeft=-W.x+"px",l.style.marginTop=-W.y+"px"),z&&(l.style.width=z.x+"px",l.style.height=z.y+"px")},_createImg:function(l,m){return m=m||document.createElement("img"),m.src=l,m},_getIconUrl:function(l){return We.retina&&this.options[l+"RetinaUrl"]||this.options[l+"Url"]}});function gi(l){return new Bs(l)}var xr=Bs.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(l){return typeof xr.imagePath!="string"&&(xr.imagePath=this._detectIconPath()),(this.options.imagePath||xr.imagePath)+Bs.prototype._getIconUrl.call(this,l)},_stripUrl:function(l){var m=function(C,P,z){var W=P.exec(C);return W&&W[z]};return l=m(l,/^url\((['"])?(.+)\1\)$/,2),l&&m(l,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var l=Fe("div","leaflet-default-icon-path",document.body),m=tt(l,"background-image")||tt(l,"backgroundImage");if(document.body.removeChild(l),m=this._stripUrl(m),m)return m;var C=document.querySelector('link[href$="leaflet.css"]');return C?C.href.substring(0,C.href.length-11-1):""}}),Lr=ri.extend({initialize:function(l){this._marker=l},addHooks:function(){var l=this._marker._icon;this._draggable||(this._draggable=new br(l,l,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),it(l,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&mn(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(l){var m=this._marker,C=m._map,P=this._marker.options.autoPanSpeed,z=this._marker.options.autoPanPadding,W=Pe(m._icon),oe=C.getPixelBounds(),fe=C.getPixelOrigin(),pe=re(oe.min._subtract(fe).add(z),oe.max._subtract(fe).subtract(z));if(!pe.contains(W)){var Ie=Q((Math.max(pe.max.x,W.x)-pe.max.x)/(oe.max.x-pe.max.x)-(Math.min(pe.min.x,W.x)-pe.min.x)/(oe.min.x-pe.min.x),(Math.max(pe.max.y,W.y)-pe.max.y)/(oe.max.y-pe.max.y)-(Math.min(pe.min.y,W.y)-pe.min.y)/(oe.min.y-pe.min.y)).multiplyBy(P);C.panBy(Ie,{animate:!1}),this._draggable._newPos._add(Ie),this._draggable._startPos._add(Ie),Bt(m._icon,this._draggable._newPos),this._onDrag(l),this._panRequest=R(this._adjustPan.bind(this,l))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(l){this._marker.options.autoPan&&(A(this._panRequest),this._panRequest=R(this._adjustPan.bind(this,l)))},_onDrag:function(l){var m=this._marker,C=m._shadow,P=Pe(m._icon),z=m._map.layerPointToLatLng(P);C&&Bt(C,P),m._latlng=z,l.latlng=z,l.oldLatLng=this._oldLatLng,m.fire("move",l).fire("drag",l)},_onDragEnd:function(l){A(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",l)}}),Ti=Hr.extend({options:{icon:new xr,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(l,m){w(this,m),this._latlng=Ce(l)},onAdd:function(l){this._zoomAnimated=this._zoomAnimated&&l.options.markerZoomAnimation,this._zoomAnimated&&l.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(l){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&l.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(l){var m=this._latlng;return this._latlng=Ce(l),this.update(),this.fire("move",{oldLatLng:m,latlng:this._latlng})},setZIndexOffset:function(l){return this.options.zIndexOffset=l,this.update()},getIcon:function(){return this.options.icon},setIcon:function(l){return this.options.icon=l,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var l=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(l)}return this},_initIcon:function(){var l=this.options,m="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),C=l.icon.createIcon(this._icon),P=!1;C!==this._icon&&(this._icon&&this._removeIcon(),P=!0,l.title&&(C.title=l.title),C.tagName==="IMG"&&(C.alt=l.alt||"")),it(C,m),l.keyboard&&(C.tabIndex="0",C.setAttribute("role","button")),this._icon=C,l.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Pt(C,"focus",this._panOnFocus,this);var z=l.icon.createShadow(this._shadow),W=!1;z!==this._shadow&&(this._removeShadow(),W=!0),z&&(it(z,m),z.alt=""),this._shadow=z,l.opacity<1&&this._updateOpacity(),P&&this.getPane().appendChild(this._icon),this._initInteraction(),z&&W&&this.getPane(l.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&jt(this._icon,"focus",this._panOnFocus,this),Et(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Et(this._shadow),this._shadow=null},_setPos:function(l){this._icon&&Bt(this._icon,l),this._shadow&&Bt(this._shadow,l),this._zIndex=l.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(l){this._icon&&(this._icon.style.zIndex=this._zIndex+l)},_animateZoom:function(l){var m=this._map._latLngToNewLayerPoint(this._latlng,l.zoom,l.center).round();this._setPos(m)},_initInteraction:function(){if(this.options.interactive&&(it(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Lr)){var l=this.options.draggable;this.dragging&&(l=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Lr(this),l&&this.dragging.enable()}},setOpacity:function(l){return this.options.opacity=l,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var l=this.options.opacity;this._icon&&Rn(this._icon,l),this._shadow&&Rn(this._shadow,l)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var l=this._map;if(l){var m=this.options.icon.options,C=m.iconSize?Q(m.iconSize):Q(0,0),P=m.iconAnchor?Q(m.iconAnchor):Q(0,0);l.panInside(this._latlng,{paddingTopLeft:P,paddingBottomRight:C.subtract(P)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function qs(l,m){return new Ti(l,m)}var Ai=Hr.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(l){this._renderer=l.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(l){return w(this,l),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&l&&Object.prototype.hasOwnProperty.call(l,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),$e=Ai.extend({options:{fill:!0,radius:10},initialize:function(l,m){w(this,m),this._latlng=Ce(l),this._radius=this.options.radius},setLatLng:function(l){var m=this._latlng;return this._latlng=Ce(l),this.redraw(),this.fire("move",{oldLatLng:m,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(l){return this.options.radius=this._radius=l,this.redraw()},getRadius:function(){return this._radius},setStyle:function(l){var m=l&&l.radius||this._radius;return Ai.prototype.setStyle.call(this,l),this.setRadius(m),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var l=this._radius,m=this._radiusY||l,C=this._clickTolerance(),P=[l+C,m+C];this._pxBounds=new $(this._point.subtract(P),this._point.add(P))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(l){return l.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function ii(l,m){return new $e(l,m)}var Fn=$e.extend({initialize:function(l,m,C){if(typeof m=="number"&&(m=u({},C,{radius:m})),w(this,m),this._latlng=Ce(l),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(l){return this._mRadius=l,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var l=[this._radius,this._radiusY||this._radius];return new le(this._map.layerPointToLatLng(this._point.subtract(l)),this._map.layerPointToLatLng(this._point.add(l)))},setStyle:Ai.prototype.setStyle,_project:function(){var l=this._latlng.lng,m=this._latlng.lat,C=this._map,P=C.options.crs;if(P.distance===Me.distance){var z=Math.PI/180,W=this._mRadius/Me.R/z,oe=C.project([m+W,l]),fe=C.project([m-W,l]),pe=oe.add(fe).divideBy(2),Ie=C.unproject(pe).lat,Ue=Math.acos((Math.cos(W*z)-Math.sin(m*z)*Math.sin(Ie*z))/(Math.cos(m*z)*Math.cos(Ie*z)))/z;(isNaN(Ue)||Ue===0)&&(Ue=W/Math.cos(Math.PI/180*m)),this._point=pe.subtract(C.getPixelOrigin()),this._radius=isNaN(Ue)?0:pe.x-C.project([Ie,l-Ue]).x,this._radiusY=pe.y-oe.y}else{var wt=P.unproject(P.project(this._latlng).subtract([this._mRadius,0]));this._point=C.latLngToLayerPoint(this._latlng),this._radius=this._point.x-C.latLngToLayerPoint(wt).x}this._updateBounds()}});function mi(l,m,C){return new Fn(l,m,C)}var Gr=Ai.extend({options:{smoothFactor:1,noClip:!1},initialize:function(l,m){w(this,m),this._setLatLngs(l)},getLatLngs:function(){return this._latlngs},setLatLngs:function(l){return this._setLatLngs(l),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(l){for(var m=1/0,C=null,P=js,z,W,oe=0,fe=this._parts.length;oe<fe;oe++)for(var pe=this._parts[oe],Ie=1,Ue=pe.length;Ie<Ue;Ie++){z=pe[Ie-1],W=pe[Ie];var wt=P(l,z,W,!0);wt<m&&(m=wt,C=P(l,z,W))}return C&&(C.distance=Math.sqrt(m)),C},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Fs(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(l,m){return m=m||this._defaultShape(),l=Ce(l),m.push(l),this._bounds.extend(l),this.redraw()},_setLatLngs:function(l){this._bounds=new le,this._latlngs=this._convertLatLngs(l)},_defaultShape:function(){return sr(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(l){for(var m=[],C=sr(l),P=0,z=l.length;P<z;P++)C?(m[P]=Ce(l[P]),this._bounds.extend(m[P])):m[P]=this._convertLatLngs(l[P]);return m},_project:function(){var l=new $;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,l),this._bounds.isValid()&&l.isValid()&&(this._rawPxBounds=l,this._updateBounds())},_updateBounds:function(){var l=this._clickTolerance(),m=new B(l,l);this._rawPxBounds&&(this._pxBounds=new $([this._rawPxBounds.min.subtract(m),this._rawPxBounds.max.add(m)]))},_projectLatlngs:function(l,m,C){var P=l[0]instanceof ae,z=l.length,W,oe;if(P){for(oe=[],W=0;W<z;W++)oe[W]=this._map.latLngToLayerPoint(l[W]),C.extend(oe[W]);m.push(oe)}else for(W=0;W<z;W++)this._projectLatlngs(l[W],m,C)},_clipPoints:function(){var l=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(l))){if(this.options.noClip){this._parts=this._rings;return}var m=this._parts,C,P,z,W,oe,fe,pe;for(C=0,z=0,W=this._rings.length;C<W;C++)for(pe=this._rings[C],P=0,oe=pe.length;P<oe-1;P++)fe=Ma(pe[P],pe[P+1],l,P,!0),fe&&(m[z]=m[z]||[],m[z].push(fe[0]),(fe[1]!==pe[P+1]||P===oe-2)&&(m[z].push(fe[1]),z++))}},_simplifyPoints:function(){for(var l=this._parts,m=this.options.smoothFactor,C=0,P=l.length;C<P;C++)l[C]=fi(l[C],m)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(l,m){var C,P,z,W,oe,fe,pe=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(l))return!1;for(C=0,W=this._parts.length;C<W;C++)for(fe=this._parts[C],P=0,oe=fe.length,z=oe-1;P<oe;z=P++)if(!(!m&&P===0)&&Da(l,fe[z],fe[P])<=pe)return!0;return!1}});function Uu(l,m){return new Gr(l,m)}Gr._flat=ka;var gs=Gr.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return hi(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(l){var m=Gr.prototype._convertLatLngs.call(this,l),C=m.length;return C>=2&&m[0]instanceof ae&&m[0].equals(m[C-1])&&m.pop(),m},_setLatLngs:function(l){Gr.prototype._setLatLngs.call(this,l),sr(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return sr(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var l=this._renderer._bounds,m=this.options.weight,C=new B(m,m);if(l=new $(l.min.subtract(C),l.max.add(C)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(l))){if(this.options.noClip){this._parts=this._rings;return}for(var P=0,z=this._rings.length,W;P<z;P++)W=fo(this._rings[P],l,!0),W.length&&this._parts.push(W)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(l){var m=!1,C,P,z,W,oe,fe,pe,Ie;if(!this._pxBounds||!this._pxBounds.contains(l))return!1;for(W=0,pe=this._parts.length;W<pe;W++)for(C=this._parts[W],oe=0,Ie=C.length,fe=Ie-1;oe<Ie;fe=oe++)P=C[oe],z=C[fe],P.y>l.y!=z.y>l.y&&l.x<(z.x-P.x)*(l.y-P.y)/(z.y-P.y)+P.x&&(m=!m);return m||Gr.prototype._containsPoint.call(this,l,!0)}});function Ot(l,m){return new gs(l,m)}var Zt=Ii.extend({initialize:function(l,m){w(this,m),this._layers={},l&&this.addData(l)},addData:function(l){var m=D(l)?l:l.features,C,P,z;if(m){for(C=0,P=m.length;C<P;C++)z=m[C],(z.geometries||z.geometry||z.features||z.coordinates)&&this.addData(z);return this}var W=this.options;if(W.filter&&!W.filter(l))return this;var oe=pi(l,W);return oe?(oe.feature=mo(l),oe.defaultOptions=oe.options,this.resetStyle(oe),W.onEachFeature&&W.onEachFeature(l,oe),this.addLayer(oe)):this},resetStyle:function(l){return l===void 0?this.eachLayer(this.resetStyle,this):(l.options=u({},l.defaultOptions),this._setLayerStyle(l,this.options.style),this)},setStyle:function(l){return this.eachLayer(function(m){this._setLayerStyle(m,l)},this)},_setLayerStyle:function(l,m){l.setStyle&&(typeof m=="function"&&(m=m(l.feature)),l.setStyle(m))}});function pi(l,m){var C=l.type==="Feature"?l.geometry:l,P=C?C.coordinates:null,z=[],W=m&&m.pointToLayer,oe=m&&m.coordsToLatLng||Wi,fe,pe,Ie,Ue;if(!P&&!C)return null;switch(C.type){case"Point":return fe=oe(P),or(W,l,fe,m);case"MultiPoint":for(Ie=0,Ue=P.length;Ie<Ue;Ie++)fe=oe(P[Ie]),z.push(or(W,l,fe,m));return new Ii(z);case"LineString":case"MultiLineString":return pe=zs(P,C.type==="LineString"?0:1,oe),new Gr(pe,m);case"Polygon":case"MultiPolygon":return pe=zs(P,C.type==="Polygon"?1:2,oe),new gs(pe,m);case"GeometryCollection":for(Ie=0,Ue=C.geometries.length;Ie<Ue;Ie++){var wt=pi({geometry:C.geometries[Ie],type:"Feature",properties:l.properties},m);wt&&z.push(wt)}return new Ii(z);case"FeatureCollection":for(Ie=0,Ue=C.features.length;Ie<Ue;Ie++){var zt=pi(C.features[Ie],m);zt&&z.push(zt)}return new Ii(z);default:throw new Error("Invalid GeoJSON object.")}}function or(l,m,C,P){return l?l(m,C):new Ti(C,P&&P.markersInheritOptions&&P)}function Wi(l){return new ae(l[1],l[0],l[2])}function zs(l,m,C){for(var P=[],z=0,W=l.length,oe;z<W;z++)oe=m?zs(l[z],m-1,C):(C||Wi)(l[z]),P.push(oe);return P}function vi(l,m){return l=Ce(l),l.alt!==void 0?[_(l.lng,m),_(l.lat,m),_(l.alt,m)]:[_(l.lng,m),_(l.lat,m)]}function gr(l,m,C,P){for(var z=[],W=0,oe=l.length;W<oe;W++)z.push(m?gr(l[W],sr(l[W])?0:m-1,C,P):vi(l[W],P));return!m&&C&&z.length>0&&z.push(z[0].slice()),z}function Pi(l,m){return l.feature?u({},l.feature,{geometry:m}):mo(m)}function mo(l){return l.type==="Feature"||l.type==="FeatureCollection"?l:{type:"Feature",properties:{},geometry:l}}var Zo={toGeoJSON:function(l){return Pi(this,{type:"Point",coordinates:vi(this.getLatLng(),l)})}};Ti.include(Zo),Fn.include(Zo),$e.include(Zo),Gr.include({toGeoJSON:function(l){var m=!sr(this._latlngs),C=gr(this._latlngs,m?1:0,!1,l);return Pi(this,{type:(m?"Multi":"")+"LineString",coordinates:C})}}),gs.include({toGeoJSON:function(l){var m=!sr(this._latlngs),C=m&&!sr(this._latlngs[0]),P=gr(this._latlngs,C?2:m?1:0,!0,l);return m||(P=[P]),Pi(this,{type:(C?"Multi":"")+"Polygon",coordinates:P})}}),fs.include({toMultiPoint:function(l){var m=[];return this.eachLayer(function(C){m.push(C.toGeoJSON(l).geometry.coordinates)}),Pi(this,{type:"MultiPoint",coordinates:m})},toGeoJSON:function(l){var m=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(m==="MultiPoint")return this.toMultiPoint(l);var C=m==="GeometryCollection",P=[];return this.eachLayer(function(z){if(z.toGeoJSON){var W=z.toGeoJSON(l);if(C)P.push(W.geometry);else{var oe=mo(W);oe.type==="FeatureCollection"?P.push.apply(P,oe.features):P.push(oe)}}}),C?Pi(this,{geometries:P,type:"GeometryCollection"}):{type:"FeatureCollection",features:P}}});function Xo(l,m){return new Zt(l,m)}var Di=Xo,Zi=Hr.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(l,m,C){this._url=l,this._bounds=be(m),w(this,C)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(it(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Et(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(l){return this.options.opacity=l,this._image&&this._updateOpacity(),this},setStyle:function(l){return l.opacity&&this.setOpacity(l.opacity),this},bringToFront:function(){return this._map&&xe(this._image),this},bringToBack:function(){return this._map&&nt(this._image),this},setUrl:function(l){return this._url=l,this._image&&(this._image.src=l),this},setBounds:function(l){return this._bounds=be(l),this._map&&this._reset(),this},getEvents:function(){var l={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(l.zoomanim=this._animateZoom),l},setZIndex:function(l){return this.options.zIndex=l,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var l=this._url.tagName==="IMG",m=this._image=l?this._url:Fe("img");if(it(m,"leaflet-image-layer"),this._zoomAnimated&&it(m,"leaflet-zoom-animated"),this.options.className&&it(m,this.options.className),m.onselectstart=x,m.onmousemove=x,m.onload=h(this.fire,this,"load"),m.onerror=h(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(m.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),l){this._url=m.src;return}m.src=this._url,m.alt=this.options.alt},_animateZoom:function(l){var m=this._map.getZoomScale(l.zoom),C=this._map._latLngBoundsToNewLayerBounds(this._bounds,l.zoom,l.center).min;vr(this._image,C,m)},_reset:function(){var l=this._image,m=new $(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),C=m.getSize();Bt(l,m.min),l.style.width=C.x+"px",l.style.height=C.y+"px"},_updateOpacity:function(){Rn(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var l=this.options.errorOverlayUrl;l&&this._url!==l&&(this._url=l,this._image.src=l)},getCenter:function(){return this._bounds.getCenter()}}),Lg=function(l,m,C){return new Zi(l,m,C)},Yo=Zi.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var l=this._url.tagName==="VIDEO",m=this._image=l?this._url:Fe("video");if(it(m,"leaflet-image-layer"),this._zoomAnimated&&it(m,"leaflet-zoom-animated"),this.options.className&&it(m,this.options.className),m.onselectstart=x,m.onmousemove=x,m.onloadeddata=h(this.fire,this,"load"),l){for(var C=m.getElementsByTagName("source"),P=[],z=0;z<C.length;z++)P.push(C[z].src);this._url=C.length>0?P:[m.src];return}D(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(m.style,"objectFit")&&(m.style.objectFit="fill"),m.autoplay=!!this.options.autoplay,m.loop=!!this.options.loop,m.muted=!!this.options.muted,m.playsInline=!!this.options.playsInline;for(var W=0;W<this._url.length;W++){var oe=Fe("source");oe.src=this._url[W],m.appendChild(oe)}}});function ms(l,m,C){return new Yo(l,m,C)}var ps=Zi.extend({_initImage:function(){var l=this._image=this._url;it(l,"leaflet-image-layer"),this._zoomAnimated&&it(l,"leaflet-zoom-animated"),this.options.className&&it(l,this.options.className),l.onselectstart=x,l.onmousemove=x}});function po(l,m,C){return new ps(l,m,C)}var Cr=Hr.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(l,m){l&&(l instanceof ae||D(l))?(this._latlng=Ce(l),w(this,m)):(w(this,l),this._source=m),this.options.content&&(this._content=this.options.content)},openOn:function(l){return l=arguments.length?l:this._source._map,l.hasLayer(this)||l.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(l){return this._map?this.close():(arguments.length?this._source=l:l=this._source,this._prepareOpen(),this.openOn(l._map)),this},onAdd:function(l){this._zoomAnimated=l._zoomAnimated,this._container||this._initLayout(),l._fadeAnimated&&Rn(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),l._fadeAnimated&&Rn(this._container,1),this.bringToFront(),this.options.interactive&&(it(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(l){l._fadeAnimated?(Rn(this._container,0),this._removeTimeout=setTimeout(h(Et,void 0,this._container),200)):Et(this._container),this.options.interactive&&(mn(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(l){return this._latlng=Ce(l),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(l){return this._content=l,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var l={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(l.zoomanim=this._animateZoom),l},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&xe(this._container),this},bringToBack:function(){return this._map&&nt(this._container),this},_prepareOpen:function(l){var m=this._source;if(!m._map)return!1;if(m instanceof Ii){m=null;var C=this._source._layers;for(var P in C)if(C[P]._map){m=C[P];break}if(!m)return!1;this._source=m}if(!l)if(m.getCenter)l=m.getCenter();else if(m.getLatLng)l=m.getLatLng();else if(m.getBounds)l=m.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(l),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var l=this._contentNode,m=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof m=="string")l.innerHTML=m;else{for(;l.hasChildNodes();)l.removeChild(l.firstChild);l.appendChild(m)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var l=this._map.latLngToLayerPoint(this._latlng),m=Q(this.options.offset),C=this._getAnchor();this._zoomAnimated?Bt(this._container,l.add(C)):m=m.add(l).add(C);var P=this._containerBottom=-m.y,z=this._containerLeft=-Math.round(this._containerWidth/2)+m.x;this._container.style.bottom=P+"px",this._container.style.left=z+"px"}},_getAnchor:function(){return[0,0]}});Yt.include({_initOverlay:function(l,m,C,P){var z=m;return z instanceof l||(z=new l(P).setContent(m)),C&&z.setLatLng(C),z}}),Hr.include({_initOverlay:function(l,m,C,P){var z=C;return z instanceof l?(w(z,P),z._source=this):(z=m&&!P?m:new l(P,this),z.setContent(C)),z}});var Ko=Cr.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(l){return l=arguments.length?l:this._source._map,!l.hasLayer(this)&&l._popup&&l._popup.options.autoClose&&l.removeLayer(l._popup),l._popup=this,Cr.prototype.openOn.call(this,l)},onAdd:function(l){Cr.prototype.onAdd.call(this,l),l.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Ai||this._source.on("preclick",Ni))},onRemove:function(l){Cr.prototype.onRemove.call(this,l),l.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Ai||this._source.off("preclick",Ni))},getEvents:function(){var l=Cr.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(l.preclick=this.close),this.options.keepInView&&(l.moveend=this._adjustPan),l},_initLayout:function(){var l="leaflet-popup",m=this._container=Fe("div",l+" "+(this.options.className||"")+" leaflet-zoom-animated"),C=this._wrapper=Fe("div",l+"-content-wrapper",m);if(this._contentNode=Fe("div",l+"-content",C),uo(m),hr(this._contentNode),Pt(m,"contextmenu",Ni),this._tipContainer=Fe("div",l+"-tip-container",m),this._tip=Fe("div",l+"-tip",this._tipContainer),this.options.closeButton){var P=this._closeButton=Fe("a",l+"-close-button",m);P.setAttribute("role","button"),P.setAttribute("aria-label","Close popup"),P.href="#close",P.innerHTML='<span aria-hidden="true">&#215;</span>',Pt(P,"click",function(z){rr(z),this.close()},this)}},_updateLayout:function(){var l=this._contentNode,m=l.style;m.width="",m.whiteSpace="nowrap";var C=l.offsetWidth;C=Math.min(C,this.options.maxWidth),C=Math.max(C,this.options.minWidth),m.width=C+1+"px",m.whiteSpace="",m.height="";var P=l.offsetHeight,z=this.options.maxHeight,W="leaflet-popup-scrolled";z&&P>z?(m.height=z+"px",it(l,W)):mn(l,W),this._containerWidth=this._container.offsetWidth},_animateZoom:function(l){var m=this._map._latLngToNewLayerPoint(this._latlng,l.zoom,l.center),C=this._getAnchor();Bt(this._container,m.add(C))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var l=this._map,m=parseInt(tt(this._container,"marginBottom"),10)||0,C=this._container.offsetHeight+m,P=this._containerWidth,z=new B(this._containerLeft,-C-this._containerBottom);z._add(Pe(this._container));var W=l.layerPointToContainerPoint(z),oe=Q(this.options.autoPanPadding),fe=Q(this.options.autoPanPaddingTopLeft||oe),pe=Q(this.options.autoPanPaddingBottomRight||oe),Ie=l.getSize(),Ue=0,wt=0;W.x+P+pe.x>Ie.x&&(Ue=W.x+P-Ie.x+pe.x),W.x-Ue-fe.x<0&&(Ue=W.x-fe.x),W.y+C+pe.y>Ie.y&&(wt=W.y+C-Ie.y+pe.y),W.y-wt-fe.y<0&&(wt=W.y-fe.y),(Ue||wt)&&(this.options.keepInView&&(this._autopanning=!0),l.fire("autopanstart").panBy([Ue,wt]))}},_getAnchor:function(){return Q(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Bd=function(l,m){return new Ko(l,m)};Yt.mergeOptions({closePopupOnClick:!0}),Yt.include({openPopup:function(l,m,C){return this._initOverlay(Ko,l,m,C).openOn(this),this},closePopup:function(l){return l=arguments.length?l:this._popup,l&&l.close(),this}}),Hr.include({bindPopup:function(l,m){return this._popup=this._initOverlay(Ko,this._popup,l,m),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(l){return this._popup&&(this instanceof Ii||(this._popup._source=this),this._popup._prepareOpen(l||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(l){return this._popup&&this._popup.setContent(l),this},getPopup:function(){return this._popup},_openPopup:function(l){if(!(!this._popup||!this._map)){Ms(l);var m=l.layer||l.target;if(this._popup._source===m&&!(m instanceof Ai)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(l.latlng);return}this._popup._source=m,this.openPopup(l.latlng)}},_movePopup:function(l){this._popup.setLatLng(l.latlng)},_onKeyPress:function(l){l.originalEvent.keyCode===13&&this._openPopup(l)}});var Ba=Cr.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(l){Cr.prototype.onAdd.call(this,l),this.setOpacity(this.options.opacity),l.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(l){Cr.prototype.onRemove.call(this,l),l.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var l=Cr.prototype.getEvents.call(this);return this.options.permanent||(l.preclick=this.close),l},_initLayout:function(){var l="leaflet-tooltip",m=l+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Fe("div",m),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+v(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(l){var m,C,P=this._map,z=this._container,W=P.latLngToContainerPoint(P.getCenter()),oe=P.layerPointToContainerPoint(l),fe=this.options.direction,pe=z.offsetWidth,Ie=z.offsetHeight,Ue=Q(this.options.offset),wt=this._getAnchor();fe==="top"?(m=pe/2,C=Ie):fe==="bottom"?(m=pe/2,C=0):fe==="center"?(m=pe/2,C=Ie/2):fe==="right"?(m=0,C=Ie/2):fe==="left"?(m=pe,C=Ie/2):oe.x<W.x?(fe="right",m=0,C=Ie/2):(fe="left",m=pe+(Ue.x+wt.x)*2,C=Ie/2),l=l.subtract(Q(m,C,!0)).add(Ue).add(wt),mn(z,"leaflet-tooltip-right"),mn(z,"leaflet-tooltip-left"),mn(z,"leaflet-tooltip-top"),mn(z,"leaflet-tooltip-bottom"),it(z,"leaflet-tooltip-"+fe),Bt(z,l)},_updatePosition:function(){var l=this._map.latLngToLayerPoint(this._latlng);this._setPosition(l)},setOpacity:function(l){this.options.opacity=l,this._container&&Rn(this._container,l)},_animateZoom:function(l){var m=this._map._latLngToNewLayerPoint(this._latlng,l.zoom,l.center);this._setPosition(m)},_getAnchor:function(){return Q(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),qd=function(l,m){return new Ba(l,m)};Yt.include({openTooltip:function(l,m,C){return this._initOverlay(Ba,l,m,C).openOn(this),this},closeTooltip:function(l){return l.close(),this}}),Hr.include({bindTooltip:function(l,m){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Ba,this._tooltip,l,m),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(l){if(!(!l&&this._tooltipHandlersAdded)){var m=l?"off":"on",C={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?C.add=this._openTooltip:(C.mouseover=this._openTooltip,C.mouseout=this.closeTooltip,C.click=this._openTooltip,this._map?this._addFocusListeners():C.add=this._addFocusListeners),this._tooltip.options.sticky&&(C.mousemove=this._moveTooltip),this[m](C),this._tooltipHandlersAdded=!l}},openTooltip:function(l){return this._tooltip&&(this instanceof Ii||(this._tooltip._source=this),this._tooltip._prepareOpen(l)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(l){return this._tooltip&&this._tooltip.setContent(l),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(l){var m=typeof l.getElement=="function"&&l.getElement();m&&(Pt(m,"focus",function(){this._tooltip._source=l,this.openTooltip()},this),Pt(m,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(l){var m=typeof l.getElement=="function"&&l.getElement();m&&m.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(l){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var m=this;this._map.once("moveend",function(){m._openOnceFlag=!1,m._openTooltip(l)});return}this._tooltip._source=l.layer||l.target,this.openTooltip(this._tooltip.options.sticky?l.latlng:void 0)}},_moveTooltip:function(l){var m=l.latlng,C,P;this._tooltip.options.sticky&&l.originalEvent&&(C=this._map.mouseEventToContainerPoint(l.originalEvent),P=this._map.containerPointToLayerPoint(C),m=this._map.layerPointToLatLng(P)),this._tooltip.setLatLng(m)}});var Jo=Bs.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(l){var m=l&&l.tagName==="DIV"?l:document.createElement("div"),C=this.options;if(C.html instanceof Element?(pt(m),m.appendChild(C.html)):m.innerHTML=C.html!==!1?C.html:"",C.bgPos){var P=Q(C.bgPos);m.style.backgroundPosition=-P.x+"px "+-P.y+"px"}return this._setIconStyles(m,"icon"),m},createShadow:function(){return null}});function zd(l){return new Jo(l)}Bs.Default=xr;var vs=Hr.extend({options:{tileSize:256,opacity:1,updateWhenIdle:We.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(l){w(this,l)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(l){l._addZoomLimit(this)},onRemove:function(l){this._removeAllTiles(),Et(this._container),l._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(xe(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(nt(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(l){return this.options.opacity=l,this._updateOpacity(),this},setZIndex:function(l){return this.options.zIndex=l,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var l=this._clampZoom(this._map.getZoom());l!==this._tileZoom&&(this._tileZoom=l,this._updateLevels()),this._update()}return this},getEvents:function(){var l={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=p(this._onMoveEnd,this.options.updateInterval,this)),l.move=this._onMove),this._zoomAnimated&&(l.zoomanim=this._animateZoom),l},createTile:function(){return document.createElement("div")},getTileSize:function(){var l=this.options.tileSize;return l instanceof B?l:new B(l,l)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(l){for(var m=this.getPane().children,C=-l(-1/0,1/0),P=0,z=m.length,W;P<z;P++)W=m[P].style.zIndex,m[P]!==this._container&&W&&(C=l(C,+W));isFinite(C)&&(this.options.zIndex=C+l(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!We.ielt9){Rn(this._container,this.options.opacity);var l=+new Date,m=!1,C=!1;for(var P in this._tiles){var z=this._tiles[P];if(!(!z.current||!z.loaded)){var W=Math.min(1,(l-z.loaded)/200);Rn(z.el,W),W<1?m=!0:(z.active?C=!0:this._onOpaqueTile(z),z.active=!0)}}C&&!this._noPrune&&this._pruneTiles(),m&&(A(this._fadeFrame),this._fadeFrame=R(this._updateOpacity,this))}},_onOpaqueTile:x,_initContainer:function(){this._container||(this._container=Fe("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var l=this._tileZoom,m=this.options.maxZoom;if(l!==void 0){for(var C in this._levels)C=Number(C),this._levels[C].el.children.length||C===l?(this._levels[C].el.style.zIndex=m-Math.abs(l-C),this._onUpdateLevel(C)):(Et(this._levels[C].el),this._removeTilesAtZoom(C),this._onRemoveLevel(C),delete this._levels[C]);var P=this._levels[l],z=this._map;return P||(P=this._levels[l]={},P.el=Fe("div","leaflet-tile-container leaflet-zoom-animated",this._container),P.el.style.zIndex=m,P.origin=z.project(z.unproject(z.getPixelOrigin()),l).round(),P.zoom=l,this._setZoomTransform(P,z.getCenter(),z.getZoom()),x(P.el.offsetWidth),this._onCreateLevel(P)),this._level=P,P}},_onUpdateLevel:x,_onRemoveLevel:x,_onCreateLevel:x,_pruneTiles:function(){if(this._map){var l,m,C=this._map.getZoom();if(C>this.options.maxZoom||C<this.options.minZoom){this._removeAllTiles();return}for(l in this._tiles)m=this._tiles[l],m.retain=m.current;for(l in this._tiles)if(m=this._tiles[l],m.current&&!m.active){var P=m.coords;this._retainParent(P.x,P.y,P.z,P.z-5)||this._retainChildren(P.x,P.y,P.z,P.z+2)}for(l in this._tiles)this._tiles[l].retain||this._removeTile(l)}},_removeTilesAtZoom:function(l){for(var m in this._tiles)this._tiles[m].coords.z===l&&this._removeTile(m)},_removeAllTiles:function(){for(var l in this._tiles)this._removeTile(l)},_invalidateAll:function(){for(var l in this._levels)Et(this._levels[l].el),this._onRemoveLevel(Number(l)),delete this._levels[l];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(l,m,C,P){var z=Math.floor(l/2),W=Math.floor(m/2),oe=C-1,fe=new B(+z,+W);fe.z=+oe;var pe=this._tileCoordsToKey(fe),Ie=this._tiles[pe];return Ie&&Ie.active?(Ie.retain=!0,!0):(Ie&&Ie.loaded&&(Ie.retain=!0),oe>P?this._retainParent(z,W,oe,P):!1)},_retainChildren:function(l,m,C,P){for(var z=2*l;z<2*l+2;z++)for(var W=2*m;W<2*m+2;W++){var oe=new B(z,W);oe.z=C+1;var fe=this._tileCoordsToKey(oe),pe=this._tiles[fe];if(pe&&pe.active){pe.retain=!0;continue}else pe&&pe.loaded&&(pe.retain=!0);C+1<P&&this._retainChildren(z,W,C+1,P)}},_resetView:function(l){var m=l&&(l.pinch||l.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),m,m)},_animateZoom:function(l){this._setView(l.center,l.zoom,!0,l.noUpdate)},_clampZoom:function(l){var m=this.options;return m.minNativeZoom!==void 0&&l<m.minNativeZoom?m.minNativeZoom:m.maxNativeZoom!==void 0&&m.maxNativeZoom<l?m.maxNativeZoom:l},_setView:function(l,m,C,P){var z=Math.round(m);this.options.maxZoom!==void 0&&z>this.options.maxZoom||this.options.minZoom!==void 0&&z<this.options.minZoom?z=void 0:z=this._clampZoom(z);var W=this.options.updateWhenZooming&&z!==this._tileZoom;(!P||W)&&(this._tileZoom=z,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),z!==void 0&&this._update(l),C||this._pruneTiles(),this._noPrune=!!C),this._setZoomTransforms(l,m)},_setZoomTransforms:function(l,m){for(var C in this._levels)this._setZoomTransform(this._levels[C],l,m)},_setZoomTransform:function(l,m,C){var P=this._map.getZoomScale(C,l.zoom),z=l.origin.multiplyBy(P).subtract(this._map._getNewPixelOrigin(m,C)).round();We.any3d?vr(l.el,z,P):Bt(l.el,z)},_resetGrid:function(){var l=this._map,m=l.options.crs,C=this._tileSize=this.getTileSize(),P=this._tileZoom,z=this._map.getPixelWorldBounds(this._tileZoom);z&&(this._globalTileRange=this._pxBoundsToTileRange(z)),this._wrapX=m.wrapLng&&!this.options.noWrap&&[Math.floor(l.project([0,m.wrapLng[0]],P).x/C.x),Math.ceil(l.project([0,m.wrapLng[1]],P).x/C.y)],this._wrapY=m.wrapLat&&!this.options.noWrap&&[Math.floor(l.project([m.wrapLat[0],0],P).y/C.x),Math.ceil(l.project([m.wrapLat[1],0],P).y/C.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(l){var m=this._map,C=m._animatingZoom?Math.max(m._animateToZoom,m.getZoom()):m.getZoom(),P=m.getZoomScale(C,this._tileZoom),z=m.project(l,this._tileZoom).floor(),W=m.getSize().divideBy(P*2);return new $(z.subtract(W),z.add(W))},_update:function(l){var m=this._map;if(m){var C=this._clampZoom(m.getZoom());if(l===void 0&&(l=m.getCenter()),this._tileZoom!==void 0){var P=this._getTiledPixelBounds(l),z=this._pxBoundsToTileRange(P),W=z.getCenter(),oe=[],fe=this.options.keepBuffer,pe=new $(z.getBottomLeft().subtract([fe,-fe]),z.getTopRight().add([fe,-fe]));if(!(isFinite(z.min.x)&&isFinite(z.min.y)&&isFinite(z.max.x)&&isFinite(z.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var Ie in this._tiles){var Ue=this._tiles[Ie].coords;(Ue.z!==this._tileZoom||!pe.contains(new B(Ue.x,Ue.y)))&&(this._tiles[Ie].current=!1)}if(Math.abs(C-this._tileZoom)>1){this._setView(l,C);return}for(var wt=z.min.y;wt<=z.max.y;wt++)for(var zt=z.min.x;zt<=z.max.x;zt++){var $n=new B(zt,wt);if($n.z=this._tileZoom,!!this._isValidTile($n)){var Xn=this._tiles[this._tileCoordsToKey($n)];Xn?Xn.current=!0:oe.push($n)}}if(oe.sort(function(mr,xs){return mr.distanceTo(W)-xs.distanceTo(W)}),oe.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Wr=document.createDocumentFragment();for(zt=0;zt<oe.length;zt++)this._addTile(oe[zt],Wr);this._level.el.appendChild(Wr)}}}},_isValidTile:function(l){var m=this._map.options.crs;if(!m.infinite){var C=this._globalTileRange;if(!m.wrapLng&&(l.x<C.min.x||l.x>C.max.x)||!m.wrapLat&&(l.y<C.min.y||l.y>C.max.y))return!1}if(!this.options.bounds)return!0;var P=this._tileCoordsToBounds(l);return be(this.options.bounds).overlaps(P)},_keyToBounds:function(l){return this._tileCoordsToBounds(this._keyToTileCoords(l))},_tileCoordsToNwSe:function(l){var m=this._map,C=this.getTileSize(),P=l.scaleBy(C),z=P.add(C),W=m.unproject(P,l.z),oe=m.unproject(z,l.z);return[W,oe]},_tileCoordsToBounds:function(l){var m=this._tileCoordsToNwSe(l),C=new le(m[0],m[1]);return this.options.noWrap||(C=this._map.wrapLatLngBounds(C)),C},_tileCoordsToKey:function(l){return l.x+":"+l.y+":"+l.z},_keyToTileCoords:function(l){var m=l.split(":"),C=new B(+m[0],+m[1]);return C.z=+m[2],C},_removeTile:function(l){var m=this._tiles[l];m&&(Et(m.el),delete this._tiles[l],this.fire("tileunload",{tile:m.el,coords:this._keyToTileCoords(l)}))},_initTile:function(l){it(l,"leaflet-tile");var m=this.getTileSize();l.style.width=m.x+"px",l.style.height=m.y+"px",l.onselectstart=x,l.onmousemove=x,We.ielt9&&this.options.opacity<1&&Rn(l,this.options.opacity)},_addTile:function(l,m){var C=this._getTilePos(l),P=this._tileCoordsToKey(l),z=this.createTile(this._wrapCoords(l),h(this._tileReady,this,l));this._initTile(z),this.createTile.length<2&&R(h(this._tileReady,this,l,null,z)),Bt(z,C),this._tiles[P]={el:z,coords:l,current:!0},m.appendChild(z),this.fire("tileloadstart",{tile:z,coords:l})},_tileReady:function(l,m,C){m&&this.fire("tileerror",{error:m,tile:C,coords:l});var P=this._tileCoordsToKey(l);C=this._tiles[P],C&&(C.loaded=+new Date,this._map._fadeAnimated?(Rn(C.el,0),A(this._fadeFrame),this._fadeFrame=R(this._updateOpacity,this)):(C.active=!0,this._pruneTiles()),m||(it(C.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:C.el,coords:l})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),We.ielt9||!this._map._fadeAnimated?R(this._pruneTiles,this):setTimeout(h(this._pruneTiles,this),250)))},_getTilePos:function(l){return l.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(l){var m=new B(this._wrapX?y(l.x,this._wrapX):l.x,this._wrapY?y(l.y,this._wrapY):l.y);return m.z=l.z,m},_pxBoundsToTileRange:function(l){var m=this.getTileSize();return new $(l.min.unscaleBy(m).floor(),l.max.unscaleBy(m).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var l in this._tiles)if(!this._tiles[l].loaded)return!1;return!0}});function qa(l){return new vs(l)}var ys=vs.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(l,m){this._url=l,m=w(this,m),m.detectRetina&&We.retina&&m.maxZoom>0?(m.tileSize=Math.floor(m.tileSize/2),m.zoomReverse?(m.zoomOffset--,m.minZoom=Math.min(m.maxZoom,m.minZoom+1)):(m.zoomOffset++,m.maxZoom=Math.max(m.minZoom,m.maxZoom-1)),m.minZoom=Math.max(0,m.minZoom)):m.zoomReverse?m.minZoom=Math.min(m.maxZoom,m.minZoom):m.maxZoom=Math.max(m.minZoom,m.maxZoom),typeof m.subdomains=="string"&&(m.subdomains=m.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(l,m){return this._url===l&&m===void 0&&(m=!0),this._url=l,m||this.redraw(),this},createTile:function(l,m){var C=document.createElement("img");return Pt(C,"load",h(this._tileOnLoad,this,m,C)),Pt(C,"error",h(this._tileOnError,this,m,C)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(C.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(C.referrerPolicy=this.options.referrerPolicy),C.alt="",C.src=this.getTileUrl(l),C},getTileUrl:function(l){var m={r:We.retina?"@2x":"",s:this._getSubdomain(l),x:l.x,y:l.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var C=this._globalTileRange.max.y-l.y;this.options.tms&&(m.y=C),m["-y"]=C}return M(this._url,u(m,this.options))},_tileOnLoad:function(l,m){We.ielt9?setTimeout(h(l,this,null,m),0):l(null,m)},_tileOnError:function(l,m,C){var P=this.options.errorTileUrl;P&&m.getAttribute("src")!==P&&(m.src=P),l(C,m)},_onTileRemove:function(l){l.tile.onload=null},_getZoomForUrl:function(){var l=this._tileZoom,m=this.options.maxZoom,C=this.options.zoomReverse,P=this.options.zoomOffset;return C&&(l=m-l),l+P},_getSubdomain:function(l){var m=Math.abs(l.x+l.y)%this.options.subdomains.length;return this.options.subdomains[m]},_abortLoading:function(){var l,m;for(l in this._tiles)if(this._tiles[l].coords.z!==this._tileZoom&&(m=this._tiles[l].el,m.onload=x,m.onerror=x,!m.complete)){m.src=O;var C=this._tiles[l].coords;Et(m),delete this._tiles[l],this.fire("tileabort",{tile:m,coords:C})}},_removeTile:function(l){var m=this._tiles[l];if(m)return m.el.setAttribute("src",O),vs.prototype._removeTile.call(this,l)},_tileReady:function(l,m,C){if(!(!this._map||C&&C.getAttribute("src")===O))return vs.prototype._tileReady.call(this,l,m,C)}});function Xt(l,m){return new ys(l,m)}var Vu=ys.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(l,m){this._url=l;var C=u({},this.defaultWmsParams);for(var P in m)P in this.options||(C[P]=m[P]);m=w(this,m);var z=m.detectRetina&&We.retina?2:1,W=this.getTileSize();C.width=W.x*z,C.height=W.y*z,this.wmsParams=C},onAdd:function(l){this._crs=this.options.crs||l.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var m=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[m]=this._crs.code,ys.prototype.onAdd.call(this,l)},getTileUrl:function(l){var m=this._tileCoordsToNwSe(l),C=this._crs,P=re(C.project(m[0]),C.project(m[1])),z=P.min,W=P.max,oe=(this._wmsVersion>=1.3&&this._crs===Ra?[z.y,z.x,W.y,W.x]:[z.x,z.y,W.x,W.y]).join(","),fe=ys.prototype.getTileUrl.call(this,l);return fe+j(this.wmsParams,fe,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+oe},setParams:function(l,m){return u(this.wmsParams,l),m||this.redraw(),this}});function Hu(l,m){return new Vu(l,m)}ys.WMS=Vu,Xt.wms=Hu;var Mi=Hr.extend({options:{padding:.1},initialize:function(l){w(this,l),v(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),it(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var l={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(l.zoomanim=this._onAnimZoom),l},_onAnimZoom:function(l){this._updateTransform(l.center,l.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(l,m){var C=this._map.getZoomScale(m,this._zoom),P=this._map.getSize().multiplyBy(.5+this.options.padding),z=this._map.project(this._center,m),W=P.multiplyBy(-C).add(z).subtract(this._map._getNewPixelOrigin(l,m));We.any3d?vr(this._container,W,C):Bt(this._container,W)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var l in this._layers)this._layers[l]._reset()},_onZoomEnd:function(){for(var l in this._layers)this._layers[l]._project()},_updatePaths:function(){for(var l in this._layers)this._layers[l]._update()},_update:function(){var l=this.options.padding,m=this._map.getSize(),C=this._map.containerPointToLayerPoint(m.multiplyBy(-l)).round();this._bounds=new $(C,C.add(m.multiplyBy(1+l*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Jn=Mi.extend({options:{tolerance:0},getEvents:function(){var l=Mi.prototype.getEvents.call(this);return l.viewprereset=this._onViewPreReset,l},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Mi.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var l=this._container=document.createElement("canvas");Pt(l,"mousemove",this._onMouseMove,this),Pt(l,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Pt(l,"mouseout",this._handleMouseOut,this),l._leaflet_disable_events=!0,this._ctx=l.getContext("2d")},_destroyContainer:function(){A(this._redrawRequest),delete this._ctx,Et(this._container),jt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var l;this._redrawBounds=null;for(var m in this._layers)l=this._layers[m],l._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Mi.prototype._update.call(this);var l=this._bounds,m=this._container,C=l.getSize(),P=We.retina?2:1;Bt(m,l.min),m.width=P*C.x,m.height=P*C.y,m.style.width=C.x+"px",m.style.height=C.y+"px",We.retina&&this._ctx.scale(2,2),this._ctx.translate(-l.min.x,-l.min.y),this.fire("update")}},_reset:function(){Mi.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(l){this._updateDashArray(l),this._layers[v(l)]=l;var m=l._order={layer:l,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=m),this._drawLast=m,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(l){this._requestRedraw(l)},_removePath:function(l){var m=l._order,C=m.next,P=m.prev;C?C.prev=P:this._drawLast=P,P?P.next=C:this._drawFirst=C,delete l._order,delete this._layers[v(l)],this._requestRedraw(l)},_updatePath:function(l){this._extendRedrawBounds(l),l._project(),l._update(),this._requestRedraw(l)},_updateStyle:function(l){this._updateDashArray(l),this._requestRedraw(l)},_updateDashArray:function(l){if(typeof l.options.dashArray=="string"){var m=l.options.dashArray.split(/[, ]+/),C=[],P,z;for(z=0;z<m.length;z++){if(P=Number(m[z]),isNaN(P))return;C.push(P)}l.options._dashArray=C}else l.options._dashArray=l.options.dashArray},_requestRedraw:function(l){this._map&&(this._extendRedrawBounds(l),this._redrawRequest=this._redrawRequest||R(this._redraw,this))},_extendRedrawBounds:function(l){if(l._pxBounds){var m=(l.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new $,this._redrawBounds.extend(l._pxBounds.min.subtract([m,m])),this._redrawBounds.extend(l._pxBounds.max.add([m,m]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var l=this._redrawBounds;if(l){var m=l.getSize();this._ctx.clearRect(l.min.x,l.min.y,m.x,m.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var l,m=this._redrawBounds;if(this._ctx.save(),m){var C=m.getSize();this._ctx.beginPath(),this._ctx.rect(m.min.x,m.min.y,C.x,C.y),this._ctx.clip()}this._drawing=!0;for(var P=this._drawFirst;P;P=P.next)l=P.layer,(!m||l._pxBounds&&l._pxBounds.intersects(m))&&l._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(l,m){if(this._drawing){var C,P,z,W,oe=l._parts,fe=oe.length,pe=this._ctx;if(fe){for(pe.beginPath(),C=0;C<fe;C++){for(P=0,z=oe[C].length;P<z;P++)W=oe[C][P],pe[P?"lineTo":"moveTo"](W.x,W.y);m&&pe.closePath()}this._fillStroke(pe,l)}}},_updateCircle:function(l){if(!(!this._drawing||l._empty())){var m=l._point,C=this._ctx,P=Math.max(Math.round(l._radius),1),z=(Math.max(Math.round(l._radiusY),1)||P)/P;z!==1&&(C.save(),C.scale(1,z)),C.beginPath(),C.arc(m.x,m.y/z,P,0,Math.PI*2,!1),z!==1&&C.restore(),this._fillStroke(C,l)}},_fillStroke:function(l,m){var C=m.options;C.fill&&(l.globalAlpha=C.fillOpacity,l.fillStyle=C.fillColor||C.color,l.fill(C.fillRule||"evenodd")),C.stroke&&C.weight!==0&&(l.setLineDash&&l.setLineDash(m.options&&m.options._dashArray||[]),l.globalAlpha=C.opacity,l.lineWidth=C.weight,l.strokeStyle=C.color,l.lineCap=C.lineCap,l.lineJoin=C.lineJoin,l.stroke())},_onClick:function(l){for(var m=this._map.mouseEventToLayerPoint(l),C,P,z=this._drawFirst;z;z=z.next)C=z.layer,C.options.interactive&&C._containsPoint(m)&&(!(l.type==="click"||l.type==="preclick")||!this._map._draggableMoved(C))&&(P=C);this._fireEvent(P?[P]:!1,l)},_onMouseMove:function(l){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var m=this._map.mouseEventToLayerPoint(l);this._handleMouseHover(l,m)}},_handleMouseOut:function(l){var m=this._hoveredLayer;m&&(mn(this._container,"leaflet-interactive"),this._fireEvent([m],l,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(l,m){if(!this._mouseHoverThrottled){for(var C,P,z=this._drawFirst;z;z=z.next)C=z.layer,C.options.interactive&&C._containsPoint(m)&&(P=C);P!==this._hoveredLayer&&(this._handleMouseOut(l),P&&(it(this._container,"leaflet-interactive"),this._fireEvent([P],l,"mouseover"),this._hoveredLayer=P)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,l),this._mouseHoverThrottled=!0,setTimeout(h(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(l,m,C){this._map._fireDOMEvent(m,C||m.type,l)},_bringToFront:function(l){var m=l._order;if(m){var C=m.next,P=m.prev;if(C)C.prev=P;else return;P?P.next=C:C&&(this._drawFirst=C),m.prev=this._drawLast,this._drawLast.next=m,m.next=null,this._drawLast=m,this._requestRedraw(l)}},_bringToBack:function(l){var m=l._order;if(m){var C=m.next,P=m.prev;if(P)P.next=C;else return;C?C.prev=P:P&&(this._drawLast=P),m.prev=null,m.next=this._drawFirst,this._drawFirst.prev=m,this._drawFirst=m,this._requestRedraw(l)}}});function Qo(l){return We.canvas?new Jn(l):null}var Br=(function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(l){return document.createElement("<lvml:"+l+' class="lvml">')}}catch{}return function(l){return document.createElement("<"+l+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}})(),za={_initContainer:function(){this._container=Fe("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Mi.prototype._update.call(this),this.fire("update"))},_initPath:function(l){var m=l._container=Br("shape");it(m,"leaflet-vml-shape "+(this.options.className||"")),m.coordsize="1 1",l._path=Br("path"),m.appendChild(l._path),this._updateStyle(l),this._layers[v(l)]=l},_addPath:function(l){var m=l._container;this._container.appendChild(m),l.options.interactive&&l.addInteractiveTarget(m)},_removePath:function(l){var m=l._container;Et(m),l.removeInteractiveTarget(m),delete this._layers[v(l)]},_updateStyle:function(l){var m=l._stroke,C=l._fill,P=l.options,z=l._container;z.stroked=!!P.stroke,z.filled=!!P.fill,P.stroke?(m||(m=l._stroke=Br("stroke")),z.appendChild(m),m.weight=P.weight+"px",m.color=P.color,m.opacity=P.opacity,P.dashArray?m.dashStyle=D(P.dashArray)?P.dashArray.join(" "):P.dashArray.replace(/( *, *)/g," "):m.dashStyle="",m.endcap=P.lineCap.replace("butt","flat"),m.joinstyle=P.lineJoin):m&&(z.removeChild(m),l._stroke=null),P.fill?(C||(C=l._fill=Br("fill")),z.appendChild(C),C.color=P.fillColor||P.color,C.opacity=P.fillOpacity):C&&(z.removeChild(C),l._fill=null)},_updateCircle:function(l){var m=l._point.round(),C=Math.round(l._radius),P=Math.round(l._radiusY||C);this._setPath(l,l._empty()?"M0 0":"AL "+m.x+","+m.y+" "+C+","+P+" 0,"+65535*360)},_setPath:function(l,m){l._path.v=m},_bringToFront:function(l){xe(l._container)},_bringToBack:function(l){nt(l._container)}},vo=We.vml?Br:De,Us=Mi.extend({_initContainer:function(){this._container=vo("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=vo("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Et(this._container),jt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Mi.prototype._update.call(this);var l=this._bounds,m=l.getSize(),C=this._container;(!this._svgSize||!this._svgSize.equals(m))&&(this._svgSize=m,C.setAttribute("width",m.x),C.setAttribute("height",m.y)),Bt(C,l.min),C.setAttribute("viewBox",[l.min.x,l.min.y,m.x,m.y].join(" ")),this.fire("update")}},_initPath:function(l){var m=l._path=vo("path");l.options.className&&it(m,l.options.className),l.options.interactive&&it(m,"leaflet-interactive"),this._updateStyle(l),this._layers[v(l)]=l},_addPath:function(l){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(l._path),l.addInteractiveTarget(l._path)},_removePath:function(l){Et(l._path),l.removeInteractiveTarget(l._path),delete this._layers[v(l)]},_updatePath:function(l){l._project(),l._update()},_updateStyle:function(l){var m=l._path,C=l.options;m&&(C.stroke?(m.setAttribute("stroke",C.color),m.setAttribute("stroke-opacity",C.opacity),m.setAttribute("stroke-width",C.weight),m.setAttribute("stroke-linecap",C.lineCap),m.setAttribute("stroke-linejoin",C.lineJoin),C.dashArray?m.setAttribute("stroke-dasharray",C.dashArray):m.removeAttribute("stroke-dasharray"),C.dashOffset?m.setAttribute("stroke-dashoffset",C.dashOffset):m.removeAttribute("stroke-dashoffset")):m.setAttribute("stroke","none"),C.fill?(m.setAttribute("fill",C.fillColor||C.color),m.setAttribute("fill-opacity",C.fillOpacity),m.setAttribute("fill-rule",C.fillRule||"evenodd")):m.setAttribute("fill","none"))},_updatePoly:function(l,m){this._setPath(l,ct(l._parts,m))},_updateCircle:function(l){var m=l._point,C=Math.max(Math.round(l._radius),1),P=Math.max(Math.round(l._radiusY),1)||C,z="a"+C+","+P+" 0 1,0 ",W=l._empty()?"M0 0":"M"+(m.x-C)+","+m.y+z+C*2+",0 "+z+-C*2+",0 ";this._setPath(l,W)},_setPath:function(l,m){l._path.setAttribute("d",m)},_bringToFront:function(l){xe(l._path)},_bringToBack:function(l){nt(l._path)}});We.vml&&Us.include(za);function Gu(l){return We.svg||We.vml?new Us(l):null}Yt.include({getRenderer:function(l){var m=l.options.renderer||this._getPaneRenderer(l.options.pane)||this.options.renderer||this._renderer;return m||(m=this._renderer=this._createRenderer()),this.hasLayer(m)||this.addLayer(m),m},_getPaneRenderer:function(l){if(l==="overlayPane"||l===void 0)return!1;var m=this._paneRenderers[l];return m===void 0&&(m=this._createRenderer({pane:l}),this._paneRenderers[l]=m),m},_createRenderer:function(l){return this.options.preferCanvas&&Qo(l)||Gu(l)}});var $o=gs.extend({initialize:function(l,m){gs.prototype.initialize.call(this,this._boundsToLatLngs(l),m)},setBounds:function(l){return this.setLatLngs(this._boundsToLatLngs(l))},_boundsToLatLngs:function(l){return l=be(l),[l.getSouthWest(),l.getNorthWest(),l.getNorthEast(),l.getSouthEast()]}});function Vs(l,m){return new $o(l,m)}Us.create=vo,Us.pointsToPath=ct,Zt.geometryToLayer=pi,Zt.coordsToLatLng=Wi,Zt.coordsToLatLngs=zs,Zt.latLngToCoords=vi,Zt.latLngsToCoords=gr,Zt.getFeature=Pi,Zt.asFeature=mo,Yt.mergeOptions({boxZoom:!0});var ea=ri.extend({initialize:function(l){this._map=l,this._container=l._container,this._pane=l._panes.overlayPane,this._resetStateTimeout=0,l.on("unload",this._destroy,this)},addHooks:function(){Pt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){jt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Et(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(l){if(!l.shiftKey||l.which!==1&&l.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),J(),ft(),this._startPoint=this._map.mouseEventToContainerPoint(l),Pt(document,{contextmenu:Ms,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(l){this._moved||(this._moved=!0,this._box=Fe("div","leaflet-zoom-box",this._container),it(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(l);var m=new $(this._point,this._startPoint),C=m.getSize();Bt(this._box,m.min),this._box.style.width=C.x+"px",this._box.style.height=C.y+"px"},_finish:function(){this._moved&&(Et(this._box),mn(this._container,"leaflet-crosshair")),ge(),yt(),jt(document,{contextmenu:Ms,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(l){if(!(l.which!==1&&l.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(h(this._resetState,this),0);var m=new le(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(m).fire("boxzoomend",{boxZoomBounds:m})}},_onKeyDown:function(l){l.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Yt.addInitHook("addHandler","boxZoom",ea),Yt.mergeOptions({doubleClickZoom:!0});var yo=ri.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(l){var m=this._map,C=m.getZoom(),P=m.options.zoomDelta,z=l.originalEvent.shiftKey?C-P:C+P;m.options.doubleClickZoom==="center"?m.setZoom(z):m.setZoomAround(l.containerPoint,z)}});Yt.addInitHook("addHandler","doubleClickZoom",yo),Yt.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var bs=ri.extend({addHooks:function(){if(!this._draggable){var l=this._map;this._draggable=new br(l._mapPane,l._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),l.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),l.on("zoomend",this._onZoomEnd,this),l.whenReady(this._onZoomEnd,this))}it(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){mn(this._map._container,"leaflet-grab"),mn(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var l=this._map;if(l._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var m=be(this._map.options.maxBounds);this._offsetLimit=re(this._map.latLngToContainerPoint(m.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(m.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;l.fire("movestart").fire("dragstart"),l.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(l){if(this._map.options.inertia){var m=this._lastTime=+new Date,C=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(C),this._times.push(m),this._prunePositions(m)}this._map.fire("move",l).fire("drag",l)},_prunePositions:function(l){for(;this._positions.length>1&&l-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var l=this._map.getSize().divideBy(2),m=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=m.subtract(l).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(l,m){return l-(l-m)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var l=this._draggable._newPos.subtract(this._draggable._startPos),m=this._offsetLimit;l.x<m.min.x&&(l.x=this._viscousLimit(l.x,m.min.x)),l.y<m.min.y&&(l.y=this._viscousLimit(l.y,m.min.y)),l.x>m.max.x&&(l.x=this._viscousLimit(l.x,m.max.x)),l.y>m.max.y&&(l.y=this._viscousLimit(l.y,m.max.y)),this._draggable._newPos=this._draggable._startPos.add(l)}},_onPreDragWrap:function(){var l=this._worldWidth,m=Math.round(l/2),C=this._initialWorldOffset,P=this._draggable._newPos.x,z=(P-m+C)%l+m-C,W=(P+m+C)%l-m-C,oe=Math.abs(z+C)<Math.abs(W+C)?z:W;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=oe},_onDragEnd:function(l){var m=this._map,C=m.options,P=!C.inertia||l.noInertia||this._times.length<2;if(m.fire("dragend",l),P)m.fire("moveend");else{this._prunePositions(+new Date);var z=this._lastPos.subtract(this._positions[0]),W=(this._lastTime-this._times[0])/1e3,oe=C.easeLinearity,fe=z.multiplyBy(oe/W),pe=fe.distanceTo([0,0]),Ie=Math.min(C.inertiaMaxSpeed,pe),Ue=fe.multiplyBy(Ie/pe),wt=Ie/(C.inertiaDeceleration*oe),zt=Ue.multiplyBy(-wt/2).round();!zt.x&&!zt.y?m.fire("moveend"):(zt=m._limitOffset(zt,m.options.maxBounds),R(function(){m.panBy(zt,{duration:wt,easeLinearity:oe,noMoveStart:!0,animate:!0})}))}}});Yt.addInitHook("addHandler","dragging",bs),Yt.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Ua=ri.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(l){this._map=l,this._setPanDelta(l.options.keyboardPanDelta),this._setZoomDelta(l.options.zoomDelta)},addHooks:function(){var l=this._map._container;l.tabIndex<=0&&(l.tabIndex="0"),Pt(l,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),jt(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var l=document.body,m=document.documentElement,C=l.scrollTop||m.scrollTop,P=l.scrollLeft||m.scrollLeft;this._map._container.focus(),window.scrollTo(P,C)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(l){var m=this._panKeys={},C=this.keyCodes,P,z;for(P=0,z=C.left.length;P<z;P++)m[C.left[P]]=[-1*l,0];for(P=0,z=C.right.length;P<z;P++)m[C.right[P]]=[l,0];for(P=0,z=C.down.length;P<z;P++)m[C.down[P]]=[0,l];for(P=0,z=C.up.length;P<z;P++)m[C.up[P]]=[0,-1*l]},_setZoomDelta:function(l){var m=this._zoomKeys={},C=this.keyCodes,P,z;for(P=0,z=C.zoomIn.length;P<z;P++)m[C.zoomIn[P]]=l;for(P=0,z=C.zoomOut.length;P<z;P++)m[C.zoomOut[P]]=-l},_addHooks:function(){Pt(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){jt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(l){if(!(l.altKey||l.ctrlKey||l.metaKey)){var m=l.keyCode,C=this._map,P;if(m in this._panKeys){if(!C._panAnim||!C._panAnim._inProgress)if(P=this._panKeys[m],l.shiftKey&&(P=Q(P).multiplyBy(3)),C.options.maxBounds&&(P=C._limitOffset(Q(P),C.options.maxBounds)),C.options.worldCopyJump){var z=C.wrapLatLng(C.unproject(C.project(C.getCenter()).add(P)));C.panTo(z)}else C.panBy(P)}else if(m in this._zoomKeys)C.setZoom(C.getZoom()+(l.shiftKey?3:1)*this._zoomKeys[m]);else if(m===27&&C._popup&&C._popup.options.closeOnEscapeKey)C.closePopup();else return;Ms(l)}}});Yt.addInitHook("addHandler","keyboard",Ua),Yt.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var ta=ri.extend({addHooks:function(){Pt(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){jt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(l){var m=zu(l),C=this._map.options.wheelDebounceTime;this._delta+=m,this._lastMousePos=this._map.mouseEventToContainerPoint(l),this._startTime||(this._startTime=+new Date);var P=Math.max(C-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(h(this._performZoom,this),P),Ms(l)},_performZoom:function(){var l=this._map,m=l.getZoom(),C=this._map.options.zoomSnap||0;l._stop();var P=this._delta/(this._map.options.wheelPxPerZoomLevel*4),z=4*Math.log(2/(1+Math.exp(-Math.abs(P))))/Math.LN2,W=C?Math.ceil(z/C)*C:z,oe=l._limitZoom(m+(this._delta>0?W:-W))-m;this._delta=0,this._startTime=null,oe&&(l.options.scrollWheelZoom==="center"?l.setZoom(m+oe):l.setZoomAround(this._lastMousePos,m+oe))}});Yt.addInitHook("addHandler","scrollWheelZoom",ta);var rc=600;Yt.mergeOptions({tapHold:We.touchNative&&We.safari&&We.mobile,tapTolerance:15});var Wu=ri.extend({addHooks:function(){Pt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){jt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(l){if(clearTimeout(this._holdTimeout),l.touches.length===1){var m=l.touches[0];this._startPos=this._newPos=new B(m.clientX,m.clientY),this._holdTimeout=setTimeout(h(function(){this._cancel(),this._isTapValid()&&(Pt(document,"touchend",rr),Pt(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",m))},this),rc),Pt(document,"touchend touchcancel contextmenu",this._cancel,this),Pt(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function l(){jt(document,"touchend",rr),jt(document,"touchend touchcancel",l)},_cancel:function(){clearTimeout(this._holdTimeout),jt(document,"touchend touchcancel contextmenu",this._cancel,this),jt(document,"touchmove",this._onMove,this)},_onMove:function(l){var m=l.touches[0];this._newPos=new B(m.clientX,m.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(l,m){var C=new MouseEvent(l,{bubbles:!0,cancelable:!0,view:window,screenX:m.screenX,screenY:m.screenY,clientX:m.clientX,clientY:m.clientY});C._simulated=!0,m.target.dispatchEvent(C)}});Yt.addInitHook("addHandler","tapHold",Wu),Yt.mergeOptions({touchZoom:We.touch,bounceAtZoomLimits:!0});var Qn=ri.extend({addHooks:function(){it(this._map._container,"leaflet-touch-zoom"),Pt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){mn(this._map._container,"leaflet-touch-zoom"),jt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(l){var m=this._map;if(!(!l.touches||l.touches.length!==2||m._animatingZoom||this._zooming)){var C=m.mouseEventToContainerPoint(l.touches[0]),P=m.mouseEventToContainerPoint(l.touches[1]);this._centerPoint=m.getSize()._divideBy(2),this._startLatLng=m.containerPointToLatLng(this._centerPoint),m.options.touchZoom!=="center"&&(this._pinchStartLatLng=m.containerPointToLatLng(C.add(P)._divideBy(2))),this._startDist=C.distanceTo(P),this._startZoom=m.getZoom(),this._moved=!1,this._zooming=!0,m._stop(),Pt(document,"touchmove",this._onTouchMove,this),Pt(document,"touchend touchcancel",this._onTouchEnd,this),rr(l)}},_onTouchMove:function(l){if(!(!l.touches||l.touches.length!==2||!this._zooming)){var m=this._map,C=m.mouseEventToContainerPoint(l.touches[0]),P=m.mouseEventToContainerPoint(l.touches[1]),z=C.distanceTo(P)/this._startDist;if(this._zoom=m.getScaleZoom(z,this._startZoom),!m.options.bounceAtZoomLimits&&(this._zoom<m.getMinZoom()&&z<1||this._zoom>m.getMaxZoom()&&z>1)&&(this._zoom=m._limitZoom(this._zoom)),m.options.touchZoom==="center"){if(this._center=this._startLatLng,z===1)return}else{var W=C._add(P)._divideBy(2)._subtract(this._centerPoint);if(z===1&&W.x===0&&W.y===0)return;this._center=m.unproject(m.project(this._pinchStartLatLng,this._zoom).subtract(W),this._zoom)}this._moved||(m._moveStart(!0,!1),this._moved=!0),A(this._animRequest);var oe=h(m._move,m,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=R(oe,this,!0),rr(l)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,A(this._animRequest),jt(document,"touchmove",this._onTouchMove,this),jt(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});Yt.addInitHook("addHandler","touchZoom",Qn),Yt.BoxZoom=ea,Yt.DoubleClickZoom=yo,Yt.Drag=bs,Yt.Keyboard=Ua,Yt.ScrollWheelZoom=ta,Yt.TapHold=Wu,Yt.TouchZoom=Qn,n.Bounds=$,n.Browser=We,n.CRS=we,n.Canvas=Jn,n.Circle=Fn,n.CircleMarker=$e,n.Class=ee,n.Control=jr,n.DivIcon=Jo,n.DivOverlay=Cr,n.DomEvent=di,n.DomUtil=Ds,n.Draggable=br,n.Evented=K,n.FeatureGroup=Ii,n.GeoJSON=Zt,n.GridLayer=vs,n.Handler=ri,n.Icon=Bs,n.ImageOverlay=Zi,n.LatLng=ae,n.LatLngBounds=le,n.Layer=Hr,n.LayerGroup=fs,n.LineUtil=ec,n.Map=Yt,n.Marker=Ti,n.Mixin=Pa,n.Path=Ai,n.Point=B,n.PolyUtil=go,n.Polygon=gs,n.Polyline=Gr,n.Popup=Ko,n.PosAnimation=zo,n.Projection=tc,n.Rectangle=$o,n.Renderer=Mi,n.SVG=Us,n.SVGOverlay=ps,n.TileLayer=ys,n.Tooltip=Ba,n.Transformation=et,n.Util=X,n.VideoOverlay=Yo,n.bind=h,n.bounds=re,n.canvas=Qo,n.circle=mi,n.circleMarker=ii,n.control=ir,n.divIcon=zd,n.extend=u,n.featureGroup=Fa,n.geoJSON=Xo,n.geoJson=Di,n.gridLayer=qa,n.icon=gi,n.imageOverlay=Lg,n.latLng=Ce,n.latLngBounds=be,n.layerGroup=nc,n.map=ks,n.marker=qs,n.point=Q,n.polygon=Ot,n.polyline=Uu,n.popup=Bd,n.rectangle=Vs,n.setOptions=w,n.stamp=v,n.svg=Gu,n.svgOverlay=po,n.tileLayer=Xt,n.tooltip=qd,n.transformation=Le,n.version=o,n.videoOverlay=ms;var bo=window.L;n.noConflict=function(){return window.L=bo,this},window.L=n}))})(pl,pl.exports)),pl.exports}var An=D3();const _i=bc(An);function P_({target:s}){return E.useEffect(()=>{const t=()=>document.dispatchEvent(new CustomEvent("nlds:content-updated",{detail:{element:s}}));t();let n=null;const o=new MutationObserver(()=>{n&&clearTimeout(n),n=setTimeout(t,100)});return o.observe(s,{childList:!0,subtree:!0,characterData:!0}),()=>{o.disconnect(),n&&clearTimeout(n)}},[s]),null}function vl(s,t){const n=this,o=document.getElementById(s);o&&ji.createRoot(o).render(E.createElement(E.Fragment,null,E.createElement(n,{...t}),E.createElement(P_,{target:o})))}_i.LRMapInteraction=_i.Class.extend({options:{isTouch:!1,messageString:"",blockInteractiveElementsClass:"lr-map-disable-elements",overlayMessageClass:"lr-map-interaction-overlay lr-map-visually-hidden"},initialize:function(s,t){_i.setOptions(this,t),this._map=s,this._mapContainerEl=this._map.getContainer(),this._overlayMessage=this._createOverlayMessage(),this._hideOverlayMessageTimeout=null,this._listenersAdded=!1,this._interactiveElementsBlocked=!1,this._isTouch=this.options.isTouch,this.options.messageString=this.options.messageString||"Gebruik twee vingers om de kaart te bewegen en te zoomen.",this._isTouch&&(this._map.dragging.disable(),this._handleTouchEvents())},_createOverlayMessage:function(){const s=document.createElement("div");return s.className=this.options.overlayMessageClass,this._mapContainerEl.appendChild(s),s},showOverlayMessage:function(){this._clearOverlayMessageTimeout(),this._isMessageVisible||(this._overlayMessage.innerHTML=this.options.messageString,this._overlayMessage.classList.remove("lr-map-visually-hidden"),this._isMessageVisible=!0),this.hideOverlayMessage()},hideOverlayMessage:function(s){this._clearOverlayMessageTimeout(),s?this._hideOverlayMessage():this._hideOverlayMessageTimeout=setTimeout(this._hideOverlayMessage.bind(this),1e3)},_hideOverlayMessage:function(s){this._isMessageVisible&&(s?(this._clearOverlayMessageTimeout(),this._overlayMessage.classList.add("lr-map-visually-hidden"),this._isMessageVisible=!1):this._hideOverlayMessageTimeout=setTimeout(()=>{this._clearOverlayMessageTimeout(),this._overlayMessage.classList.add("lr-map-visually-hidden"),this._isMessageVisible=!1},500))},_clearOverlayMessageTimeout:function(){this._hideOverlayMessageTimeout&&(clearTimeout(this._hideOverlayMessageTimeout),this._hideOverlayMessageTimeout=null)},_blockInteractiveElements:function(s){this._mapContainerEl.classList.toggle(this.options.blockInteractiveElementsClass,s),this._interactiveElementsBlocked=s},_handleTouchEvents:function(){if(this._listenersAdded)return;this._listenersAdded=!0;let s=null,t=0,n=0;const o=10;this._handleTouchStart=u=>{u.touches.length===1?(s="single",t=u.touches[0].clientX,n=u.touches[0].clientY,this._map.dragging.disable()):u.touches.length===2&&(s="multi",u.preventDefault(),this._map.dragging.enable(),this.hideOverlayMessage(!0))},this._handleTouchMove=u=>{if(u.touches.length===1&&s==="single"){const d=Math.abs(u.touches[0].clientX-t),h=Math.abs(u.touches[0].clientY-n);(d>o||h>o)&&(this.showOverlayMessage(),this._map.dragging.disable())}else u.touches.length===2&&(u.preventDefault(),this._map.dragging.enable(),this.hideOverlayMessage(!0))},this._handleTouchEnd=u=>{const d=this._map._popup;let h=!1;if(d){const f=d.getElement();if(f){const v=f.getBoundingClientRect(),p=u.changedTouches[0].clientX,y=u.changedTouches[0].clientY;h=p>=v.left&&p<=v.right&&y>=v.top&&y<=v.bottom}}if(!h&&s==="single"&&u.target===this._mapContainerEl){const f=Math.abs(u.changedTouches[0].clientX-t),v=Math.abs(u.changedTouches[0].clientY-n);f<=o&&v<=o&&this._map.eachLayer(p=>{p instanceof _i.Marker&&p.getPopup&&p.getPopup().isOpen()&&p.closePopup()})}this._map.dragging.disable(),s=null,this.hideOverlayMessage()},this._mapContainerEl.addEventListener("touchstart",this._handleTouchStart),this._mapContainerEl.addEventListener("touchmove",this._handleTouchMove,{passive:!1}),this._mapContainerEl.addEventListener("touchend",this._handleTouchEnd)},destroy:function(){this._isTouch&&this._mapContainerEl&&(this._mapContainerEl.removeEventListener("touchstart",this._handleTouchStart),this._mapContainerEl.removeEventListener("touchmove",this._handleTouchMove),this._mapContainerEl.removeEventListener("touchend",this._handleTouchEnd)),this._overlayMessage&&this._mapContainerEl.removeChild(this._overlayMessage),this._clearOverlayMessageTimeout()}}),_i.mapInteraction=function(s,t){return new _i.LRMapInteraction(s,t)};function kh(s,t){const n=E.useRef(t);E.useEffect(function(){t!==n.current&&s.attributionControl!=null&&(n.current!=null&&s.attributionControl.removeAttribution(n.current),t!=null&&s.attributionControl.addAttribution(t)),n.current=t},[s,t])}function M3(s,t,n){t.center!==n.center&&s.setLatLng(t.center),t.radius!=null&&t.radius!==n.radius&&s.setRadius(t.radius)}const k3=1;function R3(s){return Object.freeze({__version:k3,map:s})}function yl(s,t){return Object.freeze({...s,...t})}const Rh=E.createContext(null),jh=Rh.Provider;function iu(){const s=E.useContext(Rh);if(s==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return s}function Fh(s){function t(n,o){const{instance:u,context:d}=s(n).current;return E.useImperativeHandle(o,()=>u),n.children==null?null:E.createElement(jh,{value:d},n.children)}return E.forwardRef(t)}function j3(s){function t(n,o){const[u,d]=E.useState(!1),{instance:h}=s(n,d).current;E.useImperativeHandle(o,()=>h),E.useEffect(function(){u&&h.update()},[h,u,n.children]);const f=h._contentNode;return f?ul.createPortal(n.children,f):null}return E.forwardRef(t)}function Bh(s){function t(n,o){const{instance:u}=s(n).current;return E.useImperativeHandle(o,()=>u),null}return E.forwardRef(t)}function F3(s){return function(n){const o=iu(),u=s(n,o),{instance:d}=u.current,h=E.useRef(n.position),{position:f}=n;return E.useEffect(function(){return d.addTo(o.map),function(){d.remove()}},[o.map,d]),E.useEffect(function(){f!=null&&f!==h.current&&(d.setPosition(f),h.current=f)},[d,f]),u}}function zc(s,t){const n=E.useRef();E.useEffect(function(){return t!=null&&s.instance.on(t),n.current=t,function(){n.current!=null&&s.instance.off(n.current),n.current=null}},[s,t])}function bl(s,t){const n=s.pane??t.pane;return n?{...s,pane:n}:s}function B3(s,t){return function(o,u){const d=iu(),h=s(bl(o,d),d);return kh(d.map,o.attribution),zc(h.current,o.eventHandlers),t(h.current,d,o,u),h}}function q3(s){return s.split(" ").filter(Boolean)}function z3(s,t){q3(t).forEach(n=>{An.DomUtil.addClass(s,n)})}function U3(s,t){q3(t).forEach(n=>{An.DomUtil.removeClass(s,n)})}function D_(s,t,n){s!=null&&n!==t&&(t!=null&&t.length>0&&U3(s,t),n!=null&&n.length>0&&z3(s,n))}function Js(s,t,n){return Object.freeze({instance:s,context:t,container:n})}function su(s,t){return t==null?function(o,u){const d=E.useRef();return d.current||(d.current=s(o,u)),d}:function(o,u){const d=E.useRef();d.current||(d.current=s(o,u));const h=E.useRef(o),{instance:f}=d.current;return E.useEffect(function(){h.current!==o&&(t(f,o,h.current),h.current=o)},[f,o,u]),d}}function qh(s,t){E.useEffect(function(){return(t.layerContainer??t.map).addLayer(s.instance),function(){var d;(d=t.layerContainer)==null||d.removeLayer(s.instance),t.map.removeLayer(s.instance)}},[t,s])}function zh(s){return function(n){const o=iu(),u=s(bl(n,o),o);return kh(o.map,n.attribution),zc(u.current,n.eventHandlers),qh(u.current,o),u}}function V3(s,t){const n=E.useRef();E.useEffect(function(){if(t.pathOptions!==n.current){const u=t.pathOptions??{};s.instance.setStyle(u),n.current=u}},[s,t])}function H3(s){return function(n){const o=iu(),u=s(bl(n,o),o);return zc(u.current,n.eventHandlers),qh(u.current,o),V3(u.current,n),u}}function M_(s){function t(u,d){return Js(s(u),d)}const n=su(t),o=F3(n);return Bh(o)}function G3(s,t){const n=su(s,t),o=zh(n);return Fh(o)}function Uh(s,t){const n=su(s),o=B3(n,t);return j3(o)}function Uc(s,t){const n=su(s,t),o=H3(n);return Fh(o)}function W3(s,t){const n=su(s,t),o=zh(n);return Bh(o)}function Z3(s,t,n){const{opacity:o,zIndex:u}=t;o!=null&&o!==n.opacity&&s.setOpacity(o),u!=null&&u!==n.zIndex&&s.setZIndex(u)}function k_(s,t,n){t.bounds instanceof An.LatLngBounds&&t.bounds!==n.bounds&&s.setBounds(t.bounds),t.opacity!=null&&t.opacity!==n.opacity&&s.setOpacity(t.opacity),t.zIndex!=null&&t.zIndex!==n.zIndex&&s.setZIndex(t.zIndex)}const R_=Object.freeze(Object.defineProperty({__proto__:null,CONTEXT_VERSION:k3,LeafletContext:Rh,LeafletProvider:jh,addClassName:z3,createContainerComponent:Fh,createControlComponent:M_,createControlHook:F3,createDivOverlayComponent:j3,createDivOverlayHook:B3,createElementHook:su,createElementObject:Js,createLayerComponent:G3,createLayerHook:zh,createLeafComponent:Bh,createLeafletContext:R3,createOverlayComponent:Uh,createPathComponent:Uc,createPathHook:H3,createTileLayerComponent:W3,extendContext:yl,removeClassName:U3,updateCircle:M3,updateClassName:D_,updateGridLayer:Z3,updateMediaOverlay:k_,useAttribution:kh,useEventHandlers:zc,useLayerLifecycle:qh,useLeafletContext:iu,usePathOptions:V3,withPane:bl},Symbol.toStringTag,{value:"Module"}));function ou(){return iu().map}function j_(s){const t=ou();return E.useEffect(function(){return t.on(s),function(){t.off(s)}},[t,s]),t}const F_=Uc(function({center:t,children:n,...o},u){const d=new An.Circle(t,o);return Js(d,yl(u,{overlayContainer:d}))},M3);function Vh(){return Vh=Object.assign||function(s){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(s[o]=n[o])}return s},Vh.apply(this,arguments)}function B_({bounds:s,boundsOptions:t,center:n,children:o,className:u,id:d,placeholder:h,style:f,whenReady:v,zoom:p,...y},x){const[_]=E.useState({className:u,id:d,style:f}),[S,N]=E.useState(null);E.useImperativeHandle(x,()=>(S==null?void 0:S.map)??null,[S]);const w=E.useCallback(U=>{if(U!==null&&S===null){const M=new An.Map(U,y);n!=null&&p!=null?M.setView(n,p):s!=null&&M.fitBounds(s,t),v!=null&&M.whenReady(v),N(R3(M))}},[]);E.useEffect(()=>()=>{S==null||S.map.remove()},[S]);const j=S?E.createElement(jh,{value:S},o):h??null;return E.createElement("div",Vh({},_,{ref:w}),j)}const q_=E.forwardRef(B_),X3=G3(function({position:t,...n},o){const u=new An.Marker(t,n);return Js(u,yl(o,{overlayContainer:u}))},function(t,n,o){n.position!==o.position&&t.setLatLng(n.position),n.icon!=null&&n.icon!==o.icon&&t.setIcon(n.icon),n.zIndexOffset!=null&&n.zIndexOffset!==o.zIndexOffset&&t.setZIndexOffset(n.zIndexOffset),n.opacity!=null&&n.opacity!==o.opacity&&t.setOpacity(n.opacity),t.dragging!=null&&n.draggable!==o.draggable&&(n.draggable===!0?t.dragging.enable():t.dragging.disable())}),Vc=Uc(function({positions:t,...n},o){const u=new An.Polygon(t,n);return Js(u,yl(o,{overlayContainer:u}))},function(t,n,o){n.positions!==o.positions&&t.setLatLngs(n.positions)}),z_=Uc(function({positions:t,...n},o){const u=new An.Polyline(t,n);return Js(u,yl(o,{overlayContainer:u}))},function(t,n,o){n.positions!==o.positions&&t.setLatLngs(n.positions)}),Y3=Uh(function(t,n){const o=new An.Popup(t,n.overlayContainer);return Js(o,n)},function(t,n,{position:o},u){E.useEffect(function(){const{instance:h}=t;function f(p){p.popup===h&&(h.update(),u(!0))}function v(p){p.popup===h&&u(!1)}return n.map.on({popupopen:f,popupclose:v}),n.overlayContainer==null?(o!=null&&h.setLatLng(o),h.openOn(n.map)):n.overlayContainer.bindPopup(h),function(){var y;n.map.off({popupopen:f,popupclose:v}),(y=n.overlayContainer)==null||y.unbindPopup(),n.map.removeLayer(h)}},[t,n,u,o])}),xl=W3(function({url:t,...n},o){const u=new An.TileLayer(t,bl(n,o));return Js(u,o)},function(t,n,o){Z3(t,n,o);const{url:u}=n;u!=null&&u!==o.url&&t.setUrl(u)}),U_=Uh(function(t,n){const o=new An.Tooltip(t,n.overlayContainer);return Js(o,n)},function(t,n,{position:o},u){E.useEffect(function(){const h=n.overlayContainer;if(h==null)return;const{instance:f}=t,v=y=>{y.tooltip===f&&(o!=null&&f.setLatLng(o),f.update(),u(!0))},p=y=>{y.tooltip===f&&u(!1)};return h.on({tooltipopen:v,tooltipclose:p}),h.bindTooltip(f),function(){h.off({tooltipopen:v,tooltipclose:p}),h._map!=null&&h.unbindTooltip()}},[t,n,u,o])});var Bi={exports:{}},si={},K3;function sn(){if(K3)return si;K3=1;function s(n,o){return{type:"Feature",properties:o||{},geometry:n}}si.feature=s,si.point=function(n,o){if(!Array.isArray(n))throw new Error("Coordinates must be an array");if(n.length<2)throw new Error("Coordinates must be at least 2 numbers long");return s({type:"Point",coordinates:n.slice()},o)},si.polygon=function(n,o){if(!n)throw new Error("No coordinates passed");for(var u=0;u<n.length;u++){var d=n[u];if(d.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var h=0;h<d[d.length-1].length;h++)if(d[d.length-1][h]!==d[0][h])throw new Error("First and last Position are not equivalent.")}return s({type:"Polygon",coordinates:n},o)},si.lineString=function(n,o){if(!n)throw new Error("No coordinates passed");return s({type:"LineString",coordinates:n},o)},si.featureCollection=function(n){return{type:"FeatureCollection",features:n}},si.multiLineString=function(n,o){if(!n)throw new Error("No coordinates passed");return s({type:"MultiLineString",coordinates:n},o)},si.multiPoint=function(n,o){if(!n)throw new Error("No coordinates passed");return s({type:"MultiPoint",coordinates:n},o)},si.multiPolygon=function(n,o){if(!n)throw new Error("No coordinates passed");return s({type:"MultiPolygon",coordinates:n},o)},si.geometryCollection=function(n,o){return s({type:"GeometryCollection",geometries:n},o)};var t={miles:3960,nauticalmiles:3441.145,degrees:57.2957795,radians:1,inches:250905600,yards:6969600,meters:6373e3,metres:6373e3,kilometers:6373,kilometres:6373};return si.radiansToDistance=function(n,o){var u=t[o||"kilometers"];if(u===void 0)throw new Error("Invalid unit");return n*u},si.distanceToRadians=function(n,o){var u=t[o||"kilometers"];if(u===void 0)throw new Error("Invalid unit");return n/u},si.distanceToDegrees=function(n,o){var u=t[o||"kilometers"];if(u===void 0)throw new Error("Invalid unit");return n/u*57.2958},si}var Hh,J3;function Gh(){if(J3)return Hh;J3=1;var s=sn().polygon,t=sn().featureCollection;Hh=function(h,f){return t(d(h.features.map(function(v){var p={x:v.geometry.coordinates[0],y:v.geometry.coordinates[1]};return f&&(p.z=v.properties[f]),p})).map(function(v){return s([[[v.a.x,v.a.y],[v.b.x,v.b.y],[v.c.x,v.c.y],[v.a.x,v.a.y]]],{a:v.a.z,b:v.b.z,c:v.c.z})}))};function n(h,f,v){this.a=h,this.b=f,this.c=v;var p=f.x-h.x,y=f.y-h.y,x=v.x-h.x,_=v.y-h.y,S=p*(h.x+f.x)+y*(h.y+f.y),N=x*(h.x+v.x)+_*(h.y+v.y),w=2*(p*(v.y-f.y)-y*(v.x-f.x)),j,U,M,D;Math.abs(w)<1e-6?(j=Math.min(h.x,f.x,v.x),U=Math.min(h.y,f.y,v.y),M=(Math.max(h.x,f.x,v.x)-j)*.5,D=(Math.max(h.y,f.y,v.y)-U)*.5,this.x=j+M,this.y=U+D,this.r=M*M+D*D):(this.x=(_*S-y*N)/w,this.y=(p*N-x*S)/w,M=this.x-h.x,D=this.y-h.y,this.r=M*M+D*D)}function o(h,f){return f.x-h.x}function u(h){var f=h.length,v,p,y,x,_;e:for(;f;)for(p=h[--f],v=h[--f],y=f;y;)if(_=h[--y],x=h[--y],v===x&&p===_||v===_&&p===x){h.splice(f,2),h.splice(y,2),f-=2;continue e}}function d(h){if(h.length<3)return[];h.sort(o);for(var f=h.length-1,v=h[f].x,p=h[0].x,y=h[f].y,x=y;f--;)h[f].y<y&&(y=h[f].y),h[f].y>x&&(x=h[f].y);var _=p-v,S=x-y,N=_>S?_:S,w=(p+v)*.5,j=(x+y)*.5,U=[new n({x:w-20*N,y:j-N,__sentinel:!0},{x:w,y:j+20*N,__sentinel:!0},{x:w+20*N,y:j-N,__sentinel:!0})],M=[],D=[],T,O,q;for(f=h.length;f--;){for(D.length=0,T=U.length;T--;){if(_=h[f].x-U[T].x,_>0&&_*_>U[T].r){M.push(U[T]),U.splice(T,1);continue}S=h[f].y-U[T].y,!(_*_+S*S>U[T].r)&&(D.push(U[T].a,U[T].b,U[T].b,U[T].c,U[T].c,U[T].a),U.splice(T,1))}for(u(D),T=D.length;T;)q=D[--T],O=D[--T],U.push(new n(O,q,h[f]))}for(Array.prototype.push.apply(M,U),f=M.length;f--;)(M[f].a.__sentinel||M[f].b.__sentinel||M[f].c.__sentinel)&&M.splice(f,1);return M}return Hh}var au={},Q3;function Hc(){if(Q3)return au;Q3=1;function s(u){if(Array.isArray(u)&&typeof u[0]=="number"&&typeof u[1]=="number")return u;if(u){if(u.type==="Feature"&&u.geometry&&u.geometry.type==="Point"&&Array.isArray(u.geometry.coordinates))return u.geometry.coordinates;if(u.type==="Point"&&Array.isArray(u.coordinates))return u.coordinates}throw new Error("A coordinate, feature, or point geometry is required")}function t(u,d,h){if(!d||!h)throw new Error("type and name required");if(!u||u.type!==d)throw new Error("Invalid input to "+h+": must be a "+d+", given "+u.type)}function n(u,d,h){if(!h)throw new Error(".featureOf() requires a name");if(!u||u.type!=="Feature"||!u.geometry)throw new Error("Invalid input to "+h+", Feature with geometry required");if(!u.geometry||u.geometry.type!==d)throw new Error("Invalid input to "+h+": must be a "+d+", given "+u.geometry.type)}function o(u,d,h){if(!h)throw new Error(".collectionOf() requires a name");if(!u||u.type!=="FeatureCollection")throw new Error("Invalid input to "+h+", FeatureCollection required");for(var f=0;f<u.features.length;f++){var v=u.features[f];if(!v||v.type!=="Feature"||!v.geometry)throw new Error("Invalid input to "+h+", Feature with geometry required");if(!v.geometry||v.geometry.type!==d)throw new Error("Invalid input to "+h+": must be a "+d+", given "+v.geometry.type)}}return au.geojsonType=t,au.collectionOf=o,au.featureOf=n,au.getCoord=s,au}var Wh,$3;function uu(){if($3)return Wh;$3=1;var s=Hc();Wh=function(o,u){var d=s.getCoord(o),h=u.geometry.coordinates;u.geometry.type==="Polygon"&&(h=[h]);for(var f=0,v=!1;f<h.length&&!v;f++)if(t(d,h[f][0])){for(var p=!1,y=1;y<h[f].length&&!p;)t(d,h[f][y])&&(p=!0),y++;p||(v=!0)}return v};function t(n,o){for(var u=!1,d=0,h=o.length-1;d<o.length;h=d++){var f=o[d][0],v=o[d][1],p=o[h][0],y=o[h][1],x=v>n[1]!=y>n[1]&&n[0]<(p-f)*(n[1]-v)/(y-v)+f;x&&(u=!u)}return u}return Wh}var Zh,e6;function V_(){if(e6)return Zh;e6=1;var s=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};return Zh=function(t,n){if(!s(t))throw new Error("Coordinates must be an array");if(t.length<2)throw new Error("Coordinates must be at least 2 numbers long");return{type:"Feature",geometry:{type:"Point",coordinates:t},properties:n||{}}},Zh}var Xh,t6;function H_(){if(t6)return Xh;t6=1;var s=V_();return Xh=function(t,n){var o=t[0],u=t[1],d=t[2];t[3];for(var h=(d-o)/n,f={type:"FeatureCollection",features:[]},v=0;v<=n;v++)for(var p=0;p<=n;p++)f.features.push(s([v*h+o,p*h+u]));return f},Xh}var No={},n6;function lu(){if(n6)return No;n6=1;function s(h,f,v){var p,y,x,_,S,N,w,j,U,M=0,D,T=h.type==="FeatureCollection",O=h.type==="Feature",q=T?h.features.length:1;for(p=0;p<q;p++)for(U=T?h.features[p].geometry:O?h.geometry:h,D=U.type==="GeometryCollection",w=D?U.geometries.length:1,_=0;_<w;_++)if(N=D?U.geometries[_]:U,j=N.coordinates,M=v&&(N.type==="Polygon"||N.type==="MultiPolygon")?1:0,N.type==="Point")f(j);else if(N.type==="LineString"||N.type==="MultiPoint")for(y=0;y<j.length;y++)f(j[y]);else if(N.type==="Polygon"||N.type==="MultiLineString")for(y=0;y<j.length;y++)for(x=0;x<j[y].length-M;x++)f(j[y][x]);else if(N.type==="MultiPolygon")for(y=0;y<j.length;y++)for(x=0;x<j[y].length;x++)for(S=0;S<j[y][x].length-M;S++)f(j[y][x][S]);else throw new Error("Unknown Geometry Type")}No.coordEach=s;function t(h,f,v,p){return s(h,function(y){v=f(v,y)},p),v}No.coordReduce=t;function n(h,f){var v;switch(h.type){case"FeatureCollection":for(v=0;v<h.features.length;v++)f(h.features[v].properties);break;case"Feature":f(h.properties);break}}No.propEach=n;function o(h,f,v){return n(h,function(p){v=f(v,p)}),v}No.propReduce=o;function u(h,f){if(h.type==="Feature")f(h);else if(h.type==="FeatureCollection")for(var v=0;v<h.features.length;v++)f(h.features[v])}No.featureEach=u;function d(h){var f=[];return s(h,function(v){f.push(v)}),f}return No.coordAll=d,No}var Yh,r6;function Gc(){if(r6)return Yh;r6=1;var s=lu().coordEach;return Yh=function(t){var n=[1/0,1/0,-1/0,-1/0];return s(t,function(o){n[0]>o[0]&&(n[0]=o[0]),n[1]>o[1]&&(n[1]=o[1]),n[2]<o[0]&&(n[2]=o[0]),n[3]<o[1]&&(n[3]=o[1])}),n},Yh}var Kh,i6;function s6(){return i6||(i6=1,Kh=function(s,t){var n=s.geometry.coordinates[0],o=s.geometry.coordinates[1],u=t.geometry.coordinates[0][0][0],d=t.geometry.coordinates[0][0][1],h=t.properties.a,f=t.geometry.coordinates[0][1][0],v=t.geometry.coordinates[0][1][1],p=t.properties.b,y=t.geometry.coordinates[0][2][0],x=t.geometry.coordinates[0][2][1],_=t.properties.c,S=(_*(n-u)*(o-v)+h*(n-f)*(o-x)+p*(n-y)*(o-d)-p*(n-u)*(o-x)-_*(n-f)*(o-d)-h*(n-y)*(o-v))/((n-u)*(o-v)+(n-f)*(o-x)+(n-y)*(o-d)-(n-u)*(o-x)-(n-f)*(o-d)-(n-y)*(o-v));return S}),Kh}var Jh,o6;function Ei(){if(o6)return Jh;o6=1;var s=Hc().getCoord,t=sn().radiansToDistance;return Jh=function(n,o,u){var d=Math.PI/180,h=s(n),f=s(o),v=d*(f[1]-h[1]),p=d*(f[0]-h[0]),y=d*h[1],x=d*f[1],_=Math.pow(Math.sin(v/2),2)+Math.pow(Math.sin(p/2),2)*Math.cos(y)*Math.cos(x);return t(2*Math.atan2(Math.sqrt(_),Math.sqrt(1-_)),u)},Jh}var Qh,a6;function u6(){if(a6)return Qh;a6=1;var s=Ei();return Qh=function(t){var n=s(t.slice(0,2),[t[2],t[1]],"miles"),o=s(t.slice(0,2),[t[0],t[3]],"miles");if(n>=o){var u=(t[1]+t[3])/2;return[t[0],u-(t[2]-t[0])/2,t[2],u+(t[2]-t[0])/2]}else{var d=(t[0]+t[2])/2;return[d-(t[3]-t[1])/2,t[1],d+(t[3]-t[1])/2,t[3]]}},Qh}var $h,l6;function G_(){if(l6)return $h;l6=1,$h=u;var s=1e-10;function t(d,h){var f=d.x-h.x,v=d.y-h.y;return f*f+v*v<s}function n(d){for(var h=d.head;h;){var f=h.next;h.next=h.prev,h.prev=f,h=f}var f=d.head;d.head=d.tail,d.tail=f}function o(d){this.level=d,this.s=null,this.count=0}o.prototype.remove_seq=function(d){d.prev?d.prev.next=d.next:this.s=d.next,d.next&&(d.next.prev=d.prev),--this.count},o.prototype.addSegment=function(d,h){for(var f=this.s,v=null,p=null,y=!1,x=!1;f&&(v==null&&(t(d,f.head.p)?(v=f,y=!0):t(d,f.tail.p)&&(v=f)),p==null&&(t(h,f.head.p)?(p=f,x=!0):t(h,f.tail.p)&&(p=f)),!(p!=null&&v!=null));)f=f.next;var _=(v!=null?1:0)|(p!=null?2:0);switch(_){case 0:var S={p:d,prev:null},N={p:h,next:null};S.next=N,N.prev=S,v={head:S,tail:N,next:this.s,prev:null,closed:!1},this.s&&(this.s.prev=v),this.s=v,++this.count;break;case 1:var w={p:h};y?(w.next=v.head,w.prev=null,v.head.prev=w,v.head=w):(w.next=null,w.prev=v.tail,v.tail.next=w,v.tail=w);break;case 2:var w={p:d};x?(w.next=p.head,w.prev=null,p.head.prev=w,p.head=w):(w.next=null,w.prev=p.tail,p.tail.next=w,p.tail=w);break;case 3:if(v===p){var w={p:v.tail.p,next:v.head,prev:null};v.head.prev=w,v.head=w,v.closed=!0;break}switch((y?1:0)|(x?2:0)){case 0:n(v);case 1:p.tail.next=v.head,v.head.prev=p.tail,p.tail=v.tail,this.remove_seq(v);break;case 3:n(v);case 2:v.tail.next=p.head,p.head.prev=v.tail,v.tail=p.tail,this.remove_seq(p);break}}};function u(d){if(d)this.drawContour=d;else{var h=this;h.contours={},this.drawContour=function(f,v,p,y,x,_){var S=h.contours[_];S||(S=h.contours[_]=new o(x)),S.addSegment({x:f,y:v},{x:p,y})},this.contourList=function(){var f=[],v=h.contours;for(var p in v)for(var y=v[p].s,x=v[p].level;y;){var _=y.head,S=[];for(S.level=x,S.k=p;_&&_.p;)S.push(_.p),_=_.next;f.push(S),y=y.next}return f.sort(function(N,w){return N.k-w.k}),f}}this.h=new Array(5),this.sh=new Array(5),this.xh=new Array(5),this.yh=new Array(5)}return u.prototype.contour=function(d,h,f,v,p,y,x,_,S){var N=this.h,w=this.sh,j=this.xh,U=this.yh,M=this.drawContour;this.contours={};for(var D=function(be,ae){return(N[ae]*j[be]-N[be]*j[ae])/(N[ae]-N[be])},T=function(be,ae){return(N[ae]*U[be]-N[be]*U[ae])/(N[ae]-N[be])},O,q,k,H,V,Y,R=0,A=0,X=0,ee=0,ue=[0,1,1,0],G=[0,0,1,1],K=[[[0,0,8],[0,2,5],[7,6,9]],[[0,3,4],[1,3,1],[4,3,0]],[[9,6,7],[5,2,0],[8,0,0]]],B=p-1;B>=v;B--)for(var te=h;te<=f-1;te++){var Q,$;if(Q=Math.min(d[te][B],d[te][B+1]),$=Math.min(d[te+1][B],d[te+1][B+1]),V=Math.min(Q,$),Q=Math.max(d[te][B],d[te][B+1]),$=Math.max(d[te+1][B],d[te+1][B+1]),Y=Math.max(Q,$),Y>=S[0]&&V<=S[_-1]){for(var re=0;re<_;re++)if(S[re]>=V&&S[re]<=Y){for(var le=4;le>=0;le--)le>0?(N[le]=d[te+ue[le-1]][B+G[le-1]]-S[re],j[le]=y[te+ue[le-1]],U[le]=x[B+G[le-1]]):(N[0]=.25*(N[1]+N[2]+N[3]+N[4]),j[0]=.5*(y[te]+y[te+1]),U[0]=.5*(x[B]+x[B+1])),N[le]>s?w[le]=1:N[le]<-s?w[le]=-1:w[le]=0;for(le=1;le<=4;le++)if(O=le,q=0,le!=4?k=le+1:k=1,H=K[w[O]+1][w[q]+1][w[k]+1],H!=0){switch(H){case 1:R=j[O],X=U[O],A=j[q],ee=U[q];break;case 2:R=j[q],X=U[q],A=j[k],ee=U[k];break;case 3:R=j[k],X=U[k],A=j[O],ee=U[O];break;case 4:R=j[O],X=U[O],A=D(q,k),ee=T(q,k);break;case 5:R=j[q],X=U[q],A=D(k,O),ee=T(k,O);break;case 6:R=j[k],X=U[k],A=D(O,q),ee=T(O,q);break;case 7:R=D(O,q),X=T(O,q),A=D(q,k),ee=T(q,k);break;case 8:R=D(q,k),X=T(q,k),A=D(k,O),ee=T(k,O);break;case 9:R=D(k,O),X=T(k,O),A=D(O,q),ee=T(O,q);break}M(R,X,A,ee,S[re],re)}}}}},$h}var ef,c6;function W_(){if(c6)return ef;c6=1;var s=Gh(),t=uu(),n=H_(),o=Gc(),u=s6(),d=sn().featureCollection,h=sn().lineString,f=u6(),v=G_();return ef=function(p,y,x,_){for(var S=s(p,y),N=o(p),w=f(N),j=n(w,x),U=[],M=0;M<j.features.length;M++)for(var D=j.features[M],T=0;T<S.features.length;T++){var O=S.features[T];t(D,O)&&(D.properties={},D.properties[y]=u(D,O))}for(var q=Math.sqrt(j.features.length),k=0;k<q;k++){for(var H=j.features.slice(k*q,(k+1)*q),V=[],Y=0;Y<H.length;Y++)H[Y].properties?V.push(H[Y].properties[y]):V.push(0);U.push(V)}for(var R=(w[2]-w[0])/q,A=[],X=[],ee=0;ee<q;ee++)A.push(ee*R+w[0]),X.push(ee*R+w[1]);var ue=new v;ue.contour(U,0,x,0,x,A,X,_.length,_);var G=ue.contourList(),K=d([]);return G.forEach(function(B){if(B.length>2){var te=[];B.forEach(function($){te.push([$.x,$.y])});var Q=h(te);Q.properties={},Q.properties[y]=B.level,K.features.push(Q)}}),K},ef}var tf,d6;function Z_(){if(d6)return tf;d6=1,tf=s;function s(t){for(var n=0,o=0,u=1;u<t.length;++u)t[u][0]<t[n][0]&&(n=u),t[u][0]>t[o][0]&&(o=u);return n<o?[[n],[o]]:n>o?[[o],[n]]:[[n]]}return tf}var nf={exports:{}},rf,h6;function f6(){if(h6)return rf;h6=1,rf=t;var s=+(Math.pow(2,27)+1);function t(n,o,u){var d=n*o,h=s*n,f=h-n,v=h-f,p=n-v,y=s*o,x=y-o,_=y-x,S=o-_,N=d-v*_,w=N-p*_,j=w-v*S,U=p*S-j;return u?(u[0]=U,u[1]=d,u):[U,d]}return rf}var sf,g6;function X_(){if(g6)return sf;g6=1,sf=t;function s(n,o){var u=n+o,d=u-n,h=u-d,f=o-d,v=n-h,p=v+f;return p?[p,u]:[u]}function t(n,o){var u=n.length|0,d=o.length|0;if(u===1&&d===1)return s(n[0],o[0]);var h=u+d,f=new Array(h),v=0,p=0,y=0,x=Math.abs,_=n[p],S=x(_),N=o[y],w=x(N),j,U;S<w?(U=_,p+=1,p<u&&(_=n[p],S=x(_))):(U=N,y+=1,y<d&&(N=o[y],w=x(N))),p<u&&S<w||y>=d?(j=_,p+=1,p<u&&(_=n[p],S=x(_))):(j=N,y+=1,y<d&&(N=o[y],w=x(N)));for(var M=j+U,D=M-j,T=U-D,O=T,q=M,k,H,V,Y,R;p<u&&y<d;)S<w?(j=_,p+=1,p<u&&(_=n[p],S=x(_))):(j=N,y+=1,y<d&&(N=o[y],w=x(N))),U=O,M=j+U,D=M-j,T=U-D,T&&(f[v++]=T),k=q+M,H=k-q,V=k-H,Y=M-H,R=q-V,O=R+Y,q=k;for(;p<u;)j=_,U=O,M=j+U,D=M-j,T=U-D,T&&(f[v++]=T),k=q+M,H=k-q,V=k-H,Y=M-H,R=q-V,O=R+Y,q=k,p+=1,p<u&&(_=n[p]);for(;y<d;)j=N,U=O,M=j+U,D=M-j,T=U-D,T&&(f[v++]=T),k=q+M,H=k-q,V=k-H,Y=M-H,R=q-V,O=R+Y,q=k,y+=1,y<d&&(N=o[y]);return O&&(f[v++]=O),q&&(f[v++]=q),v||(f[v++]=0),f.length=v,f}return sf}var of,m6;function Y_(){if(m6)return of;m6=1,of=s;function s(t,n,o){var u=t+n,d=u-t,h=u-d,f=n-d,v=t-h;return o?(o[0]=v+f,o[1]=u,o):[v+f,u]}return of}var af,p6;function K_(){if(p6)return af;p6=1;var s=f6(),t=Y_();af=n;function n(o,u){var d=o.length;if(d===1){var h=s(o[0],u);return h[0]?h:[h[1]]}var f=new Array(2*d),v=[.1,.1],p=[.1,.1],y=0;s(o[0],u,v),v[0]&&(f[y++]=v[0]);for(var x=1;x<d;++x){s(o[x],u,p);var _=v[1];t(_,p[0],v),v[0]&&(f[y++]=v[0]);var S=p[1],N=v[1],w=S+N,j=w-S,U=N-j;v[1]=w,U&&(f[y++]=U)}return v[1]&&(f[y++]=v[1]),y===0&&(f[y++]=0),f.length=y,f}return af}var uf,v6;function J_(){if(v6)return uf;v6=1,uf=t;function s(n,o){var u=n+o,d=u-n,h=u-d,f=o-d,v=n-h,p=v+f;return p?[p,u]:[u]}function t(n,o){var u=n.length|0,d=o.length|0;if(u===1&&d===1)return s(n[0],-o[0]);var h=u+d,f=new Array(h),v=0,p=0,y=0,x=Math.abs,_=n[p],S=x(_),N=-o[y],w=x(N),j,U;S<w?(U=_,p+=1,p<u&&(_=n[p],S=x(_))):(U=N,y+=1,y<d&&(N=-o[y],w=x(N))),p<u&&S<w||y>=d?(j=_,p+=1,p<u&&(_=n[p],S=x(_))):(j=N,y+=1,y<d&&(N=-o[y],w=x(N)));for(var M=j+U,D=M-j,T=U-D,O=T,q=M,k,H,V,Y,R;p<u&&y<d;)S<w?(j=_,p+=1,p<u&&(_=n[p],S=x(_))):(j=N,y+=1,y<d&&(N=-o[y],w=x(N))),U=O,M=j+U,D=M-j,T=U-D,T&&(f[v++]=T),k=q+M,H=k-q,V=k-H,Y=M-H,R=q-V,O=R+Y,q=k;for(;p<u;)j=_,U=O,M=j+U,D=M-j,T=U-D,T&&(f[v++]=T),k=q+M,H=k-q,V=k-H,Y=M-H,R=q-V,O=R+Y,q=k,p+=1,p<u&&(_=n[p]);for(;y<d;)j=N,U=O,M=j+U,D=M-j,T=U-D,T&&(f[v++]=T),k=q+M,H=k-q,V=k-H,Y=M-H,R=q-V,O=R+Y,q=k,y+=1,y<d&&(N=-o[y]);return O&&(f[v++]=O),q&&(f[v++]=q),v||(f[v++]=0),f.length=v,f}return uf}var y6;function lf(){return y6||(y6=1,(function(s){var t=f6(),n=X_(),o=K_(),u=J_(),d=5,h=11102230246251565e-32,f=(3+16*h)*h,v=(7+56*h)*h;function p(D,T,O,q){return function(H,V,Y){var R=D(D(T(V[1],Y[0]),T(-Y[1],V[0])),D(T(H[1],V[0]),T(-V[1],H[0]))),A=D(T(H[1],Y[0]),T(-Y[1],H[0])),X=q(R,A);return X[X.length-1]}}function y(D,T,O,q){return function(H,V,Y,R){var A=D(D(O(D(T(Y[1],R[0]),T(-R[1],Y[0])),V[2]),D(O(D(T(V[1],R[0]),T(-R[1],V[0])),-Y[2]),O(D(T(V[1],Y[0]),T(-Y[1],V[0])),R[2]))),D(O(D(T(V[1],R[0]),T(-R[1],V[0])),H[2]),D(O(D(T(H[1],R[0]),T(-R[1],H[0])),-V[2]),O(D(T(H[1],V[0]),T(-V[1],H[0])),R[2])))),X=D(D(O(D(T(Y[1],R[0]),T(-R[1],Y[0])),H[2]),D(O(D(T(H[1],R[0]),T(-R[1],H[0])),-Y[2]),O(D(T(H[1],Y[0]),T(-Y[1],H[0])),R[2]))),D(O(D(T(V[1],Y[0]),T(-Y[1],V[0])),H[2]),D(O(D(T(H[1],Y[0]),T(-Y[1],H[0])),-V[2]),O(D(T(H[1],V[0]),T(-V[1],H[0])),Y[2])))),ee=q(A,X);return ee[ee.length-1]}}function x(D,T,O,q){return function(H,V,Y,R,A){var X=D(D(D(O(D(O(D(T(R[1],A[0]),T(-A[1],R[0])),Y[2]),D(O(D(T(Y[1],A[0]),T(-A[1],Y[0])),-R[2]),O(D(T(Y[1],R[0]),T(-R[1],Y[0])),A[2]))),V[3]),D(O(D(O(D(T(R[1],A[0]),T(-A[1],R[0])),V[2]),D(O(D(T(V[1],A[0]),T(-A[1],V[0])),-R[2]),O(D(T(V[1],R[0]),T(-R[1],V[0])),A[2]))),-Y[3]),O(D(O(D(T(Y[1],A[0]),T(-A[1],Y[0])),V[2]),D(O(D(T(V[1],A[0]),T(-A[1],V[0])),-Y[2]),O(D(T(V[1],Y[0]),T(-Y[1],V[0])),A[2]))),R[3]))),D(O(D(O(D(T(Y[1],R[0]),T(-R[1],Y[0])),V[2]),D(O(D(T(V[1],R[0]),T(-R[1],V[0])),-Y[2]),O(D(T(V[1],Y[0]),T(-Y[1],V[0])),R[2]))),-A[3]),D(O(D(O(D(T(R[1],A[0]),T(-A[1],R[0])),V[2]),D(O(D(T(V[1],A[0]),T(-A[1],V[0])),-R[2]),O(D(T(V[1],R[0]),T(-R[1],V[0])),A[2]))),H[3]),O(D(O(D(T(R[1],A[0]),T(-A[1],R[0])),H[2]),D(O(D(T(H[1],A[0]),T(-A[1],H[0])),-R[2]),O(D(T(H[1],R[0]),T(-R[1],H[0])),A[2]))),-V[3])))),D(D(O(D(O(D(T(V[1],A[0]),T(-A[1],V[0])),H[2]),D(O(D(T(H[1],A[0]),T(-A[1],H[0])),-V[2]),O(D(T(H[1],V[0]),T(-V[1],H[0])),A[2]))),R[3]),D(O(D(O(D(T(V[1],R[0]),T(-R[1],V[0])),H[2]),D(O(D(T(H[1],R[0]),T(-R[1],H[0])),-V[2]),O(D(T(H[1],V[0]),T(-V[1],H[0])),R[2]))),-A[3]),O(D(O(D(T(Y[1],R[0]),T(-R[1],Y[0])),V[2]),D(O(D(T(V[1],R[0]),T(-R[1],V[0])),-Y[2]),O(D(T(V[1],Y[0]),T(-Y[1],V[0])),R[2]))),H[3]))),D(O(D(O(D(T(Y[1],R[0]),T(-R[1],Y[0])),H[2]),D(O(D(T(H[1],R[0]),T(-R[1],H[0])),-Y[2]),O(D(T(H[1],Y[0]),T(-Y[1],H[0])),R[2]))),-V[3]),D(O(D(O(D(T(V[1],R[0]),T(-R[1],V[0])),H[2]),D(O(D(T(H[1],R[0]),T(-R[1],H[0])),-V[2]),O(D(T(H[1],V[0]),T(-V[1],H[0])),R[2]))),Y[3]),O(D(O(D(T(V[1],Y[0]),T(-Y[1],V[0])),H[2]),D(O(D(T(H[1],Y[0]),T(-Y[1],H[0])),-V[2]),O(D(T(H[1],V[0]),T(-V[1],H[0])),Y[2]))),-R[3]))))),ee=D(D(D(O(D(O(D(T(R[1],A[0]),T(-A[1],R[0])),Y[2]),D(O(D(T(Y[1],A[0]),T(-A[1],Y[0])),-R[2]),O(D(T(Y[1],R[0]),T(-R[1],Y[0])),A[2]))),H[3]),O(D(O(D(T(R[1],A[0]),T(-A[1],R[0])),H[2]),D(O(D(T(H[1],A[0]),T(-A[1],H[0])),-R[2]),O(D(T(H[1],R[0]),T(-R[1],H[0])),A[2]))),-Y[3])),D(O(D(O(D(T(Y[1],A[0]),T(-A[1],Y[0])),H[2]),D(O(D(T(H[1],A[0]),T(-A[1],H[0])),-Y[2]),O(D(T(H[1],Y[0]),T(-Y[1],H[0])),A[2]))),R[3]),O(D(O(D(T(Y[1],R[0]),T(-R[1],Y[0])),H[2]),D(O(D(T(H[1],R[0]),T(-R[1],H[0])),-Y[2]),O(D(T(H[1],Y[0]),T(-Y[1],H[0])),R[2]))),-A[3]))),D(D(O(D(O(D(T(Y[1],A[0]),T(-A[1],Y[0])),V[2]),D(O(D(T(V[1],A[0]),T(-A[1],V[0])),-Y[2]),O(D(T(V[1],Y[0]),T(-Y[1],V[0])),A[2]))),H[3]),O(D(O(D(T(Y[1],A[0]),T(-A[1],Y[0])),H[2]),D(O(D(T(H[1],A[0]),T(-A[1],H[0])),-Y[2]),O(D(T(H[1],Y[0]),T(-Y[1],H[0])),A[2]))),-V[3])),D(O(D(O(D(T(V[1],A[0]),T(-A[1],V[0])),H[2]),D(O(D(T(H[1],A[0]),T(-A[1],H[0])),-V[2]),O(D(T(H[1],V[0]),T(-V[1],H[0])),A[2]))),Y[3]),O(D(O(D(T(V[1],Y[0]),T(-Y[1],V[0])),H[2]),D(O(D(T(H[1],Y[0]),T(-Y[1],H[0])),-V[2]),O(D(T(H[1],V[0]),T(-V[1],H[0])),Y[2]))),-A[3])))),ue=q(X,ee);return ue[ue.length-1]}}function _(D){var T=D===3?p:D===4?y:x;return T(n,t,o,u)}var S=_(3),N=_(4),w=[function(){return 0},function(){return 0},function(T,O){return O[0]-T[0]},function(T,O,q){var k=(T[1]-q[1])*(O[0]-q[0]),H=(T[0]-q[0])*(O[1]-q[1]),V=k-H,Y;if(k>0){if(H<=0)return V;Y=k+H}else if(k<0){if(H>=0)return V;Y=-(k+H)}else return V;var R=f*Y;return V>=R||V<=-R?V:S(T,O,q)},function(T,O,q,k){var H=T[0]-k[0],V=O[0]-k[0],Y=q[0]-k[0],R=T[1]-k[1],A=O[1]-k[1],X=q[1]-k[1],ee=T[2]-k[2],ue=O[2]-k[2],G=q[2]-k[2],K=V*X,B=Y*A,te=Y*R,Q=H*X,$=H*A,re=V*R,le=ee*(K-B)+ue*(te-Q)+G*($-re),be=(Math.abs(K)+Math.abs(B))*Math.abs(ee)+(Math.abs(te)+Math.abs(Q))*Math.abs(ue)+(Math.abs($)+Math.abs(re))*Math.abs(G),ae=v*be;return le>ae||-le>ae?le:N(T,O,q,k)}];function j(D){var T=w[D.length];return T||(T=w[D.length]=_(D.length)),T.apply(void 0,D)}function U(D,T,O,q,k,H,V){return function(R,A,X,ee,ue){switch(arguments.length){case 0:case 1:return 0;case 2:return q(R,A);case 3:return k(R,A,X);case 4:return H(R,A,X,ee);case 5:return V(R,A,X,ee,ue)}for(var G=new Array(arguments.length),K=0;K<arguments.length;++K)G[K]=arguments[K];return D(G)}}function M(){for(;w.length<=d;)w.push(_(w.length));s.exports=U.apply(void 0,[j].concat(w));for(var D=0;D<=d;++D)s.exports[D]=w[D]}M()})(nf)),nf.exports}var cf,b6;function Q_(){if(b6)return cf;b6=1,cf=t;var s=lf()[3];function t(n){var o=n.length;if(o<3){for(var x=new Array(o),u=0;u<o;++u)x[u]=u;return o===2&&n[0][0]===n[1][0]&&n[0][1]===n[1][1]?[0]:x}for(var d=new Array(o),u=0;u<o;++u)d[u]=u;d.sort(function(w,j){var U=n[w][0]-n[j][0];return U||n[w][1]-n[j][1]});for(var h=[d[0],d[1]],f=[d[0],d[1]],u=2;u<o;++u){for(var v=d[u],p=n[v],y=h.length;y>1&&s(n[h[y-2]],n[h[y-1]],p)<=0;)y-=1,h.pop();for(h.push(v),y=f.length;y>1&&s(n[f[y-2]],n[f[y-1]],p)>=0;)y-=1,f.pop();f.push(v)}for(var x=new Array(f.length+h.length-2),_=0,u=0,S=h.length;u<S;++u)x[_++]=h[u];for(var N=f.length-2;N>0;--N)x[_++]=f[N];return x}return cf}var df,x6;function $_(){if(x6)return df;x6=1,df=t;var s=Q_();function t(n){var o=s(n),u=o.length;if(u<=2)return[];for(var d=new Array(u),h=o[u-1],f=0;f<u;++f){var v=o[f];d[f]=[h,v],h=v}return d}return df}var Xr={},Vn={},C6;function eE(){if(C6)return Vn;C6=1;var s=32;Vn.INT_BITS=s,Vn.INT_MAX=2147483647,Vn.INT_MIN=-1<<s-1,Vn.sign=function(o){return(o>0)-(o<0)},Vn.abs=function(o){var u=o>>s-1;return(o^u)-u},Vn.min=function(o,u){return u^(o^u)&-(o<u)},Vn.max=function(o,u){return o^(o^u)&-(o<u)},Vn.isPow2=function(o){return!(o&o-1)&&!!o},Vn.log2=function(o){var u,d;return u=(o>65535)<<4,o>>>=u,d=(o>255)<<3,o>>>=d,u|=d,d=(o>15)<<2,o>>>=d,u|=d,d=(o>3)<<1,o>>>=d,u|=d,u|o>>1},Vn.log10=function(o){return o>=1e9?9:o>=1e8?8:o>=1e7?7:o>=1e6?6:o>=1e5?5:o>=1e4?4:o>=1e3?3:o>=100?2:o>=10?1:0},Vn.popCount=function(o){return o=o-(o>>>1&1431655765),o=(o&858993459)+(o>>>2&858993459),(o+(o>>>4)&252645135)*16843009>>>24};function t(o){var u=32;return o&=-o,o&&u--,o&65535&&(u-=16),o&16711935&&(u-=8),o&252645135&&(u-=4),o&858993459&&(u-=2),o&1431655765&&(u-=1),u}Vn.countTrailingZeros=t,Vn.nextPow2=function(o){return o+=o===0,--o,o|=o>>>1,o|=o>>>2,o|=o>>>4,o|=o>>>8,o|=o>>>16,o+1},Vn.prevPow2=function(o){return o|=o>>>1,o|=o>>>2,o|=o>>>4,o|=o>>>8,o|=o>>>16,o-(o>>>1)},Vn.parity=function(o){return o^=o>>>16,o^=o>>>8,o^=o>>>4,o&=15,27030>>>o&1};var n=new Array(256);return(function(o){for(var u=0;u<256;++u){var d=u,h=u,f=7;for(d>>>=1;d;d>>>=1)h<<=1,h|=d&1,--f;o[u]=h<<f&255}})(n),Vn.reverse=function(o){return n[o&255]<<24|n[o>>>8&255]<<16|n[o>>>16&255]<<8|n[o>>>24&255]},Vn.interleave2=function(o,u){return o&=65535,o=(o|o<<8)&16711935,o=(o|o<<4)&252645135,o=(o|o<<2)&858993459,o=(o|o<<1)&1431655765,u&=65535,u=(u|u<<8)&16711935,u=(u|u<<4)&252645135,u=(u|u<<2)&858993459,u=(u|u<<1)&1431655765,o|u<<1},Vn.deinterleave2=function(o,u){return o=o>>>u&1431655765,o=(o|o>>>1)&858993459,o=(o|o>>>2)&252645135,o=(o|o>>>4)&16711935,o=(o|o>>>16)&65535,o<<16>>16},Vn.interleave3=function(o,u,d){return o&=1023,o=(o|o<<16)&4278190335,o=(o|o<<8)&251719695,o=(o|o<<4)&3272356035,o=(o|o<<2)&1227133513,u&=1023,u=(u|u<<16)&4278190335,u=(u|u<<8)&251719695,u=(u|u<<4)&3272356035,u=(u|u<<2)&1227133513,o|=u<<1,d&=1023,d=(d|d<<16)&4278190335,d=(d|d<<8)&251719695,d=(d|d<<4)&3272356035,d=(d|d<<2)&1227133513,o|d<<2},Vn.deinterleave3=function(o,u){return o=o>>>u&1227133513,o=(o|o>>>2)&3272356035,o=(o|o>>>4)&251719695,o=(o|o>>>8)&4278190335,o=(o|o>>>16)&1023,o<<22>>22},Vn.nextCombination=function(o){var u=o|o-1;return u+1|(~u&-~u)-1>>>t(o)+1},Vn}var hf,_6;function tE(){if(_6)return hf;_6=1,hf=s;function s(n){this.roots=new Array(n),this.ranks=new Array(n);for(var o=0;o<n;++o)this.roots[o]=o,this.ranks[o]=0}var t=s.prototype;return Object.defineProperty(t,"length",{get:function(){return this.roots.length}}),t.makeSet=function(){var n=this.roots.length;return this.roots.push(n),this.ranks.push(0),n},t.find=function(n){for(var o=n,u=this.roots;u[n]!==n;)n=u[n];for(;u[o]!==n;){var d=u[o];u[o]=n,o=d}return n},t.link=function(n,o){var u=this.find(n),d=this.find(o);if(u!==d){var h=this.ranks,f=this.roots,v=h[u],p=h[d];v<p?f[u]=d:p<v?f[d]=u:(f[d]=u,++h[u])}},hf}var E6;function nE(){if(E6)return Xr;E6=1;var s=eE(),t=tE();function n(M){for(var D=0,T=Math.max,O=0,q=M.length;O<q;++O)D=T(D,M[O].length);return D-1}Xr.dimension=n;function o(M){for(var D=-1,T=Math.max,O=0,q=M.length;O<q;++O)for(var k=M[O],H=0,V=k.length;H<V;++H)D=T(D,k[H]);return D+1}Xr.countVertices=o;function u(M){for(var D=new Array(M.length),T=0,O=M.length;T<O;++T)D[T]=M[T].slice(0);return D}Xr.cloneCells=u;function d(M,D){var T=M.length,O=M.length-D.length,q=Math.min;if(O)return O;switch(T){case 0:return 0;case 1:return M[0]-D[0];case 2:var R=M[0]+M[1]-D[0]-D[1];return R||q(M[0],M[1])-q(D[0],D[1]);case 3:var k=M[0]+M[1],H=D[0]+D[1];if(R=k+M[2]-(H+D[2]),R)return R;var V=q(M[0],M[1]),Y=q(D[0],D[1]),R=q(V,M[2])-q(Y,D[2]);return R||q(V+M[2],k)-q(Y+D[2],H);default:var A=M.slice(0);A.sort();var X=D.slice(0);X.sort();for(var ee=0;ee<T;++ee)if(O=A[ee]-X[ee],O)return O;return 0}}Xr.compareCells=d;function h(M,D){return d(M[0],D[0])}function f(M,D){if(D){for(var T=M.length,O=new Array(T),q=0;q<T;++q)O[q]=[M[q],D[q]];O.sort(h);for(var q=0;q<T;++q)M[q]=O[q][0],D[q]=O[q][1];return M}else return M.sort(d),M}Xr.normalize=f;function v(M){if(M.length===0)return[];for(var D=1,T=M.length,O=1;O<T;++O){var q=M[O];if(d(q,M[O-1])){if(O===D){D++;continue}M[D++]=q}}return M.length=D,M}Xr.unique=v;function p(M,D){for(var T=0,O=M.length-1,q=-1;T<=O;){var k=T+O>>1,H=d(M[k],D);H<=0?(H===0&&(q=k),T=k+1):H>0&&(O=k-1)}return q}Xr.findCell=p;function y(M,D){for(var T=new Array(M.length),O=0,q=T.length;O<q;++O)T[O]=[];for(var k=[],O=0,H=D.length;O<H;++O)for(var V=D[O],Y=V.length,R=1,A=1<<Y;R<A;++R){k.length=s.popCount(R);for(var X=0,ee=0;ee<Y;++ee)R&1<<ee&&(k[X++]=V[ee]);var ue=p(M,k);if(!(ue<0))for(;T[ue++].push(O),!(ue>=M.length||d(M[ue],k)!==0););}return T}Xr.incidence=y;function x(M,D){if(!D)return y(v(S(M,0)),M);for(var T=new Array(D),O=0;O<D;++O)T[O]=[];for(var O=0,q=M.length;O<q;++O)for(var k=M[O],H=0,V=k.length;H<V;++H)T[k[H]].push(O);return T}Xr.dual=x;function _(M){for(var D=[],T=0,O=M.length;T<O;++T)for(var q=M[T],k=q.length|0,H=1,V=1<<k;H<V;++H){for(var Y=[],R=0;R<k;++R)H>>>R&1&&Y.push(q[R]);D.push(Y)}return f(D)}Xr.explode=_;function S(M,D){if(D<0)return[];for(var T=[],O=(1<<D+1)-1,q=0;q<M.length;++q)for(var k=M[q],H=O;H<1<<k.length;H=s.nextCombination(H)){for(var V=new Array(D+1),Y=0,R=0;R<k.length;++R)H&1<<R&&(V[Y++]=k[R]);T.push(V)}return f(T)}Xr.skeleton=S;function N(M){for(var D=[],T=0,O=M.length;T<O;++T)for(var q=M[T],k=0,H=q.length;k<H;++k){for(var V=new Array(q.length-1),Y=0,R=0;Y<H;++Y)Y!==k&&(V[R++]=q[Y]);D.push(V)}return f(D)}Xr.boundary=N;function w(M,D){for(var T=new t(D),O=0;O<M.length;++O)for(var q=M[O],k=0;k<q.length;++k)for(var H=k+1;H<q.length;++H)T.link(q[k],q[H]);for(var V=[],Y=T.ranks,O=0;O<Y.length;++O)Y[O]=-1;for(var O=0;O<M.length;++O){var R=T.find(M[O][0]);Y[R]<0?(Y[R]=V.length,V.push([M[O].slice(0)])):V[Y[R]].push(M[O].slice(0))}return V}function j(M){for(var D=v(f(S(M,0))),T=new t(D.length),O=0;O<M.length;++O)for(var q=M[O],k=0;k<q.length;++k)for(var H=p(D,[q[k]]),V=k+1;V<q.length;++V)T.link(H,p(D,[q[V]]));for(var Y=[],R=T.ranks,O=0;O<R.length;++O)R[O]=-1;for(var O=0;O<M.length;++O){var A=T.find(p(D,[M[O][0]]));R[A]<0?(R[A]=Y.length,Y.push([M[O].slice(0)])):Y[R[A]].push(M[O].slice(0))}return Y}function U(M,D){return D?w(M,D):j(M)}return Xr.connectedComponents=U,Xr}var ff,w6;function rE(){if(w6)return ff;w6=1,ff=p;var s=lf(),t=nE().compareCells;function n(y,x,_){this.vertices=y,this.adjacent=x,this.boundary=_,this.lastVisited=-1}n.prototype.flip=function(){var y=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=y;var x=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=x};function o(y,x,_){this.vertices=y,this.cell=x,this.index=_}function u(y,x){return t(y.vertices,x.vertices)}function d(y){for(var x=["function orient(){var tuple=this.tuple;return test("],_=0;_<=y;++_)_>0&&x.push(","),x.push("tuple[",_,"]");x.push(")}return orient");var S=new Function("test",x.join("")),N=s[y+1];return N||(N=s),S(N)}var h=[];function f(y,x,_){this.dimension=y,this.vertices=x,this.simplices=_,this.interior=_.filter(function(w){return!w.boundary}),this.tuple=new Array(y+1);for(var S=0;S<=y;++S)this.tuple[S]=this.vertices[S];var N=h[y];N||(N=h[y]=d(y)),this.orient=N}var v=f.prototype;v.handleBoundaryDegeneracy=function(y,x){var _=this.dimension,S=this.vertices.length-1,N=this.tuple,w=this.vertices,j=[y];for(y.lastVisited=-S;j.length>0;){y=j.pop(),y.vertices;for(var U=y.adjacent,M=0;M<=_;++M){var D=U[M];if(!(!D.boundary||D.lastVisited<=-S)){for(var T=D.vertices,O=0;O<=_;++O){var q=T[O];q<0?N[O]=x:N[O]=w[q]}var k=this.orient();if(k>0)return D;D.lastVisited=-S,k===0&&j.push(D)}}}return null},v.walk=function(y,x){var _=this.vertices.length-1,S=this.dimension,N=this.vertices,w=this.tuple,j=x?this.interior.length*Math.random()|0:this.interior.length-1,U=this.interior[j];e:for(;!U.boundary;){for(var M=U.vertices,D=U.adjacent,T=0;T<=S;++T)w[T]=N[M[T]];U.lastVisited=_;for(var T=0;T<=S;++T){var O=D[T];if(!(O.lastVisited>=_)){var q=w[T];w[T]=y;var k=this.orient();if(w[T]=q,k<0){U=O;continue e}else O.boundary?O.lastVisited=-_:O.lastVisited=_}}return}return U},v.addPeaks=function(y,x){var _=this.vertices.length-1,S=this.dimension,N=this.vertices,w=this.tuple,j=this.interior,U=this.simplices,M=[x];x.lastVisited=_,x.vertices[x.vertices.indexOf(-1)]=_,x.boundary=!1,j.push(x);for(var D=[];M.length>0;){var x=M.pop(),T=x.vertices,O=x.adjacent,q=T.indexOf(_);if(!(q<0)){for(var k=0;k<=S;++k)if(k!==q){var H=O[k];if(!(!H.boundary||H.lastVisited>=_)){var V=H.vertices;if(H.lastVisited!==-_){for(var Y=0,R=0;R<=S;++R)V[R]<0?(Y=R,w[R]=y):w[R]=N[V[R]];var A=this.orient();if(A>0){V[Y]=_,H.boundary=!1,j.push(H),M.push(H),H.lastVisited=_;continue}else H.lastVisited=-_}var X=H.adjacent,ee=T.slice(),ue=O.slice(),G=new n(ee,ue,!0);U.push(G);var K=X.indexOf(x);if(!(K<0)){X[K]=G,ue[q]=H,ee[k]=-1,ue[k]=x,O[k]=G,G.flip();for(var R=0;R<=S;++R){var B=ee[R];if(!(B<0||B===_)){for(var te=new Array(S-1),Q=0,$=0;$<=S;++$){var re=ee[$];re<0||$===R||(te[Q++]=re)}D.push(new o(te,G,R))}}}}}}}D.sort(u);for(var k=0;k+1<D.length;k+=2){var le=D[k],be=D[k+1],ae=le.index,Ce=be.index;ae<0||Ce<0||(le.cell.adjacent[le.index]=be.cell,be.cell.adjacent[be.index]=le.cell)}},v.insert=function(y,x){var _=this.vertices;_.push(y);var S=this.walk(y,x);if(S){for(var N=this.dimension,w=this.tuple,j=0;j<=N;++j){var U=S.vertices[j];U<0?w[j]=y:w[j]=_[U]}var M=this.orient(w);M<0||M===0&&(S=this.handleBoundaryDegeneracy(S,y),!S)||this.addPeaks(y,S)}},v.boundary=function(){for(var y=this.dimension,x=[],_=this.simplices,S=_.length,N=0;N<S;++N){var w=_[N];if(w.boundary){for(var j=new Array(y),U=w.vertices,M=0,D=0,T=0;T<=y;++T)U[T]>=0?j[M++]=U[T]:D=T&1;if(D===(y&1)){var O=j[0];j[0]=j[1],j[1]=O}x.push(j)}}return x};function p(y,x){var _=y.length;if(_===0)throw new Error("Must have at least d+1 points");var S=y[0].length;if(_<=S)throw new Error("Must input at least d+1 points");var N=y.slice(0,S+1),w=s.apply(void 0,N);if(w===0)throw new Error("Input not in general position");for(var j=new Array(S+1),U=0;U<=S;++U)j[U]=U;w<0&&(j[0]=1,j[1]=0);for(var M=new n(j,new Array(S+1),!1),D=M.adjacent,T=new Array(S+2),U=0;U<=S;++U){for(var O=j.slice(),q=0;q<=S;++q)q===U&&(O[q]=-1);var k=O[0];O[0]=O[1],O[1]=k;var H=new n(O,new Array(S+1),!0);D[U]=H,T[U]=H}T[S+1]=M;for(var U=0;U<=S;++U)for(var O=D[U].vertices,V=D[U].adjacent,q=0;q<=S;++q){var Y=O[q];if(Y<0){V[q]=M;continue}for(var R=0;R<=S;++R)D[R].vertices.indexOf(Y)<0&&(V[q]=D[R])}for(var A=new f(S,N,T),X=!!x,U=S+1;U<_;++U)A.insert(y[U],X);return A.boundary()}return ff}var gf,S6;function iE(){if(S6)return gf;S6=1,gf=n;var s=lf();function t(o,u){for(var d=new Array(u+1),h=0;h<o.length;++h)d[h]=o[h];for(var h=0;h<=o.length;++h){for(var f=o.length;f<=u;++f){for(var v=new Array(u),p=0;p<u;++p)v[p]=Math.pow(f+1-h,p);d[f]=v}var y=s.apply(void 0,d);if(y)return!0}return!1}function n(o){var u=o.length;if(u===0)return[];if(u===1)return[0];for(var d=o[0].length,h=[o[0]],f=[0],v=1;v<u;++v){if(h.push(o[v]),!t(h,d)){h.pop();continue}if(f.push(v),f.length===d+1)return f}return f}return gf}var mf,O6;function sE(){if(O6)return mf;O6=1,mf=u;var s=rE(),t=iE();function n(d,h){for(var f=d.length,v=new Array(f),p=0;p<h.length;++p)v[p]=d[h[p]];for(var y=h.length,p=0;p<f;++p)h.indexOf(p)<0&&(v[y++]=d[p]);return v}function o(d,h){for(var f=d.length,v=h.length,p=0;p<f;++p)for(var y=d[p],x=0;x<y.length;++x){var _=y[x];if(_<v)y[x]=h[_];else{_=_-v;for(var S=0;S<v;++S)_>=h[S]&&(_+=1);y[x]=_}}return d}function u(d,h){try{return s(d,!0)}catch{var f=t(d);if(f.length<=h)return[];var v=n(d,f),p=s(v,!0);return o(p,f)}}return mf}var pf,L6;function oE(){if(L6)return pf;L6=1;var s=Z_(),t=$_(),n=sE();pf=o;function o(u){var d=u.length;if(d===0)return[];if(d===1)return[[0]];var h=u[0].length;return h===0?[]:h===1?s(u):h===2?t(u):n(u,h)}return pf}var vf,N6;function aE(){if(N6)return vf;N6=1;var s=lu().coordEach,t=oE(),n=sn().polygon;return vf=function(o){var u=[];s(o,function(v){u.push(v)});var d=t(u);if(d.length>0){for(var h=[],f=0;f<d.length;f++)h.push(u[d[f][0]]);return h.push(u[d[d.length-1][1]]),n([h])}},vf}var yf,I6;function uE(){if(I6)return yf;I6=1;var s=uu(),t=sn().featureCollection;return yf=function(n,o){for(var u=t([]),d=0;d<o.features.length;d++)for(var h=0;h<n.features.length;h++){var f=s(n.features[h],o.features[d]);f&&u.features.push(n.features[h])}return u},yf}var Cl={exports:{}},lE=Cl.exports,T6;function Wc(){return T6||(T6=1,(function(s,t){(function(n,o){o(t)})(lE,function(n){function o(e,r){for(var a in r)r.hasOwnProperty(a)&&(e[a]=r[a])}function u(){}function d(){}function h(){}function f(){}function v(){}function p(){}function y(){}function x(e){this.message=e}function _(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e}function S(){if(arguments.length===0)x.call(this);else if(arguments.length===1){var e=arguments[0];x.call(this,e)}}function N(){}function w(){if(this.x=null,this.y=null,this.z=null,arguments.length===0)w.call(this,0,0);else if(arguments.length===1){var e=arguments[0];w.call(this,e.x,e.y,e.z)}else if(arguments.length===2){var r=arguments[0],a=arguments[1];w.call(this,r,a,w.NULL_ORDINATE)}else if(arguments.length===3){var c=arguments[0],g=arguments[1],b=arguments[2];this.x=c,this.y=g,this.z=b}}function j(){if(this.dimensionsToTest=2,arguments.length===0)j.call(this,2);else if(arguments.length===1){var e=arguments[0];if(e!==2&&e!==3)throw new d;this.dimensionsToTest=e}}function U(){}function M(){}function D(e){this.message=e||""}function T(){}function O(e){this.message=e||""}function q(e){this.message=e||""}function k(){this.array_=[],arguments[0]instanceof M&&this.addAll(arguments[0])}function H(){if(k.apply(this),arguments.length!==0){if(arguments.length===1){var e=arguments[0];this.ensureCapacity(e.length),this.add(e,!0)}else if(arguments.length===2){var r=arguments[0],a=arguments[1];this.ensureCapacity(r.length),this.add(r,a)}}}function V(){if(this.minx=null,this.maxx=null,this.miny=null,this.maxy=null,arguments.length===0)this.init();else if(arguments.length===1){if(arguments[0]instanceof w){var e=arguments[0];this.init(e.x,e.x,e.y,e.y)}else if(arguments[0]instanceof V){var r=arguments[0];this.init(r)}}else if(arguments.length===2){var a=arguments[0],c=arguments[1];this.init(a.x,c.x,a.y,c.y)}else if(arguments.length===4){var g=arguments[0],b=arguments[1],I=arguments[2],F=arguments[3];this.init(g,b,I,F)}}function Y(){}function R(){Y.call(this,"Projective point not representable on the Cartesian plane.")}function A(){}function X(e,r){return e.interfaces_&&e.interfaces_().indexOf(r)>-1}function ee(){}function ue(e){this.str=e}function G(e){this.value=e}function K(){}function B(){if(this.hi=0,this.lo=0,arguments.length===0)this.init(0);else if(arguments.length===1){if(typeof arguments[0]=="number"){var e=arguments[0];this.init(e)}else if(arguments[0]instanceof B){var r=arguments[0];this.init(r)}else if(typeof arguments[0]=="string"){var a=arguments[0];B.call(this,B.parse(a))}}else if(arguments.length===2){var c=arguments[0],g=arguments[1];this.init(c,g)}}function te(){}function Q(){}function $(){}function re(){if(this.x=null,this.y=null,this.w=null,arguments.length===0)this.x=0,this.y=0,this.w=1;else if(arguments.length===1){var e=arguments[0];this.x=e.x,this.y=e.y,this.w=1}else if(arguments.length===2){if(typeof arguments[0]=="number"&&typeof arguments[1]=="number"){var r=arguments[0],a=arguments[1];this.x=r,this.y=a,this.w=1}else if(arguments[0]instanceof re&&arguments[1]instanceof re){var c=arguments[0],g=arguments[1];this.x=c.y*g.w-g.y*c.w,this.y=g.x*c.w-c.x*g.w,this.w=c.x*g.y-g.x*c.y}else if(arguments[0]instanceof w&&arguments[1]instanceof w){var b=arguments[0],I=arguments[1];this.x=b.y-I.y,this.y=I.x-b.x,this.w=b.x*I.y-I.x*b.y}}else if(arguments.length===3){var F=arguments[0],Z=arguments[1],ne=arguments[2];this.x=F,this.y=Z,this.w=ne}else if(arguments.length===4){var de=arguments[0],me=arguments[1],_e=arguments[2],Ze=arguments[3],gt=de.y-me.y,St=me.x-de.x,yn=de.x*me.y-me.x*de.y,Un=_e.y-Ze.y,Ki=Ze.x-_e.x,Ya=_e.x*Ze.y-Ze.x*_e.y;this.x=St*Ya-Ki*yn,this.y=Un*yn-gt*Ya,this.w=gt*Ki-Un*St}}function le(){}function be(){}function ae(){this.envelope=null,this.factory=null,this.SRID=null,this.userData=null;var e=arguments[0];this.factory=e,this.SRID=e.getSRID()}function Ce(){}function we(){}function Me(){}function Je(){}function rt(){}function et(){}function Le(){}function mt(){}function lt(){}function De(){}function ct(){}function vt(){}function Ye(){this.array_=[],arguments[0]instanceof M&&this.addAll(arguments[0])}function Tt(e){return e==null?Ws:e.color}function Ve(e){return e==null?null:e.parent}function ye(e,r){e!==null&&(e.color=r)}function Qe(e){return e==null?null:e.left}function at(e){return e==null?null:e.right}function ve(){this.root_=null,this.size_=0}function Xe(){}function Be(){}function ut(){this.array_=[],arguments[0]instanceof M&&this.addAll(arguments[0])}function st(){}function he(){}function ht(){}function kt(){}function Re(){this.geometries=null;var e=arguments[0],r=arguments[1];if(ae.call(this,r),e===null&&(e=[]),ae.hasNullElements(e))throw new d;this.geometries=e}function Lt(){var e=arguments[0],r=arguments[1];Re.call(this,e,r)}function At(){if(this.geom=null,this.geomFact=null,this.bnRule=null,this.endpointMap=null,arguments.length===1){var e=arguments[0];At.call(this,e,we.MOD2_BOUNDARY_RULE)}else if(arguments.length===2){var r=arguments[0],a=arguments[1];this.geom=r,this.geomFact=r.getFactory(),this.bnRule=a}}function Wn(){this.count=null}function Ht(){}function Nn(){}function Gt(){}function hn(){}function vn(){}function nr(){}function Ae(){}function He(){}function Se(){this.points=null;var e=arguments[0],r=arguments[1];ae.call(this,r),this.init(e)}function fn(){}function Ge(){this.coordinates=null;var e=arguments[0],r=arguments[1];ae.call(this,r),this.init(e)}function Nt(){}function _t(){this.shell=null,this.holes=null;var e=arguments[0],r=arguments[1],a=arguments[2];if(ae.call(this,a),e===null&&(e=this.getFactory().createLinearRing()),r===null&&(r=[]),ae.hasNullElements(r))throw new d;if(e.isEmpty()&&ae.hasNonEmptyElements(r))throw new d;this.shell=e,this.holes=r}function $t(){var e=arguments[0],r=arguments[1];Re.call(this,e,r)}function It(){if(arguments[0]instanceof w&&arguments[1]instanceof dt){var e=arguments[0],r=arguments[1];It.call(this,r.getCoordinateSequenceFactory().create(e),r)}else if(X(arguments[0],Q)&&arguments[1]instanceof dt){var a=arguments[0],c=arguments[1];Se.call(this,a,c),this.validateConstruction()}}function nn(){var e=arguments[0],r=arguments[1];Re.call(this,e,r)}function dn(){if(this.factory=null,this.isUserDataCopied=!1,arguments.length!==0){if(arguments.length===1){var e=arguments[0];this.factory=e}}}function gn(){}function bn(){}function We(){}function xn(){}function rn(){if(this.dimension=3,this.coordinates=null,arguments.length===1){if(arguments[0]instanceof Array){var e=arguments[0];rn.call(this,e,3)}else if(Number.isInteger(arguments[0])){var r=arguments[0];this.coordinates=new Array(r).fill(null);for(var a=0;r>a;a++)this.coordinates[a]=new w}else if(X(arguments[0],Q)){var c=arguments[0];if(c===null)return this.coordinates=new Array(0).fill(null),null;this.dimension=c.getDimension(),this.coordinates=new Array(c.size()).fill(null);for(var a=0;a<this.coordinates.length;a++)this.coordinates[a]=c.getCoordinateCopy(a)}}else if(arguments.length===2){if(arguments[0]instanceof Array&&Number.isInteger(arguments[1])){var g=arguments[0],b=arguments[1];this.coordinates=g,this.dimension=b,g===null&&(this.coordinates=new Array(0).fill(null))}else if(Number.isInteger(arguments[0])&&Number.isInteger(arguments[1])){var I=arguments[0],F=arguments[1];this.coordinates=new Array(I).fill(null),this.dimension=F;for(var a=0;I>a;a++)this.coordinates[a]=new w}}}function dr(){}function Or(e,r){return e===r||e!==e&&r!==r}function un(e,r){function a(c){return this&&this.constructor===a?(this._keys=[],this._values=[],this._itp=[],this.objectOnly=r,void(c&&Rr.call(this,c))):new a(c)}return hA(e,"size",{get:wn}),e.constructor=a,a.prototype=e,a}function Rr(e){this.add?e.forEach(this.add,this):e.forEach(function(r){this.set(r[0],r[1])},this)}function ui(e){return this.has(e)&&(this._keys.splice(_s,1),this._values.splice(_s,1),this._itp.forEach(function(r){_s<r[0]&&r[0]--})),_s>-1}function Hi(e){return this.has(e)?this._values[_s]:void 0}function ni(e,r){if(this.objectOnly&&r!==Object(r))throw new TypeError("Invalid value used as weak collection key");if(r!==r||r===0)for(_s=e.length;_s--&&!Or(e[_s],r););else _s=e.indexOf(r);return _s>-1}function as(e){return ni.call(this,this._keys,e)}function ie(e,r){return this.has(e)?this._values[_s]=r:this._values[this._keys.push(e)-1]=r,this}function ze(){(this._keys||0).length=this._values.length=0}function qe(){return bt(this._itp,this._keys)}function Dt(){return bt(this._itp,this._values)}function Rt(){return bt(this._itp,this._keys,this._values)}function bt(e,r,a){var c=[0],g=!1;return e.push(c),{next:function(){var b,I=c[0];return!g&&I<r.length?(b=a?[r[I],a[I]]:r[I],c[0]++):(g=!0,e.splice(e.indexOf(c),1)),{done:g,value:b}}}}function wn(){return this._values.length}function In(e,r){for(var a=this.entries();;){var c=a.next();if(c.done)break;e.call(r,c.value[1],c.value[0],this)}}function Mt(){this.map_=new gA}function Ct(){if(this.modelType=null,this.scale=null,arguments.length===0)this.modelType=Ct.FLOATING;else if(arguments.length===1){if(arguments[0]instanceof Wt){var e=arguments[0];this.modelType=e,e===Ct.FIXED&&this.setScale(1)}else if(typeof arguments[0]=="number"){var r=arguments[0];this.modelType=Ct.FIXED,this.setScale(r)}else if(arguments[0]instanceof Ct){var a=arguments[0];this.modelType=a.modelType,this.scale=a.scale}}}function Wt(){this.name=null;var e=arguments[0];this.name=e,Wt.nameToTypeMap.put(e,this)}function dt(){if(this.precisionModel=null,this.coordinateSequenceFactory=null,this.SRID=null,arguments.length===0)dt.call(this,new Ct,0);else if(arguments.length===1){if(X(arguments[0],le)){var e=arguments[0];dt.call(this,new Ct,0,e)}else if(arguments[0]instanceof Ct){var r=arguments[0];dt.call(this,r,0,dt.getDefaultCoordinateSequenceFactory())}}else if(arguments.length===2){var a=arguments[0],c=arguments[1];dt.call(this,a,c,dt.getDefaultCoordinateSequenceFactory())}else if(arguments.length===3){var g=arguments[0],b=arguments[1],I=arguments[2];this.precisionModel=g,this.coordinateSequenceFactory=I,this.SRID=b}}function je(e){this.geometryFactory=e||new dt}function ot(e){this.parser=new je(e)}function tt(){this.result=null,this.inputLines=Array(2).fill().map(function(){return Array(2)}),this.intPt=new Array(2).fill(null),this.intLineIndex=null,this._isProper=null,this.pa=null,this.pb=null,this.precisionModel=null,this.intPt[0]=new w,this.intPt[1]=new w,this.pa=this.intPt[0],this.pb=this.intPt[1],this.result=0}function Fe(){tt.apply(this)}function Et(){}function pt(){this.p=null,this.crossingCount=0,this.isPointOnSegment=!1;var e=arguments[0];this.p=e}function xe(){}function nt(){if(this.p0=null,this.p1=null,arguments.length===0)nt.call(this,new w,new w);else if(arguments.length===1){var e=arguments[0];nt.call(this,e.p0,e.p1)}else if(arguments.length===2){var r=arguments[0],a=arguments[1];this.p0=r,this.p1=a}else if(arguments.length===4){var c=arguments[0],g=arguments[1],b=arguments[2],I=arguments[3];nt.call(this,new w(c,g),new w(b,I))}}function xt(){if(this.matrix=null,arguments.length===0)this.matrix=Array(3).fill().map(function(){return Array(3)}),this.setAll(he.FALSE);else if(arguments.length===1){if(typeof arguments[0]=="string"){var e=arguments[0];xt.call(this),this.set(e)}else if(arguments[0]instanceof xt){var r=arguments[0];xt.call(this),this.matrix[A.INTERIOR][A.INTERIOR]=r.matrix[A.INTERIOR][A.INTERIOR],this.matrix[A.INTERIOR][A.BOUNDARY]=r.matrix[A.INTERIOR][A.BOUNDARY],this.matrix[A.INTERIOR][A.EXTERIOR]=r.matrix[A.INTERIOR][A.EXTERIOR],this.matrix[A.BOUNDARY][A.INTERIOR]=r.matrix[A.BOUNDARY][A.INTERIOR],this.matrix[A.BOUNDARY][A.BOUNDARY]=r.matrix[A.BOUNDARY][A.BOUNDARY],this.matrix[A.BOUNDARY][A.EXTERIOR]=r.matrix[A.BOUNDARY][A.EXTERIOR],this.matrix[A.EXTERIOR][A.INTERIOR]=r.matrix[A.EXTERIOR][A.INTERIOR],this.matrix[A.EXTERIOR][A.BOUNDARY]=r.matrix[A.EXTERIOR][A.BOUNDARY],this.matrix[A.EXTERIOR][A.EXTERIOR]=r.matrix[A.EXTERIOR][A.EXTERIOR]}}}function it(){this.areaBasePt=null,this.triangleCent3=new w,this.areasum2=0,this.cg3=new w,this.lineCentSum=new w,this.totalLength=0,this.ptCount=0,this.ptCentSum=new w;var e=arguments[0];this.areaBasePt=null,this.add(e)}function mn(e){this.message=e||""}function kn(){this.array_=[]}function li(){this.treeSet=new ut,this.list=new k}function Rn(){if(this.geomFactory=null,this.inputPts=null,arguments.length===1){var e=arguments[0];Rn.call(this,Rn.extractCoordinates(e),e.getFactory())}else if(arguments.length===2){var r=arguments[0],a=arguments[1];this.inputPts=li.filterCoordinates(r),this.geomFactory=a}}function Ps(){this.origin=null;var e=arguments[0];this.origin=e}function Bn(){this.inputGeom=null,this.factory=null,this.pruneEmptyGeometry=!0,this.preserveGeometryCollectionType=!0,this.preserveCollections=!1,this.preserveType=!1}function vr(){if(this.snapTolerance=0,this.srcPts=null,this.seg=new nt,this.allowSnappingToSourceVertices=!1,this._isClosed=!1,arguments[0]instanceof Se&&typeof arguments[1]=="number"){var e=arguments[0],r=arguments[1];vr.call(this,e.getCoordinates(),r)}else if(arguments[0]instanceof Array&&typeof arguments[1]=="number"){var a=arguments[0],c=arguments[1];this.srcPts=a,this._isClosed=vr.isClosed(a),this.snapTolerance=c}}function Bt(){this.srcGeom=null;var e=arguments[0];this.srcGeom=e}function Pe(){if(Bn.apply(this),this.snapTolerance=null,this.snapPts=null,this.isSelfSnap=!1,arguments.length===2){var e=arguments[0],r=arguments[1];this.snapTolerance=e,this.snapPts=r}else if(arguments.length===3){var a=arguments[0],c=arguments[1],g=arguments[2];this.snapTolerance=a,this.snapPts=c,this.isSelfSnap=g}}function J(){this.isFirst=!0,this.commonMantissaBitsCount=53,this.commonBits=0,this.commonSignExp=null}function ge(){this.commonCoord=null,this.ccFilter=new Ne}function Ne(){this.commonBitsX=new J,this.commonBitsY=new J}function Ke(){this.trans=null;var e=arguments[0];this.trans=e}function ft(){this.parent=null,this.atStart=null,this.max=null,this.index=null,this.subcollectionIterator=null;var e=arguments[0];this.parent=e,this.atStart=!0,this.index=0,this.max=e.getNumGeometries()}function yt(){if(this.boundaryRule=we.OGC_SFS_BOUNDARY_RULE,this.isIn=null,this.numBoundaries=null,arguments.length!==0){if(arguments.length===1){var e=arguments[0];if(e===null)throw new d;this.boundaryRule=e}}}function ln(){}function Pn(){}function yr(){this.pts=null,this.data=null;var e=arguments[0],r=arguments[1];this.pts=e,this.data=r}function qn(){}function jn(){this.bounds=null,this.item=null;var e=arguments[0],r=arguments[1];this.bounds=e,this.item=r}function Zn(){this._size=null,this.items=null,this._size=0,this.items=new k,this.items.add(null)}function Ds(){}function Pt(){}function Sn(){if(this.childBoundables=new k,this.bounds=null,this.level=null,arguments.length!==0){if(arguments.length===1){var e=arguments[0];this.level=e}}}function jt(){this.boundable1=null,this.boundable2=null,this._distance=null,this.itemDistance=null;var e=arguments[0],r=arguments[1],a=arguments[2];this.boundable1=e,this.boundable2=r,this.itemDistance=a,this._distance=this.distance()}function On(){if(this.root=null,this.built=!1,this.itemBoundables=new k,this.nodeCapacity=null,arguments.length===0)On.call(this,On.DEFAULT_NODE_CAPACITY);else if(arguments.length===1){var e=arguments[0];N.isTrue(e>1,"Node capacity must be greater than 1"),this.nodeCapacity=e}}function Jl(){}function qo(){}function pn(){if(arguments.length===0)pn.call(this,pn.DEFAULT_NODE_CAPACITY);else if(arguments.length===1){var e=arguments[0];On.call(this,e)}}function Ni(){var e=arguments[0];Sn.call(this,e)}function hr(){}function uo(){this.segString=null,this.coord=null,this.segmentIndex=null,this.segmentOctant=null,this._isInterior=null;var e=arguments[0],r=arguments[1],a=arguments[2],c=arguments[3];this.segString=e,this.coord=new w(r),this.segmentIndex=a,this.segmentOctant=c,this._isInterior=!r.equals2D(e.getCoordinate(a))}function rr(){this.nodeMap=new ve,this.edge=null;var e=arguments[0];this.edge=e}function Ms(){this.nodeList=null,this.edge=null,this.nodeIt=null,this.currNode=null,this.nextNode=null,this.currSegIndex=0;var e=arguments[0];this.nodeList=e,this.edge=e.getEdge(),this.nodeIt=e.iterator(),this.readNextNode()}function qu(){}function ci(){this.nodeList=new rr(this),this.pts=null,this.data=null;var e=arguments[0],r=arguments[1];this.pts=e,this.data=r}function Aa(){this.tempEnv1=new V,this.tempEnv2=new V,this.overlapSeg1=new nt,this.overlapSeg2=new nt}function zu(){this.pts=null,this.start=null,this.end=null,this.env=null,this.context=null,this.id=null;var e=arguments[0],r=arguments[1],a=arguments[2],c=arguments[3];this.pts=e,this.start=r,this.end=a,this.context=c}function qt(){}function di(){}function zo(){}function Yt(){if(this.segInt=null,arguments.length!==0){if(arguments.length===1){var e=arguments[0];this.setSegmentIntersector(e)}}}function ks(){if(this.monoChains=new k,this.index=new pn,this.idCounter=0,this.nodedSegStrings=null,this.nOverlaps=0,arguments.length!==0){if(arguments.length===1){var e=arguments[0];Yt.call(this,e)}}}function jr(){Aa.apply(this),this.si=null;var e=arguments[0];this.si=e}function ir(){if(this.pt=null,arguments.length===1){var e=arguments[0];x.call(this,e)}else if(arguments.length===2){var r=arguments[0],a=arguments[1];x.call(this,ir.msgWithCoord(r,a)),this.pt=new w(a)}}function Uo(){}function us(){this.findAllIntersections=!1,this.isCheckEndSegmentsOnly=!1,this.li=null,this.interiorIntersection=null,this.intSegments=null,this.intersections=new k,this.intersectionCount=0,this.keepIntersections=!0;var e=arguments[0];this.li=e,this.interiorIntersection=null}function lo(){this.li=new Fe,this.segStrings=null,this.findAllIntersections=!1,this.segInt=null,this._isValid=!0;var e=arguments[0];this.segStrings=e}function co(){this.nv=null;var e=arguments[0];this.nv=new lo(co.toSegmentStrings(e))}function ho(){this.mapOp=null;var e=arguments[0];this.mapOp=e}function Oe(){}function Fr(){if(this.location=null,arguments.length===1){if(arguments[0]instanceof Array){var e=arguments[0];this.init(e.length)}else if(Number.isInteger(arguments[0])){var r=arguments[0];this.init(1),this.location[Oe.ON]=r}else if(arguments[0]instanceof Fr){var a=arguments[0];if(this.init(a.location.length),a!==null)for(var c=0;c<this.location.length;c++)this.location[c]=a.location[c]}}else if(arguments.length===3){var g=arguments[0],b=arguments[1],I=arguments[2];this.init(3),this.location[Oe.ON]=g,this.location[Oe.LEFT]=b,this.location[Oe.RIGHT]=I}}function En(){if(this.elt=new Array(2).fill(null),arguments.length===1){if(Number.isInteger(arguments[0])){var e=arguments[0];this.elt[0]=new Fr(e),this.elt[1]=new Fr(e)}else if(arguments[0]instanceof En){var r=arguments[0];this.elt[0]=new Fr(r.elt[0]),this.elt[1]=new Fr(r.elt[1])}}else if(arguments.length===2){var a=arguments[0],c=arguments[1];this.elt[0]=new Fr(A.NONE),this.elt[1]=new Fr(A.NONE),this.elt[a].setLocation(c)}else if(arguments.length===3){var g=arguments[0],b=arguments[1],I=arguments[2];this.elt[0]=new Fr(g,b,I),this.elt[1]=new Fr(g,b,I)}else if(arguments.length===4){var F=arguments[0],Z=arguments[1],ne=arguments[2],de=arguments[3];this.elt[0]=new Fr(A.NONE,A.NONE,A.NONE),this.elt[1]=new Fr(A.NONE,A.NONE,A.NONE),this.elt[F].setLocations(Z,ne,de)}}function Vo(){this.startDe=null,this.maxNodeDegree=-1,this.edges=new k,this.pts=new k,this.label=new En(A.NONE),this.ring=null,this._isHole=null,this.shell=null,this.holes=new k,this.geometryFactory=null;var e=arguments[0],r=arguments[1];this.geometryFactory=r,this.computePoints(e),this.computeRing()}function ri(){var e=arguments[0],r=arguments[1];Vo.call(this,e,r)}function Pa(){var e=arguments[0],r=arguments[1];Vo.call(this,e,r)}function ls(){if(this.label=null,this._isInResult=!1,this._isCovered=!1,this._isCoveredSet=!1,this._isVisited=!1,arguments.length!==0){if(arguments.length===1){var e=arguments[0];this.label=e}}}function br(){ls.apply(this),this.coord=null,this.edges=null;var e=arguments[0],r=arguments[1];this.coord=e,this.edges=r,this.label=new En(0,A.NONE)}function fo(){this.nodeMap=new ve,this.nodeFact=null;var e=arguments[0];this.nodeFact=e}function hi(){if(this.edge=null,this.label=null,this.node=null,this.p0=null,this.p1=null,this.dx=null,this.dy=null,this.quadrant=null,arguments.length===1){var e=arguments[0];this.edge=e}else if(arguments.length===3){var r=arguments[0],a=arguments[1],c=arguments[2];hi.call(this,r,a,c,null)}else if(arguments.length===4){var g=arguments[0],b=arguments[1],I=arguments[2],F=arguments[3];hi.call(this,g),this.init(b,I),this.label=F}}function cs(){this._isForward=null,this._isInResult=!1,this._isVisited=!1,this.sym=null,this.next=null,this.nextMin=null,this.edgeRing=null,this.minEdgeRing=null,this.depth=[0,-999,-999];var e=arguments[0],r=arguments[1];if(hi.call(this,e),this._isForward=r,r)this.init(e.getCoordinate(0),e.getCoordinate(1));else{var a=e.getNumPoints()-1;this.init(e.getCoordinate(a),e.getCoordinate(a-1))}this.computeDirectedLabel()}function go(){}function fi(){if(this.edges=new k,this.nodes=null,this.edgeEndList=new k,arguments.length===0)this.nodes=new fo(new go);else if(arguments.length===1){var e=arguments[0];this.nodes=new fo(e)}}function Da(){this.geometryFactory=null,this.shellList=new k;var e=arguments[0];this.geometryFactory=e}function Ql(){this.op=null,this.geometryFactory=null,this.ptLocator=null,this.lineEdgesList=new k,this.resultLineList=new k;var e=arguments[0],r=arguments[1],a=arguments[2];this.op=e,this.geometryFactory=r,this.ptLocator=a}function $l(){this.op=null,this.geometryFactory=null,this.resultPointList=new k;var e=arguments[0],r=arguments[1];this.op=e,this.geometryFactory=r}function Ho(){}function Vr(){this.geom=null;var e=arguments[0];this.geom=e}function Rs(){this.edgeMap=new ve,this.edgeList=null,this.ptInAreaLocation=[A.NONE,A.NONE]}function Ma(){Rs.apply(this),this.resultAreaEdgeList=null,this.label=null,this.SCANNING_FOR_INCOMING=1,this.LINKING_TO_OUTGOING=2}function ds(){go.apply(this)}function hs(){this.mce=null,this.chainIndex=null;var e=arguments[0],r=arguments[1];this.mce=e,this.chainIndex=r}function Gi(){if(this.label=null,this.xValue=null,this.eventType=null,this.insertEvent=null,this.deleteEventIndex=null,this.obj=null,arguments.length===2){var e=arguments[0],r=arguments[1];this.eventType=Gi.DELETE,this.xValue=e,this.insertEvent=r}else if(arguments.length===3){var a=arguments[0],c=arguments[1],g=arguments[2];this.eventType=Gi.INSERT,this.label=a,this.xValue=c,this.obj=g}}function js(){}function sr(){this._hasIntersection=!1,this.hasProper=!1,this.hasProperInterior=!1,this.properIntersectionPoint=null,this.li=null,this.includeProper=null,this.recordIsolated=null,this.isSelfIntersection=null,this.numIntersections=0,this.numTests=0,this.bdyNodes=null,this._isDone=!1,this.isDoneWhenProperInt=!1;var e=arguments[0],r=arguments[1],a=arguments[2];this.li=e,this.includeProper=r,this.recordIsolated=a}function ka(){js.apply(this),this.events=new k,this.nOverlaps=null}function Fs(){this.min=h.POSITIVE_INFINITY,this.max=h.NEGATIVE_INFINITY}function ec(){}function Go(){Fs.apply(this),this.item=null;var e=arguments[0],r=arguments[1],a=arguments[2];this.min=e,this.max=r,this.item=a}function Wo(){Fs.apply(this),this.node1=null,this.node2=null;var e=arguments[0],r=arguments[1];this.node1=e,this.node2=r,this.buildExtent(this.node1,this.node2)}function tc(){this.leaves=new k,this.root=null,this.level=0}function fr(){if(this.lines=null,this.isForcedToLineString=!1,arguments.length===1){var e=arguments[0];this.lines=e}else if(arguments.length===2){var r=arguments[0],a=arguments[1];this.lines=r,this.isForcedToLineString=a}}function Ra(){this.items=new k}function ja(){this.index=null;var e=arguments[0];if(!X(e,Nt))throw new d;this.index=new fs(e)}function Hr(){this.counter=null;var e=arguments[0];this.counter=e}function fs(){this.index=new tc;var e=arguments[0];this.init(e)}function nc(){this.coord=null,this.segmentIndex=null,this.dist=null;var e=arguments[0],r=arguments[1],a=arguments[2];this.coord=new w(e),this.segmentIndex=r,this.dist=a}function Ii(){this.nodeMap=new ve,this.edge=null;var e=arguments[0];this.edge=e}function Fa(){}function Bs(){this.e=null,this.pts=null,this.startIndex=null,this.env1=new V,this.env2=new V;var e=arguments[0];this.e=e,this.pts=e.getCoordinates();var r=new Fa;this.startIndex=r.getChainStartIndices(this.pts)}function gi(){this.depth=Array(2).fill().map(function(){return Array(3)});for(var e=0;2>e;e++)for(var r=0;3>r;r++)this.depth[e][r]=gi.NULL_VALUE}function xr(){if(ls.apply(this),this.pts=null,this.env=null,this.eiList=new Ii(this),this.name=null,this.mce=null,this._isIsolated=!0,this.depth=new gi,this.depthDelta=0,arguments.length===1){var e=arguments[0];xr.call(this,e,null)}else if(arguments.length===2){var r=arguments[0],a=arguments[1];this.pts=r,this.label=a}}function Lr(){if(fi.apply(this),this.parentGeom=null,this.lineEdgeMap=new Mt,this.boundaryNodeRule=null,this.useBoundaryDeterminationRule=!0,this.argIndex=null,this.boundaryNodes=null,this._hasTooFewPoints=!1,this.invalidPoint=null,this.areaPtLocator=null,this.ptLocator=new yt,arguments.length===2){var e=arguments[0],r=arguments[1];Lr.call(this,e,r,we.OGC_SFS_BOUNDARY_RULE)}else if(arguments.length===3){var a=arguments[0],c=arguments[1],g=arguments[2];this.argIndex=a,this.parentGeom=c,this.boundaryNodeRule=g,c!==null&&this.add(c)}}function Ti(){if(this.li=new Fe,this.resultPrecisionModel=null,this.arg=null,arguments.length===1){var e=arguments[0];this.setComputationPrecision(e.getPrecisionModel()),this.arg=new Array(1).fill(null),this.arg[0]=new Lr(0,e)}else if(arguments.length===2){var r=arguments[0],a=arguments[1];Ti.call(this,r,a,we.OGC_SFS_BOUNDARY_RULE)}else if(arguments.length===3){var c=arguments[0],g=arguments[1],b=arguments[2];c.getPrecisionModel().compareTo(g.getPrecisionModel())>=0?this.setComputationPrecision(c.getPrecisionModel()):this.setComputationPrecision(g.getPrecisionModel()),this.arg=new Array(2).fill(null),this.arg[0]=new Lr(0,c,b),this.arg[1]=new Lr(1,g,b)}}function qs(){this.pts=null,this._orientation=null;var e=arguments[0];this.pts=e,this._orientation=qs.orientation(e)}function Ai(){this.edges=new k,this.ocaMap=new ve}function $e(){this.ptLocator=new yt,this.geomFact=null,this.resultGeom=null,this.graph=null,this.edgeList=new Ai,this.resultPolyList=new k,this.resultLineList=new k,this.resultPointList=new k;var e=arguments[0],r=arguments[1];Ti.call(this,e,r),this.graph=new fi(new ds),this.geomFact=e.getFactory()}function ii(){this.geom=new Array(2).fill(null),this.snapTolerance=null,this.cbr=null;var e=arguments[0],r=arguments[1];this.geom[0]=e,this.geom[1]=r,this.computeSnapTolerance()}function Fn(){this.geom=new Array(2).fill(null);var e=arguments[0],r=arguments[1];this.geom[0]=e,this.geom[1]=r}function mi(){this.factory=null,this.interiorPoint=null,this.maxWidth=0;var e=arguments[0];this.factory=e.getFactory(),this.add(e)}function Gr(){this.poly=null,this.centreY=null,this.hiY=h.MAX_VALUE,this.loY=-h.MAX_VALUE;var e=arguments[0];this.poly=e,this.hiY=e.getEnvelopeInternal().getMaxY(),this.loY=e.getEnvelopeInternal().getMinY(),this.centreY=mi.avg(this.loY,this.hiY)}function Uu(){this.centroid=null,this.minDistance=h.MAX_VALUE,this.interiorPoint=null;var e=arguments[0];this.centroid=e.getCentroid().getCoordinate(),this.addInterior(e),this.interiorPoint===null&&this.addEndpoints(e)}function gs(){this.centroid=null,this.minDistance=h.MAX_VALUE,this.interiorPoint=null;var e=arguments[0];this.centroid=e.getCentroid().getCoordinate(),this.add(e)}function Ot(){}function Zt(){this.p0=null,this.p1=null,this.p2=null;var e=arguments[0],r=arguments[1],a=arguments[2];this.p0=e,this.p1=r,this.p2=a}function pi(){this.input=null,this.extremalPts=null,this.centre=null,this.radius=0;var e=arguments[0];this.input=e}function or(){if(this.inputGeom=null,this.isConvex=null,this.convexHullPts=null,this.minBaseSeg=new nt,this.minWidthPt=null,this.minPtIndex=null,this.minWidth=0,arguments.length===1){var e=arguments[0];or.call(this,e,!1)}else if(arguments.length===2){var r=arguments[0],a=arguments[1];this.inputGeom=r,this.isConvex=a}}function Wi(){this.inputGeom=null,this.distanceTolerance=null;var e=arguments[0];this.inputGeom=e}function zs(){Bn.apply(this),this.distanceTolerance=null;var e=arguments[0];this.distanceTolerance=e}function vi(){this._orig=null,this._sym=null,this._next=null;var e=arguments[0];this._orig=e}function gr(){this._isMarked=!1;var e=arguments[0];vi.call(this,e)}function Pi(){this.vertexMap=new Mt}function mo(){this._isStart=!1;var e=arguments[0];gr.call(this,e)}function Zo(){Pi.apply(this)}function Xo(){this.result=null,this.factory=null,this.graph=null,this.lines=new k,this.nodeEdgeStack=new kn,this.ringStartEdge=null,this.graph=new Zo}function Di(){this.items=new k,this.subnode=new Array(4).fill(null)}function Zi(){}function Lg(e,r){var a,c,g,b,I={32:{d:127,c:128,b:0,a:0},64:{d:32752,c:0,b:0,a:0}},F={32:8,64:11}[e];if(b||(a=0>r||0>1/r,isFinite(r)||(b=I[e],a&&(b.d+=1<<e/4-1),c=Math.pow(2,F)-1,g=0)),!b){for(c={32:127,64:1023}[e],g=Math.abs(r);g>=2;)c++,g/=2;for(;1>g&&c>0;)c--,g*=2;0>=c&&(g/=2)}return c}function Yo(){this.pt=new w,this.level=0,this.env=null;var e=arguments[0];this.computeKey(e)}function ms(){Di.apply(this),this.env=null,this.centrex=null,this.centrey=null,this.level=null;var e=arguments[0],r=arguments[1];this.env=e,this.level=r,this.centrex=(e.getMinX()+e.getMaxX())/2,this.centrey=(e.getMinY()+e.getMaxY())/2}function ps(){}function po(){Di.apply(this)}function Cr(){this.root=null,this.minExtent=1,this.root=new po}function Ko(e){this.geometryFactory=e||new dt}function Bd(e){this.geometryFactory=e||new dt,this.precisionModel=this.geometryFactory.getPrecisionModel(),this.parser=new Ko(this.geometryFactory)}function Ba(){this.parser=new Ko(this.geometryFactory)}function qd(e){this.geometryFactory=e||new dt,this.precisionModel=this.geometryFactory.getPrecisionModel(),this.parser=new je(this.geometryFactory)}function Jo(e){return[e.x,e.y]}function zd(e){this.geometryFactory=e||new dt}function vs(){if(this.noder=null,this.scaleFactor=null,this.offsetX=null,this.offsetY=null,this.isScaled=!1,arguments.length===2){var e=arguments[0],r=arguments[1];vs.call(this,e,r,0,0)}else if(arguments.length===4){var a=arguments[0],c=arguments[1];this.noder=a,this.scaleFactor=c,this.isScaled=!this.isIntegerPrecision()}}function qa(){if(this.inputGeom=null,this.isClosedEndpointsInInterior=!0,this.nonSimpleLocation=null,arguments.length===1){var e=arguments[0];this.inputGeom=e}else if(arguments.length===2){var r=arguments[0],a=arguments[1];this.inputGeom=r,this.isClosedEndpointsInInterior=!a.isInBoundary(2)}}function ys(){this.pt=null,this.isClosed=null,this.degree=null;var e=arguments[0];this.pt=e,this.isClosed=!1,this.degree=0}function Xt(){if(this.quadrantSegments=Xt.DEFAULT_QUADRANT_SEGMENTS,this.endCapStyle=Xt.CAP_ROUND,this.joinStyle=Xt.JOIN_ROUND,this.mitreLimit=Xt.DEFAULT_MITRE_LIMIT,this._isSingleSided=!1,this.simplifyFactor=Xt.DEFAULT_SIMPLIFY_FACTOR,arguments.length!==0){if(arguments.length===1){var e=arguments[0];this.setQuadrantSegments(e)}else if(arguments.length===2){var r=arguments[0],a=arguments[1];this.setQuadrantSegments(r),this.setEndCapStyle(a)}else if(arguments.length===4){var c=arguments[0],g=arguments[1],b=arguments[2],I=arguments[3];this.setQuadrantSegments(c),this.setEndCapStyle(g),this.setJoinStyle(b),this.setMitreLimit(I)}}}function Vu(){this.minIndex=-1,this.minCoord=null,this.minDe=null,this.orientedDe=null}function Hu(){this.array_=[]}function Mi(){this.finder=null,this.dirEdgeList=new k,this.nodes=new k,this.rightMostCoord=null,this.env=null,this.finder=new Vu}function Jn(){this.inputLine=null,this.distanceTol=null,this.isDeleted=null,this.angleOrientation=xe.COUNTERCLOCKWISE;var e=arguments[0];this.inputLine=e}function Qo(){this.ptList=null,this.precisionModel=null,this.minimimVertexDistance=0,this.ptList=new k}function Br(){this.maxCurveSegmentError=0,this.filletAngleQuantum=null,this.closingSegLengthFactor=1,this.segList=null,this.distance=0,this.precisionModel=null,this.bufParams=null,this.li=null,this.s0=null,this.s1=null,this.s2=null,this.seg0=new nt,this.seg1=new nt,this.offset0=new nt,this.offset1=new nt,this.side=0,this._hasNarrowConcaveAngle=!1;var e=arguments[0],r=arguments[1],a=arguments[2];this.precisionModel=e,this.bufParams=r,this.li=new Fe,this.filletAngleQuantum=Math.PI/2/r.getQuadrantSegments(),r.getQuadrantSegments()>=8&&r.getJoinStyle()===Xt.JOIN_ROUND&&(this.closingSegLengthFactor=Br.MAX_CLOSING_SEG_LEN_FACTOR),this.init(a)}function za(){this.distance=0,this.precisionModel=null,this.bufParams=null;var e=arguments[0],r=arguments[1];this.precisionModel=e,this.bufParams=r}function vo(){this.subgraphs=null,this.seg=new nt,this.cga=new xe;var e=arguments[0];this.subgraphs=e}function Us(){this.upwardSeg=null,this.leftDepth=null;var e=arguments[0],r=arguments[1];this.upwardSeg=new nt(e),this.leftDepth=r}function Gu(){this.inputGeom=null,this.distance=null,this.curveBuilder=null,this.curveList=new k;var e=arguments[0],r=arguments[1],a=arguments[2];this.inputGeom=e,this.distance=r,this.curveBuilder=a}function $o(){this._hasIntersection=!1,this.hasProper=!1,this.hasProperInterior=!1,this.hasInterior=!1,this.properIntersectionPoint=null,this.li=null,this.isSelfIntersection=null,this.numIntersections=0,this.numInteriorIntersections=0,this.numProperIntersections=0,this.numTests=0;var e=arguments[0];this.li=e}function Vs(){this.bufParams=null,this.workingPrecisionModel=null,this.workingNoder=null,this.geomFact=null,this.graph=null,this.edgeList=new Ai;var e=arguments[0];this.bufParams=e}function ea(){this.li=new Fe,this.segStrings=null;var e=arguments[0];this.segStrings=e}function yo(){this.li=null,this.pt=null,this.originalPt=null,this.ptScaled=null,this.p0Scaled=null,this.p1Scaled=null,this.scaleFactor=null,this.minx=null,this.maxx=null,this.miny=null,this.maxy=null,this.corner=new Array(4).fill(null),this.safeEnv=null;var e=arguments[0],r=arguments[1],a=arguments[2];if(this.originalPt=e,this.pt=e,this.scaleFactor=r,this.li=a,0>=r)throw new d;r!==1&&(this.pt=new w(this.scale(e.x),this.scale(e.y)),this.p0Scaled=new w,this.p1Scaled=new w),this.initCorners(this.pt)}function bs(){this.tempEnv1=new V,this.selectedSegment=new nt}function Ua(){this.index=null;var e=arguments[0];this.index=e}function ta(){bs.apply(this),this.hotPixel=null,this.parentEdge=null,this.hotPixelVertexIndex=null,this._isNodeAdded=!1;var e=arguments[0],r=arguments[1],a=arguments[2];this.hotPixel=e,this.parentEdge=r,this.hotPixelVertexIndex=a}function rc(){this.li=null,this.interiorIntersections=null;var e=arguments[0];this.li=e,this.interiorIntersections=new k}function Wu(){this.pm=null,this.li=null,this.scaleFactor=null,this.noder=null,this.pointSnapper=null,this.nodedSegStrings=null;var e=arguments[0];this.pm=e,this.li=new Fe,this.li.setPrecisionModel(e),this.scaleFactor=e.getScale()}function Qn(){if(this.argGeom=null,this.distance=null,this.bufParams=new Xt,this.resultGeometry=null,this.saveException=null,arguments.length===1){var e=arguments[0];this.argGeom=e}else if(arguments.length===2){var r=arguments[0],a=arguments[1];this.argGeom=r,this.bufParams=a}}function bo(){this.comps=null;var e=arguments[0];this.comps=e}function l(){if(this.component=null,this.segIndex=null,this.pt=null,arguments.length===2){var e=arguments[0],r=arguments[1];l.call(this,e,l.INSIDE_AREA,r)}else if(arguments.length===3){var a=arguments[0],c=arguments[1],g=arguments[2];this.component=a,this.segIndex=c,this.pt=g}}function m(){this.pts=null;var e=arguments[0];this.pts=e}function C(){this.locations=null;var e=arguments[0];this.locations=e}function P(){if(this.geom=null,this.terminateDistance=0,this.ptLocator=new yt,this.minDistanceLocation=null,this.minDistance=h.MAX_VALUE,arguments.length===2){var e=arguments[0],r=arguments[1];P.call(this,e,r,0)}else if(arguments.length===3){var a=arguments[0],c=arguments[1],g=arguments[2];this.geom=new Array(2).fill(null),this.geom[0]=a,this.geom[1]=c,this.terminateDistance=g}}function z(){this.factory=null,this.directedEdges=new k,this.coordinates=null;var e=arguments[0];this.factory=e}function W(){this._isMarked=!1,this._isVisited=!1,this.data=null}function oe(){W.apply(this),this.parentEdge=null,this.from=null,this.to=null,this.p0=null,this.p1=null,this.sym=null,this.edgeDirection=null,this.quadrant=null,this.angle=null;var e=arguments[0],r=arguments[1],a=arguments[2],c=arguments[3];this.from=e,this.to=r,this.edgeDirection=c,this.p0=e.getCoordinate(),this.p1=a;var g=this.p1.x-this.p0.x,b=this.p1.y-this.p0.y;this.quadrant=qt.quadrant(g,b),this.angle=Math.atan2(b,g)}function fe(){var e=arguments[0],r=arguments[1],a=arguments[2],c=arguments[3];oe.call(this,e,r,a,c)}function pe(){if(W.apply(this),this.dirEdge=null,arguments.length!==0){if(arguments.length===2){var e=arguments[0],r=arguments[1];this.setDirectedEdges(e,r)}}}function Ie(){this.outEdges=new k,this.sorted=!1}function Ue(){if(W.apply(this),this.pt=null,this.deStar=null,arguments.length===1){var e=arguments[0];Ue.call(this,e,new Ie)}else if(arguments.length===2){var r=arguments[0],a=arguments[1];this.pt=r,this.deStar=a}}function wt(){pe.apply(this),this.line=null;var e=arguments[0];this.line=e}function zt(){this.nodeMap=new ve}function $n(){this.edges=new Ye,this.dirEdges=new Ye,this.nodeMap=new zt}function Xn(){$n.apply(this)}function Wr(){this.graph=new Xn,this.mergedLineStrings=null,this.factory=null,this.edgeStrings=null}function mr(){this.edgeRing=null,this.next=null,this.label=-1;var e=arguments[0],r=arguments[1],a=arguments[2],c=arguments[3];oe.call(this,e,r,a,c)}function xs(){pe.apply(this),this.line=null;var e=arguments[0];this.line=e}function yi(){this.factory=null,this.deList=new k,this.lowestEdge=null,this.ring=null,this.ringPts=null,this.holes=null,this.shell=null,this._isHole=null,this._isProcessed=!1,this._isIncludedSet=!1,this._isIncluded=!1;var e=arguments[0];this.factory=e}function ic(){}function zn(){$n.apply(this),this.factory=null;var e=arguments[0];this.factory=e}function Nr(){if(this.lineStringAdder=new Zu(this),this.graph=null,this.dangles=new k,this.cutEdges=new k,this.invalidRingLines=new k,this.holeList=null,this.shellList=null,this.polyList=null,this.isCheckingRingsValid=!0,this.extractOnlyPolygonal=null,this.geomFactory=null,arguments.length===0)Nr.call(this,!1);else if(arguments.length===1){var e=arguments[0];this.extractOnlyPolygonal=e}}function Zu(){this.p=null;var e=arguments[0];this.p=e}function Va(){}function Dn(){if(this.edgeEnds=new k,arguments.length===1){var e=arguments[0];Dn.call(this,null,e)}else if(arguments.length===2){var r=arguments[1];hi.call(this,r.getEdge(),r.getCoordinate(),r.getDirectedCoordinate(),new En(r.getLabel())),this.insert(r)}}function xo(){Rs.apply(this)}function Xu(){var e=arguments[0],r=arguments[1];br.call(this,e,r)}function Ha(){go.apply(this)}function Yu(){this.li=new Fe,this.ptLocator=new yt,this.arg=null,this.nodes=new fo(new Ha),this.im=null,this.isolatedEdges=new k,this.invalidPoint=null;var e=arguments[0];this.arg=e}function Co(){this.rectEnv=null;var e=arguments[0];this.rectEnv=e.getEnvelopeInternal()}function Ku(){this.li=new Fe,this.rectEnv=null,this.diagUp0=null,this.diagUp1=null,this.diagDown0=null,this.diagDown1=null;var e=arguments[0];this.rectEnv=e,this.diagUp0=new w(e.getMinX(),e.getMinY()),this.diagUp1=new w(e.getMaxX(),e.getMaxY()),this.diagDown0=new w(e.getMinX(),e.getMaxY()),this.diagDown1=new w(e.getMaxX(),e.getMinY())}function Hs(){this._isDone=!1}function Ju(){this.rectangle=null,this.rectEnv=null;var e=arguments[0];this.rectangle=e,this.rectEnv=e.getEnvelopeInternal()}function Ud(){Hs.apply(this),this.rectEnv=null,this._intersects=!1;var e=arguments[0];this.rectEnv=e}function Vd(){Hs.apply(this),this.rectSeq=null,this.rectEnv=null,this._containsPoint=!1;var e=arguments[0];this.rectSeq=e.getExteriorRing().getCoordinateSequence(),this.rectEnv=e.getEnvelopeInternal()}function Hd(){Hs.apply(this),this.rectEnv=null,this.rectIntersector=null,this.hasIntersection=!1,this.p0=new w,this.p1=new w;var e=arguments[0];this.rectEnv=e.getEnvelopeInternal(),this.rectIntersector=new Ku(this.rectEnv)}function Qt(){if(this._relate=null,arguments.length===2){var e=arguments[0],r=arguments[1];Ti.call(this,e,r),this._relate=new Yu(this.arg)}else if(arguments.length===3){var a=arguments[0],c=arguments[1],g=arguments[2];Ti.call(this,a,c,g),this._relate=new Yu(this.arg)}}function bi(){this.geomFactory=null,this.skipEmpty=!1,this.inputGeoms=null;var e=arguments[0];this.geomFactory=bi.extractFactory(e),this.inputGeoms=e}function sc(){this.pointGeom=null,this.otherGeom=null,this.geomFact=null;var e=arguments[0],r=arguments[1];this.pointGeom=e,this.otherGeom=r,this.geomFact=r.getFactory()}function na(){this.sortIndex=-1,this.comps=null;var e=arguments[0],r=arguments[1];this.sortIndex=e,this.comps=r}function ki(){this.inputPolys=null,this.geomFactory=null;var e=arguments[0];this.inputPolys=e,this.inputPolys===null&&(this.inputPolys=new k)}function ra(){if(this.polygons=new k,this.lines=new k,this.points=new k,this.geomFact=null,arguments.length===1){if(X(arguments[0],M)){var e=arguments[0];this.extract(e)}else if(arguments[0]instanceof ae){var r=arguments[0];this.extract(r)}}else if(arguments.length===2){var a=arguments[0],c=arguments[1];this.geomFact=c,this.extract(a)}}function oc(){this.geometryFactory=new dt,this.geomGraph=null,this.disconnectedRingcoord=null;var e=arguments[0];this.geomGraph=e}function Cs(){this.items=new k,this.subnode=[null,null]}function Gs(){if(this.min=null,this.max=null,arguments.length===0)this.min=0,this.max=0;else if(arguments.length===1){var e=arguments[0];this.init(e.min,e.max)}else if(arguments.length===2){var r=arguments[0],a=arguments[1];this.init(r,a)}}function ac(){this.pt=0,this.level=0,this.interval=null;var e=arguments[0];this.computeKey(e)}function _o(){Cs.apply(this),this.interval=null,this.centre=null,this.level=null;var e=arguments[0],r=arguments[1];this.interval=e,this.level=r,this.centre=(e.getMin()+e.getMax())/2}function Qu(){Cs.apply(this)}function $u(){this.root=null,this.minExtent=1,this.root=new Qu}function Ng(){}function Gd(){this.ring=null,this.tree=null,this.crossings=0,this.interval=new Gs;var e=arguments[0];this.ring=e,this.buildIndex()}function uc(){bs.apply(this),this.mcp=null,this.p=null;var e=arguments[0],r=arguments[1];this.mcp=e,this.p=r}function Ig(){this.nodes=new fo(new Ha)}function Tg(){this.li=new Fe,this.geomGraph=null,this.nodeGraph=new Ig,this.invalidPoint=null;var e=arguments[0];this.geomGraph=e}function Ag(){this.graph=null,this.rings=new k,this.totalEnv=new V,this.index=null,this.nestedPt=null;var e=arguments[0];this.graph=e}function Kt(){if(this.errorType=null,this.pt=null,arguments.length===1){var e=arguments[0];Kt.call(this,e,null)}else if(arguments.length===2){var r=arguments[0],a=arguments[1];this.errorType=r,a!==null&&(this.pt=a.copy())}}function Ri(){this.parentGeometry=null,this.isSelfTouchingRingFormingHoleValid=!1,this.validErr=null;var e=arguments[0];this.parentGeometry=e}function Wd(){dn.CoordinateOperation.apply(this),this.targetPM=null,this.removeCollapsed=!0;var e=arguments[0],r=arguments[1];this.targetPM=e,this.removeCollapsed=r}function Ga(){this.targetPM=null,this.removeCollapsed=!0,this.changePrecisionModel=!1,this.isPointwise=!1;var e=arguments[0];this.targetPM=e}function lc(){this.pts=null,this.usePt=null,this.distanceTolerance=null,this.seg=new nt;var e=arguments[0];this.pts=e}function el(){this.inputGeom=null,this.distanceTolerance=null,this.isEnsureValidTopology=!0;var e=arguments[0];this.inputGeom=e}function cc(){Bn.apply(this),this.isEnsureValidTopology=!0,this.distanceTolerance=null;var e=arguments[0],r=arguments[1];this.isEnsureValidTopology=e,this.distanceTolerance=r}function dc(){if(this.parent=null,this.index=null,arguments.length===2){var e=arguments[0],r=arguments[1];dc.call(this,e,r,null,-1)}else if(arguments.length===4){var a=arguments[0],c=arguments[1],g=arguments[2],b=arguments[3];nt.call(this,a,c),this.parent=g,this.index=b}}function Eo(){if(this.parentLine=null,this.segs=null,this.resultSegs=new k,this.minimumSize=null,arguments.length===1){var e=arguments[0];Eo.call(this,e,2)}else if(arguments.length===2){var r=arguments[0],a=arguments[1];this.parentLine=r,this.minimumSize=a,this.init()}}function tl(){this.index=new Cr}function Pg(){this.querySeg=null,this.items=new k;var e=arguments[0];this.querySeg=e}function hc(){this.li=new Fe,this.inputIndex=new tl,this.outputIndex=new tl,this.line=null,this.linePts=null,this.distanceTolerance=0;var e=arguments[0],r=arguments[1];this.inputIndex=e,this.outputIndex=r}function Dg(){this.inputIndex=new tl,this.outputIndex=new tl,this.distanceTolerance=0}function Wa(){this.inputGeom=null,this.lineSimplifier=new Dg,this.linestringMap=null;var e=arguments[0];this.inputGeom=e}function fc(){Bn.apply(this),this.linestringMap=null;var e=arguments[0];this.linestringMap=e}function Zd(){this.tps=null;var e=arguments[0];this.tps=e}function nl(){this.seg=null,this.segLen=null,this.splitPt=null,this.minimumLen=0;var e=arguments[0];this.seg=e,this.segLen=e.getLength()}function Mg(){}function gc(){}function Cn(){}function cn(){if(this.p=null,arguments.length===1){var e=arguments[0];this.p=new w(e)}else if(arguments.length===2){var r=arguments[0],a=arguments[1];this.p=new w(r,a)}else if(arguments.length===3){var c=arguments[0],g=arguments[1],b=arguments[2];this.p=new w(c,g,b)}}function ia(){this._isOnConstraint=null,this.constraint=null;var e=arguments[0];cn.call(this,e)}function Tn(){this._rot=null,this.vertex=null,this.next=null,this.data=null}function mc(){this.subdiv=null,this.isUsingTolerance=!1;var e=arguments[0];this.subdiv=e,this.isUsingTolerance=e.getTolerance()>0}function kg(){}function Xd(){this.subdiv=null,this.lastEdge=null;var e=arguments[0];this.subdiv=e,this.init()}function rl(){if(this.seg=null,arguments.length===1){if(typeof arguments[0]=="string"){var e=arguments[0];x.call(this,e)}else if(arguments[0]instanceof nt){var r=arguments[0];x.call(this,"Locate failed to converge (at edge: "+r+").  Possible causes include invalid Subdivision topology or very close sites"),this.seg=new nt(r)}}else if(arguments.length===2){var a=arguments[0],c=arguments[1];x.call(this,rl.msgWithSpatial(a,c)),this.seg=new nt(c)}}function il(){}function xi(){this.visitedKey=0,this.quadEdges=new k,this.startingEdge=null,this.tolerance=null,this.edgeCoincidenceTolerance=null,this.frameVertex=new Array(3).fill(null),this.frameEnv=null,this.locator=null,this.seg=new nt,this.triEdges=new Array(3).fill(null);var e=arguments[0],r=arguments[1];this.tolerance=r,this.edgeCoincidenceTolerance=r/xi.EDGE_COINCIDENCE_TOL_FACTOR,this.createFrame(e),this.startingEdge=this.initSubdiv(),this.locator=new Xd(this)}function Yd(){}function Kd(){this.triList=new k}function Jd(){this.triList=new k}function Qd(){this.coordList=new H,this.triCoords=new k}function Za(){if(this.ls=null,this.data=null,arguments.length===2){var e=arguments[0],r=arguments[1];this.ls=new nt(e,r)}else if(arguments.length===3){var a=arguments[0],c=arguments[1],g=arguments[2];this.ls=new nt(a,c),this.data=g}else if(arguments.length===6){var b=arguments[0],I=arguments[1],F=arguments[2],Z=arguments[3],ne=arguments[4],de=arguments[5];Za.call(this,new w(b,I,F),new w(Z,ne,de))}else if(arguments.length===7){var me=arguments[0],_e=arguments[1],Ze=arguments[2],gt=arguments[3],St=arguments[4],yn=arguments[5],Un=arguments[6];Za.call(this,new w(me,_e,Ze),new w(gt,St,yn),Un)}}function pc(){}function $d(){if(this.p=null,this.data=null,this.left=null,this.right=null,this.count=null,arguments.length===2){var e=arguments[0],r=arguments[1];this.p=new w(e),this.left=null,this.right=null,this.count=1,this.data=r}else if(arguments.length===3){var a=arguments[0],c=arguments[1],g=arguments[2];this.p=new w(a,c),this.left=null,this.right=null,this.count=1,this.data=g}}function Xa(){if(this.root=null,this.numberOfNodes=null,this.tolerance=null,arguments.length===0)Xa.call(this,0);else if(arguments.length===1){var e=arguments[0];this.tolerance=e}}function eh(){this.tolerance=null,this.matchNode=null,this.matchDist=0,this.p=null;var e=arguments[0],r=arguments[1];this.p=e,this.tolerance=r}function sa(){this.initialVertices=null,this.segVertices=null,this.segments=new k,this.subdiv=null,this.incDel=null,this.convexHull=null,this.splitFinder=new gc,this.kdt=null,this.vertexFactory=null,this.computeAreaEnv=null,this.splitPt=null,this.tolerance=null;var e=arguments[0],r=arguments[1];this.initialVertices=new k(e),this.tolerance=r,this.kdt=new Xa(r)}function Ir(){this.siteCoords=null,this.tolerance=0,this.subdiv=null}function sl(){this.siteCoords=null,this.constraintLines=null,this.tolerance=0,this.subdiv=null,this.constraintVertexMap=new ve}function vc(){this.siteCoords=null,this.tolerance=0,this.subdiv=null,this.clipEnv=null,this.diagramEnv=null}function th(){}Array.prototype.fill||(Array.prototype.fill=function(e){for(var r=Object(this),a=parseInt(r.length,10),c=arguments[1],g=parseInt(c,10)||0,b=0>g?Math.max(a+g,0):Math.min(g,a),I=arguments[2],F=I===void 0?a:parseInt(I,10)||0,Z=0>F?Math.max(a+F,0):Math.min(F,a);Z>b;b++)r[b]=e;return r}),Number.isFinite=Number.isFinite||function(e){return typeof e=="number"&&isFinite(e)},Number.isInteger=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},Number.parseFloat=Number.parseFloat||parseFloat,Number.isNaN=Number.isNaN||function(e){return e!==e},Math.trunc=Math.trunc||function(e){return 0>e?Math.ceil(e):Math.floor(e)},o(u.prototype,{interfaces_:function(){return[]},getClass:function(){return u}}),u.equalsWithTolerance=function(e,r,a){return Math.abs(e-r)<=a},h.isNaN=function(e){return Number.isNaN(e)},h.doubleToLongBits=function(e){return e},h.longBitsToDouble=function(e){return e},h.isInfinite=function(e){return!Number.isFinite(e)},h.MAX_VALUE=Number.MAX_VALUE,_(S,x),o(S.prototype,{interfaces_:function(){return[]},getClass:function(){return S}}),o(N.prototype,{interfaces_:function(){return[]},getClass:function(){return N}}),N.shouldNeverReachHere=function(){if(arguments.length===0)N.shouldNeverReachHere(null);else if(arguments.length===1){var e=arguments[0];throw new S("Should never reach here"+(e!==null?": "+e:""))}},N.isTrue=function(){if(arguments.length===1){var e=arguments[0];N.isTrue(e,null)}else if(arguments.length===2){var r=arguments[0],a=arguments[1];if(!r)throw a===null?new S:new S(a)}},N.equals=function(){if(arguments.length===2){var e=arguments[0],r=arguments[1];N.equals(e,r,null)}else if(arguments.length===3){var a=arguments[0],c=arguments[1],g=arguments[2];if(!c.equals(a))throw new S("Expected "+a+" but encountered "+c+(g!==null?": "+g:""))}},o(w.prototype,{setOrdinate:function(e,r){switch(e){case w.X:this.x=r;break;case w.Y:this.y=r;break;case w.Z:this.z=r;break;default:throw new d}},equals2D:function(){if(arguments.length===1){var e=arguments[0];return this.x!==e.x?!1:this.y===e.y}if(arguments.length===2){var r=arguments[0],a=arguments[1];return u.equalsWithTolerance(this.x,r.x,a)?!!u.equalsWithTolerance(this.y,r.y,a):!1}},getOrdinate:function(e){switch(e){case w.X:return this.x;case w.Y:return this.y;case w.Z:return this.z}throw new d},equals3D:function(e){return this.x===e.x&&this.y===e.y&&(this.z===e.z||h.isNaN(this.z)&&h.isNaN(e.z))},equals:function(e){return e instanceof w?this.equals2D(e):!1},equalInZ:function(e,r){return u.equalsWithTolerance(this.z,e.z,r)},compareTo:function(e){var r=e;return this.x<r.x?-1:this.x>r.x?1:this.y<r.y?-1:this.y>r.y?1:0},clone:function(){try{var e=null;return e}catch(r){if(r instanceof CloneNotSupportedException)return N.shouldNeverReachHere("this shouldn't happen because this class is Cloneable"),null;throw r}finally{}},copy:function(){return new w(this)},toString:function(){return"("+this.x+", "+this.y+", "+this.z+")"},distance3D:function(e){var r=this.x-e.x,a=this.y-e.y,c=this.z-e.z;return Math.sqrt(r*r+a*a+c*c)},distance:function(e){var r=this.x-e.x,a=this.y-e.y;return Math.sqrt(r*r+a*a)},hashCode:function(){var e=17;return e=37*e+w.hashCode(this.x),e=37*e+w.hashCode(this.y)},setCoordinate:function(e){this.x=e.x,this.y=e.y,this.z=e.z},interfaces_:function(){return[f,v,y]},getClass:function(){return w}}),w.hashCode=function(){if(arguments.length===1){var e=arguments[0],r=h.doubleToLongBits(e);return Math.trunc(r^r>>>32)}},o(j.prototype,{compare:function(e,r){var a=e,c=r,g=j.compare(a.x,c.x);if(g!==0)return g;var b=j.compare(a.y,c.y);if(b!==0)return b;if(this.dimensionsToTest<=2)return 0;var I=j.compare(a.z,c.z);return I},interfaces_:function(){return[p]},getClass:function(){return j}}),j.compare=function(e,r){return r>e?-1:e>r?1:h.isNaN(e)?h.isNaN(r)?0:-1:h.isNaN(r)?1:0},w.DimensionalComparator=j,w.serialVersionUID=6683108902428367e3,w.NULL_ORDINATE=h.NaN,w.X=0,w.Y=1,w.Z=2,U.prototype.hasNext=function(){},U.prototype.next=function(){},U.prototype.remove=function(){},M.prototype.add=function(){},M.prototype.addAll=function(){},M.prototype.isEmpty=function(){},M.prototype.iterator=function(){},M.prototype.size=function(){},M.prototype.toArray=function(){},M.prototype.remove=function(){},D.prototype=new Error,D.prototype.name="IndexOutOfBoundsException",T.prototype=Object.create(M.prototype),T.prototype.constructor=T,T.prototype.get=function(){},T.prototype.set=function(){},T.prototype.isEmpty=function(){},O.prototype=new Error,O.prototype.name="NoSuchElementException",q.prototype=new Error,q.prototype.name="OperationNotSupported",k.prototype=Object.create(T.prototype),k.prototype.constructor=k,k.prototype.ensureCapacity=function(){},k.prototype.interfaces_=function(){return[T,M]},k.prototype.add=function(e){return this.array_.push(e),!0},k.prototype.clear=function(){this.array_=[]},k.prototype.addAll=function(e){for(var r=e.iterator();r.hasNext();)this.add(r.next());return!0},k.prototype.set=function(e,r){var a=this.array_[e];return this.array_[e]=r,a},k.prototype.iterator=function(){return new yc(this)},k.prototype.get=function(e){if(0>e||e>=this.size())throw new D;return this.array_[e]},k.prototype.isEmpty=function(){return this.array_.length===0},k.prototype.size=function(){return this.array_.length},k.prototype.toArray=function(){for(var e=[],r=0,a=this.array_.length;a>r;r++)e.push(this.array_[r]);return e},k.prototype.remove=function(e){for(var r=!1,a=0,c=this.array_.length;c>a;a++)if(this.array_[a]===e){this.array_.splice(a,1),r=!0;break}return r};var yc=function(e){this.arrayList_=e,this.position_=0};yc.prototype.next=function(){if(this.position_===this.arrayList_.size())throw new O;return this.arrayList_.get(this.position_++)},yc.prototype.hasNext=function(){return this.position_<this.arrayList_.size()},yc.prototype.set=function(e){return this.arrayList_.set(this.position_-1,e)},yc.prototype.remove=function(){throw new q},_(H,k),o(H.prototype,{getCoordinate:function(e){return this.get(e)},addAll:function(){if(arguments.length===2){for(var e=arguments[0],r=arguments[1],a=!1,c=e.iterator();c.hasNext();)this.add(c.next(),r),a=!0;return a}return k.prototype.addAll.apply(this,arguments)},clone:function(){for(var r=k.prototype.clone.call(this),a=0;a<this.size();a++)r.add(a,this.get(a).copy());return r},toCoordinateArray:function(){return this.toArray(H.coordArrayType)},add:function(){if(arguments.length===1){var e=arguments[0];k.prototype.add.call(this,e)}else if(arguments.length===2){if(arguments[0]instanceof Array&&typeof arguments[1]=="boolean"){var r=arguments[0],a=arguments[1];return this.add(r,a,!0),!0}if(arguments[0]instanceof w&&typeof arguments[1]=="boolean"){var c=arguments[0],g=arguments[1];if(!g&&this.size()>=1){var b=this.get(this.size()-1);if(b.equals2D(c))return null}k.prototype.add.call(this,c)}else if(arguments[0]instanceof Object&&typeof arguments[1]=="boolean"){var I=arguments[0],F=arguments[1];return this.add(I,F),!0}}else if(arguments.length===3){if(typeof arguments[2]=="boolean"&&arguments[0]instanceof Array&&typeof arguments[1]=="boolean"){var Z=arguments[0],ne=arguments[1],de=arguments[2];if(de)for(var me=0;me<Z.length;me++)this.add(Z[me],ne);else for(var me=Z.length-1;me>=0;me--)this.add(Z[me],ne);return!0}if(typeof arguments[2]=="boolean"&&Number.isInteger(arguments[0])&&arguments[1]instanceof w){var _e=arguments[0],Ze=arguments[1],gt=arguments[2];if(!gt){var St=this.size();if(St>0){if(_e>0){var yn=this.get(_e-1);if(yn.equals2D(Ze))return null}if(St>_e){var Un=this.get(_e);if(Un.equals2D(Ze))return null}}}k.prototype.add.call(this,_e,Ze)}}else if(arguments.length===4){var Ki=arguments[0],Ya=arguments[1],ih=arguments[2],sh=arguments[3],oh=1;ih>sh&&(oh=-1);for(var me=ih;me!==sh;me+=oh)this.add(Ki[me],Ya);return!0}},closeRing:function(){this.size()>0&&this.add(new w(this.get(0)),!1)},interfaces_:function(){return[]},getClass:function(){return H}}),H.coordArrayType=new Array(0).fill(null),o(V.prototype,{getArea:function(){return this.getWidth()*this.getHeight()},equals:function(e){if(!(e instanceof V))return!1;var r=e;return this.isNull()?r.isNull():this.maxx===r.getMaxX()&&this.maxy===r.getMaxY()&&this.minx===r.getMinX()&&this.miny===r.getMinY()},intersection:function(e){if(this.isNull()||e.isNull()||!this.intersects(e))return new V;var r=this.minx>e.minx?this.minx:e.minx,a=this.miny>e.miny?this.miny:e.miny,c=this.maxx<e.maxx?this.maxx:e.maxx,g=this.maxy<e.maxy?this.maxy:e.maxy;return new V(r,c,a,g)},isNull:function(){return this.maxx<this.minx},getMaxX:function(){return this.maxx},covers:function(){if(arguments.length===1){if(arguments[0]instanceof w){var e=arguments[0];return this.covers(e.x,e.y)}if(arguments[0]instanceof V){var r=arguments[0];return this.isNull()||r.isNull()?!1:r.getMinX()>=this.minx&&r.getMaxX()<=this.maxx&&r.getMinY()>=this.miny&&r.getMaxY()<=this.maxy}}else if(arguments.length===2){var a=arguments[0],c=arguments[1];return this.isNull()?!1:a>=this.minx&&a<=this.maxx&&c>=this.miny&&c<=this.maxy}},intersects:function(){if(arguments.length===1){if(arguments[0]instanceof V){var e=arguments[0];return this.isNull()||e.isNull()?!1:!(e.minx>this.maxx||e.maxx<this.minx||e.miny>this.maxy||e.maxy<this.miny)}if(arguments[0]instanceof w){var r=arguments[0];return this.intersects(r.x,r.y)}}else if(arguments.length===2){var a=arguments[0],c=arguments[1];return this.isNull()?!1:!(a>this.maxx||a<this.minx||c>this.maxy||c<this.miny)}},getMinY:function(){return this.miny},getMinX:function(){return this.minx},expandToInclude:function(){if(arguments.length===1){if(arguments[0]instanceof w){var e=arguments[0];this.expandToInclude(e.x,e.y)}else if(arguments[0]instanceof V){var r=arguments[0];if(r.isNull())return null;this.isNull()?(this.minx=r.getMinX(),this.maxx=r.getMaxX(),this.miny=r.getMinY(),this.maxy=r.getMaxY()):(r.minx<this.minx&&(this.minx=r.minx),r.maxx>this.maxx&&(this.maxx=r.maxx),r.miny<this.miny&&(this.miny=r.miny),r.maxy>this.maxy&&(this.maxy=r.maxy))}}else if(arguments.length===2){var a=arguments[0],c=arguments[1];this.isNull()?(this.minx=a,this.maxx=a,this.miny=c,this.maxy=c):(a<this.minx&&(this.minx=a),a>this.maxx&&(this.maxx=a),c<this.miny&&(this.miny=c),c>this.maxy&&(this.maxy=c))}},minExtent:function(){if(this.isNull())return 0;var e=this.getWidth(),r=this.getHeight();return r>e?e:r},getWidth:function(){return this.isNull()?0:this.maxx-this.minx},compareTo:function(e){var r=e;return this.isNull()?r.isNull()?0:-1:r.isNull()?1:this.minx<r.minx?-1:this.minx>r.minx?1:this.miny<r.miny?-1:this.miny>r.miny?1:this.maxx<r.maxx?-1:this.maxx>r.maxx?1:this.maxy<r.maxy?-1:this.maxy>r.maxy?1:0},translate:function(e,r){return this.isNull()?null:void this.init(this.getMinX()+e,this.getMaxX()+e,this.getMinY()+r,this.getMaxY()+r)},toString:function(){return"Env["+this.minx+" : "+this.maxx+", "+this.miny+" : "+this.maxy+"]"},setToNull:function(){this.minx=0,this.maxx=-1,this.miny=0,this.maxy=-1},getHeight:function(){return this.isNull()?0:this.maxy-this.miny},maxExtent:function(){if(this.isNull())return 0;var e=this.getWidth(),r=this.getHeight();return e>r?e:r},expandBy:function(){if(arguments.length===1){var e=arguments[0];this.expandBy(e,e)}else if(arguments.length===2){var r=arguments[0],a=arguments[1];if(this.isNull())return null;this.minx-=r,this.maxx+=r,this.miny-=a,this.maxy+=a,(this.minx>this.maxx||this.miny>this.maxy)&&this.setToNull()}},contains:function(){if(arguments.length===1){if(arguments[0]instanceof V){var e=arguments[0];return this.covers(e)}if(arguments[0]instanceof w){var r=arguments[0];return this.covers(r)}}else if(arguments.length===2){var a=arguments[0],c=arguments[1];return this.covers(a,c)}},centre:function(){return this.isNull()?null:new w((this.getMinX()+this.getMaxX())/2,(this.getMinY()+this.getMaxY())/2)},init:function(){if(arguments.length===0)this.setToNull();else if(arguments.length===1){if(arguments[0]instanceof w){var e=arguments[0];this.init(e.x,e.x,e.y,e.y)}else if(arguments[0]instanceof V){var r=arguments[0];this.minx=r.minx,this.maxx=r.maxx,this.miny=r.miny,this.maxy=r.maxy}}else if(arguments.length===2){var a=arguments[0],c=arguments[1];this.init(a.x,c.x,a.y,c.y)}else if(arguments.length===4){var g=arguments[0],b=arguments[1],I=arguments[2],F=arguments[3];b>g?(this.minx=g,this.maxx=b):(this.minx=b,this.maxx=g),F>I?(this.miny=I,this.maxy=F):(this.miny=F,this.maxy=I)}},getMaxY:function(){return this.maxy},distance:function(e){if(this.intersects(e))return 0;var r=0;this.maxx<e.minx?r=e.minx-this.maxx:this.minx>e.maxx&&(r=this.minx-e.maxx);var a=0;return this.maxy<e.miny?a=e.miny-this.maxy:this.miny>e.maxy&&(a=this.miny-e.maxy),r===0?a:a===0?r:Math.sqrt(r*r+a*a)},hashCode:function(){var e=17;return e=37*e+w.hashCode(this.minx),e=37*e+w.hashCode(this.maxx),e=37*e+w.hashCode(this.miny),e=37*e+w.hashCode(this.maxy)},interfaces_:function(){return[f,y]},getClass:function(){return V}}),V.intersects=function(){if(arguments.length===3){var e=arguments[0],r=arguments[1],a=arguments[2];return a.x>=(e.x<r.x?e.x:r.x)&&a.x<=(e.x>r.x?e.x:r.x)&&a.y>=(e.y<r.y?e.y:r.y)&&a.y<=(e.y>r.y?e.y:r.y)}if(arguments.length===4){var c=arguments[0],g=arguments[1],b=arguments[2],I=arguments[3],F=Math.min(b.x,I.x),Z=Math.max(b.x,I.x),ne=Math.min(c.x,g.x),de=Math.max(c.x,g.x);return ne>Z||F>de?!1:(F=Math.min(b.y,I.y),Z=Math.max(b.y,I.y),ne=Math.min(c.y,g.y),de=Math.max(c.y,g.y),ne>Z?!1:!(F>de))}},V.serialVersionUID=5873921885273102e3,_(R,Y),o(R.prototype,{interfaces_:function(){return[]},getClass:function(){return R}}),o(A.prototype,{interfaces_:function(){return[]},getClass:function(){return A}}),A.toLocationSymbol=function(e){switch(e){case A.EXTERIOR:return"e";case A.BOUNDARY:return"b";case A.INTERIOR:return"i";case A.NONE:return"-"}throw new d},A.INTERIOR=0,A.BOUNDARY=1,A.EXTERIOR=2,A.NONE=-1,o(ee.prototype,{interfaces_:function(){return[]},getClass:function(){return ee}}),ee.log10=function(e){var r=Math.log(e);return h.isInfinite(r)||h.isNaN(r)?r:r/ee.LOG_10},ee.min=function(e,r,a,c){var g=e;return g>r&&(g=r),g>a&&(g=a),g>c&&(g=c),g},ee.clamp=function(){if(typeof arguments[2]=="number"&&typeof arguments[0]=="number"&&typeof arguments[1]=="number"){var e=arguments[0],r=arguments[1],a=arguments[2];return r>e?r:e>a?a:e}if(Number.isInteger(arguments[2])&&Number.isInteger(arguments[0])&&Number.isInteger(arguments[1])){var c=arguments[0],g=arguments[1],b=arguments[2];return g>c?g:c>b?b:c}},ee.wrap=function(e,r){return 0>e?r- -e%r:e%r},ee.max=function(){if(arguments.length===3){var e=arguments[0],r=arguments[1],a=arguments[2],c=e;return r>c&&(c=r),a>c&&(c=a),c}if(arguments.length===4){var g=arguments[0],b=arguments[1],I=arguments[2],F=arguments[3],c=g;return b>c&&(c=b),I>c&&(c=I),F>c&&(c=F),c}},ee.average=function(e,r){return(e+r)/2},ee.LOG_10=Math.log(10),ue.prototype.append=function(e){this.str+=e},ue.prototype.setCharAt=function(e,r){return this.str.substr(0,e)+r+this.str.substr(e+1)},ue.prototype.toString=function(e){return this.str},G.prototype.intValue=function(){return this.value},G.prototype.compareTo=function(e){return this.value<e?-1:this.value>e?1:0},G.isNaN=function(e){return Number.isNaN(e)},K.isWhitespace=function(e){return 32>=e&&e>=0||e==127},K.toUpperCase=function(e){return e.toUpperCase()},o(B.prototype,{le:function(e){return this.hi<e.hi||this.hi===e.hi&&this.lo<=e.lo},extractSignificantDigits:function(e,r){var a=this.abs(),c=B.magnitude(a.hi),g=B.TEN.pow(c);a=a.divide(g),a.gt(B.TEN)?(a=a.divide(B.TEN),c+=1):a.lt(B.ONE)&&(a=a.multiply(B.TEN),c-=1);for(var b=c+1,I=new ue,F=B.MAX_PRINT_DIGITS-1,Z=0;F>=Z;Z++){e&&Z===b&&I.append(".");var ne=Math.trunc(a.hi);if(0>ne)break;var de=!1,me=0;ne>9?(de=!0,me="9"):me="0"+ne,I.append(me),a=a.subtract(B.valueOf(ne)).multiply(B.TEN),de&&a.selfAdd(B.TEN);var _e=!0,Ze=B.magnitude(a.hi);if(0>Ze&&Math.abs(Ze)>=F-Z&&(_e=!1),!_e)break}return r[0]=c,I.toString()},sqr:function(){return this.multiply(this)},doubleValue:function(){return this.hi+this.lo},subtract:function(){if(arguments[0]instanceof B){var e=arguments[0];return this.add(e.negate())}if(typeof arguments[0]=="number"){var r=arguments[0];return this.add(-r)}},equals:function(){if(arguments.length===1){var e=arguments[0];return this.hi===e.hi&&this.lo===e.lo}},isZero:function(){return this.hi===0&&this.lo===0},selfSubtract:function(){if(arguments[0]instanceof B){var e=arguments[0];return this.isNaN()?this:this.selfAdd(-e.hi,-e.lo)}if(typeof arguments[0]=="number"){var r=arguments[0];return this.isNaN()?this:this.selfAdd(-r,0)}},getSpecialNumberString:function(){return this.isZero()?"0.0":this.isNaN()?"NaN ":null},min:function(e){return this.le(e)?this:e},selfDivide:function(){if(arguments.length===1){if(arguments[0]instanceof B){var e=arguments[0];return this.selfDivide(e.hi,e.lo)}if(typeof arguments[0]=="number"){var r=arguments[0];return this.selfDivide(r,0)}}else if(arguments.length===2){var a=arguments[0],c=arguments[1],g=null,b=null,I=null,F=null,Z=null,ne=null,de=null,me=null;return Z=this.hi/a,ne=B.SPLIT*Z,g=ne-Z,me=B.SPLIT*a,g=ne-g,b=Z-g,I=me-a,de=Z*a,I=me-I,F=a-I,me=g*I-de+g*F+b*I+b*F,ne=(this.hi-de-me+this.lo-Z*c)/a,me=Z+ne,this.hi=me,this.lo=Z-me+ne,this}},dump:function(){return"DD<"+this.hi+", "+this.lo+">"},divide:function(){if(arguments[0]instanceof B){var e=arguments[0],r=null,a=null,c=null,g=null,b=null,I=null,F=null,Z=null;b=this.hi/e.hi,I=B.SPLIT*b,r=I-b,Z=B.SPLIT*e.hi,r=I-r,a=b-r,c=Z-e.hi,F=b*e.hi,c=Z-c,g=e.hi-c,Z=r*c-F+r*g+a*c+a*g,I=(this.hi-F-Z+this.lo-b*e.lo)/e.hi,Z=b+I;var ne=Z,de=b-Z+I;return new B(ne,de)}if(typeof arguments[0]=="number"){var me=arguments[0];return h.isNaN(me)?B.createNaN():B.copy(this).selfDivide(me,0)}},ge:function(e){return this.hi>e.hi||this.hi===e.hi&&this.lo>=e.lo},pow:function(e){if(e===0)return B.valueOf(1);var r=new B(this),a=B.valueOf(1),c=Math.abs(e);if(c>1)for(;c>0;)c%2===1&&a.selfMultiply(r),c/=2,c>0&&(r=r.sqr());else a=r;return 0>e?a.reciprocal():a},ceil:function(){if(this.isNaN())return B.NaN;var e=Math.ceil(this.hi),r=0;return e===this.hi&&(r=Math.ceil(this.lo)),new B(e,r)},compareTo:function(e){var r=e;return this.hi<r.hi?-1:this.hi>r.hi?1:this.lo<r.lo?-1:this.lo>r.lo?1:0},rint:function(){if(this.isNaN())return this;var e=this.add(.5);return e.floor()},setValue:function(){if(arguments[0]instanceof B){var e=arguments[0];return this.init(e),this}if(typeof arguments[0]=="number"){var r=arguments[0];return this.init(r),this}},max:function(e){return this.ge(e)?this:e},sqrt:function(){if(this.isZero())return B.valueOf(0);if(this.isNegative())return B.NaN;var e=1/Math.sqrt(this.hi),r=this.hi*e,a=B.valueOf(r),c=this.subtract(a.sqr()),g=c.hi*(.5*e);return a.add(g)},selfAdd:function(){if(arguments.length===1){if(arguments[0]instanceof B){var e=arguments[0];return this.selfAdd(e.hi,e.lo)}if(typeof arguments[0]=="number"){var r=arguments[0],a=null,c=null,g=null,b=null,I=null,F=null;return g=this.hi+r,I=g-this.hi,b=g-I,b=r-I+(this.hi-b),F=b+this.lo,a=g+F,c=F+(g-a),this.hi=a+c,this.lo=c+(a-this.hi),this}}else if(arguments.length===2){var Z=arguments[0],ne=arguments[1],a=null,c=null,de=null,me=null,g=null,b=null,I=null,F=null;g=this.hi+Z,de=this.lo+ne,I=g-this.hi,F=de-this.lo,b=g-I,me=de-F,b=Z-I+(this.hi-b),me=ne-F+(this.lo-me),I=b+de,a=g+I,c=I+(g-a),I=me+c;var _e=a+I,Ze=I+(a-_e);return this.hi=_e,this.lo=Ze,this}},selfMultiply:function(){if(arguments.length===1){if(arguments[0]instanceof B){var e=arguments[0];return this.selfMultiply(e.hi,e.lo)}if(typeof arguments[0]=="number"){var r=arguments[0];return this.selfMultiply(r,0)}}else if(arguments.length===2){var a=arguments[0],c=arguments[1],g=null,b=null,I=null,F=null,Z=null,ne=null;Z=B.SPLIT*this.hi,g=Z-this.hi,ne=B.SPLIT*a,g=Z-g,b=this.hi-g,I=ne-a,Z=this.hi*a,I=ne-I,F=a-I,ne=g*I-Z+g*F+b*I+b*F+(this.hi*c+this.lo*a);var de=Z+ne;g=Z-de;var me=ne+g;return this.hi=de,this.lo=me,this}},selfSqr:function(){return this.selfMultiply(this)},floor:function(){if(this.isNaN())return B.NaN;var e=Math.floor(this.hi),r=0;return e===this.hi&&(r=Math.floor(this.lo)),new B(e,r)},negate:function(){return this.isNaN()?this:new B(-this.hi,-this.lo)},clone:function(){try{return null}catch(e){if(e instanceof CloneNotSupportedException)return null;throw e}finally{}},multiply:function(){if(arguments[0]instanceof B){var e=arguments[0];return e.isNaN()?B.createNaN():B.copy(this).selfMultiply(e)}if(typeof arguments[0]=="number"){var r=arguments[0];return h.isNaN(r)?B.createNaN():B.copy(this).selfMultiply(r,0)}},isNaN:function(){return h.isNaN(this.hi)},intValue:function(){return Math.trunc(this.hi)},toString:function(){var e=B.magnitude(this.hi);return e>=-3&&20>=e?this.toStandardNotation():this.toSciNotation()},toStandardNotation:function(){var e=this.getSpecialNumberString();if(e!==null)return e;var r=new Array(1).fill(null),a=this.extractSignificantDigits(!0,r),c=r[0]+1,g=a;if(a.charAt(0)===".")g="0"+a;else if(0>c)g="0."+B.stringOfChar("0",-c)+a;else if(a.indexOf(".")===-1){var b=c-a.length,I=B.stringOfChar("0",b);g=a+I+".0"}return this.isNegative()?"-"+g:g},reciprocal:function(){var e=null,r=null,a=null,c=null,g=null,b=null,I=null,F=null;g=1/this.hi,b=B.SPLIT*g,e=b-g,F=B.SPLIT*this.hi,e=b-e,r=g-e,a=F-this.hi,I=g*this.hi,a=F-a,c=this.hi-a,F=e*a-I+e*c+r*a+r*c,b=(1-I-F-g*this.lo)/this.hi;var Z=g+b,ne=g-Z+b;return new B(Z,ne)},toSciNotation:function(){if(this.isZero())return B.SCI_NOT_ZERO;var e=this.getSpecialNumberString();if(e!==null)return e;var r=new Array(1).fill(null),a=this.extractSignificantDigits(!1,r),c=B.SCI_NOT_EXPONENT_CHAR+r[0];if(a.charAt(0)==="0")throw new IllegalStateException("Found leading zero: "+a);var g="";a.length>1&&(g=a.substring(1));var b=a.charAt(0)+"."+g;return this.isNegative()?"-"+b+c:b+c},abs:function(){return this.isNaN()?B.NaN:this.isNegative()?this.negate():new B(this)},isPositive:function(){return this.hi>0||this.hi===0&&this.lo>0},lt:function(e){return this.hi<e.hi||this.hi===e.hi&&this.lo<e.lo},add:function(){if(arguments[0]instanceof B){var e=arguments[0];return B.copy(this).selfAdd(e)}if(typeof arguments[0]=="number"){var r=arguments[0];return B.copy(this).selfAdd(r)}},init:function(){if(arguments.length===1){if(typeof arguments[0]=="number"){var e=arguments[0];this.hi=e,this.lo=0}else if(arguments[0]instanceof B){var r=arguments[0];this.hi=r.hi,this.lo=r.lo}}else if(arguments.length===2){var a=arguments[0],c=arguments[1];this.hi=a,this.lo=c}},gt:function(e){return this.hi>e.hi||this.hi===e.hi&&this.lo>e.lo},isNegative:function(){return this.hi<0||this.hi===0&&this.lo<0},trunc:function(){return this.isNaN()?B.NaN:this.isPositive()?this.floor():this.ceil()},signum:function(){return this.hi>0?1:this.hi<0?-1:this.lo>0?1:this.lo<0?-1:0},interfaces_:function(){return[y,f,v]},getClass:function(){return B}}),B.sqr=function(e){return B.valueOf(e).selfMultiply(e)},B.valueOf=function(){if(typeof arguments[0]=="string"){var e=arguments[0];return B.parse(e)}if(typeof arguments[0]=="number"){var r=arguments[0];return new B(r)}},B.sqrt=function(e){return B.valueOf(e).sqrt()},B.parse=function(e){for(var r=0,a=e.length;K.isWhitespace(e.charAt(r));)r++;var c=!1;if(a>r){var g=e.charAt(r);g!=="-"&&g!=="+"||(r++,g==="-"&&(c=!0))}for(var b=new B,I=0,F=0,Z=0;!(r>=a);){var ne=e.charAt(r);if(r++,K.isDigit(ne)){var de=ne-"0";b.selfMultiply(B.TEN),b.selfAdd(de),I++}else{if(ne!=="."){if(ne==="e"||ne==="E"){var me=e.substring(r);try{Z=G.parseInt(me)}catch(St){throw St instanceof NumberFormatException?new NumberFormatException("Invalid exponent "+me+" in string "+e):St}finally{}break}throw new NumberFormatException("Unexpected character '"+ne+"' at position "+r+" in string "+e)}F=I}}var _e=b,Ze=I-F-Z;if(Ze===0)_e=b;else if(Ze>0){var gt=B.TEN.pow(Ze);_e=b.divide(gt)}else if(0>Ze){var gt=B.TEN.pow(-Ze);_e=b.multiply(gt)}return c?_e.negate():_e},B.createNaN=function(){return new B(h.NaN,h.NaN)},B.copy=function(e){return new B(e)},B.magnitude=function(e){var r=Math.abs(e),a=Math.log(r)/Math.log(10),c=Math.trunc(Math.floor(a)),g=Math.pow(10,c);return r>=10*g&&(c+=1),c},B.stringOfChar=function(e,r){for(var a=new ue,c=0;r>c;c++)a.append(e);return a.toString()},B.PI=new B(3.141592653589793,12246467991473532e-32),B.TWO_PI=new B(6.283185307179586,24492935982947064e-32),B.PI_2=new B(1.5707963267948966,6123233995736766e-32),B.E=new B(2.718281828459045,14456468917292502e-32),B.NaN=new B(h.NaN,h.NaN),B.EPS=123259516440783e-46,B.SPLIT=134217729,B.MAX_PRINT_DIGITS=32,B.TEN=B.valueOf(10),B.ONE=B.valueOf(1),B.SCI_NOT_EXPONENT_CHAR="E",B.SCI_NOT_ZERO="0.0E0",o(te.prototype,{interfaces_:function(){return[]},getClass:function(){return te}}),te.orientationIndex=function(e,r,a){var c=te.orientationIndexFilter(e,r,a);if(1>=c)return c;var g=B.valueOf(r.x).selfAdd(-e.x),b=B.valueOf(r.y).selfAdd(-e.y),I=B.valueOf(a.x).selfAdd(-r.x),F=B.valueOf(a.y).selfAdd(-r.y);return g.selfMultiply(F).selfSubtract(b.selfMultiply(I)).signum()},te.signOfDet2x2=function(e,r,a,c){var g=e.multiply(c).selfSubtract(r.multiply(a));return g.signum()},te.intersection=function(e,r,a,c){var g=B.valueOf(c.y).selfSubtract(a.y).selfMultiply(B.valueOf(r.x).selfSubtract(e.x)),b=B.valueOf(c.x).selfSubtract(a.x).selfMultiply(B.valueOf(r.y).selfSubtract(e.y)),I=g.subtract(b),F=B.valueOf(c.x).selfSubtract(a.x).selfMultiply(B.valueOf(e.y).selfSubtract(a.y)),Z=B.valueOf(c.y).selfSubtract(a.y).selfMultiply(B.valueOf(e.x).selfSubtract(a.x)),ne=F.subtract(Z),de=ne.selfDivide(I).doubleValue(),me=B.valueOf(e.x).selfAdd(B.valueOf(r.x).selfSubtract(e.x).selfMultiply(de)).doubleValue(),_e=B.valueOf(r.x).selfSubtract(e.x).selfMultiply(B.valueOf(e.y).selfSubtract(a.y)),Ze=B.valueOf(r.y).selfSubtract(e.y).selfMultiply(B.valueOf(e.x).selfSubtract(a.x)),gt=_e.subtract(Ze),St=gt.selfDivide(I).doubleValue(),yn=B.valueOf(a.y).selfAdd(B.valueOf(c.y).selfSubtract(a.y).selfMultiply(St)).doubleValue();return new w(me,yn)},te.orientationIndexFilter=function(e,r,a){var c=null,g=(e.x-a.x)*(r.y-a.y),b=(e.y-a.y)*(r.x-a.x),I=g-b;if(g>0){if(0>=b)return te.signum(I);c=g+b}else{if(!(0>g)||b>=0)return te.signum(I);c=-g-b}var F=te.DP_SAFE_EPSILON*c;return I>=F||-I>=F?te.signum(I):2},te.signum=function(e){return e>0?1:0>e?-1:0},te.DP_SAFE_EPSILON=1e-15,o(Q.prototype,{setOrdinate:function(e,r,a){},size:function(){},getOrdinate:function(e,r){},getCoordinate:function(){},getCoordinateCopy:function(e){},getDimension:function(){},getX:function(e){},clone:function(){},expandEnvelope:function(e){},copy:function(){},getY:function(e){},toCoordinateArray:function(){},interfaces_:function(){return[v]},getClass:function(){return Q}}),Q.X=0,Q.Y=1,Q.Z=2,Q.M=3,$.arraycopy=function(e,r,a,c,g){for(var b=0,I=r;r+g>I;I++)a[c+b]=e[I],b++},$.getProperty=function(e){return{"line.separator":`
`}[e]},o(re.prototype,{getY:function(){var e=this.y/this.w;if(h.isNaN(e)||h.isInfinite(e))throw new R;return e},getX:function(){var e=this.x/this.w;if(h.isNaN(e)||h.isInfinite(e))throw new R;return e},getCoordinate:function(){var e=new w;return e.x=this.getX(),e.y=this.getY(),e},interfaces_:function(){return[]},getClass:function(){return re}}),re.intersection=function(e,r,a,c){var g=e.y-r.y,b=r.x-e.x,I=e.x*r.y-r.x*e.y,F=a.y-c.y,Z=c.x-a.x,ne=a.x*c.y-c.x*a.y,de=b*ne-Z*I,me=F*I-g*ne,_e=g*Z-F*b,Ze=de/_e,gt=me/_e;if(h.isNaN(Ze)||h.isInfinite(Ze)||h.isNaN(gt)||h.isInfinite(gt))throw new R;return new w(Ze,gt)},o(le.prototype,{create:function(){arguments.length===1&&(arguments[0]instanceof Array||X(arguments[0],Q))},interfaces_:function(){return[]},getClass:function(){return le}}),o(be.prototype,{filter:function(e){},interfaces_:function(){return[]},getClass:function(){return be}}),o(ae.prototype,{isGeometryCollection:function(){return this.getSortIndex()===ae.SORTINDEX_GEOMETRYCOLLECTION},getFactory:function(){return this.factory},getGeometryN:function(e){return this},getArea:function(){return 0},isRectangle:function(){return!1},equals:function(){if(arguments.length===1){if(arguments[0]instanceof ae){var e=arguments[0];return e===null?!1:this.equalsTopo(e)}if(arguments[0]instanceof Object){var r=arguments[0];if(!(r instanceof ae))return!1;var a=r;return this.equalsExact(a)}}},equalsExact:function(e){return this===e||this.equalsExact(e,0)},geometryChanged:function(){this.apply(ae.geometryChangedFilter)},geometryChangedAction:function(){this.envelope=null},equalsNorm:function(e){return e===null?!1:this.norm().equalsExact(e.norm())},getLength:function(){return 0},getNumGeometries:function(){return 1},compareTo:function(){if(arguments.length===1){var e=arguments[0],r=e;return this.getSortIndex()!==r.getSortIndex()?this.getSortIndex()-r.getSortIndex():this.isEmpty()&&r.isEmpty()?0:this.isEmpty()?-1:r.isEmpty()?1:this.compareToSameClass(e)}if(arguments.length===2){var a=arguments[0],c=arguments[1],r=a;return this.getSortIndex()!==r.getSortIndex()?this.getSortIndex()-r.getSortIndex():this.isEmpty()&&r.isEmpty()?0:this.isEmpty()?-1:r.isEmpty()?1:this.compareToSameClass(a,c)}},getUserData:function(){return this.userData},getSRID:function(){return this.SRID},getEnvelope:function(){return this.getFactory().toGeometry(this.getEnvelopeInternal())},checkNotGeometryCollection:function(e){if(e.getSortIndex()===ae.SORTINDEX_GEOMETRYCOLLECTION)throw new d},equal:function(e,r,a){return a===0?e.equals(r):e.distance(r)<=a},norm:function(){var e=this.copy();return e.normalize(),e},getPrecisionModel:function(){return this.factory.getPrecisionModel()},getEnvelopeInternal:function(){return this.envelope===null&&(this.envelope=this.computeEnvelopeInternal()),new V(this.envelope)},setSRID:function(e){this.SRID=e},setUserData:function(e){this.userData=e},compare:function(e,r){for(var a=e.iterator(),c=r.iterator();a.hasNext()&&c.hasNext();){var g=a.next(),b=c.next(),I=g.compareTo(b);if(I!==0)return I}return a.hasNext()?1:c.hasNext()?-1:0},hashCode:function(){return this.getEnvelopeInternal().hashCode()},isGeometryCollectionOrDerived:function(){return this.getSortIndex()===ae.SORTINDEX_GEOMETRYCOLLECTION||this.getSortIndex()===ae.SORTINDEX_MULTIPOINT||this.getSortIndex()===ae.SORTINDEX_MULTILINESTRING||this.getSortIndex()===ae.SORTINDEX_MULTIPOLYGON},interfaces_:function(){return[v,f,y]},getClass:function(){return ae}}),ae.hasNonEmptyElements=function(e){for(var r=0;r<e.length;r++)if(!e[r].isEmpty())return!0;return!1},ae.hasNullElements=function(e){for(var r=0;r<e.length;r++)if(e[r]===null)return!0;return!1},ae.serialVersionUID=8763622679187377e3,ae.SORTINDEX_POINT=0,ae.SORTINDEX_MULTIPOINT=1,ae.SORTINDEX_LINESTRING=2,ae.SORTINDEX_LINEARRING=3,ae.SORTINDEX_MULTILINESTRING=4,ae.SORTINDEX_POLYGON=5,ae.SORTINDEX_MULTIPOLYGON=6,ae.SORTINDEX_GEOMETRYCOLLECTION=7,ae.geometryChangedFilter={interfaces_:function(){return[be]},filter:function(e){e.geometryChangedAction()}},o(Ce.prototype,{filter:function(e){},interfaces_:function(){return[]},getClass:function(){return Ce}}),o(we.prototype,{isInBoundary:function(e){},interfaces_:function(){return[]},getClass:function(){return we}}),o(Me.prototype,{isInBoundary:function(e){return e%2===1},interfaces_:function(){return[we]},getClass:function(){return Me}}),o(Je.prototype,{isInBoundary:function(e){return e>0},interfaces_:function(){return[we]},getClass:function(){return Je}}),o(rt.prototype,{isInBoundary:function(e){return e>1},interfaces_:function(){return[we]},getClass:function(){return rt}}),o(et.prototype,{isInBoundary:function(e){return e===1},interfaces_:function(){return[we]},getClass:function(){return et}}),we.Mod2BoundaryNodeRule=Me,we.EndPointBoundaryNodeRule=Je,we.MultiValentEndPointBoundaryNodeRule=rt,we.MonoValentEndPointBoundaryNodeRule=et,we.MOD2_BOUNDARY_RULE=new Me,we.ENDPOINT_BOUNDARY_RULE=new Je,we.MULTIVALENT_ENDPOINT_BOUNDARY_RULE=new rt,we.MONOVALENT_ENDPOINT_BOUNDARY_RULE=new et,we.OGC_SFS_BOUNDARY_RULE=we.MOD2_BOUNDARY_RULE,o(Le.prototype,{interfaces_:function(){return[]},getClass:function(){return Le}}),Le.isRing=function(e){return e.length<4?!1:!!e[0].equals2D(e[e.length-1])},Le.ptNotInList=function(e,r){for(var a=0;a<e.length;a++){var c=e[a];if(Le.indexOf(c,r)<0)return c}return null},Le.scroll=function(e,r){var a=Le.indexOf(r,e);if(0>a)return null;var c=new Array(e.length).fill(null);$.arraycopy(e,a,c,0,e.length-a),$.arraycopy(e,0,c,e.length-a,a),$.arraycopy(c,0,e,0,e.length)},Le.equals=function(){if(arguments.length===2){var e=arguments[0],r=arguments[1];if(e===r)return!0;if(e===null||r===null||e.length!==r.length)return!1;for(var a=0;a<e.length;a++)if(!e[a].equals(r[a]))return!1;return!0}if(arguments.length===3){var c=arguments[0],g=arguments[1],b=arguments[2];if(c===g)return!0;if(c===null||g===null||c.length!==g.length)return!1;for(var a=0;a<c.length;a++)if(b.compare(c[a],g[a])!==0)return!1;return!0}},Le.intersection=function(e,r){for(var a=new H,c=0;c<e.length;c++)r.intersects(e[c])&&a.add(e[c],!0);return a.toCoordinateArray()},Le.hasRepeatedPoints=function(e){for(var r=1;r<e.length;r++)if(e[r-1].equals(e[r]))return!0;return!1},Le.removeRepeatedPoints=function(e){if(!Le.hasRepeatedPoints(e))return e;var r=new H(e,!1);return r.toCoordinateArray()},Le.reverse=function(e){for(var r=e.length-1,a=Math.trunc(r/2),c=0;a>=c;c++){var g=e[c];e[c]=e[r-c],e[r-c]=g}},Le.removeNull=function(e){for(var r=0,a=0;a<e.length;a++)e[a]!==null&&r++;var c=new Array(r).fill(null);if(r===0)return c;for(var g=0,a=0;a<e.length;a++)e[a]!==null&&(c[g++]=e[a]);return c},Le.copyDeep=function(){if(arguments.length===1){for(var e=arguments[0],r=new Array(e.length).fill(null),a=0;a<e.length;a++)r[a]=new w(e[a]);return r}if(arguments.length===5)for(var c=arguments[0],g=arguments[1],b=arguments[2],I=arguments[3],F=arguments[4],a=0;F>a;a++)b[I+a]=new w(c[g+a])},Le.isEqualReversed=function(e,r){for(var a=0;a<e.length;a++){var c=e[a],g=r[e.length-a-1];if(c.compareTo(g)!==0)return!1}return!0},Le.envelope=function(e){for(var r=new V,a=0;a<e.length;a++)r.expandToInclude(e[a]);return r},Le.toCoordinateArray=function(e){return e.toArray(Le.coordArrayType)},Le.atLeastNCoordinatesOrNothing=function(e,r){return r.length>=e?r:[]},Le.indexOf=function(e,r){for(var a=0;a<r.length;a++)if(e.equals(r[a]))return a;return-1},Le.increasingDirection=function(e){for(var r=0;r<Math.trunc(e.length/2);r++){var a=e.length-1-r,c=e[r].compareTo(e[a]);if(c!==0)return c}return 1},Le.compare=function(e,r){for(var a=0;a<e.length&&a<r.length;){var c=e[a].compareTo(r[a]);if(c!==0)return c;a++}return a<r.length?-1:a<e.length?1:0},Le.minCoordinate=function(e){for(var r=null,a=0;a<e.length;a++)(r===null||r.compareTo(e[a])>0)&&(r=e[a]);return r},Le.extract=function(e,r,a){r=ee.clamp(r,0,e.length),a=ee.clamp(a,-1,e.length);var c=a-r+1;0>a&&(c=0),r>=e.length&&(c=0),r>a&&(c=0);var g=new Array(c).fill(null);if(c===0)return g;for(var b=0,I=r;a>=I;I++)g[b++]=e[I];return g},o(mt.prototype,{compare:function(e,r){var a=e,c=r;return Le.compare(a,c)},interfaces_:function(){return[p]},getClass:function(){return mt}}),o(lt.prototype,{compare:function(e,r){var a=e,c=r;if(a.length<c.length)return-1;if(a.length>c.length)return 1;if(a.length===0)return 0;var g=Le.compare(a,c),b=Le.isEqualReversed(a,c);return b?0:g},OLDcompare:function(e,r){var a=e,c=r;if(a.length<c.length)return-1;if(a.length>c.length)return 1;if(a.length===0)return 0;for(var g=Le.increasingDirection(a),b=Le.increasingDirection(c),I=g>0?0:a.length-1,F=b>0?0:a.length-1,Z=0;Z<a.length;Z++){var ne=a[I].compareTo(c[F]);if(ne!==0)return ne;I+=g,F+=b}return 0},interfaces_:function(){return[p]},getClass:function(){return lt}}),Le.ForwardComparator=mt,Le.BidirectionalComparator=lt,Le.coordArrayType=new Array(0).fill(null),De.prototype.get=function(){},De.prototype.put=function(){},De.prototype.size=function(){},De.prototype.values=function(){},De.prototype.entrySet=function(){},ct.prototype=new De,vt.prototype=new M,vt.prototype.contains=function(){},Ye.prototype=new vt,Ye.prototype.contains=function(e){for(var r=0,a=this.array_.length;a>r;r++){var c=this.array_[r];if(c===e)return!0}return!1},Ye.prototype.add=function(e){return this.contains(e)?!1:(this.array_.push(e),!0)},Ye.prototype.addAll=function(e){for(var r=e.iterator();r.hasNext();)this.add(r.next());return!0},Ye.prototype.remove=function(e){throw new javascript.util.OperationNotSupported},Ye.prototype.size=function(){return this.array_.length},Ye.prototype.isEmpty=function(){return this.array_.length===0},Ye.prototype.toArray=function(){for(var e=[],r=0,a=this.array_.length;a>r;r++)e.push(this.array_[r]);return e},Ye.prototype.iterator=function(){return new nh(this)};var nh=function(e){this.hashSet_=e,this.position_=0};nh.prototype.next=function(){if(this.position_===this.hashSet_.size())throw new O;return this.hashSet_.array_[this.position_++]},nh.prototype.hasNext=function(){return this.position_<this.hashSet_.size()},nh.prototype.remove=function(){throw new q};var Ws=0,oa=1;ve.prototype=new ct,ve.prototype.get=function(e){for(var r=this.root_;r!==null;){var a=e.compareTo(r.key);if(0>a)r=r.left;else{if(!(a>0))return r.value;r=r.right}}return null},ve.prototype.put=function(e,r){if(this.root_===null)return this.root_={key:e,value:r,left:null,right:null,parent:null,color:Ws,getValue:function(){return this.value},getKey:function(){return this.key}},this.size_=1,null;var a,c,g=this.root_;do if(a=g,c=e.compareTo(g.key),0>c)g=g.left;else{if(!(c>0)){var b=g.value;return g.value=r,b}g=g.right}while(g!==null);var I={key:e,left:null,right:null,value:r,parent:a,color:Ws,getValue:function(){return this.value},getKey:function(){return this.key}};return 0>c?a.left=I:a.right=I,this.fixAfterInsertion(I),this.size_++,null},ve.prototype.fixAfterInsertion=function(e){for(e.color=oa;e!=null&&e!=this.root_&&e.parent.color==oa;)if(Ve(e)==Qe(Ve(Ve(e)))){var r=at(Ve(Ve(e)));Tt(r)==oa?(ye(Ve(e),Ws),ye(r,Ws),ye(Ve(Ve(e)),oa),e=Ve(Ve(e))):(e==at(Ve(e))&&(e=Ve(e),this.rotateLeft(e)),ye(Ve(e),Ws),ye(Ve(Ve(e)),oa),this.rotateRight(Ve(Ve(e))))}else{var r=Qe(Ve(Ve(e)));Tt(r)==oa?(ye(Ve(e),Ws),ye(r,Ws),ye(Ve(Ve(e)),oa),e=Ve(Ve(e))):(e==Qe(Ve(e))&&(e=Ve(e),this.rotateRight(e)),ye(Ve(e),Ws),ye(Ve(Ve(e)),oa),this.rotateLeft(Ve(Ve(e))))}this.root_.color=Ws},ve.prototype.values=function(){var e=new k,r=this.getFirstEntry();if(r!==null)for(e.add(r.value);(r=ve.successor(r))!==null;)e.add(r.value);return e},ve.prototype.entrySet=function(){var e=new Ye,r=this.getFirstEntry();if(r!==null)for(e.add(r);(r=ve.successor(r))!==null;)e.add(r);return e},ve.prototype.rotateLeft=function(e){if(e!=null){var r=e.right;e.right=r.left,r.left!=null&&(r.left.parent=e),r.parent=e.parent,e.parent==null?this.root_=r:e.parent.left==e?e.parent.left=r:e.parent.right=r,r.left=e,e.parent=r}},ve.prototype.rotateRight=function(e){if(e!=null){var r=e.left;e.left=r.right,r.right!=null&&(r.right.parent=e),r.parent=e.parent,e.parent==null?this.root_=r:e.parent.right==e?e.parent.right=r:e.parent.left=r,r.right=e,e.parent=r}},ve.prototype.getFirstEntry=function(){var e=this.root_;if(e!=null)for(;e.left!=null;)e=e.left;return e},ve.successor=function(e){if(e===null)return null;if(e.right!==null){for(var r=e.right;r.left!==null;)r=r.left;return r}for(var r=e.parent,a=e;r!==null&&a===r.right;)a=r,r=r.parent;return r},ve.prototype.size=function(){return this.size_},o(Xe.prototype,{interfaces_:function(){return[]},getClass:function(){return Xe}}),Be.prototype=new vt,ut.prototype=new Be,ut.prototype.contains=function(e){for(var r=0,a=this.array_.length;a>r;r++){var c=this.array_[r];if(c.compareTo(e)===0)return!0}return!1},ut.prototype.add=function(e){if(this.contains(e))return!1;for(var r=0,a=this.array_.length;a>r;r++){var c=this.array_[r];if(c.compareTo(e)===1)return this.array_.splice(r,0,e),!0}return this.array_.push(e),!0},ut.prototype.addAll=function(e){for(var r=e.iterator();r.hasNext();)this.add(r.next());return!0},ut.prototype.remove=function(e){throw new q},ut.prototype.size=function(){return this.array_.length},ut.prototype.isEmpty=function(){return this.array_.length===0},ut.prototype.toArray=function(){for(var e=[],r=0,a=this.array_.length;a>r;r++)e.push(this.array_[r]);return e},ut.prototype.iterator=function(){return new rh(this)};var rh=function(e){this.treeSet_=e,this.position_=0};rh.prototype.next=function(){if(this.position_===this.treeSet_.size())throw new O;return this.treeSet_.array_[this.position_++]},rh.prototype.hasNext=function(){return this.position_<this.treeSet_.size()},rh.prototype.remove=function(){throw new q},st.sort=function(){var e,r,a,c,g=arguments[0];if(arguments.length===1)return c=function(I,F){return I.compareTo(F)},void g.sort(c);if(arguments.length===2)a=arguments[1],c=function(I,F){return a.compare(I,F)},g.sort(c);else{if(arguments.length===3){r=g.slice(arguments[1],arguments[2]),r.sort();var b=g.slice(0,arguments[1]).concat(r,g.slice(arguments[2],g.length));for(g.splice(0,g.length),e=0;e<b.length;e++)g.push(b[e]);return}if(arguments.length===4){for(r=g.slice(arguments[1],arguments[2]),a=arguments[3],c=function(I,F){return a.compare(I,F)},r.sort(c),b=g.slice(0,arguments[1]).concat(r,g.slice(arguments[2],g.length)),g.splice(0,g.length),e=0;e<b.length;e++)g.push(b[e]);return}}},st.asList=function(e){for(var r=new k,a=0,c=e.length;c>a;a++)r.add(e[a]);return r},o(he.prototype,{interfaces_:function(){return[]},getClass:function(){return he}}),he.toDimensionSymbol=function(e){switch(e){case he.FALSE:return he.SYM_FALSE;case he.TRUE:return he.SYM_TRUE;case he.DONTCARE:return he.SYM_DONTCARE;case he.P:return he.SYM_P;case he.L:return he.SYM_L;case he.A:return he.SYM_A}throw new d},he.toDimensionValue=function(e){switch(K.toUpperCase(e)){case he.SYM_FALSE:return he.FALSE;case he.SYM_TRUE:return he.TRUE;case he.SYM_DONTCARE:return he.DONTCARE;case he.SYM_P:return he.P;case he.SYM_L:return he.L;case he.SYM_A:return he.A}throw new d},he.P=0,he.L=1,he.A=2,he.FALSE=-1,he.TRUE=-2,he.DONTCARE=-3,he.SYM_FALSE="F",he.SYM_TRUE="T",he.SYM_DONTCARE="*",he.SYM_P="0",he.SYM_L="1",he.SYM_A="2",o(ht.prototype,{filter:function(e){},interfaces_:function(){return[]},getClass:function(){return ht}}),o(kt.prototype,{filter:function(e,r){},isDone:function(){},isGeometryChanged:function(){},interfaces_:function(){return[]},getClass:function(){return kt}}),_(Re,ae),o(Re.prototype,{computeEnvelopeInternal:function(){for(var e=new V,r=0;r<this.geometries.length;r++)e.expandToInclude(this.geometries[r].getEnvelopeInternal());return e},getGeometryN:function(e){return this.geometries[e]},getSortIndex:function(){return ae.SORTINDEX_GEOMETRYCOLLECTION},getCoordinates:function(){for(var e=new Array(this.getNumPoints()).fill(null),r=-1,a=0;a<this.geometries.length;a++)for(var c=this.geometries[a].getCoordinates(),g=0;g<c.length;g++)r++,e[r]=c[g];return e},getArea:function(){for(var e=0,r=0;r<this.geometries.length;r++)e+=this.geometries[r].getArea();return e},equalsExact:function(){if(arguments.length===2){var e=arguments[0],r=arguments[1];if(!this.isEquivalentClass(e))return!1;var a=e;if(this.geometries.length!==a.geometries.length)return!1;for(var c=0;c<this.geometries.length;c++)if(!this.geometries[c].equalsExact(a.geometries[c],r))return!1;return!0}return ae.prototype.equalsExact.apply(this,arguments)},normalize:function(){for(var e=0;e<this.geometries.length;e++)this.geometries[e].normalize();st.sort(this.geometries)},getCoordinate:function(){return this.isEmpty()?null:this.geometries[0].getCoordinate()},getBoundaryDimension:function(){for(var e=he.FALSE,r=0;r<this.geometries.length;r++)e=Math.max(e,this.geometries[r].getBoundaryDimension());return e},getDimension:function(){for(var e=he.FALSE,r=0;r<this.geometries.length;r++)e=Math.max(e,this.geometries[r].getDimension());return e},getLength:function(){for(var e=0,r=0;r<this.geometries.length;r++)e+=this.geometries[r].getLength();return e},getNumPoints:function(){for(var e=0,r=0;r<this.geometries.length;r++)e+=this.geometries[r].getNumPoints();return e},getNumGeometries:function(){return this.geometries.length},reverse:function(){for(var e=this.geometries.length,r=new Array(e).fill(null),a=0;a<this.geometries.length;a++)r[a]=this.geometries[a].reverse();return this.getFactory().createGeometryCollection(r)},compareToSameClass:function(){if(arguments.length===1){var e=arguments[0],r=new ut(st.asList(this.geometries)),a=new ut(st.asList(e.geometries));return this.compare(r,a)}if(arguments.length===2){for(var c=arguments[0],g=arguments[1],b=c,I=this.getNumGeometries(),F=b.getNumGeometries(),Z=0;I>Z&&F>Z;){var ne=this.getGeometryN(Z),de=b.getGeometryN(Z),me=ne.compareToSameClass(de,g);if(me!==0)return me;Z++}return I>Z?1:F>Z?-1:0}},apply:function(){if(X(arguments[0],Ce))for(var e=arguments[0],r=0;r<this.geometries.length;r++)this.geometries[r].apply(e);else if(X(arguments[0],kt)){var a=arguments[0];if(this.geometries.length===0)return null;for(var r=0;r<this.geometries.length&&(this.geometries[r].apply(a),!a.isDone());r++);a.isGeometryChanged()&&this.geometryChanged()}else if(X(arguments[0],ht)){var c=arguments[0];c.filter(this);for(var r=0;r<this.geometries.length;r++)this.geometries[r].apply(c)}else if(X(arguments[0],be)){var g=arguments[0];g.filter(this);for(var r=0;r<this.geometries.length;r++)this.geometries[r].apply(g)}},getBoundary:function(){return this.checkNotGeometryCollection(this),N.shouldNeverReachHere(),null},clone:function(){var e=ae.prototype.clone.call(this);e.geometries=new Array(this.geometries.length).fill(null);for(var r=0;r<this.geometries.length;r++)e.geometries[r]=this.geometries[r].clone();return e},getGeometryType:function(){return"GeometryCollection"},copy:function(){for(var e=new Array(this.geometries.length).fill(null),r=0;r<e.length;r++)e[r]=this.geometries[r].copy();return new Re(e,this.factory)},isEmpty:function(){for(var e=0;e<this.geometries.length;e++)if(!this.geometries[e].isEmpty())return!1;return!0},interfaces_:function(){return[]},getClass:function(){return Re}}),Re.serialVersionUID=-5694727726395021e3,_(Lt,Re),o(Lt.prototype,{getSortIndex:function(){return ae.SORTINDEX_MULTILINESTRING},equalsExact:function(){if(arguments.length===2){var e=arguments[0],r=arguments[1];return this.isEquivalentClass(e)?Re.prototype.equalsExact.call(this,e,r):!1}return Re.prototype.equalsExact.apply(this,arguments)},getBoundaryDimension:function(){return this.isClosed()?he.FALSE:0},isClosed:function(){if(this.isEmpty())return!1;for(var e=0;e<this.geometries.length;e++)if(!this.geometries[e].isClosed())return!1;return!0},getDimension:function(){return 1},reverse:function(){for(var e=this.geometries.length,r=new Array(e).fill(null),a=0;a<this.geometries.length;a++)r[e-1-a]=this.geometries[a].reverse();return this.getFactory().createMultiLineString(r)},getBoundary:function(){return new At(this).getBoundary()},getGeometryType:function(){return"MultiLineString"},copy:function(){for(var e=new Array(this.geometries.length).fill(null),r=0;r<e.length;r++)e[r]=this.geometries[r].copy();return new Lt(e,this.factory)},interfaces_:function(){return[Xe]},getClass:function(){return Lt}}),Lt.serialVersionUID=8166665132445434e3,o(At.prototype,{boundaryMultiLineString:function(e){if(this.geom.isEmpty())return this.getEmptyMultiPoint();var r=this.computeBoundaryCoordinates(e);return r.length===1?this.geomFact.createPoint(r[0]):this.geomFact.createMultiPointFromCoords(r)},getBoundary:function(){return this.geom instanceof Se?this.boundaryLineString(this.geom):this.geom instanceof Lt?this.boundaryMultiLineString(this.geom):this.geom.getBoundary()},boundaryLineString:function(e){if(this.geom.isEmpty())return this.getEmptyMultiPoint();if(e.isClosed()){var r=this.bnRule.isInBoundary(2);return r?e.getStartPoint():this.geomFact.createMultiPoint()}return this.geomFact.createMultiPoint([e.getStartPoint(),e.getEndPoint()])},getEmptyMultiPoint:function(){return this.geomFact.createMultiPoint()},computeBoundaryCoordinates:function(e){var r=new k;this.endpointMap=new ve;for(var a=0;a<e.getNumGeometries();a++){var c=e.getGeometryN(a);c.getNumPoints()!==0&&(this.addEndpoint(c.getCoordinateN(0)),this.addEndpoint(c.getCoordinateN(c.getNumPoints()-1)))}for(var g=this.endpointMap.entrySet().iterator();g.hasNext();){var b=g.next(),I=b.getValue(),F=I.count;this.bnRule.isInBoundary(F)&&r.add(b.getKey())}return Le.toCoordinateArray(r)},addEndpoint:function(e){var r=this.endpointMap.get(e);r===null&&(r=new Wn,this.endpointMap.put(e,r)),r.count++},interfaces_:function(){return[]},getClass:function(){return At}}),At.getBoundary=function(){if(arguments.length===1){var e=arguments[0],r=new At(e);return r.getBoundary()}if(arguments.length===2){var a=arguments[0],c=arguments[1],r=new At(a,c);return r.getBoundary()}},o(Wn.prototype,{interfaces_:function(){return[]},getClass:function(){return Wn}}),o(Ae.prototype,{interfaces_:function(){return[]},getClass:function(){return Ae}}),Ae.chars=function(e,r){for(var a=new Array(r).fill(null),c=0;r>c;c++)a[c]=e;return new String(a)},Ae.getStackTrace=function(){if(arguments.length===1){var e=arguments[0],r=new hn,a=new Ht;return e.printStackTrace(a),r.toString()}if(arguments.length===2){for(var c=arguments[0],g=arguments[1],b="",I=new Nn(Ae.getStackTrace(c)),F=new nr,Z=0;g>Z;Z++)try{b+=F.readLine()+Ae.NEWLINE}catch(ne){if(!(ne instanceof vn))throw ne;N.shouldNeverReachHere()}finally{}return b}},Ae.split=function(e,r){for(var a=r.length,c=new k,g=""+e,b=g.indexOf(r);b>=0;){var I=g.substring(0,b);c.add(I),g=g.substring(b+a),b=g.indexOf(r)}g.length>0&&c.add(g);for(var F=new Array(c.size()).fill(null),Z=0;Z<F.length;Z++)F[Z]=c.get(Z);return F},Ae.toString=function(){if(arguments.length===1){var e=arguments[0];return Ae.SIMPLE_ORDINATE_FORMAT.format(e)}},Ae.spaces=function(e){return Ae.chars(" ",e)},Ae.NEWLINE=$.getProperty("line.separator"),Ae.SIMPLE_ORDINATE_FORMAT=new Gt,o(He.prototype,{interfaces_:function(){return[]},getClass:function(){return He}}),He.copyCoord=function(e,r,a,c){for(var g=Math.min(e.getDimension(),a.getDimension()),b=0;g>b;b++)a.setOrdinate(c,b,e.getOrdinate(r,b))},He.isRing=function(e){var r=e.size();return r===0?!0:3>=r?!1:e.getOrdinate(0,Q.X)===e.getOrdinate(r-1,Q.X)&&e.getOrdinate(0,Q.Y)===e.getOrdinate(r-1,Q.Y)},He.isEqual=function(e,r){var a=e.size(),c=r.size();if(a!==c)return!1;for(var g=Math.min(e.getDimension(),r.getDimension()),b=0;a>b;b++)for(var I=0;g>I;I++){var F=e.getOrdinate(b,I),Z=r.getOrdinate(b,I);if(!(e.getOrdinate(b,I)===r.getOrdinate(b,I)||h.isNaN(F)&&h.isNaN(Z)))return!1}return!0},He.extend=function(e,r,a){var c=e.create(a,r.getDimension()),g=r.size();if(He.copy(r,0,c,0,g),g>0)for(var b=g;a>b;b++)He.copy(r,g-1,c,b,1);return c},He.reverse=function(e){for(var r=e.size()-1,a=Math.trunc(r/2),c=0;a>=c;c++)He.swap(e,c,r-c)},He.swap=function(e,r,a){if(r===a)return null;for(var c=0;c<e.getDimension();c++){var g=e.getOrdinate(r,c);e.setOrdinate(r,c,e.getOrdinate(a,c)),e.setOrdinate(a,c,g)}},He.copy=function(e,r,a,c,g){for(var b=0;g>b;b++)He.copyCoord(e,r+b,a,c+b)},He.toString=function(){if(arguments.length===1){var e=arguments[0],r=e.size();if(r===0)return"()";var a=e.getDimension(),c=new ue;c.append("(");for(var g=0;r>g;g++){g>0&&c.append(" ");for(var b=0;a>b;b++)b>0&&c.append(","),c.append(Ae.toString(e.getOrdinate(g,b)))}return c.append(")"),c.toString()}},He.ensureValidRing=function(e,r){var a=r.size();if(a===0)return r;if(3>=a)return He.createClosedRing(e,r,4);var c=r.getOrdinate(0,Q.X)===r.getOrdinate(a-1,Q.X)&&r.getOrdinate(0,Q.Y)===r.getOrdinate(a-1,Q.Y);return c?r:He.createClosedRing(e,r,a+1)},He.createClosedRing=function(e,r,a){var c=e.create(a,r.getDimension()),g=r.size();He.copy(r,0,c,0,g);for(var b=g;a>b;b++)He.copy(r,0,c,b,1);return c},_(Se,ae),o(Se.prototype,{computeEnvelopeInternal:function(){return this.isEmpty()?new V:this.points.expandEnvelope(new V)},isRing:function(){return this.isClosed()&&this.isSimple()},getSortIndex:function(){return ae.SORTINDEX_LINESTRING},getCoordinates:function(){return this.points.toCoordinateArray()},equalsExact:function(){if(arguments.length===2){var e=arguments[0],r=arguments[1];if(!this.isEquivalentClass(e))return!1;var a=e;if(this.points.size()!==a.points.size())return!1;for(var c=0;c<this.points.size();c++)if(!this.equal(this.points.getCoordinate(c),a.points.getCoordinate(c),r))return!1;return!0}return ae.prototype.equalsExact.apply(this,arguments)},normalize:function(){for(var e=0;e<Math.trunc(this.points.size()/2);e++){var r=this.points.size()-1-e;if(!this.points.getCoordinate(e).equals(this.points.getCoordinate(r)))return this.points.getCoordinate(e).compareTo(this.points.getCoordinate(r))>0&&He.reverse(this.points),null}},getCoordinate:function(){return this.isEmpty()?null:this.points.getCoordinate(0)},getBoundaryDimension:function(){return this.isClosed()?he.FALSE:0},isClosed:function(){return this.isEmpty()?!1:this.getCoordinateN(0).equals2D(this.getCoordinateN(this.getNumPoints()-1))},getEndPoint:function(){return this.isEmpty()?null:this.getPointN(this.getNumPoints()-1)},getDimension:function(){return 1},getLength:function(){return xe.computeLength(this.points)},getNumPoints:function(){return this.points.size()},reverse:function(){var e=this.points.copy();He.reverse(e);var r=this.getFactory().createLineString(e);return r},compareToSameClass:function(){if(arguments.length===1){for(var e=arguments[0],r=e,a=0,c=0;a<this.points.size()&&c<r.points.size();){var g=this.points.getCoordinate(a).compareTo(r.points.getCoordinate(c));if(g!==0)return g;a++,c++}return a<this.points.size()?1:c<r.points.size()?-1:0}if(arguments.length===2){var b=arguments[0],I=arguments[1],r=b;return I.compare(this.points,r.points)}},apply:function(){if(X(arguments[0],Ce))for(var e=arguments[0],r=0;r<this.points.size();r++)e.filter(this.points.getCoordinate(r));else if(X(arguments[0],kt)){var a=arguments[0];if(this.points.size()===0)return null;for(var r=0;r<this.points.size()&&(a.filter(this.points,r),!a.isDone());r++);a.isGeometryChanged()&&this.geometryChanged()}else if(X(arguments[0],ht)){var c=arguments[0];c.filter(this)}else if(X(arguments[0],be)){var g=arguments[0];g.filter(this)}},getBoundary:function(){return new At(this).getBoundary()},isEquivalentClass:function(e){return e instanceof Se},clone:function(){var e=ae.prototype.clone.call(this);return e.points=this.points.clone(),e},getCoordinateN:function(e){return this.points.getCoordinate(e)},getGeometryType:function(){return"LineString"},copy:function(){return new Se(this.points.copy(),this.factory)},getCoordinateSequence:function(){return this.points},isEmpty:function(){return this.points.size()===0},init:function(e){if(e===null&&(e=this.getFactory().getCoordinateSequenceFactory().create([])),e.size()===1)throw new d("Invalid number of points in LineString (found "+e.size()+" - must be 0 or >= 2)");this.points=e},isCoordinate:function(e){for(var r=0;r<this.points.size();r++)if(this.points.getCoordinate(r).equals(e))return!0;return!1},getStartPoint:function(){return this.isEmpty()?null:this.getPointN(0)},getPointN:function(e){return this.getFactory().createPoint(this.points.getCoordinate(e))},interfaces_:function(){return[Xe]},getClass:function(){return Se}}),Se.serialVersionUID=0x2b2b51ba435c8e00,o(fn.prototype,{interfaces_:function(){return[]},getClass:function(){return fn}}),_(Ge,ae),o(Ge.prototype,{computeEnvelopeInternal:function(){if(this.isEmpty())return new V;var e=new V;return e.expandToInclude(this.coordinates.getX(0),this.coordinates.getY(0)),e},getSortIndex:function(){return ae.SORTINDEX_POINT},getCoordinates:function(){return this.isEmpty()?[]:[this.getCoordinate()]},equalsExact:function(){if(arguments.length===2){var e=arguments[0],r=arguments[1];return this.isEquivalentClass(e)?this.isEmpty()&&e.isEmpty()?!0:this.isEmpty()!==e.isEmpty()?!1:this.equal(e.getCoordinate(),this.getCoordinate(),r):!1}return ae.prototype.equalsExact.apply(this,arguments)},normalize:function(){},getCoordinate:function(){return this.coordinates.size()!==0?this.coordinates.getCoordinate(0):null},getBoundaryDimension:function(){return he.FALSE},getDimension:function(){return 0},getNumPoints:function(){return this.isEmpty()?0:1},reverse:function(){return this.copy()},getX:function(){if(this.getCoordinate()===null)throw new IllegalStateException("getX called on empty Point");return this.getCoordinate().x},compareToSameClass:function(){if(arguments.length===1){var e=arguments[0],r=e;return this.getCoordinate().compareTo(r.getCoordinate())}if(arguments.length===2){var a=arguments[0],c=arguments[1],r=a;return c.compare(this.coordinates,r.coordinates)}},apply:function(){if(X(arguments[0],Ce)){var e=arguments[0];if(this.isEmpty())return null;e.filter(this.getCoordinate())}else if(X(arguments[0],kt)){var r=arguments[0];if(this.isEmpty())return null;r.filter(this.coordinates,0),r.isGeometryChanged()&&this.geometryChanged()}else if(X(arguments[0],ht)){var a=arguments[0];a.filter(this)}else if(X(arguments[0],be)){var c=arguments[0];c.filter(this)}},getBoundary:function(){return this.getFactory().createGeometryCollection(null)},clone:function(){var e=ae.prototype.clone.call(this);return e.coordinates=this.coordinates.clone(),e},getGeometryType:function(){return"Point"},copy:function(){return new Ge(this.coordinates.copy(),this.factory)},getCoordinateSequence:function(){return this.coordinates},getY:function(){if(this.getCoordinate()===null)throw new IllegalStateException("getY called on empty Point");return this.getCoordinate().y},isEmpty:function(){return this.coordinates.size()===0},init:function(e){e===null&&(e=this.getFactory().getCoordinateSequenceFactory().create([])),N.isTrue(e.size()<=1),this.coordinates=e},isSimple:function(){return!0},interfaces_:function(){return[fn]},getClass:function(){return Ge}}),Ge.serialVersionUID=4902022702746615e3,o(Nt.prototype,{interfaces_:function(){return[]},getClass:function(){return Nt}}),_(_t,ae),o(_t.prototype,{computeEnvelopeInternal:function(){return this.shell.getEnvelopeInternal()},getSortIndex:function(){return ae.SORTINDEX_POLYGON},getCoordinates:function(){if(this.isEmpty())return[];for(var e=new Array(this.getNumPoints()).fill(null),r=-1,a=this.shell.getCoordinates(),c=0;c<a.length;c++)r++,e[r]=a[c];for(var g=0;g<this.holes.length;g++)for(var b=this.holes[g].getCoordinates(),I=0;I<b.length;I++)r++,e[r]=b[I];return e},getArea:function(){var e=0;e+=Math.abs(xe.signedArea(this.shell.getCoordinateSequence()));for(var r=0;r<this.holes.length;r++)e-=Math.abs(xe.signedArea(this.holes[r].getCoordinateSequence()));return e},isRectangle:function(){if(this.getNumInteriorRing()!==0||this.shell===null||this.shell.getNumPoints()!==5)return!1;for(var e=this.shell.getCoordinateSequence(),r=this.getEnvelopeInternal(),a=0;5>a;a++){var c=e.getX(a);if(c!==r.getMinX()&&c!==r.getMaxX())return!1;var g=e.getY(a);if(g!==r.getMinY()&&g!==r.getMaxY())return!1}for(var b=e.getX(0),I=e.getY(0),a=1;4>=a;a++){var c=e.getX(a),g=e.getY(a),F=c!==b,Z=g!==I;if(F===Z)return!1;b=c,I=g}return!0},equalsExact:function(){if(arguments.length===2){var e=arguments[0],r=arguments[1];if(!this.isEquivalentClass(e))return!1;var a=e,c=this.shell,g=a.shell;if(!c.equalsExact(g,r)||this.holes.length!==a.holes.length)return!1;for(var b=0;b<this.holes.length;b++)if(!this.holes[b].equalsExact(a.holes[b],r))return!1;return!0}return ae.prototype.equalsExact.apply(this,arguments)},normalize:function(){if(arguments.length===0){this.normalize(this.shell,!0);for(var e=0;e<this.holes.length;e++)this.normalize(this.holes[e],!1);st.sort(this.holes)}else if(arguments.length===2){var r=arguments[0],a=arguments[1];if(r.isEmpty())return null;var c=new Array(r.getCoordinates().length-1).fill(null);$.arraycopy(r.getCoordinates(),0,c,0,c.length);var g=Le.minCoordinate(r.getCoordinates());Le.scroll(c,g),$.arraycopy(c,0,r.getCoordinates(),0,c.length),r.getCoordinates()[c.length]=c[0],xe.isCCW(r.getCoordinates())===a&&Le.reverse(r.getCoordinates())}},getCoordinate:function(){return this.shell.getCoordinate()},getNumInteriorRing:function(){return this.holes.length},getBoundaryDimension:function(){return 1},getDimension:function(){return 2},getLength:function(){var e=0;e+=this.shell.getLength();for(var r=0;r<this.holes.length;r++)e+=this.holes[r].getLength();return e},getNumPoints:function(){for(var e=this.shell.getNumPoints(),r=0;r<this.holes.length;r++)e+=this.holes[r].getNumPoints();return e},reverse:function(){var e=this.copy();e.shell=this.shell.copy().reverse(),e.holes=new Array(this.holes.length).fill(null);for(var r=0;r<this.holes.length;r++)e.holes[r]=this.holes[r].copy().reverse();return e},convexHull:function(){return this.getExteriorRing().convexHull()},compareToSameClass:function(){if(arguments.length===1){var e=arguments[0],r=this.shell,a=e.shell;return r.compareToSameClass(a)}if(arguments.length===2){var c=arguments[0],g=arguments[1],b=c,r=this.shell,a=b.shell,I=r.compareToSameClass(a,g);if(I!==0)return I;for(var F=this.getNumInteriorRing(),Z=b.getNumInteriorRing(),ne=0;F>ne&&Z>ne;){var de=this.getInteriorRingN(ne),me=b.getInteriorRingN(ne),_e=de.compareToSameClass(me,g);if(_e!==0)return _e;ne++}return F>ne?1:Z>ne?-1:0}},apply:function(){if(X(arguments[0],Ce)){var e=arguments[0];this.shell.apply(e);for(var r=0;r<this.holes.length;r++)this.holes[r].apply(e)}else if(X(arguments[0],kt)){var a=arguments[0];if(this.shell.apply(a),!a.isDone())for(var r=0;r<this.holes.length&&(this.holes[r].apply(a),!a.isDone());r++);a.isGeometryChanged()&&this.geometryChanged()}else if(X(arguments[0],ht)){var c=arguments[0];c.filter(this)}else if(X(arguments[0],be)){var g=arguments[0];g.filter(this),this.shell.apply(g);for(var r=0;r<this.holes.length;r++)this.holes[r].apply(g)}},getBoundary:function(){if(this.isEmpty())return this.getFactory().createMultiLineString();var e=new Array(this.holes.length+1).fill(null);e[0]=this.shell;for(var r=0;r<this.holes.length;r++)e[r+1]=this.holes[r];return e.length<=1?this.getFactory().createLinearRing(e[0].getCoordinateSequence()):this.getFactory().createMultiLineString(e)},clone:function(){var e=ae.prototype.clone.call(this);e.shell=this.shell.clone(),e.holes=new Array(this.holes.length).fill(null);for(var r=0;r<this.holes.length;r++)e.holes[r]=this.holes[r].clone();return e},getGeometryType:function(){return"Polygon"},copy:function(){for(var e=this.shell.copy(),r=new Array(this.holes.length).fill(null),a=0;a<r.length;a++)r[a]=this.holes[a].copy();return new _t(e,r,this.factory)},getExteriorRing:function(){return this.shell},isEmpty:function(){return this.shell.isEmpty()},getInteriorRingN:function(e){return this.holes[e]},interfaces_:function(){return[Nt]},getClass:function(){return _t}}),_t.serialVersionUID=-0x307ffefd8dc97200,_($t,Re),o($t.prototype,{getSortIndex:function(){return ae.SORTINDEX_MULTIPOINT},isValid:function(){return!0},equalsExact:function(){if(arguments.length===2){var e=arguments[0],r=arguments[1];return this.isEquivalentClass(e)?Re.prototype.equalsExact.call(this,e,r):!1}return Re.prototype.equalsExact.apply(this,arguments)},getCoordinate:function(){if(arguments.length===1){var e=arguments[0];return this.geometries[e].getCoordinate()}return Re.prototype.getCoordinate.apply(this,arguments)},getBoundaryDimension:function(){return he.FALSE},getDimension:function(){return 0},getBoundary:function(){return this.getFactory().createGeometryCollection(null)},getGeometryType:function(){return"MultiPoint"},copy:function(){for(var e=new Array(this.geometries.length).fill(null),r=0;r<e.length;r++)e[r]=this.geometries[r].copy();return new $t(e,this.factory)},interfaces_:function(){return[fn]},getClass:function(){return $t}}),$t.serialVersionUID=-8048474874175356e3,_(It,Se),o(It.prototype,{getSortIndex:function(){return ae.SORTINDEX_LINEARRING},getBoundaryDimension:function(){return he.FALSE},isClosed:function(){return this.isEmpty()?!0:Se.prototype.isClosed.call(this)},reverse:function(){var e=this.points.copy();He.reverse(e);var r=this.getFactory().createLinearRing(e);return r},validateConstruction:function(){if(!this.isEmpty()&&!Se.prototype.isClosed.call(this))throw new d;if(this.getCoordinateSequence().size()>=1&&this.getCoordinateSequence().size()<It.MINIMUM_VALID_SIZE)throw new d("Invalid number of points in LinearRing (found "+this.getCoordinateSequence().size()+" - must be 0 or >= 4)")},getGeometryType:function(){return"LinearRing"},copy:function(){return new It(this.points.copy(),this.factory)},interfaces_:function(){return[]},getClass:function(){return It}}),It.MINIMUM_VALID_SIZE=4,It.serialVersionUID=-0x3b229e262367a600,_(nn,Re),o(nn.prototype,{getSortIndex:function(){return ae.SORTINDEX_MULTIPOLYGON},equalsExact:function(){if(arguments.length===2){var e=arguments[0],r=arguments[1];return this.isEquivalentClass(e)?Re.prototype.equalsExact.call(this,e,r):!1}return Re.prototype.equalsExact.apply(this,arguments)},getBoundaryDimension:function(){return 1},getDimension:function(){return 2},reverse:function(){for(var e=this.geometries.length,r=new Array(e).fill(null),a=0;a<this.geometries.length;a++)r[a]=this.geometries[a].reverse();return this.getFactory().createMultiPolygon(r)},getBoundary:function(){if(this.isEmpty())return this.getFactory().createMultiLineString();for(var e=new k,r=0;r<this.geometries.length;r++)for(var a=this.geometries[r],c=a.getBoundary(),g=0;g<c.getNumGeometries();g++)e.add(c.getGeometryN(g));var b=new Array(e.size()).fill(null);return this.getFactory().createMultiLineString(e.toArray(b))},getGeometryType:function(){return"MultiPolygon"},copy:function(){for(var e=new Array(this.geometries.length).fill(null),r=0;r<e.length;r++)e[r]=this.geometries[r].copy();return new nn(e,this.factory)},interfaces_:function(){return[Nt]},getClass:function(){return nn}}),nn.serialVersionUID=-0x7a5aa1369171980,o(dn.prototype,{setCopyUserData:function(e){this.isUserDataCopied=e},edit:function(e,r){if(e===null)return null;var a=this.editInternal(e,r);return this.isUserDataCopied&&a.setUserData(e.getUserData()),a},editInternal:function(e,r){return this.factory===null&&(this.factory=e.getFactory()),e instanceof Re?this.editGeometryCollection(e,r):e instanceof _t?this.editPolygon(e,r):e instanceof Ge?r.edit(e,this.factory):e instanceof Se?r.edit(e,this.factory):(N.shouldNeverReachHere("Unsupported Geometry class: "+e.getClass().getName()),null)},editGeometryCollection:function(e,r){for(var a=r.edit(e,this.factory),c=new k,g=0;g<a.getNumGeometries();g++){var b=this.edit(a.getGeometryN(g),r);b===null||b.isEmpty()||c.add(b)}return a.getClass()===$t?this.factory.createMultiPoint(c.toArray([])):a.getClass()===Lt?this.factory.createMultiLineString(c.toArray([])):a.getClass()===nn?this.factory.createMultiPolygon(c.toArray([])):this.factory.createGeometryCollection(c.toArray([]))},editPolygon:function(e,r){var a=r.edit(e,this.factory);if(a===null&&(a=this.factory.createPolygon(null)),a.isEmpty())return a;var c=this.edit(a.getExteriorRing(),r);if(c===null||c.isEmpty())return this.factory.createPolygon();for(var g=new k,b=0;b<a.getNumInteriorRing();b++){var I=this.edit(a.getInteriorRingN(b),r);I===null||I.isEmpty()||g.add(I)}return this.factory.createPolygon(c,g.toArray([]))},interfaces_:function(){return[]},getClass:function(){return dn}}),dn.GeometryEditorOperation=gn,o(bn.prototype,{edit:function(e,r){return e},interfaces_:function(){return[gn]},getClass:function(){return bn}}),o(We.prototype,{edit:function(e,r){if(e instanceof It)return r.createLinearRing(this.editCoordinates(e.getCoordinates(),e));if(e instanceof Se)return r.createLineString(this.editCoordinates(e.getCoordinates(),e));if(e instanceof Ge){var a=this.editCoordinates(e.getCoordinates(),e);return a.length>0?r.createPoint(a[0]):r.createPoint()}return e},interfaces_:function(){return[gn]},getClass:function(){return We}}),o(xn.prototype,{edit:function(e,r){return e instanceof It?r.createLinearRing(this.edit(e.getCoordinateSequence(),e)):e instanceof Se?r.createLineString(this.edit(e.getCoordinateSequence(),e)):e instanceof Ge?r.createPoint(this.edit(e.getCoordinateSequence(),e)):e},interfaces_:function(){return[gn]},getClass:function(){return xn}}),dn.NoOpGeometryOperation=bn,dn.CoordinateOperation=We,dn.CoordinateSequenceOperation=xn,o(rn.prototype,{setOrdinate:function(e,r,a){switch(r){case Q.X:this.coordinates[e].x=a;break;case Q.Y:this.coordinates[e].y=a;break;case Q.Z:this.coordinates[e].z=a;break;default:throw new d}},size:function(){return this.coordinates.length},getOrdinate:function(e,r){switch(r){case Q.X:return this.coordinates[e].x;case Q.Y:return this.coordinates[e].y;case Q.Z:return this.coordinates[e].z}return h.NaN},getCoordinate:function(){if(arguments.length===1){var e=arguments[0];return this.coordinates[e]}if(arguments.length===2){var r=arguments[0],a=arguments[1];a.x=this.coordinates[r].x,a.y=this.coordinates[r].y,a.z=this.coordinates[r].z}},getCoordinateCopy:function(e){return new w(this.coordinates[e])},getDimension:function(){return this.dimension},getX:function(e){return this.coordinates[e].x},clone:function(){for(var e=new Array(this.size()).fill(null),r=0;r<this.coordinates.length;r++)e[r]=this.coordinates[r].clone();return new rn(e,this.dimension)},expandEnvelope:function(e){for(var r=0;r<this.coordinates.length;r++)e.expandToInclude(this.coordinates[r]);return e},copy:function(){for(var e=new Array(this.size()).fill(null),r=0;r<this.coordinates.length;r++)e[r]=this.coordinates[r].copy();return new rn(e,this.dimension)},toString:function(){if(this.coordinates.length>0){var e=new ue(17*this.coordinates.length);e.append("("),e.append(this.coordinates[0]);for(var r=1;r<this.coordinates.length;r++)e.append(", "),e.append(this.coordinates[r]);return e.append(")"),e.toString()}return"()"},getY:function(e){return this.coordinates[e].y},toCoordinateArray:function(){return this.coordinates},interfaces_:function(){return[Q,y]},getClass:function(){return rn}}),rn.serialVersionUID=-0xcb44a778db18e00,o(dr.prototype,{readResolve:function(){return dr.instance()},create:function(){if(arguments.length===1){if(arguments[0]instanceof Array){var e=arguments[0];return new rn(e)}if(X(arguments[0],Q)){var r=arguments[0];return new rn(r)}}else if(arguments.length===2){var a=arguments[0],c=arguments[1];return c>3&&(c=3),2>c?new rn(a):new rn(a,c)}},interfaces_:function(){return[le,y]},getClass:function(){return dr}}),dr.instance=function(){return dr.instanceObject},dr.serialVersionUID=-0x38e49fa6cf6f2e00,dr.instanceObject=new dr;var _s,hA=Object.defineProperty,fA=un({delete:ui,has:as,get:Hi,set:ie,keys:qe,values:Dt,entries:Rt,forEach:In,clear:ze}),gA=typeof Map<"u"&&Map.prototype.values?Map:fA;Mt.prototype=new De,Mt.prototype.get=function(e){return this.map_.get(e)||null},Mt.prototype.put=function(e,r){return this.map_.set(e,r),r},Mt.prototype.values=function(){for(var e=new k,r=this.map_.values(),a=r.next();!a.done;)e.add(a.value),a=r.next();return e},Mt.prototype.entrySet=function(){var e=new Ye;return this.map_.entries().forEach(function(r){return e.add(r)}),e},Mt.prototype.size=function(){return this.map_.size()},o(Ct.prototype,{equals:function(e){if(!(e instanceof Ct))return!1;var r=e;return this.modelType===r.modelType&&this.scale===r.scale},compareTo:function(e){var r=e,a=this.getMaximumSignificantDigits(),c=r.getMaximumSignificantDigits();return new G(a).compareTo(new G(c))},getScale:function(){return this.scale},isFloating:function(){return this.modelType===Ct.FLOATING||this.modelType===Ct.FLOATING_SINGLE},getType:function(){return this.modelType},toString:function(){var e="UNKNOWN";return this.modelType===Ct.FLOATING?e="Floating":this.modelType===Ct.FLOATING_SINGLE?e="Floating-Single":this.modelType===Ct.FIXED&&(e="Fixed (Scale="+this.getScale()+")"),e},makePrecise:function(){if(typeof arguments[0]=="number"){var e=arguments[0];if(h.isNaN(e))return e;if(this.modelType===Ct.FLOATING_SINGLE){var r=e;return r}return this.modelType===Ct.FIXED?Math.round(e*this.scale)/this.scale:e}if(arguments[0]instanceof w){var a=arguments[0];if(this.modelType===Ct.FLOATING)return null;a.x=this.makePrecise(a.x),a.y=this.makePrecise(a.y)}},getMaximumSignificantDigits:function(){var e=16;return this.modelType===Ct.FLOATING?e=16:this.modelType===Ct.FLOATING_SINGLE?e=6:this.modelType===Ct.FIXED&&(e=1+Math.trunc(Math.ceil(Math.log(this.getScale())/Math.log(10)))),e},setScale:function(e){this.scale=Math.abs(e)},interfaces_:function(){return[y,f]},getClass:function(){return Ct}}),Ct.mostPrecise=function(e,r){return e.compareTo(r)>=0?e:r},o(Wt.prototype,{readResolve:function(){return Wt.nameToTypeMap.get(this.name)},toString:function(){return this.name},interfaces_:function(){return[y]},getClass:function(){return Wt}}),Wt.serialVersionUID=-552860263173159e4,Wt.nameToTypeMap=new Mt,Ct.Type=Wt,Ct.serialVersionUID=7777263578777804e3,Ct.FIXED=new Wt("FIXED"),Ct.FLOATING=new Wt("FLOATING"),Ct.FLOATING_SINGLE=new Wt("FLOATING SINGLE"),Ct.maximumPreciseValue=9007199254740992,o(dt.prototype,{toGeometry:function(e){return e.isNull()?this.createPoint(null):e.getMinX()===e.getMaxX()&&e.getMinY()===e.getMaxY()?this.createPoint(new w(e.getMinX(),e.getMinY())):e.getMinX()===e.getMaxX()||e.getMinY()===e.getMaxY()?this.createLineString([new w(e.getMinX(),e.getMinY()),new w(e.getMaxX(),e.getMaxY())]):this.createPolygon(this.createLinearRing([new w(e.getMinX(),e.getMinY()),new w(e.getMinX(),e.getMaxY()),new w(e.getMaxX(),e.getMaxY()),new w(e.getMaxX(),e.getMinY()),new w(e.getMinX(),e.getMinY())]),null)},createLineString:function(){if(arguments.length===0)return this.createLineString(this.getCoordinateSequenceFactory().create([]));if(arguments.length===1){if(arguments[0]instanceof Array){var e=arguments[0];return this.createLineString(e!==null?this.getCoordinateSequenceFactory().create(e):null)}if(X(arguments[0],Q)){var r=arguments[0];return new Se(r,this)}}},createMultiLineString:function(){if(arguments.length===0)return new Lt(null,this);if(arguments.length===1){var e=arguments[0];return new Lt(e,this)}},buildGeometry:function(e){for(var r=null,a=!1,c=!1,g=e.iterator();g.hasNext();){var b=g.next(),I=b.getClass();r===null&&(r=I),I!==r&&(a=!0),b.isGeometryCollectionOrDerived()&&(c=!0)}if(r===null)return this.createGeometryCollection();if(a||c)return this.createGeometryCollection(dt.toGeometryArray(e));var F=e.iterator().next(),Z=e.size()>1;if(Z){if(F instanceof _t)return this.createMultiPolygon(dt.toPolygonArray(e));if(F instanceof Se)return this.createMultiLineString(dt.toLineStringArray(e));if(F instanceof Ge)return this.createMultiPoint(dt.toPointArray(e));N.shouldNeverReachHere("Unhandled class: "+F.getClass().getName())}return F},createMultiPointFromCoords:function(e){return this.createMultiPoint(e!==null?this.getCoordinateSequenceFactory().create(e):null)},createPoint:function(){if(arguments.length===0)return this.createPoint(this.getCoordinateSequenceFactory().create([]));if(arguments.length===1){if(arguments[0]instanceof w){var e=arguments[0];return this.createPoint(e!==null?this.getCoordinateSequenceFactory().create([e]):null)}if(X(arguments[0],Q)){var r=arguments[0];return new Ge(r,this)}}},getCoordinateSequenceFactory:function(){return this.coordinateSequenceFactory},createPolygon:function(){if(arguments.length===0)return new _t(null,null,this);if(arguments.length===1){if(X(arguments[0],Q)){var e=arguments[0];return this.createPolygon(this.createLinearRing(e))}if(arguments[0]instanceof Array){var r=arguments[0];return this.createPolygon(this.createLinearRing(r))}if(arguments[0]instanceof It){var a=arguments[0];return this.createPolygon(a,null)}}else if(arguments.length===2){var c=arguments[0],g=arguments[1];return new _t(c,g,this)}},getSRID:function(){return this.SRID},createGeometryCollection:function(){if(arguments.length===0)return new Re(null,this);if(arguments.length===1){var e=arguments[0];return new Re(e,this)}},createGeometry:function(e){var r=new dn(this);return r.edit(e,{edit:function(){if(arguments.length===2){var a=arguments[0];return this.coordinateSequenceFactory.create(a)}}})},getPrecisionModel:function(){return this.precisionModel},createLinearRing:function(){if(arguments.length===0)return this.createLinearRing(this.getCoordinateSequenceFactory().create([]));if(arguments.length===1){if(arguments[0]instanceof Array){var e=arguments[0];return this.createLinearRing(e!==null?this.getCoordinateSequenceFactory().create(e):null)}if(X(arguments[0],Q)){var r=arguments[0];return new It(r,this)}}},createMultiPolygon:function(){if(arguments.length===0)return new nn(null,this);if(arguments.length===1){var e=arguments[0];return new nn(e,this)}},createMultiPoint:function(){if(arguments.length===0)return new $t(null,this);if(arguments.length===1){if(arguments[0]instanceof Array){var e=arguments[0];return new $t(e,this)}if(arguments[0]instanceof Array){var r=arguments[0];return this.createMultiPoint(r!==null?this.getCoordinateSequenceFactory().create(r):null)}if(X(arguments[0],Q)){var a=arguments[0];if(a===null)return this.createMultiPoint(new Array(0).fill(null));for(var c=new Array(a.size()).fill(null),g=0;g<a.size();g++){var b=this.getCoordinateSequenceFactory().create(1,a.getDimension());He.copy(a,g,b,0,1),c[g]=this.createPoint(b)}return this.createMultiPoint(c)}}},interfaces_:function(){return[y]},getClass:function(){return dt}}),dt.toMultiPolygonArray=function(e){var r=new Array(e.size()).fill(null);return e.toArray(r)},dt.toGeometryArray=function(e){if(e===null)return null;var r=new Array(e.size()).fill(null);return e.toArray(r)},dt.getDefaultCoordinateSequenceFactory=function(){return dr.instance()},dt.toMultiLineStringArray=function(e){var r=new Array(e.size()).fill(null);return e.toArray(r)},dt.toLineStringArray=function(e){var r=new Array(e.size()).fill(null);return e.toArray(r)},dt.toMultiPointArray=function(e){var r=new Array(e.size()).fill(null);return e.toArray(r)},dt.toLinearRingArray=function(e){var r=new Array(e.size()).fill(null);return e.toArray(r)},dt.toPointArray=function(e){var r=new Array(e.size()).fill(null);return e.toArray(r)},dt.toPolygonArray=function(e){var r=new Array(e.size()).fill(null);return e.toArray(r)},dt.createPointFromInternalCoord=function(e,r){return r.getPrecisionModel().makePrecise(e),r.getFactory().createPoint(e)},dt.serialVersionUID=-6820524753094096e3;var Xi={typeStr:/^\s*(\w+)\s*\(\s*(.*)\s*\)\s*$/,emptyTypeStr:/^\s*(\w+)\s*EMPTY\s*$/,spaces:/\s+/,parenComma:/\)\s*,\s*\(/,doubleParenComma:/\)\s*\)\s*,\s*\(\s*\(/,trimParens:/^\s*\(?(.*?)\)?\s*$/};o(je.prototype,{read:function(e){var r,a,c;e=e.replace(/[\n\r]/g," ");var g=Xi.typeStr.exec(e);if(e.search("EMPTY")!==-1&&(g=Xi.emptyTypeStr.exec(e),g[2]=void 0),g&&(a=g[1].toLowerCase(),c=g[2],al[a]&&(r=al[a].apply(this,[c]))),r===void 0)throw new Error("Could not parse WKT "+e);return r},write:function(e){return this.extractGeometry(e)},extractGeometry:function(e){var r=e.getGeometryType().toLowerCase();if(!Zs[r])return null;var a=r.toUpperCase();return e.isEmpty()?a+" EMPTY":a+"("+Zs[r].apply(this,[e])+")"}});var Zs={coordinate:function(e){return e.x+" "+e.y},point:function(e){return Zs.coordinate.call(this,e.coordinates.coordinates[0])},multipoint:function(e){for(var r=[],a=0,c=e.geometries.length;c>a;++a)r.push("("+Zs.point.apply(this,[e.geometries[a]])+")");return r.join(",")},linestring:function(e){for(var r=[],a=0,c=e.points.coordinates.length;c>a;++a)r.push(Zs.coordinate.apply(this,[e.points.coordinates[a]]));return r.join(",")},linearring:function(e){for(var r=[],a=0,c=e.points.coordinates.length;c>a;++a)r.push(Zs.coordinate.apply(this,[e.points.coordinates[a]]));return r.join(",")},multilinestring:function(e){for(var r=[],a=0,c=e.geometries.length;c>a;++a)r.push("("+Zs.linestring.apply(this,[e.geometries[a]])+")");return r.join(",")},polygon:function(e){var r=[];r.push("("+Zs.linestring.apply(this,[e.shell])+")");for(var a=0,c=e.holes.length;c>a;++a)r.push("("+Zs.linestring.apply(this,[e.holes[a]])+")");return r.join(",")},multipolygon:function(e){for(var r=[],a=0,c=e.geometries.length;c>a;++a)r.push("("+Zs.polygon.apply(this,[e.geometries[a]])+")");return r.join(",")},geometrycollection:function(e){for(var r=[],a=0,c=e.geometries.length;c>a;++a)r.push(this.extractGeometry(e.geometries[a]));return r.join(",")}},al={point:function(e){if(e===void 0)return this.geometryFactory.createPoint();var r=e.trim().split(Xi.spaces);return this.geometryFactory.createPoint(new w(Number.parseFloat(r[0]),Number.parseFloat(r[1])))},multipoint:function(e){if(e===void 0)return this.geometryFactory.createMultiPoint();for(var r,a=e.trim().split(","),c=[],g=0,b=a.length;b>g;++g)r=a[g].replace(Xi.trimParens,"$1"),c.push(al.point.apply(this,[r]));return this.geometryFactory.createMultiPoint(c)},linestring:function(e){if(e===void 0)return this.geometryFactory.createLineString();for(var r,a=e.trim().split(","),c=[],g=0,b=a.length;b>g;++g)r=a[g].trim().split(Xi.spaces),c.push(new w(Number.parseFloat(r[0]),Number.parseFloat(r[1])));return this.geometryFactory.createLineString(c)},linearring:function(e){if(e===void 0)return this.geometryFactory.createLinearRing();for(var r,a=e.trim().split(","),c=[],g=0,b=a.length;b>g;++g)r=a[g].trim().split(Xi.spaces),c.push(new w(Number.parseFloat(r[0]),Number.parseFloat(r[1])));return this.geometryFactory.createLinearRing(c)},multilinestring:function(e){if(e===void 0)return this.geometryFactory.createMultiLineString();for(var r,a=e.trim().split(Xi.parenComma),c=[],g=0,b=a.length;b>g;++g)r=a[g].replace(Xi.trimParens,"$1"),c.push(al.linestring.apply(this,[r]));return this.geometryFactory.createMultiLineString(c)},polygon:function(e){if(e===void 0)return this.geometryFactory.createPolygon();for(var r,a,c,g,b=e.trim().split(Xi.parenComma),I=[],F=0,Z=b.length;Z>F;++F)r=b[F].replace(Xi.trimParens,"$1"),a=al.linestring.apply(this,[r]),c=this.geometryFactory.createLinearRing(a.points),F===0?g=c:I.push(c);return this.geometryFactory.createPolygon(g,I)},multipolygon:function(e){if(e===void 0)return this.geometryFactory.createMultiPolygon();for(var r,a=e.trim().split(Xi.doubleParenComma),c=[],g=0,b=a.length;b>g;++g)r=a[g].replace(Xi.trimParens,"$1"),c.push(al.polygon.apply(this,[r]));return this.geometryFactory.createMultiPolygon(c)},geometrycollection:function(e){if(e===void 0)return this.geometryFactory.createGeometryCollection();e=e.replace(/,\s*([A-Za-z])/g,"|$1");for(var r=e.trim().split("|"),a=[],c=0,g=r.length;g>c;++c)a.push(this.read(r[c]));return this.geometryFactory.createGeometryCollection(a)}};o(ot.prototype,{write:function(e){return this.parser.write(e)}}),o(ot,{toLineString:function(e,r){if(arguments.length!==2)throw new Error("Not implemented");return"LINESTRING ( "+e.x+" "+e.y+", "+r.x+" "+r.y+" )"}}),o(tt.prototype,{getIndexAlongSegment:function(e,r){return this.computeIntLineIndex(),this.intLineIndex[e][r]},getTopologySummary:function(){var e=new ue;return this.isEndPoint()&&e.append(" endpoint"),this._isProper&&e.append(" proper"),this.isCollinear()&&e.append(" collinear"),e.toString()},computeIntersection:function(e,r,a,c){this.inputLines[0][0]=e,this.inputLines[0][1]=r,this.inputLines[1][0]=a,this.inputLines[1][1]=c,this.result=this.computeIntersect(e,r,a,c)},getIntersectionNum:function(){return this.result},computeIntLineIndex:function(){if(arguments.length===0)this.intLineIndex===null&&(this.intLineIndex=Array(2).fill().map(function(){return Array(2)}),this.computeIntLineIndex(0),this.computeIntLineIndex(1));else if(arguments.length===1){var e=arguments[0],r=this.getEdgeDistance(e,0),a=this.getEdgeDistance(e,1);r>a?(this.intLineIndex[e][0]=0,this.intLineIndex[e][1]=1):(this.intLineIndex[e][0]=1,this.intLineIndex[e][1]=0)}},isProper:function(){return this.hasIntersection()&&this._isProper},setPrecisionModel:function(e){this.precisionModel=e},isInteriorIntersection:function(){if(arguments.length===0)return this.isInteriorIntersection(0)?!0:!!this.isInteriorIntersection(1);if(arguments.length===1){for(var e=arguments[0],r=0;r<this.result;r++)if(!this.intPt[r].equals2D(this.inputLines[e][0])&&!this.intPt[r].equals2D(this.inputLines[e][1]))return!0;return!1}},getIntersection:function(e){return this.intPt[e]},isEndPoint:function(){return this.hasIntersection()&&!this._isProper},hasIntersection:function(){return this.result!==tt.NO_INTERSECTION},getEdgeDistance:function(e,r){var a=tt.computeEdgeDistance(this.intPt[r],this.inputLines[e][0],this.inputLines[e][1]);return a},isCollinear:function(){return this.result===tt.COLLINEAR_INTERSECTION},toString:function(){return ot.toLineString(this.inputLines[0][0],this.inputLines[0][1])+" - "+ot.toLineString(this.inputLines[1][0],this.inputLines[1][1])+this.getTopologySummary()},getEndpoint:function(e,r){return this.inputLines[e][r]},isIntersection:function(e){for(var r=0;r<this.result;r++)if(this.intPt[r].equals2D(e))return!0;return!1},getIntersectionAlongSegment:function(e,r){return this.computeIntLineIndex(),this.intPt[this.intLineIndex[e][r]]},interfaces_:function(){return[]},getClass:function(){return tt}}),tt.computeEdgeDistance=function(e,r,a){var c=Math.abs(a.x-r.x),g=Math.abs(a.y-r.y),b=-1;if(e.equals(r))b=0;else if(e.equals(a))b=c>g?c:g;else{var I=Math.abs(e.x-r.x),F=Math.abs(e.y-r.y);b=c>g?I:F,b!==0||e.equals(r)||(b=Math.max(I,F))}return N.isTrue(!(b===0&&!e.equals(r)),"Bad distance calculation"),b},tt.nonRobustComputeEdgeDistance=function(e,r,a){var c=e.x-r.x,g=e.y-r.y,b=Math.sqrt(c*c+g*g);return N.isTrue(!(b===0&&!e.equals(r)),"Invalid distance calculation"),b},tt.DONT_INTERSECT=0,tt.DO_INTERSECT=1,tt.COLLINEAR=2,tt.NO_INTERSECTION=0,tt.POINT_INTERSECTION=1,tt.COLLINEAR_INTERSECTION=2,_(Fe,tt),o(Fe.prototype,{isInSegmentEnvelopes:function(e){var r=new V(this.inputLines[0][0],this.inputLines[0][1]),a=new V(this.inputLines[1][0],this.inputLines[1][1]);return r.contains(e)&&a.contains(e)},computeIntersection:function(){if(arguments.length!==3)return tt.prototype.computeIntersection.apply(this,arguments);var e=arguments[0],r=arguments[1],a=arguments[2];return this._isProper=!1,V.intersects(r,a,e)&&xe.orientationIndex(r,a,e)===0&&xe.orientationIndex(a,r,e)===0?(this._isProper=!0,(e.equals(r)||e.equals(a))&&(this._isProper=!1),this.result=tt.POINT_INTERSECTION,null):void(this.result=tt.NO_INTERSECTION)},normalizeToMinimum:function(e,r,a,c,g){g.x=this.smallestInAbsValue(e.x,r.x,a.x,c.x),g.y=this.smallestInAbsValue(e.y,r.y,a.y,c.y),e.x-=g.x,e.y-=g.y,r.x-=g.x,r.y-=g.y,a.x-=g.x,a.y-=g.y,c.x-=g.x,c.y-=g.y},safeHCoordinateIntersection:function(e,r,a,c){var g=null;try{g=re.intersection(e,r,a,c)}catch(b){if(!(b instanceof R))throw b;g=Fe.nearestEndpoint(e,r,a,c)}finally{}return g},intersection:function(e,r,a,c){var g=this.intersectionWithNormalization(e,r,a,c);return this.isInSegmentEnvelopes(g)||(g=new w(Fe.nearestEndpoint(e,r,a,c))),this.precisionModel!==null&&this.precisionModel.makePrecise(g),g},smallestInAbsValue:function(e,r,a,c){var g=e,b=Math.abs(g);return Math.abs(r)<b&&(g=r,b=Math.abs(r)),Math.abs(a)<b&&(g=a,b=Math.abs(a)),Math.abs(c)<b&&(g=c),g},checkDD:function(e,r,a,c,g){var b=te.intersection(e,r,a,c),I=this.isInSegmentEnvelopes(b);$.out.println("DD in env = "+I+"  --------------------- "+b),g.distance(b)>1e-4&&$.out.println("Distance = "+g.distance(b))},intersectionWithNormalization:function(e,r,a,c){var g=new w(e),b=new w(r),I=new w(a),F=new w(c),Z=new w;this.normalizeToEnvCentre(g,b,I,F,Z);var ne=this.safeHCoordinateIntersection(g,b,I,F);return ne.x+=Z.x,ne.y+=Z.y,ne},computeCollinearIntersection:function(e,r,a,c){var g=V.intersects(e,r,a),b=V.intersects(e,r,c),I=V.intersects(a,c,e),F=V.intersects(a,c,r);return g&&b?(this.intPt[0]=a,this.intPt[1]=c,tt.COLLINEAR_INTERSECTION):I&&F?(this.intPt[0]=e,this.intPt[1]=r,tt.COLLINEAR_INTERSECTION):g&&I?(this.intPt[0]=a,this.intPt[1]=e,!a.equals(e)||b||F?tt.COLLINEAR_INTERSECTION:tt.POINT_INTERSECTION):g&&F?(this.intPt[0]=a,this.intPt[1]=r,!a.equals(r)||b||I?tt.COLLINEAR_INTERSECTION:tt.POINT_INTERSECTION):b&&I?(this.intPt[0]=c,this.intPt[1]=e,!c.equals(e)||g||F?tt.COLLINEAR_INTERSECTION:tt.POINT_INTERSECTION):b&&F?(this.intPt[0]=c,this.intPt[1]=r,!c.equals(r)||g||I?tt.COLLINEAR_INTERSECTION:tt.POINT_INTERSECTION):tt.NO_INTERSECTION},normalizeToEnvCentre:function(e,r,a,c,g){var b=e.x<r.x?e.x:r.x,I=e.y<r.y?e.y:r.y,F=e.x>r.x?e.x:r.x,Z=e.y>r.y?e.y:r.y,ne=a.x<c.x?a.x:c.x,de=a.y<c.y?a.y:c.y,me=a.x>c.x?a.x:c.x,_e=a.y>c.y?a.y:c.y,Ze=b>ne?b:ne,gt=me>F?F:me,St=I>de?I:de,yn=_e>Z?Z:_e,Un=(Ze+gt)/2,Ki=(St+yn)/2;g.x=Un,g.y=Ki,e.x-=g.x,e.y-=g.y,r.x-=g.x,r.y-=g.y,a.x-=g.x,a.y-=g.y,c.x-=g.x,c.y-=g.y},computeIntersect:function(e,r,a,c){if(this._isProper=!1,!V.intersects(e,r,a,c))return tt.NO_INTERSECTION;var g=xe.orientationIndex(e,r,a),b=xe.orientationIndex(e,r,c);if(g>0&&b>0||0>g&&0>b)return tt.NO_INTERSECTION;var I=xe.orientationIndex(a,c,e),F=xe.orientationIndex(a,c,r);if(I>0&&F>0||0>I&&0>F)return tt.NO_INTERSECTION;var Z=g===0&&b===0&&I===0&&F===0;return Z?this.computeCollinearIntersection(e,r,a,c):(g===0||b===0||I===0||F===0?(this._isProper=!1,e.equals2D(a)||e.equals2D(c)?this.intPt[0]=e:r.equals2D(a)||r.equals2D(c)?this.intPt[0]=r:g===0?this.intPt[0]=new w(a):b===0?this.intPt[0]=new w(c):I===0?this.intPt[0]=new w(e):F===0&&(this.intPt[0]=new w(r))):(this._isProper=!0,this.intPt[0]=this.intersection(e,r,a,c)),tt.POINT_INTERSECTION)},interfaces_:function(){return[]},getClass:function(){return Fe}}),Fe.nearestEndpoint=function(e,r,a,c){var g=e,b=xe.distancePointLine(e,a,c),I=xe.distancePointLine(r,a,c);return b>I&&(b=I,g=r),I=xe.distancePointLine(a,e,r),b>I&&(b=I,g=a),I=xe.distancePointLine(c,e,r),b>I&&(b=I,g=c),g},o(Et.prototype,{interfaces_:function(){return[]},getClass:function(){return Et}}),Et.orientationIndex=function(e,r,a){var c=r.x-e.x,g=r.y-e.y,b=a.x-r.x,I=a.y-r.y;return Et.signOfDet2x2(c,g,b,I)},Et.signOfDet2x2=function(e,r,a,c){var g=null,b=null,I=null;if(g=1,e===0||c===0)return r===0||a===0?0:r>0?a>0?-g:g:a>0?g:-g;if(r===0||a===0)return c>0?e>0?g:-g:e>0?-g:g;if(r>0?c>0?c>=r||(g=-g,b=e,e=a,a=b,b=r,r=c,c=b):-c>=r?(g=-g,a=-a,c=-c):(b=e,e=-a,a=b,b=r,r=-c,c=b):c>0?c>=-r?(g=-g,e=-e,r=-r):(b=-e,e=a,a=b,b=-r,r=c,c=b):r>=c?(e=-e,r=-r,a=-a,c=-c):(g=-g,b=-e,e=-a,a=b,b=-r,r=-c,c=b),e>0){if(!(a>0)||!(a>=e))return g}else{if(a>0||!(e>=a))return-g;g=-g,e=-e,a=-a}for(;;){if(I=Math.floor(a/e),a-=I*e,c-=I*r,0>c)return-g;if(c>r)return g;if(e>a+a){if(c+c>r)return g}else{if(r>c+c)return-g;a=e-a,c=r-c,g=-g}if(c===0)return a===0?0:-g;if(a===0||(I=Math.floor(e/a),e-=I*a,r-=I*c,0>r))return g;if(r>c)return-g;if(a>e+e){if(r+r>c)return-g}else{if(c>r+r)return g;e=a-e,r=c-r,g=-g}if(r===0)return e===0?0:g;if(e===0)return-g}},o(pt.prototype,{countSegment:function(e,r){if(e.x<this.p.x&&r.x<this.p.x)return null;if(this.p.x===r.x&&this.p.y===r.y)return this.isPointOnSegment=!0,null;if(e.y===this.p.y&&r.y===this.p.y){var a=e.x,c=r.x;return a>c&&(a=r.x,c=e.x),this.p.x>=a&&this.p.x<=c&&(this.isPointOnSegment=!0),null}if(e.y>this.p.y&&r.y<=this.p.y||r.y>this.p.y&&e.y<=this.p.y){var g=e.x-this.p.x,b=e.y-this.p.y,I=r.x-this.p.x,F=r.y-this.p.y,Z=Et.signOfDet2x2(g,b,I,F);if(Z===0)return this.isPointOnSegment=!0,null;b>F&&(Z=-Z),Z>0&&this.crossingCount++}},isPointInPolygon:function(){return this.getLocation()!==A.EXTERIOR},getLocation:function(){return this.isPointOnSegment?A.BOUNDARY:this.crossingCount%2===1?A.INTERIOR:A.EXTERIOR},isOnSegment:function(){return this.isPointOnSegment},interfaces_:function(){return[]},getClass:function(){return pt}}),pt.locatePointInRing=function(){if(arguments[0]instanceof w&&X(arguments[1],Q)){for(var e=arguments[0],r=arguments[1],a=new pt(e),c=new w,g=new w,b=1;b<r.size();b++)if(r.getCoordinate(b,c),r.getCoordinate(b-1,g),a.countSegment(c,g),a.isOnSegment())return a.getLocation();return a.getLocation()}if(arguments[0]instanceof w&&arguments[1]instanceof Array){for(var I=arguments[0],F=arguments[1],a=new pt(I),b=1;b<F.length;b++){var c=F[b],g=F[b-1];if(a.countSegment(c,g),a.isOnSegment())return a.getLocation()}return a.getLocation()}},o(xe.prototype,{interfaces_:function(){return[]},getClass:function(){return xe}}),xe.orientationIndex=function(e,r,a){return te.orientationIndex(e,r,a)},xe.signedArea=function(){if(arguments[0]instanceof Array){var e=arguments[0];if(e.length<3)return 0;for(var r=0,a=e[0].x,c=1;c<e.length-1;c++){var g=e[c].x-a,b=e[c+1].y,I=e[c-1].y;r+=g*(I-b)}return r/2}if(X(arguments[0],Q)){var F=arguments[0],Z=F.size();if(3>Z)return 0;var ne=new w,de=new w,me=new w;F.getCoordinate(0,de),F.getCoordinate(1,me);var a=de.x;me.x-=a;for(var r=0,c=1;Z-1>c;c++)ne.y=de.y,de.x=me.x,de.y=me.y,F.getCoordinate(c+1,me),me.x-=a,r+=de.x*(ne.y-me.y);return r/2}},xe.distanceLineLine=function(e,r,a,c){if(e.equals(r))return xe.distancePointLine(e,a,c);if(a.equals(c))return xe.distancePointLine(c,e,r);var g=!1;if(V.intersects(e,r,a,c)){var b=(r.x-e.x)*(c.y-a.y)-(r.y-e.y)*(c.x-a.x);if(b===0)g=!0;else{var I=(e.y-a.y)*(c.x-a.x)-(e.x-a.x)*(c.y-a.y),F=(e.y-a.y)*(r.x-e.x)-(e.x-a.x)*(r.y-e.y),Z=F/b,ne=I/b;(0>ne||ne>1||0>Z||Z>1)&&(g=!0)}}else g=!0;return g?ee.min(xe.distancePointLine(e,a,c),xe.distancePointLine(r,a,c),xe.distancePointLine(a,e,r),xe.distancePointLine(c,e,r)):0},xe.isPointInRing=function(e,r){return xe.locatePointInRing(e,r)!==A.EXTERIOR},xe.computeLength=function(e){var r=e.size();if(1>=r)return 0;var a=0,c=new w;e.getCoordinate(0,c);for(var g=c.x,b=c.y,I=1;r>I;I++){e.getCoordinate(I,c);var F=c.x,Z=c.y,ne=F-g,de=Z-b;a+=Math.sqrt(ne*ne+de*de),g=F,b=Z}return a},xe.isCCW=function(e){var r=e.length-1;if(3>r)throw new d;for(var a=e[0],c=0,g=1;r>=g;g++){var b=e[g];b.y>a.y&&(a=b,c=g)}var I=c;do I-=1,0>I&&(I=r);while(e[I].equals2D(a)&&I!==c);var F=c;do F=(F+1)%r;while(e[F].equals2D(a)&&F!==c);var Z=e[I],ne=e[F];if(Z.equals2D(a)||ne.equals2D(a)||Z.equals2D(ne))return!1;var de=xe.computeOrientation(Z,a,ne);return de===0?Z.x>ne.x:de>0},xe.locatePointInRing=function(e,r){return pt.locatePointInRing(e,r)},xe.distancePointLinePerpendicular=function(e,r,a){var c=(a.x-r.x)*(a.x-r.x)+(a.y-r.y)*(a.y-r.y),g=((r.y-e.y)*(a.x-r.x)-(r.x-e.x)*(a.y-r.y))/c;return Math.abs(g)*Math.sqrt(c)},xe.computeOrientation=function(e,r,a){return xe.orientationIndex(e,r,a)},xe.distancePointLine=function(){if(arguments.length===2){var e=arguments[0],r=arguments[1];if(r.length===0)throw new d;for(var a=e.distance(r[0]),c=0;c<r.length-1;c++){var g=xe.distancePointLine(e,r[c],r[c+1]);a>g&&(a=g)}return a}if(arguments.length===3){var b=arguments[0],I=arguments[1],F=arguments[2];if(I.x===F.x&&I.y===F.y)return b.distance(I);var Z=(F.x-I.x)*(F.x-I.x)+(F.y-I.y)*(F.y-I.y),ne=((b.x-I.x)*(F.x-I.x)+(b.y-I.y)*(F.y-I.y))/Z;if(0>=ne)return b.distance(I);if(ne>=1)return b.distance(F);var de=((I.y-b.y)*(F.x-I.x)-(I.x-b.x)*(F.y-I.y))/Z;return Math.abs(de)*Math.sqrt(Z)}},xe.isOnLine=function(e,r){for(var a=new Fe,c=1;c<r.length;c++){var g=r[c-1],b=r[c];if(a.computeIntersection(e,g,b),a.hasIntersection())return!0}return!1},xe.CLOCKWISE=-1,xe.RIGHT=xe.CLOCKWISE,xe.COUNTERCLOCKWISE=1,xe.LEFT=xe.COUNTERCLOCKWISE,xe.COLLINEAR=0,xe.STRAIGHT=xe.COLLINEAR,o(nt.prototype,{minX:function(){return Math.min(this.p0.x,this.p1.x)},orientationIndex:function(){if(arguments[0]instanceof nt){var e=arguments[0],r=xe.orientationIndex(this.p0,this.p1,e.p0),a=xe.orientationIndex(this.p0,this.p1,e.p1);return r>=0&&a>=0||0>=r&&0>=a?Math.max(r,a):0}if(arguments[0]instanceof w){var c=arguments[0];return xe.orientationIndex(this.p0,this.p1,c)}},toGeometry:function(e){return e.createLineString([this.p0,this.p1])},isVertical:function(){return this.p0.x===this.p1.x},equals:function(e){if(!(e instanceof nt))return!1;var r=e;return this.p0.equals(r.p0)&&this.p1.equals(r.p1)},intersection:function(e){var r=new Fe;return r.computeIntersection(this.p0,this.p1,e.p0,e.p1),r.hasIntersection()?r.getIntersection(0):null},project:function(){if(arguments[0]instanceof w){var e=arguments[0];if(e.equals(this.p0)||e.equals(this.p1))return new w(e);var r=this.projectionFactor(e),a=new w;return a.x=this.p0.x+r*(this.p1.x-this.p0.x),a.y=this.p0.y+r*(this.p1.y-this.p0.y),a}if(arguments[0]instanceof nt){var c=arguments[0],g=this.projectionFactor(c.p0),b=this.projectionFactor(c.p1);if(g>=1&&b>=1||0>=g&&0>=b)return null;var I=this.project(c.p0);0>g&&(I=this.p0),g>1&&(I=this.p1);var F=this.project(c.p1);return 0>b&&(F=this.p0),b>1&&(F=this.p1),new nt(I,F)}},normalize:function(){this.p1.compareTo(this.p0)<0&&this.reverse()},angle:function(){return Math.atan2(this.p1.y-this.p0.y,this.p1.x-this.p0.x)},getCoordinate:function(e){return e===0?this.p0:this.p1},distancePerpendicular:function(e){return xe.distancePointLinePerpendicular(e,this.p0,this.p1)},minY:function(){return Math.min(this.p0.y,this.p1.y)},midPoint:function(){return nt.midPoint(this.p0,this.p1)},projectionFactor:function(e){if(e.equals(this.p0))return 0;if(e.equals(this.p1))return 1;var r=this.p1.x-this.p0.x,a=this.p1.y-this.p0.y,c=r*r+a*a;if(0>=c)return h.NaN;var g=((e.x-this.p0.x)*r+(e.y-this.p0.y)*a)/c;return g},closestPoints:function(e){var r=this.intersection(e);if(r!==null)return[r,r];var a=new Array(2).fill(null),c=h.MAX_VALUE,g=null,b=this.closestPoint(e.p0);c=b.distance(e.p0),a[0]=b,a[1]=e.p0;var I=this.closestPoint(e.p1);g=I.distance(e.p1),c>g&&(c=g,a[0]=I,a[1]=e.p1);var F=e.closestPoint(this.p0);g=F.distance(this.p0),c>g&&(c=g,a[0]=this.p0,a[1]=F);var Z=e.closestPoint(this.p1);return g=Z.distance(this.p1),c>g&&(c=g,a[0]=this.p1,a[1]=Z),a},closestPoint:function(e){var r=this.projectionFactor(e);if(r>0&&1>r)return this.project(e);var a=this.p0.distance(e),c=this.p1.distance(e);return c>a?this.p0:this.p1},maxX:function(){return Math.max(this.p0.x,this.p1.x)},getLength:function(){return this.p0.distance(this.p1)},compareTo:function(e){var r=e,a=this.p0.compareTo(r.p0);return a!==0?a:this.p1.compareTo(r.p1)},reverse:function(){var e=this.p0;this.p0=this.p1,this.p1=e},equalsTopo:function(e){return this.p0.equals(e.p0)&&this.p1.equals(e.p1)||this.p0.equals(e.p1)&&this.p1.equals(e.p0)},lineIntersection:function(e){try{var r=re.intersection(this.p0,this.p1,e.p0,e.p1);return r}catch(a){if(!(a instanceof R))throw a}finally{}return null},maxY:function(){return Math.max(this.p0.y,this.p1.y)},pointAlongOffset:function(e,r){var a=this.p0.x+e*(this.p1.x-this.p0.x),c=this.p0.y+e*(this.p1.y-this.p0.y),g=this.p1.x-this.p0.x,b=this.p1.y-this.p0.y,I=Math.sqrt(g*g+b*b),F=0,Z=0;if(r!==0){if(0>=I)throw new IllegalStateException("Cannot compute offset from zero-length line segment");F=r*g/I,Z=r*b/I}var ne=a-Z,de=c+F,me=new w(ne,de);return me},setCoordinates:function(){if(arguments.length===1){var e=arguments[0];this.setCoordinates(e.p0,e.p1)}else if(arguments.length===2){var r=arguments[0],a=arguments[1];this.p0.x=r.x,this.p0.y=r.y,this.p1.x=a.x,this.p1.y=a.y}},segmentFraction:function(e){var r=this.projectionFactor(e);return 0>r?r=0:(r>1||h.isNaN(r))&&(r=1),r},toString:function(){return"LINESTRING( "+this.p0.x+" "+this.p0.y+", "+this.p1.x+" "+this.p1.y+")"},isHorizontal:function(){return this.p0.y===this.p1.y},distance:function(){if(arguments[0]instanceof nt){var e=arguments[0];return xe.distanceLineLine(this.p0,this.p1,e.p0,e.p1)}if(arguments[0]instanceof w){var r=arguments[0];return xe.distancePointLine(r,this.p0,this.p1)}},pointAlong:function(e){var r=new w;return r.x=this.p0.x+e*(this.p1.x-this.p0.x),r.y=this.p0.y+e*(this.p1.y-this.p0.y),r},hashCode:function(){var e=java.lang.Double.doubleToLongBits(this.p0.x);e^=31*java.lang.Double.doubleToLongBits(this.p0.y);var r=Math.trunc(e)^Math.trunc(e>>32),a=java.lang.Double.doubleToLongBits(this.p1.x);a^=31*java.lang.Double.doubleToLongBits(this.p1.y);var c=Math.trunc(a)^Math.trunc(a>>32);return r^c},interfaces_:function(){return[f,y]},getClass:function(){return nt}}),nt.midPoint=function(e,r){return new w((e.x+r.x)/2,(e.y+r.y)/2)},nt.serialVersionUID=0x2d2172135f411c00,o(xt.prototype,{isIntersects:function(){return!this.isDisjoint()},isCovers:function(){var e=xt.isTrue(this.matrix[A.INTERIOR][A.INTERIOR])||xt.isTrue(this.matrix[A.INTERIOR][A.BOUNDARY])||xt.isTrue(this.matrix[A.BOUNDARY][A.INTERIOR])||xt.isTrue(this.matrix[A.BOUNDARY][A.BOUNDARY]);return e&&this.matrix[A.EXTERIOR][A.INTERIOR]===he.FALSE&&this.matrix[A.EXTERIOR][A.BOUNDARY]===he.FALSE},isCoveredBy:function(){var e=xt.isTrue(this.matrix[A.INTERIOR][A.INTERIOR])||xt.isTrue(this.matrix[A.INTERIOR][A.BOUNDARY])||xt.isTrue(this.matrix[A.BOUNDARY][A.INTERIOR])||xt.isTrue(this.matrix[A.BOUNDARY][A.BOUNDARY]);return e&&this.matrix[A.INTERIOR][A.EXTERIOR]===he.FALSE&&this.matrix[A.BOUNDARY][A.EXTERIOR]===he.FALSE},set:function(){if(arguments.length===1)for(var e=arguments[0],r=0;r<e.length;r++){var a=Math.trunc(r/3),c=r%3;this.matrix[a][c]=he.toDimensionValue(e.charAt(r))}else if(arguments.length===3){var g=arguments[0],b=arguments[1],I=arguments[2];this.matrix[g][b]=I}},isContains:function(){return xt.isTrue(this.matrix[A.INTERIOR][A.INTERIOR])&&this.matrix[A.EXTERIOR][A.INTERIOR]===he.FALSE&&this.matrix[A.EXTERIOR][A.BOUNDARY]===he.FALSE},setAtLeast:function(){if(arguments.length===1)for(var e=arguments[0],r=0;r<e.length;r++){var a=Math.trunc(r/3),c=r%3;this.setAtLeast(a,c,he.toDimensionValue(e.charAt(r)))}else if(arguments.length===3){var g=arguments[0],b=arguments[1],I=arguments[2];this.matrix[g][b]<I&&(this.matrix[g][b]=I)}},setAtLeastIfValid:function(e,r,a){e>=0&&r>=0&&this.setAtLeast(e,r,a)},isWithin:function(){return xt.isTrue(this.matrix[A.INTERIOR][A.INTERIOR])&&this.matrix[A.INTERIOR][A.EXTERIOR]===he.FALSE&&this.matrix[A.BOUNDARY][A.EXTERIOR]===he.FALSE},isTouches:function(e,r){return e>r?this.isTouches(r,e):e===he.A&&r===he.A||e===he.L&&r===he.L||e===he.L&&r===he.A||e===he.P&&r===he.A||e===he.P&&r===he.L?this.matrix[A.INTERIOR][A.INTERIOR]===he.FALSE&&(xt.isTrue(this.matrix[A.INTERIOR][A.BOUNDARY])||xt.isTrue(this.matrix[A.BOUNDARY][A.INTERIOR])||xt.isTrue(this.matrix[A.BOUNDARY][A.BOUNDARY])):!1},isOverlaps:function(e,r){return e===he.P&&r===he.P||e===he.A&&r===he.A?xt.isTrue(this.matrix[A.INTERIOR][A.INTERIOR])&&xt.isTrue(this.matrix[A.INTERIOR][A.EXTERIOR])&&xt.isTrue(this.matrix[A.EXTERIOR][A.INTERIOR]):e===he.L&&r===he.L?this.matrix[A.INTERIOR][A.INTERIOR]===1&&xt.isTrue(this.matrix[A.INTERIOR][A.EXTERIOR])&&xt.isTrue(this.matrix[A.EXTERIOR][A.INTERIOR]):!1},isEquals:function(e,r){return e!==r?!1:xt.isTrue(this.matrix[A.INTERIOR][A.INTERIOR])&&this.matrix[A.INTERIOR][A.EXTERIOR]===he.FALSE&&this.matrix[A.BOUNDARY][A.EXTERIOR]===he.FALSE&&this.matrix[A.EXTERIOR][A.INTERIOR]===he.FALSE&&this.matrix[A.EXTERIOR][A.BOUNDARY]===he.FALSE},toString:function(){for(var e=new ue("123456789"),r=0;3>r;r++)for(var a=0;3>a;a++)e.setCharAt(3*r+a,he.toDimensionSymbol(this.matrix[r][a]));return e.toString()},setAll:function(e){for(var r=0;3>r;r++)for(var a=0;3>a;a++)this.matrix[r][a]=e},get:function(e,r){return this.matrix[e][r]},transpose:function(){var e=this.matrix[1][0];return this.matrix[1][0]=this.matrix[0][1],this.matrix[0][1]=e,e=this.matrix[2][0],this.matrix[2][0]=this.matrix[0][2],this.matrix[0][2]=e,e=this.matrix[2][1],this.matrix[2][1]=this.matrix[1][2],this.matrix[1][2]=e,this},matches:function(e){if(e.length!==9)throw new d;for(var r=0;3>r;r++)for(var a=0;3>a;a++)if(!xt.matches(this.matrix[r][a],e.charAt(3*r+a)))return!1;return!0},add:function(e){for(var r=0;3>r;r++)for(var a=0;3>a;a++)this.setAtLeast(r,a,e.get(r,a))},isDisjoint:function(){return this.matrix[A.INTERIOR][A.INTERIOR]===he.FALSE&&this.matrix[A.INTERIOR][A.BOUNDARY]===he.FALSE&&this.matrix[A.BOUNDARY][A.INTERIOR]===he.FALSE&&this.matrix[A.BOUNDARY][A.BOUNDARY]===he.FALSE},isCrosses:function(e,r){return e===he.P&&r===he.L||e===he.P&&r===he.A||e===he.L&&r===he.A?xt.isTrue(this.matrix[A.INTERIOR][A.INTERIOR])&&xt.isTrue(this.matrix[A.INTERIOR][A.EXTERIOR]):e===he.L&&r===he.P||e===he.A&&r===he.P||e===he.A&&r===he.L?xt.isTrue(this.matrix[A.INTERIOR][A.INTERIOR])&&xt.isTrue(this.matrix[A.EXTERIOR][A.INTERIOR]):e===he.L&&r===he.L?this.matrix[A.INTERIOR][A.INTERIOR]===0:!1},interfaces_:function(){return[v]},getClass:function(){return xt}}),xt.matches=function(){if(Number.isInteger(arguments[0])&&typeof arguments[1]=="string"){var e=arguments[0],r=arguments[1];return r===he.SYM_DONTCARE||r===he.SYM_TRUE&&(e>=0||e===he.TRUE)||r===he.SYM_FALSE&&e===he.FALSE||r===he.SYM_P&&e===he.P||r===he.SYM_L&&e===he.L?!0:r===he.SYM_A&&e===he.A}if(typeof arguments[0]=="string"&&typeof arguments[1]=="string"){var a=arguments[0],c=arguments[1],g=new xt(a);return g.matches(c)}},xt.isTrue=function(e){return e>=0||e===he.TRUE};var mA=Object.freeze({Coordinate:w,CoordinateList:H,Envelope:V,LineSegment:nt,GeometryFactory:dt,Geometry:ae,Point:Ge,LineString:Se,LinearRing:It,Polygon:_t,GeometryCollection:Re,MultiPoint:$t,MultiLineString:Lt,MultiPolygon:nn,Dimension:he,IntersectionMatrix:xt});o(it.prototype,{addPoint:function(e){this.ptCount+=1,this.ptCentSum.x+=e.x,this.ptCentSum.y+=e.y},setBasePoint:function(e){this.areaBasePt===null&&(this.areaBasePt=e)},addLineSegments:function(e){for(var r=0,a=0;a<e.length-1;a++){var c=e[a].distance(e[a+1]);if(c!==0){r+=c;var g=(e[a].x+e[a+1].x)/2;this.lineCentSum.x+=c*g;var b=(e[a].y+e[a+1].y)/2;this.lineCentSum.y+=c*b}}this.totalLength+=r,r===0&&e.length>0&&this.addPoint(e[0])},addHole:function(e){for(var r=xe.isCCW(e),a=0;a<e.length-1;a++)this.addTriangle(this.areaBasePt,e[a],e[a+1],r);this.addLineSegments(e)},getCentroid:function(){var e=new w;if(Math.abs(this.areasum2)>0)e.x=this.cg3.x/3/this.areasum2,e.y=this.cg3.y/3/this.areasum2;else if(this.totalLength>0)e.x=this.lineCentSum.x/this.totalLength,e.y=this.lineCentSum.y/this.totalLength;else{if(!(this.ptCount>0))return null;e.x=this.ptCentSum.x/this.ptCount,e.y=this.ptCentSum.y/this.ptCount}return e},addShell:function(e){e.length>0&&this.setBasePoint(e[0]);for(var r=!xe.isCCW(e),a=0;a<e.length-1;a++)this.addTriangle(this.areaBasePt,e[a],e[a+1],r);this.addLineSegments(e)},addTriangle:function(e,r,a,c){var g=c?1:-1;it.centroid3(e,r,a,this.triangleCent3);var b=it.area2(e,r,a);this.cg3.x+=g*b*this.triangleCent3.x,this.cg3.y+=g*b*this.triangleCent3.y,this.areasum2+=g*b},add:function(){if(arguments[0]instanceof _t){var e=arguments[0];this.addShell(e.getExteriorRing().getCoordinates());for(var r=0;r<e.getNumInteriorRing();r++)this.addHole(e.getInteriorRingN(r).getCoordinates())}else if(arguments[0]instanceof ae){var a=arguments[0];if(a.isEmpty())return null;if(a instanceof Ge)this.addPoint(a.getCoordinate());else if(a instanceof Se)this.addLineSegments(a.getCoordinates());else if(a instanceof _t){var c=a;this.add(c)}else if(a instanceof Re)for(var g=a,r=0;r<g.getNumGeometries();r++)this.add(g.getGeometryN(r))}},interfaces_:function(){return[]},getClass:function(){return it}}),it.area2=function(e,r,a){return(r.x-e.x)*(a.y-e.y)-(a.x-e.x)*(r.y-e.y)},it.centroid3=function(e,r,a,c){return c.x=e.x+r.x+a.x,c.y=e.y+r.y+a.y,null},it.getCentroid=function(e){var r=new it(e);return r.getCentroid()},mn.prototype=new Error,mn.prototype.name="EmptyStackException",kn.prototype=new T,kn.prototype.add=function(e){return this.array_.push(e),!0},kn.prototype.get=function(e){if(0>e||e>=this.size())throw new IndexOutOfBoundsException;return this.array_[e]},kn.prototype.push=function(e){return this.array_.push(e),e},kn.prototype.pop=function(e){if(this.array_.length===0)throw new mn;return this.array_.pop()},kn.prototype.peek=function(){if(this.array_.length===0)throw new mn;return this.array_[this.array_.length-1]},kn.prototype.empty=function(){return this.array_.length===0},kn.prototype.isEmpty=function(){return this.empty()},kn.prototype.search=function(e){return this.array_.indexOf(e)},kn.prototype.size=function(){return this.array_.length},kn.prototype.toArray=function(){for(var e=[],r=0,a=this.array_.length;a>r;r++)e.push(this.array_[r]);return e},o(li.prototype,{filter:function(e){this.treeSet.contains(e)||(this.list.add(e),this.treeSet.add(e))},getCoordinates:function(){var e=new Array(this.list.size()).fill(null);return this.list.toArray(e)},interfaces_:function(){return[Ce]},getClass:function(){return li}}),li.filterCoordinates=function(e){for(var r=new li,a=0;a<e.length;a++)r.filter(e[a]);return r.getCoordinates()},o(Rn.prototype,{preSort:function(e){for(var r=null,a=1;a<e.length;a++)(e[a].y<e[0].y||e[a].y===e[0].y&&e[a].x<e[0].x)&&(r=e[0],e[0]=e[a],e[a]=r);return st.sort(e,1,e.length,new Ps(e[0])),e},computeOctRing:function(e){var r=this.computeOctPts(e),a=new H;return a.add(r,!1),a.size()<3?null:(a.closeRing(),a.toCoordinateArray())},lineOrPolygon:function(e){if(e=this.cleanRing(e),e.length===3)return this.geomFactory.createLineString([e[0],e[1]]);var r=this.geomFactory.createLinearRing(e);return this.geomFactory.createPolygon(r,null)},cleanRing:function(e){N.equals(e[0],e[e.length-1]);for(var r=new k,a=null,c=0;c<=e.length-2;c++){var g=e[c],b=e[c+1];g.equals(b)||a!==null&&this.isBetween(a,g,b)||(r.add(g),a=g)}r.add(e[e.length-1]);var I=new Array(r.size()).fill(null);return r.toArray(I)},isBetween:function(e,r,a){return xe.computeOrientation(e,r,a)!==0?!1:e.x!==a.x&&(e.x<=r.x&&r.x<=a.x||a.x<=r.x&&r.x<=e.x)||e.y!==a.y&&(e.y<=r.y&&r.y<=a.y||a.y<=r.y&&r.y<=e.y)},reduce:function(e){var r=this.computeOctRing(e);if(r===null)return e;for(var a=new ut,c=0;c<r.length;c++)a.add(r[c]);for(var c=0;c<e.length;c++)xe.isPointInRing(e[c],r)||a.add(e[c]);var g=Le.toCoordinateArray(a);return g.length<3?this.padArray3(g):g},getConvexHull:function(){if(this.inputPts.length===0)return this.geomFactory.createGeometryCollection(null);if(this.inputPts.length===1)return this.geomFactory.createPoint(this.inputPts[0]);if(this.inputPts.length===2)return this.geomFactory.createLineString(this.inputPts);var e=this.inputPts;this.inputPts.length>50&&(e=this.reduce(this.inputPts));var r=this.preSort(e),a=this.grahamScan(r),c=this.toCoordinateArray(a);return this.lineOrPolygon(c)},padArray3:function(e){for(var r=new Array(3).fill(null),a=0;a<r.length;a++)a<e.length?r[a]=e[a]:r[a]=e[0];return r},computeOctPts:function(e){for(var r=new Array(8).fill(null),a=0;a<r.length;a++)r[a]=e[0];for(var c=1;c<e.length;c++)e[c].x<r[0].x&&(r[0]=e[c]),e[c].x-e[c].y<r[1].x-r[1].y&&(r[1]=e[c]),e[c].y>r[2].y&&(r[2]=e[c]),e[c].x+e[c].y>r[3].x+r[3].y&&(r[3]=e[c]),e[c].x>r[4].x&&(r[4]=e[c]),e[c].x-e[c].y>r[5].x-r[5].y&&(r[5]=e[c]),e[c].y<r[6].y&&(r[6]=e[c]),e[c].x+e[c].y<r[7].x+r[7].y&&(r[7]=e[c]);return r},toCoordinateArray:function(e){for(var r=new Array(e.size()).fill(null),a=0;a<e.size();a++){var c=e.get(a);r[a]=c}return r},grahamScan:function(e){var r=null,a=new kn;r=a.push(e[0]),r=a.push(e[1]),r=a.push(e[2]);for(var c=3;c<e.length;c++){for(r=a.pop();!a.empty()&&xe.computeOrientation(a.peek(),r,e[c])>0;)r=a.pop();r=a.push(r),r=a.push(e[c])}return r=a.push(e[0]),a},interfaces_:function(){return[]},getClass:function(){return Rn}}),Rn.extractCoordinates=function(e){var r=new li;return e.apply(r),r.getCoordinates()},o(Ps.prototype,{compare:function(e,r){var a=e,c=r;return Ps.polarCompare(this.origin,a,c)},interfaces_:function(){return[p]},getClass:function(){return Ps}}),Ps.polarCompare=function(e,r,a){var c=r.x-e.x,g=r.y-e.y,b=a.x-e.x,I=a.y-e.y,F=xe.computeOrientation(e,r,a);if(F===xe.COUNTERCLOCKWISE)return 1;if(F===xe.CLOCKWISE)return-1;var Z=c*c+g*g,ne=b*b+I*I;return ne>Z?-1:Z>ne?1:0},Rn.RadialComparator=Ps,o(Bn.prototype,{transformPoint:function(e,r){return this.factory.createPoint(this.transformCoordinates(e.getCoordinateSequence(),e))},transformPolygon:function(e,r){var a=!0,c=this.transformLinearRing(e.getExteriorRing(),e);c!==null&&c instanceof It&&!c.isEmpty()||(a=!1);for(var g=new k,b=0;b<e.getNumInteriorRing();b++){var I=this.transformLinearRing(e.getInteriorRingN(b),e);I===null||I.isEmpty()||(I instanceof It||(a=!1),g.add(I))}if(a)return this.factory.createPolygon(c,g.toArray([]));var F=new k;return c!==null&&F.add(c),F.addAll(g),this.factory.buildGeometry(F)},createCoordinateSequence:function(e){return this.factory.getCoordinateSequenceFactory().create(e)},getInputGeometry:function(){return this.inputGeom},transformMultiLineString:function(e,r){for(var a=new k,c=0;c<e.getNumGeometries();c++){var g=this.transformLineString(e.getGeometryN(c),e);g!==null&&(g.isEmpty()||a.add(g))}return this.factory.buildGeometry(a)},transformCoordinates:function(e,r){return this.copy(e)},transformLineString:function(e,r){return this.factory.createLineString(this.transformCoordinates(e.getCoordinateSequence(),e))},transformMultiPoint:function(e,r){for(var a=new k,c=0;c<e.getNumGeometries();c++){var g=this.transformPoint(e.getGeometryN(c),e);g!==null&&(g.isEmpty()||a.add(g))}return this.factory.buildGeometry(a)},transformMultiPolygon:function(e,r){for(var a=new k,c=0;c<e.getNumGeometries();c++){var g=this.transformPolygon(e.getGeometryN(c),e);g!==null&&(g.isEmpty()||a.add(g))}return this.factory.buildGeometry(a)},copy:function(e){return e.copy()},transformGeometryCollection:function(e,r){for(var a=new k,c=0;c<e.getNumGeometries();c++){var g=this.transform(e.getGeometryN(c));g!==null&&(this.pruneEmptyGeometry&&g.isEmpty()||a.add(g))}return this.preserveGeometryCollectionType?this.factory.createGeometryCollection(dt.toGeometryArray(a)):this.factory.buildGeometry(a)},transform:function(e){if(this.inputGeom=e,this.factory=e.getFactory(),e instanceof Ge)return this.transformPoint(e,null);if(e instanceof $t)return this.transformMultiPoint(e,null);if(e instanceof It)return this.transformLinearRing(e,null);if(e instanceof Se)return this.transformLineString(e,null);if(e instanceof Lt)return this.transformMultiLineString(e,null);if(e instanceof _t)return this.transformPolygon(e,null);if(e instanceof nn)return this.transformMultiPolygon(e,null);if(e instanceof Re)return this.transformGeometryCollection(e,null);throw new d("Unknown Geometry subtype: "+e.getClass().getName())},transformLinearRing:function(e,r){var a=this.transformCoordinates(e.getCoordinateSequence(),e);if(a===null)return this.factory.createLinearRing(null);var c=a.size();return c>0&&4>c&&!this.preserveType?this.factory.createLineString(a):this.factory.createLinearRing(a)},interfaces_:function(){return[]},getClass:function(){return Bn}}),o(vr.prototype,{snapVertices:function(e,r){for(var a=this._isClosed?e.size()-1:e.size(),c=0;a>c;c++){var g=e.get(c),b=this.findSnapForVertex(g,r);b!==null&&(e.set(c,new w(b)),c===0&&this._isClosed&&e.set(e.size()-1,new w(b)))}},findSnapForVertex:function(e,r){for(var a=0;a<r.length;a++){if(e.equals2D(r[a]))return null;if(e.distance(r[a])<this.snapTolerance)return r[a]}return null},snapTo:function(e){var r=new H(this.srcPts);this.snapVertices(r,e),this.snapSegments(r,e);var a=r.toCoordinateArray();return a},snapSegments:function(e,r){if(r.length===0)return null;var a=r.length;r[0].equals2D(r[r.length-1])&&(a=r.length-1);for(var c=0;a>c;c++){var g=r[c],b=this.findSegmentIndexToSnap(g,e);b>=0&&e.add(b+1,new w(g),!1)}},findSegmentIndexToSnap:function(e,r){for(var a=h.MAX_VALUE,c=-1,g=0;g<r.size()-1;g++){if(this.seg.p0=r.get(g),this.seg.p1=r.get(g+1),this.seg.p0.equals2D(e)||this.seg.p1.equals2D(e)){if(this.allowSnappingToSourceVertices)continue;return-1}var b=this.seg.distance(e);b<this.snapTolerance&&a>b&&(a=b,c=g)}return c},setAllowSnappingToSourceVertices:function(e){this.allowSnappingToSourceVertices=e},interfaces_:function(){return[]},getClass:function(){return vr}}),vr.isClosed=function(e){return e.length<=1?!1:e[0].equals2D(e[e.length-1])},o(Bt.prototype,{snapTo:function(e,r){var a=this.extractTargetCoordinates(e),c=new Pe(r,a);return c.transform(this.srcGeom)},snapToSelf:function(e,r){var a=this.extractTargetCoordinates(this.srcGeom),c=new Pe(e,a,!0),g=c.transform(this.srcGeom),b=g;return r&&X(b,Nt)&&(b=g.buffer(0)),b},computeSnapTolerance:function(e){var r=this.computeMinimumSegmentLength(e),a=r/10;return a},extractTargetCoordinates:function(e){for(var r=new ut,a=e.getCoordinates(),c=0;c<a.length;c++)r.add(a[c]);return r.toArray(new Array(0).fill(null))},computeMinimumSegmentLength:function(e){for(var r=h.MAX_VALUE,a=0;a<e.length-1;a++){var c=e[a].distance(e[a+1]);r>c&&(r=c)}return r},interfaces_:function(){return[]},getClass:function(){return Bt}}),Bt.snap=function(e,r,a){var c=new Array(2).fill(null),g=new Bt(e);c[0]=g.snapTo(r,a);var b=new Bt(r);return c[1]=b.snapTo(c[0],a),c},Bt.computeOverlaySnapTolerance=function(){if(arguments.length===1){var e=arguments[0],r=Bt.computeSizeBasedSnapTolerance(e),a=e.getPrecisionModel();if(a.getType()===Ct.FIXED){var c=1/a.getScale()*2/1.415;c>r&&(r=c)}return r}if(arguments.length===2){var g=arguments[0],b=arguments[1];return Math.min(Bt.computeOverlaySnapTolerance(g),Bt.computeOverlaySnapTolerance(b))}},Bt.computeSizeBasedSnapTolerance=function(e){var r=e.getEnvelopeInternal(),a=Math.min(r.getHeight(),r.getWidth()),c=a*Bt.SNAP_PRECISION_FACTOR;return c},Bt.snapToSelf=function(e,r,a){var c=new Bt(e);return c.snapToSelf(r,a)},Bt.SNAP_PRECISION_FACTOR=1e-9,_(Pe,Bn),o(Pe.prototype,{snapLine:function(e,r){var a=new vr(e,this.snapTolerance);return a.setAllowSnappingToSourceVertices(this.isSelfSnap),a.snapTo(r)},transformCoordinates:function(e,r){var a=e.toCoordinateArray(),c=this.snapLine(a,this.snapPts);return this.factory.getCoordinateSequenceFactory().create(c)},interfaces_:function(){return[]},getClass:function(){return Pe}}),o(J.prototype,{getCommon:function(){return h.longBitsToDouble(this.commonBits)},add:function(e){var r=h.doubleToLongBits(e);if(this.isFirst)return this.commonBits=r,this.commonSignExp=J.signExpBits(this.commonBits),this.isFirst=!1,null;var a=J.signExpBits(r);return a!==this.commonSignExp?(this.commonBits=0,null):(this.commonMantissaBitsCount=J.numCommonMostSigMantissaBits(this.commonBits,r),void(this.commonBits=J.zeroLowerBits(this.commonBits,64-(12+this.commonMantissaBitsCount))))},toString:function(){if(arguments.length===1){var e=arguments[0],r=h.longBitsToDouble(e),a=Long.toBinaryString(e),c="0000000000000000000000000000000000000000000000000000000000000000"+a,g=c.substring(c.length-64),b=g.substring(0,1)+"  "+g.substring(1,12)+"(exp) "+g.substring(12)+" [ "+r+" ]";return b}},interfaces_:function(){return[]},getClass:function(){return J}}),J.getBit=function(e,r){var a=1<<r;return(e&a)!==0?1:0},J.signExpBits=function(e){return e>>52},J.zeroLowerBits=function(e,r){var a=(1<<r)-1,c=~a,g=e&c;return g},J.numCommonMostSigMantissaBits=function(e,r){for(var a=0,c=52;c>=0;c--){if(J.getBit(e,c)!==J.getBit(r,c))return a;a++}return 52},o(ge.prototype,{addCommonBits:function(e){var r=new Ke(this.commonCoord);e.apply(r),e.geometryChanged()},removeCommonBits:function(e){if(this.commonCoord.x===0&&this.commonCoord.y===0)return e;var r=new w(this.commonCoord);r.x=-r.x,r.y=-r.y;var a=new Ke(r);return e.apply(a),e.geometryChanged(),e},getCommonCoordinate:function(){return this.commonCoord},add:function(e){e.apply(this.ccFilter),this.commonCoord=this.ccFilter.getCommonCoordinate()},interfaces_:function(){return[]},getClass:function(){return ge}}),o(Ne.prototype,{filter:function(e){this.commonBitsX.add(e.x),this.commonBitsY.add(e.y)},getCommonCoordinate:function(){return new w(this.commonBitsX.getCommon(),this.commonBitsY.getCommon())},interfaces_:function(){return[Ce]},getClass:function(){return Ne}}),o(Ke.prototype,{filter:function(e,r){var a=e.getOrdinate(r,0)+this.trans.x,c=e.getOrdinate(r,1)+this.trans.y;e.setOrdinate(r,0,a),e.setOrdinate(r,1,c)},isDone:function(){return!1},isGeometryChanged:function(){return!0},interfaces_:function(){return[kt]},getClass:function(){return Ke}}),ge.CommonCoordinateFilter=Ne,ge.Translater=Ke,o(ft.prototype,{next:function(){if(this.atStart)return this.atStart=!1,ft.isAtomic(this.parent)&&this.index++,this.parent;if(this.subcollectionIterator!==null){if(this.subcollectionIterator.hasNext())return this.subcollectionIterator.next();this.subcollectionIterator=null}if(this.index>=this.max)throw new O;var e=this.parent.getGeometryN(this.index++);return e instanceof Re?(this.subcollectionIterator=new ft(e),this.subcollectionIterator.next()):e},remove:function(){throw new UnsupportedOperationException(this.getClass().getName())},hasNext:function(){if(this.atStart)return!0;if(this.subcollectionIterator!==null){if(this.subcollectionIterator.hasNext())return!0;this.subcollectionIterator=null}return!(this.index>=this.max)},interfaces_:function(){return[U]},getClass:function(){return ft}}),ft.isAtomic=function(e){return!(e instanceof Re)},o(yt.prototype,{locateInternal:function(){if(arguments[0]instanceof w&&arguments[1]instanceof _t){var e=arguments[0],r=arguments[1];if(r.isEmpty())return A.EXTERIOR;var a=r.getExteriorRing(),c=this.locateInPolygonRing(e,a);if(c===A.EXTERIOR)return A.EXTERIOR;if(c===A.BOUNDARY)return A.BOUNDARY;for(var g=0;g<r.getNumInteriorRing();g++){var b=r.getInteriorRingN(g),I=this.locateInPolygonRing(e,b);if(I===A.INTERIOR)return A.EXTERIOR;if(I===A.BOUNDARY)return A.BOUNDARY}return A.INTERIOR}if(arguments[0]instanceof w&&arguments[1]instanceof Se){var F=arguments[0],Z=arguments[1];if(!Z.getEnvelopeInternal().intersects(F))return A.EXTERIOR;var ne=Z.getCoordinates();return Z.isClosed()||!F.equals(ne[0])&&!F.equals(ne[ne.length-1])?xe.isOnLine(F,ne)?A.INTERIOR:A.EXTERIOR:A.BOUNDARY}if(arguments[0]instanceof w&&arguments[1]instanceof Ge){var de=arguments[0],me=arguments[1],_e=me.getCoordinate();return _e.equals2D(de)?A.INTERIOR:A.EXTERIOR}},locateInPolygonRing:function(e,r){return r.getEnvelopeInternal().intersects(e)?xe.locatePointInRing(e,r.getCoordinates()):A.EXTERIOR},intersects:function(e,r){return this.locate(e,r)!==A.EXTERIOR},updateLocationInfo:function(e){e===A.INTERIOR&&(this.isIn=!0),e===A.BOUNDARY&&this.numBoundaries++},computeLocation:function(e,r){if(r instanceof Ge&&this.updateLocationInfo(this.locateInternal(e,r)),r instanceof Se)this.updateLocationInfo(this.locateInternal(e,r));else if(r instanceof _t)this.updateLocationInfo(this.locateInternal(e,r));else if(r instanceof Lt)for(var a=r,c=0;c<a.getNumGeometries();c++){var g=a.getGeometryN(c);this.updateLocationInfo(this.locateInternal(e,g))}else if(r instanceof nn)for(var b=r,c=0;c<b.getNumGeometries();c++){var I=b.getGeometryN(c);this.updateLocationInfo(this.locateInternal(e,I))}else if(r instanceof Re)for(var F=new ft(r);F.hasNext();){var Z=F.next();Z!==r&&this.computeLocation(e,Z)}},locate:function(e,r){return r.isEmpty()?A.EXTERIOR:r instanceof Se?this.locateInternal(e,r):r instanceof _t?this.locateInternal(e,r):(this.isIn=!1,this.numBoundaries=0,this.computeLocation(e,r),this.boundaryRule.isInBoundary(this.numBoundaries)?A.BOUNDARY:this.numBoundaries>0||this.isIn?A.INTERIOR:A.EXTERIOR)},interfaces_:function(){return[]},getClass:function(){return yt}}),o(ln.prototype,{interfaces_:function(){return[]},getClass:function(){return ln}}),ln.octant=function(){if(typeof arguments[0]=="number"&&typeof arguments[1]=="number"){var e=arguments[0],r=arguments[1];if(e===0&&r===0)throw new d;var a=Math.abs(e),c=Math.abs(r);return e>=0?r>=0?a>=c?0:1:a>=c?7:6:r>=0?a>=c?3:2:a>=c?4:5}if(arguments[0]instanceof w&&arguments[1]instanceof w){var g=arguments[0],b=arguments[1],I=b.x-g.x,F=b.y-g.y;if(I===0&&F===0)throw new d;return ln.octant(I,F)}},o(Pn.prototype,{getCoordinates:function(){},size:function(){},getCoordinate:function(e){},isClosed:function(){},setData:function(e){},getData:function(){},interfaces_:function(){return[]},getClass:function(){return Pn}}),o(yr.prototype,{getCoordinates:function(){return this.pts},size:function(){return this.pts.length},getCoordinate:function(e){return this.pts[e]},isClosed:function(){return this.pts[0].equals(this.pts[this.pts.length-1])},getSegmentOctant:function(e){return e===this.pts.length-1?-1:ln.octant(this.getCoordinate(e),this.getCoordinate(e+1))},setData:function(e){this.data=e},getData:function(){return this.data},toString:function(){return ot.toLineString(new rn(this.pts))},interfaces_:function(){return[Pn]},getClass:function(){return yr}}),o(qn.prototype,{getBounds:function(){},interfaces_:function(){return[]},getClass:function(){return qn}}),o(jn.prototype,{getItem:function(){return this.item},getBounds:function(){return this.bounds},interfaces_:function(){return[qn,y]},getClass:function(){return jn}}),o(Zn.prototype,{poll:function(){if(this.isEmpty())return null;var e=this.items.get(1);return this.items.set(1,this.items.get(this._size)),this._size-=1,this.reorder(1),e},size:function(){return this._size},reorder:function(e){for(var r=null,a=this.items.get(e);2*e<=this._size&&(r=2*e,r!==this._size&&this.items.get(r+1).compareTo(this.items.get(r))<0&&r++,this.items.get(r).compareTo(a)<0);e=r)this.items.set(e,this.items.get(r));this.items.set(e,a)},clear:function(){this._size=0,this.items.clear()},isEmpty:function(){return this._size===0},add:function(e){this.items.add(null),this._size+=1;var r=this._size;for(this.items.set(0,e);e.compareTo(this.items.get(Math.trunc(r/2)))<0;r/=2)this.items.set(r,this.items.get(Math.trunc(r/2)));this.items.set(r,e)},interfaces_:function(){return[]},getClass:function(){return Zn}}),o(Ds.prototype,{visitItem:function(e){},interfaces_:function(){return[]},getClass:function(){return Ds}}),o(Pt.prototype,{insert:function(e,r){},remove:function(e,r){},query:function(){},interfaces_:function(){return[]},getClass:function(){return Pt}}),o(Sn.prototype,{getLevel:function(){return this.level},size:function(){return this.childBoundables.size()},getChildBoundables:function(){return this.childBoundables},addChildBoundable:function(e){N.isTrue(this.bounds===null),this.childBoundables.add(e)},isEmpty:function(){return this.childBoundables.isEmpty()},getBounds:function(){return this.bounds===null&&(this.bounds=this.computeBounds()),this.bounds},interfaces_:function(){return[qn,y]},getClass:function(){return Sn}}),Sn.serialVersionUID=6493722185909574e3;var Es={reverseOrder:function(){return{compare:function(e,r){return r.compareTo(e)}}},min:function(e){return Es.sort(e),e.get(0)},sort:function(e,r){var a=e.toArray();r?st.sort(a,r):st.sort(a);for(var c=e.iterator(),g=0,b=a.length;b>g;g++)c.next(),c.set(a[g])},singletonList:function(e){var r=new k;return r.add(e),r}};o(jt.prototype,{expandToQueue:function(e,r){var a=jt.isComposite(this.boundable1),c=jt.isComposite(this.boundable2);if(a&&c)return jt.area(this.boundable1)>jt.area(this.boundable2)?(this.expand(this.boundable1,this.boundable2,e,r),null):(this.expand(this.boundable2,this.boundable1,e,r),null);if(a)return this.expand(this.boundable1,this.boundable2,e,r),null;if(c)return this.expand(this.boundable2,this.boundable1,e,r),null;throw new d},isLeaves:function(){return!(jt.isComposite(this.boundable1)||jt.isComposite(this.boundable2))},compareTo:function(e){var r=e;return this._distance<r._distance?-1:this._distance>r._distance?1:0},expand:function(e,r,a,c){for(var g=e.getChildBoundables(),b=g.iterator();b.hasNext();){var I=b.next(),F=new jt(I,r,this.itemDistance);F.getDistance()<c&&a.add(F)}},getBoundable:function(e){return e===0?this.boundable1:this.boundable2},getDistance:function(){return this._distance},distance:function(){return this.isLeaves()?this.itemDistance.distance(this.boundable1,this.boundable2):this.boundable1.getBounds().distance(this.boundable2.getBounds())},interfaces_:function(){return[f]},getClass:function(){return jt}}),jt.area=function(e){return e.getBounds().getArea()},jt.isComposite=function(e){return e instanceof Sn},o(On.prototype,{getNodeCapacity:function(){return this.nodeCapacity},lastNode:function(e){return e.get(e.size()-1)},size:function(){if(arguments.length===0)return this.isEmpty()?0:(this.build(),this.size(this.root));if(arguments.length===1){for(var r=arguments[0],a=0,c=r.getChildBoundables().iterator();c.hasNext();){var g=c.next();g instanceof Sn?a+=this.size(g):g instanceof jn&&(a+=1)}return a}},removeItem:function(e,r){for(var a=null,c=e.getChildBoundables().iterator();c.hasNext();){var g=c.next();g instanceof jn&&g.getItem()===r&&(a=g)}return a!==null?(e.getChildBoundables().remove(a),!0):!1},itemsTree:function(){if(arguments.length===0){this.build();var e=this.itemsTree(this.root);return e===null?new k:e}if(arguments.length===1){for(var r=arguments[0],a=new k,c=r.getChildBoundables().iterator();c.hasNext();){var g=c.next();if(g instanceof Sn){var b=this.itemsTree(g);b!==null&&a.add(b)}else g instanceof jn?a.add(g.getItem()):N.shouldNeverReachHere()}return a.size()<=0?null:a}},insert:function(e,r){N.isTrue(!this.built,"Cannot insert items into an STR packed R-tree after it has been built."),this.itemBoundables.add(new jn(e,r))},boundablesAtLevel:function(){if(arguments.length===1){var e=arguments[0],r=new k;return this.boundablesAtLevel(e,this.root,r),r}if(arguments.length===3){var a=arguments[0],c=arguments[1],g=arguments[2];if(N.isTrue(a>-2),c.getLevel()===a)return g.add(c),null;for(var b=c.getChildBoundables().iterator();b.hasNext();){var I=b.next();I instanceof Sn?this.boundablesAtLevel(a,I,g):(N.isTrue(I instanceof jn),a===-1&&g.add(I))}return null}},query:function(){if(arguments.length===1){var e=arguments[0];this.build();var r=new k;return this.isEmpty()||this.getIntersectsOp().intersects(this.root.getBounds(),e)&&this.query(e,this.root,r),r}if(arguments.length===2){var a=arguments[0],c=arguments[1];if(this.build(),this.isEmpty())return null;this.getIntersectsOp().intersects(this.root.getBounds(),a)&&this.query(a,this.root,c)}else if(arguments.length===3){if(X(arguments[2],Ds)&&arguments[0]instanceof Object&&arguments[1]instanceof Sn)for(var g=arguments[0],b=arguments[1],I=arguments[2],F=b.getChildBoundables(),Z=0;Z<F.size();Z++){var ne=F.get(Z);this.getIntersectsOp().intersects(ne.getBounds(),g)&&(ne instanceof Sn?this.query(g,ne,I):ne instanceof jn?I.visitItem(ne.getItem()):N.shouldNeverReachHere())}else if(X(arguments[2],T)&&arguments[0]instanceof Object&&arguments[1]instanceof Sn)for(var de=arguments[0],me=arguments[1],_e=arguments[2],F=me.getChildBoundables(),Z=0;Z<F.size();Z++){var ne=F.get(Z);this.getIntersectsOp().intersects(ne.getBounds(),de)&&(ne instanceof Sn?this.query(de,ne,_e):ne instanceof jn?_e.add(ne.getItem()):N.shouldNeverReachHere())}}},build:function(){return this.built?null:(this.root=this.itemBoundables.isEmpty()?this.createNode(0):this.createHigherLevels(this.itemBoundables,-1),this.itemBoundables=null,void(this.built=!0))},getRoot:function(){return this.build(),this.root},remove:function(){if(arguments.length===2){var e=arguments[0],r=arguments[1];return this.build(),this.getIntersectsOp().intersects(this.root.getBounds(),e)?this.remove(e,this.root,r):!1}if(arguments.length===3){var a=arguments[0],c=arguments[1],g=arguments[2],b=this.removeItem(c,g);if(b)return!0;for(var I=null,F=c.getChildBoundables().iterator();F.hasNext();){var Z=F.next();if(this.getIntersectsOp().intersects(Z.getBounds(),a)&&Z instanceof Sn&&(b=this.remove(a,Z,g))){I=Z;break}}return I!==null&&I.getChildBoundables().isEmpty()&&c.getChildBoundables().remove(I),b}},createHigherLevels:function(e,r){N.isTrue(!e.isEmpty());var a=this.createParentBoundables(e,r+1);return a.size()===1?a.get(0):this.createHigherLevels(a,r+1)},depth:function(){if(arguments.length===0)return this.isEmpty()?0:(this.build(),this.depth(this.root));if(arguments.length===1){for(var e=arguments[0],r=0,a=e.getChildBoundables().iterator();a.hasNext();){var c=a.next();if(c instanceof Sn){var g=this.depth(c);g>r&&(r=g)}}return r+1}},createParentBoundables:function(e,r){N.isTrue(!e.isEmpty());var a=new k;a.add(this.createNode(r));var c=new k(e);Es.sort(c,this.getComparator());for(var g=c.iterator();g.hasNext();){var b=g.next();this.lastNode(a).getChildBoundables().size()===this.getNodeCapacity()&&a.add(this.createNode(r)),this.lastNode(a).addChildBoundable(b)}return a},isEmpty:function(){return this.built?this.root.isEmpty():this.itemBoundables.isEmpty()},interfaces_:function(){return[y]},getClass:function(){return On}}),On.compareDoubles=function(e,r){return e>r?1:r>e?-1:0},On.IntersectsOp=Jl,On.serialVersionUID=-3886435814360241e3,On.DEFAULT_NODE_CAPACITY=10,o(qo.prototype,{distance:function(e,r){},interfaces_:function(){return[]},getClass:function(){return qo}}),_(pn,On),o(pn.prototype,{createParentBoundablesFromVerticalSlices:function(e,r){N.isTrue(e.length>0);for(var a=new k,c=0;c<e.length;c++)a.addAll(this.createParentBoundablesFromVerticalSlice(e[c],r));return a},createNode:function(e){return new Ni(e)},size:function(){return arguments.length===0?On.prototype.size.call(this):On.prototype.size.apply(this,arguments)},insert:function(){if(arguments.length!==2)return On.prototype.insert.apply(this,arguments);var e=arguments[0],r=arguments[1];return e.isNull()?null:void On.prototype.insert.call(this,e,r)},getIntersectsOp:function(){return pn.intersectsOp},verticalSlices:function(e,r){for(var a=Math.trunc(Math.ceil(e.size()/r)),c=new Array(r).fill(null),g=e.iterator(),b=0;r>b;b++){c[b]=new k;for(var I=0;g.hasNext()&&a>I;){var F=g.next();c[b].add(F),I++}}return c},query:function(){if(arguments.length===1){var e=arguments[0];return On.prototype.query.call(this,e)}if(arguments.length===2){var r=arguments[0],a=arguments[1];On.prototype.query.call(this,r,a)}else if(arguments.length===3){if(X(arguments[2],Ds)&&arguments[0]instanceof Object&&arguments[1]instanceof Sn){var c=arguments[0],g=arguments[1],b=arguments[2];On.prototype.query.call(this,c,g,b)}else if(X(arguments[2],T)&&arguments[0]instanceof Object&&arguments[1]instanceof Sn){var I=arguments[0],F=arguments[1],Z=arguments[2];On.prototype.query.call(this,I,F,Z)}}},getComparator:function(){return pn.yComparator},createParentBoundablesFromVerticalSlice:function(e,r){return On.prototype.createParentBoundables.call(this,e,r)},remove:function(){if(arguments.length===2){var e=arguments[0],r=arguments[1];return On.prototype.remove.call(this,e,r)}return On.prototype.remove.apply(this,arguments)},depth:function(){return arguments.length===0?On.prototype.depth.call(this):On.prototype.depth.apply(this,arguments)},createParentBoundables:function(e,r){N.isTrue(!e.isEmpty());var a=Math.trunc(Math.ceil(e.size()/this.getNodeCapacity())),c=new k(e);Es.sort(c,pn.xComparator);var g=this.verticalSlices(c,Math.trunc(Math.ceil(Math.sqrt(a))));return this.createParentBoundablesFromVerticalSlices(g,r)},nearestNeighbour:function(){if(arguments.length===1){if(X(arguments[0],qo)){var e=arguments[0],r=new jt(this.getRoot(),this.getRoot(),e);return this.nearestNeighbour(r)}if(arguments[0]instanceof jt){var a=arguments[0];return this.nearestNeighbour(a,h.POSITIVE_INFINITY)}}else if(arguments.length===2){if(arguments[0]instanceof pn&&X(arguments[1],qo)){var c=arguments[0],g=arguments[1],r=new jt(this.getRoot(),c.getRoot(),g);return this.nearestNeighbour(r)}if(arguments[0]instanceof jt&&typeof arguments[1]=="number"){var b=arguments[0],I=arguments[1],F=I,Z=null,ne=new Zn;for(ne.add(b);!ne.isEmpty()&&F>0;){var de=ne.poll(),me=de.getDistance();if(me>=F)break;de.isLeaves()?(F=me,Z=de):de.expandToQueue(ne,F)}return[Z.getBoundable(0).getItem(),Z.getBoundable(1).getItem()]}}else if(arguments.length===3){var _e=arguments[0],Ze=arguments[1],gt=arguments[2],St=new jn(_e,Ze),r=new jt(this.getRoot(),St,gt);return this.nearestNeighbour(r)[0]}},interfaces_:function(){return[Pt,y]},getClass:function(){return pn}}),pn.centreX=function(e){return pn.avg(e.getMinX(),e.getMaxX())},pn.avg=function(e,r){return(e+r)/2},pn.centreY=function(e){return pn.avg(e.getMinY(),e.getMaxY())},_(Ni,Sn),o(Ni.prototype,{computeBounds:function(){for(var e=null,r=this.getChildBoundables().iterator();r.hasNext();){var a=r.next();e===null?e=new V(a.getBounds()):e.expandToInclude(a.getBounds())}return e},interfaces_:function(){return[]},getClass:function(){return Ni}}),pn.STRtreeNode=Ni,pn.serialVersionUID=0x39920f7d5f261e0,pn.xComparator={interfaces_:function(){return[p]},compare:function(e,r){return On.compareDoubles(pn.centreX(e.getBounds()),pn.centreX(r.getBounds()))}},pn.yComparator={interfaces_:function(){return[p]},compare:function(e,r){return On.compareDoubles(pn.centreY(e.getBounds()),pn.centreY(r.getBounds()))}},pn.intersectsOp={interfaces_:function(){return[IntersectsOp]},intersects:function(e,r){return e.intersects(r)}},pn.DEFAULT_NODE_CAPACITY=10,o(hr.prototype,{interfaces_:function(){return[]},getClass:function(){return hr}}),hr.relativeSign=function(e,r){return r>e?-1:e>r?1:0},hr.compare=function(e,r,a){if(r.equals2D(a))return 0;var c=hr.relativeSign(r.x,a.x),g=hr.relativeSign(r.y,a.y);switch(e){case 0:return hr.compareValue(c,g);case 1:return hr.compareValue(g,c);case 2:return hr.compareValue(g,-c);case 3:return hr.compareValue(-c,g);case 4:return hr.compareValue(-c,-g);case 5:return hr.compareValue(-g,-c);case 6:return hr.compareValue(-g,c);case 7:return hr.compareValue(c,-g)}return N.shouldNeverReachHere("invalid octant value"),0},hr.compareValue=function(e,r){return 0>e?-1:e>0?1:0>r?-1:r>0?1:0},o(uo.prototype,{getCoordinate:function(){return this.coord},print:function(e){e.print(this.coord),e.print(" seg # = "+this.segmentIndex)},compareTo:function(e){var r=e;return this.segmentIndex<r.segmentIndex?-1:this.segmentIndex>r.segmentIndex?1:this.coord.equals2D(r.coord)?0:hr.compare(this.segmentOctant,this.coord,r.coord)},isEndPoint:function(e){return this.segmentIndex!==0||this._isInterior?this.segmentIndex===e:!0},isInterior:function(){return this._isInterior},interfaces_:function(){return[f]},getClass:function(){return uo}}),o(rr.prototype,{getSplitCoordinates:function(){var e=new H;this.addEndpoints();for(var r=this.iterator(),a=r.next();r.hasNext();){var c=r.next();this.addEdgeCoordinates(a,c,e),a=c}return e.toCoordinateArray()},addCollapsedNodes:function(){var e=new k;this.findCollapsesFromInsertedNodes(e),this.findCollapsesFromExistingVertices(e);for(var r=e.iterator();r.hasNext();){var a=r.next().intValue();this.add(this.edge.getCoordinate(a),a)}},print:function(e){e.println("Intersections:");for(var r=this.iterator();r.hasNext();){var a=r.next();a.print(e)}},findCollapsesFromExistingVertices:function(e){for(var r=0;r<this.edge.size()-2;r++){var a=this.edge.getCoordinate(r),c=(this.edge.getCoordinate(r+1),this.edge.getCoordinate(r+2));a.equals2D(c)&&e.add(new G(r+1))}},addEdgeCoordinates:function(e,r,a){r.segmentIndex-e.segmentIndex+2;var c=this.edge.getCoordinate(r.segmentIndex),g=r.isInterior()||!r.coord.equals2D(c);a.add(new w(e.coord),!1);for(var b=e.segmentIndex+1;b<=r.segmentIndex;b++)a.add(this.edge.getCoordinate(b));g&&a.add(new w(r.coord))},iterator:function(){return this.nodeMap.values().iterator()},addSplitEdges:function(e){this.addEndpoints(),this.addCollapsedNodes();for(var r=this.iterator(),a=r.next();r.hasNext();){var c=r.next(),g=this.createSplitEdge(a,c);e.add(g),a=c}},findCollapseIndex:function(e,r,a){if(!e.coord.equals2D(r.coord))return!1;var c=r.segmentIndex-e.segmentIndex;return r.isInterior()||c--,c===1?(a[0]=e.segmentIndex+1,!0):!1},findCollapsesFromInsertedNodes:function(e){for(var r=new Array(1).fill(null),a=this.iterator(),c=a.next();a.hasNext();){var g=a.next(),b=this.findCollapseIndex(c,g,r);b&&e.add(new G(r[0])),c=g}},getEdge:function(){return this.edge},addEndpoints:function(){var e=this.edge.size()-1;this.add(this.edge.getCoordinate(0),0),this.add(this.edge.getCoordinate(e),e)},createSplitEdge:function(e,r){var a=r.segmentIndex-e.segmentIndex+2,c=this.edge.getCoordinate(r.segmentIndex),g=r.isInterior()||!r.coord.equals2D(c);g||a--;var b=new Array(a).fill(null),I=0;b[I++]=new w(e.coord);for(var F=e.segmentIndex+1;F<=r.segmentIndex;F++)b[I++]=this.edge.getCoordinate(F);return g&&(b[I]=new w(r.coord)),new ci(b,this.edge.getData())},add:function(e,r){var a=new uo(this.edge,e,r,this.edge.getSegmentOctant(r)),c=this.nodeMap.get(a);return c!==null?(N.isTrue(c.coord.equals2D(e),"Found equal nodes with different coordinates"),c):(this.nodeMap.put(a,a),a)},checkSplitEdgesCorrectness:function(e){var r=this.edge.getCoordinates(),a=e.get(0),c=a.getCoordinate(0);if(!c.equals2D(r[0]))throw new x("bad split edge start point at "+c);var g=e.get(e.size()-1),b=g.getCoordinates(),I=b[b.length-1];if(!I.equals2D(r[r.length-1]))throw new x("bad split edge end point at "+I)},interfaces_:function(){return[]},getClass:function(){return rr}}),o(Ms.prototype,{next:function(){return this.currNode===null?(this.currNode=this.nextNode,this.currSegIndex=this.currNode.segmentIndex,this.readNextNode(),this.currNode):this.nextNode===null?null:this.nextNode.segmentIndex===this.currNode.segmentIndex?(this.currNode=this.nextNode,this.currSegIndex=this.currNode.segmentIndex,this.readNextNode(),this.currNode):(this.nextNode.segmentIndex>this.currNode.segmentIndex,null)},remove:function(){throw new UnsupportedOperationException(this.getClass().getName())},hasNext:function(){return this.nextNode!==null},readNextNode:function(){this.nodeIt.hasNext()?this.nextNode=this.nodeIt.next():this.nextNode=null},interfaces_:function(){return[U]},getClass:function(){return Ms}}),o(qu.prototype,{addIntersection:function(e,r){},interfaces_:function(){return[Pn]},getClass:function(){return qu}}),o(ci.prototype,{getCoordinates:function(){return this.pts},size:function(){return this.pts.length},getCoordinate:function(e){return this.pts[e]},isClosed:function(){return this.pts[0].equals(this.pts[this.pts.length-1])},getSegmentOctant:function(e){return e===this.pts.length-1?-1:this.safeOctant(this.getCoordinate(e),this.getCoordinate(e+1))},setData:function(e){this.data=e},safeOctant:function(e,r){return e.equals2D(r)?0:ln.octant(e,r)},getData:function(){return this.data},addIntersection:function(){if(arguments.length===2){var e=arguments[0],r=arguments[1];this.addIntersectionNode(e,r)}else if(arguments.length===4){var a=arguments[0],c=arguments[1],g=arguments[3],b=new w(a.getIntersection(g));this.addIntersection(b,c)}},toString:function(){return ot.toLineString(new rn(this.pts))},getNodeList:function(){return this.nodeList},addIntersectionNode:function(e,r){var a=r,c=a+1;if(c<this.pts.length){var g=this.pts[c];e.equals2D(g)&&(a=c)}var b=this.nodeList.add(e,a);return b},addIntersections:function(e,r,a){for(var c=0;c<e.getIntersectionNum();c++)this.addIntersection(e,r,a,c)},interfaces_:function(){return[qu]},getClass:function(){return ci}}),ci.getNodedSubstrings=function(){if(arguments.length===1){var e=arguments[0],r=new k;return ci.getNodedSubstrings(e,r),r}if(arguments.length===2)for(var a=arguments[0],c=arguments[1],g=a.iterator();g.hasNext();){var b=g.next();b.getNodeList().addSplitEdges(c)}},o(Aa.prototype,{overlap:function(){if(arguments.length!==2){if(arguments.length===4){var e=arguments[0],r=arguments[1],a=arguments[2],c=arguments[3];e.getLineSegment(r,this.overlapSeg1),a.getLineSegment(c,this.overlapSeg2),this.overlap(this.overlapSeg1,this.overlapSeg2)}}},interfaces_:function(){return[]},getClass:function(){return Aa}}),o(zu.prototype,{getLineSegment:function(e,r){r.p0=this.pts[e],r.p1=this.pts[e+1]},computeSelect:function(e,r,a,c){var g=this.pts[r],b=this.pts[a];if(c.tempEnv1.init(g,b),a-r===1)return c.select(this,r),null;if(!e.intersects(c.tempEnv1))return null;var I=Math.trunc((r+a)/2);I>r&&this.computeSelect(e,r,I,c),a>I&&this.computeSelect(e,I,a,c)},getCoordinates:function(){for(var e=new Array(this.end-this.start+1).fill(null),r=0,a=this.start;a<=this.end;a++)e[r++]=this.pts[a];return e},computeOverlaps:function(e,r){this.computeOverlapsInternal(this.start,this.end,e,e.start,e.end,r)},setId:function(e){this.id=e},select:function(e,r){this.computeSelect(e,this.start,this.end,r)},getEnvelope:function(){if(this.env===null){var e=this.pts[this.start],r=this.pts[this.end];this.env=new V(e,r)}return this.env},getEndIndex:function(){return this.end},getStartIndex:function(){return this.start},getContext:function(){return this.context},getId:function(){return this.id},computeOverlapsInternal:function(e,r,a,c,g,b){var I=this.pts[e],F=this.pts[r],Z=a.pts[c],ne=a.pts[g];if(r-e===1&&g-c===1)return b.overlap(this,e,a,c),null;if(b.tempEnv1.init(I,F),b.tempEnv2.init(Z,ne),!b.tempEnv1.intersects(b.tempEnv2))return null;var de=Math.trunc((e+r)/2),me=Math.trunc((c+g)/2);de>e&&(me>c&&this.computeOverlapsInternal(e,de,a,c,me,b),g>me&&this.computeOverlapsInternal(e,de,a,me,g,b)),r>de&&(me>c&&this.computeOverlapsInternal(de,r,a,c,me,b),g>me&&this.computeOverlapsInternal(de,r,a,me,g,b))},interfaces_:function(){return[]},getClass:function(){return zu}}),o(qt.prototype,{interfaces_:function(){return[]},getClass:function(){return qt}}),qt.isNorthern=function(e){return e===qt.NE||e===qt.NW},qt.isOpposite=function(e,r){if(e===r)return!1;var a=(e-r+4)%4;return a===2},qt.commonHalfPlane=function(e,r){if(e===r)return e;var a=(e-r+4)%4;if(a===2)return-1;var c=r>e?e:r,g=e>r?e:r;return c===0&&g===3?3:c},qt.isInHalfPlane=function(e,r){return r===qt.SE?e===qt.SE||e===qt.SW:e===r||e===r+1},qt.quadrant=function(){if(typeof arguments[0]=="number"&&typeof arguments[1]=="number"){var e=arguments[0],r=arguments[1];if(e===0&&r===0)throw new d;return e>=0?r>=0?qt.NE:qt.SE:r>=0?qt.NW:qt.SW}if(arguments[0]instanceof w&&arguments[1]instanceof w){var a=arguments[0],c=arguments[1];if(c.x===a.x&&c.y===a.y)throw new d;return c.x>=a.x?c.y>=a.y?qt.NE:qt.SE:c.y>=a.y?qt.NW:qt.SW}},qt.NE=0,qt.NW=1,qt.SW=2,qt.SE=3,o(di.prototype,{interfaces_:function(){return[]},getClass:function(){return di}}),di.getChainStartIndices=function(e){var r=0,a=new k;a.add(new G(r));do{var c=di.findChainEnd(e,r);a.add(new G(c)),r=c}while(r<e.length-1);var g=di.toIntArray(a);return g},di.findChainEnd=function(e,r){for(var a=r;a<e.length-1&&e[a].equals2D(e[a+1]);)a++;if(a>=e.length-1)return e.length-1;for(var c=qt.quadrant(e[a],e[a+1]),g=r+1;g<e.length;){if(!e[g-1].equals2D(e[g])){var b=qt.quadrant(e[g-1],e[g]);if(b!==c)break}g++}return g-1},di.getChains=function(){if(arguments.length===1){var e=arguments[0];return di.getChains(e,null)}if(arguments.length===2){for(var r=arguments[0],a=arguments[1],c=new k,g=di.getChainStartIndices(r),b=0;b<g.length-1;b++){var I=new zu(r,g[b],g[b+1],a);c.add(I)}return c}},di.toIntArray=function(e){for(var r=new Array(e.size()).fill(null),a=0;a<r.length;a++)r[a]=e.get(a).intValue();return r},o(zo.prototype,{computeNodes:function(e){},getNodedSubstrings:function(){},interfaces_:function(){return[]},getClass:function(){return zo}}),o(Yt.prototype,{setSegmentIntersector:function(e){this.segInt=e},interfaces_:function(){return[zo]},getClass:function(){return Yt}}),_(ks,Yt),o(ks.prototype,{getMonotoneChains:function(){return this.monoChains},getNodedSubstrings:function(){return ci.getNodedSubstrings(this.nodedSegStrings)},getIndex:function(){return this.index},add:function(e){for(var r=di.getChains(e.getCoordinates(),e),a=r.iterator();a.hasNext();){var c=a.next();c.setId(this.idCounter++),this.index.insert(c.getEnvelope(),c),this.monoChains.add(c)}},computeNodes:function(e){this.nodedSegStrings=e;for(var r=e.iterator();r.hasNext();)this.add(r.next());this.intersectChains()},intersectChains:function(){for(var e=new jr(this.segInt),r=this.monoChains.iterator();r.hasNext();)for(var a=r.next(),c=this.index.query(a.getEnvelope()),g=c.iterator();g.hasNext();){var b=g.next();if(b.getId()>a.getId()&&(a.computeOverlaps(b,e),this.nOverlaps++),this.segInt.isDone())return null}},interfaces_:function(){return[]},getClass:function(){return ks}}),_(jr,Aa),o(jr.prototype,{overlap:function(){if(arguments.length!==4)return Aa.prototype.overlap.apply(this,arguments);var e=arguments[0],r=arguments[1],a=arguments[2],c=arguments[3],g=e.getContext(),b=a.getContext();this.si.processIntersections(g,r,b,c)},interfaces_:function(){return[]},getClass:function(){return jr}}),ks.SegmentOverlapAction=jr,_(ir,x),o(ir.prototype,{getCoordinate:function(){return this.pt},interfaces_:function(){return[]},getClass:function(){return ir}}),ir.msgWithCoord=function(e,r){return r!==null?e+" [ "+r+" ]":e},o(Uo.prototype,{processIntersections:function(e,r,a,c){},isDone:function(){},interfaces_:function(){return[]},getClass:function(){return Uo}}),o(us.prototype,{getInteriorIntersection:function(){return this.interiorIntersection},setCheckEndSegmentsOnly:function(e){this.isCheckEndSegmentsOnly=e},getIntersectionSegments:function(){return this.intSegments},count:function(){return this.intersectionCount},getIntersections:function(){return this.intersections},setFindAllIntersections:function(e){this.findAllIntersections=e},setKeepIntersections:function(e){this.keepIntersections=e},processIntersections:function(e,r,a,c){if(!this.findAllIntersections&&this.hasIntersection()||e===a&&r===c)return null;if(this.isCheckEndSegmentsOnly){var g=this.isEndSegment(e,r)||this.isEndSegment(a,c);if(!g)return null}var b=e.getCoordinates()[r],I=e.getCoordinates()[r+1],F=a.getCoordinates()[c],Z=a.getCoordinates()[c+1];this.li.computeIntersection(b,I,F,Z),this.li.hasIntersection()&&this.li.isInteriorIntersection()&&(this.intSegments=new Array(4).fill(null),this.intSegments[0]=b,this.intSegments[1]=I,this.intSegments[2]=F,this.intSegments[3]=Z,this.interiorIntersection=this.li.getIntersection(0),this.keepIntersections&&this.intersections.add(this.interiorIntersection),this.intersectionCount++)},isEndSegment:function(e,r){return r===0?!0:r>=e.size()-2},hasIntersection:function(){return this.interiorIntersection!==null},isDone:function(){return this.findAllIntersections?!1:this.interiorIntersection!==null},interfaces_:function(){return[Uo]},getClass:function(){return us}}),us.createAllIntersectionsFinder=function(e){var r=new us(e);return r.setFindAllIntersections(!0),r},us.createAnyIntersectionFinder=function(e){return new us(e)},us.createIntersectionCounter=function(e){var r=new us(e);return r.setFindAllIntersections(!0),r.setKeepIntersections(!1),r},o(lo.prototype,{execute:function(){return this.segInt!==null?null:void this.checkInteriorIntersections()},getIntersections:function(){return this.segInt.getIntersections()},isValid:function(){return this.execute(),this._isValid},setFindAllIntersections:function(e){this.findAllIntersections=e},checkInteriorIntersections:function(){this._isValid=!0,this.segInt=new us(this.li),this.segInt.setFindAllIntersections(this.findAllIntersections);var e=new ks;return e.setSegmentIntersector(this.segInt),e.computeNodes(this.segStrings),this.segInt.hasIntersection()?(this._isValid=!1,null):void 0},checkValid:function(){if(this.execute(),!this._isValid)throw new ir(this.getErrorMessage(),this.segInt.getInteriorIntersection())},getErrorMessage:function(){if(this._isValid)return"no intersections found";var e=this.segInt.getIntersectionSegments();return"found non-noded intersection between "+ot.toLineString(e[0],e[1])+" and "+ot.toLineString(e[2],e[3])},interfaces_:function(){return[]},getClass:function(){return lo}}),lo.computeIntersections=function(e){var r=new lo(e);return r.setFindAllIntersections(!0),r.isValid(),r.getIntersections()},o(co.prototype,{checkValid:function(){this.nv.checkValid()},interfaces_:function(){return[]},getClass:function(){return co}}),co.toSegmentStrings=function(e){for(var r=new k,a=e.iterator();a.hasNext();){var c=a.next();r.add(new yr(c.getCoordinates(),c))}return r},co.checkValid=function(e){var r=new co(e);r.checkValid()},o(ho.prototype,{map:function(e){for(var r=new k,a=0;a<e.getNumGeometries();a++){var c=this.mapOp.map(e.getGeometryN(a));c.isEmpty()||r.add(c)}return e.getFactory().createGeometryCollection(dt.toGeometryArray(r))},interfaces_:function(){return[]},getClass:function(){return ho}}),ho.map=function(e,r){var a=new ho(r);return a.map(e)},o(Oe.prototype,{interfaces_:function(){return[]},getClass:function(){return Oe}}),Oe.opposite=function(e){return e===Oe.LEFT?Oe.RIGHT:e===Oe.RIGHT?Oe.LEFT:e},Oe.ON=0,Oe.LEFT=1,Oe.RIGHT=2,o(Fr.prototype,{setAllLocations:function(e){for(var r=0;r<this.location.length;r++)this.location[r]=e},isNull:function(){for(var e=0;e<this.location.length;e++)if(this.location[e]!==A.NONE)return!1;return!0},setAllLocationsIfNull:function(e){for(var r=0;r<this.location.length;r++)this.location[r]===A.NONE&&(this.location[r]=e)},isLine:function(){return this.location.length===1},merge:function(e){if(e.location.length>this.location.length){var r=new Array(3).fill(null);r[Oe.ON]=this.location[Oe.ON],r[Oe.LEFT]=A.NONE,r[Oe.RIGHT]=A.NONE,this.location=r}for(var a=0;a<this.location.length;a++)this.location[a]===A.NONE&&a<e.location.length&&(this.location[a]=e.location[a])},getLocations:function(){return this.location},flip:function(){if(this.location.length<=1)return null;var e=this.location[Oe.LEFT];this.location[Oe.LEFT]=this.location[Oe.RIGHT],this.location[Oe.RIGHT]=e},toString:function(){var e=new ue;return this.location.length>1&&e.append(A.toLocationSymbol(this.location[Oe.LEFT])),e.append(A.toLocationSymbol(this.location[Oe.ON])),this.location.length>1&&e.append(A.toLocationSymbol(this.location[Oe.RIGHT])),e.toString()},setLocations:function(e,r,a){this.location[Oe.ON]=e,this.location[Oe.LEFT]=r,this.location[Oe.RIGHT]=a},get:function(e){return e<this.location.length?this.location[e]:A.NONE},isArea:function(){return this.location.length>1},isAnyNull:function(){for(var e=0;e<this.location.length;e++)if(this.location[e]===A.NONE)return!0;return!1},setLocation:function(){if(arguments.length===1){var e=arguments[0];this.setLocation(Oe.ON,e)}else if(arguments.length===2){var r=arguments[0],a=arguments[1];this.location[r]=a}},init:function(e){this.location=new Array(e).fill(null),this.setAllLocations(A.NONE)},isEqualOnSide:function(e,r){return this.location[r]===e.location[r]},allPositionsEqual:function(e){for(var r=0;r<this.location.length;r++)if(this.location[r]!==e)return!1;return!0},interfaces_:function(){return[]},getClass:function(){return Fr}}),o(En.prototype,{getGeometryCount:function(){var e=0;return this.elt[0].isNull()||e++,this.elt[1].isNull()||e++,e},setAllLocations:function(e,r){this.elt[e].setAllLocations(r)},isNull:function(e){return this.elt[e].isNull()},setAllLocationsIfNull:function(){if(arguments.length===1){var e=arguments[0];this.setAllLocationsIfNull(0,e),this.setAllLocationsIfNull(1,e)}else if(arguments.length===2){var r=arguments[0],a=arguments[1];this.elt[r].setAllLocationsIfNull(a)}},isLine:function(e){return this.elt[e].isLine()},merge:function(e){for(var r=0;2>r;r++)this.elt[r]===null&&e.elt[r]!==null?this.elt[r]=new Fr(e.elt[r]):this.elt[r].merge(e.elt[r])},flip:function(){this.elt[0].flip(),this.elt[1].flip()},getLocation:function(){if(arguments.length===1){var e=arguments[0];return this.elt[e].get(Oe.ON)}if(arguments.length===2){var r=arguments[0],a=arguments[1];return this.elt[r].get(a)}},toString:function(){var e=new ue;return this.elt[0]!==null&&(e.append("A:"),e.append(this.elt[0].toString())),this.elt[1]!==null&&(e.append(" B:"),e.append(this.elt[1].toString())),e.toString()},isArea:function(){if(arguments.length===0)return this.elt[0].isArea()||this.elt[1].isArea();if(arguments.length===1){var e=arguments[0];return this.elt[e].isArea()}},isAnyNull:function(e){return this.elt[e].isAnyNull()},setLocation:function(){if(arguments.length===2){var e=arguments[0],r=arguments[1];this.elt[e].setLocation(Oe.ON,r)}else if(arguments.length===3){var a=arguments[0],c=arguments[1],g=arguments[2];this.elt[a].setLocation(c,g)}},isEqualOnSide:function(e,r){return this.elt[0].isEqualOnSide(e.elt[0],r)&&this.elt[1].isEqualOnSide(e.elt[1],r)},allPositionsEqual:function(e,r){return this.elt[e].allPositionsEqual(r)},toLine:function(e){this.elt[e].isArea()&&(this.elt[e]=new Fr(this.elt[e].location[0]))},interfaces_:function(){return[]},getClass:function(){return En}}),En.toLineLabel=function(e){for(var r=new En(A.NONE),a=0;2>a;a++)r.setLocation(a,e.getLocation(a));return r},o(Vo.prototype,{computeRing:function(){if(this.ring!==null)return null;for(var e=new Array(this.pts.size()).fill(null),r=0;r<this.pts.size();r++)e[r]=this.pts.get(r);this.ring=this.geometryFactory.createLinearRing(e),this._isHole=xe.isCCW(this.ring.getCoordinates())},isIsolated:function(){return this.label.getGeometryCount()===1},computePoints:function(e){this.startDe=e;var r=e,a=!0;do{if(r===null)throw new ir("Found null DirectedEdge");if(r.getEdgeRing()===this)throw new ir("Directed Edge visited twice during ring-building at "+r.getCoordinate());this.edges.add(r);var c=r.getLabel();N.isTrue(c.isArea()),this.mergeLabel(c),this.addPoints(r.getEdge(),r.isForward(),a),a=!1,this.setEdgeRing(r,this),r=this.getNext(r)}while(r!==this.startDe)},getLinearRing:function(){return this.ring},getCoordinate:function(e){return this.pts.get(e)},computeMaxNodeDegree:function(){this.maxNodeDegree=0;var e=this.startDe;do{var r=e.getNode(),a=r.getEdges().getOutgoingDegree(this);a>this.maxNodeDegree&&(this.maxNodeDegree=a),e=this.getNext(e)}while(e!==this.startDe);this.maxNodeDegree*=2},addPoints:function(e,r,a){var c=e.getCoordinates();if(r){var g=1;a&&(g=0);for(var b=g;b<c.length;b++)this.pts.add(c[b])}else{var g=c.length-2;a&&(g=c.length-1);for(var b=g;b>=0;b--)this.pts.add(c[b])}},isHole:function(){return this._isHole},setInResult:function(){var e=this.startDe;do e.getEdge().setInResult(!0),e=e.getNext();while(e!==this.startDe)},containsPoint:function(e){var r=this.getLinearRing(),a=r.getEnvelopeInternal();if(!a.contains(e)||!xe.isPointInRing(e,r.getCoordinates()))return!1;for(var c=this.holes.iterator();c.hasNext();){var g=c.next();if(g.containsPoint(e))return!1}return!0},addHole:function(e){this.holes.add(e)},isShell:function(){return this.shell===null},getLabel:function(){return this.label},getEdges:function(){return this.edges},getMaxNodeDegree:function(){return this.maxNodeDegree<0&&this.computeMaxNodeDegree(),this.maxNodeDegree},getShell:function(){return this.shell},mergeLabel:function(){if(arguments.length===1){var e=arguments[0];this.mergeLabel(e,0),this.mergeLabel(e,1)}else if(arguments.length===2){var r=arguments[0],a=arguments[1],c=r.getLocation(a,Oe.RIGHT);if(c===A.NONE)return null;if(this.label.getLocation(a)===A.NONE)return this.label.setLocation(a,c),null}},setShell:function(e){this.shell=e,e!==null&&e.addHole(this)},toPolygon:function(e){for(var r=new Array(this.holes.size()).fill(null),a=0;a<this.holes.size();a++)r[a]=this.holes.get(a).getLinearRing();var c=e.createPolygon(this.getLinearRing(),r);return c},interfaces_:function(){return[]},getClass:function(){return Vo}}),_(ri,Vo),o(ri.prototype,{setEdgeRing:function(e,r){e.setMinEdgeRing(r)},getNext:function(e){return e.getNextMin()},interfaces_:function(){return[]},getClass:function(){return ri}}),_(Pa,Vo),o(Pa.prototype,{buildMinimalRings:function(){var e=new k,r=this.startDe;do{if(r.getMinEdgeRing()===null){var a=new ri(r,this.geometryFactory);e.add(a)}r=r.getNext()}while(r!==this.startDe);return e},setEdgeRing:function(e,r){e.setEdgeRing(r)},linkDirectedEdgesForMinimalEdgeRings:function(){var e=this.startDe;do{var r=e.getNode();r.getEdges().linkMinimalDirectedEdges(this),e=e.getNext()}while(e!==this.startDe)},getNext:function(e){return e.getNext()},interfaces_:function(){return[]},getClass:function(){return Pa}}),o(ls.prototype,{setVisited:function(e){this._isVisited=e},setInResult:function(e){this._isInResult=e},isCovered:function(){return this._isCovered},isCoveredSet:function(){return this._isCoveredSet},setLabel:function(e){this.label=e},getLabel:function(){return this.label},setCovered:function(e){this._isCovered=e,this._isCoveredSet=!0},updateIM:function(e){N.isTrue(this.label.getGeometryCount()>=2,"found partial label"),this.computeIM(e)},isInResult:function(){return this._isInResult},isVisited:function(){return this._isVisited},interfaces_:function(){return[]},getClass:function(){return ls}}),_(br,ls),o(br.prototype,{isIncidentEdgeInResult:function(){for(var e=this.getEdges().getEdges().iterator();e.hasNext();){var r=e.next();if(r.getEdge().isInResult())return!0}return!1},isIsolated:function(){return this.label.getGeometryCount()===1},getCoordinate:function(){return this.coord},print:function(e){e.println("node "+this.coord+" lbl: "+this.label)},computeIM:function(e){},computeMergedLocation:function(e,r){var a=A.NONE;if(a=this.label.getLocation(r),!e.isNull(r)){var c=e.getLocation(r);a!==A.BOUNDARY&&(a=c)}return a},setLabel:function(){if(arguments.length!==2)return ls.prototype.setLabel.apply(this,arguments);var e=arguments[0],r=arguments[1];this.label===null?this.label=new En(e,r):this.label.setLocation(e,r)},getEdges:function(){return this.edges},mergeLabel:function(){if(arguments[0]instanceof br){var e=arguments[0];this.mergeLabel(e.label)}else if(arguments[0]instanceof En)for(var r=arguments[0],a=0;2>a;a++){var c=this.computeMergedLocation(r,a),g=this.label.getLocation(a);g===A.NONE&&this.label.setLocation(a,c)}},add:function(e){this.edges.insert(e),e.setNode(this)},setLabelBoundary:function(e){if(this.label===null)return null;var r=A.NONE;this.label!==null&&(r=this.label.getLocation(e));var a=null;switch(r){case A.BOUNDARY:a=A.INTERIOR;break;case A.INTERIOR:a=A.BOUNDARY;break;default:a=A.BOUNDARY}this.label.setLocation(e,a)},interfaces_:function(){return[]},getClass:function(){return br}}),o(fo.prototype,{find:function(e){return this.nodeMap.get(e)},addNode:function(){if(arguments[0]instanceof w){var e=arguments[0],r=this.nodeMap.get(e);return r===null&&(r=this.nodeFact.createNode(e),this.nodeMap.put(e,r)),r}if(arguments[0]instanceof br){var a=arguments[0],r=this.nodeMap.get(a.getCoordinate());return r===null?(this.nodeMap.put(a.getCoordinate(),a),a):(r.mergeLabel(a),r)}},print:function(e){for(var r=this.iterator();r.hasNext();){var a=r.next();a.print(e)}},iterator:function(){return this.nodeMap.values().iterator()},values:function(){return this.nodeMap.values()},getBoundaryNodes:function(e){for(var r=new k,a=this.iterator();a.hasNext();){var c=a.next();c.getLabel().getLocation(e)===A.BOUNDARY&&r.add(c)}return r},add:function(e){var r=e.getCoordinate(),a=this.addNode(r);a.add(e)},interfaces_:function(){return[]},getClass:function(){return fo}}),o(hi.prototype,{compareDirection:function(e){return this.dx===e.dx&&this.dy===e.dy?0:this.quadrant>e.quadrant?1:this.quadrant<e.quadrant?-1:xe.computeOrientation(e.p0,e.p1,this.p1)},getDy:function(){return this.dy},getCoordinate:function(){return this.p0},setNode:function(e){this.node=e},print:function(e){var r=Math.atan2(this.dy,this.dx),a=this.getClass().getName(),c=a.lastIndexOf("."),g=a.substring(c+1);e.print("  "+g+": "+this.p0+" - "+this.p1+" "+this.quadrant+":"+r+"   "+this.label)},compareTo:function(e){var r=e;return this.compareDirection(r)},getDirectedCoordinate:function(){return this.p1},getDx:function(){return this.dx},getLabel:function(){return this.label},getEdge:function(){return this.edge},getQuadrant:function(){return this.quadrant},getNode:function(){return this.node},toString:function(){var e=Math.atan2(this.dy,this.dx),r=this.getClass().getName(),a=r.lastIndexOf("."),c=r.substring(a+1);return"  "+c+": "+this.p0+" - "+this.p1+" "+this.quadrant+":"+e+"   "+this.label},computeLabel:function(e){},init:function(e,r){this.p0=e,this.p1=r,this.dx=r.x-e.x,this.dy=r.y-e.y,this.quadrant=qt.quadrant(this.dx,this.dy),N.isTrue(!(this.dx===0&&this.dy===0),"EdgeEnd with identical endpoints found")},interfaces_:function(){return[f]},getClass:function(){return hi}}),_(cs,hi),o(cs.prototype,{getNextMin:function(){return this.nextMin},getDepth:function(e){return this.depth[e]},setVisited:function(e){this._isVisited=e},computeDirectedLabel:function(){this.label=new En(this.edge.getLabel()),this._isForward||this.label.flip()},getNext:function(){return this.next},setDepth:function(e,r){if(this.depth[e]!==-999&&this.depth[e]!==r)throw new ir("assigned depths do not match",this.getCoordinate());this.depth[e]=r},isInteriorAreaEdge:function(){for(var r=!0,a=0;2>a;a++)this.label.isArea(a)&&this.label.getLocation(a,Oe.LEFT)===A.INTERIOR&&this.label.getLocation(a,Oe.RIGHT)===A.INTERIOR||(r=!1);return r},setNextMin:function(e){this.nextMin=e},print:function(e){hi.prototype.print.call(this,e),e.print(" "+this.depth[Oe.LEFT]+"/"+this.depth[Oe.RIGHT]),e.print(" ("+this.getDepthDelta()+")"),this._isInResult&&e.print(" inResult")},setMinEdgeRing:function(e){this.minEdgeRing=e},isLineEdge:function(){var e=this.label.isLine(0)||this.label.isLine(1),r=!this.label.isArea(0)||this.label.allPositionsEqual(0,A.EXTERIOR),a=!this.label.isArea(1)||this.label.allPositionsEqual(1,A.EXTERIOR);return e&&r&&a},setEdgeRing:function(e){this.edgeRing=e},getMinEdgeRing:function(){return this.minEdgeRing},getDepthDelta:function(){var e=this.edge.getDepthDelta();return this._isForward||(e=-e),e},setInResult:function(e){this._isInResult=e},getSym:function(){return this.sym},isForward:function(){return this._isForward},getEdge:function(){return this.edge},printEdge:function(e){this.print(e),e.print(" "),this._isForward?this.edge.print(e):this.edge.printReverse(e)},setSym:function(e){this.sym=e},setVisitedEdge:function(e){this.setVisited(e),this.sym.setVisited(e)},setEdgeDepths:function(e,r){var a=this.getEdge().getDepthDelta();this._isForward||(a=-a);var c=1;e===Oe.LEFT&&(c=-1);var g=Oe.opposite(e),b=a*c,I=r+b;this.setDepth(e,r),this.setDepth(g,I)},getEdgeRing:function(){return this.edgeRing},isInResult:function(){return this._isInResult},setNext:function(e){this.next=e},isVisited:function(){return this._isVisited},interfaces_:function(){return[]},getClass:function(){return cs}}),cs.depthFactor=function(e,r){return e===A.EXTERIOR&&r===A.INTERIOR?1:e===A.INTERIOR&&r===A.EXTERIOR?-1:0},o(go.prototype,{createNode:function(e){return new br(e,null)},interfaces_:function(){return[]},getClass:function(){return go}}),o(fi.prototype,{printEdges:function(e){e.println("Edges:");for(var r=0;r<this.edges.size();r++){e.println("edge "+r+":");var a=this.edges.get(r);a.print(e),a.eiList.print(e)}},find:function(e){return this.nodes.find(e)},addNode:function(){if(arguments[0]instanceof br){var e=arguments[0];return this.nodes.addNode(e)}if(arguments[0]instanceof w){var r=arguments[0];return this.nodes.addNode(r)}},getNodeIterator:function(){return this.nodes.iterator()},linkResultDirectedEdges:function(){for(var e=this.nodes.iterator();e.hasNext();){var r=e.next();r.getEdges().linkResultDirectedEdges()}},debugPrintln:function(e){$.out.println(e)},isBoundaryNode:function(e,r){var a=this.nodes.find(r);if(a===null)return!1;var c=a.getLabel();return c!==null&&c.getLocation(e)===A.BOUNDARY},linkAllDirectedEdges:function(){for(var e=this.nodes.iterator();e.hasNext();){var r=e.next();r.getEdges().linkAllDirectedEdges()}},matchInSameDirection:function(e,r,a,c){return e.equals(a)?xe.computeOrientation(e,r,c)===xe.COLLINEAR&&qt.quadrant(e,r)===qt.quadrant(a,c):!1},getEdgeEnds:function(){return this.edgeEndList},debugPrint:function(e){$.out.print(e)},getEdgeIterator:function(){return this.edges.iterator()},findEdgeInSameDirection:function(e,r){for(var a=0;a<this.edges.size();a++){var c=this.edges.get(a),g=c.getCoordinates();if(this.matchInSameDirection(e,r,g[0],g[1])||this.matchInSameDirection(e,r,g[g.length-1],g[g.length-2]))return c}return null},insertEdge:function(e){this.edges.add(e)},findEdgeEnd:function(e){for(var r=this.getEdgeEnds().iterator();r.hasNext();){var a=r.next();if(a.getEdge()===e)return a}return null},addEdges:function(e){for(var r=e.iterator();r.hasNext();){var a=r.next();this.edges.add(a);var c=new cs(a,!0),g=new cs(a,!1);c.setSym(g),g.setSym(c),this.add(c),this.add(g)}},add:function(e){this.nodes.add(e),this.edgeEndList.add(e)},getNodes:function(){return this.nodes.values()},findEdge:function(e,r){for(var a=0;a<this.edges.size();a++){var c=this.edges.get(a),g=c.getCoordinates();if(e.equals(g[0])&&r.equals(g[1]))return c}return null},interfaces_:function(){return[]},getClass:function(){return fi}}),fi.linkResultDirectedEdges=function(e){for(var r=e.iterator();r.hasNext();){var a=r.next();a.getEdges().linkResultDirectedEdges()}},o(Da.prototype,{sortShellsAndHoles:function(e,r,a){for(var c=e.iterator();c.hasNext();){var g=c.next();g.isHole()?a.add(g):r.add(g)}},computePolygons:function(e){for(var r=new k,a=e.iterator();a.hasNext();){var c=a.next(),g=c.toPolygon(this.geometryFactory);r.add(g)}return r},placeFreeHoles:function(e,r){for(var a=r.iterator();a.hasNext();){var c=a.next();if(c.getShell()===null){var g=this.findEdgeRingContaining(c,e);if(g===null)throw new ir("unable to assign hole to a shell",c.getCoordinate(0));c.setShell(g)}}},buildMinimalEdgeRings:function(e,r,a){for(var c=new k,g=e.iterator();g.hasNext();){var b=g.next();if(b.getMaxNodeDegree()>2){b.linkDirectedEdgesForMinimalEdgeRings();var I=b.buildMinimalRings(),F=this.findShell(I);F!==null?(this.placePolygonHoles(F,I),r.add(F)):a.addAll(I)}else c.add(b)}return c},containsPoint:function(e){for(var r=this.shellList.iterator();r.hasNext();){var a=r.next();if(a.containsPoint(e))return!0}return!1},buildMaximalEdgeRings:function(e){for(var r=new k,a=e.iterator();a.hasNext();){var c=a.next();if(c.isInResult()&&c.getLabel().isArea()&&c.getEdgeRing()===null){var g=new Pa(c,this.geometryFactory);r.add(g),g.setInResult()}}return r},placePolygonHoles:function(e,r){for(var a=r.iterator();a.hasNext();){var c=a.next();c.isHole()&&c.setShell(e)}},getPolygons:function(){var e=this.computePolygons(this.shellList);return e},findEdgeRingContaining:function(e,r){for(var a=e.getLinearRing(),c=a.getEnvelopeInternal(),g=a.getCoordinateN(0),b=null,I=null,F=r.iterator();F.hasNext();){var Z=F.next(),ne=Z.getLinearRing(),de=ne.getEnvelopeInternal();b!==null&&(I=b.getLinearRing().getEnvelopeInternal());var me=!1;de.contains(c)&&xe.isPointInRing(g,ne.getCoordinates())&&(me=!0),me&&(b===null||I.contains(de))&&(b=Z)}return b},findShell:function(e){for(var r=0,a=null,c=e.iterator();c.hasNext();){var g=c.next();g.isHole()||(a=g,r++)}return N.isTrue(1>=r,"found two shells in MinimalEdgeRing list"),a},add:function(){if(arguments.length===1){var e=arguments[0];this.add(e.getEdgeEnds(),e.getNodes())}else if(arguments.length===2){var r=arguments[0],a=arguments[1];fi.linkResultDirectedEdges(a);var c=this.buildMaximalEdgeRings(r),g=new k,b=this.buildMinimalEdgeRings(c,this.shellList,g);this.sortShellsAndHoles(b,this.shellList,g),this.placeFreeHoles(this.shellList,g)}},interfaces_:function(){return[]},getClass:function(){return Da}}),o(Ql.prototype,{collectLines:function(e){for(var r=this.op.getGraph().getEdgeEnds().iterator();r.hasNext();){var a=r.next();this.collectLineEdge(a,e,this.lineEdgesList),this.collectBoundaryTouchEdge(a,e,this.lineEdgesList)}},labelIsolatedLine:function(e,r){var a=this.ptLocator.locate(e.getCoordinate(),this.op.getArgGeometry(r));e.getLabel().setLocation(r,a)},build:function(e){return this.findCoveredLineEdges(),this.collectLines(e),this.buildLines(e),this.resultLineList},collectLineEdge:function(e,r,a){var c=e.getLabel(),g=e.getEdge();e.isLineEdge()&&(e.isVisited()||!$e.isResultOfOp(c,r)||g.isCovered()||(a.add(g),e.setVisitedEdge(!0)))},findCoveredLineEdges:function(){for(var e=this.op.getGraph().getNodes().iterator();e.hasNext();){var r=e.next();r.getEdges().findCoveredLineEdges()}for(var a=this.op.getGraph().getEdgeEnds().iterator();a.hasNext();){var c=a.next(),g=c.getEdge();if(c.isLineEdge()&&!g.isCoveredSet()){var b=this.op.isCoveredByA(c.getCoordinate());g.setCovered(b)}}},labelIsolatedLines:function(e){for(var r=e.iterator();r.hasNext();){var a=r.next(),c=a.getLabel();a.isIsolated()&&(c.isNull(0)?this.labelIsolatedLine(a,0):this.labelIsolatedLine(a,1))}},buildLines:function(e){for(var r=this.lineEdgesList.iterator();r.hasNext();){var a=r.next(),c=(a.getLabel(),this.geometryFactory.createLineString(a.getCoordinates()));this.resultLineList.add(c),a.setInResult(!0)}},collectBoundaryTouchEdge:function(e,r,a){var c=e.getLabel();return e.isLineEdge()||e.isVisited()||e.isInteriorAreaEdge()||e.getEdge().isInResult()?null:(N.isTrue(!(e.isInResult()||e.getSym().isInResult())||!e.getEdge().isInResult()),void($e.isResultOfOp(c,r)&&r===$e.INTERSECTION&&(a.add(e.getEdge()),e.setVisitedEdge(!0))))},interfaces_:function(){return[]},getClass:function(){return Ql}}),o($l.prototype,{filterCoveredNodeToPoint:function(e){var r=e.getCoordinate();if(!this.op.isCoveredByLA(r)){var a=this.geometryFactory.createPoint(r);this.resultPointList.add(a)}},extractNonCoveredResultNodes:function(e){for(var r=this.op.getGraph().getNodes().iterator();r.hasNext();){var a=r.next();if(!(a.isInResult()||a.isIncidentEdgeInResult()||a.getEdges().getDegree()!==0&&e!==$e.INTERSECTION)){var c=a.getLabel();$e.isResultOfOp(c,e)&&this.filterCoveredNodeToPoint(a)}}},build:function(e){return this.extractNonCoveredResultNodes(e),this.resultPointList},interfaces_:function(){return[]},getClass:function(){return $l}}),o(Ho.prototype,{locate:function(e){},interfaces_:function(){return[]},getClass:function(){return Ho}}),o(Vr.prototype,{locate:function(e){return Vr.locate(e,this.geom)},interfaces_:function(){return[Ho]},getClass:function(){return Vr}}),Vr.isPointInRing=function(e,r){return r.getEnvelopeInternal().intersects(e)?xe.isPointInRing(e,r.getCoordinates()):!1},Vr.containsPointInPolygon=function(e,r){if(r.isEmpty())return!1;var a=r.getExteriorRing();if(!Vr.isPointInRing(e,a))return!1;for(var c=0;c<r.getNumInteriorRing();c++){var g=r.getInteriorRingN(c);if(Vr.isPointInRing(e,g))return!1}return!0},Vr.containsPoint=function(e,r){if(r instanceof _t)return Vr.containsPointInPolygon(e,r);if(r instanceof Re)for(var a=new ft(r);a.hasNext();){var c=a.next();if(c!==r&&Vr.containsPoint(e,c))return!0}return!1},Vr.locate=function(e,r){return r.isEmpty()?A.EXTERIOR:Vr.containsPoint(e,r)?A.INTERIOR:A.EXTERIOR},o(Rs.prototype,{getNextCW:function(e){this.getEdges();var r=this.edgeList.indexOf(e),a=r-1;return r===0&&(a=this.edgeList.size()-1),this.edgeList.get(a)},propagateSideLabels:function(e){for(var r=A.NONE,a=this.iterator();a.hasNext();){var c=a.next(),g=c.getLabel();g.isArea(e)&&g.getLocation(e,Oe.LEFT)!==A.NONE&&(r=g.getLocation(e,Oe.LEFT))}if(r===A.NONE)return null;for(var b=r,a=this.iterator();a.hasNext();){var c=a.next(),g=c.getLabel();if(g.getLocation(e,Oe.ON)===A.NONE&&g.setLocation(e,Oe.ON,b),g.isArea(e)){var I=g.getLocation(e,Oe.LEFT),F=g.getLocation(e,Oe.RIGHT);if(F!==A.NONE){if(F!==b)throw new ir("side location conflict",c.getCoordinate());I===A.NONE&&N.shouldNeverReachHere("found single null side (at "+c.getCoordinate()+")"),b=I}else N.isTrue(g.getLocation(e,Oe.LEFT)===A.NONE,"found single null side"),g.setLocation(e,Oe.RIGHT,b),g.setLocation(e,Oe.LEFT,b)}}},getCoordinate:function(){var e=this.iterator();if(!e.hasNext())return null;var r=e.next();return r.getCoordinate()},print:function(e){$.out.println("EdgeEndStar:   "+this.getCoordinate());for(var r=this.iterator();r.hasNext();){var a=r.next();a.print(e)}},isAreaLabelsConsistent:function(e){return this.computeEdgeEndLabels(e.getBoundaryNodeRule()),this.checkAreaLabelsConsistent(0)},checkAreaLabelsConsistent:function(e){var r=this.getEdges();if(r.size()<=0)return!0;var a=r.size()-1,c=r.get(a).getLabel(),g=c.getLocation(e,Oe.LEFT);N.isTrue(g!==A.NONE,"Found unlabelled area edge");for(var b=g,I=this.iterator();I.hasNext();){var F=I.next(),Z=F.getLabel();N.isTrue(Z.isArea(e),"Found non-area edge");var ne=Z.getLocation(e,Oe.LEFT),de=Z.getLocation(e,Oe.RIGHT);if(ne===de||de!==b)return!1;b=ne}return!0},findIndex:function(e){this.iterator();for(var r=0;r<this.edgeList.size();r++){var a=this.edgeList.get(r);if(a===e)return r}return-1},iterator:function(){return this.getEdges().iterator()},getEdges:function(){return this.edgeList===null&&(this.edgeList=new k(this.edgeMap.values())),this.edgeList},getLocation:function(e,r,a){return this.ptInAreaLocation[e]===A.NONE&&(this.ptInAreaLocation[e]=Vr.locate(r,a[e].getGeometry())),this.ptInAreaLocation[e]},toString:function(){var e=new ue;e.append("EdgeEndStar:   "+this.getCoordinate()),e.append(`
`);for(var r=this.iterator();r.hasNext();){var a=r.next();e.append(a),e.append(`
`)}return e.toString()},computeEdgeEndLabels:function(e){for(var r=this.iterator();r.hasNext();){var a=r.next();a.computeLabel(e)}},computeLabelling:function(e){this.computeEdgeEndLabels(e[0].getBoundaryNodeRule()),this.propagateSideLabels(0),this.propagateSideLabels(1);for(var r=[!1,!1],a=this.iterator();a.hasNext();)for(var c=a.next(),g=c.getLabel(),b=0;2>b;b++)g.isLine(b)&&g.getLocation(b)===A.BOUNDARY&&(r[b]=!0);for(var a=this.iterator();a.hasNext();)for(var c=a.next(),g=c.getLabel(),b=0;2>b;b++)if(g.isAnyNull(b)){var I=A.NONE;if(r[b])I=A.EXTERIOR;else{var F=c.getCoordinate();I=this.getLocation(b,F,e)}g.setAllLocationsIfNull(b,I)}},getDegree:function(){return this.edgeMap.size()},insertEdgeEnd:function(e,r){this.edgeMap.put(e,r),this.edgeList=null},interfaces_:function(){return[]},getClass:function(){return Rs}}),_(Ma,Rs),o(Ma.prototype,{linkResultDirectedEdges:function(){this.getResultAreaEdges();for(var e=null,r=null,a=this.SCANNING_FOR_INCOMING,c=0;c<this.resultAreaEdgeList.size();c++){var g=this.resultAreaEdgeList.get(c),b=g.getSym();if(g.getLabel().isArea())switch(e===null&&g.isInResult()&&(e=g),a){case this.SCANNING_FOR_INCOMING:if(!b.isInResult())continue;r=b,a=this.LINKING_TO_OUTGOING;break;case this.LINKING_TO_OUTGOING:if(!g.isInResult())continue;r.setNext(g),a=this.SCANNING_FOR_INCOMING}}if(a===this.LINKING_TO_OUTGOING){if(e===null)throw new ir("no outgoing dirEdge found",this.getCoordinate());N.isTrue(e.isInResult(),"unable to link last incoming dirEdge"),r.setNext(e)}},insert:function(e){var r=e;this.insertEdgeEnd(r,r)},getRightmostEdge:function(){var e=this.getEdges(),r=e.size();if(1>r)return null;var a=e.get(0);if(r===1)return a;var c=e.get(r-1),g=a.getQuadrant(),b=c.getQuadrant();return qt.isNorthern(g)&&qt.isNorthern(b)?a:!qt.isNorthern(g)&&!qt.isNorthern(b)?c:a.getDy()!==0?a:c.getDy()!==0?c:(N.shouldNeverReachHere("found two horizontal edges incident on node"),null)},print:function(e){$.out.println("DirectedEdgeStar: "+this.getCoordinate());for(var r=this.iterator();r.hasNext();){var a=r.next();e.print("out "),a.print(e),e.println(),e.print("in "),a.getSym().print(e),e.println()}},getResultAreaEdges:function(){if(this.resultAreaEdgeList!==null)return this.resultAreaEdgeList;this.resultAreaEdgeList=new k;for(var e=this.iterator();e.hasNext();){var r=e.next();(r.isInResult()||r.getSym().isInResult())&&this.resultAreaEdgeList.add(r)}return this.resultAreaEdgeList},updateLabelling:function(e){for(var r=this.iterator();r.hasNext();){var a=r.next(),c=a.getLabel();c.setAllLocationsIfNull(0,e.getLocation(0)),c.setAllLocationsIfNull(1,e.getLocation(1))}},linkAllDirectedEdges:function(){this.getEdges();for(var e=null,r=null,a=this.edgeList.size()-1;a>=0;a--){var c=this.edgeList.get(a),g=c.getSym();r===null&&(r=g),e!==null&&g.setNext(e),e=c}r.setNext(e)},computeDepths:function(){if(arguments.length===1){var e=arguments[0],r=this.findIndex(e),a=(e.getLabel(),e.getDepth(Oe.LEFT)),c=e.getDepth(Oe.RIGHT),g=this.computeDepths(r+1,this.edgeList.size(),a),b=this.computeDepths(0,r,g);if(b!==c)throw new ir("depth mismatch at "+e.getCoordinate())}else if(arguments.length===3){for(var I=arguments[0],F=arguments[1],Z=arguments[2],ne=Z,de=I;F>de;de++){var me=this.edgeList.get(de);me.getLabel(),me.setEdgeDepths(Oe.RIGHT,ne),ne=me.getDepth(Oe.LEFT)}return ne}},mergeSymLabels:function(){for(var e=this.iterator();e.hasNext();){var r=e.next(),a=r.getLabel();a.merge(r.getSym().getLabel())}},linkMinimalDirectedEdges:function(e){for(var r=null,a=null,c=this.SCANNING_FOR_INCOMING,g=this.resultAreaEdgeList.size()-1;g>=0;g--){var b=this.resultAreaEdgeList.get(g),I=b.getSym();switch(r===null&&b.getEdgeRing()===e&&(r=b),c){case this.SCANNING_FOR_INCOMING:if(I.getEdgeRing()!==e)continue;a=I,c=this.LINKING_TO_OUTGOING;break;case this.LINKING_TO_OUTGOING:if(b.getEdgeRing()!==e)continue;a.setNextMin(b),c=this.SCANNING_FOR_INCOMING}}c===this.LINKING_TO_OUTGOING&&(N.isTrue(r!==null,"found null for first outgoing dirEdge"),N.isTrue(r.getEdgeRing()===e,"unable to link last incoming dirEdge"),a.setNextMin(r))},getOutgoingDegree:function(){if(arguments.length===0){for(var e=0,r=this.iterator();r.hasNext();){var a=r.next();a.isInResult()&&e++}return e}if(arguments.length===1){for(var c=arguments[0],e=0,r=this.iterator();r.hasNext();){var a=r.next();a.getEdgeRing()===c&&e++}return e}},getLabel:function(){return this.label},findCoveredLineEdges:function(){for(var e=A.NONE,r=this.iterator();r.hasNext();){var a=r.next(),c=a.getSym();if(!a.isLineEdge()){if(a.isInResult()){e=A.INTERIOR;break}if(c.isInResult()){e=A.EXTERIOR;break}}}if(e===A.NONE)return null;for(var g=e,r=this.iterator();r.hasNext();){var a=r.next(),c=a.getSym();a.isLineEdge()?a.getEdge().setCovered(g===A.INTERIOR):(a.isInResult()&&(g=A.EXTERIOR),c.isInResult()&&(g=A.INTERIOR))}},computeLabelling:function(e){Rs.prototype.computeLabelling.call(this,e),this.label=new En(A.NONE);for(var r=this.iterator();r.hasNext();)for(var a=r.next(),c=a.getEdge(),g=c.getLabel(),b=0;2>b;b++){var I=g.getLocation(b);I!==A.INTERIOR&&I!==A.BOUNDARY||this.label.setLocation(b,A.INTERIOR)}},interfaces_:function(){return[]},getClass:function(){return Ma}}),_(ds,go),o(ds.prototype,{createNode:function(e){return new br(e,new Ma)},interfaces_:function(){return[]},getClass:function(){return ds}}),o(hs.prototype,{computeIntersections:function(e,r){this.mce.computeIntersectsForChain(this.chainIndex,e.mce,e.chainIndex,r)},interfaces_:function(){return[]},getClass:function(){return hs}}),o(Gi.prototype,{isDelete:function(){return this.eventType===Gi.DELETE},setDeleteEventIndex:function(e){this.deleteEventIndex=e},getObject:function(){return this.obj},compareTo:function(e){var r=e;return this.xValue<r.xValue?-1:this.xValue>r.xValue?1:this.eventType<r.eventType?-1:this.eventType>r.eventType?1:0},getInsertEvent:function(){return this.insertEvent},isInsert:function(){return this.eventType===Gi.INSERT},isSameLabel:function(e){return this.label===null?!1:this.label===e.label},getDeleteEventIndex:function(){return this.deleteEventIndex},interfaces_:function(){return[f]},getClass:function(){return Gi}}),Gi.INSERT=1,Gi.DELETE=2,o(js.prototype,{interfaces_:function(){return[]},getClass:function(){return js}}),o(sr.prototype,{isTrivialIntersection:function(e,r,a,c){if(e===a&&this.li.getIntersectionNum()===1){if(sr.isAdjacentSegments(r,c))return!0;if(e.isClosed()){var g=e.getNumPoints()-1;if(r===0&&c===g||c===0&&r===g)return!0}}return!1},getProperIntersectionPoint:function(){return this.properIntersectionPoint},setIsDoneIfProperInt:function(e){this.isDoneWhenProperInt=e},hasProperInteriorIntersection:function(){return this.hasProperInterior},isBoundaryPointInternal:function(e,r){for(var a=r.iterator();a.hasNext();){var c=a.next(),g=c.getCoordinate();if(e.isIntersection(g))return!0}return!1},hasProperIntersection:function(){return this.hasProper},hasIntersection:function(){return this._hasIntersection},isDone:function(){return this._isDone},isBoundaryPoint:function(e,r){return r===null?!1:this.isBoundaryPointInternal(e,r[0])?!0:!!this.isBoundaryPointInternal(e,r[1])},setBoundaryNodes:function(e,r){this.bdyNodes=new Array(2).fill(null),this.bdyNodes[0]=e,this.bdyNodes[1]=r},addIntersections:function(e,r,a,c){if(e===a&&r===c)return null;this.numTests++;var g=e.getCoordinates()[r],b=e.getCoordinates()[r+1],I=a.getCoordinates()[c],F=a.getCoordinates()[c+1];this.li.computeIntersection(g,b,I,F),this.li.hasIntersection()&&(this.recordIsolated&&(e.setIsolated(!1),a.setIsolated(!1)),this.numIntersections++,this.isTrivialIntersection(e,r,a,c)||(this._hasIntersection=!0,!this.includeProper&&this.li.isProper()||(e.addIntersections(this.li,r,0),a.addIntersections(this.li,c,1)),this.li.isProper()&&(this.properIntersectionPoint=this.li.getIntersection(0).copy(),this.hasProper=!0,this.isDoneWhenProperInt&&(this._isDone=!0),this.isBoundaryPoint(this.li,this.bdyNodes)||(this.hasProperInterior=!0))))},interfaces_:function(){return[]},getClass:function(){return sr}}),sr.isAdjacentSegments=function(e,r){return Math.abs(e-r)===1},_(ka,js),o(ka.prototype,{prepareEvents:function(){Es.sort(this.events);for(var e=0;e<this.events.size();e++){var r=this.events.get(e);r.isDelete()&&r.getInsertEvent().setDeleteEventIndex(e)}},computeIntersections:function(){if(arguments.length===1){var e=arguments[0];this.nOverlaps=0,this.prepareEvents();for(var r=0;r<this.events.size();r++){var a=this.events.get(r);if(a.isInsert()&&this.processOverlaps(r,a.getDeleteEventIndex(),a,e),e.isDone())break}}else if(arguments.length===3){if(arguments[2]instanceof sr&&X(arguments[0],T)&&X(arguments[1],T)){var c=arguments[0],g=arguments[1],b=arguments[2];this.addEdges(c,c),this.addEdges(g,g),this.computeIntersections(b)}else if(typeof arguments[2]=="boolean"&&X(arguments[0],T)&&arguments[1]instanceof sr){var I=arguments[0],F=arguments[1],Z=arguments[2];Z?this.addEdges(I,null):this.addEdges(I),this.computeIntersections(F)}}},addEdge:function(e,r){for(var a=e.getMonotoneChainEdge(),c=a.getStartIndexes(),g=0;g<c.length-1;g++){var b=new hs(a,g),I=new Gi(r,a.getMinX(g),b);this.events.add(I),this.events.add(new Gi(a.getMaxX(g),I))}},processOverlaps:function(e,r,a,c){for(var g=a.getObject(),b=e;r>b;b++){var I=this.events.get(b);if(I.isInsert()){var F=I.getObject();a.isSameLabel(I)||(g.computeIntersections(F,c),this.nOverlaps++)}}},addEdges:function(){if(arguments.length===1)for(var e=arguments[0],r=e.iterator();r.hasNext();){var a=r.next();this.addEdge(a,a)}else if(arguments.length===2)for(var c=arguments[0],g=arguments[1],r=c.iterator();r.hasNext();){var a=r.next();this.addEdge(a,g)}},interfaces_:function(){return[]},getClass:function(){return ka}}),o(Fs.prototype,{getMin:function(){return this.min},intersects:function(e,r){return!(this.min>r||this.max<e)},getMax:function(){return this.max},toString:function(){return ot.toLineString(new w(this.min,0),new w(this.max,0))},interfaces_:function(){return[]},getClass:function(){return Fs}}),o(ec.prototype,{compare:function(e,r){var a=e,c=r,g=(a.min+a.max)/2,b=(c.min+c.max)/2;return b>g?-1:g>b?1:0},interfaces_:function(){return[p]},getClass:function(){return ec}}),Fs.NodeComparator=ec,_(Go,Fs),o(Go.prototype,{query:function(e,r,a){return this.intersects(e,r)?void a.visitItem(this.item):null},interfaces_:function(){return[]},getClass:function(){return Go}}),_(Wo,Fs),o(Wo.prototype,{buildExtent:function(e,r){this.min=Math.min(e.min,r.min),this.max=Math.max(e.max,r.max)},query:function(e,r,a){return this.intersects(e,r)?(this.node1!==null&&this.node1.query(e,r,a),void(this.node2!==null&&this.node2.query(e,r,a))):null},interfaces_:function(){return[]},getClass:function(){return Wo}}),o(tc.prototype,{buildTree:function(){Es.sort(this.leaves,new IntervalRTreeNode.NodeComparator);for(var e=this.leaves,r=null,a=new k;;){if(this.buildLevel(e,a),a.size()===1)return a.get(0);r=e,e=a,a=r}},insert:function(e,r,a){if(this.root!==null)throw new IllegalStateException("Index cannot be added to once it has been queried");this.leaves.add(new Go(e,r,a))},query:function(e,r,a){this.init(),this.root.query(e,r,a)},buildRoot:function(){return this.root!==null?null:void(this.root=this.buildTree())},printNode:function(e){$.out.println(ot.toLineString(new w(e.min,this.level),new w(e.max,this.level)))},init:function(){return this.root!==null?null:void this.buildRoot()},buildLevel:function(e,r){this.level++,r.clear();for(var a=0;a<e.size();a+=2){var c=e.get(a),g=a+1<e.size()?e.get(a):null;if(g===null)r.add(c);else{var b=new Wo(e.get(a),e.get(a+1));r.add(b)}}},interfaces_:function(){return[]},getClass:function(){return tc}}),o(fr.prototype,{filter:function(e){if(this.isForcedToLineString&&e instanceof It){var r=e.getFactory().createLineString(e.getCoordinateSequence());return this.lines.add(r),null}e instanceof Se&&this.lines.add(e)},setForceToLineString:function(e){this.isForcedToLineString=e},interfaces_:function(){return[be]},getClass:function(){return fr}}),fr.getGeometry=function(){if(arguments.length===1){var e=arguments[0];return e.getFactory().buildGeometry(fr.getLines(e))}if(arguments.length===2){var r=arguments[0],a=arguments[1];return r.getFactory().buildGeometry(fr.getLines(r,a))}},fr.getLines=function(){if(arguments.length===1){var e=arguments[0];return fr.getLines(e,!1)}if(arguments.length===2){if(X(arguments[0],M)&&X(arguments[1],M)){for(var r=arguments[0],a=arguments[1],c=r.iterator();c.hasNext();){var g=c.next();fr.getLines(g,a)}return a}if(arguments[0]instanceof ae&&typeof arguments[1]=="boolean"){var b=arguments[0],I=arguments[1],F=new k;return b.apply(new fr(F,I)),F}if(arguments[0]instanceof ae&&X(arguments[1],M)){var Z=arguments[0],ne=arguments[1];return Z instanceof Se?ne.add(Z):Z.apply(new fr(ne)),ne}}else if(arguments.length===3){if(typeof arguments[2]=="boolean"&&X(arguments[0],M)&&X(arguments[1],M)){for(var de=arguments[0],me=arguments[1],_e=arguments[2],c=de.iterator();c.hasNext();){var g=c.next();fr.getLines(g,me,_e)}return me}if(typeof arguments[2]=="boolean"&&arguments[0]instanceof ae&&X(arguments[1],M)){var Ze=arguments[0],gt=arguments[1],St=arguments[2];return Ze.apply(new fr(gt,St)),gt}}},o(Ra.prototype,{visitItem:function(e){this.items.add(e)},getItems:function(){return this.items},interfaces_:function(){return[Ds]},getClass:function(){return Ra}}),o(ja.prototype,{locate:function(e){var r=new pt(e),a=new Hr(r);return this.index.query(e.y,e.y,a),r.getLocation()},interfaces_:function(){return[Ho]},getClass:function(){return ja}}),o(Hr.prototype,{visitItem:function(e){var r=e;this.counter.countSegment(r.getCoordinate(0),r.getCoordinate(1))},interfaces_:function(){return[Ds]},getClass:function(){return Hr}}),o(fs.prototype,{init:function(e){for(var r=fr.getLines(e),a=r.iterator();a.hasNext();){var c=a.next(),g=c.getCoordinates();this.addLine(g)}},addLine:function(e){for(var r=1;r<e.length;r++){var a=new nt(e[r-1],e[r]),c=Math.min(a.p0.y,a.p1.y),g=Math.max(a.p0.y,a.p1.y);this.index.insert(c,g,a)}},query:function(){if(arguments.length===2){var e=arguments[0],r=arguments[1],a=new Ra;return this.index.query(e,r,a),a.getItems()}if(arguments.length===3){var c=arguments[0],g=arguments[1],b=arguments[2];this.index.query(c,g,b)}},interfaces_:function(){return[]},getClass:function(){return fs}}),ja.SegmentVisitor=Hr,ja.IntervalIndexedGeometry=fs,o(nc.prototype,{getSegmentIndex:function(){return this.segmentIndex},getCoordinate:function(){return this.coord},print:function(e){e.print(this.coord),e.print(" seg # = "+this.segmentIndex),e.println(" dist = "+this.dist)},compareTo:function(e){var r=e;return this.compare(r.segmentIndex,r.dist)},isEndPoint:function(e){return this.segmentIndex===0&&this.dist===0?!0:this.segmentIndex===e},toString:function(){return this.coord+" seg # = "+this.segmentIndex+" dist = "+this.dist},getDistance:function(){return this.dist},compare:function(e,r){return this.segmentIndex<e?-1:this.segmentIndex>e?1:this.dist<r?-1:this.dist>r?1:0},interfaces_:function(){return[f]},getClass:function(){return nc}}),o(Ii.prototype,{print:function(e){e.println("Intersections:");for(var r=this.iterator();r.hasNext();){var a=r.next();a.print(e)}},iterator:function(){return this.nodeMap.values().iterator()},addSplitEdges:function(e){this.addEndpoints();for(var r=this.iterator(),a=r.next();r.hasNext();){var c=r.next(),g=this.createSplitEdge(a,c);e.add(g),a=c}},addEndpoints:function(){var e=this.edge.pts.length-1;this.add(this.edge.pts[0],0,0),this.add(this.edge.pts[e],e,0)},createSplitEdge:function(e,r){var a=r.segmentIndex-e.segmentIndex+2,c=this.edge.pts[r.segmentIndex],g=r.dist>0||!r.coord.equals2D(c);g||a--;var b=new Array(a).fill(null),I=0;b[I++]=new w(e.coord);for(var F=e.segmentIndex+1;F<=r.segmentIndex;F++)b[I++]=this.edge.pts[F];return g&&(b[I]=r.coord),new xr(b,new En(this.edge.label))},add:function(e,r,a){var c=new nc(e,r,a),g=this.nodeMap.get(c);return g!==null?g:(this.nodeMap.put(c,c),c)},isIntersection:function(e){for(var r=this.iterator();r.hasNext();){var a=r.next();if(a.coord.equals(e))return!0}return!1},interfaces_:function(){return[]},getClass:function(){return Ii}}),o(Fa.prototype,{getChainStartIndices:function(e){var r=0,a=new k;a.add(new G(r));do{var c=this.findChainEnd(e,r);a.add(new G(c)),r=c}while(r<e.length-1);var g=Fa.toIntArray(a);return g},findChainEnd:function(e,r){for(var a=qt.quadrant(e[r],e[r+1]),c=r+1;c<e.length;){var g=qt.quadrant(e[c-1],e[c]);if(g!==a)break;c++}return c-1},interfaces_:function(){return[]},getClass:function(){return Fa}}),Fa.toIntArray=function(e){for(var r=new Array(e.size()).fill(null),a=0;a<r.length;a++)r[a]=e.get(a).intValue();return r},o(Bs.prototype,{getCoordinates:function(){return this.pts},getMaxX:function(e){var r=this.pts[this.startIndex[e]].x,a=this.pts[this.startIndex[e+1]].x;return r>a?r:a},getMinX:function(e){var r=this.pts[this.startIndex[e]].x,a=this.pts[this.startIndex[e+1]].x;return a>r?r:a},computeIntersectsForChain:function(){if(arguments.length===4){var e=arguments[0],r=arguments[1],a=arguments[2],c=arguments[3];this.computeIntersectsForChain(this.startIndex[e],this.startIndex[e+1],r,r.startIndex[a],r.startIndex[a+1],c)}else if(arguments.length===6){var g=arguments[0],b=arguments[1],I=arguments[2],F=arguments[3],Z=arguments[4],ne=arguments[5],de=this.pts[g],me=this.pts[b],_e=I.pts[F],Ze=I.pts[Z];if(b-g===1&&Z-F===1)return ne.addIntersections(this.e,g,I.e,F),null;if(this.env1.init(de,me),this.env2.init(_e,Ze),!this.env1.intersects(this.env2))return null;var gt=Math.trunc((g+b)/2),St=Math.trunc((F+Z)/2);gt>g&&(St>F&&this.computeIntersectsForChain(g,gt,I,F,St,ne),Z>St&&this.computeIntersectsForChain(g,gt,I,St,Z,ne)),b>gt&&(St>F&&this.computeIntersectsForChain(gt,b,I,F,St,ne),Z>St&&this.computeIntersectsForChain(gt,b,I,St,Z,ne))}},getStartIndexes:function(){return this.startIndex},computeIntersects:function(e,r){for(var a=0;a<this.startIndex.length-1;a++)for(var c=0;c<e.startIndex.length-1;c++)this.computeIntersectsForChain(a,e,c,r)},interfaces_:function(){return[]},getClass:function(){return Bs}}),o(gi.prototype,{getDepth:function(e,r){return this.depth[e][r]},setDepth:function(e,r,a){this.depth[e][r]=a},isNull:function(){if(arguments.length===0){for(var e=0;2>e;e++)for(var r=0;3>r;r++)if(this.depth[e][r]!==gi.NULL_VALUE)return!1;return!0}if(arguments.length===1){var a=arguments[0];return this.depth[a][1]===gi.NULL_VALUE}if(arguments.length===2){var c=arguments[0],g=arguments[1];return this.depth[c][g]===gi.NULL_VALUE}},normalize:function(){for(var e=0;2>e;e++)if(!this.isNull(e)){var r=this.depth[e][1];this.depth[e][2]<r&&(r=this.depth[e][2]),0>r&&(r=0);for(var a=1;3>a;a++){var c=0;this.depth[e][a]>r&&(c=1),this.depth[e][a]=c}}},getDelta:function(e){return this.depth[e][Oe.RIGHT]-this.depth[e][Oe.LEFT]},getLocation:function(e,r){return this.depth[e][r]<=0?A.EXTERIOR:A.INTERIOR},toString:function(){return"A: "+this.depth[0][1]+","+this.depth[0][2]+" B: "+this.depth[1][1]+","+this.depth[1][2]},add:function(){if(arguments.length===1)for(var e=arguments[0],r=0;2>r;r++)for(var a=1;3>a;a++){var c=e.getLocation(r,a);c!==A.EXTERIOR&&c!==A.INTERIOR||(this.isNull(r,a)?this.depth[r][a]=gi.depthAtLocation(c):this.depth[r][a]+=gi.depthAtLocation(c))}else if(arguments.length===3){var g=arguments[0],b=arguments[1],I=arguments[2];I===A.INTERIOR&&this.depth[g][b]++}},interfaces_:function(){return[]},getClass:function(){return gi}}),gi.depthAtLocation=function(e){return e===A.EXTERIOR?0:e===A.INTERIOR?1:gi.NULL_VALUE},gi.NULL_VALUE=-1,_(xr,ls),o(xr.prototype,{getDepth:function(){return this.depth},getCollapsedEdge:function(){var e=new Array(2).fill(null);e[0]=this.pts[0],e[1]=this.pts[1];var r=new xr(e,En.toLineLabel(this.label));return r},isIsolated:function(){return this._isIsolated},getCoordinates:function(){return this.pts},setIsolated:function(e){this._isIsolated=e},setName:function(e){this.name=e},equals:function(e){if(!(e instanceof xr))return!1;var r=e;if(this.pts.length!==r.pts.length)return!1;for(var a=!0,c=!0,g=this.pts.length,b=0;b<this.pts.length;b++)if(this.pts[b].equals2D(r.pts[b])||(a=!1),this.pts[b].equals2D(r.pts[--g])||(c=!1),!a&&!c)return!1;return!0},getCoordinate:function(){if(arguments.length===0)return this.pts.length>0?this.pts[0]:null;if(arguments.length===1){var e=arguments[0];return this.pts[e]}},print:function(e){e.print("edge "+this.name+": "),e.print("LINESTRING (");for(var r=0;r<this.pts.length;r++)r>0&&e.print(","),e.print(this.pts[r].x+" "+this.pts[r].y);e.print(")  "+this.label+" "+this.depthDelta)},computeIM:function(e){xr.updateIM(this.label,e)},isCollapsed:function(){return this.label.isArea()?this.pts.length!==3?!1:!!this.pts[0].equals(this.pts[2]):!1},isClosed:function(){return this.pts[0].equals(this.pts[this.pts.length-1])},getMaximumSegmentIndex:function(){return this.pts.length-1},getDepthDelta:function(){return this.depthDelta},getNumPoints:function(){return this.pts.length},printReverse:function(e){e.print("edge "+this.name+": ");for(var r=this.pts.length-1;r>=0;r--)e.print(this.pts[r]+" ");e.println("")},getMonotoneChainEdge:function(){return this.mce===null&&(this.mce=new Bs(this)),this.mce},getEnvelope:function(){if(this.env===null){this.env=new V;for(var e=0;e<this.pts.length;e++)this.env.expandToInclude(this.pts[e])}return this.env},addIntersection:function(e,r,a,c){var g=new w(e.getIntersection(c)),b=r,I=e.getEdgeDistance(a,c),F=b+1;if(F<this.pts.length){var Z=this.pts[F];g.equals2D(Z)&&(b=F,I=0)}this.eiList.add(g,b,I)},toString:function(){var e=new ue;e.append("edge "+this.name+": "),e.append("LINESTRING (");for(var r=0;r<this.pts.length;r++)r>0&&e.append(","),e.append(this.pts[r].x+" "+this.pts[r].y);return e.append(")  "+this.label+" "+this.depthDelta),e.toString()},isPointwiseEqual:function(e){if(this.pts.length!==e.pts.length)return!1;for(var r=0;r<this.pts.length;r++)if(!this.pts[r].equals2D(e.pts[r]))return!1;return!0},setDepthDelta:function(e){this.depthDelta=e},getEdgeIntersectionList:function(){return this.eiList},addIntersections:function(e,r,a){for(var c=0;c<e.getIntersectionNum();c++)this.addIntersection(e,r,a,c)},interfaces_:function(){return[]},getClass:function(){return xr}}),xr.updateIM=function(){if(arguments.length!==2)return ls.prototype.updateIM.apply(this,arguments);var e=arguments[0],r=arguments[1];r.setAtLeastIfValid(e.getLocation(0,Oe.ON),e.getLocation(1,Oe.ON),1),e.isArea()&&(r.setAtLeastIfValid(e.getLocation(0,Oe.LEFT),e.getLocation(1,Oe.LEFT),2),r.setAtLeastIfValid(e.getLocation(0,Oe.RIGHT),e.getLocation(1,Oe.RIGHT),2))},_(Lr,fi),o(Lr.prototype,{insertBoundaryPoint:function(e,r){var a=this.nodes.addNode(r),c=a.getLabel(),g=1,b=A.NONE;b=c.getLocation(e,Oe.ON),b===A.BOUNDARY&&g++;var I=Lr.determineBoundary(this.boundaryNodeRule,g);c.setLocation(e,I)},computeSelfNodes:function(){if(arguments.length===2){var e=arguments[0],r=arguments[1];return this.computeSelfNodes(e,r,!1)}if(arguments.length===3){var a=arguments[0],c=arguments[1],g=arguments[2],b=new sr(a,!0,!1);b.setIsDoneIfProperInt(g);var I=this.createEdgeSetIntersector(),F=this.parentGeom instanceof It||this.parentGeom instanceof _t||this.parentGeom instanceof nn,Z=c||!F;return I.computeIntersections(this.edges,b,Z),this.addSelfIntersectionNodes(this.argIndex),b}},computeSplitEdges:function(e){for(var r=this.edges.iterator();r.hasNext();){var a=r.next();a.eiList.addSplitEdges(e)}},computeEdgeIntersections:function(e,r,a){var c=new sr(r,a,!0);c.setBoundaryNodes(this.getBoundaryNodes(),e.getBoundaryNodes());var g=this.createEdgeSetIntersector();return g.computeIntersections(this.edges,e.edges,c),c},getGeometry:function(){return this.parentGeom},getBoundaryNodeRule:function(){return this.boundaryNodeRule},hasTooFewPoints:function(){return this._hasTooFewPoints},addPoint:function(){if(arguments[0]instanceof Ge){var e=arguments[0],r=e.getCoordinate();this.insertPoint(this.argIndex,r,A.INTERIOR)}else if(arguments[0]instanceof w){var a=arguments[0];this.insertPoint(this.argIndex,a,A.INTERIOR)}},addPolygon:function(e){this.addPolygonRing(e.getExteriorRing(),A.EXTERIOR,A.INTERIOR);for(var r=0;r<e.getNumInteriorRing();r++){var a=e.getInteriorRingN(r);this.addPolygonRing(a,A.INTERIOR,A.EXTERIOR)}},addEdge:function(e){this.insertEdge(e);var r=e.getCoordinates();this.insertPoint(this.argIndex,r[0],A.BOUNDARY),this.insertPoint(this.argIndex,r[r.length-1],A.BOUNDARY)},addLineString:function(e){var r=Le.removeRepeatedPoints(e.getCoordinates());if(r.length<2)return this._hasTooFewPoints=!0,this.invalidPoint=r[0],null;var a=new xr(r,new En(this.argIndex,A.INTERIOR));this.lineEdgeMap.put(e,a),this.insertEdge(a),N.isTrue(r.length>=2,"found LineString with single point"),this.insertBoundaryPoint(this.argIndex,r[0]),this.insertBoundaryPoint(this.argIndex,r[r.length-1])},getInvalidPoint:function(){return this.invalidPoint},getBoundaryPoints:function(){for(var e=this.getBoundaryNodes(),r=new Array(e.size()).fill(null),a=0,c=e.iterator();c.hasNext();){var g=c.next();r[a++]=g.getCoordinate().copy()}return r},getBoundaryNodes:function(){return this.boundaryNodes===null&&(this.boundaryNodes=this.nodes.getBoundaryNodes(this.argIndex)),this.boundaryNodes},addSelfIntersectionNode:function(e,r,a){return this.isBoundaryNode(e,r)?null:void(a===A.BOUNDARY&&this.useBoundaryDeterminationRule?this.insertBoundaryPoint(e,r):this.insertPoint(e,r,a))},addPolygonRing:function(e,r,a){if(e.isEmpty())return null;var c=Le.removeRepeatedPoints(e.getCoordinates());if(c.length<4)return this._hasTooFewPoints=!0,this.invalidPoint=c[0],null;var g=r,b=a;xe.isCCW(c)&&(g=a,b=r);var I=new xr(c,new En(this.argIndex,A.BOUNDARY,g,b));this.lineEdgeMap.put(e,I),this.insertEdge(I),this.insertPoint(this.argIndex,c[0],A.BOUNDARY)},insertPoint:function(e,r,a){var c=this.nodes.addNode(r),g=c.getLabel();g===null?c.label=new En(e,a):g.setLocation(e,a)},createEdgeSetIntersector:function(){return new ka},addSelfIntersectionNodes:function(e){for(var r=this.edges.iterator();r.hasNext();)for(var a=r.next(),c=a.getLabel().getLocation(e),g=a.eiList.iterator();g.hasNext();){var b=g.next();this.addSelfIntersectionNode(e,b.coord,c)}},add:function(){if(arguments.length!==1)return fi.prototype.add.apply(this,arguments);var e=arguments[0];if(e.isEmpty())return null;if(e instanceof nn&&(this.useBoundaryDeterminationRule=!1),e instanceof _t)this.addPolygon(e);else if(e instanceof Se)this.addLineString(e);else if(e instanceof Ge)this.addPoint(e);else if(e instanceof $t)this.addCollection(e);else if(e instanceof Lt)this.addCollection(e);else if(e instanceof nn)this.addCollection(e);else{if(!(e instanceof Re))throw new UnsupportedOperationException(e.getClass().getName());this.addCollection(e)}},addCollection:function(e){for(var r=0;r<e.getNumGeometries();r++){var a=e.getGeometryN(r);this.add(a)}},locate:function(e){return X(this.parentGeom,Nt)&&this.parentGeom.getNumGeometries()>50?(this.areaPtLocator===null&&(this.areaPtLocator=new ja(this.parentGeom)),this.areaPtLocator.locate(e)):this.ptLocator.locate(e,this.parentGeom)},findEdge:function(){if(arguments.length===1){var e=arguments[0];return this.lineEdgeMap.get(e)}return fi.prototype.findEdge.apply(this,arguments)},interfaces_:function(){return[]},getClass:function(){return Lr}}),Lr.determineBoundary=function(e,r){return e.isInBoundary(r)?A.BOUNDARY:A.INTERIOR},o(Ti.prototype,{getArgGeometry:function(e){return this.arg[e].getGeometry()},setComputationPrecision:function(e){this.resultPrecisionModel=e,this.li.setPrecisionModel(this.resultPrecisionModel)},interfaces_:function(){return[]},getClass:function(){return Ti}}),o(qs.prototype,{compareTo:function(e){var r=e,a=qs.compareOriented(this.pts,this._orientation,r.pts,r._orientation);return a},interfaces_:function(){return[f]},getClass:function(){return qs}}),qs.orientation=function(e){return Le.increasingDirection(e)===1},qs.compareOriented=function(e,r,a,c){for(var g=r?1:-1,b=c?1:-1,I=r?e.length:-1,F=c?a.length:-1,Z=r?0:e.length-1,ne=c?0:a.length-1;;){var de=e[Z].compareTo(a[ne]);if(de!==0)return de;Z+=g,ne+=b;var me=Z===I,_e=ne===F;if(me&&!_e)return-1;if(!me&&_e)return 1;if(me&&_e)return 0}},o(Ai.prototype,{print:function(e){e.print("MULTILINESTRING ( ");for(var r=0;r<this.edges.size();r++){var a=this.edges.get(r);r>0&&e.print(","),e.print("(");for(var c=a.getCoordinates(),g=0;g<c.length;g++)g>0&&e.print(","),e.print(c[g].x+" "+c[g].y);e.println(")")}e.print(")  ")},addAll:function(e){for(var r=e.iterator();r.hasNext();)this.add(r.next())},findEdgeIndex:function(e){for(var r=0;r<this.edges.size();r++)if(this.edges.get(r).equals(e))return r;return-1},iterator:function(){return this.edges.iterator()},getEdges:function(){return this.edges},get:function(e){return this.edges.get(e)},findEqualEdge:function(e){var r=new qs(e.getCoordinates()),a=this.ocaMap.get(r);return a},add:function(e){this.edges.add(e);var r=new qs(e.getCoordinates());this.ocaMap.put(r,e)},interfaces_:function(){return[]},getClass:function(){return Ai}}),_($e,Ti),o($e.prototype,{insertUniqueEdge:function(e){var r=this.edgeList.findEqualEdge(e);if(r!==null){var a=r.getLabel(),c=e.getLabel();r.isPointwiseEqual(e)||(c=new En(e.getLabel()),c.flip());var g=r.getDepth();g.isNull()&&g.add(a),g.add(c),a.merge(c)}else this.edgeList.add(e)},getGraph:function(){return this.graph},cancelDuplicateResultEdges:function(){for(var e=this.graph.getEdgeEnds().iterator();e.hasNext();){var r=e.next(),a=r.getSym();r.isInResult()&&a.isInResult()&&(r.setInResult(!1),a.setInResult(!1))}},isCoveredByLA:function(e){return this.isCovered(e,this.resultLineList)?!0:!!this.isCovered(e,this.resultPolyList)},computeGeometry:function(e,r,a,c){var g=new k;return g.addAll(e),g.addAll(r),g.addAll(a),g.isEmpty()?$e.createEmptyResult(c,this.arg[0].getGeometry(),this.arg[1].getGeometry(),this.geomFact):this.geomFact.buildGeometry(g)},mergeSymLabels:function(){for(var e=this.graph.getNodes().iterator();e.hasNext();){var r=e.next();r.getEdges().mergeSymLabels()}},isCovered:function(e,r){for(var a=r.iterator();a.hasNext();){var c=a.next(),g=this.ptLocator.locate(e,c);if(g!==A.EXTERIOR)return!0}return!1},replaceCollapsedEdges:function(){for(var e=new k,r=this.edgeList.iterator();r.hasNext();){var a=r.next();a.isCollapsed()&&(r.remove(),e.add(a.getCollapsedEdge()))}this.edgeList.addAll(e)},updateNodeLabelling:function(){for(var e=this.graph.getNodes().iterator();e.hasNext();){var r=e.next(),a=r.getEdges().getLabel();r.getLabel().merge(a)}},getResultGeometry:function(e){return this.computeOverlay(e),this.resultGeom},insertUniqueEdges:function(e){for(var r=e.iterator();r.hasNext();){var a=r.next();this.insertUniqueEdge(a)}},computeOverlay:function(e){this.copyPoints(0),this.copyPoints(1),this.arg[0].computeSelfNodes(this.li,!1),this.arg[1].computeSelfNodes(this.li,!1),this.arg[0].computeEdgeIntersections(this.arg[1],this.li,!0);var r=new k;this.arg[0].computeSplitEdges(r),this.arg[1].computeSplitEdges(r),this.insertUniqueEdges(r),this.computeLabelsFromDepths(),this.replaceCollapsedEdges(),co.checkValid(this.edgeList.getEdges()),this.graph.addEdges(this.edgeList.getEdges()),this.computeLabelling(),this.labelIncompleteNodes(),this.findResultAreaEdges(e),this.cancelDuplicateResultEdges();var a=new Da(this.geomFact);a.add(this.graph),this.resultPolyList=a.getPolygons();var c=new Ql(this,this.geomFact,this.ptLocator);this.resultLineList=c.build(e);var g=new $l(this,this.geomFact,this.ptLocator);this.resultPointList=g.build(e),this.resultGeom=this.computeGeometry(this.resultPointList,this.resultLineList,this.resultPolyList,e)},labelIncompleteNode:function(e,r){var a=this.ptLocator.locate(e.getCoordinate(),this.arg[r].getGeometry());e.getLabel().setLocation(r,a)},copyPoints:function(e){for(var r=this.arg[e].getNodeIterator();r.hasNext();){var a=r.next(),c=this.graph.addNode(a.getCoordinate());c.setLabel(e,a.getLabel().getLocation(e))}},findResultAreaEdges:function(e){for(var r=this.graph.getEdgeEnds().iterator();r.hasNext();){var a=r.next(),c=a.getLabel();c.isArea()&&!a.isInteriorAreaEdge()&&$e.isResultOfOp(c.getLocation(0,Oe.RIGHT),c.getLocation(1,Oe.RIGHT),e)&&a.setInResult(!0)}},computeLabelsFromDepths:function(){for(var e=this.edgeList.iterator();e.hasNext();){var r=e.next(),a=r.getLabel(),c=r.getDepth();if(!c.isNull()){c.normalize();for(var g=0;2>g;g++)a.isNull(g)||!a.isArea()||c.isNull(g)||(c.getDelta(g)===0?a.toLine(g):(N.isTrue(!c.isNull(g,Oe.LEFT),"depth of LEFT side has not been initialized"),a.setLocation(g,Oe.LEFT,c.getLocation(g,Oe.LEFT)),N.isTrue(!c.isNull(g,Oe.RIGHT),"depth of RIGHT side has not been initialized"),a.setLocation(g,Oe.RIGHT,c.getLocation(g,Oe.RIGHT))))}}},computeLabelling:function(){for(var e=this.graph.getNodes().iterator();e.hasNext();){var r=e.next();r.getEdges().computeLabelling(this.arg)}this.mergeSymLabels(),this.updateNodeLabelling()},labelIncompleteNodes:function(){for(var e=0,r=this.graph.getNodes().iterator();r.hasNext();){var a=r.next(),c=a.getLabel();a.isIsolated()&&(e++,c.isNull(0)?this.labelIncompleteNode(a,0):this.labelIncompleteNode(a,1)),a.getEdges().updateLabelling(c)}},isCoveredByA:function(e){return!!this.isCovered(e,this.resultPolyList)},interfaces_:function(){return[]},getClass:function(){return $e}}),$e.overlayOp=function(e,r,a){var c=new $e(e,r),g=c.getResultGeometry(a);return g},$e.intersection=function(e,r){if(e.isEmpty()||r.isEmpty())return $e.createEmptyResult($e.INTERSECTION,e,r,e.getFactory());if(e.isGeometryCollection()){var a=r;return ho.map(e,{interfaces_:function(){return[MapOp]},map:function(c){return c.intersection(a)}})}return e.checkNotGeometryCollection(e),e.checkNotGeometryCollection(r),Fn.overlayOp(e,r,$e.INTERSECTION)},$e.symDifference=function(e,r){if(e.isEmpty()||r.isEmpty()){if(e.isEmpty()&&r.isEmpty())return $e.createEmptyResult($e.SYMDIFFERENCE,e,r,e.getFactory());if(e.isEmpty())return r.copy();if(r.isEmpty())return e.copy()}return e.checkNotGeometryCollection(e),e.checkNotGeometryCollection(r),Fn.overlayOp(e,r,$e.SYMDIFFERENCE)},$e.resultDimension=function(e,r,a){var c=r.getDimension(),g=a.getDimension(),b=-1;switch(e){case $e.INTERSECTION:b=Math.min(c,g);break;case $e.UNION:b=Math.max(c,g);break;case $e.DIFFERENCE:b=c;break;case $e.SYMDIFFERENCE:b=Math.max(c,g)}return b},$e.createEmptyResult=function(e,r,a,c){var g=null;switch($e.resultDimension(e,r,a)){case-1:g=c.createGeometryCollection(new Array(0).fill(null));break;case 0:g=c.createPoint();break;case 1:g=c.createLineString();break;case 2:g=c.createPolygon()}return g},$e.difference=function(e,r){return e.isEmpty()?$e.createEmptyResult($e.DIFFERENCE,e,r,e.getFactory()):r.isEmpty()?e.copy():(e.checkNotGeometryCollection(e),e.checkNotGeometryCollection(r),Fn.overlayOp(e,r,$e.DIFFERENCE))},$e.isResultOfOp=function(){if(arguments.length===2){var e=arguments[0],r=arguments[1],a=e.getLocation(0),c=e.getLocation(1);return $e.isResultOfOp(a,c,r)}if(arguments.length===3){var g=arguments[0],b=arguments[1],I=arguments[2];switch(g===A.BOUNDARY&&(g=A.INTERIOR),b===A.BOUNDARY&&(b=A.INTERIOR),I){case $e.INTERSECTION:return g===A.INTERIOR&&b===A.INTERIOR;case $e.UNION:return g===A.INTERIOR||b===A.INTERIOR;case $e.DIFFERENCE:return g===A.INTERIOR&&b!==A.INTERIOR;case $e.SYMDIFFERENCE:return g===A.INTERIOR&&b!==A.INTERIOR||g!==A.INTERIOR&&b===A.INTERIOR}return!1}},$e.INTERSECTION=1,$e.UNION=2,$e.DIFFERENCE=3,$e.SYMDIFFERENCE=4,o(ii.prototype,{selfSnap:function(e){var r=new Bt(e),a=r.snapTo(e,this.snapTolerance);return a},removeCommonBits:function(e){this.cbr=new ge,this.cbr.add(e[0]),this.cbr.add(e[1]);var r=new Array(2).fill(null);return r[0]=this.cbr.removeCommonBits(e[0].copy()),r[1]=this.cbr.removeCommonBits(e[1].copy()),r},prepareResult:function(e){return this.cbr.addCommonBits(e),e},getResultGeometry:function(e){var r=this.snap(this.geom),a=$e.overlayOp(r[0],r[1],e);return this.prepareResult(a)},checkValid:function(e){e.isValid()||$.out.println("Snapped geometry is invalid")},computeSnapTolerance:function(){this.snapTolerance=Bt.computeOverlaySnapTolerance(this.geom[0],this.geom[1])},snap:function(e){var r=this.removeCommonBits(e),a=Bt.snap(r[0],r[1],this.snapTolerance);return a},interfaces_:function(){return[]},getClass:function(){return ii}}),ii.overlayOp=function(e,r,a){var c=new ii(e,r);return c.getResultGeometry(a)},ii.union=function(e,r){return ii.overlayOp(e,r,$e.UNION)},ii.intersection=function(e,r){return ii.overlayOp(e,r,$e.INTERSECTION)},ii.symDifference=function(e,r){return ii.overlayOp(e,r,$e.SYMDIFFERENCE)},ii.difference=function(e,r){return ii.overlayOp(e,r,$e.DIFFERENCE)},o(Fn.prototype,{getResultGeometry:function(e){var r=null,a=!1,c=null;try{r=$e.overlayOp(this.geom[0],this.geom[1],e);var g=!0;g&&(a=!0)}catch(b){if(!(b instanceof x))throw b;c=b}finally{}if(!a)try{r=ii.overlayOp(this.geom[0],this.geom[1],e)}catch(b){throw b instanceof x?c:b}finally{}return r},interfaces_:function(){return[]},getClass:function(){return Fn}}),Fn.overlayOp=function(e,r,a){var c=new Fn(e,r);return c.getResultGeometry(a)},Fn.union=function(e,r){return Fn.overlayOp(e,r,$e.UNION)},Fn.intersection=function(e,r){return Fn.overlayOp(e,r,$e.INTERSECTION)},Fn.symDifference=function(e,r){return Fn.overlayOp(e,r,$e.SYMDIFFERENCE)},Fn.difference=function(e,r){return Fn.overlayOp(e,r,$e.DIFFERENCE)},o(mi.prototype,{addPolygon:function(e){if(e.isEmpty())return null;var r=null,a=0,c=this.horizontalBisector(e);if(c.getLength()===0)a=0,r=c.getCoordinate();else{var g=Fn.overlayOp(c,e,$e.INTERSECTION),b=this.widestGeometry(g);a=b.getEnvelopeInternal().getWidth(),r=mi.centre(b.getEnvelopeInternal())}(this.interiorPoint===null||a>this.maxWidth)&&(this.interiorPoint=r,this.maxWidth=a)},getInteriorPoint:function(){return this.interiorPoint},widestGeometry:function(){if(arguments[0]instanceof Re){var r=arguments[0];if(r.isEmpty())return r;for(var a=r.getGeometryN(0),c=1;c<r.getNumGeometries();c++)r.getGeometryN(c).getEnvelopeInternal().getWidth()>a.getEnvelopeInternal().getWidth()&&(a=r.getGeometryN(c));return a}if(arguments[0]instanceof ae){var g=arguments[0];return g instanceof Re?this.widestGeometry(g):g}},horizontalBisector:function(e){var r=e.getEnvelopeInternal(),a=Gr.getBisectorY(e);return this.factory.createLineString([new w(r.getMinX(),a),new w(r.getMaxX(),a)])},add:function(e){if(e instanceof _t)this.addPolygon(e);else if(e instanceof Re)for(var r=e,a=0;a<r.getNumGeometries();a++)this.add(r.getGeometryN(a))},interfaces_:function(){return[]},getClass:function(){return mi}}),mi.centre=function(e){return new w(mi.avg(e.getMinX(),e.getMaxX()),mi.avg(e.getMinY(),e.getMaxY()))},mi.avg=function(e,r){return(e+r)/2},o(Gr.prototype,{updateInterval:function(e){e<=this.centreY?e>this.loY&&(this.loY=e):e>this.centreY&&e<this.hiY&&(this.hiY=e)},getBisectorY:function(){this.process(this.poly.getExteriorRing());for(var e=0;e<this.poly.getNumInteriorRing();e++)this.process(this.poly.getInteriorRingN(e));var r=mi.avg(this.hiY,this.loY);return r},process:function(e){for(var r=e.getCoordinateSequence(),a=0;a<r.size();a++){var c=r.getY(a);this.updateInterval(c)}},interfaces_:function(){return[]},getClass:function(){return Gr}}),Gr.getBisectorY=function(e){var r=new Gr(e);return r.getBisectorY()},mi.SafeBisectorFinder=Gr,o(Uu.prototype,{addEndpoints:function(){if(arguments[0]instanceof ae){var e=arguments[0];if(e instanceof Se)this.addEndpoints(e.getCoordinates());else if(e instanceof Re)for(var r=e,a=0;a<r.getNumGeometries();a++)this.addEndpoints(r.getGeometryN(a))}else if(arguments[0]instanceof Array){var c=arguments[0];this.add(c[0]),this.add(c[c.length-1])}},getInteriorPoint:function(){return this.interiorPoint},addInterior:function(){if(arguments[0]instanceof ae){var e=arguments[0];if(e instanceof Se)this.addInterior(e.getCoordinates());else if(e instanceof Re)for(var r=e,a=0;a<r.getNumGeometries();a++)this.addInterior(r.getGeometryN(a))}else if(arguments[0]instanceof Array)for(var c=arguments[0],a=1;a<c.length-1;a++)this.add(c[a])},add:function(e){var r=e.distance(this.centroid);r<this.minDistance&&(this.interiorPoint=new w(e),this.minDistance=r)},interfaces_:function(){return[]},getClass:function(){return Uu}}),o(gs.prototype,{getInteriorPoint:function(){return this.interiorPoint},add:function(){if(arguments[0]instanceof ae){var e=arguments[0];if(e instanceof Ge)this.add(e.getCoordinate());else if(e instanceof Re)for(var r=e,a=0;a<r.getNumGeometries();a++)this.add(r.getGeometryN(a))}else if(arguments[0]instanceof w){var c=arguments[0],g=c.distance(this.centroid);g<this.minDistance&&(this.interiorPoint=new w(c),this.minDistance=g)}},interfaces_:function(){return[]},getClass:function(){return gs}}),o(Ot.prototype,{interfaces_:function(){return[]},getClass:function(){return Ot}}),Ot.toDegrees=function(e){return 180*e/Math.PI},Ot.normalize=function(e){for(;e>Math.PI;)e-=Ot.PI_TIMES_2;for(;e<=-Math.PI;)e+=Ot.PI_TIMES_2;return e},Ot.angle=function(){if(arguments.length===1){var e=arguments[0];return Math.atan2(e.y,e.x)}if(arguments.length===2){var r=arguments[0],a=arguments[1],c=a.x-r.x,g=a.y-r.y;return Math.atan2(g,c)}},Ot.isAcute=function(e,r,a){var c=e.x-r.x,g=e.y-r.y,b=a.x-r.x,I=a.y-r.y,F=c*b+g*I;return F>0},Ot.isObtuse=function(e,r,a){var c=e.x-r.x,g=e.y-r.y,b=a.x-r.x,I=a.y-r.y,F=c*b+g*I;return 0>F},Ot.interiorAngle=function(e,r,a){var c=Ot.angle(r,e),g=Ot.angle(r,a);return Math.abs(g-c)},Ot.normalizePositive=function(e){if(0>e){for(;0>e;)e+=Ot.PI_TIMES_2;e>=Ot.PI_TIMES_2&&(e=0)}else{for(;e>=Ot.PI_TIMES_2;)e-=Ot.PI_TIMES_2;0>e&&(e=0)}return e},Ot.angleBetween=function(e,r,a){var c=Ot.angle(r,e),g=Ot.angle(r,a);return Ot.diff(c,g)},Ot.diff=function(e,r){var a=null;return a=r>e?r-e:e-r,a>Math.PI&&(a=2*Math.PI-a),a},Ot.toRadians=function(e){return e*Math.PI/180},Ot.getTurn=function(e,r){var a=Math.sin(r-e);return a>0?Ot.COUNTERCLOCKWISE:0>a?Ot.CLOCKWISE:Ot.NONE},Ot.angleBetweenOriented=function(e,r,a){var c=Ot.angle(r,e),g=Ot.angle(r,a),b=g-c;return b<=-Math.PI?b+Ot.PI_TIMES_2:b>Math.PI?b-Ot.PI_TIMES_2:b},Ot.PI_TIMES_2=2*Math.PI,Ot.PI_OVER_2=Math.PI/2,Ot.PI_OVER_4=Math.PI/4,Ot.COUNTERCLOCKWISE=xe.COUNTERCLOCKWISE,Ot.CLOCKWISE=xe.CLOCKWISE,Ot.NONE=xe.COLLINEAR,o(Zt.prototype,{area:function(){return Zt.area(this.p0,this.p1,this.p2)},signedArea:function(){return Zt.signedArea(this.p0,this.p1,this.p2)},interpolateZ:function(e){if(e===null)throw new d;return Zt.interpolateZ(e,this.p0,this.p1,this.p2)},longestSideLength:function(){return Zt.longestSideLength(this.p0,this.p1,this.p2)},isAcute:function(){return Zt.isAcute(this.p0,this.p1,this.p2)},circumcentre:function(){return Zt.circumcentre(this.p0,this.p1,this.p2)},area3D:function(){return Zt.area3D(this.p0,this.p1,this.p2)},centroid:function(){return Zt.centroid(this.p0,this.p1,this.p2)},inCentre:function(){return Zt.inCentre(this.p0,this.p1,this.p2)},interfaces_:function(){return[]},getClass:function(){return Zt}}),Zt.area=function(e,r,a){return Math.abs(((a.x-e.x)*(r.y-e.y)-(r.x-e.x)*(a.y-e.y))/2)},Zt.signedArea=function(e,r,a){return((a.x-e.x)*(r.y-e.y)-(r.x-e.x)*(a.y-e.y))/2},Zt.det=function(e,r,a,c){return e*c-r*a},Zt.interpolateZ=function(e,r,a,c){var g=r.x,b=r.y,I=a.x-g,F=c.x-g,Z=a.y-b,ne=c.y-b,de=I*ne-F*Z,me=e.x-g,_e=e.y-b,Ze=(ne*me-F*_e)/de,gt=(-Z*me+I*_e)/de,St=r.z+Ze*(a.z-r.z)+gt*(c.z-r.z);return St},Zt.longestSideLength=function(e,r,a){var c=e.distance(r),g=r.distance(a),b=a.distance(e),I=c;return g>I&&(I=g),b>I&&(I=b),I},Zt.isAcute=function(e,r,a){return Ot.isAcute(e,r,a)&&Ot.isAcute(r,a,e)?!!Ot.isAcute(a,e,r):!1},Zt.circumcentre=function(e,r,a){var c=a.x,g=a.y,b=e.x-c,I=e.y-g,F=r.x-c,Z=r.y-g,ne=2*Zt.det(b,I,F,Z),de=Zt.det(I,b*b+I*I,Z,F*F+Z*Z),me=Zt.det(b,b*b+I*I,F,F*F+Z*Z),_e=c-de/ne,Ze=g+me/ne;return new w(_e,Ze)},Zt.perpendicularBisector=function(e,r){var a=r.x-e.x,c=r.y-e.y,g=new re(e.x+a/2,e.y+c/2,1),b=new re(e.x-c+a/2,e.y+a+c/2,1);return new re(g,b)},Zt.angleBisector=function(e,r,a){var c=r.distance(e),g=r.distance(a),b=c/(c+g),I=a.x-e.x,F=a.y-e.y,Z=new w(e.x+b*I,e.y+b*F);return Z},Zt.area3D=function(e,r,a){var c=r.x-e.x,g=r.y-e.y,b=r.z-e.z,I=a.x-e.x,F=a.y-e.y,Z=a.z-e.z,ne=g*Z-b*F,de=b*I-c*Z,me=c*F-g*I,_e=ne*ne+de*de+me*me,Ze=Math.sqrt(_e)/2;return Ze},Zt.centroid=function(e,r,a){var c=(e.x+r.x+a.x)/3,g=(e.y+r.y+a.y)/3;return new w(c,g)},Zt.inCentre=function(e,r,a){var c=r.distance(a),g=e.distance(a),b=e.distance(r),I=c+g+b,F=(c*e.x+g*r.x+b*a.x)/I,Z=(c*e.y+g*r.y+b*a.y)/I;return new w(F,Z)},o(pi.prototype,{getRadius:function(){return this.compute(),this.radius},getDiameter:function(){switch(this.compute(),this.extremalPts.length){case 0:return this.input.getFactory().createLineString();case 1:return this.input.getFactory().createPoint(this.centre)}var e=this.extremalPts[0],r=this.extremalPts[1];return this.input.getFactory().createLineString([e,r])},getExtremalPoints:function(){return this.compute(),this.extremalPts},computeCirclePoints:function(){if(this.input.isEmpty())return this.extremalPts=new Array(0).fill(null),null;if(this.input.getNumPoints()===1){var a=this.input.getCoordinates();return this.extremalPts=[new w(a[0])],null}var e=this.input.convexHull(),r=e.getCoordinates(),a=r;if(r[0].equals2D(r[r.length-1])&&(a=new Array(r.length-1).fill(null),Le.copyDeep(r,0,a,0,r.length-1)),a.length<=2)return this.extremalPts=Le.copyDeep(a),null;for(var c=pi.lowestPoint(a),g=pi.pointWitMinAngleWithX(a,c),b=0;b<a.length;b++){var I=pi.pointWithMinAngleWithSegment(a,c,g);if(Ot.isObtuse(c,I,g))return this.extremalPts=[new w(c),new w(g)],null;if(Ot.isObtuse(I,c,g))c=I;else{if(!Ot.isObtuse(I,g,c))return this.extremalPts=[new w(c),new w(g),new w(I)],null;g=I}}N.shouldNeverReachHere("Logic failure in Minimum Bounding Circle algorithm!")},compute:function(){return this.extremalPts!==null?null:(this.computeCirclePoints(),this.computeCentre(),void(this.centre!==null&&(this.radius=this.centre.distance(this.extremalPts[0]))))},getFarthestPoints:function(){switch(this.compute(),this.extremalPts.length){case 0:return this.input.getFactory().createLineString();case 1:return this.input.getFactory().createPoint(this.centre)}var e=this.extremalPts[0],r=this.extremalPts[this.extremalPts.length-1];return this.input.getFactory().createLineString([e,r])},getCircle:function(){if(this.compute(),this.centre===null)return this.input.getFactory().createPolygon();var e=this.input.getFactory().createPoint(this.centre);return this.radius===0?e:e.buffer(this.radius)},getCentre:function(){return this.compute(),this.centre},computeCentre:function(){switch(this.extremalPts.length){case 0:this.centre=null;break;case 1:this.centre=this.extremalPts[0];break;case 2:this.centre=new w((this.extremalPts[0].x+this.extremalPts[1].x)/2,(this.extremalPts[0].y+this.extremalPts[1].y)/2);break;case 3:this.centre=Zt.circumcentre(this.extremalPts[0],this.extremalPts[1],this.extremalPts[2])}},interfaces_:function(){return[]},getClass:function(){return pi}}),pi.pointWitMinAngleWithX=function(e,r){for(var a=h.MAX_VALUE,c=null,g=0;g<e.length;g++){var b=e[g];if(b!==r){var I=b.x-r.x,F=b.y-r.y;0>F&&(F=-F);var Z=Math.sqrt(I*I+F*F),ne=F/Z;a>ne&&(a=ne,c=b)}}return c},pi.lowestPoint=function(e){for(var r=e[0],a=1;a<e.length;a++)e[a].y<r.y&&(r=e[a]);return r},pi.pointWithMinAngleWithSegment=function(e,r,a){for(var c=h.MAX_VALUE,g=null,b=0;b<e.length;b++){var I=e[b];if(I!==r&&I!==a){var F=Ot.angleBetween(r,I,a);c>F&&(c=F,g=I)}}return g},o(or.prototype,{getWidthCoordinate:function(){return this.computeMinimumDiameter(),this.minWidthPt},getSupportingSegment:function(){return this.computeMinimumDiameter(),this.inputGeom.getFactory().createLineString([this.minBaseSeg.p0,this.minBaseSeg.p1])},getDiameter:function(){if(this.computeMinimumDiameter(),this.minWidthPt===null)return this.inputGeom.getFactory().createLineString(null);var e=this.minBaseSeg.project(this.minWidthPt);return this.inputGeom.getFactory().createLineString([e,this.minWidthPt])},computeWidthConvex:function(e){e instanceof _t?this.convexHullPts=e.getExteriorRing().getCoordinates():this.convexHullPts=e.getCoordinates(),this.convexHullPts.length===0?(this.minWidth=0,this.minWidthPt=null,this.minBaseSeg=null):this.convexHullPts.length===1?(this.minWidth=0,this.minWidthPt=this.convexHullPts[0],this.minBaseSeg.p0=this.convexHullPts[0],this.minBaseSeg.p1=this.convexHullPts[0]):this.convexHullPts.length===2||this.convexHullPts.length===3?(this.minWidth=0,this.minWidthPt=this.convexHullPts[0],this.minBaseSeg.p0=this.convexHullPts[0],this.minBaseSeg.p1=this.convexHullPts[1]):this.computeConvexRingMinDiameter(this.convexHullPts)},computeConvexRingMinDiameter:function(e){this.minWidth=h.MAX_VALUE;for(var r=1,a=new nt,c=0;c<e.length-1;c++)a.p0=e[c],a.p1=e[c+1],r=this.findMaxPerpDistance(e,a,r)},computeMinimumDiameter:function(){if(this.minWidthPt!==null)return null;if(this.isConvex)this.computeWidthConvex(this.inputGeom);else{var e=new Rn(this.inputGeom).getConvexHull();this.computeWidthConvex(e)}},getLength:function(){return this.computeMinimumDiameter(),this.minWidth},findMaxPerpDistance:function(e,r,a){for(var c=r.distancePerpendicular(e[a]),g=c,b=a,I=b;g>=c;)c=g,b=I,I=or.nextIndex(e,b),g=r.distancePerpendicular(e[I]);return c<this.minWidth&&(this.minPtIndex=b,this.minWidth=c,this.minWidthPt=e[this.minPtIndex],this.minBaseSeg=new nt(r)),b},getMinimumRectangle:function(){if(this.computeMinimumDiameter(),this.minWidth===0)return this.minBaseSeg.p0.equals2D(this.minBaseSeg.p1)?this.inputGeom.getFactory().createPoint(this.minBaseSeg.p0):this.minBaseSeg.toGeometry(this.inputGeom.getFactory());for(var e=this.minBaseSeg.p1.x-this.minBaseSeg.p0.x,r=this.minBaseSeg.p1.y-this.minBaseSeg.p0.y,a=h.MAX_VALUE,c=-h.MAX_VALUE,g=h.MAX_VALUE,b=-h.MAX_VALUE,I=0;I<this.convexHullPts.length;I++){var F=or.computeC(e,r,this.convexHullPts[I]);F>c&&(c=F),a>F&&(a=F);var Z=or.computeC(-r,e,this.convexHullPts[I]);Z>b&&(b=Z),g>Z&&(g=Z)}var ne=or.computeSegmentForLine(-e,-r,b),de=or.computeSegmentForLine(-e,-r,g),me=or.computeSegmentForLine(-r,e,c),_e=or.computeSegmentForLine(-r,e,a),Ze=me.lineIntersection(ne),gt=_e.lineIntersection(ne),St=_e.lineIntersection(de),yn=me.lineIntersection(de),Un=this.inputGeom.getFactory().createLinearRing([Ze,gt,St,yn,Ze]);return this.inputGeom.getFactory().createPolygon(Un,null)},interfaces_:function(){return[]},getClass:function(){return or}}),or.nextIndex=function(e,r){return r++,r>=e.length&&(r=0),r},or.computeC=function(e,r,a){return e*a.y-r*a.x},or.getMinimumDiameter=function(e){return new or(e).getDiameter()},or.getMinimumRectangle=function(e){return new or(e).getMinimumRectangle()},or.computeSegmentForLine=function(e,r,a){var c=null,g=null;return Math.abs(r)>Math.abs(e)?(c=new w(0,a/r),g=new w(1,a/r-e/r)):(c=new w(a/e,0),g=new w(a/e-r/e,1)),new nt(c,g)};var pA=Object.freeze({Centroid:it,CGAlgorithms:xe,ConvexHull:Rn,InteriorPointArea:mi,InteriorPointLine:Uu,InteriorPointPoint:gs,RobustLineIntersector:Fe,MinimumBoundingCircle:pi,MinimumDiameter:or});o(Wi.prototype,{getResultGeometry:function(){return new zs(this.distanceTolerance).transform(this.inputGeom)},setDistanceTolerance:function(e){if(0>=e)throw new d;this.distanceTolerance=e},interfaces_:function(){return[]},getClass:function(){return Wi}}),Wi.densifyPoints=function(e,r,a){for(var c=new nt,g=new H,b=0;b<e.length-1;b++){c.p0=e[b],c.p1=e[b+1],g.add(c.p0,!1);var I=c.getLength(),F=Math.trunc(I/r)+1;if(F>1)for(var Z=I/F,ne=1;F>ne;ne++){var de=ne*Z/I,me=c.pointAlong(de);a.makePrecise(me),g.add(me,!1)}}return g.add(e[e.length-1],!1),g.toCoordinateArray()},Wi.densify=function(e,r){var a=new Wi(e);return a.setDistanceTolerance(r),a.getResultGeometry()},_(zs,Bn),o(zs.prototype,{transformMultiPolygon:function(e,r){var a=Bn.prototype.transformMultiPolygon.call(this,e,r);return this.createValidArea(a)},transformPolygon:function(e,r){var a=Bn.prototype.transformPolygon.call(this,e,r);return r instanceof nn?a:this.createValidArea(a)},transformCoordinates:function(e,r){var a=e.toCoordinateArray(),c=Wi.densifyPoints(a,this.distanceTolerance,r.getPrecisionModel());return r instanceof Se&&c.length===1&&(c=new Array(0).fill(null)),this.factory.getCoordinateSequenceFactory().create(c)},createValidArea:function(e){return e.buffer(0)},interfaces_:function(){return[]},getClass:function(){return zs}}),Wi.DensifyTransformer=zs;var vA=Object.freeze({Densifier:Wi});o(vi.prototype,{find:function(e){var r=this;do{if(r===null)return null;if(r.dest().equals2D(e))return r;r=r.oNext()}while(r!==this);return null},dest:function(){return this._sym._orig},oNext:function(){return this._sym._next},insert:function(e){if(this.oNext()===this)return this.insertAfter(e),null;var r=this.compareTo(e),a=this;do{var c=a.oNext(),g=c.compareTo(e);if(g!==r||c===this)return a.insertAfter(e),null;a=c}while(a!==this);N.shouldNeverReachHere()},insertAfter:function(e){N.equals(this._orig,e.orig());var r=this.oNext();this._sym.setNext(e),e.sym().setNext(r)},degree:function(){var r=0,a=this;do r++,a=a.oNext();while(a!==this);return r},equals:function(){if(arguments.length===2){var e=arguments[0],r=arguments[1];return this._orig.equals2D(e)&&this._sym._orig.equals(r)}},deltaY:function(){return this._sym._orig.y-this._orig.y},sym:function(){return this._sym},prev:function(){return this._sym.next()._sym},compareAngularDirection:function(e){var r=this.deltaX(),a=this.deltaY(),c=e.deltaX(),g=e.deltaY();if(r===c&&a===g)return 0;var b=qt.quadrant(r,a),I=qt.quadrant(c,g);return b>I?1:I>b?-1:xe.computeOrientation(e._orig,e.dest(),this.dest())},prevNode:function(){for(var e=this;e.degree()===2;)if(e=e.prev(),e===this)return null;return e},compareTo:function(e){var r=e,a=this.compareAngularDirection(r);return a},next:function(){return this._next},setSym:function(e){this._sym=e},orig:function(){return this._orig},toString:function(){return"HE("+this._orig.x+" "+this._orig.y+", "+this._sym._orig.x+" "+this._sym._orig.y+")"},setNext:function(e){this._next=e},init:function(e){this.setSym(e),e.setSym(this),this.setNext(e),e.setNext(this)},deltaX:function(){return this._sym._orig.x-this._orig.x},interfaces_:function(){return[]},getClass:function(){return vi}}),vi.init=function(e,r){if(e._sym!==null||r._sym!==null||e._next!==null||r._next!==null)throw new IllegalStateException("Edges are already initialized");return e.init(r),e},vi.create=function(e,r){var a=new vi(e),c=new vi(r);return a.init(c),a},_(gr,vi),o(gr.prototype,{mark:function(){this._isMarked=!0},setMark:function(e){this._isMarked=e},isMarked:function(){return this._isMarked},interfaces_:function(){return[]},getClass:function(){return gr}}),gr.setMarkBoth=function(e,r){e.setMark(r),e.sym().setMark(r)},gr.isMarked=function(e){return e.isMarked()},gr.setMark=function(e,r){e.setMark(r)},gr.markBoth=function(e){e.mark(),e.sym().mark()},gr.mark=function(e){e.mark()},o(Pi.prototype,{insert:function(e,r,a){var c=this.create(e,r);a!==null?a.insert(c):this.vertexMap.put(e,c);var g=this.vertexMap.get(r);return g!==null?g.insert(c.sym()):this.vertexMap.put(r,c.sym()),c},create:function(e,r){var a=this.createEdge(e),c=this.createEdge(r);return vi.init(a,c),a},createEdge:function(e){return new vi(e)},addEdge:function(e,r){if(!Pi.isValidEdge(e,r))return null;var a=this.vertexMap.get(e),c=null;if(a!==null&&(c=a.find(r)),c!==null)return c;var g=this.insert(e,r,a);return g},getVertexEdges:function(){return this.vertexMap.values()},findEdge:function(e,r){var a=this.vertexMap.get(e);return a===null?null:a.find(r)},interfaces_:function(){return[]},getClass:function(){return Pi}}),Pi.isValidEdge=function(e,r){var a=r.compareTo(e);return a!==0},_(mo,gr),o(mo.prototype,{setStart:function(){this._isStart=!0},isStart:function(){return this._isStart},interfaces_:function(){return[]},getClass:function(){return mo}}),_(Zo,Pi),o(Zo.prototype,{createEdge:function(e){return new mo(e)},interfaces_:function(){return[]},getClass:function(){return Zo}}),o(Xo.prototype,{addLine:function(e){this.lines.add(this.factory.createLineString(e.toCoordinateArray()))},updateRingStartEdge:function(e){return e.isStart()||(e=e.sym(),e.isStart())?this.ringStartEdge===null?(this.ringStartEdge=e,null):void(e.orig().compareTo(this.ringStartEdge.orig())<0&&(this.ringStartEdge=e)):null},getResult:function(){return this.result===null&&this.computeResult(),this.result},process:function(e){var r=e.prevNode();r===null&&(r=e),this.stackEdges(r),this.buildLines()},buildRing:function(e){var r=new H,a=e;for(r.add(a.orig().copy(),!1);a.sym().degree()===2;){var c=a.next();if(c===e)break;r.add(c.orig().copy(),!1),a=c}r.add(a.dest().copy(),!1),this.addLine(r)},buildLine:function(e){var r=new H,a=e;for(this.ringStartEdge=null,gr.markBoth(a),r.add(a.orig().copy(),!1);a.sym().degree()===2;){this.updateRingStartEdge(a);var c=a.next();if(c===e)return this.buildRing(this.ringStartEdge),null;r.add(c.orig().copy(),!1),a=c,gr.markBoth(a)}r.add(a.dest().copy(),!1),this.stackEdges(a.sym()),this.addLine(r)},stackEdges:function(e){var r=e;do gr.isMarked(r)||this.nodeEdgeStack.add(r),r=r.oNext();while(r!==e)},computeResult:function(){for(var e=this.graph.getVertexEdges(),r=e.iterator();r.hasNext();){var a=r.next();gr.isMarked(a)||this.process(a)}this.result=this.factory.buildGeometry(this.lines)},buildLines:function(){for(;!this.nodeEdgeStack.empty();){var e=this.nodeEdgeStack.pop();gr.isMarked(e)||this.buildLine(e)}},add:function(){if(arguments[0]instanceof ae){var e=arguments[0];e.apply({interfaces_:function(){return[be]},filter:function(Z){Z instanceof Se&&this.add(Z)}})}else if(X(arguments[0],M))for(var r=arguments[0],a=r.iterator();a.hasNext();){var c=a.next();this.add(c)}else if(arguments[0]instanceof Se){var g=arguments[0];this.factory===null&&(this.factory=g.getFactory());for(var b=g.getCoordinateSequence(),I=!1,a=1;a<b.size();a++){var F=this.graph.addEdge(b.getCoordinate(a-1),b.getCoordinate(a));F!==null&&(I||(F.setStart(),I=!0))}}},interfaces_:function(){return[]},getClass:function(){return Xo}}),Xo.dissolve=function(e){var r=new Xo;return r.add(e),r.getResult()};var yA=Object.freeze({LineDissolver:Xo});o(Di.prototype,{hasChildren:function(){for(var e=0;4>e;e++)if(this.subnode[e]!==null)return!0;return!1},isPrunable:function(){return!(this.hasChildren()||this.hasItems())},addAllItems:function(e){e.addAll(this.items);for(var r=0;4>r;r++)this.subnode[r]!==null&&this.subnode[r].addAllItems(e);return e},getNodeCount:function(){for(var e=0,r=0;4>r;r++)this.subnode[r]!==null&&(e+=this.subnode[r].size());return e+1},size:function(){for(var e=0,r=0;4>r;r++)this.subnode[r]!==null&&(e+=this.subnode[r].size());return e+this.items.size()},addAllItemsFromOverlapping:function(e,r){if(!this.isSearchMatch(e))return null;r.addAll(this.items);for(var a=0;4>a;a++)this.subnode[a]!==null&&this.subnode[a].addAllItemsFromOverlapping(e,r)},visitItems:function(e,r){for(var a=this.items.iterator();a.hasNext();)r.visitItem(a.next())},hasItems:function(){return!this.items.isEmpty()},remove:function(e,r){if(!this.isSearchMatch(e))return!1;for(var a=!1,c=0;4>c;c++)if(this.subnode[c]!==null&&(a=this.subnode[c].remove(e,r))){this.subnode[c].isPrunable()&&(this.subnode[c]=null);break}return a||(a=this.items.remove(r))},visit:function(e,r){if(!this.isSearchMatch(e))return null;this.visitItems(e,r);for(var a=0;4>a;a++)this.subnode[a]!==null&&this.subnode[a].visit(e,r)},getItems:function(){return this.items},depth:function(){for(var e=0,r=0;4>r;r++)if(this.subnode[r]!==null){var a=this.subnode[r].depth();a>e&&(e=a)}return e+1},isEmpty:function(){var r=!0;this.items.isEmpty()||(r=!1);for(var a=0;4>a;a++)this.subnode[a]!==null&&(this.subnode[a].isEmpty()||(r=!1));return r},add:function(e){this.items.add(e)},interfaces_:function(){return[y]},getClass:function(){return Di}}),Di.getSubnodeIndex=function(e,r,a){var c=-1;return e.getMinX()>=r&&(e.getMinY()>=a&&(c=3),e.getMaxY()<=a&&(c=1)),e.getMaxX()<=r&&(e.getMinY()>=a&&(c=2),e.getMaxY()<=a&&(c=0)),c},Zi.exponent=function(e){return Lg(64,e)-1023},Zi.powerOf2=function(e){return Math.pow(2,e)},o(Yo.prototype,{getLevel:function(){return this.level},computeKey:function(){if(arguments.length===1){var e=arguments[0];for(this.level=Yo.computeQuadLevel(e),this.env=new V,this.computeKey(this.level,e);!this.env.contains(e);)this.level+=1,this.computeKey(this.level,e)}else if(arguments.length===2){var r=arguments[0],a=arguments[1],c=Zi.powerOf2(r);this.pt.x=Math.floor(a.getMinX()/c)*c,this.pt.y=Math.floor(a.getMinY()/c)*c,this.env.init(this.pt.x,this.pt.x+c,this.pt.y,this.pt.y+c)}},getEnvelope:function(){return this.env},getCentre:function(){return new w((this.env.getMinX()+this.env.getMaxX())/2,(this.env.getMinY()+this.env.getMaxY())/2)},getPoint:function(){return this.pt},interfaces_:function(){return[]},getClass:function(){return Yo}}),Yo.computeQuadLevel=function(e){var r=e.getWidth(),a=e.getHeight(),c=r>a?r:a,g=Zi.exponent(c)+1;return g},_(ms,Di),o(ms.prototype,{find:function(e){var r=Di.getSubnodeIndex(e,this.centrex,this.centrey);if(r===-1)return this;if(this.subnode[r]!==null){var a=this.subnode[r];return a.find(e)}return this},isSearchMatch:function(e){return this.env.intersects(e)},getSubnode:function(e){return this.subnode[e]===null&&(this.subnode[e]=this.createSubnode(e)),this.subnode[e]},getEnvelope:function(){return this.env},getNode:function(e){var r=Di.getSubnodeIndex(e,this.centrex,this.centrey);if(r!==-1){var a=this.getSubnode(r);return a.getNode(e)}return this},createSubnode:function(e){var r=0,a=0,c=0,g=0;switch(e){case 0:r=this.env.getMinX(),a=this.centrex,c=this.env.getMinY(),g=this.centrey;break;case 1:r=this.centrex,a=this.env.getMaxX(),c=this.env.getMinY(),g=this.centrey;break;case 2:r=this.env.getMinX(),a=this.centrex,c=this.centrey,g=this.env.getMaxY();break;case 3:r=this.centrex,a=this.env.getMaxX(),c=this.centrey,g=this.env.getMaxY()}var b=new V(r,a,c,g),I=new ms(b,this.level-1);return I},insertNode:function(e){N.isTrue(this.env===null||this.env.contains(e.env));var r=Di.getSubnodeIndex(e.env,this.centrex,this.centrey);if(e.level===this.level-1)this.subnode[r]=e;else{var a=this.createSubnode(r);a.insertNode(e),this.subnode[r]=a}},interfaces_:function(){return[]},getClass:function(){return ms}}),ms.createNode=function(e){var r=new Yo(e),a=new ms(r.getEnvelope(),r.getLevel());return a},ms.createExpanded=function(e,r){var a=new V(r);e!==null&&a.expandToInclude(e.env);var c=ms.createNode(a);return e!==null&&c.insertNode(e),c},o(ps.prototype,{interfaces_:function(){return[]},getClass:function(){return ps}}),ps.isZeroWidth=function(e,r){var a=r-e;if(a===0)return!0;var c=Math.max(Math.abs(e),Math.abs(r)),g=a/c,b=Zi.exponent(g);return b<=ps.MIN_BINARY_EXPONENT},ps.MIN_BINARY_EXPONENT=-50,_(po,Di),o(po.prototype,{insert:function(e,r){var a=Di.getSubnodeIndex(e,po.origin.x,po.origin.y);if(a===-1)return this.add(r),null;var c=this.subnode[a];if(c===null||!c.getEnvelope().contains(e)){var g=ms.createExpanded(c,e);this.subnode[a]=g}this.insertContained(this.subnode[a],e,r)},isSearchMatch:function(e){return!0},insertContained:function(e,r,a){N.isTrue(e.getEnvelope().contains(r));var c=ps.isZeroWidth(r.getMinX(),r.getMaxX()),g=ps.isZeroWidth(r.getMinY(),r.getMaxY()),b=null;b=c||g?e.find(r):e.getNode(r),b.add(a)},interfaces_:function(){return[]},getClass:function(){return po}}),po.origin=new w(0,0),o(Cr.prototype,{size:function(){return this.root!==null?this.root.size():0},insert:function(e,r){this.collectStats(e);var a=Cr.ensureExtent(e,this.minExtent);this.root.insert(a,r)},query:function(){if(arguments.length===1){var e=arguments[0],r=new Ra;return this.query(e,r),r.getItems()}if(arguments.length===2){var a=arguments[0],c=arguments[1];this.root.visit(a,c)}},queryAll:function(){var e=new k;return this.root.addAllItems(e),e},remove:function(e,r){var a=Cr.ensureExtent(e,this.minExtent);return this.root.remove(a,r)},collectStats:function(e){var r=e.getWidth();r<this.minExtent&&r>0&&(this.minExtent=r);var a=e.getHeight();a<this.minExtent&&a>0&&(this.minExtent=a)},depth:function(){return this.root!==null?this.root.depth():0},isEmpty:function(){return this.root===null},interfaces_:function(){return[Pt,y]},getClass:function(){return Cr}}),Cr.ensureExtent=function(e,r){var a=e.getMinX(),c=e.getMaxX(),g=e.getMinY(),b=e.getMaxY();return a!==c&&g!==b?e:(a===c&&(a-=r/2,c=a+r/2),g===b&&(g-=r/2,b=g+r/2),new V(a,c,g,b))},Cr.serialVersionUID=-7461163625812743e3;var bA=Object.freeze({Quadtree:Cr}),xA=Object.freeze({STRtree:pn}),CA=Object.freeze({quadtree:bA,strtree:xA}),_A=["Point","MultiPoint","LineString","MultiLineString","Polygon","MultiPolygon"];o(Ko.prototype,{read:function(e){var r=void 0;r=typeof e=="string"?JSON.parse(e):e;var a=r.type;if(!Yi[a])throw new Error("Unknown GeoJSON type: "+r.type);return _A.indexOf(a)!==-1?Yi[a].apply(this,[r.coordinates]):a==="GeometryCollection"?Yi[a].apply(this,[r.geometries]):Yi[a].apply(this,[r])},write:function(e){var r=e.getGeometryType();if(!Xs[r])throw new Error("Geometry is not supported");return Xs[r].apply(this,[e])}});var Yi={Feature:function(e){var r={};for(var a in e)r[a]=e[a];if(e.geometry){var c=e.geometry.type;if(!Yi[c])throw new Error("Unknown GeoJSON type: "+e.type);r.geometry=this.read(e.geometry)}return e.bbox&&(r.bbox=Yi.bbox.apply(this,[e.bbox])),r},FeatureCollection:function(e){var r={};if(e.features){r.features=[];for(var a=0;a<e.features.length;++a)r.features.push(this.read(e.features[a]))}return e.bbox&&(r.bbox=this.parse.bbox.apply(this,[e.bbox])),r},coordinates:function(r){for(var a=[],c=0;c<r.length;++c){var g=r[c];a.push(new w(g[0],g[1]))}return a},bbox:function(e){return this.geometryFactory.createLinearRing([new w(e[0],e[1]),new w(e[2],e[1]),new w(e[2],e[3]),new w(e[0],e[3]),new w(e[0],e[1])])},Point:function(e){var r=new w(e[0],e[1]);return this.geometryFactory.createPoint(r)},MultiPoint:function(e){for(var r=[],a=0;a<e.length;++a)r.push(Yi.Point.apply(this,[e[a]]));return this.geometryFactory.createMultiPoint(r)},LineString:function(e){var r=Yi.coordinates.apply(this,[e]);return this.geometryFactory.createLineString(r)},MultiLineString:function(e){for(var r=[],a=0;a<e.length;++a)r.push(Yi.LineString.apply(this,[e[a]]));return this.geometryFactory.createMultiLineString(r)},Polygon:function(e){for(var r=Yi.coordinates.apply(this,[e[0]]),a=this.geometryFactory.createLinearRing(r),c=[],g=1;g<e.length;++g){var b=e[g],I=Yi.coordinates.apply(this,[b]),F=this.geometryFactory.createLinearRing(I);c.push(F)}return this.geometryFactory.createPolygon(a,c)},MultiPolygon:function(e){for(var r=[],a=0;a<e.length;++a){var c=e[a];r.push(Yi.Polygon.apply(this,[c]))}return this.geometryFactory.createMultiPolygon(r)},GeometryCollection:function(e){for(var r=[],a=0;a<e.length;++a){var c=e[a];r.push(this.read(c))}return this.geometryFactory.createGeometryCollection(r)}},Xs={coordinate:function(e){return[e.x,e.y]},Point:function(e){var r=Xs.coordinate.apply(this,[e.getCoordinate()]);return{type:"Point",coordinates:r}},MultiPoint:function(e){for(var r=[],a=0;a<e.geometries.length;++a){var c=e.geometries[a],g=Xs.Point.apply(this,[c]);r.push(g.coordinates)}return{type:"MultiPoint",coordinates:r}},LineString:function(e){for(var r=[],a=e.getCoordinates(),c=0;c<a.length;++c){var g=a[c];r.push(Xs.coordinate.apply(this,[g]))}return{type:"LineString",coordinates:r}},MultiLineString:function(e){for(var r=[],a=0;a<e.geometries.length;++a){var c=e.geometries[a],g=Xs.LineString.apply(this,[c]);r.push(g.coordinates)}return{type:"MultiLineString",coordinates:r}},Polygon:function(e){var r=[],a=Xs.LineString.apply(this,[e.shell]);r.push(a.coordinates);for(var c=0;c<e.holes.length;++c){var g=e.holes[c],b=Xs.LineString.apply(this,[g]);r.push(b.coordinates)}return{type:"Polygon",coordinates:r}},MultiPolygon:function(e){for(var r=[],a=0;a<e.geometries.length;++a){var c=e.geometries[a],g=Xs.Polygon.apply(this,[c]);r.push(g.coordinates)}return{type:"MultiPolygon",coordinates:r}},GeometryCollection:function(e){for(var r=[],a=0;a<e.geometries.length;++a){var c=e.geometries[a],g=c.getGeometryType();r.push(Xs[g].apply(this,[c]))}return{type:"GeometryCollection",geometries:r}}};o(Bd.prototype,{read:function(e){var r=this.parser.read(e);return this.precisionModel.getType()===Ct.FIXED&&this.reducePrecision(r),r},reducePrecision:function(e){var r,a;if(e.coordinate)this.precisionModel.makePrecise(e.coordinate);else if(e.points)for(r=0,a=e.points.length;a>r;r++)this.precisionModel.makePrecise(e.points[r]);else if(e.geometries)for(r=0,a=e.geometries.length;a>r;r++)this.reducePrecision(e.geometries[r])}}),o(Ba.prototype,{write:function(e){return this.parser.write(e)}}),o(qd.prototype,{read:function(e){var r=this.parser.read(e);return this.precisionModel.getType()===Ct.FIXED&&this.reducePrecision(r),r},reducePrecision:function(e){if(e.coordinate)this.precisionModel.makePrecise(e.coordinate);else if(e.points)for(var r=0,a=e.points.coordinates.length;a>r;r++)this.precisionModel.makePrecise(e.points.coordinates[r]);else if(e.geometries)for(var c=0,g=e.geometries.length;g>c;c++)this.reducePrecision(e.geometries[c])}}),o(zd.prototype,{read:function(e){return e instanceof ol.geom.Point?this.convertFromPoint(e):e instanceof ol.geom.LineString?this.convertFromLineString(e):e instanceof ol.geom.LinearRing?this.convertFromLinearRing(e):e instanceof ol.geom.Polygon?this.convertFromPolygon(e):e instanceof ol.geom.MultiPoint?this.convertFromMultiPoint(e):e instanceof ol.geom.MultiLineString?this.convertFromMultiLineString(e):e instanceof ol.geom.MultiPolygon?this.convertFromMultiPolygon(e):e instanceof ol.geom.GeometryCollection?this.convertFromCollection(e):void 0},convertFromPoint:function(e){var r=e.getCoordinates();return this.geometryFactory.createPoint(new w(r[0],r[1]))},convertFromLineString:function(e){return this.geometryFactory.createLineString(e.getCoordinates().map(function(r){return new w(r[0],r[1])}))},convertFromLinearRing:function(e){return this.geometryFactory.createLinearRing(e.getCoordinates().map(function(r){return new w(r[0],r[1])}))},convertFromPolygon:function(e){for(var r=e.getLinearRings(),a=null,c=[],g=0;g<r.length;g++){var b=this.convertFromLinearRing(r[g]);g===0?a=b:c.push(b)}return this.geometryFactory.createPolygon(a,c)},convertFromMultiPoint:function(e){var r=e.getPoints().map(function(a){return this.convertFromPoint(a)},this);return this.geometryFactory.createMultiPoint(r)},convertFromMultiLineString:function(e){var r=e.getLineStrings().map(function(a){return this.convertFromLineString(a)},this);return this.geometryFactory.createMultiLineString(r)},convertFromMultiPolygon:function(e){var r=e.getPolygons().map(function(a){return this.convertFromPolygon(a)},this);return this.geometryFactory.createMultiPolygon(r)},convertFromCollection:function(e){var r=e.getGeometries().map(function(a){return this.read(a)},this);return this.geometryFactory.createGeometryCollection(r)},write:function(e){return e.getGeometryType()==="Point"?this.convertToPoint(e.getCoordinate()):e.getGeometryType()==="LineString"?this.convertToLineString(e):e.getGeometryType()==="LinearRing"?this.convertToLinearRing(e):e.getGeometryType()==="Polygon"?this.convertToPolygon(e):e.getGeometryType()==="MultiPoint"?this.convertToMultiPoint(e):e.getGeometryType()==="MultiLineString"?this.convertToMultiLineString(e):e.getGeometryType()==="MultiPolygon"?this.convertToMultiPolygon(e):e.getGeometryType()==="GeometryCollection"?this.convertToCollection(e):void 0},convertToPoint:function(e){return new ol.geom.Point([e.x,e.y])},convertToLineString:function(e){var r=e.points.coordinates.map(Jo);return new ol.geom.LineString(r)},convertToLinearRing:function(e){var r=e.points.coordinates.map(Jo);return new ol.geom.LinearRing(r)},convertToPolygon:function(e){for(var r=[e.shell.points.coordinates.map(Jo)],a=0;a<e.holes.length;a++)r.push(e.holes[a].points.coordinates.map(Jo));return new ol.geom.Polygon(r)},convertToMultiPoint:function(e){return new ol.geom.MultiPoint(e.getCoordinates().map(Jo))},convertToMultiLineString:function(e){for(var r=[],a=0;a<e.geometries.length;a++)r.push(this.convertToLineString(e.geometries[a]).getCoordinates());return new ol.geom.MultiLineString(r)},convertToMultiPolygon:function(e){for(var r=[],a=0;a<e.geometries.length;a++)r.push(this.convertToPolygon(e.geometries[a]).getCoordinates());return new ol.geom.MultiPolygon(r)},convertToCollection:function(e){for(var r=[],a=0;a<e.geometries.length;a++){var c=e.geometries[a];r.push(this.write(c))}return new ol.geom.GeometryCollection(r)}});var EA=Object.freeze({GeoJSONReader:Bd,GeoJSONWriter:Ba,OL3Parser:zd,WKTReader:qd,WKTWriter:ot});o(vs.prototype,{rescale:function(){if(X(arguments[0],M))for(var e=arguments[0],r=e.iterator();r.hasNext();){var a=r.next();this.rescale(a.getCoordinates())}else if(arguments[0]instanceof Array){var c=arguments[0];c.length===2&&(new w(c[0]),new w(c[1]));for(var r=0;r<c.length;r++)c[r].x=c[r].x/this.scaleFactor+this.offsetX,c[r].y=c[r].y/this.scaleFactor+this.offsetY;c.length===2&&c[0].equals2D(c[1])&&$.out.println(c)}},scale:function(){if(X(arguments[0],M)){for(var e=arguments[0],r=new k,a=e.iterator();a.hasNext();){var c=a.next();r.add(new ci(this.scale(c.getCoordinates()),c.getData()))}return r}if(arguments[0]instanceof Array){for(var g=arguments[0],b=new Array(g.length).fill(null),a=0;a<g.length;a++)b[a]=new w(Math.round((g[a].x-this.offsetX)*this.scaleFactor),Math.round((g[a].y-this.offsetY)*this.scaleFactor),g[a].z);var I=Le.removeRepeatedPoints(b);return I}},isIntegerPrecision:function(){return this.scaleFactor===1},getNodedSubstrings:function(){var e=this.noder.getNodedSubstrings();return this.isScaled&&this.rescale(e),e},computeNodes:function(e){var r=e;this.isScaled&&(r=this.scale(e)),this.noder.computeNodes(r)},interfaces_:function(){return[zo]},getClass:function(){return vs}});var wA=Object.freeze({MCIndexNoder:ks,ScaledNoder:vs,SegmentString:Pn});o(qa.prototype,{isSimpleMultiPoint:function(e){if(e.isEmpty())return!0;for(var r=new ut,a=0;a<e.getNumGeometries();a++){var c=e.getGeometryN(a),g=c.getCoordinate();if(r.contains(g))return this.nonSimpleLocation=g,!1;r.add(g)}return!0},isSimplePolygonal:function(e){for(var r=fr.getLines(e),a=r.iterator();a.hasNext();){var c=a.next();if(!this.isSimpleLinearGeometry(c))return!1}return!0},hasClosedEndpointIntersection:function(e){for(var r=new ve,a=e.getEdgeIterator();a.hasNext();){var c=a.next(),g=(c.getMaximumSegmentIndex(),c.isClosed()),b=c.getCoordinate(0);this.addEndpoint(r,b,g);var I=c.getCoordinate(c.getNumPoints()-1);this.addEndpoint(r,I,g)}for(var a=r.values().iterator();a.hasNext();){var F=a.next();if(F.isClosed&&F.degree!==2)return this.nonSimpleLocation=F.getCoordinate(),!0}return!1},getNonSimpleLocation:function(){return this.nonSimpleLocation},isSimpleLinearGeometry:function(e){if(e.isEmpty())return!0;var r=new Lr(0,e),a=new Fe,c=r.computeSelfNodes(a,!0);return c.hasIntersection()?c.hasProperIntersection()?(this.nonSimpleLocation=c.getProperIntersectionPoint(),!1):this.hasNonEndpointIntersection(r)?!1:!this.isClosedEndpointsInInterior||!this.hasClosedEndpointIntersection(r):!0},hasNonEndpointIntersection:function(e){for(var r=e.getEdgeIterator();r.hasNext();)for(var a=r.next(),c=a.getMaximumSegmentIndex(),g=a.getEdgeIntersectionList().iterator();g.hasNext();){var b=g.next();if(!b.isEndPoint(c))return this.nonSimpleLocation=b.getCoordinate(),!0}return!1},addEndpoint:function(e,r,a){var c=e.get(r);c===null&&(c=new ys(r),e.put(r,c)),c.addEndpoint(a)},computeSimple:function(e){return this.nonSimpleLocation=null,e.isEmpty()?!0:e instanceof Se?this.isSimpleLinearGeometry(e):e instanceof Lt?this.isSimpleLinearGeometry(e):e instanceof $t?this.isSimpleMultiPoint(e):X(e,Nt)?this.isSimplePolygonal(e):e instanceof Re?this.isSimpleGeometryCollection(e):!0},isSimple:function(){return this.nonSimpleLocation=null,this.computeSimple(this.inputGeom)},isSimpleGeometryCollection:function(e){for(var r=0;r<e.getNumGeometries();r++){var a=e.getGeometryN(r);if(!this.computeSimple(a))return!1}return!0},interfaces_:function(){return[]},getClass:function(){return qa}}),o(ys.prototype,{addEndpoint:function(e){this.degree++,this.isClosed|=e},getCoordinate:function(){return this.pt},interfaces_:function(){return[]},getClass:function(){return ys}}),qa.EndpointInfo=ys,o(Xt.prototype,{getEndCapStyle:function(){return this.endCapStyle},isSingleSided:function(){return this._isSingleSided},setQuadrantSegments:function(e){this.quadrantSegments=e,this.quadrantSegments===0&&(this.joinStyle=Xt.JOIN_BEVEL),this.quadrantSegments<0&&(this.joinStyle=Xt.JOIN_MITRE,this.mitreLimit=Math.abs(this.quadrantSegments)),0>=e&&(this.quadrantSegments=1),this.joinStyle!==Xt.JOIN_ROUND&&(this.quadrantSegments=Xt.DEFAULT_QUADRANT_SEGMENTS)},getJoinStyle:function(){return this.joinStyle},setJoinStyle:function(e){this.joinStyle=e},setSimplifyFactor:function(e){this.simplifyFactor=0>e?0:e},getSimplifyFactor:function(){return this.simplifyFactor},getQuadrantSegments:function(){return this.quadrantSegments},setEndCapStyle:function(e){this.endCapStyle=e},getMitreLimit:function(){return this.mitreLimit},setMitreLimit:function(e){this.mitreLimit=e},setSingleSided:function(e){this._isSingleSided=e},interfaces_:function(){return[]},getClass:function(){return Xt}}),Xt.bufferDistanceError=function(e){var r=Math.PI/2/e;return 1-Math.cos(r/2)},Xt.CAP_ROUND=1,Xt.CAP_FLAT=2,Xt.CAP_SQUARE=3,Xt.JOIN_ROUND=1,Xt.JOIN_MITRE=2,Xt.JOIN_BEVEL=3,Xt.DEFAULT_QUADRANT_SEGMENTS=8,Xt.DEFAULT_MITRE_LIMIT=5,Xt.DEFAULT_SIMPLIFY_FACTOR=.01,o(Vu.prototype,{getCoordinate:function(){return this.minCoord},getRightmostSide:function(e,r){var a=this.getRightmostSideOfSegment(e,r);return 0>a&&(a=this.getRightmostSideOfSegment(e,r-1)),0>a&&(this.minCoord=null,this.checkForRightmostCoordinate(e)),a},findRightmostEdgeAtVertex:function(){var e=this.minDe.getEdge().getCoordinates();N.isTrue(this.minIndex>0&&this.minIndex<e.length,"rightmost point expected to be interior vertex of edge");var r=e[this.minIndex-1],a=e[this.minIndex+1],c=xe.computeOrientation(this.minCoord,a,r),g=!1;(r.y<this.minCoord.y&&a.y<this.minCoord.y&&c===xe.COUNTERCLOCKWISE||r.y>this.minCoord.y&&a.y>this.minCoord.y&&c===xe.CLOCKWISE)&&(g=!0),g&&(this.minIndex=this.minIndex-1)},getRightmostSideOfSegment:function(e,r){var a=e.getEdge(),c=a.getCoordinates();if(0>r||r+1>=c.length||c[r].y===c[r+1].y)return-1;var g=Oe.LEFT;return c[r].y<c[r+1].y&&(g=Oe.RIGHT),g},getEdge:function(){return this.orientedDe},checkForRightmostCoordinate:function(e){for(var r=e.getEdge().getCoordinates(),a=0;a<r.length-1;a++)(this.minCoord===null||r[a].x>this.minCoord.x)&&(this.minDe=e,this.minIndex=a,this.minCoord=r[a])},findRightmostEdgeAtNode:function(){var e=this.minDe.getNode(),r=e.getEdges();this.minDe=r.getRightmostEdge(),this.minDe.isForward()||(this.minDe=this.minDe.getSym(),this.minIndex=this.minDe.getEdge().getCoordinates().length-1)},findEdge:function(e){for(var r=e.iterator();r.hasNext();){var a=r.next();a.isForward()&&this.checkForRightmostCoordinate(a)}N.isTrue(this.minIndex!==0||this.minCoord.equals(this.minDe.getCoordinate()),"inconsistency in rightmost processing"),this.minIndex===0?this.findRightmostEdgeAtNode():this.findRightmostEdgeAtVertex(),this.orientedDe=this.minDe;var c=this.getRightmostSide(this.minDe,this.minIndex);c===Oe.LEFT&&(this.orientedDe=this.minDe.getSym())},interfaces_:function(){return[]},getClass:function(){return Vu}}),Hu.prototype.addLast=function(e){this.array_.push(e)},Hu.prototype.removeFirst=function(){return this.array_.shift()},Hu.prototype.isEmpty=function(){return this.array_.length===0},o(Mi.prototype,{clearVisitedEdges:function(){for(var e=this.dirEdgeList.iterator();e.hasNext();){var r=e.next();r.setVisited(!1)}},getRightmostCoordinate:function(){return this.rightMostCoord},computeNodeDepth:function(e){for(var r=null,a=e.getEdges().iterator();a.hasNext();){var c=a.next();if(c.isVisited()||c.getSym().isVisited()){r=c;break}}if(r===null)throw new ir("unable to find edge to compute depths at "+e.getCoordinate());e.getEdges().computeDepths(r);for(var a=e.getEdges().iterator();a.hasNext();){var c=a.next();c.setVisited(!0),this.copySymDepths(c)}},computeDepth:function(e){this.clearVisitedEdges();var r=this.finder.getEdge();r.getNode(),r.getLabel(),r.setEdgeDepths(Oe.RIGHT,e),this.copySymDepths(r),this.computeDepths(r)},create:function(e){this.addReachable(e),this.finder.findEdge(this.dirEdgeList),this.rightMostCoord=this.finder.getCoordinate()},findResultEdges:function(){for(var e=this.dirEdgeList.iterator();e.hasNext();){var r=e.next();r.getDepth(Oe.RIGHT)>=1&&r.getDepth(Oe.LEFT)<=0&&!r.isInteriorAreaEdge()&&r.setInResult(!0)}},computeDepths:function(e){var r=new Ye,a=new Hu,c=e.getNode();for(a.addLast(c),r.add(c),e.setVisited(!0);!a.isEmpty();){var g=a.removeFirst();r.add(g),this.computeNodeDepth(g);for(var b=g.getEdges().iterator();b.hasNext();){var I=b.next(),F=I.getSym();if(!F.isVisited()){var Z=F.getNode();r.contains(Z)||(a.addLast(Z),r.add(Z))}}}},compareTo:function(e){var r=e;return this.rightMostCoord.x<r.rightMostCoord.x?-1:this.rightMostCoord.x>r.rightMostCoord.x?1:0},getEnvelope:function(){if(this.env===null){for(var e=new V,r=this.dirEdgeList.iterator();r.hasNext();)for(var a=r.next(),c=a.getEdge().getCoordinates(),g=0;g<c.length-1;g++)e.expandToInclude(c[g]);this.env=e}return this.env},addReachable:function(e){var r=new kn;for(r.add(e);!r.empty();){var a=r.pop();this.add(a,r)}},copySymDepths:function(e){var r=e.getSym();r.setDepth(Oe.LEFT,e.getDepth(Oe.RIGHT)),r.setDepth(Oe.RIGHT,e.getDepth(Oe.LEFT))},add:function(e,r){e.setVisited(!0),this.nodes.add(e);for(var a=e.getEdges().iterator();a.hasNext();){var c=a.next();this.dirEdgeList.add(c);var g=c.getSym(),b=g.getNode();b.isVisited()||r.push(b)}},getNodes:function(){return this.nodes},getDirectedEdges:function(){return this.dirEdgeList},interfaces_:function(){return[f]},getClass:function(){return Mi}}),o(Jn.prototype,{isDeletable:function(e,r,a,c){var g=this.inputLine[e],b=this.inputLine[r],I=this.inputLine[a];return this.isConcave(g,b,I)&&this.isShallow(g,b,I,c)?this.isShallowSampled(g,b,e,a,c):!1},deleteShallowConcavities:function(){for(var e=1,r=(this.inputLine.length-1,this.findNextNonDeletedIndex(e)),a=this.findNextNonDeletedIndex(r),c=!1;a<this.inputLine.length;){var g=!1;this.isDeletable(e,r,a,this.distanceTol)&&(this.isDeleted[r]=Jn.DELETE,g=!0,c=!0),e=g?a:r,r=this.findNextNonDeletedIndex(e),a=this.findNextNonDeletedIndex(r)}return c},isShallowConcavity:function(e,r,a,c){var g=xe.computeOrientation(e,r,a),b=g===this.angleOrientation;if(!b)return!1;var I=xe.distancePointLine(r,e,a);return c>I},isShallowSampled:function(e,r,a,c,g){var b=Math.trunc((c-a)/Jn.NUM_PTS_TO_CHECK);0>=b&&(b=1);for(var I=a;c>I;I+=b)if(!this.isShallow(e,r,this.inputLine[I],g))return!1;return!0},isConcave:function(r,a,c){var g=xe.computeOrientation(r,a,c),b=g===this.angleOrientation;return b},simplify:function(e){this.distanceTol=Math.abs(e),0>e&&(this.angleOrientation=xe.CLOCKWISE),this.isDeleted=new Array(this.inputLine.length).fill(null);var r=!1;do r=this.deleteShallowConcavities();while(r);return this.collapseLine()},findNextNonDeletedIndex:function(e){for(var r=e+1;r<this.inputLine.length&&this.isDeleted[r]===Jn.DELETE;)r++;return r},isShallow:function(e,r,a,c){var g=xe.distancePointLine(r,e,a);return c>g},collapseLine:function(){for(var e=new H,r=0;r<this.inputLine.length;r++)this.isDeleted[r]!==Jn.DELETE&&e.add(this.inputLine[r]);return e.toCoordinateArray()},interfaces_:function(){return[]},getClass:function(){return Jn}}),Jn.simplify=function(e,r){var a=new Jn(e);return a.simplify(r)},Jn.INIT=0,Jn.DELETE=1,Jn.KEEP=1,Jn.NUM_PTS_TO_CHECK=10,o(Qo.prototype,{getCoordinates:function(){var e=this.ptList.toArray(Qo.COORDINATE_ARRAY_TYPE);return e},setPrecisionModel:function(e){this.precisionModel=e},addPt:function(e){var r=new w(e);return this.precisionModel.makePrecise(r),this.isRedundant(r)?null:void this.ptList.add(r)},reverse:function(){},addPts:function(e,r){if(r)for(var a=0;a<e.length;a++)this.addPt(e[a]);else for(var a=e.length-1;a>=0;a--)this.addPt(e[a])},isRedundant:function(e){if(this.ptList.size()<1)return!1;var r=this.ptList.get(this.ptList.size()-1),a=e.distance(r);return a<this.minimimVertexDistance},toString:function(){var e=new dt,r=e.createLineString(this.getCoordinates());return r.toString()},closeRing:function(){if(this.ptList.size()<1)return null;var e=new w(this.ptList.get(0)),r=this.ptList.get(this.ptList.size()-1);return this.ptList.size()>=2&&this.ptList.get(this.ptList.size()-2),e.equals(r)?null:void this.ptList.add(e)},setMinimumVertexDistance:function(e){this.minimimVertexDistance=e},interfaces_:function(){return[]},getClass:function(){return Qo}}),Qo.COORDINATE_ARRAY_TYPE=new Array(0).fill(null),o(Br.prototype,{addNextSegment:function(e,r){if(this.s0=this.s1,this.s1=this.s2,this.s2=e,this.seg0.setCoordinates(this.s0,this.s1),this.computeOffsetSegment(this.seg0,this.side,this.distance,this.offset0),this.seg1.setCoordinates(this.s1,this.s2),this.computeOffsetSegment(this.seg1,this.side,this.distance,this.offset1),this.s1.equals(this.s2))return null;var a=xe.computeOrientation(this.s0,this.s1,this.s2),c=a===xe.CLOCKWISE&&this.side===Oe.LEFT||a===xe.COUNTERCLOCKWISE&&this.side===Oe.RIGHT;a===0?this.addCollinear(r):c?this.addOutsideTurn(a,r):this.addInsideTurn(a,r)},addLineEndCap:function(e,r){var a=new nt(e,r),c=new nt;this.computeOffsetSegment(a,Oe.LEFT,this.distance,c);var g=new nt;this.computeOffsetSegment(a,Oe.RIGHT,this.distance,g);var b=r.x-e.x,I=r.y-e.y,F=Math.atan2(I,b);switch(this.bufParams.getEndCapStyle()){case Xt.CAP_ROUND:this.segList.addPt(c.p1),this.addFilletArc(r,F+Math.PI/2,F-Math.PI/2,xe.CLOCKWISE,this.distance),this.segList.addPt(g.p1);break;case Xt.CAP_FLAT:this.segList.addPt(c.p1),this.segList.addPt(g.p1);break;case Xt.CAP_SQUARE:var Z=new w;Z.x=Math.abs(this.distance)*Math.cos(F),Z.y=Math.abs(this.distance)*Math.sin(F);var ne=new w(c.p1.x+Z.x,c.p1.y+Z.y),de=new w(g.p1.x+Z.x,g.p1.y+Z.y);this.segList.addPt(ne),this.segList.addPt(de)}},getCoordinates:function(){var e=this.segList.getCoordinates();return e},addMitreJoin:function(e,r,a,c){var g=!0,b=null;try{b=re.intersection(r.p0,r.p1,a.p0,a.p1);var I=0>=c?1:b.distance(e)/Math.abs(c);I>this.bufParams.getMitreLimit()&&(g=!1)}catch(F){if(!(F instanceof R))throw F;b=new w(0,0),g=!1}finally{}g?this.segList.addPt(b):this.addLimitedMitreJoin(r,a,c,this.bufParams.getMitreLimit())},addFilletCorner:function(e,r,a,c,g){var b=r.x-e.x,I=r.y-e.y,F=Math.atan2(I,b),Z=a.x-e.x,ne=a.y-e.y,de=Math.atan2(ne,Z);c===xe.CLOCKWISE?de>=F&&(F+=2*Math.PI):F>=de&&(F-=2*Math.PI),this.segList.addPt(r),this.addFilletArc(e,F,de,c,g),this.segList.addPt(a)},addOutsideTurn:function(e,r){return this.offset0.p1.distance(this.offset1.p0)<this.distance*Br.OFFSET_SEGMENT_SEPARATION_FACTOR?(this.segList.addPt(this.offset0.p1),null):void(this.bufParams.getJoinStyle()===Xt.JOIN_MITRE?this.addMitreJoin(this.s1,this.offset0,this.offset1,this.distance):this.bufParams.getJoinStyle()===Xt.JOIN_BEVEL?this.addBevelJoin(this.offset0,this.offset1):(r&&this.segList.addPt(this.offset0.p1),this.addFilletCorner(this.s1,this.offset0.p1,this.offset1.p0,e,this.distance),this.segList.addPt(this.offset1.p0)))},createSquare:function(e){this.segList.addPt(new w(e.x+this.distance,e.y+this.distance)),this.segList.addPt(new w(e.x+this.distance,e.y-this.distance)),this.segList.addPt(new w(e.x-this.distance,e.y-this.distance)),this.segList.addPt(new w(e.x-this.distance,e.y+this.distance)),this.segList.closeRing()},addSegments:function(e,r){this.segList.addPts(e,r)},addFirstSegment:function(){this.segList.addPt(this.offset1.p0)},addLastSegment:function(){this.segList.addPt(this.offset1.p1)},initSideSegments:function(e,r,a){this.s1=e,this.s2=r,this.side=a,this.seg1.setCoordinates(e,r),this.computeOffsetSegment(this.seg1,a,this.distance,this.offset1)},addLimitedMitreJoin:function(e,r,a,c){var g=this.seg0.p1,b=Ot.angle(g,this.seg0.p0),I=(Ot.angle(g,this.seg1.p1),Ot.angleBetweenOriented(this.seg0.p0,g,this.seg1.p1)),F=I/2,Z=Ot.normalize(b+F),ne=Ot.normalize(Z+Math.PI),de=c*a,me=de*Math.abs(Math.sin(F)),_e=a-me,Ze=g.x+de*Math.cos(ne),gt=g.y+de*Math.sin(ne),St=new w(Ze,gt),yn=new nt(g,St),Un=yn.pointAlongOffset(1,_e),Ki=yn.pointAlongOffset(1,-_e);this.side===Oe.LEFT?(this.segList.addPt(Un),this.segList.addPt(Ki)):(this.segList.addPt(Ki),this.segList.addPt(Un))},computeOffsetSegment:function(e,r,a,c){var g=r===Oe.LEFT?1:-1,b=e.p1.x-e.p0.x,I=e.p1.y-e.p0.y,F=Math.sqrt(b*b+I*I),Z=g*a*b/F,ne=g*a*I/F;c.p0.x=e.p0.x-ne,c.p0.y=e.p0.y+Z,c.p1.x=e.p1.x-ne,c.p1.y=e.p1.y+Z},addFilletArc:function(e,r,a,c,g){var b=c===xe.CLOCKWISE?-1:1,I=Math.abs(r-a),F=Math.trunc(I/this.filletAngleQuantum+.5);if(1>F)return null;var Z=null,ne=null;Z=0,ne=I/F;for(var de=Z,me=new w;I>de;){var _e=r+b*de;me.x=e.x+g*Math.cos(_e),me.y=e.y+g*Math.sin(_e),this.segList.addPt(me),de+=ne}},addInsideTurn:function(e,r){if(this.li.computeIntersection(this.offset0.p0,this.offset0.p1,this.offset1.p0,this.offset1.p1),this.li.hasIntersection())this.segList.addPt(this.li.getIntersection(0));else if(this._hasNarrowConcaveAngle=!0,this.offset0.p1.distance(this.offset1.p0)<this.distance*Br.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR)this.segList.addPt(this.offset0.p1);else{if(this.segList.addPt(this.offset0.p1),this.closingSegLengthFactor>0){var a=new w((this.closingSegLengthFactor*this.offset0.p1.x+this.s1.x)/(this.closingSegLengthFactor+1),(this.closingSegLengthFactor*this.offset0.p1.y+this.s1.y)/(this.closingSegLengthFactor+1));this.segList.addPt(a);var c=new w((this.closingSegLengthFactor*this.offset1.p0.x+this.s1.x)/(this.closingSegLengthFactor+1),(this.closingSegLengthFactor*this.offset1.p0.y+this.s1.y)/(this.closingSegLengthFactor+1));this.segList.addPt(c)}else this.segList.addPt(this.s1);this.segList.addPt(this.offset1.p0)}},createCircle:function(e){var r=new w(e.x+this.distance,e.y);this.segList.addPt(r),this.addFilletArc(e,0,2*Math.PI,-1,this.distance),this.segList.closeRing()},addBevelJoin:function(e,r){this.segList.addPt(e.p1),this.segList.addPt(r.p0)},init:function(e){this.distance=e,this.maxCurveSegmentError=e*(1-Math.cos(this.filletAngleQuantum/2)),this.segList=new Qo,this.segList.setPrecisionModel(this.precisionModel),this.segList.setMinimumVertexDistance(e*Br.CURVE_VERTEX_SNAP_DISTANCE_FACTOR)},addCollinear:function(e){this.li.computeIntersection(this.s0,this.s1,this.s1,this.s2);var r=this.li.getIntersectionNum();r>=2&&(this.bufParams.getJoinStyle()===Xt.JOIN_BEVEL||this.bufParams.getJoinStyle()===Xt.JOIN_MITRE?(e&&this.segList.addPt(this.offset0.p1),this.segList.addPt(this.offset1.p0)):this.addFilletCorner(this.s1,this.offset0.p1,this.offset1.p0,xe.CLOCKWISE,this.distance))},closeRing:function(){this.segList.closeRing()},hasNarrowConcaveAngle:function(){return this._hasNarrowConcaveAngle},interfaces_:function(){return[]},getClass:function(){return Br}}),Br.OFFSET_SEGMENT_SEPARATION_FACTOR=.001,Br.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR=.001,Br.CURVE_VERTEX_SNAP_DISTANCE_FACTOR=1e-6,Br.MAX_CLOSING_SEG_LEN_FACTOR=80,o(za.prototype,{getOffsetCurve:function(e,r){if(this.distance=r,r===0)return null;var a=0>r,c=Math.abs(r),g=this.getSegGen(c);e.length<=1?this.computePointCurve(e[0],g):this.computeOffsetCurve(e,a,g);var b=g.getCoordinates();return a&&Le.reverse(b),b},computeSingleSidedBufferCurve:function(e,r,a){var c=this.simplifyTolerance(this.distance);if(r){a.addSegments(e,!0);var g=Jn.simplify(e,-c),b=g.length-1;a.initSideSegments(g[b],g[b-1],Oe.LEFT),a.addFirstSegment();for(var I=b-2;I>=0;I--)a.addNextSegment(g[I],!0)}else{a.addSegments(e,!1);var F=Jn.simplify(e,c),Z=F.length-1;a.initSideSegments(F[0],F[1],Oe.LEFT),a.addFirstSegment();for(var I=2;Z>=I;I++)a.addNextSegment(F[I],!0)}a.addLastSegment(),a.closeRing()},computeRingBufferCurve:function(e,r,a){var c=this.simplifyTolerance(this.distance);r===Oe.RIGHT&&(c=-c);var g=Jn.simplify(e,c),b=g.length-1;a.initSideSegments(g[b-1],g[0],r);for(var I=1;b>=I;I++){var F=I!==1;a.addNextSegment(g[I],F)}a.closeRing()},computeLineBufferCurve:function(e,r){var a=this.simplifyTolerance(this.distance),c=Jn.simplify(e,a),g=c.length-1;r.initSideSegments(c[0],c[1],Oe.LEFT);for(var b=2;g>=b;b++)r.addNextSegment(c[b],!0);r.addLastSegment(),r.addLineEndCap(c[g-1],c[g]);var I=Jn.simplify(e,-a),F=I.length-1;r.initSideSegments(I[F],I[F-1],Oe.LEFT);for(var b=F-2;b>=0;b--)r.addNextSegment(I[b],!0);r.addLastSegment(),r.addLineEndCap(I[1],I[0]),r.closeRing()},computePointCurve:function(e,r){switch(this.bufParams.getEndCapStyle()){case Xt.CAP_ROUND:r.createCircle(e);break;case Xt.CAP_SQUARE:r.createSquare(e)}},getLineCurve:function(e,r){if(this.distance=r,0>r&&!this.bufParams.isSingleSided()||r===0)return null;var a=Math.abs(r),c=this.getSegGen(a);if(e.length<=1)this.computePointCurve(e[0],c);else if(this.bufParams.isSingleSided()){var g=0>r;this.computeSingleSidedBufferCurve(e,g,c)}else this.computeLineBufferCurve(e,c);var b=c.getCoordinates();return b},getBufferParameters:function(){return this.bufParams},simplifyTolerance:function(e){return e*this.bufParams.getSimplifyFactor()},getRingCurve:function(e,r,a){if(this.distance=a,e.length<=2)return this.getLineCurve(e,a);if(a===0)return za.copyCoordinates(e);var c=this.getSegGen(a);return this.computeRingBufferCurve(e,r,c),c.getCoordinates()},computeOffsetCurve:function(e,r,a){var c=this.simplifyTolerance(this.distance);if(r){var g=Jn.simplify(e,-c),b=g.length-1;a.initSideSegments(g[b],g[b-1],Oe.LEFT),a.addFirstSegment();for(var I=b-2;I>=0;I--)a.addNextSegment(g[I],!0)}else{var F=Jn.simplify(e,c),Z=F.length-1;a.initSideSegments(F[0],F[1],Oe.LEFT),a.addFirstSegment();for(var I=2;Z>=I;I++)a.addNextSegment(F[I],!0)}a.addLastSegment()},getSegGen:function(e){return new Br(this.precisionModel,this.bufParams,e)},interfaces_:function(){return[]},getClass:function(){return za}}),za.copyCoordinates=function(e){for(var r=new Array(e.length).fill(null),a=0;a<r.length;a++)r[a]=new w(e[a]);return r},o(vo.prototype,{findStabbedSegments:function(){if(arguments.length===1){for(var e=arguments[0],r=new k,a=this.subgraphs.iterator();a.hasNext();){var c=a.next(),g=c.getEnvelope();e.y<g.getMinY()||e.y>g.getMaxY()||this.findStabbedSegments(e,c.getDirectedEdges(),r)}return r}if(arguments.length===3){if(X(arguments[2],T)&&arguments[0]instanceof w&&arguments[1]instanceof cs)for(var b=arguments[0],I=arguments[1],F=arguments[2],Z=I.getEdge().getCoordinates(),a=0;a<Z.length-1;a++){this.seg.p0=Z[a],this.seg.p1=Z[a+1],this.seg.p0.y>this.seg.p1.y&&this.seg.reverse();var ne=Math.max(this.seg.p0.x,this.seg.p1.x);if(!(ne<b.x||this.seg.isHorizontal()||b.y<this.seg.p0.y||b.y>this.seg.p1.y||xe.computeOrientation(this.seg.p0,this.seg.p1,b)===xe.RIGHT)){var de=I.getDepth(Oe.LEFT);this.seg.p0.equals(Z[a])||(de=I.getDepth(Oe.RIGHT));var me=new Us(this.seg,de);F.add(me)}}else if(X(arguments[2],T)&&arguments[0]instanceof w&&X(arguments[1],T))for(var _e=arguments[0],Ze=arguments[1],gt=arguments[2],a=Ze.iterator();a.hasNext();){var St=a.next();St.isForward()&&this.findStabbedSegments(_e,St,gt)}}},getDepth:function(e){var r=this.findStabbedSegments(e);if(r.size()===0)return 0;var a=Es.min(r);return a.leftDepth},interfaces_:function(){return[]},getClass:function(){return vo}}),o(Us.prototype,{compareTo:function(e){var r=e;if(this.upwardSeg.minX()>=r.upwardSeg.maxX())return 1;if(this.upwardSeg.maxX()<=r.upwardSeg.minX())return-1;var a=this.upwardSeg.orientationIndex(r.upwardSeg);return a!==0?a:(a=-1*r.upwardSeg.orientationIndex(this.upwardSeg),a!==0?a:this.upwardSeg.compareTo(r.upwardSeg))},compareX:function(e,r){var a=e.p0.compareTo(r.p0);return a!==0?a:e.p1.compareTo(r.p1)},toString:function(){return this.upwardSeg.toString()},interfaces_:function(){return[f]},getClass:function(){return Us}}),vo.DepthSegment=Us,o(Gu.prototype,{addPoint:function(e){if(this.distance<=0)return null;var r=e.getCoordinates(),a=this.curveBuilder.getLineCurve(r,this.distance);this.addCurve(a,A.EXTERIOR,A.INTERIOR)},addPolygon:function(e){var r=this.distance,a=Oe.LEFT;this.distance<0&&(r=-this.distance,a=Oe.RIGHT);var c=e.getExteriorRing(),g=Le.removeRepeatedPoints(c.getCoordinates());if(this.distance<0&&this.isErodedCompletely(c,this.distance)||this.distance<=0&&g.length<3)return null;this.addPolygonRing(g,r,a,A.EXTERIOR,A.INTERIOR);for(var b=0;b<e.getNumInteriorRing();b++){var I=e.getInteriorRingN(b),F=Le.removeRepeatedPoints(I.getCoordinates());this.distance>0&&this.isErodedCompletely(I,-this.distance)||this.addPolygonRing(F,r,Oe.opposite(a),A.INTERIOR,A.EXTERIOR)}},isTriangleErodedCompletely:function(e,r){var a=new Zt(e[0],e[1],e[2]),c=a.inCentre(),g=xe.distancePointLine(c,a.p0,a.p1);return g<Math.abs(r)},addLineString:function(e){if(this.distance<=0&&!this.curveBuilder.getBufferParameters().isSingleSided())return null;var r=Le.removeRepeatedPoints(e.getCoordinates()),a=this.curveBuilder.getLineCurve(r,this.distance);this.addCurve(a,A.EXTERIOR,A.INTERIOR)},addCurve:function(e,r,a){if(e===null||e.length<2)return null;var c=new ci(e,new En(0,A.BOUNDARY,r,a));this.curveList.add(c)},getCurves:function(){return this.add(this.inputGeom),this.curveList},addPolygonRing:function(e,r,a,c,g){if(r===0&&e.length<It.MINIMUM_VALID_SIZE)return null;var b=c,I=g;e.length>=It.MINIMUM_VALID_SIZE&&xe.isCCW(e)&&(b=g,I=c,a=Oe.opposite(a));var F=this.curveBuilder.getRingCurve(e,a,r);this.addCurve(F,b,I)},add:function(e){if(e.isEmpty())return null;if(e instanceof _t)this.addPolygon(e);else if(e instanceof Se)this.addLineString(e);else if(e instanceof Ge)this.addPoint(e);else if(e instanceof $t)this.addCollection(e);else if(e instanceof Lt)this.addCollection(e);else if(e instanceof nn)this.addCollection(e);else{if(!(e instanceof Re))throw new UnsupportedOperationException(e.getClass().getName());this.addCollection(e)}},isErodedCompletely:function(e,r){var a=e.getCoordinates();if(a.length<4)return 0>r;if(a.length===4)return this.isTriangleErodedCompletely(a,r);var c=e.getEnvelopeInternal(),g=Math.min(c.getHeight(),c.getWidth());return 0>r&&2*Math.abs(r)>g},addCollection:function(e){for(var r=0;r<e.getNumGeometries();r++){var a=e.getGeometryN(r);this.add(a)}},interfaces_:function(){return[]},getClass:function(){return Gu}}),o($o.prototype,{isTrivialIntersection:function(e,r,a,c){if(e===a&&this.li.getIntersectionNum()===1){if($o.isAdjacentSegments(r,c))return!0;if(e.isClosed()){var g=e.size()-1;if(r===0&&c===g||c===0&&r===g)return!0}}return!1},getProperIntersectionPoint:function(){return this.properIntersectionPoint},hasProperInteriorIntersection:function(){return this.hasProperInterior},getLineIntersector:function(){return this.li},hasProperIntersection:function(){return this.hasProper},processIntersections:function(e,r,a,c){if(e===a&&r===c)return null;this.numTests++;var g=e.getCoordinates()[r],b=e.getCoordinates()[r+1],I=a.getCoordinates()[c],F=a.getCoordinates()[c+1];this.li.computeIntersection(g,b,I,F),this.li.hasIntersection()&&(this.numIntersections++,this.li.isInteriorIntersection()&&(this.numInteriorIntersections++,this.hasInterior=!0),this.isTrivialIntersection(e,r,a,c)||(this._hasIntersection=!0,e.addIntersections(this.li,r,0),a.addIntersections(this.li,c,1),this.li.isProper()&&(this.numProperIntersections++,this.hasProper=!0,this.hasProperInterior=!0)))},hasIntersection:function(){return this._hasIntersection},isDone:function(){return!1},hasInteriorIntersection:function(){return this.hasInterior},interfaces_:function(){return[Uo]},getClass:function(){return $o}}),$o.isAdjacentSegments=function(e,r){return Math.abs(e-r)===1},o(Vs.prototype,{setWorkingPrecisionModel:function(e){this.workingPrecisionModel=e},insertUniqueEdge:function(e){var r=this.edgeList.findEqualEdge(e);if(r!==null){var a=r.getLabel(),c=e.getLabel();r.isPointwiseEqual(e)||(c=new En(e.getLabel()),c.flip()),a.merge(c);var g=Vs.depthDelta(c),b=r.getDepthDelta(),I=b+g;r.setDepthDelta(I)}else this.edgeList.add(e),e.setDepthDelta(Vs.depthDelta(e.getLabel()))},buildSubgraphs:function(e,r){for(var a=new k,c=e.iterator();c.hasNext();){var g=c.next(),b=g.getRightmostCoordinate(),I=new vo(a),F=I.getDepth(b);g.computeDepth(F),g.findResultEdges(),a.add(g),r.add(g.getDirectedEdges(),g.getNodes())}},createSubgraphs:function(e){for(var r=new k,a=e.getNodes().iterator();a.hasNext();){var c=a.next();if(!c.isVisited()){var g=new Mi;g.create(c),r.add(g)}}return Es.sort(r,Es.reverseOrder()),r},createEmptyResultGeometry:function(){var e=this.geomFact.createPolygon();return e},getNoder:function(e){if(this.workingNoder!==null)return this.workingNoder;var r=new ks,a=new Fe;return a.setPrecisionModel(e),r.setSegmentIntersector(new $o(a)),r},buffer:function(e,r){var a=this.workingPrecisionModel;a===null&&(a=e.getPrecisionModel()),this.geomFact=e.getFactory();var c=new za(a,this.bufParams),g=new Gu(e,r,c),b=g.getCurves();if(b.size()<=0)return this.createEmptyResultGeometry();this.computeNodedEdges(b,a),this.graph=new fi(new ds),this.graph.addEdges(this.edgeList.getEdges());var I=this.createSubgraphs(this.graph),F=new Da(this.geomFact);this.buildSubgraphs(I,F);var Z=F.getPolygons();if(Z.size()<=0)return this.createEmptyResultGeometry();var ne=this.geomFact.buildGeometry(Z);return ne},computeNodedEdges:function(e,r){var a=this.getNoder(r);a.computeNodes(e);for(var c=a.getNodedSubstrings(),g=c.iterator();g.hasNext();){var b=g.next(),I=b.getCoordinates();if(I.length!==2||!I[0].equals2D(I[1])){var F=b.getData(),Z=new xr(b.getCoordinates(),new En(F));this.insertUniqueEdge(Z)}}},setNoder:function(e){this.workingNoder=e},interfaces_:function(){return[]},getClass:function(){return Vs}}),Vs.depthDelta=function(e){var r=e.getLocation(0,Oe.LEFT),a=e.getLocation(0,Oe.RIGHT);return r===A.INTERIOR&&a===A.EXTERIOR?1:r===A.EXTERIOR&&a===A.INTERIOR?-1:0},Vs.convertSegStrings=function(e){for(var r=new dt,a=new k;e.hasNext();){var c=e.next(),g=r.createLineString(c.getCoordinates());a.add(g)}return r.buildGeometry(a)},o(ea.prototype,{checkEndPtVertexIntersections:function(){if(arguments.length===0)for(var e=this.segStrings.iterator();e.hasNext();){var r=e.next(),a=r.getCoordinates();this.checkEndPtVertexIntersections(a[0],this.segStrings),this.checkEndPtVertexIntersections(a[a.length-1],this.segStrings)}else if(arguments.length===2){for(var c=arguments[0],g=arguments[1],e=g.iterator();e.hasNext();)for(var r=e.next(),a=r.getCoordinates(),b=1;b<a.length-1;b++)if(a[b].equals(c))throw new x("found endpt/interior pt intersection at index "+b+" :pt "+c)}},checkInteriorIntersections:function(){if(arguments.length===0)for(var e=this.segStrings.iterator();e.hasNext();)for(var r=e.next(),a=this.segStrings.iterator();a.hasNext();){var c=a.next();this.checkInteriorIntersections(r,c)}else if(arguments.length===2)for(var g=arguments[0],b=arguments[1],I=g.getCoordinates(),F=b.getCoordinates(),Z=0;Z<I.length-1;Z++)for(var ne=0;ne<F.length-1;ne++)this.checkInteriorIntersections(g,Z,b,ne);else if(arguments.length===4){var de=arguments[0],me=arguments[1],_e=arguments[2],Ze=arguments[3];if(de===_e&&me===Ze)return null;var gt=de.getCoordinates()[me],St=de.getCoordinates()[me+1],yn=_e.getCoordinates()[Ze],Un=_e.getCoordinates()[Ze+1];if(this.li.computeIntersection(gt,St,yn,Un),this.li.hasIntersection()&&(this.li.isProper()||this.hasInteriorIntersection(this.li,gt,St)||this.hasInteriorIntersection(this.li,yn,Un)))throw new x("found non-noded intersection at "+gt+"-"+St+" and "+yn+"-"+Un)}},checkValid:function(){this.checkEndPtVertexIntersections(),this.checkInteriorIntersections(),this.checkCollapses()},checkCollapses:function(){if(arguments.length===0)for(var e=this.segStrings.iterator();e.hasNext();){var r=e.next();this.checkCollapses(r)}else if(arguments.length===1)for(var a=arguments[0],c=a.getCoordinates(),e=0;e<c.length-2;e++)this.checkCollapse(c[e],c[e+1],c[e+2])},hasInteriorIntersection:function(e,r,a){for(var c=0;c<e.getIntersectionNum();c++){var g=e.getIntersection(c);if(!g.equals(r)&&!g.equals(a))return!0}return!1},checkCollapse:function(e,r,a){if(e.equals(a))throw new x("found non-noded collapse at "+ea.fact.createLineString([e,r,a]))},interfaces_:function(){return[]},getClass:function(){return ea}}),ea.fact=new dt,o(yo.prototype,{intersectsScaled:function(e,r){var a=Math.min(e.x,r.x),c=Math.max(e.x,r.x),g=Math.min(e.y,r.y),b=Math.max(e.y,r.y),I=this.maxx<a||this.minx>c||this.maxy<g||this.miny>b;if(I)return!1;var F=this.intersectsToleranceSquare(e,r);return N.isTrue(!(I&&F),"Found bad envelope test"),F},initCorners:function(e){var r=.5;this.minx=e.x-r,this.maxx=e.x+r,this.miny=e.y-r,this.maxy=e.y+r,this.corner[0]=new w(this.maxx,this.maxy),this.corner[1]=new w(this.minx,this.maxy),this.corner[2]=new w(this.minx,this.miny),this.corner[3]=new w(this.maxx,this.miny)},intersects:function(e,r){return this.scaleFactor===1?this.intersectsScaled(e,r):(this.copyScaled(e,this.p0Scaled),this.copyScaled(r,this.p1Scaled),this.intersectsScaled(this.p0Scaled,this.p1Scaled))},scale:function(e){return Math.round(e*this.scaleFactor)},getCoordinate:function(){return this.originalPt},copyScaled:function(e,r){r.x=this.scale(e.x),r.y=this.scale(e.y)},getSafeEnvelope:function(){if(this.safeEnv===null){var e=yo.SAFE_ENV_EXPANSION_FACTOR/this.scaleFactor;this.safeEnv=new V(this.originalPt.x-e,this.originalPt.x+e,this.originalPt.y-e,this.originalPt.y+e)}return this.safeEnv},intersectsPixelClosure:function(e,r){return this.li.computeIntersection(e,r,this.corner[0],this.corner[1]),this.li.hasIntersection()?!0:(this.li.computeIntersection(e,r,this.corner[1],this.corner[2]),this.li.hasIntersection()?!0:(this.li.computeIntersection(e,r,this.corner[2],this.corner[3]),this.li.hasIntersection()?!0:(this.li.computeIntersection(e,r,this.corner[3],this.corner[0]),!!this.li.hasIntersection())))},intersectsToleranceSquare:function(e,r){var a=!1,c=!1;return this.li.computeIntersection(e,r,this.corner[0],this.corner[1]),this.li.isProper()?!0:(this.li.computeIntersection(e,r,this.corner[1],this.corner[2]),this.li.isProper()?!0:(this.li.hasIntersection()&&(a=!0),this.li.computeIntersection(e,r,this.corner[2],this.corner[3]),this.li.isProper()?!0:(this.li.hasIntersection()&&(c=!0),this.li.computeIntersection(e,r,this.corner[3],this.corner[0]),this.li.isProper()||a&&c||e.equals(this.pt)?!0:!!r.equals(this.pt))))},addSnappedNode:function(e,r){var a=e.getCoordinate(r),c=e.getCoordinate(r+1);return this.intersects(a,c)?(e.addIntersection(this.getCoordinate(),r),!0):!1},interfaces_:function(){return[]},getClass:function(){return yo}}),yo.SAFE_ENV_EXPANSION_FACTOR=.75,o(bs.prototype,{select:function(){if(arguments.length!==1){if(arguments.length===2){var e=arguments[0],r=arguments[1];e.getLineSegment(r,this.selectedSegment),this.select(this.selectedSegment)}}},interfaces_:function(){return[]},getClass:function(){return bs}}),o(Ua.prototype,{snap:function(){if(arguments.length===1){var e=arguments[0];return this.snap(e,null,-1)}if(arguments.length===3){var r=arguments[0],a=arguments[1],c=arguments[2],g=r.getSafeEnvelope(),b=new ta(r,a,c);return this.index.query(g,{interfaces_:function(){return[Ds]},visitItem:function(I){var F=I;F.select(g,b)}}),b.isNodeAdded()}},interfaces_:function(){return[]},getClass:function(){return Ua}}),_(ta,bs),o(ta.prototype,{isNodeAdded:function(){return this._isNodeAdded},select:function(){if(arguments.length!==2)return bs.prototype.select.apply(this,arguments);var e=arguments[0],r=arguments[1],a=e.getContext();return this.parentEdge!==null&&a===this.parentEdge&&r===this.hotPixelVertexIndex?null:void(this._isNodeAdded=this.hotPixel.addSnappedNode(a,r))},interfaces_:function(){return[]},getClass:function(){return ta}}),Ua.HotPixelSnapAction=ta,o(rc.prototype,{processIntersections:function(e,r,a,c){if(e===a&&r===c)return null;var g=e.getCoordinates()[r],b=e.getCoordinates()[r+1],I=a.getCoordinates()[c],F=a.getCoordinates()[c+1];if(this.li.computeIntersection(g,b,I,F),this.li.hasIntersection()&&this.li.isInteriorIntersection()){for(var Z=0;Z<this.li.getIntersectionNum();Z++)this.interiorIntersections.add(this.li.getIntersection(Z));e.addIntersections(this.li,r,0),a.addIntersections(this.li,c,1)}},isDone:function(){return!1},getInteriorIntersections:function(){return this.interiorIntersections},interfaces_:function(){return[Uo]},getClass:function(){return rc}}),o(Wu.prototype,{checkCorrectness:function(e){var r=ci.getNodedSubstrings(e),a=new ea(r);try{a.checkValid()}catch(c){if(!(c instanceof Y))throw c;c.printStackTrace()}finally{}},getNodedSubstrings:function(){return ci.getNodedSubstrings(this.nodedSegStrings)},snapRound:function(e,r){var a=this.findInteriorIntersections(e,r);this.computeIntersectionSnaps(a),this.computeVertexSnaps(e)},findInteriorIntersections:function(e,r){var a=new rc(r);return this.noder.setSegmentIntersector(a),this.noder.computeNodes(e),a.getInteriorIntersections()},computeVertexSnaps:function(){if(X(arguments[0],M))for(var e=arguments[0],r=e.iterator();r.hasNext();){var a=r.next();this.computeVertexSnaps(a)}else if(arguments[0]instanceof ci)for(var c=arguments[0],g=c.getCoordinates(),b=0;b<g.length;b++){var I=new yo(g[b],this.scaleFactor,this.li),F=this.pointSnapper.snap(I,c,b);F&&c.addIntersection(g[b],b)}},computeNodes:function(e){this.nodedSegStrings=e,this.noder=new ks,this.pointSnapper=new Ua(this.noder.getIndex()),this.snapRound(e,this.li)},computeIntersectionSnaps:function(e){for(var r=e.iterator();r.hasNext();){var a=r.next(),c=new yo(a,this.scaleFactor,this.li);this.pointSnapper.snap(c)}},interfaces_:function(){return[zo]},getClass:function(){return Wu}}),o(Qn.prototype,{bufferFixedPrecision:function(e){var r=new vs(new Wu(new Ct(1)),e.getScale()),a=new Vs(this.bufParams);a.setWorkingPrecisionModel(e),a.setNoder(r),this.resultGeometry=a.buffer(this.argGeom,this.distance)},bufferReducedPrecision:function(){if(arguments.length===0){for(var e=Qn.MAX_PRECISION_DIGITS;e>=0;e--){try{this.bufferReducedPrecision(e)}catch(g){if(!(g instanceof ir))throw g;this.saveException=g}finally{}if(this.resultGeometry!==null)return null}throw this.saveException}if(arguments.length===1){var r=arguments[0],a=Qn.precisionScaleFactor(this.argGeom,this.distance,r),c=new Ct(a);this.bufferFixedPrecision(c)}},computeGeometry:function(){if(this.bufferOriginalPrecision(),this.resultGeometry!==null)return null;var e=this.argGeom.getFactory().getPrecisionModel();e.getType()===Ct.FIXED?this.bufferFixedPrecision(e):this.bufferReducedPrecision()},setQuadrantSegments:function(e){this.bufParams.setQuadrantSegments(e)},bufferOriginalPrecision:function(){try{var e=new Vs(this.bufParams);this.resultGeometry=e.buffer(this.argGeom,this.distance)}catch(r){if(!(r instanceof x))throw r;this.saveException=r}finally{}},getResultGeometry:function(e){return this.distance=e,this.computeGeometry(),this.resultGeometry},setEndCapStyle:function(e){this.bufParams.setEndCapStyle(e)},interfaces_:function(){return[]},getClass:function(){return Qn}}),Qn.bufferOp=function(){if(arguments.length===2){var e=arguments[0],r=arguments[1],a=new Qn(e),c=a.getResultGeometry(r);return c}if(arguments.length===3){if(Number.isInteger(arguments[2])&&arguments[0]instanceof ae&&typeof arguments[1]=="number"){var g=arguments[0],b=arguments[1],I=arguments[2],F=new Qn(g);F.setQuadrantSegments(I);var c=F.getResultGeometry(b);return c}if(arguments[2]instanceof Xt&&arguments[0]instanceof ae&&typeof arguments[1]=="number"){var Z=arguments[0],ne=arguments[1],de=arguments[2],F=new Qn(Z,de),c=F.getResultGeometry(ne);return c}}else if(arguments.length===4){var me=arguments[0],_e=arguments[1],Ze=arguments[2],gt=arguments[3],F=new Qn(me);F.setQuadrantSegments(Ze),F.setEndCapStyle(gt);var c=F.getResultGeometry(_e);return c}},Qn.precisionScaleFactor=function(e,r,a){var c=e.getEnvelopeInternal(),g=ee.max(Math.abs(c.getMaxX()),Math.abs(c.getMaxY()),Math.abs(c.getMinX()),Math.abs(c.getMinY())),b=r>0?r:0,I=g+2*b,F=Math.trunc(Math.log(I)/Math.log(10)+1),Z=a-F,ne=Math.pow(10,Z);return ne},Qn.CAP_ROUND=Xt.CAP_ROUND,Qn.CAP_BUTT=Xt.CAP_FLAT,Qn.CAP_FLAT=Xt.CAP_FLAT,Qn.CAP_SQUARE=Xt.CAP_SQUARE,Qn.MAX_PRECISION_DIGITS=12;var SA=Object.freeze({BufferOp:Qn,BufferParameters:Xt});o(bo.prototype,{filter:function(e){e instanceof _t&&this.comps.add(e)},interfaces_:function(){return[ht]},getClass:function(){return bo}}),bo.getPolygons=function(){if(arguments.length===1){var e=arguments[0];return bo.getPolygons(e,new k)}if(arguments.length===2){var r=arguments[0],a=arguments[1];return r instanceof _t?a.add(r):r instanceof Re&&r.apply(new bo(a)),a}},o(l.prototype,{isInsideArea:function(){return this.segIndex===l.INSIDE_AREA},getCoordinate:function(){return this.pt},getGeometryComponent:function(){return this.component},getSegmentIndex:function(){return this.segIndex},interfaces_:function(){return[]},getClass:function(){return l}}),l.INSIDE_AREA=-1,o(m.prototype,{filter:function(e){e instanceof Ge&&this.pts.add(e)},interfaces_:function(){return[ht]},getClass:function(){return m}}),m.getPoints=function(){if(arguments.length===1){var e=arguments[0];return e instanceof Ge?Es.singletonList(e):m.getPoints(e,new k)}if(arguments.length===2){var r=arguments[0],a=arguments[1];return r instanceof Ge?a.add(r):r instanceof Re&&r.apply(new m(a)),a}},o(C.prototype,{filter:function(e){(e instanceof Ge||e instanceof Se||e instanceof _t)&&this.locations.add(new l(e,0,e.getCoordinate()))},interfaces_:function(){return[ht]},getClass:function(){return C}}),C.getLocations=function(e){var r=new k;return e.apply(new C(r)),r},o(P.prototype,{computeContainmentDistance:function(){if(arguments.length===0){var e=new Array(2).fill(null);if(this.computeContainmentDistance(0,e),this.minDistance<=this.terminateDistance)return null;this.computeContainmentDistance(1,e)}else if(arguments.length===2){var r=arguments[0],a=arguments[1],c=1-r,g=bo.getPolygons(this.geom[r]);if(g.size()>0){var b=C.getLocations(this.geom[c]);if(this.computeContainmentDistance(b,g,a),this.minDistance<=this.terminateDistance)return this.minDistanceLocation[c]=a[0],this.minDistanceLocation[r]=a[1],null}}else if(arguments.length===3){if(arguments[2]instanceof Array&&X(arguments[0],T)&&X(arguments[1],T)){for(var I=arguments[0],F=arguments[1],Z=arguments[2],ne=0;ne<I.size();ne++)for(var de=I.get(ne),me=0;me<F.size();me++)if(this.computeContainmentDistance(de,F.get(me),Z),this.minDistance<=this.terminateDistance)return null}else if(arguments[2]instanceof Array&&arguments[0]instanceof l&&arguments[1]instanceof _t){var _e=arguments[0],Ze=arguments[1],gt=arguments[2],St=_e.getCoordinate();if(A.EXTERIOR!==this.ptLocator.locate(St,Ze))return this.minDistance=0,gt[0]=_e,gt[1]=new l(Ze,St),null}}},computeMinDistanceLinesPoints:function(e,r,a){for(var c=0;c<e.size();c++)for(var g=e.get(c),b=0;b<r.size();b++){var I=r.get(b);if(this.computeMinDistance(g,I,a),this.minDistance<=this.terminateDistance)return null}},computeFacetDistance:function(){var e=new Array(2).fill(null),r=fr.getLines(this.geom[0]),a=fr.getLines(this.geom[1]),c=m.getPoints(this.geom[0]),g=m.getPoints(this.geom[1]);return this.computeMinDistanceLines(r,a,e),this.updateMinDistance(e,!1),this.minDistance<=this.terminateDistance?null:(e[0]=null,e[1]=null,this.computeMinDistanceLinesPoints(r,g,e),this.updateMinDistance(e,!1),this.minDistance<=this.terminateDistance?null:(e[0]=null,e[1]=null,this.computeMinDistanceLinesPoints(a,c,e),this.updateMinDistance(e,!0),this.minDistance<=this.terminateDistance?null:(e[0]=null,e[1]=null,this.computeMinDistancePoints(c,g,e),void this.updateMinDistance(e,!1))))},nearestLocations:function(){return this.computeMinDistance(),this.minDistanceLocation},updateMinDistance:function(e,r){return e[0]===null?null:void(r?(this.minDistanceLocation[0]=e[1],this.minDistanceLocation[1]=e[0]):(this.minDistanceLocation[0]=e[0],this.minDistanceLocation[1]=e[1]))},nearestPoints:function(){this.computeMinDistance();var e=[this.minDistanceLocation[0].getCoordinate(),this.minDistanceLocation[1].getCoordinate()];return e},computeMinDistance:function(){if(arguments.length===0){if(this.minDistanceLocation!==null||(this.minDistanceLocation=new Array(2).fill(null),this.computeContainmentDistance(),this.minDistance<=this.terminateDistance))return null;this.computeFacetDistance()}else if(arguments.length===3){if(arguments[2]instanceof Array&&arguments[0]instanceof Se&&arguments[1]instanceof Ge){var e=arguments[0],r=arguments[1],a=arguments[2];if(e.getEnvelopeInternal().distance(r.getEnvelopeInternal())>this.minDistance)return null;for(var c=e.getCoordinates(),g=r.getCoordinate(),b=0;b<c.length-1;b++){var I=xe.distancePointLine(g,c[b],c[b+1]);if(I<this.minDistance){this.minDistance=I;var F=new nt(c[b],c[b+1]),Z=F.closestPoint(g);a[0]=new l(e,b,Z),a[1]=new l(r,0,g)}if(this.minDistance<=this.terminateDistance)return null}}else if(arguments[2]instanceof Array&&arguments[0]instanceof Se&&arguments[1]instanceof Se){var ne=arguments[0],de=arguments[1],me=arguments[2];if(ne.getEnvelopeInternal().distance(de.getEnvelopeInternal())>this.minDistance)return null;for(var c=ne.getCoordinates(),_e=de.getCoordinates(),b=0;b<c.length-1;b++)for(var Ze=0;Ze<_e.length-1;Ze++){var I=xe.distanceLineLine(c[b],c[b+1],_e[Ze],_e[Ze+1]);if(I<this.minDistance){this.minDistance=I;var gt=new nt(c[b],c[b+1]),St=new nt(_e[Ze],_e[Ze+1]),yn=gt.closestPoints(St);me[0]=new l(ne,b,yn[0]),me[1]=new l(de,Ze,yn[1])}if(this.minDistance<=this.terminateDistance)return null}}}},computeMinDistancePoints:function(e,r,a){for(var c=0;c<e.size();c++)for(var g=e.get(c),b=0;b<r.size();b++){var I=r.get(b),F=g.getCoordinate().distance(I.getCoordinate());if(F<this.minDistance&&(this.minDistance=F,a[0]=new l(g,0,g.getCoordinate()),a[1]=new l(I,0,I.getCoordinate())),this.minDistance<=this.terminateDistance)return null}},distance:function(){if(this.geom[0]===null||this.geom[1]===null)throw new d;return this.geom[0].isEmpty()||this.geom[1].isEmpty()?0:(this.computeMinDistance(),this.minDistance)},computeMinDistanceLines:function(e,r,a){for(var c=0;c<e.size();c++)for(var g=e.get(c),b=0;b<r.size();b++){var I=r.get(b);if(this.computeMinDistance(g,I,a),this.minDistance<=this.terminateDistance)return null}},interfaces_:function(){return[]},getClass:function(){return P}}),P.distance=function(e,r){var a=new P(e,r);return a.distance()},P.isWithinDistance=function(e,r,a){var c=new P(e,r,a);return c.distance()<=a},P.nearestPoints=function(e,r){var a=new P(e,r);return a.nearestPoints()};var OA=Object.freeze({DistanceOp:P});o(z.prototype,{getCoordinates:function(){if(this.coordinates===null){for(var e=0,r=0,a=new H,c=this.directedEdges.iterator();c.hasNext();){var g=c.next();g.getEdgeDirection()?e++:r++,a.add(g.getEdge().getLine().getCoordinates(),!1,g.getEdgeDirection())}this.coordinates=a.toCoordinateArray(),r>e&&Le.reverse(this.coordinates)}return this.coordinates},toLineString:function(){return this.factory.createLineString(this.getCoordinates())},add:function(e){this.directedEdges.add(e)},interfaces_:function(){return[]},getClass:function(){return z}}),o(W.prototype,{setVisited:function(e){this._isVisited=e},isMarked:function(){return this._isMarked},setData:function(e){this.data=e},getData:function(){return this.data},setMarked:function(e){this._isMarked=e},getContext:function(){return this.data},isVisited:function(){return this._isVisited},setContext:function(e){this.data=e},interfaces_:function(){return[]},getClass:function(){return W}}),W.getComponentWithVisitedState=function(e,r){for(;e.hasNext();){var a=e.next();if(a.isVisited()===r)return a}return null},W.setVisited=function(e,r){for(;e.hasNext();){var a=e.next();a.setVisited(r)}},W.setMarked=function(e,r){for(;e.hasNext();){var a=e.next();a.setMarked(r)}},_(oe,W),o(oe.prototype,{isRemoved:function(){return this.parentEdge===null},compareDirection:function(e){return this.quadrant>e.quadrant?1:this.quadrant<e.quadrant?-1:xe.computeOrientation(e.p0,e.p1,this.p1)},getCoordinate:function(){return this.from.getCoordinate()},print:function(e){var r=this.getClass().getName(),a=r.lastIndexOf("."),c=r.substring(a+1);e.print("  "+c+": "+this.p0+" - "+this.p1+" "+this.quadrant+":"+this.angle)},getDirectionPt:function(){return this.p1},getAngle:function(){return this.angle},compareTo:function(e){var r=e;return this.compareDirection(r)},getFromNode:function(){return this.from},getSym:function(){return this.sym},setEdge:function(e){this.parentEdge=e},remove:function(){this.sym=null,this.parentEdge=null},getEdge:function(){return this.parentEdge},getQuadrant:function(){return this.quadrant},setSym:function(e){this.sym=e},getToNode:function(){return this.to},getEdgeDirection:function(){return this.edgeDirection},interfaces_:function(){return[f]},getClass:function(){return oe}}),oe.toEdges=function(e){for(var r=new k,a=e.iterator();a.hasNext();)r.add(a.next().parentEdge);return r},_(fe,oe),o(fe.prototype,{getNext:function(){return this.getToNode().getDegree()!==2?null:this.getToNode().getOutEdges().getEdges().get(0)===this.getSym()?this.getToNode().getOutEdges().getEdges().get(1):(N.isTrue(this.getToNode().getOutEdges().getEdges().get(1)===this.getSym()),this.getToNode().getOutEdges().getEdges().get(0))},interfaces_:function(){return[]},getClass:function(){return fe}}),_(pe,W),o(pe.prototype,{isRemoved:function(){return this.dirEdge===null},setDirectedEdges:function(e,r){this.dirEdge=[e,r],e.setEdge(this),r.setEdge(this),e.setSym(r),r.setSym(e),e.getFromNode().addOutEdge(e),r.getFromNode().addOutEdge(r)},getDirEdge:function(){if(Number.isInteger(arguments[0])){var e=arguments[0];return this.dirEdge[e]}if(arguments[0]instanceof Ue){var r=arguments[0];return this.dirEdge[0].getFromNode()===r?this.dirEdge[0]:this.dirEdge[1].getFromNode()===r?this.dirEdge[1]:null}},remove:function(){this.dirEdge=null},getOppositeNode:function(e){return this.dirEdge[0].getFromNode()===e?this.dirEdge[0].getToNode():this.dirEdge[1].getFromNode()===e?this.dirEdge[1].getToNode():null},interfaces_:function(){return[]},getClass:function(){return pe}}),o(Ie.prototype,{getNextEdge:function(e){var r=this.getIndex(e);return this.outEdges.get(this.getIndex(r+1))},getCoordinate:function(){var e=this.iterator();if(!e.hasNext())return null;var r=e.next();return r.getCoordinate()},iterator:function(){return this.sortEdges(),this.outEdges.iterator()},sortEdges:function(){this.sorted||(Es.sort(this.outEdges),this.sorted=!0)},remove:function(e){this.outEdges.remove(e)},getEdges:function(){return this.sortEdges(),this.outEdges},getNextCWEdge:function(e){var r=this.getIndex(e);return this.outEdges.get(this.getIndex(r-1))},getIndex:function(){if(arguments[0]instanceof pe){var e=arguments[0];this.sortEdges();for(var r=0;r<this.outEdges.size();r++){var a=this.outEdges.get(r);if(a.getEdge()===e)return r}return-1}if(arguments[0]instanceof oe){var c=arguments[0];this.sortEdges();for(var r=0;r<this.outEdges.size();r++){var a=this.outEdges.get(r);if(a===c)return r}return-1}if(Number.isInteger(arguments[0])){var g=arguments[0],b=g%this.outEdges.size();return 0>b&&(b+=this.outEdges.size()),b}},add:function(e){this.outEdges.add(e),this.sorted=!1},getDegree:function(){return this.outEdges.size()},interfaces_:function(){return[]},getClass:function(){return Ie}}),_(Ue,W),o(Ue.prototype,{isRemoved:function(){return this.pt===null},addOutEdge:function(e){this.deStar.add(e)},getCoordinate:function(){return this.pt},getOutEdges:function(){return this.deStar},remove:function(){if(arguments.length===0)this.pt=null;else if(arguments.length===1){var e=arguments[0];this.deStar.remove(e)}},getIndex:function(e){return this.deStar.getIndex(e)},getDegree:function(){return this.deStar.getDegree()},interfaces_:function(){return[]},getClass:function(){return Ue}}),Ue.getEdgesBetween=function(e,r){var a=oe.toEdges(e.getOutEdges().getEdges()),c=new Ye(a),g=oe.toEdges(r.getOutEdges().getEdges());return c.retainAll(g),c},_(wt,pe),o(wt.prototype,{getLine:function(){return this.line},interfaces_:function(){return[]},getClass:function(){return wt}}),o(zt.prototype,{find:function(e){return this.nodeMap.get(e)},iterator:function(){return this.nodeMap.values().iterator()},remove:function(e){return this.nodeMap.remove(e)},values:function(){return this.nodeMap.values()},add:function(e){return this.nodeMap.put(e.getCoordinate(),e),e},interfaces_:function(){return[]},getClass:function(){return zt}}),o($n.prototype,{findNodesOfDegree:function(e){for(var r=new k,a=this.nodeIterator();a.hasNext();){var c=a.next();c.getDegree()===e&&r.add(c)}return r},dirEdgeIterator:function(){return this.dirEdges.iterator()},edgeIterator:function(){return this.edges.iterator()},remove:function(){if(arguments[0]instanceof pe){var e=arguments[0];this.remove(e.getDirEdge(0)),this.remove(e.getDirEdge(1)),this.edges.remove(e),e.remove()}else if(arguments[0]instanceof oe){var r=arguments[0],a=r.getSym();a!==null&&a.setSym(null),r.getFromNode().remove(r),r.remove(),this.dirEdges.remove(r)}else if(arguments[0]instanceof Ue){for(var c=arguments[0],g=c.getOutEdges().getEdges(),b=g.iterator();b.hasNext();){var I=b.next(),a=I.getSym();a!==null&&this.remove(a),this.dirEdges.remove(I);var F=I.getEdge();F!==null&&this.edges.remove(F)}this.nodeMap.remove(c.getCoordinate()),c.remove()}},findNode:function(e){return this.nodeMap.find(e)},getEdges:function(){return this.edges},nodeIterator:function(){return this.nodeMap.iterator()},contains:function(){if(arguments[0]instanceof pe){var e=arguments[0];return this.edges.contains(e)}if(arguments[0]instanceof oe){var r=arguments[0];return this.dirEdges.contains(r)}},add:function(){if(arguments[0]instanceof Ue){var e=arguments[0];this.nodeMap.add(e)}else if(arguments[0]instanceof pe){var r=arguments[0];this.edges.add(r),this.add(r.getDirEdge(0)),this.add(r.getDirEdge(1))}else if(arguments[0]instanceof oe){var a=arguments[0];this.dirEdges.add(a)}},getNodes:function(){return this.nodeMap.values()},interfaces_:function(){return[]},getClass:function(){return $n}}),_(Xn,$n),o(Xn.prototype,{addEdge:function(e){if(e.isEmpty())return null;var r=Le.removeRepeatedPoints(e.getCoordinates());if(r.length<=1)return null;var a=r[0],c=r[r.length-1],g=this.getNode(a),b=this.getNode(c),I=new fe(g,b,r[1],!0),F=new fe(b,g,r[r.length-2],!1),Z=new wt(e);Z.setDirectedEdges(I,F),this.add(Z)},getNode:function(e){var r=this.findNode(e);return r===null&&(r=new Ue(e),this.add(r)),r},interfaces_:function(){return[]},getClass:function(){return Xn}}),o(Wr.prototype,{buildEdgeStringsForUnprocessedNodes:function(){for(var e=this.graph.getNodes().iterator();e.hasNext();){var r=e.next();r.isMarked()||(N.isTrue(r.getDegree()===2),this.buildEdgeStringsStartingAt(r),r.setMarked(!0))}},buildEdgeStringsForNonDegree2Nodes:function(){for(var e=this.graph.getNodes().iterator();e.hasNext();){var r=e.next();r.getDegree()!==2&&(this.buildEdgeStringsStartingAt(r),r.setMarked(!0))}},buildEdgeStringsForObviousStartNodes:function(){this.buildEdgeStringsForNonDegree2Nodes()},getMergedLineStrings:function(){return this.merge(),this.mergedLineStrings},buildEdgeStringsStartingAt:function(e){for(var r=e.getOutEdges().iterator();r.hasNext();){var a=r.next();a.getEdge().isMarked()||this.edgeStrings.add(this.buildEdgeStringStartingWith(a))}},merge:function(){if(this.mergedLineStrings!==null)return null;W.setMarked(this.graph.nodeIterator(),!1),W.setMarked(this.graph.edgeIterator(),!1),this.edgeStrings=new k,this.buildEdgeStringsForObviousStartNodes(),this.buildEdgeStringsForIsolatedLoops(),this.mergedLineStrings=new k;for(var e=this.edgeStrings.iterator();e.hasNext();){var r=e.next();this.mergedLineStrings.add(r.toLineString())}},buildEdgeStringStartingWith:function(e){var r=new z(this.factory),a=e;do r.add(a),a.getEdge().setMarked(!0),a=a.getNext();while(a!==null&&a!==e);return r},add:function(){if(arguments[0]instanceof ae){var e=arguments[0];e.apply({interfaces_:function(){return[be]},filter:function(b){b instanceof Se&&this.add(b)}})}else if(X(arguments[0],M)){var r=arguments[0];this.mergedLineStrings=null;for(var a=r.iterator();a.hasNext();){var c=a.next();this.add(c)}}else if(arguments[0]instanceof Se){var g=arguments[0];this.factory===null&&(this.factory=g.getFactory()),this.graph.addEdge(g)}},buildEdgeStringsForIsolatedLoops:function(){this.buildEdgeStringsForUnprocessedNodes()},interfaces_:function(){return[]},getClass:function(){return Wr}});var LA=Object.freeze({LineMerger:Wr}),NA=Object.freeze({OverlayOp:$e});_(mr,oe),o(mr.prototype,{getNext:function(){return this.next},isInRing:function(){return this.edgeRing!==null},setRing:function(e){this.edgeRing=e},setLabel:function(e){this.label=e},getLabel:function(){return this.label},setNext:function(e){this.next=e},getRing:function(){return this.edgeRing},interfaces_:function(){return[]},getClass:function(){return mr}}),_(xs,pe),o(xs.prototype,{getLine:function(){return this.line},interfaces_:function(){return[]},getClass:function(){return xs}}),o(yi.prototype,{isIncluded:function(){return this._isIncluded},getCoordinates:function(){if(this.ringPts===null){for(var e=new H,r=this.deList.iterator();r.hasNext();){var a=r.next(),c=a.getEdge();yi.addEdge(c.getLine().getCoordinates(),a.getEdgeDirection(),e)}this.ringPts=e.toCoordinateArray()}return this.ringPts},isIncludedSet:function(){return this._isIncludedSet},isValid:function(){return this.getCoordinates(),this.ringPts.length<=3?!1:(this.getRing(),this.ring.isValid())},build:function(e){var r=e;do this.add(r),r.setRing(this),r=r.getNext(),N.isTrue(r!==null,"found null DE in ring"),N.isTrue(r===e||!r.isInRing(),"found DE already in ring");while(r!==e)},isOuterHole:function(){return this._isHole?!this.hasShell():!1},getPolygon:function(){var e=null;if(this.holes!==null){e=new Array(this.holes.size()).fill(null);for(var r=0;r<this.holes.size();r++)e[r]=this.holes.get(r)}var a=this.factory.createPolygon(this.ring,e);return a},isHole:function(){return this._isHole},isProcessed:function(){return this._isProcessed},addHole:function(){if(arguments[0]instanceof It){var e=arguments[0];this.holes===null&&(this.holes=new k),this.holes.add(e)}else if(arguments[0]instanceof yi){var r=arguments[0];r.setShell(this);var a=r.getRing();this.holes===null&&(this.holes=new k),this.holes.add(a)}},setIncluded:function(e){this._isIncluded=e,this._isIncludedSet=!0},getOuterHole:function(){if(this.isHole())return null;for(var e=0;e<this.deList.size();e++){var r=this.deList.get(e),a=r.getSym().getRing();if(a.isOuterHole())return a}return null},computeHole:function(){var e=this.getRing();this._isHole=xe.isCCW(e.getCoordinates())},hasShell:function(){return this.shell!==null},isOuterShell:function(){return this.getOuterHole()!==null},getLineString:function(){return this.getCoordinates(),this.factory.createLineString(this.ringPts)},toString:function(){return ot.toLineString(new rn(this.getCoordinates()))},getShell:function(){return this.isHole()?this.shell:this},add:function(e){this.deList.add(e)},getRing:function(){if(this.ring!==null)return this.ring;this.getCoordinates(),this.ringPts.length<3&&$.out.println(this.ringPts);try{this.ring=this.factory.createLinearRing(this.ringPts)}catch(e){if(!(e instanceof Y))throw e;$.out.println(this.ringPts)}finally{}return this.ring},updateIncluded:function(){if(this.isHole())return null;for(var e=0;e<this.deList.size();e++){var r=this.deList.get(e),a=r.getSym().getRing().getShell();if(a!==null&&a.isIncludedSet())return this.setIncluded(!a.isIncluded()),null}},setShell:function(e){this.shell=e},setProcessed:function(e){this._isProcessed=e},interfaces_:function(){return[]},getClass:function(){return yi}}),yi.findDirEdgesInRing=function(e){var r=e,a=new k;do a.add(r),r=r.getNext(),N.isTrue(r!==null,"found null DE in ring"),N.isTrue(r===e||!r.isInRing(),"found DE already in ring");while(r!==e);return a},yi.addEdge=function(e,r,a){if(r)for(var c=0;c<e.length;c++)a.add(e[c],!1);else for(var c=e.length-1;c>=0;c--)a.add(e[c],!1)},yi.findEdgeRingContaining=function(e,r){for(var a=e.getRing(),c=a.getEnvelopeInternal(),g=a.getCoordinateN(0),b=null,I=null,F=r.iterator();F.hasNext();){var Z=F.next(),ne=Z.getRing(),de=ne.getEnvelopeInternal();if(!de.equals(c)&&de.contains(c)){g=Le.ptNotInList(a.getCoordinates(),ne.getCoordinates());var me=!1;xe.isPointInRing(g,ne.getCoordinates())&&(me=!0),me&&(b===null||I.contains(de))&&(b=Z,I=b.getRing().getEnvelopeInternal())}}return b},o(ic.prototype,{compare:function(e,r){var a=e,c=r;return a.getRing().getEnvelope().compareTo(c.getRing().getEnvelope())},interfaces_:function(){return[p]},getClass:function(){return ic}}),yi.EnvelopeComparator=ic,_(zn,$n),o(zn.prototype,{findEdgeRing:function(e){var r=new yi(this.factory);return r.build(e),r},computeDepthParity:function(){if(arguments.length===0)for(;;){var e=null;if(e===null)return null;this.computeDepthParity(e)}},computeNextCWEdges:function(){for(var e=this.nodeIterator();e.hasNext();){var r=e.next();zn.computeNextCWEdges(r)}},addEdge:function(e){if(e.isEmpty())return null;var r=Le.removeRepeatedPoints(e.getCoordinates());if(r.length<2)return null;var a=r[0],c=r[r.length-1],g=this.getNode(a),b=this.getNode(c),I=new mr(g,b,r[1],!0),F=new mr(b,g,r[r.length-2],!1),Z=new xs(e);Z.setDirectedEdges(I,F),this.add(Z)},deleteCutEdges:function(){this.computeNextCWEdges(),zn.findLabeledEdgeRings(this.dirEdges);for(var e=new k,r=this.dirEdges.iterator();r.hasNext();){var a=r.next();if(!a.isMarked()){var c=a.getSym();if(a.getLabel()===c.getLabel()){a.setMarked(!0),c.setMarked(!0);var g=a.getEdge();e.add(g.getLine())}}}return e},getEdgeRings:function(){this.computeNextCWEdges(),zn.label(this.dirEdges,-1);var e=zn.findLabeledEdgeRings(this.dirEdges);this.convertMaximalToMinimalEdgeRings(e);for(var r=new k,a=this.dirEdges.iterator();a.hasNext();){var c=a.next();if(!c.isMarked()&&!c.isInRing()){var g=this.findEdgeRing(c);r.add(g)}}return r},getNode:function(e){var r=this.findNode(e);return r===null&&(r=new Ue(e),this.add(r)),r},convertMaximalToMinimalEdgeRings:function(e){for(var r=e.iterator();r.hasNext();){var a=r.next(),c=a.getLabel(),g=zn.findIntersectionNodes(a,c);if(g!==null)for(var b=g.iterator();b.hasNext();){var I=b.next();zn.computeNextCCWEdges(I,c)}}},deleteDangles:function(){for(var e=this.findNodesOfDegree(1),r=new Ye,a=new kn,c=e.iterator();c.hasNext();)a.push(c.next());for(;!a.isEmpty();){var g=a.pop();zn.deleteAllEdges(g);for(var b=g.getOutEdges().getEdges(),c=b.iterator();c.hasNext();){var I=c.next();I.setMarked(!0);var F=I.getSym();F!==null&&F.setMarked(!0);var Z=I.getEdge();r.add(Z.getLine());var ne=I.getToNode();zn.getDegreeNonDeleted(ne)===1&&a.push(ne)}}return r},interfaces_:function(){return[]},getClass:function(){return zn}}),zn.findLabeledEdgeRings=function(e){for(var r=new k,a=1,c=e.iterator();c.hasNext();){var g=c.next();if(!(g.isMarked()||g.getLabel()>=0)){r.add(g);var b=yi.findDirEdgesInRing(g);zn.label(b,a),a++}}return r},zn.getDegreeNonDeleted=function(e){for(var r=e.getOutEdges().getEdges(),a=0,c=r.iterator();c.hasNext();){var g=c.next();g.isMarked()||a++}return a},zn.deleteAllEdges=function(e){for(var r=e.getOutEdges().getEdges(),a=r.iterator();a.hasNext();){var c=a.next();c.setMarked(!0);var g=c.getSym();g!==null&&g.setMarked(!0)}},zn.label=function(e,r){for(var a=e.iterator();a.hasNext();){var c=a.next();c.setLabel(r)}},zn.computeNextCWEdges=function(e){for(var r=e.getOutEdges(),a=null,c=null,g=r.getEdges().iterator();g.hasNext();){var b=g.next();if(!b.isMarked()){if(a===null&&(a=b),c!==null){var I=c.getSym();I.setNext(b)}c=b}}if(c!==null){var I=c.getSym();I.setNext(a)}},zn.computeNextCCWEdges=function(e,r){for(var a=e.getOutEdges(),c=null,g=null,b=a.getEdges(),I=b.size()-1;I>=0;I--){var F=b.get(I),Z=F.getSym(),ne=null;F.getLabel()===r&&(ne=F);var de=null;Z.getLabel()===r&&(de=Z),ne===null&&de===null||(de!==null&&(g=de),ne!==null&&(g!==null&&(g.setNext(ne),g=null),c===null&&(c=ne)))}g!==null&&(N.isTrue(c!==null),g.setNext(c))},zn.getDegree=function(e,r){for(var a=e.getOutEdges().getEdges(),c=0,g=a.iterator();g.hasNext();){var b=g.next();b.getLabel()===r&&c++}return c},zn.findIntersectionNodes=function(e,r){var a=e,c=null;do{var g=a.getFromNode();zn.getDegree(g,r)>1&&(c===null&&(c=new k),c.add(g)),a=a.getNext(),N.isTrue(a!==null,"found null DE in ring"),N.isTrue(a===e||!a.isInRing(),"found DE already in ring")}while(a!==e);return c},o(Nr.prototype,{getGeometry:function(){return this.geomFactory===null&&(this.geomFactory=new dt),this.polygonize(),this.extractOnlyPolygonal?this.geomFactory.buildGeometry(this.polyList):this.geomFactory.createGeometryCollection(dt.toGeometryArray(this.polyList))},getInvalidRingLines:function(){return this.polygonize(),this.invalidRingLines},findValidRings:function(e,r,a){for(var c=e.iterator();c.hasNext();){var g=c.next();g.isValid()?r.add(g):a.add(g.getLineString())}},polygonize:function(){if(this.polyList!==null||(this.polyList=new k,this.graph===null))return null;this.dangles=this.graph.deleteDangles(),this.cutEdges=this.graph.deleteCutEdges();var e=this.graph.getEdgeRings(),r=new k;this.invalidRingLines=new k,this.isCheckingRingsValid?this.findValidRings(e,r,this.invalidRingLines):r=e,this.findShellsAndHoles(r),Nr.assignHolesToShells(this.holeList,this.shellList),Es.sort(this.shellList,new yi.EnvelopeComparator);var a=!0;this.extractOnlyPolygonal&&(Nr.findDisjointShells(this.shellList),a=!1),this.polyList=Nr.extractPolygons(this.shellList,a)},getDangles:function(){return this.polygonize(),this.dangles},getCutEdges:function(){return this.polygonize(),this.cutEdges},getPolygons:function(){return this.polygonize(),this.polyList},add:function(){if(X(arguments[0],M))for(var e=arguments[0],r=e.iterator();r.hasNext();){var a=r.next();this.add(a)}else if(arguments[0]instanceof Se){var c=arguments[0];this.geomFactory=c.getFactory(),this.graph===null&&(this.graph=new zn(this.geomFactory)),this.graph.addEdge(c)}else if(arguments[0]instanceof ae){var g=arguments[0];g.apply(this.lineStringAdder)}},setCheckRingsValid:function(e){this.isCheckingRingsValid=e},findShellsAndHoles:function(e){this.holeList=new k,this.shellList=new k;for(var r=e.iterator();r.hasNext();){var a=r.next();a.computeHole(),a.isHole()?this.holeList.add(a):this.shellList.add(a)}},interfaces_:function(){return[]},getClass:function(){return Nr}}),Nr.findOuterShells=function(e){for(var r=e.iterator();r.hasNext();){var a=r.next(),c=a.getOuterHole();c===null||c.isProcessed()||(a.setIncluded(!0),c.setProcessed(!0))}},Nr.extractPolygons=function(e,r){for(var a=new k,c=e.iterator();c.hasNext();){var g=c.next();(r||g.isIncluded())&&a.add(g.getPolygon())}return a},Nr.assignHolesToShells=function(e,r){for(var a=e.iterator();a.hasNext();){var c=a.next();Nr.assignHoleToShell(c,r)}},Nr.assignHoleToShell=function(e,r){var a=yi.findEdgeRingContaining(e,r);a!==null&&a.addHole(e)},Nr.findDisjointShells=function(e){Nr.findOuterShells(e);var r=null;do{r=!1;for(var a=e.iterator();a.hasNext();){var c=a.next();c.isIncludedSet()||(c.updateIncluded(),c.isIncludedSet()||(r=!0))}}while(r)},o(Zu.prototype,{filter:function(e){e instanceof Se&&this.p.add(e)},interfaces_:function(){return[be]},getClass:function(){return Zu}}),Nr.LineStringAdder=Zu;var IA=Object.freeze({Polygonizer:Nr});o(Va.prototype,{createEdgeEndForNext:function(e,r,a,c){var g=a.segmentIndex+1;if(g>=e.getNumPoints()&&c===null)return null;var b=e.getCoordinate(g);c!==null&&c.segmentIndex===a.segmentIndex&&(b=c.coord);var I=new hi(e,a.coord,b,new En(e.getLabel()));r.add(I)},createEdgeEndForPrev:function(e,r,a,c){var g=a.segmentIndex;if(a.dist===0){if(g===0)return null;g--}var b=e.getCoordinate(g);c!==null&&c.segmentIndex>=g&&(b=c.coord);var I=new En(e.getLabel());I.flip();var F=new hi(e,a.coord,b,I);r.add(F)},computeEdgeEnds:function(){if(arguments.length===1){for(var e=arguments[0],r=new k,a=e;a.hasNext();){var c=a.next();this.computeEdgeEnds(c,r)}return r}if(arguments.length===2){var g=arguments[0],b=arguments[1],I=g.getEdgeIntersectionList();I.addEndpoints();var F=I.iterator(),Z=null,ne=null;if(!F.hasNext())return null;var de=F.next();do Z=ne,ne=de,de=null,F.hasNext()&&(de=F.next()),ne!==null&&(this.createEdgeEndForPrev(g,b,ne,Z),this.createEdgeEndForNext(g,b,ne,de));while(ne!==null)}},interfaces_:function(){return[]},getClass:function(){return Va}}),_(Dn,hi),o(Dn.prototype,{insert:function(e){this.edgeEnds.add(e)},print:function(e){e.println("EdgeEndBundle--> Label: "+this.label);for(var r=this.iterator();r.hasNext();){var a=r.next();a.print(e),e.println()}},iterator:function(){return this.edgeEnds.iterator()},getEdgeEnds:function(){return this.edgeEnds},computeLabelOn:function(e,r){for(var a=0,c=!1,g=this.iterator();g.hasNext();){var b=g.next(),I=b.getLabel().getLocation(e);I===A.BOUNDARY&&a++,I===A.INTERIOR&&(c=!0)}var I=A.NONE;c&&(I=A.INTERIOR),a>0&&(I=Lr.determineBoundary(r,a)),this.label.setLocation(e,I)},computeLabelSide:function(e,r){for(var a=this.iterator();a.hasNext();){var c=a.next();if(c.getLabel().isArea()){var g=c.getLabel().getLocation(e,r);if(g===A.INTERIOR)return this.label.setLocation(e,r,A.INTERIOR),null;g===A.EXTERIOR&&this.label.setLocation(e,r,A.EXTERIOR)}}},getLabel:function(){return this.label},computeLabelSides:function(e){this.computeLabelSide(e,Oe.LEFT),this.computeLabelSide(e,Oe.RIGHT)},updateIM:function(e){xr.updateIM(this.label,e)},computeLabel:function(e){for(var r=!1,a=this.iterator();a.hasNext();){var c=a.next();c.getLabel().isArea()&&(r=!0)}r?this.label=new En(A.NONE,A.NONE,A.NONE):this.label=new En(A.NONE);for(var g=0;2>g;g++)this.computeLabelOn(g,e),r&&this.computeLabelSides(g)},interfaces_:function(){return[]},getClass:function(){return Dn}}),_(xo,Rs),o(xo.prototype,{updateIM:function(e){for(var r=this.iterator();r.hasNext();){var a=r.next();a.updateIM(e)}},insert:function(e){var r=this.edgeMap.get(e);r===null?(r=new Dn(e),this.insertEdgeEnd(e,r)):r.insert(e)},interfaces_:function(){return[]},getClass:function(){return xo}}),_(Xu,br),o(Xu.prototype,{updateIMFromEdges:function(e){this.edges.updateIM(e)},computeIM:function(e){e.setAtLeastIfValid(this.label.getLocation(0),this.label.getLocation(1),0)},interfaces_:function(){return[]},getClass:function(){return Xu}}),_(Ha,go),o(Ha.prototype,{createNode:function(e){return new Xu(e,new xo)},interfaces_:function(){return[]},getClass:function(){return Ha}}),o(Yu.prototype,{insertEdgeEnds:function(e){for(var r=e.iterator();r.hasNext();){var a=r.next();this.nodes.add(a)}},computeProperIntersectionIM:function(e,r){var a=this.arg[0].getGeometry().getDimension(),c=this.arg[1].getGeometry().getDimension(),g=e.hasProperIntersection(),b=e.hasProperInteriorIntersection();a===2&&c===2?g&&r.setAtLeast("212101212"):a===2&&c===1?(g&&r.setAtLeast("FFF0FFFF2"),b&&r.setAtLeast("1FFFFF1FF")):a===1&&c===2?(g&&r.setAtLeast("F0FFFFFF2"),b&&r.setAtLeast("1F1FFFFFF")):a===1&&c===1&&b&&r.setAtLeast("0FFFFFFFF")},labelIsolatedEdges:function(e,r){for(var a=this.arg[e].getEdgeIterator();a.hasNext();){var c=a.next();c.isIsolated()&&(this.labelIsolatedEdge(c,r,this.arg[r].getGeometry()),this.isolatedEdges.add(c))}},labelIsolatedEdge:function(e,r,a){if(a.getDimension()>0){var c=this.ptLocator.locate(e.getCoordinate(),a);e.getLabel().setAllLocations(r,c)}else e.getLabel().setAllLocations(r,A.EXTERIOR)},computeIM:function(){var e=new xt;if(e.set(A.EXTERIOR,A.EXTERIOR,2),!this.arg[0].getGeometry().getEnvelopeInternal().intersects(this.arg[1].getGeometry().getEnvelopeInternal()))return this.computeDisjointIM(e),e;this.arg[0].computeSelfNodes(this.li,!1),this.arg[1].computeSelfNodes(this.li,!1);var r=this.arg[0].computeEdgeIntersections(this.arg[1],this.li,!1);this.computeIntersectionNodes(0),this.computeIntersectionNodes(1),this.copyNodesAndLabels(0),this.copyNodesAndLabels(1),this.labelIsolatedNodes(),this.computeProperIntersectionIM(r,e);var a=new Va,c=a.computeEdgeEnds(this.arg[0].getEdgeIterator());this.insertEdgeEnds(c);var g=a.computeEdgeEnds(this.arg[1].getEdgeIterator());return this.insertEdgeEnds(g),this.labelNodeEdges(),this.labelIsolatedEdges(0,1),this.labelIsolatedEdges(1,0),this.updateIM(e),e},labelNodeEdges:function(){for(var e=this.nodes.iterator();e.hasNext();){var r=e.next();r.getEdges().computeLabelling(this.arg)}},copyNodesAndLabels:function(e){for(var r=this.arg[e].getNodeIterator();r.hasNext();){var a=r.next(),c=this.nodes.addNode(a.getCoordinate());c.setLabel(e,a.getLabel().getLocation(e))}},labelIntersectionNodes:function(e){for(var r=this.arg[e].getEdgeIterator();r.hasNext();)for(var a=r.next(),c=a.getLabel().getLocation(e),g=a.getEdgeIntersectionList().iterator();g.hasNext();){var b=g.next(),I=this.nodes.find(b.coord);I.getLabel().isNull(e)&&(c===A.BOUNDARY?I.setLabelBoundary(e):I.setLabel(e,A.INTERIOR))}},labelIsolatedNode:function(e,r){var a=this.ptLocator.locate(e.getCoordinate(),this.arg[r].getGeometry());e.getLabel().setAllLocations(r,a)},computeIntersectionNodes:function(e){for(var r=this.arg[e].getEdgeIterator();r.hasNext();)for(var a=r.next(),c=a.getLabel().getLocation(e),g=a.getEdgeIntersectionList().iterator();g.hasNext();){var b=g.next(),I=this.nodes.addNode(b.coord);c===A.BOUNDARY?I.setLabelBoundary(e):I.getLabel().isNull(e)&&I.setLabel(e,A.INTERIOR)}},labelIsolatedNodes:function(){for(var e=this.nodes.iterator();e.hasNext();){var r=e.next(),a=r.getLabel();N.isTrue(a.getGeometryCount()>0,"node with empty label found"),r.isIsolated()&&(a.isNull(0)?this.labelIsolatedNode(r,0):this.labelIsolatedNode(r,1))}},updateIM:function(e){for(var r=this.isolatedEdges.iterator();r.hasNext();){var a=r.next();a.updateIM(e)}for(var c=this.nodes.iterator();c.hasNext();){var g=c.next();g.updateIM(e),g.updateIMFromEdges(e)}},computeDisjointIM:function(e){var r=this.arg[0].getGeometry();r.isEmpty()||(e.set(A.INTERIOR,A.EXTERIOR,r.getDimension()),e.set(A.BOUNDARY,A.EXTERIOR,r.getBoundaryDimension()));var a=this.arg[1].getGeometry();a.isEmpty()||(e.set(A.EXTERIOR,A.INTERIOR,a.getDimension()),e.set(A.EXTERIOR,A.BOUNDARY,a.getBoundaryDimension()))},interfaces_:function(){return[]},getClass:function(){return Yu}}),o(Co.prototype,{isContainedInBoundary:function(e){if(e instanceof _t)return!1;if(e instanceof Ge)return this.isPointContainedInBoundary(e);if(e instanceof Se)return this.isLineStringContainedInBoundary(e);for(var r=0;r<e.getNumGeometries();r++){var a=e.getGeometryN(r);if(!this.isContainedInBoundary(a))return!1}return!0},isLineSegmentContainedInBoundary:function(e,r){if(e.equals(r))return this.isPointContainedInBoundary(e);if(e.x===r.x){if(e.x===this.rectEnv.getMinX()||e.x===this.rectEnv.getMaxX())return!0}else if(e.y===r.y&&(e.y===this.rectEnv.getMinY()||e.y===this.rectEnv.getMaxY()))return!0;return!1},isLineStringContainedInBoundary:function(e){for(var r=e.getCoordinateSequence(),a=new w,c=new w,g=0;g<r.size()-1;g++)if(r.getCoordinate(g,a),r.getCoordinate(g+1,c),!this.isLineSegmentContainedInBoundary(a,c))return!1;return!0},isPointContainedInBoundary:function(){if(arguments[0]instanceof Ge){var e=arguments[0];return this.isPointContainedInBoundary(e.getCoordinate())}if(arguments[0]instanceof w){var r=arguments[0];return r.x===this.rectEnv.getMinX()||r.x===this.rectEnv.getMaxX()||r.y===this.rectEnv.getMinY()||r.y===this.rectEnv.getMaxY()}},contains:function(e){return this.rectEnv.contains(e.getEnvelopeInternal())?!this.isContainedInBoundary(e):!1},interfaces_:function(){return[]},getClass:function(){return Co}}),Co.contains=function(e,r){var a=new Co(e);return a.contains(r)},o(Ku.prototype,{intersects:function(e,r){var a=new V(e,r);if(!this.rectEnv.intersects(a))return!1;if(this.rectEnv.intersects(e)||this.rectEnv.intersects(r))return!0;if(e.compareTo(r)>0){var c=e;e=r,r=c}var g=!1;return r.y>e.y&&(g=!0),g?this.li.computeIntersection(e,r,this.diagDown0,this.diagDown1):this.li.computeIntersection(e,r,this.diagUp0,this.diagUp1),!!this.li.hasIntersection()},interfaces_:function(){return[]},getClass:function(){return Ku}}),o(Hs.prototype,{applyTo:function(e){for(var r=0;r<e.getNumGeometries()&&!this._isDone;r++){var a=e.getGeometryN(r);if(a instanceof Re)this.applyTo(a);else if(this.visit(a),this.isDone())return this._isDone=!0,null}},interfaces_:function(){return[]},getClass:function(){return Hs}}),o(Ju.prototype,{intersects:function(e){if(!this.rectEnv.intersects(e.getEnvelopeInternal()))return!1;var r=new Ud(this.rectEnv);if(r.applyTo(e),r.intersects())return!0;var a=new Vd(this.rectangle);if(a.applyTo(e),a.containsPoint())return!0;var c=new Hd(this.rectangle);return c.applyTo(e),!!c.intersects()},interfaces_:function(){return[]},getClass:function(){return Ju}}),Ju.intersects=function(e,r){var a=new Ju(e);return a.intersects(r)},_(Ud,Hs),o(Ud.prototype,{isDone:function(){return this._intersects===!0},visit:function(e){var r=e.getEnvelopeInternal();return this.rectEnv.intersects(r)?this.rectEnv.contains(r)?(this._intersects=!0,null):r.getMinX()>=this.rectEnv.getMinX()&&r.getMaxX()<=this.rectEnv.getMaxX()?(this._intersects=!0,null):r.getMinY()>=this.rectEnv.getMinY()&&r.getMaxY()<=this.rectEnv.getMaxY()?(this._intersects=!0,null):void 0:null},intersects:function(){return this._intersects},interfaces_:function(){return[]},getClass:function(){return Ud}}),_(Vd,Hs),o(Vd.prototype,{isDone:function(){return this._containsPoint===!0},visit:function(e){if(!(e instanceof _t))return null;var r=e.getEnvelopeInternal();if(!this.rectEnv.intersects(r))return null;for(var a=new w,c=0;4>c;c++)if(this.rectSeq.getCoordinate(c,a),r.contains(a)&&Vr.containsPointInPolygon(a,e))return this._containsPoint=!0,null},containsPoint:function(){return this._containsPoint},interfaces_:function(){return[]},getClass:function(){return Vd}}),_(Hd,Hs),o(Hd.prototype,{intersects:function(){return this.hasIntersection},isDone:function(){return this.hasIntersection===!0},visit:function(e){var r=e.getEnvelopeInternal();if(!this.rectEnv.intersects(r))return null;var a=fr.getLines(e);this.checkIntersectionWithLineStrings(a)},checkIntersectionWithLineStrings:function(e){for(var r=e.iterator();r.hasNext();){var a=r.next();if(this.checkIntersectionWithSegments(a),this.hasIntersection)return null}},checkIntersectionWithSegments:function(e){for(var r=e.getCoordinateSequence(),a=1;a<r.size();a++)if(r.getCoordinate(a-1,this.p0),r.getCoordinate(a,this.p1),this.rectIntersector.intersects(this.p0,this.p1))return this.hasIntersection=!0,null},interfaces_:function(){return[]},getClass:function(){return Hd}}),_(Qt,Ti),o(Qt.prototype,{getIntersectionMatrix:function(){return this._relate.computeIM()},interfaces_:function(){return[]},getClass:function(){return Qt}}),Qt.covers=function(e,r){return e.getEnvelopeInternal().covers(r.getEnvelopeInternal())?e.isRectangle()?!0:Qt.relate(e,r).isCovers():!1},Qt.intersects=function(e,r){return e.getEnvelopeInternal().intersects(r.getEnvelopeInternal())?e.isRectangle()?Ju.intersects(e,r):r.isRectangle()?Ju.intersects(r,e):Qt.relate(e,r).isIntersects():!1},Qt.touches=function(e,r){return e.getEnvelopeInternal().intersects(r.getEnvelopeInternal())?Qt.relate(e,r).isTouches(e.getDimension(),r.getDimension()):!1},Qt.within=function(e,r){return r.contains(e)},Qt.coveredBy=function(e,r){return Qt.covers(r,e)},Qt.relate=function(){if(arguments.length===2){var e=arguments[0],r=arguments[1],a=new Qt(e,r),c=a.getIntersectionMatrix();return c}if(arguments.length===3){if(typeof arguments[2]=="string"&&arguments[0]instanceof ae&&arguments[1]instanceof ae){var g=arguments[0],b=arguments[1],I=arguments[2];return Qt.relateWithCheck(g,b).matches(I)}if(X(arguments[2],we)&&arguments[0]instanceof ae&&arguments[1]instanceof ae){var F=arguments[0],Z=arguments[1],ne=arguments[2],a=new Qt(F,Z,ne),c=a.getIntersectionMatrix();return c}}},Qt.overlaps=function(e,r){return e.getEnvelopeInternal().intersects(r.getEnvelopeInternal())?Qt.relate(e,r).isOverlaps(e.getDimension(),r.getDimension()):!1},Qt.disjoint=function(e,r){return!e.intersects(r)},Qt.relateWithCheck=function(e,r){return e.checkNotGeometryCollection(e),e.checkNotGeometryCollection(r),Qt.relate(e,r)},Qt.crosses=function(e,r){return e.getEnvelopeInternal().intersects(r.getEnvelopeInternal())?Qt.relate(e,r).isCrosses(e.getDimension(),r.getDimension()):!1},Qt.contains=function(e,r){return e.getEnvelopeInternal().contains(r.getEnvelopeInternal())?e.isRectangle()?Co.contains(e,r):Qt.relate(e,r).isContains():!1};var TA=Object.freeze({RelateOp:Qt});o(bi.prototype,{extractElements:function(e,r){if(e===null)return null;for(var a=0;a<e.getNumGeometries();a++){var c=e.getGeometryN(a);this.skipEmpty&&c.isEmpty()||r.add(c)}},combine:function(){for(var e=new k,r=this.inputGeoms.iterator();r.hasNext();){var a=r.next();this.extractElements(a,e)}return e.size()===0?this.geomFactory!==null?this.geomFactory.createGeometryCollection(null):null:this.geomFactory.buildGeometry(e)},interfaces_:function(){return[]},getClass:function(){return bi}}),bi.combine=function(){if(arguments.length===1){var e=arguments[0],r=new bi(e);return r.combine()}if(arguments.length===2){var a=arguments[0],c=arguments[1],r=new bi(bi.createList(a,c));return r.combine()}if(arguments.length===3){var g=arguments[0],b=arguments[1],I=arguments[2],r=new bi(bi.createList(g,b,I));return r.combine()}},bi.extractFactory=function(e){return e.isEmpty()?null:e.iterator().next().getFactory()},bi.createList=function(){if(arguments.length===2){var e=arguments[0],r=arguments[1],a=new k;return a.add(e),a.add(r),a}if(arguments.length===3){var c=arguments[0],g=arguments[1],b=arguments[2],a=new k;return a.add(c),a.add(g),a.add(b),a}},o(sc.prototype,{union:function(){for(var e=new yt,r=new ut,a=0;a<this.pointGeom.getNumGeometries();a++){var c=this.pointGeom.getGeometryN(a),g=c.getCoordinate(),b=e.locate(g,this.otherGeom);b===A.EXTERIOR&&r.add(g)}if(r.size()===0)return this.otherGeom;var I=null,F=Le.toCoordinateArray(r);return I=F.length===1?this.geomFact.createPoint(F[0]):this.geomFact.createMultiPointFromCoords(F),bi.combine(I,this.otherGeom)},interfaces_:function(){return[]},getClass:function(){return sc}}),sc.union=function(e,r){var a=new sc(e,r);return a.union()},o(na.prototype,{filter:function(e){this.sortIndex!==-1&&e.getSortIndex()!==this.sortIndex||this.comps.add(e)},interfaces_:function(){return[ht]},getClass:function(){return na}}),na.extract=function(){if(arguments.length===2){var e=arguments[0],r=arguments[1];return na.extract(e,r,new k)}if(arguments.length===3){var a=arguments[0],c=arguments[1],g=arguments[2];return a.getSortIndex()===c?g.add(a):a instanceof Re&&a.apply(new na(c,g)),g}},o(ki.prototype,{reduceToGeometries:function(e){for(var r=new k,a=e.iterator();a.hasNext();){var c=a.next(),g=null;X(c,T)?g=this.unionTree(c):c instanceof ae&&(g=c),r.add(g)}return r},extractByEnvelope:function(e,r,a){for(var c=new k,g=0;g<r.getNumGeometries();g++){var b=r.getGeometryN(g);b.getEnvelopeInternal().intersects(e)?c.add(b):a.add(b)}return this.geomFactory.buildGeometry(c)},unionOptimized:function(e,r){var a=e.getEnvelopeInternal(),c=r.getEnvelopeInternal();if(!a.intersects(c)){var g=bi.combine(e,r);return g}if(e.getNumGeometries()<=1&&r.getNumGeometries()<=1)return this.unionActual(e,r);var b=a.intersection(c);return this.unionUsingEnvelopeIntersection(e,r,b)},union:function(){if(this.inputPolys===null)throw new IllegalStateException("union() method cannot be called twice");if(this.inputPolys.isEmpty())return null;this.geomFactory=this.inputPolys.iterator().next().getFactory();for(var e=new pn(ki.STRTREE_NODE_CAPACITY),r=this.inputPolys.iterator();r.hasNext();){var a=r.next();e.insert(a.getEnvelopeInternal(),a)}this.inputPolys=null;var c=e.itemsTree(),g=this.unionTree(c);return g},binaryUnion:function(){if(arguments.length===1){var e=arguments[0];return this.binaryUnion(e,0,e.size())}if(arguments.length===3){var r=arguments[0],a=arguments[1],c=arguments[2];if(1>=c-a){var b=ki.getGeometry(r,a);return this.unionSafe(b,null)}if(c-a===2)return this.unionSafe(ki.getGeometry(r,a),ki.getGeometry(r,a+1));var g=Math.trunc((c+a)/2),b=this.binaryUnion(r,a,g),I=this.binaryUnion(r,g,c);return this.unionSafe(b,I)}},repeatedUnion:function(e){for(var r=null,a=e.iterator();a.hasNext();){var c=a.next();r=r===null?c.copy():r.union(c)}return r},unionSafe:function(e,r){return e===null&&r===null?null:e===null?r.copy():r===null?e.copy():this.unionOptimized(e,r)},unionActual:function(e,r){return ki.restrictToPolygons(e.union(r))},unionTree:function(e){var r=this.reduceToGeometries(e),a=this.binaryUnion(r);return a},unionUsingEnvelopeIntersection:function(e,r,a){var c=new k,g=this.extractByEnvelope(a,e,c),b=this.extractByEnvelope(a,r,c),I=this.unionActual(g,b);c.add(I);var F=bi.combine(c);return F},bufferUnion:function(){if(arguments.length===1){var e=arguments[0],r=e.get(0).getFactory(),a=r.buildGeometry(e),c=a.buffer(0);return c}if(arguments.length===2){var g=arguments[0],b=arguments[1],r=g.getFactory(),a=r.createGeometryCollection([g,b]),c=a.buffer(0);return c}},interfaces_:function(){return[]},getClass:function(){return ki}}),ki.restrictToPolygons=function(e){if(X(e,Nt))return e;var r=bo.getPolygons(e);return r.size()===1?r.get(0):e.getFactory().createMultiPolygon(dt.toPolygonArray(r))},ki.getGeometry=function(e,r){return r>=e.size()?null:e.get(r)},ki.union=function(e){var r=new ki(e);return r.union()},ki.STRTREE_NODE_CAPACITY=4,o(ra.prototype,{unionNoOpt:function(e){var r=this.geomFact.createPoint();return Fn.overlayOp(e,r,$e.UNION)},unionWithNull:function(e,r){return e===null&&r===null?null:r===null?e:e===null?r:e.union(r)},extract:function(){if(X(arguments[0],M))for(var e=arguments[0],r=e.iterator();r.hasNext();){var a=r.next();this.extract(a)}else if(arguments[0]instanceof ae){var c=arguments[0];this.geomFact===null&&(this.geomFact=c.getFactory()),na.extract(c,ae.SORTINDEX_POLYGON,this.polygons),na.extract(c,ae.SORTINDEX_LINESTRING,this.lines),na.extract(c,ae.SORTINDEX_POINT,this.points)}},union:function(){if(this.geomFact===null)return null;var r=null;if(this.points.size()>0){var a=this.geomFact.buildGeometry(this.points);r=this.unionNoOpt(a)}var c=null;if(this.lines.size()>0){var g=this.geomFact.buildGeometry(this.lines);c=this.unionNoOpt(g)}var b=null;this.polygons.size()>0&&(b=ki.union(this.polygons));var I=this.unionWithNull(c,b),F=null;return F=r===null?I:I===null?r:sc.union(r,I),F===null?this.geomFact.createGeometryCollection():F},interfaces_:function(){return[]},getClass:function(){return ra}}),ra.union=function(){if(arguments.length===1){if(X(arguments[0],M)){var e=arguments[0],r=new ra(e);return r.union()}if(arguments[0]instanceof ae){var a=arguments[0],r=new ra(a);return r.union()}}else if(arguments.length===2){var c=arguments[0],g=arguments[1],r=new ra(c,g);return r.union()}};var AA=Object.freeze({UnaryUnionOp:ra});o(oc.prototype,{visitInteriorRing:function(e,r){var a=e.getCoordinates(),c=a[0],g=oc.findDifferentPoint(a,c),b=r.findEdgeInSameDirection(c,g),I=r.findEdgeEnd(b),F=null;I.getLabel().getLocation(0,Oe.RIGHT)===A.INTERIOR?F=I:I.getSym().getLabel().getLocation(0,Oe.RIGHT)===A.INTERIOR&&(F=I.getSym()),N.isTrue(F!==null,"unable to find dirEdge with Interior on RHS"),this.visitLinkedDirectedEdges(F)},visitShellInteriors:function(e,r){if(e instanceof _t){var a=e;this.visitInteriorRing(a.getExteriorRing(),r)}if(e instanceof nn)for(var c=e,g=0;g<c.getNumGeometries();g++){var a=c.getGeometryN(g);this.visitInteriorRing(a.getExteriorRing(),r)}},getCoordinate:function(){return this.disconnectedRingcoord},setInteriorEdgesInResult:function(e){for(var r=e.getEdgeEnds().iterator();r.hasNext();){var a=r.next();a.getLabel().getLocation(0,Oe.RIGHT)===A.INTERIOR&&a.setInResult(!0)}},visitLinkedDirectedEdges:function(e){var r=e,a=e;do N.isTrue(a!==null,"found null Directed Edge"),a.setVisited(!0),a=a.getNext();while(a!==r)},buildEdgeRings:function(e){for(var r=new k,a=e.iterator();a.hasNext();){var c=a.next();if(c.isInResult()&&c.getEdgeRing()===null){var g=new Pa(c,this.geometryFactory);g.linkDirectedEdgesForMinimalEdgeRings();var b=g.buildMinimalRings();r.addAll(b)}}return r},hasUnvisitedShellEdge:function(e){for(var r=0;r<e.size();r++){var a=e.get(r);if(!a.isHole()){var c=a.getEdges(),g=c.get(0);if(g.getLabel().getLocation(0,Oe.RIGHT)===A.INTERIOR){for(var b=0;b<c.size();b++)if(g=c.get(b),!g.isVisited())return this.disconnectedRingcoord=g.getCoordinate(),!0}}}return!1},isInteriorsConnected:function(){var e=new k;this.geomGraph.computeSplitEdges(e);var r=new fi(new ds);r.addEdges(e),this.setInteriorEdgesInResult(r),r.linkResultDirectedEdges();var a=this.buildEdgeRings(r.getEdgeEnds());return this.visitShellInteriors(this.geomGraph.getGeometry(),r),!this.hasUnvisitedShellEdge(a)},interfaces_:function(){return[]},getClass:function(){return oc}}),oc.findDifferentPoint=function(e,r){for(var a=0;a<e.length;a++)if(!e[a].equals(r))return e[a];return null},o(Cs.prototype,{hasChildren:function(){for(var e=0;2>e;e++)if(this.subnode[e]!==null)return!0;return!1},isPrunable:function(){return!(this.hasChildren()||this.hasItems())},addAllItems:function(e){e.addAll(this.items);for(var r=0;2>r;r++)this.subnode[r]!==null&&this.subnode[r].addAllItems(e);return e},size:function(){for(var e=0,r=0;2>r;r++)this.subnode[r]!==null&&(e+=this.subnode[r].size());return e+this.items.size()},addAllItemsFromOverlapping:function(e,r){return e===null||this.isSearchMatch(e)?(r.addAll(this.items),this.subnode[0]!==null&&this.subnode[0].addAllItemsFromOverlapping(e,r),void(this.subnode[1]!==null&&this.subnode[1].addAllItemsFromOverlapping(e,r))):null},hasItems:function(){return!this.items.isEmpty()},remove:function(e,r){if(!this.isSearchMatch(e))return!1;for(var a=!1,c=0;2>c;c++)if(this.subnode[c]!==null&&(a=this.subnode[c].remove(e,r))){this.subnode[c].isPrunable()&&(this.subnode[c]=null);break}return a||(a=this.items.remove(r))},getItems:function(){return this.items},depth:function(){for(var e=0,r=0;2>r;r++)if(this.subnode[r]!==null){var a=this.subnode[r].depth();a>e&&(e=a)}return e+1},nodeSize:function(){for(var e=0,r=0;2>r;r++)this.subnode[r]!==null&&(e+=this.subnode[r].nodeSize());return e+1},add:function(e){this.items.add(e)},interfaces_:function(){return[]},getClass:function(){return Cs}}),Cs.getSubnodeIndex=function(e,r){var a=-1;return e.min>=r&&(a=1),e.max<=r&&(a=0),a},o(Gs.prototype,{expandToInclude:function(e){e.max>this.max&&(this.max=e.max),e.min<this.min&&(this.min=e.min)},getWidth:function(){return this.max-this.min},overlaps:function(){if(arguments.length===1){var e=arguments[0];return this.overlaps(e.min,e.max)}if(arguments.length===2){var r=arguments[0],a=arguments[1];return!(this.min>a||this.max<r)}},getMin:function(){return this.min},toString:function(){return"["+this.min+", "+this.max+"]"},contains:function(){if(arguments.length===1){if(arguments[0]instanceof Gs){var e=arguments[0];return this.contains(e.min,e.max)}if(typeof arguments[0]=="number"){var r=arguments[0];return r>=this.min&&r<=this.max}}else if(arguments.length===2){var a=arguments[0],c=arguments[1];return a>=this.min&&c<=this.max}},init:function(e,r){this.min=e,this.max=r,e>r&&(this.min=r,this.max=e)},getMax:function(){return this.max},interfaces_:function(){return[]},getClass:function(){return Gs}}),o(ac.prototype,{getInterval:function(){return this.interval},getLevel:function(){return this.level},computeKey:function(e){for(this.level=ac.computeLevel(e),this.interval=new Gs,this.computeInterval(this.level,e);!this.interval.contains(e);)this.level+=1,this.computeInterval(this.level,e)},computeInterval:function(e,r){var a=Zi.powerOf2(e);this.pt=Math.floor(r.getMin()/a)*a,this.interval.init(this.pt,this.pt+a)},getPoint:function(){return this.pt},interfaces_:function(){return[]},getClass:function(){return ac}}),ac.computeLevel=function(e){var r=e.getWidth(),a=Zi.exponent(r)+1;return a},_(_o,Cs),o(_o.prototype,{getInterval:function(){return this.interval},find:function(e){var r=Cs.getSubnodeIndex(e,this.centre);if(r===-1)return this;if(this.subnode[r]!==null){var a=this.subnode[r];return a.find(e)}return this},insert:function(e){N.isTrue(this.interval===null||this.interval.contains(e.interval));var r=Cs.getSubnodeIndex(e.interval,this.centre);if(e.level===this.level-1)this.subnode[r]=e;else{var a=this.createSubnode(r);a.insert(e),this.subnode[r]=a}},isSearchMatch:function(e){return e.overlaps(this.interval)},getSubnode:function(e){return this.subnode[e]===null&&(this.subnode[e]=this.createSubnode(e)),this.subnode[e]},getNode:function(e){var r=Cs.getSubnodeIndex(e,this.centre);if(r!==-1){var a=this.getSubnode(r);return a.getNode(e)}return this},createSubnode:function(e){var r=0,a=0;switch(e){case 0:r=this.interval.getMin(),a=this.centre;break;case 1:r=this.centre,a=this.interval.getMax()}var c=new Gs(r,a),g=new _o(c,this.level-1);return g},interfaces_:function(){return[]},getClass:function(){return _o}}),_o.createNode=function(e){var r=new ac(e),a=new _o(r.getInterval(),r.getLevel());return a},_o.createExpanded=function(e,r){var a=new Gs(r);e!==null&&a.expandToInclude(e.interval);var c=_o.createNode(a);return e!==null&&c.insert(e),c},_(Qu,Cs),o(Qu.prototype,{insert:function(e,r){var a=Cs.getSubnodeIndex(e,Qu.origin);if(a===-1)return this.add(r),null;var c=this.subnode[a];if(c===null||!c.getInterval().contains(e)){var g=_o.createExpanded(c,e);this.subnode[a]=g}this.insertContained(this.subnode[a],e,r)},isSearchMatch:function(e){return!0},insertContained:function(e,r,a){N.isTrue(e.getInterval().contains(r));var c=ps.isZeroWidth(r.getMin(),r.getMax()),g=null;g=c?e.find(r):e.getNode(r),g.add(a)},interfaces_:function(){return[]},getClass:function(){return Qu}}),Qu.origin=0,o($u.prototype,{size:function(){return this.root!==null?this.root.size():0},insert:function(e,r){this.collectStats(e);var a=$u.ensureExtent(e,this.minExtent);this.root.insert(a,r)},query:function(){if(arguments.length===1){if(typeof arguments[0]=="number"){var e=arguments[0];return this.query(new Gs(e,e))}if(arguments[0]instanceof Gs){var r=arguments[0],a=new k;return this.query(r,a),a}}else if(arguments.length===2){var c=arguments[0],g=arguments[1];this.root.addAllItemsFromOverlapping(c,g)}},iterator:function(){var e=new k;return this.root.addAllItems(e),e.iterator()},remove:function(e,r){var a=$u.ensureExtent(e,this.minExtent);return this.root.remove(a,r)},collectStats:function(e){var r=e.getWidth();r<this.minExtent&&r>0&&(this.minExtent=r)},depth:function(){return this.root!==null?this.root.depth():0},nodeSize:function(){return this.root!==null?this.root.nodeSize():0},interfaces_:function(){return[]},getClass:function(){return $u}}),$u.ensureExtent=function(e,r){var a=e.getMin(),c=e.getMax();return a!==c?e:(a===c&&(a-=r/2,c=a+r/2),new Gs(a,c))},o(Ng.prototype,{isInside:function(e){},interfaces_:function(){return[]},getClass:function(){return Ng}}),o(Gd.prototype,{testLineSegment:function(e,r){var a=null,c=null,g=null,b=null,I=null,F=r.p0,Z=r.p1;c=F.x-e.x,g=F.y-e.y,b=Z.x-e.x,I=Z.y-e.y,(g>0&&0>=I||I>0&&0>=g)&&(a=Et.signOfDet2x2(c,g,b,I)/(I-g),a>0&&this.crossings++)},buildIndex:function(){this.tree=new $u;for(var e=Le.removeRepeatedPoints(this.ring.getCoordinates()),r=di.getChains(e),a=0;a<r.size();a++){var c=r.get(a),g=c.getEnvelope();this.interval.min=g.getMinY(),this.interval.max=g.getMaxY(),this.tree.insert(this.interval,c)}},testMonotoneChain:function(e,r,a){a.select(e,r)},isInside:function(e){this.crossings=0;var r=new V(h.NEGATIVE_INFINITY,h.POSITIVE_INFINITY,e.y,e.y);this.interval.min=e.y,this.interval.max=e.y;for(var a=this.tree.query(this.interval),c=new uc(this,e),g=a.iterator();g.hasNext();){var b=g.next();this.testMonotoneChain(r,c,b)}return this.crossings%2===1},interfaces_:function(){return[Ng]},getClass:function(){return Gd}}),_(uc,bs),o(uc.prototype,{select:function(){if(arguments.length!==1)return bs.prototype.select.apply(this,arguments);var e=arguments[0];this.mcp.testLineSegment(this.p,e)},interfaces_:function(){return[]},getClass:function(){return uc}}),Gd.MCSelecter=uc,o(Ig.prototype,{insertEdgeEnds:function(e){for(var r=e.iterator();r.hasNext();){var a=r.next();this.nodes.add(a)}},getNodeIterator:function(){return this.nodes.iterator()},copyNodesAndLabels:function(e,r){for(var a=e.getNodeIterator();a.hasNext();){var c=a.next(),g=this.nodes.addNode(c.getCoordinate());g.setLabel(r,c.getLabel().getLocation(r))}},build:function(e){this.computeIntersectionNodes(e,0),this.copyNodesAndLabels(e,0);var r=new Va,a=r.computeEdgeEnds(e.getEdgeIterator());this.insertEdgeEnds(a)},computeIntersectionNodes:function(e,r){for(var a=e.getEdgeIterator();a.hasNext();)for(var c=a.next(),g=c.getLabel().getLocation(r),b=c.getEdgeIntersectionList().iterator();b.hasNext();){var I=b.next(),F=this.nodes.addNode(I.coord);g===A.BOUNDARY?F.setLabelBoundary(r):F.getLabel().isNull(r)&&F.setLabel(r,A.INTERIOR)}},interfaces_:function(){return[]},getClass:function(){return Ig}}),o(Tg.prototype,{isNodeEdgeAreaLabelsConsistent:function(){for(var e=this.nodeGraph.getNodeIterator();e.hasNext();){var r=e.next();if(!r.getEdges().isAreaLabelsConsistent(this.geomGraph))return this.invalidPoint=r.getCoordinate().copy(),!1}return!0},getInvalidPoint:function(){return this.invalidPoint},hasDuplicateRings:function(){for(var e=this.nodeGraph.getNodeIterator();e.hasNext();)for(var r=e.next(),a=r.getEdges().iterator();a.hasNext();){var c=a.next();if(c.getEdgeEnds().size()>1)return this.invalidPoint=c.getEdge().getCoordinate(0),!0}return!1},isNodeConsistentArea:function(){var e=this.geomGraph.computeSelfNodes(this.li,!0,!0);return e.hasProperIntersection()?(this.invalidPoint=e.getProperIntersectionPoint(),!1):(this.nodeGraph.build(this.geomGraph),this.isNodeEdgeAreaLabelsConsistent())},interfaces_:function(){return[]},getClass:function(){return Tg}}),o(Ag.prototype,{buildIndex:function(){this.index=new pn;for(var e=0;e<this.rings.size();e++){var r=this.rings.get(e),a=r.getEnvelopeInternal();this.index.insert(a,r)}},getNestedPoint:function(){return this.nestedPt},isNonNested:function(){this.buildIndex();for(var e=0;e<this.rings.size();e++)for(var r=this.rings.get(e),a=r.getCoordinates(),c=this.index.query(r.getEnvelopeInternal()),g=0;g<c.size();g++){var b=c.get(g),I=b.getCoordinates();if(r!==b&&r.getEnvelopeInternal().intersects(b.getEnvelopeInternal())){var F=Ri.findPtNotNode(a,b,this.graph);if(F!==null){var Z=xe.isPointInRing(F,I);if(Z)return this.nestedPt=F,!1}}}return!0},add:function(e){this.rings.add(e),this.totalEnv.expandToInclude(e.getEnvelopeInternal())},interfaces_:function(){return[]},getClass:function(){return Ag}}),o(Kt.prototype,{getErrorType:function(){return this.errorType},getMessage:function(){return Kt.errMsg[this.errorType]},getCoordinate:function(){return this.pt},toString:function(){var e="";return this.pt!==null&&(e=" at or near point "+this.pt),this.getMessage()+e},interfaces_:function(){return[]},getClass:function(){return Kt}}),Kt.ERROR=0,Kt.REPEATED_POINT=1,Kt.HOLE_OUTSIDE_SHELL=2,Kt.NESTED_HOLES=3,Kt.DISCONNECTED_INTERIOR=4,Kt.SELF_INTERSECTION=5,Kt.RING_SELF_INTERSECTION=6,Kt.NESTED_SHELLS=7,Kt.DUPLICATE_RINGS=8,Kt.TOO_FEW_POINTS=9,Kt.INVALID_COORDINATE=10,Kt.RING_NOT_CLOSED=11,Kt.errMsg=["Topology Validation Error","Repeated Point","Hole lies outside shell","Holes are nested","Interior is disconnected","Self-intersection","Ring Self-intersection","Nested shells","Duplicate Rings","Too few distinct points in geometry component","Invalid Coordinate","Ring is not closed"],o(Ri.prototype,{checkInvalidCoordinates:function(){if(arguments[0]instanceof Array){for(var e=arguments[0],r=0;r<e.length;r++)if(!Ri.isValid(e[r]))return this.validErr=new Kt(Kt.INVALID_COORDINATE,e[r]),null}else if(arguments[0]instanceof _t){var a=arguments[0];if(this.checkInvalidCoordinates(a.getExteriorRing().getCoordinates()),this.validErr!==null)return null;for(var r=0;r<a.getNumInteriorRing();r++)if(this.checkInvalidCoordinates(a.getInteriorRingN(r).getCoordinates()),this.validErr!==null)return null}},checkHolesNotNested:function(e,r){for(var a=new Ag(r),c=0;c<e.getNumInteriorRing();c++){var g=e.getInteriorRingN(c);a.add(g)}var b=a.isNonNested();b||(this.validErr=new Kt(Kt.NESTED_HOLES,a.getNestedPoint()))},checkConsistentArea:function(e){var r=new Tg(e),a=r.isNodeConsistentArea();return a?void(r.hasDuplicateRings()&&(this.validErr=new Kt(Kt.DUPLICATE_RINGS,r.getInvalidPoint()))):(this.validErr=new Kt(Kt.SELF_INTERSECTION,r.getInvalidPoint()),null)},isValid:function(){return this.checkValid(this.parentGeometry),this.validErr===null},checkShellInsideHole:function(e,r,a){var c=e.getCoordinates(),g=r.getCoordinates(),b=Ri.findPtNotNode(c,r,a);if(b!==null){var I=xe.isPointInRing(b,g);if(!I)return b}var F=Ri.findPtNotNode(g,e,a);if(F!==null){var Z=xe.isPointInRing(F,c);return Z?F:null}return N.shouldNeverReachHere("points in shell and hole appear to be equal"),null},checkNoSelfIntersectingRings:function(e){for(var r=e.getEdgeIterator();r.hasNext();){var a=r.next();if(this.checkNoSelfIntersectingRing(a.getEdgeIntersectionList()),this.validErr!==null)return null}},checkConnectedInteriors:function(e){var r=new oc(e);r.isInteriorsConnected()||(this.validErr=new Kt(Kt.DISCONNECTED_INTERIOR,r.getCoordinate()))},checkNoSelfIntersectingRing:function(e){for(var r=new ut,a=!0,c=e.iterator();c.hasNext();){var g=c.next();if(a)a=!1;else{if(r.contains(g.coord))return this.validErr=new Kt(Kt.RING_SELF_INTERSECTION,g.coord),null;r.add(g.coord)}}},checkHolesInShell:function(e,r){for(var a=e.getExteriorRing(),c=new Gd(a),g=0;g<e.getNumInteriorRing();g++){var b=e.getInteriorRingN(g),I=Ri.findPtNotNode(b.getCoordinates(),a,r);if(I===null)return null;var F=!c.isInside(I);if(F)return this.validErr=new Kt(Kt.HOLE_OUTSIDE_SHELL,I),null}},checkTooFewPoints:function(e){return e.hasTooFewPoints()?(this.validErr=new Kt(Kt.TOO_FEW_POINTS,e.getInvalidPoint()),null):void 0},getValidationError:function(){return this.checkValid(this.parentGeometry),this.validErr},checkValid:function(){if(arguments[0]instanceof Ge){var e=arguments[0];this.checkInvalidCoordinates(e.getCoordinates())}else if(arguments[0]instanceof $t){var r=arguments[0];this.checkInvalidCoordinates(r.getCoordinates())}else if(arguments[0]instanceof It){var a=arguments[0];if(this.checkInvalidCoordinates(a.getCoordinates()),this.validErr!==null||(this.checkClosedRing(a),this.validErr!==null))return null;var c=new Lr(0,a);if(this.checkTooFewPoints(c),this.validErr!==null)return null;var g=new Fe;c.computeSelfNodes(g,!0,!0),this.checkNoSelfIntersectingRings(c)}else if(arguments[0]instanceof Se){var b=arguments[0];if(this.checkInvalidCoordinates(b.getCoordinates()),this.validErr!==null)return null;var c=new Lr(0,b);this.checkTooFewPoints(c)}else if(arguments[0]instanceof _t){var I=arguments[0];if(this.checkInvalidCoordinates(I),this.validErr!==null||(this.checkClosedRings(I),this.validErr!==null))return null;var c=new Lr(0,I);if(this.checkTooFewPoints(c),this.validErr!==null||(this.checkConsistentArea(c),this.validErr!==null)||!this.isSelfTouchingRingFormingHoleValid&&(this.checkNoSelfIntersectingRings(c),this.validErr!==null)||(this.checkHolesInShell(I,c),this.validErr!==null)||(this.checkHolesNotNested(I,c),this.validErr!==null))return null;this.checkConnectedInteriors(c)}else if(arguments[0]instanceof nn){for(var F=arguments[0],Z=0;Z<F.getNumGeometries();Z++){var ne=F.getGeometryN(Z);if(this.checkInvalidCoordinates(ne),this.validErr!==null||(this.checkClosedRings(ne),this.validErr!==null))return null}var c=new Lr(0,F);if(this.checkTooFewPoints(c),this.validErr!==null||(this.checkConsistentArea(c),this.validErr!==null)||!this.isSelfTouchingRingFormingHoleValid&&(this.checkNoSelfIntersectingRings(c),this.validErr!==null))return null;for(var Z=0;Z<F.getNumGeometries();Z++){var ne=F.getGeometryN(Z);if(this.checkHolesInShell(ne,c),this.validErr!==null)return null}for(var Z=0;Z<F.getNumGeometries();Z++){var ne=F.getGeometryN(Z);if(this.checkHolesNotNested(ne,c),this.validErr!==null)return null}if(this.checkShellsNotNested(F,c),this.validErr!==null)return null;this.checkConnectedInteriors(c)}else if(arguments[0]instanceof Re)for(var de=arguments[0],Z=0;Z<de.getNumGeometries();Z++){var me=de.getGeometryN(Z);if(this.checkValid(me),this.validErr!==null)return null}else if(arguments[0]instanceof ae){var _e=arguments[0];if(this.validErr=null,_e.isEmpty())return null;if(_e instanceof Ge)this.checkValid(_e);else if(_e instanceof $t)this.checkValid(_e);else if(_e instanceof It)this.checkValid(_e);else if(_e instanceof Se)this.checkValid(_e);else if(_e instanceof _t)this.checkValid(_e);else if(_e instanceof nn)this.checkValid(_e);else{if(!(_e instanceof Re))throw new UnsupportedOperationException(_e.getClass().getName());this.checkValid(_e)}}},setSelfTouchingRingFormingHoleValid:function(e){this.isSelfTouchingRingFormingHoleValid=e},checkShellNotNested:function(e,r,a){var c=e.getCoordinates(),g=r.getExteriorRing(),b=g.getCoordinates(),I=Ri.findPtNotNode(c,g,a);if(I===null)return null;var F=xe.isPointInRing(I,b);if(!F)return null;if(r.getNumInteriorRing()<=0)return this.validErr=new Kt(Kt.NESTED_SHELLS,I),null;for(var Z=null,ne=0;ne<r.getNumInteriorRing();ne++){var de=r.getInteriorRingN(ne);if(Z=this.checkShellInsideHole(e,de,a),Z===null)return null}this.validErr=new Kt(Kt.NESTED_SHELLS,Z)},checkClosedRings:function(e){if(this.checkClosedRing(e.getExteriorRing()),this.validErr!==null)return null;for(var r=0;r<e.getNumInteriorRing();r++)if(this.checkClosedRing(e.getInteriorRingN(r)),this.validErr!==null)return null},checkClosedRing:function(e){if(!e.isClosed()){var r=null;e.getNumPoints()>=1&&(r=e.getCoordinateN(0)),this.validErr=new Kt(Kt.RING_NOT_CLOSED,r)}},checkShellsNotNested:function(e,r){for(var a=0;a<e.getNumGeometries();a++)for(var c=e.getGeometryN(a),g=c.getExteriorRing(),b=0;b<e.getNumGeometries();b++)if(a!==b){var I=e.getGeometryN(b);if(this.checkShellNotNested(g,I,r),this.validErr!==null)return null}},interfaces_:function(){return[]},getClass:function(){return Ri}}),Ri.findPtNotNode=function(e,r,a){for(var c=a.findEdge(r),g=c.getEdgeIntersectionList(),b=0;b<e.length;b++){var I=e[b];if(!g.isIntersection(I))return I}return null},Ri.isValid=function(){if(arguments[0]instanceof ae){var e=arguments[0],r=new Ri(e);return r.isValid()}if(arguments[0]instanceof w){var a=arguments[0];return h.isNaN(a.x)||h.isInfinite(a.x)||h.isNaN(a.y)?!1:!h.isInfinite(a.y)}};var PA=Object.freeze({IsValidOp:Ri}),DA=Object.freeze({BoundaryOp:At,IsSimpleOp:qa,buffer:SA,distance:OA,linemerge:LA,overlay:NA,polygonize:IA,relate:TA,union:AA,valid:PA});_(Wd,dn.CoordinateOperation),o(Wd.prototype,{editCoordinates:function(e,r){if(e.length===0)return null;for(var a=new Array(e.length).fill(null),c=0;c<e.length;c++){var g=new w(e[c]);this.targetPM.makePrecise(g),a[c]=g}var b=new H(a,!1),I=b.toCoordinateArray(),F=0;r instanceof Se&&(F=2),r instanceof It&&(F=4);var Z=a;return this.removeCollapsed&&(Z=null),I.length<F?Z:I},interfaces_:function(){return[]},getClass:function(){return Wd}}),o(Ga.prototype,{fixPolygonalTopology:function(e){var r=e;this.changePrecisionModel||(r=this.changePM(e,this.targetPM));var a=r.buffer(0),c=a;return this.changePrecisionModel||(c=e.getFactory().createGeometry(a)),c},reducePointwise:function(e){var r=null;if(this.changePrecisionModel){var a=this.createFactory(e.getFactory(),this.targetPM);r=new dn(a)}else r=new dn;var c=this.removeCollapsed;e.getDimension()>=2&&(c=!0);var g=r.edit(e,new Wd(this.targetPM,c));return g},changePM:function(e,r){var a=this.createEditor(e.getFactory(),r);return a.edit(e,new dn.NoOpGeometryOperation)},setRemoveCollapsedComponents:function(e){this.removeCollapsed=e},createFactory:function(e,r){var a=new dt(r,e.getSRID(),e.getCoordinateSequenceFactory());return a},setChangePrecisionModel:function(e){this.changePrecisionModel=e},reduce:function(e){var r=this.reducePointwise(e);return this.isPointwise?r:X(r,Nt)?r.isValid()?r:this.fixPolygonalTopology(r):r},setPointwise:function(e){this.isPointwise=e},createEditor:function(e,r){if(e.getPrecisionModel()===r)return new dn;var a=this.createFactory(e,r),c=new dn(a);return c},interfaces_:function(){return[]},getClass:function(){return Ga}}),Ga.reduce=function(e,r){var a=new Ga(r);return a.reduce(e)},Ga.reducePointwise=function(e,r){var a=new Ga(r);return a.setPointwise(!0),a.reduce(e)};var MA=Object.freeze({GeometryPrecisionReducer:Ga});o(lc.prototype,{simplifySection:function(e,r){if(e+1===r)return null;this.seg.p0=this.pts[e],this.seg.p1=this.pts[r];for(var a=-1,c=e,g=e+1;r>g;g++){var b=this.seg.distance(this.pts[g]);b>a&&(a=b,c=g)}if(a<=this.distanceTolerance)for(var g=e+1;r>g;g++)this.usePt[g]=!1;else this.simplifySection(e,c),this.simplifySection(c,r)},setDistanceTolerance:function(e){this.distanceTolerance=e},simplify:function(){this.usePt=new Array(this.pts.length).fill(null);for(var e=0;e<this.pts.length;e++)this.usePt[e]=!0;this.simplifySection(0,this.pts.length-1);for(var r=new H,e=0;e<this.pts.length;e++)this.usePt[e]&&r.add(new w(this.pts[e]));return r.toCoordinateArray()},interfaces_:function(){return[]},getClass:function(){return lc}}),lc.simplify=function(e,r){var a=new lc(e);return a.setDistanceTolerance(r),a.simplify()},o(el.prototype,{setEnsureValid:function(e){this.isEnsureValidTopology=e},getResultGeometry:function(){return this.inputGeom.isEmpty()?this.inputGeom.copy():new cc(this.isEnsureValidTopology,this.distanceTolerance).transform(this.inputGeom)},setDistanceTolerance:function(e){if(0>e)throw new d;this.distanceTolerance=e},interfaces_:function(){return[]},getClass:function(){return el}}),el.simplify=function(e,r){var a=new el(e);return a.setDistanceTolerance(r),a.getResultGeometry()},_(cc,Bn),o(cc.prototype,{transformPolygon:function(e,r){if(e.isEmpty())return null;var a=Bn.prototype.transformPolygon.call(this,e,r);return r instanceof nn?a:this.createValidArea(a)},createValidArea:function(e){return this.isEnsureValidTopology?e.buffer(0):e},transformCoordinates:function(e,r){var a=e.toCoordinateArray(),c=null;return c=a.length===0?new Array(0).fill(null):lc.simplify(a,this.distanceTolerance),this.factory.getCoordinateSequenceFactory().create(c)},transformMultiPolygon:function(e,r){var a=Bn.prototype.transformMultiPolygon.call(this,e,r);return this.createValidArea(a)},transformLinearRing:function(e,r){var a=r instanceof _t,c=Bn.prototype.transformLinearRing.call(this,e,r);return!a||c instanceof It?c:null},interfaces_:function(){return[]},getClass:function(){return cc}}),el.DPTransformer=cc,_(dc,nt),o(dc.prototype,{getIndex:function(){return this.index},getParent:function(){return this.parent},interfaces_:function(){return[]},getClass:function(){return dc}}),o(Eo.prototype,{addToResult:function(e){this.resultSegs.add(e)},asLineString:function(){return this.parentLine.getFactory().createLineString(Eo.extractCoordinates(this.resultSegs))},getResultSize:function(){var e=this.resultSegs.size();return e===0?0:e+1},getParent:function(){return this.parentLine},getSegment:function(e){return this.segs[e]},getParentCoordinates:function(){return this.parentLine.getCoordinates()},getMinimumSize:function(){return this.minimumSize},asLinearRing:function(){return this.parentLine.getFactory().createLinearRing(Eo.extractCoordinates(this.resultSegs))},getSegments:function(){return this.segs},init:function(){var e=this.parentLine.getCoordinates();this.segs=new Array(e.length-1).fill(null);for(var r=0;r<e.length-1;r++){var a=new dc(e[r],e[r+1],this.parentLine,r);this.segs[r]=a}},getResultCoordinates:function(){return Eo.extractCoordinates(this.resultSegs)},interfaces_:function(){return[]},getClass:function(){return Eo}}),Eo.extractCoordinates=function(e){for(var r=new Array(e.size()+1).fill(null),a=null,c=0;c<e.size();c++)a=e.get(c),r[c]=a.p0;return r[r.length-1]=a.p1,r},o(tl.prototype,{remove:function(e){this.index.remove(new V(e.p0,e.p1),e)},add:function(){if(arguments[0]instanceof Eo)for(var e=arguments[0],r=e.getSegments(),a=0;a<r.length;a++){var c=r[a];this.add(c)}else if(arguments[0]instanceof nt){var g=arguments[0];this.index.insert(new V(g.p0,g.p1),g)}},query:function(e){var r=new V(e.p0,e.p1),a=new Pg(e);this.index.query(r,a);var c=a.getItems();return c},interfaces_:function(){return[]},getClass:function(){return tl}}),o(Pg.prototype,{visitItem:function(e){var r=e;V.intersects(r.p0,r.p1,this.querySeg.p0,this.querySeg.p1)&&this.items.add(e)},getItems:function(){return this.items},interfaces_:function(){return[Ds]},getClass:function(){return Pg}}),o(hc.prototype,{flatten:function(e,r){var a=this.linePts[e],c=this.linePts[r],g=new nt(a,c);return this.remove(this.line,e,r),this.outputIndex.add(g),g},hasBadIntersection:function(e,r,a){return this.hasBadOutputIntersection(a)?!0:!!this.hasBadInputIntersection(e,r,a)},setDistanceTolerance:function(e){this.distanceTolerance=e},simplifySection:function(e,r,a){a+=1;var c=new Array(2).fill(null);if(e+1===r){var g=this.line.getSegment(e);return this.line.addToResult(g),null}var b=!0;if(this.line.getResultSize()<this.line.getMinimumSize()){var I=a+1;I<this.line.getMinimumSize()&&(b=!1)}var F=new Array(1).fill(null),Z=this.findFurthestPoint(this.linePts,e,r,F);F[0]>this.distanceTolerance&&(b=!1);var ne=new nt;if(ne.p0=this.linePts[e],ne.p1=this.linePts[r],c[0]=e,c[1]=r,this.hasBadIntersection(this.line,c,ne)&&(b=!1),b){var g=this.flatten(e,r);return this.line.addToResult(g),null}this.simplifySection(e,Z,a),this.simplifySection(Z,r,a)},hasBadOutputIntersection:function(e){for(var r=this.outputIndex.query(e),a=r.iterator();a.hasNext();){var c=a.next();if(this.hasInteriorIntersection(c,e))return!0}return!1},findFurthestPoint:function(e,r,a,c){var g=new nt;g.p0=e[r],g.p1=e[a];for(var b=-1,I=r,F=r+1;a>F;F++){var Z=e[F],ne=g.distance(Z);ne>b&&(b=ne,I=F)}return c[0]=b,I},simplify:function(e){this.line=e,this.linePts=e.getParentCoordinates(),this.simplifySection(0,this.linePts.length-1,0)},remove:function(e,r,a){for(var c=r;a>c;c++){var g=e.getSegment(c);this.inputIndex.remove(g)}},hasInteriorIntersection:function(e,r){return this.li.computeIntersection(e.p0,e.p1,r.p0,r.p1),this.li.isInteriorIntersection()},hasBadInputIntersection:function(e,r,a){for(var c=this.inputIndex.query(a),g=c.iterator();g.hasNext();){var b=g.next();if(this.hasInteriorIntersection(b,a)){if(hc.isInLineSection(e,r,b))continue;return!0}}return!1},interfaces_:function(){return[]},getClass:function(){return hc}}),hc.isInLineSection=function(e,r,a){if(a.getParent()!==e.getParent())return!1;var c=a.getIndex();return c>=r[0]&&c<r[1]},o(Dg.prototype,{setDistanceTolerance:function(e){this.distanceTolerance=e},simplify:function(e){for(var r=e.iterator();r.hasNext();)this.inputIndex.add(r.next());for(var r=e.iterator();r.hasNext();){var a=new hc(this.inputIndex,this.outputIndex);a.setDistanceTolerance(this.distanceTolerance),a.simplify(r.next())}},interfaces_:function(){return[]},getClass:function(){return Dg}}),o(Wa.prototype,{getResultGeometry:function(){if(this.inputGeom.isEmpty())return this.inputGeom.copy();this.linestringMap=new Mt,this.inputGeom.apply(new Zd(this)),this.lineSimplifier.simplify(this.linestringMap.values());var e=new fc(this.linestringMap).transform(this.inputGeom);return e},setDistanceTolerance:function(e){if(0>e)throw new d;this.lineSimplifier.setDistanceTolerance(e)},interfaces_:function(){return[]},getClass:function(){return Wa}}),Wa.simplify=function(e,r){var a=new Wa(e);return a.setDistanceTolerance(r),a.getResultGeometry()},_(fc,Bn),o(fc.prototype,{transformCoordinates:function(e,r){if(e.size()===0)return null;if(r instanceof Se){var a=this.linestringMap.get(r);return this.createCoordinateSequence(a.getResultCoordinates())}return Bn.prototype.transformCoordinates.call(this,e,r)},interfaces_:function(){return[]},getClass:function(){return fc}}),o(Zd.prototype,{filter:function(e){if(e instanceof Se){var r=e;if(r.isEmpty())return null;var a=r.isClosed()?4:2,c=new Eo(r,a);this.tps.linestringMap.put(r,c)}},interfaces_:function(){return[be]},getClass:function(){return Zd}}),Wa.LineStringTransformer=fc,Wa.LineStringMapBuilderFilter=Zd;var kA=Object.freeze({DouglasPeuckerSimplifier:el,TopologyPreservingSimplifier:Wa});o(nl.prototype,{splitAt:function(){if(arguments.length===1){var e=arguments[0],r=this.minimumLen/this.segLen;if(e.distance(this.seg.p0)<this.minimumLen)return this.splitPt=this.seg.pointAlong(r),null;if(e.distance(this.seg.p1)<this.minimumLen)return this.splitPt=nl.pointAlongReverse(this.seg,r),null;this.splitPt=e}else if(arguments.length===2){var a=arguments[0],c=arguments[1],g=this.getConstrainedLength(a),b=g/this.segLen;c.equals2D(this.seg.p0)?this.splitPt=this.seg.pointAlong(b):this.splitPt=nl.pointAlongReverse(this.seg,b)}},setMinimumLength:function(e){this.minimumLen=e},getConstrainedLength:function(e){return e<this.minimumLen?this.minimumLen:e},getSplitPoint:function(){return this.splitPt},interfaces_:function(){return[]},getClass:function(){return nl}}),nl.pointAlongReverse=function(e,r){var a=new w;return a.x=e.p1.x-r*(e.p1.x-e.p0.x),a.y=e.p1.y-r*(e.p1.y-e.p0.y),a},o(Mg.prototype,{findSplitPoint:function(e,r){},interfaces_:function(){return[]},getClass:function(){return Mg}}),o(gc.prototype,{findSplitPoint:function(e,r){var a=e.getLineSegment(),c=a.getLength(),g=c/2,b=new nl(a),I=gc.projectedSplitPoint(e,r),F=2*I.distance(r)*.8,Z=F;return Z>g&&(Z=g),b.setMinimumLength(Z),b.splitAt(I),b.getSplitPoint()},interfaces_:function(){return[Mg]},getClass:function(){return gc}}),gc.projectedSplitPoint=function(e,r){var a=e.getLineSegment(),c=a.project(r);return c},o(Cn.prototype,{interfaces_:function(){return[]},getClass:function(){return Cn}}),Cn.triArea=function(e,r,a){return(r.x-e.x)*(a.y-e.y)-(r.y-e.y)*(a.x-e.x)},Cn.isInCircleDDNormalized=function(e,r,a,c){var g=B.valueOf(e.x).selfSubtract(c.x),b=B.valueOf(e.y).selfSubtract(c.y),I=B.valueOf(r.x).selfSubtract(c.x),F=B.valueOf(r.y).selfSubtract(c.y),Z=B.valueOf(a.x).selfSubtract(c.x),ne=B.valueOf(a.y).selfSubtract(c.y),de=g.multiply(F).selfSubtract(I.multiply(b)),me=I.multiply(ne).selfSubtract(Z.multiply(F)),_e=Z.multiply(b).selfSubtract(g.multiply(ne)),Ze=g.multiply(g).selfAdd(b.multiply(b)),gt=I.multiply(I).selfAdd(F.multiply(F)),St=Z.multiply(Z).selfAdd(ne.multiply(ne)),yn=Ze.selfMultiply(me).selfAdd(gt.selfMultiply(_e)).selfAdd(St.selfMultiply(de)),Un=yn.doubleValue()>0;return Un},Cn.checkRobustInCircle=function(e,r,a,c){var g=Cn.isInCircleNonRobust(e,r,a,c),b=Cn.isInCircleDDSlow(e,r,a,c),I=Cn.isInCircleCC(e,r,a,c),F=Zt.circumcentre(e,r,a);$.out.println("p radius diff a = "+Math.abs(c.distance(F)-e.distance(F))/e.distance(F)),g===b&&g===I||($.out.println("inCircle robustness failure (double result = "+g+", DD result = "+b+", CC result = "+I+")"),$.out.println(ot.toLineString(new rn([e,r,a,c]))),$.out.println("Circumcentre = "+ot.toPoint(F)+" radius = "+e.distance(F)),$.out.println("p radius diff a = "+Math.abs(c.distance(F)/e.distance(F)-1)),$.out.println("p radius diff b = "+Math.abs(c.distance(F)/r.distance(F)-1)),$.out.println("p radius diff c = "+Math.abs(c.distance(F)/a.distance(F)-1)),$.out.println())},Cn.isInCircleDDFast=function(e,r,a,c){var g=B.sqr(e.x).selfAdd(B.sqr(e.y)).selfMultiply(Cn.triAreaDDFast(r,a,c)),b=B.sqr(r.x).selfAdd(B.sqr(r.y)).selfMultiply(Cn.triAreaDDFast(e,a,c)),I=B.sqr(a.x).selfAdd(B.sqr(a.y)).selfMultiply(Cn.triAreaDDFast(e,r,c)),F=B.sqr(c.x).selfAdd(B.sqr(c.y)).selfMultiply(Cn.triAreaDDFast(e,r,a)),Z=g.selfSubtract(b).selfAdd(I).selfSubtract(F),ne=Z.doubleValue()>0;return ne},Cn.isInCircleCC=function(e,r,a,c){var g=Zt.circumcentre(e,r,a),b=e.distance(g),I=c.distance(g)-b;return 0>=I},Cn.isInCircleNormalized=function(e,r,a,c){var g=e.x-c.x,b=e.y-c.y,I=r.x-c.x,F=r.y-c.y,Z=a.x-c.x,ne=a.y-c.y,de=g*F-I*b,me=I*ne-Z*F,_e=Z*b-g*ne,Ze=g*g+b*b,gt=I*I+F*F,St=Z*Z+ne*ne,yn=Ze*me+gt*_e+St*de;return yn>0},Cn.isInCircleDDSlow=function(e,r,a,c){var g=B.valueOf(c.x),b=B.valueOf(c.y),I=B.valueOf(e.x),F=B.valueOf(e.y),Z=B.valueOf(r.x),ne=B.valueOf(r.y),de=B.valueOf(a.x),me=B.valueOf(a.y),_e=I.multiply(I).add(F.multiply(F)).multiply(Cn.triAreaDDSlow(Z,ne,de,me,g,b)),Ze=Z.multiply(Z).add(ne.multiply(ne)).multiply(Cn.triAreaDDSlow(I,F,de,me,g,b)),gt=de.multiply(de).add(me.multiply(me)).multiply(Cn.triAreaDDSlow(I,F,Z,ne,g,b)),St=g.multiply(g).add(b.multiply(b)).multiply(Cn.triAreaDDSlow(I,F,Z,ne,de,me)),yn=_e.subtract(Ze).add(gt).subtract(St),Un=yn.doubleValue()>0;return Un},Cn.isInCircleNonRobust=function(e,r,a,c){var g=(e.x*e.x+e.y*e.y)*Cn.triArea(r,a,c)-(r.x*r.x+r.y*r.y)*Cn.triArea(e,a,c)+(a.x*a.x+a.y*a.y)*Cn.triArea(e,r,c)-(c.x*c.x+c.y*c.y)*Cn.triArea(e,r,a)>0;return g},Cn.isInCircleRobust=function(e,r,a,c){return Cn.isInCircleNormalized(e,r,a,c)},Cn.triAreaDDSlow=function(e,r,a,c,g,b){return a.subtract(e).multiply(b.subtract(r)).subtract(c.subtract(r).multiply(g.subtract(e)))},Cn.triAreaDDFast=function(e,r,a){var c=B.valueOf(r.x).selfSubtract(e.x).selfMultiply(B.valueOf(a.y).selfSubtract(e.y)),g=B.valueOf(r.y).selfSubtract(e.y).selfMultiply(B.valueOf(a.x).selfSubtract(e.x));return c.selfSubtract(g)},o(cn.prototype,{circleCenter:function(e,r){var a=new cn(this.getX(),this.getY()),c=this.bisector(a,e),g=this.bisector(e,r),b=new re(c,g),I=null;try{I=new cn(b.getX(),b.getY())}catch(F){if(!(F instanceof R))throw F;$.err.println("a: "+a+"  b: "+e+"  c: "+r),$.err.println(F)}finally{}return I},dot:function(e){return this.p.x*e.getX()+this.p.y*e.getY()},magn:function(){return Math.sqrt(this.p.x*this.p.x+this.p.y*this.p.y)},getZ:function(){return this.p.z},bisector:function(e,r){var a=r.getX()-e.getX(),c=r.getY()-e.getY(),g=new re(e.getX()+a/2,e.getY()+c/2,1),b=new re(e.getX()-c+a/2,e.getY()+a+c/2,1);return new re(g,b)},equals:function(){if(arguments.length===1){var e=arguments[0];return this.p.x===e.getX()&&this.p.y===e.getY()}if(arguments.length===2){var r=arguments[0],a=arguments[1];return this.p.distance(r.getCoordinate())<a}},getCoordinate:function(){return this.p},isInCircle:function(e,r,a){return Cn.isInCircleRobust(e.p,r.p,a.p,this.p)},interpolateZValue:function(e,r,a){var c=e.getX(),g=e.getY(),b=r.getX()-c,I=a.getX()-c,F=r.getY()-g,Z=a.getY()-g,ne=b*Z-I*F,de=this.getX()-c,me=this.getY()-g,_e=(Z*de-I*me)/ne,Ze=(-F*de+b*me)/ne,gt=e.getZ()+_e*(r.getZ()-e.getZ())+Ze*(a.getZ()-e.getZ());return gt},midPoint:function(e){var r=(this.p.x+e.getX())/2,a=(this.p.y+e.getY())/2,c=(this.p.z+e.getZ())/2;return new cn(r,a,c)},rightOf:function(e){return this.isCCW(e.dest(),e.orig())},isCCW:function(e,r){return(e.p.x-this.p.x)*(r.p.y-this.p.y)-(e.p.y-this.p.y)*(r.p.x-this.p.x)>0},getX:function(){return this.p.x},crossProduct:function(e){return this.p.x*e.getY()-this.p.y*e.getX()},setZ:function(e){this.p.z=e},times:function(e){return new cn(e*this.p.x,e*this.p.y)},cross:function(){return new cn(this.p.y,-this.p.x)},leftOf:function(e){return this.isCCW(e.orig(),e.dest())},toString:function(){return"POINT ("+this.p.x+" "+this.p.y+")"},sub:function(e){return new cn(this.p.x-e.getX(),this.p.y-e.getY())},getY:function(){return this.p.y},classify:function(e,r){var a=this,c=r.sub(e),g=a.sub(e),b=c.crossProduct(g);return b>0?cn.LEFT:0>b?cn.RIGHT:c.getX()*g.getX()<0||c.getY()*g.getY()<0?cn.BEHIND:c.magn()<g.magn()?cn.BEYOND:e.equals(a)?cn.ORIGIN:r.equals(a)?cn.DESTINATION:cn.BETWEEN},sum:function(e){return new cn(this.p.x+e.getX(),this.p.y+e.getY())},distance:function(e,r){return Math.sqrt(Math.pow(r.getX()-e.getX(),2)+Math.pow(r.getY()-e.getY(),2))},circumRadiusRatio:function(e,r){var a=this.circleCenter(e,r),c=this.distance(a,e),g=this.distance(this,e),b=this.distance(e,r);return g>b&&(g=b),b=this.distance(r,this),g>b&&(g=b),c/g},interfaces_:function(){return[]},getClass:function(){return cn}}),cn.interpolateZ=function(){if(arguments.length===3){var e=arguments[0],r=arguments[1],a=arguments[2],c=r.distance(a),g=e.distance(r),b=a.z-r.z,I=r.z+b*(g/c);return I}if(arguments.length===4){var F=arguments[0],Z=arguments[1],ne=arguments[2],de=arguments[3],me=Z.x,_e=Z.y,Ze=ne.x-me,gt=de.x-me,St=ne.y-_e,yn=de.y-_e,Un=Ze*yn-gt*St,Ki=F.x-me,Ya=F.y-_e,ih=(yn*Ki-gt*Ya)/Un,sh=(-St*Ki+Ze*Ya)/Un,oh=Z.z+ih*(ne.z-Z.z)+sh*(de.z-Z.z);return oh}},cn.LEFT=0,cn.RIGHT=1,cn.BEYOND=2,cn.BEHIND=3,cn.BETWEEN=4,cn.ORIGIN=5,cn.DESTINATION=6,_(ia,cn),o(ia.prototype,{getConstraint:function(){return this.constraint},setOnConstraint:function(e){this._isOnConstraint=e},merge:function(e){e._isOnConstraint&&(this._isOnConstraint=!0,this.constraint=e.constraint)},isOnConstraint:function(){return this._isOnConstraint},setConstraint:function(e){this._isOnConstraint=!0,this.constraint=e},interfaces_:function(){return[]},getClass:function(){return ia}}),o(Tn.prototype,{equalsNonOriented:function(e){return this.equalsOriented(e)?!0:!!this.equalsOriented(e.sym())},toLineSegment:function(){return new nt(this.vertex.getCoordinate(),this.dest().getCoordinate())},dest:function(){return this.sym().orig()},oNext:function(){return this.next},equalsOriented:function(e){return!(!this.orig().getCoordinate().equals2D(e.orig().getCoordinate())||!this.dest().getCoordinate().equals2D(e.dest().getCoordinate()))},dNext:function(){return this.sym().oNext().sym()},lPrev:function(){return this.next.sym()},rPrev:function(){return this.sym().oNext()},rot:function(){return this._rot},oPrev:function(){return this._rot.next._rot},sym:function(){return this._rot._rot},setOrig:function(e){this.vertex=e},lNext:function(){return this.invRot().oNext().rot()},getLength:function(){return this.orig().getCoordinate().distance(this.dest().getCoordinate())},invRot:function(){return this._rot.sym()},setDest:function(e){this.sym().setOrig(e)},setData:function(e){this.data=e},getData:function(){return this.data},delete:function(){this._rot=null},orig:function(){return this.vertex},rNext:function(){return this._rot.next.invRot()},toString:function(){var e=this.vertex.getCoordinate(),r=this.dest().getCoordinate();return ot.toLineString(e,r)},isLive:function(){return this._rot!==null},getPrimary:function(){return this.orig().getCoordinate().compareTo(this.dest().getCoordinate())<=0?this:this.sym()},dPrev:function(){return this.invRot().oNext().invRot()},setNext:function(e){this.next=e},interfaces_:function(){return[]},getClass:function(){return Tn}}),Tn.makeEdge=function(e,r){var a=new Tn,c=new Tn,g=new Tn,b=new Tn;a._rot=c,c._rot=g,g._rot=b,b._rot=a,a.setNext(a),c.setNext(b),g.setNext(g),b.setNext(c);var I=a;return I.setOrig(e),I.setDest(r),I},Tn.swap=function(e){var r=e.oPrev(),a=e.sym().oPrev();Tn.splice(e,r),Tn.splice(e.sym(),a),Tn.splice(e,r.lNext()),Tn.splice(e.sym(),a.lNext()),e.setOrig(r.dest()),e.setDest(a.dest())},Tn.splice=function(e,r){var a=e.oNext().rot(),c=r.oNext().rot(),g=r.oNext(),b=e.oNext(),I=c.oNext(),F=a.oNext();e.setNext(g),r.setNext(b),a.setNext(I),c.setNext(F)},Tn.connect=function(e,r){var a=Tn.makeEdge(e.dest(),r.orig());return Tn.splice(a,e.lNext()),Tn.splice(a.sym(),r),a},o(mc.prototype,{insertSite:function(e){var r=this.subdiv.locate(e);if(this.subdiv.isVertexOfEdge(r,e))return r;this.subdiv.isOnEdge(r,e.getCoordinate())&&(r=r.oPrev(),this.subdiv.delete(r.oNext()));var a=this.subdiv.makeEdge(r.orig(),e);Tn.splice(a,r);var c=a;do a=this.subdiv.connect(r,a.sym()),r=a.oPrev();while(r.lNext()!==c);for(;;){var g=r.oPrev();if(g.dest().rightOf(r)&&e.isInCircle(r.orig(),g.dest(),r.dest()))Tn.swap(r),r=r.oPrev();else{if(r.oNext()===c)return a;r=r.oNext().lPrev()}}},insertSites:function(e){for(var r=e.iterator();r.hasNext();){var a=r.next();this.insertSite(a)}},interfaces_:function(){return[]},getClass:function(){return mc}}),o(kg.prototype,{locate:function(e){},interfaces_:function(){return[]},getClass:function(){return kg}}),o(Xd.prototype,{init:function(){this.lastEdge=this.findEdge()},locate:function(e){this.lastEdge.isLive()||this.init();var r=this.subdiv.locateFromEdge(e,this.lastEdge);return this.lastEdge=r,r},findEdge:function(){var e=this.subdiv.getEdges();return e.iterator().next()},interfaces_:function(){return[kg]},getClass:function(){return Xd}}),_(rl,x),o(rl.prototype,{getSegment:function(){return this.seg},interfaces_:function(){return[]},getClass:function(){return rl}}),rl.msgWithSpatial=function(e,r){return r!==null?e+" [ "+r+" ]":e},o(il.prototype,{visit:function(e){},interfaces_:function(){return[]},getClass:function(){return il}}),o(xi.prototype,{getTriangleVertices:function(e){var r=new Jd;return this.visitTriangles(r,e),r.getTriangleVertices()},isFrameVertex:function(e){return e.equals(this.frameVertex[0])||e.equals(this.frameVertex[1])?!0:!!e.equals(this.frameVertex[2])},isVertexOfEdge:function(e,r){return!(!r.equals(e.orig(),this.tolerance)&&!r.equals(e.dest(),this.tolerance))},connect:function(e,r){var a=Tn.connect(e,r);return this.quadEdges.add(a),a},getVoronoiCellPolygon:function(e,r){var a=new k,c=e;do{var g=e.rot().orig().getCoordinate();a.add(g),e=e.oPrev()}while(e!==c);var b=new H;b.addAll(a,!1),b.closeRing(),b.size()<4&&($.out.println(b),b.add(b.get(b.size()-1),!0));var I=b.toCoordinateArray(),F=r.createPolygon(r.createLinearRing(I),null),Z=c.orig();return F.setUserData(Z.getCoordinate()),F},setLocator:function(e){this.locator=e},initSubdiv:function(){var e=this.makeEdge(this.frameVertex[0],this.frameVertex[1]),r=this.makeEdge(this.frameVertex[1],this.frameVertex[2]);Tn.splice(e.sym(),r);var a=this.makeEdge(this.frameVertex[2],this.frameVertex[0]);return Tn.splice(r.sym(),a),Tn.splice(a.sym(),e),e},isFrameBorderEdge:function(e){var r=new Array(3).fill(null);xi.getTriangleEdges(e,r);var a=new Array(3).fill(null);xi.getTriangleEdges(e.sym(),a);var c=e.lNext().dest();if(this.isFrameVertex(c))return!0;var g=e.sym().lNext().dest();return!!this.isFrameVertex(g)},makeEdge:function(e,r){var a=Tn.makeEdge(e,r);return this.quadEdges.add(a),a},visitTriangles:function(e,r){this.visitedKey++;var a=new kn;a.push(this.startingEdge);for(var c=new Ye;!a.empty();){var g=a.pop();if(!c.contains(g)){var b=this.fetchTriangleToVisit(g,a,r,c);b!==null&&e.visit(b)}}},isFrameEdge:function(e){return!(!this.isFrameVertex(e.orig())&&!this.isFrameVertex(e.dest()))},isOnEdge:function(e,r){this.seg.setCoordinates(e.orig().getCoordinate(),e.dest().getCoordinate());var a=this.seg.distance(r);return a<this.edgeCoincidenceTolerance},getEnvelope:function(){return new V(this.frameEnv)},createFrame:function(e){var r=e.getWidth(),a=e.getHeight(),c=0;c=r>a?10*r:10*a,this.frameVertex[0]=new cn((e.getMaxX()+e.getMinX())/2,e.getMaxY()+c),this.frameVertex[1]=new cn(e.getMinX()-c,e.getMinY()-c),this.frameVertex[2]=new cn(e.getMaxX()+c,e.getMinY()-c),this.frameEnv=new V(this.frameVertex[0].getCoordinate(),this.frameVertex[1].getCoordinate()),this.frameEnv.expandToInclude(this.frameVertex[2].getCoordinate())},getTriangleCoordinates:function(e){var r=new Qd;return this.visitTriangles(r,e),r.getTriangles()},getVertices:function(e){for(var r=new Ye,a=this.quadEdges.iterator();a.hasNext();){var c=a.next(),g=c.orig();!e&&this.isFrameVertex(g)||r.add(g);var b=c.dest();!e&&this.isFrameVertex(b)||r.add(b)}return r},fetchTriangleToVisit:function(e,r,a,c){var g=e,b=0,I=!1;do{this.triEdges[b]=g,this.isFrameEdge(g)&&(I=!0);var F=g.sym();c.contains(F)||r.push(F),c.add(g),b++,g=g.lNext()}while(g!==e);return I&&!a?null:this.triEdges},getEdges:function(){if(arguments.length===0)return this.quadEdges;if(arguments.length===1){for(var e=arguments[0],r=this.getPrimaryEdges(!1),a=new Array(r.size()).fill(null),c=0,g=r.iterator();g.hasNext();){var b=g.next();a[c++]=e.createLineString([b.orig().getCoordinate(),b.dest().getCoordinate()])}return e.createMultiLineString(a)}},getVertexUniqueEdges:function(e){for(var r=new k,a=new Ye,c=this.quadEdges.iterator();c.hasNext();){var g=c.next(),b=g.orig();a.contains(b)||(a.add(b),!e&&this.isFrameVertex(b)||r.add(g));var I=g.sym(),F=I.orig();a.contains(F)||(a.add(F),!e&&this.isFrameVertex(F)||r.add(I))}return r},getTriangleEdges:function(e){var r=new Kd;return this.visitTriangles(r,e),r.getTriangleEdges()},getPrimaryEdges:function(e){this.visitedKey++;var r=new k,a=new kn;a.push(this.startingEdge);for(var c=new Ye;!a.empty();){var g=a.pop();if(!c.contains(g)){var b=g.getPrimary();!e&&this.isFrameEdge(b)||r.add(b),a.push(g.oNext()),a.push(g.sym().oNext()),c.add(g),c.add(g.sym())}}return r},delete:function(e){Tn.splice(e,e.oPrev()),Tn.splice(e.sym(),e.sym().oPrev());var r=e.sym(),a=e.rot(),c=e.rot().sym();this.quadEdges.remove(e),this.quadEdges.remove(r),this.quadEdges.remove(a),this.quadEdges.remove(c),e.delete(),r.delete(),a.delete(),c.delete()},locateFromEdge:function(e,r){for(var a=0,c=this.quadEdges.size(),g=r;;){if(a++,a>c)throw new rl(g.toLineSegment());if(e.equals(g.orig())||e.equals(g.dest()))break;if(e.rightOf(g))g=g.sym();else if(e.rightOf(g.oNext())){if(e.rightOf(g.dPrev()))break;g=g.dPrev()}else g=g.oNext()}return g},getTolerance:function(){return this.tolerance},getVoronoiCellPolygons:function(e){this.visitTriangles(new Yd,!0);for(var r=new k,a=this.getVertexUniqueEdges(!1),c=a.iterator();c.hasNext();){var g=c.next();r.add(this.getVoronoiCellPolygon(g,e))}return r},getVoronoiDiagram:function(e){var r=this.getVoronoiCellPolygons(e);return e.createGeometryCollection(dt.toGeometryArray(r))},getTriangles:function(e){for(var r=this.getTriangleCoordinates(!1),a=new Array(r.size()).fill(null),c=0,g=r.iterator();g.hasNext();){var b=g.next();a[c++]=e.createPolygon(e.createLinearRing(b),null)}return e.createGeometryCollection(a)},insertSite:function(e){var r=this.locate(e);if(e.equals(r.orig(),this.tolerance)||e.equals(r.dest(),this.tolerance))return r;var a=this.makeEdge(r.orig(),e);Tn.splice(a,r);var c=a;do a=this.connect(r,a.sym()),r=a.oPrev();while(r.lNext()!==c);return c},locate:function(){if(arguments.length===1){if(arguments[0]instanceof cn){var e=arguments[0];return this.locator.locate(e)}if(arguments[0]instanceof w){var r=arguments[0];return this.locator.locate(new cn(r))}}else if(arguments.length===2){var a=arguments[0],c=arguments[1],g=this.locator.locate(new cn(a));if(g===null)return null;var b=g;g.dest().getCoordinate().equals2D(a)&&(b=g.sym());var I=b;do{if(I.dest().getCoordinate().equals2D(c))return I;I=I.oNext()}while(I!==b);return null}},interfaces_:function(){return[]},getClass:function(){return xi}}),xi.getTriangleEdges=function(e,r){if(r[0]=e,r[1]=r[0].lNext(),r[2]=r[1].lNext(),r[2].lNext()!==r[0])throw new d},o(Yd.prototype,{visit:function(e){for(var r=e[0].orig().getCoordinate(),a=e[1].orig().getCoordinate(),c=e[2].orig().getCoordinate(),g=Zt.circumcentre(r,a,c),b=new cn(g),I=0;3>I;I++)e[I].rot().setOrig(b)},interfaces_:function(){return[il]},getClass:function(){return Yd}}),o(Kd.prototype,{getTriangleEdges:function(){return this.triList},visit:function(e){this.triList.add(e.clone())},interfaces_:function(){return[il]},getClass:function(){return Kd}}),o(Jd.prototype,{visit:function(e){this.triList.add([e[0].orig(),e[1].orig(),e[2].orig()])},getTriangleVertices:function(){return this.triList},interfaces_:function(){return[il]},getClass:function(){return Jd}}),o(Qd.prototype,{checkTriangleSize:function(e){e.length>=2?ot.toLineString(e[0],e[1]):e.length>=1&&ot.toPoint(e[0])},visit:function(e){this.coordList.clear();for(var r=0;3>r;r++){var a=e[r].orig();this.coordList.add(a.getCoordinate())}if(this.coordList.size()>0){this.coordList.closeRing();var c=this.coordList.toCoordinateArray();if(c.length!==4)return null;this.triCoords.add(c)}},getTriangles:function(){return this.triCoords},interfaces_:function(){return[il]},getClass:function(){return Qd}}),xi.TriangleCircumcentreVisitor=Yd,xi.TriangleEdgesListVisitor=Kd,xi.TriangleVertexListVisitor=Jd,xi.TriangleCoordinatesVisitor=Qd,xi.EDGE_COINCIDENCE_TOL_FACTOR=1e3,o(Za.prototype,{getLineSegment:function(){return this.ls},getEndZ:function(){var e=this.ls.getCoordinate(1);return e.z},getStartZ:function(){var e=this.ls.getCoordinate(0);return e.z},intersection:function(e){return this.ls.intersection(e.getLineSegment())},getStart:function(){return this.ls.getCoordinate(0)},getEnd:function(){return this.ls.getCoordinate(1)},getEndY:function(){var e=this.ls.getCoordinate(1);return e.y},getStartX:function(){var e=this.ls.getCoordinate(0);return e.x},equalsTopo:function(e){return this.ls.equalsTopo(e.getLineSegment())},getStartY:function(){var e=this.ls.getCoordinate(0);return e.y},setData:function(e){this.data=e},getData:function(){return this.data},getEndX:function(){var e=this.ls.getCoordinate(1);return e.x},toString:function(){return this.ls.toString()},interfaces_:function(){return[]},getClass:function(){return Za}}),o(pc.prototype,{visit:function(e){},interfaces_:function(){return[]},getClass:function(){return pc}}),o($d.prototype,{isRepeated:function(){return this.count>1},getRight:function(){return this.right},getCoordinate:function(){return this.p},setLeft:function(e){this.left=e},getX:function(){return this.p.x},getData:function(){return this.data},getCount:function(){return this.count},getLeft:function(){return this.left},getY:function(){return this.p.y},increment:function(){this.count=this.count+1},setRight:function(e){this.right=e},interfaces_:function(){return[]},getClass:function(){return $d}}),o(Xa.prototype,{insert:function(){if(arguments.length===1){var e=arguments[0];return this.insert(e,null)}if(arguments.length===2){var r=arguments[0],a=arguments[1];if(this.root===null)return this.root=new $d(r,a),this.root;if(this.tolerance>0){var c=this.findBestMatchNode(r);if(c!==null)return c.increment(),c}return this.insertExact(r,a)}},query:function(){var e=arguments,r=this;if(arguments.length===1){var a=arguments[0],c=new k;return this.query(a,c),c}if(arguments.length===2){if(arguments[0]instanceof V&&X(arguments[1],T))(function(){var I=e[0],F=e[1];r.queryNode(r.root,I,!0,{interfaces_:function(){return[pc]},visit:function(Z){F.add(Z)}})})();else if(arguments[0]instanceof V&&X(arguments[1],pc)){var g=arguments[0],b=arguments[1];this.queryNode(this.root,g,!0,b)}}},queryNode:function(e,r,a,c){if(e===null)return null;var g=null,b=null,I=null;a?(g=r.getMinX(),b=r.getMaxX(),I=e.getX()):(g=r.getMinY(),b=r.getMaxY(),I=e.getY());var F=I>g,Z=b>=I;F&&this.queryNode(e.getLeft(),r,!a,c),r.contains(e.getCoordinate())&&c.visit(e),Z&&this.queryNode(e.getRight(),r,!a,c)},findBestMatchNode:function(e){var r=new eh(e,this.tolerance);return this.query(r.queryEnvelope(),r),r.getNode()},isEmpty:function(){return this.root===null},insertExact:function(e,r){for(var a=this.root,c=this.root,g=!0,b=!0;a!==null;){if(a!==null){var I=e.distance(a.getCoordinate())<=this.tolerance;if(I)return a.increment(),a}b=g?e.x<a.getX():e.y<a.getY(),c=a,a=b?a.getLeft():a.getRight(),g=!g}this.numberOfNodes=this.numberOfNodes+1;var F=new $d(e,r);return b?c.setLeft(F):c.setRight(F),F},interfaces_:function(){return[]},getClass:function(){return Xa}}),Xa.toCoordinates=function(){if(arguments.length===1){var e=arguments[0];return Xa.toCoordinates(e,!1)}if(arguments.length===2){for(var r=arguments[0],a=arguments[1],c=new H,g=r.iterator();g.hasNext();)for(var b=g.next(),I=a?b.getCount():1,F=0;I>F;F++)c.add(b.getCoordinate(),!0);return c.toCoordinateArray()}},o(eh.prototype,{visit:function(e){var r=this.p.distance(e.getCoordinate()),a=r<=this.tolerance;if(!a)return null;var c=!1;(this.matchNode===null||r<this.matchDist||this.matchNode!==null&&r===this.matchDist&&e.getCoordinate().compareTo(this.matchNode.getCoordinate())<1)&&(c=!0),c&&(this.matchNode=e,this.matchDist=r)},queryEnvelope:function(){var e=new V(this.p);return e.expandBy(this.tolerance),e},getNode:function(){return this.matchNode},interfaces_:function(){return[pc]},getClass:function(){return eh}}),Xa.BestMatchVisitor=eh,o(sa.prototype,{getInitialVertices:function(){return this.initialVertices},getKDT:function(){return this.kdt},enforceConstraints:function(){this.addConstraintVertices();var e=0,r=0;do r=this.enforceGabriel(this.segments),e++;while(r>0&&e<sa.MAX_SPLIT_ITER)},insertSites:function(e){for(var r=e.iterator();r.hasNext();){var a=r.next();this.insertSite(a)}},getVertexFactory:function(){return this.vertexFactory},getPointArray:function(){for(var e=new Array(this.initialVertices.size()+this.segVertices.size()).fill(null),r=0,a=this.initialVertices.iterator();a.hasNext();){var c=a.next();e[r++]=c.getCoordinate()}for(var g=this.segVertices.iterator();g.hasNext();){var c=g.next();e[r++]=c.getCoordinate()}return e},setConstraints:function(e,r){this.segments=e,this.segVertices=r},computeConvexHull:function(){var e=new dt,r=this.getPointArray(),a=new Rn(r,e);this.convexHull=a.getConvexHull()},addConstraintVertices:function(){this.computeConvexHull(),this.insertSites(this.segVertices)},findNonGabrielPoint:function(e){var r=e.getStart(),a=e.getEnd(),c=new w((r.x+a.x)/2,(r.y+a.y)/2),g=r.distance(c),b=new V(c);b.expandBy(g);for(var I=this.kdt.query(b),F=null,Z=h.MAX_VALUE,ne=I.iterator();ne.hasNext();){var de=ne.next(),me=de.getCoordinate();if(!me.equals2D(r)&&!me.equals2D(a)){var _e=c.distance(me);if(g>_e){var Ze=_e;(F===null||Z>Ze)&&(F=me,Z=Ze)}}}return F},getConstraintSegments:function(){return this.segments},setSplitPointFinder:function(e){this.splitFinder=e},getConvexHull:function(){return this.convexHull},getTolerance:function(){return this.tolerance},enforceGabriel:function(e){for(var r=new k,a=0,c=new k,g=e.iterator();g.hasNext();){var b=g.next(),I=this.findNonGabrielPoint(b);if(I!==null){this.splitPt=this.splitFinder.findSplitPoint(b,I);var F=this.createVertex(this.splitPt,b),Z=(this.insertSite(F),new Za(b.getStartX(),b.getStartY(),b.getStartZ(),F.getX(),F.getY(),F.getZ(),b.getData())),ne=new Za(F.getX(),F.getY(),F.getZ(),b.getEndX(),b.getEndY(),b.getEndZ(),b.getData());r.add(Z),r.add(ne),c.add(b),a+=1}}return e.removeAll(c),e.addAll(r),a},createVertex:function(){if(arguments.length===1){var e=arguments[0],r=null;return r=this.vertexFactory!==null?this.vertexFactory.createVertex(e,null):new ia(e)}if(arguments.length===2){var a=arguments[0],c=arguments[1],r=null;return r=this.vertexFactory!==null?this.vertexFactory.createVertex(a,c):new ia(a),r.setOnConstraint(!0),r}},getSubdivision:function(){return this.subdiv},computeBoundingBox:function(){var e=sa.computeVertexEnvelope(this.initialVertices),r=sa.computeVertexEnvelope(this.segVertices),a=new V(e);a.expandToInclude(r);var c=.2*a.getWidth(),g=.2*a.getHeight(),b=Math.max(c,g);this.computeAreaEnv=new V(a),this.computeAreaEnv.expandBy(b)},setVertexFactory:function(e){this.vertexFactory=e},formInitialDelaunay:function(){this.computeBoundingBox(),this.subdiv=new xi(this.computeAreaEnv,this.tolerance),this.subdiv.setLocator(new Xd(this.subdiv)),this.incDel=new mc(this.subdiv),this.insertSites(this.initialVertices)},insertSite:function(){if(arguments[0]instanceof ia){var e=arguments[0],r=this.kdt.insert(e.getCoordinate(),e);if(r.isRepeated()){var a=r.getData();return a.merge(e),a}return this.incDel.insertSite(e),e}if(arguments[0]instanceof w){var c=arguments[0];this.insertSite(this.createVertex(c))}},interfaces_:function(){return[]},getClass:function(){return sa}}),sa.computeVertexEnvelope=function(e){for(var r=new V,a=e.iterator();a.hasNext();){var c=a.next();r.expandToInclude(c.getCoordinate())}return r},sa.MAX_SPLIT_ITER=99,o(Ir.prototype,{create:function(){if(this.subdiv!==null)return null;var e=Ir.envelope(this.siteCoords),r=Ir.toVertices(this.siteCoords);this.subdiv=new xi(e,this.tolerance);var a=new mc(this.subdiv);a.insertSites(r)},setTolerance:function(e){this.tolerance=e},setSites:function(){if(arguments[0]instanceof ae){var e=arguments[0];this.siteCoords=Ir.extractUniqueCoordinates(e)}else if(X(arguments[0],M)){var r=arguments[0];this.siteCoords=Ir.unique(Le.toCoordinateArray(r))}},getEdges:function(e){return this.create(),this.subdiv.getEdges(e)},getSubdivision:function(){return this.create(),this.subdiv},getTriangles:function(e){return this.create(),this.subdiv.getTriangles(e)},interfaces_:function(){return[]},getClass:function(){return Ir}}),Ir.extractUniqueCoordinates=function(e){if(e===null)return new H;var r=e.getCoordinates();return Ir.unique(r)},Ir.envelope=function(e){for(var r=new V,a=e.iterator();a.hasNext();){var c=a.next();r.expandToInclude(c)}return r},Ir.unique=function(e){var r=Le.copyDeep(e);st.sort(r);var a=new H(r,!1);return a},Ir.toVertices=function(e){for(var r=new k,a=e.iterator();a.hasNext();){var c=a.next();r.add(new cn(c))}return r},o(sl.prototype,{createSiteVertices:function(e){for(var r=new k,a=e.iterator();a.hasNext();){var c=a.next();this.constraintVertexMap.containsKey(c)||r.add(new ia(c))}return r},create:function(){if(this.subdiv!==null)return null;var e=Ir.envelope(this.siteCoords),r=new k;this.constraintLines!==null&&(e.expandToInclude(this.constraintLines.getEnvelopeInternal()),this.createVertices(this.constraintLines),r=sl.createConstraintSegments(this.constraintLines));var a=this.createSiteVertices(this.siteCoords),c=new sa(a,this.tolerance);c.setConstraints(r,new k(this.constraintVertexMap.values())),c.formInitialDelaunay(),c.enforceConstraints(),this.subdiv=c.getSubdivision()},setTolerance:function(e){this.tolerance=e},setConstraints:function(e){this.constraintLines=e},setSites:function(e){this.siteCoords=Ir.extractUniqueCoordinates(e)},getEdges:function(e){return this.create(),this.subdiv.getEdges(e)},getSubdivision:function(){return this.create(),this.subdiv},getTriangles:function(e){return this.create(),this.subdiv.getTriangles(e)},createVertices:function(e){for(var r=e.getCoordinates(),a=0;a<r.length;a++){var c=new ia(r[a]);this.constraintVertexMap.put(r[a],c)}},interfaces_:function(){return[]},getClass:function(){return sl}}),sl.createConstraintSegments=function(){if(arguments.length===1){for(var e=arguments[0],r=fr.getLines(e),a=new k,c=r.iterator();c.hasNext();){var g=c.next();sl.createConstraintSegments(g,a)}return a}if(arguments.length===2)for(var b=arguments[0],I=arguments[1],F=b.getCoordinates(),c=1;c<F.length;c++)I.add(new Za(F[c-1],F[c]))},o(vc.prototype,{create:function(){if(this.subdiv!==null)return null;var e=Ir.envelope(this.siteCoords);this.diagramEnv=e;var r=Math.max(this.diagramEnv.getWidth(),this.diagramEnv.getHeight());this.diagramEnv.expandBy(r),this.clipEnv!==null&&this.diagramEnv.expandToInclude(this.clipEnv);var a=Ir.toVertices(this.siteCoords);this.subdiv=new xi(e,this.tolerance);var c=new mc(this.subdiv);c.insertSites(a)},getDiagram:function(e){this.create();var r=this.subdiv.getVoronoiDiagram(e);return vc.clipGeometryCollection(r,this.diagramEnv)},setTolerance:function(e){this.tolerance=e},setSites:function(){if(arguments[0]instanceof ae){var e=arguments[0];this.siteCoords=Ir.extractUniqueCoordinates(e)}else if(X(arguments[0],M)){var r=arguments[0];this.siteCoords=Ir.unique(Le.toCoordinateArray(r))}},setClipEnvelope:function(e){this.clipEnv=e},getSubdivision:function(){return this.create(),this.subdiv},interfaces_:function(){return[]},getClass:function(){return vc}}),vc.clipGeometryCollection=function(e,r){for(var a=e.getFactory().toGeometry(r),c=new k,g=0;g<e.getNumGeometries();g++){var b=e.getGeometryN(g),I=null;r.contains(b.getEnvelopeInternal())?I=b:r.intersects(b.getEnvelopeInternal())&&(I=a.intersection(b),I.setUserData(b.getUserData())),I===null||I.isEmpty()||c.add(I)}return e.getFactory().createGeometryCollection(dt.toGeometryArray(c))};var RA=Object.freeze({ConformingDelaunayTriangulationBuilder:sl,DelaunayTriangulationBuilder:Ir,VoronoiDiagramBuilder:vc});o(th.prototype,{interfaces_:function(){return[]},getClass:function(){return th}}),th.union=function(e,r){if(e.isEmpty()||r.isEmpty()){if(e.isEmpty()&&r.isEmpty())return $e.createEmptyResult($e.UNION,e,r,e.getFactory());if(e.isEmpty())return r.copy();if(r.isEmpty())return e.copy()}return e.checkNotGeometryCollection(e),e.checkNotGeometryCollection(r),Fn.overlayOp(e,r,$e.UNION)},o(ae.prototype,{equalsTopo:function(e){return this.getEnvelopeInternal().equals(e.getEnvelopeInternal())?Qt.relate(this,e).isEquals(this.getDimension(),e.getDimension()):!1},union:function(){if(arguments.length===0)return ra.union(this);if(arguments.length===1){var e=arguments[0];return th.union(this,e)}},isValid:function(){return Ri.isValid(this)},intersection:function(e){if(this.isEmpty()||e.isEmpty())return $e.createEmptyResult($e.INTERSECTION,this,e,this.factory);if(this.isGeometryCollection()){var r=e;return ho.map(this,{interfaces_:function(){return[MapOp]},map:function(a){return a.intersection(r)}})}return this.checkNotGeometryCollection(this),this.checkNotGeometryCollection(e),Fn.overlayOp(this,e,$e.INTERSECTION)},covers:function(e){return Qt.covers(this,e)},coveredBy:function(e){return Qt.coveredBy(this,e)},touches:function(e){return Qt.touches(this,e)},intersects:function(e){return Qt.intersects(this,e)},within:function(e){return Qt.within(this,e)},overlaps:function(e){return Qt.overlaps(this,e)},disjoint:function(e){return Qt.disjoint(this,e)},crosses:function(e){return Qt.crosses(this,e)},buffer:function(){if(arguments.length===1){var e=arguments[0];return Qn.bufferOp(this,e)}if(arguments.length===2){var r=arguments[0],a=arguments[1];return Qn.bufferOp(this,r,a)}if(arguments.length===3){var c=arguments[0],g=arguments[1],b=arguments[2];return Qn.bufferOp(this,c,g,b)}},convexHull:function(){return new Rn(this).getConvexHull()},relate:function(){for(var e=arguments.length,r=Array(e),a=0;e>a;a++)r[a]=arguments[a];return Qt.relate.apply(Qt,[this].concat(r))},getCentroid:function(){if(this.isEmpty())return this.factory.createPoint();var e=it.getCentroid(this);return this.createPointFromInternalCoord(e,this)},getInteriorPoint:function(){if(this.isEmpty())return this.factory.createPoint();var e=null,r=this.getDimension();if(r===0){var a=new gs(this);e=a.getInteriorPoint()}else if(r===1){var a=new Uu(this);e=a.getInteriorPoint()}else{var a=new mi(this);e=a.getInteriorPoint()}return this.createPointFromInternalCoord(e,this)},symDifference:function(e){if(this.isEmpty()||e.isEmpty()){if(this.isEmpty()&&e.isEmpty())return $e.createEmptyResult($e.SYMDIFFERENCE,this,e,this.factory);if(this.isEmpty())return e.copy();if(e.isEmpty())return this.copy()}return this.checkNotGeometryCollection(this),this.checkNotGeometryCollection(e),Fn.overlayOp(this,e,$e.SYMDIFFERENCE)},createPointFromInternalCoord:function(e,r){return r.getPrecisionModel().makePrecise(e),r.getFactory().createPoint(e)},toText:function(){var e=new ot;return e.write(this)},toString:function(){this.toText()},contains:function(e){return Qt.contains(this,e)},difference:function(e){return this.isEmpty()?$e.createEmptyResult($e.DIFFERENCE,this,e,this.factory):e.isEmpty()?this.copy():(this.checkNotGeometryCollection(this),this.checkNotGeometryCollection(e),Fn.overlayOp(this,e,$e.DIFFERENCE))},isSimple:function(){var e=new qa(this);return e.isSimple()},isWithinDistance:function(e,r){var a=this.getEnvelopeInternal().distance(e.getEnvelopeInternal());return a>r?!1:P.isWithinDistance(this,e,r)},distance:function(e){return P.distance(this,e)},isEquivalentClass:function(e){return this.getClass()===e.getClass()}});var jA="1.1.2 (248dab8)";n.version=jA,n.algorithm=pA,n.densify=vA,n.dissolve=yA,n.geom=mA,n.index=CA,n.io=EA,n.noding=wA,n.operation=DA,n.precision=MA,n.simplify=kA,n.triangulate=RA})})(Cl,Cl.exports)),Cl.exports}var bf,A6;function P6(){if(A6)return bf;A6=1;var s=Wc();return bf=function(t,n){var o=new s.io.GeoJSONReader,u=o.read(JSON.stringify(t.geometry)),d=o.read(JSON.stringify(n.geometry)),h=u.union(d),f=new s.io.GeoJSONWriter;return h=f.write(h),{type:"Feature",geometry:h,properties:t.properties}},bf}var xf,D6;function cE(){if(D6)return xf;D6=1;var s=Gh(),t=P6(),n=Ei();function o(d,h,f){if(typeof h!="number")throw new Error("maxEdge parameter is required");if(typeof f!="string")throw new Error("units parameter is required");var v=s(d),p=v.features.filter(y);v.features=p;function y(x){var _=x.geometry.coordinates[0][0],S=x.geometry.coordinates[0][1],N=x.geometry.coordinates[0][2],w=n(_,S,f),j=n(S,N,f),U=n(_,N,f);return w<=h&&j<=h&&U<=h}return u(v)}function u(d){for(var h=JSON.parse(JSON.stringify(d.features[0])),f=d.features,v=0,p=f.length;v<p;v++){var y=f[v];y.geometry&&(h=t(h,y))}return h}return xf=o,xf}var Cf,M6;function dE(){if(M6)return Cf;M6=1;var s=Wc();return Cf=function(t,n){var o=JSON.parse(JSON.stringify(t)),u=JSON.parse(JSON.stringify(n));o.type!=="Feature"&&(o={type:"Feature",properties:{},geometry:o}),u.type!=="Feature"&&(u={type:"Feature",properties:{},geometry:u});var d=new s.io.GeoJSONReader,h=d.read(JSON.stringify(o.geometry)),f=d.read(JSON.stringify(u.geometry)),v=h.difference(f);if(!v.isEmpty()){var p=new s.io.GeoJSONWriter,y=p.write(v);return o.geometry=v,{type:"Feature",properties:o.properties,geometry:y}}},Cf}var _f,k6;function hE(){if(k6)return _f;k6=1;var s=uu();return _f=function(n,o,u,d){return n.features.forEach(function(h){var f=o.features.filter(function(v){return s(v,h)}).map(function(v){return v.properties[u]});h.properties||(h.properties={}),h.properties[d]=f}),n},_f}var Ef,R6;function fE(){if(R6)return Ef;R6=1;var s=lu().coordEach;return Ef=function(n){return n=JSON.parse(JSON.stringify(n)),s(n,function(o){o.reverse()}),n},Ef}var wf={exports:{}},j6;function gE(){return j6||(j6=1,(function(s){(function(){function t(f,v){var p=f.x-v.x,y=f.y-v.y;return p*p+y*y}function n(f,v,p){var y=v.x,x=v.y,_=p.x-y,S=p.y-x;if(_!==0||S!==0){var N=((f.x-y)*_+(f.y-x)*S)/(_*_+S*S);N>1?(y=p.x,x=p.y):N>0&&(y+=_*N,x+=S*N)}return _=f.x-y,S=f.y-x,_*_+S*S}function o(f,v){for(var p=f[0],y=[p],x,_=1,S=f.length;_<S;_++)x=f[_],t(x,p)>v&&(y.push(x),p=x);return p!==x&&y.push(x),y}function u(f,v,p,y,x){for(var _=y,S,N=v+1;N<p;N++){var w=n(f[N],f[v],f[p]);w>_&&(S=N,_=w)}_>y&&(S-v>1&&u(f,v,S,y,x),x.push(f[S]),p-S>1&&u(f,S,p,y,x))}function d(f,v){var p=f.length-1,y=[f[0]];return u(f,0,p,v,y),y.push(f[p]),y}function h(f,v,p){if(f.length<=2)return f;var y=v!==void 0?v*v:1;return f=p?f:o(f,y),f=d(f,y),f}s.exports=h,s.exports.default=h})()})(wf)),wf.exports}var Sf,F6;function mE(){if(F6)return Sf;F6=1;var s=gE(),t=["LineString","MultiLineString","Polygon","MultiPolygon"];Sf=function(f,v,p){return f.type==="Feature"?u(n(f,v,p),f.properties):f.type==="FeatureCollection"?{type:"FeatureCollection",features:f.features.map(function(y){var x=n(y,v,p);return t.indexOf(x.type)>-1?u(x,y.properties):x})}:f.type==="GeometryCollection"?{type:"GeometryCollection",geometries:f.geometries.map(function(y){return t.indexOf(y.type)>-1?n({type:"Feature",geometry:y},v,p):y})}:f};function n(f,v,p){return f.geometry.type==="LineString"?{type:"LineString",coordinates:d(f.geometry.coordinates,v,p)}:f.geometry.type==="MultiLineString"?{type:"MultiLineString",coordinates:f.geometry.coordinates.map(function(y){return d(y,v,p)})}:f.geometry.type==="Polygon"?{type:"Polygon",coordinates:h(f.geometry.coordinates,v,p)}:f.geometry.type==="MultiPolygon"?{type:"MultiPolygon",coordinates:f.geometry.coordinates.map(function(y){return h(y,v,p)})}:f}function o(f){return f.length<3?!1:!(f.length===3&&f[2][0]===f[0][0]&&f[2][1]===f[0][1])}function u(f,v){return{type:"Feature",geometry:f,properties:v}}function d(f,v,p){return s(f.map(function(y){return{x:y[0],y:y[1]}}),v,p).map(function(y){return[y.x,y.y]})}function h(f,v,p){return f.map(function(y){var x=y.map(function(S){return{x:S[0],y:S[1]}});if(x.length<4)throw new Error("Invalid polygon");for(var _=s(x,v,p).map(function(S){return[S.x,S.y]});!o(_);)v-=v*.01,_=s(x,v,p).map(function(S){return[S.x,S.y]});return(_[_.length-1][0]!==_[0][0]||_[_.length-1][1]!==_[0][1])&&_.push(_[0]),_})}return Sf}var Of,B6;function pE(){if(B6)return Of;B6=1;var s=function(t){this.points=t.points||[],this.duration=t.duration||1e4,this.sharpness=t.sharpness||.85,this.centers=[],this.controls=[],this.stepLength=t.stepLength||60,this.length=this.points.length,this.delay=0;for(var n=0;n<this.length;n++)this.points[n].z=this.points[n].z||0;for(var n=0;n<this.length-1;n++){var o=this.points[n],u=this.points[n+1];this.centers.push({x:(o.x+u.x)/2,y:(o.y+u.y)/2,z:(o.z+u.z)/2})}this.controls.push([this.points[0],this.points[0]]);for(var n=0;n<this.centers.length-1;n++){var o=this.centers[n],u=this.centers[n+1],d=this.points[n+1].x-(this.centers[n].x+this.centers[n+1].x)/2,h=this.points[n+1].y-(this.centers[n].y+this.centers[n+1].y)/2,f=this.points[n+1].z-(this.centers[n].y+this.centers[n+1].z)/2;this.controls.push([{x:(1-this.sharpness)*this.points[n+1].x+this.sharpness*(this.centers[n].x+d),y:(1-this.sharpness)*this.points[n+1].y+this.sharpness*(this.centers[n].y+h),z:(1-this.sharpness)*this.points[n+1].z+this.sharpness*(this.centers[n].z+f)},{x:(1-this.sharpness)*this.points[n+1].x+this.sharpness*(this.centers[n+1].x+d),y:(1-this.sharpness)*this.points[n+1].y+this.sharpness*(this.centers[n+1].y+h),z:(1-this.sharpness)*this.points[n+1].z+this.sharpness*(this.centers[n+1].z+f)}])}return this.controls.push([this.points[this.length-1],this.points[this.length-1]]),this.steps=this.cacheSteps(this.stepLength),this};return s.prototype.cacheSteps=function(t){var n=[],o=this.pos(0);n.push(0);for(var u=0;u<this.duration;u+=10){var d=this.pos(u),h=Math.sqrt((d.x-o.x)*(d.x-o.x)+(d.y-o.y)*(d.y-o.y)+(d.z-o.z)*(d.z-o.z));h>t&&(n.push(u),o=d)}return n},s.prototype.vector=function(t){var n=this.pos(t+10),o=this.pos(t-10);return{angle:180*Math.atan2(n.y-o.y,n.x-o.x)/3.14,speed:Math.sqrt((o.x-n.x)*(o.x-n.x)+(o.y-n.y)*(o.y-n.y)+(o.z-n.z)*(o.z-n.z))}},s.prototype.pos=function(t){function n(f,v,p,y,x){var _=function(w){var j=w*w,U=j*w;return[U,3*j*(1-w),3*w*(1-w)*(1-w),(1-w)*(1-w)*(1-w)]},S=_(f),N={x:x.x*S[0]+y.x*S[1]+p.x*S[2]+v.x*S[3],y:x.y*S[0]+y.y*S[1]+p.y*S[2]+v.y*S[3],z:x.z*S[0]+y.z*S[1]+p.z*S[2]+v.z*S[3]};return N}var o=t-this.delay;o<0&&(o=0),o>this.duration&&(o=this.duration-1);var u=o/this.duration;if(u>=1)return this.points[this.length-1];var d=Math.floor((this.points.length-1)*u),h=(this.length-1)*u-d;return n(h,this.points[d],this.controls[d][1],this.controls[d+1][0],this.points[d+1])},Of=s,Of}var Lf,q6;function vE(){if(q6)return Lf;q6=1;var s=sn().lineString,t=pE();return Lf=function(n,o,u){var d=s([]);d.properties=n.properties;for(var h=new t({points:n.geometry.coordinates.map(function(p){return{x:p[0],y:p[1]}}),duration:o,sharpness:u}),f=0;f<h.duration;f+=10){var v=h.pos(f);Math.floor(f/100)%2===0&&d.geometry.coordinates.push([v.x,v.y])}return d},Lf}var Nf,z6;function yE(){if(z6)return Nf;z6=1;var s=uu();return Nf=function(t,n,o,u){return t=JSON.parse(JSON.stringify(t)),n=JSON.parse(JSON.stringify(n)),t.features.forEach(function(d){d.properties||(d.properties={}),n.features.forEach(function(h){if(d.properties[u]===void 0){var f=s(d,h);f&&(d.properties[u]=h.properties[o])}})}),t},Nf}var If,U6;function bE(){if(U6)return If;U6=1;var s=sn().featureCollection;If=function(n,o){var u=s(t(n.features,o));return u};function t(n,o){for(var u=n.slice(0),d=n.length,h=d-o,f,v;d-- >h;)v=Math.floor((d+1)*Math.random()),f=u[v],u[v]=u[d],u[d]=f;return u.slice(h)}return If}var Tf,V6;function H6(){if(V6)return Tf;V6=1;var s=sn().polygon;return Tf=function(t){var n=[t[0],t[1]],o=[t[0],t[3]],u=[t[2],t[3]],d=[t[2],t[1]];return s([[n,d,u,o,n]])},Tf}var Af,G6;function xE(){if(G6)return Af;G6=1;var s=Gc(),t=H6();return Af=function(n){return t(s(n))},Af}var Pf,W6;function Zc(){if(W6)return Pf;W6=1;var s=Hc().getCoord;return Pf=function(t,n){var o=Math.PI/180,u=180/Math.PI,d=s(t),h=s(n),f=o*d[0],v=o*h[0],p=o*d[1],y=o*h[1],x=Math.sin(v-f)*Math.cos(y),_=Math.cos(p)*Math.sin(y)-Math.sin(p)*Math.cos(y)*Math.cos(v-f),S=u*Math.atan2(x,_);return S},Pf}var Df,Z6;function Xc(){if(Z6)return Df;Z6=1;var s=Hc().getCoord,t=sn(),n=t.point,o=t.distanceToRadians;return Df=function(u,d,h,f){var v=Math.PI/180,p=180/Math.PI,y=s(u),x=v*y[0],_=v*y[1],S=v*h,N=o(d,f),w=Math.asin(Math.sin(_)*Math.cos(N)+Math.cos(_)*Math.sin(N)*Math.cos(S)),j=x+Math.atan2(Math.sin(S)*Math.sin(N)*Math.cos(_),Math.cos(N)-Math.sin(_)*Math.sin(w));return n([p*j,p*w])},Df}var Mf,X6;function CE(){if(X6)return Mf;X6=1;var s=Zc(),t=Xc(),n=Ei();return Mf=function(o,u){var d=n(o,u,"miles"),h=s(o,u),f=t(o,d/2,h,"miles");return f},Mf}var kf,Y6;function _E(){if(Y6)return kf;Y6=1,kf=t;var s={Point:"geometry",MultiPoint:"geometry",LineString:"geometry",MultiLineString:"geometry",Polygon:"geometry",MultiPolygon:"geometry",GeometryCollection:"geometry",Feature:"feature",FeatureCollection:"featurecollection"};function t(n){if(!n||!n.type)return null;var o=s[n.type];if(!o)return null;if(o==="geometry")return{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:n}]};if(o==="feature")return{type:"FeatureCollection",features:[n]};if(o==="featurecollection")return n}return kf}var Rf,K6;function EE(){if(K6)return Rf;K6=1;var s=sn(),t=s.featureCollection,n=Wc(),o=_E();Rf=function(d,h,f){var v=s.distanceToDegrees(h,f),p=o(d),y=o(t(p.features.map(function(x){return u(x,v)})));if(y.features.length>1)return y;if(y.features.length===1)return y.features[0]};function u(d,h){var f=new n.io.GeoJSONReader,v=f.read(d.geometry),p=v.buffer(h),y=new n.io.GeoJSONWriter;return p=y.write(p),{type:"Feature",geometry:p,properties:{}}}return Rf}var jf,J6;function Q6(){if(J6)return jf;J6=1;var s=Gc(),t=sn().point;return jf=function(n){var o=s(n),u=(o[0]+o[2])/2,d=(o[1]+o[3])/2;return t([u,d])},jf}var Ff,$6;function wE(){if($6)return Ff;$6=1;var s=lu().coordEach,t=sn().point;return Ff=function(n){var o=0,u=0,d=0;return s(n,function(h){o+=h[0],u+=h[1],d++},!0),t([o/d,u/d])},Ff}var Bf,ev;function SE(){if(ev)return Bf;ev=1;var s=lu();return Bf=function(t){var n={MultiPoint:{coordinates:[],properties:[]},MultiLineString:{coordinates:[],properties:[]},MultiPolygon:{coordinates:[],properties:[]}},o=Object.keys(n).reduce(function(d,h){return d[h.replace("Multi","")]=h,d},{});function u(d,h,f){f?n[h].coordinates=n[h].coordinates.concat(d.geometry.coordinates):n[h].coordinates.push(d.geometry.coordinates),n[h].properties.push(d.properties)}return s.featureEach(t,function(d){d.geometry&&(n[d.geometry.type]?u(d,d.geometry.type,!0):o[d.geometry.type]&&u(d,o[d.geometry.type],!1))}),{type:"FeatureCollection",features:Object.keys(n).filter(function(d){return n[d].coordinates.length}).sort().map(function(d){return{type:"Feature",properties:{collectedProperties:n[d].properties},geometry:{type:d,coordinates:n[d].coordinates}}})}},Bf}var qf,tv;function nv(){if(tv)return qf;tv=1;var s=sn().featureCollection,t=lu().coordEach,n=sn().point;return qf=function(o){var u=[];return t(o,function(d){u.push(n(d))}),s(u)},qf}var Yc={exports:{}},rv;function OE(){if(rv)return Yc.exports;rv=1,Yc.exports=s,Yc.exports.default=s;function s(G,K,B){B=B||2;var te=K&&K.length,Q=te?K[0]*B:G.length,$=t(G,0,Q,B,!0),re=[];if(!$||$.next===$.prev)return re;var le,be,ae,Ce,we,Me,Je;if(te&&($=v(G,K,$,B)),G.length>80*B){le=ae=G[0],be=Ce=G[1];for(var rt=B;rt<Q;rt+=B)we=G[rt],Me=G[rt+1],we<le&&(le=we),Me<be&&(be=Me),we>ae&&(ae=we),Me>Ce&&(Ce=Me);Je=Math.max(ae-le,Ce-be),Je=Je!==0?32767/Je:0}return o($,re,B,le,be,Je,0),re}function t(G,K,B,te,Q){var $,re;if(Q===ue(G,K,B,te)>0)for($=K;$<B;$+=te)re=A($,G[$],G[$+1],re);else for($=B-te;$>=K;$-=te)re=A($,G[$],G[$+1],re);return re&&T(re,re.next)&&(X(re),re=re.next),re}function n(G,K){if(!G)return G;K||(K=G);var B=G,te;do if(te=!1,!B.steiner&&(T(B,B.next)||D(B.prev,B,B.next)===0)){if(X(B),B=K=B.prev,B===B.next)break;te=!0}else B=B.next;while(te||B!==K);return K}function o(G,K,B,te,Q,$,re){if(G){!re&&$&&S(G,te,Q,$);for(var le=G,be,ae;G.prev!==G.next;){if(be=G.prev,ae=G.next,$?d(G,te,Q,$):u(G)){K.push(be.i/B|0),K.push(G.i/B|0),K.push(ae.i/B|0),X(G),G=ae.next,le=ae.next;continue}if(G=ae,G===le){re?re===1?(G=h(n(G),K,B),o(G,K,B,te,Q,$,2)):re===2&&f(G,K,B,te,Q,$):o(n(G),K,B,te,Q,$,1);break}}}}function u(G){var K=G.prev,B=G,te=G.next;if(D(K,B,te)>=0)return!1;for(var Q=K.x,$=B.x,re=te.x,le=K.y,be=B.y,ae=te.y,Ce=Q<$?Q<re?Q:re:$<re?$:re,we=le<be?le<ae?le:ae:be<ae?be:ae,Me=Q>$?Q>re?Q:re:$>re?$:re,Je=le>be?le>ae?le:ae:be>ae?be:ae,rt=te.next;rt!==K;){if(rt.x>=Ce&&rt.x<=Me&&rt.y>=we&&rt.y<=Je&&U(Q,le,$,be,re,ae,rt.x,rt.y)&&D(rt.prev,rt,rt.next)>=0)return!1;rt=rt.next}return!0}function d(G,K,B,te){var Q=G.prev,$=G,re=G.next;if(D(Q,$,re)>=0)return!1;for(var le=Q.x,be=$.x,ae=re.x,Ce=Q.y,we=$.y,Me=re.y,Je=le<be?le<ae?le:ae:be<ae?be:ae,rt=Ce<we?Ce<Me?Ce:Me:we<Me?we:Me,et=le>be?le>ae?le:ae:be>ae?be:ae,Le=Ce>we?Ce>Me?Ce:Me:we>Me?we:Me,mt=w(Je,rt,K,B,te),lt=w(et,Le,K,B,te),De=G.prevZ,ct=G.nextZ;De&&De.z>=mt&&ct&&ct.z<=lt;){if(De.x>=Je&&De.x<=et&&De.y>=rt&&De.y<=Le&&De!==Q&&De!==re&&U(le,Ce,be,we,ae,Me,De.x,De.y)&&D(De.prev,De,De.next)>=0||(De=De.prevZ,ct.x>=Je&&ct.x<=et&&ct.y>=rt&&ct.y<=Le&&ct!==Q&&ct!==re&&U(le,Ce,be,we,ae,Me,ct.x,ct.y)&&D(ct.prev,ct,ct.next)>=0))return!1;ct=ct.nextZ}for(;De&&De.z>=mt;){if(De.x>=Je&&De.x<=et&&De.y>=rt&&De.y<=Le&&De!==Q&&De!==re&&U(le,Ce,be,we,ae,Me,De.x,De.y)&&D(De.prev,De,De.next)>=0)return!1;De=De.prevZ}for(;ct&&ct.z<=lt;){if(ct.x>=Je&&ct.x<=et&&ct.y>=rt&&ct.y<=Le&&ct!==Q&&ct!==re&&U(le,Ce,be,we,ae,Me,ct.x,ct.y)&&D(ct.prev,ct,ct.next)>=0)return!1;ct=ct.nextZ}return!0}function h(G,K,B){var te=G;do{var Q=te.prev,$=te.next.next;!T(Q,$)&&O(Q,te,te.next,$)&&V(Q,$)&&V($,Q)&&(K.push(Q.i/B|0),K.push(te.i/B|0),K.push($.i/B|0),X(te),X(te.next),te=G=$),te=te.next}while(te!==G);return n(te)}function f(G,K,B,te,Q,$){var re=G;do{for(var le=re.next.next;le!==re.prev;){if(re.i!==le.i&&M(re,le)){var be=R(re,le);re=n(re,re.next),be=n(be,be.next),o(re,K,B,te,Q,$,0),o(be,K,B,te,Q,$,0);return}le=le.next}re=re.next}while(re!==G)}function v(G,K,B,te){var Q=[],$,re,le,be,ae;for($=0,re=K.length;$<re;$++)le=K[$]*te,be=$<re-1?K[$+1]*te:G.length,ae=t(G,le,be,te,!1),ae===ae.next&&(ae.steiner=!0),Q.push(j(ae));for(Q.sort(p),$=0;$<Q.length;$++)B=y(Q[$],B);return B}function p(G,K){return G.x-K.x}function y(G,K){var B=x(G,K);if(!B)return K;var te=R(B,G);return n(te,te.next),n(B,B.next)}function x(G,K){var B=K,te=G.x,Q=G.y,$=-1/0,re;do{if(Q<=B.y&&Q>=B.next.y&&B.next.y!==B.y){var le=B.x+(Q-B.y)*(B.next.x-B.x)/(B.next.y-B.y);if(le<=te&&le>$&&($=le,re=B.x<B.next.x?B:B.next,le===te))return re}B=B.next}while(B!==K);if(!re)return null;var be=re,ae=re.x,Ce=re.y,we=1/0,Me;B=re;do te>=B.x&&B.x>=ae&&te!==B.x&&U(Q<Ce?te:$,Q,ae,Ce,Q<Ce?$:te,Q,B.x,B.y)&&(Me=Math.abs(Q-B.y)/(te-B.x),V(B,G)&&(Me<we||Me===we&&(B.x>re.x||B.x===re.x&&_(re,B)))&&(re=B,we=Me)),B=B.next;while(B!==be);return re}function _(G,K){return D(G.prev,G,K.prev)<0&&D(K.next,G,G.next)<0}function S(G,K,B,te){var Q=G;do Q.z===0&&(Q.z=w(Q.x,Q.y,K,B,te)),Q.prevZ=Q.prev,Q.nextZ=Q.next,Q=Q.next;while(Q!==G);Q.prevZ.nextZ=null,Q.prevZ=null,N(Q)}function N(G){var K,B,te,Q,$,re,le,be,ae=1;do{for(B=G,G=null,$=null,re=0;B;){for(re++,te=B,le=0,K=0;K<ae&&(le++,te=te.nextZ,!!te);K++);for(be=ae;le>0||be>0&&te;)le!==0&&(be===0||!te||B.z<=te.z)?(Q=B,B=B.nextZ,le--):(Q=te,te=te.nextZ,be--),$?$.nextZ=Q:G=Q,Q.prevZ=$,$=Q;B=te}$.nextZ=null,ae*=2}while(re>1);return G}function w(G,K,B,te,Q){return G=(G-B)*Q|0,K=(K-te)*Q|0,G=(G|G<<8)&16711935,G=(G|G<<4)&252645135,G=(G|G<<2)&858993459,G=(G|G<<1)&1431655765,K=(K|K<<8)&16711935,K=(K|K<<4)&252645135,K=(K|K<<2)&858993459,K=(K|K<<1)&1431655765,G|K<<1}function j(G){var K=G,B=G;do(K.x<B.x||K.x===B.x&&K.y<B.y)&&(B=K),K=K.next;while(K!==G);return B}function U(G,K,B,te,Q,$,re,le){return(Q-re)*(K-le)>=(G-re)*($-le)&&(G-re)*(te-le)>=(B-re)*(K-le)&&(B-re)*($-le)>=(Q-re)*(te-le)}function M(G,K){return G.next.i!==K.i&&G.prev.i!==K.i&&!H(G,K)&&(V(G,K)&&V(K,G)&&Y(G,K)&&(D(G.prev,G,K.prev)||D(G,K.prev,K))||T(G,K)&&D(G.prev,G,G.next)>0&&D(K.prev,K,K.next)>0)}function D(G,K,B){return(K.y-G.y)*(B.x-K.x)-(K.x-G.x)*(B.y-K.y)}function T(G,K){return G.x===K.x&&G.y===K.y}function O(G,K,B,te){var Q=k(D(G,K,B)),$=k(D(G,K,te)),re=k(D(B,te,G)),le=k(D(B,te,K));return!!(Q!==$&&re!==le||Q===0&&q(G,B,K)||$===0&&q(G,te,K)||re===0&&q(B,G,te)||le===0&&q(B,K,te))}function q(G,K,B){return K.x<=Math.max(G.x,B.x)&&K.x>=Math.min(G.x,B.x)&&K.y<=Math.max(G.y,B.y)&&K.y>=Math.min(G.y,B.y)}function k(G){return G>0?1:G<0?-1:0}function H(G,K){var B=G;do{if(B.i!==G.i&&B.next.i!==G.i&&B.i!==K.i&&B.next.i!==K.i&&O(B,B.next,G,K))return!0;B=B.next}while(B!==G);return!1}function V(G,K){return D(G.prev,G,G.next)<0?D(G,K,G.next)>=0&&D(G,G.prev,K)>=0:D(G,K,G.prev)<0||D(G,G.next,K)<0}function Y(G,K){var B=G,te=!1,Q=(G.x+K.x)/2,$=(G.y+K.y)/2;do B.y>$!=B.next.y>$&&B.next.y!==B.y&&Q<(B.next.x-B.x)*($-B.y)/(B.next.y-B.y)+B.x&&(te=!te),B=B.next;while(B!==G);return te}function R(G,K){var B=new ee(G.i,G.x,G.y),te=new ee(K.i,K.x,K.y),Q=G.next,$=K.prev;return G.next=K,K.prev=G,B.next=Q,Q.prev=B,te.next=B,B.prev=te,$.next=te,te.prev=$,te}function A(G,K,B,te){var Q=new ee(G,K,B);return te?(Q.next=te.next,Q.prev=te,te.next.prev=Q,te.next=Q):(Q.prev=Q,Q.next=Q),Q}function X(G){G.next.prev=G.prev,G.prev.next=G.next,G.prevZ&&(G.prevZ.nextZ=G.nextZ),G.nextZ&&(G.nextZ.prevZ=G.prevZ)}function ee(G,K,B){this.i=G,this.x=K,this.y=B,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}s.deviation=function(G,K,B,te){var Q=K&&K.length,$=Q?K[0]*B:G.length,re=Math.abs(ue(G,0,$,B));if(Q)for(var le=0,be=K.length;le<be;le++){var ae=K[le]*B,Ce=le<be-1?K[le+1]*B:G.length;re-=Math.abs(ue(G,ae,Ce,B))}var we=0;for(le=0;le<te.length;le+=3){var Me=te[le]*B,Je=te[le+1]*B,rt=te[le+2]*B;we+=Math.abs((G[Me]-G[rt])*(G[Je+1]-G[Me+1])-(G[Me]-G[Je])*(G[rt+1]-G[Me+1]))}return re===0&&we===0?0:Math.abs((we-re)/re)};function ue(G,K,B,te){for(var Q=0,$=K,re=B-te;$<B;$+=te)Q+=(G[re]-G[$])*(G[$+1]+G[re+1]),re=$;return Q}return s.flatten=function(G){for(var K=G[0][0].length,B={vertices:[],holes:[],dimensions:K},te=0,Q=0;Q<G.length;Q++){for(var $=0;$<G[Q].length;$++)for(var re=0;re<K;re++)B.vertices.push(G[Q][$][re]);Q>0&&(te+=G[Q-1].length,B.holes.push(te))}return B},Yc.exports}var zf,iv;function LE(){if(iv)return zf;iv=1;var s=sn().polygon,t=OE();zf=function(u){if(!u.geometry||u.geometry.type!=="Polygon"&&u.geometry.type!=="MultiPolygon")throw new Error("input must be a Polygon or MultiPolygon");var d={type:"FeatureCollection",features:[]};return u.geometry.type==="Polygon"?d.features=n(u.geometry.coordinates):u.geometry.coordinates.forEach(function(h){d.features=d.features.concat(n(h))}),d};function n(u){var d=o(u),h=2,f=t(d.vertices,d.holes,h),v=[],p=[];f.forEach(function(_,S){var N=f[S];p.push([d.vertices[N*h],d.vertices[N*h+1]])});for(var y=0;y<p.length;y+=3){var x=p.slice(y,y+3);x.push(p[y]),v.push(s([x]))}return v}function o(u){for(var d=u[0][0].length,h={vertices:[],holes:[],dimensions:d},f=0,v=0;v<u.length;v++){for(var p=0;p<u[v].length;p++)for(var y=0;y<d;y++)h.vertices.push(u[v][p][y]);v>0&&(f+=u[v-1].length,h.holes.push(f))}return h}return zf}var Uf,sv;function NE(){if(sv)return Uf;sv=1;var s=Wc();return Uf=function(n,o){var u,d;n.type==="Feature"?u=n.geometry:u=n,o.type==="Feature"?d=o.geometry:d=o;var h=new s.io.GeoJSONReader,f=h.read(JSON.stringify(u)),v=h.read(JSON.stringify(d)),p=f.intersection(v);if(!p.isEmpty()){var y=new s.io.GeoJSONWriter,x=y.write(p);return{type:"Feature",properties:{},geometry:x}}},Uf}var Vf,ov;function IE(){if(ov)return Vf;ov=1;var s=Ei();return Vf=function(t,n){for(var o,u=1/0,d=0;d<n.features.length;d++){var h=s(t,n.features[d],"miles");h<u&&(o=n.features[d],u=h)}return o},Vf}var cu={exports:{}},av;function TE(){if(av)return cu.exports;av=1,cu.exports=function(){throw new Error("call .point() or .polygon() instead")};function s(y){return y?h(y):[o(),u()]}cu.exports.position=s,cu.exports.point=function(y,x){var _=[];for(i=0;i<y;i++)_.push(v(x?d(s(x)):d()));return p(_)},cu.exports.polygon=function(y,x,_,S){typeof x!="number"&&(x=10),typeof _!="number"&&(_=10);var N=[];for(i=0;i<y;i++){var w=[],j=Array.apply(null,new Array(x+1)).map(Math.random);j.forEach(U),j.forEach(M),w[w.length-1]=w[0],w=w.map(t(s(S))),N.push(v(f([w])))}function U(D,T,O){O[T]=T>0?D+O[T-1]:D}function M(D,T){D=D*2*Math.PI/j[j.length-1];var O=Math.random();w.push([O*_*Math.sin(D),O*_*Math.cos(D)])}return p(N)};function t(y){return function(x,_){return[x[0]+y[0],x[1]+y[1]]}}function n(){return Math.random()-.5}function o(){return n()*360}function u(){return n()*180}function d(y){return{type:"Point",coordinates:y||[o(),u()]}}function h(y){return[Math.random()*(y[2]-y[0])+y[0],Math.random()*(y[3]-y[1])+y[1]]}function f(y){return{type:"Polygon",coordinates:y}}function v(y){return{type:"Feature",geometry:y,properties:{}}}function p(y){return{type:"FeatureCollection",features:y}}return cu.exports}var Hf,uv;function AE(){if(uv)return Hf;uv=1;var s=TE();return Hf=function(t,n,o){switch(o=o||{},n=n||1,t){case"point":case"points":case void 0:return s.point(n,o.bbox);case"polygon":case"polygons":return s.polygon(n,o.num_vertices,o.max_radial_length,o.bbox);default:throw new Error("Unknown type given: valid options are points and polygons")}},Hf}var Gf,lv;function PE(){if(lv)return Gf;lv=1;var s=sn().point;Gf=function(n){var o,u={type:"FeatureCollection",features:[]};return n.type==="Feature"?o=n.geometry:o=n,o.coordinates.forEach(function(d){o.coordinates.forEach(function(h){for(var f=0;f<d.length-1;f++)for(var v=0;v<h.length-1;v++)if(!(d===h&&(Math.abs(f-v)===1||Math.abs(f-v)===d.length-2))){var p=t(d[f][0],d[f][1],d[f+1][0],d[f+1][1],h[v][0],h[v][1],h[v+1][0],h[v+1][1]);p&&u.features.push(s([p[0],p[1]]))}})}),u};function t(n,o,u,d,h,f,v,p){var y,x,_,S,N,w={x:null,y:null,onLine1:!1,onLine2:!1};return y=(p-f)*(u-n)-(v-h)*(d-o),y===0?w.x!==null&&w.y!==null?w:!1:(x=o-f,_=n-h,S=(v-h)*x-(p-f)*_,N=(u-n)*x-(d-o)*_,x=S/y,_=N/y,w.x=n+x*(u-n),w.y=o+x*(d-o),x>=0&&x<=1&&(w.onLine1=!0),_>=0&&_<=1&&(w.onLine2=!0),w.onLine1&&w.onLine2?[w.x,w.y]:!1)}return Gf}var Wf,cv;function DE(){if(cv)return Wf;cv=1;var s=sn().featureCollection,t=Q6(),n=Ei(),o=uu(),u=nv();function d(f){f.type!=="FeatureCollection"&&(f.type!=="Feature"&&(f={type:"Feature",geometry:f,properties:{}}),f=s([f]));for(var v=t(f),p=!1,y=0;!p&&y<f.features.length;){var x=f.features[y].geometry,_,S,N,w,j,U,M,D=!1;if(x.type==="Point")v.geometry.coordinates[0]===x.coordinates[0]&&v.geometry.coordinates[1]===x.coordinates[1]&&(p=!0);else if(x.type==="MultiPoint"){var T=!1;for(M=0;!T&&M<x.coordinates.length;)v.geometry.coordinates[0]===x.coordinates[M][0]&&v.geometry.coordinates[1]===x.coordinates[M][1]&&(p=!0,T=!0),M++}else if(x.type==="LineString")for(M=0;!D&&M<x.coordinates.length-1;)_=v.geometry.coordinates[0],S=v.geometry.coordinates[1],N=x.coordinates[M][0],w=x.coordinates[M][1],j=x.coordinates[M+1][0],U=x.coordinates[M+1][1],h(_,S,N,w,j,U)&&(D=!0,p=!0),M++;else if(x.type==="MultiLineString")for(var O=0;O<x.coordinates.length;){D=!1,M=0;for(var q=x.coordinates[O];!D&&M<q.length-1;)_=v.geometry.coordinates[0],S=v.geometry.coordinates[1],N=q[M][0],w=q[M][1],j=q[M+1][0],U=q[M+1][1],h(_,S,N,w,j,U)&&(D=!0,p=!0),M++;O++}else if(x.type==="Polygon"||x.type==="MultiPolygon"){var k={type:"Feature",geometry:x,properties:{}};o(v,k)&&(p=!0)}y++}if(p)return v;var H=s([]);for(y=0;y<f.features.length;y++)H.features=H.features.concat(u(f.features[y]).features);var V,Y=1/0;for(y=0;y<H.features.length;y++){var R=n(v,H.features[y],"miles");R<Y&&(Y=R,V=H.features[y])}return V}function h(f,v,p,y,x,_){var S=Math.sqrt((x-p)*(x-p)+(_-y)*(_-y)),N=Math.sqrt((f-p)*(f-p)+(v-y)*(v-y)),w=Math.sqrt((x-f)*(x-f)+(_-v)*(_-v));if(S===N+w)return!0}return Wf=d,Wf}var Kc={},_l={},dv;function ME(){return dv||(dv=1,_l.RADIUS=6378137,_l.FLATTENING=.0033528106647474805,_l.POLAR_RADIUS=63567523142e-4),_l}var hv;function kE(){if(hv)return Kc;hv=1;var s=ME();Kc.geometry=t,Kc.ring=o;function t(d){var h=0,f;switch(d.type){case"Polygon":return n(d.coordinates);case"MultiPolygon":for(f=0;f<d.coordinates.length;f++)h+=n(d.coordinates[f]);return h;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0;case"GeometryCollection":for(f=0;f<d.geometries.length;f++)h+=t(d.geometries[f]);return h}}function n(d){var h=0;if(d&&d.length>0){h+=Math.abs(o(d[0]));for(var f=1;f<d.length;f++)h-=Math.abs(o(d[f]))}return h}function o(d){var h,f,v,p,y,x,_=0,S=d.length;if(S>2){for(i=0;i<S;i++)i===S-2?(p=S-2,y=S-1,x=0):i===S-1?(p=S-1,y=0,x=1):(p=i,y=i+1,x=i+2),h=d[p],f=d[y],v=d[x],_+=(u(v[0])-u(h[0]))*Math.sin(u(f[1]));_=_*s.RADIUS*s.RADIUS/2}return _}function u(d){return d*Math.PI/180}return Kc}var Zf,fv;function RE(){if(fv)return Zf;fv=1;var s=kE().geometry;function t(n){if(n.type==="FeatureCollection"){for(var o=0,u=0;o<n.features.length;o++)n.features[o].geometry&&(u+=s(n.features[o].geometry));return u}else return n.type==="Feature"?s(n.geometry):s(n)}return Zf=t,Zf}var Xf,gv;function jE(){if(gv)return Xf;gv=1;var s=Ei(),t=sn().point,n=Zc(),o=Xc();return Xf=function(u,d,h){var f;if(u.type==="Feature")f=u.geometry.coordinates;else if(u.type==="LineString")f=u.coordinates;else throw new Error("input must be a LineString Feature or Geometry");for(var v=0,p=0;p<f.length&&!(d>=v&&p===f.length-1);p++)if(v>=d){var y=d-v;if(y){var x=n(f[p],f[p-1])-180,_=o(f[p],y,x,h);return _}else return t(f[p])}else v+=s(f[p],f[p+1],h);return t(f[f.length-1])},Xf}var Yf,mv;function FE(){if(mv)return Yf;mv=1;var s=Ei(),t=sn().point;Yf=function o(u,d){if(u.type==="FeatureCollection")return u.features.reduce(function(y,x){return y+o(x,d)},0);var h=u.type==="Feature"?u.geometry:u,f,v;if(h.type==="LineString")return n(h.coordinates,d);if(h.type==="Polygon"||h.type==="MultiLineString"){for(f=0,v=0;v<h.coordinates.length;v++)f+=n(h.coordinates[v],d);return f}else if(u.type==="MultiPolygon"){for(f=0,v=0;v<h.coordinates.length;v++)for(var p=0;p<h.coordinates[v].length;p++)f+=n(h.coordinates[v][p],d);return f}else throw new Error("input must be a LineString, MultiLineString, Polygon, or MultiPolygon Feature or Geometry (or a FeatureCollection containing only those types)")};function n(o,u){for(var d=0,h=t(o[0]),f=t(o[0]),v,p=1;p<o.length;p++)f.geometry.coordinates=o[p],d+=s(h,f,u),v=h,h=f,f=v;return d}return Yf}var Kf,pv;function vv(){if(pv)return Kf;pv=1;var s=Ei(),t=sn().point,n=Zc(),o=Xc();Kf=function(h,f){var v;if(h.type==="Feature")v=h.geometry.coordinates;else if(h.type==="LineString")v=h.coordinates;else throw new Error("input must be a LineString Feature or Geometry");return u(f,v)};function u(h,f){for(var v="miles",p=t([1/0,1/0],{dist:1/0}),y=0;y<f.length-1;y++){var x=t(f[y]),_=t(f[y+1]);x.properties.dist=s(h,x,v),_.properties.dist=s(h,_,v);var S=Math.max(x.properties.dist,_.properties.dist),N=n(x,_),w=o(h,S,N+90,v),j=o(h,S,N-90,v),U=d(w.geometry.coordinates[0],w.geometry.coordinates[1],j.geometry.coordinates[0],j.geometry.coordinates[1],x.geometry.coordinates[0],x.geometry.coordinates[1],_.geometry.coordinates[0],_.geometry.coordinates[1]),M;U&&(M=t(U),M.properties.dist=s(h,M,v)),x.properties.dist<p.properties.dist&&(p=x,p.properties.index=y),_.properties.dist<p.properties.dist&&(p=_,p.properties.index=y),M&&M.properties.dist<p.properties.dist&&(p=M,p.properties.index=y)}return p}function d(h,f,v,p,y,x,_,S){var N,w,j,U,M,D={x:null,y:null,onLine1:!1,onLine2:!1};return N=(S-x)*(v-h)-(_-y)*(p-f),N===0?D.x!==null&&D.y!==null?D:!1:(w=f-x,j=h-y,U=(_-y)*w-(S-x)*j,M=(v-h)*w-(p-f)*j,w=U/N,j=M/N,D.x=h+w*(v-h),D.y=f+w*(p-f),w>0&&w<1&&(D.onLine1=!0),j>0&&j<1&&(D.onLine2=!0),D.onLine1&&D.onLine2?[D.x,D.y]:!1)}return Kf}var Jf,yv;function BE(){if(yv)return Jf;yv=1;var s=sn().lineString,t=vv();return Jf=function(o,u,d){var h;if(d.type==="Feature")h=d.geometry.coordinates;else if(d.type==="LineString")h=d.coordinates;else throw new Error("input must be a LineString Feature or Geometry");var f=t(d,o),v=t(d,u),p;f.properties.index<=v.properties.index?p=[f,v]:p=[v,f];for(var y=s([p[0].geometry.coordinates],{}),x=p[0].properties.index+1;x<p[1].properties.index+1;x++)y.geometry.coordinates.push(h[x]);return y.geometry.coordinates.push(p[1].geometry.coordinates),y},Jf}var Qf,bv;function qE(){if(bv)return Qf;bv=1;var s=sn().point,t=sn().featureCollection,n=Ei();return Qf=function(u,d,h){for(var f=t([]),v=d/n(s([u[0],u[1]]),s([u[2],u[1]]),h),p=v*(u[2]-u[0]),y=d/n(s([u[0],u[1]]),s([u[0],u[3]]),h),x=y*(u[3]-u[1]),_=u[0];_<=u[2];){for(var S=u[1];S<=u[3];)f.features.push(s([_,S])),S+=x;_+=p}return f},Qf}var $f,xv;function zE(){if(xv)return $f;xv=1;var s=sn().featureCollection,t=sn().point,n=sn().polygon,o=Ei();return $f=function(d,h,f){for(var v=s([]),p=h/o(t([d[0],d[1]]),t([d[2],d[1]]),f),y=p*(d[2]-d[0]),x=h/o(t([d[0],d[1]]),t([d[0],d[3]]),f),_=x*(d[3]-d[1]),S=d[0];S<=d[2];){for(var N=d[1];N<=d[3];){var w=n([[[S,N],[S,N+_],[S+y,N+_],[S+y,N],[S,N]]]);v.features.push(w),N+=_}S+=y}return v},$f}var e0,Cv;function UE(){if(Cv)return e0;Cv=1;var s=sn().featureCollection,t=sn().polygon,n=Ei();return e0=function(o,u,d){for(var h=s([]),f=u/n([o[0],o[1]],[o[2],o[1]],d),v=f*(o[2]-o[0]),p=u/n([o[0],o[1]],[o[0],o[3]],d),y=p*(o[3]-o[1]),x=0,_=o[0];_<=o[2];){for(var S=0,N=o[1];N<=o[3];)x%2===0&&S%2===0?h.features.push(t([[[_,N],[_,N+y],[_+v,N],[_,N]]]),t([[[_,N+y],[_+v,N+y],[_+v,N],[_,N+y]]])):x%2===0&&S%2===1?h.features.push(t([[[_,N],[_+v,N+y],[_+v,N],[_,N]]]),t([[[_,N],[_,N+y],[_+v,N+y],[_,N]]])):S%2===0&&x%2===1?h.features.push(t([[[_,N],[_,N+y],[_+v,N+y],[_,N]]]),t([[[_,N],[_+v,N+y],[_+v,N],[_,N]]])):S%2===1&&x%2===1&&h.features.push(t([[[_,N],[_,N+y],[_+v,N],[_,N]]]),t([[[_,N+y],[_+v,N+y],[_+v,N],[_,N+y]]])),N+=y,S++;x++,_+=v}return h},e0}var t0,_v;function VE(){if(_v)return t0;_v=1;for(var s=sn().point,t=sn().polygon,n=Ei(),o=sn().featureCollection,u=[],d=[],h=0;h<6;h++){var f=2*Math.PI/6*h;u.push(Math.cos(f)),d.push(Math.sin(f))}t0=function(x,_,S,N){var w=_/n(s([x[0],x[1]]),s([x[2],x[1]]),S),j=w*(x[2]-x[0]),U=_/n(s([x[0],x[1]]),s([x[0],x[3]]),S),M=U*(x[3]-x[1]),D=j/2,T=D*2,O=Math.sqrt(3)/2*M,q=x[2]-x[0],k=x[3]-x[1],H=3/4*T,V=O,Y=q/(T-D/2),R=Math.ceil(Y);Math.round(Y)===R&&R++;var A=(R*H-D/2-q)/2-D/2,X=Math.ceil(k/O),ee=(k-X*O)/2,ue=X*O-k>O/2;ue&&(ee-=O/4);for(var G=o([]),K=0;K<R;K++)for(var B=0;B<=X;B++){var te=K%2===1;if(!(B===0&&te)&&!(B===0&&ue)){var Q=K*H+x[0]-A,$=B*V+x[1]+ee;te&&($-=O/2),N?G.features.push.apply(G.features,p([Q,$],j/2,M/2)):G.features.push(v([Q,$],j/2,M/2))}}return G};function v(y,x,_){for(var S=[],N=0;N<6;N++){var w=y[0]+x*u[N],j=y[1]+_*d[N];S.push([w,j])}return S.push(S[0]),t([S])}function p(y,x,_){for(var S=[],N=0;N<6;N++){var w=[];w.push(y),w.push([y[0]+x*u[N],y[1]+_*d[N]]),w.push([y[0]+x*u[(N+1)%6],y[1]+_*d[(N+1)%6]]),w.push(y),S.push(t([w]))}return S}return t0}var Ev;function HE(){if(Ev)return Bi.exports;Ev=1,Bi.exports={isolines:W_(),convex:aE(),within:uE(),concave:cE(),difference:dE(),collect:hE(),flip:fE(),simplify:mE(),bezier:vE(),tag:yE(),sample:bE(),envelope:xE(),square:u6(),midpoint:CE(),buffer:EE(),center:Q6(),centroid:wE(),combine:SE(),distance:Ei(),explode:nv(),bbox:Gc(),tesselate:LE(),bboxPolygon:H6(),inside:uu(),intersect:NE(),nearest:IE(),planepoint:s6(),random:AE(),tin:Gh(),union:P6(),bearing:Zc(),destination:Xc(),kinks:PE(),pointOnSurface:DE(),area:RE(),along:jE(),lineDistance:FE(),lineSlice:BE(),pointOnLine:vv(),pointGrid:qE(),squareGrid:zE(),triangleGrid:UE(),hexGrid:VE()};var s=sn();return Bi.exports.point=s.point,Bi.exports.polygon=s.polygon,Bi.exports.lineString=s.lineString,Bi.exports.multiPoint=s.multiPoint,Bi.exports.multiPolygon=s.multiPolygon,Bi.exports.multiLineString=s.multiLineString,Bi.exports.feature=s.feature,Bi.exports.featureCollection=s.featureCollection,Bi.exports.geometryCollection=s.geometryCollection,Bi.exports}var n0=HE();function r0(s){const t=s.trim();if(!t||/[\x00-\x1f\x7f]/.test(t))return!1;try{const n=new URL(t,window.location.origin);return["http:","https:","mailto:"].includes(n.protocol)}catch{return!1}}function du(s){return/^#[0-9A-Fa-f]{3,8}$/.test(s)||/^(rgb|hsl)a?\([^)]+\)$/.test(s)||/^[a-zA-Z]+$/.test(s)?s:"#000000"}const GE=s=>!!s&&typeof s.lat=="number"&&typeof s.lng=="number",El=s=>Array.isArray(s)&&s.length>0&&GE(s[0]),wv=s=>Array.isArray(s)&&s.length>0&&El(s[0]),WE=s=>Array.isArray(s)&&s.length>0&&Array.isArray(s[0])&&El(s[0][0]),ZE=s=>!Array.isArray(s)||s.length===0?!1:s.every(t=>El(t)||wv(t)),i0=s=>!s||!Array.isArray(s)||s.length===0?[]:El(s)?[[s]]:WE(s)?s:ZE(s)?s.map(t=>El(t)?[t]:t):wv(s)?[s]:[];function XE(s){const t=[[-180,-90],[180,-90],[180,90],[-180,90],[-180,-90]],n=n0.polygon([t]);let o=[t];return s.forEach(u=>{var h,f,v;const d=u.map(p=>p.map(({lat:y,lng:x})=>[x,y])).filter(p=>p.length>=4);if(d.length!==0)try{const p=n0.polygon(d),y=n0.difference(n,p)||n;(h=y==null?void 0:y.geometry)!=null&&h.coordinates&&((f=y==null?void 0:y.geometry)==null?void 0:f.coordinates.length)>1&&o.push((v=y==null?void 0:y.geometry)==null?void 0:v.coordinates[1])}catch(p){console.warn("Failed to create cutout for polygon, skipping:",p)}}),o}function YE(s,t){if(!t)return!1;if(!s)return!0;const n=i0(s);for(let o of n){if(o.length===0)continue;const u=o[0];if(!Sv(u,t))continue;if(o.length===1||!o.slice(1).some(h=>Sv(h,t)))return!0}return!1}function Sv(s,t){let n=t.lat,o=t.lng,u=!1;for(let d=0,h=s.length-1;d<s.length;h=d++){let f=s[d].lat,v=s[d].lng,p=s[h].lat,y=s[h].lng;v>o!=y>o&&n<(p-f)*(o-v)/(y-v)+f&&(u=!u)}return u}function KE({area:s=[],areas:t,areaPolygonStyle:n={color:"#d00",fillColor:"#000",fillOpacity:.15},interactionType:o="default",areaRenderMode:u="cutout",showHiddenPolygonsForAdmin:d=!1,...h}){const f=new Qa({projectId:h.projectId,api:h.api,config:{api:h.api}}),v=t==null?void 0:t.map(O=>O.id),{data:p}=f.useAreas(v&&v.length>0?{ids:v}:void 0),[y,x]=E.useState([]),[_,S]=E.useState(!1);E.useEffect(()=>{if(u!=="cutout"){x([]),S(!1);return}const O=i0(s);if(O.length===0)return;const q=O.map(k=>k.map(H=>H.map(V=>new An.LatLng(V.lat,V.lng))));try{const k=XE(q);x(k),S(!1)}catch(k){console.warn("Failed to create cutout polygon, falling back to polygon render.",k),x(null),S(!0)}},[s,u]);const N=[],w=Array.isArray(p)?p:[],j=new Map((t??[]).map(O=>[O.id,O]));w.forEach(O=>{const q=j.get(O.id);N.push({title:O.name,polygon:O.polygon,hidePolygon:O.hidePolygon,url:q==null?void 0:q.url,color:q==null?void 0:q.color,openInNewTab:q==null?void 0:q.openInNewTab,buttonText:q==null?void 0:q.buttonText})});const U={...n,color:"#ff0000",fillColor:"#ff7070",fillOpacity:.3,dashArray:"6 6"},M=N.filter(O=>O.hidePolygon!==!0),D=N.filter(O=>O.hidePolygon===!0),T=d?D:[];return E.createElement(E.Fragment,null,N.length>0?M.map((O,q)=>E.createElement(Vc,{key:q,...h,pathOptions:O.color?{...n,color:du(O.color),fillColor:du(O.color),fillOpacity:.3,weight:3}:n,positions:O.polygon,eventHandlers:o!=="direct"?{mouseover:k=>{k.target.setStyle({fillOpacity:.15})},mouseout:k=>{k.target.setStyle(O.color?{...n,color:du(O.color),fillColor:du(O.color),fillOpacity:.3,weight:3}:n)}}:{click:()=>{const k=O.url&&r0(O.url)?O.url:"";k&&window.open(k,O.openInNewTab?"_blank":"_self")}}},O.title&&o!=="direct"?E.createElement(Y3,{className:"leaflet-popup"},O.title&&E.createElement("h3",{className:"utrecht-heading-3"},O.title),O.url&&r0(O.url)&&E.createElement("a",{className:"pop-up-link",href:O.url,target:O.openInNewTab?"_blank":"_self",rel:O.openInNewTab?"noopener noreferrer":void 0},O.buttonText||"Lees verder")):E.createElement(U_,{permanent:!0,direction:"center"},E.createElement("span",{onClick:()=>{const k=O.url&&r0(O.url)?O.url:"";k&&window.open(k,O.openInNewTab?"_blank":"_self")}},O.title)))):u==="polygons"||u==="cutout"&&_?i0(s).map((O,q)=>E.createElement(Vc,{key:`area-${q}`,...h,pathOptions:n,positions:O})):y&&E.createElement(Vc,{...h,positions:y.map(O=>O==null?void 0:O.map(([q,k])=>[k,q])),pathOptions:n}),T.map((O,q)=>E.createElement(Vc,{key:`hidden-${q}`,...h,pathOptions:U,positions:O.polygon})))}function Jc(s){return Array.isArray(s)?s.map(t=>Ov(t)):Ov(s)}function Ov(s){var o,u,d,h,f,v,p,y,x,_,S,N;let t=0,n=0;return s._latlng?(t=s._latlng.lat||t,n=s._latlng.lng||n):s.lat&&s.lng?(t=s.lat,n=s.lng):s.location?(t=((o=s.location)==null?void 0:o.lat)||((d=(u=s.location)==null?void 0:u.coordinates)==null?void 0:d.at(0))||t,n=((h=s.location)==null?void 0:h.lng)||((v=(f=s.location)==null?void 0:f.coordinates)==null?void 0:v.at(1))||n):s.position&&(t=((p=s.position)==null?void 0:p.lat)||((x=(y=s.position)==null?void 0:y.coordinates)==null?void 0:x.at(0))||t,n=((_=s.position)==null?void 0:_.lng)||((N=(S=s.position)==null?void 0:S.coordinates)==null?void 0:N.at(1))||n),new An.LatLng(t,n)}function JE(s){return!!s&&typeof s=="object"&&"lat"in s&&"lng"in s&&typeof s.lat=="number"&&typeof s.lng=="number"}function s0(s){if(!Array.isArray(s)||s.length===0)return[];if(JE(s[0])){const t=s.map(Jc).filter(n=>!Array.isArray(n)&&(n==null?void 0:n.lat)!=null&&(n==null?void 0:n.lng)!=null);return t.length?[t]:[]}return s.flatMap(t=>s0(t))}function Lv(s){return!s||s.length===0?"":s.filter(t=>t.lat&&t.lng).map(t=>t.markerId||`${t.lat},${t.lng}`).sort().join("|")}function QE({autoZoomAndCenter:s,area:t,areaId:n,markers:o,center:u,zoomAfterInit:d=!0,customPolygonIds:h}){const f=ou(),v=E.useRef(!1),p=E.useRef(""),y=Array.isArray(h)&&h.length>0,x=new Qa({}),{data:_}=x.useAreas(y?{ids:h}:void 0),S=y&&(!Array.isArray(_)||_.length===0),N=u!=null&&u.lat&&(u!=null&&u.lng)?{lat:u.lat,lng:u.lng}:{lat:52.37104644463586,lng:4.900402911007405};E.useEffect(()=>{if(!s)return;const D=f.getContainer();if(!D.clientHeight||!D.clientWidth||S&&s==="area")return;if(!v.current){w(s,0)&&(v.current=!0,p.current=Lv(o));return}if(!d||s!=="markers")return;const O=Lv(o);O!==p.current&&(p.current=O,w("markers",0))},[s,t,n,o,_]);function w(D,T){return D==="area"?j(T):D==="markers"?U(T):!1}function j(D=0){if(y&&Array.isArray(_)&&_.length>0){const O=_.flatMap(q=>s0(q.polygon));if(O.length>0){let q=An.latLngBounds([]);if(O.forEach(k=>{q.extend(An.latLngBounds(k))}),q.isValid())return f.fitBounds(q),!0}}if(t&&Array.isArray(t)&&t.length>0){const O=Array.isArray(t[0])?t:[t];return M(O)}return!(n!=null&&n!==!1&&n!==""&&n!==0&&n!=="0")&&!y&&D<2?U(D+1):!1}function U(D){const T=(o==null?void 0:o.filter(q=>!!q.lat&&!!q.lng))||[];if(T.length===0)return D<2?j(D+1):!1;const O=An.latLngBounds(T);if(O.getNorthEast().equals(O.getSouthWest())){const q=f.getMaxZoom()||20;return f.setView(O.getCenter(),Math.min(Math.max(f.getZoom(),15),q)),!0}return f.fitBounds(O,{padding:[20,20]}),!0}function M(D){const T=s0(D);if(T.length===0)return!1;if(T.length===1&&T[0].length===1&&T[0][0].lat&&T[0][0].lng)return f.panTo(new An.LatLng(T[0][0].lat,T[0][0].lng)),!0;let O=An.latLngBounds([]);return T.forEach(q=>{const k=An.latLngBounds(q.map(H=>new An.LatLng(H.lat||N.lat,H.lng||N.lng)));O.extend(k)}),f.fitBounds(O),!0}return null}function $E(){const s=ou();return E.useEffect(()=>{const t=s.getContainer(),n=new ResizeObserver(()=>{if(t.clientHeight&&t.clientWidth)try{s.invalidateSize(),s.fire("viewreset")}catch(o){console.warn("invalidateSize failed:",o)}});return n.observe(t),()=>n.disconnect()},[s]),null}function ew(s){window.oscMap||(window.oscMap={}),window.oscMap[s]||(window.oscMap[s]={map:null});let t=window.oscMap[s];function n(o){t.map||(window.oscMap[s].map=o)}return[t.map,n]}function tw({mapId:s}){const t=ou();let[,n]=ew(s);return n(t),null}function Nv(s,t,n){return s&&(s.className||(s.className=""),s.className.match(new RegExp(" ?"+t+"(?: |$)"))||(s.className=n&&n.before?t+" "+s.className:s.className+" "+t)),s}function nw(s,t){return s&&s.className&&(s.className=s.className.replace(new RegExp(" ?"+t+"(?: |$)"),"")),s}function Iv({icon:s=void 0,iconCreateFunction:t=void 0,defaultIcon:n=void 0}){let o;if(!s){if(t&&typeof t=="string"){const u=globalThis[t];typeof u=="function"?t=u:(t=void 0,console.warn(`Function ${t} is not defined on globalThis.`))}t&&typeof t=="function"&&(s=t())}if(s||(s=n),s){let u=s.options||s;try{u=JSON.parse(u)}catch{}!u.iconSize&&u.width&&u.height&&(u.iconSize=[u.width,u.height]),!u.iconAnchor&&u.anchor&&(u.iconAnchor=u.anchor),u.iconUrl?o=new An.Icon(u):u.html&&(o=An.divIcon(u))}if(!o){let u=(s==null?void 0:s.title)||"Locatie pin",d=du((s==null?void 0:s.color)||"#555588"),h=`<?xml version="1.0" encoding="UTF-8"?><svg width="29" height="40" viewBox="-1 -1 41 52" fill="none" xmlns="http://www.w3.org/2000/svg"> <title>${u}</title><path d="M19.1038 0C29.6577 0 38.2075 8.46671 38.2075 18.9181C38.2075 33.1786 21.7544 47.7273 21.0432 48.3035L19.1038 50L17.1643 48.3035C16.4532 47.7273 0 33.1786 0 18.9181C0 8.46831 8.54983 0 19.1038 0ZM32.3245 18.9181C32.3083 11.6837 26.4091 5.84187 19.1038 5.82586C11.7984 5.84187 5.89922 11.6837 5.88306 18.9181C5.88306 27.3367 14.1581 37.2439 19.0876 42.1095C23.1767 38.1242 32.3245 27.993 32.3245 18.9181Z" fill="${d}" stroke="rgba(0,0,0,0.3)" stroke-width="1"></path><path d="M19.104 5.82568C26.4093 5.84169 32.3086 11.6836 32.3247 18.9179C32.3247 27.9928 23.1769 38.124 19.0879 42.1093C14.1584 37.2437 5.8833 27.3366 5.8833 18.9179C5.89946 11.6836 11.7987 5.84169 19.104 5.82568ZM25.5689 18.9179C25.5689 15.3807 22.6759 12.5158 19.104 12.5158C15.5322 12.5158 12.6391 15.3807 12.6391 18.9179C12.6391 22.455 15.5322 25.3199 19.104 25.3199C22.6759 25.3199 25.5689 22.455 25.5689 18.9179Z" fill="white"></path><path d="M19.1038 25.3202C22.6743 25.3202 25.5687 22.4539 25.5687 18.9182C25.5687 15.3824 22.6743 12.5161 19.1038 12.5161C15.5333 12.5161 12.6389 15.3824 12.6389 18.9182C12.6389 22.4539 15.5333 25.3202 19.1038 25.3202Z" fill="${d}"></path></svg>`;o=An.divIcon({html:h,className:s==null?void 0:s.className,iconSize:[34,45],iconAnchor:[17,45],popupAnchor:[0,-45]})}return o}function Tv({lat:s=void 0,lng:t=void 0,isFaded:n=!1,isVisible:o=!0,icon:u=void 0,iconCreateFunction:d=void 0,defaultIcon:h=void 0,href:f=void 0,onMouseDown:v=void 0,onMouseUp:p=void 0,onDragStart:y=void 0,onDragEnd:x=void 0,..._}){const S=ou();if(u){try{u=JSON.parse(u)}catch{}Nv(u,"osc-map-marker",{before:!0}),n?Nv(u,"osc-map-marker-faded"):nw(u,"osc-map-marker-faded")}u=Iv({icon:u,iconCreateFunction:d,defaultIcon:h});let N={};for(let j of["click","mouseDown","mouseUp","dragStart","dragEnd"]){let U="on"+j.charAt(0).toUpperCase()+j.slice(1);j=j.toLowerCase();let M=_[U]||[];Array.isArray(M)||(M=[M]),U==="onClick"&&f&&M.push(()=>{document.location.href=f}),M.length&&(N[j]=D=>{M.forEach(T=>{let O=new CustomEvent("osc-map-marker-click",{detail:D});if(window.dispatchEvent(O),typeof T=="string"){const q=globalThis[T];typeof q=="function"?q(D,S):console.warn(`Function "${T}" is not defined on globalThis.`)}else T(D,S)})})}let w=N.dragstart||N.dragend;return o&&typeof s=="number"&&typeof t=="number"?E.createElement(X3,{..._,draggable:!!w,eventHandlers:N,icon:u,position:[s,t]}):null}var Ss={};const rw=xc(R_);var wl={exports:{}},iw=wl.exports,Av;function sw(){return Av||(Av=1,(function(s,t){(function(n,o){o(t)})(iw,function(n){var o=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnEveryZoom:!1,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyShapePositions:null,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(d){L.Util.setOptions(this,d),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var h=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,h?this._withAnimation:this._noAnimation),this._markerCluster=h?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(d){if(d instanceof L.LayerGroup)return this.addLayers([d]);if(!d.getLatLng)return this._nonPointGroup.addLayer(d),this.fire("layeradd",{layer:d}),this;if(!this._map)return this._needsClustering.push(d),this.fire("layeradd",{layer:d}),this;if(this.hasLayer(d))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(d,this._maxZoom),this.fire("layeradd",{layer:d}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var h=d,f=this._zoom;if(d.__parent)for(;h.__parent._zoom>=f;)h=h.__parent;return this._currentShownBounds.contains(h.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(d,h):this._animationAddLayerNonAnimated(d,h)),this},removeLayer:function(d){return d instanceof L.LayerGroup?this.removeLayers([d]):d.getLatLng?this._map?d.__parent?(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(d)),this._removeLayer(d,!0),this.fire("layerremove",{layer:d}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),d.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(d)&&(this._featureGroup.removeLayer(d),d.clusterShow&&d.clusterShow()),this):this:(!this._arraySplice(this._needsClustering,d)&&this.hasLayer(d)&&this._needsRemoving.push({layer:d,latlng:d._latlng}),this.fire("layerremove",{layer:d}),this):(this._nonPointGroup.removeLayer(d),this.fire("layerremove",{layer:d}),this)},addLayers:function(d,h){if(!L.Util.isArray(d))return this.addLayer(d);var f=this._featureGroup,v=this._nonPointGroup,p=this.options.chunkedLoading,y=this.options.chunkInterval,x=this.options.chunkProgress,_=d.length,S=0,N=!0,w;if(this._map){var j=new Date().getTime(),U=L.bind(function(){var D=new Date().getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();S<_;S++){if(p&&S%200===0){var T=new Date().getTime()-D;if(T>y)break}if(w=d[S],w instanceof L.LayerGroup){N&&(d=d.slice(),N=!1),this._extractNonGroupLayers(w,d),_=d.length;continue}if(!w.getLatLng){v.addLayer(w),h||this.fire("layeradd",{layer:w});continue}if(!this.hasLayer(w)&&(this._addLayer(w,this._maxZoom),h||this.fire("layeradd",{layer:w}),w.__parent&&w.__parent.getChildCount()===2)){var O=w.__parent.getAllChildMarkers(),q=O[0]===w?O[1]:O[0];f.removeLayer(q)}}x&&x(S,_,new Date().getTime()-j),S===_?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(U,this.options.chunkDelay)},this);U()}else for(var M=this._needsClustering;S<_;S++){if(w=d[S],w instanceof L.LayerGroup){N&&(d=d.slice(),N=!1),this._extractNonGroupLayers(w,d),_=d.length;continue}if(!w.getLatLng){v.addLayer(w);continue}this.hasLayer(w)||M.push(w)}return this},removeLayers:function(d){var h,f,v=d.length,p=this._featureGroup,y=this._nonPointGroup,x=!0;if(!this._map){for(h=0;h<v;h++){if(f=d[h],f instanceof L.LayerGroup){x&&(d=d.slice(),x=!1),this._extractNonGroupLayers(f,d),v=d.length;continue}this._arraySplice(this._needsClustering,f),y.removeLayer(f),this.hasLayer(f)&&this._needsRemoving.push({layer:f,latlng:f._latlng}),this.fire("layerremove",{layer:f})}return this}if(this._unspiderfy){this._unspiderfy();var _=d.slice(),S=v;for(h=0;h<S;h++){if(f=_[h],f instanceof L.LayerGroup){this._extractNonGroupLayers(f,_),S=_.length;continue}this._unspiderfyLayer(f)}}for(h=0;h<v;h++){if(f=d[h],f instanceof L.LayerGroup){x&&(d=d.slice(),x=!1),this._extractNonGroupLayers(f,d),v=d.length;continue}if(!f.__parent){y.removeLayer(f),this.fire("layerremove",{layer:f});continue}this._removeLayer(f,!0,!0),this.fire("layerremove",{layer:f}),p.hasLayer(f)&&(p.removeLayer(f),f.clusterShow&&f.clusterShow())}return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},clearLayers:function(){return this._map||(this._needsClustering=[],this._needsRemoving=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer(function(d){d.off(this._childMarkerEventHandlers,this),delete d.__parent},this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var d=new L.LatLngBounds;this._topClusterLevel&&d.extend(this._topClusterLevel._bounds);for(var h=this._needsClustering.length-1;h>=0;h--)d.extend(this._needsClustering[h].getLatLng());return d.extend(this._nonPointGroup.getBounds()),d},eachLayer:function(d,h){var f=this._needsClustering.slice(),v=this._needsRemoving,p,y,x;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(f),y=f.length-1;y>=0;y--){for(p=!0,x=v.length-1;x>=0;x--)if(v[x].layer===f[y]){p=!1;break}p&&d.call(h,f[y])}this._nonPointGroup.eachLayer(d,h)},getLayers:function(){var d=[];return this.eachLayer(function(h){d.push(h)}),d},getLayer:function(d){var h=null;return d=parseInt(d,10),this.eachLayer(function(f){L.stamp(f)===d&&(h=f)}),h},hasLayer:function(d){if(!d)return!1;var h,f=this._needsClustering;for(h=f.length-1;h>=0;h--)if(f[h]===d)return!0;for(f=this._needsRemoving,h=f.length-1;h>=0;h--)if(f[h].layer===d)return!1;return!!(d.__parent&&d.__parent._group===this)||this._nonPointGroup.hasLayer(d)},zoomToShowLayer:function(d,h){var f=this._map;typeof h!="function"&&(h=function(){});var v=function(){(f.hasLayer(d)||f.hasLayer(d.__parent))&&!this._inZoomAnimation&&(this._map.off("moveend",v,this),this.off("animationend",v,this),f.hasLayer(d)?h():d.__parent._icon&&(this.once("spiderfied",h,this),d.__parent.spiderfy()))};d._icon&&this._map.getBounds().contains(d.getLatLng())?h():d.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",v,this),this._map.panTo(d.getLatLng())):(this._map.on("moveend",v,this),this.on("animationend",v,this),d.__parent.zoomToBounds())},onAdd:function(d){this._map=d;var h,f,v;if(!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";for(this._featureGroup.addTo(d),this._nonPointGroup.addTo(d),this._gridClusters||this._generateInitialClusters(),this._maxLat=d.options.crs.projection.MAX_LATITUDE,h=0,f=this._needsRemoving.length;h<f;h++)v=this._needsRemoving[h],v.newlatlng=v.layer._latlng,v.layer._latlng=v.latlng;for(h=0,f=this._needsRemoving.length;h<f;h++)v=this._needsRemoving[h],this._removeLayer(v.layer,!0),v.layer._latlng=v.newlatlng;this._needsRemoving=[],this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds(),this._map.on("zoomend",this._zoomEnd,this),this._map.on("moveend",this._moveEnd,this),this._spiderfierOnAdd&&this._spiderfierOnAdd(),this._bindEvents(),f=this._needsClustering,this._needsClustering=[],this.addLayers(f,!0)},onRemove:function(d){d.off("zoomend",this._zoomEnd,this),d.off("moveend",this._moveEnd,this),this._unbindEvents(),this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim",""),this._spiderfierOnRemove&&this._spiderfierOnRemove(),delete this._maxLat,this._hideCoverage(),this._featureGroup.remove(),this._nonPointGroup.remove(),this._featureGroup.clearLayers(),this._map=null},getVisibleParent:function(d){for(var h=d;h&&!h._icon;)h=h.__parent;return h||null},_arraySplice:function(d,h){for(var f=d.length-1;f>=0;f--)if(d[f]===h)return d.splice(f,1),!0},_removeFromGridUnclustered:function(d,h){for(var f=this._map,v=this._gridUnclustered,p=Math.floor(this._map.getMinZoom());h>=p&&v[h].removeObject(d,f.project(d.getLatLng(),h));h--);},_childMarkerDragStart:function(d){d.target.__dragStart=d.target._latlng},_childMarkerMoved:function(d){if(!this._ignoreMove&&!d.target.__dragStart){var h=d.target._popup&&d.target._popup.isOpen();this._moveChild(d.target,d.oldLatLng,d.latlng),h&&d.target.openPopup()}},_moveChild:function(d,h,f){d._latlng=h,this.removeLayer(d),d._latlng=f,this.addLayer(d)},_childMarkerDragEnd:function(d){var h=d.target.__dragStart;delete d.target.__dragStart,h&&this._moveChild(d.target,h,d.target._latlng)},_removeLayer:function(d,h,f){var v=this._gridClusters,p=this._gridUnclustered,y=this._featureGroup,x=this._map,_=Math.floor(this._map.getMinZoom());h&&this._removeFromGridUnclustered(d,this._maxZoom);var S=d.__parent,N=S._markers,w;for(this._arraySplice(N,d);S&&(S._childCount--,S._boundsNeedUpdate=!0,!(S._zoom<_));)h&&S._childCount<=1?(w=S._markers[0]===d?S._markers[1]:S._markers[0],v[S._zoom].removeObject(S,x.project(S._cLatLng,S._zoom)),p[S._zoom].addObject(w,x.project(w.getLatLng(),S._zoom)),this._arraySplice(S.__parent._childClusters,S),S.__parent._markers.push(w),w.__parent=S.__parent,S._icon&&(y.removeLayer(S),f||y.addLayer(w))):S._iconNeedsUpdate=!0,S=S.__parent;delete d.__parent},_isOrIsParent:function(d,h){for(;h;){if(d===h)return!0;h=h.parentNode}return!1},fire:function(d,h,f){if(h&&h.layer instanceof L.MarkerCluster){if(h.originalEvent&&this._isOrIsParent(h.layer._icon,h.originalEvent.relatedTarget))return;d="cluster"+d}L.FeatureGroup.prototype.fire.call(this,d,h,f)},listens:function(d,h){return L.FeatureGroup.prototype.listens.call(this,d,h)||L.FeatureGroup.prototype.listens.call(this,"cluster"+d,h)},_defaultIconCreateFunction:function(d){var h=d.getChildCount(),f=" marker-cluster-";return h<10?f+="small":h<100?f+="medium":f+="large",new L.DivIcon({html:"<div><span>"+h+"</span></div>",className:"marker-cluster"+f,iconSize:new L.Point(40,40)})},_bindEvents:function(){var d=this._map,h=this.options.spiderfyOnMaxZoom,f=this.options.showCoverageOnHover,v=this.options.zoomToBoundsOnClick,p=this.options.spiderfyOnEveryZoom;(h||v||p)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),f&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),d.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(d){var h=d.layer,f=h;if(!(d.type==="clusterkeypress"&&d.originalEvent&&d.originalEvent.keyCode!==13)){for(;f._childClusters.length===1;)f=f._childClusters[0];f._zoom===this._maxZoom&&f._childCount===h._childCount&&this.options.spiderfyOnMaxZoom?h.spiderfy():this.options.zoomToBoundsOnClick&&h.zoomToBounds(),this.options.spiderfyOnEveryZoom&&h.spiderfy(),d.originalEvent&&d.originalEvent.keyCode===13&&this._map._container.focus()}},_showCoverage:function(d){var h=this._map;this._inZoomAnimation||(this._shownPolygon&&h.removeLayer(this._shownPolygon),d.layer.getChildCount()>2&&d.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(d.layer.getConvexHull(),this.options.polygonOptions),h.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var d=this.options.spiderfyOnMaxZoom,h=this.options.showCoverageOnHover,f=this.options.zoomToBoundsOnClick,v=this.options.spiderfyOnEveryZoom,p=this._map;(d||f||v)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),h&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),p.off("zoomend",this._hideCoverage,this))},_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var d=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,d),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),d),this._currentShownBounds=d}},_generateInitialClusters:function(){var d=Math.ceil(this._map.getMaxZoom()),h=Math.floor(this._map.getMinZoom()),f=this.options.maxClusterRadius,v=f;typeof f!="function"&&(v=function(){return f}),this.options.disableClusteringAtZoom!==null&&(d=this.options.disableClusteringAtZoom-1),this._maxZoom=d,this._gridClusters={},this._gridUnclustered={};for(var p=d;p>=h;p--)this._gridClusters[p]=new L.DistanceGrid(v(p)),this._gridUnclustered[p]=new L.DistanceGrid(v(p));this._topClusterLevel=new this._markerCluster(this,h-1)},_addLayer:function(d,h){var f=this._gridClusters,v=this._gridUnclustered,p=Math.floor(this._map.getMinZoom()),y,x;for(this.options.singleMarkerMode&&this._overrideMarkerIcon(d),d.on(this._childMarkerEventHandlers,this);h>=p;h--){y=this._map.project(d.getLatLng(),h);var _=f[h].getNearObject(y);if(_){_._addChild(d),d.__parent=_;return}if(_=v[h].getNearObject(y),_){var S=_.__parent;S&&this._removeLayer(_,!1);var N=new this._markerCluster(this,h,_,d);f[h].addObject(N,this._map.project(N._cLatLng,h)),_.__parent=N,d.__parent=N;var w=N;for(x=h-1;x>S._zoom;x--)w=new this._markerCluster(this,x,w),f[x].addObject(w,this._map.project(_.getLatLng(),x));S._addChild(w),this._removeFromGridUnclustered(_,h);return}v[h].addObject(d,y)}this._topClusterLevel._addChild(d),d.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer(function(d){d instanceof L.MarkerCluster&&d._iconNeedsUpdate&&d._updateIcon()})},_enqueue:function(d){this._queue.push(d),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var d=0;d<this._queue.length;d++)this._queue[d].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var d=Math.round(this._map._zoom);this._processQueue(),this._zoom<d&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,d)):this._zoom>d?(this._animationStart(),this._animationZoomOut(this._zoom,d)):this._moveEnd()},_getExpandedVisibleBounds:function(){if(this.options.removeOutsideVisibleBounds){if(L.Browser.mobile)return this._checkBoundsMaxLat(this._map.getBounds())}else return this._mapBoundsInfinite;return this._checkBoundsMaxLat(this._map.getBounds().pad(1))},_checkBoundsMaxLat:function(d){var h=this._maxLat;return h!==void 0&&(d.getNorth()>=h&&(d._northEast.lat=1/0),d.getSouth()<=-h&&(d._southWest.lat=-1/0)),d},_animationAddLayerNonAnimated:function(d,h){if(h===d)this._featureGroup.addLayer(d);else if(h._childCount===2){h._addToMap();var f=h.getAllChildMarkers();this._featureGroup.removeLayer(f[0]),this._featureGroup.removeLayer(f[1])}else h._updateIcon()},_extractNonGroupLayers:function(d,h){var f=d.getLayers(),v=0,p;for(h=h||[];v<f.length;v++){if(p=f[v],p instanceof L.LayerGroup){this._extractNonGroupLayers(p,h);continue}h.push(p)}return h},_overrideMarkerIcon:function(d){var h=d.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[d]}});return h}});L.MarkerClusterGroup.include({_mapBoundsInfinite:new L.LatLngBounds(new L.LatLng(-1/0,-1/0),new L.LatLng(1/0,1/0))}),L.MarkerClusterGroup.include({_noAnimation:{_animationStart:function(){},_animationZoomIn:function(d,h){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),d),this._topClusterLevel._recursivelyAddChildrenToMap(null,h,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(d,h){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),d),this._topClusterLevel._recursivelyAddChildrenToMap(null,h,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(d,h){this._animationAddLayerNonAnimated(d,h)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(d,h){var f=this._getExpandedVisibleBounds(),v=this._featureGroup,p=Math.floor(this._map.getMinZoom()),y;this._ignoreMove=!0,this._topClusterLevel._recursively(f,d,p,function(x){var _=x._latlng,S=x._markers,N;for(f.contains(_)||(_=null),x._isSingleParent()&&d+1===h?(v.removeLayer(x),x._recursivelyAddChildrenToMap(null,h,f)):(x.clusterHide(),x._recursivelyAddChildrenToMap(_,h,f)),y=S.length-1;y>=0;y--)N=S[y],f.contains(N._latlng)||v.removeLayer(N)}),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(f,h),v.eachLayer(function(x){!(x instanceof L.MarkerCluster)&&x._icon&&x.clusterShow()}),this._topClusterLevel._recursively(f,d,h,function(x){x._recursivelyRestoreChildPositions(h)}),this._ignoreMove=!1,this._enqueue(function(){this._topClusterLevel._recursively(f,d,p,function(x){v.removeLayer(x),x.clusterShow()}),this._animationEnd()})},_animationZoomOut:function(d,h){this._animationZoomOutSingle(this._topClusterLevel,d-1,h),this._topClusterLevel._recursivelyAddChildrenToMap(null,h,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),d,this._getExpandedVisibleBounds())},_animationAddLayer:function(d,h){var f=this,v=this._featureGroup;v.addLayer(d),h!==d&&(h._childCount>2?(h._updateIcon(),this._forceLayout(),this._animationStart(),d._setPos(this._map.latLngToLayerPoint(h.getLatLng())),d.clusterHide(),this._enqueue(function(){v.removeLayer(d),d.clusterShow(),f._animationEnd()})):(this._forceLayout(),f._animationStart(),f._animationZoomOutSingle(h,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(d,h,f){var v=this._getExpandedVisibleBounds(),p=Math.floor(this._map.getMinZoom());d._recursivelyAnimateChildrenInAndAddSelfToMap(v,p,h+1,f);var y=this;this._forceLayout(),d._recursivelyBecomeVisible(v,f),this._enqueue(function(){if(d._childCount===1){var x=d._markers[0];this._ignoreMove=!0,x.setLatLng(x.getLatLng()),this._ignoreMove=!1,x.clusterShow&&x.clusterShow()}else d._recursively(v,f,p,function(_){_._recursivelyRemoveChildrenFromMap(v,p,h+1)});y._animationEnd()})},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(d){return new L.MarkerClusterGroup(d)};var u=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(d,h,f,v){L.Marker.prototype.initialize.call(this,f?f._cLatLng||f.getLatLng():new L.LatLng(0,0),{icon:this,pane:d.options.clusterPane}),this._group=d,this._zoom=h,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,f&&this._addChild(f),v&&this._addChild(v)},getAllChildMarkers:function(d,h){d=d||[];for(var f=this._childClusters.length-1;f>=0;f--)this._childClusters[f].getAllChildMarkers(d,h);for(var v=this._markers.length-1;v>=0;v--)h&&this._markers[v].__dragStart||d.push(this._markers[v]);return d},getChildCount:function(){return this._childCount},zoomToBounds:function(d){for(var h=this._childClusters.slice(),f=this._group._map,v=f.getBoundsZoom(this._bounds),p=this._zoom+1,y=f.getZoom(),x;h.length>0&&v>p;){p++;var _=[];for(x=0;x<h.length;x++)_=_.concat(h[x]._childClusters);h=_}v>p?this._group._map.setView(this._latlng,p):v<=y?this._group._map.setView(this._latlng,y+1):this._group._map.fitBounds(this._bounds,d)},getBounds:function(){var d=new L.LatLngBounds;return d.extend(this._bounds),d},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(d,h){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(d),d instanceof L.MarkerCluster?(h||(this._childClusters.push(d),d.__parent=this),this._childCount+=d._childCount):(h||this._markers.push(d),this._childCount++),this.__parent&&this.__parent._addChild(d,!0)},_setClusterCenter:function(d){this._cLatLng||(this._cLatLng=d._cLatLng||d._latlng)},_resetBounds:function(){var d=this._bounds;d._southWest&&(d._southWest.lat=1/0,d._southWest.lng=1/0),d._northEast&&(d._northEast.lat=-1/0,d._northEast.lng=-1/0)},_recalculateBounds:function(){var d=this._markers,h=this._childClusters,f=0,v=0,p=this._childCount,y,x,_,S;if(p!==0){for(this._resetBounds(),y=0;y<d.length;y++)_=d[y]._latlng,this._bounds.extend(_),f+=_.lat,v+=_.lng;for(y=0;y<h.length;y++)x=h[y],x._boundsNeedUpdate&&x._recalculateBounds(),this._bounds.extend(x._bounds),_=x._wLatLng,S=x._childCount,f+=_.lat*S,v+=_.lng*S;this._latlng=this._wLatLng=new L.LatLng(f/p,v/p),this._boundsNeedUpdate=!1}},_addToMap:function(d){d&&(this._backupLatlng=this._latlng,this.setLatLng(d)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(d,h,f){this._recursively(d,this._group._map.getMinZoom(),f-1,function(v){var p=v._markers,y,x;for(y=p.length-1;y>=0;y--)x=p[y],x._icon&&(x._setPos(h),x.clusterHide())},function(v){var p=v._childClusters,y,x;for(y=p.length-1;y>=0;y--)x=p[y],x._icon&&(x._setPos(h),x.clusterHide())})},_recursivelyAnimateChildrenInAndAddSelfToMap:function(d,h,f,v){this._recursively(d,v,h,function(p){p._recursivelyAnimateChildrenIn(d,p._group._map.latLngToLayerPoint(p.getLatLng()).round(),f),p._isSingleParent()&&f-1===v?(p.clusterShow(),p._recursivelyRemoveChildrenFromMap(d,h,f)):p.clusterHide(),p._addToMap()})},_recursivelyBecomeVisible:function(d,h){this._recursively(d,this._group._map.getMinZoom(),h,null,function(f){f.clusterShow()})},_recursivelyAddChildrenToMap:function(d,h,f){this._recursively(f,this._group._map.getMinZoom()-1,h,function(v){if(h!==v._zoom)for(var p=v._markers.length-1;p>=0;p--){var y=v._markers[p];f.contains(y._latlng)&&(d&&(y._backupLatlng=y.getLatLng(),y.setLatLng(d),y.clusterHide&&y.clusterHide()),v._group._featureGroup.addLayer(y))}},function(v){v._addToMap(d)})},_recursivelyRestoreChildPositions:function(d){for(var h=this._markers.length-1;h>=0;h--){var f=this._markers[h];f._backupLatlng&&(f.setLatLng(f._backupLatlng),delete f._backupLatlng)}if(d-1===this._zoom)for(var v=this._childClusters.length-1;v>=0;v--)this._childClusters[v]._restorePosition();else for(var p=this._childClusters.length-1;p>=0;p--)this._childClusters[p]._recursivelyRestoreChildPositions(d)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(d,h,f,v){var p,y;this._recursively(d,h-1,f-1,function(x){for(y=x._markers.length-1;y>=0;y--)p=x._markers[y],(!v||!v.contains(p._latlng))&&(x._group._featureGroup.removeLayer(p),p.clusterShow&&p.clusterShow())},function(x){for(y=x._childClusters.length-1;y>=0;y--)p=x._childClusters[y],(!v||!v.contains(p._latlng))&&(x._group._featureGroup.removeLayer(p),p.clusterShow&&p.clusterShow())})},_recursively:function(d,h,f,v,p){var y=this._childClusters,x=this._zoom,_,S;if(h<=x&&(v&&v(this),p&&x===f&&p(this)),x<h||x<f)for(_=y.length-1;_>=0;_--)S=y[_],S._boundsNeedUpdate&&S._recalculateBounds(),d.intersects(S._bounds)&&S._recursively(d,h,f,v,p)},_isSingleParent:function(){return this._childClusters.length>0&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var d=this.options.opacity;return this.setOpacity(0),this.options.opacity=d,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(d){this._cellSize=d,this._sqCellSize=d*d,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(d,h){var f=this._getCoord(h.x),v=this._getCoord(h.y),p=this._grid,y=p[v]=p[v]||{},x=y[f]=y[f]||[],_=L.Util.stamp(d);this._objectPoint[_]=h,x.push(d)},updateObject:function(d,h){this.removeObject(d),this.addObject(d,h)},removeObject:function(d,h){var f=this._getCoord(h.x),v=this._getCoord(h.y),p=this._grid,y=p[v]=p[v]||{},x=y[f]=y[f]||[],_,S;for(delete this._objectPoint[L.Util.stamp(d)],_=0,S=x.length;_<S;_++)if(x[_]===d)return x.splice(_,1),S===1&&delete y[f],!0},eachObject:function(d,h){var f,v,p,y,x,_,S,N=this._grid;for(f in N){x=N[f];for(v in x)for(_=x[v],p=0,y=_.length;p<y;p++)S=d.call(h,_[p]),S&&(p--,y--)}},getNearObject:function(d){var h=this._getCoord(d.x),f=this._getCoord(d.y),v,p,y,x,_,S,N,w,j=this._objectPoint,U=this._sqCellSize,M=null;for(v=f-1;v<=f+1;v++)if(x=this._grid[v],x){for(p=h-1;p<=h+1;p++)if(_=x[p],_)for(y=0,S=_.length;y<S;y++)N=_[y],w=this._sqDist(j[L.Util.stamp(N)],d),(w<U||w<=U&&M===null)&&(U=w,M=N)}return M},_getCoord:function(d){var h=Math.floor(d/this._cellSize);return isFinite(h)?h:d},_sqDist:function(d,h){var f=h.x-d.x,v=h.y-d.y;return f*f+v*v}},(function(){L.QuickHull={getDistant:function(d,h){var f=h[1].lat-h[0].lat,v=h[0].lng-h[1].lng;return v*(d.lat-h[0].lat)+f*(d.lng-h[0].lng)},findMostDistantPointFromBaseLine:function(d,h){var f=0,v=null,p=[],y,x,_;for(y=h.length-1;y>=0;y--){if(x=h[y],_=this.getDistant(x,d),_>0)p.push(x);else continue;_>f&&(f=_,v=x)}return{maxPoint:v,newPoints:p}},buildConvexHull:function(d,h){var f=[],v=this.findMostDistantPointFromBaseLine(d,h);return v.maxPoint?(f=f.concat(this.buildConvexHull([d[0],v.maxPoint],v.newPoints)),f=f.concat(this.buildConvexHull([v.maxPoint,d[1]],v.newPoints)),f):[d[0]]},getConvexHull:function(d){var h=!1,f=!1,v=!1,p=!1,y=null,x=null,_=null,S=null,N=null,w=null,j;for(j=d.length-1;j>=0;j--){var U=d[j];(h===!1||U.lat>h)&&(y=U,h=U.lat),(f===!1||U.lat<f)&&(x=U,f=U.lat),(v===!1||U.lng>v)&&(_=U,v=U.lng),(p===!1||U.lng<p)&&(S=U,p=U.lng)}f!==h?(w=x,N=y):(w=S,N=_);var M=[].concat(this.buildConvexHull([w,N],d),this.buildConvexHull([N,w],d));return M}}})(),L.MarkerCluster.include({getConvexHull:function(){var d=this.getAllChildMarkers(),h=[],f,v;for(v=d.length-1;v>=0;v--)f=d[v].getLatLng(),h.push(f);return L.QuickHull.getConvexHull(h)}}),L.MarkerCluster.include({_2PI:Math.PI*2,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(!(this._group._spiderfied===this||this._group._inZoomAnimation)){var d=this.getAllChildMarkers(null,!0),h=this._group,f=h._map,v=f.latLngToLayerPoint(this._latlng),p;this._group._unspiderfy(),this._group._spiderfied=this,this._group.options.spiderfyShapePositions?p=this._group.options.spiderfyShapePositions(d.length,v):d.length>=this._circleSpiralSwitchover?p=this._generatePointsSpiral(d.length,v):(v.y+=10,p=this._generatePointsCircle(d.length,v)),this._animationSpiderfy(d,p)}},unspiderfy:function(d){this._group._inZoomAnimation||(this._animationUnspiderfy(d),this._group._spiderfied=null)},_generatePointsCircle:function(d,h){var f=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+d),v=f/this._2PI,p=this._2PI/d,y=[],x,_;for(v=Math.max(v,35),y.length=d,x=0;x<d;x++)_=this._circleStartAngle+x*p,y[x]=new L.Point(h.x+v*Math.cos(_),h.y+v*Math.sin(_))._round();return y},_generatePointsSpiral:function(d,h){var f=this._group.options.spiderfyDistanceMultiplier,v=f*this._spiralLengthStart,p=f*this._spiralFootSeparation,y=f*this._spiralLengthFactor*this._2PI,x=0,_=[],S;for(_.length=d,S=d;S>=0;S--)S<d&&(_[S]=new L.Point(h.x+v*Math.cos(x),h.y+v*Math.sin(x))._round()),x+=p/v+S*5e-4,v+=y/x;return _},_noanimationUnspiderfy:function(){var d=this._group,h=d._map,f=d._featureGroup,v=this.getAllChildMarkers(null,!0),p,y;for(d._ignoreMove=!0,this.setOpacity(1),y=v.length-1;y>=0;y--)p=v[y],f.removeLayer(p),p._preSpiderfyLatlng&&(p.setLatLng(p._preSpiderfyLatlng),delete p._preSpiderfyLatlng),p.setZIndexOffset&&p.setZIndexOffset(0),p._spiderLeg&&(h.removeLayer(p._spiderLeg),delete p._spiderLeg);d.fire("unspiderfied",{cluster:this,markers:v}),d._ignoreMove=!1,d._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(d,h){var f=this._group,v=f._map,p=f._featureGroup,y=this._group.options.spiderLegPolylineOptions,x,_,S,N;for(f._ignoreMove=!0,x=0;x<d.length;x++)N=v.layerPointToLatLng(h[x]),_=d[x],S=new L.Polyline([this._latlng,N],y),v.addLayer(S),_._spiderLeg=S,_._preSpiderfyLatlng=_._latlng,_.setLatLng(N),_.setZIndexOffset&&_.setZIndexOffset(1e6),p.addLayer(_);this.setOpacity(.3),f._ignoreMove=!1,f.fire("spiderfied",{cluster:this,markers:d})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(d,h){var f=this,v=this._group,p=v._map,y=v._featureGroup,x=this._latlng,_=p.latLngToLayerPoint(x),S=L.Path.SVG,N=L.extend({},this._group.options.spiderLegPolylineOptions),w=N.opacity,j,U,M,D,T,O;for(w===void 0&&(w=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),S?(N.opacity=0,N.className=(N.className||"")+" leaflet-cluster-spider-leg"):N.opacity=w,v._ignoreMove=!0,j=0;j<d.length;j++)U=d[j],O=p.layerPointToLatLng(h[j]),M=new L.Polyline([x,O],N),p.addLayer(M),U._spiderLeg=M,S&&(D=M._path,T=D.getTotalLength()+.1,D.style.strokeDasharray=T,D.style.strokeDashoffset=T),U.setZIndexOffset&&U.setZIndexOffset(1e6),U.clusterHide&&U.clusterHide(),y.addLayer(U),U._setPos&&U._setPos(_);for(v._forceLayout(),v._animationStart(),j=d.length-1;j>=0;j--)O=p.layerPointToLatLng(h[j]),U=d[j],U._preSpiderfyLatlng=U._latlng,U.setLatLng(O),U.clusterShow&&U.clusterShow(),S&&(M=U._spiderLeg,D=M._path,D.style.strokeDashoffset=0,M.setStyle({opacity:w}));this.setOpacity(.3),v._ignoreMove=!1,setTimeout(function(){v._animationEnd(),v.fire("spiderfied",{cluster:f,markers:d})},200)},_animationUnspiderfy:function(d){var h=this,f=this._group,v=f._map,p=f._featureGroup,y=d?v._latLngToNewLayerPoint(this._latlng,d.zoom,d.center):v.latLngToLayerPoint(this._latlng),x=this.getAllChildMarkers(null,!0),_=L.Path.SVG,S,N,w,j,U,M;for(f._ignoreMove=!0,f._animationStart(),this.setOpacity(1),N=x.length-1;N>=0;N--)S=x[N],S._preSpiderfyLatlng&&(S.closePopup(),S.setLatLng(S._preSpiderfyLatlng),delete S._preSpiderfyLatlng,M=!0,S._setPos&&(S._setPos(y),M=!1),S.clusterHide&&(S.clusterHide(),M=!1),M&&p.removeLayer(S),_&&(w=S._spiderLeg,j=w._path,U=j.getTotalLength()+.1,j.style.strokeDashoffset=U,w.setStyle({opacity:0})));f._ignoreMove=!1,setTimeout(function(){var D=0;for(N=x.length-1;N>=0;N--)S=x[N],S._spiderLeg&&D++;for(N=x.length-1;N>=0;N--)S=x[N],S._spiderLeg&&(S.clusterShow&&S.clusterShow(),S.setZIndexOffset&&S.setZIndexOffset(0),D>1&&p.removeLayer(S),v.removeLayer(S._spiderLeg),delete S._spiderLeg);f._animationEnd(),f.fire("unspiderfied",{cluster:h,markers:x})},200)}}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this)},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()},_unspiderfyZoomStart:function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(d){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(d))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(d){this._spiderfied&&this._spiderfied.unspiderfy(d)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(d){d._spiderLeg&&(this._featureGroup.removeLayer(d),d.clusterShow&&d.clusterShow(),d.setZIndexOffset&&d.setZIndexOffset(0),this._map.removeLayer(d._spiderLeg),delete d._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(d){return d?d instanceof L.MarkerClusterGroup?d=d._topClusterLevel.getAllChildMarkers():d instanceof L.LayerGroup?d=d._layers:d instanceof L.MarkerCluster?d=d.getAllChildMarkers():d instanceof L.Marker&&(d=[d]):d=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(d),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(d),this},_flagParentsIconsNeedUpdate:function(d){var h,f;for(h in d)for(f=d[h].__parent;f;)f._iconNeedsUpdate=!0,f=f.__parent},_refreshSingleMarkerModeMarkers:function(d){var h,f;for(h in d)f=d[h],this.hasLayer(f)&&f.setIcon(this._overrideMarkerIcon(f))}}),L.Marker.include({refreshIconOptions:function(d,h){var f=this.options.icon;return L.setOptions(f,d),this.setIcon(f),h&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),n.MarkerClusterGroup=o,n.MarkerCluster=u,Object.defineProperty(n,"__esModule",{value:!0})})})(wl,wl.exports)),wl.exports}const ow=xc(Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABSCAMAAAAhFXfZAAAC91BMVEVMaXEzeak2f7I4g7g3g7cua5gzeKg8hJo3grY4g7c3grU0gLI2frE0daAubJc2gbQwd6QzeKk2gLMtd5sxdKIua5g1frA2f7IydaM0e6w2fq41fK01eqo3grgubJgta5cxdKI1f7AydaQydaMxc6EubJgvbJkwcZ4ubZkwcJwubZgubJcydqUydKIxapgubJctbJcubZcubJcvbJYubJcvbZkubJctbJctbZcubJg2f7AubJcrbZcubJcubJcua5g3grY0fq8ubJcubJdEkdEwhsw6i88vhswuhcsuhMtBjMgthMsrg8srgss6is8qgcs8i9A9iMYtg8spgcoogMo7hcMngMonf8olfso4gr8kfck5iM8jfMk4iM8he8k1fro7itAgesk2hs8eecgzfLcofssdeMg0hc4cd8g2hcsxeLQbdsgZdcgxeLImfcszhM0vda4xgckzhM4xg84wf8Yxgs4udKsvfcQucqhUndROmdM1fK0wcZ8vb5w0eqpQm9MzeKhXoNVcpdYydKNWn9VZotVKltJFjsIwcJ1Rms9OlslLmtH///8+kc9epdYzd6dbo9VHkMM2f7FHmNBClM8ydqVcpNY9hro3gLM9hLczealQmcw3fa46f7A8gLMxc6I3eagyc6FIldJMl9JSnNRSntNNl9JPnNJFi75UnM9ZodVKksg8kM45jc09e6ZHltFBk883gbRBh7pDk9EwcaBzn784g7dKkcY2i81Om9M7j85Llc81is09g7Q4grY/j9A0eqxKmdFFltBEjcXf6fFImdBCiLxJl9FGlNFBi78yiMxVndEvbpo6js74+vx+psPP3+o/ks5HkcpGmNCjwdZCkNDM3ehYoNJEls+lxNkxh8xHks0+jdC1zd5Lg6r+/v/H2ufz9/o3jM3t8/edvdM/k89Th61OiLBSjbZklbaTt9BfptdjmL1AicBHj8hGk9FAgK1dkLNTjLRekrdClc/k7fM0icy0y9tgp9c4jc2NtM9Dlc8zicxeXZn3AAAAQ3RSTlMAHDdTb4yPA+LtnEQmC4L2EmHqB7XA0d0sr478x4/Yd5i1zOfyPkf1sLVq4Nh3FvjxopQ2/STNuFzUwFIwxKaejILpIBEV9wAABhVJREFUeF6s1NdyFEcYBeBeoQIhRAkLlRDGrhIgY3BJL8CVeKzuyXFzzjkn5ZxzzuScg3PO8cKzu70JkO0LfxdTU//pM9vTu7Xgf6KqOVTb9X7toRrVEfBf1HTVjZccrT/2by1VV928Yty9ZbVuucdz90frG8DBjl9pVApbOstvmMuvVgaNXSfAAd6pGxpy6yxf5ph43pS/4f3uoaGm2rdu72S9xzOvMymkZFq/ptDrk90mhW7e4zl7HLzhxGWPR20xmSxJ/VqldG5m9XhaVOA1DadsNh3Pu5L2N6QtPO/32JpqQBVVk20oy/Pi2s23WEvyfHbe1thadVQttvm7Llf65gGmXK67XtupyoM7HQhmXdLS8oGWJNeOJ3C5fG5XCEJnkez3/oFdsvgJ4l2ANZwhrJKk/7OSXa+3Vw2WJMlKnGkobouYk6T0TyX30klOUnTD9HJ5qpckL3EW/w4XF3Xd0FGywXUrstrclVsqz5Pd/sXFYyDnPdrLcQODmGOK47IZb4CmibmMn+MYRzFZ5jg33ZL/EJrWcszHmANy3ARBK/IXtciJy8VsitPSdE3uuHxzougojcUdr8/32atnz/ev3f/K5wtpxUTpcaI45zusVDpYtZi+jg0oU9b3x74h7+n9ABvYEZeKaVq0sh0AtLKsFtqNBdeT0MrSzwwlq9+x6xAO4tgOtSzbCjrNQQiNvQUbUEubvzBUeGw26yDCsRHCoLkTHDa7IdOLIThs/gHvChszh2CimE8peRs47cxANI0lYNB5y1DljpOF0IhzBDPOZnDOqYYbeGKECbPzWnXludPphw5c2YBq5zlwXphIbO4VDCZ0gnPfUO1TwZoYwAs2ExPCedAu9DAjfQUjzITQb3jNj0KG2Sgt6BHaQUdYzWz+XmBktOHwanXjaSTcwwziBcuMOtwBmqPrTOxFQR/DRKKPqyur0aiW6cULYsx6tBm0jXpR/AUWR6HRq9WVW6MRhIq5jLyjbaCTDCijyYJNpCajdyobP/eTw0iexBAKkJ3gA5KcQb2zBXsIBckn+xVv8jkZSaEFHE+jFEleAEfayRU0MouNoBmB/L50Ai/HSLIHxcrpCvnhSQAuakKp2C/YbCylJjXRVy/z3+Kv/RrNcCo+WUzlVEhzKffnTQnxeN9fWF88fiNCUdSTsaufaChKWInHeysygfpIqagoakW+vV20J8uyl6TyNKEZWV4oRSPyCkWpgOLSbkCObT8o2r6tlG58HQquf6O0v50tB7JM7F4EORd2dx/K0w/KHsVkLPaoYrwgP/y7krr3SSMA4zj+OBgmjYkxcdIJQyQRKgg2viX9Hddi9UBb29LrKR7CVVEEEXWojUkXNyfTNDE14W9gbHJNuhjDettN3ZvbOvdOqCD3Jp/9l+/wJE+9PkYGjx/fqkys3S2rMozM/o2106rfMUINo6hVqz+eu/hd1c4xTg0TAfy5kV+4UG6+IthHTU9woWmxuKNbTfuCSfovBCxq7EtHqvYL4Sm6F8GVxsSXHMQ07TOi1DKtZxjWaaIyi4CXWjxPccUw8WVbMYY5wxC1mzEyXMJWkllpRloi+Kkoq69sxBTlElF6aAxYUbjXNlhlDZilDnM4U5SlN5biRsRHnbx3mbeWjEh4mEyiuJDl5XcWVmX5GvNkFgLWZM5qwsop4/AWfLhU1cR7k1VVvcYCWRkOI6Xy5gmnphCYIkvzuNYzHzosq2oNk2RtSs8khfUOfHIDgR6ysYBaMpl4uEgk2U/oJTs9AaTSwma7dT69geAE2ZpEjUsn2ieJNHeKfrI3EcAGJ2ZaNgVuC8EBctCLc57P5u5led6IOBkIYkuQMrmmjChs4VkfOerHqSBkPzZlhe06RslZ3zMjk2sscqKwY0RcjKK+LWbzd7KiHhkncs/siFJ+V5eXxD34B8nVuJEpGJNmxN2gH3vSvp7J70tF+D1Ej8qUJD1TkErAND2GZwTFg/LubvmgiBG3SOvdlsqFQrkEzJCL1rstlnVFROixZoDDSuXQFHESwVGlcuQcMb/b42NgjLowh5MTDFE3vNB5qStRIErdCQEh6pLPR92anSUb/wAIhldAaDMpGgAAAABJRU5ErkJggg=="},Symbol.toStringTag,{value:"Module"}))),aw=xc(Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII="},Symbol.toStringTag,{value:"Module"}))),uw=xc(Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC"},Symbol.toStringTag,{value:"Module"})));var Pv;function lw(){if(Pv)return Ss;Pv=1;var s=Ss&&Ss.__assign||function(){return s=Object.assign||function(p){for(var y,x=1,_=arguments.length;x<_;x++){y=arguments[x];for(var S in y)Object.prototype.hasOwnProperty.call(y,S)&&(p[S]=y[S])}return p},s.apply(this,arguments)},t=Ss&&Ss.__rest||function(p,y){var x={};for(var _ in p)Object.prototype.hasOwnProperty.call(p,_)&&y.indexOf(_)<0&&(x[_]=p[_]);if(p!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,_=Object.getOwnPropertySymbols(p);S<_.length;S++)y.indexOf(_[S])<0&&Object.prototype.propertyIsEnumerable.call(p,_[S])&&(x[_[S]]=p[_[S]]);return x},n=Ss&&Ss.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(Ss,"__esModule",{value:!0});var o=rw,u=n(D3());sw(),delete u.default.Icon.Default.prototype._getIconUrl,u.default.Icon.Default.mergeOptions({iconRetinaUrl:ow.default,iconUrl:aw.default,shadowUrl:uw.default});function d(p){var y={},x={};p.children;var _=t(p,["children"]);return Object.entries(_).forEach(function(S){var N,w,j=S[0],U=S[1];j.startsWith("on")?x=s(s({},x),(N={},N[j]=U,N)):y=s(s({},y),(w={},w[j]=U,w))}),{clusterProps:y,clusterEvents:x}}function h(p,y){var x=d(p),_=x.clusterProps,S=x.clusterEvents,N=new u.default.MarkerClusterGroup(_);return Object.entries(S).forEach(function(w){var j=w[0],U=w[1],M="cluster".concat(j.substring(2).toLowerCase());N.on(M,U)}),(0,o.createElementObject)(N,(0,o.extendContext)(y,{layerContainer:N}))}var f=function(p,y,x){},v=(0,o.createPathComponent)(h,f);return Ss.default=v,Ss}var cw=lw();const dw=bc(cw);function hw(s,t={categorizeByField:"nocategorization",categories:{}}){let n=s.getAllChildMarkers(),o={},u=n.length,d=!0;n.forEach(y=>{let x=y.options;if(!x)return console.log("Marker not found:",y);let _=fw(x,t.categorizeByField),S;typeof _=="string"&&t.categories.hasOwnProperty(_)?S=t.categories[_].color:S="#164995",o[S]||(o[S]=0),o[S]++,x&&"isFaded"in x&&(x!=null&&x.isFaded)||(d=!1)});let h='<svg viewBox="0 0 36 36"><circle cx="18" cy="18" r="14" fill="white"/>',f=0;Object.keys(o).forEach(y=>{let x=y,_=100*o[y]/u,S=f/100*360;h+=`    <path
      d="M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"
      fill="none"
      transform="rotate(${S}, 18, 18)"
      stroke="${x}"
      stroke-width="4"
      stroke-dasharray="${_}, 100"
    />`,f=f+_});let v=s.getChildCount();h+='<text x="18" y="21" text-anchor="middle" class="openstad-component-ideas-on-map-icon openstad-component-ideas-on-map-icon-text">'+v+"</text>",h+="</svg>";let p="osc-map-marker-cluster";return d&&(p+=" osc-map-marker-cluster-faded"),An.divIcon({html:h,className:p,iconSize:An.point(36,36),iconAnchor:[18,18]})}function fw(s,t){if(!s.data)return"nocategoryfound";const n=s.data[t];return typeof n=="string"?n:"nocategoryfound"}function gw({maxClusterRadius:s=40,showCoverageOnHover:t=!1,iconCreateFunction:n=hw,categorize:o=void 0,markers:u=[],...d}){let h=E.useRef(o);E.useEffect(()=>{h.current=o});let f=E.useCallback(function(v){if(n&&typeof n=="string"){const p=globalThis[n];if(typeof p=="function")n=p;else return console.warn(`Function ${n} does not exist in the global scope.`),null}return typeof n!="function"?(console.warn("iconCreateFunction is not a valid function."),null):n(v,h.current)},[u]);return React.createElement(dw,{...d,iconCreateFunction:f,maxClusterRadius:s,showCoverageOnHover:t},u==null?void 0:u.map(v=>React.createElement(Tv,{...v,key:`marker-${v.markerId}`})))}function mw({tilesVariant:s="default",tiles:t=null,minZoom:n=0,maxZoom:o=25,customUrl:u="",...d}){const[h,f]=E.useState(s),[v,p]=E.useState(!0);if(E.useEffect(()=>{if(s==="nlmaps"){const y="https://service.pdok.nl/brt/achtergrondkaart/wmts/v2_0/standaard/EPSG:3857/10/550/340.png";(async()=>{try{const _=new AbortController,S=setTimeout(()=>_.abort(),3e3),N=await fetch(y,{method:"HEAD",signal:_.signal});clearTimeout(S),N.ok||f("openstreetmaps"),p(!1)}catch{f("openstreetmaps"),p(!1)}})()}else p(!1)},[s]),v)return null;switch(h){case"amaps":return E.createElement(xl,{...d,attribution:"amsterdam.nl",maxZoom:typeof o<"u"?o:21,minZoom:typeof n<"u"?n:11,subdomains:"1234",url:"https://t{s}.data.amsterdam.nl/topo_wm/{z}/{x}/{y}.png"});case"openstreetmaps":return E.createElement(xl,{...d,attribution:"<a href='https://www.openstreetmap.org/copyright'>© OpenStreetMap contributors</a>",maxZoom:typeof o<"u"?o:19,minZoom:typeof n<"u"?n:0,referrerPolicy:"no-referrer-when-downgrade",subdomains:"abc",url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"});case"n3s":return E.createElement(xl,{...d,attribution:"",maxZoom:typeof o<"u"?o:19,minZoom:typeof n<"u"?n:0,subdomains:"abcd",url:"https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png"});case"custom":return E.createElement(xl,{...d,attribution:t&&t.attribution||"",maxZoom:typeof o<"u"?o:19,minZoom:typeof n<"u"?n:0,subdomains:t&&t.subdomains||"",url:u||"https://service.pdok.nl/brt/achtergrondkaart/wmts/v2_0/standaard/EPSG:3857/{z}/{x}/{y}.png"});default:case"nlmaps":return E.createElement(xl,{...d,attribution:"Kaartgegevens © <a href='kadaster.nl'>Kadaster</a>",bounds:[[50.5,3.25],[54,7.6]],maxZoom:typeof o<"u"?o:19,minZoom:typeof n<"u"?n:6,subdomains:"",url:"https://service.pdok.nl/brt/achtergrondkaart/wmts/v2_0/standaard/EPSG:3857/{z}/{x}/{y}.png"})}}function Dv(s,t){return s>0&&s<3e5&&t>3e5&&t<62e4}function pw(s){const n=`<svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 13 13"><rect width="13" height="13" rx="2" fill="${du(s)}" /></svg>`;return`data:image/svg+xml;base64,${btoa(n)}`}function vw(s){const t={stroke:"rgb(85, 85, 85)","stroke-width":2,"stroke-opacity":1},n={};s.forEach(v=>{var N;if(((N=v.geometry)==null?void 0:N.type)!=="LineString")return;const p=v.properties||{},y=p.stroke||t.stroke,x=p["stroke-width"]||t["stroke-width"],_=p["stroke-opacity"]??t["stroke-opacity"],S=`${y}-${x}-${_}`;n[S]||(n[S]={count:0,width:x,color:y,opacity:_}),n[S].count++});const o=Object.values(n).reduce((v,p)=>v+p.width*p.count,0);let u=0;const d=13,h=13,f=[`<svg xmlns="http://www.w3.org/2000/svg" width="${h}" height="${d}" viewBox="0 0 ${h} ${d}">`];return Object.values(n).forEach(v=>{const p=v.width*v.count/o*h;f.push(`
      <rect 
        x="${u}" 
        y="0" 
        width="${p}" 
        height="${d}" 
        fill="${v.color}" 
        opacity="${v.opacity}" 
      />
    `),u+=p}),f.push("</svg>"),`data:image/svg+xml;base64,${btoa(f.join(""))}`}const Mv=(s,t)=>{s<1e3&&(s*=1e3),t<1e3&&(t*=1e3);const n=155e3,o=463e3,u=52.156160556,d=5.387638889,h=3236.0331637,f=5261.3028966,v=-32.5915821,p=105.9780241,y=-.2472814,x=2.4576469,_=-.8501341,S=-.8192156,N=-.0655238,w=-.0560092,j=-.0171137,U=.0560089,M=.0052771,D=-.0025614,T=-3859e-7,O=.001277,q=3314e-7,k=2574e-7,H=371e-7,V=-973e-7,Y=143e-7,R=293e-7,A=-9e-6,X=291e-7,ee=(s-n)*Math.pow(10,-5),ue=(t-o)*Math.pow(10,-5);let G=h*ue+v*Math.pow(ee,2)+y*Math.pow(ue,2)+_*Math.pow(ee,2)*ue+N*Math.pow(ue,3);G+=M*Math.pow(ee,4)+j*Math.pow(ee,2)*Math.pow(ue,2)+H*Math.pow(ue,4)+q*Math.pow(ee,4)*ue,G+=T*Math.pow(ee,2)*Math.pow(ue,3)+Y*Math.pow(ee,4)*Math.pow(ue,2)+A*Math.pow(ee,2)*Math.pow(ue,4);const K=u+G/3600;let B=f*ee+p*ee*ue+S*Math.pow(ee,3)+x*ee*Math.pow(ue,2)+w*Math.pow(ee,3)*ue;B+=U*ee*Math.pow(ue,3)+k*Math.pow(ee,5)+D*Math.pow(ee,3)*Math.pow(ue,2)+O*ee*Math.pow(ue,4),B+=R*Math.pow(ee,5)*ue+V*Math.pow(ee,3)*Math.pow(ue,3)+X*ee*Math.pow(ue,5);const te=d+B/3600,Q=K+(-96.862-11.714*(K-52)-.125*(te-5))/1e5,$=te+(-37.902+.329*(K-52)-14.667*(te-5))/1e5;return{lat:Q,lon:$}},yw=s=>!!s&&typeof s=="object"&&("lat"in s||"lng"in s),kv=s=>!Array.isArray(s)||s.length===0?[]:yw(s[0])?s.map(Jc):s.map(t=>kv(t));function bw({isTouch:s}){const t=ou();return E.useEffect(()=>{if(!_i.mapInteraction)return;const n=_i.mapInteraction(t,{isTouch:s});return()=>{n!=null&&n.destroy&&n.destroy()}},[t,s]),null}const Rv=({iconCreateFunction:s=void 0,defaultIcon:t=void 0,area:n=void 0,areaId:o=void 0,renderArea:u=void 0,areaPolygonStyle:d=void 0,markers:h=[],autoZoomAndCenter:f=void 0,zoom:v=7,scrollWheelZoom:p=!0,center:y={lat:52.37104644463586,lng:4.900402911007405},tilesVariant:x="nlmaps",tiles:_=void 0,minZoom:S=7,maxZoom:N=20,categorize:w=void 0,clustering:j={isActive:!0},onClick:U=void 0,onMarkerClick:M=void 0,width:D="100%",height:T=void 0,adminOnlyPolygons:O=void 0,customPolygon:q=void 0,locationProx:k=void 0,dataLayerSettings:H={datalayer:[],enableOnOffSwitching:!1},markerSets:V=[],markerInteractionType:Y="default",customLegend:R=[],zoomAfterInit:A=!0,...X})=>{var Qe,at;const ee=new Qa({projectId:X.projectId,api:X.api,config:{api:X.api}}),{data:ue}=ee.useDatalayer({projectId:X.projectId}),G=Array.isArray(V)&&V.length>0,{data:K}=ee.useMarkers({projectId:G?X.projectId:void 0});let B=[];const{datalayer:te,enableOnOffSwitching:Q}=H,$=te||[],re=Q||!1;$&&Array.isArray($)&&Array.isArray(ue)&&ue.length>0&&$.forEach((ve,Xe)=>{const Be=ue.find(ut=>ut.id===ve.id);if(Be){const ut=`layer-${Xe}`;B.push({layer:Be.layer,icon:Be.icon,name:ve.name,activeOnInit:typeof(ve==null?void 0:ve.activeOnInit)=="boolean"?ve.activeOnInit:!0,id:ut})}});const[le,be]=E.useState({});E.useEffect(()=>{if(B.length>0&&Object.keys(le).length===0){const ve=B.reduce((Xe,Be)=>(Xe[Be.id]=Be.activeOnInit,Xe),{});be(ve)}},[B]);const ae=ve=>{be(Xe=>({...Xe,[ve]:!Xe[ve]}))},Ce=B.filter(ve=>le[ve.id]),we=y.lat&&y.lng?{lat:y.lat,lng:y.lng}:{lat:52.37104644463586,lng:4.900402911007405};x=((Qe=X==null?void 0:X.map)==null?void 0:Qe.tilesVariant)||x||"nlmaps";const Me=x==="custom"?(at=X==null?void 0:X.map)==null?void 0:at.customUrl:void 0;j={isActive:!1};let[Je,rt]=E.useState(h),[et,Le]=E.useState([]),[mt]=E.useState(`${parseInt(Math.random()*1e8)}`);E.useEffect(()=>{const ve=new CustomEvent("osc-map-is-ready",{detail:{id:mt}});window.dispatchEvent(ve)},[mt]),E.useEffect(()=>{if(Ce.length===0&&(et.length>0&&Le([]),h.length===0&&Je.length===0))return;const ve=()=>{const he=[...h],ht=[];return Ce.length>0&&Ce.forEach(Re=>{var Wn,Ht,Nn;const Lt=(Ht=(Wn=Re==null?void 0:Re.layer)==null?void 0:Wn.result)==null?void 0:Ht.records,At=(Nn=Re==null?void 0:Re.layer)==null?void 0:Nn.features;Lt!=null&&Lt.length&&Lt.forEach(Gt=>{var Se,fn;const{lat:hn,lon:vn,titel:nr,inhoud:Ae}=Gt,He=vn||Gt.long;if(hn&&He){const Ge=(fn=(Se=Re==null?void 0:Re.icon)==null?void 0:Se[0])==null?void 0:fn.url;Ge&&he.push({lat:hn,lng:He,title:nr,description:Ae,markerId:`record-${hn}-${He}-${nr||"marker"}`,isVisible:!0,isClustered:!1,icon:_i.icon({iconUrl:Ge,iconSize:[30,40],iconAnchor:[15,40],className:"custom-image-icon"})})}}),At!=null&&At.length&&At.forEach(Gt=>{var vn,nr,Ae,He,Se,fn,Ge,Nt;if(!Gt.geometry)return;const hn=(vn=Gt.geometry)==null?void 0:vn.type;if(hn==="LineString"){const $t=(((nr=Gt.geometry)==null?void 0:nr.coordinates)||[]).map(([It,nn])=>{if(Dv(It,nn)){const dn=Mv(It,nn);return[dn.lat,dn.lon]}return[nn,It]});ht.push({positions:$t,style:{color:((Ae=Gt==null?void 0:Gt.properties)==null?void 0:Ae.stroke)||"rgb(85, 85, 85)",weight:((He=Gt==null?void 0:Gt.properties)==null?void 0:He["stroke-width"])||2,opacity:((Se=Gt==null?void 0:Gt.properties)==null?void 0:Se["stroke-opacity"])??1}})}else if(hn==="Point"){const _t=(fn=Gt.geometry)==null?void 0:fn.coordinates;let $t=_t==null?void 0:_t[1],It=_t==null?void 0:_t[0];const{Objectnaam:nn,Locatieaanduiding:dn}=Gt.properties;if(Dv(It,$t)){const gn=Mv(It,$t);$t=gn.lat,It=gn.lon}if($t&&It){const gn=(Nt=(Ge=Re==null?void 0:Re.icon)==null?void 0:Ge[0])==null?void 0:Nt.url;gn&&he.push({lat:$t,lng:It,title:nn,description:dn,markerId:`feature-${$t}-${It}-${nn||"marker"}`,isVisible:!0,isClustered:!1,icon:_i.icon({iconUrl:gn,iconSize:[30,40],iconAnchor:[15,40],className:"custom-image-icon"})})}}})}),{markers:he.map(Re=>{var Wn,Ht;Jc(Re);const Lt=[...Re.onClick??[],...M?[M]:[]],At={...Re,markerId:Re.markerId||`marker-${Re.lat}-${Re.lng}`,iconCreateFunction:Re.iconCreateFunction||s,onClick:Lt,isVisible:!0,isClustered:j!=null&&j.isActive&&!Re.doNotCluster?!1:void 0};if(w!=null&&w.categorizeByField&&((Wn=At.data)!=null&&Wn[w.categorizeByField])){const Nn=At.data[w.categorizeByField],Gt=(Ht=w.categories)==null?void 0:Ht[Nn];if(Gt&&!At.icon){const hn=Gt.icon||(Gt.color?{...t,color:Gt.color}:void 0);hn&&(At.icon=hn)}}return!At.icon&&t&&(At.icon=At.color?{...t,color:At.color}:t),At}),polyLines:ht}},{markers:Xe,polyLines:Be}=ve();(Xe.length!==Je.length||Xe.some((he,ht)=>{var kt,Re,Lt;return he.markerId!==((kt=Je[ht])==null?void 0:kt.markerId)||he.lat!==((Re=Je[ht])==null?void 0:Re.lat)||he.lng!==((Lt=Je[ht])==null?void 0:Lt.lng)}))&&rt(Xe),(Be.length!==et.length||Be.some((he,ht)=>{var kt,Re,Lt,At;return he.positions.length!==((kt=et[ht])==null?void 0:kt.positions.length)||he.style.color!==((Re=et[ht])==null?void 0:Re.style.color)||he.style.weight!==((Lt=et[ht])==null?void 0:Lt.style.weight)||he.style.opacity!==((At=et[ht])==null?void 0:At.style.opacity)}))&&Le(Be)},[h,Ce,s,t,w,j,M]);let lt=[];const De={...X,tilesVariant:x,customUrl:Me,tiles:_,minZoom:S,maxZoom:N},[ct,vt]=E.useState(!1),[Ye,Tt]=E.useState(!1),Ve=E.useRef(null);E.useEffect(()=>{"ontouchstart"in window&&vt(!0)},[]),E.useEffect(()=>{const ve=Ve.current;if(!ve)return;const Xe=/\d+(px|%|vh|vw|em|rem|ex|ch|vmin|vmax|cm|mm|in|pt|pc)$/;if(D){const Be=D.match(Xe)?D:`${D}px`;ve.style.setProperty("--basemap-map-width",Be)}else ve.style.removeProperty("--basemap-map-width");if(T){const Be=T.match(Xe)?T:`${T}px`;ve.style.setProperty("--basemap-map-height",Be),ve.style.setProperty("--basemap-map-aspect-ratio","unset")}else ve.style.removeProperty("--basemap-map-height"),ve.style.removeProperty("--basemap-map-aspect-ratio")},[D,T]),E.useEffect(()=>{const ve=Ve.current;if(!ve)return;if(ve.clientHeight&&ve.clientWidth){Tt(!0);return}const Xe=new ResizeObserver(()=>{ve.clientHeight&&ve.clientWidth&&(Tt(!0),Xe.disconnect())});return Xe.observe(ve),()=>Xe.disconnect()},[]);const ye=E.useRef(null);return E.createElement(E.Fragment,null,(B.length>0||Array.isArray(R)&&R.length>0)&&E.createElement("ul",{className:"legend osc-map-legend"},B.map(ve=>{var Xe,Be;return E.createElement("li",{key:ve.id,className:"legend-item"},E.createElement("label",{className:"legend-label"},re&&E.createElement("input",{type:"checkbox",checked:!!le[ve.id],onChange:()=>ae(ve.id)}),E.createElement("div",{className:"legend-info"},ve.icon&&ve.icon[0]&&ve.icon[0].url?E.createElement("img",{src:ve.icon[0].url,alt:"Layer icon",className:"legend-icon"}):(Be=(Xe=ve.layer)==null?void 0:Xe.features)!=null&&Be.some(ut=>{var st;return((st=ut==null?void 0:ut.geometry)==null?void 0:st.type)==="LineString"})?E.createElement("img",{src:vw(ve.layer.features),alt:"Layer line preview",className:"legend-icon legend-icon--line"}):null,E.createElement("span",null,ve.name||"Naamloze laag"))))}),Array.isArray(R)&&R.map((ve,Xe)=>E.createElement("li",{key:`custom-legend-${Xe}`,className:"legend-item"},E.createElement("div",{className:"legend-label"},E.createElement("div",{className:"legend-info"},ve.icon?E.createElement("img",{src:ve.icon,alt:ve.label,className:"legend-icon"}):ve.color?E.createElement("img",{src:pw(ve.color),alt:"",className:"legend-icon"}):null,E.createElement("span",null,ve.label)))))),E.createElement("div",{className:"map-container osc-map",ref:Ve},Ye&&E.createElement(q_,{ref:ye,center:[we.lat,we.lng],className:"osc-base-map-widget-container",id:`osc-base-map-${mt}`,scrollWheelZoom:p,zoom:v},E.createElement(tw,{mapId:mt}),E.createElement($E,null),E.createElement(bw,{isTouch:ct}),E.createElement(QE,{autoZoomAndCenter:f,area:n,areaId:o,markers:Je,center:y,zoomAfterInit:A,customPolygonIds:q==null?void 0:q.map(ve=>ve.id)}),E.createElement(mw,{...De}),n&&n.length?E.createElement(KE,{area:u??n,areas:O??q??[],areaPolygonStyle:d,showHiddenPolygonsForAdmin:!!X.showHiddenPolygonsForAdmin,...X}):null,et&&et.length>0&&et.map((ve,Xe)=>E.createElement(z_,{key:`polyline-${Xe}`,positions:ve.positions,pathOptions:ve.style})),!!Je&&Je.length>0&&Je.map(ve=>{if(ve.isClustered)lt.push(ve);else if(ve.lat&&ve.lng)return E.createElement(Tv,{...X,...ve,key:`marker-${ve.markerId||ve.lat+ve.lng}`})}),lt.length>0&&E.createElement(gw,{...X,...j,categorize:w,markers:lt}),E.createElement(xw,{area:n,onClick:(ve,Xe)=>U&&U({...ve,isInArea:ve.isInArea},Xe),onMarkerClick:M}),Array.isArray(V)&&V.length>0&&Array.isArray(K)&&K.length>0&&V.map(ve=>{const Xe=K.find(Be=>Be.id===ve.id);return!Xe||!Array.isArray(Xe.markers)?null:E.createElement(E.Fragment,{key:`ms-group-${Xe.id}`},Xe.markers.map((Be,ut)=>{if(Be.lat==null||Be.lng==null)return null;const st=Be.icon?_i.icon({iconUrl:Be.icon,iconSize:[30,40],iconAnchor:[15,40],popupAnchor:[0,-40],className:"custom-image-icon"}):Iv({icon:{color:Be.color||"#555588"}}),he=Be.openInNewTab?"_blank":"_self",ht=Be.buttonText||"Lees verder";let kt="";if(Be.url)try{const Lt=new URL(Be.url,window.location.origin);["http:","https:","mailto:"].includes(Lt.protocol)&&(kt=Lt.href)}catch{kt=""}const Re=Y==="direct";return E.createElement(X3,{key:`ms-${Xe.id}-${ut}`,position:[Be.lat,Be.lng],icon:st,eventHandlers:Re&&kt?{click:()=>{window.open(kt,he)}}:{}},!Re&&(Be.title||Be.description||kt)&&E.createElement(Y3,{className:"leaflet-popup"},Be.title&&E.createElement("h3",{className:"utrecht-heading-3"},Be.title),Be.description&&E.createElement("p",null,Be.description),kt&&E.createElement("a",{className:"pop-up-link",href:kt,target:he,rel:Be.openInNewTab?"noopener noreferrer":void 0},ht)))}))}),k&&k.lat&&k.lng&&E.createElement(F_,{center:[parseFloat(k.lat),parseFloat(k.lng)],radius:(k.proximity||1)*1e3,pathOptions:{color:"#0077ff",fillColor:"#0077ff",fillOpacity:.1,weight:2,dashArray:"4 4"}}))))};function xw({area:s=[],onClick:t=void 0,onMarkerClick:n=void 0}){const o=j_({load:()=>{console.log("ONLOAD")},click:u=>{if(u.originalEvent.target.closest(".leaflet-marker-icon")&&n){let y=new CustomEvent("osc-marker-click",{detail:u});window.dispatchEvent(y),n(u,o);return}const f=kv(s);let v=!(s&&s.length)||YE(f,u.latlng),p=new CustomEvent("osc-map-click",{detail:{...u,isInArea:v}});if(window.dispatchEvent(p),t){if(typeof t=="string"){const y=globalThis[t];if(typeof y=="function")t=y;else{console.warn(`Function ${t} is not defined on globalThis.`);return}}t({...u,isInArea:v},o)}}});return null}Rv.loadWidget=vl;const jv=s=>{if(!Array.isArray(s)||s.length===0)return[];const t=s[0];return t&&typeof t.lat=="number"&&typeof t.lng=="number"?s:s.flatMap(n=>jv(n))},o0=({categorize:s=void 0,markerHref:t=void 0,countButton:n=void 0,ctaButton:o=void 0,locationProx:u=void 0,givenResources:d,noFetch:h=!1,selectedProjects:f=[],onMarkerClick:v,...p})=>{var ee,ue,G,K,B,te,Q;const y=new Qa({projectId:p.projectId,api:p.api,config:{api:p.api}});Array.isArray(d)||(d=void 0);const{data:x}=y.useResources({projectId:h?void 0:p.projectId,pageSize:99999},{suspense:!1}),_=d||(x==null?void 0:x.records)||[];let S=s==null?void 0:s.categorizeByField,N={};const w=Array.isArray(f)&&f.length>0?"0":p.projectId;if(S){const{data:$}=y.useTags({projectId:w,type:S});Array.isArray($)&&$.length&&(N={},$.forEach(re=>{N[re.name]={color:re.backgroundColor||"#558",icon:re.mapIcon}}))}let j=_.map(($,re)=>{var rt,et;let le={markerId:`resource-${$.id||$.uniqueId||re}`,location:$!=null&&$.location?{...$.location}:void 0};const be=Jc(le);le.lat=be.lat,le.lng=be.lng;const ae=Array.isArray(f)&&f.length>0?(rt=f.find(Le=>Le.id===$.projectId))==null?void 0:rt.detailPageLink:void 0;if(le.lat&&le.lng)if(v)le.onClick=[()=>v($,re)];else{const Le=ae||p.itemLink||t;Le&&(le.href=Le.replace(/\[id\]/,$.id))}if(le.lat&&le.lng&&S&&N){let Le=(et=$.tags)==null?void 0:et.find(mt=>mt.type==S);Le&&(le.data={[S]:Le.name})}const Ce=$.statuses?$.statuses.filter(Le=>Le.seqnr!==void 0&&Le.seqnr!==null).sort((Le,mt)=>Le.seqnr-mt.seqnr)[0]||$.statuses[0]:!1;let we=Ce&&Ce.mapIcon?Ce.mapIcon:"";const Me=$.tags?$.tags.filter(Le=>Le.seqnr!==void 0&&Le.seqnr!==null).sort((Le,mt)=>Le.seqnr-mt.seqnr)[0]||$.tags[0]:!1;we=Me&&Me.mapIcon?Me.mapIcon:we;const Je=Me&&Me.documentMapIconColor?Me.documentMapIconColor:"";return le.icon={title:$.title??"Locatie pin"},Je&&(le.icon.color=Je),we&&(le.icon=_i.icon({iconUrl:we,iconSize:[30,40],iconAnchor:[15,40],className:"custom-image-icon"})),le})||[];const U=f.map($=>{const re={lat:$.projectLat?parseFloat($.projectLat):void 0,lng:$.projectLng?parseFloat($.projectLng):void 0,href:$.overviewUrl||"",title:$.overviewTitle||$.name||"",icon:$.overviewMarkerIcon?_i.icon({iconUrl:$.overviewMarkerIcon,iconSize:[30,40],iconAnchor:[15,40],className:"custom-image-icon"}):void 0};return re.lat&&re.lng?re:null}).filter($=>$!==null);j=j.concat(U);const M=d?d.length:((ee=x==null?void 0:x.metadata)==null?void 0:ee.totalCount)??0;let D=E.createElement(E.Fragment,null);n!=null&&n.show&&(D=E.createElement("div",{className:"utrecht-button utrecht-button--secondary-action osc-resource-overview-map-button osc-first-button"},E.createElement("section",{className:"resource-counter"},M),E.createElement("section",{className:"resource-label"},n.label||"plannen")));let T=E.createElement(E.Fragment,null);o!=null&&o.show&&(T=E.createElement(Mc,{appearance:"primary-action-button",href:o.href,className:`osc-resource-overview-map-button ${D?"osc-second-button":"osc-first-button"}`},E.createElement("section",{className:"resource-label"},o.label)));let O=((ue=p==null?void 0:p.map)==null?void 0:ue.areaId)||!1;const{data:q}=y.useArea({areaId:O}),k=(q==null?void 0:q.polygon)||[];function H($){if(!$||$.length===0)return;const re=jv($);let le=1/0,be=-1/0,ae=1/0,Ce=-1/0;re.forEach(Je=>{Je.lng<le&&(le=Je.lng),Je.lng>be&&(be=Je.lng),Je.lat<ae&&(ae=Je.lat),Je.lat>Ce&&(Ce=Je.lat)});const we=(ae+Ce)/2,Me=(le+be)/2;return{lat:we,lng:Me}}const[V,Y]=E.useState(void 0);E.useEffect(()=>{k&&Y(H(k))},[q]);const R={minZoom:(G=p==null?void 0:p.map)!=null&&G.minZoom?parseInt(p.map.minZoom):7,maxZoom:(K=p==null?void 0:p.map)!=null&&K.maxZoom?parseInt(p.map.maxZoom):20},A=()=>{const $=document.querySelectorAll(".leaflet-control-zoom-in")[0];$&&$.focus()};p!=null&&p.map&&typeof(p==null?void 0:p.map)=="object"&&(p.map={...p.map,tilesVariant:(p==null?void 0:p.tilesVariant)||((B=p==null?void 0:p.map)==null?void 0:B.tilesVariant)||"nlmaps",customUrl:(p==null?void 0:p.customUrl)||((te=p==null?void 0:p.map)==null?void 0:te.customUrl)||""});const X=p!=null&&p.datalayer?{datalayer:(p==null?void 0:p.datalayer)||[],enableOnOffSwitching:(p==null?void 0:p.enableOnOffSwitching)||!1}:(p==null?void 0:p.resourceOverviewMapWidget)||{};return k.length>0&&V||!Number(O)?E.createElement("div",{className:"map-container--buttons"},E.createElement(Ar,{appearance:"primary-action-button",className:"skip-link",onClick:A},"Sla kaart over"),E.createElement(Rv,{...p,...R,area:k,areaId:O,autoZoomAndCenter:(p==null?void 0:p.mapCenterMode)||((Q=p==null?void 0:p.map)==null?void 0:Q.autoZoomAndCenter)||"area",categorize:{categories:N,categorizeByField:S},center:V,markers:j,locationProx:u,dataLayerSettings:X}),E.createElement("div",{className:"map-buttons"},T,D)):null};o0.loadWidget=vl;var Cw=Object.defineProperty,hu=(s,t)=>Cw(s,"name",{value:t,configurable:!0}),Fv=!!(typeof window<"u"&&window.document&&window.document.createElement);function Pr(s,t,{checkForDefaultPrevented:n=!0}={}){return hu(function(u){if(s==null||s(u),n===!1||!u||!u.defaultPrevented)return t==null?void 0:t(u)},"handleEvent")}hu(Pr,"composeEventHandlers");function _w(s){var t;if(!Fv)throw new Error("Cannot access window outside of the DOM");return((t=s==null?void 0:s.ownerDocument)==null?void 0:t.defaultView)??window}hu(_w,"getOwnerWindow");function a0(s){if(!Fv)throw new Error("Cannot access document outside of the DOM");return(s==null?void 0:s.ownerDocument)??document}hu(a0,"getOwnerDocument");function Bv(s,t=!1){const{activeElement:n}=a0(s);if(!(n!=null&&n.nodeName))return null;if(qv(n)&&n.contentDocument)return Bv(n.contentDocument.body,t);if(t){const o=n.getAttribute("aria-activedescendant");if(o){const u=a0(n).getElementById(o);if(u)return u}}return n}hu(Bv,"getActiveElement");function qv(s){return s.tagName==="IFRAME"}hu(qv,"isFrame");var Ew=Object.defineProperty,qi=(s,t)=>Ew(s,"name",{value:t,configurable:!0});function ww(s,t){const n=ce.createContext(t);n.displayName=s+"Context";const o=qi(d=>{const{children:h,...f}=d,v=ce.useMemo(()=>f,Object.values(f));return se.jsx(n.Provider,{value:v,children:h})},"Provider");o.displayName=s+"Provider";function u(d,h={}){const{optional:f=!1}=h,v=ce.useContext(n);if(v)return v;if(t!==void 0)return t;if(!f)throw new Error(`\`${d}\` must be used within \`${s}\``)}return qi(u,"useContext"),[o,u]}qi(ww,"createContext");function fu(s,t=[]){let n=[];function o(d,h){const f=ce.createContext(h);f.displayName=d+"Context";const v=n.length;n=[...n,h];const p=qi(x=>{var U;const{scope:_,children:S,...N}=x,w=((U=_==null?void 0:_[s])==null?void 0:U[v])||f,j=ce.useMemo(()=>N,Object.values(N));return se.jsx(w.Provider,{value:j,children:S})},"Provider");p.displayName=d+"Provider";function y(x,_,S={}){var U;const{optional:N=!1}=S,w=((U=_==null?void 0:_[s])==null?void 0:U[v])||f,j=ce.useContext(w);if(j)return j;if(h!==void 0)return h;if(!N)throw new Error(`\`${x}\` must be used within \`${d}\``)}return qi(y,"useContext"),[p,y]}qi(o,"createContext");const u=qi(()=>{const d=n.map(h=>ce.createContext(h));return qi(function(f){const v=(f==null?void 0:f[s])||d;return ce.useMemo(()=>({[`__scope${s}`]:{...f,[s]:v}}),[f,v])},"useScope")},"createScope");return u.scopeName=s,[o,zv(u,...t)]}qi(fu,"createContextScope");function zv(...s){const t=s[0];if(s.length===1)return t;const n=qi(()=>{const o=s.map(u=>({useScope:u(),scopeName:u.scopeName}));return qi(function(d){const h=o.reduce((f,{useScope:v,scopeName:p})=>{const x=v(d)[`__scope${p}`];return{...f,...x}},{});return ce.useMemo(()=>({[`__scope${t.scopeName}`]:h}),[h])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}qi(zv,"composeContextScopes");var Sw=Object.defineProperty,u0=(s,t)=>Sw(s,"name",{value:t,configurable:!0});function l0(s,t){if(typeof s=="function")return s(t);s!=null&&(s.current=t)}u0(l0,"setRef");function Uv(...s){return t=>{let n=!1;const o=s.map(u=>{const d=l0(u,t);return!n&&typeof d=="function"&&(n=!0),d});if(n)return()=>{for(let u=0;u<o.length;u++){const d=o[u];typeof d=="function"?d():l0(s[u],null)}}}}u0(Uv,"composeRefs");function zi(...s){return ce.useCallback(Uv(...s),s)}u0(zi,"useComposedRefs");var Ow=Object.defineProperty,Ji=(s,t)=>Ow(s,"name",{value:t,configurable:!0});function ca(s){const t=ce.forwardRef((n,o)=>{let{children:u,...d}=n,h=null,f=!1;const v=[];c0(u)&&typeof Qc=="function"&&(u=Qc(u._payload)),ce.Children.forEach(u,_=>{var S;if(Wv(_)){f=!0;const N=_;let w="child"in N.props?N.props.child:N.props.children;c0(w)&&typeof Qc=="function"&&(w=Qc(w._payload)),h=Nw(N,w),v.push((S=h==null?void 0:h.props)==null?void 0:S.children)}else v.push(_)}),h?h=ce.cloneElement(h,void 0,v):!f&&ce.Children.count(u)===1&&ce.isValidElement(u)&&(h=u);const p=h?Gv(h):void 0,y=zi(o,p);if(!h){if(u||u===0)throw new Error(f?Aw(s):Tw(s));return u}const x=Hv(d,h.props??{});return h.type!==ce.Fragment&&(x.ref=o?y:p),ce.cloneElement(h,x)});return t.displayName=`${s}.Slot`,t}Ji(ca,"createSlot");var Vv=Symbol.for("radix.slottable");function Lw(s){const t=Ji(n=>"child"in n?n.children(n.child):n.children,"Slottable");return t.displayName=`${s}.Slottable`,t.__radixId=Vv,t}Ji(Lw,"createSlottable");var Nw=Ji((s,t)=>{if("child"in s.props){const n=s.props.child;return ce.isValidElement(n)?ce.cloneElement(n,void 0,s.props.children(n.props.children)):null}return ce.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function Hv(s,t){const n={...t};for(const o in t){const u=s[o],d=t[o];/^on[A-Z]/.test(o)?u&&d?n[o]=(...f)=>{const v=d(...f);return u(...f),v}:u&&(n[o]=u):o==="style"?n[o]={...u,...d}:o==="className"&&(n[o]=[u,d].filter(Boolean).join(" "))}return{...s,...n}}Ji(Hv,"mergeProps");function Gv(s){var o,u;let t=(o=Object.getOwnPropertyDescriptor(s.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?s.ref:(t=(u=Object.getOwnPropertyDescriptor(s,"ref"))==null?void 0:u.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?s.props.ref:s.props.ref||s.ref)}Ji(Gv,"getElementRef");function Wv(s){return ce.isValidElement(s)&&typeof s.type=="function"&&"__radixId"in s.type&&s.type.__radixId===Vv}Ji(Wv,"isSlottable");var Iw=Symbol.for("react.lazy");function c0(s){return s!=null&&typeof s=="object"&&"$$typeof"in s&&s.$$typeof===Iw&&"_payload"in s&&Zv(s._payload)}Ji(c0,"isLazyComponent");function Zv(s){return typeof s=="object"&&s!==null&&"then"in s}Ji(Zv,"isPromiseLike");var Tw=Ji(s=>`${s} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),Aw=Ji(s=>`${s} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Qc=ce[" use ".trim().toString()],Pw=Object.defineProperty,_r=(s,t)=>Pw(s,"name",{value:t,configurable:!0});function Xv(s){const t=s+"CollectionProvider",[n,o]=fu(t),[u,d]=n(t,{collectionRef:{current:null},itemMap:new Map}),h=_r(w=>{const{scope:j,children:U}=w,M=ce.useRef(null),D=ce.useRef(new Map).current;return se.jsx(u,{scope:j,itemMap:D,collectionRef:M,children:U})},"CollectionProvider");h.displayName=t;const f=s+"CollectionSlot",v=ca(f),p=ce.forwardRef((w,j)=>{const{scope:U,children:M}=w,D=d(f,U),T=zi(j,D.collectionRef);return se.jsx(v,{ref:T,children:M})});p.displayName=f;const y=s+"CollectionItemSlot",x="data-radix-collection-item",_=ca(y),S=ce.forwardRef((w,j)=>{const{scope:U,children:M,...D}=w,T=ce.useRef(null),O=zi(j,T),q=d(y,U);return ce.useEffect(()=>(q.itemMap.set(T,{ref:T,...D}),()=>void q.itemMap.delete(T))),se.jsx(_,{[x]:"",ref:O,children:M})});S.displayName=y;function N(w){const j=d(s+"CollectionConsumer",w);return ce.useCallback(()=>{const M=j.collectionRef.current;if(!M)return[];const D=Array.from(M.querySelectorAll(`[${x}]`));return Array.from(j.itemMap.values()).sort((q,k)=>D.indexOf(q.ref.current)-D.indexOf(k.ref.current))},[j.collectionRef,j.itemMap])}return _r(N,"useCollection"),[{Provider:h,Slot:p,ItemSlot:S},N,o]}_r(Xv,"createCollection");var Yv=new WeakMap,d0=(Li=class extends Map{constructor(n){super(n);O8(this,cr);Rg(this,cr,[...super.keys()]),Yv.set(this,!0)}set(n,o){return Yv.get(this)&&(this.has(n)?Zr(this,cr)[Zr(this,cr).indexOf(n)]=n:Zr(this,cr).push(n)),super.set(n,o),this}insert(n,o,u){const d=this.has(o),h=Zr(this,cr).length,f=h0(n);let v=f>=0?f:h+f;const p=v<0||v>=h?-1:v;if(p===this.size||d&&p===this.size-1||p===-1)return this.set(o,u),this;const y=this.size+(d?0:1);f<0&&v++;const x=[...Zr(this,cr)];let _,S=!1;for(let N=v;N<y;N++)if(v===N){let w=x[N];x[N]===o&&(w=x[N+1]),d&&this.delete(o),_=this.get(w),this.set(o,u)}else{!S&&x[N-1]===o&&(S=!0);const w=x[S?N:N-1],j=_;_=this.get(w),this.delete(w),this.set(w,j)}return this}with(n,o,u){const d=new Li(this);return d.insert(n,o,u),d}before(n){const o=Zr(this,cr).indexOf(n)-1;if(!(o<0))return this.entryAt(o)}setBefore(n,o,u){const d=Zr(this,cr).indexOf(n);return d===-1?this:this.insert(d,o,u)}after(n){let o=Zr(this,cr).indexOf(n);if(o=o===-1||o===this.size-1?-1:o+1,o!==-1)return this.entryAt(o)}setAfter(n,o,u){const d=Zr(this,cr).indexOf(n);return d===-1?this:this.insert(d+1,o,u)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return Rg(this,cr,[]),super.clear()}delete(n){const o=super.delete(n);return o&&Zr(this,cr).splice(Zr(this,cr).indexOf(n),1),o}deleteAt(n){const o=this.keyAt(n);return o!==void 0?this.delete(o):!1}at(n){const o=$c(Zr(this,cr),n);if(o!==void 0)return this.get(o)}entryAt(n){const o=$c(Zr(this,cr),n);if(o!==void 0)return[o,this.get(o)]}indexOf(n){return Zr(this,cr).indexOf(n)}keyAt(n){return $c(Zr(this,cr),n)}from(n,o){const u=this.indexOf(n);if(u===-1)return;let d=u+o;return d<0&&(d=0),d>=this.size&&(d=this.size-1),this.at(d)}keyFrom(n,o){const u=this.indexOf(n);if(u===-1)return;let d=u+o;return d<0&&(d=0),d>=this.size&&(d=this.size-1),this.keyAt(d)}find(n,o){let u=0;for(const d of this){if(Reflect.apply(n,o,[d,u,this]))return d;u++}}findIndex(n,o){let u=0;for(const d of this){if(Reflect.apply(n,o,[d,u,this]))return u;u++}return-1}filter(n,o){const u=[];let d=0;for(const h of this)Reflect.apply(n,o,[h,d,this])&&u.push(h),d++;return new Li(u)}map(n,o){const u=[];let d=0;for(const h of this)u.push([h[0],Reflect.apply(n,o,[h,d,this])]),d++;return new Li(u)}reduce(...n){const[o,u]=n;let d=0,h=u??this.at(0);for(const f of this)d===0&&n.length===1?h=f:h=Reflect.apply(o,this,[h,f,d,this]),d++;return h}reduceRight(...n){const[o,u]=n;let d=u??this.at(-1);for(let h=this.size-1;h>=0;h--){const f=this.at(h);h===this.size-1&&n.length===1?d=f:d=Reflect.apply(o,this,[d,f,h,this])}return d}toSorted(n){const o=[...this.entries()].sort(n);return new Li(o)}toReversed(){const n=new Li;for(let o=this.size-1;o>=0;o--){const u=this.keyAt(o),d=this.get(u);n.set(u,d)}return n}toSpliced(...n){const o=[...this.entries()];return o.splice(...n),new Li(o)}slice(n,o){const u=new Li;let d=this.size-1;if(n===void 0)return u;n<0&&(n=n+this.size),o!==void 0&&o>0&&(d=o-1);for(let h=n;h<=d;h++){const f=this.keyAt(h),v=this.get(f);u.set(f,v)}return u}every(n,o){let u=0;for(const d of this){if(!Reflect.apply(n,o,[d,u,this]))return!1;u++}return!0}some(n,o){let u=0;for(const d of this){if(Reflect.apply(n,o,[d,u,this]))return!0;u++}return!1}},cr=new WeakMap,_r(Li,"OrderedDict"),Li);function $c(s,t){if("at"in Array.prototype)return Array.prototype.at.call(s,t);const n=Kv(s,t);return n===-1?void 0:s[n]}_r($c,"at");function Kv(s,t){const n=s.length,o=h0(t),u=o>=0?o:n+o;return u<0||u>=n?-1:u}_r(Kv,"toSafeIndex");function h0(s){return s!==s||s===0?0:Math.trunc(s)}_r(h0,"toSafeInteger");function Dw(s){const t=s+"CollectionProvider",[n,o]=fu(t),[u,d]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new d0,setItemMap:_r(()=>{},"setItemMap")}),h=_r(({state:D,...T})=>D?se.jsx(v,{...T,state:D}):se.jsx(f,{...T}),"CollectionProvider");h.displayName=t;const f=_r(D=>{const T=j();return se.jsx(v,{...D,state:T})},"CollectionInit");f.displayName=t+"Init";const v=_r(D=>{const{scope:T,children:O,state:q}=D,k=ce.useRef(null),[H,V]=ce.useState(null),Y=zi(k,V),[R,A]=q;return ce.useEffect(()=>{if(!H)return;const X=$v(()=>{});return X.observe(H,{childList:!0,subtree:!0}),()=>{X.disconnect()}},[H]),se.jsx(u,{scope:T,itemMap:R,setItemMap:A,collectionRef:Y,collectionRefObject:k,collectionElement:H,children:O})},"CollectionProviderImpl");v.displayName=t+"Impl";const p=s+"CollectionSlot",y=ca(p),x=ce.forwardRef((D,T)=>{const{scope:O,children:q}=D,k=d(p,O),H=zi(T,k.collectionRef);return se.jsx(y,{ref:H,children:q})});x.displayName=p;const _=s+"CollectionItemSlot",S="data-radix-collection-item",N=ca(_),w=ce.forwardRef((D,T)=>{const{scope:O,children:q,...k}=D,H=ce.useRef(null),[V,Y]=ce.useState(null),R=zi(T,H,Y),A=d(_,O),{setItemMap:X}=A,ee=ce.useRef(k);Jv(ee.current,k)||(ee.current=k);const ue=ee.current;return ce.useEffect(()=>{const G=ue;return X(K=>V?K.has(V)?K.set(V,{...G,element:V}).toSorted(f0):(K.set(V,{...G,element:V}),K.toSorted(f0)):K),()=>{X(K=>!V||!K.has(V)?K:(K.delete(V),new d0(K)))}},[V,ue,X]),se.jsx(N,{[S]:"",ref:R,children:q})});w.displayName=_;function j(){return ce.useState(new d0)}_r(j,"useInitCollection");function U(D){const{itemMap:T}=d(s+"CollectionConsumer",D);return T}return _r(U,"useCollection"),[{Provider:h,Slot:x,ItemSlot:w},{createCollectionScope:o,useCollection:U,useInitCollection:j}]}_r(Dw,"createCollection");function Jv(s,t){if(s===t)return!0;if(typeof s!="object"||typeof t!="object"||s==null||t==null)return!1;const n=Object.keys(s),o=Object.keys(t);if(n.length!==o.length)return!1;for(const u of n)if(!Object.prototype.hasOwnProperty.call(t,u)||s[u]!==t[u])return!1;return!0}_r(Jv,"shallowEqual");function Qv(s,t){return!!(t.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_PRECEDING)}_r(Qv,"isElementPreceding");function f0(s,t){return!s[1].element||!t[1].element?0:Qv(s[1].element,t[1].element)?-1:1}_r(f0,"sortByDocumentPosition");function $v(s){return new MutationObserver(n=>{for(const o of n)if(o.type==="childList"){s();return}})}_r($v,"getChildListObserver");var Io=globalThis!=null&&globalThis.document?ce.useLayoutEffect:()=>{},Mw=Object.defineProperty,kw=(s,t)=>Mw(s,"name",{value:t,configurable:!0}),Rw=ce[" useId ".trim().toString()]||(()=>{}),jw=0;function gu(s){const[t,n]=ce.useState(Rw());return Io(()=>{s||n(o=>o??String(jw++))},[s]),s||(t?`radix-${t}`:"")}kw(gu,"useId");var Fw=Object.defineProperty,Bw=(s,t)=>Fw(s,"name",{value:t,configurable:!0}),qw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],wi=qw.reduce((s,t)=>{const n=ca(`Primitive.${t}`),o=ce.forwardRef((u,d)=>{const{asChild:h,...f}=u,v=h?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),se.jsx(v,{...f,ref:d})});return o.displayName=`Primitive.${t}`,{...s,[t]:o}},{});function e4(s,t){s&&Fg.flushSync(()=>s.dispatchEvent(t))}Bw(e4,"dispatchDiscreteCustomEvent");var zw=Object.defineProperty,Uw=(s,t)=>zw(s,"name",{value:t,configurable:!0});function da(s){const t=ce.useRef(s);return ce.useEffect(()=>{t.current=s}),ce.useMemo(()=>((...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)}),[])}Uw(da,"useCallbackRef");var Vw=Object.defineProperty,Hw=(s,t)=>Vw(s,"name",{value:t,configurable:!0}),t4=ce[" useEffectEvent ".trim().toString()],n4=ce[" useInsertionEffect ".trim().toString()];function r4(s){if(typeof t4=="function")return t4(s);const t=ce.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof n4=="function"?n4(()=>{t.current=s}):Io(()=>{t.current=s}),ce.useMemo(()=>((...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)}),[])}Hw(r4,"useEffectEvent");var Gw=Object.defineProperty,Sl=(s,t)=>Gw(s,"name",{value:t,configurable:!0}),Ww=ce[" useInsertionEffect ".trim().toString()]||Io;function ed({prop:s,defaultProp:t,onChange:n=Sl(()=>{},"onChange"),caller:o}){const[u,d,h]=i4({defaultProp:t,onChange:n}),f=s!==void 0,v=f?s:u,p=ce.useCallback(y=>{var x;if(f){const _=s4(y)?y(s):y;_!==s&&((x=h.current)==null||x.call(h,_))}else d(y)},[f,s,d,h]);return[v,p]}Sl(ed,"useControllableState");function i4({defaultProp:s,onChange:t}){const[n,o]=ce.useState(s),u=ce.useRef(n),d=ce.useRef(t);return Ww(()=>{d.current=t},[t]),ce.useEffect(()=>{var h;u.current!==n&&((h=d.current)==null||h.call(d,n),u.current=n)},[n,u]),[n,o,d]}Sl(i4,"useUncontrolledState");function s4(s){return typeof s=="function"}Sl(s4,"isFunction");var o4=Symbol("RADIX:SYNC_STATE");function Zw(s,t,n,o){const{prop:u,defaultProp:d,onChange:h,caller:f}=t,v=u!==void 0,p=r4(h),y=[{...n,state:d}];o&&y.push(o);const[x,_]=ce.useReducer((j,U)=>{if(U.type===o4)return{...j,state:U.state};const M=s(j,U);return v&&!Object.is(M.state,j.state)&&p(M.state),M},...y),S=x.state,N=ce.useRef(S);ce.useEffect(()=>{N.current!==S&&(N.current=S,v||p(S))},[S,N,v]);const w=ce.useMemo(()=>u!==void 0?{...x,state:u}:x,[x,u]);return ce.useEffect(()=>{v&&!Object.is(u,x.state)&&_({type:o4,state:u})},[u,x.state,v]),[w,_]}Sl(Zw,"useControllableStateReducer");var Xw=Object.defineProperty,Yw=(s,t)=>Xw(s,"name",{value:t,configurable:!0}),Kw=ce.createContext(void 0);function g0(s){const t=ce.useContext(Kw);return s||t||"ltr"}Yw(g0,"useDirection");var Jw=Object.defineProperty,m0=(s,t)=>Jw(s,"name",{value:t,configurable:!0}),p0=!1;function a4(){const[s,t]=ce.useState(p0);return ce.useEffect(()=>{p0||(p0=!0,t(!0))},[]),s}m0(a4,"useIsHydrated");var u4=ce[" useSyncExternalStore ".trim().toString()];function l4(){return()=>{}}m0(l4,"subscribe");function c4(){return u4(l4,()=>!0,()=>!1)}m0(c4,"useIsHydratedModern");var Qw=typeof u4=="function"?c4:a4,$w=Object.defineProperty,ha=(s,t)=>$w(s,"name",{value:t,configurable:!0}),v0="rovingFocusGroup.onEntryFocus",eS={bubbles:!1,cancelable:!0},td="RovingFocusGroup",[y0,d4,tS]=Xv(td),[nS,h4]=fu(td,[tS]),[rS,iS]=nS(td),sS=ce.forwardRef(ha(function(t,n){return se.jsx(y0.Provider,{scope:t.__scopeRovingFocusGroup,children:se.jsx(y0.Slot,{scope:t.__scopeRovingFocusGroup,children:se.jsx(oS,{...t,ref:n})})})},"RovingFocusGroup")),oS=ce.forwardRef(ha(function(t,n){const{__scopeRovingFocusGroup:o,orientation:u,loop:d=!1,dir:h,currentTabStopId:f,defaultCurrentTabStopId:v,onCurrentTabStopIdChange:p,onEntryFocus:y,preventScrollOnEntryFocus:x=!1,..._}=t,S=ce.useRef(null),N=zi(n,S),w=g0(h),[j,U]=ed({prop:f,defaultProp:v??null,onChange:p,caller:td}),[M,D]=ce.useState(!1),T=da(y),O=d4(o),q=ce.useRef(!1),[k,H]=ce.useState(0);return ce.useEffect(()=>{const V=S.current;if(V)return V.addEventListener(v0,T),()=>V.removeEventListener(v0,T)},[T]),se.jsx(rS,{scope:o,orientation:u,dir:w,loop:d,currentTabStopId:j,onItemFocus:ce.useCallback(V=>U(V),[U]),onItemShiftTab:ce.useCallback(()=>D(!0),[]),onFocusableItemAdd:ce.useCallback(()=>H(V=>V+1),[]),onFocusableItemRemove:ce.useCallback(()=>H(V=>V-1),[]),children:se.jsx(wi.div,{tabIndex:M||k===0?-1:0,"data-orientation":u,..._,ref:N,style:{outline:"none",...t.style},onMouseDown:Pr(t.onMouseDown,()=>{q.current=!0}),onFocus:Pr(t.onFocus,V=>{const Y=!q.current;if(V.target===V.currentTarget&&Y&&!M){const R=new CustomEvent(v0,eS);if(V.currentTarget.dispatchEvent(R),!R.defaultPrevented){const A=O().filter(K=>K.focusable),X=A.find(K=>K.active),ee=A.find(K=>K.id===j),G=[X,ee,...A].filter(Boolean).map(K=>K.ref.current);b0(G,x)}}q.current=!1}),onBlur:Pr(t.onBlur,()=>D(!1))})})},"RovingFocusGroupImpl")),aS="RovingFocusGroupItem",uS=ce.forwardRef(ha(function(t,n){const{__scopeRovingFocusGroup:o,focusable:u=!0,active:d=!1,tabStopId:h,children:f,...v}=t,p=gu(),y=h||p,x=iS(aS,o),_=x.currentTabStopId===y,S=d4(o),{onFocusableItemAdd:N,onFocusableItemRemove:w,currentTabStopId:j}=x,U=Qw();return Io(()=>{if(!(!U||!u))return N(),()=>w()},[U,u,N,w]),ce.useEffect(()=>{if(!(U||!u))return N(),()=>w()},[U,u,N,w]),se.jsx(y0.ItemSlot,{scope:o,id:y,focusable:u,active:d,children:se.jsx(wi.span,{tabIndex:_?0:-1,"data-orientation":x.orientation,...v,ref:n,onMouseDown:Pr(t.onMouseDown,M=>{u?x.onItemFocus(y):M.preventDefault()}),onFocus:Pr(t.onFocus,()=>x.onItemFocus(y)),onKeyDown:Pr(t.onKeyDown,M=>{if(M.key==="Tab"&&M.shiftKey){x.onItemShiftTab();return}if(M.target!==M.currentTarget)return;const D=g4(M,x.orientation,x.dir);if(D!==void 0){if(M.metaKey||M.ctrlKey||M.altKey||M.shiftKey)return;M.preventDefault();let O=S().filter(q=>q.focusable).map(q=>q.ref.current);if(D==="last")O.reverse();else if(D==="prev"||D==="next"){D==="prev"&&O.reverse();const q=O.indexOf(M.currentTarget);O=x.loop?m4(O,q+1):O.slice(q+1)}setTimeout(()=>b0(O))}}),children:typeof f=="function"?f({isCurrentTabStop:_,hasTabStop:j!=null}):f})})},"RovingFocusGroupItem")),lS={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function f4(s,t){return t!=="rtl"?s:s==="ArrowLeft"?"ArrowRight":s==="ArrowRight"?"ArrowLeft":s}ha(f4,"getDirectionAwareKey");function g4(s,t,n){const o=f4(s.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return lS[o]}ha(g4,"getFocusIntent");function b0(s,t=!1){const n=document.activeElement;for(const o of s)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}ha(b0,"focusFirst");function m4(s,t){return s.map((n,o)=>s[(t+o)%s.length])}ha(m4,"wrapArray");var cS=sS,dS=uS,hS=Object.defineProperty,Qs=(s,t)=>hS(s,"name",{value:t,configurable:!0});function p4(s,t){return ce.useReducer((n,o)=>t[n][o]??n,s)}Qs(p4,"useStateMachine");var nd=Qs(s=>{const{present:t,children:n}=s,o=v4(t),u=typeof n=="function"?n({present:o.isPresent}):ce.Children.only(n),d=y4(o.ref,b4(u));return typeof n=="function"||o.isPresent?ce.cloneElement(u,{ref:d}):null},"Presence");function v4(s){const[t,n]=ce.useState(),o=ce.useRef(null),u=ce.useRef(s),d=ce.useRef("none"),h=ce.useRef(void 0),f=s?"mounted":"unmounted",[v,p]=p4(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return ce.useEffect(()=>{v==="mounted"?(d.current=h.current??mu(o.current),h.current=void 0):d.current="none"},[v]),Io(()=>{const y=o.current,x=u.current;if(x!==s){const S=d.current,N=mu(y);s?(h.current=N,p("MOUNT")):N==="none"||(y==null?void 0:y.display)==="none"?p("UNMOUNT"):p(x&&S!==N?"ANIMATION_OUT":"UNMOUNT"),u.current=s}},[s,p]),Io(()=>{if(t){let y;const x=t.ownerDocument.defaultView??window,_=Qs(N=>{const j=mu(o.current).includes(CSS.escape(N.animationName));if(N.target===t&&j&&(p("ANIMATION_END"),!u.current)){const U=t.style.animationFillMode;t.style.animationFillMode="forwards",y=x.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=U)})}},"handleAnimationEnd"),S=Qs(N=>{N.target===t&&(d.current=mu(o.current))},"handleAnimationStart");return t.addEventListener("animationstart",S),t.addEventListener("animationcancel",_),t.addEventListener("animationend",_),()=>{x.clearTimeout(y),t.removeEventListener("animationstart",S),t.removeEventListener("animationcancel",_),t.removeEventListener("animationend",_)}}else p("ANIMATION_END")},[t,p]),{isPresent:["mounted","unmountSuspended"].includes(v),ref:ce.useCallback(y=>{if(y){const x=getComputedStyle(y);o.current=x,h.current=mu(x)}else o.current=null;n(y)},[])}}Qs(v4,"usePresence");function x0(s,t){if(typeof s=="function")return s(t);s!=null&&(s.current=t)}Qs(x0,"setRef");function y4(...s){const t=ce.useRef(s);return t.current=s,ce.useCallback(n=>{const o=t.current;let u=!1;const d=o.map(h=>{const f=x0(h,n);return!u&&typeof f=="function"&&(u=!0),f});if(u)return()=>{for(let h=0;h<d.length;h++){const f=d[h];typeof f=="function"?f():x0(o[h],null)}}},[])}Qs(y4,"useStableComposedRefs");function mu(s){return(s==null?void 0:s.animationName)||"none"}Qs(mu,"getAnimationName");function b4(s){var o,u;let t=(o=Object.getOwnPropertyDescriptor(s.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?s.ref:(t=(u=Object.getOwnPropertyDescriptor(s,"ref"))==null?void 0:u.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?s.props.ref:s.props.ref||s.ref)}Qs(b4,"getElementRef");var fS=Object.defineProperty,pu=(s,t)=>fS(s,"name",{value:t,configurable:!0}),C0="Tabs",[gS,GA]=fu(C0,[h4]),x4=h4(),[mS,_0]=gS(C0),pS=ce.forwardRef(pu(function(t,n){const{__scopeTabs:o,value:u,onValueChange:d,defaultValue:h,orientation:f="horizontal",dir:v,activationMode:p="automatic",...y}=t,x=g0(v),[_,S]=ed({prop:u,onChange:d,defaultProp:h??"",caller:C0});return se.jsx(mS,{scope:o,baseId:gu(),value:_,onValueChange:S,orientation:f,dir:x,activationMode:p,children:se.jsx(wi.div,{dir:x,"data-orientation":f,...y,ref:n})})},"Tabs")),vS="TabsList",yS=ce.forwardRef(pu(function(t,n){const{__scopeTabs:o,loop:u=!0,...d}=t,h=_0(vS,o),f=x4(o);return se.jsx(cS,{asChild:!0,...f,orientation:h.orientation,dir:h.dir,loop:u,children:se.jsx(wi.div,{role:"tablist","aria-orientation":h.orientation,...d,ref:n})})},"TabsList")),bS="TabsTrigger",xS=ce.forwardRef(pu(function(t,n){const{__scopeTabs:o,value:u,disabled:d=!1,...h}=t,f=_0(bS,o),v=x4(o),p=E0(f.baseId,u),y=w0(f.baseId,u),x=u===f.value;return se.jsx(dS,{asChild:!0,...v,focusable:!d,active:x,children:se.jsx(wi.button,{type:"button",role:"tab","aria-selected":x,"aria-controls":y,"data-state":x?"active":"inactive","data-disabled":d?"":void 0,disabled:d,id:p,...h,ref:n,onMouseDown:Pr(t.onMouseDown,_=>{!d&&_.button===0&&_.ctrlKey===!1?f.onValueChange(u):_.preventDefault()}),onKeyDown:Pr(t.onKeyDown,_=>{d||_.target!==_.currentTarget||[" ","Enter"].includes(_.key)&&f.onValueChange(u)}),onFocus:Pr(t.onFocus,()=>{const _=f.activationMode!=="manual";!x&&!d&&_&&f.onValueChange(u)})})})},"TabsTrigger")),CS="TabsContent",_S=ce.forwardRef(pu(function(t,n){const{__scopeTabs:o,value:u,forceMount:d,children:h,...f}=t,v=_0(CS,o),p=E0(v.baseId,u),y=w0(v.baseId,u),x=u===v.value,_=ce.useRef(x);return ce.useEffect(()=>{const S=requestAnimationFrame(()=>_.current=!1);return()=>cancelAnimationFrame(S)},[]),se.jsx(nd,{present:d||x,children:({present:S})=>se.jsx(wi.div,{"data-state":x?"active":"inactive","data-orientation":v.orientation,role:"tabpanel","aria-labelledby":p,hidden:!S,id:y,tabIndex:0,...f,ref:n,style:{...t.style,animationDuration:_.current?"0s":void 0},children:S&&h})})},"TabsContent"));function E0(s,t){return`${s}-trigger-${t}`}pu(E0,"makeTriggerId");function w0(s,t){return`${s}-content-${t}`}pu(w0,"makeContentId");var ES=pS,C4=yS,_4=xS,E4=_S;function wS(){for(var s=0,t,n,o="";s<arguments.length;)(t=arguments[s++])&&(n=w4(t))&&(o&&(o+=" "),o+=n);return o}function w4(s){if(typeof s=="string")return s;for(var t,n="",o=0;o<s.length;o++)s[o]&&(t=w4(s[o]))&&(n&&(n+=" "),n+=t);return n}var S0="-";function SS(s){var t=LS(s),n=s.conflictingClassGroups,o=s.conflictingClassGroupModifiers,u=o===void 0?{}:o;function d(f){var v=f.split(S0);return v[0]===""&&v.length!==1&&v.shift(),S4(v,t)||OS(f)}function h(f,v){var p=n[f]||[];return v&&u[f]?[].concat(p,u[f]):p}return{getClassGroupId:d,getConflictingClassGroupIds:h}}function S4(s,t){var h;if(s.length===0)return t.classGroupId;var n=s[0],o=t.nextPart.get(n),u=o?S4(s.slice(1),o):void 0;if(u)return u;if(t.validators.length!==0){var d=s.join(S0);return(h=t.validators.find(function(f){var v=f.validator;return v(d)}))==null?void 0:h.classGroupId}}var O4=/^\[(.+)\]$/;function OS(s){if(O4.test(s)){var t=O4.exec(s)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function LS(s){var t=s.theme,n=s.prefix,o={nextPart:new Map,validators:[]},u=IS(Object.entries(s.classGroups),n);return u.forEach(function(d){var h=d[0],f=d[1];O0(f,o,h,t)}),o}function O0(s,t,n,o){s.forEach(function(u){if(typeof u=="string"){var d=u===""?t:L4(t,u);d.classGroupId=n;return}if(typeof u=="function"){if(NS(u)){O0(u(o),t,n,o);return}t.validators.push({validator:u,classGroupId:n});return}Object.entries(u).forEach(function(h){var f=h[0],v=h[1];O0(v,L4(t,f),n,o)})})}function L4(s,t){var n=s;return t.split(S0).forEach(function(o){n.nextPart.has(o)||n.nextPart.set(o,{nextPart:new Map,validators:[]}),n=n.nextPart.get(o)}),n}function NS(s){return s.isThemeGetter}function IS(s,t){return t?s.map(function(n){var o=n[0],u=n[1],d=u.map(function(h){return typeof h=="string"?t+h:typeof h=="object"?Object.fromEntries(Object.entries(h).map(function(f){var v=f[0],p=f[1];return[t+v,p]})):h});return[o,d]}):s}function TS(s){if(s<1)return{get:function(){},set:function(){}};var t=0,n=new Map,o=new Map;function u(d,h){n.set(d,h),t++,t>s&&(t=0,o=n,n=new Map)}return{get:function(h){var f=n.get(h);if(f!==void 0)return f;if((f=o.get(h))!==void 0)return u(h,f),f},set:function(h,f){n.has(h)?n.set(h,f):u(h,f)}}}var N4="!";function AS(s){var t=s.separator||":",n=t.length===1,o=t[0],u=t.length;return function(h){for(var f=[],v=0,p=0,y,x=0;x<h.length;x++){var _=h[x];if(v===0){if(_===o&&(n||h.slice(x,x+u)===t)){f.push(h.slice(p,x)),p=x+u;continue}if(_==="/"){y=x;continue}}_==="["?v++:_==="]"&&v--}var S=f.length===0?h:h.substring(p),N=S.startsWith(N4),w=N?S.substring(1):S,j=y&&y>p?y-p:void 0;return{modifiers:f,hasImportantModifier:N,baseClassName:w,maybePostfixModifierPosition:j}}}function PS(s){if(s.length<=1)return s;var t=[],n=[];return s.forEach(function(o){var u=o[0]==="[";u?(t.push.apply(t,n.sort().concat([o])),n=[]):n.push(o)}),t.push.apply(t,n.sort()),t}function DS(s){return{cache:TS(s.cacheSize),splitModifiers:AS(s),...SS(s)}}var MS=/\s+/;function kS(s,t){var n=t.splitModifiers,o=t.getClassGroupId,u=t.getConflictingClassGroupIds,d=new Set;return s.trim().split(MS).map(function(h){var f=n(h),v=f.modifiers,p=f.hasImportantModifier,y=f.baseClassName,x=f.maybePostfixModifierPosition,_=o(x?y.substring(0,x):y),S=!!x;if(!_){if(!x)return{isTailwindClass:!1,originalClassName:h};if(_=o(y),!_)return{isTailwindClass:!1,originalClassName:h};S=!1}var N=PS(v).join(":"),w=p?N+N4:N;return{isTailwindClass:!0,modifierId:w,classGroupId:_,originalClassName:h,hasPostfixModifier:S}}).reverse().filter(function(h){if(!h.isTailwindClass)return!0;var f=h.modifierId,v=h.classGroupId,p=h.hasPostfixModifier,y=f+v;return d.has(y)?!1:(d.add(y),u(v,p).forEach(function(x){return d.add(f+x)}),!0)}).reverse().map(function(h){return h.originalClassName}).join(" ")}function RS(){for(var s=arguments.length,t=new Array(s),n=0;n<s;n++)t[n]=arguments[n];var o,u,d,h=f;function f(p){var y=t[0],x=t.slice(1),_=x.reduce(function(S,N){return N(S)},y());return o=DS(_),u=o.cache.get,d=o.cache.set,h=v,v(p)}function v(p){var y=u(p);if(y)return y;var x=kS(p,o);return d(p,x),x}return function(){return h(wS.apply(null,arguments))}}function Mn(s){var t=function(o){return o[s]||[]};return t.isThemeGetter=!0,t}var I4=/^\[(?:([a-z-]+):)?(.+)\]$/i,jS=/^\d+\/\d+$/,FS=new Set(["px","full","screen"]),BS=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qS=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,zS=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function Qi(s){return fa(s)||FS.has(s)||jS.test(s)||L0(s)}function L0(s){return ga(s,"length",ZS)}function US(s){return ga(s,"size",T4)}function VS(s){return ga(s,"position",T4)}function HS(s){return ga(s,"url",XS)}function rd(s){return ga(s,"number",fa)}function fa(s){return!Number.isNaN(Number(s))}function GS(s){return s.endsWith("%")&&fa(s.slice(0,-1))}function Ol(s){return A4(s)||ga(s,"number",A4)}function tn(s){return I4.test(s)}function Ll(){return!0}function To(s){return BS.test(s)}function WS(s){return ga(s,"",YS)}function ga(s,t,n){var o=I4.exec(s);return o?o[1]?o[1]===t:n(o[2]):!1}function ZS(s){return qS.test(s)}function T4(){return!1}function XS(s){return s.startsWith("url(")}function A4(s){return Number.isInteger(Number(s))}function YS(s){return zS.test(s)}function KS(){var s=Mn("colors"),t=Mn("spacing"),n=Mn("blur"),o=Mn("brightness"),u=Mn("borderColor"),d=Mn("borderRadius"),h=Mn("borderSpacing"),f=Mn("borderWidth"),v=Mn("contrast"),p=Mn("grayscale"),y=Mn("hueRotate"),x=Mn("invert"),_=Mn("gap"),S=Mn("gradientColorStops"),N=Mn("gradientColorStopPositions"),w=Mn("inset"),j=Mn("margin"),U=Mn("opacity"),M=Mn("padding"),D=Mn("saturate"),T=Mn("scale"),O=Mn("sepia"),q=Mn("skew"),k=Mn("space"),H=Mn("translate"),V=function(){return["auto","contain","none"]},Y=function(){return["auto","hidden","clip","visible","scroll"]},R=function(){return["auto",tn,t]},A=function(){return[tn,t]},X=function(){return["",Qi]},ee=function(){return["auto",fa,tn]},ue=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},G=function(){return["solid","dashed","dotted","double","none"]},K=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},B=function(){return["start","end","center","between","around","evenly","stretch"]},te=function(){return["","0",tn]},Q=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},$=function(){return[fa,rd]},re=function(){return[fa,tn]};return{cacheSize:500,theme:{colors:[Ll],spacing:[Qi],blur:["none","",To,tn],brightness:$(),borderColor:[s],borderRadius:["none","","full",To,tn],borderSpacing:A(),borderWidth:X(),contrast:$(),grayscale:te(),hueRotate:re(),invert:te(),gap:A(),gradientColorStops:[s],gradientColorStopPositions:[GS,L0],inset:R(),margin:R(),opacity:$(),padding:A(),saturate:$(),scale:$(),sepia:te(),skew:re(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",tn]}],container:["container"],columns:[{columns:[To]}],"break-after":[{"break-after":Q()}],"break-before":[{"break-before":Q()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(ue(),[tn])}],overflow:[{overflow:Y()}],"overflow-x":[{"overflow-x":Y()}],"overflow-y":[{"overflow-y":Y()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ol]}],basis:[{basis:R()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",tn]}],grow:[{grow:te()}],shrink:[{shrink:te()}],order:[{order:["first","last","none",Ol]}],"grid-cols":[{"grid-cols":[Ll]}],"col-start-end":[{col:["auto",{span:["full",Ol]},tn]}],"col-start":[{"col-start":ee()}],"col-end":[{"col-end":ee()}],"grid-rows":[{"grid-rows":[Ll]}],"row-start-end":[{row:["auto",{span:[Ol]},tn]}],"row-start":[{"row-start":ee()}],"row-end":[{"row-end":ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",tn]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",tn]}],gap:[{gap:[_]}],"gap-x":[{"gap-x":[_]}],"gap-y":[{"gap-y":[_]}],"justify-content":[{justify:["normal"].concat(B())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(B(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(B(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[M]}],px:[{px:[M]}],py:[{py:[M]}],ps:[{ps:[M]}],pe:[{pe:[M]}],pt:[{pt:[M]}],pr:[{pr:[M]}],pb:[{pb:[M]}],pl:[{pl:[M]}],m:[{m:[j]}],mx:[{mx:[j]}],my:[{my:[j]}],ms:[{ms:[j]}],me:[{me:[j]}],mt:[{mt:[j]}],mr:[{mr:[j]}],mb:[{mb:[j]}],ml:[{ml:[j]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",tn,t]}],"min-w":[{"min-w":["min","max","fit",tn,Qi]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[To]},To,tn]}],h:[{h:[tn,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",tn,Qi]}],"max-h":[{"max-h":[tn,t,"min","max","fit"]}],"font-size":[{text:["base",To,L0]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",rd]}],"font-family":[{font:[Ll]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",tn]}],"line-clamp":[{"line-clamp":["none",fa,rd]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",tn,Qi]}],"list-image":[{"list-image":["none",tn]}],"list-style-type":[{list:["none","disc","decimal",tn]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[s]}],"placeholder-opacity":[{"placeholder-opacity":[U]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[s]}],"text-opacity":[{"text-opacity":[U]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(G(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",Qi]}],"underline-offset":[{"underline-offset":["auto",tn,Qi]}],"text-decoration-color":[{decoration:[s]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",tn]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",tn]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[U]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(ue(),[VS])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",US]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},HS]}],"bg-color":[{bg:[s]}],"gradient-from-pos":[{from:[N]}],"gradient-via-pos":[{via:[N]}],"gradient-to-pos":[{to:[N]}],"gradient-from":[{from:[S]}],"gradient-via":[{via:[S]}],"gradient-to":[{to:[S]}],rounded:[{rounded:[d]}],"rounded-s":[{"rounded-s":[d]}],"rounded-e":[{"rounded-e":[d]}],"rounded-t":[{"rounded-t":[d]}],"rounded-r":[{"rounded-r":[d]}],"rounded-b":[{"rounded-b":[d]}],"rounded-l":[{"rounded-l":[d]}],"rounded-ss":[{"rounded-ss":[d]}],"rounded-se":[{"rounded-se":[d]}],"rounded-ee":[{"rounded-ee":[d]}],"rounded-es":[{"rounded-es":[d]}],"rounded-tl":[{"rounded-tl":[d]}],"rounded-tr":[{"rounded-tr":[d]}],"rounded-br":[{"rounded-br":[d]}],"rounded-bl":[{"rounded-bl":[d]}],"border-w":[{border:[f]}],"border-w-x":[{"border-x":[f]}],"border-w-y":[{"border-y":[f]}],"border-w-s":[{"border-s":[f]}],"border-w-e":[{"border-e":[f]}],"border-w-t":[{"border-t":[f]}],"border-w-r":[{"border-r":[f]}],"border-w-b":[{"border-b":[f]}],"border-w-l":[{"border-l":[f]}],"border-opacity":[{"border-opacity":[U]}],"border-style":[{border:[].concat(G(),["hidden"])}],"divide-x":[{"divide-x":[f]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[f]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[U]}],"divide-style":[{divide:G()}],"border-color":[{border:[u]}],"border-color-x":[{"border-x":[u]}],"border-color-y":[{"border-y":[u]}],"border-color-t":[{"border-t":[u]}],"border-color-r":[{"border-r":[u]}],"border-color-b":[{"border-b":[u]}],"border-color-l":[{"border-l":[u]}],"divide-color":[{divide:[u]}],"outline-style":[{outline:[""].concat(G())}],"outline-offset":[{"outline-offset":[tn,Qi]}],"outline-w":[{outline:[Qi]}],"outline-color":[{outline:[s]}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[s]}],"ring-opacity":[{"ring-opacity":[U]}],"ring-offset-w":[{"ring-offset":[Qi]}],"ring-offset-color":[{"ring-offset":[s]}],shadow:[{shadow:["","inner","none",To,WS]}],"shadow-color":[{shadow:[Ll]}],opacity:[{opacity:[U]}],"mix-blend":[{"mix-blend":K()}],"bg-blend":[{"bg-blend":K()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[o]}],contrast:[{contrast:[v]}],"drop-shadow":[{"drop-shadow":["","none",To,tn]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[y]}],invert:[{invert:[x]}],saturate:[{saturate:[D]}],sepia:[{sepia:[O]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[v]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y]}],"backdrop-invert":[{"backdrop-invert":[x]}],"backdrop-opacity":[{"backdrop-opacity":[U]}],"backdrop-saturate":[{"backdrop-saturate":[D]}],"backdrop-sepia":[{"backdrop-sepia":[O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[h]}],"border-spacing-x":[{"border-spacing-x":[h]}],"border-spacing-y":[{"border-spacing-y":[h]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",tn]}],duration:[{duration:re()}],ease:[{ease:["linear","in","out","in-out",tn]}],delay:[{delay:re()}],animate:[{animate:["none","spin","ping","pulse","bounce",tn]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[T]}],"scale-x":[{"scale-x":[T]}],"scale-y":[{"scale-y":[T]}],rotate:[{rotate:[Ol,tn]}],"translate-x":[{"translate-x":[H]}],"translate-y":[{"translate-y":[H]}],"skew-x":[{"skew-x":[q]}],"skew-y":[{"skew-y":[q]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",tn]}],accent:[{accent:["auto",s]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",tn]}],"caret-color":[{caret:[s]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",tn]}],fill:[{fill:[s,"none"]}],"stroke-w":[{stroke:[Qi,rd]}],stroke:[{stroke:[s,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var P4=RS(KS);function N0(...s){return P4(Ee(s))}const JS=ES,D4=ce.forwardRef(({className:s,...t},n)=>ce.createElement(C4,{ref:n,className:N0("inline-flex h-10 items-center justify-start p-1 text-muted-foreground border-b-2 overflow-hidden",s),...t}));D4.displayName=C4.displayName;const I0=ce.forwardRef(({className:s,...t},n)=>ce.createElement(_4,{ref:n,className:N0("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground",s),...t}));I0.displayName=_4.displayName;const T0=ce.forwardRef(({className:s,...t},n)=>ce.createElement(E4,{ref:n,className:N0("ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",s),...t}));T0.displayName=E4.displayName;const M4={superuser:["superuser","admin","editor","moderator","member","anonymous","all"],admin:["admin","editor","moderator","member","anonymous","all"],editor:["editor","moderator","member","anonymous","all"],moderator:["moderator","member","anonymous","all"],member:["member","anonymous","all"],anonymous:["anonymous","all"],all:["all"],owner:null};function k4(s,t,n){if(!s||!s.id||!s.role)return!1;t=t||"admin",Array.isArray(t)||(t=[t]);let o=s&&s.role,u=t.find(d=>{var h;return M4[o]&&((h=M4[o])==null?void 0:h.indexOf(d))!=-1});return t.includes("owner")&&n&&(u=u||s.id==n),u}function R4(s){return Array.isArray(s==null?void 0:s.statuses)?!s.statuses.some(t=>{var n;return((n=t==null?void 0:t.extraFunctionality)==null?void 0:n.canLike)===!1}):!0}class vu{constructor(){this.listeners=[]}static getInstance(){return vu.instance||(vu.instance=new vu),vu.instance}addNotification(t,n){this.listeners.forEach(o=>o(t,n))}registerListener(t){return this.listeners.push(t),()=>{this.listeners=this.listeners.filter(n=>n!==t)}}}const j4=vu.getInstance(),F4=()=>{const[s,t]=E.useState([]);return E.useEffect(()=>{const n=j4.registerListener((o,u)=>{const d=Date.now();t(h=>[...h,{id:d,message:o,type:u,fadeOut:!1}]),setTimeout(()=>{t(h=>h.map(f=>f.id===d?{...f,fadeOut:!0}:f))},4600),setTimeout(()=>{t(h=>h.filter(f=>f.id!==d))},5e3)});return()=>n()},[]),E.createElement("div",{className:"notification-container openstad"},s.map(({id:n,message:o,type:u,fadeOut:d})=>E.createElement("div",{key:n,className:`notification ${d?"fade-out":""} ${u}`},E.createElement("span",{className:"notification-icon"},u==="success"?"✅️":"❌"),E.createElement("span",{className:"notification-message"},o))))};function QS({resourceId:s,url:t,targetUrl:n}){if(s)return s;n||(n="?openstadResourceId=[id]");let o=n.replace(/([\\^$.|?*+()[\]{}])/g,"\\$1");o=o.replace(/\\\[id\\\]/,"(\\d+)");let u=t.match(o);if(u&&(s=parseInt(u[1])),!s){const d=new URL(t).pathname+new URL(t).search;if(o=n.replace(/([\\^$.|?*+()[\]{}])/g,"\\$1"),o=o.replace(/\\\[id\\\]/,"(\\d+)"),u=d.match(o),u&&(s=parseInt(u[1])),!s){const h=new URLSearchParams(window.location.search),f=h.get(n.replace(/[?&]\[id\]/,""));if(s=f?parseInt(f,10):void 0,!s&&n.includes("[id]")){const v=$S(n);let p;v&&h.has(v)&&(p=h.get(v)),s=p?parseInt(p,10):void 0}}}return s||void 0}function $S(s){const t=s.split("?")[1];if(!t)return null;const n=new URLSearchParams(t);let o=null;return n.forEach((u,d)=>{o===null&&u==="[id]"&&(o=d)}),o}/*! @license DOMPurify 3.4.12 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.12/LICENSE */function B4(s,t){(t==null||t>s.length)&&(t=s.length);for(var n=0,o=Array(t);n<t;n++)o[n]=s[n];return o}function eO(s){if(Array.isArray(s))return s}function tO(s,t){var n=s==null?null:typeof Symbol<"u"&&s[Symbol.iterator]||s["@@iterator"];if(n!=null){var o,u,d,h,f=[],v=!0,p=!1;try{if(d=(n=n.call(s)).next,t!==0)for(;!(v=(o=d.call(n)).done)&&(f.push(o.value),f.length!==t);v=!0);}catch(y){p=!0,u=y}finally{try{if(!v&&n.return!=null&&(h=n.return(),Object(h)!==h))return}finally{if(p)throw u}}return f}}function nO(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rO(s,t){return eO(s)||tO(s,t)||iO(s,t)||nO()}function iO(s,t){if(s){if(typeof s=="string")return B4(s,t);var n={}.toString.call(s).slice(8,-1);return n==="Object"&&s.constructor&&(n=s.constructor.name),n==="Map"||n==="Set"?Array.from(s):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B4(s,t):void 0}}const q4=Object.entries,z4=Object.setPrototypeOf,sO=Object.isFrozen,oO=Object.getPrototypeOf,aO=Object.getOwnPropertyDescriptor;let Dr=Object.freeze,Mr=Object.seal,yu=Object.create,U4=typeof Reflect<"u"&&Reflect,A0=U4.apply,P0=U4.construct;Dr||(Dr=function(t){return t}),Mr||(Mr=function(t){return t}),A0||(A0=function(t,n){for(var o=arguments.length,u=new Array(o>2?o-2:0),d=2;d<o;d++)u[d-2]=arguments[d];return t.apply(n,u)}),P0||(P0=function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),u=1;u<n;u++)o[u-1]=arguments[u];return new t(...o)});const bu=ar(Array.prototype.forEach),uO=ar(Array.prototype.lastIndexOf),V4=ar(Array.prototype.pop),xu=ar(Array.prototype.push),lO=ar(Array.prototype.splice),Ao=Array.isArray,Nl=ar(String.prototype.toLowerCase),D0=ar(String.prototype.toString),H4=ar(String.prototype.match),Il=ar(String.prototype.replace),G4=ar(String.prototype.indexOf),cO=ar(String.prototype.trim),dO=ar(Number.prototype.toString),hO=ar(Boolean.prototype.toString),W4=typeof BigInt>"u"?null:ar(BigInt.prototype.toString),Z4=typeof Symbol>"u"?null:ar(Symbol.prototype.toString),Er=ar(Object.prototype.hasOwnProperty),Tl=ar(Object.prototype.toString),wr=ar(RegExp.prototype.test),ma=fO(TypeError);function ar(s){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),u=1;u<n;u++)o[u-1]=arguments[u];return A0(s,t,o)}}function fO(s){return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return P0(s,n)}}function on(s,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Nl;if(z4&&z4(s,null),!Ao(t))return s;let o=t.length;for(;o--;){let u=t[o];if(typeof u=="string"){const d=n(u);d!==u&&(sO(t)||(t[o]=d),u=d)}s[u]=!0}return s}function gO(s){for(let t=0;t<s.length;t++)Er(s,t)||(s[t]=null);return s}function Yr(s){const t=yu(null);for(const o of q4(s)){var n=rO(o,2);const u=n[0],d=n[1];Er(s,u)&&(Ao(d)?t[u]=gO(d):d&&typeof d=="object"&&d.constructor===Object?t[u]=Yr(d):t[u]=d)}return t}function mO(s){switch(typeof s){case"string":return s;case"number":return dO(s);case"boolean":return hO(s);case"bigint":return W4?W4(s):"0";case"symbol":return Z4?Z4(s):"Symbol()";case"undefined":return Tl(s);case"function":case"object":{if(s===null)return Tl(s);const t=s,n=Os(t,"toString");if(typeof n=="function"){const o=n(t);return typeof o=="string"?o:Tl(o)}return Tl(s)}default:return Tl(s)}}function Os(s,t){for(;s!==null;){const o=aO(s,t);if(o){if(o.get)return ar(o.get);if(typeof o.value=="function")return ar(o.value)}s=oO(s)}function n(){return null}return n}function pO(s){try{return wr(s,""),!0}catch{return!1}}const X4=Dr(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),M0=Dr(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),k0=Dr(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),vO=Dr(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),R0=Dr(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),yO=Dr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Y4=Dr(["#text"]),K4=Dr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),j0=Dr(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),J4=Dr(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),id=Dr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),bO=Mr(/{{[\w\W]*|^[\w\W]*}}/g),xO=Mr(/<%[\w\W]*|^[\w\W]*%>/g),CO=Mr(/\${[\w\W]*/g),_O=Mr(/^data-[\-\w.\u00B7-\uFFFF]+$/),EO=Mr(/^aria-[\-\w]+$/),Q4=Mr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),wO=Mr(/^(?:\w+script|data):/i),SO=Mr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),OO=Mr(/^html$/i),LO=Mr(/^[a-z][.\w]*(-[.\w]+)+$/i),$4=Mr(/<[/\w!]/g),e5=Mr(/<[/\w]/g),NO=Mr(/<\/no(script|embed|frames)/i),IO=Mr(/\/>/i),Si={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},TO=function(){return typeof window>"u"?null:window},AO=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let o=null;const u="data-tt-policy-suffix";n&&n.hasAttribute(u)&&(o=n.getAttribute(u));const d="dompurify"+(o?"#"+o:"");try{return t.createPolicy(d,{createHTML(h){return h},createScriptURL(h){return h}})}catch{return console.warn("TrustedTypes policy "+d+" could not be created."),null}},t5=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Po=function(t,n,o,u){return Er(t,n)&&Ao(t[n])?on(u.base?Yr(u.base):{},t[n],u.transform):o};function n5(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:TO();const t=Pe=>n5(Pe);if(t.version="3.4.12",t.removed=[],!s||!s.document||s.document.nodeType!==Si.document||!s.Element)return t.isSupported=!1,t;let n=s.document;const o=n,u=o.currentScript;s.DocumentFragment;const d=s.HTMLTemplateElement,h=s.Node,f=s.Element,v=s.NodeFilter,p=s.NamedNodeMap;p===void 0&&(s.NamedNodeMap||s.MozNamedAttrMap),s.HTMLFormElement;const y=s.DOMParser,x=s.trustedTypes,_=f.prototype,S=Os(_,"cloneNode"),N=Os(_,"remove"),w=Os(_,"nextSibling"),j=Os(_,"childNodes"),U=Os(_,"parentNode"),M=Os(_,"shadowRoot"),D=Os(_,"attributes"),T=h&&h.prototype?Os(h.prototype,"nodeType"):null,O=h&&h.prototype?Os(h.prototype,"nodeName"):null;if(typeof d=="function"){const Pe=n.createElement("template");Pe.content&&Pe.content.ownerDocument&&(n=Pe.content.ownerDocument)}let q,k="",H,V=!1,Y=0;const R=function(){if(Y>0)throw ma('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},A=function(J){R(),Y++;try{return q.createHTML(J)}finally{Y--}},X=function(J){R(),Y++;try{return q.createScriptURL(J)}finally{Y--}},ee=function(){return V||(H=AO(x,u),V=!0),H},ue=n,G=ue.implementation,K=ue.createNodeIterator,B=ue.createDocumentFragment,te=ue.getElementsByTagName,Q=o.importNode;let $=t5();t.isSupported=typeof q4=="function"&&typeof U=="function"&&G&&G.createHTMLDocument!==void 0;const re=bO,le=xO,be=CO,ae=_O,Ce=EO,we=wO,Me=SO,Je=LO;let rt=Q4,et=null;const Le=on({},[...X4,...M0,...k0,...R0,...Y4]);let mt=null;const lt=on({},[...K4,...j0,...J4,...id]);let De=Object.seal(yu(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ct=null,vt=null;const Ye=Object.seal(yu(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Tt=!0,Ve=!0,ye=!1,Qe=!0,at=!1,ve=!0,Xe=!1,Be=!1,ut=null,st=null,he=!1,ht=!1,kt=!1,Re=!1,Lt=!0,At=!1;const Wn="user-content-";let Ht=!0,Nn=!1,Gt={},hn=null;const vn=on({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let nr=null;const Ae=on({},["audio","video","img","source","image","track"]);let He=null;const Se=on({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),fn="http://www.w3.org/1998/Math/MathML",Ge="http://www.w3.org/2000/svg",Nt="http://www.w3.org/1999/xhtml";let _t=Nt,$t=!1,It=null;const nn=on({},[fn,Ge,Nt],D0),dn=Dr(["mi","mo","mn","ms","mtext"]);let gn=on({},dn);const bn=Dr(["annotation-xml"]);let We=on({},bn);const xn=on({},["title","style","font","a","script"]);let rn=null;const dr=["application/xhtml+xml","text/html"],Or="text/html";let un=null,Rr=null;const ui=n.createElement("form"),Hi=function(J){return J instanceof RegExp||J instanceof Function},ni=function(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Rr&&Rr===J)return;(!J||typeof J!="object")&&(J={}),J=Yr(J),rn=dr.indexOf(J.PARSER_MEDIA_TYPE)===-1?Or:J.PARSER_MEDIA_TYPE,un=rn==="application/xhtml+xml"?D0:Nl,et=Po(J,"ALLOWED_TAGS",Le,{transform:un}),mt=Po(J,"ALLOWED_ATTR",lt,{transform:un}),It=Po(J,"ALLOWED_NAMESPACES",nn,{transform:D0}),He=Po(J,"ADD_URI_SAFE_ATTR",Se,{transform:un,base:Se}),nr=Po(J,"ADD_DATA_URI_TAGS",Ae,{transform:un,base:Ae}),hn=Po(J,"FORBID_CONTENTS",vn,{transform:un}),ct=Po(J,"FORBID_TAGS",Yr({}),{transform:un}),vt=Po(J,"FORBID_ATTR",Yr({}),{transform:un}),Gt=Er(J,"USE_PROFILES")?J.USE_PROFILES&&typeof J.USE_PROFILES=="object"?Yr(J.USE_PROFILES):J.USE_PROFILES:!1,Tt=J.ALLOW_ARIA_ATTR!==!1,Ve=J.ALLOW_DATA_ATTR!==!1,ye=J.ALLOW_UNKNOWN_PROTOCOLS||!1,Qe=J.ALLOW_SELF_CLOSE_IN_ATTR!==!1,at=J.SAFE_FOR_TEMPLATES||!1,ve=J.SAFE_FOR_XML!==!1,Xe=J.WHOLE_DOCUMENT||!1,ht=J.RETURN_DOM||!1,kt=J.RETURN_DOM_FRAGMENT||!1,Re=J.RETURN_TRUSTED_TYPE||!1,he=J.FORCE_BODY||!1,Lt=J.SANITIZE_DOM!==!1,At=J.SANITIZE_NAMED_PROPS||!1,Ht=J.KEEP_CONTENT!==!1,Nn=J.IN_PLACE||!1,rt=pO(J.ALLOWED_URI_REGEXP)?J.ALLOWED_URI_REGEXP:Q4,_t=typeof J.NAMESPACE=="string"?J.NAMESPACE:Nt,gn=Er(J,"MATHML_TEXT_INTEGRATION_POINTS")&&J.MATHML_TEXT_INTEGRATION_POINTS&&typeof J.MATHML_TEXT_INTEGRATION_POINTS=="object"?Yr(J.MATHML_TEXT_INTEGRATION_POINTS):on({},dn),We=Er(J,"HTML_INTEGRATION_POINTS")&&J.HTML_INTEGRATION_POINTS&&typeof J.HTML_INTEGRATION_POINTS=="object"?Yr(J.HTML_INTEGRATION_POINTS):on({},bn);const ge=Er(J,"CUSTOM_ELEMENT_HANDLING")&&J.CUSTOM_ELEMENT_HANDLING&&typeof J.CUSTOM_ELEMENT_HANDLING=="object"?Yr(J.CUSTOM_ELEMENT_HANDLING):yu(null);if(De=yu(null),Er(ge,"tagNameCheck")&&Hi(ge.tagNameCheck)&&(De.tagNameCheck=ge.tagNameCheck),Er(ge,"attributeNameCheck")&&Hi(ge.attributeNameCheck)&&(De.attributeNameCheck=ge.attributeNameCheck),Er(ge,"allowCustomizedBuiltInElements")&&typeof ge.allowCustomizedBuiltInElements=="boolean"&&(De.allowCustomizedBuiltInElements=ge.allowCustomizedBuiltInElements),Mr(De),at&&(Ve=!1),kt&&(ht=!0),Gt&&(et=on({},Y4),mt=yu(null),Gt.html===!0&&(on(et,X4),on(mt,K4)),Gt.svg===!0&&(on(et,M0),on(mt,j0),on(mt,id)),Gt.svgFilters===!0&&(on(et,k0),on(mt,j0),on(mt,id)),Gt.mathMl===!0&&(on(et,R0),on(mt,J4),on(mt,id))),Ye.tagCheck=null,Ye.attributeCheck=null,Er(J,"ADD_TAGS")&&(typeof J.ADD_TAGS=="function"?Ye.tagCheck=J.ADD_TAGS:Ao(J.ADD_TAGS)&&(et===Le&&(et=Yr(et)),on(et,J.ADD_TAGS,un))),Er(J,"ADD_ATTR")&&(typeof J.ADD_ATTR=="function"?Ye.attributeCheck=J.ADD_ATTR:Ao(J.ADD_ATTR)&&(mt===lt&&(mt=Yr(mt)),on(mt,J.ADD_ATTR,un))),Er(J,"ADD_URI_SAFE_ATTR")&&Ao(J.ADD_URI_SAFE_ATTR)&&on(He,J.ADD_URI_SAFE_ATTR,un),Er(J,"FORBID_CONTENTS")&&Ao(J.FORBID_CONTENTS)&&(hn===vn&&(hn=Yr(hn)),on(hn,J.FORBID_CONTENTS,un)),Er(J,"ADD_FORBID_CONTENTS")&&Ao(J.ADD_FORBID_CONTENTS)&&(hn===vn&&(hn=Yr(hn)),on(hn,J.ADD_FORBID_CONTENTS,un)),Ht&&(et["#text"]=!0),Xe&&on(et,["html","head","body"]),et.table&&(on(et,["tbody"]),delete ct.tbody),J.TRUSTED_TYPES_POLICY){if(typeof J.TRUSTED_TYPES_POLICY.createHTML!="function")throw ma('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof J.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ma('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const Ne=q;q=J.TRUSTED_TYPES_POLICY;try{k=A("")}catch(Ke){throw q=Ne,Ke}}else J.TRUSTED_TYPES_POLICY===null?(q=void 0,k=""):(q===void 0&&(q=ee()),q&&typeof k=="string"&&(k=A("")));Dr&&Dr(J),Rr=J},as=on({},[...M0,...k0,...vO]),ie=on({},[...R0,...yO]),ze=function(J,ge,Ne){return ge.namespaceURI===Nt?J==="svg":ge.namespaceURI===fn?J==="svg"&&(Ne==="annotation-xml"||gn[Ne]):!!as[J]},qe=function(J,ge,Ne){return ge.namespaceURI===Nt?J==="math":ge.namespaceURI===Ge?J==="math"&&We[Ne]:!!ie[J]},Dt=function(J,ge,Ne){return ge.namespaceURI===Ge&&!We[Ne]||ge.namespaceURI===fn&&!gn[Ne]?!1:!ie[J]&&(xn[J]||!as[J])},Rt=function(J){let ge=U(J);(!ge||!ge.tagName)&&(ge={namespaceURI:_t,tagName:"template"});const Ne=Nl(J.tagName),Ke=Nl(ge.tagName);return It[J.namespaceURI]?J.namespaceURI===Ge?ze(Ne,ge,Ke):J.namespaceURI===fn?qe(Ne,ge,Ke):J.namespaceURI===Nt?Dt(Ne,ge,Ke):!!(rn==="application/xhtml+xml"&&It[J.namespaceURI]):!1},bt=function(J){xu(t.removed,{element:J});try{U(J).removeChild(J)}catch{if(N(J),!U(J))throw ma("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},wn=function(J){Ct(J);const ge=j(J);if(ge){const Ke=[];bu(ge,ft=>{xu(Ke,ft)}),bu(Ke,ft=>{try{N(ft)}catch{}})}const Ne=D(J);if(Ne)for(let Ke=Ne.length-1;Ke>=0;--Ke){const ft=Ne[Ke],yt=ft&&ft.name;if(typeof yt=="string")try{J.removeAttribute(yt)}catch{}}},In=function(J,ge){try{xu(t.removed,{attribute:ge.getAttributeNode(J),from:ge})}catch{xu(t.removed,{attribute:null,from:ge})}if(ge.removeAttribute(J),J==="is")if(ht||kt)try{bt(ge)}catch{}else try{ge.setAttribute(J,"")}catch{}},Mt=function(J){const ge=D(J);if(ge)for(let Ne=ge.length-1;Ne>=0;--Ne){const Ke=ge[Ne],ft=Ke&&Ke.name;if(!(typeof ft!="string"||mt[un(ft)]))try{J.removeAttribute(ft)}catch{}}},Ct=function(J){const ge=[J];for(;ge.length>0;){const Ne=ge.pop();(T?T(Ne):Ne.nodeType)===Si.element&&Mt(Ne);const ft=j(Ne);if(ft)for(let yt=ft.length-1;yt>=0;--yt)ge.push(ft[yt])}},Wt=function(J){if(!ve)return;const ge=[J];for(;ge.length>0;){const Ne=ge.pop(),Ke=T?T(Ne):Ne.nodeType;if(Ke===Si.processingInstruction||Ke===Si.comment&&wr(e5,Ne.data)){try{N(Ne)}catch{}continue}if(Ke===Si.element){const yt=Ne,ln=un(O?O(Ne):Ne.nodeName);try{yt.hasAttribute&&yt.hasAttribute("patchsrc")&&yt.removeAttribute("patchsrc"),yt.hasAttribute&&yt.hasAttribute("for")&&ln!=="label"&&ln!=="output"&&yt.removeAttribute("for")}catch{}}const ft=j(Ne);if(ft)for(let yt=ft.length-1;yt>=0;--yt)ge.push(ft[yt])}},dt=function(J){let ge=null,Ne=null;if(he)J="<remove></remove>"+J;else{const yt=H4(J,/^[\r\n\t ]+/);Ne=yt&&yt[0]}rn==="application/xhtml+xml"&&_t===Nt&&(J='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+J+"</body></html>");const Ke=q?A(J):J;if(_t===Nt)try{ge=new y().parseFromString(Ke,rn)}catch{}if(!ge||!ge.documentElement){ge=G.createDocument(_t,"template",null);try{ge.documentElement.innerHTML=$t?k:Ke}catch{}}const ft=ge.body||ge.documentElement;return J&&Ne&&ft.insertBefore(n.createTextNode(Ne),ft.childNodes[0]||null),_t===Nt?te.call(ge,Xe?"html":"body")[0]:Xe?ge.documentElement:ft},je=function(J){return K.call(J.ownerDocument||J,J,v.SHOW_ELEMENT|v.SHOW_COMMENT|v.SHOW_TEXT|v.SHOW_PROCESSING_INSTRUCTION|v.SHOW_CDATA_SECTION,null)},ot=function(J){return J=Il(J,re," "),J=Il(J,le," "),J=Il(J,be," "),J},tt=function(J){var ge;J.normalize();const Ne=K.call(J.ownerDocument||J,J,v.SHOW_TEXT|v.SHOW_COMMENT|v.SHOW_CDATA_SECTION|v.SHOW_PROCESSING_INSTRUCTION,null);let Ke=Ne.nextNode();for(;Ke;)Ke.data=ot(Ke.data),Ke=Ne.nextNode();const ft=(ge=J.querySelectorAll)===null||ge===void 0?void 0:ge.call(J,"template");ft&&bu(ft,yt=>{Et(yt.content)&&tt(yt.content)})},Fe=function(J){const ge=O?O(J):null;return typeof ge!="string"||un(ge)!=="form"?!1:typeof J.nodeName!="string"||typeof J.textContent!="string"||typeof J.removeChild!="function"||J.attributes!==D(J)||typeof J.removeAttribute!="function"||typeof J.setAttribute!="function"||typeof J.namespaceURI!="string"||typeof J.insertBefore!="function"||typeof J.hasChildNodes!="function"||J.nodeType!==T(J)||J.childNodes!==j(J)},Et=function(J){if(!T||typeof J!="object"||J===null)return!1;try{return T(J)===Si.documentFragment}catch{return!1}},pt=function(J){if(!T||typeof J!="object"||J===null)return!1;try{return typeof T(J)=="number"}catch{return!1}};function xe(Pe,J,ge){Pe.length!==0&&bu(Pe,Ne=>{Ne.call(t,J,ge,Rr)})}const nt=function(J,ge){return!!(ve&&J.hasChildNodes()&&!pt(J.firstElementChild)&&wr($4,J.textContent)&&wr($4,J.innerHTML)||ve&&J.namespaceURI===Nt&&ge==="style"&&pt(J.firstElementChild)||J.nodeType===Si.processingInstruction||ve&&J.nodeType===Si.comment&&wr(e5,J.data))},xt=function(J,ge){if(!ct[ge]&&li(ge)&&(De.tagNameCheck instanceof RegExp&&wr(De.tagNameCheck,ge)||De.tagNameCheck instanceof Function&&De.tagNameCheck(ge)))return!1;if(Ht&&!hn[ge]){const Ne=U(J),Ke=j(J);if(Ke&&Ne){const ft=Ke.length;for(let yt=ft-1;yt>=0;--yt){const ln=Nn?Ke[yt]:S(Ke[yt],!0);Ne.insertBefore(ln,w(J))}}}return bt(J),!0},it=function(J,ge){if(xe($.beforeSanitizeElements,J,null),J!==ge&&U(J)===null)return!0;if(Fe(J))return bt(J),!0;const Ne=un(O?O(J):J.nodeName);if(xe($.uponSanitizeElement,J,{tagName:Ne,allowedTags:et}),J!==ge&&U(J)===null)return!0;if(nt(J,Ne))return bt(J),!0;if(ct[Ne]||!(Ye.tagCheck instanceof Function&&Ye.tagCheck(Ne))&&!et[Ne]){const ft=xt(J,Ne);return ft===!1&&xe($.afterSanitizeElements,J,null),ft}if((T?T(J):J.nodeType)===Si.element&&!Rt(J)||(Ne==="noscript"||Ne==="noembed"||Ne==="noframes")&&wr(NO,J.innerHTML))return bt(J),!0;if(at&&J.nodeType===Si.text){const ft=ot(J.textContent);J.textContent!==ft&&(xu(t.removed,{element:J.cloneNode()}),J.textContent=ft)}return xe($.afterSanitizeElements,J,null),!1},mn=function(J,ge,Ne){if(vt[ge]||ve&&ge==="patchsrc"||ve&&ge==="for"&&J!=="label"&&J!=="output"||Lt&&(ge==="id"||ge==="name")&&(Ne in n||Ne in ui))return!1;const Ke=mt[ge]||Ye.attributeCheck instanceof Function&&Ye.attributeCheck(ge,J);if(!(Ve&&wr(ae,ge))){if(!(Tt&&wr(Ce,ge))){if(Ke){if(!He[ge]){if(!wr(rt,Il(Ne,Me,""))){if(!((ge==="src"||ge==="xlink:href"||ge==="href")&&J!=="script"&&G4(Ne,"data:")===0&&nr[J])){if(!(ye&&!wr(we,Il(Ne,Me,"")))){if(Ne)return!1}}}}}else if(!(li(J)&&(De.tagNameCheck instanceof RegExp&&wr(De.tagNameCheck,J)||De.tagNameCheck instanceof Function&&De.tagNameCheck(J))&&(De.attributeNameCheck instanceof RegExp&&wr(De.attributeNameCheck,ge)||De.attributeNameCheck instanceof Function&&De.attributeNameCheck(ge,J))||ge==="is"&&De.allowCustomizedBuiltInElements&&(De.tagNameCheck instanceof RegExp&&wr(De.tagNameCheck,Ne)||De.tagNameCheck instanceof Function&&De.tagNameCheck(Ne))))return!1}}return!0},kn=on({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),li=function(J){return!kn[Nl(J)]&&wr(Je,J)},Rn=function(J,ge,Ne,Ke){if(q&&typeof x=="object"&&typeof x.getAttributeType=="function"&&!Ne)switch(x.getAttributeType(J,ge)){case"TrustedHTML":return A(Ke);case"TrustedScriptURL":return X(Ke)}return Ke},Ps=function(J,ge,Ne,Ke){try{Ne?J.setAttributeNS(Ne,ge,Ke):J.setAttribute(ge,Ke),Fe(J)?bt(J):V4(t.removed)}catch{In(ge,J)}},Bn=function(J){xe($.beforeSanitizeAttributes,J,null);const ge=J.attributes;if(!ge||Fe(J))return;const Ne={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:mt,forceKeepAttr:void 0};let Ke=ge.length;const ft=un(J.nodeName);for(;Ke--;){const yt=ge[Ke],ln=yt.name,Pn=yt.namespaceURI,yr=yt.value,qn=un(ln),jn=yr;let Zn=ln==="value"?jn:cO(jn);if(Ne.attrName=qn,Ne.attrValue=Zn,Ne.keepAttr=!0,Ne.forceKeepAttr=void 0,xe($.uponSanitizeAttribute,J,Ne),Zn=Ne.attrValue,At&&(qn==="id"||qn==="name")&&G4(Zn,Wn)!==0&&(In(ln,J),Zn=Wn+Zn),ve&&wr(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Zn)){In(ln,J);continue}if(qn==="attributename"&&H4(Zn,"href")){In(ln,J);continue}if(!Ne.forceKeepAttr){if(!Ne.keepAttr){In(ln,J);continue}if(!Qe&&wr(IO,Zn)){In(ln,J);continue}if(at&&(Zn=ot(Zn)),!mn(ft,qn,Zn)){In(ln,J);continue}Zn=Rn(ft,qn,Pn,Zn),Zn!==jn&&Ps(J,ln,Pn,Zn)}}xe($.afterSanitizeAttributes,J,null)},vr=function(J){let ge=null;const Ne=je(J);for(xe($.beforeSanitizeShadowDOM,J,null);ge=Ne.nextNode();)if(xe($.uponSanitizeShadowNode,ge,null),it(ge,J),Bn(ge),Et(ge.content)&&vr(ge.content),(T?T(ge):ge.nodeType)===Si.element){const ft=M(ge);Et(ft)&&(Bt(ft),vr(ft))}xe($.afterSanitizeShadowDOM,J,null)},Bt=function(J){const ge=[{node:J,shadow:null}];for(;ge.length>0;){const Ne=ge.pop();if(Ne.shadow){vr(Ne.shadow);continue}const Ke=Ne.node,yt=(T?T(Ke):Ke.nodeType)===Si.element,ln=j(Ke);if(ln)for(let Pn=ln.length-1;Pn>=0;--Pn)ge.push({node:ln[Pn],shadow:null});if(yt){const Pn=O?O(Ke):null;if(typeof Pn=="string"&&un(Pn)==="template"){const yr=Ke.content;Et(yr)&&ge.push({node:yr,shadow:null})}}if(yt){const Pn=M(Ke);Et(Pn)&&ge.push({node:null,shadow:Pn},{node:Pn,shadow:null})}}};return t.sanitize=function(Pe){let J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ge=null,Ne=null,Ke=null,ft=null;if($t=!Pe,$t&&(Pe="<!-->"),typeof Pe!="string"&&!pt(Pe)&&(Pe=mO(Pe),typeof Pe!="string"))throw ma("dirty is not a string, aborting");if(!t.isSupported)return Pe;Be?(et=ut,mt=st):ni(J),($.uponSanitizeElement.length>0||$.uponSanitizeAttribute.length>0)&&(et=Yr(et)),$.uponSanitizeAttribute.length>0&&(mt=Yr(mt)),t.removed=[];const yt=Nn&&typeof Pe!="string"&&pt(Pe);if(yt){Wt(Pe);const qn=O?O(Pe):Pe.nodeName;if(typeof qn=="string"){const jn=un(qn);if(!et[jn]||ct[jn])throw wn(Pe),ma("root node is forbidden and cannot be sanitized in-place")}if(Fe(Pe))throw wn(Pe),ma("root node is clobbered and cannot be sanitized in-place");try{Bt(Pe)}catch(jn){throw wn(Pe),jn}}else if(pt(Pe))ge=dt("<!---->"),Ne=ge.ownerDocument.importNode(Pe,!0),Ne.nodeType===Si.element&&Ne.nodeName==="BODY"||Ne.nodeName==="HTML"?ge=Ne:ge.appendChild(Ne),Bt(Ne);else{if(!ht&&!at&&!Xe&&Pe.indexOf("<")===-1)return q&&Re?A(Pe):Pe;if(ge=dt(Pe),!ge)return ht?null:Re?k:""}ge&&he&&bt(ge.firstChild);const ln=yt?Pe:ge,Pn=je(ln);try{for(;Ke=Pn.nextNode();)it(Ke,ln),Bn(Ke),Et(Ke.content)&&vr(Ke.content)}catch(qn){throw yt&&(wn(Pe),bu(t.removed,jn=>{jn.element&&Ct(jn.element)})),qn}if(yt)return bu(t.removed,qn=>{qn.element&&Ct(qn.element)}),at&&tt(Pe),Pe;if(ht){if(at&&tt(ge),kt)for(ft=B.call(ge.ownerDocument);ge.firstChild;)ft.appendChild(ge.firstChild);else ft=ge;return(mt.shadowroot||mt.shadowrootmode)&&(ft=Q.call(o,ft,!0)),ft}let yr=Xe?ge.outerHTML:ge.innerHTML;return Xe&&et["!doctype"]&&ge.ownerDocument&&ge.ownerDocument.doctype&&ge.ownerDocument.doctype.name&&wr(OO,ge.ownerDocument.doctype.name)&&(yr="<!DOCTYPE "+ge.ownerDocument.doctype.name+`>
`+yr),at&&(yr=ot(yr)),q&&Re?A(yr):yr},t.setConfig=function(){let Pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ni(Pe),Be=!0,ut=et,st=mt},t.clearConfig=function(){Rr=null,Be=!1,ut=null,st=null,q=H,k=""},t.isValidAttribute=function(Pe,J,ge){Rr||ni({});const Ne=un(Pe),Ke=un(J);return mn(Ne,Ke,ge)},t.addHook=function(Pe,J){typeof J=="function"&&Er($,Pe)&&xu($[Pe],J)},t.removeHook=function(Pe,J){if(Er($,Pe)){if(J!==void 0){const ge=uO($[Pe],J);return ge===-1?void 0:lO($[Pe],ge,1)[0]}return V4($[Pe])}},t.removeHooks=function(Pe){Er($,Pe)&&($[Pe]=[])},t.removeAllHooks=function(){$=t5()},t}var Yn=n5(),PO=Yn;Yn.sanitize.bind(Yn),Yn.isSupported,Yn.addHook.bind(Yn),Yn.removeHook.bind(Yn),Yn.removeHooks.bind(Yn),Yn.removeAllHooks.bind(Yn),Yn.setConfig.bind(Yn),Yn.clearConfig.bind(Yn),Yn.isValidAttribute.bind(Yn),Yn.version,Yn.removed;function Ls(s){return s?PO.sanitize(String(s),{USE_PROFILES:{html:!0},ADD_ATTR:["target"]}):""}E.forwardRef((s,t)=>E.createElement(Ar,{ref:t,...s,appearance:"primary-action-button",className:`${s.className}`},s.icon&&!s.iconBack?E.createElement("i",{className:s.icon}):null,s.children,s.icon&&s.iconBack?E.createElement("i",{className:s.icon}):null)),E.forwardRef((s,t)=>E.createElement(Ar,{ref:t,...s,appearance:"secondary-action-button",className:`${s.className}`})),E.forwardRef((s,t)=>E.createElement(Ar,{ref:t,...s,appearance:"subtle-button",className:`${s.className}`})),E.forwardRef((s,t)=>E.createElement(Ar,{ref:t,...s,appearance:"primary-action-button",className:`${s.className}`}));function Kr({text:s,description:t,icon:n,variant:o="regular",iconOnly:u=!1,onClick:d=void 0,className:h=""}){return E.createElement("div",{className:`icon ${s===void 0||u===!0?"no-label":""} ${h}`,"aria-hidden":u?"true":"false",onClick:d,"data-description":t||void 0},E.createElement("i",{className:`${n} ${o}`}),E.createElement("p",null,t?E.createElement("span",{className:"sr-only"},t):null,s))}const pa=E.forwardRef((s,t)=>E.createElement(Ar,{appearance:s.className,ref:t,...s,className:"osc-icon-button"},s.icon?E.createElement(Kr,{icon:s.icon,text:s.text,iconOnly:s.iconOnly}):null,s.children));var DO=Object.defineProperty,Sr=(s,t)=>DO(s,"name",{value:t,configurable:!0}),F0="dismissableLayer.update",MO="dismissableLayer.pointerDownOutside",kO="dismissableLayer.focusOutside",r5,i5=ce.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),RO=ce.forwardRef(Sr(function(t,n){const{disableOutsidePointerEvents:o=!1,deferPointerDownOutside:u=!1,onEscapeKeyDown:d,onPointerDownOutside:h,onFocusOutside:f,onInteractOutside:v,onDismiss:p,...y}=t,x=ce.useContext(i5),[_,S]=ce.useState(null),N=(_==null?void 0:_.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=ce.useState({}),j=zi(n,S),U=Array.from(x.layers),[M]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),D=M?U.indexOf(M):-1,T=_?U.indexOf(_):-1,O=x.layersWithOutsidePointerEventsDisabled.size>0,q=T>=D,k=ce.useRef(!1),H=o5(A=>{h==null||h(A),v==null||v(A),A.defaultPrevented||p==null||p()},{ownerDocument:N,deferPointerDownOutside:u,isDeferredPointerDownOutsideRef:k,dismissableSurfaces:x.dismissableSurfaces,shouldHandlePointerDownOutside:ce.useCallback(A=>{if(!(A instanceof Node))return!1;const X=[...x.branches].some(ee=>ee.contains(A));return q&&!X},[x.branches,q])}),V=a5(A=>{if(u&&k.current)return;const X=A.target;[...x.branches].some(ue=>ue.contains(X))||(f==null||f(A),v==null||v(A),A.defaultPrevented||p==null||p())},N),Y=_?T===U.length-1:!1,R=da(A=>{A.key==="Escape"&&(d==null||d(A),!A.defaultPrevented&&p&&(A.preventDefault(),p()))});return ce.useEffect(()=>{if(Y)return N.addEventListener("keydown",R,{capture:!0}),()=>N.removeEventListener("keydown",R,{capture:!0})},[N,Y,R]),ce.useEffect(()=>{if(_)return o&&(x.layersWithOutsidePointerEventsDisabled.size===0&&(r5=N.body.style.pointerEvents,N.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(_)),x.layers.add(_),B0(),()=>{o&&(x.layersWithOutsidePointerEventsDisabled.delete(_),x.layersWithOutsidePointerEventsDisabled.size===0&&(N.body.style.pointerEvents=r5))}},[_,N,o,x]),ce.useEffect(()=>()=>{_&&(x.layers.delete(_),x.layersWithOutsidePointerEventsDisabled.delete(_),B0())},[_,x]),ce.useEffect(()=>{const A=Sr(()=>w({}),"handleUpdate");return document.addEventListener(F0,A),()=>document.removeEventListener(F0,A)},[]),se.jsx(wi.div,{...y,ref:j,style:{pointerEvents:O?q?"auto":"none":void 0,...t.style},onFocusCapture:Pr(t.onFocusCapture,V.onFocusCapture),onBlurCapture:Pr(t.onBlurCapture,V.onBlurCapture),onPointerDownCapture:Pr(t.onPointerDownCapture,H.onPointerDownCapture)})},"DismissableLayer"));function s5(){const s=ce.useContext(i5),[t,n]=ce.useState(null);return ce.useEffect(()=>{if(t)return s.dismissableSurfaces.add(t),()=>{s.dismissableSurfaces.delete(t)}},[t,s.dismissableSurfaces]),n}Sr(s5,"useDismissableLayerSurface");var jO=Sr(()=>!0,"IS_TRUE");function o5(s,t){const{ownerDocument:n=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:o=!1,isDeferredPointerDownOutsideRef:u,dismissableSurfaces:d,shouldHandlePointerDownOutside:h=jO}=t,f=da(s),v=ce.useRef(!1),p=ce.useRef(!1),y=ce.useRef(new Map),x=ce.useRef(()=>{});return ce.useEffect(()=>{function _(){p.current=!1,u.current=!1,y.current.clear()}Sr(_,"resetOutsideInteraction");function S(){return Array.from(y.current.values()).some(Boolean)}Sr(S,"isOutsideInteractionIntercepted");function N(D){if(!p.current)return;const T=D.target;T instanceof Node&&[...d].some(q=>q.contains(T))||y.current.set(D.type,!0),D.type==="click"&&window.setTimeout(()=>{p.current&&x.current()},0)}Sr(N,"handleInteractionCapture");function w(D){p.current&&y.current.set(D.type,!1)}Sr(w,"handleInteractionBubble");const j=Sr(D=>{if(D.target&&!v.current){let T=function(){n.removeEventListener("click",x.current);const q=S();_(),q||q0(MO,f,O,{discrete:!0})};if(Sr(T,"handleAndDispatchPointerDownOutsideEvent"),!h(D.target)){n.removeEventListener("click",x.current),_(),v.current=!1;return}const O={originalEvent:D};p.current=!0,u.current=o&&D.button===0,y.current.clear(),!o||D.button!==0?T():(n.removeEventListener("click",x.current),x.current=T,n.addEventListener("click",x.current,{once:!0}))}else n.removeEventListener("click",x.current),_();v.current=!1},"handlePointerDown"),U=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const D of U)n.addEventListener(D,N,!0),n.addEventListener(D,w);const M=window.setTimeout(()=>{n.addEventListener("pointerdown",j)},0);return()=>{window.clearTimeout(M),n.removeEventListener("pointerdown",j),n.removeEventListener("click",x.current);for(const D of U)n.removeEventListener(D,N,!0),n.removeEventListener(D,w)}},[n,f,o,u,d,h]),{onPointerDownCapture:Sr(()=>v.current=!0,"onPointerDownCapture")}}Sr(o5,"usePointerDownOutside");function a5(s,t=globalThis==null?void 0:globalThis.document){const n=da(s),o=ce.useRef(!1);return ce.useEffect(()=>{const u=Sr(d=>{d.target&&!o.current&&q0(kO,n,{originalEvent:d},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",u),()=>t.removeEventListener("focusin",u)},[t,n]),{onFocusCapture:Sr(()=>o.current=!0,"onFocusCapture"),onBlurCapture:Sr(()=>o.current=!1,"onBlurCapture")}}Sr(a5,"useFocusOutside");function B0(){const s=new CustomEvent(F0);document.dispatchEvent(s)}Sr(B0,"dispatchUpdate");function q0(s,t,n,{discrete:o}){const u=n.originalEvent.target,d=new CustomEvent(s,{bubbles:!1,cancelable:!0,detail:n});t&&u.addEventListener(s,t,{once:!0}),o?e4(u,d):u.dispatchEvent(d)}Sr(q0,"handleAndDispatchCustomEvent");var FO=Object.defineProperty,z0=(s,t)=>FO(s,"name",{value:t,configurable:!0}),sd=0,Ns=null;function BO(s){return U0(),s.children}z0(BO,"FocusGuards");function U0(){ce.useEffect(()=>{Ns||(Ns={start:V0(),end:V0()});const{start:s,end:t}=Ns;return document.body.firstElementChild!==s&&document.body.insertAdjacentElement("afterbegin",s),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),sd++,()=>{sd===1&&(Ns==null||Ns.start.remove(),Ns==null||Ns.end.remove(),Ns=null),sd=Math.max(0,sd-1)}},[])}z0(U0,"useFocusGuards");function V0(){const s=document.createElement("span");return s.setAttribute("data-radix-focus-guard",""),s.tabIndex=0,s.style.outline="none",s.style.opacity="0",s.style.position="fixed",s.style.pointerEvents="none",s}z0(V0,"createFocusGuard");var qO=Object.defineProperty,Jr=(s,t)=>qO(s,"name",{value:t,configurable:!0}),H0="focusScope.autoFocusOnMount",G0="focusScope.autoFocusOnUnmount",u5={bubbles:!1,cancelable:!0},zO=ce.forwardRef(Jr(function(t,n){const{loop:o=!1,trapped:u=!1,onMountAutoFocus:d,onUnmountAutoFocus:h,...f}=t,[v,p]=ce.useState(null),y=da(d),x=da(h),_=ce.useRef(null),S=zi(n,p),N=ce.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;ce.useEffect(()=>{if(u){let j=function(T){if(N.paused||!v)return;const O=T.target;v.contains(O)?_.current=O:$s(_.current,{select:!0})},U=function(T){if(N.paused||!v)return;const O=T.relatedTarget;O!==null&&(v.contains(O)||$s(_.current,{select:!0}))},M=function(T){if(document.activeElement===document.body)for(const q of T)q.removedNodes.length>0&&$s(v)};Jr(j,"handleFocusIn"),Jr(U,"handleFocusOut"),Jr(M,"handleMutations"),document.addEventListener("focusin",j),document.addEventListener("focusout",U);const D=new MutationObserver(M);return v&&D.observe(v,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",j),document.removeEventListener("focusout",U),D.disconnect()}}},[u,v,N.paused]),ce.useEffect(()=>{if(v){f5.add(N);const j=document.activeElement;if(!v.contains(j)){const M=new CustomEvent(H0,u5);v.addEventListener(H0,y),v.dispatchEvent(M),M.defaultPrevented||(l5(m5(W0(v)),{select:!0}),document.activeElement===j&&$s(v))}return()=>{v.removeEventListener(H0,y),setTimeout(()=>{const M=new CustomEvent(G0,u5);v.addEventListener(G0,x),v.dispatchEvent(M),M.defaultPrevented||$s(j??document.body,{select:!0}),v.removeEventListener(G0,x),f5.remove(N)},0)}}},[v,y,x,N]);const w=ce.useCallback(j=>{if(!o&&!u||N.paused)return;const U=j.key==="Tab"&&!j.altKey&&!j.ctrlKey&&!j.metaKey,M=document.activeElement;if(U&&M){const D=j.currentTarget,[T,O]=c5(D);T&&O?!j.shiftKey&&M===O?(j.preventDefault(),o&&$s(T,{select:!0})):j.shiftKey&&M===T&&(j.preventDefault(),o&&$s(O,{select:!0})):M===D&&j.preventDefault()}},[o,u,N.paused]);return se.jsx(wi.div,{tabIndex:-1,...f,ref:S,onKeyDown:w})},"FocusScope"));function l5(s,{select:t=!1}={}){const n=document.activeElement;for(const o of s)if($s(o,{select:t}),document.activeElement!==n)return}Jr(l5,"focusFirst");function c5(s){const t=W0(s),n=Z0(t,s),o=Z0(t.reverse(),s);return[n,o]}Jr(c5,"getTabbableEdges");function W0(s){const t=[],n=document.createTreeWalker(s,NodeFilter.SHOW_ELEMENT,{acceptNode:Jr(o=>{const u=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||u?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}Jr(W0,"getTabbableCandidates");function Z0(s,t){const n=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const o of s)if(!(n?!o.checkVisibility({checkVisibilityCSS:!0}):d5(o,{upTo:t})))return o}Jr(Z0,"findVisible");function d5(s,{upTo:t}){if(getComputedStyle(s).visibility==="hidden")return!0;for(;s;){if(t!==void 0&&s===t)return!1;if(getComputedStyle(s).display==="none")return!0;s=s.parentElement}return!1}Jr(d5,"isHidden");function h5(s){return s instanceof HTMLInputElement&&"select"in s}Jr(h5,"isSelectableInput");function $s(s,{select:t=!1}={}){if(s&&s.focus){const n=document.activeElement;s.focus({preventScroll:!0}),s!==n&&h5(s)&&t&&s.select()}}Jr($s,"focus");var f5=g5();function g5(){let s=[];return{add(t){const n=s[0];t!==n&&(n==null||n.pause()),s=X0(s,t),s.unshift(t)},remove(t){var n;s=X0(s,t),(n=s[0])==null||n.resume()}}}Jr(g5,"createFocusScopesStack");function X0(s,t){const n=[...s],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}Jr(X0,"arrayRemove");function m5(s){return s.filter(t=>t.tagName!=="A")}Jr(m5,"removeLinks");var UO=Object.defineProperty,VO=(s,t)=>UO(s,"name",{value:t,configurable:!0}),HO=ce.forwardRef(VO(function(t,n){var v;const{container:o,...u}=t,[d,h]=ce.useState(!1);Io(()=>h(!0),[]);const f=o||d&&((v=globalThis==null?void 0:globalThis.document)==null?void 0:v.body);return f?Fg.createPortal(se.jsx(wi.div,{...u,ref:n}),f):null},"Portal")),GO=function(s){if(typeof document>"u")return null;var t=Array.isArray(s)?s[0]:s;return t.ownerDocument.body},Cu=new WeakMap,od=new WeakMap,ad={},Y0=0,p5=function(s){return s&&(s.host||p5(s.parentNode))},WO=function(s,t){return t.map(function(n){if(s.contains(n))return n;var o=p5(n);return o&&s.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",s,". Doing nothing"),null)}).filter(function(n){return!!n})},ZO=function(s,t,n,o){var u=WO(t,Array.isArray(s)?s:[s]);ad[n]||(ad[n]=new WeakMap);var d=ad[n],h=[],f=new Set,v=new Set(u),p=function(x){!x||f.has(x)||(f.add(x),p(x.parentNode))};u.forEach(p);var y=function(x){!x||v.has(x)||Array.prototype.forEach.call(x.children,function(_){if(f.has(_))y(_);else try{var S=_.getAttribute(o),N=S!==null&&S!=="false",w=(Cu.get(_)||0)+1,j=(d.get(_)||0)+1;Cu.set(_,w),d.set(_,j),h.push(_),w===1&&N&&od.set(_,!0),j===1&&_.setAttribute(n,"true"),N||_.setAttribute(o,"true")}catch(U){console.error("aria-hidden: cannot operate on ",_,U)}})};return y(t),f.clear(),Y0++,function(){h.forEach(function(x){var _=Cu.get(x)-1,S=d.get(x)-1;Cu.set(x,_),d.set(x,S),_||(od.has(x)||x.removeAttribute(o),od.delete(x)),S||x.removeAttribute(n)}),Y0--,Y0||(Cu=new WeakMap,Cu=new WeakMap,od=new WeakMap,ad={})}},XO=function(s,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(s)?s:[s]),u=GO(s);return u?(o.push.apply(o,Array.from(u.querySelectorAll("[aria-live], script"))),ZO(o,u,n,"aria-hidden")):function(){return null}},Is=function(){return Is=Object.assign||function(t){for(var n,o=1,u=arguments.length;o<u;o++){n=arguments[o];for(var d in n)Object.prototype.hasOwnProperty.call(n,d)&&(t[d]=n[d])}return t},Is.apply(this,arguments)};function v5(s,t){var n={};for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&t.indexOf(o)<0&&(n[o]=s[o]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,o=Object.getOwnPropertySymbols(s);u<o.length;u++)t.indexOf(o[u])<0&&Object.prototype.propertyIsEnumerable.call(s,o[u])&&(n[o[u]]=s[o[u]]);return n}function YO(s,t,n){if(n||arguments.length===2)for(var o=0,u=t.length,d;o<u;o++)(d||!(o in t))&&(d||(d=Array.prototype.slice.call(t,0,o)),d[o]=t[o]);return s.concat(d||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var ud="right-scroll-bar-position",ld="width-before-scroll-bar",KO="with-scroll-bars-hidden",JO="--removed-body-scroll-bar-size";function K0(s,t){return typeof s=="function"?s(t):s&&(s.current=t),s}function QO(s,t){var n=E.useState(function(){return{value:s,callback:t,facade:{get current(){return n.value},set current(o){var u=n.value;u!==o&&(n.value=o,n.callback(o,u))}}}})[0];return n.callback=t,n.facade}var $O=typeof window<"u"?ce.useLayoutEffect:ce.useEffect,y5=new WeakMap;function eL(s,t){var n=QO(null,function(o){return s.forEach(function(u){return K0(u,o)})});return $O(function(){var o=y5.get(n);if(o){var u=new Set(o),d=new Set(s),h=n.current;u.forEach(function(f){d.has(f)||K0(f,null)}),d.forEach(function(f){u.has(f)||K0(f,h)})}y5.set(n,s)},[s]),n}function tL(s){return s}function nL(s,t){t===void 0&&(t=tL);var n=[],o=!1,u={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:s},useMedium:function(d){var h=t(d,o);return n.push(h),function(){n=n.filter(function(f){return f!==h})}},assignSyncMedium:function(d){for(o=!0;n.length;){var h=n;n=[],h.forEach(d)}n={push:function(f){return d(f)},filter:function(){return n}}},assignMedium:function(d){o=!0;var h=[];if(n.length){var f=n;n=[],f.forEach(d),h=n}var v=function(){var y=h;h=[],y.forEach(d)},p=function(){return Promise.resolve().then(v)};p(),n={push:function(y){h.push(y),p()},filter:function(y){return h=h.filter(y),n}}}};return u}function rL(s){s===void 0&&(s={});var t=nL(null);return t.options=Is({async:!0,ssr:!1},s),t}var b5=function(s){var t=s.sideCar,n=v5(s,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return ce.createElement(o,Is({},n))};b5.isSideCarExport=!0;function iL(s,t){return s.useMedium(t),b5}var x5=rL(),J0=function(){},cd=ce.forwardRef(function(s,t){var n=ce.useRef(null),o=ce.useState({onScrollCapture:J0,onWheelCapture:J0,onTouchMoveCapture:J0}),u=o[0],d=o[1],h=s.forwardProps,f=s.children,v=s.className,p=s.removeScrollBar,y=s.enabled,x=s.shards,_=s.sideCar,S=s.noRelative,N=s.noIsolation,w=s.inert,j=s.allowPinchZoom,U=s.as,M=U===void 0?"div":U,D=s.gapMode,T=v5(s,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=_,q=eL([n,t]),k=Is(Is({},T),u);return ce.createElement(ce.Fragment,null,y&&ce.createElement(O,{sideCar:x5,removeScrollBar:p,shards:x,noRelative:S,noIsolation:N,inert:w,setCallbacks:d,allowPinchZoom:!!j,lockRef:n,gapMode:D}),h?ce.cloneElement(ce.Children.only(f),Is(Is({},k),{ref:q})):ce.createElement(M,Is({},k,{className:v,ref:q}),f))});cd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},cd.classNames={fullWidth:ld,zeroRight:ud};var sL=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function oL(){if(!document)return null;var s=document.createElement("style");s.type="text/css";var t=sL();return t&&s.setAttribute("nonce",t),s}function aL(s,t){s.styleSheet?s.styleSheet.cssText=t:s.appendChild(document.createTextNode(t))}function uL(s){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(s)}var lL=function(){var s=0,t=null;return{add:function(n){s==0&&(t=oL())&&(aL(t,n),uL(t)),s++},remove:function(){s--,!s&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},cL=function(){var s=lL();return function(t,n){ce.useEffect(function(){return s.add(t),function(){s.remove()}},[t&&n])}},C5=function(){var s=cL(),t=function(n){var o=n.styles,u=n.dynamic;return s(o,u),null};return t},dL={left:0,top:0,right:0,gap:0},Q0=function(s){return parseInt(s||"",10)||0},hL=function(s){var t=window.getComputedStyle(document.body),n=t[s==="padding"?"paddingLeft":"marginLeft"],o=t[s==="padding"?"paddingTop":"marginTop"],u=t[s==="padding"?"paddingRight":"marginRight"];return[Q0(n),Q0(o),Q0(u)]},fL=function(s){if(s===void 0&&(s="margin"),typeof window>"u")return dL;var t=hL(s),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},gL=C5(),_u="data-scroll-locked",mL=function(s,t,n,o){var u=s.left,d=s.top,h=s.right,f=s.gap;return n===void 0&&(n="margin"),`
  .`.concat(KO,` {
   overflow: hidden `).concat(o,`;
   padding-right: `).concat(f,"px ").concat(o,`;
  }
  body[`).concat(_u,`] {
    overflow: hidden `).concat(o,`;
    overscroll-behavior: contain;
    `).concat([t&&"position: relative ".concat(o,";"),n==="margin"&&`
    padding-left: `.concat(u,`px;
    padding-top: `).concat(d,`px;
    padding-right: `).concat(h,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(f,"px ").concat(o,`;
    `),n==="padding"&&"padding-right: ".concat(f,"px ").concat(o,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(ud,` {
    right: `).concat(f,"px ").concat(o,`;
  }
  
  .`).concat(ld,` {
    margin-right: `).concat(f,"px ").concat(o,`;
  }
  
  .`).concat(ud," .").concat(ud,` {
    right: 0 `).concat(o,`;
  }
  
  .`).concat(ld," .").concat(ld,` {
    margin-right: 0 `).concat(o,`;
  }
  
  body[`).concat(_u,`] {
    `).concat(JO,": ").concat(f,`px;
  }
`)},_5=function(){var s=parseInt(document.body.getAttribute(_u)||"0",10);return isFinite(s)?s:0},pL=function(){ce.useEffect(function(){return document.body.setAttribute(_u,(_5()+1).toString()),function(){var s=_5()-1;s<=0?document.body.removeAttribute(_u):document.body.setAttribute(_u,s.toString())}},[])},vL=function(s){var t=s.noRelative,n=s.noImportant,o=s.gapMode,u=o===void 0?"margin":o;pL();var d=ce.useMemo(function(){return fL(u)},[u]);return ce.createElement(gL,{styles:mL(d,!t,u,n?"":"!important")})},$0=!1;if(typeof window<"u")try{var dd=Object.defineProperty({},"passive",{get:function(){return $0=!0,!0}});window.addEventListener("test",dd,dd),window.removeEventListener("test",dd,dd)}catch{$0=!1}var Eu=$0?{passive:!1}:!1,yL=function(s){return s.tagName==="TEXTAREA"},E5=function(s,t){if(!(s instanceof Element))return!1;var n=window.getComputedStyle(s);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!yL(s)&&n[t]==="visible")},bL=function(s){return E5(s,"overflowY")},xL=function(s){return E5(s,"overflowX")},w5=function(s,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var u=S5(s,o);if(u){var d=O5(s,o),h=d[1],f=d[2];if(h>f)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},CL=function(s){var t=s.scrollTop,n=s.scrollHeight,o=s.clientHeight;return[t,n,o]},_L=function(s){var t=s.scrollLeft,n=s.scrollWidth,o=s.clientWidth;return[t,n,o]},S5=function(s,t){return s==="v"?bL(t):xL(t)},O5=function(s,t){return s==="v"?CL(t):_L(t)},EL=function(s,t){return s==="h"&&t==="rtl"?-1:1},wL=function(s,t,n,o,u){var d=EL(s,window.getComputedStyle(t).direction),h=d*o,f=n.target,v=t.contains(f),p=!1,y=h>0,x=0,_=0;do{if(!f)break;var S=O5(s,f),N=S[0],w=S[1],j=S[2],U=w-j-d*N;(N||U)&&S5(s,f)&&(x+=U,_+=N);var M=f.parentNode;f=M&&M.nodeType===Node.DOCUMENT_FRAGMENT_NODE?M.host:M}while(!v&&f!==document.body||v&&(t.contains(f)||t===f));return(y&&Math.abs(x)<1||!y&&Math.abs(_)<1)&&(p=!0),p},hd=function(s){return"changedTouches"in s?[s.changedTouches[0].clientX,s.changedTouches[0].clientY]:[0,0]},L5=function(s){return[s.deltaX,s.deltaY]},N5=function(s){return s&&"current"in s?s.current:s},SL=function(s,t){return s[0]===t[0]&&s[1]===t[1]},OL=function(s){return`
  .block-interactivity-`.concat(s,` {pointer-events: none;}
  .allow-interactivity-`).concat(s,` {pointer-events: all;}
`)},LL=0,wu=[];function NL(s){var t=ce.useRef([]),n=ce.useRef([0,0]),o=ce.useRef(),u=ce.useState(LL++)[0],d=ce.useState(C5)[0],h=ce.useRef(s);ce.useEffect(function(){h.current=s},[s]),ce.useEffect(function(){if(s.inert){document.body.classList.add("block-interactivity-".concat(u));var w=YO([s.lockRef.current],(s.shards||[]).map(N5),!0).filter(Boolean);return w.forEach(function(j){return j.classList.add("allow-interactivity-".concat(u))}),function(){document.body.classList.remove("block-interactivity-".concat(u)),w.forEach(function(j){return j.classList.remove("allow-interactivity-".concat(u))})}}},[s.inert,s.lockRef.current,s.shards]);var f=ce.useCallback(function(w,j){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!h.current.allowPinchZoom;var U=hd(w),M=n.current,D="deltaX"in w?w.deltaX:M[0]-U[0],T="deltaY"in w?w.deltaY:M[1]-U[1],O,q=w.target,k=Math.abs(D)>Math.abs(T)?"h":"v";if("touches"in w&&k==="h"&&q.type==="range")return!1;var H=window.getSelection(),V=H&&H.anchorNode,Y=V?V===q||V.contains(q):!1;if(Y)return!1;var R=w5(k,q);if(!R)return!0;if(R?O=k:(O=k==="v"?"h":"v",R=w5(k,q)),!R)return!1;if(!o.current&&"changedTouches"in w&&(D||T)&&(o.current=O),!O)return!0;var A=o.current||O;return wL(A,j,w,A==="h"?D:T)},[]),v=ce.useCallback(function(w){var j=w;if(!(!wu.length||wu[wu.length-1]!==d)){var U="deltaY"in j?L5(j):hd(j),M=t.current.filter(function(O){return O.name===j.type&&(O.target===j.target||j.target===O.shadowParent)&&SL(O.delta,U)})[0];if(M&&M.should){j.cancelable&&j.preventDefault();return}if(!M){var D=(h.current.shards||[]).map(N5).filter(Boolean).filter(function(O){return O.contains(j.target)}),T=D.length>0?f(j,D[0]):!h.current.noIsolation;T&&j.cancelable&&j.preventDefault()}}},[]),p=ce.useCallback(function(w,j,U,M){var D={name:w,delta:j,target:U,should:M,shadowParent:IL(U)};t.current.push(D),setTimeout(function(){t.current=t.current.filter(function(T){return T!==D})},1)},[]),y=ce.useCallback(function(w){n.current=hd(w),o.current=void 0},[]),x=ce.useCallback(function(w){p(w.type,L5(w),w.target,f(w,s.lockRef.current))},[]),_=ce.useCallback(function(w){p(w.type,hd(w),w.target,f(w,s.lockRef.current))},[]);ce.useEffect(function(){return wu.push(d),s.setCallbacks({onScrollCapture:x,onWheelCapture:x,onTouchMoveCapture:_}),document.addEventListener("wheel",v,Eu),document.addEventListener("touchmove",v,Eu),document.addEventListener("touchstart",y,Eu),function(){wu=wu.filter(function(w){return w!==d}),document.removeEventListener("wheel",v,Eu),document.removeEventListener("touchmove",v,Eu),document.removeEventListener("touchstart",y,Eu)}},[]);var S=s.removeScrollBar,N=s.inert;return ce.createElement(ce.Fragment,null,N?ce.createElement(d,{styles:OL(u)}):null,S?ce.createElement(vL,{noRelative:s.noRelative,gapMode:s.gapMode}):null)}function IL(s){for(var t=null;s!==null;)s instanceof ShadowRoot&&(t=s.host,s=s.host),s=s.parentNode;return t}const TL=iL(x5,NL);var I5=ce.forwardRef(function(s,t){return ce.createElement(cd,Is({},s,{ref:t,sideCar:TL}))});I5.classNames=cd.classNames;function Su({imageFooter:s,imageHeader:t,...n}){return E.createElement("figure",{onClick:n.onClick,className:`image-container ${n.className}`},t?E.createElement("div",{className:"osc-image-header"},t):null,E.createElement("img",{role:"presentation",...n,alt:n.alt?n.alt:""}),s&&E.createElement("figcaption",{className:"osc-image-footer"},s))}E.forwardRef(({onValueChange:s,...t},n)=>{var d;const[o,u]=E.useState(null);return E.useEffect(()=>{o!==null&&s&&s(t.items[o])},[o,t.items,s]),E.createElement("div",{className:"osc-imageselect"},(d=t.items)==null?void 0:d.map((h,f)=>E.createElement("div",{key:f,className:`osc-imageselect-item ${o===f?"osc-imageselect-item-selected":""}`,onClick:()=>!t.disabled&&u(f)},E.createElement("input",{ref:n,...t,name:t.name,className:`osc-imageselect-radio ${t.className}`,type:"radio",checked:o===f,id:`${t.name}-${f}`,value:h.key}),E.createElement("label",{htmlFor:`${t.name}-${f}`},E.createElement(Su,{src:t.images[f],className:"osc-imageselect-image"})),E.createElement("p",null,h.text))))});const AL=E.forwardRef((s,t)=>{const n=Math.random().toString(36).substring(7);return E.createElement($a,{invalid:!!s.errors,type:"search"},s.label?E.createElement(Ln,null,E.createElement(Ci,{htmlFor:n},s.label)):null,E.createElement(eu,{ref:t,id:n,invalid:!!s.errors,name:"search",...s,type:"text"}),s.errors?E.createElement(ua,{className:"utrecht-form-field__description",id:`${n}-invalid-description`,invalid:!0},s.errors):null,s.info&&!s.errors?E.createElement(ua,{className:"utrecht-form-field__description",id:`${n}-invalid-description`},s.info):null)});function PL({label:s="Selecteer optie",onItemSelected:t,defaultOpen:n,options:o,inlineOptions:u=!1,id:d}){const[h,f]=E.useState(n||!1),v=E.useRef(null);E.useEffect(()=>{if(u)return;function x(_){v.current&&!v.current.contains(_.target)&&f(!1)}return document.addEventListener("mousedown",x),()=>{document.removeEventListener("mousedown",x)}},[]);const p=(o==null?void 0:o.filter(x=>x.checked))||[];let y=s;return p.length>1?y=`${p.length} optie${p.length!==1?"s":""} geselecteerd`:p.length===1&&(y=p[0].label),E.createElement("div",{className:`multi-select ${u?"multiselect-container--inline":""}`,ref:v},!u&&E.createElement(Ar,{appearance:"default-button",onClick:()=>{f(!h)},"test-id":"multi-select-button","aria-labelledby":d,"aria-expanded":h,role:"combobox","aria-haspopup":"listbox"},y,E.createElement(Kr,{icon:h?"ri-arrow-up-s-line":"ri-arrow-down-s-line"})),h&&E.createElement("section",{className:`multiselect-container ${u?"multiselect-container--inline":""}`,role:"listbox","aria-multiselectable":"true"},o==null?void 0:o.map((x,_)=>E.createElement("div",{role:"option","aria-selected":x.checked,onClick:()=>{const S=x.value,N=x.label;t(S,N)},key:`multi-select-item-${x.label}`},E.createElement($a,{type:"checkbox"},E.createElement(Ln,{className:"utrecht-form-field__label utrecht-form-field__label--checkbox"},E.createElement(Wm,{className:"utrecht-form-field__input",checked:x.checked}),E.createElement(Ci,{type:"checkbox"},x.label)))))))}const T5=s=>{const{progress:t}=s;return E.createElement("div",{className:"progressbar"},E.createElement("progress",{className:"progressbar-tracker",value:t,max:"100"}))};E.forwardRef(({onValueChange:s,...t},n)=>{var h;const[o,u]=E.useState(t.initialvalue);E.useEffect(()=>{u(t.initialvalue)},[t.initialvalue]);const d=f=>{const v=f.target.value;u(v),s&&s(v)};return E.createElement("div",{className:`range-slider ${t.className}`},E.createElement("p",null,"Geef antwoord op een schaal van 1 tot 5, waarbij 1 = slecht en 5 = goed."),E.createElement("input",{ref:n,...t,onChange:d,value:o,title:t.title||"scale",type:"range",name:t.name}),E.createElement("div",{className:"range-slider-labels"},(h=t.labels)==null?void 0:h.map((f,v)=>E.createElement(E.Fragment,{key:v},f))))});const e1=E.forwardRef(({onValueChange:s,...t},n)=>{const o=t.options??[],u=t.disableDefaultOption||!1;return E.createElement(H2,{ref:n,...t,className:`select ${t.className}`,onChange:t.onChange||(d=>{var h,f,v;return s&&s(d.target.value,((v=(f=(h=d.target)==null?void 0:h.selectedOptions[0])==null?void 0:f.dataset)==null?void 0:v.label)||"")})},t.children,!u&&E.createElement(Mh,{className:"select-item",value:""},"Selecteer optie"),o.map(d=>E.createElement(E.Fragment,{key:`select-item-${d.label}`},E.createElement(Mh,{className:"select-item",value:d.value,"data-label":d.label},d.label))))});function zr({size:s=1}){const n=`spacer-${(isNaN(s)?"1":s.toString().startsWith(".")?s.toString().replace(".","0."):s.toString()).replace(".","-")}`;return E.createElement("div",{className:n})}var DL=Object.defineProperty,$i=(s,t)=>DL(s,"name",{value:t,configurable:!0}),t1="Dialog",[A5,WA]=fu(t1),[ML,eo]=A5(t1),P5=$i(s=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:u,onOpenChange:d,modal:h=!0}=s,f=ce.useRef(null),v=ce.useRef(null),[p,y]=ed({prop:o,defaultProp:u??!1,onChange:d,caller:t1}),[x,_]=ce.useState(0),[S,N]=ce.useState(0);return se.jsx(ML,{scope:t,triggerRef:f,contentRef:v,contentId:gu(),titleId:gu(),descriptionId:gu(),titlePresent:x>0,descriptionPresent:S>0,setTitleCount:_,setDescriptionCount:N,open:p,onOpenChange:y,onOpenToggle:ce.useCallback(()=>y(w=>!w),[y]),modal:h,children:n})},"Dialog"),D5="DialogPortal",[kL,M5]=A5(D5,{forceMount:void 0}),k5=$i(s=>{const{__scopeDialog:t,forceMount:n,children:o,container:u}=s,d=eo(D5,t);return se.jsx(kL,{scope:t,forceMount:n,children:ce.Children.map(o,h=>se.jsx(nd,{present:n||d.open,children:se.jsx(HO,{asChild:!0,container:u,children:h})}))})},"DialogPortal"),n1="DialogOverlay",R5=ce.forwardRef($i(function(t,n){const o=M5(n1,t.__scopeDialog),{forceMount:u=o.forceMount,...d}=t,h=eo(n1,t.__scopeDialog);return h.modal?se.jsx(nd,{present:u||h.open,children:se.jsx(jL,{...d,ref:n})}):null},"DialogOverlay")),RL=ca("DialogOverlay.RemoveScroll"),jL=ce.forwardRef($i(function(t,n){const{__scopeDialog:o,...u}=t,d=eo(n1,o),h=s5(),f=zi(n,h);return se.jsx(I5,{as:RL,allowPinchZoom:!0,shards:[d.contentRef],children:se.jsx(wi.div,{"data-state":r1(d.open),...u,ref:f,style:{pointerEvents:"auto",...u.style}})})},"DialogOverlayImpl")),Al="DialogContent",j5=ce.forwardRef($i(function(t,n){const o=M5(Al,t.__scopeDialog),{forceMount:u=o.forceMount,...d}=t,h=eo(Al,t.__scopeDialog);return se.jsx(nd,{present:u||h.open,children:h.modal?se.jsx(FL,{...d,ref:n}):se.jsx(BL,{...d,ref:n})})},"DialogContent")),FL=ce.forwardRef($i(function(t,n){const o=eo(Al,t.__scopeDialog),u=ce.useRef(null),d=zi(n,o.contentRef,u);return ce.useEffect(()=>{const h=u.current;if(h)return XO(h)},[]),se.jsx(F5,{...t,ref:d,trapFocus:o.open,disableOutsidePointerEvents:o.open,onCloseAutoFocus:Pr(t.onCloseAutoFocus,h=>{var f;h.preventDefault(),(f=o.triggerRef.current)==null||f.focus()}),onPointerDownOutside:Pr(t.onPointerDownOutside,h=>{const f=h.detail.originalEvent,v=f.button===0&&f.ctrlKey===!0;(f.button===2||v)&&h.preventDefault()}),onFocusOutside:Pr(t.onFocusOutside,h=>h.preventDefault())})},"DialogContentModal")),BL=ce.forwardRef($i(function(t,n){const o=eo(Al,t.__scopeDialog),u=ce.useRef(!1),d=ce.useRef(!1);return se.jsx(F5,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:h=>{var f,v;(f=t.onCloseAutoFocus)==null||f.call(t,h),h.defaultPrevented||(u.current||(v=o.triggerRef.current)==null||v.focus(),h.preventDefault()),u.current=!1,d.current=!1},onInteractOutside:h=>{var p,y;(p=t.onInteractOutside)==null||p.call(t,h),h.defaultPrevented||(u.current=!0,h.detail.originalEvent.type==="pointerdown"&&(d.current=!0));const f=h.target;((y=o.triggerRef.current)==null?void 0:y.contains(f))&&h.preventDefault(),h.detail.originalEvent.type==="focusin"&&d.current&&h.preventDefault()}})},"DialogContentNonModal")),F5=ce.forwardRef($i(function(t,n){const{__scopeDialog:o,trapFocus:u,onOpenAutoFocus:d,onCloseAutoFocus:h,...f}=t,v=eo(Al,o);return U0(),se.jsx(se.Fragment,{children:se.jsx(zO,{asChild:!0,loop:!0,trapped:u,onMountAutoFocus:d,onUnmountAutoFocus:h,children:se.jsx(RO,{role:"dialog",id:v.contentId,"aria-describedby":v.descriptionPresent?v.descriptionId:void 0,"aria-labelledby":v.titlePresent?v.titleId:void 0,"data-state":r1(v.open),...f,ref:n,deferPointerDownOutside:!0,onDismiss:()=>v.onOpenChange(!1)})})})},"DialogContentImpl")),qL="DialogTitle",zL=ce.forwardRef($i(function(t,n){const{__scopeDialog:o,...u}=t,d=eo(qL,o),{setTitleCount:h}=d;return Io(()=>(h(f=>f+1),()=>h(f=>f-1)),[h]),se.jsx(wi.h2,{id:d.titleId,...u,ref:n})},"DialogTitle")),UL="DialogClose",B5=ce.forwardRef($i(function(t,n){const{__scopeDialog:o,...u}=t,d=eo(UL,o);return se.jsx(wi.button,{type:"button",...u,ref:n,onClick:Pr(t.onClick,()=>d.onOpenChange(!1))})},"DialogClose"));function r1(s){return s?"open":"closed"}$i(r1,"getState");const VL=()=>{const s=document.getElementsByClassName("active-resource")[0];s&&setTimeout(()=>{s.focus(),s.classList.remove("active-resource")},100)},HL=({children:s,open:t,onOpenChange:n,className:o,...u})=>(E.useEffect(()=>{t||VL()},[t]),E.createElement(P5,{open:t,onOpenChange:n,...u},E.createElement(k5,null,E.createElement("div",{className:"openstad"},E.createElement(R5,{className:"osc-DialogOverlay"}),E.createElement(j5,{className:`osc osc-DialogContent ${o}`},E.createElement("div",null,E.createElement(B5,{asChild:!0},E.createElement(pa,{className:"subtle-button",icon:"ri-close-line","aria-label":"Sluiten","test-id":"dialog-close-button"}))),s)))));function fd({startIndex:s=0,items:t=[],itemRenderer:n,buttonText:o,beforeIndexChange:u=()=>{},setIndexInParent:d=()=>{},pager:h=!1,autoplay:f=!1,autoplayInterval:v=5e3,fade:p=!1,...y}){const[x,_]=E.useState(s),[S,N]=E.useState(null),w=E.useRef(!1),j=E.useRef(null),U=E.useRef(x);U.current=x;const M=E.useCallback(D=>{u&&u(),N(U.current),_(D),setTimeout(()=>{N(null)},600)},[u]);return E.useEffect(()=>{d&&d(()=>_)},[d]),E.useEffect(()=>{if(!(!f||t.length<=1))return j.current=setInterval(()=>{if(!w.current){const D=U.current>=t.length-1?0:U.current+1;M(D)}},v),()=>{j.current&&clearInterval(j.current)}},[f,v,t.length,M]),t.length===0?null:E.createElement("div",{...y,className:`osc ${y.className} osc-carousel width-100`,onMouseEnter:f?()=>{w.current=!0}:void 0,onMouseLeave:f?()=>{w.current=!1}:void 0},t.length>1&&E.createElement("div",{className:"carousel-button-container"},E.createElement("div",{className:"osc-carousel-navigation-button-wrapper osc-carousel-previous"},E.createElement(pa,{className:"primary-action-button",icon:"ri-arrow-left-s-line",disabled:x===0,text:(o==null?void 0:o.previous)||"Vorige slide",iconOnly:!0,onClick:()=>M(x-1)})),E.createElement("div",{className:"osc-carousel-navigation-button-wrapper osc-carousel-next"},E.createElement(pa,{className:"primary-action-button",icon:"ri-arrow-right-s-line",disabled:x===t.length-1,text:(o==null?void 0:o.next)||"Volgende slide",iconOnly:!0,onClick:()=>M(x+1)}))),E.createElement("div",{className:"carousel-items"},E.createElement("div",{className:`carousel-item${p&&S!==null?" carousel-item--entering":""}`},n(t.at(x))),p&&S!==null&&E.createElement("div",{key:S,className:"carousel-item carousel-item--leaving"},n(t.at(S)))),h&&t.length>1&&E.createElement("div",{className:"osc-carousel-pager"},t.map((D,T)=>E.createElement("button",{key:`osc-carousel-pager-button-${T}`,className:`osc-carousel-pager-button ${T===x?"active":""}`,onClick:()=>M(T),"aria-label":`Ga naar slide ${T+1}`,type:"button"}))))}const GL=({page:s,totalPages:t,visiblePages:n=5,onPageChange:o})=>{const d=(()=>{const h=[];if(t<=n){for(let f=0;f<t;f++)h.push(f);return h}if(s<n-2){for(let f=0;f<n-2;f++)h.push(f);return h.push("..."),h.push(t-1),h}if(s>=t-n+1){h.push(0),h.push("...");for(let f=t-n;f<t;f++)h.push(f);return h}h.push(0),h.push("...");for(let f=s-1;f<=s+n-4;f++)h.push(f);return h.push("..."),h.push(t-1),h})();return E.createElement("nav",{className:"osc-paginator","aria-label":"Paginering"},E.createElement(pa,{icon:"ri-arrow-left-s-line",className:"secondary round",onClick:()=>o(s-1),disabled:s===0,"aria-label":`Vorige pagina${s===0?" (Niet beschikbaar)":""}`,iconOnly:!0,"test-id":"previous-page-button"}),d.map((h,f)=>h==="..."?E.createElement("span",{key:`ellipsis-${f}`,className:"osc-paginator-ellipsis"},"..."):E.createElement(pa,{key:`page-${h}`,className:"secondary round",onClick:()=>o(h),disabled:h===s,"test-id":`page-button-${h}`,"aria-label":`Pagina ${h+1}${h===s?" (Huidige pagina)":""}`,"aria-current":h===s?"page":void 0},h+1)),E.createElement(pa,{icon:"ri-arrow-right-s-line",className:"secondary round",onClick:()=>o(s+1),disabled:s>=t-1,"aria-label":`Volgende pagina${s>=t-1?" (Niet beschikbaar)":""}`,iconOnly:!0,"test-id":"next-page-button"}))},i1=({text:s,rounded:t,light:n})=>E.createElement("div",{className:`osc-pill ${t&&"osc-pill-rounded"} ${n&&"osc-pill-light"}`,"data-text":(s==null?void 0:s.toLowerCase())||""},E.createElement("p",null,s));var WL=Object.defineProperty,q5=(s,t)=>WL(s,"name",{value:t,configurable:!0}),z5="horizontal",ZL=["horizontal","vertical"],XL=ce.forwardRef(q5(function(t,n){const{decorative:o,orientation:u=z5,...d}=t,h=U5(u)?u:z5,v=o?{role:"none"}:{"aria-orientation":h==="vertical"?h:void 0,role:"separator"};return se.jsx(wi.div,{"data-orientation":h,...v,...d,ref:n})},"Separator"));function U5(s){return ZL.includes(s)}q5(U5,"isValidOrientation");var V5=XL;function YL(...s){return P4(Ee(s))}const KL=ce.forwardRef(({className:s,orientation:t="horizontal",decorative:n=!0,...o},u)=>ce.createElement(V5,{ref:u,decorative:n,orientation:t,className:YL("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",s),...o}));KL.displayName=V5.displayName;let s1=!1;function JL(){if(s1)return;s1=!0;const s=document.createElement("canvas");s.style.position="fixed",s.style.top="0",s.style.left="0",s.style.width="100%",s.style.height="100%",s.style.pointerEvents="none",s.style.zIndex="9999",s.width=window.innerWidth,s.height=window.innerHeight,document.body.appendChild(s);const t=s.getContext("2d");if(!t){u();return}let n=[];const o=["#ff6b6b","#4ecdc4","#45b7d1","#f9ca24","#f0932b","#eb4d4b","#6c5ce7","#fd79a8"];for(let h=0;h<300;h++)n.push({x:Math.random()*s.width*1.2-s.width*.1,y:-Math.random()*600-10,vx:(Math.random()-.5)*30,vy:Math.random()*3+2,color:o[Math.floor(Math.random()*o.length)],size:Math.random()*8+4,rotation:Math.random()*360,rotationSpeed:(Math.random()-.5)*10});function u(){s1=!1,document.body.contains(s)&&document.body.removeChild(s)}const d=()=>{t.clearRect(0,0,s.width,s.height);for(const h of n)h.x+=h.vx,h.y+=h.vy,h.vy+=.1,h.rotation+=h.rotationSpeed,t.save(),t.translate(h.x,h.y),t.rotate(h.rotation*Math.PI/180),t.fillStyle=h.color,t.fillRect(-h.size/2,-h.size/2,h.size,h.size),t.restore();n=n.filter(h=>h.y<=s.height+10),n.length>0?requestAnimationFrame(d):u()};d(),setTimeout(u,8e3)}const H5=({src:s,alt:t="",onClose:n})=>E.createElement(P5,{open:!0,onOpenChange:o=>{o||n()}},E.createElement(k5,null,E.createElement("div",{className:"openstad"},E.createElement(R5,{className:"osc-lightbox-overlay"}),E.createElement(j5,{className:"osc-lightbox-content","aria-describedby":void 0},E.createElement(zL,{className:"osc-lightbox-srtitle"},"Afbeelding uitvergroot"),E.createElement(B5,{asChild:!0},E.createElement("button",{className:"osc-lightbox-close","aria-label":"Sluiten",type:"button"},"✕")),E.createElement("img",{className:"osc-lightbox-image",src:s,alt:t}))))),QL=()=>E.createElement("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false"},E.createElement("circle",{cx:"11",cy:"11",r:"7"}),E.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}),E.createElement("line",{x1:"11",y1:"8",x2:"11",y2:"14"}),E.createElement("line",{x1:"8",y1:"11",x2:"14",y2:"11"})),$L=({clickable:s=!1,src:t,alt:n="",variant:o="wrapper",label:u="Afbeelding uitvergroot bekijken",children:d})=>{const[h,f]=E.useState(!1);if(!s||!t)return E.createElement(E.Fragment,null,d);const v=h?E.createElement(H5,{src:t,alt:n,onClose:()=>f(!1)}):null;return o==="overlay"?E.createElement("span",{className:"osc-clickable-image osc-clickable-image--overlay"},d,E.createElement("button",{type:"button",className:"osc-clickable-image-zoom","aria-label":u,onPointerDown:p=>p.stopPropagation(),onMouseDown:p=>p.stopPropagation(),onTouchStart:p=>p.stopPropagation(),onClick:p=>{p.preventDefault(),p.stopPropagation(),f(!0)}},E.createElement(QL,null)),v):E.createElement(E.Fragment,null,E.createElement("div",{className:"osc-clickable-image osc-clickable-image--wrapper",role:"button",tabIndex:0,"aria-label":u,onClick:()=>f(!0),onKeyDown:p=>{(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),f(!0))}},d),v)};function o1({title:s="",variant:t="large",hideCounters:n,yesLabel:o="Ja",noLabel:u="Nee",displayDislike:d=!1,showProgressBar:h=!0,showConfetti:f=!1,disabled:v=!1,refreshResourceLikes:p,...y}){var O,q,k,H,V;let x=String(QS({resourceId:parseInt(y.resourceId||""),url:document.location.href,targetUrl:y.resourceIdRelativePath}));const _=((O=y.resources)==null?void 0:O.minimumYesVotes)||50,S=y.datastore||new Qa({projectId:y.projectId,api:y.api}),N=new Nh({projectId:y.projectId}),{data:w}=S.useCurrentUser(y),{data:j}=S.useResource({projectId:y.projectId,resourceId:x,initialData:y.initialResource}),[U,M]=E.useState(!1),D=[{type:"yes",label:o,icon:"ri-thumb-up-line"},{type:"no",label:u,icon:"ri-thumb-down-line"}];d||D.pop(),E.useEffect(()=>{let Y=N.get("osc-resource-vote-pending");Y&&Y[j.id]&&w&&w.role&&(T(null,Y[j.id]),N.remove("osc-resource-vote-pending"))},[j,w]);async function T(Y,R){var ee,ue,G,K;if(Y&&Y.stopPropagation(),U||(M(!0),!y.votes.isActive))return;if(!k4(w,y.votes.requiredUserRole)){let B=((ee=y.login)==null?void 0:ee.url)||"";if(y.votes.requiredUserRole=="anonymous"&&(B=((G=(ue=y.login)==null?void 0:ue.anonymous)==null?void 0:G.url)||""),!B){console.log("Config error: no login url defined");return}return N.set("osc-resource-vote-pending",{[j.id]:R}),document.location.href=B}let A={};j.userVote&&(A[j.userVote.opinion]=-1);const X=(K=j.userVote)==null?void 0:K.opinion;try{await j.submitLike({opinion:R}),f&&R==="yes"&&X!=="yes"&&JL(),p&&await p()}catch(B){(B==null?void 0:B.status)===403&&j4.addNotification(B.message||"Stemmen is niet gelukt","error")}finally{M(!1)}}return typeof y.children=="function"?E.createElement(E.Fragment,null,y.children(Y=>T(null,Y),j),E.createElement(F4,null)):E.createElement("div",{className:"osc"},E.createElement(F4,null),t!=="micro-score"?E.createElement("div",{className:`like-widget-container ${t}`},s?E.createElement(tu,{className:"like-widget-title"},s):null,E.createElement("div",{className:"like-option-container"},D.map((Y,R)=>{var A;return E.createElement(Ar,{appearance:"primary-action-button",key:`${Y.type}-${R}`,onClick:X=>T(X,Y.type),className:`like-option ${((A=j==null?void 0:j.userVote)==null?void 0:A.opinion)===Y.type?"selected":""} like-option--${Y.type} ${n?"osc-no-counter":""}`,disabled:v},E.createElement("section",{className:"like-kind"},E.createElement("i",{className:Y.icon}),t==="small"?null:Y.label),n?null:E.createElement("section",{className:"like-counter"},j[Y.type]&&j[Y.type]<10?j[Y.type].toString().padStart(2,"0"):j[Y.type]||"0".padStart(2,"0")))})),(q=y==null?void 0:y.resources)!=null&&q.minimumYesVotes&&h?E.createElement("div",{className:"progressbar-container"},E.createElement(T5,{progress:j.yes/_*100}),E.createElement(Ln,{className:"progressbar-counter"},j.yes||0," /",_)):null,E.createElement("div",null,((k=y==null?void 0:y.resources)==null?void 0:k.minimumYesVotes)&&h&&y.progressBarDescription&&E.createElement(Dh,{dangerouslySetInnerHTML:{__html:Ls(y.progressBarDescription)}}))):E.createElement("div",{className:`like-widget-container ${t}`},s?E.createElement(tu,{className:"like-widget-title"},s):null,E.createElement("div",{className:"like-option-container"},D.map((Y,R)=>{var A,X;return E.createElement(E.Fragment,{key:`${Y.type}-${R}`},E.createElement(Ar,{appearance:"primary-action-button",onClick:ee=>T(ee,Y.type),className:`like-option ${((A=j==null?void 0:j.userVote)==null?void 0:A.opinion)===Y.type?"selected":""} like-option--${Y.type} ${n?"osc-no-counter":""}`,disabled:v},E.createElement("section",{className:"like-kind"},E.createElement("i",{className:`${((X=j==null?void 0:j.userVote)==null?void 0:X.opinion)===Y.type?"ri-triangle-fill":"ri-triangle-line"} micro-score-triangle ${Y.type==="no"?"micro-score-triangle-down":""}`})," ",E.createElement("span",{className:"sr-only"},Y.label))),!n&&R===0?E.createElement("section",{className:"like-counter"},E.createElement("span",{className:"sr-only"},"Score")," ",j.netVotes?j.netVotes:"0"):null)})),(H=y==null?void 0:y.resources)!=null&&H.minimumYesVotes&&h?E.createElement("div",{className:"progressbar-container"},E.createElement(T5,{progress:j.netVotes/_*100}),E.createElement(Ln,{className:"progressbar-counter"},j.netVotes||0," /",_)):null,E.createElement("div",null,((V=y==null?void 0:y.resources)==null?void 0:V.minimumYesVotes)&&h&&y.progressBarDescription&&E.createElement(Dh,{dangerouslySetInnerHTML:{__html:Ls(y.progressBarDescription)}}))))}o1.loadWidget=vl;function eN(s){if(!s)return"";const t=new Date(s),n=t.getHours()!==0||t.getMinutes()!==0,o={day:"numeric",month:"long",year:"numeric"};return n&&(o.hour="2-digit",o.minute="2-digit"),t.toLocaleDateString("nl-NL",o)}function a1(s,t){if(typeof s=="object")return s;if(typeof s!="string")return t;try{return JSON.parse(s)}catch{return t}}function tN(s){return s==null?"":JSON.stringify(s,null,2)}function nN(s){if(typeof s!="string")return"";try{const t=JSON.parse(s);if(Array.isArray(t))return t.join(", ")}catch{}return s}function rN(s){return typeof s!="string"||s.length===0?"":s.charAt(0).toUpperCase()+s.slice(1)}function iN(s,t){return typeof s!="string"||typeof t!="number"?"":s.length>t?s.slice(0,t)+"...":s}function sN(s){return typeof s!="string"?"":s.toLowerCase()}function oN(s){return typeof s!="string"?"":s.toUpperCase()}function aN(s,t,n){return typeof s!="string"||typeof t!="string"||typeof n!="string"?"":s.split(t).join(n)}function uN(s){const n=a1(s,{}).tags||[];return Array.isArray(n)?n.map(o=>o.label||o.name).join(", "):""}function lN(s,t){const o=a1(s,{}).tags||[];return Array.isArray(o)?o==null?void 0:o.filter(u=>u.type===t).map(u=>u.label||u.name).join(", "):""}function cN(s){const n=a1(s,{}).statuses||[];return Array.isArray(n)?n.map(o=>o.label||o.name).join(", "):""}function dN(s,t){if(typeof s!="string"||typeof t!="string")return"";try{const n=new Date(s),o=["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],u={DD:String(n.getDate()).padStart(2,"0"),D:String(n.getDate()),MMMM:o[n.getMonth()],MM:String(n.getMonth()+1).padStart(2,"0"),M:String(n.getMonth()+1),YYYY:String(n.getFullYear()),YY:String(n.getFullYear()).slice(-2),hh:String(n.getHours()).padStart(2,"0"),mm:String(n.getMinutes()).padStart(2,"0"),ss:String(n.getSeconds()).padStart(2,"0")};return t.replace(/DD|D|MMMM|MM|M|YYYY|YY|hh|mm|ss/g,d=>u[d]||"")}catch{return s}}const u1={dump:tN,cleanArray:nN,capitalize:rN,truncate:iN,lowercase:sN,uppercase:oN,replace:aN,tags:uN,status:cN,tagGroup:lN,formatDate:dN};function l1(s,t){var h;let n="";const o=s.split("."),u=o[0],d=u.match(/^([^\[]+)\[(\d+)\]$/);if(d){const[,f,v]=d;n=(h=t[f])==null?void 0:h[parseInt(v)]}else n=t[u];return o.length>1&&(o.shift(),o.forEach(f=>{n&&n[f]!==void 0&&n[f]!==null?n=n[f]:n=""})),typeof n=="object"&&n!==null?JSON.stringify(n):n}const hN=(s,t,n,o=!1)=>(()=>{if(s.rawInput&&!o){let d=s.rawInput;const h={projectId:s.projectId,resource:t,user:t.user,startDateHumanized:t.startDateHumanized,status:t.statuses,tags:t.tags,title:t.title,summary:t.summary,description:t.description,images:t.images,budget:t.budget,extraData:t.extraData,location:t.location,modBreak:t.modBreak,modBreakDateHumanized:t.modBreakDateHumanized,modBreaks:t.modBreaksHumanized||[],modBreaksHtml:(t.modBreaks||[]).map(p=>{var y;return`<div class="resource-detail-modbreak-banner"><section><strong>${Ls(p.authorName||((y=s.resources)==null?void 0:y.modbreakTitle)||"")}</strong><span>${p.modBreakDate?eN(p.modBreakDate):""}</span></section><div>${Ls(p.description||"")}</div></div>`}).join(""),progress:t.progress,createDateHumanized:t.createDateHumanized,publishDateHumanized:t.publishDateHumanized,publishDate:t.publishDate,currentUser:s.currentUser},f=/\{%\s*if\s*([^}]*)\s*%\}([\s\S]*?)\{%\s*endif\s*%\}/g,v=Array.from(s.rawInput.matchAll(f));if(v&&v.length)for(const p of v){const y=p[1].trim(),x=p[2].trim().split("{% else %}");let _=!1;if(y.indexOf("=")>-1){const S=y.split("="),N=S[0].trim(),w=S[1].trim(),j=l1(N,h);(j===w||`'${j}'`===w||`"${j}"`===w)&&(_=!0)}else _=!!l1(y,h);if(_)d=d.replaceAll(p[0],x[0]);else{const S=x[1]??"";d=d.replaceAll(p[0],S)}}return d=mN(d,p=>fN(p,h)),d}return""})();function fN(s,t){const n=s.trim().split("|"),o=n[0].trim(),u=n.slice(1).map(h=>h.trim());let d=l1(o,t);if(d&&u&&u.length)for(const h of u){const f=h.split("("),v=f[0];let p=[];f.length>1&&(p=f[1].replace(")","").split(",").map(y=>y.trim().replaceAll("'","").replaceAll('"',""))),u1[v]&&(p.length?d=u1[v](d,...p):d=u1[v](d))}return String(d??"")}function gN(s){return s.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#39;")}function mN(s,t){let n="",o=0,u=!1,d="";for(;o<s.length;){if(s.startsWith("{{",o)){const f=s.indexOf("}}",o);if(f===-1)break;const v=t(s.slice(o+2,f));n+=u?gN(v):Ls(v),o=f+2;continue}const h=s[o];u?d?h===d&&(d=""):h==='"'||h==="'"?d=h:h===">"&&(u=!1):h==="<"&&/[a-zA-Z/!]/.test(s[o+1]||"")&&(u=!0),n+=h,o++}return n+s.slice(o)}const pN=typeof window>"u"?E.useEffect:E.useLayoutEffect;function vN(s,t=!1){const n=t?pN:E.useEffect,o=E.useRef(s);return n(()=>{o.current=s}),o}var c1,G5;function yN(){if(G5)return c1;G5=1;var s="Expected a function",t=NaN,n="[object Symbol]",o=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,h=/^0o[0-7]+$/i,f=parseInt,v=typeof wo=="object"&&wo&&wo.Object===Object&&wo,p=typeof self=="object"&&self&&self.Object===Object&&self,y=v||p||Function("return this")(),x=Object.prototype,_=x.toString,S=Math.max,N=Math.min,w=function(){return y.Date.now()};function j(O,q,k){var H,V,Y,R,A,X,ee=0,ue=!1,G=!1,K=!0;if(typeof O!="function")throw new TypeError(s);q=T(q)||0,U(k)&&(ue=!!k.leading,G="maxWait"in k,Y=G?S(T(k.maxWait)||0,q):Y,K="trailing"in k?!!k.trailing:K);function B(we){var Me=H,Je=V;return H=V=void 0,ee=we,R=O.apply(Je,Me),R}function te(we){return ee=we,A=setTimeout(re,q),ue?B(we):R}function Q(we){var Me=we-X,Je=we-ee,rt=q-Me;return G?N(rt,Y-Je):rt}function $(we){var Me=we-X,Je=we-ee;return X===void 0||Me>=q||Me<0||G&&Je>=Y}function re(){var we=w();if($(we))return le(we);A=setTimeout(re,Q(we))}function le(we){return A=void 0,K&&H?B(we):(H=V=void 0,R)}function be(){A!==void 0&&clearTimeout(A),ee=0,H=X=V=A=void 0}function ae(){return A===void 0?R:le(w())}function Ce(){var we=w(),Me=$(we);if(H=arguments,V=this,X=we,Me){if(A===void 0)return te(X);if(G)return A=setTimeout(re,q),B(X)}return A===void 0&&(A=setTimeout(re,q)),R}return Ce.cancel=be,Ce.flush=ae,Ce}function U(O){var q=typeof O;return!!O&&(q=="object"||q=="function")}function M(O){return!!O&&typeof O=="object"}function D(O){return typeof O=="symbol"||M(O)&&_.call(O)==n}function T(O){if(typeof O=="number")return O;if(D(O))return t;if(U(O)){var q=typeof O.valueOf=="function"?O.valueOf():O;O=U(q)?q+"":q}if(typeof O!="string")return O===0?O:+O;O=O.replace(o,"");var k=d.test(O);return k||h.test(O)?f(O.slice(2),k?2:8):u.test(O)?t:+O}return c1=j,c1}var bN=yN();const xN=bc(bN);function CN(s){E.useEffect(()=>s,[])}function _N(s,t,n){const o=E.useCallback(f=>xN(f,t,n),[t,n]),u=vN(s);function d(...f){var v;(v=u.current)===null||v===void 0||v.call(u,...f)}const h=E.useRef(o(d));return CN(()=>{var f;return(f=h.current)===null||f===void 0?void 0:f.cancel()}),h.current}const EN=[{label:"100 meter",value:"0.1"},{label:"250 meter",value:"0.25"},{label:"500 meter",value:"0.5"},{label:"1 km",value:"1"},{label:"2 km",value:"2"},{label:"3 km",value:"3"}];function wN({onValueChange:s,locationDefault:t,...n}){var H;const o=n.proximityOptions||EN,u=n.proximityDefault||(o.length===1?o[0].value:((H=o[Math.floor(o.length/2-1)])==null?void 0:H.value)||"0.5"),[d,h]=E.useState(""),[f,v]=E.useState([]),[p,y]=E.useState(!1),[x,_]=E.useState(null),[S,N]=E.useState(u),[w,j]=E.useState(!1),U=E.useRef(null),[M,D]=E.useState(0),T=E.useRef(null),O=V=>V.replace(/\s+/g,"");E.useEffect(()=>{!t&&d!==""&&(k(),N(u))},[t,u]),E.useEffect(()=>{if(d.length<3){v([]);return}const V=new AbortController,Y=setTimeout(()=>{y(!0),fetch(`${(n==null?void 0:n.zipCodeAutofillApiUrl)||""}${d}`,{signal:V.signal}).then(R=>R.json()).then(R=>{v(R.results||[]),j(!0)}).catch(R=>{R.name!=="AbortError"&&console.error("Fout bij ophalen suggesties:",R)}).finally(()=>y(!1))},300);return()=>{clearTimeout(Y),V.abort()}},[d]);const q=async V=>{var Y;j(!1);try{const X=(Y=(await(await fetch(`${(n==null?void 0:n.zipCodeApiUrl)||""}${encodeURIComponent(V.postcode)}`)).json()).results)==null?void 0:Y[0];X&&(_(X),h(`${X.postcode} ${X.straat}`))}catch(R){console.error("Fout bij ophalen postcode info:",R)}};E.useEffect(()=>{const V=Y=>{U.current&&!U.current.contains(Y.target)&&(x||h(""),j(!1),D(0))};return document.addEventListener("mousedown",V),document.addEventListener("touchstart",V),()=>{document.removeEventListener("mousedown",V),document.removeEventListener("touchstart",V)}},[x]);const k=()=>{h(""),v([]),_(null),j(!1),D(0),T.current&&T.current.focus()};return E.useEffect(()=>{if(x){const V={lat:x.latitude,lng:x.longitude,proximity:parseFloat(S)};s(V)}else s(void 0)},[x,S]),E.createElement(E.Fragment,null,E.createElement("div",{className:"form-element postcode-autofill",ref:U},E.createElement(Ci,{htmlFor:"locationField"},"Selecteer postcode"),E.createElement("div",{className:"input-wrapper"},E.createElement("input",{type:"text",ref:T,value:d,onChange:V=>{const Y=O(V.target.value);h(Y),_(null),j(!0)},onKeyDown:V=>{(V.key===" "||V.key==="Spacebar")&&V.preventDefault()},disabled:!!x,className:"utrecht-textbox utrecht-textbox--html-input",id:"locationField",autoComplete:"off","aria-autocomplete":"list","aria-controls":"suggestion-list","aria-expanded":w,"aria-activedescendant":w&&f.length>0?`suggestion-${M}`:void 0,role:"combobox"}),x&&E.createElement("button",{className:"clear-button",onClick:k,type:"button","aria-label":"Wis selectie"},"✕")),p&&E.createElement("p",{className:"loading","aria-live":"polite"},"Laden..."),!p&&w&&f.length>0&&E.createElement("ul",{className:"suggestion-list",id:"suggestion-list",role:"listbox",onKeyDown:V=>{w&&f.length>0&&(V.key==="ArrowDown"?(D(Y=>Math.min(Y+1,f.length-1)),V.preventDefault()):V.key==="ArrowUp"?(D(Y=>Math.max(Y-1,0)),V.preventDefault()):V.key==="Enter"?(q(f[M]),V.preventDefault()):V.key===" "&&V.preventDefault())}},f.map((V,Y)=>E.createElement("li",{key:Y,onClick:()=>q(V),role:"option",id:`suggestion-${Y}`,"aria-selected":M===Y,tabIndex:-1},E.createElement("strong",null,V.postcode)," ",V.straat,", ",V.woonplaats)))),E.createElement("div",{className:"form-element"},E.createElement(Ci,{htmlFor:"proximityField"},"Selecteer straal"),E.createElement(e1,{onValueChange:V=>N(V),options:o,id:"proximityField",value:S,disableDefaultOption:!0})))}const SN=({dataStore:s,tagType:t,onUpdateFilter:n,selected:o=[],onlyIncludeIds:u=[],preFilterTags:d=void 0,parentStopUsingDefaultValue:h=!1,inlineOptions:f=!1,...v})=>{if(!s||!s.useTags)return E.createElement("p",null,"Cannot render tagfilter, missing data source");const p={type:t,onlyIncludeIds:u};typeof(v==null?void 0:v.tagGroupProjectId)=="string"&&(v==null?void 0:v.tagGroupProjectId)==="0"&&(p.projectId=v.tagGroupProjectId);const{data:y}=s.useTags(p),[x,_]=E.useState(!1),[S,N]=E.useState([]);E.useEffect(()=>{h&&_(!0)});const w=Math.random().toString(36).substring(7);function j(M){return M&&M.length>=1?M.toLowerCase().replace(/[^a-z0-9\s]/g,"").replace(/\s+/g,"-"):w}E.useEffect(()=>{!x&&!h&&d&&d.length>0&&n&&d.forEach(M=>{const D=y.find(T=>T.id===M);D&&(n(D.id,D.name,!0),N(T=>T.includes(D.id)?T:[...T,D.id]))})},[d]);const U=x?o:Array.from(new Set([...o,...S]));return y.length>0&&E.createElement("div",{className:"form-element"},E.createElement(Ci,{id:j(v.placeholder)},v.placeholder||`Selecteer ${t.toLowerCase()}`),E.createElement(PL,{id:j(v.placeholder),onItemSelected:(M,D)=>{_(!0),n&&n(M,D)},options:(y||[]).map(M=>({value:M.id,label:M.name,checked:U.includes(M.id)})),inlineOptions:f,defaultOpen:f}))},W5=({imageFallback:s="",imageAltFallback:t="",imageDescriptionFallback:n="",images:o=[],createImageSlider:u=!1,addSpacer:d=!1,imageClickable:h=!1})=>{let f=o&&o.length>0?o:[];!f.length&&s&&(f=[{url:s,imageAlt:t,imageDescription:n}]);const v=(p,y,x)=>E.createElement("figure",{className:"info-image-container"},E.createElement($L,{clickable:h,src:p,alt:y},E.createElement("img",{src:p,alt:y,className:h?"clickable-image":void 0})),x&&E.createElement("figcaption",null,x),d&&E.createElement(zr,{size:.5}));return E.createElement(E.Fragment,null,u&&f.length>0?E.createElement(fd,{items:o,buttonText:{next:"Volgende afbeelding",previous:"Vorige afbeelding"},pager:!0,itemRenderer:p=>v(p.url,p.imageAlt,p.imageDescription)}):f.length>0?f.map(p=>v(p.url,p.imageAlt,p.imageDescription)):null)};var es={},ts={},Ou={},ns={},gd={},Z5;function ON(){return Z5||(Z5=1,Object.defineProperty(gd,"__esModule",{value:!0}),gd.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTǇǋǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉ǲኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻ǲᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤĳạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ﬃɩᾹ\0\0᾽g;耀ﬀig;耀ﬄ;쀀𝔣lig;耀ﬁlig;쀀fjƀaltῙ῜ῡt;晭ig;耀ﬂns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒α‚‰‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସǳ⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗǈⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼ǲ㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(s){return s.charCodeAt(0)}))),gd}var md={},X5;function LN(){return X5||(X5=1,Object.defineProperty(md,"__esModule",{value:!0}),md.default=new Uint16Array("Ȁaglq	\x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(s){return s.charCodeAt(0)}))),md}var d1={},Y5;function K5(){return Y5||(Y5=1,(function(s){var t;Object.defineProperty(s,"__esModule",{value:!0}),s.replaceCodePoint=s.fromCodePoint=void 0;var n=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);s.fromCodePoint=(t=String.fromCodePoint)!==null&&t!==void 0?t:function(d){var h="";return d>65535&&(d-=65536,h+=String.fromCharCode(d>>>10&1023|55296),d=56320|d&1023),h+=String.fromCharCode(d),h};function o(d){var h;return d>=55296&&d<=57343||d>1114111?65533:(h=n.get(d))!==null&&h!==void 0?h:d}s.replaceCodePoint=o;function u(d){return(0,s.fromCodePoint)(o(d))}s.default=u})(d1)),d1}var J5;function Q5(){return J5||(J5=1,(function(s){var t=ns&&ns.__createBinding||(Object.create?(function(R,A,X,ee){ee===void 0&&(ee=X);var ue=Object.getOwnPropertyDescriptor(A,X);(!ue||("get"in ue?!A.__esModule:ue.writable||ue.configurable))&&(ue={enumerable:!0,get:function(){return A[X]}}),Object.defineProperty(R,ee,ue)}):(function(R,A,X,ee){ee===void 0&&(ee=X),R[ee]=A[X]})),n=ns&&ns.__setModuleDefault||(Object.create?(function(R,A){Object.defineProperty(R,"default",{enumerable:!0,value:A})}):function(R,A){R.default=A}),o=ns&&ns.__importStar||function(R){if(R&&R.__esModule)return R;var A={};if(R!=null)for(var X in R)X!=="default"&&Object.prototype.hasOwnProperty.call(R,X)&&t(A,R,X);return n(A,R),A},u=ns&&ns.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(s,"__esModule",{value:!0}),s.decodeXML=s.decodeHTMLStrict=s.decodeHTMLAttribute=s.decodeHTML=s.determineBranch=s.EntityDecoder=s.DecodingMode=s.BinTrieFlags=s.fromCodePoint=s.replaceCodePoint=s.decodeCodePoint=s.xmlDecodeTree=s.htmlDecodeTree=void 0;var d=u(ON());s.htmlDecodeTree=d.default;var h=u(LN());s.xmlDecodeTree=h.default;var f=o(K5());s.decodeCodePoint=f.default;var v=K5();Object.defineProperty(s,"replaceCodePoint",{enumerable:!0,get:function(){return v.replaceCodePoint}}),Object.defineProperty(s,"fromCodePoint",{enumerable:!0,get:function(){return v.fromCodePoint}});var p;(function(R){R[R.NUM=35]="NUM",R[R.SEMI=59]="SEMI",R[R.EQUALS=61]="EQUALS",R[R.ZERO=48]="ZERO",R[R.NINE=57]="NINE",R[R.LOWER_A=97]="LOWER_A",R[R.LOWER_F=102]="LOWER_F",R[R.LOWER_X=120]="LOWER_X",R[R.LOWER_Z=122]="LOWER_Z",R[R.UPPER_A=65]="UPPER_A",R[R.UPPER_F=70]="UPPER_F",R[R.UPPER_Z=90]="UPPER_Z"})(p||(p={}));var y=32,x;(function(R){R[R.VALUE_LENGTH=49152]="VALUE_LENGTH",R[R.BRANCH_LENGTH=16256]="BRANCH_LENGTH",R[R.JUMP_TABLE=127]="JUMP_TABLE"})(x=s.BinTrieFlags||(s.BinTrieFlags={}));function _(R){return R>=p.ZERO&&R<=p.NINE}function S(R){return R>=p.UPPER_A&&R<=p.UPPER_F||R>=p.LOWER_A&&R<=p.LOWER_F}function N(R){return R>=p.UPPER_A&&R<=p.UPPER_Z||R>=p.LOWER_A&&R<=p.LOWER_Z||_(R)}function w(R){return R===p.EQUALS||N(R)}var j;(function(R){R[R.EntityStart=0]="EntityStart",R[R.NumericStart=1]="NumericStart",R[R.NumericDecimal=2]="NumericDecimal",R[R.NumericHex=3]="NumericHex",R[R.NamedEntity=4]="NamedEntity"})(j||(j={}));var U;(function(R){R[R.Legacy=0]="Legacy",R[R.Strict=1]="Strict",R[R.Attribute=2]="Attribute"})(U=s.DecodingMode||(s.DecodingMode={}));var M=(function(){function R(A,X,ee){this.decodeTree=A,this.emitCodePoint=X,this.errors=ee,this.state=j.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=U.Strict}return R.prototype.startEntity=function(A){this.decodeMode=A,this.state=j.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},R.prototype.write=function(A,X){switch(this.state){case j.EntityStart:return A.charCodeAt(X)===p.NUM?(this.state=j.NumericStart,this.consumed+=1,this.stateNumericStart(A,X+1)):(this.state=j.NamedEntity,this.stateNamedEntity(A,X));case j.NumericStart:return this.stateNumericStart(A,X);case j.NumericDecimal:return this.stateNumericDecimal(A,X);case j.NumericHex:return this.stateNumericHex(A,X);case j.NamedEntity:return this.stateNamedEntity(A,X)}},R.prototype.stateNumericStart=function(A,X){return X>=A.length?-1:(A.charCodeAt(X)|y)===p.LOWER_X?(this.state=j.NumericHex,this.consumed+=1,this.stateNumericHex(A,X+1)):(this.state=j.NumericDecimal,this.stateNumericDecimal(A,X))},R.prototype.addToNumericResult=function(A,X,ee,ue){if(X!==ee){var G=ee-X;this.result=this.result*Math.pow(ue,G)+parseInt(A.substr(X,G),ue),this.consumed+=G}},R.prototype.stateNumericHex=function(A,X){for(var ee=X;X<A.length;){var ue=A.charCodeAt(X);if(_(ue)||S(ue))X+=1;else return this.addToNumericResult(A,ee,X,16),this.emitNumericEntity(ue,3)}return this.addToNumericResult(A,ee,X,16),-1},R.prototype.stateNumericDecimal=function(A,X){for(var ee=X;X<A.length;){var ue=A.charCodeAt(X);if(_(ue))X+=1;else return this.addToNumericResult(A,ee,X,10),this.emitNumericEntity(ue,2)}return this.addToNumericResult(A,ee,X,10),-1},R.prototype.emitNumericEntity=function(A,X){var ee;if(this.consumed<=X)return(ee=this.errors)===null||ee===void 0||ee.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(A===p.SEMI)this.consumed+=1;else if(this.decodeMode===U.Strict)return 0;return this.emitCodePoint((0,f.replaceCodePoint)(this.result),this.consumed),this.errors&&(A!==p.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},R.prototype.stateNamedEntity=function(A,X){for(var ee=this.decodeTree,ue=ee[this.treeIndex],G=(ue&x.VALUE_LENGTH)>>14;X<A.length;X++,this.excess++){var K=A.charCodeAt(X);if(this.treeIndex=T(ee,ue,this.treeIndex+Math.max(1,G),K),this.treeIndex<0)return this.result===0||this.decodeMode===U.Attribute&&(G===0||w(K))?0:this.emitNotTerminatedNamedEntity();if(ue=ee[this.treeIndex],G=(ue&x.VALUE_LENGTH)>>14,G!==0){if(K===p.SEMI)return this.emitNamedEntityData(this.treeIndex,G,this.consumed+this.excess);this.decodeMode!==U.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},R.prototype.emitNotTerminatedNamedEntity=function(){var A,X=this,ee=X.result,ue=X.decodeTree,G=(ue[ee]&x.VALUE_LENGTH)>>14;return this.emitNamedEntityData(ee,G,this.consumed),(A=this.errors)===null||A===void 0||A.missingSemicolonAfterCharacterReference(),this.consumed},R.prototype.emitNamedEntityData=function(A,X,ee){var ue=this.decodeTree;return this.emitCodePoint(X===1?ue[A]&~x.VALUE_LENGTH:ue[A+1],ee),X===3&&this.emitCodePoint(ue[A+2],ee),ee},R.prototype.end=function(){var A;switch(this.state){case j.NamedEntity:return this.result!==0&&(this.decodeMode!==U.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case j.NumericDecimal:return this.emitNumericEntity(0,2);case j.NumericHex:return this.emitNumericEntity(0,3);case j.NumericStart:return(A=this.errors)===null||A===void 0||A.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case j.EntityStart:return 0}},R})();s.EntityDecoder=M;function D(R){var A="",X=new M(R,function(ee){return A+=(0,f.fromCodePoint)(ee)});return function(ue,G){for(var K=0,B=0;(B=ue.indexOf("&",B))>=0;){A+=ue.slice(K,B),X.startEntity(G);var te=X.write(ue,B+1);if(te<0){K=B+X.end();break}K=B+te,B=te===0?K+1:K}var Q=A+ue.slice(K);return A="",Q}}function T(R,A,X,ee){var ue=(A&x.BRANCH_LENGTH)>>7,G=A&x.JUMP_TABLE;if(ue===0)return G!==0&&ee===G?X:-1;if(G){var K=ee-G;return K<0||K>=ue?-1:R[X+K]-1}for(var B=X,te=B+ue-1;B<=te;){var Q=B+te>>>1,$=R[Q];if($<ee)B=Q+1;else if($>ee)te=Q-1;else return R[Q+ue]}return-1}s.determineBranch=T;var O=D(d.default),q=D(h.default);function k(R,A){return A===void 0&&(A=U.Legacy),O(R,A)}s.decodeHTML=k;function H(R){return O(R,U.Attribute)}s.decodeHTMLAttribute=H;function V(R){return O(R,U.Strict)}s.decodeHTMLStrict=V;function Y(R){return q(R,U.Strict)}s.decodeXML=Y})(ns)),ns}var $5;function ey(){if($5)return Ou;$5=1,Object.defineProperty(Ou,"__esModule",{value:!0}),Ou.QuoteType=void 0;var s=Q5(),t;(function(p){p[p.Tab=9]="Tab",p[p.NewLine=10]="NewLine",p[p.FormFeed=12]="FormFeed",p[p.CarriageReturn=13]="CarriageReturn",p[p.Space=32]="Space",p[p.ExclamationMark=33]="ExclamationMark",p[p.Number=35]="Number",p[p.Amp=38]="Amp",p[p.SingleQuote=39]="SingleQuote",p[p.DoubleQuote=34]="DoubleQuote",p[p.Dash=45]="Dash",p[p.Slash=47]="Slash",p[p.Zero=48]="Zero",p[p.Nine=57]="Nine",p[p.Semi=59]="Semi",p[p.Lt=60]="Lt",p[p.Eq=61]="Eq",p[p.Gt=62]="Gt",p[p.Questionmark=63]="Questionmark",p[p.UpperA=65]="UpperA",p[p.LowerA=97]="LowerA",p[p.UpperF=70]="UpperF",p[p.LowerF=102]="LowerF",p[p.UpperZ=90]="UpperZ",p[p.LowerZ=122]="LowerZ",p[p.LowerX=120]="LowerX",p[p.OpeningSquareBracket=91]="OpeningSquareBracket"})(t||(t={}));var n;(function(p){p[p.Text=1]="Text",p[p.BeforeTagName=2]="BeforeTagName",p[p.InTagName=3]="InTagName",p[p.InSelfClosingTag=4]="InSelfClosingTag",p[p.BeforeClosingTagName=5]="BeforeClosingTagName",p[p.InClosingTagName=6]="InClosingTagName",p[p.AfterClosingTagName=7]="AfterClosingTagName",p[p.BeforeAttributeName=8]="BeforeAttributeName",p[p.InAttributeName=9]="InAttributeName",p[p.AfterAttributeName=10]="AfterAttributeName",p[p.BeforeAttributeValue=11]="BeforeAttributeValue",p[p.InAttributeValueDq=12]="InAttributeValueDq",p[p.InAttributeValueSq=13]="InAttributeValueSq",p[p.InAttributeValueNq=14]="InAttributeValueNq",p[p.BeforeDeclaration=15]="BeforeDeclaration",p[p.InDeclaration=16]="InDeclaration",p[p.InProcessingInstruction=17]="InProcessingInstruction",p[p.BeforeComment=18]="BeforeComment",p[p.CDATASequence=19]="CDATASequence",p[p.InSpecialComment=20]="InSpecialComment",p[p.InCommentLike=21]="InCommentLike",p[p.BeforeSpecialS=22]="BeforeSpecialS",p[p.BeforeSpecialT=23]="BeforeSpecialT",p[p.SpecialStartSequence=24]="SpecialStartSequence",p[p.InSpecialTag=25]="InSpecialTag",p[p.InEntity=26]="InEntity"})(n||(n={}));function o(p){return p===t.Space||p===t.NewLine||p===t.Tab||p===t.FormFeed||p===t.CarriageReturn}function u(p){return p===t.Slash||p===t.Gt||o(p)}function d(p){return p>=t.LowerA&&p<=t.LowerZ||p>=t.UpperA&&p<=t.UpperZ}var h;(function(p){p[p.NoValue=0]="NoValue",p[p.Unquoted=1]="Unquoted",p[p.Single=2]="Single",p[p.Double=3]="Double"})(h||(Ou.QuoteType=h={}));var f={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])},v=(function(){function p(y,x){var _=y.xmlMode,S=_===void 0?!1:_,N=y.decodeEntities,w=N===void 0?!0:N,j=this;this.cbs=x,this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=n.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.xmlMode=S,this.decodeEntities=w,this.entityDecoder=new s.EntityDecoder(S?s.xmlDecodeTree:s.htmlDecodeTree,function(U,M){return j.emitCodePoint(U,M)})}return p.prototype.reset=function(){this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},p.prototype.write=function(y){this.offset+=this.buffer.length,this.buffer=y,this.parse()},p.prototype.end=function(){this.running&&this.finish()},p.prototype.pause=function(){this.running=!1},p.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},p.prototype.stateText=function(y){y===t.Lt||!this.decodeEntities&&this.fastForwardTo(t.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=n.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&y===t.Amp&&this.startEntity()},p.prototype.stateSpecialStartSequence=function(y){var x=this.sequenceIndex===this.currentSequence.length,_=x?u(y):(y|32)===this.currentSequence[this.sequenceIndex];if(!_)this.isSpecial=!1;else if(!x){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=n.InTagName,this.stateInTagName(y)},p.prototype.stateInSpecialTag=function(y){if(this.sequenceIndex===this.currentSequence.length){if(y===t.Gt||o(y)){var x=this.index-this.currentSequence.length;if(this.sectionStart<x){var _=this.index;this.index=x,this.cbs.ontext(this.sectionStart,x),this.index=_}this.isSpecial=!1,this.sectionStart=x+2,this.stateInClosingTagName(y);return}this.sequenceIndex=0}(y|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===f.TitleEnd?this.decodeEntities&&y===t.Amp&&this.startEntity():this.fastForwardTo(t.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(y===t.Lt)},p.prototype.stateCDATASequence=function(y){y===f.Cdata[this.sequenceIndex]?++this.sequenceIndex===f.Cdata.length&&(this.state=n.InCommentLike,this.currentSequence=f.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=n.InDeclaration,this.stateInDeclaration(y))},p.prototype.fastForwardTo=function(y){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===y)return!0;return this.index=this.buffer.length+this.offset-1,!1},p.prototype.stateInCommentLike=function(y){y===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===f.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=n.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):y!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},p.prototype.isTagStartChar=function(y){return this.xmlMode?!u(y):d(y)},p.prototype.startSpecial=function(y,x){this.isSpecial=!0,this.currentSequence=y,this.sequenceIndex=x,this.state=n.SpecialStartSequence},p.prototype.stateBeforeTagName=function(y){if(y===t.ExclamationMark)this.state=n.BeforeDeclaration,this.sectionStart=this.index+1;else if(y===t.Questionmark)this.state=n.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(y)){var x=y|32;this.sectionStart=this.index,this.xmlMode?this.state=n.InTagName:x===f.ScriptEnd[2]?this.state=n.BeforeSpecialS:x===f.TitleEnd[2]?this.state=n.BeforeSpecialT:this.state=n.InTagName}else y===t.Slash?this.state=n.BeforeClosingTagName:(this.state=n.Text,this.stateText(y))},p.prototype.stateInTagName=function(y){u(y)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(y))},p.prototype.stateBeforeClosingTagName=function(y){o(y)||(y===t.Gt?this.state=n.Text:(this.state=this.isTagStartChar(y)?n.InClosingTagName:n.InSpecialComment,this.sectionStart=this.index))},p.prototype.stateInClosingTagName=function(y){(y===t.Gt||o(y))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterClosingTagName,this.stateAfterClosingTagName(y))},p.prototype.stateAfterClosingTagName=function(y){(y===t.Gt||this.fastForwardTo(t.Gt))&&(this.state=n.Text,this.sectionStart=this.index+1)},p.prototype.stateBeforeAttributeName=function(y){y===t.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=n.InSpecialTag,this.sequenceIndex=0):this.state=n.Text,this.sectionStart=this.index+1):y===t.Slash?this.state=n.InSelfClosingTag:o(y)||(this.state=n.InAttributeName,this.sectionStart=this.index)},p.prototype.stateInSelfClosingTag=function(y){y===t.Gt?(this.cbs.onselfclosingtag(this.index),this.state=n.Text,this.sectionStart=this.index+1,this.isSpecial=!1):o(y)||(this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(y))},p.prototype.stateInAttributeName=function(y){(y===t.Eq||u(y))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=this.index,this.state=n.AfterAttributeName,this.stateAfterAttributeName(y))},p.prototype.stateAfterAttributeName=function(y){y===t.Eq?this.state=n.BeforeAttributeValue:y===t.Slash||y===t.Gt?(this.cbs.onattribend(h.NoValue,this.sectionStart),this.sectionStart=-1,this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(y)):o(y)||(this.cbs.onattribend(h.NoValue,this.sectionStart),this.state=n.InAttributeName,this.sectionStart=this.index)},p.prototype.stateBeforeAttributeValue=function(y){y===t.DoubleQuote?(this.state=n.InAttributeValueDq,this.sectionStart=this.index+1):y===t.SingleQuote?(this.state=n.InAttributeValueSq,this.sectionStart=this.index+1):o(y)||(this.sectionStart=this.index,this.state=n.InAttributeValueNq,this.stateInAttributeValueNoQuotes(y))},p.prototype.handleInAttributeValue=function(y,x){y===x||!this.decodeEntities&&this.fastForwardTo(x)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(x===t.DoubleQuote?h.Double:h.Single,this.index+1),this.state=n.BeforeAttributeName):this.decodeEntities&&y===t.Amp&&this.startEntity()},p.prototype.stateInAttributeValueDoubleQuotes=function(y){this.handleInAttributeValue(y,t.DoubleQuote)},p.prototype.stateInAttributeValueSingleQuotes=function(y){this.handleInAttributeValue(y,t.SingleQuote)},p.prototype.stateInAttributeValueNoQuotes=function(y){o(y)||y===t.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(h.Unquoted,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(y)):this.decodeEntities&&y===t.Amp&&this.startEntity()},p.prototype.stateBeforeDeclaration=function(y){y===t.OpeningSquareBracket?(this.state=n.CDATASequence,this.sequenceIndex=0):this.state=y===t.Dash?n.BeforeComment:n.InDeclaration},p.prototype.stateInDeclaration=function(y){(y===t.Gt||this.fastForwardTo(t.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},p.prototype.stateInProcessingInstruction=function(y){(y===t.Gt||this.fastForwardTo(t.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},p.prototype.stateBeforeComment=function(y){y===t.Dash?(this.state=n.InCommentLike,this.currentSequence=f.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=n.InDeclaration},p.prototype.stateInSpecialComment=function(y){(y===t.Gt||this.fastForwardTo(t.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=n.Text,this.sectionStart=this.index+1)},p.prototype.stateBeforeSpecialS=function(y){var x=y|32;x===f.ScriptEnd[3]?this.startSpecial(f.ScriptEnd,4):x===f.StyleEnd[3]?this.startSpecial(f.StyleEnd,4):(this.state=n.InTagName,this.stateInTagName(y))},p.prototype.stateBeforeSpecialT=function(y){var x=y|32;x===f.TitleEnd[3]?this.startSpecial(f.TitleEnd,4):x===f.TextareaEnd[3]?this.startSpecial(f.TextareaEnd,4):(this.state=n.InTagName,this.stateInTagName(y))},p.prototype.startEntity=function(){this.baseState=this.state,this.state=n.InEntity,this.entityStart=this.index,this.entityDecoder.startEntity(this.xmlMode?s.DecodingMode.Strict:this.baseState===n.Text||this.baseState===n.InSpecialTag?s.DecodingMode.Legacy:s.DecodingMode.Attribute)},p.prototype.stateInEntity=function(){var y=this.entityDecoder.write(this.buffer,this.index-this.offset);y>=0?(this.state=this.baseState,y===0&&(this.index=this.entityStart)):this.index=this.offset+this.buffer.length-1},p.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===n.Text||this.state===n.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===n.InAttributeValueDq||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},p.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.running},p.prototype.parse=function(){for(;this.shouldContinue();){var y=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case n.Text:{this.stateText(y);break}case n.SpecialStartSequence:{this.stateSpecialStartSequence(y);break}case n.InSpecialTag:{this.stateInSpecialTag(y);break}case n.CDATASequence:{this.stateCDATASequence(y);break}case n.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(y);break}case n.InAttributeName:{this.stateInAttributeName(y);break}case n.InCommentLike:{this.stateInCommentLike(y);break}case n.InSpecialComment:{this.stateInSpecialComment(y);break}case n.BeforeAttributeName:{this.stateBeforeAttributeName(y);break}case n.InTagName:{this.stateInTagName(y);break}case n.InClosingTagName:{this.stateInClosingTagName(y);break}case n.BeforeTagName:{this.stateBeforeTagName(y);break}case n.AfterAttributeName:{this.stateAfterAttributeName(y);break}case n.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(y);break}case n.BeforeAttributeValue:{this.stateBeforeAttributeValue(y);break}case n.BeforeClosingTagName:{this.stateBeforeClosingTagName(y);break}case n.AfterClosingTagName:{this.stateAfterClosingTagName(y);break}case n.BeforeSpecialS:{this.stateBeforeSpecialS(y);break}case n.BeforeSpecialT:{this.stateBeforeSpecialT(y);break}case n.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(y);break}case n.InSelfClosingTag:{this.stateInSelfClosingTag(y);break}case n.InDeclaration:{this.stateInDeclaration(y);break}case n.BeforeDeclaration:{this.stateBeforeDeclaration(y);break}case n.BeforeComment:{this.stateBeforeComment(y);break}case n.InProcessingInstruction:{this.stateInProcessingInstruction(y);break}case n.InEntity:{this.stateInEntity();break}}this.index++}this.cleanup()},p.prototype.finish=function(){this.state===n.InEntity&&(this.entityDecoder.end(),this.state=this.baseState),this.handleTrailingData(),this.cbs.onend()},p.prototype.handleTrailingData=function(){var y=this.buffer.length+this.offset;this.sectionStart>=y||(this.state===n.InCommentLike?this.currentSequence===f.CdataEnd?this.cbs.oncdata(this.sectionStart,y,0):this.cbs.oncomment(this.sectionStart,y,0):this.state===n.InTagName||this.state===n.BeforeAttributeName||this.state===n.BeforeAttributeValue||this.state===n.AfterAttributeName||this.state===n.InAttributeName||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueDq||this.state===n.InAttributeValueNq||this.state===n.InClosingTagName||this.cbs.ontext(this.sectionStart,y))},p.prototype.emitCodePoint=function(y,x){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?(this.sectionStart<this.entityStart&&this.cbs.onattribdata(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+x,this.index=this.sectionStart-1,this.cbs.onattribentity(y)):(this.sectionStart<this.entityStart&&this.cbs.ontext(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+x,this.index=this.sectionStart-1,this.cbs.ontextentity(y,this.sectionStart))},p})();return Ou.default=v,Ou}var ty;function ny(){if(ty)return ts;ty=1;var s=ts&&ts.__createBinding||(Object.create?(function(j,U,M,D){D===void 0&&(D=M);var T=Object.getOwnPropertyDescriptor(U,M);(!T||("get"in T?!U.__esModule:T.writable||T.configurable))&&(T={enumerable:!0,get:function(){return U[M]}}),Object.defineProperty(j,D,T)}):(function(j,U,M,D){D===void 0&&(D=M),j[D]=U[M]})),t=ts&&ts.__setModuleDefault||(Object.create?(function(j,U){Object.defineProperty(j,"default",{enumerable:!0,value:U})}):function(j,U){j.default=U}),n=ts&&ts.__importStar||function(j){if(j&&j.__esModule)return j;var U={};if(j!=null)for(var M in j)M!=="default"&&Object.prototype.hasOwnProperty.call(j,M)&&s(U,j,M);return t(U,j),U};Object.defineProperty(ts,"__esModule",{value:!0}),ts.Parser=void 0;var o=n(ey()),u=Q5(),d=new Set(["input","option","optgroup","select","button","datalist","textarea"]),h=new Set(["p"]),f=new Set(["thead","tbody"]),v=new Set(["dd","dt"]),p=new Set(["rt","rp"]),y=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",h],["h1",h],["h2",h],["h3",h],["h4",h],["h5",h],["h6",h],["select",d],["input",d],["output",d],["button",d],["datalist",d],["textarea",d],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",v],["dt",v],["address",h],["article",h],["aside",h],["blockquote",h],["details",h],["div",h],["dl",h],["fieldset",h],["figcaption",h],["figure",h],["footer",h],["form",h],["header",h],["hr",h],["main",h],["nav",h],["ol",h],["pre",h],["section",h],["table",h],["ul",h],["rt",p],["rp",p],["tbody",f],["tfoot",f]]),x=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),_=new Set(["math","svg"]),S=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),N=/\s|\//,w=(function(){function j(U,M){M===void 0&&(M={});var D,T,O,q,k,H;this.options=M,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=U??{},this.htmlMode=!this.options.xmlMode,this.lowerCaseTagNames=(D=M.lowerCaseTags)!==null&&D!==void 0?D:this.htmlMode,this.lowerCaseAttributeNames=(T=M.lowerCaseAttributeNames)!==null&&T!==void 0?T:this.htmlMode,this.recognizeSelfClosing=(O=M.recognizeSelfClosing)!==null&&O!==void 0?O:!this.htmlMode,this.tokenizer=new((q=M.Tokenizer)!==null&&q!==void 0?q:o.default)(this.options,this),this.foreignContext=[!this.htmlMode],(H=(k=this.cbs).onparserinit)===null||H===void 0||H.call(k,this)}return j.prototype.ontext=function(U,M){var D,T,O=this.getSlice(U,M);this.endIndex=M-1,(T=(D=this.cbs).ontext)===null||T===void 0||T.call(D,O),this.startIndex=M},j.prototype.ontextentity=function(U,M){var D,T;this.endIndex=M-1,(T=(D=this.cbs).ontext)===null||T===void 0||T.call(D,(0,u.fromCodePoint)(U)),this.startIndex=M},j.prototype.isVoidElement=function(U){return this.htmlMode&&x.has(U)},j.prototype.onopentagname=function(U,M){this.endIndex=M;var D=this.getSlice(U,M);this.lowerCaseTagNames&&(D=D.toLowerCase()),this.emitOpenTag(D)},j.prototype.emitOpenTag=function(U){var M,D,T,O;this.openTagStart=this.startIndex,this.tagname=U;var q=this.htmlMode&&y.get(U);if(q)for(;this.stack.length>0&&q.has(this.stack[0]);){var k=this.stack.shift();(D=(M=this.cbs).onclosetag)===null||D===void 0||D.call(M,k,!0)}this.isVoidElement(U)||(this.stack.unshift(U),this.htmlMode&&(_.has(U)?this.foreignContext.unshift(!0):S.has(U)&&this.foreignContext.unshift(!1))),(O=(T=this.cbs).onopentagname)===null||O===void 0||O.call(T,U),this.cbs.onopentag&&(this.attribs={})},j.prototype.endOpenTag=function(U){var M,D;this.startIndex=this.openTagStart,this.attribs&&((D=(M=this.cbs).onopentag)===null||D===void 0||D.call(M,this.tagname,this.attribs,U),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},j.prototype.onopentagend=function(U){this.endIndex=U,this.endOpenTag(!1),this.startIndex=U+1},j.prototype.onclosetag=function(U,M){var D,T,O,q,k,H,V,Y;this.endIndex=M;var R=this.getSlice(U,M);if(this.lowerCaseTagNames&&(R=R.toLowerCase()),this.htmlMode&&(_.has(R)||S.has(R))&&this.foreignContext.shift(),this.isVoidElement(R))this.htmlMode&&R==="br"&&((q=(O=this.cbs).onopentagname)===null||q===void 0||q.call(O,"br"),(H=(k=this.cbs).onopentag)===null||H===void 0||H.call(k,"br",{},!0),(Y=(V=this.cbs).onclosetag)===null||Y===void 0||Y.call(V,"br",!1));else{var A=this.stack.indexOf(R);if(A!==-1)for(var X=0;X<=A;X++){var ee=this.stack.shift();(T=(D=this.cbs).onclosetag)===null||T===void 0||T.call(D,ee,X!==A)}else this.htmlMode&&R==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=M+1},j.prototype.onselfclosingtag=function(U){this.endIndex=U,this.recognizeSelfClosing||this.foreignContext[0]?(this.closeCurrentTag(!1),this.startIndex=U+1):this.onopentagend(U)},j.prototype.closeCurrentTag=function(U){var M,D,T=this.tagname;this.endOpenTag(U),this.stack[0]===T&&((D=(M=this.cbs).onclosetag)===null||D===void 0||D.call(M,T,!U),this.stack.shift())},j.prototype.onattribname=function(U,M){this.startIndex=U;var D=this.getSlice(U,M);this.attribname=this.lowerCaseAttributeNames?D.toLowerCase():D},j.prototype.onattribdata=function(U,M){this.attribvalue+=this.getSlice(U,M)},j.prototype.onattribentity=function(U){this.attribvalue+=(0,u.fromCodePoint)(U)},j.prototype.onattribend=function(U,M){var D,T;this.endIndex=M,(T=(D=this.cbs).onattribute)===null||T===void 0||T.call(D,this.attribname,this.attribvalue,U===o.QuoteType.Double?'"':U===o.QuoteType.Single?"'":U===o.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},j.prototype.getInstructionName=function(U){var M=U.search(N),D=M<0?U:U.substr(0,M);return this.lowerCaseTagNames&&(D=D.toLowerCase()),D},j.prototype.ondeclaration=function(U,M){this.endIndex=M;var D=this.getSlice(U,M);if(this.cbs.onprocessinginstruction){var T=this.getInstructionName(D);this.cbs.onprocessinginstruction("!".concat(T),"!".concat(D))}this.startIndex=M+1},j.prototype.onprocessinginstruction=function(U,M){this.endIndex=M;var D=this.getSlice(U,M);if(this.cbs.onprocessinginstruction){var T=this.getInstructionName(D);this.cbs.onprocessinginstruction("?".concat(T),"?".concat(D))}this.startIndex=M+1},j.prototype.oncomment=function(U,M,D){var T,O,q,k;this.endIndex=M,(O=(T=this.cbs).oncomment)===null||O===void 0||O.call(T,this.getSlice(U,M-D)),(k=(q=this.cbs).oncommentend)===null||k===void 0||k.call(q),this.startIndex=M+1},j.prototype.oncdata=function(U,M,D){var T,O,q,k,H,V,Y,R,A,X;this.endIndex=M;var ee=this.getSlice(U,M-D);!this.htmlMode||this.options.recognizeCDATA?((O=(T=this.cbs).oncdatastart)===null||O===void 0||O.call(T),(k=(q=this.cbs).ontext)===null||k===void 0||k.call(q,ee),(V=(H=this.cbs).oncdataend)===null||V===void 0||V.call(H)):((R=(Y=this.cbs).oncomment)===null||R===void 0||R.call(Y,"[CDATA[".concat(ee,"]]")),(X=(A=this.cbs).oncommentend)===null||X===void 0||X.call(A)),this.startIndex=M+1},j.prototype.onend=function(){var U,M;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var D=0;D<this.stack.length;D++)this.cbs.onclosetag(this.stack[D],!0)}(M=(U=this.cbs).onend)===null||M===void 0||M.call(U)},j.prototype.reset=function(){var U,M,D,T;(M=(U=this.cbs).onreset)===null||M===void 0||M.call(U),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(T=(D=this.cbs).onparserinit)===null||T===void 0||T.call(D,this),this.buffers.length=0,this.foreignContext.length=0,this.foreignContext.unshift(!this.htmlMode),this.bufferOffset=0,this.writeIndex=0,this.ended=!1},j.prototype.parseComplete=function(U){this.reset(),this.end(U)},j.prototype.getSlice=function(U,M){for(;U-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var D=this.buffers[0].slice(U-this.bufferOffset,M-this.bufferOffset);M-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),D+=this.buffers[0].slice(0,M-this.bufferOffset);return D},j.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},j.prototype.write=function(U){var M,D;if(this.ended){(D=(M=this.cbs).onerror)===null||D===void 0||D.call(M,new Error(".write() after done!"));return}this.buffers.push(U),this.tokenizer.running&&(this.tokenizer.write(U),this.writeIndex++)},j.prototype.end=function(U){var M,D;if(this.ended){(D=(M=this.cbs).onerror)===null||D===void 0||D.call(M,new Error(".end() after done!"));return}U&&this.write(U),this.ended=!0,this.tokenizer.end()},j.prototype.pause=function(){this.tokenizer.pause()},j.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()},j.prototype.parseChunk=function(U){this.write(U)},j.prototype.done=function(U){this.end(U)},j})();return ts.Parser=w,ts}var va={},h1={},ry;function Pl(){return ry||(ry=1,(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.Doctype=s.CDATA=s.Tag=s.Style=s.Script=s.Comment=s.Directive=s.Text=s.Root=s.isTag=s.ElementType=void 0;var t;(function(o){o.Root="root",o.Text="text",o.Directive="directive",o.Comment="comment",o.Script="script",o.Style="style",o.Tag="tag",o.CDATA="cdata",o.Doctype="doctype"})(t=s.ElementType||(s.ElementType={}));function n(o){return o.type===t.Tag||o.type===t.Script||o.type===t.Style}s.isTag=n,s.Root=t.Root,s.Text=t.Text,s.Directive=t.Directive,s.Comment=t.Comment,s.Script=t.Script,s.Style=t.Style,s.Tag=t.Tag,s.CDATA=t.CDATA,s.Doctype=t.Doctype})(h1)),h1}var Ut={},iy;function sy(){if(iy)return Ut;iy=1;var s=Ut&&Ut.__extends||(function(){var O=function(q,k){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(H,V){H.__proto__=V}||function(H,V){for(var Y in V)Object.prototype.hasOwnProperty.call(V,Y)&&(H[Y]=V[Y])},O(q,k)};return function(q,k){if(typeof k!="function"&&k!==null)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");O(q,k);function H(){this.constructor=q}q.prototype=k===null?Object.create(k):(H.prototype=k.prototype,new H)}})(),t=Ut&&Ut.__assign||function(){return t=Object.assign||function(O){for(var q,k=1,H=arguments.length;k<H;k++){q=arguments[k];for(var V in q)Object.prototype.hasOwnProperty.call(q,V)&&(O[V]=q[V])}return O},t.apply(this,arguments)};Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.cloneNode=Ut.hasChildren=Ut.isDocument=Ut.isDirective=Ut.isComment=Ut.isText=Ut.isCDATA=Ut.isTag=Ut.Element=Ut.Document=Ut.CDATA=Ut.NodeWithChildren=Ut.ProcessingInstruction=Ut.Comment=Ut.Text=Ut.DataNode=Ut.Node=void 0;var n=Pl(),o=(function(){function O(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(O.prototype,"parentNode",{get:function(){return this.parent},set:function(q){this.parent=q},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"previousSibling",{get:function(){return this.prev},set:function(q){this.prev=q},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"nextSibling",{get:function(){return this.next},set:function(q){this.next=q},enumerable:!1,configurable:!0}),O.prototype.cloneNode=function(q){return q===void 0&&(q=!1),D(this,q)},O})();Ut.Node=o;var u=(function(O){s(q,O);function q(k){var H=O.call(this)||this;return H.data=k,H}return Object.defineProperty(q.prototype,"nodeValue",{get:function(){return this.data},set:function(k){this.data=k},enumerable:!1,configurable:!0}),q})(o);Ut.DataNode=u;var d=(function(O){s(q,O);function q(){var k=O!==null&&O.apply(this,arguments)||this;return k.type=n.ElementType.Text,k}return Object.defineProperty(q.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),q})(u);Ut.Text=d;var h=(function(O){s(q,O);function q(){var k=O!==null&&O.apply(this,arguments)||this;return k.type=n.ElementType.Comment,k}return Object.defineProperty(q.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),q})(u);Ut.Comment=h;var f=(function(O){s(q,O);function q(k,H){var V=O.call(this,H)||this;return V.name=k,V.type=n.ElementType.Directive,V}return Object.defineProperty(q.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),q})(u);Ut.ProcessingInstruction=f;var v=(function(O){s(q,O);function q(k){var H=O.call(this)||this;return H.children=k,H}return Object.defineProperty(q.prototype,"firstChild",{get:function(){var k;return(k=this.children[0])!==null&&k!==void 0?k:null},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"childNodes",{get:function(){return this.children},set:function(k){this.children=k},enumerable:!1,configurable:!0}),q})(o);Ut.NodeWithChildren=v;var p=(function(O){s(q,O);function q(){var k=O!==null&&O.apply(this,arguments)||this;return k.type=n.ElementType.CDATA,k}return Object.defineProperty(q.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),q})(v);Ut.CDATA=p;var y=(function(O){s(q,O);function q(){var k=O!==null&&O.apply(this,arguments)||this;return k.type=n.ElementType.Root,k}return Object.defineProperty(q.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),q})(v);Ut.Document=y;var x=(function(O){s(q,O);function q(k,H,V,Y){V===void 0&&(V=[]),Y===void 0&&(Y=k==="script"?n.ElementType.Script:k==="style"?n.ElementType.Style:n.ElementType.Tag);var R=O.call(this,V)||this;return R.name=k,R.attribs=H,R.type=Y,R}return Object.defineProperty(q.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"tagName",{get:function(){return this.name},set:function(k){this.name=k},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"attributes",{get:function(){var k=this;return Object.keys(this.attribs).map(function(H){var V,Y;return{name:H,value:k.attribs[H],namespace:(V=k["x-attribsNamespace"])===null||V===void 0?void 0:V[H],prefix:(Y=k["x-attribsPrefix"])===null||Y===void 0?void 0:Y[H]}})},enumerable:!1,configurable:!0}),q})(v);Ut.Element=x;function _(O){return(0,n.isTag)(O)}Ut.isTag=_;function S(O){return O.type===n.ElementType.CDATA}Ut.isCDATA=S;function N(O){return O.type===n.ElementType.Text}Ut.isText=N;function w(O){return O.type===n.ElementType.Comment}Ut.isComment=w;function j(O){return O.type===n.ElementType.Directive}Ut.isDirective=j;function U(O){return O.type===n.ElementType.Root}Ut.isDocument=U;function M(O){return Object.prototype.hasOwnProperty.call(O,"children")}Ut.hasChildren=M;function D(O,q){q===void 0&&(q=!1);var k;if(N(O))k=new d(O.data);else if(w(O))k=new h(O.data);else if(_(O)){var H=q?T(O.children):[],V=new x(O.name,t({},O.attribs),H);H.forEach(function(X){return X.parent=V}),O.namespace!=null&&(V.namespace=O.namespace),O["x-attribsNamespace"]&&(V["x-attribsNamespace"]=t({},O["x-attribsNamespace"])),O["x-attribsPrefix"]&&(V["x-attribsPrefix"]=t({},O["x-attribsPrefix"])),k=V}else if(S(O)){var H=q?T(O.children):[],Y=new p(H);H.forEach(function(ee){return ee.parent=Y}),k=Y}else if(U(O)){var H=q?T(O.children):[],R=new y(H);H.forEach(function(ee){return ee.parent=R}),O["x-mode"]&&(R["x-mode"]=O["x-mode"]),k=R}else if(j(O)){var A=new f(O.name,O.data);O["x-name"]!=null&&(A["x-name"]=O["x-name"],A["x-publicId"]=O["x-publicId"],A["x-systemId"]=O["x-systemId"]),k=A}else throw new Error("Not implemented yet: ".concat(O.type));return k.startIndex=O.startIndex,k.endIndex=O.endIndex,O.sourceCodeLocation!=null&&(k.sourceCodeLocation=O.sourceCodeLocation),k}Ut.cloneNode=D;function T(O){for(var q=O.map(function(H){return D(H,!0)}),k=1;k<q.length;k++)q[k].prev=q[k-1],q[k-1].next=q[k];return q}return Ut}var oy;function to(){return oy||(oy=1,(function(s){var t=va&&va.__createBinding||(Object.create?(function(f,v,p,y){y===void 0&&(y=p);var x=Object.getOwnPropertyDescriptor(v,p);(!x||("get"in x?!v.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return v[p]}}),Object.defineProperty(f,y,x)}):(function(f,v,p,y){y===void 0&&(y=p),f[y]=v[p]})),n=va&&va.__exportStar||function(f,v){for(var p in f)p!=="default"&&!Object.prototype.hasOwnProperty.call(v,p)&&t(v,f,p)};Object.defineProperty(s,"__esModule",{value:!0}),s.DomHandler=void 0;var o=Pl(),u=sy();n(sy(),s);var d={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},h=(function(){function f(v,p,y){this.dom=[],this.root=new u.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof p=="function"&&(y=p,p=d),typeof v=="object"&&(p=v,v=void 0),this.callback=v??null,this.options=p??d,this.elementCB=y??null}return f.prototype.onparserinit=function(v){this.parser=v},f.prototype.onreset=function(){this.dom=[],this.root=new u.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},f.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},f.prototype.onerror=function(v){this.handleCallback(v)},f.prototype.onclosetag=function(){this.lastNode=null;var v=this.tagStack.pop();this.options.withEndIndices&&(v.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(v)},f.prototype.onopentag=function(v,p){var y=this.options.xmlMode?o.ElementType.Tag:void 0,x=new u.Element(v,p,void 0,y);this.addNode(x),this.tagStack.push(x)},f.prototype.ontext=function(v){var p=this.lastNode;if(p&&p.type===o.ElementType.Text)p.data+=v,this.options.withEndIndices&&(p.endIndex=this.parser.endIndex);else{var y=new u.Text(v);this.addNode(y),this.lastNode=y}},f.prototype.oncomment=function(v){if(this.lastNode&&this.lastNode.type===o.ElementType.Comment){this.lastNode.data+=v;return}var p=new u.Comment(v);this.addNode(p),this.lastNode=p},f.prototype.oncommentend=function(){this.lastNode=null},f.prototype.oncdatastart=function(){var v=new u.Text(""),p=new u.CDATA([v]);this.addNode(p),v.parent=p,this.lastNode=v},f.prototype.oncdataend=function(){this.lastNode=null},f.prototype.onprocessinginstruction=function(v,p){var y=new u.ProcessingInstruction(v,p);this.addNode(y)},f.prototype.handleCallback=function(v){if(typeof this.callback=="function")this.callback(v,this.dom);else if(v)throw v},f.prototype.addNode=function(v){var p=this.tagStack[this.tagStack.length-1],y=p.children[p.children.length-1];this.options.withStartIndices&&(v.startIndex=this.parser.startIndex),this.options.withEndIndices&&(v.endIndex=this.parser.endIndex),p.children.push(v),y&&(v.prev=y,y.next=v),v.parent=p,this.lastNode=null},f})();s.DomHandler=h,s.default=h})(va)),va}var ya={},Ts={},oi={},f1={},rs={},pd={},ay;function NN(){return ay||(ay=1,Object.defineProperty(pd,"__esModule",{value:!0}),pd.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTǇǋǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉ǲኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻ǲᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤĳạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ﬃɩᾹ\0\0᾽g;耀ﬀig;耀ﬄ;쀀𝔣lig;耀ﬁlig;쀀fjƀaltῙ῜ῡt;晭ig;耀ﬂns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒α‚‰‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସǳ⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗǈⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼ǲ㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(s){return s.charCodeAt(0)}))),pd}var vd={},uy;function IN(){return uy||(uy=1,Object.defineProperty(vd,"__esModule",{value:!0}),vd.default=new Uint16Array("Ȁaglq	\x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(s){return s.charCodeAt(0)}))),vd}var g1={},ly;function cy(){return ly||(ly=1,(function(s){var t;Object.defineProperty(s,"__esModule",{value:!0}),s.replaceCodePoint=s.fromCodePoint=void 0;var n=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);s.fromCodePoint=(t=String.fromCodePoint)!==null&&t!==void 0?t:function(d){var h="";return d>65535&&(d-=65536,h+=String.fromCharCode(d>>>10&1023|55296),d=56320|d&1023),h+=String.fromCharCode(d),h};function o(d){var h;return d>=55296&&d<=57343||d>1114111?65533:(h=n.get(d))!==null&&h!==void 0?h:d}s.replaceCodePoint=o;function u(d){return(0,s.fromCodePoint)(o(d))}s.default=u})(g1)),g1}var dy;function hy(){return dy||(dy=1,(function(s){var t=rs&&rs.__createBinding||(Object.create?(function(R,A,X,ee){ee===void 0&&(ee=X);var ue=Object.getOwnPropertyDescriptor(A,X);(!ue||("get"in ue?!A.__esModule:ue.writable||ue.configurable))&&(ue={enumerable:!0,get:function(){return A[X]}}),Object.defineProperty(R,ee,ue)}):(function(R,A,X,ee){ee===void 0&&(ee=X),R[ee]=A[X]})),n=rs&&rs.__setModuleDefault||(Object.create?(function(R,A){Object.defineProperty(R,"default",{enumerable:!0,value:A})}):function(R,A){R.default=A}),o=rs&&rs.__importStar||function(R){if(R&&R.__esModule)return R;var A={};if(R!=null)for(var X in R)X!=="default"&&Object.prototype.hasOwnProperty.call(R,X)&&t(A,R,X);return n(A,R),A},u=rs&&rs.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(s,"__esModule",{value:!0}),s.decodeXML=s.decodeHTMLStrict=s.decodeHTMLAttribute=s.decodeHTML=s.determineBranch=s.EntityDecoder=s.DecodingMode=s.BinTrieFlags=s.fromCodePoint=s.replaceCodePoint=s.decodeCodePoint=s.xmlDecodeTree=s.htmlDecodeTree=void 0;var d=u(NN());s.htmlDecodeTree=d.default;var h=u(IN());s.xmlDecodeTree=h.default;var f=o(cy());s.decodeCodePoint=f.default;var v=cy();Object.defineProperty(s,"replaceCodePoint",{enumerable:!0,get:function(){return v.replaceCodePoint}}),Object.defineProperty(s,"fromCodePoint",{enumerable:!0,get:function(){return v.fromCodePoint}});var p;(function(R){R[R.NUM=35]="NUM",R[R.SEMI=59]="SEMI",R[R.EQUALS=61]="EQUALS",R[R.ZERO=48]="ZERO",R[R.NINE=57]="NINE",R[R.LOWER_A=97]="LOWER_A",R[R.LOWER_F=102]="LOWER_F",R[R.LOWER_X=120]="LOWER_X",R[R.LOWER_Z=122]="LOWER_Z",R[R.UPPER_A=65]="UPPER_A",R[R.UPPER_F=70]="UPPER_F",R[R.UPPER_Z=90]="UPPER_Z"})(p||(p={}));var y=32,x;(function(R){R[R.VALUE_LENGTH=49152]="VALUE_LENGTH",R[R.BRANCH_LENGTH=16256]="BRANCH_LENGTH",R[R.JUMP_TABLE=127]="JUMP_TABLE"})(x=s.BinTrieFlags||(s.BinTrieFlags={}));function _(R){return R>=p.ZERO&&R<=p.NINE}function S(R){return R>=p.UPPER_A&&R<=p.UPPER_F||R>=p.LOWER_A&&R<=p.LOWER_F}function N(R){return R>=p.UPPER_A&&R<=p.UPPER_Z||R>=p.LOWER_A&&R<=p.LOWER_Z||_(R)}function w(R){return R===p.EQUALS||N(R)}var j;(function(R){R[R.EntityStart=0]="EntityStart",R[R.NumericStart=1]="NumericStart",R[R.NumericDecimal=2]="NumericDecimal",R[R.NumericHex=3]="NumericHex",R[R.NamedEntity=4]="NamedEntity"})(j||(j={}));var U;(function(R){R[R.Legacy=0]="Legacy",R[R.Strict=1]="Strict",R[R.Attribute=2]="Attribute"})(U=s.DecodingMode||(s.DecodingMode={}));var M=(function(){function R(A,X,ee){this.decodeTree=A,this.emitCodePoint=X,this.errors=ee,this.state=j.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=U.Strict}return R.prototype.startEntity=function(A){this.decodeMode=A,this.state=j.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},R.prototype.write=function(A,X){switch(this.state){case j.EntityStart:return A.charCodeAt(X)===p.NUM?(this.state=j.NumericStart,this.consumed+=1,this.stateNumericStart(A,X+1)):(this.state=j.NamedEntity,this.stateNamedEntity(A,X));case j.NumericStart:return this.stateNumericStart(A,X);case j.NumericDecimal:return this.stateNumericDecimal(A,X);case j.NumericHex:return this.stateNumericHex(A,X);case j.NamedEntity:return this.stateNamedEntity(A,X)}},R.prototype.stateNumericStart=function(A,X){return X>=A.length?-1:(A.charCodeAt(X)|y)===p.LOWER_X?(this.state=j.NumericHex,this.consumed+=1,this.stateNumericHex(A,X+1)):(this.state=j.NumericDecimal,this.stateNumericDecimal(A,X))},R.prototype.addToNumericResult=function(A,X,ee,ue){if(X!==ee){var G=ee-X;this.result=this.result*Math.pow(ue,G)+parseInt(A.substr(X,G),ue),this.consumed+=G}},R.prototype.stateNumericHex=function(A,X){for(var ee=X;X<A.length;){var ue=A.charCodeAt(X);if(_(ue)||S(ue))X+=1;else return this.addToNumericResult(A,ee,X,16),this.emitNumericEntity(ue,3)}return this.addToNumericResult(A,ee,X,16),-1},R.prototype.stateNumericDecimal=function(A,X){for(var ee=X;X<A.length;){var ue=A.charCodeAt(X);if(_(ue))X+=1;else return this.addToNumericResult(A,ee,X,10),this.emitNumericEntity(ue,2)}return this.addToNumericResult(A,ee,X,10),-1},R.prototype.emitNumericEntity=function(A,X){var ee;if(this.consumed<=X)return(ee=this.errors)===null||ee===void 0||ee.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(A===p.SEMI)this.consumed+=1;else if(this.decodeMode===U.Strict)return 0;return this.emitCodePoint((0,f.replaceCodePoint)(this.result),this.consumed),this.errors&&(A!==p.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},R.prototype.stateNamedEntity=function(A,X){for(var ee=this.decodeTree,ue=ee[this.treeIndex],G=(ue&x.VALUE_LENGTH)>>14;X<A.length;X++,this.excess++){var K=A.charCodeAt(X);if(this.treeIndex=T(ee,ue,this.treeIndex+Math.max(1,G),K),this.treeIndex<0)return this.result===0||this.decodeMode===U.Attribute&&(G===0||w(K))?0:this.emitNotTerminatedNamedEntity();if(ue=ee[this.treeIndex],G=(ue&x.VALUE_LENGTH)>>14,G!==0){if(K===p.SEMI)return this.emitNamedEntityData(this.treeIndex,G,this.consumed+this.excess);this.decodeMode!==U.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},R.prototype.emitNotTerminatedNamedEntity=function(){var A,X=this,ee=X.result,ue=X.decodeTree,G=(ue[ee]&x.VALUE_LENGTH)>>14;return this.emitNamedEntityData(ee,G,this.consumed),(A=this.errors)===null||A===void 0||A.missingSemicolonAfterCharacterReference(),this.consumed},R.prototype.emitNamedEntityData=function(A,X,ee){var ue=this.decodeTree;return this.emitCodePoint(X===1?ue[A]&~x.VALUE_LENGTH:ue[A+1],ee),X===3&&this.emitCodePoint(ue[A+2],ee),ee},R.prototype.end=function(){var A;switch(this.state){case j.NamedEntity:return this.result!==0&&(this.decodeMode!==U.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case j.NumericDecimal:return this.emitNumericEntity(0,2);case j.NumericHex:return this.emitNumericEntity(0,3);case j.NumericStart:return(A=this.errors)===null||A===void 0||A.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case j.EntityStart:return 0}},R})();s.EntityDecoder=M;function D(R){var A="",X=new M(R,function(ee){return A+=(0,f.fromCodePoint)(ee)});return function(ue,G){for(var K=0,B=0;(B=ue.indexOf("&",B))>=0;){A+=ue.slice(K,B),X.startEntity(G);var te=X.write(ue,B+1);if(te<0){K=B+X.end();break}K=B+te,B=te===0?K+1:K}var Q=A+ue.slice(K);return A="",Q}}function T(R,A,X,ee){var ue=(A&x.BRANCH_LENGTH)>>7,G=A&x.JUMP_TABLE;if(ue===0)return G!==0&&ee===G?X:-1;if(G){var K=ee-G;return K<0||K>=ue?-1:R[X+K]-1}for(var B=X,te=B+ue-1;B<=te;){var Q=B+te>>>1,$=R[Q];if($<ee)B=Q+1;else if($>ee)te=Q-1;else return R[Q+ue]}return-1}s.determineBranch=T;var O=D(d.default),q=D(h.default);function k(R,A){return A===void 0&&(A=U.Legacy),O(R,A)}s.decodeHTML=k;function H(R){return O(R,U.Attribute)}s.decodeHTMLAttribute=H;function V(R){return O(R,U.Strict)}s.decodeHTMLStrict=V;function Y(R){return q(R,U.Strict)}s.decodeXML=Y})(rs)),rs}var no={},yd={},fy;function TN(){if(fy)return yd;fy=1,Object.defineProperty(yd,"__esModule",{value:!0});function s(t){for(var n=1;n<t.length;n++)t[n][0]+=t[n-1][0]+1;return t}return yd.default=new Map(s([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(s([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(s([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(s([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]])),yd}var m1={},gy;function p1(){return gy||(gy=1,(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.escapeText=s.escapeAttribute=s.escapeUTF8=s.escape=s.encodeXML=s.getCodePoint=s.xmlReplacer=void 0,s.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var t=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);s.getCodePoint=String.prototype.codePointAt!=null?function(u,d){return u.codePointAt(d)}:function(u,d){return(u.charCodeAt(d)&64512)===55296?(u.charCodeAt(d)-55296)*1024+u.charCodeAt(d+1)-56320+65536:u.charCodeAt(d)};function n(u){for(var d="",h=0,f;(f=s.xmlReplacer.exec(u))!==null;){var v=f.index,p=u.charCodeAt(v),y=t.get(p);y!==void 0?(d+=u.substring(h,v)+y,h=v+1):(d+="".concat(u.substring(h,v),"&#x").concat((0,s.getCodePoint)(u,v).toString(16),";"),h=s.xmlReplacer.lastIndex+=+((p&64512)===55296))}return d+u.substr(h)}s.encodeXML=n,s.escape=n;function o(u,d){return function(f){for(var v,p=0,y="";v=u.exec(f);)p!==v.index&&(y+=f.substring(p,v.index)),y+=d.get(v[0].charCodeAt(0)),p=v.index+1;return y+f.substring(p)}}s.escapeUTF8=o(/[&<>'"]/g,t),s.escapeAttribute=o(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),s.escapeText=o(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]))})(m1)),m1}var my;function py(){if(my)return no;my=1;var s=no&&no.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(no,"__esModule",{value:!0}),no.encodeNonAsciiHTML=no.encodeHTML=void 0;var t=s(TN()),n=p1(),o=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function u(f){return h(o,f)}no.encodeHTML=u;function d(f){return h(n.xmlReplacer,f)}no.encodeNonAsciiHTML=d;function h(f,v){for(var p="",y=0,x;(x=f.exec(v))!==null;){var _=x.index;p+=v.substring(y,_);var S=v.charCodeAt(_),N=t.default.get(S);if(typeof N=="object"){if(_+1<v.length){var w=v.charCodeAt(_+1),j=typeof N.n=="number"?N.n===w?N.o:void 0:N.n.get(w);if(j!==void 0){p+=j,y=f.lastIndex+=1;continue}}N=N.v}if(N!==void 0)p+=N,y=_+1;else{var U=(0,n.getCodePoint)(v,_);p+="&#x".concat(U.toString(16),";"),y=f.lastIndex+=+(U!==S)}}return p+v.substr(y)}return no}var vy;function AN(){return vy||(vy=1,(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.decodeXMLStrict=s.decodeHTML5Strict=s.decodeHTML4Strict=s.decodeHTML5=s.decodeHTML4=s.decodeHTMLAttribute=s.decodeHTMLStrict=s.decodeHTML=s.decodeXML=s.DecodingMode=s.EntityDecoder=s.encodeHTML5=s.encodeHTML4=s.encodeNonAsciiHTML=s.encodeHTML=s.escapeText=s.escapeAttribute=s.escapeUTF8=s.escape=s.encodeXML=s.encode=s.decodeStrict=s.decode=s.EncodingMode=s.EntityLevel=void 0;var t=hy(),n=py(),o=p1(),u;(function(_){_[_.XML=0]="XML",_[_.HTML=1]="HTML"})(u=s.EntityLevel||(s.EntityLevel={}));var d;(function(_){_[_.UTF8=0]="UTF8",_[_.ASCII=1]="ASCII",_[_.Extensive=2]="Extensive",_[_.Attribute=3]="Attribute",_[_.Text=4]="Text"})(d=s.EncodingMode||(s.EncodingMode={}));function h(_,S){S===void 0&&(S=u.XML);var N=typeof S=="number"?S:S.level;if(N===u.HTML){var w=typeof S=="object"?S.mode:void 0;return(0,t.decodeHTML)(_,w)}return(0,t.decodeXML)(_)}s.decode=h;function f(_,S){var N;S===void 0&&(S=u.XML);var w=typeof S=="number"?{level:S}:S;return(N=w.mode)!==null&&N!==void 0||(w.mode=t.DecodingMode.Strict),h(_,w)}s.decodeStrict=f;function v(_,S){S===void 0&&(S=u.XML);var N=typeof S=="number"?{level:S}:S;return N.mode===d.UTF8?(0,o.escapeUTF8)(_):N.mode===d.Attribute?(0,o.escapeAttribute)(_):N.mode===d.Text?(0,o.escapeText)(_):N.level===u.HTML?N.mode===d.ASCII?(0,n.encodeNonAsciiHTML)(_):(0,n.encodeHTML)(_):(0,o.encodeXML)(_)}s.encode=v;var p=p1();Object.defineProperty(s,"encodeXML",{enumerable:!0,get:function(){return p.encodeXML}}),Object.defineProperty(s,"escape",{enumerable:!0,get:function(){return p.escape}}),Object.defineProperty(s,"escapeUTF8",{enumerable:!0,get:function(){return p.escapeUTF8}}),Object.defineProperty(s,"escapeAttribute",{enumerable:!0,get:function(){return p.escapeAttribute}}),Object.defineProperty(s,"escapeText",{enumerable:!0,get:function(){return p.escapeText}});var y=py();Object.defineProperty(s,"encodeHTML",{enumerable:!0,get:function(){return y.encodeHTML}}),Object.defineProperty(s,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return y.encodeNonAsciiHTML}}),Object.defineProperty(s,"encodeHTML4",{enumerable:!0,get:function(){return y.encodeHTML}}),Object.defineProperty(s,"encodeHTML5",{enumerable:!0,get:function(){return y.encodeHTML}});var x=hy();Object.defineProperty(s,"EntityDecoder",{enumerable:!0,get:function(){return x.EntityDecoder}}),Object.defineProperty(s,"DecodingMode",{enumerable:!0,get:function(){return x.DecodingMode}}),Object.defineProperty(s,"decodeXML",{enumerable:!0,get:function(){return x.decodeXML}}),Object.defineProperty(s,"decodeHTML",{enumerable:!0,get:function(){return x.decodeHTML}}),Object.defineProperty(s,"decodeHTMLStrict",{enumerable:!0,get:function(){return x.decodeHTMLStrict}}),Object.defineProperty(s,"decodeHTMLAttribute",{enumerable:!0,get:function(){return x.decodeHTMLAttribute}}),Object.defineProperty(s,"decodeHTML4",{enumerable:!0,get:function(){return x.decodeHTML}}),Object.defineProperty(s,"decodeHTML5",{enumerable:!0,get:function(){return x.decodeHTML}}),Object.defineProperty(s,"decodeHTML4Strict",{enumerable:!0,get:function(){return x.decodeHTMLStrict}}),Object.defineProperty(s,"decodeHTML5Strict",{enumerable:!0,get:function(){return x.decodeHTMLStrict}}),Object.defineProperty(s,"decodeXMLStrict",{enumerable:!0,get:function(){return x.decodeXML}})})(f1)),f1}var ba={},yy;function PN(){return yy||(yy=1,Object.defineProperty(ba,"__esModule",{value:!0}),ba.attributeNames=ba.elementNames=void 0,ba.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(function(s){return[s.toLowerCase(),s]})),ba.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(function(s){return[s.toLowerCase(),s]}))),ba}var by;function DN(){if(by)return oi;by=1;var s=oi&&oi.__assign||function(){return s=Object.assign||function(T){for(var O,q=1,k=arguments.length;q<k;q++){O=arguments[q];for(var H in O)Object.prototype.hasOwnProperty.call(O,H)&&(T[H]=O[H])}return T},s.apply(this,arguments)},t=oi&&oi.__createBinding||(Object.create?(function(T,O,q,k){k===void 0&&(k=q);var H=Object.getOwnPropertyDescriptor(O,q);(!H||("get"in H?!O.__esModule:H.writable||H.configurable))&&(H={enumerable:!0,get:function(){return O[q]}}),Object.defineProperty(T,k,H)}):(function(T,O,q,k){k===void 0&&(k=q),T[k]=O[q]})),n=oi&&oi.__setModuleDefault||(Object.create?(function(T,O){Object.defineProperty(T,"default",{enumerable:!0,value:O})}):function(T,O){T.default=O}),o=oi&&oi.__importStar||function(T){if(T&&T.__esModule)return T;var O={};if(T!=null)for(var q in T)q!=="default"&&Object.prototype.hasOwnProperty.call(T,q)&&t(O,T,q);return n(O,T),O};Object.defineProperty(oi,"__esModule",{value:!0}),oi.render=void 0;var u=o(Pl()),d=AN(),h=PN(),f=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function v(T){return T.replace(/"/g,"&quot;")}function p(T,O){var q;if(T){var k=((q=O.encodeEntities)!==null&&q!==void 0?q:O.decodeEntities)===!1?v:O.xmlMode||O.encodeEntities!=="utf8"?d.encodeXML:d.escapeAttribute;return Object.keys(T).map(function(H){var V,Y,R=(V=T[H])!==null&&V!==void 0?V:"";return O.xmlMode==="foreign"&&(H=(Y=h.attributeNames.get(H))!==null&&Y!==void 0?Y:H),!O.emptyAttrs&&!O.xmlMode&&R===""?H:"".concat(H,'="').concat(k(R),'"')}).join(" ")}}var y=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function x(T,O){O===void 0&&(O={});for(var q=("length"in T)?T:[T],k="",H=0;H<q.length;H++)k+=_(q[H],O);return k}oi.render=x,oi.default=x;function _(T,O){switch(T.type){case u.Root:return x(T.children,O);case u.Doctype:case u.Directive:return j(T);case u.Comment:return D(T);case u.CDATA:return M(T);case u.Script:case u.Style:case u.Tag:return w(T,O);case u.Text:return U(T,O)}}var S=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),N=new Set(["svg","math"]);function w(T,O){var q;O.xmlMode==="foreign"&&(T.name=(q=h.elementNames.get(T.name))!==null&&q!==void 0?q:T.name,T.parent&&S.has(T.parent.name)&&(O=s(s({},O),{xmlMode:!1}))),!O.xmlMode&&N.has(T.name)&&(O=s(s({},O),{xmlMode:"foreign"}));var k="<".concat(T.name),H=p(T.attribs,O);return H&&(k+=" ".concat(H)),T.children.length===0&&(O.xmlMode?O.selfClosingTags!==!1:O.selfClosingTags&&y.has(T.name))?(O.xmlMode||(k+=" "),k+="/>"):(k+=">",T.children.length>0&&(k+=x(T.children,O)),(O.xmlMode||!y.has(T.name))&&(k+="</".concat(T.name,">"))),k}function j(T){return"<".concat(T.data,">")}function U(T,O){var q,k=T.data||"";return((q=O.encodeEntities)!==null&&q!==void 0?q:O.decodeEntities)!==!1&&!(!O.xmlMode&&T.parent&&f.has(T.parent.name))&&(k=O.xmlMode||O.encodeEntities!=="utf8"?(0,d.encodeXML)(k):(0,d.escapeText)(k)),k}function M(T){return"<![CDATA[".concat(T.children[0].data,"]]>")}function D(T){return"<!--".concat(T.data,"-->")}return oi}var xy;function Cy(){if(xy)return Ts;xy=1;var s=Ts&&Ts.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(Ts,"__esModule",{value:!0}),Ts.getOuterHTML=u,Ts.getInnerHTML=d,Ts.getText=h,Ts.textContent=f,Ts.innerText=v;var t=to(),n=s(DN()),o=Pl();function u(p,y){return(0,n.default)(p,y)}function d(p,y){return(0,t.hasChildren)(p)?p.children.map(function(x){return u(x,y)}).join(""):""}function h(p){return Array.isArray(p)?p.map(h).join(""):(0,t.isTag)(p)?p.name==="br"?`
`:h(p.children):(0,t.isCDATA)(p)?h(p.children):(0,t.isText)(p)?p.data:""}function f(p){return Array.isArray(p)?p.map(f).join(""):(0,t.hasChildren)(p)&&!(0,t.isComment)(p)?f(p.children):(0,t.isText)(p)?p.data:""}function v(p){return Array.isArray(p)?p.map(v).join(""):(0,t.hasChildren)(p)&&(p.type===o.ElementType.Tag||(0,t.isCDATA)(p))?v(p.children):(0,t.isText)(p)?p.data:""}return Ts}var is={},_y;function MN(){if(_y)return is;_y=1,Object.defineProperty(is,"__esModule",{value:!0}),is.getChildren=t,is.getParent=n,is.getSiblings=o,is.getAttributeValue=u,is.hasAttrib=d,is.getName=h,is.nextElementSibling=f,is.prevElementSibling=v;var s=to();function t(p){return(0,s.hasChildren)(p)?p.children:[]}function n(p){return p.parent||null}function o(p){var y,x,_=n(p);if(_!=null)return t(_);for(var S=[p],N=p.prev,w=p.next;N!=null;)S.unshift(N),y=N,N=y.prev;for(;w!=null;)S.push(w),x=w,w=x.next;return S}function u(p,y){var x;return(x=p.attribs)===null||x===void 0?void 0:x[y]}function d(p,y){return p.attribs!=null&&Object.prototype.hasOwnProperty.call(p.attribs,y)&&p.attribs[y]!=null}function h(p){return p.name}function f(p){for(var y,x=p.next;x!==null&&!(0,s.isTag)(x);)y=x,x=y.next;return x}function v(p){for(var y,x=p.prev;x!==null&&!(0,s.isTag)(x);)y=x,x=y.prev;return x}return is}var ro={},Ey;function kN(){if(Ey)return ro;Ey=1,Object.defineProperty(ro,"__esModule",{value:!0}),ro.removeElement=s,ro.replaceElement=t,ro.appendChild=n,ro.append=o,ro.prependChild=u,ro.prepend=d;function s(h){if(h.prev&&(h.prev.next=h.next),h.next&&(h.next.prev=h.prev),h.parent){var f=h.parent.children,v=f.lastIndexOf(h);v>=0&&f.splice(v,1)}h.next=null,h.prev=null,h.parent=null}function t(h,f){var v=f.prev=h.prev;v&&(v.next=f);var p=f.next=h.next;p&&(p.prev=f);var y=f.parent=h.parent;if(y){var x=y.children;x[x.lastIndexOf(h)]=f,h.parent=null}}function n(h,f){if(s(f),f.next=null,f.parent=h,h.children.push(f)>1){var v=h.children[h.children.length-2];v.next=f,f.prev=v}else f.prev=null}function o(h,f){s(f);var v=h.parent,p=h.next;if(f.next=p,f.prev=h,h.next=f,f.parent=v,p){if(p.prev=f,v){var y=v.children;y.splice(y.lastIndexOf(p),0,f)}}else v&&v.children.push(f)}function u(h,f){if(s(f),f.parent=h,f.prev=null,h.children.unshift(f)!==1){var v=h.children[1];v.prev=f,f.next=v}else f.next=null}function d(h,f){s(f);var v=h.parent;if(v){var p=v.children;p.splice(p.indexOf(h),0,f)}h.prev&&(h.prev.next=f),f.parent=v,f.prev=h.prev,f.next=h,h.prev=f}return ro}var io={},wy;function Sy(){if(wy)return io;wy=1,Object.defineProperty(io,"__esModule",{value:!0}),io.filter=t,io.find=n,io.findOneChild=o,io.findOne=u,io.existsOne=d,io.findAll=h;var s=to();function t(f,v,p,y){return p===void 0&&(p=!0),y===void 0&&(y=1/0),n(f,Array.isArray(v)?v:[v],p,y)}function n(f,v,p,y){for(var x=[],_=[Array.isArray(v)?v:[v]],S=[0];;){if(S[0]>=_[0].length){if(S.length===1)return x;_.shift(),S.shift();continue}var N=_[0][S[0]++];if(f(N)&&(x.push(N),--y<=0))return x;p&&(0,s.hasChildren)(N)&&N.children.length>0&&(S.unshift(0),_.unshift(N.children))}}function o(f,v){return v.find(f)}function u(f,v,p){p===void 0&&(p=!0);for(var y=Array.isArray(v)?v:[v],x=0;x<y.length;x++){var _=y[x];if((0,s.isTag)(_)&&f(_))return _;if(p&&(0,s.hasChildren)(_)&&_.children.length>0){var S=u(f,_.children,!0);if(S)return S}}return null}function d(f,v){return(Array.isArray(v)?v:[v]).some(function(p){return(0,s.isTag)(p)&&f(p)||(0,s.hasChildren)(p)&&d(f,p.children)})}function h(f,v){for(var p=[],y=[Array.isArray(v)?v:[v]],x=[0];;){if(x[0]>=y[0].length){if(y.length===1)return p;y.shift(),x.shift();continue}var _=y[0][x[0]++];(0,s.isTag)(_)&&f(_)&&p.push(_),(0,s.hasChildren)(_)&&_.children.length>0&&(x.unshift(0),y.unshift(_.children))}}return io}var so={},Oy;function Ly(){if(Oy)return so;Oy=1,Object.defineProperty(so,"__esModule",{value:!0}),so.testElement=h,so.getElements=f,so.getElementById=v,so.getElementsByTagName=p,so.getElementsByClassName=y,so.getElementsByTagType=x;var s=to(),t=Sy(),n={tag_name:function(_){return typeof _=="function"?function(S){return(0,s.isTag)(S)&&_(S.name)}:_==="*"?s.isTag:function(S){return(0,s.isTag)(S)&&S.name===_}},tag_type:function(_){return typeof _=="function"?function(S){return _(S.type)}:function(S){return S.type===_}},tag_contains:function(_){return typeof _=="function"?function(S){return(0,s.isText)(S)&&_(S.data)}:function(S){return(0,s.isText)(S)&&S.data===_}}};function o(_,S){return typeof S=="function"?function(N){return(0,s.isTag)(N)&&S(N.attribs[_])}:function(N){return(0,s.isTag)(N)&&N.attribs[_]===S}}function u(_,S){return function(N){return _(N)||S(N)}}function d(_){var S=Object.keys(_).map(function(N){var w=_[N];return Object.prototype.hasOwnProperty.call(n,N)?n[N](w):o(N,w)});return S.length===0?null:S.reduce(u)}function h(_,S){var N=d(_);return N?N(S):!0}function f(_,S,N,w){w===void 0&&(w=1/0);var j=d(_);return j?(0,t.filter)(j,S,N,w):[]}function v(_,S,N){return N===void 0&&(N=!0),Array.isArray(S)||(S=[S]),(0,t.findOne)(o("id",_),S,N)}function p(_,S,N,w){return N===void 0&&(N=!0),w===void 0&&(w=1/0),(0,t.filter)(n.tag_name(_),S,N,w)}function y(_,S,N,w){return N===void 0&&(N=!0),w===void 0&&(w=1/0),(0,t.filter)(o("class",_),S,N,w)}function x(_,S,N,w){return N===void 0&&(N=!0),w===void 0&&(w=1/0),(0,t.filter)(n.tag_type(_),S,N,w)}return so}var Do={},Ny;function RN(){if(Ny)return Do;Ny=1,Object.defineProperty(Do,"__esModule",{value:!0}),Do.DocumentPosition=void 0,Do.removeSubsets=t,Do.compareDocumentPosition=o,Do.uniqueSort=u;var s=to();function t(d){for(var h=d.length;--h>=0;){var f=d[h];if(h>0&&d.lastIndexOf(f,h-1)>=0){d.splice(h,1);continue}for(var v=f.parent;v;v=v.parent)if(d.includes(v)){d.splice(h,1);break}}return d}var n;(function(d){d[d.DISCONNECTED=1]="DISCONNECTED",d[d.PRECEDING=2]="PRECEDING",d[d.FOLLOWING=4]="FOLLOWING",d[d.CONTAINS=8]="CONTAINS",d[d.CONTAINED_BY=16]="CONTAINED_BY"})(n||(Do.DocumentPosition=n={}));function o(d,h){var f=[],v=[];if(d===h)return 0;for(var p=(0,s.hasChildren)(d)?d:d.parent;p;)f.unshift(p),p=p.parent;for(p=(0,s.hasChildren)(h)?h:h.parent;p;)v.unshift(p),p=p.parent;for(var y=Math.min(f.length,v.length),x=0;x<y&&f[x]===v[x];)x++;if(x===0)return n.DISCONNECTED;var _=f[x-1],S=_.children,N=f[x],w=v[x];return S.indexOf(N)>S.indexOf(w)?_===h?n.FOLLOWING|n.CONTAINED_BY:n.FOLLOWING:_===d?n.PRECEDING|n.CONTAINS:n.PRECEDING}function u(d){return d=d.filter(function(h,f,v){return!v.includes(h,f+1)}),d.sort(function(h,f){var v=o(h,f);return v&n.PRECEDING?-1:v&n.FOLLOWING?1:0}),d}return Do}var bd={},Iy;function jN(){if(Iy)return bd;Iy=1,Object.defineProperty(bd,"__esModule",{value:!0}),bd.getFeed=n;var s=Cy(),t=Ly();function n(_){var S=v(x,_);return S?S.name==="feed"?o(S):u(S):null}function o(_){var S,N=_.children,w={type:"atom",items:(0,t.getElementsByTagName)("entry",N).map(function(M){var D,T=M.children,O={media:f(T)};y(O,"id","id",T),y(O,"title","title",T);var q=(D=v("link",T))===null||D===void 0?void 0:D.attribs.href;q&&(O.link=q);var k=p("summary",T)||p("content",T);k&&(O.description=k);var H=p("updated",T);return H&&(O.pubDate=new Date(H)),O})};y(w,"id","id",N),y(w,"title","title",N);var j=(S=v("link",N))===null||S===void 0?void 0:S.attribs.href;j&&(w.link=j),y(w,"description","subtitle",N);var U=p("updated",N);return U&&(w.updated=new Date(U)),y(w,"author","email",N,!0),w}function u(_){var S,N,w=(N=(S=v("channel",_.children))===null||S===void 0?void 0:S.children)!==null&&N!==void 0?N:[],j={type:_.name.substr(0,3),id:"",items:(0,t.getElementsByTagName)("item",_.children).map(function(M){var D=M.children,T={media:f(D)};y(T,"id","guid",D),y(T,"title","title",D),y(T,"link","link",D),y(T,"description","description",D);var O=p("pubDate",D)||p("dc:date",D);return O&&(T.pubDate=new Date(O)),T})};y(j,"title","title",w),y(j,"link","link",w),y(j,"description","description",w);var U=p("lastBuildDate",w);return U&&(j.updated=new Date(U)),y(j,"author","managingEditor",w,!0),j}var d=["url","type","lang"],h=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function f(_){return(0,t.getElementsByTagName)("media:content",_).map(function(S){for(var N=S.attribs,w={medium:N.medium,isDefault:!!N.isDefault},j=0,U=d;j<U.length;j++){var M=U[j];N[M]&&(w[M]=N[M])}for(var D=0,T=h;D<T.length;D++){var M=T[D];N[M]&&(w[M]=parseInt(N[M],10))}return N.expression&&(w.expression=N.expression),w})}function v(_,S){return(0,t.getElementsByTagName)(_,S,!0,1)[0]}function p(_,S,N){return N===void 0&&(N=!1),(0,s.textContent)((0,t.getElementsByTagName)(_,S,N,1)).trim()}function y(_,S,N,w,j){j===void 0&&(j=!1);var U=p(N,w,j);U&&(_[S]=U)}function x(_){return _==="rss"||_==="feed"||_==="rdf:RDF"}return bd}var Ty;function v1(){return Ty||(Ty=1,(function(s){var t=ya&&ya.__createBinding||(Object.create?(function(u,d,h,f){f===void 0&&(f=h);var v=Object.getOwnPropertyDescriptor(d,h);(!v||("get"in v?!d.__esModule:v.writable||v.configurable))&&(v={enumerable:!0,get:function(){return d[h]}}),Object.defineProperty(u,f,v)}):(function(u,d,h,f){f===void 0&&(f=h),u[f]=d[h]})),n=ya&&ya.__exportStar||function(u,d){for(var h in u)h!=="default"&&!Object.prototype.hasOwnProperty.call(d,h)&&t(d,u,h)};Object.defineProperty(s,"__esModule",{value:!0}),s.hasChildren=s.isDocument=s.isComment=s.isText=s.isCDATA=s.isTag=void 0,n(Cy(),s),n(MN(),s),n(kN(),s),n(Sy(),s),n(Ly(),s),n(RN(),s),n(jN(),s);var o=to();Object.defineProperty(s,"isTag",{enumerable:!0,get:function(){return o.isTag}}),Object.defineProperty(s,"isCDATA",{enumerable:!0,get:function(){return o.isCDATA}}),Object.defineProperty(s,"isText",{enumerable:!0,get:function(){return o.isText}}),Object.defineProperty(s,"isComment",{enumerable:!0,get:function(){return o.isComment}}),Object.defineProperty(s,"isDocument",{enumerable:!0,get:function(){return o.isDocument}}),Object.defineProperty(s,"hasChildren",{enumerable:!0,get:function(){return o.hasChildren}})})(ya)),ya}var Ay;function FN(){return Ay||(Ay=1,(function(s){var t=es&&es.__createBinding||(Object.create?(function(M,D,T,O){O===void 0&&(O=T);var q=Object.getOwnPropertyDescriptor(D,T);(!q||("get"in q?!D.__esModule:q.writable||q.configurable))&&(q={enumerable:!0,get:function(){return D[T]}}),Object.defineProperty(M,O,q)}):(function(M,D,T,O){O===void 0&&(O=T),M[O]=D[T]})),n=es&&es.__setModuleDefault||(Object.create?(function(M,D){Object.defineProperty(M,"default",{enumerable:!0,value:D})}):function(M,D){M.default=D}),o=es&&es.__importStar||function(M){if(M&&M.__esModule)return M;var D={};if(M!=null)for(var T in M)T!=="default"&&Object.prototype.hasOwnProperty.call(M,T)&&t(D,M,T);return n(D,M),D},u=es&&es.__importDefault||function(M){return M&&M.__esModule?M:{default:M}};Object.defineProperty(s,"__esModule",{value:!0}),s.DomUtils=s.parseFeed=s.getFeed=s.ElementType=s.QuoteType=s.Tokenizer=s.createDomStream=s.createDocumentStream=s.parseDOM=s.parseDocument=s.DefaultHandler=s.DomHandler=s.Parser=void 0;var d=ny(),h=ny();Object.defineProperty(s,"Parser",{enumerable:!0,get:function(){return h.Parser}});var f=to(),v=to();Object.defineProperty(s,"DomHandler",{enumerable:!0,get:function(){return v.DomHandler}}),Object.defineProperty(s,"DefaultHandler",{enumerable:!0,get:function(){return v.DomHandler}});function p(M,D){var T=new f.DomHandler(void 0,D);return new d.Parser(T,D).end(M),T.root}s.parseDocument=p;function y(M,D){return p(M,D).children}s.parseDOM=y;function x(M,D,T){var O=new f.DomHandler(function(q){return M(q,O.root)},D,T);return new d.Parser(O,D)}s.createDocumentStream=x;function _(M,D,T){var O=new f.DomHandler(M,D,T);return new d.Parser(O,D)}s.createDomStream=_;var S=ey();Object.defineProperty(s,"Tokenizer",{enumerable:!0,get:function(){return u(S).default}}),Object.defineProperty(s,"QuoteType",{enumerable:!0,get:function(){return S.QuoteType}}),s.ElementType=o(Pl());var N=v1(),w=v1();Object.defineProperty(s,"getFeed",{enumerable:!0,get:function(){return w.getFeed}});var j={xmlMode:!0};function U(M,D){return D===void 0&&(D=j),(0,N.getFeed)(y(M,D))}s.parseFeed=U,s.DomUtils=o(v1())})(es)),es}var y1,Py;function BN(){if(Py)return y1;Py=1;function s(t){return!0}return y1={shouldProcessEveryNode:s},y1}var b1,Dy;function qN(){if(Dy)return b1;Dy=1;var s="[object Symbol]",t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,n=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o="\\ud800-\\udfff",u="\\u0300-\\u036f\\ufe20-\\ufe23",d="\\u20d0-\\u20f0",h="\\u2700-\\u27bf",f="a-z\\xdf-\\xf6\\xf8-\\xff",v="\\xac\\xb1\\xd7\\xf7",p="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",y="\\u2000-\\u206f",x=" \\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",_="A-Z\\xc0-\\xd6\\xd8-\\xde",S="\\ufe0e\\ufe0f",N=v+p+y+x,w="['’]",j="["+o+"]",U="["+N+"]",M="["+u+d+"]",D="\\d+",T="["+h+"]",O="["+f+"]",q="[^"+o+N+D+h+f+_+"]",k="\\ud83c[\\udffb-\\udfff]",H="(?:"+M+"|"+k+")",V="[^"+o+"]",Y="(?:\\ud83c[\\udde6-\\uddff]){2}",R="[\\ud800-\\udbff][\\udc00-\\udfff]",A="["+_+"]",X="\\u200d",ee="(?:"+O+"|"+q+")",ue="(?:"+A+"|"+q+")",G="(?:"+w+"(?:d|ll|m|re|s|t|ve))?",K="(?:"+w+"(?:D|LL|M|RE|S|T|VE))?",B=H+"?",te="["+S+"]?",Q="(?:"+X+"(?:"+[V,Y,R].join("|")+")"+te+B+")*",$=te+B+Q,re="(?:"+[T,Y,R].join("|")+")"+$,le="(?:"+[V+M+"?",M,Y,R,j].join("|")+")",be=RegExp(w,"g"),ae=RegExp(M,"g"),Ce=RegExp(k+"(?="+k+")|"+le+$,"g"),we=RegExp([A+"?"+O+"+"+G+"(?="+[U,A,"$"].join("|")+")",ue+"+"+K+"(?="+[U,A+ee,"$"].join("|")+")",A+"?"+ee+"+"+G,A+"+"+K,D,re].join("|"),"g"),Me=RegExp("["+X+o+u+d+S+"]"),Je=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rt={À:"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",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"ss"},et=typeof wo=="object"&&wo&&wo.Object===Object&&wo,Le=typeof self=="object"&&self&&self.Object===Object&&self,mt=et||Le||Function("return this")();function lt(Ae,He,Se,fn){for(var Ge=-1,Nt=Ae?Ae.length:0;++Ge<Nt;)Se=He(Se,Ae[Ge],Ge,Ae);return Se}function De(Ae){return Ae.split("")}function ct(Ae){return Ae.match(t)||[]}function vt(Ae){return function(He){return Ae==null?void 0:Ae[He]}}var Ye=vt(rt);function Tt(Ae){return Me.test(Ae)}function Ve(Ae){return Je.test(Ae)}function ye(Ae){return Tt(Ae)?Qe(Ae):De(Ae)}function Qe(Ae){return Ae.match(Ce)||[]}function at(Ae){return Ae.match(we)||[]}var ve=Object.prototype,Xe=ve.toString,Be=mt.Symbol,ut=Be?Be.prototype:void 0,st=ut?ut.toString:void 0;function he(Ae,He,Se){var fn=-1,Ge=Ae.length;He<0&&(He=-He>Ge?0:Ge+He),Se=Se>Ge?Ge:Se,Se<0&&(Se+=Ge),Ge=He>Se?0:Se-He>>>0,He>>>=0;for(var Nt=Array(Ge);++fn<Ge;)Nt[fn]=Ae[fn+He];return Nt}function ht(Ae){if(typeof Ae=="string")return Ae;if(Wn(Ae))return st?st.call(Ae):"";var He=Ae+"";return He=="0"&&1/Ae==-1/0?"-0":He}function kt(Ae,He,Se){var fn=Ae.length;return Se=Se===void 0?fn:Se,!He&&Se>=fn?Ae:he(Ae,He,Se)}function Re(Ae){return function(He){He=Ht(He);var Se=Tt(He)?ye(He):void 0,fn=Se?Se[0]:He.charAt(0),Ge=Se?kt(Se,1).join(""):He.slice(1);return fn[Ae]()+Ge}}function Lt(Ae){return function(He){return lt(nr(hn(He).replace(be,"")),Ae,"")}}function At(Ae){return!!Ae&&typeof Ae=="object"}function Wn(Ae){return typeof Ae=="symbol"||At(Ae)&&Xe.call(Ae)==s}function Ht(Ae){return Ae==null?"":ht(Ae)}var Nn=Lt(function(Ae,He,Se){return He=He.toLowerCase(),Ae+(Se?Gt(He):He)});function Gt(Ae){return vn(Ht(Ae).toLowerCase())}function hn(Ae){return Ae=Ht(Ae),Ae&&Ae.replace(n,Ye).replace(ae,"")}var vn=Re("toUpperCase");function nr(Ae,He,Se){return Ae=Ht(Ae),He=He,He===void 0?Ve(Ae)?at(Ae):ct(Ae):Ae.match(He)||[]}return b1=Nn,b1}var x1,My;function zN(){if(My)return x1;My=1;const s=["accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","async","autoComplete","autoFocus","autoPlay","capture","cellPadding","cellSpacing","challenge","charSet","checked","cite","classID","className","colSpan","cols","content","contentEditable","contextMenu","controls","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","encType","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","height","hidden","high","href","hrefLang","htmlFor","httpEquiv","icon","id","inputMode","integrity","is","keyParams","keyType","kind","label","lang","list","loop","low","manifest","marginHeight","marginWidth","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","name","noValidate","nonce","open","optimum","pattern","placeholder","poster","preload","profile","radioGroup","readOnly","rel","required","reversed","role","rowSpan","rows","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","span","spellCheck","src","srcDoc","srcLang","srcSet","start","step","style","summary","tabIndex","target","title","type","useMap","value","width","wmode","wrap","onClick"],t=["autoCapitalize","autoCorrect","color","itemProp","itemScope","itemType","itemRef","itemID","security","unselectable","results","autoSave"],n=["accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baseProfile","baselineShift","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","ideographic","imageRendering","in","in2","intercept","k","k1","k2","k3","k4","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","points","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","scale","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","vHanging","vIdeographic","vMathematical","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","viewBox","viewTarget","visibility","widths","wordSpacing","writingMode","x","x1","x2","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlns","xmlnsXlink","xmlBase","xmlLang","xmlSpace","y","y1","y2","yChannelSelector","z","zoomAndPan"];return x1=s.concat(t).concat(n).reduce(function(u,d){const h=d.toLowerCase();return h!==d&&(u[h]=d),u},{}),x1}var C1,ky;function Ry(){if(ky)return C1;ky=1;const s=qN(),t=E,n=zN();function o(h){h=h||"";const f=h.split(/;(?!base64)/);let v,p,y,x={};for(let _=0;_<f.length;++_)v=f[_].split(":"),v.length>2&&(v[1]=v.slice(1).join(":")),p=v[0],y=v[1],typeof y=="string"&&(y=y.trim()),p!=null&&y!=null&&p.length>0&&y.length>0&&(p=p.trim(),p.indexOf("--")!==0&&(p=s(p)),x[p]=y);return x}const u=["allowFullScreen","allowpaymentrequest","async","autoFocus","autoPlay","checked","controls","default","disabled","formNoValidate","hidden","ismap","itemScope","loop","multiple","muted","nomodule","noValidate","open","playsinline","readOnly","required","reversed","selected","truespeed"];function d(h,f,v,p){let y={key:f};const x=h.name.includes("-");h.attribs&&(y=Object.entries(h.attribs).reduce((S,[N,w])=>(x||(N=n[N.replace(/[-:]/,"")]||N,N==="style"?w=o(w):N==="class"?N="className":N==="for"?N="htmlFor":N.startsWith("on")&&(w=Function(w)),u.includes(N)&&(w||"")===""&&(w=N)),S[N]=w,S),y)),p=p||[];const _=v!=null?[v].concat(p):p;return t.createElement.apply(null,[h.name,y].concat(_))}return C1={createElement:d},C1}var _1,jy;function Fy(){if(jy)return _1;jy=1;const s=Ry(),t=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr","menuitem","textarea"];function n(){function o(u,d,h){return u.type==="text"?u.data:u.type==="comment"?!1:t.indexOf(u.name)>-1?s.createElement(u,h):s.createElement(u,h,u.data,d)}return{processDefaultNode:o}}return _1=n,_1}var E1,By;function qy(){if(By)return E1;By=1;const s=BN(),t=Fy();function n(){const o=new t;return{defaultProcessingInstructions:[{shouldProcessNode:s.shouldProcessEveryNode,processNode:o.processDefaultNode}]}}return E1=n,E1}var w1,zy;function Uy(){if(zy)return w1;zy=1;function s(){return!0}return w1={alwaysValid:s},w1}var S1,Vy;function UN(){if(Vy)return S1;Vy=1;const s=FN().Parser,t=to().DomHandler,n=qy(),o=Uy(),u=Ry();function d(h){function f(x){h=h||{},h.decodeEntities=!0;const _=new t;return new s(_,h).parseComplete(x),_.dom.filter(function(N){return N.type!=="directive"})}function v(x,_,S,N,w){if(_(x)){(N||[]).forEach(U=>{U.shouldPreprocessNode(x)&&U.preprocessNode(x,w)});const j=(S||[]).find(U=>U.shouldProcessNode(x));if(j!=null){const U=(x.children||[]).map((M,D)=>v(M,_,S,N,D)).filter(M=>M!=null&&M!==!1);return j.replaceChildren?u.createElement(x,w,x.data,[j.processNode(x,U,w)]):j.processNode(x,U,w)}else return!1}else return!1}function p(x,_,S,N){const j=f(x).map(function(U,M){return v(U,_,S,N,M)});return j.length<=1?j[0]:j}function y(x){const _=new n;return p(x,o.alwaysValid,_.defaultProcessingInstructions)}return{parse:y,parseWithInstructions:p}}return S1=d,S1}var O1,Hy;function VN(){if(Hy)return O1;Hy=1;const s=UN(),t=qy(),n=Uy(),o=Fy();return O1={Parser:s,ProcessingInstructions:t,IsValidNodeDefinitions:n,ProcessNodeDefinitions:o},O1}var L1=VN();function HN(s){if(typeof s!="string")return s;const t=s.trim();if(!t)return t;if(typeof document>"u"||typeof document.createElement!="function")return s;const n=document.createElement("template");n.innerHTML=t;const o=Array.from(n.content.childNodes).filter(d=>d.nodeType!==3||d.textContent&&d.textContent.trim()!=="");if(o.length!==1)return s;const u=o[0];return u.nodeType!==1||u.nodeName.toLowerCase()!=="div"?s:u.innerHTML}function GN(s){if(typeof s!="string"||!s||typeof document>"u"||typeof document.createElement!="function")return s;const t=document.createElement("template");t.innerHTML=s;const n=new Set(["address","article","aside","blockquote","details","dialog","div","dl","dt","dd","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","main","menu","nav","ol","p","pre","section","table","tbody","thead","tfoot","tr","td","th","ul"]);return Array.from(t.content.querySelectorAll("div")).forEach(d=>{if(d.attributes.length>0||Array.from(d.children).some(v=>{const p=v.tagName.toLowerCase();return p!=="br"&&n.has(p)}))return;const f=document.createElement("p");for(;d.firstChild;)f.appendChild(d.firstChild);d.replaceWith(f)}),Array.from(t.content.querySelectorAll("p")).forEach(d=>{d.classList.contains("utrecht-paragraph")||d.classList.add("utrecht-paragraph")}),t.innerHTML}function WN(s,t={}){const{unwrapSingleRootDiv:n=!1}=t,o=`<div>${Ls(s)}</div>`,u=function(){return!0},d=new L1.ProcessNodeDefinitions,h=[{shouldProcessNode:function(_){return _&&_.name&&_.name==="h1"},processNode:function(_,S,N){return E.createElement(Ph,{key:N},S)}},{shouldProcessNode:function(_){return _&&_.name&&_.name==="h2"},processNode:function(_,S,N){return E.createElement(Fp,{key:N},S)}},{shouldProcessNode:function(_){return _&&_.name&&_.name==="h3"},processNode:function(_,S,N){return E.createElement(zp,{key:N},S)}},{shouldProcessNode:function(_){return _&&_.name&&_.name==="h4"},processNode:function(_,S,N){return E.createElement(tu,{key:N},S)}},{shouldProcessNode:function(_){return _&&_.name&&_.name==="p"},processNode:function(_,S,N){return E.createElement(Ln,{key:N},S)}},{shouldProcessNode:function(_){return _&&_.name&&_.name==="a"},processNode:function(_,S,N){return E.createElement(Pc,{key:N,href:_.attribs.href,target:_.attribs.target,rel:_.attribs.rel},S)}},{shouldProcessNode:function(_){return _&&_.name&&_.name==="strong"},processNode:function(_,S,N){return E.createElement(e3,{key:N},S)}},{shouldProcessNode:function(_){return _&&_.name&&_.name==="ol"},processNode:function(_,S,N){return E.createElement(_2,{key:N},S)}},{shouldProcessNode:function(_){return _&&_.name&&_.name==="li"&&_.parent.name==="ol"},processNode:function(_,S,N){return E.createElement(S2,{key:N},S)}},{shouldProcessNode:function(_){return _&&_.name&&_.name==="ul"},processNode:function(_,S,N){return E.createElement(N3,{key:N},S)}},{shouldProcessNode:function(_){return _&&_.name&&_.name==="li"&&_.parent.name==="ul"},processNode:function(_,S,N){return E.createElement(A3,{key:N},S)}},{shouldProcessNode:function(_){return!0},processNode:d.processDefaultNode}],v=new L1.Parser().parseWithInstructions(o,u,h),p=L8.renderToStaticMarkup(v),y=p.startsWith("<div>")&&p.endsWith("</div>")?p.slice(5,-6):p;if(!n)return y;const x=HN(y);return GN(x)}const ZN=/<(address|article|aside|blockquote|details|dialog|div|dl|dt|dd|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hgroup|hr|li|main|menu|nav|ol|p|pre|section|table|tbody|thead|tfoot|tr|td|th|ul)\b/i,XN=new L1.Parser;function YN(s){var n;const t=XN.parse(`<div>${s||""}</div>`);return((n=t==null?void 0:t.props)==null?void 0:n.children)||null}function KN(s){return ZN.test(s||"")}function JN(s){if(typeof document>"u"||typeof document.createElement!="function")return s;const t=document.createElement("template");return t.innerHTML=s||"",Array.from(t.content.querySelectorAll("address,article,aside,blockquote,details,dialog,div,dl,dt,dd,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,hr,li,main,menu,nav,ol,p,pre,section,table,tbody,thead,tfoot,tr,td,th,ul")).forEach(u=>{const d=document.createDocumentFragment();for(;u.firstChild;)d.appendChild(u.firstChild);u.replaceWith(d)}),t.innerHTML}function Lu({content:s,inlineComponent:t,unwrapSingleRootDiv:n=!1,forceInline:o=!1}){const u=WN(s,{unwrapSingleRootDiv:n}),d=KN(u);if(t&&(o||!d)){const h=o?JN(u):u;return E.createElement(t,{dangerouslySetInnerHTML:{__html:Ls(h)}})}return E.createElement(E.Fragment,null,YN(u))}function N1(s){if(typeof document>"u")return null;const t=Yn.sanitize(s||"",{ADD_ATTR:["target","rel"]});return new DOMParser().parseFromString(t,"text/html").body}function Gy(s){const t=new Set;if(!s||!s.includes("target"))return t;const n=N1(s);return n&&n.querySelectorAll('a[target="_blank"]').forEach(o=>{const u=o.getAttribute("href");u&&t.add(u)}),t}const QN=({value:s,onChange:t,onFocus:n,onBlur:o})=>{const u=E.useRef(null),d=E.useRef(null),h=E.useRef(null),f=E.useRef(t),v=E.useRef(n),p=E.useRef(o),y=E.useRef(s),x=E.useRef(!1),_=E.useRef(new Set),S=E.useRef(`trix-editor-${Math.random().toString(36).substring(2,9)}`);return E.useEffect(()=>{(async()=>{var N,w;if(typeof window<"u"){await Promise.resolve().then(()=>cA),await Promise.resolve().then(()=>dA);const j=window.Trix;(w=(N=j==null?void 0:j.config)==null?void 0:N.blockAttributes)!=null&&w.default&&(j.config.blockAttributes.default.tagName="p")}})()},[]),E.useEffect(()=>{f.current=t},[t]),E.useEffect(()=>{v.current=n},[n]),E.useEffect(()=>{p.current=o},[o]),E.useEffect(()=>{y.current=s},[s]),E.useEffect(()=>{if(typeof window>"u")return;const N=u.current,w=d.current;if(!N||!w)return;const j=()=>{var q;h.current=N.editor;const O=(q=N.parentElement)==null?void 0:q.querySelector("trix-toolbar");if(O){const k=O.querySelector('[data-trix-action="attachFiles"]');k&&k.remove();const H=O.querySelector('[data-trix-dialog="href"]'),V=H==null?void 0:H.querySelector(".trix-dialog__link-fields");if(V&&!V.querySelector(".trix-target-blank-label")){const Y=document.createElement("label");Y.className="trix-target-blank-label";const R=document.createElement("input");R.type="checkbox",R.className="trix-target-blank-checkbox",Y.appendChild(R),Y.appendChild(document.createTextNode(" Openen in nieuw tabblad"));const A=V.querySelector(".trix-button-group");V.insertBefore(Y,A);const X=V.querySelector('[data-trix-method="setAttribute"]');X&&X.addEventListener("click",()=>{const ee=R.checked;setTimeout(()=>{var re,le;const ue=w.value||"",G=N.editor,K=(le=(re=G==null?void 0:G.composition)==null?void 0:re.currentAttributes)==null?void 0:le.href;if(!K)return;const B=N1(ue);if(!B)return;const te=B.querySelector(`a[href="${CSS.escape(K)}"]`);if(!te)return;ee?(te.setAttribute("target","_blank"),te.setAttribute("rel","noopener noreferrer"),_.current.add(K)):(te.removeAttribute("target"),te.removeAttribute("rel"),_.current.delete(K));const Q=B.innerHTML;w.value=Q;const $={target:{value:Q}};f.current($)},0)})}}y.current&&h.current&&(_.current=Gy(y.current),h.current.loadHTML(y.current))},U=()=>{let O=w.value;if(_.current.size>0){const k=N1(O);if(k){let H=!1;_.current.forEach(V=>{const Y=k.querySelector(`a[href="${CSS.escape(V)}"]`);Y&&!Y.hasAttribute("target")&&(Y.setAttribute("target","_blank"),Y.setAttribute("rel","noopener noreferrer"),H=!0)}),H&&(O=k.innerHTML,w.value=O)}}const q={target:{value:O}};f.current(q)},M=()=>{var V,Y,R;const O=(V=N.parentElement)==null?void 0:V.querySelector("trix-toolbar"),q=O==null?void 0:O.querySelector(".trix-target-blank-checkbox"),k=N.editor;if(!q||!k)return;const H=(R=(Y=k.composition)==null?void 0:Y.currentAttributes)==null?void 0:R.href;q.checked=!!(H&&_.current.has(H))},D=()=>{x.current=!0,v.current&&v.current()},T=()=>{x.current=!1,p.current&&p.current()};return N.addEventListener("trix-initialize",j),N.addEventListener("trix-change",U),N.addEventListener("trix-toolbar-dialog-show",M),w.addEventListener("input",U),N.addEventListener("trix-focus",D),N.addEventListener("trix-blur",T),()=>{N.removeEventListener("trix-initialize",j),N.removeEventListener("trix-change",U),N.removeEventListener("trix-toolbar-dialog-show",M),w.removeEventListener("input",U),N.removeEventListener("trix-focus",D),N.removeEventListener("trix-blur",T)}},[]),E.useEffect(()=>{if(!h.current||!d.current||x.current||d.current.value===s)return;const N=Gy(s||"");N.size>0&&N.forEach(w=>_.current.add(w)),h.current.loadHTML(s||"")},[s]),E.createElement("div",null,E.createElement("input",{ref:d,type:"hidden",id:S.current}),E.createElement("trix-editor",{ref:u,input:S.current}))},$N=({title:s,description:t,variant:n="textarea",fieldKey:o,fieldRequired:u=!1,placeholder:d,defaultValue:h="",onChange:f,disabled:v=!1,minCharacters:p=0,minCharactersWarning:y="Nog minimaal {minCharacters} tekens",maxCharacters:x=0,maxCharactersWarning:_="Je hebt nog {maxCharacters} tekens over",rows:S,reset:N,showMoreInfo:w=!1,moreInfoButton:j="Meer informatie",moreInfoContent:U="",infoImage:M="",randomId:D="",fieldInvalid:T=!1,overrideDefaultValue:O,images:q=[],createImageSlider:k=!1,imageClickable:H=!1,showMinMaxAfterBlur:V=!1,maxCharactersOverWarning:Y="Je hebt {overCharacters} tekens teveel"})=>{const A={"text input":eu,textarea:E3,richtext:QN,email:eu}[n]||eu;class X extends E.Component{render(){let{html:De}=this.props;return E.createElement(Lu,{content:De,unwrapSingleRootDiv:!0})}}const ee=O||h,[ue,G]=E.useState(!1),[K,B]=E.useState(""),[te,Q]=E.useState(ee),[$,re]=E.useState(!1),le=!!ee,[be,ae]=E.useState(u&&!le);E.useEffect(()=>{N&&N(()=>Q(ee))},[N,h,ee]),E.useEffect(()=>{u&&(O||te)&&ae(!1)},[u,O,te]),E.useEffect(()=>{te&&ae(!1)},[]);const Ce=lt=>{switch(lt){case"email":return"email";case"tel":return"tel";case"password":return"password";default:return"text"}};E.useEffect(()=>{N&&N(()=>Q(ee))},[N,h]),E.useEffect(()=>{te&&ae(!1)},[]);const we=lt=>{let De="";p&&lt<p?De=y==null?void 0:y.replace("{minCharacters}",(p-lt).toString()):x&&lt<=x?De=_==null?void 0:_.replace("{maxCharacters}",(x-lt).toString()):x&&lt>x&&(De=Y==null?void 0:Y.replace("{overCharacters}",(lt-x).toString())),B(De)};E.useEffect(()=>{N&&N(()=>Q(ee))},[N,h]),E.useEffect(()=>{te&&ae(!1)},[]);const Me=lt=>{switch(lt==null?void 0:lt.toLocaleLowerCase()){case"email":case"mail":return"email";case"tel":return"tel";case"password":return"current-password";case"voornaam":return"given-name";case"achternaam":return"family-name";case"straatnaam":return"street-address";case"postcode":return"postal-code";case"woonplaats":return"address-level2";case"land":return"country";default:return"on"}},Je=!!p||!!x,rt=!!x&&te.length>x,et=`${D}_help`,Le=lt=>{Q(lt);const De=lt.length,vt=x>0&&De>x;ae(u&&De===0?!0:!!vt),f&&f({name:o,value:lt}),we(De)},mt=lt=>{var ct,vt;const De=((ct=lt.currentTarget)==null?void 0:ct.value)??((vt=lt.target)==null?void 0:vt.value)??"";Le(De)};return E.createElement($a,{type:"text"},s&&E.createElement(Ln,{className:"utrecht-form-field__label"},E.createElement(Ci,{htmlFor:D},E.createElement(Lu,{content:s,unwrapSingleRootDiv:!0,forceInline:!0}))),t&&E.createElement(E.Fragment,null,E.createElement(ua,null,E.createElement(Lu,{content:t,unwrapSingleRootDiv:!0})),E.createElement(zr,{size:.5})),w&&E.createElement(E.Fragment,null,E.createElement(Th,{sections:[{headingLevel:3,body:E.createElement(X,{html:U}),expanded:void 0,label:j}]}),E.createElement(zr,{size:1.5})),W5({imageFallback:M||"",images:q,createImageSlider:k,addSpacer:!!M,imageClickable:H}),E.createElement("div",{className:`utrecht-form-field__input ${Je?"help-text-active":""}`,"aria-invalid":be},E.createElement(A,{id:D,name:o,required:u,type:n==="email"?"email":Ce(o),placeholder:d,value:te,onChange:lt=>{n!=="textarea"&&mt(lt)},onInput:lt=>{n==="textarea"&&mt(lt)},disabled:v,rows:S,onFocus:()=>G(!0),onBlur:()=>{G(!1),re(!0)},autoComplete:n==="email"?"email":Me(o),"aria-describedby":`${D}_error${(ue||V&&$)&&K?` ${et}`:""}`,"aria-invalid":be}),(ue||V&&$)&&K&&E.createElement(ua,{className:`help-text${rt?" help-text--error":""}`,id:et,"aria-live":"polite","aria-atomic":"true"},rt&&E.createElement("i",{className:"ri-error-warning-line help-text__icon","aria-hidden":"true"}),K)))},eI=s=>{const t=[...s];for(let n=t.length-1;n>0;n--){const o=Math.floor(Math.random()*(n+1));[t[n],t[o]]=[t[o],t[n]]}return t},tI=({title:s,description:t,choices:n,fieldRequired:o=!1,fieldKey:u,onChange:d,disabled:h=!1,showMoreInfo:f=!1,moreInfoButton:v="Meer informatie",moreInfoContent:p="",infoImage:y="",randomId:x="",fieldInvalid:_=!1,randomizeItems:S=!1,overrideDefaultValue:N,defaultValue:w,images:j=[],createImageSlider:U=!1,imageClickable:M=!1,confirmed:D=!1,optionFeedback:T={}})=>{let O=w||"";O=N||O;const[q,k]=E.useState(O),[H,V]=E.useState({}),[Y,R]=E.useState([]),A=!!O,[X,ee]=E.useState(o&&!A);class ue extends E.Component{render(){let{html:te}=this.props;return E.createElement(Lu,{content:te,unwrapSingleRootDiv:!0})}}E.useEffect(()=>{let B=n?n.map(te=>typeof te=="string"?{value:te,label:te}:te):[];if(S){const te=`randomizedChoices_${u}`,Q=sessionStorage.getItem(te);if(Q)R(JSON.parse(Q));else{const $=eI(B);R($),sessionStorage.setItem(te,JSON.stringify($))}}else R(B)},[n,u,S]),E.useEffect(()=>{const B={};Y==null||Y.forEach((te,Q)=>{if(te!=null&&te.isOtherOption){const $=te.trigger||`${Q}`;B[`${u}_${$}_other`]=""}}),V(B)},[Y,u]),E.useEffect(()=>{o&&(O||q)&&ee(!1)},[o,O,q]);const G=(B,te)=>{k(B),ee(!1),d&&d({name:u,value:B}),Object.keys(H).forEach(Q=>{Q!==`${u}_${te}_other`&&(H[Q]="",d&&d({name:Q,value:""},!1))}),V({...H})},K=B=>{V({...H,[B.name]:B.value}),d&&d({name:B.name,value:B.value},!1)};return E.createElement("div",{className:"question"},E.createElement(cp,{role:"radiogroup","aria-invalid":X,"aria-describedby":`${x}_error`},s&&E.createElement(fp,null,E.createElement(Lu,{content:s,unwrapSingleRootDiv:!0,forceInline:!0})),t&&E.createElement(E.Fragment,null,E.createElement(ua,null,E.createElement(Lu,{content:t,unwrapSingleRootDiv:!0})),E.createElement(zr,{size:.5})),f&&E.createElement(E.Fragment,null,E.createElement(Th,{sections:[{headingLevel:3,body:E.createElement(ue,{html:p}),expanded:void 0,label:v}]}),E.createElement(zr,{size:1.5})),W5({imageFallback:y||"",images:j,createImageSlider:U,addSpacer:!!y,imageClickable:M}),Y==null?void 0:Y.map((B,te)=>{const Q=D&&(B!=null&&B.value)?T==null?void 0:T[B.value]:void 0,$=Q==="correct"?" --feedback-correct":Q==="incorrect"?" --feedback-incorrect":Q==="missed"?" --feedback-missed":"";return E.createElement(E.Fragment,null,E.createElement($a,{type:"radio",key:te},E.createElement(Ln,{className:`utrecht-form-field__label utrecht-form-field__label--radio${$}`},E.createElement(Ci,{htmlFor:`${u}_${te}`,type:"radio",className:"--label-grid"},E.createElement(q2,{className:"utrecht-form-field__input",id:`${u}_${te}`,name:u,required:o,onChange:()=>{G(B.value,B.trigger||`${te}`),ee(!1)},disabled:h||D,value:B&&B.value,checked:q===B.value}),E.createElement("span",null,B&&B.label)),Q==="correct"&&E.createElement("span",{className:"osc-feedback-badge --correct"},E.createElement("i",{className:"ri-check-line","aria-hidden":"true"}),E.createElement("span",{className:"sr-only"},"Goed antwoord")),Q==="incorrect"&&E.createElement("span",{className:"osc-feedback-badge --incorrect"},E.createElement("i",{className:"ri-close-line","aria-hidden":"true"}),E.createElement("span",{className:"sr-only"},"Fout antwoord")),Q==="missed"&&E.createElement("span",{className:"osc-feedback-badge --missed"},E.createElement("i",{className:"ri-check-line","aria-hidden":"true"}),E.createElement("span",{className:"sr-only"},"Juist antwoord")))),B.isOtherOption&&q===B.value&&E.createElement("div",{className:"marginTop10 marginBottom15"},E.createElement($N,{type:"text",onChange:re=>K(re),fieldKey:`${u}_${B.trigger||te}_other`,title:"",fieldInvalid:!1,randomId:`${u}_${B.trigger||te}`})))})))},nI=E.forwardRef(({onlyIncludeIds:s=[],dataStore:t,tagType:n,onUpdateFilter:o,preFilterTags:u=void 0,parentStopUsingDefaultValue:d=!1,inlineOptions:h=!1,valueSelected:f="",removeActiveTag:v,resetCounter:p,setResetCounter:y,...x},_)=>{var k,H,V;const[S,N]=E.useState(!1),w={type:n,onlyIncludeIds:s};typeof(x==null?void 0:x.tagGroupProjectId)=="string"&&(x==null?void 0:x.tagGroupProjectId)==="0"&&(w.projectId=x.tagGroupProjectId);const{data:j}=t.useTags(w),[U,M]=E.useState(void 0),[D,T]=E.useState(!1);if(E.useEffect(()=>{d&&T(!0)}),!t||!t.useTags)return E.createElement("p",null,"Cannot render tagfilter, missing data source");const O=Math.random().toString(36).substring(7);function q(Y){return Y&&Y.length>=1?Y.toLowerCase().replace(/[^a-z0-9\s]/g,"").replace(/\s+/g,"-"):O}return E.useEffect(()=>{!D&&u&&u.length>0&&j&&j.length&&o&&u.forEach(Y=>{var A;const R=j.find(X=>X.id===Y);if(R){const X=(A=R==null?void 0:R.id)==null?void 0:A.toString();U!==X&&(o(X,(R==null?void 0:R.name)||""),M(X))}})},[u]),j.length>0&&!h?E.createElement("div",{className:"form-element"},E.createElement(Ci,{htmlFor:q(x.placeholder)},x.placeholder||"Selecteer item"),E.createElement(e1,{id:q(x.placeholder),ref:_,options:(j||[]).map(Y=>({value:Y.id,label:Y.name})),title:x.title,onValueChange:(Y,R)=>{T(!0),o&&o(Y,R)},defaultValue:u&&u.length>0?(H=(k=j.find(Y=>u.includes(Y.id)))==null?void 0:k.id)==null?void 0:H.toString():void 0})):j.length>0&&h&&E.createElement("div",{className:"form-element"},E.createElement(Ci,null,x.placeholder||"Selecteer item",!!f&&E.createElement(pm,{appearance:"link",onClick:()=>{N(!0),y(p+1),v&&v(n,Number(f))}},"Wis")),E.createElement(tI,{key:p,fieldKey:n,choices:(j||[]).map(Y=>({value:Y.id,label:Y.name})),title:"",onChange:({name:Y,value:R})=>{T(!0),o&&o(R,Y)},defaultValue:!S&&u&&u.length>0?(V=j.find(Y=>u.includes(Y.id)))==null?void 0:V.id:void 0}))});function rI({dataStore:s,resources:t,sorting:n=[],tagGroups:o=[],tagsLimitation:u=[],onUpdateFilter:d,className:h="",showActiveTags:f=!1,preFilterTags:v=void 0,displayCollapsibleFilter:p=!1,autoApply:y=!1,...x}){const _=v?v.map(ye=>Number(ye.id)).filter(ye=>!isNaN(ye)):[],S=v&&v.length>0?v.map(ye=>({...ye,label:ye.name})):[],N={tags:_,search:{text:""},sort:x.defaultSorting||"createdAt_desc",page:0,pageSize:x.itemsPerPage||20,location:void 0},w={};v&&v.length>0&&v.forEach(ye=>{w[ye.type]?w[ye.type].push(Number(ye.id)):w[ye.type]=[Number(ye.id)]});const[j,U]=E.useState(w),[M,D]=E.useState(N),[T,O]=E.useState(w),[q,k]=E.useState(S),[H,V]=E.useState(S),[Y,R]=E.useState(!1),[A,X]=E.useState(_),[ee,ue]=E.useState(N),[G,K]=E.useState(""),[B,te]=E.useState(x.defaultSorting||"createdAt_desc"),[Q,$]=E.useState(void 0),[re,le]=E.useState(!1),[be,ae]=E.useState(!0),Ce=E.useRef(null),[we,Me]=E.useState(0);E.useEffect(()=>{if(re&&be&&ae(!1),re&&Ce.current){const ye=Ce.current.querySelector("input, select, textarea, button, a[href], [tabindex]:not([tabindex='-1'])");ye&&ye.focus()}},[re,be]),E.useEffect(()=>{const ye=new URL(window.location.href);if(A.length>0){const Qe=A.join(",");ye.searchParams.set("tagIds",Qe)}else ye.searchParams.delete("tagIds");window.history.replaceState(null,"",ye)},[A]);const Je=_N(Le,300);function rt(ye){D(ye);const Qe=(ye==null?void 0:ye.tags)||[];X(Qe)}function et(ye,Qe){U({...j,[ye]:Qe})}function Le(ye){const Qe={...M,search:{text:ye}};rt(Qe),y&&Ye(void 0,Qe,H)}function mt(ye){te(ye),rt({...M,sort:ye}),y&&Ye(void 0,{...M,sort:ye},H)}function lt(ye){$(ye),rt({...M,location:ye}),y&&Ye(void 0,{...M,location:ye},H)}const De=(ye,Qe,at,ve)=>{let Xe;O(ut=>{const he=[...ut[ye]||[]||[]];if(he.includes(Qe)){if(!ve){const ht=he.indexOf(Qe);he.splice(ht,1)}}else he.push(Qe);return et(ye,he),Xe={...ut,[ye]:he},Xe});let Be;if(k(ut=>{const st=[...ut||[]],he=st.findIndex(ht=>ht.id===Qe);if(he!==-1)ve||st.splice(he,1);else{const ht=at||"";st.push({id:Qe,label:ht,type:ye})}return ve&&V(st),Be=st,Be}),y){const ut=Object.values(Xe||{}).flat().map(Number),st={...M,tags:ut};Ye(void 0,st,Be)}},ct=(ye,Qe,at)=>{let Xe=[...T[ye]||[]],Be;if(Qe==="")Xe=[],Be=(q||[]).filter(st=>st.type!==ye),k(Be);else{Xe=[Qe];const st=(q||[]).filter(ht=>ht.type!==ye),he=at||"";Be=[...st,{id:Number(Qe),label:he,type:ye}],k(Be)}const ut={...T,[ye]:Xe};if(O(ut),et(ye,Xe),y){const st=Object.values(ut||{}).flat().map(Number),he={...M,tags:st};Ye(void 0,he,Be)}};function vt(ye,Qe){const at=q.filter(Be=>!(Be.type===ye&&Be.id===Qe));k(at);const ve={...T,[ye]:Array.isArray(T[ye])?(T[ye]||[]).filter(Be=>!(typeof Be=="number"?Be===Qe:Number(Be)===Qe)):[]};O(ve),et(ye,ve[ye]);const Xe={...M,tags:Object.values(ve).flat()};D(Xe),Ye("",Xe,at)}E.useEffect(()=>{if(j){const ye=Object.values(j).flat(),Qe={...M,tags:ye};rt(Qe),y&&Ye(void 0,Qe,q)}},[j,y,q]);const Ye=(ye,Qe,at)=>{R(!0),ye&&ye.preventDefault&&ye.preventDefault();const ve=Qe||M;rt(ve),d&&d(ve),V(at||q),p&&x.closeFiltersOnAutoApply&&ye&&typeof ye.preventDefault=="function"&&le(!1)},Tt=["createdAt_desc","createdAt_asc","title_asc","title_desc","votes_desc","votes_asc"];n=n==null?void 0:n.sort((ye,Qe)=>{const at=Tt.indexOf(ye.value),ve=Tt.indexOf(Qe.value);return at-ve});const Ve=()=>E.createElement(E.Fragment,null,x.displayTagFilters&&o&&Array.isArray(o)&&o.length>0?E.createElement(E.Fragment,null,o.map((ye,Qe)=>{var ve,Xe;const at=Array.isArray(u)?u:u&&u[ye.type]?u[ye.type]:[];return ye.multiple?E.createElement(SN,{key:`tag-select-${ye.type}`,selected:T[ye.type]||[],dataStore:s,tagType:ye.type,placeholder:ye.label,onlyIncludeIds:at,onUpdateFilter:(Be,ut,st)=>{De(ye.type,Be,ut||"",st||!1)},tagGroupProjectId:ye.projectId||"",preFilterTags:_,parentStopUsingDefaultValue:Y,inlineOptions:ye.inlineOptions}):E.createElement(nI,{key:`tag-select-${ye}`,...x,dataStore:s,tagType:ye.type,placeholder:ye.label,title:"Selecteer een item",onlyIncludeIds:at,onUpdateFilter:(Be,ut)=>ct(ye.type,Be,ut),tagGroupProjectId:ye.projectId||"",preFilterTags:_,parentStopUsingDefaultValue:Y,inlineOptions:ye.inlineOptions,valueSelected:(ve=T[ye.type])!=null&&ve.length?String((Xe=T[ye.type])==null?void 0:Xe[0]):"",removeActiveTag:vt,resetCounter:we,setResetCounter:Me})})):null,x.displaySorting?E.createElement("div",{className:"form-element"},E.createElement(Ci,{htmlFor:"sortField"},"Sorteer op"),E.createElement(e1,{value:B,onValueChange:mt,options:n,id:"sortField",defaultValue:x.defaultSorting||"createdAt_desc",disableDefaultOption:!0})):null,x.displayLocationFilter?E.createElement(wN,{onValueChange:lt,locationDefault:M.location,...x}):null,E.createElement("div",{className:"button-group"},E.createElement(Ar,{appearance:"secondary-action-button",onClick:()=>{const ye=document.querySelector("#stem-begroot-filter"),Qe=ye==null?void 0:ye.querySelectorAll(":scope select"),at=ye==null?void 0:ye.querySelectorAll(":scope input");Qe&&Qe.forEach(ve=>ve.selectedIndex=0),at&&at.forEach(ve=>ve.value=""),R(!0),O({}),k([]),V([]),K(""),Le(""),te(x.defaultSorting||"createdAt_desc"),$(void 0),rt(N),U({}),d&&d(N),lt(void 0),Ye(void 0,N,[]),Me(ve=>ve+1)},"test-id":"filter-reset-button"},x.resetText),(!y||x.closeFiltersOnAutoApply&&p)&&E.createElement(Ar,{type:"submit",appearance:"primary-action-button","test-id":"filter-apply-button"},x.applyText)));return x.displayTagFilters||x.displaySearch||x.displaySorting||x.displayLocationFilter?E.createElement("section",{id:"stem-begroot-filter"},E.createElement("form",{className:`osc-resources-filter ${h}`,onSubmit:!y||x.closeFiltersOnAutoApply?Ye:void 0},x.displaySearch?E.createElement("div",{className:"form-element"},E.createElement(Ci,{htmlFor:"search"},"Zoeken"),E.createElement(AL,{value:G,onChange:ye=>{K(ye.target.value),Je(ye.target.value)},className:"osc-filter-search-bar",placeholder:x.searchPlaceholder,id:"search"})):null,x.displaySearch&&p?E.createElement("button",{type:"submit",className:"apply-filters-button"},E.createElement("span",{className:"filter-icon"}),E.createElement("span",{className:"sr-only"},"Filters toepassen")):null,p?E.createElement(E.Fragment,null,E.createElement(Ar,{className:"toggle-filters-button",appearance:"primary-action-button",type:"button","aria-expanded":re?"true":"false","aria-controls":"filters-container",onClick:ye=>{!re&&be&&ae(!1),le(!re)}},E.createElement("span",{className:"filter-icon"}),E.createElement("span",{className:"sr-only"},"Filters uitklappen")),E.createElement("div",{id:"filters-container",className:`filters-container ${p?"--collapsable":""} ${be?"no-transition":""}`,"aria-hidden":re?"false":"true",onClick:ye=>{le(!1)}},E.createElement("div",{className:"filters-wrapper",ref:Ce,onClick:ye=>{ye.stopPropagation()}},E.createElement("button",{className:"close-filters-button",type:"button",onClick:ye=>{le(!1)}},E.createElement("span",{className:"close-icon"}),E.createElement("span",{className:"sr-only"},"Sluit filters")),E.createElement("div",{className:"filters-content"},Ve())))):Ve()),H.length>0&&f&&E.createElement("div",{className:"active-tags"},E.createElement("ul",null,H.map(ye=>E.createElement("li",{key:`${ye.type}-${ye.id}`,className:ye.type,role:"status"},ye.label,E.createElement(pa,{onClick:()=>vt(ye.type,ye.id),className:"subtle-button",icon:"ri-close-line",iconOnly:!0,text:"Filter verwijderen"}))))),ee&&E.createElement("div",{id:"filter-status","aria-live":"polite",className:"sr-only"},E.createElement(E.Fragment,null,E.createElement("p",null,"Huidige filterinstellingen:"),x.displaySearch&&E.createElement("p",null,`Zoekterm: ${ee.search.text||"geen"}`),x.displaySorting&&(()=>{var Qe;const ye=((Qe=n.find(at=>at.value===ee.sort))==null?void 0:Qe.label)||ee.sort;return E.createElement("p",null,`Sorteer op: ${ye}`)})(),x.displayLocationFilter&&(Q&&Q.lat&&Q.lng?E.createElement("p",null,"Locatie filter: Breedtegraad ",Q.lat,", Lengtegraad"," ",Q.lng,Q.proximity?`, Straal: ${Q.proximity}m`:""):E.createElement("p",null,"Locatie filter: geen")),x.displayTagFilters&&E.createElement(E.Fragment,null,E.createElement("p",null,`Tags: ${ee.tags.length>0?"":"geen"}`),ee.tags.length>0&&E.createElement("ul",null,H.map(ye=>E.createElement("li",{key:`${ye.type}-${ye.id}`}," ",ye.label," "))))))):null}function Wy(s,t,n){let o="";if(s.nodeType===Node.TEXT_NODE){const u=s.nodeValue||"";n.value+u.length>t?(o+=u.substring(0,t-n.value)+"...",n.value=t):(o+=u,n.value+=u.length)}else if(s.nodeType===Node.ELEMENT_NODE){const u=s,d=u.nodeName.toLowerCase();o+=`<${d}`;for(let h=0;h<u.attributes.length;h++){const f=u.attributes[h];o+=` ${f.name}="${f.value}"`}o+=">";for(let h=0;h<u.childNodes.length&&!(n.value>=t);h++)o+=Wy(u.childNodes[h],t,n);o+=`</${d}>`}return o}function Nu(s,t){const n=document.createElement("div");n.innerHTML=s;let o={value:0},u="";for(let d=0;d<n.childNodes.length&&!(o.value>=t);d++)u+=Wy(n.childNodes[d],t,o);return Yn.sanitize(u)}const iI=({resource:s,onRemoveClick:t,displayDocuments:n=!1,displayLikeButton:o=!1,displayDislike:u=!1,documentsTitle:d="",documentsDesc:h="",clickableImage:f=!1,displayTags:v=!0,displayBudget:p=!0,dialogTagGroups:y=void 0,currentUser:x,..._})=>{var V,Y,R,A,X,ee,ue,G;const[S,N]=E.useState(null),[w,j]=E.useState(void 0);let U=y&&Array.isArray(y)&&Array.isArray(s==null?void 0:s.tags)?s.tags.filter(K=>y.includes(K.type)):Array.isArray(s==null?void 0:s.tags)?s.tags:[];U=U.length?U.sort((K,B)=>K.seqnr===void 0||K.seqnr===null?1:B.seqnr===void 0||B.seqnr===null?-1:K.seqnr-B.seqnr):[];const M=(s==null?void 0:s.userId)||null,D=k4(x,["moderator","owner"],M);let T="";if(Array.isArray(s==null?void 0:s.tags)){const B=s.tags.sort((te,Q)=>te.name.localeCompare(Q.name)).find(te=>te.defaultResourceImage);T=(B==null?void 0:B.defaultResourceImage)||""}const q=(Array.isArray(s.images)&&s.images.length>0?(Y=(V=s.images)==null?void 0:V.at(0))==null?void 0:Y.url:T)?"":"resource-has-no-images",k=R4(s),H=(K,B,te)=>{const Q=E.createElement(Su,{src:K,className:"--aspectRatio-16-9"});return B?E.createElement("div",{style:{cursor:"zoom-in"},onClick:()=>{N(K),j(te)},role:"button",tabIndex:0,"aria-label":"Afbeelding uitvergroot bekijken",onKeyDown:$=>($.key==="Enter"||$.key===" ")&&(N(K),j(te))},Q):Q};return E.createElement(E.Fragment,null,S&&E.createElement(H5,{src:S,alt:w,onClose:()=>N(null)}),E.createElement("div",{className:"osc-gridder-resource-detail"},E.createElement("section",{className:`osc-gridder-resource-detail-photo ${q}`},H(((A=(R=s.images)==null?void 0:R.at(0))==null?void 0:A.url)||T,f,(ee=(X=s.images)==null?void 0:X.at(0))==null?void 0:ee.alt),E.createElement("div",{className:"osc-gridder-resource-detail-budget-theme-bar"},p&&E.createElement(E.Fragment,null,E.createElement(tu,null,"Budget"),E.createElement(Ln,null,`€ ${s.budget>0?s.budget.toLocaleString("nl-NL"):0}`),E.createElement(zr,{size:1})),v&&E.createElement(E.Fragment,null,E.createElement(tu,null,"Tags"),E.createElement(zr,{size:.5}),E.createElement("div",{className:"pill-grid"},(ue=U==null?void 0:U.filter(K=>K.type!=="status"))==null?void 0:ue.map(K=>E.createElement(i1,{text:K.name})))))),E.createElement("section",{className:"osc-gridder-resource-detail-texts-and-actions-container"},E.createElement("div",null,E.createElement("div",null,E.createElement(Ph,{dangerouslySetInnerHTML:{__html:Ls(s.title)}}),E.createElement(Ln,{className:"strong",dangerouslySetInnerHTML:{__html:Ls(s.summary)}}),E.createElement(Ln,{dangerouslySetInnerHTML:{__html:Ls(s.description)}}))),!!n&&!!s&&Array.isArray(s.documents)&&s.documents.length>0&&E.createElement(E.Fragment,null,E.createElement(zr,{size:2}),E.createElement("div",{className:"document-download-container"},!!d&&E.createElement(Oo,{level:2,appearance:"utrecht-heading-4"},d),!!h&&E.createElement(Ln,null,h),E.createElement(zr,{size:2}),E.createElement(Um,null,(G=s.documents)==null?void 0:G.map((K,B)=>E.createElement(Mc,{appearance:"primary-action-button",className:"osc counter-container",download:!0,href:K.url,key:B},E.createElement(Kr,{icon:"ri-download-2-fill"}),K.name))))),E.createElement(zr,{size:2}),E.createElement("div",{className:"osc-gridder-resource-detail-actions"},o&&E.createElement(o1,{..._.likeWidget,..._,disabled:!k,resourceId:s.id}),D&&E.createElement(Ar,{appearance:"primary-action-button",onClick:()=>{confirm("Deze actie verwijderd de resource")&&t&&t(s)}},"Verwijder")))),E.createElement(zr,{size:2}))};function sI(s,t){return s==null?-1:t.findIndex(n=>n.id===s||n.uniqueId===s)}const oI=(s,t,n,o,u,d,h,f)=>E.createElement(E.Fragment,null,u&&E.createElement(o0,{...s,...s.resourceOverviewMapWidget,givenResources:t,noFetch:!0,selectedProjects:d,locationProx:h,onMarkerClick:s.displayType==="cardgrid"?(v,p)=>{var y;(y=s.onMarkerResourceClick)==null||y.call(s,v,p)}:void 0}),o&&E.createElement("section",{className:"osc-resource-overview-title-container"},E.createElement(Oo,{level:Number(f)||4,appearance:"utrecht-heading-4"},n))),aI=(s,t,n,o)=>{var H,V,Y,R,A,X,ee,ue;const u=R4(s),d=!!t.allowLikingInOverview;if(t.displayType==="raw"){if(!t.rawInput)return E.createElement(Ln,null,"Template is nog niet ingesteld");try{let G=hN(t,s,"",!1);return G=G.replace(/&amp;amp;/g,"&"),E.createElement("div",{dangerouslySetInnerHTML:{__html:G}})}catch(G){console.error("De template kon niet worden geparsed: ",G)}return E.createElement(Ln,null,"Er is een fout in de template")}let h="";if(Array.isArray(s==null?void 0:s.tags)){const K=s.tags.sort((B,te)=>B.name.localeCompare(te.name)).find(B=>B.defaultResourceImage);h=(K==null?void 0:K.defaultResourceImage)||""}const f=()=>{let G=document.location,K=t==null?void 0:t.itemLink;if(t.selectedProjects&&t.selectedProjects.length>0){const te=t.selectedProjects.find(Q=>Q.id===s.projectId);s!=null&&s.id&&te?K=te.detailPageLink:!(s!=null&&s.id)&&(te!=null&&te.overviewUrl)&&(K=te.overviewUrl)}let B=K==null?void 0:K.replace("[id]",s.id);return B!=null&&B.startsWith("http")||(B!=null&&B.startsWith("/")||(B=`${G.pathname}${G.pathname.endsWith("/")?"":"/"}${B}`),B=`${G.protocol}//${G.host}${B}`),B},v=Array.isArray(s.images)&&s.images.length>0?s.images:[{url:h}],p=Array.isArray(v)&&v.length>0&&v[0].url!==""?"":"resource-has-no-images";let y=Array.isArray(s==null?void 0:s.statuses)?s.statuses.sort((G,K)=>G.seqnr===void 0||G.seqnr===null?1:K.seqnr===void 0||K.seqnr===null?-1:G.seqnr-K.seqnr):[];const x=y&&y.length>0?y[0]:null,_=x&&x.color?`color-${x.color}`:"",S=x&&x.backgroundColor?`bgColor-${x.backgroundColor}`:"",N=`${_} ${S}`.trim(),w=t.selectedProjects&&t.selectedProjects.length>1?(H=t.selectedProjects.find(G=>G.id===s.projectId))==null?void 0:H.label:"",j=s!=null&&s.id?"":"project-card",U=t.overviewTagGroups||[],M=t.displayOverviewTagGroups||[];let D=U&&Array.isArray(U)&&Array.isArray(s==null?void 0:s.tags)?s==null?void 0:s.tags.filter(G=>U.includes(G.type)):Array.isArray(s==null?void 0:s.tags)?s.tags:[];D=D.length?D.sort((G,K)=>G.seqnr===void 0||G.seqnr===null?1:K.seqnr===void 0||K.seqnr===null?-1:G.seqnr-K.seqnr):[];const T=D&&D.length>0?D[0]:null,O=T&&T.mapIcon?T.mapIcon:!1,q=(V=s==null?void 0:s.userVote)==null?void 0:V.opinion,k=({doVote:G,resource:K})=>{var $,re,le,be,ae;const B=K||s,te=($=B==null?void 0:B.userVote)==null?void 0:$.opinion,Q=async Ce=>{G&&(await G(Ce),o&&await o())};return E.createElement("div",{className:`osc-resource-overview-content-item-footer ${G?"liking-allowed":""}`},((re=t.likeWidget)==null?void 0:re.variant)!="micro-score"&&t.displayVote&&E.createElement(E.Fragment,null,E.createElement(Kr,{icon:"ri-thumb-up-line",variant:"big",text:B.yes,description:"Stemmen voor",onClick:()=>Q("yes"),className:te==="yes"?"selected":""}),((le=t.likeWidget)==null?void 0:le.displayDislike)&&E.createElement(Kr,{icon:"ri-thumb-down-line",variant:"big",text:B.no,description:"Stemmen tegen",onClick:()=>Q("no"),className:te==="no"?"selected":""})),((be=t.likeWidget)==null?void 0:be.variant)=="micro-score"&&t.displayVote&&E.createElement("div",{className:"micro-score-container"},E.createElement(Kr,{icon:`${te==="yes"?"ri-triangle-fill":"ri-triangle-line"} micro-score-triangle`,variant:"big",description:"Stemmen voor",onClick:()=>Q("yes"),className:`micro-score-vote micro-score-vote--yes ${te==="yes"?"selected":""}`}),E.createElement(Ln,{className:"votes-score"},B.netVotes),((ae=t.likeWidget)==null?void 0:ae.displayDislike)&&E.createElement(Kr,{icon:`${te==="no"?"ri-triangle-fill":"ri-triangle-line"} micro-score-triangle micro-score-triangle-down`,variant:"big",description:"Stemmen tegen",onClick:()=>Q("no"),className:`micro-score-vote micro-score-vote--no ${te==="no"?"selected":""}`})),t.displayArguments?E.createElement(Kr,{icon:"ri-message-line",variant:"big",text:B.commentCount,description:"Aantal reacties"}):null)};return E.createElement(E.Fragment,null,t.displayType==="cardrow"?E.createElement("div",{className:`resource-card--link ${p} ${j}`,"data-projectid":s.projectId||""},E.createElement("div",null,E.createElement(zr,{size:1}),t.displayTitle?E.createElement(Oo,{level:Number(t.headingLevel)||4,appearance:"utrecht-heading-4"},E.createElement("a",{href:f(),className:"resource-card--link_trigger",dangerouslySetInnerHTML:{__html:Nu(s.title,t.titleMaxLength||20)}})):null,M&&D.length>0&&E.createElement(E.Fragment,null,E.createElement(zr,{size:.5}),E.createElement("div",{className:"pill-grid"},(Y=D==null?void 0:D.filter(G=>G.type!=="status"))==null?void 0:Y.map(G=>E.createElement(i1,{text:G.name})))),t.displaySummary?E.createElement(Ln,{dangerouslySetInnerHTML:{__html:Nu(s.summary,t.summaryMaxLength||20)}}):null,t.displayDescription?E.createElement(Ln,{className:"osc-resource-overview-content-item-description",dangerouslySetInnerHTML:{__html:Nu(s.description,t.descriptionMaxLength||30)}}):null),E.createElement("div",{className:"osc-resource-overview-content-date-user"},E.createElement(Ln,{className:"data-user-container"},t.displayUser&&s.user&&E.createElement("span",{className:"created-by"},s.user.displayName),t.displayCreatedAt&&t.displayUser&&E.createElement("span",{className:"join-text"},t.displayCreatedAt&&" op "),t.displayCreatedAt&&s.createdAt&&E.createElement("span",{className:"created-at"},new Date(s.createdAt).toLocaleDateString("nl-NL",{year:"numeric",month:"long",day:"numeric"})))),d?E.createElement(o1,{...t.likeWidget,resourceId:s.id,projectId:t.projectId,...t,datastore:t.datastore,initialResource:s,disabled:!u,refreshResourceLikes:o},(G,K)=>E.createElement(k,{doVote:G,resource:K})):E.createElement(k,null),E.createElement(fd,{items:v,buttonText:{next:"Volgende afbeelding",previous:"Vorige afbeelding"},className:"osc-carousel-container",itemRenderer:G=>E.createElement(Su,{src:G.url,imageFooter:t.displayStatusLabel&&E.createElement("div",{className:`${p} ${N}`},E.createElement(Ln,{className:"osc-resource-overview-content-item-status"},w?E.createElement("span",{className:"status-label"},w):y==null?void 0:y.map(K=>E.createElement("span",{className:"status-label",key:K.label},K.label))))})}),t.displayTagIcon&&T&&O&&E.createElement("div",{className:"resource-card--link_tagicon"},E.createElement(Su,{src:O,alt:T.name?`Icoon voor ${T.name}`:"Tag icoon"}))):E.createElement("div",{className:`resource-card--link ${p} ${j}`,"data-projectid":s.projectId||""},E.createElement("div",null,E.createElement(zr,{size:1}),t.displayTitle?E.createElement(Oo,{level:Number(t.headingLevel)||4,appearance:"utrecht-heading-4"},E.createElement("button",{className:"resource-card--link_trigger",onClick:()=>n&&n(),dangerouslySetInnerHTML:{__html:Nu(s.title,t.titleMaxLength||20)}})):null,M&&D.length>0&&E.createElement(E.Fragment,null,E.createElement(zr,{size:.5}),E.createElement("div",{className:"pill-grid"},(R=D==null?void 0:D.filter(G=>G.type!=="status"))==null?void 0:R.map(G=>E.createElement(i1,{text:G.name})))),t.displaySummary?E.createElement(Ln,{dangerouslySetInnerHTML:{__html:Nu(s.summary,t.summaryMaxLength||20)}}):null,t.displayDescription?E.createElement(Ln,{className:"osc-resource-overview-content-item-description",dangerouslySetInnerHTML:{__html:Nu(s.description,t.descriptionMaxLength||30)}}):null),E.createElement("div",{className:"osc-resource-overview-content-item-footer"},((A=t.likeWidget)==null?void 0:A.variant)!="micro-score"&&t.displayVote&&E.createElement(E.Fragment,null,E.createElement(Kr,{icon:"ri-thumb-up-line",variant:"big",text:s.yes,className:q==="yes"?"selected":""}),((X=t.likeWidget)==null?void 0:X.displayDislike)&&E.createElement(Kr,{icon:"ri-thumb-down-line",variant:"big",text:s.no,className:q==="no"?"selected":""})),((ee=t.likeWidget)==null?void 0:ee.variant)=="micro-score"&&t.displayVote&&E.createElement(E.Fragment,null,E.createElement(Kr,{icon:`${q==="yes"?"ri-triangle-fill":"ri-triangle-line"} micro-score-triangle`,variant:"big",className:`micro-score-vote micro-score-vote--yes ${q==="yes"?"selected":""}`}),E.createElement(Ln,{className:"votes-score"},s.netVotes),((ue=t.likeWidget)==null?void 0:ue.displayDislike)&&E.createElement(Kr,{icon:`${q==="no"?"ri-triangle-fill":"ri-triangle-line"} micro-score-triangle micro-score-triangle-down`,variant:"big",className:`micro-score-vote micro-score-vote--no ${q==="no"?"selected":""}`})),t.displayArguments?E.createElement(Kr,{icon:"ri-message-line",variant:"big",text:s.commentCount}):null),E.createElement(fd,{items:v,buttonText:{next:"Volgende afbeelding",previous:"Vorige afbeelding"},className:"osc-carousel-container",itemRenderer:G=>E.createElement(Su,{src:G.url,imageFooter:t.displayStatusLabel&&E.createElement("div",{className:`${p} ${N}`},E.createElement(Ln,{className:"osc-resource-overview-content-item-status"},w?E.createElement("span",{className:"status-label"},w):y==null?void 0:y.map(K=>E.createElement("span",{className:"status-label"},K.label))))})}),t.displayTagIcon&&T&&O&&E.createElement("div",{className:"resource-card--link_tagicon"},E.createElement(Su,{src:O,alt:T.name?`Icoon voor ${T.name}`:"Tag icoon"}))))};function uI({item:s,datastore:t,projectId:n,onRemoveClick:o,forwardProps:u,...d}){const h=!!s&&("summary"in s||"description"in s||"images"in s),{data:f}=t.useResource({projectId:n,resourceId:s==null?void 0:s.id,initialData:h?s:void 0}),v=h?s:f&&f.id?f:s;return E.createElement(iI,{resource:v,onRemoveClick:o,...d,...u})}function Zy({renderItem:s=aI,allowFiltering:t=!0,displayType:n="cardrow",displayBanner:o=!1,displayMap:u=!1,bannerText:d="Plannen",renderHeader:h=oI,itemsPerPage:f=20,textResults:v="Dit zijn de zoekresultaten voor [search]",onlyIncludeTagIds:p="",onlyIncludeStatusIds:y="",displayDocuments:x=!1,showActiveTags:_=!1,displayLikeButton:S=!1,displayDislike:N=!1,clickableImage:w=!1,displayBudget:j=!0,documentsTitle:U="",documentsDesc:M="",displayVariant:D="",onFilteredResourcesChange:T,onLocationChange:O,selectedProjects:q=[],includeOrExcludeTagIds:k="include",includeOrExcludeStatusIds:H="include",includeProjectsInOverview:V=!1,excludeResourcesInOverview:Y=!1,displayAsTabs:R=!1,listTabTitle:A="Lijst",mapTabTitle:X="Kaart",filterBehavior:ee="or",displayTags:ue=!0,displayOverviewTagGroups:G=!1,overviewTagGroups:K=[],dialogTagGroups:B=void 0,filterBehaviorInclude:te="or",onlyShowTheseTagIds:Q="",displayCollapsibleFilter:$=!1,...re}){var dt;const le=new Qa({projectId:re.projectId,api:re.api}),be=je=>je.trim().split(",").filter(ot=>ot&&!isNaN(+ot.trim())).map(ot=>Number.parseInt(ot)),ae=be(y),Ce=be(p),we=be(Q),{data:Me,isLoading:Je}=le.useTags({projectId:re.projectId,type:""}),rt=E.useMemo(()=>{const je={};return we.forEach(ot=>{const tt=Me.find(Fe=>Fe.id===ot);if(tt){const Fe=tt.type;je[Fe]||(je[Fe]=[]),je[Fe].push(ot)}}),je},[Me]),et=new URLSearchParams(window.location.search),Le=et.get("tagIds"),mt=et.get("statusIds"),lt=Le?be(Le):void 0,De=mt?be(mt):void 0,[ct,vt]=E.useState(!1),Ye=De&&De.length>0?De:ae||[],Tt=lt&&Me?Me.filter(je=>lt.includes(je.id)):[];E.useEffect(()=>{const je=k==="include"?Ce:[];at(k==="exclude"?Ce:[]),ye(je),he(lt||[])},[p,Le]);const[Ve,ye]=E.useState([]),[Qe,at]=E.useState([]),[ve,Xe]=E.useState(""),[Be,ut]=E.useState(Ye),[st,he]=E.useState([]),[ht,kt]=E.useState(0),[Re,Lt]=E.useState(0),[At,Wn]=E.useState(f||10),[Ht,Nn]=E.useState(re.defaultSorting||void 0),[Gt,hn]=E.useState(0),[vn,nr]=E.useState(void 0),[Ae,He]=E.useState([]),[Se,fn]=E.useState([]),Ge=(q==null?void 0:q.filter(je=>!(je!=null&&je.excludeResourcesInOverview)).map(je=>je.id))||[],Nt=q.length>0,_t=Nt||!!u||!!T,$t=E.useMemo(()=>Qe,[Qe]),It=E.useMemo(()=>H==="include"?Be:[],[H,Be]),nn=E.useMemo(()=>H==="exclude"?Be:[],[H,Be]),dn=E.useMemo(()=>{const je={};return Me.forEach(ot=>{const tt=ot.type;je[tt]||(je[tt]=[]);const Fe=typeof ot.id=="string"?parseInt(ot.id,10):ot.id;je[tt].push(Fe)}),je},[Me]),gn=E.useMemo(()=>{const je=[];return Ve.length>0&&(te==="and"?Object.keys(dn).forEach(ot=>{const tt=dn[ot],Fe=Ve.filter(Et=>tt.includes(Et));Fe.length>0&&je.push(Fe)}):je.push(Ve)),ee==="and"&&st.length>0&&Object.keys(dn).forEach(ot=>{const tt=dn[ot],Fe=st.filter(Et=>tt.includes(Et));Fe.length>0&&je.push(Fe)}),je},[ee,te,st,Ve,dn]),bn=E.useMemo(()=>ee==="and"?[]:st,[ee,st]),{data:We,allData:xn,isLoading:rn,revalidate:dr}=le.useResources({pageSize:At,...re,page:ht,search:ve,tags:bn,excludeTags:$t,statuses:It,excludeStatuses:nn,tagGroups:gn,lat:vn==null?void 0:vn.lat,lng:vn==null?void 0:vn.lng,maxDistance:vn?(vn.proximity||999)*1e3:void 0,sort:Ht,randomSortKey:Ht==="random"?Gt:void 0,projectIds:Ge||[],allowMultipleProjects:q&&q.length>1,fetchAll:_t?Nt||n==="cardgrid"&&u?!0:"markers":!1}),[Or,un]=E.useState(0),[Rr,ui]=E.useState("list");E.useEffect(()=>{!rn&&We&&!(q.length>0&&Ge.length===0)&&He(We.records||[])},[We,rn]),E.useEffect(()=>{if(Nt){const je=(xn==null?void 0:xn.records)||[],ot=[];q&&q.length>0&&q.forEach(pt=>{if(pt.includeProjectsInOverview===!1)return;const nt=(pt!=null&&pt.tags?pt.tags.split(",").map(it=>it.trim()):[]).map(it=>{const mn=Me.find(kn=>kn.id===parseInt(it));return mn||null}).filter(it=>it!==null),xt={title:(pt==null?void 0:pt.overviewTitle)||"",summary:(pt==null?void 0:pt.overviewSummary)||"",description:(pt==null?void 0:pt.overviewDescription)||"",images:[{url:(pt==null?void 0:pt.overviewImage)||""}],overviewUrl:(pt==null?void 0:pt.overviewUrl)||"",projectId:pt.id,createdAt:(pt==null?void 0:pt.overviewSortDate)||(pt==null?void 0:pt.createdAt)||"",tags:nt,uniqueId:`project-${pt.id}`};if(ve){const it=ve.toLowerCase();if(!xt.title.toLowerCase().includes(it)&&!xt.summary.toLowerCase().includes(it)&&!xt.description.toLowerCase().includes(it))return}ot.push(xt)});const Et=[...ot.filter((pt,xe,nt)=>pt.uniqueId?xe===nt.findIndex(xt=>xt.uniqueId===pt.uniqueId):!0).filter(pt=>{var nt;const xe=((nt=pt.tags)==null?void 0:nt.map(xt=>xt.id))??[];return xe.some(xt=>Qe.includes(xt))||bn.length>0&&!bn.some(xt=>xe.includes(xt))?!1:gn.every(xt=>xt.length===0||xt.some(it=>xe.includes(it)))}),...je].sort((pt,xe)=>Ht==="createdAt_desc"?new Date(xe.createdAt).getTime()-new Date(pt.createdAt).getTime():Ht==="createdAt_asc"?new Date(pt.createdAt).getTime()-new Date(xe.createdAt).getTime():Ht==="title"?(pt.title||"").localeCompare(xe.title||""):Ht==="votes_desc"?(xe.yes||0)-(pt.yes||0):Ht==="votes_asc"||Ht==="ranking"?(pt.yes||0)-(xe.yes||0):Ht==="score"?(xe.score||0)-(pt.score||0):0);fn(Et)}else rn||fn((We==null?void 0:We.records)||[])},[We,xn,rn,Nt,q,Me,ve,Ht,Qe,bn,gn]),E.useEffect(()=>{var tt;if(rn)return;const je=Nt?(Se||[]).length:((tt=We==null?void 0:We.metadata)==null?void 0:tt.totalCount)||0,ot=Math.max(1,Math.ceil(je/At));ot!==Re&&Lt(ot),kt(Fe=>Fe>=ot?ot-1:Fe),T&&T((xn==null?void 0:xn.records)||Se||[]),O&&O(vn)},[rn,Se,We,xn,Nt,vn,T,O,At]),E.useEffect(()=>{kt(0)},[st,Be,ve,Ht,vn,Ve,Qe]);const{data:Hi}=le.useCurrentUser({...re}),ni=E.useMemo(()=>Nt?Se??[]:(xn==null?void 0:xn.records)??Se??[],[Nt,Se,xn]),as=E.useMemo(()=>Rr==="marker"?ni:Se??[],[Rr,ni,Se]),ie=E.useCallback((je,ot)=>{const tt=ot==="marker"?ni:Se??[],Fe=sI(je.id??je.uniqueId,tt);if(Fe===-1){console.warn("[resource-overview] dialog open: resource not found in list",{source:ot,resource:je});return}ui(ot),un(Fe),vt(!0)},[Se,ni]),ze=E.useCallback((je,ot)=>{if(n==="cardrow"){let tt=re.itemLink;if(q.length>0){const Fe=q.find(Et=>Et.id===je.projectId);je!=null&&je.id&&Fe?tt=Fe.detailPageLink:!(je!=null&&je.id)&&(Fe!=null&&Fe.overviewUrl)&&(tt=Fe.overviewUrl)}if(!tt)console.error("Link to child resource is not set");else{let Fe=document.location,Et=tt.replace("[id]",je.id);Et.startsWith("http")||(Et.startsWith("/")||(Et=`${Fe.pathname}${Fe.pathname.endsWith("/")?"":"/"}${Et}`),Et=`${Fe.protocol}//${Fe.host}${Et}`),document.location.href=Et}}n==="cardgrid"&&ie(je,"list")},[n,re.itemLink,q,ie]),qe=E.useCallback(je=>{n==="cardgrid"&&ie(je,"marker")},[n,ie]);E.useEffect(()=>{var je;(je=re.onResourceClickHandlerRegister)==null||je.call(re,qe)},[qe,re.onResourceClickHandlerRegister]);const Dt=t&&(re.displaySearch||re.displaySorting||re.displayTagFilters||re.displayLocationFilter),Rt=je=>je?` --${je}`:" ",wn=E.useRef(Math.random().toString(36).replace("0.","container_")).current,In=je=>{setTimeout(()=>{const ot=document.getElementById(je);ot&&ot.scrollIntoView({block:"start",behavior:"auto"})},200)},Mt=()=>{dr()},Ct=E.createElement("section",{className:"osc-resource-overview-resource-collection",id:wn},(Se==null?void 0:Se.length)===0?rn?E.createElement(Ln,{className:"osc-loading-results-text"},"Laden..."):E.createElement(Ln,{className:"osc-no-results-text"},ve?`Er zijn geen resultaten gevonden voor "${ve}".`:"Geen resultaten gevonden."):(dt=Nt?Se==null?void 0:Se.slice(ht*At,(ht+1)*At):Se)==null?void 0:dt.map(je=>E.createElement(E.Fragment,{key:`resource-item-${(je==null?void 0:je.id)||(je==null?void 0:je.uniqueId)}`},s(je,{...re,displayType:n,selectedProjects:q,displayOverviewTagGroups:G,overviewTagGroups:K,datastore:le},()=>{ze(je)},Mt)))),Wt=as.filter(je=>je&&(je.id||je.uniqueId));return Je?E.createElement(Ln,{className:"osc-loading-results-text"},"Laden..."):E.createElement(E.Fragment,null,E.createElement(HL,{open:ct,onOpenChange:vt,children:E.createElement(fd,{startIndex:Or,items:Wt,buttonText:{next:"Volgende afbeelding",previous:"Vorige afbeelding"},itemRenderer:je=>E.createElement(uI,{item:je,datastore:le,projectId:re.projectId,currentUser:Hi,displayDocuments:x,documentsTitle:U,documentsDesc:M,displayTags:ue,dialogTagGroups:B,displayBudget:j,displayLikeButton:S,displayDislike:N,clickableImage:w,onRemoveClick:ot=>{try{ot.delete(ot.id).then(()=>vt(!1)).catch(tt=>{console.error(tt)})}catch(tt){console.error(tt)}},forwardProps:re})})}),E.createElement("div",{className:`osc ${Rt(D)}`},o||u?h({...re,displayType:n,onMarkerResourceClick:qe},(xn==null?void 0:xn.records)||Se||[],d,o,u&&!R,q,vn,re.headingLevel||"4"):null,E.createElement("section",{className:`osc-resource-overview-content ${Dt?"":"full"}`},re.displaySearchText?E.createElement("div",{className:"osc-resourceoverview-search-container col-span-full"},re.textActiveSearch&&ve&&E.createElement(Ln,{className:"osc-searchtext",role:"status"},re.textActiveSearch.replace("[search]",ve).replace("[zoekterm]",ve))):null,Dt&&le?E.createElement(rI,{...re,className:"osc-flex-columned",tagsLimitation:rt,dataStore:le,sorting:re.sorting||[],displaySorting:re.displaySorting||!1,defaultSorting:re.defaultSorting||"",displayTagFilters:re.displayTagFilters||!1,displaySearch:re.displaySearch||!1,displayLocationFilter:re.displayLocationFilter||!1,searchPlaceholder:re.searchPlaceholder||"Zoeken",resetText:re.resetText||"Reset",applyText:re.applyText||"Toepassen",tagGroups:re.tagGroups||[],itemsPerPage:f,resources:Ae,showActiveTags:_,onUpdateFilter:je=>{he(je.tags.length>0?je.tags:[]),["createdAt_desc","createdAt_asc","title","votes_desc","votes_asc","ranking","random","score"].includes(je.sort)&&(je.sort==="random"&&(im(0,!0),hn(ot=>ot+1)),Nn(je.sort)),Xe(je.search.text),nr(je.location)},preFilterTags:Tt,displayCollapsibleFilter:$,autoApply:(re==null?void 0:re.autoApply)||!1,closeFiltersOnAutoApply:(re==null?void 0:re.closeFiltersOnAutoApply)||!1}):null,R?E.createElement("div",{className:"osc-resource-overview-tabs-container"},E.createElement(D4,null,E.createElement(I0,{value:"list"},E.createElement(Kr,{icon:"ri-list-unordered"}),A),E.createElement(I0,{value:"map"},E.createElement(Kr,{icon:"ri-map-pin-line"}),X)),E.createElement(T0,{value:"list"},Ct),E.createElement(T0,{value:"map"},h(re,(xn==null?void 0:xn.records)||Se||[],d,!1,!0,q,vn,re.headingLevel||"4"))):Ct),re.displayPagination&&E.createElement(E.Fragment,null,E.createElement(zr,{size:4}),E.createElement("div",{className:"osc-resource-overview-paginator col-span-full"},E.createElement(GL,{page:ht||0,totalPages:Re||1,onPageChange:je=>{kt(je),In(wn)}})))))}function Xy(s){const{displayAsTabs:t}=s;return t?E.createElement(JS,{defaultValue:"list"},E.createElement(Zy,{...s,...s.likeWidget})):E.createElement(Zy,{...s,...s.likeWidget})}Xy.loadWidget=vl;const Yy=s=>{const[t,n]=E.useState([]),[o,u]=E.useState(void 0),d=E.useRef(null),h=s.displayType==="cardgrid",f=E.useCallback((v,p)=>{var y;(y=d.current)==null||y.call(d,v,p)},[]);return E.createElement("div",{className:"map-wrapper"},E.createElement("div",{className:"resourceOverviewWithMap-container"},E.createElement("div",{className:"detail-container"},E.createElement(Xy,{...s,onFilteredResourcesChange:n,onLocationChange:u,onResourceClickHandlerRegister:h?v=>{d.current=v}:void 0,displayMap:!1})),E.createElement(o0,{...s,...s.resourceOverviewMapWidget,givenResources:t.length>0?t:void 0,noFetch:!0,locationProx:o,onMarkerClick:h?f:void 0})))};Yy.loadWidget=vl;var lI="2.1.19";const xa="[data-trix-attachment]",I1={preview:{presentation:"gallery",caption:{name:!0,size:!0}},file:{caption:{size:!0}}},Qr={default:{tagName:"div",parse:!1},quote:{tagName:"blockquote",nestable:!0},heading1:{tagName:"h1",terminal:!0,breakOnReturn:!0,group:!1},code:{tagName:"pre",terminal:!0,htmlAttributes:["language"],text:{plaintext:!0}},bulletList:{tagName:"ul",parse:!1},bullet:{tagName:"li",listAttribute:"bulletList",group:!1,nestable:!0,test(s){return Ky(s.parentNode)===Qr[this.listAttribute].tagName}},numberList:{tagName:"ol",parse:!1},number:{tagName:"li",listAttribute:"numberList",group:!1,nestable:!0,test(s){return Ky(s.parentNode)===Qr[this.listAttribute].tagName}},attachmentGallery:{tagName:"div",exclusive:!0,terminal:!0,parse:!1,group:!1}},Ky=s=>{var t;return s==null||(t=s.tagName)===null||t===void 0?void 0:t.toLowerCase()},Jy=navigator.userAgent.match(/android\s([0-9]+.*Chrome)/i),T1=Jy&&parseInt(Jy[1]);var Dl={composesExistingText:/Android.*Chrome/.test(navigator.userAgent),recentAndroid:T1&&T1>12,samsungAndroid:T1&&navigator.userAgent.match(/Android.*SM-/),forcesObjectResizing:/Trident.*rv:11/.test(navigator.userAgent),supportsInputEvents:typeof InputEvent<"u"&&["data","getTargetRanges","inputType"].every((s=>s in InputEvent.prototype))},Qy={ADD_ATTR:["language"],SAFE_FOR_XML:!1,RETURN_DOM:!0},Ft={attachFiles:"Attach Files",bold:"Bold",bullets:"Bullets",byte:"Byte",bytes:"Bytes",captionPlaceholder:"Add a caption…",code:"Code",heading1:"Heading",indent:"Increase Level",italic:"Italic",link:"Link",numbers:"Numbers",outdent:"Decrease Level",quote:"Quote",redo:"Redo",remove:"Remove",strike:"Strikethrough",undo:"Undo",unlink:"Unlink",url:"URL",urlPlaceholder:"Enter a URL…",GB:"GB",KB:"KB",MB:"MB",PB:"PB",TB:"TB"};const cI=[Ft.bytes,Ft.KB,Ft.MB,Ft.GB,Ft.TB,Ft.PB];var $y={prefix:"IEC",precision:2,formatter(s){switch(s){case 0:return"0 ".concat(Ft.bytes);case 1:return"1 ".concat(Ft.byte);default:let t;this.prefix==="SI"?t=1e3:this.prefix==="IEC"&&(t=1024);const n=Math.floor(Math.log(s)/Math.log(t)),o=(s/Math.pow(t,n)).toFixed(this.precision).replace(/0*$/,"").replace(/\.$/,"");return"".concat(o," ").concat(cI[n])}}};const xd="\uFEFF",Mo=" ",eb=function(s){for(const t in s){const n=s[t];this[t]=n}return this},A1=document.documentElement,dI=A1.matches,Hn=function(s){let{onElement:t,matchingSelector:n,withCallback:o,inPhase:u,preventDefault:d,times:h}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const f=t||A1,v=n,p=u==="capturing",y=function(x){h!=null&&--h==0&&y.destroy();const _=ko(x.target,{matchingSelector:v});_!=null&&(o==null||o.call(_,x,_),d&&x.preventDefault())};return y.destroy=()=>f.removeEventListener(s,y,p),f.addEventListener(s,y,p),y},tb=function(s){let{bubbles:t,cancelable:n,attributes:o}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};t=t!==!1,n=n!==!1;const u=document.createEvent("Events");return u.initEvent(s,t,n),o!=null&&eb.call(u,o),u},Ml=function(s){let{onElement:t,bubbles:n,cancelable:o,attributes:u}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const d=t??A1,h=tb(s,{bubbles:n,cancelable:o,attributes:u});return d.dispatchEvent(h)},nb=function(s,t){if((s==null?void 0:s.nodeType)===1)return dI.call(s,t)},ko=function(s){let{matchingSelector:t,untilNode:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(;s&&s.nodeType!==Node.ELEMENT_NODE;)s=s.parentNode;if(s!=null){if(t==null)return s;if(s.closest&&n==null)return s.closest(t);for(;s&&s!==n;){if(nb(s,t))return s;s=s.parentNode}}},P1=s=>document.activeElement!==s&&Ca(s,document.activeElement),Ca=function(s,t){if(s&&t)for(;t;){if(t===s)return!0;t=t.parentNode}},D1=function(s){var t;if((t=s)===null||t===void 0||!t.parentNode)return;let n=0;for(s=s.previousSibling;s;)n++,s=s.previousSibling;return n},Ro=s=>{var t;return s==null||(t=s.parentNode)===null||t===void 0?void 0:t.removeChild(s)},Cd=function(s){let{onlyNodesOfType:t,usingFilter:n,expandEntityReferences:o}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const u=(()=>{switch(t){case"element":return NodeFilter.SHOW_ELEMENT;case"text":return NodeFilter.SHOW_TEXT;case"comment":return NodeFilter.SHOW_COMMENT;default:return NodeFilter.SHOW_ALL}})();return document.createTreeWalker(s,u,n??null,o===!0)},$r=s=>{var t;return s==null||(t=s.tagName)===null||t===void 0?void 0:t.toLowerCase()},Jt=function(s){let t,n,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};typeof s=="object"?(o=s,s=o.tagName):o={attributes:o};const u=document.createElement(s);if(o.editable!=null&&(o.attributes==null&&(o.attributes={}),o.attributes.contenteditable=o.editable),o.attributes)for(t in o.attributes)n=o.attributes[t],u.setAttribute(t,n);if(o.style)for(t in o.style)n=o.style[t],u.style[t]=n;if(o.data)for(t in o.data)n=o.data[t],u.dataset[t]=n;return o.className&&o.className.split(" ").forEach((d=>{u.classList.add(d)})),o.textContent&&(u.textContent=o.textContent),o.childNodes&&[].concat(o.childNodes).forEach((d=>{u.appendChild(d)})),u};let kl;const Rl=function(){if(kl!=null)return kl;kl=[];for(const s in Qr){const t=Qr[s];t.tagName&&kl.push(t.tagName)}return kl},M1=s=>Iu(s==null?void 0:s.firstChild),k1=function(s){let{strict:t}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{strict:!0};return t?Iu(s):Iu(s)||!Iu(s.firstChild)&&(function(n){return Rl().includes($r(n))&&!Rl().includes($r(n.firstChild))})(s)},Iu=s=>hI(s)&&(s==null?void 0:s.data)==="block",hI=s=>(s==null?void 0:s.nodeType)===Node.COMMENT_NODE,Tu=function(s){let{name:t}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(s)return jl(s)?s.data===xd?!t||s.parentNode.dataset.trixCursorTarget===t:void 0:Tu(s.firstChild)},_a=s=>nb(s,xa),rb=s=>jl(s)&&(s==null?void 0:s.data)==="",jl=s=>(s==null?void 0:s.nodeType)===Node.TEXT_NODE,R1={level2Enabled:!0,getLevel(){return this.level2Enabled&&Dl.supportsInputEvents?2:0},pickFiles(s){const t=Jt("input",{type:"file",multiple:!0,hidden:!0,id:this.fileInputId});t.addEventListener("change",(()=>{s(t.files),Ro(t)})),Ro(document.getElementById(this.fileInputId)),document.body.appendChild(t),t.click()}};var _d={removeBlankTableCells:!1,tableCellSeparator:" | ",tableRowSeparator:`
`},Ea={bold:{tagName:"strong",inheritable:!0,parser(s){const t=window.getComputedStyle(s);return t.fontWeight==="bold"||t.fontWeight>=600}},italic:{tagName:"em",inheritable:!0,parser:s=>window.getComputedStyle(s).fontStyle==="italic"},href:{groupTagName:"a",parser(s){const t="a:not(".concat(xa,")"),n=s.closest(t);if(n)return n.getAttribute("href")}},strike:{tagName:"del",inheritable:!0},frozen:{style:{backgroundColor:"highlight"}}},ib={getDefaultHTML:()=>`<div class="trix-button-row">
      <span class="trix-button-group trix-button-group--text-tools" data-trix-button-group="text-tools">
        <button type="button" class="trix-button trix-button--icon trix-button--icon-bold" data-trix-attribute="bold" data-trix-key="b" title="`.concat(Ft.bold,'" tabindex="-1">').concat(Ft.bold,`</button>
        <button type="button" class="trix-button trix-button--icon trix-button--icon-italic" data-trix-attribute="italic" data-trix-key="i" title="`).concat(Ft.italic,'" tabindex="-1">').concat(Ft.italic,`</button>
        <button type="button" class="trix-button trix-button--icon trix-button--icon-strike" data-trix-attribute="strike" title="`).concat(Ft.strike,'" tabindex="-1">').concat(Ft.strike,`</button>
        <button type="button" class="trix-button trix-button--icon trix-button--icon-link" data-trix-attribute="href" data-trix-action="link" data-trix-key="k" title="`).concat(Ft.link,'" tabindex="-1">').concat(Ft.link,`</button>
      </span>

      <span class="trix-button-group trix-button-group--block-tools" data-trix-button-group="block-tools">
        <button type="button" class="trix-button trix-button--icon trix-button--icon-heading-1" data-trix-attribute="heading1" title="`).concat(Ft.heading1,'" tabindex="-1">').concat(Ft.heading1,`</button>
        <button type="button" class="trix-button trix-button--icon trix-button--icon-quote" data-trix-attribute="quote" title="`).concat(Ft.quote,'" tabindex="-1">').concat(Ft.quote,`</button>
        <button type="button" class="trix-button trix-button--icon trix-button--icon-code" data-trix-attribute="code" title="`).concat(Ft.code,'" tabindex="-1">').concat(Ft.code,`</button>
        <button type="button" class="trix-button trix-button--icon trix-button--icon-bullet-list" data-trix-attribute="bullet" title="`).concat(Ft.bullets,'" tabindex="-1">').concat(Ft.bullets,`</button>
        <button type="button" class="trix-button trix-button--icon trix-button--icon-number-list" data-trix-attribute="number" title="`).concat(Ft.numbers,'" tabindex="-1">').concat(Ft.numbers,`</button>
        <button type="button" class="trix-button trix-button--icon trix-button--icon-decrease-nesting-level" data-trix-action="decreaseNestingLevel" title="`).concat(Ft.outdent,'" tabindex="-1">').concat(Ft.outdent,`</button>
        <button type="button" class="trix-button trix-button--icon trix-button--icon-increase-nesting-level" data-trix-action="increaseNestingLevel" title="`).concat(Ft.indent,'" tabindex="-1">').concat(Ft.indent,`</button>
      </span>

      <span class="trix-button-group trix-button-group--file-tools" data-trix-button-group="file-tools">
        <button type="button" class="trix-button trix-button--icon trix-button--icon-attach" data-trix-action="attachFiles" title="`).concat(Ft.attachFiles,'" tabindex="-1">').concat(Ft.attachFiles,`</button>
      </span>

      <span class="trix-button-group-spacer"></span>

      <span class="trix-button-group trix-button-group--history-tools" data-trix-button-group="history-tools">
        <button type="button" class="trix-button trix-button--icon trix-button--icon-undo" data-trix-action="undo" data-trix-key="z" title="`).concat(Ft.undo,'" tabindex="-1">').concat(Ft.undo,`</button>
        <button type="button" class="trix-button trix-button--icon trix-button--icon-redo" data-trix-action="redo" data-trix-key="shift+z" title="`).concat(Ft.redo,'" tabindex="-1">').concat(Ft.redo,`</button>
      </span>
    </div>

    <div class="trix-dialogs" data-trix-dialogs>
      <div class="trix-dialog trix-dialog--link" data-trix-dialog="href" data-trix-dialog-attribute="href">
        <div class="trix-dialog__link-fields">
          <input type="url" name="href" class="trix-input trix-input--dialog" placeholder="`).concat(Ft.urlPlaceholder,'" aria-label="').concat(Ft.url,`" data-trix-validate-href required data-trix-input>
          <div class="trix-button-group">
            <input type="button" class="trix-button trix-button--dialog" value="`).concat(Ft.link,`" data-trix-method="setAttribute">
            <input type="button" class="trix-button trix-button--dialog" value="`).concat(Ft.unlink,`" data-trix-method="removeAttribute">
          </div>
        </div>
      </div>
    </div>`)};const j1={interval:5e3};var Fl=Object.freeze({__proto__:null,attachments:I1,blockAttributes:Qr,browser:Dl,css:{attachment:"attachment",attachmentCaption:"attachment__caption",attachmentCaptionEditor:"attachment__caption-editor",attachmentMetadata:"attachment__metadata",attachmentMetadataContainer:"attachment__metadata-container",attachmentName:"attachment__name",attachmentProgress:"attachment__progress",attachmentSize:"attachment__size",attachmentToolbar:"attachment__toolbar",attachmentGallery:"attachment-gallery"},dompurify:Qy,fileSize:$y,input:R1,keyNames:{8:"backspace",9:"tab",13:"return",27:"escape",37:"left",39:"right",46:"delete",68:"d",72:"h",79:"o"},lang:Ft,parser:_d,textAttributes:Ea,toolbar:ib,undo:j1});class ur{static proxyMethod(t){const{name:n,toMethod:o,toProperty:u,optional:d}=fI(t);this.prototype[n]=function(){let h,f;var v,p;return o?f=d?(v=this[o])===null||v===void 0?void 0:v.call(this):this[o]():u&&(f=this[u]),d?(h=(p=f)===null||p===void 0?void 0:p[n],h?sb.call(h,f,arguments):void 0):(h=f[n],sb.call(h,f,arguments))}}}const fI=function(s){const t=s.match(gI);if(!t)throw new Error("can't parse @proxyMethod expression: ".concat(s));const n={name:t[4]};return t[2]!=null?n.toMethod=t[1]:n.toProperty=t[1],t[3]!=null&&(n.optional=!0),n},{apply:sb}=Function.prototype,gI=new RegExp("^(.+?)(\\(\\))?(\\?)?\\.(.+?)$");var F1,B1,q1;class Bl extends ur{static box(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return t instanceof this?t:this.fromUCS2String(t==null?void 0:t.toString())}static fromUCS2String(t){return new this(t,z1(t))}static fromCodepoints(t){return new this(U1(t),t)}constructor(t,n){super(...arguments),this.ucs2String=t,this.codepoints=n,this.length=this.codepoints.length,this.ucs2Length=this.ucs2String.length}offsetToUCS2Offset(t){return U1(this.codepoints.slice(0,Math.max(0,t))).length}offsetFromUCS2Offset(t){return z1(this.ucs2String.slice(0,Math.max(0,t))).length}slice(){return this.constructor.fromCodepoints(this.codepoints.slice(...arguments))}charAt(t){return this.slice(t,t+1)}isEqualTo(t){return this.constructor.box(t).ucs2String===this.ucs2String}toJSON(){return this.ucs2String}getCacheKey(){return this.ucs2String}toString(){return this.ucs2String}}const mI=((F1=Array.from)===null||F1===void 0?void 0:F1.call(Array,"👼").length)===1,pI=((B1=" ".codePointAt)===null||B1===void 0?void 0:B1.call(" ",0))!=null,vI=((q1=String.fromCodePoint)===null||q1===void 0?void 0:q1.call(String,32,128124))===" 👼";let z1,U1;z1=mI&&pI?s=>Array.from(s).map((t=>t.codePointAt(0))):function(s){const t=[];let n=0;const{length:o}=s;for(;n<o;){let u=s.charCodeAt(n++);if(55296<=u&&u<=56319&&n<o){const d=s.charCodeAt(n++);(64512&d)==56320?u=((1023&u)<<10)+(1023&d)+65536:n--}t.push(u)}return t},U1=vI?s=>String.fromCodePoint(...Array.from(s||[])):function(s){return(()=>{const t=[];return Array.from(s).forEach((n=>{let o="";n>65535&&(n-=65536,o+=String.fromCharCode(n>>>10&1023|55296),n=56320|1023&n),t.push(o+String.fromCharCode(n))})),t})().join("")};let yI=0;class wa extends ur{static fromJSONString(t){return this.fromJSON(JSON.parse(t))}constructor(){super(...arguments),this.id=++yI}hasSameConstructorAs(t){return this.constructor===(t==null?void 0:t.constructor)}isEqualTo(t){return this===t}inspect(){const t=[],n=this.contentsForInspection()||{};for(const o in n){const u=n[o];t.push("".concat(o,"=").concat(u))}return"#<".concat(this.constructor.name,":").concat(this.id).concat(t.length?" ".concat(t.join(", ")):"",">")}contentsForInspection(){}toJSONString(){return JSON.stringify(this)}toUTF16String(){return Bl.box(this)}getCacheKey(){return this.id.toString()}}const Sa=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(s.length!==t.length)return!1;for(let n=0;n<s.length;n++)if(s[n]!==t[n])return!1;return!0},V1=function(s){const t=s.slice(0);for(var n=arguments.length,o=new Array(n>1?n-1:0),u=1;u<n;u++)o[u-1]=arguments[u];return t.splice(...o),t},bI=/[\u05BE\u05C0\u05C3\u05D0-\u05EA\u05F0-\u05F4\u061B\u061F\u0621-\u063A\u0640-\u064A\u066D\u0671-\u06B7\u06BA-\u06BE\u06C0-\u06CE\u06D0-\u06D5\u06E5\u06E6\u200F\u202B\u202E\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE72\uFE74\uFE76-\uFEFC]/,xI=(function(){const s=Jt("input",{dir:"auto",name:"x",dirName:"x.dir"}),t=Jt("textarea",{dir:"auto",name:"y",dirName:"y.dir"}),n=Jt("form");n.appendChild(s),n.appendChild(t);const o=(function(){try{return new FormData(n).has(t.dirName)}catch{return!1}})(),u=(function(){try{return s.matches(":dir(ltr),:dir(rtl)")}catch{return!1}})();return o?function(d){return t.value=d,new FormData(n).get(t.dirName)}:u?function(d){return s.value=d,s.matches(":dir(rtl)")?"rtl":"ltr"}:function(d){const h=d.trim().charAt(0);return bI.test(h)?"rtl":"ltr"}})();let H1=null,G1=null,W1=null,Ed=null;const Z1=()=>(H1||(H1=_I().concat(CI())),H1),er=s=>Qr[s],CI=()=>(G1||(G1=Object.keys(Qr)),G1),X1=s=>Ea[s],_I=()=>(W1||(W1=Object.keys(Ea)),W1),ob=function(s,t){EI(s).textContent=t.replace(/%t/g,s)},EI=function(s){const t=document.createElement("style");t.setAttribute("type","text/css"),t.setAttribute("data-tag-name",s.toLowerCase());const n=wI();return n&&t.setAttribute("nonce",n),document.head.insertBefore(t,document.head.firstChild),t},wI=function(){const s=ab("trix-csp-nonce")||ab("csp-nonce");if(s){const{nonce:t,content:n}=s;return t==""?n:t}},ab=s=>document.head.querySelector("meta[name=".concat(s,"]")),ub={"application/x-trix-feature-detection":"test"},lb=function(s){const t=s.getData("text/plain"),n=s.getData("text/html");if(!t||!n)return t==null?void 0:t.length;{const{body:o}=new DOMParser().parseFromString(n,"text/html");if(o.textContent===t)return!o.querySelector("*")}},cb=/Mac|^iP/.test(navigator.platform)?s=>s.metaKey:s=>s.ctrlKey,Y1=s=>setTimeout(s,1),db=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t={};for(const n in s){const o=s[n];t[n]=o}return t},Au=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Object.keys(s).length!==Object.keys(t).length)return!1;for(const n in s)if(s[n]!==t[n])return!1;return!0},_n=function(s){if(s!=null)return Array.isArray(s)||(s=[s,s]),[hb(s[0]),hb(s[1]!=null?s[1]:s[0])]},oo=function(s){if(s==null)return;const[t,n]=_n(s);return K1(t,n)},wd=function(s,t){if(s==null||t==null)return;const[n,o]=_n(s),[u,d]=_n(t);return K1(n,u)&&K1(o,d)},hb=function(s){return typeof s=="number"?s:db(s)},K1=function(s,t){return typeof s=="number"?s===t:Au(s,t)};class fb extends ur{constructor(){super(...arguments),this.update=this.update.bind(this),this.selectionManagers=[]}start(){this.started||(this.started=!0,document.addEventListener("selectionchange",this.update,!0))}stop(){if(this.started)return this.started=!1,document.removeEventListener("selectionchange",this.update,!0)}registerSelectionManager(t){if(!this.selectionManagers.includes(t))return this.selectionManagers.push(t),this.start()}unregisterSelectionManager(t){if(this.selectionManagers=this.selectionManagers.filter((n=>n!==t)),this.selectionManagers.length===0)return this.stop()}notifySelectionManagersOfSelectionChange(){return this.selectionManagers.map((t=>t.selectionDidChange()))}update(){this.notifySelectionManagersOfSelectionChange()}reset(){this.update()}}const Oa=new fb,gb=function(){const s=window.getSelection();if(s.rangeCount>0)return s},ql=function(){var s;const t=(s=gb())===null||s===void 0?void 0:s.getRangeAt(0);if(t&&!SI(t))return t},mb=function(s){const t=window.getSelection();return t.removeAllRanges(),t.addRange(s),Oa.update()},SI=s=>pb(s.startContainer)||pb(s.endContainer),pb=s=>!Object.getPrototypeOf(s),zl=s=>s.replace(new RegExp("".concat(xd),"g"),"").replace(new RegExp("".concat(Mo),"g")," "),J1=new RegExp("[^\\S".concat(Mo,"]")),Q1=s=>s.replace(new RegExp("".concat(J1.source),"g")," ").replace(/\ {2,}/g," "),vb=function(s,t){if(s.isEqualTo(t))return["",""];const n=$1(s,t),{length:o}=n.utf16String;let u;if(o){const{offset:d}=n,h=s.codepoints.slice(0,d).concat(s.codepoints.slice(d+o));u=$1(t,Bl.fromCodepoints(h))}else u=$1(t,s);return[n.utf16String.toString(),u.utf16String.toString()]},$1=function(s,t){let n=0,o=s.length,u=t.length;for(;n<o&&s.charAt(n).isEqualTo(t.charAt(n));)n++;for(;o>n+1&&s.charAt(o-1).isEqualTo(t.charAt(u-1));)o--,u--;return{utf16String:s.slice(n,o),offset:n}};class Oi extends wa{static fromCommonAttributesOfObjects(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(!t.length)return new this;let n=Ul(t[0]),o=n.getKeys();return t.slice(1).forEach((u=>{o=n.getKeysCommonToHash(Ul(u)),n=n.slice(o)})),n}static box(t){return Ul(t)}constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(...arguments),this.values=Sd(t)}add(t,n){return this.merge(OI(t,n))}remove(t){return new Oi(Sd(this.values,t))}get(t){return this.values[t]}has(t){return t in this.values}merge(t){return new Oi(LI(this.values,NI(t)))}slice(t){const n={};return Array.from(t).forEach((o=>{this.has(o)&&(n[o]=this.values[o])})),new Oi(n)}getKeys(){return Object.keys(this.values)}getKeysCommonToHash(t){return t=Ul(t),this.getKeys().filter((n=>this.values[n]===t.values[n]))}isEqualTo(t){return Sa(this.toArray(),Ul(t).toArray())}isEmpty(){return this.getKeys().length===0}toArray(){if(!this.array){const t=[];for(const n in this.values){const o=this.values[n];t.push(t.push(n,o))}this.array=t.slice(0)}return this.array}toObject(){return Sd(this.values)}toJSON(){return this.toObject()}contentsForInspection(){return{values:JSON.stringify(this.values)}}}const OI=function(s,t){const n={};return n[s]=t,n},LI=function(s,t){const n=Sd(s);for(const o in t){const u=t[o];n[o]=u}return n},Sd=function(s,t){const n={};return Object.keys(s).sort().forEach((o=>{o!==t&&(n[o]=s[o])})),n},Ul=function(s){return s instanceof Oi?s:new Oi(s)},NI=function(s){return s instanceof Oi?s.values:s};class eg{static groupObjects(){let t,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],{depth:o,asTree:u}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};u&&o==null&&(o=0);const d=[];return Array.from(n).forEach((h=>{var f;if(t){var v,p,y;if((v=h.canBeGrouped)!==null&&v!==void 0&&v.call(h,o)&&(p=(y=t[t.length-1]).canBeGroupedWith)!==null&&p!==void 0&&p.call(y,h,o))return void t.push(h);d.push(new this(t,{depth:o,asTree:u})),t=null}(f=h.canBeGrouped)!==null&&f!==void 0&&f.call(h,o)?t=[h]:d.push(h)})),t&&d.push(new this(t,{depth:o,asTree:u})),d}constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],{depth:n,asTree:o}=arguments.length>1?arguments[1]:void 0;this.objects=t,o&&(this.depth=n,this.objects=this.constructor.groupObjects(this.objects,{asTree:o,depth:this.depth+1}))}getObjects(){return this.objects}getDepth(){return this.depth}getCacheKey(){const t=["objectGroup"];return Array.from(this.getObjects()).forEach((n=>{t.push(n.getCacheKey())})),t.join("/")}}class II extends ur{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];super(...arguments),this.objects={},Array.from(t).forEach((n=>{const o=JSON.stringify(n);this.objects[o]==null&&(this.objects[o]=n)}))}find(t){const n=JSON.stringify(t);return this.objects[n]}}class TI{constructor(t){this.reset(t)}add(t){const n=yb(t);this.elements[n]=t}remove(t){const n=yb(t),o=this.elements[n];if(o)return delete this.elements[n],o}reset(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return this.elements={},Array.from(t).forEach((n=>{this.add(n)})),t}}const yb=s=>s.dataset.trixStoreKey;class Od extends ur{isPerforming(){return this.performing===!0}hasPerformed(){return this.performed===!0}hasSucceeded(){return this.performed&&this.succeeded}hasFailed(){return this.performed&&!this.succeeded}getPromise(){return this.promise||(this.promise=new Promise(((t,n)=>(this.performing=!0,this.perform(((o,u)=>{this.succeeded=o,this.performing=!1,this.performed=!0,this.succeeded?t(u):n(u)})))))),this.promise}perform(t){return t(!1)}release(){var t,n;(t=this.promise)===null||t===void 0||(n=t.cancel)===null||n===void 0||n.call(t),this.promise=null,this.performing=null,this.performed=null,this.succeeded=null}}Od.proxyMethod("getPromise().then"),Od.proxyMethod("getPromise().catch");class La extends ur{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(...arguments),this.object=t,this.options=n,this.childViews=[],this.rootView=this}getNodes(){return this.nodes||(this.nodes=this.createNodes()),this.nodes.map((t=>t.cloneNode(!0)))}invalidate(){var t;return this.nodes=null,this.childViews=[],(t=this.parentView)===null||t===void 0?void 0:t.invalidate()}invalidateViewForObject(t){var n;return(n=this.findViewForObject(t))===null||n===void 0?void 0:n.invalidate()}findOrCreateCachedChildView(t,n,o){let u=this.getCachedViewForObject(n);return u?this.recordChildView(u):(u=this.createChildView(...arguments),this.cacheViewForObject(u,n)),u}createChildView(t,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};n instanceof eg&&(o.viewClass=t,t=AI);const u=new t(n,o);return this.recordChildView(u)}recordChildView(t){return t.parentView=this,t.rootView=this.rootView,this.childViews.push(t),t}getAllChildViews(){let t=[];return this.childViews.forEach((n=>{t.push(n),t=t.concat(n.getAllChildViews())})),t}findElement(){return this.findElementForObject(this.object)}findElementForObject(t){const n=t==null?void 0:t.id;if(n)return this.rootView.element.querySelector("[data-trix-id='".concat(n,"']"))}findViewForObject(t){for(const n of this.getAllChildViews())if(n.object===t)return n}getViewCache(){return this.rootView!==this?this.rootView.getViewCache():this.isViewCachingEnabled()?(this.viewCache||(this.viewCache={}),this.viewCache):void 0}isViewCachingEnabled(){return this.shouldCacheViews!==!1}enableViewCaching(){this.shouldCacheViews=!0}disableViewCaching(){this.shouldCacheViews=!1}getCachedViewForObject(t){var n;return(n=this.getViewCache())===null||n===void 0?void 0:n[t.getCacheKey()]}cacheViewForObject(t,n){const o=this.getViewCache();o&&(o[n.getCacheKey()]=t)}garbageCollectCachedViews(){const t=this.getViewCache();if(t){const n=this.getAllChildViews().concat(this).map((o=>o.object.getCacheKey()));for(const o in t)n.includes(o)||delete t[o]}}}class AI extends La{constructor(){super(...arguments),this.objectGroup=this.object,this.viewClass=this.options.viewClass,delete this.options.viewClass}getChildViews(){return this.childViews.length||Array.from(this.objectGroup.getObjects()).forEach((t=>{this.findOrCreateCachedChildView(this.viewClass,t,this.options)})),this.childViews}createNodes(){const t=this.createContainerElement();return this.getChildViews().forEach((n=>{Array.from(n.getNodes()).forEach((o=>{t.appendChild(o)}))})),[t]}createContainerElement(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.objectGroup.getDepth();return this.getChildViews()[0].createContainerElement(t)}}/*! @license DOMPurify 3.4.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.2/LICENSE */const{entries:bb,setPrototypeOf:xb,isFrozen:PI,getPrototypeOf:DI,getOwnPropertyDescriptor:MI}=Object;let{freeze:ei,seal:Ui,create:Pu}=Object,{apply:tg,construct:ng}=typeof Reflect<"u"&&Reflect;ei||(ei=function(s){return s}),Ui||(Ui=function(s){return s}),tg||(tg=function(s,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),u=2;u<n;u++)o[u-2]=arguments[u];return s.apply(t,o)}),ng||(ng=function(s){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return new s(...n)});const Vl=lr(Array.prototype.forEach),kI=lr(Array.prototype.lastIndexOf),Cb=lr(Array.prototype.pop),Hl=lr(Array.prototype.push),RI=lr(Array.prototype.splice),ti=Array.isArray,Gl=lr(String.prototype.toLowerCase),rg=lr(String.prototype.toString),_b=lr(String.prototype.match),Du=lr(String.prototype.replace),Eb=lr(String.prototype.indexOf),jI=lr(String.prototype.trim),FI=lr(Number.prototype.toString),BI=lr(Boolean.prototype.toString),wb=typeof BigInt>"u"?null:lr(BigInt.prototype.toString),Sb=typeof Symbol>"u"?null:lr(Symbol.prototype.toString),Kn=lr(Object.prototype.hasOwnProperty),Ld=lr(Object.prototype.toString),kr=lr(RegExp.prototype.test),Nd=(Ob=TypeError,function(){for(var s=arguments.length,t=new Array(s),n=0;n<s;n++)t[n]=arguments[n];return ng(Ob,t)});var Ob;function lr(s){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),u=1;u<n;u++)o[u-1]=arguments[u];return tg(s,t,o)}}function Vt(s,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Gl;if(xb&&xb(s,null),!ti(t))return s;let o=t.length;for(;o--;){let u=t[o];if(typeof u=="string"){const d=n(u);d!==u&&(PI(t)||(t[o]=d),u=d)}s[u]=!0}return s}function qI(s){for(let t=0;t<s.length;t++)Kn(s,t)||(s[t]=null);return s}function ai(s){const t=Pu(null);for(const[n,o]of bb(s))Kn(s,n)&&(ti(o)?t[n]=qI(o):o&&typeof o=="object"&&o.constructor===Object?t[n]=ai(o):t[n]=o);return t}function Mu(s,t){for(;s!==null;){const n=MI(s,t);if(n){if(n.get)return lr(n.get);if(typeof n.value=="function")return lr(n.value)}s=DI(s)}return function(){return null}}const Lb=ei(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ig=ei(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),sg=ei(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),zI=ei(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),og=ei(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),UI=ei(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Nb=ei(["#text"]),Ib=ei(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),ag=ei(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Tb=ei(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Id=ei(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),VI=Ui(/\{\{[\w\W]*|[\w\W]*\}\}/gm),HI=Ui(/<%[\w\W]*|[\w\W]*%>/gm),GI=Ui(/\$\{[\w\W]*/gm),WI=Ui(/^data-[\-\w.\u00B7-\uFFFF]+$/),ZI=Ui(/^aria-[\-\w]+$/),Ab=Ui(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),XI=Ui(/^(?:\w+script|data):/i),YI=Ui(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Pb=Ui(/^html$/i),KI=Ui(/^[a-z][.\w]*(-[.\w]+)+$/i);var Db=Object.freeze({__proto__:null,ARIA_ATTR:ZI,ATTR_WHITESPACE:YI,CUSTOM_ELEMENT:KI,DATA_ATTR:WI,DOCTYPE_NAME:Pb,ERB_EXPR:HI,IS_ALLOWED_URI:Ab,IS_SCRIPT_OR_DATA:XI,MUSTACHE_EXPR:VI,TMPLIT_EXPR:GI});const JI=1,QI=3,$I=7,eT=8,tT=9,nT=function(){return typeof window>"u"?null:window};var ku=(function s(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:nT();const n=ie=>s(ie);if(n.version="3.4.2",n.removed=[],!t||!t.document||t.document.nodeType!==tT||!t.Element)return n.isSupported=!1,n;let{document:o}=t;const u=o,d=u.currentScript,{DocumentFragment:h,HTMLTemplateElement:f,Node:v,Element:p,NodeFilter:y,NamedNodeMap:x=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:_,DOMParser:S,trustedTypes:N}=t,w=p.prototype,j=Mu(w,"cloneNode"),U=Mu(w,"remove"),M=Mu(w,"nextSibling"),D=Mu(w,"childNodes"),T=Mu(w,"parentNode");if(typeof f=="function"){const ie=o.createElement("template");ie.content&&ie.content.ownerDocument&&(o=ie.content.ownerDocument)}let O,q="";const{implementation:k,createNodeIterator:H,createDocumentFragment:V,getElementsByTagName:Y}=o,{importNode:R}=u;let A={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported=typeof bb=="function"&&typeof T=="function"&&k&&k.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:X,ERB_EXPR:ee,TMPLIT_EXPR:ue,DATA_ATTR:G,ARIA_ATTR:K,IS_SCRIPT_OR_DATA:B,ATTR_WHITESPACE:te,CUSTOM_ELEMENT:Q}=Db;let{IS_ALLOWED_URI:$}=Db,re=null;const le=Vt({},[...Lb,...ig,...sg,...og,...Nb]);let be=null;const ae=Vt({},[...Ib,...ag,...Tb,...Id]);let Ce=Object.seal(Pu(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),we=null,Me=null;const Je=Object.seal(Pu(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let rt=!0,et=!0,Le=!1,mt=!0,lt=!1,De=!0,ct=!1,vt=!1,Ye=!1,Tt=!1,Ve=!1,ye=!1,Qe=!0,at=!1;const ve="user-content-";let Xe=!0,Be=!1,ut={},st=null;const he=Vt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ht=null;const kt=Vt({},["audio","video","img","source","image","track"]);let Re=null;const Lt=Vt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),At="http://www.w3.org/1998/Math/MathML",Wn="http://www.w3.org/2000/svg",Ht="http://www.w3.org/1999/xhtml";let Nn=Ht,Gt=!1,hn=null;const vn=Vt({},[At,Wn,Ht],rg);let nr=Vt({},["mi","mo","mn","ms","mtext"]),Ae=Vt({},["annotation-xml"]);const He=Vt({},["title","style","font","a","script"]);let Se=null;const fn=["application/xhtml+xml","text/html"];let Ge=null,Nt=null;const _t=o.createElement("form"),$t=function(ie){return ie instanceof RegExp||ie instanceof Function},It=function(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Nt&&Nt===ie)return;ie&&typeof ie=="object"||(ie={}),ie=ai(ie),Se=fn.indexOf(ie.PARSER_MEDIA_TYPE)===-1?"text/html":ie.PARSER_MEDIA_TYPE,Ge=Se==="application/xhtml+xml"?rg:Gl,re=Kn(ie,"ALLOWED_TAGS")&&ti(ie.ALLOWED_TAGS)?Vt({},ie.ALLOWED_TAGS,Ge):le,be=Kn(ie,"ALLOWED_ATTR")&&ti(ie.ALLOWED_ATTR)?Vt({},ie.ALLOWED_ATTR,Ge):ae,hn=Kn(ie,"ALLOWED_NAMESPACES")&&ti(ie.ALLOWED_NAMESPACES)?Vt({},ie.ALLOWED_NAMESPACES,rg):vn,Re=Kn(ie,"ADD_URI_SAFE_ATTR")&&ti(ie.ADD_URI_SAFE_ATTR)?Vt(ai(Lt),ie.ADD_URI_SAFE_ATTR,Ge):Lt,ht=Kn(ie,"ADD_DATA_URI_TAGS")&&ti(ie.ADD_DATA_URI_TAGS)?Vt(ai(kt),ie.ADD_DATA_URI_TAGS,Ge):kt,st=Kn(ie,"FORBID_CONTENTS")&&ti(ie.FORBID_CONTENTS)?Vt({},ie.FORBID_CONTENTS,Ge):he,we=Kn(ie,"FORBID_TAGS")&&ti(ie.FORBID_TAGS)?Vt({},ie.FORBID_TAGS,Ge):ai({}),Me=Kn(ie,"FORBID_ATTR")&&ti(ie.FORBID_ATTR)?Vt({},ie.FORBID_ATTR,Ge):ai({}),ut=!!Kn(ie,"USE_PROFILES")&&(ie.USE_PROFILES&&typeof ie.USE_PROFILES=="object"?ai(ie.USE_PROFILES):ie.USE_PROFILES),rt=ie.ALLOW_ARIA_ATTR!==!1,et=ie.ALLOW_DATA_ATTR!==!1,Le=ie.ALLOW_UNKNOWN_PROTOCOLS||!1,mt=ie.ALLOW_SELF_CLOSE_IN_ATTR!==!1,lt=ie.SAFE_FOR_TEMPLATES||!1,De=ie.SAFE_FOR_XML!==!1,ct=ie.WHOLE_DOCUMENT||!1,Tt=ie.RETURN_DOM||!1,Ve=ie.RETURN_DOM_FRAGMENT||!1,ye=ie.RETURN_TRUSTED_TYPE||!1,Ye=ie.FORCE_BODY||!1,Qe=ie.SANITIZE_DOM!==!1,at=ie.SANITIZE_NAMED_PROPS||!1,Xe=ie.KEEP_CONTENT!==!1,Be=ie.IN_PLACE||!1,$=(function(qe){try{return kr(qe,""),!0}catch{return!1}})(ie.ALLOWED_URI_REGEXP)?ie.ALLOWED_URI_REGEXP:Ab,Nn=typeof ie.NAMESPACE=="string"?ie.NAMESPACE:Ht,nr=Kn(ie,"MATHML_TEXT_INTEGRATION_POINTS")&&ie.MATHML_TEXT_INTEGRATION_POINTS&&typeof ie.MATHML_TEXT_INTEGRATION_POINTS=="object"?ai(ie.MATHML_TEXT_INTEGRATION_POINTS):Vt({},["mi","mo","mn","ms","mtext"]),Ae=Kn(ie,"HTML_INTEGRATION_POINTS")&&ie.HTML_INTEGRATION_POINTS&&typeof ie.HTML_INTEGRATION_POINTS=="object"?ai(ie.HTML_INTEGRATION_POINTS):Vt({},["annotation-xml"]);const ze=Kn(ie,"CUSTOM_ELEMENT_HANDLING")&&ie.CUSTOM_ELEMENT_HANDLING&&typeof ie.CUSTOM_ELEMENT_HANDLING=="object"?ai(ie.CUSTOM_ELEMENT_HANDLING):Pu(null);if(Ce=Pu(null),Kn(ze,"tagNameCheck")&&$t(ze.tagNameCheck)&&(Ce.tagNameCheck=ze.tagNameCheck),Kn(ze,"attributeNameCheck")&&$t(ze.attributeNameCheck)&&(Ce.attributeNameCheck=ze.attributeNameCheck),Kn(ze,"allowCustomizedBuiltInElements")&&typeof ze.allowCustomizedBuiltInElements=="boolean"&&(Ce.allowCustomizedBuiltInElements=ze.allowCustomizedBuiltInElements),lt&&(et=!1),Ve&&(Tt=!0),ut&&(re=Vt({},Nb),be=Pu(null),ut.html===!0&&(Vt(re,Lb),Vt(be,Ib)),ut.svg===!0&&(Vt(re,ig),Vt(be,ag),Vt(be,Id)),ut.svgFilters===!0&&(Vt(re,sg),Vt(be,ag),Vt(be,Id)),ut.mathMl===!0&&(Vt(re,og),Vt(be,Tb),Vt(be,Id))),Je.tagCheck=null,Je.attributeCheck=null,Kn(ie,"ADD_TAGS")&&(typeof ie.ADD_TAGS=="function"?Je.tagCheck=ie.ADD_TAGS:ti(ie.ADD_TAGS)&&(re===le&&(re=ai(re)),Vt(re,ie.ADD_TAGS,Ge))),Kn(ie,"ADD_ATTR")&&(typeof ie.ADD_ATTR=="function"?Je.attributeCheck=ie.ADD_ATTR:ti(ie.ADD_ATTR)&&(be===ae&&(be=ai(be)),Vt(be,ie.ADD_ATTR,Ge))),Kn(ie,"ADD_URI_SAFE_ATTR")&&ti(ie.ADD_URI_SAFE_ATTR)&&Vt(Re,ie.ADD_URI_SAFE_ATTR,Ge),Kn(ie,"FORBID_CONTENTS")&&ti(ie.FORBID_CONTENTS)&&(st===he&&(st=ai(st)),Vt(st,ie.FORBID_CONTENTS,Ge)),Kn(ie,"ADD_FORBID_CONTENTS")&&ti(ie.ADD_FORBID_CONTENTS)&&(st===he&&(st=ai(st)),Vt(st,ie.ADD_FORBID_CONTENTS,Ge)),Xe&&(re["#text"]=!0),ct&&Vt(re,["html","head","body"]),re.table&&(Vt(re,["tbody"]),delete we.tbody),ie.TRUSTED_TYPES_POLICY){if(typeof ie.TRUSTED_TYPES_POLICY.createHTML!="function")throw Nd('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ie.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Nd('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');O=ie.TRUSTED_TYPES_POLICY,q=O.createHTML("")}else O===void 0&&(O=(function(qe,Dt){if(typeof qe!="object"||typeof qe.createPolicy!="function")return null;let Rt=null;const bt="data-tt-policy-suffix";Dt&&Dt.hasAttribute(bt)&&(Rt=Dt.getAttribute(bt));const wn="dompurify"+(Rt?"#"+Rt:"");try{return qe.createPolicy(wn,{createHTML:In=>In,createScriptURL:In=>In})}catch{return console.warn("TrustedTypes policy "+wn+" could not be created."),null}})(N,d)),O!==null&&typeof q=="string"&&(q=O.createHTML(""));ei&&ei(ie),Nt=ie},nn=Vt({},[...ig,...sg,...zI]),dn=Vt({},[...og,...UI]),gn=function(ie){Hl(n.removed,{element:ie});try{T(ie).removeChild(ie)}catch{U(ie)}},bn=function(ie,ze){try{Hl(n.removed,{attribute:ze.getAttributeNode(ie),from:ze})}catch{Hl(n.removed,{attribute:null,from:ze})}if(ze.removeAttribute(ie),ie==="is")if(Tt||Ve)try{gn(ze)}catch{}else try{ze.setAttribute(ie,"")}catch{}},We=function(ie){let ze=null,qe=null;if(Ye)ie="<remove></remove>"+ie;else{const bt=_b(ie,/^[\r\n\t ]+/);qe=bt&&bt[0]}Se==="application/xhtml+xml"&&Nn===Ht&&(ie='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+ie+"</body></html>");const Dt=O?O.createHTML(ie):ie;if(Nn===Ht)try{ze=new S().parseFromString(Dt,Se)}catch{}if(!ze||!ze.documentElement){ze=k.createDocument(Nn,"template",null);try{ze.documentElement.innerHTML=Gt?q:Dt}catch{}}const Rt=ze.body||ze.documentElement;return ie&&qe&&Rt.insertBefore(o.createTextNode(qe),Rt.childNodes[0]||null),Nn===Ht?Y.call(ze,ct?"html":"body")[0]:ct?ze.documentElement:Rt},xn=function(ie){return H.call(ie.ownerDocument||ie,ie,y.SHOW_ELEMENT|y.SHOW_COMMENT|y.SHOW_TEXT|y.SHOW_PROCESSING_INSTRUCTION|y.SHOW_CDATA_SECTION,null)},rn=function(ie){return ie instanceof _&&(typeof ie.nodeName!="string"||typeof ie.textContent!="string"||typeof ie.removeChild!="function"||!(ie.attributes instanceof x)||typeof ie.removeAttribute!="function"||typeof ie.setAttribute!="function"||typeof ie.namespaceURI!="string"||typeof ie.insertBefore!="function"||typeof ie.hasChildNodes!="function")},dr=function(ie){return typeof v=="function"&&ie instanceof v};function Or(ie,ze,qe){Vl(ie,(Dt=>{Dt.call(n,ze,qe,Nt)}))}const un=function(ie){let ze=null;if(Or(A.beforeSanitizeElements,ie,null),rn(ie))return gn(ie),!0;const qe=Ge(ie.nodeName);if(Or(A.uponSanitizeElement,ie,{tagName:qe,allowedTags:re}),De&&ie.hasChildNodes()&&!dr(ie.firstElementChild)&&kr(/<[/\w!]/g,ie.innerHTML)&&kr(/<[/\w!]/g,ie.textContent)||De&&ie.namespaceURI===Ht&&qe==="style"&&dr(ie.firstElementChild)||ie.nodeType===$I||De&&ie.nodeType===eT&&kr(/<[/\w]/g,ie.data))return gn(ie),!0;if(we[qe]||!(Je.tagCheck instanceof Function&&Je.tagCheck(qe))&&!re[qe]){if(!we[qe]&&Hi(qe)&&(Ce.tagNameCheck instanceof RegExp&&kr(Ce.tagNameCheck,qe)||Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(qe)))return!1;if(Xe&&!st[qe]){const Dt=T(ie)||ie.parentNode,Rt=D(ie)||ie.childNodes;if(Rt&&Dt)for(let bt=Rt.length-1;bt>=0;--bt){const wn=j(Rt[bt],!0);Dt.insertBefore(wn,M(ie))}}return gn(ie),!0}return ie instanceof p&&!(function(Dt){let Rt=T(Dt);Rt&&Rt.tagName||(Rt={namespaceURI:Nn,tagName:"template"});const bt=Gl(Dt.tagName),wn=Gl(Rt.tagName);return!!hn[Dt.namespaceURI]&&(Dt.namespaceURI===Wn?Rt.namespaceURI===Ht?bt==="svg":Rt.namespaceURI===At?bt==="svg"&&(wn==="annotation-xml"||nr[wn]):!!nn[bt]:Dt.namespaceURI===At?Rt.namespaceURI===Ht?bt==="math":Rt.namespaceURI===Wn?bt==="math"&&Ae[wn]:!!dn[bt]:Dt.namespaceURI===Ht?!(Rt.namespaceURI===Wn&&!Ae[wn])&&!(Rt.namespaceURI===At&&!nr[wn])&&!dn[bt]&&(He[bt]||!nn[bt]):!(Se!=="application/xhtml+xml"||!hn[Dt.namespaceURI]))})(ie)?(gn(ie),!0):qe!=="noscript"&&qe!=="noembed"&&qe!=="noframes"||!kr(/<\/no(script|embed|frames)/i,ie.innerHTML)?(lt&&ie.nodeType===QI&&(ze=ie.textContent,Vl([X,ee,ue],(Dt=>{ze=Du(ze,Dt," ")})),ie.textContent!==ze&&(Hl(n.removed,{element:ie.cloneNode()}),ie.textContent=ze)),Or(A.afterSanitizeElements,ie,null),!1):(gn(ie),!0)},Rr=function(ie,ze,qe){if(Me[ze]||Qe&&(ze==="id"||ze==="name")&&(qe in o||qe in _t))return!1;const Dt=be[ze]||Je.attributeCheck instanceof Function&&Je.attributeCheck(ze,ie);if(!(et&&!Me[ze]&&kr(G,ze))){if(!(rt&&kr(K,ze))){if(!Dt||Me[ze]){if(!(Hi(ie)&&(Ce.tagNameCheck instanceof RegExp&&kr(Ce.tagNameCheck,ie)||Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(ie))&&(Ce.attributeNameCheck instanceof RegExp&&kr(Ce.attributeNameCheck,ze)||Ce.attributeNameCheck instanceof Function&&Ce.attributeNameCheck(ze,ie))||ze==="is"&&Ce.allowCustomizedBuiltInElements&&(Ce.tagNameCheck instanceof RegExp&&kr(Ce.tagNameCheck,qe)||Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(qe))))return!1}else if(!Re[ze]){if(!kr($,Du(qe,te,""))){if((ze!=="src"&&ze!=="xlink:href"&&ze!=="href"||ie==="script"||Eb(qe,"data:")!==0||!ht[ie])&&!(Le&&!kr(B,Du(qe,te,"")))){if(qe)return!1}}}}}return!0},ui=Vt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Hi=function(ie){return!ui[Gl(ie)]&&kr(Q,ie)},ni=function(ie){Or(A.beforeSanitizeAttributes,ie,null);const{attributes:ze}=ie;if(!ze||rn(ie))return;const qe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:be,forceKeepAttr:void 0};let Dt=ze.length;for(;Dt--;){const Rt=ze[Dt],{name:bt,namespaceURI:wn,value:In}=Rt,Mt=Ge(bt),Ct=In;let Wt=bt==="value"?Ct:jI(Ct);if(qe.attrName=Mt,qe.attrValue=Wt,qe.keepAttr=!0,qe.forceKeepAttr=void 0,Or(A.uponSanitizeAttribute,ie,qe),Wt=qe.attrValue,!at||Mt!=="id"&&Mt!=="name"||Eb(Wt,ve)===0||(bn(bt,ie),Wt=ve+Wt),De&&kr(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Wt)){bn(bt,ie);continue}if(Mt==="attributename"&&_b(Wt,"href")){bn(bt,ie);continue}if(qe.forceKeepAttr)continue;if(!qe.keepAttr){bn(bt,ie);continue}if(!mt&&kr(/\/>/i,Wt)){bn(bt,ie);continue}lt&&Vl([X,ee,ue],(je=>{Wt=Du(Wt,je," ")}));const dt=Ge(ie.nodeName);if(Rr(dt,Mt,Wt)){if(O&&typeof N=="object"&&typeof N.getAttributeType=="function"&&!wn)switch(N.getAttributeType(dt,Mt)){case"TrustedHTML":Wt=O.createHTML(Wt);break;case"TrustedScriptURL":Wt=O.createScriptURL(Wt)}if(Wt!==Ct)try{wn?ie.setAttributeNS(wn,bt,Wt):ie.setAttribute(bt,Wt),rn(ie)?gn(ie):Cb(n.removed)}catch{bn(bt,ie)}}else bn(bt,ie)}Or(A.afterSanitizeAttributes,ie,null)},as=function(ie){let ze=null;const qe=xn(ie);for(Or(A.beforeSanitizeShadowDOM,ie,null);ze=qe.nextNode();)Or(A.uponSanitizeShadowNode,ze,null),un(ze),ni(ze),ze.content instanceof h&&as(ze.content);Or(A.afterSanitizeShadowDOM,ie,null)};return n.sanitize=function(ie){let ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},qe=null,Dt=null,Rt=null,bt=null;if(Gt=!ie,Gt&&(ie="<!-->"),typeof ie!="string"&&!dr(ie)&&typeof(ie=(function(Mt){switch(typeof Mt){case"string":return Mt;case"number":return FI(Mt);case"boolean":return BI(Mt);case"bigint":return wb?wb(Mt):"0";case"symbol":return Sb?Sb(Mt):"Symbol()";case"undefined":default:return Ld(Mt);case"function":case"object":{if(Mt===null)return Ld(Mt);const Ct=Mt,Wt=Mu(Ct,"toString");if(typeof Wt=="function"){const dt=Wt(Ct);return typeof dt=="string"?dt:Ld(dt)}return Ld(Mt)}}})(ie))!="string")throw Nd("dirty is not a string, aborting");if(!n.isSupported)return ie;if(vt||It(ze),n.removed=[],typeof ie=="string"&&(Be=!1),Be){const Mt=ie.nodeName;if(typeof Mt=="string"){const Ct=Ge(Mt);if(!re[Ct]||we[Ct])throw Nd("root node is forbidden and cannot be sanitized in-place")}}else if(ie instanceof v)qe=We("<!---->"),Dt=qe.ownerDocument.importNode(ie,!0),Dt.nodeType===JI&&Dt.nodeName==="BODY"||Dt.nodeName==="HTML"?qe=Dt:qe.appendChild(Dt);else{if(!Tt&&!lt&&!ct&&ie.indexOf("<")===-1)return O&&ye?O.createHTML(ie):ie;if(qe=We(ie),!qe)return Tt?null:ye?q:""}qe&&Ye&&gn(qe.firstChild);const wn=xn(Be?ie:qe);for(;Rt=wn.nextNode();)un(Rt),ni(Rt),Rt.content instanceof h&&as(Rt.content);if(Be)return ie;if(Tt){if(lt){qe.normalize();let Mt=qe.innerHTML;Vl([X,ee,ue],(Ct=>{Mt=Du(Mt,Ct," ")})),qe.innerHTML=Mt}if(Ve)for(bt=V.call(qe.ownerDocument);qe.firstChild;)bt.appendChild(qe.firstChild);else bt=qe;return(be.shadowroot||be.shadowrootmode)&&(bt=R.call(u,bt,!0)),bt}let In=ct?qe.outerHTML:qe.innerHTML;return ct&&re["!doctype"]&&qe.ownerDocument&&qe.ownerDocument.doctype&&qe.ownerDocument.doctype.name&&kr(Pb,qe.ownerDocument.doctype.name)&&(In="<!DOCTYPE "+qe.ownerDocument.doctype.name+`>
`+In),lt&&Vl([X,ee,ue],(Mt=>{In=Du(In,Mt," ")})),O&&ye?O.createHTML(In):In},n.setConfig=function(){It(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),vt=!0},n.clearConfig=function(){Nt=null,vt=!1},n.isValidAttribute=function(ie,ze,qe){Nt||It({});const Dt=Ge(ie),Rt=Ge(ze);return Rr(Dt,Rt,qe)},n.addHook=function(ie,ze){typeof ze=="function"&&Hl(A[ie],ze)},n.removeHook=function(ie,ze){if(ze!==void 0){const qe=kI(A[ie],ze);return qe===-1?void 0:RI(A[ie],qe,1)[0]}return Cb(A[ie])},n.removeHooks=function(ie){A[ie]=[]},n.removeAllHooks=function(){A={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n})();ku.addHook("uponSanitizeAttribute",(function(s,t){if(t.attrName==="data-trix-serialized-attributes")return void(t.keepAttr=!1);/^data-trix-/.test(t.attrName)&&(t.forceKeepAttr=!0)}));const rT="style href src width height language class".split(" "),iT="javascript:".split(" "),sT="script iframe form noscript".split(" ");class Td extends ur{static setHTML(t,n,o){const u=new this(n,o).sanitize(),d=u.getHTML?u.getHTML():u.outerHTML;t.innerHTML=d}static sanitize(t,n){const o=new this(t,n);return o.sanitize(),o}constructor(t){let{allowedAttributes:n,forbiddenProtocols:o,forbiddenElements:u,purifyOptions:d}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(...arguments),this.allowedAttributes=n||rT,this.forbiddenProtocols=o||iT,this.forbiddenElements=u||sT,this.purifyOptions=d||{},this.body=oT(t)}sanitize(){this.sanitizeElements(),this.normalizeListElementNesting();const t=Object.assign({},Qy,this.purifyOptions);return ku.setConfig(t),this.body=ku.sanitize(this.body),this.body}getHTML(){return this.body.innerHTML}getBody(){return this.body}sanitizeElements(){const t=Cd(this.body),n=[];for(;t.nextNode();){const o=t.currentNode;switch(o.nodeType){case Node.ELEMENT_NODE:this.elementIsRemovable(o)?n.push(o):this.sanitizeElement(o);break;case Node.COMMENT_NODE:n.push(o)}}return n.forEach((o=>Ro(o))),this.body}sanitizeElement(t){return t.hasAttribute("href")&&this.forbiddenProtocols.includes(t.protocol)&&t.removeAttribute("href"),Array.from(t.attributes).forEach((n=>{let{name:o}=n;this.allowedAttributes.includes(o)||o.indexOf("data-trix")===0||t.removeAttribute(o)})),t}normalizeListElementNesting(){return Array.from(this.body.querySelectorAll("ul,ol")).forEach((t=>{const n=t.previousElementSibling;n&&$r(n)==="li"&&n.appendChild(t)})),this.body}elementIsRemovable(t){if((t==null?void 0:t.nodeType)===Node.ELEMENT_NODE)return this.elementIsForbidden(t)||this.elementIsntSerializable(t)}elementIsForbidden(t){return this.forbiddenElements.includes($r(t))}elementIsntSerializable(t){return t.getAttribute("data-trix-serialize")==="false"&&!_a(t)}}const oT=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";s=s.replace(/<\/html[^>]*>[^]*$/i,"</html>");const t=document.implementation.createHTMLDocument("");return t.documentElement.innerHTML=s,Array.from(t.head.querySelectorAll("style")).forEach((n=>{t.body.appendChild(n)})),t.body},{css:jo}=Fl;class ug extends La{constructor(){super(...arguments),this.attachment=this.object,this.attachment.uploadProgressDelegate=this,this.attachmentPiece=this.options.piece}createContentNodes(){return[]}createNodes(){let t;const n=t=Jt({tagName:"figure",className:this.getClassName(),data:this.getData(),editable:!1}),o=this.getHref();return o&&(t=Jt({tagName:"a",editable:!1,attributes:{href:o,tabindex:-1}}),n.appendChild(t)),this.attachment.hasContent()?Td.setHTML(t,this.attachment.getContent()):this.createContentNodes().forEach((u=>{t.appendChild(u)})),t.appendChild(this.createCaptionElement()),this.attachment.isPending()&&(this.progressElement=Jt({tagName:"progress",attributes:{class:jo.attachmentProgress,value:this.attachment.getUploadProgress(),max:100},data:{trixMutable:!0,trixStoreKey:["progressElement",this.attachment.id].join("/")}}),n.appendChild(this.progressElement)),[Mb("left"),n,Mb("right")]}createCaptionElement(){const t=Jt({tagName:"figcaption",className:jo.attachmentCaption}),n=this.attachmentPiece.getCaption();if(n)t.classList.add("".concat(jo.attachmentCaption,"--edited")),t.textContent=n;else{let o,u;const d=this.getCaptionConfig();if(d.name&&(o=this.attachment.getFilename()),d.size&&(u=this.attachment.getFormattedFilesize()),o){const h=Jt({tagName:"span",className:jo.attachmentName,textContent:o});t.appendChild(h)}if(u){o&&t.appendChild(document.createTextNode(" "));const h=Jt({tagName:"span",className:jo.attachmentSize,textContent:u});t.appendChild(h)}}return t}getClassName(){const t=[jo.attachment,"".concat(jo.attachment,"--").concat(this.attachment.getType())],n=this.attachment.getExtension();return n&&t.push("".concat(jo.attachment,"--").concat(n)),t.join(" ")}getData(){const t={trixAttachment:JSON.stringify(this.attachment),trixContentType:this.attachment.getContentType(),trixId:this.attachment.id},{attributes:n}=this.attachmentPiece;return n.isEmpty()||(t.trixAttributes=JSON.stringify(n)),this.attachment.isPending()&&(t.trixSerialize=!1),t}getHref(){if(!aT(this.attachment.getContent(),"a")){const t=this.attachment.getHref();if(t&&ku.isValidAttribute("a","href",t))return t}}getCaptionConfig(){var t;const n=this.attachment.getType(),o=db((t=I1[n])===null||t===void 0?void 0:t.caption);return n==="file"&&(o.name=!0),o}findProgressElement(){var t;return(t=this.findElement())===null||t===void 0?void 0:t.querySelector("progress")}attachmentDidChangeUploadProgress(){const t=this.attachment.getUploadProgress(),n=this.findProgressElement();n&&(n.value=t)}}const Mb=s=>Jt({tagName:"span",textContent:xd,data:{trixCursorTarget:s,trixSerialize:!1}}),aT=function(s,t){const n=Jt("div");return Td.setHTML(n,s||""),n.querySelector(t)};class kb extends ug{constructor(){super(...arguments),this.attachment.previewDelegate=this}createContentNodes(){return this.image=Jt({tagName:"img",attributes:{src:""},data:{trixMutable:!0}}),this.refresh(this.image),[this.image]}createCaptionElement(){const t=super.createCaptionElement(...arguments);return t.textContent||t.setAttribute("data-trix-placeholder",Ft.captionPlaceholder),t}refresh(t){var n;if(t||(t=(n=this.findElement())===null||n===void 0?void 0:n.querySelector("img")),t)return this.updateAttributesForImage(t)}updateAttributesForImage(t){const n=this.attachment.getURL(),o=this.attachment.getPreviewURL();if(t.src=o||n,o===n)t.removeAttribute("data-trix-serialized-attributes");else{const v=JSON.stringify({src:n});t.setAttribute("data-trix-serialized-attributes",v)}const u=this.attachment.getWidth(),d=this.attachment.getHeight(),h=this.attachment.getAttribute("alt");u!=null&&(t.width=u),d!=null&&(t.height=d),h!=null&&(t.alt=h);const f=["imageElement",this.attachment.id,t.src,t.width,t.height].join("/");t.dataset.trixStoreKey=f}attachmentDidChangeAttributes(){return this.refresh(this.image),this.refresh()}}class Rb extends La{constructor(){super(...arguments),this.piece=this.object,this.attributes=this.piece.getAttributes(),this.textConfig=this.options.textConfig,this.context=this.options.context,this.piece.attachment?this.attachment=this.piece.attachment:this.string=this.piece.toString()}createNodes(){let t=this.attachment?this.createAttachmentNodes():this.createStringNodes();const n=this.createElement();if(n){const o=(function(u){for(;(d=u)!==null&&d!==void 0&&d.firstElementChild;){var d;u=u.firstElementChild}return u})(n);Array.from(t).forEach((u=>{o.appendChild(u)})),t=[n]}return t}createAttachmentNodes(){const t=this.attachment.isPreviewable()?kb:ug;return this.createChildView(t,this.piece.attachment,{piece:this.piece}).getNodes()}createStringNodes(){var t;if((t=this.textConfig)!==null&&t!==void 0&&t.plaintext)return[document.createTextNode(this.string)];{const n=[],o=this.string.split(`
`);for(let u=0;u<o.length;u++){const d=o[u];if(u>0){const h=Jt("br");n.push(h)}if(d.length){const h=document.createTextNode(this.preserveSpaces(d));n.push(h)}}return n}}createElement(){let t,n,o;const u={};for(n in this.attributes){o=this.attributes[n];const h=X1(n);if(h){if(h.tagName){var d;const f=Jt(h.tagName);d?(d.appendChild(f),d=f):t=d=f}if(h.styleProperty&&(u[h.styleProperty]=o),h.style)for(n in h.style)o=h.style[n],u[n]=o}}if(Object.keys(u).length)for(n in t||(t=Jt("span")),u)o=u[n],t.style[n]=o;return t}createContainerElement(){for(const t in this.attributes){const n=this.attributes[t],o=X1(t);if(o&&o.groupTagName){const u={};return u[t]=n,Jt(o.groupTagName,u)}}}preserveSpaces(t){return this.context.isLast&&(t=t.replace(/\ $/,Mo)),t=t.replace(/(\S)\ {3}(\S)/g,"$1 ".concat(Mo," $2")).replace(/\ {2}/g,"".concat(Mo," ")).replace(/\ {2}/g," ".concat(Mo)),(this.context.isFirst||this.context.followsWhitespace)&&(t=t.replace(/^\ /,Mo)),t}}class jb extends La{constructor(){super(...arguments),this.text=this.object,this.textConfig=this.options.textConfig}createNodes(){const t=[],n=eg.groupObjects(this.getPieces()),o=n.length-1;for(let d=0;d<n.length;d++){const h=n[d],f={};d===0&&(f.isFirst=!0),d===o&&(f.isLast=!0),uT(u)&&(f.followsWhitespace=!0);const v=this.findOrCreateCachedChildView(Rb,h,{textConfig:this.textConfig,context:f});t.push(...Array.from(v.getNodes()||[]));var u=h}return t}getPieces(){return Array.from(this.text.getPieces()).filter((t=>!t.hasAttribute("blockBreak")))}}const uT=s=>/\s$/.test(s==null?void 0:s.toString()),{css:Fb}=Fl;class Bb extends La{constructor(){super(...arguments),this.block=this.object,this.attributes=this.block.getAttributes()}createNodes(){const t=[document.createComment("block")];if(this.block.isEmpty())t.push(Jt("br"));else{var n;const o=(n=er(this.block.getLastAttribute()))===null||n===void 0?void 0:n.text,u=this.findOrCreateCachedChildView(jb,this.block.text,{textConfig:o});t.push(...Array.from(u.getNodes()||[])),this.shouldAddExtraNewlineElement()&&t.push(Jt("br"))}if(this.attributes.length)return t;{let o;const{tagName:u}=Qr.default;this.block.isRTL()&&(o={dir:"rtl"});const d=Jt({tagName:u,attributes:o});return t.forEach((h=>d.appendChild(h))),[d]}}createContainerElement(t){const n={};let o;const u=this.attributes[t],{tagName:d,htmlAttributes:h=[]}=er(u);if(t===0&&this.block.isRTL()&&Object.assign(n,{dir:"rtl"}),u==="attachmentGallery"){const f=this.block.getBlockBreakPosition();o="".concat(Fb.attachmentGallery," ").concat(Fb.attachmentGallery,"--").concat(f)}return Object.entries(this.block.htmlAttributes).forEach((f=>{let[v,p]=f;h.includes(v)&&(n[v]=p)})),Jt({tagName:d,className:o,attributes:n})}shouldAddExtraNewlineElement(){return/\n\n$/.test(this.block.toString())}}class Ad extends La{static render(t){const n=Jt("div"),o=new this(t,{element:n});return o.render(),o.sync(),n}constructor(){super(...arguments),this.element=this.options.element,this.elementStore=new TI,this.setDocument(this.object)}setDocument(t){t.isEqualTo(this.document)||(this.document=this.object=t)}render(){if(this.childViews=[],this.shadowElement=Jt("div"),!this.document.isEmpty()){const t=eg.groupObjects(this.document.getBlocks(),{asTree:!0});Array.from(t).forEach((n=>{const o=this.findOrCreateCachedChildView(Bb,n);Array.from(o.getNodes()).map((u=>this.shadowElement.appendChild(u)))}))}}isSynced(){return lT(this.shadowElement,this.element)}sync(){const t=tb("trix-before-render",{cancelable:!1,attributes:{render:(o,u)=>{for(;o.lastChild;)o.removeChild(o.lastChild);o.appendChild(u)}}});this.element.dispatchEvent(t);const n=this.createDocumentFragmentForSync();return t.render(this.element,n),this.didSync()}didSync(){return this.elementStore.reset(qb(this.element)),Y1((()=>this.garbageCollectCachedViews()))}createDocumentFragmentForSync(){const t=document.createDocumentFragment();return Array.from(this.shadowElement.childNodes).forEach((n=>{t.appendChild(n.cloneNode(!0))})),Array.from(qb(t)).forEach((n=>{const o=this.elementStore.remove(n);o&&n.parentNode.replaceChild(o,n)})),t}}const qb=s=>s.querySelectorAll("[data-trix-store-key]"),lT=(s,t)=>zb(s.innerHTML)===zb(t.innerHTML),zb=s=>s.replace(/&nbsp;/g," ");function cT(s){var t=(function(n,o){if(typeof n!="object"||!n)return n;var u=n[Symbol.toPrimitive];if(u!==void 0){var d=u.call(n,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(n)})(s,"string");return typeof t=="symbol"?t:String(t)}function Ur(s,t,n){return(t=cT(t))in s?Object.defineProperty(s,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):s[t]=n,s}function an(s,t){return dT(s,Ub(s,t,"get"))}function Wl(s,t,n){return hT(s,Ub(s,t,"set"),n),n}function Ub(s,t,n){if(!t.has(s))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(s)}function dT(s,t){return t.get?t.get.call(s):t.value}function hT(s,t,n){if(t.set)t.set.call(s,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function Pd(s,t,n){if(!t.has(s))throw new TypeError("attempted to get private field on non-instance");return n}function Vb(s,t){if(t.has(s))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ru(s,t,n){Vb(s,t),t.set(s,n)}class Na extends wa{static registerType(t,n){n.type=t,this.types[t]=n}static fromJSON(t){const n=this.types[t.type];if(n)return n.fromJSON(t)}constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(...arguments),this.attributes=Oi.box(n)}copyWithAttributes(t){return new this.constructor(this.getValue(),t)}copyWithAdditionalAttributes(t){return this.copyWithAttributes(this.attributes.merge(t))}copyWithoutAttribute(t){return this.copyWithAttributes(this.attributes.remove(t))}copy(){return this.copyWithAttributes(this.attributes)}getAttribute(t){return this.attributes.get(t)}getAttributesHash(){return this.attributes}getAttributes(){return this.attributes.toObject()}hasAttribute(t){return this.attributes.has(t)}hasSameStringValueAsPiece(t){return t&&this.toString()===t.toString()}hasSameAttributesAsPiece(t){return t&&(this.attributes===t.attributes||this.attributes.isEqualTo(t.attributes))}isBlockBreak(){return!1}isEqualTo(t){return super.isEqualTo(...arguments)||this.hasSameConstructorAs(t)&&this.hasSameStringValueAsPiece(t)&&this.hasSameAttributesAsPiece(t)}isEmpty(){return this.length===0}isSerializable(){return!0}toJSON(){return{type:this.constructor.type,attributes:this.getAttributes()}}contentsForInspection(){return{type:this.constructor.type,attributes:this.attributes.inspect()}}canBeGrouped(){return this.hasAttribute("href")}canBeGroupedWith(t){return this.getAttribute("href")===t.getAttribute("href")}getLength(){return this.length}canBeConsolidatedWith(t){return!1}}Ur(Na,"types",{});class Hb extends Od{constructor(t){super(...arguments),this.url=t}perform(t){const n=new Image;n.onload=()=>(n.width=this.width=n.naturalWidth,n.height=this.height=n.naturalHeight,t(!0,n)),n.onerror=()=>t(!1),n.src=this.url}}class ju extends wa{static attachmentForFile(t){const n=new this(this.attributesForFile(t));return n.setFile(t),n}static attributesForFile(t){return new Oi({filename:t.name,filesize:t.size,contentType:t.type})}static fromJSON(t){return new this(t)}constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(t),this.releaseFile=this.releaseFile.bind(this),this.attributes=Oi.box(t),this.didChangeAttributes()}setAttribute(t,n){this.setAttributes({[t]:n})}getAttribute(t){return this.attributes.get(t)}hasAttribute(t){return this.attributes.has(t)}getAttributes(){return this.attributes.toObject()}setAttributes(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=this.attributes.merge(t);var o,u,d,h;if(!this.attributes.isEqualTo(n))return this.attributes=n,this.didChangeAttributes(),(o=this.previewDelegate)===null||o===void 0||(u=o.attachmentDidChangeAttributes)===null||u===void 0||u.call(o,this),(d=this.delegate)===null||d===void 0||(h=d.attachmentDidChangeAttributes)===null||h===void 0?void 0:h.call(d,this)}didChangeAttributes(){if(this.isPreviewable())return this.preloadURL()}isPending(){return this.file!=null&&!(this.getURL()||this.getHref())}isPreviewable(){return this.attributes.has("previewable")?this.attributes.get("previewable"):ju.previewablePattern.test(this.getContentType())}getType(){return this.hasContent()?"content":this.isPreviewable()?"preview":"file"}getURL(){return this.attributes.get("url")}getHref(){return this.attributes.get("href")}getFilename(){return this.attributes.get("filename")||""}getFilesize(){return this.attributes.get("filesize")}getFormattedFilesize(){const t=this.attributes.get("filesize");return typeof t=="number"?$y.formatter(t):""}getExtension(){var t;return(t=this.getFilename().match(/\.(\w+)$/))===null||t===void 0?void 0:t[1].toLowerCase()}getContentType(){return this.attributes.get("contentType")}hasContent(){return this.attributes.has("content")}getContent(){return this.attributes.get("content")}getWidth(){return this.attributes.get("width")}getHeight(){return this.attributes.get("height")}getFile(){return this.file}setFile(t){if(this.file=t,this.isPreviewable())return this.preloadFile()}releaseFile(){this.releasePreloadedFile(),this.file=null}getUploadProgress(){return this.uploadProgress!=null?this.uploadProgress:0}setUploadProgress(t){var n,o;if(this.uploadProgress!==t)return this.uploadProgress=t,(n=this.uploadProgressDelegate)===null||n===void 0||(o=n.attachmentDidChangeUploadProgress)===null||o===void 0?void 0:o.call(n,this)}toJSON(){return this.getAttributes()}getCacheKey(){return[super.getCacheKey(...arguments),this.attributes.getCacheKey(),this.getPreviewURL()].join("/")}getPreviewURL(){return this.previewURL||this.preloadingURL}setPreviewURL(t){var n,o,u,d;if(t!==this.getPreviewURL())return this.previewURL=t,(n=this.previewDelegate)===null||n===void 0||(o=n.attachmentDidChangeAttributes)===null||o===void 0||o.call(n,this),(u=this.delegate)===null||u===void 0||(d=u.attachmentDidChangePreviewURL)===null||d===void 0?void 0:d.call(u,this)}preloadURL(){return this.preload(this.getURL(),this.releaseFile)}preloadFile(){if(this.file)return this.fileObjectURL=URL.createObjectURL(this.file),this.preload(this.fileObjectURL)}releasePreloadedFile(){this.fileObjectURL&&(URL.revokeObjectURL(this.fileObjectURL),this.fileObjectURL=null)}preload(t,n){if(t&&t!==this.getPreviewURL())return this.preloadingURL=t,new Hb(t).then((o=>{let{width:u,height:d}=o;return this.getWidth()&&this.getHeight()||this.setAttributes({width:u,height:d}),this.preloadingURL=null,this.setPreviewURL(t),n==null?void 0:n()})).catch((()=>(this.preloadingURL=null,n==null?void 0:n())))}}Ur(ju,"previewablePattern",/^image(\/(gif|png|webp|jpe?g)|$)/);class Fu extends Na{static fromJSON(t){return new this(ju.fromJSON(t.attachment),t.attributes)}constructor(t){super(...arguments),this.attachment=t,this.length=1,this.ensureAttachmentExclusivelyHasAttribute("href"),this.attachment.hasContent()||this.removeProhibitedAttributes()}ensureAttachmentExclusivelyHasAttribute(t){this.hasAttribute(t)&&(this.attachment.hasAttribute(t)||this.attachment.setAttributes(this.attributes.slice([t])),this.attributes=this.attributes.remove(t))}removeProhibitedAttributes(){const t=this.attributes.slice(Fu.permittedAttributes);t.isEqualTo(this.attributes)||(this.attributes=t)}getValue(){return this.attachment}isSerializable(){return!this.attachment.isPending()}getCaption(){return this.attributes.get("caption")||""}isEqualTo(t){var n;return super.isEqualTo(t)&&this.attachment.id===(t==null||(n=t.attachment)===null||n===void 0?void 0:n.id)}toString(){return"￼"}toJSON(){const t=super.toJSON(...arguments);return t.attachment=this.attachment,t}getCacheKey(){return[super.getCacheKey(...arguments),this.attachment.getCacheKey()].join("/")}toConsole(){return JSON.stringify(this.toString())}}Ur(Fu,"permittedAttributes",["caption","presentation"]),Na.registerType("attachment",Fu);class lg extends Na{static fromJSON(t){const n={...t.attributes};return n.href&&!ku.isValidAttribute("a","href",n.href)&&delete n.href,new this(t.string,n)}constructor(t){super(...arguments),this.string=(n=>n.replace(/\r\n?/g,`
`))(t),this.length=this.string.length}getValue(){return this.string}toString(){return this.string.toString()}isBlockBreak(){return this.toString()===`
`&&this.getAttribute("blockBreak")===!0}toJSON(){const t=super.toJSON(...arguments);return t.string=this.string,t}canBeConsolidatedWith(t){return t&&this.hasSameConstructorAs(t)&&this.hasSameAttributesAsPiece(t)}consolidateWith(t){return new this.constructor(this.toString()+t.toString(),this.attributes)}splitAtOffset(t){let n,o;return t===0?(n=null,o=this):t===this.length?(n=this,o=null):(n=new this.constructor(this.string.slice(0,t),this.attributes),o=new this.constructor(this.string.slice(t),this.attributes)),[n,o]}toConsole(){let{string:t}=this;return t.length>15&&(t=t.slice(0,14)+"…"),JSON.stringify(t.toString())}}Na.registerType("string",lg);class Dd extends wa{static box(t){return t instanceof this?t:new this(t)}constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];super(...arguments),this.objects=t.slice(0),this.length=this.objects.length}indexOf(t){return this.objects.indexOf(t)}splice(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return new this.constructor(V1(this.objects,...n))}eachObject(t){return this.objects.map(((n,o)=>t(n,o)))}insertObjectAtIndex(t,n){return this.splice(n,0,t)}insertSplittableListAtIndex(t,n){return this.splice(n,0,...t.objects)}insertSplittableListAtPosition(t,n){const[o,u]=this.splitObjectAtPosition(n);return new this.constructor(o).insertSplittableListAtIndex(t,u)}editObjectAtIndex(t,n){return this.replaceObjectAtIndex(n(this.objects[t]),t)}replaceObjectAtIndex(t,n){return this.splice(n,1,t)}removeObjectAtIndex(t){return this.splice(t,1)}getObjectAtIndex(t){return this.objects[t]}getSplittableListInRange(t){const[n,o,u]=this.splitObjectsAtRange(t);return new this.constructor(n.slice(o,u+1))}selectSplittableList(t){const n=this.objects.filter((o=>t(o)));return new this.constructor(n)}removeObjectsInRange(t){const[n,o,u]=this.splitObjectsAtRange(t);return new this.constructor(n).splice(o,u-o+1)}transformObjectsInRange(t,n){const[o,u,d]=this.splitObjectsAtRange(t),h=o.map(((f,v)=>u<=v&&v<=d?n(f):f));return new this.constructor(h)}splitObjectsAtRange(t){let n,[o,u,d]=this.splitObjectAtPosition(gT(t));return[o,n]=new this.constructor(o).splitObjectAtPosition(mT(t)+d),[o,u,n-1]}getObjectAtPosition(t){const{index:n}=this.findIndexAndOffsetAtPosition(t);return this.objects[n]}splitObjectAtPosition(t){let n,o;const{index:u,offset:d}=this.findIndexAndOffsetAtPosition(t),h=this.objects.slice(0);if(u!=null)if(d===0)n=u,o=0;else{const f=this.getObjectAtIndex(u),[v,p]=f.splitAtOffset(d);h.splice(u,1,v,p),n=u+1,o=v.getLength()-d}else n=h.length,o=0;return[h,n,o]}consolidate(){const t=[];let n=this.objects[0];return this.objects.slice(1).forEach((o=>{var u,d;(u=(d=n).canBeConsolidatedWith)!==null&&u!==void 0&&u.call(d,o)?n=n.consolidateWith(o):(t.push(n),n=o)})),n&&t.push(n),new this.constructor(t)}consolidateFromIndexToIndex(t,n){const o=this.objects.slice(0).slice(t,n+1),u=new this.constructor(o).consolidate().toArray();return this.splice(t,o.length,...u)}findIndexAndOffsetAtPosition(t){let n,o=0;for(n=0;n<this.objects.length;n++){const u=o+this.objects[n].getLength();if(o<=t&&t<u)return{index:n,offset:t-o};o=u}return{index:null,offset:null}}findPositionAtIndexAndOffset(t,n){let o=0;for(let u=0;u<this.objects.length;u++){const d=this.objects[u];if(u<t)o+=d.getLength();else if(u===t){o+=n;break}}return o}getEndPosition(){return this.endPosition==null&&(this.endPosition=0,this.objects.forEach((t=>this.endPosition+=t.getLength()))),this.endPosition}toString(){return this.objects.join("")}toArray(){return this.objects.slice(0)}toJSON(){return this.toArray()}isEqualTo(t){return super.isEqualTo(...arguments)||fT(this.objects,t==null?void 0:t.objects)}contentsForInspection(){return{objects:"[".concat(this.objects.map((t=>t.inspect())).join(", "),"]")}}}const fT=function(s){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(s.length!==t.length)return!1;let n=!0;for(let o=0;o<s.length;o++){const u=s[o];n&&!u.isEqualTo(t[o])&&(n=!1)}return n},gT=s=>s[0],mT=s=>s[1];class ss extends wa{static textForAttachmentWithAttributes(t,n){return new this([new Fu(t,n)])}static textForStringWithAttributes(t,n){return new this([new lg(t,n)])}static fromJSON(t){return new this(Array.from(t).map((n=>Na.fromJSON(n))))}constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];super(...arguments);const n=t.filter((o=>!o.isEmpty()));this.pieceList=new Dd(n)}copy(){return this.copyWithPieceList(this.pieceList)}copyWithPieceList(t){return new this.constructor(t.consolidate().toArray())}copyUsingObjectMap(t){const n=this.getPieces().map((o=>t.find(o)||o));return new this.constructor(n)}appendText(t){return this.insertTextAtPosition(t,this.getLength())}insertTextAtPosition(t,n){return this.copyWithPieceList(this.pieceList.insertSplittableListAtPosition(t.pieceList,n))}removeTextAtRange(t){return this.copyWithPieceList(this.pieceList.removeObjectsInRange(t))}replaceTextAtRange(t,n){return this.removeTextAtRange(n).insertTextAtPosition(t,n[0])}moveTextFromRangeToPosition(t,n){if(t[0]<=n&&n<=t[1])return;const o=this.getTextAtRange(t),u=o.getLength();return t[0]<n&&(n-=u),this.removeTextAtRange(t).insertTextAtPosition(o,n)}addAttributeAtRange(t,n,o){const u={};return u[t]=n,this.addAttributesAtRange(u,o)}addAttributesAtRange(t,n){return this.copyWithPieceList(this.pieceList.transformObjectsInRange(n,(o=>o.copyWithAdditionalAttributes(t))))}removeAttributeAtRange(t,n){return this.copyWithPieceList(this.pieceList.transformObjectsInRange(n,(o=>o.copyWithoutAttribute(t))))}setAttributesAtRange(t,n){return this.copyWithPieceList(this.pieceList.transformObjectsInRange(n,(o=>o.copyWithAttributes(t))))}getAttributesAtPosition(t){var n;return((n=this.pieceList.getObjectAtPosition(t))===null||n===void 0?void 0:n.getAttributes())||{}}getCommonAttributes(){const t=Array.from(this.pieceList.toArray()).map((n=>n.getAttributes()));return Oi.fromCommonAttributesOfObjects(t).toObject()}getCommonAttributesAtRange(t){return this.getTextAtRange(t).getCommonAttributes()||{}}getExpandedRangeForAttributeAtOffset(t,n){let o,u=o=n;const d=this.getLength();for(;u>0&&this.getCommonAttributesAtRange([u-1,o])[t];)u--;for(;o<d&&this.getCommonAttributesAtRange([n,o+1])[t];)o++;return[u,o]}getTextAtRange(t){return this.copyWithPieceList(this.pieceList.getSplittableListInRange(t))}getStringAtRange(t){return this.pieceList.getSplittableListInRange(t).toString()}getStringAtPosition(t){return this.getStringAtRange([t,t+1])}startsWithString(t){return this.getStringAtRange([0,t.length])===t}endsWithString(t){const n=this.getLength();return this.getStringAtRange([n-t.length,n])===t}getAttachmentPieces(){return this.pieceList.toArray().filter((t=>!!t.attachment))}getAttachments(){return this.getAttachmentPieces().map((t=>t.attachment))}getAttachmentAndPositionById(t){let n=0;for(const u of this.pieceList.toArray()){var o;if(((o=u.attachment)===null||o===void 0?void 0:o.id)===t)return{attachment:u.attachment,position:n};n+=u.length}return{attachment:null,position:null}}getAttachmentById(t){const{attachment:n}=this.getAttachmentAndPositionById(t);return n}getRangeOfAttachment(t){const n=this.getAttachmentAndPositionById(t.id),o=n.position;if(t=n.attachment)return[o,o+1]}updateAttributesForAttachment(t,n){const o=this.getRangeOfAttachment(n);return o?this.addAttributesAtRange(t,o):this}getLength(){return this.pieceList.getEndPosition()}isEmpty(){return this.getLength()===0}isEqualTo(t){var n;return super.isEqualTo(t)||(t==null||(n=t.pieceList)===null||n===void 0?void 0:n.isEqualTo(this.pieceList))}isBlockBreak(){return this.getLength()===1&&this.pieceList.getObjectAtIndex(0).isBlockBreak()}eachPiece(t){return this.pieceList.eachObject(t)}getPieces(){return this.pieceList.toArray()}getPieceAtPosition(t){return this.pieceList.getObjectAtPosition(t)}contentsForInspection(){return{pieceList:this.pieceList.inspect()}}toSerializableText(){const t=this.pieceList.selectSplittableList((n=>n.isSerializable()));return this.copyWithPieceList(t)}toString(){return this.pieceList.toString()}toJSON(){return this.pieceList.toJSON()}toConsole(){return JSON.stringify(this.pieceList.toArray().map((t=>JSON.parse(t.toConsole()))))}getDirection(){return xI(this.toString())}isRTL(){return this.getDirection()==="rtl"}}class As extends wa{static fromJSON(t){return new this(ss.fromJSON(t.text),t.attributes,t.htmlAttributes)}constructor(t,n,o){super(...arguments),this.text=pT(t||new ss),this.attributes=n||[],this.htmlAttributes=o||{}}isEmpty(){return this.text.isBlockBreak()}isEqualTo(t){return!!super.isEqualTo(t)||this.text.isEqualTo(t==null?void 0:t.text)&&Sa(this.attributes,t==null?void 0:t.attributes)&&Au(this.htmlAttributes,t==null?void 0:t.htmlAttributes)}copyWithText(t){return new As(t,this.attributes,this.htmlAttributes)}copyWithoutText(){return this.copyWithText(null)}copyWithAttributes(t){return new As(this.text,t,this.htmlAttributes)}copyWithoutAttributes(){return this.copyWithAttributes(null)}copyUsingObjectMap(t){const n=t.find(this.text);return n?this.copyWithText(n):this.copyWithText(this.text.copyUsingObjectMap(t))}addAttribute(t){const n=this.attributes.concat(Wb(t));return this.copyWithAttributes(n)}addHTMLAttribute(t,n){const o=Object.assign({},this.htmlAttributes,{[t]:n});return new As(this.text,this.attributes,o)}removeAttribute(t){const{listAttribute:n}=er(t),o=Xb(Xb(this.attributes,t),n);return this.copyWithAttributes(o)}removeLastAttribute(){return this.removeAttribute(this.getLastAttribute())}getLastAttribute(){return Zb(this.attributes)}getAttributes(){return this.attributes.slice(0)}getAttributeLevel(){return this.attributes.length}getAttributeAtLevel(t){return this.attributes[t-1]}hasAttribute(t){return this.attributes.includes(t)}hasAttributes(){return this.getAttributeLevel()>0}getLastNestableAttribute(){return Zb(this.getNestableAttributes())}getNestableAttributes(){return this.attributes.filter((t=>er(t).nestable))}getNestingLevel(){return this.getNestableAttributes().length}decreaseNestingLevel(){const t=this.getLastNestableAttribute();return t?this.removeAttribute(t):this}increaseNestingLevel(){const t=this.getLastNestableAttribute();if(t){const n=this.attributes.lastIndexOf(t),o=V1(this.attributes,n+1,0,...Wb(t));return this.copyWithAttributes(o)}return this}getListItemAttributes(){return this.attributes.filter((t=>er(t).listAttribute))}isListItem(){var t;return(t=er(this.getLastAttribute()))===null||t===void 0?void 0:t.listAttribute}isTerminalBlock(){var t;return(t=er(this.getLastAttribute()))===null||t===void 0?void 0:t.terminal}breaksOnReturn(){var t;return(t=er(this.getLastAttribute()))===null||t===void 0?void 0:t.breakOnReturn}findLineBreakInDirectionFromPosition(t,n){const o=this.toString();let u;switch(t){case"forward":u=o.indexOf(`
`,n);break;case"backward":u=o.slice(0,n).lastIndexOf(`
`)}if(u!==-1)return u}contentsForInspection(){return{text:this.text.inspect(),attributes:this.attributes}}toString(){return this.text.toString()}toJSON(){return{text:this.text,attributes:this.attributes,htmlAttributes:this.htmlAttributes}}getDirection(){return this.text.getDirection()}isRTL(){return this.text.isRTL()}getLength(){return this.text.getLength()}canBeConsolidatedWith(t){return!this.hasAttributes()&&!t.hasAttributes()&&this.getDirection()===t.getDirection()}consolidateWith(t){const n=ss.textForStringWithAttributes(`
`),o=this.getTextWithoutBlockBreak().appendText(n);return this.copyWithText(o.appendText(t.text))}splitAtOffset(t){let n,o;return t===0?(n=null,o=this):t===this.getLength()?(n=this,o=null):(n=this.copyWithText(this.text.getTextAtRange([0,t])),o=this.copyWithText(this.text.getTextAtRange([t,this.getLength()]))),[n,o]}getBlockBreakPosition(){return this.text.getLength()-1}getTextWithoutBlockBreak(){return Gb(this.text)?this.text.getTextAtRange([0,this.getBlockBreakPosition()]):this.text.copy()}canBeGrouped(t){return this.attributes[t]}canBeGroupedWith(t,n){const o=t.getAttributes(),u=o[n],d=this.attributes[n];return d===u&&!(er(d).group===!1&&!(()=>{if(!Ed){Ed=[];for(const h in Qr){const{listAttribute:f}=Qr[h];f!=null&&Ed.push(f)}}return Ed})().includes(o[n+1]))&&(this.getDirection()===t.getDirection()||t.isEmpty())}}const pT=function(s){return s=vT(s),s=bT(s)},vT=function(s){let t=!1;const n=s.getPieces();let o=n.slice(0,n.length-1);const u=n[n.length-1];return u?(o=o.map((d=>d.isBlockBreak()?(t=!0,xT(d)):d)),t?new ss([...o,u]):s):s},yT=ss.textForStringWithAttributes(`
`,{blockBreak:!0}),bT=function(s){return Gb(s)?s:s.appendText(yT)},Gb=function(s){const t=s.getLength();return t===0?!1:s.getTextAtRange([t-1,t]).isBlockBreak()},xT=s=>s.copyWithoutAttribute("blockBreak"),Wb=function(s){const{listAttribute:t}=er(s);return t?[t,s]:[s]},Zb=s=>s.slice(-1)[0],Xb=function(s,t){const n=s.lastIndexOf(t);return n===-1?s:V1(s,n,1)};class Vi extends wa{static fromJSON(t){return new this(Array.from(t).map((n=>As.fromJSON(n))))}static fromString(t,n){const o=ss.textForStringWithAttributes(t,n);return new this([new As(o)])}constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];super(...arguments),t.length===0&&(t=[new As]),this.blockList=Dd.box(t)}isEmpty(){const t=this.getBlockAtIndex(0);return this.blockList.length===1&&t.isEmpty()&&!t.hasAttributes()}copy(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).consolidateBlocks?this.blockList.consolidate().toArray():this.blockList.toArray();return new this.constructor(t)}copyUsingObjectsFromDocument(t){const n=new II(t.getObjects());return this.copyUsingObjectMap(n)}copyUsingObjectMap(t){const n=this.getBlocks().map((o=>t.find(o)||o.copyUsingObjectMap(t)));return new this.constructor(n)}copyWithBaseBlockAttributes(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const n=this.getBlocks().map((o=>{const u=t.concat(o.getAttributes());return o.copyWithAttributes(u)}));return new this.constructor(n)}replaceBlock(t,n){const o=this.blockList.indexOf(t);return o===-1?this:new this.constructor(this.blockList.replaceObjectAtIndex(n,o))}insertDocumentAtRange(t,n){const{blockList:o}=t;n=_n(n);let[u]=n;const{index:d,offset:h}=this.locationFromPosition(u);let f=this;const v=this.getBlockAtPosition(u);return oo(n)&&v.isEmpty()&&!v.hasAttributes()?f=new this.constructor(f.blockList.removeObjectAtIndex(d)):v.getBlockBreakPosition()===h&&u++,f=f.removeTextAtRange(n),new this.constructor(f.blockList.insertSplittableListAtPosition(o,u))}mergeDocumentAtRange(t,n){let o,u;n=_n(n);const[d]=n,h=this.locationFromPosition(d),f=this.getBlockAtIndex(h.index).getAttributes(),v=t.getBaseBlockAttributes(),p=f.slice(-v.length);if(Sa(v,p)){const _=f.slice(0,-v.length);o=t.copyWithBaseBlockAttributes(_)}else o=t.copy({consolidateBlocks:!0}).copyWithBaseBlockAttributes(f);const y=o.getBlockCount(),x=o.getBlockAtIndex(0);if(Sa(f,x.getAttributes())){const _=x.getTextWithoutBlockBreak();if(u=this.insertTextAtRange(_,n),y>1){o=new this.constructor(o.getBlocks().slice(1));const S=d+_.getLength();u=u.insertDocumentAtRange(o,S)}}else u=this.insertDocumentAtRange(o,n);return u}insertTextAtRange(t,n){n=_n(n);const[o]=n,{index:u,offset:d}=this.locationFromPosition(o),h=this.removeTextAtRange(n);return new this.constructor(h.blockList.editObjectAtIndex(u,(f=>f.copyWithText(f.text.insertTextAtPosition(t,d)))))}removeTextAtRange(t){let n;t=_n(t);const[o,u]=t;if(oo(t))return this;const[d,h]=Array.from(this.locationRangeFromRange(t)),f=d.index,v=d.offset,p=this.getBlockAtIndex(f),y=h.index,x=h.offset,_=this.getBlockAtIndex(y);if(u-o==1&&p.getBlockBreakPosition()===v&&_.getBlockBreakPosition()!==x&&_.text.getStringAtPosition(x)===`
`)n=this.blockList.editObjectAtIndex(y,(S=>S.copyWithText(S.text.removeTextAtRange([x,x+1]))));else{let S;const N=p.text.getTextAtRange([0,v]),w=_.text.getTextAtRange([x,_.getLength()]),j=N.appendText(w);S=f!==y&&v===0&&p.getAttributeLevel()>=_.getAttributeLevel()?_.copyWithText(j):p.copyWithText(j);const U=y+1-f;n=this.blockList.splice(f,U,S)}return new this.constructor(n)}moveTextFromRangeToPosition(t,n){let o;t=_n(t);const[u,d]=t;if(u<=n&&n<=d)return this;let h=this.getDocumentAtRange(t),f=this.removeTextAtRange(t);const v=u<n;v&&(n-=h.getLength());const[p,...y]=h.getBlocks();return y.length===0?(o=p.getTextWithoutBlockBreak(),v&&(n+=1)):o=p.text,f=f.insertTextAtRange(o,n),y.length===0?f:(h=new this.constructor(y),n+=o.getLength(),f.insertDocumentAtRange(h,n))}addAttributeAtRange(t,n,o){let{blockList:u}=this;return this.eachBlockAtRange(o,((d,h,f)=>u=u.editObjectAtIndex(f,(function(){return er(t)?d.addAttribute(t,n):h[0]===h[1]?d:d.copyWithText(d.text.addAttributeAtRange(t,n,h))})))),new this.constructor(u)}addAttribute(t,n){let{blockList:o}=this;return this.eachBlock(((u,d)=>o=o.editObjectAtIndex(d,(()=>u.addAttribute(t,n))))),new this.constructor(o)}removeAttributeAtRange(t,n){let{blockList:o}=this;return this.eachBlockAtRange(n,(function(u,d,h){er(t)?o=o.editObjectAtIndex(h,(()=>u.removeAttribute(t))):d[0]!==d[1]&&(o=o.editObjectAtIndex(h,(()=>u.copyWithText(u.text.removeAttributeAtRange(t,d)))))})),new this.constructor(o)}updateAttributesForAttachment(t,n){const o=this.getRangeOfAttachment(n),[u]=Array.from(o),{index:d}=this.locationFromPosition(u),h=this.getTextAtIndex(d);return new this.constructor(this.blockList.editObjectAtIndex(d,(f=>f.copyWithText(h.updateAttributesForAttachment(t,n)))))}removeAttributeForAttachment(t,n){const o=this.getRangeOfAttachment(n);return this.removeAttributeAtRange(t,o)}setHTMLAttributeAtPosition(t,n,o){const u=this.getBlockAtPosition(t),d=u.addHTMLAttribute(n,o);return this.replaceBlock(u,d)}insertBlockBreakAtRange(t){let n;t=_n(t);const[o]=t,{offset:u}=this.locationFromPosition(o),d=this.removeTextAtRange(t);return u===0&&(n=[new As]),new this.constructor(d.blockList.insertSplittableListAtPosition(new Dd(n),o))}applyBlockAttributeAtRange(t,n,o){const u=this.expandRangeToLineBreaksAndSplitBlocks(o);let d=u.document;o=u.range;const h=er(t);if(h.listAttribute){d=d.removeLastListAttributeAtRange(o,{exceptAttributeName:t});const f=d.convertLineBreaksToBlockBreaksInRange(o);d=f.document,o=f.range}else d=h.exclusive?d.removeBlockAttributesAtRange(o):h.terminal?d.removeLastTerminalAttributeAtRange(o):d.consolidateBlocksAtRange(o);return d.addAttributeAtRange(t,n,o)}removeLastListAttributeAtRange(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{blockList:o}=this;return this.eachBlockAtRange(t,(function(u,d,h){const f=u.getLastAttribute();f&&er(f).listAttribute&&f!==n.exceptAttributeName&&(o=o.editObjectAtIndex(h,(()=>u.removeAttribute(f))))})),new this.constructor(o)}removeLastTerminalAttributeAtRange(t){let{blockList:n}=this;return this.eachBlockAtRange(t,(function(o,u,d){const h=o.getLastAttribute();h&&er(h).terminal&&(n=n.editObjectAtIndex(d,(()=>o.removeAttribute(h))))})),new this.constructor(n)}removeBlockAttributesAtRange(t){let{blockList:n}=this;return this.eachBlockAtRange(t,(function(o,u,d){o.hasAttributes()&&(n=n.editObjectAtIndex(d,(()=>o.copyWithoutAttributes())))})),new this.constructor(n)}expandRangeToLineBreaksAndSplitBlocks(t){let n;t=_n(t);let[o,u]=t;const d=this.locationFromPosition(o),h=this.locationFromPosition(u);let f=this;const v=f.getBlockAtIndex(d.index);if(d.offset=v.findLineBreakInDirectionFromPosition("backward",d.offset),d.offset!=null&&(n=f.positionFromLocation(d),f=f.insertBlockBreakAtRange([n,n+1]),h.index+=1,h.offset-=f.getBlockAtIndex(d.index).getLength(),d.index+=1),d.offset=0,h.offset===0&&h.index>d.index)h.index-=1,h.offset=f.getBlockAtIndex(h.index).getBlockBreakPosition();else{const p=f.getBlockAtIndex(h.index);p.text.getStringAtRange([h.offset-1,h.offset])===`
`?h.offset-=1:h.offset=p.findLineBreakInDirectionFromPosition("forward",h.offset),h.offset!==p.getBlockBreakPosition()&&(n=f.positionFromLocation(h),f=f.insertBlockBreakAtRange([n,n+1]))}return o=f.positionFromLocation(d),u=f.positionFromLocation(h),{document:f,range:t=_n([o,u])}}convertLineBreaksToBlockBreaksInRange(t){t=_n(t);let[n]=t;const o=this.getStringAtRange(t).slice(0,-1);let u=this;return o.replace(/.*?\n/g,(function(d){n+=d.length,u=u.insertBlockBreakAtRange([n-1,n])})),{document:u,range:t}}consolidateBlocksAtRange(t){t=_n(t);const[n,o]=t,u=this.locationFromPosition(n).index,d=this.locationFromPosition(o).index;return new this.constructor(this.blockList.consolidateFromIndexToIndex(u,d))}getDocumentAtRange(t){t=_n(t);const n=this.blockList.getSplittableListInRange(t).toArray();return new this.constructor(n)}getStringAtRange(t){let n;const o=t=_n(t);return o[o.length-1]!==this.getLength()&&(n=-1),this.getDocumentAtRange(t).toString().slice(0,n)}getBlockAtIndex(t){return this.blockList.getObjectAtIndex(t)}getBlockAtPosition(t){const{index:n}=this.locationFromPosition(t);return this.getBlockAtIndex(n)}getTextAtIndex(t){var n;return(n=this.getBlockAtIndex(t))===null||n===void 0?void 0:n.text}getTextAtPosition(t){const{index:n}=this.locationFromPosition(t);return this.getTextAtIndex(n)}getPieceAtPosition(t){const{index:n,offset:o}=this.locationFromPosition(t);return this.getTextAtIndex(n).getPieceAtPosition(o)}getCharacterAtPosition(t){const{index:n,offset:o}=this.locationFromPosition(t);return this.getTextAtIndex(n).getStringAtRange([o,o+1])}getLength(){return this.blockList.getEndPosition()}getBlocks(){return this.blockList.toArray()}getBlockCount(){return this.blockList.length}getEditCount(){return this.editCount}eachBlock(t){return this.blockList.eachObject(t)}eachBlockAtRange(t,n){let o,u;t=_n(t);const[d,h]=t,f=this.locationFromPosition(d),v=this.locationFromPosition(h);if(f.index===v.index)return o=this.getBlockAtIndex(f.index),u=[f.offset,v.offset],n(o,u,f.index);for(let p=f.index;p<=v.index;p++)if(o=this.getBlockAtIndex(p),o){switch(p){case f.index:u=[f.offset,o.text.getLength()];break;case v.index:u=[0,v.offset];break;default:u=[0,o.text.getLength()]}n(o,u,p)}}getCommonAttributesAtRange(t){t=_n(t);const[n]=t;if(oo(t))return this.getCommonAttributesAtPosition(n);{const o=[],u=[];return this.eachBlockAtRange(t,(function(d,h){if(h[0]!==h[1])return o.push(d.text.getCommonAttributesAtRange(h)),u.push(Yb(d))})),Oi.fromCommonAttributesOfObjects(o).merge(Oi.fromCommonAttributesOfObjects(u)).toObject()}}getCommonAttributesAtPosition(t){let n,o;const{index:u,offset:d}=this.locationFromPosition(t),h=this.getBlockAtIndex(u);if(!h)return{};const f=Yb(h),v=h.text.getAttributesAtPosition(d),p=h.text.getAttributesAtPosition(d-1),y=Object.keys(Ea).filter((x=>Ea[x].inheritable));for(n in p)o=p[n],(o===v[n]||y.includes(n))&&(f[n]=o);return f}getRangeOfCommonAttributeAtPosition(t,n){const{index:o,offset:u}=this.locationFromPosition(n),d=this.getTextAtIndex(o),[h,f]=Array.from(d.getExpandedRangeForAttributeAtOffset(t,u)),v=this.positionFromLocation({index:o,offset:h}),p=this.positionFromLocation({index:o,offset:f});return _n([v,p])}getBaseBlockAttributes(){let t=this.getBlockAtIndex(0).getAttributes();for(let n=1;n<this.getBlockCount();n++){const o=this.getBlockAtIndex(n).getAttributes(),u=Math.min(t.length,o.length);t=(()=>{const d=[];for(let h=0;h<u&&o[h]===t[h];h++)d.push(o[h]);return d})()}return t}getAttachmentById(t){for(const n of this.getAttachments())if(n.id===t)return n}getAttachmentPieces(){let t=[];return this.blockList.eachObject((n=>{let{text:o}=n;return t=t.concat(o.getAttachmentPieces())})),t}getAttachments(){return this.getAttachmentPieces().map((t=>t.attachment))}getRangeOfAttachment(t){let n=0;const o=this.blockList.toArray();for(let u=0;u<o.length;u++){const{text:d}=o[u],h=d.getRangeOfAttachment(t);if(h)return _n([n+h[0],n+h[1]]);n+=d.getLength()}}getLocationRangeOfAttachment(t){const n=this.getRangeOfAttachment(t);return this.locationRangeFromRange(n)}getAttachmentPieceForAttachment(t){for(const n of this.getAttachmentPieces())if(n.attachment===t)return n}findRangesForBlockAttribute(t){let n=0;const o=[];return this.getBlocks().forEach((u=>{const d=u.getLength();u.hasAttribute(t)&&o.push([n,n+d]),n+=d})),o}findRangesForTextAttribute(t){let{withValue:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=0,u=[];const d=[];return this.getPieces().forEach((h=>{const f=h.getLength();(function(v){return n?v.getAttribute(t)===n:v.hasAttribute(t)})(h)&&(u[1]===o?u[1]=o+f:d.push(u=[o,o+f])),o+=f})),d}locationFromPosition(t){const n=this.blockList.findIndexAndOffsetAtPosition(Math.max(0,t));if(n.index!=null)return n;{const o=this.getBlocks();return{index:o.length-1,offset:o[o.length-1].getLength()}}}positionFromLocation(t){return this.blockList.findPositionAtIndexAndOffset(t.index,t.offset)}locationRangeFromPosition(t){return _n(this.locationFromPosition(t))}locationRangeFromRange(t){if(!(t=_n(t)))return;const[n,o]=Array.from(t),u=this.locationFromPosition(n),d=this.locationFromPosition(o);return _n([u,d])}rangeFromLocationRange(t){let n;t=_n(t);const o=this.positionFromLocation(t[0]);return oo(t)||(n=this.positionFromLocation(t[1])),_n([o,n])}isEqualTo(t){return this.blockList.isEqualTo(t==null?void 0:t.blockList)}getTexts(){return this.getBlocks().map((t=>t.text))}getPieces(){const t=[];return Array.from(this.getTexts()).forEach((n=>{t.push(...Array.from(n.getPieces()||[]))})),t}getObjects(){return this.getBlocks().concat(this.getTexts()).concat(this.getPieces())}toSerializableDocument(){const t=[];return this.blockList.eachObject((n=>t.push(n.copyWithText(n.text.toSerializableText())))),new this.constructor(t)}toString(){return this.blockList.toString()}toJSON(){return this.blockList.toJSON()}toConsole(){return JSON.stringify(this.blockList.toArray().map((t=>JSON.parse(t.text.toConsole()))))}}const Yb=function(s){const t={},n=s.getLastAttribute();return n&&(t[n]=!0),t},cg=function(s){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{string:s=zl(s),attributes:t,type:"string"}},Kb=(s,t)=>{try{return JSON.parse(s.getAttribute("data-trix-".concat(t)))}catch{return{}}};class Zl extends ur{static parse(t,n){const o=new this(t,n);return o.parse(),o}constructor(t){let{referenceElement:n,purifyOptions:o}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(...arguments),this.html=t,this.referenceElement=n,this.purifyOptions=o,this.blocks=[],this.blockElements=[],this.processedElements=[]}getDocument(){return Vi.fromJSON(this.blocks)}parse(){try{this.createHiddenContainer(),Td.setHTML(this.containerElement,this.html,{purifyOptions:this.purifyOptions});const t=Cd(this.containerElement,{usingFilter:_T});for(;t.nextNode();)this.processNode(t.currentNode);return this.translateBlockElementMarginsToNewlines()}finally{this.removeHiddenContainer()}}createHiddenContainer(){return this.referenceElement?(this.containerElement=this.referenceElement.cloneNode(!1),this.containerElement.removeAttribute("id"),this.containerElement.setAttribute("data-trix-internal",""),this.containerElement.style.display="none",this.referenceElement.parentNode.insertBefore(this.containerElement,this.referenceElement.nextSibling)):(this.containerElement=Jt({tagName:"div",style:{display:"none"}}),document.body.appendChild(this.containerElement))}removeHiddenContainer(){return Ro(this.containerElement)}processNode(t){switch(t.nodeType){case Node.TEXT_NODE:if(!this.isInsignificantTextNode(t))return this.appendBlockForTextNode(t),this.processTextNode(t);break;case Node.ELEMENT_NODE:return this.appendBlockForElement(t),this.processElement(t)}}appendBlockForTextNode(t){const n=t.parentNode;if(n===this.currentBlockElement&&this.isBlockElement(t.previousSibling))return this.appendStringWithAttributes(`
`);if(n===this.containerElement||this.isBlockElement(n)){var o;const u=this.getBlockAttributes(n),d=this.getBlockHTMLAttributes(n);Sa(u,(o=this.currentBlock)===null||o===void 0?void 0:o.attributes)||(this.currentBlock=this.appendBlockForAttributesWithElement(u,n,d),this.currentBlockElement=n)}}appendBlockForElement(t){const n=this.isBlockElement(t),o=Ca(this.currentBlockElement,t);if(n&&!this.isBlockElement(t.firstChild)){if(!this.isInsignificantTextNode(t.firstChild)||!this.isBlockElement(t.firstElementChild)){const u=this.getBlockAttributes(t),d=this.getBlockHTMLAttributes(t);if(t.firstChild){if(o&&Sa(u,this.currentBlock.attributes))return this.appendStringWithAttributes(`
`);this.currentBlock=this.appendBlockForAttributesWithElement(u,t,d),this.currentBlockElement=t}}}else if(this.currentBlockElement&&!o&&!n){const u=this.findParentBlockElement(t);if(u)return this.appendBlockForElement(u);this.currentBlock=this.appendEmptyBlock(),this.currentBlockElement=null}}findParentBlockElement(t){let{parentElement:n}=t;for(;n&&n!==this.containerElement;){if(this.isBlockElement(n)&&this.blockElements.includes(n))return n;n=n.parentElement}return null}processTextNode(t){let n=t.data;var o;return Jb(t.parentNode)||(n=Q1(n),$b((o=t.previousSibling)===null||o===void 0?void 0:o.textContent)&&(n=ET(n))),this.appendStringWithAttributes(n,this.getTextAttributes(t.parentNode))}processElement(t){let n;if(_a(t)){if(n=Kb(t,"attachment"),Object.keys(n).length){const o=this.getTextAttributes(t);this.appendAttachmentWithAttributes(n,o),t.innerHTML=""}return this.processedElements.push(t)}switch($r(t)){case"br":return this.isExtraBR(t)||this.isBlockElement(t.nextSibling)||this.appendStringWithAttributes(`
`,this.getTextAttributes(t)),this.processedElements.push(t);case"img":n={url:t.getAttribute("src"),contentType:"image"};const o=(u=>{const d=u.getAttribute("width"),h=u.getAttribute("height"),f={};return d&&(f.width=parseInt(d,10)),h&&(f.height=parseInt(h,10)),f})(t);for(const u in o){const d=o[u];n[u]=d}return this.appendAttachmentWithAttributes(n,this.getTextAttributes(t)),this.processedElements.push(t);case"tr":if(this.needsTableSeparator(t))return this.appendStringWithAttributes(_d.tableRowSeparator);break;case"td":if(this.needsTableSeparator(t))return this.appendStringWithAttributes(_d.tableCellSeparator)}}appendBlockForAttributesWithElement(t,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.blockElements.push(n);const u=(function(){return{text:[],attributes:arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},htmlAttributes:arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}}})(t,o);return this.blocks.push(u),u}appendEmptyBlock(){return this.appendBlockForAttributesWithElement([],null)}appendStringWithAttributes(t,n){return this.appendPiece(cg(t,n))}appendAttachmentWithAttributes(t,n){return this.appendPiece((function(o){return{attachment:o,attributes:arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},type:"attachment"}})(t,n))}appendPiece(t){return this.blocks.length===0&&this.appendEmptyBlock(),this.blocks[this.blocks.length-1].text.push(t)}appendStringToTextAtIndex(t,n){const{text:o}=this.blocks[n],u=o[o.length-1];if((u==null?void 0:u.type)!=="string")return o.push(cg(t));u.string+=t}prependStringToTextAtIndex(t,n){const{text:o}=this.blocks[n],u=o[0];if((u==null?void 0:u.type)!=="string")return o.unshift(cg(t));u.string=t+u.string}getTextAttributes(t){let n;const o={};for(const u in Ea){const d=Ea[u];if(d.tagName&&ko(t,{matchingSelector:d.tagName,untilNode:this.containerElement}))o[u]=!0;else if(d.parser){if(n=d.parser(t),n){let h=!1;for(const f of this.findBlockElementAncestors(t))if(d.parser(f)===n){h=!0;break}h||(o[u]=n)}}else d.styleProperty&&(n=t.style[d.styleProperty],n&&(o[u]=n))}if(_a(t)){const u=Kb(t,"attributes");for(const d in u)n=u[d],o[d]=n}return o}getBlockAttributes(t){const n=[];for(;t&&t!==this.containerElement;){for(const u in Qr){const d=Qr[u];var o;d.parse!==!1&&$r(t)===d.tagName&&((o=d.test)!==null&&o!==void 0&&o.call(d,t)||!d.test)&&(n.push(u),d.listAttribute&&n.push(d.listAttribute))}t=t.parentNode}return n.reverse()}getBlockHTMLAttributes(t){const n={},o=Object.values(Qr).find((u=>u.tagName===$r(t)));return((o==null?void 0:o.htmlAttributes)||[]).forEach((u=>{t.hasAttribute(u)&&(n[u]=t.getAttribute(u))})),n}findBlockElementAncestors(t){const n=[];for(;t&&t!==this.containerElement;){const o=$r(t);Rl().includes(o)&&n.push(t),t=t.parentNode}return n}isBlockElement(t){if((t==null?void 0:t.nodeType)===Node.ELEMENT_NODE&&!_a(t)&&!ko(t,{matchingSelector:"td",untilNode:this.containerElement}))return Rl().includes($r(t))||window.getComputedStyle(t).display==="block"}isInsignificantTextNode(t){if((t==null?void 0:t.nodeType)!==Node.TEXT_NODE||!wT(t.data))return;const{parentNode:n,previousSibling:o,nextSibling:u}=t;return CT(n.previousSibling)&&!this.isBlockElement(n.previousSibling)||Jb(n)?void 0:!o||this.isBlockElement(o)||!u||this.isBlockElement(u)}isExtraBR(t){return $r(t)==="br"&&this.isBlockElement(t.parentNode)&&t.parentNode.lastChild===t}needsTableSeparator(t){if(_d.removeBlankTableCells){var n;const o=(n=t.previousSibling)===null||n===void 0?void 0:n.textContent;return o&&/\S/.test(o)}return t.previousSibling}translateBlockElementMarginsToNewlines(){const t=this.getMarginOfDefaultBlockElement();for(let n=0;n<this.blocks.length;n++){const o=this.getMarginOfBlockElementAtIndex(n);o&&(o.top>2*t.top&&this.prependStringToTextAtIndex(`
`,n),o.bottom>2*t.bottom&&this.appendStringToTextAtIndex(`
`,n))}}getMarginOfBlockElementAtIndex(t){const n=this.blockElements[t];if(n&&n.textContent&&!Rl().includes($r(n))&&!this.processedElements.includes(n))return Qb(n)}getMarginOfDefaultBlockElement(){const t=Jt(Qr.default.tagName);return this.containerElement.appendChild(t),Qb(t)}}const Jb=function(s){const{whiteSpace:t}=window.getComputedStyle(s);return["pre","pre-wrap","pre-line"].includes(t)},CT=s=>s&&!$b(s.textContent),Qb=function(s){const t=window.getComputedStyle(s);if(t.display==="block")return{top:parseInt(t.marginTop),bottom:parseInt(t.marginBottom)}},_T=function(s){return $r(s)==="style"?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},ET=s=>s.replace(new RegExp("^".concat(J1.source,"+")),""),wT=s=>new RegExp("^".concat(J1.source,"*$")).test(s),$b=s=>/\s$/.test(s),ST=["contenteditable","data-trix-id","data-trix-store-key","data-trix-mutable","data-trix-placeholder","tabindex"],dg="data-trix-serialized-attributes",OT="[".concat(dg,"]"),LT=new RegExp("<!--block-->","g"),NT={"application/json":function(s){let t;if(s instanceof Vi)t=s;else{if(!(s instanceof HTMLElement))throw new Error("unserializable object");t=Zl.parse(s.innerHTML).getDocument()}return t.toSerializableDocument().toJSONString()},"text/html":function(s){let t;if(s instanceof Vi)t=Ad.render(s);else{if(!(s instanceof HTMLElement))throw new Error("unserializable object");t=s.cloneNode(!0)}return Array.from(t.querySelectorAll("[data-trix-serialize=false]")).forEach((n=>{Ro(n)})),ST.forEach((n=>{Array.from(t.querySelectorAll("[".concat(n,"]"))).forEach((o=>{o.removeAttribute(n)}))})),Array.from(t.querySelectorAll(OT)).forEach((n=>{try{const o=JSON.parse(n.getAttribute(dg));n.removeAttribute(dg);for(const u in o){const d=o[u];n.setAttribute(u,d)}}catch{}})),t.innerHTML.replace(LT,"")}};var IT=Object.freeze({__proto__:null});class Gn extends ur{constructor(t,n){super(...arguments),this.attachmentManager=t,this.attachment=n,this.id=this.attachment.id,this.file=this.attachment.file}remove(){return this.attachmentManager.requestRemovalOfAttachment(this.attachment)}}Gn.proxyMethod("attachment.getAttribute"),Gn.proxyMethod("attachment.hasAttribute"),Gn.proxyMethod("attachment.setAttribute"),Gn.proxyMethod("attachment.getAttributes"),Gn.proxyMethod("attachment.setAttributes"),Gn.proxyMethod("attachment.isPending"),Gn.proxyMethod("attachment.isPreviewable"),Gn.proxyMethod("attachment.getURL"),Gn.proxyMethod("attachment.getPreviewURL"),Gn.proxyMethod("attachment.setPreviewURL"),Gn.proxyMethod("attachment.getHref"),Gn.proxyMethod("attachment.getFilename"),Gn.proxyMethod("attachment.getFilesize"),Gn.proxyMethod("attachment.getFormattedFilesize"),Gn.proxyMethod("attachment.getExtension"),Gn.proxyMethod("attachment.getContentType"),Gn.proxyMethod("attachment.getFile"),Gn.proxyMethod("attachment.setFile"),Gn.proxyMethod("attachment.releaseFile"),Gn.proxyMethod("attachment.getUploadProgress"),Gn.proxyMethod("attachment.setUploadProgress");class e8 extends ur{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];super(...arguments),this.managedAttachments={},Array.from(t).forEach((n=>{this.manageAttachment(n)}))}getAttachments(){const t=[];for(const n in this.managedAttachments){const o=this.managedAttachments[n];t.push(o)}return t}manageAttachment(t){return this.managedAttachments[t.id]||(this.managedAttachments[t.id]=new Gn(this,t)),this.managedAttachments[t.id]}attachmentIsManaged(t){return t.id in this.managedAttachments}requestRemovalOfAttachment(t){var n,o;if(this.attachmentIsManaged(t))return(n=this.delegate)===null||n===void 0||(o=n.attachmentManagerDidRequestRemovalOfAttachment)===null||o===void 0?void 0:o.call(n,t)}unmanageAttachment(t){const n=this.managedAttachments[t.id];return delete this.managedAttachments[t.id],n}}class t8{constructor(t){this.composition=t,this.document=this.composition.document;const n=this.composition.getSelectedRange();this.startPosition=n[0],this.endPosition=n[1],this.startLocation=this.document.locationFromPosition(this.startPosition),this.endLocation=this.document.locationFromPosition(this.endPosition),this.block=this.document.getBlockAtIndex(this.endLocation.index),this.breaksOnReturn=this.block.breaksOnReturn(),this.previousCharacter=this.block.text.getStringAtPosition(this.endLocation.offset-1),this.nextCharacter=this.block.text.getStringAtPosition(this.endLocation.offset)}shouldInsertBlockBreak(){return this.block.hasAttributes()&&this.block.isListItem()&&!this.block.isEmpty()?this.startLocation.offset!==0:this.breaksOnReturn&&this.nextCharacter!==`
`}shouldBreakFormattedBlock(){return this.block.hasAttributes()&&!this.block.isListItem()&&(this.breaksOnReturn&&this.nextCharacter===`
`||this.previousCharacter===`
`)}shouldDecreaseListLevel(){return this.block.hasAttributes()&&this.block.isListItem()&&this.block.isEmpty()}shouldPrependListItem(){return this.block.isListItem()&&this.startLocation.offset===0&&!this.block.isEmpty()}shouldRemoveLastBlockAttribute(){return this.block.hasAttributes()&&!this.block.isListItem()&&this.block.isEmpty()}}class Fo extends ur{constructor(){super(...arguments),this.document=new Vi,this.attachments=[],this.currentAttributes={},this.revision=0}setDocument(t){var n,o;if(!t.isEqualTo(this.document))return this.document=t,this.refreshAttachments(),this.revision++,(n=this.delegate)===null||n===void 0||(o=n.compositionDidChangeDocument)===null||o===void 0?void 0:o.call(n,t)}getSnapshot(){return{document:this.document,selectedRange:this.getSelectedRange()}}loadSnapshot(t){var n,o,u,d;let{document:h,selectedRange:f}=t;return(n=this.delegate)===null||n===void 0||(o=n.compositionWillLoadSnapshot)===null||o===void 0||o.call(n),this.setDocument(h??new Vi),this.setSelection(f??[0,0]),(u=this.delegate)===null||u===void 0||(d=u.compositionDidLoadSnapshot)===null||d===void 0?void 0:d.call(u)}insertText(t){let{updatePosition:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{updatePosition:!0};const o=this.getSelectedRange();this.setDocument(this.document.insertTextAtRange(t,o));const u=o[0],d=u+t.getLength();return n&&this.setSelection(d),this.notifyDelegateOfInsertionAtRange([u,d])}insertBlock(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new As;const n=new Vi([t]);return this.insertDocument(n)}insertDocument(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Vi;const n=this.getSelectedRange();this.setDocument(this.document.insertDocumentAtRange(t,n));const o=n[0],u=o+t.getLength();return this.setSelection(u),this.notifyDelegateOfInsertionAtRange([o,u])}insertString(t,n){const o=this.getCurrentTextAttributes(),u=ss.textForStringWithAttributes(t,o);return this.insertText(u,n)}insertBlockBreak(){const t=this.getSelectedRange();this.setDocument(this.document.insertBlockBreakAtRange(t));const n=t[0],o=n+1;return this.setSelection(o),this.notifyDelegateOfInsertionAtRange([n,o])}insertLineBreak(){const t=new t8(this);if(t.shouldDecreaseListLevel())return this.decreaseListLevel(),this.setSelection(t.startPosition);if(t.shouldPrependListItem()){const n=new Vi([t.block.copyWithoutText()]);return this.insertDocument(n)}return t.shouldInsertBlockBreak()?this.insertBlockBreak():t.shouldRemoveLastBlockAttribute()?this.removeLastBlockAttribute():t.shouldBreakFormattedBlock()?this.breakFormattedBlock(t):this.insertString(`
`)}insertHTML(t){const n=Zl.parse(t,{purifyOptions:{SAFE_FOR_XML:!0}}).getDocument(),o=this.getSelectedRange();this.setDocument(this.document.mergeDocumentAtRange(n,o));const u=o[0],d=u+n.getLength()-1;return this.setSelection(d),this.notifyDelegateOfInsertionAtRange([u,d])}replaceHTML(t){const n=Zl.parse(t).getDocument().copyUsingObjectsFromDocument(this.document),o=this.getLocationRange({strict:!1}),u=this.document.rangeFromLocationRange(o);return this.setDocument(n),this.setSelection(u)}insertFile(t){return this.insertFiles([t])}insertFiles(t){const n=[];return Array.from(t).forEach((o=>{var u;if((u=this.delegate)!==null&&u!==void 0&&u.compositionShouldAcceptFile(o)){const d=ju.attachmentForFile(o);n.push(d)}})),this.insertAttachments(n)}insertAttachment(t){return this.insertAttachments([t])}insertAttachments(t){let n=new ss;return Array.from(t).forEach((o=>{var u;const d=o.getType(),h=(u=I1[d])===null||u===void 0?void 0:u.presentation,f=this.getCurrentTextAttributes();h&&(f.presentation=h);const v=ss.textForAttachmentWithAttributes(o,f);n=n.appendText(v)})),this.insertText(n)}shouldManageDeletingInDirection(t){const n=this.getLocationRange();if(oo(n)){if(t==="backward"&&n[0].offset===0||this.shouldManageMovingCursorInDirection(t))return!0}else if(n[0].index!==n[1].index)return!0;return!1}deleteInDirection(t){let n,o,u,{length:d}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const h=this.getLocationRange();let f=this.getSelectedRange();const v=oo(f);if(v?o=t==="backward"&&h[0].offset===0:u=h[0].index!==h[1].index,o&&this.canDecreaseBlockAttributeLevel()){const p=this.getBlock();if(p.isListItem()?this.decreaseListLevel():this.decreaseBlockAttributeLevel(),this.setSelection(f[0]),p.isEmpty())return!1}return v&&(f=this.getExpandedRangeInDirection(t,{length:d}),t==="backward"&&(n=this.getAttachmentAtRange(f))),n?(this.editAttachment(n),!1):(this.setDocument(this.document.removeTextAtRange(f)),this.setSelection(f[0]),!o&&!u&&void 0)}moveTextFromRange(t){const[n]=Array.from(this.getSelectedRange());return this.setDocument(this.document.moveTextFromRangeToPosition(t,n)),this.setSelection(n)}removeAttachment(t){const n=this.document.getRangeOfAttachment(t);if(n)return this.stopEditingAttachment(),this.setDocument(this.document.removeTextAtRange(n)),this.setSelection(n[0])}removeLastBlockAttribute(){const[t,n]=Array.from(this.getSelectedRange()),o=this.document.getBlockAtPosition(n);return this.removeCurrentAttribute(o.getLastAttribute()),this.setSelection(t)}insertPlaceholder(){return this.placeholderPosition=this.getPosition(),this.insertString(" ")}selectPlaceholder(){if(this.placeholderPosition!=null)return this.setSelectedRange([this.placeholderPosition,this.placeholderPosition+1]),this.getSelectedRange()}forgetPlaceholder(){this.placeholderPosition=null}hasCurrentAttribute(t){const n=this.currentAttributes[t];return n!=null&&n!==!1}toggleCurrentAttribute(t){const n=!this.currentAttributes[t];return n?this.setCurrentAttribute(t,n):this.removeCurrentAttribute(t)}canSetCurrentAttribute(t){return er(t)?this.canSetCurrentBlockAttribute(t):this.canSetCurrentTextAttribute(t)}canSetCurrentTextAttribute(t){const n=this.getSelectedDocument();if(n){for(const o of Array.from(n.getAttachments()))if(!o.hasContent())return!1;return!0}}canSetCurrentBlockAttribute(t){const n=this.getBlock();if(n)return!n.isTerminalBlock()}setCurrentAttribute(t,n){return er(t)?this.setBlockAttribute(t,n):(this.setTextAttribute(t,n),this.currentAttributes[t]=n,this.notifyDelegateOfCurrentAttributesChange())}setHTMLAtributeAtPosition(t,n,o){var u;const d=this.document.getBlockAtPosition(t),h=(u=er(d.getLastAttribute()))===null||u===void 0?void 0:u.htmlAttributes;if(d&&h!=null&&h.includes(n)){const f=this.document.setHTMLAttributeAtPosition(t,n,o);this.setDocument(f)}}setTextAttribute(t,n){const o=this.getSelectedRange();if(!o)return;const[u,d]=Array.from(o);if(u!==d)return this.setDocument(this.document.addAttributeAtRange(t,n,o));if(t==="href"){const h=ss.textForStringWithAttributes(n,{href:n});return this.insertText(h)}}setBlockAttribute(t,n){const o=this.getSelectedRange();if(this.canSetCurrentAttribute(t))return this.setDocument(this.document.applyBlockAttributeAtRange(t,n,o)),this.setSelection(o)}removeCurrentAttribute(t){return er(t)?(this.removeBlockAttribute(t),this.updateCurrentAttributes()):(this.removeTextAttribute(t),delete this.currentAttributes[t],this.notifyDelegateOfCurrentAttributesChange())}removeTextAttribute(t){const n=this.getSelectedRange();if(n)return this.setDocument(this.document.removeAttributeAtRange(t,n))}removeBlockAttribute(t){const n=this.getSelectedRange();if(n)return this.setDocument(this.document.removeAttributeAtRange(t,n))}canDecreaseNestingLevel(){var t;return((t=this.getBlock())===null||t===void 0?void 0:t.getNestingLevel())>0}canIncreaseNestingLevel(){var t;const n=this.getBlock();if(n){if((t=er(n.getLastNestableAttribute()))===null||t===void 0||!t.listAttribute)return n.getNestingLevel()>0;{const o=this.getPreviousBlock();if(o)return(function(){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Sa((arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).slice(0,u.length),u)})(o.getListItemAttributes(),n.getListItemAttributes())}}}decreaseNestingLevel(){const t=this.getBlock();if(t)return this.setDocument(this.document.replaceBlock(t,t.decreaseNestingLevel()))}increaseNestingLevel(){const t=this.getBlock();if(t)return this.setDocument(this.document.replaceBlock(t,t.increaseNestingLevel()))}canDecreaseBlockAttributeLevel(){var t;return((t=this.getBlock())===null||t===void 0?void 0:t.getAttributeLevel())>0}decreaseBlockAttributeLevel(){var t;const n=(t=this.getBlock())===null||t===void 0?void 0:t.getLastAttribute();if(n)return this.removeCurrentAttribute(n)}decreaseListLevel(){let[t]=Array.from(this.getSelectedRange());const{index:n}=this.document.locationFromPosition(t);let o=n;const u=this.getBlock().getAttributeLevel();let d=this.document.getBlockAtIndex(o+1);for(;d&&d.isListItem()&&!(d.getAttributeLevel()<=u);)o++,d=this.document.getBlockAtIndex(o+1);t=this.document.positionFromLocation({index:n,offset:0});const h=this.document.positionFromLocation({index:o,offset:0});return this.setDocument(this.document.removeLastListAttributeAtRange([t,h]))}updateCurrentAttributes(){const t=this.getSelectedRange({ignoreLock:!0});if(t){const n=this.document.getCommonAttributesAtRange(t);if(Array.from(Z1()).forEach((o=>{n[o]||this.canSetCurrentAttribute(o)||(n[o]=!1)})),!Au(n,this.currentAttributes))return this.currentAttributes=n,this.notifyDelegateOfCurrentAttributesChange()}}getCurrentAttributes(){return eb.call({},this.currentAttributes)}getCurrentTextAttributes(){const t={};for(const n in this.currentAttributes){const o=this.currentAttributes[n];o!==!1&&X1(n)&&(t[n]=o)}return t}freezeSelection(){return this.setCurrentAttribute("frozen",!0)}thawSelection(){return this.removeCurrentAttribute("frozen")}hasFrozenSelection(){return this.hasCurrentAttribute("frozen")}setSelection(t){var n;const o=this.document.locationRangeFromRange(t);return(n=this.delegate)===null||n===void 0?void 0:n.compositionDidRequestChangingSelectionToLocationRange(o)}getSelectedRange(){const t=this.getLocationRange();if(t)return this.document.rangeFromLocationRange(t)}setSelectedRange(t){const n=this.document.locationRangeFromRange(t);return this.getSelectionManager().setLocationRange(n)}getPosition(){const t=this.getLocationRange();if(t)return this.document.positionFromLocation(t[0])}getLocationRange(t){return this.targetLocationRange?this.targetLocationRange:this.getSelectionManager().getLocationRange(t)||_n({index:0,offset:0})}withTargetLocationRange(t,n){let o;this.targetLocationRange=t;try{o=n()}finally{this.targetLocationRange=null}return o}withTargetRange(t,n){const o=this.document.locationRangeFromRange(t);return this.withTargetLocationRange(o,n)}withTargetDOMRange(t,n){const o=this.createLocationRangeFromDOMRange(t,{strict:!1});return this.withTargetLocationRange(o,n)}getExpandedRangeInDirection(t){let{length:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},[o,u]=Array.from(this.getSelectedRange());return t==="backward"?n?o-=n:o=this.translateUTF16PositionFromOffset(o,-1):n?u+=n:u=this.translateUTF16PositionFromOffset(u,1),_n([o,u])}shouldManageMovingCursorInDirection(t){if(this.editingAttachment)return!0;const n=this.getExpandedRangeInDirection(t);return this.getAttachmentAtRange(n)!=null}moveCursorInDirection(t){let n,o;if(this.editingAttachment)o=this.document.getRangeOfAttachment(this.editingAttachment);else{const u=this.getSelectedRange();o=this.getExpandedRangeInDirection(t),n=!wd(u,o)}if(t==="backward"?this.setSelectedRange(o[0]):this.setSelectedRange(o[1]),n){const u=this.getAttachmentAtRange(o);if(u)return this.editAttachment(u)}}expandSelectionInDirection(t){let{length:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=this.getExpandedRangeInDirection(t,{length:n});return this.setSelectedRange(o)}expandSelectionForEditing(){if(this.hasCurrentAttribute("href"))return this.expandSelectionAroundCommonAttribute("href")}expandSelectionAroundCommonAttribute(t){const n=this.getPosition(),o=this.document.getRangeOfCommonAttributeAtPosition(t,n);return this.setSelectedRange(o)}selectionContainsAttachments(){var t;return((t=this.getSelectedAttachments())===null||t===void 0?void 0:t.length)>0}selectionIsInCursorTarget(){return this.editingAttachment||this.positionIsCursorTarget(this.getPosition())}positionIsCursorTarget(t){const n=this.document.locationFromPosition(t);if(n)return this.locationIsCursorTarget(n)}positionIsBlockBreak(t){var n;return(n=this.document.getPieceAtPosition(t))===null||n===void 0?void 0:n.isBlockBreak()}getSelectedDocument(){const t=this.getSelectedRange();if(t)return this.document.getDocumentAtRange(t)}getSelectedAttachments(){var t;return(t=this.getSelectedDocument())===null||t===void 0?void 0:t.getAttachments()}getAttachments(){return this.attachments.slice(0)}refreshAttachments(){const t=this.document.getAttachments(),{added:n,removed:o}=(function(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const h=[],f=[],v=new Set;u.forEach((y=>{v.add(y)}));const p=new Set;return d.forEach((y=>{p.add(y),v.has(y)||h.push(y)})),u.forEach((y=>{p.has(y)||f.push(y)})),{added:h,removed:f}})(this.attachments,t);return this.attachments=t,Array.from(o).forEach((u=>{var d,h;u.delegate=null,(d=this.delegate)===null||d===void 0||(h=d.compositionDidRemoveAttachment)===null||h===void 0||h.call(d,u)})),(()=>{const u=[];return Array.from(n).forEach((d=>{var h,f;d.delegate=this,u.push((h=this.delegate)===null||h===void 0||(f=h.compositionDidAddAttachment)===null||f===void 0?void 0:f.call(h,d))})),u})()}attachmentDidChangeAttributes(t){var n,o;return this.revision++,(n=this.delegate)===null||n===void 0||(o=n.compositionDidEditAttachment)===null||o===void 0?void 0:o.call(n,t)}attachmentDidChangePreviewURL(t){var n,o;return this.revision++,(n=this.delegate)===null||n===void 0||(o=n.compositionDidChangeAttachmentPreviewURL)===null||o===void 0?void 0:o.call(n,t)}editAttachment(t,n){var o,u;if(t!==this.editingAttachment)return this.stopEditingAttachment(),this.editingAttachment=t,(o=this.delegate)===null||o===void 0||(u=o.compositionDidStartEditingAttachment)===null||u===void 0?void 0:u.call(o,this.editingAttachment,n)}stopEditingAttachment(){var t,n;this.editingAttachment&&((t=this.delegate)===null||t===void 0||(n=t.compositionDidStopEditingAttachment)===null||n===void 0||n.call(t,this.editingAttachment),this.editingAttachment=null)}updateAttributesForAttachment(t,n){return this.setDocument(this.document.updateAttributesForAttachment(t,n))}removeAttributeForAttachment(t,n){return this.setDocument(this.document.removeAttributeForAttachment(t,n))}breakFormattedBlock(t){let{document:n}=t;const{block:o}=t;let u=t.startPosition,d=[u-1,u];o.getBlockBreakPosition()===t.startLocation.offset?(o.breaksOnReturn()&&t.nextCharacter===`
`?u+=1:n=n.removeTextAtRange(d),d=[u,u]):t.nextCharacter===`
`?t.previousCharacter===`
`?d=[u-1,u+1]:(d=[u,u+1],u+=1):t.startLocation.offset-1!=0&&(u+=1);const h=new Vi([o.removeLastAttribute().copyWithoutText()]);return this.setDocument(n.insertDocumentAtRange(h,d)),this.setSelection(u)}getPreviousBlock(){const t=this.getLocationRange();if(t){const{index:n}=t[0];if(n>0)return this.document.getBlockAtIndex(n-1)}}getBlock(){const t=this.getLocationRange();if(t)return this.document.getBlockAtIndex(t[0].index)}getAttachmentAtRange(t){const n=this.document.getDocumentAtRange(t);if(n.toString()==="".concat("￼",`
`))return n.getAttachments()[0]}notifyDelegateOfCurrentAttributesChange(){var t,n;return(t=this.delegate)===null||t===void 0||(n=t.compositionDidChangeCurrentAttributes)===null||n===void 0?void 0:n.call(t,this.currentAttributes)}notifyDelegateOfInsertionAtRange(t){var n,o;return(n=this.delegate)===null||n===void 0||(o=n.compositionDidPerformInsertionAtRange)===null||o===void 0?void 0:o.call(n,t)}translateUTF16PositionFromOffset(t,n){const o=this.document.toUTF16String(),u=o.offsetFromUCS2Offset(t);return o.offsetToUCS2Offset(u+n)}}Fo.proxyMethod("getSelectionManager().getPointRange"),Fo.proxyMethod("getSelectionManager().setLocationRangeFromPointRange"),Fo.proxyMethod("getSelectionManager().createLocationRangeFromDOMRange"),Fo.proxyMethod("getSelectionManager().locationIsCursorTarget"),Fo.proxyMethod("getSelectionManager().selectionIsExpanded"),Fo.proxyMethod("delegate?.getSelectionManager");class hg extends ur{constructor(t){super(...arguments),this.composition=t,this.undoEntries=[],this.redoEntries=[]}recordUndoEntry(t){let{context:n,consolidatable:o}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const u=this.undoEntries.slice(-1)[0];if(!o||!TT(u,t,n)){const d=this.createEntry({description:t,context:n});this.undoEntries.push(d),this.redoEntries=[]}}undo(){const t=this.undoEntries.pop();if(t){const n=this.createEntry(t);return this.redoEntries.push(n),this.composition.loadSnapshot(t.snapshot)}}redo(){const t=this.redoEntries.pop();if(t){const n=this.createEntry(t);return this.undoEntries.push(n),this.composition.loadSnapshot(t.snapshot)}}canUndo(){return this.undoEntries.length>0}canRedo(){return this.redoEntries.length>0}createEntry(){let{description:t,context:n}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return{description:t==null?void 0:t.toString(),context:JSON.stringify(n),snapshot:this.composition.getSnapshot()}}}const TT=(s,t,n)=>(s==null?void 0:s.description)===(t==null?void 0:t.toString())&&(s==null?void 0:s.context)===JSON.stringify(n),fg="attachmentGallery";class n8{constructor(t){this.document=t.document,this.selectedRange=t.selectedRange}perform(){return this.removeBlockAttribute(),this.applyBlockAttribute()}getSnapshot(){return{document:this.document,selectedRange:this.selectedRange}}removeBlockAttribute(){return this.findRangesOfBlocks().map((t=>this.document=this.document.removeAttributeAtRange(fg,t)))}applyBlockAttribute(){let t=0;this.findRangesOfPieces().forEach((n=>{n[1]-n[0]>1&&(n[0]+=t,n[1]+=t,this.document.getCharacterAtPosition(n[1])!==`
`&&(this.document=this.document.insertBlockBreakAtRange(n[1]),n[1]<this.selectedRange[1]&&this.moveSelectedRangeForward(),n[1]++,t++),n[0]!==0&&this.document.getCharacterAtPosition(n[0]-1)!==`
`&&(this.document=this.document.insertBlockBreakAtRange(n[0]),n[0]<this.selectedRange[0]&&this.moveSelectedRangeForward(),n[0]++,t++),this.document=this.document.applyBlockAttributeAtRange(fg,!0,n))}))}findRangesOfBlocks(){return this.document.findRangesForBlockAttribute(fg)}findRangesOfPieces(){return this.document.findRangesForTextAttribute("presentation",{withValue:"gallery"})}moveSelectedRangeForward(){this.selectedRange[0]+=1,this.selectedRange[1]+=1}}const r8=function(s){const t=new n8(s);return t.perform(),t.getSnapshot()},AT=[r8];class i8{constructor(t,n,o){this.insertFiles=this.insertFiles.bind(this),this.composition=t,this.selectionManager=n,this.element=o,this.undoManager=new hg(this.composition),this.filters=AT.slice(0)}loadDocument(t){return this.loadSnapshot({document:t,selectedRange:[0,0]})}loadHTML(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const n=Zl.parse(t,{referenceElement:this.element}).getDocument();return this.loadDocument(n)}loadJSON(t){let{document:n,selectedRange:o}=t;return n=Vi.fromJSON(n),this.loadSnapshot({document:n,selectedRange:o})}loadSnapshot(t){return this.undoManager=new hg(this.composition),this.composition.loadSnapshot(t)}getDocument(){return this.composition.document}getSelectedDocument(){return this.composition.getSelectedDocument()}getSnapshot(){return this.composition.getSnapshot()}toJSON(){return this.getSnapshot()}deleteInDirection(t){return this.composition.deleteInDirection(t)}insertAttachment(t){return this.composition.insertAttachment(t)}insertAttachments(t){return this.composition.insertAttachments(t)}insertDocument(t){return this.composition.insertDocument(t)}insertFile(t){return this.composition.insertFile(t)}insertFiles(t){return this.composition.insertFiles(t)}insertHTML(t){return this.composition.insertHTML(t)}insertString(t){return this.composition.insertString(t)}insertText(t){return this.composition.insertText(t)}insertLineBreak(){return this.composition.insertLineBreak()}getSelectedRange(){return this.composition.getSelectedRange()}getPosition(){return this.composition.getPosition()}getClientRectAtPosition(t){const n=this.getDocument().locationRangeFromRange([t,t+1]);return this.selectionManager.getClientRectAtLocationRange(n)}expandSelectionInDirection(t){return this.composition.expandSelectionInDirection(t)}moveCursorInDirection(t){return this.composition.moveCursorInDirection(t)}setSelectedRange(t){return this.composition.setSelectedRange(t)}activateAttribute(t){let n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return this.composition.setCurrentAttribute(t,n)}attributeIsActive(t){return this.composition.hasCurrentAttribute(t)}canActivateAttribute(t){return this.composition.canSetCurrentAttribute(t)}deactivateAttribute(t){return this.composition.removeCurrentAttribute(t)}setHTMLAtributeAtPosition(t,n,o){this.composition.setHTMLAtributeAtPosition(t,n,o)}canDecreaseNestingLevel(){return this.composition.canDecreaseNestingLevel()}canIncreaseNestingLevel(){return this.composition.canIncreaseNestingLevel()}decreaseNestingLevel(){if(this.canDecreaseNestingLevel())return this.composition.decreaseNestingLevel()}increaseNestingLevel(){if(this.canIncreaseNestingLevel())return this.composition.increaseNestingLevel()}canRedo(){return this.undoManager.canRedo()}canUndo(){return this.undoManager.canUndo()}recordUndoEntry(t){let{context:n,consolidatable:o}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.undoManager.recordUndoEntry(t,{context:n,consolidatable:o})}redo(){if(this.canRedo())return this.undoManager.redo()}undo(){if(this.canUndo())return this.undoManager.undo()}}class s8{constructor(t){this.element=t}findLocationFromContainerAndOffset(t,n){let{strict:o}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{strict:!0},u=0,d=!1;const h={index:0,offset:0},f=this.findAttachmentElementParentForNode(t);f&&(t=f.parentNode,n=D1(f));const v=Cd(this.element,{usingFilter:o8});for(;v.nextNode();){const p=v.currentNode;if(p===t&&jl(t)){Tu(p)||(h.offset+=n);break}if(p.parentNode===t){if(u++===n){!o&&k1(p,{strict:o})&&(d&&h.index++,h.offset=0,d=!0);break}}else if(!Ca(t,p)&&u>0)break;k1(p,{strict:o})?(d&&h.index++,h.offset=0,d=!0):h.offset+=gg(p)}return h}findContainerAndOffsetFromLocation(t){let n,o;if(t.index===0&&t.offset===0){for(n=this.element,o=0;n.firstChild;)if(n=n.firstChild,M1(n)){o=1;break}return[n,o]}let[u,d]=this.findNodeAndOffsetFromLocation(t);if(u){if(jl(u))gg(u)===0?(n=u.parentNode.parentNode,o=D1(u.parentNode),Tu(u,{name:"right"})&&o++):(n=u,o=t.offset-d);else{if(n=u.parentNode,!k1(u.previousSibling)&&!M1(n))for(;u===n.lastChild&&(u=n,n=n.parentNode,!M1(n)););o=D1(u),t.offset!==0&&o++}return[n,o]}}findNodeAndOffsetFromLocation(t){let n,o,u=0;for(const d of this.getSignificantNodesForIndex(t.index)){const h=gg(d);if(t.offset<=u+h)if(jl(d)){if(n=d,o=u,t.offset===o&&Tu(n))break}else n||(n=d,o=u);if(u+=h,u>t.offset)break}return[n,o]}findAttachmentElementParentForNode(t){for(;t&&t!==this.element;){if(_a(t))return t;t=t.parentNode}}getSignificantNodesForIndex(t){const n=[],o=Cd(this.element,{usingFilter:PT});let u=!1;for(;o.nextNode();){const h=o.currentNode;var d;if(Iu(h)){if(d!=null?d++:d=0,d===t)u=!0;else if(u)break}else u&&n.push(h)}return n}}const gg=function(s){return s.nodeType===Node.TEXT_NODE?Tu(s)?0:s.textContent.length:$r(s)==="br"||_a(s)?1:0},PT=function(s){return DT(s)===NodeFilter.FILTER_ACCEPT?o8(s):NodeFilter.FILTER_REJECT},DT=function(s){return rb(s)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},o8=function(s){return _a(s.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT};class a8{createDOMRangeFromPoint(t){let n,{x:o,y:u}=t;if(document.caretPositionFromPoint){const{offsetNode:d,offset:h}=document.caretPositionFromPoint(o,u);return n=document.createRange(),n.setStart(d,h),n}if(document.caretRangeFromPoint)return document.caretRangeFromPoint(o,u);if(document.body.createTextRange){const d=ql();try{const h=document.body.createTextRange();h.moveToPoint(o,u),h.select()}catch{}return n=ql(),mb(d),n}}getClientRectsForDOMRange(t){const n=Array.from(t.getClientRects());return[n[0],n[n.length-1]]}}class Ia extends ur{constructor(t){super(...arguments),this.didMouseDown=this.didMouseDown.bind(this),this.selectionDidChange=this.selectionDidChange.bind(this),this.element=t,this.locationMapper=new s8(this.element),this.pointMapper=new a8,this.lockCount=0,Hn("mousedown",{onElement:this.element,withCallback:this.didMouseDown})}getLocationRange(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return t.strict===!1?this.createLocationRangeFromDOMRange(ql()):t.ignoreLock?this.currentLocationRange:this.lockedLocationRange?this.lockedLocationRange:this.currentLocationRange}setLocationRange(t){if(this.lockedLocationRange)return;t=_n(t);const n=this.createDOMRangeFromLocationRange(t);n&&(mb(n),this.updateCurrentLocationRange(t))}setLocationRangeFromPointRange(t){t=_n(t);const n=this.getLocationAtPoint(t[0]),o=this.getLocationAtPoint(t[1]);this.setLocationRange([n,o])}getClientRectAtLocationRange(t){const n=this.createDOMRangeFromLocationRange(t);if(n)return this.getClientRectsForDOMRange(n)[1]}locationIsCursorTarget(t){const n=Array.from(this.findNodeAndOffsetFromLocation(t))[0];return Tu(n)}lock(){this.lockCount++==0&&(this.updateCurrentLocationRange(),this.lockedLocationRange=this.getLocationRange())}unlock(){if(--this.lockCount==0){const{lockedLocationRange:t}=this;if(this.lockedLocationRange=null,t!=null)return this.setLocationRange(t)}}clearSelection(){var t;return(t=gb())===null||t===void 0?void 0:t.removeAllRanges()}selectionIsCollapsed(){var t;return((t=ql())===null||t===void 0?void 0:t.collapsed)===!0}selectionIsExpanded(){return!this.selectionIsCollapsed()}createLocationRangeFromDOMRange(t,n){if(t==null||!this.domRangeWithinElement(t))return;const o=this.findLocationFromContainerAndOffset(t.startContainer,t.startOffset,n);if(!o)return;const u=t.collapsed?void 0:this.findLocationFromContainerAndOffset(t.endContainer,t.endOffset,n);return _n([o,u])}didMouseDown(){return this.pauseTemporarily()}pauseTemporarily(){let t;this.paused=!0;const n=()=>{if(this.paused=!1,clearTimeout(o),Array.from(t).forEach((u=>{u.destroy()})),Ca(document,this.element))return this.selectionDidChange()},o=setTimeout(n,200);t=["mousemove","keydown"].map((u=>Hn(u,{onElement:document,withCallback:n})))}selectionDidChange(){if(!this.paused&&!P1(this.element))return this.updateCurrentLocationRange()}updateCurrentLocationRange(t){var n,o;if((t??(t=this.createLocationRangeFromDOMRange(ql())))&&!wd(t,this.currentLocationRange))return this.currentLocationRange=t,(n=this.delegate)===null||n===void 0||(o=n.locationRangeDidChange)===null||o===void 0?void 0:o.call(n,this.currentLocationRange.slice(0))}createDOMRangeFromLocationRange(t){const n=this.findContainerAndOffsetFromLocation(t[0]),o=oo(t)?n:this.findContainerAndOffsetFromLocation(t[1])||n;if(n!=null&&o!=null){const u=document.createRange();return u.setStart(...Array.from(n||[])),u.setEnd(...Array.from(o||[])),u}}getLocationAtPoint(t){const n=this.createDOMRangeFromPoint(t);var o;if(n)return(o=this.createLocationRangeFromDOMRange(n))===null||o===void 0?void 0:o[0]}domRangeWithinElement(t){return t.collapsed?Ca(this.element,t.startContainer):Ca(this.element,t.startContainer)&&Ca(this.element,t.endContainer)}}Ia.proxyMethod("locationMapper.findLocationFromContainerAndOffset"),Ia.proxyMethod("locationMapper.findContainerAndOffsetFromLocation"),Ia.proxyMethod("locationMapper.findNodeAndOffsetFromLocation"),Ia.proxyMethod("pointMapper.createDOMRangeFromPoint"),Ia.proxyMethod("pointMapper.getClientRectsForDOMRange");var u8=Object.freeze({__proto__:null,Attachment:ju,AttachmentManager:e8,AttachmentPiece:Fu,Block:As,Composition:Fo,Document:Vi,Editor:i8,HTMLParser:Zl,HTMLSanitizer:Td,LineBreakInsertion:t8,LocationMapper:s8,ManagedAttachment:Gn,Piece:Na,PointMapper:a8,SelectionManager:Ia,SplittableList:Dd,StringPiece:lg,Text:ss,UndoManager:hg}),MT=Object.freeze({__proto__:null,ObjectView:La,AttachmentView:ug,BlockView:Bb,DocumentView:Ad,PieceView:Rb,PreviewableAttachmentView:kb,TextView:jb});const{lang:mg,css:Ta,keyNames:kT}=Fl,pg=function(s){return function(){const t=s.apply(this,arguments);t.do(),this.undos||(this.undos=[]),this.undos.push(t.undo)}};class l8 extends ur{constructor(t,n,o){let u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(...arguments),Ur(this,"makeElementMutable",pg((()=>({do:()=>{this.element.dataset.trixMutable=!0},undo:()=>delete this.element.dataset.trixMutable})))),Ur(this,"addToolbar",pg((()=>{const d=Jt({tagName:"div",className:Ta.attachmentToolbar,data:{trixMutable:!0},childNodes:Jt({tagName:"div",className:"trix-button-row",childNodes:Jt({tagName:"span",className:"trix-button-group trix-button-group--actions",childNodes:Jt({tagName:"button",className:"trix-button trix-button--remove",textContent:mg.remove,attributes:{title:mg.remove},data:{trixAction:"remove"}})})})});return this.attachment.isPreviewable()&&d.appendChild(Jt({tagName:"div",className:Ta.attachmentMetadataContainer,childNodes:Jt({tagName:"span",className:Ta.attachmentMetadata,childNodes:[Jt({tagName:"span",className:Ta.attachmentName,textContent:this.attachment.getFilename(),attributes:{title:this.attachment.getFilename()}}),Jt({tagName:"span",className:Ta.attachmentSize,textContent:this.attachment.getFormattedFilesize()})]})})),Hn("click",{onElement:d,withCallback:this.didClickToolbar}),Hn("click",{onElement:d,matchingSelector:"[data-trix-action]",withCallback:this.didClickActionButton}),Ml("trix-attachment-before-toolbar",{onElement:this.element,attributes:{toolbar:d,attachment:this.attachment}}),{do:()=>this.element.appendChild(d),undo:()=>Ro(d)}}))),Ur(this,"installCaptionEditor",pg((()=>{const d=Jt({tagName:"textarea",className:Ta.attachmentCaptionEditor,attributes:{placeholder:mg.captionPlaceholder},data:{trixMutable:!0}});d.value=this.attachmentPiece.getCaption();const h=d.cloneNode();h.classList.add("trix-autoresize-clone"),h.tabIndex=-1;const f=function(){h.value=d.value,d.style.height=h.scrollHeight+"px"};Hn("input",{onElement:d,withCallback:f}),Hn("input",{onElement:d,withCallback:this.didInputCaption}),Hn("keydown",{onElement:d,withCallback:this.didKeyDownCaption}),Hn("change",{onElement:d,withCallback:this.didChangeCaption}),Hn("blur",{onElement:d,withCallback:this.didBlurCaption});const v=this.element.querySelector("figcaption"),p=v.cloneNode();return{do:()=>{if(v.style.display="none",p.appendChild(d),p.appendChild(h),p.classList.add("".concat(Ta.attachmentCaption,"--editing")),v.parentElement.insertBefore(p,v),f(),this.options.editCaption)return Y1((()=>d.focus()))},undo(){Ro(p),v.style.display=null}}}))),this.didClickToolbar=this.didClickToolbar.bind(this),this.didClickActionButton=this.didClickActionButton.bind(this),this.didKeyDownCaption=this.didKeyDownCaption.bind(this),this.didInputCaption=this.didInputCaption.bind(this),this.didChangeCaption=this.didChangeCaption.bind(this),this.didBlurCaption=this.didBlurCaption.bind(this),this.attachmentPiece=t,this.element=n,this.container=o,this.options=u,this.attachment=this.attachmentPiece.attachment,$r(this.element)==="a"&&(this.element=this.element.firstChild),this.install()}install(){this.makeElementMutable(),this.addToolbar(),this.attachment.isPreviewable()&&this.installCaptionEditor()}uninstall(){var t;let n=this.undos.pop();for(this.savePendingCaption();n;)n(),n=this.undos.pop();(t=this.delegate)===null||t===void 0||t.didUninstallAttachmentEditor(this)}savePendingCaption(){if(this.pendingCaption!=null){const d=this.pendingCaption;var t,n,o,u;this.pendingCaption=null,d?(t=this.delegate)===null||t===void 0||(n=t.attachmentEditorDidRequestUpdatingAttributesForAttachment)===null||n===void 0||n.call(t,{caption:d},this.attachment):(o=this.delegate)===null||o===void 0||(u=o.attachmentEditorDidRequestRemovingAttributeForAttachment)===null||u===void 0||u.call(o,"caption",this.attachment)}}didClickToolbar(t){return t.preventDefault(),t.stopPropagation()}didClickActionButton(t){var n;if(t.target.getAttribute("data-trix-action")==="remove")return(n=this.delegate)===null||n===void 0?void 0:n.attachmentEditorDidRequestRemovalOfAttachment(this.attachment)}didKeyDownCaption(t){var n,o;if(kT[t.keyCode]==="return")return t.preventDefault(),this.savePendingCaption(),(n=this.delegate)===null||n===void 0||(o=n.attachmentEditorDidRequestDeselectingAttachment)===null||o===void 0?void 0:o.call(n,this.attachment)}didInputCaption(t){this.pendingCaption=t.target.value.replace(/\s/g," ").trim()}didChangeCaption(t){return this.savePendingCaption()}didBlurCaption(t){return this.savePendingCaption()}}class c8 extends ur{constructor(t,n){super(...arguments),this.didFocus=this.didFocus.bind(this),this.didBlur=this.didBlur.bind(this),this.didClickAttachment=this.didClickAttachment.bind(this),this.element=t,this.composition=n,this.documentView=new Ad(this.composition.document,{element:this.element}),Hn("focus",{onElement:this.element,withCallback:this.didFocus}),Hn("blur",{onElement:this.element,withCallback:this.didBlur}),Hn("click",{onElement:this.element,matchingSelector:"a[contenteditable=false]",preventDefault:!0}),Hn("mousedown",{onElement:this.element,matchingSelector:xa,withCallback:this.didClickAttachment}),Hn("click",{onElement:this.element,matchingSelector:"a".concat(xa),preventDefault:!0})}didFocus(t){var n;const o=()=>{var u,d;if(!this.focused)return this.focused=!0,(u=this.delegate)===null||u===void 0||(d=u.compositionControllerDidFocus)===null||d===void 0?void 0:d.call(u)};return((n=this.blurPromise)===null||n===void 0?void 0:n.then(o))||o()}didBlur(t){this.blurPromise=new Promise((n=>Y1((()=>{var o,u;return P1(this.element)||(this.focused=null,(o=this.delegate)===null||o===void 0||(u=o.compositionControllerDidBlur)===null||u===void 0||u.call(o)),this.blurPromise=null,n()}))))}didClickAttachment(t,n){var o,u;const d=this.findAttachmentForElement(n),h=!!ko(t.target,{matchingSelector:"figcaption"});return(o=this.delegate)===null||o===void 0||(u=o.compositionControllerDidSelectAttachment)===null||u===void 0?void 0:u.call(o,d,{editCaption:h})}getSerializableElement(){return this.isEditingAttachment()?this.documentView.shadowElement:this.element}render(){var t,n,o,u,d,h;return this.revision!==this.composition.revision&&(this.documentView.setDocument(this.composition.document),this.documentView.render(),this.revision=this.composition.revision),this.canSyncDocumentView()&&!this.documentView.isSynced()&&((o=this.delegate)===null||o===void 0||(u=o.compositionControllerWillSyncDocumentView)===null||u===void 0||u.call(o),this.documentView.sync(),(d=this.delegate)===null||d===void 0||(h=d.compositionControllerDidSyncDocumentView)===null||h===void 0||h.call(d)),(t=this.delegate)===null||t===void 0||(n=t.compositionControllerDidRender)===null||n===void 0?void 0:n.call(t)}rerenderViewForObject(t){return this.invalidateViewForObject(t),this.render()}invalidateViewForObject(t){return this.documentView.invalidateViewForObject(t)}isViewCachingEnabled(){return this.documentView.isViewCachingEnabled()}enableViewCaching(){return this.documentView.enableViewCaching()}disableViewCaching(){return this.documentView.disableViewCaching()}refreshViewCache(){return this.documentView.garbageCollectCachedViews()}isEditingAttachment(){return!!this.attachmentEditor}installAttachmentEditorForAttachment(t,n){var o;if(((o=this.attachmentEditor)===null||o===void 0?void 0:o.attachment)===t)return;const u=this.documentView.findElementForObject(t);if(!u)return;this.uninstallAttachmentEditor();const d=this.composition.document.getAttachmentPieceForAttachment(t);this.attachmentEditor=new l8(d,u,this.element,n),this.attachmentEditor.delegate=this}uninstallAttachmentEditor(){var t;return(t=this.attachmentEditor)===null||t===void 0?void 0:t.uninstall()}didUninstallAttachmentEditor(){return this.attachmentEditor=null,this.render()}attachmentEditorDidRequestUpdatingAttributesForAttachment(t,n){var o,u;return(o=this.delegate)===null||o===void 0||(u=o.compositionControllerWillUpdateAttachment)===null||u===void 0||u.call(o,n),this.composition.updateAttributesForAttachment(t,n)}attachmentEditorDidRequestRemovingAttributeForAttachment(t,n){var o,u;return(o=this.delegate)===null||o===void 0||(u=o.compositionControllerWillUpdateAttachment)===null||u===void 0||u.call(o,n),this.composition.removeAttributeForAttachment(t,n)}attachmentEditorDidRequestRemovalOfAttachment(t){var n,o;return(n=this.delegate)===null||n===void 0||(o=n.compositionControllerDidRequestRemovalOfAttachment)===null||o===void 0?void 0:o.call(n,t)}attachmentEditorDidRequestDeselectingAttachment(t){var n,o;return(n=this.delegate)===null||n===void 0||(o=n.compositionControllerDidRequestDeselectingAttachment)===null||o===void 0?void 0:o.call(n,t)}canSyncDocumentView(){return!this.isEditingAttachment()}findAttachmentForElement(t){return this.composition.document.getAttachmentById(parseInt(t.dataset.trixId,10))}}class d8 extends ur{}const h8="data-trix-mutable",RT="[".concat(h8,"]"),jT={attributes:!0,childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0};class f8 extends ur{constructor(t){super(t),this.didMutate=this.didMutate.bind(this),this.element=t,this.observer=new window.MutationObserver(this.didMutate),this.start()}start(){return this.reset(),this.observer.observe(this.element,jT)}stop(){return this.observer.disconnect()}didMutate(t){var n,o;if(this.mutations.push(...Array.from(this.findSignificantMutations(t)||[])),this.mutations.length)return(n=this.delegate)===null||n===void 0||(o=n.elementDidMutate)===null||o===void 0||o.call(n,this.getMutationSummary()),this.reset()}reset(){this.mutations=[]}findSignificantMutations(t){return t.filter((n=>this.mutationIsSignificant(n)))}mutationIsSignificant(t){if(this.nodeIsMutable(t.target))return!1;for(const n of Array.from(this.nodesModifiedByMutation(t)))if(this.nodeIsSignificant(n))return!0;return!1}nodeIsSignificant(t){return t!==this.element&&!this.nodeIsMutable(t)&&!rb(t)}nodeIsMutable(t){return ko(t,{matchingSelector:RT})}nodesModifiedByMutation(t){const n=[];switch(t.type){case"attributes":t.attributeName!==h8&&n.push(t.target);break;case"characterData":n.push(t.target.parentNode),n.push(t.target);break;case"childList":n.push(...Array.from(t.addedNodes||[])),n.push(...Array.from(t.removedNodes||[]))}return n}getMutationSummary(){return this.getTextMutationSummary()}getTextMutationSummary(){const{additions:t,deletions:n}=this.getTextChangesFromCharacterData(),o=this.getTextChangesFromChildList();Array.from(o.additions).forEach((f=>{Array.from(t).includes(f)||t.push(f)})),n.push(...Array.from(o.deletions||[]));const u={},d=t.join("");d&&(u.textAdded=d);const h=n.join("");return h&&(u.textDeleted=h),u}getMutationsByType(t){return Array.from(this.mutations).filter((n=>n.type===t))}getTextChangesFromChildList(){let t,n;const o=[],u=[];Array.from(this.getMutationsByType("childList")).forEach((f=>{o.push(...Array.from(f.addedNodes||[])),u.push(...Array.from(f.removedNodes||[]))})),o.length===0&&u.length===1&&Iu(u[0])?(t=[],n=[`
`]):(t=vg(o),n=vg(u));const d=t.filter(((f,v)=>f!==n[v])).map(zl),h=n.filter(((f,v)=>f!==t[v])).map(zl);return{additions:d,deletions:h}}getTextChangesFromCharacterData(){let t,n;const o=this.getMutationsByType("characterData");if(o.length){const u=o[0],d=o[o.length-1],h=(function(f,v){let p,y;return f=Bl.box(f),(v=Bl.box(v)).length<f.length?[y,p]=vb(f,v):[p,y]=vb(v,f),{added:p,removed:y}})(zl(u.oldValue),zl(d.target.data));t=h.added,n=h.removed}return{additions:t?[t]:[],deletions:n?[n]:[]}}}const vg=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=[];for(const n of Array.from(s))switch(n.nodeType){case Node.TEXT_NODE:t.push(n.data);break;case Node.ELEMENT_NODE:$r(n)==="br"?t.push(`
`):t.push(...Array.from(vg(n.childNodes)||[]))}return t};class g8 extends Od{constructor(t){super(...arguments),this.file=t}perform(t){const n=new FileReader;return n.onerror=()=>t(!1),n.onload=()=>{n.onerror=null;try{n.abort()}catch{}return t(!0,this.file)},n.readAsArrayBuffer(this.file)}}class FT{constructor(t){this.element=t}shouldIgnore(t){return!!Dl.samsungAndroid&&(this.previousEvent=this.event,this.event=t,this.checkSamsungKeyboardBuggyModeStart(),this.checkSamsungKeyboardBuggyModeEnd(),this.buggyMode)}checkSamsungKeyboardBuggyModeStart(){this.insertingLongTextAfterUnidentifiedChar()&&BT(this.element.innerText,this.event.data)&&(this.buggyMode=!0,this.event.preventDefault())}checkSamsungKeyboardBuggyModeEnd(){this.buggyMode&&this.event.inputType!=="insertText"&&(this.buggyMode=!1)}insertingLongTextAfterUnidentifiedChar(){var t;return this.isBeforeInputInsertText()&&this.previousEventWasUnidentifiedKeydown()&&((t=this.event.data)===null||t===void 0?void 0:t.length)>50}isBeforeInputInsertText(){return this.event.type==="beforeinput"&&this.event.inputType==="insertText"}previousEventWasUnidentifiedKeydown(){var t,n;return((t=this.previousEvent)===null||t===void 0?void 0:t.type)==="keydown"&&((n=this.previousEvent)===null||n===void 0?void 0:n.key)==="Unidentified"}}const BT=(s,t)=>m8(s)===m8(t),qT=new RegExp("(".concat("￼","|").concat(xd,"|").concat(Mo,"|\\s)+"),"g"),m8=s=>s.replace(qT," ").trim();class Md extends ur{constructor(t){super(...arguments),this.element=t,this.mutationObserver=new f8(this.element),this.mutationObserver.delegate=this,this.flakyKeyboardDetector=new FT(this.element);for(const n in this.constructor.events)Hn(n,{onElement:this.element,withCallback:this.handlerFor(n)})}elementDidMutate(t){}editorWillSyncDocumentView(){return this.mutationObserver.stop()}editorDidSyncDocumentView(){return this.mutationObserver.start()}requestRender(){var t,n;return(t=this.delegate)===null||t===void 0||(n=t.inputControllerDidRequestRender)===null||n===void 0?void 0:n.call(t)}requestReparse(){var t,n;return(t=this.delegate)===null||t===void 0||(n=t.inputControllerDidRequestReparse)===null||n===void 0||n.call(t),this.requestRender()}attachFiles(t){const n=Array.from(t).map((o=>new g8(o)));return Promise.all(n).then((o=>{this.handleInput((function(){var u,d;return(u=this.delegate)===null||u===void 0||u.inputControllerWillAttachFiles(),(d=this.responder)===null||d===void 0||d.insertFiles(o),this.requestRender()}))}))}handlerFor(t){return n=>{n.defaultPrevented||this.handleInput((()=>{if(!P1(this.element)){if(this.flakyKeyboardDetector.shouldIgnore(n))return;this.eventName=t,this.constructor.events[t].call(this,n)}}))}}handleInput(t){try{var n;(n=this.delegate)===null||n===void 0||n.inputControllerWillHandleInput(),t.call(this)}finally{var o;(o=this.delegate)===null||o===void 0||o.inputControllerDidHandleInput()}}createLinkHTML(t,n){const o=document.createElement("a");return o.href=t,o.textContent=n||t,o.outerHTML}}var yg;Ur(Md,"events",{});const{browser:zT,keyNames:p8}=Fl;let UT=0;class ao extends Md{constructor(){super(...arguments),this.resetInputSummary()}setInputSummary(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.inputSummary.eventName=this.eventName;for(const n in t){const o=t[n];this.inputSummary[n]=o}return this.inputSummary}resetInputSummary(){this.inputSummary={}}reset(){return this.resetInputSummary(),Oa.reset()}elementDidMutate(t){var n,o;return this.isComposing()?(n=this.delegate)===null||n===void 0||(o=n.inputControllerDidAllowUnhandledInput)===null||o===void 0?void 0:o.call(n):this.handleInput((function(){return this.mutationIsSignificant(t)&&(this.mutationIsExpected(t)?this.requestRender():this.requestReparse()),this.reset()}))}mutationIsExpected(t){let{textAdded:n,textDeleted:o}=t;if(this.inputSummary.preferDocument)return!0;const u=n!=null?n===this.inputSummary.textAdded:!this.inputSummary.textAdded,d=o!=null?this.inputSummary.didDelete:!this.inputSummary.didDelete,h=[`
`,` 
`].includes(n)&&!u,f=o===`
`&&!d;if(h&&!f||f&&!h){const p=this.getSelectedRange();if(p){var v;const y=h?n.replace(/\n$/,"").length||-1:(n==null?void 0:n.length)||1;if((v=this.responder)!==null&&v!==void 0&&v.positionIsBlockBreak(p[1]+y))return!0}}return u&&d}mutationIsSignificant(t){var n;const o=Object.keys(t).length>0,u=((n=this.compositionInput)===null||n===void 0?void 0:n.getEndData())==="";return o||!u}getCompositionInput(){if(this.isComposing())return this.compositionInput;this.compositionInput=new Bo(this)}isComposing(){return this.compositionInput&&!this.compositionInput.isEnded()}deleteInDirection(t,n){var o;return((o=this.responder)===null||o===void 0?void 0:o.deleteInDirection(t))!==!1?this.setInputSummary({didDelete:!0}):n?(n.preventDefault(),this.requestRender()):void 0}serializeSelectionToDataTransfer(t){var n;if(!(function(u){if(u==null||!u.setData)return!1;for(const d in ub){const h=ub[d];try{if(u.setData(d,h),!u.getData(d)===h)return!1}catch{return!1}}return!0})(t))return;const o=(n=this.responder)===null||n===void 0?void 0:n.getSelectedDocument().toSerializableDocument();return t.setData("application/x-trix-document",JSON.stringify(o)),t.setData("text/html",Ad.render(o).innerHTML),t.setData("text/plain",o.toString().replace(/\n$/,"")),!0}canAcceptDataTransfer(t){const n={};return Array.from((t==null?void 0:t.types)||[]).forEach((o=>{n[o]=!0})),n.Files||n["application/x-trix-document"]||n["text/html"]||n["text/plain"]}getPastedHTMLUsingHiddenElement(t){const n=this.getSelectedRange(),o={position:"absolute",left:"".concat(window.pageXOffset,"px"),top:"".concat(window.pageYOffset,"px"),opacity:0},u=Jt({style:o,tagName:"div",editable:!0});return document.body.appendChild(u),u.focus(),requestAnimationFrame((()=>{const d=u.innerHTML;return Ro(u),this.setSelectedRange(n),t(d)}))}}Ur(ao,"events",{keydown(s){this.isComposing()||this.resetInputSummary(),this.inputSummary.didInput=!0;const t=p8[s.keyCode];if(t){var n;let u=this.keys;["ctrl","alt","shift","meta"].forEach((d=>{var h;s["".concat(d,"Key")]&&(d==="ctrl"&&(d="control"),u=(h=u)===null||h===void 0?void 0:h[d])})),((n=u)===null||n===void 0?void 0:n[t])!=null&&(this.setInputSummary({keyName:t}),Oa.reset(),u[t].call(this,s))}if(cb(s)){const u=String.fromCharCode(s.keyCode).toLowerCase();if(u){var o;const d=["alt","shift"].map((h=>{if(s["".concat(h,"Key")])return h})).filter((h=>h));d.push(u),(o=this.delegate)!==null&&o!==void 0&&o.inputControllerDidReceiveKeyboardCommand(d)&&s.preventDefault()}}},keypress(s){if(this.inputSummary.eventName!=null||s.metaKey||s.ctrlKey&&!s.altKey)return;const t=GT(s);var n,o;return t?((n=this.delegate)===null||n===void 0||n.inputControllerWillPerformTyping(),(o=this.responder)===null||o===void 0||o.insertString(t),this.setInputSummary({textAdded:t,didDelete:this.selectionIsExpanded()})):void 0},textInput(s){const{data:t}=s,{textAdded:n}=this.inputSummary;if(n&&n!==t&&n.toUpperCase()===t){var o;const u=this.getSelectedRange();return this.setSelectedRange([u[0],u[1]+n.length]),(o=this.responder)===null||o===void 0||o.insertString(t),this.setInputSummary({textAdded:t}),this.setSelectedRange(u)}},dragenter(s){s.preventDefault()},dragstart(s){var t,n;return this.serializeSelectionToDataTransfer(s.dataTransfer),this.draggedRange=this.getSelectedRange(),(t=this.delegate)===null||t===void 0||(n=t.inputControllerDidStartDrag)===null||n===void 0?void 0:n.call(t)},dragover(s){if(this.draggedRange||this.canAcceptDataTransfer(s.dataTransfer)){s.preventDefault();const o={x:s.clientX,y:s.clientY};var t,n;if(!Au(o,this.draggingPoint))return this.draggingPoint=o,(t=this.delegate)===null||t===void 0||(n=t.inputControllerDidReceiveDragOverPoint)===null||n===void 0?void 0:n.call(t,this.draggingPoint)}},dragend(s){var t,n;(t=this.delegate)===null||t===void 0||(n=t.inputControllerDidCancelDrag)===null||n===void 0||n.call(t),this.draggedRange=null,this.draggingPoint=null},drop(s){var t,n;s.preventDefault();const o=(t=s.dataTransfer)===null||t===void 0?void 0:t.files,u=s.dataTransfer.getData("application/x-trix-document"),d={x:s.clientX,y:s.clientY};if((n=this.responder)===null||n===void 0||n.setLocationRangeFromPointRange(d),o!=null&&o.length)this.attachFiles(o);else if(this.draggedRange){var h,f;(h=this.delegate)===null||h===void 0||h.inputControllerWillMoveText(),(f=this.responder)===null||f===void 0||f.moveTextFromRange(this.draggedRange),this.draggedRange=null,this.requestRender()}else if(u){var v;const p=Vi.fromJSONString(u);(v=this.responder)===null||v===void 0||v.insertDocument(p),this.requestRender()}this.draggedRange=null,this.draggingPoint=null},cut(s){var t,n;if((t=this.responder)!==null&&t!==void 0&&t.selectionIsExpanded()&&(this.serializeSelectionToDataTransfer(s.clipboardData)&&s.preventDefault(),(n=this.delegate)===null||n===void 0||n.inputControllerWillCutText(),this.deleteInDirection("backward"),s.defaultPrevented))return this.requestRender()},copy(s){var t;(t=this.responder)!==null&&t!==void 0&&t.selectionIsExpanded()&&this.serializeSelectionToDataTransfer(s.clipboardData)&&s.preventDefault()},paste(s){const t=s.clipboardData||s.testClipboardData,n={clipboard:t};if(!t||WT(s))return void this.getPastedHTMLUsingHiddenElement((T=>{var O,q,k;return n.type="text/html",n.html=T,(O=this.delegate)===null||O===void 0||O.inputControllerWillPaste(n),(q=this.responder)===null||q===void 0||q.insertHTML(n.html),this.requestRender(),(k=this.delegate)===null||k===void 0?void 0:k.inputControllerDidPaste(n)}));const o=t.getData("URL"),u=t.getData("text/html"),d=t.getData("public.url-name");if(o){var h,f,v;let T;n.type="text/html",T=d?Q1(d).trim():o,n.html=this.createLinkHTML(o,T),(h=this.delegate)===null||h===void 0||h.inputControllerWillPaste(n),this.setInputSummary({textAdded:T,didDelete:this.selectionIsExpanded()}),(f=this.responder)===null||f===void 0||f.insertHTML(n.html),this.requestRender(),(v=this.delegate)===null||v===void 0||v.inputControllerDidPaste(n)}else if(lb(t)){var p,y,x;n.type="text/plain",n.string=t.getData("text/plain"),(p=this.delegate)===null||p===void 0||p.inputControllerWillPaste(n),this.setInputSummary({textAdded:n.string,didDelete:this.selectionIsExpanded()}),(y=this.responder)===null||y===void 0||y.insertString(n.string),this.requestRender(),(x=this.delegate)===null||x===void 0||x.inputControllerDidPaste(n)}else if(u){var _,S,N;n.type="text/html",n.html=u,(_=this.delegate)===null||_===void 0||_.inputControllerWillPaste(n),(S=this.responder)===null||S===void 0||S.insertHTML(n.html),this.requestRender(),(N=this.delegate)===null||N===void 0||N.inputControllerDidPaste(n)}else if(Array.from(t.types).includes("Files")){var w,j;const T=(w=t.items)===null||w===void 0||(w=w[0])===null||w===void 0||(j=w.getAsFile)===null||j===void 0?void 0:j.call(w);if(T){var U,M,D;const O=VT(T);!T.name&&O&&(T.name="pasted-file-".concat(++UT,".").concat(O)),n.type="File",n.file=T,(U=this.delegate)===null||U===void 0||U.inputControllerWillAttachFiles(),(M=this.responder)===null||M===void 0||M.insertFile(n.file),this.requestRender(),(D=this.delegate)===null||D===void 0||D.inputControllerDidPaste(n)}}s.preventDefault()},compositionstart(s){return this.getCompositionInput().start(s.data)},compositionupdate(s){return this.getCompositionInput().update(s.data)},compositionend(s){return this.getCompositionInput().end(s.data)},beforeinput(s){this.inputSummary.didInput=!0},input(s){return this.inputSummary.didInput=!0,s.stopPropagation()}}),Ur(ao,"keys",{backspace(s){var t;return(t=this.delegate)===null||t===void 0||t.inputControllerWillPerformTyping(),this.deleteInDirection("backward",s)},delete(s){var t;return(t=this.delegate)===null||t===void 0||t.inputControllerWillPerformTyping(),this.deleteInDirection("forward",s)},return(s){var t,n;return this.setInputSummary({preferDocument:!0}),(t=this.delegate)===null||t===void 0||t.inputControllerWillPerformTyping(),(n=this.responder)===null||n===void 0?void 0:n.insertLineBreak()},tab(s){var t,n;(t=this.responder)!==null&&t!==void 0&&t.canIncreaseNestingLevel()&&((n=this.responder)===null||n===void 0||n.increaseNestingLevel(),this.requestRender(),s.preventDefault())},left(s){var t;if(this.selectionIsInCursorTarget())return s.preventDefault(),(t=this.responder)===null||t===void 0?void 0:t.moveCursorInDirection("backward")},right(s){var t;if(this.selectionIsInCursorTarget())return s.preventDefault(),(t=this.responder)===null||t===void 0?void 0:t.moveCursorInDirection("forward")},control:{d(s){var t;return(t=this.delegate)===null||t===void 0||t.inputControllerWillPerformTyping(),this.deleteInDirection("forward",s)},h(s){var t;return(t=this.delegate)===null||t===void 0||t.inputControllerWillPerformTyping(),this.deleteInDirection("backward",s)},o(s){var t,n;return s.preventDefault(),(t=this.delegate)===null||t===void 0||t.inputControllerWillPerformTyping(),(n=this.responder)===null||n===void 0||n.insertString(`
`,{updatePosition:!1}),this.requestRender()}},shift:{return(s){var t,n;(t=this.delegate)===null||t===void 0||t.inputControllerWillPerformTyping(),(n=this.responder)===null||n===void 0||n.insertString(`
`),this.requestRender(),s.preventDefault()},tab(s){var t,n;(t=this.responder)!==null&&t!==void 0&&t.canDecreaseNestingLevel()&&((n=this.responder)===null||n===void 0||n.decreaseNestingLevel(),this.requestRender(),s.preventDefault())},left(s){if(this.selectionIsInCursorTarget())return s.preventDefault(),this.expandSelectionInDirection("backward")},right(s){if(this.selectionIsInCursorTarget())return s.preventDefault(),this.expandSelectionInDirection("forward")}},alt:{backspace(s){var t;return this.setInputSummary({preferDocument:!1}),(t=this.delegate)===null||t===void 0?void 0:t.inputControllerWillPerformTyping()}},meta:{backspace(s){var t;return this.setInputSummary({preferDocument:!1}),(t=this.delegate)===null||t===void 0?void 0:t.inputControllerWillPerformTyping()}}}),ao.proxyMethod("responder?.getSelectedRange"),ao.proxyMethod("responder?.setSelectedRange"),ao.proxyMethod("responder?.expandSelectionInDirection"),ao.proxyMethod("responder?.selectionIsInCursorTarget"),ao.proxyMethod("responder?.selectionIsExpanded");const VT=s=>{var t;return(t=s.type)===null||t===void 0||(t=t.match(/\/(\w+)$/))===null||t===void 0?void 0:t[1]},HT=!((yg=" ".codePointAt)===null||yg===void 0||!yg.call(" ",0)),GT=function(s){if(s.key&&HT&&s.key.codePointAt(0)===s.keyCode)return s.key;{let t;if(s.which===null?t=s.keyCode:s.which!==0&&s.charCode!==0&&(t=s.charCode),t!=null&&p8[t]!=="escape")return Bl.fromCodepoints([t]).toString()}},WT=function(s){const t=s.clipboardData;if(t){if(t.types.includes("text/html")){for(const n of t.types){const o=/^CorePasteboardFlavorType/.test(n),u=/^dyn\./.test(n)&&t.getData(n);if(o||u)return!0}return!1}{const n=t.types.includes("com.apple.webarchive"),o=t.types.includes("com.apple.flat-rtfd");return n||o}}};class Bo extends ur{constructor(t){super(...arguments),this.inputController=t,this.responder=this.inputController.responder,this.delegate=this.inputController.delegate,this.inputSummary=this.inputController.inputSummary,this.data={}}start(t){if(this.data.start=t,this.isSignificant()){var n,o;this.inputSummary.eventName==="keypress"&&this.inputSummary.textAdded&&((o=this.responder)===null||o===void 0||o.deleteInDirection("left")),this.selectionIsExpanded()||(this.insertPlaceholder(),this.requestRender()),this.range=(n=this.responder)===null||n===void 0?void 0:n.getSelectedRange()}}update(t){if(this.data.update=t,this.isSignificant()){const n=this.selectPlaceholder();n&&(this.forgetPlaceholder(),this.range=n)}}end(t){return this.data.end=t,this.isSignificant()?(this.forgetPlaceholder(),this.canApplyToDocument()?(this.setInputSummary({preferDocument:!0,didInput:!1}),(n=this.delegate)===null||n===void 0||n.inputControllerWillPerformTyping(),(o=this.responder)===null||o===void 0||o.setSelectedRange(this.range),(u=this.responder)===null||u===void 0||u.insertString(this.data.end),(d=this.responder)===null||d===void 0?void 0:d.setSelectedRange(this.range[0]+this.data.end.length)):this.data.start!=null||this.data.update!=null?(this.requestReparse(),this.inputController.reset()):void 0):this.inputController.reset();var n,o,u,d}getEndData(){return this.data.end}isEnded(){return this.getEndData()!=null}isSignificant(){return!zT.composesExistingText||this.inputSummary.didInput}canApplyToDocument(){var t,n;return((t=this.data.start)===null||t===void 0?void 0:t.length)===0&&((n=this.data.end)===null||n===void 0?void 0:n.length)>0&&this.range}}Bo.proxyMethod("inputController.setInputSummary"),Bo.proxyMethod("inputController.requestRender"),Bo.proxyMethod("inputController.requestReparse"),Bo.proxyMethod("responder?.selectionIsExpanded"),Bo.proxyMethod("responder?.insertPlaceholder"),Bo.proxyMethod("responder?.selectPlaceholder"),Bo.proxyMethod("responder?.forgetPlaceholder");class Xl extends Md{constructor(){super(...arguments),this.render=this.render.bind(this)}elementDidMutate(){return this.scheduledRender?this.composing?(t=this.delegate)===null||t===void 0||(n=t.inputControllerDidAllowUnhandledInput)===null||n===void 0?void 0:n.call(t):void 0:this.reparse();var t,n}scheduleRender(){return this.scheduledRender?this.scheduledRender:this.scheduledRender=requestAnimationFrame(this.render)}render(){var t,n;cancelAnimationFrame(this.scheduledRender),this.scheduledRender=null,this.composing||(n=this.delegate)===null||n===void 0||n.render(),(t=this.afterRender)===null||t===void 0||t.call(this),this.afterRender=null}reparse(){var t;return(t=this.delegate)===null||t===void 0?void 0:t.reparse()}insertString(){var t;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1?arguments[1]:void 0;return(t=this.delegate)===null||t===void 0||t.inputControllerWillPerformTyping(),this.withTargetDOMRange((function(){var u;return(u=this.responder)===null||u===void 0?void 0:u.insertString(n,o)}))}toggleAttributeIfSupported(t){var n;if(Z1().includes(t))return(n=this.delegate)===null||n===void 0||n.inputControllerWillPerformFormatting(t),this.withTargetDOMRange((function(){var o;return(o=this.responder)===null||o===void 0?void 0:o.toggleCurrentAttribute(t)}))}activateAttributeIfSupported(t,n){var o;if(Z1().includes(t))return(o=this.delegate)===null||o===void 0||o.inputControllerWillPerformFormatting(t),this.withTargetDOMRange((function(){var u;return(u=this.responder)===null||u===void 0?void 0:u.setCurrentAttribute(t,n)}))}deleteInDirection(t){let{recordUndoEntry:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{recordUndoEntry:!0};var o;n&&((o=this.delegate)===null||o===void 0||o.inputControllerWillPerformTyping());const u=()=>{var h;return(h=this.responder)===null||h===void 0?void 0:h.deleteInDirection(t)},d=this.getTargetDOMRange({minLength:this.composing?1:2});return d?this.withTargetDOMRange(d,u):u()}withTargetDOMRange(t,n){var o;return typeof t=="function"&&(n=t,t=this.getTargetDOMRange()),t?(o=this.responder)===null||o===void 0?void 0:o.withTargetDOMRange(t,n.bind(this)):(Oa.reset(),n.call(this))}getTargetDOMRange(){var t,n;let{minLength:o}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{minLength:0};const u=(t=(n=this.event).getTargetRanges)===null||t===void 0?void 0:t.call(n);if(u&&u.length){const d=ZT(u[0]);if(o===0||d.toString().length>=o)return d}}withEvent(t,n){let o;this.event=t;try{o=n.call(this)}finally{this.event=null}return o}}Ur(Xl,"events",{keydown(s){if(cb(s)){var t;const n=KT(s);(t=this.delegate)!==null&&t!==void 0&&t.inputControllerDidReceiveKeyboardCommand(n)&&s.preventDefault()}else{let n=s.key;s.altKey&&(n+="+Alt"),s.shiftKey&&(n+="+Shift");const o=this.constructor.keys[n];if(o)return this.withEvent(s,o)}},paste(s){var t;let n;const o=(t=s.clipboardData)===null||t===void 0?void 0:t.getData("URL");return v8(s)?(s.preventDefault(),this.attachFiles(s.clipboardData.files)):YT(s)?(s.preventDefault(),n={type:"text/plain",string:s.clipboardData.getData("text/plain")},(u=this.delegate)===null||u===void 0||u.inputControllerWillPaste(n),(d=this.responder)===null||d===void 0||d.insertString(n.string),this.render(),(h=this.delegate)===null||h===void 0?void 0:h.inputControllerDidPaste(n)):o?(s.preventDefault(),n={type:"text/html",html:this.createLinkHTML(o)},(f=this.delegate)===null||f===void 0||f.inputControllerWillPaste(n),(v=this.responder)===null||v===void 0||v.insertHTML(n.html),this.render(),(p=this.delegate)===null||p===void 0?void 0:p.inputControllerDidPaste(n)):void 0;var u,d,h,f,v,p},beforeinput(s){const t=this.constructor.inputTypes[s.inputType],n=(o=s,!(!/iPhone|iPad/.test(navigator.userAgent)||o.inputType&&o.inputType!=="insertParagraph"));var o;t&&(this.withEvent(s,t),n||this.scheduleRender()),n&&this.render()},input(s){Oa.reset()},dragstart(s){var t,n;(t=this.responder)!==null&&t!==void 0&&t.selectionContainsAttachments()&&(s.dataTransfer.setData("application/x-trix-dragging",!0),this.dragging={range:(n=this.responder)===null||n===void 0?void 0:n.getSelectedRange(),point:xg(s)})},dragenter(s){bg(s)&&s.preventDefault()},dragover(s){if(this.dragging){s.preventDefault();const n=xg(s);var t;if(!Au(n,this.dragging.point))return this.dragging.point=n,(t=this.responder)===null||t===void 0?void 0:t.setLocationRangeFromPointRange(n)}else bg(s)&&s.preventDefault()},drop(s){var t,n;if(this.dragging)return s.preventDefault(),(t=this.delegate)===null||t===void 0||t.inputControllerWillMoveText(),(n=this.responder)===null||n===void 0||n.moveTextFromRange(this.dragging.range),this.dragging=null,this.scheduleRender();if(bg(s)){var o;s.preventDefault();const u=xg(s);return(o=this.responder)===null||o===void 0||o.setLocationRangeFromPointRange(u),this.attachFiles(s.dataTransfer.files)}},dragend(){var s;this.dragging&&((s=this.responder)===null||s===void 0||s.setSelectedRange(this.dragging.range),this.dragging=null)},compositionend(s){this.composing&&(this.composing=!1,Dl.recentAndroid||this.scheduleRender())}}),Ur(Xl,"keys",{ArrowLeft(){var s,t;if((s=this.responder)!==null&&s!==void 0&&s.shouldManageMovingCursorInDirection("backward"))return this.event.preventDefault(),(t=this.responder)===null||t===void 0?void 0:t.moveCursorInDirection("backward")},ArrowRight(){var s,t;if((s=this.responder)!==null&&s!==void 0&&s.shouldManageMovingCursorInDirection("forward"))return this.event.preventDefault(),(t=this.responder)===null||t===void 0?void 0:t.moveCursorInDirection("forward")},Backspace(){var s,t,n;if((s=this.responder)!==null&&s!==void 0&&s.shouldManageDeletingInDirection("backward"))return this.event.preventDefault(),(t=this.delegate)===null||t===void 0||t.inputControllerWillPerformTyping(),(n=this.responder)===null||n===void 0||n.deleteInDirection("backward"),this.render()},Tab(){var s,t;if((s=this.responder)!==null&&s!==void 0&&s.canIncreaseNestingLevel())return this.event.preventDefault(),(t=this.responder)===null||t===void 0||t.increaseNestingLevel(),this.render()},"Tab+Shift"(){var s,t;if((s=this.responder)!==null&&s!==void 0&&s.canDecreaseNestingLevel())return this.event.preventDefault(),(t=this.responder)===null||t===void 0||t.decreaseNestingLevel(),this.render()}}),Ur(Xl,"inputTypes",{deleteByComposition(){return this.deleteInDirection("backward",{recordUndoEntry:!1})},deleteByCut(){return this.deleteInDirection("backward")},deleteByDrag(){return this.event.preventDefault(),this.withTargetDOMRange((function(){var s;this.deleteByDragRange=(s=this.responder)===null||s===void 0?void 0:s.getSelectedRange()}))},deleteCompositionText(){return this.deleteInDirection("backward",{recordUndoEntry:!1})},deleteContent(){return this.deleteInDirection("backward")},deleteContentBackward(){return this.deleteInDirection("backward")},deleteContentForward(){return this.deleteInDirection("forward")},deleteEntireSoftLine(){return this.deleteInDirection("forward")},deleteHardLineBackward(){return this.deleteInDirection("backward")},deleteHardLineForward(){return this.deleteInDirection("forward")},deleteSoftLineBackward(){return this.deleteInDirection("backward")},deleteSoftLineForward(){return this.deleteInDirection("forward")},deleteWordBackward(){return this.deleteInDirection("backward")},deleteWordForward(){return this.deleteInDirection("forward")},formatBackColor(){return this.activateAttributeIfSupported("backgroundColor",this.event.data)},formatBold(){return this.toggleAttributeIfSupported("bold")},formatFontColor(){return this.activateAttributeIfSupported("color",this.event.data)},formatFontName(){return this.activateAttributeIfSupported("font",this.event.data)},formatIndent(){var s;if((s=this.responder)!==null&&s!==void 0&&s.canIncreaseNestingLevel())return this.withTargetDOMRange((function(){var t;return(t=this.responder)===null||t===void 0?void 0:t.increaseNestingLevel()}))},formatItalic(){return this.toggleAttributeIfSupported("italic")},formatJustifyCenter(){return this.toggleAttributeIfSupported("justifyCenter")},formatJustifyFull(){return this.toggleAttributeIfSupported("justifyFull")},formatJustifyLeft(){return this.toggleAttributeIfSupported("justifyLeft")},formatJustifyRight(){return this.toggleAttributeIfSupported("justifyRight")},formatOutdent(){var s;if((s=this.responder)!==null&&s!==void 0&&s.canDecreaseNestingLevel())return this.withTargetDOMRange((function(){var t;return(t=this.responder)===null||t===void 0?void 0:t.decreaseNestingLevel()}))},formatRemove(){this.withTargetDOMRange((function(){for(const n in(s=this.responder)===null||s===void 0?void 0:s.getCurrentAttributes()){var s,t;(t=this.responder)===null||t===void 0||t.removeCurrentAttribute(n)}}))},formatSetBlockTextDirection(){return this.activateAttributeIfSupported("blockDir",this.event.data)},formatSetInlineTextDirection(){return this.activateAttributeIfSupported("textDir",this.event.data)},formatStrikeThrough(){return this.toggleAttributeIfSupported("strike")},formatSubscript(){return this.toggleAttributeIfSupported("sub")},formatSuperscript(){return this.toggleAttributeIfSupported("sup")},formatUnderline(){return this.toggleAttributeIfSupported("underline")},historyRedo(){var s;return(s=this.delegate)===null||s===void 0?void 0:s.inputControllerWillPerformRedo()},historyUndo(){var s;return(s=this.delegate)===null||s===void 0?void 0:s.inputControllerWillPerformUndo()},insertCompositionText(){return this.composing=!0,this.insertString(this.event.data)},insertFromComposition(){return this.composing=!1,this.insertString(this.event.data)},insertFromDrop(){const s=this.deleteByDragRange;var t;if(s)return this.deleteByDragRange=null,(t=this.delegate)===null||t===void 0||t.inputControllerWillMoveText(),this.withTargetDOMRange((function(){var n;return(n=this.responder)===null||n===void 0?void 0:n.moveTextFromRange(s)}))},insertFromPaste(){const{dataTransfer:s}=this.event,t={dataTransfer:s},n=s.getData("URL"),o=s.getData("text/html");if(n){var u;let v;this.event.preventDefault(),t.type="text/html";const p=s.getData("public.url-name");v=p?Q1(p).trim():n,t.html=this.createLinkHTML(n,v),(u=this.delegate)===null||u===void 0||u.inputControllerWillPaste(t),this.withTargetDOMRange((function(){var y;return(y=this.responder)===null||y===void 0?void 0:y.insertHTML(t.html)})),this.afterRender=()=>{var y;return(y=this.delegate)===null||y===void 0?void 0:y.inputControllerDidPaste(t)}}else if(lb(s)){var d;t.type="text/plain",t.string=s.getData("text/plain"),(d=this.delegate)===null||d===void 0||d.inputControllerWillPaste(t),this.withTargetDOMRange((function(){var v;return(v=this.responder)===null||v===void 0?void 0:v.insertString(t.string)})),this.afterRender=()=>{var v;return(v=this.delegate)===null||v===void 0?void 0:v.inputControllerDidPaste(t)}}else if(XT(this.event)){var h;t.type="File",t.file=s.files[0],(h=this.delegate)===null||h===void 0||h.inputControllerWillPaste(t),this.withTargetDOMRange((function(){var v;return(v=this.responder)===null||v===void 0?void 0:v.insertFile(t.file)})),this.afterRender=()=>{var v;return(v=this.delegate)===null||v===void 0?void 0:v.inputControllerDidPaste(t)}}else if(o){var f;this.event.preventDefault(),t.type="text/html",t.html=o,(f=this.delegate)===null||f===void 0||f.inputControllerWillPaste(t),this.withTargetDOMRange((function(){var v;return(v=this.responder)===null||v===void 0?void 0:v.insertHTML(t.html)})),this.afterRender=()=>{var v;return(v=this.delegate)===null||v===void 0?void 0:v.inputControllerDidPaste(t)}}},insertFromYank(){return this.insertString(this.event.data)},insertLineBreak(){return this.insertString(`
`)},insertLink(){return this.activateAttributeIfSupported("href",this.event.data)},insertOrderedList(){return this.toggleAttributeIfSupported("number")},insertParagraph(){var s;return(s=this.delegate)===null||s===void 0||s.inputControllerWillPerformTyping(),this.withTargetDOMRange((function(){var t;return(t=this.responder)===null||t===void 0?void 0:t.insertLineBreak()}))},insertReplacementText(){const s=this.event.dataTransfer.getData("text/plain"),t=this.event.getTargetRanges()[0];this.withTargetDOMRange(t,(()=>{this.insertString(s,{updatePosition:!1})}))},insertText(){var s;return this.insertString(this.event.data||((s=this.event.dataTransfer)===null||s===void 0?void 0:s.getData("text/plain")))},insertTranspose(){return this.insertString(this.event.data)},insertUnorderedList(){return this.toggleAttributeIfSupported("bullet")}});const ZT=function(s){const t=document.createRange();return t.setStart(s.startContainer,s.startOffset),t.setEnd(s.endContainer,s.endOffset),t},bg=s=>{var t;return Array.from(((t=s.dataTransfer)===null||t===void 0?void 0:t.types)||[]).includes("Files")},XT=s=>{var t;return((t=s.dataTransfer.files)===null||t===void 0?void 0:t[0])&&!v8(s)&&!(n=>{let{dataTransfer:o}=n;return o.types.includes("Files")&&o.types.includes("text/html")&&o.getData("text/html").includes("urn:schemas-microsoft-com:office:office")})(s)},v8=function(s){const t=s.clipboardData;if(t)return Array.from(t.types).filter((n=>n.match(/file/i))).length===t.types.length&&t.files.length>=1},YT=function(s){const t=s.clipboardData;if(t)return t.types.includes("text/plain")&&t.types.length===1},KT=function(s){const t=[];return s.altKey&&t.push("alt"),s.shiftKey&&t.push("shift"),t.push(s.key),t},xg=s=>({x:s.clientX,y:s.clientY}),Cg="[data-trix-attribute]",_g="[data-trix-action]",JT="".concat(Cg,", ").concat(_g),kd="[data-trix-dialog]",QT="".concat(kd,"[data-trix-active]"),$T="".concat(kd," [data-trix-method]"),y8="".concat(kd," [data-trix-input]"),b8=(s,t)=>(t||(t=Bu(s)),s.querySelector("[data-trix-input][name='".concat(t,"']"))),x8=s=>s.getAttribute("data-trix-action"),Bu=s=>s.getAttribute("data-trix-attribute")||s.getAttribute("data-trix-dialog-attribute");class C8 extends ur{constructor(t){super(t),this.didClickActionButton=this.didClickActionButton.bind(this),this.didClickAttributeButton=this.didClickAttributeButton.bind(this),this.didClickDialogButton=this.didClickDialogButton.bind(this),this.didKeyDownDialogInput=this.didKeyDownDialogInput.bind(this),this.element=t,this.attributes={},this.actions={},this.resetDialogInputs(),Hn("mousedown",{onElement:this.element,matchingSelector:_g,withCallback:this.didClickActionButton}),Hn("mousedown",{onElement:this.element,matchingSelector:Cg,withCallback:this.didClickAttributeButton}),Hn("click",{onElement:this.element,matchingSelector:JT,preventDefault:!0}),Hn("click",{onElement:this.element,matchingSelector:$T,withCallback:this.didClickDialogButton}),Hn("keydown",{onElement:this.element,matchingSelector:y8,withCallback:this.didKeyDownDialogInput})}didClickActionButton(t,n){var o;(o=this.delegate)===null||o===void 0||o.toolbarDidClickButton(),t.preventDefault();const u=x8(n);return this.getDialog(u)?this.toggleDialog(u):(d=this.delegate)===null||d===void 0?void 0:d.toolbarDidInvokeAction(u,n);var d}didClickAttributeButton(t,n){var o;(o=this.delegate)===null||o===void 0||o.toolbarDidClickButton(),t.preventDefault();const u=Bu(n);var d;return this.getDialog(u)?this.toggleDialog(u):(d=this.delegate)===null||d===void 0||d.toolbarDidToggleAttribute(u),this.refreshAttributeButtons()}didClickDialogButton(t,n){const o=ko(n,{matchingSelector:kd});return this[n.getAttribute("data-trix-method")].call(this,o)}didKeyDownDialogInput(t,n){if(t.keyCode===13){t.preventDefault();const o=n.getAttribute("name"),u=this.getDialog(o);this.setAttribute(u)}if(t.keyCode===27)return t.preventDefault(),this.hideDialog()}updateActions(t){return this.actions=t,this.refreshActionButtons()}refreshActionButtons(){return this.eachActionButton(((t,n)=>{t.disabled=this.actions[n]===!1}))}eachActionButton(t){return Array.from(this.element.querySelectorAll(_g)).map((n=>t(n,x8(n))))}updateAttributes(t){return this.attributes=t,this.refreshAttributeButtons()}refreshAttributeButtons(){return this.eachAttributeButton(((t,n)=>(t.disabled=this.attributes[n]===!1,this.attributes[n]||this.dialogIsVisible(n)?(t.setAttribute("data-trix-active",""),t.classList.add("trix-active")):(t.removeAttribute("data-trix-active"),t.classList.remove("trix-active")))))}eachAttributeButton(t){return Array.from(this.element.querySelectorAll(Cg)).map((n=>t(n,Bu(n))))}applyKeyboardCommand(t){const n=JSON.stringify(t.sort());for(const o of Array.from(this.element.querySelectorAll("[data-trix-key]"))){const u=o.getAttribute("data-trix-key").split("+");if(JSON.stringify(u.sort())===n)return Ml("mousedown",{onElement:o}),!0}return!1}dialogIsVisible(t){const n=this.getDialog(t);if(n)return n.hasAttribute("data-trix-active")}toggleDialog(t){return this.dialogIsVisible(t)?this.hideDialog():this.showDialog(t)}showDialog(t){var n,o;this.hideDialog(),(n=this.delegate)===null||n===void 0||n.toolbarWillShowDialog();const u=this.getDialog(t);u.setAttribute("data-trix-active",""),u.classList.add("trix-active"),Array.from(u.querySelectorAll("input[disabled]")).forEach((h=>{h.removeAttribute("disabled")}));const d=Bu(u);if(d){const h=b8(u,t);h&&(h.value=this.attributes[d]||"",h.select())}return(o=this.delegate)===null||o===void 0?void 0:o.toolbarDidShowDialog(t)}setAttribute(t){var n;const o=Bu(t),u=b8(t,o);return!u.willValidate||(u.setCustomValidity(""),u.checkValidity()&&this.isSafeAttribute(u))?((n=this.delegate)===null||n===void 0||n.toolbarDidUpdateAttribute(o,u.value),this.hideDialog()):(u.setCustomValidity("Invalid value"),u.setAttribute("data-trix-validate",""),u.classList.add("trix-validate"),u.focus())}isSafeAttribute(t){return!t.hasAttribute("data-trix-validate-href")||ku.isValidAttribute("a","href",t.value)}removeAttribute(t){var n;const o=Bu(t);return(n=this.delegate)===null||n===void 0||n.toolbarDidRemoveAttribute(o),this.hideDialog()}hideDialog(){const t=this.element.querySelector(QT);var n;if(t)return t.removeAttribute("data-trix-active"),t.classList.remove("trix-active"),this.resetDialogInputs(),(n=this.delegate)===null||n===void 0?void 0:n.toolbarDidHideDialog((o=>o.getAttribute("data-trix-dialog"))(t))}resetDialogInputs(){Array.from(this.element.querySelectorAll(y8)).forEach((t=>{t.setAttribute("disabled","disabled"),t.removeAttribute("data-trix-validate"),t.classList.remove("trix-validate")}))}getDialog(t){return this.element.querySelector("[data-trix-dialog=".concat(t,"]"))}}class Yl extends d8{constructor(t){let{editorElement:n,document:o,html:u}=t;super(...arguments),this.editorElement=n,this.selectionManager=new Ia(this.editorElement),this.selectionManager.delegate=this,this.composition=new Fo,this.composition.delegate=this,this.attachmentManager=new e8(this.composition.getAttachments()),this.attachmentManager.delegate=this,this.inputController=R1.getLevel()===2?new Xl(this.editorElement):new ao(this.editorElement),this.inputController.delegate=this,this.inputController.responder=this.composition,this.compositionController=new c8(this.editorElement,this.composition),this.compositionController.delegate=this,this.toolbarController=new C8(this.editorElement.toolbarElement),this.toolbarController.delegate=this,this.editor=new i8(this.composition,this.selectionManager,this.editorElement),o?this.editor.loadDocument(o):this.editor.loadHTML(u)}registerSelectionManager(){return Oa.registerSelectionManager(this.selectionManager)}unregisterSelectionManager(){return Oa.unregisterSelectionManager(this.selectionManager)}render(){return this.compositionController.render()}reparse(){return this.composition.replaceHTML(this.editorElement.innerHTML)}compositionDidChangeDocument(t){if(this.notifyEditorElement("document-change"),!this.handlingInput)return this.render()}compositionDidChangeCurrentAttributes(t){return this.currentAttributes=t,this.toolbarController.updateAttributes(this.currentAttributes),this.updateCurrentActions(),this.notifyEditorElement("attributes-change",{attributes:this.currentAttributes})}compositionDidPerformInsertionAtRange(t){this.pasting&&(this.pastedRange=t)}compositionShouldAcceptFile(t){return this.notifyEditorElement("file-accept",{file:t})}compositionDidAddAttachment(t){const n=this.attachmentManager.manageAttachment(t);return this.notifyEditorElement("attachment-add",{attachment:n})}compositionDidEditAttachment(t){this.compositionController.rerenderViewForObject(t);const n=this.attachmentManager.manageAttachment(t);return this.notifyEditorElement("attachment-edit",{attachment:n}),this.notifyEditorElement("change")}compositionDidChangeAttachmentPreviewURL(t){return this.compositionController.invalidateViewForObject(t),this.notifyEditorElement("change")}compositionDidRemoveAttachment(t){const n=this.attachmentManager.unmanageAttachment(t);return this.notifyEditorElement("attachment-remove",{attachment:n})}compositionDidStartEditingAttachment(t,n){return this.attachmentLocationRange=this.composition.document.getLocationRangeOfAttachment(t),this.compositionController.installAttachmentEditorForAttachment(t,n),this.selectionManager.setLocationRange(this.attachmentLocationRange)}compositionDidStopEditingAttachment(t){this.compositionController.uninstallAttachmentEditor(),this.attachmentLocationRange=null}compositionDidRequestChangingSelectionToLocationRange(t){if(!this.loadingSnapshot||this.isFocused())return this.requestedLocationRange=t,this.compositionRevisionWhenLocationRangeRequested=this.composition.revision,this.handlingInput?void 0:this.render()}compositionWillLoadSnapshot(){this.loadingSnapshot=!0}compositionDidLoadSnapshot(){this.compositionController.refreshViewCache(),this.render(),this.loadingSnapshot=!1}getSelectionManager(){return this.selectionManager}attachmentManagerDidRequestRemovalOfAttachment(t){return this.removeAttachment(t)}compositionControllerWillSyncDocumentView(){return this.inputController.editorWillSyncDocumentView(),this.selectionManager.lock(),this.selectionManager.clearSelection()}compositionControllerDidSyncDocumentView(){return this.inputController.editorDidSyncDocumentView(),this.selectionManager.unlock(),this.updateCurrentActions(),this.notifyEditorElement("sync")}compositionControllerDidRender(){this.requestedLocationRange&&(this.compositionRevisionWhenLocationRangeRequested===this.composition.revision&&this.selectionManager.setLocationRange(this.requestedLocationRange),this.requestedLocationRange=null,this.compositionRevisionWhenLocationRangeRequested=null),this.renderedCompositionRevision!==this.composition.revision&&(this.runEditorFilters(),this.composition.updateCurrentAttributes(),this.notifyEditorElement("render")),this.renderedCompositionRevision=this.composition.revision}compositionControllerDidFocus(){return this.isFocusedInvisibly()&&this.setLocationRange({index:0,offset:0}),this.toolbarController.hideDialog(),this.notifyEditorElement("focus")}compositionControllerDidBlur(){return this.notifyEditorElement("blur")}compositionControllerDidSelectAttachment(t,n){return this.toolbarController.hideDialog(),this.composition.editAttachment(t,n)}compositionControllerDidRequestDeselectingAttachment(t){const n=this.attachmentLocationRange||this.composition.document.getLocationRangeOfAttachment(t);return this.selectionManager.setLocationRange(n[1])}compositionControllerWillUpdateAttachment(t){return this.editor.recordUndoEntry("Edit Attachment",{context:t.id,consolidatable:!0})}compositionControllerDidRequestRemovalOfAttachment(t){return this.removeAttachment(t)}inputControllerWillHandleInput(){this.handlingInput=!0,this.requestedRender=!1}inputControllerDidRequestRender(){this.requestedRender=!0}inputControllerDidHandleInput(){if(this.handlingInput=!1,this.requestedRender)return this.requestedRender=!1,this.render()}inputControllerDidAllowUnhandledInput(){return this.notifyEditorElement("change")}inputControllerDidRequestReparse(){return this.reparse()}inputControllerWillPerformTyping(){return this.recordTypingUndoEntry()}inputControllerWillPerformFormatting(t){return this.recordFormattingUndoEntry(t)}inputControllerWillCutText(){return this.editor.recordUndoEntry("Cut")}inputControllerWillPaste(t){return this.editor.recordUndoEntry("Paste"),this.pasting=!0,this.notifyEditorElement("before-paste",{paste:t})}inputControllerDidPaste(t){return t.range=this.pastedRange,this.pastedRange=null,this.pasting=null,this.notifyEditorElement("paste",{paste:t})}inputControllerWillMoveText(){return this.editor.recordUndoEntry("Move")}inputControllerWillAttachFiles(){return this.editor.recordUndoEntry("Drop Files")}inputControllerWillPerformUndo(){return this.editor.undo()}inputControllerWillPerformRedo(){return this.editor.redo()}inputControllerDidReceiveKeyboardCommand(t){return this.toolbarController.applyKeyboardCommand(t)}inputControllerDidStartDrag(){this.locationRangeBeforeDrag=this.selectionManager.getLocationRange()}inputControllerDidReceiveDragOverPoint(t){return this.selectionManager.setLocationRangeFromPointRange(t)}inputControllerDidCancelDrag(){this.selectionManager.setLocationRange(this.locationRangeBeforeDrag),this.locationRangeBeforeDrag=null}locationRangeDidChange(t){return this.composition.updateCurrentAttributes(),this.updateCurrentActions(),this.attachmentLocationRange&&!wd(this.attachmentLocationRange,t)&&this.composition.stopEditingAttachment(),this.notifyEditorElement("selection-change")}toolbarDidClickButton(){if(!this.getLocationRange())return this.setLocationRange({index:0,offset:0})}toolbarDidInvokeAction(t,n){return this.invokeAction(t,n)}toolbarDidToggleAttribute(t){if(this.recordFormattingUndoEntry(t),this.composition.toggleCurrentAttribute(t),this.render(),!this.selectionFrozen)return this.editorElement.focus()}toolbarDidUpdateAttribute(t,n){if(this.recordFormattingUndoEntry(t),this.composition.setCurrentAttribute(t,n),this.render(),!this.selectionFrozen)return this.editorElement.focus()}toolbarDidRemoveAttribute(t){if(this.recordFormattingUndoEntry(t),this.composition.removeCurrentAttribute(t),this.render(),!this.selectionFrozen)return this.editorElement.focus()}toolbarWillShowDialog(t){return this.composition.expandSelectionForEditing(),this.freezeSelection()}toolbarDidShowDialog(t){return this.notifyEditorElement("toolbar-dialog-show",{dialogName:t})}toolbarDidHideDialog(t){return this.thawSelection(),this.editorElement.focus(),this.notifyEditorElement("toolbar-dialog-hide",{dialogName:t})}freezeSelection(){if(!this.selectionFrozen)return this.selectionManager.lock(),this.composition.freezeSelection(),this.selectionFrozen=!0,this.render()}thawSelection(){if(this.selectionFrozen)return this.composition.thawSelection(),this.selectionManager.unlock(),this.selectionFrozen=!1,this.render()}canInvokeAction(t){return!!this.actionIsExternal(t)||!((n=this.actions[t])===null||n===void 0||(n=n.test)===null||n===void 0||!n.call(this));var n}invokeAction(t,n){return this.actionIsExternal(t)?this.notifyEditorElement("action-invoke",{actionName:t,invokingElement:n}):(o=this.actions[t])===null||o===void 0||(o=o.perform)===null||o===void 0?void 0:o.call(this);var o}actionIsExternal(t){return/^x-./.test(t)}getCurrentActions(){const t={};for(const n in this.actions)t[n]=this.canInvokeAction(n);return t}updateCurrentActions(){const t=this.getCurrentActions();if(!Au(t,this.currentActions))return this.currentActions=t,this.toolbarController.updateActions(this.currentActions),this.notifyEditorElement("actions-change",{actions:this.currentActions})}runEditorFilters(){let t=this.composition.getSnapshot();if(Array.from(this.editor.filters).forEach((u=>{const{document:d,selectedRange:h}=t;t=u.call(this.editor,t)||{},t.document||(t.document=d),t.selectedRange||(t.selectedRange=h)})),n=t,o=this.composition.getSnapshot(),!wd(n.selectedRange,o.selectedRange)||!n.document.isEqualTo(o.document))return this.composition.loadSnapshot(t);var n,o}updateInputElement(){const t=(function(n,o){const u=NT[o];if(u)return u(n);throw new Error("unknown content type: ".concat(o))})(this.compositionController.getSerializableElement(),"text/html");return this.editorElement.setFormValue(t)}notifyEditorElement(t,n){switch(t){case"document-change":this.documentChangedSinceLastRender=!0;break;case"render":this.documentChangedSinceLastRender&&(this.documentChangedSinceLastRender=!1,this.notifyEditorElement("change"));break;case"change":case"attachment-add":case"attachment-edit":case"attachment-remove":this.updateInputElement()}return this.editorElement.notify(t,n)}removeAttachment(t){return this.editor.recordUndoEntry("Delete Attachment"),this.composition.removeAttachment(t),this.render()}recordFormattingUndoEntry(t){const n=er(t),o=this.selectionManager.getLocationRange();if(n||!oo(o))return this.editor.recordUndoEntry("Formatting",{context:this.getUndoContext(),consolidatable:!0})}recordTypingUndoEntry(){return this.editor.recordUndoEntry("Typing",{context:this.getUndoContext(this.currentAttributes),consolidatable:!0})}getUndoContext(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return[this.getLocationContext(),this.getTimeContext(),...Array.from(n)]}getLocationContext(){const t=this.selectionManager.getLocationRange();return oo(t)?t[0].index:t}getTimeContext(){return j1.interval>0?Math.floor(new Date().getTime()/j1.interval):0}isFocused(){var t;return this.editorElement===((t=this.editorElement.ownerDocument)===null||t===void 0?void 0:t.activeElement)}isFocusedInvisibly(){return this.isFocused()&&!this.getLocationRange()}get actions(){return this.constructor.actions}}Ur(Yl,"actions",{undo:{test(){return this.editor.canUndo()},perform(){return this.editor.undo()}},redo:{test(){return this.editor.canRedo()},perform(){return this.editor.redo()}},link:{test(){return this.editor.canActivateAttribute("href")}},increaseNestingLevel:{test(){return this.editor.canIncreaseNestingLevel()},perform(){return this.editor.increaseNestingLevel()&&this.render()}},decreaseNestingLevel:{test(){return this.editor.canDecreaseNestingLevel()},perform(){return this.editor.decreaseNestingLevel()&&this.render()}},attachFiles:{test:()=>!0,perform(){return R1.pickFiles(this.editor.insertFiles)}}}),Yl.proxyMethod("getSelectionManager().setLocationRange"),Yl.proxyMethod("getSelectionManager().getLocationRange");var eA=Object.freeze({__proto__:null,AttachmentEditorController:l8,CompositionController:c8,Controller:d8,EditorController:Yl,InputController:Md,Level0InputController:ao,Level2InputController:Xl,ToolbarController:C8}),tA=Object.freeze({__proto__:null,MutationObserver:f8,SelectionChangeObserver:fb}),nA=Object.freeze({__proto__:null,FileVerificationOperation:g8,ImagePreloadOperation:Hb});ob("trix-toolbar",`%t {
  display: block;
}

%t {
  white-space: nowrap;
}

%t [data-trix-dialog] {
  display: none;
}

%t [data-trix-dialog][data-trix-active] {
  display: block;
}

%t [data-trix-dialog] [data-trix-validate]:invalid {
  background-color: #ffdddd;
}`);class _8 extends HTMLElement{connectedCallback(){this.innerHTML===""&&(this.innerHTML=ib.getDefaultHTML())}get editorElements(){if(this.id){var t;const n=(t=this.ownerDocument)===null||t===void 0?void 0:t.querySelectorAll('trix-editor[toolbar="'.concat(this.id,'"]'));return Array.from(n)}return[]}get editorElement(){const[t]=this.editorElements;return t}}let rA=0;const iA=function(s){if(!s.hasAttribute("contenteditable"))return s.toggleAttribute("contenteditable",!s.disabled),(function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return n.times=1,Hn(t,n)})("focus",{onElement:s,withCallback:()=>sA(s)})},sA=function(s){return oA(s),aA()},oA=function(s){var t,n;if((t=(n=document).queryCommandSupported)!==null&&t!==void 0&&t.call(n,"enableObjectResizing"))return document.execCommand("enableObjectResizing",!1,!1),Hn("mscontrolselect",{onElement:s,preventDefault:!0})},aA=function(s){var t,n;if((t=(n=document).queryCommandSupported)!==null&&t!==void 0&&t.call(n,"DefaultParagraphSeparator")){const{tagName:o}=Qr.default;if(["div","p"].includes(o))return document.execCommand("DefaultParagraphSeparator",!1,o)}},E8=Dl.forcesObjectResizing?{display:"inline",width:"auto"}:{display:"inline-block",width:"1px"};ob("trix-editor",`%t {
    display: block;
}

%t:empty::before {
    content: attr(placeholder);
    color: graytext;
    cursor: text;
    pointer-events: none;
    white-space: pre-line;
}

%t a[contenteditable=false] {
    cursor: text;
}

%t img {
    max-width: 100%;
    height: auto;
}

%t `.concat(xa,` figcaption textarea {
    resize: none;
}

%t `).concat(xa,` figcaption textarea.trix-autoresize-clone {
    position: absolute;
    left: -9999px;
    max-height: 0px;
}

%t `).concat(xa,` figcaption[data-trix-placeholder]:empty::before {
    content: attr(data-trix-placeholder);
    color: graytext;
}

%t [data-trix-cursor-target] {
    display: `).concat(E8.display,` !important;
    width: `).concat(E8.width,` !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

%t [data-trix-cursor-target=left] {
    vertical-align: top !important;
    margin-left: -1px !important;
}

%t [data-trix-cursor-target=right] {
    vertical-align: bottom !important;
    margin-right: -1px !important;
}`));var os=new WeakMap,Rd=new WeakMap,Kl=new WeakSet;class uA{constructor(t){var n,o;Vb(n=this,o=Kl),o.add(n),Ur(this,"value",""),Ru(this,os,{writable:!0,value:void 0}),Ru(this,Rd,{writable:!0,value:void 0}),this.element=t,Wl(this,os,t.attachInternals()),Wl(this,Rd,!1)}connectedCallback(){Pd(this,Kl,jd).call(this)}disconnectedCallback(){}get form(){return an(this,os).form}get name(){return this.element.getAttribute("name")}set name(t){this.element.setAttribute("name",t)}get labels(){return an(this,os).labels}get disabled(){return an(this,Rd)||this.element.hasAttribute("disabled")}set disabled(t){this.element.toggleAttribute("disabled",t)}get required(){return this.element.hasAttribute("required")}set required(t){this.element.toggleAttribute("required",t),Pd(this,Kl,jd).call(this)}get validity(){return an(this,os).validity}get validationMessage(){return an(this,os).validationMessage}get willValidate(){return an(this,os).willValidate}formDisabledCallback(t){Wl(this,Rd,t)}setFormValue(t){this.value=t,Pd(this,Kl,jd).call(this),an(this,os).setFormValue(this.element.disabled?void 0:this.value)}checkValidity(){return an(this,os).checkValidity()}reportValidity(){return an(this,os).reportValidity()}setCustomValidity(t){Pd(this,Kl,jd).call(this,t)}}function jd(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const{required:t,value:n}=this.element,o=t&&!n,u=!!s,d=Jt("input",{required:t}),h=s||d.validationMessage;an(this,os).setValidity({valueMissing:o,customError:u},h)}var Eg=new WeakMap,wg=new WeakMap,Sg=new WeakMap;class lA{constructor(t){Ru(this,Eg,{writable:!0,value:void 0}),Ru(this,wg,{writable:!0,value:n=>{n.defaultPrevented||n.target===this.element.form&&this.element.reset()}}),Ru(this,Sg,{writable:!0,value:n=>{if(n.defaultPrevented||this.element.contains(n.target))return;const o=ko(n.target,{matchingSelector:"label"});o&&Array.from(this.labels).includes(o)&&this.element.focus()}}),this.element=t}connectedCallback(){Wl(this,Eg,(function(t){if(t.hasAttribute("aria-label")||t.hasAttribute("aria-labelledby"))return;const n=function(){const o=Array.from(t.labels).map((d=>{if(!d.contains(t))return d.textContent})).filter((d=>d)),u=o.join(" ");return u?t.setAttribute("aria-label",u):t.removeAttribute("aria-label")};return n(),Hn("focus",{onElement:t,withCallback:n})})(this.element)),window.addEventListener("reset",an(this,wg),!1),window.addEventListener("click",an(this,Sg),!1)}disconnectedCallback(){var t;(t=an(this,Eg))===null||t===void 0||t.destroy(),window.removeEventListener("reset",an(this,wg),!1),window.removeEventListener("click",an(this,Sg),!1)}get labels(){const t=[];this.element.id&&this.element.ownerDocument&&t.push(...Array.from(this.element.ownerDocument.querySelectorAll("label[for='".concat(this.element.id,"']"))||[]));const n=ko(this.element,{matchingSelector:"label"});return n&&[this.element,null].includes(n.control)&&t.push(n),t}get form(){return console.warn("This browser does not support the .form property for trix-editor elements."),null}get name(){return console.warn("This browser does not support the .name property for trix-editor elements."),null}set name(t){console.warn("This browser does not support the .name property for trix-editor elements.")}get disabled(){return console.warn("This browser does not support the [disabled] attribute for trix-editor elements."),!1}set disabled(t){console.warn("This browser does not support the [disabled] attribute for trix-editor elements.")}get required(){return console.warn("This browser does not support the [required] attribute for trix-editor elements."),!1}set required(t){console.warn("This browser does not support the [required] attribute for trix-editor elements.")}get validity(){return console.warn("This browser does not support the validity property for trix-editor elements."),null}get validationMessage(){return console.warn("This browser does not support the validationMessage property for trix-editor elements."),""}get willValidate(){return console.warn("This browser does not support the willValidate property for trix-editor elements."),!1}formDisabledCallback(t){}setFormValue(t){}checkValidity(){return console.warn("This browser does not support checkValidity() for trix-editor elements."),!0}reportValidity(){return console.warn("This browser does not support reportValidity() for trix-editor elements."),!0}setCustomValidity(t){console.warn("This browser does not support setCustomValidity(validationMessage) for trix-editor elements.")}}var tr=new WeakMap;class Fd extends HTMLElement{constructor(){super(),Ru(this,tr,{writable:!0,value:void 0}),this.willCreateInput=!0,Wl(this,tr,this.constructor.formAssociated?new uA(this):new lA(this))}get trixId(){return this.hasAttribute("trix-id")?this.getAttribute("trix-id"):(this.setAttribute("trix-id",++rA),this.trixId)}get labels(){return an(this,tr).labels}get disabled(){const{inputElement:t}=this;return t?t.disabled:an(this,tr).disabled}set disabled(t){const{inputElement:n}=this;n&&(n.disabled=t),an(this,tr).disabled=t}get required(){return an(this,tr).required}set required(t){an(this,tr).required=t}get validity(){return an(this,tr).validity}get validationMessage(){return an(this,tr).validationMessage}get willValidate(){return an(this,tr).willValidate}get type(){return this.localName}get toolbarElement(){var t;if(this.hasAttribute("toolbar"))return(t=this.ownerDocument)===null||t===void 0?void 0:t.getElementById(this.getAttribute("toolbar"));if(this.parentNode){const n="trix-toolbar-".concat(this.trixId);return this.setAttribute("toolbar",n),this.internalToolbar=Jt("trix-toolbar",{id:n}),this.parentNode.insertBefore(this.internalToolbar,this),this.internalToolbar}}get form(){const{inputElement:t}=this;return t?t.form:an(this,tr).form}get inputElement(){var t;return this.hasAttribute("input")?(t=this.ownerDocument)===null||t===void 0?void 0:t.getElementById(this.getAttribute("input")):void 0}get editor(){var t;return(t=this.editorController)===null||t===void 0?void 0:t.editor}get name(){const{inputElement:t}=this;return t?t.name:an(this,tr).name}set name(t){const{inputElement:n}=this;n?n.name=t:an(this,tr).name=t}get value(){const{inputElement:t}=this;return t?t.value:an(this,tr).value}set value(t){var n;this.defaultValue=t,(n=this.editor)===null||n===void 0||n.loadHTML(this.defaultValue)}attributeChangedCallback(t,n,o){t==="connected"&&this.isConnected&&n!=null&&n!==o&&requestAnimationFrame((()=>this.reconnect()))}notify(t,n){if(this.editorController)return Ml("trix-".concat(t),{onElement:this,attributes:n})}setFormValue(t){const{inputElement:n}=this;n&&(n.value=t),an(this,tr).setFormValue(t)}connectedCallback(){if(!this.hasAttribute("data-trix-internal")){if(iA(this),(function(t){t.hasAttribute("role")||t.setAttribute("role","textbox")})(this),!this.editorController){if(Ml("trix-before-initialize",{onElement:this}),this.defaultValue=this.inputElement?this.inputElement.value:this.innerHTML,!this.hasAttribute("input")&&this.parentNode&&this.willCreateInput){const t="trix-input-".concat(this.trixId);this.setAttribute("input",t);const n=Jt("input",{type:"hidden",id:t});this.parentNode.insertBefore(n,this.nextElementSibling)}this.editorController=new Yl({editorElement:this,html:this.defaultValue}),requestAnimationFrame((()=>Ml("trix-initialize",{onElement:this})))}this.editorController.registerSelectionManager(),an(this,tr).connectedCallback(),this.toggleAttribute("connected",!0),(function(t){!document.querySelector(":focus")&&t.hasAttribute("autofocus")&&document.querySelector("[autofocus]")===t&&t.focus()})(this)}}disconnectedCallback(){var t;(t=this.editorController)===null||t===void 0||t.unregisterSelectionManager(),an(this,tr).disconnectedCallback(),this.toggleAttribute("connected",!1)}reconnect(){this.removeInternalToolbar(),this.disconnectedCallback(),this.connectedCallback()}removeInternalToolbar(){var t;(t=this.internalToolbar)===null||t===void 0||t.remove(),this.internalToolbar=null}checkValidity(){return an(this,tr).checkValidity()}reportValidity(){return an(this,tr).reportValidity()}setCustomValidity(t){an(this,tr).setCustomValidity(t)}formDisabledCallback(t){const{inputElement:n}=this;n&&(n.disabled=t),this.toggleAttribute("contenteditable",!t),an(this,tr).formDisabledCallback(t)}formResetCallback(){this.reset()}reset(){this.value=this.defaultValue}}Ur(Fd,"formAssociated","ElementInternals"in window),Ur(Fd,"observedAttributes",["connected"]);const Og={VERSION:lI,config:Fl,core:IT,models:u8,views:MT,controllers:eA,observers:tA,operations:nA,elements:Object.freeze({__proto__:null,TrixEditorElement:Fd,TrixToolbarElement:_8}),filters:Object.freeze({__proto__:null,Filter:n8,attachmentGalleryFilter:r8})};Object.assign(Og,u8),window.Trix=Og,setTimeout((function(){customElements.get("trix-toolbar")||customElements.define("trix-toolbar",_8),customElements.get("trix-editor")||customElements.define("trix-editor",Fd)}),0);const cA=Object.freeze(Object.defineProperty({__proto__:null,default:Og},Symbol.toStringTag,{value:"Module"})),dA=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));return pr.ResourceOverviewWithMap=Yy,Object.defineProperty(pr,Symbol.toStringTag,{value:"Module"}),pr})({},OpenStadReact,OpenStadReactDOM,OpenStadReactDOM,OpenStadReactDOMServer);

            OpenstadHeadlessResourceOverviewWithMap.ResourceOverviewWithMap.loadWidget(randomComponentId, config);
          }

          
  function triggerEvent(event) {
    document.dispatchEvent(new CustomEvent(event));
  }

  function openStadReactDomLoadedEventHasFired() {
    window.OpenStadReactDomLoadedEventHasFired = true;
  }

  document.addEventListener('OpenStadReactDomLoaded', openStadReactDomLoadedEventHasFired);

  function checkReactLoaded() {
    if (typeof window.OpenStadReact !== 'undefined' && typeof window.OpenStadReactDOM !== 'undefined' && typeof window.OpenStadReactDOMServer !== 'undefined' && typeof window.OpenStadReactDOM.createRoot === 'function') {
      if (typeof window.OpenStadReactDomLoadedEventHasFired === 'undefined' || !window.OpenStadReactDomLoadedEventHasFired) {
        document.addEventListener('OpenStadReactDomLoaded', renderWidget);
        triggerEvent('OpenStadReactDomLoaded');
      } else {
        renderWidget();
      }
      return;
    }

    if (window.OpenStadReactIsLoading) {
      document.addEventListener('OpenStadReactDomLoaded', renderWidget);
      return;
    }

    window.OpenStadReactIsLoading = true;

    const script = document.createElement('script');
    script.src = 'https://api.doemee1stroom.nl/widget/react-runtime.js?v=076fedbd3974';
    script.onload = function() {
      document.addEventListener('OpenStadReactDomLoaded', renderWidget);
      triggerEvent('OpenStadReactDomLoaded');
    };
    script.onerror = function() {
      console.error('Failed to load OpenStad React runtime');
    };
    document.body.appendChild(script);
  }

  checkReactLoaded();

          currentScript.remove();
      } catch(e) {
        console.error("Could not place widget", e);
      }
    })();
    