diff --git a/build/blocks/add-to-calendar/block.json b/build/blocks/add-to-calendar/block.json index b9eb89e52..461dc23b2 100644 --- a/build/blocks/add-to-calendar/block.json +++ b/build/blocks/add-to-calendar/block.json @@ -2,7 +2,7 @@ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 2, "name": "gatherpress/add-to-calendar", - "version": "1.0.1", + "version": "1.0.2", "title": "Add to Calendar", "category": "gatherpress", "icon": "calendar", diff --git a/build/blocks/add-to-calendar/index.asset.php b/build/blocks/add-to-calendar/index.asset.php index 0d4f458f1..d893f36d3 100644 --- a/build/blocks/add-to-calendar/index.asset.php +++ b/build/blocks/add-to-calendar/index.asset.php @@ -1 +1 @@ - array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => 'a2a79e176bbde08a7267'); + array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => 'c27eaf0a25faf160b41b'); diff --git a/build/blocks/add-to-calendar/index.js b/build/blocks/add-to-calendar/index.js index 24cd9452e..d2f0bdd48 100644 --- a/build/blocks/add-to-calendar/index.js +++ b/build/blocks/add-to-calendar/index.js @@ -1 +1 @@ -(()=>{"use strict";var e,t={5358:()=>{const e=window.wp.blocks,t=window.React,r=window.wp.i18n,n=window.wp.blockEditor,a=window.wp.components,l=e=>{const{isSelected:r}=e,n=r?"none":"block";return(0,t.createElement)("div",{style:{position:"relative"}},e.children,(0,t.createElement)("div",{style:{position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:n}}))},o=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"gatherpress/add-to-calendar","version":"1.0.1","title":"Add to Calendar","category":"gatherpress","icon":"calendar","example":{},"description":"Allows a member to add an event to their preferred calendar.","attributes":{"blockId":{"type":"string"}},"supports":{"html":false},"textdomain":"gatherpress","editorScript":"file:./index.js","style":"file:./style-index.css","viewScript":"file:./add-to-calendar.js","render":"file:./render.php"}');(0,e.registerBlockType)(o,{edit:()=>{const e=(0,n.useBlockProps)();return(0,t.createElement)("div",{...e},(0,t.createElement)(l,null,(0,t.createElement)(a.Flex,{justify:"normal",align:"center",gap:"4"},(0,t.createElement)(a.FlexItem,{display:"flex",className:"gatherpress-event-date__icon"},(0,t.createElement)(a.Icon,{icon:"calendar"})),(0,t.createElement)(a.FlexItem,null,(0,t.createElement)("a",{href:"#"},(0,r.__)("Add to calendar","gatherpress"))))))},save:()=>null})}},r={};function n(e){var a=r[e];if(void 0!==a)return a.exports;var l=r[e]={exports:{}};return t[e](l,l.exports,n),l.exports}n.m=t,e=[],n.O=(t,r,a,l)=>{if(!r){var o=1/0;for(d=0;d=l)&&Object.keys(n.O).every((e=>n.O[e](r[i])))?r.splice(i--,1):(s=!1,l0&&e[d-1][2]>l;d--)e[d]=e[d-1];e[d]=[r,a,l]},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={181:0,129:0};n.O.j=t=>0===e[t];var t=(t,r)=>{var a,l,[o,s,i]=r,c=0;if(o.some((t=>0!==e[t]))){for(a in s)n.o(s,a)&&(n.m[a]=s[a]);if(i)var d=i(n)}for(t&&t(r);cn(5358)));a=n.O(a)})(); \ No newline at end of file +(()=>{"use strict";var e,t={5358:()=>{const e=window.wp.blocks,t=window.React,r=window.wp.i18n,n=window.wp.blockEditor,a=window.wp.components,l=e=>{const{isSelected:r}=e,n=r?"none":"block";return(0,t.createElement)("div",{style:{position:"relative"}},e.children,(0,t.createElement)("div",{style:{position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:n}}))},o=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"gatherpress/add-to-calendar","version":"1.0.2","title":"Add to Calendar","category":"gatherpress","icon":"calendar","example":{},"description":"Allows a member to add an event to their preferred calendar.","attributes":{"blockId":{"type":"string"}},"supports":{"html":false},"textdomain":"gatherpress","editorScript":"file:./index.js","style":"file:./style-index.css","viewScript":"file:./add-to-calendar.js","render":"file:./render.php"}');(0,e.registerBlockType)(o,{edit:()=>{const e=(0,n.useBlockProps)();return(0,t.createElement)("div",{...e},(0,t.createElement)(l,null,(0,t.createElement)(a.Flex,{justify:"normal",align:"center",gap:"4"},(0,t.createElement)(a.FlexItem,{display:"flex",className:"gatherpress-event-date__icon"},(0,t.createElement)(a.Icon,{icon:"calendar"})),(0,t.createElement)(a.FlexItem,null,(0,t.createElement)("a",{href:"#"},(0,r.__)("Add to calendar","gatherpress"))))))},save:()=>null})}},r={};function n(e){var a=r[e];if(void 0!==a)return a.exports;var l=r[e]={exports:{}};return t[e](l,l.exports,n),l.exports}n.m=t,e=[],n.O=(t,r,a,l)=>{if(!r){var o=1/0;for(d=0;d=l)&&Object.keys(n.O).every((e=>n.O[e](r[i])))?r.splice(i--,1):(s=!1,l0&&e[d-1][2]>l;d--)e[d]=e[d-1];e[d]=[r,a,l]},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={181:0,129:0};n.O.j=t=>0===e[t];var t=(t,r)=>{var a,l,[o,s,i]=r,c=0;if(o.some((t=>0!==e[t]))){for(a in s)n.o(s,a)&&(n.m[a]=s[a]);if(i)var d=i(n)}for(t&&t(r);cn(5358)));a=n.O(a)})(); \ No newline at end of file diff --git a/build/blocks/add-to-calendar/style-index.css b/build/blocks/add-to-calendar/style-index.css index b1fba8c01..51ab7600d 100644 --- a/build/blocks/add-to-calendar/style-index.css +++ b/build/blocks/add-to-calendar/style-index.css @@ -1 +1 @@ -.gatherpress-add-to-calendar{position:relative}.gatherpress-add-to-calendar__icon{align-items:flex-start;display:flex}.gatherpress-add-to-calendar__item{align-items:center;display:flex;gap:.75rem}.gatherpress-add-to-calendar__list{border:1px solid #ccc;border-radius:.4rem;flex-direction:column;overflow:hidden;position:absolute;width:15rem;z-index:50}.gatherpress-add-to-calendar__list-item{border-top:1px solid #ccc;margin-top:-1px}.gatherpress-add-to-calendar__list-item a{background-color:#fff;color:#000;display:block;padding:.5rem}.gatherpress-add-to-calendar__list-item a:hover{background-color:#eee}.gatherpress-add-to-calendar__row{display:flex} +.gatherpress-add-to-calendar{position:relative}.gatherpress-add-to-calendar__icon{align-items:flex-start;display:flex}.gatherpress-add-to-calendar__item{align-items:center;display:flex;gap:.75rem}.gatherpress-add-to-calendar__list{border:1px solid #ccc;border-radius:.4rem;flex-direction:column;overflow:hidden;position:absolute;width:15rem;z-index:9999}.gatherpress-add-to-calendar__list-item{border-top:1px solid #ccc;margin-top:-1px}.gatherpress-add-to-calendar__list-item a{background-color:#fff;color:#000;display:block;padding:.5rem}.gatherpress-add-to-calendar__list-item a:hover{background-color:#eee}.gatherpress-add-to-calendar__row{display:flex} diff --git a/build/blocks/venue/block.json b/build/blocks/venue/block.json index 0b9320e6d..18bf44d87 100644 --- a/build/blocks/venue/block.json +++ b/build/blocks/venue/block.json @@ -2,7 +2,7 @@ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 2, "name": "gatherpress/venue", - "version": "1.0.1", + "version": "1.1.0", "title": "Venue", "category": "gatherpress", "icon": "location", @@ -41,5 +41,6 @@ "editorStyle": "file:./index.css", "style": "file:./style-index.css", "viewScript": "file:./venue.js", + "viewStyle": "file:./venue.css", "render": "file:./render.php" } \ No newline at end of file diff --git a/build/blocks/venue/index.asset.php b/build/blocks/venue/index.asset.php index 32311aba4..a8703d0b5 100644 --- a/build/blocks/venue/index.asset.php +++ b/build/blocks/venue/index.asset.php @@ -1 +1 @@ - array('moment', 'react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-date', 'wp-element', 'wp-i18n'), 'version' => 'be4e990d06a384882695'); + array('moment', 'react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-element', 'wp-i18n'), 'version' => '88717602f004caca0bbb'); diff --git a/build/blocks/venue/index.css b/build/blocks/venue/index.css new file mode 100644 index 000000000..38cd7d3af --- /dev/null +++ b/build/blocks/venue/index.css @@ -0,0 +1 @@ +.leaflet-image-layer,.leaflet-layer,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-pane,.leaflet-pane>canvas,.leaflet-pane>svg,.leaflet-tile,.leaflet-tile-container,.leaflet-zoom-box{left:0;position:absolute;top:0}.leaflet-container{overflow:hidden}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::-moz-selection{background:transparent}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{height:1600px;-webkit-transform-origin:0 0;width:1600px}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-height:none!important;max-width:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer{max-height:none!important;max-width:none!important;padding:0;width:auto}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{box-sizing:border-box;height:0;width:0;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{height:1px;width:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{pointer-events:visiblePainted;pointer-events:auto;position:relative;z-index:800}.leaflet-bottom,.leaflet-top{pointer-events:none;position:absolute;z-index:1000}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{clear:both;float:left}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-pan-anim .leaflet-tile,.leaflet-zoom-anim .leaflet-tile{transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-control,.leaflet-popup-pane{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:grabbing}.leaflet-image-layer,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-image-layer.leaflet-interactive,.leaflet-marker-icon.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{background:hsla(0,0%,100%,.5);border:2px dotted #38f}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{border-radius:4px;box-shadow:0 1px 5px rgba(0,0,0,.65)}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;color:#000;display:block;height:26px;line-height:26px;text-align:center;text-decoration:none;width:26px}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:focus,.leaflet-bar a:hover{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom:none;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.leaflet-bar a.leaflet-disabled{background-color:#f4f4f4;color:#bbb;cursor:default}.leaflet-touch .leaflet-bar a{height:30px;line-height:30px;width:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{background:#fff;border-radius:5px;box-shadow:0 1px 5px rgba(0,0,0,.4)}.leaflet-control-layers-toggle{background-image:url(../../images/layers.png);height:36px;width:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(../../images/layers-2x.png);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{height:44px;width:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{background:#fff;color:#333;padding:6px 10px 6px 6px}.leaflet-control-layers-scrollbar{overflow-x:hidden;overflow-y:scroll;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{border-top:1px solid #ddd;height:0;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(../../images/marker-icon.png)}.leaflet-container .leaflet-control-attribution{background:#fff;background:hsla(0,0%,100%,.8);margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{color:#333;line-height:1.4;padding:0 5px}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:focus,.leaflet-control-attribution a:hover{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;height:.6669em;vertical-align:baseline!important;width:1em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{background:hsla(0,0%,100%,.8);border:2px solid #777;border-top:none;box-sizing:border-box;line-height:1.1;padding:2px 5px 1px;text-shadow:1px 1px #fff;white-space:nowrap}.leaflet-control-scale-line:not(:first-child){border-bottom:none;border-top:2px solid #777;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-bar,.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers{box-shadow:none}.leaflet-touch .leaflet-bar,.leaflet-touch .leaflet-control-layers{background-clip:padding-box;border:2px solid rgba(0,0,0,.2)}.leaflet-popup{margin-bottom:20px;position:absolute;text-align:center}.leaflet-popup-content-wrapper{border-radius:12px;padding:1px;text-align:left}.leaflet-popup-content{font-size:13px;font-size:1.08333em;line-height:1.3;margin:13px 24px 13px 20px;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{height:20px;left:50%;margin-left:-20px;margin-top:-1px;overflow:hidden;pointer-events:none;position:absolute;width:40px}.leaflet-popup-tip{height:17px;margin:-10px auto 0;padding:1px;pointer-events:auto;transform:rotate(45deg);width:17px}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;box-shadow:0 3px 14px rgba(0,0,0,.4);color:#333}.leaflet-container a.leaflet-popup-close-button{background:transparent;border:none;color:#757575;font:16px/24px Tahoma,Verdana,sans-serif;height:24px;position:absolute;right:0;text-align:center;text-decoration:none;top:0;width:24px}.leaflet-container a.leaflet-popup-close-button:focus,.leaflet-container a.leaflet-popup-close-button:hover{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678,M12=0.70710678,M21=-0.70710678,M22=0.70710678);margin:0 auto;width:24px}.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{background-color:#fff;border:1px solid #fff;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,.4);color:#222;padding:6px;pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before,.leaflet-tooltip-top:before{background:transparent;border:6px solid transparent;content:"";pointer-events:none;position:absolute}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{border-top-color:#fff;bottom:0;margin-bottom:-12px}.leaflet-tooltip-bottom:before{border-bottom-color:#fff;margin-left:-6px;margin-top:-12px;top:0}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{margin-top:-6px;top:50%}.leaflet-tooltip-left:before{border-left-color:#fff;margin-right:-12px;right:0}.leaflet-tooltip-right:before{border-right-color:#fff;left:0;margin-left:-12px}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}} diff --git a/build/blocks/venue/index.js b/build/blocks/venue/index.js index abadb12d2..c60f61d57 100644 --- a/build/blocks/venue/index.js +++ b/build/blocks/venue/index.js @@ -1 +1,3 @@ -(()=>{var e,t={2041:(e,t,n)=>{"use strict";const r=window.wp.blocks;var o=n(1609);const i=window.wp.i18n,l=window.wp.blockEditor,a=window.wp.components,s=window.wp.data,c=window.wp.element,u=e=>{const t=(0,s.select)("core")?.canUser("create","posts"),n=Boolean((0,s.select)("core/edit-post")),{zoom:r,type:i,className:l}=e;let{location:a,height:c}=e;if(c||(c=300),!t||n||a||(a="660 4th Street #119 San Francisco CA 94107, USA"),!a)return(0,o.createElement)(o.Fragment,null);const u={border:0,height:c,width:"100%"},d="https://maps.google.com/maps?"+new URLSearchParams({q:a,z:r||10,t:i||"m",output:"embed"}).toString();return(0,o.createElement)("iframe",{src:d,style:u,className:l,title:a})},d=Math.min,p=Math.max,f=Math.round,m=Math.floor,h=e=>({x:e,y:e}),v={left:"right",right:"left",bottom:"top",top:"bottom"},y={start:"end",end:"start"};function g(e,t,n){return p(e,d(t,n))}function b(e,t){return"function"==typeof e?e(t):e}function w(e){return e.split("-")[0]}function E(e){return e.split("-")[1]}function x(e){return"x"===e?"y":"x"}function _(e){return"y"===e?"height":"width"}function S(e){return["top","bottom"].includes(w(e))?"y":"x"}function T(e){return x(S(e))}function k(e){return e.replace(/start|end/g,(e=>y[e]))}function A(e){return e.replace(/left|right|bottom|top/g,(e=>v[e]))}function O(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function C(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function N(e,t,n){let{reference:r,floating:o}=e;const i=S(t),l=T(t),a=_(l),s=w(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/2;let f;switch(s){case"top":f={x:u,y:r.y-o.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-o.width,y:d};break;default:f={x:r.x,y:r.y}}switch(E(t)){case"start":f[l]-=p*(n&&c?-1:1);break;case"end":f[l]+=p*(n&&c?-1:1)}return f}async function R(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:l,elements:a,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=b(t,e),m=O(f),h=a[p?"floating"===d?"reference":"floating":d],v=C(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:s})),y="floating"===d?{...l.floating,x:r,y:o}:l.reference,g=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),w=await(null==i.isElement?void 0:i.isElement(g))&&await(null==i.getScale?void 0:i.getScale(g))||{x:1,y:1},E=C(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:g,strategy:s}):y);return{top:(v.top-E.top+m.top)/w.y,bottom:(E.bottom-v.bottom+m.bottom)/w.y,left:(v.left-E.left+m.left)/w.x,right:(E.right-v.right+m.right)/w.x}}const P=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:l,middlewareData:a}=t,s=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),l=w(n),a=E(n),s="y"===S(n),c=["left","top"].includes(l)?-1:1,u=i&&s?-1:1,d=b(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&"number"==typeof m&&(f="end"===a?-1*m:m),s?{x:f*u,y:p*c}:{x:p*c,y:f*u}}(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:l}}}}};function L(e){return M(e)?(e.nodeName||"").toLowerCase():"#document"}function I(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function D(e){var t;return null==(t=(M(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function M(e){return e instanceof Node||e instanceof I(e).Node}function F(e){return e instanceof Element||e instanceof I(e).Element}function j(e){return e instanceof HTMLElement||e instanceof I(e).HTMLElement}function H(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof I(e).ShadowRoot)}function z(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=$(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function B(e){return["table","td","th"].includes(L(e))}function V(e){const t=W(),n=$(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function W(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function q(e){return["html","body","#document"].includes(L(e))}function $(e){return I(e).getComputedStyle(e)}function U(e){return F(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function X(e){if("html"===L(e))return e;const t=e.assignedSlot||e.parentNode||H(e)&&e.host||D(e);return H(t)?t.host:t}function G(e){const t=X(e);return q(t)?e.ownerDocument?e.ownerDocument.body:e.body:j(t)&&z(t)?t:G(t)}function Y(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=G(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=I(o);return i?t.concat(l,l.visualViewport||[],z(o)?o:[],l.frameElement&&n?Y(l.frameElement):[]):t.concat(o,Y(o,[],n))}function Z(e){const t=$(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=j(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=f(n)!==i||f(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function K(e){return F(e)?e:e.contextElement}function J(e){const t=K(e);if(!j(t))return h(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Z(t);let l=(i?f(n.width):n.width)/r,a=(i?f(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}const Q=h(0);function ee(e){const t=I(e);return W()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Q}function te(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=K(e);let l=h(1);t&&(r?F(r)&&(l=J(r)):l=J(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==I(e))&&t}(i,n,r)?ee(i):h(0);let s=(o.left+a.x)/l.x,c=(o.top+a.y)/l.y,u=o.width/l.x,d=o.height/l.y;if(i){const e=I(i),t=r&&F(r)?I(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=J(o),t=o.getBoundingClientRect(),r=$(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,d*=e.y,s+=i,c+=l,n=I(o),o=n.frameElement}}return C({width:u,height:d,x:s,y:c})}const ne=[":popover-open",":modal"];function re(e){return ne.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function oe(e){return te(D(e)).left+U(e).scrollLeft}function ie(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=I(e),r=D(e),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;const e=W();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,s=o.offsetTop)}return{width:i,height:l,x:a,y:s}}(e,n);else if("document"===t)r=function(e){const t=D(e),n=U(e),r=e.ownerDocument.body,o=p(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=p(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+oe(e);const a=-n.scrollTop;return"rtl"===$(r).direction&&(l+=p(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}(D(e));else if(F(t))r=function(e,t){const n=te(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=j(e)?J(e):h(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=ee(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return C(r)}function le(e,t){const n=X(e);return!(n===t||!F(n)||q(n))&&("fixed"===$(n).position||le(n,t))}function ae(e,t,n){const r=j(t),o=D(t),i="fixed"===n,l=te(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const s=h(0);if(r||!r&&!i)if(("body"!==L(t)||z(o))&&(a=U(t)),r){const e=te(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=oe(o));return{x:l.left+a.scrollLeft-s.x,y:l.top+a.scrollTop-s.y,width:l.width,height:l.height}}function se(e,t){return j(e)&&"fixed"!==$(e).position?t?t(e):e.offsetParent:null}function ce(e,t){const n=I(e);if(!j(e)||re(e))return n;let r=se(e,t);for(;r&&B(r)&&"static"===$(r).position;)r=se(r,t);return r&&("html"===L(r)||"body"===L(r)&&"static"===$(r).position&&!V(r))?n:r||function(e){let t=X(e);for(;j(t)&&!q(t);){if(V(t))return t;t=X(t)}return null}(e)||n}const ue={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,l=D(r),a=!!t&&re(t.floating);if(r===l||a&&i)return n;let s={scrollLeft:0,scrollTop:0},c=h(1);const u=h(0),d=j(r);if((d||!d&&!i)&&(("body"!==L(r)||z(l))&&(s=U(r)),j(r))){const e=te(r);c=J(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x,y:n.y*c.y-s.scrollTop*c.y+u.y}},getDocumentElement:D,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=Y(e,[],!1).filter((e=>F(e)&&"body"!==L(e))),o=null;const i="fixed"===$(e).position;let l=i?X(e):e;for(;F(l)&&!q(l);){const t=$(l),n=V(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||z(l)&&!n&&le(e,l))?r=r.filter((e=>e!==l)):o=t,l=X(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=i[0],a=i.reduce(((e,n)=>{const r=ie(t,n,o);return e.top=p(r.top,e.top),e.right=d(r.right,e.right),e.bottom=d(r.bottom,e.bottom),e.left=p(r.left,e.left),e}),ie(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:ce,getElementRects:async function(e){const t=this.getOffsetParent||ce,n=this.getDimensions;return{reference:ae(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Z(e);return{width:t,height:n}},getScale:J,isElement:F,isRTL:function(e){return"rtl"===$(e).direction}};const de=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=b(e,t),c={x:n,y:r},u=await R(t,s),d=S(w(o)),p=x(d);let f=c[p],m=c[d];if(i){const e="y"===p?"bottom":"right";f=g(f+u["y"===p?"top":"left"],f,f-u[e])}if(l){const e="y"===d?"bottom":"right";m=g(m+u["y"===d?"top":"left"],m,m-u[e])}const h=a.fn({...t,[p]:f,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r}}}}},pe=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:l,initialPlacement:a,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...v}=b(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const y=w(o),g=w(a)===a,x=await(null==s.isRTL?void 0:s.isRTL(c.floating)),S=p||(g||!h?[A(a)]:function(e){const t=A(e);return[k(e),t,k(t)]}(a));p||"none"===m||S.push(...function(e,t,n,r){const o=E(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:l;default:return[]}}(w(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(k)))),i}(a,h,m,x));const O=[a,...S],C=await R(t,v),N=[];let P=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&N.push(C[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=E(e),o=T(e),i=_(o);let l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=A(l)),[l,A(l)]}(o,l,x);N.push(C[e[0]],C[e[1]])}if(P=[...P,{placement:o,overflows:N}],!N.every((e=>e<=0))){var L,I;const e=((null==(L=i.flip)?void 0:L.index)||0)+1,t=O[e];if(t)return{data:{index:e,overflows:P},reset:{placement:t}};let n=null==(I=P.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:I.placement;if(!n)switch(f){case"bestFit":{var D;const e=null==(D=P.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:D[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},fe=(e,t,n)=>{const r=new Map,o={platform:ue,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=i.filter(Boolean),s=await(null==l.isRTL?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=N(c,r,s),p=r,f={},m=0;for(let n=0;n{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(null===t)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const s=l;return n?(s.push({name:"arrow",options:c={element:n,padding:5},async fn(e){const{x:t,y:n,placement:r,rects:o,platform:i,elements:l,middlewareData:a}=e,{element:s,padding:u=0}=b(c,e)||{};if(null==s)return{};const p=O(u),f={x:t,y:n},m=T(r),h=_(m),v=await i.getDimensions(s),y="y"===m,w=y?"top":"left",x=y?"bottom":"right",S=y?"clientHeight":"clientWidth",k=o.reference[h]+o.reference[m]-f[m]-o.floating[h],A=f[m]-o.reference[m],C=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s));let N=C?C[S]:0;N&&await(null==i.isElement?void 0:i.isElement(C))||(N=l.floating[S]||o.floating[h]);const R=k/2-A/2,P=N/2-v[h]/2-1,L=d(p[w],P),I=d(p[x],P),D=L,M=N-v[h]-I,F=N/2-v[h]/2+R,j=g(D,F,M),H=!a.arrow&&null!=E(r)&&F!==j&&o.reference[h]/2-(F{var o,i;const l={left:`${e}px`,top:`${t}px`,border:a},{x:s,y:c}=null!==(o=r.arrow)&&void 0!==o?o:{x:0,y:0},u=null!==(i={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]])&&void 0!==i?i:"bottom",d=a&&{borderBottom:a,borderRight:a};let p=0;if(a){const e=`${a}`.match(/(\d+)px/);p=(null==e?void 0:e[1])?Number(e[1]):1}return{tooltipStyles:l,tooltipArrowStyles:{left:null!=s?`${s}px`:"",top:null!=c?`${c}px`:"",right:"",bottom:"",...d,[u]:`-${4+p}px`},place:n}}))):fe(e,t,{placement:"bottom",strategy:i,middleware:s}).then((({x:e,y:t,placement:n})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{},place:n})));var c},ge=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),be=(e,t,n)=>{let r=null;const o=function(...o){const i=()=>{r=null,n||e.apply(this,o)};n&&!r&&(e.apply(this,o),r=setTimeout(i,t)),n||(r&&clearTimeout(r),r=setTimeout(i,t))};return o.cancel=()=>{r&&(clearTimeout(r),r=null)},o},we=e=>null!==e&&!Array.isArray(e)&&"object"==typeof e,Ee=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every(((e,n)=>Ee(e,t[n])));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!we(e)||!we(t))return e===t;const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((n=>Ee(e[n],t[n])))},xe=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some((e=>{const n=t.getPropertyValue(e);return"auto"===n||"scroll"===n}))},_e=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(xe(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},Se="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,Te={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},ke=(0,o.createContext)({getTooltipData:()=>Te});function Ae(e="DEFAULT_TOOLTIP_ID"){return(0,o.useContext)(ke).getTooltipData(e)}var Oe={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},Ce={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const Ne=({forwardRef:e,id:t,className:n,classNameArrow:r,variant:i="dark",anchorId:l,anchorSelect:a,place:s="top",offset:c=10,events:u=["hover"],openOnClick:f=!1,positionStrategy:h="absolute",middlewares:v,wrapper:y,delayShow:g=0,delayHide:b=0,float:w=!1,hidden:E=!1,noArrow:x=!1,clickable:_=!1,closeOnEsc:S=!1,closeOnScroll:T=!1,closeOnResize:k=!1,openEvents:A,closeEvents:O,globalCloseEvents:C,imperativeModeOnly:N,style:R,position:P,afterShow:L,afterHide:I,content:M,contentWrapperRef:F,isOpen:j,defaultIsOpen:H=!1,setIsOpen:z,activeAnchor:B,setActiveAnchor:V,border:W,opacity:q,arrowColor:$,role:U="tooltip"})=>{var X;const G=(0,o.useRef)(null),Z=(0,o.useRef)(null),J=(0,o.useRef)(null),Q=(0,o.useRef)(null),ee=(0,o.useRef)(null),[ne,re]=(0,o.useState)({tooltipStyles:{},tooltipArrowStyles:{},place:s}),[oe,ie]=(0,o.useState)(!1),[le,ae]=(0,o.useState)(!1),[se,ce]=(0,o.useState)(null),ue=(0,o.useRef)(!1),de=(0,o.useRef)(null),{anchorRefs:pe,setActiveAnchor:fe}=Ae(t),he=(0,o.useRef)(!1),[ve,ge]=(0,o.useState)([]),we=(0,o.useRef)(!1),xe=f||u.includes("click"),Te=xe||(null==A?void 0:A.click)||(null==A?void 0:A.dblclick)||(null==A?void 0:A.mousedown),ke=A?{...A}:{mouseenter:!0,focus:!0,click:!1,dblclick:!1,mousedown:!1};!A&&xe&&Object.assign(ke,{mouseenter:!1,focus:!1,click:!0});const Ne=O?{...O}:{mouseleave:!0,blur:!0,click:!1,dblclick:!1,mouseup:!1};!O&&xe&&Object.assign(Ne,{mouseleave:!1,blur:!1});const Re=C?{...C}:{escape:S||!1,scroll:T||!1,resize:k||!1,clickOutsideAnchor:Te||!1};N&&(Object.assign(ke,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Ne,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(Re,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),Se((()=>(we.current=!0,()=>{we.current=!1})),[]);const Pe=e=>{we.current&&(e&&ae(!0),setTimeout((()=>{we.current&&(null==z||z(e),void 0===j&&ie(e))}),10))};(0,o.useEffect)((()=>{if(void 0===j)return()=>null;j&&ae(!0);const e=setTimeout((()=>{ie(j)}),10);return()=>{clearTimeout(e)}}),[j]),(0,o.useEffect)((()=>{if(oe!==ue.current)if(ee.current&&clearTimeout(ee.current),ue.current=oe,oe)null==L||L();else{const e=(e=>{const t=getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay").match(/^([\d.]+)(ms|s)$/);if(!t)return 0;const[,n,r]=t;return Number(n)*("ms"===r?1:1e3)})();ee.current=setTimeout((()=>{ae(!1),ce(null),null==I||I()}),e+25)}}),[oe]);const Le=e=>{re((t=>Ee(t,e)?t:e))},Ie=(e=g)=>{J.current&&clearTimeout(J.current),le?Pe(!0):J.current=setTimeout((()=>{Pe(!0)}),e)},De=(e=b)=>{Q.current&&clearTimeout(Q.current),Q.current=setTimeout((()=>{he.current||Pe(!1)}),e)},Me=e=>{var t;if(!e)return;const n=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;if(!(null==n?void 0:n.isConnected))return V(null),void fe({current:null});g?Ie():Pe(!0),V(n),fe({current:n}),Q.current&&clearTimeout(Q.current)},Fe=()=>{_?De(b||100):b?De():Pe(!1),J.current&&clearTimeout(J.current)},je=({x:e,y:t})=>{var n;const r={getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})};ye({place:null!==(n=null==se?void 0:se.place)&&void 0!==n?n:s,offset:c,elementReference:r,tooltipReference:G.current,tooltipArrowReference:Z.current,strategy:h,middlewares:v,border:W}).then((e=>{Le(e)}))},He=e=>{if(!e)return;const t=e,n={x:t.clientX,y:t.clientY};je(n),de.current=n},ze=e=>{var t;if(!oe)return;const n=e.target;n.isConnected&&((null===(t=G.current)||void 0===t?void 0:t.contains(n))||[document.querySelector(`[id='${l}']`),...ve].some((e=>null==e?void 0:e.contains(n)))||(Pe(!1),J.current&&clearTimeout(J.current)))},Be=be(Me,50,!0),Ve=be(Fe,50,!0),We=e=>{Ve.cancel(),Be(e)},qe=()=>{Be.cancel(),Ve()},$e=(0,o.useCallback)((()=>{var e,t;const n=null!==(e=null==se?void 0:se.position)&&void 0!==e?e:P;n?je(n):w?de.current&&je(de.current):(null==B?void 0:B.isConnected)&&ye({place:null!==(t=null==se?void 0:se.place)&&void 0!==t?t:s,offset:c,elementReference:B,tooltipReference:G.current,tooltipArrowReference:Z.current,strategy:h,middlewares:v,border:W}).then((e=>{we.current&&Le(e)}))}),[oe,B,M,R,s,null==se?void 0:se.place,c,h,P,null==se?void 0:se.position,w]);(0,o.useEffect)((()=>{var e,t;const n=new Set(pe);ve.forEach((e=>{n.add({current:e})}));const r=document.querySelector(`[id='${l}']`);r&&n.add({current:r});const o=()=>{Pe(!1)},i=_e(B),a=_e(G.current);Re.scroll&&(window.addEventListener("scroll",o),null==i||i.addEventListener("scroll",o),null==a||a.addEventListener("scroll",o));let s=null;Re.resize?window.addEventListener("resize",o):B&&G.current&&(s=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=K(e),u=o||i?[...c?Y(c):[],...Y(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const f=c&&a?function(e,t){let n,r=null;const o=D(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function l(a,s){void 0===a&&(a=!1),void 0===s&&(s=1),i();const{left:c,top:u,width:f,height:h}=e.getBoundingClientRect();if(a||t(),!f||!h)return;const v={rootMargin:-m(u)+"px "+-m(o.clientWidth-(c+f))+"px "+-m(o.clientHeight-(u+h))+"px "+-m(c)+"px",threshold:p(0,d(1,s))||1};let y=!0;function g(e){const t=e[0].intersectionRatio;if(t!==s){if(!y)return l();t?l(!1,t):n=setTimeout((()=>{l(!1,1e-7)}),100)}y=!1}try{r=new IntersectionObserver(g,{...v,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,v)}r.observe(e)}(!0),i}(c,n):null;let h,v=-1,y=null;l&&(y=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&y&&(y.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame((()=>{var e;null==(e=y)||e.observe(t)}))),n()})),c&&!s&&y.observe(c),y.observe(t));let g=s?te(e):null;return s&&function t(){const r=te(e);!g||r.x===g.x&&r.y===g.y&&r.width===g.width&&r.height===g.height||n(),g=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==f||f(),null==(e=y)||e.disconnect(),y=null,s&&cancelAnimationFrame(h)}}(B,G.current,$e,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const c=e=>{"Escape"===e.key&&Pe(!1)};Re.escape&&window.addEventListener("keydown",c),Re.clickOutsideAnchor&&window.addEventListener("click",ze);const u=[],f=e=>{oe&&(null==e?void 0:e.target)===B||Me(e)},h=e=>{oe&&(null==e?void 0:e.target)===B&&Fe()},v=["mouseenter","mouseleave","focus","blur"],y=["click","dblclick","mousedown","mouseup"];Object.entries(ke).forEach((([e,t])=>{t&&(v.includes(e)?u.push({event:e,listener:We}):y.includes(e)&&u.push({event:e,listener:f}))})),Object.entries(Ne).forEach((([e,t])=>{t&&(v.includes(e)?u.push({event:e,listener:qe}):y.includes(e)&&u.push({event:e,listener:h}))})),w&&u.push({event:"pointermove",listener:He});const g=()=>{he.current=!0},b=()=>{he.current=!1,Fe()};return _&&!Te&&(null===(e=G.current)||void 0===e||e.addEventListener("mouseenter",g),null===(t=G.current)||void 0===t||t.addEventListener("mouseleave",b)),u.forEach((({event:e,listener:t})=>{n.forEach((n=>{var r;null===(r=n.current)||void 0===r||r.addEventListener(e,t)}))})),()=>{var e,t;Re.scroll&&(window.removeEventListener("scroll",o),null==i||i.removeEventListener("scroll",o),null==a||a.removeEventListener("scroll",o)),Re.resize?window.removeEventListener("resize",o):null==s||s(),Re.clickOutsideAnchor&&window.removeEventListener("click",ze),Re.escape&&window.removeEventListener("keydown",c),_&&!Te&&(null===(e=G.current)||void 0===e||e.removeEventListener("mouseenter",g),null===(t=G.current)||void 0===t||t.removeEventListener("mouseleave",b)),u.forEach((({event:e,listener:t})=>{n.forEach((n=>{var r;null===(r=n.current)||void 0===r||r.removeEventListener(e,t)}))}))}}),[B,$e,le,pe,ve,A,O,C,xe,g,b]),(0,o.useEffect)((()=>{var e,n;let r=null!==(n=null!==(e=null==se?void 0:se.anchorSelect)&&void 0!==e?e:a)&&void 0!==n?n:"";!r&&t&&(r=`[data-tooltip-id='${t}']`);const o=new MutationObserver((e=>{const n=[],o=[];e.forEach((e=>{if("attributes"===e.type&&"data-tooltip-id"===e.attributeName&&(e.target.getAttribute("data-tooltip-id")===t?n.push(e.target):e.oldValue===t&&o.push(e.target)),"childList"===e.type){if(B){const t=[...e.removedNodes].filter((e=>1===e.nodeType));if(r)try{o.push(...t.filter((e=>e.matches(r)))),o.push(...t.flatMap((e=>[...e.querySelectorAll(r)])))}catch(e){}t.some((e=>{var t;return!!(null===(t=null==e?void 0:e.contains)||void 0===t?void 0:t.call(e,B))&&(ae(!1),Pe(!1),V(null),J.current&&clearTimeout(J.current),Q.current&&clearTimeout(Q.current),!0)}))}if(r)try{const t=[...e.addedNodes].filter((e=>1===e.nodeType));n.push(...t.filter((e=>e.matches(r)))),n.push(...t.flatMap((e=>[...e.querySelectorAll(r)])))}catch(e){}}})),(n.length||o.length)&&ge((e=>[...e.filter((e=>!o.includes(e))),...n]))}));return o.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{o.disconnect()}}),[t,a,null==se?void 0:se.anchorSelect,B]),(0,o.useEffect)((()=>{$e()}),[$e]),(0,o.useEffect)((()=>{if(!(null==F?void 0:F.current))return()=>null;const e=new ResizeObserver((()=>{setTimeout((()=>$e()))}));return e.observe(F.current),()=>{e.disconnect()}}),[M,null==F?void 0:F.current]),(0,o.useEffect)((()=>{var e;const t=document.querySelector(`[id='${l}']`),n=[...ve,t];B&&n.includes(B)||V(null!==(e=ve[0])&&void 0!==e?e:t)}),[l,ve,B]),(0,o.useEffect)((()=>(H&&Pe(!0),()=>{J.current&&clearTimeout(J.current),Q.current&&clearTimeout(Q.current)})),[]),(0,o.useEffect)((()=>{var e;let n=null!==(e=null==se?void 0:se.anchorSelect)&&void 0!==e?e:a;if(!n&&t&&(n=`[data-tooltip-id='${t}']`),n)try{const e=Array.from(document.querySelectorAll(n));ge(e)}catch(e){ge([])}}),[t,a,null==se?void 0:se.anchorSelect]),(0,o.useEffect)((()=>{J.current&&(clearTimeout(J.current),Ie(g))}),[g]);const Ue=null!==(X=null==se?void 0:se.content)&&void 0!==X?X:M,Xe=oe&&Object.keys(ne.tooltipStyles).length>0;return(0,o.useImperativeHandle)(e,(()=>({open:e=>{if(null==e?void 0:e.anchorSelect)try{document.querySelector(e.anchorSelect)}catch(t){return void console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`)}ce(null!=e?e:null),(null==e?void 0:e.delay)?Ie(e.delay):Pe(!0)},close:e=>{(null==e?void 0:e.delay)?De(e.delay):Pe(!1)},activeAnchor:B,place:ne.place,isOpen:Boolean(le&&!E&&Ue&&Xe)}))),le&&!E&&Ue?o.createElement(y,{id:t,role:U,className:me("react-tooltip",Oe.tooltip,Ce.tooltip,Ce[i],n,`react-tooltip__place-${ne.place}`,Oe[Xe?"show":"closing"],Xe?"react-tooltip__show":"react-tooltip__closing","fixed"===h&&Oe.fixed,_&&Oe.clickable),onTransitionEnd:e=>{ee.current&&clearTimeout(ee.current),oe||"opacity"!==e.propertyName||(ae(!1),ce(null),null==I||I())},style:{...R,...ne.tooltipStyles,opacity:void 0!==q&&Xe?q:void 0},ref:G},Ue,o.createElement(y,{className:me("react-tooltip-arrow",Oe.arrow,Ce.arrow,r,x&&Oe.noArrow),style:{...ne.tooltipArrowStyles,background:$?`linear-gradient(to right bottom, transparent 50%, ${$} 50%)`:void 0},ref:Z})):null},Re=({content:e})=>o.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),Pe=o.forwardRef((({id:e,anchorId:t,anchorSelect:n,content:r,html:i,render:l,className:a,classNameArrow:s,variant:c="dark",place:u="top",offset:d=10,wrapper:p="div",children:f=null,events:m=["hover"],openOnClick:h=!1,positionStrategy:v="absolute",middlewares:y,delayShow:g=0,delayHide:b=0,float:w=!1,hidden:E=!1,noArrow:x=!1,clickable:_=!1,closeOnEsc:S=!1,closeOnScroll:T=!1,closeOnResize:k=!1,openEvents:A,closeEvents:O,globalCloseEvents:C,imperativeModeOnly:N=!1,style:R,position:P,isOpen:L,defaultIsOpen:I=!1,disableStyleInjection:D=!1,border:M,opacity:F,arrowColor:j,setIsOpen:H,afterShow:z,afterHide:B,role:V="tooltip"},W)=>{const[q,$]=(0,o.useState)(r),[U,X]=(0,o.useState)(i),[G,Y]=(0,o.useState)(u),[Z,K]=(0,o.useState)(c),[J,Q]=(0,o.useState)(d),[ee,te]=(0,o.useState)(g),[ne,re]=(0,o.useState)(b),[oe,ie]=(0,o.useState)(w),[le,ae]=(0,o.useState)(E),[se,ce]=(0,o.useState)(p),[ue,de]=(0,o.useState)(m),[pe,fe]=(0,o.useState)(v),[he,ve]=(0,o.useState)(null),[ye,be]=(0,o.useState)(null),we=(0,o.useRef)(D),{anchorRefs:Ee,activeAnchor:xe}=Ae(e),_e=e=>null==e?void 0:e.getAttributeNames().reduce(((t,n)=>{var r;return n.startsWith("data-tooltip-")&&(t[n.replace(/^data-tooltip-/,"")]=null!==(r=null==e?void 0:e.getAttribute(n))&&void 0!==r?r:null),t}),{}),Se=e=>{const t={place:e=>{var t;Y(null!==(t=e)&&void 0!==t?t:u)},content:e=>{$(null!=e?e:r)},html:e=>{X(null!=e?e:i)},variant:e=>{var t;K(null!==(t=e)&&void 0!==t?t:c)},offset:e=>{Q(null===e?d:Number(e))},wrapper:e=>{var t;ce(null!==(t=e)&&void 0!==t?t:p)},events:e=>{const t=null==e?void 0:e.split(" ");de(null!=t?t:m)},"position-strategy":e=>{var t;fe(null!==(t=e)&&void 0!==t?t:v)},"delay-show":e=>{te(null===e?g:Number(e))},"delay-hide":e=>{re(null===e?b:Number(e))},float:e=>{ie(null===e?w:"true"===e)},hidden:e=>{ae(null===e?E:"true"===e)},"class-name":e=>{ve(e)}};Object.values(t).forEach((e=>e(null))),Object.entries(e).forEach((([e,n])=>{var r;null===(r=t[e])||void 0===r||r.call(t,n)}))};(0,o.useEffect)((()=>{$(r)}),[r]),(0,o.useEffect)((()=>{X(i)}),[i]),(0,o.useEffect)((()=>{Y(u)}),[u]),(0,o.useEffect)((()=>{K(c)}),[c]),(0,o.useEffect)((()=>{Q(d)}),[d]),(0,o.useEffect)((()=>{te(g)}),[g]),(0,o.useEffect)((()=>{re(b)}),[b]),(0,o.useEffect)((()=>{ie(w)}),[w]),(0,o.useEffect)((()=>{ae(E)}),[E]),(0,o.useEffect)((()=>{fe(v)}),[v]),(0,o.useEffect)((()=>{we.current!==D&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")}),[D]),(0,o.useEffect)((()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===D,disableBase:D}}))}),[]),(0,o.useEffect)((()=>{var r;const o=new Set(Ee);let i=n;if(!i&&e&&(i=`[data-tooltip-id='${e}']`),i)try{document.querySelectorAll(i).forEach((e=>{o.add({current:e})}))}catch(r){console.warn(`[react-tooltip] "${i}" is not a valid CSS selector`)}const l=document.querySelector(`[id='${t}']`);if(l&&o.add({current:l}),!o.size)return()=>null;const a=null!==(r=null!=ye?ye:l)&&void 0!==r?r:xe.current,s=new MutationObserver((e=>{e.forEach((e=>{var t;if(!a||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const n=_e(a);Se(n)}))})),c={attributes:!0,childList:!1,subtree:!1};if(a){const e=_e(a);Se(e),s.observe(a,c)}return()=>{s.disconnect()}}),[Ee,xe,ye,t,n]),(0,o.useEffect)((()=>{(null==R?void 0:R.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),M&&!ge("border",`${M}`)&&console.warn(`[react-tooltip] "${M}" is not a valid \`border\`.`),(null==R?void 0:R.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),F&&!ge("opacity",`${F}`)&&console.warn(`[react-tooltip] "${F}" is not a valid \`opacity\`.`)}),[]);let Te=f;const ke=(0,o.useRef)(null);if(l){const e=l({content:(null==ye?void 0:ye.getAttribute("data-tooltip-content"))||q||null,activeAnchor:ye});Te=e?o.createElement("div",{ref:ke,className:"react-tooltip-content-wrapper"},e):null}else q&&(Te=q);U&&(Te=o.createElement(Re,{content:U}));const Oe={forwardRef:W,id:e,anchorId:t,anchorSelect:n,className:me(a,he),classNameArrow:s,content:Te,contentWrapperRef:ke,place:G,variant:Z,offset:J,wrapper:se,events:ue,openOnClick:h,positionStrategy:pe,middlewares:y,delayShow:ee,delayHide:ne,float:oe,hidden:le,noArrow:x,clickable:_,closeOnEsc:S,closeOnScroll:T,closeOnResize:k,openEvents:A,closeEvents:O,globalCloseEvents:C,imperativeModeOnly:N,style:R,position:P,isOpen:L,defaultIsOpen:I,border:M,opacity:F,arrowColor:j,setIsOpen:H,afterShow:z,afterHide:B,activeAnchor:ye,setActiveAnchor:e=>be(e),role:V};return o.createElement(Ne,{...Oe})}));"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",(e=>{e.detail.disableCore||ve({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||ve({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})}));const Le=(e,t="")=>{for(const[n,r]of Object.entries(e)){let e=n;t&&(e+="_"+String(t));const o=new CustomEvent(e,{detail:r});dispatchEvent(o)}},Ie=(e,t="")=>{for(const[n,r]of Object.entries(e)){let e=n;t&&(e+="_"+String(t)),addEventListener(e,(e=>{r(e.detail)}),!1)}};function De(){return"string"==typeof(0,s.select)("core/editor")?.getCurrentPostType()}function Me(e){if("object"==typeof GatherPress)return e.split(".").reduce(((e,t)=>e&&e[t]),GatherPress)}const Fe=({onlineEventLinkDefault:e=""})=>{const t=(0,i.__)("Online event","gatherpress"),[n,r]=(0,c.useState)(e);return Ie({setOnlineEventLink:r},Me("eventDetails.postId")),(0,o.createElement)(a.Flex,{justify:"normal",gap:"3"},(0,o.createElement)(a.FlexItem,{display:"flex"},(0,o.createElement)(a.Icon,{icon:"video-alt2"})),(0,o.createElement)(a.FlexItem,null,!n&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("span",{tabIndex:"0",className:"gatherpress-tooltip","data-tooltip-id":"gatherpress-online-event-tooltip","data-tooltip-content":(0,i.__)("Link available for attendees only.","gatherpress")},t),(0,o.createElement)(Pe,{id:"gatherpress-online-event-tooltip"})),n&&(0,o.createElement)("a",{href:n,rel:"noreferrer",target:"_blank"},t)))};var je=n(442);const He=je.default||je,ze=({name:e,fullAddress:t,phoneNumber:n,website:r})=>(0,o.createElement)(o.Fragment,null,(e||t)&&(0,o.createElement)(a.Flex,{justify:"normal",align:"flex-start",gap:"4"},(0,o.createElement)(a.FlexItem,{display:"flex",className:"gatherpress-venue__icon"},(0,o.createElement)(a.Icon,{icon:"location"})),(0,o.createElement)(a.FlexItem,null,e&&(0,o.createElement)("div",{className:"gatherpress-venue__name"},(0,o.createElement)("strong",null,He(e))),t&&(0,o.createElement)("div",{className:"gatherpress-venue__full-address"},He(t)))),(n||r)&&(0,o.createElement)(a.Flex,{justify:"normal",gap:"8"},n&&(0,o.createElement)(a.FlexItem,null,(0,o.createElement)(a.Flex,{justify:"normal",gap:"4"},(0,o.createElement)(a.FlexItem,{display:"flex",className:"gatherpress-venue__icon"},(0,o.createElement)(a.Icon,{icon:"phone"})),(0,o.createElement)(a.FlexItem,null,(0,o.createElement)("div",{className:"gatherpress-venue__phone-number"},n)))),r&&(0,o.createElement)(a.FlexItem,null,(0,o.createElement)(a.Flex,{justify:"normal",gap:"4"},(0,o.createElement)(a.FlexItem,{display:"flex",className:"gatherpress-venue__icon"},(0,o.createElement)(a.Icon,{icon:"admin-site-alt3"})),(0,o.createElement)(a.FlexItem,null,(0,o.createElement)("div",{className:"gatherpress-venue__website"},(0,o.createElement)("a",{href:r,target:"_blank",rel:"noreferrer noopener"},r))))))),Be=({name:e="",fullAddress:t,phoneNumber:n,website:r,isOnlineEventTerm:i=!1,onlineEventLink:l=""})=>(0,o.createElement)(o.Fragment,null,!i&&(0,o.createElement)(ze,{name:e,fullAddress:t,phoneNumber:n,website:r}),i&&(0,o.createElement)(Fe,{onlineEventLinkDefault:l})),Ve=e=>{const{isSelected:t}=e,n=t?"none":"block";return(0,o.createElement)("div",{style:{position:"relative"}},e.children,(0,o.createElement)("div",{style:{position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:n}}))};function We(){return"gatherpress_venue"===(0,s.select)("core/editor")?.getCurrentPostType()}const qe=()=>{const[e,t]=(0,c.useState)(""),[n,r]=(0,c.useState)(""),[l,u]=(0,c.useState)(""),[d,p]=(0,c.useState)(""),[f,m]=(0,c.useState)(!1),[h,v]=(0,c.useState)(""),y=(0,s.useDispatch)("core/editor").editPost,{unlockPostSaving:g}=(0,s.useDispatch)("core/editor"),b=(0,s.useSelect)((e=>e("core/editor").getEditedPostAttribute("_gatherpress_venue"))),w=(0,s.useSelect)((e=>e("core").getEntityRecord("taxonomy","_gatherpress_venue",b))),E=w?.slug.replace(/^_/,""),[x,_]=(0,c.useState)(""),S=b+":"+x,T=(0,s.useSelect)((e=>e("core").getEntityRecords("postType","gatherpress_venue",{per_page:1,slug:x})));(0,c.useEffect)((()=>{var e,n,o,l;let a={};if(x&&Array.isArray(T)){var s;const e=null!==(s=T[0]?.meta?.gatherpress_venue_information)&&void 0!==s?s:"{}";var c;e&&(a=JSON.parse(e),a.name=null!==(c=T[0]?.title.rendered)&&void 0!==c?c:"")}const d=null!==(e=a?.name)&&void 0!==e?e:(0,i.__)("No venue selected.","gatherpress"),f=null!==(n=a?.fullAddress)&&void 0!==n?n:"",m=null!==(o=a?.phoneNumber)&&void 0!==o?o:"",h=null!==(l=a?.website)&&void 0!==l?l:"";E&&_(E),v(S?String(S):""),t(d),r(f),u(m),p(h),Le({setName:d,setFullAddress:f,setPhoneNumber:m,setWebsite:h,setIsOnlineEventTerm:"online-event"===x})}),[x,T,E,S]);let k=(0,s.useSelect)((e=>e("core").getEntityRecords("taxonomy","_gatherpress_venue",{per_page:-1,context:"view"})),[]);return k?(k=k.map((e=>({label:e.name,value:e.id+":"+e.slug.replace(/^_/,"")}))),k.unshift({value:":",label:(0,i.__)("Choose a venue","gatherpress")})):k=[],(0,o.createElement)(a.PanelRow,null,(0,o.createElement)(a.SelectControl,{label:(0,i.__)("Venue Selector","gatherpress"),value:h,onChange:e=>{(e=>{v(e);const t=""!==(e=e.split(":"))[0]?[e[0]]:[];y({_gatherpress_venue:t}),_(e[1]),g()})(e)},options:k}))},$e=()=>{var e,t,n;const r=(0,s.useDispatch)("core/editor").editPost,l=(e,t)=>{const n=JSON.stringify({...u,[e]:t});r({meta:{gatherpress_venue_information:n}})};let u=(0,s.useSelect)((e=>e("core/editor").getEditedPostAttribute("meta").gatherpress_venue_information));u=u?JSON.parse(u):{};const[d,p]=(0,c.useState)(null!==(e=u.fullAddress)&&void 0!==e?e:""),[f,m]=(0,c.useState)(null!==(t=u.phoneNumber)&&void 0!==t?t:""),[h,v]=(0,c.useState)(null!==(n=u.website)&&void 0!==n?n:"");return Ie({setFullAddress:p,setPhoneNumber:m,setWebsite:v}),(0,o.createElement)(o.Fragment,null,(0,o.createElement)(a.TextControl,{label:(0,i.__)("Full Address","gatherpress"),value:d,onChange:e=>{Le({setFullAddress:e}),l("fullAddress",e)}}),(0,o.createElement)(a.TextControl,{label:(0,i.__)("Phone Number","gatherpress"),value:f,onChange:e=>{Le({setPhoneNumber:e}),l("phoneNumber",e)}}),(0,o.createElement)(a.TextControl,{label:(0,i.__)("Website","gatherpress"),value:h,type:"url",onChange:e=>{Le({setWebsite:e}),l("website",e)}}))},Ue=()=>(0,o.createElement)("section",null,(0,o.createElement)($e,null)),Xe=()=>{const{editPost:e,unlockPostSaving:t}=(0,s.useDispatch)("core/editor"),n=(0,s.useSelect)((e=>e("core/editor").getEditedPostAttribute("meta").gatherpress_online_event_link)),[r,l]=(0,c.useState)(n);return Ie({setOnlineEventLink:l},Me("eventDetails.postId")),(0,o.createElement)(a.TextControl,{label:(0,i.__)("Online event link","gatherpress"),value:r,placeholder:(0,i.__)("Add link to online event","gatherpress"),onChange:n=>{(n=>{e({meta:{gatherpress_online_event_link:n}}),l(n),Le({setOnlineEventLink:n},Me("eventDetails.postId")),t()})(n)}})},Ge=window.moment;var Ye=n.n(Ge);window.wp.apiFetch,window.wp.date;const Ze="YYYY-MM-DDTHH:mm:ss",Ke=Ye().tz(Je()).add(1,"day").set("hour",18).set("minute",0).set("second",0).format(Ze);function Je(e=Me("eventDetails.dateTime.timezone")){return Ye().tz.zone(e)?e:(0,i.__)("GMT","gatherpress")}Ye().tz(Ke,Je()).add(2,"hours").format(Ze);const Qe=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"gatherpress/venue","version":"1.0.1","title":"Venue","category":"gatherpress","icon":"location","example":{},"description":"Provides information about an event venue.","attributes":{"mapShow":{"type":"boolean","default":true},"mapAlign":{"type":"string","default":""},"mapZoomLevel":{"type":"number","default":10},"mapType":{"type":"string","default":"m"},"mapHeight":{"type":"number","default":300}},"supports":{"align":["wide"],"html":false},"textdomain":"gatherpress","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./venue.js","render":"file:./render.php"}');(0,r.registerBlockType)(Qe,{edit:({attributes:e,setAttributes:t,isSelected:n})=>{const{mapZoomLevel:r,mapType:d,mapHeight:p}=e,[f,m]=(0,c.useState)(""),[h,v]=(0,c.useState)(""),[y,g]=(0,c.useState)(""),[b,w]=(0,c.useState)(""),[E,x]=(0,c.useState)(!1),_=(0,l.useBlockProps)(),S=(0,s.useSelect)((e=>e("core/editor")?.getEditedPostAttribute("meta")?.gatherpress_online_event_link));let{mapShow:T}=e,k=(0,s.useSelect)((e=>e("core/editor")?.getEditedPostAttribute("meta")?.gatherpress_venue_information));return k=k?JSON.parse(k):{},T&&h&&(T=!0),T&&!De()&&(T=!0),Ie({setName:m,setFullAddress:v,setPhoneNumber:g,setWebsite:w,setIsOnlineEventTerm:x}),(0,c.useEffect)((()=>{We()&&(v(k.fullAddress),g(k.phoneNumber),w(k.website),m(h||y||b?"":(0,i.__)("Add venue information.","gatherpress"))),"gatherpress_event"!==(0,s.select)("core/editor")?.getCurrentPostType()&&De()||m(h||y||b?"":(0,i.__)("No venue selected.","gatherpress"))}),[k.fullAddress,k.phoneNumber,k.website,h,y,b]),(0,o.createElement)(o.Fragment,null,(0,o.createElement)(l.InspectorControls,null,De()&&(0,o.createElement)(a.PanelBody,{title:(0,i.__)("Venue settings","gatherpress"),initialOpen:!0},(0,o.createElement)(a.PanelRow,null,!We()&&(0,o.createElement)(qe,null),We()&&(0,o.createElement)(Ue,null)),E&&(0,o.createElement)(a.PanelRow,null,(0,o.createElement)(Xe,null))),!E&&(0,o.createElement)(a.PanelBody,{title:(0,i.__)("Map settings","gatherpress"),initialOpen:!0},(0,o.createElement)(a.PanelRow,null,(0,i.__)("Show map on venue","gatherpress")),(0,o.createElement)(a.PanelRow,null,(0,o.createElement)(a.ToggleControl,{label:T?(0,i.__)("Display the map","gatherpress"):(0,i.__)("Hide the map","gatherpress"),checked:T,onChange:e=>{t({mapShow:e})}})),(0,o.createElement)(a.RangeControl,{label:(0,i.__)("Zoom level","gatherpress"),beforeIcon:"search",value:r,onChange:e=>t({mapZoomLevel:e}),min:1,max:22}),(0,o.createElement)(a.RadioControl,{label:(0,i.__)("Map type","gatherpress"),selected:d,options:[{label:(0,i.__)("Roadmap","gatherpress"),value:"m"},{label:(0,i.__)("Satellite","gatherpress"),value:"k"}],onChange:e=>{t({mapType:e})}}),(0,o.createElement)(a.RangeControl,{label:(0,i.__)("Map height","gatherpress"),beforeIcon:"location",value:p,onChange:e=>t({mapHeight:e}),min:100,max:1e3}))),(0,o.createElement)("div",{..._},(0,o.createElement)(Ve,{isSelected:n},(0,o.createElement)("div",{className:"gatherpress-venue"},(0,o.createElement)(Be,{name:f,fullAddress:h,phoneNumber:y,website:b,isOnlineEventTerm:E,onlineEventLink:S}),T&&(0,o.createElement)(u,{location:h,zoom:r,type:d,height:p})))))},save:()=>{}})},5413:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},1141:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(5413),l=n(6957);o(n(6957),t);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},s=function(){function e(e,t,n){this.dom=[],this.root=new l.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=a),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:a,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new l.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?i.ElementType.Tag:void 0,r=new l.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new l.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new l.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new l.Text(""),t=new l.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new l.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=s,t.default=s},6957:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(a);t.NodeWithChildren=p;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=l.ElementType.CDATA,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=f;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=l.ElementType.Root,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=m;var h=function(e){function t(t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o="script"===t?l.ElementType.Script:"style"===t?l.ElementType.Style:l.ElementType.Tag);var i=e.call(this,r)||this;return i.name=t,i.attribs=n,i.type=o,i}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(p);function v(e){return(0,l.isTag)(e)}function y(e){return e.type===l.ElementType.CDATA}function g(e){return e.type===l.ElementType.Text}function b(e){return e.type===l.ElementType.Comment}function w(e){return e.type===l.ElementType.Directive}function E(e){return e.type===l.ElementType.Root}function x(e,t){var n;if(void 0===t&&(t=!1),g(e))n=new c(e.data);else if(b(e))n=new u(e.data);else if(v(e)){var r=t?_(e.children):[],o=new h(e.name,i({},e.attribs),r);r.forEach((function(e){return e.parent=o})),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=o}else if(y(e)){r=t?_(e.children):[];var l=new f(r);r.forEach((function(e){return e.parent=l})),n=l}else if(E(e)){r=t?_(e.children):[];var a=new m(r);r.forEach((function(e){return e.parent=a})),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),n=a}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var s=new d(e.name,e.data);null!=e["x-name"]&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),n=s}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function _(e){for(var t=e.map((function(e){return x(e,!0)})),n=1;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce((function(e,t){return e[t.toLowerCase()]=t,e}),{})},5496:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="html",r="head",o="body",i=/<([a-zA-Z]+[0-9]?)/,l=//i,a=//i,s=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},c=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},u="object"==typeof window&&window.DOMParser;if("function"==typeof u){var d=new u;s=c=function(e,t){return t&&(e="<".concat(t,">").concat(e,"")),d.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var p=document.implementation.createHTMLDocument();s=function(e,t){if(t){var n=p.documentElement.querySelector(t);return n&&(n.innerHTML=e),p}return p.documentElement.innerHTML=e,p}}var f,m="object"==typeof document&&document.createElement("template");m&&m.content&&(f=function(e){return m.innerHTML=e,m.content.childNodes}),t.default=function(e){var t,u,d=e.match(i),p=d&&d[1]?d[1].toLowerCase():"";switch(p){case n:var m=c(e);return l.test(e)||null===(t=null==(v=m.querySelector(r))?void 0:v.parentNode)||void 0===t||t.removeChild(v),a.test(e)||null===(u=null==(v=m.querySelector(o))?void 0:v.parentNode)||void 0===u||u.removeChild(v),m.querySelectorAll(n);case r:case o:var h=s(e).querySelectorAll(p);return a.test(e)&&l.test(e)?h[0].parentNode.childNodes:h;default:return f?f(e):(v=s(e,o).querySelector(o)).childNodes;var v}}},2471:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(5496)),i=n(7731),l=/<(![a-zA-Z\s]+)>/;t.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(l),n=t?t[1]:void 0;return(0,i.formatDOM)((0,o.default)(e),null,n)}},7731:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDOM=t.formatAttributes=void 0;var r=n(1141),o=n(5270);function i(e){for(var t={},n=0,r=e.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4210),o=n(4958),i=["checked","value"],l=["input","select","textarea"],a={reset:!0,submit:!0};function s(e){return r.possibleStandardNames[e]}t.default=function(e,t){void 0===e&&(e={});var n={},c=Boolean(e.type&&a[e.type]);for(var u in e){var d=e[u];if((0,r.isCustomAttribute)(u))n[u]=d;else{var p=u.toLowerCase(),f=s(p);if(f){var m=(0,r.getPropertyInfo)(f);switch(i.includes(f)&&l.includes(t)&&!c&&(f=s("default"+p)),n[f]=d,m&&m.type){case r.BOOLEAN:n[f]=!0;break;case r.OVERLOADED_BOOLEAN:""===d&&(n[f]=!0)}}else o.PRESERVE_CUSTOM_ATTRIBUTES&&(n[u]=d)}}return(0,o.setStyleProp)(e.style,n),n}},308:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(1609),i=r(n(840)),l=n(4958),a={cloneElement:o.cloneElement,createElement:o.createElement,isValidElement:o.isValidElement};function s(e){return l.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,l.isCustomComponent)(e.name,e.attribs)}t.default=function e(t,n){void 0===n&&(n={});for(var r=[],o="function"==typeof n.replace,c=n.transform||l.returnFirstArg,u=n.library||a,d=u.cloneElement,p=u.createElement,f=u.isValidElement,m=t.length,h=0;h1&&(y=d(y,{key:y.key||h})),r.push(c(y,v,h));continue}}if("text"!==v.type){var g=v,b={};s(g)?((0,l.setStyleProp)(g.attribs.style,g.attribs),b=g.attribs):g.attribs&&(b=(0,i.default)(g.attribs,g.name));var w=void 0;switch(v.type){case"script":case"style":v.children[0]&&(b.dangerouslySetInnerHTML={__html:v.children[0].data});break;case"tag":"textarea"===v.name&&v.children[0]?b.defaultValue=v.children[0].data:v.children&&v.children.length&&(w=e(v.children,n));break;default:continue}m>1&&(b.key=h),r.push(c(p(v.name,b,w),v,h))}else{var E=!v.data.trim().length;if(E&&v.parent&&!(0,l.canTextBeChildOfNode)(v.parent))continue;if(n.trim&&E)continue;r.push(c(v.data,v,h))}}return 1===r.length?r[0]:r}},442:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0;var o=r(n(2471));t.htmlToDOM=o.default;var i=r(n(840));t.attributesToProps=i.default;var l=r(n(308));t.domToReact=l.default;var a=n(1141);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return a.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return a.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return a.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return a.Text}});var s={lowerCaseAttributeNames:!1};t.default=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return e?(0,l.default)((0,o.default)(e,(null==t?void 0:t.htmlparser2)||s),t):[]}},4958:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=t.setStyleProp=t.isCustomComponent=void 0;var o=n(1609),i=r(n(5229)),l=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);t.isCustomComponent=function(e,t){return e.includes("-")?!l.has(e):Boolean(t&&"string"==typeof t.is)};var a={reactCompat:!0};t.setStyleProp=function(e,t){if("string"==typeof e)if(e.trim())try{t.style=(0,i.default)(e,a)}catch(e){t.style={}}else t.style={}},t.PRESERVE_CUSTOM_ATTRIBUTES=Number(o.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)},t.returnFirstArg=function(e){return e}},9788:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(s,c):c}e.exports=function(e,s){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];s=s||{};var d=1,p=1;function f(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");p=~r?e.length-r:p+e.length}function m(){var e={line:d,column:p};return function(t){return t.position=new h(e),b(),t}}function h(e){this.start=e,this.end={line:d,column:p},this.source=s.source}h.prototype.content=e;var v=[];function y(t){var n=new Error(s.source+":"+d+":"+p+": "+t);if(n.reason=t,n.filename=s.source,n.line=d,n.column=p,n.source=e,!s.silent)throw n;v.push(n)}function g(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function b(){g(r)}function w(e){var t;for(e=e||[];t=E();)!1!==t&&e.push(t);return e}function E(){var t=m();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return y("End of comment missing");var r=e.slice(2,n-2);return p+=2,f(r),e=e.slice(n),p+=2,t({type:"comment",comment:r})}}function x(){var e=m(),n=g(o);if(n){if(E(),!g(i))return y("property missing ':'");var r=g(l),s=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return g(a),s}}return b(),function(){var e,t=[];for(w(t);e=x();)!1!==e&&(t.push(e),w(t));return t}()}},4210:(e,t,n)=>{"use strict";function r(e,t,n,r,o,i,l){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}const o={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((e=>{o[e]=new r(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((([e,t])=>{o[e]=new r(e,1,!1,t,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((e=>{o[e]=new r(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((e=>{o[e]=new r(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((e=>{o[e]=new r(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((e=>{o[e]=new r(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((e=>{o[e]=new r(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((e=>{o[e]=new r(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((e=>{o[e]=new r(e,5,!1,e.toLowerCase(),null,!1,!1)}));const i=/[\-\:]([a-z])/g,l=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((e=>{const t=e.replace(i,l);o[t]=new r(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((e=>{const t=e.replace(i,l);o[t]=new r(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((e=>{const t=e.replace(i,l);o[t]=new r(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((e=>{o[e]=new r(e,1,!1,e.toLowerCase(),null,!1,!1)})),o.xlinkHref=new r("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((e=>{o[e]=new r(e,1,!1,e.toLowerCase(),null,!0,!0)}));const{CAMELCASE:a,SAME:s,possibleStandardNames:c}=n(6811),u=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),d=Object.keys(c).reduce(((e,t)=>{const n=c[t];return n===s?e[t]=t:n===a?e[t.toLowerCase()]=t:e[t]=n,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return o.hasOwnProperty(e)?o[e]:null},t.isCustomAttribute=u,t.possibleStandardNames=d},6811:(e,t)=>{t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},5229:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(1133)),o=n(8917);function i(e,t){var n={};return e&&"string"==typeof e?((0,r.default)(e,(function(e,r){e&&r&&(n[(0,o.camelCase)(e,t)]=r)})),n):n}i.default=i,e.exports=i},8917:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,r=/-([a-z])/g,o=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,a=function(e,t){return t.toUpperCase()},s=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||o.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(l,s):e.replace(i,s)).replace(r,a))}},1133:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(9788));t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,o.default)(e),i="function"==typeof t;return r.forEach((function(e){if("declaration"===e.type){var r=e.property,o=e.value;i?t(r,o,e):o&&((n=n||{})[r]=o)}})),n}},1609:e=>{"use strict";e.exports=window.React},6942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t{if(!n){var l=1/0;for(u=0;u=i)&&Object.keys(r.O).every((e=>r.O[e](n[s])))?n.splice(s--,1):(a=!1,i0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[n,o,i]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={908:0,812:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var o,i,[l,a,s]=n,c=0;if(l.some((t=>0!==e[t]))){for(o in a)r.o(a,o)&&(r.m[o]=a[o]);if(s)var u=s(r)}for(t&&t(n);cr(2041)));o=r.O(o)})(); \ No newline at end of file +(()=>{var t,e={9067:(t,e,n)=>{"use strict";const i=window.wp.blocks;var o=n(1609);const r=window.wp.i18n,s=window.wp.blockEditor,a=window.wp.components,l=window.wp.data,h=window.wp.element,c=t=>{const{zoom:e,type:n,className:i,location:r,height:s}=t,a={border:0,height:s,width:"100%"},l="https://maps.google.com/maps?"+new URLSearchParams({q:r,z:e||10,t:n||"m",output:"embed"}).toString();return(0,o.createElement)("iframe",{src:l,style:a,className:i,title:r})};var u=n(3481),d=n.n(u);function p(){return"string"==typeof(0,l.select)("core/editor")?.getCurrentPostType()}function f(t){if("object"==typeof GatherPress)return t.split(".").reduce(((t,e)=>t&&t[e]),GatherPress)}n.p,n.p;const m=t=>{const{zoom:e,className:n,location:i,height:s,latitude:a,longitude:l}=t,c={height:s};return(0,h.useEffect)((()=>{if(void 0===d()||!a||!l)return;const t=d().map("map").setView([a,l],e);return d().Icon.Default.imagePath=f("urls.pluginUrl")+"build/images/",d().tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:(0,r.sprintf)(/* translators: %s: Link to OpenStreetMap contributors. */ /* translators: %s: Link to OpenStreetMap contributors. */ +(0,r.__)("© %s contributors","gatherpress"),'OpenStreetMap')}).addTo(t),d().marker([a,l]).addTo(t).bindPopup(i),()=>{t.remove()}}),[a,i,l,e]),a&&l?(0,o.createElement)("div",{className:n,id:"map",style:c}):(0,o.createElement)(o.Fragment,null)},_=t=>{const e=(0,l.select)("core")?.canUser("create","posts"),n=Boolean((0,l.select)("core/edit-post")),{zoom:i,type:r,className:s,latitude:a,longitude:h}=t;let{location:u,height:d}=t;d||(d=300),!e||n||u||(u="660 4th Street #119 San Francisco CA 94107, USA");const p=f("settings.mapPlatform");return u&&p?"google"===p?(0,o.createElement)(c,{location:u,className:s,zoom:i,type:r,height:d}):"osm"===p?(0,o.createElement)(m,{location:u,latitude:a,longitude:h,className:s,zoom:i,height:d}):(0,o.createElement)(o.Fragment,null):(0,o.createElement)(o.Fragment,null)},g=Math.min,v=Math.max,y=Math.round,w=Math.floor,x=t=>({x:t,y:t}),b={left:"right",right:"left",bottom:"top",top:"bottom"},T={start:"end",end:"start"};function P(t,e,n){return v(t,g(e,n))}function L(t,e){return"function"==typeof t?t(e):t}function E(t){return t.split("-")[0]}function S(t){return t.split("-")[1]}function k(t){return"x"===t?"y":"x"}function C(t){return"y"===t?"height":"width"}function M(t){return["top","bottom"].includes(E(t))?"y":"x"}function A(t){return k(M(t))}function O(t){return t.replace(/start|end/g,(t=>T[t]))}function z(t){return t.replace(/left|right|bottom|top/g,(t=>b[t]))}function I(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function N(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function R(t,e,n){let{reference:i,floating:o}=t;const r=M(e),s=A(e),a=C(s),l=E(e),h="y"===r,c=i.x+i.width/2-o.width/2,u=i.y+i.height/2-o.height/2,d=i[a]/2-o[a]/2;let p;switch(l){case"top":p={x:c,y:i.y-o.height};break;case"bottom":p={x:c,y:i.y+i.height};break;case"right":p={x:i.x+i.width,y:u};break;case"left":p={x:i.x-o.width,y:u};break;default:p={x:i.x,y:i.y}}switch(S(e)){case"start":p[s]-=d*(n&&h?-1:1);break;case"end":p[s]+=d*(n&&h?-1:1)}return p}async function Z(t,e){var n;void 0===e&&(e={});const{x:i,y:o,platform:r,rects:s,elements:a,strategy:l}=t,{boundary:h="clippingAncestors",rootBoundary:c="viewport",elementContext:u="floating",altBoundary:d=!1,padding:p=0}=L(e,t),f=I(p),m=a[d?"floating"===u?"reference":"floating":u],_=N(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(m)))||n?m:m.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(a.floating)),boundary:h,rootBoundary:c,strategy:l})),g="floating"===u?{...s.floating,x:i,y:o}:s.reference,v=await(null==r.getOffsetParent?void 0:r.getOffsetParent(a.floating)),y=await(null==r.isElement?void 0:r.isElement(v))&&await(null==r.getScale?void 0:r.getScale(v))||{x:1,y:1},w=N(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:v,strategy:l}):g);return{top:(_.top-w.top+f.top)/y.y,bottom:(w.bottom-_.bottom+f.bottom)/y.y,left:(_.left-w.left+f.left)/y.x,right:(w.right-_.right+f.right)/y.x}}const B=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,i;const{x:o,y:r,placement:s,middlewareData:a}=e,l=await async function(t,e){const{placement:n,platform:i,elements:o}=t,r=await(null==i.isRTL?void 0:i.isRTL(o.floating)),s=E(n),a=S(n),l="y"===M(n),h=["left","top"].includes(s)?-1:1,c=r&&l?-1:1,u=L(e,t);let{mainAxis:d,crossAxis:p,alignmentAxis:f}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return a&&"number"==typeof f&&(p="end"===a?-1*f:f),l?{x:p*c,y:d*h}:{x:d*h,y:p*c}}(e,t);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(i=a.arrow)&&i.alignmentOffset?{}:{x:o+l.x,y:r+l.y,data:{...l,placement:s}}}}};function D(t){return H(t)?(t.nodeName||"").toLowerCase():"#document"}function j(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function F(t){var e;return null==(e=(H(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function H(t){return t instanceof Node||t instanceof j(t).Node}function W(t){return t instanceof Element||t instanceof j(t).Element}function V(t){return t instanceof HTMLElement||t instanceof j(t).HTMLElement}function U(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof j(t).ShadowRoot)}function q(t){const{overflow:e,overflowX:n,overflowY:i,display:o}=$(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!["inline","contents"].includes(o)}function G(t){return["table","td","th"].includes(D(t))}function K(t){const e=Y(),n=$(t);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function Y(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function X(t){return["html","body","#document"].includes(D(t))}function $(t){return j(t).getComputedStyle(t)}function J(t){return W(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Q(t){if("html"===D(t))return t;const e=t.assignedSlot||t.parentNode||U(t)&&t.host||F(t);return U(e)?e.host:e}function tt(t){const e=Q(t);return X(e)?t.ownerDocument?t.ownerDocument.body:t.body:V(e)&&q(e)?e:tt(e)}function et(t,e,n){var i;void 0===e&&(e=[]),void 0===n&&(n=!0);const o=tt(t),r=o===(null==(i=t.ownerDocument)?void 0:i.body),s=j(o);return r?e.concat(s,s.visualViewport||[],q(o)?o:[],s.frameElement&&n?et(s.frameElement):[]):e.concat(o,et(o,[],n))}function nt(t){const e=$(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const o=V(t),r=o?t.offsetWidth:n,s=o?t.offsetHeight:i,a=y(n)!==r||y(i)!==s;return a&&(n=r,i=s),{width:n,height:i,$:a}}function it(t){return W(t)?t:t.contextElement}function ot(t){const e=it(t);if(!V(e))return x(1);const n=e.getBoundingClientRect(),{width:i,height:o,$:r}=nt(e);let s=(r?y(n.width):n.width)/i,a=(r?y(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const rt=x(0);function st(t){const e=j(t);return Y()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:rt}function at(t,e,n,i){void 0===e&&(e=!1),void 0===n&&(n=!1);const o=t.getBoundingClientRect(),r=it(t);let s=x(1);e&&(i?W(i)&&(s=ot(i)):s=ot(t));const a=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==j(t))&&e}(r,n,i)?st(r):x(0);let l=(o.left+a.x)/s.x,h=(o.top+a.y)/s.y,c=o.width/s.x,u=o.height/s.y;if(r){const t=j(r),e=i&&W(i)?j(i):i;let n=t,o=n.frameElement;for(;o&&i&&e!==n;){const t=ot(o),e=o.getBoundingClientRect(),i=$(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,s=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,h*=t.y,c*=t.x,u*=t.y,l+=r,h+=s,n=j(o),o=n.frameElement}}return N({width:c,height:u,x:l,y:h})}const lt=[":popover-open",":modal"];function ht(t){return lt.some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function ct(t){return at(F(t)).left+J(t).scrollLeft}function ut(t,e,n){let i;if("viewport"===e)i=function(t,e){const n=j(t),i=F(t),o=n.visualViewport;let r=i.clientWidth,s=i.clientHeight,a=0,l=0;if(o){r=o.width,s=o.height;const t=Y();(!t||t&&"fixed"===e)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:r,height:s,x:a,y:l}}(t,n);else if("document"===e)i=function(t){const e=F(t),n=J(t),i=t.ownerDocument.body,o=v(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),r=v(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let s=-n.scrollLeft+ct(t);const a=-n.scrollTop;return"rtl"===$(i).direction&&(s+=v(e.clientWidth,i.clientWidth)-o),{width:o,height:r,x:s,y:a}}(F(t));else if(W(e))i=function(t,e){const n=at(t,!0,"fixed"===e),i=n.top+t.clientTop,o=n.left+t.clientLeft,r=V(t)?ot(t):x(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:o*r.x,y:i*r.y}}(e,n);else{const n=st(t);i={...e,x:e.x-n.x,y:e.y-n.y}}return N(i)}function dt(t,e){const n=Q(t);return!(n===e||!W(n)||X(n))&&("fixed"===$(n).position||dt(n,e))}function pt(t,e,n){const i=V(e),o=F(e),r="fixed"===n,s=at(t,!0,r,e);let a={scrollLeft:0,scrollTop:0};const l=x(0);if(i||!i&&!r)if(("body"!==D(e)||q(o))&&(a=J(e)),i){const t=at(e,!0,r,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else o&&(l.x=ct(o));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function ft(t,e){return V(t)&&"fixed"!==$(t).position?e?e(t):t.offsetParent:null}function mt(t,e){const n=j(t);if(!V(t)||ht(t))return n;let i=ft(t,e);for(;i&&G(i)&&"static"===$(i).position;)i=ft(i,e);return i&&("html"===D(i)||"body"===D(i)&&"static"===$(i).position&&!K(i))?n:i||function(t){let e=Q(t);for(;V(e)&&!X(e);){if(K(e))return e;e=Q(e)}return null}(t)||n}const _t={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:i,strategy:o}=t;const r="fixed"===o,s=F(i),a=!!e&&ht(e.floating);if(i===s||a&&r)return n;let l={scrollLeft:0,scrollTop:0},h=x(1);const c=x(0),u=V(i);if((u||!u&&!r)&&(("body"!==D(i)||q(s))&&(l=J(i)),V(i))){const t=at(i);h=ot(i),c.x=t.x+i.clientLeft,c.y=t.y+i.clientTop}return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-l.scrollLeft*h.x+c.x,y:n.y*h.y-l.scrollTop*h.y+c.y}},getDocumentElement:F,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t;const r=[..."clippingAncestors"===n?function(t,e){const n=e.get(t);if(n)return n;let i=et(t,[],!1).filter((t=>W(t)&&"body"!==D(t))),o=null;const r="fixed"===$(t).position;let s=r?Q(t):t;for(;W(s)&&!X(s);){const e=$(s),n=K(s);n||"fixed"!==e.position||(o=null),(r?!n&&!o:!n&&"static"===e.position&&o&&["absolute","fixed"].includes(o.position)||q(s)&&!n&&dt(t,s))?i=i.filter((t=>t!==s)):o=e,s=Q(s)}return e.set(t,i),i}(e,this._c):[].concat(n),i],s=r[0],a=r.reduce(((t,n)=>{const i=ut(e,n,o);return t.top=v(i.top,t.top),t.right=g(i.right,t.right),t.bottom=g(i.bottom,t.bottom),t.left=v(i.left,t.left),t}),ut(e,s,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:mt,getElementRects:async function(t){const e=this.getOffsetParent||mt,n=this.getDimensions;return{reference:pt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,...await n(t.floating)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=nt(t);return{width:e,height:n}},getScale:ot,isElement:W,isRTL:function(t){return"rtl"===$(t).direction}};const gt=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:i,placement:o}=e,{mainAxis:r=!0,crossAxis:s=!1,limiter:a={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...l}=L(t,e),h={x:n,y:i},c=await Z(e,l),u=M(E(o)),d=k(u);let p=h[d],f=h[u];if(r){const t="y"===d?"bottom":"right";p=P(p+c["y"===d?"top":"left"],p,p-c[t])}if(s){const t="y"===u?"bottom":"right";f=P(f+c["y"===u?"top":"left"],f,f-c[t])}const m=a.fn({...e,[d]:p,[u]:f});return{...m,data:{x:m.x-n,y:m.y-i}}}}},vt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,i;const{placement:o,middlewareData:r,rects:s,initialPlacement:a,platform:l,elements:h}=e,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,..._}=L(t,e);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const g=E(o),v=E(a)===a,y=await(null==l.isRTL?void 0:l.isRTL(h.floating)),w=d||(v||!m?[z(a)]:function(t){const e=z(t);return[O(t),e,O(e)]}(a));d||"none"===f||w.push(...function(t,e,n,i){const o=S(t);let r=function(t,e,n){const i=["left","right"],o=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?o:i:e?i:o;case"left":case"right":return e?r:s;default:return[]}}(E(t),"start"===n,i);return o&&(r=r.map((t=>t+"-"+o)),e&&(r=r.concat(r.map(O)))),r}(a,m,f,y));const x=[a,...w],b=await Z(e,_),T=[];let P=(null==(i=r.flip)?void 0:i.overflows)||[];if(c&&T.push(b[g]),u){const t=function(t,e,n){void 0===n&&(n=!1);const i=S(t),o=A(t),r=C(o);let s="x"===o?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=z(s)),[s,z(s)]}(o,s,y);T.push(b[t[0]],b[t[1]])}if(P=[...P,{placement:o,overflows:T}],!T.every((t=>t<=0))){var k,M;const t=((null==(k=r.flip)?void 0:k.index)||0)+1,e=x[t];if(e)return{data:{index:t,overflows:P},reset:{placement:e}};let n=null==(M=P.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:M.placement;if(!n)switch(p){case"bestFit":{var I;const t=null==(I=P.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:I[0];t&&(n=t);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},yt=(t,e,n)=>{const i=new Map,o={platform:_t,...n},r={...o.platform,_c:i};return(async(t,e,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:s}=n,a=r.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(e));let h=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:c,y:u}=R(h,i,l),d=i,p={},f=0;for(let n=0;n{if(!t)return{tooltipStyles:{},tooltipArrowStyles:{},place:i};if(null===e)return{tooltipStyles:{},tooltipArrowStyles:{},place:i};const l=s;return n?(l.push({name:"arrow",options:h={element:n,padding:5},async fn(t){const{x:e,y:n,placement:i,rects:o,platform:r,elements:s,middlewareData:a}=t,{element:l,padding:c=0}=L(h,t)||{};if(null==l)return{};const u=I(c),d={x:e,y:n},p=A(i),f=C(p),m=await r.getDimensions(l),_="y"===p,v=_?"top":"left",y=_?"bottom":"right",w=_?"clientHeight":"clientWidth",x=o.reference[f]+o.reference[p]-d[p]-o.floating[f],b=d[p]-o.reference[p],T=await(null==r.getOffsetParent?void 0:r.getOffsetParent(l));let E=T?T[w]:0;E&&await(null==r.isElement?void 0:r.isElement(T))||(E=s.floating[w]||o.floating[f]);const k=x/2-b/2,M=E/2-m[f]/2-1,O=g(u[v],M),z=g(u[y],M),N=O,R=E-m[f]-z,Z=E/2-m[f]/2+k,B=P(N,Z,R),D=!a.arrow&&null!=S(i)&&Z!==B&&o.reference[f]/2-(Z{var o,r;const s={left:`${t}px`,top:`${e}px`,border:a},{x:l,y:h}=null!==(o=i.arrow)&&void 0!==o?o:{x:0,y:0},c=null!==(r={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]])&&void 0!==r?r:"bottom",u=a&&{borderBottom:a,borderRight:a};let d=0;if(a){const t=`${a}`.match(/(\d+)px/);d=(null==t?void 0:t[1])?Number(t[1]):1}return{tooltipStyles:s,tooltipArrowStyles:{left:null!=l?`${l}px`:"",top:null!=h?`${h}px`:"",right:"",bottom:"",...u,[c]:`-${4+d}px`},place:n}}))):yt(t,e,{placement:"bottom",strategy:r,middleware:l}).then((({x:t,y:e,placement:n})=>({tooltipStyles:{left:`${t}px`,top:`${e}px`},tooltipArrowStyles:{},place:n})));var h},Pt=(t,e)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(t,e),Lt=(t,e,n)=>{let i=null;const o=function(...o){const r=()=>{i=null,n||t.apply(this,o)};n&&!i&&(t.apply(this,o),i=setTimeout(r,e)),n||(i&&clearTimeout(i),i=setTimeout(r,e))};return o.cancel=()=>{i&&(clearTimeout(i),i=null)},o},Et=t=>null!==t&&!Array.isArray(t)&&"object"==typeof t,St=(t,e)=>{if(t===e)return!0;if(Array.isArray(t)&&Array.isArray(e))return t.length===e.length&&t.every(((t,n)=>St(t,e[n])));if(Array.isArray(t)!==Array.isArray(e))return!1;if(!Et(t)||!Et(e))return t===e;const n=Object.keys(t),i=Object.keys(e);return n.length===i.length&&n.every((n=>St(t[n],e[n])))},kt=t=>{if(!(t instanceof HTMLElement||t instanceof SVGElement))return!1;const e=getComputedStyle(t);return["overflow","overflow-x","overflow-y"].some((t=>{const n=e.getPropertyValue(t);return"auto"===n||"scroll"===n}))},Ct=t=>{if(!t)return null;let e=t.parentElement;for(;e;){if(kt(e))return e;e=e.parentElement}return document.scrollingElement||document.documentElement},Mt="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,At={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},Ot=(0,o.createContext)({getTooltipData:()=>At});function zt(t="DEFAULT_TOOLTIP_ID"){return(0,o.useContext)(Ot).getTooltipData(t)}var It={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},Nt={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const Rt=({forwardRef:t,id:e,className:n,classNameArrow:i,variant:r="dark",anchorId:s,anchorSelect:a,place:l="top",offset:h=10,events:c=["hover"],openOnClick:u=!1,positionStrategy:d="absolute",middlewares:p,wrapper:f,delayShow:m=0,delayHide:_=0,float:y=!1,hidden:x=!1,noArrow:b=!1,clickable:T=!1,closeOnEsc:P=!1,closeOnScroll:L=!1,closeOnResize:E=!1,openEvents:S,closeEvents:k,globalCloseEvents:C,imperativeModeOnly:M,style:A,position:O,afterShow:z,afterHide:I,content:N,contentWrapperRef:R,isOpen:Z,defaultIsOpen:B=!1,setIsOpen:D,activeAnchor:j,setActiveAnchor:H,border:W,opacity:V,arrowColor:U,role:q="tooltip"})=>{var G;const K=(0,o.useRef)(null),Y=(0,o.useRef)(null),X=(0,o.useRef)(null),$=(0,o.useRef)(null),J=(0,o.useRef)(null),[Q,tt]=(0,o.useState)({tooltipStyles:{},tooltipArrowStyles:{},place:l}),[nt,ot]=(0,o.useState)(!1),[rt,st]=(0,o.useState)(!1),[lt,ht]=(0,o.useState)(null),ct=(0,o.useRef)(!1),ut=(0,o.useRef)(null),{anchorRefs:dt,setActiveAnchor:pt}=zt(e),ft=(0,o.useRef)(!1),[mt,_t]=(0,o.useState)([]),gt=(0,o.useRef)(!1),vt=u||c.includes("click"),yt=vt||(null==S?void 0:S.click)||(null==S?void 0:S.dblclick)||(null==S?void 0:S.mousedown),xt=S?{...S}:{mouseenter:!0,focus:!0,click:!1,dblclick:!1,mousedown:!1};!S&&vt&&Object.assign(xt,{mouseenter:!1,focus:!1,click:!0});const bt=k?{...k}:{mouseleave:!0,blur:!0,click:!1,dblclick:!1,mouseup:!1};!k&&vt&&Object.assign(bt,{mouseleave:!1,blur:!1});const Pt=C?{...C}:{escape:P||!1,scroll:L||!1,resize:E||!1,clickOutsideAnchor:yt||!1};M&&(Object.assign(xt,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(bt,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(Pt,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),Mt((()=>(gt.current=!0,()=>{gt.current=!1})),[]);const Et=t=>{gt.current&&(t&&st(!0),setTimeout((()=>{gt.current&&(null==D||D(t),void 0===Z&&ot(t))}),10))};(0,o.useEffect)((()=>{if(void 0===Z)return()=>null;Z&&st(!0);const t=setTimeout((()=>{ot(Z)}),10);return()=>{clearTimeout(t)}}),[Z]),(0,o.useEffect)((()=>{if(nt!==ct.current)if(J.current&&clearTimeout(J.current),ct.current=nt,nt)null==z||z();else{const t=(t=>{const e=getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay").match(/^([\d.]+)(ms|s)$/);if(!e)return 0;const[,n,i]=e;return Number(n)*("ms"===i?1:1e3)})();J.current=setTimeout((()=>{st(!1),ht(null),null==I||I()}),t+25)}}),[nt]);const kt=t=>{tt((e=>St(e,t)?e:t))},At=(t=m)=>{X.current&&clearTimeout(X.current),rt?Et(!0):X.current=setTimeout((()=>{Et(!0)}),t)},Ot=(t=_)=>{$.current&&clearTimeout($.current),$.current=setTimeout((()=>{ft.current||Et(!1)}),t)},Rt=t=>{var e;if(!t)return;const n=null!==(e=t.currentTarget)&&void 0!==e?e:t.target;if(!(null==n?void 0:n.isConnected))return H(null),void pt({current:null});m?At():Et(!0),H(n),pt({current:n}),$.current&&clearTimeout($.current)},Zt=()=>{T?Ot(_||100):_?Ot():Et(!1),X.current&&clearTimeout(X.current)},Bt=({x:t,y:e})=>{var n;const i={getBoundingClientRect:()=>({x:t,y:e,width:0,height:0,top:e,left:t,right:t,bottom:e})};Tt({place:null!==(n=null==lt?void 0:lt.place)&&void 0!==n?n:l,offset:h,elementReference:i,tooltipReference:K.current,tooltipArrowReference:Y.current,strategy:d,middlewares:p,border:W}).then((t=>{kt(t)}))},Dt=t=>{if(!t)return;const e=t,n={x:e.clientX,y:e.clientY};Bt(n),ut.current=n},jt=t=>{var e;if(!nt)return;const n=t.target;n.isConnected&&((null===(e=K.current)||void 0===e?void 0:e.contains(n))||[document.querySelector(`[id='${s}']`),...mt].some((t=>null==t?void 0:t.contains(n)))||(Et(!1),X.current&&clearTimeout(X.current)))},Ft=Lt(Rt,50,!0),Ht=Lt(Zt,50,!0),Wt=t=>{Ht.cancel(),Ft(t)},Vt=()=>{Ft.cancel(),Ht()},Ut=(0,o.useCallback)((()=>{var t,e;const n=null!==(t=null==lt?void 0:lt.position)&&void 0!==t?t:O;n?Bt(n):y?ut.current&&Bt(ut.current):(null==j?void 0:j.isConnected)&&Tt({place:null!==(e=null==lt?void 0:lt.place)&&void 0!==e?e:l,offset:h,elementReference:j,tooltipReference:K.current,tooltipArrowReference:Y.current,strategy:d,middlewares:p,border:W}).then((t=>{gt.current&&kt(t)}))}),[nt,j,N,A,l,null==lt?void 0:lt.place,h,d,O,null==lt?void 0:lt.position,y]);(0,o.useEffect)((()=>{var t,e;const n=new Set(dt);mt.forEach((t=>{n.add({current:t})}));const i=document.querySelector(`[id='${s}']`);i&&n.add({current:i});const o=()=>{Et(!1)},r=Ct(j),a=Ct(K.current);Pt.scroll&&(window.addEventListener("scroll",o),null==r||r.addEventListener("scroll",o),null==a||a.addEventListener("scroll",o));let l=null;Pt.resize?window.addEventListener("resize",o):j&&K.current&&(l=function(t,e,n,i){void 0===i&&(i={});const{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=i,h=it(t),c=o||r?[...h?et(h):[],...et(e)]:[];c.forEach((t=>{o&&t.addEventListener("scroll",n,{passive:!0}),r&&t.addEventListener("resize",n)}));const u=h&&a?function(t,e){let n,i=null;const o=F(t);function r(){var t;clearTimeout(n),null==(t=i)||t.disconnect(),i=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),r();const{left:h,top:c,width:u,height:d}=t.getBoundingClientRect();if(a||e(),!u||!d)return;const p={rootMargin:-w(c)+"px "+-w(o.clientWidth-(h+u))+"px "+-w(o.clientHeight-(c+d))+"px "+-w(h)+"px",threshold:v(0,g(1,l))||1};let f=!0;function m(t){const e=t[0].intersectionRatio;if(e!==l){if(!f)return s();e?s(!1,e):n=setTimeout((()=>{s(!1,1e-7)}),100)}f=!1}try{i=new IntersectionObserver(m,{...p,root:o.ownerDocument})}catch(t){i=new IntersectionObserver(m,p)}i.observe(t)}(!0),r}(h,n):null;let d,p=-1,f=null;s&&(f=new ResizeObserver((t=>{let[i]=t;i&&i.target===h&&f&&(f.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var t;null==(t=f)||t.observe(e)}))),n()})),h&&!l&&f.observe(h),f.observe(e));let m=l?at(t):null;return l&&function e(){const i=at(t);!m||i.x===m.x&&i.y===m.y&&i.width===m.width&&i.height===m.height||n(),m=i,d=requestAnimationFrame(e)}(),n(),()=>{var t;c.forEach((t=>{o&&t.removeEventListener("scroll",n),r&&t.removeEventListener("resize",n)})),null==u||u(),null==(t=f)||t.disconnect(),f=null,l&&cancelAnimationFrame(d)}}(j,K.current,Ut,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const h=t=>{"Escape"===t.key&&Et(!1)};Pt.escape&&window.addEventListener("keydown",h),Pt.clickOutsideAnchor&&window.addEventListener("click",jt);const c=[],u=t=>{nt&&(null==t?void 0:t.target)===j||Rt(t)},d=t=>{nt&&(null==t?void 0:t.target)===j&&Zt()},p=["mouseenter","mouseleave","focus","blur"],f=["click","dblclick","mousedown","mouseup"];Object.entries(xt).forEach((([t,e])=>{e&&(p.includes(t)?c.push({event:t,listener:Wt}):f.includes(t)&&c.push({event:t,listener:u}))})),Object.entries(bt).forEach((([t,e])=>{e&&(p.includes(t)?c.push({event:t,listener:Vt}):f.includes(t)&&c.push({event:t,listener:d}))})),y&&c.push({event:"pointermove",listener:Dt});const m=()=>{ft.current=!0},_=()=>{ft.current=!1,Zt()};return T&&!yt&&(null===(t=K.current)||void 0===t||t.addEventListener("mouseenter",m),null===(e=K.current)||void 0===e||e.addEventListener("mouseleave",_)),c.forEach((({event:t,listener:e})=>{n.forEach((n=>{var i;null===(i=n.current)||void 0===i||i.addEventListener(t,e)}))})),()=>{var t,e;Pt.scroll&&(window.removeEventListener("scroll",o),null==r||r.removeEventListener("scroll",o),null==a||a.removeEventListener("scroll",o)),Pt.resize?window.removeEventListener("resize",o):null==l||l(),Pt.clickOutsideAnchor&&window.removeEventListener("click",jt),Pt.escape&&window.removeEventListener("keydown",h),T&&!yt&&(null===(t=K.current)||void 0===t||t.removeEventListener("mouseenter",m),null===(e=K.current)||void 0===e||e.removeEventListener("mouseleave",_)),c.forEach((({event:t,listener:e})=>{n.forEach((n=>{var i;null===(i=n.current)||void 0===i||i.removeEventListener(t,e)}))}))}}),[j,Ut,rt,dt,mt,S,k,C,vt,m,_]),(0,o.useEffect)((()=>{var t,n;let i=null!==(n=null!==(t=null==lt?void 0:lt.anchorSelect)&&void 0!==t?t:a)&&void 0!==n?n:"";!i&&e&&(i=`[data-tooltip-id='${e}']`);const o=new MutationObserver((t=>{const n=[],o=[];t.forEach((t=>{if("attributes"===t.type&&"data-tooltip-id"===t.attributeName&&(t.target.getAttribute("data-tooltip-id")===e?n.push(t.target):t.oldValue===e&&o.push(t.target)),"childList"===t.type){if(j){const e=[...t.removedNodes].filter((t=>1===t.nodeType));if(i)try{o.push(...e.filter((t=>t.matches(i)))),o.push(...e.flatMap((t=>[...t.querySelectorAll(i)])))}catch(t){}e.some((t=>{var e;return!!(null===(e=null==t?void 0:t.contains)||void 0===e?void 0:e.call(t,j))&&(st(!1),Et(!1),H(null),X.current&&clearTimeout(X.current),$.current&&clearTimeout($.current),!0)}))}if(i)try{const e=[...t.addedNodes].filter((t=>1===t.nodeType));n.push(...e.filter((t=>t.matches(i)))),n.push(...e.flatMap((t=>[...t.querySelectorAll(i)])))}catch(t){}}})),(n.length||o.length)&&_t((t=>[...t.filter((t=>!o.includes(t))),...n]))}));return o.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{o.disconnect()}}),[e,a,null==lt?void 0:lt.anchorSelect,j]),(0,o.useEffect)((()=>{Ut()}),[Ut]),(0,o.useEffect)((()=>{if(!(null==R?void 0:R.current))return()=>null;const t=new ResizeObserver((()=>{setTimeout((()=>Ut()))}));return t.observe(R.current),()=>{t.disconnect()}}),[N,null==R?void 0:R.current]),(0,o.useEffect)((()=>{var t;const e=document.querySelector(`[id='${s}']`),n=[...mt,e];j&&n.includes(j)||H(null!==(t=mt[0])&&void 0!==t?t:e)}),[s,mt,j]),(0,o.useEffect)((()=>(B&&Et(!0),()=>{X.current&&clearTimeout(X.current),$.current&&clearTimeout($.current)})),[]),(0,o.useEffect)((()=>{var t;let n=null!==(t=null==lt?void 0:lt.anchorSelect)&&void 0!==t?t:a;if(!n&&e&&(n=`[data-tooltip-id='${e}']`),n)try{const t=Array.from(document.querySelectorAll(n));_t(t)}catch(t){_t([])}}),[e,a,null==lt?void 0:lt.anchorSelect]),(0,o.useEffect)((()=>{X.current&&(clearTimeout(X.current),At(m))}),[m]);const qt=null!==(G=null==lt?void 0:lt.content)&&void 0!==G?G:N,Gt=nt&&Object.keys(Q.tooltipStyles).length>0;return(0,o.useImperativeHandle)(t,(()=>({open:t=>{if(null==t?void 0:t.anchorSelect)try{document.querySelector(t.anchorSelect)}catch(e){return void console.warn(`[react-tooltip] "${t.anchorSelect}" is not a valid CSS selector`)}ht(null!=t?t:null),(null==t?void 0:t.delay)?At(t.delay):Et(!0)},close:t=>{(null==t?void 0:t.delay)?Ot(t.delay):Et(!1)},activeAnchor:j,place:Q.place,isOpen:Boolean(rt&&!x&&qt&&Gt)}))),rt&&!x&&qt?o.createElement(f,{id:e,role:q,className:wt("react-tooltip",It.tooltip,Nt.tooltip,Nt[r],n,`react-tooltip__place-${Q.place}`,It[Gt?"show":"closing"],Gt?"react-tooltip__show":"react-tooltip__closing","fixed"===d&&It.fixed,T&&It.clickable),onTransitionEnd:t=>{J.current&&clearTimeout(J.current),nt||"opacity"!==t.propertyName||(st(!1),ht(null),null==I||I())},style:{...A,...Q.tooltipStyles,opacity:void 0!==V&&Gt?V:void 0},ref:K},qt,o.createElement(f,{className:wt("react-tooltip-arrow",It.arrow,Nt.arrow,i,b&&It.noArrow),style:{...Q.tooltipArrowStyles,background:U?`linear-gradient(to right bottom, transparent 50%, ${U} 50%)`:void 0},ref:Y})):null},Zt=({content:t})=>o.createElement("span",{dangerouslySetInnerHTML:{__html:t}}),Bt=o.forwardRef((({id:t,anchorId:e,anchorSelect:n,content:i,html:r,render:s,className:a,classNameArrow:l,variant:h="dark",place:c="top",offset:u=10,wrapper:d="div",children:p=null,events:f=["hover"],openOnClick:m=!1,positionStrategy:_="absolute",middlewares:g,delayShow:v=0,delayHide:y=0,float:w=!1,hidden:x=!1,noArrow:b=!1,clickable:T=!1,closeOnEsc:P=!1,closeOnScroll:L=!1,closeOnResize:E=!1,openEvents:S,closeEvents:k,globalCloseEvents:C,imperativeModeOnly:M=!1,style:A,position:O,isOpen:z,defaultIsOpen:I=!1,disableStyleInjection:N=!1,border:R,opacity:Z,arrowColor:B,setIsOpen:D,afterShow:j,afterHide:F,role:H="tooltip"},W)=>{const[V,U]=(0,o.useState)(i),[q,G]=(0,o.useState)(r),[K,Y]=(0,o.useState)(c),[X,$]=(0,o.useState)(h),[J,Q]=(0,o.useState)(u),[tt,et]=(0,o.useState)(v),[nt,it]=(0,o.useState)(y),[ot,rt]=(0,o.useState)(w),[st,at]=(0,o.useState)(x),[lt,ht]=(0,o.useState)(d),[ct,ut]=(0,o.useState)(f),[dt,pt]=(0,o.useState)(_),[ft,mt]=(0,o.useState)(null),[_t,gt]=(0,o.useState)(null),vt=(0,o.useRef)(N),{anchorRefs:yt,activeAnchor:xt}=zt(t),bt=t=>null==t?void 0:t.getAttributeNames().reduce(((e,n)=>{var i;return n.startsWith("data-tooltip-")&&(e[n.replace(/^data-tooltip-/,"")]=null!==(i=null==t?void 0:t.getAttribute(n))&&void 0!==i?i:null),e}),{}),Tt=t=>{const e={place:t=>{var e;Y(null!==(e=t)&&void 0!==e?e:c)},content:t=>{U(null!=t?t:i)},html:t=>{G(null!=t?t:r)},variant:t=>{var e;$(null!==(e=t)&&void 0!==e?e:h)},offset:t=>{Q(null===t?u:Number(t))},wrapper:t=>{var e;ht(null!==(e=t)&&void 0!==e?e:d)},events:t=>{const e=null==t?void 0:t.split(" ");ut(null!=e?e:f)},"position-strategy":t=>{var e;pt(null!==(e=t)&&void 0!==e?e:_)},"delay-show":t=>{et(null===t?v:Number(t))},"delay-hide":t=>{it(null===t?y:Number(t))},float:t=>{rt(null===t?w:"true"===t)},hidden:t=>{at(null===t?x:"true"===t)},"class-name":t=>{mt(t)}};Object.values(e).forEach((t=>t(null))),Object.entries(t).forEach((([t,n])=>{var i;null===(i=e[t])||void 0===i||i.call(e,n)}))};(0,o.useEffect)((()=>{U(i)}),[i]),(0,o.useEffect)((()=>{G(r)}),[r]),(0,o.useEffect)((()=>{Y(c)}),[c]),(0,o.useEffect)((()=>{$(h)}),[h]),(0,o.useEffect)((()=>{Q(u)}),[u]),(0,o.useEffect)((()=>{et(v)}),[v]),(0,o.useEffect)((()=>{it(y)}),[y]),(0,o.useEffect)((()=>{rt(w)}),[w]),(0,o.useEffect)((()=>{at(x)}),[x]),(0,o.useEffect)((()=>{pt(_)}),[_]),(0,o.useEffect)((()=>{vt.current!==N&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")}),[N]),(0,o.useEffect)((()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===N,disableBase:N}}))}),[]),(0,o.useEffect)((()=>{var i;const o=new Set(yt);let r=n;if(!r&&t&&(r=`[data-tooltip-id='${t}']`),r)try{document.querySelectorAll(r).forEach((t=>{o.add({current:t})}))}catch(i){console.warn(`[react-tooltip] "${r}" is not a valid CSS selector`)}const s=document.querySelector(`[id='${e}']`);if(s&&o.add({current:s}),!o.size)return()=>null;const a=null!==(i=null!=_t?_t:s)&&void 0!==i?i:xt.current,l=new MutationObserver((t=>{t.forEach((t=>{var e;if(!a||"attributes"!==t.type||!(null===(e=t.attributeName)||void 0===e?void 0:e.startsWith("data-tooltip-")))return;const n=bt(a);Tt(n)}))})),h={attributes:!0,childList:!1,subtree:!1};if(a){const t=bt(a);Tt(t),l.observe(a,h)}return()=>{l.disconnect()}}),[yt,xt,_t,e,n]),(0,o.useEffect)((()=>{(null==A?void 0:A.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),R&&!Pt("border",`${R}`)&&console.warn(`[react-tooltip] "${R}" is not a valid \`border\`.`),(null==A?void 0:A.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),Z&&!Pt("opacity",`${Z}`)&&console.warn(`[react-tooltip] "${Z}" is not a valid \`opacity\`.`)}),[]);let Lt=p;const Et=(0,o.useRef)(null);if(s){const t=s({content:(null==_t?void 0:_t.getAttribute("data-tooltip-content"))||V||null,activeAnchor:_t});Lt=t?o.createElement("div",{ref:Et,className:"react-tooltip-content-wrapper"},t):null}else V&&(Lt=V);q&&(Lt=o.createElement(Zt,{content:q}));const St={forwardRef:W,id:t,anchorId:e,anchorSelect:n,className:wt(a,ft),classNameArrow:l,content:Lt,contentWrapperRef:Et,place:K,variant:X,offset:J,wrapper:lt,events:ct,openOnClick:m,positionStrategy:dt,middlewares:g,delayShow:tt,delayHide:nt,float:ot,hidden:st,noArrow:b,clickable:T,closeOnEsc:P,closeOnScroll:L,closeOnResize:E,openEvents:S,closeEvents:k,globalCloseEvents:C,imperativeModeOnly:M,style:A,position:O,isOpen:z,defaultIsOpen:I,border:R,opacity:Z,arrowColor:B,setIsOpen:D,afterShow:j,afterHide:F,activeAnchor:_t,setActiveAnchor:t=>gt(t),role:H};return o.createElement(Rt,{...St})}));"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",(t=>{t.detail.disableCore||bt({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),t.detail.disableBase||bt({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})}));const Dt=(t,e="")=>{for(const[n,i]of Object.entries(t)){let t=n;e&&(t+="_"+String(e));const o=new CustomEvent(t,{detail:i});dispatchEvent(o)}},jt=(t,e="")=>{for(const[n,i]of Object.entries(t)){let t=n;e&&(t+="_"+String(e)),addEventListener(t,(t=>{i(t.detail)}),!1)}},Ft=({onlineEventLinkDefault:t=""})=>{const e=(0,r.__)("Online event","gatherpress"),[n,i]=(0,h.useState)(t);return jt({setOnlineEventLink:i},f("eventDetails.postId")),(0,o.createElement)(a.Flex,{justify:"normal",gap:"3"},(0,o.createElement)(a.FlexItem,{display:"flex"},(0,o.createElement)(a.Icon,{icon:"video-alt2"})),(0,o.createElement)(a.FlexItem,null,!n&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("span",{tabIndex:"0",className:"gatherpress-tooltip","data-tooltip-id":"gatherpress-online-event-tooltip","data-tooltip-content":(0,r.__)("Link available for attendees only.","gatherpress")},e),(0,o.createElement)(Bt,{id:"gatherpress-online-event-tooltip"})),n&&(0,o.createElement)("a",{href:n,rel:"noreferrer",target:"_blank"},e)))};var Ht=n(442);const Wt=Ht.default||Ht,Vt=({name:t,fullAddress:e,phoneNumber:n,website:i})=>(0,o.createElement)(o.Fragment,null,(t||e)&&(0,o.createElement)(a.Flex,{justify:"normal",align:"flex-start",gap:"4"},(0,o.createElement)(a.FlexItem,{display:"flex",className:"gatherpress-venue__icon"},(0,o.createElement)(a.Icon,{icon:"location"})),(0,o.createElement)(a.FlexItem,null,t&&(0,o.createElement)("div",{className:"gatherpress-venue__name"},(0,o.createElement)("strong",null,Wt(t))),e&&(0,o.createElement)("div",{className:"gatherpress-venue__full-address"},Wt(e)))),(n||i)&&(0,o.createElement)(a.Flex,{justify:"normal",gap:"8"},n&&(0,o.createElement)(a.FlexItem,null,(0,o.createElement)(a.Flex,{justify:"normal",gap:"4"},(0,o.createElement)(a.FlexItem,{display:"flex",className:"gatherpress-venue__icon"},(0,o.createElement)(a.Icon,{icon:"phone"})),(0,o.createElement)(a.FlexItem,null,(0,o.createElement)("div",{className:"gatherpress-venue__phone-number"},n)))),i&&(0,o.createElement)(a.FlexItem,null,(0,o.createElement)(a.Flex,{justify:"normal",gap:"4"},(0,o.createElement)(a.FlexItem,{display:"flex",className:"gatherpress-venue__icon"},(0,o.createElement)(a.Icon,{icon:"admin-site-alt3"})),(0,o.createElement)(a.FlexItem,null,(0,o.createElement)("div",{className:"gatherpress-venue__website"},(0,o.createElement)("a",{href:i,target:"_blank",rel:"noreferrer noopener"},i))))))),Ut=({name:t="",fullAddress:e,phoneNumber:n,website:i,isOnlineEventTerm:r=!1,onlineEventLink:s=""})=>(0,o.createElement)(o.Fragment,null,!r&&(0,o.createElement)(Vt,{name:t,fullAddress:e,phoneNumber:n,website:i}),r&&(0,o.createElement)(Ft,{onlineEventLinkDefault:s})),qt=t=>{const{isSelected:e}=t,n=e?"none":"block";return(0,o.createElement)("div",{style:{position:"relative"}},t.children,(0,o.createElement)("div",{style:{position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:n}}))};function Gt(){return"gatherpress_venue"===(0,l.select)("core/editor")?.getCurrentPostType()}const Kt=()=>{const[t,e]=(0,h.useState)(""),[n,i]=(0,h.useState)(""),[s,c]=(0,h.useState)(""),[u,d]=(0,h.useState)(""),[p,f]=(0,h.useState)(!1),[m,_]=(0,h.useState)(""),[g,v]=(0,h.useState)(""),[y,w]=(0,h.useState)(""),x=(0,l.useDispatch)("core/editor").editPost,{unlockPostSaving:b}=(0,l.useDispatch)("core/editor"),T=(0,l.useSelect)((t=>t("core/editor").getEditedPostAttribute("_gatherpress_venue"))),P=(0,l.useSelect)((t=>t("core").getEntityRecord("taxonomy","_gatherpress_venue",T))),L=P?.slug.replace(/^_/,""),[E,S]=(0,h.useState)(""),k=T+":"+E,C=(0,l.useSelect)((t=>t("core").getEntityRecords("postType","gatherpress_venue",{per_page:1,slug:E})));(0,h.useEffect)((()=>{var t,n,o,s,a,l;let h={};if(E&&Array.isArray(C)){var u;const t=null!==(u=C[0]?.meta?.gatherpress_venue_information)&&void 0!==u?u:"{}";var p;t&&(h=JSON.parse(t),h.name=null!==(p=C[0]?.title.rendered)&&void 0!==p?p:"")}const f=null!==(t=h?.name)&&void 0!==t?t:(0,r.__)("No venue selected.","gatherpress"),m=null!==(n=h?.fullAddress)&&void 0!==n?n:"",g=null!==(o=h?.phoneNumber)&&void 0!==o?o:"",y=null!==(s=h?.website)&&void 0!==s?s:"",x=null!==(a=h?.latitude)&&void 0!==a?a:"0",b=null!==(l=h?.longitude)&&void 0!==l?l:"0";L&&S(L),w(k?String(k):""),e(f),i(m),c(g),d(y),_(x),v(b),Dt({setName:f,setFullAddress:m,setPhoneNumber:g,setWebsite:y,setLatitude:x,setLongitude:b,setIsOnlineEventTerm:"online-event"===E})}),[E,C,L,k]);let M=(0,l.useSelect)((t=>t("core").getEntityRecords("taxonomy","_gatherpress_venue",{per_page:-1,context:"view"})),[]);return M?(M=M.map((t=>({label:t.name,value:t.id+":"+t.slug.replace(/^_/,"")}))),M.unshift({value:":",label:(0,r.__)("Choose a venue","gatherpress")})):M=[],(0,o.createElement)(a.PanelRow,null,(0,o.createElement)(a.SelectControl,{label:(0,r.__)("Venue Selector","gatherpress"),value:y,onChange:t=>{(t=>{w(t);const e=""!==(t=t.split(":"))[0]?[t[0]]:[];x({_gatherpress_venue:e}),S(t[1]),b()})(t)},options:M}))},Yt=window.wp.compose,Xt=()=>{var t,e,n;const i=(0,l.useDispatch)("core/editor").editPost,s=t=>{const e=JSON.stringify({...c,...t});i({meta:{gatherpress_venue_information:e}})};let c=(0,l.useSelect)((t=>t("core/editor").getEditedPostAttribute("meta").gatherpress_venue_information));c=c?JSON.parse(c):{};const[u,d]=(0,h.useState)(null!==(t=c.fullAddress)&&void 0!==t?t:""),[p,f]=(0,h.useState)(null!==(e=c.phoneNumber)&&void 0!==e?e:""),[m,_]=(0,h.useState)(null!==(n=c.website)&&void 0!==n?n:"");jt({setFullAddress:d,setPhoneNumber:f,setWebsite:_});const g=(0,h.useRef)(s),v=(0,h.useCallback)((()=>{let t=null,e=null;fetch(`https://nominatim.openstreetmap.org/search?q=${u}&format=geojson`).then((t=>{if(!t.ok)throw new Error((0,r.sprintf)(/* translators: %s: Error message */ /* translators: %s: Error message */ +(0,r.__)("Network response was not ok %s","gatherpress"),t.statusText));return t.json()})).then((n=>{n.features.length>0&&(t=n.features[0].geometry.coordinates[1],e=n.features[0].geometry.coordinates[0]),g.current({latitude:t,longitude:e})}))}),[u]),y=(0,Yt.useDebounce)(v,300);return(0,h.useEffect)((()=>{g.current=s}),[s]),(0,h.useEffect)((()=>{y()}),[u,y]),(0,o.createElement)(o.Fragment,null,(0,o.createElement)(a.TextControl,{label:(0,r.__)("Full Address","gatherpress"),value:u,onChange:t=>{Dt({setFullAddress:t}),s({fullAddress:t})}}),(0,o.createElement)(a.TextControl,{label:(0,r.__)("Phone Number","gatherpress"),value:p,onChange:t=>{Dt({setPhoneNumber:t}),s({phoneNumber:t})}}),(0,o.createElement)(a.TextControl,{label:(0,r.__)("Website","gatherpress"),value:m,type:"url",onChange:t=>{Dt({setWebsite:t}),s({website:t})}}))},$t=()=>(0,o.createElement)("section",null,(0,o.createElement)(Xt,null)),Jt=()=>{const{editPost:t,unlockPostSaving:e}=(0,l.useDispatch)("core/editor"),n=(0,l.useSelect)((t=>t("core/editor").getEditedPostAttribute("meta").gatherpress_online_event_link)),[i,s]=(0,h.useState)(n);return jt({setOnlineEventLink:s},f("eventDetails.postId")),(0,o.createElement)(a.TextControl,{label:(0,r.__)("Online event link","gatherpress"),value:i,placeholder:(0,r.__)("Add link to online event","gatherpress"),onChange:n=>{(n=>{t({meta:{gatherpress_online_event_link:n}}),s(n),Dt({setOnlineEventLink:n},f("eventDetails.postId")),e()})(n)}})},Qt=window.moment;var te=n.n(Qt);window.wp.apiFetch,window.wp.date;const ee="YYYY-MM-DDTHH:mm:ss",ne=te().tz(ie()).add(1,"day").set("hour",18).set("minute",0).set("second",0).format(ee);function ie(t=f("eventDetails.dateTime.timezone")){return te().tz.zone(t)?t:(0,r.__)("GMT","gatherpress")}te().tz(ne,ie()).add(2,"hours").format(ee);const oe=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"gatherpress/venue","version":"1.1.0","title":"Venue","category":"gatherpress","icon":"location","example":{},"description":"Provides information about an event venue.","attributes":{"mapShow":{"type":"boolean","default":true},"mapAlign":{"type":"string","default":""},"mapZoomLevel":{"type":"number","default":10},"mapType":{"type":"string","default":"m"},"mapHeight":{"type":"number","default":300}},"supports":{"align":["wide"],"html":false},"textdomain":"gatherpress","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./venue.js","viewStyle":"file:./venue.css","render":"file:./render.php"}');(0,i.registerBlockType)(oe,{edit:({attributes:t,setAttributes:e,isSelected:n})=>{const{mapZoomLevel:i,mapType:c,mapHeight:u}=t,[d,m]=(0,h.useState)(""),[g,v]=(0,h.useState)(""),[y,w]=(0,h.useState)(""),[x,b]=(0,h.useState)(""),[T,P]=(0,h.useState)(""),[L,E]=(0,h.useState)(""),[S,k]=(0,h.useState)(!1),C=(0,s.useBlockProps)(),M=f("settings.mapPlatform"),A=(0,l.useSelect)((t=>t("core/editor")?.getEditedPostAttribute("meta")?.gatherpress_online_event_link));let{mapShow:O}=t,z=(0,l.useSelect)((t=>t("core/editor")?.getEditedPostAttribute("meta")?.gatherpress_venue_information));return z=z?JSON.parse(z):{},O&&g&&(O=!0),O&&!p()&&(O=!0),jt({setName:m,setFullAddress:v,setPhoneNumber:P,setWebsite:E,setIsOnlineEventTerm:k,setLatitude:w,setLongitude:b}),(0,h.useEffect)((()=>{Gt()&&(v(z.fullAddress),P(z.phoneNumber),E(z.website),w(z.latitude),b(z.longitude),m(g||T||L?"":(0,r.__)("Add venue information.","gatherpress"))),"gatherpress_event"!==(0,l.select)("core/editor")?.getCurrentPostType()&&p()||m(g||T||L?"":(0,r.__)("No venue selected.","gatherpress"))}),[z.fullAddress,z.phoneNumber,z.website,z.latitude,z.longitude,g,T,L,y,x]),(0,h.useEffect)((()=>{const t=new Event("resize");window.dispatchEvent(t)}),[u]),(0,o.createElement)(o.Fragment,null,(0,o.createElement)(s.InspectorControls,null,p()&&(0,o.createElement)(a.PanelBody,{title:(0,r.__)("Venue settings","gatherpress"),initialOpen:!0},(0,o.createElement)(a.PanelRow,null,!Gt()&&(0,o.createElement)(Kt,null),Gt()&&(0,o.createElement)($t,null)),S&&(0,o.createElement)(a.PanelRow,null,(0,o.createElement)(Jt,null))),!S&&(0,o.createElement)(a.PanelBody,{title:(0,r.__)("Map settings","gatherpress"),initialOpen:!0},(0,o.createElement)(a.PanelRow,null,(0,r.__)("Show map on venue","gatherpress")),(0,o.createElement)(a.PanelRow,null,(0,o.createElement)(a.ToggleControl,{label:O?(0,r.__)("Display the map","gatherpress"):(0,r.__)("Hide the map","gatherpress"),checked:O,onChange:t=>{e({mapShow:t})}})),(0,o.createElement)(a.RangeControl,{label:(0,r.__)("Zoom level","gatherpress"),beforeIcon:"search",value:i,onChange:t=>e({mapZoomLevel:t}),min:1,max:22}),"google"===M&&(0,o.createElement)(a.RadioControl,{label:(0,r.__)("Map type","gatherpress"),selected:c,options:[{label:(0,r.__)("Roadmap","gatherpress"),value:"m"},{label:(0,r.__)("Satellite","gatherpress"),value:"k"}],onChange:t=>{e({mapType:t})}}),(0,o.createElement)(a.RangeControl,{label:(0,r.__)("Map height","gatherpress"),beforeIcon:"location",value:u,onChange:t=>e({mapHeight:t}),min:100,max:1e3}))),(0,o.createElement)("div",{...C},(0,o.createElement)(qt,{isSelected:n},(0,o.createElement)("div",{className:"gatherpress-venue"},(0,o.createElement)(Ut,{name:d,fullAddress:g,phoneNumber:T,website:L,isOnlineEventTerm:S,onlineEventLink:A}),O&&!S&&(0,o.createElement)(_,{location:g,latitude:y,longitude:x,zoom:i,type:c,height:u})))))},save:()=>{}})},5413:(t,e)=>{"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0,function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"}(n=e.ElementType||(e.ElementType={})),e.isTag=function(t){return t.type===n.Tag||t.type===n.Script||t.type===n.Style},e.Root=n.Root,e.Text=n.Text,e.Directive=n.Directive,e.Comment=n.Comment,e.Script=n.Script,e.Style=n.Style,e.Tag=n.Tag,e.CDATA=n.CDATA,e.Doctype=n.Doctype},1141:function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var r=n(5413),s=n(6957);o(n(6957),e);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function t(t,e,n){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof e&&(n=e,e=a),"object"==typeof t&&(e=t,t=void 0),this.callback=null!=t?t:null,this.options=null!=e?e:a,this.elementCB=null!=n?n:null}return t.prototype.onparserinit=function(t){this.parser=t},t.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},t.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},t.prototype.onerror=function(t){this.handleCallback(t)},t.prototype.onclosetag=function(){this.lastNode=null;var t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)},t.prototype.onopentag=function(t,e){var n=this.options.xmlMode?r.ElementType.Tag:void 0,i=new s.Element(t,e,void 0,n);this.addNode(i),this.tagStack.push(i)},t.prototype.ontext=function(t){var e=this.lastNode;if(e&&e.type===r.ElementType.Text)e.data+=t,this.options.withEndIndices&&(e.endIndex=this.parser.endIndex);else{var n=new s.Text(t);this.addNode(n),this.lastNode=n}},t.prototype.oncomment=function(t){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment)this.lastNode.data+=t;else{var e=new s.Comment(t);this.addNode(e),this.lastNode=e}},t.prototype.oncommentend=function(){this.lastNode=null},t.prototype.oncdatastart=function(){var t=new s.Text(""),e=new s.CDATA([t]);this.addNode(e),t.parent=e,this.lastNode=t},t.prototype.oncdataend=function(){this.lastNode=null},t.prototype.onprocessinginstruction=function(t,e){var n=new s.ProcessingInstruction(t,e);this.addNode(n)},t.prototype.handleCallback=function(t){if("function"==typeof this.callback)this.callback(t,this.dom);else if(t)throw t},t.prototype.addNode=function(t){var e=this.tagStack[this.tagStack.length-1],n=e.children[e.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),e.children.push(t),n&&(t.prev=n,n.next=t),t.parent=e,this.lastNode=null},t}();e.DomHandler=l,e.default=l},6957:function(t,e,n){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function __(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.children},set:function(t){this.children=t},enumerable:!1,configurable:!0}),e}(a);e.NodeWithChildren=d;var p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=s.ElementType.CDATA,e}return o(e,t),Object.defineProperty(e.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),e}(d);e.CDATA=p;var f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=s.ElementType.Root,e}return o(e,t),Object.defineProperty(e.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),e}(d);e.Document=f;var m=function(t){function e(e,n,i,o){void 0===i&&(i=[]),void 0===o&&(o="script"===e?s.ElementType.Script:"style"===e?s.ElementType.Style:s.ElementType.Tag);var r=t.call(this,i)||this;return r.name=e,r.attribs=n,r.type=o,r}return o(e,t),Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.name},set:function(t){this.name=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){var t=this;return Object.keys(this.attribs).map((function(e){var n,i;return{name:e,value:t.attribs[e],namespace:null===(n=t["x-attribsNamespace"])||void 0===n?void 0:n[e],prefix:null===(i=t["x-attribsPrefix"])||void 0===i?void 0:i[e]}}))},enumerable:!1,configurable:!0}),e}(d);function _(t){return(0,s.isTag)(t)}function g(t){return t.type===s.ElementType.CDATA}function v(t){return t.type===s.ElementType.Text}function y(t){return t.type===s.ElementType.Comment}function w(t){return t.type===s.ElementType.Directive}function x(t){return t.type===s.ElementType.Root}function b(t,e){var n;if(void 0===e&&(e=!1),v(t))n=new h(t.data);else if(y(t))n=new c(t.data);else if(_(t)){var i=e?T(t.children):[],o=new m(t.name,r({},t.attribs),i);i.forEach((function(t){return t.parent=o})),null!=t.namespace&&(o.namespace=t.namespace),t["x-attribsNamespace"]&&(o["x-attribsNamespace"]=r({},t["x-attribsNamespace"])),t["x-attribsPrefix"]&&(o["x-attribsPrefix"]=r({},t["x-attribsPrefix"])),n=o}else if(g(t)){i=e?T(t.children):[];var s=new p(i);i.forEach((function(t){return t.parent=s})),n=s}else if(x(t)){i=e?T(t.children):[];var a=new f(i);i.forEach((function(t){return t.parent=a})),t["x-mode"]&&(a["x-mode"]=t["x-mode"]),n=a}else{if(!w(t))throw new Error("Not implemented yet: ".concat(t.type));var l=new u(t.name,t.data);null!=t["x-name"]&&(l["x-name"]=t["x-name"],l["x-publicId"]=t["x-publicId"],l["x-systemId"]=t["x-systemId"]),n=l}return n.startIndex=t.startIndex,n.endIndex=t.endIndex,null!=t.sourceCodeLocation&&(n.sourceCodeLocation=t.sourceCodeLocation),n}function T(t){for(var e=t.map((function(t){return b(t,!0)})),n=1;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES=void 0,e.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES.reduce((function(t,e){return t[e.toLowerCase()]=e,t}),{})},5496:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n="html",i="head",o="body",r=/<([a-zA-Z]+[0-9]?)/,s=//i,a=//i,l=function(t,e){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},h=function(t,e){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},c="object"==typeof window&&window.DOMParser;if("function"==typeof c){var u=new c;l=h=function(t,e){return e&&(t="<".concat(e,">").concat(t,"")),u.parseFromString(t,"text/html")}}if("object"==typeof document&&document.implementation){var d=document.implementation.createHTMLDocument();l=function(t,e){if(e){var n=d.documentElement.querySelector(e);return n&&(n.innerHTML=t),d}return d.documentElement.innerHTML=t,d}}var p,f="object"==typeof document&&document.createElement("template");f&&f.content&&(p=function(t){return f.innerHTML=t,f.content.childNodes}),e.default=function(t){var e,c,u=t.match(r),d=u&&u[1]?u[1].toLowerCase():"";switch(d){case n:var f=h(t);return s.test(t)||null===(e=null==(_=f.querySelector(i))?void 0:_.parentNode)||void 0===e||e.removeChild(_),a.test(t)||null===(c=null==(_=f.querySelector(o))?void 0:_.parentNode)||void 0===c||c.removeChild(_),f.querySelectorAll(n);case i:case o:var m=l(t).querySelectorAll(d);return a.test(t)&&s.test(t)?m[0].parentNode.childNodes:m;default:return p?p(t):(_=l(t,o).querySelector(o)).childNodes;var _}}},2471:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=i(n(5496)),r=n(7731),s=/<(![a-zA-Z\s]+)>/;e.default=function(t){if("string"!=typeof t)throw new TypeError("First argument must be a string");if(!t)return[];var e=t.match(s),n=e?e[1]:void 0;return(0,r.formatDOM)((0,o.default)(t),null,n)}},7731:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.formatDOM=e.formatAttributes=void 0;var i=n(1141),o=n(5270);function r(t){for(var e={},n=0,i=t.length;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(4210),o=n(4958),r=["checked","value"],s=["input","select","textarea"],a={reset:!0,submit:!0};function l(t){return i.possibleStandardNames[t]}e.default=function(t,e){void 0===t&&(t={});var n={},h=Boolean(t.type&&a[t.type]);for(var c in t){var u=t[c];if((0,i.isCustomAttribute)(c))n[c]=u;else{var d=c.toLowerCase(),p=l(d);if(p){var f=(0,i.getPropertyInfo)(p);switch(r.includes(p)&&s.includes(e)&&!h&&(p=l("default"+d)),n[p]=u,f&&f.type){case i.BOOLEAN:n[p]=!0;break;case i.OVERLOADED_BOOLEAN:""===u&&(n[p]=!0)}}else o.PRESERVE_CUSTOM_ATTRIBUTES&&(n[c]=u)}}return(0,o.setStyleProp)(t.style,n),n}},308:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(1609),r=i(n(840)),s=n(4958),a={cloneElement:o.cloneElement,createElement:o.createElement,isValidElement:o.isValidElement};function l(t){return s.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===t.type&&(0,s.isCustomComponent)(t.name,t.attribs)}e.default=function t(e,n){void 0===n&&(n={});for(var i=[],o="function"==typeof n.replace,h=n.transform||s.returnFirstArg,c=n.library||a,u=c.cloneElement,d=c.createElement,p=c.isValidElement,f=e.length,m=0;m1&&(g=u(g,{key:g.key||m})),i.push(h(g,_,m));continue}}if("text"!==_.type){var v=_,y={};l(v)?((0,s.setStyleProp)(v.attribs.style,v.attribs),y=v.attribs):v.attribs&&(y=(0,r.default)(v.attribs,v.name));var w=void 0;switch(_.type){case"script":case"style":_.children[0]&&(y.dangerouslySetInnerHTML={__html:_.children[0].data});break;case"tag":"textarea"===_.name&&_.children[0]?y.defaultValue=_.children[0].data:_.children&&_.children.length&&(w=t(_.children,n));break;default:continue}f>1&&(y.key=m),i.push(h(d(_.name,y,w),_,m))}else{var x=!_.data.trim().length;if(x&&_.parent&&!(0,s.canTextBeChildOfNode)(_.parent))continue;if(n.trim&&x)continue;i.push(h(_.data,_,m))}}return 1===i.length?i[0]:i}},442:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.htmlToDOM=e.domToReact=e.attributesToProps=e.Text=e.ProcessingInstruction=e.Element=e.Comment=void 0;var o=i(n(2471));e.htmlToDOM=o.default;var r=i(n(840));e.attributesToProps=r.default;var s=i(n(308));e.domToReact=s.default;var a=n(1141);Object.defineProperty(e,"Comment",{enumerable:!0,get:function(){return a.Comment}}),Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return a.Element}}),Object.defineProperty(e,"ProcessingInstruction",{enumerable:!0,get:function(){return a.ProcessingInstruction}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return a.Text}});var l={lowerCaseAttributeNames:!1};e.default=function(t,e){if("string"!=typeof t)throw new TypeError("First argument must be a string");return t?(0,s.default)((0,o.default)(t,(null==e?void 0:e.htmlparser2)||l),e):[]}},4958:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.returnFirstArg=e.canTextBeChildOfNode=e.ELEMENTS_WITH_NO_TEXT_CHILDREN=e.PRESERVE_CUSTOM_ATTRIBUTES=e.setStyleProp=e.isCustomComponent=void 0;var o=n(1609),r=i(n(5229)),s=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);e.isCustomComponent=function(t,e){return t.includes("-")?!s.has(t):Boolean(e&&"string"==typeof e.is)};var a={reactCompat:!0};e.setStyleProp=function(t,e){if("string"==typeof t)if(t.trim())try{e.style=(0,r.default)(t,a)}catch(t){e.style={}}else e.style={}},e.PRESERVE_CUSTOM_ATTRIBUTES=Number(o.version.split(".")[0])>=16,e.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),e.canTextBeChildOfNode=function(t){return!e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(t.name)},e.returnFirstArg=function(t){return t}},9788:t=>{var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,i=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,r=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,h="";function c(t){return t?t.replace(l,h):h}t.exports=function(t,l){if("string"!=typeof t)throw new TypeError("First argument must be a string");if(!t)return[];l=l||{};var u=1,d=1;function p(t){var e=t.match(n);e&&(u+=e.length);var i=t.lastIndexOf("\n");d=~i?t.length-i:d+t.length}function f(){var t={line:u,column:d};return function(e){return e.position=new m(t),y(),e}}function m(t){this.start=t,this.end={line:u,column:d},this.source=l.source}m.prototype.content=t;var _=[];function g(e){var n=new Error(l.source+":"+u+":"+d+": "+e);if(n.reason=e,n.filename=l.source,n.line=u,n.column=d,n.source=t,!l.silent)throw n;_.push(n)}function v(e){var n=e.exec(t);if(n){var i=n[0];return p(i),t=t.slice(i.length),n}}function y(){v(i)}function w(t){var e;for(t=t||[];e=x();)!1!==e&&t.push(e);return t}function x(){var e=f();if("/"==t.charAt(0)&&"*"==t.charAt(1)){for(var n=2;h!=t.charAt(n)&&("*"!=t.charAt(n)||"/"!=t.charAt(n+1));)++n;if(n+=2,h===t.charAt(n-1))return g("End of comment missing");var i=t.slice(2,n-2);return d+=2,p(i),t=t.slice(n),d+=2,e({type:"comment",comment:i})}}function b(){var t=f(),n=v(o);if(n){if(x(),!v(r))return g("property missing ':'");var i=v(s),l=t({type:"declaration",property:c(n[0].replace(e,h)),value:i?c(i[0].replace(e,h)):h});return v(a),l}}return y(),function(){var t,e=[];for(w(e);t=b();)!1!==t&&(e.push(t),w(e));return e}()}},3481:function(t,e){!function(t){"use strict";function e(t){var e,n,i,o;for(n=1,i=arguments.length;n0?Math.floor(t):Math.ceil(t)};function z(t,e,n){return t instanceof A?t:_(t)?new A(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new A(t.x,t.y):new A(t,e,n)}function I(t,e){if(t)for(var n=e?[t,e]:t,i=0,o=n.length;i=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=N(t);var e=this.min,n=this.max,i=t.min,o=t.max,r=o.x>=e.x&&i.x<=n.x,s=o.y>=e.y&&i.y<=n.y;return r&&s},overlaps:function(t){t=N(t);var e=this.min,n=this.max,i=t.min,o=t.max,r=o.x>e.x&&i.xe.y&&i.y=i.lat&&n.lat<=o.lat&&e.lng>=i.lng&&n.lng<=o.lng},intersects:function(t){t=Z(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),o=t.getNorthEast(),r=o.lat>=e.lat&&i.lat<=n.lat,s=o.lng>=e.lng&&i.lng<=n.lng;return r&&s},overlaps:function(t){t=Z(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),o=t.getNorthEast(),r=o.lat>e.lat&&i.late.lng&&i.lng1,kt=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",l,e),window.removeEventListener("testPassiveEventSupport",l,e)}catch(t){}return t}(),Ct=!!document.createElement("canvas").getContext,Mt=!(!document.createElementNS||!Y("svg").createSVGRect),At=!!Mt&&(($=document.createElement("div")).innerHTML="","http://www.w3.org/2000/svg"===($.firstChild&&$.firstChild.namespaceURI)),Ot=!Mt&&function(){try{var t=document.createElement("div");t.innerHTML='';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}();function zt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var It={ie:Q,ielt9:tt,edge:et,webkit:nt,android:it,android23:ot,androidStock:st,opera:at,chrome:lt,gecko:ht,safari:ct,phantom:ut,opera12:dt,win:pt,ie3d:ft,webkit3d:mt,gecko3d:_t,any3d:gt,mobile:vt,mobileWebkit:yt,mobileWebkit3d:wt,msPointer:xt,pointer:bt,touch:Pt,touchNative:Tt,mobileOpera:Lt,mobileGecko:Et,retina:St,passiveEvents:kt,canvas:Ct,svg:Mt,vml:Ot,inlineSvg:At,mac:0===navigator.platform.indexOf("Mac"),linux:0===navigator.platform.indexOf("Linux")},Nt=It.msPointer?"MSPointerDown":"pointerdown",Rt=It.msPointer?"MSPointerMove":"pointermove",Zt=It.msPointer?"MSPointerUp":"pointerup",Bt=It.msPointer?"MSPointerCancel":"pointercancel",Dt={touchstart:Nt,touchmove:Rt,touchend:Zt,touchcancel:Bt},jt={touchstart:function(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&Be(e),Gt(t,e)},touchmove:Gt,touchend:Gt,touchcancel:Gt},Ft={},Ht=!1;function Wt(t,e,n){return"touchstart"===e&&(Ht||(document.addEventListener(Nt,Vt,!0),document.addEventListener(Rt,Ut,!0),document.addEventListener(Zt,qt,!0),document.addEventListener(Bt,qt,!0),Ht=!0)),jt[e]?(n=jt[e].bind(this,n),t.addEventListener(Dt[e],n,!1),n):(console.warn("wrong event specified:",e),l)}function Vt(t){Ft[t.pointerId]=t}function Ut(t){Ft[t.pointerId]&&(Ft[t.pointerId]=t)}function qt(t){delete Ft[t.pointerId]}function Gt(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){for(var n in e.touches=[],Ft)e.touches.push(Ft[n]);e.changedTouches=[e],t(e)}}var Kt=200;var Yt,Xt,$t,Jt,Qt,te=_e(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ee=_e(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ne="webkitTransition"===ee||"OTransition"===ee?ee+"End":"transitionend";function ie(t){return"string"==typeof t?document.getElementById(t):t}function oe(t,e){var n=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!n||"auto"===n)&&document.defaultView){var i=document.defaultView.getComputedStyle(t,null);n=i?i[e]:null}return"auto"===n?null:n}function re(t,e,n){var i=document.createElement(t);return i.className=e||"",n&&n.appendChild(i),i}function se(t){var e=t.parentNode;e&&e.removeChild(t)}function ae(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function le(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function he(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function ce(t,e){if(void 0!==t.classList)return t.classList.contains(e);var n=fe(t);return n.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)}function ue(t,e){if(void 0!==t.classList)for(var n=u(e),i=0,o=n.length;i0?2*window.devicePixelRatio:1;function We(t){return It.edge?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/He:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function Ve(t,e){var n=e.relatedTarget;if(!n)return!0;try{for(;n&&n!==t;)n=n.parentNode}catch(t){return!1}return n!==t}var Ue={__proto__:null,on:ke,off:Me,stopPropagation:Ne,disableScrollPropagation:Re,disableClickPropagation:Ze,preventDefault:Be,stop:De,getPropagationPath:je,getMousePosition:Fe,getWheelDelta:We,isExternalTarget:Ve,addListener:ke,removeListener:Me},qe=M.extend({run:function(t,e,n,i){this.stop(),this._el=t,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(i||.5,.2),this._startPos=ye(t),this._offset=e.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=P(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,n=1e3*this._duration;ethis.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var n=this.getCenter(),i=this._limitCenter(n,this._zoom,Z(t));return n.equals(i)||this.panTo(i,e),this._enforcingBounds=!1,this},panInside:function(t,e){var n=z((e=e||{}).paddingTopLeft||e.padding||[0,0]),i=z(e.paddingBottomRight||e.padding||[0,0]),o=this.project(this.getCenter()),r=this.project(t),s=this.getPixelBounds(),a=N([s.min.add(n),s.max.subtract(i)]),l=a.getSize();if(!a.contains(r)){this._enforcingBounds=!0;var h=r.subtract(a.getCenter()),c=a.extend(r).getSize().subtract(l);o.x+=h.x<0?-c.x:c.x,o.y+=h.y<0?-c.y:c.y,this.panTo(this.unproject(o),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=e({animate:!1,pan:!0},!0===t?{animate:!0}:t);var n=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var o=this.getSize(),r=n.divideBy(2).round(),s=o.divideBy(2).round(),a=r.subtract(s);return a.x||a.y?(t.animate&&t.pan?this.panBy(a):(t.pan&&this._rawPanBy(a),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(i(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:n,newSize:o})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=e({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var n=i(this._handleGeolocationResponse,this),o=i(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(n,o,t):navigator.geolocation.getCurrentPosition(n,o,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var e=t.code,n=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+n+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=new B(t.coords.latitude,t.coords.longitude),n=e.toBounds(2*t.coords.accuracy),i=this._locateOptions;if(i.setView){var o=this.getBoundsZoom(n);this.setView(e,i.maxZoom?Math.min(o,i.maxZoom):o)}var r={latlng:e,bounds:n,timestamp:t.timestamp};for(var s in t.coords)"number"==typeof t.coords[s]&&(r[s]=t.coords[s]);this.fire("locationfound",r)}},addHandler:function(t,e){if(!e)return this;var n=this[t]=new e(this);return this._handlers.push(n),this.options[t]&&n.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(t){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),se(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(E(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)se(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var n=re("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new R(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,n){t=Z(t),n=z(n||[0,0]);var i=this.getZoom()||0,o=this.getMinZoom(),r=this.getMaxZoom(),s=t.getNorthWest(),a=t.getSouthEast(),l=this.getSize().subtract(n),h=N(this.project(a,i),this.project(s,i)).getSize(),c=It.any3d?this.options.zoomSnap:1,u=l.x/h.x,d=l.y/h.y,p=e?Math.max(u,d):Math.min(u,d);return i=this.getScaleZoom(p,i),c&&(i=Math.round(i/(c/100))*(c/100),i=e?Math.ceil(i/c)*c:Math.floor(i/c)*c),Math.max(o,Math.min(r,i))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new A(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var n=this._getTopLeftPoint(t,e);return new I(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var n=this.options.crs;return e=void 0===e?this._zoom:e,n.scale(t)/n.scale(e)},getScaleZoom:function(t,e){var n=this.options.crs;e=void 0===e?this._zoom:e;var i=n.zoom(t*n.scale(e));return isNaN(i)?1/0:i},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(D(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(z(t),e)},layerPointToLatLng:function(t){var e=z(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(D(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(D(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(Z(t))},distance:function(t,e){return this.options.crs.distance(D(t),D(e))},containerPointToLayerPoint:function(t){return z(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return z(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(z(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(D(t)))},mouseEventToContainerPoint:function(t){return Fe(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=ie(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");ke(e,"scroll",this._onScroll,this),this._containerId=r(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&It.any3d,ue(t,"leaflet-container"+(It.touch?" leaflet-touch":"")+(It.retina?" leaflet-retina":"")+(It.ielt9?" leaflet-oldie":"")+(It.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=oe(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&"sticky"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),ve(this._mapPane,new A(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(ue(t.markerPane,"leaflet-zoom-hide"),ue(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,n){ve(this._mapPane,new A(0,0));var i=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var o=this._zoom!==e;this._moveStart(o,n)._move(t,e)._moveEnd(o),this.fire("viewreset"),i&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,n,i){void 0===e&&(e=this._zoom);var o=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),i?n&&n.pinch&&this.fire("zoom",n):((o||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return E(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){ve(this._mapPane,this._getMapPanePos().subtract(t))},_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(t){this._targets={},this._targets[r(this._container)]=this;var e=t?Me:ke;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),It.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){E(this._resizeRequest),this._resizeRequest=P((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var n,i=[],o="mouseout"===e||"mouseover"===e,s=t.target||t.srcElement,a=!1;s;){if((n=this._targets[r(s)])&&("click"===e||"preclick"===e)&&this._draggableMoved(n)){a=!0;break}if(n&&n.listens(e,!0)){if(o&&!Ve(s,t))break;if(i.push(n),o)break}if(s===this._container)break;s=s.parentNode}return i.length||a||o||!this.listens(e,!0)||(i=[this]),i},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!(!this._loaded||e._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(e))){var n=t.type;"mousedown"===n&&Te(e),this._fireDOMEvent(t,n)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,n,i){if("click"===t.type){var o=e({},t);o.type="preclick",this._fireDOMEvent(o,o.type,i)}var r=this._findEventTargets(t,n);if(i){for(var s=[],a=0;a0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),n=this.getMaxZoom(),i=It.any3d?this.options.zoomSnap:1;return i&&(t=Math.round(t/i)*i),Math.max(e,Math.min(n,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){de(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var n=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(n)||(this.panBy(n,e),0))},_createAnimProxy:function(){var t=this._proxy=re("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",(function(t){var e=te,n=this._proxy.style[e];ge(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),n===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){se(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();ge(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var i=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/i);return!(!0!==n.animate&&!this.getSize().contains(o)||(P((function(){this._moveStart(!0,n.noMoveStart||!1)._animateZoom(t,e,!0)}),this),0))},_animateZoom:function(t,e,n,o){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,ue(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:o}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(i(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&de(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))}});var Ke=k.extend({options:{position:"topright"},initialize:function(t){d(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),n=this.getPosition(),i=t._controlCorners[n];return ue(e,"leaflet-control"),-1!==n.indexOf("bottom")?i.insertBefore(e,i.firstChild):i.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(se(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),Ye=function(t){return new Ke(t)};Ge.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",n=this._controlContainer=re("div",e+"control-container",this._container);function i(i,o){var r=e+i+" "+e+o;t[i+o]=re("div",r,n)}i("top","left"),i("top","right"),i("bottom","left"),i("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)se(this._controlCorners[t]);se(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Xe=Ke.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,n,i){return n1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(r(t.target)),n=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;n&&this._map.fire(n,e)},_createRadioElement:function(t,e){var n='",i=document.createElement("div");return i.innerHTML=n,i.firstChild},_addItem:function(t){var e,n=document.createElement("label"),i=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=i):e=this._createRadioElement("leaflet-base-layers_"+r(this),i),this._layerControlInputs.push(e),e.layerId=r(t.layer),ke(e,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+t.name;var s=document.createElement("span");return n.appendChild(s),s.appendChild(e),s.appendChild(o),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){if(!this._preventClick){var t,e,n=this._layerControlInputs,i=[],o=[];this._handlingClick=!0;for(var r=n.length-1;r>=0;r--)t=n[r],e=this._getLayer(t.layerId).layer,t.checked?i.push(e):t.checked||o.push(e);for(r=0;r=0;o--)t=n[o],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&ie.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,ke(t,"click",Be),this.expand();var e=this;setTimeout((function(){Me(t,"click",Be),e._preventClick=!1}))}}),$e=Ke.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",n=re("div",e+" leaflet-bar"),i=this.options;return this._zoomInButton=this._createButton(i.zoomInText,i.zoomInTitle,e+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(i.zoomOutText,i.zoomOutTitle,e+"-out",n,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(t){t.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(t){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,n,i,o){var r=re("a",n,i);return r.innerHTML=t,r.href="#",r.title=e,r.setAttribute("role","button"),r.setAttribute("aria-label",e),Ze(r),ke(r,"click",De),ke(r,"click",o,this),ke(r,"click",this._refocusOnMap,this),r},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";de(this._zoomInButton,e),de(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(ue(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(ue(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});Ge.mergeOptions({zoomControl:!0}),Ge.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new $e,this.addControl(this.zoomControl))}));var Je=Ke.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",n=re("div",e),i=this.options;return this._addScales(i,e+"-line",n),t.on(i.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),n},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,n){t.metric&&(this._mScale=re("div",e,n)),t.imperial&&(this._iScale=re("div",e,n))},_update:function(){var t=this._map,e=t.getSize().y/2,n=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(n)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),n=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,n,e/t)},_updateImperial:function(t){var e,n,i,o=3.2808399*t;o>5280?(e=o/5280,n=this._getRoundNum(e),this._updateScale(this._iScale,n+" mi",n/e)):(i=this._getRoundNum(o),this._updateScale(this._iScale,i+" ft",i/o))},_updateScale:function(t,e,n){t.style.width=Math.round(this.options.maxWidth*n)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),n=t/e;return e*(n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),Qe=Ke.extend({options:{position:"bottomright",prefix:''+(It.inlineSvg?' ':"")+"Leaflet"},initialize:function(t){d(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=re("div","leaflet-control-attribution"),Ze(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",(function(){this.removeAttribution(t.layer.getAttribution())}),this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(' ')}}});Ge.mergeOptions({attributionControl:!0}),Ge.addInitHook((function(){this.options.attributionControl&&(new Qe).addTo(this)}));Ke.Layers=Xe,Ke.Zoom=$e,Ke.Scale=Je,Ke.Attribution=Qe,Ye.layers=function(t,e,n){return new Xe(t,e,n)},Ye.zoom=function(t){return new $e(t)},Ye.scale=function(t){return new Je(t)},Ye.attribution=function(t){return new Qe(t)};var tn=k.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});tn.addTo=function(t,e){return t.addHandler(e,this),this};var en={Events:C},nn=It.touch?"touchstart mousedown":"mousedown",on=M.extend({options:{clickTolerance:3},initialize:function(t,e,n,i){d(this,i),this._element=t,this._dragStartTarget=e||t,this._preventOutline=n},enable:function(){this._enabled||(ke(this._dragStartTarget,nn,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(on._dragging===this&&this.finishDrag(!0),Me(this._dragStartTarget,nn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!ce(this._element,"leaflet-zoom-anim")))if(t.touches&&1!==t.touches.length)on._dragging===this&&this.finishDrag();else if(!(on._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(on._dragging=this,this._preventOutline&&Te(this._element),xe(),Yt(),this._moving))){this.fire("down");var e=t.touches?t.touches[0]:t,n=Le(this._element);this._startPoint=new A(e.clientX,e.clientY),this._startPos=ye(this._element),this._parentScale=Ee(n);var i="mousedown"===t.type;ke(document,i?"mousemove":"touchmove",this._onMove,this),ke(document,i?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(t){if(this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,n=new A(e.clientX,e.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)e&&(n.push(t[i]),o=i);return ol&&(r=s,l=a);l>n&&(e[r]=1,dn(t,e,n,i,r),dn(t,e,n,r,o))}function pn(t,e,n,i,o){var r,s,a,l=i?ln:mn(t,n),h=mn(e,n);for(ln=h;;){if(!(l|h))return[t,e];if(l&h)return!1;a=mn(s=fn(t,e,r=l||h,n,o),n),r===l?(t=s,l=a):(e=s,h=a)}}function fn(t,e,n,i,o){var r,s,a=e.x-t.x,l=e.y-t.y,h=i.min,c=i.max;return 8&n?(r=t.x+a*(c.y-t.y)/l,s=c.y):4&n?(r=t.x+a*(h.y-t.y)/l,s=h.y):2&n?(r=c.x,s=t.y+l*(c.x-t.x)/a):1&n&&(r=h.x,s=t.y+l*(h.x-t.x)/a),new A(r,s,o)}function mn(t,e){var n=0;return t.xe.max.x&&(n|=2),t.ye.max.y&&(n|=8),n}function gn(t,e){var n=e.x-t.x,i=e.y-t.y;return n*n+i*i}function vn(t,e,n,i){var o,r=e.x,s=e.y,a=n.x-r,l=n.y-s,h=a*a+l*l;return h>0&&((o=((t.x-r)*a+(t.y-s)*l)/h)>1?(r=n.x,s=n.y):o>0&&(r+=a*o,s+=l*o)),a=t.x-r,l=t.y-s,i?a*a+l*l:new A(r,s)}function yn(t){return!_(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function wn(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),yn(t)}function xn(t,e){var n,i,o,r,s,a,l,h;if(!t||0===t.length)throw new Error("latlngs not passed");yn(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var c=D([0,0]),u=Z(t);u.getNorthWest().distanceTo(u.getSouthWest())*u.getNorthEast().distanceTo(u.getNorthWest())<1700&&(c=an(t));var d=t.length,p=[];for(n=0;ni){l=(r-i)/o,h=[a.x-l*(a.x-s.x),a.y-l*(a.y-s.y)];break}var m=e.unproject(z(h));return D([m.lat+c.lat,m.lng+c.lng])}var bn={__proto__:null,simplify:cn,pointToSegmentDistance:un,closestPointOnSegment:function(t,e,n){return vn(t,e,n)},clipSegment:pn,_getEdgeIntersection:fn,_getBitCode:mn,_sqClosestPointOnSegment:vn,isFlat:yn,_flat:wn,polylineCenter:xn},Tn={project:function(t){return new A(t.lng,t.lat)},unproject:function(t){return new B(t.y,t.x)},bounds:new I([-180,-90],[180,90])},Pn={R:6378137,R_MINOR:6356752.314245179,bounds:new I([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,n=this.R,i=t.lat*e,o=this.R_MINOR/n,r=Math.sqrt(1-o*o),s=r*Math.sin(i),a=Math.tan(Math.PI/4-i/2)/Math.pow((1-s)/(1+s),r/2);return i=-n*Math.log(Math.max(a,1e-10)),new A(t.lng*e*n,i)},unproject:function(t){for(var e,n=180/Math.PI,i=this.R,o=this.R_MINOR/i,r=Math.sqrt(1-o*o),s=Math.exp(-t.y/i),a=Math.PI/2-2*Math.atan(s),l=0,h=.1;l<15&&Math.abs(h)>1e-7;l++)e=r*Math.sin(a),e=Math.pow((1-e)/(1+e),r/2),a+=h=Math.PI/2-2*Math.atan(s*e)-a;return new B(a*n,t.x*n/i)}},Ln={__proto__:null,LonLat:Tn,Mercator:Pn,SphericalMercator:V},En=e({},H,{code:"EPSG:3395",projection:Pn,transformation:function(){var t=.5/(Math.PI*Pn.R);return q(t,.5,-t,.5)}()}),Sn=e({},H,{code:"EPSG:4326",projection:Tn,transformation:q(1/180,1,-1/180,.5)}),kn=e({},F,{projection:Tn,transformation:q(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var n=e.lng-t.lng,i=e.lat-t.lat;return Math.sqrt(n*n+i*i)},infinite:!0});F.Earth=H,F.EPSG3395=En,F.EPSG3857=G,F.EPSG900913=K,F.EPSG4326=Sn,F.Simple=kn;var Cn=M.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[r(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[r(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var n=this.getEvents();e.on(n,this),this.once("remove",(function(){e.off(n,this)}),this)}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});Ge.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=r(t);return this._layers[e]||(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=r(t);return this._layers[e]?(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return r(t)in this._layers},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},_addLayers:function(t){for(var e=0,n=(t=t?_(t)?t:[t]:[]).length;ethis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()=2&&e[0]instanceof B&&e[0].equals(e[n-1])&&e.pop(),e},_setLatLngs:function(t){Dn.prototype._setLatLngs.call(this,t),yn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return yn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,n=new A(e,e);if(t=new I(t.min.subtract(n),t.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var i,o=0,r=this._rings.length;ot.y!=i.y>t.y&&t.x<(i.x-n.x)*(t.y-n.y)/(i.y-n.y)+n.x&&(h=!h);return h||Dn.prototype._containsPoint.call(this,t,!0)}});var Fn=An.extend({initialize:function(t,e){d(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,n,i,o=_(t)?t:t.features;if(o){for(e=0,n=o.length;e0&&o.push(o[0].slice()),o}function Kn(t,n){return t.feature?e({},t.feature,{geometry:n}):Yn(n)}function Yn(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var Xn={toGeoJSON:function(t){return Kn(this,{type:"Point",coordinates:qn(this.getLatLng(),t)})}};function $n(t,e){return new Fn(t,e)}Nn.include(Xn),Bn.include(Xn),Zn.include(Xn),Dn.include({toGeoJSON:function(t){var e=!yn(this._latlngs);return Kn(this,{type:(e?"Multi":"")+"LineString",coordinates:Gn(this._latlngs,e?1:0,!1,t)})}}),jn.include({toGeoJSON:function(t){var e=!yn(this._latlngs),n=e&&!yn(this._latlngs[0]),i=Gn(this._latlngs,n?2:e?1:0,!0,t);return e||(i=[i]),Kn(this,{type:(n?"Multi":"")+"Polygon",coordinates:i})}}),Mn.include({toMultiPoint:function(t){var e=[];return this.eachLayer((function(n){e.push(n.toGeoJSON(t).geometry.coordinates)})),Kn(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===e)return this.toMultiPoint(t);var n="GeometryCollection"===e,i=[];return this.eachLayer((function(e){if(e.toGeoJSON){var o=e.toGeoJSON(t);if(n)i.push(o.geometry);else{var r=Yn(o);"FeatureCollection"===r.type?i.push.apply(i,r.features):i.push(r)}}})),n?Kn(this,{geometries:i,type:"GeometryCollection"}):{type:"FeatureCollection",features:i}}});var Jn=$n,Qn=Cn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,n){this._url=t,this._bounds=Z(e),d(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(ue(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){se(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&le(this._image),this},bringToBack:function(){return this._map&&he(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=Z(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,e=this._image=t?this._url:re("img");ue(e,"leaflet-image-layer"),this._zoomAnimated&&ue(e,"leaflet-zoom-animated"),this.options.className&&ue(e,this.options.className),e.onselectstart=l,e.onmousemove=l,e.onload=i(this.fire,this,"load"),e.onerror=i(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=e.src:(e.src=this._url,e.alt=this.options.alt)},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;ge(this._image,n,e)},_reset:function(){var t=this._image,e=new I(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=e.getSize();ve(t,e.min),t.style.width=n.x+"px",t.style.height=n.y+"px"},_updateOpacity:function(){me(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),ti=Qn.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:re("video");if(ue(e,"leaflet-image-layer"),this._zoomAnimated&&ue(e,"leaflet-zoom-animated"),this.options.className&&ue(e,this.options.className),e.onselectstart=l,e.onmousemove=l,e.onloadeddata=i(this.fire,this,"load"),t){for(var n=e.getElementsByTagName("source"),o=[],r=0;r0?o:[e.src]}else{_(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInline=!!this.options.playsInline;for(var s=0;so?(e.height=o+"px",ue(t,r)):de(t,r),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),n=this._getAnchor();ve(this._container,e.add(n))},_adjustPan:function(){if(this.options.autoPan)if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)this._autopanning=!1;else{var t=this._map,e=parseInt(oe(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+e,i=this._containerWidth,o=new A(this._containerLeft,-n-this._containerBottom);o._add(ye(this._container));var r=t.layerPointToContainerPoint(o),s=z(this.options.autoPanPadding),a=z(this.options.autoPanPaddingTopLeft||s),l=z(this.options.autoPanPaddingBottomRight||s),h=t.getSize(),c=0,u=0;r.x+i+l.x>h.x&&(c=r.x+i-h.x+l.x),r.x-c-a.x<0&&(c=r.x-a.x),r.y+n+l.y>h.y&&(u=r.y+n-h.y+l.y),r.y-u-a.y<0&&(u=r.y-a.y),(c||u)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([c,u]))}},_getAnchor:function(){return z(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});Ge.mergeOptions({closePopupOnClick:!0}),Ge.include({openPopup:function(t,e,n){return this._initOverlay(ii,t,e,n).openOn(this),this},closePopup:function(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),Cn.include({bindPopup:function(t,e){return this._popup=this._initOverlay(ii,this._popup,t,e),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(t){return this._popup&&(this instanceof An||(this._popup._source=this),this._popup._prepareOpen(t||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()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(this._popup&&this._map){De(t);var e=t.layer||t.target;this._popup._source!==e||e instanceof Rn?(this._popup._source=e,this.openPopup(t.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var oi=ni.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){ni.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){ni.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=ni.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=re("div",t),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+r(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,n,i=this._map,o=this._container,r=i.latLngToContainerPoint(i.getCenter()),s=i.layerPointToContainerPoint(t),a=this.options.direction,l=o.offsetWidth,h=o.offsetHeight,c=z(this.options.offset),u=this._getAnchor();"top"===a?(e=l/2,n=h):"bottom"===a?(e=l/2,n=0):"center"===a?(e=l/2,n=h/2):"right"===a?(e=0,n=h/2):"left"===a?(e=l,n=h/2):s.xthis.options.maxZoom||ni&&this._retainParent(o,r,s,i))},_retainChildren:function(t,e,n,i){for(var o=2*t;o<2*t+2;o++)for(var r=2*e;r<2*e+2;r++){var s=new A(o,r);s.z=n+1;var a=this._tileCoordsToKey(s),l=this._tiles[a];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),n+1this.options.maxZoom||void 0!==this.options.minZoom&&o1)this._setView(t,n);else{for(var u=o.min.y;u<=o.max.y;u++)for(var d=o.min.x;d<=o.max.x;d++){var p=new A(d,u);if(p.z=this._tileZoom,this._isValidTile(p)){var f=this._tiles[this._tileCoordsToKey(p)];f?f.current=!0:s.push(p)}}if(s.sort((function(t,e){return t.distanceTo(r)-e.distanceTo(r)})),0!==s.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(d=0;dn.max.x)||!e.wrapLat&&(t.yn.max.y))return!1}if(!this.options.bounds)return!0;var i=this._tileCoordsToBounds(t);return Z(this.options.bounds).overlaps(i)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,n=this.getTileSize(),i=t.scaleBy(n),o=i.add(n);return[e.unproject(i,t.z),e.unproject(o,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),n=new R(e[0],e[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),n=new A(+e[0],+e[1]);return n.z=+e[2],n},_removeTile:function(t){var e=this._tiles[t];e&&(se(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){ue(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=l,t.onmousemove=l,It.ielt9&&this.options.opacity<1&&me(t,this.options.opacity)},_addTile:function(t,e){var n=this._getTilePos(t),o=this._tileCoordsToKey(t),r=this.createTile(this._wrapCoords(t),i(this._tileReady,this,t));this._initTile(r),this.createTile.length<2&&P(i(this._tileReady,this,t,null,r)),ve(r,n),this._tiles[o]={el:r,coords:t,current:!0},e.appendChild(r),this.fire("tileloadstart",{tile:r,coords:t})},_tileReady:function(t,e,n){e&&this.fire("tileerror",{error:e,tile:n,coords:t});var o=this._tileCoordsToKey(t);(n=this._tiles[o])&&(n.loaded=+new Date,this._map._fadeAnimated?(me(n.el,0),E(this._fadeFrame),this._fadeFrame=P(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),e||(ue(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),It.ielt9||!this._map._fadeAnimated?P(this._pruneTiles,this):setTimeout(i(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new A(this._wrapX?a(t.x,this._wrapX):t.x,this._wrapY?a(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new I(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});var ai=si.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,(e=d(this,e)).detectRetina&&It.retina&&e.maxZoom>0?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var n=document.createElement("img");return ke(n,"load",i(this._tileOnLoad,this,e,n)),ke(n,"error",i(this._tileOnError,this,e,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(n.referrerPolicy=this.options.referrerPolicy),n.alt="",n.src=this.getTileUrl(t),n},getTileUrl:function(t){var n={r:It.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var i=this._globalTileRange.max.y-t.y;this.options.tms&&(n.y=i),n["-y"]=i}return m(this._url,e(n,this.options))},_tileOnLoad:function(t,e){It.ielt9?setTimeout(i(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,n){var i=this.options.errorTileUrl;i&&e.getAttribute("src")!==i&&(e.src=i),t(n,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return this.options.zoomReverse&&(t=e-t),t+this.options.zoomOffset},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=l,e.onerror=l,!e.complete)){e.src=v;var n=this._tiles[t].coords;se(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:n})}},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",v),si.prototype._removeTile.call(this,t)},_tileReady:function(t,e,n){if(this._map&&(!n||n.getAttribute("src")!==v))return si.prototype._tileReady.call(this,t,e,n)}});function li(t,e){return new ai(t,e)}var hi=ai.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,n){this._url=t;var i=e({},this.defaultWmsParams);for(var o in n)o in this.options||(i[o]=n[o]);var r=(n=d(this,n)).detectRetina&&It.retina?2:1,s=this.getTileSize();i.width=s.x*r,i.height=s.y*r,this.wmsParams=i},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,ai.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),n=this._crs,i=N(n.project(e[0]),n.project(e[1])),o=i.min,r=i.max,s=(this._wmsVersion>=1.3&&this._crs===Sn?[o.y,o.x,r.y,r.x]:[o.x,o.y,r.x,r.y]).join(","),a=ai.prototype.getTileUrl.call(this,t);return a+p(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+s},setParams:function(t,n){return e(this.wmsParams,t),n||this.redraw(),this}});ai.WMS=hi,li.wms=function(t,e){return new hi(t,e)};var ci=Cn.extend({options:{padding:.1},initialize:function(t){d(this,t),r(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),ue(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 t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var n=this._map.getZoomScale(e,this._zoom),i=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),r=i.multiplyBy(-n).add(o).subtract(this._map._getNewPixelOrigin(t,e));It.any3d?ge(this._container,r,n):ve(this._container,r)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),n=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new I(n,n.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),ui=ci.extend({options:{tolerance:0},getEvents:function(){var t=ci.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ci.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");ke(t,"mousemove",this._onMouseMove,this),ke(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),ke(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){E(this._redrawRequest),delete this._ctx,se(this._container),Me(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){ci.prototype._update.call(this);var t=this._bounds,e=this._container,n=t.getSize(),i=It.retina?2:1;ve(e,t.min),e.width=i*n.x,e.height=i*n.y,e.style.width=n.x+"px",e.style.height=n.y+"px",It.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){ci.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[r(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,n=e.next,i=e.prev;n?n.prev=i:this._drawLast=i,i?i.next=n:this._drawFirst=n,delete t._order,delete this._layers[r(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){var e,n,i=t.options.dashArray.split(/[, ]+/),o=[];for(n=0;n')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),fi={_initContainer:function(){this._container=re("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ci.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=pi("shape");ue(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=pi("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[r(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;se(e),t.removeInteractiveTarget(e),delete this._layers[r(t)]},_updateStyle:function(t){var e=t._stroke,n=t._fill,i=t.options,o=t._container;o.stroked=!!i.stroke,o.filled=!!i.fill,i.stroke?(e||(e=t._stroke=pi("stroke")),o.appendChild(e),e.weight=i.weight+"px",e.color=i.color,e.opacity=i.opacity,i.dashArray?e.dashStyle=_(i.dashArray)?i.dashArray.join(" "):i.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=i.lineCap.replace("butt","flat"),e.joinstyle=i.lineJoin):e&&(o.removeChild(e),t._stroke=null),i.fill?(n||(n=t._fill=pi("fill")),o.appendChild(n),n.color=i.fillColor||i.color,n.opacity=i.fillOpacity):n&&(o.removeChild(n),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),n=Math.round(t._radius),i=Math.round(t._radiusY||n);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+n+","+i+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){le(t._container)},_bringToBack:function(t){he(t._container)}},mi=It.vml?pi:Y,_i=ci.extend({_initContainer:function(){this._container=mi("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=mi("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){se(this._container),Me(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){ci.prototype._update.call(this);var t=this._bounds,e=t.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,n.setAttribute("width",e.x),n.setAttribute("height",e.y)),ve(n,t.min),n.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=mi("path");t.options.className&&ue(e,t.options.className),t.options.interactive&&ue(e,"leaflet-interactive"),this._updateStyle(t),this._layers[r(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){se(t._path),t.removeInteractiveTarget(t._path),delete this._layers[r(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,n=t.options;e&&(n.stroke?(e.setAttribute("stroke",n.color),e.setAttribute("stroke-opacity",n.opacity),e.setAttribute("stroke-width",n.weight),e.setAttribute("stroke-linecap",n.lineCap),e.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?e.setAttribute("stroke-dasharray",n.dashArray):e.removeAttribute("stroke-dasharray"),n.dashOffset?e.setAttribute("stroke-dashoffset",n.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),n.fill?(e.setAttribute("fill",n.fillColor||n.color),e.setAttribute("fill-opacity",n.fillOpacity),e.setAttribute("fill-rule",n.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,X(t._parts,e))},_updateCircle:function(t){var e=t._point,n=Math.max(Math.round(t._radius),1),i="a"+n+","+(Math.max(Math.round(t._radiusY),1)||n)+" 0 1,0 ",o=t._empty()?"M0 0":"M"+(e.x-n)+","+e.y+i+2*n+",0 "+i+2*-n+",0 ";this._setPath(t,o)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){le(t._path)},_bringToBack:function(t){he(t._path)}});function gi(t){return It.svg||It.vml?new _i(t):null}It.vml&&_i.include(fi),Ge.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&di(t)||gi(t)}});var vi=jn.extend({initialize:function(t,e){jn.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=Z(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});_i.create=mi,_i.pointsToPath=X,Fn.geometryToLayer=Hn,Fn.coordsToLatLng=Vn,Fn.coordsToLatLngs=Un,Fn.latLngToCoords=qn,Fn.latLngsToCoords=Gn,Fn.getFeature=Kn,Fn.asFeature=Yn,Ge.mergeOptions({boxZoom:!0});var yi=tn.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){ke(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Me(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){se(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),Yt(),xe(),this._startPoint=this._map.mouseEventToContainerPoint(t),ke(document,{contextmenu:De,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=re("div","leaflet-zoom-box",this._container),ue(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new I(this._point,this._startPoint),n=e.getSize();ve(this._box,e.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(se(this._box),de(this._container,"leaflet-crosshair")),Xt(),be(),Me(document,{contextmenu:De,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(i(this._resetState,this),0);var e=new R(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Ge.addInitHook("addHandler","boxZoom",yi),Ge.mergeOptions({doubleClickZoom:!0});var wi=tn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,n=e.getZoom(),i=e.options.zoomDelta,o=t.originalEvent.shiftKey?n-i:n+i;"center"===e.options.doubleClickZoom?e.setZoom(o):e.setZoomAround(t.containerPoint,o)}});Ge.addInitHook("addHandler","doubleClickZoom",wi),Ge.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var xi=tn.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new on(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}ue(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){de(this._map._container,"leaflet-grab"),de(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 t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=Z(this._map.options.maxBounds);this._offsetLimit=N(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.xe.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),n=this._initialWorldOffset,i=this._draggable._newPos.x,o=(i-e+n)%t+e-n,r=(i+e+n)%t-e-n,s=Math.abs(o+n)0?r:-r))-e;this._delta=0,this._startTime=null,s&&("center"===t.options.scrollWheelZoom?t.setZoom(e+s):t.setZoomAround(this._lastMousePos,e+s))}});Ge.addInitHook("addHandler","scrollWheelZoom",Ti);Ge.mergeOptions({tapHold:It.touchNative&&It.safari&&It.mobile,tapTolerance:15});var Pi=tn.extend({addHooks:function(){ke(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Me(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),1===t.touches.length){var e=t.touches[0];this._startPos=this._newPos=new A(e.clientX,e.clientY),this._holdTimeout=setTimeout(i((function(){this._cancel(),this._isTapValid()&&(ke(document,"touchend",Be),ke(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))}),this),600),ke(document,"touchend touchcancel contextmenu",this._cancel,this),ke(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){Me(document,"touchend",Be),Me(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),Me(document,"touchend touchcancel contextmenu",this._cancel,this),Me(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new A(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var n=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});n._simulated=!0,e.target.dispatchEvent(n)}});Ge.addInitHook("addHandler","tapHold",Pi),Ge.mergeOptions({touchZoom:It.touch,bounceAtZoomLimits:!0});var Li=tn.extend({addHooks:function(){ue(this._map._container,"leaflet-touch-zoom"),ke(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){de(this._map._container,"leaflet-touch-zoom"),Me(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var n=e.mouseEventToContainerPoint(t.touches[0]),i=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(n.add(i)._divideBy(2))),this._startDist=n.distanceTo(i),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),ke(document,"touchmove",this._onTouchMove,this),ke(document,"touchend touchcancel",this._onTouchEnd,this),Be(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,n=e.mouseEventToContainerPoint(t.touches[0]),o=e.mouseEventToContainerPoint(t.touches[1]),r=n.distanceTo(o)/this._startDist;if(this._zoom=e.getScaleZoom(r,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoome.getMaxZoom()&&r>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===r)return}else{var s=n._add(o)._divideBy(2)._subtract(this._centerPoint);if(1===r&&0===s.x&&0===s.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(s),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),E(this._animRequest);var a=i(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=P(a,this,!0),Be(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,E(this._animRequest),Me(document,"touchmove",this._onTouchMove,this),Me(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))):this._zooming=!1}});Ge.addInitHook("addHandler","touchZoom",Li),Ge.BoxZoom=yi,Ge.DoubleClickZoom=wi,Ge.Drag=xi,Ge.Keyboard=bi,Ge.ScrollWheelZoom=Ti,Ge.TapHold=Pi,Ge.TouchZoom=Li,t.Bounds=I,t.Browser=It,t.CRS=F,t.Canvas=ui,t.Circle=Bn,t.CircleMarker=Zn,t.Class=k,t.Control=Ke,t.DivIcon=ri,t.DivOverlay=ni,t.DomEvent=Ue,t.DomUtil=Se,t.Draggable=on,t.Evented=M,t.FeatureGroup=An,t.GeoJSON=Fn,t.GridLayer=si,t.Handler=tn,t.Icon=On,t.ImageOverlay=Qn,t.LatLng=B,t.LatLngBounds=R,t.Layer=Cn,t.LayerGroup=Mn,t.LineUtil=bn,t.Map=Ge,t.Marker=Nn,t.Mixin=en,t.Path=Rn,t.Point=A,t.PolyUtil=hn,t.Polygon=jn,t.Polyline=Dn,t.Popup=ii,t.PosAnimation=qe,t.Projection=Ln,t.Rectangle=vi,t.Renderer=ci,t.SVG=_i,t.SVGOverlay=ei,t.TileLayer=ai,t.Tooltip=oi,t.Transformation=U,t.Util=S,t.VideoOverlay=ti,t.bind=i,t.bounds=N,t.canvas=di,t.circle=function(t,e,n){return new Bn(t,e,n)},t.circleMarker=function(t,e){return new Zn(t,e)},t.control=Ye,t.divIcon=function(t){return new ri(t)},t.extend=e,t.featureGroup=function(t,e){return new An(t,e)},t.geoJSON=$n,t.geoJson=Jn,t.gridLayer=function(t){return new si(t)},t.icon=function(t){return new On(t)},t.imageOverlay=function(t,e,n){return new Qn(t,e,n)},t.latLng=D,t.latLngBounds=Z,t.layerGroup=function(t,e){return new Mn(t,e)},t.map=function(t,e){return new Ge(t,e)},t.marker=function(t,e){return new Nn(t,e)},t.point=z,t.polygon=function(t,e){return new jn(t,e)},t.polyline=function(t,e){return new Dn(t,e)},t.popup=function(t,e){return new ii(t,e)},t.rectangle=function(t,e){return new vi(t,e)},t.setOptions=d,t.stamp=r,t.svg=gi,t.svgOverlay=function(t,e,n){return new ei(t,e,n)},t.tileLayer=li,t.tooltip=function(t,e){return new oi(t,e)},t.transformation=q,t.version="1.9.4",t.videoOverlay=function(t,e,n){return new ti(t,e,n)};var Ei=window.L;t.noConflict=function(){return window.L=Ei,this},window.L=t}(e)},4210:(t,e,n)=>{"use strict";function i(t,e,n,i,o,r,s){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=i,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=r,this.removeEmptyString=s}const o={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((t=>{o[t]=new i(t,0,!1,t,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((([t,e])=>{o[t]=new i(t,1,!1,e,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((t=>{o[t]=new i(t,2,!1,t.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((t=>{o[t]=new i(t,2,!1,t,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((t=>{o[t]=new i(t,3,!1,t.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((t=>{o[t]=new i(t,3,!0,t,null,!1,!1)})),["capture","download"].forEach((t=>{o[t]=new i(t,4,!1,t,null,!1,!1)})),["cols","rows","size","span"].forEach((t=>{o[t]=new i(t,6,!1,t,null,!1,!1)})),["rowSpan","start"].forEach((t=>{o[t]=new i(t,5,!1,t.toLowerCase(),null,!1,!1)}));const r=/[\-\:]([a-z])/g,s=t=>t[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((t=>{const e=t.replace(r,s);o[e]=new i(e,1,!1,t,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((t=>{const e=t.replace(r,s);o[e]=new i(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((t=>{const e=t.replace(r,s);o[e]=new i(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((t=>{o[t]=new i(t,1,!1,t.toLowerCase(),null,!1,!1)})),o.xlinkHref=new i("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((t=>{o[t]=new i(t,1,!1,t.toLowerCase(),null,!0,!0)}));const{CAMELCASE:a,SAME:l,possibleStandardNames:h}=n(6811),c=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),u=Object.keys(h).reduce(((t,e)=>{const n=h[e];return n===l?t[e]=e:n===a?t[e.toLowerCase()]=e:t[e]=n,t}),{});e.BOOLEAN=3,e.BOOLEANISH_STRING=2,e.NUMERIC=5,e.OVERLOADED_BOOLEAN=4,e.POSITIVE_NUMERIC=6,e.RESERVED=0,e.STRING=1,e.getPropertyInfo=function(t){return o.hasOwnProperty(t)?o[t]:null},e.isCustomAttribute=c,e.possibleStandardNames=u},6811:(t,e)=>{e.SAME=0,e.CAMELCASE=1,e.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},5229:function(t,e,n){"use strict";var i=(this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}})(n(1133)),o=n(8917);function r(t,e){var n={};return t&&"string"==typeof t?((0,i.default)(t,(function(t,i){t&&i&&(n[(0,o.camelCase)(t,e)]=i)})),n):n}r.default=r,t.exports=r},8917:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,i=/-([a-z])/g,o=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,a=function(t,e){return e.toUpperCase()},l=function(t,e){return"".concat(e,"-")};e.camelCase=function(t,e){return void 0===e&&(e={}),function(t){return!t||o.test(t)||n.test(t)}(t)?t:(t=t.toLowerCase(),(t=e.reactCompat?t.replace(s,l):t.replace(r,l)).replace(i,a))}},1133:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=i(n(9788));e.default=function(t,e){var n=null;if(!t||"string"!=typeof t)return n;var i=(0,o.default)(t),r="function"==typeof e;return i.forEach((function(t){if("declaration"===t.type){var i=t.property,o=t.value;r?e(i,o,t):o&&((n=n||{})[i]=o)}})),n}},1609:t=>{"use strict";t.exports=window.React},6942:(t,e)=>{var n;!function(){"use strict";var i={}.hasOwnProperty;function o(){for(var t="",e=0;e{if(!n){var s=1/0;for(c=0;c=r)&&Object.keys(i.O).every((t=>i.O[t](n[l])))?n.splice(l--,1):(a=!1,r0&&t[c-1][2]>r;c--)t[c]=t[c-1];t[c]=[n,o,r]},i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t;i.g.importScripts&&(t=i.g.location+"");var e=i.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");if(n.length)for(var o=n.length-1;o>-1&&(!t||!/^http(s?):/.test(t));)t=n[o--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=t+"../../"})(),(()=>{var t={908:0,812:0};i.O.j=e=>0===t[e];var e=(e,n)=>{var o,r,[s,a,l]=n,h=0;if(s.some((e=>0!==t[e]))){for(o in a)i.o(a,o)&&(i.m[o]=a[o]);if(l)var c=l(i)}for(e&&e(n);hi(9067)));o=i.O(o)})(); \ No newline at end of file diff --git a/build/blocks/venue/venue.asset.php b/build/blocks/venue/venue.asset.php index bcd79db9f..71db659a1 100644 --- a/build/blocks/venue/venue.asset.php +++ b/build/blocks/venue/venue.asset.php @@ -1 +1 @@ - array('react', 'wp-components', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-i18n'), 'version' => '099b5eebfcf36f51f05e'); + array('react', 'wp-components', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-i18n'), 'version' => '885c4fb76d9c54e63b0d'); diff --git a/build/blocks/venue/venue.css b/build/blocks/venue/venue.css new file mode 100644 index 000000000..38cd7d3af --- /dev/null +++ b/build/blocks/venue/venue.css @@ -0,0 +1 @@ +.leaflet-image-layer,.leaflet-layer,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-pane,.leaflet-pane>canvas,.leaflet-pane>svg,.leaflet-tile,.leaflet-tile-container,.leaflet-zoom-box{left:0;position:absolute;top:0}.leaflet-container{overflow:hidden}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::-moz-selection{background:transparent}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{height:1600px;-webkit-transform-origin:0 0;width:1600px}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-height:none!important;max-width:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer{max-height:none!important;max-width:none!important;padding:0;width:auto}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{box-sizing:border-box;height:0;width:0;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{height:1px;width:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{pointer-events:visiblePainted;pointer-events:auto;position:relative;z-index:800}.leaflet-bottom,.leaflet-top{pointer-events:none;position:absolute;z-index:1000}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{clear:both;float:left}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-pan-anim .leaflet-tile,.leaflet-zoom-anim .leaflet-tile{transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-control,.leaflet-popup-pane{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:grabbing}.leaflet-image-layer,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-image-layer.leaflet-interactive,.leaflet-marker-icon.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{background:hsla(0,0%,100%,.5);border:2px dotted #38f}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{border-radius:4px;box-shadow:0 1px 5px rgba(0,0,0,.65)}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;color:#000;display:block;height:26px;line-height:26px;text-align:center;text-decoration:none;width:26px}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:focus,.leaflet-bar a:hover{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom:none;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.leaflet-bar a.leaflet-disabled{background-color:#f4f4f4;color:#bbb;cursor:default}.leaflet-touch .leaflet-bar a{height:30px;line-height:30px;width:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{background:#fff;border-radius:5px;box-shadow:0 1px 5px rgba(0,0,0,.4)}.leaflet-control-layers-toggle{background-image:url(../../images/layers.png);height:36px;width:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(../../images/layers-2x.png);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{height:44px;width:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{background:#fff;color:#333;padding:6px 10px 6px 6px}.leaflet-control-layers-scrollbar{overflow-x:hidden;overflow-y:scroll;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{border-top:1px solid #ddd;height:0;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(../../images/marker-icon.png)}.leaflet-container .leaflet-control-attribution{background:#fff;background:hsla(0,0%,100%,.8);margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{color:#333;line-height:1.4;padding:0 5px}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:focus,.leaflet-control-attribution a:hover{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;height:.6669em;vertical-align:baseline!important;width:1em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{background:hsla(0,0%,100%,.8);border:2px solid #777;border-top:none;box-sizing:border-box;line-height:1.1;padding:2px 5px 1px;text-shadow:1px 1px #fff;white-space:nowrap}.leaflet-control-scale-line:not(:first-child){border-bottom:none;border-top:2px solid #777;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-bar,.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers{box-shadow:none}.leaflet-touch .leaflet-bar,.leaflet-touch .leaflet-control-layers{background-clip:padding-box;border:2px solid rgba(0,0,0,.2)}.leaflet-popup{margin-bottom:20px;position:absolute;text-align:center}.leaflet-popup-content-wrapper{border-radius:12px;padding:1px;text-align:left}.leaflet-popup-content{font-size:13px;font-size:1.08333em;line-height:1.3;margin:13px 24px 13px 20px;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{height:20px;left:50%;margin-left:-20px;margin-top:-1px;overflow:hidden;pointer-events:none;position:absolute;width:40px}.leaflet-popup-tip{height:17px;margin:-10px auto 0;padding:1px;pointer-events:auto;transform:rotate(45deg);width:17px}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;box-shadow:0 3px 14px rgba(0,0,0,.4);color:#333}.leaflet-container a.leaflet-popup-close-button{background:transparent;border:none;color:#757575;font:16px/24px Tahoma,Verdana,sans-serif;height:24px;position:absolute;right:0;text-align:center;text-decoration:none;top:0;width:24px}.leaflet-container a.leaflet-popup-close-button:focus,.leaflet-container a.leaflet-popup-close-button:hover{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678,M12=0.70710678,M21=-0.70710678,M22=0.70710678);margin:0 auto;width:24px}.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{background-color:#fff;border:1px solid #fff;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,.4);color:#222;padding:6px;pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before,.leaflet-tooltip-top:before{background:transparent;border:6px solid transparent;content:"";pointer-events:none;position:absolute}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{border-top-color:#fff;bottom:0;margin-bottom:-12px}.leaflet-tooltip-bottom:before{border-bottom-color:#fff;margin-left:-6px;margin-top:-12px;top:0}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{margin-top:-6px;top:50%}.leaflet-tooltip-left:before{border-left-color:#fff;margin-right:-12px;right:0}.leaflet-tooltip-right:before{border-right-color:#fff;left:0;margin-left:-12px}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}} diff --git a/build/blocks/venue/venue.js b/build/blocks/venue/venue.js index d8048af73..084e4fb1f 100644 --- a/build/blocks/venue/venue.js +++ b/build/blocks/venue/venue.js @@ -1 +1,2 @@ -(()=>{var e={5413:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},1141:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(5413),l=n(6957);o(n(6957),t);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},s=function(){function e(e,t,n){this.dom=[],this.root=new l.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=a),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:a,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new l.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?i.ElementType.Tag:void 0,r=new l.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new l.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new l.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new l.Text(""),t=new l.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new l.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=s,t.default=s},6957:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(a);t.NodeWithChildren=f;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=l.ElementType.CDATA,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(f);t.CDATA=p;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=l.ElementType.Root,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(f);t.Document=m;var h=function(e){function t(t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o="script"===t?l.ElementType.Script:"style"===t?l.ElementType.Style:l.ElementType.Tag);var i=e.call(this,r)||this;return i.name=t,i.attribs=n,i.type=o,i}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(f);function y(e){return(0,l.isTag)(e)}function v(e){return e.type===l.ElementType.CDATA}function g(e){return e.type===l.ElementType.Text}function b(e){return e.type===l.ElementType.Comment}function w(e){return e.type===l.ElementType.Directive}function x(e){return e.type===l.ElementType.Root}function E(e,t){var n;if(void 0===t&&(t=!1),g(e))n=new c(e.data);else if(b(e))n=new u(e.data);else if(y(e)){var r=t?_(e.children):[],o=new h(e.name,i({},e.attribs),r);r.forEach((function(e){return e.parent=o})),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=o}else if(v(e)){r=t?_(e.children):[];var l=new p(r);r.forEach((function(e){return e.parent=l})),n=l}else if(x(e)){r=t?_(e.children):[];var a=new m(r);r.forEach((function(e){return e.parent=a})),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),n=a}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var s=new d(e.name,e.data);null!=e["x-name"]&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),n=s}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function _(e){for(var t=e.map((function(e){return E(e,!0)})),n=1;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce((function(e,t){return e[t.toLowerCase()]=t,e}),{})},5496:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="html",r="head",o="body",i=/<([a-zA-Z]+[0-9]?)/,l=//i,a=//i,s=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},c=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},u="object"==typeof window&&window.DOMParser;if("function"==typeof u){var d=new u;s=c=function(e,t){return t&&(e="<".concat(t,">").concat(e,"")),d.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var f=document.implementation.createHTMLDocument();s=function(e,t){if(t){var n=f.documentElement.querySelector(t);return n&&(n.innerHTML=e),f}return f.documentElement.innerHTML=e,f}}var p,m="object"==typeof document&&document.createElement("template");m&&m.content&&(p=function(e){return m.innerHTML=e,m.content.childNodes}),t.default=function(e){var t,u,d=e.match(i),f=d&&d[1]?d[1].toLowerCase():"";switch(f){case n:var m=c(e);return l.test(e)||null===(t=null==(y=m.querySelector(r))?void 0:y.parentNode)||void 0===t||t.removeChild(y),a.test(e)||null===(u=null==(y=m.querySelector(o))?void 0:y.parentNode)||void 0===u||u.removeChild(y),m.querySelectorAll(n);case r:case o:var h=s(e).querySelectorAll(f);return a.test(e)&&l.test(e)?h[0].parentNode.childNodes:h;default:return p?p(e):(y=s(e,o).querySelector(o)).childNodes;var y}}},2471:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(5496)),i=n(7731),l=/<(![a-zA-Z\s]+)>/;t.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(l),n=t?t[1]:void 0;return(0,i.formatDOM)((0,o.default)(e),null,n)}},7731:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDOM=t.formatAttributes=void 0;var r=n(1141),o=n(5270);function i(e){for(var t={},n=0,r=e.length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4210),o=n(4958),i=["checked","value"],l=["input","select","textarea"],a={reset:!0,submit:!0};function s(e){return r.possibleStandardNames[e]}t.default=function(e,t){void 0===e&&(e={});var n={},c=Boolean(e.type&&a[e.type]);for(var u in e){var d=e[u];if((0,r.isCustomAttribute)(u))n[u]=d;else{var f=u.toLowerCase(),p=s(f);if(p){var m=(0,r.getPropertyInfo)(p);switch(i.includes(p)&&l.includes(t)&&!c&&(p=s("default"+f)),n[p]=d,m&&m.type){case r.BOOLEAN:n[p]=!0;break;case r.OVERLOADED_BOOLEAN:""===d&&(n[p]=!0)}}else o.PRESERVE_CUSTOM_ATTRIBUTES&&(n[u]=d)}}return(0,o.setStyleProp)(e.style,n),n}},308:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(1609),i=r(n(840)),l=n(4958),a={cloneElement:o.cloneElement,createElement:o.createElement,isValidElement:o.isValidElement};function s(e){return l.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,l.isCustomComponent)(e.name,e.attribs)}t.default=function e(t,n){void 0===n&&(n={});for(var r=[],o="function"==typeof n.replace,c=n.transform||l.returnFirstArg,u=n.library||a,d=u.cloneElement,f=u.createElement,p=u.isValidElement,m=t.length,h=0;h1&&(v=d(v,{key:v.key||h})),r.push(c(v,y,h));continue}}if("text"!==y.type){var g=y,b={};s(g)?((0,l.setStyleProp)(g.attribs.style,g.attribs),b=g.attribs):g.attribs&&(b=(0,i.default)(g.attribs,g.name));var w=void 0;switch(y.type){case"script":case"style":y.children[0]&&(b.dangerouslySetInnerHTML={__html:y.children[0].data});break;case"tag":"textarea"===y.name&&y.children[0]?b.defaultValue=y.children[0].data:y.children&&y.children.length&&(w=e(y.children,n));break;default:continue}m>1&&(b.key=h),r.push(c(f(y.name,b,w),y,h))}else{var x=!y.data.trim().length;if(x&&y.parent&&!(0,l.canTextBeChildOfNode)(y.parent))continue;if(n.trim&&x)continue;r.push(c(y.data,y,h))}}return 1===r.length?r[0]:r}},442:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0;var o=r(n(2471));t.htmlToDOM=o.default;var i=r(n(840));t.attributesToProps=i.default;var l=r(n(308));t.domToReact=l.default;var a=n(1141);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return a.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return a.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return a.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return a.Text}});var s={lowerCaseAttributeNames:!1};t.default=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return e?(0,l.default)((0,o.default)(e,(null==t?void 0:t.htmlparser2)||s),t):[]}},4958:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=t.setStyleProp=t.isCustomComponent=void 0;var o=n(1609),i=r(n(5229)),l=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);t.isCustomComponent=function(e,t){return e.includes("-")?!l.has(e):Boolean(t&&"string"==typeof t.is)};var a={reactCompat:!0};t.setStyleProp=function(e,t){if("string"==typeof e)if(e.trim())try{t.style=(0,i.default)(e,a)}catch(e){t.style={}}else t.style={}},t.PRESERVE_CUSTOM_ATTRIBUTES=Number(o.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)},t.returnFirstArg=function(e){return e}},9788:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(s,c):c}e.exports=function(e,s){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];s=s||{};var d=1,f=1;function p(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function m(){var e={line:d,column:f};return function(t){return t.position=new h(e),b(),t}}function h(e){this.start=e,this.end={line:d,column:f},this.source=s.source}h.prototype.content=e;var y=[];function v(t){var n=new Error(s.source+":"+d+":"+f+": "+t);if(n.reason=t,n.filename=s.source,n.line=d,n.column=f,n.source=e,!s.silent)throw n;y.push(n)}function g(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function b(){g(r)}function w(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=m();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return v("End of comment missing");var r=e.slice(2,n-2);return f+=2,p(r),e=e.slice(n),f+=2,t({type:"comment",comment:r})}}function E(){var e=m(),n=g(o);if(n){if(x(),!g(i))return v("property missing ':'");var r=g(l),s=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return g(a),s}}return b(),function(){var e,t=[];for(w(t);e=E();)!1!==e&&(t.push(e),w(t));return t}()}},4210:(e,t,n)=>{"use strict";function r(e,t,n,r,o,i,l){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}const o={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((e=>{o[e]=new r(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((([e,t])=>{o[e]=new r(e,1,!1,t,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((e=>{o[e]=new r(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((e=>{o[e]=new r(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((e=>{o[e]=new r(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((e=>{o[e]=new r(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((e=>{o[e]=new r(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((e=>{o[e]=new r(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((e=>{o[e]=new r(e,5,!1,e.toLowerCase(),null,!1,!1)}));const i=/[\-\:]([a-z])/g,l=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((e=>{const t=e.replace(i,l);o[t]=new r(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((e=>{const t=e.replace(i,l);o[t]=new r(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((e=>{const t=e.replace(i,l);o[t]=new r(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((e=>{o[e]=new r(e,1,!1,e.toLowerCase(),null,!1,!1)})),o.xlinkHref=new r("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((e=>{o[e]=new r(e,1,!1,e.toLowerCase(),null,!0,!0)}));const{CAMELCASE:a,SAME:s,possibleStandardNames:c}=n(6811),u=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),d=Object.keys(c).reduce(((e,t)=>{const n=c[t];return n===s?e[t]=t:n===a?e[t.toLowerCase()]=t:e[t]=n,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return o.hasOwnProperty(e)?o[e]:null},t.isCustomAttribute=u,t.possibleStandardNames=d},6811:(e,t)=>{t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},5229:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(1133)),o=n(8917);function i(e,t){var n={};return e&&"string"==typeof e?((0,r.default)(e,(function(e,r){e&&r&&(n[(0,o.camelCase)(e,t)]=r)})),n):n}i.default=i,e.exports=i},8917:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,r=/-([a-z])/g,o=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,a=function(e,t){return t.toUpperCase()},s=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||o.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(l,s):e.replace(i,s)).replace(r,a))}},1133:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(9788));t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,o.default)(e),i="function"==typeof t;return r.forEach((function(e){if("declaration"===e.type){var r=e.property,o=e.value;i?t(r,o,e):o&&((n=n||{})[r]=o)}})),n}},1609:e=>{"use strict";e.exports=window.React},6942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(1609);const t=window.wp.domReady;var r=n.n(t);const o=window.wp.element,i=window.wp.data,l=t=>{const n=(0,i.select)("core")?.canUser("create","posts"),r=Boolean((0,i.select)("core/edit-post")),{zoom:o,type:l,className:a}=t;let{location:s,height:c}=t;if(c||(c=300),!n||r||s||(s="660 4th Street #119 San Francisco CA 94107, USA"),!s)return(0,e.createElement)(e.Fragment,null);const u={border:0,height:c,width:"100%"},d="https://maps.google.com/maps?"+new URLSearchParams({q:s,z:o||10,t:l||"m",output:"embed"}).toString();return(0,e.createElement)("iframe",{src:d,style:u,className:a,title:s})},a=Math.min,s=Math.max,c=Math.round,u=Math.floor,d=e=>({x:e,y:e}),f={left:"right",right:"left",bottom:"top",top:"bottom"},p={start:"end",end:"start"};function m(e,t,n){return s(e,a(t,n))}function h(e,t){return"function"==typeof e?e(t):e}function y(e){return e.split("-")[0]}function v(e){return e.split("-")[1]}function g(e){return"x"===e?"y":"x"}function b(e){return"y"===e?"height":"width"}function w(e){return["top","bottom"].includes(y(e))?"y":"x"}function x(e){return g(w(e))}function E(e){return e.replace(/start|end/g,(e=>p[e]))}function _(e){return e.replace(/left|right|bottom|top/g,(e=>f[e]))}function S(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function T(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function k(e,t,n){let{reference:r,floating:o}=e;const i=w(t),l=x(t),a=b(l),s=y(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[a]/2-o[a]/2;let p;switch(s){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(v(t)){case"start":p[l]-=f*(n&&c?-1:1);break;case"end":p[l]+=f*(n&&c?-1:1)}return p}async function A(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:l,elements:a,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=h(t,e),m=S(p),y=a[f?"floating"===d?"reference":"floating":d],v=T(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(y)))||n?y:y.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:s})),g="floating"===d?{...l.floating,x:r,y:o}:l.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),w=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},x=T(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:b,strategy:s}):g);return{top:(v.top-x.top+m.top)/w.y,bottom:(x.bottom-v.bottom+m.bottom)/w.y,left:(v.left-x.left+m.left)/w.x,right:(x.right-v.right+m.right)/w.x}}const O=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:l,middlewareData:a}=t,s=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),l=y(n),a=v(n),s="y"===w(n),c=["left","top"].includes(l)?-1:1,u=i&&s?-1:1,d=h(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&"number"==typeof m&&(p="end"===a?-1*m:m),s?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:l}}}}};function C(e){return L(e)?(e.nodeName||"").toLowerCase():"#document"}function R(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function N(e){var t;return null==(t=(L(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function L(e){return e instanceof Node||e instanceof R(e).Node}function P(e){return e instanceof Element||e instanceof R(e).Element}function I(e){return e instanceof HTMLElement||e instanceof R(e).HTMLElement}function D(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof R(e).ShadowRoot)}function M(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=z(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function F(e){return["table","td","th"].includes(C(e))}function j(e){const t=H(),n=z(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function H(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function B(e){return["html","body","#document"].includes(C(e))}function z(e){return R(e).getComputedStyle(e)}function V(e){return P(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function W(e){if("html"===C(e))return e;const t=e.assignedSlot||e.parentNode||D(e)&&e.host||N(e);return D(t)?t.host:t}function q(e){const t=W(e);return B(t)?e.ownerDocument?e.ownerDocument.body:e.body:I(t)&&M(t)?t:q(t)}function $(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=q(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=R(o);return i?t.concat(l,l.visualViewport||[],M(o)?o:[],l.frameElement&&n?$(l.frameElement):[]):t.concat(o,$(o,[],n))}function U(e){const t=z(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=I(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=c(n)!==i||c(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function X(e){return P(e)?e:e.contextElement}function G(e){const t=X(e);if(!I(t))return d(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=U(t);let l=(i?c(n.width):n.width)/r,a=(i?c(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}const K=d(0);function Y(e){const t=R(e);return H()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:K}function Z(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=X(e);let l=d(1);t&&(r?P(r)&&(l=G(r)):l=G(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==R(e))&&t}(i,n,r)?Y(i):d(0);let s=(o.left+a.x)/l.x,c=(o.top+a.y)/l.y,u=o.width/l.x,f=o.height/l.y;if(i){const e=R(i),t=r&&P(r)?R(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=G(o),t=o.getBoundingClientRect(),r=z(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,f*=e.y,s+=i,c+=l,n=R(o),o=n.frameElement}}return T({width:u,height:f,x:s,y:c})}const J=[":popover-open",":modal"];function Q(e){return J.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function ee(e){return Z(N(e)).left+V(e).scrollLeft}function te(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=R(e),r=N(e),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;const e=H();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,s=o.offsetTop)}return{width:i,height:l,x:a,y:s}}(e,n);else if("document"===t)r=function(e){const t=N(e),n=V(e),r=e.ownerDocument.body,o=s(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=s(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+ee(e);const a=-n.scrollTop;return"rtl"===z(r).direction&&(l+=s(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}(N(e));else if(P(t))r=function(e,t){const n=Z(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=I(e)?G(e):d(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Y(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return T(r)}function ne(e,t){const n=W(e);return!(n===t||!P(n)||B(n))&&("fixed"===z(n).position||ne(n,t))}function re(e,t,n){const r=I(t),o=N(t),i="fixed"===n,l=Z(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const s=d(0);if(r||!r&&!i)if(("body"!==C(t)||M(o))&&(a=V(t)),r){const e=Z(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=ee(o));return{x:l.left+a.scrollLeft-s.x,y:l.top+a.scrollTop-s.y,width:l.width,height:l.height}}function oe(e,t){return I(e)&&"fixed"!==z(e).position?t?t(e):e.offsetParent:null}function ie(e,t){const n=R(e);if(!I(e)||Q(e))return n;let r=oe(e,t);for(;r&&F(r)&&"static"===z(r).position;)r=oe(r,t);return r&&("html"===C(r)||"body"===C(r)&&"static"===z(r).position&&!j(r))?n:r||function(e){let t=W(e);for(;I(t)&&!B(t);){if(j(t))return t;t=W(t)}return null}(e)||n}const le={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,l=N(r),a=!!t&&Q(t.floating);if(r===l||a&&i)return n;let s={scrollLeft:0,scrollTop:0},c=d(1);const u=d(0),f=I(r);if((f||!f&&!i)&&(("body"!==C(r)||M(l))&&(s=V(r)),I(r))){const e=Z(r);c=G(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x,y:n.y*c.y-s.scrollTop*c.y+u.y}},getDocumentElement:N,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=$(e,[],!1).filter((e=>P(e)&&"body"!==C(e))),o=null;const i="fixed"===z(e).position;let l=i?W(e):e;for(;P(l)&&!B(l);){const t=z(l),n=j(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||M(l)&&!n&&ne(e,l))?r=r.filter((e=>e!==l)):o=t,l=W(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=i[0],c=i.reduce(((e,n)=>{const r=te(t,n,o);return e.top=s(r.top,e.top),e.right=a(r.right,e.right),e.bottom=a(r.bottom,e.bottom),e.left=s(r.left,e.left),e}),te(t,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:ie,getElementRects:async function(e){const t=this.getOffsetParent||ie,n=this.getDimensions;return{reference:re(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=U(e);return{width:t,height:n}},getScale:G,isElement:P,isRTL:function(e){return"rtl"===z(e).direction}};const ae=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=h(e,t),c={x:n,y:r},u=await A(t,s),d=w(y(o)),f=g(d);let p=c[f],v=c[d];if(i){const e="y"===f?"bottom":"right";p=m(p+u["y"===f?"top":"left"],p,p-u[e])}if(l){const e="y"===d?"bottom":"right";v=m(v+u["y"===d?"top":"left"],v,v-u[e])}const b=a.fn({...t,[f]:p,[d]:v});return{...b,data:{x:b.x-n,y:b.y-r}}}}},se=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:l,initialPlacement:a,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...w}=h(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const S=y(o),T=y(a)===a,k=await(null==s.isRTL?void 0:s.isRTL(c.floating)),O=f||(T||!g?[_(a)]:function(e){const t=_(e);return[E(e),t,E(t)]}(a));f||"none"===m||O.push(...function(e,t,n,r){const o=v(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:l;default:return[]}}(y(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(E)))),i}(a,g,m,k));const C=[a,...O],R=await A(t,w),N=[];let L=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&N.push(R[S]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=v(e),o=x(e),i=b(o);let l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=_(l)),[l,_(l)]}(o,l,k);N.push(R[e[0]],R[e[1]])}if(L=[...L,{placement:o,overflows:N}],!N.every((e=>e<=0))){var P,I;const e=((null==(P=i.flip)?void 0:P.index)||0)+1,t=C[e];if(t)return{data:{index:e,overflows:L},reset:{placement:t}};let n=null==(I=L.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:I.placement;if(!n)switch(p){case"bestFit":{var D;const e=null==(D=L.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:D[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},ce=(e,t,n)=>{const r=new Map,o={platform:le,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=i.filter(Boolean),s=await(null==l.isRTL?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=k(c,r,s),f=r,p={},m=0;for(let n=0;n{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(null===t)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const c=l;return n?(c.push({name:"arrow",options:u={element:n,padding:5},async fn(e){const{x:t,y:n,placement:r,rects:o,platform:i,elements:l,middlewareData:s}=e,{element:c,padding:d=0}=h(u,e)||{};if(null==c)return{};const f=S(d),p={x:t,y:n},y=x(r),g=b(y),w=await i.getDimensions(c),E="y"===y,_=E?"top":"left",T=E?"bottom":"right",k=E?"clientHeight":"clientWidth",A=o.reference[g]+o.reference[y]-p[y]-o.floating[g],O=p[y]-o.reference[y],C=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let R=C?C[k]:0;R&&await(null==i.isElement?void 0:i.isElement(C))||(R=l.floating[k]||o.floating[g]);const N=A/2-O/2,L=R/2-w[g]/2-1,P=a(f[_],L),I=a(f[T],L),D=P,M=R-w[g]-I,F=R/2-w[g]/2+N,j=m(D,F,M),H=!s.arrow&&null!=v(r)&&F!==j&&o.reference[g]/2-(F{var o,i;const l={left:`${e}px`,top:`${t}px`,border:s},{x:a,y:c}=null!==(o=r.arrow)&&void 0!==o?o:{x:0,y:0},u=null!==(i={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]])&&void 0!==i?i:"bottom",d=s&&{borderBottom:s,borderRight:s};let f=0;if(s){const e=`${s}`.match(/(\d+)px/);f=(null==e?void 0:e[1])?Number(e[1]):1}return{tooltipStyles:l,tooltipArrowStyles:{left:null!=a?`${a}px`:"",top:null!=c?`${c}px`:"",right:"",bottom:"",...d,[u]:`-${4+f}px`},place:n}}))):ce(e,t,{placement:"bottom",strategy:i,middleware:c}).then((({x:e,y:t,placement:n})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{},place:n})));var u},me=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),he=(e,t,n)=>{let r=null;const o=function(...o){const i=()=>{r=null,n||e.apply(this,o)};n&&!r&&(e.apply(this,o),r=setTimeout(i,t)),n||(r&&clearTimeout(r),r=setTimeout(i,t))};return o.cancel=()=>{r&&(clearTimeout(r),r=null)},o},ye=e=>null!==e&&!Array.isArray(e)&&"object"==typeof e,ve=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every(((e,n)=>ve(e,t[n])));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!ye(e)||!ye(t))return e===t;const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((n=>ve(e[n],t[n])))},ge=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some((e=>{const n=t.getPropertyValue(e);return"auto"===n||"scroll"===n}))},be=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(ge(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},we="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,xe={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},Ee=(0,e.createContext)({getTooltipData:()=>xe});function _e(t="DEFAULT_TOOLTIP_ID"){return(0,e.useContext)(Ee).getTooltipData(t)}var Se={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},Te={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const ke=({forwardRef:t,id:n,className:r,classNameArrow:o,variant:i="dark",anchorId:l,anchorSelect:c,place:d="top",offset:f=10,events:p=["hover"],openOnClick:m=!1,positionStrategy:h="absolute",middlewares:y,wrapper:v,delayShow:g=0,delayHide:b=0,float:w=!1,hidden:x=!1,noArrow:E=!1,clickable:_=!1,closeOnEsc:S=!1,closeOnScroll:T=!1,closeOnResize:k=!1,openEvents:A,closeEvents:O,globalCloseEvents:C,imperativeModeOnly:R,style:L,position:P,afterShow:I,afterHide:D,content:M,contentWrapperRef:F,isOpen:j,defaultIsOpen:H=!1,setIsOpen:B,activeAnchor:z,setActiveAnchor:V,border:W,opacity:q,arrowColor:U,role:G="tooltip"})=>{var K;const Y=(0,e.useRef)(null),J=(0,e.useRef)(null),Q=(0,e.useRef)(null),ee=(0,e.useRef)(null),te=(0,e.useRef)(null),[ne,re]=(0,e.useState)({tooltipStyles:{},tooltipArrowStyles:{},place:d}),[oe,ie]=(0,e.useState)(!1),[le,ae]=(0,e.useState)(!1),[se,ce]=(0,e.useState)(null),de=(0,e.useRef)(!1),fe=(0,e.useRef)(null),{anchorRefs:me,setActiveAnchor:ye}=_e(n),ge=(0,e.useRef)(!1),[xe,Ee]=(0,e.useState)([]),ke=(0,e.useRef)(!1),Ae=m||p.includes("click"),Oe=Ae||(null==A?void 0:A.click)||(null==A?void 0:A.dblclick)||(null==A?void 0:A.mousedown),Ce=A?{...A}:{mouseenter:!0,focus:!0,click:!1,dblclick:!1,mousedown:!1};!A&&Ae&&Object.assign(Ce,{mouseenter:!1,focus:!1,click:!0});const Re=O?{...O}:{mouseleave:!0,blur:!0,click:!1,dblclick:!1,mouseup:!1};!O&&Ae&&Object.assign(Re,{mouseleave:!1,blur:!1});const Ne=C?{...C}:{escape:S||!1,scroll:T||!1,resize:k||!1,clickOutsideAnchor:Oe||!1};R&&(Object.assign(Ce,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Re,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(Ne,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),we((()=>(ke.current=!0,()=>{ke.current=!1})),[]);const Le=e=>{ke.current&&(e&&ae(!0),setTimeout((()=>{ke.current&&(null==B||B(e),void 0===j&&ie(e))}),10))};(0,e.useEffect)((()=>{if(void 0===j)return()=>null;j&&ae(!0);const e=setTimeout((()=>{ie(j)}),10);return()=>{clearTimeout(e)}}),[j]),(0,e.useEffect)((()=>{if(oe!==de.current)if(te.current&&clearTimeout(te.current),de.current=oe,oe)null==I||I();else{const e=(e=>{const t=getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay").match(/^([\d.]+)(ms|s)$/);if(!t)return 0;const[,n,r]=t;return Number(n)*("ms"===r?1:1e3)})();te.current=setTimeout((()=>{ae(!1),ce(null),null==D||D()}),e+25)}}),[oe]);const Pe=e=>{re((t=>ve(t,e)?t:e))},Ie=(e=g)=>{Q.current&&clearTimeout(Q.current),le?Le(!0):Q.current=setTimeout((()=>{Le(!0)}),e)},De=(e=b)=>{ee.current&&clearTimeout(ee.current),ee.current=setTimeout((()=>{ge.current||Le(!1)}),e)},Me=e=>{var t;if(!e)return;const n=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;if(!(null==n?void 0:n.isConnected))return V(null),void ye({current:null});g?Ie():Le(!0),V(n),ye({current:n}),ee.current&&clearTimeout(ee.current)},Fe=()=>{_?De(b||100):b?De():Le(!1),Q.current&&clearTimeout(Q.current)},je=({x:e,y:t})=>{var n;const r={getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})};pe({place:null!==(n=null==se?void 0:se.place)&&void 0!==n?n:d,offset:f,elementReference:r,tooltipReference:Y.current,tooltipArrowReference:J.current,strategy:h,middlewares:y,border:W}).then((e=>{Pe(e)}))},He=e=>{if(!e)return;const t=e,n={x:t.clientX,y:t.clientY};je(n),fe.current=n},Be=e=>{var t;if(!oe)return;const n=e.target;n.isConnected&&((null===(t=Y.current)||void 0===t?void 0:t.contains(n))||[document.querySelector(`[id='${l}']`),...xe].some((e=>null==e?void 0:e.contains(n)))||(Le(!1),Q.current&&clearTimeout(Q.current)))},ze=he(Me,50,!0),Ve=he(Fe,50,!0),We=e=>{Ve.cancel(),ze(e)},qe=()=>{ze.cancel(),Ve()},$e=(0,e.useCallback)((()=>{var e,t;const n=null!==(e=null==se?void 0:se.position)&&void 0!==e?e:P;n?je(n):w?fe.current&&je(fe.current):(null==z?void 0:z.isConnected)&&pe({place:null!==(t=null==se?void 0:se.place)&&void 0!==t?t:d,offset:f,elementReference:z,tooltipReference:Y.current,tooltipArrowReference:J.current,strategy:h,middlewares:y,border:W}).then((e=>{ke.current&&Pe(e)}))}),[oe,z,M,L,d,null==se?void 0:se.place,f,h,P,null==se?void 0:se.position,w]);(0,e.useEffect)((()=>{var e,t;const n=new Set(me);xe.forEach((e=>{n.add({current:e})}));const r=document.querySelector(`[id='${l}']`);r&&n.add({current:r});const o=()=>{Le(!1)},i=be(z),c=be(Y.current);Ne.scroll&&(window.addEventListener("scroll",o),null==i||i.addEventListener("scroll",o),null==c||c.addEventListener("scroll",o));let d=null;Ne.resize?window.addEventListener("resize",o):z&&Y.current&&(d=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:d=!1}=r,f=X(e),p=o||i?[...f?$(f):[],...$(t)]:[];p.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const m=f&&c?function(e,t){let n,r=null;const o=N(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function l(c,d){void 0===c&&(c=!1),void 0===d&&(d=1),i();const{left:f,top:p,width:m,height:h}=e.getBoundingClientRect();if(c||t(),!m||!h)return;const y={rootMargin:-u(p)+"px "+-u(o.clientWidth-(f+m))+"px "+-u(o.clientHeight-(p+h))+"px "+-u(f)+"px",threshold:s(0,a(1,d))||1};let v=!0;function g(e){const t=e[0].intersectionRatio;if(t!==d){if(!v)return l();t?l(!1,t):n=setTimeout((()=>{l(!1,1e-7)}),100)}v=!1}try{r=new IntersectionObserver(g,{...y,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,y)}r.observe(e)}(!0),i}(f,n):null;let h,y=-1,v=null;l&&(v=new ResizeObserver((e=>{let[r]=e;r&&r.target===f&&v&&(v.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame((()=>{var e;null==(e=v)||e.observe(t)}))),n()})),f&&!d&&v.observe(f),v.observe(t));let g=d?Z(e):null;return d&&function t(){const r=Z(e);!g||r.x===g.x&&r.y===g.y&&r.width===g.width&&r.height===g.height||n(),g=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==m||m(),null==(e=v)||e.disconnect(),v=null,d&&cancelAnimationFrame(h)}}(z,Y.current,$e,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const f=e=>{"Escape"===e.key&&Le(!1)};Ne.escape&&window.addEventListener("keydown",f),Ne.clickOutsideAnchor&&window.addEventListener("click",Be);const p=[],m=e=>{oe&&(null==e?void 0:e.target)===z||Me(e)},h=e=>{oe&&(null==e?void 0:e.target)===z&&Fe()},y=["mouseenter","mouseleave","focus","blur"],v=["click","dblclick","mousedown","mouseup"];Object.entries(Ce).forEach((([e,t])=>{t&&(y.includes(e)?p.push({event:e,listener:We}):v.includes(e)&&p.push({event:e,listener:m}))})),Object.entries(Re).forEach((([e,t])=>{t&&(y.includes(e)?p.push({event:e,listener:qe}):v.includes(e)&&p.push({event:e,listener:h}))})),w&&p.push({event:"pointermove",listener:He});const g=()=>{ge.current=!0},b=()=>{ge.current=!1,Fe()};return _&&!Oe&&(null===(e=Y.current)||void 0===e||e.addEventListener("mouseenter",g),null===(t=Y.current)||void 0===t||t.addEventListener("mouseleave",b)),p.forEach((({event:e,listener:t})=>{n.forEach((n=>{var r;null===(r=n.current)||void 0===r||r.addEventListener(e,t)}))})),()=>{var e,t;Ne.scroll&&(window.removeEventListener("scroll",o),null==i||i.removeEventListener("scroll",o),null==c||c.removeEventListener("scroll",o)),Ne.resize?window.removeEventListener("resize",o):null==d||d(),Ne.clickOutsideAnchor&&window.removeEventListener("click",Be),Ne.escape&&window.removeEventListener("keydown",f),_&&!Oe&&(null===(e=Y.current)||void 0===e||e.removeEventListener("mouseenter",g),null===(t=Y.current)||void 0===t||t.removeEventListener("mouseleave",b)),p.forEach((({event:e,listener:t})=>{n.forEach((n=>{var r;null===(r=n.current)||void 0===r||r.removeEventListener(e,t)}))}))}}),[z,$e,le,me,xe,A,O,C,Ae,g,b]),(0,e.useEffect)((()=>{var e,t;let r=null!==(t=null!==(e=null==se?void 0:se.anchorSelect)&&void 0!==e?e:c)&&void 0!==t?t:"";!r&&n&&(r=`[data-tooltip-id='${n}']`);const o=new MutationObserver((e=>{const t=[],o=[];e.forEach((e=>{if("attributes"===e.type&&"data-tooltip-id"===e.attributeName&&(e.target.getAttribute("data-tooltip-id")===n?t.push(e.target):e.oldValue===n&&o.push(e.target)),"childList"===e.type){if(z){const t=[...e.removedNodes].filter((e=>1===e.nodeType));if(r)try{o.push(...t.filter((e=>e.matches(r)))),o.push(...t.flatMap((e=>[...e.querySelectorAll(r)])))}catch(e){}t.some((e=>{var t;return!!(null===(t=null==e?void 0:e.contains)||void 0===t?void 0:t.call(e,z))&&(ae(!1),Le(!1),V(null),Q.current&&clearTimeout(Q.current),ee.current&&clearTimeout(ee.current),!0)}))}if(r)try{const n=[...e.addedNodes].filter((e=>1===e.nodeType));t.push(...n.filter((e=>e.matches(r)))),t.push(...n.flatMap((e=>[...e.querySelectorAll(r)])))}catch(e){}}})),(t.length||o.length)&&Ee((e=>[...e.filter((e=>!o.includes(e))),...t]))}));return o.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{o.disconnect()}}),[n,c,null==se?void 0:se.anchorSelect,z]),(0,e.useEffect)((()=>{$e()}),[$e]),(0,e.useEffect)((()=>{if(!(null==F?void 0:F.current))return()=>null;const e=new ResizeObserver((()=>{setTimeout((()=>$e()))}));return e.observe(F.current),()=>{e.disconnect()}}),[M,null==F?void 0:F.current]),(0,e.useEffect)((()=>{var e;const t=document.querySelector(`[id='${l}']`),n=[...xe,t];z&&n.includes(z)||V(null!==(e=xe[0])&&void 0!==e?e:t)}),[l,xe,z]),(0,e.useEffect)((()=>(H&&Le(!0),()=>{Q.current&&clearTimeout(Q.current),ee.current&&clearTimeout(ee.current)})),[]),(0,e.useEffect)((()=>{var e;let t=null!==(e=null==se?void 0:se.anchorSelect)&&void 0!==e?e:c;if(!t&&n&&(t=`[data-tooltip-id='${n}']`),t)try{const e=Array.from(document.querySelectorAll(t));Ee(e)}catch(e){Ee([])}}),[n,c,null==se?void 0:se.anchorSelect]),(0,e.useEffect)((()=>{Q.current&&(clearTimeout(Q.current),Ie(g))}),[g]);const Ue=null!==(K=null==se?void 0:se.content)&&void 0!==K?K:M,Xe=oe&&Object.keys(ne.tooltipStyles).length>0;return(0,e.useImperativeHandle)(t,(()=>({open:e=>{if(null==e?void 0:e.anchorSelect)try{document.querySelector(e.anchorSelect)}catch(t){return void console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`)}ce(null!=e?e:null),(null==e?void 0:e.delay)?Ie(e.delay):Le(!0)},close:e=>{(null==e?void 0:e.delay)?De(e.delay):Le(!1)},activeAnchor:z,place:ne.place,isOpen:Boolean(le&&!x&&Ue&&Xe)}))),le&&!x&&Ue?e.createElement(v,{id:n,role:G,className:ue("react-tooltip",Se.tooltip,Te.tooltip,Te[i],r,`react-tooltip__place-${ne.place}`,Se[Xe?"show":"closing"],Xe?"react-tooltip__show":"react-tooltip__closing","fixed"===h&&Se.fixed,_&&Se.clickable),onTransitionEnd:e=>{te.current&&clearTimeout(te.current),oe||"opacity"!==e.propertyName||(ae(!1),ce(null),null==D||D())},style:{...L,...ne.tooltipStyles,opacity:void 0!==q&&Xe?q:void 0},ref:Y},Ue,e.createElement(v,{className:ue("react-tooltip-arrow",Se.arrow,Te.arrow,o,E&&Se.noArrow),style:{...ne.tooltipArrowStyles,background:U?`linear-gradient(to right bottom, transparent 50%, ${U} 50%)`:void 0},ref:J})):null},Ae=({content:t})=>e.createElement("span",{dangerouslySetInnerHTML:{__html:t}}),Oe=e.forwardRef((({id:t,anchorId:n,anchorSelect:r,content:o,html:i,render:l,className:a,classNameArrow:s,variant:c="dark",place:u="top",offset:d=10,wrapper:f="div",children:p=null,events:m=["hover"],openOnClick:h=!1,positionStrategy:y="absolute",middlewares:v,delayShow:g=0,delayHide:b=0,float:w=!1,hidden:x=!1,noArrow:E=!1,clickable:_=!1,closeOnEsc:S=!1,closeOnScroll:T=!1,closeOnResize:k=!1,openEvents:A,closeEvents:O,globalCloseEvents:C,imperativeModeOnly:R=!1,style:N,position:L,isOpen:P,defaultIsOpen:I=!1,disableStyleInjection:D=!1,border:M,opacity:F,arrowColor:j,setIsOpen:H,afterShow:B,afterHide:z,role:V="tooltip"},W)=>{const[q,$]=(0,e.useState)(o),[U,X]=(0,e.useState)(i),[G,K]=(0,e.useState)(u),[Y,Z]=(0,e.useState)(c),[J,Q]=(0,e.useState)(d),[ee,te]=(0,e.useState)(g),[ne,re]=(0,e.useState)(b),[oe,ie]=(0,e.useState)(w),[le,ae]=(0,e.useState)(x),[se,ce]=(0,e.useState)(f),[de,fe]=(0,e.useState)(m),[pe,he]=(0,e.useState)(y),[ye,ve]=(0,e.useState)(null),[ge,be]=(0,e.useState)(null),we=(0,e.useRef)(D),{anchorRefs:xe,activeAnchor:Ee}=_e(t),Se=e=>null==e?void 0:e.getAttributeNames().reduce(((t,n)=>{var r;return n.startsWith("data-tooltip-")&&(t[n.replace(/^data-tooltip-/,"")]=null!==(r=null==e?void 0:e.getAttribute(n))&&void 0!==r?r:null),t}),{}),Te=e=>{const t={place:e=>{var t;K(null!==(t=e)&&void 0!==t?t:u)},content:e=>{$(null!=e?e:o)},html:e=>{X(null!=e?e:i)},variant:e=>{var t;Z(null!==(t=e)&&void 0!==t?t:c)},offset:e=>{Q(null===e?d:Number(e))},wrapper:e=>{var t;ce(null!==(t=e)&&void 0!==t?t:f)},events:e=>{const t=null==e?void 0:e.split(" ");fe(null!=t?t:m)},"position-strategy":e=>{var t;he(null!==(t=e)&&void 0!==t?t:y)},"delay-show":e=>{te(null===e?g:Number(e))},"delay-hide":e=>{re(null===e?b:Number(e))},float:e=>{ie(null===e?w:"true"===e)},hidden:e=>{ae(null===e?x:"true"===e)},"class-name":e=>{ve(e)}};Object.values(t).forEach((e=>e(null))),Object.entries(e).forEach((([e,n])=>{var r;null===(r=t[e])||void 0===r||r.call(t,n)}))};(0,e.useEffect)((()=>{$(o)}),[o]),(0,e.useEffect)((()=>{X(i)}),[i]),(0,e.useEffect)((()=>{K(u)}),[u]),(0,e.useEffect)((()=>{Z(c)}),[c]),(0,e.useEffect)((()=>{Q(d)}),[d]),(0,e.useEffect)((()=>{te(g)}),[g]),(0,e.useEffect)((()=>{re(b)}),[b]),(0,e.useEffect)((()=>{ie(w)}),[w]),(0,e.useEffect)((()=>{ae(x)}),[x]),(0,e.useEffect)((()=>{he(y)}),[y]),(0,e.useEffect)((()=>{we.current!==D&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")}),[D]),(0,e.useEffect)((()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===D,disableBase:D}}))}),[]),(0,e.useEffect)((()=>{var e;const o=new Set(xe);let i=r;if(!i&&t&&(i=`[data-tooltip-id='${t}']`),i)try{document.querySelectorAll(i).forEach((e=>{o.add({current:e})}))}catch(e){console.warn(`[react-tooltip] "${i}" is not a valid CSS selector`)}const l=document.querySelector(`[id='${n}']`);if(l&&o.add({current:l}),!o.size)return()=>null;const a=null!==(e=null!=ge?ge:l)&&void 0!==e?e:Ee.current,s=new MutationObserver((e=>{e.forEach((e=>{var t;if(!a||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const n=Se(a);Te(n)}))})),c={attributes:!0,childList:!1,subtree:!1};if(a){const e=Se(a);Te(e),s.observe(a,c)}return()=>{s.disconnect()}}),[xe,Ee,ge,n,r]),(0,e.useEffect)((()=>{(null==N?void 0:N.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),M&&!me("border",`${M}`)&&console.warn(`[react-tooltip] "${M}" is not a valid \`border\`.`),(null==N?void 0:N.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),F&&!me("opacity",`${F}`)&&console.warn(`[react-tooltip] "${F}" is not a valid \`opacity\`.`)}),[]);let Oe=p;const Ce=(0,e.useRef)(null);if(l){const t=l({content:(null==ge?void 0:ge.getAttribute("data-tooltip-content"))||q||null,activeAnchor:ge});Oe=t?e.createElement("div",{ref:Ce,className:"react-tooltip-content-wrapper"},t):null}else q&&(Oe=q);U&&(Oe=e.createElement(Ae,{content:U}));const Re={forwardRef:W,id:t,anchorId:n,anchorSelect:r,className:ue(a,ye),classNameArrow:s,content:Oe,contentWrapperRef:Ce,place:G,variant:Y,offset:J,wrapper:se,events:de,openOnClick:h,positionStrategy:pe,middlewares:v,delayShow:ee,delayHide:ne,float:oe,hidden:le,noArrow:E,clickable:_,closeOnEsc:S,closeOnScroll:T,closeOnResize:k,openEvents:A,closeEvents:O,globalCloseEvents:C,imperativeModeOnly:R,style:N,position:L,isOpen:P,defaultIsOpen:I,border:M,opacity:F,arrowColor:j,setIsOpen:H,afterShow:B,afterHide:z,activeAnchor:ge,setActiveAnchor:e=>be(e),role:V};return e.createElement(ke,{...Re})}));"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",(e=>{e.detail.disableCore||fe({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||fe({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})}));const Ce=window.wp.i18n,Re=window.wp.components,Ne=({onlineEventLinkDefault:t=""})=>{const n=(0,Ce.__)("Online event","gatherpress"),[r,i]=(0,o.useState)(t);return((e,t="")=>{for(const[n,r]of Object.entries(e)){let e=n;t&&(e+="_"+String(t)),addEventListener(e,(e=>{r(e.detail)}),!1)}})({setOnlineEventLink:i},function(e){if("object"==typeof GatherPress)return"eventDetails.postId".split(".").reduce(((e,t)=>e&&e[t]),GatherPress)}()),(0,e.createElement)(Re.Flex,{justify:"normal",gap:"3"},(0,e.createElement)(Re.FlexItem,{display:"flex"},(0,e.createElement)(Re.Icon,{icon:"video-alt2"})),(0,e.createElement)(Re.FlexItem,null,!r&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{tabIndex:"0",className:"gatherpress-tooltip","data-tooltip-id":"gatherpress-online-event-tooltip","data-tooltip-content":(0,Ce.__)("Link available for attendees only.","gatherpress")},n),(0,e.createElement)(Oe,{id:"gatherpress-online-event-tooltip"})),r&&(0,e.createElement)("a",{href:r,rel:"noreferrer",target:"_blank"},n)))};var Le=n(442);const Pe=Le.default||Le,Ie=({name:t,fullAddress:n,phoneNumber:r,website:o})=>(0,e.createElement)(e.Fragment,null,(t||n)&&(0,e.createElement)(Re.Flex,{justify:"normal",align:"flex-start",gap:"4"},(0,e.createElement)(Re.FlexItem,{display:"flex",className:"gatherpress-venue__icon"},(0,e.createElement)(Re.Icon,{icon:"location"})),(0,e.createElement)(Re.FlexItem,null,t&&(0,e.createElement)("div",{className:"gatherpress-venue__name"},(0,e.createElement)("strong",null,Pe(t))),n&&(0,e.createElement)("div",{className:"gatherpress-venue__full-address"},Pe(n)))),(r||o)&&(0,e.createElement)(Re.Flex,{justify:"normal",gap:"8"},r&&(0,e.createElement)(Re.FlexItem,null,(0,e.createElement)(Re.Flex,{justify:"normal",gap:"4"},(0,e.createElement)(Re.FlexItem,{display:"flex",className:"gatherpress-venue__icon"},(0,e.createElement)(Re.Icon,{icon:"phone"})),(0,e.createElement)(Re.FlexItem,null,(0,e.createElement)("div",{className:"gatherpress-venue__phone-number"},r)))),o&&(0,e.createElement)(Re.FlexItem,null,(0,e.createElement)(Re.Flex,{justify:"normal",gap:"4"},(0,e.createElement)(Re.FlexItem,{display:"flex",className:"gatherpress-venue__icon"},(0,e.createElement)(Re.Icon,{icon:"admin-site-alt3"})),(0,e.createElement)(Re.FlexItem,null,(0,e.createElement)("div",{className:"gatherpress-venue__website"},(0,e.createElement)("a",{href:o,target:"_blank",rel:"noreferrer noopener"},o))))))),De=({name:t="",fullAddress:n,phoneNumber:r,website:o,isOnlineEventTerm:i=!1,onlineEventLink:l=""})=>(0,e.createElement)(e.Fragment,null,!i&&(0,e.createElement)(Ie,{name:t,fullAddress:n,phoneNumber:r,website:o}),i&&(0,e.createElement)(Ne,{onlineEventLinkDefault:l}));r()((()=>{let t=document.querySelectorAll('[data-gatherpress_block_name="venue"]');for(let l=0;l{var t={5413:(t,e)=>{"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0,function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"}(n=e.ElementType||(e.ElementType={})),e.isTag=function(t){return t.type===n.Tag||t.type===n.Script||t.type===n.Style},e.Root=n.Root,e.Text=n.Text,e.Directive=n.Directive,e.Comment=n.Comment,e.Script=n.Script,e.Style=n.Style,e.Tag=n.Tag,e.CDATA=n.CDATA,e.Doctype=n.Doctype},1141:function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var r=n(5413),s=n(6957);o(n(6957),e);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function t(t,e,n){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof e&&(n=e,e=a),"object"==typeof t&&(e=t,t=void 0),this.callback=null!=t?t:null,this.options=null!=e?e:a,this.elementCB=null!=n?n:null}return t.prototype.onparserinit=function(t){this.parser=t},t.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},t.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},t.prototype.onerror=function(t){this.handleCallback(t)},t.prototype.onclosetag=function(){this.lastNode=null;var t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)},t.prototype.onopentag=function(t,e){var n=this.options.xmlMode?r.ElementType.Tag:void 0,i=new s.Element(t,e,void 0,n);this.addNode(i),this.tagStack.push(i)},t.prototype.ontext=function(t){var e=this.lastNode;if(e&&e.type===r.ElementType.Text)e.data+=t,this.options.withEndIndices&&(e.endIndex=this.parser.endIndex);else{var n=new s.Text(t);this.addNode(n),this.lastNode=n}},t.prototype.oncomment=function(t){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment)this.lastNode.data+=t;else{var e=new s.Comment(t);this.addNode(e),this.lastNode=e}},t.prototype.oncommentend=function(){this.lastNode=null},t.prototype.oncdatastart=function(){var t=new s.Text(""),e=new s.CDATA([t]);this.addNode(e),t.parent=e,this.lastNode=t},t.prototype.oncdataend=function(){this.lastNode=null},t.prototype.onprocessinginstruction=function(t,e){var n=new s.ProcessingInstruction(t,e);this.addNode(n)},t.prototype.handleCallback=function(t){if("function"==typeof this.callback)this.callback(t,this.dom);else if(t)throw t},t.prototype.addNode=function(t){var e=this.tagStack[this.tagStack.length-1],n=e.children[e.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),e.children.push(t),n&&(t.prev=n,n.next=t),t.parent=e,this.lastNode=null},t}();e.DomHandler=l,e.default=l},6957:function(t,e,n){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function __(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.children},set:function(t){this.children=t},enumerable:!1,configurable:!0}),e}(a);e.NodeWithChildren=d;var p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=s.ElementType.CDATA,e}return o(e,t),Object.defineProperty(e.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),e}(d);e.CDATA=p;var f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=s.ElementType.Root,e}return o(e,t),Object.defineProperty(e.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),e}(d);e.Document=f;var m=function(t){function e(e,n,i,o){void 0===i&&(i=[]),void 0===o&&(o="script"===e?s.ElementType.Script:"style"===e?s.ElementType.Style:s.ElementType.Tag);var r=t.call(this,i)||this;return r.name=e,r.attribs=n,r.type=o,r}return o(e,t),Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.name},set:function(t){this.name=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){var t=this;return Object.keys(this.attribs).map((function(e){var n,i;return{name:e,value:t.attribs[e],namespace:null===(n=t["x-attribsNamespace"])||void 0===n?void 0:n[e],prefix:null===(i=t["x-attribsPrefix"])||void 0===i?void 0:i[e]}}))},enumerable:!1,configurable:!0}),e}(d);function _(t){return(0,s.isTag)(t)}function g(t){return t.type===s.ElementType.CDATA}function v(t){return t.type===s.ElementType.Text}function y(t){return t.type===s.ElementType.Comment}function x(t){return t.type===s.ElementType.Directive}function w(t){return t.type===s.ElementType.Root}function b(t,e){var n;if(void 0===e&&(e=!1),v(t))n=new h(t.data);else if(y(t))n=new c(t.data);else if(_(t)){var i=e?T(t.children):[],o=new m(t.name,r({},t.attribs),i);i.forEach((function(t){return t.parent=o})),null!=t.namespace&&(o.namespace=t.namespace),t["x-attribsNamespace"]&&(o["x-attribsNamespace"]=r({},t["x-attribsNamespace"])),t["x-attribsPrefix"]&&(o["x-attribsPrefix"]=r({},t["x-attribsPrefix"])),n=o}else if(g(t)){i=e?T(t.children):[];var s=new p(i);i.forEach((function(t){return t.parent=s})),n=s}else if(w(t)){i=e?T(t.children):[];var a=new f(i);i.forEach((function(t){return t.parent=a})),t["x-mode"]&&(a["x-mode"]=t["x-mode"]),n=a}else{if(!x(t))throw new Error("Not implemented yet: ".concat(t.type));var l=new u(t.name,t.data);null!=t["x-name"]&&(l["x-name"]=t["x-name"],l["x-publicId"]=t["x-publicId"],l["x-systemId"]=t["x-systemId"]),n=l}return n.startIndex=t.startIndex,n.endIndex=t.endIndex,null!=t.sourceCodeLocation&&(n.sourceCodeLocation=t.sourceCodeLocation),n}function T(t){for(var e=t.map((function(t){return b(t,!0)})),n=1;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES=void 0,e.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES.reduce((function(t,e){return t[e.toLowerCase()]=e,t}),{})},5496:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n="html",i="head",o="body",r=/<([a-zA-Z]+[0-9]?)/,s=//i,a=//i,l=function(t,e){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},h=function(t,e){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},c="object"==typeof window&&window.DOMParser;if("function"==typeof c){var u=new c;l=h=function(t,e){return e&&(t="<".concat(e,">").concat(t,"")),u.parseFromString(t,"text/html")}}if("object"==typeof document&&document.implementation){var d=document.implementation.createHTMLDocument();l=function(t,e){if(e){var n=d.documentElement.querySelector(e);return n&&(n.innerHTML=t),d}return d.documentElement.innerHTML=t,d}}var p,f="object"==typeof document&&document.createElement("template");f&&f.content&&(p=function(t){return f.innerHTML=t,f.content.childNodes}),e.default=function(t){var e,c,u=t.match(r),d=u&&u[1]?u[1].toLowerCase():"";switch(d){case n:var f=h(t);return s.test(t)||null===(e=null==(_=f.querySelector(i))?void 0:_.parentNode)||void 0===e||e.removeChild(_),a.test(t)||null===(c=null==(_=f.querySelector(o))?void 0:_.parentNode)||void 0===c||c.removeChild(_),f.querySelectorAll(n);case i:case o:var m=l(t).querySelectorAll(d);return a.test(t)&&s.test(t)?m[0].parentNode.childNodes:m;default:return p?p(t):(_=l(t,o).querySelector(o)).childNodes;var _}}},2471:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=i(n(5496)),r=n(7731),s=/<(![a-zA-Z\s]+)>/;e.default=function(t){if("string"!=typeof t)throw new TypeError("First argument must be a string");if(!t)return[];var e=t.match(s),n=e?e[1]:void 0;return(0,r.formatDOM)((0,o.default)(t),null,n)}},7731:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.formatDOM=e.formatAttributes=void 0;var i=n(1141),o=n(5270);function r(t){for(var e={},n=0,i=t.length;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(4210),o=n(4958),r=["checked","value"],s=["input","select","textarea"],a={reset:!0,submit:!0};function l(t){return i.possibleStandardNames[t]}e.default=function(t,e){void 0===t&&(t={});var n={},h=Boolean(t.type&&a[t.type]);for(var c in t){var u=t[c];if((0,i.isCustomAttribute)(c))n[c]=u;else{var d=c.toLowerCase(),p=l(d);if(p){var f=(0,i.getPropertyInfo)(p);switch(r.includes(p)&&s.includes(e)&&!h&&(p=l("default"+d)),n[p]=u,f&&f.type){case i.BOOLEAN:n[p]=!0;break;case i.OVERLOADED_BOOLEAN:""===u&&(n[p]=!0)}}else o.PRESERVE_CUSTOM_ATTRIBUTES&&(n[c]=u)}}return(0,o.setStyleProp)(t.style,n),n}},308:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(1609),r=i(n(840)),s=n(4958),a={cloneElement:o.cloneElement,createElement:o.createElement,isValidElement:o.isValidElement};function l(t){return s.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===t.type&&(0,s.isCustomComponent)(t.name,t.attribs)}e.default=function t(e,n){void 0===n&&(n={});for(var i=[],o="function"==typeof n.replace,h=n.transform||s.returnFirstArg,c=n.library||a,u=c.cloneElement,d=c.createElement,p=c.isValidElement,f=e.length,m=0;m1&&(g=u(g,{key:g.key||m})),i.push(h(g,_,m));continue}}if("text"!==_.type){var v=_,y={};l(v)?((0,s.setStyleProp)(v.attribs.style,v.attribs),y=v.attribs):v.attribs&&(y=(0,r.default)(v.attribs,v.name));var x=void 0;switch(_.type){case"script":case"style":_.children[0]&&(y.dangerouslySetInnerHTML={__html:_.children[0].data});break;case"tag":"textarea"===_.name&&_.children[0]?y.defaultValue=_.children[0].data:_.children&&_.children.length&&(x=t(_.children,n));break;default:continue}f>1&&(y.key=m),i.push(h(d(_.name,y,x),_,m))}else{var w=!_.data.trim().length;if(w&&_.parent&&!(0,s.canTextBeChildOfNode)(_.parent))continue;if(n.trim&&w)continue;i.push(h(_.data,_,m))}}return 1===i.length?i[0]:i}},442:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.htmlToDOM=e.domToReact=e.attributesToProps=e.Text=e.ProcessingInstruction=e.Element=e.Comment=void 0;var o=i(n(2471));e.htmlToDOM=o.default;var r=i(n(840));e.attributesToProps=r.default;var s=i(n(308));e.domToReact=s.default;var a=n(1141);Object.defineProperty(e,"Comment",{enumerable:!0,get:function(){return a.Comment}}),Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return a.Element}}),Object.defineProperty(e,"ProcessingInstruction",{enumerable:!0,get:function(){return a.ProcessingInstruction}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return a.Text}});var l={lowerCaseAttributeNames:!1};e.default=function(t,e){if("string"!=typeof t)throw new TypeError("First argument must be a string");return t?(0,s.default)((0,o.default)(t,(null==e?void 0:e.htmlparser2)||l),e):[]}},4958:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.returnFirstArg=e.canTextBeChildOfNode=e.ELEMENTS_WITH_NO_TEXT_CHILDREN=e.PRESERVE_CUSTOM_ATTRIBUTES=e.setStyleProp=e.isCustomComponent=void 0;var o=n(1609),r=i(n(5229)),s=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);e.isCustomComponent=function(t,e){return t.includes("-")?!s.has(t):Boolean(e&&"string"==typeof e.is)};var a={reactCompat:!0};e.setStyleProp=function(t,e){if("string"==typeof t)if(t.trim())try{e.style=(0,r.default)(t,a)}catch(t){e.style={}}else e.style={}},e.PRESERVE_CUSTOM_ATTRIBUTES=Number(o.version.split(".")[0])>=16,e.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),e.canTextBeChildOfNode=function(t){return!e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(t.name)},e.returnFirstArg=function(t){return t}},9788:t=>{var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,i=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,r=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,h="";function c(t){return t?t.replace(l,h):h}t.exports=function(t,l){if("string"!=typeof t)throw new TypeError("First argument must be a string");if(!t)return[];l=l||{};var u=1,d=1;function p(t){var e=t.match(n);e&&(u+=e.length);var i=t.lastIndexOf("\n");d=~i?t.length-i:d+t.length}function f(){var t={line:u,column:d};return function(e){return e.position=new m(t),y(),e}}function m(t){this.start=t,this.end={line:u,column:d},this.source=l.source}m.prototype.content=t;var _=[];function g(e){var n=new Error(l.source+":"+u+":"+d+": "+e);if(n.reason=e,n.filename=l.source,n.line=u,n.column=d,n.source=t,!l.silent)throw n;_.push(n)}function v(e){var n=e.exec(t);if(n){var i=n[0];return p(i),t=t.slice(i.length),n}}function y(){v(i)}function x(t){var e;for(t=t||[];e=w();)!1!==e&&t.push(e);return t}function w(){var e=f();if("/"==t.charAt(0)&&"*"==t.charAt(1)){for(var n=2;h!=t.charAt(n)&&("*"!=t.charAt(n)||"/"!=t.charAt(n+1));)++n;if(n+=2,h===t.charAt(n-1))return g("End of comment missing");var i=t.slice(2,n-2);return d+=2,p(i),t=t.slice(n),d+=2,e({type:"comment",comment:i})}}function b(){var t=f(),n=v(o);if(n){if(w(),!v(r))return g("property missing ':'");var i=v(s),l=t({type:"declaration",property:c(n[0].replace(e,h)),value:i?c(i[0].replace(e,h)):h});return v(a),l}}return y(),function(){var t,e=[];for(x(e);t=b();)!1!==t&&(e.push(t),x(e));return e}()}},3481:function(t,e){!function(t){"use strict";function e(t){var e,n,i,o;for(n=1,i=arguments.length;n0?Math.floor(t):Math.ceil(t)};function z(t,e,n){return t instanceof A?t:_(t)?new A(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new A(t.x,t.y):new A(t,e,n)}function I(t,e){if(t)for(var n=e?[t,e]:t,i=0,o=n.length;i=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=R(t);var e=this.min,n=this.max,i=t.min,o=t.max,r=o.x>=e.x&&i.x<=n.x,s=o.y>=e.y&&i.y<=n.y;return r&&s},overlaps:function(t){t=R(t);var e=this.min,n=this.max,i=t.min,o=t.max,r=o.x>e.x&&i.xe.y&&i.y=i.lat&&n.lat<=o.lat&&e.lng>=i.lng&&n.lng<=o.lng},intersects:function(t){t=B(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),o=t.getNorthEast(),r=o.lat>=e.lat&&i.lat<=n.lat,s=o.lng>=e.lng&&i.lng<=n.lng;return r&&s},overlaps:function(t){t=B(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),o=t.getNorthEast(),r=o.lat>e.lat&&i.late.lng&&i.lng1,kt=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",l,e),window.removeEventListener("testPassiveEventSupport",l,e)}catch(t){}return t}(),Ct=!!document.createElement("canvas").getContext,Mt=!(!document.createElementNS||!X("svg").createSVGRect),At=!!Mt&&(($=document.createElement("div")).innerHTML="","http://www.w3.org/2000/svg"===($.firstChild&&$.firstChild.namespaceURI)),Ot=!Mt&&function(){try{var t=document.createElement("div");t.innerHTML='';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}();function zt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var It={ie:Q,ielt9:tt,edge:et,webkit:nt,android:it,android23:ot,androidStock:st,opera:at,chrome:lt,gecko:ht,safari:ct,phantom:ut,opera12:dt,win:pt,ie3d:ft,webkit3d:mt,gecko3d:_t,any3d:gt,mobile:vt,mobileWebkit:yt,mobileWebkit3d:xt,msPointer:wt,pointer:bt,touch:Pt,touchNative:Tt,mobileOpera:Lt,mobileGecko:Et,retina:St,passiveEvents:kt,canvas:Ct,svg:Mt,vml:Ot,inlineSvg:At,mac:0===navigator.platform.indexOf("Mac"),linux:0===navigator.platform.indexOf("Linux")},Rt=It.msPointer?"MSPointerDown":"pointerdown",Zt=It.msPointer?"MSPointerMove":"pointermove",Bt=It.msPointer?"MSPointerUp":"pointerup",Nt=It.msPointer?"MSPointerCancel":"pointercancel",Dt={touchstart:Rt,touchmove:Zt,touchend:Bt,touchcancel:Nt},jt={touchstart:function(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&Ne(e),Gt(t,e)},touchmove:Gt,touchend:Gt,touchcancel:Gt},Ft={},Ht=!1;function Wt(t,e,n){return"touchstart"===e&&(Ht||(document.addEventListener(Rt,Vt,!0),document.addEventListener(Zt,Ut,!0),document.addEventListener(Bt,qt,!0),document.addEventListener(Nt,qt,!0),Ht=!0)),jt[e]?(n=jt[e].bind(this,n),t.addEventListener(Dt[e],n,!1),n):(console.warn("wrong event specified:",e),l)}function Vt(t){Ft[t.pointerId]=t}function Ut(t){Ft[t.pointerId]&&(Ft[t.pointerId]=t)}function qt(t){delete Ft[t.pointerId]}function Gt(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){for(var n in e.touches=[],Ft)e.touches.push(Ft[n]);e.changedTouches=[e],t(e)}}var Kt=200;var Xt,Yt,$t,Jt,Qt,te=_e(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ee=_e(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ne="webkitTransition"===ee||"OTransition"===ee?ee+"End":"transitionend";function ie(t){return"string"==typeof t?document.getElementById(t):t}function oe(t,e){var n=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!n||"auto"===n)&&document.defaultView){var i=document.defaultView.getComputedStyle(t,null);n=i?i[e]:null}return"auto"===n?null:n}function re(t,e,n){var i=document.createElement(t);return i.className=e||"",n&&n.appendChild(i),i}function se(t){var e=t.parentNode;e&&e.removeChild(t)}function ae(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function le(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function he(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function ce(t,e){if(void 0!==t.classList)return t.classList.contains(e);var n=fe(t);return n.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)}function ue(t,e){if(void 0!==t.classList)for(var n=u(e),i=0,o=n.length;i0?2*window.devicePixelRatio:1;function We(t){return It.edge?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/He:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function Ve(t,e){var n=e.relatedTarget;if(!n)return!0;try{for(;n&&n!==t;)n=n.parentNode}catch(t){return!1}return n!==t}var Ue={__proto__:null,on:ke,off:Me,stopPropagation:Re,disableScrollPropagation:Ze,disableClickPropagation:Be,preventDefault:Ne,stop:De,getPropagationPath:je,getMousePosition:Fe,getWheelDelta:We,isExternalTarget:Ve,addListener:ke,removeListener:Me},qe=M.extend({run:function(t,e,n,i){this.stop(),this._el=t,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(i||.5,.2),this._startPos=ye(t),this._offset=e.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=P(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,n=1e3*this._duration;ethis.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var n=this.getCenter(),i=this._limitCenter(n,this._zoom,B(t));return n.equals(i)||this.panTo(i,e),this._enforcingBounds=!1,this},panInside:function(t,e){var n=z((e=e||{}).paddingTopLeft||e.padding||[0,0]),i=z(e.paddingBottomRight||e.padding||[0,0]),o=this.project(this.getCenter()),r=this.project(t),s=this.getPixelBounds(),a=R([s.min.add(n),s.max.subtract(i)]),l=a.getSize();if(!a.contains(r)){this._enforcingBounds=!0;var h=r.subtract(a.getCenter()),c=a.extend(r).getSize().subtract(l);o.x+=h.x<0?-c.x:c.x,o.y+=h.y<0?-c.y:c.y,this.panTo(this.unproject(o),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=e({animate:!1,pan:!0},!0===t?{animate:!0}:t);var n=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var o=this.getSize(),r=n.divideBy(2).round(),s=o.divideBy(2).round(),a=r.subtract(s);return a.x||a.y?(t.animate&&t.pan?this.panBy(a):(t.pan&&this._rawPanBy(a),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(i(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:n,newSize:o})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=e({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var n=i(this._handleGeolocationResponse,this),o=i(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(n,o,t):navigator.geolocation.getCurrentPosition(n,o,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var e=t.code,n=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+n+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=new N(t.coords.latitude,t.coords.longitude),n=e.toBounds(2*t.coords.accuracy),i=this._locateOptions;if(i.setView){var o=this.getBoundsZoom(n);this.setView(e,i.maxZoom?Math.min(o,i.maxZoom):o)}var r={latlng:e,bounds:n,timestamp:t.timestamp};for(var s in t.coords)"number"==typeof t.coords[s]&&(r[s]=t.coords[s]);this.fire("locationfound",r)}},addHandler:function(t,e){if(!e)return this;var n=this[t]=new e(this);return this._handlers.push(n),this.options[t]&&n.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(t){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),se(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(E(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)se(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var n=re("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new Z(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,n){t=B(t),n=z(n||[0,0]);var i=this.getZoom()||0,o=this.getMinZoom(),r=this.getMaxZoom(),s=t.getNorthWest(),a=t.getSouthEast(),l=this.getSize().subtract(n),h=R(this.project(a,i),this.project(s,i)).getSize(),c=It.any3d?this.options.zoomSnap:1,u=l.x/h.x,d=l.y/h.y,p=e?Math.max(u,d):Math.min(u,d);return i=this.getScaleZoom(p,i),c&&(i=Math.round(i/(c/100))*(c/100),i=e?Math.ceil(i/c)*c:Math.floor(i/c)*c),Math.max(o,Math.min(r,i))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new A(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var n=this._getTopLeftPoint(t,e);return new I(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var n=this.options.crs;return e=void 0===e?this._zoom:e,n.scale(t)/n.scale(e)},getScaleZoom:function(t,e){var n=this.options.crs;e=void 0===e?this._zoom:e;var i=n.zoom(t*n.scale(e));return isNaN(i)?1/0:i},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(D(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(z(t),e)},layerPointToLatLng:function(t){var e=z(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(D(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(D(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(B(t))},distance:function(t,e){return this.options.crs.distance(D(t),D(e))},containerPointToLayerPoint:function(t){return z(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return z(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(z(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(D(t)))},mouseEventToContainerPoint:function(t){return Fe(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=ie(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");ke(e,"scroll",this._onScroll,this),this._containerId=r(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&It.any3d,ue(t,"leaflet-container"+(It.touch?" leaflet-touch":"")+(It.retina?" leaflet-retina":"")+(It.ielt9?" leaflet-oldie":"")+(It.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=oe(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&"sticky"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),ve(this._mapPane,new A(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(ue(t.markerPane,"leaflet-zoom-hide"),ue(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,n){ve(this._mapPane,new A(0,0));var i=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var o=this._zoom!==e;this._moveStart(o,n)._move(t,e)._moveEnd(o),this.fire("viewreset"),i&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,n,i){void 0===e&&(e=this._zoom);var o=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),i?n&&n.pinch&&this.fire("zoom",n):((o||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return E(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){ve(this._mapPane,this._getMapPanePos().subtract(t))},_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(t){this._targets={},this._targets[r(this._container)]=this;var e=t?Me:ke;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),It.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){E(this._resizeRequest),this._resizeRequest=P((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var n,i=[],o="mouseout"===e||"mouseover"===e,s=t.target||t.srcElement,a=!1;s;){if((n=this._targets[r(s)])&&("click"===e||"preclick"===e)&&this._draggableMoved(n)){a=!0;break}if(n&&n.listens(e,!0)){if(o&&!Ve(s,t))break;if(i.push(n),o)break}if(s===this._container)break;s=s.parentNode}return i.length||a||o||!this.listens(e,!0)||(i=[this]),i},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!(!this._loaded||e._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(e))){var n=t.type;"mousedown"===n&&Te(e),this._fireDOMEvent(t,n)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,n,i){if("click"===t.type){var o=e({},t);o.type="preclick",this._fireDOMEvent(o,o.type,i)}var r=this._findEventTargets(t,n);if(i){for(var s=[],a=0;a0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),n=this.getMaxZoom(),i=It.any3d?this.options.zoomSnap:1;return i&&(t=Math.round(t/i)*i),Math.max(e,Math.min(n,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){de(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var n=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(n)||(this.panBy(n,e),0))},_createAnimProxy:function(){var t=this._proxy=re("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",(function(t){var e=te,n=this._proxy.style[e];ge(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),n===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){se(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();ge(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var i=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/i);return!(!0!==n.animate&&!this.getSize().contains(o)||(P((function(){this._moveStart(!0,n.noMoveStart||!1)._animateZoom(t,e,!0)}),this),0))},_animateZoom:function(t,e,n,o){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,ue(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:o}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(i(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&de(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))}});var Ke=k.extend({options:{position:"topright"},initialize:function(t){d(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),n=this.getPosition(),i=t._controlCorners[n];return ue(e,"leaflet-control"),-1!==n.indexOf("bottom")?i.insertBefore(e,i.firstChild):i.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(se(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),Xe=function(t){return new Ke(t)};Ge.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",n=this._controlContainer=re("div",e+"control-container",this._container);function i(i,o){var r=e+i+" "+e+o;t[i+o]=re("div",r,n)}i("top","left"),i("top","right"),i("bottom","left"),i("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)se(this._controlCorners[t]);se(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Ye=Ke.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,n,i){return n1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(r(t.target)),n=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;n&&this._map.fire(n,e)},_createRadioElement:function(t,e){var n='",i=document.createElement("div");return i.innerHTML=n,i.firstChild},_addItem:function(t){var e,n=document.createElement("label"),i=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=i):e=this._createRadioElement("leaflet-base-layers_"+r(this),i),this._layerControlInputs.push(e),e.layerId=r(t.layer),ke(e,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+t.name;var s=document.createElement("span");return n.appendChild(s),s.appendChild(e),s.appendChild(o),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){if(!this._preventClick){var t,e,n=this._layerControlInputs,i=[],o=[];this._handlingClick=!0;for(var r=n.length-1;r>=0;r--)t=n[r],e=this._getLayer(t.layerId).layer,t.checked?i.push(e):t.checked||o.push(e);for(r=0;r=0;o--)t=n[o],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&ie.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,ke(t,"click",Ne),this.expand();var e=this;setTimeout((function(){Me(t,"click",Ne),e._preventClick=!1}))}}),$e=Ke.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",n=re("div",e+" leaflet-bar"),i=this.options;return this._zoomInButton=this._createButton(i.zoomInText,i.zoomInTitle,e+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(i.zoomOutText,i.zoomOutTitle,e+"-out",n,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(t){t.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(t){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,n,i,o){var r=re("a",n,i);return r.innerHTML=t,r.href="#",r.title=e,r.setAttribute("role","button"),r.setAttribute("aria-label",e),Be(r),ke(r,"click",De),ke(r,"click",o,this),ke(r,"click",this._refocusOnMap,this),r},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";de(this._zoomInButton,e),de(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(ue(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(ue(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});Ge.mergeOptions({zoomControl:!0}),Ge.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new $e,this.addControl(this.zoomControl))}));var Je=Ke.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",n=re("div",e),i=this.options;return this._addScales(i,e+"-line",n),t.on(i.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),n},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,n){t.metric&&(this._mScale=re("div",e,n)),t.imperial&&(this._iScale=re("div",e,n))},_update:function(){var t=this._map,e=t.getSize().y/2,n=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(n)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),n=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,n,e/t)},_updateImperial:function(t){var e,n,i,o=3.2808399*t;o>5280?(e=o/5280,n=this._getRoundNum(e),this._updateScale(this._iScale,n+" mi",n/e)):(i=this._getRoundNum(o),this._updateScale(this._iScale,i+" ft",i/o))},_updateScale:function(t,e,n){t.style.width=Math.round(this.options.maxWidth*n)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),n=t/e;return e*(n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),Qe=Ke.extend({options:{position:"bottomright",prefix:''+(It.inlineSvg?' ':"")+"Leaflet"},initialize:function(t){d(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=re("div","leaflet-control-attribution"),Be(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",(function(){this.removeAttribution(t.layer.getAttribution())}),this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(' ')}}});Ge.mergeOptions({attributionControl:!0}),Ge.addInitHook((function(){this.options.attributionControl&&(new Qe).addTo(this)}));Ke.Layers=Ye,Ke.Zoom=$e,Ke.Scale=Je,Ke.Attribution=Qe,Xe.layers=function(t,e,n){return new Ye(t,e,n)},Xe.zoom=function(t){return new $e(t)},Xe.scale=function(t){return new Je(t)},Xe.attribution=function(t){return new Qe(t)};var tn=k.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});tn.addTo=function(t,e){return t.addHandler(e,this),this};var en={Events:C},nn=It.touch?"touchstart mousedown":"mousedown",on=M.extend({options:{clickTolerance:3},initialize:function(t,e,n,i){d(this,i),this._element=t,this._dragStartTarget=e||t,this._preventOutline=n},enable:function(){this._enabled||(ke(this._dragStartTarget,nn,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(on._dragging===this&&this.finishDrag(!0),Me(this._dragStartTarget,nn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!ce(this._element,"leaflet-zoom-anim")))if(t.touches&&1!==t.touches.length)on._dragging===this&&this.finishDrag();else if(!(on._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(on._dragging=this,this._preventOutline&&Te(this._element),we(),Xt(),this._moving))){this.fire("down");var e=t.touches?t.touches[0]:t,n=Le(this._element);this._startPoint=new A(e.clientX,e.clientY),this._startPos=ye(this._element),this._parentScale=Ee(n);var i="mousedown"===t.type;ke(document,i?"mousemove":"touchmove",this._onMove,this),ke(document,i?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(t){if(this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,n=new A(e.clientX,e.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)e&&(n.push(t[i]),o=i);return ol&&(r=s,l=a);l>n&&(e[r]=1,dn(t,e,n,i,r),dn(t,e,n,r,o))}function pn(t,e,n,i,o){var r,s,a,l=i?ln:mn(t,n),h=mn(e,n);for(ln=h;;){if(!(l|h))return[t,e];if(l&h)return!1;a=mn(s=fn(t,e,r=l||h,n,o),n),r===l?(t=s,l=a):(e=s,h=a)}}function fn(t,e,n,i,o){var r,s,a=e.x-t.x,l=e.y-t.y,h=i.min,c=i.max;return 8&n?(r=t.x+a*(c.y-t.y)/l,s=c.y):4&n?(r=t.x+a*(h.y-t.y)/l,s=h.y):2&n?(r=c.x,s=t.y+l*(c.x-t.x)/a):1&n&&(r=h.x,s=t.y+l*(h.x-t.x)/a),new A(r,s,o)}function mn(t,e){var n=0;return t.xe.max.x&&(n|=2),t.ye.max.y&&(n|=8),n}function gn(t,e){var n=e.x-t.x,i=e.y-t.y;return n*n+i*i}function vn(t,e,n,i){var o,r=e.x,s=e.y,a=n.x-r,l=n.y-s,h=a*a+l*l;return h>0&&((o=((t.x-r)*a+(t.y-s)*l)/h)>1?(r=n.x,s=n.y):o>0&&(r+=a*o,s+=l*o)),a=t.x-r,l=t.y-s,i?a*a+l*l:new A(r,s)}function yn(t){return!_(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function xn(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),yn(t)}function wn(t,e){var n,i,o,r,s,a,l,h;if(!t||0===t.length)throw new Error("latlngs not passed");yn(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var c=D([0,0]),u=B(t);u.getNorthWest().distanceTo(u.getSouthWest())*u.getNorthEast().distanceTo(u.getNorthWest())<1700&&(c=an(t));var d=t.length,p=[];for(n=0;ni){l=(r-i)/o,h=[a.x-l*(a.x-s.x),a.y-l*(a.y-s.y)];break}var m=e.unproject(z(h));return D([m.lat+c.lat,m.lng+c.lng])}var bn={__proto__:null,simplify:cn,pointToSegmentDistance:un,closestPointOnSegment:function(t,e,n){return vn(t,e,n)},clipSegment:pn,_getEdgeIntersection:fn,_getBitCode:mn,_sqClosestPointOnSegment:vn,isFlat:yn,_flat:xn,polylineCenter:wn},Tn={project:function(t){return new A(t.lng,t.lat)},unproject:function(t){return new N(t.y,t.x)},bounds:new I([-180,-90],[180,90])},Pn={R:6378137,R_MINOR:6356752.314245179,bounds:new I([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,n=this.R,i=t.lat*e,o=this.R_MINOR/n,r=Math.sqrt(1-o*o),s=r*Math.sin(i),a=Math.tan(Math.PI/4-i/2)/Math.pow((1-s)/(1+s),r/2);return i=-n*Math.log(Math.max(a,1e-10)),new A(t.lng*e*n,i)},unproject:function(t){for(var e,n=180/Math.PI,i=this.R,o=this.R_MINOR/i,r=Math.sqrt(1-o*o),s=Math.exp(-t.y/i),a=Math.PI/2-2*Math.atan(s),l=0,h=.1;l<15&&Math.abs(h)>1e-7;l++)e=r*Math.sin(a),e=Math.pow((1-e)/(1+e),r/2),a+=h=Math.PI/2-2*Math.atan(s*e)-a;return new N(a*n,t.x*n/i)}},Ln={__proto__:null,LonLat:Tn,Mercator:Pn,SphericalMercator:V},En=e({},H,{code:"EPSG:3395",projection:Pn,transformation:function(){var t=.5/(Math.PI*Pn.R);return q(t,.5,-t,.5)}()}),Sn=e({},H,{code:"EPSG:4326",projection:Tn,transformation:q(1/180,1,-1/180,.5)}),kn=e({},F,{projection:Tn,transformation:q(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var n=e.lng-t.lng,i=e.lat-t.lat;return Math.sqrt(n*n+i*i)},infinite:!0});F.Earth=H,F.EPSG3395=En,F.EPSG3857=G,F.EPSG900913=K,F.EPSG4326=Sn,F.Simple=kn;var Cn=M.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[r(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[r(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var n=this.getEvents();e.on(n,this),this.once("remove",(function(){e.off(n,this)}),this)}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});Ge.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=r(t);return this._layers[e]||(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=r(t);return this._layers[e]?(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return r(t)in this._layers},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},_addLayers:function(t){for(var e=0,n=(t=t?_(t)?t:[t]:[]).length;ethis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()=2&&e[0]instanceof N&&e[0].equals(e[n-1])&&e.pop(),e},_setLatLngs:function(t){Dn.prototype._setLatLngs.call(this,t),yn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return yn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,n=new A(e,e);if(t=new I(t.min.subtract(n),t.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var i,o=0,r=this._rings.length;ot.y!=i.y>t.y&&t.x<(i.x-n.x)*(t.y-n.y)/(i.y-n.y)+n.x&&(h=!h);return h||Dn.prototype._containsPoint.call(this,t,!0)}});var Fn=An.extend({initialize:function(t,e){d(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,n,i,o=_(t)?t:t.features;if(o){for(e=0,n=o.length;e0&&o.push(o[0].slice()),o}function Kn(t,n){return t.feature?e({},t.feature,{geometry:n}):Xn(n)}function Xn(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var Yn={toGeoJSON:function(t){return Kn(this,{type:"Point",coordinates:qn(this.getLatLng(),t)})}};function $n(t,e){return new Fn(t,e)}Rn.include(Yn),Nn.include(Yn),Bn.include(Yn),Dn.include({toGeoJSON:function(t){var e=!yn(this._latlngs);return Kn(this,{type:(e?"Multi":"")+"LineString",coordinates:Gn(this._latlngs,e?1:0,!1,t)})}}),jn.include({toGeoJSON:function(t){var e=!yn(this._latlngs),n=e&&!yn(this._latlngs[0]),i=Gn(this._latlngs,n?2:e?1:0,!0,t);return e||(i=[i]),Kn(this,{type:(n?"Multi":"")+"Polygon",coordinates:i})}}),Mn.include({toMultiPoint:function(t){var e=[];return this.eachLayer((function(n){e.push(n.toGeoJSON(t).geometry.coordinates)})),Kn(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===e)return this.toMultiPoint(t);var n="GeometryCollection"===e,i=[];return this.eachLayer((function(e){if(e.toGeoJSON){var o=e.toGeoJSON(t);if(n)i.push(o.geometry);else{var r=Xn(o);"FeatureCollection"===r.type?i.push.apply(i,r.features):i.push(r)}}})),n?Kn(this,{geometries:i,type:"GeometryCollection"}):{type:"FeatureCollection",features:i}}});var Jn=$n,Qn=Cn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,n){this._url=t,this._bounds=B(e),d(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(ue(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){se(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&le(this._image),this},bringToBack:function(){return this._map&&he(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=B(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,e=this._image=t?this._url:re("img");ue(e,"leaflet-image-layer"),this._zoomAnimated&&ue(e,"leaflet-zoom-animated"),this.options.className&&ue(e,this.options.className),e.onselectstart=l,e.onmousemove=l,e.onload=i(this.fire,this,"load"),e.onerror=i(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=e.src:(e.src=this._url,e.alt=this.options.alt)},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;ge(this._image,n,e)},_reset:function(){var t=this._image,e=new I(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=e.getSize();ve(t,e.min),t.style.width=n.x+"px",t.style.height=n.y+"px"},_updateOpacity:function(){me(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),ti=Qn.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:re("video");if(ue(e,"leaflet-image-layer"),this._zoomAnimated&&ue(e,"leaflet-zoom-animated"),this.options.className&&ue(e,this.options.className),e.onselectstart=l,e.onmousemove=l,e.onloadeddata=i(this.fire,this,"load"),t){for(var n=e.getElementsByTagName("source"),o=[],r=0;r0?o:[e.src]}else{_(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInline=!!this.options.playsInline;for(var s=0;so?(e.height=o+"px",ue(t,r)):de(t,r),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),n=this._getAnchor();ve(this._container,e.add(n))},_adjustPan:function(){if(this.options.autoPan)if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)this._autopanning=!1;else{var t=this._map,e=parseInt(oe(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+e,i=this._containerWidth,o=new A(this._containerLeft,-n-this._containerBottom);o._add(ye(this._container));var r=t.layerPointToContainerPoint(o),s=z(this.options.autoPanPadding),a=z(this.options.autoPanPaddingTopLeft||s),l=z(this.options.autoPanPaddingBottomRight||s),h=t.getSize(),c=0,u=0;r.x+i+l.x>h.x&&(c=r.x+i-h.x+l.x),r.x-c-a.x<0&&(c=r.x-a.x),r.y+n+l.y>h.y&&(u=r.y+n-h.y+l.y),r.y-u-a.y<0&&(u=r.y-a.y),(c||u)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([c,u]))}},_getAnchor:function(){return z(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});Ge.mergeOptions({closePopupOnClick:!0}),Ge.include({openPopup:function(t,e,n){return this._initOverlay(ii,t,e,n).openOn(this),this},closePopup:function(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),Cn.include({bindPopup:function(t,e){return this._popup=this._initOverlay(ii,this._popup,t,e),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(t){return this._popup&&(this instanceof An||(this._popup._source=this),this._popup._prepareOpen(t||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()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(this._popup&&this._map){De(t);var e=t.layer||t.target;this._popup._source!==e||e instanceof Zn?(this._popup._source=e,this.openPopup(t.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var oi=ni.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){ni.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){ni.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=ni.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=re("div",t),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+r(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,n,i=this._map,o=this._container,r=i.latLngToContainerPoint(i.getCenter()),s=i.layerPointToContainerPoint(t),a=this.options.direction,l=o.offsetWidth,h=o.offsetHeight,c=z(this.options.offset),u=this._getAnchor();"top"===a?(e=l/2,n=h):"bottom"===a?(e=l/2,n=0):"center"===a?(e=l/2,n=h/2):"right"===a?(e=0,n=h/2):"left"===a?(e=l,n=h/2):s.xthis.options.maxZoom||ni&&this._retainParent(o,r,s,i))},_retainChildren:function(t,e,n,i){for(var o=2*t;o<2*t+2;o++)for(var r=2*e;r<2*e+2;r++){var s=new A(o,r);s.z=n+1;var a=this._tileCoordsToKey(s),l=this._tiles[a];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),n+1this.options.maxZoom||void 0!==this.options.minZoom&&o1)this._setView(t,n);else{for(var u=o.min.y;u<=o.max.y;u++)for(var d=o.min.x;d<=o.max.x;d++){var p=new A(d,u);if(p.z=this._tileZoom,this._isValidTile(p)){var f=this._tiles[this._tileCoordsToKey(p)];f?f.current=!0:s.push(p)}}if(s.sort((function(t,e){return t.distanceTo(r)-e.distanceTo(r)})),0!==s.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(d=0;dn.max.x)||!e.wrapLat&&(t.yn.max.y))return!1}if(!this.options.bounds)return!0;var i=this._tileCoordsToBounds(t);return B(this.options.bounds).overlaps(i)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,n=this.getTileSize(),i=t.scaleBy(n),o=i.add(n);return[e.unproject(i,t.z),e.unproject(o,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),n=new Z(e[0],e[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),n=new A(+e[0],+e[1]);return n.z=+e[2],n},_removeTile:function(t){var e=this._tiles[t];e&&(se(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){ue(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=l,t.onmousemove=l,It.ielt9&&this.options.opacity<1&&me(t,this.options.opacity)},_addTile:function(t,e){var n=this._getTilePos(t),o=this._tileCoordsToKey(t),r=this.createTile(this._wrapCoords(t),i(this._tileReady,this,t));this._initTile(r),this.createTile.length<2&&P(i(this._tileReady,this,t,null,r)),ve(r,n),this._tiles[o]={el:r,coords:t,current:!0},e.appendChild(r),this.fire("tileloadstart",{tile:r,coords:t})},_tileReady:function(t,e,n){e&&this.fire("tileerror",{error:e,tile:n,coords:t});var o=this._tileCoordsToKey(t);(n=this._tiles[o])&&(n.loaded=+new Date,this._map._fadeAnimated?(me(n.el,0),E(this._fadeFrame),this._fadeFrame=P(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),e||(ue(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),It.ielt9||!this._map._fadeAnimated?P(this._pruneTiles,this):setTimeout(i(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new A(this._wrapX?a(t.x,this._wrapX):t.x,this._wrapY?a(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new I(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});var ai=si.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,(e=d(this,e)).detectRetina&&It.retina&&e.maxZoom>0?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var n=document.createElement("img");return ke(n,"load",i(this._tileOnLoad,this,e,n)),ke(n,"error",i(this._tileOnError,this,e,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(n.referrerPolicy=this.options.referrerPolicy),n.alt="",n.src=this.getTileUrl(t),n},getTileUrl:function(t){var n={r:It.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var i=this._globalTileRange.max.y-t.y;this.options.tms&&(n.y=i),n["-y"]=i}return m(this._url,e(n,this.options))},_tileOnLoad:function(t,e){It.ielt9?setTimeout(i(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,n){var i=this.options.errorTileUrl;i&&e.getAttribute("src")!==i&&(e.src=i),t(n,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return this.options.zoomReverse&&(t=e-t),t+this.options.zoomOffset},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=l,e.onerror=l,!e.complete)){e.src=v;var n=this._tiles[t].coords;se(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:n})}},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",v),si.prototype._removeTile.call(this,t)},_tileReady:function(t,e,n){if(this._map&&(!n||n.getAttribute("src")!==v))return si.prototype._tileReady.call(this,t,e,n)}});function li(t,e){return new ai(t,e)}var hi=ai.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,n){this._url=t;var i=e({},this.defaultWmsParams);for(var o in n)o in this.options||(i[o]=n[o]);var r=(n=d(this,n)).detectRetina&&It.retina?2:1,s=this.getTileSize();i.width=s.x*r,i.height=s.y*r,this.wmsParams=i},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,ai.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),n=this._crs,i=R(n.project(e[0]),n.project(e[1])),o=i.min,r=i.max,s=(this._wmsVersion>=1.3&&this._crs===Sn?[o.y,o.x,r.y,r.x]:[o.x,o.y,r.x,r.y]).join(","),a=ai.prototype.getTileUrl.call(this,t);return a+p(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+s},setParams:function(t,n){return e(this.wmsParams,t),n||this.redraw(),this}});ai.WMS=hi,li.wms=function(t,e){return new hi(t,e)};var ci=Cn.extend({options:{padding:.1},initialize:function(t){d(this,t),r(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),ue(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 t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var n=this._map.getZoomScale(e,this._zoom),i=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),r=i.multiplyBy(-n).add(o).subtract(this._map._getNewPixelOrigin(t,e));It.any3d?ge(this._container,r,n):ve(this._container,r)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),n=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new I(n,n.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),ui=ci.extend({options:{tolerance:0},getEvents:function(){var t=ci.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ci.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");ke(t,"mousemove",this._onMouseMove,this),ke(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),ke(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){E(this._redrawRequest),delete this._ctx,se(this._container),Me(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){ci.prototype._update.call(this);var t=this._bounds,e=this._container,n=t.getSize(),i=It.retina?2:1;ve(e,t.min),e.width=i*n.x,e.height=i*n.y,e.style.width=n.x+"px",e.style.height=n.y+"px",It.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){ci.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[r(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,n=e.next,i=e.prev;n?n.prev=i:this._drawLast=i,i?i.next=n:this._drawFirst=n,delete t._order,delete this._layers[r(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){var e,n,i=t.options.dashArray.split(/[, ]+/),o=[];for(n=0;n')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),fi={_initContainer:function(){this._container=re("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ci.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=pi("shape");ue(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=pi("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[r(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;se(e),t.removeInteractiveTarget(e),delete this._layers[r(t)]},_updateStyle:function(t){var e=t._stroke,n=t._fill,i=t.options,o=t._container;o.stroked=!!i.stroke,o.filled=!!i.fill,i.stroke?(e||(e=t._stroke=pi("stroke")),o.appendChild(e),e.weight=i.weight+"px",e.color=i.color,e.opacity=i.opacity,i.dashArray?e.dashStyle=_(i.dashArray)?i.dashArray.join(" "):i.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=i.lineCap.replace("butt","flat"),e.joinstyle=i.lineJoin):e&&(o.removeChild(e),t._stroke=null),i.fill?(n||(n=t._fill=pi("fill")),o.appendChild(n),n.color=i.fillColor||i.color,n.opacity=i.fillOpacity):n&&(o.removeChild(n),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),n=Math.round(t._radius),i=Math.round(t._radiusY||n);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+n+","+i+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){le(t._container)},_bringToBack:function(t){he(t._container)}},mi=It.vml?pi:X,_i=ci.extend({_initContainer:function(){this._container=mi("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=mi("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){se(this._container),Me(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){ci.prototype._update.call(this);var t=this._bounds,e=t.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,n.setAttribute("width",e.x),n.setAttribute("height",e.y)),ve(n,t.min),n.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=mi("path");t.options.className&&ue(e,t.options.className),t.options.interactive&&ue(e,"leaflet-interactive"),this._updateStyle(t),this._layers[r(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){se(t._path),t.removeInteractiveTarget(t._path),delete this._layers[r(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,n=t.options;e&&(n.stroke?(e.setAttribute("stroke",n.color),e.setAttribute("stroke-opacity",n.opacity),e.setAttribute("stroke-width",n.weight),e.setAttribute("stroke-linecap",n.lineCap),e.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?e.setAttribute("stroke-dasharray",n.dashArray):e.removeAttribute("stroke-dasharray"),n.dashOffset?e.setAttribute("stroke-dashoffset",n.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),n.fill?(e.setAttribute("fill",n.fillColor||n.color),e.setAttribute("fill-opacity",n.fillOpacity),e.setAttribute("fill-rule",n.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,Y(t._parts,e))},_updateCircle:function(t){var e=t._point,n=Math.max(Math.round(t._radius),1),i="a"+n+","+(Math.max(Math.round(t._radiusY),1)||n)+" 0 1,0 ",o=t._empty()?"M0 0":"M"+(e.x-n)+","+e.y+i+2*n+",0 "+i+2*-n+",0 ";this._setPath(t,o)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){le(t._path)},_bringToBack:function(t){he(t._path)}});function gi(t){return It.svg||It.vml?new _i(t):null}It.vml&&_i.include(fi),Ge.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&di(t)||gi(t)}});var vi=jn.extend({initialize:function(t,e){jn.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=B(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});_i.create=mi,_i.pointsToPath=Y,Fn.geometryToLayer=Hn,Fn.coordsToLatLng=Vn,Fn.coordsToLatLngs=Un,Fn.latLngToCoords=qn,Fn.latLngsToCoords=Gn,Fn.getFeature=Kn,Fn.asFeature=Xn,Ge.mergeOptions({boxZoom:!0});var yi=tn.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){ke(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Me(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){se(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),Xt(),we(),this._startPoint=this._map.mouseEventToContainerPoint(t),ke(document,{contextmenu:De,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=re("div","leaflet-zoom-box",this._container),ue(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new I(this._point,this._startPoint),n=e.getSize();ve(this._box,e.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(se(this._box),de(this._container,"leaflet-crosshair")),Yt(),be(),Me(document,{contextmenu:De,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(i(this._resetState,this),0);var e=new Z(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Ge.addInitHook("addHandler","boxZoom",yi),Ge.mergeOptions({doubleClickZoom:!0});var xi=tn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,n=e.getZoom(),i=e.options.zoomDelta,o=t.originalEvent.shiftKey?n-i:n+i;"center"===e.options.doubleClickZoom?e.setZoom(o):e.setZoomAround(t.containerPoint,o)}});Ge.addInitHook("addHandler","doubleClickZoom",xi),Ge.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var wi=tn.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new on(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}ue(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){de(this._map._container,"leaflet-grab"),de(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 t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=B(this._map.options.maxBounds);this._offsetLimit=R(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.xe.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),n=this._initialWorldOffset,i=this._draggable._newPos.x,o=(i-e+n)%t+e-n,r=(i+e+n)%t-e-n,s=Math.abs(o+n)0?r:-r))-e;this._delta=0,this._startTime=null,s&&("center"===t.options.scrollWheelZoom?t.setZoom(e+s):t.setZoomAround(this._lastMousePos,e+s))}});Ge.addInitHook("addHandler","scrollWheelZoom",Ti);Ge.mergeOptions({tapHold:It.touchNative&&It.safari&&It.mobile,tapTolerance:15});var Pi=tn.extend({addHooks:function(){ke(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Me(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),1===t.touches.length){var e=t.touches[0];this._startPos=this._newPos=new A(e.clientX,e.clientY),this._holdTimeout=setTimeout(i((function(){this._cancel(),this._isTapValid()&&(ke(document,"touchend",Ne),ke(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))}),this),600),ke(document,"touchend touchcancel contextmenu",this._cancel,this),ke(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){Me(document,"touchend",Ne),Me(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),Me(document,"touchend touchcancel contextmenu",this._cancel,this),Me(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new A(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var n=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});n._simulated=!0,e.target.dispatchEvent(n)}});Ge.addInitHook("addHandler","tapHold",Pi),Ge.mergeOptions({touchZoom:It.touch,bounceAtZoomLimits:!0});var Li=tn.extend({addHooks:function(){ue(this._map._container,"leaflet-touch-zoom"),ke(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){de(this._map._container,"leaflet-touch-zoom"),Me(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var n=e.mouseEventToContainerPoint(t.touches[0]),i=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(n.add(i)._divideBy(2))),this._startDist=n.distanceTo(i),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),ke(document,"touchmove",this._onTouchMove,this),ke(document,"touchend touchcancel",this._onTouchEnd,this),Ne(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,n=e.mouseEventToContainerPoint(t.touches[0]),o=e.mouseEventToContainerPoint(t.touches[1]),r=n.distanceTo(o)/this._startDist;if(this._zoom=e.getScaleZoom(r,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoome.getMaxZoom()&&r>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===r)return}else{var s=n._add(o)._divideBy(2)._subtract(this._centerPoint);if(1===r&&0===s.x&&0===s.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(s),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),E(this._animRequest);var a=i(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=P(a,this,!0),Ne(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,E(this._animRequest),Me(document,"touchmove",this._onTouchMove,this),Me(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))):this._zooming=!1}});Ge.addInitHook("addHandler","touchZoom",Li),Ge.BoxZoom=yi,Ge.DoubleClickZoom=xi,Ge.Drag=wi,Ge.Keyboard=bi,Ge.ScrollWheelZoom=Ti,Ge.TapHold=Pi,Ge.TouchZoom=Li,t.Bounds=I,t.Browser=It,t.CRS=F,t.Canvas=ui,t.Circle=Nn,t.CircleMarker=Bn,t.Class=k,t.Control=Ke,t.DivIcon=ri,t.DivOverlay=ni,t.DomEvent=Ue,t.DomUtil=Se,t.Draggable=on,t.Evented=M,t.FeatureGroup=An,t.GeoJSON=Fn,t.GridLayer=si,t.Handler=tn,t.Icon=On,t.ImageOverlay=Qn,t.LatLng=N,t.LatLngBounds=Z,t.Layer=Cn,t.LayerGroup=Mn,t.LineUtil=bn,t.Map=Ge,t.Marker=Rn,t.Mixin=en,t.Path=Zn,t.Point=A,t.PolyUtil=hn,t.Polygon=jn,t.Polyline=Dn,t.Popup=ii,t.PosAnimation=qe,t.Projection=Ln,t.Rectangle=vi,t.Renderer=ci,t.SVG=_i,t.SVGOverlay=ei,t.TileLayer=ai,t.Tooltip=oi,t.Transformation=U,t.Util=S,t.VideoOverlay=ti,t.bind=i,t.bounds=R,t.canvas=di,t.circle=function(t,e,n){return new Nn(t,e,n)},t.circleMarker=function(t,e){return new Bn(t,e)},t.control=Xe,t.divIcon=function(t){return new ri(t)},t.extend=e,t.featureGroup=function(t,e){return new An(t,e)},t.geoJSON=$n,t.geoJson=Jn,t.gridLayer=function(t){return new si(t)},t.icon=function(t){return new On(t)},t.imageOverlay=function(t,e,n){return new Qn(t,e,n)},t.latLng=D,t.latLngBounds=B,t.layerGroup=function(t,e){return new Mn(t,e)},t.map=function(t,e){return new Ge(t,e)},t.marker=function(t,e){return new Rn(t,e)},t.point=z,t.polygon=function(t,e){return new jn(t,e)},t.polyline=function(t,e){return new Dn(t,e)},t.popup=function(t,e){return new ii(t,e)},t.rectangle=function(t,e){return new vi(t,e)},t.setOptions=d,t.stamp=r,t.svg=gi,t.svgOverlay=function(t,e,n){return new ei(t,e,n)},t.tileLayer=li,t.tooltip=function(t,e){return new oi(t,e)},t.transformation=q,t.version="1.9.4",t.videoOverlay=function(t,e,n){return new ti(t,e,n)};var Ei=window.L;t.noConflict=function(){return window.L=Ei,this},window.L=t}(e)},4210:(t,e,n)=>{"use strict";function i(t,e,n,i,o,r,s){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=i,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=r,this.removeEmptyString=s}const o={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((t=>{o[t]=new i(t,0,!1,t,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((([t,e])=>{o[t]=new i(t,1,!1,e,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((t=>{o[t]=new i(t,2,!1,t.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((t=>{o[t]=new i(t,2,!1,t,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((t=>{o[t]=new i(t,3,!1,t.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((t=>{o[t]=new i(t,3,!0,t,null,!1,!1)})),["capture","download"].forEach((t=>{o[t]=new i(t,4,!1,t,null,!1,!1)})),["cols","rows","size","span"].forEach((t=>{o[t]=new i(t,6,!1,t,null,!1,!1)})),["rowSpan","start"].forEach((t=>{o[t]=new i(t,5,!1,t.toLowerCase(),null,!1,!1)}));const r=/[\-\:]([a-z])/g,s=t=>t[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((t=>{const e=t.replace(r,s);o[e]=new i(e,1,!1,t,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((t=>{const e=t.replace(r,s);o[e]=new i(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((t=>{const e=t.replace(r,s);o[e]=new i(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((t=>{o[t]=new i(t,1,!1,t.toLowerCase(),null,!1,!1)})),o.xlinkHref=new i("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((t=>{o[t]=new i(t,1,!1,t.toLowerCase(),null,!0,!0)}));const{CAMELCASE:a,SAME:l,possibleStandardNames:h}=n(6811),c=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),u=Object.keys(h).reduce(((t,e)=>{const n=h[e];return n===l?t[e]=e:n===a?t[e.toLowerCase()]=e:t[e]=n,t}),{});e.BOOLEAN=3,e.BOOLEANISH_STRING=2,e.NUMERIC=5,e.OVERLOADED_BOOLEAN=4,e.POSITIVE_NUMERIC=6,e.RESERVED=0,e.STRING=1,e.getPropertyInfo=function(t){return o.hasOwnProperty(t)?o[t]:null},e.isCustomAttribute=c,e.possibleStandardNames=u},6811:(t,e)=>{e.SAME=0,e.CAMELCASE=1,e.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},5229:function(t,e,n){"use strict";var i=(this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}})(n(1133)),o=n(8917);function r(t,e){var n={};return t&&"string"==typeof t?((0,i.default)(t,(function(t,i){t&&i&&(n[(0,o.camelCase)(t,e)]=i)})),n):n}r.default=r,t.exports=r},8917:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,i=/-([a-z])/g,o=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,a=function(t,e){return e.toUpperCase()},l=function(t,e){return"".concat(e,"-")};e.camelCase=function(t,e){return void 0===e&&(e={}),function(t){return!t||o.test(t)||n.test(t)}(t)?t:(t=t.toLowerCase(),(t=e.reactCompat?t.replace(s,l):t.replace(r,l)).replace(i,a))}},1133:function(t,e,n){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=i(n(9788));e.default=function(t,e){var n=null;if(!t||"string"!=typeof t)return n;var i=(0,o.default)(t),r="function"==typeof e;return i.forEach((function(t){if("declaration"===t.type){var i=t.property,o=t.value;r?e(i,o,t):o&&((n=n||{})[i]=o)}})),n}},1609:t=>{"use strict";t.exports=window.React},6942:(t,e)=>{var n;!function(){"use strict";var i={}.hasOwnProperty;function o(){for(var t="",e=0;e{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t;n.g.importScripts&&(t=n.g.location+"");var e=n.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var i=e.getElementsByTagName("script");if(i.length)for(var o=i.length-1;o>-1&&(!t||!/^http(s?):/.test(t));)t=i[o--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=t+"../../"})(),(()=>{"use strict";var t=n(1609);const e=window.wp.domReady;var i=n.n(e);const o=window.wp.element,r=window.wp.data,s=e=>{const{zoom:n,type:i,className:o,location:r,height:s}=e,a={border:0,height:s,width:"100%"},l="https://maps.google.com/maps?"+new URLSearchParams({q:r,z:n||10,t:i||"m",output:"embed"}).toString();return(0,t.createElement)("iframe",{src:l,style:a,className:o,title:r})};var a=n(3481),l=n.n(a);n.p,n.p;const h=window.wp.i18n;function c(t){if("object"==typeof GatherPress)return t.split(".").reduce(((t,e)=>t&&t[e]),GatherPress)}const u=e=>{const{zoom:n,className:i,location:r,height:s,latitude:a,longitude:u}=e,d={height:s};return(0,o.useEffect)((()=>{if(void 0===l()||!a||!u)return;const t=l().map("map").setView([a,u],n);return l().Icon.Default.imagePath=c("urls.pluginUrl")+"build/images/",l().tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:(0,h.sprintf)(/* translators: %s: Link to OpenStreetMap contributors. */ /* translators: %s: Link to OpenStreetMap contributors. */ +(0,h.__)("© %s contributors","gatherpress"),'OpenStreetMap')}).addTo(t),l().marker([a,u]).addTo(t).bindPopup(r),()=>{t.remove()}}),[a,r,u,n]),a&&u?(0,t.createElement)("div",{className:i,id:"map",style:d}):(0,t.createElement)(t.Fragment,null)},d=e=>{const n=(0,r.select)("core")?.canUser("create","posts"),i=Boolean((0,r.select)("core/edit-post")),{zoom:o,type:a,className:l,latitude:h,longitude:d}=e;let{location:p,height:f}=e;f||(f=300),!n||i||p||(p="660 4th Street #119 San Francisco CA 94107, USA");const m=c("settings.mapPlatform");return p&&m?"google"===m?(0,t.createElement)(s,{location:p,className:l,zoom:o,type:a,height:f}):"osm"===m?(0,t.createElement)(u,{location:p,latitude:h,longitude:d,className:l,zoom:o,height:f}):(0,t.createElement)(t.Fragment,null):(0,t.createElement)(t.Fragment,null)},p=Math.min,f=Math.max,m=Math.round,_=Math.floor,g=t=>({x:t,y:t}),v={left:"right",right:"left",bottom:"top",top:"bottom"},y={start:"end",end:"start"};function x(t,e,n){return f(t,p(e,n))}function w(t,e){return"function"==typeof t?t(e):t}function b(t){return t.split("-")[0]}function T(t){return t.split("-")[1]}function P(t){return"x"===t?"y":"x"}function L(t){return"y"===t?"height":"width"}function E(t){return["top","bottom"].includes(b(t))?"y":"x"}function S(t){return P(E(t))}function k(t){return t.replace(/start|end/g,(t=>y[t]))}function C(t){return t.replace(/left|right|bottom|top/g,(t=>v[t]))}function M(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function A(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function O(t,e,n){let{reference:i,floating:o}=t;const r=E(e),s=S(e),a=L(s),l=b(e),h="y"===r,c=i.x+i.width/2-o.width/2,u=i.y+i.height/2-o.height/2,d=i[a]/2-o[a]/2;let p;switch(l){case"top":p={x:c,y:i.y-o.height};break;case"bottom":p={x:c,y:i.y+i.height};break;case"right":p={x:i.x+i.width,y:u};break;case"left":p={x:i.x-o.width,y:u};break;default:p={x:i.x,y:i.y}}switch(T(e)){case"start":p[s]-=d*(n&&h?-1:1);break;case"end":p[s]+=d*(n&&h?-1:1)}return p}async function z(t,e){var n;void 0===e&&(e={});const{x:i,y:o,platform:r,rects:s,elements:a,strategy:l}=t,{boundary:h="clippingAncestors",rootBoundary:c="viewport",elementContext:u="floating",altBoundary:d=!1,padding:p=0}=w(e,t),f=M(p),m=a[d?"floating"===u?"reference":"floating":u],_=A(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(m)))||n?m:m.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(a.floating)),boundary:h,rootBoundary:c,strategy:l})),g="floating"===u?{...s.floating,x:i,y:o}:s.reference,v=await(null==r.getOffsetParent?void 0:r.getOffsetParent(a.floating)),y=await(null==r.isElement?void 0:r.isElement(v))&&await(null==r.getScale?void 0:r.getScale(v))||{x:1,y:1},x=A(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:v,strategy:l}):g);return{top:(_.top-x.top+f.top)/y.y,bottom:(x.bottom-_.bottom+f.bottom)/y.y,left:(_.left-x.left+f.left)/y.x,right:(x.right-_.right+f.right)/y.x}}const I=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,i;const{x:o,y:r,placement:s,middlewareData:a}=e,l=await async function(t,e){const{placement:n,platform:i,elements:o}=t,r=await(null==i.isRTL?void 0:i.isRTL(o.floating)),s=b(n),a=T(n),l="y"===E(n),h=["left","top"].includes(s)?-1:1,c=r&&l?-1:1,u=w(e,t);let{mainAxis:d,crossAxis:p,alignmentAxis:f}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return a&&"number"==typeof f&&(p="end"===a?-1*f:f),l?{x:p*c,y:d*h}:{x:d*h,y:p*c}}(e,t);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(i=a.arrow)&&i.alignmentOffset?{}:{x:o+l.x,y:r+l.y,data:{...l,placement:s}}}}};function R(t){return N(t)?(t.nodeName||"").toLowerCase():"#document"}function Z(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function B(t){var e;return null==(e=(N(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function N(t){return t instanceof Node||t instanceof Z(t).Node}function D(t){return t instanceof Element||t instanceof Z(t).Element}function j(t){return t instanceof HTMLElement||t instanceof Z(t).HTMLElement}function F(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Z(t).ShadowRoot)}function H(t){const{overflow:e,overflowX:n,overflowY:i,display:o}=G(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!["inline","contents"].includes(o)}function W(t){return["table","td","th"].includes(R(t))}function V(t){const e=U(),n=G(t);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function U(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function q(t){return["html","body","#document"].includes(R(t))}function G(t){return Z(t).getComputedStyle(t)}function K(t){return D(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function X(t){if("html"===R(t))return t;const e=t.assignedSlot||t.parentNode||F(t)&&t.host||B(t);return F(e)?e.host:e}function Y(t){const e=X(t);return q(e)?t.ownerDocument?t.ownerDocument.body:t.body:j(e)&&H(e)?e:Y(e)}function $(t,e,n){var i;void 0===e&&(e=[]),void 0===n&&(n=!0);const o=Y(t),r=o===(null==(i=t.ownerDocument)?void 0:i.body),s=Z(o);return r?e.concat(s,s.visualViewport||[],H(o)?o:[],s.frameElement&&n?$(s.frameElement):[]):e.concat(o,$(o,[],n))}function J(t){const e=G(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const o=j(t),r=o?t.offsetWidth:n,s=o?t.offsetHeight:i,a=m(n)!==r||m(i)!==s;return a&&(n=r,i=s),{width:n,height:i,$:a}}function Q(t){return D(t)?t:t.contextElement}function tt(t){const e=Q(t);if(!j(e))return g(1);const n=e.getBoundingClientRect(),{width:i,height:o,$:r}=J(e);let s=(r?m(n.width):n.width)/i,a=(r?m(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const et=g(0);function nt(t){const e=Z(t);return U()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:et}function it(t,e,n,i){void 0===e&&(e=!1),void 0===n&&(n=!1);const o=t.getBoundingClientRect(),r=Q(t);let s=g(1);e&&(i?D(i)&&(s=tt(i)):s=tt(t));const a=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==Z(t))&&e}(r,n,i)?nt(r):g(0);let l=(o.left+a.x)/s.x,h=(o.top+a.y)/s.y,c=o.width/s.x,u=o.height/s.y;if(r){const t=Z(r),e=i&&D(i)?Z(i):i;let n=t,o=n.frameElement;for(;o&&i&&e!==n;){const t=tt(o),e=o.getBoundingClientRect(),i=G(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,s=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,h*=t.y,c*=t.x,u*=t.y,l+=r,h+=s,n=Z(o),o=n.frameElement}}return A({width:c,height:u,x:l,y:h})}const ot=[":popover-open",":modal"];function rt(t){return ot.some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function st(t){return it(B(t)).left+K(t).scrollLeft}function at(t,e,n){let i;if("viewport"===e)i=function(t,e){const n=Z(t),i=B(t),o=n.visualViewport;let r=i.clientWidth,s=i.clientHeight,a=0,l=0;if(o){r=o.width,s=o.height;const t=U();(!t||t&&"fixed"===e)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:r,height:s,x:a,y:l}}(t,n);else if("document"===e)i=function(t){const e=B(t),n=K(t),i=t.ownerDocument.body,o=f(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),r=f(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let s=-n.scrollLeft+st(t);const a=-n.scrollTop;return"rtl"===G(i).direction&&(s+=f(e.clientWidth,i.clientWidth)-o),{width:o,height:r,x:s,y:a}}(B(t));else if(D(e))i=function(t,e){const n=it(t,!0,"fixed"===e),i=n.top+t.clientTop,o=n.left+t.clientLeft,r=j(t)?tt(t):g(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:o*r.x,y:i*r.y}}(e,n);else{const n=nt(t);i={...e,x:e.x-n.x,y:e.y-n.y}}return A(i)}function lt(t,e){const n=X(t);return!(n===e||!D(n)||q(n))&&("fixed"===G(n).position||lt(n,e))}function ht(t,e,n){const i=j(e),o=B(e),r="fixed"===n,s=it(t,!0,r,e);let a={scrollLeft:0,scrollTop:0};const l=g(0);if(i||!i&&!r)if(("body"!==R(e)||H(o))&&(a=K(e)),i){const t=it(e,!0,r,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else o&&(l.x=st(o));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function ct(t,e){return j(t)&&"fixed"!==G(t).position?e?e(t):t.offsetParent:null}function ut(t,e){const n=Z(t);if(!j(t)||rt(t))return n;let i=ct(t,e);for(;i&&W(i)&&"static"===G(i).position;)i=ct(i,e);return i&&("html"===R(i)||"body"===R(i)&&"static"===G(i).position&&!V(i))?n:i||function(t){let e=X(t);for(;j(e)&&!q(e);){if(V(e))return e;e=X(e)}return null}(t)||n}const dt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:i,strategy:o}=t;const r="fixed"===o,s=B(i),a=!!e&&rt(e.floating);if(i===s||a&&r)return n;let l={scrollLeft:0,scrollTop:0},h=g(1);const c=g(0),u=j(i);if((u||!u&&!r)&&(("body"!==R(i)||H(s))&&(l=K(i)),j(i))){const t=it(i);h=tt(i),c.x=t.x+i.clientLeft,c.y=t.y+i.clientTop}return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-l.scrollLeft*h.x+c.x,y:n.y*h.y-l.scrollTop*h.y+c.y}},getDocumentElement:B,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t;const r=[..."clippingAncestors"===n?function(t,e){const n=e.get(t);if(n)return n;let i=$(t,[],!1).filter((t=>D(t)&&"body"!==R(t))),o=null;const r="fixed"===G(t).position;let s=r?X(t):t;for(;D(s)&&!q(s);){const e=G(s),n=V(s);n||"fixed"!==e.position||(o=null),(r?!n&&!o:!n&&"static"===e.position&&o&&["absolute","fixed"].includes(o.position)||H(s)&&!n&<(t,s))?i=i.filter((t=>t!==s)):o=e,s=X(s)}return e.set(t,i),i}(e,this._c):[].concat(n),i],s=r[0],a=r.reduce(((t,n)=>{const i=at(e,n,o);return t.top=f(i.top,t.top),t.right=p(i.right,t.right),t.bottom=p(i.bottom,t.bottom),t.left=f(i.left,t.left),t}),at(e,s,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:ut,getElementRects:async function(t){const e=this.getOffsetParent||ut,n=this.getDimensions;return{reference:ht(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,...await n(t.floating)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=J(t);return{width:e,height:n}},getScale:tt,isElement:D,isRTL:function(t){return"rtl"===G(t).direction}};const pt=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:i,placement:o}=e,{mainAxis:r=!0,crossAxis:s=!1,limiter:a={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...l}=w(t,e),h={x:n,y:i},c=await z(e,l),u=E(b(o)),d=P(u);let p=h[d],f=h[u];if(r){const t="y"===d?"bottom":"right";p=x(p+c["y"===d?"top":"left"],p,p-c[t])}if(s){const t="y"===u?"bottom":"right";f=x(f+c["y"===u?"top":"left"],f,f-c[t])}const m=a.fn({...e,[d]:p,[u]:f});return{...m,data:{x:m.x-n,y:m.y-i}}}}},ft=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,i;const{placement:o,middlewareData:r,rects:s,initialPlacement:a,platform:l,elements:h}=e,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,..._}=w(t,e);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const g=b(o),v=b(a)===a,y=await(null==l.isRTL?void 0:l.isRTL(h.floating)),x=d||(v||!m?[C(a)]:function(t){const e=C(t);return[k(t),e,k(e)]}(a));d||"none"===f||x.push(...function(t,e,n,i){const o=T(t);let r=function(t,e,n){const i=["left","right"],o=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?o:i:e?i:o;case"left":case"right":return e?r:s;default:return[]}}(b(t),"start"===n,i);return o&&(r=r.map((t=>t+"-"+o)),e&&(r=r.concat(r.map(k)))),r}(a,m,f,y));const P=[a,...x],E=await z(e,_),M=[];let A=(null==(i=r.flip)?void 0:i.overflows)||[];if(c&&M.push(E[g]),u){const t=function(t,e,n){void 0===n&&(n=!1);const i=T(t),o=S(t),r=L(o);let s="x"===o?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=C(s)),[s,C(s)]}(o,s,y);M.push(E[t[0]],E[t[1]])}if(A=[...A,{placement:o,overflows:M}],!M.every((t=>t<=0))){var O,I;const t=((null==(O=r.flip)?void 0:O.index)||0)+1,e=P[t];if(e)return{data:{index:t,overflows:A},reset:{placement:e}};let n=null==(I=A.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:I.placement;if(!n)switch(p){case"bestFit":{var R;const t=null==(R=A.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:R[0];t&&(n=t);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},mt=(t,e,n)=>{const i=new Map,o={platform:dt,...n},r={...o.platform,_c:i};return(async(t,e,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:s}=n,a=r.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(e));let h=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:c,y:u}=O(h,i,l),d=i,p={},f=0;for(let n=0;n{if(!t)return{tooltipStyles:{},tooltipArrowStyles:{},place:i};if(null===e)return{tooltipStyles:{},tooltipArrowStyles:{},place:i};const l=s;return n?(l.push({name:"arrow",options:h={element:n,padding:5},async fn(t){const{x:e,y:n,placement:i,rects:o,platform:r,elements:s,middlewareData:a}=t,{element:l,padding:c=0}=w(h,t)||{};if(null==l)return{};const u=M(c),d={x:e,y:n},f=S(i),m=L(f),_=await r.getDimensions(l),g="y"===f,v=g?"top":"left",y=g?"bottom":"right",b=g?"clientHeight":"clientWidth",P=o.reference[m]+o.reference[f]-d[f]-o.floating[m],E=d[f]-o.reference[f],k=await(null==r.getOffsetParent?void 0:r.getOffsetParent(l));let C=k?k[b]:0;C&&await(null==r.isElement?void 0:r.isElement(k))||(C=s.floating[b]||o.floating[m]);const A=P/2-E/2,O=C/2-_[m]/2-1,z=p(u[v],O),I=p(u[y],O),R=z,Z=C-_[m]-I,B=C/2-_[m]/2+A,N=x(R,B,Z),D=!a.arrow&&null!=T(i)&&B!==N&&o.reference[m]/2-(B{var o,r;const s={left:`${t}px`,top:`${e}px`,border:a},{x:l,y:h}=null!==(o=i.arrow)&&void 0!==o?o:{x:0,y:0},c=null!==(r={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]])&&void 0!==r?r:"bottom",u=a&&{borderBottom:a,borderRight:a};let d=0;if(a){const t=`${a}`.match(/(\d+)px/);d=(null==t?void 0:t[1])?Number(t[1]):1}return{tooltipStyles:s,tooltipArrowStyles:{left:null!=l?`${l}px`:"",top:null!=h?`${h}px`:"",right:"",bottom:"",...u,[c]:`-${4+d}px`},place:n}}))):mt(t,e,{placement:"bottom",strategy:r,middleware:l}).then((({x:t,y:e,placement:n})=>({tooltipStyles:{left:`${t}px`,top:`${e}px`},tooltipArrowStyles:{},place:n})));var h},xt=(t,e)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(t,e),wt=(t,e,n)=>{let i=null;const o=function(...o){const r=()=>{i=null,n||t.apply(this,o)};n&&!i&&(t.apply(this,o),i=setTimeout(r,e)),n||(i&&clearTimeout(i),i=setTimeout(r,e))};return o.cancel=()=>{i&&(clearTimeout(i),i=null)},o},bt=t=>null!==t&&!Array.isArray(t)&&"object"==typeof t,Tt=(t,e)=>{if(t===e)return!0;if(Array.isArray(t)&&Array.isArray(e))return t.length===e.length&&t.every(((t,n)=>Tt(t,e[n])));if(Array.isArray(t)!==Array.isArray(e))return!1;if(!bt(t)||!bt(e))return t===e;const n=Object.keys(t),i=Object.keys(e);return n.length===i.length&&n.every((n=>Tt(t[n],e[n])))},Pt=t=>{if(!(t instanceof HTMLElement||t instanceof SVGElement))return!1;const e=getComputedStyle(t);return["overflow","overflow-x","overflow-y"].some((t=>{const n=e.getPropertyValue(t);return"auto"===n||"scroll"===n}))},Lt=t=>{if(!t)return null;let e=t.parentElement;for(;e;){if(Pt(e))return e;e=e.parentElement}return document.scrollingElement||document.documentElement},Et="undefined"!=typeof window?t.useLayoutEffect:t.useEffect,St={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},kt=(0,t.createContext)({getTooltipData:()=>St});function Ct(e="DEFAULT_TOOLTIP_ID"){return(0,t.useContext)(kt).getTooltipData(e)}var Mt={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},At={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const Ot=({forwardRef:e,id:n,className:i,classNameArrow:o,variant:r="dark",anchorId:s,anchorSelect:a,place:l="top",offset:h=10,events:c=["hover"],openOnClick:u=!1,positionStrategy:d="absolute",middlewares:m,wrapper:g,delayShow:v=0,delayHide:y=0,float:x=!1,hidden:w=!1,noArrow:b=!1,clickable:T=!1,closeOnEsc:P=!1,closeOnScroll:L=!1,closeOnResize:E=!1,openEvents:S,closeEvents:k,globalCloseEvents:C,imperativeModeOnly:M,style:A,position:O,afterShow:z,afterHide:I,content:R,contentWrapperRef:Z,isOpen:N,defaultIsOpen:D=!1,setIsOpen:j,activeAnchor:F,setActiveAnchor:H,border:W,opacity:V,arrowColor:U,role:q="tooltip"})=>{var G;const K=(0,t.useRef)(null),X=(0,t.useRef)(null),Y=(0,t.useRef)(null),J=(0,t.useRef)(null),tt=(0,t.useRef)(null),[et,nt]=(0,t.useState)({tooltipStyles:{},tooltipArrowStyles:{},place:l}),[ot,rt]=(0,t.useState)(!1),[st,at]=(0,t.useState)(!1),[lt,ht]=(0,t.useState)(null),ct=(0,t.useRef)(!1),ut=(0,t.useRef)(null),{anchorRefs:dt,setActiveAnchor:pt}=Ct(n),ft=(0,t.useRef)(!1),[mt,gt]=(0,t.useState)([]),vt=(0,t.useRef)(!1),xt=u||c.includes("click"),bt=xt||(null==S?void 0:S.click)||(null==S?void 0:S.dblclick)||(null==S?void 0:S.mousedown),Pt=S?{...S}:{mouseenter:!0,focus:!0,click:!1,dblclick:!1,mousedown:!1};!S&&xt&&Object.assign(Pt,{mouseenter:!1,focus:!1,click:!0});const St=k?{...k}:{mouseleave:!0,blur:!0,click:!1,dblclick:!1,mouseup:!1};!k&&xt&&Object.assign(St,{mouseleave:!1,blur:!1});const kt=C?{...C}:{escape:P||!1,scroll:L||!1,resize:E||!1,clickOutsideAnchor:bt||!1};M&&(Object.assign(Pt,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(St,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(kt,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),Et((()=>(vt.current=!0,()=>{vt.current=!1})),[]);const Ot=t=>{vt.current&&(t&&at(!0),setTimeout((()=>{vt.current&&(null==j||j(t),void 0===N&&rt(t))}),10))};(0,t.useEffect)((()=>{if(void 0===N)return()=>null;N&&at(!0);const t=setTimeout((()=>{rt(N)}),10);return()=>{clearTimeout(t)}}),[N]),(0,t.useEffect)((()=>{if(ot!==ct.current)if(tt.current&&clearTimeout(tt.current),ct.current=ot,ot)null==z||z();else{const t=(t=>{const e=getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay").match(/^([\d.]+)(ms|s)$/);if(!e)return 0;const[,n,i]=e;return Number(n)*("ms"===i?1:1e3)})();tt.current=setTimeout((()=>{at(!1),ht(null),null==I||I()}),t+25)}}),[ot]);const zt=t=>{nt((e=>Tt(e,t)?e:t))},It=(t=v)=>{Y.current&&clearTimeout(Y.current),st?Ot(!0):Y.current=setTimeout((()=>{Ot(!0)}),t)},Rt=(t=y)=>{J.current&&clearTimeout(J.current),J.current=setTimeout((()=>{ft.current||Ot(!1)}),t)},Zt=t=>{var e;if(!t)return;const n=null!==(e=t.currentTarget)&&void 0!==e?e:t.target;if(!(null==n?void 0:n.isConnected))return H(null),void pt({current:null});v?It():Ot(!0),H(n),pt({current:n}),J.current&&clearTimeout(J.current)},Bt=()=>{T?Rt(y||100):y?Rt():Ot(!1),Y.current&&clearTimeout(Y.current)},Nt=({x:t,y:e})=>{var n;const i={getBoundingClientRect:()=>({x:t,y:e,width:0,height:0,top:e,left:t,right:t,bottom:e})};yt({place:null!==(n=null==lt?void 0:lt.place)&&void 0!==n?n:l,offset:h,elementReference:i,tooltipReference:K.current,tooltipArrowReference:X.current,strategy:d,middlewares:m,border:W}).then((t=>{zt(t)}))},Dt=t=>{if(!t)return;const e=t,n={x:e.clientX,y:e.clientY};Nt(n),ut.current=n},jt=t=>{var e;if(!ot)return;const n=t.target;n.isConnected&&((null===(e=K.current)||void 0===e?void 0:e.contains(n))||[document.querySelector(`[id='${s}']`),...mt].some((t=>null==t?void 0:t.contains(n)))||(Ot(!1),Y.current&&clearTimeout(Y.current)))},Ft=wt(Zt,50,!0),Ht=wt(Bt,50,!0),Wt=t=>{Ht.cancel(),Ft(t)},Vt=()=>{Ft.cancel(),Ht()},Ut=(0,t.useCallback)((()=>{var t,e;const n=null!==(t=null==lt?void 0:lt.position)&&void 0!==t?t:O;n?Nt(n):x?ut.current&&Nt(ut.current):(null==F?void 0:F.isConnected)&&yt({place:null!==(e=null==lt?void 0:lt.place)&&void 0!==e?e:l,offset:h,elementReference:F,tooltipReference:K.current,tooltipArrowReference:X.current,strategy:d,middlewares:m,border:W}).then((t=>{vt.current&&zt(t)}))}),[ot,F,R,A,l,null==lt?void 0:lt.place,h,d,O,null==lt?void 0:lt.position,x]);(0,t.useEffect)((()=>{var t,e;const n=new Set(dt);mt.forEach((t=>{n.add({current:t})}));const i=document.querySelector(`[id='${s}']`);i&&n.add({current:i});const o=()=>{Ot(!1)},r=Lt(F),a=Lt(K.current);kt.scroll&&(window.addEventListener("scroll",o),null==r||r.addEventListener("scroll",o),null==a||a.addEventListener("scroll",o));let l=null;kt.resize?window.addEventListener("resize",o):F&&K.current&&(l=function(t,e,n,i){void 0===i&&(i={});const{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=i,h=Q(t),c=o||r?[...h?$(h):[],...$(e)]:[];c.forEach((t=>{o&&t.addEventListener("scroll",n,{passive:!0}),r&&t.addEventListener("resize",n)}));const u=h&&a?function(t,e){let n,i=null;const o=B(t);function r(){var t;clearTimeout(n),null==(t=i)||t.disconnect(),i=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),r();const{left:h,top:c,width:u,height:d}=t.getBoundingClientRect();if(a||e(),!u||!d)return;const m={rootMargin:-_(c)+"px "+-_(o.clientWidth-(h+u))+"px "+-_(o.clientHeight-(c+d))+"px "+-_(h)+"px",threshold:f(0,p(1,l))||1};let g=!0;function v(t){const e=t[0].intersectionRatio;if(e!==l){if(!g)return s();e?s(!1,e):n=setTimeout((()=>{s(!1,1e-7)}),100)}g=!1}try{i=new IntersectionObserver(v,{...m,root:o.ownerDocument})}catch(t){i=new IntersectionObserver(v,m)}i.observe(t)}(!0),r}(h,n):null;let d,m=-1,g=null;s&&(g=new ResizeObserver((t=>{let[i]=t;i&&i.target===h&&g&&(g.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{var t;null==(t=g)||t.observe(e)}))),n()})),h&&!l&&g.observe(h),g.observe(e));let v=l?it(t):null;return l&&function e(){const i=it(t);!v||i.x===v.x&&i.y===v.y&&i.width===v.width&&i.height===v.height||n(),v=i,d=requestAnimationFrame(e)}(),n(),()=>{var t;c.forEach((t=>{o&&t.removeEventListener("scroll",n),r&&t.removeEventListener("resize",n)})),null==u||u(),null==(t=g)||t.disconnect(),g=null,l&&cancelAnimationFrame(d)}}(F,K.current,Ut,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const h=t=>{"Escape"===t.key&&Ot(!1)};kt.escape&&window.addEventListener("keydown",h),kt.clickOutsideAnchor&&window.addEventListener("click",jt);const c=[],u=t=>{ot&&(null==t?void 0:t.target)===F||Zt(t)},d=t=>{ot&&(null==t?void 0:t.target)===F&&Bt()},m=["mouseenter","mouseleave","focus","blur"],g=["click","dblclick","mousedown","mouseup"];Object.entries(Pt).forEach((([t,e])=>{e&&(m.includes(t)?c.push({event:t,listener:Wt}):g.includes(t)&&c.push({event:t,listener:u}))})),Object.entries(St).forEach((([t,e])=>{e&&(m.includes(t)?c.push({event:t,listener:Vt}):g.includes(t)&&c.push({event:t,listener:d}))})),x&&c.push({event:"pointermove",listener:Dt});const v=()=>{ft.current=!0},y=()=>{ft.current=!1,Bt()};return T&&!bt&&(null===(t=K.current)||void 0===t||t.addEventListener("mouseenter",v),null===(e=K.current)||void 0===e||e.addEventListener("mouseleave",y)),c.forEach((({event:t,listener:e})=>{n.forEach((n=>{var i;null===(i=n.current)||void 0===i||i.addEventListener(t,e)}))})),()=>{var t,e;kt.scroll&&(window.removeEventListener("scroll",o),null==r||r.removeEventListener("scroll",o),null==a||a.removeEventListener("scroll",o)),kt.resize?window.removeEventListener("resize",o):null==l||l(),kt.clickOutsideAnchor&&window.removeEventListener("click",jt),kt.escape&&window.removeEventListener("keydown",h),T&&!bt&&(null===(t=K.current)||void 0===t||t.removeEventListener("mouseenter",v),null===(e=K.current)||void 0===e||e.removeEventListener("mouseleave",y)),c.forEach((({event:t,listener:e})=>{n.forEach((n=>{var i;null===(i=n.current)||void 0===i||i.removeEventListener(t,e)}))}))}}),[F,Ut,st,dt,mt,S,k,C,xt,v,y]),(0,t.useEffect)((()=>{var t,e;let i=null!==(e=null!==(t=null==lt?void 0:lt.anchorSelect)&&void 0!==t?t:a)&&void 0!==e?e:"";!i&&n&&(i=`[data-tooltip-id='${n}']`);const o=new MutationObserver((t=>{const e=[],o=[];t.forEach((t=>{if("attributes"===t.type&&"data-tooltip-id"===t.attributeName&&(t.target.getAttribute("data-tooltip-id")===n?e.push(t.target):t.oldValue===n&&o.push(t.target)),"childList"===t.type){if(F){const e=[...t.removedNodes].filter((t=>1===t.nodeType));if(i)try{o.push(...e.filter((t=>t.matches(i)))),o.push(...e.flatMap((t=>[...t.querySelectorAll(i)])))}catch(t){}e.some((t=>{var e;return!!(null===(e=null==t?void 0:t.contains)||void 0===e?void 0:e.call(t,F))&&(at(!1),Ot(!1),H(null),Y.current&&clearTimeout(Y.current),J.current&&clearTimeout(J.current),!0)}))}if(i)try{const n=[...t.addedNodes].filter((t=>1===t.nodeType));e.push(...n.filter((t=>t.matches(i)))),e.push(...n.flatMap((t=>[...t.querySelectorAll(i)])))}catch(t){}}})),(e.length||o.length)&>((t=>[...t.filter((t=>!o.includes(t))),...e]))}));return o.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{o.disconnect()}}),[n,a,null==lt?void 0:lt.anchorSelect,F]),(0,t.useEffect)((()=>{Ut()}),[Ut]),(0,t.useEffect)((()=>{if(!(null==Z?void 0:Z.current))return()=>null;const t=new ResizeObserver((()=>{setTimeout((()=>Ut()))}));return t.observe(Z.current),()=>{t.disconnect()}}),[R,null==Z?void 0:Z.current]),(0,t.useEffect)((()=>{var t;const e=document.querySelector(`[id='${s}']`),n=[...mt,e];F&&n.includes(F)||H(null!==(t=mt[0])&&void 0!==t?t:e)}),[s,mt,F]),(0,t.useEffect)((()=>(D&&Ot(!0),()=>{Y.current&&clearTimeout(Y.current),J.current&&clearTimeout(J.current)})),[]),(0,t.useEffect)((()=>{var t;let e=null!==(t=null==lt?void 0:lt.anchorSelect)&&void 0!==t?t:a;if(!e&&n&&(e=`[data-tooltip-id='${n}']`),e)try{const t=Array.from(document.querySelectorAll(e));gt(t)}catch(t){gt([])}}),[n,a,null==lt?void 0:lt.anchorSelect]),(0,t.useEffect)((()=>{Y.current&&(clearTimeout(Y.current),It(v))}),[v]);const qt=null!==(G=null==lt?void 0:lt.content)&&void 0!==G?G:R,Gt=ot&&Object.keys(et.tooltipStyles).length>0;return(0,t.useImperativeHandle)(e,(()=>({open:t=>{if(null==t?void 0:t.anchorSelect)try{document.querySelector(t.anchorSelect)}catch(e){return void console.warn(`[react-tooltip] "${t.anchorSelect}" is not a valid CSS selector`)}ht(null!=t?t:null),(null==t?void 0:t.delay)?It(t.delay):Ot(!0)},close:t=>{(null==t?void 0:t.delay)?Rt(t.delay):Ot(!1)},activeAnchor:F,place:et.place,isOpen:Boolean(st&&!w&&qt&&Gt)}))),st&&!w&&qt?t.createElement(g,{id:n,role:q,className:_t("react-tooltip",Mt.tooltip,At.tooltip,At[r],i,`react-tooltip__place-${et.place}`,Mt[Gt?"show":"closing"],Gt?"react-tooltip__show":"react-tooltip__closing","fixed"===d&&Mt.fixed,T&&Mt.clickable),onTransitionEnd:t=>{tt.current&&clearTimeout(tt.current),ot||"opacity"!==t.propertyName||(at(!1),ht(null),null==I||I())},style:{...A,...et.tooltipStyles,opacity:void 0!==V&&Gt?V:void 0},ref:K},qt,t.createElement(g,{className:_t("react-tooltip-arrow",Mt.arrow,At.arrow,o,b&&Mt.noArrow),style:{...et.tooltipArrowStyles,background:U?`linear-gradient(to right bottom, transparent 50%, ${U} 50%)`:void 0},ref:X})):null},zt=({content:e})=>t.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),It=t.forwardRef((({id:e,anchorId:n,anchorSelect:i,content:o,html:r,render:s,className:a,classNameArrow:l,variant:h="dark",place:c="top",offset:u=10,wrapper:d="div",children:p=null,events:f=["hover"],openOnClick:m=!1,positionStrategy:_="absolute",middlewares:g,delayShow:v=0,delayHide:y=0,float:x=!1,hidden:w=!1,noArrow:b=!1,clickable:T=!1,closeOnEsc:P=!1,closeOnScroll:L=!1,closeOnResize:E=!1,openEvents:S,closeEvents:k,globalCloseEvents:C,imperativeModeOnly:M=!1,style:A,position:O,isOpen:z,defaultIsOpen:I=!1,disableStyleInjection:R=!1,border:Z,opacity:B,arrowColor:N,setIsOpen:D,afterShow:j,afterHide:F,role:H="tooltip"},W)=>{const[V,U]=(0,t.useState)(o),[q,G]=(0,t.useState)(r),[K,X]=(0,t.useState)(c),[Y,$]=(0,t.useState)(h),[J,Q]=(0,t.useState)(u),[tt,et]=(0,t.useState)(v),[nt,it]=(0,t.useState)(y),[ot,rt]=(0,t.useState)(x),[st,at]=(0,t.useState)(w),[lt,ht]=(0,t.useState)(d),[ct,ut]=(0,t.useState)(f),[dt,pt]=(0,t.useState)(_),[ft,mt]=(0,t.useState)(null),[gt,vt]=(0,t.useState)(null),yt=(0,t.useRef)(R),{anchorRefs:wt,activeAnchor:bt}=Ct(e),Tt=t=>null==t?void 0:t.getAttributeNames().reduce(((e,n)=>{var i;return n.startsWith("data-tooltip-")&&(e[n.replace(/^data-tooltip-/,"")]=null!==(i=null==t?void 0:t.getAttribute(n))&&void 0!==i?i:null),e}),{}),Pt=t=>{const e={place:t=>{var e;X(null!==(e=t)&&void 0!==e?e:c)},content:t=>{U(null!=t?t:o)},html:t=>{G(null!=t?t:r)},variant:t=>{var e;$(null!==(e=t)&&void 0!==e?e:h)},offset:t=>{Q(null===t?u:Number(t))},wrapper:t=>{var e;ht(null!==(e=t)&&void 0!==e?e:d)},events:t=>{const e=null==t?void 0:t.split(" ");ut(null!=e?e:f)},"position-strategy":t=>{var e;pt(null!==(e=t)&&void 0!==e?e:_)},"delay-show":t=>{et(null===t?v:Number(t))},"delay-hide":t=>{it(null===t?y:Number(t))},float:t=>{rt(null===t?x:"true"===t)},hidden:t=>{at(null===t?w:"true"===t)},"class-name":t=>{mt(t)}};Object.values(e).forEach((t=>t(null))),Object.entries(t).forEach((([t,n])=>{var i;null===(i=e[t])||void 0===i||i.call(e,n)}))};(0,t.useEffect)((()=>{U(o)}),[o]),(0,t.useEffect)((()=>{G(r)}),[r]),(0,t.useEffect)((()=>{X(c)}),[c]),(0,t.useEffect)((()=>{$(h)}),[h]),(0,t.useEffect)((()=>{Q(u)}),[u]),(0,t.useEffect)((()=>{et(v)}),[v]),(0,t.useEffect)((()=>{it(y)}),[y]),(0,t.useEffect)((()=>{rt(x)}),[x]),(0,t.useEffect)((()=>{at(w)}),[w]),(0,t.useEffect)((()=>{pt(_)}),[_]),(0,t.useEffect)((()=>{yt.current!==R&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")}),[R]),(0,t.useEffect)((()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===R,disableBase:R}}))}),[]),(0,t.useEffect)((()=>{var t;const o=new Set(wt);let r=i;if(!r&&e&&(r=`[data-tooltip-id='${e}']`),r)try{document.querySelectorAll(r).forEach((t=>{o.add({current:t})}))}catch(t){console.warn(`[react-tooltip] "${r}" is not a valid CSS selector`)}const s=document.querySelector(`[id='${n}']`);if(s&&o.add({current:s}),!o.size)return()=>null;const a=null!==(t=null!=gt?gt:s)&&void 0!==t?t:bt.current,l=new MutationObserver((t=>{t.forEach((t=>{var e;if(!a||"attributes"!==t.type||!(null===(e=t.attributeName)||void 0===e?void 0:e.startsWith("data-tooltip-")))return;const n=Tt(a);Pt(n)}))})),h={attributes:!0,childList:!1,subtree:!1};if(a){const t=Tt(a);Pt(t),l.observe(a,h)}return()=>{l.disconnect()}}),[wt,bt,gt,n,i]),(0,t.useEffect)((()=>{(null==A?void 0:A.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),Z&&!xt("border",`${Z}`)&&console.warn(`[react-tooltip] "${Z}" is not a valid \`border\`.`),(null==A?void 0:A.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),B&&!xt("opacity",`${B}`)&&console.warn(`[react-tooltip] "${B}" is not a valid \`opacity\`.`)}),[]);let Lt=p;const Et=(0,t.useRef)(null);if(s){const e=s({content:(null==gt?void 0:gt.getAttribute("data-tooltip-content"))||V||null,activeAnchor:gt});Lt=e?t.createElement("div",{ref:Et,className:"react-tooltip-content-wrapper"},e):null}else V&&(Lt=V);q&&(Lt=t.createElement(zt,{content:q}));const St={forwardRef:W,id:e,anchorId:n,anchorSelect:i,className:_t(a,ft),classNameArrow:l,content:Lt,contentWrapperRef:Et,place:K,variant:Y,offset:J,wrapper:lt,events:ct,openOnClick:m,positionStrategy:dt,middlewares:g,delayShow:tt,delayHide:nt,float:ot,hidden:st,noArrow:b,clickable:T,closeOnEsc:P,closeOnScroll:L,closeOnResize:E,openEvents:S,closeEvents:k,globalCloseEvents:C,imperativeModeOnly:M,style:A,position:O,isOpen:z,defaultIsOpen:I,border:Z,opacity:B,arrowColor:N,setIsOpen:D,afterShow:j,afterHide:F,activeAnchor:gt,setActiveAnchor:t=>vt(t),role:H};return t.createElement(Ot,{...St})}));"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",(t=>{t.detail.disableCore||vt({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),t.detail.disableBase||vt({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})}));const Rt=window.wp.components,Zt=({onlineEventLinkDefault:e=""})=>{const n=(0,h.__)("Online event","gatherpress"),[i,r]=(0,o.useState)(e);return((t,e="")=>{for(const[n,i]of Object.entries(t)){let t=n;e&&(t+="_"+String(e)),addEventListener(t,(t=>{i(t.detail)}),!1)}})({setOnlineEventLink:r},c("eventDetails.postId")),(0,t.createElement)(Rt.Flex,{justify:"normal",gap:"3"},(0,t.createElement)(Rt.FlexItem,{display:"flex"},(0,t.createElement)(Rt.Icon,{icon:"video-alt2"})),(0,t.createElement)(Rt.FlexItem,null,!i&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)("span",{tabIndex:"0",className:"gatherpress-tooltip","data-tooltip-id":"gatherpress-online-event-tooltip","data-tooltip-content":(0,h.__)("Link available for attendees only.","gatherpress")},n),(0,t.createElement)(It,{id:"gatherpress-online-event-tooltip"})),i&&(0,t.createElement)("a",{href:i,rel:"noreferrer",target:"_blank"},n)))};var Bt=n(442);const Nt=Bt.default||Bt,Dt=({name:e,fullAddress:n,phoneNumber:i,website:o})=>(0,t.createElement)(t.Fragment,null,(e||n)&&(0,t.createElement)(Rt.Flex,{justify:"normal",align:"flex-start",gap:"4"},(0,t.createElement)(Rt.FlexItem,{display:"flex",className:"gatherpress-venue__icon"},(0,t.createElement)(Rt.Icon,{icon:"location"})),(0,t.createElement)(Rt.FlexItem,null,e&&(0,t.createElement)("div",{className:"gatherpress-venue__name"},(0,t.createElement)("strong",null,Nt(e))),n&&(0,t.createElement)("div",{className:"gatherpress-venue__full-address"},Nt(n)))),(i||o)&&(0,t.createElement)(Rt.Flex,{justify:"normal",gap:"8"},i&&(0,t.createElement)(Rt.FlexItem,null,(0,t.createElement)(Rt.Flex,{justify:"normal",gap:"4"},(0,t.createElement)(Rt.FlexItem,{display:"flex",className:"gatherpress-venue__icon"},(0,t.createElement)(Rt.Icon,{icon:"phone"})),(0,t.createElement)(Rt.FlexItem,null,(0,t.createElement)("div",{className:"gatherpress-venue__phone-number"},i)))),o&&(0,t.createElement)(Rt.FlexItem,null,(0,t.createElement)(Rt.Flex,{justify:"normal",gap:"4"},(0,t.createElement)(Rt.FlexItem,{display:"flex",className:"gatherpress-venue__icon"},(0,t.createElement)(Rt.Icon,{icon:"admin-site-alt3"})),(0,t.createElement)(Rt.FlexItem,null,(0,t.createElement)("div",{className:"gatherpress-venue__website"},(0,t.createElement)("a",{href:o,target:"_blank",rel:"noreferrer noopener"},o))))))),jt=({name:e="",fullAddress:n,phoneNumber:i,website:o,isOnlineEventTerm:r=!1,onlineEventLink:s=""})=>(0,t.createElement)(t.Fragment,null,!r&&(0,t.createElement)(Dt,{name:e,fullAddress:n,phoneNumber:i,website:o}),r&&(0,t.createElement)(Zt,{onlineEventLinkDefault:s}));i()((()=>{let e=document.querySelectorAll('[data-gatherpress_block_name="venue"]');for(let h=0;h array('moment', 'react', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-date', 'wp-edit-post', 'wp-element', 'wp-i18n', 'wp-plugins'), 'version' => '24014ba7345244e47c2e'); + array('moment', 'react', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-edit-post', 'wp-element', 'wp-i18n', 'wp-plugins'), 'version' => '607e152dcb640559a60f'); diff --git a/build/panels.js b/build/panels.js index a769906f9..274e7c527 100644 --- a/build/panels.js +++ b/build/panels.js @@ -1 +1,2 @@ -(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var s in n)e.o(n,s)&&!e.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:n[s]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.React,n=window.wp.i18n,s=window.wp.data,r=window.wp.components,a=window.wp.plugins,l=window.wp.editPost,i=window.moment;var o=e.n(i);const c=window.wp.apiFetch;var m=e.n(c);const u=window.wp.element;function d(){(0,s.dispatch)("core/editor")?.editPost({meta:{_non_existing_meta:!0}})}function p(e){if("object"==typeof GatherPress)return e.split(".").reduce(((e,t)=>e&&e[t]),GatherPress)}function g(e,t){if("object"!=typeof GatherPress)return;const n=e.split("."),s=n.pop();n.reduce(((e,t)=>{var n;return null!==(n=e[t])&&void 0!==n?n:e[t]={}}),GatherPress)[s]=t}const _=window.wp.date,h="YYYY-MM-DDTHH:mm:ss",E="YYYY-MM-DD HH:mm:ss",v=o().tz(S()).add(1,"day").set("hour",18).set("minute",0).set("second",0).format(h),f=o().tz(v,S()).add(2,"hours").format(h);function b(){return w(p("settings.dateFormat"))+" "+w(p("settings.timeFormat"))}function S(e=p("eventDetails.dateTime.timezone")){return o().tz.zone(e)?e:(0,n.__)("GMT","gatherpress")}function T(e=""){const t=/^([+-])(\d{2}):(00|15|30|45)$/,n=e.replace(t,"$1");return n!==e?"UTC"+n+parseInt(e.replace(t,"$2")).toString()+e.replace(t,"$3").replace("00","").replace("15",".25").replace("30",".5").replace("45",".75"):e}function P(e,t=null){!function(e){const t=o().tz(p("eventDetails.dateTime.datetime_end"),S()).valueOf(),n=o().tz(e,S()).valueOf();n>=t&&D(o().tz(n,S()).add(2,"hours").format(h))}(e),g("eventDetails.dateTime.datetime_start",e),"function"==typeof t&&t(e),d()}function D(e,t=null){!function(e){const t=o().tz(p("eventDetails.dateTime.datetime_start"),S()).valueOf(),n=o().tz(e,S()).valueOf();n<=t&&P(o().tz(n,S()).subtract(2,"hours").format(h))}(e),g("eventDetails.dateTime.datetime_end",e),null!==t&&t(e),d()}function C(){const e=(0,s.select)("core/editor").isSavingPost(),t=(0,s.select)("core/editor").isAutosavingPost();y()&&e&&!t&&m()({path:p("urls.eventRestApi")+"/datetime",method:"POST",data:{post_id:p("eventDetails.postId"),datetime_start:o().tz(p("eventDetails.dateTime.datetime_start"),S()).format(E),datetime_end:o().tz(p("eventDetails.dateTime.datetime_end"),S()).format(E),timezone:p("eventDetails.dateTime.timezone"),_wpnonce:p("misc.nonce")}}).then((()=>{!function(){const e="gatherpress_event_communcation",t=(0,s.dispatch)("core/notices");t.removeNotice(e),"publish"!==(0,s.select)("core/editor").getEditedPostAttribute("status")||N()||t.createNotice("success",(0,n.__)("Send an event update to members via email?","gatherpress"),{id:e,isDismissible:!0,actions:[{onClick:()=>{z({setOpen:!0})},label:(0,n.__)("Compose Message","gatherpress")}]})}()}))}function w(e){const t={d:"DD",D:"ddd",j:"D",l:"dddd",N:"E",S:"o",w:"e",z:"DDD",W:"W",F:"MMMM",m:"MM",M:"MMM",n:"M",t:"",L:"",o:"YYYY",Y:"YYYY",y:"YY",a:"a",A:"A",B:"",g:"h",G:"H",h:"hh",H:"HH",i:"mm",s:"ss",u:"SSS",e:"zz",I:"",O:"",P:"",T:"",Z:"",c:"",r:"",U:"X"};return String(e).split("").map(((e,n,s)=>{const r=s[n-1];return e in t&&"\\"!==r?t[e]:e})).join("")}const z=(e,t="")=>{for(const[n,s]of Object.entries(e)){let e=n;t&&(e+="_"+String(t));const r=new CustomEvent(e,{detail:s});dispatchEvent(r)}},k=(e,t="")=>{for(const[n,s]of Object.entries(e)){let e=n;t&&(e+="_"+String(t)),addEventListener(e,(e=>{s(e.detail)}),!1)}};function y(){return"gatherpress_event"===(0,s.select)("core/editor")?.getCurrentPostType()}function N(){const e=o().tz(p("eventDetails.dateTime.datetime_end"),S());return"gatherpress_event"===(0,s.select)("core/editor")?.getCurrentPostType()&&o().tz(S()).valueOf()>e.valueOf()}function x(){const e="gatherpress_event_past",t=(0,s.dispatch)("core/notices");t.removeNotice(e),N()&&t.createNotice("warning",(0,n.__)("This event has already passed.","gatherpress"),{id:e,isDismissible:!1})}const O=()=>{const{editPost:e,unlockPostSaving:a}=(0,s.useDispatch)("core/editor"),l=(0,s.useSelect)((e=>e("core/editor").isCleanNewPost()),[]);let i=(0,s.useSelect)((e=>e("core/editor").getEditedPostAttribute("meta").gatherpress_enable_anonymous_rsvp),[]);l&&(i=p("settings.enableAnonymousRsvp"));const[o,c]=(0,u.useState)(i),m=(0,u.useCallback)((t=>{const n={gatherpress_enable_anonymous_rsvp:Number(t)};c(t),e({meta:n}),a()}),[e,a]);return(0,u.useEffect)((()=>{l&&0!==i&&m(i)}),[l,i,m]),(0,t.createElement)(r.CheckboxControl,{label:(0,n.__)("Enable Anonymous RSVP","gatherpress"),checked:o,onChange:e=>{m(e)}})},A=()=>(0,t.createElement)("section",null,(0,t.createElement)(O,null)),M=()=>{const{editPost:e,unlockPostSaving:a}=(0,s.useDispatch)("core/editor"),l=(0,s.useSelect)((e=>e("core/editor").isCleanNewPost()),[]);let i=(0,s.useSelect)((e=>e("core/editor").getEditedPostAttribute("meta").gatherpress_enable_initial_decline),[]);l&&(i=p("settings.enableInitialDecline"));const[o,c]=(0,u.useState)(i),m=(0,u.useCallback)((t=>{const n={gatherpress_enable_initial_decline:Number(t)};c(t),e({meta:n}),a()}),[e,a]);return(0,u.useEffect)((()=>{l&&0!==i&&m(i)}),[l,i,m]),(0,t.createElement)(r.CheckboxControl,{label:(0,n.__)('Enable Immediate "Not Attending" Option for Attendees',"gatherpress"),checked:o,onChange:e=>{m(e)}})},F=()=>(0,t.createElement)("section",null,(0,t.createElement)(M,null)),Y=e=>{const{dateTimeStart:t}=e;return o().tz(t,S()).format(b())},j=e=>{const{dateTimeEnd:t}=e;return o().tz(t,S()).format(b())},I=e=>{const{dateTimeStart:n,setDateTimeStart:s}=e,a=(0,_.getSettings)(),l=/a(?!\\)/i.test(a.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return(0,t.createElement)(r.DateTimePicker,{currentDate:n,onChange:e=>P(e,s),is12Hour:l})},L=e=>{const{dateTimeEnd:n,setDateTimeEnd:s}=e,a=(0,_.getSettings)(),l=/a(?!\\)/i.test(a.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return(0,t.createElement)(r.DateTimePicker,{currentDate:n,onChange:e=>D(e,s),is12Hour:l})},R=e=>{const{dateTimeStart:s,setDateTimeStart:a}=e;return(0,u.useEffect)((()=>{a(o().tz(function(){let e=p("eventDetails.dateTime.datetime_start");return e=""!==e?o().tz(e,S()).format(h):v,g("eventDetails.dateTime.datetime_start",e),e}(),S()).format(h)),z({setDateTimeStart:s}),x()})),(0,t.createElement)(r.PanelRow,null,(0,t.createElement)(r.Flex,{direction:"column",gap:"0"},(0,t.createElement)(r.FlexItem,null,(0,t.createElement)("label",{htmlFor:"gatherpress-datetime-start"},(0,n.__)("Start","gatherpress"))),(0,t.createElement)(r.FlexItem,null,(0,t.createElement)(r.Dropdown,{popoverProps:{placement:"bottom-end"},renderToggle:({isOpen:e,onToggle:n})=>(0,t.createElement)(r.Button,{id:"gatherpress-datetime-start",onClick:n,"aria-expanded":e,isLink:!0},(0,t.createElement)(Y,{dateTimeStart:s})),renderContent:()=>(0,t.createElement)(I,{dateTimeStart:s,setDateTimeStart:a})}))))},H=e=>{const{dateTimeEnd:s,setDateTimeEnd:a}=e;return(0,u.useEffect)((()=>{a(o().tz(function(){let e=p("eventDetails.dateTime.datetime_end");return e=""!==e?o().tz(e,S()).format(h):f,g("eventDetails.dateTime.datetime_end",e),e}(),S()).format(h)),z({setDateTimeEnd:s}),x()})),(0,t.createElement)(r.PanelRow,null,(0,t.createElement)(r.Flex,{direction:"column",gap:"0"},(0,t.createElement)(r.FlexItem,null,(0,t.createElement)("label",{htmlFor:"gatherpress-datetime-end"},(0,n.__)("End","gatherpress"))),(0,t.createElement)(r.FlexItem,null,(0,t.createElement)(r.Dropdown,{popoverProps:{placement:"bottom-end"},renderToggle:({isOpen:e,onToggle:n})=>(0,t.createElement)(r.Button,{id:"gatherpress-datetime-end",onClick:n,"aria-expanded":e,isLink:!0},(0,t.createElement)(j,{dateTimeEnd:s})),renderContent:()=>(0,t.createElement)(L,{dateTimeEnd:s,setDateTimeEnd:a})}))))},G=e=>{const{timezone:s,setTimezone:a}=e,l=p("misc.timezoneChoices");return(0,u.useEffect)((()=>{a(p("eventDetails.dateTime.timezone"))}),[a]),(0,u.useEffect)((()=>{z({setTimezone:p("eventDetails.dateTime.timezone")})})),(0,t.createElement)(r.PanelRow,null,(0,t.createElement)(r.SelectControl,{label:(0,n.__)("Time Zone","gatherpress"),value:T(s),onChange:e=>{e=function(e=""){const t=/^UTC([+-])(\d+)(.\d+)?$/,n=e.replace(t,"$1");if(n!==e){const s=e.replace(t,"$2").padStart(2,"0");let r=e.replace(t,"$3");return""===r&&(r=":00"),r=r.replace(".25",":15").replace(".5",":30").replace(".75",":45"),n+s+r}return e}(e),a(e),g("eventDetails.dateTime.timezone",e),d()}},Object.keys(l).map((e=>(0,t.createElement)("optgroup",{key:e,label:e},Object.keys(l[e]).map((n=>(0,t.createElement)("option",{key:n,value:n},l[e][n]))))))))},$=()=>{const[e,r]=(0,u.useState)(),[a,l]=(0,u.useState)(),[i,o]=(0,u.useState)();return(0,s.subscribe)(C),(0,t.createElement)(t.Fragment,null,(0,t.createElement)("h3",null,(0,n.__)("Date & time","gatherpress")),(0,t.createElement)(R,{dateTimeStart:e,setDateTimeStart:r}),(0,t.createElement)(H,{dateTimeEnd:a,setDateTimeEnd:l}),(0,t.createElement)(G,{timezone:i,setTimezone:o}))},W=()=>(0,t.createElement)("section",null,(0,t.createElement)($,null)),B=()=>{const{editPost:e,unlockPostSaving:a}=(0,s.useDispatch)("core/editor"),l=(0,s.useSelect)((e=>e("core/editor").isCleanNewPost()),[]);let i=(0,s.useSelect)((e=>e("core/editor").getEditedPostAttribute("meta").gatherpress_max_guest_limit),[]);l&&(i=p("settings.maxGuestLimit")),!1===i&&(i=0);const[o,c]=(0,u.useState)(i),m=(0,u.useCallback)((t=>{const n={gatherpress_max_guest_limit:Number(t)};c(t),e({meta:n}),a()}),[e,a]);return(0,u.useEffect)((()=>{l&&0!==i&&m(i)}),[l,i,m]),(0,t.createElement)(r.__experimentalNumberControl,{label:(0,n.__)("Maximum Number of Guests","gatherpress"),value:o,min:0,max:5,onChange:e=>{m(e)}})},V=()=>(0,t.createElement)("section",null,(0,t.createElement)(B,null)),J=()=>{const{editPost:e,unlockPostSaving:a}=(0,s.useDispatch)("core/editor"),l=(0,s.useSelect)((e=>e("core/editor").isCleanNewPost()),[]);let i=(0,s.useSelect)((e=>e("core/editor").getEditedPostAttribute("meta").gatherpress_max_attendance_limit),[]);l&&(i=p("settings.maxAttendanceLimit")),!1===i&&(i=0);const[o,c]=(0,u.useState)(i),m=(0,u.useCallback)((t=>{const n={gatherpress_max_attendance_limit:Number(t)};c(t),e({meta:n}),a()}),[e,a]);return(0,u.useEffect)((()=>{l&&0!==i&&m(i)}),[l,i,m]),(0,t.createElement)(t.Fragment,null,(0,t.createElement)(r.__experimentalNumberControl,{label:(0,n.__)("Maximum Attendance Limit","gatherpress"),value:o,min:0,onChange:e=>{m(e)}}),(0,t.createElement)("p",{className:"description"},(0,n.__)("A value of 0 indicates no limit.","gatherpress")))},U=()=>(0,t.createElement)("section",null,(0,t.createElement)(J,null)),Z=()=>"publish"===(0,s.select)("core/editor").getEditedPostAttribute("status")&&!N()&&(0,t.createElement)("section",null,(0,t.createElement)("h3",{style:{marginBottom:"0.5rem"}},(0,n.__)("Send an event update","gatherpress")),(0,t.createElement)(r.Button,{variant:"secondary",onClick:()=>z({setOpen:!0})},(0,n.__)("Compose Message","gatherpress"))),X=()=>{const{editPost:e,unlockPostSaving:a}=(0,s.useDispatch)("core/editor"),l=(0,s.useSelect)((e=>e("core/editor").getEditedPostAttribute("meta").gatherpress_online_event_link)),[i,o]=(0,u.useState)(l);return k({setOnlineEventLink:o},p("eventDetails.postId")),(0,t.createElement)(r.TextControl,{label:(0,n.__)("Online event link","gatherpress"),value:i,placeholder:(0,n.__)("Add link to online event","gatherpress"),onChange:t=>{(t=>{e({meta:{gatherpress_online_event_link:t}}),o(t),z({setOnlineEventLink:t},p("eventDetails.postId")),a()})(t)}})},q=()=>(0,t.createElement)("section",null,(0,t.createElement)(X,null)),K=()=>{const[e,a]=(0,u.useState)(""),[l,i]=(0,u.useState)(""),[o,c]=(0,u.useState)(""),[m,d]=(0,u.useState)(""),[p,g]=(0,u.useState)(!1),[_,h]=(0,u.useState)(""),E=(0,s.useDispatch)("core/editor").editPost,{unlockPostSaving:v}=(0,s.useDispatch)("core/editor"),f=(0,s.useSelect)((e=>e("core/editor").getEditedPostAttribute("_gatherpress_venue"))),b=(0,s.useSelect)((e=>e("core").getEntityRecord("taxonomy","_gatherpress_venue",f))),S=b?.slug.replace(/^_/,""),[T,P]=(0,u.useState)(""),D=f+":"+T,C=(0,s.useSelect)((e=>e("core").getEntityRecords("postType","gatherpress_venue",{per_page:1,slug:T})));(0,u.useEffect)((()=>{var e,t,s,r;let l={};if(T&&Array.isArray(C)){var o;const e=null!==(o=C[0]?.meta?.gatherpress_venue_information)&&void 0!==o?o:"{}";var m;e&&(l=JSON.parse(e),l.name=null!==(m=C[0]?.title.rendered)&&void 0!==m?m:"")}const u=null!==(e=l?.name)&&void 0!==e?e:(0,n.__)("No venue selected.","gatherpress"),p=null!==(t=l?.fullAddress)&&void 0!==t?t:"",g=null!==(s=l?.phoneNumber)&&void 0!==s?s:"",_=null!==(r=l?.website)&&void 0!==r?r:"";S&&P(S),h(D?String(D):""),a(u),i(p),c(g),d(_),z({setName:u,setFullAddress:p,setPhoneNumber:g,setWebsite:_,setIsOnlineEventTerm:"online-event"===T})}),[T,C,S,D]);let w=(0,s.useSelect)((e=>e("core").getEntityRecords("taxonomy","_gatherpress_venue",{per_page:-1,context:"view"})),[]);return w?(w=w.map((e=>({label:e.name,value:e.id+":"+e.slug.replace(/^_/,"")}))),w.unshift({value:":",label:(0,n.__)("Choose a venue","gatherpress")})):w=[],(0,t.createElement)(r.PanelRow,null,(0,t.createElement)(r.SelectControl,{label:(0,n.__)("Venue Selector","gatherpress"),value:_,onChange:e=>{(e=>{h(e);const t=""!==(e=e.split(":"))[0]?[e[0]]:[];E({_gatherpress_venue:t}),P(e[1]),v()})(e)},options:w}))},Q=()=>(0,t.createElement)("section",null,(0,t.createElement)(K,null));(0,a.registerPlugin)("gatherpress-event-settings",{render:()=>y()&&(0,t.createElement)(l.PluginDocumentSettingPanel,{name:"gatherpress-event-settings",title:(0,n.__)("Event settings","gatherpress"),initialOpen:!0,className:"gatherpress-event-settings"},(0,t.createElement)(r.__experimentalVStack,{spacing:6},(0,t.createElement)(W,null),(0,t.createElement)(Q,null),(0,t.createElement)(q,null),(0,t.createElement)(V,null),(0,t.createElement)(U,null),(0,t.createElement)(A,null),(0,t.createElement)(F,null),(0,t.createElement)(Z,null)))}),(0,s.dispatch)("core/edit-post").toggleEditorPanelOpened("gatherpress-event-settings/gatherpress-event-settings");const ee=()=>{var e,a,l;const i=(0,s.useDispatch)("core/editor").editPost,o=(e,t)=>{const n=JSON.stringify({...c,[e]:t});i({meta:{gatherpress_venue_information:n}})};let c=(0,s.useSelect)((e=>e("core/editor").getEditedPostAttribute("meta").gatherpress_venue_information));c=c?JSON.parse(c):{};const[m,d]=(0,u.useState)(null!==(e=c.fullAddress)&&void 0!==e?e:""),[p,g]=(0,u.useState)(null!==(a=c.phoneNumber)&&void 0!==a?a:""),[_,h]=(0,u.useState)(null!==(l=c.website)&&void 0!==l?l:"");return k({setFullAddress:d,setPhoneNumber:g,setWebsite:h}),(0,t.createElement)(t.Fragment,null,(0,t.createElement)(r.TextControl,{label:(0,n.__)("Full Address","gatherpress"),value:m,onChange:e=>{z({setFullAddress:e}),o("fullAddress",e)}}),(0,t.createElement)(r.TextControl,{label:(0,n.__)("Phone Number","gatherpress"),value:p,onChange:e=>{z({setPhoneNumber:e}),o("phoneNumber",e)}}),(0,t.createElement)(r.TextControl,{label:(0,n.__)("Website","gatherpress"),value:_,type:"url",onChange:e=>{z({setWebsite:e}),o("website",e)}}))},te=()=>(0,t.createElement)("section",null,(0,t.createElement)(ee,null));(0,a.registerPlugin)("gatherpress-venue-settings",{render:()=>"gatherpress_venue"===(0,s.select)("core/editor")?.getCurrentPostType()&&(0,t.createElement)(l.PluginDocumentSettingPanel,{name:"gatherpress-venue-settings",title:(0,n.__)("Venue settings","gatherpress"),initialOpen:!0,className:"gatherpress-venue-settings"},(0,t.createElement)(r.__experimentalVStack,{spacing:6},(0,t.createElement)(te,null)))}),(0,s.dispatch)("core/edit-post").toggleEditorPanelOpened("gatherpress-venue-settings/gatherpress-venue-settings")})(); \ No newline at end of file +(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var s in n)e.o(n,s)&&!e.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:n[s]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.React,n=window.wp.i18n,s=window.wp.data,r=window.wp.components,a=window.wp.plugins,l=window.wp.editPost,o=window.moment;var i=e.n(o);const c=window.wp.apiFetch;var u=e.n(c);const m=window.wp.element;function d(){(0,s.dispatch)("core/editor")?.editPost({meta:{_non_existing_meta:!0}})}function p(e){if("object"==typeof GatherPress)return e.split(".").reduce(((e,t)=>e&&e[t]),GatherPress)}function g(e,t){if("object"!=typeof GatherPress)return;const n=e.split("."),s=n.pop();n.reduce(((e,t)=>{var n;return null!==(n=e[t])&&void 0!==n?n:e[t]={}}),GatherPress)[s]=t}const _=window.wp.date,h="YYYY-MM-DDTHH:mm:ss",E="YYYY-MM-DD HH:mm:ss",v=i().tz(S()).add(1,"day").set("hour",18).set("minute",0).set("second",0).format(h),f=i().tz(v,S()).add(2,"hours").format(h);function b(){return C(p("settings.dateFormat"))+" "+C(p("settings.timeFormat"))}function S(e=p("eventDetails.dateTime.timezone")){return i().tz.zone(e)?e:(0,n.__)("GMT","gatherpress")}function T(e=""){const t=/^([+-])(\d{2}):(00|15|30|45)$/,n=e.replace(t,"$1");return n!==e?"UTC"+n+parseInt(e.replace(t,"$2")).toString()+e.replace(t,"$3").replace("00","").replace("15",".25").replace("30",".5").replace("45",".75"):e}function P(e,t=null){!function(e){const t=i().tz(p("eventDetails.dateTime.datetime_end"),S()).valueOf(),n=i().tz(e,S()).valueOf();n>=t&&D(i().tz(n,S()).add(2,"hours").format(h))}(e),g("eventDetails.dateTime.datetime_start",e),"function"==typeof t&&t(e),d()}function D(e,t=null){!function(e){const t=i().tz(p("eventDetails.dateTime.datetime_start"),S()).valueOf(),n=i().tz(e,S()).valueOf();n<=t&&P(i().tz(n,S()).subtract(2,"hours").format(h))}(e),g("eventDetails.dateTime.datetime_end",e),null!==t&&t(e),d()}function w(){const e=(0,s.select)("core/editor").isSavingPost(),t=(0,s.select)("core/editor").isAutosavingPost();y()&&e&&!t&&u()({path:p("urls.eventRestApi")+"/datetime",method:"POST",data:{post_id:p("eventDetails.postId"),datetime_start:i().tz(p("eventDetails.dateTime.datetime_start"),S()).format(E),datetime_end:i().tz(p("eventDetails.dateTime.datetime_end"),S()).format(E),timezone:p("eventDetails.dateTime.timezone"),_wpnonce:p("misc.nonce")}}).then((()=>{!function(){const e="gatherpress_event_communcation",t=(0,s.dispatch)("core/notices");t.removeNotice(e),"publish"!==(0,s.select)("core/editor").getEditedPostAttribute("status")||N()||t.createNotice("success",(0,n.__)("Send an event update to members via email?","gatherpress"),{id:e,isDismissible:!0,actions:[{onClick:()=>{k({setOpen:!0})},label:(0,n.__)("Compose Message","gatherpress")}]})}()}))}function C(e){const t={d:"DD",D:"ddd",j:"D",l:"dddd",N:"E",S:"o",w:"e",z:"DDD",W:"W",F:"MMMM",m:"MM",M:"MMM",n:"M",t:"",L:"",o:"YYYY",Y:"YYYY",y:"YY",a:"a",A:"A",B:"",g:"h",G:"H",h:"hh",H:"HH",i:"mm",s:"ss",u:"SSS",e:"zz",I:"",O:"",P:"",T:"",Z:"",c:"",r:"",U:"X"};return String(e).split("").map(((e,n,s)=>{const r=s[n-1];return e in t&&"\\"!==r?t[e]:e})).join("")}const k=(e,t="")=>{for(const[n,s]of Object.entries(e)){let e=n;t&&(e+="_"+String(t));const r=new CustomEvent(e,{detail:s});dispatchEvent(r)}},z=(e,t="")=>{for(const[n,s]of Object.entries(e)){let e=n;t&&(e+="_"+String(t)),addEventListener(e,(e=>{s(e.detail)}),!1)}};function y(){return"gatherpress_event"===(0,s.select)("core/editor")?.getCurrentPostType()}function N(){const e=i().tz(p("eventDetails.dateTime.datetime_end"),S());return"gatherpress_event"===(0,s.select)("core/editor")?.getCurrentPostType()&&i().tz(S()).valueOf()>e.valueOf()}function x(){const e="gatherpress_event_past",t=(0,s.dispatch)("core/notices");t.removeNotice(e),N()&&t.createNotice("warning",(0,n.__)("This event has already passed.","gatherpress"),{id:e,isDismissible:!1})}const O=()=>{const{editPost:e,unlockPostSaving:a}=(0,s.useDispatch)("core/editor"),l=(0,s.useSelect)((e=>e("core/editor").isCleanNewPost()),[]);let o=(0,s.useSelect)((e=>e("core/editor").getEditedPostAttribute("meta").gatherpress_enable_anonymous_rsvp),[]);l&&(o=p("settings.enableAnonymousRsvp"));const[i,c]=(0,m.useState)(o),u=(0,m.useCallback)((t=>{const n={gatherpress_enable_anonymous_rsvp:Number(t)};c(t),e({meta:n}),a()}),[e,a]);return(0,m.useEffect)((()=>{l&&0!==o&&u(o)}),[l,o,u]),(0,t.createElement)(r.CheckboxControl,{label:(0,n.__)("Enable Anonymous RSVP","gatherpress"),checked:i,onChange:e=>{u(e)}})},A=()=>(0,t.createElement)("section",null,(0,t.createElement)(O,null)),M=()=>{const{editPost:e,unlockPostSaving:a}=(0,s.useDispatch)("core/editor"),l=(0,s.useSelect)((e=>e("core/editor").isCleanNewPost()),[]);let o=(0,s.useSelect)((e=>e("core/editor").getEditedPostAttribute("meta").gatherpress_enable_initial_decline),[]);l&&(o=p("settings.enableInitialDecline"));const[i,c]=(0,m.useState)(o),u=(0,m.useCallback)((t=>{const n={gatherpress_enable_initial_decline:Number(t)};c(t),e({meta:n}),a()}),[e,a]);return(0,m.useEffect)((()=>{l&&0!==o&&u(o)}),[l,o,u]),(0,t.createElement)(r.CheckboxControl,{label:(0,n.__)('Enable Immediate "Not Attending" Option for Attendees',"gatherpress"),checked:i,onChange:e=>{u(e)}})},F=()=>(0,t.createElement)("section",null,(0,t.createElement)(M,null)),Y=e=>{const{dateTimeStart:t}=e;return i().tz(t,S()).format(b())},j=e=>{const{dateTimeEnd:t}=e;return i().tz(t,S()).format(b())},L=e=>{const{dateTimeStart:n,setDateTimeStart:s}=e,a=(0,_.getSettings)(),l=/a(?!\\)/i.test(a.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return(0,t.createElement)(r.DateTimePicker,{currentDate:n,onChange:e=>P(e,s),is12Hour:l})},I=e=>{const{dateTimeEnd:n,setDateTimeEnd:s}=e,a=(0,_.getSettings)(),l=/a(?!\\)/i.test(a.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return(0,t.createElement)(r.DateTimePicker,{currentDate:n,onChange:e=>D(e,s),is12Hour:l})},R=e=>{const{dateTimeStart:s,setDateTimeStart:a}=e;return(0,m.useEffect)((()=>{a(i().tz(function(){let e=p("eventDetails.dateTime.datetime_start");return e=""!==e?i().tz(e,S()).format(h):v,g("eventDetails.dateTime.datetime_start",e),e}(),S()).format(h)),k({setDateTimeStart:s}),x()})),(0,t.createElement)(r.PanelRow,null,(0,t.createElement)(r.Flex,{direction:"column",gap:"0"},(0,t.createElement)(r.FlexItem,null,(0,t.createElement)("label",{htmlFor:"gatherpress-datetime-start"},(0,n.__)("Start","gatherpress"))),(0,t.createElement)(r.FlexItem,null,(0,t.createElement)(r.Dropdown,{popoverProps:{placement:"bottom-end"},renderToggle:({isOpen:e,onToggle:n})=>(0,t.createElement)(r.Button,{id:"gatherpress-datetime-start",onClick:n,"aria-expanded":e,isLink:!0},(0,t.createElement)(Y,{dateTimeStart:s})),renderContent:()=>(0,t.createElement)(L,{dateTimeStart:s,setDateTimeStart:a})}))))},H=e=>{const{dateTimeEnd:s,setDateTimeEnd:a}=e;return(0,m.useEffect)((()=>{a(i().tz(function(){let e=p("eventDetails.dateTime.datetime_end");return e=""!==e?i().tz(e,S()).format(h):f,g("eventDetails.dateTime.datetime_end",e),e}(),S()).format(h)),k({setDateTimeEnd:s}),x()})),(0,t.createElement)(r.PanelRow,null,(0,t.createElement)(r.Flex,{direction:"column",gap:"0"},(0,t.createElement)(r.FlexItem,null,(0,t.createElement)("label",{htmlFor:"gatherpress-datetime-end"},(0,n.__)("End","gatherpress"))),(0,t.createElement)(r.FlexItem,null,(0,t.createElement)(r.Dropdown,{popoverProps:{placement:"bottom-end"},renderToggle:({isOpen:e,onToggle:n})=>(0,t.createElement)(r.Button,{id:"gatherpress-datetime-end",onClick:n,"aria-expanded":e,isLink:!0},(0,t.createElement)(j,{dateTimeEnd:s})),renderContent:()=>(0,t.createElement)(I,{dateTimeEnd:s,setDateTimeEnd:a})}))))},$=e=>{const{timezone:s,setTimezone:a}=e,l=p("misc.timezoneChoices");return(0,m.useEffect)((()=>{a(p("eventDetails.dateTime.timezone"))}),[a]),(0,m.useEffect)((()=>{k({setTimezone:p("eventDetails.dateTime.timezone")})})),(0,t.createElement)(r.PanelRow,null,(0,t.createElement)(r.SelectControl,{label:(0,n.__)("Time Zone","gatherpress"),value:T(s),onChange:e=>{e=function(e=""){const t=/^UTC([+-])(\d+)(.\d+)?$/,n=e.replace(t,"$1");if(n!==e){const s=e.replace(t,"$2").padStart(2,"0");let r=e.replace(t,"$3");return""===r&&(r=":00"),r=r.replace(".25",":15").replace(".5",":30").replace(".75",":45"),n+s+r}return e}(e),a(e),g("eventDetails.dateTime.timezone",e),d()}},Object.keys(l).map((e=>(0,t.createElement)("optgroup",{key:e,label:e},Object.keys(l[e]).map((n=>(0,t.createElement)("option",{key:n,value:n},l[e][n]))))))))},G=()=>{const[e,r]=(0,m.useState)(),[a,l]=(0,m.useState)(),[o,i]=(0,m.useState)();return(0,s.subscribe)(w),(0,t.createElement)(t.Fragment,null,(0,t.createElement)("h3",null,(0,n.__)("Date & time","gatherpress")),(0,t.createElement)(R,{dateTimeStart:e,setDateTimeStart:r}),(0,t.createElement)(H,{dateTimeEnd:a,setDateTimeEnd:l}),(0,t.createElement)($,{timezone:o,setTimezone:i}))},W=()=>(0,t.createElement)("section",null,(0,t.createElement)(G,null)),B=()=>{const{editPost:e,unlockPostSaving:a}=(0,s.useDispatch)("core/editor"),l=(0,s.useSelect)((e=>e("core/editor").isCleanNewPost()),[]);let o=(0,s.useSelect)((e=>e("core/editor").getEditedPostAttribute("meta").gatherpress_max_guest_limit),[]);l&&(o=p("settings.maxGuestLimit")),!1===o&&(o=0);const[i,c]=(0,m.useState)(o),u=(0,m.useCallback)((t=>{const n={gatherpress_max_guest_limit:Number(t)};c(t),e({meta:n}),a()}),[e,a]);return(0,m.useEffect)((()=>{l&&0!==o&&u(o)}),[l,o,u]),(0,t.createElement)(r.__experimentalNumberControl,{label:(0,n.__)("Maximum Number of Guests","gatherpress"),value:i,min:0,max:5,onChange:e=>{u(e)}})},V=()=>(0,t.createElement)("section",null,(0,t.createElement)(B,null)),J=()=>{const{editPost:e,unlockPostSaving:a}=(0,s.useDispatch)("core/editor"),l=(0,s.useSelect)((e=>e("core/editor").isCleanNewPost()),[]);let o=(0,s.useSelect)((e=>e("core/editor").getEditedPostAttribute("meta").gatherpress_max_attendance_limit),[]);l&&(o=p("settings.maxAttendanceLimit")),!1===o&&(o=0);const[i,c]=(0,m.useState)(o),u=(0,m.useCallback)((t=>{const n={gatherpress_max_attendance_limit:Number(t)};c(t),e({meta:n}),a()}),[e,a]);return(0,m.useEffect)((()=>{l&&0!==o&&u(o)}),[l,o,u]),(0,t.createElement)(t.Fragment,null,(0,t.createElement)(r.__experimentalNumberControl,{label:(0,n.__)("Maximum Attendance Limit","gatherpress"),value:i,min:0,onChange:e=>{u(e)}}),(0,t.createElement)("p",{className:"description"},(0,n.__)("A value of 0 indicates no limit.","gatherpress")))},U=()=>(0,t.createElement)("section",null,(0,t.createElement)(J,null)),Z=()=>"publish"===(0,s.select)("core/editor").getEditedPostAttribute("status")&&!N()&&(0,t.createElement)("section",null,(0,t.createElement)("h3",{style:{marginBottom:"0.5rem"}},(0,n.__)("Send an event update","gatherpress")),(0,t.createElement)(r.Button,{variant:"secondary",onClick:()=>k({setOpen:!0})},(0,n.__)("Compose Message","gatherpress"))),q=()=>{const{editPost:e,unlockPostSaving:a}=(0,s.useDispatch)("core/editor"),l=(0,s.useSelect)((e=>e("core/editor").getEditedPostAttribute("meta").gatherpress_online_event_link)),[o,i]=(0,m.useState)(l);return z({setOnlineEventLink:i},p("eventDetails.postId")),(0,t.createElement)(r.TextControl,{label:(0,n.__)("Online event link","gatherpress"),value:o,placeholder:(0,n.__)("Add link to online event","gatherpress"),onChange:t=>{(t=>{e({meta:{gatherpress_online_event_link:t}}),i(t),k({setOnlineEventLink:t},p("eventDetails.postId")),a()})(t)}})},X=()=>(0,t.createElement)("section",null,(0,t.createElement)(q,null)),K=()=>{const[e,a]=(0,m.useState)(""),[l,o]=(0,m.useState)(""),[i,c]=(0,m.useState)(""),[u,d]=(0,m.useState)(""),[p,g]=(0,m.useState)(!1),[_,h]=(0,m.useState)(""),[E,v]=(0,m.useState)(""),[f,b]=(0,m.useState)(""),S=(0,s.useDispatch)("core/editor").editPost,{unlockPostSaving:T}=(0,s.useDispatch)("core/editor"),P=(0,s.useSelect)((e=>e("core/editor").getEditedPostAttribute("_gatherpress_venue"))),D=(0,s.useSelect)((e=>e("core").getEntityRecord("taxonomy","_gatherpress_venue",P))),w=D?.slug.replace(/^_/,""),[C,z]=(0,m.useState)(""),y=P+":"+C,N=(0,s.useSelect)((e=>e("core").getEntityRecords("postType","gatherpress_venue",{per_page:1,slug:C})));(0,m.useEffect)((()=>{var e,t,s,r,l,i;let u={};if(C&&Array.isArray(N)){var m;const e=null!==(m=N[0]?.meta?.gatherpress_venue_information)&&void 0!==m?m:"{}";var p;e&&(u=JSON.parse(e),u.name=null!==(p=N[0]?.title.rendered)&&void 0!==p?p:"")}const g=null!==(e=u?.name)&&void 0!==e?e:(0,n.__)("No venue selected.","gatherpress"),_=null!==(t=u?.fullAddress)&&void 0!==t?t:"",E=null!==(s=u?.phoneNumber)&&void 0!==s?s:"",f=null!==(r=u?.website)&&void 0!==r?r:"",S=null!==(l=u?.latitude)&&void 0!==l?l:"0",T=null!==(i=u?.longitude)&&void 0!==i?i:"0";w&&z(w),b(y?String(y):""),a(g),o(_),c(E),d(f),h(S),v(T),k({setName:g,setFullAddress:_,setPhoneNumber:E,setWebsite:f,setLatitude:S,setLongitude:T,setIsOnlineEventTerm:"online-event"===C})}),[C,N,w,y]);let x=(0,s.useSelect)((e=>e("core").getEntityRecords("taxonomy","_gatherpress_venue",{per_page:-1,context:"view"})),[]);return x?(x=x.map((e=>({label:e.name,value:e.id+":"+e.slug.replace(/^_/,"")}))),x.unshift({value:":",label:(0,n.__)("Choose a venue","gatherpress")})):x=[],(0,t.createElement)(r.PanelRow,null,(0,t.createElement)(r.SelectControl,{label:(0,n.__)("Venue Selector","gatherpress"),value:f,onChange:e=>{(e=>{b(e);const t=""!==(e=e.split(":"))[0]?[e[0]]:[];S({_gatherpress_venue:t}),z(e[1]),T()})(e)},options:x}))},Q=()=>(0,t.createElement)("section",null,(0,t.createElement)(K,null));(0,a.registerPlugin)("gatherpress-event-settings",{render:()=>y()&&(0,t.createElement)(l.PluginDocumentSettingPanel,{name:"gatherpress-event-settings",title:(0,n.__)("Event settings","gatherpress"),initialOpen:!0,className:"gatherpress-event-settings"},(0,t.createElement)(r.__experimentalVStack,{spacing:6},(0,t.createElement)(W,null),(0,t.createElement)(Q,null),(0,t.createElement)(X,null),(0,t.createElement)(V,null),(0,t.createElement)(U,null),(0,t.createElement)(A,null),(0,t.createElement)(F,null),(0,t.createElement)(Z,null)))}),(0,s.dispatch)("core/edit-post").toggleEditorPanelOpened("gatherpress-event-settings/gatherpress-event-settings");const ee=window.wp.compose,te=()=>{var e,a,l;const o=(0,s.useDispatch)("core/editor").editPost,i=e=>{const t=JSON.stringify({...c,...e});o({meta:{gatherpress_venue_information:t}})};let c=(0,s.useSelect)((e=>e("core/editor").getEditedPostAttribute("meta").gatherpress_venue_information));c=c?JSON.parse(c):{};const[u,d]=(0,m.useState)(null!==(e=c.fullAddress)&&void 0!==e?e:""),[p,g]=(0,m.useState)(null!==(a=c.phoneNumber)&&void 0!==a?a:""),[_,h]=(0,m.useState)(null!==(l=c.website)&&void 0!==l?l:"");z({setFullAddress:d,setPhoneNumber:g,setWebsite:h});const E=(0,m.useRef)(i),v=(0,m.useCallback)((()=>{let e=null,t=null;fetch(`https://nominatim.openstreetmap.org/search?q=${u}&format=geojson`).then((e=>{if(!e.ok)throw new Error((0,n.sprintf)(/* translators: %s: Error message */ /* translators: %s: Error message */ +(0,n.__)("Network response was not ok %s","gatherpress"),e.statusText));return e.json()})).then((n=>{n.features.length>0&&(e=n.features[0].geometry.coordinates[1],t=n.features[0].geometry.coordinates[0]),E.current({latitude:e,longitude:t})}))}),[u]),f=(0,ee.useDebounce)(v,300);return(0,m.useEffect)((()=>{E.current=i}),[i]),(0,m.useEffect)((()=>{f()}),[u,f]),(0,t.createElement)(t.Fragment,null,(0,t.createElement)(r.TextControl,{label:(0,n.__)("Full Address","gatherpress"),value:u,onChange:e=>{k({setFullAddress:e}),i({fullAddress:e})}}),(0,t.createElement)(r.TextControl,{label:(0,n.__)("Phone Number","gatherpress"),value:p,onChange:e=>{k({setPhoneNumber:e}),i({phoneNumber:e})}}),(0,t.createElement)(r.TextControl,{label:(0,n.__)("Website","gatherpress"),value:_,type:"url",onChange:e=>{k({setWebsite:e}),i({website:e})}}))},ne=()=>(0,t.createElement)("section",null,(0,t.createElement)(te,null));(0,a.registerPlugin)("gatherpress-venue-settings",{render:()=>"gatherpress_venue"===(0,s.select)("core/editor")?.getCurrentPostType()&&(0,t.createElement)(l.PluginDocumentSettingPanel,{name:"gatherpress-venue-settings",title:(0,n.__)("Venue settings","gatherpress"),initialOpen:!0,className:"gatherpress-venue-settings"},(0,t.createElement)(r.__experimentalVStack,{spacing:6},(0,t.createElement)(ne,null)))}),(0,s.dispatch)("core/edit-post").toggleEditorPanelOpened("gatherpress-venue-settings/gatherpress-venue-settings")})(); \ No newline at end of file diff --git a/includes/core/classes/class-assets.php b/includes/core/classes/class-assets.php index fe4ef2844..06c459ded 100644 --- a/includes/core/classes/class-assets.php +++ b/includes/core/classes/class-assets.php @@ -310,12 +310,14 @@ protected function localize( int $post_id ): array { 'dateFormat' => $settings->get_value( 'general', 'formatting', 'date_format' ), 'enableAnonymousRsvp' => ( 1 === (int) $settings->get_value( 'general', 'general', 'enable_anonymous_rsvp' ) ), 'enableInitialDecline' => ( 1 === (int) $settings->get_value( 'general', 'general', 'enable_initial_decline' ) ), + 'mapPlatform' => $settings->get_value( 'general', 'general', 'map_platform' ), 'maxAttendanceLimit' => $settings->get_value( 'general', 'general', 'max_attendance_limit' ), 'maxGuestLimit' => $settings->get_value( 'general', 'general', 'max_guest_limit' ), 'showTimezone' => ( 1 === (int) $settings->get_value( 'general', 'formatting', 'show_timezone' ) ), 'timeFormat' => $settings->get_value( 'general', 'formatting', 'time_format' ), ), 'urls' => array( + 'pluginUrl' => GATHERPRESS_CORE_URL, 'eventRestApi' => $event_rest_api, 'loginUrl' => $this->get_login_url( $post_id ), 'registrationUrl' => $this->get_registration_url( $post_id ), diff --git a/includes/core/classes/class-block.php b/includes/core/classes/class-block.php index d2ebb7d95..a20b606cf 100644 --- a/includes/core/classes/class-block.php +++ b/includes/core/classes/class-block.php @@ -65,6 +65,7 @@ protected function setup_hooks(): void { public function register_blocks(): void { $blocks_directory = sprintf( '%1$s/build/blocks/', GATHERPRESS_CORE_PATH ); $blocks = array_diff( scandir( $blocks_directory ), array( '..', '.' ) ); + foreach ( $blocks as $block ) { register_block_type( sprintf( '%1$s/build/blocks/%2$s', GATHERPRESS_CORE_PATH, $block ) diff --git a/includes/core/classes/class-settings.php b/includes/core/classes/class-settings.php index 0fff0d9bc..9c0663e12 100644 --- a/includes/core/classes/class-settings.php +++ b/includes/core/classes/class-settings.php @@ -374,6 +374,39 @@ public function checkbox( string $sub_page, string $section, string $option, arr ); } + /** + * Outputs a select input field for a settings option. + * + * This method is responsible for rendering a select input field as a part of the plugin's settings page. + * It takes the sub-page, section, option, and option settings as parameters and displays the select input field + * with the specified name, value, label, and description. + * + * @since 1.0.0 + * + * @param string $sub_page The sub page for the select field. + * @param string $section The section for the select field. + * @param string $option The option for the select field. + * @param array $option_settings The option settings. + * @return void + */ + public function select( string $sub_page, string $section, string $option, array $option_settings ): void { + $name = $this->get_name_field( $sub_page, $section, $option ); + $value = $this->get_value( $sub_page, $section, $option ); + + Utility::render_template( + sprintf( '%s/includes/templates/admin/settings/fields/select.php', GATHERPRESS_CORE_PATH ), + array( + 'name' => $name, + 'option' => Utility::prefix_key( $option ), + 'options' => $option_settings['field']['options'] ?? '', + 'value' => $value, + 'label' => $option_settings['field']['label'] ?? '', + 'description' => $option_settings['description'] ?? '', + ), + true + ); + } + /** * Outputs a dynamic select field for a type of content in the settings page. * diff --git a/includes/core/classes/settings/class-general.php b/includes/core/classes/settings/class-general.php index c6d76a15c..b6431d513 100644 --- a/includes/core/classes/settings/class-general.php +++ b/includes/core/classes/settings/class-general.php @@ -103,6 +103,23 @@ protected function get_sections(): array { ), ), ), + 'map_platform' => array( + 'labels' => array( + 'name' => __( 'Mapping Platform', 'gatherpress' ), + ), + 'description' => __( 'Select the platform you would like to render maps with.', 'gatherpress' ), + 'field' => array( + 'label' => __( 'Selected Mapping Platform:', 'gatherpress' ), + 'type' => 'select', + 'options' => array( + 'default' => 'osm', + 'items' => array( + 'osm' => __( 'Open Street Maps', 'gatherpress' ), + 'google' => __( 'Google Maps', 'gatherpress' ), + ), + ), + ), + ), 'max_attendance_limit' => array( 'labels' => array( 'name' => __( 'Maximum Attendance Limit', 'gatherpress' ), diff --git a/includes/templates/admin/settings/fields/select.php b/includes/templates/admin/settings/fields/select.php new file mode 100644 index 000000000..a847bdb65 --- /dev/null +++ b/includes/templates/admin/settings/fields/select.php @@ -0,0 +1,43 @@ + + +
+ + + +

+ /test/unit/js/__mocks__/fileMock.js', + ...defaultConfig.moduleNameMapper, + }, +}; diff --git a/package-lock.json b/package-lock.json index 37b7f84f5..1f669614e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -34,6 +34,7 @@ "eslint": "^8.57.0", "html-react-parser": "^5.1.9", "jest-sonar-reporter": "^2.0.0", + "leaflet": "^1.9.4", "lodash": "^4.17.21", "moment": "^2.30.1", "moment-timezone": "^0.5.45", @@ -7849,12 +7850,12 @@ } }, "node_modules/axios": { - "version": "1.6.7", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.7.tgz", - "integrity": "sha512-/hDJGff6/c7u0hDkvkGxR/oy6CbCs8ziCsC7SqmhjfozqiJGc8Z11wrv9z9lYfY4K8l+H9TpjcMDX0xOZmx+RA==", + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.2.tgz", + "integrity": "sha512-2A8QhOMrbomlDuiLeK9XibIBzuHeRcqqNOHp0Cyp5EoJ1IFDh+XZH3A6BkXtv0K4gFGCI0Y4BM7B1wOEi0Rmgw==", "dev": true, "dependencies": { - "follow-redirects": "^1.15.4", + "follow-redirects": "^1.15.6", "form-data": "^4.0.0", "proxy-from-env": "^1.1.0" } @@ -12062,6 +12063,28 @@ "node": "^10.12.0 || >=12.0.0" } }, + "node_modules/file-loader": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/file-loader/-/file-loader-6.2.0.tgz", + "integrity": "sha512-qo3glqyTa61Ytg4u73GultjHGjdRyig3tG6lPtyX/jOEJvHif9uB0/OCI2Kif6ctF3caQTW2G5gym21oAsI4pw==", + "dev": true, + "optional": true, + "peer": true, + "dependencies": { + "loader-utils": "^2.0.0", + "schema-utils": "^3.0.0" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^4.0.0 || ^5.0.0" + } + }, "node_modules/filename-reserved-regex": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/filename-reserved-regex/-/filename-reserved-regex-2.0.0.tgz", @@ -16564,6 +16587,12 @@ "node": ">=0.10.0" } }, + "node_modules/leaflet": { + "version": "1.9.4", + "resolved": "https://registry.npmjs.org/leaflet/-/leaflet-1.9.4.tgz", + "integrity": "sha512-nxS1ynzJOmOlHp+iL3FyWqK89GtNL8U8rvlMOsQdTTssxZwCXh8N2NB3GDQOL+YR3XnWyZAxwQixURb+FA74PA==", + "dev": true + }, "node_modules/leven": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", @@ -23589,6 +23618,20 @@ } } }, + "node_modules/webpack-cli/node_modules/clone-deep": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", + "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", + "dev": true, + "dependencies": { + "is-plain-object": "^2.0.4", + "kind-of": "^6.0.2", + "shallow-clone": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, "node_modules/webpack-cli/node_modules/commander": { "version": "10.0.1", "resolved": "https://registry.npmjs.org/commander/-/commander-10.0.1.tgz", @@ -23612,6 +23655,39 @@ "node": ">= 8" } }, + "node_modules/webpack-cli/node_modules/is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/webpack-cli/node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/webpack-cli/node_modules/shallow-clone": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", + "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", + "dev": true, + "dependencies": { + "kind-of": "^6.0.2" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/webpack-cli/node_modules/shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", @@ -23633,6 +23709,20 @@ "node": ">=8" } }, + "node_modules/webpack-cli/node_modules/webpack-merge": { + "version": "5.10.0", + "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.10.0.tgz", + "integrity": "sha512-+4zXKdx7UnO+1jaN4l2lHVD+mFvnlZQP/6ljaJVb4SZiwIKeUnrT5l0gkT8z+n4hKpC+jpOv6O9R+gLtag7pSA==", + "dev": true, + "dependencies": { + "clone-deep": "^4.0.1", + "flat": "^5.0.2", + "wildcard": "^2.0.0" + }, + "engines": { + "node": ">=10.0.0" + } + }, "node_modules/webpack-cli/node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", @@ -23851,67 +23941,6 @@ "url": "https://opencollective.com/webpack" } }, - "node_modules/webpack-merge": { - "version": "5.10.0", - "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.10.0.tgz", - "integrity": "sha512-+4zXKdx7UnO+1jaN4l2lHVD+mFvnlZQP/6ljaJVb4SZiwIKeUnrT5l0gkT8z+n4hKpC+jpOv6O9R+gLtag7pSA==", - "dev": true, - "dependencies": { - "clone-deep": "^4.0.1", - "flat": "^5.0.2", - "wildcard": "^2.0.0" - }, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/webpack-merge/node_modules/clone-deep": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", - "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", - "dev": true, - "dependencies": { - "is-plain-object": "^2.0.4", - "kind-of": "^6.0.2", - "shallow-clone": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/webpack-merge/node_modules/is-plain-object": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", - "dev": true, - "dependencies": { - "isobject": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/webpack-merge/node_modules/kind-of": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/webpack-merge/node_modules/shallow-clone": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", - "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", - "dev": true, - "dependencies": { - "kind-of": "^6.0.2" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/webpack-sources": { "version": "3.2.3", "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", diff --git a/package.json b/package.json index 326c49bf7..d716a1943 100644 --- a/package.json +++ b/package.json @@ -72,6 +72,7 @@ "eslint": "^8.57.0", "html-react-parser": "^5.1.9", "jest-sonar-reporter": "^2.0.0", + "leaflet": "^1.9.4", "lodash": "^4.17.21", "moment": "^2.30.1", "moment-timezone": "^0.5.45", diff --git a/readme.md b/readme.md index 3e39e36f5..3cc840426 100644 --- a/readme.md +++ b/readme.md @@ -65,6 +65,7 @@ This plugin leverages the following third-party libraries for various functional - [React-Modal](https://github.com/reactjs/react-modal): Facilitates the creation of modal dialogs in React components. - [React-Tooltip](https://github.com/wwayne/react-tooltip): Provides customizable tooltips for React applications. +- [Leaflet](https://leafletjs.com/): Provides global, open-source mapping functionality ## Screenshots @@ -87,7 +88,7 @@ To run GatherPress, we recommend your host supports: ### What external services are used in GatherPress? -- Mapping Services: We use OpenStreetMap (coming soon) and Google Maps to display meeting locations on a map. To achieve this, we send the address to OpenStreetMap or Google Maps for rendering. +- Mapping Services: We use OpenStreetMap and Google Maps to display meeting locations on a map. To achieve this, we send the address to OpenStreetMap or Google Maps for rendering. - Calendar Integration: GatherPress also supports "Add to Calendar" functionality using Google Calendar and Yahoo! Calendar. ### Configure GatherPress @@ -132,7 +133,11 @@ In WP Admin, go to `Events` > `Topics`. Topics are like post categories, but for events. -### Get Collaborator Access +## Contribute + +If you wish to share in the collaborative of work to build _GatherPress_, please drop us a line either via [WordPress Slack](https://make.wordpress.org/chat/) or on [GatherPress.org](htps://gatherpress.org/get-involved). The development location of the GatherPress project can be found at [https://github.com/gatherpress/gatherpress](https://github.com/gatherpress/gatherpress). All contributions are welcome: code, design, user interface, documentation, translation, and more. + +### Collaborator Access To get write access to the GitHub repo, please reach out to our **GitHub Administrators**: [Mervin Hernandez](https://github.com/MervinHernandez) and [Mike Auteri](https://github.com/mauteri). diff --git a/src/blocks/add-to-calendar/block.json b/src/blocks/add-to-calendar/block.json index bc689ae40..bcf7fe8cd 100644 --- a/src/blocks/add-to-calendar/block.json +++ b/src/blocks/add-to-calendar/block.json @@ -2,7 +2,7 @@ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 2, "name": "gatherpress/add-to-calendar", - "version": "1.0.1", + "version": "1.0.2", "title": "Add to Calendar", "category": "gatherpress", "icon": "calendar", diff --git a/src/blocks/add-to-calendar/style.scss b/src/blocks/add-to-calendar/style.scss index f9b6c8a30..a5abd9e4e 100644 --- a/src/blocks/add-to-calendar/style.scss +++ b/src/blocks/add-to-calendar/style.scss @@ -21,7 +21,7 @@ overflow: hidden; position: absolute; width: 15rem; - z-index: 50; + z-index: 9999; // Leaflet/OSM map has high z-index. } &__list-item { diff --git a/src/blocks/venue/block.json b/src/blocks/venue/block.json index 9f30a965b..5564966b7 100644 --- a/src/blocks/venue/block.json +++ b/src/blocks/venue/block.json @@ -2,7 +2,7 @@ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 2, "name": "gatherpress/venue", - "version": "1.0.1", + "version": "1.1.0", "title": "Venue", "category": "gatherpress", "icon": "location", @@ -39,5 +39,6 @@ "editorStyle": "file:./index.css", "style": "file:./style-index.css", "viewScript": "file:./venue.js", + "viewStyle": "file:./venue.css", "render": "file:./render.php" } diff --git a/src/blocks/venue/edit.js b/src/blocks/venue/edit.js index e29645977..66290b78f 100644 --- a/src/blocks/venue/edit.js +++ b/src/blocks/venue/edit.js @@ -25,7 +25,7 @@ import VenueInformation from '../../panels/venue-settings/venue-information'; import OnlineEventLink from '../../components/OnlineEventLink'; import { Listener } from '../../helpers/broadcasting'; import { isEventPostType } from '../../helpers/event'; -import { isSinglePostInEditor } from '../../helpers/globals'; +import { getFromGlobal, isSinglePostInEditor } from '../../helpers/globals'; /** * Edit component for the GatherPress Venue block. @@ -47,10 +47,13 @@ const Edit = ({ attributes, setAttributes, isSelected }) => { const { mapZoomLevel, mapType, mapHeight } = attributes; const [name, setName] = useState(''); const [fullAddress, setFullAddress] = useState(''); + const [latitude, setLatitude] = useState(''); + const [longitude, setLongitude] = useState(''); const [phoneNumber, setPhoneNumber] = useState(''); const [website, setWebsite] = useState(''); const [isOnlineEventTerm, setIsOnlineEventTerm] = useState(false); const blockProps = useBlockProps(); + const mapPlatform = getFromGlobal('settings.mapPlatform'); const onlineEventLink = useSelect( (select) => select('core/editor')?.getEditedPostAttribute('meta') @@ -85,6 +88,8 @@ const Edit = ({ attributes, setAttributes, isSelected }) => { setPhoneNumber, setWebsite, setIsOnlineEventTerm, + setLatitude, + setLongitude, }); useEffect(() => { @@ -92,6 +97,8 @@ const Edit = ({ attributes, setAttributes, isSelected }) => { setFullAddress(venueInformationMetaData.fullAddress); setPhoneNumber(venueInformationMetaData.phoneNumber); setWebsite(venueInformationMetaData.website); + setLatitude(venueInformationMetaData.latitude); + setLongitude(venueInformationMetaData.longitude); if (!fullAddress && !phoneNumber && !website) { setName(__('Add venue information.', 'gatherpress')); @@ -111,11 +118,21 @@ const Edit = ({ attributes, setAttributes, isSelected }) => { venueInformationMetaData.fullAddress, venueInformationMetaData.phoneNumber, venueInformationMetaData.website, + venueInformationMetaData.latitude, + venueInformationMetaData.longitude, fullAddress, phoneNumber, website, + latitude, + longitude, ]); + useEffect(() => { + // Trigger a window resize event + const resizeEvent = new Event('resize'); + window.dispatchEvent(resizeEvent); + }, [mapHeight]); + return ( <> @@ -166,23 +183,25 @@ const Edit = ({ attributes, setAttributes, isSelected }) => { min={1} max={22} /> - { - setAttributes({ mapType: value }); - }} - /> + {'google' === mapPlatform && ( + { + setAttributes({ mapType: value }); + }} + /> + )} { isOnlineEventTerm={isOnlineEventTerm} onlineEventLink={onlineEventLink} /> - {mapShow && ( + {mapShow && !isOnlineEventTerm && ( { createRoot(containers[i]).render( { + const { zoom, type, className, location, height } = props; + + const style = { border: 0, height, width: '100%' }; + const baseUrl = 'https://maps.google.com/maps'; + + const params = new URLSearchParams({ + q: location, + z: zoom || 10, + t: type || 'm', + output: 'embed', + }); + + const srcURL = baseUrl + '?' + params.toString(); + + return ( + + ); +}; + +export default GoogleMap; diff --git a/src/components/MapEmbed.js b/src/components/MapEmbed.js index 5b70cd072..4a10ab2d4 100644 --- a/src/components/MapEmbed.js +++ b/src/components/MapEmbed.js @@ -3,6 +3,13 @@ */ import { select } from '@wordpress/data'; +/** + * Internal dependencies. + */ +import GoogleMap from './GoogleMap'; +import OpenStreetMap from './OpenStreetMap'; +import { getFromGlobal } from '../helpers/globals'; + /** * MapEmbed component for GatherPress. * @@ -13,6 +20,8 @@ import { select } from '@wordpress/data'; * * @param {Object} props - Component properties. * @param {string} props.location - The location to be displayed on the map. + * @param {string} props.latitude - The latitdue of the location to be displayed on the map. + * @param {string} props.longitude - The longitude of the location to be displayed on the map. * @param {number} [props.zoom=10] - The zoom level of the map. * @param {string} [props.type='m'] - The type of the map (e.g., 'm' for roadmap). * @param {number} [props.height=300] - The height of the map container. @@ -23,7 +32,7 @@ import { select } from '@wordpress/data'; const MapEmbed = (props) => { const isAdmin = select('core')?.canUser('create', 'posts'); const isPostEditor = Boolean(select('core/edit-post')); - const { zoom, type, className } = props; + const { zoom, type, className, latitude, longitude } = props; let { location, height } = props; if (!height) { @@ -34,29 +43,33 @@ const MapEmbed = (props) => { location = '660 4th Street #119 San Francisco CA 94107, USA'; } - if (!location) { + const mapPlatform = getFromGlobal('settings.mapPlatform'); + if (!location || !mapPlatform) { return <>; + } else if (mapPlatform === 'google') { + return ( + + ); + } else if (mapPlatform === 'osm') { + return ( + + ); } - const style = { border: 0, height, width: '100%' }; - const baseUrl = 'https://maps.google.com/maps'; - - const params = new URLSearchParams({ - q: location, - z: zoom || 10, - t: type || 'm', - output: 'embed', - }); - - const srcURL = baseUrl + '?' + params.toString(); - return ( - - ); + return <>; }; export default MapEmbed; diff --git a/src/components/OpenStreetMap.js b/src/components/OpenStreetMap.js new file mode 100644 index 000000000..df4e9e5c0 --- /dev/null +++ b/src/components/OpenStreetMap.js @@ -0,0 +1,75 @@ +/** + * External dependencies. + */ +import Leaflet from 'leaflet'; +import 'leaflet/dist/leaflet.css'; +import 'leaflet/dist/images/marker-icon-2x.png'; +import 'leaflet/dist/images/marker-shadow.png'; + +/** + * WordPress dependencies. + */ +import { sprintf, __ } from '@wordpress/i18n'; +import { useEffect } from '@wordpress/element'; + +/** + * Internal dependencies. + */ +import { getFromGlobal } from '../helpers/globals'; + +/** + * OpenStreetMap component for GatherPress. + * + * This component is used to embed an Open Street Map with specified location, + * zoom level, and height using the Leaflet platform. + * + * @since 1.0.0 + * + * @param {Object} props - Component properties. + * @param {string} props.location - The location to be displayed on the map. + * @param {string} props.latitude - The latitdue of the location to be displayed on the map. + * @param {string} props.longitude - The longitude of the location to be displayed on the map. + * @param {number} [props.zoom=10] - The zoom level of the map.i + * @param {number} [props.height=300] - The height of the map container. + * @param {string} [props.className] - Additional CSS class names for styling. + * + * @return {JSX.Element} The rendered React component. + */ +const OpenStreetMap = (props) => { + const { zoom, className, location, height, latitude, longitude } = props; + const style = { height }; + + useEffect(() => { + if (typeof Leaflet === 'undefined' || !latitude || !longitude) return; + + const map = Leaflet.map('map').setView([latitude, longitude], zoom); + + Leaflet.Icon.Default.imagePath = + getFromGlobal('urls.pluginUrl') + 'build/images/'; + + Leaflet.tileLayer( + 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', + { + attribution: sprintf( + /* translators: %s: Link to OpenStreetMap contributors. */ + __('© %s contributors', 'gatherpress'), + 'OpenStreetMap' + ), + } + ).addTo(map); + + Leaflet.marker([latitude, longitude]).addTo(map).bindPopup(location); + + return () => { + map.remove(); + }; + }, [latitude, location, longitude, zoom]); + + if (!latitude || !longitude) { + return <>; + } + + return
; +}; + +export default OpenStreetMap; diff --git a/src/components/VenueInformation.js b/src/components/VenueInformation.js index aa87b3f39..30c6c4097 100644 --- a/src/components/VenueInformation.js +++ b/src/components/VenueInformation.js @@ -2,9 +2,10 @@ * WordPress dependencies. */ import { TextControl } from '@wordpress/components'; -import { __ } from '@wordpress/i18n'; +import { __, sprintf } from '@wordpress/i18n'; import { useDispatch, useSelect } from '@wordpress/data'; -import { useState } from '@wordpress/element'; +import { useState, useEffect, useCallback, useRef } from '@wordpress/element'; +import { useDebounce } from '@wordpress/compose'; /** * Internal dependencies. @@ -25,10 +26,11 @@ import { Broadcaster, Listener } from '../helpers/broadcasting'; */ const VenueInformation = () => { const editPost = useDispatch('core/editor').editPost; - const updateVenueMeta = (key, value) => { + // eslint-disable-next-line react-hooks/exhaustive-deps + const updateVenueMeta = (metaData) => { const payload = JSON.stringify({ ...venueInformationMetaData, - [key]: value, + ...metaData, }); const meta = { gatherpress_venue_information: payload }; @@ -59,6 +61,48 @@ const VenueInformation = () => { Listener({ setFullAddress, setPhoneNumber, setWebsite }); + const updateVenueMetaRef = useRef(updateVenueMeta); + const getData = useCallback(() => { + let lat = null; + let lng = null; + + fetch( + `https://nominatim.openstreetmap.org/search?q=${fullAddress}&format=geojson` + ) + .then((response) => { + if (!response.ok) { + throw new Error( + sprintf( + /* translators: %s: Error message */ + __('Network response was not ok %s', 'gatherpress'), + response.statusText + ) + ); + } + return response.json(); + }) + .then((data) => { + if (data.features.length > 0) { + lat = data.features[0].geometry.coordinates[1]; + lng = data.features[0].geometry.coordinates[0]; + } + updateVenueMetaRef.current({ + latitude: lat, + longitude: lng, + }); + }); + }, [fullAddress]); + + const debouncedGetData = useDebounce(getData, 300); + + useEffect(() => { + updateVenueMetaRef.current = updateVenueMeta; + }, [updateVenueMeta]); + + useEffect(() => { + debouncedGetData(); + }, [fullAddress, debouncedGetData]); + return ( <> { value={fullAddress} onChange={(value) => { Broadcaster({ setFullAddress: value }); - updateVenueMeta('fullAddress', value); + updateVenueMeta({ fullAddress: value }); }} /> { value={phoneNumber} onChange={(value) => { Broadcaster({ setPhoneNumber: value }); - updateVenueMeta('phoneNumber', value); + updateVenueMeta({ phoneNumber: value }); }} /> { type="url" onChange={(value) => { Broadcaster({ setWebsite: value }); - updateVenueMeta('website', value); + updateVenueMeta({ website: value }); }} /> diff --git a/src/components/VenueSelector.js b/src/components/VenueSelector.js index ac89b1b4a..83c7e254b 100644 --- a/src/components/VenueSelector.js +++ b/src/components/VenueSelector.js @@ -35,6 +35,10 @@ const VenueSelector = () => { const [website, setWebsite] = useState(''); // eslint-disable-next-line no-unused-vars const [isOnlineEventTerm, setIsOnlineEventTerm] = useState(false); + // eslint-disable-next-line no-unused-vars + const [latitude, setLatitude] = useState(''); + // eslint-disable-next-line no-unused-vars + const [longitude, setLongitude] = useState(''); const [venue, setVenue] = useState(''); const editPost = useDispatch('core/editor').editPost; @@ -77,6 +81,8 @@ const VenueSelector = () => { const fullAddressUpdated = venueInformation?.fullAddress ?? ''; const phoneNumberUpdated = venueInformation?.phoneNumber ?? ''; const websiteUpdated = venueInformation?.website ?? ''; + const latitudeUpdated = venueInformation?.latitude ?? '0'; + const longitudeUpdated = venueInformation?.longitude ?? '0'; // Will unset the venue if slug is `undefined` here. if (slug) { @@ -89,12 +95,16 @@ const VenueSelector = () => { setFullAddress(fullAddressUpdated); setPhoneNumber(phoneNumberUpdated); setWebsite(websiteUpdated); + setLatitude(latitudeUpdated); + setLongitude(longitudeUpdated); Broadcaster({ setName: nameUpdated, setFullAddress: fullAddressUpdated, setPhoneNumber: phoneNumberUpdated, setWebsite: websiteUpdated, + setLatitude: latitudeUpdated, + setLongitude: longitudeUpdated, setIsOnlineEventTerm: venueSlug === 'online-event', }); }, [venueSlug, venuePost, slug, venueValue]); diff --git a/test/unit/js/__mocks__/fileMock.js b/test/unit/js/__mocks__/fileMock.js new file mode 100644 index 000000000..86059f362 --- /dev/null +++ b/test/unit/js/__mocks__/fileMock.js @@ -0,0 +1 @@ +module.exports = 'test-file-stub'; diff --git a/test/unit/js/src/components/MapEmbed.test.js b/test/unit/js/src/components/MapEmbed.test.js index 220cb8244..4a1f92005 100644 --- a/test/unit/js/src/components/MapEmbed.test.js +++ b/test/unit/js/src/components/MapEmbed.test.js @@ -19,7 +19,24 @@ test('MapEmbed returns empty when no location is provided', () => { expect(container).toHaveTextContent(''); }); -test('MapEmbed returns address in source when location is set', () => { +test('OSM MapEmbed returns a div when location is set', () => { + global.GatherPress = { + settings: { + mapPlatform: 'osm', + }, + }; + const { container } = render( + + ); + expect(container).toContainHTML('
'); +}); + +test('Google MapEmbed returns address in source when location is set', () => { + global.GatherPress = { + settings: { + mapPlatform: 'google', + }, + }; const { container } = render( ); diff --git a/webpack.config.js b/webpack.config.js index 557f82e5f..33798f2c6 100755 --- a/webpack.config.js +++ b/webpack.config.js @@ -25,4 +25,22 @@ module.exports = { profile: path.resolve(process.cwd(), 'src/profile', 'index.js'), profile_style: path.resolve(process.cwd(), 'src/profile', 'style.scss'), }, + module: { + ...defaultConfig.module, + rules: [ + ...defaultConfig.module.rules.filter( + (rule) => + !/\.(bmp|png|jpe?g|gif|webp)$/i.test(rule.test.toString()) + ), + ...[ + { + test: /\.(bmp|png|jpe?g|gif|webp)$/i, + type: 'asset/resource', + generator: { + filename: 'images/[name][ext]', + }, + }, + ], + ], + }, };